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',
@@ -1590,77 +1486,6 @@ const lawyerPaymentMethod = () => sbsSelect({
1590
1486
  ]
1591
1487
  });
1592
1488
 
1593
-
1594
- const legalCrossSells$1 = () => col2Checkbox({
1595
- name: 'Legal_Cross_Sells',
1596
- help: 'Note: just hit "Next" if none apply',
1597
- helpClass: 't-text-center !t-text-sm',
1598
- validation: null,
1599
- options: {
1600
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Auto and Car Accidents"',
1601
- then: {
1602
- 'Long Term Disability': 'Interest in Disability Benefits',
1603
- 'Wills and Trusts': 'Need a Will or Trust',
1604
- 'Workers Compensation': 'Workplace Injury',
1605
- 'Power of Attorney': 'Update Power of Attorney',
1606
- 'Divorce and Separation': 'Need a Divorce or Separation',
1607
- 'Immigration and Visas': 'Immigration or Visa Issues'
1608
- },
1609
- else: {
1610
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
1611
- then: {
1612
- 'DUI and DWI': 'Charged with a DUI/DWI',
1613
- 'Wills and Trusts': 'Need a Will or Trust',
1614
- 'Power of Attorney': 'Update Power of Attorney',
1615
- 'Divorce and Separation': 'Need a Divorce or Separation',
1616
- 'Child Custody': 'Need help with Child Custody',
1617
- 'Immigration and Visas': 'Immigration or Visa Issues'
1618
- },
1619
- else: {
1620
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
1621
- then: {
1622
- 'Personal Injury': 'Personal or Workplace Injury',
1623
- 'Wills and Trusts': 'Need a Will or Trust',
1624
- 'Long Term Disability': 'Interest in Disability Benefits',
1625
- 'Power of Attorney': 'Update Power of Attorney',
1626
- 'Divorce and Separation': 'Need a Divorce or Separation',
1627
- 'Immigration and Visas': 'Immigration or Visa Issues'
1628
- },
1629
- else: {
1630
- 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"',
1631
- then: {
1632
- 'Auto and Car Accidents': 'Injured in a Car Accident',
1633
- 'Personal Injury': 'Personal or Workplace Injury',
1634
- 'DUI and DWI': 'Charged with a DUI/DWI',
1635
- 'Long Term Disability': 'Interest in Disability Benefits',
1636
- 'Child Custody': 'Need help with Child Custody',
1637
- 'Immigration and Visas': 'Immigration or Visa Issues'
1638
- },
1639
- else: {
1640
- if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
1641
- then: {
1642
- 'Auto and Car Accidents': 'Injured in a Car Accident',
1643
- 'DUI and DWI': 'Charged with a DUI/DWI',
1644
- 'Wills and Trusts': 'Need a Will or Trust',
1645
- 'Power of Attorney': 'Update Power of Attorney',
1646
- 'Divorce and Separation': 'Need a Divorce or Separation',
1647
- 'Immigration and Visas': 'Immigration or Visa Issues'
1648
- },
1649
- else: {
1650
- 'Auto and Car Accidents': 'Injured in a Car Accident',
1651
- 'Personal Injury': 'Personal or Workplace Injury',
1652
- 'DUI and DWI': 'Charged with a DUI/DWI',
1653
- 'Wills and Trusts': 'Need a Will or Trust',
1654
- 'Power of Attorney': 'Update Power of Attorney',
1655
- 'Long Term Disability': 'Interest in Disability Benefits',
1656
- }
1657
- }
1658
- }
1659
- }
1660
- }
1661
- }
1662
- });
1663
-
1664
1489
  const loanAmount = () => sbsSelect({
1665
1490
  label: 'Total Amount of Loan?',
1666
1491
  name: 'Loan_Amount',
@@ -1678,9 +1503,9 @@ const loanAmount = () => sbsSelect({
1678
1503
  ]
1679
1504
  });
1680
1505
 
1681
- const maritalStatus = () => sbsSelect({
1506
+ const maritalStatus = (scope) => sbsSelect({
1507
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1682
1508
  label: 'Marital Status:',
1683
- name: 'Marital_Status',
1684
1509
  options: [
1685
1510
  'Unmarried, Living Together',
1686
1511
  'Unmarried, Do Not Live Together',
@@ -1720,19 +1545,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1720
1545
  ]
1721
1546
  });
1722
1547
 
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
1548
  const ownRealEstate = () => sbsYesNoRadio({
1737
1549
  name: 'Own_Real_Estate',
1738
1550
  label: 'Do You Own Real Estate?'
@@ -1763,8 +1575,8 @@ const patentFor = () => sbsSelect({
1763
1575
  ]
1764
1576
  });
1765
1577
 
1766
- const pendingCharges = () => sbsYesNoRadio({
1767
- name: 'Pending_Charges',
1578
+ const pendingCharges = (scope) => sbsYesNoRadio({
1579
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1768
1580
  label: 'Do you currently have any pending charges?'
1769
1581
  });
1770
1582
 
@@ -1786,9 +1598,9 @@ const phone = () => sbsText({
1786
1598
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1787
1599
  });
1788
1600
 
1789
- const primaryInjury = () => sbs2ColRadio({
1601
+ const primaryInjury = (scope) => sbs2ColRadio({
1602
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1790
1603
  label: 'Primary Injury:',
1791
- name: 'Primary_Injury',
1792
1604
  options: [
1793
1605
  "Anxiety",
1794
1606
  "Back or Neck Pain",
@@ -1801,13 +1613,13 @@ const primaryInjury = () => sbs2ColRadio({
1801
1613
  ]
1802
1614
  });
1803
1615
 
1804
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1805
- name: 'Prior_Alcohol_Offenses',
1616
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1617
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1806
1618
  label: 'Any Prior Alcohol Related Offenses?'
1807
1619
  });
1808
1620
 
1809
- const policeReportFiled = () => sbsYesNoRadio({
1810
- name: 'Police_Report_Filed',
1621
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1622
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1811
1623
  label: 'Was a Police Report Filed?'
1812
1624
  });
1813
1625
 
@@ -1866,9 +1678,9 @@ const roleInMatterCriminal = () => sbsRadio({
1866
1678
  ]
1867
1679
  });
1868
1680
 
1869
- const roleInMatterProbate = () => sbsSelect({
1681
+ const roleInMatterProbate = (scope) => sbsSelect({
1682
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1870
1683
  label: "What Is Your Role in this Matter?",
1871
- name: 'Role_In_Matter_Probate',
1872
1684
  options: [
1873
1685
  "Preparing My Will",
1874
1686
  "Executor",
@@ -1961,9 +1773,9 @@ const TCPAConsent = () => ({
1961
1773
  }
1962
1774
  });
1963
1775
 
1964
- const typeOfAlcoholTest = () => sbsSelect({
1776
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1777
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1965
1778
  label: 'Type of Alcohol Test Performed?',
1966
- name: 'Type_Of_Alcohol_Test',
1967
1779
  options: [
1968
1780
  "No Test",
1969
1781
  "Refused Test",
@@ -1974,9 +1786,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1974
1786
  ]
1975
1787
  });
1976
1788
 
1977
- const typeOfAssets = () => col2Checkbox({
1789
+ const typeOfAssets = (scope) => col2Checkbox({
1790
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1978
1791
  label: 'Type of Assets:',
1979
- name: 'Type_Of_Assets',
1980
1792
  options: [
1981
1793
  "Business Interests",
1982
1794
  "Cash",
@@ -2025,9 +1837,9 @@ const trafficViolations = () => sbsSelect({
2025
1837
  ]
2026
1838
  });
2027
1839
 
2028
- const valueOfAssets = () => sbsSelect({
1840
+ const valueOfAssets = (scope) => sbsSelect({
1841
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
2029
1842
  label: 'Value of Your Assets?',
2030
- name: 'Value_Of_Assets',
2031
1843
  options: [
2032
1844
  "Less than 50K",
2033
1845
  "50K to 100K",
@@ -2038,49 +1850,6 @@ const valueOfAssets = () => sbsSelect({
2038
1850
  ]
2039
1851
  });
2040
1852
 
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
1853
  const wouldLikeLawyerTo = () => sbsRadio({
2085
1854
  label: 'I Would Like a Lawyer to:',
2086
1855
  name: 'Would_Like_Lawyer_To',
@@ -2156,17 +1925,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2156
1925
  }
2157
1926
  );
2158
1927
 
2159
- const AutoAndCarAccidentsQuestions = () => group(
1928
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2160
1929
  'AutoAndCarAccidentsQuestions',
2161
1930
  {
2162
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1931
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2163
1932
  children: [
2164
- haveAttorney(),
2165
- incidentDate(),
2166
- atFault(),
2167
- primaryInjury(),
2168
- doctorTreatment(),
2169
- policeReportFiled()
1933
+ haveAttorney(scope),
1934
+ incidentDate(scope),
1935
+ atFault(scope),
1936
+ primaryInjury(scope),
1937
+ doctorTreatment(scope),
1938
+ policeReportFiled(scope)
2170
1939
  ]
2171
1940
  }
2172
1941
  );
@@ -2211,32 +1980,32 @@ const BusinessLawyersQuestions = () => group(
2211
1980
  }
2212
1981
  );
2213
1982
 
2214
- const ChildCustodyAndSupportQuestions = () => group(
1983
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2215
1984
  'ChildCustodyAndSupportQuestions',
2216
1985
  {
2217
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
1986
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2218
1987
  children: [
2219
- haveAttorney(),
2220
- childRelationship(),
2221
- childHome(),
2222
- childPrimaryCaregiver(),
2223
- degreeOfInterest(),
2224
- lawyerPaymentMethod()
1988
+ haveAttorney(scope),
1989
+ childRelationship(scope),
1990
+ childHome(scope),
1991
+ childPrimaryCaregiver(scope),
1992
+ degreeOfInterest(scope),
1993
+ lawyerPaymentMethod(scope)
2225
1994
  ]
2226
1995
  }
2227
1996
  );
2228
1997
 
2229
- const ChildCustodyQuestions = () => group(
1998
+ const ChildCustodyQuestions = (condition, scope) => group(
2230
1999
  'ChildCustodyQuestions',
2231
2000
  {
2232
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2001
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2233
2002
  children: [
2234
- haveAttorney(),
2235
- childRelationship(),
2236
- childHome(),
2237
- childPrimaryCaregiver(),
2238
- degreeOfInterest(),
2239
- lawyerPaymentMethod()
2003
+ haveAttorney(scope),
2004
+ childRelationship(scope),
2005
+ childHome(scope),
2006
+ childPrimaryCaregiver(scope),
2007
+ degreeOfInterest(scope),
2008
+ lawyerPaymentMethod(scope)
2240
2009
  ]
2241
2010
  }
2242
2011
  );
@@ -2373,32 +2142,32 @@ const DebtAndCollectionsQuestions = () => group(
2373
2142
  }
2374
2143
  );
2375
2144
 
2376
- const DivorceQuestions = () => group(
2145
+ const DivorceQuestions = (condition, scope) => group(
2377
2146
  'DivorceQuestions',
2378
2147
  {
2379
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2148
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2380
2149
  children: [
2381
- haveAttorney(),
2382
- maritalStatus(),
2383
- haveChildren(),
2384
- degreeOfInterest(),
2385
- lawyerPaymentMethod()
2150
+ haveAttorney(scope),
2151
+ maritalStatus(scope),
2152
+ haveChildren(scope),
2153
+ degreeOfInterest(scope),
2154
+ lawyerPaymentMethod(scope)
2386
2155
  ]
2387
2156
  }
2388
2157
  );
2389
2158
 
2390
- const DUIAndDWIQuestions = () => group(
2159
+ const DUIAndDWIQuestions = (condition, scope) => group(
2391
2160
  'DUIAndDWIQuestions',
2392
2161
  {
2393
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2162
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2394
2163
  children: [
2395
- haveAttorney(),
2396
- incidentDate(),
2397
- priorAlcoholOffenses(),
2398
- typeOfAlcoholTest(),
2399
- bloodContentAlcholTest(),
2400
- pendingCharges(),
2401
- degreeOfInterestHelp()
2164
+ haveAttorney(scope),
2165
+ incidentDate(scope),
2166
+ priorAlcoholOffenses(scope),
2167
+ typeOfAlcoholTest(scope),
2168
+ bloodContentAlcholTest(scope),
2169
+ pendingCharges(scope),
2170
+ degreeOfInterestHelp(scope)
2402
2171
  ]
2403
2172
  }
2404
2173
  );
@@ -2544,19 +2313,19 @@ const IdentityTheftQuestions = () => group(
2544
2313
  }
2545
2314
  );
2546
2315
 
2547
- const ImmigrationAndVisasQuestions = () => group(
2316
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2548
2317
  'ImmigrationAndVisasQuestions',
2549
2318
  {
2550
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2319
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2551
2320
  children: [
2552
- haveAttorney(),
2553
- countryOfCitizenship(),
2554
- immigrationLocation(),
2555
- immigrationEntry(),
2556
- immigrationType(),
2557
- immigrationStatus(),
2558
- immigrationDetails(),
2559
- 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)
2560
2329
  ]
2561
2330
  }
2562
2331
  );
@@ -2597,19 +2366,19 @@ const LemonLawQuestions = () => group(
2597
2366
  }
2598
2367
  );
2599
2368
 
2600
- const LongTermDisabilityQuestions = () => group(
2369
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2601
2370
  'LongTermDisabilityQuestions',
2602
2371
  {
2603
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2372
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2604
2373
  children: [
2605
- haveAttorney(),
2606
- applicantOccupation(),
2607
- applicantAge(),
2608
- applicantLTDisabilityPolicy(),
2609
- applicantDisabilityHowObtain(),
2610
- applicantPreviouslyAppliedLtdBenefits(),
2611
- applicantReceivedDisabilityBenefits(),
2612
- 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)
2613
2382
  ]
2614
2383
  }
2615
2384
  );
@@ -2629,18 +2398,6 @@ const MedicalMalpracticeQuestions = () => group(
2629
2398
  }
2630
2399
  );
2631
2400
 
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
2401
  const PatentsAndIntellectualPropertyQuestions = () => group(
2645
2402
  'PatentsAndIntellectualPropertyQuestions',
2646
2403
  {
@@ -2654,28 +2411,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2654
2411
  }
2655
2412
  );
2656
2413
 
2657
- const PersonalInjuryQuestions = () => group(
2414
+ const PersonalInjuryQuestions = (condition, scope) => group(
2658
2415
  'PersonalInjuryQuestions',
2659
2416
  {
2660
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2417
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2661
2418
  children: [
2662
- haveAttorney(),
2663
- incidentDate(),
2664
- claimStatus(),
2665
- atFault(),
2666
- primaryInjury(),
2667
- doctorTreatment()
2419
+ haveAttorney(scope),
2420
+ incidentDate(scope),
2421
+ claimStatus(scope),
2422
+ atFault(scope),
2423
+ primaryInjury(scope),
2424
+ doctorTreatment(scope)
2668
2425
  ]
2669
2426
  }
2670
2427
  );
2671
2428
 
2672
- const PowerofAttorneyQuestions = () => group(
2429
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2673
2430
  'PowerofAttorneyQuestions',
2674
2431
  {
2675
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2432
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2676
2433
  children: [
2677
- haveAttorney(),
2678
- degreeOfInterestHelp()
2434
+ haveAttorney(scope),
2435
+ degreeOfInterestHelp(scope)
2679
2436
  ]
2680
2437
  }
2681
2438
  );
@@ -2788,30 +2545,6 @@ const UnemploymentQuestions = () => group(
2788
2545
  }
2789
2546
  );
2790
2547
 
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
2548
  const VictimOfACrimeQuestions = () => group(
2816
2549
  'VictimOfACrimeQuestions',
2817
2550
  {
@@ -2827,32 +2560,32 @@ const VictimOfACrimeQuestions = () => group(
2827
2560
  }
2828
2561
  );
2829
2562
 
2830
- const WillsAndTrustsQuestions = () => group(
2563
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2831
2564
  'WillsAndTrustsQuestions',
2832
2565
  {
2833
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2566
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2834
2567
  children: [
2835
- haveAttorney(),
2836
- valueOfAssets(),
2837
- typeOfAssets(),
2838
- roleInMatterProbate(),
2839
- estateLegalServicesNeeded(),
2840
- degreeOfInterestHelp()
2568
+ haveAttorney(scope),
2569
+ valueOfAssets(scope),
2570
+ typeOfAssets(scope),
2571
+ roleInMatterProbate(scope),
2572
+ estateLegalServicesNeeded(scope),
2573
+ degreeOfInterestHelp(scope)
2841
2574
  ]
2842
2575
  }
2843
2576
  );
2844
2577
 
2845
- const WorkersCompensationQuestions = () => group(
2578
+ const WorkersCompensationQuestions = (condition, scope) => group(
2846
2579
  'WorkersCompensationQuestions',
2847
2580
  {
2848
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2581
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2849
2582
  children: [
2850
- haveAttorney(),
2851
- incidentDate(),
2852
- claimStatus(),
2853
- primaryInjury(),
2854
- causeOfInjury(),
2855
- doctorTreatment()
2583
+ haveAttorney(scope),
2584
+ incidentDate(scope),
2585
+ claimStatus(scope),
2586
+ primaryInjury(scope),
2587
+ causeOfInjury(scope),
2588
+ doctorTreatment(scope)
2856
2589
  ]
2857
2590
  }
2858
2591
  );
@@ -2922,21 +2655,17 @@ const findLastInput = (n) => {
2922
2655
 
2923
2656
  const stepDefaults = (step) => ({
2924
2657
  $el: 'section',
2925
- if: '$stepIsEnabled("' + step + '")',
2926
2658
  attrs: {
2927
- style: {
2928
- if: '$activeStep !== "' + step + '"',
2929
- then: 'display: none;'
2930
- }
2659
+ hidden: '$activeStep !== "' + step + '"'
2931
2660
  }
2932
2661
  });
2933
2662
 
2934
2663
  function questionsStepHeadline(updates) {
2935
2664
  return {
2936
2665
  $el: 'h3',
2937
- children: updates.headline || 'Tell Us About Your Case',
2666
+ children: updates.headline || 'Tell Us About Your Situation',
2938
2667
  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'
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'
2940
2669
  }
2941
2670
  }
2942
2671
  }
@@ -2947,7 +2676,7 @@ function commentsStepHeadline(updates) {
2947
2676
  $el: 'h3',
2948
2677
  children: updates.headline || 'Additional Case Details',
2949
2678
  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 || '')
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 || '')
2951
2680
  }
2952
2681
  }
2953
2682
  }
@@ -2957,17 +2686,7 @@ function firstAndLastStepHeadline(updates) {
2957
2686
  $el: 'h3',
2958
2687
  children: updates.headline || 'Please Provide a Contact Name',
2959
2688
  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 || '')
2961
- }
2962
- }
2963
- }
2964
-
2965
- function legalCrossSellsStepHeadline(updates) {
2966
- return {
2967
- $el: 'h3',
2968
- children: updates.headline || 'Do any of the following situations apply?',
2969
- 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 || '')
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 || '')
2971
2690
  }
2972
2691
  }
2973
2692
  }
@@ -2977,7 +2696,7 @@ function contactStepHeadline(updates) {
2977
2696
  $el: 'h3',
2978
2697
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2979
2698
  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'
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'
2981
2700
  }
2982
2701
  }
2983
2702
  }
@@ -3024,10 +2743,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
3024
2743
  }
3025
2744
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
3026
2745
  const lastInput = findLastInput(inputs[inputs.length - 1]);
3027
- if (nextOnEnter === true) {
2746
+ if (lastInput && nextOnEnter === true) {
3028
2747
  lastInput.onKeypress = NEXT_ON_ENTER;
3029
2748
  }
3030
- if (nextOnInput === true) {
2749
+ if (lastInput && nextOnInput === true) {
3031
2750
  lastInput.onInput = NEXT_ON_INPUT;
3032
2751
  }
3033
2752
  }
@@ -3148,7 +2867,6 @@ const AllTOLPQuestions = () => {
3148
2867
  LemonLawQuestions(),
3149
2868
  LongTermDisabilityQuestions(),
3150
2869
  MedicalMalpracticeQuestions(),
3151
- NursingHomeAbuseQuestions(),
3152
2870
  PatentsAndIntellectualPropertyQuestions(),
3153
2871
  PersonalInjuryQuestions(),
3154
2872
  PowerofAttorneyQuestions(),
@@ -3160,8 +2878,6 @@ const AllTOLPQuestions = () => {
3160
2878
  TaxAndIRSQuestions(),
3161
2879
  TrafficAndTicketsQuestions(),
3162
2880
  UnemploymentQuestions(),
3163
- VaccinationInjuryQuestions(),
3164
- VeteransDisabilityQuestions(),
3165
2881
  VictimOfACrimeQuestions(),
3166
2882
  WillsAndTrustsQuestions(),
3167
2883
  WorkersCompensationQuestions(),
@@ -3185,17 +2901,6 @@ function generalLegalTOLPQuestions(updates = {}) {
3185
2901
  )
3186
2902
  }
3187
2903
 
3188
- function legalCrossSells(updates = {}) {
3189
- return step(
3190
- 'legalCrossSells',
3191
- [
3192
- legalCrossSellsStepHeadline(updates),
3193
- legalCrossSells$1(),
3194
- ],
3195
- updates.nextOnEnter
3196
- )
3197
- }
3198
-
3199
2904
  const formNavigationV2 = () => ({
3200
2905
  $el: 'div',
3201
2906
  attrs: {
@@ -3291,7 +2996,7 @@ const schema = [
3291
2996
  props: formProps({
3292
2997
  formId: 'generalLegal',
3293
2998
  redirectMap: legalRedirectMap(),
3294
- valueOverrideMap: legalAllValueOverrideMap
2999
+ valueOverrideMap: legalAllValueOverrideMap,
3295
3000
  }),
3296
3001
  children: [
3297
3002
  headline({
@@ -3311,7 +3016,16 @@ const schema = [
3311
3016
  commentsWithBankruptcyV2({
3312
3017
  nextOnEnter: false
3313
3018
  }),
3314
- legalCrossSells(),
3019
+ // steps.legalCrossSells(),
3020
+ // steps.autoAndCarAccidentCrossSellQuestions(),
3021
+ // steps.personalInjuryCrossSellQuestions(),
3022
+ // steps.workersCompensationCrossSellQuestions(),
3023
+ // steps.duiAndDWICrossSellQuestions(),
3024
+ // steps.longTermDisabilityCrossSellQuestions(),
3025
+ // steps.powerOfAttorneyCrossSellQuestions(),
3026
+ // steps.willsAndTrustsCrossSellQuestions(),
3027
+ // steps.divorceAndSeparationCrossSellQuestions(),
3028
+ // steps.childCustodyCrossSellQuestions(),
3315
3029
  firstAndLastV2(),
3316
3030
  contactInfoV2({
3317
3031
  nextOnEnter: false