bhl-forms 0.6.6 → 0.6.8

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 (74) hide show
  1. package/dist/bhl-forms.es.js +904 -902
  2. package/dist/bhl-forms.iife.js +4 -4
  3. package/dist/bhl-forms.modern.es.js +2043 -2036
  4. package/dist/bhl-forms.modern.iife.js +6 -6
  5. package/dist/bhl-forms.modern.umd.js +6 -6
  6. package/dist/bhl-forms.umd.js +4 -4
  7. package/dist/forms/accidentsAndInjuries.es.js +27 -1
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +3 -2
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/business.es.js +2152 -0
  13. package/dist/forms/business.iife.js +1 -0
  14. package/dist/forms/business.json +1 -0
  15. package/dist/forms/childAndFamily.es.js +1 -1
  16. package/dist/forms/childAndFamily.iife.js +1 -1
  17. package/dist/forms/childAndFamily.json +1 -1
  18. package/dist/forms/childAndFamilySingle.es.js +425 -56
  19. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  20. package/dist/forms/childAndFamilySingle.json +1 -1
  21. package/dist/forms/civilLawsuit.es.js +904 -260
  22. package/dist/forms/civilLawsuit.iife.js +1 -1
  23. package/dist/forms/civilLawsuit.json +1 -1
  24. package/dist/forms/coins.es.js +3 -2
  25. package/dist/forms/coins.iife.js +1 -1
  26. package/dist/forms/contracts.es.js +1 -1
  27. package/dist/forms/contracts.iife.js +1 -1
  28. package/dist/forms/contracts.json +1 -1
  29. package/dist/forms/criminal.es.js +870 -1482
  30. package/dist/forms/criminal.iife.js +1 -1
  31. package/dist/forms/criminal.json +1 -1
  32. package/dist/forms/employmentAndWorkplace.es.js +815 -184
  33. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  34. package/dist/forms/employmentAndWorkplace.json +1 -1
  35. package/dist/forms/generalLegal.es.js +28 -2
  36. package/dist/forms/generalLegal.iife.js +1 -1
  37. package/dist/forms/generalLegal.json +1 -1
  38. package/dist/forms/generalLegalPopUnder.es.js +28 -2
  39. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  40. package/dist/forms/generalLegalPopUnder.json +1 -1
  41. package/dist/forms/generalLegalPopUnderSingle.es.js +4409 -0
  42. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -0
  43. package/dist/forms/generalLegalPopUnderSingle.json +1 -0
  44. package/dist/forms/generalLegalSingle.es.js +53 -8
  45. package/dist/forms/generalLegalSingle.iife.js +1 -1
  46. package/dist/forms/generalLegalSingle.json +1 -1
  47. package/dist/forms/generalLegalThankYou.es.js +28 -2
  48. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  49. package/dist/forms/generalLegalThankYou.json +1 -1
  50. package/dist/forms/harassmentAndDiscrimination.es.js +1 -1
  51. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  52. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  53. package/dist/forms/malpractice.es.js +27 -1
  54. package/dist/forms/malpractice.iife.js +1 -1
  55. package/dist/forms/malpractice.json +1 -1
  56. package/dist/forms/mechanics.es.js +3 -2
  57. package/dist/forms/mechanics.iife.js +1 -1
  58. package/dist/forms/realEstate.es.js +27 -1
  59. package/dist/forms/realEstate.iife.js +1 -1
  60. package/dist/forms/realEstate.json +1 -1
  61. package/dist/forms/repossession.es.js +27 -1
  62. package/dist/forms/repossession.iife.js +1 -1
  63. package/dist/forms/repossession.json +1 -1
  64. package/dist/forms/ssdi.es.js +2 -2
  65. package/dist/forms/ssdi.iife.js +1 -1
  66. package/dist/forms/testRedirects.es.js +1 -1
  67. package/dist/forms/testRedirects.iife.js +1 -1
  68. package/dist/forms/testRedirects.json +1 -1
  69. package/dist/forms/vets.es.js +3 -2
  70. package/dist/forms/vets.iife.js +1 -1
  71. package/dist/forms/willsAndTrusts.es.js +1 -1
  72. package/dist/forms/willsAndTrusts.iife.js +1 -1
  73. package/dist/forms/willsAndTrusts.json +1 -1
  74. package/package.json +1 -1
@@ -65,12 +65,17 @@ const radio = (updates) => {
65
65
  }, updates)
66
66
  };
67
67
 
68
- const col2Radio = (updates) => {
69
- updates.legendClass = 'required';
70
- updates.fieldsetClass = '$reset';
71
- updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
68
+ const col2RadioCenter = (updates) => {
69
+ updates.legendClass = 'required t-w-[100%] t-text-center';
70
+ if (typeof updates.fieldsetClass === 'undefined') {
71
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
72
+ }
73
+ updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
72
74
  updates.innerClass = 't-items-start';
73
75
  updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
76
+ updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
77
+ updates.messagesClass = 't-flex t-justify-center';
78
+ updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
74
79
  return radio(updates)
75
80
  };
76
81
 
@@ -97,6 +102,37 @@ const sbsYesNoRadio = (updates) => {
97
102
  return sbs2ItemRadio(updates)
98
103
  };
99
104
 
105
+ const verticalButtonRadio = (updates) => {
106
+ updates.legendClass = 'legend-left';
107
+ updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
108
+ if (typeof updates.optionsClass === 'undefined') {
109
+ updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
110
+ }
111
+ updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
112
+ updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
113
+ updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
114
+ updates.decoratorIcon = false;
115
+ updates.messagesClass = 't-flex t-justify-center';
116
+ return radio(updates)
117
+ };
118
+
119
+ const verticalYesNoRadio = (updates) => {
120
+ updates.options = ['Yes', 'No'];
121
+ updates.optionsClass = 't-flex t-justify-center t-my-3';
122
+ return verticalButtonRadio(updates)
123
+ };
124
+
125
+ const verticalRadio = (updates) => {
126
+ updates.legendClass = 'required';
127
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
128
+ updates.optionsClass = 't-pl-2 t-pt-3';
129
+ updates.innerClass = 't-items-center';
130
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
131
+ updates.optionClass = 't-pl-4 md:t-pl-12';
132
+ updates.messagesClass = 't-flex t-justify-center';
133
+ return radio(updates)
134
+ };
135
+
100
136
  const select = (updates) => {
101
137
  if (updates.name && !updates.id) {
102
138
  updates.id = updates.name;
@@ -177,6 +213,13 @@ const sbsDate = (updates) => {
177
213
  return date(updates)
178
214
  };
179
215
 
216
+ const verticalDate = (updates) => {
217
+ updates.wrapperClass = 't-flex t-justify-center';
218
+ updates.inputClass = 't-text-center';
219
+ updates.messagesClass = 't-flex t-justify-center';
220
+ return date(updates)
221
+ };
222
+
180
223
  const applicantAge = (scope) => sbsText({
181
224
  name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
182
225
  label: 'Age of Applicant?',
@@ -191,11 +234,15 @@ const applicantAge = (scope) => sbsText({
191
234
  }
192
235
  });
193
236
 
194
- const atFault = (scope) => sbsYesNoRadio({
237
+ const atFault$1 = (scope) => sbsYesNoRadio({
195
238
  name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
196
239
  label: 'Were You at Fault?'
197
240
  });
198
241
 
242
+ const atFaultCenter = (scope) => verticalYesNoRadio({
243
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
244
+ });
245
+
199
246
  const bankruptcyCrossSell = () => sbsCheckbox({
200
247
  label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
201
248
  help: "Note: you will be contacted separately by a bankruptcy/debt expert",
@@ -221,7 +268,7 @@ const bloodContentAlcoholTest = (scope) => sbsSelect({
221
268
  ]
222
269
  });
223
270
 
224
- const causeOfInjury = (scope) => sbsSelect({
271
+ const causeOfInjury$1 = (scope) => sbsSelect({
225
272
  name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
226
273
  label: 'Cause of Injury:',
227
274
  options: [
@@ -233,6 +280,27 @@ const causeOfInjury = (scope) => sbsSelect({
233
280
  ]
234
281
  });
235
282
 
283
+ const causeOfInjuryCenter = (scope) => col2RadioCenter({
284
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
285
+ options: [
286
+ "Traumatic Physical Injury (Accident)",
287
+ "Repeated Trauma Injury",
288
+ "Mental Injury",
289
+ "Occupational Disease",
290
+ "Not Sure"
291
+ ]
292
+ });
293
+
294
+ const causeOfDeathCenter = () => col2RadioCenter({
295
+ name: 'Cause_Of_Death',
296
+ options: [
297
+ "Vehicle Accident",
298
+ "Negligent/Careless Act",
299
+ "Reckless Act",
300
+ "Other"
301
+ ]
302
+ });
303
+
236
304
  const childHome = (scope) => sbsSelect({
237
305
  name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
238
306
  label: 'With Whom Do the Children Currently Live?',
@@ -266,7 +334,7 @@ const childRelationship = (scope) => sbsSelect({
266
334
  ]
267
335
  });
268
336
 
269
- const claimStatus = (scope) => sbsSelect({
337
+ const claimStatus$1 = (scope) => sbsSelect({
270
338
  name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
271
339
  label: "Status of Claim:",
272
340
  options: [
@@ -277,6 +345,16 @@ const claimStatus = (scope) => sbsSelect({
277
345
  ]
278
346
  });
279
347
 
348
+ const claimStatusCenter = (scope) => col2RadioCenter({
349
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
350
+ options: [
351
+ "No action taken yet",
352
+ "Demand for compensation made",
353
+ "Lawsuit filed",
354
+ "Other"
355
+ ]
356
+ });
357
+
280
358
  const comments = (updates, scope) => textArea(
281
359
  merge({
282
360
  name: scope ? scope + ':' + 'Comments' : 'Comments',
@@ -285,7 +363,16 @@ const comments = (updates, scope) => textArea(
285
363
  }, updates)
286
364
  );
287
365
 
288
- const degreeOfInterest = (scope, help) => sbsSelect({
366
+ const criminalChargesFiledCenter = () => verticalRadio({
367
+ name: 'Criminal_Charges_Filed',
368
+ options: [
369
+ "Yes",
370
+ "No",
371
+ "Not Sure"
372
+ ]
373
+ });
374
+
375
+ const degreeOfInterest$1 = (scope, help) => sbsSelect({
289
376
  name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
290
377
  id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
291
378
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
@@ -298,7 +385,19 @@ const degreeOfInterest = (scope, help) => sbsSelect({
298
385
  ]
299
386
  });
300
387
 
301
- const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
388
+ const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
389
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
390
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
391
+ help: help,
392
+ options: [
393
+ 'Definitely',
394
+ 'Probably',
395
+ 'Maybe',
396
+ "Absolutely Can't Afford"
397
+ ]
398
+ });
399
+
400
+ const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
302
401
 
303
402
  const disabilityConditionStopWork = (scope) => sbsYesNoRadio({
304
403
  name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
@@ -310,11 +409,15 @@ const disabilityWorkHistory = (scope) => sbsYesNoRadio({
310
409
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
311
410
  });
312
411
 
313
- const doctorTreatment = (scope) => sbsYesNoRadio({
412
+ const doctorTreatment$1 = (scope) => sbsYesNoRadio({
314
413
  name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
315
414
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
316
415
  });
317
416
 
417
+ const doctorTreatmentCenter = () => verticalYesNoRadio({
418
+ name: 'Doctor_Treatment',
419
+ });
420
+
318
421
  const email = () => sbsText({
319
422
  $formkit: 'email',
320
423
  name: 'Email',
@@ -329,8 +432,7 @@ const email = () => sbsText({
329
432
  }
330
433
  });
331
434
 
332
- const employerType = () => sbsSelect({
333
- label: 'The Employer Is a:',
435
+ const employerTypeCenter = () => col2RadioCenter({
334
436
  name: 'Employer_Type',
335
437
  options: [
336
438
  "Sole proprietorship (mom and pop)",
@@ -343,15 +445,12 @@ const employerType = () => sbsSelect({
343
445
  ]
344
446
  });
345
447
 
346
- const employeeAtCompany = (scope) => sbsYesNoRadio({
448
+ const employeeAtCompanyCenter = (scope) => verticalYesNoRadio({
347
449
  name: scope ? scope + ':' + 'Employee_At_Company' : 'Employee_At_Company',
348
- label: 'Do you/they still work at the company?'
349
450
  });
350
451
 
351
- const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
452
+ const employmentAndWorkplaceTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
352
453
  name: 'Type_Of_Legal_Problem_Display',
353
- if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
354
- label: 'Select The Workplace Issue:',
355
454
  options: [
356
455
  'Workplace Harassment',
357
456
  'Workplace Discrimination',
@@ -388,21 +487,29 @@ const firstName = () => sbsText({
388
487
  }
389
488
  });
390
489
 
391
- const haveAttorney = (scope) => sbsYesNoRadio({
490
+ const haveAttorney$1 = (scope) => sbsYesNoRadio({
392
491
  name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
393
492
  label: 'Already Working with An Attorney?'
394
493
  });
395
494
 
495
+ const haveAttorneyCenter = () => verticalYesNoRadio({
496
+ name: 'Have_Attorney',
497
+ });
498
+
396
499
  const haveChildren = (scope) => sbsYesNoRadio({
397
500
  name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
398
501
  label: 'Do You Have Children?'
399
502
  });
400
503
 
401
- const incidentDate = (scope) => sbsDate({
504
+ const incidentDate$1 = (scope) => sbsDate({
402
505
  name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
403
506
  label: 'Date of Incident:',
404
507
  });
405
508
 
509
+ const incidentDateCenter = (scope) => verticalDate({
510
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
511
+ });
512
+
406
513
  const lastName = () => sbsText({
407
514
  $formkit: 'text',
408
515
  label: 'Last Name:',
@@ -512,9 +619,7 @@ const maritalStatus = (scope) => sbsSelect({
512
619
  ]
513
620
  });
514
621
 
515
-
516
- const numEmployeesOfBusiness = () => sbsSelect({
517
- label: 'Total Employees of Business? (estimated)',
622
+ const numEmployeesOfBusinessCenter = () => col2RadioCenter({
518
623
  name: 'Num_Employees_Of_Business',
519
624
  options: [
520
625
  "1-5",
@@ -550,7 +655,7 @@ const phone = () => sbsText({
550
655
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
551
656
  });
552
657
 
553
- const primaryInjury = (scope) => sbs2ColRadio({
658
+ const primaryInjury$1 = (scope) => sbs2ColRadio({
554
659
  name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
555
660
  label: 'Primary Injury:',
556
661
  options: [
@@ -561,7 +666,21 @@ const primaryInjury = (scope) => sbs2ColRadio({
561
666
  "Headaches",
562
667
  "Memory Loss",
563
668
  "Loss of Limb",
564
- "Other (describe on next page)"
669
+ "Not Sure or Other"
670
+ ]
671
+ });
672
+
673
+ const primaryInjuryCenter = (scope) => col2RadioCenter({
674
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
675
+ options: [
676
+ "Anxiety",
677
+ "Back or Neck Pain",
678
+ "Broken Bones",
679
+ "Cuts and Bruises",
680
+ "Headaches",
681
+ "Memory Loss",
682
+ "Loss of Limb",
683
+ "Not Sure or Other"
565
684
  ]
566
685
  });
567
686
 
@@ -575,6 +694,17 @@ const policeReportFiled = (scope) => sbsYesNoRadio({
575
694
  label: 'Was a Police Report Filed?'
576
695
  });
577
696
 
697
+ const relationshipToVictimCenter = () => col2RadioCenter({
698
+ name: 'Relationship_To_Victim',
699
+ options: [
700
+ "Parent",
701
+ "Spouse",
702
+ "Sibling",
703
+ "Friend",
704
+ "Other"
705
+ ]
706
+ });
707
+
578
708
  const roleInMatterProbate = (scope) => sbsSelect({
579
709
  name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
580
710
  label: "What Is Your Role in this Matter?",
@@ -646,9 +776,9 @@ const valueOfAssets = (scope) => sbsSelect({
646
776
  ]
647
777
  });
648
778
 
649
- const zipcode = () => sbsText({
650
- label: 'Zip Code:',
779
+ const zipcodeCenter = (updates = {}) => text({
651
780
  placeholder: '#####',
781
+ help: updates.help ?? "We try to match you with local legal help",
652
782
  name: 'Zip',
653
783
  maxlength: 5,
654
784
  inputmode: "numeric",
@@ -657,7 +787,11 @@ const zipcode = () => sbsText({
657
787
  validationMessages: {
658
788
  required: 'Zip Code is required',
659
789
  matches: 'Invalid Zip Code'
660
- }
790
+ },
791
+ wrapperClass: 't-flex t-justify-center',
792
+ messagesClass: 't-flex t-justify-center',
793
+ inputClass: 't-text-center',
794
+ helpClass: 't-mt-2.5 !t-text-sm t-text-center'
661
795
  });
662
796
 
663
797
 
@@ -681,11 +815,11 @@ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
681
815
  {
682
816
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
683
817
  children: [
684
- haveAttorney(scope),
685
- incidentDate(scope),
686
- atFault(scope),
687
- primaryInjury(scope),
688
- doctorTreatment(scope),
818
+ haveAttorney$1(scope),
819
+ incidentDate$1(scope),
820
+ atFault$1(scope),
821
+ primaryInjury$1(scope),
822
+ doctorTreatment$1(scope),
689
823
  policeReportFiled(scope)
690
824
  ]
691
825
  }
@@ -696,11 +830,11 @@ const ChildCustodyQuestions = (condition, scope) => group(
696
830
  {
697
831
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
698
832
  children: [
699
- haveAttorney(scope),
833
+ haveAttorney$1(scope),
700
834
  childRelationship(scope),
701
835
  childHome(scope),
702
836
  childPrimaryCaregiver(scope),
703
- degreeOfInterest(scope),
837
+ degreeOfInterest$1(scope),
704
838
  lawyerPaymentMethod(scope)
705
839
  ]
706
840
  }
@@ -711,10 +845,10 @@ const DivorceQuestions = (condition, scope) => group(
711
845
  {
712
846
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
713
847
  children: [
714
- haveAttorney(scope),
848
+ haveAttorney$1(scope),
715
849
  maritalStatus(scope),
716
850
  haveChildren(scope),
717
- degreeOfInterest(scope),
851
+ degreeOfInterest$1(scope),
718
852
  lawyerPaymentMethod(scope)
719
853
  ]
720
854
  }
@@ -725,8 +859,8 @@ const DUIAndDWIQuestions = (condition, scope) => group(
725
859
  {
726
860
  if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
727
861
  children: [
728
- haveAttorney(scope),
729
- incidentDate(scope),
862
+ haveAttorney$1(scope),
863
+ incidentDate$1(scope),
730
864
  priorAlcoholOffenses(scope),
731
865
  typeOfAlcoholTest(scope),
732
866
  bloodContentAlcoholTest(scope),
@@ -736,59 +870,17 @@ const DUIAndDWIQuestions = (condition, scope) => group(
736
870
  }
737
871
  );
738
872
 
739
- const EmploymentAndWorkplaceQuestions = () => group(
740
- 'EmploymentAndWorkplaceQuestions',
741
- {
742
- if: '$get(Type_Of_Legal_Problem).value == "Employment and Workplace"',
743
- children: [
744
- haveAttorney(),
745
- numEmployeesOfBusiness(),
746
- employerType(),
747
- employeeAtCompany(),
748
- degreeOfInterestHelp()
749
- ]
750
- }
751
- );
752
-
753
- const WorkplaceHarassmentQuestions = () => group(
754
- 'WorkplaceHarassmentQuestions',
755
- {
756
- if: '$get(Type_Of_Legal_Problem).value == "Workplace Harassment"',
757
- children: [
758
- haveAttorney(),
759
- numEmployeesOfBusiness(),
760
- employerType(),
761
- employeeAtCompany(),
762
- degreeOfInterestHelp()
763
- ]
764
- }
765
- );
766
-
767
- const WorkplaceDiscriminationQuestions = () => group(
768
- 'WorkplaceDiscriminationQuestions',
769
- {
770
- if: '$get(Type_Of_Legal_Problem).value == "Workplace Discrimination"',
771
- children: [
772
- haveAttorney(),
773
- numEmployeesOfBusiness(),
774
- employerType(),
775
- employeeAtCompany(),
776
- degreeOfInterestHelp()
777
- ]
778
- }
779
- );
780
-
781
873
  const PersonalInjuryQuestions = (condition, scope) => group(
782
874
  'PersonalInjuryQuestions',
783
875
  {
784
876
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
785
877
  children: [
786
- haveAttorney(scope),
787
- incidentDate(scope),
788
- claimStatus(scope),
789
- atFault(scope),
790
- primaryInjury(scope),
791
- doctorTreatment(scope)
878
+ haveAttorney$1(scope),
879
+ incidentDate$1(scope),
880
+ claimStatus$1(scope),
881
+ atFault$1(scope),
882
+ primaryInjury$1(scope),
883
+ doctorTreatment$1(scope)
792
884
  ]
793
885
  }
794
886
  );
@@ -798,7 +890,7 @@ const PowerofAttorneyQuestions = (condition, scope) => group(
798
890
  {
799
891
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
800
892
  children: [
801
- haveAttorney(scope),
893
+ haveAttorney$1(scope),
802
894
  degreeOfInterestHelp(scope)
803
895
  ]
804
896
  }
@@ -809,24 +901,12 @@ const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => grou
809
901
  {
810
902
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
811
903
  children: [
812
- haveAttorney(scope),
904
+ haveAttorney$1(scope),
813
905
  applicantAge(scope),
814
906
  disabilityConditionStopWork(scope),
815
907
  disabilityWorkHistory(scope),
816
908
  socialSecurityDisabilityReceivingBenefits(scope),
817
- doctorTreatment(scope)
818
- ]
819
- }
820
- );
821
-
822
- const UnemploymentQuestions = () => group(
823
- 'UnemploymentQuestions',
824
- {
825
- if: '$get(Type_Of_Legal_Problem).value == "Unemployment"',
826
- children: [
827
- numEmployeesOfBusiness(),
828
- employerType(),
829
- degreeOfInterestHelp()
909
+ doctorTreatment$1(scope)
830
910
  ]
831
911
  }
832
912
  );
@@ -836,7 +916,7 @@ const WillsAndTrustsQuestions = (condition, scope) => group(
836
916
  {
837
917
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
838
918
  children: [
839
- haveAttorney(scope),
919
+ haveAttorney$1(scope),
840
920
  valueOfAssets(scope),
841
921
  typeOfAssets(scope),
842
922
  roleInMatterProbate(scope),
@@ -851,36 +931,12 @@ const WorkersCompensationQuestions = (condition, scope) => group(
851
931
  {
852
932
  if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
853
933
  children: [
854
- haveAttorney(scope),
855
- incidentDate(scope),
856
- claimStatus(scope),
857
- primaryInjury(scope),
858
- causeOfInjury(scope),
859
- doctorTreatment(scope)
860
- ]
861
- }
862
- );
863
-
864
- const WrongfulTerminationQuestions = () => group(
865
- 'WrongfulTerminationQuestions',
866
- {
867
- if: '$get(Type_Of_Legal_Problem).value == "Wrongful Termination"',
868
- children: [
869
- haveAttorney(),
870
- numEmployeesOfBusiness(),
871
- employerType(),
872
- degreeOfInterestHelp()
873
- ]
874
- }
875
- );
876
-
877
- const NotSureOrOtherQuestions = () => group(
878
- 'NotSureOrOtherQuestions',
879
- {
880
- if: '$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',
881
- children: [
882
- haveAttorney(),
883
- degreeOfInterestHelp()
934
+ haveAttorney$1(scope),
935
+ incidentDate$1(scope),
936
+ claimStatus$1(scope),
937
+ primaryInjury$1(scope),
938
+ causeOfInjury$1(scope),
939
+ doctorTreatment$1(scope)
884
940
  ]
885
941
  }
886
942
  );
@@ -947,7 +1003,7 @@ function secureIcon(updates) {
947
1003
  )
948
1004
  }
949
1005
 
950
- function questionsStepHeadline(updates) {
1006
+ function crossSellQuestionsStepHeadline(updates) {
951
1007
  return {
952
1008
  $el: 'h3',
953
1009
  children: updates.headline || 'Tell Us About Your Situation',
@@ -957,22 +1013,32 @@ function questionsStepHeadline(updates) {
957
1013
  }
958
1014
  }
959
1015
 
960
- function crossSellQuestionsStepHeadline(updates) {
1016
+ function crossSellQuestionsStepSubHeadline(updates) {
1017
+ return {
1018
+ $el: 'h5',
1019
+ children: updates.subheadline || 'Tell us about your situation:',
1020
+ attrs: {
1021
+ class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
1022
+ }
1023
+ }
1024
+ }
1025
+
1026
+ function verticalStepHeadline(updates) {
961
1027
  return {
962
1028
  $el: 'h3',
963
1029
  children: updates.headline || 'Tell Us About Your Situation',
964
1030
  attrs: {
965
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1'
1031
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
966
1032
  }
967
1033
  }
968
1034
  }
969
1035
 
970
- function crossSellQuestionsStepSubHeadline(updates) {
1036
+ function verticalStepSubHeadline(updates) {
971
1037
  return {
972
1038
  $el: 'h5',
973
- children: updates.subheadline || 'Tell us about your situation:',
1039
+ children: updates.subheadline || '',
974
1040
  attrs: {
975
- class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
1041
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.subheadlineClass || '')
976
1042
  }
977
1043
  }
978
1044
  }
@@ -1091,6 +1157,21 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
1091
1157
  )
1092
1158
  }
1093
1159
 
1160
+ // Single question step
1161
+ function sqstep(name, input, defaultHeadline, updates = {}) {
1162
+ return step(
1163
+ name,
1164
+ [
1165
+ verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
1166
+ ...Array.isArray(input) ? input : [input],
1167
+ ],
1168
+ updates.nextOnEnter,
1169
+ typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
1170
+ updates.stepKey,
1171
+ updates.nextStepMap
1172
+ )
1173
+ }
1174
+
1094
1175
  function commentsWithBankruptcy(updates = {}) {
1095
1176
  return step(
1096
1177
  'commentsWithBankruptcy',
@@ -1134,11 +1215,18 @@ function contactInfo(updates = {}) {
1134
1215
  )
1135
1216
  }
1136
1217
 
1137
- function firstAndLastV2(updates = {}) {
1218
+ function firstAndLastV3(updates = {}) {
1138
1219
  return step(
1139
1220
  'firstAndLast',
1140
1221
  [
1141
- firstAndLastStepHeadline(updates),
1222
+ firstAndLastStepHeadline({
1223
+ headline: updates.headline ?? 'Who is looking for help?',
1224
+ headlineClass: updates.headlineClass
1225
+ }),
1226
+ verticalStepSubHeadline({
1227
+ subheadline: updates.subheadline ?? 'Note: we never share info without consent',
1228
+ subheadlineClass: '!t-text-sm !t-text-gray-500'
1229
+ }),
1142
1230
  firstName(),
1143
1231
  lastName()
1144
1232
  ],
@@ -1322,9 +1410,9 @@ function workersCompensationCrossSellQuestions(updates = {}) {
1322
1410
  )
1323
1411
  }
1324
1412
 
1325
- function employmentAndWorkplaceTOLPAndZip(updates = {}) {
1413
+ function employmentAndWorkplaceTOLP(updates = {}) {
1326
1414
  return step(
1327
- 'employmentAndWorkplaceTOLPAndZip',
1415
+ 'employmentAndWorkplaceTOLP',
1328
1416
  [
1329
1417
  {
1330
1418
  $formkit: 'hidden',
@@ -1332,10 +1420,7 @@ function employmentAndWorkplaceTOLPAndZip(updates = {}) {
1332
1420
  id: "Type_Of_Legal_Problem",
1333
1421
  value: "Employment and Workplace"
1334
1422
  },
1335
- employmentAndWorkplaceTOLPDisplay({
1336
- if: 'true'
1337
- }),
1338
- zipcode()
1423
+ employmentAndWorkplaceTOLPDisplayCenter(),
1339
1424
  ],
1340
1425
  updates.nextOnEnter,
1341
1426
  updates.nextOnInput,
@@ -1344,24 +1429,6 @@ function employmentAndWorkplaceTOLPAndZip(updates = {}) {
1344
1429
  )
1345
1430
  }
1346
1431
 
1347
- function employmentAndWorkplaceTOLPQuestions(updates = {}) {
1348
- return step(
1349
- 'TOLPQuestions',
1350
- [
1351
- questionsStepHeadline(updates),
1352
- WorkplaceHarassmentQuestions(),
1353
- WorkplaceDiscriminationQuestions(),
1354
- WrongfulTerminationQuestions(),
1355
- WorkersCompensationQuestions(),
1356
- PersonalInjuryQuestions(),
1357
- UnemploymentQuestions(),
1358
- EmploymentAndWorkplaceQuestions(),
1359
- NotSureOrOtherQuestions()
1360
- ],
1361
- updates.nextOnEnter
1362
- )
1363
- }
1364
-
1365
1432
  function legalCrossSells(updates = {}) {
1366
1433
  return step(
1367
1434
  'legalCrossSells',
@@ -1376,6 +1443,141 @@ function legalCrossSells(updates = {}) {
1376
1443
  )
1377
1444
  }
1378
1445
 
1446
+ function zipcode(updates = {}) {
1447
+ return sqstep(
1448
+ 'zipcode',
1449
+ zipcodeCenter(updates),
1450
+ 'Please verify your Zip Code',
1451
+ updates
1452
+ )
1453
+ }
1454
+
1455
+ function haveAttorney(updates = {}) {
1456
+ return sqstep(
1457
+ 'haveAttorney',
1458
+ haveAttorneyCenter(),
1459
+ 'Already working with an attorney?',
1460
+ updates
1461
+ )
1462
+ }
1463
+
1464
+ function degreeOfInterest(updates = {}) {
1465
+ return sqstep(
1466
+ 'degreeOfInterest',
1467
+ degreeOfInterestCenter(),
1468
+ 'Could you pay if your issue could be resolved?',
1469
+ updates
1470
+ )
1471
+ }
1472
+
1473
+ function incidentDate(updates = {}) {
1474
+ return sqstep(
1475
+ 'incidentDate',
1476
+ incidentDateCenter(),
1477
+ 'When did the incident occur?',
1478
+ updates
1479
+ )
1480
+ }
1481
+
1482
+ function doctorTreatment(updates = {}) {
1483
+ return sqstep(
1484
+ 'doctorTreatment',
1485
+ doctorTreatmentCenter(),
1486
+ 'Have you seen a doctor about this?',
1487
+ updates
1488
+ )
1489
+ }
1490
+
1491
+ function atFault(updates = {}) {
1492
+ return sqstep(
1493
+ 'atFault',
1494
+ atFaultCenter(),
1495
+ 'Were you at fault?',
1496
+ updates
1497
+ )
1498
+ }
1499
+
1500
+ function primaryInjury(updates = {}) {
1501
+ return sqstep(
1502
+ 'primaryInjury',
1503
+ primaryInjuryCenter(),
1504
+ 'What was the primary injury?',
1505
+ updates
1506
+ )
1507
+ }
1508
+
1509
+ function employerType(updates = {}) {
1510
+ return sqstep(
1511
+ 'employerType',
1512
+ employerTypeCenter(),
1513
+ 'What type of employer is it?',
1514
+ updates
1515
+ )
1516
+ }
1517
+
1518
+ function employeeAtCompany(updates = {}) {
1519
+ return sqstep(
1520
+ 'employeeAtCompany',
1521
+ employeeAtCompanyCenter(),
1522
+ 'Do you/they still work at the company?',
1523
+ updates
1524
+ )
1525
+ }
1526
+
1527
+ function numEmployeesOfBusiness(updates = {}) {
1528
+ return sqstep(
1529
+ 'numEmployeesOfBusiness',
1530
+ numEmployeesOfBusinessCenter(),
1531
+ 'How many employees does the business have?',
1532
+ updates
1533
+ )
1534
+ }
1535
+
1536
+ function claimStatus(updates = {}) {
1537
+ return sqstep(
1538
+ 'claimStatus',
1539
+ claimStatusCenter(),
1540
+ 'What is the status of the claim?',
1541
+ updates
1542
+ )
1543
+ }
1544
+
1545
+ function causeOfInjury(updates = {}) {
1546
+ return sqstep(
1547
+ 'causeOfInjury',
1548
+ causeOfInjuryCenter(),
1549
+ 'What was the cause of the injury?',
1550
+ updates
1551
+ )
1552
+ }
1553
+
1554
+ function causeOfDeath(updates = {}) {
1555
+ return sqstep(
1556
+ 'causeOfDeath',
1557
+ causeOfDeathCenter(),
1558
+ 'What was the cause of death?',
1559
+ updates
1560
+ )
1561
+ }
1562
+
1563
+ function relationshipToVictim(updates = {}) {
1564
+ return sqstep(
1565
+ 'relationshipToVictim',
1566
+ relationshipToVictimCenter(),
1567
+ 'What is your relationship to the victim?',
1568
+ updates
1569
+ )
1570
+ }
1571
+
1572
+ function criminalChargesFiled(updates = {}) {
1573
+ return sqstep(
1574
+ 'criminalChargesFiled',
1575
+ criminalChargesFiledCenter(),
1576
+ 'Have criminal charges been filed?',
1577
+ updates
1578
+ )
1579
+ }
1580
+
1379
1581
  // ------ Common
1380
1582
 
1381
1583
  const formNavigation = () => ({
@@ -1564,6 +1766,62 @@ function formAnchor(updates) {
1564
1766
  )
1565
1767
  }
1566
1768
 
1769
+ const progressBarDefaults = {
1770
+ $el: 'div',
1771
+ attrs: {
1772
+ class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
1773
+ style: {
1774
+ if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
1775
+ then: 'display: none'
1776
+ },
1777
+ },
1778
+ children: [
1779
+ {
1780
+ $el: 'div',
1781
+ attrs: {
1782
+ class: 't-flex t-justify-center'
1783
+ },
1784
+ children: [
1785
+ {
1786
+ $el: 'span',
1787
+ attrs: {
1788
+ id: 'progress-bar-text',
1789
+ class: 't-text-sm t-mb-1'
1790
+ },
1791
+ children: [
1792
+ "0% Complete"
1793
+ ]
1794
+ },
1795
+ ]
1796
+ },
1797
+ {
1798
+ $el: 'div',
1799
+ attrs: {
1800
+ class: 't-bg-gray-100 t-w-9/12 t-rounded'
1801
+ },
1802
+ children: [
1803
+ {
1804
+ $el: 'div',
1805
+ attrs: {
1806
+ id: 'progress-bar',
1807
+ class: 't-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]',
1808
+ style: {
1809
+ transition: 'width 0.5s ease'
1810
+ },
1811
+ },
1812
+ }
1813
+ ]
1814
+ }
1815
+ ]
1816
+ };
1817
+
1818
+ function progressBar(updates) {
1819
+ return merge(
1820
+ progressBarDefaults,
1821
+ updates
1822
+ )
1823
+ }
1824
+
1567
1825
  function headlineDefaults(updates = {}) {
1568
1826
  return {
1569
1827
  $el: 'h1',
@@ -1603,13 +1861,6 @@ function subHeadline(updates = {}) {
1603
1861
  )
1604
1862
  }
1605
1863
 
1606
- function defaultSubHeadline() {
1607
- return subHeadline({
1608
- children: '$urlParam("shl", "Our Service is Fast and Free!")',
1609
- if: '$activeStep === $firstStep()'
1610
- })
1611
- }
1612
-
1613
1864
  const hiddenInputsBase = [
1614
1865
  {
1615
1866
  $formkit: 'hidden',
@@ -1663,6 +1914,32 @@ const legalAllValueOverrideMap = {
1663
1914
  'Type_Of_Legal_Problem': 'File a Lawsuit'
1664
1915
  }
1665
1916
  },
1917
+ 'Business_Services_Display': {
1918
+ "Business Formation": {
1919
+ 'Business_Services': 'Business Formation'
1920
+ },
1921
+ "Contracts": {
1922
+ 'Business_Services': 'Contracts'
1923
+ },
1924
+ "Insurance and Liability": {
1925
+ 'Business_Services': 'Insurance and Liability'
1926
+ },
1927
+ "Mergers and Acquisition": {
1928
+ 'Business_Services': 'Mergers and Acquisition'
1929
+ },
1930
+ "Regulatory Compliance": {
1931
+ 'Business_Services': 'Regulatory Compliance'
1932
+ },
1933
+ "Employee Dispute": {
1934
+ 'Business_Services': 'Employee Dispute'
1935
+ },
1936
+ "Advice and Consulting": {
1937
+ 'Business_Services': 'Other',
1938
+ },
1939
+ "Other": {
1940
+ 'Business_Services': 'Other'
1941
+ }
1942
+ },
1666
1943
  'Type_Of_Legal_Problem_Display': {
1667
1944
  // Accidents and PI
1668
1945
  'Auto Accident': {
@@ -1953,23 +2230,370 @@ const TOLPFinalSubHeadlines = {
1953
2230
  // 'Non-Workplace Discrimination': '',
1954
2231
  };
1955
2232
 
2233
+ const nextStepsLegalDefault = [
2234
+ 'haveAttorney',
2235
+ 'degreeOfInterest',
2236
+ 'commentsWithBankruptcy',
2237
+ 'zipcode',
2238
+ 'legalCrossSells',
2239
+ 'firstAndLast',
2240
+ 'contactInfo',
2241
+ ];
2242
+
2243
+ const nextStepsLegalDefaultLPM = [
2244
+ 'haveAttorney',
2245
+ 'degreeOfInterest',
2246
+ 'lawyerPaymentMethod',
2247
+ 'commentsWithBankruptcy',
2248
+ 'zipcode',
2249
+ 'legalCrossSells',
2250
+ 'firstAndLast',
2251
+ 'contactInfo',
2252
+ ];
2253
+
2254
+ const nextStepsLegalNoDOI = [
2255
+ 'haveAttorney',
2256
+ 'commentsWithBankruptcy',
2257
+ 'zipcode',
2258
+ 'legalCrossSells',
2259
+ 'firstAndLast',
2260
+ 'contactInfo',
2261
+ ];
2262
+
2263
+ const nextStepsLegalNoHA = [
2264
+ 'degreeOfInterest',
2265
+ 'commentsWithBankruptcy',
2266
+ 'zipcode',
2267
+ 'legalCrossSells',
2268
+ 'firstAndLast',
2269
+ 'contactInfo',
2270
+ ];
2271
+
2272
+ const nextStepsMapGeneralLegal = {
2273
+ 'Type_Of_Legal_Problem': {
2274
+ 'Adoption': [
2275
+ 'maritalStatus',
2276
+ 'haveChildren',
2277
+ ...nextStepsLegalDefaultLPM
2278
+ ],
2279
+ 'Asbestos and Mesothelioma': [
2280
+ 'incidentDate',
2281
+ 'doctorTreatment',
2282
+ ...nextStepsLegalDefault
2283
+ ],
2284
+ 'Auto and Car Accidents': [
2285
+ 'incidentDate',
2286
+ 'atFault',
2287
+ 'primaryInjury',
2288
+ 'doctorTreatment',
2289
+ 'policeReportFiled',
2290
+ ...nextStepsLegalNoDOI
2291
+ ],
2292
+ 'Bankruptcy': [
2293
+ 'totalMonthlyIncome',
2294
+ 'totalDebt',
2295
+ 'ownRealEstate',
2296
+ 'valueOfAssets',
2297
+ ...nextStepsLegalDefault
2298
+ ],
2299
+ 'Business Lawyers': [
2300
+ 'businessServices',
2301
+ 'businessType',
2302
+ 'numEmployeesOfBusiness',
2303
+ ...nextStepsLegalDefault
2304
+ ],
2305
+ 'Child Custody': [
2306
+ 'childRelationship',
2307
+ 'childHome',
2308
+ 'childPrimaryCaregiver',
2309
+ ...nextStepsLegalDefaultLPM
2310
+ ],
2311
+ 'Child Support': [
2312
+ 'childRelationship',
2313
+ 'childHome',
2314
+ 'childPrimaryCaregiver',
2315
+ ...nextStepsLegalDefaultLPM
2316
+ ],
2317
+ 'Civil Rights and Discrimination': [
2318
+ 'civilRightsType',
2319
+ ...nextStepsLegalDefault
2320
+ ],
2321
+ 'Civil Lawsuit': [
2322
+ 'civilDefense',
2323
+ 'lawsuitOtherParty',
2324
+ ...nextStepsLegalDefault
2325
+ ],
2326
+ 'File a Lawsuit': [
2327
+ 'civilLawsuitTOLPDisplay',
2328
+ 'lawsuitOtherParty',
2329
+ ...nextStepsLegalDefault
2330
+ ],
2331
+ 'Defend a Lawsuit': [
2332
+ 'lawsuitOtherParty',
2333
+ ...nextStepsLegalDefault
2334
+ ],
2335
+ 'Consumer Lawyers': [
2336
+ 'consumerLawyerType',
2337
+ 'incidentDate',
2338
+ 'lawsuitOtherParty',
2339
+ ...nextStepsLegalDefault
2340
+ ],
2341
+ 'Criminal and Felony': [
2342
+ 'criminalTOLPDisplay',
2343
+ 'crimeCommittedDate',
2344
+ 'roleInMatterCriminal',
2345
+ 'pendingCharges',
2346
+ ...nextStepsLegalDefaultLPM
2347
+ ],
2348
+ 'Debt and Collections': [
2349
+ 'totalMonthlyIncome',
2350
+ 'totalDebt',
2351
+ 'ownRealEstate',
2352
+ 'valueOfAssets',
2353
+ ...nextStepsLegalDefault
2354
+ ],
2355
+ 'Divorce and Separation': [
2356
+ 'maritalStatus',
2357
+ 'haveChildren',
2358
+ ...nextStepsLegalDefaultLPM
2359
+ ],
2360
+ 'DUI and DWI': [
2361
+ 'incidentDate',
2362
+ 'priorAlcoholOffenses',
2363
+ 'typeOfAlcoholTest',
2364
+ 'bloodContentAlcoholTest',
2365
+ 'pendingCharges',
2366
+ ...nextStepsLegalDefault
2367
+ ],
2368
+ 'Employment and Workplace': [
2369
+ 'employmentAndWorkplaceTOLPDisplay',
2370
+ 'numEmployeesOfBusiness',
2371
+ 'employerType',
2372
+ 'employeeAtCompany',
2373
+ ...nextStepsLegalDefault
2374
+ ],
2375
+ 'Expungement': [
2376
+ 'incidentDate',
2377
+ 'criminalChargeType',
2378
+ ...nextStepsLegalDefaultLPM
2379
+ ],
2380
+ 'Family Issues': [
2381
+ 'maritalStatus',
2382
+ 'haveChildren',
2383
+ ...nextStepsLegalDefaultLPM
2384
+ ],
2385
+ 'Foreclosure': [
2386
+ 'ownRealEstate',
2387
+ 'typeOfProperty',
2388
+ 'amountPaymentsPastDue',
2389
+ 'loanAmount',
2390
+ 'defaultNotice',
2391
+ ...nextStepsLegalDefault
2392
+ ],
2393
+ 'Guardianship': [
2394
+ 'maritalStatus',
2395
+ 'haveChildren',
2396
+ ...nextStepsLegalDefaultLPM
2397
+ ],
2398
+ 'Immigration and Visas': [
2399
+ 'countryOfCitizenship',
2400
+ 'immigrationLocation',
2401
+ 'immigrationEntry',
2402
+ 'immigrationType',
2403
+ 'immigrationStatus',
2404
+ 'immigrationDetails',
2405
+ ...nextStepsLegalDefault
2406
+ ],
2407
+ 'Landlord and Tenant': [
2408
+ 'landlordTenantIssue',
2409
+ 'landlordTenantParty',
2410
+ ...nextStepsLegalDefault
2411
+ ],
2412
+ 'Lemon Law': [
2413
+ 'incidentDate',
2414
+ 'lawsuitOtherParty',
2415
+ ...nextStepsLegalDefault
2416
+ ],
2417
+ 'Long Term Disability': [
2418
+ 'applicantOccupation',
2419
+ 'applicantAge',
2420
+ 'applicantLTDisabilityPolicy',
2421
+ 'applicantDisabilityHowObtain',
2422
+ 'applicantPreviouslyAppliedLtdBenefits',
2423
+ 'applicantReceivedDisabilityBenefits',
2424
+ 'applicantMonthlySalary',
2425
+ ...nextStepsLegalNoDOI
2426
+ ],
2427
+ 'Medical Malpractice': [
2428
+ 'incidentDate',
2429
+ 'claimStatus',
2430
+ 'doctorTreatment',
2431
+ 'medicalMalpracticeInjuries',
2432
+ ...nextStepsLegalDefault
2433
+ ],
2434
+ 'Patents and Intellectual Property': [
2435
+ 'patentAssistanceType',
2436
+ 'patentFor',
2437
+ ...nextStepsLegalDefault
2438
+ ],
2439
+ 'Personal Injury': [
2440
+ 'incidentDate',
2441
+ 'claimStatus',
2442
+ 'atFault',
2443
+ 'primaryInjury',
2444
+ 'doctorTreatment',
2445
+ ...nextStepsLegalNoDOI
2446
+ ],
2447
+ 'Probate and Estates': [
2448
+ 'valueOfAssets',
2449
+ 'typeOfAssets',
2450
+ 'roleInMatterProbate',
2451
+ 'estateLegalServicesNeeded',
2452
+ ...nextStepsLegalDefault
2453
+ ],
2454
+ 'Property Damage': [
2455
+ 'realEstateArea',
2456
+ 'wouldLikeLawyerTo',
2457
+ ...nextStepsLegalDefault
2458
+ ],
2459
+ 'Real Estate': [
2460
+ 'realEstateTOLPDisplay',
2461
+ 'realEstateArea',
2462
+ 'wouldLikeLawyerTo',
2463
+ ...nextStepsLegalDefault
2464
+ ],
2465
+ 'Social Security Disability and Insurance': [
2466
+ 'applicantAge',
2467
+ 'disabilityConditionStopWork',
2468
+ 'disabilityWorkHistory',
2469
+ 'socialSecurityDisabilityReceivingBenefits',
2470
+ 'doctorTreatment',
2471
+ ...nextStepsLegalNoDOI
2472
+ ],
2473
+ 'Tax and IRS': [
2474
+ 'totalDebt',
2475
+ 'taxProblemDetails',
2476
+ 'taxLevel',
2477
+ 'taxIssueType',
2478
+ ...nextStepsLegalDefault
2479
+ ],
2480
+ 'Traffic and Tickets': [
2481
+ 'driversLicenseType',
2482
+ 'trafficViolations',
2483
+ 'haveCourtDate',
2484
+ ...nextStepsLegalDefault
2485
+ ],
2486
+ 'Unemployment': [
2487
+ 'numEmployeesOfBusiness',
2488
+ 'employerType',
2489
+ ...nextStepsLegalNoHA
2490
+ ],
2491
+ 'Victim of a Crime': [
2492
+ 'crimeCommittedDate',
2493
+ 'roleInMatterCriminal',
2494
+ 'pendingCharges',
2495
+ ...nextStepsLegalDefaultLPM
2496
+ ],
2497
+ 'Wills and Trusts': [
2498
+ 'valueOfAssets',
2499
+ 'typeOfAssets',
2500
+ 'roleInMatterProbate',
2501
+ 'estateLegalServicesNeeded',
2502
+ ...nextStepsLegalDefault
2503
+ ],
2504
+ 'Workers Compensation': [
2505
+ 'incidentDate',
2506
+ 'claimStatus',
2507
+ 'primaryInjury',
2508
+ 'causeOfInjury',
2509
+ 'doctorTreatment',
2510
+ ...nextStepsLegalNoDOI
2511
+ ],
2512
+ 'Workplace Harassment': [
2513
+ 'numEmployeesOfBusiness',
2514
+ 'employerType',
2515
+ 'employeeAtCompany',
2516
+ ...nextStepsLegalDefault
2517
+ ],
2518
+ 'Workplace Discrimination': [
2519
+ 'numEmployeesOfBusiness',
2520
+ 'employerType',
2521
+ 'employeeAtCompany',
2522
+ ...nextStepsLegalDefault
2523
+ ],
2524
+ 'Wrongful Death': [
2525
+ 'incidentDate',
2526
+ 'relationshipToVictim',
2527
+ 'criminalChargesFiled',
2528
+ 'causeOfDeath',
2529
+ ...nextStepsLegalNoDOI
2530
+ ],
2531
+ 'Wrongful Termination': [
2532
+ 'numEmployeesOfBusiness',
2533
+ 'employerType',
2534
+ ...nextStepsLegalDefault
2535
+ ],
2536
+ },
2537
+ '*': nextStepsLegalDefault
2538
+ };
2539
+
2540
+ // function filterMapByKey(obj, keyList) {
2541
+ // return Object.fromEntries(
2542
+ // Object.entries(obj).filter(([key]) => keyList.includes(key))
2543
+ // );
2544
+ // }
1956
2545
 
1957
- const nextStepsMapLegalLegacy = {
2546
+ // export function filteredNextStepsMapLegal(keyList) {
2547
+ // const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
2548
+ // res["*"] = nextStepsMapGeneralLegal["*"]
2549
+ // return res
2550
+ // }
2551
+
2552
+ const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
2553
+
2554
+ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
2555
+ 'Type_Of_Legal_Problem_Display': {
2556
+ 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
2557
+ 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
2558
+ 'Personal Injury': TOLPNextSteps["Personal Injury"],
2559
+ 'Unemployment': TOLPNextSteps["Unemployment"],
2560
+ },
1958
2561
  '*': [
1959
- 'TOLPQuestions',
1960
- 'commentsWithBankruptcy',
1961
- 'legalCrossSells',
1962
- 'firstAndLast',
1963
- 'contactInfo',
2562
+ 'numEmployeesOfBusiness',
2563
+ 'employerType',
2564
+ 'employeeAtCompany',
2565
+ ...nextStepsLegalDefault
1964
2566
  ]
1965
2567
  };
1966
2568
 
1967
2569
  const meta = defaultMetaProps();
1968
2570
 
1969
2571
  meta.data.dynamicSchema = [
1970
- employmentAndWorkplaceTOLPQuestions(),
1971
- commentsWithBankruptcy(),
1972
- legalCrossSells(),
2572
+ atFault(),
2573
+ causeOfDeath(),
2574
+ causeOfInjury(),
2575
+ claimStatus(),
2576
+ criminalChargesFiled(),
2577
+ degreeOfInterest(),
2578
+ doctorTreatment(),
2579
+ employerType(),
2580
+ employeeAtCompany(),
2581
+ haveAttorney(),
2582
+ incidentDate({
2583
+ nextOnInput: false
2584
+ }),
2585
+ numEmployeesOfBusiness(),
2586
+ primaryInjury(),
2587
+ relationshipToVictim(),
2588
+ zipcode(),
2589
+ commentsWithBankruptcy({
2590
+ label: null,
2591
+ headline: 'Please briefly describe your situation:',
2592
+ headlineClass: '!t-text-dark',
2593
+ }),
2594
+ legalCrossSells({
2595
+ headlineClass: '!t-text-dark'
2596
+ }),
1973
2597
  autoAndCarAccidentCrossSellQuestions(),
1974
2598
  personalInjuryCrossSellQuestions(),
1975
2599
  workersCompensationCrossSellQuestions(),
@@ -1979,7 +2603,9 @@ meta.data.dynamicSchema = [
1979
2603
  willsAndTrustsCrossSellQuestions(),
1980
2604
  divorceAndSeparationCrossSellQuestions(),
1981
2605
  childCustodyCrossSellQuestions(),
1982
- firstAndLastV2(),
2606
+ firstAndLastV3({
2607
+ headlineClass: '!t-text-dark'
2608
+ }),
1983
2609
  ];
1984
2610
 
1985
2611
  const schema = [
@@ -1993,8 +2619,12 @@ const schema = [
1993
2619
  valueOverrideMap: legalAllValueOverrideMap
1994
2620
  }),
1995
2621
  children: [
2622
+ progressBar(),
1996
2623
  defaultHeadline(),
1997
- defaultSubHeadline(),
2624
+ subHeadline({
2625
+ children: '$urlParam("shl", "Select a Category Below to Get Started!")',
2626
+ if: '$activeStep === $firstStep()',
2627
+ }),
1998
2628
  ...hiddenInputsLegal,
1999
2629
  {
2000
2630
  $el: 'div',
@@ -2002,8 +2632,9 @@ const schema = [
2002
2632
  class: 'form-body'
2003
2633
  },
2004
2634
  children: [
2005
- employmentAndWorkplaceTOLPAndZip({
2006
- nextStepMap: nextStepsMapLegalLegacy
2635
+ employmentAndWorkplaceTOLP({
2636
+ nextOnInput: false,
2637
+ nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
2007
2638
  }),
2008
2639
  dynamicSchemaNode,
2009
2640
  contactInfo(),