bhl-forms 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/bhl-forms.es.js +7 -3
  2. package/dist/bhl-forms.iife.js +7 -7
  3. package/dist/bhl-forms.modern.es.js +1371 -1362
  4. package/dist/bhl-forms.modern.iife.js +9 -9
  5. package/dist/bhl-forms.modern.umd.js +9 -9
  6. package/dist/bhl-forms.umd.js +7 -7
  7. package/dist/forms/accidentsAndInjuries.es.js +2 -66
  8. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  9. package/dist/forms/accidentsAndInjuries.json +1 -1
  10. package/dist/forms/appraisals.es.js +1 -5
  11. package/dist/forms/appraisals.iife.js +1 -1
  12. package/dist/forms/appraisals.json +1 -1
  13. package/dist/forms/childAndFamily.es.js +1 -65
  14. package/dist/forms/childAndFamily.iife.js +1 -1
  15. package/dist/forms/childAndFamily.json +1 -1
  16. package/dist/forms/civilLawsuit.es.js +2 -66
  17. package/dist/forms/civilLawsuit.iife.js +1 -1
  18. package/dist/forms/civilLawsuit.json +1 -1
  19. package/dist/forms/coins.es.js +1 -5
  20. package/dist/forms/coins.iife.js +1 -1
  21. package/dist/forms/coins.json +1 -1
  22. package/dist/forms/contracts.es.js +1 -65
  23. package/dist/forms/contracts.iife.js +1 -1
  24. package/dist/forms/contracts.json +1 -1
  25. package/dist/forms/criminal.es.js +12 -212
  26. package/dist/forms/criminal.iife.js +1 -1
  27. package/dist/forms/criminal.json +1 -1
  28. package/dist/forms/employmentAndWorkplace.es.js +2 -66
  29. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  30. package/dist/forms/employmentAndWorkplace.json +1 -1
  31. package/dist/forms/generalLegal.es.js +23 -443
  32. package/dist/forms/generalLegal.iife.js +1 -1
  33. package/dist/forms/generalLegal.json +1 -1
  34. package/dist/forms/generalLegalPopUnder.es.js +12 -215
  35. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  36. package/dist/forms/generalLegalPopUnder.json +1 -1
  37. package/dist/forms/generalLegalPopUnderTF.es.js +12 -215
  38. package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
  39. package/dist/forms/generalLegalPopUnderTF.json +1 -1
  40. package/dist/forms/generalLegalThankYou.es.js +12 -215
  41. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  42. package/dist/forms/generalLegalThankYou.json +1 -1
  43. package/dist/forms/harassmentAndDiscrimination.es.js +1 -65
  44. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  45. package/dist/forms/harassmentAndDiscrimination.json +1 -1
  46. package/dist/forms/malpractice.es.js +2 -66
  47. package/dist/forms/malpractice.iife.js +1 -1
  48. package/dist/forms/malpractice.json +1 -1
  49. package/dist/forms/mechanics.es.js +1 -5
  50. package/dist/forms/mechanics.iife.js +1 -1
  51. package/dist/forms/mechanics.json +1 -1
  52. package/dist/forms/realEstate.es.js +12 -212
  53. package/dist/forms/realEstate.iife.js +1 -1
  54. package/dist/forms/realEstate.json +1 -1
  55. package/dist/forms/repossession.es.js +1 -65
  56. package/dist/forms/repossession.iife.js +1 -1
  57. package/dist/forms/repossession.json +1 -1
  58. package/dist/forms/ssdi.es.js +17 -138
  59. package/dist/forms/ssdi.iife.js +1 -1
  60. package/dist/forms/ssdi.json +1 -1
  61. package/dist/forms/testForm.es.js +1 -65
  62. package/dist/forms/testForm.iife.js +1 -1
  63. package/dist/forms/testForm.json +1 -1
  64. package/dist/forms/testRedirects.es.js +1 -9
  65. package/dist/forms/testRedirects.iife.js +1 -1
  66. package/dist/forms/testRedirects.json +1 -1
  67. package/dist/forms/vets.es.js +1 -5
  68. package/dist/forms/vets.iife.js +1 -1
  69. package/dist/forms/vets.json +1 -1
  70. package/dist/forms/willsAndTrusts.es.js +1 -65
  71. package/dist/forms/willsAndTrusts.iife.js +1 -1
  72. package/dist/forms/willsAndTrusts.json +1 -1
  73. package/package.json +2 -2
@@ -411,7 +411,6 @@ const TOLPCommentsPlaceholders = {
411
411
  'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
412
412
  'Long Term Disability': 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
413
413
  'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
414
- 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
415
414
  'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
416
415
  'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
417
416
  'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
@@ -423,8 +422,6 @@ const TOLPCommentsPlaceholders = {
423
422
  'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
424
423
  'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
425
424
  'Unemployment': 'Example: "I need help filing for unemployment benefits"',
426
- 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
427
- 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
428
425
  'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
429
426
  'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
430
427
  'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
@@ -435,59 +432,6 @@ const TOLPCommentsPlaceholders = {
435
432
 
436
433
  const TOLPFinalHeadlines = {
437
434
  // 'Adoption': '',
438
- // 'Asbestos and Mesothelioma': '',
439
- // 'Auto and Car Accidents': '',
440
- // 'Bankruptcy': '',
441
- // 'Birth Certificate and Name Change': '',
442
- // 'Business Lawyers': '',
443
- // 'Child Custody and Support': '',
444
- // 'Civil Rights and Discrimination': '',
445
- // 'Civil Lawsuit': '',
446
- // 'Consumer Lawyers': '',
447
- // 'Copyrights and Trademarks': '',
448
- // 'Criminal and Felony': '',
449
- // 'Debt and Collections': '',
450
- // 'Divorce and Separation': '',
451
- // 'DUI and DWI': '',
452
- // 'Elder Law': '',
453
- // 'Employment and Workplace': '',
454
- // 'Expungement': '',
455
- // 'Family Issues': '',
456
- // 'Foreclosure': '',
457
- // 'Guardianship': '',
458
- // 'Harassment and Discrimination': '',
459
- // 'Identity Theft': '',
460
- // 'Immigration and Visas': '',
461
- // 'Insurance': '',
462
- // 'Landlord and Tenant': '',
463
- // 'Lemon Law': '',
464
- // 'Long Term Disability': '',
465
- // 'Medical Malpractice': '',
466
- // 'Nursing Home Abuse': '',
467
- // 'Patents and Intellectual Property': '',
468
- // 'Personal Injury': '',
469
- // 'Power of Attorney': '',
470
- // 'Probate and Estates': '',
471
- // 'Product Liability': '',
472
- // 'Property Damage': '',
473
- // 'Real Estate': '',
474
- // 'Social Security Disability and Insurance': '',
475
- // 'Tax and IRS': '',
476
- // 'Traffic and Tickets': '',
477
- // 'Unemployment': '',
478
- // 'Vaccination Injury': '',
479
- // 'Veteran\'s Disability': '',
480
- // 'Victim of a Crime': '',
481
- // 'Wills and Trusts': '',
482
- // 'Workers Compensation': '',
483
- // 'Wrongful Death': '',
484
- // 'Wrongful Termination': '',
485
- // 'Not Sure or Other': ''
486
- // 'Sexual Harassment': '',
487
- // 'Workplace Harassment': '',
488
- // 'Non-Workplace Harassment': '',
489
- // 'Workplace Discrimination': '',
490
- // 'Non-Workplace Discrimination': '',
491
435
  };
492
436
 
493
437
  const TOLPFinalSubHeadlines = {
@@ -520,7 +464,6 @@ const TOLPFinalSubHeadlines = {
520
464
  // 'Lemon Law': '',
521
465
  'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
522
466
  'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
523
- // 'Nursing Home Abuse': '',
524
467
  'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
525
468
  'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
526
469
  // 'Power of Attorney': '',
@@ -532,8 +475,6 @@ const TOLPFinalSubHeadlines = {
532
475
  'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
533
476
  // 'Traffic and Tickets': '',
534
477
  'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
535
- // 'Vaccination Injury': '',
536
- 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
537
478
  // 'Victim of a Crime': '',
538
479
  // 'Wills and Trusts': '',
539
480
  'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
@@ -653,7 +594,6 @@ const sbsSelect = (updates) => {
653
594
  return select(updates)
654
595
  };
655
596
 
656
-
657
597
  const text = (updates) => {
658
598
  return merge({
659
599
  $formkit: 'text',
@@ -724,59 +664,18 @@ const applicantOccupation = (scope) => sbsText({
724
664
  });
725
665
 
726
666
 
727
- const applicantAge = (scope) => sbsSelect({
667
+ const applicantAge = (scope) => sbsText({
728
668
  name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
729
669
  label: 'Age of Applicant?',
730
- options: [
731
- "18",
732
- "19",
733
- "20",
734
- "21",
735
- "22",
736
- "23",
737
- "24",
738
- "25",
739
- "26",
740
- "27",
741
- "28",
742
- "29",
743
- "30",
744
- "31",
745
- "32",
746
- "33",
747
- "34",
748
- "35",
749
- "36",
750
- "37",
751
- "38",
752
- "39",
753
- "40",
754
- "41",
755
- "42",
756
- "43",
757
- "44",
758
- "45",
759
- "46",
760
- "47",
761
- "48",
762
- "49",
763
- "50",
764
- "51",
765
- "52",
766
- "53",
767
- "54",
768
- "55",
769
- "56",
770
- "57",
771
- "58",
772
- "59",
773
- "60",
774
- "61",
775
- "62",
776
- "63",
777
- "64",
778
- "65"
779
- ]
670
+ placeholder: 'Age between 18 and 65',
671
+ maxlength: 2,
672
+ inputmode: "numeric",
673
+ validation: "required|min:18,max:65",
674
+ validationMessages: {
675
+ required: 'Applicant Age is required',
676
+ min: 'Invalid Age - must be between 18 and 65',
677
+ max: 'Invalid Age - must be between 18 and 65',
678
+ }
780
679
  });
781
680
 
782
681
  const applicantDisabilityHowObtain = (scope) => sbsSelect({
@@ -1280,7 +1179,7 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1280
1179
 
1281
1180
  const doctorTreatment = (scope) => sbsYesNoRadio({
1282
1181
  name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1283
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1182
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
1284
1183
  });
1285
1184
 
1286
1185
  const driversLicenseType = () => sbs2ItemRadio({
@@ -1396,7 +1295,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1396
1295
  'Medical Malpractice',
1397
1296
  'Non-Workplace Discrimination',
1398
1297
  'Non-Workplace Harassment',
1399
- 'Nursing Home Abuse',
1400
1298
  'Patents and Intellectual Property',
1401
1299
  'Personal Injury',
1402
1300
  'Power of Attorney',
@@ -1409,8 +1307,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1409
1307
  'Tax and IRS',
1410
1308
  'Traffic and Tickets',
1411
1309
  'Unemployment',
1412
- 'Vaccination Injury',
1413
- "Veteran's Disability",
1414
1310
  'Victim of a Crime',
1415
1311
  'Wills and Trusts',
1416
1312
  'Workers Compensation',
@@ -1626,19 +1522,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1626
1522
  ]
1627
1523
  });
1628
1524
 
1629
- const nursingHomeStatus = () => sbsSelect({
1630
- label: "The Elderly Person is Currently:",
1631
- name: 'Nursing_Home_Status',
1632
- options: [
1633
- "Living at a nursing home",
1634
- "Living at their own home with medical supervision",
1635
- "Living at their own home without medical supervision ",
1636
- "Living at the home of a child, grandchild or friend",
1637
- "Deceased",
1638
- "Other"
1639
- ]
1640
- });
1641
-
1642
1525
  const ownRealEstate = () => sbsYesNoRadio({
1643
1526
  name: 'Own_Real_Estate',
1644
1527
  label: 'Do You Own Real Estate?'
@@ -1944,49 +1827,6 @@ const valueOfAssets = (scope) => sbsSelect({
1944
1827
  ]
1945
1828
  });
1946
1829
 
1947
- const veteransDisabilityApplied = () => sbsSelect({
1948
- label: 'Has the Applicant Applied for VA Disability Compensation?',
1949
- name: 'Veterans_Disability_Applied',
1950
- options: [
1951
- "Yes, Claim filed and awaiting decision",
1952
- "Yes, Claim denied",
1953
- "Yes, Claim on appeal",
1954
- "Yes, Claim approved",
1955
- "Yes, Benefits awarded",
1956
- "No, Claim has not been filed"
1957
- ]
1958
- });
1959
-
1960
- const veteransDisabilityConditions = () => sbsCheckbox({
1961
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1962
- name: 'Veterans_Disability_Conditions',
1963
- options: [
1964
- "Traumatic Physical Injury (broken bones, loss of limb)",
1965
- "Mental Injury",
1966
- "Occupational Disease",
1967
- "Repeated Trauma Injury",
1968
- "Other"
1969
- ]
1970
- });
1971
-
1972
- const veteransDisabilityRelationship = () => sbsSelect({
1973
- label: 'What is Your Relationship to the Applicant?',
1974
- name: 'Veterans_Disability_Relationship',
1975
- options: [
1976
- "Self, Active Duty",
1977
- "Self, Active Reserve",
1978
- "Self, Discharged from Active Duty",
1979
- "Self, Discharged as Reservist",
1980
- "Surviving Family Member",
1981
- "Other"
1982
- ]
1983
- });
1984
-
1985
- const veteransDisabilityInjured = () => sbsYesNoRadio({
1986
- name: 'Veterans_Disability_Injured',
1987
- label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
1988
- });
1989
-
1990
1830
  const wouldLikeLawyerTo = () => sbsRadio({
1991
1831
  label: 'I Would Like a Lawyer to:',
1992
1832
  name: 'Would_Like_Lawyer_To',
@@ -2535,18 +2375,6 @@ const MedicalMalpracticeQuestions = () => group(
2535
2375
  }
2536
2376
  );
2537
2377
 
2538
- const NursingHomeAbuseQuestions = () => group(
2539
- 'NursingHomeAbuseQuestions',
2540
- {
2541
- if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
2542
- children: [
2543
- haveAttorney(),
2544
- incidentDate(),
2545
- nursingHomeStatus()
2546
- ]
2547
- }
2548
- );
2549
-
2550
2378
  const PatentsAndIntellectualPropertyQuestions = () => group(
2551
2379
  'PatentsAndIntellectualPropertyQuestions',
2552
2380
  {
@@ -2694,30 +2522,6 @@ const UnemploymentQuestions = () => group(
2694
2522
  }
2695
2523
  );
2696
2524
 
2697
- const VaccinationInjuryQuestions = () => group(
2698
- 'VaccinationInjuryQuestions',
2699
- {
2700
- if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2701
- children: [
2702
- haveAttorney(),
2703
- incidentDate()
2704
- ]
2705
- }
2706
- );
2707
-
2708
- const VeteransDisabilityQuestions = () => group(
2709
- 'VeteransDisabilityQuestions',
2710
- {
2711
- if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2712
- children: [
2713
- veteransDisabilityRelationship(),
2714
- veteransDisabilityInjured(),
2715
- veteransDisabilityConditions(),
2716
- veteransDisabilityApplied()
2717
- ]
2718
- }
2719
- );
2720
-
2721
2525
  const VictimOfACrimeQuestions = () => group(
2722
2526
  'VictimOfACrimeQuestions',
2723
2527
  {
@@ -2828,12 +2632,8 @@ const findLastInput = (n) => {
2828
2632
 
2829
2633
  const stepDefaults = (step) => ({
2830
2634
  $el: 'section',
2831
- if: '$stepIsEnabled("' + step + '")',
2832
2635
  attrs: {
2833
- style: {
2834
- if: '$activeStep !== "' + step + '"',
2835
- then: 'display: none;'
2836
- }
2636
+ hidden: '$activeStep !== "' + step + '"'
2837
2637
  }
2838
2638
  });
2839
2639
 
@@ -3044,7 +2844,6 @@ const AllTOLPQuestions = () => {
3044
2844
  LemonLawQuestions(),
3045
2845
  LongTermDisabilityQuestions(),
3046
2846
  MedicalMalpracticeQuestions(),
3047
- NursingHomeAbuseQuestions(),
3048
2847
  PatentsAndIntellectualPropertyQuestions(),
3049
2848
  PersonalInjuryQuestions(),
3050
2849
  PowerofAttorneyQuestions(),
@@ -3056,8 +2855,6 @@ const AllTOLPQuestions = () => {
3056
2855
  TaxAndIRSQuestions(),
3057
2856
  TrafficAndTicketsQuestions(),
3058
2857
  UnemploymentQuestions(),
3059
- VaccinationInjuryQuestions(),
3060
- VeteransDisabilityQuestions(),
3061
2858
  VictimOfACrimeQuestions(),
3062
2859
  WillsAndTrustsQuestions(),
3063
2860
  WorkersCompensationQuestions(),