(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9345],{75682:function(e,t,a){"use strict";a.d(t,{K:function(){return s}});var l=a(85893),n=a(93967),r=a.n(n),s=e=>{let{className:t,...a}=e;return(0,l.jsx)("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r()("inline-block",t),"aria-label":"Number One","data-testid":"SRTIconOneCircle",...a,children:(0,l.jsx)("path",{d:"M0 13C0 8.73438 2.25 4.79688 6 2.64062C9.70312 0.484375 14.25 0.484375 18 2.64062C21.7031 4.79688 24 8.73438 24 13C24 17.3125 21.7031 21.25 18 23.4062C14.25 25.5625 9.70312 25.5625 6 23.4062C2.25 21.25 0 17.3125 0 13ZM12.5625 7.1875C12.1875 6.95312 11.7656 6.95312 11.4375 7.1875L8.8125 8.6875C8.25 8.96875 8.0625 9.67188 8.39062 10.1875C8.67188 10.75 9.375 10.9375 9.89062 10.6094L10.875 10.0938V16.75H9C8.34375 16.75 7.875 17.2656 7.875 17.875C7.875 18.5312 8.34375 19 9 19H12H15C15.6094 19 16.125 18.5312 16.125 17.875C16.125 17.2656 15.6094 16.75 15 16.75H13.125V8.125C13.125 7.75 12.8906 7.375 12.5625 7.1875Z",fill:"#6B6B6B"})})}},28828:function(e,t,a){"use strict";a.d(t,{y:function(){return s}});var l=a(85893),n=a(93967),r=a.n(n),s=e=>{let{className:t,...a}=e;return(0,l.jsx)("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r()("inline-block",t),"aria-label":"Number Three","data-testid":"SRTIconThreeCircle",...a,children:(0,l.jsx)("path",{d:"M13 24C8.6875 24 4.75 21.75 2.59375 18C0.4375 14.2969 0.4375 9.75 2.59375 6C4.75 2.29688 8.6875 0 13 0C17.2656 0 21.2031 2.29688 23.3594 6C25.5156 9.75 25.5156 14.2969 23.3594 18C21.2031 21.75 17.2656 24 13 24ZM9.625 6C8.96875 6 8.5 6.51562 8.5 7.125C8.5 7.78125 8.96875 8.25 9.625 8.25H12.7188L10.3281 10.4531C10 10.7344 9.85938 11.25 10.0469 11.6719C10.2344 12.0938 10.6562 12.375 11.125 12.375H13.5156C14.4531 12.375 15.2031 13.125 15.2031 14.0625C15.2031 15 14.4531 15.75 13.5156 15.75H12.2031C11.5938 15.75 11.0312 15.4688 10.6562 14.9062L10.5625 14.7188C10.2344 14.2031 9.53125 14.0156 9.01562 14.3438C8.5 14.6719 8.3125 15.375 8.64062 15.8906L8.78125 16.0781C9.48438 17.2969 10.7969 18 12.25 18H13.5156C15.7188 18 17.5 16.2656 17.5 14.0625C17.5 12.0469 15.9531 10.3594 13.9844 10.1719L16.375 7.96875C16.7031 7.64062 16.8438 7.17188 16.6562 6.75C16.4688 6.32812 16.0469 6 15.625 6H9.625Z",fill:"#6B6B6B"})})}},57263:function(e,t,a){"use strict";a.d(t,{d:function(){return s}});var l=a(85893),n=a(93967),r=a.n(n),s=e=>{let{className:t,...a}=e;return(0,l.jsx)("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r()("inline-block",t),"aria-label":"Number Two","data-testid":"SRTIconTwoCircle",...a,children:(0,l.jsx)("path",{d:"M13 24C8.6875 24 4.75 21.75 2.59375 18C0.4375 14.2969 0.4375 9.75 2.59375 6C4.75 2.29688 8.6875 0 13 0C17.2656 0 21.2031 2.29688 23.3594 6C25.5156 9.75 25.5156 14.2969 23.3594 18C21.2031 21.75 17.2656 24 13 24ZM11.4062 8.67188C11.7812 8.4375 12.1562 8.29688 12.625 8.29688H12.7656C13.7031 8.29688 14.5 9.09375 14.5 10.0312C14.5 10.5 14.2656 10.9688 13.9375 11.2969L8.82812 16.0781C8.5 16.4062 8.40625 16.875 8.54688 17.2969C8.73438 17.7188 9.15625 18 9.625 18H16.375C16.9844 18 17.5 17.5312 17.5 16.875C17.5 16.2656 16.9844 15.75 16.375 15.75H12.4375L15.4844 12.9375C16.2812 12.1875 16.7031 11.1562 16.7031 10.0312C16.7031 7.875 14.9688 6.09375 12.8125 6.04688H12.625C11.6875 6.04688 10.7969 6.32812 10.0469 6.89062L8.92188 7.73438C8.40625 8.10938 8.3125 8.85938 8.6875 9.32812C9.0625 9.84375 9.8125 9.9375 10.2812 9.5625L11.4062 8.67188Z",fill:"#6B6B6B"})})}},69345:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return F}});var l=a(85893),n=a(67294),r=a(30654),s=a(16437),o=()=>{let[e,t]=(0,n.useState)({locationInfo:"",savingsAmount:"",topPrograms:[]}),[a,l]=(0,n.useState)(!0),[r,s]=(0,n.useState)(null),o=(0,n.useCallback)(async e=>{if(e){s(null);try{let l=0,d=null,c="",u=1;for(;le.maxRebateAmountLabel))&&l++}if(d){let e=d.rebatePrograms.filter(e=>{var t;return!(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes("federal tax credit"))}).slice(0,3);t({locationInfo:c,savingsAmount:d.maxRebateAmountLabel,topPrograms:e})}else t({locationInfo:"",savingsAmount:"",topPrograms:[]}),s("No rebates found for this location.")}catch(e){t({locationInfo:"",savingsAmount:"",topPrograms:[]}),s("Unable to retrieve savings information. Please check your Zip Code and try again."),console.error("Error fetching rebate data:",e)}finally{l(!1)}}},[]);return{rebateData:e,isLoading:a,error:r,setError:s,fetchRebates:o}},i=a(16829),d=e=>{let{className:t,...a}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25",className:(0,i.Z)("fill-cool-blue",t),"aria-label":"box with arrow pointing to upper right",...a,children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M7.422 6.25c-.647 0-1.172.525-1.172 1.172v10.156c0 .647.525 1.172 1.172 1.172h10.156c.647 0 1.172-.525 1.172-1.172v-4.297h.781v4.297a1.953 1.953 0 0 1-1.953 1.953H7.422a1.953 1.953 0 0 1-1.953-1.953V7.422c0-1.079.874-1.953 1.953-1.953h4.297v.781H7.422Zm6.518 0h4.81v4.81h-.781V7.584l-7.067 7.067-.553-.553 7.067-7.067H13.94V6.25Z",clipRule:"evenodd"})})},c=e=>{let{locationInfo:t,savingsAmount:a,topPrograms:n}=e;return(0,l.jsxs)("div",{id:"ecorebates-results",className:"px-4 lg:px-0",children:[(0,l.jsxs)("p",{className:"mb-6 mt-0 text-pretty lg:mb-10",children:[(0,l.jsxs)("span",{className:"text-2xl text-rich-black lg:text-2xl",children:[(0,l.jsxs)("span",{className:"font-bold",children:[t," "]}),"homeowners receive up to"]})," ",(0,l.jsx)("span",{className:"m-0 my-2.5 block text-5xl font-semibold text-rich-black lg:text-9xl",children:a})," ",(0,l.jsx)("span",{className:"text-2xl text-rich-black lg:text-2xl",children:"in rebates and special offers."})]}),(0,l.jsx)("div",{className:"mx-auto mb-0 flex min-h-0 max-w-fit flex-col items-start gap-3 text-left lg:gap-4 lg:text-18",children:n.map(e=>(0,l.jsxs)("a",{href:e.homeURL,target:"_blank",rel:"noopener noreferrer",className:"text-cool-blue hover:underline","data-position":"body","data-location":"content block","data-action":"external link","data-text-grouping":"EcorebateResults","data-text":e.name,"data-type":"link",children:[(0,l.jsxs)("span",{className:"font-bold",children:[e.name,": "]}),(0,l.jsx)("span",{children:e.amountLabel}),(0,l.jsx)(d,{className:"relative -mt-1 ml-1 inline-block w-6 align-middle lg:w-8"})]},e.id))})]})},u=a(3798),m=a(83884),x=e=>{let{inputZipValue:t,handleZipChange:a,onSubmit:n,error:r}=e;return(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(0,m.p)({event:"ecorebates-search",formId:"ecorebates-zip-input-form",zipcode:t}),t&&n(t)},className:"mb-6 flex flex-col items-center lg:mb-10",id:"ecorebates-zip-input-form",children:[(0,l.jsxs)("div",{className:"relative flex min-w-full flex-nowrap sm:min-w-300 lg:min-w-500",children:[(0,l.jsx)("input",{value:t,onChange:a,className:"h-12 w-full rounded-full border-2 border-r-0 border-y-gray-200 border-l-gray-200 p-4 font-Lato",placeholder:"Enter Postal/Zip Code",id:"ecorebates-zip-input-textbox",required:!0}),(0,l.jsx)("button",{type:"submit",className:"absolute right-1.5 top-1.5 rounded-full bg-trane-red px-2.5 py-2.5","data-position":"body","data-location":"filter","data-action":"search","data-text-grouping":"cta","data-text":"search","data-type":"button",title:"Search","aria-label":"Search",children:(0,l.jsx)(u.Z,{svgClass:"stroke-white",pathClass:"stroke-white"})})]}),r&&(0,l.jsx)("small",{className:"mt-2 text-trane-red",children:r})]})},p=a(25261),g=a(78148),h=a(65755),b=a(24623),f=a(2372),v=a(6887),w=a(47013),j=a(35614),C=a(33353),y=a(25014),N=e=>{var t;let{show:a,onClose:r,dealer:s}=e,[,o]=(0,j.ZP)(),[i,d]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),[x,p]=(0,n.useState)(s),h=e=>{let t=e.id;return o("leadId",t),t},b=()=>{(0,m.p)({event:"dealer_form_success",formId:"contact-your-local-dealer",zipcode:c}),r()};return(0,l.jsx)(g.Z,{companyId:null!==(t=null==x?void 0:x.data.companyID)&&void 0!==t?t:null==s?void 0:s.data.companyID,onSubmit:(e,t)=>{var a,l;if(e.preventDefault(),d(!0),o("dealerId",null!==(l=null!==(a=null==x?void 0:x.data.companyID)&&void 0!==a?a:null==s?void 0:s.data.companyID)&&void 0!==l?l:""),(null!=x?x:s)===null)throw Error("No dealer selected");if(!t||!t.ok)return b();t.json().then(h).then(b)},onError:(e,t)=>{console.error("Form submission error:",e,t),d(!1)},show:a,comments:"Homeowner is interested in rebates from the EcoRebates tool: https://www.trane.com/residential/en/pricing/savings-and-offers/",successNode:(0,l.jsx)(y.Z,{}),hasSubmitted:i,setDealer:p,onClose:r,onFieldChange:(e,t)=>{"zip"===e&&u(t)}})},k=a(71698),Z=e=>{var t;return!(0,k.Z)()&&(null!==(t=null==e?void 0:e.metaData.total_review_count)&&void 0!==t?t:0)>0},S=e=>{var t,a,r;let{dealer:s,connected:o=!1,isFeatured:d=!1}=e,[c,u]=(0,n.useState)(!1),[x,p]=(0,n.useState)(!1),[g,y]=(0,n.useState)(!1),[k]=(0,j.ZP)(),{name:S,companyID:I,addressLine1:D="",charterMemberDate:_=0,city:z="",state:R="",emergencyService:L=!1,nateCertified:P=!1,nexiaDealerDiagnostics:B=!1,showFinancing:E=!1,leasingOption:H=!1,showAddress:M=!1,isTcs:O=!1}=null==s?void 0:s.data,T=Z(s);return(0,n.useEffect)(()=>{if(o){y(!0);return}if(!g){let e=JSON.parse(sessionStorage.getItem("systemRecOtherDealers")||"[]");e.length>0&&y(e.includes(null==I?void 0:I.toString()))}},[I,o,g]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("article",{className:(0,i.Z)("row-span-3 grid h-full grid-rows-subgrid flex-col items-stretch rounded-3xl bg-white text-start",{"shadow-sr-featured-dealer-card":d,"border border-snow-drift/25 shadow-sr-dealer-card":!d}),"data-testid":"SRTSystemDealerCard",children:[(0,l.jsxs)("div",{className:"border-b border-snow-drift px-6 pb-0 pt-6",children:[(0,l.jsx)("h2",{className:"m-0 mb-4 pb-0 text-22 font-bold leading-tight",children:(0,l.jsx)("a",{className:"text-black hover:text-trane-red",href:(0,f.Z)(S||"",z,R,s.data.companyID||0),"data-position":"body","data-location":"dealer card","data-action":"internal link","data-text-grouping":"dealer name","data-text":S,"data-type":"link",children:S})}),T&&(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsx)(h.Z,{rating:null!==(a=s.metaData.average_rating)&&void 0!==a?a:0,total:s.metaData.total_review_count,onClick:()=>p(!0),includeTotal:!0})}),(D||z)&&(0,l.jsxs)("p",{className:"m-0 mb-3 text-14 font-normal capitalize text-cadet",children:[M&&(0,l.jsxs)("span",{className:"hidden md:inline",children:[D,", "]}),(0,l.jsx)("span",{className:"capitalize md:uppercase",children:z}),(0,l.jsxs)("span",{className:(0,i.Z)("inline",{"md:hidden":M}),children:[", ",R]}),(0,l.jsx)("br",{}),(0,l.jsx)(b.Z,{phoneNumbers:null===(t=e.dealer.whodis)||void 0===t?void 0:t.assignedNumbers,directNumber:e.dealer.data.phone1,linkClass:"font-normal text-14 text-cadet",dataPosition:"body",dataLocation:"dealer card",referer:e.referer})]}),(0,l.jsx)("div",{className:"-mx-6 mb-6 lg:mb-8"})]}),(0,l.jsx)("div",{className:"flex-1 px-6 pb-14 pt-8",children:(0,l.jsx)(v.Z,{emergencyService:L,charterMemberDate:_,nateCertified:P,nexiaDealerDiagnostics:B,showFinancing:E,leasingOption:H,isTcs:O})}),(0,l.jsx)("div",{className:"px-6 pb-8",children:(0,l.jsx)(w.Z,{primary:!0,disabled:g,addClass:(0,i.Z)("rounded-full w-full block text-sm tracking-wide py-3.5",{"pointer-events-none bg-lighthouse border-none text-quick-silver opacity-100":g,"bg-trane-red":!g}),onClick:()=>{(0,m.p)({event:"dealer_form_open",formId:"contact-your-local-dealer",zipcode:k.zip}),u(!0)},dataTrackingProps:{location:"dealer card",text:g?"Connected":"Connect with Dealer",position:"body",action:"pop-up",type:"button",textGrouping:"cta"},children:g?"Connected":"Connect with Dealer"})})]}),(0,l.jsx)(N,{onClose:()=>u(!1),dealer:s,show:c}),(0,l.jsx)(C.Z,{companyName:null!==(r=s.data.name)&&void 0!==r?r:"",companyId:s.data.companyID,metaData:s.metaData,onClose:()=>p(!1),show:x})]})},I=a(14070),D=a(14191),_=a(29e3),z=a(7927),R=a.n(z),L=e=>{let{dealers:t}=e,a=(0,n.useRef)(null),[r,s]=(0,n.useState)([]),[o,d]=(0,n.useState)(0),[c,u]=(0,n.useState)(3),[m,x]=(0,n.useState)(0),[p,g]=(0,n.useState)(null),[h,b]=(0,n.useState)(0),[f]=(0,j.ZP)(),v=0===o,w=o+1===Math.ceil(t.length/c),C={gapBetweenCards:16,breakpoints:{mobile:600,tablet:1024}};(0,n.useEffect)(()=>{let e=()=>{b(0),d(0);let e=a.current.clientWidth-8;if(window.innerWidth=C.breakpoints.tablet){u(3),s(Array(Math.ceil(t.length/3)).fill(0)),x((e-2*C.gapBetweenCards)/3);return}},l=new ResizeObserver(t=>{for(let l of t)l.target===a.current&&e()});return a.current&&l.observe(a.current),()=>l.disconnect()},[C.breakpoints.mobile,C.breakpoints.tablet,C.gapBetweenCards,t.length]),(0,n.useEffect)(()=>{if(v){b(0);return}b(o*(m*c+C.gapBetweenCards*c)-4)},[o,m,c,C.gapBetweenCards,v]);let y=()=>{o!==r.length-1&&d(e=>e+1)},N=()=>{v||d(e=>e-1)},k=(e,t)=>{e.preventDefault(),d(t)};return 0===t.length?null:(0,l.jsxs)(_.Z,{contentClass:"pb-12 lg:pb-20",children:[(0,l.jsx)("h2",{className:"mx-0 mb-1 mt-0 font-Inter text-2.5xl font-bold tracking-normal text-eerie-black lg:text-center lg:text-4xl lg:leading-12",children:"Connect with even more dealers"}),(0,l.jsx)("p",{className:"m-0 font-Inter text-xl font-semibold leading-6.5 tracking-normal text-dim-gray lg:text-center",children:"Send your recommendation to additional dealers in your area"}),(0,l.jsxs)("div",{id:"slider-wrapper",className:(0,i.Z)("relative mx-auto h-full pb-7",{"w-full":t.length<=c,"w-[calc(100%_-_2rem)] md:w-[calc(100%_-_4rem)]":t.length>c}),role:"region","aria-label":"Dealer recommendations carousel",children:[(0,l.jsx)("button",{title:"Previous Slide","aria-label":"Previous Slide","data-position":"body","data-location":"content block","data-action":"toggle","data-text":"previous slide","data-type":"arrow",onClick:N,className:(0,i.Z)("group absolute -left-3 z-50 h-full w-9 hover:cursor-pointer md:-left-12",{"pointer-events-none":v,"pointer-events-auto":!v,hidden:t.length<=c,"flex items-center justify-center":t.length>c}),children:(0,l.jsx)("div",{className:(0,i.Z)("pointer-events-none absolute top-[43%] flex h-9 w-9 items-center rounded-full border bg-white text-center transition-all ease-in group-hover:border-transparent group-hover:bg-[rgba(0,0,0,0.05)] group-hover:transition-all group-hover:ease-in",{"border-light-silver":v,"border-trane-red":!v}),children:(0,l.jsx)(I.Z,{width:35,height:35,svgClass:"mx-auto",pathClass:v?"stroke-light-silver":"stroke-trane-red"})})}),(0,l.jsx)("button",{title:"Next Slide","aria-label":"Next Slide","data-position":"body","data-location":"content block","data-action":"toggle","data-text":"next slide","data-type":"arrow",onClick:y,className:(0,i.Z)("group absolute -right-3 z-50 h-full w-9 hover:cursor-pointer md:-right-12 md:w-10",{"pointer-events-none":w,"pointer-events-auto":!w,hidden:t.length<=c,"flex items-center justify-center":t.length>c}),children:(0,l.jsx)("div",{className:(0,i.Z)("pointer-events-none absolute top-[43%] flex h-9 w-9 items-center rounded-full border bg-white text-center transition-all ease-in group-hover:border-transparent group-hover:bg-[rgba(0,0,0,0.05)] group-hover:transition-all group-hover:ease-in",{"border-light-silver":w,"border-trane-red":!w}),children:(0,l.jsx)(D.Z,{width:35,height:35,svgClass:"mx-auto",pathClass:w?"stroke-light-silver":"stroke-trane-red"})})}),(0,l.jsx)("ul",{className:(0,i.Z)("absolute -bottom-0 left-1/2 z-50 -translate-x-1/2 list-none p-0",{hidden:t.length<=c,"flex items-center justify-center":t.length>c}),children:r.length>0&&r.map((e,t)=>(0,l.jsx)("li",{className:"mx-1",children:o===t?(0,l.jsx)("div",{className:"text-primary block text-16 font-semibold leading-normal hover:no-underline","data-toggle":"tab",role:"tablist",children:(0,l.jsx)("span",{className:"block h-2 w-2 rounded-full bg-cadet"})}):(0,l.jsx)("button",{className:"block text-16 font-semibold leading-normal text-gray-300 hover:no-underline",onClick:e=>{k(e,t)},"data-toggle":"tab",role:"tablist",children:(0,l.jsx)("span",{className:"block h-2 w-2 rounded-full bg-slate-300"})})},t))}),(0,l.jsx)("div",{ref:a,className:"relative m-0 h-full overflow-hidden py-8 lg:py-10",children:(0,l.jsx)("div",{className:(0,i.Z)("grid gap-x-4 transition-transform duration-300 ease-in-out",{"w-full":t.length<=c,"w-max justify-start":t.length>c},R()["slider-items-layout"]),style:{transform:0===h?"translateX(3px)":"translateX(-".concat(h,"px)")},onTouchStart:e=>{g(e.touches[0].clientX)},onTouchMove:e=>{if(null===p)return;let t=p-e.touches[0].clientX;t>30&&!w&&(y(),g(null)),t<-30&&!v&&(N(),g(null))},"data-card-count":t.length,"data-card-width":m,children:t.length>0&&t.map((e,t)=>{var a;return(0,l.jsx)(S,{dealer:e,connected:f.dealersContacted.includes(null!==(a=e.data.companyID)&&void 0!==a?a:0)},e.data.companyID)})})})]})]})},P=a(75682),B=a(57263),E=a(28828),H=e=>{let{dealer:t}=e;return t&&t.data?(0,l.jsx)(_.Z,{contentClass:"px-0 mb-10 lg:mb-16 text-start",children:(0,l.jsxs)("div",{className:"grid grid-cols-12 gap-y-8 bg-cultured p-6 font-Inter tracking-normal lg:gap-x-16 lg:gap-y-0 lg:rounded-3xl lg:px-20 lg:py-16",children:[(0,l.jsx)("div",{className:"order-2 col-span-12 flex w-full place-items-center justify-center lg:order-1 lg:col-span-5 lg:place-items-start xl:col-span-4",children:(0,l.jsx)(S,{dealer:t,isFeatured:!0,connected:!0})}),(0,l.jsxs)("div",{className:"order-1 col-span-12 content-start lg:order-2 lg:col-span-6 lg:content-center",children:[(0,l.jsx)("h2",{className:"mb-1 ml-0 mr-0 mt-0 text-28 font-700 leading-9 lg:text-4xl lg:leading-12",children:"Congrats!"}),(0,l.jsx)("p",{className:"mb-8 ml-0 mr-0 mt-0 text-xl font-semibold leading-6.5 text-dim-gray lg:mb-10",children:"Sit back and relax—your local Trane dealer has received your request."}),(0,l.jsx)("p",{className:"mb-2 ml-0 mr-0 mt-0 text-xl font-semibold text-dim-gray lg:mb-4",children:"Here’s what to expect now:"}),(0,l.jsxs)("ol",{className:"grid list-none gap-2 p-0 text-base font-medium leading-22 text-dim-gray lg:mb-10 lg:gap-3 lg:text-lg lg:leading-6",children:[(0,l.jsxs)("li",{className:"flex gap-1 lg:gap-2",children:[(0,l.jsx)(P.K,{className:"h-6 w-6 flex-shrink-0 lg:h-8 lg:w-8"}),(0,l.jsx)("span",{className:"lg:self-center",children:"Your dealer will reach out to schedule an in-home visit"})]}),(0,l.jsxs)("li",{className:"flex gap-1 lg:gap-2",children:[(0,l.jsx)(B.d,{className:"h-6 w-6 flex-shrink-0 lg:h-8 lg:w-8"}),(0,l.jsx)("span",{className:"lg:self-center",children:"You’ll receive a quote for your new system"})]}),(0,l.jsxs)("li",{className:"flex gap-1 lg:gap-2",children:[(0,l.jsx)(E.y,{className:"h-6 w-6 flex-shrink-0 lg:h-8 lg:w-8"}),(0,l.jsx)("span",{className:"lg:self-center",children:"Once confirmed, installation will be scheduled"})]})]})]})]})}):null},M=a(70083),O=a(90291),T=e=>{var t;let{showSlider:a,isCanada:r}=e,[s,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),[u,x]=(0,n.useState)(null),[h,b]=(0,j.ZP)(),f=(0,O.Z)(),v=(0,n.useMemo)(()=>h.zip?h.zip:null!=f?f:"",[f,h.zip]),w=(0,M.Z)(v,h.mtaAid,h.mtaSid),C=(0,n.useMemo)(()=>{var e,t,a,l;return null!==(l=null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.companyID)&&void 0!==l?l:null===(a=w.at(0))||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.companyID},[null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.companyID,w]),y=(0,n.useMemo)(()=>w.filter(e=>e.data.companyID!==C),[C,w]),N=()=>{(0,m.p)({event:"dealer_form_open",formId:"contact-your-local-dealer",zipcode:v}),o(!0)},k=()=>o(!1);return(0,l.jsxs)("div",{className:"isolate pt-6 lg:pt-10",children:[(0,l.jsxs)("div",{children:[r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"mx-auto max-w-4xl px-6 pb-6 leading-6 text-2xl text-rich-black lg:text-2xl",children:"This tool isn’t available in your area at this time. Connect with a local pro to learn about available offers and system options in your region."}),(0,l.jsx)("button",{className:(0,i.Z)("mx-auto w-full rounded-full bg-trane-red px-10 py-3.5 font-Lato text-base leading-5 tracking-wide text-white md:px-20 lg:max-w-fit lg:py-7 lg:text-3xl lg:font-bold lg:leading-10",{hidden:d}),onClick:N,"data-position":"body","data-location":"ecorebates","data-action":"internal link","data-text-grouping":"cta","data-text":"Contact a local pro","data-type":"button",children:"Contact a Local Pro"})]}):(0,l.jsxs)("button",{className:(0,i.Z)("mx-auto w-full px-10 font-Lato md:px-20 lg:relative lg:max-w-fit lg:py-7",{hidden:d}),onClick:N,"data-position":"body","data-location":"ecorebates","data-action":"internal link","data-text-grouping":"cta","data-text":"Contact a local pro","data-type":"button",children:[(0,l.jsx)("span",{className:"pointer-events-none relative z-20 block pb-2 text-14 tracking-wide text-black lg:me-2 lg:inline-block lg:p-0 lg:text-3xl lg:font-bold lg:leading-10 lg:text-white",children:"Maximize your savings:"}),(0,l.jsxs)("span",{className:"pointer-events-none relative inline-block w-full px-4 py-3.5 text-white lg:static lg:w-auto lg:p-0",children:[(0,l.jsx)("span",{className:"relative z-20 text-base leading-5 tracking-wide lg:text-3xl lg:font-bold lg:leading-10",children:"Contact a Local Pro"}),(0,l.jsx)("span",{className:"absolute inset-0 z-10 rounded-full bg-trane-red"})]})]}),(0,l.jsx)(g.Z,{show:s,onClose:k,onSubmit:(e,t)=>{e.preventDefault(),(0,m.p)({event:"dealer_form_success",formId:"contact-your-local-dealer",zipcode:h.zip}),null==t||t.json().then(e=>e.id).then(e=>{var t;let a=null!==(t=null==u?void 0:u.data.companyID)&&void 0!==t?t:"ERROR_NO_COMPANY_ID";b("leadId",e),b("dealerId",a)}).then(()=>{c(!0),k()})},hasSubmitted:d,successNode:(0,l.jsx)(p.Z,{isDealer:!0}),setDealer:x,companyId:C,comments:"Homeowner is interested in rebates from the EcoRebates tool: https://www.trane.com/residential/en/pricing/savings-and-offers/",refetchDealersOnZipChange:!0,titleClass:"text-18 font-700 leading-22 lg:text-32"})]}),d&&u&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(H,{dealer:u}),a&&a&&(0,l.jsx)(L,{dealers:y})]})]})},A=a(67482),F=e=>{let{attributes:t}=e,a=(null==t?void 0:t.data.hide_slider)==="0",d=null==t?void 0:t.data.header,{zip:u="",setZip:m}=(0,n.useContext)(r.z),[p]=(0,s.Z)(),[g,h]=(0,n.useState)(""),[,b]=(0,j.ZP)(),{rebateData:f,error:v,setError:w,fetchRebates:C,isLoading:N}=o(),k=u||p||"",Z=!!k&&(0,A.nO)(k),S=async e=>{let t=e.trim(),a=(0,A.nO)(t);if(t){if(t===u){a||await C(t);return}m(t)}};if((0,n.useEffect)(()=>{u?(h(u),(0,A.nO)(u)||C(u)):p&&(h(p),(0,A.nO)(p)||C(p))},[u,p,C]),!Z&&N)return(0,l.jsx)(y.Z,{});let{locationInfo:I,savingsAmount:D,topPrograms:_}=f;return(0,l.jsxs)("div",{id:"ecorebates-savings-summary",className:(0,i.Z)("mx-auto max-w-full text-center font-Lato",{hidden:(null==t?void 0:t.data.show_block)==="0","py-10 lg:py-20":(null==t?void 0:t.data.show_block)==="1"}),children:[d&&(0,l.jsx)("h2",{className:"mb-3 text-center text-24 lg:mb-6 lg:text-32",children:d}),!Z&&(0,l.jsx)("div",{className:"m-0 flex justify-center",children:(0,l.jsx)(x,{inputZipValue:g,handleZipChange:e=>{w(null);let t=e.target.value.trim();h(t),b("zip",t)},onSubmit:S,error:v})}),!Z&&I&&(0,l.jsx)(c,{locationInfo:I,savingsAmount:D,topPrograms:_}),(0,l.jsx)(T,{showSlider:a,isCanada:Z})]})}},7927:function(e){e.exports={"slider-items-layout":"styles_slider-items-layout__ZqPkn"}}}]);