bhl-forms 0.2.9 → 0.3.1

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 (69) hide show
  1. package/dist/bhl-forms.es.js +1013 -590
  2. package/dist/bhl-forms.iife.js +7 -7
  3. package/dist/bhl-forms.modern.es.js +1710 -1221
  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 +47 -47
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +2 -2
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/childAndFamily.es.js +48 -48
  13. package/dist/forms/childAndFamily.iife.js +1 -1
  14. package/dist/forms/childAndFamily.json +1 -1
  15. package/dist/forms/civilLawsuit.es.js +49 -48
  16. package/dist/forms/civilLawsuit.iife.js +1 -1
  17. package/dist/forms/civilLawsuit.json +1 -1
  18. package/dist/forms/coins.es.js +2 -2
  19. package/dist/forms/coins.iife.js +1 -1
  20. package/dist/forms/contracts.es.js +13 -13
  21. package/dist/forms/contracts.iife.js +1 -1
  22. package/dist/forms/contracts.json +1 -1
  23. package/dist/forms/criminal.es.js +169 -169
  24. package/dist/forms/criminal.iife.js +1 -1
  25. package/dist/forms/criminal.json +1 -1
  26. package/dist/forms/employmentAndWorkplace.es.js +41 -41
  27. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  28. package/dist/forms/employmentAndWorkplace.json +1 -1
  29. package/dist/forms/generalLegal.es.js +310 -176
  30. package/dist/forms/generalLegal.iife.js +1 -1
  31. package/dist/forms/generalLegal.json +1 -1
  32. package/dist/forms/generalLegalPopUnder.es.js +177 -176
  33. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  34. package/dist/forms/generalLegalPopUnder.json +1 -1
  35. package/dist/forms/generalLegalPopUnderTF.es.js +169 -169
  36. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  37. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  38. package/dist/forms/generalLegalThankYou.es.js +169 -169
  39. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  40. package/dist/forms/generalLegalThankYou.json +1 -1
  41. package/dist/forms/harassmentAndDiscrimination.es.js +13 -13
  42. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  43. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  44. package/dist/forms/malpractice.es.js +19 -19
  45. package/dist/forms/malpractice.iife.js +1 -1
  46. package/dist/forms/malpractice.json +1 -1
  47. package/dist/forms/mechanics.es.js +2 -2
  48. package/dist/forms/mechanics.iife.js +1 -1
  49. package/dist/forms/realEstate.es.js +169 -169
  50. package/dist/forms/realEstate.iife.js +1 -1
  51. package/dist/forms/realEstate.json +1 -1
  52. package/dist/forms/repossession.es.js +15 -15
  53. package/dist/forms/repossession.iife.js +1 -1
  54. package/dist/forms/repossession.json +1 -1
  55. package/dist/forms/ssdi.es.js +7 -7
  56. package/dist/forms/ssdi.iife.js +1 -1
  57. package/dist/forms/ssdi.json +1 -1
  58. package/dist/forms/testForm.es.js +3 -3
  59. package/dist/forms/testForm.iife.js +1 -1
  60. package/dist/forms/testForm.json +1 -1
  61. package/dist/forms/testRedirects.es.js +2 -2
  62. package/dist/forms/testRedirects.iife.js +1 -1
  63. package/dist/forms/vets.es.js +2 -2
  64. package/dist/forms/vets.iife.js +1 -1
  65. package/dist/forms/willsAndTrusts.es.js +41 -41
  66. package/dist/forms/willsAndTrusts.iife.js +1 -1
  67. package/dist/forms/willsAndTrusts.json +1 -1
  68. package/dist/main.css +1 -1
  69. package/package.json +4 -4
@@ -717,16 +717,16 @@ const amountPaymentsPastDue = () => sbsSelect({
717
717
  ]
718
718
  });
719
719
 
720
- const applicantOccupation = () => sbsText({
720
+ const applicantOccupation = (scope) => sbsText({
721
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
721
722
  label: "What is the Applicant's Occupation?",
722
- name: 'Applicant_Occupation',
723
723
  placeholder: "Occupation"
724
724
  });
725
725
 
726
726
 
727
- const applicantAge = () => sbsSelect({
727
+ const applicantAge = (scope) => sbsSelect({
728
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
728
729
  label: 'Age of Applicant?',
729
- name: 'Applicant_Age',
730
730
  options: [
731
731
  "18",
732
732
  "19",
@@ -779,9 +779,9 @@ const applicantAge = () => sbsSelect({
779
779
  ]
780
780
  });
781
781
 
782
- const applicantDisabilityHowObtain = () => sbsSelect({
782
+ const applicantDisabilityHowObtain = (scope) => sbsSelect({
783
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
783
784
  label: 'How Did Applicant Obtain the Disability Policy?',
784
- name: 'Applicant_Disability_How_Obtain',
785
785
  options: [
786
786
  "Employer",
787
787
  "Self",
@@ -789,8 +789,8 @@ const applicantDisabilityHowObtain = () => sbsSelect({
789
789
  ]
790
790
  });
791
791
 
792
- const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
793
- name: 'Applicant_Previously_Apply_Ltd_Benefits',
792
+ const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
793
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
794
794
  label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
795
795
  options: [
796
796
  "Yes, claim pending",
@@ -799,9 +799,9 @@ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
799
799
  ]
800
800
  });
801
801
 
802
- const applicantMonthlySalary = () => sbsSelect({
802
+ const applicantMonthlySalary = (scope) => sbsSelect({
803
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
803
804
  label: "Applicant's Monthly Salary/Pay When Last at Work:",
804
- name: 'Applicant_Monthly_Salary',
805
805
  options: [
806
806
  "< $1,000",
807
807
  "$1,000 - $2,000",
@@ -817,8 +817,8 @@ const applicantMonthlySalary = () => sbsSelect({
817
817
  ]
818
818
  });
819
819
 
820
- const applicantReceivedDisabilityBenefits = () => sbsRadio({
821
- name: 'Applicant_Received_Disability_Benefits',
820
+ const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
821
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
822
822
  label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
823
823
  options: [
824
824
  "Yes, currently receiving",
@@ -827,13 +827,13 @@ const applicantReceivedDisabilityBenefits = () => sbsRadio({
827
827
  ]
828
828
  });
829
829
 
830
- const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
831
- name: 'Applicant_Lt_Disability_Policy',
830
+ const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
831
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
832
832
  label: 'Does Applicant have a Long Term Disability Policy?'
833
833
  });
834
834
 
835
- const atFault = () => sbsYesNoRadio({
836
- name: 'At_Fault',
835
+ const atFault = (scope) => sbsYesNoRadio({
836
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
837
837
  label: 'Were You at Fault?'
838
838
  });
839
839
 
@@ -846,9 +846,9 @@ const bankruptcyCrossSell = () => sbsCheckbox({
846
846
  helpClass: "!t-text-sm"
847
847
  });
848
848
 
849
- const bloodContentAlcholTest = () => sbsSelect({
849
+ const bloodContentAlcholTest = (scope) => sbsSelect({
850
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
850
851
  label: 'Blood Alcohol Content Measured by Test:',
851
- name: 'Blood_Alcohol_Content_Test',
852
852
  options: [
853
853
  "No Test",
854
854
  "0.00% - 0.04%",
@@ -885,9 +885,9 @@ const businessType = () => sbs2ColRadio({
885
885
  ]
886
886
  });
887
887
 
888
- const causeOfInjury = () => sbsSelect({
888
+ const causeOfInjury = (scope) => sbsSelect({
889
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
889
890
  label: 'Cause of Injury:',
890
- name: 'Cause_Of_Injury',
891
891
  options: [
892
892
  "Traumatic Physical Injury (Accident)",
893
893
  "Repeated Trauma Injury",
@@ -952,9 +952,9 @@ const civilRightsType = () => sbsSelect({
952
952
  ]
953
953
  });
954
954
 
955
- const childHome = () => sbsSelect({
955
+ const childHome = (scope) => sbsSelect({
956
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
956
957
  label: 'With Whom Do the Children Currently Live?',
957
- name: 'Child_Home',
958
958
  options: [
959
959
  'Mother',
960
960
  'Father',
@@ -963,9 +963,9 @@ const childHome = () => sbsSelect({
963
963
  ]
964
964
  });
965
965
 
966
- const childPrimaryCaregiver = () => sbsSelect({
966
+ const childPrimaryCaregiver = (scope) => sbsSelect({
967
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
967
968
  label: 'Who is the Primary Caregiver?',
968
- name: 'Child_Primary_Caregiver',
969
969
  options: [
970
970
  'Mother',
971
971
  'Father',
@@ -973,9 +973,9 @@ const childPrimaryCaregiver = () => sbsSelect({
973
973
  ]
974
974
  });
975
975
 
976
- const childRelationship = () => sbsSelect({
976
+ const childRelationship = (scope) => sbsSelect({
977
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
977
978
  label: 'Your Relationship to Child(ren):',
978
- name: 'Child_Relationship',
979
979
  options: [
980
980
  'Father',
981
981
  'Mother',
@@ -985,9 +985,9 @@ const childRelationship = () => sbsSelect({
985
985
  ]
986
986
  });
987
987
 
988
- const claimStatus = () => sbsSelect({
988
+ const claimStatus = (scope) => sbsSelect({
989
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
989
990
  label: "Status of Claim:",
990
- name: 'Claim_Status',
991
991
  options: [
992
992
  "No action taken yet",
993
993
  "Demand for compensation made",
@@ -1022,9 +1022,9 @@ const consumerLawyerType = () => sbsSelect({
1022
1022
  ]
1023
1023
  });
1024
1024
 
1025
- const countryOfCitizenship = () => sbsSelect({
1025
+ const countryOfCitizenship = (scope) => sbsSelect({
1026
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1026
1027
  label: 'What is Your Current Country of Citizenship?',
1027
- name: 'Country_Of_Citizenship',
1028
1028
  options: [
1029
1029
  "Afghanistan",
1030
1030
  "Albania",
@@ -1248,10 +1248,10 @@ const criminalChargesFiled = () => sbsRadio({
1248
1248
  ]
1249
1249
  });
1250
1250
 
1251
- const degreeOfInterest = (help) => sbsSelect({
1251
+ const degreeOfInterest = (scope, help) => sbsSelect({
1252
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1253
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1252
1254
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1253
- id: 'Degree_Of_Interest',
1254
- name: 'Degree_Of_Interest',
1255
1255
  help: help,
1256
1256
  options: [
1257
1257
  'Definitely',
@@ -1266,7 +1266,7 @@ const defaultNotice = () => sbsYesNoRadio({
1266
1266
  label: 'Have You Received a Notice of Default from the Lender?'
1267
1267
  });
1268
1268
 
1269
- const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
1269
+ const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
1270
1270
 
1271
1271
  const disabilityConditionStopWork = () => sbsYesNoRadio({
1272
1272
  name: 'Disability_Condition_Stop_Work',
@@ -1278,8 +1278,8 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1278
1278
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1279
1279
  });
1280
1280
 
1281
- const doctorTreatment = () => sbsYesNoRadio({
1282
- name: 'Doctor_Treatment',
1281
+ const doctorTreatment = (scope) => sbsYesNoRadio({
1282
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1283
1283
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1284
1284
  });
1285
1285
 
@@ -1336,9 +1336,9 @@ const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
1336
1336
  ]
1337
1337
  }, updates));
1338
1338
 
1339
- const estateLegalServicesNeeded = () => sbsSelect({
1339
+ const estateLegalServicesNeeded = (scope) => sbsSelect({
1340
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1340
1341
  label: "Legal Services Needed for Your Estate:",
1341
- name: 'Estate_Legal_Services_Needed',
1342
1342
  options: [
1343
1343
  "Charitable Giving",
1344
1344
  "Contested Wills",
@@ -1422,13 +1422,13 @@ const generalTOLP = (updates) => sbsSelect(merge({
1422
1422
  ]
1423
1423
  }, updates));
1424
1424
 
1425
- const haveAttorney = () => sbsYesNoRadio({
1426
- name: 'Have_Attorney',
1425
+ const haveAttorney = (scope) => sbsYesNoRadio({
1426
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1427
1427
  label: 'Already Working with An Attorney?'
1428
1428
  });
1429
1429
 
1430
- const haveChildren = () => sbsYesNoRadio({
1431
- name: 'Have_Children',
1430
+ const haveChildren = (scope) => sbsYesNoRadio({
1431
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1432
1432
  label: 'Do You Have Children?'
1433
1433
  });
1434
1434
 
@@ -1437,9 +1437,9 @@ const haveCourtDate = () => sbsYesNoRadio({
1437
1437
  label: 'Do You Have a Court Date?'
1438
1438
  });
1439
1439
 
1440
- const immigrationDetails = () => sbsSelect({
1440
+ const immigrationDetails = (scope) => sbsSelect({
1441
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1441
1442
  label: 'Where is the Person Seeking Immigration Located?',
1442
- name: 'Immigration_Details',
1443
1443
  options: [
1444
1444
  "In the USA with proper documentation",
1445
1445
  "In the USA without proper documentation",
@@ -1451,9 +1451,9 @@ const immigrationDetails = () => sbsSelect({
1451
1451
  ]
1452
1452
  });
1453
1453
 
1454
- const immigrationEntry = () => sbsSelect({
1454
+ const immigrationEntry = (scope) => sbsSelect({
1455
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1455
1456
  label: 'How are you Trying to Enter the Country?',
1456
- name: 'Immigration_Entry',
1457
1457
  options: [
1458
1458
  "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1459
1459
  "Illegally",
@@ -1462,18 +1462,18 @@ const immigrationEntry = () => sbsSelect({
1462
1462
  ]
1463
1463
  });
1464
1464
 
1465
- const immigrationLocation = () => sbsSelect({
1465
+ const immigrationLocation = (scope) => sbsSelect({
1466
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1466
1467
  label: 'Where Are You Migrating To?',
1467
- name: 'Immigration_Location',
1468
1468
  options: [
1469
1469
  "In the USA",
1470
1470
  "Outside the USA"
1471
1471
  ]
1472
1472
  });
1473
1473
 
1474
- const immigrationType = () => sbsSelect({
1474
+ const immigrationType = (scope) => sbsSelect({
1475
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1475
1476
  label: 'What Type of Immigration Issue?',
1476
- name: 'Immigration_Type',
1477
1477
  options: [
1478
1478
  "Citizenship (for current green card holders)",
1479
1479
  "Permanent Visa Family Based (green cards)",
@@ -1488,9 +1488,9 @@ const immigrationType = () => sbsSelect({
1488
1488
  ]
1489
1489
  });
1490
1490
 
1491
- const immigrationStatus = () => sbsSelect({
1491
+ const immigrationStatus = (scope) => sbsSelect({
1492
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1492
1493
  label: 'What is the Current Status of the Immigration Case?',
1493
- name: 'Immigration_Status',
1494
1494
  options: [
1495
1495
  "Out of Status (overstayed my visa)",
1496
1496
  "Current Visa Holder (in status)",
@@ -1500,9 +1500,9 @@ const immigrationStatus = () => sbsSelect({
1500
1500
  ]
1501
1501
  });
1502
1502
 
1503
- const incidentDate = () => sbsDate({
1503
+ const incidentDate = (scope) => sbsDate({
1504
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1504
1505
  label: 'Date of Incident:',
1505
- name: 'Incident_Date'
1506
1506
  });
1507
1507
 
1508
1508
  const lastName = () => sbsText({
@@ -1553,9 +1553,9 @@ const lawsuitOtherParty = () => sbsSelect({
1553
1553
  ]
1554
1554
  });
1555
1555
 
1556
- const lawyerPaymentMethod = () => sbsSelect({
1556
+ const lawyerPaymentMethod = (scope) => sbsSelect({
1557
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1557
1558
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1558
- name: 'Lawyer_Payment_Method',
1559
1559
  help: 'No payment necessary to speak with lawyers.',
1560
1560
  options: [
1561
1561
  'Cash',
@@ -1584,9 +1584,9 @@ const loanAmount = () => sbsSelect({
1584
1584
  ]
1585
1585
  });
1586
1586
 
1587
- const maritalStatus = () => sbsSelect({
1587
+ const maritalStatus = (scope) => sbsSelect({
1588
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1588
1589
  label: 'Marital Status:',
1589
- name: 'Marital_Status',
1590
1590
  options: [
1591
1591
  'Unmarried, Living Together',
1592
1592
  'Unmarried, Do Not Live Together',
@@ -1669,8 +1669,8 @@ const patentFor = () => sbsSelect({
1669
1669
  ]
1670
1670
  });
1671
1671
 
1672
- const pendingCharges = () => sbsYesNoRadio({
1673
- name: 'Pending_Charges',
1672
+ const pendingCharges = (scope) => sbsYesNoRadio({
1673
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1674
1674
  label: 'Do you currently have any pending charges?'
1675
1675
  });
1676
1676
 
@@ -1692,9 +1692,9 @@ const phone = () => sbsText({
1692
1692
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1693
1693
  });
1694
1694
 
1695
- const primaryInjury = () => sbs2ColRadio({
1695
+ const primaryInjury = (scope) => sbs2ColRadio({
1696
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1696
1697
  label: 'Primary Injury:',
1697
- name: 'Primary_Injury',
1698
1698
  options: [
1699
1699
  "Anxiety",
1700
1700
  "Back or Neck Pain",
@@ -1707,13 +1707,13 @@ const primaryInjury = () => sbs2ColRadio({
1707
1707
  ]
1708
1708
  });
1709
1709
 
1710
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1711
- name: 'Prior_Alcohol_Offenses',
1710
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1711
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1712
1712
  label: 'Any Prior Alcohol Related Offenses?'
1713
1713
  });
1714
1714
 
1715
- const policeReportFiled = () => sbsYesNoRadio({
1716
- name: 'Police_Report_Filed',
1715
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1716
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1717
1717
  label: 'Was a Police Report Filed?'
1718
1718
  });
1719
1719
 
@@ -1772,9 +1772,9 @@ const roleInMatterCriminal = () => sbsRadio({
1772
1772
  ]
1773
1773
  });
1774
1774
 
1775
- const roleInMatterProbate = () => sbsSelect({
1775
+ const roleInMatterProbate = (scope) => sbsSelect({
1776
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1776
1777
  label: "What Is Your Role in this Matter?",
1777
- name: 'Role_In_Matter_Probate',
1778
1778
  options: [
1779
1779
  "Preparing My Will",
1780
1780
  "Executor",
@@ -1867,9 +1867,9 @@ const TCPAConsent = () => ({
1867
1867
  }
1868
1868
  });
1869
1869
 
1870
- const typeOfAlcoholTest = () => sbsSelect({
1870
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1871
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1871
1872
  label: 'Type of Alcohol Test Performed?',
1872
- name: 'Type_Of_Alcohol_Test',
1873
1873
  options: [
1874
1874
  "No Test",
1875
1875
  "Refused Test",
@@ -1880,9 +1880,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1880
1880
  ]
1881
1881
  });
1882
1882
 
1883
- const typeOfAssets = () => col2Checkbox({
1883
+ const typeOfAssets = (scope) => col2Checkbox({
1884
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1884
1885
  label: 'Type of Assets:',
1885
- name: 'Type_Of_Assets',
1886
1886
  options: [
1887
1887
  "Business Interests",
1888
1888
  "Cash",
@@ -1931,9 +1931,9 @@ const trafficViolations = () => sbsSelect({
1931
1931
  ]
1932
1932
  });
1933
1933
 
1934
- const valueOfAssets = () => sbsSelect({
1934
+ const valueOfAssets = (scope) => sbsSelect({
1935
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1935
1936
  label: 'Value of Your Assets?',
1936
- name: 'Value_Of_Assets',
1937
1937
  options: [
1938
1938
  "Less than 50K",
1939
1939
  "50K to 100K",
@@ -2062,17 +2062,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2062
2062
  }
2063
2063
  );
2064
2064
 
2065
- const AutoAndCarAccidentsQuestions = () => group(
2065
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2066
2066
  'AutoAndCarAccidentsQuestions',
2067
2067
  {
2068
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
2068
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2069
2069
  children: [
2070
- haveAttorney(),
2071
- incidentDate(),
2072
- atFault(),
2073
- primaryInjury(),
2074
- doctorTreatment(),
2075
- policeReportFiled()
2070
+ haveAttorney(scope),
2071
+ incidentDate(scope),
2072
+ atFault(scope),
2073
+ primaryInjury(scope),
2074
+ doctorTreatment(scope),
2075
+ policeReportFiled(scope)
2076
2076
  ]
2077
2077
  }
2078
2078
  );
@@ -2117,32 +2117,32 @@ const BusinessLawyersQuestions = () => group(
2117
2117
  }
2118
2118
  );
2119
2119
 
2120
- const ChildCustodyAndSupportQuestions = () => group(
2120
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2121
2121
  'ChildCustodyAndSupportQuestions',
2122
2122
  {
2123
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
2123
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2124
2124
  children: [
2125
- haveAttorney(),
2126
- childRelationship(),
2127
- childHome(),
2128
- childPrimaryCaregiver(),
2129
- degreeOfInterest(),
2130
- lawyerPaymentMethod()
2125
+ haveAttorney(scope),
2126
+ childRelationship(scope),
2127
+ childHome(scope),
2128
+ childPrimaryCaregiver(scope),
2129
+ degreeOfInterest(scope),
2130
+ lawyerPaymentMethod(scope)
2131
2131
  ]
2132
2132
  }
2133
2133
  );
2134
2134
 
2135
- const ChildCustodyQuestions = () => group(
2135
+ const ChildCustodyQuestions = (condition, scope) => group(
2136
2136
  'ChildCustodyQuestions',
2137
2137
  {
2138
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2138
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2139
2139
  children: [
2140
- haveAttorney(),
2141
- childRelationship(),
2142
- childHome(),
2143
- childPrimaryCaregiver(),
2144
- degreeOfInterest(),
2145
- lawyerPaymentMethod()
2140
+ haveAttorney(scope),
2141
+ childRelationship(scope),
2142
+ childHome(scope),
2143
+ childPrimaryCaregiver(scope),
2144
+ degreeOfInterest(scope),
2145
+ lawyerPaymentMethod(scope)
2146
2146
  ]
2147
2147
  }
2148
2148
  );
@@ -2279,32 +2279,32 @@ const DebtAndCollectionsQuestions = () => group(
2279
2279
  }
2280
2280
  );
2281
2281
 
2282
- const DivorceQuestions = () => group(
2282
+ const DivorceQuestions = (condition, scope) => group(
2283
2283
  'DivorceQuestions',
2284
2284
  {
2285
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2285
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2286
2286
  children: [
2287
- haveAttorney(),
2288
- maritalStatus(),
2289
- haveChildren(),
2290
- degreeOfInterest(),
2291
- lawyerPaymentMethod()
2287
+ haveAttorney(scope),
2288
+ maritalStatus(scope),
2289
+ haveChildren(scope),
2290
+ degreeOfInterest(scope),
2291
+ lawyerPaymentMethod(scope)
2292
2292
  ]
2293
2293
  }
2294
2294
  );
2295
2295
 
2296
- const DUIAndDWIQuestions = () => group(
2296
+ const DUIAndDWIQuestions = (condition, scope) => group(
2297
2297
  'DUIAndDWIQuestions',
2298
2298
  {
2299
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2299
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2300
2300
  children: [
2301
- haveAttorney(),
2302
- incidentDate(),
2303
- priorAlcoholOffenses(),
2304
- typeOfAlcoholTest(),
2305
- bloodContentAlcholTest(),
2306
- pendingCharges(),
2307
- degreeOfInterestHelp()
2301
+ haveAttorney(scope),
2302
+ incidentDate(scope),
2303
+ priorAlcoholOffenses(scope),
2304
+ typeOfAlcoholTest(scope),
2305
+ bloodContentAlcholTest(scope),
2306
+ pendingCharges(scope),
2307
+ degreeOfInterestHelp(scope)
2308
2308
  ]
2309
2309
  }
2310
2310
  );
@@ -2450,19 +2450,19 @@ const IdentityTheftQuestions = () => group(
2450
2450
  }
2451
2451
  );
2452
2452
 
2453
- const ImmigrationAndVisasQuestions = () => group(
2453
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2454
2454
  'ImmigrationAndVisasQuestions',
2455
2455
  {
2456
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2456
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2457
2457
  children: [
2458
- haveAttorney(),
2459
- countryOfCitizenship(),
2460
- immigrationLocation(),
2461
- immigrationEntry(),
2462
- immigrationType(),
2463
- immigrationStatus(),
2464
- immigrationDetails(),
2465
- degreeOfInterestHelp()
2458
+ haveAttorney(scope),
2459
+ countryOfCitizenship(scope),
2460
+ immigrationLocation(scope),
2461
+ immigrationEntry(scope),
2462
+ immigrationType(scope),
2463
+ immigrationStatus(scope),
2464
+ immigrationDetails(scope),
2465
+ degreeOfInterestHelp(scope)
2466
2466
  ]
2467
2467
  }
2468
2468
  );
@@ -2503,19 +2503,19 @@ const LemonLawQuestions = () => group(
2503
2503
  }
2504
2504
  );
2505
2505
 
2506
- const LongTermDisabilityQuestions = () => group(
2506
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2507
2507
  'LongTermDisabilityQuestions',
2508
2508
  {
2509
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2509
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2510
2510
  children: [
2511
- haveAttorney(),
2512
- applicantOccupation(),
2513
- applicantAge(),
2514
- applicantLTDisabilityPolicy(),
2515
- applicantDisabilityHowObtain(),
2516
- applicantPreviouslyAppliedLtdBenefits(),
2517
- applicantReceivedDisabilityBenefits(),
2518
- applicantMonthlySalary()
2511
+ haveAttorney(scope),
2512
+ applicantOccupation(scope),
2513
+ applicantAge(scope),
2514
+ applicantLTDisabilityPolicy(scope),
2515
+ applicantDisabilityHowObtain(scope),
2516
+ applicantPreviouslyAppliedLtdBenefits(scope),
2517
+ applicantReceivedDisabilityBenefits(scope),
2518
+ applicantMonthlySalary(scope)
2519
2519
  ]
2520
2520
  }
2521
2521
  );
@@ -2560,28 +2560,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2560
2560
  }
2561
2561
  );
2562
2562
 
2563
- const PersonalInjuryQuestions = () => group(
2563
+ const PersonalInjuryQuestions = (condition, scope) => group(
2564
2564
  'PersonalInjuryQuestions',
2565
2565
  {
2566
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2566
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2567
2567
  children: [
2568
- haveAttorney(),
2569
- incidentDate(),
2570
- claimStatus(),
2571
- atFault(),
2572
- primaryInjury(),
2573
- doctorTreatment()
2568
+ haveAttorney(scope),
2569
+ incidentDate(scope),
2570
+ claimStatus(scope),
2571
+ atFault(scope),
2572
+ primaryInjury(scope),
2573
+ doctorTreatment(scope)
2574
2574
  ]
2575
2575
  }
2576
2576
  );
2577
2577
 
2578
- const PowerofAttorneyQuestions = () => group(
2578
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2579
2579
  'PowerofAttorneyQuestions',
2580
2580
  {
2581
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2581
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2582
2582
  children: [
2583
- haveAttorney(),
2584
- degreeOfInterestHelp()
2583
+ haveAttorney(scope),
2584
+ degreeOfInterestHelp(scope)
2585
2585
  ]
2586
2586
  }
2587
2587
  );
@@ -2733,32 +2733,32 @@ const VictimOfACrimeQuestions = () => group(
2733
2733
  }
2734
2734
  );
2735
2735
 
2736
- const WillsAndTrustsQuestions = () => group(
2736
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2737
2737
  'WillsAndTrustsQuestions',
2738
2738
  {
2739
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2739
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2740
2740
  children: [
2741
- haveAttorney(),
2742
- valueOfAssets(),
2743
- typeOfAssets(),
2744
- roleInMatterProbate(),
2745
- estateLegalServicesNeeded(),
2746
- degreeOfInterestHelp()
2741
+ haveAttorney(scope),
2742
+ valueOfAssets(scope),
2743
+ typeOfAssets(scope),
2744
+ roleInMatterProbate(scope),
2745
+ estateLegalServicesNeeded(scope),
2746
+ degreeOfInterestHelp(scope)
2747
2747
  ]
2748
2748
  }
2749
2749
  );
2750
2750
 
2751
- const WorkersCompensationQuestions = () => group(
2751
+ const WorkersCompensationQuestions = (condition, scope) => group(
2752
2752
  'WorkersCompensationQuestions',
2753
2753
  {
2754
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2754
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2755
2755
  children: [
2756
- haveAttorney(),
2757
- incidentDate(),
2758
- claimStatus(),
2759
- primaryInjury(),
2760
- causeOfInjury(),
2761
- doctorTreatment()
2756
+ haveAttorney(scope),
2757
+ incidentDate(scope),
2758
+ claimStatus(scope),
2759
+ primaryInjury(scope),
2760
+ causeOfInjury(scope),
2761
+ doctorTreatment(scope)
2762
2762
  ]
2763
2763
  }
2764
2764
  );
@@ -2840,9 +2840,9 @@ const stepDefaults = (step) => ({
2840
2840
  function questionsStepHeadline(updates) {
2841
2841
  return {
2842
2842
  $el: 'h3',
2843
- children: updates.headline || 'Tell Us About Your Case',
2843
+ children: updates.headline || 'Tell Us About Your Situation',
2844
2844
  attrs: {
2845
- 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'
2845
+ 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'
2846
2846
  }
2847
2847
  }
2848
2848
  }
@@ -2853,7 +2853,7 @@ function commentsStepHeadline(updates) {
2853
2853
  $el: 'h3',
2854
2854
  children: updates.headline || 'Additional Case Details',
2855
2855
  attrs: {
2856
- 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 || '')
2856
+ 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 || '')
2857
2857
  }
2858
2858
  }
2859
2859
  }
@@ -2863,7 +2863,7 @@ function firstAndLastStepHeadline(updates) {
2863
2863
  $el: 'h3',
2864
2864
  children: updates.headline || 'Please Provide a Contact Name',
2865
2865
  attrs: {
2866
- 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 || '')
2866
+ 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 || '')
2867
2867
  }
2868
2868
  }
2869
2869
  }
@@ -2873,7 +2873,7 @@ function contactStepHeadline(updates) {
2873
2873
  $el: 'h3',
2874
2874
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2875
2875
  attrs: {
2876
- 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'
2876
+ 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'
2877
2877
  }
2878
2878
  }
2879
2879
  }
@@ -2920,10 +2920,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2920
2920
  }
2921
2921
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2922
2922
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2923
- if (nextOnEnter === true) {
2923
+ if (lastInput && nextOnEnter === true) {
2924
2924
  lastInput.onKeypress = NEXT_ON_ENTER;
2925
2925
  }
2926
- if (nextOnInput === true) {
2926
+ if (lastInput && nextOnInput === true) {
2927
2927
  lastInput.onInput = NEXT_ON_INPUT;
2928
2928
  }
2929
2929
  }