bhl-forms 0.11.17 → 0.11.19
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 +450 -439
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +483 -469
- package/dist/bhl-forms.modern.iife.js +3 -3
- package/dist/bhl-forms.modern.umd.js +3 -3
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/applianceRepair.es.js +1 -1
- package/dist/forms/applianceRepair.iife.js +1 -1
- package/dist/forms/applianceRepair.json +1 -1
- package/dist/forms/applianceRepairMinimal.es.js +1 -1
- package/dist/forms/applianceRepairMinimal.iife.js +1 -1
- package/dist/forms/applianceRepairMinimal.json +1 -1
- package/dist/forms/electrical.es.js +145 -4
- package/dist/forms/electrical.iife.js +1 -1
- package/dist/forms/electrical.json +1 -1
- package/dist/forms/generalContractors.es.js +5 -1
- package/dist/forms/generalContractors.iife.js +1 -1
- package/dist/forms/generalContractors.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +6 -2
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +6 -2
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -1
- package/dist/forms/plumbing.es.js +145 -4
- package/dist/forms/plumbing.iife.js +1 -1
- package/dist/forms/plumbing.json +1 -1
- package/dist/forms/roofing.es.js +84 -4
- package/dist/forms/roofing.iife.js +1 -1
- package/dist/forms/roofing.json +1 -1
- package/dist/forms/windows.es.js +5 -1
- package/dist/forms/windows.iife.js +1 -1
- package/dist/forms/windows.json +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,42 @@ const ensureIds = (cfg) => {
|
|
|
27
27
|
return cfg
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
const radio = (updates) => {
|
|
31
|
+
ensureIds(updates);
|
|
32
|
+
return merge(
|
|
33
|
+
{
|
|
34
|
+
$formkit: "radio",
|
|
35
|
+
validation: "required",
|
|
36
|
+
validationMessages: {
|
|
37
|
+
required: "Field is required",
|
|
38
|
+
},
|
|
39
|
+
optionsClass: "t-pt-3 t-pl-1",
|
|
40
|
+
legendClass: "required",
|
|
41
|
+
},
|
|
42
|
+
updates
|
|
43
|
+
)
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const sbsRadio = (updates) => {
|
|
47
|
+
updates.legendClass = "legend-left required";
|
|
48
|
+
updates.fieldsetClass = "$reset side-by-side";
|
|
49
|
+
updates.optionsClass = "t-pl-1";
|
|
50
|
+
updates.innerClass = "t-flex t-items-center";
|
|
51
|
+
updates.wrapperClass = "t-mb-3";
|
|
52
|
+
return radio(updates)
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const verticalRadio = (updates) => {
|
|
56
|
+
updates.legendClass = "required";
|
|
57
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center";
|
|
58
|
+
updates.optionsClass = "t-pl-2 t-pt-3";
|
|
59
|
+
updates.innerClass = "t-items-center";
|
|
60
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
61
|
+
updates.optionClass = "t-pl-4 md:t-pl-12";
|
|
62
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
63
|
+
return radio(updates)
|
|
64
|
+
};
|
|
65
|
+
|
|
30
66
|
const select = (updates) => {
|
|
31
67
|
ensureIds(updates);
|
|
32
68
|
return merge(
|
|
@@ -89,6 +125,31 @@ const verticalText = (updates) => {
|
|
|
89
125
|
return text(updates)
|
|
90
126
|
};
|
|
91
127
|
|
|
128
|
+
// ------ Common Inputs
|
|
129
|
+
|
|
130
|
+
const address$1 = (scope, vertical, updates = {}) => {
|
|
131
|
+
const func = vertical ? verticalText : sbsText;
|
|
132
|
+
const label = vertical ? updates.label : "Street Address:";
|
|
133
|
+
return func({
|
|
134
|
+
label,
|
|
135
|
+
placeholder: "10 Example St",
|
|
136
|
+
name: scope ? scope + ":" + "Address" : "Address",
|
|
137
|
+
autocomplete: "street-address",
|
|
138
|
+
"data-tf-sensitive": "false",
|
|
139
|
+
minlength: 5,
|
|
140
|
+
maxlength: 100,
|
|
141
|
+
validation: [
|
|
142
|
+
["required"],
|
|
143
|
+
["matches", /^(?=.*\d)(?=.*[A-Za-z])(?=.*\s).{6,100}$/], // digit + space + letter, N chars
|
|
144
|
+
],
|
|
145
|
+
validationMessages: {
|
|
146
|
+
matches: "Invalid Address",
|
|
147
|
+
required: "Address is required",
|
|
148
|
+
},
|
|
149
|
+
...updates,
|
|
150
|
+
})
|
|
151
|
+
};
|
|
152
|
+
|
|
92
153
|
const emailFL = (scope, updates = {}) => {
|
|
93
154
|
return text({
|
|
94
155
|
$formkit: "FloatingLabelText",
|
|
@@ -216,6 +277,51 @@ const TCPAConsent = (scope, updates = {}) => ({
|
|
|
216
277
|
},
|
|
217
278
|
});
|
|
218
279
|
|
|
280
|
+
const timeframe$1 = (scope, vertical, updates = {}) => {
|
|
281
|
+
const func = vertical ? verticalRadio : sbsRadio;
|
|
282
|
+
const label = vertical ? updates.label : "What is the project timeframe?";
|
|
283
|
+
return func(
|
|
284
|
+
merge(
|
|
285
|
+
{
|
|
286
|
+
label,
|
|
287
|
+
name: scope ? scope + ":" + "Timeframe" : "Timeframe",
|
|
288
|
+
options: ["Immediate", "1-6 Months", "More than 6 Months"],
|
|
289
|
+
},
|
|
290
|
+
updates
|
|
291
|
+
)
|
|
292
|
+
)
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
const ownHome$1 = (scope, vertical, updates = {}) => {
|
|
296
|
+
const func = vertical ? verticalRadio : sbsRadio;
|
|
297
|
+
const label = vertical ? updates.label : "Do you own the home?";
|
|
298
|
+
return func(
|
|
299
|
+
merge(
|
|
300
|
+
{
|
|
301
|
+
label,
|
|
302
|
+
name: scope ? scope + ":" + "Own_Home" : "Own_Home",
|
|
303
|
+
options: ["Yes", "No", "No but authorized"],
|
|
304
|
+
},
|
|
305
|
+
updates
|
|
306
|
+
)
|
|
307
|
+
)
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
const homeImprovementWorkType$1 = (scope, vertical, updates = {}) => {
|
|
311
|
+
const func = vertical ? verticalRadio : sbsRadio;
|
|
312
|
+
const label = vertical ? updates.label : "What type of work?";
|
|
313
|
+
return func(
|
|
314
|
+
merge(
|
|
315
|
+
{
|
|
316
|
+
label,
|
|
317
|
+
name: scope ? scope + ":" + "Work_Type" : "Work_Type",
|
|
318
|
+
options: ["Install or Replace", "Repair", "Not Sure or Other"],
|
|
319
|
+
},
|
|
320
|
+
updates
|
|
321
|
+
)
|
|
322
|
+
)
|
|
323
|
+
};
|
|
324
|
+
|
|
219
325
|
const electricalSubtype$1 = (scope, vertical, updates = {}) => {
|
|
220
326
|
const func = vertical ? verticalSelect : sbsSelect;
|
|
221
327
|
const label = vertical ? updates.label : "What electrical job type?";
|
|
@@ -466,6 +572,18 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
|
466
572
|
)
|
|
467
573
|
}
|
|
468
574
|
|
|
575
|
+
// ------ Common Steps
|
|
576
|
+
|
|
577
|
+
function address(updates = {}) {
|
|
578
|
+
updates.nextOnInput = typeof updates.nextOnInput === "undefined" ? false : updates.nextOnInput;
|
|
579
|
+
return sqstep(
|
|
580
|
+
"address",
|
|
581
|
+
address$1(updates.scope, true, updates.input),
|
|
582
|
+
"What is the street address of the home?",
|
|
583
|
+
updates
|
|
584
|
+
)
|
|
585
|
+
}
|
|
586
|
+
|
|
469
587
|
function contactInfoV2(updates = {}) {
|
|
470
588
|
return step(
|
|
471
589
|
"contactInfo",
|
|
@@ -519,6 +637,28 @@ function firstAndLastV4(updates = {}) {
|
|
|
519
637
|
)
|
|
520
638
|
}
|
|
521
639
|
|
|
640
|
+
function timeframe(updates = {}) {
|
|
641
|
+
return sqstep(
|
|
642
|
+
"timeframe",
|
|
643
|
+
timeframe$1(updates.scope, true, updates.input),
|
|
644
|
+
"What is the project timeframe?",
|
|
645
|
+
updates
|
|
646
|
+
)
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
function ownHome(updates = {}) {
|
|
650
|
+
return sqstep("ownHome", ownHome$1(updates.scope, true, updates.input), "Do you own the home?", updates)
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function homeImprovementWorkType(updates = {}) {
|
|
654
|
+
return sqstep(
|
|
655
|
+
"homeImprovementWorkType",
|
|
656
|
+
homeImprovementWorkType$1(updates.scope, true, updates.input),
|
|
657
|
+
"Is it a repair or install job?",
|
|
658
|
+
updates
|
|
659
|
+
)
|
|
660
|
+
}
|
|
661
|
+
|
|
522
662
|
function electricalFirstStep(updates = {}) {
|
|
523
663
|
return step(
|
|
524
664
|
"electricalFirstStep",
|
|
@@ -1481,7 +1621,7 @@ const schema = [
|
|
|
1481
1621
|
props: formProps({
|
|
1482
1622
|
formId: "electrical",
|
|
1483
1623
|
redirectMap: {
|
|
1484
|
-
"*": "/thank-you",
|
|
1624
|
+
"*": "/thank-you?zip_code=${properties.Zip}&s=${properties.s}",
|
|
1485
1625
|
},
|
|
1486
1626
|
}),
|
|
1487
1627
|
children: [
|
|
@@ -1514,9 +1654,10 @@ const schema = [
|
|
|
1514
1654
|
inputClass: "t-text-center",
|
|
1515
1655
|
},
|
|
1516
1656
|
}),
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1657
|
+
homeImprovementWorkType(),
|
|
1658
|
+
timeframe(),
|
|
1659
|
+
ownHome(),
|
|
1660
|
+
address(),
|
|
1520
1661
|
// steps.commentsHeadline({
|
|
1521
1662
|
// label: null,
|
|
1522
1663
|
// headline: "Please briefly describe your project:",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var electrical=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=e=>(e.name&&!e.id&&(e.id=e.name),e),a=a=>(t(a),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},a)),n=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]",a(e)),r=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.inputClass||""),e.helpClass="t-mt-2.5 t-text-center",a(e)),s=a=>(t(a),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},a)),i=e=>(e.wrapperClass="side-by-side t-items-center",s(e)),l=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",s(e)),o=(e,t={})=>s({$formkit:"FloatingLabelText",name:e?e+":Email":"Email",placeholder:"Email Address",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"},inputClass:"t-text-center",wrapperClass:"t-flex t-justify-center",...t}),c=(e,t={})=>s({$formkit:"FloatingLabelText",placeholder:"First Name",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"},inputClass:"t-text-center",...t}),m=(e,t={})=>s({$formkit:"FloatingLabelText",placeholder:"Last Name",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"},inputClass:"t-text-center",...t}),d=(e,t={})=>({$el:"div",attrs:{class:"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},children:[c(e,{outerClass:"sm:!t-max-w-[49%]",...t}),m(e,{outerClass:"sm:!t-max-w-[49%]",...t})]}),p=(e,t={})=>s({$formkit:"FloatingLabelText",datatype:"tel",name:e?e+":Primary_Phone":"Primary_Phone",placeholder:t.placeholder||"Phone Number",maxlength:14,help:t.help||null,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 (XXX) YYY-ZZZZ",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]",inputClass:"t-text-center",wrapperClass:"t-flex t-justify-center",...t}),u=(e,t,a={})=>(t?l:i)({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}),f=(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-[0.7rem] t-text-slate-500 t-font-normal !t-leading-[0.9rem]"+(t.labelClass?" "+t.labelClass:"")}}),y=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,h=e=>{if(y(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(y(a))return a;const n=h(a);if(n)return n}return null},g={$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 x(t={}){return e(g,t)}function v(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function w(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function C(e){return{$el:"h3",children:e.headline||'$getKey($meta, "finalHeadlines." + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)',attrs:{class:"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 "+(e.headlineClass||"")+" f-contact-info-headline"}}}function b(e){return{$el:"h5",children:e.subheadline||'$getKey($meta, "finalSubHeadlines." + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)',attrs:{class:"t-flex t-justify-center t-text-center !t-text-base md:!t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 "+(e.subheadlineClass||"")+" f-contact-info-subheadline"}}}function $(t,a,n={}){const{nextOnEnter:r=!0,nextOnInput:s=!1,stepKey:i,nextStepMap:l,triggerRedirectMap:o,autoFocus:c}=n;if(a&&a.length&&(r||s)){const e=h(a[a.length-1]);e&&!0===r&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===s&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}return e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,i),{children:[{$formkit:"group",id:t,name:t,nextStepMap:l,triggerRedirectMap:o,autoFocus:c,children:a}]})}const S={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function I(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const E={};const P={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const k={$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 T=[{$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}],L=["haveAttorney","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],D=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],A=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],O={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...D],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",...L],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...A],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...L],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",...L],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...D],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...D],"Civil Rights and Discrimination":["civilRightsType",...L],"Civil Lawsuit":["civilDefense","lawsuitOtherParty",...L],"File a Lawsuit":["civilLawsuitTOLPDisplay","lawsuitOtherParty",...L],"Defend a Lawsuit":["lawsuitOtherParty",...L],"Consumer Lawyers":["consumerLawyerType","incidentDate","lawsuitOtherParty",...L],"Criminal and Felony":["criminalTOLPDisplay","crimeCommittedDate","roleInMatterCriminal","pendingCharges",...D],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",...L],"Divorce and Separation":["maritalStatus","haveChildren",...D],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",...L],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",...L],Expungement:["incidentDate","criminalChargeType",...D],"Family Issues":["maritalStatus","haveChildren",...D],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",...L],Guardianship:["maritalStatus","haveChildren",...D],"Immigration and Visas":["countryOfCitizenship","immigrationLocation","immigrationEntry","immigrationType","immigrationStatus","immigrationDetails",...L],"Landlord and Tenant":["landlordTenantIssue","landlordTenantParty",...L],"Lemon Law":["incidentDate","lawsuitOtherParty",...L],"Long Term Disability":["applicantOccupation","applicantAge","applicantLTDisabilityPolicy","applicantDisabilityHowObtain","applicantPreviouslyAppliedLtdBenefits","applicantReceivedDisabilityBenefits","applicantMonthlySalary",...A],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",...L],"Patents and Intellectual Property":["patentAssistanceType","patentFor",...L],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...A],"Probate and Estates":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...L],"Property Damage":["wouldLikeLawyerTo",...L],"Real Estate":["realEstateTOLPDisplay","realEstateArea","wouldLikeLawyerTo",...L],"Social Security Disability and Insurance":["applicantAge","disabilityConditionStopWork","disabilityWorkHistory","socialSecurityDisabilityReceivingBenefits","doctorTreatment",...A],"Tax and IRS":["totalDebt","taxProblemDetails","taxLevel","taxIssueType",...L],"Traffic and Tickets":["driversLicenseType","trafficViolations","haveCourtDate",...L],Unemployment:["numEmployeesOfBusiness","employerType","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],"Victim of a Crime":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...D],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",...L],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...A],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",...L],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",...L],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...A],"Wrongful Termination":["numEmployeesOfBusiness","employerType",...L]},"*":L}};function _(e,t=[],a={}){const n={...e};return n.values=function e(n){const r={};for(const s in n)Array.isArray(n[s])?r[s]=n[s].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof n[s]?r[s]=e(n[s]):r[s]=n[s];return r}(e.values),n}_(O,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const F=O.values.Type_Of_Legal_Problem;F["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),F["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),F["Personal Injury"].filter((e=>"legalCrossSells"!==e)),F["Personal Injury"].filter((e=>"legalCrossSells"!==e)),F["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),F["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),F["Personal Injury"].filter((e=>"legalCrossSells"!==e)),F["Personal Injury"].filter((e=>"legalCrossSells"!==e)),F["Child Custody"],F["Child Support"],O.values["*"],F["Family Issues"],F["Child Support"],F["Child Custody"],O.values["*"],F["Divorce and Separation"],F["Defend a Lawsuit"],F["File a Lawsuit"];_({values:{Type_Of_Legal_Problem:{"Defend a Lawsuit":F["Defend a Lawsuit"],"File a Lawsuit":F["File a Lawsuit"]},"*":["lawsuitOtherParty",...L]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});_({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":F["Auto and Car Accidents"],"Contract Disputes":F["Business Lawyers"],"Dog Bite":F["Personal Injury"],"Employment and Workplace":F["Employment and Workplace"],Fraud:F["Consumer Lawyers"],"Medical Malpractice":F["Medical Malpractice"],"Personal Injury":F["Personal Injury"],"Property Damage":F["Property Damage"],"Real Estate":F["Real Estate"],"Not Sure or Other":O.values["*"]},"*":["lawsuitOtherParty",...L]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});_({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":F["Victim of a Crime"],"DUI and DWI":F["DUI and DWI"],Expungement:F.Expungement,"Not Sure or Other":O.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...D]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});_({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":F["Wrongful Termination"],"Workers Compensation":F["Workers Compensation"],"Personal Injury":F["Personal Injury"],Unemployment:F.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",...L]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),F["Workplace Harassment"],F["Workplace Discrimination"],F["Probate and Estates"],F["Wills and Trusts"],F["Wrongful Death"],F["Patents and Intellectual Property"],F["Business Lawyers"],F["Business Lawyers"],O.values["*"];_({values:{Type_Of_Legal_Problem_Display:{Foreclosure:F.Foreclosure,"Landlord and Tenant":F["Landlord and Tenant"],"Wills, Trusts, and Estates":F["Wills and Trusts"],"Property Damage":F["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",...L]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const W={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"'},j={Appliances:"Pros Are Standing By!",Electrical:"Electricians Are Standing By!",Plumbing:"Plumbers Are Standing By!",Roofing:"Roofers Are Standing By!"},H={Additions:"Get your dream addition started today!",Appliances:"Compare quotes and save.",Appraisals:"Accurate home appraisals at your service.",Cabinets:"Transform your kitchen with new cabinets.",Carpentry:"Custom carpentry solutions for your home.",Carpets:"Upgrade your home with new carpets.",Cleaning:"Professional cleaning services for a spotless home.",Countertops:"Install beautiful countertops in your kitchen.","Decks and Porches":"Build the perfect outdoor space.",Demolition:"Safe and efficient demolition services.",Doors:"Enhance your home with new doors.",Driveways:"Repair or install a new driveway.","Drywall and Plaster":"Expert drywall and plaster services.",Electrical:"Get a quote from a trusted pro.",Fencing:"Secure your property with new fencing.",Flooring:"Install stunning new floors.",Foundations:"Foundation repair and maintenance.","Garage Doors":"Upgrade your garage with new doors.","General Contractors":"Top contractors for your home projects.",Gutters:"Clean and repair your gutters.",Handyman:"Handyman services for all your needs.","Holiday Decorators":"Get your home ready for the holidays.","Smart Home":"Upgrade to a smart home today.","Home Builders":"Build your custom dream home.","Home Inspection":"Thorough home inspections for peace of mind.","Home Organization":"Organize your home with expert help.","Home Security":"Protect your home with a security system.","Home Staging":"Stage your home for a quick sale.","Home Theater":"Create the ultimate home theater.","Home Warranties":"Get a warranty for your home.","Hot Tubs":"Install a relaxing hot tub.","Heating and Cooling":"HVAC repair and installation.",Insulation:"Improve your home's insulation.","Junk Removal":"Remove unwanted junk from your property.",Landscaping:"Transform your yard with expert landscaping.",Locksmiths:"Professional locksmith services.","Masonry and Concrete":"Expert masonry and concrete work.",Restoration:"Restore your home after damage.",Moving:"Reliable moving services.",Painting:"Professional painting services.","Pest Control":"Effective pest control solutions.",Pools:"Install or repair your pool.",Plumbing:"Get a quote from a trusted pro.","Pressure Washing":"Pressure wash your home's exterior.",Remodeling:"Remodel your home with top professionals.",Roofing:"Get a quote from a local roofer.",Sheds:"Build a new shed for extra storage.",Siding:"Upgrade your home's siding.",Solar:"Install solar panels and save on energy.",Tiling:"Install beautiful new tiles.","Walk-in Tubs":"Install a convenient walk-in tub.",Waterproofing:"Waterproof your home to prevent damage.","Window Cleaning":"Professional window cleaning services.",Windows:"Replace your windows with energy-efficient options."};var B;return[function(t=null){let a=W,n=j,r=H;return t&&(a=I(W,t),n=I(j,t),r=I(H,t)),{type:"meta",data:e(E,{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:a,defaultFinalHeadline:"We Found Matching Contractors!",finalHeadlines:n,defaultFinalSubHeadline:"Compare quotes and save. Verify contact info:",finalSubHeadlines:r})}}(),(B={children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-80px",left:0}}}]},e(P,B)),{$cmp:"FormKit",props:function(t){const a=e(S,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"electrical",redirectMap:{"*":"/thank-you"}}),children:[function(t){return e(k,t)}(),function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Get Electrical Quotes")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Please Enter Your Zip Code:")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-font-bold !t-text-[#465f87]"}),...T,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return $("electricalFirstStep",[{$formkit:"hidden",name:"Category",id:"Category",value:"Electrical"},u(e.scope,!0,e.input)],e)}({nextOnInput:!1,headlineClass:"t-text-lg",input:{help:null}}),function(t={}){return function(e,t,a,n={}){return void 0===n.nextOnInput&&(n.nextOnInput=!0),$(e,[v({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n)}("electricalSubtype",((t,a,s={})=>(a?r:n)(e({label:a?s.label:"What electrical job type?",name:t?t+":Electrical_Subtype":"Electrical_Subtype",options:["Addition or Remodel","Ceiling Fans","Electrical Panel","EV Charging Station","Exhaust Fans","Generator","Holiday Lighting","Home Theater","Outdoor Lighting","Outlets and Fixtures","Pet Fence","Thermostat","Wall or Baseboard Heater","Not Sure or Other"]},s)))(t.scope,!0,t.input),"Select an electrical job type:",t)}({input:{inputClass:"t-text-center"}}),function(e={}){return $("firstAndLast",[w({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),{$el:"div",attrs:{class:"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},children:[d(e.scope)]}],e)}({headlineClass:"!t-text-dark",headline:"Who is looking for an electrician?"}),function(e={}){return $("contactInfo",[C(e),b(e),{$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})();"},{$el:"div",attrs:{class:"t-flex t-flex-col t-justify-center t-items-center"},children:[o(e.scope,{outerClass:"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",innerClass:"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]"}),p(e.scope,{outerClass:"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",innerClass:"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]"})]},f(e.scope,{outerClass:"!t-flex !t-flex-col !t-justify-center !t-items-center",wrapperClass:"t-w-[95%] sm:t-w-[80%]",messagesClass:"t-w-[95%] sm:t-w-[80%]"})],{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:{if:"$activeStep === $lastStep()",then:"step-nav !t-justify-center ",else:"step-nav !t-justify-between"}}},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",outerClass:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"t-hidden sm:t-block",else:""},style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",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||"")+" f-navigation-input !t-w-60",outer:"!t-mt-0 !t-mb-0"}}]}))({startText:"Get Quotes Now",submitLabel:"Get A Quote",inputClass:"!t-text-black !t-font-extrabold !t-bg-[#ffce51]",firstStepButtonClass:"!t-justify-center"}),function(e={}){return{if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"},children:[x({attrs:{class:"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},...e})]}}(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}]}();
|
|
1
|
+
var electrical=function(){"use strict";function e(){return Object.assign({},...arguments)}const t=e=>(e.name&&!e.id&&(e.id=e.name),e),a=a=>(t(a),e({$formkit:"radio",validation:"required",validationMessages:{required:"Field is required"},optionsClass:"t-pt-3 t-pl-1",legendClass:"required"},a)),n=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",a(e)),s=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",a(e)),r=a=>(t(a),e({$formkit:"select",placeholder:"Please Select",validation:"required",validationMessages:{required:"Field is required"},inputClass:"t-bg-white",labelClass:"required"},a)),i=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]",r(e)),l=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.inputClass||""),e.helpClass="t-mt-2.5 t-text-center",r(e)),o=a=>(t(a),e({$formkit:"text",validation:"required",validationMessages:{required:"Field is required"},labelClass:"required"},a)),m=e=>(e.wrapperClass="side-by-side t-items-center",o(e)),c=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",o(e)),d=(e,t={})=>o({$formkit:"FloatingLabelText",name:e?e+":Email":"Email",placeholder:"Email Address",autocomplete:"email","data-tf-sensitive":"false",validation:"required|email",validationMessages:{required:"Email is required",email:"Invalid Email"},inputClass:"t-text-center",wrapperClass:"t-flex t-justify-center",...t}),p=(e,t={})=>o({$formkit:"FloatingLabelText",placeholder:"First Name",name:e?e+":First_Name":"First_Name",autocomplete:"given-name",validationMessages:{required:"First Name is required"},inputClass:"t-text-center",...t}),u=(e,t={})=>o({$formkit:"FloatingLabelText",placeholder:"Last Name",name:e?e+":Last_Name":"Last_Name",autocomplete:"family-name",validationMessages:{required:"Last Name is required"},inputClass:"t-text-center",...t}),f=(e,t={})=>({$el:"div",attrs:{class:"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},children:[p(e,{outerClass:"sm:!t-max-w-[49%]",...t}),u(e,{outerClass:"sm:!t-max-w-[49%]",...t})]}),h=(e,t={})=>o({$formkit:"FloatingLabelText",datatype:"tel",name:e?e+":Primary_Phone":"Primary_Phone",placeholder:t.placeholder||"Phone Number",maxlength:14,help:t.help||null,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 (XXX) YYY-ZZZZ",valid_phone:"Invalid Phone Number"},helpClass:"t-mt-2.5 md:t-text-right md:t-mt-[-2px]",inputClass:"t-text-center",wrapperClass:"t-flex t-justify-center",...t}),y=(e,t,a={})=>(t?c:m)({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}),g=(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-[0.7rem] t-text-slate-500 t-font-normal !t-leading-[0.9rem]"+(t.labelClass?" "+t.labelClass:"")}}),x=e=>"group"!==e.type&&"section"!==e.type&&"form"!==e.type&&"hidden"!==e.$formkit&&!e.children,v=e=>{if(x(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(x(a))return a;const n=v(a);if(n)return n}return null},C={$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 w(t={}){return e(C,t)}function b(e){return{$el:"h3",children:e.headline||"Tell Us About Your Situation",attrs:{class:"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function $(e){return{$el:"h3",children:e.headline||"Please Provide a Contact Name",attrs:{class:"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 "+(e.headlineClass||"")}}}function S(e){return{$el:"h3",children:e.headline||'$getKey($meta, "finalHeadlines." + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)',attrs:{class:"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 "+(e.headlineClass||"")+" f-contact-info-headline"}}}function I(e){return{$el:"h5",children:e.subheadline||'$getKey($meta, "finalSubHeadlines." + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)',attrs:{class:"t-flex t-justify-center t-text-center !t-text-base md:!t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3 "+(e.subheadlineClass||"")+" f-contact-info-subheadline"}}}function E(t,a,n={}){const{nextOnEnter:s=!0,nextOnInput:r=!1,stepKey:i,nextStepMap:l,triggerRedirectMap:o,autoFocus:m}=n;if(a&&a.length&&(s||r)){const e=v(a[a.length-1]);e&&!0===s&&(e.onKeypress="$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"),e&&!0===r&&(e.onInput="$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))")}return e(((e,t)=>({$el:"section",if:'$stepEnabled("'+e+'")',attrs:{hidden:'$activeStep !== "'+e+'"',key:t||e}}))(t,i),{children:[{$formkit:"group",id:t,name:t,nextStepMap:l,triggerRedirectMap:o,autoFocus:m,children:a}]})}function P(e,t,a,n={}){return void 0===n.nextOnInput&&(n.nextOnInput=!0),E(e,[b({headline:n.headline??a,headlineClass:n.headlineClass}),...Array.isArray(t)?t:[t]],n)}const k={type:"form",id:"form",config:{validationVisibility:"submit"},onSubmit:'$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',plugins:"$plugins",actions:!1,anchorElement:"form-anchor",useLocalStorage:!0,prepop:{fromURL:!0},errorCodes:{403:{message:"An Error Occurred",abort:!1},409:{abort:!1},429:"An Error Occurred",504:{message:"An Error Occurred",abort:!1}},formClass:"!t-max-w-[40rem]"};function T(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))))}const D={};const L={$el:"div",children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-30px",left:0}}}],attrs:{class:"t-relative"}};const A={$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 O=[{$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}],_=["haveAttorney","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],W=["haveAttorney","degreeOfInterest","lawyerPaymentMethod","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],j=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],F={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...W],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",..._],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...j],Bankruptcy:["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",..._],"Business Lawyers":["businessServices","businessType","numEmployeesOfBusiness",..._],"Child Custody":["childRelationship","childHome","childPrimaryCaregiver",...W],"Child Support":["childRelationship","childHome","childPrimaryCaregiver",...W],"Civil Rights and Discrimination":["civilRightsType",..._],"Civil Lawsuit":["civilDefense","lawsuitOtherParty",..._],"File a Lawsuit":["civilLawsuitTOLPDisplay","lawsuitOtherParty",..._],"Defend a Lawsuit":["lawsuitOtherParty",..._],"Consumer Lawyers":["consumerLawyerType","incidentDate","lawsuitOtherParty",..._],"Criminal and Felony":["criminalTOLPDisplay","crimeCommittedDate","roleInMatterCriminal","pendingCharges",...W],"Debt and Collections":["totalMonthlyIncome","totalDebt","ownRealEstate","valueOfAssets",..._],"Divorce and Separation":["maritalStatus","haveChildren",...W],"DUI and DWI":["incidentDate","priorAlcoholOffenses","typeOfAlcoholTest","bloodContentAlcoholTest","pendingCharges",..._],"Employment and Workplace":["employmentAndWorkplaceTOLPDisplay","numEmployeesOfBusiness","employerType","employeeAtCompany",..._],Expungement:["incidentDate","criminalChargeType",...W],"Family Issues":["maritalStatus","haveChildren",...W],Foreclosure:["ownRealEstate","typeOfProperty","amountPaymentsPastDue","loanAmount","defaultNotice",..._],Guardianship:["maritalStatus","haveChildren",...W],"Immigration and Visas":["countryOfCitizenship","immigrationLocation","immigrationEntry","immigrationType","immigrationStatus","immigrationDetails",..._],"Landlord and Tenant":["landlordTenantIssue","landlordTenantParty",..._],"Lemon Law":["incidentDate","lawsuitOtherParty",..._],"Long Term Disability":["applicantOccupation","applicantAge","applicantLTDisabilityPolicy","applicantDisabilityHowObtain","applicantPreviouslyAppliedLtdBenefits","applicantReceivedDisabilityBenefits","applicantMonthlySalary",...j],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",..._],"Patents and Intellectual Property":["patentAssistanceType","patentFor",..._],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...j],"Probate and Estates":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",..._],"Property Damage":["wouldLikeLawyerTo",..._],"Real Estate":["realEstateTOLPDisplay","realEstateArea","wouldLikeLawyerTo",..._],"Social Security Disability and Insurance":["applicantAge","disabilityConditionStopWork","disabilityWorkHistory","socialSecurityDisabilityReceivingBenefits","doctorTreatment",...j],"Tax and IRS":["totalDebt","taxProblemDetails","taxLevel","taxIssueType",..._],"Traffic and Tickets":["driversLicenseType","trafficViolations","haveCourtDate",..._],Unemployment:["numEmployeesOfBusiness","employerType","degreeOfInterest","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],"Victim of a Crime":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...W],"Wills and Trusts":["valueOfAssets","typeOfAssets","roleInMatterProbate","estateLegalServicesNeeded",..._],"Workers Compensation":["incidentDate","claimStatus","primaryInjury","causeOfInjury","doctorTreatment",...j],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...j],"Wrongful Termination":["numEmployeesOfBusiness","employerType",..._]},"*":_}};function H(e,t=[],a={}){const n={...e};return n.values=function e(n){const s={};for(const r in n)Array.isArray(n[r])?s[r]=n[r].filter((e=>!t.includes(e))).map((e=>a[e]||e)):"object"==typeof n[r]?s[r]=e(n[r]):s[r]=n[r];return s}(e.values),n}H(F,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const q=F.values.Type_Of_Legal_Problem;q["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),q["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),q["Personal Injury"].filter((e=>"legalCrossSells"!==e)),q["Personal Injury"].filter((e=>"legalCrossSells"!==e)),q["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),q["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),q["Personal Injury"].filter((e=>"legalCrossSells"!==e)),q["Personal Injury"].filter((e=>"legalCrossSells"!==e)),q["Child Custody"],q["Child Support"],F.values["*"],q["Family Issues"],q["Child Support"],q["Child Custody"],F.values["*"],q["Divorce and Separation"],q["Defend a Lawsuit"],q["File a Lawsuit"];H({values:{Type_Of_Legal_Problem:{"Defend a Lawsuit":q["Defend a Lawsuit"],"File a Lawsuit":q["File a Lawsuit"]},"*":["lawsuitOtherParty",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});H({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":q["Auto and Car Accidents"],"Contract Disputes":q["Business Lawyers"],"Dog Bite":q["Personal Injury"],"Employment and Workplace":q["Employment and Workplace"],Fraud:q["Consumer Lawyers"],"Medical Malpractice":q["Medical Malpractice"],"Personal Injury":q["Personal Injury"],"Property Damage":q["Property Damage"],"Real Estate":q["Real Estate"],"Not Sure or Other":F.values["*"]},"*":["lawsuitOtherParty",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});H({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":q["Victim of a Crime"],"DUI and DWI":q["DUI and DWI"],Expungement:q.Expungement,"Not Sure or Other":F.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...W]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});H({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":q["Wrongful Termination"],"Workers Compensation":q["Workers Compensation"],"Personal Injury":q["Personal Injury"],Unemployment:q.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),q["Workplace Harassment"],q["Workplace Discrimination"],q["Probate and Estates"],q["Wills and Trusts"],q["Wrongful Death"],q["Patents and Intellectual Property"],q["Business Lawyers"],q["Business Lawyers"],F.values["*"];H({values:{Type_Of_Legal_Problem_Display:{Foreclosure:q.Foreclosure,"Landlord and Tenant":q["Landlord and Tenant"],"Wills, Trusts, and Estates":q["Wills and Trusts"],"Property Damage":q["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const B={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"'},M={Appliances:"Pros Are Standing By!",Electrical:"Electricians Are Standing By!",Plumbing:"Plumbers Are Standing By!",Roofing:"Roofers Are Standing By!"},R={Additions:"Get your dream addition started today!",Appliances:"Compare quotes and save.",Appraisals:"Accurate home appraisals at your service.",Cabinets:"Transform your kitchen with new cabinets.",Carpentry:"Custom carpentry solutions for your home.",Carpets:"Upgrade your home with new carpets.",Cleaning:"Professional cleaning services for a spotless home.",Countertops:"Install beautiful countertops in your kitchen.","Decks and Porches":"Build the perfect outdoor space.",Demolition:"Safe and efficient demolition services.",Doors:"Enhance your home with new doors.",Driveways:"Repair or install a new driveway.","Drywall and Plaster":"Expert drywall and plaster services.",Electrical:"Get a quote from a trusted pro.",Fencing:"Secure your property with new fencing.",Flooring:"Install stunning new floors.",Foundations:"Foundation repair and maintenance.","Garage Doors":"Upgrade your garage with new doors.","General Contractors":"Top contractors for your home projects.",Gutters:"Clean and repair your gutters.",Handyman:"Handyman services for all your needs.","Holiday Decorators":"Get your home ready for the holidays.","Smart Home":"Upgrade to a smart home today.","Home Builders":"Build your custom dream home.","Home Inspection":"Thorough home inspections for peace of mind.","Home Organization":"Organize your home with expert help.","Home Security":"Protect your home with a security system.","Home Staging":"Stage your home for a quick sale.","Home Theater":"Create the ultimate home theater.","Home Warranties":"Get a warranty for your home.","Hot Tubs":"Install a relaxing hot tub.","Heating and Cooling":"HVAC repair and installation.",Insulation:"Improve your home's insulation.","Junk Removal":"Remove unwanted junk from your property.",Landscaping:"Transform your yard with expert landscaping.",Locksmiths:"Professional locksmith services.","Masonry and Concrete":"Expert masonry and concrete work.",Restoration:"Restore your home after damage.",Moving:"Reliable moving services.",Painting:"Professional painting services.","Pest Control":"Effective pest control solutions.",Pools:"Install or repair your pool.",Plumbing:"Get a quote from a trusted pro.","Pressure Washing":"Pressure wash your home's exterior.",Remodeling:"Remodel your home with top professionals.",Roofing:"Get a quote from a local roofer.",Sheds:"Build a new shed for extra storage.",Siding:"Upgrade your home's siding.",Solar:"Install solar panels and save on energy.",Tiling:"Install beautiful new tiles.","Walk-in Tubs":"Install a convenient walk-in tub.",Waterproofing:"Waterproof your home to prevent damage.","Window Cleaning":"Professional window cleaning services.",Windows:"Replace your windows with energy-efficient options."};var N;return[function(t=null){let a=B,n=M,s=R;return t&&(a=T(B,t),n=T(M,t),s=T(R,t)),{type:"meta",data:e(D,{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:a,defaultFinalHeadline:"We Found Matching Contractors!",finalHeadlines:n,defaultFinalSubHeadline:"Compare quotes and save. Verify contact info:",finalSubHeadlines:s})}}(),(N={children:[{$el:"div",attrs:{id:"form-anchor",class:"t-absolute",style:{top:"-80px",left:0}}}]},e(L,N)),{$cmp:"FormKit",props:function(t){const a=e(k,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"electrical",redirectMap:{"*":"/thank-you?zip_code=${properties.Zip}&s=${properties.s}"}}),children:[function(t){return e(A,t)}(),function(t={}){return e(function(e={}){return{$el:"h1",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 "+(e.headlineClass||"")+" f-first-headline"}}}(t),t)}({children:'$urlParam("hl", "Get Electrical Quotes")',if:"$activeStep === $firstStep()"}),function(t={}){return e(function(e={}){return{$el:"h3",attrs:{class:"t-flex t-justify-center t-text-center t-text-[1.1rem] md:t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10 t-pb-3 "+(e.subheadlineClass||"")+" f-first-subheadline"}}}(t),t)}({children:'$urlParam("shl", "Please Enter Your Zip Code:")',if:"$activeStep === $firstStep()",subheadlineClass:"!t-font-bold !t-text-[#465f87]"}),...O,{$el:"div",attrs:{class:"form-body"},children:[function(e={}){return E("electricalFirstStep",[{$formkit:"hidden",name:"Category",id:"Category",value:"Electrical"},y(e.scope,!0,e.input)],e)}({nextOnInput:!1,headlineClass:"t-text-lg",input:{help:null}}),function(t={}){return P("electricalSubtype",((t,a,n={})=>(a?l:i)(e({label:a?n.label:"What electrical job type?",name:t?t+":Electrical_Subtype":"Electrical_Subtype",options:["Addition or Remodel","Ceiling Fans","Electrical Panel","EV Charging Station","Exhaust Fans","Generator","Holiday Lighting","Home Theater","Outdoor Lighting","Outlets and Fixtures","Pet Fence","Thermostat","Wall or Baseboard Heater","Not Sure or Other"]},n)))(t.scope,!0,t.input),"Select an electrical job type:",t)}({input:{inputClass:"t-text-center"}}),function(t={}){return P("homeImprovementWorkType",((t,a,r={})=>(a?s:n)(e({label:a?r.label:"What type of work?",name:t?t+":Work_Type":"Work_Type",options:["Install or Replace","Repair","Not Sure or Other"]},r)))(t.scope,!0,t.input),"Is it a repair or install job?",t)}(),function(t={}){return P("timeframe",((t,a,r={})=>(a?s:n)(e({label:a?r.label:"What is the project timeframe?",name:t?t+":Timeframe":"Timeframe",options:["Immediate","1-6 Months","More than 6 Months"]},r)))(t.scope,!0,t.input),"What is the project timeframe?",t)}(),function(t={}){return P("ownHome",((t,a,r={})=>(a?s:n)(e({label:a?r.label:"Do you own the home?",name:t?t+":Own_Home":"Own_Home",options:["Yes","No","No but authorized"]},r)))(t.scope,!0,t.input),"Do you own the home?",t)}(),function(e={}){return e.nextOnInput=void 0!==e.nextOnInput&&e.nextOnInput,P("address",((e,t,a={})=>(t?c:m)({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,validation:[["required"],["matches",/^(?=.*\d)(?=.*[A-Za-z])(?=.*\s).{6,100}$/]],validationMessages:{matches:"Invalid Address",required:"Address is required"},...a}))(e.scope,!0,e.input),"What is the street address of the home?",e)}(),function(e={}){return E("firstAndLast",[$({headline:e.headline??"Who is looking for help?",headlineClass:e.headlineClass}),{$el:"div",attrs:{class:"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},children:[f(e.scope)]}],e)}({headlineClass:"!t-text-dark",headline:"Who is looking for an electrician?"}),function(e={}){return E("contactInfo",[S(e),I(e),{$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})();"},{$el:"div",attrs:{class:"t-flex t-flex-col t-justify-center t-items-center"},children:[d(e.scope,{outerClass:"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",innerClass:"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]"}),h(e.scope,{outerClass:"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",innerClass:"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]"})]},g(e.scope,{outerClass:"!t-flex !t-flex-col !t-justify-center !t-items-center",wrapperClass:"t-w-[95%] sm:t-w-[80%]",messagesClass:"t-w-[95%] sm:t-w-[80%]"})],{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:{if:"$activeStep === $lastStep()",then:"step-nav !t-justify-center ",else:"step-nav !t-justify-between"}}},children:[{$formkit:"button",name:"back_button",onClick:"$setPreviousStep($prevStepFunc($get(form)))",children:"Back",outerClass:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",then:"t-hidden sm:t-block",else:""},style:{if:"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",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||"")+" f-navigation-input !t-w-60",outer:"!t-mt-0 !t-mb-0"}}]}))({startText:"Get Quotes Now",submitLabel:"Get A Quote",inputClass:"!t-text-black !t-font-extrabold !t-bg-[#ffce51]",firstStepButtonClass:"!t-justify-center"}),function(e={}){return{if:"$activeStep === $lastStep()",style:{if:"$activeStep !== $lastStep()",then:"display: none;"},children:[w({attrs:{class:"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},...e})]}}(),{$el:"pre",if:'$urlParam("fdbg", "") == 1',children:[{$el:"pre",children:"$stringify( $get(form).value )",attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["activeStep: ","$activeStep"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepHistory: ","$stepHistory"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["stepQueue: ","$stepQueue"],attrs:{class:"t-text-xs",style:"overflow: scroll"}},{$el:"pre",children:["steps: ","$stepKeys()"],attrs:{class:"t-text-xs",style:"overflow: scroll"}}]}]}]}]}();
|
|
@@ -1 +1 @@
|
|
|
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 Matching Contractors!","finalHeadlines":{"Appliances":"Pros Are Standing By!","Electrical":"Electricians Are Standing By!","Plumbing":"Plumbers Are Standing By!","Roofing":"Roofers Are Standing By!"},"defaultFinalSubHeadline":"Compare quotes and save. Verify contact info:","finalSubHeadlines":{"Additions":"Get your dream addition started today!","Appliances":"Compare quotes and save.","Appraisals":"Accurate home appraisals at your service.","Cabinets":"Transform your kitchen with new cabinets.","Carpentry":"Custom carpentry solutions for your home.","Carpets":"Upgrade your home with new carpets.","Cleaning":"Professional cleaning services for a spotless home.","Countertops":"Install beautiful countertops in your kitchen.","Decks and Porches":"Build the perfect outdoor space.","Demolition":"Safe and efficient demolition services.","Doors":"Enhance your home with new doors.","Driveways":"Repair or install a new driveway.","Drywall and Plaster":"Expert drywall and plaster services.","Electrical":"Get a quote from a trusted pro.","Fencing":"Secure your property with new fencing.","Flooring":"Install stunning new floors.","Foundations":"Foundation repair and maintenance.","Garage Doors":"Upgrade your garage with new doors.","General Contractors":"Top contractors for your home projects.","Gutters":"Clean and repair your gutters.","Handyman":"Handyman services for all your needs.","Holiday Decorators":"Get your home ready for the holidays.","Smart Home":"Upgrade to a smart home today.","Home Builders":"Build your custom dream home.","Home Inspection":"Thorough home inspections for peace of mind.","Home Organization":"Organize your home with expert help.","Home Security":"Protect your home with a security system.","Home Staging":"Stage your home for a quick sale.","Home Theater":"Create the ultimate home theater.","Home Warranties":"Get a warranty for your home.","Hot Tubs":"Install a relaxing hot tub.","Heating and Cooling":"HVAC repair and installation.","Insulation":"Improve your home's insulation.","Junk Removal":"Remove unwanted junk from your property.","Landscaping":"Transform your yard with expert landscaping.","Locksmiths":"Professional locksmith services.","Masonry and Concrete":"Expert masonry and concrete work.","Restoration":"Restore your home after damage.","Moving":"Reliable moving services.","Painting":"Professional painting services.","Pest Control":"Effective pest control solutions.","Pools":"Install or repair your pool.","Plumbing":"Get a quote from a trusted pro.","Pressure Washing":"Pressure wash your home's exterior.","Remodeling":"Remodel your home with top professionals.","Roofing":"Get a quote from a local roofer.","Sheds":"Build a new shed for extra storage.","Siding":"Upgrade your home's siding.","Solar":"Install solar panels and save on energy.","Tiling":"Install beautiful new tiles.","Walk-in Tubs":"Install a convenient walk-in tub.","Waterproofing":"Waterproof your home to prevent damage.","Window Cleaning":"Professional window cleaning services.","Windows":"Replace your windows with energy-efficient options."}}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-80px","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":"electrical","redirectMap":{"*":"/thank-you"},"name":"electrical"},"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-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 f-first-headline"},"children":"$urlParam(\"hl\", \"Get Electrical Quotes\")","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-pb-3 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Please Enter Your Zip Code:\")","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(\"electricalFirstStep\")","attrs":{"hidden":"$activeStep !== \"electricalFirstStep\"","key":"electricalFirstStep"},"children":[{"$formkit":"group","id":"electricalFirstStep","name":"electricalFirstStep","children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"Electrical"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","help":null,"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))))"}]}]},{"$el":"section","if":"$stepEnabled(\"electricalSubtype\")","attrs":{"hidden":"$activeStep !== \"electricalSubtype\"","key":"electricalSubtype"},"children":[{"$formkit":"group","id":"electricalSubtype","name":"electricalSubtype","children":[{"$el":"h3","children":"Select an electrical job type:","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-min-w-[150px] t-bg-white t-text-center","labelClass":"required","name":"Electrical_Subtype","options":["Addition or Remodel","Ceiling Fans","Electrical Panel","EV Charging Station","Exhaust Fans","Generator","Holiday Lighting","Home Theater","Outdoor Lighting","Outlets and Fixtures","Pet Fence","Thermostat","Wall or Baseboard Heater","Not Sure or Other"],"wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 t-text-center","id":"Electrical_Subtype","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Who is looking for an electrician?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 !t-text-dark"}},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},"children":[{"$el":"div","attrs":{"class":"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},"children":[{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","placeholder":"First Name","name":"First_Name","autocomplete":"given-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"First_Name"},{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","placeholder":"Last Name","name":"Last_Name","autocomplete":"family-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"Last_Name","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]}]},{"$el":"section","if":"$stepEnabled(\"contactInfo\")","attrs":{"hidden":"$activeStep !== \"contactInfo\"","key":"contactInfo"},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"$getKey($meta, \"finalHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 !t-text-[#465f87] f-contact-info-headline"}},{"$el":"h5","children":"$getKey($meta, \"finalSubHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base md:!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})();"},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center"},"children":[{"$formkit":"FloatingLabelText","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","placeholder":"Email Address","autocomplete":"email","data-tf-sensitive":"false","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Email"},{"$formkit":"FloatingLabelText","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 (XXX) YYY-ZZZZ","valid_phone":"Invalid Phone Number"},"labelClass":"required","datatype":"tel","name":"Primary_Phone","placeholder":"Phone Number","maxlength":14,"help":null,"autocomplete":"tel-national","data-tf-sensitive":"false","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","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":"!t-flex !t-flex-col !t-justify-center !t-items-center","wrapper":"t-w-[95%] sm:t-w-[80%]","messages":"t-w-[95%] sm:t-w-[80%]","label":"!t-text-[0.7rem] t-text-slate-500 t-font-normal !t-leading-[0.9rem]"}}]}]},{"$el":"div","attrs":{"class":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center","else":{"if":"$activeStep === $lastStep()","then":"step-nav !t-justify-center ","else":"step-nav !t-justify-between"}}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"t-hidden sm:t-block","else":""},"style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","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 Now","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":"Get A Quote","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input !t-w-60","outer":"!t-mt-0 !t-mb-0"}}]},{"if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"children":[{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},"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":"pre","if":"$urlParam(\"fdbg\", \"\") == 1","children":[{"$el":"pre","children":"$stringify( $get(form).value )","attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["activeStep: ","$activeStep"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepHistory: ","$stepHistory"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["stepQueue: ","$stepQueue"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}},{"$el":"pre","children":["steps: ","$stepKeys()"],"attrs":{"class":"t-text-xs","style":"overflow: scroll"}}]}]}]}]
|
|
1
|
+
[{"type":"meta","data":{"tcpaLanguage":"By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by 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 Matching Contractors!","finalHeadlines":{"Appliances":"Pros Are Standing By!","Electrical":"Electricians Are Standing By!","Plumbing":"Plumbers Are Standing By!","Roofing":"Roofers Are Standing By!"},"defaultFinalSubHeadline":"Compare quotes and save. Verify contact info:","finalSubHeadlines":{"Additions":"Get your dream addition started today!","Appliances":"Compare quotes and save.","Appraisals":"Accurate home appraisals at your service.","Cabinets":"Transform your kitchen with new cabinets.","Carpentry":"Custom carpentry solutions for your home.","Carpets":"Upgrade your home with new carpets.","Cleaning":"Professional cleaning services for a spotless home.","Countertops":"Install beautiful countertops in your kitchen.","Decks and Porches":"Build the perfect outdoor space.","Demolition":"Safe and efficient demolition services.","Doors":"Enhance your home with new doors.","Driveways":"Repair or install a new driveway.","Drywall and Plaster":"Expert drywall and plaster services.","Electrical":"Get a quote from a trusted pro.","Fencing":"Secure your property with new fencing.","Flooring":"Install stunning new floors.","Foundations":"Foundation repair and maintenance.","Garage Doors":"Upgrade your garage with new doors.","General Contractors":"Top contractors for your home projects.","Gutters":"Clean and repair your gutters.","Handyman":"Handyman services for all your needs.","Holiday Decorators":"Get your home ready for the holidays.","Smart Home":"Upgrade to a smart home today.","Home Builders":"Build your custom dream home.","Home Inspection":"Thorough home inspections for peace of mind.","Home Organization":"Organize your home with expert help.","Home Security":"Protect your home with a security system.","Home Staging":"Stage your home for a quick sale.","Home Theater":"Create the ultimate home theater.","Home Warranties":"Get a warranty for your home.","Hot Tubs":"Install a relaxing hot tub.","Heating and Cooling":"HVAC repair and installation.","Insulation":"Improve your home's insulation.","Junk Removal":"Remove unwanted junk from your property.","Landscaping":"Transform your yard with expert landscaping.","Locksmiths":"Professional locksmith services.","Masonry and Concrete":"Expert masonry and concrete work.","Restoration":"Restore your home after damage.","Moving":"Reliable moving services.","Painting":"Professional painting services.","Pest Control":"Effective pest control solutions.","Pools":"Install or repair your pool.","Plumbing":"Get a quote from a trusted pro.","Pressure Washing":"Pressure wash your home's exterior.","Remodeling":"Remodel your home with top professionals.","Roofing":"Get a quote from a local roofer.","Sheds":"Build a new shed for extra storage.","Siding":"Upgrade your home's siding.","Solar":"Install solar panels and save on energy.","Tiling":"Install beautiful new tiles.","Walk-in Tubs":"Install a convenient walk-in tub.","Waterproofing":"Waterproof your home to prevent damage.","Window Cleaning":"Professional window cleaning services.","Windows":"Replace your windows with energy-efficient options."}}},{"$el":"div","children":[{"$el":"div","attrs":{"id":"form-anchor","class":"t-absolute","style":{"top":"-80px","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":"electrical","redirectMap":{"*":"/thank-you?zip_code=${properties.Zip}&s=${properties.s}"},"name":"electrical"},"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-[1.7rem] sm:t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3 f-first-headline"},"children":"$urlParam(\"hl\", \"Get Electrical Quotes\")","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-pb-3 !t-font-bold !t-text-[#465f87] f-first-subheadline"},"children":"$urlParam(\"shl\", \"Please Enter Your Zip Code:\")","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(\"electricalFirstStep\")","attrs":{"hidden":"$activeStep !== \"electricalFirstStep\"","key":"electricalFirstStep"},"children":[{"$formkit":"group","id":"electricalFirstStep","name":"electricalFirstStep","children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"Electrical"},{"$formkit":"text","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"},"labelClass":"required","help":null,"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))))"}]}]},{"$el":"section","if":"$stepEnabled(\"electricalSubtype\")","attrs":{"hidden":"$activeStep !== \"electricalSubtype\"","key":"electricalSubtype"},"children":[{"$formkit":"group","id":"electricalSubtype","name":"electricalSubtype","children":[{"$el":"h3","children":"Select an electrical job type:","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"select","placeholder":"Please Select","validation":"required","validationMessages":{"required":"Field is required"},"inputClass":"t-min-w-[150px] t-bg-white t-text-center","labelClass":"required","name":"Electrical_Subtype","options":["Addition or Remodel","Ceiling Fans","Electrical Panel","EV Charging Station","Exhaust Fans","Generator","Holiday Lighting","Home Theater","Outdoor Lighting","Outlets and Fixtures","Pet Fence","Thermostat","Wall or Baseboard Heater","Not Sure or Other"],"wrapperClass":"t-flex t-justify-center","messagesClass":"t-flex t-justify-center","helpClass":"t-mt-2.5 t-text-center","id":"Electrical_Subtype","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"homeImprovementWorkType\")","attrs":{"hidden":"$activeStep !== \"homeImprovementWorkType\"","key":"homeImprovementWorkType"},"children":[{"$formkit":"group","id":"homeImprovementWorkType","name":"homeImprovementWorkType","children":[{"$el":"h3","children":"Is it a repair or install job?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-lg sm:t-text-xl 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":"Work_Type","options":["Install or Replace","Repair","Not Sure or Other"],"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":"Work_Type","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-lg sm:t-text-xl 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-lg sm:t-text-xl 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-lg sm:t-text-xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1 "}},{"$formkit":"text","validation":[["required"],["matches",{}]],"validationMessages":{"matches":"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(\"firstAndLast\")","attrs":{"hidden":"$activeStep !== \"firstAndLast\"","key":"firstAndLast"},"children":[{"$formkit":"group","id":"firstAndLast","name":"firstAndLast","children":[{"$el":"h3","children":"Who is looking for an electrician?","attrs":{"class":"t-flex t-justify-center t-text-center t-text-xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1 !t-text-dark"}},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center t-pt-3"},"children":[{"$el":"div","attrs":{"class":"t-flex t-flex-col sm:t-flex-row t-flex-wrap t-gap-x-[2%] t-justify-center sm:!t-max-w-[70%]"},"children":[{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"First Name is required"},"labelClass":"required","placeholder":"First Name","name":"First_Name","autocomplete":"given-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"First_Name"},{"$formkit":"FloatingLabelText","validation":"required","validationMessages":{"required":"Last Name is required"},"labelClass":"required","placeholder":"Last Name","name":"Last_Name","autocomplete":"family-name","inputClass":"t-text-center","outerClass":"sm:!t-max-w-[49%]","id":"Last_Name","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]}]}]},{"$el":"section","if":"$stepEnabled(\"contactInfo\")","attrs":{"hidden":"$activeStep !== \"contactInfo\"","key":"contactInfo"},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$el":"h3","children":"$getKey($meta, \"finalHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-xl md:!t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1 !t-text-[#465f87] f-contact-info-headline"}},{"$el":"h5","children":"$getKey($meta, \"finalSubHeadlines.\" + ($get(Type_Of_Legal_Problem).value || $get(Category).value), $meta.defaultFinalSubHeadline)","attrs":{"class":"t-flex t-justify-center t-text-center !t-text-base md:!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})();"},{"$el":"div","attrs":{"class":"t-flex t-flex-col t-justify-center t-items-center"},"children":[{"$formkit":"FloatingLabelText","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"},"labelClass":"required","name":"Email","placeholder":"Email Address","autocomplete":"email","data-tf-sensitive":"false","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","id":"Email"},{"$formkit":"FloatingLabelText","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 (XXX) YYY-ZZZZ","valid_phone":"Invalid Phone Number"},"labelClass":"required","datatype":"tel","name":"Primary_Phone","placeholder":"Phone Number","maxlength":14,"help":null,"autocomplete":"tel-national","data-tf-sensitive":"false","helpClass":"t-mt-2.5 md:t-text-right md:t-mt-[-2px]","inputClass":"t-text-center","wrapperClass":"t-flex t-justify-center","outerClass":"!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]","innerClass":"!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]","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":"!t-flex !t-flex-col !t-justify-center !t-items-center","wrapper":"t-w-[95%] sm:t-w-[80%]","messages":"t-w-[95%] sm:t-w-[80%]","label":"!t-text-[0.7rem] t-text-slate-500 t-font-normal !t-leading-[0.9rem]"}}]}]},{"$el":"div","attrs":{"class":{"if":"$activeStep === $firstStep()","then":"step-nav !t-justify-center","else":{"if":"$activeStep === $lastStep()","then":"step-nav !t-justify-center ","else":"step-nav !t-justify-between"}}},"children":[{"$formkit":"button","name":"back_button","onClick":"$setPreviousStep($prevStepFunc($get(form)))","children":"Back","outerClass":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","then":"t-hidden sm:t-block","else":""},"style":{"if":"$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())","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 Now","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":"Get A Quote","if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"classes":{"input":"!t-text-black !t-font-extrabold !t-bg-[#ffce51] f-navigation-input !t-w-60","outer":"!t-mt-0 !t-mb-0"}}]},{"if":"$activeStep === $lastStep()","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"},"children":[{"$el":"div","if":"$activeStep === $lastStep()","attrs":{"class":"t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8"},"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":"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"}}]}]}]}]
|
|
@@ -263,8 +263,12 @@ const address$1 = (scope, vertical, updates = {}) => {
|
|
|
263
263
|
"data-tf-sensitive": "false",
|
|
264
264
|
minlength: 5,
|
|
265
265
|
maxlength: 100,
|
|
266
|
+
validation: [
|
|
267
|
+
["required"],
|
|
268
|
+
["matches", /^(?=.*\d)(?=.*[A-Za-z])(?=.*\s).{6,100}$/], // digit + space + letter, N chars
|
|
269
|
+
],
|
|
266
270
|
validationMessages: {
|
|
267
|
-
|
|
271
|
+
matches: "Invalid Address",
|
|
268
272
|
required: "Address is required",
|
|
269
273
|
},
|
|
270
274
|
...updates,
|