bhl-forms 0.11.14 → 0.11.15

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.
@@ -27,6 +27,45 @@ const ensureIds = (cfg) => {
27
27
  return cfg
28
28
  };
29
29
 
30
+ const checkbox = (updates) => {
31
+ ensureIds(updates);
32
+ return merge(
33
+ {
34
+ $formkit: "checkbox",
35
+ validation: "required",
36
+ validationMessages: {
37
+ required: "Field is required",
38
+ },
39
+ },
40
+ updates
41
+ )
42
+ };
43
+
44
+ const col2Checkbox = (updates) => {
45
+ if (!updates || !updates.legendClass) {
46
+ updates.legendClass = "required";
47
+ }
48
+ updates.fieldsetClass = "$reset";
49
+ updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
50
+ updates.innerClass = "t-items-start";
51
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
52
+ return checkbox(updates)
53
+ };
54
+
55
+ const verticalCol2Checkbox = (updates) => {
56
+ if (!updates || !updates.legendClass) {
57
+ updates.legendClass = "required t-w-[100%] t-text-center";
58
+ }
59
+ updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col";
60
+ updates.innerClass = "t-items-start";
61
+ updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
62
+ updates.optionClass = "t-pl-4 md:t-pl-16 md:t-min-w-[200px]";
63
+ updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
64
+ updates.messagesClass = "t-flex t-justify-center";
65
+ updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
66
+ return checkbox(updates)
67
+ };
68
+
30
69
  const radio = (updates) => {
31
70
  ensureIds(updates);
32
71
  return merge(
@@ -343,6 +382,31 @@ const zipcode$1 = (scope, vertical, updates = {}) => {
343
382
  })
344
383
  };
345
384
 
385
+ const amountPaymentsPastDue$1 = (scope, vertical, updates = {}) => {
386
+ const func = vertical ? verticalSelect : sbsSelect;
387
+ const label = vertical ? updates.label : "Total Amount of Payments that are Past Due:";
388
+ return func(
389
+ merge(
390
+ {
391
+ label,
392
+ name: scope ? scope + ":" + "Amount_Payments_Past_Due" : "Amount_Payments_Past_Due",
393
+ options: [
394
+ "$0 - $499",
395
+ "$500 - $999",
396
+ "$1,000 - $2,499",
397
+ "$2,500 - $4,999",
398
+ "$5,000 - $9,999",
399
+ "$10,000 - $24,999",
400
+ "$25,000 - $49,999",
401
+ "$50,000 - $99,999",
402
+ "More than $100,000",
403
+ ],
404
+ },
405
+ updates
406
+ )
407
+ )
408
+ };
409
+
346
410
  const atFault$1 = (scope, vertical, updates = {}) => {
347
411
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
348
412
  const label = vertical ? updates.label : "Were You at Fault?";
@@ -395,6 +459,27 @@ const businessType$1 = (scope, vertical, updates = {}) => {
395
459
  )
396
460
  };
397
461
 
462
+ const causeOfInjury$1 = (scope, vertical, updates = {}) => {
463
+ const func = vertical ? col2RadioCenter : sbsSelect;
464
+ const label = vertical ? updates.label : "Cause of Injury:";
465
+ return func(
466
+ merge(
467
+ {
468
+ label,
469
+ name: scope ? scope + ":" + "Cause_Of_Injury" : "Cause_Of_Injury",
470
+ options: [
471
+ "Traumatic Physical Injury (Accident)",
472
+ "Repeated Trauma Injury",
473
+ "Mental Injury",
474
+ "Occupational Disease",
475
+ "Not Sure",
476
+ ],
477
+ },
478
+ updates
479
+ )
480
+ )
481
+ };
482
+
398
483
  const civilLawsuitTOLP$1 = (scope, vertical, updates = {}) => {
399
484
  const func = vertical ? verticalButtonRadio : sbs2ColRadio;
400
485
  const label = vertical ? updates.label : "Type of Civil Lawsuit:";
@@ -520,6 +605,20 @@ const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
520
605
  )
521
606
  };
522
607
 
608
+ const defaultNotice$1 = (scope, vertical, updates = {}) => {
609
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
610
+ const label = vertical ? updates.label : "Have You Received a Notice of Loan Default?";
611
+ return func(
612
+ merge(
613
+ {
614
+ name: scope ? scope + ":" + "Default_Notice" : "Default_Notice",
615
+ label,
616
+ },
617
+ updates
618
+ )
619
+ )
620
+ };
621
+
523
622
  const doctorTreatment$1 = (scope, vertical, updates = {}) => {
524
623
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
525
624
  const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
@@ -597,6 +696,28 @@ const employmentAndWorkplaceTOLPDisplay$1 = (scope, vertical, updates = {}) => {
597
696
  )
598
697
  };
599
698
 
699
+ const estateLegalServicesNeeded$1 = (scope, vertical, updates = {}) => {
700
+ const func = vertical ? col2RadioCenter : sbsSelect;
701
+ const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
702
+ return func(
703
+ merge(
704
+ {
705
+ name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
706
+ label,
707
+ options: [
708
+ "Charitable Giving",
709
+ "Contested Wills",
710
+ "Drafting Wills or Trust",
711
+ "Estate Administration",
712
+ "Asset Protection",
713
+ "Other",
714
+ ],
715
+ },
716
+ updates
717
+ )
718
+ )
719
+ };
720
+
600
721
  const haveAttorney$1 = (scope, vertical, updates = {}) => {
601
722
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
602
723
  const label = vertical ? updates.label : "Already Working with An Attorney?";
@@ -625,6 +746,48 @@ const incidentDate$1 = (scope, vertical, updates = {}) => {
625
746
  )
626
747
  };
627
748
 
749
+ const landlordTenantParty$1 = (scope, vertical, updates = {}) => {
750
+ const func = vertical ? verticalButtonRadio : sbsSelect;
751
+ const label = vertical ? updates.label : "I am the:";
752
+ return func(
753
+ merge(
754
+ {
755
+ label,
756
+ name: scope ? scope + ":" + "Landlord_Tenant_Party" : "Landlord_Tenant_Party",
757
+ options: ["Landlord", "Tenant", "Other"],
758
+ },
759
+ updates
760
+ )
761
+ )
762
+ };
763
+
764
+ const landlordTenantIssueRadio = (scope, vertical, updates = {}) => {
765
+ const func = vertical ? col2RadioCenter : col2Radio;
766
+ const label = vertical ? updates.label : "What is the Landlord / Tenant Issue?";
767
+ const _if = vertical ? updates.if : '$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"';
768
+ return func(
769
+ merge(
770
+ {
771
+ label,
772
+ if: _if,
773
+ id: scope ? scope + ":" + "Landlord_Tenant_Issue" : "Landlord_Tenant_Issue",
774
+ name: scope ? scope + ":" + "Landlord_Tenant_Issue" : "Landlord_Tenant_Issue",
775
+ options: [
776
+ "Eviction",
777
+ "Repairs and Maintenance",
778
+ "Lease and Rental Agreements",
779
+ "Discrimination",
780
+ "Right of Entry and Privacy",
781
+ "Screening and Applications",
782
+ "Environmental Hazards",
783
+ "Other Dispute",
784
+ ],
785
+ },
786
+ updates
787
+ )
788
+ )
789
+ };
790
+
628
791
  const lawsuitOtherParty$1 = (scope, vertical, updates = {}) => {
629
792
  const func = vertical ? col2RadioCenter : sbsSelect;
630
793
  const label = vertical ? updates.label : "The Other Party is a:";
@@ -640,6 +803,32 @@ const lawsuitOtherParty$1 = (scope, vertical, updates = {}) => {
640
803
  )
641
804
  };
642
805
 
806
+ const loanAmount$1 = (scope, vertical, updates = {}) => {
807
+ const func = vertical ? verticalSelect : sbsSelect;
808
+ const label = vertical ? updates.label : "Total Amount of Loan?";
809
+ return func(
810
+ merge(
811
+ {
812
+ label,
813
+ name: scope ? scope + ":" + "Loan_Amount" : "Loan_Amount",
814
+ options: [
815
+ "Less than $10,000",
816
+ "$10,000 - $24,999",
817
+ "$25,000 - $49,999",
818
+ "$50,000 - $99,999",
819
+ "$100,000 - $199,999",
820
+ "$200,000 - $299,999",
821
+ "$300,000 - $399,999",
822
+ "$400,000 - $499,999",
823
+ "$500,000 - $599,999",
824
+ "More than $600,000",
825
+ ],
826
+ },
827
+ updates
828
+ )
829
+ )
830
+ };
831
+
643
832
  const medicalMalpracticeInjuries$1 = (scope, vertical, updates = {}) => {
644
833
  const func = vertical ? verticalSelect : sbsSelect;
645
834
  const label = vertical ? updates.label : "Injuries from Medical Malpractice:";
@@ -678,6 +867,20 @@ const numEmployeesOfBusiness$1 = (scope, vertical, updates = {}) => {
678
867
  )
679
868
  };
680
869
 
870
+ const ownRealEstate$1 = (scope, vertical, updates = {}) => {
871
+ const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
872
+ const label = vertical ? updates.label : "Do You Own Real Estate?";
873
+ return func(
874
+ merge(
875
+ {
876
+ name: scope ? scope + ":" + "Own_Real_Estate" : "Own_Real_Estate",
877
+ label,
878
+ },
879
+ updates
880
+ )
881
+ )
882
+ };
883
+
681
884
  const primaryInjury$1 = (scope, vertical, updates = {}) => {
682
885
  const func = vertical ? col2RadioCenter : sbs2ColRadio;
683
886
  const label = vertical ? updates.label : "Primary Injury:";
@@ -768,6 +971,21 @@ const realEstateTOLPDisplay$1 = (scope, vertical, updates = {}) => {
768
971
  )
769
972
  };
770
973
 
974
+ const roleInMatterProbate$1 = (scope, vertical, updates = {}) => {
975
+ const func = vertical ? col2RadioCenter : sbsSelect;
976
+ const label = vertical ? updates.label : "What is Your Role in this Matter?";
977
+ return func(
978
+ merge(
979
+ {
980
+ label,
981
+ name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
982
+ options: ["Preparing My Will", "Executor", "Heir", "Other"],
983
+ },
984
+ updates
985
+ )
986
+ )
987
+ };
988
+
771
989
  const TCPAConsent = (scope, updates = {}) => ({
772
990
  $formkit: "checkbox",
773
991
  label: "$meta.tcpaLanguage",
@@ -792,6 +1010,59 @@ const TCPAConsent = (scope, updates = {}) => ({
792
1010
  },
793
1011
  });
794
1012
 
1013
+ const typeOfAssets$1 = (scope, vertical, updates = {}) => {
1014
+ const func = vertical ? verticalCol2Checkbox : col2Checkbox;
1015
+ const label = vertical ? updates.label : "Type of Assets:";
1016
+ return func(
1017
+ merge(
1018
+ {
1019
+ label,
1020
+ name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
1021
+ options: [
1022
+ "Business Interests",
1023
+ "Cash",
1024
+ "Life Insurance Policies",
1025
+ "Pensions/Retirement",
1026
+ "Personal Possessions",
1027
+ "Property",
1028
+ "Stock/Bonds",
1029
+ ],
1030
+ },
1031
+ updates
1032
+ )
1033
+ )
1034
+ };
1035
+
1036
+ const typeOfProperty$1 = (scope, vertical, updates = {}) => {
1037
+ const func = vertical ? col2RadioCenter : sbsSelect;
1038
+ const label = vertical ? updates.label : "Type of Property:";
1039
+ return func(
1040
+ merge(
1041
+ {
1042
+ label,
1043
+ name: scope ? scope + ":" + "Type_Of_Property" : "Type_Of_Property",
1044
+ options: ["Residential", "Commercial", "Industrial", "Agricultural", "Recreational", "Other"],
1045
+ },
1046
+ updates
1047
+ )
1048
+ )
1049
+ };
1050
+
1051
+ const valueOfAssets$1 = (scope, vertical, updates = {}) => {
1052
+ const func = vertical ? col2RadioCenter : sbsSelect;
1053
+ const label = vertical ? updates.label : "Value of Your Assets?";
1054
+ return func(
1055
+ merge(
1056
+ {
1057
+ label,
1058
+ name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
1059
+ options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
1060
+ },
1061
+ updates
1062
+ )
1063
+ )
1064
+ };
1065
+
795
1066
  const wouldLikeLawyerTo$1 = (scope, vertical, updates = {}) => {
796
1067
  const func = vertical ? verticalRadio : sbsRadio;
797
1068
  const label = vertical ? updates.label : "I Would Like a Lawyer to:";
@@ -1146,6 +1417,15 @@ function employmentAndWorkplaceTOLPDisplay(updates = {}) {
1146
1417
  )
1147
1418
  }
1148
1419
 
1420
+ function landlordTenantIssue(updates = {}) {
1421
+ return sqstep(
1422
+ "landlordTenantIssue",
1423
+ landlordTenantIssueRadio(updates.scope, true, updates.input),
1424
+ "What is the landlord / tenant issue?",
1425
+ updates
1426
+ )
1427
+ }
1428
+
1149
1429
  function realEstateTOLPDisplay(updates = {}) {
1150
1430
  return sqstep(
1151
1431
  "realEstateTOLPDisplay",
@@ -1222,6 +1502,24 @@ function policeReportFiled(updates = {}) {
1222
1502
  )
1223
1503
  }
1224
1504
 
1505
+ function ownRealEstate(updates = {}) {
1506
+ return sqstep(
1507
+ "ownRealEstate",
1508
+ ownRealEstate$1(updates.scope, true, updates.input),
1509
+ "Do you own real estate?",
1510
+ updates
1511
+ )
1512
+ }
1513
+
1514
+ function valueOfAssets(updates = {}) {
1515
+ return sqstep(
1516
+ "valueOfAssets",
1517
+ valueOfAssets$1(updates.scope, true, updates.input),
1518
+ "What is the value of your assets?",
1519
+ updates
1520
+ )
1521
+ }
1522
+
1225
1523
  function businessServices(updates = {}) {
1226
1524
  return sqstep(
1227
1525
  "businessServices",
@@ -1294,6 +1592,36 @@ function claimStatus(updates = {}) {
1294
1592
  )
1295
1593
  }
1296
1594
 
1595
+ function typeOfAssets(updates = {}) {
1596
+ if (typeof updates.nextOnInput === "undefined") {
1597
+ updates.nextOnInput = false;
1598
+ }
1599
+ return sqstep(
1600
+ "typeOfAssets",
1601
+ typeOfAssets$1(updates.scope, true, updates.input),
1602
+ "What type of assets are involved?",
1603
+ updates
1604
+ )
1605
+ }
1606
+
1607
+ function roleInMatterProbate(updates = {}) {
1608
+ return sqstep(
1609
+ "roleInMatterProbate",
1610
+ roleInMatterProbate$1(updates.scope, true, updates.input),
1611
+ "What is your role in this matter?",
1612
+ updates
1613
+ )
1614
+ }
1615
+
1616
+ function estateLegalServicesNeeded(updates = {}) {
1617
+ return sqstep(
1618
+ "estateLegalServicesNeeded",
1619
+ estateLegalServicesNeeded$1(updates.scope, true, updates.input),
1620
+ "What legal services are needed?",
1621
+ updates
1622
+ )
1623
+ }
1624
+
1297
1625
  function realEstateArea(updates = {}) {
1298
1626
  return sqstep(
1299
1627
  "realEstateArea",
@@ -1303,6 +1631,37 @@ function realEstateArea(updates = {}) {
1303
1631
  )
1304
1632
  }
1305
1633
 
1634
+ function typeOfProperty(updates = {}) {
1635
+ return sqstep(
1636
+ "typeOfProperty",
1637
+ typeOfProperty$1(updates.scope, true, updates.input),
1638
+ "What type of property is involved?",
1639
+ updates
1640
+ )
1641
+ }
1642
+
1643
+ function amountPaymentsPastDue(updates = {}) {
1644
+ return sqstep(
1645
+ "amountPaymentsPastDue",
1646
+ amountPaymentsPastDue$1(updates.scope, true, updates.input),
1647
+ "Total payments past due:",
1648
+ updates
1649
+ )
1650
+ }
1651
+
1652
+ function loanAmount(updates = {}) {
1653
+ return sqstep("loanAmount", loanAmount$1(updates.scope, true, updates.input), "Total amount of the loan:", updates)
1654
+ }
1655
+
1656
+ function defaultNotice(updates = {}) {
1657
+ return sqstep(
1658
+ "defaultNotice",
1659
+ defaultNotice$1(updates.scope, true, updates.input),
1660
+ "Did you get a loan default notice?",
1661
+ updates
1662
+ )
1663
+ }
1664
+
1306
1665
  function wouldLikeLawyerTo(updates = {}) {
1307
1666
  return sqstep(
1308
1667
  "wouldLikeLawyerTo",
@@ -1312,6 +1671,24 @@ function wouldLikeLawyerTo(updates = {}) {
1312
1671
  )
1313
1672
  }
1314
1673
 
1674
+ function landlordTenantParty(updates = {}) {
1675
+ return sqstep(
1676
+ "landlordTenantParty",
1677
+ landlordTenantParty$1(updates.scope, true, updates.input),
1678
+ "I am the:",
1679
+ updates
1680
+ )
1681
+ }
1682
+
1683
+ function causeOfInjury(updates = {}) {
1684
+ return sqstep(
1685
+ "causeOfInjury",
1686
+ causeOfInjury$1(updates.scope, true, updates.input),
1687
+ "What was the cause of the injury?",
1688
+ updates
1689
+ )
1690
+ }
1691
+
1315
1692
  const formNavigationNoFinalBack = (updates = {}) => ({
1316
1693
  $el: "div",
1317
1694
  attrs: {
@@ -2509,13 +2886,16 @@ const meta = defaultMetaPropsLegal();
2509
2886
 
2510
2887
  meta.data.dynamicSchema = [
2511
2888
  atFault(),
2889
+ amountPaymentsPastDue(),
2512
2890
  businessServices(),
2513
2891
  businessType(),
2892
+ causeOfInjury(),
2514
2893
  civilLawsuitTOLPDisplay({
2515
2894
  nextStepMap: nextStepsMapCivilTOLPDisplay1to1,
2516
2895
  }),
2517
2896
  claimStatus(),
2518
2897
  consumerLawyerType(),
2898
+ defaultNotice(),
2519
2899
  degreeOfInterest(),
2520
2900
  doctorTreatment(),
2521
2901
  employerType(),
@@ -2523,19 +2903,28 @@ meta.data.dynamicSchema = [
2523
2903
  employmentAndWorkplaceTOLPDisplay({
2524
2904
  nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay1to1,
2525
2905
  }),
2906
+ estateLegalServicesNeeded(),
2526
2907
  haveAttorney(),
2527
2908
  incidentDate({
2528
2909
  nextOnInput: false,
2529
2910
  }),
2911
+ landlordTenantIssue(),
2912
+ landlordTenantParty(),
2530
2913
  lawsuitOtherParty(),
2914
+ loanAmount(),
2531
2915
  medicalMalpracticeInjuries(),
2532
2916
  numEmployeesOfBusiness(),
2917
+ ownRealEstate(),
2533
2918
  policeReportFiled(),
2534
2919
  primaryInjury(),
2535
2920
  realEstateArea(),
2536
2921
  realEstateTOLPDisplay({
2537
2922
  nextStepMap: nextStepsMapRealEstateTOLPDisplay1to1,
2538
2923
  }),
2924
+ roleInMatterProbate(),
2925
+ typeOfAssets(),
2926
+ typeOfProperty(),
2927
+ valueOfAssets(),
2539
2928
  wouldLikeLawyerTo(),
2540
2929
  commentsLegal({
2541
2930
  label: null,