bhl-forms 0.10.4 → 0.11.0
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 +3936 -4619
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +5283 -6108
- package/dist/bhl-forms.modern.iife.js +7 -7
- package/dist/bhl-forms.modern.umd.js +7 -7
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/accidentsAndInjuries.es.js +13 -18
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -13
- package/dist/forms/applianceRepairMinimal.es.js +10 -3
- package/dist/forms/applianceRepairMinimal.iife.js +1 -1
- package/dist/forms/applianceRepairMinimal.json +1 -13
- package/dist/forms/appraisals.es.js +10 -3
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/appraisals.json +1 -13
- package/dist/forms/business.es.js +13 -18
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -13
- package/dist/forms/childAndFamily.es.js +13 -18
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -13
- package/dist/forms/childAndFamilySingle.es.js +13 -18
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -13
- package/dist/forms/civilLawsuit.es.js +13 -18
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -13
- package/dist/forms/coins.es.js +10 -3
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/coins.json +1 -13
- package/dist/forms/contracts.es.js +13 -18
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -13
- package/dist/forms/criminal.es.js +13 -18
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -13
- package/dist/forms/divorce.es.js +13 -18
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -13
- package/dist/forms/employmentAndWorkplace.es.js +13 -18
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -13
- package/dist/forms/foreclosure.es.js +13 -18
- package/dist/forms/foreclosure.iife.js +1 -1
- package/dist/forms/foreclosure.json +1 -13
- package/dist/forms/generalContractors.es.js +12 -15
- package/dist/forms/generalContractors.iife.js +1 -1
- package/dist/forms/generalContractors.json +1 -13
- package/dist/forms/generalHomeImprovement.es.js +12 -15
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -13
- package/dist/forms/generalHomeImprovementThankYou.es.js +13 -12
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -13
- package/dist/forms/generalLegal.es.js +13 -18
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -13
- package/dist/forms/generalLegalJustAnswer.es.js +13 -18
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
- package/dist/forms/generalLegalJustAnswer.json +1 -13
- package/dist/forms/generalLegalPopUnder.es.js +13 -18
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -13
- package/dist/forms/generalLegalPopUnderSingle.es.js +13 -18
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -13
- package/dist/forms/generalLegalSingle.es.js +13 -18
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -13
- package/dist/forms/generalLegalThankYou.es.js +13 -18
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -13
- package/dist/forms/generalLegalThankYouConsultation.es.js +13 -18
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -13
- package/dist/forms/harassmentAndDiscrimination.es.js +13 -18
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -13
- package/dist/forms/landlordTenant.es.js +13 -18
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -13
- package/dist/forms/malpractice.es.js +13 -18
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -13
- package/dist/forms/mechanics.es.js +13 -12
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -13
- package/dist/forms/patentsAndIP.es.js +13 -18
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -13
- package/dist/forms/realEstate.es.js +13 -18
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -13
- package/dist/forms/repossession.es.js +13 -18
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -13
- package/dist/forms/ssdi.es.js +11 -12
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -13
- package/dist/forms/testForm.es.js +11 -6
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -13
- package/dist/forms/testRedirects.es.js +12 -9
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -13
- package/dist/forms/vets.es.js +10 -3
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/vets.json +1 -13
- package/dist/forms/willsAndTrusts.es.js +13 -18
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -13
- package/dist/forms/windows.es.js +12 -15
- package/dist/forms/windows.iife.js +1 -1
- package/dist/forms/windows.json +1 -13
- package/dist/forms/workersCompensation.es.js +13 -18
- package/dist/forms/workersCompensation.iife.js +1 -1
- package/dist/forms/workersCompensation.json +1 -13
- package/dist/main.css +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
var generalContractors=function(){"use strict";function e(){return Object.assign({},...arguments)}const t='$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)',a='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',n='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',l=t,i=t=>(t&&t.legendClass||(t.legendClass="required t-w-[100%] t-text-center"),t.fieldsetClass="$reset t-flex t-justify-center t-flex-col",t.innerClass="t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t.optionClass="t-pl-4 md:t-pl-16 md:t-min-w-[200px]",t.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",(t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t)))(t)),s=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)),r=e=>(e.legendClass="required t-w-[100%] t-text-center",void 0===e.fieldsetClass&&(e.fieldsetClass="$reset t-flex t-justify-center"),e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",e.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",s(e)),o=e=>(e.legendClass="legend-left required",e.fieldsetClass="$reset side-by-side",e.optionsClass="t-pl-1",e.innerClass="t-flex t-items-center",e.wrapperClass="t-mb-3",s(e)),d=e=>(e.legendClass="required",e.fieldsetClass="$reset t-flex t-justify-center",e.optionsClass="t-pl-2 t-pt-3",e.innerClass="t-items-center",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 md:t-pl-12",e.messagesClass="t-flex t-justify-center",s(e)),c=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)),p=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",e.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",c(e)),m=e=>(e.labelClass="required",e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-min-w-[150px] t-bg-white",e.helpClass="t-mt-2.5 t-text-center",c(e)),u=t=>(t.name&&!t.id&&(t.id=t.name),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),f=e=>(e.wrapperClass="side-by-side t-items-center",u(e)),h=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",u(e)),g=(e,t,a={})=>(t?h:f)({$formkit:"email",name:e?e+":Email":"Email",label:t?a.label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"},...a}),b=(e,t,a={})=>(t?h:f)({label:t?a.label:"First Name:",placeholder:"First Name",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"},...a}),x=(e,t,a={})=>(t?h:f)({label:t?a.label:"Last Name:",placeholder:"Last Name",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"},...a}),y=(e,t,a={})=>(t?h:f)({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:t?a.label:"Phone Number:",placeholder:a.placeholder||"###-###-####",maxlength:12,help:a.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:"Phone Number 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]",...a}),C=(t,a,n)=>(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:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},n)),v=(e,t={})=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",__raw__sectionsSchema:{label:{attrs:{innerHTML:"$label"}}},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:{outer:t.outerClass?t.outerClass:"",wrapper:t.wrapperClass?t.wrapperClass:"",messages:t.messagesClass?t.messagesClass:"",label:"t-text-xs t-text-slate-500 t-font-normal !t-leading-[0.9rem]"+(t.labelClass?" "+t.labelClass:"")}}),$=(t,a)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},a),w=(t,a,n={})=>(a?d:o)(e({label:a?n.label:"What type of work?",name:t?t+":Work_Type":"Work_Type",options:["Install or Replace","Repair","Not Sure or Other"]},n)),S=(t,a,n={})=>(a?m:p)(e({label:a?n.label:"What electrical job type?",name:t?t+":Electrical_Subtype":"Electrical_Subtype",options:["Electrical Panel","Outlets and Fixtures","Home Theater","Exhaust Fans","Ceiling Fans","EV Charging Station","Addition or Remodel","Generator","Outdoor Lighting","Pet Fence","Thermostat","Wall or Baseboard Heater","Holiday Lighting","Not Sure or Other"]},n)),E=(t,a,n={})=>(a?d:p)(e({label:a?n.label:"What flooring material?",name:t?t+":Flooring_Material":"Flooring_Material",options:["Carpet","Concrete","Hardwood","Laminate","Linoleum","Slate","Tile","Vinyl","Not Sure or Other"]},n)),I=(t,a,n={})=>(a?r:o)(e({label:a?n.label:"What contractor job type?",name:t?t+":General_Contractor_Subtype":"General_Contractor_Subtype",options:["Remodeling","Additions","Major Home Repairs","Excavation","Demolition","Dumpster Rental","Not Sure or Other"]},n)),P=(t,a,n={})=>(a?d:o)(e({label:a?n.label:"How many rooms?",name:t?t+":Number_Of_Rooms":"Number_Of_Rooms",options:["1-2","3-4","4-5","5-6","6+"]},n)),k=(t,a,n={})=>(a?m:p)(e({label:a?n.label:"What landscaping job?",name:t?t+":Landscaping_Subtype":"Landscaping_Subtype",options:["Lawn Mowing","Lawn Care or Fertilization","Yard or Leaf Cleanup","Patios or Walkways","Stonework","Architects","Landscape Construction","Outdoor Lighting","Grading","Materials Delivery","Sprinklers"]},n)),_=(t,a,n={})=>(a?m:p)(e({label:a?n.label:"What painting job type?",name:t?t+":Painting_Subtype":"Painting_Subtype",options:["Whole Exterior","Exterior Touch-up","Interior Rooms","Interior Touch-up","Ceilings","Deck","Shed","Cabinets","Not Sure or Other"]},n)),j=(t,a,n={})=>(a?m:p)(e({label:a?n.label:"What plumbing job type?",name:t?t+":Plumbing_Subtype":"Plumbing_Subtype",options:["Tub or Shower","Drain","Sink","Toilet","Boiler","Water Heater","Sump Pump","Piping","Septic","Water Main","Hot Tub","Additions and Remodels","Not Sure or Other"]},n)),F=(t,a,n={})=>(a?d:o)(e({label:a?n.label:"What type of work?",name:t?t+":Roofing_Work_Type":"Roofing_Work_Type",options:["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","Not Sure or Other"]},n)),q=(t,a,n={})=>(a?m:p)(e({label:a?n.label:"What roofing material?",name:t?t+":Roofing_Material":"Roofing_Material",options:["Asphalt Shingle","Metal","Composite","Flat","Foam","Tile","Wood","Slate","Not Sure or Other"]},n)),R="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",H="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",L=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,W=e=>{if(L(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(L(a))return a;const n=W(a);if(n)return n}return null},O={$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 M(t={}){return e(O,t)}function T(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-4 t-pt-0 t-px-1"}}}function A(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 N(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 D(e){return{$el:"h3",children:e.headline||"Additional 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 Q(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 z(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||"")+" f-contact-info-headline"}}}function G(e){return{$el:"h5",children:e.subheadline||n,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 "+(e.subheadlineClass||"")+" f-contact-info-subheadline"}}}const B="(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 K=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function U(t,a,n={}){const{nextOnEnter:l=!0,nextOnInput:i=!1,stepKey:s,nextStepMap:r,triggerRedirectMap:o,autoFocus:d}=n;if(a&&a.length&&(l||i)){const e=W(a[a.length-1]);e&&!0===l&&(e.onKeypress=R),e&&!0===i&&(e.onInput=H)}return e(K(t,s),{children:[{$formkit:"group",id:t,name:t,nextStepMap:r,triggerRedirectMap:o,autoFocus:d,children:a}]})}function Z(e,t,a,n={}){return void 0===n.nextOnInput&&(n.nextOnInput=!0),U(e,[A({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n)}function V(e){return{$el:"h3",children:e.headline||"Interested in free quotes for other projects?",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||"")}}}const Y={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 J(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const X={};const ee={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const te={$el:"div",attrs:{class:"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"display: none"}},children:[{$el:"div",attrs:{class:"t-flex t-justify-center"},children:[{$el:"span",attrs:{id:"progress-bar-text",class:"t-text-sm t-mb-1"},children:["0% Complete"]}]},{$el:"div",attrs:{class:"t-bg-gray-100 t-w-9/12 t-rounded"},children:[{$el:"div",attrs:{id:"progress-bar",class:"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",style:{transition:"width 0.5s ease"}}}]}]};const ae=[{$formkit:"hidden",name:"vertical",value:"HomeImprovement"},{$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}],ne={"*":"https://listings.zipcontractor.com/api/v1/redirect?zone_id=4&vertical=HomeImprovement&category=${properties.Category}&zip_code=${properties.Zip}&sub_id=${properties.vid}"};const le={Additions:'Example: "I would like to add a sunroom to my home"',Appliances:'Example: "I need to repair a dishwasher"',Appraisals:'Example: "I need to get my home appraised"',Cabinets:'Example: "I want to install new kitchen cabinets"',Carpentry:'Example: "I need someone to build custom shelves"',Carpets:'Example: "I want to replace the carpets in my living room"',Cleaning:'Example: "I need a professional cleaning service for my home"',Countertops:'Example: "I want to install granite countertops in my kitchen"',"Decks and Porches":'Example: "I want to build a new deck in my backyard"',Demolition:'Example: "I need to demolish a wall in my home"',Doors:'Example: "I want to replace the front door of my house"',Driveways:'Example: "I need to repair my driveway"',"Drywall and Plaster":'Example: "I need to repair a hole in my drywall"',Electrical:'Example: "I need an electrician to install new light fixtures"',Fencing:'Example: "I want to install a privacy fence in my backyard"',Flooring:'Example: "I want to install hardwood flooring in my living room"',Foundations:'Example: "I need to repair the foundation of my house"',"Garage Doors":'Example: "I want to replace my garage door"',"General Contractors":'Example: "I need a general contractor for a home renovation"',Gutters:'Example: "I need to clean and repair my gutters"',Handyman:'Example: "I need a handyman to fix various things around my house"',"Holiday Decorators":'Example: "I want to hire someone to decorate my home for the holidays"',"Smart Home":'Example: "I want to install a smart home automation system"',"Home Builders":'Example: "I want to build a custom home"',"Home Inspection":'Example: "I need a home inspection before buying a house"',"Home Organization":'Example: "I need help organizing my closets and storage"',"Home Security":'Example: "I want to install a home security system"',"Home Staging":'Example: "I need a home staging service to prepare my house for sale"',"Home Theater":'Example: "I want to set up a home theater system"',"Home Warranties":'Example: "I want to purchase a home warranty"',"Hot Tubs":'Example: "I want to install a hot tub in my backyard"',"Heating and Cooling":'Example: "I need to repair my air conditioning unit"',Insulation:'Example: "I want to improve the insulation in my home"',"Junk Removal":'Example: "I need a service to remove junk and debris from my property"',Landscaping:'Example: "I want to redesign my backyard landscaping"',Locksmiths:'Example: "I need a locksmith to change the locks on my doors"',"Masonry and Concrete":'Example: "I need to repair a cracked concrete driveway"',Restoration:'Example: "I need water damage restoration services"',Moving:'Example: "I need a moving company to help me relocate"',Painting:'Example: "I want to paint the interior walls of my house"',"Pest Control":'Example: "I need pest control services for my home"',Pools:'Example: "I want to install a swimming pool in my backyard"',Plumbing:'Example: "I need a plumber to fix a leaky faucet"',"Pressure Washing":'Example: "I want to pressure wash the exterior of my house"',Remodeling:'Example: "I want to remodel my kitchen"',Roofing:'Example: "I need to repair a leaky roof"',Sheds:'Example: "I want to build a storage shed in my backyard"',Siding:'Example: "I want to replace the siding on my house"',Solar:'Example: "I want to install solar panels on my roof"',Tiling:'Example: "I want to install new tiles in my bathroom"',"Tree Services":'Example: "I need a large tree removed"',"Walk-in Tubs":'Example: "I want to install a walk-in tub in my bathroom"',Waterproofing:'Example: "I need to waterproof my basement"',"Window Cleaning":'Example: "I need a professional window cleaning service"',Windows:'Example: "I want to replace 3 windows in my house"',"Not Sure or Other":'Example: "I need general handyman services"'},ie={Appliances:"We Have Appliance Pros Standing By!"},se={Appliances:"Who needs appliance help?"},re={Additions:["Painting","Landscaping","Plumbing","Appliances","Heating and Cooling","Driveways"],Electrical:["Painting","Plumbing","Drywall and Plaster","Flooring","Remodeling","Roofing"],Flooring:["Painting","Plumbing","Electrical","Carpentry","Remodeling","Roofing"],"General Contractors":["Painting","Plumbing","Electrical","Flooring","Landscaping","Roofing"],"Home Builders":["Painting","Driveways","Masonry and Concrete","Pest Control","Landscaping","Windows"],Painting:["Plumbing","Electrical","Flooring","Remodeling","Roofing","Windows"],Plumbing:["Painting","Appliances","Electrical","Flooring","Remodeling","Roofing"],Remodeling:["Painting","Landscaping","Electrical","Flooring","Masonry and Concrete","Roofing"],Roofing:["Painting","Plumbing","Electrical","Flooring","Remodeling","Windows"],"*":["Painting","Plumbing","Electrical","Siding","Remodeling","Roofing"]},oe=function(t=null){let a=le,n=ie,i=se;return t&&(a=J(le,t),n=J(ie,t),i=J(se,t)),{type:"meta",data:e(X,{tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by contractors 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.",defaultCommentsPlaceholder:l,commentsPlaceholders:a,defaultFinalHeadline:"We Found Contractors!",finalHeadlines:n,defaultFinalSubHeadline:"Compare quotes and save. Verify contact info:",finalSubHeadlines:i})}}();oe.data.dynamicSchema=[function(e={}){return Z("zipcode",((e,t,a={})=>(t?h:f)({label:t?a.label:"Zip Code:",help:t?a.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...a}))(e.scope,!0,e.input),"Please verify your Zip Code",e)}(),function(t={}){return Z("timeframe",((t,a,n={})=>(a?d:o)(e({label:a?n.label:"What is the project timeframe?",name:t?t+":Timeframe":"Timeframe",options:["Immediate","1-6 Months","More than 6 Months"]},n)))(t.scope,!0,t.input),"What is the project timeframe?",t)}(),function(t={}){return Z("ownHome",((t,a,n={})=>(a?d:o)(e({label:a?n.label:"Do you own the home?",name:t?t+":Own_Home":"Own_Home",options:["Yes","No","No but authorized"]},n)))(t.scope,!0,t.input),"Do you own the home?",t)}(),function(e={}){return e.nextOnInput=void 0!==e.nextOnInput&&e.nextOnInput,Z("address",((e,t,a={})=>(t?h:f)({label:t?a.label:"Street Address:",placeholder:"10 Example St",name:e?e+":Address":"Address",autocomplete:"street-address","data-tf-sensitive":"false",minlength:5,maxlength:100,validationMessages:{minlength:"Invalid Address",required:"Address is required"},...a}))(e.scope,!0,e.input),"What is the street address of the home?",e)}(),function(e={}){const a={...e,nextOnEnter:!1};return U("comments",[D(e),C(e.scope,0,{label:void 0===e.label?"Please briefly describe your issue in a few words:":e.label,placeholder:e.placeholder||t,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass})],a)}({label:null,headline:"Please briefly describe your project:",headlineClass:"!t-text-dark"}),function(e={}){return U("firstAndLast",[Q({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),N({subheadline:e.subheadline??"Note: we never share info without consent",subheadlineClass:"!t-text-sm !t-text-gray-500"}),b(e.scope),x(e.scope)],e)}({headlineClass:"!t-text-dark"}),function(e={}){return U("electricalCrossSellQuestions",[T({headline:"Connect With Electrical Pros"}),(t="true",a="CrossSell:Electrical",$("ElectricalQuestions",{if:t||'$get(Category).value == "Electrical"',children:[S(a),w(a)]})),C("CrossSell:Electrical",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return U("flooringCrossSellQuestions",[T({headline:"Connect With Flooring Pros"}),(t="true",a="CrossSell:Flooring",$("FlooringQuestions",{if:t||'$get(Category).value == "Flooring"',children:[E(a),w(a)]})),C("CrossSell:Flooring",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return U("landscapingCrossSellQuestions",[T({headline:"Connect With a Landscaper"}),(t="true",a="CrossSell:Landscaping",$("LandscapingQuestions",{if:t||'$get(Category).value == "Landscaping"',children:[k(a),w(a)]})),C("CrossSell:Landscaping",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return U("paintingCrossSellQuestions",[T({headline:"Connect With a Painter"}),(t="true",a="CrossSell:Painting",$("PaintingQuestions",{if:t||'$get(Category).value == "Painting"',children:[_(a),P(a)]})),C("CrossSell:Painting",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return U("plumbingCrossSellQuestions",[T({headline:"Connect With a Plumber"}),(t="true",a="CrossSell:Plumbing",$("PlumbingQuestions",{if:t||'$get(Category).value == "Plumbing"',children:[j(a),w(a)]})),C("CrossSell:Plumbing",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return U("roofingCrossSellQuestions",[T({headline:"Connect With a Roofer"}),(t="true",a="CrossSell:Roofing",$("RoofingQuestions",{if:t||'$get(Category).value == "Roofing"',children:[q(a),F(a)]})),C("CrossSell:Roofing",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return e.nextOnInput=!1,e.stepKey="$get(Category).value",U("homeImprovementCrossSells",[V(e),(e.scope,i({id:"HomeImprovement_CrossSells",name:"HomeImprovement_CrossSells",help:'Just hit "Next" if none apply',helpClass:"t-text-center !t-text-sm",validation:null,options:'$getCrossSellOptions($get(form), $getVal($get(form), "Category"))'}))],e)}({headlineClass:"!t-text-dark",nextStepMap:{values:{HomeImprovement_CrossSells:{Appliances:["appliancesCrossSellQuestions"],Carpentry:["carpentryCrossSellQuestions"],Driveways:["drivewaysCrossSellQuestions"],"Drywall and Plaster":["drywallCrossSellQuestions"],Electrical:["electricalCrossSellQuestions"],Flooring:["flooringCrossSellQuestions"],"Heating and Cooling":["heatingCoolingCrossSellQuestions"],Landscaping:["landscapingCrossSellQuestions"],"Masonry and Concrete":["masonryAndConcreteCrossSellQuestions"],Painting:["paintingCrossSellQuestions"],"Pest Control":["pestControlCrossSellQuestions"],Plumbing:["plumbingCrossSellQuestions"],Remodeling:["remodelingCrossSellQuestions"],Roofing:["roofingCrossSellQuestions"],Siding:["sidingCrossSellQuestions"],Windows:["windowsCrossSellQuestions"]},"*":["firstAndLast","contactInfo"]},appendSteps:["firstAndLast","contactInfo"],matchesAllowed:1}})];const de=[oe,e(ee,ce),{$cmp:"FormKit",props:function(t){const a=e(Y,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"generalContractors",redirectMap:function(t){return e(ne,t)}(),crossSellOptionMap:re}),children:[function(t){return e(te,t)}(),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||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Get Started Here!")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Why do you need a contractor?")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-font-bold !t-text-[#465f87]"}),...ae,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return U("generalContractorSubtype",[{$formkit:"hidden",name:"Category",id:"Category",value:"General Contractors"},I(e.scope,!0,e.input)],e)}({nextOnInput:!1,headlineClass:"t-text-lg",nextStepMap:{values:{"*":["comments","timeframe","ownHome","zipcode","address","homeImprovementCrossSells","firstAndLast","contactInfo"]}}}),function(e="Type_Of_Legal_Problem"){return{$cmp:"FormKitSchema",if:"$get("+e+").value",props:{schema:"$meta.dynamicSchema",data:"$buildData($meta)"}}}("Category"),function(e={}){return U("contactInfo",[z(e),G(e),{$el:"script",if:"$activeStep === $lastStep()",children:B},g(e.scope),y(e.scope),v(e.scope),M()],{nextOnEnter:!1})}({headlineClass:"!t-text-[#465f87]",subheadlineClass:"!t-text-[#353739]"}),((e={})=>({$el:"div",attrs:{class:{if:"$activeStep === $firstStep()",then:"step-nav "+(e.firstStepButtonClass||"!t-justify-center sm:!t-justify-between"),else:"step-nav !t-justify-between"}},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",outerClass:{if:"$activeStep === $firstStep()",then:"t-hidden sm:t-block",else:""},style:{if:"$activeStep === $firstStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:e.startText||"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" !t-ml-2 sm:!t-ml-auto f-navigation-input"}}]}))({startText:"Get Quotes",inputClass:"!t-text-black !t-font-extrabold !t-bg-[#ffce51]"}),{$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 ce;return de}();
|
|
1
|
+
var generalContractors=function(){"use strict";function e(){return Object.assign({},...arguments)}const t='$getKey($meta, "commentsPlaceholders." + $get(Category).value, $meta.defaultCommentsPlaceholder)',a='$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)',n='$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)',l=t,i=e=>(e.name&&!e.id&&(e.id=e.name),e),s=t=>(t&&t.legendClass||(t.legendClass="required t-w-[100%] t-text-center"),t.fieldsetClass="$reset t-flex t-justify-center t-flex-col",t.innerClass="t-items-start",t.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",t.optionClass="t-pl-4 md:t-pl-16 md:t-min-w-[200px]",t.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",t.messagesClass="t-flex t-justify-center",t.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",(t=>(i(t),e({$formkit:"checkbox",validation:"required",validationMessages:{required:"Field is required"}},t)))(t)),r=t=>(i(t),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},t)),o=e=>(e.legendClass="required t-w-[100%] t-text-center",void 0===e.fieldsetClass&&(e.fieldsetClass="$reset t-flex t-justify-center"),e.innerClass="t-items-start",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 md:t-pl-8 md:t-min-w-[200px]",e.optionsClass="t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2",e.messagesClass="t-flex t-justify-center",e.helpClass="t-mt-0 t-mb-4 !t-text-sm t-text-center",r(e)),d=e=>(e.legendClass="legend-left required",e.fieldsetClass="$reset side-by-side",e.optionsClass="t-pl-1",e.innerClass="t-flex t-items-center",e.wrapperClass="t-mb-3",r(e)),c=e=>(e.legendClass="required",e.fieldsetClass="$reset t-flex t-justify-center",e.optionsClass="t-pl-2 t-pt-3",e.innerClass="t-items-center",e.wrapperClass="$reset t-flex t-cursor-pointer t-mb-3",e.optionClass="t-pl-4 md:t-pl-12",e.messagesClass="t-flex t-justify-center",r(e)),p=t=>(i(t),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},t)),m=e=>(e.labelClass="required",e.wrapperClass="side-by-side t-items-center",e.innerClass="select-height-content",e.helpClass="t-mt-2.5 md:t-text-right md:t-mt-[-5px]",p(e)),u=e=>(e.labelClass="required",e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-min-w-[150px] t-bg-white",e.helpClass="t-mt-2.5 t-text-center",p(e)),f=t=>(i(t),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},t)),h=e=>(e.wrapperClass="side-by-side t-items-center",f(e)),g=e=>(e.wrapperClass="t-flex t-justify-center",e.messagesClass="t-flex t-justify-center",e.inputClass="t-text-center",e.helpClass="t-mt-2.5 !t-text-sm t-text-center",f(e)),b=(e,t,a={})=>(t?g:h)({$formkit:"email",name:e?e+":Email":"Email",label:t?a.label:"Email Address:",placeholder:"email@domain.com",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"},...a}),x=(e,t,a={})=>(t?g:h)({label:t?a.label:"First Name:",placeholder:"First Name",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"},...a}),y=(e,t,a={})=>(t?g:h)({label:t?a.label:"Last Name:",placeholder:"Last Name",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"},...a}),C=(e,t,a={})=>(t?g:h)({$formkit:"tel",name:e?e+":Primary_Phone":"Primary_Phone",label:t?a.label:"Phone Number:",placeholder:a.placeholder||"###-###-####",maxlength:12,help:a.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:"Phone Number 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]",...a}),v=(t,a,n)=>(t=>(i(t),e({$formkit:"textarea",rows:5,maxlength:500,validation:"required",validationMessages:{required:"Field is required"},innerClass:"t-max-w-xl",labelClass:"required"},t)))(e({name:t?t+":Comments":"Comments",label:"Please briefly describe your situation in a few words:",placeholder:'For Example: "I would like help with child support payments" or "I need help with visitation rights"'},n)),$=(e,t={})=>({$formkit:"checkbox",label:"$meta.tcpaLanguage",__raw__sectionsSchema:{label:{attrs:{innerHTML:"$label"}}},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:{outer:t.outerClass?t.outerClass:"",wrapper:t.wrapperClass?t.wrapperClass:"",messages:t.messagesClass?t.messagesClass:"",label:"t-text-xs t-text-slate-500 t-font-normal !t-leading-[0.9rem]"+(t.labelClass?" "+t.labelClass:"")}}),w=(t,a)=>e({$cmp:"FormKit",props:{type:"group",key:t,id:t,name:t}},a),S=(t,a,n={})=>(a?c:d)(e({label:a?n.label:"What type of work?",name:t?t+":Work_Type":"Work_Type",options:["Install or Replace","Repair","Not Sure or Other"]},n)),E=(t,a,n={})=>(a?u:m)(e({label:a?n.label:"What electrical job type?",name:t?t+":Electrical_Subtype":"Electrical_Subtype",options:["Electrical Panel","Outlets and Fixtures","Home Theater","Exhaust Fans","Ceiling Fans","EV Charging Station","Addition or Remodel","Generator","Outdoor Lighting","Pet Fence","Thermostat","Wall or Baseboard Heater","Holiday Lighting","Not Sure or Other"]},n)),I=(t,a,n={})=>(a?c:m)(e({label:a?n.label:"What flooring material?",name:t?t+":Flooring_Material":"Flooring_Material",options:["Carpet","Concrete","Hardwood","Laminate","Linoleum","Slate","Tile","Vinyl","Not Sure or Other"]},n)),P=(t,a,n={})=>(a?o:d)(e({label:a?n.label:"What contractor job type?",name:t?t+":General_Contractor_Subtype":"General_Contractor_Subtype",options:["Remodeling","Additions","Major Home Repairs","Excavation","Demolition","Dumpster Rental","Not Sure or Other"]},n)),k=(t,a,n={})=>(a?c:d)(e({label:a?n.label:"How many rooms?",name:t?t+":Number_Of_Rooms":"Number_Of_Rooms",options:["1-2","3-4","4-5","5-6","6+"]},n)),_=(t,a,n={})=>(a?u:m)(e({label:a?n.label:"What landscaping job?",name:t?t+":Landscaping_Subtype":"Landscaping_Subtype",options:["Lawn Mowing","Lawn Care or Fertilization","Yard or Leaf Cleanup","Patios or Walkways","Stonework","Architects","Landscape Construction","Outdoor Lighting","Grading","Materials Delivery","Sprinklers"]},n)),j=(t,a,n={})=>(a?u:m)(e({label:a?n.label:"What painting job type?",name:t?t+":Painting_Subtype":"Painting_Subtype",options:["Whole Exterior","Exterior Touch-up","Interior Rooms","Interior Touch-up","Ceilings","Deck","Shed","Cabinets","Not Sure or Other"]},n)),F=(t,a,n={})=>(a?u:m)(e({label:a?n.label:"What plumbing job type?",name:t?t+":Plumbing_Subtype":"Plumbing_Subtype",options:["Tub or Shower","Drain","Sink","Toilet","Boiler","Water Heater","Sump Pump","Piping","Septic","Water Main","Hot Tub","Additions and Remodels","Not Sure or Other"]},n)),q=(t,a,n={})=>(a?c:d)(e({label:a?n.label:"What type of work?",name:t?t+":Roofing_Work_Type":"Roofing_Work_Type",options:["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","Not Sure or Other"]},n)),R=(t,a,n={})=>(a?u:m)(e({label:a?n.label:"What roofing material?",name:t?t+":Roofing_Material":"Roofing_Material",options:["Asphalt Shingle","Metal","Composite","Flat","Foam","Tile","Wood","Slate","Not Sure or Other"]},n)),H="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",L="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))",W=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,O=e=>{if(W(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(W(a))return a;const n=O(a);if(n)return n}return null},M={$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 T(t={}){return e(M,t)}function A(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-4 t-pt-0 t-px-1"}}}function N(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 D(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 Q(e){return{$el:"h3",children:e.headline||"Additional 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 z(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 G(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||"")+" f-contact-info-headline"}}}function B(e){return{$el:"h5",children:e.subheadline||n,attrs:{class:"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 "+(e.subheadlineClass||"")+" f-contact-info-subheadline"}}}const K="(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 U=(e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}});function Z(t,a,n={}){const{nextOnEnter:l=!0,nextOnInput:i=!1,stepKey:s,nextStepMap:r,triggerRedirectMap:o,autoFocus:d}=n;if(a&&a.length&&(l||i)){const e=O(a[a.length-1]);e&&!0===l&&(e.onKeypress=H),e&&!0===i&&(e.onInput=L)}return e(U(t,s),{children:[{$formkit:"group",id:t,name:t,nextStepMap:r,triggerRedirectMap:o,autoFocus:d,children:a}]})}function V(e,t,a,n={}){return void 0===n.nextOnInput&&(n.nextOnInput=!0),Z(e,[N({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n)}function Y(e){return{$el:"h3",children:e.headline||"Interested in free quotes for other projects?",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||"")}}}const J={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 X(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const ee={};const te={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const ae={$el:"div",attrs:{class:"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"display: none"}},children:[{$el:"div",attrs:{class:"t-flex t-justify-center"},children:[{$el:"span",attrs:{id:"progress-bar-text",class:"t-text-sm t-mb-1"},children:["0% Complete"]}]},{$el:"div",attrs:{class:"t-bg-gray-100 t-w-9/12 t-rounded"},children:[{$el:"div",attrs:{id:"progress-bar",class:"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",style:{transition:"width 0.5s ease"}}}]}]};const ne=[{$formkit:"hidden",name:"vertical",value:"HomeImprovement"},{$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}],le={"*":"https://listings.zipcontractor.com/api/v1/redirect?zone_id=4&vertical=HomeImprovement&category=${properties.Category}&zip_code=${properties.Zip}&sub_id=${properties.vid}"};const ie={Additions:'Example: "I would like to add a sunroom to my home"',Appliances:'Example: "I need to repair a dishwasher"',Appraisals:'Example: "I need to get my home appraised"',Cabinets:'Example: "I want to install new kitchen cabinets"',Carpentry:'Example: "I need someone to build custom shelves"',Carpets:'Example: "I want to replace the carpets in my living room"',Cleaning:'Example: "I need a professional cleaning service for my home"',Countertops:'Example: "I want to install granite countertops in my kitchen"',"Decks and Porches":'Example: "I want to build a new deck in my backyard"',Demolition:'Example: "I need to demolish a wall in my home"',Doors:'Example: "I want to replace the front door of my house"',Driveways:'Example: "I need to repair my driveway"',"Drywall and Plaster":'Example: "I need to repair a hole in my drywall"',Electrical:'Example: "I need an electrician to install new light fixtures"',Fencing:'Example: "I want to install a privacy fence in my backyard"',Flooring:'Example: "I want to install hardwood flooring in my living room"',Foundations:'Example: "I need to repair the foundation of my house"',"Garage Doors":'Example: "I want to replace my garage door"',"General Contractors":'Example: "I need a general contractor for a home renovation"',Gutters:'Example: "I need to clean and repair my gutters"',Handyman:'Example: "I need a handyman to fix various things around my house"',"Holiday Decorators":'Example: "I want to hire someone to decorate my home for the holidays"',"Smart Home":'Example: "I want to install a smart home automation system"',"Home Builders":'Example: "I want to build a custom home"',"Home Inspection":'Example: "I need a home inspection before buying a house"',"Home Organization":'Example: "I need help organizing my closets and storage"',"Home Security":'Example: "I want to install a home security system"',"Home Staging":'Example: "I need a home staging service to prepare my house for sale"',"Home Theater":'Example: "I want to set up a home theater system"',"Home Warranties":'Example: "I want to purchase a home warranty"',"Hot Tubs":'Example: "I want to install a hot tub in my backyard"',"Heating and Cooling":'Example: "I need to repair my air conditioning unit"',Insulation:'Example: "I want to improve the insulation in my home"',"Junk Removal":'Example: "I need a service to remove junk and debris from my property"',Landscaping:'Example: "I want to redesign my backyard landscaping"',Locksmiths:'Example: "I need a locksmith to change the locks on my doors"',"Masonry and Concrete":'Example: "I need to repair a cracked concrete driveway"',Restoration:'Example: "I need water damage restoration services"',Moving:'Example: "I need a moving company to help me relocate"',Painting:'Example: "I want to paint the interior walls of my house"',"Pest Control":'Example: "I need pest control services for my home"',Pools:'Example: "I want to install a swimming pool in my backyard"',Plumbing:'Example: "I need a plumber to fix a leaky faucet"',"Pressure Washing":'Example: "I want to pressure wash the exterior of my house"',Remodeling:'Example: "I want to remodel my kitchen"',Roofing:'Example: "I need to repair a leaky roof"',Sheds:'Example: "I want to build a storage shed in my backyard"',Siding:'Example: "I want to replace the siding on my house"',Solar:'Example: "I want to install solar panels on my roof"',Tiling:'Example: "I want to install new tiles in my bathroom"',"Tree Services":'Example: "I need a large tree removed"',"Walk-in Tubs":'Example: "I want to install a walk-in tub in my bathroom"',Waterproofing:'Example: "I need to waterproof my basement"',"Window Cleaning":'Example: "I need a professional window cleaning service"',Windows:'Example: "I want to replace 3 windows in my house"',"Not Sure or Other":'Example: "I need general handyman services"'},se={Appliances:"We Have Appliance Pros Standing By!"},re={Appliances:"Who needs appliance help?"},oe={Additions:["Painting","Landscaping","Plumbing","Appliances","Heating and Cooling","Driveways"],Electrical:["Painting","Plumbing","Drywall and Plaster","Flooring","Remodeling","Roofing"],Flooring:["Painting","Plumbing","Electrical","Carpentry","Remodeling","Roofing"],"General Contractors":["Painting","Plumbing","Electrical","Flooring","Landscaping","Roofing"],"Home Builders":["Painting","Driveways","Masonry and Concrete","Pest Control","Landscaping","Windows"],Painting:["Plumbing","Electrical","Flooring","Remodeling","Roofing","Windows"],Plumbing:["Painting","Appliances","Electrical","Flooring","Remodeling","Roofing"],Remodeling:["Painting","Landscaping","Electrical","Flooring","Masonry and Concrete","Roofing"],Roofing:["Painting","Plumbing","Electrical","Flooring","Remodeling","Windows"],"*":["Painting","Plumbing","Electrical","Siding","Remodeling","Roofing"]},de=function(t=null){let a=ie,n=se,i=re;return t&&(a=X(ie,t),n=X(se,t),i=X(re,t)),{type:"meta",data:e(ee,{tcpaLanguage:"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by contractors 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.",defaultCommentsPlaceholder:l,commentsPlaceholders:a,defaultFinalHeadline:"We Found Contractors!",finalHeadlines:n,defaultFinalSubHeadline:"Compare quotes and save. Verify contact info:",finalSubHeadlines:i})}}();de.data.dynamicSchema=[function(e={}){return V("zipcode",((e,t,a={})=>(t?g:h)({label:t?a.label:"Zip Code:",help:t?a.help??"We try to match you with local help":null,placeholder:"#####",name:e?e+":Zip":"Zip",maxlength:5,inputmode:"numeric",autocomplete:"postal-code",validation:"required|matches:/^[0-9]{5}$/",validationMessages:{required:"Zip Code is required",matches:"Invalid Zip Code"},...a}))(e.scope,!0,e.input),"Please verify your Zip Code",e)}(),function(t={}){return V("timeframe",((t,a,n={})=>(a?c:d)(e({label:a?n.label:"What is the project timeframe?",name:t?t+":Timeframe":"Timeframe",options:["Immediate","1-6 Months","More than 6 Months"]},n)))(t.scope,!0,t.input),"What is the project timeframe?",t)}(),function(t={}){return V("ownHome",((t,a,n={})=>(a?c:d)(e({label:a?n.label:"Do you own the home?",name:t?t+":Own_Home":"Own_Home",options:["Yes","No","No but authorized"]},n)))(t.scope,!0,t.input),"Do you own the home?",t)}(),function(e={}){return e.nextOnInput=void 0!==e.nextOnInput&&e.nextOnInput,V("address",((e,t,a={})=>(t?g:h)({label:t?a.label:"Street Address:",placeholder:"10 Example St",name:e?e+":Address":"Address",autocomplete:"street-address","data-tf-sensitive":"false",minlength:5,maxlength:100,validationMessages:{minlength:"Invalid Address",required:"Address is required"},...a}))(e.scope,!0,e.input),"What is the street address of the home?",e)}(),function(e={}){const a={...e,nextOnEnter:!1};return Z("comments",[Q(e),v(e.scope,0,{label:void 0===e.label?"Please briefly describe your issue in a few words:":e.label,placeholder:e.placeholder||t,inputClass:void 0===e.inputClass?"!t-h-32":e.inputClass})],a)}({label:null,headline:"Please briefly describe your project:",headlineClass:"!t-text-dark"}),function(e={}){return Z("firstAndLast",[z({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),D({subheadline:e.subheadline??"Note: we never share info without consent",subheadlineClass:"!t-text-sm !t-text-gray-500"}),x(e.scope),y(e.scope)],e)}({headlineClass:"!t-text-dark"}),function(e={}){return Z("electricalCrossSellQuestions",[A({headline:"Connect With Electrical Pros"}),(t="true",a="CrossSell:Electrical",w("ElectricalQuestions",{if:t||'$get(Category).value == "Electrical"',children:[E(a),S(a)]})),v("CrossSell:Electrical",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return Z("flooringCrossSellQuestions",[A({headline:"Connect With Flooring Pros"}),(t="true",a="CrossSell:Flooring",w("FlooringQuestions",{if:t||'$get(Category).value == "Flooring"',children:[I(a),S(a)]})),v("CrossSell:Flooring",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return Z("landscapingCrossSellQuestions",[A({headline:"Connect With a Landscaper"}),(t="true",a="CrossSell:Landscaping",w("LandscapingQuestions",{if:t||'$get(Category).value == "Landscaping"',children:[_(a),S(a)]})),v("CrossSell:Landscaping",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return Z("paintingCrossSellQuestions",[A({headline:"Connect With a Painter"}),(t="true",a="CrossSell:Painting",w("PaintingQuestions",{if:t||'$get(Category).value == "Painting"',children:[j(a),k(a)]})),v("CrossSell:Painting",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return Z("plumbingCrossSellQuestions",[A({headline:"Connect With a Plumber"}),(t="true",a="CrossSell:Plumbing",w("PlumbingQuestions",{if:t||'$get(Category).value == "Plumbing"',children:[F(a),S(a)]})),v("CrossSell:Plumbing",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return Z("roofingCrossSellQuestions",[A({headline:"Connect With a Roofer"}),(t="true",a="CrossSell:Roofing",w("RoofingQuestions",{if:t||'$get(Category).value == "Roofing"',children:[R(a),q(a)]})),v("CrossSell:Roofing",0,{label:"Project Description:",placeholder:"Please describe your project in a few words...",inputClass:"!t-h-16"})],e);var t,a}(),function(e={}){return e.nextOnInput=!1,e.stepKey="$get(Category).value",Z("homeImprovementCrossSells",[Y(e),(e.scope,s({id:"HomeImprovement_CrossSells",name:"HomeImprovement_CrossSells",help:'Just hit "Next" if none apply',helpClass:"t-text-center !t-text-sm",validation:null,options:'$getCrossSellOptions($get(form), $getVal($get(form), "Category"))'}))],e)}({headlineClass:"!t-text-dark",nextStepMap:{values:{HomeImprovement_CrossSells:{Appliances:["appliancesCrossSellQuestions"],Carpentry:["carpentryCrossSellQuestions"],Driveways:["drivewaysCrossSellQuestions"],"Drywall and Plaster":["drywallCrossSellQuestions"],Electrical:["electricalCrossSellQuestions"],Flooring:["flooringCrossSellQuestions"],"Heating and Cooling":["heatingCoolingCrossSellQuestions"],Landscaping:["landscapingCrossSellQuestions"],"Masonry and Concrete":["masonryAndConcreteCrossSellQuestions"],Painting:["paintingCrossSellQuestions"],"Pest Control":["pestControlCrossSellQuestions"],Plumbing:["plumbingCrossSellQuestions"],Remodeling:["remodelingCrossSellQuestions"],Roofing:["roofingCrossSellQuestions"],Siding:["sidingCrossSellQuestions"],Windows:["windowsCrossSellQuestions"]},"*":["firstAndLast","contactInfo"]},appendSteps:["firstAndLast","contactInfo"],matchesAllowed:1}})];const ce=[de,e(te,pe),{$cmp:"FormKit",props:function(t){const a=e(J,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"generalContractors",redirectMap:function(t){return e(le,t)}(),crossSellOptionMap:oe}),children:[function(t){return e(ae,t)}(),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||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Get Started Here!")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Why do you need a contractor?")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-font-bold !t-text-[#465f87]"}),...ne,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return Z("generalContractorSubtype",[{$formkit:"hidden",name:"Category",id:"Category",value:"General Contractors"},P(e.scope,!0,e.input)],e)}({nextOnInput:!1,headlineClass:"t-text-lg",nextStepMap:{values:{"*":["comments","timeframe","ownHome","zipcode","address","homeImprovementCrossSells","firstAndLast","contactInfo"]}}}),function(e="Type_Of_Legal_Problem"){return{$cmp:"FormKitSchema",if:"$get("+e+").value",props:{schema:"$meta.dynamicSchema",data:"$buildData($meta)"}}}("Category"),function(e={}){return Z("contactInfo",[G(e),B(e),{$el:"script",if:"$activeStep === $lastStep()",children:K},b(e.scope),C(e.scope),$(e.scope),T()],{nextOnEnter:!1})}({headlineClass:"!t-text-[#465f87]",subheadlineClass:"!t-text-[#353739]"}),((e={})=>({$el:"div",attrs:{class:{if:"$activeStep === $firstStep()",then:"step-nav "+(e.firstStepButtonClass||"!t-justify-center sm:!t-justify-between"),else:"step-nav !t-justify-between"}},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",outerClass:{if:"$activeStep === $firstStep()",then:"t-hidden sm:t-block",else:""},style:{if:"$activeStep === $firstStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"button",name:"next_button",onClick:"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",children:{if:"$activeStep === $firstStep()",then:e.startText||"Start",else:"Next"},outerClass:{if:"$activeStep === $lastStep()",then:"t-hidden",else:""},style:{if:"$activeStep === $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" f-navigation-input"}},{$formkit:"submit",name:"submit_button",label:e.submitLabel||"Submit",if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"},classes:{input:(e.inputClass||"")+" !t-ml-2 sm:!t-ml-auto f-navigation-input"}}]}))({startText:"Get Quotes",inputClass:"!t-text-black !t-font-extrabold !t-bg-[#ffce51]"}),{$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 pe;return ce}();
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
[eval]:1
|
|
2
|
-
eval(fs.readFileSync(dist/forms/.iife.js)+); console.log(JSON.stringify(generalContractors));
|
|
3
|
-
^
|
|
4
|
-
|
|
5
|
-
SyntaxError: Unexpected token '.'
|
|
6
|
-
at makeContextifyScript (node:internal/vm:122:14)
|
|
7
|
-
at node:internal/process/execution:89:22
|
|
8
|
-
at [eval]-wrapper:6:24
|
|
9
|
-
at runScript (node:internal/process/execution:83:62)
|
|
10
|
-
at evalScript (node:internal/process/execution:114:10)
|
|
11
|
-
at node:internal/main/eval_string:30:3
|
|
12
|
-
|
|
13
|
-
Node.js v18.20.3
|
|
1
|
+
[{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by contractors 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.","defaultCommentsPlaceholder":"$getKey($meta, \"commentsPlaceholders.\" + $get(Category).value, $meta.defaultCommentsPlaceholder)","commentsPlaceholders":{"Additions":"Example: \"I would like to add a sunroom to my home\"","Appliances":"Example: \"I need to repair a dishwasher\"","Appraisals":"Example: \"I need to get my home appraised\"","Cabinets":"Example: \"I want to install new kitchen cabinets\"","Carpentry":"Example: \"I need someone to build custom shelves\"","Carpets":"Example: \"I want to replace the carpets in my living room\"","Cleaning":"Example: \"I need a professional cleaning service for my home\"","Countertops":"Example: \"I want to install granite countertops in my kitchen\"","Decks and Porches":"Example: \"I want to build a new deck in my backyard\"","Demolition":"Example: \"I need to demolish a wall in my home\"","Doors":"Example: \"I want to replace the front door of my house\"","Driveways":"Example: \"I need to repair my driveway\"","Drywall and Plaster":"Example: \"I need to repair a hole in my drywall\"","Electrical":"Example: \"I need an electrician to install new light fixtures\"","Fencing":"Example: \"I want to install a privacy fence in my backyard\"","Flooring":"Example: \"I want to install hardwood flooring in my living room\"","Foundations":"Example: \"I need to repair the foundation of my house\"","Garage Doors":"Example: \"I want to replace my garage door\"","General Contractors":"Example: \"I need a general contractor for a home renovation\"","Gutters":"Example: \"I need to clean and repair my gutters\"","Handyman":"Example: \"I need a handyman to fix various things around my house\"","Holiday Decorators":"Example: \"I want to hire someone to decorate my home for the holidays\"","Smart Home":"Example: \"I want to install a smart home automation system\"","Home Builders":"Example: \"I want to build a custom home\"","Home Inspection":"Example: \"I need a home inspection before buying a house\"","Home Organization":"Example: \"I need help organizing my closets and storage\"","Home Security":"Example: \"I want to install a home security system\"","Home Staging":"Example: \"I need a home staging service to prepare my house for sale\"","Home Theater":"Example: \"I want to set up a home theater system\"","Home Warranties":"Example: \"I want to purchase a home warranty\"","Hot Tubs":"Example: \"I want to install a hot tub in my backyard\"","Heating and Cooling":"Example: \"I need to repair my air conditioning unit\"","Insulation":"Example: \"I want to improve the insulation in my home\"","Junk Removal":"Example: \"I need a service to remove junk and debris from my property\"","Landscaping":"Example: \"I want to redesign my backyard landscaping\"","Locksmiths":"Example: \"I need a locksmith to change the locks on my doors\"","Masonry and Concrete":"Example: \"I need to repair a cracked concrete driveway\"","Restoration":"Example: \"I need water damage restoration services\"","Moving":"Example: \"I need a moving company to help me relocate\"","Painting":"Example: \"I want to paint the interior walls of my house\"","Pest Control":"Example: \"I need pest control services for my home\"","Pools":"Example: \"I want to install a swimming pool in my backyard\"","Plumbing":"Example: \"I need a plumber to fix a leaky faucet\"","Pressure Washing":"Example: \"I want to pressure wash the exterior of my house\"","Remodeling":"Example: \"I want to remodel my kitchen\"","Roofing":"Example: \"I need to repair a leaky roof\"","Sheds":"Example: \"I want to build a storage shed in my backyard\"","Siding":"Example: \"I want to replace the siding on my house\"","Solar":"Example: \"I want to install solar panels on my roof\"","Tiling":"Example: \"I want to install new tiles in my bathroom\"","Tree Services":"Example: \"I need a large tree removed\"","Walk-in Tubs":"Example: \"I want to install a walk-in tub in my bathroom\"","Waterproofing":"Example: \"I need to waterproof my basement\"","Window Cleaning":"Example: \"I need a professional window cleaning service\"","Windows":"Example: \"I want to replace 3 windows in my house\"","Not Sure or Other":"Example: \"I need general handyman services\""},"defaultFinalHeadline":"We Found Contractors!","finalHeadlines":{"Appliances":"We Have Appliance Pros Standing By!"},"defaultFinalSubHeadline":"Compare quotes and save. Verify contact info:","finalSubHeadlines":{"Appliances":"Who needs appliance help?"},"dynamicSchema":[{"$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","help":"We try to match you with local help","placeholder":"#####","name":"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":"Zip","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"timeframe\")","attrs":{"hidden":"$activeStep !== \"timeframe\"","key":"timeframe"},"children":[{"$formkit":"group","id":"timeframe","name":"timeframe","children":[{"$el":"h3","children":"What is the project timeframe?","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-2 t-pt-3","legendClass":"required","name":"Timeframe","options":["Immediate","1-6 Months","More than 6 Months"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-center","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-12","messagesClass":"t-flex t-justify-center","id":"Timeframe","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"ownHome\")","attrs":{"hidden":"$activeStep !== \"ownHome\"","key":"ownHome"},"children":[{"$formkit":"group","id":"ownHome","name":"ownHome","children":[{"$el":"h3","children":"Do you own the home?","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-2 t-pt-3","legendClass":"required","name":"Own_Home","options":["Yes","No","No but authorized"],"fieldsetClass":"$reset t-flex t-justify-center","innerClass":"t-items-center","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-12","messagesClass":"t-flex t-justify-center","id":"Own_Home","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"address\")","attrs":{"hidden":"$activeStep !== \"address\"","key":"address"},"children":[{"$formkit":"group","id":"address","name":"address","children":[{"$el":"h3","children":"What is the street address of the home?","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","validationMessages":{"minlength":"Invalid Address","required":"Address is required"},"labelClass":"required","placeholder":"10 Example St","name":"Address","autocomplete":"street-address","data-tf-sensitive":"false","minlength":5,"maxlength":100,"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":"Address","onKeypress":"$onEnter($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 your project:","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":"$getKey($meta, \"commentsPlaceholders.\" + $get(Category).value, $meta.defaultCommentsPlaceholder)","inputClass":"!t-h-32","id":"Comments"}]}]},{"$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","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","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(\"electricalCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"electricalCrossSellQuestions\"","key":"electricalCrossSellQuestions"},"children":[{"$formkit":"group","id":"electricalCrossSellQuestions","name":"electricalCrossSellQuestions","children":[{"$el":"h3","children":"Connect With Electrical Pros","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"ElectricalQuestions","id":"ElectricalQuestions","name":"ElectricalQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What electrical job type?","name":"CrossSell:Electrical:Electrical_Subtype","options":["Electrical Panel","Outlets and Fixtures","Home Theater","Exhaust Fans","Ceiling Fans","EV Charging Station","Addition or Remodel","Generator","Outdoor Lighting","Pet Fence","Thermostat","Wall or Baseboard Heater","Holiday Lighting","Not Sure or 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":"CrossSell:Electrical:Electrical_Subtype"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"What type of work?","name":"CrossSell:Electrical:Work_Type","options":["Install or Replace","Repair","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Electrical:Work_Type"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Electrical:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Electrical:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"flooringCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"flooringCrossSellQuestions\"","key":"flooringCrossSellQuestions"},"children":[{"$formkit":"group","id":"flooringCrossSellQuestions","name":"flooringCrossSellQuestions","children":[{"$el":"h3","children":"Connect With Flooring Pros","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"FlooringQuestions","id":"FlooringQuestions","name":"FlooringQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What flooring material?","name":"CrossSell:Flooring:Flooring_Material","options":["Carpet","Concrete","Hardwood","Laminate","Linoleum","Slate","Tile","Vinyl","Not Sure or 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":"CrossSell:Flooring:Flooring_Material"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"What type of work?","name":"CrossSell:Flooring:Work_Type","options":["Install or Replace","Repair","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Flooring:Work_Type"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Flooring:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Flooring:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"landscapingCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"landscapingCrossSellQuestions\"","key":"landscapingCrossSellQuestions"},"children":[{"$formkit":"group","id":"landscapingCrossSellQuestions","name":"landscapingCrossSellQuestions","children":[{"$el":"h3","children":"Connect With a Landscaper","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"LandscapingQuestions","id":"LandscapingQuestions","name":"LandscapingQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What landscaping job?","name":"CrossSell:Landscaping:Landscaping_Subtype","options":["Lawn Mowing","Lawn Care or Fertilization","Yard or Leaf Cleanup","Patios or Walkways","Stonework","Architects","Landscape Construction","Outdoor Lighting","Grading","Materials Delivery","Sprinklers"],"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":"CrossSell:Landscaping:Landscaping_Subtype"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"What type of work?","name":"CrossSell:Landscaping:Work_Type","options":["Install or Replace","Repair","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Landscaping:Work_Type"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Landscaping:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Landscaping:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"paintingCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"paintingCrossSellQuestions\"","key":"paintingCrossSellQuestions"},"children":[{"$formkit":"group","id":"paintingCrossSellQuestions","name":"paintingCrossSellQuestions","children":[{"$el":"h3","children":"Connect With a Painter","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"PaintingQuestions","id":"PaintingQuestions","name":"PaintingQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What painting job type?","name":"CrossSell:Painting:Painting_Subtype","options":["Whole Exterior","Exterior Touch-up","Interior Rooms","Interior Touch-up","Ceilings","Deck","Shed","Cabinets","Not Sure or 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":"CrossSell:Painting:Painting_Subtype"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"How many rooms?","name":"CrossSell:Painting:Number_Of_Rooms","options":["1-2","3-4","4-5","5-6","6+"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Painting:Number_Of_Rooms"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Painting:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Painting:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"plumbingCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"plumbingCrossSellQuestions\"","key":"plumbingCrossSellQuestions"},"children":[{"$formkit":"group","id":"plumbingCrossSellQuestions","name":"plumbingCrossSellQuestions","children":[{"$el":"h3","children":"Connect With a Plumber","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"PlumbingQuestions","id":"PlumbingQuestions","name":"PlumbingQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What plumbing job type?","name":"CrossSell:Plumbing:Plumbing_Subtype","options":["Tub or Shower","Drain","Sink","Toilet","Boiler","Water Heater","Sump Pump","Piping","Septic","Water Main","Hot Tub","Additions and Remodels","Not Sure or 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":"CrossSell:Plumbing:Plumbing_Subtype"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"What type of work?","name":"CrossSell:Plumbing:Work_Type","options":["Install or Replace","Repair","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Plumbing:Work_Type"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Plumbing:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Plumbing:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"roofingCrossSellQuestions\")","attrs":{"hidden":"$activeStep !== \"roofingCrossSellQuestions\"","key":"roofingCrossSellQuestions"},"children":[{"$formkit":"group","id":"roofingCrossSellQuestions","name":"roofingCrossSellQuestions","children":[{"$el":"h3","children":"Connect With a Roofer","attrs":{"class":"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1"}},{"$cmp":"FormKit","props":{"type":"group","key":"RoofingQuestions","id":"RoofingQuestions","name":"RoofingQuestions"},"if":"true","children":[{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-bg-white","labelClass":"required","label":"What roofing material?","name":"CrossSell:Roofing:Roofing_Material","options":["Asphalt Shingle","Metal","Composite","Flat","Foam","Tile","Wood","Slate","Not Sure or 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":"CrossSell:Roofing:Roofing_Material"},{"$formkit":"radio","validation":"required","validationMessages":{"required":"Field is required"},"optionsClass":"t-pl-1","legendClass":"legend-left required","label":"What type of work?","name":"CrossSell:Roofing:Roofing_Work_Type","options":["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","Not Sure or Other"],"fieldsetClass":"$reset side-by-side","innerClass":"t-flex t-items-center","wrapperClass":"t-mb-3","id":"CrossSell:Roofing:Roofing_Work_Type"}]},{"$formkit":"textarea","rows":5,"maxlength":500,"validation":"required","validationMessages":{"required":"Field is required"},"innerClass":"t-max-w-xl","labelClass":"required","name":"CrossSell:Roofing:Comments","label":"Project Description:","placeholder":"Please describe your project in a few words...","inputClass":"!t-h-16","id":"CrossSell:Roofing:Comments","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"homeImprovementCrossSells\")","attrs":{"hidden":"$activeStep !== \"homeImprovementCrossSells\"","key":"$get(Category).value"},"children":[{"$formkit":"group","id":"homeImprovementCrossSells","name":"homeImprovementCrossSells","nextStepMap":{"values":{"HomeImprovement_CrossSells":{"Appliances":["appliancesCrossSellQuestions"],"Carpentry":["carpentryCrossSellQuestions"],"Driveways":["drivewaysCrossSellQuestions"],"Drywall and Plaster":["drywallCrossSellQuestions"],"Electrical":["electricalCrossSellQuestions"],"Flooring":["flooringCrossSellQuestions"],"Heating and Cooling":["heatingCoolingCrossSellQuestions"],"Landscaping":["landscapingCrossSellQuestions"],"Masonry and Concrete":["masonryAndConcreteCrossSellQuestions"],"Painting":["paintingCrossSellQuestions"],"Pest Control":["pestControlCrossSellQuestions"],"Plumbing":["plumbingCrossSellQuestions"],"Remodeling":["remodelingCrossSellQuestions"],"Roofing":["roofingCrossSellQuestions"],"Siding":["sidingCrossSellQuestions"],"Windows":["windowsCrossSellQuestions"]},"*":["firstAndLast","contactInfo"]},"appendSteps":["firstAndLast","contactInfo"],"matchesAllowed":1},"children":[{"$el":"h3","children":"Interested in free quotes for other projects?","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":"checkbox","validation":null,"validationMessages":{"required":"Field is required"},"id":"HomeImprovement_CrossSells","name":"HomeImprovement_CrossSells","help":"Just hit \"Next\" if none apply","helpClass":"t-mt-0 t-mb-4 !t-text-sm t-text-center","options":"$getCrossSellOptions($get(form), $getVal($get(form), \"Category\"))","legendClass":"required t-w-[100%] t-text-center","fieldsetClass":"$reset t-flex t-justify-center t-flex-col","innerClass":"t-items-start","wrapperClass":"$reset t-flex t-cursor-pointer t-mb-3","optionClass":"t-pl-4 md:t-pl-16 md:t-min-w-[200px]","optionsClass":"t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2","messagesClass":"t-flex t-justify-center","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]}},{"$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":"generalContractors","redirectMap":{"*":"https://listings.zipcontractor.com/api/v1/redirect?zone_id=4&vertical=HomeImprovement&category=${properties.Category}&zip_code=${properties.Zip}&sub_id=${properties.vid}"},"crossSellOptionMap":{"Additions":["Painting","Landscaping","Plumbing","Appliances","Heating and Cooling","Driveways"],"Electrical":["Painting","Plumbing","Drywall and Plaster","Flooring","Remodeling","Roofing"],"Flooring":["Painting","Plumbing","Electrical","Carpentry","Remodeling","Roofing"],"General Contractors":["Painting","Plumbing","Electrical","Flooring","Landscaping","Roofing"],"Home Builders":["Painting","Driveways","Masonry and Concrete","Pest Control","Landscaping","Windows"],"Painting":["Plumbing","Electrical","Flooring","Remodeling","Roofing","Windows"],"Plumbing":["Painting","Appliances","Electrical","Flooring","Remodeling","Roofing"],"Remodeling":["Painting","Landscaping","Electrical","Flooring","Masonry and Concrete","Roofing"],"Roofing":["Painting","Plumbing","Electrical","Flooring","Remodeling","Windows"],"*":["Painting","Plumbing","Electrical","Siding","Remodeling","Roofing"]},"name":"generalContractors"},"children":[{"$el":"div","attrs":{"class":"t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center","style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"display: none"}},"children":[{"$el":"div","attrs":{"class":"t-flex t-justify-center"},"children":[{"$el":"span","attrs":{"id":"progress-bar-text","class":"t-text-sm t-mb-1"},"children":["0% Complete"]}]},{"$el":"div","attrs":{"class":"t-bg-gray-100 t-w-9/12 t-rounded"},"children":[{"$el":"div","attrs":{"id":"progress-bar","class":"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]","style":{"transition":"width 0.5s ease"}}}]}]},{"$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 f-first-headline"},"children":"$urlParam(\"hl\", \"Get Started Here!\")","if":"$activeStep === $firstStep()"},{"$el":"h3","attrs":{"class":"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Why do you need a contractor?\")","if":"$activeStep === $firstStep()","subheadlineClass":"!t-font-bold !t-text-[#465f87]"},{"$formkit":"hidden","name":"vertical","value":"HomeImprovement"},{"$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(\"generalContractorSubtype\")","attrs":{"hidden":"$activeStep !== \"generalContractorSubtype\"","key":"generalContractorSubtype"},"children":[{"$formkit":"group","id":"generalContractorSubtype","name":"generalContractorSubtype","nextStepMap":{"values":{"*":["comments","timeframe","ownHome","zipcode","address","homeImprovementCrossSells","firstAndLast","contactInfo"]}},"children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"General Contractors"},{"$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":"General_Contractor_Subtype","options":["Remodeling","Additions","Major Home Repairs","Excavation","Demolition","Dumpster Rental","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":"General_Contractor_Subtype","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$cmp":"FormKitSchema","if":"$get(Category).value","props":{"schema":"$meta.dynamicSchema","data":"$buildData($meta)"}},{"$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 !t-text-[#465f87] f-contact-info-headline"}},{"$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-6 t-pt-0 t-px-3 !t-text-[#353739] f-contact-info-subheadline"}},{"$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":"Phone Number 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","__raw__sectionsSchema":{"label":{"attrs":{"innerHTML":"$label"}}},"name":"TCPA_Opt_In","data-tf-sensitive":"false","validation":"required|accepted","validationMessages":{"required":"Consent is required","accepted":"Consent is required"},"classes":{"outer":"","wrapper":"","messages":"","label":"t-text-xs t-text-slate-500 t-font-normal !t-leading-[0.9rem]"}},{"$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":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center sm:!t-justify-between","else":"step-nav !t-justify-between"}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$activeStep === $firstStep()","then":"t-hidden sm:t-block","else":""},"style":{"if":"$activeStep === $firstStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"button","name":"next_button","onClick":"$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))","children":{"if":"$activeStep === $firstStep()","then":"Get Quotes","else":"Next"},"outerClass":{"if":"$activeStep === $lastStep()","then":"t-hidden","else":""},"style":{"if":"$activeStep === $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input"}},{"$formkit":"submit","name":"submit_button","label":"Submit","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] !t-ml-2 sm:!t-ml-auto f-navigation-input"}}]},{"$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"}}]}]}]}]
|
|
@@ -84,10 +84,15 @@ const CROSS_SELL_OPTION_MAP_HOME_IMPROVEMENT = {
|
|
|
84
84
|
|
|
85
85
|
// ------ Common Base Settings
|
|
86
86
|
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
|
|
87
|
+
const ensureIds = (cfg) => {
|
|
88
|
+
if (cfg.name && !cfg.id) {
|
|
89
|
+
cfg.id = cfg.name;
|
|
90
90
|
}
|
|
91
|
+
return cfg
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const checkbox = (updates) => {
|
|
95
|
+
ensureIds(updates);
|
|
91
96
|
return merge(
|
|
92
97
|
{
|
|
93
98
|
$formkit: "checkbox",
|
|
@@ -115,9 +120,7 @@ const verticalCol2Checkbox = (updates) => {
|
|
|
115
120
|
};
|
|
116
121
|
|
|
117
122
|
const radio = (updates) => {
|
|
118
|
-
|
|
119
|
-
updates.id = updates.name;
|
|
120
|
-
}
|
|
123
|
+
ensureIds(updates);
|
|
121
124
|
return merge(
|
|
122
125
|
{
|
|
123
126
|
$formkit: "radio",
|
|
@@ -168,9 +171,7 @@ const verticalRadio = (updates) => {
|
|
|
168
171
|
};
|
|
169
172
|
|
|
170
173
|
const select = (updates) => {
|
|
171
|
-
|
|
172
|
-
updates.id = updates.name;
|
|
173
|
-
}
|
|
174
|
+
ensureIds(updates);
|
|
174
175
|
return merge(
|
|
175
176
|
{
|
|
176
177
|
$formkit: "select",
|
|
@@ -204,9 +205,7 @@ const verticalSelect = (updates) => {
|
|
|
204
205
|
};
|
|
205
206
|
|
|
206
207
|
const text = (updates) => {
|
|
207
|
-
|
|
208
|
-
updates.id = updates.name;
|
|
209
|
-
}
|
|
208
|
+
ensureIds(updates);
|
|
210
209
|
return merge(
|
|
211
210
|
{
|
|
212
211
|
$formkit: "text",
|
|
@@ -234,9 +233,7 @@ const verticalText = (updates) => {
|
|
|
234
233
|
};
|
|
235
234
|
|
|
236
235
|
const textArea = (updates) => {
|
|
237
|
-
|
|
238
|
-
updates.id = updates.name;
|
|
239
|
-
}
|
|
236
|
+
ensureIds(updates);
|
|
240
237
|
return merge(
|
|
241
238
|
{
|
|
242
239
|
$formkit: "textarea",
|