PageSourceSearch

https://www.trane.com/_next/static/chunks/1997.3ec230056d979374.js

js trane.com collected 2026-10-01 10:25:44 UTC 7,957 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1997],{61997:function(e,t,a){a.r(t);var l=a(85893),r=a(67294),n=a(25675),s=a.n(n),d=a(36),o=a(52738),i=a(11163),c=a(15830);t.default=e=>{var t;let[a,n]=(0,r.useState)({active:!1}),[u,m]=(0,r.useState)({active:!1}),{text_alignment:b,"width_50%":h}=e.attributes.data,[x,f]=(0,r.useState)(null),w=(0,d.Z)(),p=(0,i.useRouter)();(0,r.useEffect)(()=>{var t;let a={large:"false",small:"false"};null===(t=e.mediaData)||void 0===t||t.forEach(t=>{t.node.databaseId===e.attributes.data.background_image_large&&(a.large=t.node.sourceUrl),t.node.databaseId===e.attributes.data.background_image_small&&(a.small=t.node.sourceUrl)}),f(a)},[]);let v="";switch(b){case"center":v=v.concat("justify-center");break;case"right":v=v.concat("justify-end");break;case"left":v=v.concat("justify-start")}let g="bsolute top-0 left-0 h-full w-full -z-1 overflow-hidden";return(0,l.jsxs)("div",{"data-testid":"hero-with-modal-buttons",className:"z-1 relative flex justify-center px-6 pb-16 pt-14 text-center text-white md:px-14 md:py-20",children:[x?w?(0,l.jsx)(s(),{className:g,src:x.large,alt:e.attributes.data.heading,fill:!0}):(0,l.jsx)(s(),{className:g,src:x.small,alt:e.attributes.data.heading,fill:!0}):null,(0,l.jsxs)("div",{className:"container z-2 flex flex-col ".concat(v),children:[(0,l.jsxs)("div",{className:"".concat("1"===h||!0===h?"text-left lg:w-1/2":""),children:[e.attributes.data.heading.length>0&&(0,l.jsx)("h1",{className:"mb-4 text-28 text-white md:text-42",dangerouslySetInnerHTML:{__html:(0,c.F)(e.attributes.data.heading.replace("\r\n","<br />"))}}),e.attributes.data.sub_heading.length>0&&(0,l.jsx)("p",{className:"mb-4 text-16 font-normal text-white md:mb-14 ".concat("1"===h||!0===h?"lg:px-0":"lg:px-44"),children:e.attributes.data.sub_heading})]}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center md:flex-row ".concat(v),children:[e.attributes.data.button_left_text.length>0?(0,l.jsx)("a",{className:"".concat(e.buttonSecondary?"border border-white":"bg-trane-red hover:bg-hover-red focus:bg-hover-red"," mb-2 block w-full max-w-380 rounded-md py-3 md:mb-0 md:mr-4 md:inline-block md:w-auto md:px-8"),onClick:()=>n({active:!0}),children:e.attributes.data.button_left_text}):null,(0,l.jsx)(o.Z,{show:a.active,onClose:()=>n({active:!1}),children:(0,l.jsxs)("div",{className:"mb-14 mt-[-30px] px-5 md:px-14",children:[(0,l.jsx)("h4",{children:"Register new product"}),(0,l.jsx)("div",{children:"You will need:"}),(0,l.jsxs)("ul",{children:[(0,l.jsxs)("li",{children:["Product serial number.",(0,l.jsx)("a",{className:"block font-bold text-trane-red lg:mx-3 lg:inline-block",href:"https://www.trane.com/content/dam/Trane/residential/downloads/SNInstructions-Trane.pdf?webSyncID=2365c9a8-d7b6-1b8a-c411-7b53033a7192&sessionGUID=cb3abecb-e48d-9305-b156-a7add7bb6659",target:"_blank",rel:"noreferrer",children:"Find your serial number"})]}),(0,l.jsx)("li",{children:"Installation date"}),(0,l.jsx)("li",{children:"Installed address"}),(0,l.jsx)("li",{children:"Dealer name"})]}),(0,l.jsx)("a",{className:"my-4 mb-2 block w-full max-w-380 rounded-md bg-trane-red py-3 text-center font-bold text-white md:mb-0 md:mr-4 md:inline-block md:w-auto md:px-8",href:"".concat(p.asPath,"register"),target:"_blank",rel:"noreferrer",children:"Register new product"})]})}),(null===(t=e.attributes.data.button_right_text)||void 0===t?void 0:t.length)>0?(0,l.jsxs)("a",{className:"block w-full max-w-380 rounded-md bg-white py-3 text-trane-red hover:text-hover-red focus:text-hover-red md:inline-block md:w-auto md:px-6",onClick:()=>m({active:!0}),children:[e.attributes.data.button_right_text,e.children]}):null,(0,l.jsx)(o.Z,{show:u.active,onClose:()=>m({active:!1}),children:(0,l.jsxs)("div",{className:"mb-14 mt-[-30px] px-5 md:px-14",children:[(0,l.jsx)("h4",{children:"Look up an existing warranty"}),(0,l.jsx)("div",{children:"You will need:"}),(0,l.jsx)("ul",{children:(0,l.jsxs)("li",{children:["Product serial number.",(0,l.jsx)("a",{className:"block font-bold text-trane-red lg:mx-3 lg:inline-block",href:"https://www.trane.com/content/dam/Trane/residential/downloads/SNInstructions-Trane.pdf?webSyncID=2365c9a8-d7b6-1b8a-c411-7b53033a7192&sessionGUID=cb3abecb-e48d-9305-b156-a7add7bb6659",target:"_blank",rel:"noreferrer",children:"Find your serial number"})]})}),(0,l.jsx)("a",{className:"my-4 mb-2 block w-full max-w-380 rounded-md border-2 border-trane-red bg-white py-3 text-center font-bold text-trane-red md:mb-0 md:mr-4 md:inline-block md:w-auto md:px-8",href:"".concat(p.asPath,"lookup"),target:"_blank",rel:"noreferrer",children:"Look up existing warranty"})]})})]}),(0,l.jsx)("div",{className:"mt-2 flex justify-center px-4 md:mt-4 md:px-12 lg:px-60",children:(0,l.jsx)("p",{className:"text-xs italic",children:"*Product Registration and Registration Transfer exclusions vary in the US from state to state and in Canada from province to province. To determine if there are specific exclusions for your state or province, check your local laws."})})]})]})}},52738:function(e,t,a){var l=a(85893),r=a(67294),n=a(73935),s=a(47013),d=a(6004),o=a(16829);t.Z=e=>{let{show:t,onClose:a,children:i,title:c,lastFocusableElement:u,customDimensions:m="h-screen w-screen md:h-fit",modalHeight:b="h-fit",titleClass:h=""}=e,[x,f]=(0,r.useState)(!1),w=(0,r.useRef)(null),p=(0,r.useRef)(null),v=(0,r.useRef)(null),g=(0,r.useId)(),y="modal-title-".concat(g.replace(/:/g,"")),j=(0,r.useCallback)(()=>
1"undefined"==typeof document?null:document.getElementById("__next"),[]),k=(0,r.useCallback)(()=>{document.activeElement instanceof HTMLElement&&(v.current=document.activeElement),p.current&&p.current.focus()},[p]),N=(0,r.useCallback)(()=>{var e;null===(e=v.current)||void 0===e||e.focus(),a&&a()},[a]),_=(0,r.useCallback)(e=>{if("Escape"===e.key){N();return}if("Tab"===e.key){if(!p||!u)return;let a=document.activeElement;if(e.shiftKey&&a===p.current)u.current.focus(),e.preventDefault();else if(!e.shiftKey&&a===u.current){var t;null===(t=p.current)||void 0===t||t.focus(),e.preventDefault()}return}},[N,u]);(0,r.useEffect)(()=>{f(!0)},[]),(0,r.useEffect)(()=>{let e=j();t?(document.body.style.overflow="hidden",e&&(e.style.width="100%"),k()):(document.body.style.overflow="unset",document.body.style.overflowX="hidden",e&&(e.style.width="",e.style.position=""))},[j,t,k]),(0,r.useEffect)(()=>{if(t)document.addEventListener("keydown",_);else try{document.removeEventListener("keydown",_)}catch(e){console.error(e)}},[_,t]);let E=t&&(0,l.jsxs)("div",{id:"modal",role:"dialog","aria-modal":"true","aria-labelledby":c?y:void 0,"data-testid":"Modal--dialog",className:"bottom-0 top-0 z-[1000] h-screen w-screen md:h-full ".concat(t?"fixed":"hidden"),children:[(0,l.jsxs)("div",{className:(0,o.Z)("modal-remove-sb absolute left-1/2 top-1/2 z-[300] max-h-[calc(100vh-2rem)] w-[92vw] max-w-[92vw] -translate-x-1/2 -translate-y-1/2 overflow-auto rounded-lg bg-white pt-16 md:w-fit md:max-w-[95vw] md:pt-12 lg:max-w-960",m,b,e.modalWidth),ref:w,children:[(0,l.jsx)("div",{className:"absolute right-8 top-12 z-20 md:top-5",children:(0,l.jsx)(s.Z,{disableBase:!0,size:"none",addClass:"text-4xl font-light",primary:!1,onClick:N,buttonRef:p,dataTrackingProps:{position:"body",location:"popup",action:"toggle",type:"close"},children:(0,l.jsx)(d.Z,{width:"32",height:"32"})})}),(0,l.jsx)("div",{className:"px-4 sm:px-10",children:(0,l.jsx)("h2",{className:(0,o.Z)("m-0 my-4 whitespace-normal break-words md:text-nowrap",h),id:y,"data-testid":"dialog--title",children:c})}),(0,l.jsx)("div",{className:"min-w-0 max-w-full overflow-auto break-words pb-4 pl-4 pr-4",children:i})]}),(0,l.jsx)("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[250] bg-rich-black/50",onClick:N})]});if(x){let e=document.getElementById("modal-root");return e?n.createPortal(E,e):(console.error('Modal root element not found. Please make sure to add a div with id "modal-root" in your HTML.'),null)}return null}}}]);

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.