1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6272],{12197:function(e,a,t){t.r(a),t.d(a,{default:function(){return f}});var r=t(85893),i=t(67294),n=t(25675),o=t.n(n),l=t(60059),s=t(33919),c={Alabama:"America/Chicago",Alaska:"America/Anchorage",Arizona:"America/Phoenix",Arkansas:"America/Chicago",California:"America/Los_Angeles",Colorado:"America/Denver",Connecticut:"America/New_York",Delaware:"America/New_York",Florida:"America/New_York",Georgia:"America/New_York",Hawaii:"Pacific/Honolulu",Idaho:"America/Boise",Illinois:"America/Chicago",Indiana:"America/Indiana/Indianapolis",Iowa:"America/Chicago",Kansas:"America/Chicago",Kentucky:"America/New_York",Louisiana:"America/Chicago",Maine:"America/New_York",Maryland:"America/New_York",Massachusetts:"America/New_York",Michigan:"America/Detroit",Minnesota:"America/Chicago",Mississippi:"America/Chicago",Missouri:"America/Chicago",Montana:"America/Denver",Nebraska:"America/Chicago",Nevada:"America/Los_Angeles","New Hampshire":"America/New_York","New Jersey":"America/New_York","New Mexico":"America/Denver","New York":"America/New_York","North Carolina":"America/New_York","North Dakota":"America/Chicago",Ohio:"America/Ne
1w_York",Oklahoma:"America/Chicago",Oregon:"America/Los_Angeles",Pennsylvania:"America/New_York","Rhode Island":"America/New_York","South Carolina":"America/New_York","South Dakota":"America/Chicago",Tennessee:"America/Chicago",Texas:"America/Chicago",Utah:"America/Denver",Vermont:"America/New_York",Virginia:"America/New_York",Washington:"America/Los_Angeles","West Virginia":"America/New_York",Wisconsin:"America/Chicago",Wyoming:"America/Denver",Alberta:"America/Edmonton","British Columbia":"America/Vancouver",Manitoba:"America/Winnipeg","New Brunswick":"America/Moncton","Newfoundland and Labrador":"America/St_Johns","Nova Scotia":"America/Halifax","Northwest Territories":"America/Yellowknife",Nunavut:"America/Iqaluit",Ontario:"America/Toronto","Prince Edward Island":"America/Halifax",Quebec:"America/Montreal",Saskatchewan:"America/Regina",Yukon:"America/Whitehorse"},d=function(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(null===e)return null;let r=c[a],i=new Date(t.toLocaleString("en-US",{timeZone:r})),n=i.toLocaleDateString("en-US",{weekday:"short"}).toLowerCase(),o=100*i.getHours()+i.getMinutes(),l=e[n];if(!l||"closed"===l.toLowerCase())return!1;let[s,d]=l.split(" to ");if(s.includes("12:00:00")&&d.includes("12:00:00")||s===d)return!0;let m=e=>{let[a,t]=e.split(" "),[r,i]=a.split(":");return r=parseInt(r,10),i=parseInt(i,10),"PM"===t&&12!==r&&(r+=12),"AM"===t&&12===r&&(r=0),100*r+i},h=m(s),x=m(d);return h<x?o>=h&&o<=x:o>=h||o<=x},m={src:"/_next/static/media/pdp_dealer_card_bubble.9d367c45.png",height:2048,width:2048,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAYFBMVEVxX1UwFgxxbG1HNCteUkpNSkR4dHEoKi5qZFxNQjk5JBowOUQgISRxaWNkY2NsSTyQgHmclY7M0tulnZ8cHyQZGh6ln4yYj3w+MCtYMCGMhona1c17Wk25vsXGw78iEwsNX1zSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAARElEQVR4nAXBBQLAIAwEsCtOcZgb///lEkwqo/f3QpYY9TkJwiTJTAdE+6ry0oNxG0AVaNW0Ec7B6n1LcV0QvcshWPsDcTwC5vpcvZwAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},h=t(1287),x=t(71986),A=t(93967),u=t.n(A),g=e=>{let{rating:a,total:t=0,addClass:i="",darkMode:n=!1}=e,s=a.toFixed(1);return(0,r.jsxs)("div",{className:u()("review-stars block items-center md:inline-flex",i),children:[(0,r.jsx)("span",{className:u()("mr-1 font-semibold lg:mr-2",n?"text-white":"text-black"),children:s}),[void 0,void 0,void 0,void 0,void 0].map((e,t)=>{let i=t+1,n=a>=i?l.Z:a<i&&a>i-1?x.Z:h.Z;return(0,r.jsx)(o(),{className:"mr-2",src:n,alt:"",width:18,height:18},t)}),(0,r.jsx)("br",{className:"block md:hidden"}),(0,r.jsxs)("span",{className:u()("my-2 ml-0 font-Lato text-16 font-500 md:ml-3",n?"text-white":"text-trane-red"),children:[t," Google Reviews"]})]})},w=t(83275),v=t(83446),f=e=>{var a,t,n,c,h,x,A,u;let{medium:f,small:p,xs:N}=(0,v.Z)(),b="Find a Local Pro";f?b="Find a Local Pro":(p||N)&&(b="Find a Pro");let k={"data-position":"body","data-location":"card","data-action":"internal link","data-text-grouping":"","data-type":"button"},j=null==e?void 0:e.dealer,C=null!==(u=null==j?void 0:null===(c=j.whodis)||void 0===c?void 0:null===(n=c.assignedNumbers)||void 0===n?void 0:null===(t=n.find(e=>"organic-search"===e.numberType))||void 0===t?void 0:null===(a=t.number)||void 0===a?void 0:a.slice(1))&&void 0!==u?u:null==j?void 0:null===(h=j.data)||void 0===h?void 0:h.phone1,[_,y]=(0,i.useState)(!1),[L,D]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=(0,s.Z)("PRODUCTION");fetch("https://".concat(e,".mtechapis.com/dealers/lookup?cid=").concat(j.data.companyID),{headers:{"Content-Type":"application/json"}}).then(e=>{if(e.ok)return e.json();throw Error("Network response was not ok.")}).then(e=>{j.data.dealerInfo=e,D(j.data.dealerInfo.data.weekHours)}).catch(e=>{console.error("There was an issue with your fetch request. You may reach out to backend team for more information.",e)})},[j,j.data.companyID]),(0,i.useEffect)(()=>{var e,a;L&&(null==j?void 0:null===(e=j.data.dealerInfo)||void 0===e?void 0:e.data.state)?y(d(L,null===(a=j.data.dealerInfo)||void 0===a?void 0:a.data.state)):y(null)},[L,j]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"relative isolate h-[40rem] w-11/12 overflow-hidden rounded-[2.5rem] bg-black md:h-[40rem] lg:h-[26.875rem] lg:w-11/12 min-[1920px]:h-[40rem]",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(o(),{className:"absolute -z-10 ml-[-18.5rem] mt-[-27rem] h-auto w-[67rem] max-w-none overflow-visible md:ml-[-7rem] md:mt-[-27rem] md:w-[67rem] lg:ml-[18rem] lg:mt-[-40rem] lg:w-[90rem] min-[1920px]:mt-[-58rem] min-[1920px]:w-[130rem] min-[3840p
1x]:mt-[-108rem] min-[3840px]:w-[210rem]",src:m,alt:""})}),(0,r.jsx)("div",{className:"hidden transform-gpu sm:absolute sm:-z-10 sm:blur-xl lg:block","aria-hidden":"true",children:(0,r.jsx)("div",{className:"-mt-20% aspect-[1/2] w-[45rem] bg-gradient-to-r from-[rgb(16,16,16,1)] from-30% via-[rgb(16,16,16,1)] via-50% to-[rgb(16,16,16,.25)]",style:{clipPath:"polygon(0 100%, 100% 100%, 100% 0, 0 0)"}})}),(0,r.jsx)("div",{className:"hidden w-full p-16 lg:flex",children:(0,r.jsxs)("div",{className:"max-w-lg",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("p",{className:"my-2 font-Inter text-12 text-white",children:j.data.city&&j.data.state?"".concat(j.data.city.toUpperCase(),", ").concat(j.data.state.toUpperCase()):"DEALER LOCATOR"}),!0===_?(0,r.jsx)("span",{className:"mb-0 ml-2 mt-[.7rem] font-Inter text-12 text-green-500",children:"OPEN"}):!1===_?(0,r.jsx)("span",{className:"mb-0 ml-2 mt-2.5 font-Inter text-12 text-trane-red",children:"CLOSED"}):(0,r.jsx)(r.Fragment,{})]}),(0,r.jsx)("h2",{className:"my-0 font-Inter text-32 font-500 text-white",children:j.data.name?j.data.name:"Looking for local HVAC service and repair?"}),C?(0,r.jsxs)("p",{className:"flex items-center pb-2 font-Lato text-16 font-500 text-white",children:["Call"," ",(0,r.jsx)("a",{...k,"data-text":C,className:"ml-1 text-white underline hover:text-trane-red",href:"tel:".concat(C),children:(0,w.Z)(C,!1)})]}):null,j.metaData.average_rating&&j.metaData.total_review_count?(0,r.jsx)(g,{rating:j.metaData.average_rating,total:j.metaData.total_review_count,includeTotal:!0,darkMode:!0}):(0,r.jsxs)("p",{className:"my-2 flex items-center py-6 font-Lato text-16 font-500 text-white",children:[[void 0,void 0,void 0,void 0,void 0].map((e,a)=>(0,r.jsx)(o(),{className:"mr-2",src:l.Z,alt:"",width:18,height:18},a))," ",(0,r.jsx)("span",{className:"pl-2",children:"200+ Trusted Dealers"})]}),(0,r.jsx)("div",{className:"flex gap-x-6 pt-2 lg:justify-start",children:(null===(x=j.data)||void 0===x?void 0:x.companyID)?(0,r.jsx)("button",{...k,"data-text":"Schedule Appointment",onClick:()=>e.setshowLeadForm(!0),className:"rounded-full bg-white px-6 py-3 font-Lato text-14 font-500 tracking-wide hover:bg-trane-red hover:text-white md:text-16",children:"Schedule Appointment"}):(0,r.jsx)("a",{...k,"data-text":"Find a Local Pro",href:"/residential/en/dealer-locator/",className:"rounded-full bg-white px-6 py-3 font-Lato text-14 font-500 tracking-wide hover:bg-trane-red hover:text-white md:text-16",children:"Find a Local Pro"})})]})}),(0,r.jsxs)("div",{className:"absolute bottom-0 w-full lg:hidden",children:[(0,r.jsx)("div",{className:"absolute -z-10 flex transform-gpu blur-sm lg:hidden","aria-hidden":"true",children:(0,r.jsx)("div",{className:"aspect-[1/1] h-[44rem] bg-gradient-to-r from-[rgb(16,16,16,1)] from-25% via-[rgb(16,16,16,1)] via-80% to-[rgb(16,16,16,.25)]",style:{clipPath:"polygon(0 100%, 100% 100%, 100% 0, 0 0)",transform:"rotate(-90deg)"}})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{className:"w-11/12 pl-6 md:w-2/3 md:pl-12 lg:w-1/2",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("p",{className:"my-0 font-Inter text-12 font-300 text-white",children:j.data.city&&j.data.state?"".concat(j.data.city.toUpperCase(),", ").concat(j.data.state.toUpperCase()):"DEALER LOCATOR"})," ",!0===_?(0,r.jsx)("span",{className:"mb-0 ml-4 mt-[0.2rem] font-Inter text-12 font-300 text-green-500",children:"OPEN"}):!1===_?(0,r.jsx)("span",{className:"mb-0 ml-4 mt-[0.2rem] font-Inter text-12 font-300 text-trane-red",children:"CLOSED"}):(0,r.jsx)(r.Fragment,{})]}),(0,r.jsx)("h2",{className:"mt-0 pb-0 font-Inter text-24 font-500 text-white md:text-32",children:j.data.name?j.data.name:"Looking for local HVAC service and repair?"}),C?(0,r.jsxs)("p",{className:"flex items-center pb-2 font-Lato text-16 font-500 text-white md:pb-4",children:["Call"," ",(0,r.jsx)("a",{...k,"data-text":C,className:"ml-1 font-500 text-white underline hover:text-trane-red",href:"tel:".concat(C),children:(0,w.Z)(C,!1)})]}):null]}),(0,r.jsx)("div",{className:"flex bg-pdp-slate",children:(0,r.jsxs)("div",{className:"grid h-[6.25rem] w-full grid-cols-2",children:[(0,r.jsx)("div",{className:"flex-1 content-center justify-self-start pl-6 md:pl-12",children:j.metaData.average_rating&&j.metaData.total_review_count?(0,r.jsx)(g,{rating:j.metaData.average_rating,total:j.metaData.total_review_count,includeTotal:!0,darkMode:!0}
1):(0,r.jsxs)("div",{className:"review-stars block items-center md:inline-flex",children:[[void 0,void 0,void 0,void 0,void 0].map((e,a)=>(0,r.jsx)(o(),{className:"mr-2",src:l.Z,alt:"",width:18,height:18},a))," ",(0,r.jsx)("br",{className:"block md:hidden"}),(0,r.jsx)("span",{className:"my-2 ml-0 font-Lato text-16 font-500 text-white md:ml-3",children:"200+ Trusted Dealers"})]})}),(0,r.jsx)("div",{className:"flex-1 content-center justify-self-end pr-6 md:pr-12",children:(null===(A=j.data)||void 0===A?void 0:A.companyID)?(0,r.jsx)("button",{...k,"data-text":"Schedule",onClick:()=>e.setshowLeadForm(!0),className:"rounded-full bg-white px-6 py-3 font-Lato text-14 font-500 hover:bg-trane-red hover:text-white md:text-16",children:"Schedule"}):(0,r.jsx)("a",{...k,"data-text":b,href:"/residential/en/dealer-locator/",className:"rounded-full bg-white px-6 py-3 font-Lato text-14 font-500 hover:bg-trane-red hover:text-white md:text-16",children:b})})]})})]})]})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.