bhl-forms 0.6.9 → 0.6.11

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 (76) hide show
  1. package/dist/bhl-forms.iife.js +1 -1
  2. package/dist/bhl-forms.modern.iife.js +7 -7
  3. package/dist/bhl-forms.modern.umd.js +1 -1
  4. package/dist/bhl-forms.umd.js +1 -1
  5. package/dist/forms/accidentsAndInjuries.es.js +47 -48
  6. package/dist/forms/accidentsAndInjuries.iife.js +1 -1
  7. package/dist/forms/accidentsAndInjuries.json +1 -1
  8. package/dist/forms/business.es.js +38 -36
  9. package/dist/forms/business.iife.js +1 -1
  10. package/dist/forms/business.json +1 -1
  11. package/dist/forms/childAndFamily.es.js +29 -28
  12. package/dist/forms/childAndFamily.iife.js +1 -1
  13. package/dist/forms/childAndFamilySingle.es.js +39 -37
  14. package/dist/forms/childAndFamilySingle.iife.js +1 -1
  15. package/dist/forms/childAndFamilySingle.json +1 -1
  16. package/dist/forms/civilLawsuit.es.js +63 -63
  17. package/dist/forms/civilLawsuit.iife.js +1 -1
  18. package/dist/forms/civilLawsuit.json +1 -1
  19. package/dist/forms/contracts.es.js +29 -28
  20. package/dist/forms/contracts.iife.js +1 -1
  21. package/dist/forms/criminal.es.js +57 -57
  22. package/dist/forms/criminal.iife.js +1 -1
  23. package/dist/forms/criminal.json +1 -1
  24. package/dist/forms/divorce.es.js +2222 -0
  25. package/dist/forms/divorce.iife.js +1 -0
  26. package/dist/forms/divorce.json +1 -0
  27. package/dist/forms/employmentAndWorkplace.es.js +62 -62
  28. package/dist/forms/employmentAndWorkplace.iife.js +1 -1
  29. package/dist/forms/employmentAndWorkplace.json +1 -1
  30. package/dist/forms/generalLegal.es.js +47 -48
  31. package/dist/forms/generalLegal.iife.js +1 -1
  32. package/dist/forms/generalLegal.json +1 -1
  33. package/dist/forms/generalLegalPopUnder.es.js +47 -48
  34. package/dist/forms/generalLegalPopUnder.iife.js +1 -1
  35. package/dist/forms/generalLegalPopUnder.json +1 -1
  36. package/dist/forms/generalLegalPopUnderSingle.es.js +72 -63
  37. package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
  38. package/dist/forms/generalLegalPopUnderSingle.json +1 -1
  39. package/dist/forms/generalLegalSingle.es.js +72 -63
  40. package/dist/forms/generalLegalSingle.iife.js +1 -1
  41. package/dist/forms/generalLegalSingle.json +1 -1
  42. package/dist/forms/generalLegalThankYou.es.js +37 -40
  43. package/dist/forms/generalLegalThankYou.iife.js +1 -1
  44. package/dist/forms/generalLegalThankYou.json +1 -1
  45. package/dist/forms/harassmentAndDiscrimination.es.js +29 -28
  46. package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
  47. package/dist/forms/landlordTenant.es.js +1911 -0
  48. package/dist/forms/landlordTenant.iife.js +1 -0
  49. package/dist/forms/landlordTenant.json +1 -0
  50. package/dist/forms/malpractice.es.js +47 -48
  51. package/dist/forms/malpractice.iife.js +1 -1
  52. package/dist/forms/malpractice.json +1 -1
  53. package/dist/forms/mechanics.es.js +824 -33
  54. package/dist/forms/mechanics.iife.js +1 -1
  55. package/dist/forms/mechanics.json +1 -1
  56. package/dist/forms/patentsAndIP.es.js +59 -57
  57. package/dist/forms/patentsAndIP.iife.js +1 -1
  58. package/dist/forms/patentsAndIP.json +1 -1
  59. package/dist/forms/realEstate.es.js +47 -48
  60. package/dist/forms/realEstate.iife.js +1 -1
  61. package/dist/forms/realEstate.json +1 -1
  62. package/dist/forms/repossession.es.js +47 -48
  63. package/dist/forms/repossession.iife.js +1 -1
  64. package/dist/forms/repossession.json +1 -1
  65. package/dist/forms/ssdi.es.js +25 -25
  66. package/dist/forms/ssdi.iife.js +1 -1
  67. package/dist/forms/ssdi.json +1 -1
  68. package/dist/forms/testForm.es.js +18 -19
  69. package/dist/forms/testForm.iife.js +1 -1
  70. package/dist/forms/testRedirects.es.js +8 -2
  71. package/dist/forms/testRedirects.iife.js +1 -1
  72. package/dist/forms/testRedirects.json +1 -1
  73. package/dist/forms/willsAndTrusts.es.js +29 -28
  74. package/dist/forms/willsAndTrusts.iife.js +1 -1
  75. package/dist/main.css +1 -1
  76. package/package.json +1 -1
@@ -1 +1 @@
1
- var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,r,s=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+s+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(r)}const r=(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)),s=()=>{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},n="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",i="$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 s=a(r);if(s)return s}return null},o=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});const c={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 d=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],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 r=e(c,t);return r.formId&&!r.name&&(r.name=r.formId),r}({formId:"mechanics",popUnderMap:{"properties.Mechanics_CrossSells":{"Auto Insurance":t("answers-now.com","Insurance","Auto Insurance")}},redirectMap:{"*":(m="answers-now.com",p="AutoRepair",f="Mechanics",t(m,p,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", "Have Questions for a Mechanic?")',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 Answers Within Minutes!")',if:"$activeStep === $firstStep()"}),...d,{$el:"div",attrs:{class:"form-body"},children:[function(t={}){return function(t,r,s=!0,l=!1,c,d,u){if(void 0===s&&(s=!0),r&&r.length&&(s||l)){const e=a(r[r.length-1]);e&&!0===s&&(e.onKeypress=n),e&&!0===l&&(e.onInput=i)}return e(o(t,c),{children:[{$formkit:"group",id:t,name:t,nextStepMap:d,autoFocus:u,children:r}]})}("commentsMechanics",[r({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"}),s()],t.nextOnEnter)}({label:"Please briefly describe your issue:",placeholder:'Example: "I\'m having transmission trouble", or "My car won\'t start"',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:"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 m,p,f,h;return u}();
1
+ var mechanics=function(){"use strict";function e(){return Object.assign({},...arguments)}function t(e,t,a,n=4){return"https://listings."+e+"/api/v1/redirect?zone_id="+n+"&sub_id=${properties.vid}&vertical="+encodeURIComponent(t)+"&category="+encodeURIComponent(a)}const a='$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)',n="Please briefly describe your legal issue in a few words:",i='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',r='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',o=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)),s=e=>(e.options=["Yes","No"],e.optionsClass="t-flex t-justify-center t-my-3",(e=>(e.legendClass="legend-left",e.fieldsetClass="$reset t-flex t-justify-center t-flex-col-reverse t-items-center",void 0===e.optionsClass&&(e.optionsClass="t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3"),e.optionClass="radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5",e.wrapperClass="$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]",e.labelClass="t-font-semibold t-text-[#1e448f] t-w-[100%]",e.decoratorIcon=!1,e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",o(e)))(e)),l=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),d=e=>(e.wrapperClass="side-by-side t-items-center",l(e)),c=t=>(t.wrapperClass="t-flex t-justify-center",t.inputClass="t-text-center",t.messagesClass="t-flex t-justify-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)),m=e=>s({name:e?e+":Auto_Damage_From_Accident":"Auto_Damage_From_Accident"}),p=e=>s({name:e?e+":Would_Like_MVA_Consultation":"Would_Like_MVA_Consultation",help:"Note: we'll still connect you for a mechanic either way."}),u=(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)),f=e=>d({$formkit:"email",name:e?e+":Email":"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"}}),h=e=>d({$formkit:"text",label:"First Name:",placeholder:"First",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"}}),y=e=>d({$formkit:"text",label:"Last Name:",placeholder:"Last",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"}}),g=e=>d({$formkit:"tel",name:e?e+":Primary_Phone":"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]"}),x=e=>{return(t={name:e?e+":Primary_Injury":"Primary_Injury",options:["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Not Sure or Other"]}).legendClass="required t-w-[100%] t-text-center",void 0===t.fieldsetClass&&(t.fieldsetClass="$reset t-flex t-justify-center"),t.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",t.innerClass="t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",o(t);var t},b=e=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",name:e?e+":TCPA_Opt_In":"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"}}),v="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",w="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",k=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,C=e=>{if(k(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(k(a))return a;const n=C(a);if(n)return n}return null},$={$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 I(t){return e($,t)}function _(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-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function E(e){return{$el:"h5",children:e.subheadline||"",attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.subheadlineClass||"")}}}function S(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 A(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 P(e){return{$el:"h3",children:e.headline||i,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 M(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 F="(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 L=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function j(t,a,n=!0,i=!1,r=void 0,o=void 0,s=void 0){if(void 0===n&&(n=!0),a&&a.length&&(n||i)){const e=C(a[a.length-1]);e&&!0===n&&(e.onKeypress=v),e&&!0===i&&(e.onInput=w)}return e(L(t,r),{children:[{$formkit:"group",id:t,name:t,nextStepMap:o,autoFocus:s,children:a}]})}function D(e,t,a,n={}){return j(e,[_({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n.nextOnEnter,void 0===n.nextOnInput||n.nextOnInput,n.stepKey,n.nextStepMap)}const q={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]"};function T(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}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 Y=[{$formkit:"hidden",name:"vertical",value:"AutoRepair"},{$formkit:"hidden",name:"Category",id:"Category",value:"Mechanics"},{$formkit:"hidden",name:"gclid",value:null},{$formkit:"hidden",name:"campaignid",value:null},{$formkit:"hidden",name:"s",value:null}],W={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"'},H={},R={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."},U=function(t=null){let n=W,i=H,r=R;return t&&(n=T(W,t),i=T(H,t),r=T(R,t)),{type:"meta",data:e(N,{defaultCommentsPlaceholder:a,commentsPlaceholders:n,defaultFinalHeadline:"Submit Your Case",finalHeadlines:i,defaultFinalSubHeadline:"You may benefit from speaking with a legal professional. Please verify your contact information.",finalSubHeadlines:r})}}(["Auto and Car Accidents"]),B="CrossSell:Auto_and_Car_Accidents";U.data.dynamicSchema=[function(e={}){return D("incidentDate",(e=>c({name:e?e+":Incident_Date":"Incident_Date"}))(e.scope),"When did the incident occur?",e)}({scope:B,nextOnInput:!1}),function(e={}){return D("atFault",(e=>s({name:e?e+":At_Fault":"At_Fault"}))(e.scope),"Were you at fault?",e)}({scope:B}),function(e={}){return D("primaryInjury",x(e.scope),"What was the primary injury?",e)}({scope:B}),function(e={}){return D("doctorTreatment",(e=>s({name:e?e+":Doctor_Treatment":"Doctor_Treatment"}))(e.scope),"Have you seen a doctor about this?",e)}({scope:B}),function(e={}){return D("policeReportFiled",(e=>s({name:e?e+":Police_Report_Filed":"Police_Report_Filed"}))(e.scope),"Was a police report filed?",e)}({scope:B}),function(e={}){return D("haveAttorney",(e=>s({name:e?e+":Have_Attorney":"Have_Attorney"}))(e.scope),"Already working with an attorney?",e)}({scope:B}),function(e={}){return j("comments",[S(e),u({label:void 0===e.label?n:e.label,placeholder:e.placeholder||a,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass},e.scope)],!1)}({scope:B,label:null,placeholder:'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',headline:"Please briefly describe the accident:",headlineClass:"!t-text-dark"}),function(e={}){return D("zipcode",((e={},t)=>l({placeholder:"#####",help:e.help??"We try to match you with local legal help",name:t?t+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},wrapperClass:"t-flex t-justify-center",messagesClass:"t-flex t-justify-center",inputClass:"t-text-center",helpClass:"t-mt-2.5 !t-text-sm t-text-center"}))(e,e.scope),"Please verify your Zip Code",e)}({scope:B,help:"We try to match you with local help"}),function(e={},t){return j("firstAndLast",[A({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),E({subheadline:e.subheadline??"Note: we never share info without consent",subheadlineClass:"!t-text-sm !t-text-gray-500"}),h(t),y(t)],e.nextOnEnter)}({scope:B,headlineClass:"!t-text-dark"}),function(e={}){return j("contactInfo",[P(e),M(e),{$el:"script",if:"$activeStep === $lastStep()",children:F},f(e.scope),g(e.scope),b(e.scope),I()],!1)}({scope:B,headline:"Connect Now - Final Step",subheadline:"After submitting you'll be connected for your mechanic chat and get contacted for a free accident consultation."})];const K=[U,e(O,G),{$cmp:"FormKit",props:function(t){const a=e(q,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"mechanics",popUnderMap:{"properties.Mechanics_CrossSells":{"Auto Insurance":t("answers-now.com","Insurance","Auto Insurance")}},redirectMap:{"*":(V="answers-now.com",z="AutoRepair",Z="Mechanics",t(V,z,Z)+"&Comments=${properties.Comments}")},formClass:"!t-max-w-[38rem]"}),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", "Chat With a Mechanic Online")',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", "Is the issue due to an auto accident?")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-text-dark"}),...Y,{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:TCPA_Language",value:"$meta.tcpaLanguage"},{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return j("autoDamageFromAccident",[m(e.scope)],e.nextOnEnter,e.nextOnInput,e.stepKey,e.nextStepMap)}({nextOnInput:!1,nextStepMap:{Auto_Damage_From_Accident:{Yes:["wouldLikeMVAConsultation","commentsMechanics"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}),function(e={}){return j("wouldLikeMVAConsultation",[_({headline:e.headline??"Would you like a free accident consultation?"}),{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",id:"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem",value:"Auto and Car Accidents"},{$formkit:"hidden",name:"CrossSell:Auto_and_Car_Accidents:vertical",value:"Legal"},p()],e.nextOnEnter,e.nextOnInput,e.stepKey,e.nextStepMap)}({nextOnInput:!0,nextStepMap:{Would_Like_MVA_Consultation:{Yes:["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled","haveAttorney","comments","zipcode","firstAndLast","contactInfo"],No:["commentsMechanics"]},"*":["commentsMechanics"]}}),function(e="Type_Of_Legal_Problem"){return{$cmp:"FormKitSchema",if:"$get("+e+").value",props:{schema:"$meta.dynamicSchema",data:"$buildData($meta)"}}}("Auto_Damage_From_Accident"),function(e={}){return j("commentsMechanics",[S(e),u({label:void 0===e.label?n:e.label,placeholder:e.placeholder||a,inputClass:"!t-h-20"}),o({id:"Mechanics_CrossSells",name:"Mechanics_CrossSells",fieldsetClass:"$reset",wrapperClass:"t-mb-2",optionsClass:"t-pt-3",legendClass:"",validation:null,options:{"Auto Insurance":"I'd like to save on my auto insurance (optional)"}})],e.nextOnEnter)}({headline:"Last Step: Describe your vehicle issue",headlineClass:"!t-text-dark",label:null,placeholder:'Example: "I\'m having transmission trouble", or "My car won\'t start"',nextOnEnter:!1}),((e={})=>({$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:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"}}]}))({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 V,z,Z,G;return K}();
@@ -1 +1 @@
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\", \"Have Questions for a Mechanic?\")","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 Answers Within Minutes!\")","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 car won't start\"","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":"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"}}]}]}]}]
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":{"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\""},"defaultFinalHeadline":"Submit Your Case","finalHeadlines":{},"defaultFinalSubHeadline":"You may benefit from speaking with a legal professional. Please verify your contact information.","finalSubHeadlines":{"Auto and Car Accidents":"You may benefit from speaking with an accident professional. Please verify your contact information."},"dynamicSchema":[{"$el":"section","if":"$stepEnabled(\"incidentDate\")","attrs":{"hidden":"$activeStep !== \"incidentDate\"","key":"incidentDate"},"children":[{"$formkit":"group","id":"incidentDate","name":"incidentDate","children":[{"$el":"h3","children":"When did the incident occur?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$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":"CrossSell:Auto_and_Car_Accidents:Incident_Date","wrapperClass":"t-flex t-justify-center","inputClass":"t-text-center","messagesClass":"t-flex t-justify-center","id":"CrossSell:Auto_and_Car_Accidents:Incident_Date","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"atFault\")","attrs":{"hidden":"$activeStep !== \"atFault\"","key":"atFault"},"children":[{"$formkit":"group","id":"atFault","name":"atFault","children":[{"$el":"h3","children":"Were you at fault?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"CrossSell:Auto_and_Car_Accidents:At_Fault","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:At_Fault","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"primaryInjury\")","attrs":{"hidden":"$activeStep !== \"primaryInjury\"","key":"primaryInjury"},"children":[{"$formkit":"group","id":"primaryInjury","name":"primaryInjury","children":[{"$el":"h3","children":"What was the primary injury?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","legendClass":"required t-w-[100%] t-text-center","name":"CrossSell:Auto_and_Car_Accidents:Primary_Injury","options":["Anxiety","Back or Neck Pain","Broken Bones","Cuts and Bruises","Headaches","Memory Loss","Loss of Limb","Not Sure or Other"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-8 md:t-min-w-[200px]","messagesClass":"t-flex t-justify-center","helpClass":"t-mt-0 t-mb-4 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:Primary_Injury","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"doctorTreatment\")","attrs":{"hidden":"$activeStep !== \"doctorTreatment\"","key":"doctorTreatment"},"children":[{"$formkit":"group","id":"doctorTreatment","name":"doctorTreatment","children":[{"$el":"h3","children":"Have you seen a doctor about this?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"CrossSell:Auto_and_Car_Accidents:Doctor_Treatment","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:Doctor_Treatment","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"policeReportFiled\")","attrs":{"hidden":"$activeStep !== \"policeReportFiled\"","key":"policeReportFiled"},"children":[{"$formkit":"group","id":"policeReportFiled","name":"policeReportFiled","children":[{"$el":"h3","children":"Was a police report filed?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"CrossSell:Auto_and_Car_Accidents:Police_Report_Filed","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:Police_Report_Filed","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"haveAttorney\")","attrs":{"hidden":"$activeStep !== \"haveAttorney\"","key":"haveAttorney"},"children":[{"$formkit":"group","id":"haveAttorney","name":"haveAttorney","children":[{"$el":"h3","children":"Already working with an attorney?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"CrossSell:Auto_and_Car_Accidents:Have_Attorney","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:Have_Attorney","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"comments\")","attrs":{"hidden":"$activeStep !== \"comments\"","key":"comments"},"children":[{"$formkit":"group","id":"comments","name":"comments","children":[{"$el":"h3","children":"Please briefly describe the accident:","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 !t-text-dark"}},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Auto_and_Car_Accidents:Comments","label":null,"placeholder":"Example: \"A truck crashed into my car on the highway\" or \"I've been involved in a hit and run accident\"","inputClass":"!t-h-32","id":"CrossSell:Auto_and_Car_Accidents:Comments"}]}]},{"$el":"section","if":"$stepEnabled(\"zipcode\")","attrs":{"hidden":"$activeStep !== \"zipcode\"","key":"zipcode"},"children":[{"$formkit":"group","id":"zipcode","name":"zipcode","children":[{"$el":"h3","children":"Please verify your Zip Code","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","placeholder":"#####","help":"We try to match you with local help","name":"CrossSell:Auto_and_Car_Accidents:Zip","maxlength":5,"inputmode":"numeric","autocomplete":"postal-code","wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","inputClass":"t-text-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"CrossSell:Auto_and_Car_Accidents:Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Who is looking for help?","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 !t-text-dark"}},{"$el":"h5","children":"Note: we never share info without consent","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1 !t-text-sm !t-text-gray-500"}},{"$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":"Connect Now - Final Step","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":"After submitting you'll be connected for your mechanic chat and get contacted for a free accident consultation.","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":"CrossSell:Auto_and_Car_Accidents:Email","label":"Email Address:","placeholder":"email@domain.com","autocomplete":"email","data-tf-sensitive":"false","wrapperClass":"side-by-side t-items-center","id":"CrossSell:Auto_and_Car_Accidents: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":"CrossSell:Auto_and_Car_Accidents: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":"CrossSell:Auto_and_Car_Accidents:Primary_Phone"},{"$formkit":"checkbox","label":"$meta.tcpaLanguage","name":"CrossSell:Auto_and_Car_Accidents: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","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-[38rem]","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\", \"Chat With a Mechanic Online\")","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 !t-text-dark"},"children":"$urlParam(\"shl\", \"Is the issue due to an auto accident?\")","if":"$activeStep === $firstStep()","subheadlineClass":"!t-text-dark"},{"$formkit":"hidden","name":"vertical","value":"AutoRepair"},{"$formkit":"hidden","name":"Category","id":"Category","value":"Mechanics"},{"$formkit":"hidden","name":"gclid","value":null},{"$formkit":"hidden","name":"campaignid","value":null},{"$formkit":"hidden","name":"s","value":null},{"$formkit":"hidden","name":"CrossSell:Auto_and_Car_Accidents:TCPA_Language","value":"$meta.tcpaLanguage"},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","if":"$stepEnabled(\"autoDamageFromAccident\")","attrs":{"hidden":"$activeStep !== \"autoDamageFromAccident\"","key":"autoDamageFromAccident"},"children":[{"$formkit":"group","id":"autoDamageFromAccident","name":"autoDamageFromAccident","nextStepMap":{"Auto_Damage_From_Accident":{"Yes":["wouldLikeMVAConsultation","commentsMechanics"],"No":["commentsMechanics"]},"*":["commentsMechanics"]},"children":[{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"Auto_Damage_From_Accident","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"Auto_Damage_From_Accident","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"wouldLikeMVAConsultation\")","attrs":{"hidden":"$activeStep !== \"wouldLikeMVAConsultation\"","key":"wouldLikeMVAConsultation"},"children":[{"$formkit":"group","id":"wouldLikeMVAConsultation","name":"wouldLikeMVAConsultation","nextStepMap":{"Would_Like_MVA_Consultation":{"Yes":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled","haveAttorney","comments","zipcode","firstAndLast","contactInfo"],"No":["commentsMechanics"]},"*":["commentsMechanics"]},"children":[{"$el":"h3","children":"Would you like a free accident consultation?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"hidden","name":"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem","id":"CrossSell:Auto_and_Car_Accidents:Type_Of_Legal_Problem","value":"Auto and Car Accidents"},{"$formkit":"hidden","name":"CrossSell:Auto_and_Car_Accidents:vertical","value":"Legal"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-flex t-justify-center t-my-3","legendClass":"legend-left","name":"Would_Like_MVA_Consultation","help":"Note: we'll still connect you for a mechanic either way.","options":["Yes","No"],"fieldsetClass":"$reset t-flex t-justify-center t-flex-col-reverse t-items-center","optionClass":"radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5","wrapperClass":"$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]","labelClass":"t-font-semibold t-text-[#1e448f] t-w-[100%]","decoratorIcon":false,"messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 !t-text-sm t-text-center","id":"Would_Like_MVA_Consultation","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$cmp":"FormKitSchema","if":"$get(Auto_Damage_From_Accident).value","props":{"schema":"$meta.dynamicSchema","data":"$buildData($meta)"}},{"$el":"section","if":"$stepEnabled(\"commentsMechanics\")","attrs":{"hidden":"$activeStep !== \"commentsMechanics\"","key":"commentsMechanics"},"children":[{"$formkit":"group","id":"commentsMechanics","name":"commentsMechanics","children":[{"$el":"h3","children":"Last Step: Describe your vehicle issue","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 !t-text-dark"}},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"Comments","label":null,"placeholder":"Example: \"I'm having transmission trouble\", or \"My car won't start\"","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","fieldsetClass":"$reset","wrapperClass":"t-mb-2","options":{"Auto Insurance":"I'd like to save on my auto insurance (optional)"}}]}]},{"$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":"Chat Now","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"}}]}]}]}]
@@ -104,7 +104,7 @@ const sbsYesNoRadio = (updates) => {
104
104
 
105
105
  const verticalButtonRadio = (updates) => {
106
106
  updates.legendClass = 'legend-left';
107
- updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
107
+ updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
108
108
  if (typeof updates.optionsClass === 'undefined') {
109
109
  updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
110
110
  }
@@ -113,6 +113,7 @@ const verticalButtonRadio = (updates) => {
113
113
  updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
114
114
  updates.decoratorIcon = false;
115
115
  updates.messagesClass = 't-flex t-justify-center';
116
+ updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
116
117
  return radio(updates)
117
118
  };
118
119
 
@@ -383,9 +384,9 @@ const doctorTreatment = (scope) => sbsYesNoRadio({
383
384
  label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
384
385
  });
385
386
 
386
- const email = () => sbsText({
387
+ const email = (scope) => sbsText({
387
388
  $formkit: 'email',
388
- name: 'Email',
389
+ name: scope ? scope + ':' + 'Email' : 'Email',
389
390
  label: 'Email Address:',
390
391
  placeholder: 'email@domain.com',
391
392
  autocomplete: 'email',
@@ -410,11 +411,11 @@ const estateLegalServicesNeeded = (scope) => sbsSelect({
410
411
  ]
411
412
  });
412
413
 
413
- const firstName = () => sbsText({
414
+ const firstName = (scope) => sbsText({
414
415
  $formkit: 'text',
415
416
  label: 'First Name:',
416
417
  placeholder: 'First',
417
- name: 'First_Name',
418
+ name: scope ? scope + ':' + 'First_Name' : 'First_Name',
418
419
  autocomplete: "given-name",
419
420
  validationMessages: {
420
421
  required: 'First Name is required'
@@ -426,8 +427,8 @@ const haveAttorney$1 = (scope) => sbsYesNoRadio({
426
427
  label: 'Already Working with An Attorney?'
427
428
  });
428
429
 
429
- const haveAttorneyCenter = () => verticalYesNoRadio({
430
- name: 'Have_Attorney',
430
+ const haveAttorneyCenter = (scope) => verticalYesNoRadio({
431
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
431
432
  });
432
433
 
433
434
  const haveChildren = (scope) => sbsYesNoRadio({
@@ -440,11 +441,11 @@ const incidentDate = (scope) => sbsDate({
440
441
  label: 'Date of Incident:',
441
442
  });
442
443
 
443
- const lastName = () => sbsText({
444
+ const lastName = (scope) => sbsText({
444
445
  $formkit: 'text',
445
446
  label: 'Last Name:',
446
447
  placeholder: 'Last',
447
- name: 'Last_Name',
448
+ name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
448
449
  autocomplete: "family-name",
449
450
  validationMessages: {
450
451
  required: 'Last Name is required'
@@ -602,9 +603,9 @@ const pendingCharges = (scope) => sbsYesNoRadio({
602
603
  label: 'Do you currently have any pending charges?'
603
604
  });
604
605
 
605
- const phone = () => sbsText({
606
+ const phone = (scope) => sbsText({
606
607
  $formkit: 'tel',
607
- name: 'Primary_Phone',
608
+ name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
608
609
  label: 'Phone Number:',
609
610
  placeholder: '###-###-####',
610
611
  maxlength: 12,
@@ -661,10 +662,10 @@ const socialSecurityDisabilityReceivingBenefits = (scope) => sbsYesNoRadio({
661
662
  label: 'Are You Currently Receiving Social Security Disability Benefits?'
662
663
  });
663
664
 
664
- const TCPAConsent = () => ({
665
+ const TCPAConsent = (scope) => ({
665
666
  $formkit: 'checkbox',
666
667
  label: '$meta.tcpaLanguage',
667
- name: 'TCPA_Opt_In',
668
+ name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
668
669
  'data-tf-sensitive': 'false',
669
670
  validation: 'required|accepted',
670
671
  validationMessages: {
@@ -716,10 +717,10 @@ const valueOfAssets = (scope) => sbsSelect({
716
717
  ]
717
718
  });
718
719
 
719
- const zipcodeCenter = (updates = {}) => text({
720
+ const zipcodeCenter = (updates = {}, scope) => text({
720
721
  placeholder: '#####',
721
722
  help: updates.help ?? "We try to match you with local legal help",
722
- name: 'Zip',
723
+ name: scope ? scope + ':' + 'Zip' : 'Zip',
723
724
  maxlength: 5,
724
725
  inputmode: "numeric",
725
726
  autocomplete: 'postal-code',
@@ -1121,7 +1122,8 @@ function commentsWithBankruptcy(updates = {}) {
1121
1122
  label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
1122
1123
  placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
1123
1124
  inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
1124
- }),
1125
+ }, updates.scope),
1126
+ // TODO: needs scope support
1125
1127
  bankruptcyCrossSell(),
1126
1128
  {
1127
1129
  $el: 'div',
@@ -1146,16 +1148,16 @@ function contactInfo(updates = {}) {
1146
1148
  contactStepHeadline(updates),
1147
1149
  contactStepSubHeadline(updates),
1148
1150
  trustedFormScript(),
1149
- email(),
1150
- phone(),
1151
- TCPAConsent(),
1151
+ email(updates.scope),
1152
+ phone(updates.scope),
1153
+ TCPAConsent(updates.scope),
1152
1154
  secureIcon()
1153
1155
  ],
1154
1156
  false, // nextOnEnter
1155
1157
  )
1156
1158
  }
1157
1159
 
1158
- function firstAndLastV3(updates = {}) {
1160
+ function firstAndLastV3(updates = {}, scope) {
1159
1161
  return step(
1160
1162
  'firstAndLast',
1161
1163
  [
@@ -1167,8 +1169,8 @@ function firstAndLastV3(updates = {}) {
1167
1169
  subheadline: updates.subheadline ?? 'Note: we never share info without consent',
1168
1170
  subheadlineClass: '!t-text-sm !t-text-gray-500'
1169
1171
  }),
1170
- firstName(),
1171
- lastName()
1172
+ firstName(scope),
1173
+ lastName(scope)
1172
1174
  ],
1173
1175
  updates.nextOnEnter
1174
1176
  )
@@ -1367,7 +1369,7 @@ function legalCrossSells(updates = {}) {
1367
1369
  function zipcode(updates = {}) {
1368
1370
  return sqstep(
1369
1371
  'zipcode',
1370
- zipcodeCenter(updates),
1372
+ zipcodeCenter(updates, updates.scope),
1371
1373
  'Please verify your Zip Code',
1372
1374
  updates
1373
1375
  )
@@ -1376,7 +1378,7 @@ function zipcode(updates = {}) {
1376
1378
  function haveAttorney(updates = {}) {
1377
1379
  return sqstep(
1378
1380
  'haveAttorney',
1379
- haveAttorneyCenter(),
1381
+ haveAttorneyCenter(updates.scope),
1380
1382
  'Already working with an attorney?',
1381
1383
  updates
1382
1384
  )
@@ -1455,9 +1457,7 @@ function patentFor(updates = {}) {
1455
1457
  )
1456
1458
  }
1457
1459
 
1458
- // ------ Common
1459
-
1460
- const formNavigation = () => ({
1460
+ const formNavigation = (updates = {}) => ({
1461
1461
  $el: 'div',
1462
1462
  attrs: {
1463
1463
  class: 'step-nav'
@@ -1495,7 +1495,7 @@ const formNavigation = () => ({
1495
1495
  {
1496
1496
  $formkit: 'submit',
1497
1497
  name: 'submit_button',
1498
- label: 'Submit',
1498
+ label: updates.submitLabel || 'Submit',
1499
1499
  if: '$activeStep === $lastStep()',
1500
1500
  style: {
1501
1501
  if: '$activeStep !== $lastStep()',
@@ -1630,14 +1630,16 @@ function defaultMetaProps(tolps = null) {
1630
1630
  })
1631
1631
  }
1632
1632
 
1633
- const dynamicSchemaNode = {
1634
- $cmp: 'FormKitSchema',
1635
- if: '$get(Type_Of_Legal_Problem).value',
1636
- props: {
1637
- schema: '$meta.dynamicSchema',
1638
- data: '$buildData($meta)'
1633
+ function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
1634
+ return {
1635
+ $cmp: 'FormKitSchema',
1636
+ if: '$get(' + field + ').value',
1637
+ props: {
1638
+ schema: '$meta.dynamicSchema',
1639
+ data: '$buildData($meta)'
1640
+ }
1639
1641
  }
1640
- };
1642
+ }
1641
1643
 
1642
1644
  const formAnchorDefaults = {
1643
1645
  $el: 'div',
@@ -1832,26 +1834,24 @@ const businessServicesOverrideMap = {
1832
1834
  };
1833
1835
 
1834
1836
  const patentsAndIPTOLPDisplayOverrideMap = {
1835
- 'Type_Of_Legal_Problem_Display': {
1836
- 'Copyrights': {
1837
- 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
1838
- },
1839
- 'Trademarks': {
1840
- 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
1841
- },
1842
- 'Patents': {
1843
- 'Type_Of_Legal_Problem': 'Patents and Intellectual Property'
1844
- },
1845
- 'Business Lawyers': {
1846
- 'Type_Of_Legal_Problem': 'Business Lawyers'
1847
- },
1848
- 'Business Consulting': {
1849
- 'Type_Of_Legal_Problem': 'Business Lawyers'
1850
- },
1851
- 'Not Sure or Other': {
1852
- 'Type_Of_Legal_Problem': 'Not Sure or Other'
1853
- },
1854
- }
1837
+ 'Copyrights': {
1838
+ 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
1839
+ },
1840
+ 'Trademarks': {
1841
+ 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
1842
+ },
1843
+ 'Patents': {
1844
+ 'Type_Of_Legal_Problem': 'Patents and Intellectual Property'
1845
+ },
1846
+ 'Business Lawyers': {
1847
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
1848
+ },
1849
+ 'Business Consulting': {
1850
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
1851
+ },
1852
+ 'Not Sure or Other': {
1853
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
1854
+ },
1855
1855
  };
1856
1856
 
1857
1857
  ({
@@ -2593,7 +2593,9 @@ const schema = [
2593
2593
  props: formProps({
2594
2594
  formId: 'patentsAndIP',
2595
2595
  redirectMap: legalRedirectMap(),
2596
- valueOverrideMap: patentsAndIPTOLPDisplayOverrideMap,
2596
+ valueOverrideMap: {
2597
+ 'Type_Of_Legal_Problem_Display': patentsAndIPTOLPDisplayOverrideMap,
2598
+ }
2597
2599
  }),
2598
2600
  children: [
2599
2601
  progressBar(),
@@ -2614,7 +2616,7 @@ const schema = [
2614
2616
  nextStepMap: nextStepsMapPatentsAndIPTOLPDisplay,
2615
2617
  headlineClass: 't-text-lg',
2616
2618
  }),
2617
- dynamicSchemaNode,
2619
+ dynamicSchemaNode(),
2618
2620
  contactInfo(),
2619
2621
  formNavigation(),
2620
2622
  formDetails()