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
@@ -747,16 +747,16 @@ const amountPaymentsPastDue = () => sbsSelect({
747
747
  ]
748
748
  });
749
749
 
750
- const applicantOccupation = () => sbsText({
750
+ const applicantOccupation = (scope) => sbsText({
751
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
751
752
  label: "What is the Applicant's Occupation?",
752
- name: 'Applicant_Occupation',
753
753
  placeholder: "Occupation"
754
754
  });
755
755
 
756
756
 
757
- const applicantAge = () => sbsSelect({
757
+ const applicantAge = (scope) => sbsSelect({
758
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
758
759
  label: 'Age of Applicant?',
759
- name: 'Applicant_Age',
760
760
  options: [
761
761
  "18",
762
762
  "19",
@@ -809,9 +809,9 @@ const applicantAge = () => sbsSelect({
809
809
  ]
810
810
  });
811
811
 
812
- const applicantDisabilityHowObtain = () => sbsSelect({
812
+ const applicantDisabilityHowObtain = (scope) => sbsSelect({
813
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
813
814
  label: 'How Did Applicant Obtain the Disability Policy?',
814
- name: 'Applicant_Disability_How_Obtain',
815
815
  options: [
816
816
  "Employer",
817
817
  "Self",
@@ -819,8 +819,8 @@ const applicantDisabilityHowObtain = () => sbsSelect({
819
819
  ]
820
820
  });
821
821
 
822
- const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
823
- name: 'Applicant_Previously_Apply_Ltd_Benefits',
822
+ const applicantPreviouslyAppliedLtdBenefits = (scope) => sbsRadio({
823
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
824
824
  label: 'Has Applicant Previously Applied for Long Term Disability Benefits?',
825
825
  options: [
826
826
  "Yes, claim pending",
@@ -829,9 +829,9 @@ const applicantPreviouslyAppliedLtdBenefits = () => sbsRadio({
829
829
  ]
830
830
  });
831
831
 
832
- const applicantMonthlySalary = () => sbsSelect({
832
+ const applicantMonthlySalary = (scope) => sbsSelect({
833
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
833
834
  label: "Applicant's Monthly Salary/Pay When Last at Work:",
834
- name: 'Applicant_Monthly_Salary',
835
835
  options: [
836
836
  "< $1,000",
837
837
  "$1,000 - $2,000",
@@ -847,8 +847,8 @@ const applicantMonthlySalary = () => sbsSelect({
847
847
  ]
848
848
  });
849
849
 
850
- const applicantReceivedDisabilityBenefits = () => sbsRadio({
851
- name: 'Applicant_Received_Disability_Benefits',
850
+ const applicantReceivedDisabilityBenefits = (scope) => sbsRadio({
851
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
852
852
  label: 'Has Applicant Ever Received Long Term Disability Benefits for this Claim?',
853
853
  options: [
854
854
  "Yes, currently receiving",
@@ -857,13 +857,13 @@ const applicantReceivedDisabilityBenefits = () => sbsRadio({
857
857
  ]
858
858
  });
859
859
 
860
- const applicantLTDisabilityPolicy = () => sbsYesNoRadio({
861
- name: 'Applicant_Lt_Disability_Policy',
860
+ const applicantLTDisabilityPolicy = (scope) => sbsYesNoRadio({
861
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
862
862
  label: 'Does Applicant have a Long Term Disability Policy?'
863
863
  });
864
864
 
865
- const atFault = () => sbsYesNoRadio({
866
- name: 'At_Fault',
865
+ const atFault = (scope) => sbsYesNoRadio({
866
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
867
867
  label: 'Were You at Fault?'
868
868
  });
869
869
 
@@ -876,9 +876,9 @@ const bankruptcyCrossSell = () => sbsCheckbox({
876
876
  helpClass: "!t-text-sm"
877
877
  });
878
878
 
879
- const bloodContentAlcholTest = () => sbsSelect({
879
+ const bloodContentAlcholTest = (scope) => sbsSelect({
880
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
880
881
  label: 'Blood Alcohol Content Measured by Test:',
881
- name: 'Blood_Alcohol_Content_Test',
882
882
  options: [
883
883
  "No Test",
884
884
  "0.00% - 0.04%",
@@ -915,9 +915,9 @@ const businessType = () => sbs2ColRadio({
915
915
  ]
916
916
  });
917
917
 
918
- const causeOfInjury = () => sbsSelect({
918
+ const causeOfInjury = (scope) => sbsSelect({
919
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
919
920
  label: 'Cause of Injury:',
920
- name: 'Cause_Of_Injury',
921
921
  options: [
922
922
  "Traumatic Physical Injury (Accident)",
923
923
  "Repeated Trauma Injury",
@@ -951,9 +951,9 @@ const civilRightsType = () => sbsSelect({
951
951
  ]
952
952
  });
953
953
 
954
- const childHome = () => sbsSelect({
954
+ const childHome = (scope) => sbsSelect({
955
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
955
956
  label: 'With Whom Do the Children Currently Live?',
956
- name: 'Child_Home',
957
957
  options: [
958
958
  'Mother',
959
959
  'Father',
@@ -962,9 +962,9 @@ const childHome = () => sbsSelect({
962
962
  ]
963
963
  });
964
964
 
965
- const childPrimaryCaregiver = () => sbsSelect({
965
+ const childPrimaryCaregiver = (scope) => sbsSelect({
966
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
966
967
  label: 'Who is the Primary Caregiver?',
967
- name: 'Child_Primary_Caregiver',
968
968
  options: [
969
969
  'Mother',
970
970
  'Father',
@@ -972,9 +972,9 @@ const childPrimaryCaregiver = () => sbsSelect({
972
972
  ]
973
973
  });
974
974
 
975
- const childRelationship = () => sbsSelect({
975
+ const childRelationship = (scope) => sbsSelect({
976
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
976
977
  label: 'Your Relationship to Child(ren):',
977
- name: 'Child_Relationship',
978
978
  options: [
979
979
  'Father',
980
980
  'Mother',
@@ -984,9 +984,9 @@ const childRelationship = () => sbsSelect({
984
984
  ]
985
985
  });
986
986
 
987
- const claimStatus = () => sbsSelect({
987
+ const claimStatus = (scope) => sbsSelect({
988
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
988
989
  label: "Status of Claim:",
989
- name: 'Claim_Status',
990
990
  options: [
991
991
  "No action taken yet",
992
992
  "Demand for compensation made",
@@ -1021,9 +1021,9 @@ const consumerLawyerType = () => sbsSelect({
1021
1021
  ]
1022
1022
  });
1023
1023
 
1024
- const countryOfCitizenship = () => sbsSelect({
1024
+ const countryOfCitizenship = (scope) => sbsSelect({
1025
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
1025
1026
  label: 'What is Your Current Country of Citizenship?',
1026
- name: 'Country_Of_Citizenship',
1027
1027
  options: [
1028
1028
  "Afghanistan",
1029
1029
  "Albania",
@@ -1247,10 +1247,10 @@ const criminalChargesFiled = () => sbsRadio({
1247
1247
  ]
1248
1248
  });
1249
1249
 
1250
- const degreeOfInterest = (help) => sbsSelect({
1250
+ const degreeOfInterest = (scope, help) => sbsSelect({
1251
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1252
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
1251
1253
  label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
1252
- id: 'Degree_Of_Interest',
1253
- name: 'Degree_Of_Interest',
1254
1254
  help: help,
1255
1255
  options: [
1256
1256
  'Definitely',
@@ -1265,7 +1265,7 @@ const defaultNotice = () => sbsYesNoRadio({
1265
1265
  label: 'Have You Received a Notice of Default from the Lender?'
1266
1266
  });
1267
1267
 
1268
- const degreeOfInterestHelp = () => degreeOfInterest('No payment necessary to speak with lawyers.');
1268
+ const degreeOfInterestHelp = (scope) => degreeOfInterest(scope, 'No payment necessary to speak with lawyers.');
1269
1269
 
1270
1270
  const disabilityConditionStopWork = () => sbsYesNoRadio({
1271
1271
  name: 'Disability_Condition_Stop_Work',
@@ -1277,8 +1277,8 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1277
1277
  label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
1278
1278
  });
1279
1279
 
1280
- const doctorTreatment = () => sbsYesNoRadio({
1281
- name: 'Doctor_Treatment',
1280
+ const doctorTreatment = (scope) => sbsYesNoRadio({
1281
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1282
1282
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1283
1283
  });
1284
1284
 
@@ -1319,9 +1319,9 @@ const employerType = () => sbsSelect({
1319
1319
  ]
1320
1320
  });
1321
1321
 
1322
- const estateLegalServicesNeeded = () => sbsSelect({
1322
+ const estateLegalServicesNeeded = (scope) => sbsSelect({
1323
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
1323
1324
  label: "Legal Services Needed for Your Estate:",
1324
- name: 'Estate_Legal_Services_Needed',
1325
1325
  options: [
1326
1326
  "Charitable Giving",
1327
1327
  "Contested Wills",
@@ -1342,13 +1342,13 @@ const firstName = () => sbsText({
1342
1342
  }
1343
1343
  });
1344
1344
 
1345
- const haveAttorney = () => sbsYesNoRadio({
1346
- name: 'Have_Attorney',
1345
+ const haveAttorney = (scope) => sbsYesNoRadio({
1346
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1347
1347
  label: 'Already Working with An Attorney?'
1348
1348
  });
1349
1349
 
1350
- const haveChildren = () => sbsYesNoRadio({
1351
- name: 'Have_Children',
1350
+ const haveChildren = (scope) => sbsYesNoRadio({
1351
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1352
1352
  label: 'Do You Have Children?'
1353
1353
  });
1354
1354
 
@@ -1357,9 +1357,9 @@ const haveCourtDate = () => sbsYesNoRadio({
1357
1357
  label: 'Do You Have a Court Date?'
1358
1358
  });
1359
1359
 
1360
- const immigrationDetails = () => sbsSelect({
1360
+ const immigrationDetails = (scope) => sbsSelect({
1361
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1361
1362
  label: 'Where is the Person Seeking Immigration Located?',
1362
- name: 'Immigration_Details',
1363
1363
  options: [
1364
1364
  "In the USA with proper documentation",
1365
1365
  "In the USA without proper documentation",
@@ -1371,9 +1371,9 @@ const immigrationDetails = () => sbsSelect({
1371
1371
  ]
1372
1372
  });
1373
1373
 
1374
- const immigrationEntry = () => sbsSelect({
1374
+ const immigrationEntry = (scope) => sbsSelect({
1375
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1375
1376
  label: 'How are you Trying to Enter the Country?',
1376
- name: 'Immigration_Entry',
1377
1377
  options: [
1378
1378
  "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1379
1379
  "Illegally",
@@ -1382,18 +1382,18 @@ const immigrationEntry = () => sbsSelect({
1382
1382
  ]
1383
1383
  });
1384
1384
 
1385
- const immigrationLocation = () => sbsSelect({
1385
+ const immigrationLocation = (scope) => sbsSelect({
1386
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1386
1387
  label: 'Where Are You Migrating To?',
1387
- name: 'Immigration_Location',
1388
1388
  options: [
1389
1389
  "In the USA",
1390
1390
  "Outside the USA"
1391
1391
  ]
1392
1392
  });
1393
1393
 
1394
- const immigrationType = () => sbsSelect({
1394
+ const immigrationType = (scope) => sbsSelect({
1395
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1395
1396
  label: 'What Type of Immigration Issue?',
1396
- name: 'Immigration_Type',
1397
1397
  options: [
1398
1398
  "Citizenship (for current green card holders)",
1399
1399
  "Permanent Visa Family Based (green cards)",
@@ -1408,9 +1408,9 @@ const immigrationType = () => sbsSelect({
1408
1408
  ]
1409
1409
  });
1410
1410
 
1411
- const immigrationStatus = () => sbsSelect({
1411
+ const immigrationStatus = (scope) => sbsSelect({
1412
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1412
1413
  label: 'What is the Current Status of the Immigration Case?',
1413
- name: 'Immigration_Status',
1414
1414
  options: [
1415
1415
  "Out of Status (overstayed my visa)",
1416
1416
  "Current Visa Holder (in status)",
@@ -1420,9 +1420,9 @@ const immigrationStatus = () => sbsSelect({
1420
1420
  ]
1421
1421
  });
1422
1422
 
1423
- const incidentDate = () => sbsDate({
1423
+ const incidentDate = (scope) => sbsDate({
1424
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1424
1425
  label: 'Date of Incident:',
1425
- name: 'Incident_Date'
1426
1426
  });
1427
1427
 
1428
1428
  const lastName = () => sbsText({
@@ -1456,9 +1456,9 @@ const lawsuitOtherParty = () => sbsSelect({
1456
1456
  ]
1457
1457
  });
1458
1458
 
1459
- const lawyerPaymentMethod = () => sbsSelect({
1459
+ const lawyerPaymentMethod = (scope) => sbsSelect({
1460
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1460
1461
  label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1461
- name: 'Lawyer_Payment_Method',
1462
1462
  help: 'No payment necessary to speak with lawyers.',
1463
1463
  options: [
1464
1464
  'Cash',
@@ -1487,9 +1487,9 @@ const loanAmount = () => sbsSelect({
1487
1487
  ]
1488
1488
  });
1489
1489
 
1490
- const maritalStatus = () => sbsSelect({
1490
+ const maritalStatus = (scope) => sbsSelect({
1491
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1491
1492
  label: 'Marital Status:',
1492
- name: 'Marital_Status',
1493
1493
  options: [
1494
1494
  'Unmarried, Living Together',
1495
1495
  'Unmarried, Do Not Live Together',
@@ -1572,8 +1572,8 @@ const patentFor = () => sbsSelect({
1572
1572
  ]
1573
1573
  });
1574
1574
 
1575
- const pendingCharges = () => sbsYesNoRadio({
1576
- name: 'Pending_Charges',
1575
+ const pendingCharges = (scope) => sbsYesNoRadio({
1576
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1577
1577
  label: 'Do you currently have any pending charges?'
1578
1578
  });
1579
1579
 
@@ -1595,9 +1595,9 @@ const phone = () => sbsText({
1595
1595
  helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1596
1596
  });
1597
1597
 
1598
- const primaryInjury = () => sbs2ColRadio({
1598
+ const primaryInjury = (scope) => sbs2ColRadio({
1599
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1599
1600
  label: 'Primary Injury:',
1600
- name: 'Primary_Injury',
1601
1601
  options: [
1602
1602
  "Anxiety",
1603
1603
  "Back or Neck Pain",
@@ -1610,13 +1610,13 @@ const primaryInjury = () => sbs2ColRadio({
1610
1610
  ]
1611
1611
  });
1612
1612
 
1613
- const priorAlcoholOffenses = () => sbsYesNoRadio({
1614
- name: 'Prior_Alcohol_Offenses',
1613
+ const priorAlcoholOffenses = (scope) => sbsYesNoRadio({
1614
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1615
1615
  label: 'Any Prior Alcohol Related Offenses?'
1616
1616
  });
1617
1617
 
1618
- const policeReportFiled = () => sbsYesNoRadio({
1619
- name: 'Police_Report_Filed',
1618
+ const policeReportFiled = (scope) => sbsYesNoRadio({
1619
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1620
1620
  label: 'Was a Police Report Filed?'
1621
1621
  });
1622
1622
 
@@ -1658,9 +1658,9 @@ const roleInMatterCriminal = () => sbsRadio({
1658
1658
  ]
1659
1659
  });
1660
1660
 
1661
- const roleInMatterProbate = () => sbsSelect({
1661
+ const roleInMatterProbate = (scope) => sbsSelect({
1662
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1662
1663
  label: "What Is Your Role in this Matter?",
1663
- name: 'Role_In_Matter_Probate',
1664
1664
  options: [
1665
1665
  "Preparing My Will",
1666
1666
  "Executor",
@@ -1753,9 +1753,9 @@ const TCPAConsent = () => ({
1753
1753
  }
1754
1754
  });
1755
1755
 
1756
- const typeOfAlcoholTest = () => sbsSelect({
1756
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1757
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1757
1758
  label: 'Type of Alcohol Test Performed?',
1758
- name: 'Type_Of_Alcohol_Test',
1759
1759
  options: [
1760
1760
  "No Test",
1761
1761
  "Refused Test",
@@ -1766,9 +1766,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1766
1766
  ]
1767
1767
  });
1768
1768
 
1769
- const typeOfAssets = () => col2Checkbox({
1769
+ const typeOfAssets = (scope) => col2Checkbox({
1770
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1770
1771
  label: 'Type of Assets:',
1771
- name: 'Type_Of_Assets',
1772
1772
  options: [
1773
1773
  "Business Interests",
1774
1774
  "Cash",
@@ -1817,9 +1817,9 @@ const trafficViolations = () => sbsSelect({
1817
1817
  ]
1818
1818
  });
1819
1819
 
1820
- const valueOfAssets = () => sbsSelect({
1820
+ const valueOfAssets = (scope) => sbsSelect({
1821
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1821
1822
  label: 'Value of Your Assets?',
1822
- name: 'Value_Of_Assets',
1823
1823
  options: [
1824
1824
  "Less than 50K",
1825
1825
  "50K to 100K",
@@ -1948,17 +1948,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
1948
1948
  }
1949
1949
  );
1950
1950
 
1951
- const AutoAndCarAccidentsQuestions = () => group(
1951
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1952
1952
  'AutoAndCarAccidentsQuestions',
1953
1953
  {
1954
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1954
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1955
1955
  children: [
1956
- haveAttorney(),
1957
- incidentDate(),
1958
- atFault(),
1959
- primaryInjury(),
1960
- doctorTreatment(),
1961
- policeReportFiled()
1956
+ haveAttorney(scope),
1957
+ incidentDate(scope),
1958
+ atFault(scope),
1959
+ primaryInjury(scope),
1960
+ doctorTreatment(scope),
1961
+ policeReportFiled(scope)
1962
1962
  ]
1963
1963
  }
1964
1964
  );
@@ -2003,32 +2003,32 @@ const BusinessLawyersQuestions = () => group(
2003
2003
  }
2004
2004
  );
2005
2005
 
2006
- const ChildCustodyAndSupportQuestions = () => group(
2006
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2007
2007
  'ChildCustodyAndSupportQuestions',
2008
2008
  {
2009
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
2009
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2010
2010
  children: [
2011
- haveAttorney(),
2012
- childRelationship(),
2013
- childHome(),
2014
- childPrimaryCaregiver(),
2015
- degreeOfInterest(),
2016
- lawyerPaymentMethod()
2011
+ haveAttorney(scope),
2012
+ childRelationship(scope),
2013
+ childHome(scope),
2014
+ childPrimaryCaregiver(scope),
2015
+ degreeOfInterest(scope),
2016
+ lawyerPaymentMethod(scope)
2017
2017
  ]
2018
2018
  }
2019
2019
  );
2020
2020
 
2021
- const ChildCustodyQuestions = () => group(
2021
+ const ChildCustodyQuestions = (condition, scope) => group(
2022
2022
  'ChildCustodyQuestions',
2023
2023
  {
2024
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2024
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2025
2025
  children: [
2026
- haveAttorney(),
2027
- childRelationship(),
2028
- childHome(),
2029
- childPrimaryCaregiver(),
2030
- degreeOfInterest(),
2031
- lawyerPaymentMethod()
2026
+ haveAttorney(scope),
2027
+ childRelationship(scope),
2028
+ childHome(scope),
2029
+ childPrimaryCaregiver(scope),
2030
+ degreeOfInterest(scope),
2031
+ lawyerPaymentMethod(scope)
2032
2032
  ]
2033
2033
  }
2034
2034
  );
@@ -2165,32 +2165,32 @@ const DebtAndCollectionsQuestions = () => group(
2165
2165
  }
2166
2166
  );
2167
2167
 
2168
- const DivorceQuestions = () => group(
2168
+ const DivorceQuestions = (condition, scope) => group(
2169
2169
  'DivorceQuestions',
2170
2170
  {
2171
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2171
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2172
2172
  children: [
2173
- haveAttorney(),
2174
- maritalStatus(),
2175
- haveChildren(),
2176
- degreeOfInterest(),
2177
- lawyerPaymentMethod()
2173
+ haveAttorney(scope),
2174
+ maritalStatus(scope),
2175
+ haveChildren(scope),
2176
+ degreeOfInterest(scope),
2177
+ lawyerPaymentMethod(scope)
2178
2178
  ]
2179
2179
  }
2180
2180
  );
2181
2181
 
2182
- const DUIAndDWIQuestions = () => group(
2182
+ const DUIAndDWIQuestions = (condition, scope) => group(
2183
2183
  'DUIAndDWIQuestions',
2184
2184
  {
2185
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2185
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2186
2186
  children: [
2187
- haveAttorney(),
2188
- incidentDate(),
2189
- priorAlcoholOffenses(),
2190
- typeOfAlcoholTest(),
2191
- bloodContentAlcholTest(),
2192
- pendingCharges(),
2193
- degreeOfInterestHelp()
2187
+ haveAttorney(scope),
2188
+ incidentDate(scope),
2189
+ priorAlcoholOffenses(scope),
2190
+ typeOfAlcoholTest(scope),
2191
+ bloodContentAlcholTest(scope),
2192
+ pendingCharges(scope),
2193
+ degreeOfInterestHelp(scope)
2194
2194
  ]
2195
2195
  }
2196
2196
  );
@@ -2336,19 +2336,19 @@ const IdentityTheftQuestions = () => group(
2336
2336
  }
2337
2337
  );
2338
2338
 
2339
- const ImmigrationAndVisasQuestions = () => group(
2339
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2340
2340
  'ImmigrationAndVisasQuestions',
2341
2341
  {
2342
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2342
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2343
2343
  children: [
2344
- haveAttorney(),
2345
- countryOfCitizenship(),
2346
- immigrationLocation(),
2347
- immigrationEntry(),
2348
- immigrationType(),
2349
- immigrationStatus(),
2350
- immigrationDetails(),
2351
- degreeOfInterestHelp()
2344
+ haveAttorney(scope),
2345
+ countryOfCitizenship(scope),
2346
+ immigrationLocation(scope),
2347
+ immigrationEntry(scope),
2348
+ immigrationType(scope),
2349
+ immigrationStatus(scope),
2350
+ immigrationDetails(scope),
2351
+ degreeOfInterestHelp(scope)
2352
2352
  ]
2353
2353
  }
2354
2354
  );
@@ -2389,19 +2389,19 @@ const LemonLawQuestions = () => group(
2389
2389
  }
2390
2390
  );
2391
2391
 
2392
- const LongTermDisabilityQuestions = () => group(
2392
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2393
2393
  'LongTermDisabilityQuestions',
2394
2394
  {
2395
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2395
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2396
2396
  children: [
2397
- haveAttorney(),
2398
- applicantOccupation(),
2399
- applicantAge(),
2400
- applicantLTDisabilityPolicy(),
2401
- applicantDisabilityHowObtain(),
2402
- applicantPreviouslyAppliedLtdBenefits(),
2403
- applicantReceivedDisabilityBenefits(),
2404
- applicantMonthlySalary()
2397
+ haveAttorney(scope),
2398
+ applicantOccupation(scope),
2399
+ applicantAge(scope),
2400
+ applicantLTDisabilityPolicy(scope),
2401
+ applicantDisabilityHowObtain(scope),
2402
+ applicantPreviouslyAppliedLtdBenefits(scope),
2403
+ applicantReceivedDisabilityBenefits(scope),
2404
+ applicantMonthlySalary(scope)
2405
2405
  ]
2406
2406
  }
2407
2407
  );
@@ -2446,28 +2446,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2446
2446
  }
2447
2447
  );
2448
2448
 
2449
- const PersonalInjuryQuestions = () => group(
2449
+ const PersonalInjuryQuestions = (condition, scope) => group(
2450
2450
  'PersonalInjuryQuestions',
2451
2451
  {
2452
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2452
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2453
2453
  children: [
2454
- haveAttorney(),
2455
- incidentDate(),
2456
- claimStatus(),
2457
- atFault(),
2458
- primaryInjury(),
2459
- doctorTreatment()
2454
+ haveAttorney(scope),
2455
+ incidentDate(scope),
2456
+ claimStatus(scope),
2457
+ atFault(scope),
2458
+ primaryInjury(scope),
2459
+ doctorTreatment(scope)
2460
2460
  ]
2461
2461
  }
2462
2462
  );
2463
2463
 
2464
- const PowerofAttorneyQuestions = () => group(
2464
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2465
2465
  'PowerofAttorneyQuestions',
2466
2466
  {
2467
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2467
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2468
2468
  children: [
2469
- haveAttorney(),
2470
- degreeOfInterestHelp()
2469
+ haveAttorney(scope),
2470
+ degreeOfInterestHelp(scope)
2471
2471
  ]
2472
2472
  }
2473
2473
  );
@@ -2619,32 +2619,32 @@ const VictimOfACrimeQuestions = () => group(
2619
2619
  }
2620
2620
  );
2621
2621
 
2622
- const WillsAndTrustsQuestions = () => group(
2622
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2623
2623
  'WillsAndTrustsQuestions',
2624
2624
  {
2625
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2625
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2626
2626
  children: [
2627
- haveAttorney(),
2628
- valueOfAssets(),
2629
- typeOfAssets(),
2630
- roleInMatterProbate(),
2631
- estateLegalServicesNeeded(),
2632
- degreeOfInterestHelp()
2627
+ haveAttorney(scope),
2628
+ valueOfAssets(scope),
2629
+ typeOfAssets(scope),
2630
+ roleInMatterProbate(scope),
2631
+ estateLegalServicesNeeded(scope),
2632
+ degreeOfInterestHelp(scope)
2633
2633
  ]
2634
2634
  }
2635
2635
  );
2636
2636
 
2637
- const WorkersCompensationQuestions = () => group(
2637
+ const WorkersCompensationQuestions = (condition, scope) => group(
2638
2638
  'WorkersCompensationQuestions',
2639
2639
  {
2640
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2640
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2641
2641
  children: [
2642
- haveAttorney(),
2643
- incidentDate(),
2644
- claimStatus(),
2645
- primaryInjury(),
2646
- causeOfInjury(),
2647
- doctorTreatment()
2642
+ haveAttorney(scope),
2643
+ incidentDate(scope),
2644
+ claimStatus(scope),
2645
+ primaryInjury(scope),
2646
+ causeOfInjury(scope),
2647
+ doctorTreatment(scope)
2648
2648
  ]
2649
2649
  }
2650
2650
  );
@@ -2726,9 +2726,9 @@ const stepDefaults = (step) => ({
2726
2726
  function questionsStepHeadline(updates) {
2727
2727
  return {
2728
2728
  $el: 'h3',
2729
- children: updates.headline || 'Tell Us About Your Case',
2729
+ children: updates.headline || 'Tell Us About Your Situation',
2730
2730
  attrs: {
2731
- 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'
2731
+ 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'
2732
2732
  }
2733
2733
  }
2734
2734
  }
@@ -2739,7 +2739,7 @@ function commentsStepHeadline(updates) {
2739
2739
  $el: 'h3',
2740
2740
  children: updates.headline || 'Additional Case Details',
2741
2741
  attrs: {
2742
- 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 || '')
2742
+ 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 || '')
2743
2743
  }
2744
2744
  }
2745
2745
  }
@@ -2749,7 +2749,7 @@ function firstAndLastStepHeadline(updates) {
2749
2749
  $el: 'h3',
2750
2750
  children: updates.headline || 'Please Provide a Contact Name',
2751
2751
  attrs: {
2752
- 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 || '')
2752
+ 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 || '')
2753
2753
  }
2754
2754
  }
2755
2755
  }
@@ -2759,7 +2759,7 @@ function contactStepHeadline(updates) {
2759
2759
  $el: 'h3',
2760
2760
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2761
2761
  attrs: {
2762
- 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'
2762
+ 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'
2763
2763
  }
2764
2764
  }
2765
2765
  }
@@ -2806,10 +2806,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2806
2806
  }
2807
2807
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2808
2808
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2809
- if (nextOnEnter === true) {
2809
+ if (lastInput && nextOnEnter === true) {
2810
2810
  lastInput.onKeypress = NEXT_ON_ENTER;
2811
2811
  }
2812
- if (nextOnInput === true) {
2812
+ if (lastInput && nextOnInput === true) {
2813
2813
  lastInput.onInput = NEXT_ON_INPUT;
2814
2814
  }
2815
2815
  }