"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1579,5014,4197],{75534:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});var s=a(85893),i=a(67294),r=a(11163),n=a(72095),o=a(32293),l=a(76416),c=a(3798),d=a(83884),p=e=>{let{setZip:t,customFunction:a,zip:r}=e,[n,o]=(0,i.useState)(r),[l,p]=(0,i.useState)(!1),u=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{o(r)},[r]),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("form",{className:"mb-6 flex flex-col items-center lg:mb-10",onSubmit:e=>{e.preventDefault(),(0,d.M)({event:"dealer_slider_zipcode_search",zipcode:n.trim()}),""!==n?(p(!1),localStorage&&localStorage.setItem&&localStorage.setItem("zipcode",n),t(n),a&&a()):p(!0)},children:(0,s.jsxs)("div",{className:"relative flex min-w-300 flex-nowrap lg:min-w-500",children:[(0,s.jsx)("input",{value:n,onChange:function(e){o(e.target.value.trim()),u.current||((0,d.M)({event:"dealer_slider_zipcode_start",zipcode:e.target.value.trim()}),u.current=!0)},autoComplete:"off",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"}),(0,s.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,s.jsx)(c.Z,{svgClass:"stroke-white",pathClass:"stroke-white"})})]})}),l&&(0,s.jsx)("small",{className:"absolute -bottom-6 pl-6 text-trane-red",children:"Zip code or city is required"})]})},u=a(29e3),m=a(25473),h=e=>{let{dealers:t}=e,[a,r]=(0,i.useState)(null),[n,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{r({attributes:{data:{dealer_card_variation:e.dealerCardVariation,desk_options:"",desk_options_active:"1",desk_options_arrows:"1",desk_options_arrows_bg:"white",desk_options_arrows_border:"trane-red",desk_options_arrows_color:"trane-red",desk_options_automatic_transition:"0",desk_options_dots_colors:"cadet",desk_options_dots_navigation:"1",desk_options_infinite_loop:"0",desk_options_slides_per_view:"3",desk_options_transition_effect:"carousel",desk_options_wrapper_css:"0",mobile_options:"",mobile_options_active:"1",mobile_options_arrows:"1",mobile_options_arrows_bg:"white",mobile_options_arrows_border:"trane-red",mobile_options_arrows_color:"trane-red",mobile_options_automatic_transition:"0",mobile_options_dots_colors:"cadet",mobile_options_dots_navigation:"0",mobile_options_infinite_loop:"0",mobile_options_slides_per_view:"1",mobile_options_transition_effect:"carousel",mobile_options_wrapper_css:"0",tablet_options:"",tablet_options_active:"1",tablet_options_arrows:"1",tablet_options_arrows_bg:"white",tablet_options_arrows_border:"trane-red",tablet_options_arrows_color:"trane-red",tablet_options_automatic_transition:"0",tablet_options_dots_colors:"cadet",tablet_options_dots_navigation:"0",tablet_options_infinite_loop:"0",tablet_options_slides_per_view:"1",tablet_options_transition_effect:"carousel",tablet_options_wrapper_css:"0"}},typeOfData:"dealer-locator-slider",innerBlocks:t}),o(t)},[t,e.dealerCardVariation]),(0,s.jsx)(u.Z,{backgroundClass:"w-screen relative left-1/2 right-1/2 -mx-[50vw] pb-16",children:(0,s.jsx)("div",{className:"min-h-570",children:a&&t===n?(0,s.jsx)(m.default,{...a,numberType:e.numberType}):null})})},_=a(47013),g=e=>{let{zip:t}=e;return(0,s.jsx)("section",{className:"py-8 lg:py-20",children:(0,s.jsxs)("div",{className:"container mx-auto text-center",children:[(0,s.jsxs)("h2",{className:"mb-4 text-22 font-semibold lg:text-28",children:["We found 0 dealers servicing near ",t]}),(0,s.jsx)("span",{className:"mb-4 block font-semibold",children:"What this means for you:"}),(0,s.jsx)("span",{className:"mb-6 block px-6 lg:px-72",children:"The zip code may be incorrect. Please check the numbers and try again. Or, we may not have dealers in your area at this time. Expand your search to nearby zip or postal codes and cities."}),(0,s.jsx)(_.Z,{primary:!0,addClass:"rounded-[100px] w-fit",href:"/residential/en/find-a-dealer/",dataTrackingProps:{position:"body",location:"dealer card",textGrouping:"cta",text:"Find more dealers",type:"button",action:"internal link"},children:"Find more dealers"})]})})},f=a(30654),x=e=>{var t,a,c,d,u,m,_,x;let{dealerPhoneNumberType:v,dealerSectionHeader:b,dealerSectionSubHeader:w,applyVerticalPadding:j=!1}=e,k=(0,i.useContext)(f.z),y=k.zip,C=k.setZip,N=(0,r.useRouter)(),Z=("string"==typeof N.query.zipcode?N.query.zipcode:"")||y;(0,i.useEffect)(()=>{Z!==y&&C(Z)},[y,Z,C]);let[L,z]=(0,i.useState)([]),S=L.length,[T,I]=(0,i.useState)(!1),M=(0,l.Z)(["/residential/en/campaigns/mg/trane-hvac-built-to-last/"],N.asPath)||!!parseInt(null===(a=e.attributes)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.useTraneInfo),W=(e,t)=>{(0,n.d)(e,t).then(e=>{z(e.dealers),I(!0)})};return(0,i.useEffect)(()=>{Z&&W(Z,M)},[Z,M]),(0,s.jsxs)("div",{className:j?"pt-6 md:pt-10":"",children:[(0,s.jsx)("div",{className:"container mx-auto flex flex-col items-center justify-between px-4 lg:px-0",children:(0,s.jsxs)("div",{className:"pt-8 lg:w-2/5",children:[(0,s.jsx)("div",{id:"enter-your-zip",children:(0,s.jsx)("h2",{className:"my-0 text-center text-[22px] font-bold md:my-[revert] lg:text-3xl",children:b||"Our HVAC experts can help."})}),(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)("p",{className:"pt-2 text-center",children:w||"We’re here to connect you with a trusted HVAC specialist in your area. Enter your postal/zip code below to get started."})}),(0,s.jsx)("div",{className:"pt-6 md:pt-0",children:(0,s.jsx)(p,{setZip:C,zip:Z})}),S>0&&(0,s.jsxs)("p",{className:"mb-0 pt-1 text-center md:mb-[revert] md:pt-6",children:[(0,s.jsxs)("span",{children:["We found ",(0,s.jsx)("strong",{children:S})," "]}),(0,s.jsx)("strong",{children:"dealers "}),"servicing near",(0,s.jsxs)("span",{className:"font-bold",children:[" ",L.length?(0,o.Z)(null===(c=L[0])||void 0===c?void 0:c.data.city)+",":""," ",L?null===(d=L[0])||void 0===d?void 0:d.data.state:Z]})]})]})}),(0,s.jsxs)("div",{className:"min-h-380 pb-4 lg:w-full",children:[S>=1&&(0,s.jsx)(h,{dealers:L,dealerCardVariation:null===(m=e.attributes)||void 0===m?void 0:null===(u=m.data)||void 0===u?void 0:u.dealer_card_variation,numberType:v?v[0]:null===(x=e.attributes)||void 0===x?void 0:null===(_=x.data)||void 0===_?void 0:_.numberType}),0===S&&T&&(0,s.jsx)(g,{zip:Z})]})]})}},14070:function(e,t,a){var s=a(85893),i=a(16829);t.Z=e=>{let{svgClass:t,pathClass:a,width:r,height:n,...o}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:(0,i.Z)(t||"stroke-cadet"),width:null!=r?r:"24",height:null!=n?n:"24","aria-label":"Arrow Left Icon",...o,children:(0,s.jsx)("path",{d:"M15 18L9 12L15 6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a})})}},14191:function(e,t,a){var s=a(85893),i=a(16829);t.Z=e=>{let{svgClass:t,pathClass:a,width:r,height:n,...o}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:(0,i.Z)(t||"stroke-cadet"),width:null!=r?r:"24",height:null!=n?n:"24","aria-label":"Arrow Right Icon",...o,children:(0,s.jsx)("path",{d:"M9 18L15 12L9 6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:a})})}},3798:function(e,t,a){var s=a(85893),i=a(16829);t.Z=e=>{let{svgClass:t,pathClass:a,size:r,...n}=e;return(0,s.jsxs)("svg",{width:(0,i.Z)(r||"16"),height:(0,i.Z)(r||"16"),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Magnifying Glass Icon",className:(0,i.Z)(t||"stroke-cadet"),...n,children:[(0,s.jsx)("path",{d:"M7.33333 12.6667C10.2789 12.6667 12.6667 10.2789 12.6667 7.33333C12.6667 4.38781 10.2789 2 7.33333 2C4.38781 2 2 4.38781 2 7.33333C2 10.2789 4.38781 12.6667 7.33333 12.6667Z",className:(0,i.Z)(a||"stroke-cadet"),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M14.0001 14L11.1001 11.1",className:(0,i.Z)(a||"stroke-cadet"),strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},40112:function(e,t,a){var s=a(85893);t.Z=e=>{let{className:t="",pathClassName:a="",...i}=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",...i,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:a})})}},29e3:function(e,t,a){a.d(t,{Z:function(){return r}});var s=a(85893);a(67294);var i=a(16829);function r(e){let{backgroundClass:t,contentClass:a="",sectionStyle:r,children:n,fullScreen:o=!1,id:l,testId:c="Container"}=e;return(0,s.jsx)("section",{id:e.sectionId,className:t,style:r,"data-testid":c,children:(0,s.jsx)("div",{id:l,className:(0,i.Z)("container mx-auto w-full print:max-w-full",{"px-4":!o},a),children:n})})}},25014:function(e,t,a){var s=a(85893),i=a(16829);t.Z=e=>{let{noText:t,smallVersion:a}=e;return(0,s.jsxs)("div",{role:"status",className:"flex items-center justify-center",children:[(0,s.jsxs)("svg",{role:"status",className:(0,i.Z)("mr-2 inline animate-spin fill-red-600 text-gray-200 dark:text-gray-600",a?"h-6 w-6":"h-10 w-10"),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"loading spinner",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),!t&&(0,s.jsx)("span",{className:"text-xl",children:" Loading..."})]})}},24623:function(e,t,a){var s=a(85893),i=a(67294),r=a(83275),n=a(41342),o=a(11163),l=a(30654);t.Z=e=>{let t=(0,o.useRouter)(),[a,c]=(0,i.useState)(""),[d,p]=(0,i.useState)(!1),{whoDisOverrideNumber:u=""}=(0,i.useContext)(l.z),{specifiedNumber:m="",phoneNumbers:h=[],directNumber:_="",children:g,linkClass:f="text-trane-red hover:text-hover-red",numberClass:x,excludeOneDisplay:v=!1,dataLocation:b="",dataPosition:w="",autoLaunch:j=!1,enableWhoDisOverride:k=!1}=e,y=["/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(a=>{var s;return(null===(s=e.referer)||void 0===s?void 0:s.includes(a))||t.asPath.includes(a)}),C=["/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(a=>{var s;return(null===(s=e.referer)||void 0===s?void 0:s.includes(a))||t.asPath.includes(a)});return(0,i.useEffect)(()=>{if(!(null==a?void 0:a.length)||a!==(u&&u.slice(1))){if(m.length&&"N/A"!==m)c(m.slice(1));else if(k&&u)c(u.slice(1));else if(h.length){var t;let a;a=e.numberType?e.numberType:(null===(t=window)||void 0===t?void 0:t.useTraneInfo)||C?n.Z.general:y?n.Z.focus:n.Z.organic;let s=h.find(e=>e.numberType===a);(null==s?void 0:s.number)&&c(s.number.slice(1))}else if(_)c(_);else{let e=sessionStorage.getItem("persistedNumber");e&&c(e.slice(1))}}},[a,h,_,y,C,u,m,e.numberType,k]),(null==a?void 0:a.length)&&j&&!d&&(p(!0),window.open("tel:+".concat((0,r.Z)(a,v)),"_self")),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("a",{href:"tel:+".concat((0,r.Z)(a)),className:f,id:"WhodisLink","data-position":w,"data-location":b,"data-action":"call","data-text-grouping":"phone number","data-text":(0,r.Z)(a),"data-type":"link",children:[g," ",(0,s.jsx)("span",{className:x,children:(0,r.Z)(a,v)})]})})}},41342:function(e,t){var a,s;(s=a||(a={})).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=a},83275:function(e,t){t.Z=(e,t)=>{if(!e||"string"!=typeof e)return"";let a=e.replace(/\D/g,"");if(11===a.length&&a.startsWith("1")&&(a=a.slice(1)),10!==a.length)return"";let s=a.slice(0,3),i=a.slice(3,6),r=a.slice(6,10);return"".concat(t?"":"1-").concat(s,"-").concat(i,"-").concat(r)}}}]);