mod-build 4.0.48 → 4.0.49
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/public/resources/scripts/abandonment/abandonment-a4bbb36fbc8ed64042b8.min.js +2 -0
- package/public/resources/scripts/abandonment/abandonment.min.js +2 -0
- package/public/resources/scripts/callrail/callrail-14011d73b50a928de4b4.min.js +2 -0
- package/public/resources/scripts/callrail/callrail.min.js +2 -0
- package/public/resources/scripts/footer/footer-component-46dc0d7ca6af4fc3b76b.min.js +2 -0
- package/public/resources/scripts/footer/footer-component.min.js +2 -0
- package/public/resources/scripts/geolocation/geolocation.min.js +2 -0
- package/public/resources/scripts/helpers/addVWOTestQueryParam.min.js +2 -0
- package/public/resources/scripts/helpers/addVWOTestQueryParam.min.js.map +1 -0
- package/public/resources/scripts/helpers/additionalOpts.min.js +2 -0
- package/public/resources/scripts/helpers/additionalOpts.min.js.map +1 -0
- package/public/resources/scripts/helpers/calls-only.min.js +2 -0
- package/public/resources/scripts/helpers/calls-only.min.js.map +1 -0
- package/public/resources/scripts/helpers/getPhoneAssignmentData.min.js +2 -0
- package/public/resources/scripts/helpers/getPhoneAssignmentData.min.js.map +1 -0
- package/public/resources/scripts/helpers/initNumericOnlyFields.min.js +2 -0
- package/public/resources/scripts/helpers/initNumericOnlyFields.min.js.map +1 -0
- package/public/resources/scripts/helpers/initQSForm.min.js +2 -0
- package/public/resources/scripts/helpers/initQSForm.min.js.map +1 -0
- package/public/resources/scripts/helpers/initQuadTransform.min.js +2 -0
- package/public/resources/scripts/helpers/initQuadTransform.min.js.map +1 -0
- package/public/resources/scripts/helpers/isZipCodeValid.min.js +2 -0
- package/public/resources/scripts/helpers/isZipCodeValid.min.js.map +1 -0
- package/public/resources/scripts/helpers/observeVWOVariation.min.js +2 -0
- package/public/resources/scripts/helpers/observeVWOVariation.min.js.map +1 -0
- package/public/resources/scripts/helpers/opts.min.js +2 -0
- package/public/resources/scripts/helpers/opts.min.js.map +1 -0
- package/public/resources/scripts/jornaya.hbs +35 -0
- package/public/resources/scripts/jornaya.html +35 -0
- package/public/resources/scripts/mod-alytics/modalytics-be44027508c0438f6709.min.js +2 -0
- package/public/resources/scripts/mod-alytics/modalytics.min.js +2 -0
- package/public/resources/scripts/mod-form/form/contractor-0918337caf3dfede1609.min.js +2 -0
- package/public/resources/scripts/mod-form/form/contractor.min.js +2 -0
- package/public/resources/scripts/mod-form/form/homeowner-19a121b0e596042326f4.min.js +2 -0
- package/public/resources/scripts/mod-form/form/homeowner.min.js +2 -0
- package/public/resources/scripts/mod-utils/modutils-bc275eb41af515f626ef.min.js +2 -0
- package/public/resources/scripts/mod-utils/modutils.min.js +2 -0
- package/public/resources/scripts/trusted-form.hbs +38 -0
- package/public/resources/scripts/trusted-form.html +38 -0
- package/public/resources/styles/components/abandonment/abandonment-8a673f060817db6cb7dc.min.css +1 -0
- package/public/resources/styles/components/abandonment/abandonment.min.css +1 -0
- package/public/resources/styles/components/footer/mod-footer-d233fa64b6c8297c70ec.min.css +1 -0
- package/public/resources/styles/components/footer/mod-footer.min.css +1 -0
- package/public/resources/styles/components/footer/qs-footer-926e67c28d10c729db46.min.css +1 -0
- package/public/resources/styles/components/footer/qs-footer.min.css +1 -0
- package/src/resources/data/tcpa.json +4 -0
- package/src/resources/templates/modals/about/index.hbs +9 -0
- package/src/resources/templates/modals/about/index.html +9 -0
- package/src/resources/templates/modals/contact-us/index.hbs +348 -0
- package/src/resources/templates/modals/contact-us/index.html +348 -0
- package/src/resources/templates/modals/e-sign-consent/index.hbs +35 -0
- package/src/resources/templates/modals/e-sign-consent/index.html +35 -0
- package/src/resources/templates/modals/faq/index.hbs +9 -0
- package/src/resources/templates/modals/faq/index.html +9 -0
- package/src/resources/templates/modals/privacy/index.hbs +237 -0
- package/src/resources/templates/modals/privacy/index.html +237 -0
- package/src/resources/templates/modals/terms/index.hbs +167 -0
- package/src/resources/templates/modals/terms/index.html +167 -0
- package/src/scripts/has-qs-params.js +2 -2
- package/src/shared-components/call-tracking/_call-tracking.scss +311 -0
- package/src/shared-components/call-tracking/call-tracking-icon.html +8 -0
- package/src/shared-components/call-tracking/call-tracking.html +81 -0
- package/src/shared-components/call-tracking/phone.svg +6 -0
- package/src/shared-components/card-button/_card-button.scss +49 -0
- package/src/shared-components/card-button/card-button.html +9 -0
- package/src/shared-components/carousel/_carousel.scss +106 -0
- package/src/shared-components/carousel/carousel.html +23 -0
- package/src/shared-components/carousel/carousel.js +3573 -0
- package/src/shared-components/carousel/carousel.js.map +1 -0
- package/src/shared-components/carousel/carousel.min.js +2 -0
- package/src/shared-components/carousel/carousel.min.js.map +1 -0
- package/src/shared-components/carousel/carousel.min.min.js +2 -0
- package/src/shared-components/carousel/carousel.min.min.js.map +1 -0
- package/src/shared-components/checkbox/_checkbox.scss +130 -0
- package/src/shared-components/checkbox/checkbox.html +10 -0
- package/src/shared-components/consent-capture/tcpa.html +12 -0
- package/src/shared-components/expand-collapse/_expand-collapse.scss +93 -0
- package/src/shared-components/expand-collapse/expand-collapse.html +8 -0
- package/src/shared-components/expand-collapse/expand-collapse.js +40 -0
- package/src/shared-components/expand-collapse/expand-collapse.min.js +2 -0
- package/src/shared-components/expand-collapse/expand-collapse.min.js.map +1 -0
- package/src/shared-components/featured-block/_featured-block.scss +191 -0
- package/src/shared-components/featured-block/featured-block.html +80 -0
- package/src/shared-components/foot-assets/foot-assets.html +107 -0
- package/src/shared-components/form-tcpa/form-tcpa-spanish.html +61 -0
- package/src/shared-components/form-tcpa/form-tcpa.html +55 -0
- package/src/shared-components/gtm-body/gtm-body.html +4 -0
- package/src/shared-components/head/head.html +195 -0
- package/src/shared-components/header/_header.scss +200 -0
- package/src/shared-components/header/header.html +79 -0
- package/src/shared-components/hero/_hero.scss +276 -0
- package/src/shared-components/hero/hero.html +136 -0
- package/src/shared-components/how-it-works/_how-it-works.scss +138 -0
- package/src/shared-components/how-it-works/how-it-works.html +19 -0
- package/src/shared-components/input/_input.scss +242 -0
- package/src/shared-components/input/input.html +30 -0
- package/src/shared-components/preloader/_preloader.scss +61 -0
- package/src/shared-components/preloader/preloader.html +49 -0
- package/src/shared-components/progress-bar/_progress-bar.scss +142 -0
- package/src/shared-components/progress-bar/progress-bar.html +20 -0
- package/src/shared-components/progress-bar/progress-bar.js +26 -0
- package/src/shared-components/progress-bar/progress-bar.min.js +2 -0
- package/src/shared-components/progress-bar/progress-bar.min.js.map +1 -0
- package/src/shared-components/radio-button/_radio-button.scss +577 -0
- package/src/shared-components/radio-button/radio-button.html +25 -0
- package/src/shared-components/reviews/_reviews.scss +79 -0
- package/src/shared-components/reviews/reviews.html +27 -0
- package/src/shared-components/section-deals/sitemap.xml +9 -0
- package/src/shared-components/select/_select.scss +61 -0
- package/src/shared-components/select/select.html +8 -0
- package/src/shared-components/steps/_steps.scss +431 -0
- package/src/shared-components/steps/defaultFormFieldConfig.json +64 -0
- package/src/shared-components/steps/step-fields.html +36 -0
- package/src/shared-components/steps/steps.html +136 -0
- package/src/shared-components/textarea/_textarea.scss +96 -0
- package/src/shared-components/textarea/textarea.html +13 -0
- package/src/shared-components/theme-toggle/_theme-toggle.scss +68 -0
- package/src/shared-components/theme-toggle/theme-toggle.html +34 -0
- package/src/shared-components/tile/_tile.scss +117 -0
- package/src/shared-components/tile/tile.html +27 -0
- package/src/shared-components/value-props/_value-props.scss +99 -0
- package/src/shared-components/value-props/value-props.html +17 -0
- package/src/shared-components/zip-control/_zip-control.scss +42 -0
- package/src/shared-components/zip-control/zip-control.html +21 -0
- package/tasks/get-default-trade-questions.js +168 -128
- package/tasks/serve.js +1 -1
- package/src/data/trade-questions/alerts_medical.js +0 -109
- package/src/data/trade-questions/bathroom_refacing.js +0 -94
- package/src/data/trade-questions/cabinet_refacing.js +0 -249
- package/src/data/trade-questions/cabinets.js +0 -34
- package/src/data/trade-questions/concrete_foundation.js +0 -55
- package/src/data/trade-questions/door.js +0 -141
- package/src/data/trade-questions/flooring.js +0 -184
- package/src/data/trade-questions/garage_door.js +0 -87
- package/src/data/trade-questions/gutters.js +0 -44
- package/src/data/trade-questions/home_security.js +0 -129
- package/src/data/trade-questions/home_warranty.js +0 -55
- package/src/data/trade-questions/hot_tubs.js +0 -90
- package/src/data/trade-questions/hvac.js +0 -177
- package/src/data/trade-questions/index.js +0 -23
- package/src/data/trade-questions/insulation.js +0 -116
- package/src/data/trade-questions/plumbing.js +0 -258
- package/src/data/trade-questions/roofing.js +0 -116
- package/src/data/trade-questions/siding.js +0 -148
- package/src/data/trade-questions/solar.js +0 -67
- package/src/data/trade-questions/stair_lifts.js +0 -45
- package/src/data/trade-questions/tree_services.js +0 -167
- package/src/data/trade-questions/walk_in_tubs.js +0 -45
- package/src/data/trade-questions/water_treatment.js +0 -46
- package/src/data/trade-questions/windows.js +0 -130
- package/src/data/trade-questions-config.js +0 -137
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(){"use strict";var o={3389:function(o,e,t){t.d(e,{additionalOptions:function(){return n}});const n={isSubmitting:!1,isPhoneValid:!1,isZipValid:!1,areLeadTokenScriptsLoaded:!1,loadedScripts:[],optedIn:!1,inlineZip:!1,mutationObserverTarget:document.body,mutationObserverConfig:{attributes:!0},projexURL:null,redirectStart:null,zipEditControlCls:".zip-control__edit, .change-zip-control, .step__city-state, .form__city-state, .zip-control, .form-group__city-state",zipEditInput:'input[name="zip1"], input[name="inertZip"]',zipControlButton:document.querySelector(".zip-control__button"),retryZipValidation:!1,preventDuplicateSubmission:!1,getTime:(new Date).getTime(),radioButtonClickedByMouse:!1,includeDuplicateSubmissionExperience:!0,homeownerLeadConversionProps:{}}},3408:function(o,e,t){t.d(e,{V:function(){return n}});const n=function(o){switch(o){case"PC":return"zip";case"FN":return"firstName";case"LN":return"lastName";case"S1":return"address";case"SP":return"state";case"CN":return"country";case"EM":return"email";case"HP":return"homePhone";case"CentralHeatingInstallType":case"CentralHeatingRepairType":case"BoilerSystemInstallType":case"BoilerSystemRepairType":return"BoilerHeatingInstallRepairType";case"PortalServiceCode":return"service";case"BathwrapProjectType":return"BathProjectScope";default:return o}}},8352:function(o,e,t){t.d(e,{Vp:function(){return r.V},_t:function(){return i.additionalOptions},p7:function(){return n}});var n=t(7632),i=t(3389),r=t(3408)},7632:function(o,e,t){t.r(e),t.d(e,{opts:function(){return n}});const n={vertical:null,form:document.getElementById("form"),formId:"form",formLoadingCls:"form--loading",formSubmittingCls:"form--submitting",formSubmittedCls:"form--submit-done",formSubmitErrorCls:"form--submit-error",stepsSelector:'[data-bind="step"]',stepActiveCls:"step--active",backButtons:document.querySelectorAll('.back-btn, .btn-back, [data-btn="back"]'),progressBar:document.querySelectorAll(".progress-bar"),isFormLoading:!1,formElemsSelectors:{},formElemsSelectorsDefaults:{tcpaCopy:"#tcpa-copy",maskedPhoneFields:'input[name="homePhone"]',maskedEinFields:'input[name="ein"]',numericsOnlyFields:'input[name="zip"], input[name="zip1"], input[name="companyZip"]',addressField:'input[name="address"]',stateField:'input[name="state"]',cityField:'input[name="city"]',zip1Field:'input[name="zip1"]',zipField:'input[name="zip"]',repairField:'input[name="repair"]',hvacWouldReplaceBlock:"#hvac-would-replace-block",hvacSystemTypeField:'input[name="hvacSystemType"]',hvacFuelTypeBlock:"#hvac-fuel-type-block",utilityProviderWrapper:"#utility-provider-wrapper"},hvacSystemTypesWithFuel:["Central Heating","Boiler"],activeInputs:".step.swiper-slide-active input[type=text], .step.swiper-slide-active input[type=tel], .step.swiper-slide-active input[type=email], .step.swiper-slide-active textarea, .step.swiper-slide-active input[type=radio]",fieldErrorCls:"has-error",errorParentCls:"parent-error",gaTracker:"main",thankyouPage:"/thankyou/",landingPage:window.location.protocol+"//"+window.location.host+window.location.pathname+(window.location.search?window.location.search:""),hashStepTracking:!1,useModApi:!1,useQSApi:!1,useFormsServiceApi:!1,userObj:{},formSwiperInstance:"",prepopulateUserInfo:!1,useGetMotivationParam:!0,useAutofill:!1,useSmoothScrolling:!1,hasZipChange:!1,trackZip1ChangeDynamically:!1,useTooltips:!1,showSecureText:!1,useObserveVWOVariation:!1,observedTargetNode:document.body,observerConfig:{attributes:!0},vwoVariationDataAttribute:"data-vwo-test",observeVWOVariationCallback:function(){},vwoVariationDataAttributeValue:"",secureTextStepsSelector:[".step--personalInfo",".step--contactInfo"],secureTextPosition:"below-cta",isLoaderLoaded:!1,showLoadingOverlay:!1,showRedirectOverlay:!1,appendOverlayToElem:document.getElementById("form"),ignoreDuplicateSubmissionBlocker:!1,hvacVerticalName:"hvac",hvacRepairFieldValue:"yes",addAccessibilityUpdates:!1,isOrganicPreferredMatch:!1,widgetHashStepTracking:!1,abandonmentHtmlPath:"abandonment/index.html",formSubmittingCallback:null,formSubmitSuccessCallback:null,formSubmitErrorCallback:null,stepChangingCallback:null,stepChangedCallback:null,zipCodeValidated:null,shouldSuppressConversionPixel:!1,suppressConversionPixelParam:"cnvrsnpxl=n",useStepNameHash:!1,delayQuadTransformation:!1,isFirePixelTrue:!1,firePixelParam:"firepxl=y",isSharedMatch:!1,eCommerceVendorKeys:{shared:{adt:"9634310",adtHealth:"30772410",frontdoor:"33097210"},exclusive:{airo:"31194410",angi:"31816410",frontdoor:"33097210",networx:"11968410"}},eCommerceExclusiveLoaders:{frontdoor:[`${window.modUtils?window.modUtils.getModernizeDomain():"https://modernize.com"}/quote/resources/assets/images/logos/partners/american-home-shield.svg`,"Congrats! You’re eligible to see pricing from American Home Shield now.","#004B98","#ED1C24","#004B98","#F9F9F6"],angi:[`${window.modUtils?window.modUtils.getModernizeDomain():"https://modernize.com"}/quote/resources/assets/images/logos/partners/angi.svg`,"Transferring to Angi","#A03027","#FF6153","#A03027","#F9F9F6"],networx:[`${window.modUtils?window.modUtils.getModernizeDomain():"https://modernize.com"}/quote/resources/assets/images/logos/partners/networx.svg`,"Transferring to Networx","#344054","#0088FF","#344054","#F9F9F6"]},sharedParam:"shared=",isExclusiveMatch:!1,exclusiveMatchResultsPage:"",exclusiveMatchVendor:"",resultsPageAdditionalParams:{},prefVendorKeys:[],prefVendorParam:"prefVendor=",landingPageSubdirectory:"",isCrossSellForm:!1,shouldUpdateTCPACompanyNameToModernize:!0,validateRecaptcha:!1,recaptchaVersion:3,isVite:!1,scrollTopOnStepChange:!0,ignoreQueryParams:[],ignoreQueryParamsInSessionStorage:!1,autoRedirectToTyOrSorryPage:!0,phoneAssignmentConfig:{showPhoneAssignmentNumber:!1,phoneNumberLinksSelector:"[class*=call-link],[class*=call-button]",phoneNumbersTextSelector:"[class*=call-number]",phoneNumberContainerSelector:".callNowControls",questQuadTagId:{staging:"",prod:""},matchVendors:[],response:null,useHsEndpoint:!1},consentCaptureDetails:"",consentRequestId:"",consentCaptureVendors:[],serviceSpecificAttributes:{}}},1973:function(o,e,t){function n(){const o=document.querySelector(".zip-control-content"),e=document.querySelector(".zip-control"),t=document.querySelector(".show-zip-beside-field"),n=document.querySelector(".zip-control-content .form-input");window.modForm.zipControlButton.addEventListener("click",(i=>{i.preventDefault(),o.style.display="block",e.style.display="none",n&&n.focus(),t&&t.classList.add("col-sm-8")}))}t.d(e,{r:function(){return n}})},8751:function(o,e,t){function n(o){return"no"===o.OwnHome&&(o.OwnHome="No"),-1===["Yes","No"].indexOf(o.OwnHome)&&(o.OwnHome="Yes",window.modUtils.heap("track",["Homeowner Lead | Default Attribute",{attribute:"OwnHome"}])),o}t.d(e,{x:function(){return n}})},5743:function(o,e,t){function n(o,e){return o.data.providers.data.filter((function(o){return o.name===e}))[0]||[]}t.d(e,{R:function(){return n}})},9277:function(o,e,t){function n(){const o=Array.from(new FormData(window.modForm.opts.form));let e={};e=Object.fromEntries(o);const t={};if(window.modForm.opts.form.querySelectorAll("input[data-cro]").forEach((function(o){let e=o.type;e=void 0===e?"textarea":e;const n=o.name,i=o.value;(("radio"===e||"checkbox"===e)&&o.checked||("text"===e||"textarea"===e||"tel"===e)&&""!==i)&&(t[n]=i)})),0!==Object.keys(t).length&&(e.CROTag=JSON.stringify(t)),!e.homeowner||""===e.homeowner||"on"===e.homeowner){const o=window.modForm.opts.form.querySelector('input[type="checkbox"][name="homeowner"]');o&&o.length&&(e.homeowner=o.checked?"yes":"no")}return e}t.d(e,{t:function(){return n}})},872:function(o,e,t){function n(o){const e=["token","src","sub_id","sub2_id","pub_id","account","campaign","ad_group","keyword","campaignid","adgroupid","agid","keywordid","loc1","loc2","kw","gclid","projectid","userid","quadlink","CLK","CCID","QTR","DCK","utm_source","utm_medium","utm_campaign","utm_content","utm_term"],t=window.modUtils.getUrlParamsToObjectLC(o),n={};let i;if(window.projectId){i=window.modUtils.getModernizeDomain()+"/my/project-"+window.projectId;for(let o=0;o<e.length;o++){const i=e[o],r=i.toLowerCase();void 0!==t[r]&&(n[i]=t[r])}Object.keys(t).length&&t.hrcreferrer?n.referrer=t.hrcreferrer:n.referrer=window.location.protocol+"//"+window.location.host+window.location.pathname,Object.keys(n).length&&(i+="?"+new URLSearchParams(n).toString())}else i="https://modernize.com/quote/unmatched";return i}t.d(e,{E:function(){return n}})},8884:function(o,e,t){function n(){const o=(""!==location.search.slice(1)?location.search.slice(1):"").toLowerCase();return["solar","roofing","windows","hvac","siding","gutters","bathrooms","kitchen-remodeling","cabinets","home-security","home-warranty","medical-alerts","stair-lifts","walk-in-tubs","hot-tubs","flooring","tree-services"].filter((function(e){return o.includes(e)}))[0]}t.d(e,{S:function(){return n}})},2845:function(o,e,t){function n(){const o=window.modForm.opts.getVars,e=window.modForm.opts.vertical,t={title:function(o){const e=document.querySelector('[data-theme-template="title"]');document.title=o,e.innerText=o},subtitle:function(o){document.querySelector('[data-theme-template="subtitle"]').innerText=o},formtitle:function(o){document.querySelector('[data-theme-template="formtitle"]').innerText=o},companyname:function(o){const t=document.getElementById("company-name"),n="hvac"===e?"":" from";o=o.slice(0,1).toUpperCase()+o.slice(1),t.innerText=n+" "+o},dt:function(o){const e=document.getElementsByClassName("dynamic-text"),t=o.split("|");let n;for(let o=0;o<t.length;o++)n=t[o],n&&(e[o].innerText=n)},vp:function(o){const e=document.querySelectorAll('[data-theme-template="vp"]'),t=o.split("|");let n;for(let o=0;o<t.length;o++)n=t[o],n&&(e[o].innerText=n)}};Object.keys(t).forEach((e=>{"string"==typeof o[e]&&""!==o[e]&&t[e](o[e])}))}t.d(e,{H:function(){return n}})},4006:function(o,e,t){function n(){window.modForm.opts.formElemsSelectors={...window.modForm.opts.formElemsSelectorsDefaults,...window.modForm.opts.formElemsSelectors},Object.keys(window.modForm.opts.formElemsSelectors).forEach((o=>{window.modForm.opts[o]||(window.modForm.opts[o]=window.modForm.opts.form.querySelectorAll(window.modForm.opts.formElemsSelectors[o]))}))}t.d(e,{C:function(){return n}})},5895:function(o,e,t){t.d(e,{initQSForm:function(){return i}});var n=t(2562);function i(){const o=window.modUtils.getModernizeDomain()+"/my/results/";window.modForm.opts.tagIDTest="203838617",window.modForm.opts.tagIDLive="204673056",window.modForm.opts.leadSubmitApi="hs/tyPage/matches.jsp",window.modForm.opts.trafficDetailsApi="api/TrafficDetails/get",window.modForm.opts.isWirelesssApi="api/isWireless",window.modForm.opts.websiteName=window.location.host,window.modForm.opts.resultsPage=window.modForm.opts.resultsPage?window.modForm.opts.resultsPage:o,window.modForm.opts.errorRedirectPath=window.modForm.opts.errorRedirectPath?window.modForm.opts.errorRedirectPath:o,window.modForm.opts.landingPage=window.location.hostname+window.location.pathname,window.modForm.opts.quadLinkParams={},window.modForm.opts.qsParams=window.modForm.opts.qsParams?window.modForm.opts.qsParams:["CCID","CLK","QTR"],window.modForm.opts.quadLinkHasBeenTransformed=!1,window.modForm.opts.quadLinkData={WebSiteName:window.modForm.opts.websiteName,quadlink:"",defaultQuad:"",tagID:""},window.modForm.opts.delayQuadTransformation||(0,n.initQuadTransform)(!0),(0,n.initQuadTransformRetry)(),(0,n.addRequiredQSFieldsToForm)(),window.modUtils.getLandingPage().includes("bestcompany")&&(0,n.addInvocaFallbackToDataLayer)()}},6470:function(o,e,t){function n(){const o='<div class="secure-text secure-text--dark"><b>Your information is secure</b></div>';window.modForm.opts.secureTextStepsSelector.forEach((function(e){const t=document.querySelector(`${e} .btn`);t&&("below-cta"===window.modForm.opts.secureTextPosition?t.insertAdjacentHTML("afterend",o):t.insertAdjacentHTML("beforebegin",o))}))}t.d(e,{w:function(){return n}})},1027:function(o,e,t){function n(o){window.modForm.opts.userLocation=o.city+", "+o.state;const e=document.querySelectorAll(".user-location:not(.reviews-block .user-location)");e.length&&e.forEach((function(o){o&&(o.innerHTML=window.modForm.opts.userLocation)})),document.querySelector(".user-city")&&(document.querySelector(".user-city").innerHTML=o.city)}t.d(e,{y:function(){return n}})},6800:function(o,e,t){function n(o){const e=o.data.providers.data.filter((function(o){return!o.isValid}));let t=!1;return 1===e.length&&"optIn"===e.pop().name&&(t=!0),t}t.d(e,{Q:function(){return n}})},6824:function(o,e,t){function n(){document.referrer.indexOf(window.location.host)<0&&!window.modUtils.getCookie(window.modForm.opts.referrerCookieName)&&window.modUtils.setCookie(window.modForm.opts.referrerCookieName,document.referrer,window.modForm.opts.referrerCookieExpiration)}t.d(e,{O:function(){return n}})},2460:function(o,e,t){function n(o){const e=document.querySelector(".swiper-slide-active .step-inner"),t=document.querySelector(".form-btns"),n=document.querySelector(".form-tcpa"),i=window.modForm.opts.landingPage.includes("bestcompany")?"https://bestcompany.com/":"https://modernize.com/",r=o||i;setTimeout((function(){window.modForm.opts.backButtons&&window.modForm.opts.backButtons.forEach((function(o){o.style.display="none"})),window.modForm.opts.progressBar&&window.modForm.opts.progressBar.forEach((function(o){o.style.display="none"})),t&&(t.style.display="none"),n&&(n.style.display="none"),e.innerHTML='<div style="padding:0 10px;text-align:center;"><h3 style="color:#545253;font-size:22px;font-weight:bold;margin:30px auto 0;">Oops!</h3><p style="color:#545253;display:block;font-size:15px;font-weight:300;line-height:1.5;margin:20px auto 30px;">It looks like you just submitted your <br>information a moment ago.</p><a class="btn '+(window.modForm.opts.addAccessibilityUpdates?"btn--primary":"btn-primary")+'" id="double-submission-fallback-button" href="'+r+'" style="max-width:280px;"><span class="btn__text" style="visibility:visible;">See My Matches</span></a></div>',window.modUtils.heap("track",["Showing Fallback - Duplicate Submission"])}),500)}t.d(e,{w:function(){return n}})},5422:function(o,e,t){function n(){const o=setInterval((()=>{if(window.dataLayer){clearInterval(o);const e=document.querySelector('input[name="Match"]');[{vendorKey:e?e.value:null},{serviceCode:window.modForm.opts.vertical},{defaultQuad:window.modForm.getDefaultQuad()}].forEach((o=>window.dataLayer.push(o)))}}),100)}t.d(e,{Q:function(){return n}})},9612:function(o,e,t){function n(){window.modForm.opts.form.querySelectorAll(".radio label").forEach((function(o){const e=o.querySelector("input");o.setAttribute("data-automated-testing",e.getAttribute("name")+" "+e.value)}))}t.d(e,{_:function(){return n}})},3517:function(o,e,t){function n(o){const e=["Control","Tab","ArrowLeft","ArrowDown","ArrowRight","ArrowUp","Backspace","Enter","Delete"];if(!o.length)return!1;o.forEach((function(o){o.addEventListener("keydown",(function(o){!Number.isNaN(parseInt(o.key))||e.includes(o.key)||o.metaKey||o.preventDefault(),o.metaKey&&"KeyA"===o.code&&this.select()}))}))}t.d(e,{initNumericOnlyFields:function(){return n}})},5445:function(o,e,t){function n(o){if(!o)return!1;const e=o.parentElement.closest("."+window.modForm.opts.errorParentCls);if(e){if(e.classList.add(window.modForm.opts.fieldErrorCls),window.modForm.opts.addAccessibilityUpdates)if("radio"===o.getAttribute("type")){const e=o.closest("fieldset").getAttribute("id"),t=o.closest("fieldset").querySelector('input[type="radio"]:first-child');t.setAttribute("aria-invalid","true"),t.setAttribute("aria-describedby","error--"+e),t.focus()}else{let e;e=o.hasAttribute("id")?o.getAttribute("id"):o.getAttribute("name"),o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby","error--"+e)}}else o.parentElement.classList.add(window.modForm.opts.fieldErrorCls)}t.d(e,{x:function(){return n}})},4222:function(o,e,t){function n(o){const e=["Control","Tab","ArrowLeft","ArrowDown","ArrowRight","ArrowUp","Backspace","Enter"];if(!o.length)return!1;o.forEach((function(o){const t=/\D/g;o.addEventListener("keydown",(function(t){10!==o.value.length||e.includes(t.key)||t.preventDefault()})),o.addEventListener("keyup",(function(){let e=o.value;e=e.replace(t,"").substr(0,9),o.value=e.replace(/(\d{2})(\d+)/,"$1-$2")}))}))}t.d(e,{k:function(){return n}})},4822:function(o,e,t){function n(o){const e=["Control","Tab","ArrowLeft","ArrowDown","ArrowRight","ArrowUp","Backspace","Enter"];if(!o.length)return!1;o.forEach((function(o){const t=/\D/g;let n=o.value;if(10===n.length){let e=/(\d{3})(\d{3})(\d{,4})?/,t="($1) $2-$3";o.value=n.replace(e,t)}o.addEventListener("keydown",(function(t){14!==o.value.length||e.includes(t.key)||t.preventDefault()})),o.addEventListener("keyup",(function(){let e=o.value,n=/(\d{1,3})/,i="($1";e=e.replace(t,"").substr(0,10);const r=e.length;r>3&&r<=6?(n=/(\d{3})(\d{,3})?/,i+=") $2"):r>6&&(n=/(\d{3})(\d{3})(\d{,4})?/,i+=") $2-$3"),o.value=e.replace(n,i)}))}))}t.d(e,{c:function(){return n}})},7146:function(o,e,t){function n(o){if(!o)return!1;const e=o.parentElement.closest("."+window.modForm.opts.errorParentCls);if(e){if(e.classList.remove(window.modForm.opts.fieldErrorCls),window.modForm.opts.addAccessibilityUpdates)if("radio"===o.getAttribute("type")){const e=o.closest("fieldset").querySelector('input[type="radio"]:first-child');e.setAttribute("aria-invalid","false"),e.removeAttribute("aria-describedby")}else o.setAttribute("aria-invalid","false"),o.removeAttribute("aria-describedby")}else o.parentElement.classList.remove(window.modForm.opts.fieldErrorCls)}t.d(e,{E:function(){return n}})},5608:function(o,e,t){function n(){let o;return window.modForm.opts.steps.forEach((function(e){e.classList.contains(window.modForm.opts.stepActiveCls)&&(o=e)})),o}t.d(e,{I:function(){return n}})},6813:function(o,e,t){function n(o){return document.querySelector(`#${o}`).nextElementSibling.getAttribute("id")}t.d(e,{v:function(){return n}})},1913:function(o,e,t){function n(o){return document.querySelector(`#${o}`).previousElementSibling.getAttribute("id")}t.d(e,{D:function(){return n}})},425:function(o,e,t){function n(){window.modForm.opts.steps.forEach((function(o){o.classList.contains(window.modForm.opts.stepActiveCls)&&o.classList.remove(window.modForm.opts.stepActiveCls),window.modForm.opts.addAccessibilityUpdates&&(o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1"))}))}t.d(e,{h:function(){return n}})},1974:function(o,e,t){function n(){const o=function(){let o;window.modForm.opts.hvacSystemTypeField.length&&window.modForm.opts.hvacSystemTypeField.forEach((function(e){o="radio"===e.type?e.checked&&e.value.trim():e.value.trim()})),o&&(window.modForm.opts.hvacSystemTypesWithFuel.indexOf(o)>-1?window.modForm.opts.hvacFuelTypeBlock[0].style.display="block":window.modForm.opts.hvacFuelTypeBlock[0].style.display="hidden")};window.modForm.opts.hvacSystemTypeField.length&&window.modForm.opts.hvacFuelTypeBlock.length&&(window.modForm.opts.hvacSystemTypeField.forEach((function(e){e.addEventListener("change",(function(){o()}))})),o())}t.d(e,{o:function(){return n}})},6647:function(o,e,t){function n(){const o=function(){let o;window.modForm.opts.repairField.length&&window.modForm.opts.repairField.forEach((function(e){"radio"===e.type?e.checked&&(o=e.value.trim()):o=e.value.trim()})),o&&(window.modForm.opts.hvacRepairFieldValue===o.toLowerCase()?window.modForm.opts.hvacWouldReplaceBlock[0].style.display="block":window.modForm.opts.hvacWouldReplaceBlock[0].style.display="none")};window.modForm.opts.repairField.length&&window.modForm.opts.hvacWouldReplaceBlock.length&&(window.modForm.opts.repairField.forEach((function(e){e.addEventListener("change",(function(){o()}))})),o())}t.d(e,{v:function(){return n}})},9258:function(o,e,t){function n(o){(window.modForm.opts.isFormLoading||window.modForm.opts.formSwiperInstance.animating)&&o.preventDefault()}t.d(e,{I:function(){return n}})},4623:function(o,e,t){t.d(e,{B:function(){return n}});const n=function(){window.modForm.opts.steps&&window.modForm.opts.steps.length&&window.modForm.opts.steps.forEach((function(o){if(o){const e=o.querySelectorAll("input, select, textarea");e.length&&e.forEach((function(e){e&&(o.classList.contains(window.modForm.opts.stepActiveCls)?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}))}}))}},3313:function(o,e,t){function n(o,e){const t=document.createElement("div");t.className="form-group__tooltip";const n=document.createElement("i");n.className="form-group__tooltip-icon icon-fill-question",n.setAttribute("data-bind","tooltip-icon"),n.setAttribute("tooltip-name",o);const i=document.createElement("div");return i.classList.add("form-group__tooltip-message"),i.innerHTML=e,t.appendChild(n),n.insertAdjacentElement("afterend",i),t}function i(){const o=window.modUtils.getLandingPage().indexOf("modernize")>0?window.modUtils.getModernizeDomain()+"/quote/resources":"",e=new XMLHttpRequest;let t={};e.open("GET",`${o}/data/tooltips.json`),e.send(),e.addEventListener("load",(function(){if(this.response)if(t={...t,...JSON.parse(this.response)},4===this.readyState&&200===this.status){const o=window.modForm.opts.useQSApi,e=window.modForm.opts.vertical,i=t[e]?t[e]:t.default;let r;if(!t[e]){const t=window.location.pathname,n={ALERTS_MEDICAL:"medical alerts","/quote/bathandshowerremodel":"bath and shower remodel",hvac:"cooling and heating"};Object.keys(n).some((function(o){return t.indexOf(o)>-1?(r=n[o],!0):o===e?(r=n[e],!0):void 0})),void 0===r&&(r=o?window.modForm.opts.vertical.replace(/_/g," ").toLowerCase():e),Object.keys(i).forEach((function(o){i[o]=i[o].replace(/\${trade}/g,r)}))}const s=Object.keys(i),d={FN:"firstName",LN:"lastName",HP:"homePhone",EM:"email",S1:"address",CT:"city",SP:"state",PC:"zip"};Array.from(document.querySelectorAll(".form-group")).filter((function(o){const e=o.querySelector('input:not([type="hidden"])')?.name;if(s.includes(e)||s.includes(d[e]))return o})).forEach((function(o){const e=o.querySelector('input:not([type="hidden"])');e.closest("div").classList.add("form-group--tooltip");const t=e.name,r=n(t,void 0!==i[t]?i[t]:i[d[t]]);e.insertAdjacentElement("afterend",r)}))}else console.log("An error has occurred.")})),e.addEventListener("error",(function(){console.error("Something went wrong")}));const i=document.querySelectorAll('[data-bind="tooltip-icon"]');i.length&&i.forEach((function(o){o.addEventListener("mouseover",window.modUtils.debounce((function(o){const e=o.target,t=e.dataset.tooltipName;window.modUtils.heap("track",[`${window.modForm.opts.landingPageNoQuery} | Tooltip Open ${t}`]),e.closest(".form-group__tooltip").classList.add("hovered")}),75)),o.addEventListener("mouseout",window.modUtils.debounce((function(o){o.target.closest(".form-group__tooltip").classList.remove("hovered")}),75))}))}t.d(e,{L:function(){return n},D:function(){return i}})},2562:function(o,e,t){function n(){document.querySelector("body").addEventListener("mouseleave",i)}t.r(e),t.d(e,{abandonmentTriggerCallback:function(){return i},addFallbackOwnHome:function(){return I.x},addInvocaFallbackToDataLayer:function(){return j.Q},addRegressionTestingAttributes:function(){return M._},addRequiredFieldsToContractorForm:function(){return oo},addRequiredFieldsToForm:function(){return z},addRequiredQSFieldsToForm:function(){return X},addVWOTestQueryParam:function(){return ae.l},appendFormInput:function(){return B},appendLeadTokenScriptToBody:function(){return ce},appendRecaptchaToken:function(){return me.R},backButtonClickCallback:function(){return m},blockDuplicateSubmissionSameHeapSessionId:function(){return w},capitalize:function(){return bo.Z},checkStartStep:function(){return eo},createHeapSessionIdCookie:function(){return ee.u},defaultQuadLinkValues:function(){return ue},elqGetGuidCookieValue:function(){return ie.f},findEmailProvider:function(){return f.R},fireNonTYPConversionPathPixels:function(){return le.f},focusOnFirstErrorOnCurrentStep:function(){return to},formSubmitCallback:function(){return U},formatContractorDataForModApi:function(){return So.m},generateSession:function(){return Xo},generateTooltipMarkup:function(){return Fo.L},getConsentListing:function(){return Vo},getCrossSellApiDomain:function(){return pe.p},getCurrentStep:function(){return no.I},getDefaultQuad:function(){return we},getDefaultQuadByDomain:function(){return fe},getDefaultSiteByDomain:function(){return ge.e},getEddieData:function(){return jo},getFormData:function(){return g.t},getFormsServiceApiDomain:function(){return he.h},getHeapSessionIdCookieData:function(){return re},getNextStepId:function(){return wo.v},getPhoneAssignmentData:function(){return zo},getPhoneNumberType:function(){return Bo},getPrevStepId:function(){return fo.D},getProjExUrl:function(){return h.E},getQSApiDomain:function(){return Fe},getQueryParamsFromSessionStorage:function(){return de},getTcpaElementContent:function(){return vo.i},getTradeFromUrl:function(){return D.S},getUtilityProvidersByState:function(){return $o},getUtilityProvidersByZip:function(){return Qo},handleNextButton:function(){return a},hashStepTracking:function(){return ye.q},heapIdentify:function(){return be},hideAllSteps:function(){return io.h},initAutofill:function(){return $},initBackButtons:function(){return r},initContractorForm:function(){return N},initContractorFormSubmit:function(){return R},initDuplicateSubmissionExperience:function(){return H},initFormDynamicContent:function(){return F.H},initFormElements:function(){return y.C},initFormSubmit:function(){return b},initFormSubmitLoader:function(){return S},initHvacFuelTypeBlock:function(){return ro.o},initHvacWouldReplaceBlock:function(){return so.v},initLeadTokenScriptsTriggers:function(){return Se},initNextButtonAbusePrevention:function(){return s},initNumericOnlyFields:function(){return Q.initNumericOnlyFields},initQSForm:function(){return O.initQSForm},initQuadTransform:function(){return ve.initQuadTransform},initQuadTransformRetry:function(){return Ce},initResubmitBtn:function(){return c},initSaveQueryParamsToSessionStorage:function(){return se.k},initShowSecureText:function(){return v.w},initSuppressConversionPixel:function(){return ke.E},initTooltips:function(){return Fo.D},initTrackZip1Change:function(){return W},initUserInformationStorage:function(){return te},loadLeadTokenScriptsTriggers:function(){return Pe},mapDynamicServiceCode:function(){return Co.S},mapProjectValue:function(){return ko.V},mapServiceSpecificAttributes:function(){return Po},markFieldAsInvalid:function(){return K.x},maskEinFields:function(){return Y.k},maskPhoneFields:function(){return G.c},nextButtonClickCallBack:function(){return u},observeVWOVariation:function(){return yo.K},parseHTMLFromString:function(){return Ao.q},populateFormWithZipData:function(){return C},populateInput:function(){return J},populateLocationFieldsDynamically:function(){return k.y},populateTCPAField:function(){return Wo.x},populateTradeFromURL:function(){return q},prePopFormWithEddie:function(){return V},preProcessPayload:function(){return Lo.F},prepopFormFromURL:function(){return A},preprocessContractorFormData:function(){return Eo},preprocessQSFormData:function(){return To},preventSkip:function(){return ao.I},processAPIResponseErrors:function(){return Oo},processContractorFormSubmitSuccess:function(){return Io},processFormSubmitError:function(){return xo},processFormsServiceApiSubmitSuccess:function(){return Do},processQSFormSubmitSuccess:function(){return qo},removeEvents:function(){return No},reviewOptinEligibility:function(){return E.Q},saveOriginalReferrerCookie:function(){return x.O},saveUserInfoToCookie:function(){return ne},serviceCodesAndAttributions:function(){return Ro},showFallbackForDuplicateSubmission:function(){return L.w},showNextStep:function(){return co},showPrevStep:function(){return po},showStep:function(){return mo},showStepWithFirstError:function(){return uo},skipSteps:function(){return go},submitContractorFormDataToApi:function(){return Ko},submitForm:function(){return T},submitFormDataToFormsServiceApi:function(){return Go},submitFormDataToQSApi:function(){return Yo},subscribeToNonTYPMutations:function(){return yo.S},swapRecaptchaTokenWithFlag:function(){return Uo.G},switchFormLoadingState:function(){return oe.A},switchFormSubmitState:function(){return oe.Y},tabKeyDownCallBack:function(){return p},trackFormStepChangeDataLayer:function(){return Oe},trackFormStepGA:function(){return Ae.o},trackInvalidFieldsInHeap:function(){return Ee.d},trackMouseMovement:function(){return Le.K},transformQuadlink:function(){return Jo},triggerAbandonmentExperience:function(){return n},triggerQuadTransform:function(){return Te},unmarkFieldAsInvalid:function(){return Z.E},updateFormDataFormatForFormsService:function(){return Ho},updateTabIndexes:function(){return ho.B},useInitialQueryParamsFromSessionStorage:function(){return _o.J},validateRecaptchaResponse:function(){return Zo.B},watchHashChange:function(){return lo},zipControlButtonClick:function(){return d.r},zipKeyDownCallBack:function(){return l}});const i=function(o){if(o.clientY<50&&document.querySelector("#abandonment:empty")){if(window.modForm.isSubmitting||window.modForm.opts.form.classList.contains(window.modForm.opts.formSubmittedCls))return;document.body.classList.add("no-scroll");const o=window.modForm.opts.abandonmentHtmlPath;fetch(o).then((o=>o.text())).then((function(o){const e=(0,Ao.q)(o);document.querySelector("#abandonment").appendChild(e)})),document.querySelector("body").removeEventListener("mouseleave",i)}};function r(){let o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.modForm.opts.backButtons.length&&window.modForm.opts.backButtons.forEach((e=>{o?e.addEventListener("click",m):e.removeEventListener("click",m)}))}function s(){let o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=window.modForm.opts.form,t=e.querySelectorAll(".btn-primary, .btn--primary");if(!e)return!1;t.length&&t.forEach((function(e){if(!e)return!1;o?e.addEventListener("click",u):e.removeEventListener("click",u)})),e.querySelector('input[name="zip"]')&&(o?e.querySelector('input[name="zip"]').addEventListener("keydown",l):e.querySelector('input[name="zip"]').removeEventListener("keydown",l)),o?document.body.addEventListener("keydown",p):document.body.removeEventListener("keydown",p)}var d=t(1973);function a(){const o=(0,no.I)(),e=o.querySelector(".btn-primary"),t=o.dataset;if("infield"in t){const o=t.infield;"zip"===o&&window.modForm.isZipValid||"phone-email"===o&&window.modForm.isPhoneValid&&window.modForm.isEmailAddressValid||"email"===o&&window.modForm.isEmailAddressValid||"phone"===o&&window.modForm.isPhoneValid?e.removeAttribute("disabled"):e.setAttribute("disabled",!0)}else document.querySelector(".step.left")||document.querySelector(".step.right")||e.removeAttribute("disabled")}function c(){const o=window.modForm.opts.form.querySelector('[data-bind="resubmit"]'),e=window.modForm.opts.form.querySelector('select[name="primaryProjectClass"]');o.addEventListener("click",(function(o){o.preventDefault(),window.modForm.opts.form.classList.remove(window.modForm.opts.formTyCls),e&&(e.value="");mo(window.modForm.opts.steps[0].id)}))}function m(o){o.stopImmediatePropagation(),window.modForm.opts.isFormLoading||window.modForm.opts.formSwiperInstance.animating?o.preventDefault():(po(),window.modForm.opts.clickedFormBackButton=!0)}function u(o){o.stopPropagation(),(0,Wo.x)(),(0,ao.I)(o)}function l(o){"Enter"===o.key&&(0,ao.I)(o)}function p(o){const e=window.modForm.opts.form;"Tab"===o.key&&(document.addEventListener("focus",(function(o){e.contains(o.target)&&e.classList.add("disableAutofill"),o.stopPropagation()}),!0),(0,ao.I)(o))}function w(){const{heapSessionSubmitCookie:o,heapSessionId:e,initialTimestamp:t,expireInOneHour:n}=re();let{resultsPage:i}=re();if(null!==o){if(window.modForm.getTime>n)return;window.modUtils.heap("track",["Duplicate Form Submit With Same Heap Session ID | ",{resultsPage:i}]),i.indexOf(window.modForm.opts.suppressConversionPixelParam)<=-1&&!window.modForm.opts.isFrontdoorExclusiveMatch&&(i+=(i.indexOf("?")<0?"?":"&")+window.modForm.opts.suppressConversionPixelParam);return window.modUtils.getCookie("duplicateSubmitFireCnvrsnPxl")||i.indexOf("ThankYou")>-1&&(window.location.href+="&ThankYou","undefined"!=typeof dataLayer&&window.dataLayer.push({event:"Lead Conversion Failed Redirects"})),window.modUtils.setCookie(e,JSON.stringify({initialTimestamp:t,resultsPage:i})),window.modUtils.setCookie("duplicateSubmitFireCnvrsnPxl",!0),window.location.href=i,(0,L.w)(i),window.modForm.preventDuplicateSubmission=!0,!1}}var f=t(5743),g=t(9277),h=t(872),F=t(2845),y=t(4006);function b(){let o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=window.modForm.opts.form;o?e.addEventListener("submit",U):e.removeEventListener("submit",U)}function S(){let o=`${window.modUtils.getModernizeDomain()}/quote/resources/shared-resources/`;o.indexOf("modernize.local")>-1&&(o=o.replace("modernize.local","qa.modernize.com"),o=o.replace(/https?:/g,window.location.protocol));const e=document.createElement("script");e.src=`${o}scripts/loader/loader.min.js`;const t=document.createElement("link");t.href=`${o}styles/components/loader/loader.min.css`,t.rel="stylesheet",e.onload=()=>{const o=(0,Ao.q)(Loader.getLoaderHTML());window.modForm.opts.appendOverlayToElem.append(o),window.modForm.opts.isLoaderLoaded=!0},document.body.appendChild(e),document.head.appendChild(t)}var v=t(6470);function C(o){["city","state"].forEach((function(e){o[e]&&J(e,o[e])})),document.querySelectorAll('input[name="zip"], input[name="zip1"]').forEach((function(e){e.value=o.zip}))}var k=t(1027),P=t(3014);function A(){Object.keys(window.modForm.opts.getVars).forEach((function(o){window.modForm.opts.ignoreQueryParams.includes(o)||B(o,window.modForm.opts.getVars[o]),"zip"===o&&(B("zip1",window.modForm.opts.getVars[o]),B("inertZip",window.modForm.opts.getVars[o])),window.modForm.opts.prepopulateUserInfo&&ne(o,window.modForm.opts.getVars[o])})),void 0!==window.modForm.opts.getVars.zip&&(window.modForm.opts.prepopulateUserInfo||(0,P.isZipCodeValid)(window.modForm.opts.getVars.zip,(function(o){o.success&&o.data&&(C(o.data),"function"==typeof window.modForm.opts.zipCodeValidated&&window.modForm.opts.zipCodeValidated(o.data))})))}var E=t(6800),L=t(2460);function T(o){if(new MutationObserver(yo.S.bind(window.modForm)).observe(window.modForm.mutationObserverTarget,window.modForm.mutationObserverConfig),window.modForm.opts.formSubmittingCallback&&"function"==typeof window.modForm.opts.formSubmittingCallback&&(o=window.modForm.opts.formSubmittingCallback(o)),o){if((0,ke.E)(o),window.modForm.opts.ignoreDuplicateSubmissionBlocker||w(),!window.modForm.preventDuplicateSubmission&&((0,oe.A)(!0),window.modForm.opts.showLoadingOverlay)){const o=document.querySelector(".loader");o&&(o.classList.add("loader--visible"),o.setAttribute("aria-hidden","false"),o.focus()),(0,oe.Y)("submitting"),window.modUtils.heap("track",["Loader Overlay Initiated"])}if(window.isWordpress||window.modForm.opts.validateRecaptcha){const e="contractor"!==window.modForm.opts.vertical,t=!document.location.href.includes("modernize");if(e&&!window.modUtils.getCookie("original_referrer")&&!window.modForm.opts.isOrganicPreferredMatch)return void(0,Zo.B)(o.recaptcha,(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return window.modUtils.heap("track",["Token Error",{token:"reCaptcha",errorMessage:t}]),void xo();window.modUtils.heap("track",["Token Success",{token:"reCaptcha"}]),window.modForm.opts.useContractorApi?Ko(o):window.modForm.opts.useFormsServiceApi&&!window.modForm.opts.isCrossSellForm?Go(o):Yo(o)}),t)}else if(window.__recaptchaKey&&3===window.modForm.opts.recaptchaVersion){const e=function(o){o&&(window.modForm.opts.useContractorApi?Ko(o):window.modForm.opts.useFormsServiceApi&&!window.modForm.opts.isCrossSellForm?Go(o):Yo(o))};if("grecaptcha"in window)(0,me.R)(o,e);else{const t=new MutationObserver((function(t,n){document.contains(document.getElementsByClassName("grecaptcha-badge")[0])&&((0,me.R)(o,e),n.disconnect())}));t.observe(document.body,{childList:!0,subtree:!0,attributes:!0})}return}window.modForm.preventDuplicateSubmission||(window.modForm.opts.useContractorApi?Ko(o):window.modForm.opts.useFormsServiceApi&&!window.modForm.opts.isCrossSellForm?Go(o):Yo(o))}}var O=t(5895),I=t(8751),D=t(8884),x=t(6824);function q(){let o=(0,D.S)();const e=window.modForm.opts.form.querySelector('select[name="primaryProjectClass"]');o&&e&&(o="hvac"===o?"HVAC":(0,bo.Z)(o.replace(/-/g," ")).trim(),e.querySelectorAll("option").forEach((function(e){e.text===o&&(e.selected=!0)})))}function N(){window.modForm.opts.formTyCls="form--ty",window.modForm.opts.submitData={},window.modForm.opts.sessionObj={},window.modForm.opts.landingPage=window.modUtils.getLandingPage(),window.modForm.opts.referrerCookieName="original_referrer",window.modForm.opts.referrerCookieExpiration=43200,(0,x.O)(),q()}function R(){window.modForm.opts.form.addEventListener("submit",(function(o){o.preventDefault();const e=(0,no.I)(),t=Array.from(window.modForm.opts.steps).indexOf((0,no.I)()),n=e.querySelector('input[name="companyZip"]');let i;(0,P.isFormValid)(e)?n&&!window.modForm.isZipValid?((0,oe.A)(!0),(0,P.isZipCodeValid)(n.value,(function(o){(0,oe.A)(!1),o.success?(i=(0,g.t)(),i=Eo(i,t),T(i)):((0,Ee.d)("Zip"),(0,K.x)(n),to())}))):(i=(0,g.t)(),i=Eo(i,t),T(i)):to()}))}function U(o){o.stopImmediatePropagation(),o.preventDefault();const e=(0,no.I)();if((0,P.isFormValid)(e))if(window.modForm.isCurrentStepLast()){let o=(0,g.t)();window.modUtils.gaSend({hitType:"event",eventCategory:"Homeowner Lead Form",eventAction:"Clicked Submit",eventLabel:"S3 Landing Page"},window.modForm.opts.gaTracker),o=window.modForm.opts.useContractorApi?Eo(o):To(o),T(o)}else{Array.from(window.modForm.opts.steps).indexOf((0,no.I)())+1===window.modForm.opts.steps.length-1&&window.modForm.opts.showLoadingOverlay&&!window.modForm.opts.isLoaderLoaded&&S();const o=window.modForm.opts.trackZip1ChangeDynamically?'input[name="zip"]':'input[name="zip"], input[name="zip1"]';let t=e.querySelectorAll(o)[0];const n=e.querySelectorAll(window.modForm.zipEditInput)[0];window.modForm.retryZipValidation&&(t=n&&(0,P.isVisible)(n)?n:window.modForm.opts.zipField[0]),t&&!window.modForm.isZipValid||window.modForm.retryZipValidation?((0,oe.A)(!0),(0,P.isZipCodeValid)(t.value,(function(o){(0,oe.A)(!1),o.success?(o.data&&(C(o.data),(0,k.y)(o.data),window.modForm.opts.zipCode=o.data.zip,"undefined"!=typeof dataLayer&&window.Invoca&&window.dataLayer.push({zip_code:o.data.zip}),"function"==typeof window.modForm.opts.zipCodeValidated&&window.modForm.opts.zipCodeValidated(o.data)),"zip1"===t.name&&J("zip",t.value),co()):((0,Ee.d)("Zip"),(0,K.x)(t),to())}))):co()}else to()}function H(o){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".swiper-slide-active .step-inner";const t=window.modForm.opts.form.querySelector(e),n=document.querySelectorAll(".form-btns, .form-bts, .controls, .findpros-form__btns"),i=document.querySelector(".form-tcpa"),r=window.modForm.opts.landingPage.includes("bestcompany")?"https://bestcompany.com/":"https://modernize.com/";let s=o.resultsPage?o.resultsPage:r;s.indexOf(window.modForm.opts.suppressConversionPixelParam)<=-1&&(s+=(s.indexOf("?")<0?"?":"&")+window.modForm.opts.suppressConversionPixelParam),window.modForm.opts.form.classList.add(window.modForm.opts.formLoadingCls);window.modUtils.getCookie("duplicateSubmitFireCnvrsnPxl")||s.indexOf("ThankYou")>-1&&void 0!==window.dataLayer&&window.dataLayer.push({event:"Lead Conversion Failed Redirects"}),window.modUtils.setCookie("duplicateSubmitFireCnvrsnPxl",!0),window.modForm.preventDuplicateSubmission=!0,setTimeout((function(){window.modForm.opts.backButtons&&window.modForm.opts.backButtons.forEach((function(o){o.style.display="none"})),window.modForm.opts.progressBar&&window.modForm.opts.progressBar.forEach((function(o){o.style.display="none"})),n&&n.forEach((function(o){o.style.display="none"})),i&&(i.style.display="none"),window.modForm.opts.form.querySelector(".swiper-wrapper").style.alignItems="center",window.modForm.opts.form.classList.remove(window.modForm.opts.formLoadingCls);const o=window.modForm.opts.isLeadWidget?"_blank":"_self";t.innerHTML='<div class="duplicate-submission" style="background-color:#fff;display:flex; flex-direction:column;justify-content:center;align-items:center;min-height:390px;padding:40px 10px;text-align:center;"><h3 style="color:#545253;font-size:22px;font-weight:bold;margin:30px auto 0;">Welcome Back!</h3><p style="color:#545253;display:block;font-size:15px;font-weight:400;line-height:1.5;margin:20px auto 30px;">It looks like you just submitted your <br>information a moment ago.</p><a class="btn '+(window.modForm.opts.addAccessibilityUpdates?"btn--primary":"btn-primary")+'" id="double-submission-fallback-button" href="'+s+'" target="'+o+'" style="max-width:280px;line-height: normal;width:100%;display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 0px 15px;margin:0 auto 30px;min-width:unset"><span class="btn__text" style="visibility:visible;font-size: 18px">See Your Matches</span></a></div>',window.modUtils.heap("track",["Showing Duplicate Submission Experience - on Step One",{resultsPage:s}])}),300)}var _=t(8352);const V=function(o){Object.keys(o).length&&Object.entries(o).forEach((function(o){let[e,t]=o;if(t){const o=window.modForm.opts.form;(o.querySelectorAll(`input[name=${e}], select[name=${e}]`).length?o.querySelectorAll(`input[name=${e}], select[name=${e}]`):o.querySelectorAll(`input[name=${(0,_.Vp)(e)}], select[name=${(0,_.Vp)(e)}]`)).forEach((function(o){o&&("text"===o.type&&(t=t.replace(/\s\s+/gi," ")),"radio"!==o.type||o.value!==t&&!t.includes(o.value)?"OwnHome"===o.name&&"checkbox"===o.type?(o.checked="yes"===t.toLowerCase(),o.value=t):("select-one"===o.type||["text","email","tel","hidden"].includes(o.type))&&(o.value=t):o.checked=!0)}))}}))};var j=t(5422),M=t(9612);function z(){const o={session:"",sessionToken:"",usid:"",landingPage:window.modForm.opts.landingPageNoQuery,tcpa:1,tcpaText:window.modForm.opts.tcpaCopy&&window.modForm.opts.tcpaCopy.length?Array.from(window.modForm.opts.tcpaCopy).map((o=>(0,vo.i)(o).trim().replace(/(<([^>]+)>)/gi,"").replace(/\n/g,""))):""};Object.keys(o).forEach((e=>{B(e,o[e])}))}function B(o,e,t){if(window.modForm.opts.form.querySelector('input[name="'+o+'"]'))t||J(o,e);else{const t=document.createElement("input");t.type="hidden",t.id=o,t.name=o,t.value=e,window.modForm.opts.form.appendChild(t)}}function $(){const o=window.modForm.opts.form.querySelector('input[name="zip"]');o&&(o.addEventListener("focus",(function(){window.modForm.opts.steps.forEach((function(o){o.classList.contains(window.modForm.opts.stepActiveCls)&&o.classList.add("autofill")}))})),o.addEventListener("blur",(function(){window.modForm.opts.steps.forEach((function(o){o.classList.remove("autofill")})),(0,G.c)(window.modForm.opts.maskedPhoneFields)})))}var Q=t(3517);function W(){if(!window.modForm.opts.zip1Field.length)return!1;let o,e=!0;const t=window.modForm.opts.form.classList.contains(window.modForm.opts.formLoadingCls);window.modForm.opts.zip1Field.forEach((function(n){n.addEventListener("focus",(function(){o=this.value})),n.addEventListener("keydown",(function(o){"Enter"!==o.key||!t&&e||o.preventDefault()})),n.addEventListener("keyup",(function(){const n=this;5===this.value.length&&(this.value!==o&&!t||!e)&&((0,oe.A)(!0),(0,P.isZipCodeValid)(n.value,(function(t){t.success?(t.data&&(C(t.data),(0,k.y)(t.data)),o=n.value,e=!0,n.closest(".form-group").classList.remove(window.modForm.opts.fieldErrorCls),window.modForm.opts.zipCode=t.data.zip,window.modForm.opts.gettingLiveConsent&&Vo()):(n.closest(".form-group").classList.add(window.modForm.opts.fieldErrorCls),e=!1),(0,oe.A)(!1)})))}))}))}var K=t(5445),G=t(4822),Y=t(4222);function J(o,e){const t=window.modForm.opts.form.querySelector('input[name="'+o+'"]');if(t)if("INPUT"===t.tagName&&"radio"===t.type&&t.value===e)t.setAttribute("checked",!0);else if("INPUT"===t.tagName&&"checkbox"===t.type)t.setAttribute("checked",!0);else if("SELECT"===t.tagName)t.querySelector('option[value="'+e+'"]').setAttribute("selected",!0);else if(t.value=e,"zip"===o){const o=window.modForm.opts.form.querySelector('input[name="zip1"]');o&&(o.value=e)}}var Z=t(7146);function X(){const o={HomePhoneConsentLanguage:window.modForm.opts.tcpaCopy&&window.modForm.opts.tcpaCopy.length?Array.from(window.modForm.opts.tcpaCopy).map((o=>(0,vo.i)(o).trim().replace(/(<([^>]+)>)/gi,"").replace(/\n/g,""))):""};Object.keys(o).forEach((e=>{B(e,o[e])}))}function oo(){const o={token:"",contractorId:"",landingPage:window.modUtils.getLandingPage(),elqCookieWrite:0,tcpa:1,tcpaText:window.modForm.opts.tcpaCopy&&window.modForm.opts.tcpaCopy.length?Array.from(window.modForm.opts.tcpaCopy).map((o=>o.innerText.trim())):""};Object.keys(o).forEach((e=>{B(e,o[e],!0)}))}function eo(){if(window.modForm.opts.getVars.startStep&&""!==window.modForm.opts.getVars.startStep){const o=window.modForm.opts.getVars.startStep;document.getElementById(o)&&mo(o)}}function to(){const o=(0,no.I)().querySelector("."+window.modForm.opts.fieldErrorCls);if(o){const e=o.querySelector('select, input[type="text"], input[type="tel"], input[type="email"]');!e||document.querySelector(".step.left")||document.querySelector(".step.right")||e.focus()}}var no=t(5608),io=t(425),ro=t(1974),so=t(6647),ao=t(9258);function co(){const o=(0,no.I)().nextElementSibling;if(o&&(o.classList.contains("step")||o.hasAttribute("data-bind")&&"step"===o.getAttribute("data-bind"))){const e=o.getAttribute("id");if(!window.modForm.opts.ignoreDuplicateSubmissionBlocker&&window.modForm.includeDuplicateSubmissionExperience){const o=re();if(null!==o.heapSessionSubmitCookie&&window.modForm.getTime<o.expireInOneHour)return H(o),!1}window.modForm.opts.hashStepTracking&&(0,ye.q)(e),window.modForm.opts.useAutofill&&window.modForm.opts.steps.forEach((function(o){o.classList.remove("autofill")})),mo(e)}}function mo(o){const e=(0,no.I)().getAttribute("id");window.modForm.opts.stepChangingCallback&&"function"==typeof window.modForm.opts.stepChangingCallback&&(o=window.modForm.opts.stepChangingCallback(e,o)),o&&((0,Ae.o)(o),(0,io.h)(),window.modForm.opts.form.querySelector("#"+o).classList.add(window.modForm.opts.stepActiveCls),window.modForm.opts.addAccessibilityUpdates&&window.modForm.opts.form.querySelector("#"+o).setAttribute("aria-hidden","false"),window.modForm.opts.isVite&&window.modForm.opts.scrollTopOnStepChange&&window.scrollTo({top:0,behavior:"smooth"}),window.modForm.opts.stepChangedCallback&&"function"==typeof window.modForm.opts.stepChangedCallback&&window.modForm.opts.stepChangedCallback(e,o),window.innerWidth<768&&(0,ho.B)(),Oe())}function uo(){const o=window.modForm.opts.form.querySelectorAll("."+window.modForm.opts.fieldErrorCls);if(o.length){const e=o[0].parentElement.closest(window.modForm.opts.stepsSelector),t=e.getAttribute("id"),n=o[0].querySelector("input").getAttribute("name");e&&(mo(t),window.modUtils.heap("track",["Step Shown with Validation API Error | "+t+" "+n,{}]))}}function lo(){window.onhashchange=function(o){let e,t;if(o.preventDefault(),window.modForm.opts.useStepNameHash){e=void 0!==o.oldURL&&o.oldURL.split("#")[1]||"1",t=void 0!==o.newURL&&o.newURL.split("#")[1]||"1";const n=document.querySelector(`[data-step-name="${e}"]`),i=document.querySelector(`[data-step-name="${t}"]`);i&&(t=i.id.slice(4)),n&&(e=n.id.slice(4))}else e=void 0!==o.oldURL&&o.oldURL.split("#q")[1]||"1",t=void 0!==o.newURL&&o.newURL.split("#q")[1]||"1";if(e!==t){const o=(0,no.I)();let n;e>t&&o.previousElementSibling?n=o.previousElementSibling.getAttribute("id"):e<t&&o.nextElementSibling&&(n=o.nextElementSibling.getAttribute("id")),n&&mo(n)}e=t}}function po(){const o=(0,no.I)().previousElementSibling;if(o&&(o.classList.contains("step")||o.hasAttribute("data-bind")&&"step"===o.getAttribute("data-bind"))){const e=o.getAttribute("id");window.modForm.opts.hashStepTracking?((0,ye.q)(e),mo(e)):mo(e)}}var wo=t(6813),fo=t(1913);function go(o,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e;const i=(0,g.t)(),r=document.querySelector(`#${e}`).getAttribute("data-step-name"),s=new Set;return Object.keys(t).length&&Object.keys(t).some((d=>{d===r&&t[d]&&(t[d].map((o=>{const[e]=Object.keys(o);let t;if("data-vwo-test"!==e)t=o[e].includes(i[e]);else{const n=document.querySelector("body").getAttribute("data-vwo-test");if(Array.isArray(o[e])){const i=o[e].includes("control")&&!n,r=o[e].includes(n);(i||r)&&(t=!0)}else(n===o[e]||"control"===o[e]&&!n)&&(t=!0)}s.add(t)})),1===s.size&&s.has(!0)&&(n=o===(0,fo.D)(e)?(0,wo.v)(e):(0,fo.D)(e)))})),s.has(!0)&&Object.keys(t).includes(document.querySelector(`#${n}`).getAttribute("data-step-name"))?go(e,n,t):n}var ho=t(4623),Fo=t(3313),yo=t(1899),bo=t(4171),So=t(8762),vo=t(6954),Co=t(4186),ko=t(9601);function Po(o){const e=(0,g.t)();function t(t){if(window.modForm.opts.form&&t)switch(t){case"OwnHome":window.modForm.opts.serviceSpecificAttributes[t]="Authorized"===e.OwnHome?"Yes":e.OwnHome;break;case"CommercialLocation":window.modForm.opts.serviceSpecificAttributes.CommercialLocation="Homerent"===e.CommercialLocation?"Home":e.CommercialLocation,"HOME_SECURITY"!==o||e.OwnHome&&""!==e.OwnHome.trim()||(window.modForm.opts.serviceSpecificAttributes.OwnHome="Homerent"!==e.CommercialLocation?"Yes":"No");break;case"HVACProjectScope":window.modForm.opts.serviceSpecificAttributes.HVACProjectScope="Repair"===e.HVACProjectScope&&"Yes"===e.ReadyToReplace?"Install":e.HVACProjectScope;break;case"HVACInterest":if(window.modForm.opts.serviceSpecificAttributes.HVACInterest=e.HVACInterest.replace(" Heat Pump",""),["Central Heating","Boiler/Radiator"].includes(window.modForm.opts.serviceSpecificAttributes.HVACInterest)){const o=window.modForm.opts.serviceSpecificAttributes.HVACInterest.replace(" ","").replace("/Radiator","System");window.modForm.opts.serviceSpecificAttributes[`${o}${window.modForm.opts.serviceSpecificAttributes.HVACProjectScope}Type`]=e.BoilerHeatingInstallRepairType}window.modForm.opts.serviceSpecificAttributes.HVACInterest=`${window.modForm.opts.serviceSpecificAttributes.HVACProjectScope} ${window.modForm.opts.serviceSpecificAttributes.HVACInterest}`;break;case"NumberOfWindows":window.modForm.opts.serviceSpecificAttributes.NumberOfWindows="1"===e.NumberOfWindows&&"Yes"===e.MultipleWindows?"3-5":e.NumberOfWindows;break;default:if(!e[t])return;window.modForm.opts.serviceSpecificAttributes[t]=e[t]}}for(const e of Ro)e.serviceCodes.includes(o)&&(Object.keys(window.modForm.opts.serviceSpecificAttributes).length&&(window.modForm.opts.serviceSpecificAttributes={}),e.requiredAttributes.forEach((o=>{t(o)})))}var Ao=t(8410);function Eo(o,e){if(0===e){const e=window.modUtils.getSupportedTrackingParams();o.primaryProjectClass=(0,ko.V)(o.primaryProjectClass),window.modUtils.heapCookie&&window.modUtils.heapCookieData&&Object.keys(window.modUtils.heapCookieData).length&&Object.keys(window.modUtils.heapCookieData).forEach((function(t){e.indexOf(t)>-1&&(o[t]=window.modUtils.heapCookieData[t])}));const t=(0,ie.f)();if(""!==t&&(o.elqCustomerGUID=t),o.xxTrustedFormToken){const e=o.xxTrustedFormToken.match(/([A-Za-z0-9]{40})/);null!==e&&void 0!==e[0]&&(o.certificationType="TrustedForm",o.certificationToken=e[0])}o.clientReferrerSource=window.modUtils.getCookie(window.modForm.opts.referrerCookieName)}return o=(0,So.m)(o,e)}var Lo=t(5281);function To(o){let e={};const t=window.modForm.opts.form,n={FN:"firstName",LN:"lastName",HP:"homePhone",EM:"email",S1:"address",CT:"city",SP:"state",PC:"zip",OwnHome:"homeowner",leadid_token:"leadToken",TrustedFormToken:"xxTrustedFormToken"},i=window.modForm.opts.quadLinkParams;if(0!==Object.keys(i).length){for(const o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);e.HEAPID=i.CLK,e.HeapUserID=window.modForm.opts.useFormsServiceApi&&window.modUtils.heapCookieData.userId?window.modUtils.heapCookieData.userId:i.CLK}else if(window.modUtils.getUrlParamsToObject().hasOwnProperty("tagID")){const{tagID:o}=window.modUtils.getUrlParamsToObject();e.tagID=o}else e.tagID="production"===window.modUtils.getEnv()?window.modForm.opts.tagIDLive:window.modForm.opts.tagIDTest;if(void 0!==o.CROTag){const e=JSON.parse(o.CROTag);e.MultipleWindows&&"Yes"===e.MultipleWindows&&"1"===o.NumberOfWindows&&(o.NumberOfWindows="3-5")}window._vwo_campaignData&&0!==Object.keys(window._vwo_campaignData).length&&(e.VWOID=Object.keys(window._vwo_campaignData)[0],e.VWOVariationName=Object.values(window._vwo_campaignData)[0].n),window.modUtils.heapCookie&&(e.HeapSessionID=window.modUtils.heapCookieData.sessionId),Object.keys(n).forEach((function(t){o[n[t]]&&(e[t]=o[n[t]],delete o[n[t]])})),o.service=(0,Co.S)(o),["session","sessionToken","usid","landingPage","tcpa","tcpaText","xxTrustedFormToken","xxTrustedFormCertUrl","inertZip","homeowner","zip1"].forEach((function(e){delete o[e]}));const r=t.querySelectorAll(".consent-capture"),s=[];r&&(r.forEach((function(e,t){e.checkVisibility()&&(o[`vendorDetails[${t}][key]`]=e.getAttribute("data-key"),o[`vendorDetails[${t}][name]`]=e.getAttribute("data-name"),o[`vendorDetails[${t}][displayPosition]`]=t+1,o[`vendorDetails[${t}][consent]`]=e.checked?"Yes":"No",e.checked&&s.push({vendorKey:e.getAttribute("data-key"),vendorDisplayName:e.getAttribute("data-name")}))})),window.modForm.opts.consentCaptureVendors=s),e=Object.assign(e,o);const d="/"!==window.location.pathname?window.location.pathname:"";return e.site=window.location.host.replace(/(qa|staging|www)./g,"")+d,e.siteName=e.site,e.HomePhoneType=Bo(e.HP.replace(/\D/g,"")),e.HomePhoneConsent="Yes",e.responseFormat="json",window.modForm.opts.ipAddress&&(e.IPAddress=window.modForm.opts.ipAddress),e}function Oo(o){const e={phone:"homePhone",email:"email",first:"firstName",last:"lastName",address:"address",zip:"zip"};window.modForm.opts.energySage?o.errors&&Object.keys(o.errors).length&&Object.keys(o.errors).forEach((function(o){Object.keys(e).forEach((function(t){o.indexOf(e[t])>-1&&((0,K.x)(window.modForm.opts.form.querySelector('input[name="'+e[t]+'"]')),window.modUtils.heap("track",["Validation API Error | "+e[t],{}]))}))})):o.invalidFields.forEach((function(o){(0,K.x)(window.modForm.opts.form.querySelector('input[name="'+o+'"]')),window.modUtils.heap("track",["Validation API Error | "+o,{}])})),uo(),to()}function Io(o,e,t){let n;if("error"===t.statusText)return n={message:"Failed Contractor Signup Form Submit",data:window.modForm.opts.landingPage},"function"==typeof window.modForm.opts.formSubmitErrorCallback&&window.modForm.opts.formSubmitErrorCallback(o),(0,oe.A)(!1),void Oo(o);if(o&&o.data.contractorId&&window.modUtils.heap("identify",[o.data.contractorId,"ID"]),0===e){if(o&&201===t.status){const e=window.modForm.opts.form.querySelector('[name="contractorId"]'),t=window.modForm.opts.form.querySelector('[name="token"]');e.value=o.data.contractorId,t.value=o.data.token,window.modForm.opts.sessionObj={token:o.data.token},window.modUtils.setCookie("mod-session",encodeURIComponent(JSON.stringify(window.modForm.opts.sessionObj))),n={message:"Successful Contractor Signup Form Submit Step 1",data:o.data.contractorId}}}else if(1===e){204===t.status&&(n={message:"Successful Contractor Signup Form Submit Step 2",data:window.modForm.opts.landingPage});const o=window.modForm.opts.form.querySelectorAll(".ty-state-block"),e=window.modForm.opts.form.querySelector(".ty-state-block-cxp"),i=window.modForm.opts.form.querySelector(".ty-state-block-noservice"),r=window.modForm.opts.form.querySelector(".ty-state-block-success");let s;window.modForm.opts.form.classList.add(window.modForm.opts.formTyCls),o&&o.length&&o.forEach((function(o){o.style.display="none"}));const d=(0,P.meetsMQLCriteria)((0,g.t)()),a=(0,P.isSupportedByCxp)((0,g.t)());d?(s="thankyou",r.style.display="block"):a?(s="thankyou-cxp",e.style.display="block"):(s="thankyou-noservice",i.style.display="block"),window.modUtils.gaSend({hitType:"pageview",page:window.modForm.opts.landingPage+s+"/"},window.modForm.opts.gaTracker)}window.modUtils.heap("track",[n.message,n.data]),co()}function Do(o,e){let t;const n=o,i=n.dataCaptureKey,r=n.zip;if(null!==i&&200===e.status){const o=window.modForm.opts.formData.CLK;"undefined"!=typeof dataLayer&&window.dataLayer.push({event:"formSubmit",userId:o,lastProjectId:i,projectId:i,projectClass:window.modForm.opts.formData.service}),window.modUtils.gaSend({hitType:"event",eventCategory:"HRC General",eventAction:"User converted on non-TYP experience",eventLabel:window.location.pathname},window.modForm.opts.gaTracker),window.heap&&window.heap.addEventProperties({project_id:i,data_capture_key:i,form_path:window.modForm.opts.landingPage}),window.modForm.homeownerLeadConversionProps.zip=r,window.modUtils.heap("track",["Homeowner Lead Conversion",window.modForm.homeownerLeadConversionProps]),window.modForm.opts.GOAL_ID&&(window._vis_opt_queue=window._vis_opt_queue||[],window._vis_opt_queue.push((function(){_vis_opt_goal_conversion(window.modForm.opts.GOAL_ID)}))),void 0!==window.dataLayer&&window.dataLayer.push({event:"Homeowner Lead Conversion",isQSPage:"true"}),"undefined"!=typeof pintrk&&pintrk("track","checkout",{order_id:void 0!==i?i:null}),t=Object.assign({},window.modForm.opts.quadLinkParams,n),t.PROJECT={},(0,P.isQsSiteEligibleForHrc)()||(t.PROJECT.FIRSTNAME=window.modForm.opts.formData.FN);let e=window.modForm.opts.contractorTrade?window.modForm.opts.contractorTrade:window.modForm.opts.vertical;if(e=e.replace(/_/g," ").toLowerCase(),t.PROJECT.contractorTrade=e,window.modUtils.setCookie("qsLeadData",JSON.stringify(t)),"function"==typeof window.modForm.opts.formSubmitSuccessCallback&&!1===window.modForm.opts.formSubmitSuccessCallback(n))return!1}else if((0,oe.A)(!1),"function"==typeof window.modForm.opts.formSubmitErrorCallback&&!1===window.modForm.opts.formSubmitErrorCallback(n))return!1;if((0,P.isQsSiteEligibleForHrc)()&&n.publicLeadIdentifer?(window.projectId=n.publicLeadIdentifer,window.modForm.opts.resultsPage=(0,h.E)(),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+"DCK="+i,window.modForm.opts.shouldSuppressConversionPixel&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.suppressConversionPixelParam),window.modForm.opts.isFirePixelTrue&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage?.indexOf("?")<0?"?":"&")+window.modForm.opts.firePixelParam),window.modForm.opts.isSharedMatch&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.sharedParam),Object.keys(window.modForm.opts.resultsPageAdditionalParams).length&&Object.entries(window.modForm.opts.resultsPageAdditionalParams).forEach((function(o){let[e,t]=o;window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+e+"="+t})),window.modForm.opts.prefVendorParam&&window.modForm.opts.prefVendorKeys&&window.modForm.opts.prefVendorKeys.length&&(window.modForm.opts.prefVendorParam+=window.modForm.opts.prefVendorKeys.toString(),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.prefVendorParam),window.modForm.opts&&window.modForm.opts.getVars&&"PartnerSourceID"in window.modForm.opts.getVars&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+`PartnerSourceID=${window.modForm.opts.getVars.PartnerSourceID}`),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+(n.vendors.length>0?"ThankYou":"Sorry")):window.modForm.opts.resultsPage=0===n.vendors.length?window.modForm.opts.errorRedirectPath:window.modForm.opts.resultsPage,void 0!==window.modForm.opts.appendTyToHrcUrl&&!0===window.modForm.opts.appendTyToHrcUrl&&window.modForm.opts.resultsPage.indexOf("ThankYou")<0&&window.modForm.opts.resultsPage.indexOf("Sorry")<0&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+(n.vendors.length>0?"ThankYou":"Sorry")),window.modForm.opts.isExclusiveMatch&&window.modForm.opts.exclusiveMatchResultsPage&&(window.modForm.opts.resultsPage=window.modForm.opts.exclusiveMatchResultsPage),window.modForm.opts.showLoadingOverlay&&Loader.updateLink(window.modForm.opts.resultsPage),window.modForm.opts.resultsPage&&!window.modForm.opts.isOrganicPreferredMatch&&window.modForm.opts.autoRedirectToTyOrSorryPage)if(window.modForm.opts.showRedirectOverlay){if(window.modForm.opts.isExclusiveMatch){const o=window.modForm.opts.exclusiveMatchVendor.charAt(0).toUpperCase()+window.modForm.opts.exclusiveMatchVendor.slice(1),e="Frontdoor"===o?"American Home Shield":o;Loader.showRedirectAnimation(...window.modForm.opts.eCommerceExclusiveLoaders[window.modForm.opts.exclusiveMatchVendor]),window.Modalytics.heap("track",[`Loader Visible - Transferring to ${e}`])}else Loader.showRedirectAnimation(),window.Modalytics.heap("track",["Loader Visible - Transferring to Modernize"]);setTimeout((function(){setTimeout((function(){window.location.href=window.modForm.opts.resultsPage}),500),document.body.classList.add("submitted")}),2500)}else window.modForm.opts.showLoadingOverlay?(document.body.classList.add("submitted"),setTimeout((function(){window.location.href=window.modForm.opts.resultsPage}),1e3)):window.location.href=window.modForm.opts.resultsPage;window.modForm.opts.isFrontdoorExclusiveMatch?(0,ee.u)(encodeURIComponent(window.modForm.opts.resultsPage)):(0,ee.u)(window.modForm.opts.resultsPage)}function xo(o,e,t){"function"==typeof window.modForm.opts.formSubmitErrorCallback&&window.modForm.opts.formSubmitErrorCallback(o,e,t),(0,oe.A)(!1),alert("Something went wrong, please try again.")}function qo(o,e){let t;const n=o.RESPONSE,i=n.DCK,r=n.zip;if(null!==i&&200===e.status){const o=window.modForm.opts.formData.CLK;"undefined"!=typeof dataLayer&&window.dataLayer.push({event:"formSubmit",userId:o,lastProjectId:i,projectId:i,projectClass:window.modForm.opts.formData.service}),window.modUtils.gaSend({hitType:"event",eventCategory:"HRC General",eventAction:"User converted on non-TYP experience",eventLabel:window.location.pathname},window.modForm.opts.gaTracker),window.heap&&window.heap.addEventProperties({project_id:i,data_capture_key:i,form_path:window.modForm.opts.landingPage}),window.modForm.homeownerLeadConversionProps.zip=r,window.modUtils.heap("track",["Homeowner Lead Conversion",window.modForm.homeownerLeadConversionProps]),window.modForm.opts.GOAL_ID&&(window._vis_opt_queue=window._vis_opt_queue||[],window._vis_opt_queue.push((function(){_vis_opt_goal_conversion(window.modForm.opts.GOAL_ID)}))),void 0!==window.dataLayer&&window.dataLayer.push({event:"Homeowner Lead Conversion",isQSPage:"true"}),"undefined"!=typeof pintrk&&pintrk("track","checkout",{order_id:void 0!==i?i:null}),t=Object.assign({},window.modForm.opts.quadLinkParams,n),t.PROJECT={},(0,P.isQsSiteEligibleForHrc)()||(t.PROJECT.FIRSTNAME=window.modForm.opts.formData.FN);let e=window.modForm.opts.contractorTrade?window.modForm.opts.contractorTrade:window.modForm.opts.vertical;if(e=e.replace(/_/g," ").toLowerCase(),t.PROJECT.contractorTrade=e,window.modUtils.setCookie("qsLeadData",JSON.stringify(t)),"function"==typeof window.modForm.opts.formSubmitSuccessCallback&&!1===window.modForm.opts.formSubmitSuccessCallback(n))return!1}else if((0,oe.A)(!1),"function"==typeof window.modForm.opts.formSubmitErrorCallback&&!1===window.modForm.opts.formSubmitErrorCallback(n))return!1;if((0,P.isQsSiteEligibleForHrc)()&&n.HASHEDDCK?(window.projectId=n.HASHEDDCK,window.modForm.opts.resultsPage=(0,h.E)(),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+"DCK="+i,window.modForm.opts.shouldSuppressConversionPixel&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.suppressConversionPixelParam),window.modForm.opts.isFirePixelTrue&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage?.indexOf("?")<0?"?":"&")+window.modForm.opts.firePixelParam),window.modForm.opts.isSharedMatch&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.sharedParam),Object.keys(window.modForm.opts.resultsPageAdditionalParams).length&&Object.entries(window.modForm.opts.resultsPageAdditionalParams).forEach((function(o){let[e,t]=o;window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+e+"="+t})),window.modForm.opts.prefVendorParam&&window.modForm.opts.prefVendorKeys&&window.modForm.opts.prefVendorKeys.length&&(window.modForm.opts.prefVendorParam+=window.modForm.opts.prefVendorKeys.toString(),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+window.modForm.opts.prefVendorParam),window.modForm.opts&&window.modForm.opts.getVars&&"PartnerSourceID"in window.modForm.opts.getVars&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+`PartnerSourceID=${window.modForm.opts.getVars.PartnerSourceID}`),window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+(n.MATCHES.length>0?"ThankYou":"Sorry")):window.modForm.opts.resultsPage=0===n.MATCHES.length?window.modForm.opts.errorRedirectPath:window.modForm.opts.resultsPage,void 0!==window.modForm.opts.appendTyToHrcUrl&&!0===window.modForm.opts.appendTyToHrcUrl&&window.modForm.opts.resultsPage.indexOf("ThankYou")<0&&window.modForm.opts.resultsPage.indexOf("Sorry")<0&&(window.modForm.opts.resultsPage+=(window.modForm.opts.resultsPage.indexOf("?")<0?"?":"&")+(n.MATCHES.length>0?"ThankYou":"Sorry")),window.modForm.opts.isExclusiveMatch&&window.modForm.opts.exclusiveMatchResultsPage&&(window.modForm.opts.resultsPage=window.modForm.opts.exclusiveMatchResultsPage),window.modForm.opts.showLoadingOverlay&&Loader.updateLink(window.modForm.opts.resultsPage),window.modForm.opts.resultsPage&&!window.modForm.opts.isOrganicPreferredMatch&&window.modForm.opts.autoRedirectToTyOrSorryPage)if(window.modForm.opts.showRedirectOverlay){if(window.modForm.opts.isExclusiveMatch){const o=window.modForm.opts.exclusiveMatchVendor.charAt(0).toUpperCase()+window.modForm.opts.exclusiveMatchVendor.slice(1),e="Frontdoor"===o?"American Home Shield":o;Loader.showRedirectAnimation(...window.modForm.opts.eCommerceExclusiveLoaders[window.modForm.opts.exclusiveMatchVendor]),window.Modalytics.heap("track",[`Loader Visible - Transferring to ${e}`])}else Loader.showRedirectAnimation(),window.Modalytics.heap("track",["Loader Visible - Transferring to Modernize"]);setTimeout((function(){setTimeout((function(){window.location.href=window.modForm.opts.resultsPage}),500),document.body.classList.add("submitted")}),2500)}else window.modForm.opts.showLoadingOverlay?(document.body.classList.add("submitted"),setTimeout((function(){window.location.href=window.modForm.opts.resultsPage}),1e3)):window.location.href=window.modForm.opts.resultsPage;window.modForm.opts.isFrontdoorExclusiveMatch?(0,ee.u)(encodeURIComponent(window.modForm.opts.resultsPage)):(0,ee.u)(window.modForm.opts.resultsPage)}function No(){window.modForm=Object.assign(window.modForm,_.p7,_._t),b(!1),r(!1),s(!1)}const Ro=[{serviceCodes:["ALERTS_MEDICAL"],requiredAttributes:["MedicalAlertProtectionAt","WhoseMedicalAlert","HasLandlineAtHome"]},{serviceCodes:["BASEMENT_WATERPROOFING"],requiredAttributes:["OwnHome"]},{serviceCodes:["BATH_REMODEL"],requiredAttributes:["BathProjectScope","OptIn1","OwnHome"]},{serviceCodes:["BATHROOM_REFACING"],requiredAttributes:["BathProjectScope","OwnHome"]},{serviceCodes:["CONCRETE_FOUNDATION"],requiredAttributes:["ConcreteProjectScope","OwnHome"]},{serviceCodes:["CABINET_INSTALL","CABINET_REFACING"],requiredAttributes:["OwnHome"]},{serviceCodes:["COUNTERTOP"],requiredAttributes:["CountertopType","CountertopProjectScope","CommercialLocation","BuyTimeframe","OwnHome"]},{serviceCodes:["DOOR"],requiredAttributes:["DoorProjectScope","DoorsNumber","DoorType","OwnHome"]},{serviceCodes:["DRAINS","SEWER"],requiredAttributes:["DrainageIssue","OwnHome"]},{serviceCodes:["FLOORING_HARDWOOD","FLOORING_TILE","FLOORING_VINYL_LINOLEUM","FLOORING_LAMINATE","FLOORING_SUBFLOORS","CARPET"],requiredAttributes:["CommercialLocation","FlooringProjectScope","MaterialPurchase","OwnHome"]},{serviceCodes:["GUTTER_COVERS"],requiredAttributes:["CommercialLocation","OwnHome"]},{serviceCodes:["HOME_SECURITY"],requiredAttributes:["CommercialLocation","HomeSecurityProjectScope","Monitoring","SecuritySystemInstallationType"]},{serviceCodes:["HOME_WARRANTY"],requiredAttributes:["Interest","OwnHome"]},{serviceCodes:["HOT_TUBS"],requiredAttributes:["HotTubUse","HotTubType","OwnHome"]},{serviceCodes:["HVAC"],requiredAttributes:["HVACProjectScope","HVACInterest","OwnHome"]},{serviceCodes:["INSULATION"],requiredAttributes:["OwnHome","SubProductService"]},{serviceCodes:["KITCHEN_REMODEL"],requiredAttributes:["OptIn","OwnHome"]},{serviceCodes:["PLUMBING"],requiredAttributes:["OwnHome","PlumbingProjectScope"]},{serviceCodes:["ROOFING_ASPHALT","ROOFING_COMPOSITE","ROOFING_CEDAR_SHAKE","ROOFING_METAL","ROOFING_NATURAL_SLATE","ROOFING_TILE"],requiredAttributes:["OwnHome","RoofingPlan"]},{serviceCodes:["SIDING_VINYL","SIDING_ALUMINIUM","SIDING_BRICKFACE","SIDING_COMPOSITE_WOOD","SIDING_STONEFACE","STUCCO_EXTERIOR"],requiredAttributes:["OwnHome","ProjectPlan"]},{serviceCodes:["SOLAR"],requiredAttributes:["ElectricBill","OwnHome","UtilityProvider"]},{serviceCodes:["STAIR_LIFTS"],requiredAttributes:["OwnHome","ReasonForStairLift"]},{serviceCodes:["TREE_SERVICES"],requiredAttributes:["CommercialLocation","JobType","NumberOfTrees","OwnHome","TreeSize"]},{serviceCodes:["WALK_IN_TUBS","WALK_IN_SHOWERS"],requiredAttributes:["Interest","OwnHome"]},{serviceCodes:["WATER_HEATERS"],requiredAttributes:["ProjectScope","OwnHome"]},{serviceCodes:["WATER_MAIN"],requiredAttributes:["OwnHome"]},{serviceCodes:["WATER_TREATMENT"],requiredAttributes:["BuyTimeframe","OwnHome","ServiceType"]},{serviceCodes:["WINDOWS"],requiredAttributes:["NumberOfWindows","OwnHome","WindowsProjectScope"]}];var Uo=t(9978);function Ho(o){if(!o)return;const{CCID:e,CLK:t,CROTag:n,EM:i,FN:r,HeapEventID:s,HEAPID:d,HeapSessionID:a,HeapUserID:c,HomePhoneConsentLanguage:m,HP:u,InternalSource:l,LN:p,Match:w,OwnHome:f,PartnerSourceID:g,PC:h,QTR:F,quadlink:y,S1:b,searchid:S,service:v,shClickKey:C,site:k,skipAddress:P,tagID:A,VWOID:E,VWOVariationName:L,TrustedFormToken:T}=o;0===Object.keys(window.modForm.opts.serviceSpecificAttributes).length&&Po(v),delete window.modForm.opts.serviceSpecificAttributes.OwnHome;const O={...T&&{trustedFormToken:T},...g&&{partnerSourceID:g}},I={consentMethod:"Web",...window.modForm.opts.consentRequestId&&{requestId:window.modForm.opts.consentRequestId},...window.modForm.opts.consentCaptureVendors.length>0?{vendors:window.modForm.opts.consentCaptureVendors}:{}},D={...w&&{brandedVendor:w}},x={...window.modForm.opts.serviceSpecificAttributes},q={..."y"===P&&{skipAddress:!0}},N={...S&&{searchid:S},...C&&{shclickkey:C}},R={...e&&{ccid:e},...t&&{clk:t},...l&&{internalSource:l},...F&&{qtr:F},...y&&{quadLink:y},...A&&{quadTagId:A},site:k,additionalAttributes:{...d&&{HEAPID:d},...c&&{HeapUserID:c},...s&&{HeapEventID:s},...a&&{HeapSessionID:a},...E&&{VWOID:E},...L&&{VWOVariationName:L},...n&&{CROTag:n}}};return{zip:h,service:v,firstName:r,lastName:p,email:i,phone:u,address:b,ownHome:f,homePhoneConsentLanguage:m,landingPageURL:window.location.href.split("#")[0],...O,consentCaptureData:{...I},...Object.keys(D).length?{matchingAttributes:D}:{},...Object.keys(x).length?{serviceSpecificAttributes:x}:{},...Object.keys(q).length?{configOverrideAttributes:q}:{},...Object.keys(N).length?{sureHitsAttributes:N}:{},...Object.keys(R).length?{trackingAttributes:R}:{}}}var _o=t(1145);function Vo(){window.modForm.opts.gettingLiveConsent=!0;const o=(0,he.h)()+"forms/consent-searches",e=document.querySelector(".tcpa-providers"),t=document.querySelector("[data-providers-consent]"),n=(0,g.t)(),i=Object.fromEntries(Object.entries(window.modForm.opts.quadLinkParams).map((o=>{let[e,t]=o;return[e.toLowerCase(),t]}))),r=window.modForm.opts.quadLinkData.quadlink?{quadLink:window.modForm.opts.quadLinkData.quadlink}:i,s=(0,Co.S)(n),d=n.PartnerSourceID?{partnerSourceID:n.PartnerSourceID}:{};Po(s);const a={zip:window.modForm.opts.getVars.zip?window.modForm.opts.getVars.zip:window.modForm.opts.zipCode,service:s,site:window.modForm.opts.quadLinkData.WebSiteName,...r,...d,serviceSpecificAttributes:{...window.modForm.opts.serviceSpecificAttributes}};if(JSON.stringify(a)===window.modForm.opts.consentCaptureDetails)return;window.modForm.opts.consentCaptureDetails=JSON.stringify(a);let c={};const m=new XMLHttpRequest;m.open("POST",o),m.setRequestHeader("Content-Type","application/json"),m.send(JSON.stringify(a)),m.addEventListener("load",(function(){if(this.response&&(c={...c,...JSON.parse(this.response)},4===this.readyState&&200===this.status&&(1===c.data.length&&"Modernize"===c.data[0].vendorDisplayName?e&&(e.style.display="none"):e&&"none"===e.style.display&&(e.style.display="block"),c.requestId&&(window.modForm.opts.consentRequestId=c.requestId),JSON.stringify(c)))){if(t.hasChildNodes())for(;t.firstChild;)t.removeChild(t.firstChild);window.modUtils.renderConsentCheckboxes(c.data,t)}})),m.addEventListener("error",(function(){console.error("Something went wrong!")}))}const jo=function(){const o=window.modUtils.getUrlParamsToObject(),{eddie:e}=o;if(!e)return!1;const t=`${"https://"+("production"===window.modUtils.getEnv()?"hs.leadpost.net/":"hsleadpost1.quinstage.com/")}api/get/hseddie?quid=${e}`,n=new Headers;fetch(t,{method:"POST",headers:n,redirect:"follow",mode:"cors"}).then((o=>o.json())).then((o=>V(o))).catch((o=>console.log("Something went wrong!",o)))};let Mo=null;const zo=function(o){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Mo&&Mo.abort("Current pending request has been aborted. Initiating a new request.");const t=modUtils.getUrlParamsToObject(),n=["ad","gclid","msclkid","vmcid","tbcid","fb_ad_id","fb_campaign_id","fbclid","fb_adset_id"],{CCID:i,CLK:r,QTR:s,tagId:d}=o,{vendorKey:a,PartnerSourceID:c}=t,m={},u="production"===modUtils.getEnv(),l="local"===modUtils.getEnv(),p=new RegExp(/(\d{3})(\d{3})(\d{4})/g),w=document.querySelectorAll(modForm.opts.phoneAssignmentConfig.phoneNumberContainerSelector),f=document.querySelectorAll(modForm.opts.phoneAssignmentConfig.phoneNumberLinksSelector),g=modForm.opts.phoneAssignmentConfig.useHsEndpoint;let h="",F={},y=F;const b="https://"+(u?"form-service-hs.qnst.com":"hsapiservice.dev.quinstreet.net"),S="https://"+(u?"ivr.quinstreet.com":"ivr.quinstage.com"),v=new Headers;v.append("Accept","application/json");const C=()=>{document.body.classList.remove("invoca","callrail"),Modalytics.heap("track",["Phone Assignment",{phoneNumber:!1,updatedExistingPhoneAssignment:e}])},k=(o,t,n)=>{if(f&&f.length&&w&&w.length&&o){document.body.classList.add("invoca","callrail");const i=o.replace(p,"$1-$2-$3"),r=`${i}${t?` Ext: ${t}`:""}`;modForm.opts.phoneAssignmentConfig.response={displayNumber:r,hrefPhoneNumber:`${o}${t?`,${t}`:""}`,extension:t,phoneNumber:o,formattedPhoneNumber:i,phoneAssignmentKey:n},f.forEach((e=>{e.setAttribute("href",`tel:${o}${t?`,${t}`:""}`);const n=e.querySelector(modForm.opts.phoneAssignmentConfig.phoneNumbersTextSelector);n&&(n.textContent=r)})),Modalytics.heap("track",["Phone Assignment",{phoneNumber:!0,extension:!!t,updatedExistingPhoneAssignment:e}])}};if(g){v.append("Content-Type","application/json"),h=`${b}/calls/matches`;const o=Array.isArray(modForm.opts.phoneAssignmentConfig.matchVendors)&&modForm.opts.phoneAssignmentConfig.matchVendors.length?modForm.opts.phoneAssignmentConfig.matchVendors:[-1];F={ccid:i||null,clk:r||null,qtr:s||null,zip:modForm?.getFormData()?.zip||null,service:modForm.opts.vertical,landingPageURL:window.location.href,matchVendors:o},!F.zip&&l&&(F.zip="94404"),e&&modForm.opts.phoneAssignmentConfig.response&&modForm.opts.phoneAssignmentConfig.response.phoneAssignmentKey&&(F.vendorPhoneAssignmentKeys={[F.matchVendors[0]]:modForm.opts.phoneAssignmentConfig.response.phoneAssignmentKey}),y=JSON.stringify(F)}else v.append("Content-Type","application/x-www-form-urlencoded"),h=`${S}/number`,F={SourceClickKey:r||"",LandingQuadTagID:d||"",PC:modForm?.getFormData()?.zip,PortalServiceCode:modForm.opts.vertical,service:"assign",BusinessUnit:"FC",QS_CATEGORY:"Home Services",TradingPlatformTrackingInfo:"",vendorKeys:a||"-1",quadTagId:u?modForm.opts.phoneAssignmentConfig.questQuadTagId.prod:modForm.opts.phoneAssignmentConfig.questQuadTagId.staging,AffiliateSubID:c||""},t&&Object.keys(t).length&&Object.keys(t).forEach((function(o){n.includes(o)&&(m[o]=t[o])})),F.TradingPlatformTrackingInfo=JSON.stringify(m),y=new URLSearchParams(F).toString();Mo=new AbortController;const P=Mo.signal;fetch(h,{method:"POST",headers:v,redirect:"follow",mode:"cors",body:y,signal:P}).then((o=>o.json())).then((o=>{if(g)if(o&&"success"===o.status){const{data:e}=o,{phoneDetails:t}=e;let n;n=t?t[F.matchVendors[0]]:modForm.opts.phoneAssignmentConfig.response;const{phoneNumber:i,extension:r,phoneAssignmentKey:s}=n;k(i,r,s)}else C();else if(o&&Object.keys(o).length){const e=o[F.vendorKeys];if(!e||e.constructor!==Object)return void C();const{ccPhoneNum:t,extn:n}=e;k(t,n)}else C()})).catch((o=>{P.aborted?(console.log(P.reason),Modalytics.heap("track",["Phone Assignment",{isRequestAborted:!0}])):(C(),console.log("Something went wrong!",o))}))};function Bo(o){let e="Wireless",t={};const n=new XMLHttpRequest,i=`${Fe()}${window.modForm.opts.isWirelesssApi}/${o}/get`;return n.open("GET",i),n.send(),n.addEventListener("load",(function(){this.response&&(t={...t,...JSON.parse(this.response)},4===this.readyState&&200===this.status&&"Success"===t.status&&"false"===t.Result&&(e="NonWireless"))})),n.addEventListener("error",(function(){console.error("Something went wrong")})),e}function $o(o,e){(0,oe.A)(!0);let t={};const n=new XMLHttpRequest;n.open("GET",window.modUtils.getApiDomain()+"/v1/lookups/utility-providers?filters[state]="+o),n.send(),n.addEventListener("load",(function(){if(this.response){if(t={...t,...JSON.parse(this.response)},4===this.readyState&&200===this.status){let o;if(t.success=!0,t.success&&t.data.length>1)e(o,t.data);else if(!0===t.success&&t.data.length<=1){o=!0,e(o);const t=document.createElement("input");t.type="hidden",t.name="utilityProviderId",t.value="999999",t.setAttribute("data-required","nonempty"),window.modForm.opts.form.append(t)}(0,oe.A)(!1)}}else"function"==typeof e&&e({})})),n.addEventListener("error",(function(){console.error("Something went wrong")}))}function Qo(o,e){(0,oe.A)(!0);let t={};const n=[{utilityProviderId:999999,name:"Other"}],i=new XMLHttpRequest;i.open("GET",window.modUtils.getApiDomain()+"/v1/lookups/utility-providers?filters[zip]="+o),i.send(),i.addEventListener("load",(function(){if(this.response)if(t={...t,...JSON.parse(this.response)},4===this.readyState&&200===this.status){let o;if(t.success=!0,t.success&&t.data.length>1)e(o,t.data);else if(!0===t.success&&t.data.length<=1){o=!0,e(o,t.data);const n=document.createElement("input");n.type="hidden",n.name="utilityProviderId",n.value="999999",n.setAttribute("data-required","nonempty"),window.modForm.opts.form.append(n)}}else"function"==typeof e&&e(!0,n)})),i.addEventListener("error",(function(){console.error("Something went wrong"),"function"==typeof e&&e(!0,n)})),i.addEventListener("loadend",(function(){(0,oe.A)(!1)}))}var Wo=t(9858);function Ko(o,e,t){const n=Array.from(window.modForm.opts.steps).indexOf((0,no.I)()),i=0===n?"POST":"PATCH";let r,s,d;if(0===n)r=window.modUtils.getApiDomain()+"/v1/contractors",s=!1;else{const o=window.modForm.opts.form.querySelector('[name="contractorId"]').value,e=window.modForm.opts.form.querySelector('[name="token"]').value;r=window.modUtils.getApiDomain()+"/v1/contractors/"+o,s="Bearer "+e,d=o}if(!1===window.modForm.isSubmitting){window.modForm.isSubmitting=!0;let o={};const a=new XMLHttpRequest;a.open(i,r),a.setRequestHeader("Authorization",s),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(new URLSearchParams((0,Lo.F)(window.modForm.opts.submitData)).toString()),a.addEventListener("load",(function(){const i=this;this.response?o={...o,...JSON.parse(this.response)}:o.data={contractorId:d},4===this.readyState&&this.status>=200&&this.status<=299?("function"==typeof e&&e(o),window.modForm.opts.submitData={},Io(o,n,i)):"function"==typeof t?t(i,this.status,o):"function"==typeof window.modForm.opts.formSubmitErrorCallback?window.modForm.opts.formSubmitErrorCallback(o):Oo(o)})),a.addEventListener("loadend",(function(){window.modForm.isSubmitting=!1,(0,oe.A)(!1)})),a.addEventListener("error",(function(){console.error("Something went wrong!")}))}}function Go(o,e,t){const n=(0,he.h)()+"forms/inquiries";o=(0,I.x)(o),o=(0,Uo.G)(o);const i=Ho(o=(0,_o.J)(o));if(window.modForm.opts.formData=i,!1===window.modForm.isSubmitting){window.modForm.isSubmitting=!0;let r={};const s=new XMLHttpRequest;s.open("POST",n),s.setRequestHeader("Content-Type","application/json"),s.send(JSON.stringify(i)),s.addEventListener("load",(function(){const n=this;if(this.response)if(r={...r,...JSON.parse(this.response)},4===this.readyState&&200===this.status){if("function"==typeof e&&e(r),r.CommissionDetails&&!0===r.CommissionDetails.firePixel&&(window.modForm.opts.isFirePixelTrue=!0),r&&(o.PC&&(r.zip=o.PC),o.SP&&(r.state=o.SP),o.CT&&(r.city=o.CT)),r.vendors.length>0){const e=Object.values(window.modForm.opts.eCommerceVendorKeys.exclusive),t=r.vendors[0],n=t.vendorKey,i=Object.values(window.modForm.opts.eCommerceVendorKeys.shared),s=r.vendors.filter((o=>i.includes(o.vendorKey)));if(1===r.vendors.length&&e.includes(n)){const e=Object.keys(window.modForm.opts.eCommerceVendorKeys.exclusive).find((o=>window.modForm.opts.eCommerceVendorKeys.exclusive[o]===n));if(window.modForm.opts.exclusiveMatchVendor=e,t.vendorLeadDeliveryToken||t.consentIntegrationData&&t.consentIntegrationData.redirectUrl){if(window.modForm.opts.isExclusiveMatch=!0,t.vendorLeadDeliveryToken&&n===window.modForm.opts.eCommerceVendorKeys.exclusive.frontdoor){const o="https://shopping.ahs.com/plans/get-my-quote/select?leadData=",e="&utm_medium=affiliate&utm_source=modernize&utm_campaign=modernize_ecomm";if(window.modForm.opts.frontdoorLeadId=t.vendorLeadDeliveryToken?t.vendorLeadDeliveryToken:"",r.city&&r.state)window.modForm.opts.userCity=r.city,window.modForm.opts.userState=r.state;else if(window.modForm.opts.userLocation){const o=window.modForm.opts.userLocation.split(",");window.modForm.opts.userCity=o[0].trim(),window.modForm.opts.userState=o[1].trim()}const n=`;;${window.modForm.opts.userCity};${window.modForm.opts.userState};${r.zip};${window.modForm.opts.formData.S1};;;;;;;${window.modForm.opts.frontdoorLeadId};`,i=btoa(n);window.modForm.opts.exclusiveMatchResultsPage=`${o}${i}${e}`}else t.consentIntegrationData.redirectUrl&&(window.modForm.opts.exclusiveMatchResultsPage=t.consentIntegrationData.redirectUrl);window.Modalytics.heap("track",["E-Commerce Flow",{companyName:t.vendorDisplayName,destinationLink:window.modForm.opts.exclusiveMatchResultsPage,matchCriteria:"Exclusive (Redirect)"}])}else if(t.consentIntegrationData&&(t.consentIntegrationData.widgetUrl||t.consentIntegrationData.additionalData)&&!window.modForm.opts.includesConfirmationStep){window.modForm.opts.isExclusiveWidgetMatch=!0;let e="";const i=window.modForm.opts.form.querySelector(".step--confirmation"),r=document.createElement("li");r.className="swiper-slide swiper-no-swiping step step--show-widget",r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.setAttribute("data-bind","step"),r.setAttribute("data-step-name","widget");const s=document.createElement("div");if(s.className="step-inner",r.appendChild(s),i&&i.remove(),window.modForm.opts.form.querySelector(".swiper-wrapper").appendChild(r),r.setAttribute("id",`step${window.modForm.opts.form.querySelectorAll(window.modForm.opts.stepsSelector).length+1}`),window.modForm.opts.formSwiperInstance.update(),t.consentIntegrationData.additionalData&&n===window.modForm.opts.eCommerceVendorKeys.exclusive.airo){if(e=JSON.stringify(t.consentIntegrationData.additionalData),t.consentIntegrationData.additionalData.trade&&t.consentIntegrationData.additionalData.campaignId){const e=document.createElement("div"),n=document.createElement("script");e.id="airo-anchor",s.appendChild(e),window.airoBookingForm={zipCode:o.zip,trade:t.consentIntegrationData.additionalData.trade,firstName:o.firstName,lastName:o.lastName,address:o.address,email:o.email,phone:o.phone,campaignId:t.consentIntegrationData.additionalData.campaignId},n.src=`https://form.contractorappointments.com/js/embed-form.js?v=${(new Date).getTime()}`,document.body.appendChild(n)}}else if(e=t.consentIntegrationData.widgetUrl,n===window.modForm.opts.eCommerceVendorKeys.exclusive.angi){const o=document.createElement("div"),t=document.createElement("script");o.className="dropin-container",s.appendChild(o),t.src="https://request.angi.com/hcc/dropin-112a615a05e36545.js",t.onload=function(){window.initializeDropIn&&window.initializeDropIn(e)},document.body.appendChild(t)}else{const o=document.createElement("iframe");o.src=e,s.appendChild(o)}window.modForm.opts.autoRedirectToTyOrSorryPage=!1,(0,oe.A)(!1),(0,oe.Y)(!1),co(),window.modForm.opts.backButtons&&window.modForm.opts.backButtons.forEach((function(o){o.style.display="none"})),window.modForm.opts.progressBar&&window.modForm.opts.progressBar.forEach((function(o){o.style.display="none"})),window.Modalytics.heap("track",["E-Commerce Widget",{companyName:t.vendorDisplayName,pingToken:e,matchCriteria:"Exclusive (Widget)"}]),window.addEventListener("message",(function(o){const e=o.data;(e&&"pageState"===e.event&&"ThankYou"===e.payload||"networx"===e.source&&e.payload&&e.payload.leadDone)&&(window.Modalytics.heap("track",["E-Commerce Widget | Completed",{resultsPage:window.modForm.opts.resultsPage}]),history.pushState(null,null,`${window.modForm.opts.fullPageUrl}&refreshExp=true`),window.location=window.modForm.opts.resultsPage)}))}}else if(r.vendors.length>=1&&s.length>0){const o=s.map((o=>o.vendorKey)).join(",");window.modForm.opts.sharedParam=`shared=${o}`,window.modForm.opts.isSharedMatch=s}}window.modForm.opts.showLoadingOverlay&&!window.modForm.opts.isExclusiveWidgetMatch?((0,oe.Y)("submitted"),setTimeout((function(){Do(r,n)}),1e3)):Do(r,n)}else"function"==typeof window.modForm.opts.onGetMatchesBlocked&&0===this.status&&window.modForm.opts.onGetMatchesBlocked(),"function"==typeof t&&t(n,this.status,r)})),s.addEventListener("loadend",(function(){window.modForm.isSubmitting=!1,(0,oe.A)(!1)})),s.addEventListener("error",(function(){console.error("Something went wrong!");const o=document.querySelector(".loader");o&&(o.style.opacity=0,o.style.zIndex=-1);H(re()),window.modUtils.heap("track",["API Error | Showing Fallback Experience",{function:"submitFormDataToFormsServiceApi"}])}))}}function Yo(o,e,t){const n=(window.modForm.opts.isCrossSellForm?(0,pe.p)():Fe())+window.modForm.opts.leadSubmitApi;if(o=(0,I.x)(o),o=(0,Uo.G)(o),o=(0,_o.J)(o),window.modForm.opts.formData=o,!1===window.modForm.isSubmitting){window.modForm.isSubmitting=!0;let i={};const r=new XMLHttpRequest;r.open("POST",n),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(new URLSearchParams(Object.entries(o)).toString()),r.addEventListener("load",(function(){const n=this;if(this.response)if(i={...i,...JSON.parse(this.response)},4===this.readyState&&200===this.status){if("function"==typeof e&&e(i),i.RESPONSE.CommissionDetails&&!0===i.RESPONSE.CommissionDetails.firePixel&&(window.modForm.opts.isFirePixelTrue=!0),i.RESPONSE&&o.PC&&(i.RESPONSE.zip=o.PC),i.RESPONSE&&o.SP&&(i.RESPONSE.state=o.SP),i.RESPONSE&&o.CT&&(i.RESPONSE.city=o.CT),i.RESPONSE.MATCHES.length>0){const e=Object.values(window.modForm.opts.eCommerceVendorKeys.exclusive),t=i.RESPONSE.MATCHES[0],n=t.KEY,r=Object.values(window.modForm.opts.eCommerceVendorKeys.shared),s=i.RESPONSE.MATCHES.filter((o=>r.includes(o.KEY)));if(1===i.RESPONSE.MATCHES.length&&e.includes(n)){if(t.clientDetails){const e=Object.keys(window.modForm.opts.eCommerceVendorKeys.exclusive).find((o=>window.modForm.opts.eCommerceVendorKeys.exclusive[o]===n));if(window.modForm.opts.exclusiveMatchVendor=e,t.clientDetails.leadid||t.clientDetails.PewcUrl){if(window.modForm.opts.isExclusiveMatch=!0,t.clientDetails.leadid&&n===window.modForm.opts.eCommerceVendorKeys.exclusive.frontdoor){const o="https://shopping.ahs.com/plans/get-my-quote/select?leadData=",e="&utm_medium=affiliate&utm_source=modernize&utm_campaign=modernize_ecomm";if(window.modForm.opts.frontdoorLeadId=t.clientDetails.leadid?t.clientDetails.leadid:"",i.RESPONSE.city&&i.RESPONSE.state)window.modForm.opts.userCity=i.RESPONSE.city,window.modForm.opts.userState=i.RESPONSE.state;else if(window.modForm.opts.userLocation){const o=window.modForm.opts.userLocation.split(",");window.modForm.opts.userCity=o[0].trim(),window.modForm.opts.userState=o[1].trim()}const n=`;;${window.modForm.opts.userCity};${window.modForm.opts.userState};${i.RESPONSE.zip};${window.modForm.opts.formData.S1};;;;;;;${window.modForm.opts.frontdoorLeadId};`,r=btoa(n);window.modForm.opts.exclusiveMatchResultsPage=`${o}${r}${e}`}else t.clientDetails.PewcUrl&&(window.modForm.opts.exclusiveMatchResultsPage=t.clientDetails.PewcUrl);window.Modalytics.heap("track",["E-Commerce Flow",{companyName:t.DISPLAYNAME,destinationLink:window.modForm.opts.exclusiveMatchResultsPage,matchCriteria:"Exclusive (Redirect)"}])}else if((t.clientDetails.ClientPingToken||t.clientDetails.widgetUrl||t.clientDetails.ConsentIntegrationDetails)&&!window.modForm.opts.includesConfirmationStep){window.modForm.opts.isExclusiveWidgetMatch=!0;let e="";const i=window.modForm.opts.form.querySelector(".step--confirmation"),r=document.createElement("li");r.className="swiper-slide swiper-no-swiping step step--show-widget",r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.setAttribute("data-bind","step"),r.setAttribute("data-step-name","widget");const s=document.createElement("div");if(s.className="step-inner",r.appendChild(s),i&&i.remove(),window.modForm.opts.form.querySelector(".swiper-wrapper").appendChild(r),r.setAttribute("id",`step${window.modForm.opts.form.querySelectorAll(window.modForm.opts.stepsSelector).length+1}`),window.modForm.opts.formSwiperInstance.update(),t.clientDetails.ConsentIntegrationDetails&&n===window.modForm.opts.eCommerceVendorKeys.exclusive.airo){if(e=JSON.stringify(t.clientDetails.ConsentIntegrationDetails),t.clientDetails.ConsentIntegrationDetails.trade&&t.clientDetails.ConsentIntegrationDetails.campaignId){const e=document.createElement("div"),n=document.createElement("script");e.id="airo-anchor",s.appendChild(e),window.airoBookingForm={zipCode:o.PC,trade:t.clientDetails.ConsentIntegrationDetails.trade,firstName:o.FN,lastName:o.LN,address:o.S1,email:o.EM,phone:o.HP,campaignId:t.clientDetails.ConsentIntegrationDetails.campaignId},n.src=`https://form.contractorappointments.com/js/embed-form.js?v=${(new Date).getTime()}`,document.body.appendChild(n)}}else if(e=t.clientDetails.ClientPingToken?t.clientDetails.ClientPingToken:t.clientDetails.widgetUrl,t.clientDetails.ClientPingToken&&n===window.modForm.opts.eCommerceVendorKeys.exclusive.angi){const o=document.createElement("div"),t=document.createElement("script");o.className="dropin-container",s.appendChild(o),t.src="https://request.angi.com/hcc/dropin-112a615a05e36545.js",t.onload=function(){window.initializeDropIn&&window.initializeDropIn(e)},document.body.appendChild(t)}else if(t.clientDetails.widgetUrl){const o=document.createElement("iframe");o.src=e,s.appendChild(o)}window.modForm.opts.autoRedirectToTyOrSorryPage=!1,(0,oe.A)(!1),(0,oe.Y)(!1),co(),window.modForm.opts.backButtons&&window.modForm.opts.backButtons.forEach((function(o){o.style.display="none"})),window.modForm.opts.progressBar&&window.modForm.opts.progressBar.forEach((function(o){o.style.display="none"})),window.Modalytics.heap("track",["E-Commerce Widget",{companyName:t.DISPLAYNAME,pingToken:e,matchCriteria:"Exclusive (Widget)"}]),window.addEventListener("message",(function(o){const e=o.data;(e&&"pageState"===e.event&&"ThankYou"===e.payload||"networx"===e.source&&e.payload&&e.payload.leadDone)&&(window.Modalytics.heap("track",["E-Commerce Widget | Completed",{resultsPage:window.modForm.opts.resultsPage}]),history.pushState(null,null,`${window.modForm.opts.fullPageUrl}&refreshExp=true`),window.location=window.modForm.opts.resultsPage)}))}}}else if(i.RESPONSE.MATCHES.length>=1&&s.length>0){const o=s.map((o=>o.KEY)).join(",");window.modForm.opts.sharedParam=`shared=${o}`,window.modForm.opts.isSharedMatch=s}}window.modForm.opts.showLoadingOverlay&&!window.modForm.opts.isExclusiveWidgetMatch?((0,oe.Y)("submitted"),setTimeout((function(){qo(i,n)}),1e3)):qo(i,n)}else"function"==typeof window.modForm.opts.onGetMatchesBlocked&&0===this.status&&window.modForm.opts.onGetMatchesBlocked(),"function"==typeof t&&t(n,this.status,i)})),r.addEventListener("loadend",(function(){window.modForm.isSubmitting=!1,(0,oe.A)(!1)})),r.addEventListener("error",(function(){console.error("Something went wrong!");const o=document.querySelector(".loader");o&&(o.style.opacity=0,o.style.zIndex=-1);H(re()),window.modUtils.heap("track",["API Error | Showing Fallback Experience",{function:"submitFormDataToQSApi"}])}))}}function Jo(){let o={};const e=new XMLHttpRequest,t=Fe()+window.modForm.opts.trafficDetailsApi;e.open("POST",t),e.setRequestHeader("Content-Type","application/json"),e.send(JSON.stringify(window.modForm.opts.quadLinkData)),e.addEventListener("load",(async function(){if(this.response&&(o={...o,...JSON.parse(this.response)},4===this.readyState&&200===this.status)){for(const e in o)window.modForm.opts.qsParams.includes(e)&&o.hasOwnProperty(e)&&(window.modForm.opts.quadLinkParams[e]=o[e]);window.modForm.opts.phoneAssignmentConfig.showPhoneAssignmentNumber&&zo(o),be(),window.modForm.opts.quadLinkHasBeenTransformed=!0,window.heap?window.heap.addEventProperties(window.modForm.opts.quadLinkParams):await new Promise((o=>{setTimeout((function(){window.heap&&window.heap.addEventProperties(window.modForm.opts.quadLinkParams),o()}),250)}))}})),e.addEventListener("error",(function(){console.error("Something went wrong")}))}var Zo=t(3946);function Xo(){const o={landingpage:window.modForm.opts.landingPageNoQuery,thankyou:window.modForm.opts.thankyouPage},e=window.modUtils.getSupportedTrackingParams(),t=(0,g.t)();Object.keys(t).forEach((function(n){const i=n.toLowerCase();e.indexOf(i)>-1&&(o[i]=t[n])}))}var oe=t(1594),ee=t(9128);function te(){const o=window.modForm.opts.form.querySelectorAll("[data-save]");o.length>0&&o.forEach((function(o){B(o.name,window.modForm.userObj[o.name]),o.addEventListener("blur",(function(){ne(this.name,this.value)}))}))}function ne(o,e){o.toLowerCase().includes("zip")?window.modForm.userObj.zip=e:window.modForm.userObj[o]=e,window.modUtils.setCookie("userInfo",JSON.stringify(window.modForm.userObj),526740)}var ie=t(8377);function re(){let o,e,t=null,n=null,i="";if(window.modUtils.heapCookie&&(n=window.modUtils.heapCookieData.sessionId,t=window.modUtils.getCookie(n)),null!==t){const n=JSON.parse(decodeURIComponent(t));o=n.initialTimestamp,e=o+36e5,i=window.modForm.opts.isFrontdoorExclusiveMatch?decodeURIComponent(n.resultsPage):n.resultsPage}return{heapSessionSubmitCookie:t,heapSessionId:n,initialTimestamp:o,expireInOneHour:e,resultsPage:i}}var se=t(1565);function de(){const o=window.sessionStorage?window.sessionStorage.getItem("queryParams"):null,e=o?JSON.parse(o):null;return e&&(window.modForm.opts.getVars=e,A()),e}var ae=t(3765);function ce(o){const e=new XMLHttpRequest;e.open("GET",o),e.send(),e.addEventListener("load",(function(){if(this.response&&4===this.readyState&&200===this.status){const o=(0,Ao.q)(this.response);document.body.appendChild(o)}})),e.addEventListener("error",(function(){console.error("Something went wrong")}))}var me=t(2019);const ue={"modernize.com":{medicalalerts:{c:"1677934",s:"31135",f:"202109081618210"},showers:{c:"1683621",s:"3086",f:"202309141602090"},default:{c:"1679227",s:"29914",f:"202202161521310"}},"modernizesolar.com":{c:"1679227",s:"29914",f:"202202161521310"},"modernize-solar.com":{c:"1679227",s:"29914",f:"202202161521310"},"go.jacuzzi.com":{c:"1674074",s:"3086",f:"202011031614490"},"m.go.jacuzzi.com":{c:"1674074",s:"3086",f:"202011031614490"},"americanhomewarranty.org":{c:"1673835",s:"3086",f:"202010191645170"},"m.americanhomewarranty.org":{c:"1673835",s:"3086",f:"202010191645170"},"homewindowprices.org":{c:"1673838",s:"3086",f:"202010191645180"},"m.homewindowprices.org":{c:"1673838",s:"3086",f:"202010191645180"},"mygutterguards.com":{c:"1673836",s:"3086",f:"202010191645180"},"m.mygutterguards.com":{c:"1673836",s:"3086",f:"202010191645180"},"tophottubs.org":{c:"1673840",s:"3086",f:"202010191645190"},"m.tophottubs.org":{c:"1673840",s:"3086",f:"202010191645190"},"americanstandardwalkinbaths.com":{c:"1665214",s:"28354",f:"201906181327550"},"m.americanstandardwalkinbaths.com":{c:"1665215",s:"28354",f:"201906181327560"},"bathandshower.org":{c:"1667476",s:"26393",f:"201910011622070"},"m.bathandshower.org":{c:"1667460",s:"26401",f:"201910011622030"},"bathandshowerpros.com":{c:"1658267",s:"26393",f:"201809211357520"},"m.bathandshowerpros.com":{c:"1658263",s:"26401",f:"201809211352160"},"quotes.bathwraps.com":{c:"1660429",s:"26393",f:"201812121510250"},"m.bathwraps.com":{c:"1660426",s:"26401",f:"201812121509080"},"craftmaticbeds.com":{c:"655234",s:"3086",f:"201008201638230"},"emedicalalerts.com":{c:"1647425",s:"26393",f:"201711071755250"},"m.emedicalalerts.com":{c:"1647405",s:"26401",f:"201711071755190"},"flooringpricer.com":{c:"1668109",s:"26393",f:"201910231539300"},"m.flooringpricer.com":{c:"1668101",s:"26401",f:"201910231539280"},"findyourwindows.com":{c:"1654347",s:"26393",f:"201805111614390"},"m.findyourwindows.com":{c:"1654331",s:"26401",f:"201805111612300"},"homesecurityprices.org":{c:"1658310",s:"26393",f:"201809211526510"},"m.homesecurityprices.org":{c:"1658305",s:"26401",f:"201809211509250"},"quotes.improvementcenter.com":{bathrooms:{c:"1652517",s:"26393",f:"201803221337450"},gutters:{c:"1614214",s:"3086",f:"201608311104250"},stairlifts:{c:"1658469",s:"26393",f:"201809260926260"},walkintubs:{c:"1647588",s:"26393",f:"201711081408530"}},"bathrooms.improvementcenter.com":{c:"1652509",s:"26401",f:"201803221337420"},"gutters.improvementcenter.com":{c:"1635550",s:"16479",f:"201703010604120"},"stairlifts.improvementcenter.com":{c:"1658465",s:"26401",f:"201809260926240"},"walkintubs.improvementcenter.com":{c:"1647564",s:"26401",f:"201711081408460"},"kitchensandcabinets.com":{c:"1652648",s:"26393",f:"201803261349020"},"m.kitchensandcabinets.com":{c:"1652624",s:"26401",f:"201803261348550"},"leafgutterpros.com":{c:"1685217",s:"3086",f:"202403271348130"},"lifemedicalalerts.com":{c:"1647427",s:"26393",f:"201711071755260"},"m.lifemedicalalerts.com":{c:"1647407",s:"26401",f:"201711071755200"},"go.medicalguardian.com":{c:"1654232",s:"26393",f:"201805101622250"},"mysolarcost.com":{c:"1645537",s:"3086",f:"201709221027450"},"m.mysolarcost.com":{c:"1645592",s:"16479",f:"201709221044340"},"roofingcosts.org":{c:"1673843",s:"3086",f:"202010191645200"},"m.roofingcosts.org":{c:"1673843",s:"3086",f:"202010191645200"},"securitypricer.com":{c:"1673856",s:"3086",f:"202010191645230"},"m.securitypricer.com":{c:"1673856",s:"3086",f:"202010191645230"},"walkinbathtubs.org":{c:"1673846",s:"3086",f:"202010191645210"},"m.walkinbathtubs.org":{c:"1673846",s:"3086",f:"202010191645210"},"walkintubprices.org":{c:"1673842",s:"3086",f:"202010191645200"},"m.walkintubprices.org":{c:"1673842",s:"3086",f:"202010191645200"},"walkintubforseniors.com":{c:"1647590",s:"26393",f:"201711081408540"},"m.walkintubforseniors.com":{c:"1647566",s:"26401",f:"201711081408470"},"plans.selecthomewarranty.com":{c:"1674075",s:"3086",f:"202011031614490"},"plumbingservicecosts.com":{c:"1684673",s:"3086",f:"202402061224360"},"m.plans.selecthomewarranty.com":{c:"1674075",s:"3086",f:"202011031614490"},"powerhomesolarpanels.com":{c:"1676761",s:"3086",f:"202105251631450"},"hvacpros.org":{c:"1670084",s:"26393",f:"202002181631370"},"m.hvacpros.org":{c:"1670076",s:"26401",f:"202002181625140"},"homewarrantyplans.org":{c:"1668109",s:"26393",f:"201910231539300"},"m.homewarrantyplans.org":{c:"1667462",s:"26401",f:"201910011622030"},"gutterguardcovers.com":{c:"1679714",s:"3086",f:"202205131023370"},"windowreplacementcost.org":{c:"1679716",s:"3086",f:"202205131023370"},"stairliftchairs.org":{c:"1679715",s:"3086",f:"202205131023370"},"roofingreplacementcost.com":{c:"1680434",s:"3086",f:"202208031707470"},"furnacereplacementcosts.org":{c:"1680996",s:"3086",f:"202209290958330"},"solarpanelpricing.com":{c:"1682247",s:"3086",f:"202302031201300"},"kitchencabinetrefacing.org":{c:"1680433",s:"3086",f:"202208031707460"},"airconditioningpros.org":{c:"1682333",s:"3086",f:"202302141453580"},"treetrimmingservicepros.com":{c:"1682327",s:"3086",f:"202302141447090"},"compareflooringprices.com":{c:"1683170",s:"3086",f:"202306161210090"},"sidingreplacementcost.com":{c:"1683497",s:"3086",f:"202308211539090"},"adt-savings.com":{c:"1683323",s:"31135",f:"202307211631550"},"topgutterpros.com":{c:"1683689",s:"3086",f:"202309251220170"},"topremodelingpros.com":{c:"1683689",s:"3086",f:"202309251220170"},"powerhomedeals.com":{roofing:{c:"1683681",s:"3086",f:"202309251210110"},windows:{c:"1683686",s:"3086",f:"202309251219100"},siding:{c:"1683683",s:"3086",f:"202309251214450"}},"bestcompany.modernize.com":{homewarranty:{c:"1684628",s:"34486",f:"202401301751220"},medicalalertsystems:{c:"1684826",s:"34486",f:"202402151655050"},homesecurity:{c:"1684824",s:"34486",f:"202402151653100"},solar:{c:"1684620",s:"34486",f:"202401301731070"},watersofteners:{c:"1684830",s:"34486",f:"202402141206230"},plumbing:{c:"1684766",s:"34486",f:"202402141115530"},treeservices:{c:"1684764",s:"34486",f:"202402141113540"},newwindows:{c:"1684828",s:"34486",f:"202402151656490"},walkintubs:{c:"1684760",s:"34486",f:"202402141109100"},stairlifts:{c:"1684758",s:"34486",f:"202402141106430"},siding:{c:"1684756",s:"34486",f:"202402141103210"},roofing:{c:"1684754",s:"34486",f:"202402141059590"},hvac:{c:"1684752",s:"34486",f:"202402141057220"},hottubs:{c:"1684750",s:"34486",f:"202402141054450"},gutters:{c:"1684748",s:"34486",f:"202402141051430"},flooring:{c:"1684746",s:"34486",f:"202402141049110"},doors:{c:"1684744",s:"34486",f:"202402141046440"},cabinets:{c:"1684822",s:"34486",f:"202402151651120"},bathroomremodel:{c:"1684820",s:"34486",f:"202402151646230"},findapro:{c:"1684895",s:"3086",f:"202402231339130"}},"bestcompany.com":{homewarranty:{c:"1684628",s:"34486",f:"202401301751220"},medicalalertsystems:{c:"1684826",s:"34486",f:"202402151655050"},homesecurity:{c:"1684824",s:"34486",f:"202402151653100"},solar:{c:"1684620",s:"34486",f:"202401301731070"},watersofteners:{c:"1684830",s:"34486",f:"202402141206230"},plumbing:{c:"1684766",s:"34486",f:"202402141115530"},treeservices:{c:"1684764",s:"34486",f:"202402141113540"},newwindows:{c:"1684828",s:"34486",f:"202402151656490"},walkintubs:{c:"1684760",s:"34486",f:"202402141109100"},stairlifts:{c:"1684758",s:"34486",f:"202402141106430"},siding:{c:"1684756",s:"34486",f:"202402141103210"},roofing:{c:"1684754",s:"34486",f:"202402141059590"},hvac:{c:"1684752",s:"34486",f:"202402141057220"},hottubs:{c:"1684750",s:"34486",f:"202402141054450"},gutters:{c:"1684748",s:"34486",f:"202402141051430"},flooring:{c:"1684746",s:"34486",f:"202402141049110"},doors:{c:"1684744",s:"34486",f:"202402141046440"},cabinets:{c:"1684822",s:"34486",f:"202402151651120"},bathroomremodel:{c:"1684820",s:"34486",f:"202402151646230"},findapro:{c:"1684895",s:"3086",f:"202402231339130"}},"topsolarcompanies.com":{c:"1684497",s:"34399",f:"202401241741100"},"besthomesecuritycompanys.com":{c:"1684495",s:"34399",f:"202401241738220"},"homewatersystemspros.com":{c:"1684679",s:"3086",f:"202402061238410"},"foundationandbasements.com":{c:"1685478",s:"3086",f:"202405021159440"},"topinsulationpros.com":{c:"1686466",s:"3086",f:"202408211814210"},"getwaterdamagehelp.com":{c:"1686735",s:"3086",f:"202409231230440"}};var le=t(8691),pe=t(6145);function we(o){let e,t,n,i="";const r=fe();return"object"==typeof o&&null!==o?({c:e,s:t,f:n}=o):r&&(e="object"==typeof r.c?r.c[o]:r.c,({s:t,f:n}=r)),i=`http://o1.qnsr.com/cgi/r?;n=203;c=${e};s=${t};x=7936;f=${n};u=j;z=TIMESTAMP;&default=yes;`,i}function fe(){const o=window.modForm.opts.websiteName.replace(/(qa\.?|staging\.?|www\.?)/g,"");if(o.includes("bestcompany")){let e=window.modForm.opts.landingPage.split("/");return e=e[2].replace(/-/g,""),ue[o][e]}if(o.indexOf("quotes.improvementcenter.com")>-1||o.indexOf("modernize.com")>-1||o.indexOf("powerhomedeals.com")>-1){let e=window.modForm.opts.landingPage.replace(/\/$/g,"").replace(/^(?:[^/]*\/)+/g,"");return e=void 0!==ue[o][e]?e:"default",ue[o][e]}return ue[o]}var ge=t(1122),he=t(5435);function Fe(){let o="https://hsleadpost1.quinstage.com/";return"production"===window.modUtils.getEnv()&&(o="https://hs.leadpost.net/"),o}var ye=t(6134);function be(){void 0!==window.modForm.opts.quadLinkParams.CLK&&("heap"in window?window.Modalytics.heap("identify",[window.modForm.opts.quadLinkParams.CLK]):window.addEventListener("heapCookieResolved",(function(){window.Modalytics.heap("identify",[window.modForm.opts.quadLinkParams.CLK])})))}function Se(){function o(o){o.stopPropagation(),Pe()}window.modForm.opts.form.querySelectorAll('.btn-primary, .btn--primary, input[type="radio"], input[type="text"]').forEach((function(e){e&&(e.addEventListener("click",o,!1),e.addEventListener("keypress",o,!1))}))}var ve=t(3898);function Ce(){window.modForm.opts.form.querySelectorAll('.btn-primary, input[type="radio"]').forEach((function(o){o&&o.addEventListener("click",(function(o){!1===window.modForm.opts.quadLinkHasBeenTransformed&&0===Object.keys(window.modForm.opts.quadLinkParams).length&&(o.stopPropagation(),Jo(),window.modUtils.heap("track",["Quad Transform Retry"]))}))}))}var ke=t(9802);function Pe(){const o=window.modUtils.getLandingPage().indexOf("modernize.com")>0&&!window.modUtils.getLandingPage().includes("bestcompany");if(window.modForm.areLeadTokenScriptsLoaded)return void window.modForm.opts.form.querySelectorAll('.btn-primary, .btn--primary, input[type="radio"]').forEach((function(o){o&&o.removeEventListener("click",(function(o){o.stopPropagation(),Pe()}))}));const e=document.querySelector("body"),t=window.modForm.opts.useQSApi;let n=o?"":"/";const i=window.modForm.opts.isVite?"resources/scripts/":"scripts/";window.isWordpress&&(n=window.modUtils.getLandingPage().indexOf("modernize.local")>0?"/wp-content/themes/modernize/source/":"/wp-content/themes/modernize/dist/"),"local"!==window.modUtils.getEnv()&&""!==window.modForm.opts.landingPageSubdirectory&&(n=window.modForm.opts.landingPageSubdirectory);new MutationObserver((function(o,e){document.contains(document.querySelector("[name=xxTrustedFormToken]"))&&(window.modForm.loadedScripts.push("trusted"),(t&&1===window.modForm.loadedScripts.length||2===window.modForm.loadedScripts.length)&&(window.modForm.areLeadTokenScriptsLoaded=!0),e.disconnect())})).observe(e,{childList:!0,subtree:!0});new MutationObserver((function(o,e){document.contains(document.querySelectorAll(".grecaptcha-badge")[0])&&(window.modForm.loadedScripts.push("recaptcha"),2===window.modForm.loadedScripts.length&&(window.modForm.areLeadTokenScriptsLoaded=!0),e.disconnect())})).observe(e,{childList:!0,subtree:!0}),window.modForm.opts.useContractorApi||(document.querySelector("#trustedFormScript")&&(document.querySelector("#trustedFormScript").nextElementSibling.closest("noscript").remove(),document.querySelector("#trustedFormScript").remove()),ce(`${n}${i}trusted-form.html`),t&&!o||ce(`${n}${i}recaptcha.html`))}var Ae=t(1450),Ee=t(7575),Le=t(5782);function Te(){window.modForm.opts.useQSApi&&window.modForm.opts.delayQuadTransformation&&(0,ve.initQuadTransform)(!1)}function Oe(){if(!window.dataLayer)return!1;let o=(0,no.I)()?.getAttribute("data-step-name");modForm.isCurrentStepSecondToLast()&&(o="Almost Done"),modForm.isCurrentStepLast()&&(o="Last Step"),window.dataLayer.push({event:"stepChange",currentStep:o})}},1899:function(o,e,t){function n(o){const e=window.modForm.opts.observedTargetNode,t=window.modForm.opts.observerConfig;new MutationObserver((function(e,t){for(const n of e)"attributes"===n.type&&n.target.hasAttribute(window.modForm.opts.vwoVariationDataAttribute)&&n.target.getAttribute(window.modForm.opts.vwoVariationDataAttribute).indexOf(window.modForm.opts.vwoVariationDataAttributeValue)>-1&&(o(),t.disconnect())})).observe(e,t)}function i(o){o.some((o=>{if("attributes"===o.type&&~o.target.className.indexOf("gtm-aio-complete"))return window.modUtils.heap("track",["Mutation Observer redirect"]),clearTimeout(window.timeOutId),!window.modForm.opts.autoRedirectToTyOrSorryPage||(window.modForm.opts.showRedirectOverlay?(Loader.showRedirectAnimation(),window.modUtils.heap("track",["Loader Visible - Transferring to Modernize"]),setTimeout((function(){setTimeout((function(){window.location.href=window.modForm.projexURL}),500),document.body.classList.add("submitted")}),2500)):(document.body.classList.add("submitted"),setTimeout((function(){window.location.href=window.modForm.projexURL}),500)),!0)}))}t.d(e,{K:function(){return n},S:function(){return i}})},4171:function(o,e,t){function n(o){const e=o.split(" ");let t="";return e.forEach((function(o){t+=o.charAt(0).toUpperCase()+o.slice(1)+" "})),t.trim()}t.d(e,{Z:function(){return n}})},8762:function(o,e,t){function n(o,e){const t={0:{firstName:o.firstName,lastName:o.lastName,primaryProjectClass:o.primaryProjectClass,multipleTrades:o.multipleTrades?1:0,contractorNetwork:o.contractorNetwork?1:0,companyName:o.companyName,howDidYouHearAboutUs:o.howDidYouHearAboutUs,clientReferrerSource:o.clientReferrerSource,phone:o.homePhone,email:o.email,bbdId:o.bbdId,attribution:{utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_term:o.utm_term,utm_content:o.utm_content,program:o.program,gclId:o.gclid,keyword:o.keyword,landingPage:o.landingPage,elqCustomerGUID:o.elqCustomerGUID,elqCookieWrite:o.elqCookieWrite},compliance:{wasTcpaShown:o.tcpa,tcpaText:o.tcpaText,certificationToken:o.certificationToken,certificationType:o.certificationType},modSessionId:o.modSessionId},1:{annualRevenue:o.annualRevenue,buysLeads:o.buysLeads,crmInUse:o.crmInUse,ein:o.ein,whoCallsLeads:o.whoCallsLeads,websiteUrl:o.websiteUrl,companyZip:o.companyZip}}[e];return t&&Object.entries(t).length&&Object.entries(t).map((function(o){let[e,t]=o;t&&(window.modForm.opts.submitData[e]=t)})),window.modForm.opts.submitData}t.d(e,{m:function(){return n}})},6954:function(o,e,t){function n(o){if(o){if(o.innerText)return o.innerText;if(o.textContent)return o.textContent;if(o.innerHTML)return o.innerHTML}return""}t.d(e,{i:function(){return n}})},4186:function(o,e,t){function n(o){let e="";const t=window.modForm.opts.vertical,n={BATHROOM_REFACING:"BathProjectScope",CABINET_REFACING:"service",CONCRETE_FOUNDATIONS:"service",FLOORING_HARDWOOD:"ProductService",PLUMBING:"ServiceDetails",ROOFING_ASPHALT:"ProductService",SIDING_VINYL:"ProductService",WALK_IN_TUBS:"ProductService"}[t];return"BATHROOM_REFACING"===t&&o.BathProjectScope?e="Bathroom Remodel"===o.BathProjectScope?"BATH_REMODEL":"BATHROOM_REFACING":n&&o[n]?(e=o[n],!o.DrainageIssue||"SLOW_DRAINAGE"!==o.DrainageIssue&&"WATER_BACKING_UP_GURGLING"!==o.DrainageIssue||(e="SEWER")):e=t,e}t.d(e,{S:function(){return n}})},9601:function(o,e,t){function n(o){return{"Walk In Tubs":"Bathroom","Hot Tubs":"Additions"}[o]||o}t.d(e,{V:function(){return n}})},8410:function(o,e,t){function n(o){if(!o)return!1;return document.createRange().createContextualFragment(o)}t.d(e,{q:function(){return n}})},5281:function(o,e,t){function n(o){const e=[];let t;return o&&Object.entries(o)&&Object.entries(o).length&&Object.entries(o).forEach((n=>{let[i,r]=n;"object"==typeof r?(t=i,delete o[i],Object.entries(r).forEach((function(o){let[n,i]=o;i&&e.push([`${t}[${n}]`,i])}))):e.push([i,r])})),e}t.d(e,{F:function(){return n}})},9978:function(o,e,t){function n(o){if(!o)return;const e="recaptcha"in o&&""!==o.recaptcha,t="g-recaptcha-response"in o&&""!==o["g-recaptcha-response"];return(e||t)&&(o.recaptchaCompleted=!0,delete o.recaptcha,delete o["g-recaptcha-response"]),o}t.d(e,{G:function(){return n}})},1145:function(o,e,t){function n(o){if(!o)return;if(window.modForm.opts.ignoreQueryParamsInSessionStorage)return o;let e=!1;const t=window.modUtils.getUrlParamsToObject(),n=["zip=","firstName=","lastName=","address=","zip1=","city=","state=","homePhone=","email=","leadToken="];for(const i in t)t.hasOwnProperty(i)&&n.includes(i)&&null===t[i]&&(delete o[i],e=!0);if(e){let e=window.sessionStorage.getItem("queryParams");if(e)try{e=JSON.parse(e),(o=Object.assign(o,e)).usingQueryParamsFromSessionStorage=!0,window.sessionStorage.removeItem("queryParams"),window.modUtils.heap("track",["Used Initial Query Params from Session Storage",{queryParamsObject:e}])}catch(o){window.modUtils.heap("track",["Error Parsing Initial Query Params",{queryParamsObject:e,error:o.message}])}}return o}t.d(e,{J:function(){return n}})},9858:function(o,e,t){function n(){const o=window.modForm.opts.form.querySelector("#tcpa-copy");if(o&&o.hasAttribute("data-tcpa-loaded"))return;const e=(window.modForm.opts.vertical?window.modForm.opts.vertical.toLowerCase():"").replace(" ","_"),t=window.location.hostname.replace(/^qa./,"").replace(/^www./,""),n="https://"+("production"===window.modUtils.getEnv()?"hs.leadpost.net/":"hsleadpost1.quinstage.com/")+"coreg/getTCPAConsent",i={website:t,service:e,affiliateKey:"0",c_level:"default"};function r(){let e={};const t=new XMLHttpRequest;t.open("GET",`${n}?${new URLSearchParams(i).toString()}`),t.overrideMimeType("text/plain; charset=ISO-8859-15"),t.send(),t.addEventListener("load",(function(){if(this.response&&(e={...e,...JSON.parse(this.response)},4===this.readyState&&200===this.status)){let t=e.tcpa.replace(/QuinStreet/g,"Modernize");o.innerHTML=t,o.setAttribute("data-tcpa-loaded",!0);const n=window.modForm.opts.form.querySelector('input[type="hidden"][name="HomePhoneConsentLanguage"]'),i=window.modForm.opts.form.querySelector('input[type="hidden"][name="tcpaText"]');t=t.replace(/(<([^>]+)>)/gi,""),n&&(n.value=t),i&&(i.value=t),window.modForm.opts.isTCPAPopulated=!0}})),t.addEventListener("error",(function(){console.error("Something went wrong")}))}"IdlizeQueue"in window?window.IdlizeQueue.pushTask((()=>{r()})):r()}t.d(e,{x:function(){return n}})},3946:function(o,e,t){function n(o,e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(""===o)return void e(!1,"No token provided");const n={action:"validate_recaptcha",token:o},i=new XMLHttpRequest,r=(t?`https://${"production"===window.modUtils.getEnv()?"":"qa."}modernize.com`:"")+"/wp-admin/admin-ajax.php";i.open("POST",r),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(new URLSearchParams(Object.entries(n)).toString()),i.addEventListener("load",(function(){if(this.response&&4===this.readyState&&200===this.status){const o=JSON.parse(this.response),t="string"==typeof o?JSON.parse(o):o,n=!0===t.success,i=n&&"error-codes"in t?t.errorCodes.toString():"";e(n,i)}})),i.addEventListener("error",(function(o){const t=o.status+" "+o.responseText;console.log(o),e(!1,t)}))}t.d(e,{B:function(){return n}})},1594:function(o,e,t){function n(o){o?(window.modForm.opts.form.classList.add(window.modForm.opts.formLoadingCls),window.modForm.opts.isFormLoading=!0):(window.modForm.opts.form.classList.remove(window.modForm.opts.formLoadingCls),window.modForm.opts.isFormLoading=!1)}function i(o){"submitting"===o?window.modForm.opts.form.classList.add(window.modForm.opts.formSubmittingCls):"submitted"===o?window.modForm.opts.form.classList.add(window.modForm.opts.formSubmittedCls):"error"===o?window.modForm.opts.form.classList.add(window.modForm.opts.formSubmitErrorCls):(window.modForm.opts.form.classList.remove(window.modForm.opts.formSubmittingCls,window.modForm.opts.formSubmittedCls,window.modForm.opts.formSubmitErrorCls),document.body.classList.remove("submitted"))}t.d(e,{A:function(){return n},Y:function(){return i}})},9128:function(o,e,t){function n(o){setTimeout((function(){window.modUtils.heapCookie&&window.modUtils.setCookie(window.modUtils.heapCookieData.sessionId,JSON.stringify({initialTimestamp:window.modForm.getTime,resultsPage:o}))}),30)}t.d(e,{u:function(){return n}})},8377:function(o,e,t){function n(){const o=window.modUtils.getCookie("ELOQUA");if(o){const e=o.split("&");for(let o=0;o<e.length;o++){const t=e[o].split("=");if(2===t.length&&"GUID"===t[0])return t[1]}}return""}t.d(e,{f:function(){return n}})},1565:function(o,e,t){function n(){const o=window.modUtils.getUrlParamsToObject();o&&Object.keys(o).length&&window.sessionStorage&&!window.modForm.opts.ignoreQueryParamsInSessionStorage&&window.sessionStorage.setItem("queryParams",JSON.stringify(o))}t.d(e,{k:function(){return n}})},3765:function(o,e,t){function n(){const o=Object.keys(window.modForm.opts.getVars).filter((o=>o.startsWith("vwo-test"))),e=window.modForm.opts.getVars[o];if(!o||!e)return;const t=Object.keys(window.modForm.opts.getVars).filter((o=>o.match(/v[1-9]{1,}/g)));t.length>0?t.forEach((o=>{const t=window.modForm.opts.getVars[o],n=`${e}-${o}`;t&&t.split(",").forEach((o=>{const e=document.getElementsByClassName(o)[0];e&&e.setAttribute(window.modForm.opts.vwoVariationDataAttribute,n)}))})):setTimeout((()=>{document.body.setAttribute(window.modForm.opts.vwoVariationDataAttribute,e)}),500)}t.d(e,{l:function(){return n}})},2019:function(o,e,t){function n(o,e){window.grecaptcha&&window.grecaptcha.execute(window.__recaptchaKey,{action:"formSubmitted"}).then((function(t){t&&o.compliance&&(o.compliance.recaptchaToken=t),e(o)}),(function(t){e(o),console.error(t)}))}t.d(e,{R:function(){return n}})},8691:function(o,e,t){function n(o){window.modUtils.gaSend({hitType:"event",eventCategory:"HRC General",eventAction:"User converted on non-TYP experience",eventLabel:window.location.pathname},window.modForm.opts.gaTracker);const e=window.location.hostname+window.location.pathname;if(window.heap&&window.heap.addEventProperties({project_id:window.projectId,form_path:e}),window._vis_data&&0!==Object.keys(window._vis_data).length){const o=window._vis_data,e={};Object.keys(o).forEach((function(t){e["VWO Test ID"]=t.replace(/\D+/g,""),e["VWO Variation Name"]=o[t]})),window.heap&&window.heap.addEventProperties(e)}const t=o&&o.zip?o.zip:void 0;if(window.modForm.homeownerLeadConversionProps.zip=t,window.modUtils.heap("track",["Homeowner Lead Conversion",window.modForm.homeownerLeadConversionProps]),window.modForm.redirectStart=Date.now(),"undefined"!=typeof dataLayer&&window.dataLayer.push({event:"Homeowner Lead Conversion"}),!window.modForm.opts.autoRedirectToTyOrSorryPage)return!1;window.modUtils.heap("track",["NonTYP Redirect Timer Start",{timeElapsed:Date.now()}]),window.timeOutId=setTimeout((function(){const o=document.querySelector("body").getAttribute("class");window.modUtils.heap("track",["Hit Timeout to redirect to HRC",{classesPresent:o,timeElapsed:Date.now()-window.modForm.redirectStart}]),window.modForm.opts.showRedirectOverlay?(Loader.showRedirectAnimation(),window.modUtils.heap("track",["Loader Visible - Transferring to Modernize"]),setTimeout((function(){setTimeout((function(){window.location.href=window.modForm.projexURL}),500),document.body.classList.add("submitted")}),2500)):(document.body.classList.add("submitted"),setTimeout((function(){window.location.href=window.modForm.projexURL}),500))}),5e3)}t.d(e,{f:function(){return n}})},6145:function(o,e,t){function n(){let o="https://hsapi.quinstage.com/";return"production"===window.modUtils.getEnv()&&(o="https://hsapi.quinstreet.com/"),o}t.d(e,{p:function(){return n}})},1122:function(o,e,t){function n(){let o=window.modForm.opts.websiteName.replace(/(qa|staging|www)./g,"");return o=o.replace("m.",""),o}t.d(e,{e:function(){return n}})},5435:function(o,e,t){function n(){let o="https://hsapiservice.quinstage.com/";return"production"===window.modUtils.getEnv()&&(o="https://form-service-hs.qnst.com/"),o}t.d(e,{h:function(){return n}})},6134:function(o,e,t){async function n(o){if(window.location.search.length>0){"&"!==window.location.search.substr(-1)&&window.history.replaceState({},document.title,window.location.href.split("#")[0]+"&")}if(window.modForm.opts.useStepNameHash&&"object"==typeof window.modForm.opts.formSwiperInstance){const o=window.modForm.opts.formSwiperInstance?.params?.speed||window.modForm.opts.formSwiperInstance?.passedParams?.speed;o&&await new Promise((function(e){setTimeout((function(){const o=window.modForm.getCurrentStep(),t=o&&o.hasAttribute("data-step-name")?o.getAttribute("data-step-name"):null;t&&history.pushState(null,null,"#"+t),e()}),o)}))}else if(o){const e=/\d+/g,t=o.match(e)[0];window.location.hash="q"+t}}t.d(e,{q:function(){return n}})},3898:function(o,e,t){t.d(e,{initQuadTransform:function(){return i}});var n=t(2562);function i(){let o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!1;const t=(0,n.getQueryParamsFromSessionStorage)()||window.modUtils.getUrlParamsToObject(),i=t.hasOwnProperty("quadlink"),r=t.hasOwnProperty("tagID"),s={message:""},d=["ad","sp","fb","mt","adposition","dev","gclid","ki","sq","fb_ad_id","fb_adset_id","fb_campaign_id","placement","PartnerSourceID","sub2_id","PublisherSubID"];if(Object.keys(t).some((function(o){return window.modForm.opts.qsParams.includes(o.toUpperCase())}))){for(const o in t)window.modForm.opts.qsParams.includes(o.toUpperCase())&&void 0!==t[o]&&(window.modForm.opts.quadLinkParams[o.toUpperCase()]=t[o]);(0,n.heapIdentify)(),window.modForm.opts.phoneAssignmentConfig.showPhoneAssignmentNumber&&(0,n.getPhoneAssignmentData)(window.modForm.opts.quadLinkParams)}else{let a="",c="";r?(a=t.tagID,c="tagID"):(a=i?t.quadlink:(0,n.getDefaultQuad)(window.modForm.opts.vertical),c=i?"quadlink":"defaultQuad"),window.modForm.opts.quadLinkData[c]=a;for(const o in t)d.includes(o)&&(window.modForm.opts.quadLinkData[o]=t[o],e=!0);if(""!==a){if(window.modUtils.getLandingPage().includes("bestcompany")&&window.modUtils.getLandingPage().includes("find-a-pro")){const o=document.querySelector('input[name="quadlink"]'),t=(0,n.getDefaultQuad)(n.defaultQuadLinkValues["bestcompany.com"].findapro).replace("&default=yes;","");o&&(o.value=t),window.modForm.opts.quadLinkData.quadlink?window.modForm.opts.quadLinkData.quadlink=t:e&&(window.modForm.opts.quadLinkData.defaultQuad=t)}o?"IdlizeQueue"in window?(s.message="initQuadTransform() called on DOMContentLoaded with IdlizeQueue",window.IdlizeQueue.pushTask((()=>{(0,n.transformQuadlink)()}))):((0,n.transformQuadlink)(),s.message="initQuadTransform() called on DOMContentLoaded without IdlizeQueue"):((0,n.transformQuadlink)(),s.message="initQuadTransform() called on window.onload")}window.modUtils.heap("track",["Quad Transform",s])}}},9802:function(o,e,t){function n(o){const e={NumberOfWindows:"1",windowsNumber:"1 window"};(o||0!==Object.keys(o).length)&&("projectData"in o&&(o=o.projectData),Object.keys(o).forEach((t=>{o[t]&&e[t]&&o[t]===e[t]&&(window.modForm.opts.shouldSuppressConversionPixel=!0)})))}t.d(e,{E:function(){return n}})},1450:function(o,e,t){function n(o){const e=document.getElementById(o).getAttribute("data-ga-step-name")||o;window.modUtils.gaSend({hitType:"pageview",page:window.location.pathname+"?step="+e,title:document.title+" ("+e+")"},window.modForm.opts.gaTracker)}t.d(e,{o:function(){return n}})},7575:function(o,e,t){function n(o){window.modUtils.heap("track",["Validation Error | "+o,{}])}t.d(e,{d:function(){return n}})},5782:function(o,e,t){function n(){window.modForm.opts.form.addEventListener("mousemove",(function(){window.modForm.opts.form.classList.contains("form--disable-step-focus")||window.modForm.opts.form.classList.add("form--disable-step-focus")})),window.modForm.opts.form.querySelectorAll('fieldset label, input[type="radio"]').forEach((function(o){o.addEventListener("mouseup",(function(){window.modForm.radioButtonClickedByMouse=!0}))}))}t.d(e,{K:function(){return n}})},3014:function(o,e,t){t.r(e),t.d(e,{isBadWord:function(){return n.g},isConfigValid:function(){return i.J},isCurrentStepLast:function(){return u},isCurrentStepSecondToLast:function(){return F},isEmailValid:function(){return r.x},isFieldValid:function(){return s},isFormValid:function(){return a},isFreeEmail:function(){return f.V},isQsSiteEligibleForHrc:function(){return p},isSmallBusiness:function(){return w.w},isSupportedByCxp:function(){return g.V},isValidCompanyName:function(){return c.h},isVisible:function(){return l.z},isZipCodeValid:function(){return m},meetsMQLCriteria:function(){return h}});var n=t(4574),i=t(241),r=t(2471);function s(o,e){let t,i,s,d,a=!0,m=o.value;const u={areaCode:["000","800","888","866","911"],preCode:["555","000","911"],badNumbers:["4192933931","7137760656","6315431074","2814689701","2814827603","6318642656"]},l={name:/[^A-Za-z'\- .à-Ż]/,zip:/^\d{5}(?:-\d{4})?$/},p=/\s\s+/g,w=/^[2-9][0-9]{2}[2-9][0-9]{6}$/,f=/(.+)(?=\1{2})/,g=/(.+)(?=\1{4})/;switch(void 0!==l[e]&&(a="name"===e?a&&!l[e].test(m):a&&l[e].test(m)),e){case"email":a=a&&(0,r.x)(m,o)&&-1===m.search("rediffmail");break;case"phone":m=m.replace(/[()\s-]/g,""),i=m.substr(0,3),d=m.substr(3,3),s=!1,s=u.areaCode.includes(i)||u.preCode.includes(d)||-1!==i.indexOf("11"),a=a&&!s&&!u.badNumbers.includes(m)&&w.test(m)&&!g.test(m);break;case"address":t=o.getAttribute("data-address-min")&&parseInt(o.getAttribute("data-address-min"),10)?parseInt(o.getAttribute("data-address-min"),10):5,a=a&&m.length>=t&&!(0,n.g)(m)&&!p.test(m);break;case"name":t=o.getAttribute("data-name-min")&&parseInt(o.getAttribute("data-name-min"),10)?parseInt(o.getAttribute("data-name-min"),10):2,a=a&&m.length>=t&&!(0,n.g)(m)&&!f.test(m);break;case"companyName":a=a&&(0,c.h)(m);break;case"nonempty":t=o.getAttribute("data-nonempty-min")&&parseInt(o.getAttribute("data-nonempty-min"),10)?parseInt(o.getAttribute("data-nonempty-min"),10):1,a=!!(a&&m&&m.length>=t);break;case"regex":a=a&&new RegExp(o.getAttribute("data-regex")).test(m);break;case"ein":a=a&&(""===m||/^\d{2}-\d{7}$/.test(m));break;case"int":m=parseInt(m,10),Number.isInteger(m)||(a=!1),o.getAttribute("data-min")&&parseInt(o.getAttribute("data-min"),10)&&m<parseInt(o.getAttribute("data-min"),10)&&(a=!1),o.getAttribute("data-max")&&parseInt(o.getAttribute("data-max"),10)&&m>parseInt(o.getAttribute("data-max"),10)&&(a=!1)}return a}var d=t(2562);function a(o){let e=!0;if(o){const t=[];if(o.querySelectorAll("[data-required]").forEach((function(n){const i=n;if(e="radio"===i.getAttribute("type")||"checkbox"===i.getAttribute("type")?o.querySelectorAll('input[name="'+i.getAttribute("name")+'"]:checked').length:s(i,i.getAttribute("data-required")),!e){const o=i.name.charAt(0).toUpperCase()+i.name.slice(1);-1===t.indexOf(o)&&t.push(o),(0,d.markFieldAsInvalid)(i),e=!1}})),window.modForm.opts.steps){(0,d.getCurrentStep)().querySelectorAll("."+window.modForm.opts.fieldErrorCls).length>0&&(e=!1)}t.length&&t.forEach((function(o){(0,d.trackInvalidFieldsInHeap)(o)}))}return e}var c=t(8959);function m(o,e){const t=window.modForm.opts.getVars&&window.modForm.opts.getVars.timeout&&"production"!==window.modUtils.getEnv()?Number(window.modForm.opts.getVars.timeout):3e3,n="https://"+("production"===window.modUtils.getEnv()?"hs.leadpost.net/":"hsleadpost1.quinstage.com/"),i=document.querySelectorAll(window.modForm.zipEditInput)[0],r=window.modUtils.getUrlParamsToObject(),s=window.modForm.opts.phoneAssignmentConfig.showPhoneAssignmentNumber&&window.modForm.opts.phoneAssignmentConfig.useHsEndpoint&&!r.startStep,a=new XMLHttpRequest;let c={};a.open("GET",`${n}api/PostalCordinateInfo/${o}/get`),a.timeout=t,a.send(),a.addEventListener("load",(function(){this.response&&(c={...c,...JSON.parse(this.response)},4===this.readyState&&200===this.status?(c.success=!0,c.data=JSON.parse(this.response),c.data.zip=o,i&&"hidden"===i.style.display&&(document.querySelector(window.modForm.zipEditControlCls).style.display="block"),window.modForm.retryZipValidation=!1,"function"==typeof e&&e(c),s&&(0,d.getPhoneAssignmentData)(window.modForm.opts.quadLinkParams,!0)):"function"==typeof e&&(400===c.status?e({error:!0,message:c.error_message}):e({})))})),a.addEventListener("error",(function(){console.error("Something went wrong");const o=(0,d.getHeapSessionIdCookieData)();(0,d.initDuplicateSubmissionExperience)(o),window.modUtils.heap("track",["API Error | Showing Fallback Experience",{function:"isZipCodeValid"}])})),a.addEventListener("timeout",(function(){window.modForm.retryZipValidation=!0,window.modForm.opts.cityField[0]&&(window.modForm.opts.cityField[0].value=""),window.modForm.opts.stateField[0]&&(window.modForm.opts.stateField[0].value=""),document.querySelector(window.modForm.zipEditControlCls)&&(document.querySelector(window.modForm.zipEditControlCls).style.display="none"),e({success:!0,data:{zip:o}})}))}function u(){return window.modForm.opts.steps.length-Array.from(window.modForm.opts.steps).indexOf((0,d.getCurrentStep)())==1}var l=t(3203);function p(){return["modernize.local","modernize.com","airconditioningpros.org","americanhomewarranty.org","compareflooringprices.com","bathandshower.org","bathandshowerpros.com","emedicalalerts.com","findyourwindows.com","flooringpricer.com","foundationandbasements.com","furnacereplacementcosts.org","gutterguardcovers.com","homesecurityprices.org","homesolarrebate.com","homewarrantyplans.org","homewatersystemspros.com","homewindowprices.org","hvaccostguide.com","hvacpros.org","kitchencabinetrefacing.org","kitchensandcabinets.com","leafgutterpros.com","lifemedicalalerts.com","modernizesolar.com","modernize-solar.com","mygutterguards.com","mysolarcost.com","plumbingservicecosts.com","quotes.improvementcenter.com","roofing-survey.com","roofingcostguide.com","roofingcosts.org","roofingreplacementcost.com","securitypricer.com","sidingreplacementcost.com","solarpanelpricing.com","stairliftchairs.org","thesidingremodelconnection.com","tophottubs.org","topinsulationpros.com","treetrimmingservicepros.com","walkinbathtubs.org","walkintubforseniors.com","walkintubprices.org","windowreplacementcost.org","windowscostguide.com","windowspromos.com","windowsremodelconnection.com","windowssurvey.com"].indexOf((0,d.getDefaultSiteByDomain)())>-1}var w=t(6812),f=t(1279),g=t(1325);function h(o){return!(0,f.V)(o.email)||""!==o.websiteUrl}function F(){return modForm.opts.steps.length-Array.from(modForm.opts.steps).indexOf((0,d.getCurrentStep)())==2}},4574:function(o,e,t){function n(o){const e=["anal","anus","arse","ass","assfucker","asshole","balls","ballsack","bastard","biatch","bitch ass","bitch","bitchin","bitching","blow job","blowjob","boner","boob","booger","booob","boooob","booooob","booooooob","breast","butt fuck","butt","butthole","chink","clit","clitoris","cock sucker","cock","cocksuck","cocksucked","cocksucker","cocky","crap","cum","cumshot","cunt","damn","darn","derp","dickhead","dildo","dlck","douche","douchebag","eatme","ejaculate","fag","faggot","fat","fatass","fatty","fuck off","fuck","fucked","fucker","fuckhead","fuckyou","goddamn","haha","hahaha","hahahaha","horniest","horny","i'm","infection","jack off","jackoff","jerk off","jizz","listed","masturbate","me off","meh off","meoff","mother fucker","motherfuck","motherfucker","muff","myball","nazi","nigga","niggah","niggaz","nigger","numbnut","nutsack","nutz","orgasm","pecker","penis","pimple","piss","pissy","poop","porn","prick","prickly","pube","pussi","pussy","queef","rectum","retard","schlong","scrotum","semen","sex","sexy","shit","shithead","shitty","skank","slut","smegma","smut","snatch","spammer","sponge","spongebob","spunk","squarepant","stupid","suck","sucker","teet","testicle","thisisgay","titti","titty","troll","turd","twat","ugly","vagina","whore","xxx","your","your mother"],t=(o=(o=o.replace(/[^a-z0-9.'#-s]/i)).toLowerCase()).split(" ");for(let o=0;o<t.length;o++)for(let n=0;n<e.length;n++)if(t[o]===e[n])return!0;return!1}t.d(e,{g:function(){return n}})},241:function(o,e,t){function n(){const o=[];return null===window.modForm.opts.vertical&&o.push("Please define the vertical."),null!==window.modForm.opts.form&&window.modForm.opts.form.length||o.push("Please define the form element."),document.querySelector(window.modForm.opts.stepsSelector)||o.push("Please form steps."),!o.length||(alert(o.join("\n")),!1)}t.d(e,{J:function(){return n}})},2471:function(o,e,t){function n(o){return/^([\w+-]+(?:\.[\w+-]+)*)(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)/i.test(o)}t.d(e,{x:function(){return n}})},1279:function(o,e,t){function n(o){let e=!1;const t=["gmail","hotmail","msn","aol","yahoo","ymail","comcast","icloud"];if(o){const n=o.toLowerCase();e=t.some((o=>n.includes(o)))}return e}t.d(e,{V:function(){return n}})},6812:function(o,e,t){function n(o){return o?["I'm a sales rep","$0 - $500K","$500K - $1M"].indexOf(o)>-1:(console.error("No annual revenue provided"),!1)}t.d(e,{w:function(){return n}})},1325:function(o,e,t){function n(o){return!(["Solar","Water Filtration"].indexOf(o.primaryProjectClass)>-1)}t.d(e,{V:function(){return n}})},8959:function(o,e,t){function n(o){const e=o.match(".*[a-zA-Z]+.*"),t=o&&o.length>=1;return!(!e||["na","n/a"].includes(o.toLowerCase())||!t)}t.d(e,{h:function(){return n}})},3203:function(o,e,t){function n(o){return o&&o.offsetHeight>0&&o.offsetWidth>0}t.d(e,{z:function(){return n}})}},e={};function t(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return o[n](r,r.exports,t),r.exports}t.d=function(o,e){for(var n in e)t.o(e,n)&&!t.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:e[n]})},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var n={};t.r(n),t.d(n,{modForm:function(){return c}});var i={};t.r(i),t.d(i,{init:function(){return a}});var r=t(8352),s=t(2562),d=t(3014);function a(o){window.modForm.opts={...window.modForm.opts,...o},window.modForm.opts.landingPageNoQuery=window.modForm.opts.landingPage.split("?")[0],window.isNonTyp=!0,(0,d.isConfigValid)()&&(window.modForm.opts.steps=window.modForm.opts.form.querySelectorAll(window.modForm.opts.stepsSelector),(0,s.initFormElements)(),window.modForm.opts.getVars=window.modUtils.getUrlParamsToObject(window.modForm.opts.landingPage),(0,s.initFormDynamicContent)(),(0,s.addRequiredFieldsToContractorForm)(),window.modForm.opts.prepopulateUserInfo&&(window.modForm.userObj=window.modUtils.getCookie("userInfo")?JSON.parse(window.modUtils.getCookie("userInfo")):{}),(0,s.prepopFormFromURL)(),(0,s.addRegressionTestingAttributes)(),(0,s.generateSession)(),"contractor"===window.modForm.opts.vertical&&((0,s.initContractorForm)(),window.modForm.opts.useContractorApi=!0),(0,s.initNumericOnlyFields)(window.modForm.opts.maskedPhoneFields),(0,s.maskPhoneFields)(window.modForm.opts.maskedPhoneFields),(0,s.maskEinFields)(window.modForm.opts.maskedEinFields),(0,s.initNumericOnlyFields)(window.modForm.opts.numericsOnlyFields),window.modForm.opts.form.addEventListener("change",(function(o){(0,s.unmarkFieldAsInvalid)(o.target)})),window.modForm.opts.useContractorApi?(0,s.initContractorFormSubmit)():(window.modForm.opts.form.addEventListener("click",(function(){(0,s.populateTCPAField)(),window.innerWidth<768&&(0,s.updateTabIndexes)()}),{once:!0}),(0,s.initFormSubmit)()),(0,s.initLeadTokenScriptsTriggers)(),window.modForm.opts.prepopulateUserInfo&&(0,s.initUserInformationStorage)(),window.modForm.opts.useAutofill&&(0,s.initAutofill)(),window.modForm.opts.hashStepTracking&&"contractor"!==window.modForm.opts.vertical&&(0,s.watchHashChange)())}window.isNewContractorForm=!0;const c={...r._t,...r.p7,...i,...s,...d};var m=window;for(var u in n)m[u]=n[u];n.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})}();
|
|
2
|
+
//# sourceMappingURL=contractor.min.js.map
|