1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[548],{744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NextLink:()=>d});var o=n(95155),r=n(12115),a=n(52619),s=n.n(a),l=n(20063),i=n(8299),c=n(35857);let d=(0,r.forwardRef)((e,t)=>{let{href:n,normalizeHref:r,passHref:a,...d}=e,u=(0,l.useParams)(),p="string"==typeof n&&(null!=r?r:!a)?(0,c.l2)({currentOrigin:(0,i.il)(null==u?void 0:u.domain),paths:[n]}):n;return(0,o.jsx)(s(),{href:p,passHref:a,prefetch:!1,ref:t,...d})});d.displayName="NextLink"},1224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GoogleOneTap:()=>w,resetSuppression:()=>h});var o=n(95155),r=n(12115),a=n(20063),s=n(68321),l=n(31306),i=n(81981),c=n(74992),d=n(84573),u=n(82196);let p="google-one-tap-prompt",m=!1;function h(){m=!1}function w(){let e=(0,r.useRef)(!1),{data:t,isPending:n}=(0,d.Q)(),{isEU:h,loading:w}=(0,u.J$)(),f=i.h.NEXT_PUBLIC_GOOGLE_ONE_TAP_CLIENT_ID,v=(0,a.usePathname)(),g=!n&&!(null==t?void 0:t.isAuthenticated)&&!w&&!h,b=(0,r.useCallback)(()=>{if(!e.current&&!m&&f){e.current=!0;try{window.google.accounts.id.initialize({callback:async e=>{try{let n=await (0,l.OT)("/nwapi/auth/one-tap",{body:{currentPath:v,idToken:e.credential},method:"POST"});if(n.success){var t;null==(t=window.Nitrous)||t.push(()=>{window.Nitrous.logEvent({custom_attributes:{auth_flow_type:n.isNewUser?"signup":"login",auth_provider:"Google One Tap"},event_name:"Auth Callback Landed"})}),setTimeout(()=>{if(n.isNewUser){let e=encodeURIComponent(v),t=v.startsWith("/hotrod")?"/hotrod":"";window.location.href="".concat(t,"/my-account/onboarding?redirect=").concat(e)}else window.location.reload()},300)}}catch(e){m=!0,c.Y.log({error:e,level:"error",msg:"Google One Tap authentication failed",path:"components/GoogleOneTap"})}},cancel_on_tap_outside:!1,client_id:f,context:"signin",itp_support:!0,prompt_parent_id:p,use_fedcm_for_prompt:!0}),window.google.accounts.id.prompt(e=>{e.isNotDisplayed()&&c.Y.log({context:{reason:e.getNotDisplayedReason()},level:"info",msg:"Google One Tap not displayed",path:"components/GoogleOneTap"}),e.isSkippedMoment()&&(window.Nitrous.push(()=>{window.Nitrous.logEvent({custom_attributes:{element_name:"Skip Google One Tap"},event_name:"Click"})}),c.Y.log({context:{reason:e.getSkippedReason()},level:"info",msg:"Google One Tap skipped",path:"components/GoogleOneTap"})),(!e.isDismissedMoment()||"credential_returned"!==e.getDismissedReason())&&e.isDismissedMoment()&&(m=!0)})}catch(e){m=!0,c.Y.log({error:e,level:"error",msg:"Failed to initialize Google One Tap",path:"components/GoogleOneTap"})}}},[f,v]);return((0,r.useEffect)(()=>{var t,n;g&&!m&&f&&!e.current&&(null==(n=window.google)||null==(t=n.accounts)?void 0:t.id)&&b()},[g,f,b]),g&&!m&&f)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"z-top fixed top-12 right-0 lg:top-16","data-testid":"google-one-tap-prompt",id:p}),(0,o.jsx)(s.default,{id:"google-one-tap",onReady:b,src:"https://accounts.google.com/gsi/client",strategy:"lazyOnload"})]}):null}},4259:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(12115),r=n(31306),a=n(56452),s=n(65539),l=n(74992),i=n(56600),c=n(10423);function d(){let[e,t]=(0,o.useState)(!1),{brand:n}=(0,i.A)(c.Z);return(0,o.useEffect)(()=>{let n=()=>{"visible"===document.visibilityState&&e&&t(!1)},o=()=>{e&&t(!1)};return document.addEventListener("visibilitychange",n),window.addEventListener("popstate",o),()=>{document.removeEventListener("visibilitychange",n),window.removeEventListener("popstate",o)}},[e]),{handleLogout:()=>{let e=n!==s.mz.Hotrod||window.location.hostname.includes("hotrod.com")?"":"/".concat(s.mz.Hotrod),t="".concat(window.location.origin).concat(e,"/cleanup-user-details"),o="".concat(a.LK.LogoutUrl,"?client_id=").concat((0,a.Gl)(n),"&logout_uri=").concat(encodeURIComponent(t));window.location.href=o},handleSignIn:async()=>{if(!a.LK.ApiUrl)return void l.Y.log({error:Error("Mylo API URL is not configured correctly"),level:"error",msg:"Sign-in attempted but Mylo API URL not configured correctly",path:window.location.pathname});try{t(!0);let{url:e}=await (0,r.OT)("/nwapi/auth/initiate",{body:{currentPath:window.location.pathname,mode:"signin"},method:"POST"});window.location.href=e}catch(e){l.Y.log({error:e,level:"error",msg:"Failed to initiate sign-in",path:window.location.pathname}),t(!1)}},handleSignUp:async()=>
1{if(!a.LK.ApiUrl)return void l.Y.log({error:Error("Mylo API URL is not configured correctly"),level:"error",msg:"Sign-up attempted but Mylo API URL not configured correctly",path:window.location.pathname});try{t(!0);let{url:e}=await (0,r.OT)("/nwapi/auth/initiate",{body:{currentPath:window.location.pathname,mode:"signup"},method:"POST"});window.location.href=e}catch(e){l.Y.log({error:e,level:"error",msg:"Failed to initiate sign-up",path:window.location.pathname}),t(!1)}},isSigningIn:e}}},6316:(e,t,n)=>{Promise.resolve().then(n.bind(n,61105)),Promise.resolve().then(n.bind(n,18742)),Promise.resolve().then(n.bind(n,25126)),Promise.resolve().then(n.bind(n,98323)),Promise.resolve().then(n.bind(n,92744)),Promise.resolve().then(n.bind(n,4356)),Promise.resolve().then(n.bind(n,58739)),Promise.resolve().then(n.bind(n,22294)),Promise.resolve().then(n.bind(n,95229)),Promise.resolve().then(n.bind(n,32947)),Promise.resolve().then(n.bind(n,881)),Promise.resolve().then(n.bind(n,10828)),Promise.resolve().then(n.bind(n,78019)),Promise.resolve().then(n.bind(n,43763)),Promise.resolve().then(n.bind(n,1224)),Promise.resolve().then(n.bind(n,20853)),Promise.resolve().then(n.bind(n,744)),Promise.resolve().then(n.t.bind(n,27549,23)),Promise.resolve().then(n.t.bind(n,24425,23)),Promise.resolve().then(n.t.bind(n,41402,23)),Promise.resolve().then(n.bind(n,3904)),Promise.resolve().then(n.bind(n,46772))},10423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(58718);let r=e=>e[o.w4]},10828:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrandSetup:()=>s});var o=n(12115),r=n(65539),a=n(56600);function s(e){let{brand:t=r.mz.Motortrend}=e,{setBrand:n}=(0,a.A)();return(0,o.useEffect)(()=>{n(t)},[t,n]),null}},10877:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(95155);function r(e){let{fill:t="white"}=e;return(0,o.jsxs)("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M3.21585 0.017613L3.21602 0L3.21557 0.0210135L3.21568 0.0485375C3.21568 1.88055 1.77601 3.36568 0 3.36568C1.77601 3.36568 3.21568 4.84358 3.21568 6.66667C3.21568 4.86523 4.61459 3.40079 6.35296 3.36632V3.36507C4.61459 3.33043 3.21568 1.85884 3.21568 0.0485375L3.21585 0.017613Z",fill:t}),(0,o.jsx)("path",{d:"M10.1266 1.09108C10.1266 1.04478 10.1269 0.998535 10.1276 0.952381H10.1257C10.1263 0.998535 10.1266 1.04478 10.1266 1.09108Z",fill:t}),(0,o.jsx)("path",{d:"M10.1266 1.09108C10.1266 6.26331 14.1235 10.4678 19.0902 10.5669V10.5704C14.1235 10.669 10.1266 14.853 10.1266 20C10.1266 14.7912 6.01317 10.5686 0.938956 10.5686C6.01317 10.5686 10.1266 6.32539 10.1266 1.09108Z",fill:t}),(0,o.jsx)("path",{d:"M16.8627 13.3819C16.8627 15.1922 18.2616 16.6638 20 16.6984V16.6996C18.2616 16.7342 16.8627 18.1985 16.8627 20C16.8627 18.1769 15.4231 16.699 13.647 16.699C15.4231 16.699 16.8627 15.2139 16.8627 13.3819Z",fill:t})]})}},20853:(e,t,n)=>{"use strict";n.d(t,{default:()=>U});var o=n(95155),r=n(20063),a=n(92062),s=n(81981),l=n(80946),i=n(61562),c=n(65539),d=n(65121),u=n(744),p=n(84573),m=n(4259),h=n(14e3);function w(){let{handleSignUp:e,isSigningIn:t}=(0,m.A)();return(0,o.jsx)(a.$n,{className:"h-8 !px-2 max-lg:!rounded-sm lg:h-auto lg:!px-4",colorScheme:"transparent","data-id":"auth-sign-in-button","data-parent":"global-header",disabled:t,onClick:e,typographyProps:{variant:"button2"},children:t?h.HG.login.completingSignIn:h.HG.button.signIn})}var f=n(12115),v=n(15239),g=n(85409),b=n(89440),y=n.n(b),x=n(81718),T=n(53455),O=n(31306),E=n(74992);let N=["userAccountData"];var _=n(92182),k=["title","titleId"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}let j=function(e){var t=e.title,n=e.titleId,o=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,k);return f.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,"aria-labelledby":n},o),t?f.createElement("title",{id:n},t):null,f.createElement("path",{d:"M32 15.898C32 7.2 24.836.145 16 .145S0 7.199 0 15.898s7.164 15.754 16 15.754 16-7.054 16-15.754m0 0",style:{stroke:"none",fillRule:"nonzero",fill:"#e90c17",fillOpacity:1}}),f.createElement("path",{d:"m14.7 8.836-2.145 7.129h-.137l.137-7.13H8.813L6.62 22.962H9.36l1.278-8.14h.093l-.136 8.14h1.734l2.324-8.14h.137l-1.277 8.14h2.738l2.191-14.125Zm4.425 0-.363 2.332h1.597l-1.824 11.793h3.055l1.828-11.793h1.598l.363-2.332Zm0 0",style:{stroke:"none",fillRule:"nonzero",fill:"#fcfcfd",fillOpacity:1}}))};
1var C=n(56600),P=n(10423);function S(e){let{userEmail:t,userName:n}=e,{avatarUrl:s,isLoading:l}=function(e){var t,n;let{data:o,error:r,isLoading:a}=(0,T.useQuery)({enabled:e,queryFn:async()=>{try{return await (0,O.OT)("/nwapi/mt-user-data/user-account")}catch(e){return E.Y.log({error:e,level:"warn",msg:"Failed to fetch user account name",path:window.location.pathname}),null}},queryKey:N}),s=(null==o||null==(t=o.data)?void 0:t.name)||null;return{avatarUrl:(null==o||null==(n=o.data)?void 0:n["mt-avatar"])||"",error:r,isLoading:a,userName:s}}(!0),{handleLogout:i}=(0,m.A)(),{brand:d}=(0,C.A)(P.Z),p=(0,r.usePathname)(),w=d===c.mz.Hotrod&&p.startsWith("/".concat(c.mz.Hotrod))?"/".concat(c.mz.Hotrod):"",b=d===c.mz.Hotrod?_.A:j,[k,L]=(0,f.useState)(!1),S=(0,f.useRef)(null),A=(0,f.useRef)(null),I=(0,x.i)(s),U=(0,a.dv)("lg");(0,f.useEffect)(()=>{function e(e){S.current&&A.current&&!S.current.contains(e.target)&&!A.current.contains(e.target)&&L(!1)}if(k)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[k]),(0,f.useEffect)(()=>{function e(e){if("Escape"===e.key&&k){var t;L(!1),null==(t=A.current)||t.focus()}}if(k)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[k]);let G=[{href:"".concat(w,"/my-account/profile"),icon:g.Gbn,id:"profile",label:h.HG.profile.tabs.profile},{href:"".concat(w,"/my-account/saved"),icon:g.LSy,id:"saved",label:h.HG.profile.tabs.saved},{href:"".concat(w,"/my-account/subscriptions"),icon:g.Aqi,id:"subscriptions",label:h.HG.profile.tabs.subscriptions}];return(0,o.jsxs)("div",{className:"relative",onMouseEnter:U?()=>{L(!0)}:void 0,onMouseLeave:U?()=>{L(!1)}:void 0,children:[(0,o.jsx)("button",{"aria-expanded":k,"aria-haspopup":"true","aria-label":h.HG.button.myAccount,className:"flex h-7 w-7 flex-none items-center justify-center rounded-sm border-0 bg-transparent p-0 transition-all duration-150 ease-in-out hover:opacity-80 lg:h-8 lg:w-8","data-id":"auth-user-button","data-parent":"global-header",onClick:()=>{L(!k)},ref:A,type:"button",children:s?(0,o.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-sm",children:(0,o.jsx)(v.default,{alt:"".concat(n,"'s avatar"),className:"object-cover",fill:!0,sizes:"32px",src:I})}):(0,o.jsx)(b,{"aria-label":"Speedometer",className:"block overflow-visible",preserveAspectRatio:"xMidYMid meet",role:"img"})}),k&&(0,o.jsx)("div",{"aria-label":"User account menu",className:"absolute top-full right-0 z-50 w-max min-w-[240px] pt-2",ref:S,role:"menu",children:(0,o.jsxs)("div",{className:"bg-neutral-1 animate-slideDown overflow-hidden rounded-lg shadow-lg",children:[(0,o.jsxs)("div",{"aria-busy":l,className:"border-neutral-3 flex items-center gap-3 border-b p-5",role:"status",children:[(0,o.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center",children:s?(0,o.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-sm",children:(0,o.jsx)(v.default,{alt:"".concat(n,"'s avatar"),className:"object-cover",fill:!0,sizes:"40px",src:I})}):(0,o.jsx)(b,{"aria-label":"Speedometer",className:"block",preserveAspectRatio:"xMidYMid meet",role:"img"})}),(0,o.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:l?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.EA,{animation:"pulse",className:"h-4 w-32",variant:"rounded"}),(0,o.jsx)(a.EA,{animation:"pulse",className:"mt-1 h-3 w-40",variant:"rounded"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.o5,{as:"div",className:"text-neutral-8 truncate font-semibold",disableColorScheme:!0,variant:"body2",children:n}),t&&(0,o.jsx)(a.o5,{as:"div",className:"text-neutral-4 truncate text-sm",disableColorScheme:!0,variant:"caption1",children:t})]})})]}),(0,o.jsx)("div",{className:"py-0",children:G.map(e=>(0,o.jsxs)(u.NextLink,{className:"text-neutral-8 hover:bg-neutral-3 flex items-center gap-3 px-5 py-3 transition-all duration-150 ease-in-out focus:outline-0","data-id":"user-menu-".concat(e.id),"data-parent":"user-menu-dropdown",href:e.href,onClick:()=>L(!1),role:"menuitem",children:[(0,o.jsx)(y(),{className:"text-neutral-4 flex-shrink-0 transition-colors duration-150",path:e.icon,size:.67}
1),(0,o.jsx)(a.o5,{as:"span",className:"text-neutral-8 font-medium",disableColorScheme:!0,variant:"body2",children:e.label})]},e.id))}),(0,o.jsx)("div",{className:"bg-neutral-3 h-px"}),(0,o.jsxs)("button",{className:"text-neutral-8 hover:bg-neutral-3 flex w-full items-center gap-3 px-5 py-3 text-left transition-all duration-150 ease-in-out focus:outline-0","data-id":"user-menu-signout","data-parent":"user-menu-dropdown",onClick:i,role:"menuitem",type:"button",children:[(0,o.jsx)(y(),{className:"text-neutral-4 flex-shrink-0 transition-colors duration-150",path:g.r3W,size:.67}),(0,o.jsx)(a.o5,{as:"span",className:"text-neutral-8 font-medium",disableColorScheme:!0,variant:"body2",children:h.HG.button.logOut})]})]})})]})}function A(){var e;let{data:t,isPending:n}=(0,p.Q)();return n?(0,o.jsx)(a.EA,{animation:"pulse",className:"h-7 w-7 lg:h-8 lg:w-8",variant:"rounded"}):(null==t?void 0:t.email)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(S,{userEmail:t.email,userName:null!=(e=t.name)?e:""})}):(0,o.jsx)(w,{})}var I=n(10877);let U=e=>{let{brand:t=c.mz.Motortrend,menuConfig:n,sponsoredLogo:p}=e,m=(0,r.useRouter)(),w=(0,r.usePathname)(),f=t===c.mz.Motortrend,v=f?{joinNewsletterLink:i.BV.Newsletters}:{},g=(0,o.jsx)(o.Fragment,{children:s.h.NEXT_PUBLIC_AI_CHATBOT_ENABLED&&f?(0,o.jsx)(a.$n,{"aria-label":"".concat(h.cu.AIChatbotButtonText," - ").concat(h.cu.AIChatbotBetaText),colorScheme:"neutral-3","data-id":d.Co.AIChatbotGlobalHeaderButton,"data-parent":d.Co.GlobalHeader,ignoreTheme:!0,onClick:()=>{let e=new URL(window.location.href);e.searchParams.set("chatbot","true"),m.push(e.toString(),{scroll:!1})},ripple:!1,size:"small",children:(0,o.jsxs)("span",{className:"flex items-center gap-2",children:[(0,o.jsx)("span",{children:(0,o.jsx)(I.B,{})}),(0,o.jsx)("span",{className:"hidden @md/header:inline",children:h.cu.AIChatbotButtonText}),(0,o.jsx)(a.o5,{as:"span",className:"bg-neutral-4 hidden scale-75 rounded-sm px-2 py-1 text-xs uppercase @md/header:inline",disableColorScheme:!0,variant:"caption2",children:h.cu.AIChatbotBetaText})]})}):(0,o.jsxs)(a.$n,{as:u.NextLink,className:"h-8 !px-2 max-lg:!rounded-sm lg:h-auto lg:!px-4","data-id":d.Co.GlobalHeaderActionButton,"data-parent":d.Co.GlobalHeader,href:i.BV.Newsletters,typographyProps:{variant:"button2"},children:[(0,o.jsx)("span",{className:"hidden @xs/header:inline",children:h.cu.ButtonTextSpan}),h.cu.ButtonText]})}),b=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[g,l.X.NEXT_PUBLIC_FEATURE_AUTH_ENABLED?(0,o.jsx)(A,{}):null]});return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(a.qN,{activePath:w,brand:t,className:"z-high @container/header sticky top-0 [&_[data-ids='GlobalHeaderHamburgerMenu']]:min-[1280px]:hidden [&_[data-ids='GlobalHeaderHamburgerMenu']]:lg:block [&_[data-ids='GlobalHeaderNavigationMenu']]:hidden [&_[data-ids='GlobalHeaderNavigationMenu']]:min-[1280px]:block",hamburgerMenuConfig:v,headerActionConfig:{actionElement:b,...f&&l.X.NEXT_PUBLIC_FEATURE_SEARCH_ENABLED?{className:"flex-row-reverse",searchAction:i.BV.Search,searchName:"q"}:{}},linkElement:f?u.NextLink:"a",menuConfig:n,sponsoredLogo:p})})}},24425:()=>{},27549:()=>{},43763:(e,t,n)=>{"use strict";n.d(t,{default:()=>g});var o=n(95155),r=n(12115),a=n(92062),s=n(85602),l=n(82196);let i={CONTAINER:"#onetrust-consent-sdk",OPT_OUT_FORM_LINK:"#onetrust-hdm-opt-out-form-link",OPT_OUT_TAB:'#onetrust-consent-sdk #onetrust-pc-sdk #ot-pc-content div.ot-sdk-container .ot-cat-grp :is([data-optanongroupid="OSSTA_BG"], [data-optanongroupid="SSPD_BG"], [data-optanongroupid="CTSPDTA_BG"])',OPT_OUT_TOGGLE:"#onetrust-consent-sdk #onetrust-pc-sdk .ot-desc-cntr .ot-tgl .ot-switch",SUBMIT_BTN:"#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-footer .ot-btn-container .save-preference-btn-handler"},c="data-hdm-listener-attached",d=e=>{window.Nitrous.push(()=>{let t=s.Ay.sanitize(e);window.Nitrous.logReportIssue(t)})},u=function(e){var t,n,o;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null==(o=window.cmpUtils)||null==(n=o.gpp)||null==(t=n.getSection)?void 0:t.call(n))||"usnat";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,primaryUx:"cmp-pref-center-".concat(r)})},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise(o=>{let r=document.querySelector(e);
1if(r)return void o(r);let a=n||document.querySelector(i.CONTAINER)||document.body,s=new MutationObserver(()=>{let t=document.querySelector(e);t&&(clearTimeout(l),s.disconnect(),o(t))});s.observe(a,{childList:!0,subtree:!0});let l=setTimeout(()=>{s.disconnect(),o(null)},t)})},m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return new Promise(o=>{if(!e)return void o(t);if(e.checked!==t)return void o(e.checked);let r=new MutationObserver(()=>{e.checked!==t&&(clearTimeout(s),clearInterval(a),r.disconnect(),o(e.checked))});r.observe(e,{attributeFilter:["checked"],attributes:!0});let a=setInterval(()=>{e.checked!==t&&(clearTimeout(s),clearInterval(a),r.disconnect(),o(e.checked))},50),s=setTimeout(()=>{r.disconnect(),clearInterval(a),o(e.checked)},n)})},h=(e,t)=>!(!e||e.hasAttribute(c))&&(e.setAttribute(c,"true"),e.addEventListener("click",t),!0),w=async()=>{var e;let t=document.querySelector(i.CONTAINER),[n,o,r]=await Promise.all([p(i.OPT_OUT_TAB,5e3,t),p(i.OPT_OUT_TOGGLE,5e3,t),p(i.SUBMIT_BTN,5e3,t)]),a=(null==o?void 0:o.querySelector("input"))||(null==o||null==(e=o.parentElement)?void 0:e.querySelector("input")),s=(null==a?void 0:a.checked)?"on":"off";r&&(h(n,()=>{r.style.display="inline-block"}),h(o,async()=>{var e;r.style.display="inline-block";let t=null!=(e=null==a?void 0:a.checked)&&e;s=await m(a,t)?"on":"off",u("cmp_optout_toggle_".concat(s))}),h(r,()=>{if(u("cmp_optout_submit"),"off"===s){var e,t;null==(t=window.cmpUtils)||null==(e=t.emitEvent)||e.call(t,"cmp.consent.submit")}}))},f=async()=>{let e=await p(i.CONTAINER);e&&!e.classList.contains("hdm-us")&&e.classList.add("hdm-us")},v=()=>window.OneTrust?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cmp_button_click",primaryUx:"privacy-footer"}),window.OneTrust.ToggleInfoDisplay(),!0):(console.warn("[GlobalFooterWrapper] OneTrust is not defined"),!1),g=e=>{let{optOutLink:t,...n}=e,{isUS:s,loading:c}=(0,l.Ay)(),u=(0,r.useCallback)(()=>{v()},[]),p=(0,r.useCallback)(()=>{v()&&(f(),"string"==typeof t&&(e=>{let t=document.querySelector(i.OPT_OUT_FORM_LINK);if(t){t.href=e;return}let n=new MutationObserver((t,n)=>{let o=document.querySelector(i.OPT_OUT_FORM_LINK);o&&(o.href=e,n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{n.disconnect()},5e3)})(t),w())},[t]),m=c||s?void 0:u,h=!c&&s?p:void 0;return(0,o.jsx)(a.Tn,{...n,cookieOptions:m,optOutLink:h,reportIssue:d})}},78019:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var o=n(12115),r=n(83045),a=n(23114),s=n(74992);let l=!1;function i(){var e,t,n,o;let r=null==(o=window.HRST)||null==(n=o.adConfig)||null==(t=n.modules)||null==(e=t.comscore)?void 0:e.c2;return null!=r?String(r):void 0}function c(){if(l)return;let e=i();if(e){var t;l=!0,t={c1:"2",c2:e},window.COMSCORE?window.COMSCORE.beacon(t):(window._comscore=window._comscore||[],window._comscore.push(t)),(0,a.A)("https://sb.scorecardresearch.com/cs/".concat(e,"/beacon.js"),[r.Ok.ADVERTISEMENT],{async:!0}).catch(e=>{s.Y.log({error:e,level:"error",msg:"Failed to load ComScore script"})})}}let d=()=>((0,o.useEffect)(()=>{if(i())return void c();let e=()=>c();return window.addEventListener("hrstandjamdataloaded",e,{once:!0}),()=>{window.removeEventListener("hrstandjamdataloaded",e)}},[]),null)},81718:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});let o="https://".concat("www.motortrend.com"),r=[{pattern:"https://assets.superstreetonline.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://assets.mustangandfords.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://assets.trucktrend.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://assets.superchevy.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://st.hotrod.comuploads",replacement:"https://www.motortrend.com/uploads"},{pattern:"https://assets.fourwheeler.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://mtg-assets-prod.s3.amazonaws.com/uploads/sites/5/",replacement:"https://www.motortrend.com/uploads/sites/25/"},{pattern:"https://mtg-assets-prod.s3.amazonaws.com/f",replacement:"https://www.motortrend.com/uploads/f"},{pattern:"https://divsbw7kvj55l.cloudfront.net/files/",replacement:"https://dev.motortrend.com/files/"},{pattern:"https://d1ebc1gksr4mpe.cloudfront.net/files",replacement:"https://preprod.motortrend.com/files/"},{pattern:"https://d2kde5ohu8qb21.cloudfront.net/files/",replacement:"https://www.motortrend.com/files/"},{pattern:"https://d33wv19jdo6hes.cloudfront.net/files/",replacement:"https://www.motortrend.com/files/"},{pattern:"https://d128gh3mzd2g7y.cloudfront.net/files/",replacement:"https://www.motortrend.com/files/"},{pattern:/^https?:\/\/assets\.superstreetonline\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.superstreetonline\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/assets\.mustangandfords\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.mustangandfords\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.trucktrend\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.superchevy\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.hotrod\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.preprod\.hotrod\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.hotrod\.preprod\.enthusiastnetwork\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.preprod\.hotrod\.preprod\.enthusiastnetwork\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.lowrider\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.automobilemag\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.preprod\.automobilemag\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/st\.fourwheeler\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/enthusiastnetwork\.s3\.amazonaws\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/enthusiastnetwork\.s3-website-us-east-1\.amazonaws\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/mtg-assets-prod\.s3\.amazonaws/,replacement:"https://www.motortrend"},{pattern:/^https?:\/\/st\.motortrend\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/www\.motortrend\.com\.edgesuite\.net\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/motortrend\.com\//,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/assets\.fourwheeler/,replacement:"https://www.motortrend"},{pattern:/^https?:\/\/d33wv19jdo6hes\.cloudfront\.net\/?/,replacement:"".concat(o,"/")},{pattern:/^https?:\/\/d128gh3mzd2g7y\.cloudfront\.net\/?/,replacement:"".concat(o,"/")},{pattern:/^\/\/d33wv19jdo6hes\.cloudfront\.net\/?/,replacement:"".concat(o,"/")},{pattern:/^\/\/d128gh3mzd2g7y\.cloudfront\.net\/?/,replacement:"".concat(o,"/")},{pattern:/^http:\/\/(www\.)?motortrend\.com\//,replacement:"".concat(o,"/")}],a=["assets.superstreetonline.com","st.superstreetonline.com","assets.mustangandfords.com","st.mustangandfords.com","assets.trucktrend.com","st.trucktrend.com","assets.superchevy.com","st.superchevy.com","st.hotrod.com","st.preprod.hotrod.com","hotrod.preprod.enthusiastnetwork.com","preprod.hotrod.preprod.enthusiastnetwork.com","st.lowrider.com","st.automobilemag.com","st.preprod.automobilemag.com","assets.fourwheeler","st.fourwheeler.com","enthusiastnetwork.s3.amazonaws.com","enthusiastnetwork.s3-website-us-east-1.amazonaws.com","mtg-assets-prod.s3.amazonaws.com","st.motortrend.com","motortrend.com.edgesuite.net","cloudfront.net/files","d33wv19jdo6hes.cloudfront.net","d128gh3mzd2g7y.cloudfront.net"];function s(e){if(!e||""===e.trim())return e;let t=e,n=t.includes("'"),o=t.startsWith("http://");if((t.startsWith("https://www.motortrend.com/")||t.startsWith("https://dev.motortrend.com/")||t.startsWith("https://preprod.motortrend.com/"))&&!n||!a.some(e=>t.includes(e))&&!n&&!o)return t;for(let e of r){if("string"==typeof e.pattern){if(t.includes(e.pattern)){t=t.replace(e.pattern,e.replacement);break}continue}if(e.pattern.test(t)){t=t.replace(e.pattern,e.replacement);break}}return n&&(t=t.replace(/'/g,"%E2%80%99")),t.startsWith("http://")&&t.includes("motortrend.com")&&(t=t.replace(/^http:\/\//,"https://")),t}},82196:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,J$:()=>a});var o=n(12115);n(56600);let r=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"];function a(){let[e,t]=(0,o.useState)({country:"",state:"",stateName:""}),[n,a]=(0,o.useState)(!0);(0,o.useEffect)(()=>{let e,n=0,o=()=>{var o;if(null==(o=window.OneTrust)?void 0:o.getGeolocationData){let n=window.OneTrust.getGeolocationData();
1if(n&&n.country)return t({country:n.country||"",state:n.state||"",stateName:n.stateName||""}),a(!1),e&&clearInterval(e),!0}return++n>=20&&(console.warn("OneTrust geolocation data not available after maximum attempts"),a(!1),e&&clearInterval(e)),!1};o()||(e=setInterval(o,500));let r=()=>{setTimeout(o,100)};return window.addEventListener("OneTrustLoaded",r),window.addEventListener("OneTrustGroupsUpdated",r),window.addEventListener("consent.onetrust",r),()=>{e&&clearInterval(e),window.removeEventListener("OneTrustLoaded",r),window.removeEventListener("OneTrustGroupsUpdated",r),window.removeEventListener("consent.onetrust",r)}},[]);let s="US"===e.country.toUpperCase(),l=r.includes(e.country.toUpperCase());return{geoData:e,isEU:l,isUS:s,loading:n}}let s=a},84573:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d,q:()=>u});var o=n(12115),r=n(99776),a=n(53455),s=n(31306),l=n(80946),i=n(61562);let c=new BroadcastChannel("auth-events");function d(){let e=(0,r.useQueryClient)(),t=l.X.NEXT_PUBLIC_FEATURE_AUTH_ENABLED;return(0,o.useEffect)(()=>{if(!c||!t)return;let n=t=>{"logout"===t.data&&e.setQueryData(["session"],null)};return c.addEventListener("message",n),()=>c.removeEventListener("message",n)},[e,t]),(0,a.useQuery)({enabled:t,queryFn:async()=>{try{return await (0,s.OT)("/nwapi/auth/session",{responseType:"json",retry:!1})}catch(e){if((null==e?void 0:e.status)===401)return null;throw e}},queryKey:["session"],refetchOnReconnect:!0,refetchOnWindowFocus:!0,retry:1,staleTime:5*i.kp})}function u(){null==c||c.postMessage("logout")}},92182:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o,r=n(12115),a=["title","titleId"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}let l=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a);return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,"aria-labelledby":n},l),t?r.createElement("title",{id:n},t):null,o||(o=r.createElement("g",{transform:"scale(.26446)"},r.createElement("circle",{cx:60.5,cy:60.5,r:60.5,fill:"#B40810"}),r.createElement("path",{fill:"#FCFCFD",d:"M52.08 35.54 50 54.26h-3.9l2.08-18.98h-10.4l-5.2 50.18h10.4l2.08-20.28h3.64l-2.08 20.28h10.66l5.2-50.18h-10.4zm36.475 10.92c0-7.02-2.34-11.18-10.66-11.18h-11.96l-5.2 50.18h10.14l1.56-15.08h.52l1.56 15.08h10.4l-2.08-18.72c3.64-3.38 4.42-8.84 5.2-14.3.26-2.34.52-4.16.52-5.98m-11.18 6.24c-.78 6.24-.78 7.8-2.86 7.8h-1.3l1.82-15.34h1.3c1.04 0 1.56.52 1.56 2.34 0 1.3-.26 3.64-.52 5.2"}))))}}},e=>{e.O(0,[8557,5779,9910,3511,2062,176,4500,5239,5602,6356,2152,5539,8248,1562,6600,8441,5597,2469,7358],()=>e(e.s=6316)),_N_E=e.O()}]); 2//# sourceMappingURL=layout-28b293394858f129.js.map
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.