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.
Files changed (39) hide show
  1. package/dist/bhl-forms.iife.js +1 -1
  2. package/dist/bhl-forms.modern.iife.js +1 -1
  3. package/dist/bhl-forms.modern.umd.js +1 -1
  4. package/dist/bhl-forms.umd.js +1 -1
  5. package/dist/forms/childAndFamily.es.js +170 -88
  6. package/dist/forms/childAndFamily.iife.js +1 -1
  7. package/dist/forms/childAndFamily.json +1 -1
  8. package/dist/forms/civilLawsuit.es.js +281 -1544
  9. package/dist/forms/civilLawsuit.iife.js +1 -1
  10. package/dist/forms/civilLawsuit.json +1 -1
  11. package/dist/forms/criminal.es.js +414 -78
  12. package/dist/forms/criminal.iife.js +1 -1
  13. package/dist/forms/criminal.json +1 -1
  14. package/dist/forms/employmentAndWorkplace.es.js +1372 -0
  15. package/dist/forms/employmentAndWorkplace.iife.js +1 -0
  16. package/dist/forms/employmentAndWorkplace.json +1 -0
  17. package/dist/forms/generalLegal.es.js +365 -81
  18. package/dist/forms/generalLegal.iife.js +1 -1
  19. package/dist/forms/generalLegal.json +1 -1
  20. package/dist/forms/generalLegalPopUnder.es.js +365 -81
  21. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  22. package/dist/forms/generalLegalPopUnder.json +1 -1
  23. package/dist/forms/generalLegalPopUnderTF.es.js +337 -103
  24. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  25. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  26. package/dist/forms/harassmentAndDiscrimination.es.js +1092 -0
  27. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -0
  28. package/dist/forms/harassmentAndDiscrimination.json +1 -0
  29. package/dist/forms/realEstate.es.js +403 -76
  30. package/dist/forms/realEstate.iife.js +1 -1
  31. package/dist/forms/realEstate.json +1 -1
  32. package/dist/forms/testForm.es.js +278 -23
  33. package/dist/forms/testForm.iife.js +1 -1
  34. package/dist/forms/testForm.json +1 -1
  35. package/dist/forms/willsAndTrusts.es.js +1271 -0
  36. package/dist/forms/willsAndTrusts.iife.js +1 -0
  37. package/dist/forms/willsAndTrusts.json +1 -0
  38. package/dist/main.css +1 -1
  39. 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("https://httpbin.org/post", $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
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: [
@@ -94,7 +114,6 @@ const subHeadlineDefaults = {
94
114
  }
95
115
  };
96
116
 
97
-
98
117
  function subHeadline(updates) {
99
118
  return merge(
100
119
  subHeadlineDefaults,
@@ -102,6 +121,13 @@ function subHeadline(updates) {
102
121
  )
103
122
  }
104
123
 
124
+ function defaultSubHeadline() {
125
+ return subHeadline({
126
+ children: '$urlParam("shl", "Our Service is Fast and Free!")',
127
+ if: '$activeStep === $firstStep()'
128
+ })
129
+ }
130
+
105
131
  const secureIconDefault = {
106
132
  $el: 'div',
107
133
  if: '$activeStep === $lastStep()',
@@ -174,7 +200,11 @@ const legalRedirectMapDefaults = {
174
200
  'Adoption': JALegalUrl('565949'),
175
201
  'Bankruptcy': JALegalUrl('1147978'),
176
202
  'Child Custody and Support': JALegalUrl('565949'),
203
+ 'Child Custody': JALegalUrl('565949'),
204
+ 'Child Support': JALegalUrl('565949'),
177
205
  'Civil Lawsuit': JALegalUrl('897042'),
206
+ 'File a Lawsuit': JALegalUrl('897042'),
207
+ 'Defend a Lawsuit': JALegalUrl('897042'),
178
208
  'Consumer Lawyers': JALegalUrl('897042'),
179
209
  'Criminal and Felony': JALegalUrl('897012'),
180
210
  'Debt and Collections': JALegalUrl('1147978'),
@@ -214,7 +244,7 @@ function legalRedirectMap(updates) {
214
244
  const legalAllValueOverrideMap = {
215
245
  'Civil_Defense': {
216
246
  'Yes': {
217
- 'Type_Of_Legal_Problem': 'Civil Lawsuit'
247
+ 'Type_Of_Legal_Problem': 'Defend a Lawsuit'
218
248
  }
219
249
  },
220
250
  'Type_Of_Legal_Problem_Display': {
@@ -223,10 +253,10 @@ const legalAllValueOverrideMap = {
223
253
  'Type_Of_Legal_Problem': 'Auto and Car Accidents'
224
254
  },
225
255
  'Contract Disputes': {
226
- 'Type_Of_Legal_Problem': 'Consumer Lawyers'
256
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
227
257
  },
228
258
  'Defamation and Slander': {
229
- 'Type_Of_Legal_Problem': 'Consumer Lawyers'
259
+ 'Type_Of_Legal_Problem': 'File a Lawsuit'
230
260
  },
231
261
  'Dog Bite': {
232
262
  'Type_Of_Legal_Problem': 'Personal Injury'
@@ -247,7 +277,7 @@ const legalAllValueOverrideMap = {
247
277
  'Type_Of_Legal_Problem': 'Property Damage'
248
278
  },
249
279
  'Small Claims': {
250
- 'Type_Of_Legal_Problem': 'Consumer Lawyers'
280
+ 'Type_Of_Legal_Problem': 'File a Lawsuit'
251
281
  },
252
282
  'Real Estate': {
253
283
  'Type_Of_Legal_Problem': 'Real Estate'
@@ -268,12 +298,34 @@ const legalAllValueOverrideMap = {
268
298
  'Expungement': {
269
299
  'Type_Of_Legal_Problem': 'Expungement'
270
300
  },
271
- 'Harrassment': {
301
+ 'Harassment': {
272
302
  'Type_Of_Legal_Problem': 'Criminal and Felony'
273
303
  },
274
304
  'Not Sure or Other': {
275
305
  'Type_Of_Legal_Problem': 'Not Sure or Other'
276
306
  },
307
+ // Employment and Workplace
308
+ 'Workplace Harassment': {
309
+ 'Type_Of_Legal_Problem': 'Workplace Harassment'
310
+ },
311
+ 'Workplace Discrimination': {
312
+ 'Type_Of_Legal_Problem': 'Workplace Discrimination'
313
+ },
314
+ 'Wrongful Termination': {
315
+ 'Type_Of_Legal_Problem': 'Wrongful Termination'
316
+ },
317
+ 'Payment Disputes': {
318
+ 'Type_Of_Legal_Problem': 'Employment and Workplace'
319
+ },
320
+ 'Workers Compensation': {
321
+ 'Type_Of_Legal_Problem': 'Workers Compensation'
322
+ },
323
+ 'Unemployment': {
324
+ 'Type_Of_Legal_Problem': 'Unemployment'
325
+ },
326
+ 'Other Workplace Issues': {
327
+ 'Type_Of_Legal_Problem': 'Employment and Workplace'
328
+ },
277
329
  // Real Estate
278
330
  'Contracts and Agreements': {
279
331
  'Type_Of_Legal_Problem': 'Real Estate'
@@ -305,7 +357,6 @@ const legalAllValueOverrideMap = {
305
357
  }
306
358
  };
307
359
 
308
-
309
360
  const TOLPCommentsPlaceholders = {
310
361
  'Adoption': 'Example: "I need help with adoption forms"',
311
362
  'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
@@ -314,8 +365,12 @@ const TOLPCommentsPlaceholders = {
314
365
  'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
315
366
  'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
316
367
  'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
368
+ 'Child Custody': 'Example: "Need help getting custody"',
369
+ 'Child Support': 'Example: "Issues with child support payments"',
317
370
  'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
318
371
  'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
372
+ 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
373
+ 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
319
374
  'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
320
375
  'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
321
376
  'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
@@ -329,6 +384,11 @@ const TOLPCommentsPlaceholders = {
329
384
  'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
330
385
  'Guardianship': 'Example: "I need help with guardianship documents"',
331
386
  'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
387
+ 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
388
+ 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
389
+ 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
390
+ 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
391
+ 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
332
392
  'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
333
393
  'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
334
394
  'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
@@ -408,6 +468,11 @@ const TOLPFinalHeadlines = {
408
468
  // 'Wrongful Death': '',
409
469
  // 'Wrongful Termination': '',
410
470
  // 'Not Sure or Other': ''
471
+ // 'Sexual Harassment': '',
472
+ // 'Workplace Harassment': '',
473
+ // 'Non-Workplace Harassment': '',
474
+ // 'Workplace Discrimination': '',
475
+ // 'Non-Workplace Discrimination': '',
411
476
  };
412
477
 
413
478
  const TOLPFinalSubHeadlines = {
@@ -460,6 +525,66 @@ const TOLPFinalSubHeadlines = {
460
525
  // 'Wrongful Death': '',
461
526
  // 'Wrongful Termination': '',
462
527
  // 'Not Sure or Other': ''
528
+ // 'Sexual Harassment': '',
529
+ // 'Workplace Harassment': '',
530
+ // 'Non-Workplace Harassment': '',
531
+ // 'Workplace Discrimination': '',
532
+ // 'Non-Workplace Discrimination': '',
533
+ };
534
+
535
+
536
+ const trustedFormTOLPs = {
537
+ 'Adoption': true,
538
+ // 'Asbestos and Mesothelioma': '',
539
+ // 'Auto and Car Accidents': '',
540
+ // 'Bankruptcy': '',
541
+ // 'Birth Certificate and Name Change': '',
542
+ // 'Business Lawyers': '',
543
+ 'Child Custody and Support': true,
544
+ 'Child Custody': true,
545
+ 'Child Support': true,
546
+ // 'Civil Rights and Discrimination': '',
547
+ // 'Civil Lawsuit': '',
548
+ // 'Consumer Lawyers': '',
549
+ // 'Copyrights and Trademarks': '',
550
+ // 'Criminal and Felony': '',
551
+ // 'Debt and Collections': '',
552
+ 'Divorce and Separation': true,
553
+ // 'DUI and DWI': '',
554
+ // 'Elder Law': '',
555
+ // 'Employment and Workplace': '',
556
+ // 'Expungement': '',
557
+ 'Family Issues': true,
558
+ // 'Foreclosure': '',
559
+ 'Guardianship': true,
560
+ // 'Harassment and Discrimination': '',
561
+ // 'Identity Theft': '',
562
+ // 'Immigration and Visas': '',
563
+ // 'Insurance': '',
564
+ // 'Landlord and Tenant': '',
565
+ // 'Lemon Law': '',
566
+ // 'Long Term Disability': '',
567
+ // 'Medical Malpractice': '',
568
+ // 'Nursing Home Abuse': '',
569
+ // 'Patents and Intellectual Property': '',
570
+ // 'Personal Injury': '',
571
+ // 'Power of Attorney': '',
572
+ // 'Probate and Estates': '',
573
+ // 'Product Liability': '',
574
+ // 'Property Damage': '',
575
+ // 'Real Estate': '',
576
+ // 'Social Security Disability and Insurance': '',
577
+ // 'Tax and IRS': '',
578
+ // 'Traffic and Tickets': '',
579
+ // 'Unemployment': '',
580
+ // 'Vaccination Injury': '',
581
+ // 'Veteran\'s Disability': '',
582
+ // 'Victim of a Crime': '',
583
+ // 'Wills and Trusts': '',
584
+ // 'Workers Compensation': '',
585
+ // 'Wrongful Death': '',
586
+ // 'Wrongful Termination': '',
587
+ 'Not Sure or Other': true,
463
588
  };
464
589
 
465
590
  // ------ Common Base Settings
@@ -591,6 +716,7 @@ const textArea = (updates) => {
591
716
  validationMessages: {
592
717
  required: 'Field is required'
593
718
  },
719
+ innerClass: 't-max-w-xl',
594
720
  labelClass: 'required'
595
721
  }, updates)
596
722
  };
@@ -831,7 +957,7 @@ const civilDefense = (updates) => sbs2ItemRadio(merge({
831
957
  }
832
958
  }, updates));
833
959
 
834
- const civilTOLPDisplay = (updates) => col2Radio(merge({
960
+ const civilLawsuitTOLPDisplay = (updates) => col2Radio(merge({
835
961
  name: 'Type_Of_Legal_Problem_Display',
836
962
  if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "No"',
837
963
  label: 'Select The Type of Lawsuit You Would Like to File:',
@@ -851,6 +977,19 @@ const civilTOLPDisplay = (updates) => col2Radio(merge({
851
977
  ]
852
978
  }, updates));
853
979
 
980
+ const civilRightsType = () => sbsSelect({
981
+ label: 'On what basis were your rights violated?',
982
+ name: 'Civil_Rights_Type',
983
+ options: [
984
+ "Age",
985
+ "Disability",
986
+ "Gender",
987
+ "Race",
988
+ "Religion",
989
+ "Other"
990
+ ]
991
+ });
992
+
854
993
  const childHome = () => sbsSelect({
855
994
  label: 'With Whom Do the Children Currently Live?',
856
995
  name: 'Child_Home',
@@ -903,6 +1042,24 @@ const comments = (updates) => textArea(
903
1042
  }, updates)
904
1043
  );
905
1044
 
1045
+ const consumerLawyerType = () => sbsSelect({
1046
+ label: 'What best describes your issue?',
1047
+ name: 'Consumer_Lawyer_Type',
1048
+ options: [
1049
+ "Unsafe Environment",
1050
+ "Unsafe Products",
1051
+ "Auto Fraud",
1052
+ "Credit Reporting Issues",
1053
+ "Debt Collection Abuse",
1054
+ "Identity Theft",
1055
+ "Lemon Law",
1056
+ "Military Consumer Rights",
1057
+ "Predatory Lending",
1058
+ "Student Loans",
1059
+ "Other"
1060
+ ]
1061
+ });
1062
+
906
1063
  const countryOfCitizenship = () => sbsSelect({
907
1064
  label: 'What is Your Current Country of Citizenship?',
908
1065
  name: 'Country_Of_Citizenship',
@@ -1201,6 +1358,22 @@ const employerType = () => sbsSelect({
1201
1358
  ]
1202
1359
  });
1203
1360
 
1361
+ const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
1362
+ name: 'Type_Of_Legal_Problem_Display',
1363
+ if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
1364
+ label: 'Select The Workplace Issue:',
1365
+ options: [
1366
+ 'Workplace Harassment',
1367
+ 'Workplace Discrimination',
1368
+ 'Wrongful Termination',
1369
+ 'Payment Disputes',
1370
+ 'Workers Compensation',
1371
+ 'Personal Injury',
1372
+ 'Unemployment',
1373
+ 'Other Workplace Issues'
1374
+ ]
1375
+ }, updates));
1376
+
1204
1377
  const estateLegalServicesNeeded = () => sbsSelect({
1205
1378
  label: "Legal Services Needed for Your Estate:",
1206
1379
  name: 'Estate_Legal_Services_Needed',
@@ -1235,7 +1408,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1235
1408
  'Bankruptcy',
1236
1409
  'Birth Certificate and Name Change',
1237
1410
  'Business Lawyers',
1238
- 'Child Custody and Support',
1411
+ 'Child Custody',
1412
+ 'Child Support',
1239
1413
  'Civil Rights and Discrimination',
1240
1414
  'Civil Lawsuit',
1241
1415
  'Consumer Lawyers',
@@ -1258,6 +1432,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1258
1432
  'Lemon Law',
1259
1433
  'Long Term Disability',
1260
1434
  'Medical Malpractice',
1435
+ 'Non-Workplace Discrimination',
1436
+ 'Non-Workplace Harassment',
1261
1437
  'Nursing Home Abuse',
1262
1438
  'Patents and Intellectual Property',
1263
1439
  'Personal Injury',
@@ -1266,6 +1442,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
1266
1442
  'Product Liability',
1267
1443
  'Property Damage',
1268
1444
  'Real Estate',
1445
+ 'Sexual Harassment',
1269
1446
  'Social Security Disability and Insurance',
1270
1447
  'Tax and IRS',
1271
1448
  'Traffic and Tickets',
@@ -1275,6 +1452,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1275
1452
  'Victim of a Crime',
1276
1453
  'Wills and Trusts',
1277
1454
  'Workers Compensation',
1455
+ 'Workplace Discrimination',
1456
+ 'Workplace Harassment',
1278
1457
  'Wrongful Death',
1279
1458
  'Wrongful Termination',
1280
1459
  'Not Sure or Other'
@@ -1283,7 +1462,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
1283
1462
 
1284
1463
  const haveAttorney = () => sbsYesNoRadio({
1285
1464
  name: 'Have_Attorney',
1286
- label: 'Are You Already Working with An Attorney?'
1465
+ label: 'Already Working with An Attorney?'
1287
1466
  });
1288
1467
 
1289
1468
  const haveChildren = () => sbsYesNoRadio({
@@ -1885,6 +2064,10 @@ const group = (name, updates) => {
1885
2064
  }, updates)
1886
2065
  };
1887
2066
 
2067
+ const defaultQuestions = () => [
2068
+ haveAttorney(),
2069
+ degreeOfInterestHelp()
2070
+ ];
1888
2071
 
1889
2072
  const AdoptionQuestions = () => group(
1890
2073
  'AdoptionQuestions',
@@ -1982,11 +2165,42 @@ const ChildCustodyAndSupportQuestions = () => group(
1982
2165
  }
1983
2166
  );
1984
2167
 
2168
+ const ChildCustodyQuestions = () => group(
2169
+ 'ChildCustodyQuestions',
2170
+ {
2171
+ if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2172
+ children: [
2173
+ haveAttorney(),
2174
+ childRelationship(),
2175
+ childHome(),
2176
+ childPrimaryCaregiver(),
2177
+ degreeOfInterest(),
2178
+ lawyerPaymentMethod()
2179
+ ]
2180
+ }
2181
+ );
2182
+
2183
+ const ChildSupportQuestions = () => group(
2184
+ 'ChildSupportQuestions',
2185
+ {
2186
+ if: '$get(Type_Of_Legal_Problem).value == "Child Support"',
2187
+ children: [
2188
+ haveAttorney(),
2189
+ childRelationship(),
2190
+ childHome(),
2191
+ childPrimaryCaregiver(),
2192
+ degreeOfInterest(),
2193
+ lawyerPaymentMethod()
2194
+ ]
2195
+ }
2196
+ );
2197
+
1985
2198
  const CivilRightsAndDiscriminationQuestions = () => group(
1986
2199
  'CivilRightsAndDiscriminationQuestions',
1987
2200
  {
1988
2201
  if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
1989
2202
  children: [
2203
+ civilRightsType(),
1990
2204
  haveAttorney(),
1991
2205
  degreeOfInterestHelp()
1992
2206
  ]
@@ -1999,7 +2213,30 @@ const CivilLawsuitQuestions = () => group(
1999
2213
  if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
2000
2214
  children: [
2001
2215
  haveAttorney(),
2002
- incidentDate(),
2216
+ lawsuitOtherParty(),
2217
+ degreeOfInterestHelp()
2218
+ ]
2219
+ }
2220
+ );
2221
+
2222
+ const FileLawsuitQuestions = () => group(
2223
+ 'FileLawsuitQuestions',
2224
+ {
2225
+ if: '$get(Type_Of_Legal_Problem).value == "File a Lawsuit"',
2226
+ children: [
2227
+ haveAttorney(),
2228
+ lawsuitOtherParty(),
2229
+ degreeOfInterestHelp()
2230
+ ]
2231
+ }
2232
+ );
2233
+
2234
+ const DefendLawsuitQuestions = () => group(
2235
+ 'DefendLawsuitQuestions',
2236
+ {
2237
+ if: '$get(Type_Of_Legal_Problem).value == "Defend a Lawsuit"',
2238
+ children: [
2239
+ haveAttorney(),
2003
2240
  lawsuitOtherParty(),
2004
2241
  degreeOfInterestHelp()
2005
2242
  ]
@@ -2011,8 +2248,9 @@ const ConsumerLawyersQuestions = () => group(
2011
2248
  {
2012
2249
  if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
2013
2250
  children: [
2014
- haveAttorney(),
2251
+ consumerLawyerType(),
2015
2252
  incidentDate(),
2253
+ haveAttorney(),
2016
2254
  lawsuitOtherParty(),
2017
2255
  degreeOfInterestHelp()
2018
2256
  ]
@@ -2054,7 +2292,7 @@ const criminalTOLPDisplay = (updates) => col2Radio(merge({
2054
2292
  'Victim of a Crime',
2055
2293
  'DUI and DWI',
2056
2294
  'Expungement',
2057
- 'Harrassment',
2295
+ 'Harassment',
2058
2296
  'Not Sure or Other',
2059
2297
  ]
2060
2298
  }, updates));
@@ -2123,8 +2361,7 @@ const EmploymentAndWorkplaceQuestions = () => group(
2123
2361
  haveAttorney(),
2124
2362
  numEmployeesOfBusiness(),
2125
2363
  employerType(),
2126
- degreeOfInterest(),
2127
- lawyerPaymentMethod()
2364
+ degreeOfInterestHelp()
2128
2365
  ]
2129
2366
  }
2130
2367
  );
@@ -2191,10 +2428,47 @@ const HarassmentAndDiscriminationQuestions = () => group(
2191
2428
  'HarassmentAndDiscriminationQuestions',
2192
2429
  {
2193
2430
  if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
2194
- children: [
2195
- haveAttorney(),
2196
- degreeOfInterestHelp()
2197
- ]
2431
+ children: defaultQuestions()
2432
+ }
2433
+ );
2434
+
2435
+ const SexualHarassmentQuestions = () => group(
2436
+ 'SexualHarassmentQuestions',
2437
+ {
2438
+ if: '$get(Type_Of_Legal_Problem).value == "Sexual Harassment"',
2439
+ children: defaultQuestions()
2440
+ }
2441
+ );
2442
+
2443
+ const WorkplaceHarassmentQuestions = () => group(
2444
+ 'WorkplaceHarassmentQuestions',
2445
+ {
2446
+ if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
2447
+ children: defaultQuestions()
2448
+ }
2449
+ );
2450
+
2451
+ const NonWorkplaceHarassmentQuestions = () => group(
2452
+ 'NonWorkplaceHarassmentQuestions',
2453
+ {
2454
+ if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Harassment"',
2455
+ children: defaultQuestions()
2456
+ }
2457
+ );
2458
+
2459
+ const WorkplaceDiscriminationQuestions = () => group(
2460
+ 'WorkplaceDiscriminationQuestions',
2461
+ {
2462
+ if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
2463
+ children: defaultQuestions()
2464
+ }
2465
+ );
2466
+
2467
+ const NonWorkplaceDiscriminationQuestions = () => group(
2468
+ 'NonWorkplaceDiscriminationQuestions',
2469
+ {
2470
+ if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Discrimination"',
2471
+ children: defaultQuestions()
2198
2472
  }
2199
2473
  );
2200
2474
 
@@ -2596,6 +2870,56 @@ const stepDefaults = (step) => ({
2596
2870
  }
2597
2871
  });
2598
2872
 
2873
+ function questionsStepHeadline(updates) {
2874
+ return {
2875
+ $el: 'h3',
2876
+ children: updates.headline || 'Tell Us About Your Case',
2877
+ attrs: {
2878
+ 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'
2879
+ }
2880
+ }
2881
+ }
2882
+
2883
+ function commentsStepHeadline(updates) {
2884
+ return {
2885
+ $el: 'h3',
2886
+ children: updates.headline || 'Additional Case Details',
2887
+ attrs: {
2888
+ 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'
2889
+ }
2890
+ }
2891
+ }
2892
+
2893
+ function firstAndLastStepHeadline(updates) {
2894
+ return {
2895
+ $el: 'h3',
2896
+ children: updates.headline || 'Please Provide a Contact Name',
2897
+ attrs: {
2898
+ 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'
2899
+ }
2900
+ }
2901
+ }
2902
+
2903
+ function contactStepHeadline(updates) {
2904
+ return {
2905
+ $el: 'h3',
2906
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2907
+ attrs: {
2908
+ 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'
2909
+ }
2910
+ }
2911
+ }
2912
+
2913
+ function contactStepSubHeadline(updates) {
2914
+ return {
2915
+ $el: 'h5',
2916
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
2917
+ attrs: {
2918
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2919
+ }
2920
+ }
2921
+ }
2922
+
2599
2923
  function step(name, inputs, nextOnEnter = true) {
2600
2924
  if (typeof nextOnEnter === 'undefined') {
2601
2925
  nextOnEnter = true;
@@ -2620,68 +2944,43 @@ function step(name, inputs, nextOnEnter = true) {
2620
2944
  )
2621
2945
  }
2622
2946
 
2623
- function generalLegalTOLPAndZipV2(updates = {}) {
2947
+ function generalLegalTOLPAndZip(updates = {}) {
2624
2948
  return step(
2625
2949
  'generalLegalTOLPAndZip',
2626
2950
  [
2627
2951
  generalTOLP(),
2628
2952
  civilDefense(),
2629
- civilTOLPDisplay(),
2953
+ civilLawsuitTOLPDisplay(),
2630
2954
  realEstateTOLPDisplay(),
2631
2955
  criminalTOLPDisplay(),
2956
+ employmentAndWorkplaceTOLPDisplay(),
2632
2957
  zipcode()
2633
2958
  ],
2634
2959
  updates.nextOnEnter
2635
2960
  )
2636
2961
  }
2637
2962
 
2638
- const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
2639
- const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
2640
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
2641
-
2642
2963
  function commentsWithBankruptcyV2(updates = {}) {
2643
2964
  return step(
2644
2965
  'commentsWithBankruptcy',
2645
2966
  [
2646
- {
2647
- $el: 'h3',
2648
- children: 'Additional Case Details',
2649
- attrs: {
2650
- 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'
2651
- }
2652
- },
2967
+ commentsStepHeadline(updates),
2653
2968
  comments({
2654
2969
  label: updates.label || DEFAULT_COMMENTS_LABEL,
2655
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
2970
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
2656
2971
  }),
2657
2972
  bankruptcyCrossSell()
2658
2973
  ],
2659
2974
  updates.nextOnEnter
2660
2975
  )
2661
2976
  }
2662
- const DEFAULT_FINAL_HEADLINE_V2 = 'Submit Your Case';
2663
- const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
2664
- const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
2665
- const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
2666
2977
 
2667
2978
  function contactInfoV2(updates = {}) {
2668
2979
  return step(
2669
2980
  'contactInfo',
2670
2981
  [
2671
- {
2672
- $el: 'h3',
2673
- children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
2674
- attrs: {
2675
- 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'
2676
- }
2677
- },
2678
- {
2679
- $el: 'h5',
2680
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
2681
- attrs: {
2682
- class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2683
- }
2684
- },
2982
+ contactStepHeadline(updates),
2983
+ contactStepSubHeadline(updates),
2685
2984
  email(),
2686
2985
  phone(),
2687
2986
  TCPAConsent(),
@@ -2695,13 +2994,7 @@ function firstAndLastV2(updates = {}) {
2695
2994
  return step(
2696
2995
  'firstAndLast',
2697
2996
  [
2698
- {
2699
- $el: 'h3',
2700
- children: 'Please Provide a Contact Name',
2701
- attrs: {
2702
- 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'
2703
- }
2704
- },
2997
+ firstAndLastStepHeadline(updates),
2705
2998
  firstName(),
2706
2999
  lastName()
2707
3000
  ],
@@ -2718,8 +3011,12 @@ const AllTOLPQuestions = () => {
2718
3011
  BirthCertificateAndNameChangeQuestions(),
2719
3012
  BusinessLawyersQuestions(),
2720
3013
  ChildCustodyAndSupportQuestions(),
3014
+ ChildCustodyQuestions(),
3015
+ ChildSupportQuestions(),
2721
3016
  CivilRightsAndDiscriminationQuestions(),
2722
3017
  CivilLawsuitQuestions(),
3018
+ FileLawsuitQuestions(),
3019
+ DefendLawsuitQuestions(),
2723
3020
  ConsumerLawyersQuestions(),
2724
3021
  CopyrightsAndTrademarksQuestions(),
2725
3022
  CriminalAndFelonyQuestions(),
@@ -2733,6 +3030,11 @@ const AllTOLPQuestions = () => {
2733
3030
  ForeclosureQuestions(),
2734
3031
  GuardianshipQuestions(),
2735
3032
  HarassmentAndDiscriminationQuestions(),
3033
+ SexualHarassmentQuestions(),
3034
+ WorkplaceHarassmentQuestions(),
3035
+ NonWorkplaceHarassmentQuestions(),
3036
+ WorkplaceDiscriminationQuestions(),
3037
+ NonWorkplaceDiscriminationQuestions(),
2736
3038
  IdentityTheftQuestions(),
2737
3039
  ImmigrationAndVisasQuestions(),
2738
3040
  InsuranceQuestions(),
@@ -2767,13 +3069,7 @@ function generalLegalTOLPQuestions(updates = {}) {
2767
3069
  var questions = AllTOLPQuestions();
2768
3070
 
2769
3071
  questions.unshift(
2770
- {
2771
- $el: 'h3',
2772
- children: updates.headline || 'Tell Us About Your Case',
2773
- attrs: {
2774
- 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'
2775
- }
2776
- },
3072
+ questionsStepHeadline(updates)
2777
3073
  );
2778
3074
 
2779
3075
  return step(
@@ -2871,23 +3167,14 @@ const formDetails = () => ({
2871
3167
  });
2872
3168
 
2873
3169
  const schema = [
2874
- metaProps({
2875
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
2876
- commentsPlaceholders: TOLPCommentsPlaceholders,
2877
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
2878
- finalHeadlines: TOLPFinalHeadlines,
2879
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
2880
- finalSubHeadlines: TOLPFinalSubHeadlines
2881
- }),
3170
+ defaultMetaProps(),
2882
3171
  formAnchor(),
2883
3172
  {
2884
3173
  $cmp: 'FormKit',
2885
3174
  props: formProps({
2886
3175
  formId: 'generalLegalPopUnder',
2887
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
2888
3176
  redirectMap: legalRedirectMap(),
2889
3177
  popUnder: '/thank-you',
2890
- anchorElement: 'form-anchor',
2891
3178
  valueOverrideMap: legalAllValueOverrideMap
2892
3179
  }),
2893
3180
  children: [
@@ -2895,10 +3182,7 @@ const schema = [
2895
3182
  children: '$urlParam("hl", "Need Legal Help? Start Here!")',
2896
3183
  if: '$activeStep === $firstStep()'
2897
3184
  }),
2898
- subHeadline({
2899
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
2900
- if: '$activeStep === $firstStep()'
2901
- }),
3185
+ defaultSubHeadline(),
2902
3186
  ...hiddenInputs,
2903
3187
  {
2904
3188
  $el: 'div',
@@ -2906,7 +3190,7 @@ const schema = [
2906
3190
  class: 'form-body'
2907
3191
  },
2908
3192
  children: [
2909
- generalLegalTOLPAndZipV2(),
3193
+ generalLegalTOLPAndZip(),
2910
3194
  generalLegalTOLPQuestions(),
2911
3195
  commentsWithBankruptcyV2({
2912
3196
  nextOnEnter: false