(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8721,5633],{5144:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/residential",function(){return a(7923)}])},36140:function(e,t,a){"use strict";var s=a(85893),i=a(9008),r=a.n(i),n=a(47311);a(67294);var l=a(11163),c=a(87440),o=a(73389);t.Z=e=>{var t;let{seo:a}=e,i=(0,l.useRouter)(),d=(null==a?void 0:a.fullHead)||"";""!==d&&(d=d.replaceAll(/http(s)?:\/\/[a-zA-Z0-9\.\-]+\/(?!wp-content)/g,"https://www.trane.com/"),c.Z.map(e=>{d=d.replaceAll(e.key,e.replacement)}),d=(0,o.B)(d)),"/residential/"===i.asPath&&(d=d.slice(0,d.indexOf("")+8)+''+d.slice(d.indexOf("")+8));let h=(0,n.ZP)(d),m=i.asPath.replace(/[\?|#].+/,"");return(0,s.jsxs)(r(),{children:[!!(null===(t=e.seo)||void 0===t?void 0:t.title)&&(0,s.jsx)("title",{id:"title",children:e.seo.title}),h,!(null==a?void 0:a.fullHead.includes("canonical"))&&(0,s.jsx)("link",{rel:"canonical",href:"https://www.trane.com".concat(m)}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"})]})}},85633:function(e,t,a){"use strict";var s=a(85893),i=a(40645),r=a.n(i),n=a(4298),l=a.n(n);t.Z=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{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,s.jsx)(r(),{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}"})]})},19551:function(e,t,a){"use strict";var s=a(85893);a(67294);var i=a(15713),r=a(76085);t.Z=e=>{var t,a,n;let{siteOptions:l,zip:c}=null!=e?e:{},o=(0,i.Z)(null==l?void 0:l.enableNcpCampaigns,c);return(0,s.jsxs)("div",{"data-testid":"NCPAreaDisclaimer",id:"disclaimer",children:[o===i.c.southCampaign&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==l?void 0:null===(t=l.ncpAreaBasedDisclaimers)||void 0===t?void 0:t.southCampaignDisclaimer})}),o===i.c.northCampaign&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==l?void 0:null===(a=l.ncpAreaBasedDisclaimers)||void 0===a?void 0:a.northCampaignDisclaimer})}),o===i.c.allUsers&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==l?void 0:null===(n=l.ncpAreaBasedDisclaimers)||void 0===n?void 0:n.allUsersDisclaimer})})]})}},1445:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var s=a(67294);let i=()=>{var e,t,a;return!!(null===(a=window.google)||void 0===a?void 0:null===(t=a.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,a)=>{if(i()){t();return}let s=Date.now(),r=()=>{if(i()){t();return}if(Date.now()-s>=e){a(Error("Google Maps failed to load. Ensure GoogleMapsScript component is mounted."));return}setTimeout(r,100)};r()})},n=async(e,t,a,s)=>{let i=t.current;if(i)try{await r(),e.current=new google.maps.places.Autocomplete(i,{types:["address"],componentRestrictions:{country:["us","ca"]}});let t=l(e,a,s);return()=>{if(t)try{google.maps.event.removeListener(t)}catch(e){console.error("Error removing Google Maps listener:",e)}e.current=null}}catch(e){console.error("Failed to initialize Google Places Autocomplete:",e)}},l=(e,t,a)=>{if(!e.current)return null;let s=e=>{var s,i,r,n,l;if(!(null==e?void 0:e.address_components))return;let c=function(e){let t={};return e.address_components.forEach(e=>{e.types.forEach(a=>{"administrative_area_level_1"===a?t[a]=e.short_name:t[a]=e.long_name})}),t}(e),o={addressLine1:"".concat(null!==(s=c.street_number)&&void 0!==s?s:""," ").concat(null!==(i=c.route)&&void 0!==i?i:"").trim(),city:null!==(r=c.locality)&&void 0!==r?r:"",state:null!==(n=c.administrative_area_level_1)&&void 0!==n?n:"",zip:null!==(l=c.postal_code)&&void 0!==l?l:""};t(e=>({...e,...o})),null==a||a(o)};return e.current.addListener("place_changed",()=>{var t;s(null===(t=e.current)||void 0===t?void 0:t.getPlace())})},c=(e,t)=>{let{name:a,value:s}=e.currentTarget;t(e=>({...e,[a]:s}))};var o=a(85633);let d=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 h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,externalSetState:a,validationFieldNames:i}=e,[r,l]=(0,s.useState)({addressLine1:"",city:"",state:"",zip:""}),[h,m]=(0,s.useState)(null),p=(0,s.useMemo)(()=>null!=a?a:l,[a]),f=a?void 0:r,u=(0,s.useRef)(null),v=(0,s.useRef)(null),x=(0,s.useCallback)(e=>{v.current=e,m(e)},[]),g=(0,s.useCallback)(()=>{(null==i?void 0:i.length)&&d(i)},[i]);return(0,s.useEffect)(()=>{let e={current:void 0};return t&&h&&n(u,v,p,g).then(t=>{e.current=t}).catch(e=>{console.error("Failed to initialize autocomplete:",e)}),()=>{var t;null===(t=e.current)||void 0===t||t.call(e)}},[t,h,p,g]),{address:f,setAddress:p,handleChange:e=>{c(e,p)},setInputRef:x,autocompleteRef:u,GoogleMapsScript:o.Z}}},97631:function(e,t){"use strict";t.Z=[{abbreviation:"AB",name:"Alberta"},{abbreviation:"AK",name:"Alaska"},{abbreviation:"AL",name:"Alabama"},{abbreviation:"AR",name:"Arkansas"},{abbreviation:"AZ",name:"Arizona"},{abbreviation:"BC",name:"British Columbia"},{abbreviation:"CA",name:"California"},{abbreviation:"CO",name:"Colorado"},{abbreviation:"CT",name:"Connecticut"},{abbreviation:"DC",name:"District Of Columbia"},{abbreviation:"DE",name:"Delaware"},{abbreviation:"FL",name:"Florida"},{abbreviation:"GA",name:"Georgia"},{abbreviation:"HI",name:"Hawaii"},{abbreviation:"IA",name:"Iowa"},{abbreviation:"ID",name:"Idaho"},{abbreviation:"IL",name:"Illinois"},{abbreviation:"IN",name:"Indiana"},{abbreviation:"KS",name:"Kansas"},{abbreviation:"KY",name:"Kentucky"},{abbreviation:"LA",name:"Louisiana"},{abbreviation:"MA",name:"Massachusetts"},{abbreviation:"MB",name:"Manitoba"},{abbreviation:"MD",name:"Maryland"},{abbreviation:"ME",name:"Maine"},{abbreviation:"MI",name:"Michigan"},{abbreviation:"MN",name:"Minnesota"},{abbreviation:"MO",name:"Missouri"},{abbreviation:"MS",name:"Mississippi"},{abbreviation:"MT",name:"Montana"},{abbreviation:"NB",name:"New Brunswick"},{abbreviation:"NC",name:"North Carolina"},{abbreviation:"ND",name:"North Dakota"},{abbreviation:"NE",name:"Nebraska"},{abbreviation:"NH",name:"New Hampshire"},{abbreviation:"NJ",name:"New Jersey"},{abbreviation:"NL",name:"Newfoundland and Labrador"},{abbreviation:"NM",name:"New Mexico"},{abbreviation:"NS",name:"Nova Scotia"},{abbreviation:"NT",name:"Northwest Territories"},{abbreviation:"NU",name:"Nunavut"},{abbreviation:"NV",name:"Nevada"},{abbreviation:"NY",name:"New York"},{abbreviation:"OH",name:"Ohio"},{abbreviation:"OK",name:"Oklahoma"},{abbreviation:"ON",name:"Ontario"},{abbreviation:"OR",name:"Oregon"},{abbreviation:"PA",name:"Pennsylvania"},{abbreviation:"PE",name:"Prince Edward Island"},{abbreviation:"QC",name:"Quebec"},{abbreviation:"RI",name:"Rhode Island"},{abbreviation:"SC",name:"South Carolina"},{abbreviation:"SD",name:"South Dakota"},{abbreviation:"SK",name:"Saskatchewan"},{abbreviation:"TN",name:"Tennessee"},{abbreviation:"TX",name:"Texas"},{abbreviation:"UT",name:"Utah"},{abbreviation:"VA",name:"Virginia"},{abbreviation:"VT",name:"Vermont"},{abbreviation:"WA",name:"Washington"},{abbreviation:"WI",name:"Wisconsin"},{abbreviation:"WV",name:"West Virginia"},{abbreviation:"WY",name:"Wyoming"},{abbreviation:"YT",name:"Yukon"}]},73389:function(e,t,a){"use strict";a.d(t,{B:function(){return s},i:function(){return i}});let s=e=>e.replace(/