PageSourceSearch

https://www.trane.com/_next/static/chunks/9225-4747c504aaa0b0ea.js

js trane.com collected 2026-09-24 08:54:55 UTC 46,834 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9225],{89225:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ec}});var i=n(85893),a=n(67294),s=n(47013),o=n(52738),r=n(32752),l=n(96576),c=e=>{let{children:t}=e;return(0,i.jsx)("p",{className:"mb-8 mt-0 text-balance font-Inter text-sm font-500 text-dim-gray lg:mb-10 lg:text-20 lg:leading-6.5","data-testid":"SRTSubtitle",children:t})},d=e=>{let{children:t}=e;return(0,i.jsx)("h3",{className:"mb-1 mt-0 text-balance font-Inter text-24 font-bold leading-7.5 lg:text-4xl lg:leading-12","data-testid":"SRTTitle",children:t})},u=n(11163),m=n(35614),h=n(147),f=n(69496),p=n(72095),v=n(83884),g=n(33919),y=n(41207),x=n(77401);let b=async(e,t,n,i)=>{try{let a=(await (0,p.d)(e.homeAddress.zip||"",!1)).dealers[0];if(!a)throw Error("No dealers found in your area. Please check your zip code.");let s="".concat(window.location.origin).concat(window.location.pathname).concat(t),o=(0,h.Z)(JSON.stringify(a.data.companyID),s),r=(0,g.Z)("PRODUCTION"),l=(0,x.Z)({...e.homeAddress,firstName:e.contactInfo.firstName,lastName:e.contactInfo.lastName,email:e.contactInfo.email,phone:e.contactInfo.phone,comments:o},JSON.stringify(a.data.companyID),{},i),c=await fetch("https://".concat("dev"===r?"stg":r,".irapis.com/forms"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),d=await c.json();if(!1===d.success)throw Error(d.error);let u=d.id;n("leadId",u),n("dealerId",JSON.stringify(a.data.companyID));try{await (0,f.z)({leadID:u,homeowner:{firstName:e.contactInfo.firstName,lastName:e.contactInfo.lastName,email:e.contactInfo.email},dealer:{companyID:a.data.companyID||0,name:a.data.name||"",phone:a.data.phone1||""}})}catch(e){(0,y.N)(e instanceof Error?e:Error("System rec email failed to send"),{leadId:u})}(0,v.p)({event:"dealer_form_success",formId:"contact-your-local-dealer",zipcode:e.homeAddress.zip||void 0,vwo:{experience_number:"151",variant:"flow4"}})}catch(e){throw console.error("Error during submission:",e),Error(e instanceof Error?e.message:"An unexpected error occurred. Please check your information and try again.")}},w=e=>({"0 - 1,200":"2.0","1,200 - 1,500":"2.5","1,500 - 1,800":"3.0","1,800 - 2,100":"3.5","2,100 - 2,400":"4.0","2,400 - 2,700":"4.0","2,700 - 3,000":"5.0","3,000+":"5.0"})[e]||"2.0",S=(e,t,n)=>{var i,a,s;let o=w(null!==(s=null==e?void 0:e.homeSize)&&void 0!==s?s:""),r=new URLSearchParams;r.set("tonnage",o),t&&r.set("zipCode",t),n&&(n=(n=n.toLowerCase()).replaceAll(" ","_"),r.set("location",n));let l=null==e?void 0:null===(i=e.buyingFactors)||void 0===i?void 0:i.includes("Eco-friendly"),c=null==e?void 0:null===(a=e.buyingFactors)||void 0===a?void 0:a.includes("Lowest cost");return l&&!c&&r.set("eco","true"),"results/?".concat(r.toString())};var _=n(1604);let j=_.z.object({firstName:_.z.string().min(1,"First name is required"),lastName:_.z.string().min(1,"Last name is required"),email:_.z.string().min(1).email("Invalid email address"),phone:_.z.string().length(10,"Phone number must be exactly 10 characters"),callTime:_.z.string()}),C=e=>j.safeParse(e),k=_.z.object({addressLine1:_.z.string().min(1,"Address line 1 is required"),city:_.z.string().min(1,"City is required"),state:_.z.string().min(2,"State is required"),zip:_.z.string().min(5,"Zip code must be at least 5 characters").regex(/^\d{5}(-\d{4})?$/,"Zip code must be a valid format")}),N=e=>k.safeParse(e);var z=n(72367),I=n(70855),F=n(97631),R=e=>{let t=e.trim().toLowerCase(),n=F.Z.find(e=>e.name.toLowerCase()===t);return n?n.abbreviation:e};let A=(0,a.createContext)(void 0),E=e=>{let{children:t,flowVariant:n="default"}=e,s=(0,u.useRouter)(),[,o]=(0,m.ZP)(),[r,l]=(0,a.useState)({homeSize:"",buyingFactors:[],homeAddress:{addressLine1:"",city:"",state:"",zip:""},contactInfo:{firstName:"",lastName:"",email:"",phone:"",callTime:""},tcpaText:'By pressing the "Continue" button, I consent to receive a phone call about products and services from a dealer at the phone number(s) provided. I understand these calls may be generated using automated technology and my consent does not imply or require that a purchase be made.'}),[c,d]=(0,a.useState)(!1),[h,f]=(0,a.useState)(!0),[p,v]=(0,a.useState)(""),[g,y]=(0,a.useState)(!1),[x,w]=(0,a.useState)({}),j=(0,a.useCallback)(()=>S(r,x.zip,x.region),[r,x]);(0,a.useEffect)(()=>{let e=sessionStorage.getItem("systemRecFormData");if(e)try{l(JSON.parse(e))}catch(e){console.error("Error parsing saved form data:",e)}},[]);let k=(0,a.useCallback)(async e=>{if(!_.z.string().min(5).safeParse(e).success)return d(!1),w({}),{inServiceArea:!1,location:null};let t=await (0,z.t)(e);if(!(null==t?void 0:t.location))return d(!1),w({}),{inServiceArea:!1,location:null};let n=t.location.region.toString();t.location.region.length>2&&(n=R(t.location.region));let i=I.v.includes(n);return d(i),w({zip:e,region:t.location.region}),{inServiceArea:i,location:t.location}},[]),F=(0,a.useCallback)(e=>{var t,n;f(null!==(n=({homeSize:!!(null==r?void 0:r.homeSize),buyingFactors:(null==r?void 0:null===(t=r.buyingFactors)||void 0===t?void 0:t.length)>0,homeAddress:N(r.homeAddress).success,contactInfo:C(r.contactInfo).success})[e])&&void 0!==n&&n)},[r]),E=(0,a.useCallback)(e=>{v(""),l(t=>{let n={...t,...e};return sessionStorage.setItem("systemRecFormData",JSON.stringify(n)),n})},[]),T=async e=>{e.preventDefault(),y(!0);try{let{inServiceArea:e}=await k(r.homeAddress.zip);if(!e){s.push("/residential/en/dealer-locator");return}let t=j();await b(r,t,o,r.tcpaText);let n=localStorage.getItem("zipcode"),i=r.homeAddress.zip;n!==i&&localStorage.setItem("zipcode",i),s.push("".concat(s.asPath).concat(t))}catch(e){v(e instanceof Error?e.message.charAt(0).toUpperCase()+e.message.slice(1):"An unexpected error occurred. Please check your information and try again."),y(!1)}};return(0,i.jsx)(A.Provider,{value:{formData:r,setFormData:E,submitForm:T,canContinue:h,setCanContinue:f,updateContinue:F,errorMessage:p,isSubmitting:g,flowVariant:n,isServiceArea:c,checkServiceArea:k},children:t})},T=()=>{let e=(0,a.useContext)(A);if(!e)throw Error("useFormContext must be used within a FormProvider");return e};var Z=n(98388),L=e=>{let{label:t,type:n,checked:a,description:s,icon:o,onChange:r,testId:l="SRTWizardBox",name:c,value:d,id:u,className:m}=e;return(0,i.jsxs)("div",{"data-testid":l,className:(0,Z.dV)("relative",m),children:[(0,i.jsx)("input",{id:u,type:n,name:c,value:d,className:"peer sr-only",checked:a,onChange:r}),(0,i.jsxs)("label",{htmlFor:u,className:(0,Z.dV)("flex h-full flex-row items-center gap-3 rounded-xl border-2 bg-white p-4 md:flex-col md:items-start md:justify-center md:p-6 lg:min-h-36","hover:cursor-pointer hover:border-2 hover:border-black peer-checked:border-black peer-focus:border-sky-600","peer-focus:peer-checked:border-black peer-focus:peer-checked:outline peer-focus:peer-checked:outline-black/40"),children:[o&&(0,i.jsx)("div",{"aria-hidden":"true",className:"",children:o}),(0,i.jsxs)("p",{className:(0,Z.dV)("m-0 font-Inter text-sm text-black lg:text-base"),children:[(0,i.jsx)("span",{className:(0,Z.dV)("block pb-1 text-16 font-600 md:text-20"),children:t}),s]})]})]})},M=n(93967),P=n.n(M),D=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:P()("inline-block",t),"aria-label":"Wallet","data-testid":"SRTIconWallet",...n,children:(0,i.jsx)("path",{d:"M7 5.5h18c.797 0 1.5.703 1.5 1.5 0 .844-.703 1.5-1.5 1.5H7.75c-.422 0-.75.375-.75.75 0 .422.328.75.75.75H25c1.64 0 3 1.36 3 3v10.5c0 1.688-1.36 3-3 3H7c-1.688 0-3-1.313-3-3v-15c0-1.64 1.313-3 3-3Zm16.5 11.25c-.844 0-1.5.703-1.5 1.5 0 .844.656 1.5 1.5 1.5.797 0 1.5-.656 1.5-1.5 0-.797-.703-1.5-1.5-1.5Z"})})},B=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:P()("inline-block",t),"aria-label":"Cogs","data-testid":"SRTIconCogs",...n,children:(0,i.jsx)("path",{d:"m15.438 10.375-1.032.89
1c.047.329.047.657.047.985 0 .328 0 .656-.047.984l1.031.938c.329.281.47.75.282 1.172a5.611 5.611 0 0 1-.375.75l-.14.234-.423.703a1.1 1.1 0 0 1-1.172.328l-1.312-.468a5.746 5.746 0 0 1-1.735.984l-.28 1.36c-.095.468-.423.796-.845.843-.328.047-.656.047-.984.047-.281 0-.61 0-.937-.047a.948.948 0 0 1-.844-.844l-.328-1.359a6.12 6.12 0 0 1-1.688-.984l-1.312.468a1.1 1.1 0 0 1-1.172-.328c-.14-.234-.328-.468-.469-.703l-.14-.234c-.094-.235-.235-.516-.329-.75a1.006 1.006 0 0 1 .282-1.172l1.03-.938c-.046-.28-.046-.609-.046-.984 0-.328 0-.656.047-.938l-1.031-.937c-.329-.328-.47-.75-.282-1.172.094-.281.235-.515.329-.75l.14-.234c.188-.235.328-.469.469-.703.281-.329.75-.47 1.172-.329l1.312.422a6.831 6.831 0 0 1 1.735-.937l.28-1.406c.095-.422.423-.75.845-.797.328-.047.609-.094.937-.094H8.5c.328 0 .61.047.938.094.421.047.796.375.89.843l.281 1.36c.61.187 1.172.562 1.688.937l1.312-.421c.422-.141.891 0 1.172.328.14.234.328.468.469.703l.14.234c.094.235.235.469.329.75.187.422.047.844-.281 1.172ZM6.25 12.25c0 .844.422 1.547 1.125 1.969.656.422 1.547.422 2.25 0 .656-.422 1.125-1.125 1.125-1.969 0-.797-.469-1.5-1.125-1.922-.703-.422-1.594-.422-2.25 0-.703.422-1.125 1.125-1.125 1.922Zm18.375 15.234-.89-1.03c-.329.046-.657.046-.985.046-.328 0-.656 0-.984-.047l-.938 1.031c-.281.328-.75.47-1.172.282a5.599 5.599 0 0 1-.75-.375l-.234-.141a6.083 6.083 0 0 1-.703-.469c-.328-.234-.469-.703-.328-1.125l.468-1.312a5.747 5.747 0 0 1-.984-1.735l-1.36-.28c-.468-.095-.796-.423-.843-.845-.047-.328-.047-.656-.047-.984 0-.328 0-.61.047-.938.047-.421.375-.796.844-.89l1.359-.281c.234-.61.563-1.172.984-1.688l-.468-1.312a1.1 1.1 0 0 1 .328-1.172c.234-.14.468-.328.703-.469l.234-.14c.235-.094.516-.235.75-.329.422-.187.89-.047 1.172.281l.938 1.032c.28-.047.609-.047.984-.047.328 0 .656 0 .938.047l.937-1.031c.328-.329.797-.47 1.172-.282.281.094.515.235.75.328l.234.141c.235.188.469.328.703.469a1.1 1.1 0 0 1 .328 1.172l-.421 1.312c.375.516.703 1.078.937 1.688l1.406.328c.422.093.75.422.797.843.047.329.094.657.094.985 0 .281-.047.61-.094.937-.047.422-.375.797-.797.844l-1.406.328c-.187.61-.562 1.172-.937 1.688l.422 1.312c.14.422 0 .89-.329 1.172l-.703.422-.234.188c-.235.093-.469.234-.75.328-.422.187-.844.047-1.172-.282ZM22.75 18.25c-.844 0-1.547.469-1.969 1.125-.422.703-.422 1.594 0 2.25.422.703 1.125 1.125 1.969 1.125.797 0 1.5-.422 1.922-1.125.422-.656.422-1.547 0-2.25-.422-.656-1.125-1.125-1.922-1.125Z"})})},O=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:P()("inline-block",t),"aria-label":"Money Bag","data-testid":"SRTIconMoneyBag",...n,children:(0,i.jsx)("path",{d:"M19 8.5h-6l-2.25-3.328c-.328-.469.047-1.172.61-1.172h9.234c.562 0 .937.703.61 1.172L19 8.5ZM13 10h6c.14.14.375.281.61.422C22.233 12.109 28 15.766 28 23.5c0 2.484-2.016 4.5-4.5 4.5h-15A4.501 4.501 0 0 1 4 23.5c0-7.734 5.719-11.39 8.39-13.078.188-.14.422-.281.61-.422Zm3.938 4.125a.94.94 0 0 0-.938-.938.94.94 0 0 0-.938.938v.656a4.3 4.3 0 0 0-1.078.422c-.656.375-1.218 1.078-1.171 2.063 0 .937.562 1.547 1.124 1.922.516.28 1.172.468 1.688.656h.094c.562.187.984.328 1.312.515.235.141.235.235.235.375.047.235-.047.375-.235.47-.234.187-.61.233-1.031.233-.516 0-.984-.187-1.64-.375-.094-.046-.235-.093-.329-.14-.515-.14-1.031.094-1.172.61a.905.905 0 0 0 .563 1.171c.094.047.187.047.281.094.422.14.844.281 1.313.422v.656a.94.94 0 0 0 .937.938.94.94 0 0 0 .938-.938v-.656a2.77 2.77 0 0 0 1.125-.422c.656-.375 1.172-1.125 1.125-2.11 0-.937-.516-1.546-1.125-1.921-.563-.328-1.22-.563-1.735-.703h-.047c-.609-.188-1.03-.329-1.312-.516-.235-.14-.281-.235-.281-.328 0-.14.093-.282.328-.422.234-.14.61-.235.984-.235.469 0 .938.094 1.453.235a.937.937 0 0 0 1.172-.656c.14-.516-.187-.985-.656-1.125-.328-.094-.656-.188-.985-.235v-.656Z"})})},q=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:P()("inline-block",t),"aria-label":"Clock","data-testid":"SRTIconClock",...n,children:(0,i.jsx)("path",{d:"M16 4c4.266 0 8.203 2.297 10.36 6 2.156 3.75 2.156 8.297 0 12A11.91 11.91 0 0 1 16 28c-4.313 0-8.25-2.25-10.406-6-2.157-3.703-2.157-8.25 0-12C7.75 6.297 11.687 4 16 4Zm-1.125 5.625V16c0 .375.188.75.469.938l4.5 3c.51
15.375 1.218.234 1.593-.282.329-.515.188-1.218-.328-1.593l-3.984-2.625V9.625A1.14 1.14 0 0 0 16 8.5a1.11 1.11 0 0 0-1.125 1.125Z"})})},H=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:P()("inline-block",t),"aria-label":"Shield","data-testid":"SRTIconShield",...n,children:(0,i.jsx)("path",{d:"m16.61 4.14 8.812 3.75c1.031.47 1.828 1.454 1.828 2.673-.047 4.687-1.969 13.171-10.031 17.062a2.884 2.884 0 0 1-2.485 0C6.672 23.735 4.75 15.25 4.75 10.562c-.047-1.218.75-2.203 1.781-2.671l8.813-3.75a1.497 1.497 0 0 1 1.265 0Zm4.687 9.657h-.047c.469-.422.469-1.125 0-1.594a1.103 1.103 0 0 0-1.547 0l-5.203 5.25-2.203-2.203c-.469-.469-1.172-.469-1.594 0a1.027 1.027 0 0 0 0 1.547l3 3c.422.469 1.125.469 1.594 0l6-6Z"})})},G=n(46157),J=e=>{var t,n,a,s,o,r,l,u,m,h,f,p;let{insideModalChanged:v,setInsideModalChanged:g}=e,{formData:y,setFormData:x,canContinue:b,setCanContinue:w}=T(),S=e=>{var t,n;if(null==y?void 0:null===(t=y.buyingFactors)||void 0===t?void 0:t.includes(e.target.value)){let t=y.buyingFactors.filter(t=>t!==e.target.value);x({buyingFactors:t}),t.length>0&&!b&&w(!0),0===t.length&&w(!1)}else x({buyingFactors:[...null!==(n=null==y?void 0:y.buyingFactors)&&void 0!==n?n:[],e.target.value]}),w(!0);!1===v&&g&&g(!0)};return(0,i.jsxs)("div",{children:[(0,i.jsx)(d,{children:"Which of these are most important to you?"}),(0,i.jsx)(c,{children:"Select all that apply to you"}),(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-4 px-1 md:grid-cols-2 md:gap-6",children:[(0,i.jsx)(L,{type:"checkbox",label:"Lowest cost",description:"Budget friendly",name:"Lowest cost",id:"lowest-cost",icon:(0,i.jsx)(D,{fill:"black",height:32,width:32}),value:"Lowest cost",onChange:S,checked:null!==(l=null==y?void 0:null===(t=y.buyingFactors)||void 0===t?void 0:t.includes("Lowest cost"))&&void 0!==l&&l}),(0,i.jsx)(L,{type:"checkbox",label:"Efficiency",description:"System efficiency",name:"Efficiency",id:"efficiency",icon:(0,i.jsx)(B,{fill:"black",height:32,width:32}),value:"Efficiency",onChange:S,checked:null!==(u=null==y?void 0:null===(n=y.buyingFactors)||void 0===n?void 0:n.includes("Efficiency"))&&void 0!==u&&u}),(0,i.jsx)(L,{type:"checkbox",label:"Financing",description:"Monthly payments",name:"Financing",id:"financing",icon:(0,i.jsx)(O,{fill:"black",height:32,width:32}),value:"Financing",onChange:S,checked:null!==(m=null==y?void 0:null===(a=y.buyingFactors)||void 0===a?void 0:a.includes("Financing"))&&void 0!==m&&m}),(0,i.jsx)(L,{type:"checkbox",label:"Availability",description:"First system available",name:"Availability",id:"availability",icon:(0,i.jsx)(q,{fill:"black",height:32,width:32}),value:"Availability",onChange:S,checked:null!==(h=null==y?void 0:null===(s=y.buyingFactors)||void 0===s?void 0:s.includes("Availability"))&&void 0!==h&&h}),(0,i.jsx)(L,{type:"checkbox",label:"Reliability",description:"Made to last",name:"Reliability",id:"reliability",icon:(0,i.jsx)(H,{fill:"black",height:32,width:32}),value:"Reliability",onChange:S,checked:null!==(f=null==y?void 0:null===(o=y.buyingFactors)||void 0===o?void 0:o.includes("Reliability"))&&void 0!==f&&f}),(0,i.jsx)(L,{type:"checkbox",label:"Eco-friendly",description:"Green systems",name:"Eco-friendly",id:"eco-friendly",icon:(0,i.jsx)(G.y,{fill:"black",height:32,width:32}),value:"Eco-friendly",onChange:S,checked:null!==(p=null==y?void 0:null===(r=y.buyingFactors)||void 0===r?void 0:r.includes("Eco-friendly"))&&void 0!==p&&p})]})]})},U=n(48170),V=n.n(U),W=e=>{let{value:t,onChange:n,min:a,max:s,step:o,id:r="input-slider",label:l}=e;return(0,i.jsxs)("div",{className:"flex h-max justify-center","data-testid":"SRTInputSlider",children:[(0,i.jsx)("label",{htmlFor:r,className:"sr-only",children:l}),(0,i.jsx)("input",{id:r,type:"range",min:a,max:s,step:o,value:t,onChange:n,className:"".concat(V().traneSlider," flex h-4 w-full cursor-pointer appearance-none bg-none")})]})},K=()=>{var e;let{formData:t,setFormData:n,setCanContinue:s}=T(),[o,r]=(0,a.useState)("1200"),l=(0,a.useMemo)(()=>({1200:"0 - 1,200",1500:"1,200 - 1,500",1800:"1,500 - 1,800",2100:"1,800 - 2,100",2400:"2,100 - 2,400",2700:"2,400 - 2,700",3e3:"2,700 - 3,000",3300:"3,000+"}),[]);return(0,a.useEffect)(()=>
1{if(null==t?void 0:t.homeSize){var e;r(null!==(e=Object.keys(l).find(e=>l[e]===t.homeSize))&&void 0!==e?e:"1200")}},[null==t?void 0:t.homeSize,l]),(null==t?void 0:t.homeSize)||(n({homeSize:l["1200"]}),s(!0)),(0,i.jsxs)("div",{children:[(0,i.jsx)(d,{children:"What size is your home?"}),(0,i.jsx)(c,{children:"This helps us properly size your system"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-center font-Inter text-20 font-700",children:null!==(e=null==t?void 0:t.homeSize)&&void 0!==e?e:"0 - 1,200"}),(0,i.jsx)(W,{id:"home-size-slider",label:"How big is your home?",value:o,onChange:e=>{let t=e.target.value;r(t),s(!!t),n({homeSize:l[t]})},min:"1200",max:"3300",step:"300"}),(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("label",{htmlFor:"home-size-slider",className:"font-Inter text-12 text-dim-gray",children:"Square feet"}),(0,i.jsx)("span",{className:"font-Inter text-12 text-dim-gray",children:"3,000+"})]})]})]})},Y=n(97829),X=n(2945),$=e=>{let{insideModalChanged:t,setInsideModalChanged:n}=e,{formData:a,setFormData:s,setCanContinue:o}=T(),[,r]=(0,X.Z)(),l=e=>{let i=e.target.value;"phone"===e.target.name&&((i=i.replace(/\D/g,"")).length>10&&i.startsWith("1")&&(i=i.substring(1)),i=i.substring(0,10));let l={...a.contactInfo,[e.target.name]:i};s({contactInfo:l}),"callTime"!==e.target.name&&r(e.target.name,i),o(C(l).success),!1===t&&n&&n(!0)};return(0,i.jsxs)("div",{children:[(0,i.jsx)(d,{children:"Enter your contact info"}),(0,i.jsx)(c,{children:"To view your recommendation, please provide your contact information. From here, your local pro will reach out to schedule a home consultation. You won't be signed up for anything."}),(0,i.jsxs)("div",{className:"mx-auto grid w-full max-w-411 gap-4",children:[(0,i.jsx)(Y.o,{id:"firstName",label:"First name",name:"firstName",onChange:l,required:!0,inputClassName:"w-full text-slate-500",autoComplete:"given-name",value:a.contactInfo.firstName}),(0,i.jsx)(Y.o,{id:"lastName",label:"Last name",name:"lastName",onChange:l,required:!0,inputClassName:"w-full text-slate-500",autoComplete:"family-name",value:a.contactInfo.lastName}),(0,i.jsx)(Y.o,{id:"email",label:"Email",name:"email",onChange:l,required:!0,inputClassName:"w-full text-slate-500",autoComplete:"email",value:a.contactInfo.email}),(0,i.jsx)(Y.o,{id:"phone",label:"Phone number",name:"phone",onChange:l,required:!0,inputClassName:"w-full text-slate-500",autoComplete:"tel",value:a.contactInfo.phone,minLength:10}),(0,i.jsx)(Y.o,{id:"call-time",label:"Best time to call",name:"callTime",onChange:l,inputClassName:"w-full text-slate-500 mb-4",autoComplete:"off",value:a.contactInfo.callTime})]}),(0,i.jsx)("p",{className:"text-10 font-400 leading-4 text-dim-gray",children:a.tcpaText})]})},Q=n(71703),ee=n(1445),et=e=>{let{insideModalChanged:t,setInsideModalChanged:n}=e,{formData:s,setFormData:o,setCanContinue:r,checkServiceArea:l}=T(),[,u]=(0,X.Z)(),[m,h]=(0,a.useState)(s.homeAddress),{handleChange:f,setInputRef:p,GoogleMapsScript:v,addressInputKey:g}=(0,ee.Z)({externalSetState:h}),y=(0,a.useCallback)(e=>N(e).success,[]);(0,a.useEffect)(()=>{(m.addressLine1!==s.homeAddress.addressLine1||m.city!==s.homeAddress.city||m.state!==s.homeAddress.state||m.zip!==s.homeAddress.zip)&&(l(m.zip||""),o({homeAddress:m}),u("addressLine1",m.addressLine1||""),u("city",m.city||""),u("state",m.state||""),u("zip",m.zip||""),!1===t&&n&&n(!0),r(y(m)))},[m,s.homeAddress,o,u,l,t,n,y,r]);let x=e=>{f(e)};return(0,i.jsxs)("div",{children:[(0,i.jsx)(v,{}),(0,i.jsx)(d,{children:"Enter your home address"}),(0,i.jsx)(c,{children:"This helps us provide pricing for your area"}),(0,i.jsxs)("div",{className:"mx-auto w-full max-w-411",children:[(0,i.jsx)("div",{ref:e=>{let t=null==e?void 0:e.querySelector("input");t&&p(t)},children:(0,i.jsx)(Y.o,{id:"address",label:"Street Address",name:"addressLine1",value:m.addressLine1,onChange:x,inputClassName:"w-full text-slate-500 mb-6",autoComplete:"address-line1"})},g),(0,i.jsx)(Y.o,{id:"city",label:"City",name:"city",value:m.city,onChange:x,inputClassName:"w-full text-slate-500 mb-6",autoComplete:"address-level2"}),(0,i.jsxs)(Q.Z,{id:"state",label:"State",name:"state",value:m.state,onChange:x,selectClassName:"w-full text-slate-500 mb-6",children:[(0,i.jsx)("option",{value:"",disabled:!0,children:"Select a state"}),F.Z.map(e=>(0,i.jsx)("option",{value:e.abbreviation,children:e.name},e.abbreviation))]}),(0,i.jsx)(Y.o,{id:"zip",label:"Zipcode",name:"zip",value:m.zip,autoComplete:"postal-code",onChange:x,fieldsetClassName:"grid",inputClassName:"w-full text-slate-500 mb-6"})]})]})},en=n(14889),ei=n(25014);let ea={default:["homeSize","buyingFactors","homeAddress","contactInfo"]};var es=n(16829),eo=e=>{let{setInsideModalChanged:t,insideModalChanged:n}=e,[s,o]=(0,a.useState)("homeSize"),[r,l]=(0,a.useState)(0),{formData:c,canContinue:d,setCanContinue:u,submitForm:m,updateContinue:h,errorMessage:f,isSubmitting:p,flowVariant:v,isServiceArea:g}=T(),y=ea[v].length;0!==r||d||u(!0);let x=e=>{if(window.dataLayer){let t={homeSize:{event:"sys_home_size",sys_selection:c.homeSize,vwo:{experience_number:"151",variant:v}},buyingFactors:{event:"sys_buying_factors",sys_selection:c.buyingFactors,vwo:{experience_number:"151",variant:v}},homeAddress:{event:"sys_home_address",sys_selection:c.homeAddress,vwo:{experience_number:"151",variant:v}},contactInfo:{event:"sys_contact_info",sys_selection:c.contactInfo,vwo:{experience_number:"151",variant:v}},isServiceArea:{event:"sys_service_area",sys_selection:g,vwo:{experience_number:"151",variant:v}}}[ea[v][e]];t&&(Array.isArray(t.sys_selection)?window.dataLayer.push({...t,sys_selection:[...t.sys_selection]}):window.dataLayer.push(t))}};return(0,i.jsxs)("form",{id:"system-recommendation-flow",onSubmit:e=>{e.preventDefault(),x(r),m(e)}
1,"data-testid":"SRTSystemRecommendationFlow",children:[(0,i.jsxs)("div",{className:"h-[70vh] overflow-y-auto text-left",children:["homeSize"===s&&(0,i.jsx)(K,{}),"buyingFactors"===s&&(0,i.jsx)(J,{insideModalChanged:n,setInsideModalChanged:t}),"homeAddress"===s&&(0,i.jsx)(et,{insideModalChanged:n,setInsideModalChanged:t}),"contactInfo"===s&&(0,i.jsx)($,{insideModalChanged:n,setInsideModalChanged:t})]}),""!==f&&(0,i.jsx)("div",{className:"-mb-5 text-right text-red-700",children:f}),(0,i.jsxs)("div",{className:"sticky bottom-8 grid grid-cols-2 bg-gradient-to-t from-white from-60% pt-16 md:py-10",children:[0!==r&&(0,i.jsx)(en.Z,{id:"system-recommendation-back-button",onClick:function(e){if(e.preventDefault(),r<1)return;let i=r-1;l(i),o(ea[v][i]),h(ea[v][i]),!1===n&&t&&t(!0)},variant:"secondary",position:"left",className:"w-max","data-position":"body","data-location":"popup","data-action":"form entry","data-text":"Back","data-type":"button","data-text-grouping":"System Recommendation Flow",children:"Back"}),(0,i.jsx)(en.Z,{id:r<y-1?"system-recommendation-continue-button":"system-recommendation-submit-button",type:r<y-1?"button":"submit",onClick:r<y-1?function(e){if(e.preventDefault(),x(r),r>=y-1)return;let i=r+1;l(i),o(ea[v][i]),h(ea[v][i]),!1===n&&t&&t(!0)}:void 0,disabled:!d||p,position:"right",className:(0,es.Z)("col-start-2 w-max place-self-end",d?"flex":"hidden"),"data-position":"body","data-location":"popup","data-action":"form entry","data-text":"Continue","data-type":"button","data-text-grouping":"System Recommendation Flow",children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ei.Z,{smallVersion:!0,noText:!0}),"Submitting..."]}):"Continue"}),(0,i.jsxs)("span",{className:"col-start-2 row-start-2 mt-2 flex justify-end",children:["Step ",r+1," / ",y]})]})]})},er=n(82192),el=n(9545);function ec(e){var t,n,c,d,u,m,h;let[f,p]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!0),{trackingPosition:x,buttonClass:b,button_variant:w="",button_size:S,buttonTitle:_,modal_design:j,modalTitle:C,disableBase:k,dataTrackingProps:N,data_attributes_data_position:z,data_attributes_data_location:I,data_attributes_data_action:F,data_attributes_data_text_grouping:R,data_attributes_data_text:A,data_attributes_data_type:T}=null!==(m=null===(t=e.attributes)||void 0===t?void 0:t.data)&&void 0!==m?m:{},Z=(0,a.useMemo)(()=>({blocks:e.innerBlocks}),[e.innerBlocks]),[L]=(0,X.Z)(),{dealers:M}=(0,el.Z)(L.zip,L.mtaAid,L.mtaSid),P=null!==(h=null===(c=M.at(0))||void 0===c?void 0:null===(n=c.data)||void 0===n?void 0:n.companyID)&&void 0!==h?h:0,D=null===(u=M.at(0))||void 0===u?void 0:null===(d=u.data)||void 0===d?void 0:d.name;return(0,i.jsxs)("div",{children:["normal"===j&&(0,i.jsx)(o.Z,{onClose:()=>p(!1),show:f,title:C,customDimensions:"px-4 pb-14 rounded-lg sm:px-16",modalWidth:"w-[95vw] sm:w-max",modalHeight:"h-max",children:(0,i.jsx)("div",{children:(0,i.jsx)(r.Z,{...Z})})}),"bottom"===j&&(0,i.jsx)(l.Z,{show:f,onClose:()=>p(!1),title:C,children:(0,i.jsx)(r.Z,{...Z})}),"system"===j&&(0,i.jsx)(l.Z,{show:f,onClose:()=>p(!1),title:C||"Find Your Perfect System",insideModalChanged:g,setInsideModalChanged:y,systemRecommendation:!0,children:(0,i.jsx)(E,{children:(0,i.jsx)(eo,{insideModalChanged:g,setInsideModalChanged:y})})}),"elf"===j&&(0,i.jsx)(er.Z,{title:"Let us match you with a local pro",show:f,onClose:()=>p(!1),companyId:P,gtmDealerInformation:{dealerName:D,ctaButtonText:"Contact a Local Pro"}}),(0,i.jsx)("div",{children:(0,i.jsx)(s.Z,{trackingPosition:x,disableBase:!0===k,addClass:(0,es.Z)(b,{"font-bold":"elf"===j}),[w]:!0,size:S,onClick:()=>{p(!0),"elf"===j&&(0,v.p)({event:"dealer_form_open",formId:"contact-your-local-dealer-enhanced",dealerName:D,dealerId:P,dataText:"Contact a Local Pro"})},dataTrackingProps:null!=N?N:{position:z,location:I,action:F,textGrouping:R,text:A,type:T},children:_})})]})}},85633:function(e,t,n){"use strict";var i=n(85893),a=n(40645),s=n.n(a),o=n(4298),r=n.n(o);t.Z=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r(),{src:"https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyC6moVjL3cGFX4KPeCqxNrGvLhFbMg2mJY","&libraries=places"),strategy:"lazyOnload",onError:e=>{console.error("Failed to load Google Maps script:",e)}}),(0,i.jsx)(s(),{id:"585f46826ef3bd87",children:".pac-container{z-index:10000!important;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 4px 6px -1px rgba(0,0,0,.1);-moz-box-shadow:0 4px 6px -1px rgba(0,0,0,.1);box-shadow:0 4px 6px -1px rgba(0,0,0,.1)}.pac-item{padding:8px 12px;cursor:pointer}.pac-item:hover{background-color:#f3f4f6}"})]})},52738:function(e,t,n){"use strict";var i=n(85893),a=n(67294),s=n(73935),o=n(47013),r=n(6004),l=n(16829);t.Z=e=>{let{show:t,onClose:n,children:c,title:d,lastFocusableElement:u,customDimensions:m="h-screen w-screen md:h-fit",modalHeight:h="h-fit",titleClass:f=""}=e,[p,v]=(0,a.useState)(!1),g=(0,a.useRef)(null),y=(0,a.useRef)(null),x=(0,a.useRef)(null),b=(0,a.useId)(),w="modal-title-".concat(b.replace(/:/g,"")),S=(0,a.useCallback)(()=>
1"undefined"==typeof document?null:document.getElementById("__next"),[]),_=(0,a.useCallback)(()=>{document.activeElement instanceof HTMLElement&&(x.current=document.activeElement),y.current&&y.current.focus()},[y]),j=(0,a.useCallback)(()=>{var e;null===(e=x.current)||void 0===e||e.focus(),n&&n()},[n]),C=(0,a.useCallback)(e=>{if("Escape"===e.key){j();return}if("Tab"===e.key){if(!y||!u)return;let n=document.activeElement;if(e.shiftKey&&n===y.current)u.current.focus(),e.preventDefault();else if(!e.shiftKey&&n===u.current){var t;null===(t=y.current)||void 0===t||t.focus(),e.preventDefault()}return}},[j,u]);(0,a.useEffect)(()=>{v(!0)},[]),(0,a.useEffect)(()=>{let e=S();t?(document.body.style.overflow="hidden",e&&(e.style.width="100%"),_()):(document.body.style.overflow="unset",document.body.style.overflowX="hidden",e&&(e.style.width="",e.style.position=""))},[S,t,_]),(0,a.useEffect)(()=>{if(t)document.addEventListener("keydown",C);else try{document.removeEventListener("keydown",C)}catch(e){console.error(e)}},[C,t]);let k=t&&(0,i.jsxs)("div",{id:"modal",role:"dialog","aria-modal":"true","aria-labelledby":d?w:void 0,"data-testid":"Modal--dialog",className:"bottom-0 top-0 z-[1000] h-screen w-screen md:h-full ".concat(t?"fixed":"hidden"),children:[(0,i.jsxs)("div",{className:(0,l.Z)("modal-remove-sb absolute left-1/2 top-1/2 z-[300] max-h-[calc(100vh-2rem)] w-[92vw] max-w-[92vw] -translate-x-1/2 -translate-y-1/2 overflow-auto rounded-lg bg-white pt-16 md:w-fit md:max-w-[95vw] md:pt-12 lg:max-w-960",m,h,e.modalWidth),ref:g,children:[(0,i.jsx)("div",{className:"absolute right-8 top-12 z-20 md:top-5",children:(0,i.jsx)(o.Z,{disableBase:!0,size:"none",addClass:"text-4xl font-light",primary:!1,onClick:j,buttonRef:y,dataTrackingProps:{position:"body",location:"popup",action:"toggle",type:"close"},children:(0,i.jsx)(r.Z,{width:"32",height:"32"})})}),(0,i.jsx)("div",{className:"px-4 sm:px-10",children:(0,i.jsx)("h2",{className:(0,l.Z)("m-0 my-4 whitespace-normal break-words md:text-nowrap",f),id:w,"data-testid":"dialog--title",children:d})}),(0,i.jsx)("div",{className:"min-w-0 max-w-full overflow-auto break-words pb-4 pl-4 pr-4",children:c})]}),(0,i.jsx)("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[250] bg-rich-black/50",onClick:j})]});if(p){let e=document.getElementById("modal-root");return e?s.createPortal(k,e):(console.error('Modal root element not found. Please make sure to add a div with id "modal-root" in your HTML.'),null)}return null}},147:function(e,t){"use strict";t.Z=(e,t)=>{var n;if(!sessionStorage.getItem("systemRecFormData"))return"This person did not fill out the SRT form";let i=sessionStorage.getItem("systemRecFormData")||"",a=t||sessionStorage.getItem("systemRecResultsPageUrl"),s="URL not available";if(a){let t=new URL(a);t.searchParams.set("dealer",e),s=t.toString()}let o=JSON.parse(i),r=Object.entries(o).filter(e=>{let[t]=e;return"homeAddress"!==t&&"contactInfo"!==t&&"tcpaText"!==t}).map(e=>{let[t,n]=e,i=t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()),a=String(n).replace(/,(?=\D)/g,", ");return a=a&&""!==a?a:"N/A","".concat(i,": ").concat(a)}).join(" | "),l=(null==o?void 0:null===(n=o.contactInfo)||void 0===n?void 0:n.callTime)?" | Best call time: ".concat(o.contactInfo.callTime):"";return"".concat(r).concat(l," | Link to recommendation: ").concat(s)}},14889:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var i=n(85893),a=n(67294),s=n(93967),o=n.n(s),r=n(52767),l=n(49365),c=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",className:o()("inline-block h-auto",t),"aria-label":"Arrow Right","data-testid":"SRTIconArrowRightDown",...n,children:(0,i.jsx)("path",{fill:"#fff",d:"m7.618 13.54-3.75-3.75a.723.723 0 0 1 0-1.056.723.723 0 0 1 1.055 0l2.484 2.461V4c0-.398.329-.75.75-.75.399 0 .75.352.75.75v7.195l2.461-2.46a.723.723 0 0 1 1.055 0 .723.723 0 0 1 0 1.054l-3.75 3.75a.723.723 0 0 1-1.055 0Z"})})},d=e=>{let{id:t,children:n,className:s="",onClick:d,disabled:u=!1,href:m,position:h="left",variant:f="primary",size:p,type:v,...g}=e,y="primary"===f?"text-white bg-eerie-black hover:bg-charelston-gray focus:bg-charelston-gray focus:text-slick-silver disabled:bg-dim-gray disabled:text-slick-silver text-Inter tracking-normal":"text-eerie-black bg-lighthouse hover:text-arsenic focus:text-dim-gray disabled:text-quick-silver text-Inter tracking-normal",x="primary"===f?"fill-white group-focus:fill-slick-silver group-disabled:fill-slick-silver":"fill-eerie-black group-hover:fill-arsenic group-focus:fill-dim-gray group-disabled:fill-quick-silver",b="sm"===p?"px-2 py-1 rounded-lg text-sm gap-1":"px-6 py-3 rounded-2xl text-base gap-2",w=(0,a.useRef)(null);return(0,i.jsx)(i.Fragment,{children:m?(0,i.jsxs)("a",{id:t,href:m,className:o()("group inline-flex items-center rounded-2xl",y,s,b),target:"_blank","data-testid":"SRT
1SystemButton",...g,children:["left"===h&&(0,i.jsx)(l.D,{className:o()("w-5",x)}),n,"right"===h&&(0,i.jsx)(r.E,{className:o()("w-5",x)}),"right-down"===h&&(0,i.jsx)(c,{className:o()("w-20",x)})]}):(0,i.jsxs)("button",{id:t,"data-testid":"SRTSystemButton",type:v,ref:w,onClick:d,className:o()("group inline-flex items-center rounded-2xl px-6 py-3",y,s,b),disabled:u,...g,children:["left"===h&&(0,i.jsx)(l.D,{className:o()("w-5",x)}),n,"right"===h&&(0,i.jsx)(r.E,{className:o()("w-5",x)}),"right-down"===h&&(0,i.jsx)(c,{className:o()("w-20",x)})]})})}},49365:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var i=n(85893),a=n(93967),s=n.n(a),o=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 12",className:s()("inline-block",t),"aria-label":"Arrow Left","data-testid":"SRTIconArrowLeft",...n,children:(0,i.jsx)("path",{d:"M1.12109 5.14844L5.49609 0.773438C5.82422 0.417969 6.39844 0.417969 6.72656 0.773438C7.08203 1.10156 7.08203 1.67578 6.72656 2.00391L3.85547 4.875H12.25C12.7148 4.875 13.125 5.28516 13.125 5.75C13.125 6.24219 12.7148 6.625 12.25 6.625H3.85547L6.72656 9.52344C7.08203 9.85156 7.08203 10.4258 6.72656 10.7539C6.39844 11.1094 5.82422 11.1094 5.49609 10.7539L1.12109 6.37891C0.765625 6.05078 0.765625 5.47656 1.12109 5.14844Z"})})}},52767:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var i=n(85893),a=n(93967),s=n.n(a),o=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",className:s()("inline-block",t),"aria-label":"Arrow Right","data-testid":"SRTIconArrowRight",...n,children:(0,i.jsx)("path",{d:"M15.8516 10.3789L11.4766 14.7539C11.1484 15.1094 10.5742 15.1094 10.2461 14.7539C9.89062 14.4258 9.89062 13.8516 10.2461 13.5234L13.1172 10.625H4.75C4.25781 10.625 3.875 10.2422 3.875 9.75C3.875 9.28516 4.25781 8.875 4.75 8.875H13.1172L10.2461 6.00391C9.89062 5.67578 9.89062 5.10156 10.2461 4.77344C10.5742 4.41797 11.1484 4.41797 11.4766 4.77344L15.8516 9.14844C16.207 9.47656 16.207 10.0508 15.8516 10.3789Z"})})}},46157:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var i=n(85893),a=n(93967),s=n.n(a),o=e=>{let{className:t,...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",className:s()("inline-block",t),"aria-label":"Leaf","data-testid":"SRTIconLeaf",...n,children:(0,i.jsx)("path",{d:"M16.75 8.5h4.875a5.163 5.163 0 0 0 4.594-2.766c.187-.28.656-.28.75 0A15.783 15.783 0 0 1 28 11.36C28 18.906 22.984 25 16.797 25h-.047a8.257 8.257 0 0 1-8.016-6.14 7.892 7.892 0 0 0-2.484 5.765v.75A1.11 1.11 0 0 1 5.125 26.5C4.469 26.5 4 26.031 4 25.375v-.75a9.997 9.997 0 0 1 4.5-8.39c.984-.704 2.11-1.172 3.328-1.454.75-.187 1.5-.281 2.297-.281h4.125c.375 0 .75-.328.75-.75 0-.375-.375-.75-.75-.75h-4.125c-1.922 0-3.703.469-5.25 1.266C9.906 10.937 13.047 8.5 16.75 8.5Z"})})}},69496:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});let i=async e=>{let t=await fetch("/residential/api/system-rec-email/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>({error:"Unknown error"}));throw Error("Failed to send system recommendation email: ".concat(e.error))}}},1445:function(e,t,n){"use strict";let i,a;n.d(t,{Z:function(){return p}});var s=n(67294);let o=()=>{var e,t,n;return!!(null===(n=window.google)||void 0===n?void 0:null===(t=n.maps)||void 0===t?void 0:null===(e=t.places)||void 0===e?void 0:e.Autocomplete)},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise((t,n)=>{if(o()){t();return}let i=Date.now(),a=()=>{if(o()){t();return}if(Date.now()-i>=e){n(Error("Google Maps failed to load. Ensure GoogleMapsScript component is mounted."));return}setTimeout(a,100)};a()})},l=async(e,t,n,i)=>{let a=t.current;if(!a)return;await r(),e.current=new google.maps.places.Autocomplete(a,{types:["address"],componentRestrictions:{country:["us","ca"]}});let s=c(e,n,i);return()=>{if(s)try{google.maps.event.removeListener(s)}catch(e){console.error("Error removing Google Maps listener:",e)}e.current=null}},c=(e,t,n)=>{if(!e.current)return null;let i=e=>{var i,a,s,o,r;if(!(null==e?void 0:e.address_components))return;let l=function(e){let t={};
1return e.address_components.forEach(e=>{e.types.forEach(n=>{"administrative_area_level_1"===n?t[n]=e.short_name:t[n]=e.long_name})}),t}(e),c={addressLine1:"".concat(null!==(i=l.street_number)&&void 0!==i?i:""," ").concat(null!==(a=l.route)&&void 0!==a?a:"").trim(),city:null!==(s=l.locality)&&void 0!==s?s:"",state:null!==(o=l.administrative_area_level_1)&&void 0!==o?o:"",zip:null!==(r=l.postal_code)&&void 0!==r?r:""};t(e=>({...e,...c})),null==n||n(c)};return e.current.addListener("place_changed",()=>{var t;i(null===(t=e.current)||void 0===t?void 0:t.getPlace())})},d=(e,t)=>{let{name:n,value:i}=e.currentTarget;t(e=>({...e,[n]:i}))};var u=n(85633);let m=new Set,h=e=>{let t=window;return 0===m.size&&(i=t.gm_authFailure,a=()=>{null==i||i(),m.forEach(e=>e())},t.gm_authFailure=a),m.add(e),()=>{m.delete(e),0===m.size&&(t.gm_authFailure===a&&(t.gm_authFailure=i),i=void 0,a=void 0)}},f=e=>{setTimeout(()=>{e.forEach(e=>{let t=document.querySelector('[name="'.concat(e,'"]'));if(t){let e=new Event("change",{bubbles:!0});t.dispatchEvent(e)}})},100)};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,externalSetState:n,validationFieldNames:i}=e,[a,o]=(0,s.useState)({addressLine1:"",city:"",state:"",zip:""}),[r,c]=(0,s.useState)(null),[m,p]=(0,s.useState)(!0),[v,g]=(0,s.useState)(0),y=(0,s.useMemo)(()=>null!=n?n:o,[n]),x=n?void 0:a,b=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useCallback)(e=>{w.current=e,c(e)},[]),_=(0,s.useCallback)(()=>{(null==i?void 0:i.length)&&f(i)},[i]);return(0,s.useEffect)(()=>h(()=>{p(!1),g(e=>e+1)}),[]),(0,s.useEffect)(()=>{let e={current:void 0};
1return t&&r&&m&&l(b,w,y,_).then(t=>{e.current=t}).catch(e=>{console.error("Failed to initialize autocomplete:",e),p(!1)}),()=>{var t;null===(t=e.current)||void 0===t||t.call(e)}},[t,r,y,_,m]),{address:x,setAddress:y,handleChange:e=>{d(e,y)},setInputRef:S,addressInputKey:v,autocompleteRef:b,GoogleMapsScript:u.Z}}},72367:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let i=e=>fetch("https://api.weatherapi.com/v1/current.json?key=f159ef9519104e88ac7173827233005&q=".concat(e,"&aqi=no")).then(e=>e.json()).catch(e=>(console.error&&console.error("Exception in fetchWeather: ".concat(e.message||e)),e))},77401:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(31955),a=n(88964),s=n(88341),o=n(49180);function r(e,t){var n,r;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0,d=parseInt(t,10);isNaN(d)&&(d=0);let u=(0,o.Z)(c);return{companyID:d,mtaAnonymousID:i.Z.get("_mta_aid")||"",mtaSessionID:i.Z.get("_mta_sid")||"",gaSessionID:(0,a.Z)("s")||"",gaUserPseudoID:(0,s.Z)()||"",url:window.location.href,fields:e,kind:"CONTACT_DEALER",brand:"Trane",source:null!==(n=l.source)&&void 0!==n?n:"System Recommendation Flow",htmlId:null!==(r=l.htmlId)&&void 0!==r?r:"system-recommendation-flow",tcpa:{consentText:u,accepted:!0}}}},7443:function(e,t,n){"use strict";var i=n(34155);n(91479);var a=n(67294),s=a&&"object"==typeof a&&"default"in a?a:{default:a},o=void 0!==i&&i.env&&!0,r=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,i=void 0===n?"stylesheet":n,a=t.optimizeForSpeed,s=void 0===a?o:a;c(r(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",c("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(c(r(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,i))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var n=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(i){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var i=this._tags[e];c(i,"old rule at index `"+e+"` not found"),i.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&c(r(t),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+e,""),t&&i.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return n?a.insertBefore(i,n):a.appendChild(i),i},function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function m(e,t){if(!t)return"jsx-"+e;var n=String(t),i=e+n;return u[i]||(u[i]="jsx-"+d(e+"-"+n)),u[i]}function h(e,t){var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var f=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,i=void 0===n?null:n,a=t.optimizeForSpeed,s=void 0!==a&&a;this._sheet=i||new l({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),i&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),i=n.styleId,a=n.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var s=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=s,this._instancesCounts[i]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var i=this._fromServer&&this._fromServer[n];i?(i.parentNode.removeChild(i),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],i=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,i=e.id;if(n){var a=m(i,n);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return h(a,e)}):[h(a,t)]}}return{styleId:m(i),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=a.createContext(null);p.displayName="StyleSheetContext";var v=s.default.useInsertionEffect||s.default.useLayoutEffect,g=new f;function y(e){var t=g||a.useContext(p);return t&&v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},t.style=y},40645:function(e,t,n){"use strict";e.exports=n(7443).style},91479:function(){},48170:function(e){e.exports={traneSlider:"InputSlider_traneSlider__Fk7KY"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.