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: [
@@ -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,92 @@ function legalRedirectMap(updates) {
211
248
  )
212
249
  }
213
250
 
214
- const legalRealEstateValueOverrideMap = {
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
296
+ 'Criminal Defense': {
297
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
298
+ },
299
+ 'Victim of a Crime': {
300
+ 'Type_Of_Legal_Problem': 'Victim of a Crime'
301
+ },
302
+ 'DUI and DWI': {
303
+ 'Type_Of_Legal_Problem': 'DUI and DWI'
304
+ },
305
+ 'Expungement': {
306
+ 'Type_Of_Legal_Problem': 'Expungement'
307
+ },
308
+ 'Harassment': {
309
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
310
+ },
311
+ 'Not Sure or Other': {
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
216
337
  'Contracts and Agreements': {
217
338
  'Type_Of_Legal_Problem': 'Real Estate'
218
339
  },
@@ -243,7 +364,6 @@ const legalRealEstateValueOverrideMap = {
243
364
  }
244
365
  };
245
366
 
246
-
247
367
  const TOLPCommentsPlaceholders = {
248
368
  'Adoption': 'Example: "I need help with adoption forms"',
249
369
  'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
@@ -252,8 +372,12 @@ const TOLPCommentsPlaceholders = {
252
372
  'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
253
373
  'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
254
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"',
255
377
  'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
256
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"',
257
381
  'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
258
382
  'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
259
383
  'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
@@ -267,6 +391,11 @@ const TOLPCommentsPlaceholders = {
267
391
  'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
268
392
  'Guardianship': 'Example: "I need help with guardianship documents"',
269
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"',
270
399
  'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
271
400
  'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
272
401
  'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
@@ -346,6 +475,11 @@ const TOLPFinalHeadlines = {
346
475
  // 'Wrongful Death': '',
347
476
  // 'Wrongful Termination': '',
348
477
  // 'Not Sure or Other': ''
478
+ // 'Sexual Harassment': '',
479
+ // 'Workplace Harassment': '',
480
+ // 'Non-Workplace Harassment': '',
481
+ // 'Workplace Discrimination': '',
482
+ // 'Non-Workplace Discrimination': '',
349
483
  };
350
484
 
351
485
  const TOLPFinalSubHeadlines = {
@@ -398,6 +532,66 @@ const TOLPFinalSubHeadlines = {
398
532
  // 'Wrongful Death': '',
399
533
  // 'Wrongful Termination': '',
400
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,
401
595
  };
402
596
 
403
597
  // ------ Common Base Settings
@@ -529,6 +723,7 @@ const textArea = (updates) => {
529
723
  validationMessages: {
530
724
  required: 'Field is required'
531
725
  },
726
+ innerClass: 't-max-w-xl',
532
727
  labelClass: 'required'
533
728
  }, updates)
534
729
  };
@@ -758,6 +953,19 @@ const causeOfDeath = () => sbsSelect({
758
953
  ]
759
954
  });
760
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
+
761
969
  const childHome = () => sbsSelect({
762
970
  label: 'With Whom Do the Children Currently Live?',
763
971
  name: 'Child_Home',
@@ -810,6 +1018,24 @@ const comments = (updates) => textArea(
810
1018
  }, updates)
811
1019
  );
812
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
+
813
1039
  const countryOfCitizenship = () => sbsSelect({
814
1040
  label: 'What is Your Current Country of Citizenship?',
815
1041
  name: 'Country_Of_Citizenship',
@@ -1133,7 +1359,7 @@ const firstName = () => sbsText({
1133
1359
 
1134
1360
  const haveAttorney = () => sbsYesNoRadio({
1135
1361
  name: 'Have_Attorney',
1136
- label: 'Are You Already Working with An Attorney?'
1362
+ label: 'Already Working with An Attorney?'
1137
1363
  });
1138
1364
 
1139
1365
  const haveChildren = () => sbsYesNoRadio({
@@ -1735,6 +1961,10 @@ const group = (name, updates) => {
1735
1961
  }, updates)
1736
1962
  };
1737
1963
 
1964
+ const defaultQuestions = () => [
1965
+ haveAttorney(),
1966
+ degreeOfInterestHelp()
1967
+ ];
1738
1968
 
1739
1969
  const AdoptionQuestions = () => group(
1740
1970
  'AdoptionQuestions',
@@ -1832,11 +2062,42 @@ const ChildCustodyAndSupportQuestions = () => group(
1832
2062
  }
1833
2063
  );
1834
2064
 
2065
+ const ChildCustodyQuestions = () => group(
2066
+ 'ChildCustodyQuestions',
2067
+ {
2068
+ if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2069
+ children: [
2070
+ haveAttorney(),
2071
+ childRelationship(),
2072
+ childHome(),
2073
+ childPrimaryCaregiver(),
2074
+ degreeOfInterest(),
2075
+ lawyerPaymentMethod()
2076
+ ]
2077
+ }
2078
+ );
2079
+
2080
+ const ChildSupportQuestions = () => group(
2081
+ 'ChildSupportQuestions',
2082
+ {
2083
+ if: '$get(Type_Of_Legal_Problem).value == "Child Support"',
2084
+ children: [
2085
+ haveAttorney(),
2086
+ childRelationship(),
2087
+ childHome(),
2088
+ childPrimaryCaregiver(),
2089
+ degreeOfInterest(),
2090
+ lawyerPaymentMethod()
2091
+ ]
2092
+ }
2093
+ );
2094
+
1835
2095
  const CivilRightsAndDiscriminationQuestions = () => group(
1836
2096
  'CivilRightsAndDiscriminationQuestions',
1837
2097
  {
1838
2098
  if: '$get(Type_Of_Legal_Problem).value == "Civil Rights and Discrimination"',
1839
2099
  children: [
2100
+ civilRightsType(),
1840
2101
  haveAttorney(),
1841
2102
  degreeOfInterestHelp()
1842
2103
  ]
@@ -1849,7 +2110,30 @@ const CivilLawsuitQuestions = () => group(
1849
2110
  if: '$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',
1850
2111
  children: [
1851
2112
  haveAttorney(),
1852
- incidentDate(),
2113
+ lawsuitOtherParty(),
2114
+ degreeOfInterestHelp()
2115
+ ]
2116
+ }
2117
+ );
2118
+
2119
+ const FileLawsuitQuestions = () => group(
2120
+ 'FileLawsuitQuestions',
2121
+ {
2122
+ if: '$get(Type_Of_Legal_Problem).value == "File a Lawsuit"',
2123
+ children: [
2124
+ haveAttorney(),
2125
+ lawsuitOtherParty(),
2126
+ degreeOfInterestHelp()
2127
+ ]
2128
+ }
2129
+ );
2130
+
2131
+ const DefendLawsuitQuestions = () => group(
2132
+ 'DefendLawsuitQuestions',
2133
+ {
2134
+ if: '$get(Type_Of_Legal_Problem).value == "Defend a Lawsuit"',
2135
+ children: [
2136
+ haveAttorney(),
1853
2137
  lawsuitOtherParty(),
1854
2138
  degreeOfInterestHelp()
1855
2139
  ]
@@ -1861,8 +2145,9 @@ const ConsumerLawyersQuestions = () => group(
1861
2145
  {
1862
2146
  if: '$get(Type_Of_Legal_Problem).value == "Consumer Lawyers"',
1863
2147
  children: [
1864
- haveAttorney(),
2148
+ consumerLawyerType(),
1865
2149
  incidentDate(),
2150
+ haveAttorney(),
1866
2151
  lawsuitOtherParty(),
1867
2152
  degreeOfInterestHelp()
1868
2153
  ]
@@ -1959,8 +2244,7 @@ const EmploymentAndWorkplaceQuestions = () => group(
1959
2244
  haveAttorney(),
1960
2245
  numEmployeesOfBusiness(),
1961
2246
  employerType(),
1962
- degreeOfInterest(),
1963
- lawyerPaymentMethod()
2247
+ degreeOfInterestHelp()
1964
2248
  ]
1965
2249
  }
1966
2250
  );
@@ -2027,10 +2311,47 @@ const HarassmentAndDiscriminationQuestions = () => group(
2027
2311
  'HarassmentAndDiscriminationQuestions',
2028
2312
  {
2029
2313
  if: '$get(Type_Of_Legal_Problem).value == "Harassment and Discrimination"',
2030
- children: [
2031
- haveAttorney(),
2032
- degreeOfInterestHelp()
2033
- ]
2314
+ children: defaultQuestions()
2315
+ }
2316
+ );
2317
+
2318
+ const SexualHarassmentQuestions = () => group(
2319
+ 'SexualHarassmentQuestions',
2320
+ {
2321
+ if: '$get(Type_Of_Legal_Problem).value == "Sexual Harassment"',
2322
+ children: defaultQuestions()
2323
+ }
2324
+ );
2325
+
2326
+ const WorkplaceHarassmentQuestions = () => group(
2327
+ 'WorkplaceHarassmentQuestions',
2328
+ {
2329
+ if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
2330
+ children: defaultQuestions()
2331
+ }
2332
+ );
2333
+
2334
+ const NonWorkplaceHarassmentQuestions = () => group(
2335
+ 'NonWorkplaceHarassmentQuestions',
2336
+ {
2337
+ if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Harassment"',
2338
+ children: defaultQuestions()
2339
+ }
2340
+ );
2341
+
2342
+ const WorkplaceDiscriminationQuestions = () => group(
2343
+ 'WorkplaceDiscriminationQuestions',
2344
+ {
2345
+ if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
2346
+ children: defaultQuestions()
2347
+ }
2348
+ );
2349
+
2350
+ const NonWorkplaceDiscriminationQuestions = () => group(
2351
+ 'NonWorkplaceDiscriminationQuestions',
2352
+ {
2353
+ if: '$get(Type_Of_Legal_Problem).value == "Non-Workplace Discrimination"',
2354
+ children: defaultQuestions()
2034
2355
  }
2035
2356
  );
2036
2357
 
@@ -2432,6 +2753,56 @@ const stepDefaults = (step) => ({
2432
2753
  }
2433
2754
  });
2434
2755
 
2756
+ function questionsStepHeadline(updates) {
2757
+ return {
2758
+ $el: 'h3',
2759
+ children: updates.headline || 'Tell Us About Your Case',
2760
+ attrs: {
2761
+ 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'
2762
+ }
2763
+ }
2764
+ }
2765
+
2766
+ function commentsStepHeadline(updates) {
2767
+ return {
2768
+ $el: 'h3',
2769
+ children: updates.headline || 'Additional Case Details',
2770
+ attrs: {
2771
+ 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'
2772
+ }
2773
+ }
2774
+ }
2775
+
2776
+ function firstAndLastStepHeadline(updates) {
2777
+ return {
2778
+ $el: 'h3',
2779
+ children: updates.headline || 'Please Provide a Contact Name',
2780
+ attrs: {
2781
+ 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'
2782
+ }
2783
+ }
2784
+ }
2785
+
2786
+ function contactStepHeadline(updates) {
2787
+ return {
2788
+ $el: 'h3',
2789
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2790
+ attrs: {
2791
+ 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'
2792
+ }
2793
+ }
2794
+ }
2795
+
2796
+ function contactStepSubHeadline(updates) {
2797
+ return {
2798
+ $el: 'h5',
2799
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
2800
+ attrs: {
2801
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2802
+ }
2803
+ }
2804
+ }
2805
+
2435
2806
  function step(name, inputs, nextOnEnter = true) {
2436
2807
  if (typeof nextOnEnter === 'undefined') {
2437
2808
  nextOnEnter = true;
@@ -2456,53 +2827,27 @@ function step(name, inputs, nextOnEnter = true) {
2456
2827
  )
2457
2828
  }
2458
2829
 
2459
- const DEFAULT_COMMENTS_PLACEHOLDER = 'For Example: "I\'ve been involved in an auto accident" or "I need Power of Attorney"';
2460
- const DEFAULT_COMMENTS_PLACEHOLDER_V2 = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
2461
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
2462
-
2463
2830
  function commentsWithBankruptcyV2(updates = {}) {
2464
2831
  return step(
2465
2832
  'commentsWithBankruptcy',
2466
2833
  [
2467
- {
2468
- $el: 'h3',
2469
- children: 'Additional Case Details',
2470
- attrs: {
2471
- 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'
2472
- }
2473
- },
2834
+ commentsStepHeadline(updates),
2474
2835
  comments({
2475
2836
  label: updates.label || DEFAULT_COMMENTS_LABEL,
2476
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_V2
2837
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
2477
2838
  }),
2478
2839
  bankruptcyCrossSell()
2479
2840
  ],
2480
2841
  updates.nextOnEnter
2481
2842
  )
2482
2843
  }
2483
- const DEFAULT_FINAL_HEADLINE_V2 = 'Submit Your Case';
2484
- const DEFAULT_FINAL_HEADLINE_V2_b = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
2485
- const DEFAULT_FINAL_SUBHEADLINE_V2 = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
2486
- const DEFAULT_FINAL_SUBHEADLINE_V2_b = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
2487
2844
 
2488
2845
  function contactInfoV2(updates = {}) {
2489
2846
  return step(
2490
2847
  'contactInfo',
2491
2848
  [
2492
- {
2493
- $el: 'h3',
2494
- children: updates.headline || DEFAULT_FINAL_HEADLINE_V2_b,
2495
- attrs: {
2496
- 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'
2497
- }
2498
- },
2499
- {
2500
- $el: 'h5',
2501
- children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_V2_b,
2502
- attrs: {
2503
- class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3'
2504
- }
2505
- },
2849
+ contactStepHeadline(updates),
2850
+ contactStepSubHeadline(updates),
2506
2851
  email(),
2507
2852
  phone(),
2508
2853
  TCPAConsent(),
@@ -2516,13 +2861,7 @@ function firstAndLastV2(updates = {}) {
2516
2861
  return step(
2517
2862
  'firstAndLast',
2518
2863
  [
2519
- {
2520
- $el: 'h3',
2521
- children: 'Please Provide a Contact Name',
2522
- attrs: {
2523
- 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'
2524
- }
2525
- },
2864
+ firstAndLastStepHeadline(updates),
2526
2865
  firstName(),
2527
2866
  lastName()
2528
2867
  ],
@@ -2539,8 +2878,12 @@ const AllTOLPQuestions = () => {
2539
2878
  BirthCertificateAndNameChangeQuestions(),
2540
2879
  BusinessLawyersQuestions(),
2541
2880
  ChildCustodyAndSupportQuestions(),
2881
+ ChildCustodyQuestions(),
2882
+ ChildSupportQuestions(),
2542
2883
  CivilRightsAndDiscriminationQuestions(),
2543
2884
  CivilLawsuitQuestions(),
2885
+ FileLawsuitQuestions(),
2886
+ DefendLawsuitQuestions(),
2544
2887
  ConsumerLawyersQuestions(),
2545
2888
  CopyrightsAndTrademarksQuestions(),
2546
2889
  CriminalAndFelonyQuestions(),
@@ -2554,6 +2897,11 @@ const AllTOLPQuestions = () => {
2554
2897
  ForeclosureQuestions(),
2555
2898
  GuardianshipQuestions(),
2556
2899
  HarassmentAndDiscriminationQuestions(),
2900
+ SexualHarassmentQuestions(),
2901
+ WorkplaceHarassmentQuestions(),
2902
+ NonWorkplaceHarassmentQuestions(),
2903
+ WorkplaceDiscriminationQuestions(),
2904
+ NonWorkplaceDiscriminationQuestions(),
2557
2905
  IdentityTheftQuestions(),
2558
2906
  ImmigrationAndVisasQuestions(),
2559
2907
  InsuranceQuestions(),
@@ -2588,13 +2936,7 @@ function generalLegalTOLPQuestions(updates = {}) {
2588
2936
  var questions = AllTOLPQuestions();
2589
2937
 
2590
2938
  questions.unshift(
2591
- {
2592
- $el: 'h3',
2593
- children: updates.headline || 'Tell Us About Your Case',
2594
- attrs: {
2595
- 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'
2596
- }
2597
- },
2939
+ questionsStepHeadline(updates)
2598
2940
  );
2599
2941
 
2600
2942
  return step(
@@ -2711,33 +3053,18 @@ const formDetails = () => ({
2711
3053
  });
2712
3054
 
2713
3055
  const schema = [
2714
- metaProps({
2715
- defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER,
2716
- commentsPlaceholders: TOLPCommentsPlaceholders,
2717
- defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_V2,
2718
- finalHeadlines: TOLPFinalHeadlines,
2719
- defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_V2,
2720
- finalSubHeadlines: TOLPFinalSubHeadlines
2721
- }),
3056
+ defaultMetaProps(),
2722
3057
  formAnchor(),
2723
3058
  {
2724
3059
  $cmp: 'FormKit',
2725
3060
  props: formProps({
2726
3061
  formId: 'realEstate',
2727
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
2728
3062
  redirectMap: legalRedirectMap(),
2729
- anchorElement: 'form-anchor',
2730
- valueOverrideMap: legalRealEstateValueOverrideMap
3063
+ valueOverrideMap: legalAllValueOverrideMap
2731
3064
  }),
2732
3065
  children: [
2733
- headline({
2734
- children: '$urlParam("hl", "Start Here For a Free Consultation")',
2735
- if: '$activeStep === $firstStep()'
2736
- }),
2737
- subHeadline({
2738
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
2739
- if: '$activeStep === $firstStep()'
2740
- }),
3066
+ defaultHeadline(),
3067
+ defaultSubHeadline(),
2741
3068
  ...hiddenInputs,
2742
3069
  {
2743
3070
  $el: 'div',