bhl-forms 0.2.8 → 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 (70) 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 +5 -2
  64. package/dist/forms/vets.iife.js +1 -1
  65. package/dist/forms/vets.json +1 -1
  66. package/dist/forms/willsAndTrusts.es.js +41 -41
  67. package/dist/forms/willsAndTrusts.iife.js +1 -1
  68. package/dist/forms/willsAndTrusts.json +1 -1
  69. package/dist/main.css +1 -1
  70. package/package.json +4 -4
@@ -740,16 +740,16 @@ const amountPaymentsPastDue = () => sbsSelect({
740
740
  ]
741
741
  });
742
742
 
743
- const applicantOccupation = () => sbsText({
743
+ const applicantOccupation = (scope) => sbsText({
744
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
744
745
  label: "What is the Applicant's Occupation?",
745
- name: 'Applicant_Occupation',
746
746
  placeholder: "Occupation"
747
747
  });
748
748
 
749
749
 
750
- const applicantAge = () => sbsSelect({
750
+ const applicantAge = (scope) => sbsSelect({
751
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
751
752
  label: 'Age of Applicant?',
752
- name: 'Applicant_Age',
753
753
  options: [
754
754
  "18",
755
755
  "19",
@@ -802,9 +802,9 @@ const applicantAge = () => sbsSelect({
802
802
  ]
803
803
  });
804
804
 
805
- const applicantDisabilityHowObtain = () => sbsSelect({
805
+ const applicantDisabilityHowObtain = (scope) => sbsSelect({
806
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
806
807
  label: 'How Did Applicant Obtain the Disability Policy?',
807
- name: 'Applicant_Disability_How_Obtain',
808
808
  options: [
809
809
  "Employer",
810
810
  "Self",
@@ -812,8 +812,8 @@ const applicantDisabilityHowObtain = () => sbsSelect({
812
812
  ]
813
813
  });
814
814
 
815
- const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
816
- name: 'Applicant_Previously_Apply_Ltd_Benefits',
815
+ const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
816
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
817
817
  label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
818
818
  options: [
819
819
  "Yes, claim pending",
@@ -822,9 +822,9 @@ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
822
822
  ]
823
823
  });
824
824
 
825
- const applicantMonthlySalary = () => sbsSelect({
825
+ const applicantMonthlySalary = (scope) => sbsSelect({
826
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
826
827
  label: "Applicant's Monthly Salary/Pay When Last at Work:",
827
- name: 'Applicant_Monthly_Salary',
828
828
  options: [
829
829
  "< $1,000",
830
830
  "$1,000 - $2,000",
@@ -840,8 +840,8 @@ const applicantMonthlySalary = () => sbsSelect({
840
840
  ]
841
841
  });
842
842
 
843
- const applicantReceivedDisabilityBenefits = () => sbsRadio({
844
- name: 'Applicant_Received_Disability_Benefits',
843
+ const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
844
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
845
845
  label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
846
846
  options: [
847
847
  "Yes, currently receiving",
@@ -850,13 +850,13 @@ const applicantReceivedDisabilityBenefits = () => sbsRadio({
850
850
  ]
851
851
  });
852
852
 
853
- const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
854
- name: 'Applicant_Lt_Disability_Policy',
853
+ const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
854
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
855
855
  label: 'Does Applicant have a Long Term Disability Policy?'
856
856
  });
857
857
 
858
- const atFault = () => sbsYesNoRadio({
859
- name: 'At_Fault',
858
+ const atFault = (scope) => sbsYesNoRadio({
859
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
860
860
  label: 'Were You at Fault?'
861
861
  });
862
862
 
@@ -869,9 +869,9 @@ const bankruptcyCrossSell = () => sbsCheckbox({
869
869
  helpClass: "!t-text-sm"
870
870
  });
871
871
 
872
- const bloodContentAlcholTest = () => sbsSelect({
872
+ const bloodContentAlcholTest = (scope) => sbsSelect({
873
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
873
874
  label: 'Blood Alcohol Content Measured by Test:',
874
- name: 'Blood_Alcohol_Content_Test',
875
875
  options: [
876
876
  "No Test",
877
877
  "0.00% - 0.04%",
@@ -908,9 +908,9 @@ const businessType = () => sbs2ColRadio({
908
908
  ]
909
909
  });
910
910
 
911
- const causeOfInjury = () => sbsSelect({
911
+ const causeOfInjury = (scope) => sbsSelect({
912
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
912
913
  label: 'Cause of Injury:',
913
- name: 'Cause_Of_Injury',
914
914
  options: [
915
915
  "Traumatic Physical Injury (Accident)",
916
916
  "Repeated Trauma Injury",
@@ -975,9 +975,9 @@ const civilRightsType = () => sbsSelect({
975
975
  ]
976
976
  });
977
977
 
978
- const childHome = () => sbsSelect({
978
+ const childHome = (scope) => sbsSelect({
979
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
979
980
  label: 'With Whom Do the Children Currently Live?',
980
- name: 'Child_Home',
981
981
  options: [
982
982
  'Mother',
983
983
  'Father',
@@ -986,9 +986,9 @@ const childHome = () => sbsSelect({
986
986
  ]
987
987
  });
988
988
 
989
- const childPrimaryCaregiver = () => sbsSelect({
989
+ const childPrimaryCaregiver = (scope) => sbsSelect({
990
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
990
991
  label: 'Who is the Primary Caregiver?',
991
- name: 'Child_Primary_Caregiver',
992
992
  options: [
993
993
  'Mother',
994
994
  'Father',
@@ -996,9 +996,9 @@ const childPrimaryCaregiver = () => sbsSelect({
996
996
  ]
997
997
  });
998
998
 
999
- const childRelationship = () => sbsSelect({
999
+ const childRelationship = (scope) => sbsSelect({
1000
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
1000
1001
  label: 'Your Relationship to Child(ren):',
1001
- name: 'Child_Relationship',
1002
1002
  options: [
1003
1003
  'Father',
1004
1004
  'Mother',
@@ -1008,9 +1008,9 @@ const childRelationship = () => sbsSelect({
1008
1008
  ]
1009
1009
  });
1010
1010
 
1011
- const claimStatus = () => sbsSelect({
1011
+ const claimStatus = (scope) => sbsSelect({
1012
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
1012
1013
  label: "Status of Claim:",
1013
- name: 'Claim_Status',
1014
1014
  options: [
1015
1015
  "No action taken yet",
1016
1016
  "Demand for compensation made",
@@ -1045,9 +1045,9 @@ const consumerLawyerType = () => sbsSelect({
1045
1045
  ]
1046
1046
  });
1047
1047
 
1048
- const countryOfCitizenship = () => sbsSelect({
1048
+ const countryOfCitizenship = (scope) => sbsSelect({
1049
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1049
1050
  label: 'What is Your Current Country of Citizenship?',
1050
- name: 'Country_Of_Citizenship',
1051
1051
  options: [
1052
1052
  "Afghanistan",
1053
1053
  "Albania",
@@ -1271,10 +1271,10 @@ const criminalChargesFiled = () => sbsRadio({
1271
1271
  ]
1272
1272
  });
1273
1273
 
1274
- const degreeOfInterest = (help) => sbsSelect({
1274
+ const degreeOfInterest = (scope, help) => sbsSelect({
1275
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1276
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1275
1277
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1276
- id: 'Degree_Of_Interest',
1277
- name: 'Degree_Of_Interest',
1278
1278
  help: help,
1279
1279
  options: [
1280
1280
  'Definitely',
@@ -1289,7 +1289,7 @@ const defaultNotice = () => sbsYesNoRadio({
1289
1289
  label: 'Have You Received a Notice of Default from the Lender?'
1290
1290
  });
1291
1291
 
1292
- const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
1292
+ const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
1293
1293
 
1294
1294
  const disabilityConditionStopWork = () => sbsYesNoRadio({
1295
1295
  name: 'Disability_Condition_Stop_Work',
@@ -1301,8 +1301,8 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1301
1301
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1302
1302
  });
1303
1303
 
1304
- const doctorTreatment = () => sbsYesNoRadio({
1305
- name: 'Doctor_Treatment',
1304
+ const doctorTreatment = (scope) => sbsYesNoRadio({
1305
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1306
1306
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1307
1307
  });
1308
1308
 
@@ -1359,9 +1359,9 @@ const employmentAndWorkplaceTOLPDisplay = (updates) => col2Radio(merge({
1359
1359
  ]
1360
1360
  }, updates));
1361
1361
 
1362
- const estateLegalServicesNeeded = () => sbsSelect({
1362
+ const estateLegalServicesNeeded = (scope) => sbsSelect({
1363
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1363
1364
  label: "Legal Services Needed for Your Estate:",
1364
- name: 'Estate_Legal_Services_Needed',
1365
1365
  options: [
1366
1366
  "Charitable Giving",
1367
1367
  "Contested Wills",
@@ -1445,13 +1445,13 @@ const generalTOLP = (updates) => sbsSelect(merge({
1445
1445
  ]
1446
1446
  }, updates));
1447
1447
 
1448
- const haveAttorney = () => sbsYesNoRadio({
1449
- name: 'Have_Attorney',
1448
+ const haveAttorney = (scope) => sbsYesNoRadio({
1449
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1450
1450
  label: 'Already Working with An Attorney?'
1451
1451
  });
1452
1452
 
1453
- const haveChildren = () => sbsYesNoRadio({
1454
- name: 'Have_Children',
1453
+ const haveChildren = (scope) => sbsYesNoRadio({
1454
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1455
1455
  label: 'Do You Have Children?'
1456
1456
  });
1457
1457
 
@@ -1460,9 +1460,9 @@ const haveCourtDate = () => sbsYesNoRadio({
1460
1460
  label: 'Do You Have a Court Date?'
1461
1461
  });
1462
1462
 
1463
- const immigrationDetails = () => sbsSelect({
1463
+ const immigrationDetails = (scope) => sbsSelect({
1464
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1464
1465
  label: 'Where is the Person Seeking Immigration Located?',
1465
- name: 'Immigration_Details',
1466
1466
  options: [
1467
1467
  "In the USA with proper documentation",
1468
1468
  "In the USA without proper documentation",
@@ -1474,9 +1474,9 @@ const immigrationDetails = () => sbsSelect({
1474
1474
  ]
1475
1475
  });
1476
1476
 
1477
- const immigrationEntry = () => sbsSelect({
1477
+ const immigrationEntry = (scope) => sbsSelect({
1478
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1478
1479
  label: 'How are you Trying to Enter the Country?',
1479
- name: 'Immigration_Entry',
1480
1480
  options: [
1481
1481
  "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1482
1482
  "Illegally",
@@ -1485,18 +1485,18 @@ const immigrationEntry = () => sbsSelect({
1485
1485
  ]
1486
1486
  });
1487
1487
 
1488
- const immigrationLocation = () => sbsSelect({
1488
+ const immigrationLocation = (scope) => sbsSelect({
1489
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1489
1490
  label: 'Where Are You Migrating To?',
1490
- name: 'Immigration_Location',
1491
1491
  options: [
1492
1492
  "In the USA",
1493
1493
  "Outside the USA"
1494
1494
  ]
1495
1495
  });
1496
1496
 
1497
- const immigrationType = () => sbsSelect({
1497
+ const immigrationType = (scope) => sbsSelect({
1498
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1498
1499
  label: 'What Type of Immigration Issue?',
1499
- name: 'Immigration_Type',
1500
1500
  options: [
1501
1501
  "Citizenship (for current green card holders)",
1502
1502
  "Permanent Visa Family Based (green cards)",
@@ -1511,9 +1511,9 @@ const immigrationType = () => sbsSelect({
1511
1511
  ]
1512
1512
  });
1513
1513
 
1514
- const immigrationStatus = () => sbsSelect({
1514
+ const immigrationStatus = (scope) => sbsSelect({
1515
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1515
1516
  label: 'What is the Current Status of the Immigration Case?',
1516
- name: 'Immigration_Status',
1517
1517
  options: [
1518
1518
  "Out of Status (overstayed my visa)",
1519
1519
  "Current Visa Holder (in status)",
@@ -1523,9 +1523,9 @@ const immigrationStatus = () => sbsSelect({
1523
1523
  ]
1524
1524
  });
1525
1525
 
1526
- const incidentDate = () => sbsDate({
1526
+ const incidentDate = (scope) => sbsDate({
1527
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1527
1528
  label: 'Date of Incident:',
1528
- name: 'Incident_Date'
1529
1529
  });
1530
1530
 
1531
1531
  const lastName = () => sbsText({
@@ -1576,9 +1576,9 @@ const lawsuitOtherParty = () => sbsSelect({
1576
1576
  ]
1577
1577
  });
1578
1578
 
1579
- const lawyerPaymentMethod = () => sbsSelect({
1579
+ const lawyerPaymentMethod = (scope) => sbsSelect({
1580
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1580
1581
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1581
- name: 'Lawyer_Payment_Method',
1582
1582
  help: 'No payment necessary to speak with lawyers.',
1583
1583
  options: [
1584
1584
  'Cash',
@@ -1607,9 +1607,9 @@ const loanAmount = () => sbsSelect({
1607
1607
  ]
1608
1608
  });
1609
1609
 
1610
- const maritalStatus = () => sbsSelect({
1610
+ const maritalStatus = (scope) => sbsSelect({
1611
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1611
1612
  label: 'Marital Status:',
1612
- name: 'Marital_Status',
1613
1613
  options: [
1614
1614
  'Unmarried, Living Together',
1615
1615
  'Unmarried, Do Not Live Together',
@@ -1692,8 +1692,8 @@ const patentFor = () => sbsSelect({
1692
1692
  ]
1693
1693
  });
1694
1694
 
1695
- const pendingCharges = () => sbsYesNoRadio({
1696
- name: 'Pending_Charges',
1695
+ const pendingCharges = (scope) => sbsYesNoRadio({
1696
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1697
1697
  label: 'Do you currently have any pending charges?'
1698
1698
  });
1699
1699
 
@@ -1715,9 +1715,9 @@ const phone = () => sbsText({
1715
1715
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1716
1716
  });
1717
1717
 
1718
- const primaryInjury = () => sbs2ColRadio({
1718
+ const primaryInjury = (scope) => sbs2ColRadio({
1719
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1719
1720
  label: 'Primary Injury:',
1720
- name: 'Primary_Injury',
1721
1721
  options: [
1722
1722
  "Anxiety",
1723
1723
  "Back or Neck Pain",
@@ -1730,13 +1730,13 @@ const primaryInjury = () => sbs2ColRadio({
1730
1730
  ]
1731
1731
  });
1732
1732
 
1733
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1734
- name: 'Prior_Alcohol_Offenses',
1733
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1734
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1735
1735
  label: 'Any Prior Alcohol Related Offenses?'
1736
1736
  });
1737
1737
 
1738
- const policeReportFiled = () => sbsYesNoRadio({
1739
- name: 'Police_Report_Filed',
1738
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1739
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1740
1740
  label: 'Was a Police Report Filed?'
1741
1741
  });
1742
1742
 
@@ -1795,9 +1795,9 @@ const roleInMatterCriminal = () => sbsRadio({
1795
1795
  ]
1796
1796
  });
1797
1797
 
1798
- const roleInMatterProbate = () => sbsSelect({
1798
+ const roleInMatterProbate = (scope) => sbsSelect({
1799
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1799
1800
  label: "What Is Your Role in this Matter?",
1800
- name: 'Role_In_Matter_Probate',
1801
1801
  options: [
1802
1802
  "Preparing My Will",
1803
1803
  "Executor",
@@ -1890,9 +1890,9 @@ const TCPAConsent = () => ({
1890
1890
  }
1891
1891
  });
1892
1892
 
1893
- const typeOfAlcoholTest = () => sbsSelect({
1893
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1894
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1894
1895
  label: 'Type of Alcohol Test Performed?',
1895
- name: 'Type_Of_Alcohol_Test',
1896
1896
  options: [
1897
1897
  "No Test",
1898
1898
  "Refused Test",
@@ -1903,9 +1903,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1903
1903
  ]
1904
1904
  });
1905
1905
 
1906
- const typeOfAssets = () => col2Checkbox({
1906
+ const typeOfAssets = (scope) => col2Checkbox({
1907
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1907
1908
  label: 'Type of Assets:',
1908
- name: 'Type_Of_Assets',
1909
1909
  options: [
1910
1910
  "Business Interests",
1911
1911
  "Cash",
@@ -1954,9 +1954,9 @@ const trafficViolations = () => sbsSelect({
1954
1954
  ]
1955
1955
  });
1956
1956
 
1957
- const valueOfAssets = () => sbsSelect({
1957
+ const valueOfAssets = (scope) => sbsSelect({
1958
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1958
1959
  label: 'Value of Your Assets?',
1959
- name: 'Value_Of_Assets',
1960
1960
  options: [
1961
1961
  "Less than 50K",
1962
1962
  "50K to 100K",
@@ -2085,17 +2085,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
2085
2085
  }
2086
2086
  );
2087
2087
 
2088
- const AutoAndCarAccidentsQuestions = () => group(
2088
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
2089
2089
  'AutoAndCarAccidentsQuestions',
2090
2090
  {
2091
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
2091
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
2092
2092
  children: [
2093
- haveAttorney(),
2094
- incidentDate(),
2095
- atFault(),
2096
- primaryInjury(),
2097
- doctorTreatment(),
2098
- policeReportFiled()
2093
+ haveAttorney(scope),
2094
+ incidentDate(scope),
2095
+ atFault(scope),
2096
+ primaryInjury(scope),
2097
+ doctorTreatment(scope),
2098
+ policeReportFiled(scope)
2099
2099
  ]
2100
2100
  }
2101
2101
  );
@@ -2140,32 +2140,32 @@ const BusinessLawyersQuestions = () => group(
2140
2140
  }
2141
2141
  );
2142
2142
 
2143
- const ChildCustodyAndSupportQuestions = () => group(
2143
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2144
2144
  'ChildCustodyAndSupportQuestions',
2145
2145
  {
2146
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
2146
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2147
2147
  children: [
2148
- haveAttorney(),
2149
- childRelationship(),
2150
- childHome(),
2151
- childPrimaryCaregiver(),
2152
- degreeOfInterest(),
2153
- lawyerPaymentMethod()
2148
+ haveAttorney(scope),
2149
+ childRelationship(scope),
2150
+ childHome(scope),
2151
+ childPrimaryCaregiver(scope),
2152
+ degreeOfInterest(scope),
2153
+ lawyerPaymentMethod(scope)
2154
2154
  ]
2155
2155
  }
2156
2156
  );
2157
2157
 
2158
- const ChildCustodyQuestions = () => group(
2158
+ const ChildCustodyQuestions = (condition, scope) => group(
2159
2159
  'ChildCustodyQuestions',
2160
2160
  {
2161
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2161
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2162
2162
  children: [
2163
- haveAttorney(),
2164
- childRelationship(),
2165
- childHome(),
2166
- childPrimaryCaregiver(),
2167
- degreeOfInterest(),
2168
- lawyerPaymentMethod()
2163
+ haveAttorney(scope),
2164
+ childRelationship(scope),
2165
+ childHome(scope),
2166
+ childPrimaryCaregiver(scope),
2167
+ degreeOfInterest(scope),
2168
+ lawyerPaymentMethod(scope)
2169
2169
  ]
2170
2170
  }
2171
2171
  );
@@ -2302,32 +2302,32 @@ const DebtAndCollectionsQuestions = () => group(
2302
2302
  }
2303
2303
  );
2304
2304
 
2305
- const DivorceQuestions = () => group(
2305
+ const DivorceQuestions = (condition, scope) => group(
2306
2306
  'DivorceQuestions',
2307
2307
  {
2308
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2308
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2309
2309
  children: [
2310
- haveAttorney(),
2311
- maritalStatus(),
2312
- haveChildren(),
2313
- degreeOfInterest(),
2314
- lawyerPaymentMethod()
2310
+ haveAttorney(scope),
2311
+ maritalStatus(scope),
2312
+ haveChildren(scope),
2313
+ degreeOfInterest(scope),
2314
+ lawyerPaymentMethod(scope)
2315
2315
  ]
2316
2316
  }
2317
2317
  );
2318
2318
 
2319
- const DUIAndDWIQuestions = () => group(
2319
+ const DUIAndDWIQuestions = (condition, scope) => group(
2320
2320
  'DUIAndDWIQuestions',
2321
2321
  {
2322
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2322
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2323
2323
  children: [
2324
- haveAttorney(),
2325
- incidentDate(),
2326
- priorAlcoholOffenses(),
2327
- typeOfAlcoholTest(),
2328
- bloodContentAlcholTest(),
2329
- pendingCharges(),
2330
- degreeOfInterestHelp()
2324
+ haveAttorney(scope),
2325
+ incidentDate(scope),
2326
+ priorAlcoholOffenses(scope),
2327
+ typeOfAlcoholTest(scope),
2328
+ bloodContentAlcholTest(scope),
2329
+ pendingCharges(scope),
2330
+ degreeOfInterestHelp(scope)
2331
2331
  ]
2332
2332
  }
2333
2333
  );
@@ -2473,19 +2473,19 @@ const IdentityTheftQuestions = () => group(
2473
2473
  }
2474
2474
  );
2475
2475
 
2476
- const ImmigrationAndVisasQuestions = () => group(
2476
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2477
2477
  'ImmigrationAndVisasQuestions',
2478
2478
  {
2479
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2479
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2480
2480
  children: [
2481
- haveAttorney(),
2482
- countryOfCitizenship(),
2483
- immigrationLocation(),
2484
- immigrationEntry(),
2485
- immigrationType(),
2486
- immigrationStatus(),
2487
- immigrationDetails(),
2488
- degreeOfInterestHelp()
2481
+ haveAttorney(scope),
2482
+ countryOfCitizenship(scope),
2483
+ immigrationLocation(scope),
2484
+ immigrationEntry(scope),
2485
+ immigrationType(scope),
2486
+ immigrationStatus(scope),
2487
+ immigrationDetails(scope),
2488
+ degreeOfInterestHelp(scope)
2489
2489
  ]
2490
2490
  }
2491
2491
  );
@@ -2526,19 +2526,19 @@ const LemonLawQuestions = () => group(
2526
2526
  }
2527
2527
  );
2528
2528
 
2529
- const LongTermDisabilityQuestions = () => group(
2529
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2530
2530
  'LongTermDisabilityQuestions',
2531
2531
  {
2532
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2532
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2533
2533
  children: [
2534
- haveAttorney(),
2535
- applicantOccupation(),
2536
- applicantAge(),
2537
- applicantLTDisabilityPolicy(),
2538
- applicantDisabilityHowObtain(),
2539
- applicantPreviouslyAppliedLtdBenefits(),
2540
- applicantReceivedDisabilityBenefits(),
2541
- applicantMonthlySalary()
2534
+ haveAttorney(scope),
2535
+ applicantOccupation(scope),
2536
+ applicantAge(scope),
2537
+ applicantLTDisabilityPolicy(scope),
2538
+ applicantDisabilityHowObtain(scope),
2539
+ applicantPreviouslyAppliedLtdBenefits(scope),
2540
+ applicantReceivedDisabilityBenefits(scope),
2541
+ applicantMonthlySalary(scope)
2542
2542
  ]
2543
2543
  }
2544
2544
  );
@@ -2583,28 +2583,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2583
2583
  }
2584
2584
  );
2585
2585
 
2586
- const PersonalInjuryQuestions = () => group(
2586
+ const PersonalInjuryQuestions = (condition, scope) => group(
2587
2587
  'PersonalInjuryQuestions',
2588
2588
  {
2589
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2589
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2590
2590
  children: [
2591
- haveAttorney(),
2592
- incidentDate(),
2593
- claimStatus(),
2594
- atFault(),
2595
- primaryInjury(),
2596
- doctorTreatment()
2591
+ haveAttorney(scope),
2592
+ incidentDate(scope),
2593
+ claimStatus(scope),
2594
+ atFault(scope),
2595
+ primaryInjury(scope),
2596
+ doctorTreatment(scope)
2597
2597
  ]
2598
2598
  }
2599
2599
  );
2600
2600
 
2601
- const PowerofAttorneyQuestions = () => group(
2601
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2602
2602
  'PowerofAttorneyQuestions',
2603
2603
  {
2604
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2604
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2605
2605
  children: [
2606
- haveAttorney(),
2607
- degreeOfInterestHelp()
2606
+ haveAttorney(scope),
2607
+ degreeOfInterestHelp(scope)
2608
2608
  ]
2609
2609
  }
2610
2610
  );
@@ -2756,32 +2756,32 @@ const VictimOfACrimeQuestions = () => group(
2756
2756
  }
2757
2757
  );
2758
2758
 
2759
- const WillsAndTrustsQuestions = () => group(
2759
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2760
2760
  'WillsAndTrustsQuestions',
2761
2761
  {
2762
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2762
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2763
2763
  children: [
2764
- haveAttorney(),
2765
- valueOfAssets(),
2766
- typeOfAssets(),
2767
- roleInMatterProbate(),
2768
- estateLegalServicesNeeded(),
2769
- degreeOfInterestHelp()
2764
+ haveAttorney(scope),
2765
+ valueOfAssets(scope),
2766
+ typeOfAssets(scope),
2767
+ roleInMatterProbate(scope),
2768
+ estateLegalServicesNeeded(scope),
2769
+ degreeOfInterestHelp(scope)
2770
2770
  ]
2771
2771
  }
2772
2772
  );
2773
2773
 
2774
- const WorkersCompensationQuestions = () => group(
2774
+ const WorkersCompensationQuestions = (condition, scope) => group(
2775
2775
  'WorkersCompensationQuestions',
2776
2776
  {
2777
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2777
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2778
2778
  children: [
2779
- haveAttorney(),
2780
- incidentDate(),
2781
- claimStatus(),
2782
- primaryInjury(),
2783
- causeOfInjury(),
2784
- doctorTreatment()
2779
+ haveAttorney(scope),
2780
+ incidentDate(scope),
2781
+ claimStatus(scope),
2782
+ primaryInjury(scope),
2783
+ causeOfInjury(scope),
2784
+ doctorTreatment(scope)
2785
2785
  ]
2786
2786
  }
2787
2787
  );
@@ -2863,9 +2863,9 @@ const stepDefaults = (step) => ({
2863
2863
  function questionsStepHeadline(updates) {
2864
2864
  return {
2865
2865
  $el: 'h3',
2866
- children: updates.headline || 'Tell Us About Your Case',
2866
+ children: updates.headline || 'Tell Us About Your Situation',
2867
2867
  attrs: {
2868
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3'
2868
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1'
2869
2869
  }
2870
2870
  }
2871
2871
  }
@@ -2876,7 +2876,7 @@ function commentsStepHeadline(updates) {
2876
2876
  $el: 'h3',
2877
2877
  children: updates.headline || 'Additional Case Details',
2878
2878
  attrs: {
2879
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3' + ' ' + (updates.headlineClass || '')
2879
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2880
2880
  }
2881
2881
  }
2882
2882
  }
@@ -2886,7 +2886,7 @@ function firstAndLastStepHeadline(updates) {
2886
2886
  $el: 'h3',
2887
2887
  children: updates.headline || 'Please Provide a Contact Name',
2888
2888
  attrs: {
2889
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-3' + ' ' + (updates.headlineClass || '')
2889
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2890
2890
  }
2891
2891
  }
2892
2892
  }
@@ -2896,7 +2896,7 @@ function contactStepHeadline(updates) {
2896
2896
  $el: 'h3',
2897
2897
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2898
2898
  attrs: {
2899
- class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-3'
2899
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1'
2900
2900
  }
2901
2901
  }
2902
2902
  }
@@ -2943,10 +2943,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2943
2943
  }
2944
2944
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2945
2945
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2946
- if (nextOnEnter === true) {
2946
+ if (lastInput && nextOnEnter === true) {
2947
2947
  lastInput.onKeypress = NEXT_ON_ENTER;
2948
2948
  }
2949
- if (nextOnInput === true) {
2949
+ if (lastInput && nextOnInput === true) {
2950
2950
  lastInput.onInput = NEXT_ON_INPUT;
2951
2951
  }
2952
2952
  }