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