bhl-forms 0.6.0 → 0.6.1

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 (79) hide show
  1. package/dist/bhl-forms.es.js +5244 -4973
  2. package/dist/bhl-forms.iife.js +9 -9
  3. package/dist/bhl-forms.umd.js +9 -9
  4. package/package.json +2 -2
  5. package/dist/bhl-forms.modern.es.js +0 -16865
  6. package/dist/bhl-forms.modern.iife.js +0 -21
  7. package/dist/bhl-forms.modern.umd.js +0 -21
  8. package/dist/forms/accidentsAndInjuries.es.js +0 -1279
  9. package/dist/forms/accidentsAndInjuries.iife.js +0 -1
  10. package/dist/forms/accidentsAndInjuries.json +0 -1
  11. package/dist/forms/appraisals.es.js +0 -345
  12. package/dist/forms/appraisals.iife.js +0 -1
  13. package/dist/forms/appraisals.json +0 -1
  14. package/dist/forms/childAndFamily.es.js +0 -1678
  15. package/dist/forms/childAndFamily.iife.js +0 -1
  16. package/dist/forms/childAndFamily.json +0 -1
  17. package/dist/forms/childAndFamilySingle.es.js +0 -1809
  18. package/dist/forms/childAndFamilySingle.iife.js +0 -1
  19. package/dist/forms/childAndFamilySingle.json +0 -1
  20. package/dist/forms/civilLawsuit.es.js +0 -2149
  21. package/dist/forms/civilLawsuit.iife.js +0 -1
  22. package/dist/forms/civilLawsuit.json +0 -1
  23. package/dist/forms/coins.es.js +0 -345
  24. package/dist/forms/coins.iife.js +0 -1
  25. package/dist/forms/coins.json +0 -1
  26. package/dist/forms/contracts.es.js +0 -994
  27. package/dist/forms/contracts.iife.js +0 -1
  28. package/dist/forms/contracts.json +0 -1
  29. package/dist/forms/criminal.es.js +0 -3247
  30. package/dist/forms/criminal.iife.js +0 -1
  31. package/dist/forms/criminal.json +0 -1
  32. package/dist/forms/employmentAndWorkplace.es.js +0 -1380
  33. package/dist/forms/employmentAndWorkplace.iife.js +0 -1
  34. package/dist/forms/employmentAndWorkplace.json +0 -1
  35. package/dist/forms/generalLegal.es.js +0 -3386
  36. package/dist/forms/generalLegal.iife.js +0 -1
  37. package/dist/forms/generalLegal.json +0 -1
  38. package/dist/forms/generalLegalPopUnder.es.js +0 -3388
  39. package/dist/forms/generalLegalPopUnder.iife.js +0 -1
  40. package/dist/forms/generalLegalPopUnder.json +0 -1
  41. package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
  42. package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
  43. package/dist/forms/generalLegalPopUnderTF.json +0 -1
  44. package/dist/forms/generalLegalSingle.es.js +0 -4305
  45. package/dist/forms/generalLegalSingle.iife.js +0 -1
  46. package/dist/forms/generalLegalSingle.json +0 -1
  47. package/dist/forms/generalLegalThankYou.es.js +0 -3067
  48. package/dist/forms/generalLegalThankYou.iife.js +0 -1
  49. package/dist/forms/generalLegalThankYou.json +0 -1
  50. package/dist/forms/harassmentAndDiscrimination.es.js +0 -1030
  51. package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
  52. package/dist/forms/harassmentAndDiscrimination.json +0 -1
  53. package/dist/forms/malpractice.es.js +0 -1253
  54. package/dist/forms/malpractice.iife.js +0 -1
  55. package/dist/forms/malpractice.json +0 -1
  56. package/dist/forms/mechanics.es.js +0 -385
  57. package/dist/forms/mechanics.iife.js +0 -1
  58. package/dist/forms/mechanics.json +0 -1
  59. package/dist/forms/realEstate.es.js +0 -2950
  60. package/dist/forms/realEstate.iife.js +0 -1
  61. package/dist/forms/realEstate.json +0 -1
  62. package/dist/forms/repossession.es.js +0 -1261
  63. package/dist/forms/repossession.iife.js +0 -1
  64. package/dist/forms/repossession.json +0 -1
  65. package/dist/forms/ssdi.es.js +0 -1073
  66. package/dist/forms/ssdi.iife.js +0 -1
  67. package/dist/forms/ssdi.json +0 -1
  68. package/dist/forms/testForm.es.js +0 -729
  69. package/dist/forms/testForm.iife.js +0 -1
  70. package/dist/forms/testForm.json +0 -1
  71. package/dist/forms/testRedirects.es.js +0 -541
  72. package/dist/forms/testRedirects.iife.js +0 -1
  73. package/dist/forms/testRedirects.json +0 -1
  74. package/dist/forms/vets.es.js +0 -348
  75. package/dist/forms/vets.iife.js +0 -1
  76. package/dist/forms/vets.json +0 -1
  77. package/dist/forms/willsAndTrusts.es.js +0 -1214
  78. package/dist/forms/willsAndTrusts.iife.js +0 -1
  79. package/dist/forms/willsAndTrusts.json +0 -1
@@ -1 +0,0 @@
1
- var malpractice=function(){"use strict";function e(){return Object.assign({},...arguments)}const t='$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',a='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',r='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',i={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 n={tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937."};const o={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const l={$el:"div",if:"$activeStep === $lastStep()",attrs:{class:"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500"},children:[{$el:"img",attrs:{loading:"lazy",alt:"",style:{border:0},width:"25",height:"25",src:"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{$el:"span",children:"Secure & Encrypted",attrs:{class:"t-pl-2 t-pt-1 t-font-medium"}}]};function s(t){return e(l,t)}const d=[{$formkit:"hidden",name:"vertical",value:"Legal"},{$formkit:"hidden",name:"TCPA_Language",value:"$meta.tcpaLanguage"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],m={"*":"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}"};const c=t=>(t.legendClass="legend-left required",t.fieldsetClass="$reset side-by-side",t.optionsClass="t-pl-1",t.innerClass="t-flex t-items-center",t.wrapperClass="t-mb-3",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t)))(t)),p=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),u=e=>(e.options=["Yes","No"],(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",p(e)))(e)),f=t=>(t.labelClass="required",t.wrapperClass="side-by-side t-items-center",t.innerClass="select-height-content",t.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t)))(t)),y=t=>(t.wrapperClass="side-by-side t-items-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)))(t)),g=t=>(t.wrapperClass="side-by-side t-items-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"DatePicker",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",innerClass:"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500"},t)))(t)),h=e=>f({name:e?e+":Claim_Status":"Claim_Status",label:"Status of Claim:",options:["No action taken yet","Demand for compensation made","Lawsuit filed","Other"]}),b=(t,a)=>(t=>(t.name&&!t.id&&(t.id=t.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:a?a+":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"'},t)),_=e=>((e,t)=>f({name:e?e+":Degree_Of_Interest":"Degree_Of_Interest",id:e?e+":Degree_Of_Interest":"Degree_Of_Interest",label:"How Likely Are You to Pay if Your Issue Could be Resolved?",help:t,options:["Definitely","Probably","Maybe","Absolutely Can't Afford"]}))(e,"No payment necessary to speak with lawyers."),v=e=>u({name:e?e+":Doctor_Treatment":"Doctor_Treatment",label:"Have You Recently Been Treated by a Doctor, Hospital or Clinic?"}),x=e=>u({name:e?e+":Have_Attorney":"Have_Attorney",label:"Already Working with An Attorney?"}),w=t=>(e=>(e.legendClass="required",e.fieldsetClass="$reset",e.optionsClass="t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",p(e)))(e({name:"Type_Of_Legal_Problem_Display",label:"Select The Malpractice Issue:",options:["Medical Malpractice","Attorney Malpractice","Other Malpractice Issues"]},t)),k=(t,a)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},a),P="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",I="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",$=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,C=e=>{if($(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($(a))return a;const r=C(a);if(r)return r}return null};function L(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1"}}}function O(e){return{$el:"h3",children:e.headline||"Additional Case Details",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function T(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function E(e){return{$el:"h3",children:e.headline||a,attrs:{class:"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function S(e){return{$el:"h5",children:e.subheadline||r,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "+(e.subheadlineClass||"")}}}const D="(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();";const M=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function A(t,a,r=!0,i=!1,n=void 0,o=void 0){if(void 0===r&&(r=!0),a&&a.length&&(r||i)){const e=C(a[a.length-1]);e&&!0===r&&(e.onKeypress=P),e&&!0===i&&(e.onInput=I)}return e(M(t,n),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,children:a}]})}const q=[{type:"meta",data:e(n,{defaultCommentsPlaceholder:t,commentsPlaceholders:{Adoption:'Example: "I need help with adoption forms"',"Asbestos and Mesothelioma":'Example: "I was exposed to asbestos at work and would like to file a claim"',"Auto and Car Accidents":'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',Bankruptcy:'Example: "I need help filing for bankruptcy"',"Birth Certificate and Name Change":'Example: "Just married and would like to change my last name"',"Business Lawyers":'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',"Child Custody and Support":'Example: "Need help getting custody" or "Issues with child support payments"',"Child Custody":'Example: "Need help getting custody"',"Child Support":'Example: "Issues with child support payments"',"Civil Rights and Discrimination":'Example: "Police brutality" or "Coworker keeps harassing me"',"Civil Lawsuit":'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',"File a Lawsuit":'Example: "A contractor took my money and never completed the job"',"Defend a Lawsuit":'Example: "I am being sued by a neighbor"',"Consumer Lawyers":'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',"Copyrights and Trademarks":'Example: "I would like to register a trademark or copyright a name"',"Criminal and Felony":'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',"Debt and Collections":'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',"Divorce and Separation":'Example: "I would like to file for an uncontested divorce"',"DUI and DWI":'Example: "I was arrested for DUI and need legal defense"',"Elder Law":'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',"Employment and Workplace":'Example: "I was injured while on the job" or "My company is discriminating against me"',Expungement:'Example: "I would like to file for an expungement and clear my record"',"Family Issues":'Example: "I need help with guardianship" or "I need a simple will created"',Foreclosure:'Example: "I need help to avoid foreclosure on my house"',Guardianship:'Example: "I need help with guardianship documents"',"Harassment and Discrimination":'Example: "I am being discriminated at work" or "My neighbor is harassing me"',"Sexual Harassment":'Example: "I am being sexually harassed by a coworker"',"Workplace Harassment":'Example: "My coworker is being aggressive towards me"',"Non-Workplace Harassment":'Example: "My neighbor is harassing me"',"Workplace Discrimination":'Example: "I am being discriminated at work based on my age"',"Non-Workplace Discrimination":'Example: "I am being discriminated against by a local official"',"Identity Theft":'Example: "Someone stole my identity and I need help fixing the issue"',"Immigration and Visas":'Example: "I need help filing for a visa" or "Help with a green card"',Insurance:'Example: "I need help filing an insurance claim for damage to my house"',"Landlord and Tenant":'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',"Lemon Law":'Example: "I purchased a new vehicle that broke down already and seller will not assist"',"Long Term Disability":'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',"Medical Malpractice":'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',"Patents and Intellectual Property":'Example: "I would like to file for a patent" or "I need to copyright a name"',"Personal Injury":'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',"Power of Attorney":'Example: "I need help with a limited or general power of attorney"',"Probate and Estates":'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',"Product Liability":'Example: "My car battery caught on fire" or "I purchased a faulty product"',"Property Damage":'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',"Real Estate":'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',"Social Security Disability and Insurance":'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',"Tax and IRS":'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',"Traffic and Tickets":'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',Unemployment:'Example: "I need help filing for unemployment benefits"',"Victim of a Crime":'Example: "I was assaulted in the store" or "I am being discriminated against at work"',"Wills and Trusts":'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',"Workers Compensation":'Example: "I was injured at work and would like to file for workers compensation benefits"',"Wrongful Death":'Example: "A family member was killed on the job and we need legal representation"',"Wrongful Termination":'Example: "I was fired by my employer without cause"',"Not Sure or Other":'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'},defaultFinalHeadline:"Submit Your Case",finalHeadlines:{},defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:{Adoption:"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.",Bankruptcy:"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.",Foreclosure:"You may benefit from speaking with a foreclosure professional. Please verify your contact information.",Guardianship:"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.",Unemployment:"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."}})},e(o,F),{$cmp:"FormKit",props:function(t){const a=e(i,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"malpractice",redirectMap:function(t){return e(m,t)}(),valueOverrideMap:{Civil_Defense:{Yes:{Type_Of_Legal_Problem:"Defend a Lawsuit"},No:{Type_Of_Legal_Problem:"File a Lawsuit"}},Type_Of_Legal_Problem_Display:{"Auto Accident":{Type_Of_Legal_Problem:"Auto and Car Accidents"},"Dog Bite":{Type_Of_Legal_Problem:"Personal Injury"},"Slip and Fall":{Type_Of_Legal_Problem:"Personal Injury"},"Workplace Injury":{Type_Of_Legal_Problem:"Workers Compensation"},"Trucking Accident":{Type_Of_Legal_Problem:"Auto and Car Accidents"},"Motorcycle Accident":{Type_Of_Legal_Problem:"Auto and Car Accidents"},"Other Accidents or Injuries":{Type_Of_Legal_Problem:"Personal Injury"},"Automobile Accident":{Type_Of_Legal_Problem:"Auto and Car Accidents"},"Contract Disputes":{Type_Of_Legal_Problem:"Business Lawyers"},"Defamation and Slander":{Type_Of_Legal_Problem:"File a Lawsuit"},"Dog Bite":{Type_Of_Legal_Problem:"Personal Injury"},"Employment and Workplace":{Type_Of_Legal_Problem:"Employment and Workplace"},Fraud:{Type_Of_Legal_Problem:"Consumer Lawyers"},"Medical Malpractice":{Type_Of_Legal_Problem:"Medical Malpractice"},"Personal Injury":{Type_Of_Legal_Problem:"Personal Injury"},"Property Damage":{Type_Of_Legal_Problem:"Property Damage"},"Small Claims":{Type_Of_Legal_Problem:"File a Lawsuit"},"Real Estate":{Type_Of_Legal_Problem:"Real Estate"},"Other (describe on next page)":{Type_Of_Legal_Problem:"Not Sure or Other"},"Contract Creation":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Contract Enforcement":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Contract Cancellation":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Contract Fraud":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Breach of Contract":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Other Contract Issues":{Type_Of_Legal_Problem:"Business Lawyers",Business_Services:"Contracts"},"Criminal Defense":{Type_Of_Legal_Problem:"Criminal and Felony"},"Victim of a Crime":{Type_Of_Legal_Problem:"Victim of a Crime"},"DUI and DWI":{Type_Of_Legal_Problem:"DUI and DWI"},Expungement:{Type_Of_Legal_Problem:"Expungement"},Harassment:{Type_Of_Legal_Problem:"Criminal and Felony"},"Not Sure or Other":{Type_Of_Legal_Problem:"Not Sure or Other"},"Workplace Harassment":{Type_Of_Legal_Problem:"Workplace Harassment"},"Workplace Discrimination":{Type_Of_Legal_Problem:"Workplace Discrimination"},"Wrongful Termination":{Type_Of_Legal_Problem:"Wrongful Termination"},"Payment Disputes":{Type_Of_Legal_Problem:"Employment and Workplace"},"Workers Compensation":{Type_Of_Legal_Problem:"Workers Compensation"},Unemployment:{Type_Of_Legal_Problem:"Unemployment"},"Other Workplace Issues":{Type_Of_Legal_Problem:"Employment and Workplace"},"Attorney Malpractice":{Type_Of_Legal_Problem:"Civil Lawsuit"},"Other Malpractice Issues":{Type_Of_Legal_Problem:"Not Sure or Other"},"Vehicle Repossession":{Type_Of_Legal_Problem:"Bankruptcy"},"Property Repossession":{Type_Of_Legal_Problem:"Bankruptcy"},"Other Repossession Issues":{Type_Of_Legal_Problem:"Not Sure or Other"},"Contracts and Agreements":{Type_Of_Legal_Problem:"Real Estate"},"Deeds, Liens, and Titles":{Type_Of_Legal_Problem:"Real Estate"},Foreclosure:{Type_Of_Legal_Problem:"Foreclosure"},Insurance:{Type_Of_Legal_Problem:"Insurance"},"Landlord and Tenant":{Type_Of_Legal_Problem:"Landlord and Tenant"},"Loans and Mortgages":{Type_Of_Legal_Problem:"Real Estate"},"Wills, Trusts, and Estates":{Type_Of_Legal_Problem:"Wills and Trusts"},"Property Damage":{Type_Of_Legal_Problem:"Property Damage"},"Other Real Estate Issues":{Type_Of_Legal_Problem:"Real Estate"}}}}),children:[function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Get Justice for Malpractice!")',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.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Our Service is Fast, Easy, and Free")',if:"$activeStep === $firstStep()"}),...d,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return A("malpracticeTOLPAndZip",[{$formkit:"hidden",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",value:"Medical Malpractice"},w(),y({label:"Zip Code:",placeholder:"#####",name:"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"}})],e.nextOnEnter)}(),function(e={}){return A("TOLPQuestions",[L(e),k("MedicalMalpracticeQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Medical Malpractice"',children:[x(),g({name:t?t+":Incident_Date":"Incident_Date",label:"Date of Incident:"}),h(),v(),f({label:"Injuries from Medical Malpractice:",name:"Medical_Malpractice_Injuries",options:["No Injury","Minor Injury","Disfigurement or cosmetic injury","Short term loss of physical ability","Long term loss of physical injury","Possibility of future harm","Death of Patient"]}),_()]}),k("CivilLawsuitQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Civil Lawsuit"',children:[x(),f({label:"The Other Party is a:",name:"Lawsuit_Other_Party",options:["Individual","Small Business","Large Corporation","Government Entity"]}),_()]}),k("NotSureOrOtherQuestions",{if:'$get(Type_Of_Legal_Problem).value == "Not Sure or Other"',children:[x(),_()]})],e.nextOnEnter);var t}(),function(e={}){return A("commentsWithBankruptcy",[O(e),b({label:void 0===e.label?"Please briefly describe your legal issue in a few words:":e.label,placeholder:e.placeholder||t,inputClass:void 0===e.inputClass?"!t-h-40":e.inputClass}),c({label:"I'd also like a consultation for bankruptcy or debt elimination (optional)",help:"Note: you will be contacted separately by a bankruptcy/debt expert",name:"CrossSell_Bankruptcy",id:"CrossSell_Bankruptcy",if:'$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',validation:null,helpClass:"!t-text-sm"}),{$el:"div",if:"$get(CrossSell_Bankruptcy).value == true",children:[b({label:"Bankruptcy or debt details:",placeholder:"Please describe your bankrtupcy or debt situation in a few words...",inputClass:"!t-h-16"},"CrossSell:Bankruptcy")]}],e.nextOnEnter)}({nextOnEnter:!1,placeholder:'Example: "My doctor or attorney was negligent in providing care."'}),function(e={}){return A("firstAndLast",[T(e),y({$formkit:"text",label:"First Name:",placeholder:"First",name:"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),y({$formkit:"text",label:"Last Name:",placeholder:"Last",name:"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}})],e.nextOnEnter)}(),function(e={}){return A("contactInfo",[E(e),S(e),{$el:"script",if:"$activeStep === $lastStep()",children:D},y({$formkit:"email",name:"Email",label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"}}),y({$formkit:"tel",name:"Primary_Phone",label:"Phone Number:",placeholder:"###-###-####",maxlength:12,help:"10-digit phone number, hyphens optional",autocomplete:"tel-national","data-tf-sensitive":"false",validation:"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",validationMessages:{required:"Field is required",matches:"Invalid Phone Format, use ###-###-####",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]"}),{$formkit:"checkbox",label:"$meta.tcpaLanguage",name:"TCPA_Opt_In","data-tf-sensitive":"false",validation:"required|accepted",validationMessages:{required:"Consent is required",accepted:"Consent is required"},classes:{label:"t-text-xs t-text-slate-500 t-font-normal"}},s()],e.nextOnEnter)}({nextOnEnter:!1}),{$el:"div",attrs:{class:"step-nav"},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",style:{if:"$activeStep === $firstStep()",then:"visibility: hidden;"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"}},{$formkit:"submit",name:"submit_button",label:"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]},{$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;return q}();
@@ -1 +0,0 @@
1
- [{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.","defaultCommentsPlaceholder":"$getKey($meta, \"commentsPlaceholders.\" + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)","commentsPlaceholders":{"Adoption":"Example: \"I need help with adoption forms\"","Asbestos and Mesothelioma":"Example: \"I was exposed to asbestos at work and would like to file a claim\"","Auto and Car Accidents":"Example: \"A truck crashed into my car on the highway\" or \"I've been involved in a hit and run accident\"","Bankruptcy":"Example: \"I need help filing for bankruptcy\"","Birth Certificate and Name Change":"Example: \"Just married and would like to change my last name\"","Business Lawyers":"Example: \"I need help incorporating a business\" or \"I would like a legal contract reviewed\"","Child Custody and Support":"Example: \"Need help getting custody\" or \"Issues with child support payments\"","Child Custody":"Example: \"Need help getting custody\"","Child Support":"Example: \"Issues with child support payments\"","Civil Rights and Discrimination":"Example: \"Police brutality\" or \"Coworker keeps harassing me\"","Civil Lawsuit":"Example: \"A contractor took my money and never completed the job\" or \"I am being sued by a neighbor\"","File a Lawsuit":"Example: \"A contractor took my money and never completed the job\"","Defend a Lawsuit":"Example: \"I am being sued by a neighbor\"","Consumer Lawyers":"Example: \"Someone committed fraud against me\" or \"A contractor took my money and never completed the job\"","Copyrights and Trademarks":"Example: \"I would like to register a trademark or copyright a name\"","Criminal and Felony":"Example: \"I was arrested for DUI and need legal defense\" or \"I am being charged with assault\"","Debt and Collections":"Example: \"I would like to consolidate my debt\" or \"A collection agency is harassing me\"","Divorce and Separation":"Example: \"I would like to file for an uncontested divorce\"","DUI and DWI":"Example: \"I was arrested for DUI and need legal defense\"","Elder Law":"Example: \"I would like help with Estate Planning\" or \"I need help with a guardianship\"","Employment and Workplace":"Example: \"I was injured while on the job\" or \"My company is discriminating against me\"","Expungement":"Example: \"I would like to file for an expungement and clear my record\"","Family Issues":"Example: \"I need help with guardianship\" or \"I need a simple will created\"","Foreclosure":"Example: \"I need help to avoid foreclosure on my house\"","Guardianship":"Example: \"I need help with guardianship documents\"","Harassment and Discrimination":"Example: \"I am being discriminated at work\" or \"My neighbor is harassing me\"","Sexual Harassment":"Example: \"I am being sexually harassed by a coworker\"","Workplace Harassment":"Example: \"My coworker is being aggressive towards me\"","Non-Workplace Harassment":"Example: \"My neighbor is harassing me\"","Workplace Discrimination":"Example: \"I am being discriminated at work based on my age\"","Non-Workplace Discrimination":"Example: \"I am being discriminated against by a local official\"","Identity Theft":"Example: \"Someone stole my identity and I need help fixing the issue\"","Immigration and Visas":"Example: \"I need help filing for a visa\" or \"Help with a green card\"","Insurance":"Example: \"I need help filing an insurance claim for damage to my house\"","Landlord and Tenant":"Example: \"I need help to fight an eviction\" or \"I would like a lawyer to review a rental contract\"","Lemon Law":"Example: \"I purchased a new vehicle that broke down already and seller will not assist\"","Long Term Disability":"Example: \"I was injured on the job and would like to file for benefits\" or \"I need help filing for disability benefits\"","Medical Malpractice":"Example: \"A doctor performed surgery on the wrong limb and I would like to file a lawsuit\"","Patents and Intellectual Property":"Example: \"I would like to file for a patent\" or \"I need to copyright a name\"","Personal Injury":"Example: \"I was bit by the neighbor's dog\" or \"I fell in the icy grocery store parking lot\"","Power of Attorney":"Example: \"I need help with a limited or general power of attorney\"","Probate and Estates":"Example: \"I need help with planning for my estate\" or \"A family member passed without a will in place\"","Product Liability":"Example: \"My car battery caught on fire\" or \"I purchased a faulty product\"","Property Damage":"Example: \"The neighbor's tree fell on my fence\" or \"My car was hit in the parking lot\"","Real Estate":"Example: \"I need help with a quitclaim deed\" or \"I need a lawyer to review a purchase and sales agreement\"","Social Security Disability and Insurance":"Example: \"I would like help filing for disability benefits\" or \"I've been denied for SSDI and would like to appeal\"","Tax and IRS":"Example: \"I need help fighting an IRS tax claim\" or \"I need audit defense\"","Traffic and Tickets":"Example: \"I need help reinstating a supsended license\" or \"I would like to fight a traffic ticket\"","Unemployment":"Example: \"I need help filing for unemployment benefits\"","Victim of a Crime":"Example: \"I was assaulted in the store\" or \"I am being discriminated against at work\"","Wills and Trusts":"Example: \"I need a simple will created\" or \"I would like guidance on creating a trust fund\"","Workers Compensation":"Example: \"I was injured at work and would like to file for workers compensation benefits\"","Wrongful Death":"Example: \"A family member was killed on the job and we need legal representation\"","Wrongful Termination":"Example: \"I was fired by my employer without cause\"","Not Sure or Other":"Example: \"I was involved in a car accident\" or \"I need help setting up power of attorney\""},"defaultFinalHeadline":"Submit Your Case","finalHeadlines":{},"defaultFinalSubHeadline":"You may benefit from speaking with a legal professional. Please verify your contact information.","finalSubHeadlines":{"Adoption":"You may benefit from speaking with an adoption professional. Please verify your contact information.","Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information.","Bankruptcy":"You may benefit from speaking with a bankruptcy professional. Please verify your contact information.","Copyrights and Trademarks":"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.","Divorce and Separation":"You may benefit from speaking with a divorce professional. Please verify your contact information.","DUI and DWI":"You may benefit from speaking with a DUI professional. Please verify your contact information.","Elder Law":"You may benefit from speaking with an elder law professional. Please verify your contact information.","Foreclosure":"You may benefit from speaking with a foreclosure professional. Please verify your contact information.","Guardianship":"You may benefit from speaking with a guardianship professional. Please verify your contact information.","Immigration and Visas":"You may benefit from speaking with a immigration professional. Please verify your contact information.","Landlord and Tenant":"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.","Long Term Disability":"You may benefit from speaking with a disability legal professional. Please verify your contact information.","Medical Malpractice":"You may benefit from speaking with a malpractice professional. Please verify your contact information.","Patents and Intellectual Property":"You may benefit from speaking with a patent professional. Please verify your contact information.","Personal Injury":"You may benefit from speaking with a personal injury professional. Please verify your contact information.","Probate and Estates":"You may benefit from speaking with a probate and estate professional. Please verify your contact information.","Real Estate":"You may benefit from speaking with a real estate professional. Please verify your contact information.","Social Security Disability and Insurance":"You may benefit from speaking with an SSDI professional. Please verify your contact information.","Tax and IRS":"You may benefit from speaking with a tax professional. Please verify your contact information.","Unemployment":"You may benefit from speaking with an unemployment professional. Please verify your contact information.","Workers Compensation":"You may benefit from speaking with a workers compensation professional. Please verify your contact information."}}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","useLocalStorage":true,"prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[40rem]","formId":"malpractice","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}"},"valueOverrideMap":{"Civil_Defense":{"Yes":{"Type_Of_Legal_Problem":"Defend a Lawsuit"},"No":{"Type_Of_Legal_Problem":"File a Lawsuit"}},"Type_Of_Legal_Problem_Display":{"Auto Accident":{"Type_Of_Legal_Problem":"Auto and Car Accidents"},"Dog Bite":{"Type_Of_Legal_Problem":"Personal Injury"},"Slip and Fall":{"Type_Of_Legal_Problem":"Personal Injury"},"Workplace Injury":{"Type_Of_Legal_Problem":"Workers Compensation"},"Trucking Accident":{"Type_Of_Legal_Problem":"Auto and Car Accidents"},"Motorcycle Accident":{"Type_Of_Legal_Problem":"Auto and Car Accidents"},"Other Accidents or Injuries":{"Type_Of_Legal_Problem":"Personal Injury"},"Automobile Accident":{"Type_Of_Legal_Problem":"Auto and Car Accidents"},"Contract Disputes":{"Type_Of_Legal_Problem":"Business Lawyers"},"Defamation and Slander":{"Type_Of_Legal_Problem":"File a Lawsuit"},"Employment and Workplace":{"Type_Of_Legal_Problem":"Employment and Workplace"},"Fraud":{"Type_Of_Legal_Problem":"Consumer Lawyers"},"Medical Malpractice":{"Type_Of_Legal_Problem":"Medical Malpractice"},"Personal Injury":{"Type_Of_Legal_Problem":"Personal Injury"},"Property Damage":{"Type_Of_Legal_Problem":"Property Damage"},"Small Claims":{"Type_Of_Legal_Problem":"File a Lawsuit"},"Real Estate":{"Type_Of_Legal_Problem":"Real Estate"},"Other (describe on next page)":{"Type_Of_Legal_Problem":"Not Sure or Other"},"Contract Creation":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Contract Enforcement":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Contract Cancellation":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Contract Fraud":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Breach of Contract":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Other Contract Issues":{"Type_Of_Legal_Problem":"Business Lawyers","Business_Services":"Contracts"},"Criminal Defense":{"Type_Of_Legal_Problem":"Criminal and Felony"},"Victim of a Crime":{"Type_Of_Legal_Problem":"Victim of a Crime"},"DUI and DWI":{"Type_Of_Legal_Problem":"DUI and DWI"},"Expungement":{"Type_Of_Legal_Problem":"Expungement"},"Harassment":{"Type_Of_Legal_Problem":"Criminal and Felony"},"Not Sure or Other":{"Type_Of_Legal_Problem":"Not Sure or Other"},"Workplace Harassment":{"Type_Of_Legal_Problem":"Workplace Harassment"},"Workplace Discrimination":{"Type_Of_Legal_Problem":"Workplace Discrimination"},"Wrongful Termination":{"Type_Of_Legal_Problem":"Wrongful Termination"},"Payment Disputes":{"Type_Of_Legal_Problem":"Employment and Workplace"},"Workers Compensation":{"Type_Of_Legal_Problem":"Workers Compensation"},"Unemployment":{"Type_Of_Legal_Problem":"Unemployment"},"Other Workplace Issues":{"Type_Of_Legal_Problem":"Employment and Workplace"},"Attorney Malpractice":{"Type_Of_Legal_Problem":"Civil Lawsuit"},"Other Malpractice Issues":{"Type_Of_Legal_Problem":"Not Sure or Other"},"Vehicle Repossession":{"Type_Of_Legal_Problem":"Bankruptcy"},"Property Repossession":{"Type_Of_Legal_Problem":"Bankruptcy"},"Other Repossession Issues":{"Type_Of_Legal_Problem":"Not Sure or Other"},"Contracts and Agreements":{"Type_Of_Legal_Problem":"Real Estate"},"Deeds, Liens, and Titles":{"Type_Of_Legal_Problem":"Real Estate"},"Foreclosure":{"Type_Of_Legal_Problem":"Foreclosure"},"Insurance":{"Type_Of_Legal_Problem":"Insurance"},"Landlord and Tenant":{"Type_Of_Legal_Problem":"Landlord and Tenant"},"Loans and Mortgages":{"Type_Of_Legal_Problem":"Real Estate"},"Wills, Trusts, and Estates":{"Type_Of_Legal_Problem":"Wills and Trusts"},"Other Real Estate Issues":{"Type_Of_Legal_Problem":"Real Estate"}}},"name":"malpractice"},"children":[{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "},"children":"$urlParam(\"hl\", \"Get Justice for Malpractice!\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "},"children":"$urlParam(\"shl\", \"Our Service is Fast, Easy, and Free\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"Legal"},{"$formkit":"hidden","name":"TCPA_Language","value":"$meta.tcpaLanguage"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"malpracticeTOLPAndZip\")","attrs":{"hidden":"$activeStep !== \"malpracticeTOLPAndZip\"","key":"malpracticeTOLPAndZip"},"children":[{"$formkit":"group","id":"malpracticeTOLPAndZip","name":"malpracticeTOLPAndZip","children":[{"$formkit":"hidden","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","value":"Medical Malpractice"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required","name":"Type_Of_Legal_Problem_Display","label":"Select The Malpractice Issue:","options":["Medical Malpractice","Attorney Malpractice","Other Malpractice Issues"],"fieldsetClass":"$reset","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Type_Of_Legal_Problem_Display"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","label":"Zip Code:","placeholder":"#####","name":"Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"side-by-side t-items-center","id":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"TOLPQuestions\")","attrs":{"hidden":"$activeStep !== \"TOLPQuestions\"","key":"TOLPQuestions"},"children":[{"$formkit":"group","id":"TOLPQuestions","name":"TOLPQuestions","children":[{"$el":"h3","children":"Tell Us About Your Situation","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"MedicalMalpracticeQuestions","id":"MedicalMalpracticeQuestions","name":"MedicalMalpracticeQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Medical Malpractice\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Already Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Have_Attorney"},{"$formkit":"DatePicker","validation":"required","validationMessages":{"required":"Field is required"},"labelClass":"required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500","innerClass":"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500","name":"Incident_Date","label":"Date of Incident:","wrapperClass":"side-by-side t-items-center","id":"Incident_Date"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","name":"Claim_Status","label":"Status of Claim:","options":["No action taken yet","Demand for compensation made","Lawsuit filed","Other"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]","id":"Claim_Status"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Doctor_Treatment","label":"Have You Recently Been Treated by a Doctor, Hospital or Clinic?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Doctor_Treatment"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"Injuries from Medical Malpractice:","name":"Medical_Malpractice_Injuries","options":["No Injury","Minor Injury","Disfigurement or cosmetic injury","Short term loss of physical ability","Long term loss of physical injury","Possibility of future harm","Death of Patient"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]","id":"Medical_Malpractice_Injuries"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","name":"Degree_Of_Interest","id":"Degree_Of_Interest","label":"How Likely Are You to Pay if Your Issue Could be Resolved?","help":"No payment necessary to speak with lawyers.","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"CivilLawsuitQuestions","id":"CivilLawsuitQuestions","name":"CivilLawsuitQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Civil Lawsuit\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Already Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Have_Attorney"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"The Other Party is a:","name":"Lawsuit_Other_Party","options":["Individual","Small Business","Large Corporation","Government Entity"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]","id":"Lawsuit_Other_Party"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","name":"Degree_Of_Interest","id":"Degree_Of_Interest","label":"How Likely Are You to Pay if Your Issue Could be Resolved?","help":"No payment necessary to speak with lawyers.","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]"}]},{"$cmp":"FormKit","props":{"type":"group","key":"NotSureOrOtherQuestions","id":"NotSureOrOtherQuestions","name":"NotSureOrOtherQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Not Sure or Other\"","children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center","legendClass":"legend-left t-pb-1 required","name":"Have_Attorney","label":"Already Working with An Attorney?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Have_Attorney"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","name":"Degree_Of_Interest","id":"Degree_Of_Interest","label":"How Likely Are You to Pay if Your Issue Could be Resolved?","help":"No payment necessary to speak with lawyers.","options":["Definitely","Probably","Maybe","Absolutely Can't Afford"],"wrapperClass":"side-by-side t-items-center","innerClass":"select-height-content","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-5px]","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]},{"$el":"section","if":"$stepEnabled(\"commentsWithBankruptcy\")","attrs":{"hidden":"$activeStep !== \"commentsWithBankruptcy\"","key":"commentsWithBankruptcy"},"children":[{"$formkit":"group","id":"commentsWithBankruptcy","name":"commentsWithBankruptcy","children":[{"$el":"h3","children":"Additional Case Details","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"Comments","label":"Please briefly describe your legal issue in a few words:","placeholder":"Example: \"My doctor or attorney was negligent in providing care.\"","inputClass":"!t-h-40","id":"Comments"},{"$formkit":"checkbox","validation":null,"validationMessages":{"required":"Field is required"},"label":"I'd also like a consultation for bankruptcy or debt elimination (optional)","help":"Note: you will be contacted separately by a bankruptcy/debt expert","name":"CrossSell_Bankruptcy","id":"CrossSell_Bankruptcy","if":"$getVal($get(form), \"Type_Of_Legal_Problem\") != \"Bankruptcy\" && ($getVal($get(form), \"Degree_Of_Interest\") == \"Absolutely Can't Afford\" || $getVal($get(form), \"Degree_Of_Interest\") == \"Maybe\" || $getVal($get(form), \"Degree_Of_Interest\") == \"Probably\")","helpClass":"!t-text-sm","legendClass":"legend-left required","fieldsetClass":"$reset side-by-side","optionsClass":"t-pl-1","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3"},{"$el":"div","if":"$get(CrossSell_Bankruptcy).value == true","children":[{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Bankruptcy:Comments","label":"Bankruptcy or debt details:","placeholder":"Please describe your bankrtupcy or debt situation in a few words...","inputClass":"!t-h-16","id":"CrossSell:Bankruptcy:Comments"}]}]}]},{"$el":"section","if":"$stepEnabled(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Please Provide a Contact Name","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"text","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","label":"First Name:","placeholder":"First","name":"First_Name","autocomplete":"given-name","wrapperClass":"side-by-side t-items-center","id":"First_Name"},{"$formkit":"text","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","label":"Last Name:","placeholder":"Last","name":"Last_Name","autocomplete":"family-name","wrapperClass":"side-by-side t-items-center","id":"Last_Name","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"contactInfo\")","attrs":{"hidden":"$activeStep !== \"contactInfo\"","key":"contactInfo"},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"$getKey($meta, \"finalHeadlines.\" + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1 "}},{"$el":"h5","children":"$getKey($meta, \"finalSubHeadlines.\" + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3 "}},{"$el":"script","if":"$activeStep === $lastStep()","children":"(function() {\n if (window.xxTrustedFormLoaded) {\n return\n }\n var vid = '';\n if (typeof window.zar !== 'undefined') {\n vid = window.zar.getVID();\n }\n window.xxTrustedFormLoaded = true;\n var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'\n var tf = document.createElement('script');\n tf.type = 'text/javascript'; tf.async = true;\n tf.src = (\"https:\" == document.location.protocol ? 'https' : 'http') + \"://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=\" + vid + \"&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=\" + sandbox + \"&l=\" + new Date().getTime() + Math.random();\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);\n})();"},{"$formkit":"email","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","label":"Email Address:","placeholder":"email@domain.com","autocomplete":"email","data-tf-sensitive":"false","wrapperClass":"side-by-side t-items-center","id":"Email"},{"$formkit":"tel","validation":"required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone","validationMessages":{"required":"Field is required","matches":"Invalid Phone Format, use ###-###-####","valid_phone":"Invalid Phone Number"},"labelClass":"required","name":"Primary_Phone","label":"Phone Number:","placeholder":"###-###-####","maxlength":12,"help":"10-digit phone number, hyphens optional","autocomplete":"tel-national","data-tf-sensitive":"false","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","wrapperClass":"side-by-side t-items-center","id":"Primary_Phone"},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"TCPA_Opt_In","data-tf-sensitive":"false","validation":"required|accepted","validationMessages":{"required":"Consent is required","accepted":"Consent is required"},"classes":{"label":"t-text-xs t-text-slate-500 t-font-normal"}},{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500"},"children":[{"$el":"img","attrs":{"loading":"lazy","alt":"","style":{"border":0},"width":"25","height":"25","src":"https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg"}},{"$el":"span","children":"Secure & Encrypted","attrs":{"class":"t-pl-2 t-pt-1 t-font-medium"}}]}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","style":{"if":"$activeStep === $firstStep()","then":"visibility: hidden;"}},{"$formkit":"button","name":"next_button","onClick":"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))","children":{"if":"$activeStep === $firstStep()","then":"Start","else":"Next"},"outerClass":{"if":"$activeStep === $lastStep()","then":"t-hidden","else":""},"style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","name":"submit_button","label":"Submit","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"}}]},{"$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"}}]}]}]}]
@@ -1,385 +0,0 @@
1
- function merge() {
2
- return Object.assign({}, ...arguments)
3
- }
4
-
5
- function RedirectUrl(domain, vertical, category) {
6
- return 'https://listings.' + domain + '/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=' + encodeURIComponent(vertical) + '&category=' + encodeURIComponent(category)
7
- }
8
-
9
- function RedirectUrlComments(domain, vertical, category) {
10
- return RedirectUrl(domain, vertical, category) + '&Comments=${properties.Comments}'
11
- }
12
-
13
- const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
14
- const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
15
-
16
- const formPropDefaults = {
17
- type: 'form',
18
- id: 'form',
19
- config: { validationVisibility: 'submit' },
20
- onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
21
- plugins: '$plugins',
22
- actions: false,
23
- anchorElement: 'form-anchor',
24
- useLocalStorage: true,
25
- prepop: {
26
- fromURL: true
27
- },
28
- errorCodes: {
29
- 403: { message: "An Error Occurred", abort: false },
30
- 409: { abort: false },
31
- 429: "An Error Occurred",
32
- 504: { message: "An Error Occurred", abort: false },
33
- },
34
- formClass: '!t-max-w-[40rem]'
35
- };
36
-
37
- function formProps(updates) {
38
- const props = merge(
39
- formPropDefaults,
40
- updates
41
- );
42
- if (props.formId && !props.name) {
43
- props.name = props.formId;
44
- }
45
- return props
46
- }
47
-
48
- const formAnchorDefaults = {
49
- $el: 'div',
50
- children: [
51
- {
52
- $el: 'div',
53
- attrs: {
54
- id: 'form-anchor',
55
- class: 't-absolute',
56
- style: { top: '-30px', left: 0 }
57
- }
58
- }
59
- ],
60
- attrs: {
61
- class: 't-relative'
62
- }
63
- };
64
-
65
- function formAnchor(updates) {
66
- return merge(
67
- formAnchorDefaults,
68
- updates
69
- )
70
- }
71
-
72
- function headlineDefaults(updates = {}) {
73
- return {
74
- $el: 'h1',
75
- attrs: {
76
- class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
77
- }
78
- }
79
- }
80
-
81
- function headline(updates = {}) {
82
- return merge(
83
- headlineDefaults(updates),
84
- updates
85
- )
86
- }
87
-
88
- function subHeadlineDefaults(updates = {}) {
89
- return {
90
- $el: 'h3',
91
- attrs: {
92
- class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
93
- }
94
- }
95
- }
96
-
97
- function subHeadline(updates = {}) {
98
- return merge(
99
- subHeadlineDefaults(updates),
100
- updates
101
- )
102
- }
103
-
104
- const hiddenInputsBase = [
105
- {
106
- $formkit: 'hidden',
107
- name: "gclid",
108
- value: null
109
- },
110
- {
111
- $formkit: 'hidden',
112
- name: "campaignid",
113
- value: null
114
- },
115
- {
116
- $formkit: 'hidden',
117
- name: "s",
118
- value: null
119
- }
120
- ];
121
-
122
- const hiddenInputsMechanics = [
123
- {
124
- $formkit: 'hidden',
125
- name: "vertical",
126
- value: "AutoRepair"
127
- },
128
- ...hiddenInputsBase
129
- ];
130
-
131
- const radio = (updates) => {
132
- if (updates.name && !updates.id) {
133
- updates.id = updates.name;
134
- }
135
- return merge({
136
- $formkit: 'radio',
137
- validation: 'required',
138
- validationMessages: {
139
- required: 'Field is required'
140
- },
141
- optionsClass: 't-pt-3 t-pl-1',
142
- legendClass: 'required'
143
- }, updates)
144
- };
145
-
146
- const textArea = (updates) => {
147
- if (updates.name && !updates.id) {
148
- updates.id = updates.name;
149
- }
150
- return merge({
151
- $formkit: 'textarea',
152
- rows: 5,
153
- maxlength: 500,
154
- validation: 'required',
155
- validationMessages: {
156
- required: 'Field is required'
157
- },
158
- innerClass: 't-max-w-xl',
159
- labelClass: 'required'
160
- }, updates)
161
- };
162
-
163
- const comments = (updates, scope) => textArea(
164
- merge({
165
- name: scope ? scope + ':' + 'Comments' : 'Comments',
166
- label: 'Please briefly describe your situation in a few words:',
167
- placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
168
- }, updates)
169
- );
170
-
171
- const mechanicsCrossSells = () => radio({
172
- id: 'Mechanics_CrossSells',
173
- name: 'Mechanics_CrossSells',
174
- label: 'Click all that apply (optional):',
175
- fieldsetClass: '$reset',
176
- wrapperClass: 't-mb-2',
177
- optionsClass: 't-pt-3',
178
- legendClass: '',
179
- validation: null,
180
- options: {
181
- // 'Auto and Car Accidents': "I've been in a car accident",
182
- 'Auto Insurance': "I'd like to save on my car insurance"
183
- },
184
- });
185
-
186
- const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
187
- const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
188
-
189
- const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
190
-
191
- const findLastInput = (n) => {
192
- if (isInput(n)) {
193
- return n
194
- }
195
- for (var i = n.children.length - 1; i >= 0; i--) {
196
- if (typeof n.children === 'string') {
197
- continue
198
- }
199
- const child = n.children[i];
200
- if (isInput(child)) {
201
- return child
202
- }
203
- const res = findLastInput(child);
204
- if (res) {
205
- return res
206
- }
207
- }
208
- return null
209
- };
210
-
211
- const stepDefaults = (step, stepKey) => ({
212
- $el: 'section',
213
- if: '$stepEnabled("' + step + '")',
214
- attrs: {
215
- hidden: '$activeStep !== "' + step + '"',
216
- key: stepKey ? stepKey : step
217
- }
218
- });
219
-
220
- function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
221
- if (typeof nextOnEnter === 'undefined') {
222
- nextOnEnter = true;
223
- }
224
- if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
225
- const lastInput = findLastInput(inputs[inputs.length - 1]);
226
- if (lastInput && nextOnEnter === true) {
227
- lastInput.onKeypress = NEXT_ON_ENTER;
228
- }
229
- if (lastInput && nextOnInput === true) {
230
- lastInput.onInput = NEXT_ON_INPUT;
231
- }
232
- }
233
-
234
- return merge(
235
- stepDefaults(name, stepKey),
236
- {
237
- children: [
238
- {
239
- $formkit: 'group',
240
- id: name,
241
- name: name,
242
- nextStepMap: nextStepMap,
243
- children: inputs
244
- }
245
- ]
246
- }
247
- )
248
- }
249
-
250
- function commentsMechanics(updates = {}) {
251
- return step(
252
- 'commentsMechanics',
253
- [
254
- comments({
255
- label: updates.label || DEFAULT_COMMENTS_LABEL,
256
- placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
257
- inputClass: '!t-h-20',
258
- }),
259
- mechanicsCrossSells()
260
- ],
261
- updates.nextOnEnter
262
- )
263
- }
264
-
265
- function formNavigationOnlySubmit(updates = {}) {
266
- return {
267
- $el: 'div',
268
- attrs: {
269
- class: 'step-nav'
270
- },
271
- children: [
272
- {
273
- $formkit: 'button',
274
- name: 'hidden_button',
275
- children: 'Hidden',
276
- style: {
277
- if: '$activeStep === $firstStep()',
278
- then: 'visibility: hidden;'
279
- }
280
- },
281
- {
282
- $formkit: 'submit',
283
- name: 'submit_button',
284
- label: updates.submitLabel || 'Chat Now'
285
- }
286
- ]
287
- }
288
- }
289
-
290
- const formDetails = () => ({
291
- $el: 'pre',
292
- if: '$urlParam("fdbg", "") == 1',
293
- children: [
294
- {
295
- $el: 'pre',
296
- children: '$stringify( $get(form).value )',
297
- attrs: {
298
- class: 't-text-xs',
299
- style: 'overflow: scroll'
300
- }
301
- },
302
- {
303
- $el: 'pre',
304
- children: ['activeStep: ', '$activeStep'],
305
- attrs: {
306
- class: 't-text-xs',
307
- style: 'overflow: scroll'
308
- }
309
- },
310
- {
311
- $el: 'pre',
312
- children: ['stepHistory: ', '$stepHistory'],
313
- attrs: {
314
- class: 't-text-xs',
315
- style: 'overflow: scroll'
316
- }
317
- },
318
- {
319
- $el: 'pre',
320
- children: ['stepQueue: ', '$stepQueue'],
321
- attrs: {
322
- class: 't-text-xs',
323
- style: 'overflow: scroll'
324
- }
325
- },
326
- {
327
- $el: 'pre',
328
- children: ['steps: ', '$stepKeys()'],
329
- attrs: {
330
- class: 't-text-xs',
331
- style: 'overflow: scroll'
332
- }
333
- }
334
- ]
335
- });
336
-
337
- const schema = [
338
- formAnchor(),
339
- {
340
- $cmp: 'FormKit',
341
- props: formProps({
342
- formId: 'mechanics',
343
- popUnderMap: {
344
- 'properties.Mechanics_CrossSells': {
345
- // 'Auto and Car Accidents': '/legal?Type_Of_Legal_Problem=Auto+and+Car+Accidents&hl=You+May+Deserve+Compensation',
346
- 'Auto Insurance': RedirectUrl("answers-now.com", 'Insurance', "Auto Insurance"),
347
- }
348
- },
349
- redirectMap: {
350
- '*': RedirectUrlComments('answers-now.com', 'AutoRepair', 'Mechanics')
351
- },
352
- formClass: '!t-max-w-[36rem]'
353
- }),
354
- children: [
355
- headline({
356
- children: '$urlParam("hl", "Book Top-rated Mechanics")',
357
- if: '$activeStep === $firstStep()'
358
- }),
359
- subHeadline({
360
- children: '$urlParam("shl", "Certified Shops, Instant Quotes Online!")',
361
- if: '$activeStep === $firstStep()'
362
- }),
363
- ...hiddenInputsMechanics,
364
- {
365
- $el: 'div',
366
- attrs: {
367
- class: 'form-body'
368
- },
369
- children: [
370
- commentsMechanics({
371
- label: 'Please briefly describe your issue:',
372
- placeholder: 'Example: "I\'m having transmission trouble", or "My brakes need to be replaced"',
373
- nextOnEnter: false
374
- }),
375
- formNavigationOnlySubmit({
376
- submitLabel: 'Start'
377
- }),
378
- formDetails()
379
- ]
380
- }
381
- ]
382
- }
383
- ];
384
-
385
- export { schema as default };
@@ -1 +0,0 @@
1
- var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,r){return"https://listings."+e+"/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}const r={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 n=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],s=(t,r)=>(t=>(t.name&&!t.id&&(t.id=t.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:r?r+":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"'},t)),i=()=>{return(t={id:"Mechanics_CrossSells",name:"Mechanics_CrossSells",label:"Click all that apply (optional):",fieldsetClass:"$reset",wrapperClass:"t-mb-2",optionsClass:"t-pt-3",legendClass:"",validation:null,options:{"Auto Insurance":"I'd like to save on my car insurance"}}).name&&!t.id&&(t.id=t.name),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t);var t},l="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",a="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",o=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,c=e=>{if(o(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(o(r))return r;const n=c(r);if(n)return n}return null},d=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const u=[e({$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}},h),{$cmp:"FormKit",props:function(t){const n=e(r,t);return n.formId&&!n.name&&(n.name=n.formId),n}({formId:"mechanics",popUnderMap:{"properties.Mechanics_CrossSells":{"Auto Insurance":t("answers-now.com","Insurance","Auto Insurance")}},redirectMap:{"*":(p="answers-now.com",m="AutoRepair",f="Mechanics",t(p,m,f)+"&Comments=${properties.Comments}")},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-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")}}}(t),t)}({children:'$urlParam("hl", "Book Top-rated Mechanics")',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.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")}}}(t),t)}({children:'$urlParam("shl", "Certified Shops, Instant Quotes Online!")',if:"$activeStep === $firstStep()"}),...n,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,n=!0,s=!1,i,o){if(void 0===n&&(n=!0),r&&r.length&&(n||s)){const e=c(r[r.length-1]);e&&!0===n&&(e.onKeypress=l),e&&!0===s&&(e.onInput=a)}return e(d(t,i),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,children:r}]})}("commentsMechanics",[s({label:t.label||"Please briefly describe your legal issue in a few words:",placeholder:t.placeholder||'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',inputClass:"!t-h-20"}),i()],t.nextOnEnter)}({label:"Please briefly describe your issue:",placeholder:'Example: "I\'m having transmission trouble", or "My brakes need to be replaced"',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"}]}}({submitLabel:"Start"}),{$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 p,m,f,h;return u}();
@@ -1 +0,0 @@
1
- [{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-30px","left":0}}}],"attrs":{"class":"t-relative"}},{"$cmp":"FormKit","props":{"type":"form","id":"form","config":{"validationVisibility":"submit"},"onSubmit":"$submit($submitUrl, $prepData, $handleRedirect, \"text/plain; charset=UTF-8\")","plugins":"$plugins","actions":false,"anchorElement":"form-anchor","useLocalStorage":true,"prepop":{"fromURL":true},"errorCodes":{"403":{"message":"An Error Occurred","abort":false},"409":{"abort":false},"429":"An Error Occurred","504":{"message":"An Error Occurred","abort":false}},"formClass":"!t-max-w-[36rem]","formId":"mechanics","popUnderMap":{"properties.Mechanics_CrossSells":{"Auto Insurance":"https://listings.answers-now.com/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=Insurance&category=Auto%20Insurance"}},"redirectMap":{"*":"https://listings.answers-now.com/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=AutoRepair&category=Mechanics&Comments=${properties.Comments}"},"name":"mechanics"},"children":[{"$el":"h1","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "},"children":"$urlParam(\"hl\", \"Book Top-rated Mechanics\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "},"children":"$urlParam(\"shl\", \"Certified Shops, Instant Quotes Online!\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"AutoRepair"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"commentsMechanics\")","attrs":{"hidden":"$activeStep !== \"commentsMechanics\"","key":"commentsMechanics"},"children":[{"$formkit":"group","id":"commentsMechanics","name":"commentsMechanics","children":[{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"Comments","label":"Please briefly describe your issue:","placeholder":"Example: \"I'm having transmission trouble\", or \"My brakes need to be replaced\"","inputClass":"!t-h-20","id":"Comments"},{"$formkit":"radio","validation":null,"validationMessages":{"required":"Field is required"},"optionsClass":"t-pt-3","legendClass":"","id":"Mechanics_CrossSells","name":"Mechanics_CrossSells","label":"Click all that apply (optional):","fieldsetClass":"$reset","wrapperClass":"t-mb-2","options":{"Auto Insurance":"I'd like to save on my car insurance"}}]}]},{"$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":"Start"}]},{"$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"}}]}]}]}]