bhl-forms 0.0.86 → 0.1.1
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.iife.js +1 -1
- package/dist/bhl-forms.modern.iife.js +1 -1
- package/dist/bhl-forms.modern.umd.js +1 -1
- package/dist/bhl-forms.umd.js +1 -1
- package/dist/forms/childAndFamily.es.js +170 -88
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/civilLawsuit.es.js +281 -1544
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/criminal.es.js +414 -78
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +1372 -0
- package/dist/forms/employmentAndWorkplace.iife.js +1 -0
- package/dist/forms/employmentAndWorkplace.json +1 -0
- package/dist/forms/generalLegal.es.js +365 -81
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +365 -81
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +337 -103
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderTF.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1092 -0
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -0
- package/dist/forms/harassmentAndDiscrimination.json +1 -0
- package/dist/forms/realEstate.es.js +403 -76
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/testForm.es.js +278 -23
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +1271 -0
- package/dist/forms/willsAndTrusts.iife.js +1 -0
- package/dist/forms/willsAndTrusts.json +1 -0
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,21 @@ function JALegalUrl(pageId) {
|
|
|
8
8
|
|
|
9
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
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
|
+
|
|
11
18
|
const formPropDefaults = {
|
|
12
19
|
type: 'form',
|
|
13
20
|
id: 'form',
|
|
14
21
|
config: { validationVisibility: 'submit' },
|
|
15
|
-
onSubmit: '$submit(
|
|
22
|
+
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
16
23
|
plugins: '$plugins',
|
|
17
24
|
actions: false,
|
|
25
|
+
anchorElement: 'form-anchor',
|
|
18
26
|
prepop: {
|
|
19
27
|
fromURL: true
|
|
20
28
|
},
|
|
@@ -49,6 +57,18 @@ function metaProps(updates) {
|
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
59
|
|
|
60
|
+
function defaultMetaProps() {
|
|
61
|
+
return metaProps({
|
|
62
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
63
|
+
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
64
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
|
|
65
|
+
finalHeadlines: TOLPFinalHeadlines,
|
|
66
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
|
|
67
|
+
finalSubHeadlines: TOLPFinalSubHeadlines,
|
|
68
|
+
trustedFormTOLPs: trustedFormTOLPs
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
52
72
|
const formAnchorDefaults = {
|
|
53
73
|
$el: 'div',
|
|
54
74
|
children: [
|
|
@@ -87,6 +107,13 @@ function headline(updates) {
|
|
|
87
107
|
)
|
|
88
108
|
}
|
|
89
109
|
|
|
110
|
+
function defaultHeadline() {
|
|
111
|
+
return headline({
|
|
112
|
+
children: '$urlParam("hl", "Start Here For a Free Consultation")',
|
|
113
|
+
if: '$activeStep === $firstStep()'
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
|
|
90
117
|
const subHeadlineDefaults = {
|
|
91
118
|
$el: 'h3',
|
|
92
119
|
attrs: {
|
|
@@ -94,7 +121,6 @@ const subHeadlineDefaults = {
|
|
|
94
121
|
}
|
|
95
122
|
};
|
|
96
123
|
|
|
97
|
-
|
|
98
124
|
function subHeadline(updates) {
|
|
99
125
|
return merge(
|
|
100
126
|
subHeadlineDefaults,
|
|
@@ -102,6 +128,13 @@ function subHeadline(updates) {
|
|
|
102
128
|
)
|
|
103
129
|
}
|
|
104
130
|
|
|
131
|
+
function defaultSubHeadline() {
|
|
132
|
+
return subHeadline({
|
|
133
|
+
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
134
|
+
if: '$activeStep === $firstStep()'
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
|
|
105
138
|
const secureIconDefault = {
|
|
106
139
|
$el: 'div',
|
|
107
140
|
if: '$activeStep === $lastStep()',
|
|
@@ -174,7 +207,11 @@ const legalRedirectMapDefaults = {
|
|
|
174
207
|
'Adoption': JALegalUrl('565949'),
|
|
175
208
|
'Bankruptcy': JALegalUrl('1147978'),
|
|
176
209
|
'Child Custody and Support': JALegalUrl('565949'),
|
|
210
|
+
'Child Custody': JALegalUrl('565949'),
|
|
211
|
+
'Child Support': JALegalUrl('565949'),
|
|
177
212
|
'Civil Lawsuit': JALegalUrl('897042'),
|
|
213
|
+
'File a Lawsuit': JALegalUrl('897042'),
|
|
214
|
+
'Defend a Lawsuit': JALegalUrl('897042'),
|
|
178
215
|
'Consumer Lawyers': JALegalUrl('897042'),
|
|
179
216
|
'Criminal and Felony': JALegalUrl('897012'),
|
|
180
217
|
'Debt and Collections': JALegalUrl('1147978'),
|
|
@@ -211,8 +248,51 @@ function legalRedirectMap(updates) {
|
|
|
211
248
|
)
|
|
212
249
|
}
|
|
213
250
|
|
|
214
|
-
const
|
|
251
|
+
const legalAllValueOverrideMap = {
|
|
252
|
+
'Civil_Defense': {
|
|
253
|
+
'Yes': {
|
|
254
|
+
'Type_Of_Legal_Problem': 'Defend a Lawsuit'
|
|
255
|
+
}
|
|
256
|
+
},
|
|
215
257
|
'Type_Of_Legal_Problem_Display': {
|
|
258
|
+
// Civil
|
|
259
|
+
'Automobile Accident': {
|
|
260
|
+
'Type_Of_Legal_Problem': 'Auto and Car Accidents'
|
|
261
|
+
},
|
|
262
|
+
'Contract Disputes': {
|
|
263
|
+
'Type_Of_Legal_Problem': 'Business Lawyers'
|
|
264
|
+
},
|
|
265
|
+
'Defamation and Slander': {
|
|
266
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
267
|
+
},
|
|
268
|
+
'Dog Bite': {
|
|
269
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
270
|
+
},
|
|
271
|
+
'Employment and Workplace': {
|
|
272
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
273
|
+
},
|
|
274
|
+
'Fraud': {
|
|
275
|
+
'Type_Of_Legal_Problem': 'Consumer Lawyers'
|
|
276
|
+
},
|
|
277
|
+
'Medical Malpractice': {
|
|
278
|
+
'Type_Of_Legal_Problem': 'Medical Malpractice'
|
|
279
|
+
},
|
|
280
|
+
'Personal Injury': {
|
|
281
|
+
'Type_Of_Legal_Problem': 'Personal Injury'
|
|
282
|
+
},
|
|
283
|
+
'Property Damage': {
|
|
284
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
285
|
+
},
|
|
286
|
+
'Small Claims': {
|
|
287
|
+
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
288
|
+
},
|
|
289
|
+
'Real Estate': {
|
|
290
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
291
|
+
},
|
|
292
|
+
'Other (describe on next page)': {
|
|
293
|
+
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
294
|
+
},
|
|
295
|
+
// Criminal
|
|
216
296
|
'Criminal Defense': {
|
|
217
297
|
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
218
298
|
},
|
|
@@ -225,16 +305,65 @@ const legalCriminalValueOverrideMap = {
|
|
|
225
305
|
'Expungement': {
|
|
226
306
|
'Type_Of_Legal_Problem': 'Expungement'
|
|
227
307
|
},
|
|
228
|
-
'
|
|
308
|
+
'Harassment': {
|
|
229
309
|
'Type_Of_Legal_Problem': 'Criminal and Felony'
|
|
230
310
|
},
|
|
231
311
|
'Not Sure or Other': {
|
|
232
312
|
'Type_Of_Legal_Problem': 'Not Sure or Other'
|
|
313
|
+
},
|
|
314
|
+
// Employment and Workplace
|
|
315
|
+
'Workplace Harassment': {
|
|
316
|
+
'Type_Of_Legal_Problem': 'Workplace Harassment'
|
|
317
|
+
},
|
|
318
|
+
'Workplace Discrimination': {
|
|
319
|
+
'Type_Of_Legal_Problem': 'Workplace Discrimination'
|
|
320
|
+
},
|
|
321
|
+
'Wrongful Termination': {
|
|
322
|
+
'Type_Of_Legal_Problem': 'Wrongful Termination'
|
|
323
|
+
},
|
|
324
|
+
'Payment Disputes': {
|
|
325
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
326
|
+
},
|
|
327
|
+
'Workers Compensation': {
|
|
328
|
+
'Type_Of_Legal_Problem': 'Workers Compensation'
|
|
329
|
+
},
|
|
330
|
+
'Unemployment': {
|
|
331
|
+
'Type_Of_Legal_Problem': 'Unemployment'
|
|
332
|
+
},
|
|
333
|
+
'Other Workplace Issues': {
|
|
334
|
+
'Type_Of_Legal_Problem': 'Employment and Workplace'
|
|
335
|
+
},
|
|
336
|
+
// Real Estate
|
|
337
|
+
'Contracts and Agreements': {
|
|
338
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
339
|
+
},
|
|
340
|
+
'Deeds, Liens, and Titles': {
|
|
341
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
342
|
+
},
|
|
343
|
+
'Foreclosure': {
|
|
344
|
+
'Type_Of_Legal_Problem': 'Foreclosure'
|
|
345
|
+
},
|
|
346
|
+
'Insurance': {
|
|
347
|
+
'Type_Of_Legal_Problem': 'Insurance'
|
|
348
|
+
},
|
|
349
|
+
'Landlord and Tenant': {
|
|
350
|
+
'Type_Of_Legal_Problem': 'Landlord and Tenant',
|
|
351
|
+
},
|
|
352
|
+
'Loans and Mortgages': {
|
|
353
|
+
'Type_Of_Legal_Problem': 'Real Estate',
|
|
354
|
+
},
|
|
355
|
+
'Wills, Trusts, and Estates': {
|
|
356
|
+
'Type_Of_Legal_Problem': 'Wills and Trusts'
|
|
357
|
+
},
|
|
358
|
+
'Property Damage': {
|
|
359
|
+
'Type_Of_Legal_Problem': 'Property Damage'
|
|
360
|
+
},
|
|
361
|
+
'Other Real Estate Issues': {
|
|
362
|
+
'Type_Of_Legal_Problem': 'Real Estate'
|
|
233
363
|
}
|
|
234
364
|
}
|
|
235
365
|
};
|
|
236
366
|
|
|
237
|
-
|
|
238
367
|
const TOLPCommentsPlaceholders = {
|
|
239
368
|
'Adoption': 'Example: "I need help with adoption forms"',
|
|
240
369
|
'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
@@ -243,8 +372,12 @@ const TOLPCommentsPlaceholders = {
|
|
|
243
372
|
'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
|
|
244
373
|
'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
245
374
|
'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
375
|
+
'Child Custody': 'Example: "Need help getting custody"',
|
|
376
|
+
'Child Support': 'Example: "Issues with child support payments"',
|
|
246
377
|
'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
247
378
|
'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
379
|
+
'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
|
|
380
|
+
'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
|
|
248
381
|
'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
249
382
|
'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
|
|
250
383
|
'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
@@ -258,6 +391,11 @@ const TOLPCommentsPlaceholders = {
|
|
|
258
391
|
'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
|
|
259
392
|
'Guardianship': 'Example: "I need help with guardianship documents"',
|
|
260
393
|
'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
394
|
+
'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
|
|
395
|
+
'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
|
|
396
|
+
'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
|
|
397
|
+
'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
|
|
398
|
+
'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
|
|
261
399
|
'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
262
400
|
'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
263
401
|
'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
@@ -337,6 +475,11 @@ const TOLPFinalHeadlines = {
|
|
|
337
475
|
// 'Wrongful Death': '',
|
|
338
476
|
// 'Wrongful Termination': '',
|
|
339
477
|
// 'Not Sure or Other': ''
|
|
478
|
+
// 'Sexual Harassment': '',
|
|
479
|
+
// 'Workplace Harassment': '',
|
|
480
|
+
// 'Non-Workplace Harassment': '',
|
|
481
|
+
// 'Workplace Discrimination': '',
|
|
482
|
+
// 'Non-Workplace Discrimination': '',
|
|
340
483
|
};
|
|
341
484
|
|
|
342
485
|
const TOLPFinalSubHeadlines = {
|
|
@@ -389,6 +532,66 @@ const TOLPFinalSubHeadlines = {
|
|
|
389
532
|
// 'Wrongful Death': '',
|
|
390
533
|
// 'Wrongful Termination': '',
|
|
391
534
|
// 'Not Sure or Other': ''
|
|
535
|
+
// 'Sexual Harassment': '',
|
|
536
|
+
// 'Workplace Harassment': '',
|
|
537
|
+
// 'Non-Workplace Harassment': '',
|
|
538
|
+
// 'Workplace Discrimination': '',
|
|
539
|
+
// 'Non-Workplace Discrimination': '',
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
const trustedFormTOLPs = {
|
|
544
|
+
'Adoption': true,
|
|
545
|
+
// 'Asbestos and Mesothelioma': '',
|
|
546
|
+
// 'Auto and Car Accidents': '',
|
|
547
|
+
// 'Bankruptcy': '',
|
|
548
|
+
// 'Birth Certificate and Name Change': '',
|
|
549
|
+
// 'Business Lawyers': '',
|
|
550
|
+
'Child Custody and Support': true,
|
|
551
|
+
'Child Custody': true,
|
|
552
|
+
'Child Support': true,
|
|
553
|
+
// 'Civil Rights and Discrimination': '',
|
|
554
|
+
// 'Civil Lawsuit': '',
|
|
555
|
+
// 'Consumer Lawyers': '',
|
|
556
|
+
// 'Copyrights and Trademarks': '',
|
|
557
|
+
// 'Criminal and Felony': '',
|
|
558
|
+
// 'Debt and Collections': '',
|
|
559
|
+
'Divorce and Separation': true,
|
|
560
|
+
// 'DUI and DWI': '',
|
|
561
|
+
// 'Elder Law': '',
|
|
562
|
+
// 'Employment and Workplace': '',
|
|
563
|
+
// 'Expungement': '',
|
|
564
|
+
'Family Issues': true,
|
|
565
|
+
// 'Foreclosure': '',
|
|
566
|
+
'Guardianship': true,
|
|
567
|
+
// 'Harassment and Discrimination': '',
|
|
568
|
+
// 'Identity Theft': '',
|
|
569
|
+
// 'Immigration and Visas': '',
|
|
570
|
+
// 'Insurance': '',
|
|
571
|
+
// 'Landlord and Tenant': '',
|
|
572
|
+
// 'Lemon Law': '',
|
|
573
|
+
// 'Long Term Disability': '',
|
|
574
|
+
// 'Medical Malpractice': '',
|
|
575
|
+
// 'Nursing Home Abuse': '',
|
|
576
|
+
// 'Patents and Intellectual Property': '',
|
|
577
|
+
// 'Personal Injury': '',
|
|
578
|
+
// 'Power of Attorney': '',
|
|
579
|
+
// 'Probate and Estates': '',
|
|
580
|
+
// 'Product Liability': '',
|
|
581
|
+
// 'Property Damage': '',
|
|
582
|
+
// 'Real Estate': '',
|
|
583
|
+
// 'Social Security Disability and Insurance': '',
|
|
584
|
+
// 'Tax and IRS': '',
|
|
585
|
+
// 'Traffic and Tickets': '',
|
|
586
|
+
// 'Unemployment': '',
|
|
587
|
+
// 'Vaccination Injury': '',
|
|
588
|
+
// 'Veteran\'s Disability': '',
|
|
589
|
+
// 'Victim of a Crime': '',
|
|
590
|
+
// 'Wills and Trusts': '',
|
|
591
|
+
// 'Workers Compensation': '',
|
|
592
|
+
// 'Wrongful Death': '',
|
|
593
|
+
// 'Wrongful Termination': '',
|
|
594
|
+
'Not Sure or Other': true,
|
|
392
595
|
};
|
|
393
596
|
|
|
394
597
|
// ------ Common Base Settings
|
|
@@ -520,6 +723,7 @@ const textArea = (updates) => {
|
|
|
520
723
|
validationMessages: {
|
|
521
724
|
required: 'Field is required'
|
|
522
725
|
},
|
|
726
|
+
innerClass: 't-max-w-xl',
|
|
523
727
|
labelClass: 'required'
|
|
524
728
|
}, updates)
|
|
525
729
|
};
|
|
@@ -749,6 +953,19 @@ const causeOfDeath = () => sbsSelect({
|
|
|
749
953
|
]
|
|
750
954
|
});
|
|
751
955
|
|
|
956
|
+
const civilRightsType = () => sbsSelect({
|
|
957
|
+
label: 'On what basis were your rights violated?',
|
|
958
|
+
name: 'Civil_Rights_Type',
|
|
959
|
+
options: [
|
|
960
|
+
"Age",
|
|
961
|
+
"Disability",
|
|
962
|
+
"Gender",
|
|
963
|
+
"Race",
|
|
964
|
+
"Religion",
|
|
965
|
+
"Other"
|
|
966
|
+
]
|
|
967
|
+
});
|
|
968
|
+
|
|
752
969
|
const childHome = () => sbsSelect({
|
|
753
970
|
label: 'With Whom Do the Children Currently Live?',
|
|
754
971
|
name: 'Child_Home',
|
|
@@ -801,6 +1018,24 @@ const comments = (updates) => textArea(
|
|
|
801
1018
|
}, updates)
|
|
802
1019
|
);
|
|
803
1020
|
|
|
1021
|
+
const consumerLawyerType = () => sbsSelect({
|
|
1022
|
+
label: 'What best describes your issue?',
|
|
1023
|
+
name: 'Consumer_Lawyer_Type',
|
|
1024
|
+
options: [
|
|
1025
|
+
"Unsafe Environment",
|
|
1026
|
+
"Unsafe Products",
|
|
1027
|
+
"Auto Fraud",
|
|
1028
|
+
"Credit Reporting Issues",
|
|
1029
|
+
"Debt Collection Abuse",
|
|
1030
|
+
"Identity Theft",
|
|
1031
|
+
"Lemon Law",
|
|
1032
|
+
"Military Consumer Rights",
|
|
1033
|
+
"Predatory Lending",
|
|
1034
|
+
"Student Loans",
|
|
1035
|
+
"Other"
|
|
1036
|
+
]
|
|
1037
|
+
});
|
|
1038
|
+
|
|
804
1039
|
const countryOfCitizenship = () => sbsSelect({
|
|
805
1040
|
label: 'What is Your Current Country of Citizenship?',
|
|
806
1041
|
name: 'Country_Of_Citizenship',
|
|
@@ -1124,7 +1359,7 @@ const firstName = () => sbsText({
|
|
|
1124
1359
|
|
|
1125
1360
|
const haveAttorney = () => sbsYesNoRadio({
|
|
1126
1361
|
name: 'Have_Attorney',
|
|
1127
|
-
label: '
|
|
1362
|
+
label: 'Already Working with An Attorney?'
|
|
1128
1363
|
});
|
|
1129
1364
|
|
|
1130
1365
|
const haveChildren = () => sbsYesNoRadio({
|
|
@@ -1709,6 +1944,10 @@ const group = (name, updates) => {
|
|
|
1709
1944
|
}, updates)
|
|
1710
1945
|
};
|
|
1711
1946
|
|
|
1947
|
+
const defaultQuestions = () => [
|
|
1948
|
+
haveAttorney(),
|
|
1949
|
+
degreeOfInterestHelp()
|
|
1950
|
+
];
|
|
1712
1951
|
|
|
1713
1952
|
const AdoptionQuestions = () => group(
|
|
1714
1953
|
'AdoptionQuestions',
|
|
@@ -1806,11 +2045,42 @@ const ChildCustodyAndSupportQuestions = () => group(
|
|
|
1806
2045
|
}
|
|
1807
2046
|
);
|
|
1808
2047
|
|
|
2048
|
+
const ChildCustodyQuestions = () => group(
|
|
2049
|
+
'ChildCustodyQuestions',
|
|
2050
|
+
{
|
|
2051
|
+
if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
|
|
2052
|
+
children: [
|
|
2053
|
+
haveAttorney(),
|
|
2054
|
+
childRelationship(),
|
|
2055
|
+
childHome(),
|
|
2056
|
+
childPrimaryCaregiver(),
|
|
2057
|
+
degreeOfInterest(),
|
|
2058
|
+
lawyerPaymentMethod()
|
|
2059
|
+
]
|
|
2060
|
+
}
|
|
2061
|
+
);
|
|
2062
|
+
|
|
2063
|
+
const ChildSupportQuestions = () => group(
|
|
2064
|
+
'ChildSupportQuestions',
|
|
2065
|
+
{
|
|
2066
|
+
if: '$get(Type_Of_Legal_Problem).value == "Child Support"',
|
|
2067
|
+
children: [
|
|
2068
|
+
haveAttorney(),
|
|
2069
|
+
childRelationship(),
|
|
2070
|
+
childHome(),
|
|
2071
|
+
childPrimaryCaregiver(),
|
|
2072
|
+
degreeOfInterest(),
|
|
2073
|
+
lawyerPaymentMethod()
|
|
2074
|
+
]
|
|
2075
|
+
}
|
|
2076
|
+
);
|
|
2077
|
+
|
|
1809
2078
|
const CivilRightsAndDiscriminationQuestions = () => group(
|
|
1810
2079
|
'CivilRightsAndDiscriminationQuestions',
|
|
1811
2080
|
{
|
|
1812
2081
|
if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
|
|
1813
2082
|
children: [
|
|
2083
|
+
civilRightsType(),
|
|
1814
2084
|
haveAttorney(),
|
|
1815
2085
|
degreeOfInterestHelp()
|
|
1816
2086
|
]
|
|
@@ -1823,7 +2093,30 @@ const CivilLawsuitQuestions = () => group(
|
|
|
1823
2093
|
if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
|
|
1824
2094
|
children: [
|
|
1825
2095
|
haveAttorney(),
|
|
1826
|
-
|
|
2096
|
+
lawsuitOtherParty(),
|
|
2097
|
+
degreeOfInterestHelp()
|
|
2098
|
+
]
|
|
2099
|
+
}
|
|
2100
|
+
);
|
|
2101
|
+
|
|
2102
|
+
const FileLawsuitQuestions = () => group(
|
|
2103
|
+
'FileLawsuitQuestions',
|
|
2104
|
+
{
|
|
2105
|
+
if: '$get(Type_Of_Legal_Problem).value == "File a Lawsuit"',
|
|
2106
|
+
children: [
|
|
2107
|
+
haveAttorney(),
|
|
2108
|
+
lawsuitOtherParty(),
|
|
2109
|
+
degreeOfInterestHelp()
|
|
2110
|
+
]
|
|
2111
|
+
}
|
|
2112
|
+
);
|
|
2113
|
+
|
|
2114
|
+
const DefendLawsuitQuestions = () => group(
|
|
2115
|
+
'DefendLawsuitQuestions',
|
|
2116
|
+
{
|
|
2117
|
+
if: '$get(Type_Of_Legal_Problem).value == "Defend a Lawsuit"',
|
|
2118
|
+
children: [
|
|
2119
|
+
haveAttorney(),
|
|
1827
2120
|
lawsuitOtherParty(),
|
|
1828
2121
|
degreeOfInterestHelp()
|
|
1829
2122
|
]
|
|
@@ -1835,8 +2128,9 @@ const ConsumerLawyersQuestions = () => group(
|
|
|
1835
2128
|
{
|
|
1836
2129
|
if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
|
|
1837
2130
|
children: [
|
|
1838
|
-
|
|
2131
|
+
consumerLawyerType(),
|
|
1839
2132
|
incidentDate(),
|
|
2133
|
+
haveAttorney(),
|
|
1840
2134
|
lawsuitOtherParty(),
|
|
1841
2135
|
degreeOfInterestHelp()
|
|
1842
2136
|
]
|
|
@@ -1878,7 +2172,7 @@ const criminalTOLPDisplay = (updates) => col2Radio(merge({
|
|
|
1878
2172
|
'Victim of a Crime',
|
|
1879
2173
|
'DUI and DWI',
|
|
1880
2174
|
'Expungement',
|
|
1881
|
-
'
|
|
2175
|
+
'Harassment',
|
|
1882
2176
|
'Not Sure or Other',
|
|
1883
2177
|
]
|
|
1884
2178
|
}, updates));
|
|
@@ -1947,8 +2241,7 @@ const EmploymentAndWorkplaceQuestions = () => group(
|
|
|
1947
2241
|
haveAttorney(),
|
|
1948
2242
|
numEmployeesOfBusiness(),
|
|
1949
2243
|
employerType(),
|
|
1950
|
-
|
|
1951
|
-
lawyerPaymentMethod()
|
|
2244
|
+
degreeOfInterestHelp()
|
|
1952
2245
|
]
|
|
1953
2246
|
}
|
|
1954
2247
|
);
|
|
@@ -2015,10 +2308,47 @@ const HarassmentAndDiscriminationQuestions = () => group(
|
|
|
2015
2308
|
'HarassmentAndDiscriminationQuestions',
|
|
2016
2309
|
{
|
|
2017
2310
|
if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
|
|
2018
|
-
children:
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2311
|
+
children: defaultQuestions()
|
|
2312
|
+
}
|
|
2313
|
+
);
|
|
2314
|
+
|
|
2315
|
+
const SexualHarassmentQuestions = () => group(
|
|
2316
|
+
'SexualHarassmentQuestions',
|
|
2317
|
+
{
|
|
2318
|
+
if: '$get(Type_Of_Legal_Problem).value == "Sexual Harassment"',
|
|
2319
|
+
children: defaultQuestions()
|
|
2320
|
+
}
|
|
2321
|
+
);
|
|
2322
|
+
|
|
2323
|
+
const WorkplaceHarassmentQuestions = () => group(
|
|
2324
|
+
'WorkplaceHarassmentQuestions',
|
|
2325
|
+
{
|
|
2326
|
+
if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
|
|
2327
|
+
children: defaultQuestions()
|
|
2328
|
+
}
|
|
2329
|
+
);
|
|
2330
|
+
|
|
2331
|
+
const NonWorkplaceHarassmentQuestions = () => group(
|
|
2332
|
+
'NonWorkplaceHarassmentQuestions',
|
|
2333
|
+
{
|
|
2334
|
+
if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Harassment"',
|
|
2335
|
+
children: defaultQuestions()
|
|
2336
|
+
}
|
|
2337
|
+
);
|
|
2338
|
+
|
|
2339
|
+
const WorkplaceDiscriminationQuestions = () => group(
|
|
2340
|
+
'WorkplaceDiscriminationQuestions',
|
|
2341
|
+
{
|
|
2342
|
+
if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
|
|
2343
|
+
children: defaultQuestions()
|
|
2344
|
+
}
|
|
2345
|
+
);
|
|
2346
|
+
|
|
2347
|
+
const NonWorkplaceDiscriminationQuestions = () => group(
|
|
2348
|
+
'NonWorkplaceDiscriminationQuestions',
|
|
2349
|
+
{
|
|
2350
|
+
if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Discrimination"',
|
|
2351
|
+
children: defaultQuestions()
|
|
2022
2352
|
}
|
|
2023
2353
|
);
|
|
2024
2354
|
|
|
@@ -2420,6 +2750,56 @@ const stepDefaults = (step) => ({
|
|
|
2420
2750
|
}
|
|
2421
2751
|
});
|
|
2422
2752
|
|
|
2753
|
+
function questionsStepHeadline(updates) {
|
|
2754
|
+
return {
|
|
2755
|
+
$el: 'h3',
|
|
2756
|
+
children: updates.headline || 'Tell Us About Your Case',
|
|
2757
|
+
attrs: {
|
|
2758
|
+
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-3'
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
function commentsStepHeadline(updates) {
|
|
2764
|
+
return {
|
|
2765
|
+
$el: 'h3',
|
|
2766
|
+
children: updates.headline || 'Additional Case Details',
|
|
2767
|
+
attrs: {
|
|
2768
|
+
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-3'
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
function firstAndLastStepHeadline(updates) {
|
|
2774
|
+
return {
|
|
2775
|
+
$el: 'h3',
|
|
2776
|
+
children: updates.headline || 'Please Provide a Contact Name',
|
|
2777
|
+
attrs: {
|
|
2778
|
+
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-3'
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
function contactStepHeadline(updates) {
|
|
2784
|
+
return {
|
|
2785
|
+
$el: 'h3',
|
|
2786
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
|
|
2787
|
+
attrs: {
|
|
2788
|
+
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-3'
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
function contactStepSubHeadline(updates) {
|
|
2794
|
+
return {
|
|
2795
|
+
$el: 'h5',
|
|
2796
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
|
|
2797
|
+
attrs: {
|
|
2798
|
+
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2423
2803
|
function step(name, inputs, nextOnEnter = true) {
|
|
2424
2804
|
if (typeof nextOnEnter === 'undefined') {
|
|
2425
2805
|
nextOnEnter = true;
|
|
@@ -2444,53 +2824,27 @@ function step(name, inputs, nextOnEnter = true) {
|
|
|
2444
2824
|
)
|
|
2445
2825
|
}
|
|
2446
2826
|
|
|
2447
|
-
const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
|
|
2448
|
-
const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
2449
|
-
const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
|
|
2450
|
-
|
|
2451
2827
|
function commentsWithBankruptcyV2(updates = {}) {
|
|
2452
2828
|
return step(
|
|
2453
2829
|
'commentsWithBankruptcy',
|
|
2454
2830
|
[
|
|
2455
|
-
|
|
2456
|
-
$el: 'h3',
|
|
2457
|
-
children: 'Additional Case Details',
|
|
2458
|
-
attrs: {
|
|
2459
|
-
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-3'
|
|
2460
|
-
}
|
|
2461
|
-
},
|
|
2831
|
+
commentsStepHeadline(updates),
|
|
2462
2832
|
comments({
|
|
2463
2833
|
label: updates.label || DEFAULT_COMMENTS_LABEL,
|
|
2464
|
-
placeholder: updates.placeholder ||
|
|
2834
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
|
|
2465
2835
|
}),
|
|
2466
2836
|
bankruptcyCrossSell()
|
|
2467
2837
|
],
|
|
2468
2838
|
updates.nextOnEnter
|
|
2469
2839
|
)
|
|
2470
2840
|
}
|
|
2471
|
-
const DEFAULT_FINAL_HEADLINE_V2 = 'Submit Your Case';
|
|
2472
|
-
const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
2473
|
-
const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
2474
|
-
const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
2475
2841
|
|
|
2476
2842
|
function contactInfoV2(updates = {}) {
|
|
2477
2843
|
return step(
|
|
2478
2844
|
'contactInfo',
|
|
2479
2845
|
[
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
|
|
2483
|
-
attrs: {
|
|
2484
|
-
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-3'
|
|
2485
|
-
}
|
|
2486
|
-
},
|
|
2487
|
-
{
|
|
2488
|
-
$el: 'h5',
|
|
2489
|
-
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
|
|
2490
|
-
attrs: {
|
|
2491
|
-
class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
|
|
2492
|
-
}
|
|
2493
|
-
},
|
|
2846
|
+
contactStepHeadline(updates),
|
|
2847
|
+
contactStepSubHeadline(updates),
|
|
2494
2848
|
email(),
|
|
2495
2849
|
phone(),
|
|
2496
2850
|
TCPAConsent(),
|
|
@@ -2523,13 +2877,7 @@ function firstAndLastV2(updates = {}) {
|
|
|
2523
2877
|
return step(
|
|
2524
2878
|
'firstAndLast',
|
|
2525
2879
|
[
|
|
2526
|
-
|
|
2527
|
-
$el: 'h3',
|
|
2528
|
-
children: 'Please Provide a Contact Name',
|
|
2529
|
-
attrs: {
|
|
2530
|
-
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-3'
|
|
2531
|
-
}
|
|
2532
|
-
},
|
|
2880
|
+
firstAndLastStepHeadline(updates),
|
|
2533
2881
|
firstName(),
|
|
2534
2882
|
lastName()
|
|
2535
2883
|
],
|
|
@@ -2546,8 +2894,12 @@ const AllTOLPQuestions = () => {
|
|
|
2546
2894
|
BirthCertificateAndNameChangeQuestions(),
|
|
2547
2895
|
BusinessLawyersQuestions(),
|
|
2548
2896
|
ChildCustodyAndSupportQuestions(),
|
|
2897
|
+
ChildCustodyQuestions(),
|
|
2898
|
+
ChildSupportQuestions(),
|
|
2549
2899
|
CivilRightsAndDiscriminationQuestions(),
|
|
2550
2900
|
CivilLawsuitQuestions(),
|
|
2901
|
+
FileLawsuitQuestions(),
|
|
2902
|
+
DefendLawsuitQuestions(),
|
|
2551
2903
|
ConsumerLawyersQuestions(),
|
|
2552
2904
|
CopyrightsAndTrademarksQuestions(),
|
|
2553
2905
|
CriminalAndFelonyQuestions(),
|
|
@@ -2561,6 +2913,11 @@ const AllTOLPQuestions = () => {
|
|
|
2561
2913
|
ForeclosureQuestions(),
|
|
2562
2914
|
GuardianshipQuestions(),
|
|
2563
2915
|
HarassmentAndDiscriminationQuestions(),
|
|
2916
|
+
SexualHarassmentQuestions(),
|
|
2917
|
+
WorkplaceHarassmentQuestions(),
|
|
2918
|
+
NonWorkplaceHarassmentQuestions(),
|
|
2919
|
+
WorkplaceDiscriminationQuestions(),
|
|
2920
|
+
NonWorkplaceDiscriminationQuestions(),
|
|
2564
2921
|
IdentityTheftQuestions(),
|
|
2565
2922
|
ImmigrationAndVisasQuestions(),
|
|
2566
2923
|
InsuranceQuestions(),
|
|
@@ -2595,13 +2952,7 @@ function generalLegalTOLPQuestions(updates = {}) {
|
|
|
2595
2952
|
var questions = AllTOLPQuestions();
|
|
2596
2953
|
|
|
2597
2954
|
questions.unshift(
|
|
2598
|
-
|
|
2599
|
-
$el: 'h3',
|
|
2600
|
-
children: updates.headline || 'Tell Us About Your Case',
|
|
2601
|
-
attrs: {
|
|
2602
|
-
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-3'
|
|
2603
|
-
}
|
|
2604
|
-
},
|
|
2955
|
+
questionsStepHeadline(updates)
|
|
2605
2956
|
);
|
|
2606
2957
|
|
|
2607
2958
|
return step(
|
|
@@ -2699,33 +3050,18 @@ const formDetails = () => ({
|
|
|
2699
3050
|
});
|
|
2700
3051
|
|
|
2701
3052
|
const schema = [
|
|
2702
|
-
|
|
2703
|
-
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
|
|
2704
|
-
commentsPlaceholders: TOLPCommentsPlaceholders,
|
|
2705
|
-
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
|
|
2706
|
-
finalHeadlines: TOLPFinalHeadlines,
|
|
2707
|
-
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
|
|
2708
|
-
finalSubHeadlines: TOLPFinalSubHeadlines
|
|
2709
|
-
}),
|
|
3053
|
+
defaultMetaProps(),
|
|
2710
3054
|
formAnchor(),
|
|
2711
3055
|
{
|
|
2712
3056
|
$cmp: 'FormKit',
|
|
2713
3057
|
props: formProps({
|
|
2714
3058
|
formId: 'criminal',
|
|
2715
|
-
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
2716
3059
|
redirectMap: legalRedirectMap(),
|
|
2717
|
-
|
|
2718
|
-
valueOverrideMap: legalCriminalValueOverrideMap
|
|
3060
|
+
valueOverrideMap: legalAllValueOverrideMap
|
|
2719
3061
|
}),
|
|
2720
3062
|
children: [
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
if: '$activeStep === $firstStep()'
|
|
2724
|
-
}),
|
|
2725
|
-
subHeadline({
|
|
2726
|
-
children: '$urlParam("shl", "Our Service is Fast and Free!")',
|
|
2727
|
-
if: '$activeStep === $firstStep()'
|
|
2728
|
-
}),
|
|
3063
|
+
defaultHeadline(),
|
|
3064
|
+
defaultSubHeadline(),
|
|
2729
3065
|
...hiddenInputs,
|
|
2730
3066
|
{
|
|
2731
3067
|
$el: 'div',
|