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.
@@ -475,26 +475,28 @@ const zipcode$1 = (scope, vertical, updates = {}) => {
475
475
  })
476
476
  };
477
477
 
478
- const applicantAge = (scope, vertical, updates = {}) => {
479
- const func = vertical ? verticalText : sbsText;
480
- const label = vertical ? updates.label : "Age of Applicant?";
481
- const value = vertical ? updates.value ?? "50" : null;
478
+ const amountPaymentsPastDue$1 = (scope, vertical, updates = {}) => {
479
+ const func = vertical ? verticalSelect : sbsSelect;
480
+ const label = vertical ? updates.label : "Total Amount of Payments that are Past Due:";
482
481
  return func(
483
- merge({
484
- label,
485
- placeholder: "Age between 18 and 65",
486
- name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
487
- value,
488
- maxlength: 2,
489
- inputmode: "numeric",
490
- validation: "required|min:18,max:65",
491
- validationMessages: {
492
- required: "Applicant Age is required",
493
- min: "Invalid Age - must be between 18 and 65",
494
- max: "Invalid Age - must be between 18 and 65",
482
+ merge(
483
+ {
484
+ label,
485
+ name: scope ? scope + ":" + "Amount_Payments_Past_Due" : "Amount_Payments_Past_Due",
486
+ options: [
487
+ "$0 - $499",
488
+ "$500 - $999",
489
+ "$1,000 - $2,499",
490
+ "$2,500 - $4,999",
491
+ "$5,000 - $9,999",
492
+ "$10,000 - $24,999",
493
+ "$25,000 - $49,999",
494
+ "$50,000 - $99,999",
495
+ "More than $100,000",
496
+ ],
495
497
  },
496
- ...updates,
497
- })
498
+ updates
499
+ )
498
500
  )
499
501
  };
500
502
 
@@ -523,30 +525,6 @@ const bankruptcyCrossSell = (scope) =>
523
525
  helpClass: "!t-text-sm",
524
526
  });
525
527
 
526
- const bloodContentAlcoholTest = (scope, vertical, updates = {}) => {
527
- const func = vertical ? verticalSelect : sbsSelect;
528
- const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
529
- return func(
530
- merge(
531
- {
532
- label,
533
- name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
534
- options: [
535
- "No Test",
536
- "0.00% - 0.04%",
537
- "0.05% - 0.08%",
538
- "0.09% - 0.12%",
539
- "0.13% - 0.16%",
540
- "0.17% - 0.20%",
541
- "More than 0.20%",
542
- "Don't know",
543
- ],
544
- },
545
- updates
546
- )
547
- )
548
- };
549
-
550
528
  const businessServices$1 = (scope, vertical, updates = {}) => {
551
529
  const func = vertical ? col2RadioCenter : sbsSelect;
552
530
  const label = vertical ? updates.label : "Legal Services Needed for Your Business:";
@@ -585,7 +563,7 @@ const businessType$1 = (scope, vertical, updates = {}) => {
585
563
  )
586
564
  };
587
565
 
588
- const causeOfInjury = (scope, vertical, updates = {}) => {
566
+ const causeOfInjury$1 = (scope, vertical, updates = {}) => {
589
567
  const func = vertical ? col2RadioCenter : sbsSelect;
590
568
  const label = vertical ? updates.label : "Cause of Injury:";
591
569
  return func(
@@ -657,51 +635,6 @@ const civilLawsuitTOLPDisplay$1 = (scope, vertical, updates = {}) => {
657
635
  )
658
636
  };
659
637
 
660
- const childHome = (scope, vertical, updates = {}) => {
661
- const func = vertical ? col2RadioCenter : sbsSelect;
662
- const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
663
- return func(
664
- merge(
665
- {
666
- label,
667
- name: scope ? scope + ":" + "Child_Home" : "Child_Home",
668
- options: ["Mother", "Father", "Grandparents", "Other"],
669
- },
670
- updates
671
- )
672
- )
673
- };
674
-
675
- const childPrimaryCaregiver = (scope, vertical, updates = {}) => {
676
- const func = vertical ? verticalButtonRadio : sbsSelect;
677
- const label = vertical ? updates.label : "Who is the Primary Caregiver?";
678
- return func(
679
- merge(
680
- {
681
- label,
682
- name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
683
- options: ["Mother", "Father", "Other"],
684
- },
685
- updates
686
- )
687
- )
688
- };
689
-
690
- const childRelationship = (scope, vertical, updates = {}) => {
691
- const func = vertical ? col2RadioCenter : sbsSelect;
692
- const label = vertical ? updates.label : "Your Relationship to Child(ren):";
693
- return func(
694
- merge(
695
- {
696
- label,
697
- name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
698
- options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
699
- },
700
- updates
701
- )
702
- )
703
- };
704
-
705
638
  const claimStatus$1 = (scope, vertical, updates = {}) => {
706
639
  const func = vertical ? col2RadioCenter : sbsSelect;
707
640
  const label = vertical ? updates.label : "Status of Claim:";
@@ -776,32 +709,13 @@ const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
776
709
  )
777
710
  };
778
711
 
779
- const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
780
- degreeOfInterest$1(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
781
-
782
- const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
783
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
784
- const label = vertical
785
- ? updates.label
786
- : "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
787
- return func(
788
- merge(
789
- {
790
- name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
791
- label,
792
- },
793
- updates
794
- )
795
- )
796
- };
797
-
798
- const disabilityWorkHistory = (scope, vertical, updates = {}) => {
712
+ const defaultNotice$1 = (scope, vertical, updates = {}) => {
799
713
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
800
- const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
714
+ const label = vertical ? updates.label : "Have You Received a Notice of Loan Default?";
801
715
  return func(
802
716
  merge(
803
717
  {
804
- name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
718
+ name: scope ? scope + ":" + "Default_Notice" : "Default_Notice",
805
719
  label,
806
720
  },
807
721
  updates
@@ -886,7 +800,7 @@ const employmentAndWorkplaceTOLPDisplay$1 = (scope, vertical, updates = {}) => {
886
800
  )
887
801
  };
888
802
 
889
- const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
803
+ const estateLegalServicesNeeded$1 = (scope, vertical, updates = {}) => {
890
804
  const func = vertical ? col2RadioCenter : sbsSelect;
891
805
  const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
892
806
  return func(
@@ -922,100 +836,96 @@ const haveAttorney$1 = (scope, vertical, updates = {}) => {
922
836
  )
923
837
  };
924
838
 
925
- const haveChildren = (scope, vertical, updates = {}) => {
926
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
927
- const label = vertical ? updates.label : "Do You Have Children?";
839
+ const incidentDate$1 = (scope, vertical, updates = {}) => {
840
+ const func = vertical ? verticalDate : sbsDate;
841
+ const label = vertical ? updates.label : "Date of Incident:";
928
842
  return func(
929
843
  merge(
930
844
  {
931
- name: scope ? scope + ":" + "Have_Children" : "Have_Children",
932
845
  label,
846
+ name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
933
847
  },
934
848
  updates
935
849
  )
936
850
  )
937
851
  };
938
852
 
939
- const incidentDate$1 = (scope, vertical, updates = {}) => {
940
- const func = vertical ? verticalDate : sbsDate;
941
- const label = vertical ? updates.label : "Date of Incident:";
853
+ const landlordTenantParty$1 = (scope, vertical, updates = {}) => {
854
+ const func = vertical ? verticalButtonRadio : sbsSelect;
855
+ const label = vertical ? updates.label : "I am the:";
942
856
  return func(
943
857
  merge(
944
858
  {
945
859
  label,
946
- name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
860
+ name: scope ? scope + ":" + "Landlord_Tenant_Party" : "Landlord_Tenant_Party",
861
+ options: ["Landlord", "Tenant", "Other"],
947
862
  },
948
863
  updates
949
864
  )
950
865
  )
951
866
  };
952
867
 
953
- const lawsuitOtherParty$1 = (scope, vertical, updates = {}) => {
954
- const func = vertical ? col2RadioCenter : sbsSelect;
955
- const label = vertical ? updates.label : "The Other Party is a:";
868
+ const landlordTenantIssueRadio = (scope, vertical, updates = {}) => {
869
+ const func = vertical ? col2RadioCenter : col2Radio;
870
+ const label = vertical ? updates.label : "What is the Landlord / Tenant Issue?";
871
+ const _if = vertical ? updates.if : '$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"';
956
872
  return func(
957
873
  merge(
958
874
  {
959
875
  label,
960
- name: scope ? scope + ":" + "Lawsuit_Other_Party" : "Lawsuit_Other_Party",
961
- options: ["Individual", "Small Business", "Large Corporation", "Government Entity"],
876
+ if: _if,
877
+ id: scope ? scope + ":" + "Landlord_Tenant_Issue" : "Landlord_Tenant_Issue",
878
+ name: scope ? scope + ":" + "Landlord_Tenant_Issue" : "Landlord_Tenant_Issue",
879
+ options: [
880
+ "Eviction",
881
+ "Repairs and Maintenance",
882
+ "Lease and Rental Agreements",
883
+ "Discrimination",
884
+ "Right of Entry and Privacy",
885
+ "Screening and Applications",
886
+ "Environmental Hazards",
887
+ "Other Dispute",
888
+ ],
962
889
  },
963
890
  updates
964
891
  )
965
892
  )
966
893
  };
967
894
 
968
- const lawyerPaymentMethod = (scope, vertical, updates = {}) => {
895
+ const lawsuitOtherParty$1 = (scope, vertical, updates = {}) => {
969
896
  const func = vertical ? col2RadioCenter : sbsSelect;
970
- const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
971
- const help = vertical ? updates.help : "No payment necessary to start a consultation.";
972
- const options = vertical
973
- ? {
974
- Cash: "Cash",
975
- "Credit Card": "Credit Card",
976
- Family: "Family or Friend",
977
- Other: "Other",
978
- }
979
- : ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
897
+ const label = vertical ? updates.label : "The Other Party is a:";
980
898
  return func(
981
899
  merge(
982
900
  {
983
901
  label,
984
- help,
985
- name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
986
- options,
987
- fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
902
+ name: scope ? scope + ":" + "Lawsuit_Other_Party" : "Lawsuit_Other_Party",
903
+ options: ["Individual", "Small Business", "Large Corporation", "Government Entity"],
988
904
  },
989
905
  updates
990
906
  )
991
907
  )
992
908
  };
993
909
 
994
- const legalCrossSells$1 = () =>
995
- col2Checkbox({
996
- id: "Legal_CrossSells",
997
- name: "Legal_CrossSells",
998
- help: 'Just hit "Next" if none apply',
999
- helpClass: "t-text-center !t-text-sm",
1000
- validation: null,
1001
- options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
1002
- });
1003
-
1004
- const maritalStatus = (scope, vertical, updates = {}) => {
1005
- const func = vertical ? col2RadioCenter : sbsSelect;
1006
- const label = vertical ? updates.label : "Marital Status:";
910
+ const loanAmount$1 = (scope, vertical, updates = {}) => {
911
+ const func = vertical ? verticalSelect : sbsSelect;
912
+ const label = vertical ? updates.label : "Total Amount of Loan?";
1007
913
  return func(
1008
914
  merge(
1009
915
  {
1010
916
  label,
1011
- name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
917
+ name: scope ? scope + ":" + "Loan_Amount" : "Loan_Amount",
1012
918
  options: [
1013
- "Unmarried, Living Together",
1014
- "Unmarried, Do Not Live Together",
1015
- "Married, Living Together",
1016
- "Separated",
1017
- "Divorced",
1018
- "Other",
919
+ "Less than $10,000",
920
+ "$10,000 - $24,999",
921
+ "$25,000 - $49,999",
922
+ "$50,000 - $99,999",
923
+ "$100,000 - $199,999",
924
+ "$200,000 - $299,999",
925
+ "$300,000 - $399,999",
926
+ "$400,000 - $499,999",
927
+ "$500,000 - $599,999",
928
+ "More than $600,000",
1019
929
  ],
1020
930
  },
1021
931
  updates
@@ -1061,15 +971,13 @@ const numEmployeesOfBusiness$1 = (scope, vertical, updates = {}) => {
1061
971
  )
1062
972
  };
1063
973
 
1064
- // XXX HERE
1065
-
1066
- const pendingCharges = (scope, vertical, updates = {}) => {
974
+ const ownRealEstate$1 = (scope, vertical, updates = {}) => {
1067
975
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
1068
- const label = vertical ? updates.label : "Do you currently have any pending charges?";
976
+ const label = vertical ? updates.label : "Do You Own Real Estate?";
1069
977
  return func(
1070
978
  merge(
1071
979
  {
1072
- name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
980
+ name: scope ? scope + ":" + "Own_Real_Estate" : "Own_Real_Estate",
1073
981
  label,
1074
982
  },
1075
983
  updates
@@ -1101,20 +1009,6 @@ const primaryInjury$1 = (scope, vertical, updates = {}) => {
1101
1009
  )
1102
1010
  };
1103
1011
 
1104
- const priorAlcoholOffenses = (scope, vertical, updates = {}) => {
1105
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
1106
- const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
1107
- return func(
1108
- merge(
1109
- {
1110
- name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
1111
- label,
1112
- },
1113
- updates
1114
- )
1115
- )
1116
- };
1117
-
1118
1012
  const policeReportFiled$1 = (scope, vertical, updates = {}) => {
1119
1013
  const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
1120
1014
  const label = vertical ? updates.label : "Was a Police Report Filed?";
@@ -1181,7 +1075,7 @@ const realEstateTOLPDisplay$1 = (scope, vertical, updates = {}) => {
1181
1075
  )
1182
1076
  };
1183
1077
 
1184
- const roleInMatterProbate = (scope, vertical, updates = {}) => {
1078
+ const roleInMatterProbate$1 = (scope, vertical, updates = {}) => {
1185
1079
  const func = vertical ? col2RadioCenter : sbsSelect;
1186
1080
  const label = vertical ? updates.label : "What is Your Role in this Matter?";
1187
1081
  return func(
@@ -1196,22 +1090,6 @@ const roleInMatterProbate = (scope, vertical, updates = {}) => {
1196
1090
  )
1197
1091
  };
1198
1092
 
1199
- const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
1200
- const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
1201
- const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
1202
- return func(
1203
- merge(
1204
- {
1205
- name: scope
1206
- ? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
1207
- : "Social_Security_Disability_Receiving_Benefits",
1208
- label,
1209
- },
1210
- updates
1211
- )
1212
- )
1213
- };
1214
-
1215
1093
  const TCPAConsent = (scope, updates = {}) => ({
1216
1094
  $formkit: "checkbox",
1217
1095
  label: "$meta.tcpaLanguage",
@@ -1236,22 +1114,7 @@ const TCPAConsent = (scope, updates = {}) => ({
1236
1114
  },
1237
1115
  });
1238
1116
 
1239
- const typeOfAlcoholTest = (scope, vertical, updates = {}) => {
1240
- const func = vertical ? col2RadioCenter : sbsSelect;
1241
- const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
1242
- return func(
1243
- merge(
1244
- {
1245
- label,
1246
- name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
1247
- options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
1248
- },
1249
- updates
1250
- )
1251
- )
1252
- };
1253
-
1254
- const typeOfAssets = (scope, vertical, updates = {}) => {
1117
+ const typeOfAssets$1 = (scope, vertical, updates = {}) => {
1255
1118
  const func = vertical ? verticalCol2Checkbox : col2Checkbox;
1256
1119
  const label = vertical ? updates.label : "Type of Assets:";
1257
1120
  return func(
@@ -1274,7 +1137,22 @@ const typeOfAssets = (scope, vertical, updates = {}) => {
1274
1137
  )
1275
1138
  };
1276
1139
 
1277
- const valueOfAssets = (scope, vertical, updates = {}) => {
1140
+ const typeOfProperty$1 = (scope, vertical, updates = {}) => {
1141
+ const func = vertical ? col2RadioCenter : sbsSelect;
1142
+ const label = vertical ? updates.label : "Type of Property:";
1143
+ return func(
1144
+ merge(
1145
+ {
1146
+ label,
1147
+ name: scope ? scope + ":" + "Type_Of_Property" : "Type_Of_Property",
1148
+ options: ["Residential", "Commercial", "Industrial", "Agricultural", "Recreational", "Other"],
1149
+ },
1150
+ updates
1151
+ )
1152
+ )
1153
+ };
1154
+
1155
+ const valueOfAssets$1 = (scope, vertical, updates = {}) => {
1278
1156
  const func = vertical ? col2RadioCenter : sbsSelect;
1279
1157
  const label = vertical ? updates.label : "Value of Your Assets?";
1280
1158
  return func(
@@ -1311,134 +1189,6 @@ const wouldLikeLawyerTo$1 = (scope, vertical, updates = {}) => {
1311
1189
  )
1312
1190
  };
1313
1191
 
1314
- // ------ Question Groups - TODO: move these go separate file groups.js
1315
-
1316
- // NOTE: name must be unique within a form!
1317
- const group = (name, updates) => {
1318
- return merge(
1319
- {
1320
- $cmp: "FormKit",
1321
- props: {
1322
- type: "group",
1323
- key: name,
1324
- id: name,
1325
- name: name,
1326
- },
1327
- },
1328
- updates
1329
- )
1330
- };
1331
-
1332
- const AutoAndCarAccidentsQuestions = (condition, scope) =>
1333
- group("AutoAndCarAccidentsQuestions", {
1334
- if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
1335
- children: [
1336
- haveAttorney$1(scope),
1337
- incidentDate$1(scope),
1338
- atFault$1(scope),
1339
- primaryInjury$1(scope),
1340
- doctorTreatment$1(scope),
1341
- policeReportFiled$1(scope),
1342
- ],
1343
- });
1344
-
1345
- const ChildCustodyQuestions = (condition, scope) =>
1346
- group("ChildCustodyQuestions", {
1347
- if: condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"',
1348
- children: [
1349
- haveAttorney$1(scope),
1350
- childRelationship(scope),
1351
- childHome(scope),
1352
- childPrimaryCaregiver(scope),
1353
- degreeOfInterest$1(scope),
1354
- lawyerPaymentMethod(scope),
1355
- ],
1356
- });
1357
-
1358
- const DivorceQuestions = (condition, scope) =>
1359
- group("DivorceQuestions", {
1360
- if: condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
1361
- children: [
1362
- haveAttorney$1(scope),
1363
- maritalStatus(scope),
1364
- haveChildren(scope),
1365
- degreeOfInterest$1(scope),
1366
- lawyerPaymentMethod(scope),
1367
- ],
1368
- });
1369
-
1370
- const DUIAndDWIQuestions = (condition, scope) =>
1371
- group("DUIAndDWIQuestions", {
1372
- if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
1373
- children: [
1374
- haveAttorney$1(scope),
1375
- incidentDate$1(scope),
1376
- priorAlcoholOffenses(scope),
1377
- typeOfAlcoholTest(scope),
1378
- bloodContentAlcoholTest(scope),
1379
- pendingCharges(scope),
1380
- degreeOfInterestHelp(scope),
1381
- ],
1382
- });
1383
-
1384
- const PersonalInjuryQuestions = (condition, scope) =>
1385
- group("PersonalInjuryQuestions", {
1386
- if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
1387
- children: [
1388
- haveAttorney$1(scope),
1389
- incidentDate$1(scope),
1390
- claimStatus$1(scope),
1391
- atFault$1(scope),
1392
- primaryInjury$1(scope),
1393
- doctorTreatment$1(scope),
1394
- ],
1395
- });
1396
-
1397
- const PowerofAttorneyQuestions = (condition, scope) =>
1398
- group("PowerofAttorneyQuestions", {
1399
- if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
1400
- children: [haveAttorney$1(scope), degreeOfInterestHelp(scope)],
1401
- });
1402
-
1403
- const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
1404
- group("SocialSecurityDisabilityAndInsuranceQuestions", {
1405
- if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
1406
- children: [
1407
- haveAttorney$1(scope),
1408
- applicantAge(scope),
1409
- disabilityConditionStopWork(scope),
1410
- disabilityWorkHistory(scope),
1411
- socialSecurityDisabilityReceivingBenefits(scope),
1412
- doctorTreatment$1(scope),
1413
- ],
1414
- });
1415
-
1416
- const WillsAndTrustsQuestions = (condition, scope) =>
1417
- group("WillsAndTrustsQuestions", {
1418
- if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
1419
- children: [
1420
- haveAttorney$1(scope),
1421
- valueOfAssets(scope),
1422
- typeOfAssets(scope),
1423
- roleInMatterProbate(scope),
1424
- estateLegalServicesNeeded(scope),
1425
- degreeOfInterestHelp(scope),
1426
- ],
1427
- });
1428
-
1429
- const WorkersCompensationQuestions = (condition, scope) =>
1430
- group("WorkersCompensationQuestions", {
1431
- if: condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
1432
- children: [
1433
- haveAttorney$1(scope),
1434
- incidentDate$1(scope),
1435
- claimStatus$1(scope),
1436
- primaryInjury$1(scope),
1437
- causeOfInjury(scope),
1438
- doctorTreatment$1(scope),
1439
- ],
1440
- });
1441
-
1442
1192
  const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1443
1193
  const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
1444
1194
 
@@ -1518,26 +1268,6 @@ function secureIconStandalone(updates = {}) {
1518
1268
  }
1519
1269
  }
1520
1270
 
1521
- function crossSellQuestionsStepHeadline(updates) {
1522
- return {
1523
- $el: "h3",
1524
- children: updates.headline || "Tell Us About Your Situation",
1525
- attrs: {
1526
- class: "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1",
1527
- },
1528
- }
1529
- }
1530
-
1531
- function crossSellQuestionsStepSubHeadline(updates) {
1532
- return {
1533
- $el: "h5",
1534
- children: updates.subheadline || "Tell us about your situation:",
1535
- attrs: {
1536
- class: "t-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3",
1537
- },
1538
- }
1539
- }
1540
-
1541
1271
  function verticalStepHeadline(updates) {
1542
1272
  return {
1543
1273
  $el: "h3",
@@ -1584,19 +1314,6 @@ function firstAndLastStepHeadline(updates) {
1584
1314
  }
1585
1315
  }
1586
1316
 
1587
- function legalCrossSellsStepHeadline(updates) {
1588
- return {
1589
- $el: "h3",
1590
- children: updates.headline || "Do you have other legal issues?",
1591
- attrs: {
1592
- class:
1593
- "t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1" +
1594
- " " +
1595
- (updates.headlineClass || ""),
1596
- },
1597
- }
1598
- }
1599
-
1600
1317
  function contactStepHeadline(updates) {
1601
1318
  return {
1602
1319
  $el: "h3",
@@ -1712,9 +1429,9 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
1712
1429
  )
1713
1430
  }
1714
1431
 
1715
- function commentsWithBankruptcy(updates = {}) {
1432
+ function commentsWithBankruptcyHack(updates = {}) {
1716
1433
  return step(
1717
- "commentsWithBankruptcy",
1434
+ "comments",
1718
1435
  [
1719
1436
  commentsStepHeadlineLegal(updates),
1720
1437
  comments(updates.scope, false, {
@@ -1798,180 +1515,6 @@ function zipcode(updates = {}) {
1798
1515
  return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
1799
1516
  }
1800
1517
 
1801
- function autoAndCarAccidentCrossSellQuestions(updates = {}) {
1802
- return step(
1803
- "autoAndCarAccidentCrossSellQuestions",
1804
- [
1805
- crossSellQuestionsStepHeadline({
1806
- headline: "You May Be Entitled To Compensation",
1807
- }),
1808
- crossSellQuestionsStepSubHeadline({
1809
- subheadline: "Tell us about your accident:",
1810
- }),
1811
- AutoAndCarAccidentsQuestions("true", "CrossSell:Auto_and_Car_Accidents"),
1812
- comments("CrossSell:Auto_and_Car_Accidents", false, {
1813
- label: "Accident Description:",
1814
- placeholder: "Please describe your accident in a few words...",
1815
- inputClass: "!t-h-16",
1816
- }),
1817
- ],
1818
- updates
1819
- )
1820
- }
1821
-
1822
- function childCustodyCrossSellQuestions(updates = {}) {
1823
- return step(
1824
- "childCustodyCrossSellQuestions",
1825
- [
1826
- crossSellQuestionsStepHeadline({ headline: "Child Custody Information" }),
1827
- ChildCustodyQuestions("true", "CrossSell:Child_Custody"),
1828
- comments("CrossSell:Child_Custody", false, {
1829
- label: "Description:",
1830
- placeholder: "Please describe your situation in a few words...",
1831
- inputClass: "!t-h-16",
1832
- }),
1833
- ],
1834
- updates
1835
- )
1836
- }
1837
-
1838
- function divorceAndSeparationCrossSellQuestions(updates = {}) {
1839
- return step(
1840
- "divorceAndSeparationCrossSellQuestions",
1841
- [
1842
- crossSellQuestionsStepHeadline({
1843
- headline: "Divorce or Separation Information",
1844
- }),
1845
- DivorceQuestions("true", "CrossSell:Divorce_and_Separation"),
1846
- comments("CrossSell:Divorce_and_Separation", false, {
1847
- label: "Description:",
1848
- placeholder: "Please describe your situation in a few words...",
1849
- inputClass: "!t-h-16",
1850
- }),
1851
- ],
1852
- updates
1853
- )
1854
- }
1855
-
1856
- function duiAndDWICrossSellQuestions(updates = {}) {
1857
- return step(
1858
- "duiAndDWICrossSellQuestions",
1859
- [
1860
- crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
1861
- DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
1862
- comments("CrossSell:DUI_and_DWI", false, {
1863
- label: "Incident Description:",
1864
- placeholder: "Please describe your incident in a few words...",
1865
- inputClass: "!t-h-16",
1866
- }),
1867
- ],
1868
- updates
1869
- )
1870
- }
1871
-
1872
- function ssdiCrossSellQuestions(updates = {}) {
1873
- return step(
1874
- "ssdiCrossSellQuestions",
1875
- [
1876
- crossSellQuestionsStepHeadline({
1877
- headline: "You May Be Entitled To Benefits",
1878
- }),
1879
- crossSellQuestionsStepSubHeadline({
1880
- subheadline: "Tell us about your disability:",
1881
- }),
1882
- SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
1883
- comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
1884
- label: "Description:",
1885
- placeholder: "Please describe your situation in a few words...",
1886
- inputClass: "!t-h-16",
1887
- }),
1888
- ],
1889
- updates
1890
- )
1891
- }
1892
-
1893
- function personalInjuryCrossSellQuestions(updates = {}) {
1894
- return step(
1895
- "personalInjuryCrossSellQuestions",
1896
- [
1897
- crossSellQuestionsStepHeadline({
1898
- headline: "You May Be Entitled To Compensation",
1899
- }),
1900
- crossSellQuestionsStepSubHeadline({
1901
- subheadline: "Tell us about your injury:",
1902
- }),
1903
- PersonalInjuryQuestions("true", "CrossSell:Personal_Injury"),
1904
- comments("CrossSell:Personal_Injury", false, {
1905
- label: "Injury Description:",
1906
- placeholder: "Please describe your injury in a few words...",
1907
- inputClass: "!t-h-16",
1908
- }),
1909
- ],
1910
- updates
1911
- )
1912
- }
1913
-
1914
- function powerOfAttorneyCrossSellQuestions(updates = {}) {
1915
- return step(
1916
- "powerOfAttorneyCrossSellQuestions",
1917
- [
1918
- crossSellQuestionsStepHeadline({
1919
- headline: "Power of Attorney Information",
1920
- }),
1921
- PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
1922
- comments("CrossSell:Power_of_Attorney", false, {
1923
- label: "Description:",
1924
- placeholder: "Please describe your situation in a few words...",
1925
- inputClass: "!t-h-16",
1926
- }),
1927
- ],
1928
- updates
1929
- )
1930
- }
1931
-
1932
- function willsAndTrustsCrossSellQuestions(updates = {}) {
1933
- return step(
1934
- "willsAndTrustsCrossSellQuestions",
1935
- [
1936
- crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
1937
- WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
1938
- comments("CrossSell:Wills_and_Trusts", false, {
1939
- label: "Description:",
1940
- placeholder: "Please describe your situation in a few words...",
1941
- inputClass: "!t-h-16",
1942
- }),
1943
- ],
1944
- updates
1945
- )
1946
- }
1947
-
1948
- function workersCompensationCrossSellQuestions(updates = {}) {
1949
- return step(
1950
- "workersCompensationCrossSellQuestions",
1951
- [
1952
- crossSellQuestionsStepHeadline({
1953
- headline: "You May Be Entitled To Benefits",
1954
- }),
1955
- crossSellQuestionsStepSubHeadline({
1956
- subheadline: "Tell us about your injury:",
1957
- }),
1958
- WorkersCompensationQuestions("true", "CrossSell:Workers_Compensation"),
1959
- comments("CrossSell:Workers_Compensation", false, {
1960
- label: "Injury Description:",
1961
- placeholder: "Please describe your injury in a few words...",
1962
- inputClass: "!t-h-16",
1963
- }),
1964
- ],
1965
- updates
1966
- )
1967
- }
1968
-
1969
- function legalCrossSells(updates = {}) {
1970
- updates.nextOnInput = false;
1971
- updates.stepKey = "$get(Type_Of_Legal_Problem).value";
1972
- return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
1973
- }
1974
-
1975
1518
  function civilLawsuitTOLP(updates = {}) {
1976
1519
  return step("civilLawsuitTOLP", [civilLawsuitTOLP$1(updates.scope, true, updates.input)], updates)
1977
1520
  }
@@ -1994,6 +1537,15 @@ function employmentAndWorkplaceTOLPDisplay(updates = {}) {
1994
1537
  )
1995
1538
  }
1996
1539
 
1540
+ function landlordTenantIssue(updates = {}) {
1541
+ return sqstep(
1542
+ "landlordTenantIssue",
1543
+ landlordTenantIssueRadio(updates.scope, true, updates.input),
1544
+ "What is the landlord / tenant issue?",
1545
+ updates
1546
+ )
1547
+ }
1548
+
1997
1549
  function realEstateTOLPDisplay(updates = {}) {
1998
1550
  return sqstep(
1999
1551
  "realEstateTOLPDisplay",
@@ -2070,6 +1622,24 @@ function policeReportFiled(updates = {}) {
2070
1622
  )
2071
1623
  }
2072
1624
 
1625
+ function ownRealEstate(updates = {}) {
1626
+ return sqstep(
1627
+ "ownRealEstate",
1628
+ ownRealEstate$1(updates.scope, true, updates.input),
1629
+ "Do you own real estate?",
1630
+ updates
1631
+ )
1632
+ }
1633
+
1634
+ function valueOfAssets(updates = {}) {
1635
+ return sqstep(
1636
+ "valueOfAssets",
1637
+ valueOfAssets$1(updates.scope, true, updates.input),
1638
+ "What is the value of your assets?",
1639
+ updates
1640
+ )
1641
+ }
1642
+
2073
1643
  function businessServices(updates = {}) {
2074
1644
  return sqstep(
2075
1645
  "businessServices",
@@ -2142,6 +1712,36 @@ function claimStatus(updates = {}) {
2142
1712
  )
2143
1713
  }
2144
1714
 
1715
+ function typeOfAssets(updates = {}) {
1716
+ if (typeof updates.nextOnInput === "undefined") {
1717
+ updates.nextOnInput = false;
1718
+ }
1719
+ return sqstep(
1720
+ "typeOfAssets",
1721
+ typeOfAssets$1(updates.scope, true, updates.input),
1722
+ "What type of assets are involved?",
1723
+ updates
1724
+ )
1725
+ }
1726
+
1727
+ function roleInMatterProbate(updates = {}) {
1728
+ return sqstep(
1729
+ "roleInMatterProbate",
1730
+ roleInMatterProbate$1(updates.scope, true, updates.input),
1731
+ "What is your role in this matter?",
1732
+ updates
1733
+ )
1734
+ }
1735
+
1736
+ function estateLegalServicesNeeded(updates = {}) {
1737
+ return sqstep(
1738
+ "estateLegalServicesNeeded",
1739
+ estateLegalServicesNeeded$1(updates.scope, true, updates.input),
1740
+ "What legal services are needed?",
1741
+ updates
1742
+ )
1743
+ }
1744
+
2145
1745
  function realEstateArea(updates = {}) {
2146
1746
  return sqstep(
2147
1747
  "realEstateArea",
@@ -2151,6 +1751,37 @@ function realEstateArea(updates = {}) {
2151
1751
  )
2152
1752
  }
2153
1753
 
1754
+ function typeOfProperty(updates = {}) {
1755
+ return sqstep(
1756
+ "typeOfProperty",
1757
+ typeOfProperty$1(updates.scope, true, updates.input),
1758
+ "What type of property is involved?",
1759
+ updates
1760
+ )
1761
+ }
1762
+
1763
+ function amountPaymentsPastDue(updates = {}) {
1764
+ return sqstep(
1765
+ "amountPaymentsPastDue",
1766
+ amountPaymentsPastDue$1(updates.scope, true, updates.input),
1767
+ "Total payments past due:",
1768
+ updates
1769
+ )
1770
+ }
1771
+
1772
+ function loanAmount(updates = {}) {
1773
+ return sqstep("loanAmount", loanAmount$1(updates.scope, true, updates.input), "Total amount of the loan:", updates)
1774
+ }
1775
+
1776
+ function defaultNotice(updates = {}) {
1777
+ return sqstep(
1778
+ "defaultNotice",
1779
+ defaultNotice$1(updates.scope, true, updates.input),
1780
+ "Did you get a loan default notice?",
1781
+ updates
1782
+ )
1783
+ }
1784
+
2154
1785
  function wouldLikeLawyerTo(updates = {}) {
2155
1786
  return sqstep(
2156
1787
  "wouldLikeLawyerTo",
@@ -2160,6 +1791,24 @@ function wouldLikeLawyerTo(updates = {}) {
2160
1791
  )
2161
1792
  }
2162
1793
 
1794
+ function landlordTenantParty(updates = {}) {
1795
+ return sqstep(
1796
+ "landlordTenantParty",
1797
+ landlordTenantParty$1(updates.scope, true, updates.input),
1798
+ "I am the:",
1799
+ updates
1800
+ )
1801
+ }
1802
+
1803
+ function causeOfInjury(updates = {}) {
1804
+ return sqstep(
1805
+ "causeOfInjury",
1806
+ causeOfInjury$1(updates.scope, true, updates.input),
1807
+ "What was the cause of the injury?",
1808
+ updates
1809
+ )
1810
+ }
1811
+
2163
1812
  const formNavigationNoFinalBack = (updates = {}) => ({
2164
1813
  $el: "div",
2165
1814
  attrs: {
@@ -3228,7 +2877,7 @@ const nextStepsMapCivilTolp = {
3228
2877
  },
3229
2878
  };
3230
2879
 
3231
- filterNextStepsMap(nextStepsMapCivilTolp, ["legalCrossSells"], {
2880
+ const nextStepsMapCivilTolp1to1 = filterNextStepsMap(nextStepsMapCivilTolp, ["legalCrossSells"], {
3232
2881
  commentsWithBankruptcy: "comments",
3233
2882
  });
3234
2883
 
@@ -3250,7 +2899,7 @@ const nextStepsMapCivilTOLPDisplay = {
3250
2899
  },
3251
2900
  };
3252
2901
 
3253
- filterNextStepsMap(nextStepsMapCivilTOLPDisplay, ["legalCrossSells"], {
2902
+ const nextStepsMapCivilTOLPDisplay1to1 = filterNextStepsMap(nextStepsMapCivilTOLPDisplay, ["legalCrossSells"], {
3254
2903
  commentsWithBankruptcy: "comments",
3255
2904
  });
3256
2905
 
@@ -3286,7 +2935,7 @@ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
3286
2935
  },
3287
2936
  };
3288
2937
 
3289
- filterNextStepsMap(
2938
+ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay1to1 = filterNextStepsMap(
3290
2939
  nextStepsMapEmploymentAndWorkplaceTOLPDisplay,
3291
2940
  ["legalCrossSells"],
3292
2941
  {
@@ -3345,7 +2994,7 @@ const nextStepsMapRealEstateTOLPDisplay = {
3345
2994
  },
3346
2995
  };
3347
2996
 
3348
- filterNextStepsMap(
2997
+ const nextStepsMapRealEstateTOLPDisplay1to1 = filterNextStepsMap(
3349
2998
  nextStepsMapRealEstateTOLPDisplay,
3350
2999
  ["legalCrossSells"],
3351
3000
  {
@@ -3353,82 +3002,75 @@ filterNextStepsMap(
3353
3002
  }
3354
3003
  );
3355
3004
 
3356
- const nextStepsMapLegalCrossSells = {
3357
- values: {
3358
- Legal_CrossSells: {
3359
- "Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
3360
- "Personal Injury": ["personalInjuryCrossSellQuestions"],
3361
- "Workers Compensation": ["workersCompensationCrossSellQuestions"],
3362
- "DUI and DWI": ["duiAndDWICrossSellQuestions"],
3363
- "Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
3364
- "Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
3365
- Bankruptcy: ["bankruptcyCrossSellQuestions"],
3366
- "Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
3367
- "Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
3368
- "Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
3369
- "Child Custody": ["childCustodyCrossSellQuestions"],
3370
- },
3371
- "*": ["firstAndLast", "contactInfo"],
3372
- },
3373
-
3374
- // NOTE: this assumes a certain placement of the cross sell question
3375
- // in the form flow.
3376
- appendSteps: ["firstAndLast", "contactInfo"],
3377
- matchesAllowed: 1,
3378
- };
3379
-
3380
3005
  const legalCrossSellOptionMap = CROSS_SELL_OPTION_MAP_LEGAL;
3381
3006
 
3382
3007
  const meta = defaultMetaPropsLegal();
3383
3008
 
3384
3009
  meta.data.dynamicSchema = [
3385
3010
  atFault(),
3011
+ amountPaymentsPastDue(),
3386
3012
  businessServices(),
3387
3013
  businessType(),
3014
+ causeOfInjury(),
3388
3015
  civilLawsuitTOLPDisplay({
3389
- nextStepMap: nextStepsMapCivilTOLPDisplay,
3016
+ // NOTE: using this while we have cross sells commented out
3017
+ nextStepMap: nextStepsMapCivilTOLPDisplay1to1,
3390
3018
  }),
3391
3019
  claimStatus(),
3392
3020
  consumerLawyerType(),
3021
+ defaultNotice(),
3393
3022
  degreeOfInterest(),
3394
3023
  doctorTreatment(),
3395
3024
  employerType(),
3396
3025
  employeeAtCompany(),
3397
3026
  employmentAndWorkplaceTOLPDisplay({
3398
- nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay,
3027
+ // NOTE: using this while we have cross sells commented out
3028
+ nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay1to1,
3399
3029
  }),
3030
+ estateLegalServicesNeeded(),
3400
3031
  haveAttorney(),
3401
3032
  incidentDate({
3402
3033
  nextOnInput: false,
3403
3034
  }),
3035
+ landlordTenantIssue(),
3036
+ landlordTenantParty(),
3404
3037
  lawsuitOtherParty(),
3038
+ loanAmount(),
3405
3039
  medicalMalpracticeInjuries(),
3406
3040
  numEmployeesOfBusiness(),
3041
+ ownRealEstate(),
3407
3042
  policeReportFiled(),
3408
3043
  primaryInjury(),
3409
3044
  realEstateArea(),
3410
3045
  realEstateTOLPDisplay({
3411
- nextStepMap: nextStepsMapRealEstateTOLPDisplay,
3046
+ // NOTE: using this while we have cross sells commented out
3047
+ nextStepMap: nextStepsMapRealEstateTOLPDisplay1to1,
3412
3048
  }),
3049
+ roleInMatterProbate(),
3050
+ typeOfAssets(),
3051
+ typeOfProperty(),
3052
+ valueOfAssets(),
3413
3053
  wouldLikeLawyerTo(),
3414
- commentsWithBankruptcy({
3054
+ // NOTE: using this while we have cross sells commented out but want
3055
+ // to keep the bankruptcy cross sell.
3056
+ commentsWithBankruptcyHack({
3415
3057
  label: null,
3416
3058
  headline: "Please briefly describe your situation:",
3417
3059
  headlineClass: "!t-text-dark",
3418
3060
  }),
3419
- legalCrossSells({
3420
- headlineClass: "!t-text-dark",
3421
- nextStepMap: nextStepsMapLegalCrossSells,
3422
- }),
3423
- autoAndCarAccidentCrossSellQuestions(),
3424
- personalInjuryCrossSellQuestions(),
3425
- workersCompensationCrossSellQuestions(),
3426
- duiAndDWICrossSellQuestions(),
3427
- ssdiCrossSellQuestions(),
3428
- powerOfAttorneyCrossSellQuestions(),
3429
- willsAndTrustsCrossSellQuestions(),
3430
- divorceAndSeparationCrossSellQuestions(),
3431
- childCustodyCrossSellQuestions(),
3061
+ // steps.legalCrossSells({
3062
+ // headlineClass: "!t-text-dark",
3063
+ // nextStepMap: forms.nextStepsMapLegalCrossSells,
3064
+ // }),
3065
+ // steps.autoAndCarAccidentCrossSellQuestions(),
3066
+ // steps.personalInjuryCrossSellQuestions(),
3067
+ // steps.workersCompensationCrossSellQuestions(),
3068
+ // steps.duiAndDWICrossSellQuestions(),
3069
+ // steps.ssdiCrossSellQuestions(),
3070
+ // steps.powerOfAttorneyCrossSellQuestions(),
3071
+ // steps.willsAndTrustsCrossSellQuestions(),
3072
+ // steps.divorceAndSeparationCrossSellQuestions(),
3073
+ // steps.childCustodyCrossSellQuestions(),
3432
3074
  firstAndLastV4({
3433
3075
  headlineClass: "!t-text-dark",
3434
3076
  }),
@@ -3461,7 +3103,8 @@ const schema = [
3461
3103
  children: [
3462
3104
  civilLawsuitTOLP({
3463
3105
  nextOnInput: false,
3464
- nextStepMap: nextStepsMapCivilTolp,
3106
+ // NOTE: using this while we have cross sells commented out
3107
+ nextStepMap: nextStepsMapCivilTolp1to1,
3465
3108
  }),
3466
3109
  dynamicSchemaNode(),
3467
3110
  zipcode(),