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,11 @@ 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': '',
463
533
  };
464
534
 
465
535
 
@@ -471,6 +541,8 @@ const trustedFormTOLPs = {
471
541
  // 'Birth Certificate and Name Change': '',
472
542
  // 'Business Lawyers': '',
473
543
  'Child Custody and Support': true,
544
+ 'Child Custody': true,
545
+ 'Child Support': true,
474
546
  // 'Civil Rights and Discrimination': '',
475
547
  // 'Civil Lawsuit': '',
476
548
  // 'Consumer Lawyers': '',
@@ -644,6 +716,7 @@ const textArea = (updates) => {
644
716
  validationMessages: {
645
717
  required: 'Field is required'
646
718
  },
719
+ innerClass: 't-max-w-xl',
647
720
  labelClass: 'required'
648
721
  }, updates)
649
722
  };
@@ -884,7 +957,7 @@ const civilDefense = (updates) => sbs2ItemRadio(merge({
884
957
  }
885
958
  }, updates));
886
959
 
887
- const civilTOLPDisplay = (updates) => col2Radio(merge({
960
+ const civilLawsuitTOLPDisplay = (updates) => col2Radio(merge({
888
961
  name: 'Type_Of_Legal_Problem_Display',
889
962
  if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "No"',
890
963
  label: 'Select The Type of Lawsuit You Would Like to File:',
@@ -904,6 +977,19 @@ const civilTOLPDisplay = (updates) => col2Radio(merge({
904
977
  ]
905
978
  }, updates));
906
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
+
907
993
  const childHome = () => sbsSelect({
908
994
  label: 'With Whom Do the Children Currently Live?',
909
995
  name: 'Child_Home',
@@ -956,6 +1042,24 @@ const comments = (updates) => textArea(
956
1042
  }, updates)
957
1043
  );
958
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
+
959
1063
  const countryOfCitizenship = () => sbsSelect({
960
1064
  label: 'What is Your Current Country of Citizenship?',
961
1065
  name: 'Country_Of_Citizenship',
@@ -1254,6 +1358,22 @@ const employerType = () => sbsSelect({
1254
1358
  ]
1255
1359
  });
1256
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
+
1257
1377
  const estateLegalServicesNeeded = () => sbsSelect({
1258
1378
  label: "Legal Services Needed for Your Estate:",
1259
1379
  name: 'Estate_Legal_Services_Needed',
@@ -1288,7 +1408,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1288
1408
  'Bankruptcy',
1289
1409
  'Birth Certificate and Name Change',
1290
1410
  'Business Lawyers',
1291
- 'Child Custody and Support',
1411
+ 'Child Custody',
1412
+ 'Child Support',
1292
1413
  'Civil Rights and Discrimination',
1293
1414
  'Civil Lawsuit',
1294
1415
  'Consumer Lawyers',
@@ -1311,6 +1432,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1311
1432
  'Lemon Law',
1312
1433
  'Long Term Disability',
1313
1434
  'Medical Malpractice',
1435
+ 'Non-Workplace Discrimination',
1436
+ 'Non-Workplace Harassment',
1314
1437
  'Nursing Home Abuse',
1315
1438
  'Patents and Intellectual Property',
1316
1439
  'Personal Injury',
@@ -1319,6 +1442,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
1319
1442
  'Product Liability',
1320
1443
  'Property Damage',
1321
1444
  'Real Estate',
1445
+ 'Sexual Harassment',
1322
1446
  'Social Security Disability and Insurance',
1323
1447
  'Tax and IRS',
1324
1448
  'Traffic and Tickets',
@@ -1328,6 +1452,8 @@ const generalTOLP = (updates) => sbsSelect(merge({
1328
1452
  'Victim of a Crime',
1329
1453
  'Wills and Trusts',
1330
1454
  'Workers Compensation',
1455
+ 'Workplace Discrimination',
1456
+ 'Workplace Harassment',
1331
1457
  'Wrongful Death',
1332
1458
  'Wrongful Termination',
1333
1459
  'Not Sure or Other'
@@ -1336,7 +1462,7 @@ const generalTOLP = (updates) => sbsSelect(merge({
1336
1462
 
1337
1463
  const haveAttorney = () => sbsYesNoRadio({
1338
1464
  name: 'Have_Attorney',
1339
- label: 'Are You Already Working with An Attorney?'
1465
+ label: 'Already Working with An Attorney?'
1340
1466
  });
1341
1467
 
1342
1468
  const haveChildren = () => sbsYesNoRadio({
@@ -1938,6 +2064,10 @@ const group = (name, updates) => {
1938
2064
  }, updates)
1939
2065
  };
1940
2066
 
2067
+ const defaultQuestions = () => [
2068
+ haveAttorney(),
2069
+ degreeOfInterestHelp()
2070
+ ];
1941
2071
 
1942
2072
  const AdoptionQuestions = () => group(
1943
2073
  'AdoptionQuestions',
@@ -2035,11 +2165,42 @@ const ChildCustodyAndSupportQuestions = () => group(
2035
2165
  }
2036
2166
  );
2037
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
+
2038
2198
  const CivilRightsAndDiscriminationQuestions = () => group(
2039
2199
  'CivilRightsAndDiscriminationQuestions',
2040
2200
  {
2041
2201
  if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
2042
2202
  children: [
2203
+ civilRightsType(),
2043
2204
  haveAttorney(),
2044
2205
  degreeOfInterestHelp()
2045
2206
  ]
@@ -2052,7 +2213,30 @@ const CivilLawsuitQuestions = () => group(
2052
2213
  if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
2053
2214
  children: [
2054
2215
  haveAttorney(),
2055
- 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(),
2056
2240
  lawsuitOtherParty(),
2057
2241
  degreeOfInterestHelp()
2058
2242
  ]
@@ -2064,8 +2248,9 @@ const ConsumerLawyersQuestions = () => group(
2064
2248
  {
2065
2249
  if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
2066
2250
  children: [
2067
- haveAttorney(),
2251
+ consumerLawyerType(),
2068
2252
  incidentDate(),
2253
+ haveAttorney(),
2069
2254
  lawsuitOtherParty(),
2070
2255
  degreeOfInterestHelp()
2071
2256
  ]
@@ -2107,7 +2292,7 @@ const criminalTOLPDisplay = (updates) => col2Radio(merge({
2107
2292
  'Victim of a Crime',
2108
2293
  'DUI and DWI',
2109
2294
  'Expungement',
2110
- 'Harrassment',
2295
+ 'Harassment',
2111
2296
  'Not Sure or Other',
2112
2297
  ]
2113
2298
  }, updates));
@@ -2176,8 +2361,7 @@ const EmploymentAndWorkplaceQuestions = () => group(
2176
2361
  haveAttorney(),
2177
2362
  numEmployeesOfBusiness(),
2178
2363
  employerType(),
2179
- degreeOfInterest(),
2180
- lawyerPaymentMethod()
2364
+ degreeOfInterestHelp()
2181
2365
  ]
2182
2366
  }
2183
2367
  );
@@ -2244,10 +2428,47 @@ const HarassmentAndDiscriminationQuestions = () => group(
2244
2428
  'HarassmentAndDiscriminationQuestions',
2245
2429
  {
2246
2430
  if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
2247
- children: [
2248
- haveAttorney(),
2249
- degreeOfInterestHelp()
2250
- ]
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()
2251
2472
  }
2252
2473
  );
2253
2474
 
@@ -2649,6 +2870,80 @@ const stepDefaults = (step) => ({
2649
2870
  }
2650
2871
  });
2651
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
+
2923
+ const TRUSTED_FORM_JS = `(function() {
2924
+ if (window.xxTrustedFormLoaded) {
2925
+ return
2926
+ }
2927
+ var vid = '';
2928
+ if (typeof window.zar !== 'undefined') {
2929
+ vid = window.zar.getVID();
2930
+ }
2931
+ window.xxTrustedFormLoaded = true;
2932
+ var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
2933
+ var tf = document.createElement('script');
2934
+ tf.type = 'text/javascript'; tf.async = true;
2935
+ 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();
2936
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
2937
+ })();`;
2938
+
2939
+ function trustedFormScript() {
2940
+ return {
2941
+ $el: 'script',
2942
+ if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
2943
+ children: TRUSTED_FORM_JS
2944
+ }
2945
+ }
2946
+
2652
2947
  function step(name, inputs, nextOnEnter = true) {
2653
2948
  if (typeof nextOnEnter === 'undefined') {
2654
2949
  nextOnEnter = true;
@@ -2673,89 +2968,44 @@ function step(name, inputs, nextOnEnter = true) {
2673
2968
  )
2674
2969
  }
2675
2970
 
2676
- function generalLegalTOLPAndZipV2(updates = {}) {
2971
+ function generalLegalTOLPAndZip(updates = {}) {
2677
2972
  return step(
2678
2973
  'generalLegalTOLPAndZip',
2679
2974
  [
2680
2975
  generalTOLP(),
2681
2976
  civilDefense(),
2682
- civilTOLPDisplay(),
2977
+ civilLawsuitTOLPDisplay(),
2683
2978
  realEstateTOLPDisplay(),
2684
2979
  criminalTOLPDisplay(),
2980
+ employmentAndWorkplaceTOLPDisplay(),
2685
2981
  zipcode()
2686
2982
  ],
2687
2983
  updates.nextOnEnter
2688
2984
  )
2689
2985
  }
2690
2986
 
2691
- const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
2692
- const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
2693
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
2694
-
2695
2987
  function commentsWithBankruptcyV2(updates = {}) {
2696
2988
  return step(
2697
2989
  'commentsWithBankruptcy',
2698
2990
  [
2699
- {
2700
- $el: 'h3',
2701
- children: 'Additional Case Details',
2702
- attrs: {
2703
- 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'
2704
- }
2705
- },
2991
+ commentsStepHeadline(updates),
2706
2992
  comments({
2707
2993
  label: updates.label || DEFAULT_COMMENTS_LABEL,
2708
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
2994
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
2709
2995
  }),
2710
2996
  bankruptcyCrossSell()
2711
2997
  ],
2712
2998
  updates.nextOnEnter
2713
2999
  )
2714
3000
  }
2715
- const DEFAULT_FINAL_HEADLINE_V2 = 'Submit Your Case';
2716
- const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
2717
- const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
2718
- const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
2719
-
2720
- const TRUSTED_FORM_JS = `(function() {
2721
- if (window.xxTrustedFormLoaded) {
2722
- return
2723
- }
2724
- var vid = '';
2725
- if (typeof window.zar !== 'undefined') {
2726
- vid = window.zar.getVID();
2727
- }
2728
- window.xxTrustedFormLoaded = true;
2729
- var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
2730
- var tf = document.createElement('script');
2731
- tf.type = 'text/javascript'; tf.async = true;
2732
- 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();
2733
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
2734
- })();`;
2735
3001
 
2736
3002
  function contactInfoTF(updates = {}) {
2737
3003
  return step(
2738
3004
  'contactInfo',
2739
3005
  [
2740
- {
2741
- $el: 'h3',
2742
- children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
2743
- attrs: {
2744
- 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'
2745
- }
2746
- },
2747
- {
2748
- $el: 'h5',
2749
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
2750
- attrs: {
2751
- class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2752
- }
2753
- },
2754
- {
2755
- $el: 'script',
2756
- if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
2757
- children: TRUSTED_FORM_JS
2758
- },
3006
+ contactStepHeadline(updates),
3007
+ contactStepSubHeadline(updates),
3008
+ trustedFormScript(),
2759
3009
  email(),
2760
3010
  phone(),
2761
3011
  TCPAConsent(),
@@ -2769,13 +3019,7 @@ function firstAndLastV2(updates = {}) {
2769
3019
  return step(
2770
3020
  'firstAndLast',
2771
3021
  [
2772
- {
2773
- $el: 'h3',
2774
- children: 'Please Provide a Contact Name',
2775
- attrs: {
2776
- 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'
2777
- }
2778
- },
3022
+ firstAndLastStepHeadline(updates),
2779
3023
  firstName(),
2780
3024
  lastName()
2781
3025
  ],
@@ -2792,8 +3036,12 @@ const AllTOLPQuestions = () => {
2792
3036
  BirthCertificateAndNameChangeQuestions(),
2793
3037
  BusinessLawyersQuestions(),
2794
3038
  ChildCustodyAndSupportQuestions(),
3039
+ ChildCustodyQuestions(),
3040
+ ChildSupportQuestions(),
2795
3041
  CivilRightsAndDiscriminationQuestions(),
2796
3042
  CivilLawsuitQuestions(),
3043
+ FileLawsuitQuestions(),
3044
+ DefendLawsuitQuestions(),
2797
3045
  ConsumerLawyersQuestions(),
2798
3046
  CopyrightsAndTrademarksQuestions(),
2799
3047
  CriminalAndFelonyQuestions(),
@@ -2807,6 +3055,11 @@ const AllTOLPQuestions = () => {
2807
3055
  ForeclosureQuestions(),
2808
3056
  GuardianshipQuestions(),
2809
3057
  HarassmentAndDiscriminationQuestions(),
3058
+ SexualHarassmentQuestions(),
3059
+ WorkplaceHarassmentQuestions(),
3060
+ NonWorkplaceHarassmentQuestions(),
3061
+ WorkplaceDiscriminationQuestions(),
3062
+ NonWorkplaceDiscriminationQuestions(),
2810
3063
  IdentityTheftQuestions(),
2811
3064
  ImmigrationAndVisasQuestions(),
2812
3065
  InsuranceQuestions(),
@@ -2841,13 +3094,7 @@ function generalLegalTOLPQuestions(updates = {}) {
2841
3094
  var questions = AllTOLPQuestions();
2842
3095
 
2843
3096
  questions.unshift(
2844
- {
2845
- $el: 'h3',
2846
- children: updates.headline || 'Tell Us About Your Case',
2847
- attrs: {
2848
- 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'
2849
- }
2850
- },
3097
+ questionsStepHeadline(updates)
2851
3098
  );
2852
3099
 
2853
3100
  return step(
@@ -2945,24 +3192,14 @@ const formDetails = () => ({
2945
3192
  });
2946
3193
 
2947
3194
  const schema = [
2948
- metaProps({
2949
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
2950
- commentsPlaceholders: TOLPCommentsPlaceholders,
2951
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
2952
- finalHeadlines: TOLPFinalHeadlines,
2953
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
2954
- finalSubHeadlines: TOLPFinalSubHeadlines,
2955
- trustedFormTOLPs: trustedFormTOLPs
2956
- }),
3195
+ defaultMetaProps(),
2957
3196
  formAnchor(),
2958
3197
  {
2959
3198
  $cmp: 'FormKit',
2960
3199
  props: formProps({
2961
3200
  formId: 'generalLegalPopUnder',
2962
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
2963
3201
  redirectMap: legalRedirectMap(),
2964
3202
  popUnder: '/thank-you',
2965
- anchorElement: 'form-anchor',
2966
3203
  valueOverrideMap: legalAllValueOverrideMap
2967
3204
  }),
2968
3205
  children: [
@@ -2970,10 +3207,7 @@ const schema = [
2970
3207
  children: '$urlParam("hl", "Need Legal Help? Start Here!")',
2971
3208
  if: '$activeStep === $firstStep()'
2972
3209
  }),
2973
- subHeadline({
2974
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
2975
- if: '$activeStep === $firstStep()'
2976
- }),
3210
+ defaultSubHeadline(),
2977
3211
  ...hiddenInputs,
2978
3212
  {
2979
3213
  $el: 'div',
@@ -2981,7 +3215,7 @@ const schema = [
2981
3215
  class: 'form-body'
2982
3216
  },
2983
3217
  children: [
2984
- generalLegalTOLPAndZipV2(),
3218
+ generalLegalTOLPAndZip(),
2985
3219
  generalLegalTOLPQuestions(),
2986
3220
  commentsWithBankruptcyV2({
2987
3221
  nextOnEnter: false