bhl-forms 0.2.9 → 0.3.2

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 +1020 -593
  2. package/dist/bhl-forms.iife.js +7 -7
  3. package/dist/bhl-forms.modern.es.js +3160 -2662
  4. package/dist/bhl-forms.modern.iife.js +10 -10
  5. package/dist/bhl-forms.modern.umd.js +10 -10
  6. package/dist/bhl-forms.umd.js +7 -7
  7. package/dist/forms/accidentsAndInjuries.es.js +49 -113
  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 -7
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/appraisals.json +1 -1
  13. package/dist/forms/childAndFamily.es.js +49 -113
  14. package/dist/forms/childAndFamily.iife.js +1 -1
  15. package/dist/forms/childAndFamily.json +1 -1
  16. package/dist/forms/civilLawsuit.es.js +51 -114
  17. package/dist/forms/civilLawsuit.iife.js +1 -1
  18. package/dist/forms/civilLawsuit.json +1 -1
  19. package/dist/forms/coins.es.js +3 -7
  20. package/dist/forms/coins.iife.js +1 -1
  21. package/dist/forms/coins.json +1 -1
  22. package/dist/forms/contracts.es.js +14 -78
  23. package/dist/forms/contracts.iife.js +1 -1
  24. package/dist/forms/contracts.json +1 -1
  25. package/dist/forms/criminal.es.js +180 -380
  26. package/dist/forms/criminal.iife.js +1 -1
  27. package/dist/forms/criminal.json +1 -1
  28. package/dist/forms/employmentAndWorkplace.es.js +43 -107
  29. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  30. package/dist/forms/employmentAndWorkplace.json +1 -1
  31. package/dist/forms/generalLegal.es.js +191 -477
  32. package/dist/forms/generalLegal.iife.js +1 -1
  33. package/dist/forms/generalLegal.json +1 -1
  34. package/dist/forms/generalLegalPopUnder.es.js +188 -390
  35. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  36. package/dist/forms/generalLegalPopUnder.json +1 -1
  37. package/dist/forms/generalLegalPopUnderTF.es.js +180 -383
  38. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  39. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  40. package/dist/forms/generalLegalThankYou.es.js +180 -383
  41. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  42. package/dist/forms/generalLegalThankYou.json +1 -1
  43. package/dist/forms/harassmentAndDiscrimination.es.js +14 -78
  44. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  45. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  46. package/dist/forms/malpractice.es.js +21 -85
  47. package/dist/forms/malpractice.iife.js +1 -1
  48. package/dist/forms/malpractice.json +1 -1
  49. package/dist/forms/mechanics.es.js +3 -7
  50. package/dist/forms/mechanics.iife.js +1 -1
  51. package/dist/forms/mechanics.json +1 -1
  52. package/dist/forms/realEstate.es.js +180 -380
  53. package/dist/forms/realEstate.iife.js +1 -1
  54. package/dist/forms/realEstate.json +1 -1
  55. package/dist/forms/repossession.es.js +16 -80
  56. package/dist/forms/repossession.iife.js +1 -1
  57. package/dist/forms/repossession.json +1 -1
  58. package/dist/forms/ssdi.es.js +24 -145
  59. package/dist/forms/ssdi.iife.js +1 -1
  60. package/dist/forms/ssdi.json +1 -1
  61. package/dist/forms/testForm.es.js +4 -68
  62. package/dist/forms/testForm.iife.js +1 -1
  63. package/dist/forms/testForm.json +1 -1
  64. package/dist/forms/testRedirects.es.js +3 -11
  65. package/dist/forms/testRedirects.iife.js +1 -1
  66. package/dist/forms/testRedirects.json +1 -1
  67. package/dist/forms/vets.es.js +3 -7
  68. package/dist/forms/vets.iife.js +1 -1
  69. package/dist/forms/vets.json +1 -1
  70. package/dist/forms/willsAndTrusts.es.js +42 -106
  71. package/dist/forms/willsAndTrusts.iife.js +1 -1
  72. package/dist/forms/willsAndTrusts.json +1 -1
  73. package/dist/main.css +1 -1
  74. package/package.json +4 -4
@@ -441,7 +441,6 @@ const TOLPCommentsPlaceholders = {
441
441
  'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
442
442
  'Long Term Disability': 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
443
443
  'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
444
- 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
445
444
  'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
446
445
  'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
447
446
  'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
@@ -453,8 +452,6 @@ const TOLPCommentsPlaceholders = {
453
452
  'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
454
453
  'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
455
454
  'Unemployment': 'Example: "I need help filing for unemployment benefits"',
456
- 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
457
- 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
458
455
  'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
459
456
  'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
460
457
  'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
@@ -465,59 +462,6 @@ const TOLPCommentsPlaceholders = {
465
462
 
466
463
  const TOLPFinalHeadlines = {
467
464
  // 'Adoption': '',
468
- // 'Asbestos and Mesothelioma': '',
469
- // 'Auto and Car Accidents': '',
470
- // 'Bankruptcy': '',
471
- // 'Birth Certificate and Name Change': '',
472
- // 'Business Lawyers': '',
473
- // 'Child Custody and Support': '',
474
- // 'Civil Rights and Discrimination': '',
475
- // 'Civil Lawsuit': '',
476
- // 'Consumer Lawyers': '',
477
- // 'Copyrights and Trademarks': '',
478
- // 'Criminal and Felony': '',
479
- // 'Debt and Collections': '',
480
- // 'Divorce and Separation': '',
481
- // 'DUI and DWI': '',
482
- // 'Elder Law': '',
483
- // 'Employment and Workplace': '',
484
- // 'Expungement': '',
485
- // 'Family Issues': '',
486
- // 'Foreclosure': '',
487
- // 'Guardianship': '',
488
- // 'Harassment and Discrimination': '',
489
- // 'Identity Theft': '',
490
- // 'Immigration and Visas': '',
491
- // 'Insurance': '',
492
- // 'Landlord and Tenant': '',
493
- // 'Lemon Law': '',
494
- // 'Long Term Disability': '',
495
- // 'Medical Malpractice': '',
496
- // 'Nursing Home Abuse': '',
497
- // 'Patents and Intellectual Property': '',
498
- // 'Personal Injury': '',
499
- // 'Power of Attorney': '',
500
- // 'Probate and Estates': '',
501
- // 'Product Liability': '',
502
- // 'Property Damage': '',
503
- // 'Real Estate': '',
504
- // 'Social Security Disability and Insurance': '',
505
- // 'Tax and IRS': '',
506
- // 'Traffic and Tickets': '',
507
- // 'Unemployment': '',
508
- // 'Vaccination Injury': '',
509
- // 'Veteran\'s Disability': '',
510
- // 'Victim of a Crime': '',
511
- // 'Wills and Trusts': '',
512
- // 'Workers Compensation': '',
513
- // 'Wrongful Death': '',
514
- // 'Wrongful Termination': '',
515
- // 'Not Sure or Other': ''
516
- // 'Sexual Harassment': '',
517
- // 'Workplace Harassment': '',
518
- // 'Non-Workplace Harassment': '',
519
- // 'Workplace Discrimination': '',
520
- // 'Non-Workplace Discrimination': '',
521
465
  };
522
466
 
523
467
  const TOLPFinalSubHeadlines = {
@@ -550,7 +494,6 @@ const TOLPFinalSubHeadlines = {
550
494
  // 'Lemon Law': '',
551
495
  'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
552
496
  'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
553
- // 'Nursing Home Abuse': '',
554
497
  'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
555
498
  'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
556
499
  // 'Power of Attorney': '',
@@ -562,8 +505,6 @@ const TOLPFinalSubHeadlines = {
562
505
  'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
563
506
  // 'Traffic and Tickets': '',
564
507
  'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
565
- // 'Vaccination Injury': '',
566
- 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
567
508
  // 'Victim of a Crime': '',
568
509
  // 'Wills and Trusts': '',
569
510
  'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
@@ -683,7 +624,6 @@ const sbsSelect = (updates) => {
683
624
  return select(updates)
684
625
  };
685
626
 
686
-
687
627
  const text = (updates) => {
688
628
  return merge({
689
629
  $formkit: 'text',
@@ -747,71 +687,30 @@ const amountPaymentsPastDue = () => sbsSelect({
747
687
  ]
748
688
  });
749
689
 
750
- const applicantOccupation = () => sbsText({
690
+ const applicantOccupation = (scope) => sbsText({
691
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
751
692
  label: "What is the Applicant's Occupation?",
752
- name: 'Applicant_Occupation',
753
693
  placeholder: "Occupation"
754
694
  });
755
695
 
756
696
 
757
- const applicantAge = () => sbsSelect({
697
+ const applicantAge = (scope) => sbsText({
698
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
758
699
  label: 'Age of Applicant?',
759
- name: 'Applicant_Age',
760
- options: [
761
- "18",
762
- "19",
763
- "20",
764
- "21",
765
- "22",
766
- "23",
767
- "24",
768
- "25",
769
- "26",
770
- "27",
771
- "28",
772
- "29",
773
- "30",
774
- "31",
775
- "32",
776
- "33",
777
- "34",
778
- "35",
779
- "36",
780
- "37",
781
- "38",
782
- "39",
783
- "40",
784
- "41",
785
- "42",
786
- "43",
787
- "44",
788
- "45",
789
- "46",
790
- "47",
791
- "48",
792
- "49",
793
- "50",
794
- "51",
795
- "52",
796
- "53",
797
- "54",
798
- "55",
799
- "56",
800
- "57",
801
- "58",
802
- "59",
803
- "60",
804
- "61",
805
- "62",
806
- "63",
807
- "64",
808
- "65"
809
- ]
700
+ placeholder: 'Age between 18 and 65',
701
+ maxlength: 2,
702
+ inputmode: "numeric",
703
+ validation: "required|min:18,max:65",
704
+ validationMessages: {
705
+ required: 'Applicant Age is required',
706
+ min: 'Invalid Age - must be between 18 and 65',
707
+ max: 'Invalid Age - must be between 18 and 65',
708
+ }
810
709
  });
811
710
 
812
- const applicantDisabilityHowObtain = () => sbsSelect({
711
+ const applicantDisabilityHowObtain = (scope) => sbsSelect({
712
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
813
713
  label: 'How Did Applicant Obtain the Disability Policy?',
814
- name: 'Applicant_Disability_How_Obtain',
815
714
  options: [
816
715
  "Employer",
817
716
  "Self",
@@ -819,8 +718,8 @@ const applicantDisabilityHowObtain = () => sbsSelect({
819
718
  ]
820
719
  });
821
720
 
822
- const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
823
- name: 'Applicant_Previously_Apply_Ltd_Benefits',
721
+ const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
722
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
824
723
  label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
825
724
  options: [
826
725
  "Yes, claim pending",
@@ -829,9 +728,9 @@ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
829
728
  ]
830
729
  });
831
730
 
832
- const applicantMonthlySalary = () => sbsSelect({
731
+ const applicantMonthlySalary = (scope) => sbsSelect({
732
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
833
733
  label: "Applicant's Monthly Salary/Pay When Last at Work:",
834
- name: 'Applicant_Monthly_Salary',
835
734
  options: [
836
735
  "< $1,000",
837
736
  "$1,000 - $2,000",
@@ -847,8 +746,8 @@ const applicantMonthlySalary = () => sbsSelect({
847
746
  ]
848
747
  });
849
748
 
850
- const applicantReceivedDisabilityBenefits = () => sbsRadio({
851
- name: 'Applicant_Received_Disability_Benefits',
749
+ const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
750
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
852
751
  label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
853
752
  options: [
854
753
  "Yes, currently receiving",
@@ -857,13 +756,13 @@ const applicantReceivedDisabilityBenefits = () => sbsRadio({
857
756
  ]
858
757
  });
859
758
 
860
- const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
861
- name: 'Applicant_Lt_Disability_Policy',
759
+ const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
760
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
862
761
  label: 'Does Applicant have a Long Term Disability Policy?'
863
762
  });
864
763
 
865
- const atFault = () => sbsYesNoRadio({
866
- name: 'At_Fault',
764
+ const atFault = (scope) => sbsYesNoRadio({
765
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
867
766
  label: 'Were You at Fault?'
868
767
  });
869
768
 
@@ -876,9 +775,9 @@ const bankruptcyCrossSell = () => sbsCheckbox({
876
775
  helpClass: "!t-text-sm"
877
776
  });
878
777
 
879
- const bloodContentAlcholTest = () => sbsSelect({
778
+ const bloodContentAlcholTest = (scope) => sbsSelect({
779
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
880
780
  label: 'Blood Alcohol Content Measured by Test:',
881
- name: 'Blood_Alcohol_Content_Test',
882
781
  options: [
883
782
  "No Test",
884
783
  "0.00% - 0.04%",
@@ -915,9 +814,9 @@ const businessType = () => sbs2ColRadio({
915
814
  ]
916
815
  });
917
816
 
918
- const causeOfInjury = () => sbsSelect({
817
+ const causeOfInjury = (scope) => sbsSelect({
818
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
919
819
  label: 'Cause of Injury:',
920
- name: 'Cause_Of_Injury',
921
820
  options: [
922
821
  "Traumatic Physical Injury (Accident)",
923
822
  "Repeated Trauma Injury",
@@ -951,9 +850,9 @@ const civilRightsType = () => sbsSelect({
951
850
  ]
952
851
  });
953
852
 
954
- const childHome = () => sbsSelect({
853
+ const childHome = (scope) => sbsSelect({
854
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
955
855
  label: 'With Whom Do the Children Currently Live?',
956
- name: 'Child_Home',
957
856
  options: [
958
857
  'Mother',
959
858
  'Father',
@@ -962,9 +861,9 @@ const childHome = () => sbsSelect({
962
861
  ]
963
862
  });
964
863
 
965
- const childPrimaryCaregiver = () => sbsSelect({
864
+ const childPrimaryCaregiver = (scope) => sbsSelect({
865
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
966
866
  label: 'Who is the Primary Caregiver?',
967
- name: 'Child_Primary_Caregiver',
968
867
  options: [
969
868
  'Mother',
970
869
  'Father',
@@ -972,9 +871,9 @@ const childPrimaryCaregiver = () => sbsSelect({
972
871
  ]
973
872
  });
974
873
 
975
- const childRelationship = () => sbsSelect({
874
+ const childRelationship = (scope) => sbsSelect({
875
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
976
876
  label: 'Your Relationship to Child(ren):',
977
- name: 'Child_Relationship',
978
877
  options: [
979
878
  'Father',
980
879
  'Mother',
@@ -984,9 +883,9 @@ const childRelationship = () => sbsSelect({
984
883
  ]
985
884
  });
986
885
 
987
- const claimStatus = () => sbsSelect({
886
+ const claimStatus = (scope) => sbsSelect({
887
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
988
888
  label: "Status of Claim:",
989
- name: 'Claim_Status',
990
889
  options: [
991
890
  "No action taken yet",
992
891
  "Demand for compensation made",
@@ -1021,9 +920,9 @@ const consumerLawyerType = () => sbsSelect({
1021
920
  ]
1022
921
  });
1023
922
 
1024
- const countryOfCitizenship = () => sbsSelect({
923
+ const countryOfCitizenship = (scope) => sbsSelect({
924
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1025
925
  label: 'What is Your Current Country of Citizenship?',
1026
- name: 'Country_Of_Citizenship',
1027
926
  options: [
1028
927
  "Afghanistan",
1029
928
  "Albania",
@@ -1247,10 +1146,10 @@ const criminalChargesFiled = () => sbsRadio({
1247
1146
  ]
1248
1147
  });
1249
1148
 
1250
- const degreeOfInterest = (help) => sbsSelect({
1149
+ const degreeOfInterest = (scope, help) => sbsSelect({
1150
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1151
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1251
1152
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1252
- id: 'Degree_Of_Interest',
1253
- name: 'Degree_Of_Interest',
1254
1153
  help: help,
1255
1154
  options: [
1256
1155
  'Definitely',
@@ -1265,7 +1164,7 @@ const defaultNotice = () => sbsYesNoRadio({
1265
1164
  label: 'Have You Received a Notice of Default from the Lender?'
1266
1165
  });
1267
1166
 
1268
- const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
1167
+ const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
1269
1168
 
1270
1169
  const disabilityConditionStopWork = () => sbsYesNoRadio({
1271
1170
  name: 'Disability_Condition_Stop_Work',
@@ -1277,9 +1176,9 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1277
1176
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1278
1177
  });
1279
1178
 
1280
- const doctorTreatment = () => sbsYesNoRadio({
1281
- name: 'Doctor_Treatment',
1282
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1179
+ const doctorTreatment = (scope) => sbsYesNoRadio({
1180
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1181
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
1283
1182
  });
1284
1183
 
1285
1184
  const driversLicenseType = () => sbs2ItemRadio({
@@ -1319,9 +1218,9 @@ const employerType = () => sbsSelect({
1319
1218
  ]
1320
1219
  });
1321
1220
 
1322
- const estateLegalServicesNeeded = () => sbsSelect({
1221
+ const estateLegalServicesNeeded = (scope) => sbsSelect({
1222
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1323
1223
  label: "Legal Services Needed for Your Estate:",
1324
- name: 'Estate_Legal_Services_Needed',
1325
1224
  options: [
1326
1225
  "Charitable Giving",
1327
1226
  "Contested Wills",
@@ -1342,13 +1241,13 @@ const firstName = () => sbsText({
1342
1241
  }
1343
1242
  });
1344
1243
 
1345
- const haveAttorney = () => sbsYesNoRadio({
1346
- name: 'Have_Attorney',
1244
+ const haveAttorney = (scope) => sbsYesNoRadio({
1245
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1347
1246
  label: 'Already Working with An Attorney?'
1348
1247
  });
1349
1248
 
1350
- const haveChildren = () => sbsYesNoRadio({
1351
- name: 'Have_Children',
1249
+ const haveChildren = (scope) => sbsYesNoRadio({
1250
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1352
1251
  label: 'Do You Have Children?'
1353
1252
  });
1354
1253
 
@@ -1357,9 +1256,9 @@ const haveCourtDate = () => sbsYesNoRadio({
1357
1256
  label: 'Do You Have a Court Date?'
1358
1257
  });
1359
1258
 
1360
- const immigrationDetails = () => sbsSelect({
1259
+ const immigrationDetails = (scope) => sbsSelect({
1260
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1361
1261
  label: 'Where is the Person Seeking Immigration Located?',
1362
- name: 'Immigration_Details',
1363
1262
  options: [
1364
1263
  "In the USA with proper documentation",
1365
1264
  "In the USA without proper documentation",
@@ -1371,9 +1270,9 @@ const immigrationDetails = () => sbsSelect({
1371
1270
  ]
1372
1271
  });
1373
1272
 
1374
- const immigrationEntry = () => sbsSelect({
1273
+ const immigrationEntry = (scope) => sbsSelect({
1274
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1375
1275
  label: 'How are you Trying to Enter the Country?',
1376
- name: 'Immigration_Entry',
1377
1276
  options: [
1378
1277
  "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1379
1278
  "Illegally",
@@ -1382,18 +1281,18 @@ const immigrationEntry = () => sbsSelect({
1382
1281
  ]
1383
1282
  });
1384
1283
 
1385
- const immigrationLocation = () => sbsSelect({
1284
+ const immigrationLocation = (scope) => sbsSelect({
1285
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1386
1286
  label: 'Where Are You Migrating To?',
1387
- name: 'Immigration_Location',
1388
1287
  options: [
1389
1288
  "In the USA",
1390
1289
  "Outside the USA"
1391
1290
  ]
1392
1291
  });
1393
1292
 
1394
- const immigrationType = () => sbsSelect({
1293
+ const immigrationType = (scope) => sbsSelect({
1294
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1395
1295
  label: 'What Type of Immigration Issue?',
1396
- name: 'Immigration_Type',
1397
1296
  options: [
1398
1297
  "Citizenship (for current green card holders)",
1399
1298
  "Permanent Visa Family Based (green cards)",
@@ -1408,9 +1307,9 @@ const immigrationType = () => sbsSelect({
1408
1307
  ]
1409
1308
  });
1410
1309
 
1411
- const immigrationStatus = () => sbsSelect({
1310
+ const immigrationStatus = (scope) => sbsSelect({
1311
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1412
1312
  label: 'What is the Current Status of the Immigration Case?',
1413
- name: 'Immigration_Status',
1414
1313
  options: [
1415
1314
  "Out of Status (overstayed my visa)",
1416
1315
  "Current Visa Holder (in status)",
@@ -1420,9 +1319,9 @@ const immigrationStatus = () => sbsSelect({
1420
1319
  ]
1421
1320
  });
1422
1321
 
1423
- const incidentDate = () => sbsDate({
1322
+ const incidentDate = (scope) => sbsDate({
1323
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1424
1324
  label: 'Date of Incident:',
1425
- name: 'Incident_Date'
1426
1325
  });
1427
1326
 
1428
1327
  const lastName = () => sbsText({
@@ -1456,9 +1355,9 @@ const lawsuitOtherParty = () => sbsSelect({
1456
1355
  ]
1457
1356
  });
1458
1357
 
1459
- const lawyerPaymentMethod = () => sbsSelect({
1358
+ const lawyerPaymentMethod = (scope) => sbsSelect({
1359
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1460
1360
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1461
- name: 'Lawyer_Payment_Method',
1462
1361
  help: 'No payment necessary to speak with lawyers.',
1463
1362
  options: [
1464
1363
  'Cash',
@@ -1487,9 +1386,9 @@ const loanAmount = () => sbsSelect({
1487
1386
  ]
1488
1387
  });
1489
1388
 
1490
- const maritalStatus = () => sbsSelect({
1389
+ const maritalStatus = (scope) => sbsSelect({
1390
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1491
1391
  label: 'Marital Status:',
1492
- name: 'Marital_Status',
1493
1392
  options: [
1494
1393
  'Unmarried, Living Together',
1495
1394
  'Unmarried, Do Not Live Together',
@@ -1529,19 +1428,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1529
1428
  ]
1530
1429
  });
1531
1430
 
1532
- const nursingHomeStatus = () => sbsSelect({
1533
- label: "The Elderly Person is Currently:",
1534
- name: 'Nursing_Home_Status',
1535
- options: [
1536
- "Living at a nursing home",
1537
- "Living at their own home with medical supervision",
1538
- "Living at their own home without medical supervision ",
1539
- "Living at the home of a child, grandchild or friend",
1540
- "Deceased",
1541
- "Other"
1542
- ]
1543
- });
1544
-
1545
1431
  const ownRealEstate = () => sbsYesNoRadio({
1546
1432
  name: 'Own_Real_Estate',
1547
1433
  label: 'Do You Own Real Estate?'
@@ -1572,8 +1458,8 @@ const patentFor = () => sbsSelect({
1572
1458
  ]
1573
1459
  });
1574
1460
 
1575
- const pendingCharges = () => sbsYesNoRadio({
1576
- name: 'Pending_Charges',
1461
+ const pendingCharges = (scope) => sbsYesNoRadio({
1462
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1577
1463
  label: 'Do you currently have any pending charges?'
1578
1464
  });
1579
1465
 
@@ -1595,9 +1481,9 @@ const phone = () => sbsText({
1595
1481
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1596
1482
  });
1597
1483
 
1598
- const primaryInjury = () => sbs2ColRadio({
1484
+ const primaryInjury = (scope) => sbs2ColRadio({
1485
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1599
1486
  label: 'Primary Injury:',
1600
- name: 'Primary_Injury',
1601
1487
  options: [
1602
1488
  "Anxiety",
1603
1489
  "Back or Neck Pain",
@@ -1610,13 +1496,13 @@ const primaryInjury = () => sbs2ColRadio({
1610
1496
  ]
1611
1497
  });
1612
1498
 
1613
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1614
- name: 'Prior_Alcohol_Offenses',
1499
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1500
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1615
1501
  label: 'Any Prior Alcohol Related Offenses?'
1616
1502
  });
1617
1503
 
1618
- const policeReportFiled = () => sbsYesNoRadio({
1619
- name: 'Police_Report_Filed',
1504
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1505
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1620
1506
  label: 'Was a Police Report Filed?'
1621
1507
  });
1622
1508
 
@@ -1658,9 +1544,9 @@ const roleInMatterCriminal = () => sbsRadio({
1658
1544
  ]
1659
1545
  });
1660
1546
 
1661
- const roleInMatterProbate = () => sbsSelect({
1547
+ const roleInMatterProbate = (scope) => sbsSelect({
1548
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1662
1549
  label: "What Is Your Role in this Matter?",
1663
- name: 'Role_In_Matter_Probate',
1664
1550
  options: [
1665
1551
  "Preparing My Will",
1666
1552
  "Executor",
@@ -1753,9 +1639,9 @@ const TCPAConsent = () => ({
1753
1639
  }
1754
1640
  });
1755
1641
 
1756
- const typeOfAlcoholTest = () => sbsSelect({
1642
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1643
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1757
1644
  label: 'Type of Alcohol Test Performed?',
1758
- name: 'Type_Of_Alcohol_Test',
1759
1645
  options: [
1760
1646
  "No Test",
1761
1647
  "Refused Test",
@@ -1766,9 +1652,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1766
1652
  ]
1767
1653
  });
1768
1654
 
1769
- const typeOfAssets = () => col2Checkbox({
1655
+ const typeOfAssets = (scope) => col2Checkbox({
1656
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1770
1657
  label: 'Type of Assets:',
1771
- name: 'Type_Of_Assets',
1772
1658
  options: [
1773
1659
  "Business Interests",
1774
1660
  "Cash",
@@ -1817,9 +1703,9 @@ const trafficViolations = () => sbsSelect({
1817
1703
  ]
1818
1704
  });
1819
1705
 
1820
- const valueOfAssets = () => sbsSelect({
1706
+ const valueOfAssets = (scope) => sbsSelect({
1707
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1821
1708
  label: 'Value of Your Assets?',
1822
- name: 'Value_Of_Assets',
1823
1709
  options: [
1824
1710
  "Less than 50K",
1825
1711
  "50K to 100K",
@@ -1830,49 +1716,6 @@ const valueOfAssets = () => sbsSelect({
1830
1716
  ]
1831
1717
  });
1832
1718
 
1833
- const veteransDisabilityApplied = () => sbsSelect({
1834
- label: 'Has the Applicant Applied for VA Disability Compensation?',
1835
- name: 'Veterans_Disability_Applied',
1836
- options: [
1837
- "Yes, Claim filed and awaiting decision",
1838
- "Yes, Claim denied",
1839
- "Yes, Claim on appeal",
1840
- "Yes, Claim approved",
1841
- "Yes, Benefits awarded",
1842
- "No, Claim has not been filed"
1843
- ]
1844
- });
1845
-
1846
- const veteransDisabilityConditions = () => sbsCheckbox({
1847
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1848
- name: 'Veterans_Disability_Conditions',
1849
- options: [
1850
- "Traumatic Physical Injury (broken bones, loss of limb)",
1851
- "Mental Injury",
1852
- "Occupational Disease",
1853
- "Repeated Trauma Injury",
1854
- "Other"
1855
- ]
1856
- });
1857
-
1858
- const veteransDisabilityRelationship = () => sbsSelect({
1859
- label: 'What is Your Relationship to the Applicant?',
1860
- name: 'Veterans_Disability_Relationship',
1861
- options: [
1862
- "Self, Active Duty",
1863
- "Self, Active Reserve",
1864
- "Self, Discharged from Active Duty",
1865
- "Self, Discharged as Reservist",
1866
- "Surviving Family Member",
1867
- "Other"
1868
- ]
1869
- });
1870
-
1871
- const veteransDisabilityInjured = () => sbsYesNoRadio({
1872
- name: 'Veterans_Disability_Injured',
1873
- label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
1874
- });
1875
-
1876
1719
  const wouldLikeLawyerTo = () => sbsRadio({
1877
1720
  label: 'I Would Like a Lawyer to:',
1878
1721
  name: 'Would_Like_Lawyer_To',
@@ -1948,17 +1791,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
1948
1791
  }
1949
1792
  );
1950
1793
 
1951
- const AutoAndCarAccidentsQuestions = () => group(
1794
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1952
1795
  'AutoAndCarAccidentsQuestions',
1953
1796
  {
1954
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1797
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1955
1798
  children: [
1956
- haveAttorney(),
1957
- incidentDate(),
1958
- atFault(),
1959
- primaryInjury(),
1960
- doctorTreatment(),
1961
- policeReportFiled()
1799
+ haveAttorney(scope),
1800
+ incidentDate(scope),
1801
+ atFault(scope),
1802
+ primaryInjury(scope),
1803
+ doctorTreatment(scope),
1804
+ policeReportFiled(scope)
1962
1805
  ]
1963
1806
  }
1964
1807
  );
@@ -2003,32 +1846,32 @@ const BusinessLawyersQuestions = () => group(
2003
1846
  }
2004
1847
  );
2005
1848
 
2006
- const ChildCustodyAndSupportQuestions = () => group(
1849
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2007
1850
  'ChildCustodyAndSupportQuestions',
2008
1851
  {
2009
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
1852
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2010
1853
  children: [
2011
- haveAttorney(),
2012
- childRelationship(),
2013
- childHome(),
2014
- childPrimaryCaregiver(),
2015
- degreeOfInterest(),
2016
- lawyerPaymentMethod()
1854
+ haveAttorney(scope),
1855
+ childRelationship(scope),
1856
+ childHome(scope),
1857
+ childPrimaryCaregiver(scope),
1858
+ degreeOfInterest(scope),
1859
+ lawyerPaymentMethod(scope)
2017
1860
  ]
2018
1861
  }
2019
1862
  );
2020
1863
 
2021
- const ChildCustodyQuestions = () => group(
1864
+ const ChildCustodyQuestions = (condition, scope) => group(
2022
1865
  'ChildCustodyQuestions',
2023
1866
  {
2024
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
1867
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2025
1868
  children: [
2026
- haveAttorney(),
2027
- childRelationship(),
2028
- childHome(),
2029
- childPrimaryCaregiver(),
2030
- degreeOfInterest(),
2031
- lawyerPaymentMethod()
1869
+ haveAttorney(scope),
1870
+ childRelationship(scope),
1871
+ childHome(scope),
1872
+ childPrimaryCaregiver(scope),
1873
+ degreeOfInterest(scope),
1874
+ lawyerPaymentMethod(scope)
2032
1875
  ]
2033
1876
  }
2034
1877
  );
@@ -2165,32 +2008,32 @@ const DebtAndCollectionsQuestions = () => group(
2165
2008
  }
2166
2009
  );
2167
2010
 
2168
- const DivorceQuestions = () => group(
2011
+ const DivorceQuestions = (condition, scope) => group(
2169
2012
  'DivorceQuestions',
2170
2013
  {
2171
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2014
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2172
2015
  children: [
2173
- haveAttorney(),
2174
- maritalStatus(),
2175
- haveChildren(),
2176
- degreeOfInterest(),
2177
- lawyerPaymentMethod()
2016
+ haveAttorney(scope),
2017
+ maritalStatus(scope),
2018
+ haveChildren(scope),
2019
+ degreeOfInterest(scope),
2020
+ lawyerPaymentMethod(scope)
2178
2021
  ]
2179
2022
  }
2180
2023
  );
2181
2024
 
2182
- const DUIAndDWIQuestions = () => group(
2025
+ const DUIAndDWIQuestions = (condition, scope) => group(
2183
2026
  'DUIAndDWIQuestions',
2184
2027
  {
2185
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2028
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2186
2029
  children: [
2187
- haveAttorney(),
2188
- incidentDate(),
2189
- priorAlcoholOffenses(),
2190
- typeOfAlcoholTest(),
2191
- bloodContentAlcholTest(),
2192
- pendingCharges(),
2193
- degreeOfInterestHelp()
2030
+ haveAttorney(scope),
2031
+ incidentDate(scope),
2032
+ priorAlcoholOffenses(scope),
2033
+ typeOfAlcoholTest(scope),
2034
+ bloodContentAlcholTest(scope),
2035
+ pendingCharges(scope),
2036
+ degreeOfInterestHelp(scope)
2194
2037
  ]
2195
2038
  }
2196
2039
  );
@@ -2336,19 +2179,19 @@ const IdentityTheftQuestions = () => group(
2336
2179
  }
2337
2180
  );
2338
2181
 
2339
- const ImmigrationAndVisasQuestions = () => group(
2182
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2340
2183
  'ImmigrationAndVisasQuestions',
2341
2184
  {
2342
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2185
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2343
2186
  children: [
2344
- haveAttorney(),
2345
- countryOfCitizenship(),
2346
- immigrationLocation(),
2347
- immigrationEntry(),
2348
- immigrationType(),
2349
- immigrationStatus(),
2350
- immigrationDetails(),
2351
- degreeOfInterestHelp()
2187
+ haveAttorney(scope),
2188
+ countryOfCitizenship(scope),
2189
+ immigrationLocation(scope),
2190
+ immigrationEntry(scope),
2191
+ immigrationType(scope),
2192
+ immigrationStatus(scope),
2193
+ immigrationDetails(scope),
2194
+ degreeOfInterestHelp(scope)
2352
2195
  ]
2353
2196
  }
2354
2197
  );
@@ -2389,19 +2232,19 @@ const LemonLawQuestions = () => group(
2389
2232
  }
2390
2233
  );
2391
2234
 
2392
- const LongTermDisabilityQuestions = () => group(
2235
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2393
2236
  'LongTermDisabilityQuestions',
2394
2237
  {
2395
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2238
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2396
2239
  children: [
2397
- haveAttorney(),
2398
- applicantOccupation(),
2399
- applicantAge(),
2400
- applicantLTDisabilityPolicy(),
2401
- applicantDisabilityHowObtain(),
2402
- applicantPreviouslyAppliedLtdBenefits(),
2403
- applicantReceivedDisabilityBenefits(),
2404
- applicantMonthlySalary()
2240
+ haveAttorney(scope),
2241
+ applicantOccupation(scope),
2242
+ applicantAge(scope),
2243
+ applicantLTDisabilityPolicy(scope),
2244
+ applicantDisabilityHowObtain(scope),
2245
+ applicantPreviouslyAppliedLtdBenefits(scope),
2246
+ applicantReceivedDisabilityBenefits(scope),
2247
+ applicantMonthlySalary(scope)
2405
2248
  ]
2406
2249
  }
2407
2250
  );
@@ -2421,18 +2264,6 @@ const MedicalMalpracticeQuestions = () => group(
2421
2264
  }
2422
2265
  );
2423
2266
 
2424
- const NursingHomeAbuseQuestions = () => group(
2425
- 'NursingHomeAbuseQuestions',
2426
- {
2427
- if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
2428
- children: [
2429
- haveAttorney(),
2430
- incidentDate(),
2431
- nursingHomeStatus()
2432
- ]
2433
- }
2434
- );
2435
-
2436
2267
  const PatentsAndIntellectualPropertyQuestions = () => group(
2437
2268
  'PatentsAndIntellectualPropertyQuestions',
2438
2269
  {
@@ -2446,28 +2277,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2446
2277
  }
2447
2278
  );
2448
2279
 
2449
- const PersonalInjuryQuestions = () => group(
2280
+ const PersonalInjuryQuestions = (condition, scope) => group(
2450
2281
  'PersonalInjuryQuestions',
2451
2282
  {
2452
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2283
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2453
2284
  children: [
2454
- haveAttorney(),
2455
- incidentDate(),
2456
- claimStatus(),
2457
- atFault(),
2458
- primaryInjury(),
2459
- doctorTreatment()
2285
+ haveAttorney(scope),
2286
+ incidentDate(scope),
2287
+ claimStatus(scope),
2288
+ atFault(scope),
2289
+ primaryInjury(scope),
2290
+ doctorTreatment(scope)
2460
2291
  ]
2461
2292
  }
2462
2293
  );
2463
2294
 
2464
- const PowerofAttorneyQuestions = () => group(
2295
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2465
2296
  'PowerofAttorneyQuestions',
2466
2297
  {
2467
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2298
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2468
2299
  children: [
2469
- haveAttorney(),
2470
- degreeOfInterestHelp()
2300
+ haveAttorney(scope),
2301
+ degreeOfInterestHelp(scope)
2471
2302
  ]
2472
2303
  }
2473
2304
  );
@@ -2580,30 +2411,6 @@ const UnemploymentQuestions = () => group(
2580
2411
  }
2581
2412
  );
2582
2413
 
2583
- const VaccinationInjuryQuestions = () => group(
2584
- 'VaccinationInjuryQuestions',
2585
- {
2586
- if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2587
- children: [
2588
- haveAttorney(),
2589
- incidentDate()
2590
- ]
2591
- }
2592
- );
2593
-
2594
- const VeteransDisabilityQuestions = () => group(
2595
- 'VeteransDisabilityQuestions',
2596
- {
2597
- if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2598
- children: [
2599
- veteransDisabilityRelationship(),
2600
- veteransDisabilityInjured(),
2601
- veteransDisabilityConditions(),
2602
- veteransDisabilityApplied()
2603
- ]
2604
- }
2605
- );
2606
-
2607
2414
  const VictimOfACrimeQuestions = () => group(
2608
2415
  'VictimOfACrimeQuestions',
2609
2416
  {
@@ -2619,32 +2426,32 @@ const VictimOfACrimeQuestions = () => group(
2619
2426
  }
2620
2427
  );
2621
2428
 
2622
- const WillsAndTrustsQuestions = () => group(
2429
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2623
2430
  'WillsAndTrustsQuestions',
2624
2431
  {
2625
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2432
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2626
2433
  children: [
2627
- haveAttorney(),
2628
- valueOfAssets(),
2629
- typeOfAssets(),
2630
- roleInMatterProbate(),
2631
- estateLegalServicesNeeded(),
2632
- degreeOfInterestHelp()
2434
+ haveAttorney(scope),
2435
+ valueOfAssets(scope),
2436
+ typeOfAssets(scope),
2437
+ roleInMatterProbate(scope),
2438
+ estateLegalServicesNeeded(scope),
2439
+ degreeOfInterestHelp(scope)
2633
2440
  ]
2634
2441
  }
2635
2442
  );
2636
2443
 
2637
- const WorkersCompensationQuestions = () => group(
2444
+ const WorkersCompensationQuestions = (condition, scope) => group(
2638
2445
  'WorkersCompensationQuestions',
2639
2446
  {
2640
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2447
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2641
2448
  children: [
2642
- haveAttorney(),
2643
- incidentDate(),
2644
- claimStatus(),
2645
- primaryInjury(),
2646
- causeOfInjury(),
2647
- doctorTreatment()
2449
+ haveAttorney(scope),
2450
+ incidentDate(scope),
2451
+ claimStatus(scope),
2452
+ primaryInjury(scope),
2453
+ causeOfInjury(scope),
2454
+ doctorTreatment(scope)
2648
2455
  ]
2649
2456
  }
2650
2457
  );
@@ -2714,21 +2521,17 @@ const findLastInput = (n) => {
2714
2521
 
2715
2522
  const stepDefaults = (step) => ({
2716
2523
  $el: 'section',
2717
- if: '$stepIsEnabled("' + step + '")',
2718
2524
  attrs: {
2719
- style: {
2720
- if: '$activeStep !== "' + step + '"',
2721
- then: 'display: none;'
2722
- }
2525
+ hidden: '$activeStep !== "' + step + '"'
2723
2526
  }
2724
2527
  });
2725
2528
 
2726
2529
  function questionsStepHeadline(updates) {
2727
2530
  return {
2728
2531
  $el: 'h3',
2729
- children: updates.headline || 'Tell Us About Your Case',
2532
+ children: updates.headline || 'Tell Us About Your Situation',
2730
2533
  attrs: {
2731
- 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'
2534
+ 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'
2732
2535
  }
2733
2536
  }
2734
2537
  }
@@ -2739,7 +2542,7 @@ function commentsStepHeadline(updates) {
2739
2542
  $el: 'h3',
2740
2543
  children: updates.headline || 'Additional Case Details',
2741
2544
  attrs: {
2742
- 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' + ' ' + (updates.headlineClass || '')
2545
+ 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' + ' ' + (updates.headlineClass || '')
2743
2546
  }
2744
2547
  }
2745
2548
  }
@@ -2749,7 +2552,7 @@ function firstAndLastStepHeadline(updates) {
2749
2552
  $el: 'h3',
2750
2553
  children: updates.headline || 'Please Provide a Contact Name',
2751
2554
  attrs: {
2752
- 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' + ' ' + (updates.headlineClass || '')
2555
+ 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' + ' ' + (updates.headlineClass || '')
2753
2556
  }
2754
2557
  }
2755
2558
  }
@@ -2759,7 +2562,7 @@ function contactStepHeadline(updates) {
2759
2562
  $el: 'h3',
2760
2563
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2761
2564
  attrs: {
2762
- 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'
2565
+ 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-1'
2763
2566
  }
2764
2567
  }
2765
2568
  }
@@ -2806,10 +2609,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2806
2609
  }
2807
2610
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2808
2611
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2809
- if (nextOnEnter === true) {
2612
+ if (lastInput && nextOnEnter === true) {
2810
2613
  lastInput.onKeypress = NEXT_ON_ENTER;
2811
2614
  }
2812
- if (nextOnInput === true) {
2615
+ if (lastInput && nextOnInput === true) {
2813
2616
  lastInput.onInput = NEXT_ON_INPUT;
2814
2617
  }
2815
2618
  }
@@ -2932,7 +2735,6 @@ const AllTOLPQuestions = () => {
2932
2735
  LemonLawQuestions(),
2933
2736
  LongTermDisabilityQuestions(),
2934
2737
  MedicalMalpracticeQuestions(),
2935
- NursingHomeAbuseQuestions(),
2936
2738
  PatentsAndIntellectualPropertyQuestions(),
2937
2739
  PersonalInjuryQuestions(),
2938
2740
  PowerofAttorneyQuestions(),
@@ -2944,8 +2746,6 @@ const AllTOLPQuestions = () => {
2944
2746
  TaxAndIRSQuestions(),
2945
2747
  TrafficAndTicketsQuestions(),
2946
2748
  UnemploymentQuestions(),
2947
- VaccinationInjuryQuestions(),
2948
- VeteransDisabilityQuestions(),
2949
2749
  VictimOfACrimeQuestions(),
2950
2750
  WillsAndTrustsQuestions(),
2951
2751
  WorkersCompensationQuestions(),