bhl-forms 0.6.6 → 0.6.7
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/forms/accidentsAndInjuries.es.js +1 -1
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/childAndFamily.es.js +1 -1
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +422 -53
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +878 -260
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/contracts.es.js +1 -1
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +833 -1471
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +789 -184
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +2 -2
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +2 -2
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +4383 -0
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -0
- package/dist/forms/generalLegalPopUnderSingle.json +1 -0
- package/dist/forms/generalLegalSingle.es.js +24 -5
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +2 -2
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +1 -1
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/realEstate.es.js +1 -1
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +1 -1
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/testRedirects.es.js +1 -1
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +1 -1
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4383 @@
|
|
|
1
|
+
function merge() {
|
|
2
|
+
return Object.assign({}, ...arguments)
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function LegalRedirectUrl() {
|
|
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
|
+
}
|
|
8
|
+
|
|
9
|
+
var TCPA_LANGUAGE = "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.";
|
|
10
|
+
|
|
11
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
12
|
+
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
13
|
+
const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
|
|
14
|
+
const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
15
|
+
const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
16
|
+
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
17
|
+
|
|
18
|
+
// ------ Common Base Settings
|
|
19
|
+
|
|
20
|
+
const checkbox = (updates) => {
|
|
21
|
+
if (updates.name && !updates.id) {
|
|
22
|
+
updates.id = updates.name;
|
|
23
|
+
}
|
|
24
|
+
return merge({
|
|
25
|
+
$formkit: 'checkbox',
|
|
26
|
+
validation: 'required',
|
|
27
|
+
validationMessages: {
|
|
28
|
+
required: 'Field is required'
|
|
29
|
+
}
|
|
30
|
+
}, updates)
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const verticalCheckbox = (updates) => {
|
|
34
|
+
if (!updates || !updates.legendClass) {
|
|
35
|
+
updates.legendClass = 'required';
|
|
36
|
+
}
|
|
37
|
+
updates.fieldsetClass = '$reset';
|
|
38
|
+
updates.optionsClass = 't-pl-2 t-pt-3';
|
|
39
|
+
updates.innerClass = 't-items-center';
|
|
40
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
41
|
+
return checkbox(updates)
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const sbsCheckbox = (updates) => {
|
|
45
|
+
updates.legendClass = 'legend-left required';
|
|
46
|
+
updates.fieldsetClass = '$reset side-by-side';
|
|
47
|
+
updates.optionsClass = 't-pl-1';
|
|
48
|
+
updates.innerClass = 't-flex t-items-center';
|
|
49
|
+
updates.wrapperClass = 't-mb-3';
|
|
50
|
+
return checkbox(updates)
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const col2Checkbox = (updates) => {
|
|
54
|
+
if (!updates || !updates.legendClass) {
|
|
55
|
+
updates.legendClass = 'required';
|
|
56
|
+
}
|
|
57
|
+
updates.fieldsetClass = '$reset';
|
|
58
|
+
updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
59
|
+
updates.innerClass = 't-items-start';
|
|
60
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
61
|
+
return checkbox(updates)
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const verticalCol2Checkbox = (updates) => {
|
|
65
|
+
if (!updates || !updates.legendClass) {
|
|
66
|
+
updates.legendClass = 'required';
|
|
67
|
+
}
|
|
68
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
69
|
+
updates.optionClass = 't-mx-5';
|
|
70
|
+
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
71
|
+
updates.innerClass = 't-items-center';
|
|
72
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
73
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
74
|
+
return checkbox(updates)
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const radio = (updates) => {
|
|
78
|
+
if (updates.name && !updates.id) {
|
|
79
|
+
updates.id = updates.name;
|
|
80
|
+
}
|
|
81
|
+
return merge({
|
|
82
|
+
$formkit: 'radio',
|
|
83
|
+
validation: 'required',
|
|
84
|
+
validationMessages: {
|
|
85
|
+
required: 'Field is required'
|
|
86
|
+
},
|
|
87
|
+
optionsClass: 't-pt-3 t-pl-1',
|
|
88
|
+
legendClass: 'required'
|
|
89
|
+
}, updates)
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const col2RadioCenter = (updates) => {
|
|
93
|
+
updates.legendClass = 'required t-w-[100%] t-text-center';
|
|
94
|
+
if (typeof updates.fieldsetClass === 'undefined') {
|
|
95
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
96
|
+
}
|
|
97
|
+
updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
98
|
+
updates.innerClass = 't-items-start';
|
|
99
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
100
|
+
updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
|
|
101
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
102
|
+
updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
|
|
103
|
+
return radio(updates)
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const sbs2ColRadio = (updates) => {
|
|
107
|
+
updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
|
|
108
|
+
updates.fieldsetClass = '$reset side-by-side-flex';
|
|
109
|
+
updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
|
|
110
|
+
updates.innerClass = 't-flex t-items-start';
|
|
111
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
112
|
+
return radio(updates)
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const sbs2ItemRadio = (updates) => {
|
|
116
|
+
updates.legendClass = 'legend-left t-pb-1 required';
|
|
117
|
+
updates.fieldsetClass = '$reset side-by-side t-items-center';
|
|
118
|
+
updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
|
|
119
|
+
updates.innerClass = 't-flex t-items-center';
|
|
120
|
+
updates.optionClass = 't-pr-1';
|
|
121
|
+
return radio(updates)
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const sbsYesNoRadio = (updates) => {
|
|
125
|
+
updates.options = ['Yes', 'No'];
|
|
126
|
+
return sbs2ItemRadio(updates)
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const verticalButtonRadio = (updates) => {
|
|
130
|
+
updates.legendClass = 'legend-left';
|
|
131
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
|
|
132
|
+
if (typeof updates.optionsClass === 'undefined') {
|
|
133
|
+
updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
|
|
134
|
+
}
|
|
135
|
+
updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
|
|
136
|
+
updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
|
|
137
|
+
updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
|
|
138
|
+
updates.decoratorIcon = false;
|
|
139
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
140
|
+
return radio(updates)
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const verticalYesNoRadio = (updates) => {
|
|
144
|
+
updates.options = ['Yes', 'No'];
|
|
145
|
+
updates.optionsClass = 't-flex t-justify-center t-my-3';
|
|
146
|
+
return verticalButtonRadio(updates)
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const verticalRadio = (updates) => {
|
|
150
|
+
updates.legendClass = 'required';
|
|
151
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center';
|
|
152
|
+
updates.optionsClass = 't-pl-2 t-pt-3';
|
|
153
|
+
updates.innerClass = 't-items-center';
|
|
154
|
+
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
155
|
+
updates.optionClass = 't-pl-4 md:t-pl-12';
|
|
156
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
157
|
+
return radio(updates)
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const select = (updates) => {
|
|
161
|
+
if (updates.name && !updates.id) {
|
|
162
|
+
updates.id = updates.name;
|
|
163
|
+
}
|
|
164
|
+
return merge({
|
|
165
|
+
$formkit: 'select',
|
|
166
|
+
placeholder: "Please Select",
|
|
167
|
+
validation: 'required',
|
|
168
|
+
validationMessages: {
|
|
169
|
+
required: 'Field is required'
|
|
170
|
+
},
|
|
171
|
+
inputClass: 't-bg-white',
|
|
172
|
+
labelClass: 'required'
|
|
173
|
+
}, updates)
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const sbsSelect = (updates) => {
|
|
177
|
+
updates.labelClass = 'required';
|
|
178
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
179
|
+
updates.innerClass = 'select-height-content';
|
|
180
|
+
updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
|
|
181
|
+
return select(updates)
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const verticalSelect = (updates) => {
|
|
185
|
+
updates.labelClass = 'required';
|
|
186
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
187
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
188
|
+
updates.inputClass = 't-min-w-[150px] t-bg-white';
|
|
189
|
+
updates.helpClass = 't-mt-2.5 t-text-center';
|
|
190
|
+
return select(updates)
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const text = (updates) => {
|
|
194
|
+
if (updates.name && !updates.id) {
|
|
195
|
+
updates.id = updates.name;
|
|
196
|
+
}
|
|
197
|
+
return merge({
|
|
198
|
+
$formkit: 'text',
|
|
199
|
+
validation: 'required',
|
|
200
|
+
validationMessages: {
|
|
201
|
+
required: 'Field is required'
|
|
202
|
+
},
|
|
203
|
+
labelClass: 'required'
|
|
204
|
+
}, updates)
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const sbsText = (updates) => {
|
|
208
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
209
|
+
return text(updates)
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const verticalText = (updates) => {
|
|
213
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
214
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
215
|
+
updates.inputClass = 't-text-center';
|
|
216
|
+
return text(updates)
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const textArea = (updates) => {
|
|
220
|
+
if (updates.name && !updates.id) {
|
|
221
|
+
updates.id = updates.name;
|
|
222
|
+
}
|
|
223
|
+
return merge({
|
|
224
|
+
$formkit: 'textarea',
|
|
225
|
+
rows: 5,
|
|
226
|
+
maxlength: 500,
|
|
227
|
+
validation: 'required',
|
|
228
|
+
validationMessages: {
|
|
229
|
+
required: 'Field is required'
|
|
230
|
+
},
|
|
231
|
+
innerClass: 't-max-w-xl',
|
|
232
|
+
labelClass: 'required'
|
|
233
|
+
}, updates)
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
const date = (updates) => {
|
|
237
|
+
if (updates.name && !updates.id) {
|
|
238
|
+
updates.id = updates.name;
|
|
239
|
+
}
|
|
240
|
+
return merge({
|
|
241
|
+
$formkit: 'DatePicker',
|
|
242
|
+
validation: 'required',
|
|
243
|
+
validationMessages: {
|
|
244
|
+
required: 'Field is required'
|
|
245
|
+
},
|
|
246
|
+
labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
|
|
247
|
+
innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
|
|
248
|
+
}, updates)
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const sbsDate = (updates) => {
|
|
252
|
+
updates.wrapperClass = 'side-by-side t-items-center';
|
|
253
|
+
return date(updates)
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const verticalDate = (updates) => {
|
|
257
|
+
updates.wrapperClass = 't-flex t-justify-center';
|
|
258
|
+
updates.inputClass = 't-text-center';
|
|
259
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
260
|
+
return date(updates)
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const amountPaymentsPastDueCenter = () => verticalSelect({
|
|
264
|
+
name: 'Amount_Payments_Past_Due',
|
|
265
|
+
options: [
|
|
266
|
+
"$0 - $499",
|
|
267
|
+
"$500 - $999",
|
|
268
|
+
"$1,000 - $2,499",
|
|
269
|
+
"$2,500 - $4,999",
|
|
270
|
+
"$5,000 - $9,999",
|
|
271
|
+
"$10,000 - $24,999",
|
|
272
|
+
"$25,000 - $49,999",
|
|
273
|
+
"$50,000 - $99,999",
|
|
274
|
+
"More than $100,000"
|
|
275
|
+
]
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
const applicantOccupationCenter = (scope) => verticalText({
|
|
279
|
+
name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
|
|
280
|
+
placeholder: "Occupation"
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
const applicantAge$1 = (scope) => sbsText({
|
|
284
|
+
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
285
|
+
label: 'Age of Applicant?',
|
|
286
|
+
placeholder: 'Age between 18 and 65',
|
|
287
|
+
maxlength: 2,
|
|
288
|
+
inputmode: "numeric",
|
|
289
|
+
validation: "required|min:18,max:65",
|
|
290
|
+
validationMessages: {
|
|
291
|
+
required: 'Applicant Age is required',
|
|
292
|
+
min: 'Invalid Age - must be between 18 and 65',
|
|
293
|
+
max: 'Invalid Age - must be between 18 and 65',
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
const applicantAgeCenter = (scope) => verticalText({
|
|
298
|
+
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
299
|
+
value: "50",
|
|
300
|
+
placeholder: 'Age between 18 and 65',
|
|
301
|
+
maxlength: 2,
|
|
302
|
+
inputmode: "numeric",
|
|
303
|
+
validation: "required|min:18,max:65",
|
|
304
|
+
validationMessages: {
|
|
305
|
+
required: 'Applicant Age is required',
|
|
306
|
+
min: 'Invalid Age - must be between 18 and 65',
|
|
307
|
+
max: 'Invalid Age - must be between 18 and 65',
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
const applicantDisabilityHowObtainCenter = (scope) => verticalButtonRadio({
|
|
312
|
+
name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
|
|
313
|
+
options: [
|
|
314
|
+
"Employer",
|
|
315
|
+
"Self",
|
|
316
|
+
"Other"
|
|
317
|
+
]
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
const applicantPreviouslyAppliedLtdBenefitsCenter = (scope) => verticalRadio({
|
|
321
|
+
name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
|
|
322
|
+
options: [
|
|
323
|
+
"Yes, claim pending",
|
|
324
|
+
"Yes, claim denied",
|
|
325
|
+
"No"
|
|
326
|
+
]
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
const applicantMonthlySalaryCenter = (scope) => verticalSelect({
|
|
330
|
+
name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
|
|
331
|
+
options: [
|
|
332
|
+
"< $1,000",
|
|
333
|
+
"$1,000 - $2,000",
|
|
334
|
+
"$2,000 - $3,000",
|
|
335
|
+
"$3,000 - $4,000",
|
|
336
|
+
"$4,000 - $5,000",
|
|
337
|
+
"$5,000 - $6,000",
|
|
338
|
+
"$6,000 - $7,000",
|
|
339
|
+
"$7,000 - $8,000",
|
|
340
|
+
"$8,000 - $9,000",
|
|
341
|
+
"$9,000 - $10,000",
|
|
342
|
+
">$10,000"
|
|
343
|
+
]
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
const applicantReceivedDisabilityBenefitsCenter = (scope) => verticalRadio({
|
|
347
|
+
name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
|
|
348
|
+
options: [
|
|
349
|
+
"Yes, currently receiving",
|
|
350
|
+
"Yes, appealing a decision to stop payment of benefits",
|
|
351
|
+
"No"
|
|
352
|
+
]
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
const applicantLTDisabilityPolicyCenter = (scope) => verticalYesNoRadio({
|
|
356
|
+
name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
const atFault$1 = (scope) => sbsYesNoRadio({
|
|
360
|
+
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
361
|
+
label: 'Were You at Fault?'
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
const atFaultCenter = (scope) => verticalYesNoRadio({
|
|
365
|
+
name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
const bankruptcyCrossSell = () => sbsCheckbox({
|
|
369
|
+
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
370
|
+
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
371
|
+
name: 'CrossSell_Bankruptcy',
|
|
372
|
+
id: 'CrossSell_Bankruptcy',
|
|
373
|
+
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")',
|
|
374
|
+
validation: null,
|
|
375
|
+
helpClass: "!t-text-sm"
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
|
|
379
|
+
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
380
|
+
label: 'Blood Alcohol Content Measured by Test:',
|
|
381
|
+
options: [
|
|
382
|
+
"No Test",
|
|
383
|
+
"0.00% - 0.04%",
|
|
384
|
+
"0.05% - 0.08%",
|
|
385
|
+
"0.09% - 0.12%",
|
|
386
|
+
"0.13% - 0.16%",
|
|
387
|
+
"0.17% - 0.20%",
|
|
388
|
+
"More than 0.20%",
|
|
389
|
+
"Don't know"
|
|
390
|
+
]
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
|
|
394
|
+
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
395
|
+
options: [
|
|
396
|
+
"No Test",
|
|
397
|
+
"0.00% - 0.04%",
|
|
398
|
+
"0.05% - 0.08%",
|
|
399
|
+
"0.09% - 0.12%",
|
|
400
|
+
"0.13% - 0.16%",
|
|
401
|
+
"0.17% - 0.20%",
|
|
402
|
+
"More than 0.20%",
|
|
403
|
+
"Don't know"
|
|
404
|
+
]
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
const businessServicesCenter = () => col2RadioCenter({
|
|
408
|
+
id: 'Business_Services',
|
|
409
|
+
name: 'Business_Services',
|
|
410
|
+
options: [
|
|
411
|
+
"Business Formation",
|
|
412
|
+
"Contracts",
|
|
413
|
+
"Insurance and Liability",
|
|
414
|
+
"Mergers and Acquisition",
|
|
415
|
+
"Regulatory Compliance",
|
|
416
|
+
"Employee Dispute",
|
|
417
|
+
"Other"
|
|
418
|
+
]
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
const businessTypeCenter = () => verticalButtonRadio({
|
|
422
|
+
name: 'Business_Type',
|
|
423
|
+
options: [
|
|
424
|
+
"Public",
|
|
425
|
+
"Private"
|
|
426
|
+
]
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
const causeOfInjury$1 = (scope) => sbsSelect({
|
|
430
|
+
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
431
|
+
label: 'Cause of Injury:',
|
|
432
|
+
options: [
|
|
433
|
+
"Traumatic Physical Injury (Accident)",
|
|
434
|
+
"Repeated Trauma Injury",
|
|
435
|
+
"Mental Injury",
|
|
436
|
+
"Occupational Disease",
|
|
437
|
+
"Not Sure"
|
|
438
|
+
]
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
const causeOfInjuryCenter = (scope) => col2RadioCenter({
|
|
442
|
+
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
443
|
+
options: [
|
|
444
|
+
"Traumatic Physical Injury (Accident)",
|
|
445
|
+
"Repeated Trauma Injury",
|
|
446
|
+
"Mental Injury",
|
|
447
|
+
"Occupational Disease",
|
|
448
|
+
"Not Sure"
|
|
449
|
+
]
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
const causeOfDeathCenter = () => col2RadioCenter({
|
|
453
|
+
name: 'Cause_Of_Death',
|
|
454
|
+
options: [
|
|
455
|
+
"Vehicle Accident",
|
|
456
|
+
"Negligent/Careless Act",
|
|
457
|
+
"Reckless Act",
|
|
458
|
+
"Other"
|
|
459
|
+
]
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
463
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
464
|
+
options: [
|
|
465
|
+
'Automobile Accident',
|
|
466
|
+
'Contract Disputes',
|
|
467
|
+
'Defamation and Slander',
|
|
468
|
+
'Dog Bite',
|
|
469
|
+
'Employment and Workplace',
|
|
470
|
+
'Fraud',
|
|
471
|
+
'Medical Malpractice',
|
|
472
|
+
'Personal Injury',
|
|
473
|
+
'Property Damage',
|
|
474
|
+
'Small Claims',
|
|
475
|
+
'Real Estate',
|
|
476
|
+
'Not Sure or Other'
|
|
477
|
+
]
|
|
478
|
+
}, updates));
|
|
479
|
+
|
|
480
|
+
const civilRightsTypeCenter = () => col2RadioCenter({
|
|
481
|
+
name: 'Civil_Rights_Type',
|
|
482
|
+
options: [
|
|
483
|
+
"Age",
|
|
484
|
+
"Disability",
|
|
485
|
+
"Gender",
|
|
486
|
+
"Race",
|
|
487
|
+
"Religion",
|
|
488
|
+
"Other"
|
|
489
|
+
]
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
const childHome$1 = (scope) => sbsSelect({
|
|
493
|
+
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
494
|
+
label: 'With Whom Do the Children Currently Live?',
|
|
495
|
+
options: [
|
|
496
|
+
'Mother',
|
|
497
|
+
'Father',
|
|
498
|
+
'Grandparents',
|
|
499
|
+
'Other'
|
|
500
|
+
]
|
|
501
|
+
});
|
|
502
|
+
|
|
503
|
+
const childHomeCenter = (scope) => col2RadioCenter({
|
|
504
|
+
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
505
|
+
options: [
|
|
506
|
+
'Mother',
|
|
507
|
+
'Father',
|
|
508
|
+
'Grandparents',
|
|
509
|
+
'Other'
|
|
510
|
+
]
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
const childPrimaryCaregiver$1 = (scope) => sbsSelect({
|
|
514
|
+
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
515
|
+
label: 'Who is the Primary Caregiver?',
|
|
516
|
+
options: [
|
|
517
|
+
'Mother',
|
|
518
|
+
'Father',
|
|
519
|
+
'Other'
|
|
520
|
+
]
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
const childPrimaryCaregiverCenter = (scope) => verticalButtonRadio({
|
|
524
|
+
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
525
|
+
options: [
|
|
526
|
+
'Mother',
|
|
527
|
+
'Father',
|
|
528
|
+
'Other'
|
|
529
|
+
]
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
const childRelationship$1 = (scope) => sbsSelect({
|
|
533
|
+
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
534
|
+
label: 'Your Relationship to Child(ren):',
|
|
535
|
+
options: [
|
|
536
|
+
'Father',
|
|
537
|
+
'Mother',
|
|
538
|
+
'Grandparent',
|
|
539
|
+
'Aunt/Uncle',
|
|
540
|
+
'Other'
|
|
541
|
+
]
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
const childRelationshipCenter = (scope) => col2RadioCenter({
|
|
545
|
+
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
546
|
+
options: [
|
|
547
|
+
'Father',
|
|
548
|
+
'Mother',
|
|
549
|
+
'Grandparent',
|
|
550
|
+
'Aunt/Uncle',
|
|
551
|
+
'Other'
|
|
552
|
+
]
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
const claimStatus$1 = (scope) => sbsSelect({
|
|
556
|
+
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
557
|
+
label: "Status of Claim:",
|
|
558
|
+
options: [
|
|
559
|
+
"No action taken yet",
|
|
560
|
+
"Demand for compensation made",
|
|
561
|
+
"Lawsuit filed",
|
|
562
|
+
"Other"
|
|
563
|
+
]
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
const claimStatusCenter = (scope) => col2RadioCenter({
|
|
567
|
+
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
568
|
+
options: [
|
|
569
|
+
"No action taken yet",
|
|
570
|
+
"Demand for compensation made",
|
|
571
|
+
"Lawsuit filed",
|
|
572
|
+
"Other"
|
|
573
|
+
]
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
const comments = (updates, scope) => textArea(
|
|
577
|
+
merge({
|
|
578
|
+
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
579
|
+
label: 'Please briefly describe your situation in a few words:',
|
|
580
|
+
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
581
|
+
}, updates)
|
|
582
|
+
);
|
|
583
|
+
|
|
584
|
+
const consumerLawyerTypeCenter = () => verticalSelect({
|
|
585
|
+
name: 'Consumer_Lawyer_Type',
|
|
586
|
+
options: [
|
|
587
|
+
"Unsafe Environment",
|
|
588
|
+
"Unsafe Products",
|
|
589
|
+
"Auto Fraud",
|
|
590
|
+
"Credit Reporting Issues",
|
|
591
|
+
"Debt Collection Abuse",
|
|
592
|
+
"Identity Theft",
|
|
593
|
+
"Lemon Law",
|
|
594
|
+
"Military Consumer Rights",
|
|
595
|
+
"Predatory Lending",
|
|
596
|
+
"Student Loans",
|
|
597
|
+
"Other"
|
|
598
|
+
]
|
|
599
|
+
});
|
|
600
|
+
|
|
601
|
+
const countryOfCitizenshipCenter = (scope) => verticalSelect({
|
|
602
|
+
name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
|
|
603
|
+
options: [
|
|
604
|
+
"Afghanistan",
|
|
605
|
+
"Albania",
|
|
606
|
+
"Algeria",
|
|
607
|
+
"Andorra",
|
|
608
|
+
"Angola",
|
|
609
|
+
"Antigua and Barbuda",
|
|
610
|
+
"Argentina",
|
|
611
|
+
"Armenia",
|
|
612
|
+
"Australia",
|
|
613
|
+
"Austria",
|
|
614
|
+
"Azerbaijan",
|
|
615
|
+
"Bahamas",
|
|
616
|
+
"The Bahrain",
|
|
617
|
+
"Bangladesh",
|
|
618
|
+
"Barbados",
|
|
619
|
+
"Belarus",
|
|
620
|
+
"Belgium",
|
|
621
|
+
"Belize",
|
|
622
|
+
"Benin",
|
|
623
|
+
"Bhutan",
|
|
624
|
+
"Bolivia",
|
|
625
|
+
"Bosnia and Herzegovina",
|
|
626
|
+
"Botswana",
|
|
627
|
+
"Brazil",
|
|
628
|
+
"Brunei",
|
|
629
|
+
"Bulgaria",
|
|
630
|
+
"Burkina Faso",
|
|
631
|
+
"Burundi",
|
|
632
|
+
"Cambodia",
|
|
633
|
+
"Cameroon",
|
|
634
|
+
"Canada",
|
|
635
|
+
"Cape Verde",
|
|
636
|
+
"Central African Republic",
|
|
637
|
+
"Chad",
|
|
638
|
+
"Chile",
|
|
639
|
+
"China",
|
|
640
|
+
"Colombia",
|
|
641
|
+
"Comoros",
|
|
642
|
+
"Congo (Congoâ Kinshasa)",
|
|
643
|
+
"Congo (Congoâ Brazzaville)",
|
|
644
|
+
"Costa Rica",
|
|
645
|
+
"Coted'Ivoire (Ivory Coast)",
|
|
646
|
+
"Croatia",
|
|
647
|
+
"Cuba",
|
|
648
|
+
"Cyprus",
|
|
649
|
+
"Czech Republic",
|
|
650
|
+
"Denmark",
|
|
651
|
+
"Djibouti",
|
|
652
|
+
"Dominica",
|
|
653
|
+
"Dominican Republic",
|
|
654
|
+
"Ecuador",
|
|
655
|
+
"Egypt",
|
|
656
|
+
"El Salvador",
|
|
657
|
+
"Equatorial Guinea",
|
|
658
|
+
"Eritrea",
|
|
659
|
+
"Estonia",
|
|
660
|
+
"Ethiopia",
|
|
661
|
+
"Fiji",
|
|
662
|
+
"Finland",
|
|
663
|
+
"France",
|
|
664
|
+
"Gabon",
|
|
665
|
+
"Gambia",
|
|
666
|
+
"Georgia",
|
|
667
|
+
"Germany",
|
|
668
|
+
"Ghana",
|
|
669
|
+
"Greece",
|
|
670
|
+
"Grenada",
|
|
671
|
+
"Guatemala",
|
|
672
|
+
"Guinea",
|
|
673
|
+
"Guinea-Bissau",
|
|
674
|
+
"Guyana",
|
|
675
|
+
"Haiti",
|
|
676
|
+
"Honduras",
|
|
677
|
+
"Hungary",
|
|
678
|
+
"Iceland",
|
|
679
|
+
"India",
|
|
680
|
+
"Indonesia",
|
|
681
|
+
"Iran",
|
|
682
|
+
"Iraq",
|
|
683
|
+
"Ireland",
|
|
684
|
+
"Israel",
|
|
685
|
+
"Italy",
|
|
686
|
+
"Jamaica",
|
|
687
|
+
"Japan",
|
|
688
|
+
"Jordan",
|
|
689
|
+
"Kazakhstan",
|
|
690
|
+
"Kenya",
|
|
691
|
+
"Kiribati",
|
|
692
|
+
"Korea (North Korea)",
|
|
693
|
+
"Korea (South Korea)",
|
|
694
|
+
"Kuwait",
|
|
695
|
+
"Kyrgyzstan",
|
|
696
|
+
"Laos",
|
|
697
|
+
"Latvia",
|
|
698
|
+
"Lebanon",
|
|
699
|
+
"Lesotho",
|
|
700
|
+
"Liberia",
|
|
701
|
+
"Libya",
|
|
702
|
+
"Liechtenstein",
|
|
703
|
+
"Lithuania",
|
|
704
|
+
"Luxembourg",
|
|
705
|
+
"Macedonia",
|
|
706
|
+
"Madagascar",
|
|
707
|
+
"Malawi",
|
|
708
|
+
"Malaysia",
|
|
709
|
+
"Maldives",
|
|
710
|
+
"Mali",
|
|
711
|
+
"Malta",
|
|
712
|
+
"Marshall Islands",
|
|
713
|
+
"Mauritania",
|
|
714
|
+
"Mauritius",
|
|
715
|
+
"Mexico",
|
|
716
|
+
"Micronesia",
|
|
717
|
+
"Moldova",
|
|
718
|
+
"Monaco",
|
|
719
|
+
"Mongolia",
|
|
720
|
+
"Montenegro",
|
|
721
|
+
"Morocco",
|
|
722
|
+
"Mozambique",
|
|
723
|
+
"Myanmar (Burma)",
|
|
724
|
+
"Namibia",
|
|
725
|
+
"Nauru",
|
|
726
|
+
"Nepal",
|
|
727
|
+
"Netherlands",
|
|
728
|
+
"New Zealand",
|
|
729
|
+
"Nicaragua",
|
|
730
|
+
"Niger",
|
|
731
|
+
"Nigeria",
|
|
732
|
+
"Norway",
|
|
733
|
+
"Oman",
|
|
734
|
+
"Pakistan",
|
|
735
|
+
"Palau",
|
|
736
|
+
"Panama",
|
|
737
|
+
"Papua New Guinea",
|
|
738
|
+
"Paraguay",
|
|
739
|
+
"Peru",
|
|
740
|
+
"Philippines",
|
|
741
|
+
"Poland",
|
|
742
|
+
"Portugal",
|
|
743
|
+
"Qatar",
|
|
744
|
+
"Romania",
|
|
745
|
+
"Russia",
|
|
746
|
+
"Rwanda",
|
|
747
|
+
"Saint Kitts and Nevis",
|
|
748
|
+
"SaintLucia",
|
|
749
|
+
"Saint Vincent and the Grenadines",
|
|
750
|
+
"Samoa",
|
|
751
|
+
"San Marino",
|
|
752
|
+
"Sao Tome and Principe",
|
|
753
|
+
"Saudi Arabia",
|
|
754
|
+
"Senegal",
|
|
755
|
+
"Serbia",
|
|
756
|
+
"Seychelles",
|
|
757
|
+
"Sierra Leone",
|
|
758
|
+
"Singapore",
|
|
759
|
+
"Slovakia",
|
|
760
|
+
"Slovenia",
|
|
761
|
+
"Solomon Islands",
|
|
762
|
+
"Somalia",
|
|
763
|
+
"South Africa",
|
|
764
|
+
"Spain",
|
|
765
|
+
"SriLanka",
|
|
766
|
+
"Sudan",
|
|
767
|
+
"Suriname",
|
|
768
|
+
"Swaziland",
|
|
769
|
+
"Sweden",
|
|
770
|
+
"Switzerland",
|
|
771
|
+
"Syria",
|
|
772
|
+
"Tajikistan",
|
|
773
|
+
"Tanzania",
|
|
774
|
+
"Thailand",
|
|
775
|
+
"Timor-Leste (East Timor)",
|
|
776
|
+
"Togo",
|
|
777
|
+
"Tonga",
|
|
778
|
+
"Trinidad and Tobago",
|
|
779
|
+
"Tunisia",
|
|
780
|
+
"Turkey",
|
|
781
|
+
"Turkmenistan",
|
|
782
|
+
"Tuvalu",
|
|
783
|
+
"Uganda",
|
|
784
|
+
"Ukraine",
|
|
785
|
+
"United Arab Emirates",
|
|
786
|
+
"United Kingdom",
|
|
787
|
+
"United States",
|
|
788
|
+
"Uruguay",
|
|
789
|
+
"Uzbekistan",
|
|
790
|
+
"Vanuatu",
|
|
791
|
+
"Vatican City",
|
|
792
|
+
"Venezuela",
|
|
793
|
+
"Vietnam",
|
|
794
|
+
"Yemen",
|
|
795
|
+
"Zambia",
|
|
796
|
+
"Zimbabwe"
|
|
797
|
+
]
|
|
798
|
+
});
|
|
799
|
+
|
|
800
|
+
const crimeCommittedDateCenter = () => verticalDate({
|
|
801
|
+
name: 'Crime_Committed_Date'
|
|
802
|
+
});
|
|
803
|
+
|
|
804
|
+
const criminalChargeTypeCenter = () => col2RadioCenter({
|
|
805
|
+
name: 'Criminal_Charge_Type',
|
|
806
|
+
options: [
|
|
807
|
+
"Felony",
|
|
808
|
+
"Misdemeanor",
|
|
809
|
+
"Juvenile",
|
|
810
|
+
"Other"
|
|
811
|
+
]
|
|
812
|
+
});
|
|
813
|
+
|
|
814
|
+
const criminalChargesFiledCenter = () => verticalRadio({
|
|
815
|
+
name: 'Criminal_Charges_Filed',
|
|
816
|
+
options: [
|
|
817
|
+
"Yes",
|
|
818
|
+
"No",
|
|
819
|
+
"Not Sure"
|
|
820
|
+
]
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
const degreeOfInterest$1 = (scope, help) => sbsSelect({
|
|
824
|
+
name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
825
|
+
id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
826
|
+
label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
|
|
827
|
+
help: help,
|
|
828
|
+
options: [
|
|
829
|
+
'Definitely',
|
|
830
|
+
'Probably',
|
|
831
|
+
'Maybe',
|
|
832
|
+
"Absolutely Can't Afford"
|
|
833
|
+
]
|
|
834
|
+
});
|
|
835
|
+
|
|
836
|
+
const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
|
|
837
|
+
name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
838
|
+
id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
|
|
839
|
+
help: help,
|
|
840
|
+
options: [
|
|
841
|
+
'Definitely',
|
|
842
|
+
'Probably',
|
|
843
|
+
'Maybe',
|
|
844
|
+
"Absolutely Can't Afford"
|
|
845
|
+
]
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
const defaultNoticeCenter = () => verticalYesNoRadio({
|
|
849
|
+
name: 'Default_Notice',
|
|
850
|
+
});
|
|
851
|
+
|
|
852
|
+
const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
|
|
853
|
+
|
|
854
|
+
const disabilityConditionStopWork$1 = (scope) => sbsYesNoRadio({
|
|
855
|
+
name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
|
|
856
|
+
label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
|
|
857
|
+
});
|
|
858
|
+
|
|
859
|
+
const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
|
|
860
|
+
name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
|
|
861
|
+
});
|
|
862
|
+
|
|
863
|
+
const disabilityWorkHistory$1 = (scope) => sbsYesNoRadio({
|
|
864
|
+
name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
|
|
865
|
+
label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
|
|
866
|
+
});
|
|
867
|
+
|
|
868
|
+
const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
|
|
869
|
+
name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
|
|
870
|
+
});
|
|
871
|
+
|
|
872
|
+
const doctorTreatment$1 = (scope) => sbsYesNoRadio({
|
|
873
|
+
name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
|
|
874
|
+
label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
|
|
875
|
+
});
|
|
876
|
+
|
|
877
|
+
const doctorTreatmentCenter = () => verticalYesNoRadio({
|
|
878
|
+
name: 'Doctor_Treatment',
|
|
879
|
+
});
|
|
880
|
+
|
|
881
|
+
const driversLicenseTypeCenter = () => verticalButtonRadio({
|
|
882
|
+
name: 'Drivers_License_Type',
|
|
883
|
+
options: [
|
|
884
|
+
"Private",
|
|
885
|
+
"Commercial"
|
|
886
|
+
]
|
|
887
|
+
});
|
|
888
|
+
|
|
889
|
+
const email = () => sbsText({
|
|
890
|
+
$formkit: 'email',
|
|
891
|
+
name: 'Email',
|
|
892
|
+
label: 'Email Address:',
|
|
893
|
+
placeholder: 'email@domain.com',
|
|
894
|
+
autocomplete: 'email',
|
|
895
|
+
'data-tf-sensitive': 'false',
|
|
896
|
+
validation: 'required|email',
|
|
897
|
+
validationMessages: {
|
|
898
|
+
required: 'Email is required',
|
|
899
|
+
email: 'Invalid Email'
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
|
|
903
|
+
const employerTypeCenter = () => col2RadioCenter({
|
|
904
|
+
name: 'Employer_Type',
|
|
905
|
+
options: [
|
|
906
|
+
"Sole proprietorship (mom and pop)",
|
|
907
|
+
"Partnership",
|
|
908
|
+
"Franchise",
|
|
909
|
+
"Privately held company",
|
|
910
|
+
"Public corporation",
|
|
911
|
+
"Government Agency",
|
|
912
|
+
"Don't know"
|
|
913
|
+
]
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
const employeeAtCompanyCenter = (scope) => verticalYesNoRadio({
|
|
917
|
+
name: scope ? scope + ':' + 'Employee_At_Company' : 'Employee_At_Company',
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
const employmentAndWorkplaceTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
921
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
922
|
+
options: [
|
|
923
|
+
'Workplace Harassment',
|
|
924
|
+
'Workplace Discrimination',
|
|
925
|
+
'Wrongful Termination',
|
|
926
|
+
'Payment Disputes',
|
|
927
|
+
'Workers Compensation',
|
|
928
|
+
'Personal Injury',
|
|
929
|
+
'Unemployment',
|
|
930
|
+
'Other Workplace Issues'
|
|
931
|
+
]
|
|
932
|
+
}, updates));
|
|
933
|
+
|
|
934
|
+
const estateLegalServicesNeeded$1 = (scope) => sbsSelect({
|
|
935
|
+
name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
|
|
936
|
+
label: "Legal Services Needed for Your Estate:",
|
|
937
|
+
options: [
|
|
938
|
+
"Charitable Giving",
|
|
939
|
+
"Contested Wills",
|
|
940
|
+
"Drafting Wills or Trust",
|
|
941
|
+
"Estate Administration",
|
|
942
|
+
"Asset Protection",
|
|
943
|
+
"Other"
|
|
944
|
+
]
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
const estateLegalServicesNeededCenter = (scope) => col2RadioCenter({
|
|
948
|
+
name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
|
|
949
|
+
options: [
|
|
950
|
+
"Charitable Giving",
|
|
951
|
+
"Contested Wills",
|
|
952
|
+
"Drafting Wills or Trust",
|
|
953
|
+
"Estate Administration",
|
|
954
|
+
"Asset Protection",
|
|
955
|
+
"Other"
|
|
956
|
+
]
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
const firstName = () => sbsText({
|
|
960
|
+
$formkit: 'text',
|
|
961
|
+
label: 'First Name:',
|
|
962
|
+
placeholder: 'First',
|
|
963
|
+
name: 'First_Name',
|
|
964
|
+
autocomplete: "given-name",
|
|
965
|
+
validationMessages: {
|
|
966
|
+
required: 'First Name is required'
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
|
|
970
|
+
const TOLPOptions = [
|
|
971
|
+
'Adoption',
|
|
972
|
+
'Asbestos and Mesothelioma',
|
|
973
|
+
'Auto and Car Accidents',
|
|
974
|
+
'Bankruptcy',
|
|
975
|
+
'Birth Certificate and Name Change',
|
|
976
|
+
'Business Lawyers',
|
|
977
|
+
'Child Custody',
|
|
978
|
+
'Child Support',
|
|
979
|
+
'Civil Rights and Discrimination',
|
|
980
|
+
'Consumer Lawyers',
|
|
981
|
+
'Copyrights and Trademarks',
|
|
982
|
+
'Criminal and Felony',
|
|
983
|
+
'Debt and Collections',
|
|
984
|
+
'Defend a Lawsuit',
|
|
985
|
+
'Divorce and Separation',
|
|
986
|
+
'DUI and DWI',
|
|
987
|
+
'Elder Law',
|
|
988
|
+
'Employment and Workplace',
|
|
989
|
+
'Expungement',
|
|
990
|
+
'Family Issues',
|
|
991
|
+
'File a Lawsuit',
|
|
992
|
+
'Foreclosure',
|
|
993
|
+
'Guardianship',
|
|
994
|
+
'Harassment and Discrimination',
|
|
995
|
+
'Identity Theft',
|
|
996
|
+
'Immigration and Visas',
|
|
997
|
+
'Insurance',
|
|
998
|
+
'Landlord and Tenant',
|
|
999
|
+
'Lemon Law',
|
|
1000
|
+
'Long Term Disability',
|
|
1001
|
+
'Medical Malpractice',
|
|
1002
|
+
'Non-Workplace Discrimination',
|
|
1003
|
+
'Non-Workplace Harassment',
|
|
1004
|
+
'Patents and Intellectual Property',
|
|
1005
|
+
'Personal Injury',
|
|
1006
|
+
'Power of Attorney',
|
|
1007
|
+
'Probate and Estates',
|
|
1008
|
+
'Product Liability',
|
|
1009
|
+
'Property Damage',
|
|
1010
|
+
'Real Estate',
|
|
1011
|
+
'Sexual Harassment',
|
|
1012
|
+
'Social Security Disability and Insurance',
|
|
1013
|
+
'Tax and IRS',
|
|
1014
|
+
'Traffic and Tickets',
|
|
1015
|
+
'Unemployment',
|
|
1016
|
+
'Victim of a Crime',
|
|
1017
|
+
'Wills and Trusts',
|
|
1018
|
+
'Workers Compensation',
|
|
1019
|
+
'Workplace Discrimination',
|
|
1020
|
+
'Workplace Harassment',
|
|
1021
|
+
'Wrongful Death',
|
|
1022
|
+
'Wrongful Termination',
|
|
1023
|
+
'Not Sure or Other'
|
|
1024
|
+
];
|
|
1025
|
+
|
|
1026
|
+
const generalTOLPCenter = (updates) => verticalSelect(merge({
|
|
1027
|
+
name: 'Type_Of_Legal_Problem',
|
|
1028
|
+
id: 'Type_Of_Legal_Problem',
|
|
1029
|
+
options: TOLPOptions,
|
|
1030
|
+
}, updates));
|
|
1031
|
+
|
|
1032
|
+
const haveAttorney$1 = (scope) => sbsYesNoRadio({
|
|
1033
|
+
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
1034
|
+
label: 'Already Working with An Attorney?'
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
const haveAttorneyCenter = () => verticalYesNoRadio({
|
|
1038
|
+
name: 'Have_Attorney',
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
const haveChildren$1 = (scope) => sbsYesNoRadio({
|
|
1042
|
+
name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
|
|
1043
|
+
label: 'Do You Have Children?'
|
|
1044
|
+
});
|
|
1045
|
+
|
|
1046
|
+
const haveChildrenCenter = (scope) => verticalYesNoRadio({
|
|
1047
|
+
name: scope ? scope + ':' + 'Have_Children' : 'Have_Children'
|
|
1048
|
+
});
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
const haveCourtDateCenter = () => verticalYesNoRadio({
|
|
1052
|
+
name: 'Have_Court_Date',
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1055
|
+
const immigrationDetailsCenter = (scope) => verticalSelect({
|
|
1056
|
+
name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
|
|
1057
|
+
options: [
|
|
1058
|
+
"In the USA with proper documentation",
|
|
1059
|
+
"In the USA without proper documentation",
|
|
1060
|
+
"Not in the USA",
|
|
1061
|
+
"In Deportation/Removal Proceedings",
|
|
1062
|
+
"Currently Detained (friend or family submitting this request)",
|
|
1063
|
+
"Out on Bond",
|
|
1064
|
+
"None Apply"
|
|
1065
|
+
]
|
|
1066
|
+
});
|
|
1067
|
+
|
|
1068
|
+
const immigrationEntryCenter = (scope) => verticalSelect({
|
|
1069
|
+
name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
|
|
1070
|
+
options: [
|
|
1071
|
+
"With Proper Documents/Visa and Inspection through Customs Border Patrol",
|
|
1072
|
+
"Illegally",
|
|
1073
|
+
"No Entry",
|
|
1074
|
+
"Other"
|
|
1075
|
+
]
|
|
1076
|
+
});
|
|
1077
|
+
|
|
1078
|
+
const immigrationLocationCenter = (scope) => col2RadioCenter({
|
|
1079
|
+
name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
|
|
1080
|
+
options: [
|
|
1081
|
+
"In the USA",
|
|
1082
|
+
"Outside the USA"
|
|
1083
|
+
]
|
|
1084
|
+
});
|
|
1085
|
+
|
|
1086
|
+
const immigrationTypeCenter = (scope) => verticalSelect({
|
|
1087
|
+
name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
|
|
1088
|
+
options: [
|
|
1089
|
+
"Citizenship (for current green card holders)",
|
|
1090
|
+
"Permanent Visa Family Based (green cards)",
|
|
1091
|
+
"Permanent Visa Business Based (green cards)",
|
|
1092
|
+
"Temporary Business Visa",
|
|
1093
|
+
"Temporary Tourist Visa",
|
|
1094
|
+
"Investor",
|
|
1095
|
+
"Asylum",
|
|
1096
|
+
"Self Petition (violence & abuse victims)",
|
|
1097
|
+
"Removal/Deportation Proceeding",
|
|
1098
|
+
"Other"
|
|
1099
|
+
]
|
|
1100
|
+
});
|
|
1101
|
+
|
|
1102
|
+
const immigrationStatusCenter = (scope) => verticalSelect({
|
|
1103
|
+
name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
|
|
1104
|
+
options: [
|
|
1105
|
+
"Out of Status (overstayed my visa)",
|
|
1106
|
+
"Current Visa Holder (in status)",
|
|
1107
|
+
"Lawful Permanent Resident (green card)",
|
|
1108
|
+
"Not Applicable (outside the USA)",
|
|
1109
|
+
"Other"
|
|
1110
|
+
]
|
|
1111
|
+
});
|
|
1112
|
+
|
|
1113
|
+
const incidentDate$1 = (scope) => sbsDate({
|
|
1114
|
+
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
1115
|
+
label: 'Date of Incident:',
|
|
1116
|
+
});
|
|
1117
|
+
|
|
1118
|
+
const incidentDateCenter = (scope) => verticalDate({
|
|
1119
|
+
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1122
|
+
const lastName = () => sbsText({
|
|
1123
|
+
$formkit: 'text',
|
|
1124
|
+
label: 'Last Name:',
|
|
1125
|
+
placeholder: 'Last',
|
|
1126
|
+
name: 'Last_Name',
|
|
1127
|
+
autocomplete: "family-name",
|
|
1128
|
+
validationMessages: {
|
|
1129
|
+
required: 'Last Name is required'
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
|
|
1133
|
+
const landlordTenantPartyCenter = () => verticalButtonRadio({
|
|
1134
|
+
name: 'Landlord_Tenant_Party',
|
|
1135
|
+
options: [
|
|
1136
|
+
"Landlord",
|
|
1137
|
+
"Tenant",
|
|
1138
|
+
"Other"
|
|
1139
|
+
]
|
|
1140
|
+
});
|
|
1141
|
+
|
|
1142
|
+
const landlordTenantIssueRadioCenter = () => col2RadioCenter({
|
|
1143
|
+
id: 'Landlord_Tenant_Issue',
|
|
1144
|
+
name: 'Landlord_Tenant_Issue',
|
|
1145
|
+
options: [
|
|
1146
|
+
"Eviction",
|
|
1147
|
+
"Repairs and Maintenance",
|
|
1148
|
+
"Lease and Rental Agreements",
|
|
1149
|
+
"Discrimination",
|
|
1150
|
+
"Right of Entry and Privacy",
|
|
1151
|
+
"Screening and Applications",
|
|
1152
|
+
"Environmental Hazards",
|
|
1153
|
+
"Other Dispute"
|
|
1154
|
+
]
|
|
1155
|
+
});
|
|
1156
|
+
|
|
1157
|
+
const lawsuitOtherPartyCenter = () => col2RadioCenter({
|
|
1158
|
+
name: 'Lawsuit_Other_Party',
|
|
1159
|
+
options: [
|
|
1160
|
+
"Individual",
|
|
1161
|
+
"Small Business",
|
|
1162
|
+
"Large Corporation",
|
|
1163
|
+
"Government Entity"
|
|
1164
|
+
]
|
|
1165
|
+
});
|
|
1166
|
+
|
|
1167
|
+
const lawyerPaymentMethod$1 = (scope) => sbsSelect({
|
|
1168
|
+
name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
|
|
1169
|
+
label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
|
|
1170
|
+
help: 'No payment necessary to speak with lawyers.',
|
|
1171
|
+
options: [
|
|
1172
|
+
'Cash',
|
|
1173
|
+
'Check',
|
|
1174
|
+
'Credit Card',
|
|
1175
|
+
'Friend',
|
|
1176
|
+
'Family',
|
|
1177
|
+
'Other'
|
|
1178
|
+
]
|
|
1179
|
+
});
|
|
1180
|
+
|
|
1181
|
+
const lawyerPaymentMethodCenter = (scope) => col2RadioCenter({
|
|
1182
|
+
name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
|
|
1183
|
+
help: 'No payment necessary to start a consultation.',
|
|
1184
|
+
options: {
|
|
1185
|
+
'Cash': 'Cash',
|
|
1186
|
+
'Credit Card': 'Credit Card',
|
|
1187
|
+
'Family': 'Family or Friend',
|
|
1188
|
+
'Other': 'Other'
|
|
1189
|
+
},
|
|
1190
|
+
fieldsetClass: '$reset t-flex t-flex-col t-items-center'
|
|
1191
|
+
});
|
|
1192
|
+
|
|
1193
|
+
const legalCrossSells$1 = () => col2Checkbox({
|
|
1194
|
+
id: 'Legal_CrossSells',
|
|
1195
|
+
name: 'Legal_CrossSells',
|
|
1196
|
+
help: 'Just hit "Next" if none apply',
|
|
1197
|
+
helpClass: 't-text-center !t-text-sm',
|
|
1198
|
+
validation: null,
|
|
1199
|
+
options: {
|
|
1200
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Auto and Car Accidents"',
|
|
1201
|
+
then: {
|
|
1202
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1203
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1204
|
+
'Workers Compensation': 'Workplace Injury',
|
|
1205
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1206
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1207
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1208
|
+
},
|
|
1209
|
+
else: {
|
|
1210
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
|
|
1211
|
+
then: {
|
|
1212
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1213
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1214
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1215
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1216
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1217
|
+
// TODO add one more?
|
|
1218
|
+
},
|
|
1219
|
+
else: {
|
|
1220
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
|
|
1221
|
+
then: {
|
|
1222
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
1223
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1224
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1225
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1226
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1227
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1228
|
+
},
|
|
1229
|
+
else: {
|
|
1230
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Wills and Trusts" || $getVal($get(form), "Type_Of_Legal_Problem") === "Probate and Estates" || $getVal($get(form), "Type_Of_Legal_Problem") === "Power of Attorney"',
|
|
1231
|
+
then: {
|
|
1232
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
1233
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
1234
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1235
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1236
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1237
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1238
|
+
},
|
|
1239
|
+
else: {
|
|
1240
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
|
|
1241
|
+
then: {
|
|
1242
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
1243
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1244
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1245
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1246
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
1247
|
+
'Child Custody': 'Need help with Child Custody',
|
|
1248
|
+
},
|
|
1249
|
+
else: {
|
|
1250
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
1251
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
1252
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
1253
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
1254
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
1255
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
|
|
1264
|
+
const loanAmountCenter = () => verticalSelect({
|
|
1265
|
+
name: 'Loan_Amount',
|
|
1266
|
+
options: [
|
|
1267
|
+
"Less than $10,000",
|
|
1268
|
+
"$10,000 - $24,999",
|
|
1269
|
+
"$25,000 - $49,999",
|
|
1270
|
+
"$50,000 - $99,999",
|
|
1271
|
+
"$100,000 - $199,999",
|
|
1272
|
+
"$200,000 - $299,999",
|
|
1273
|
+
"$300,000 - $399,999",
|
|
1274
|
+
"$400,000 - $499,999",
|
|
1275
|
+
"$500,000 - $599,999",
|
|
1276
|
+
"More than $600,000"
|
|
1277
|
+
]
|
|
1278
|
+
});
|
|
1279
|
+
|
|
1280
|
+
const maritalStatus$1 = (scope) => sbsSelect({
|
|
1281
|
+
name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
|
|
1282
|
+
label: 'Marital Status:',
|
|
1283
|
+
options: [
|
|
1284
|
+
'Unmarried, Living Together',
|
|
1285
|
+
'Unmarried, Do Not Live Together',
|
|
1286
|
+
'Married, Living Together',
|
|
1287
|
+
'Separated',
|
|
1288
|
+
'Divorced',
|
|
1289
|
+
'Other'
|
|
1290
|
+
]
|
|
1291
|
+
});
|
|
1292
|
+
|
|
1293
|
+
const maritalStatusCenter = (scope) => col2RadioCenter({
|
|
1294
|
+
name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
|
|
1295
|
+
options: [
|
|
1296
|
+
'Unmarried, Living Together',
|
|
1297
|
+
'Unmarried, Do Not Live Together',
|
|
1298
|
+
'Married, Living Together',
|
|
1299
|
+
'Separated',
|
|
1300
|
+
'Divorced',
|
|
1301
|
+
'Other'
|
|
1302
|
+
]
|
|
1303
|
+
});
|
|
1304
|
+
|
|
1305
|
+
const medicalMalpracticeInjuriesCenter = () => verticalSelect({
|
|
1306
|
+
name: 'Medical_Malpractice_Injuries',
|
|
1307
|
+
options: [
|
|
1308
|
+
"No Injury",
|
|
1309
|
+
"Minor Injury",
|
|
1310
|
+
"Disfigurement or cosmetic injury",
|
|
1311
|
+
"Short term loss of physical ability",
|
|
1312
|
+
"Long term loss of physical injury",
|
|
1313
|
+
"Possibility of future harm",
|
|
1314
|
+
"Death of Patient"
|
|
1315
|
+
]
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
const numEmployeesOfBusinessCenter = () => col2RadioCenter({
|
|
1319
|
+
name: 'Num_Employees_Of_Business',
|
|
1320
|
+
options: [
|
|
1321
|
+
"1-5",
|
|
1322
|
+
"6-20",
|
|
1323
|
+
"21-50",
|
|
1324
|
+
"51-100",
|
|
1325
|
+
"101-500",
|
|
1326
|
+
"501-1,000",
|
|
1327
|
+
"More than 1,000"
|
|
1328
|
+
]
|
|
1329
|
+
});
|
|
1330
|
+
|
|
1331
|
+
const ownRealEstateCenter = () => verticalYesNoRadio({
|
|
1332
|
+
name: 'Own_Real_Estate',
|
|
1333
|
+
});
|
|
1334
|
+
|
|
1335
|
+
const patentAssistanceTypeCenter = () => verticalSelect({
|
|
1336
|
+
name: 'Patent_Assistance_Type',
|
|
1337
|
+
options: [
|
|
1338
|
+
"Obtaining a Patent",
|
|
1339
|
+
"Avoiding Patent Infringement",
|
|
1340
|
+
"Suing for Patent Infringement",
|
|
1341
|
+
"Defending Against a Claim of Patent Infringement",
|
|
1342
|
+
"Other"
|
|
1343
|
+
]
|
|
1344
|
+
});
|
|
1345
|
+
|
|
1346
|
+
const patentForCenter = () => col2RadioCenter({
|
|
1347
|
+
name: 'Patent_For',
|
|
1348
|
+
options: [
|
|
1349
|
+
"Product or Machine",
|
|
1350
|
+
"Process",
|
|
1351
|
+
"Computer Software",
|
|
1352
|
+
"Living Organism or Plant",
|
|
1353
|
+
"Ornamental Design",
|
|
1354
|
+
"Other"
|
|
1355
|
+
]
|
|
1356
|
+
});
|
|
1357
|
+
|
|
1358
|
+
const pendingCharges$1 = (scope) => sbsYesNoRadio({
|
|
1359
|
+
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
1360
|
+
label: 'Do you currently have any pending charges?'
|
|
1361
|
+
});
|
|
1362
|
+
|
|
1363
|
+
const pendingChargesCenter = (scope) => verticalYesNoRadio({
|
|
1364
|
+
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
1365
|
+
});
|
|
1366
|
+
|
|
1367
|
+
const phone = () => sbsText({
|
|
1368
|
+
$formkit: 'tel',
|
|
1369
|
+
name: 'Primary_Phone',
|
|
1370
|
+
label: 'Phone Number:',
|
|
1371
|
+
placeholder: '###-###-####',
|
|
1372
|
+
maxlength: 12,
|
|
1373
|
+
help: '10-digit phone number, hyphens optional',
|
|
1374
|
+
autocomplete: 'tel-national',
|
|
1375
|
+
'data-tf-sensitive': 'false',
|
|
1376
|
+
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
|
|
1377
|
+
validationMessages: {
|
|
1378
|
+
required: 'Field is required',
|
|
1379
|
+
matches: 'Invalid Phone Format, use ###-###-####',
|
|
1380
|
+
valid_phone: 'Invalid Phone Number'
|
|
1381
|
+
},
|
|
1382
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
1383
|
+
});
|
|
1384
|
+
|
|
1385
|
+
const primaryInjury$1 = (scope) => sbs2ColRadio({
|
|
1386
|
+
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
1387
|
+
label: 'Primary Injury:',
|
|
1388
|
+
options: [
|
|
1389
|
+
"Anxiety",
|
|
1390
|
+
"Back or Neck Pain",
|
|
1391
|
+
"Broken Bones",
|
|
1392
|
+
"Cuts and Bruises",
|
|
1393
|
+
"Headaches",
|
|
1394
|
+
"Memory Loss",
|
|
1395
|
+
"Loss of Limb",
|
|
1396
|
+
"Not Sure or Other"
|
|
1397
|
+
]
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
const primaryInjuryCenter = (scope) => col2RadioCenter({
|
|
1401
|
+
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
1402
|
+
options: [
|
|
1403
|
+
"Anxiety",
|
|
1404
|
+
"Back or Neck Pain",
|
|
1405
|
+
"Broken Bones",
|
|
1406
|
+
"Cuts and Bruises",
|
|
1407
|
+
"Headaches",
|
|
1408
|
+
"Memory Loss",
|
|
1409
|
+
"Loss of Limb",
|
|
1410
|
+
"Not Sure or Other"
|
|
1411
|
+
]
|
|
1412
|
+
});
|
|
1413
|
+
|
|
1414
|
+
const priorAlcoholOffenses$1 = (scope) => sbsYesNoRadio({
|
|
1415
|
+
name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
|
|
1416
|
+
label: 'Any Prior Alcohol Related Offenses?'
|
|
1417
|
+
});
|
|
1418
|
+
|
|
1419
|
+
const priorAlcoholOffensesCenter = (scope) => verticalYesNoRadio({
|
|
1420
|
+
name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
const policeReportFiled$1 = (scope) => sbsYesNoRadio({
|
|
1424
|
+
name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
|
|
1425
|
+
label: 'Was a Police Report Filed?'
|
|
1426
|
+
});
|
|
1427
|
+
|
|
1428
|
+
const policeReportFiledCenter = (scope) => verticalYesNoRadio({
|
|
1429
|
+
name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
|
|
1430
|
+
});
|
|
1431
|
+
|
|
1432
|
+
const realEstateAreaCenter = () => col2RadioCenter({
|
|
1433
|
+
name: 'Real_Estate_Area',
|
|
1434
|
+
options: [
|
|
1435
|
+
"Condos and Coops",
|
|
1436
|
+
"Construction Disputes",
|
|
1437
|
+
"Purchase/Sale Contract",
|
|
1438
|
+
"Refinancing Agreement",
|
|
1439
|
+
"Title and Boundary Disputes",
|
|
1440
|
+
"Zoning, Planning and Land Use",
|
|
1441
|
+
"Property Deeds and Transfers",
|
|
1442
|
+
"Liens",
|
|
1443
|
+
"Other"
|
|
1444
|
+
]
|
|
1445
|
+
});
|
|
1446
|
+
|
|
1447
|
+
const realEstateTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
1448
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
1449
|
+
options: [
|
|
1450
|
+
'Contracts and Agreements',
|
|
1451
|
+
'Deeds, Liens, and Titles',
|
|
1452
|
+
'Foreclosure',
|
|
1453
|
+
'Insurance',
|
|
1454
|
+
'Landlord and Tenant',
|
|
1455
|
+
'Loans and Mortgages',
|
|
1456
|
+
'Wills, Trusts, and Estates',
|
|
1457
|
+
'Property Damage',
|
|
1458
|
+
'Not Sure or Other'
|
|
1459
|
+
]
|
|
1460
|
+
}, updates));
|
|
1461
|
+
|
|
1462
|
+
const relationshipToVictimCenter = () => col2RadioCenter({
|
|
1463
|
+
name: 'Relationship_To_Victim',
|
|
1464
|
+
options: [
|
|
1465
|
+
"Parent",
|
|
1466
|
+
"Spouse",
|
|
1467
|
+
"Sibling",
|
|
1468
|
+
"Friend",
|
|
1469
|
+
"Other"
|
|
1470
|
+
]
|
|
1471
|
+
});
|
|
1472
|
+
|
|
1473
|
+
const roleInMatterCriminalCenter = () => verticalRadio({
|
|
1474
|
+
name: 'Role_In_Matter_Criminal',
|
|
1475
|
+
options: [
|
|
1476
|
+
"I have been accused",
|
|
1477
|
+
"I am acting on behalf of someone who has been accused",
|
|
1478
|
+
"Other"
|
|
1479
|
+
]
|
|
1480
|
+
});
|
|
1481
|
+
|
|
1482
|
+
const roleInMatterProbate$1 = (scope) => sbsSelect({
|
|
1483
|
+
name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
|
|
1484
|
+
label: "What Is Your Role in this Matter?",
|
|
1485
|
+
options: [
|
|
1486
|
+
"Preparing My Will",
|
|
1487
|
+
"Executor",
|
|
1488
|
+
"Heir",
|
|
1489
|
+
"Other"
|
|
1490
|
+
]
|
|
1491
|
+
});
|
|
1492
|
+
|
|
1493
|
+
const roleInMatterProbateCenter = (scope) => col2RadioCenter({
|
|
1494
|
+
name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
|
|
1495
|
+
options: [
|
|
1496
|
+
"Preparing My Will",
|
|
1497
|
+
"Executor",
|
|
1498
|
+
"Heir",
|
|
1499
|
+
"Other"
|
|
1500
|
+
]
|
|
1501
|
+
});
|
|
1502
|
+
|
|
1503
|
+
const socialSecurityDisabilityReceivingBenefits$1 = (scope) => sbsYesNoRadio({
|
|
1504
|
+
name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
|
|
1505
|
+
label: 'Are You Currently Receiving Social Security Disability Benefits?'
|
|
1506
|
+
});
|
|
1507
|
+
|
|
1508
|
+
const socialSecurityDisabilityReceivingBenefitsCenter = (scope) => verticalYesNoRadio({
|
|
1509
|
+
name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
|
|
1510
|
+
});
|
|
1511
|
+
|
|
1512
|
+
const taxLevelCenter = () => col2RadioCenter({
|
|
1513
|
+
name: 'Tax_Level',
|
|
1514
|
+
options: [
|
|
1515
|
+
"Federal",
|
|
1516
|
+
"State",
|
|
1517
|
+
"Local"
|
|
1518
|
+
]
|
|
1519
|
+
});
|
|
1520
|
+
|
|
1521
|
+
const taxIssueTypeCenter = () => col2RadioCenter({
|
|
1522
|
+
name: 'Tax_Issue_Type',
|
|
1523
|
+
options: [
|
|
1524
|
+
"Income",
|
|
1525
|
+
"Property",
|
|
1526
|
+
"Corporate"
|
|
1527
|
+
]
|
|
1528
|
+
});
|
|
1529
|
+
|
|
1530
|
+
const taxProblemDetailsCenter = () => verticalSelect({
|
|
1531
|
+
name: 'Tax_Problem_Details',
|
|
1532
|
+
options: [
|
|
1533
|
+
"Assets Seized",
|
|
1534
|
+
"Bank Account Levied",
|
|
1535
|
+
"Cannot Pay Taxes",
|
|
1536
|
+
"Innocent Spouse",
|
|
1537
|
+
"Lien Filed",
|
|
1538
|
+
"Received Audit Notice",
|
|
1539
|
+
"Unpaid Interest",
|
|
1540
|
+
"Wage Garnishment",
|
|
1541
|
+
"Other"
|
|
1542
|
+
]
|
|
1543
|
+
});
|
|
1544
|
+
|
|
1545
|
+
const totalDebtCenter = () => col2RadioCenter({
|
|
1546
|
+
name: 'Total_Debt',
|
|
1547
|
+
options: [
|
|
1548
|
+
"Less than 5K",
|
|
1549
|
+
"5K to 10K",
|
|
1550
|
+
"10K to 20K",
|
|
1551
|
+
"20K to 50K",
|
|
1552
|
+
"More than 50K"
|
|
1553
|
+
]
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1556
|
+
const totalMonthlyIncomeCenter = () => verticalSelect({
|
|
1557
|
+
name: 'Total_Monthly_Income',
|
|
1558
|
+
options: [
|
|
1559
|
+
"Less than 1K",
|
|
1560
|
+
"1K to 2K",
|
|
1561
|
+
"2K to 3K",
|
|
1562
|
+
"3K to 4K",
|
|
1563
|
+
"4K to 5K",
|
|
1564
|
+
"5K to 7K",
|
|
1565
|
+
"7K to 10K",
|
|
1566
|
+
"10K to 15K",
|
|
1567
|
+
"More than 15K"
|
|
1568
|
+
]
|
|
1569
|
+
});
|
|
1570
|
+
|
|
1571
|
+
const TCPAConsent = () => ({
|
|
1572
|
+
$formkit: 'checkbox',
|
|
1573
|
+
label: '$meta.tcpaLanguage',
|
|
1574
|
+
name: 'TCPA_Opt_In',
|
|
1575
|
+
'data-tf-sensitive': 'false',
|
|
1576
|
+
validation: 'required|accepted',
|
|
1577
|
+
validationMessages: {
|
|
1578
|
+
required: 'Consent is required',
|
|
1579
|
+
accepted: 'Consent is required'
|
|
1580
|
+
},
|
|
1581
|
+
classes: {
|
|
1582
|
+
label: "t-text-xs t-text-slate-500 t-font-normal"
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
|
|
1586
|
+
const typeOfAlcoholTest$1 = (scope) => sbsSelect({
|
|
1587
|
+
name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
|
|
1588
|
+
label: 'Type of Alcohol Test Performed?',
|
|
1589
|
+
options: [
|
|
1590
|
+
"No Test",
|
|
1591
|
+
"Refused Test",
|
|
1592
|
+
"Breath Test",
|
|
1593
|
+
"Blood Test",
|
|
1594
|
+
"Urine Test",
|
|
1595
|
+
"Don't Know"
|
|
1596
|
+
]
|
|
1597
|
+
});
|
|
1598
|
+
|
|
1599
|
+
const typeOfAlcoholTestCenter = (scope) => col2RadioCenter({
|
|
1600
|
+
name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
|
|
1601
|
+
options: [
|
|
1602
|
+
"No Test",
|
|
1603
|
+
"Refused Test",
|
|
1604
|
+
"Breath Test",
|
|
1605
|
+
"Blood Test",
|
|
1606
|
+
"Urine Test",
|
|
1607
|
+
"Don't Know"
|
|
1608
|
+
]
|
|
1609
|
+
});
|
|
1610
|
+
|
|
1611
|
+
const typeOfAssets$1 = (scope) => col2Checkbox({
|
|
1612
|
+
name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
|
|
1613
|
+
label: 'Type of Assets:',
|
|
1614
|
+
options: [
|
|
1615
|
+
"Business Interests",
|
|
1616
|
+
"Cash",
|
|
1617
|
+
"Life Insurance Policies",
|
|
1618
|
+
"Pensions/Retirement",
|
|
1619
|
+
"Personal Possessions",
|
|
1620
|
+
"Property",
|
|
1621
|
+
"Stock/Bonds"
|
|
1622
|
+
]
|
|
1623
|
+
});
|
|
1624
|
+
|
|
1625
|
+
const typeOfAssetsCenter = (scope) => verticalCol2Checkbox({
|
|
1626
|
+
name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
|
|
1627
|
+
options: [
|
|
1628
|
+
"Business Interests",
|
|
1629
|
+
"Cash",
|
|
1630
|
+
"Life Insurance Policies",
|
|
1631
|
+
"Pensions/Retirement",
|
|
1632
|
+
"Personal Possessions",
|
|
1633
|
+
"Property",
|
|
1634
|
+
"Stock/Bonds"
|
|
1635
|
+
]
|
|
1636
|
+
});
|
|
1637
|
+
|
|
1638
|
+
const typeOfPropertyCenter = () => col2RadioCenter({
|
|
1639
|
+
name: 'Type_Of_Property',
|
|
1640
|
+
options: [
|
|
1641
|
+
"Residential",
|
|
1642
|
+
"Commercial",
|
|
1643
|
+
"Industrial",
|
|
1644
|
+
"Agricultural",
|
|
1645
|
+
"Recreational",
|
|
1646
|
+
"Other"
|
|
1647
|
+
]
|
|
1648
|
+
});
|
|
1649
|
+
|
|
1650
|
+
const trafficViolationsCenter = () => verticalSelect({
|
|
1651
|
+
name: 'Traffic_Violations',
|
|
1652
|
+
options: [
|
|
1653
|
+
"Disregarding a Red Light",
|
|
1654
|
+
"Disregarding a Stop Sign",
|
|
1655
|
+
"DMV Letter About License",
|
|
1656
|
+
"DUI/DWI",
|
|
1657
|
+
"Failure to Appear in Court",
|
|
1658
|
+
"License Suspended/Revoked",
|
|
1659
|
+
"Minor in Possession of Alcohol",
|
|
1660
|
+
"No Child Safety Seat",
|
|
1661
|
+
"No Liability Insurance",
|
|
1662
|
+
"No Seat Belt",
|
|
1663
|
+
"Open Container of Alcohol",
|
|
1664
|
+
"Parking Ticket",
|
|
1665
|
+
"Racing",
|
|
1666
|
+
"Speeding",
|
|
1667
|
+
"Unpaid Traffic Tickets",
|
|
1668
|
+
"Warrant Issue for Arrest",
|
|
1669
|
+
"Other Violation"
|
|
1670
|
+
]
|
|
1671
|
+
});
|
|
1672
|
+
|
|
1673
|
+
const valueOfAssets$1 = (scope) => sbsSelect({
|
|
1674
|
+
name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
|
|
1675
|
+
label: 'Value of Your Assets?',
|
|
1676
|
+
options: [
|
|
1677
|
+
"Less than 50K",
|
|
1678
|
+
"50K to 100K",
|
|
1679
|
+
"100K to 250K",
|
|
1680
|
+
"250K to 500K",
|
|
1681
|
+
"500K to 1M",
|
|
1682
|
+
"More than 1M"
|
|
1683
|
+
]
|
|
1684
|
+
});
|
|
1685
|
+
|
|
1686
|
+
const valueOfAssetsCenter = (scope) => col2RadioCenter({
|
|
1687
|
+
name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
|
|
1688
|
+
options: [
|
|
1689
|
+
"Less than 50K",
|
|
1690
|
+
"50K to 100K",
|
|
1691
|
+
"100K to 250K",
|
|
1692
|
+
"250K to 500K",
|
|
1693
|
+
"500K to 1M",
|
|
1694
|
+
"More than 1M"
|
|
1695
|
+
]
|
|
1696
|
+
});
|
|
1697
|
+
|
|
1698
|
+
const veteransDisabilityAppliedCenter = () => verticalSelect({
|
|
1699
|
+
name: 'Veterans_Disability_Applied',
|
|
1700
|
+
options: [
|
|
1701
|
+
"Yes, Claim filed and awaiting decision",
|
|
1702
|
+
"Yes, Claim denied",
|
|
1703
|
+
"Yes, Claim on appeal",
|
|
1704
|
+
"Yes, Claim approved",
|
|
1705
|
+
"Yes, Benefits awarded",
|
|
1706
|
+
"No, Claim has not been filed"
|
|
1707
|
+
]
|
|
1708
|
+
});
|
|
1709
|
+
|
|
1710
|
+
const veteransDisabilityConditionsCenter = () => verticalCheckbox({
|
|
1711
|
+
label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
|
|
1712
|
+
name: 'Veterans_Disability_Conditions',
|
|
1713
|
+
options: [
|
|
1714
|
+
"Traumatic Physical Injury (broken bones, loss of limb)",
|
|
1715
|
+
"Mental Injury",
|
|
1716
|
+
"Occupational Disease",
|
|
1717
|
+
"Repeated Trauma Injury",
|
|
1718
|
+
"Other"
|
|
1719
|
+
]
|
|
1720
|
+
});
|
|
1721
|
+
|
|
1722
|
+
const veteransDisabilityRelationshipCenter = () => verticalSelect({
|
|
1723
|
+
name: 'Veterans_Disability_Relationship',
|
|
1724
|
+
options: [
|
|
1725
|
+
"Self, Active Duty",
|
|
1726
|
+
"Self, Active Reserve",
|
|
1727
|
+
"Self, Discharged from Active Duty",
|
|
1728
|
+
"Self, Discharged as Reservist",
|
|
1729
|
+
"Surviving Family Member",
|
|
1730
|
+
"Other"
|
|
1731
|
+
]
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
const veteransDisabilityInjuredCenter = () => verticalYesNoRadio({
|
|
1735
|
+
name: 'Veterans_Disability_Injured',
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
const wouldLikeLawyerToCenter = () => verticalRadio({
|
|
1739
|
+
name: 'Would_Like_Lawyer_To',
|
|
1740
|
+
options: [
|
|
1741
|
+
"Give me general advice to protect my interests",
|
|
1742
|
+
"Act as my agent in the transaction",
|
|
1743
|
+
"Assist me in the remaining stages of the transaction",
|
|
1744
|
+
"Bring a lawsuit against another party",
|
|
1745
|
+
"Defend against a lawsuit filed by another party",
|
|
1746
|
+
"Other"
|
|
1747
|
+
]
|
|
1748
|
+
});
|
|
1749
|
+
|
|
1750
|
+
const zipcodeCenter = () => text({
|
|
1751
|
+
placeholder: '#####',
|
|
1752
|
+
help: "We try to match you with local legal help",
|
|
1753
|
+
name: 'Zip',
|
|
1754
|
+
maxlength: 5,
|
|
1755
|
+
inputmode: "numeric",
|
|
1756
|
+
autocomplete: 'postal-code',
|
|
1757
|
+
validation: 'required|matches:/^[0-9]{5}$/',
|
|
1758
|
+
validationMessages: {
|
|
1759
|
+
required: 'Zip Code is required',
|
|
1760
|
+
matches: 'Invalid Zip Code'
|
|
1761
|
+
},
|
|
1762
|
+
wrapperClass: 't-flex t-justify-center',
|
|
1763
|
+
messagesClass: 't-flex t-justify-center',
|
|
1764
|
+
inputClass: 't-text-center',
|
|
1765
|
+
helpClass: 't-mt-2.5 !t-text-sm t-text-center'
|
|
1766
|
+
});
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
// ------ Question Groups
|
|
1770
|
+
|
|
1771
|
+
// NOTE: name must be unique within a form!
|
|
1772
|
+
const group = (name, updates) => {
|
|
1773
|
+
return merge({
|
|
1774
|
+
$cmp: 'FormKit',
|
|
1775
|
+
props: {
|
|
1776
|
+
type: 'group',
|
|
1777
|
+
key: name,
|
|
1778
|
+
id: name,
|
|
1779
|
+
name: name
|
|
1780
|
+
}
|
|
1781
|
+
}, updates)
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
const AutoAndCarAccidentsQuestions = (condition, scope) => group(
|
|
1785
|
+
'AutoAndCarAccidentsQuestions',
|
|
1786
|
+
{
|
|
1787
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
|
|
1788
|
+
children: [
|
|
1789
|
+
haveAttorney$1(scope),
|
|
1790
|
+
incidentDate$1(scope),
|
|
1791
|
+
atFault$1(scope),
|
|
1792
|
+
primaryInjury$1(scope),
|
|
1793
|
+
doctorTreatment$1(scope),
|
|
1794
|
+
policeReportFiled$1(scope)
|
|
1795
|
+
]
|
|
1796
|
+
}
|
|
1797
|
+
);
|
|
1798
|
+
|
|
1799
|
+
const ChildCustodyQuestions = (condition, scope) => group(
|
|
1800
|
+
'ChildCustodyQuestions',
|
|
1801
|
+
{
|
|
1802
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
|
|
1803
|
+
children: [
|
|
1804
|
+
haveAttorney$1(scope),
|
|
1805
|
+
childRelationship$1(scope),
|
|
1806
|
+
childHome$1(scope),
|
|
1807
|
+
childPrimaryCaregiver$1(scope),
|
|
1808
|
+
degreeOfInterest$1(scope),
|
|
1809
|
+
lawyerPaymentMethod$1(scope)
|
|
1810
|
+
]
|
|
1811
|
+
}
|
|
1812
|
+
);
|
|
1813
|
+
|
|
1814
|
+
const criminalTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
1815
|
+
name: 'Type_Of_Legal_Problem_Display',
|
|
1816
|
+
options: [
|
|
1817
|
+
'Criminal Defense',
|
|
1818
|
+
'Victim of a Crime',
|
|
1819
|
+
'DUI and DWI',
|
|
1820
|
+
'Expungement',
|
|
1821
|
+
'Harassment',
|
|
1822
|
+
'Not Sure or Other',
|
|
1823
|
+
]
|
|
1824
|
+
}, updates));
|
|
1825
|
+
|
|
1826
|
+
const DivorceQuestions = (condition, scope) => group(
|
|
1827
|
+
'DivorceQuestions',
|
|
1828
|
+
{
|
|
1829
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
|
|
1830
|
+
children: [
|
|
1831
|
+
haveAttorney$1(scope),
|
|
1832
|
+
maritalStatus$1(scope),
|
|
1833
|
+
haveChildren$1(scope),
|
|
1834
|
+
degreeOfInterest$1(scope),
|
|
1835
|
+
lawyerPaymentMethod$1(scope)
|
|
1836
|
+
]
|
|
1837
|
+
}
|
|
1838
|
+
);
|
|
1839
|
+
|
|
1840
|
+
const DUIAndDWIQuestions = (condition, scope) => group(
|
|
1841
|
+
'DUIAndDWIQuestions',
|
|
1842
|
+
{
|
|
1843
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
|
|
1844
|
+
children: [
|
|
1845
|
+
haveAttorney$1(scope),
|
|
1846
|
+
incidentDate$1(scope),
|
|
1847
|
+
priorAlcoholOffenses$1(scope),
|
|
1848
|
+
typeOfAlcoholTest$1(scope),
|
|
1849
|
+
bloodContentAlcoholTest$1(scope),
|
|
1850
|
+
pendingCharges$1(scope),
|
|
1851
|
+
degreeOfInterestHelp(scope)
|
|
1852
|
+
]
|
|
1853
|
+
}
|
|
1854
|
+
);
|
|
1855
|
+
|
|
1856
|
+
const PersonalInjuryQuestions = (condition, scope) => group(
|
|
1857
|
+
'PersonalInjuryQuestions',
|
|
1858
|
+
{
|
|
1859
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
|
|
1860
|
+
children: [
|
|
1861
|
+
haveAttorney$1(scope),
|
|
1862
|
+
incidentDate$1(scope),
|
|
1863
|
+
claimStatus$1(scope),
|
|
1864
|
+
atFault$1(scope),
|
|
1865
|
+
primaryInjury$1(scope),
|
|
1866
|
+
doctorTreatment$1(scope)
|
|
1867
|
+
]
|
|
1868
|
+
}
|
|
1869
|
+
);
|
|
1870
|
+
|
|
1871
|
+
const PowerofAttorneyQuestions = (condition, scope) => group(
|
|
1872
|
+
'PowerofAttorneyQuestions',
|
|
1873
|
+
{
|
|
1874
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
|
|
1875
|
+
children: [
|
|
1876
|
+
haveAttorney$1(scope),
|
|
1877
|
+
degreeOfInterestHelp(scope)
|
|
1878
|
+
]
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1881
|
+
|
|
1882
|
+
const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
|
|
1883
|
+
'SocialSecurityDisabilityAndInsuranceQuestions',
|
|
1884
|
+
{
|
|
1885
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
|
|
1886
|
+
children: [
|
|
1887
|
+
haveAttorney$1(scope),
|
|
1888
|
+
applicantAge$1(scope),
|
|
1889
|
+
disabilityConditionStopWork$1(scope),
|
|
1890
|
+
disabilityWorkHistory$1(scope),
|
|
1891
|
+
socialSecurityDisabilityReceivingBenefits$1(scope),
|
|
1892
|
+
doctorTreatment$1(scope)
|
|
1893
|
+
]
|
|
1894
|
+
}
|
|
1895
|
+
);
|
|
1896
|
+
|
|
1897
|
+
const WillsAndTrustsQuestions = (condition, scope) => group(
|
|
1898
|
+
'WillsAndTrustsQuestions',
|
|
1899
|
+
{
|
|
1900
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
|
|
1901
|
+
children: [
|
|
1902
|
+
haveAttorney$1(scope),
|
|
1903
|
+
valueOfAssets$1(scope),
|
|
1904
|
+
typeOfAssets$1(scope),
|
|
1905
|
+
roleInMatterProbate$1(scope),
|
|
1906
|
+
estateLegalServicesNeeded$1(scope),
|
|
1907
|
+
degreeOfInterestHelp(scope)
|
|
1908
|
+
]
|
|
1909
|
+
}
|
|
1910
|
+
);
|
|
1911
|
+
|
|
1912
|
+
const WorkersCompensationQuestions = (condition, scope) => group(
|
|
1913
|
+
'WorkersCompensationQuestions',
|
|
1914
|
+
{
|
|
1915
|
+
if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
|
|
1916
|
+
children: [
|
|
1917
|
+
haveAttorney$1(scope),
|
|
1918
|
+
incidentDate$1(scope),
|
|
1919
|
+
claimStatus$1(scope),
|
|
1920
|
+
primaryInjury$1(scope),
|
|
1921
|
+
causeOfInjury$1(scope),
|
|
1922
|
+
doctorTreatment$1(scope)
|
|
1923
|
+
]
|
|
1924
|
+
}
|
|
1925
|
+
);
|
|
1926
|
+
|
|
1927
|
+
const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
1928
|
+
const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
1929
|
+
|
|
1930
|
+
const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
|
|
1931
|
+
|
|
1932
|
+
const findLastInput = (n) => {
|
|
1933
|
+
if (isInput(n)) {
|
|
1934
|
+
return n
|
|
1935
|
+
}
|
|
1936
|
+
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
1937
|
+
if (typeof n.children === 'string') {
|
|
1938
|
+
continue
|
|
1939
|
+
}
|
|
1940
|
+
const child = n.children[i];
|
|
1941
|
+
if (isInput(child)) {
|
|
1942
|
+
return child
|
|
1943
|
+
}
|
|
1944
|
+
const res = findLastInput(child);
|
|
1945
|
+
if (res) {
|
|
1946
|
+
return res
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
return null
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
const secureIconDefault = {
|
|
1953
|
+
$el: 'div',
|
|
1954
|
+
if: '$activeStep === $lastStep()',
|
|
1955
|
+
attrs: {
|
|
1956
|
+
class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
|
|
1957
|
+
},
|
|
1958
|
+
children: [
|
|
1959
|
+
{
|
|
1960
|
+
$el: 'img',
|
|
1961
|
+
attrs: {
|
|
1962
|
+
loading: 'lazy',
|
|
1963
|
+
alt: '',
|
|
1964
|
+
style: {
|
|
1965
|
+
border: 0
|
|
1966
|
+
},
|
|
1967
|
+
width: '25',
|
|
1968
|
+
height: '25',
|
|
1969
|
+
src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
$el: 'span',
|
|
1974
|
+
children: 'Secure & Encrypted',
|
|
1975
|
+
attrs: {
|
|
1976
|
+
class: 't-pl-2 t-pt-1 t-font-medium'
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
function secureIcon(updates) {
|
|
1983
|
+
return merge(
|
|
1984
|
+
secureIconDefault,
|
|
1985
|
+
updates
|
|
1986
|
+
)
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
function crossSellQuestionsStepHeadline(updates) {
|
|
1990
|
+
return {
|
|
1991
|
+
$el: 'h3',
|
|
1992
|
+
children: updates.headline || 'Tell Us About Your Situation',
|
|
1993
|
+
attrs: {
|
|
1994
|
+
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'
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
function crossSellQuestionsStepSubHeadline(updates) {
|
|
2000
|
+
return {
|
|
2001
|
+
$el: 'h5',
|
|
2002
|
+
children: updates.subheadline || 'Tell us about your situation:',
|
|
2003
|
+
attrs: {
|
|
2004
|
+
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'
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
function verticalStepHeadline(updates) {
|
|
2010
|
+
return {
|
|
2011
|
+
$el: 'h3',
|
|
2012
|
+
children: updates.headline || 'Tell Us About Your Situation',
|
|
2013
|
+
attrs: {
|
|
2014
|
+
class: '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' + ' ' + (updates.headlineClass || '')
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
function verticalStepSubHeadline(updates) {
|
|
2020
|
+
return {
|
|
2021
|
+
$el: 'h5',
|
|
2022
|
+
children: updates.subheadline || '',
|
|
2023
|
+
attrs: {
|
|
2024
|
+
class: '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' + ' ' + (updates.subheadlineClass || '')
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
function commentsStepHeadline(updates) {
|
|
2030
|
+
return {
|
|
2031
|
+
$el: 'h3',
|
|
2032
|
+
children: updates.headline || 'Additional Case Details',
|
|
2033
|
+
attrs: {
|
|
2034
|
+
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
function firstAndLastStepHeadline(updates) {
|
|
2040
|
+
return {
|
|
2041
|
+
$el: 'h3',
|
|
2042
|
+
children: updates.headline || 'Please Provide a Contact Name',
|
|
2043
|
+
attrs: {
|
|
2044
|
+
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
function legalCrossSellsStepHeadline(updates) {
|
|
2050
|
+
return {
|
|
2051
|
+
$el: 'h3',
|
|
2052
|
+
children: updates.headline || 'Do any of the following situations apply?',
|
|
2053
|
+
attrs: {
|
|
2054
|
+
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
function contactStepHeadline(updates) {
|
|
2060
|
+
return {
|
|
2061
|
+
$el: 'h3',
|
|
2062
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
|
|
2063
|
+
attrs: {
|
|
2064
|
+
class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
function contactStepSubHeadline(updates) {
|
|
2070
|
+
return {
|
|
2071
|
+
$el: 'h5',
|
|
2072
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
|
|
2073
|
+
attrs: {
|
|
2074
|
+
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
const TRUSTED_FORM_JS = `(function() {
|
|
2080
|
+
if (window.xxTrustedFormLoaded) {
|
|
2081
|
+
return
|
|
2082
|
+
}
|
|
2083
|
+
var vid = '';
|
|
2084
|
+
if (typeof window.zar !== 'undefined') {
|
|
2085
|
+
vid = window.zar.getVID();
|
|
2086
|
+
}
|
|
2087
|
+
window.xxTrustedFormLoaded = true;
|
|
2088
|
+
var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
|
|
2089
|
+
var tf = document.createElement('script');
|
|
2090
|
+
tf.type = 'text/javascript'; tf.async = true;
|
|
2091
|
+
tf.src = ("https:" == document.location.protocol ? 'https' : 'http') + "://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=" + vid + "&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=" + sandbox + "&l=" + new Date().getTime() + Math.random();
|
|
2092
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
|
|
2093
|
+
})();`;
|
|
2094
|
+
|
|
2095
|
+
function trustedFormScript() {
|
|
2096
|
+
return {
|
|
2097
|
+
$el: 'script',
|
|
2098
|
+
if: '$activeStep === $lastStep()',
|
|
2099
|
+
children: TRUSTED_FORM_JS
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
const stepDefaults = (step, stepKey) => ({
|
|
2104
|
+
$el: 'section',
|
|
2105
|
+
if: '$stepEnabled("' + step + '")',
|
|
2106
|
+
attrs: {
|
|
2107
|
+
hidden: '$activeStep !== "' + step + '"',
|
|
2108
|
+
key: stepKey ? stepKey : step
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
|
|
2112
|
+
function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined, autoFocus = undefined) {
|
|
2113
|
+
if (typeof nextOnEnter === 'undefined') {
|
|
2114
|
+
nextOnEnter = true;
|
|
2115
|
+
}
|
|
2116
|
+
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
2117
|
+
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
2118
|
+
if (lastInput && nextOnEnter === true) {
|
|
2119
|
+
lastInput.onKeypress = NEXT_ON_ENTER;
|
|
2120
|
+
}
|
|
2121
|
+
if (lastInput && nextOnInput === true) {
|
|
2122
|
+
lastInput.onInput = NEXT_ON_INPUT;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
return merge(
|
|
2127
|
+
stepDefaults(name, stepKey),
|
|
2128
|
+
{
|
|
2129
|
+
children: [
|
|
2130
|
+
{
|
|
2131
|
+
$formkit: 'group',
|
|
2132
|
+
id: name,
|
|
2133
|
+
name: name,
|
|
2134
|
+
nextStepMap: nextStepMap,
|
|
2135
|
+
autoFocus: autoFocus,
|
|
2136
|
+
children: inputs
|
|
2137
|
+
}
|
|
2138
|
+
]
|
|
2139
|
+
}
|
|
2140
|
+
)
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
// Single question step
|
|
2144
|
+
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
2145
|
+
return step(
|
|
2146
|
+
name,
|
|
2147
|
+
[
|
|
2148
|
+
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
|
|
2149
|
+
...Array.isArray(input) ? input : [input],
|
|
2150
|
+
],
|
|
2151
|
+
updates.nextOnEnter,
|
|
2152
|
+
typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
|
|
2153
|
+
updates.stepKey,
|
|
2154
|
+
updates.nextStepMap
|
|
2155
|
+
)
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
function commentsWithBankruptcy(updates = {}) {
|
|
2159
|
+
return step(
|
|
2160
|
+
'commentsWithBankruptcy',
|
|
2161
|
+
[
|
|
2162
|
+
commentsStepHeadline(updates),
|
|
2163
|
+
comments({
|
|
2164
|
+
label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
2165
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
2166
|
+
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
2167
|
+
}),
|
|
2168
|
+
bankruptcyCrossSell(),
|
|
2169
|
+
{
|
|
2170
|
+
$el: 'div',
|
|
2171
|
+
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
2172
|
+
children: [
|
|
2173
|
+
comments({
|
|
2174
|
+
label: 'Bankruptcy or debt details:',
|
|
2175
|
+
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
2176
|
+
inputClass: '!t-h-16'
|
|
2177
|
+
}, 'CrossSell:Bankruptcy')
|
|
2178
|
+
],
|
|
2179
|
+
}
|
|
2180
|
+
],
|
|
2181
|
+
false // nextOnEnter
|
|
2182
|
+
)
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
function contactInfo(updates = {}) {
|
|
2186
|
+
return step(
|
|
2187
|
+
'contactInfo',
|
|
2188
|
+
[
|
|
2189
|
+
contactStepHeadline(updates),
|
|
2190
|
+
contactStepSubHeadline(updates),
|
|
2191
|
+
trustedFormScript(),
|
|
2192
|
+
email(),
|
|
2193
|
+
phone(),
|
|
2194
|
+
TCPAConsent(),
|
|
2195
|
+
secureIcon()
|
|
2196
|
+
],
|
|
2197
|
+
false, // nextOnEnter
|
|
2198
|
+
)
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
function firstAndLastV3(updates = {}) {
|
|
2202
|
+
return step(
|
|
2203
|
+
'firstAndLast',
|
|
2204
|
+
[
|
|
2205
|
+
firstAndLastStepHeadline({
|
|
2206
|
+
headline: updates.headline ?? 'Who is looking for help?',
|
|
2207
|
+
headlineClass: updates.headlineClass
|
|
2208
|
+
}),
|
|
2209
|
+
verticalStepSubHeadline({
|
|
2210
|
+
subheadline: updates.subheadline ?? 'Note: we never share info without consent',
|
|
2211
|
+
subheadlineClass: '!t-text-sm !t-text-gray-500'
|
|
2212
|
+
}),
|
|
2213
|
+
firstName(),
|
|
2214
|
+
lastName()
|
|
2215
|
+
],
|
|
2216
|
+
updates.nextOnEnter
|
|
2217
|
+
)
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
2222
|
+
return step(
|
|
2223
|
+
'autoAndCarAccidentCrossSellQuestions',
|
|
2224
|
+
[
|
|
2225
|
+
crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
|
|
2226
|
+
crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
|
|
2227
|
+
AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
|
|
2228
|
+
comments(
|
|
2229
|
+
{
|
|
2230
|
+
label: 'Accident Description:',
|
|
2231
|
+
placeholder: 'Please describe your accident in a few words...',
|
|
2232
|
+
inputClass: '!t-h-16'
|
|
2233
|
+
},
|
|
2234
|
+
'CrossSell:Auto_and_Car_Accidents'
|
|
2235
|
+
)
|
|
2236
|
+
],
|
|
2237
|
+
updates.nextOnEnter
|
|
2238
|
+
)
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
function childCustodyCrossSellQuestions(updates = {}) {
|
|
2242
|
+
return step(
|
|
2243
|
+
'childCustodyCrossSellQuestions',
|
|
2244
|
+
[
|
|
2245
|
+
crossSellQuestionsStepHeadline({ headline: 'Child Custody Information' }),
|
|
2246
|
+
ChildCustodyQuestions("true", 'CrossSell:Child_Custody'),
|
|
2247
|
+
comments(
|
|
2248
|
+
{
|
|
2249
|
+
label: 'Description:',
|
|
2250
|
+
placeholder: 'Please describe your situation in a few words...',
|
|
2251
|
+
inputClass: '!t-h-16'
|
|
2252
|
+
},
|
|
2253
|
+
'CrossSell:Child_Custody'
|
|
2254
|
+
)
|
|
2255
|
+
],
|
|
2256
|
+
updates.nextOnEnter
|
|
2257
|
+
)
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
2261
|
+
return step(
|
|
2262
|
+
'divorceAndSeparationCrossSellQuestions',
|
|
2263
|
+
[
|
|
2264
|
+
crossSellQuestionsStepHeadline({ headline: 'Divorce or Separation Information' }),
|
|
2265
|
+
DivorceQuestions("true", 'CrossSell:Divorce_and_Separation'),
|
|
2266
|
+
comments(
|
|
2267
|
+
{
|
|
2268
|
+
label: 'Description:',
|
|
2269
|
+
placeholder: 'Please describe your situation in a few words...',
|
|
2270
|
+
inputClass: '!t-h-16'
|
|
2271
|
+
},
|
|
2272
|
+
'CrossSell:Divorce_and_Separation'
|
|
2273
|
+
)
|
|
2274
|
+
],
|
|
2275
|
+
updates.nextOnEnter
|
|
2276
|
+
)
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
function duiAndDWICrossSellQuestions(updates = {}) {
|
|
2280
|
+
return step(
|
|
2281
|
+
'duiAndDWICrossSellQuestions',
|
|
2282
|
+
[
|
|
2283
|
+
crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
|
|
2284
|
+
DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
|
|
2285
|
+
comments(
|
|
2286
|
+
{
|
|
2287
|
+
label: 'Incident Description:',
|
|
2288
|
+
placeholder: 'Please describe your incident in a few words...',
|
|
2289
|
+
inputClass: '!t-h-16'
|
|
2290
|
+
},
|
|
2291
|
+
'CrossSell:DUI_and_DWI'
|
|
2292
|
+
)
|
|
2293
|
+
],
|
|
2294
|
+
updates.nextOnEnter
|
|
2295
|
+
)
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
function ssdiCrossSellQuestions(updates = {}) {
|
|
2299
|
+
return step(
|
|
2300
|
+
'ssdiCrossSellQuestions',
|
|
2301
|
+
[
|
|
2302
|
+
crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
|
|
2303
|
+
crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
|
|
2304
|
+
SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
|
|
2305
|
+
comments(
|
|
2306
|
+
{
|
|
2307
|
+
label: 'Description:',
|
|
2308
|
+
placeholder: 'Please describe your situation in a few words...',
|
|
2309
|
+
inputClass: '!t-h-16'
|
|
2310
|
+
},
|
|
2311
|
+
'CrossSell:Social_Security_Disability_and_Insurance'
|
|
2312
|
+
)
|
|
2313
|
+
],
|
|
2314
|
+
updates.nextOnEnter
|
|
2315
|
+
)
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
function personalInjuryCrossSellQuestions(updates = {}) {
|
|
2319
|
+
return step(
|
|
2320
|
+
'personalInjuryCrossSellQuestions',
|
|
2321
|
+
[
|
|
2322
|
+
crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
|
|
2323
|
+
crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
|
|
2324
|
+
PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
|
|
2325
|
+
comments(
|
|
2326
|
+
{
|
|
2327
|
+
label: 'Injury Description:',
|
|
2328
|
+
placeholder: 'Please describe your injury in a few words...',
|
|
2329
|
+
inputClass: '!t-h-16'
|
|
2330
|
+
},
|
|
2331
|
+
'CrossSell:Personal_Injury'
|
|
2332
|
+
)
|
|
2333
|
+
],
|
|
2334
|
+
updates.nextOnEnter
|
|
2335
|
+
)
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
2339
|
+
return step(
|
|
2340
|
+
'powerOfAttorneyCrossSellQuestions',
|
|
2341
|
+
[
|
|
2342
|
+
crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
|
|
2343
|
+
PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
|
|
2344
|
+
comments(
|
|
2345
|
+
{
|
|
2346
|
+
label: 'Description:',
|
|
2347
|
+
placeholder: 'Please describe your situation in a few words...',
|
|
2348
|
+
inputClass: '!t-h-16'
|
|
2349
|
+
},
|
|
2350
|
+
'CrossSell:Power_of_Attorney'
|
|
2351
|
+
)
|
|
2352
|
+
],
|
|
2353
|
+
updates.nextOnEnter
|
|
2354
|
+
)
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
2358
|
+
return step(
|
|
2359
|
+
'willsAndTrustsCrossSellQuestions',
|
|
2360
|
+
[
|
|
2361
|
+
crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
|
|
2362
|
+
WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
|
|
2363
|
+
comments(
|
|
2364
|
+
{
|
|
2365
|
+
label: 'Description:',
|
|
2366
|
+
placeholder: 'Please describe your situation in a few words...',
|
|
2367
|
+
inputClass: '!t-h-16'
|
|
2368
|
+
},
|
|
2369
|
+
'CrossSell:Wills_and_Trusts'
|
|
2370
|
+
)
|
|
2371
|
+
],
|
|
2372
|
+
updates.nextOnEnter
|
|
2373
|
+
)
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
function workersCompensationCrossSellQuestions(updates = {}) {
|
|
2377
|
+
return step(
|
|
2378
|
+
'workersCompensationCrossSellQuestions',
|
|
2379
|
+
[
|
|
2380
|
+
crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
|
|
2381
|
+
crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
|
|
2382
|
+
WorkersCompensationQuestions("true", 'CrossSell:Workers_Compensation'),
|
|
2383
|
+
comments(
|
|
2384
|
+
{
|
|
2385
|
+
label: 'Injury Description:',
|
|
2386
|
+
placeholder: 'Please describe your injury in a few words...',
|
|
2387
|
+
inputClass: '!t-h-16'
|
|
2388
|
+
},
|
|
2389
|
+
'CrossSell:Workers_Compensation'
|
|
2390
|
+
)
|
|
2391
|
+
],
|
|
2392
|
+
updates.nextOnEnter
|
|
2393
|
+
)
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
function legalCrossSells(updates = {}) {
|
|
2397
|
+
return step(
|
|
2398
|
+
'legalCrossSells',
|
|
2399
|
+
[
|
|
2400
|
+
legalCrossSellsStepHeadline(updates),
|
|
2401
|
+
legalCrossSells$1(),
|
|
2402
|
+
],
|
|
2403
|
+
updates.nextOnEnter,
|
|
2404
|
+
false,
|
|
2405
|
+
// Note: we should probably scope this stepKey to this step name
|
|
2406
|
+
'$get(Type_Of_Legal_Problem).value'
|
|
2407
|
+
)
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
function generalTOLP(updates = {}) {
|
|
2411
|
+
return step(
|
|
2412
|
+
'generalTOLP',
|
|
2413
|
+
[
|
|
2414
|
+
generalTOLPCenter(updates.input),
|
|
2415
|
+
],
|
|
2416
|
+
updates.nextOnEnter,
|
|
2417
|
+
updates.nextOnInput,
|
|
2418
|
+
updates.stepKey,
|
|
2419
|
+
updates.nextStepMap
|
|
2420
|
+
)
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
function zipcode(updates = {}) {
|
|
2424
|
+
return sqstep(
|
|
2425
|
+
'zipcode',
|
|
2426
|
+
zipcodeCenter(),
|
|
2427
|
+
'Please verify your Zip Code',
|
|
2428
|
+
updates
|
|
2429
|
+
)
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
function maritalStatus(updates = {}) {
|
|
2433
|
+
return sqstep(
|
|
2434
|
+
'maritalStatus',
|
|
2435
|
+
maritalStatusCenter(),
|
|
2436
|
+
'What is your marital status?',
|
|
2437
|
+
updates
|
|
2438
|
+
)
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
function civilLawsuitTOLPDisplay(updates = {}) {
|
|
2442
|
+
return sqstep(
|
|
2443
|
+
'civilLawsuitTOLPDisplay',
|
|
2444
|
+
civilLawsuitTOLPDisplayCenter(),
|
|
2445
|
+
'What type of lawsuit would you like to file?',
|
|
2446
|
+
updates
|
|
2447
|
+
)
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
function criminalTOLPDisplay(updates = {}) {
|
|
2451
|
+
return sqstep(
|
|
2452
|
+
'criminalTOLPDisplay',
|
|
2453
|
+
criminalTOLPDisplayCenter(),
|
|
2454
|
+
'Which type of criminal issue?',
|
|
2455
|
+
updates
|
|
2456
|
+
)
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
function employmentAndWorkplaceTOLPDisplay(updates = {}) {
|
|
2460
|
+
return sqstep(
|
|
2461
|
+
'employmentAndWorkplaceTOLPDisplay',
|
|
2462
|
+
employmentAndWorkplaceTOLPDisplayCenter(),
|
|
2463
|
+
'What type of workplace issue?',
|
|
2464
|
+
updates
|
|
2465
|
+
)
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
function landlordTenantIssue(updates = {}) {
|
|
2469
|
+
return sqstep(
|
|
2470
|
+
'landlordTenantIssue',
|
|
2471
|
+
landlordTenantIssueRadioCenter(),
|
|
2472
|
+
'What is the landlord / tenant issue?',
|
|
2473
|
+
updates
|
|
2474
|
+
)
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
function realEstateTOLPDisplay(updates = {}) {
|
|
2478
|
+
return sqstep(
|
|
2479
|
+
'realEstateTOLPDisplay',
|
|
2480
|
+
realEstateTOLPDisplayCenter(),
|
|
2481
|
+
'What type of real estate issue?',
|
|
2482
|
+
updates
|
|
2483
|
+
)
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
function haveChildren(updates = {}) {
|
|
2487
|
+
return sqstep(
|
|
2488
|
+
'haveChildren',
|
|
2489
|
+
haveChildrenCenter(),
|
|
2490
|
+
'Do you have children?',
|
|
2491
|
+
updates
|
|
2492
|
+
)
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
function childRelationship(updates = {}) {
|
|
2496
|
+
return sqstep(
|
|
2497
|
+
'childRelationship',
|
|
2498
|
+
childRelationshipCenter(),
|
|
2499
|
+
'Your relationship to the children:',
|
|
2500
|
+
updates
|
|
2501
|
+
)
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
function childHome(updates = {}) {
|
|
2505
|
+
return sqstep(
|
|
2506
|
+
'childHome',
|
|
2507
|
+
childHomeCenter(),
|
|
2508
|
+
'Who do the children currently live with?',
|
|
2509
|
+
updates
|
|
2510
|
+
)
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
function childPrimaryCaregiver(updates = {}) {
|
|
2514
|
+
return sqstep(
|
|
2515
|
+
'childPrimaryCaregiver',
|
|
2516
|
+
childPrimaryCaregiverCenter(),
|
|
2517
|
+
'Who is the primary caregiver?',
|
|
2518
|
+
updates
|
|
2519
|
+
)
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
function haveAttorney(updates = {}) {
|
|
2523
|
+
return sqstep(
|
|
2524
|
+
'haveAttorney',
|
|
2525
|
+
haveAttorneyCenter(),
|
|
2526
|
+
'Already working with an attorney?',
|
|
2527
|
+
updates
|
|
2528
|
+
)
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
function degreeOfInterest(updates = {}) {
|
|
2532
|
+
return sqstep(
|
|
2533
|
+
'degreeOfInterest',
|
|
2534
|
+
degreeOfInterestCenter(),
|
|
2535
|
+
'Could you pay if your issue could be resolved?',
|
|
2536
|
+
updates
|
|
2537
|
+
)
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
function lawyerPaymentMethod(updates = {}) {
|
|
2541
|
+
return sqstep(
|
|
2542
|
+
'lawyerPaymentMethod',
|
|
2543
|
+
lawyerPaymentMethodCenter(),
|
|
2544
|
+
'How would you pay if a solution required it?',
|
|
2545
|
+
updates
|
|
2546
|
+
)
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
function incidentDate(updates = {}) {
|
|
2550
|
+
return sqstep(
|
|
2551
|
+
'incidentDate',
|
|
2552
|
+
incidentDateCenter(),
|
|
2553
|
+
'When did the incident occur?',
|
|
2554
|
+
updates
|
|
2555
|
+
)
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
function doctorTreatment(updates = {}) {
|
|
2559
|
+
return sqstep(
|
|
2560
|
+
'doctorTreatment',
|
|
2561
|
+
doctorTreatmentCenter(),
|
|
2562
|
+
'Have you seen a doctor about this?',
|
|
2563
|
+
updates
|
|
2564
|
+
)
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
function medicalMalpracticeInjuries(updates = {}) {
|
|
2568
|
+
return sqstep(
|
|
2569
|
+
'medicalMalpracticeInjuries',
|
|
2570
|
+
medicalMalpracticeInjuriesCenter(),
|
|
2571
|
+
'What injuries did you suffer?',
|
|
2572
|
+
updates
|
|
2573
|
+
)
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
function atFault(updates = {}) {
|
|
2577
|
+
return sqstep(
|
|
2578
|
+
'atFault',
|
|
2579
|
+
atFaultCenter(),
|
|
2580
|
+
'Were you at fault?',
|
|
2581
|
+
updates
|
|
2582
|
+
)
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
function primaryInjury(updates = {}) {
|
|
2586
|
+
return sqstep(
|
|
2587
|
+
'primaryInjury',
|
|
2588
|
+
primaryInjuryCenter(),
|
|
2589
|
+
'What was the primary injury?',
|
|
2590
|
+
updates
|
|
2591
|
+
)
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
function policeReportFiled(updates = {}) {
|
|
2595
|
+
return sqstep(
|
|
2596
|
+
'policeReportFiled',
|
|
2597
|
+
policeReportFiledCenter(),
|
|
2598
|
+
'Was a police report filed?',
|
|
2599
|
+
updates
|
|
2600
|
+
)
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
function totalMonthlyIncome(updates = {}) {
|
|
2604
|
+
return sqstep(
|
|
2605
|
+
'totalMonthlyIncome',
|
|
2606
|
+
totalMonthlyIncomeCenter(),
|
|
2607
|
+
'What is your total monthly income?',
|
|
2608
|
+
updates
|
|
2609
|
+
)
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
function totalDebt(updates = {}) {
|
|
2613
|
+
return sqstep(
|
|
2614
|
+
'totalDebt',
|
|
2615
|
+
totalDebtCenter(),
|
|
2616
|
+
'What is your total debt?',
|
|
2617
|
+
updates
|
|
2618
|
+
)
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
function ownRealEstate(updates = {}) {
|
|
2622
|
+
return sqstep(
|
|
2623
|
+
'ownRealEstate',
|
|
2624
|
+
ownRealEstateCenter(),
|
|
2625
|
+
'Do you own real estate?',
|
|
2626
|
+
updates
|
|
2627
|
+
)
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
function valueOfAssets(updates = {}) {
|
|
2631
|
+
return sqstep(
|
|
2632
|
+
'valueOfAssets',
|
|
2633
|
+
valueOfAssetsCenter(),
|
|
2634
|
+
'What is the value of your assets?',
|
|
2635
|
+
updates
|
|
2636
|
+
)
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
function businessServices(updates = {}) {
|
|
2640
|
+
return sqstep(
|
|
2641
|
+
'businessServices',
|
|
2642
|
+
businessServicesCenter(),
|
|
2643
|
+
'What legal services do you need?',
|
|
2644
|
+
updates
|
|
2645
|
+
)
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
function businessType(updates = {}) {
|
|
2649
|
+
return sqstep(
|
|
2650
|
+
'businessType',
|
|
2651
|
+
businessTypeCenter(),
|
|
2652
|
+
'Is the business public or private?',
|
|
2653
|
+
updates
|
|
2654
|
+
)
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
function employerType(updates = {}) {
|
|
2658
|
+
return sqstep(
|
|
2659
|
+
'employerType',
|
|
2660
|
+
employerTypeCenter(),
|
|
2661
|
+
'What type of employer is it?',
|
|
2662
|
+
updates
|
|
2663
|
+
)
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
function employeeAtCompany(updates = {}) {
|
|
2667
|
+
return sqstep(
|
|
2668
|
+
'employeeAtCompany',
|
|
2669
|
+
employeeAtCompanyCenter(),
|
|
2670
|
+
'Do you/they still work at the company?',
|
|
2671
|
+
updates
|
|
2672
|
+
)
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
function numEmployeesOfBusiness(updates = {}) {
|
|
2676
|
+
return sqstep(
|
|
2677
|
+
'numEmployeesOfBusiness',
|
|
2678
|
+
numEmployeesOfBusinessCenter(),
|
|
2679
|
+
'How many employees does the business have?',
|
|
2680
|
+
updates
|
|
2681
|
+
)
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
function civilRightsType(updates = {}) {
|
|
2685
|
+
return sqstep(
|
|
2686
|
+
'civilRightsType',
|
|
2687
|
+
civilRightsTypeCenter(),
|
|
2688
|
+
'How were your rights violated?',
|
|
2689
|
+
updates
|
|
2690
|
+
)
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
function lawsuitOtherParty(updates = {}) {
|
|
2694
|
+
return sqstep(
|
|
2695
|
+
'lawsuitOtherParty',
|
|
2696
|
+
lawsuitOtherPartyCenter(),
|
|
2697
|
+
'What describes the other party in the lawsuit?',
|
|
2698
|
+
updates
|
|
2699
|
+
)
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
function crimeCommittedDate(updates = {}) {
|
|
2703
|
+
return sqstep(
|
|
2704
|
+
'crimeCommittedDate',
|
|
2705
|
+
crimeCommittedDateCenter(),
|
|
2706
|
+
'When was the alleged crime?',
|
|
2707
|
+
updates
|
|
2708
|
+
)
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
function roleInMatterCriminal(updates = {}) {
|
|
2712
|
+
return sqstep(
|
|
2713
|
+
'roleInMatterCriminal',
|
|
2714
|
+
roleInMatterCriminalCenter(),
|
|
2715
|
+
'What is your role in this matter?',
|
|
2716
|
+
updates
|
|
2717
|
+
)
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
function pendingCharges(updates = {}) {
|
|
2721
|
+
return sqstep(
|
|
2722
|
+
'pendingCharges',
|
|
2723
|
+
pendingChargesCenter(),
|
|
2724
|
+
'Do you have any pending charges?',
|
|
2725
|
+
updates
|
|
2726
|
+
)
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
function consumerLawyerType(updates = {}) {
|
|
2730
|
+
return sqstep(
|
|
2731
|
+
'consumerLawyerType',
|
|
2732
|
+
consumerLawyerTypeCenter(),
|
|
2733
|
+
'What best describes your issue?',
|
|
2734
|
+
updates
|
|
2735
|
+
)
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
function bloodContentAlcoholTest(updates = {}) {
|
|
2739
|
+
return sqstep(
|
|
2740
|
+
'bloodContentAlcoholTest',
|
|
2741
|
+
bloodContentAlcoholTestCenter(),
|
|
2742
|
+
'What was your blood alcohol content?',
|
|
2743
|
+
updates
|
|
2744
|
+
)
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
function priorAlcoholOffenses(updates = {}) {
|
|
2748
|
+
return sqstep(
|
|
2749
|
+
'priorAlcoholOffenses',
|
|
2750
|
+
priorAlcoholOffensesCenter(),
|
|
2751
|
+
'Do you have prior alcohol offenses?',
|
|
2752
|
+
updates
|
|
2753
|
+
)
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
function typeOfAlcoholTest(updates = {}) {
|
|
2757
|
+
return sqstep(
|
|
2758
|
+
'typeOfAlcoholTest',
|
|
2759
|
+
typeOfAlcoholTestCenter(),
|
|
2760
|
+
'What type of alcohol test was performed?',
|
|
2761
|
+
updates
|
|
2762
|
+
)
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
function driversLicenseType(updates = {}) {
|
|
2766
|
+
return sqstep(
|
|
2767
|
+
'driversLicenseType',
|
|
2768
|
+
driversLicenseTypeCenter(),
|
|
2769
|
+
'What type of license do you have?',
|
|
2770
|
+
updates
|
|
2771
|
+
)
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
function trafficViolations(updates = {}) {
|
|
2775
|
+
return sqstep(
|
|
2776
|
+
'trafficViolations',
|
|
2777
|
+
trafficViolationsCenter(),
|
|
2778
|
+
'What type of traffic violation?',
|
|
2779
|
+
updates
|
|
2780
|
+
)
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
function haveCourtDate(updates = {}) {
|
|
2784
|
+
return sqstep(
|
|
2785
|
+
'haveCourtDate',
|
|
2786
|
+
haveCourtDateCenter(),
|
|
2787
|
+
'Do you have a court date?',
|
|
2788
|
+
updates
|
|
2789
|
+
)
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
function applicantOccupation(updates = {}) {
|
|
2793
|
+
return sqstep(
|
|
2794
|
+
'applicantOccupation',
|
|
2795
|
+
applicantOccupationCenter(),
|
|
2796
|
+
'What is the applicant\'s occupation?',
|
|
2797
|
+
updates
|
|
2798
|
+
)
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
function applicantAge(updates = {}) {
|
|
2802
|
+
return sqstep(
|
|
2803
|
+
'applicantAge',
|
|
2804
|
+
applicantAgeCenter(),
|
|
2805
|
+
'What is the applicant\'s age?',
|
|
2806
|
+
updates
|
|
2807
|
+
)
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
function applicantLTDisabilityPolicy(updates = {}) {
|
|
2811
|
+
return sqstep(
|
|
2812
|
+
'applicantLTDisabilityPolicy',
|
|
2813
|
+
applicantLTDisabilityPolicyCenter(),
|
|
2814
|
+
'Does the applicant have a disability policy?',
|
|
2815
|
+
updates
|
|
2816
|
+
)
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
function applicantDisabilityHowObtain(updates = {}) {
|
|
2820
|
+
return sqstep(
|
|
2821
|
+
'applicantDisabilityHowObtain',
|
|
2822
|
+
applicantDisabilityHowObtainCenter(),
|
|
2823
|
+
'How did the applicant obtain the disability policy?',
|
|
2824
|
+
updates
|
|
2825
|
+
)
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
function applicantPreviouslyAppliedLtdBenefits(updates = {}) {
|
|
2829
|
+
return sqstep(
|
|
2830
|
+
'applicantPreviouslyAppliedLtdBenefits',
|
|
2831
|
+
applicantPreviouslyAppliedLtdBenefitsCenter(),
|
|
2832
|
+
'Has the applicant previously applied for long-term disability benefits?',
|
|
2833
|
+
updates
|
|
2834
|
+
)
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
function applicantReceivedDisabilityBenefits(updates = {}) {
|
|
2838
|
+
return sqstep(
|
|
2839
|
+
'applicantReceivedDisabilityBenefits',
|
|
2840
|
+
applicantReceivedDisabilityBenefitsCenter(),
|
|
2841
|
+
'Has the applicant received disability benefits for this claim?',
|
|
2842
|
+
updates
|
|
2843
|
+
)
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
function applicantMonthlySalary(updates = {}) {
|
|
2847
|
+
return sqstep(
|
|
2848
|
+
'applicantMonthlySalary',
|
|
2849
|
+
applicantMonthlySalaryCenter(),
|
|
2850
|
+
'Applicant\'s monthly pay when last working:',
|
|
2851
|
+
updates
|
|
2852
|
+
)
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
function claimStatus(updates = {}) {
|
|
2856
|
+
return sqstep(
|
|
2857
|
+
'claimStatus',
|
|
2858
|
+
claimStatusCenter(),
|
|
2859
|
+
'What is the status of the claim?',
|
|
2860
|
+
updates
|
|
2861
|
+
)
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
function disabilityConditionStopWork(updates = {}) {
|
|
2865
|
+
return sqstep(
|
|
2866
|
+
'disabilityConditionStopWork',
|
|
2867
|
+
disabilityConditionStopWorkCenter(),
|
|
2868
|
+
'Do you expect to be out of work for at least a year?',
|
|
2869
|
+
updates
|
|
2870
|
+
)
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
function disabilityWorkHistory(updates = {}) {
|
|
2874
|
+
return sqstep(
|
|
2875
|
+
'disabilityWorkHistory',
|
|
2876
|
+
disabilityWorkHistoryCenter(),
|
|
2877
|
+
'Have you had a full-time job in the past 5 years?',
|
|
2878
|
+
updates
|
|
2879
|
+
)
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
function socialSecurityDisabilityReceivingBenefits(updates = {}) {
|
|
2883
|
+
return sqstep(
|
|
2884
|
+
'socialSecurityDisabilityReceivingBenefits',
|
|
2885
|
+
socialSecurityDisabilityReceivingBenefitsCenter(),
|
|
2886
|
+
'Are you receiving Social Security Disability benefits?',
|
|
2887
|
+
updates
|
|
2888
|
+
)
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
function typeOfAssets(updates = {}) {
|
|
2892
|
+
if (typeof updates.nextOnInput === 'undefined') {
|
|
2893
|
+
updates.nextOnInput = false;
|
|
2894
|
+
}
|
|
2895
|
+
return sqstep(
|
|
2896
|
+
'typeOfAssets',
|
|
2897
|
+
typeOfAssetsCenter(),
|
|
2898
|
+
'What type of assets are involved?',
|
|
2899
|
+
updates
|
|
2900
|
+
)
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
function roleInMatterProbate(updates = {}) {
|
|
2904
|
+
return sqstep(
|
|
2905
|
+
'roleInMatterProbate',
|
|
2906
|
+
roleInMatterProbateCenter(),
|
|
2907
|
+
'What is your role in this matter?',
|
|
2908
|
+
updates
|
|
2909
|
+
)
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
function estateLegalServicesNeeded(updates = {}) {
|
|
2913
|
+
return sqstep(
|
|
2914
|
+
'estateLegalServicesNeeded',
|
|
2915
|
+
estateLegalServicesNeededCenter(),
|
|
2916
|
+
'What legal services are needed?',
|
|
2917
|
+
updates
|
|
2918
|
+
)
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
function realEstateArea(updates = {}) {
|
|
2922
|
+
return sqstep(
|
|
2923
|
+
'realEstateArea',
|
|
2924
|
+
realEstateAreaCenter(),
|
|
2925
|
+
'What area of real estate?',
|
|
2926
|
+
updates
|
|
2927
|
+
)
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
function typeOfProperty(updates = {}) {
|
|
2931
|
+
return sqstep(
|
|
2932
|
+
'typeOfProperty',
|
|
2933
|
+
typeOfPropertyCenter(),
|
|
2934
|
+
'What type of property is involved?',
|
|
2935
|
+
updates
|
|
2936
|
+
)
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
function amountPaymentsPastDue(updates = {}) {
|
|
2940
|
+
return sqstep(
|
|
2941
|
+
'amountPaymentsPastDue',
|
|
2942
|
+
amountPaymentsPastDueCenter(),
|
|
2943
|
+
'Total amount of payments past due:',
|
|
2944
|
+
updates
|
|
2945
|
+
)
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
function loanAmount(updates = {}) {
|
|
2949
|
+
return sqstep(
|
|
2950
|
+
'loanAmount',
|
|
2951
|
+
loanAmountCenter(),
|
|
2952
|
+
'Total amount of the loan:',
|
|
2953
|
+
updates
|
|
2954
|
+
)
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
function defaultNotice(updates = {}) {
|
|
2958
|
+
return sqstep(
|
|
2959
|
+
'defaultNotice',
|
|
2960
|
+
defaultNoticeCenter(),
|
|
2961
|
+
'Have you received a default notice from the lender?',
|
|
2962
|
+
updates
|
|
2963
|
+
)
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
function wouldLikeLawyerTo(updates = {}) {
|
|
2967
|
+
return sqstep(
|
|
2968
|
+
'wouldLikeLawyerTo',
|
|
2969
|
+
wouldLikeLawyerToCenter(),
|
|
2970
|
+
'I would like the lawyer to:',
|
|
2971
|
+
updates
|
|
2972
|
+
)
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
function countryOfCitizenship(updates = {}) {
|
|
2976
|
+
return sqstep(
|
|
2977
|
+
'countryOfCitizenship',
|
|
2978
|
+
countryOfCitizenshipCenter(),
|
|
2979
|
+
'What is your current country of citizenship?',
|
|
2980
|
+
updates
|
|
2981
|
+
)
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
function immigrationLocation(updates = {}) {
|
|
2985
|
+
return sqstep(
|
|
2986
|
+
'immigrationLocation',
|
|
2987
|
+
immigrationLocationCenter(),
|
|
2988
|
+
'Where are you migrating to?',
|
|
2989
|
+
updates
|
|
2990
|
+
)
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
function immigrationEntry(updates = {}) {
|
|
2994
|
+
return sqstep(
|
|
2995
|
+
'immigrationEntry',
|
|
2996
|
+
immigrationEntryCenter(),
|
|
2997
|
+
'How are you trying to enter the country?',
|
|
2998
|
+
updates
|
|
2999
|
+
)
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
function immigrationType(updates = {}) {
|
|
3003
|
+
return sqstep(
|
|
3004
|
+
'immigrationType',
|
|
3005
|
+
immigrationTypeCenter(),
|
|
3006
|
+
'What type of immigration issue?',
|
|
3007
|
+
updates
|
|
3008
|
+
)
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
function immigrationStatus(updates = {}) {
|
|
3012
|
+
return sqstep(
|
|
3013
|
+
'immigrationStatus',
|
|
3014
|
+
immigrationStatusCenter(),
|
|
3015
|
+
'Current statue of the immigration case:',
|
|
3016
|
+
updates
|
|
3017
|
+
)
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
function immigrationDetails(updates = {}) {
|
|
3021
|
+
return sqstep(
|
|
3022
|
+
'immigrationDetails',
|
|
3023
|
+
immigrationDetailsCenter(),
|
|
3024
|
+
'Where is the person seeking immigration located?',
|
|
3025
|
+
updates
|
|
3026
|
+
)
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
function landlordTenantParty(updates = {}) {
|
|
3030
|
+
return sqstep(
|
|
3031
|
+
'landlordTenantParty',
|
|
3032
|
+
landlordTenantPartyCenter(),
|
|
3033
|
+
'I am the:',
|
|
3034
|
+
updates
|
|
3035
|
+
)
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
function patentAssistanceType(updates = {}) {
|
|
3039
|
+
return sqstep(
|
|
3040
|
+
'patentAssistanceType',
|
|
3041
|
+
patentAssistanceTypeCenter(),
|
|
3042
|
+
'What type of assistance do you need?',
|
|
3043
|
+
updates
|
|
3044
|
+
)
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
function patentFor(updates = {}) {
|
|
3048
|
+
return sqstep(
|
|
3049
|
+
'patentFor',
|
|
3050
|
+
patentForCenter(),
|
|
3051
|
+
'What is the patent for?',
|
|
3052
|
+
updates
|
|
3053
|
+
)
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
function veteransDisabilityRelationship(updates = {}) {
|
|
3057
|
+
return sqstep(
|
|
3058
|
+
'veteransDisabilityRelationship',
|
|
3059
|
+
veteransDisabilityRelationshipCenter(),
|
|
3060
|
+
'What is your relationship to the applicant?',
|
|
3061
|
+
updates
|
|
3062
|
+
)
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
function veteransDisabilityInjured(updates = {}) {
|
|
3066
|
+
return sqstep(
|
|
3067
|
+
'veteransDisabilityInjured',
|
|
3068
|
+
veteransDisabilityInjuredCenter(),
|
|
3069
|
+
'Is the condition or injury related to military service?',
|
|
3070
|
+
updates
|
|
3071
|
+
)
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
function veteransDisabilityConditions(updates = {}) {
|
|
3075
|
+
return sqstep(
|
|
3076
|
+
'veteransDisabilityConditions',
|
|
3077
|
+
veteransDisabilityConditionsCenter(),
|
|
3078
|
+
'What conditions or injuries are applicable?',
|
|
3079
|
+
updates
|
|
3080
|
+
)
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
function veteransDisabilityApplied(updates = {}) {
|
|
3084
|
+
return sqstep(
|
|
3085
|
+
'veteransDisabilityApplied',
|
|
3086
|
+
veteransDisabilityAppliedCenter(),
|
|
3087
|
+
'Has the applicant applied for VA disability benefits?',
|
|
3088
|
+
updates
|
|
3089
|
+
)
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
function criminalChargeType(updates = {}) {
|
|
3093
|
+
return sqstep(
|
|
3094
|
+
'criminalChargeType',
|
|
3095
|
+
criminalChargeTypeCenter(),
|
|
3096
|
+
'What type of criminal charge?',
|
|
3097
|
+
updates
|
|
3098
|
+
)
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
function taxProblemDetails(updates = {}) {
|
|
3102
|
+
return sqstep(
|
|
3103
|
+
'taxProblemDetails',
|
|
3104
|
+
taxProblemDetailsCenter(),
|
|
3105
|
+
'Details of the tax problem:',
|
|
3106
|
+
updates
|
|
3107
|
+
)
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
function taxLevel(updates = {}) {
|
|
3111
|
+
return sqstep(
|
|
3112
|
+
'taxLevel',
|
|
3113
|
+
taxLevelCenter(),
|
|
3114
|
+
'What level of tax issue?',
|
|
3115
|
+
updates
|
|
3116
|
+
)
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
function taxIssueType(updates = {}) {
|
|
3120
|
+
return sqstep(
|
|
3121
|
+
'taxIssueType',
|
|
3122
|
+
taxIssueTypeCenter(),
|
|
3123
|
+
'What type of tax issue?',
|
|
3124
|
+
updates
|
|
3125
|
+
)
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
function causeOfInjury(updates = {}) {
|
|
3129
|
+
return sqstep(
|
|
3130
|
+
'causeOfInjury',
|
|
3131
|
+
causeOfInjuryCenter(),
|
|
3132
|
+
'What was the cause of the injury?',
|
|
3133
|
+
updates
|
|
3134
|
+
)
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
function causeOfDeath(updates = {}) {
|
|
3138
|
+
return sqstep(
|
|
3139
|
+
'causeOfDeath',
|
|
3140
|
+
causeOfDeathCenter(),
|
|
3141
|
+
'What was the cause of death?',
|
|
3142
|
+
updates
|
|
3143
|
+
)
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
function relationshipToVictim(updates = {}) {
|
|
3147
|
+
return sqstep(
|
|
3148
|
+
'relationshipToVictim',
|
|
3149
|
+
relationshipToVictimCenter(),
|
|
3150
|
+
'What is your relationship to the victim?',
|
|
3151
|
+
updates
|
|
3152
|
+
)
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
function criminalChargesFiled(updates = {}) {
|
|
3156
|
+
return sqstep(
|
|
3157
|
+
'criminalChargesFiled',
|
|
3158
|
+
criminalChargesFiledCenter(),
|
|
3159
|
+
'Have criminal charges been filed?',
|
|
3160
|
+
updates
|
|
3161
|
+
)
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
// ------ Common
|
|
3165
|
+
|
|
3166
|
+
const formNavigation = () => ({
|
|
3167
|
+
$el: 'div',
|
|
3168
|
+
attrs: {
|
|
3169
|
+
class: 'step-nav'
|
|
3170
|
+
},
|
|
3171
|
+
children: [
|
|
3172
|
+
{
|
|
3173
|
+
$formkit: 'button',
|
|
3174
|
+
name: 'back_button',
|
|
3175
|
+
onClick: '$setPreviousStep($prevStepFunc($get(form)))',
|
|
3176
|
+
children: 'Back',
|
|
3177
|
+
style: {
|
|
3178
|
+
if: '$activeStep === $firstStep()',
|
|
3179
|
+
then: 'visibility: hidden;'
|
|
3180
|
+
}
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
$formkit: 'button',
|
|
3184
|
+
name: 'next_button',
|
|
3185
|
+
onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
|
|
3186
|
+
children: {
|
|
3187
|
+
if: '$activeStep === $firstStep()',
|
|
3188
|
+
then: 'Start',
|
|
3189
|
+
else: 'Next'
|
|
3190
|
+
},
|
|
3191
|
+
outerClass: {
|
|
3192
|
+
if: '$activeStep === $lastStep()',
|
|
3193
|
+
then: 't-hidden',
|
|
3194
|
+
else: ''
|
|
3195
|
+
},
|
|
3196
|
+
style: {
|
|
3197
|
+
if: '$activeStep === $lastStep()',
|
|
3198
|
+
then: 'display: none;'
|
|
3199
|
+
}
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
$formkit: 'submit',
|
|
3203
|
+
name: 'submit_button',
|
|
3204
|
+
label: 'Submit',
|
|
3205
|
+
if: '$activeStep === $lastStep()',
|
|
3206
|
+
style: {
|
|
3207
|
+
if: '$activeStep !== $lastStep()',
|
|
3208
|
+
then: 'display: none;'
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
]
|
|
3212
|
+
});
|
|
3213
|
+
|
|
3214
|
+
const formDetails = () => ({
|
|
3215
|
+
$el: 'pre',
|
|
3216
|
+
if: '$urlParam("fdbg", "") == 1',
|
|
3217
|
+
children: [
|
|
3218
|
+
{
|
|
3219
|
+
$el: 'pre',
|
|
3220
|
+
children: '$stringify( $get(form).value )',
|
|
3221
|
+
attrs: {
|
|
3222
|
+
class: 't-text-xs',
|
|
3223
|
+
style: 'overflow: scroll'
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
$el: 'pre',
|
|
3228
|
+
children: ['activeStep: ', '$activeStep'],
|
|
3229
|
+
attrs: {
|
|
3230
|
+
class: 't-text-xs',
|
|
3231
|
+
style: 'overflow: scroll'
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
$el: 'pre',
|
|
3236
|
+
children: ['stepHistory: ', '$stepHistory'],
|
|
3237
|
+
attrs: {
|
|
3238
|
+
class: 't-text-xs',
|
|
3239
|
+
style: 'overflow: scroll'
|
|
3240
|
+
}
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
$el: 'pre',
|
|
3244
|
+
children: ['stepQueue: ', '$stepQueue'],
|
|
3245
|
+
attrs: {
|
|
3246
|
+
class: 't-text-xs',
|
|
3247
|
+
style: 'overflow: scroll'
|
|
3248
|
+
}
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
$el: 'pre',
|
|
3252
|
+
children: ['steps: ', '$stepKeys()'],
|
|
3253
|
+
attrs: {
|
|
3254
|
+
class: 't-text-xs',
|
|
3255
|
+
style: 'overflow: scroll'
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
]
|
|
3259
|
+
});
|
|
3260
|
+
|
|
3261
|
+
const formPropDefaults = {
|
|
3262
|
+
type: 'form',
|
|
3263
|
+
id: 'form',
|
|
3264
|
+
config: { validationVisibility: 'submit' },
|
|
3265
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
3266
|
+
plugins: '$plugins',
|
|
3267
|
+
actions: false,
|
|
3268
|
+
anchorElement: 'form-anchor',
|
|
3269
|
+
useLocalStorage: true,
|
|
3270
|
+
prepop: {
|
|
3271
|
+
fromURL: true
|
|
3272
|
+
},
|
|
3273
|
+
errorCodes: {
|
|
3274
|
+
403: { message: "An Error Occurred", abort: false },
|
|
3275
|
+
409: { abort: false },
|
|
3276
|
+
429: "An Error Occurred",
|
|
3277
|
+
504: { message: "An Error Occurred", abort: false },
|
|
3278
|
+
},
|
|
3279
|
+
formClass: '!t-max-w-[40rem]'
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
function formProps(updates) {
|
|
3283
|
+
const props = merge(
|
|
3284
|
+
formPropDefaults,
|
|
3285
|
+
updates
|
|
3286
|
+
);
|
|
3287
|
+
if (props.formId && !props.name) {
|
|
3288
|
+
props.name = props.formId;
|
|
3289
|
+
}
|
|
3290
|
+
return props
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
const metaDefaults = {
|
|
3294
|
+
tcpaLanguage: TCPA_LANGUAGE
|
|
3295
|
+
};
|
|
3296
|
+
|
|
3297
|
+
function metaProps(updates) {
|
|
3298
|
+
const data = merge(
|
|
3299
|
+
metaDefaults,
|
|
3300
|
+
updates
|
|
3301
|
+
);
|
|
3302
|
+
return {
|
|
3303
|
+
type: 'meta',
|
|
3304
|
+
data
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
function defaultMetaProps() {
|
|
3309
|
+
return metaProps({
|
|
3310
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
3311
|
+
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
3312
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
|
|
3313
|
+
finalHeadlines: TOLPFinalHeadlines,
|
|
3314
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
|
|
3315
|
+
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
3316
|
+
})
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
const dynamicSchemaNode = {
|
|
3320
|
+
$cmp: 'FormKitSchema',
|
|
3321
|
+
if: '$get(Type_Of_Legal_Problem).value',
|
|
3322
|
+
props: {
|
|
3323
|
+
schema: '$meta.dynamicSchema',
|
|
3324
|
+
data: '$buildData($meta)'
|
|
3325
|
+
}
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
const formAnchorDefaults = {
|
|
3329
|
+
$el: 'div',
|
|
3330
|
+
children: [
|
|
3331
|
+
{
|
|
3332
|
+
$el: 'div',
|
|
3333
|
+
attrs: {
|
|
3334
|
+
id: 'form-anchor',
|
|
3335
|
+
class: 't-absolute',
|
|
3336
|
+
style: { top: '-30px', left: 0 }
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
],
|
|
3340
|
+
attrs: {
|
|
3341
|
+
class: 't-relative'
|
|
3342
|
+
}
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
function formAnchor(updates) {
|
|
3346
|
+
return merge(
|
|
3347
|
+
formAnchorDefaults,
|
|
3348
|
+
updates
|
|
3349
|
+
)
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
const progressBarDefaults = {
|
|
3353
|
+
$el: 'div',
|
|
3354
|
+
attrs: {
|
|
3355
|
+
class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
|
|
3356
|
+
style: {
|
|
3357
|
+
if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
|
|
3358
|
+
then: 'display: none'
|
|
3359
|
+
},
|
|
3360
|
+
},
|
|
3361
|
+
children: [
|
|
3362
|
+
{
|
|
3363
|
+
$el: 'div',
|
|
3364
|
+
attrs: {
|
|
3365
|
+
class: 't-flex t-justify-center'
|
|
3366
|
+
},
|
|
3367
|
+
children: [
|
|
3368
|
+
{
|
|
3369
|
+
$el: 'span',
|
|
3370
|
+
attrs: {
|
|
3371
|
+
id: 'progress-bar-text',
|
|
3372
|
+
class: 't-text-sm t-mb-1'
|
|
3373
|
+
},
|
|
3374
|
+
children: [
|
|
3375
|
+
"0% Complete"
|
|
3376
|
+
]
|
|
3377
|
+
},
|
|
3378
|
+
]
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
$el: 'div',
|
|
3382
|
+
attrs: {
|
|
3383
|
+
class: 't-bg-gray-100 t-w-9/12 t-rounded'
|
|
3384
|
+
},
|
|
3385
|
+
children: [
|
|
3386
|
+
{
|
|
3387
|
+
$el: 'div',
|
|
3388
|
+
attrs: {
|
|
3389
|
+
id: 'progress-bar',
|
|
3390
|
+
class: '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]',
|
|
3391
|
+
style: {
|
|
3392
|
+
transition: 'width 0.5s ease'
|
|
3393
|
+
},
|
|
3394
|
+
},
|
|
3395
|
+
}
|
|
3396
|
+
]
|
|
3397
|
+
}
|
|
3398
|
+
]
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
function progressBar(updates) {
|
|
3402
|
+
return merge(
|
|
3403
|
+
progressBarDefaults,
|
|
3404
|
+
updates
|
|
3405
|
+
)
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
function headlineDefaults(updates = {}) {
|
|
3409
|
+
return {
|
|
3410
|
+
$el: 'h1',
|
|
3411
|
+
attrs: {
|
|
3412
|
+
class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
function headline(updates = {}) {
|
|
3418
|
+
return merge(
|
|
3419
|
+
headlineDefaults(updates),
|
|
3420
|
+
updates
|
|
3421
|
+
)
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
function subHeadlineDefaults(updates = {}) {
|
|
3425
|
+
return {
|
|
3426
|
+
$el: 'h3',
|
|
3427
|
+
attrs: {
|
|
3428
|
+
class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
function subHeadline(updates = {}) {
|
|
3434
|
+
return merge(
|
|
3435
|
+
subHeadlineDefaults(updates),
|
|
3436
|
+
updates
|
|
3437
|
+
)
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
function defaultSubHeadline() {
|
|
3441
|
+
return subHeadline({
|
|
3442
|
+
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
3443
|
+
if: '$activeStep === $firstStep()'
|
|
3444
|
+
})
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
const hiddenInputsBase = [
|
|
3448
|
+
{
|
|
3449
|
+
$formkit: 'hidden',
|
|
3450
|
+
name: "gclid",
|
|
3451
|
+
value: null
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
$formkit: 'hidden',
|
|
3455
|
+
name: "campaignid",
|
|
3456
|
+
value: null
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
$formkit: 'hidden',
|
|
3460
|
+
name: "s",
|
|
3461
|
+
value: null
|
|
3462
|
+
}
|
|
3463
|
+
];
|
|
3464
|
+
|
|
3465
|
+
const hiddenInputsLegal = [
|
|
3466
|
+
{
|
|
3467
|
+
$formkit: 'hidden',
|
|
3468
|
+
name: "vertical",
|
|
3469
|
+
value: "Legal"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
$formkit: 'hidden',
|
|
3473
|
+
name: "TCPA_Language",
|
|
3474
|
+
value: "$meta.tcpaLanguage"
|
|
3475
|
+
},
|
|
3476
|
+
...hiddenInputsBase
|
|
3477
|
+
];
|
|
3478
|
+
|
|
3479
|
+
const legalRedirectMapDefaults = {
|
|
3480
|
+
'*': LegalRedirectUrl()
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
function legalRedirectMap(updates) {
|
|
3485
|
+
return merge(
|
|
3486
|
+
legalRedirectMapDefaults,
|
|
3487
|
+
updates
|
|
3488
|
+
)
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
const legalAllValueOverrideMap = {
|
|
3492
|
+
'Civil_Defense': {
|
|
3493
|
+
'Yes': {
|
|
3494
|
+
'Type_Of_Legal_Problem': 'Defend a Lawsuit'
|
|
3495
|
+
},
|
|
3496
|
+
'No': {
|
|
3497
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
'Type_Of_Legal_Problem_Display': {
|
|
3501
|
+
// Accidents and PI
|
|
3502
|
+
'Auto Accident': {
|
|
3503
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3504
|
+
},
|
|
3505
|
+
'Dog Bite': {
|
|
3506
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3507
|
+
},
|
|
3508
|
+
'Slip and Fall': {
|
|
3509
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3510
|
+
},
|
|
3511
|
+
'Workplace Injury': {
|
|
3512
|
+
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
3513
|
+
},
|
|
3514
|
+
'Trucking Accident': {
|
|
3515
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3516
|
+
},
|
|
3517
|
+
'Motorcycle Accident': {
|
|
3518
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents',
|
|
3519
|
+
},
|
|
3520
|
+
'Other Accidents or Injuries': {
|
|
3521
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3522
|
+
},
|
|
3523
|
+
// Civil
|
|
3524
|
+
'Automobile Accident': {
|
|
3525
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
3526
|
+
},
|
|
3527
|
+
'Contract Disputes': {
|
|
3528
|
+
'Type_Of_Legal_Problem': 'Business Lawyers'
|
|
3529
|
+
},
|
|
3530
|
+
'Defamation and Slander': {
|
|
3531
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3532
|
+
},
|
|
3533
|
+
'Dog Bite': {
|
|
3534
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3535
|
+
},
|
|
3536
|
+
'Employment and Workplace': {
|
|
3537
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3538
|
+
},
|
|
3539
|
+
'Fraud': {
|
|
3540
|
+
'Type_Of_Legal_Problem': 'Consumer Lawyers'
|
|
3541
|
+
},
|
|
3542
|
+
'Medical Malpractice': {
|
|
3543
|
+
'Type_Of_Legal_Problem': 'Medical Malpractice'
|
|
3544
|
+
},
|
|
3545
|
+
'Personal Injury': {
|
|
3546
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
3547
|
+
},
|
|
3548
|
+
'Property Damage': {
|
|
3549
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
3550
|
+
},
|
|
3551
|
+
'Small Claims': {
|
|
3552
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
3553
|
+
},
|
|
3554
|
+
'Real Estate': {
|
|
3555
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3556
|
+
},
|
|
3557
|
+
'Other (describe on next page)': {
|
|
3558
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3559
|
+
},
|
|
3560
|
+
// Contracts
|
|
3561
|
+
'Contract Creation': {
|
|
3562
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3563
|
+
'Business_Services': 'Contracts'
|
|
3564
|
+
},
|
|
3565
|
+
'Contract Enforcement': {
|
|
3566
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3567
|
+
'Business_Services': 'Contracts'
|
|
3568
|
+
},
|
|
3569
|
+
'Contract Cancellation': {
|
|
3570
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3571
|
+
'Business_Services': 'Contracts'
|
|
3572
|
+
},
|
|
3573
|
+
'Contract Fraud': {
|
|
3574
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3575
|
+
'Business_Services': 'Contracts'
|
|
3576
|
+
},
|
|
3577
|
+
'Breach of Contract': {
|
|
3578
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3579
|
+
'Business_Services': 'Contracts'
|
|
3580
|
+
},
|
|
3581
|
+
'Other Contract Issues': {
|
|
3582
|
+
'Type_Of_Legal_Problem': 'Business Lawyers',
|
|
3583
|
+
'Business_Services': 'Contracts'
|
|
3584
|
+
},
|
|
3585
|
+
// Criminal
|
|
3586
|
+
'Criminal Defense': {
|
|
3587
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
3588
|
+
},
|
|
3589
|
+
'Victim of a Crime': {
|
|
3590
|
+
'Type_Of_Legal_Problem': 'Victim of a Crime'
|
|
3591
|
+
},
|
|
3592
|
+
'DUI and DWI': {
|
|
3593
|
+
'Type_Of_Legal_Problem': 'DUI and DWI'
|
|
3594
|
+
},
|
|
3595
|
+
'Expungement': {
|
|
3596
|
+
'Type_Of_Legal_Problem': 'Expungement'
|
|
3597
|
+
},
|
|
3598
|
+
'Harassment': {
|
|
3599
|
+
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
3600
|
+
},
|
|
3601
|
+
'Not Sure or Other': {
|
|
3602
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3603
|
+
},
|
|
3604
|
+
// Employment and Workplace
|
|
3605
|
+
'Workplace Harassment': {
|
|
3606
|
+
'Type_Of_Legal_Problem': 'Workplace Harassment'
|
|
3607
|
+
},
|
|
3608
|
+
'Workplace Discrimination': {
|
|
3609
|
+
'Type_Of_Legal_Problem': 'Workplace Discrimination'
|
|
3610
|
+
},
|
|
3611
|
+
'Wrongful Termination': {
|
|
3612
|
+
'Type_Of_Legal_Problem': 'Wrongful Termination'
|
|
3613
|
+
},
|
|
3614
|
+
'Payment Disputes': {
|
|
3615
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3616
|
+
},
|
|
3617
|
+
'Workers Compensation': {
|
|
3618
|
+
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
3619
|
+
},
|
|
3620
|
+
'Unemployment': {
|
|
3621
|
+
'Type_Of_Legal_Problem': 'Unemployment'
|
|
3622
|
+
},
|
|
3623
|
+
'Other Workplace Issues': {
|
|
3624
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
3625
|
+
},
|
|
3626
|
+
// Malpractice
|
|
3627
|
+
'Attorney Malpractice': {
|
|
3628
|
+
'Type_Of_Legal_Problem': 'Civil Lawsuit'
|
|
3629
|
+
},
|
|
3630
|
+
'Other Malpractice Issues': {
|
|
3631
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3632
|
+
},
|
|
3633
|
+
// Repossession
|
|
3634
|
+
'Vehicle Repossession': {
|
|
3635
|
+
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
3636
|
+
},
|
|
3637
|
+
'Property Repossession': {
|
|
3638
|
+
'Type_Of_Legal_Problem': 'Bankruptcy'
|
|
3639
|
+
},
|
|
3640
|
+
'Other Repossession Issues': {
|
|
3641
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
3642
|
+
},
|
|
3643
|
+
// Real Estate
|
|
3644
|
+
'Contracts and Agreements': {
|
|
3645
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3646
|
+
},
|
|
3647
|
+
'Deeds, Liens, and Titles': {
|
|
3648
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3649
|
+
},
|
|
3650
|
+
'Foreclosure': {
|
|
3651
|
+
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
3652
|
+
},
|
|
3653
|
+
'Insurance': {
|
|
3654
|
+
'Type_Of_Legal_Problem': 'Insurance'
|
|
3655
|
+
},
|
|
3656
|
+
'Landlord and Tenant': {
|
|
3657
|
+
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
3658
|
+
},
|
|
3659
|
+
'Loans and Mortgages': {
|
|
3660
|
+
'Type_Of_Legal_Problem': 'Real Estate',
|
|
3661
|
+
},
|
|
3662
|
+
'Wills, Trusts, and Estates': {
|
|
3663
|
+
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
3664
|
+
},
|
|
3665
|
+
'Property Damage': {
|
|
3666
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
3667
|
+
},
|
|
3668
|
+
'Other Real Estate Issues': {
|
|
3669
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
const TOLPCommentsPlaceholders = {
|
|
3675
|
+
'Adoption': 'Example: "I need help with adoption forms"',
|
|
3676
|
+
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
3677
|
+
'Auto and Car Accidents': 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
|
|
3678
|
+
'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
|
|
3679
|
+
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
3680
|
+
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
3681
|
+
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
3682
|
+
'Child Custody': 'Example: "Need help getting custody"',
|
|
3683
|
+
'Child Support': 'Example: "Issues with child support payments"',
|
|
3684
|
+
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
3685
|
+
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
3686
|
+
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
3687
|
+
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
3688
|
+
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
3689
|
+
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
3690
|
+
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
3691
|
+
'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
3692
|
+
'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
|
|
3693
|
+
'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
|
|
3694
|
+
'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
3695
|
+
'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
3696
|
+
'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
|
|
3697
|
+
'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
3698
|
+
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
3699
|
+
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
3700
|
+
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
3701
|
+
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
3702
|
+
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
3703
|
+
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
3704
|
+
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
3705
|
+
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
3706
|
+
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
3707
|
+
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
3708
|
+
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
3709
|
+
'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
3710
|
+
'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
3711
|
+
'Long Term Disability': 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
|
|
3712
|
+
'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
3713
|
+
'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
3714
|
+
'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
3715
|
+
'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
|
|
3716
|
+
'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
3717
|
+
'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
3718
|
+
'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
3719
|
+
'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
3720
|
+
'Social Security Disability and Insurance': 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
|
|
3721
|
+
'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
3722
|
+
'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
3723
|
+
'Unemployment': 'Example: "I need help filing for unemployment benefits"',
|
|
3724
|
+
'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
3725
|
+
'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
3726
|
+
'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
3727
|
+
'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
|
|
3728
|
+
'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
|
|
3729
|
+
'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
|
|
3730
|
+
};
|
|
3731
|
+
|
|
3732
|
+
const TOLPFinalHeadlines = {
|
|
3733
|
+
// 'Adoption': '',
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
const TOLPFinalSubHeadlines = {
|
|
3737
|
+
'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
|
|
3738
|
+
// 'Asbestos and Mesothelioma': '',
|
|
3739
|
+
'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
|
|
3740
|
+
'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
|
|
3741
|
+
// 'Birth Certificate and Name Change': '',
|
|
3742
|
+
// 'Business Lawyers': '',
|
|
3743
|
+
// 'Child Custody and Support': '',
|
|
3744
|
+
// 'Civil Rights and Discrimination': '',
|
|
3745
|
+
// 'Civil Lawsuit': '',
|
|
3746
|
+
// 'Consumer Lawyers': '',
|
|
3747
|
+
'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
|
|
3748
|
+
// 'Criminal and Felony': '',
|
|
3749
|
+
// 'Debt and Collections': '',
|
|
3750
|
+
'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
|
|
3751
|
+
'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
|
|
3752
|
+
'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
|
|
3753
|
+
// 'Employment and Workplace': '',
|
|
3754
|
+
// 'Expungement': '',
|
|
3755
|
+
// 'Family Issues': '',
|
|
3756
|
+
'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
|
|
3757
|
+
'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
|
|
3758
|
+
// 'Harassment and Discrimination': '',
|
|
3759
|
+
// 'Identity Theft': '',
|
|
3760
|
+
'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
|
|
3761
|
+
// 'Insurance': '',
|
|
3762
|
+
'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
|
|
3763
|
+
// 'Lemon Law': '',
|
|
3764
|
+
'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
|
|
3765
|
+
'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
|
|
3766
|
+
'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
|
|
3767
|
+
'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
|
|
3768
|
+
// 'Power of Attorney': '',
|
|
3769
|
+
'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
|
|
3770
|
+
// 'Product Liability': '',
|
|
3771
|
+
// 'Property Damage': '',
|
|
3772
|
+
'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
|
|
3773
|
+
'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
|
|
3774
|
+
'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
|
|
3775
|
+
// 'Traffic and Tickets': '',
|
|
3776
|
+
'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
|
|
3777
|
+
// 'Victim of a Crime': '',
|
|
3778
|
+
// 'Wills and Trusts': '',
|
|
3779
|
+
'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
|
|
3780
|
+
// 'Wrongful Death': '',
|
|
3781
|
+
// 'Wrongful Termination': '',
|
|
3782
|
+
// 'Not Sure or Other': ''
|
|
3783
|
+
// 'Sexual Harassment': '',
|
|
3784
|
+
// 'Workplace Harassment': '',
|
|
3785
|
+
// 'Non-Workplace Harassment': '',
|
|
3786
|
+
// 'Workplace Discrimination': '',
|
|
3787
|
+
// 'Non-Workplace Discrimination': '',
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3790
|
+
const nextStepsLegalDefault = [
|
|
3791
|
+
'haveAttorney',
|
|
3792
|
+
'degreeOfInterest',
|
|
3793
|
+
'commentsWithBankruptcy',
|
|
3794
|
+
'zipcode',
|
|
3795
|
+
'legalCrossSells',
|
|
3796
|
+
'firstAndLast',
|
|
3797
|
+
'contactInfo',
|
|
3798
|
+
];
|
|
3799
|
+
|
|
3800
|
+
const nextStepsLegalDefaultLPM = [
|
|
3801
|
+
'haveAttorney',
|
|
3802
|
+
'degreeOfInterest',
|
|
3803
|
+
'lawyerPaymentMethod',
|
|
3804
|
+
'commentsWithBankruptcy',
|
|
3805
|
+
'zipcode',
|
|
3806
|
+
'legalCrossSells',
|
|
3807
|
+
'firstAndLast',
|
|
3808
|
+
'contactInfo',
|
|
3809
|
+
];
|
|
3810
|
+
|
|
3811
|
+
const nextStepsLegalNoDOI = [
|
|
3812
|
+
'haveAttorney',
|
|
3813
|
+
'commentsWithBankruptcy',
|
|
3814
|
+
'zipcode',
|
|
3815
|
+
'legalCrossSells',
|
|
3816
|
+
'firstAndLast',
|
|
3817
|
+
'contactInfo',
|
|
3818
|
+
];
|
|
3819
|
+
|
|
3820
|
+
const nextStepsLegalNoHA = [
|
|
3821
|
+
'degreeOfInterest',
|
|
3822
|
+
'commentsWithBankruptcy',
|
|
3823
|
+
'zipcode',
|
|
3824
|
+
'legalCrossSells',
|
|
3825
|
+
'firstAndLast',
|
|
3826
|
+
'contactInfo',
|
|
3827
|
+
];
|
|
3828
|
+
|
|
3829
|
+
const nextStepsMapGeneralLegal = {
|
|
3830
|
+
'Type_Of_Legal_Problem': {
|
|
3831
|
+
'Adoption': [
|
|
3832
|
+
'maritalStatus',
|
|
3833
|
+
'haveChildren',
|
|
3834
|
+
...nextStepsLegalDefaultLPM
|
|
3835
|
+
],
|
|
3836
|
+
'Asbestos and Mesothelioma': [
|
|
3837
|
+
'incidentDate',
|
|
3838
|
+
'doctorTreatment',
|
|
3839
|
+
...nextStepsLegalDefault
|
|
3840
|
+
],
|
|
3841
|
+
'Auto and Car Accidents': [
|
|
3842
|
+
'incidentDate',
|
|
3843
|
+
'atFault',
|
|
3844
|
+
'primaryInjury',
|
|
3845
|
+
'doctorTreatment',
|
|
3846
|
+
'policeReportFiled',
|
|
3847
|
+
...nextStepsLegalNoDOI
|
|
3848
|
+
],
|
|
3849
|
+
'Bankruptcy': [
|
|
3850
|
+
'totalMonthlyIncome',
|
|
3851
|
+
'totalDebt',
|
|
3852
|
+
'ownRealEstate',
|
|
3853
|
+
'valueOfAssets',
|
|
3854
|
+
...nextStepsLegalDefault
|
|
3855
|
+
],
|
|
3856
|
+
'Business Lawyers': [
|
|
3857
|
+
'businessServices',
|
|
3858
|
+
'businessType',
|
|
3859
|
+
'numEmployeesOfBusiness',
|
|
3860
|
+
...nextStepsLegalDefault
|
|
3861
|
+
],
|
|
3862
|
+
'Child Custody': [
|
|
3863
|
+
'childRelationship',
|
|
3864
|
+
'childHome',
|
|
3865
|
+
'childPrimaryCaregiver',
|
|
3866
|
+
...nextStepsLegalDefaultLPM
|
|
3867
|
+
],
|
|
3868
|
+
'Child Support': [
|
|
3869
|
+
'childRelationship',
|
|
3870
|
+
'childHome',
|
|
3871
|
+
'childPrimaryCaregiver',
|
|
3872
|
+
...nextStepsLegalDefaultLPM
|
|
3873
|
+
],
|
|
3874
|
+
'Civil Rights and Discrimination': [
|
|
3875
|
+
'civilRightsType',
|
|
3876
|
+
...nextStepsLegalDefault
|
|
3877
|
+
],
|
|
3878
|
+
'Civil Lawsuit': [
|
|
3879
|
+
'civilDefense',
|
|
3880
|
+
'lawsuitOtherParty',
|
|
3881
|
+
...nextStepsLegalDefault
|
|
3882
|
+
],
|
|
3883
|
+
'File a Lawsuit': [
|
|
3884
|
+
'civilLawsuitTOLPDisplay',
|
|
3885
|
+
'lawsuitOtherParty',
|
|
3886
|
+
...nextStepsLegalDefault
|
|
3887
|
+
],
|
|
3888
|
+
'Defend a Lawsuit': [
|
|
3889
|
+
'lawsuitOtherParty',
|
|
3890
|
+
...nextStepsLegalDefault
|
|
3891
|
+
],
|
|
3892
|
+
'Consumer Lawyers': [
|
|
3893
|
+
'consumerLawyerType',
|
|
3894
|
+
'incidentDate',
|
|
3895
|
+
'lawsuitOtherParty',
|
|
3896
|
+
...nextStepsLegalDefault
|
|
3897
|
+
],
|
|
3898
|
+
'Criminal and Felony': [
|
|
3899
|
+
'criminalTOLPDisplay',
|
|
3900
|
+
'crimeCommittedDate',
|
|
3901
|
+
'roleInMatterCriminal',
|
|
3902
|
+
'pendingCharges',
|
|
3903
|
+
...nextStepsLegalDefaultLPM
|
|
3904
|
+
],
|
|
3905
|
+
'Debt and Collections': [
|
|
3906
|
+
'totalMonthlyIncome',
|
|
3907
|
+
'totalDebt',
|
|
3908
|
+
'ownRealEstate',
|
|
3909
|
+
'valueOfAssets',
|
|
3910
|
+
...nextStepsLegalDefault
|
|
3911
|
+
],
|
|
3912
|
+
'Divorce and Separation': [
|
|
3913
|
+
'maritalStatus',
|
|
3914
|
+
'haveChildren',
|
|
3915
|
+
...nextStepsLegalDefaultLPM
|
|
3916
|
+
],
|
|
3917
|
+
'DUI and DWI': [
|
|
3918
|
+
'incidentDate',
|
|
3919
|
+
'priorAlcoholOffenses',
|
|
3920
|
+
'typeOfAlcoholTest',
|
|
3921
|
+
'bloodContentAlcoholTest',
|
|
3922
|
+
'pendingCharges',
|
|
3923
|
+
...nextStepsLegalDefault
|
|
3924
|
+
],
|
|
3925
|
+
'Employment and Workplace': [
|
|
3926
|
+
'employmentAndWorkplaceTOLPDisplay',
|
|
3927
|
+
'numEmployeesOfBusiness',
|
|
3928
|
+
'employerType',
|
|
3929
|
+
'employeeAtCompany',
|
|
3930
|
+
...nextStepsLegalDefault
|
|
3931
|
+
],
|
|
3932
|
+
'Expungement': [
|
|
3933
|
+
'incidentDate',
|
|
3934
|
+
'criminalChargeType',
|
|
3935
|
+
...nextStepsLegalDefaultLPM
|
|
3936
|
+
],
|
|
3937
|
+
'Family Issues': [
|
|
3938
|
+
'maritalStatus',
|
|
3939
|
+
'haveChildren',
|
|
3940
|
+
...nextStepsLegalDefaultLPM
|
|
3941
|
+
],
|
|
3942
|
+
'Foreclosure': [
|
|
3943
|
+
'ownRealEstate',
|
|
3944
|
+
'typeOfProperty',
|
|
3945
|
+
'amountPaymentsPastDue',
|
|
3946
|
+
'loanAmount',
|
|
3947
|
+
'defaultNotice',
|
|
3948
|
+
...nextStepsLegalDefault
|
|
3949
|
+
],
|
|
3950
|
+
'Guardianship': [
|
|
3951
|
+
'maritalStatus',
|
|
3952
|
+
'haveChildren',
|
|
3953
|
+
...nextStepsLegalDefaultLPM
|
|
3954
|
+
],
|
|
3955
|
+
'Immigration and Visas': [
|
|
3956
|
+
'countryOfCitizenship',
|
|
3957
|
+
'immigrationLocation',
|
|
3958
|
+
'immigrationEntry',
|
|
3959
|
+
'immigrationType',
|
|
3960
|
+
'immigrationStatus',
|
|
3961
|
+
'immigrationDetails',
|
|
3962
|
+
...nextStepsLegalDefault
|
|
3963
|
+
],
|
|
3964
|
+
'Landlord and Tenant': [
|
|
3965
|
+
'landlordTenantIssue',
|
|
3966
|
+
'landlordTenantParty',
|
|
3967
|
+
...nextStepsLegalDefault
|
|
3968
|
+
],
|
|
3969
|
+
'Lemon Law': [
|
|
3970
|
+
'incidentDate',
|
|
3971
|
+
'lawsuitOtherParty',
|
|
3972
|
+
...nextStepsLegalDefault
|
|
3973
|
+
],
|
|
3974
|
+
'Long Term Disability': [
|
|
3975
|
+
'applicantOccupation',
|
|
3976
|
+
'applicantAge',
|
|
3977
|
+
'applicantLTDisabilityPolicy',
|
|
3978
|
+
'applicantDisabilityHowObtain',
|
|
3979
|
+
'applicantPreviouslyAppliedLtdBenefits',
|
|
3980
|
+
'applicantReceivedDisabilityBenefits',
|
|
3981
|
+
'applicantMonthlySalary',
|
|
3982
|
+
...nextStepsLegalNoDOI
|
|
3983
|
+
],
|
|
3984
|
+
'Medical Malpractice': [
|
|
3985
|
+
'incidentDate',
|
|
3986
|
+
'claimStatus',
|
|
3987
|
+
'doctorTreatment',
|
|
3988
|
+
'medicalMalpracticeInjuries',
|
|
3989
|
+
...nextStepsLegalDefault
|
|
3990
|
+
],
|
|
3991
|
+
'Patents and Intellectual Property': [
|
|
3992
|
+
'patentAssistanceType',
|
|
3993
|
+
'patentFor',
|
|
3994
|
+
...nextStepsLegalDefault
|
|
3995
|
+
],
|
|
3996
|
+
'Personal Injury': [
|
|
3997
|
+
'incidentDate',
|
|
3998
|
+
'claimStatus',
|
|
3999
|
+
'atFault',
|
|
4000
|
+
'primaryInjury',
|
|
4001
|
+
'doctorTreatment',
|
|
4002
|
+
...nextStepsLegalNoDOI
|
|
4003
|
+
],
|
|
4004
|
+
'Probate and Estates': [
|
|
4005
|
+
'valueOfAssets',
|
|
4006
|
+
'typeOfAssets',
|
|
4007
|
+
'roleInMatterProbate',
|
|
4008
|
+
'estateLegalServicesNeeded',
|
|
4009
|
+
...nextStepsLegalDefault
|
|
4010
|
+
],
|
|
4011
|
+
'Property Damage': [
|
|
4012
|
+
'realEstateArea',
|
|
4013
|
+
'wouldLikeLawyerTo',
|
|
4014
|
+
...nextStepsLegalDefault
|
|
4015
|
+
],
|
|
4016
|
+
'Real Estate': [
|
|
4017
|
+
'realEstateTOLPDisplay',
|
|
4018
|
+
'realEstateArea',
|
|
4019
|
+
'wouldLikeLawyerTo',
|
|
4020
|
+
...nextStepsLegalDefault
|
|
4021
|
+
],
|
|
4022
|
+
'Social Security Disability and Insurance': [
|
|
4023
|
+
'applicantAge',
|
|
4024
|
+
'disabilityConditionStopWork',
|
|
4025
|
+
'disabilityWorkHistory',
|
|
4026
|
+
'socialSecurityDisabilityReceivingBenefits',
|
|
4027
|
+
'doctorTreatment',
|
|
4028
|
+
...nextStepsLegalNoDOI
|
|
4029
|
+
],
|
|
4030
|
+
'Tax and IRS': [
|
|
4031
|
+
'totalDebt',
|
|
4032
|
+
'taxProblemDetails',
|
|
4033
|
+
'taxLevel',
|
|
4034
|
+
'taxIssueType',
|
|
4035
|
+
...nextStepsLegalDefault
|
|
4036
|
+
],
|
|
4037
|
+
'Traffic and Tickets': [
|
|
4038
|
+
'driversLicenseType',
|
|
4039
|
+
'trafficViolations',
|
|
4040
|
+
'haveCourtDate',
|
|
4041
|
+
...nextStepsLegalDefault
|
|
4042
|
+
],
|
|
4043
|
+
'Unemployment': [
|
|
4044
|
+
'numEmployeesOfBusiness',
|
|
4045
|
+
'employerType',
|
|
4046
|
+
...nextStepsLegalNoHA
|
|
4047
|
+
],
|
|
4048
|
+
'Victim of a Crime': [
|
|
4049
|
+
'crimeCommittedDate',
|
|
4050
|
+
'roleInMatterCriminal',
|
|
4051
|
+
'pendingCharges',
|
|
4052
|
+
...nextStepsLegalDefaultLPM
|
|
4053
|
+
],
|
|
4054
|
+
'Wills and Trusts': [
|
|
4055
|
+
'valueOfAssets',
|
|
4056
|
+
'typeOfAssets',
|
|
4057
|
+
'roleInMatterProbate',
|
|
4058
|
+
'estateLegalServicesNeeded',
|
|
4059
|
+
...nextStepsLegalDefault
|
|
4060
|
+
],
|
|
4061
|
+
'Workers Compensation': [
|
|
4062
|
+
'incidentDate',
|
|
4063
|
+
'claimStatus',
|
|
4064
|
+
'primaryInjury',
|
|
4065
|
+
'causeOfInjury',
|
|
4066
|
+
'doctorTreatment',
|
|
4067
|
+
...nextStepsLegalNoDOI
|
|
4068
|
+
],
|
|
4069
|
+
'Workplace Harassment': [
|
|
4070
|
+
'numEmployeesOfBusiness',
|
|
4071
|
+
'employerType',
|
|
4072
|
+
'employeeAtCompany',
|
|
4073
|
+
...nextStepsLegalDefault
|
|
4074
|
+
],
|
|
4075
|
+
'Workplace Discrimination': [
|
|
4076
|
+
'numEmployeesOfBusiness',
|
|
4077
|
+
'employerType',
|
|
4078
|
+
'employeeAtCompany',
|
|
4079
|
+
...nextStepsLegalDefault
|
|
4080
|
+
],
|
|
4081
|
+
'Wrongful Death': [
|
|
4082
|
+
'incidentDate',
|
|
4083
|
+
'relationshipToVictim',
|
|
4084
|
+
'criminalChargesFiled',
|
|
4085
|
+
'causeOfDeath',
|
|
4086
|
+
...nextStepsLegalNoDOI
|
|
4087
|
+
],
|
|
4088
|
+
'Wrongful Termination': [
|
|
4089
|
+
'numEmployeesOfBusiness',
|
|
4090
|
+
'employerType',
|
|
4091
|
+
...nextStepsLegalDefault
|
|
4092
|
+
],
|
|
4093
|
+
},
|
|
4094
|
+
'*': nextStepsLegalDefault
|
|
4095
|
+
};
|
|
4096
|
+
|
|
4097
|
+
// function filterMapByKey(obj, keyList) {
|
|
4098
|
+
// return Object.fromEntries(
|
|
4099
|
+
// Object.entries(obj).filter(([key]) => keyList.includes(key))
|
|
4100
|
+
// );
|
|
4101
|
+
// }
|
|
4102
|
+
|
|
4103
|
+
// export function filteredNextStepsMapLegal(keyList) {
|
|
4104
|
+
// const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
|
|
4105
|
+
// res["*"] = nextStepsMapGeneralLegal["*"]
|
|
4106
|
+
// return res
|
|
4107
|
+
// }
|
|
4108
|
+
|
|
4109
|
+
const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
|
|
4110
|
+
|
|
4111
|
+
({
|
|
4112
|
+
'Type_Of_Legal_Problem': {
|
|
4113
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4114
|
+
'Child Support': TOLPNextSteps["Child Support"],
|
|
4115
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4116
|
+
},
|
|
4117
|
+
'*': TOLPNextSteps["Family Issues"]
|
|
4118
|
+
});
|
|
4119
|
+
|
|
4120
|
+
({
|
|
4121
|
+
'Civil_Defense': {
|
|
4122
|
+
'Yes': TOLPNextSteps["Defend a Lawsuit"],
|
|
4123
|
+
'No': TOLPNextSteps["File a Lawsuit"],
|
|
4124
|
+
},
|
|
4125
|
+
'*': [
|
|
4126
|
+
'lawsuitOtherParty',
|
|
4127
|
+
...nextStepsLegalDefault
|
|
4128
|
+
]
|
|
4129
|
+
});
|
|
4130
|
+
|
|
4131
|
+
({
|
|
4132
|
+
'Type_Of_Legal_Problem': {
|
|
4133
|
+
'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
|
|
4134
|
+
'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
|
|
4135
|
+
},
|
|
4136
|
+
'*': [
|
|
4137
|
+
'lawsuitOtherParty',
|
|
4138
|
+
...nextStepsLegalDefault
|
|
4139
|
+
]
|
|
4140
|
+
});
|
|
4141
|
+
|
|
4142
|
+
const nextStepsMapCivilTOLPDisplay = {
|
|
4143
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4144
|
+
'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
|
|
4145
|
+
'Contract Disputes': TOLPNextSteps["Business Lawyers"],
|
|
4146
|
+
'Dog Bite': TOLPNextSteps["Personal Injury"],
|
|
4147
|
+
'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
|
|
4148
|
+
'Fraud': TOLPNextSteps["Consumer Lawyers"],
|
|
4149
|
+
'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
|
|
4150
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4151
|
+
'Property Damage': TOLPNextSteps["Property Damage"],
|
|
4152
|
+
'Real Estate': TOLPNextSteps["Real Estate"],
|
|
4153
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4154
|
+
},
|
|
4155
|
+
'*': [
|
|
4156
|
+
'lawsuitOtherParty',
|
|
4157
|
+
...nextStepsLegalDefault
|
|
4158
|
+
]
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
const nextStepsMapCriminalTOLPDisplay = {
|
|
4162
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4163
|
+
'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
|
|
4164
|
+
'DUI and DWI': TOLPNextSteps["DUI and DWI"],
|
|
4165
|
+
'Expungement': TOLPNextSteps["Expungement"],
|
|
4166
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["*"],
|
|
4167
|
+
},
|
|
4168
|
+
'*': [
|
|
4169
|
+
'crimeCommittedDate',
|
|
4170
|
+
'roleInMatterCriminal',
|
|
4171
|
+
'pendingCharges',
|
|
4172
|
+
...nextStepsLegalDefaultLPM
|
|
4173
|
+
]
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4176
|
+
const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
|
|
4177
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4178
|
+
'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
|
|
4179
|
+
'Workers Compensation': TOLPNextSteps["Workers Compensation"],
|
|
4180
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4181
|
+
'Unemployment': TOLPNextSteps["Unemployment"],
|
|
4182
|
+
},
|
|
4183
|
+
'*': [
|
|
4184
|
+
'numEmployeesOfBusiness',
|
|
4185
|
+
'employerType',
|
|
4186
|
+
'employeeAtCompany',
|
|
4187
|
+
...nextStepsLegalDefault
|
|
4188
|
+
]
|
|
4189
|
+
};
|
|
4190
|
+
|
|
4191
|
+
const nextStepsMapRealEstateTOLPDisplay = {
|
|
4192
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4193
|
+
'Foreclosure': TOLPNextSteps["Foreclosure"],
|
|
4194
|
+
'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
|
|
4195
|
+
'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
|
|
4196
|
+
'Property Damage': TOLPNextSteps['Property Damage'],
|
|
4197
|
+
},
|
|
4198
|
+
'*': [
|
|
4199
|
+
'realEstateArea',
|
|
4200
|
+
'wouldLikeLawyerTo',
|
|
4201
|
+
...nextStepsLegalDefault
|
|
4202
|
+
]
|
|
4203
|
+
};
|
|
4204
|
+
|
|
4205
|
+
const meta = defaultMetaProps();
|
|
4206
|
+
|
|
4207
|
+
meta.data.dynamicSchema = [
|
|
4208
|
+
amountPaymentsPastDue(),
|
|
4209
|
+
applicantAge(),
|
|
4210
|
+
applicantDisabilityHowObtain(),
|
|
4211
|
+
applicantLTDisabilityPolicy(),
|
|
4212
|
+
applicantMonthlySalary(),
|
|
4213
|
+
applicantOccupation({
|
|
4214
|
+
nextOnInput: false
|
|
4215
|
+
}),
|
|
4216
|
+
applicantPreviouslyAppliedLtdBenefits(),
|
|
4217
|
+
applicantReceivedDisabilityBenefits(),
|
|
4218
|
+
atFault(),
|
|
4219
|
+
bloodContentAlcoholTest(),
|
|
4220
|
+
businessServices(),
|
|
4221
|
+
businessType(),
|
|
4222
|
+
causeOfDeath(),
|
|
4223
|
+
causeOfInjury(),
|
|
4224
|
+
childHome(),
|
|
4225
|
+
childPrimaryCaregiver(),
|
|
4226
|
+
childRelationship(),
|
|
4227
|
+
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4228
|
+
// steps.civilDefense({
|
|
4229
|
+
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4230
|
+
// }),
|
|
4231
|
+
civilLawsuitTOLPDisplay({
|
|
4232
|
+
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4233
|
+
}),
|
|
4234
|
+
civilRightsType(),
|
|
4235
|
+
claimStatus(),
|
|
4236
|
+
consumerLawyerType(),
|
|
4237
|
+
countryOfCitizenship(),
|
|
4238
|
+
crimeCommittedDate({
|
|
4239
|
+
nextOnInput: false
|
|
4240
|
+
}),
|
|
4241
|
+
criminalChargeType(),
|
|
4242
|
+
criminalChargesFiled(),
|
|
4243
|
+
criminalTOLPDisplay({
|
|
4244
|
+
nextStepMap: nextStepsMapCriminalTOLPDisplay
|
|
4245
|
+
}),
|
|
4246
|
+
defaultNotice(),
|
|
4247
|
+
degreeOfInterest(),
|
|
4248
|
+
disabilityConditionStopWork(),
|
|
4249
|
+
disabilityWorkHistory(),
|
|
4250
|
+
doctorTreatment(),
|
|
4251
|
+
driversLicenseType(),
|
|
4252
|
+
estateLegalServicesNeeded(),
|
|
4253
|
+
employerType(),
|
|
4254
|
+
employeeAtCompany(),
|
|
4255
|
+
employmentAndWorkplaceTOLPDisplay({
|
|
4256
|
+
nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
|
|
4257
|
+
}),
|
|
4258
|
+
haveAttorney(),
|
|
4259
|
+
haveChildren(),
|
|
4260
|
+
haveCourtDate(),
|
|
4261
|
+
immigrationDetails(),
|
|
4262
|
+
immigrationEntry(),
|
|
4263
|
+
immigrationLocation(),
|
|
4264
|
+
immigrationStatus(),
|
|
4265
|
+
immigrationType(),
|
|
4266
|
+
incidentDate({
|
|
4267
|
+
nextOnInput: false
|
|
4268
|
+
}),
|
|
4269
|
+
landlordTenantIssue(),
|
|
4270
|
+
landlordTenantParty(),
|
|
4271
|
+
lawsuitOtherParty(),
|
|
4272
|
+
lawyerPaymentMethod(),
|
|
4273
|
+
loanAmount(),
|
|
4274
|
+
maritalStatus(),
|
|
4275
|
+
medicalMalpracticeInjuries(),
|
|
4276
|
+
numEmployeesOfBusiness(),
|
|
4277
|
+
ownRealEstate(),
|
|
4278
|
+
patentAssistanceType(),
|
|
4279
|
+
patentFor(),
|
|
4280
|
+
pendingCharges(),
|
|
4281
|
+
policeReportFiled(),
|
|
4282
|
+
primaryInjury(),
|
|
4283
|
+
priorAlcoholOffenses(),
|
|
4284
|
+
realEstateArea(),
|
|
4285
|
+
realEstateTOLPDisplay({
|
|
4286
|
+
nextStepMap: nextStepsMapRealEstateTOLPDisplay
|
|
4287
|
+
}),
|
|
4288
|
+
relationshipToVictim(),
|
|
4289
|
+
roleInMatterCriminal(),
|
|
4290
|
+
roleInMatterProbate(),
|
|
4291
|
+
socialSecurityDisabilityReceivingBenefits(),
|
|
4292
|
+
taxIssueType(),
|
|
4293
|
+
taxLevel(),
|
|
4294
|
+
taxProblemDetails(),
|
|
4295
|
+
totalDebt(),
|
|
4296
|
+
totalMonthlyIncome(),
|
|
4297
|
+
trafficViolations(),
|
|
4298
|
+
typeOfAlcoholTest(),
|
|
4299
|
+
typeOfAssets(),
|
|
4300
|
+
typeOfProperty(),
|
|
4301
|
+
valueOfAssets(),
|
|
4302
|
+
veteransDisabilityApplied(),
|
|
4303
|
+
veteransDisabilityConditions(),
|
|
4304
|
+
veteransDisabilityInjured(),
|
|
4305
|
+
veteransDisabilityRelationship(),
|
|
4306
|
+
wouldLikeLawyerTo(),
|
|
4307
|
+
zipcode(),
|
|
4308
|
+
commentsWithBankruptcy({
|
|
4309
|
+
label: null,
|
|
4310
|
+
headline: 'Please briefly describe your situation:',
|
|
4311
|
+
headlineClass: '!t-text-dark',
|
|
4312
|
+
}),
|
|
4313
|
+
legalCrossSells({
|
|
4314
|
+
headlineClass: '!t-text-dark'
|
|
4315
|
+
}),
|
|
4316
|
+
autoAndCarAccidentCrossSellQuestions(),
|
|
4317
|
+
personalInjuryCrossSellQuestions(),
|
|
4318
|
+
workersCompensationCrossSellQuestions(),
|
|
4319
|
+
duiAndDWICrossSellQuestions(),
|
|
4320
|
+
ssdiCrossSellQuestions(),
|
|
4321
|
+
powerOfAttorneyCrossSellQuestions(),
|
|
4322
|
+
willsAndTrustsCrossSellQuestions(),
|
|
4323
|
+
divorceAndSeparationCrossSellQuestions(),
|
|
4324
|
+
childCustodyCrossSellQuestions(),
|
|
4325
|
+
firstAndLastV3({
|
|
4326
|
+
headlineClass: '!t-text-dark'
|
|
4327
|
+
}),
|
|
4328
|
+
];
|
|
4329
|
+
|
|
4330
|
+
const schema = [
|
|
4331
|
+
meta,
|
|
4332
|
+
formAnchor(),
|
|
4333
|
+
{
|
|
4334
|
+
$cmp: 'FormKit',
|
|
4335
|
+
props: formProps({
|
|
4336
|
+
formId: 'generalLegalSingle',
|
|
4337
|
+
redirectMap: legalRedirectMap(),
|
|
4338
|
+
valueOverrideMap: legalAllValueOverrideMap,
|
|
4339
|
+
}),
|
|
4340
|
+
children: [
|
|
4341
|
+
progressBar(),
|
|
4342
|
+
headline({
|
|
4343
|
+
children: '$urlParam("hl", "Need Legal Help? Start Here!")',
|
|
4344
|
+
if: '$activeStep === $firstStep()'
|
|
4345
|
+
}),
|
|
4346
|
+
defaultSubHeadline(),
|
|
4347
|
+
...hiddenInputsLegal,
|
|
4348
|
+
{
|
|
4349
|
+
$el: 'div',
|
|
4350
|
+
attrs: {
|
|
4351
|
+
class: 'form-body'
|
|
4352
|
+
},
|
|
4353
|
+
children: [
|
|
4354
|
+
generalTOLP({
|
|
4355
|
+
nextOnInput: false,
|
|
4356
|
+
nextStepMap: nextStepsMapGeneralLegal,
|
|
4357
|
+
headlineClass: 't-text-lg',
|
|
4358
|
+
input: {
|
|
4359
|
+
placeholder: 'Select a Category',
|
|
4360
|
+
innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
|
|
4361
|
+
}
|
|
4362
|
+
}),
|
|
4363
|
+
dynamicSchemaNode,
|
|
4364
|
+
contactInfo(),
|
|
4365
|
+
formNavigation(),
|
|
4366
|
+
formDetails()
|
|
4367
|
+
]
|
|
4368
|
+
}
|
|
4369
|
+
]
|
|
4370
|
+
}
|
|
4371
|
+
];
|
|
4372
|
+
|
|
4373
|
+
const formKitNode = schema.find(item => item.$cmp === "FormKit");
|
|
4374
|
+
|
|
4375
|
+
// HACK: need to update both to mimic formProps behavior
|
|
4376
|
+
formKitNode.props.name = 'generalLegalPopUnderSingle';
|
|
4377
|
+
formKitNode.props.formId = 'generalLegalPopUnderSingle';
|
|
4378
|
+
|
|
4379
|
+
formKitNode.props.popUnderMap = {
|
|
4380
|
+
'*': '/thank-you'
|
|
4381
|
+
};
|
|
4382
|
+
|
|
4383
|
+
export { schema as default };
|