bhl-forms 0.11.15 → 0.11.17
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.iife.js +4 -4
- 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/accidentsAndInjuries.es.js +2 -2
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/applianceRepair.es.js +1439 -0
- package/dist/forms/applianceRepair.iife.js +1 -0
- package/dist/forms/applianceRepair.json +1 -0
- package/dist/forms/applianceRepairMinimal.es.js +10 -10
- package/dist/forms/applianceRepairMinimal.iife.js +1 -1
- package/dist/forms/applianceRepairMinimal.json +1 -1
- package/dist/forms/business.es.js +2 -2
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +2 -2
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +2 -2
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +2 -2
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/civilLawsuit1to1.es.js +2 -2
- package/dist/forms/civilLawsuit1to1.iife.js +1 -1
- package/dist/forms/civilLawsuit1to1.json +1 -1
- package/dist/forms/contracts.es.js +2 -2
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +2 -2
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +2 -2
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/electrical.es.js +1549 -0
- package/dist/forms/electrical.iife.js +1 -0
- package/dist/forms/electrical.json +1 -0
- package/dist/forms/employmentAndWorkplace.es.js +2 -2
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/foreclosure.es.js +2 -2
- package/dist/forms/foreclosure.iife.js +1 -1
- package/dist/forms/foreclosure.json +1 -1
- package/dist/forms/generalContractors.es.js +26 -26
- package/dist/forms/generalContractors.iife.js +1 -1
- package/dist/forms/generalContractors.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +28 -28
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +28 -28
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -1
- package/dist/forms/generalLegal.es.js +2 -2
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +2 -2
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
- package/dist/forms/generalLegalJustAnswer.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +2 -2
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +2 -2
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +2 -2
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalSingle1to1.es.js +2 -2
- package/dist/forms/generalLegalSingle1to1.iife.js +1 -1
- package/dist/forms/generalLegalSingle1to1.json +1 -1
- package/dist/forms/generalLegalSingleMinimal.es.js +2 -2
- package/dist/forms/generalLegalSingleMinimal.iife.js +1 -1
- package/dist/forms/generalLegalSingleMinimal.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +2 -2
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +2 -2
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +2 -2
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +2 -2
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +2 -2
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +2 -2
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +2 -2
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/plumbing.es.js +1548 -0
- package/dist/forms/plumbing.iife.js +1 -0
- package/dist/forms/plumbing.json +1 -0
- package/dist/forms/realEstate.es.js +2 -2
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +2 -2
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/roofing.es.js +1605 -0
- package/dist/forms/roofing.iife.js +1 -0
- package/dist/forms/roofing.json +1 -0
- package/dist/forms/ssdi.es.js +148 -131
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +2 -2
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +2 -2
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/dist/forms/windows.es.js +26 -26
- package/dist/forms/windows.iife.js +1 -1
- package/dist/forms/windows.json +1 -1
- package/dist/forms/workersCompensation.es.js +2 -2
- package/dist/forms/workersCompensation.iife.js +1 -1
- package/dist/forms/workersCompensation.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var roofing=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})]}),y=(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}),h=(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,C=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=C(a);if(n)return n}return null},v={$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(v,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=C(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 k(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 P={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"],F=["haveAttorney","commentsWithBankruptcy","zipcode","legalCrossSells","firstAndLast","contactInfo"],j={values:{Type_Of_Legal_Problem:{Adoption:["maritalStatus","haveChildren",...W],"Asbestos and Mesothelioma":["incidentDate","doctorTreatment",..._],"Auto and Car Accidents":["incidentDate","atFault","primaryInjury","doctorTreatment","policeReportFiled",...F],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",...F],"Medical Malpractice":["incidentDate","claimStatus","doctorTreatment","medicalMalpracticeInjuries",..._],"Patents and Intellectual Property":["patentAssistanceType","patentFor",..._],"Personal Injury":["incidentDate","claimStatus","atFault","primaryInjury","doctorTreatment",...F],"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",...F],"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",...F],"Workplace Harassment":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._],"Workplace Discrimination":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._],"Wrongful Death":["incidentDate","relationshipToVictim","criminalChargesFiled","causeOfDeath",...F],"Wrongful Termination":["numEmployeesOfBusiness","employerType",..._]},"*":_}};function q(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}q(j,["legalCrossSells"],{commentsWithBankruptcy:"comments"});const R=j.values.Type_Of_Legal_Problem;R["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),R["Workers Compensation"].filter((e=>"legalCrossSells"!==e)),R["Personal Injury"].filter((e=>"legalCrossSells"!==e)),R["Personal Injury"].filter((e=>"legalCrossSells"!==e)),R["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),R["Auto and Car Accidents"].filter((e=>"legalCrossSells"!==e)),R["Personal Injury"].filter((e=>"legalCrossSells"!==e)),R["Personal Injury"].filter((e=>"legalCrossSells"!==e)),R["Child Custody"],R["Child Support"],j.values["*"],R["Family Issues"],R["Child Support"],R["Child Custody"],j.values["*"],R["Divorce and Separation"],R["Defend a Lawsuit"],R["File a Lawsuit"];q({values:{Type_Of_Legal_Problem:{"Defend a Lawsuit":R["Defend a Lawsuit"],"File a Lawsuit":R["File a Lawsuit"]},"*":["lawsuitOtherParty",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});q({values:{Type_Of_Legal_Problem_Display:{"Automobile Accident":R["Auto and Car Accidents"],"Contract Disputes":R["Business Lawyers"],"Dog Bite":R["Personal Injury"],"Employment and Workplace":R["Employment and Workplace"],Fraud:R["Consumer Lawyers"],"Medical Malpractice":R["Medical Malpractice"],"Personal Injury":R["Personal Injury"],"Property Damage":R["Property Damage"],"Real Estate":R["Real Estate"],"Not Sure or Other":j.values["*"]},"*":["lawsuitOtherParty",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});q({values:{Type_Of_Legal_Problem_Display:{"Victim of a Crime":R["Victim of a Crime"],"DUI and DWI":R["DUI and DWI"],Expungement:R.Expungement,"Not Sure or Other":j.values["*"]},"*":["crimeCommittedDate","roleInMatterCriminal","pendingCharges",...W]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});q({values:{Type_Of_Legal_Problem_Display:{"Wrongful Termination":R["Wrongful Termination"],"Workers Compensation":R["Workers Compensation"],"Personal Injury":R["Personal Injury"],Unemployment:R.Unemployment},"*":["numEmployeesOfBusiness","employerType","employeeAtCompany",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"}),R["Workplace Harassment"],R["Workplace Discrimination"],R["Probate and Estates"],R["Wills and Trusts"],R["Wrongful Death"],R["Patents and Intellectual Property"],R["Business Lawyers"],R["Business Lawyers"],j.values["*"];q({values:{Type_Of_Legal_Problem_Display:{Foreclosure:R.Foreclosure,"Landlord and Tenant":R["Landlord and Tenant"],"Wills, Trusts, and Estates":R["Wills and Trusts"],"Property Damage":R["Property Damage"]},"*":["realEstateArea","wouldLikeLawyerTo",..._]}},["legalCrossSells"],{commentsWithBankruptcy:"comments"});const H={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!"},B={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=H,n=M,s=B;return t&&(a=T(H,t),n=T(M,t),s=T(B,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(P,t);return a.formId&&!a.name&&(a.name=a.formId),a}({formId:"roofing",redirectMap:{"*":"/thank-you"}}),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 Roofing 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("roofingFirstStep",[{$formkit:"hidden",name:"Category",id:"Category",value:"Roofing"},h(e.scope,!0,e.input)],e)}({nextOnInput:!1,headlineClass:"t-text-lg",input:{help:null}}),function(t={}){return k("roofingWorkType",((t,a,r={})=>(a?s:n)(e({label:a?r.label:"What type of work?",name:t?t+":Roofing_Work_Type":"Roofing_Work_Type",options:["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","Not Sure or Other"]},r)))(t.scope,!0,t.input),"What type of roofing work?",t)}(),function(t={}){return k("roofingMaterial",((t,a,n={})=>(a?l:i)(e({label:a?n.label:"What roofing material?",name:t?t+":Roofing_Material":"Roofing_Material",options:["Asphalt Shingle","Composite","Flat","Foam","Metal","Slate","Tile","Wood","Not Sure or Other"]},n)))(t.scope,!0,t.input),"What type of roofing material?",t)}({input:{inputClass:"t-text-center"}}),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 a roofer?"}),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%]"}),y(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"}}]}]}]}]}();
|
|
@@ -0,0 +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":"roofing","redirectMap":{"*":"/thank-you"},"name":"roofing"},"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 Roofing 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(\"roofingFirstStep\")","attrs":{"hidden":"$activeStep !== \"roofingFirstStep\"","key":"roofingFirstStep"},"children":[{"$formkit":"group","id":"roofingFirstStep","name":"roofingFirstStep","children":[{"$formkit":"hidden","name":"Category","id":"Category","value":"Roofing"},{"$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(\"roofingWorkType\")","attrs":{"hidden":"$activeStep !== \"roofingWorkType\"","key":"roofingWorkType"},"children":[{"$formkit":"group","id":"roofingWorkType","name":"roofingWorkType","children":[{"$el":"h3","children":"What type of roofing work?","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":"Roofing_Work_Type","options":["Install or Replace Roof","Repair Roof","Ice Dams","Gutters","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":"Roofing_Work_Type","onKeypress":"$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))","onInput":"$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))"}]}]},{"$el":"section","if":"$stepEnabled(\"roofingMaterial\")","attrs":{"hidden":"$activeStep !== \"roofingMaterial\"","key":"roofingMaterial"},"children":[{"$formkit":"group","id":"roofingMaterial","name":"roofingMaterial","children":[{"$el":"h3","children":"What type of roofing material?","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":"Roofing_Material","options":["Asphalt Shingle","Composite","Flat","Foam","Metal","Slate","Tile","Wood","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":"Roofing_Material","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 a roofer?","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"}}]}]}]}]
|
package/dist/forms/ssdi.es.js
CHANGED
|
@@ -27,29 +27,6 @@ const ensureIds = (cfg) => {
|
|
|
27
27
|
return cfg
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
const checkbox = (updates) => {
|
|
31
|
-
ensureIds(updates);
|
|
32
|
-
return merge(
|
|
33
|
-
{
|
|
34
|
-
$formkit: "checkbox",
|
|
35
|
-
validation: "required",
|
|
36
|
-
validationMessages: {
|
|
37
|
-
required: "Field is required",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
updates
|
|
41
|
-
)
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const sbsCheckbox = (updates) => {
|
|
45
|
-
updates.legendClass = "legend-left required";
|
|
46
|
-
updates.fieldsetClass = "$reset side-by-side";
|
|
47
|
-
updates.optionsClass = "t-pl-1";
|
|
48
|
-
updates.innerClass = "t-flex t-items-center";
|
|
49
|
-
updates.wrapperClass = "t-mb-3";
|
|
50
|
-
return checkbox(updates)
|
|
51
|
-
};
|
|
52
|
-
|
|
53
30
|
const radio = (updates) => {
|
|
54
31
|
ensureIds(updates);
|
|
55
32
|
return merge(
|
|
@@ -147,14 +124,11 @@ const textArea = (updates) => {
|
|
|
147
124
|
)
|
|
148
125
|
};
|
|
149
126
|
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return func({
|
|
154
|
-
$formkit: "email",
|
|
127
|
+
const emailFL = (scope, updates = {}) => {
|
|
128
|
+
return text({
|
|
129
|
+
$formkit: "FloatingLabelText",
|
|
155
130
|
name: scope ? scope + ":" + "Email" : "Email",
|
|
156
|
-
|
|
157
|
-
placeholder: "email@domain.com",
|
|
131
|
+
placeholder: "Email Address",
|
|
158
132
|
autocomplete: "email",
|
|
159
133
|
"data-tf-sensitive": "false",
|
|
160
134
|
validation: "required|email",
|
|
@@ -162,59 +136,72 @@ const email = (scope, vertical, updates = {}) => {
|
|
|
162
136
|
required: "Email is required",
|
|
163
137
|
email: "Invalid Email",
|
|
164
138
|
},
|
|
139
|
+
inputClass: "t-text-center",
|
|
140
|
+
wrapperClass: "t-flex t-justify-center",
|
|
165
141
|
...updates,
|
|
166
142
|
})
|
|
167
143
|
};
|
|
168
144
|
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return func({
|
|
173
|
-
label,
|
|
145
|
+
const firstNameFL = (scope, updates = {}) => {
|
|
146
|
+
return text({
|
|
147
|
+
$formkit: "FloatingLabelText",
|
|
174
148
|
placeholder: "First Name",
|
|
175
149
|
name: scope ? scope + ":" + "First_Name" : "First_Name",
|
|
176
150
|
autocomplete: "given-name",
|
|
177
151
|
validationMessages: {
|
|
178
152
|
required: "First Name is required",
|
|
179
153
|
},
|
|
154
|
+
inputClass: "t-text-center",
|
|
180
155
|
...updates,
|
|
181
156
|
})
|
|
182
157
|
};
|
|
183
158
|
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return func({
|
|
188
|
-
label,
|
|
159
|
+
const lastNameFL = (scope, updates = {}) => {
|
|
160
|
+
return text({
|
|
161
|
+
$formkit: "FloatingLabelText",
|
|
189
162
|
placeholder: "Last Name",
|
|
190
163
|
name: scope ? scope + ":" + "Last_Name" : "Last_Name",
|
|
191
164
|
autocomplete: "family-name",
|
|
192
165
|
validationMessages: {
|
|
193
166
|
required: "Last Name is required",
|
|
194
167
|
},
|
|
168
|
+
inputClass: "t-text-center",
|
|
195
169
|
...updates,
|
|
196
170
|
})
|
|
197
171
|
};
|
|
198
172
|
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
173
|
+
const fullNameFLMobileCol = (scope, updates = {}) => {
|
|
174
|
+
return {
|
|
175
|
+
$el: "div",
|
|
176
|
+
attrs: {
|
|
177
|
+
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%]",
|
|
178
|
+
},
|
|
179
|
+
children: [
|
|
180
|
+
firstNameFL(scope, { outerClass: "sm:!t-max-w-[49%]", ...updates }),
|
|
181
|
+
lastNameFL(scope, { outerClass: "sm:!t-max-w-[49%]", ...updates }),
|
|
182
|
+
],
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const phoneFL = (scope, updates = {}) => {
|
|
187
|
+
return text({
|
|
188
|
+
$formkit: "FloatingLabelText",
|
|
189
|
+
datatype: "tel",
|
|
204
190
|
name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
help: updates.help || "10-digit phone number, hyphens optional",
|
|
191
|
+
placeholder: updates.placeholder || "Phone Number",
|
|
192
|
+
maxlength: 14,
|
|
193
|
+
help: updates.help || null,
|
|
209
194
|
autocomplete: "tel-national",
|
|
210
195
|
"data-tf-sensitive": "false",
|
|
211
|
-
validation: "required|matches:/^[0-9]{3}
|
|
196
|
+
validation: "required|matches:/^[0-9]{3}[0-9]{3}[0-9]{4}$/|valid_phone",
|
|
212
197
|
validationMessages: {
|
|
213
198
|
required: "Phone Number is required",
|
|
214
|
-
matches: "Invalid Phone Format, use
|
|
199
|
+
matches: "Invalid Phone Format, use (XXX) YYY-ZZZZ",
|
|
215
200
|
valid_phone: "Invalid Phone Number",
|
|
216
201
|
},
|
|
217
202
|
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
|
|
203
|
+
inputClass: "t-text-center",
|
|
204
|
+
wrapperClass: "t-flex t-justify-center",
|
|
218
205
|
...updates,
|
|
219
206
|
})
|
|
220
207
|
};
|
|
@@ -263,17 +250,6 @@ const applicantAge = (scope, vertical, updates = {}) => {
|
|
|
263
250
|
)
|
|
264
251
|
};
|
|
265
252
|
|
|
266
|
-
const bankruptcyCrossSell = (scope) =>
|
|
267
|
-
sbsCheckbox({
|
|
268
|
-
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
269
|
-
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
270
|
-
name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
271
|
-
id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
272
|
-
if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
|
|
273
|
-
validation: null,
|
|
274
|
-
helpClass: "!t-text-sm",
|
|
275
|
-
});
|
|
276
|
-
|
|
277
253
|
// TODO: vertical not supported yet
|
|
278
254
|
const comments = (scope, vertical, updates) =>
|
|
279
255
|
textArea(
|
|
@@ -447,6 +423,24 @@ function secureIcon(updates = {}) {
|
|
|
447
423
|
return merge(secureIconDefault, updates)
|
|
448
424
|
}
|
|
449
425
|
|
|
426
|
+
function secureIconStandalone(updates = {}) {
|
|
427
|
+
return {
|
|
428
|
+
if: "$activeStep === $lastStep()",
|
|
429
|
+
style: {
|
|
430
|
+
if: "$activeStep !== $lastStep()",
|
|
431
|
+
then: "display: none;",
|
|
432
|
+
},
|
|
433
|
+
children: [
|
|
434
|
+
secureIcon({
|
|
435
|
+
attrs: {
|
|
436
|
+
class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500 t-pb-6 sm:t-pb-8",
|
|
437
|
+
},
|
|
438
|
+
...updates,
|
|
439
|
+
}),
|
|
440
|
+
],
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
450
444
|
function verticalStepHeadline(updates) {
|
|
451
445
|
return {
|
|
452
446
|
$el: "h3",
|
|
@@ -473,13 +467,6 @@ function commentsStepHeadline(updates) {
|
|
|
473
467
|
}
|
|
474
468
|
}
|
|
475
469
|
|
|
476
|
-
function commentsStepHeadlineLegal(updates) {
|
|
477
|
-
return commentsStepHeadline({
|
|
478
|
-
headline: updates.headline || "Additional Case Details",
|
|
479
|
-
headlineClass: updates.headlineClass,
|
|
480
|
-
})
|
|
481
|
-
}
|
|
482
|
-
|
|
483
470
|
function firstAndLastStepHeadline(updates) {
|
|
484
471
|
return {
|
|
485
472
|
$el: "h3",
|
|
@@ -499,7 +486,7 @@ function contactStepHeadline(updates) {
|
|
|
499
486
|
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
|
|
500
487
|
attrs: {
|
|
501
488
|
class:
|
|
502
|
-
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-4 t-px-1" +
|
|
489
|
+
"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" +
|
|
503
490
|
" " +
|
|
504
491
|
(updates.headlineClass || "") +
|
|
505
492
|
" f-contact-info-headline",
|
|
@@ -513,7 +500,7 @@ function contactStepSubHeadline(updates) {
|
|
|
513
500
|
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
|
|
514
501
|
attrs: {
|
|
515
502
|
class:
|
|
516
|
-
"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-6 t-pt-0 t-px-3" +
|
|
503
|
+
"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" +
|
|
517
504
|
" " +
|
|
518
505
|
(updates.subheadlineClass || "") +
|
|
519
506
|
" f-contact-info-subheadline",
|
|
@@ -589,55 +576,75 @@ function step(name, inputs, updates = {}) {
|
|
|
589
576
|
})
|
|
590
577
|
}
|
|
591
578
|
|
|
592
|
-
function
|
|
579
|
+
function commentsLegal(updates = {}) {
|
|
580
|
+
const mergedUpdates = { ...updates, nextOnEnter: false };
|
|
581
|
+
|
|
593
582
|
return step(
|
|
594
|
-
"
|
|
583
|
+
"comments",
|
|
595
584
|
[
|
|
596
|
-
|
|
585
|
+
commentsStepHeadline(updates),
|
|
597
586
|
comments(updates.scope, false, {
|
|
598
587
|
label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
|
|
599
588
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
600
589
|
// TODO: this is a mess
|
|
601
590
|
inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
|
|
591
|
+
innerClass: typeof updates.innerClass === "undefined" ? "t-max-w-xl" : updates.innerClass,
|
|
592
|
+
wrapperClass: typeof updates.wrapperClass === "undefined" ? undefined : updates.wrapperClass,
|
|
602
593
|
}),
|
|
603
|
-
// TODO: needs scope support
|
|
604
|
-
bankruptcyCrossSell(),
|
|
605
|
-
{
|
|
606
|
-
$el: "div",
|
|
607
|
-
if: "$get(CrossSell_Bankruptcy).value == true",
|
|
608
|
-
children: [
|
|
609
|
-
comments("CrossSell:Bankruptcy", false, {
|
|
610
|
-
label: "Bankruptcy or debt details:",
|
|
611
|
-
placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
|
|
612
|
-
inputClass: "!t-h-16",
|
|
613
|
-
}),
|
|
614
|
-
],
|
|
615
|
-
},
|
|
616
594
|
],
|
|
617
|
-
|
|
595
|
+
mergedUpdates
|
|
618
596
|
)
|
|
619
597
|
}
|
|
620
598
|
|
|
621
|
-
function
|
|
599
|
+
function contactInfoV2(updates = {}) {
|
|
622
600
|
return step(
|
|
623
601
|
"contactInfo",
|
|
624
602
|
[
|
|
625
603
|
contactStepHeadline(updates),
|
|
626
604
|
contactStepSubHeadline(updates),
|
|
627
605
|
trustedFormScript(),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
606
|
+
{
|
|
607
|
+
$el: "div",
|
|
608
|
+
attrs: {
|
|
609
|
+
class: "t-flex t-flex-col t-justify-center t-items-center",
|
|
610
|
+
},
|
|
611
|
+
children: [
|
|
612
|
+
emailFL(updates.scope, {
|
|
613
|
+
outerClass: "!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",
|
|
614
|
+
innerClass: "!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]",
|
|
615
|
+
}),
|
|
616
|
+
phoneFL(updates.scope, {
|
|
617
|
+
outerClass: "!t-max-w-[95%] !t-w-[96%] sm:!t-w-[70%]",
|
|
618
|
+
innerClass: "!t-w-[98%] !t-max-w-[98%] sm:!t-w-[100%] sm:!t-max-w-[100%]",
|
|
619
|
+
}),
|
|
620
|
+
],
|
|
621
|
+
},
|
|
622
|
+
TCPAConsent(updates.scope, {
|
|
623
|
+
outerClass: "!t-flex !t-flex-col !t-justify-center !t-items-center",
|
|
624
|
+
wrapperClass: "t-w-[95%] sm:t-w-[80%]",
|
|
625
|
+
messagesClass: "t-w-[95%] sm:t-w-[80%]",
|
|
626
|
+
}),
|
|
632
627
|
],
|
|
633
628
|
{ nextOnEnter: false }
|
|
634
629
|
)
|
|
635
630
|
}
|
|
636
631
|
|
|
637
|
-
function
|
|
632
|
+
function firstAndLastV4(updates = {}) {
|
|
638
633
|
return step(
|
|
639
634
|
"firstAndLast",
|
|
640
|
-
[
|
|
635
|
+
[
|
|
636
|
+
firstAndLastStepHeadline({
|
|
637
|
+
headline: updates.headline ?? "Who is looking for help?",
|
|
638
|
+
headlineClass: updates.headlineClass,
|
|
639
|
+
}),
|
|
640
|
+
{
|
|
641
|
+
$el: "div",
|
|
642
|
+
attrs: {
|
|
643
|
+
class: "t-flex t-flex-col t-justify-center t-items-center t-pt-3",
|
|
644
|
+
},
|
|
645
|
+
children: [fullNameFLMobileCol(updates.scope)],
|
|
646
|
+
},
|
|
647
|
+
],
|
|
641
648
|
updates
|
|
642
649
|
)
|
|
643
650
|
}
|
|
@@ -709,13 +716,17 @@ function ssdiHaveAttorney(updates = {}) {
|
|
|
709
716
|
)
|
|
710
717
|
}
|
|
711
718
|
|
|
712
|
-
const
|
|
719
|
+
const formNavigationNoFinalBack = (updates = {}) => ({
|
|
713
720
|
$el: "div",
|
|
714
721
|
attrs: {
|
|
715
722
|
class: {
|
|
716
723
|
if: "$activeStep === $firstStep()",
|
|
717
724
|
then: "step-nav " + (updates.firstStepButtonClass || "!t-justify-center sm:!t-justify-between"),
|
|
718
|
-
else:
|
|
725
|
+
else: {
|
|
726
|
+
if: "$activeStep === $lastStep()",
|
|
727
|
+
then: "step-nav !t-justify-center ",
|
|
728
|
+
else: "step-nav !t-justify-between",
|
|
729
|
+
},
|
|
719
730
|
},
|
|
720
731
|
},
|
|
721
732
|
children: [
|
|
@@ -725,12 +736,12 @@ const formNavigation = (updates = {}) => ({
|
|
|
725
736
|
onClick: "$setPreviousStep($prevStepFunc($get(form)))",
|
|
726
737
|
children: "Back",
|
|
727
738
|
outerClass: {
|
|
728
|
-
if: "$activeStep
|
|
739
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
729
740
|
then: "t-hidden sm:t-block",
|
|
730
741
|
else: "",
|
|
731
742
|
},
|
|
732
743
|
style: {
|
|
733
|
-
if: "$activeStep
|
|
744
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
734
745
|
then: "display: none;",
|
|
735
746
|
},
|
|
736
747
|
classes: {
|
|
@@ -769,7 +780,8 @@ const formNavigation = (updates = {}) => ({
|
|
|
769
780
|
then: "display: none;",
|
|
770
781
|
},
|
|
771
782
|
classes: {
|
|
772
|
-
input: (updates.inputClass || "") + "
|
|
783
|
+
input: (updates.inputClass || "") + " f-navigation-input !t-w-60",
|
|
784
|
+
outer: "!t-mt-0 !t-mb-0",
|
|
773
785
|
},
|
|
774
786
|
},
|
|
775
787
|
],
|
|
@@ -1642,76 +1654,81 @@ const schema = [
|
|
|
1642
1654
|
defaultMetaPropsLegal(),
|
|
1643
1655
|
formAnchor(),
|
|
1644
1656
|
{
|
|
1645
|
-
$cmp:
|
|
1657
|
+
$cmp: "FormKit",
|
|
1646
1658
|
props: formProps({
|
|
1647
|
-
formId:
|
|
1659
|
+
formId: "ssdi",
|
|
1648
1660
|
redirectMap: {
|
|
1649
|
-
|
|
1661
|
+
"*": LegalRedirectUrl(),
|
|
1650
1662
|
},
|
|
1651
1663
|
}),
|
|
1652
1664
|
children: [
|
|
1653
1665
|
progressBar(),
|
|
1654
1666
|
headline({
|
|
1655
1667
|
children: '$urlParam("hl", "Start Your FREE Case Evaluation")',
|
|
1656
|
-
if:
|
|
1657
|
-
headlineClass:
|
|
1668
|
+
if: "$activeStep === $firstStep()",
|
|
1669
|
+
headlineClass: "!t-text-dark",
|
|
1658
1670
|
}),
|
|
1659
1671
|
subHeadline({
|
|
1660
|
-
children: '$urlParam("shl", "
|
|
1661
|
-
if:
|
|
1662
|
-
subheadlineClass:
|
|
1672
|
+
children: '$urlParam("shl", "Receive up to $4,018 Per Month!")',
|
|
1673
|
+
if: "$activeStep === $firstStep()",
|
|
1674
|
+
subheadlineClass: "!t-text-[#00428A]",
|
|
1663
1675
|
}),
|
|
1664
1676
|
...hiddenInputsLegal,
|
|
1665
1677
|
{
|
|
1666
|
-
$el:
|
|
1678
|
+
$el: "div",
|
|
1667
1679
|
attrs: {
|
|
1668
|
-
class:
|
|
1680
|
+
class: "form-body",
|
|
1669
1681
|
},
|
|
1670
1682
|
children: [
|
|
1671
1683
|
ssdiTOLPAndZip(),
|
|
1672
1684
|
ssdiApplicantAge({
|
|
1673
1685
|
nextOnInput: true,
|
|
1674
|
-
headline:
|
|
1686
|
+
headline: "What is the Age of the Applicant?",
|
|
1675
1687
|
}),
|
|
1676
1688
|
ssdiDisabilityConditionStopWork({
|
|
1677
1689
|
nextOnInput: true,
|
|
1678
|
-
headline: "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?"
|
|
1690
|
+
headline: "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?",
|
|
1679
1691
|
}),
|
|
1680
1692
|
ssdiDisabilityWorkHistory({
|
|
1681
1693
|
nextOnInput: true,
|
|
1682
|
-
headline: "Have You Had a Full-Time Job Within the Past 5 Years?"
|
|
1694
|
+
headline: "Have You Had a Full-Time Job Within the Past 5 Years?",
|
|
1683
1695
|
}),
|
|
1684
1696
|
ssdiSocialSecurityDisabilityReceivingBenefits({
|
|
1685
1697
|
nextOnInput: true,
|
|
1686
|
-
headline: "Are You Currently Receiving Social Security Disability Benefits?"
|
|
1698
|
+
headline: "Are You Currently Receiving Social Security Disability Benefits?",
|
|
1687
1699
|
}),
|
|
1688
1700
|
ssdiDoctorTreatment({
|
|
1689
1701
|
nextOnInput: true,
|
|
1690
|
-
headline: "Have You Recently Been Treated by a Doctor, Hospital or Clinic?"
|
|
1702
|
+
headline: "Have You Recently Been Treated by a Doctor, Hospital or Clinic?",
|
|
1691
1703
|
}),
|
|
1692
1704
|
ssdiHaveAttorney({
|
|
1693
1705
|
nextOnInput: true,
|
|
1694
|
-
headline: "Already Working with An Attorney?"
|
|
1706
|
+
headline: "Already Working with An Attorney?",
|
|
1695
1707
|
}),
|
|
1696
|
-
|
|
1708
|
+
commentsLegal({
|
|
1697
1709
|
label: null,
|
|
1698
|
-
headline:
|
|
1699
|
-
headlineClass:
|
|
1710
|
+
headline: "Please briefly describe your situation:",
|
|
1711
|
+
headlineClass: "!t-text-dark",
|
|
1700
1712
|
}),
|
|
1701
|
-
|
|
1702
|
-
headlineClass:
|
|
1713
|
+
firstAndLastV4({
|
|
1714
|
+
headlineClass: "!t-text-dark",
|
|
1703
1715
|
}),
|
|
1704
|
-
|
|
1705
|
-
headline:
|
|
1706
|
-
headlineClass:
|
|
1707
|
-
subheadline:
|
|
1716
|
+
contactInfoV2({
|
|
1717
|
+
headline: "Submit Your Free Application",
|
|
1718
|
+
headlineClass: "!t-text-[#00428A]",
|
|
1719
|
+
subheadline:
|
|
1720
|
+
"Based on your input you may qualify for SSDI benefits. Please verify your contact information.",
|
|
1708
1721
|
}),
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1722
|
+
formNavigationNoFinalBack({
|
|
1723
|
+
inputClass: "!t-font-extrabold",
|
|
1724
|
+
firstStepButtonClass: "!t-justify-center",
|
|
1725
|
+
}),
|
|
1726
|
+
secureIconStandalone(),
|
|
1727
|
+
formDetails(),
|
|
1728
|
+
],
|
|
1729
|
+
},
|
|
1730
|
+
],
|
|
1731
|
+
},
|
|
1715
1732
|
];
|
|
1716
1733
|
|
|
1717
1734
|
export { schema as default };
|