"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6057],{60059:function(e,t){t.Z={src:"/_next/static/media/filled.5be78214.png",height:31,width:31,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAM1BMVEVMaXH5zh320Bv71Rvz0Q730Bv2zRv40Bz2zRv40Rv2zxv3zxv2zhz1zRv2zRz+2B3/6R/nT/pUAAAAEHRSTlMAFZ2RB9hx/WFP+rp8gT7+15joEgAAAAlwSFlzAAALEwAACxMBAJqcGAAAADtJREFUeJwVyEkOACEMBLECAgnLTOf/r0WcLBkzWmAAxfsjxpbXMakpd2XAp+VrAr+kXoCWu+ebM7ETXDUYAaUHktWcAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},71986:function(e,t){t.Z={src:"/_next/static/media/half-filled.2d471909.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAS1BMVEVMaXH31R360Rz50Rn40Bnm5+X2zxzp0qD+2x32zBzo6/Pq4LD17Lrr7Ory00rs3JHy5qnX7//2zhzo37bn5+fyziTl5+nr7/n9//9TCd7UAAAAF3RSTlMAIYn+6UhWBPw+rf3+nSlw/SC+wVcVg2sLE/gAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA9SURBVHicBcEHAsAgCACxU0Cc3a3+/6VNwNl23MGJx4kTUtJezSiSpc1Voai0ORy4cp8GhKz3GkCJL8/HD0JzAgdi8q0JAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},1287:function(e,t){t.Z={src:"/_next/static/media/unfilled.026b8cfd.png",height:31,width:31,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAMFBMVEVMaXHn6url5+jy9PXk5ejq7e7l5+jz8/Pt5+3n6ern6uvt7vDm6Onk5ufm5ur////PqlBSAAAAD3RSTlMAUfz+Zv57BxWd0ZG65T5xOodlAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAOUlEQVR4nBXIxw3AMAwAsVN3S7T/toZfBAjFdgpgxHq4H4uZwmxTtXbIUFUB/jD7BrD7rH6TQqVwAShrASsFtxraAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},65755:function(e,t,a){var r=a(85893),s=a(60059),l=a(1287),n=a(71986),o=a(25675),i=a.n(o),c=a(47013),d=a(93967),u=a.n(d);t.Z=e=>{let{rating:t,total:a=0,includeTotal:o=!1,darkMode:d=!1,variant:m,onClick:p,addClass:A=""}=e,x=t.toFixed(1),h="small"===m?15:16,g="small"===m?15:16;return(0,r.jsxs)("div",{className:u()("review-stars inline-flex items-center",A),children:["small"!==m&&(0,r.jsx)("span",{className:u()("mr-1 font-semibold lg:mr-2",d?"text-white":"text-black"),children:x}),[void 0,void 0,void 0,void 0,void 0].map((e,a)=>{let o=a+1,c=t>=o?s.Z:to-1?n.Z:l.Z;return(0,r.jsx)(i(),{src:c,alt:"Star Icon",width:h,height:g},a)}),p&&!!o&&(0,r.jsxs)(c.Z,{onClick:p,disableBase:!0,size:"none",addClass:u()("ml-3 font-bold","small"===m?"text-sm":"text-base",d?"text-white":"text-trane-red"),primary:!1,dataTrackingProps:{position:"body",location:"dealer card",action:"pop-up",textGrouping:"google reviews",text:"".concat(a," Google Reviews"),type:"link"},children:[a," Google Reviews"]}),!p&&!!o&&(0,r.jsxs)("span",{className:"ml-3",children:[e.total," Google Reviews"]})]})}},7354:function(e,t,a){var r=a(85893),s=a(67294),l=a(83275),n=a(41342),o=a(30654),i=a(68188);t.Z=e=>{let[t,a]=(0,s.useState)(i.gJ.tel.slice(1)),[c,d]=(0,s.useState)(!1),{whoDisOverrideNumber:u=""}=(0,s.useContext)(o.z),{phoneNumbers:m=[],directNumber:p="",specifiedNumber:A="",children:x,linkClass:h="text-trane-red hover:text-hover-red",numberClass:g,excludeOneDisplay:f=!1,dataLocation:b="",dataPosition:C="",autoLaunch:v=!1}=e,w=u===i.gJ.tel||!u;return(0,s.useEffect)(()=>{let e="";if(A&&"N/A"!==A&&(e=11===A.length?A.slice(1):A),!e&&m.length){let t=m.find(e=>e.numberType===n.Z.general);(null==t?void 0:t.number)&&(e=t.number.slice(1))}!e&&p&&(e=p),e||w||(e=u.slice(1)),e||(e=i.gJ.tel.slice(1)),e&&t!==e&&a(e),(null==t?void 0:t.length)&&v&&!c&&(d(!0),window.open("tel:+".concat((0,l.Z)(t,f)),"_self"))},[t,m,p,A,u,w,v,c,f]),(0,r.jsxs)("a",{href:"tel:+".concat((0,l.Z)(t)),className:h,id:"WhodisLink","data-position":C,"data-location":b,"data-action":"call","data-text-grouping":"phone number","data-text":(0,l.Z)(t),"data-type":"link",children:[x," ",(0,r.jsx)("span",{className:g,children:(0,l.Z)(t,f)})]})}},41940:function(e,t,a){var r=a(85893),s=a(35008),l=a(85633),n=a(43078),o=a(67294),i=a(25261),c=a(52738),d=a(83884);t.Z=e=>{let{show:t,onClose:a,companyId:u,cardPosition:m,dealerName:p,ctaButtonText:A}=e,x="contact-your-local-dealer",h=(0,o.useRef)(null),g=(0,o.useRef)(null),f="first-name-".concat((0,o.useId)()),b="last-name-".concat((0,o.useId)()),C="email-".concat((0,o.useId)()),v="phone-".concat((0,o.useId)()),[w,N]=(0,o.useState)({addressLine1:"",city:"",state:"",zip:""}),j=window.useTraneInfo,[y,k]=(0,o.useState)(!1),E=(0,o.useRef)(!1),T=e=>{E.current||((0,d.p)({event:"dealer_form_start",formId:x,cardPosition:m,dealerName:p,fieldStarted:e}),E.current=!0)};return(0,o.useEffect)(()=>{t&&(E.current=!1)},[t]),(0,r.jsxs)(c.Z,{onClose:a,show:t,title:"Contact your local dealer",lastFocusableElement:g,children:[(0,r.jsx)(l.Z,{}),(0,r.jsxs)("div",{className:"px-8",children:[!y&&(0,r.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,r.jsx)("div",{children:(0,r.jsxs)(n.l0,{id:x,companyId:u,trackFormSubmitted:!0,brand:"Trane",kind:"CONTACT_DEALER",source:j?"TRANEINFO:CONTACT_DEALER_MODAL":"TRANE:CONTACT_DEALER_MODAL",formContainerRef:h,name:"CONTACT LOCAL DEALER MODAL",className:"grid gap-5",successNode:(0,r.jsx)(i.Z,{isDealer:!!u}),successWrapperClassName:"col-span-full",onSubmit:()=>{(0,d.p)({event:"dealer_form_success",formId:x,cardPosition:m,dealerName:p,dataText:A,zipcode:w.zip}),k(!0)},onError:()=>{(0,d.p)({event:"dealer_form_error",formId:x,cardPosition:m,dealerName:p,dataText:A})},children:[(0,r.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2 lg:gap-6",children:[(0,r.jsx)(n.oi,{label:"First name",name:"firstName",id:f,autoComplete:"given-name",onChange:()=>T("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,r.jsx)(n.oi,{label:"Last name",name:"lastName",id:b,autoComplete:"family-name",onChange:()=>T("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,r.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2",children:[(0,r.jsx)(n.U5,{label:"Email",name:"email",id:C,autoComplete:"email",required:!0,onChange:()=>T("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,r.jsx)(n.sb,{label:"Phone number",name:"phone",autoComplete:"tel",id:v,onChange:()=>T("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,r.jsx)(s.Z,{addressLine1:w.addressLine1,city:w.city,state:w.state,zip:w.zip,setContactData:e=>{"function"==typeof e?N(t=>e(t)):N(t=>({...t,...e})),T("addressLine1")},companyId:u}),(0,r.jsx)(n.Q2,{children:(0,r.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,r.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,r.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"})]})})]})]})}},33353:function(e,t,a){var r=a(85893),s=a(29219),l=a(52738),n=a(95638);t.Z=e=>{let{show:t=!1,onClose:a,companyId:o=0,metaData:i,companyName:c}=e;return(0,r.jsx)(l.Z,{onClose:a,show:t,title:"".concat(c," Reviews"),children:(0,r.jsx)(s.Z,{companyId:o,metaData:i,fetchReviews:n.Z})})}},29219:function(e,t,a){var r=a(85893),s=a(67294),l=a(65755),n=a(47013),o=a(14701);t.Z=e=>{var t;let{companyId:a,metaData:i={},fetchReviews:c}=e,[d,u]=(0,s.useState)(0),[m,p]=(0,s.useState)([]);if((0,s.useEffect)(()=>{c(a,d,10).then(e=>{e&&p([...m,...e.reviews])})},[a,d,10]),0!==m.length)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex w-full items-center border-t px-6 pt-6",children:[(0,r.jsx)("span",{className:"mr-3 text-lg md:text-4xl",children:i.average_rating}),(0,r.jsx)(l.Z,{rating:null!==(t=i.average_rating)&&void 0!==t?t:0,total:i.total_review_count,includeTotal:!0,addClass:"pr-3"})]}),(0,r.jsx)("div",{className:"p-6",children:m.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"border-t py-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{className:"pr-3 text-lg",children:e.author_name}),(0,r.jsx)(l.Z,{rating:e.rating,addClass:"pr-3"}),(0,r.jsx)("span",{className:"text-sm",children:e.date})]}),(0,r.jsx)("div",{className:"pt-3",children:e.text})]}),""!==e.owner_response&&(0,r.jsx)("div",{className:"mb-6 border-t pt-6",children:(0,r.jsxs)("blockquote",{className:"border-l-4 pl-4",children:[(0,r.jsx)("strong",{children:"Response from Owner"})," ",(0,r.jsx)("span",{className:"text-sm",children:e.owner_response_date}),(0,r.jsx)("div",{className:"pt-3",children:e.owner_response})]})})]},t))}),(0,r.jsxs)("div",{className:"flex flex-col p-6 md:flex-row md:items-center md:justify-between",children:[m.lengthu(d+1),children:["See More ",(0,r.jsx)(o.Z,{svgClass:"stroke-trane-red inline ml-2"})]})}),(0,r.jsxs)("div",{className:"w-full py-4 text-center md:w-auto md:py-0",children:["Showing ",m.length," out of ",i.total_review_count]}),(0,r.jsx)("div",{className:"text-center md:text-right",children:(0,r.jsx)("a",{className:"text-trane-red",href:"https://support.google.com/contributionpolicy/?hl=en&ref_topic=6001257&visit_id=637844246357535220-2738020262&rd=2#topic=7422769",target:"blank",children:"Google Review Terms and Conditions"})})]})]})}},95638:function(e,t,a){var r=a(33919);let s=async(e,t,a)=>{let s=(0,r.Z)("STAGING");try{let r=await fetch("".concat("https://".concat(s,".mtechapis.com/reviews/dealers/retrieve-reviews"),"/").concat(e,"?page=").concat(t,"&pageAmount=").concat(a));return await r.json()}catch(e){console.error("Error fetching dealer reviews | ".concat(e))}};t.Z=s},2372:function(e,t){t.Z=(e,t,a,r)=>{if(!e||!t||!a||!r)return"/404/";let s="".concat(e,"-").concat(t,"-").concat(a,"-").concat(r,"/");return"/residential/en/dealers/".concat(s.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/\--+/g,"-"),"/")}},78853:function(e,t,a){a.d(t,{$:function(){return r}}),a(33919),a(34155);let r=async(e,t,a,r,s)=>{let l={status:0,body:"",error:null};if(!e||!t||!a||!r)return l.status=400,l.error="Missing required parameters!",l;try{let n=await fetch("/residential/api/whodis",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({routingGroupID:e,sessionID:t,pageReferrer:a,leaseName:r,metaData:s})});l.status=n.status,l.body=(await n.json()).message.leasePhoneNumber}catch(e){0===l.status&&(l.status=500),l.body="",l.error=e}return l}},32293:function(e,t){t.Z=e=>{let t=e.toLowerCase().split(" ");for(var a=0;a{if("undefined"==typeof document)return null;let e=(document.cookie?document.cookie.split("; "):[]).find(e=>e.startsWith("_ga="));if(!e)return null;let t=(e.split("=")[1]||"").split(".");return t.length>2?t.slice(2).join("."):null}},88964:function(e,t){t.Z=function(){var e;let t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if("undefined"==typeof document)return null;let s=document.cookie?document.cookie.split("; "):[],l=r||"LVLPVPPB5X";if(l&&(t=s.find(e=>e.startsWith("_ga_".concat(l)))),!t)return null;let n=((null===(e=t.split("=")[1])||void 0===e?void 0:e.replace("GS2.1.",""))||"").split("$").find(e=>e.startsWith(a));return(null==n?void 0:n.slice(1))||null}}}]);