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
@@ -329,6 +329,395 @@ const hiddenInputsVets = [
329
329
  ...hiddenInputsBase,
330
330
  ];
331
331
 
332
+ const nextStepsLegalDefault = [
333
+ "haveAttorney",
334
+ "degreeOfInterest",
335
+ "commentsWithBankruptcy",
336
+ "zipcode",
337
+ "legalCrossSells",
338
+ "firstAndLast",
339
+ "contactInfo",
340
+ ];
341
+
342
+ const nextStepsLegalDefaultLPM = [
343
+ "haveAttorney",
344
+ "degreeOfInterest",
345
+ "lawyerPaymentMethod",
346
+ "commentsWithBankruptcy",
347
+ "zipcode",
348
+ "legalCrossSells",
349
+ "firstAndLast",
350
+ "contactInfo",
351
+ ];
352
+
353
+ const nextStepsLegalNoDOI = [
354
+ "haveAttorney",
355
+ "commentsWithBankruptcy",
356
+ "zipcode",
357
+ "legalCrossSells",
358
+ "firstAndLast",
359
+ "contactInfo",
360
+ ];
361
+
362
+ const nextStepsLegalNoHA = [
363
+ "degreeOfInterest",
364
+ "commentsWithBankruptcy",
365
+ "zipcode",
366
+ "legalCrossSells",
367
+ "firstAndLast",
368
+ "contactInfo",
369
+ ];
370
+
371
+ const nextStepsMapGeneralLegal = {
372
+ values: {
373
+ Type_Of_Legal_Problem: {
374
+ Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
375
+ "Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
376
+ "Auto and Car Accidents": [
377
+ "incidentDate",
378
+ "atFault",
379
+ "primaryInjury",
380
+ "doctorTreatment",
381
+ "policeReportFiled",
382
+ ...nextStepsLegalNoDOI,
383
+ ],
384
+ Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
385
+ "Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
386
+ "Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
387
+ "Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
388
+ "Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
389
+ "Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
390
+ "File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
391
+ "Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
392
+ "Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
393
+ "Criminal and Felony": [
394
+ "criminalTOLPDisplay",
395
+ "crimeCommittedDate",
396
+ "roleInMatterCriminal",
397
+ "pendingCharges",
398
+ ...nextStepsLegalDefaultLPM,
399
+ ],
400
+ "Debt and Collections": [
401
+ "totalMonthlyIncome",
402
+ "totalDebt",
403
+ "ownRealEstate",
404
+ "valueOfAssets",
405
+ ...nextStepsLegalDefault,
406
+ ],
407
+ "Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
408
+ "DUI and DWI": [
409
+ "incidentDate",
410
+ "priorAlcoholOffenses",
411
+ "typeOfAlcoholTest",
412
+ "bloodContentAlcoholTest",
413
+ "pendingCharges",
414
+ ...nextStepsLegalDefault,
415
+ ],
416
+ "Employment and Workplace": [
417
+ "employmentAndWorkplaceTOLPDisplay",
418
+ "numEmployeesOfBusiness",
419
+ "employerType",
420
+ "employeeAtCompany",
421
+ ...nextStepsLegalDefault,
422
+ ],
423
+ Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
424
+ "Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
425
+ Foreclosure: [
426
+ "ownRealEstate",
427
+ "typeOfProperty",
428
+ "amountPaymentsPastDue",
429
+ "loanAmount",
430
+ "defaultNotice",
431
+ ...nextStepsLegalDefault,
432
+ ],
433
+ Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
434
+ "Immigration and Visas": [
435
+ "countryOfCitizenship",
436
+ "immigrationLocation",
437
+ "immigrationEntry",
438
+ "immigrationType",
439
+ "immigrationStatus",
440
+ "immigrationDetails",
441
+ ...nextStepsLegalDefault,
442
+ ],
443
+ "Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
444
+ "Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
445
+ "Long Term Disability": [
446
+ "applicantOccupation",
447
+ "applicantAge",
448
+ "applicantLTDisabilityPolicy",
449
+ "applicantDisabilityHowObtain",
450
+ "applicantPreviouslyAppliedLtdBenefits",
451
+ "applicantReceivedDisabilityBenefits",
452
+ "applicantMonthlySalary",
453
+ ...nextStepsLegalNoDOI,
454
+ ],
455
+ "Medical Malpractice": [
456
+ "incidentDate",
457
+ "claimStatus",
458
+ "doctorTreatment",
459
+ "medicalMalpracticeInjuries",
460
+ ...nextStepsLegalDefault,
461
+ ],
462
+ "Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
463
+ "Personal Injury": [
464
+ "incidentDate",
465
+ "claimStatus",
466
+ "atFault",
467
+ "primaryInjury",
468
+ "doctorTreatment",
469
+ ...nextStepsLegalNoDOI,
470
+ ],
471
+ "Probate and Estates": [
472
+ "valueOfAssets",
473
+ "typeOfAssets",
474
+ "roleInMatterProbate",
475
+ "estateLegalServicesNeeded",
476
+ ...nextStepsLegalDefault,
477
+ ],
478
+ "Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
479
+ "Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
480
+ "Social Security Disability and Insurance": [
481
+ "applicantAge",
482
+ "disabilityConditionStopWork",
483
+ "disabilityWorkHistory",
484
+ "socialSecurityDisabilityReceivingBenefits",
485
+ "doctorTreatment",
486
+ ...nextStepsLegalNoDOI,
487
+ ],
488
+ "Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
489
+ "Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
490
+ Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
491
+ "Victim of a Crime": [
492
+ "crimeCommittedDate",
493
+ "roleInMatterCriminal",
494
+ "pendingCharges",
495
+ ...nextStepsLegalDefaultLPM,
496
+ ],
497
+ "Wills and Trusts": [
498
+ "valueOfAssets",
499
+ "typeOfAssets",
500
+ "roleInMatterProbate",
501
+ "estateLegalServicesNeeded",
502
+ ...nextStepsLegalDefault,
503
+ ],
504
+ "Workers Compensation": [
505
+ "incidentDate",
506
+ "claimStatus",
507
+ "primaryInjury",
508
+ "causeOfInjury",
509
+ "doctorTreatment",
510
+ ...nextStepsLegalNoDOI,
511
+ ],
512
+ "Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
513
+ "Workplace Discrimination": [
514
+ "numEmployeesOfBusiness",
515
+ "employerType",
516
+ "employeeAtCompany",
517
+ ...nextStepsLegalDefault,
518
+ ],
519
+ "Wrongful Death": [
520
+ "incidentDate",
521
+ "relationshipToVictim",
522
+ "criminalChargesFiled",
523
+ "causeOfDeath",
524
+ ...nextStepsLegalNoDOI,
525
+ ],
526
+ "Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
527
+ },
528
+ "*": nextStepsLegalDefault,
529
+ },
530
+ };
531
+
532
+ // Helper to take existing map and trim or replace steps
533
+ function filterNextStepsMap(nextStepsMap, removableSteps = [], replaceSteps = {}) {
534
+ const modifiedMap = { ...nextStepsMap };
535
+
536
+ function filterSteps(steps) {
537
+ return steps.filter((step) => !removableSteps.includes(step)).map((step) => replaceSteps[step] || step)
538
+ }
539
+
540
+ function modifyValues(values) {
541
+ const modifiedValues = {};
542
+ for (const key in values) {
543
+ if (Array.isArray(values[key])) {
544
+ modifiedValues[key] = filterSteps(values[key]);
545
+ } else if (typeof values[key] === "object") {
546
+ modifiedValues[key] = modifyValues(values[key]);
547
+ } else {
548
+ modifiedValues[key] = values[key];
549
+ }
550
+ }
551
+ return modifiedValues
552
+ }
553
+
554
+ modifiedMap.values = modifyValues(nextStepsMap.values);
555
+ return modifiedMap
556
+ }
557
+
558
+ filterNextStepsMap(nextStepsMapGeneralLegal, ["legalCrossSells"], {
559
+ commentsWithBankruptcy: "comments",
560
+ });
561
+
562
+ const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
563
+
564
+ ({
565
+ values: {
566
+ Type_Of_Legal_Problem_Display: {
567
+ "Auto Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
568
+ "Workplace Injury": TOLPNextSteps["Workers Compensation"].filter((step) => step !== "legalCrossSells"),
569
+ "Dog Bite": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
570
+ "Slip and Fall": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
571
+ "Trucking Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
572
+ "Motorcycle Accident": TOLPNextSteps["Auto and Car Accidents"].filter((step) => step !== "legalCrossSells"),
573
+ "Other Accidents or Injuries": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
574
+ },
575
+ "*": TOLPNextSteps["Personal Injury"].filter((step) => step !== "legalCrossSells"),
576
+ },
577
+ });
578
+
579
+ ({
580
+ values: {
581
+ Type_Of_Legal_Problem: {
582
+ "Child Custody": TOLPNextSteps["Child Custody"],
583
+ "Child Support": TOLPNextSteps["Child Support"],
584
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
585
+ },
586
+ "*": TOLPNextSteps["Family Issues"],
587
+ },
588
+ });
589
+
590
+ ({
591
+ values: {
592
+ Type_Of_Legal_Problem_Display: {
593
+ "Alimony or Child Support": TOLPNextSteps["Child Support"],
594
+ "Child Custody": TOLPNextSteps["Child Custody"],
595
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
596
+ },
597
+ "*": TOLPNextSteps["Divorce and Separation"],
598
+ },
599
+ });
600
+
601
+ ({
602
+ values: {
603
+ Civil_Defense: {
604
+ Yes: TOLPNextSteps["Defend a Lawsuit"],
605
+ No: TOLPNextSteps["File a Lawsuit"],
606
+ },
607
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
608
+ },
609
+ });
610
+
611
+ ({
612
+ values: {
613
+ Type_Of_Legal_Problem: {
614
+ "Defend a Lawsuit": TOLPNextSteps["Defend a Lawsuit"],
615
+ "File a Lawsuit": TOLPNextSteps["File a Lawsuit"],
616
+ },
617
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
618
+ },
619
+ });
620
+
621
+ const nextStepsMapCivilTOLPDisplay = {
622
+ values: {
623
+ Type_Of_Legal_Problem_Display: {
624
+ "Automobile Accident": TOLPNextSteps["Auto and Car Accidents"],
625
+ "Contract Disputes": TOLPNextSteps["Business Lawyers"],
626
+ "Dog Bite": TOLPNextSteps["Personal Injury"],
627
+ "Employment and Workplace": TOLPNextSteps["Employment and Workplace"],
628
+ Fraud: TOLPNextSteps["Consumer Lawyers"],
629
+ "Medical Malpractice": TOLPNextSteps["Medical Malpractice"],
630
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
631
+ "Property Damage": TOLPNextSteps["Property Damage"],
632
+ "Real Estate": TOLPNextSteps["Real Estate"],
633
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
634
+ },
635
+ "*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
636
+ },
637
+ };
638
+
639
+ filterNextStepsMap(nextStepsMapCivilTOLPDisplay, ["legalCrossSells"], {
640
+ commentsWithBankruptcy: "comments",
641
+ });
642
+
643
+ const nextStepsMapCriminalTOLPDisplay = {
644
+ values: {
645
+ Type_Of_Legal_Problem_Display: {
646
+ "Victim of a Crime": TOLPNextSteps["Victim of a Crime"],
647
+ "DUI and DWI": TOLPNextSteps["DUI and DWI"],
648
+ Expungement: TOLPNextSteps["Expungement"],
649
+ "Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
650
+ },
651
+ "*": ["crimeCommittedDate", "roleInMatterCriminal", "pendingCharges", ...nextStepsLegalDefaultLPM],
652
+ },
653
+ };
654
+
655
+ filterNextStepsMap(
656
+ nextStepsMapCriminalTOLPDisplay,
657
+ ["legalCrossSells"],
658
+ {
659
+ commentsWithBankruptcy: "comments",
660
+ }
661
+ );
662
+
663
+ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
664
+ values: {
665
+ Type_Of_Legal_Problem_Display: {
666
+ "Wrongful Termination": TOLPNextSteps["Wrongful Termination"],
667
+ "Workers Compensation": TOLPNextSteps["Workers Compensation"],
668
+ "Personal Injury": TOLPNextSteps["Personal Injury"],
669
+ Unemployment: TOLPNextSteps["Unemployment"],
670
+ },
671
+ "*": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
672
+ },
673
+ };
674
+
675
+ filterNextStepsMap(
676
+ nextStepsMapEmploymentAndWorkplaceTOLPDisplay,
677
+ ["legalCrossSells"],
678
+ {
679
+ commentsWithBankruptcy: "comments",
680
+ }
681
+ );
682
+
683
+ ({
684
+ values: {
685
+ // Custom because we ask typeOfProperty on s1
686
+ "*": ["amountPaymentsPastDue", "loanAmount", "defaultNotice", "ownRealEstate", ...nextStepsLegalDefault],
687
+ },
688
+ });
689
+
690
+ ({
691
+ values: {
692
+ Type_Of_Legal_Problem_Display: {
693
+ Patents: TOLPNextSteps["Patents and Intellectual Property"],
694
+ "Business Lawyers": TOLPNextSteps["Business Lawyers"],
695
+ "Business Consulting": TOLPNextSteps["Business Lawyers"],
696
+ },
697
+ "*": nextStepsMapGeneralLegal["values"]["*"],
698
+ },
699
+ });
700
+
701
+ const nextStepsMapRealEstateTOLPDisplay = {
702
+ values: {
703
+ Type_Of_Legal_Problem_Display: {
704
+ Foreclosure: TOLPNextSteps["Foreclosure"],
705
+ "Landlord and Tenant": TOLPNextSteps["Landlord and Tenant"],
706
+ "Wills, Trusts, and Estates": TOLPNextSteps["Wills and Trusts"],
707
+ "Property Damage": TOLPNextSteps["Property Damage"],
708
+ },
709
+ "*": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
710
+ },
711
+ };
712
+
713
+ filterNextStepsMap(
714
+ nextStepsMapRealEstateTOLPDisplay,
715
+ ["legalCrossSells"],
716
+ {
717
+ commentsWithBankruptcy: "comments",
718
+ }
719
+ );
720
+
332
721
  const schema = [
333
722
  formAnchor(),
334
723
  {
@@ -1 +1 @@
1
- var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,r,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}const r=(t,r,n)=>(t=>{var r;return(r=t).name&&!r.id&&(r.id=r.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)})(e({name:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},n)),n=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,i=e=>{if(n(e))return e;for(var t=e.children.length-1;t>=0;t--){if("string"==typeof e.children)continue;const r=e.children[t];if(n(r))return r;const s=i(r);if(s)return s}return null};const s={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 l=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],o=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},u),{$cmp:"FormKit",props:function(t){const r=e(s,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"vets",redirectMap:{"*":(a="zipanswers.com",c="Pets",d="Veterinarians",t(a,c,d)+"&Comments=${properties.Comments}")},popUnderMap:{"*":t("zipanswers.com","Pets","Pet Care")},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 About Your Pet?")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...l,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,n={}){const{nextOnEnter:s=!0,nextOnInput:l=!1,stepKey:o,nextStepMap:a,triggerRedirectMap:c,autoFocus:d}=n;if(r&&r.length&&(s||l)){const e=i(r[r.length-1]);e&&!0===s&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===l&&(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,o),{children:[{$formkit:"group",id:t,name:t,nextStepMap:a,triggerRedirectMap:c,autoFocus:d,children:r}]})}("comments",[r(t.scope,0,{label:t.label||"Please briefly describe your issue in a few words:",placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)'})],t)}({label:"Please describe your issue in a few words:",placeholder:'Example: "My dog is limping and I need to know if I should take him to the vet"',nextOnEnter:!1}),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 a,c,d,u;return o}();
1
+ var vets=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,r=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+r+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a=(t,a,r)=>(t=>{var a;return(a=t).name&&!a.id&&(a.id=a.name),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)})(e({name:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},r)),r=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,s=e=>{if(r(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(r(a))return a;const n=s(a);if(n)return n}return null};const n={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 i={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const l=[{$formkit:"hidden",name:"vertical",value:"Pets"},{$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"],c=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],m=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],u={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...c],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",...o],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...m],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",...o],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...c],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...c],"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",...c],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...o],"Divorce and Separation":["maritalStatus","haveChildren",...c],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",...o],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",...o],Expungement:["incidentDate","criminalChargeType",...c],"Family Issues":["maritalStatus","haveChildren",...c],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",...o],Guardianship:["maritalStatus","haveChildren",...c],"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",...m],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",...o],"Patents and Intellectual Property":["patentAssistanceType","patentFor",...o],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...m],"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",...m],"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",...c],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...o],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...m],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...m],"Wrongful Termination":["numEmployeesOfBusiness","employerType",...o]},"*":o}};function p(e,t=[],a={}){const r={...e};return r.values=function e(r){const s={};for(const n in r)Array.isArray(r[n])?s[n]=r[n].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof r[n]?s[n]=e(r[n]):s[n]=r[n];return s}(e.values),r}p(u,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const d=u.values.Type_Of_Legal_Problem;d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Personal Injury"].filter((e=>"legalCrossSells"!==e)),d["Child Custody"],d["Child Support"],u.values["*"],d["Family Issues"],d["Child Support"],d["Child Custody"],u.values["*"],d["Divorce and Separation"],d["Defend a Lawsuit"],d["File a Lawsuit"],d["Defend a Lawsuit"],d["File a Lawsuit"];p({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":d["Auto and Car Accidents"],"Contract Disputes":d["Business Lawyers"],"Dog Bite":d["Personal Injury"],"Employment and Workplace":d["Employment and Workplace"],Fraud:d["Consumer Lawyers"],"Medical Malpractice":d["Medical Malpractice"],"Personal Injury":d["Personal Injury"],"Property Damage":d["Property Damage"],"Real Estate":d["Real Estate"],"Not Sure or Other":u.values["*"]},"*":["lawsuitOtherParty",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});p({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":d["Victim of a Crime"],"DUI and DWI":d["DUI and DWI"],Expungement:d.Expungement,"Not Sure or Other":u.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...c]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});p({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":d["Wrongful Termination"],"Workers Compensation":d["Workers Compensation"],"Personal Injury":d["Personal Injury"],Unemployment:d.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),d["Patents and Intellectual Property"],d["Business Lawyers"],d["Business Lawyers"],u.values["*"];p({values:{Type_Of_Legal_Problem_Display:{Foreclosure:d.Foreclosure,"Landlord and Tenant":d["Landlord and Tenant"],"Wills, Trusts, and Estates":d["Wills and Trusts"],"Property Damage":d["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",...o]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const y=[e(i,C),{$cmp:"FormKit",props:function(t){const a=e(n,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"vets",redirectMap:{"*":(f="zipanswers.com",h="Pets",g="Veterinarians",t(f,h,g)+"&Comments=${properties.Comments}")},popUnderMap:{"*":t("zipanswers.com","Pets","Pet Care")},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 About Your Pet?")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Get Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...l,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,a,r={}){const{nextOnEnter:n=!0,nextOnInput:i=!1,stepKey:l,nextStepMap:o,triggerRedirectMap:c,autoFocus:m}=r;if(a&&a.length&&(n||i)){const e=s(a[a.length-1]);e&&!0===n&&(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:o,triggerRedirectMap:c,autoFocus:m,children:a}]})}("comments",[a(t.scope,0,{label:t.label||"Please briefly describe your issue in a few words:",placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)'})],t)}({label:"Please describe your issue in a few words:",placeholder:'Example: "My dog is limping and I need to know if I should take him to the vet"',nextOnEnter:!1}),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 f,h,g,C;return y}();