(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8721],{5144:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/residential",function(){return a(30941)}])},29411:function(e,t,a){"use strict";var s=a(85893),i=a(9008),r=a.n(i),l=a(47311);a(67294);var n=a(11163),o=a(87440),c=a(73389);t.Z=e=>{var t;let{seo:a}=e,i=(0,n.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/"),o.Z.map(e=>{d=d.replaceAll(e.key,e.replacement)}),d=(0,c.B)(d)),"/residential/"===i.asPath&&(d=d.slice(0,d.indexOf("")+8)+''+d.slice(d.indexOf("")+8));let m=(0,l.ZP)(d),h=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}),m,!(null==a?void 0:a.fullHead.includes("canonical"))&&(0,s.jsx)("link",{rel:"canonical",href:"https://www.trane.com".concat(h)}),(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),l=a(4298),n=a.n(l);t.Z=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n(),{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,l;let{siteOptions:n,zip:o}=null!=e?e:{},c=(0,i.Z)(null==n?void 0:n.enableNcpCampaigns,o);return(0,s.jsxs)("div",{"data-testid":"NCPAreaDisclaimer",id:"disclaimer",children:[c===i.c.southCampaign&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==n?void 0:null===(t=n.ncpAreaBasedDisclaimers)||void 0===t?void 0:t.southCampaignDisclaimer})}),c===i.c.northCampaign&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==n?void 0:null===(a=n.ncpAreaBasedDisclaimers)||void 0===a?void 0:a.northCampaignDisclaimer})}),c===i.c.allUsers&&(0,s.jsx)("div",{className:"container mx-auto p-4 text-sm",children:(0,s.jsx)(r.Z,{content:null==n?void 0:null===(l=n.ncpAreaBasedDisclaimers)||void 0===l?void 0:l.allUsersDisclaimer})})]})}},1445:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});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()})},l=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=n(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)}},n=(e,t,a)=>{if(!e.current)return null;let s=e=>{var s,i,r,l,n;if(!(null==e?void 0:e.address_components))return;let o=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),c={addressLine1:"".concat(null!==(s=o.street_number)&&void 0!==s?s:""," ").concat(null!==(i=o.route)&&void 0!==i?i:"").trim(),city:null!==(r=o.locality)&&void 0!==r?r:"",state:null!==(l=o.administrative_area_level_1)&&void 0!==l?l:"",zip:null!==(n=o.postal_code)&&void 0!==n?n:""};t(e=>({...e,...c})),null==a||a(c)};return e.current.addListener("place_changed",()=>{var t;s(null===(t=e.current)||void 0===t?void 0:t.getPlace())})},o=(e,t)=>{let{name:a,value:s}=e.currentTarget;t(e=>({...e,[a]:s}))};var c=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 m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,externalSetState:a,validationFieldNames:i}=e,[r,n]=(0,s.useState)({addressLine1:"",city:"",state:"",zip:""}),[m,h]=(0,s.useState)(null),x=(0,s.useMemo)(()=>null!=a?a:n,[a]),p=a?void 0:r,f=(0,s.useRef)(null),u=(0,s.useRef)(null),v=(0,s.useCallback)(e=>{u.current=e,h(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&&m&&l(f,u,x,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,m,x,g]),{address:p,setAddress:x,handleChange:e=>{o(e,x)},setInputRef:v,autocompleteRef:f,GoogleMapsScript:c.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(/