(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2069,5419,5633],{40112:function(e,t,r){"use strict";var s=r(85893);t.Z=e=>{let{className:t="",pathClassName:r="",...n}=e;return(0,s.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:t,"aria-label":"Phone Icon",...n,children:(0,s.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92Z",stroke:"#323232",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r})})}},85633:function(e,t,r){"use strict";var s=r(85893),n=r(40645),a=r.n(n),l=r(4298),i=r.n(l);t.Z=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i(),{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)(a(),{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}"})]})},52069:function(e,t,r){"use strict";r.r(t);var s=r(85893),n=r(67294),a=r(40112),l=r(47013),i=r(41940),o=r(24623);t.default=e=>{let{english:t,spanish:r,french:c,modal:d,buttonText:u}=e.attributes.data,[h,p]=(0,n.useState)(!1);return(0,s.jsx)("section",{className:"bg-neutral","data-testid":"need-help-now-banner",children:!0==t?(0,s.jsxs)("div",{className:"container mx-auto flex h-[127px] w-full flex-col items-center xl:h-[90px] xl:flex-row",children:[(0,s.jsx)("div",{className:"flex w-full flex-row justify-center xl:flex-col",children:(0,s.jsx)("p",{className:"text-lg font-bold xl:ml-[80px]",children:"Need help now?"})}),(0,s.jsxs)("div",{className:"flex w-full flex-row justify-center xl:mr-[53px] xl:items-center xl:justify-end",children:[(0,s.jsxs)("p",{className:"hidden text-right text-lg font-bold xl:inline",children:["Call now"," ",(0,s.jsx)(o.Z,{linkClass:"text-trane-red hover:text-hover-red",excludeOneDisplay:!0})," ","or"]}),(0,s.jsx)(o.Z,{linkClass:"flex flex-col xl:hidden xl:h-[44px] h-[38px] xl:w-[172px] w-[158px] bg-white rounded-[68px] xl:mt-4 ml-2 items-center justify-center border-black border",numberClass:"hidden",children:(0,s.jsxs)("span",{className:"flex flex-row items-center",children:[" ",(0,s.jsx)(a.Z,{className:"mr-2 h-[15px] w-[15px]"})," Call now"," "]})}),!0==d?(0,s.jsxs)("div",{children:[(0,s.jsx)(i.Z,{onClose:()=>p(!1),show:h}),(0,s.jsx)("div",{children:(0,s.jsx)(l.Z,{addClass:"flex flex-col xl:h-[44px] h-[38px] w-fit xl:min-w-[180px] min-w-[158px] bg-white rounded-[68px] ml-2 items-center justify-center font-semibold text-trane-red border-trane-red border hover:border-hover-red focus:border-hover-red hover:text-hover-red focus:text-hover-red",onClick:()=>p(!0),children:u||"Schedule Service"})})]}):(0,s.jsx)(l.Z,{href:"/residential/en/dealer-locator/",addClass:"flex flex-col xl:h-[44px] h-[38px] w-fit xl:min-w-[180px] min-w-[158px] bg-white rounded-[68px] ml-2 items-center justify-center font-semibold text-trane-red border-trane-red border hover:border-hover-red focus:border-hover-red hover:text-hover-red focus:text-hover-red",children:u||"Schedule Service"})]})]}):!0==r?(0,s.jsxs)("div",{className:"container mx-auto flex h-[127px] w-full flex-col items-center xl:h-[90px] xl:flex-row",children:[(0,s.jsx)("div",{className:"flex w-full flex-row justify-center xl:flex-col",children:(0,s.jsx)("p",{className:"text-lg font-bold xl:ml-[80px]",children:"\xbfNecesita ayuda ahora?"})}),(0,s.jsxs)("div",{className:"flex w-full flex-row justify-center p-2 xl:mr-[53px] xl:items-center xl:justify-end",children:[(0,s.jsx)(o.Z,{linkClass:"text-lg font-bold text-right hidden xl:inline text-trane-red hover:text-hover-red",excludeOneDisplay:!0,children:(0,s.jsx)("span",{children:"Llame a"})}),(0,s.jsx)(o.Z,{linkClass:"flex flex-col xl:hidden xl:h-[44px] h-[38px] xl:w-[172px] w-[158px] bg-white rounded-[68px] xl:mt-4 ml-2 items-center justify-center border-black border",numberClass:"hidden",children:(0,s.jsxs)("span",{className:"flex flex-row items-center",children:[" ",(0,s.jsx)(a.Z,{className:"mr-2 h-[15px] w-[15px]"})," Llame"," "]})})]})]}):!0==c?(0,s.jsxs)("div",{className:"container mx-auto flex h-[127px] w-full flex-col items-center xl:h-[90px] xl:flex-row",children:[(0,s.jsx)("div",{className:"flex w-full flex-row justify-center xl:flex-col",children:(0,s.jsx)("p",{className:"text-lg font-bold xl:ml-[80px]",children:"Besoin d’aide maintenant?"})}),(0,s.jsxs)("div",{className:"flex w-full flex-row justify-center p-2 xl:mr-[53px] xl:items-center xl:justify-end",children:[(0,s.jsx)(o.Z,{linkClass:"text-lg font-bold text-right hidden xl:inline text-trane-red hover:text-hover-red",excludeOneDisplay:!0,children:(0,s.jsx)("span",{children:"Appelez le"})}),(0,s.jsx)(o.Z,{linkClass:"flex flex-col xl:hidden xl:h-[44px] h-[38px] xl:w-[172px] w-[158px] bg-white rounded-[68px] xl:mt-4 ml-2 items-center justify-center border-black border",numberClass:"hidden",children:(0,s.jsxs)("span",{className:"flex flex-row items-center",children:[" ",(0,s.jsx)(a.Z,{className:"mr-2 h-[15px] w-[15px]"})," Appelez"," "]})})]})]}):null})}},24623:function(e,t,r){"use strict";var s=r(85893),n=r(67294),a=r(83275),l=r(41342),i=r(11163),o=r(30654);t.Z=e=>{let t=(0,i.useRouter)(),[r,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(!1),{whoDisOverrideNumber:h=""}=(0,n.useContext)(o.z),{specifiedNumber:p="",phoneNumbers:m=[],directNumber:x="",children:f,linkClass:g="text-trane-red hover:text-hover-red",numberClass:b,excludeOneDisplay:v=!1,dataLocation:y="",dataPosition:_="",autoLaunch:j=!1,enableWhoDisOverride:S=!1}=e,C=["/campaigns/2024-fall-offer/","/campaigns/2024-fall-offer-canada/","/campaigns/2025-spring-offer/","/campaigns/2025-spring-offer-canada/","/campaigns/sy/hvac-built-to-last/","/campaigns/mv/hvac-built-to-last/"].some(r=>{var s;return(null===(s=e.referer)||void 0===s?void 0:s.includes(r))||t.asPath.includes(r)}),w=["/campaigns/trane-hvac-built-to-last/","/resources/repair-and-replace/","/campaigns/mg/2025-spring-offer/","/campaigns/mg/trane-hvac-built-to-last/","/campaigns/mg/repair-or-replace/","/campaigns/mg/heat-pump-incentives/"].some(r=>{var s;return(null===(s=e.referer)||void 0===s?void 0:s.includes(r))||t.asPath.includes(r)});return(0,n.useEffect)(()=>{if(!(null==r?void 0:r.length)||r!==(h&&h.slice(1))){if(p.length&&"N/A"!==p)c(p.slice(1));else if(S&&h)c(h.slice(1));else if(m.length){var t;let r;r=e.numberType?e.numberType:(null===(t=window)||void 0===t?void 0:t.useTraneInfo)||w?l.Z.general:C?l.Z.focus:l.Z.organic;let s=m.find(e=>e.numberType===r);(null==s?void 0:s.number)&&c(s.number.slice(1))}else if(x)c(x);else{let e=sessionStorage.getItem("persistedNumber");e&&c(e.slice(1))}}},[r,m,x,C,w,h,p,e.numberType,S]),(null==r?void 0:r.length)&&j&&!d&&(u(!0),window.open("tel:+".concat((0,a.Z)(r,v)),"_self")),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("a",{href:"tel:+".concat((0,a.Z)(r)),className:g,id:"WhodisLink","data-position":_,"data-location":y,"data-action":"call","data-text-grouping":"phone number","data-text":(0,a.Z)(r),"data-type":"link",children:[f," ",(0,s.jsx)("span",{className:b,children:(0,a.Z)(r,v)})]})})}},41940:function(e,t,r){"use strict";var s=r(85893),n=r(35008),a=r(85633),l=r(43078),i=r(67294),o=r(25261),c=r(52738),d=r(83884);t.Z=e=>{let{show:t,onClose:r,companyId:u,cardPosition:h,dealerName:p,ctaButtonText:m}=e,x="contact-your-local-dealer",f=(0,i.useRef)(null),g=(0,i.useRef)(null),b="first-name-".concat((0,i.useId)()),v="last-name-".concat((0,i.useId)()),y="email-".concat((0,i.useId)()),_="phone-".concat((0,i.useId)()),[j,S]=(0,i.useState)({addressLine1:"",city:"",state:"",zip:""}),C=window.useTraneInfo,[w,N]=(0,i.useState)(!1),k=(0,i.useRef)(!1),R=e=>{k.current||((0,d.p)({event:"dealer_form_start",formId:x,cardPosition:h,dealerName:p,fieldStarted:e}),k.current=!0)};return(0,i.useEffect)(()=>{t&&(k.current=!1)},[t]),(0,s.jsxs)(c.Z,{onClose:r,show:t,title:"Contact your local dealer",lastFocusableElement:g,children:[(0,s.jsx)(a.Z,{}),(0,s.jsxs)("div",{className:"px-8",children:[!w&&(0,s.jsx)("p",{className:"pb-4 lg:text-18",children:"Need help? Answer a few questions to connect with a dealer who can help you find your best HVAC solution."}),(0,s.jsx)("div",{children:(0,s.jsxs)(l.l0,{id:x,companyId:u,trackFormSubmitted:!0,brand:"Trane",kind:"CONTACT_DEALER",source:C?"TRANEINFO:CONTACT_DEALER_MODAL":"TRANE:CONTACT_DEALER_MODAL",formContainerRef:f,name:"CONTACT LOCAL DEALER MODAL",className:"grid gap-5",successNode:(0,s.jsx)(o.Z,{isDealer:!!u}),successWrapperClassName:"col-span-full",onSubmit:()=>{(0,d.p)({event:"dealer_form_success",formId:x,cardPosition:h,dealerName:p,dataText:m,zipcode:j.zip}),N(!0)},onError:()=>{(0,d.p)({event:"dealer_form_error",formId:x,cardPosition:h,dealerName:p,dataText:m})},children:[(0,s.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2 lg:gap-6",children:[(0,s.jsx)(l.oi,{label:"First name",name:"firstName",id:b,autoComplete:"given-name",onChange:()=>R("firstName"),required:!0,placeholder:"First name",wrapperClassName:"flex flex-col",labelClassName:"text-sm font-normal pb-1",inputClassName:"rounded-2xl border border-tricorn-black text-black p-4 placeholder:text-14",inputOnErrorClassName:"rounded-2xl border border-trane-red text-black p-4",errorClassName:"text-trane-red",errorMessageClassName:"text-xs",errorMessages:{external:"Please enter your first name",required:"Please enter your first name",none:null,regex:"First name must be at least 2 characters"}}),(0,s.jsx)(l.oi,{label:"Last name",name:"lastName",id:v,autoComplete:"family-name",onChange:()=>R("lastName"),required:!0,placeholder:"Last name",wrapperClassName:"flex flex-col",labelClassName:"text-sm pb-1",inputClassName:"rounded-2xl border border-tricorn-black text-black p-4 placeholder:text-14",inputOnErrorClassName:"rounded-2xl border border-trane-red text-black p-4",errorClassName:"text-trane-red",errorMessageClassName:"text-xs",errorMessages:{external:"Please enter your last name",required:"Please enter your last name",none:null,regex:"Last name must be at least 2 characters"}})]}),(0,s.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2",children:[(0,s.jsx)(l.U5,{label:"Email",name:"email",id:y,autoComplete:"email",required:!0,onChange:()=>R("email"),placeholder:"example@gmail.com",wrapperClassName:"flex flex-col",labelClassName:"text-sm pb-1",inputClassName:"rounded-2xl border border-tricorn-black text-black p-4 placeholder:text-14",inputOnErrorClassName:"rounded-2xl border border-trane-red text-black p-4",errorClassName:"text-trane-red",errorMessageClassName:"text-xs"}),(0,s.jsx)(l.sb,{label:"Phone number",name:"phone",autoComplete:"tel",id:_,onChange:()=>R("phone"),required:!0,placeholder:"(123) 456-7890",wrapperClassName:"flex flex-col",labelClassName:"text-sm pb-1",inputClassName:"rounded-2xl border border-tricorn-black text-black p-4 placeholder:text-14",inputOnErrorClassName:"rounded-2xl border border-trane-red text-black p-4",errorClassName:"text-trane-red",errorMessageClassName:"text-xs"})]}),(0,s.jsx)(n.Z,{addressLine1:j.addressLine1,city:j.city,state:j.state,zip:j.zip,setContactData:e=>{"function"==typeof e?S(t=>e(t)):S(t=>({...t,...e})),R("addressLine1")},companyId:u}),(0,s.jsx)(l.Q2,{children:(0,s.jsxs)("p",{className:"m-0 text-xs lg:col-span-full",children:["By pressing submit, I consent that my information be shared with Trane, approved affiliates, and third party partners, including connecting me with a local Trane dealer to be contacted about products and services. Our"," ",(0,s.jsx)("a",{target:"_blank",href:"https://www.tranetechnologies.com/en/index/privacy-policy.html",rel:"noreferrer noopener",className:"font-normal text-black underline",children:"Privacy Policy"})," ","governs the use of your information."]})}),(0,s.jsx)("button",{type:"submit",className:"m-0 w-full rounded-full bg-trane-red p-4 text-14 font-bold text-white lg:col-span-full",ref:g,"data-position":"body","data-location":"popup","data-action":"submit","data-text-grouping":"cta","data-text":"Submit","data-type":"button",children:"Submit"})]})})]})]})}},41342:function(e,t){"use strict";var r,s;(s=r||(r={})).organic="organic-search",s.paid="paid-search",s.campaign1="campaign-1",s.campaign2="campaign-2",s.valueBrand="value-brand",s.topRightDomain="top-right-domain",s.topRightCampaign="top-right-campaign",s.general="general-campaign",s.focus="focus-campaign",t.Z=r},83275:function(e,t){"use strict";t.Z=(e,t)=>{if(!e||"string"!=typeof e)return"";let r=e.replace(/\D/g,"");if(11===r.length&&r.startsWith("1")&&(r=r.slice(1)),10!==r.length)return"";let s=r.slice(0,3),n=r.slice(3,6),a=r.slice(6,10);return"".concat(t?"":"1-").concat(s,"-").concat(n,"-").concat(a)}},7443:function(e,t,r){"use strict";var s=r(34155);r(91479);var n=r(67294),a=n&&"object"==typeof n&&"default"in n?n:{default:n},l=void 0!==s&&s.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,r=t.name,s=void 0===r?"stylesheet":r,n=t.optimizeForSpeed,a=void 0===n?l:n;c(i(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",c("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o=document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.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||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),s=e+r;return u[s]||(u[s]="jsx-"+d(e+"-"+r)),u[s]}function p(e,t){var r=e+t;return u[r]||(u[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,s=void 0===r?null:r,n=t.optimizeForSpeed,a=void 0!==n&&n;this._sheet=s||new o({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),s&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),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 r=this.getIdAndRules(e),s=r.styleId,n=r.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var a=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=a,this._instancesCounts[s]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var s=this._fromServer&&this._fromServer[r];s?(s.parentNode.removeChild(s),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},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]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],s=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,s=e.id;if(r){var n=h(s,r);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return p(n,e)}):[p(n,t)]}}return{styleId:h(s),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}(),x=n.createContext(null);x.displayName="StyleSheetContext";var f=a.default.useInsertionEffect||a.default.useLayoutEffect,g=new m;function b(e){var t=g||n.useContext(x);return t&&f(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=b},40645:function(e,t,r){"use strict";e.exports=r(7443).style},91479:function(){}}]);