bhl-forms 0.11.8 → 0.11.10

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 (81) hide show
  1. package/dist/forms/accidentsAndInjuries.es.js +172 -0
  2. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  3. package/dist/forms/applianceRepairMinimal.es.js +390 -1
  4. package/dist/forms/applianceRepairMinimal.iife.js +1 -1
  5. package/dist/forms/applianceRepairMinimal.json +1 -1
  6. package/dist/forms/appraisals.es.js +389 -0
  7. package/dist/forms/appraisals.iife.js +1 -1
  8. package/dist/forms/business.es.js +380 -0
  9. package/dist/forms/business.iife.js +1 -1
  10. package/dist/forms/childAndFamily.es.js +389 -0
  11. package/dist/forms/childAndFamily.iife.js +1 -1
  12. package/dist/forms/childAndFamilySingle.es.js +111 -4
  13. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  14. package/dist/forms/civilLawsuit.es.js +106 -3
  15. package/dist/forms/civilLawsuit.iife.js +1 -1
  16. package/dist/forms/coins.es.js +389 -0
  17. package/dist/forms/coins.iife.js +1 -1
  18. package/dist/forms/contracts.es.js +389 -0
  19. package/dist/forms/contracts.iife.js +1 -1
  20. package/dist/forms/criminal.es.js +110 -4
  21. package/dist/forms/criminal.iife.js +1 -1
  22. package/dist/forms/divorce.es.js +111 -4
  23. package/dist/forms/divorce.iife.js +1 -1
  24. package/dist/forms/employmentAndWorkplace.es.js +160 -0
  25. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  26. package/dist/forms/foreclosure.es.js +372 -0
  27. package/dist/forms/foreclosure.iife.js +1 -1
  28. package/dist/forms/generalContractors.es.js +389 -0
  29. package/dist/forms/generalContractors.iife.js +1 -1
  30. package/dist/forms/generalHomeImprovement.es.js +389 -0
  31. package/dist/forms/generalHomeImprovement.iife.js +1 -1
  32. package/dist/forms/generalHomeImprovementThankYou.es.js +389 -0
  33. package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
  34. package/dist/forms/generalLegal.es.js +389 -0
  35. package/dist/forms/generalLegal.iife.js +1 -1
  36. package/dist/forms/generalLegalJustAnswer.es.js +58 -0
  37. package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
  38. package/dist/forms/generalLegalPopUnder.es.js +389 -0
  39. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  40. package/dist/forms/generalLegalPopUnderSingle.es.js +58 -0
  41. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  42. package/dist/forms/generalLegalSingle.es.js +58 -0
  43. package/dist/forms/generalLegalSingle.iife.js +1 -1
  44. package/dist/forms/generalLegalSingle1to1.es.js +4579 -0
  45. package/dist/forms/generalLegalSingle1to1.iife.js +1 -0
  46. package/dist/forms/generalLegalSingle1to1.json +1 -0
  47. package/dist/forms/generalLegalSingleMinimal.es.js +389 -0
  48. package/dist/forms/generalLegalSingleMinimal.iife.js +1 -1
  49. package/dist/forms/generalLegalThankYou.es.js +389 -0
  50. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  51. package/dist/forms/generalLegalThankYouConsultation.es.js +58 -0
  52. package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
  53. package/dist/forms/harassmentAndDiscrimination.es.js +389 -0
  54. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  55. package/dist/forms/landlordTenant.es.js +389 -0
  56. package/dist/forms/landlordTenant.iife.js +1 -1
  57. package/dist/forms/malpractice.es.js +389 -0
  58. package/dist/forms/malpractice.iife.js +1 -1
  59. package/dist/forms/mechanics.es.js +389 -0
  60. package/dist/forms/mechanics.iife.js +1 -1
  61. package/dist/forms/patentsAndIP.es.js +112 -5
  62. package/dist/forms/patentsAndIP.iife.js +1 -1
  63. package/dist/forms/realEstate.es.js +389 -0
  64. package/dist/forms/realEstate.iife.js +1 -1
  65. package/dist/forms/repossession.es.js +389 -0
  66. package/dist/forms/repossession.iife.js +1 -1
  67. package/dist/forms/ssdi.es.js +389 -0
  68. package/dist/forms/ssdi.iife.js +1 -1
  69. package/dist/forms/testForm.es.js +389 -0
  70. package/dist/forms/testForm.iife.js +1 -1
  71. package/dist/forms/testRedirects.es.js +389 -0
  72. package/dist/forms/testRedirects.iife.js +1 -1
  73. package/dist/forms/vets.es.js +389 -0
  74. package/dist/forms/vets.iife.js +1 -1
  75. package/dist/forms/willsAndTrusts.es.js +389 -0
  76. package/dist/forms/willsAndTrusts.iife.js +1 -1
  77. package/dist/forms/windows.es.js +389 -0
  78. package/dist/forms/windows.iife.js +1 -1
  79. package/dist/forms/workersCompensation.es.js +380 -0
  80. package/dist/forms/workersCompensation.iife.js +1 -1
  81. package/package.json +1 -1
@@ -651,6 +651,395 @@ const hiddenInputsMechanics = [
651
651
  ...hiddenInputsBase,
652
652
  ];
653
653
 
654
+ const nextStepsLegalDefault = [
655
+ "haveAttorney",
656
+ "degreeOfInterest",
657
+ "commentsWithBankruptcy",
658
+ "zipcode",
659
+ "legalCrossSells",
660
+ "firstAndLast",
661
+ "contactInfo",
662
+ ];
663
+
664
+ const nextStepsLegalDefaultLPM = [
665
+ "haveAttorney",
666
+ "degreeOfInterest",
667
+ "lawyerPaymentMethod",
668
+ "commentsWithBankruptcy",
669
+ "zipcode",
670
+ "legalCrossSells",
671
+ "firstAndLast",
672
+ "contactInfo",
673
+ ];
674
+
675
+ const nextStepsLegalNoDOI = [
676
+ "haveAttorney",
677
+ "commentsWithBankruptcy",
678
+ "zipcode",
679
+ "legalCrossSells",
680
+ "firstAndLast",
681
+ "contactInfo",
682
+ ];
683
+
684
+ const nextStepsLegalNoHA = [
685
+ "degreeOfInterest",
686
+ "commentsWithBankruptcy",
687
+ "zipcode",
688
+ "legalCrossSells",
689
+ "firstAndLast",
690
+ "contactInfo",
691
+ ];
692
+
693
+ const nextStepsMapGeneralLegal = {
694
+ values: {
695
+ Type_Of_Legal_Problem: {
696
+ Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
697
+ "Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
698
+ "Auto and Car Accidents": [
699
+ "incidentDate",
700
+ "atFault",
701
+ "primaryInjury",
702
+ "doctorTreatment",
703
+ "policeReportFiled",
704
+ ...nextStepsLegalNoDOI,
705
+ ],
706
+ Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
707
+ "Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
708
+ "Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
709
+ "Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
710
+ "Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
711
+ "Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
712
+ "File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
713
+ "Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
714
+ "Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
715
+ "Criminal and Felony": [
716
+ "criminalTOLPDisplay",
717
+ "crimeCommittedDate",
718
+ "roleInMatterCriminal",
719
+ "pendingCharges",
720
+ ...nextStepsLegalDefaultLPM,
721
+ ],
722
+ "Debt and Collections": [
723
+ "totalMonthlyIncome",
724
+ "totalDebt",
725
+ "ownRealEstate",
726
+ "valueOfAssets",
727
+ ...nextStepsLegalDefault,
728
+ ],
729
+ "Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
730
+ "DUI and DWI": [
731
+ "incidentDate",
732
+ "priorAlcoholOffenses",
733
+ "typeOfAlcoholTest",
734
+ "bloodContentAlcoholTest",
735
+ "pendingCharges",
736
+ ...nextStepsLegalDefault,
737
+ ],
738
+ "Employment and Workplace": [
739
+ "employmentAndWorkplaceTOLPDisplay",
740
+ "numEmployeesOfBusiness",
741
+ "employerType",
742
+ "employeeAtCompany",
743
+ ...nextStepsLegalDefault,
744
+ ],
745
+ Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
746
+ "Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
747
+ Foreclosure: [
748
+ "ownRealEstate",
749
+ "typeOfProperty",
750
+ "amountPaymentsPastDue",
751
+ "loanAmount",
752
+ "defaultNotice",
753
+ ...nextStepsLegalDefault,
754
+ ],
755
+ Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
756
+ "Immigration and Visas": [
757
+ "countryOfCitizenship",
758
+ "immigrationLocation",
759
+ "immigrationEntry",
760
+ "immigrationType",
761
+ "immigrationStatus",
762
+ "immigrationDetails",
763
+ ...nextStepsLegalDefault,
764
+ ],
765
+ "Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
766
+ "Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
767
+ "Long Term Disability": [
768
+ "applicantOccupation",
769
+ "applicantAge",
770
+ "applicantLTDisabilityPolicy",
771
+ "applicantDisabilityHowObtain",
772
+ "applicantPreviouslyAppliedLtdBenefits",
773
+ "applicantReceivedDisabilityBenefits",
774
+ "applicantMonthlySalary",
775
+ ...nextStepsLegalNoDOI,
776
+ ],
777
+ "Medical Malpractice": [
778
+ "incidentDate",
779
+ "claimStatus",
780
+ "doctorTreatment",
781
+ "medicalMalpracticeInjuries",
782
+ ...nextStepsLegalDefault,
783
+ ],
784
+ "Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
785
+ "Personal Injury": [
786
+ "incidentDate",
787
+ "claimStatus",
788
+ "atFault",
789
+ "primaryInjury",
790
+ "doctorTreatment",
791
+ ...nextStepsLegalNoDOI,
792
+ ],
793
+ "Probate and Estates": [
794
+ "valueOfAssets",
795
+ "typeOfAssets",
796
+ "roleInMatterProbate",
797
+ "estateLegalServicesNeeded",
798
+ ...nextStepsLegalDefault,
799
+ ],
800
+ "Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
801
+ "Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
802
+ "Social Security Disability and Insurance": [
803
+ "applicantAge",
804
+ "disabilityConditionStopWork",
805
+ "disabilityWorkHistory",
806
+ "socialSecurityDisabilityReceivingBenefits",
807
+ "doctorTreatment",
808
+ ...nextStepsLegalNoDOI,
809
+ ],
810
+ "Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
811
+ "Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
812
+ Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
813
+ "Victim of a Crime": [
814
+ "crimeCommittedDate",
815
+ "roleInMatterCriminal",
816
+ "pendingCharges",
817
+ ...nextStepsLegalDefaultLPM,
818
+ ],
819
+ "Wills and Trusts": [
820
+ "valueOfAssets",
821
+ "typeOfAssets",
822
+ "roleInMatterProbate",
823
+ "estateLegalServicesNeeded",
824
+ ...nextStepsLegalDefault,
825
+ ],
826
+ "Workers Compensation": [
827
+ "incidentDate",
828
+ "claimStatus",
829
+ "primaryInjury",
830
+ "causeOfInjury",
831
+ "doctorTreatment",
832
+ ...nextStepsLegalNoDOI,
833
+ ],
834
+ "Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
835
+ "Workplace Discrimination": [
836
+ "numEmployeesOfBusiness",
837
+ "employerType",
838
+ "employeeAtCompany",
839
+ ...nextStepsLegalDefault,
840
+ ],
841
+ "Wrongful Death": [
842
+ "incidentDate",
843
+ "relationshipToVictim",
844
+ "criminalChargesFiled",
845
+ "causeOfDeath",
846
+ ...nextStepsLegalNoDOI,
847
+ ],
848
+ "Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
849
+ },
850
+ "*": nextStepsLegalDefault,
851
+ },
852
+ };
853
+
854
+ // Helper to take existing map and trim or replace steps
855
+ function filterNextStepsMap(nextStepsMap, removableSteps = [], replaceSteps = {}) {
856
+ const modifiedMap = { ...nextStepsMap };
857
+
858
+ function filterSteps(steps) {
859
+ return steps.filter((step) => !removableSteps.includes(step)).map((step) => replaceSteps[step] || step)
860
+ }
861
+
862
+ function modifyValues(values) {
863
+ const modifiedValues = {};
864
+ for (const key in values) {
865
+ if (Array.isArray(values[key])) {
866
+ modifiedValues[key] = filterSteps(values[key]);
867
+ } else if (typeof values[key] === "object") {
868
+ modifiedValues[key] = modifyValues(values[key]);
869
+ } else {
870
+ modifiedValues[key] = values[key];
871
+ }
872
+ }
873
+ return modifiedValues
874
+ }
875
+
876
+ modifiedMap.values = modifyValues(nextStepsMap.values);
877
+ return modifiedMap
878
+ }
879
+
880
+ filterNextStepsMap(nextStepsMapGeneralLegal, ["legalCrossSells"], {
881
+ commentsWithBankruptcy: "comments",
882
+ });
883
+
884
+ const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
885
+
886
+ ({
887
+ values: {
888
+ Type_Of_Legal_Problem_Display: {
889
+ "Auto Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
890
+ "Workplace Injury": TOLPNextSteps["Workers Compensation"].filter((step) => step !== "legalCrossSells"),
891
+ "Dog Bite": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
892
+ "Slip and Fall": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
893
+ "Trucking Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
894
+ "Motorcycle Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
895
+ "Other Accidents or Injuries": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
896
+ },
897
+ "*": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
898
+ },
899
+ });
900
+
901
+ ({
902
+ values: {
903
+ Type_Of_Legal_Problem: {
904
+ "Child Custody": TOLPNextSteps["Child Custody"],
905
+ "Child Support": TOLPNextSteps["Child Support"],
906
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
907
+ },
908
+ "*": TOLPNextSteps["Family Issues"],
909
+ },
910
+ });
911
+
912
+ ({
913
+ values: {
914
+ Type_Of_Legal_Problem_Display: {
915
+ "Alimony or Child Support": TOLPNextSteps["Child Support"],
916
+ "Child Custody": TOLPNextSteps["Child Custody"],
917
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
918
+ },
919
+ "*": TOLPNextSteps["Divorce and Separation"],
920
+ },
921
+ });
922
+
923
+ ({
924
+ values: {
925
+ Civil_Defense: {
926
+ Yes: TOLPNextSteps["Defend a Lawsuit"],
927
+ No: TOLPNextSteps["File a Lawsuit"],
928
+ },
929
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
930
+ },
931
+ });
932
+
933
+ ({
934
+ values: {
935
+ Type_Of_Legal_Problem: {
936
+ "Defend a Lawsuit": TOLPNextSteps["Defend a Lawsuit"],
937
+ "File a Lawsuit": TOLPNextSteps["File a Lawsuit"],
938
+ },
939
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
940
+ },
941
+ });
942
+
943
+ const nextStepsMapCivilTOLPDisplay = {
944
+ values: {
945
+ Type_Of_Legal_Problem_Display: {
946
+ "Automobile Accident": TOLPNextSteps["Auto and Car Accidents"],
947
+ "Contract Disputes": TOLPNextSteps["Business Lawyers"],
948
+ "Dog Bite": TOLPNextSteps["Personal Injury"],
949
+ "Employment and Workplace": TOLPNextSteps["Employment and Workplace"],
950
+ Fraud: TOLPNextSteps["Consumer Lawyers"],
951
+ "Medical Malpractice": TOLPNextSteps["Medical Malpractice"],
952
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
953
+ "Property Damage": TOLPNextSteps["Property Damage"],
954
+ "Real Estate": TOLPNextSteps["Real Estate"],
955
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
956
+ },
957
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
958
+ },
959
+ };
960
+
961
+ filterNextStepsMap(nextStepsMapCivilTOLPDisplay, ["legalCrossSells"], {
962
+ commentsWithBankruptcy: "comments",
963
+ });
964
+
965
+ const nextStepsMapCriminalTOLPDisplay = {
966
+ values: {
967
+ Type_Of_Legal_Problem_Display: {
968
+ "Victim of a Crime": TOLPNextSteps["Victim of a Crime"],
969
+ "DUI and DWI": TOLPNextSteps["DUI and DWI"],
970
+ Expungement: TOLPNextSteps["Expungement"],
971
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
972
+ },
973
+ "*": ["crimeCommittedDate", "roleInMatterCriminal", "pendingCharges", ...nextStepsLegalDefaultLPM],
974
+ },
975
+ };
976
+
977
+ filterNextStepsMap(
978
+ nextStepsMapCriminalTOLPDisplay,
979
+ ["legalCrossSells"],
980
+ {
981
+ commentsWithBankruptcy: "comments",
982
+ }
983
+ );
984
+
985
+ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
986
+ values: {
987
+ Type_Of_Legal_Problem_Display: {
988
+ "Wrongful Termination": TOLPNextSteps["Wrongful Termination"],
989
+ "Workers Compensation": TOLPNextSteps["Workers Compensation"],
990
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
991
+ Unemployment: TOLPNextSteps["Unemployment"],
992
+ },
993
+ "*": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
994
+ },
995
+ };
996
+
997
+ filterNextStepsMap(
998
+ nextStepsMapEmploymentAndWorkplaceTOLPDisplay,
999
+ ["legalCrossSells"],
1000
+ {
1001
+ commentsWithBankruptcy: "comments",
1002
+ }
1003
+ );
1004
+
1005
+ ({
1006
+ values: {
1007
+ // Custom because we ask typeOfProperty on s1
1008
+ "*": ["amountPaymentsPastDue", "loanAmount", "defaultNotice", "ownRealEstate", ...nextStepsLegalDefault],
1009
+ },
1010
+ });
1011
+
1012
+ ({
1013
+ values: {
1014
+ Type_Of_Legal_Problem_Display: {
1015
+ Patents: TOLPNextSteps["Patents and Intellectual Property"],
1016
+ "Business Lawyers": TOLPNextSteps["Business Lawyers"],
1017
+ "Business Consulting": TOLPNextSteps["Business Lawyers"],
1018
+ },
1019
+ "*": nextStepsMapGeneralLegal["values"]["*"],
1020
+ },
1021
+ });
1022
+
1023
+ const nextStepsMapRealEstateTOLPDisplay = {
1024
+ values: {
1025
+ Type_Of_Legal_Problem_Display: {
1026
+ Foreclosure: TOLPNextSteps["Foreclosure"],
1027
+ "Landlord and Tenant": TOLPNextSteps["Landlord and Tenant"],
1028
+ "Wills, Trusts, and Estates": TOLPNextSteps["Wills and Trusts"],
1029
+ "Property Damage": TOLPNextSteps["Property Damage"],
1030
+ },
1031
+ "*": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
1032
+ },
1033
+ };
1034
+
1035
+ filterNextStepsMap(
1036
+ nextStepsMapRealEstateTOLPDisplay,
1037
+ ["legalCrossSells"],
1038
+ {
1039
+ commentsWithBankruptcy: "comments",
1040
+ }
1041
+ );
1042
+
654
1043
  const schema = [
655
1044
  formAnchor(),
656
1045
  {
@@ -1 +1 @@
1
- var testRedirects=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=e=>(e.name&&!e.id&&(e.id=e.name),e),s=s=>(t(s),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},s)),r=e=>(e.legendClass="required",e.fieldsetClass="$reset",e.optionsClass="t-pl-2 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2",e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",s(e)),a=e=>(e.legendClass="required t-w-[100%] t-text-center",void 0===e.fieldsetClass&&(e.fieldsetClass="$reset t-flex t-justify-center"),e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 sm:t-pl-8 sm:t-min-w-[200px]",e.optionsClass="t-pl-0 sm:t-pl-4 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2",e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",s(e)),i=e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",s(e)),l=e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",s(e)),n=s=>(t(s),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},s)),o=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",e.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",n(e)),d=e=>(e.labelClass="required",e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-min-w-[150px] t-bg-white "+(e.inputClass||""),e.helpClass="t-mt-2.5 t-text-center",n(e)),p=s=>(t(s),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},s)),m=e=>(e.wrapperClass="side-by-side t-items-center",p(e)),c=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",p(e)),u=(e,t,s={})=>(t?c:m)({label:t?s.label:"Zip Code:",help:t?s.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...s}),f=(t,s,r={})=>(s?l:i)(e({label:s?r.label:"Do You Need Representation to File a Lawsuit or Defend One?",if:s?r.if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',name:t?t+":Civil_Defense":"Civil_Defense",options:["Defend a Lawsuit","File a Lawsuit"]},r)),g=(t,s,i={})=>(s?a:r)(e({label:s?i.label:"Select The Type of Lawsuit You Would Like to File:",if:s?null:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "File a Lawsuit"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"]},i)),y=(t,s,i={})=>(s?a:r)(e({label:s?i.label:"Select The Workplace Issue:",name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"]},i)),h=["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],C=(t,s,r={})=>(s?d:o)(e({label:s?r.label:"Type of Help Needed:",name:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",id:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",options:h},r)),b=(t,s,i={})=>(s?a:r)(e({label:s?i.label:"What is the Landlord / Tenant Issue?",if:s?i.if:'$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',id:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",name:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",options:["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"]},i)),_=(t,s,i={})=>(s?a:r)(e({label:s?i.label:"Select The Real Estate Issue:",if:s?i.if:'$get(Type_Of_Legal_Problem).value == "Real Estate"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"]},i)),$=(t,s,i={})=>(s?a:r)(e({label:s?i.label:"Select The Criminal Issue:",if:s?i.if:'$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"]},i)),x=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,v=e=>{if(x(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const s=e.children[t];if(x(s))return s;const r=v(s);if(r)return r}return null};const L={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const T=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],D=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},w),{$cmp:"FormKit",props:function(t){const s=e(L,t);return s.formId&&!s.name&&(s.name=s.formId),s}({formId:"testRedirects",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},formClass:"!t-max-w-[36rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Have Questions for a Lawyer?")',if:"$activeStep === $firstStep()"}),...T,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,s,r={}){const{nextOnEnter:a=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:n,triggerRedirectMap:o,autoFocus:d}=r;if(s&&s.length&&(a||i)){const e=v(s[s.length-1]);e&&!0===a&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===i&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}return e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,l),{children:[{$formkit:"group",id:t,name:t,nextStepMap:n,triggerRedirectMap:o,autoFocus:d,children:s}]})}("generalLegalTOLPAndZip",[C(),f(),g(),$(),y(),b(),_(),u()],t)}(),function(e={}){return{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"hidden_button",children:"Hidden",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Chat Now"}]}}(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var w;return D}();
1
+ var testRedirects=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=e=>(e.name&&!e.id&&(e.id=e.name),e),a=a=>(t(a),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},a)),s=e=>(e.legendClass="required",e.fieldsetClass="$reset",e.optionsClass="t-pl-2 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2",e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",a(e)),r=e=>(e.legendClass="required t-w-[100%] t-text-center",void 0===e.fieldsetClass&&(e.fieldsetClass="$reset t-flex t-justify-center"),e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 sm:t-pl-8 sm:t-min-w-[200px]",e.optionsClass="t-pl-0 sm:t-pl-4 t-pt-3 t-grid t-grid-cols-1 sm:t-grid-cols-2",e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",a(e)),i=e=>(e.legendClass="legend-left t-pb-1 required",e.fieldsetClass="$reset side-by-side t-items-center",e.optionsClass="t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center",e.innerClass="t-flex t-items-center",e.optionClass="t-pr-1",a(e)),l=e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",a(e)),n=a=>(t(a),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},a)),o=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",e.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",n(e)),m=e=>(e.labelClass="required",e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-min-w-[150px] t-bg-white "+(e.inputClass||""),e.helpClass="t-mt-2.5 t-text-center",n(e)),p=a=>(t(a),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},a)),c=e=>(e.wrapperClass="side-by-side t-items-center",p(e)),d=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",p(e)),u=(e,t,a={})=>(t?d:c)({label:t?a.label:"Zip Code:",help:t?a.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...a}),y=(t,a,s={})=>(a?l:i)(e({label:a?s.label:"Do You Need Representation to File a Lawsuit or Defend One?",if:a?s.if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',name:t?t+":Civil_Defense":"Civil_Defense",options:["Defend a Lawsuit","File a Lawsuit"]},s)),f=(t,a,i={})=>(a?r:s)(e({label:a?i.label:"Select The Type of Lawsuit You Would Like to File:",if:a?null:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit" && $get(Civil_Defense).value == "File a Lawsuit"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Automobile Accident","Contract Disputes","Defamation and Slander","Dog Bite","Employment and Workplace","Fraud","Medical Malpractice","Personal Injury","Property Damage","Small Claims","Real Estate","Not Sure or Other"]},i)),g=(t,a,i={})=>(a?r:s)(e({label:a?i.label:"Select The Workplace Issue:",name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Workplace Harassment","Workplace Discrimination","Wrongful Termination","Payment Disputes","Workers Compensation","Personal Injury","Unemployment","Other Workplace Issues"]},i)),C=["Adoption","Asbestos and Mesothelioma","Auto and Car Accidents","Bankruptcy","Birth Certificate and Name Change","Business Lawyers","Child Custody","Child Support","Civil Rights and Discrimination","Consumer Lawyers","Copyrights and Trademarks","Criminal and Felony","Debt and Collections","Defend a Lawsuit","Divorce and Separation","DUI and DWI","Elder Law","Employment and Workplace","Expungement","Family Issues","File a Lawsuit","Foreclosure","Guardianship","Harassment and Discrimination","Identity Theft","Immigration and Visas","Insurance","Landlord and Tenant","Lemon Law","Long Term Disability","Medical Malpractice","Non-Workplace Discrimination","Non-Workplace Harassment","Patents and Intellectual Property","Personal Injury","Power of Attorney","Probate and Estates","Product Liability","Property Damage","Real Estate","Sexual Harassment","Social Security Disability and Insurance","Tax and IRS","Traffic and Tickets","Unemployment","Victim of a Crime","Wills and Trusts","Workers Compensation","Workplace Discrimination","Workplace Harassment","Wrongful Death","Wrongful Termination","Not Sure or Other"],h=(t,a,s={})=>(a?m:o)(e({label:a?s.label:"Type of Help Needed:",name:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",id:t?t+":Type_Of_Legal_Problem":"Type_Of_Legal_Problem",options:C},s)),b=(t,a,i={})=>(a?r:s)(e({label:a?i.label:"What is the Landlord / Tenant Issue?",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Landlord and Tenant"',id:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",name:t?t+":Landlord_Tenant_Issue":"Landlord_Tenant_Issue",options:["Eviction","Repairs and Maintenance","Lease and Rental Agreements","Discrimination","Right of Entry and Privacy","Screening and Applications","Environmental Hazards","Other Dispute"]},i)),v=(t,a,i={})=>(a?r:s)(e({label:a?i.label:"Select The Real Estate Issue:",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Real Estate"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Contracts and Agreements","Deeds, Liens, and Titles","Foreclosure","Insurance","Landlord and Tenant","Loans and Mortgages","Wills, Trusts, and Estates","Property Damage","Not Sure or Other"]},i)),_=(t,a,i={})=>(a?r:s)(e({label:a?i.label:"Select The Criminal Issue:",if:a?i.if:'$get(Type_Of_Legal_Problem).value == "Criminal and Felony"',name:t?t+":Type_Of_Legal_Problem_Display":"Type_Of_Legal_Problem_Display",options:["Criminal Defense","Victim of a Crime","DUI and DWI","Expungement","Harassment","Not Sure or Other"]},i)),D=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,L=e=>{if(D(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const a=e.children[t];if(D(a))return a;const s=L(a);if(s)return s}return null};const T={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const P={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const I=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],O=["haveAttorney","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],S=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],$=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],w={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...S],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",...O],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...$],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...O],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",...O],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...S],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...S],"Civil Rights and Discrimination":["civilRightsType",...O],"Civil Lawsuit":["civilDefense","lawsuitOtherParty",...O],"File a Lawsuit":["civilLawsuitTOLPDisplay","lawsuitOtherParty",...O],"Defend a Lawsuit":["lawsuitOtherParty",...O],"Consumer Lawyers":["consumerLawyerType","incidentDate","lawsuitOtherParty",...O],"Criminal and Felony":["criminalTOLPDisplay","crimeCommittedDate","roleInMatterCriminal","pendingCharges",...S],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...O],"Divorce and Separation":["maritalStatus","haveChildren",...S],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",...O],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",...O],Expungement:["incidentDate","criminalChargeType",...S],"Family Issues":["maritalStatus","haveChildren",...S],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",...O],Guardianship:["maritalStatus","haveChildren",...S],"Immigration and Visas":["countryOfCitizenship","immigrationLocation","immigrationEntry","immigrationType","immigrationStatus","immigrationDetails",...O],"Landlord and Tenant":["landlordTenantIssue","landlordTenantParty",...O],"Lemon Law":["incidentDate","lawsuitOtherParty",...O],"Long Term Disability":["applicantOccupation","applicantAge","applicantLTDisabilityPolicy","applicantDisabilityHowObtain","applicantPreviouslyAppliedLtdBenefits","applicantReceivedDisabilityBenefits","applicantMonthlySalary",...$],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",...O],"Patents and Intellectual Property":["patentAssistanceType","patentFor",...O],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...$],"Probate and Estates":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...O],"Property Damage":["realEstateArea","wouldLikeLawyerTo",...O],"Real Estate":["realEstateTOLPDisplay","realEstateArea","wouldLikeLawyerTo",...O],"Social Security Disability and Insurance":["applicantAge","disabilityConditionStopWork","disabilityWorkHistory","socialSecurityDisabilityReceivingBenefits","doctorTreatment",...$],"Tax and IRS":["totalDebt","taxProblemDetails","taxLevel","taxIssueType",...O],"Traffic and Tickets":["driversLicenseType","trafficViolations","haveCourtDate",...O],Unemployment:["numEmployeesOfBusiness","employerType","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],"Victim of a Crime":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...S],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...O],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...$],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",...O],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",...O],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...$],"Wrongful Termination":["numEmployeesOfBusiness","employerType",...O]},"*":O}};function x(e,t=[],a={}){const s={...e};return s.values=function e(s){const r={};for(const i in s)Array.isArray(s[i])?r[i]=s[i].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof s[i]?r[i]=e(s[i]):r[i]=s[i];return r}(e.values),s}x(w,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const A=w.values.Type_Of_Legal_Problem;A["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),A["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),A["Personal Injury"].filter((e=>"legalCrossSells"!==e)),A["Personal Injury"].filter((e=>"legalCrossSells"!==e)),A["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),A["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),A["Personal Injury"].filter((e=>"legalCrossSells"!==e)),A["Personal Injury"].filter((e=>"legalCrossSells"!==e)),A["Child Custody"],A["Child Support"],w.values["*"],A["Family Issues"],A["Child Support"],A["Child Custody"],w.values["*"],A["Divorce and Separation"],A["Defend a Lawsuit"],A["File a Lawsuit"],A["Defend a Lawsuit"],A["File a Lawsuit"];x({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":A["Auto and Car Accidents"],"Contract Disputes":A["Business Lawyers"],"Dog Bite":A["Personal Injury"],"Employment and Workplace":A["Employment and Workplace"],Fraud:A["Consumer Lawyers"],"Medical Malpractice":A["Medical Malpractice"],"Personal Injury":A["Personal Injury"],"Property Damage":A["Property Damage"],"Real Estate":A["Real Estate"],"Not Sure or Other":w.values["*"]},"*":["lawsuitOtherParty",...O]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});x({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":A["Victim of a Crime"],"DUI and DWI":A["DUI and DWI"],Expungement:A.Expungement,"Not Sure or Other":w.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...S]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});x({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":A["Wrongful Termination"],"Workers Compensation":A["Workers Compensation"],"Personal Injury":A["Personal Injury"],Unemployment:A.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",...O]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),A["Patents and Intellectual Property"],A["Business Lawyers"],A["Business Lawyers"],w.values["*"];x({values:{Type_Of_Legal_Problem_Display:{Foreclosure:A.Foreclosure,"Landlord and Tenant":A["Landlord and Tenant"],"Wills, Trusts, and Estates":A["Wills and Trusts"],"Property Damage":A["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",...O]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const k=[e(P,W),{$cmp:"FormKit",props:function(t){const a=e(T,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"testRedirects",redirectMap:{"*":"https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},formClass:"!t-max-w-[36rem]"}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Have Questions for a Lawyer?")',if:"$activeStep === $firstStep()"}),...I,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,a,s={}){const{nextOnEnter:r=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:n,triggerRedirectMap:o,autoFocus:m}=s;if(a&&a.length&&(r||i)){const e=L(a[a.length-1]);e&&!0===r&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===i&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}return e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,l),{children:[{$formkit:"group",id:t,name:t,nextStepMap:n,triggerRedirectMap:o,autoFocus:m,children:a}]})}("generalLegalTOLPAndZip",[h(),y(),f(),_(),g(),b(),v(),u()],t)}(),function(e={}){return{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"hidden_button",children:"Hidden",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Chat Now"}]}}(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}];var W;return k}();