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
@@ -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
 
@@ -1675,9 +1675,9 @@ const roleInMatterCriminal = () => sbsRadio({
1675
1675
  ]
1676
1676
  });
1677
1677
 
1678
- const roleInMatterProbate = () => sbsSelect({
1678
+ const roleInMatterProbate = (scope) => sbsSelect({
1679
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1679
1680
  label: "What Is Your Role in this Matter?",
1680
- name: 'Role_In_Matter_Probate',
1681
1681
  options: [
1682
1682
  "Preparing My Will",
1683
1683
  "Executor",
@@ -1770,9 +1770,9 @@ const TCPAConsent = () => ({
1770
1770
  }
1771
1771
  });
1772
1772
 
1773
- const typeOfAlcoholTest = () => sbsSelect({
1773
+ const typeOfAlcoholTest = (scope) => sbsSelect({
1774
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1774
1775
  label: 'Type of Alcohol Test Performed?',
1775
- name: 'Type_Of_Alcohol_Test',
1776
1776
  options: [
1777
1777
  "No Test",
1778
1778
  "Refused Test",
@@ -1783,9 +1783,9 @@ const typeOfAlcoholTest = () => sbsSelect({
1783
1783
  ]
1784
1784
  });
1785
1785
 
1786
- const typeOfAssets = () => col2Checkbox({
1786
+ const typeOfAssets = (scope) => col2Checkbox({
1787
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1787
1788
  label: 'Type of Assets:',
1788
- name: 'Type_Of_Assets',
1789
1789
  options: [
1790
1790
  "Business Interests",
1791
1791
  "Cash",
@@ -1834,9 +1834,9 @@ const trafficViolations = () => sbsSelect({
1834
1834
  ]
1835
1835
  });
1836
1836
 
1837
- const valueOfAssets = () => sbsSelect({
1837
+ const valueOfAssets = (scope) => sbsSelect({
1838
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1838
1839
  label: 'Value of Your Assets?',
1839
- name: 'Value_Of_Assets',
1840
1840
  options: [
1841
1841
  "Less than 50K",
1842
1842
  "50K to 100K",
@@ -1965,17 +1965,17 @@ const AsbestosAndMesotheliomaQuestions = () => group(
1965
1965
  }
1966
1966
  );
1967
1967
 
1968
- const AutoAndCarAccidentsQuestions = () => group(
1968
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1969
1969
  'AutoAndCarAccidentsQuestions',
1970
1970
  {
1971
- if: '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1971
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1972
1972
  children: [
1973
- haveAttorney(),
1974
- incidentDate(),
1975
- atFault(),
1976
- primaryInjury(),
1977
- doctorTreatment(),
1978
- policeReportFiled()
1973
+ haveAttorney(scope),
1974
+ incidentDate(scope),
1975
+ atFault(scope),
1976
+ primaryInjury(scope),
1977
+ doctorTreatment(scope),
1978
+ policeReportFiled(scope)
1979
1979
  ]
1980
1980
  }
1981
1981
  );
@@ -2020,32 +2020,32 @@ const BusinessLawyersQuestions = () => group(
2020
2020
  }
2021
2021
  );
2022
2022
 
2023
- const ChildCustodyAndSupportQuestions = () => group(
2023
+ const ChildCustodyAndSupportQuestions = (condition, scope) => group(
2024
2024
  'ChildCustodyAndSupportQuestions',
2025
2025
  {
2026
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"',
2026
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody and Support"'),
2027
2027
  children: [
2028
- haveAttorney(),
2029
- childRelationship(),
2030
- childHome(),
2031
- childPrimaryCaregiver(),
2032
- degreeOfInterest(),
2033
- lawyerPaymentMethod()
2028
+ haveAttorney(scope),
2029
+ childRelationship(scope),
2030
+ childHome(scope),
2031
+ childPrimaryCaregiver(scope),
2032
+ degreeOfInterest(scope),
2033
+ lawyerPaymentMethod(scope)
2034
2034
  ]
2035
2035
  }
2036
2036
  );
2037
2037
 
2038
- const ChildCustodyQuestions = () => group(
2038
+ const ChildCustodyQuestions = (condition, scope) => group(
2039
2039
  'ChildCustodyQuestions',
2040
2040
  {
2041
- if: '$get(Type_Of_Legal_Problem).value == "Child Custody"',
2041
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
2042
2042
  children: [
2043
- haveAttorney(),
2044
- childRelationship(),
2045
- childHome(),
2046
- childPrimaryCaregiver(),
2047
- degreeOfInterest(),
2048
- lawyerPaymentMethod()
2043
+ haveAttorney(scope),
2044
+ childRelationship(scope),
2045
+ childHome(scope),
2046
+ childPrimaryCaregiver(scope),
2047
+ degreeOfInterest(scope),
2048
+ lawyerPaymentMethod(scope)
2049
2049
  ]
2050
2050
  }
2051
2051
  );
@@ -2168,32 +2168,32 @@ const DebtAndCollectionsQuestions = () => group(
2168
2168
  }
2169
2169
  );
2170
2170
 
2171
- const DivorceQuestions = () => group(
2171
+ const DivorceQuestions = (condition, scope) => group(
2172
2172
  'DivorceQuestions',
2173
2173
  {
2174
- if: '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
2174
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
2175
2175
  children: [
2176
- haveAttorney(),
2177
- maritalStatus(),
2178
- haveChildren(),
2179
- degreeOfInterest(),
2180
- lawyerPaymentMethod()
2176
+ haveAttorney(scope),
2177
+ maritalStatus(scope),
2178
+ haveChildren(scope),
2179
+ degreeOfInterest(scope),
2180
+ lawyerPaymentMethod(scope)
2181
2181
  ]
2182
2182
  }
2183
2183
  );
2184
2184
 
2185
- const DUIAndDWIQuestions = () => group(
2185
+ const DUIAndDWIQuestions = (condition, scope) => group(
2186
2186
  'DUIAndDWIQuestions',
2187
2187
  {
2188
- if: '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
2188
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
2189
2189
  children: [
2190
- haveAttorney(),
2191
- incidentDate(),
2192
- priorAlcoholOffenses(),
2193
- typeOfAlcoholTest(),
2194
- bloodContentAlcholTest(),
2195
- pendingCharges(),
2196
- degreeOfInterestHelp()
2190
+ haveAttorney(scope),
2191
+ incidentDate(scope),
2192
+ priorAlcoholOffenses(scope),
2193
+ typeOfAlcoholTest(scope),
2194
+ bloodContentAlcholTest(scope),
2195
+ pendingCharges(scope),
2196
+ degreeOfInterestHelp(scope)
2197
2197
  ]
2198
2198
  }
2199
2199
  );
@@ -2339,19 +2339,19 @@ const IdentityTheftQuestions = () => group(
2339
2339
  }
2340
2340
  );
2341
2341
 
2342
- const ImmigrationAndVisasQuestions = () => group(
2342
+ const ImmigrationAndVisasQuestions = (condition, scope) => group(
2343
2343
  'ImmigrationAndVisasQuestions',
2344
2344
  {
2345
- if: '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"',
2345
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Immigration and Visas"'),
2346
2346
  children: [
2347
- haveAttorney(),
2348
- countryOfCitizenship(),
2349
- immigrationLocation(),
2350
- immigrationEntry(),
2351
- immigrationType(),
2352
- immigrationStatus(),
2353
- immigrationDetails(),
2354
- degreeOfInterestHelp()
2347
+ haveAttorney(scope),
2348
+ countryOfCitizenship(scope),
2349
+ immigrationLocation(scope),
2350
+ immigrationEntry(scope),
2351
+ immigrationType(scope),
2352
+ immigrationStatus(scope),
2353
+ immigrationDetails(scope),
2354
+ degreeOfInterestHelp(scope)
2355
2355
  ]
2356
2356
  }
2357
2357
  );
@@ -2392,19 +2392,19 @@ const LemonLawQuestions = () => group(
2392
2392
  }
2393
2393
  );
2394
2394
 
2395
- const LongTermDisabilityQuestions = () => group(
2395
+ const LongTermDisabilityQuestions = (condition, scope) => group(
2396
2396
  'LongTermDisabilityQuestions',
2397
2397
  {
2398
- if: '$get(Type_Of_Legal_Problem).value == "Long Term Disability"',
2398
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Long Term Disability"'),
2399
2399
  children: [
2400
- haveAttorney(),
2401
- applicantOccupation(),
2402
- applicantAge(),
2403
- applicantLTDisabilityPolicy(),
2404
- applicantDisabilityHowObtain(),
2405
- applicantPreviouslyAppliedLtdBenefits(),
2406
- applicantReceivedDisabilityBenefits(),
2407
- applicantMonthlySalary()
2400
+ haveAttorney(scope),
2401
+ applicantOccupation(scope),
2402
+ applicantAge(scope),
2403
+ applicantLTDisabilityPolicy(scope),
2404
+ applicantDisabilityHowObtain(scope),
2405
+ applicantPreviouslyAppliedLtdBenefits(scope),
2406
+ applicantReceivedDisabilityBenefits(scope),
2407
+ applicantMonthlySalary(scope)
2408
2408
  ]
2409
2409
  }
2410
2410
  );
@@ -2449,28 +2449,28 @@ const PatentsAndIntellectualPropertyQuestions = () => group(
2449
2449
  }
2450
2450
  );
2451
2451
 
2452
- const PersonalInjuryQuestions = () => group(
2452
+ const PersonalInjuryQuestions = (condition, scope) => group(
2453
2453
  'PersonalInjuryQuestions',
2454
2454
  {
2455
- if: '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
2455
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
2456
2456
  children: [
2457
- haveAttorney(),
2458
- incidentDate(),
2459
- claimStatus(),
2460
- atFault(),
2461
- primaryInjury(),
2462
- doctorTreatment()
2457
+ haveAttorney(scope),
2458
+ incidentDate(scope),
2459
+ claimStatus(scope),
2460
+ atFault(scope),
2461
+ primaryInjury(scope),
2462
+ doctorTreatment(scope)
2463
2463
  ]
2464
2464
  }
2465
2465
  );
2466
2466
 
2467
- const PowerofAttorneyQuestions = () => group(
2467
+ const PowerofAttorneyQuestions = (condition, scope) => group(
2468
2468
  'PowerofAttorneyQuestions',
2469
2469
  {
2470
- if: '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
2470
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
2471
2471
  children: [
2472
- haveAttorney(),
2473
- degreeOfInterestHelp()
2472
+ haveAttorney(scope),
2473
+ degreeOfInterestHelp(scope)
2474
2474
  ]
2475
2475
  }
2476
2476
  );
@@ -2622,32 +2622,32 @@ const VictimOfACrimeQuestions = () => group(
2622
2622
  }
2623
2623
  );
2624
2624
 
2625
- const WillsAndTrustsQuestions = () => group(
2625
+ const WillsAndTrustsQuestions = (condition, scope) => group(
2626
2626
  'WillsAndTrustsQuestions',
2627
2627
  {
2628
- if: '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
2628
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
2629
2629
  children: [
2630
- haveAttorney(),
2631
- valueOfAssets(),
2632
- typeOfAssets(),
2633
- roleInMatterProbate(),
2634
- estateLegalServicesNeeded(),
2635
- degreeOfInterestHelp()
2630
+ haveAttorney(scope),
2631
+ valueOfAssets(scope),
2632
+ typeOfAssets(scope),
2633
+ roleInMatterProbate(scope),
2634
+ estateLegalServicesNeeded(scope),
2635
+ degreeOfInterestHelp(scope)
2636
2636
  ]
2637
2637
  }
2638
2638
  );
2639
2639
 
2640
- const WorkersCompensationQuestions = () => group(
2640
+ const WorkersCompensationQuestions = (condition, scope) => group(
2641
2641
  'WorkersCompensationQuestions',
2642
2642
  {
2643
- if: '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
2643
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
2644
2644
  children: [
2645
- haveAttorney(),
2646
- incidentDate(),
2647
- claimStatus(),
2648
- primaryInjury(),
2649
- causeOfInjury(),
2650
- doctorTreatment()
2645
+ haveAttorney(scope),
2646
+ incidentDate(scope),
2647
+ claimStatus(scope),
2648
+ primaryInjury(scope),
2649
+ causeOfInjury(scope),
2650
+ doctorTreatment(scope)
2651
2651
  ]
2652
2652
  }
2653
2653
  );
@@ -2729,9 +2729,9 @@ const stepDefaults = (step) => ({
2729
2729
  function questionsStepHeadline(updates) {
2730
2730
  return {
2731
2731
  $el: 'h3',
2732
- children: updates.headline || 'Tell Us About Your Case',
2732
+ children: updates.headline || 'Tell Us About Your Situation',
2733
2733
  attrs: {
2734
- 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'
2734
+ 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'
2735
2735
  }
2736
2736
  }
2737
2737
  }
@@ -2742,7 +2742,7 @@ function commentsStepHeadline(updates) {
2742
2742
  $el: 'h3',
2743
2743
  children: updates.headline || 'Additional Case Details',
2744
2744
  attrs: {
2745
- 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 || '')
2745
+ 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 || '')
2746
2746
  }
2747
2747
  }
2748
2748
  }
@@ -2752,7 +2752,7 @@ function firstAndLastStepHeadline(updates) {
2752
2752
  $el: 'h3',
2753
2753
  children: updates.headline || 'Please Provide a Contact Name',
2754
2754
  attrs: {
2755
- 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 || '')
2755
+ 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 || '')
2756
2756
  }
2757
2757
  }
2758
2758
  }
@@ -2762,7 +2762,7 @@ function contactStepHeadline(updates) {
2762
2762
  $el: 'h3',
2763
2763
  children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2764
2764
  attrs: {
2765
- 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'
2765
+ 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'
2766
2766
  }
2767
2767
  }
2768
2768
  }
@@ -2809,10 +2809,10 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false) {
2809
2809
  }
2810
2810
  if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2811
2811
  const lastInput = findLastInput(inputs[inputs.length - 1]);
2812
- if (nextOnEnter === true) {
2812
+ if (lastInput && nextOnEnter === true) {
2813
2813
  lastInput.onKeypress = NEXT_ON_ENTER;
2814
2814
  }
2815
- if (nextOnInput === true) {
2815
+ if (lastInput && nextOnInput === true) {
2816
2816
  lastInput.onInput = NEXT_ON_INPUT;
2817
2817
  }
2818
2818
  }