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
@@ -434,7 +434,6 @@ const TOLPCommentsPlaceholders = {
434
434
  'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
435
435
  '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"',
436
436
  'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
437
- 'Nursing Home Abuse': 'Example: "My mother\'s nursing home is physically abusing her"',
438
437
  'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
439
438
  'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
440
439
  'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
@@ -446,8 +445,6 @@ const TOLPCommentsPlaceholders = {
446
445
  'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
447
446
  'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
448
447
  'Unemployment': 'Example: "I need help filing for unemployment benefits"',
449
- 'Vaccination Injury': 'Example: "I was injured after receiving a vaccine and would like to file a lawsuit"',
450
- 'Veteran\'s Disability': 'Example: "I would like help filing for disability benefits"',
451
448
  'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
452
449
  'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
453
450
  'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
@@ -458,59 +455,6 @@ const TOLPCommentsPlaceholders = {
458
455
 
459
456
  const TOLPFinalHeadlines = {
460
457
  // 'Adoption': '',
461
- // 'Asbestos and Mesothelioma': '',
462
- // 'Auto and Car Accidents': '',
463
- // 'Bankruptcy': '',
464
- // 'Birth Certificate and Name Change': '',
465
- // 'Business Lawyers': '',
466
- // 'Child Custody and Support': '',
467
- // 'Civil Rights and Discrimination': '',
468
- // 'Civil Lawsuit': '',
469
- // 'Consumer Lawyers': '',
470
- // 'Copyrights and Trademarks': '',
471
- // 'Criminal and Felony': '',
472
- // 'Debt and Collections': '',
473
- // 'Divorce and Separation': '',
474
- // 'DUI and DWI': '',
475
- // 'Elder Law': '',
476
- // 'Employment and Workplace': '',
477
- // 'Expungement': '',
478
- // 'Family Issues': '',
479
- // 'Foreclosure': '',
480
- // 'Guardianship': '',
481
- // 'Harassment and Discrimination': '',
482
- // 'Identity Theft': '',
483
- // 'Immigration and Visas': '',
484
- // 'Insurance': '',
485
- // 'Landlord and Tenant': '',
486
- // 'Lemon Law': '',
487
- // 'Long Term Disability': '',
488
- // 'Medical Malpractice': '',
489
- // 'Nursing Home Abuse': '',
490
- // 'Patents and Intellectual Property': '',
491
- // 'Personal Injury': '',
492
- // 'Power of Attorney': '',
493
- // 'Probate and Estates': '',
494
- // 'Product Liability': '',
495
- // 'Property Damage': '',
496
- // 'Real Estate': '',
497
- // 'Social Security Disability and Insurance': '',
498
- // 'Tax and IRS': '',
499
- // 'Traffic and Tickets': '',
500
- // 'Unemployment': '',
501
- // 'Vaccination Injury': '',
502
- // 'Veteran\'s Disability': '',
503
- // 'Victim of a Crime': '',
504
- // 'Wills and Trusts': '',
505
- // 'Workers Compensation': '',
506
- // 'Wrongful Death': '',
507
- // 'Wrongful Termination': '',
508
- // 'Not Sure or Other': ''
509
- // 'Sexual Harassment': '',
510
- // 'Workplace Harassment': '',
511
- // 'Non-Workplace Harassment': '',
512
- // 'Workplace Discrimination': '',
513
- // 'Non-Workplace Discrimination': '',
514
458
  };
515
459
 
516
460
  const TOLPFinalSubHeadlines = {
@@ -543,7 +487,6 @@ const TOLPFinalSubHeadlines = {
543
487
  // 'Lemon Law': '',
544
488
  'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
545
489
  'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
546
- // 'Nursing Home Abuse': '',
547
490
  'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
548
491
  'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
549
492
  // 'Power of Attorney': '',
@@ -555,8 +498,6 @@ const TOLPFinalSubHeadlines = {
555
498
  'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
556
499
  // 'Traffic and Tickets': '',
557
500
  'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
558
- // 'Vaccination Injury': '',
559
- 'Veteran\'s Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
560
501
  // 'Victim of a Crime': '',
561
502
  // 'Wills and Trusts': '',
562
503
  'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
@@ -676,7 +617,6 @@ const sbsSelect = (updates) => {
676
617
  return select(updates)
677
618
  };
678
619
 
679
-
680
620
  const text = (updates) => {
681
621
  return merge({
682
622
  $formkit: 'text',
@@ -747,59 +687,18 @@ const applicantOccupation = (scope) => sbsText({
747
687
  });
748
688
 
749
689
 
750
- const applicantAge = (scope) => sbsSelect({
690
+ const applicantAge = (scope) => sbsText({
751
691
  name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
752
692
  label: 'Age of Applicant?',
753
- options: [
754
- "18",
755
- "19",
756
- "20",
757
- "21",
758
- "22",
759
- "23",
760
- "24",
761
- "25",
762
- "26",
763
- "27",
764
- "28",
765
- "29",
766
- "30",
767
- "31",
768
- "32",
769
- "33",
770
- "34",
771
- "35",
772
- "36",
773
- "37",
774
- "38",
775
- "39",
776
- "40",
777
- "41",
778
- "42",
779
- "43",
780
- "44",
781
- "45",
782
- "46",
783
- "47",
784
- "48",
785
- "49",
786
- "50",
787
- "51",
788
- "52",
789
- "53",
790
- "54",
791
- "55",
792
- "56",
793
- "57",
794
- "58",
795
- "59",
796
- "60",
797
- "61",
798
- "62",
799
- "63",
800
- "64",
801
- "65"
802
- ]
693
+ placeholder: 'Age between 18 and 65',
694
+ maxlength: 2,
695
+ inputmode: "numeric",
696
+ validation: "required|min:18,max:65",
697
+ validationMessages: {
698
+ required: 'Applicant Age is required',
699
+ min: 'Invalid Age - must be between 18 and 65',
700
+ max: 'Invalid Age - must be between 18 and 65',
701
+ }
803
702
  });
804
703
 
805
704
  const applicantDisabilityHowObtain = (scope) => sbsSelect({
@@ -1303,7 +1202,7 @@ const disabilityWorkHistory = () => sbsYesNoRadio({
1303
1202
 
1304
1203
  const doctorTreatment = (scope) => sbsYesNoRadio({
1305
1204
  name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
1306
- label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?'
1205
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
1307
1206
  });
1308
1207
 
1309
1208
  const driversLicenseType = () => sbs2ItemRadio({
@@ -1419,7 +1318,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1419
1318
  'Medical Malpractice',
1420
1319
  'Non-Workplace Discrimination',
1421
1320
  'Non-Workplace Harassment',
1422
- 'Nursing Home Abuse',
1423
1321
  'Patents and Intellectual Property',
1424
1322
  'Personal Injury',
1425
1323
  'Power of Attorney',
@@ -1432,8 +1330,6 @@ const generalTOLP = (updates) => sbsSelect(merge({
1432
1330
  'Tax and IRS',
1433
1331
  'Traffic and Tickets',
1434
1332
  'Unemployment',
1435
- 'Vaccination Injury',
1436
- "Veteran's Disability",
1437
1333
  'Victim of a Crime',
1438
1334
  'Wills and Trusts',
1439
1335
  'Workers Compensation',
@@ -1649,19 +1545,6 @@ const numEmployeesOfBusiness = () => sbsSelect({
1649
1545
  ]
1650
1546
  });
1651
1547
 
1652
- const nursingHomeStatus = () => sbsSelect({
1653
- label: "The Elderly Person is Currently:",
1654
- name: 'Nursing_Home_Status',
1655
- options: [
1656
- "Living at a nursing home",
1657
- "Living at their own home with medical supervision",
1658
- "Living at their own home without medical supervision ",
1659
- "Living at the home of a child, grandchild or friend",
1660
- "Deceased",
1661
- "Other"
1662
- ]
1663
- });
1664
-
1665
1548
  const ownRealEstate = () => sbsYesNoRadio({
1666
1549
  name: 'Own_Real_Estate',
1667
1550
  label: 'Do You Own Real Estate?'
@@ -1967,49 +1850,6 @@ const valueOfAssets = (scope) => sbsSelect({
1967
1850
  ]
1968
1851
  });
1969
1852
 
1970
- const veteransDisabilityApplied = () => sbsSelect({
1971
- label: 'Has the Applicant Applied for VA Disability Compensation?',
1972
- name: 'Veterans_Disability_Applied',
1973
- options: [
1974
- "Yes, Claim filed and awaiting decision",
1975
- "Yes, Claim denied",
1976
- "Yes, Claim on appeal",
1977
- "Yes, Claim approved",
1978
- "Yes, Benefits awarded",
1979
- "No, Claim has not been filed"
1980
- ]
1981
- });
1982
-
1983
- const veteransDisabilityConditions = () => sbsCheckbox({
1984
- label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1985
- name: 'Veterans_Disability_Conditions',
1986
- options: [
1987
- "Traumatic Physical Injury (broken bones, loss of limb)",
1988
- "Mental Injury",
1989
- "Occupational Disease",
1990
- "Repeated Trauma Injury",
1991
- "Other"
1992
- ]
1993
- });
1994
-
1995
- const veteransDisabilityRelationship = () => sbsSelect({
1996
- label: 'What is Your Relationship to the Applicant?',
1997
- name: 'Veterans_Disability_Relationship',
1998
- options: [
1999
- "Self, Active Duty",
2000
- "Self, Active Reserve",
2001
- "Self, Discharged from Active Duty",
2002
- "Self, Discharged as Reservist",
2003
- "Surviving Family Member",
2004
- "Other"
2005
- ]
2006
- });
2007
-
2008
- const veteransDisabilityInjured = () => sbsYesNoRadio({
2009
- name: 'Veterans_Disability_Injured',
2010
- label: 'Was the Applicant Hurt While on Duty or is the Condition Related to Military Service?'
2011
- });
2012
-
2013
1853
  const wouldLikeLawyerTo = () => sbsRadio({
2014
1854
  label: 'I Would Like a Lawyer to:',
2015
1855
  name: 'Would_Like_Lawyer_To',
@@ -2558,18 +2398,6 @@ const MedicalMalpracticeQuestions = () => group(
2558
2398
  }
2559
2399
  );
2560
2400
 
2561
- const NursingHomeAbuseQuestions = () => group(
2562
- 'NursingHomeAbuseQuestions',
2563
- {
2564
- if: '$get(Type_Of_Legal_Problem).value == "Nursing Home Abuse"',
2565
- children: [
2566
- haveAttorney(),
2567
- incidentDate(),
2568
- nursingHomeStatus()
2569
- ]
2570
- }
2571
- );
2572
-
2573
2401
  const PatentsAndIntellectualPropertyQuestions = () => group(
2574
2402
  'PatentsAndIntellectualPropertyQuestions',
2575
2403
  {
@@ -2717,30 +2545,6 @@ const UnemploymentQuestions = () => group(
2717
2545
  }
2718
2546
  );
2719
2547
 
2720
- const VaccinationInjuryQuestions = () => group(
2721
- 'VaccinationInjuryQuestions',
2722
- {
2723
- if: '$get(Type_Of_Legal_Problem).value == "Vaccination Injury"',
2724
- children: [
2725
- haveAttorney(),
2726
- incidentDate()
2727
- ]
2728
- }
2729
- );
2730
-
2731
- const VeteransDisabilityQuestions = () => group(
2732
- 'VeteransDisabilityQuestions',
2733
- {
2734
- if: '$get(Type_Of_Legal_Problem).value == "Veteran\'s Disability"',
2735
- children: [
2736
- veteransDisabilityRelationship(),
2737
- veteransDisabilityInjured(),
2738
- veteransDisabilityConditions(),
2739
- veteransDisabilityApplied()
2740
- ]
2741
- }
2742
- );
2743
-
2744
2548
  const VictimOfACrimeQuestions = () => group(
2745
2549
  'VictimOfACrimeQuestions',
2746
2550
  {
@@ -2851,12 +2655,8 @@ const findLastInput = (n) => {
2851
2655
 
2852
2656
  const stepDefaults = (step) => ({
2853
2657
  $el: 'section',
2854
- if: '$stepIsEnabled("' + step + '")',
2855
2658
  attrs: {
2856
- style: {
2857
- if: '$activeStep !== "' + step + '"',
2858
- then: 'display: none;'
2859
- }
2659
+ hidden: '$activeStep !== "' + step + '"'
2860
2660
  }
2861
2661
  });
2862
2662
 
@@ -3066,7 +2866,6 @@ const AllTOLPQuestions = () => {
3066
2866
  LemonLawQuestions(),
3067
2867
  LongTermDisabilityQuestions(),
3068
2868
  MedicalMalpracticeQuestions(),
3069
- NursingHomeAbuseQuestions(),
3070
2869
  PatentsAndIntellectualPropertyQuestions(),
3071
2870
  PersonalInjuryQuestions(),
3072
2871
  PowerofAttorneyQuestions(),
@@ -3078,8 +2877,6 @@ const AllTOLPQuestions = () => {
3078
2877
  TaxAndIRSQuestions(),
3079
2878
  TrafficAndTicketsQuestions(),
3080
2879
  UnemploymentQuestions(),
3081
- VaccinationInjuryQuestions(),
3082
- VeteransDisabilityQuestions(),
3083
2880
  VictimOfACrimeQuestions(),
3084
2881
  WillsAndTrustsQuestions(),
3085
2882
  WorkersCompensationQuestions(),