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
@@ -434,7 +434,6 @@ const TOLPCommentsPlaceholders = {
434
434
  'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
435
435
  '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"',
436
436
  'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
437
- 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
438
437
  'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
439
438
  'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
440
439
  'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
@@ -446,8 +445,6 @@ const TOLPCommentsPlaceholders = {
446
445
  'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
447
446
  'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
448
447
  'Unemployment': 'Example: "I need help filing for unemployment benefits"',
449
- 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
450
- 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
451
448
  'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
452
449
  'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
453
450
  'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
@@ -458,59 +455,6 @@ const TOLPCommentsPlaceholders = {
458
455
 
459
456
  const TOLPFinalHeadlines = {
460
457
  // 'Adoption': '',
461
- // 'Asbestos and Mesothelioma': '',
462
- // 'Auto and Car Accidents': '',
463
- // 'Bankruptcy': '',
464
- // 'Birth Certificate and Name Change': '',
465
- // 'Business Lawyers': '',
466
- // 'Child Custody and Support': '',
467
- // 'Civil Rights and Discrimination': '',
468
- // 'Civil Lawsuit': '',
469
- // 'Consumer Lawyers': '',
470
- // 'Copyrights and Trademarks': '',
471
- // 'Criminal and Felony': '',
472
- // 'Debt and Collections': '',
473
- // 'Divorce and Separation': '',
474
- // 'DUI and DWI': '',
475
- // 'Elder Law': '',
476
- // 'Employment and Workplace': '',
477
- // 'Expungement': '',
478
- // 'Family Issues': '',
479
- // 'Foreclosure': '',
480
- // 'Guardianship': '',
481
- // 'Harassment and Discrimination': '',
482
- // 'Identity Theft': '',
483
- // 'Immigration and Visas': '',
484
- // 'Insurance': '',
485
- // 'Landlord and Tenant': '',
486
- // 'Lemon Law': '',
487
- // 'Long Term Disability': '',
488
- // 'Medical Malpractice': '',
489
- // 'Nursing Home Abuse': '',
490
- // 'Patents and Intellectual Property': '',
491
- // 'Personal Injury': '',
492
- // 'Power of Attorney': '',
493
- // 'Probate and Estates': '',
494
- // 'Product Liability': '',
495
- // 'Property Damage': '',
496
- // 'Real Estate': '',
497
- // 'Social Security Disability and Insurance': '',
498
- // 'Tax and IRS': '',
499
- // 'Traffic and Tickets': '',
500
- // 'Unemployment': '',
501
- // 'Vaccination Injury': '',
502
- // 'Veteran\'s Disability': '',
503
- // 'Victim of a Crime': '',
504
- // 'Wills and Trusts': '',
505
- // 'Workers Compensation': '',
506
- // 'Wrongful Death': '',
507
- // 'Wrongful Termination': '',
508
- // 'Not Sure or Other': ''
509
- // 'Sexual Harassment': '',
510
- // 'Workplace Harassment': '',
511
- // 'Non-Workplace Harassment': '',
512
- // 'Workplace Discrimination': '',
513
- // 'Non-Workplace Discrimination': '',
514
458
  };
515
459
 
516
460
  const TOLPFinalSubHeadlines = {
@@ -543,7 +487,6 @@ const TOLPFinalSubHeadlines = {
543
487
  // 'Lemon Law': '',
544
488
  'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
545
489
  'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
546
- // 'Nursing Home Abuse': '',
547
490
  'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
548
491
  'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
549
492
  // 'Power of Attorney': '',
@@ -555,8 +498,6 @@ const TOLPFinalSubHeadlines = {
555
498
  'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
556
499
  // 'Traffic and Tickets': '',
557
500
  'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
558
- // 'Vaccination Injury': '',
559
- 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
560
501
  // 'Victim of a Crime': '',
561
502
  // 'Wills and Trusts': '',
562
503
  'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
@@ -676,7 +617,6 @@ const sbsSelect = (updates) => {
676
617
  return select(updates)
677
618
  };
678
619
 
679
-
680
620
  const text = (updates) => {
681
621
  return merge({
682
622
  $formkit: 'text',
@@ -740,71 +680,30 @@ const amountPaymentsPastDue = () => sbsSelect({
740
680
  ]
741
681
  });
742
682
 
743
- const applicantOccupation = () => sbsText({
683
+ const applicantOccupation = (scope) => sbsText({
684
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
744
685
  label: "What is the Applicant's Occupation?",
745
- name: 'Applicant_Occupation',
746
686
  placeholder: "Occupation"
747
687
  });
748
688
 
749
689
 
750
- const applicantAge = () => sbsSelect({
690
+ const applicantAge = (scope) => sbsText({
691
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
751
692
  label: 'Age of Applicant?',
752
- name: 'Applicant_Age',
753
- options: [
754
- "18",
755
- "19",
756
- "20",
757
- "21",
758
- "22",
759
- "23",
760
- "24",
761
- "25",
762
- "26",
763
- "27",
764
- "28",
765
- "29",
766
- "30",
767
- "31",
768
- "32",
769
- "33",
770
- "34",
771
- "35",
772
- "36",
773
- "37",
774
- "38",
775
- "39",
776
- "40",
777
- "41",
778
- "42",
779
- "43",
780
- "44",
781
- "45",
782
- "46",
783
- "47",
784
- "48",
785
- "49",
786
- "50",
787
- "51",
788
- "52",
789
- "53",
790
- "54",
791
- "55",
792
- "56",
793
- "57",
794
- "58",
795
- "59",
796
- "60",
797
- "61",
798
- "62",
799
- "63",
800
- "64",
801
- "65"
802
- ]
693
+ placeholder: 'Age between 18 and 65',
694
+ maxlength: 2,
695
+ inputmode: "numeric",
696
+ validation: "required|min:18,max:65",
697
+ validationMessages: {
698
+ required: 'Applicant Age is required',
699
+ min: 'Invalid Age - must be between 18 and 65',
700
+ max: 'Invalid Age - must be between 18 and 65',
701
+ }
803
702
  });
804
703
 
805
- const applicantDisabilityHowObtain = () => sbsSelect({
704
+ const applicantDisabilityHowObtain = (scope) => sbsSelect({
705
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
806
706
  label: 'How Did Applicant Obtain the Disability Policy?',
807
- name: 'Applicant_Disability_How_Obtain',
808
707
  options: [
809
708
  "Employer",
810
709
  "Self",
@@ -812,8 +711,8 @@ const applicantDisabilityHowObtain = () => sbsSelect({
812
711
  ]
813
712
  });
814
713
 
815
- const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
816
- name: 'Applicant_Previously_Apply_Ltd_Benefits',
714
+ const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
715
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
817
716
  label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
818
717
  options: [
819
718
  "Yes, claim pending",
@@ -822,9 +721,9 @@ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
822
721
  ]
823
722
  });
824
723
 
825
- const applicantMonthlySalary = () => sbsSelect({
724
+ const applicantMonthlySalary = (scope) => sbsSelect({
725
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
826
726
  label: "Applicant's Monthly Salary/Pay When Last at Work:",
827
- name: 'Applicant_Monthly_Salary',
828
727
  options: [
829
728
  "< $1,000",
830
729
  "$1,000 - $2,000",
@@ -840,8 +739,8 @@ const applicantMonthlySalary = () => sbsSelect({
840
739
  ]
841
740
  });
842
741
 
843
- const applicantReceivedDisabilityBenefits = () => sbsRadio({
844
- name: 'Applicant_Received_Disability_Benefits',
742
+ const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
743
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
845
744
  label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
846
745
  options: [
847
746
  "Yes, currently receiving",
@@ -850,13 +749,13 @@ const applicantReceivedDisabilityBenefits = () => sbsRadio({
850
749
  ]
851
750
  });
852
751
 
853
- const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
854
- name: 'Applicant_Lt_Disability_Policy',
752
+ const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
753
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
855
754
  label: 'Does Applicant have a Long Term Disability Policy?'
856
755
  });
857
756
 
858
- const atFault = () => sbsYesNoRadio({
859
- name: 'At_Fault',
757
+ const atFault = (scope) => sbsYesNoRadio({
758
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
860
759
  label: 'Were You at Fault?'
861
760
  });
862
761
 
@@ -869,9 +768,9 @@ const bankruptcyCrossSell = () => sbsCheckbox({
869
768
  helpClass: "!t-text-sm"
870
769
  });
871
770
 
872
- const bloodContentAlcholTest = () => sbsSelect({
771
+ const bloodContentAlcholTest = (scope) => sbsSelect({
772
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
873
773
  label: 'Blood Alcohol Content Measured by Test:',
874
- name: 'Blood_Alcohol_Content_Test',
875
774
  options: [
876
775
  "No Test",
877
776
  "0.00% - 0.04%",
@@ -908,9 +807,9 @@ const businessType = () => sbs2ColRadio({
908
807
  ]
909
808
  });
910
809
 
911
- const causeOfInjury = () => sbsSelect({
810
+ const causeOfInjury = (scope) => sbsSelect({
811
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
912
812
  label: 'Cause of Injury:',
913
- name: 'Cause_Of_Injury',
914
813
  options: [
915
814
  "Traumatic Physical Injury (Accident)",
916
815
  "Repeated Trauma Injury",
@@ -975,9 +874,9 @@ const civilRightsType = () => sbsSelect({
975
874
  ]
976
875
  });
977
876
 
978
- const childHome = () => sbsSelect({
877
+ const childHome = (scope) => sbsSelect({
878
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
979
879
  label: 'With Whom Do the Children Currently Live?',
980
- name: 'Child_Home',
981
880
  options: [
982
881
  'Mother',
983
882
  'Father',
@@ -986,9 +885,9 @@ const childHome = () => sbsSelect({
986
885
  ]
987
886
  });
988
887
 
989
- const childPrimaryCaregiver = () => sbsSelect({
888
+ const childPrimaryCaregiver = (scope) => sbsSelect({
889
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
990
890
  label: 'Who is the Primary Caregiver?',
991
- name: 'Child_Primary_Caregiver',
992
891
  options: [
993
892
  'Mother',
994
893
  'Father',
@@ -996,9 +895,9 @@ const childPrimaryCaregiver = () => sbsSelect({
996
895
  ]
997
896
  });
998
897
 
999
- const childRelationship = () => sbsSelect({
898
+ const childRelationship = (scope) => sbsSelect({
899
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
1000
900
  label: 'Your Relationship to Child(ren):',
1001
- name: 'Child_Relationship',
1002
901
  options: [
1003
902
  'Father',
1004
903
  'Mother',
@@ -1008,9 +907,9 @@ const childRelationship = () => sbsSelect({
1008
907
  ]
1009
908
  });
1010
909
 
1011
- const claimStatus = () => sbsSelect({
910
+ const claimStatus = (scope) => sbsSelect({
911
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
1012
912
  label: "Status of Claim:",
1013
- name: 'Claim_Status',
1014
913
  options: [
1015
914
  "No action taken yet",
1016
915
  "Demand for compensation made",
@@ -1045,9 +944,9 @@ const consumerLawyerType = () => sbsSelect({
1045
944
  ]
1046
945
  });
1047
946
 
1048
- const countryOfCitizenship = () => sbsSelect({
947
+ const countryOfCitizenship = (scope) => sbsSelect({
948
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1049
949
  label: 'What is Your Current Country of Citizenship?',
1050
- name: 'Country_Of_Citizenship',
1051
950
  options: [
1052
951
  "Afghanistan",
1053
952
  "Albania",
@@ -1271,10 +1170,10 @@ const criminalChargesFiled = () => sbsRadio({
1271
1170
  ]
1272
1171
  });
1273
1172
 
1274
- const degreeOfInterest = (help) => sbsSelect({
1173
+ const degreeOfInterest = (scope, help) => sbsSelect({
1174
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1175
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1275
1176
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1276
- id: 'Degree_Of_Interest',
1277
- name: 'Degree_Of_Interest',
1278
1177
  help: help,
1279
1178
  options: [
1280
1179
  'Definitely',
@@ -1289,7 +1188,7 @@ const defaultNotice = () => sbsYesNoRadio({
1289
1188
  label: 'Have You Received a Notice of Default from the Lender?'
1290
1189
  });
1291
1190
 
1292
- const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
1191
+ const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
1293
1192
 
1294
1193
  const disabilityConditionStopWork = () => sbsYesNoRadio({
1295
1194
  name: 'Disability_Condition_Stop_Work',
@@ -1301,9 +1200,9 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1301
1200
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1302
1201
  });
1303
1202
 
1304
- const doctorTreatment = () => sbsYesNoRadio({
1305
- name: 'Doctor_Treatment',
1306
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1203
+ const doctorTreatment = (scope) => sbsYesNoRadio({
1204
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1205
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
1307
1206
  });
1308
1207
 
1309
1208
  const driversLicenseType = () => sbs2ItemRadio({
@@ -1359,9 +1258,9 @@ const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
1359
1258
  ]
1360
1259
  }, updates));
1361
1260
 
1362
- const estateLegalServicesNeeded = () => sbsSelect({
1261
+ const estateLegalServicesNeeded = (scope) => sbsSelect({
1262
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1363
1263
  label: "Legal Services Needed for Your Estate:",
1364
- name: 'Estate_Legal_Services_Needed',
1365
1264
  options: [
1366
1265
  "Charitable Giving",
1367
1266
  "Contested Wills",
@@ -1419,7 +1318,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1419
1318
  'Medical Malpractice',
1420
1319
  'Non-Workplace Discrimination',
1421
1320
  'Non-Workplace Harassment',
1422
- 'Nursing Home Abuse',
1423
1321
  'Patents and Intellectual Property',
1424
1322
  'Personal Injury',
1425
1323
  'Power of Attorney',
@@ -1432,8 +1330,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1432
1330
  'Tax and IRS',
1433
1331
  'Traffic and Tickets',
1434
1332
  'Unemployment',
1435
- 'Vaccination Injury',
1436
- "Veteran's Disability",
1437
1333
  'Victim of a Crime',
1438
1334
  'Wills and Trusts',
1439
1335
  'Workers Compensation',
@@ -1445,13 +1341,13 @@ const generalTOLP = (updates) => sbsSelect(merge({
1445
1341
  ]
1446
1342
  }, updates));
1447
1343
 
1448
- const haveAttorney = () => sbsYesNoRadio({
1449
- name: 'Have_Attorney',
1344
+ const haveAttorney = (scope) => sbsYesNoRadio({
1345
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1450
1346
  label: 'Already Working with An Attorney?'
1451
1347
  });
1452
1348
 
1453
- const haveChildren = () => sbsYesNoRadio({
1454
- name: 'Have_Children',
1349
+ const haveChildren = (scope) => sbsYesNoRadio({
1350
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1455
1351
  label: 'Do You Have Children?'
1456
1352
  });
1457
1353
 
@@ -1460,9 +1356,9 @@ const haveCourtDate = () => sbsYesNoRadio({
1460
1356
  label: 'Do You Have a Court Date?'
1461
1357
  });
1462
1358
 
1463
- const immigrationDetails = () => sbsSelect({
1359
+ const immigrationDetails = (scope) => sbsSelect({
1360
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1464
1361
  label: 'Where is the Person Seeking Immigration Located?',
1465
- name: 'Immigration_Details',
1466
1362
  options: [
1467
1363
  "In the USA with proper documentation",
1468
1364
  "In the USA without proper documentation",
@@ -1474,9 +1370,9 @@ const immigrationDetails = () => sbsSelect({
1474
1370
  ]
1475
1371
  });
1476
1372
 
1477
- const immigrationEntry = () => sbsSelect({
1373
+ const immigrationEntry = (scope) => sbsSelect({
1374
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1478
1375
  label: 'How are you Trying to Enter the Country?',
1479
- name: 'Immigration_Entry',
1480
1376
  options: [
1481
1377
  "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1482
1378
  "Illegally",
@@ -1485,18 +1381,18 @@ const immigrationEntry = () => sbsSelect({
1485
1381
  ]
1486
1382
  });
1487
1383
 
1488
- const immigrationLocation = () => sbsSelect({
1384
+ const immigrationLocation = (scope) => sbsSelect({
1385
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1489
1386
  label: 'Where Are You Migrating To?',
1490
- name: 'Immigration_Location',
1491
1387
  options: [
1492
1388
  "In the USA",
1493
1389
  "Outside the USA"
1494
1390
  ]
1495
1391
  });
1496
1392
 
1497
- const immigrationType = () => sbsSelect({
1393
+ const immigrationType = (scope) => sbsSelect({
1394
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1498
1395
  label: 'What Type of Immigration Issue?',
1499
- name: 'Immigration_Type',
1500
1396
  options: [
1501
1397
  "Citizenship (for current green card holders)",
1502
1398
  "Permanent Visa Family Based (green cards)",
@@ -1511,9 +1407,9 @@ const immigrationType = () => sbsSelect({
1511
1407
  ]
1512
1408
  });
1513
1409
 
1514
- const immigrationStatus = () => sbsSelect({
1410
+ const immigrationStatus = (scope) => sbsSelect({
1411
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1515
1412
  label: 'What is the Current Status of the Immigration Case?',
1516
- name: 'Immigration_Status',
1517
1413
  options: [
1518
1414
  "Out of Status (overstayed my visa)",
1519
1415
  "Current Visa Holder (in status)",
@@ -1523,9 +1419,9 @@ const immigrationStatus = () => sbsSelect({
1523
1419
  ]
1524
1420
  });
1525
1421
 
1526
- const incidentDate = () => sbsDate({
1422
+ const incidentDate = (scope) => sbsDate({
1423
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1527
1424
  label: 'Date of Incident:',
1528
- name: 'Incident_Date'
1529
1425
  });
1530
1426
 
1531
1427
  const lastName = () => sbsText({
@@ -1576,9 +1472,9 @@ const lawsuitOtherParty = () => sbsSelect({
1576
1472
  ]
1577
1473
  });
1578
1474
 
1579
- const lawyerPaymentMethod = () => sbsSelect({
1475
+ const lawyerPaymentMethod = (scope) => sbsSelect({
1476
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1580
1477
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1581
- name: 'Lawyer_Payment_Method',
1582
1478
  help: 'No payment necessary to speak with lawyers.',
1583
1479
  options: [
1584
1480
  'Cash',
@@ -1607,9 +1503,9 @@ const loanAmount = () => sbsSelect({
1607
1503
  ]
1608
1504
  });
1609
1505
 
1610
- const maritalStatus = () => sbsSelect({
1506
+ const maritalStatus = (scope) => sbsSelect({
1507
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1611
1508
  label: 'Marital Status:',
1612
- name: 'Marital_Status',
1613
1509
  options: [
1614
1510
  'Unmarried, Living Together',
1615
1511
  'Unmarried, Do Not Live Together',
@@ -1649,19 +1545,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1649
1545
  ]
1650
1546
  });
1651
1547
 
1652
- const nursingHomeStatus = () => sbsSelect({
1653
- label: "The Elderly Person is Currently:",
1654
- name: 'Nursing_Home_Status',
1655
- options: [
1656
- "Living at a nursing home",
1657
- "Living at their own home with medical supervision",
1658
- "Living at their own home without medical supervision ",
1659
- "Living at the home of a child, grandchild or friend",
1660
- "Deceased",
1661
- "Other"
1662
- ]
1663
- });
1664
-
1665
1548
  const ownRealEstate = () => sbsYesNoRadio({
1666
1549
  name: 'Own_Real_Estate',
1667
1550
  label: 'Do You Own Real Estate?'
@@ -1692,8 +1575,8 @@ const patentFor = () => sbsSelect({
1692
1575
  ]
1693
1576
  });
1694
1577
 
1695
- const pendingCharges = () => sbsYesNoRadio({
1696
- name: 'Pending_Charges',
1578
+ const pendingCharges = (scope) => sbsYesNoRadio({
1579
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1697
1580
  label: 'Do you currently have any pending charges?'
1698
1581
  });
1699
1582
 
@@ -1715,9 +1598,9 @@ const phone = () => sbsText({
1715
1598
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1716
1599
  });
1717
1600
 
1718
- const primaryInjury = () => sbs2ColRadio({
1601
+ const primaryInjury = (scope) => sbs2ColRadio({
1602
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1719
1603
  label: 'Primary Injury:',
1720
- name: 'Primary_Injury',
1721
1604
  options: [
1722
1605
  "Anxiety",
1723
1606
  "Back or Neck Pain",
@@ -1730,13 +1613,13 @@ const primaryInjury = () => sbs2ColRadio({
1730
1613
  ]
1731
1614
  });
1732
1615
 
1733
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1734
- name: 'Prior_Alcohol_Offenses',
1616
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1617
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1735
1618
  label: 'Any Prior Alcohol Related Offenses?'
1736
1619
  });
1737
1620
 
1738
- const policeReportFiled = () => sbsYesNoRadio({
1739
- name: 'Police_Report_Filed',
1621
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1622
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1740
1623
  label: 'Was a Police Report Filed?'
1741
1624
  });
1742
1625
 
@@ -1795,9 +1678,9 @@ const roleInMatterCriminal = () => sbsRadio({
1795
1678
  ]
1796
1679
  });
1797
1680
 
1798
- const roleInMatterProbate = () => sbsSelect({
1681
+ const roleInMatterProbate = (scope) => sbsSelect({
1682
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1799
1683
  label: "What Is Your Role in this Matter?",
1800
- name: 'Role_In_Matter_Probate',
1801
1684
  options: [
1802
1685
  "Preparing My Will",
1803
1686
  "Executor",
@@ -1890,9 +1773,9 @@ const TCPAConsent = () => ({
1890
1773
  }
1891
1774
  });
1892
1775
 
1893
- const typeOfAlcoholTest = () => sbsSelect({
1776
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1777
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1894
1778
  label: 'Type of Alcohol Test Performed?',
1895
- name: 'Type_Of_Alcohol_Test',
1896
1779
  options: [
1897
1780
  "No Test",
1898
1781
  "Refused Test",
@@ -1903,9 +1786,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1903
1786
  ]
1904
1787
  });
1905
1788
 
1906
- const typeOfAssets = () => col2Checkbox({
1789
+ const typeOfAssets = (scope) => col2Checkbox({
1790
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1907
1791
  label: 'Type of Assets:',
1908
- name: 'Type_Of_Assets',
1909
1792
  options: [
1910
1793
  "Business Interests",
1911
1794
  "Cash",
@@ -1954,9 +1837,9 @@ const trafficViolations = () => sbsSelect({
1954
1837
  ]
1955
1838
  });
1956
1839
 
1957
- const valueOfAssets = () => sbsSelect({
1840
+ const valueOfAssets = (scope) => sbsSelect({
1841
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1958
1842
  label: 'Value of Your Assets?',
1959
- name: 'Value_Of_Assets',
1960
1843
  options: [
1961
1844
  "Less than 50K",
1962
1845
  "50K to 100K",
@@ -1967,49 +1850,6 @@ const valueOfAssets = () => sbsSelect({
1967
1850
  ]
1968
1851
  });
1969
1852
 
1970
- const veteransDisabilityApplied = () => sbsSelect({
1971
- label: 'Has the Applicant Applied for VA Disability Compensation?',
1972
- name: 'Veterans_Disability_Applied',
1973
- options: [
1974
- "Yes, Claim filed and awaiting decision",
1975
- "Yes, Claim denied",
1976
- "Yes, Claim on appeal",
1977
- "Yes, Claim approved",
1978
- "Yes, Benefits awarded",
1979
- "No, Claim has not been filed"
1980
- ]
1981
- });
1982
-
1983
- const veteransDisabilityConditions = () => sbsCheckbox({
1984
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1985
- name: 'Veterans_Disability_Conditions',
1986
- options: [
1987
- "Traumatic Physical Injury (broken bones, loss of limb)",
1988
- "Mental Injury",
1989
- "Occupational Disease",
1990
- "Repeated Trauma Injury",
1991
- "Other"
1992
- ]
1993
- });
1994
-
1995
- const veteransDisabilityRelationship = () => sbsSelect({
1996
- label: 'What is Your Relationship to the Applicant?',
1997
- name: 'Veterans_Disability_Relationship',
1998
- options: [
1999
- "Self, Active Duty",
2000
- "Self, Active Reserve",
2001
- "Self, Discharged from Active Duty",
2002
- "Self, Discharged as Reservist",
2003
- "Surviving Family Member",
2004
- "Other"
2005
- ]
2006
- });
2007
-
2008
- const veteransDisabilityInjured = () => sbsYesNoRadio({
2009
- name: 'Veterans_Disability_Injured',
2010
- label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
2011
- });
2012
-
2013
1853
  const wouldLikeLawyerTo = () => sbsRadio({
2014
1854
  label: 'I Would Like a Lawyer to:',
2015
1855
  name: 'Would_Like_Lawyer_To',
@@ -2085,17 +1925,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2085
1925
  }
2086
1926
  );
2087
1927
 
2088
- const AutoAndCarAccidentsQuestions = () => group(
1928
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2089
1929
  'AutoAndCarAccidentsQuestions',
2090
1930
  {
2091
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1931
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2092
1932
  children: [
2093
- haveAttorney(),
2094
- incidentDate(),
2095
- atFault(),
2096
- primaryInjury(),
2097
- doctorTreatment(),
2098
- policeReportFiled()
1933
+ haveAttorney(scope),
1934
+ incidentDate(scope),
1935
+ atFault(scope),
1936
+ primaryInjury(scope),
1937
+ doctorTreatment(scope),
1938
+ policeReportFiled(scope)
2099
1939
  ]
2100
1940
  }
2101
1941
  );
@@ -2140,32 +1980,32 @@ const BusinessLawyersQuestions = () => group(
2140
1980
  }
2141
1981
  );
2142
1982
 
2143
- const ChildCustodyAndSupportQuestions = () => group(
1983
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2144
1984
  'ChildCustodyAndSupportQuestions',
2145
1985
  {
2146
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
1986
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2147
1987
  children: [
2148
- haveAttorney(),
2149
- childRelationship(),
2150
- childHome(),
2151
- childPrimaryCaregiver(),
2152
- degreeOfInterest(),
2153
- lawyerPaymentMethod()
1988
+ haveAttorney(scope),
1989
+ childRelationship(scope),
1990
+ childHome(scope),
1991
+ childPrimaryCaregiver(scope),
1992
+ degreeOfInterest(scope),
1993
+ lawyerPaymentMethod(scope)
2154
1994
  ]
2155
1995
  }
2156
1996
  );
2157
1997
 
2158
- const ChildCustodyQuestions = () => group(
1998
+ const ChildCustodyQuestions = (condition, scope) => group(
2159
1999
  'ChildCustodyQuestions',
2160
2000
  {
2161
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2001
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2162
2002
  children: [
2163
- haveAttorney(),
2164
- childRelationship(),
2165
- childHome(),
2166
- childPrimaryCaregiver(),
2167
- degreeOfInterest(),
2168
- lawyerPaymentMethod()
2003
+ haveAttorney(scope),
2004
+ childRelationship(scope),
2005
+ childHome(scope),
2006
+ childPrimaryCaregiver(scope),
2007
+ degreeOfInterest(scope),
2008
+ lawyerPaymentMethod(scope)
2169
2009
  ]
2170
2010
  }
2171
2011
  );
@@ -2302,32 +2142,32 @@ const DebtAndCollectionsQuestions = () => group(
2302
2142
  }
2303
2143
  );
2304
2144
 
2305
- const DivorceQuestions = () => group(
2145
+ const DivorceQuestions = (condition, scope) => group(
2306
2146
  'DivorceQuestions',
2307
2147
  {
2308
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2148
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2309
2149
  children: [
2310
- haveAttorney(),
2311
- maritalStatus(),
2312
- haveChildren(),
2313
- degreeOfInterest(),
2314
- lawyerPaymentMethod()
2150
+ haveAttorney(scope),
2151
+ maritalStatus(scope),
2152
+ haveChildren(scope),
2153
+ degreeOfInterest(scope),
2154
+ lawyerPaymentMethod(scope)
2315
2155
  ]
2316
2156
  }
2317
2157
  );
2318
2158
 
2319
- const DUIAndDWIQuestions = () => group(
2159
+ const DUIAndDWIQuestions = (condition, scope) => group(
2320
2160
  'DUIAndDWIQuestions',
2321
2161
  {
2322
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2162
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2323
2163
  children: [
2324
- haveAttorney(),
2325
- incidentDate(),
2326
- priorAlcoholOffenses(),
2327
- typeOfAlcoholTest(),
2328
- bloodContentAlcholTest(),
2329
- pendingCharges(),
2330
- degreeOfInterestHelp()
2164
+ haveAttorney(scope),
2165
+ incidentDate(scope),
2166
+ priorAlcoholOffenses(scope),
2167
+ typeOfAlcoholTest(scope),
2168
+ bloodContentAlcholTest(scope),
2169
+ pendingCharges(scope),
2170
+ degreeOfInterestHelp(scope)
2331
2171
  ]
2332
2172
  }
2333
2173
  );
@@ -2473,19 +2313,19 @@ const IdentityTheftQuestions = () => group(
2473
2313
  }
2474
2314
  );
2475
2315
 
2476
- const ImmigrationAndVisasQuestions = () => group(
2316
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2477
2317
  'ImmigrationAndVisasQuestions',
2478
2318
  {
2479
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2319
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2480
2320
  children: [
2481
- haveAttorney(),
2482
- countryOfCitizenship(),
2483
- immigrationLocation(),
2484
- immigrationEntry(),
2485
- immigrationType(),
2486
- immigrationStatus(),
2487
- immigrationDetails(),
2488
- degreeOfInterestHelp()
2321
+ haveAttorney(scope),
2322
+ countryOfCitizenship(scope),
2323
+ immigrationLocation(scope),
2324
+ immigrationEntry(scope),
2325
+ immigrationType(scope),
2326
+ immigrationStatus(scope),
2327
+ immigrationDetails(scope),
2328
+ degreeOfInterestHelp(scope)
2489
2329
  ]
2490
2330
  }
2491
2331
  );
@@ -2526,19 +2366,19 @@ const LemonLawQuestions = () => group(
2526
2366
  }
2527
2367
  );
2528
2368
 
2529
- const LongTermDisabilityQuestions = () => group(
2369
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2530
2370
  'LongTermDisabilityQuestions',
2531
2371
  {
2532
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2372
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2533
2373
  children: [
2534
- haveAttorney(),
2535
- applicantOccupation(),
2536
- applicantAge(),
2537
- applicantLTDisabilityPolicy(),
2538
- applicantDisabilityHowObtain(),
2539
- applicantPreviouslyAppliedLtdBenefits(),
2540
- applicantReceivedDisabilityBenefits(),
2541
- applicantMonthlySalary()
2374
+ haveAttorney(scope),
2375
+ applicantOccupation(scope),
2376
+ applicantAge(scope),
2377
+ applicantLTDisabilityPolicy(scope),
2378
+ applicantDisabilityHowObtain(scope),
2379
+ applicantPreviouslyAppliedLtdBenefits(scope),
2380
+ applicantReceivedDisabilityBenefits(scope),
2381
+ applicantMonthlySalary(scope)
2542
2382
  ]
2543
2383
  }
2544
2384
  );
@@ -2558,18 +2398,6 @@ const MedicalMalpracticeQuestions = () => group(
2558
2398
  }
2559
2399
  );
2560
2400
 
2561
- const NursingHomeAbuseQuestions = () => group(
2562
- 'NursingHomeAbuseQuestions',
2563
- {
2564
- if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
2565
- children: [
2566
- haveAttorney(),
2567
- incidentDate(),
2568
- nursingHomeStatus()
2569
- ]
2570
- }
2571
- );
2572
-
2573
2401
  const PatentsAndIntellectualPropertyQuestions = () => group(
2574
2402
  'PatentsAndIntellectualPropertyQuestions',
2575
2403
  {
@@ -2583,28 +2411,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2583
2411
  }
2584
2412
  );
2585
2413
 
2586
- const PersonalInjuryQuestions = () => group(
2414
+ const PersonalInjuryQuestions = (condition, scope) => group(
2587
2415
  'PersonalInjuryQuestions',
2588
2416
  {
2589
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2417
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2590
2418
  children: [
2591
- haveAttorney(),
2592
- incidentDate(),
2593
- claimStatus(),
2594
- atFault(),
2595
- primaryInjury(),
2596
- doctorTreatment()
2419
+ haveAttorney(scope),
2420
+ incidentDate(scope),
2421
+ claimStatus(scope),
2422
+ atFault(scope),
2423
+ primaryInjury(scope),
2424
+ doctorTreatment(scope)
2597
2425
  ]
2598
2426
  }
2599
2427
  );
2600
2428
 
2601
- const PowerofAttorneyQuestions = () => group(
2429
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2602
2430
  'PowerofAttorneyQuestions',
2603
2431
  {
2604
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2432
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2605
2433
  children: [
2606
- haveAttorney(),
2607
- degreeOfInterestHelp()
2434
+ haveAttorney(scope),
2435
+ degreeOfInterestHelp(scope)
2608
2436
  ]
2609
2437
  }
2610
2438
  );
@@ -2717,30 +2545,6 @@ const UnemploymentQuestions = () => group(
2717
2545
  }
2718
2546
  );
2719
2547
 
2720
- const VaccinationInjuryQuestions = () => group(
2721
- 'VaccinationInjuryQuestions',
2722
- {
2723
- if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2724
- children: [
2725
- haveAttorney(),
2726
- incidentDate()
2727
- ]
2728
- }
2729
- );
2730
-
2731
- const VeteransDisabilityQuestions = () => group(
2732
- 'VeteransDisabilityQuestions',
2733
- {
2734
- if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2735
- children: [
2736
- veteransDisabilityRelationship(),
2737
- veteransDisabilityInjured(),
2738
- veteransDisabilityConditions(),
2739
- veteransDisabilityApplied()
2740
- ]
2741
- }
2742
- );
2743
-
2744
2548
  const VictimOfACrimeQuestions = () => group(
2745
2549
  'VictimOfACrimeQuestions',
2746
2550
  {
@@ -2756,32 +2560,32 @@ const VictimOfACrimeQuestions = () => group(
2756
2560
  }
2757
2561
  );
2758
2562
 
2759
- const WillsAndTrustsQuestions = () => group(
2563
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2760
2564
  'WillsAndTrustsQuestions',
2761
2565
  {
2762
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2566
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2763
2567
  children: [
2764
- haveAttorney(),
2765
- valueOfAssets(),
2766
- typeOfAssets(),
2767
- roleInMatterProbate(),
2768
- estateLegalServicesNeeded(),
2769
- degreeOfInterestHelp()
2568
+ haveAttorney(scope),
2569
+ valueOfAssets(scope),
2570
+ typeOfAssets(scope),
2571
+ roleInMatterProbate(scope),
2572
+ estateLegalServicesNeeded(scope),
2573
+ degreeOfInterestHelp(scope)
2770
2574
  ]
2771
2575
  }
2772
2576
  );
2773
2577
 
2774
- const WorkersCompensationQuestions = () => group(
2578
+ const WorkersCompensationQuestions = (condition, scope) => group(
2775
2579
  'WorkersCompensationQuestions',
2776
2580
  {
2777
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2581
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2778
2582
  children: [
2779
- haveAttorney(),
2780
- incidentDate(),
2781
- claimStatus(),
2782
- primaryInjury(),
2783
- causeOfInjury(),
2784
- doctorTreatment()
2583
+ haveAttorney(scope),
2584
+ incidentDate(scope),
2585
+ claimStatus(scope),
2586
+ primaryInjury(scope),
2587
+ causeOfInjury(scope),
2588
+ doctorTreatment(scope)
2785
2589
  ]
2786
2590
  }
2787
2591
  );
@@ -2851,21 +2655,17 @@ const findLastInput = (n) => {
2851
2655
 
2852
2656
  const stepDefaults = (step) => ({
2853
2657
  $el: 'section',
2854
- if: '$stepIsEnabled("' + step + '")',
2855
2658
  attrs: {
2856
- style: {
2857
- if: '$activeStep !== "' + step + '"',
2858
- then: 'display: none;'
2859
- }
2659
+ hidden: '$activeStep !== "' + step + '"'
2860
2660
  }
2861
2661
  });
2862
2662
 
2863
2663
  function questionsStepHeadline(updates) {
2864
2664
  return {
2865
2665
  $el: 'h3',
2866
- children: updates.headline || 'Tell Us About Your Case',
2666
+ children: updates.headline || 'Tell Us About Your Situation',
2867
2667
  attrs: {
2868
- 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'
2668
+ 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'
2869
2669
  }
2870
2670
  }
2871
2671
  }
@@ -2876,7 +2676,7 @@ function commentsStepHeadline(updates) {
2876
2676
  $el: 'h3',
2877
2677
  children: updates.headline || 'Additional Case Details',
2878
2678
  attrs: {
2879
- 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 || '')
2679
+ 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 || '')
2880
2680
  }
2881
2681
  }
2882
2682
  }
@@ -2886,7 +2686,7 @@ function firstAndLastStepHeadline(updates) {
2886
2686
  $el: 'h3',
2887
2687
  children: updates.headline || 'Please Provide a Contact Name',
2888
2688
  attrs: {
2889
- 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 || '')
2689
+ 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 || '')
2890
2690
  }
2891
2691
  }
2892
2692
  }
@@ -2896,7 +2696,7 @@ function contactStepHeadline(updates) {
2896
2696
  $el: 'h3',
2897
2697
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2898
2698
  attrs: {
2899
- 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'
2699
+ 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'
2900
2700
  }
2901
2701
  }
2902
2702
  }
@@ -2943,10 +2743,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2943
2743
  }
2944
2744
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2945
2745
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2946
- if (nextOnEnter === true) {
2746
+ if (lastInput && nextOnEnter === true) {
2947
2747
  lastInput.onKeypress = NEXT_ON_ENTER;
2948
2748
  }
2949
- if (nextOnInput === true) {
2749
+ if (lastInput && nextOnInput === true) {
2950
2750
  lastInput.onInput = NEXT_ON_INPUT;
2951
2751
  }
2952
2752
  }
@@ -3066,7 +2866,6 @@ const AllTOLPQuestions = () => {
3066
2866
  LemonLawQuestions(),
3067
2867
  LongTermDisabilityQuestions(),
3068
2868
  MedicalMalpracticeQuestions(),
3069
- NursingHomeAbuseQuestions(),
3070
2869
  PatentsAndIntellectualPropertyQuestions(),
3071
2870
  PersonalInjuryQuestions(),
3072
2871
  PowerofAttorneyQuestions(),
@@ -3078,8 +2877,6 @@ const AllTOLPQuestions = () => {
3078
2877
  TaxAndIRSQuestions(),
3079
2878
  TrafficAndTicketsQuestions(),
3080
2879
  UnemploymentQuestions(),
3081
- VaccinationInjuryQuestions(),
3082
- VeteransDisabilityQuestions(),
3083
2880
  VictimOfACrimeQuestions(),
3084
2881
  WillsAndTrustsQuestions(),
3085
2882
  WorkersCompensationQuestions(),