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',
@@ -1592,7 +1488,8 @@ const lawyerPaymentMethod = () => sbsSelect({
1592
1488
 
1593
1489
 
1594
1490
  const legalCrossSells$1 = () => col2Checkbox({
1595
- name: 'Legal_Cross_Sells',
1491
+ id: 'Legal_CrossSells',
1492
+ name: 'Legal_CrossSells',
1596
1493
  help: 'Note: just hit "Next" if none apply',
1597
1494
  helpClass: 't-text-center !t-text-sm',
1598
1495
  validation: null,
@@ -1604,7 +1501,7 @@ const legalCrossSells$1 = () => col2Checkbox({
1604
1501
  'Workers Compensation': 'Workplace Injury',
1605
1502
  'Power of Attorney': 'Update Power of Attorney',
1606
1503
  'Divorce and Separation': 'Need a Divorce or Separation',
1607
- 'Immigration and Visas': 'Immigration or Visa Issues'
1504
+ 'Child Custody': 'Need help with Child Custody',
1608
1505
  },
1609
1506
  else: {
1610
1507
  if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
@@ -1614,7 +1511,7 @@ const legalCrossSells$1 = () => col2Checkbox({
1614
1511
  'Power of Attorney': 'Update Power of Attorney',
1615
1512
  'Divorce and Separation': 'Need a Divorce or Separation',
1616
1513
  'Child Custody': 'Need help with Child Custody',
1617
- 'Immigration and Visas': 'Immigration or Visa Issues'
1514
+ // TODO add one more?
1618
1515
  },
1619
1516
  else: {
1620
1517
  if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
@@ -1624,7 +1521,7 @@ const legalCrossSells$1 = () => col2Checkbox({
1624
1521
  'Long Term Disability': 'Interest in Disability Benefits',
1625
1522
  'Power of Attorney': 'Update Power of Attorney',
1626
1523
  'Divorce and Separation': 'Need a Divorce or Separation',
1627
- 'Immigration and Visas': 'Immigration or Visa Issues'
1524
+ 'Child Custody': 'Need help with Child Custody',
1628
1525
  },
1629
1526
  else: {
1630
1527
  if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Wills and Trusts" || $getVal($get(form), "Type_Of_Legal_Problem") === "Probate and Estates" || $getVal($get(form), "Type_Of_Legal_Problem") === "Power of Attorney"',
@@ -1633,8 +1530,8 @@ const legalCrossSells$1 = () => col2Checkbox({
1633
1530
  'Personal Injury': 'Personal or Workplace Injury',
1634
1531
  'DUI and DWI': 'Charged with a DUI/DWI',
1635
1532
  'Long Term Disability': 'Interest in Disability Benefits',
1533
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1636
1534
  'Child Custody': 'Need help with Child Custody',
1637
- 'Immigration and Visas': 'Immigration or Visa Issues'
1638
1535
  },
1639
1536
  else: {
1640
1537
  if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
@@ -1644,7 +1541,7 @@ const legalCrossSells$1 = () => col2Checkbox({
1644
1541
  'Wills and Trusts': 'Need a Will or Trust',
1645
1542
  'Power of Attorney': 'Update Power of Attorney',
1646
1543
  'Divorce and Separation': 'Need a Divorce or Separation',
1647
- 'Immigration and Visas': 'Immigration or Visa Issues'
1544
+ 'Child Custody': 'Need help with Child Custody',
1648
1545
  },
1649
1546
  else: {
1650
1547
  'Auto and Car Accidents': 'Injured in a Car Accident',
@@ -1678,9 +1575,9 @@ const loanAmount = () => sbsSelect({
1678
1575
  ]
1679
1576
  });
1680
1577
 
1681
- const maritalStatus = () => sbsSelect({
1578
+ const maritalStatus = (scope) => sbsSelect({
1579
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1682
1580
  label: 'Marital Status:',
1683
- name: 'Marital_Status',
1684
1581
  options: [
1685
1582
  'Unmarried, Living Together',
1686
1583
  'Unmarried, Do Not Live Together',
@@ -1720,19 +1617,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1720
1617
  ]
1721
1618
  });
1722
1619
 
1723
- const nursingHomeStatus = () => sbsSelect({
1724
- label: "The Elderly Person is Currently:",
1725
- name: 'Nursing_Home_Status',
1726
- options: [
1727
- "Living at a nursing home",
1728
- "Living at their own home with medical supervision",
1729
- "Living at their own home without medical supervision ",
1730
- "Living at the home of a child, grandchild or friend",
1731
- "Deceased",
1732
- "Other"
1733
- ]
1734
- });
1735
-
1736
1620
  const ownRealEstate = () => sbsYesNoRadio({
1737
1621
  name: 'Own_Real_Estate',
1738
1622
  label: 'Do You Own Real Estate?'
@@ -1763,8 +1647,8 @@ const patentFor = () => sbsSelect({
1763
1647
  ]
1764
1648
  });
1765
1649
 
1766
- const pendingCharges = () => sbsYesNoRadio({
1767
- name: 'Pending_Charges',
1650
+ const pendingCharges = (scope) => sbsYesNoRadio({
1651
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1768
1652
  label: 'Do you currently have any pending charges?'
1769
1653
  });
1770
1654
 
@@ -1786,9 +1670,9 @@ const phone = () => sbsText({
1786
1670
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1787
1671
  });
1788
1672
 
1789
- const primaryInjury = () => sbs2ColRadio({
1673
+ const primaryInjury = (scope) => sbs2ColRadio({
1674
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1790
1675
  label: 'Primary Injury:',
1791
- name: 'Primary_Injury',
1792
1676
  options: [
1793
1677
  "Anxiety",
1794
1678
  "Back or Neck Pain",
@@ -1801,13 +1685,13 @@ const primaryInjury = () => sbs2ColRadio({
1801
1685
  ]
1802
1686
  });
1803
1687
 
1804
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1805
- name: 'Prior_Alcohol_Offenses',
1688
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1689
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1806
1690
  label: 'Any Prior Alcohol Related Offenses?'
1807
1691
  });
1808
1692
 
1809
- const policeReportFiled = () => sbsYesNoRadio({
1810
- name: 'Police_Report_Filed',
1693
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1694
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1811
1695
  label: 'Was a Police Report Filed?'
1812
1696
  });
1813
1697
 
@@ -1866,9 +1750,9 @@ const roleInMatterCriminal = () => sbsRadio({
1866
1750
  ]
1867
1751
  });
1868
1752
 
1869
- const roleInMatterProbate = () => sbsSelect({
1753
+ const roleInMatterProbate = (scope) => sbsSelect({
1754
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1870
1755
  label: "What Is Your Role in this Matter?",
1871
- name: 'Role_In_Matter_Probate',
1872
1756
  options: [
1873
1757
  "Preparing My Will",
1874
1758
  "Executor",
@@ -1961,9 +1845,9 @@ const TCPAConsent = () => ({
1961
1845
  }
1962
1846
  });
1963
1847
 
1964
- const typeOfAlcoholTest = () => sbsSelect({
1848
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1849
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1965
1850
  label: 'Type of Alcohol Test Performed?',
1966
- name: 'Type_Of_Alcohol_Test',
1967
1851
  options: [
1968
1852
  "No Test",
1969
1853
  "Refused Test",
@@ -1974,9 +1858,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1974
1858
  ]
1975
1859
  });
1976
1860
 
1977
- const typeOfAssets = () => col2Checkbox({
1861
+ const typeOfAssets = (scope) => col2Checkbox({
1862
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1978
1863
  label: 'Type of Assets:',
1979
- name: 'Type_Of_Assets',
1980
1864
  options: [
1981
1865
  "Business Interests",
1982
1866
  "Cash",
@@ -2025,9 +1909,9 @@ const trafficViolations = () => sbsSelect({
2025
1909
  ]
2026
1910
  });
2027
1911
 
2028
- const valueOfAssets = () => sbsSelect({
1912
+ const valueOfAssets = (scope) => sbsSelect({
1913
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
2029
1914
  label: 'Value of Your Assets?',
2030
- name: 'Value_Of_Assets',
2031
1915
  options: [
2032
1916
  "Less than 50K",
2033
1917
  "50K to 100K",
@@ -2038,49 +1922,6 @@ const valueOfAssets = () => sbsSelect({
2038
1922
  ]
2039
1923
  });
2040
1924
 
2041
- const veteransDisabilityApplied = () => sbsSelect({
2042
- label: 'Has the Applicant Applied for VA Disability Compensation?',
2043
- name: 'Veterans_Disability_Applied',
2044
- options: [
2045
- "Yes, Claim filed and awaiting decision",
2046
- "Yes, Claim denied",
2047
- "Yes, Claim on appeal",
2048
- "Yes, Claim approved",
2049
- "Yes, Benefits awarded",
2050
- "No, Claim has not been filed"
2051
- ]
2052
- });
2053
-
2054
- const veteransDisabilityConditions = () => sbsCheckbox({
2055
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
2056
- name: 'Veterans_Disability_Conditions',
2057
- options: [
2058
- "Traumatic Physical Injury (broken bones, loss of limb)",
2059
- "Mental Injury",
2060
- "Occupational Disease",
2061
- "Repeated Trauma Injury",
2062
- "Other"
2063
- ]
2064
- });
2065
-
2066
- const veteransDisabilityRelationship = () => sbsSelect({
2067
- label: 'What is Your Relationship to the Applicant?',
2068
- name: 'Veterans_Disability_Relationship',
2069
- options: [
2070
- "Self, Active Duty",
2071
- "Self, Active Reserve",
2072
- "Self, Discharged from Active Duty",
2073
- "Self, Discharged as Reservist",
2074
- "Surviving Family Member",
2075
- "Other"
2076
- ]
2077
- });
2078
-
2079
- const veteransDisabilityInjured = () => sbsYesNoRadio({
2080
- name: 'Veterans_Disability_Injured',
2081
- label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
2082
- });
2083
-
2084
1925
  const wouldLikeLawyerTo = () => sbsRadio({
2085
1926
  label: 'I Would Like a Lawyer to:',
2086
1927
  name: 'Would_Like_Lawyer_To',
@@ -2156,17 +1997,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2156
1997
  }
2157
1998
  );
2158
1999
 
2159
- const AutoAndCarAccidentsQuestions = () => group(
2000
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2160
2001
  'AutoAndCarAccidentsQuestions',
2161
2002
  {
2162
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
2003
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2163
2004
  children: [
2164
- haveAttorney(),
2165
- incidentDate(),
2166
- atFault(),
2167
- primaryInjury(),
2168
- doctorTreatment(),
2169
- policeReportFiled()
2005
+ haveAttorney(scope),
2006
+ incidentDate(scope),
2007
+ atFault(scope),
2008
+ primaryInjury(scope),
2009
+ doctorTreatment(scope),
2010
+ policeReportFiled(scope)
2170
2011
  ]
2171
2012
  }
2172
2013
  );
@@ -2211,32 +2052,32 @@ const BusinessLawyersQuestions = () => group(
2211
2052
  }
2212
2053
  );
2213
2054
 
2214
- const ChildCustodyAndSupportQuestions = () => group(
2055
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2215
2056
  'ChildCustodyAndSupportQuestions',
2216
2057
  {
2217
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
2058
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2218
2059
  children: [
2219
- haveAttorney(),
2220
- childRelationship(),
2221
- childHome(),
2222
- childPrimaryCaregiver(),
2223
- degreeOfInterest(),
2224
- lawyerPaymentMethod()
2060
+ haveAttorney(scope),
2061
+ childRelationship(scope),
2062
+ childHome(scope),
2063
+ childPrimaryCaregiver(scope),
2064
+ degreeOfInterest(scope),
2065
+ lawyerPaymentMethod(scope)
2225
2066
  ]
2226
2067
  }
2227
2068
  );
2228
2069
 
2229
- const ChildCustodyQuestions = () => group(
2070
+ const ChildCustodyQuestions = (condition, scope) => group(
2230
2071
  'ChildCustodyQuestions',
2231
2072
  {
2232
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2073
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2233
2074
  children: [
2234
- haveAttorney(),
2235
- childRelationship(),
2236
- childHome(),
2237
- childPrimaryCaregiver(),
2238
- degreeOfInterest(),
2239
- lawyerPaymentMethod()
2075
+ haveAttorney(scope),
2076
+ childRelationship(scope),
2077
+ childHome(scope),
2078
+ childPrimaryCaregiver(scope),
2079
+ degreeOfInterest(scope),
2080
+ lawyerPaymentMethod(scope)
2240
2081
  ]
2241
2082
  }
2242
2083
  );
@@ -2373,32 +2214,32 @@ const DebtAndCollectionsQuestions = () => group(
2373
2214
  }
2374
2215
  );
2375
2216
 
2376
- const DivorceQuestions = () => group(
2217
+ const DivorceQuestions = (condition, scope) => group(
2377
2218
  'DivorceQuestions',
2378
2219
  {
2379
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2220
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2380
2221
  children: [
2381
- haveAttorney(),
2382
- maritalStatus(),
2383
- haveChildren(),
2384
- degreeOfInterest(),
2385
- lawyerPaymentMethod()
2222
+ haveAttorney(scope),
2223
+ maritalStatus(scope),
2224
+ haveChildren(scope),
2225
+ degreeOfInterest(scope),
2226
+ lawyerPaymentMethod(scope)
2386
2227
  ]
2387
2228
  }
2388
2229
  );
2389
2230
 
2390
- const DUIAndDWIQuestions = () => group(
2231
+ const DUIAndDWIQuestions = (condition, scope) => group(
2391
2232
  'DUIAndDWIQuestions',
2392
2233
  {
2393
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2234
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2394
2235
  children: [
2395
- haveAttorney(),
2396
- incidentDate(),
2397
- priorAlcoholOffenses(),
2398
- typeOfAlcoholTest(),
2399
- bloodContentAlcholTest(),
2400
- pendingCharges(),
2401
- degreeOfInterestHelp()
2236
+ haveAttorney(scope),
2237
+ incidentDate(scope),
2238
+ priorAlcoholOffenses(scope),
2239
+ typeOfAlcoholTest(scope),
2240
+ bloodContentAlcholTest(scope),
2241
+ pendingCharges(scope),
2242
+ degreeOfInterestHelp(scope)
2402
2243
  ]
2403
2244
  }
2404
2245
  );
@@ -2544,19 +2385,19 @@ const IdentityTheftQuestions = () => group(
2544
2385
  }
2545
2386
  );
2546
2387
 
2547
- const ImmigrationAndVisasQuestions = () => group(
2388
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2548
2389
  'ImmigrationAndVisasQuestions',
2549
2390
  {
2550
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2391
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2551
2392
  children: [
2552
- haveAttorney(),
2553
- countryOfCitizenship(),
2554
- immigrationLocation(),
2555
- immigrationEntry(),
2556
- immigrationType(),
2557
- immigrationStatus(),
2558
- immigrationDetails(),
2559
- degreeOfInterestHelp()
2393
+ haveAttorney(scope),
2394
+ countryOfCitizenship(scope),
2395
+ immigrationLocation(scope),
2396
+ immigrationEntry(scope),
2397
+ immigrationType(scope),
2398
+ immigrationStatus(scope),
2399
+ immigrationDetails(scope),
2400
+ degreeOfInterestHelp(scope)
2560
2401
  ]
2561
2402
  }
2562
2403
  );
@@ -2597,19 +2438,19 @@ const LemonLawQuestions = () => group(
2597
2438
  }
2598
2439
  );
2599
2440
 
2600
- const LongTermDisabilityQuestions = () => group(
2441
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2601
2442
  'LongTermDisabilityQuestions',
2602
2443
  {
2603
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2444
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2604
2445
  children: [
2605
- haveAttorney(),
2606
- applicantOccupation(),
2607
- applicantAge(),
2608
- applicantLTDisabilityPolicy(),
2609
- applicantDisabilityHowObtain(),
2610
- applicantPreviouslyAppliedLtdBenefits(),
2611
- applicantReceivedDisabilityBenefits(),
2612
- applicantMonthlySalary()
2446
+ haveAttorney(scope),
2447
+ applicantOccupation(scope),
2448
+ applicantAge(scope),
2449
+ applicantLTDisabilityPolicy(scope),
2450
+ applicantDisabilityHowObtain(scope),
2451
+ applicantPreviouslyAppliedLtdBenefits(scope),
2452
+ applicantReceivedDisabilityBenefits(scope),
2453
+ applicantMonthlySalary(scope)
2613
2454
  ]
2614
2455
  }
2615
2456
  );
@@ -2629,18 +2470,6 @@ const MedicalMalpracticeQuestions = () => group(
2629
2470
  }
2630
2471
  );
2631
2472
 
2632
- const NursingHomeAbuseQuestions = () => group(
2633
- 'NursingHomeAbuseQuestions',
2634
- {
2635
- if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
2636
- children: [
2637
- haveAttorney(),
2638
- incidentDate(),
2639
- nursingHomeStatus()
2640
- ]
2641
- }
2642
- );
2643
-
2644
2473
  const PatentsAndIntellectualPropertyQuestions = () => group(
2645
2474
  'PatentsAndIntellectualPropertyQuestions',
2646
2475
  {
@@ -2654,28 +2483,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2654
2483
  }
2655
2484
  );
2656
2485
 
2657
- const PersonalInjuryQuestions = () => group(
2486
+ const PersonalInjuryQuestions = (condition, scope) => group(
2658
2487
  'PersonalInjuryQuestions',
2659
2488
  {
2660
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2489
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2661
2490
  children: [
2662
- haveAttorney(),
2663
- incidentDate(),
2664
- claimStatus(),
2665
- atFault(),
2666
- primaryInjury(),
2667
- doctorTreatment()
2491
+ haveAttorney(scope),
2492
+ incidentDate(scope),
2493
+ claimStatus(scope),
2494
+ atFault(scope),
2495
+ primaryInjury(scope),
2496
+ doctorTreatment(scope)
2668
2497
  ]
2669
2498
  }
2670
2499
  );
2671
2500
 
2672
- const PowerofAttorneyQuestions = () => group(
2501
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2673
2502
  'PowerofAttorneyQuestions',
2674
2503
  {
2675
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2504
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2676
2505
  children: [
2677
- haveAttorney(),
2678
- degreeOfInterestHelp()
2506
+ haveAttorney(scope),
2507
+ degreeOfInterestHelp(scope)
2679
2508
  ]
2680
2509
  }
2681
2510
  );
@@ -2788,30 +2617,6 @@ const UnemploymentQuestions = () => group(
2788
2617
  }
2789
2618
  );
2790
2619
 
2791
- const VaccinationInjuryQuestions = () => group(
2792
- 'VaccinationInjuryQuestions',
2793
- {
2794
- if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2795
- children: [
2796
- haveAttorney(),
2797
- incidentDate()
2798
- ]
2799
- }
2800
- );
2801
-
2802
- const VeteransDisabilityQuestions = () => group(
2803
- 'VeteransDisabilityQuestions',
2804
- {
2805
- if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2806
- children: [
2807
- veteransDisabilityRelationship(),
2808
- veteransDisabilityInjured(),
2809
- veteransDisabilityConditions(),
2810
- veteransDisabilityApplied()
2811
- ]
2812
- }
2813
- );
2814
-
2815
2620
  const VictimOfACrimeQuestions = () => group(
2816
2621
  'VictimOfACrimeQuestions',
2817
2622
  {
@@ -2827,32 +2632,32 @@ const VictimOfACrimeQuestions = () => group(
2827
2632
  }
2828
2633
  );
2829
2634
 
2830
- const WillsAndTrustsQuestions = () => group(
2635
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2831
2636
  'WillsAndTrustsQuestions',
2832
2637
  {
2833
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2638
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2834
2639
  children: [
2835
- haveAttorney(),
2836
- valueOfAssets(),
2837
- typeOfAssets(),
2838
- roleInMatterProbate(),
2839
- estateLegalServicesNeeded(),
2840
- degreeOfInterestHelp()
2640
+ haveAttorney(scope),
2641
+ valueOfAssets(scope),
2642
+ typeOfAssets(scope),
2643
+ roleInMatterProbate(scope),
2644
+ estateLegalServicesNeeded(scope),
2645
+ degreeOfInterestHelp(scope)
2841
2646
  ]
2842
2647
  }
2843
2648
  );
2844
2649
 
2845
- const WorkersCompensationQuestions = () => group(
2650
+ const WorkersCompensationQuestions = (condition, scope) => group(
2846
2651
  'WorkersCompensationQuestions',
2847
2652
  {
2848
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2653
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2849
2654
  children: [
2850
- haveAttorney(),
2851
- incidentDate(),
2852
- claimStatus(),
2853
- primaryInjury(),
2854
- causeOfInjury(),
2855
- doctorTreatment()
2655
+ haveAttorney(scope),
2656
+ incidentDate(scope),
2657
+ claimStatus(scope),
2658
+ primaryInjury(scope),
2659
+ causeOfInjury(scope),
2660
+ doctorTreatment(scope)
2856
2661
  ]
2857
2662
  }
2858
2663
  );
@@ -2922,21 +2727,17 @@ const findLastInput = (n) => {
2922
2727
 
2923
2728
  const stepDefaults = (step) => ({
2924
2729
  $el: 'section',
2925
- if: '$stepIsEnabled("' + step + '")',
2926
2730
  attrs: {
2927
- style: {
2928
- if: '$activeStep !== "' + step + '"',
2929
- then: 'display: none;'
2930
- }
2731
+ hidden: '$activeStep !== "' + step + '"'
2931
2732
  }
2932
2733
  });
2933
2734
 
2934
2735
  function questionsStepHeadline(updates) {
2935
2736
  return {
2936
2737
  $el: 'h3',
2937
- children: updates.headline || 'Tell Us About Your Case',
2738
+ children: updates.headline || 'Tell Us About Your Situation',
2938
2739
  attrs: {
2939
- 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'
2740
+ 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'
2940
2741
  }
2941
2742
  }
2942
2743
  }
@@ -2947,7 +2748,7 @@ function commentsStepHeadline(updates) {
2947
2748
  $el: 'h3',
2948
2749
  children: updates.headline || 'Additional Case Details',
2949
2750
  attrs: {
2950
- 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 || '')
2751
+ 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 || '')
2951
2752
  }
2952
2753
  }
2953
2754
  }
@@ -2957,7 +2758,7 @@ function firstAndLastStepHeadline(updates) {
2957
2758
  $el: 'h3',
2958
2759
  children: updates.headline || 'Please Provide a Contact Name',
2959
2760
  attrs: {
2960
- 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 || '')
2761
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2961
2762
  }
2962
2763
  }
2963
2764
  }
@@ -2967,7 +2768,7 @@ function legalCrossSellsStepHeadline(updates) {
2967
2768
  $el: 'h3',
2968
2769
  children: updates.headline || 'Do any of the following situations apply?',
2969
2770
  attrs: {
2970
- 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 || '')
2771
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2971
2772
  }
2972
2773
  }
2973
2774
  }
@@ -2977,7 +2778,7 @@ function contactStepHeadline(updates) {
2977
2778
  $el: 'h3',
2978
2779
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2979
2780
  attrs: {
2980
- 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'
2781
+ 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'
2981
2782
  }
2982
2783
  }
2983
2784
  }
@@ -3024,10 +2825,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
3024
2825
  }
3025
2826
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
3026
2827
  const lastInput = findLastInput(inputs[inputs.length - 1]);
3027
- if (nextOnEnter === true) {
2828
+ if (lastInput && nextOnEnter === true) {
3028
2829
  lastInput.onKeypress = NEXT_ON_ENTER;
3029
2830
  }
3030
- if (nextOnInput === true) {
2831
+ if (lastInput && nextOnInput === true) {
3031
2832
  lastInput.onInput = NEXT_ON_INPUT;
3032
2833
  }
3033
2834
  }
@@ -3148,7 +2949,6 @@ const AllTOLPQuestions = () => {
3148
2949
  LemonLawQuestions(),
3149
2950
  LongTermDisabilityQuestions(),
3150
2951
  MedicalMalpracticeQuestions(),
3151
- NursingHomeAbuseQuestions(),
3152
2952
  PatentsAndIntellectualPropertyQuestions(),
3153
2953
  PersonalInjuryQuestions(),
3154
2954
  PowerofAttorneyQuestions(),
@@ -3160,8 +2960,6 @@ const AllTOLPQuestions = () => {
3160
2960
  TaxAndIRSQuestions(),
3161
2961
  TrafficAndTicketsQuestions(),
3162
2962
  UnemploymentQuestions(),
3163
- VaccinationInjuryQuestions(),
3164
- VeteransDisabilityQuestions(),
3165
2963
  VictimOfACrimeQuestions(),
3166
2964
  WillsAndTrustsQuestions(),
3167
2965
  WorkersCompensationQuestions(),