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.
- package/dist/bhl-forms.es.js +5244 -4973
- package/dist/bhl-forms.iife.js +9 -9
- package/dist/bhl-forms.umd.js +9 -9
- package/package.json +2 -2
- package/dist/bhl-forms.modern.es.js +0 -16865
- package/dist/bhl-forms.modern.iife.js +0 -21
- package/dist/bhl-forms.modern.umd.js +0 -21
- package/dist/forms/accidentsAndInjuries.es.js +0 -1279
- package/dist/forms/accidentsAndInjuries.iife.js +0 -1
- package/dist/forms/accidentsAndInjuries.json +0 -1
- package/dist/forms/appraisals.es.js +0 -345
- package/dist/forms/appraisals.iife.js +0 -1
- package/dist/forms/appraisals.json +0 -1
- package/dist/forms/childAndFamily.es.js +0 -1678
- package/dist/forms/childAndFamily.iife.js +0 -1
- package/dist/forms/childAndFamily.json +0 -1
- package/dist/forms/childAndFamilySingle.es.js +0 -1809
- package/dist/forms/childAndFamilySingle.iife.js +0 -1
- package/dist/forms/childAndFamilySingle.json +0 -1
- package/dist/forms/civilLawsuit.es.js +0 -2149
- package/dist/forms/civilLawsuit.iife.js +0 -1
- package/dist/forms/civilLawsuit.json +0 -1
- package/dist/forms/coins.es.js +0 -345
- package/dist/forms/coins.iife.js +0 -1
- package/dist/forms/coins.json +0 -1
- package/dist/forms/contracts.es.js +0 -994
- package/dist/forms/contracts.iife.js +0 -1
- package/dist/forms/contracts.json +0 -1
- package/dist/forms/criminal.es.js +0 -3247
- package/dist/forms/criminal.iife.js +0 -1
- package/dist/forms/criminal.json +0 -1
- package/dist/forms/employmentAndWorkplace.es.js +0 -1380
- package/dist/forms/employmentAndWorkplace.iife.js +0 -1
- package/dist/forms/employmentAndWorkplace.json +0 -1
- package/dist/forms/generalLegal.es.js +0 -3386
- package/dist/forms/generalLegal.iife.js +0 -1
- package/dist/forms/generalLegal.json +0 -1
- package/dist/forms/generalLegalPopUnder.es.js +0 -3388
- package/dist/forms/generalLegalPopUnder.iife.js +0 -1
- package/dist/forms/generalLegalPopUnder.json +0 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +0 -3087
- package/dist/forms/generalLegalPopUnderTF.iife.js +0 -1
- package/dist/forms/generalLegalPopUnderTF.json +0 -1
- package/dist/forms/generalLegalSingle.es.js +0 -4305
- package/dist/forms/generalLegalSingle.iife.js +0 -1
- package/dist/forms/generalLegalSingle.json +0 -1
- package/dist/forms/generalLegalThankYou.es.js +0 -3067
- package/dist/forms/generalLegalThankYou.iife.js +0 -1
- package/dist/forms/generalLegalThankYou.json +0 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +0 -1030
- package/dist/forms/harassmentAndDiscrimination.iife.js +0 -1
- package/dist/forms/harassmentAndDiscrimination.json +0 -1
- package/dist/forms/malpractice.es.js +0 -1253
- package/dist/forms/malpractice.iife.js +0 -1
- package/dist/forms/malpractice.json +0 -1
- package/dist/forms/mechanics.es.js +0 -385
- package/dist/forms/mechanics.iife.js +0 -1
- package/dist/forms/mechanics.json +0 -1
- package/dist/forms/realEstate.es.js +0 -2950
- package/dist/forms/realEstate.iife.js +0 -1
- package/dist/forms/realEstate.json +0 -1
- package/dist/forms/repossession.es.js +0 -1261
- package/dist/forms/repossession.iife.js +0 -1
- package/dist/forms/repossession.json +0 -1
- package/dist/forms/ssdi.es.js +0 -1073
- package/dist/forms/ssdi.iife.js +0 -1
- package/dist/forms/ssdi.json +0 -1
- package/dist/forms/testForm.es.js +0 -729
- package/dist/forms/testForm.iife.js +0 -1
- package/dist/forms/testForm.json +0 -1
- package/dist/forms/testRedirects.es.js +0 -541
- package/dist/forms/testRedirects.iife.js +0 -1
- package/dist/forms/testRedirects.json +0 -1
- package/dist/forms/vets.es.js +0 -348
- package/dist/forms/vets.iife.js +0 -1
- package/dist/forms/vets.json +0 -1
- package/dist/forms/willsAndTrusts.es.js +0 -1214
- package/dist/forms/willsAndTrusts.iife.js +0 -1
- package/dist/forms/willsAndTrusts.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var accidentsAndInjuries=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)',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={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=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",if:'$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',label:"Select The Issue:",options:["Auto Accident","Workplace Injury","Dog Bite","Slip and Fall","Trucking Accident","Motorcycle Accident","Other Accidents or Injuries"]},t)),b=e=>u({name:e?e+":At_Fault":"At_Fault",label:"Were You at Fault?"}),_=e=>f({name:e?e+":Cause_Of_Injury":"Cause_Of_Injury",label:"Cause of Injury:",options:["Traumatic Physical Injury (Accident)","Repeated Trauma Injury","Mental Injury","Occupational Disease","Not Sure"]}),x=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"]}),v=(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)),w=e=>u({name:e?e+":Doctor_Treatment":"Doctor_Treatment",label:"Have You Recently Been Treated by a Doctor, Hospital or Clinic?"}),k=e=>u({name:e?e+":Have_Attorney":"Have_Attorney",label:"Already Working with An Attorney?"}),P=e=>g({name:e?e+":Incident_Date":"Incident_Date",label:"Date of Incident:"}),I=e=>{return(t={name:e?e+":Primary_Injury":"Primary_Injury",label:"Primary Injury:",options:["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Other (describe on next page)"]}).legendClass="legend-left-flex md:t-max-w-[40%] required",t.fieldsetClass="$reset side-by-side-flex",t.optionsClass="md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125",t.innerClass="t-flex t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",p(t);var t},$=e=>u({name:e?e+":Police_Report_Filed":"Police_Report_Filed",label:"Was a Police Report Filed?"}),C=(t,a)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},a),L=(e,t)=>C("PersonalInjuryQuestions",{if:e||'$get(Type_Of_Legal_Problem).value == "Personal Injury"',children:[k(t),P(t),x(t),b(t),I(t),w(t)]}),T=(e,t)=>C("WorkersCompensationQuestions",{if:e||'$get(Type_Of_Legal_Problem).value == "Workers Compensation"',children:[k(t),P(t),x(t),I(t),_(t),w(t)]}),O="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",E="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",S=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,A=e=>{if(S(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(S(a))return a;const r=A(a);if(r)return r}return null};function D(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 F(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 j(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 q(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 B(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 M="(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 W=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function N(t,a,r=!0,n=!1,i=void 0,o=void 0){if(void 0===r&&(r=!0),a&&a.length&&(r||n)){const e=A(a[a.length-1]);e&&!0===r&&(e.onKeypress=O),e&&!0===n&&(e.onInput=E)}return e(W(t,i),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,children:a}]})}const Y=[{type:"meta",data:e(i,{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,H),{$cmp:"FormKit",props:function(t){const a=e(n,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"accidentsAndInjuries",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 Accident & Injury Help Now")',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 and Free!")',if:"$activeStep === $firstStep()"}),...d,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return N("accidentsAndInjuriesTOLPAndZip",[{$formkit:"hidden",name:"Type_Of_Legal_Problem",id:"Type_Of_Legal_Problem",value:"Auto and Car Accidents"},h({if:"true"}),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 N("TOLPQuestions",[D(e),C("AutoAndCarAccidentsQuestions",{if:t||'$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',children:[k(a),P(a),b(a),I(a),w(a),$(a)]}),L(),T()],e.nextOnEnter);var t,a}(),function(e={}){return N("commentsWithBankruptcy",[F(e),v({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:[v({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}),function(e={}){return N("firstAndLast",[j(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 N("contactInfo",[q(e),B(e),{$el:"script",if:"$activeStep === $lastStep()",children:M},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 H;return Y}();
|
|
@@ -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":"accidentsAndInjuries","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":"accidentsAndInjuries"},"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 Accident & Injury Help Now\")","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 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(\"accidentsAndInjuriesTOLPAndZip\")","attrs":{"hidden":"$activeStep !== \"accidentsAndInjuriesTOLPAndZip\"","key":"accidentsAndInjuriesTOLPAndZip"},"children":[{"$formkit":"group","id":"accidentsAndInjuriesTOLPAndZip","name":"accidentsAndInjuriesTOLPAndZip","children":[{"$formkit":"hidden","name":"Type_Of_Legal_Problem","id":"Type_Of_Legal_Problem","value":"Auto and Car Accidents"},{"$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","if":"true","label":"Select The Issue:","options":["Auto Accident","Workplace Injury","Dog Bite","Slip and Fall","Trucking Accident","Motorcycle Accident","Other Accidents or Injuries"],"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":"AutoAndCarAccidentsQuestions","id":"AutoAndCarAccidentsQuestions","name":"AutoAndCarAccidentsQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Auto and Car Accidents\"","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":"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":"At_Fault","label":"Were You at Fault?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"At_Fault"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125","legendClass":"legend-left-flex md:t-max-w-[40%] required","name":"Primary_Injury","label":"Primary Injury:","options":["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Other (describe on next page)"],"fieldsetClass":"$reset side-by-side-flex","innerClass":"t-flex t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Primary_Injury"},{"$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":"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":"Police_Report_Filed","label":"Was a Police Report Filed?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"Police_Report_Filed"}]},{"$cmp":"FormKit","props":{"type":"group","key":"PersonalInjuryQuestions","id":"PersonalInjuryQuestions","name":"PersonalInjuryQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Personal Injury\"","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":"At_Fault","label":"Were You at Fault?","options":["Yes","No"],"fieldsetClass":"$reset side-by-side t-items-center","innerClass":"t-flex t-items-center","optionClass":"t-pr-1","id":"At_Fault"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125","legendClass":"legend-left-flex md:t-max-w-[40%] required","name":"Primary_Injury","label":"Primary Injury:","options":["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Other (describe on next page)"],"fieldsetClass":"$reset side-by-side-flex","innerClass":"t-flex t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Primary_Injury"},{"$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"}]},{"$cmp":"FormKit","props":{"type":"group","key":"WorkersCompensationQuestions","id":"WorkersCompensationQuestions","name":"WorkersCompensationQuestions"},"if":"$get(Type_Of_Legal_Problem).value == \"Workers Compensation\"","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":"md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125","legendClass":"legend-left-flex md:t-max-w-[40%] required","name":"Primary_Injury","label":"Primary Injury:","options":["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Other (describe on next page)"],"fieldsetClass":"$reset side-by-side-flex","innerClass":"t-flex t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","id":"Primary_Injury"},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","name":"Cause_Of_Injury","label":"Cause of Injury:","options":["Traumatic Physical Injury (Accident)","Repeated Trauma Injury","Mental Injury","Occupational Disease","Not Sure"],"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":"Cause_Of_Injury"},{"$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","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":"$getKey($meta, \"commentsPlaceholders.\" + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)","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,345 +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 hiddenInputsAppraisals = [
|
|
123
|
-
{
|
|
124
|
-
$formkit: 'hidden',
|
|
125
|
-
name: "vertical",
|
|
126
|
-
value: "Appraisals"
|
|
127
|
-
},
|
|
128
|
-
...hiddenInputsBase
|
|
129
|
-
];
|
|
130
|
-
|
|
131
|
-
const textArea = (updates) => {
|
|
132
|
-
if (updates.name && !updates.id) {
|
|
133
|
-
updates.id = updates.name;
|
|
134
|
-
}
|
|
135
|
-
return merge({
|
|
136
|
-
$formkit: 'textarea',
|
|
137
|
-
rows: 5,
|
|
138
|
-
maxlength: 500,
|
|
139
|
-
validation: 'required',
|
|
140
|
-
validationMessages: {
|
|
141
|
-
required: 'Field is required'
|
|
142
|
-
},
|
|
143
|
-
innerClass: 't-max-w-xl',
|
|
144
|
-
labelClass: 'required'
|
|
145
|
-
}, updates)
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const comments$1 = (updates, scope) => textArea(
|
|
149
|
-
merge({
|
|
150
|
-
name: scope ? scope + ':' + 'Comments' : 'Comments',
|
|
151
|
-
label: 'Please briefly describe your situation in a few words:',
|
|
152
|
-
placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
|
|
153
|
-
}, updates)
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
157
|
-
const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
|
|
158
|
-
|
|
159
|
-
const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
|
|
160
|
-
|
|
161
|
-
const findLastInput = (n) => {
|
|
162
|
-
if (isInput(n)) {
|
|
163
|
-
return n
|
|
164
|
-
}
|
|
165
|
-
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
166
|
-
if (typeof n.children === 'string') {
|
|
167
|
-
continue
|
|
168
|
-
}
|
|
169
|
-
const child = n.children[i];
|
|
170
|
-
if (isInput(child)) {
|
|
171
|
-
return child
|
|
172
|
-
}
|
|
173
|
-
const res = findLastInput(child);
|
|
174
|
-
if (res) {
|
|
175
|
-
return res
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return null
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
const stepDefaults = (step, stepKey) => ({
|
|
182
|
-
$el: 'section',
|
|
183
|
-
if: '$stepEnabled("' + step + '")',
|
|
184
|
-
attrs: {
|
|
185
|
-
hidden: '$activeStep !== "' + step + '"',
|
|
186
|
-
key: stepKey ? stepKey : step
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined) {
|
|
191
|
-
if (typeof nextOnEnter === 'undefined') {
|
|
192
|
-
nextOnEnter = true;
|
|
193
|
-
}
|
|
194
|
-
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
195
|
-
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
196
|
-
if (lastInput && nextOnEnter === true) {
|
|
197
|
-
lastInput.onKeypress = NEXT_ON_ENTER;
|
|
198
|
-
}
|
|
199
|
-
if (lastInput && nextOnInput === true) {
|
|
200
|
-
lastInput.onInput = NEXT_ON_INPUT;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return merge(
|
|
205
|
-
stepDefaults(name, stepKey),
|
|
206
|
-
{
|
|
207
|
-
children: [
|
|
208
|
-
{
|
|
209
|
-
$formkit: 'group',
|
|
210
|
-
id: name,
|
|
211
|
-
name: name,
|
|
212
|
-
nextStepMap: nextStepMap,
|
|
213
|
-
children: inputs
|
|
214
|
-
}
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
)
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
function comments(updates = {}) {
|
|
221
|
-
return step(
|
|
222
|
-
'comments',
|
|
223
|
-
[
|
|
224
|
-
comments$1({
|
|
225
|
-
label: updates.label || DEFAULT_COMMENTS_LABEL,
|
|
226
|
-
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC
|
|
227
|
-
})
|
|
228
|
-
],
|
|
229
|
-
updates.nextOnEnter
|
|
230
|
-
)
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function formNavigationOnlySubmit(updates = {}) {
|
|
234
|
-
return {
|
|
235
|
-
$el: 'div',
|
|
236
|
-
attrs: {
|
|
237
|
-
class: 'step-nav'
|
|
238
|
-
},
|
|
239
|
-
children: [
|
|
240
|
-
{
|
|
241
|
-
$formkit: 'button',
|
|
242
|
-
name: 'hidden_button',
|
|
243
|
-
children: 'Hidden',
|
|
244
|
-
style: {
|
|
245
|
-
if: '$activeStep === $firstStep()',
|
|
246
|
-
then: 'visibility: hidden;'
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
$formkit: 'submit',
|
|
251
|
-
name: 'submit_button',
|
|
252
|
-
label: updates.submitLabel || 'Chat Now'
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
const formDetails = () => ({
|
|
259
|
-
$el: 'pre',
|
|
260
|
-
if: '$urlParam("fdbg", "") == 1',
|
|
261
|
-
children: [
|
|
262
|
-
{
|
|
263
|
-
$el: 'pre',
|
|
264
|
-
children: '$stringify( $get(form).value )',
|
|
265
|
-
attrs: {
|
|
266
|
-
class: 't-text-xs',
|
|
267
|
-
style: 'overflow: scroll'
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
$el: 'pre',
|
|
272
|
-
children: ['activeStep: ', '$activeStep'],
|
|
273
|
-
attrs: {
|
|
274
|
-
class: 't-text-xs',
|
|
275
|
-
style: 'overflow: scroll'
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
$el: 'pre',
|
|
280
|
-
children: ['stepHistory: ', '$stepHistory'],
|
|
281
|
-
attrs: {
|
|
282
|
-
class: 't-text-xs',
|
|
283
|
-
style: 'overflow: scroll'
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
$el: 'pre',
|
|
288
|
-
children: ['stepQueue: ', '$stepQueue'],
|
|
289
|
-
attrs: {
|
|
290
|
-
class: 't-text-xs',
|
|
291
|
-
style: 'overflow: scroll'
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
$el: 'pre',
|
|
296
|
-
children: ['steps: ', '$stepKeys()'],
|
|
297
|
-
attrs: {
|
|
298
|
-
class: 't-text-xs',
|
|
299
|
-
style: 'overflow: scroll'
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
const schema = [
|
|
306
|
-
formAnchor(),
|
|
307
|
-
{
|
|
308
|
-
$cmp: 'FormKit',
|
|
309
|
-
props: formProps({
|
|
310
|
-
formId: 'appraisals',
|
|
311
|
-
redirectMap: {
|
|
312
|
-
'*': RedirectUrlComments('answers-now.com', 'Appraisals', 'Appraisals')
|
|
313
|
-
},
|
|
314
|
-
formClass: '!t-max-w-[36rem]'
|
|
315
|
-
}),
|
|
316
|
-
children: [
|
|
317
|
-
headline({
|
|
318
|
-
children: '$urlParam("hl", "Start Here for An Appraisal")',
|
|
319
|
-
if: '$activeStep === $firstStep()'
|
|
320
|
-
}),
|
|
321
|
-
subHeadline({
|
|
322
|
-
children: '$urlParam("shl", "Get a Valuation Within Minutes!")',
|
|
323
|
-
if: '$activeStep === $firstStep()'
|
|
324
|
-
}),
|
|
325
|
-
...hiddenInputsAppraisals,
|
|
326
|
-
{
|
|
327
|
-
$el: 'div',
|
|
328
|
-
attrs: {
|
|
329
|
-
class: 'form-body'
|
|
330
|
-
},
|
|
331
|
-
children: [
|
|
332
|
-
comments({
|
|
333
|
-
label: 'Please describe your item in a few words:',
|
|
334
|
-
placeholder: 'Example: "I have a vintage painting, old coins, and a fine china set I would like appraised"',
|
|
335
|
-
nextOnEnter: false
|
|
336
|
-
}),
|
|
337
|
-
formNavigationOnlySubmit(),
|
|
338
|
-
formDetails()
|
|
339
|
-
]
|
|
340
|
-
}
|
|
341
|
-
]
|
|
342
|
-
}
|
|
343
|
-
];
|
|
344
|
-
|
|
345
|
-
export { schema as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var appraisals=function(){"use strict";function e(){return Object.assign({},...arguments)}const t={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};const r=[{$formkit:"hidden",name:"vertical",value:"Appraisals"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],n=(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="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",s="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",l=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,a=e=>{if(l(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(l(r))return r;const n=a(r);if(n)return n}return null},o=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const c=[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(r){const n=e(t,r);return n.formId&&!n.name&&(n.name=n.formId),n}({formId:"appraisals",redirectMap:{"*":(d="answers-now.com",p="Appraisals",m="Appraisals",function(e,t,r){return"https://listings."+e+"/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}(d,p,m)+"&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", "Start Here for An Appraisal")',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", "Get a Valuation Within Minutes!")',if:"$activeStep === $firstStep()"}),...r,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,n=!0,l=!1,c,d){if(void 0===n&&(n=!0),r&&r.length&&(n||l)){const e=a(r[r.length-1]);e&&!0===n&&(e.onKeypress=i),e&&!0===l&&(e.onInput=s)}return e(o(t,c),{children:[{$formkit:"group",id:t,name:t,nextStepMap:d,children:r}]})}("comments",[n({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)'})],t.nextOnEnter)}({label:"Please describe your item in a few words:",placeholder:'Example: "I have a vintage painting, old coins, and a fine china set I would like appraised"',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 d,p,m,u;return c}();
|
|
@@ -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":"appraisals","redirectMap":{"*":"https://listings.answers-now.com/api/v1/redirect?zone_id=4&sub_id=${properties.vid}&vertical=Appraisals&category=Appraisals&Comments=${properties.Comments}"},"name":"appraisals"},"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\", \"Start Here for An Appraisal\")","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\", \"Get a Valuation Within Minutes!\")","if":"$activeStep === $firstStep()"},{"$formkit":"hidden","name":"vertical","value":"Appraisals"},{"$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(\"comments\")","attrs":{"hidden":"$activeStep !== \"comments\"","key":"comments"},"children":[{"$formkit":"group","id":"comments","name":"comments","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 describe your item in a few words:","placeholder":"Example: \"I have a vintage painting, old coins, and a fine china set I would like appraised\"","id":"Comments"}]}]},{"$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":"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"}}]}]}]}]
|