PageSourceSearch

https://www.roadreadywheels.com/_next/static/chunks/app/page-3988400ab749f111.js

js roadreadywheels.com collected 2026-10-08 16:22:21 UTC 10,857 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{57836:function(e,t,r){Promise.resolve().then(r.bind(r,92674)),Promise.resolve().then(r.bind(r,89901)),Promise.resolve().then(r.bind(r,18075)),Promise.resolve().then(r.bind(r,50471)),Promise.resolve().then(r.bind(r,4843)),Promise.resolve().then(r.bind(r,78374))},18215:function(e,t,r){"use strict";var n=r(57437),s=r(2265),l=r(165);let a=(0,s.forwardRef)(function(e,t){let{className:r="absolute inset-0 w-full h-full object-cover",poster:a="/images/poster.webp","aria-label":o,onSrcAttached:c,onLoadedData:u,onError:i}=e,d=(0,s.useRef)(null),m=(0,s.useRef)(null),f=(0,s.useCallback)(e=>{d.current=e,t&&("function"==typeof t?t(e):t.current=e)},[t]),[h,p]=(0,s.useState)(void 0),x=(0,s.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;m.current&&(m.current(),m.current=null);let r=0,n=null,s=()=>{d.current&&d.current===e&&e.play().catch(e=>{console.warn("Video playback attempt ".concat(r+1," failed:"),e),r<t?n=setTimeout(s,1e3*Math.pow(2,++r)):console.error("Video playback failed after all retries")})};s();let l=()=>{n&&(clearTimeout(n),n=null)};return m.current=l,l},[]);(0,s.useEffect)(()=>{p(l.nr.backgroundPromo)},[]),(0,s.useEffect)(()=>{h&&(null==c||c())},[h,c]),(0,s.useEffect)(()=>{if(!h)return;let e=d.current;if(!e)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){e.pause();return}let t=new IntersectionObserver(t=>{t.forEach(t=>{try{let r=d.current;if(!r||r!==e||0===e.readyState)return;t.isIntersecting?x(e):e.pause()}catch(e){console.error("Error in intersection observer:",e)}})},{threshold:.1});return t.observe(e),()=>{t.disconnect(),m.current&&(m.current(),m.current=null)}},[h,x]),(0,s.useEffect)(()=>{let e=()=>{let e=d.current;e&&e.paused&&x(e)},t=["click","touchstart","keydown"];return t.forEach(t=>document.addEventListener(t,e,{once:!0})),()=>{t.forEach(t=>document.removeEventListener(t,e))}},[x]);let v=(0,s.useCallback)(e=>{x(e.currentTarget),null==u||u(e)},[u,x]);return(0,n.jsx)("video",{ref:f,className:r,src:h,poster:a,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"none","aria-label":o,onLoadedData:v,onError:i})});t.Z=a},18075:function(e,t,r){"use strict";r.d(t,{default:function(){return x}});var n=r(57437),s=r(2265),l=r(74300),a=r(78030);/**
2 * @license lucide-react v0.468.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let o=(0,a.Z)("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),c=(0,a.Z)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var u=r(74697);/**
7 * @license lucide-react v0.468.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let i=(0,a.Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var d=r(16463),m=r(18215),f=r(19600),h=r(30857),p=r(54539);function x(){let[e,t]=(0,l.Z)({loop:!0}
11),[r,a]=(0,s.useState)(0),[x,v]=(0,s.useState)([!1,!1,!1]),[b,y]=(0,s.useState)(!1),[w,g]=(0,s.useState)(!1),[k,j]=(0,s.useState)(!1),[N,E]=(0,s.useState)(!1),[S,C]=(0,s.useState)(null),P=(0,s.useRef)(null),z=(0,s.useRef)(!1),_=(0,s.useRef)(0),R=(0,d.useRouter)(),{isLogin:Z}=(0,h.a)();(0,s.useCallback)(()=>{t&&t.scrollPrev()},[t]),(0,s.useCallback)(()=>{t&&t.scrollNext()},[t]);let I=(0,s.useCallback)(()=>{t&&a(t.selectedScrollSnap())},[t]);(0,s.useEffect)(()=>{t&&(I(),t.on("select",I))},[t,I]),(0,s.useEffect)(()=>{if(!t)return;let e=setInterval(()=>{t.scrollNext()},5e3);return()=>clearInterval(e)},[t]);let L=(0,s.useCallback)(()=>{_.current+=1,z.current=!1,C(null),y(!1),P.current&&(P.current.pause(),P.current.removeAttribute("src"),P.current.load())},[]);(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&b&&L()};return b&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[b,L]),(0,s.useEffect)(()=>{if(b){g(!0);let e=setTimeout(()=>{g(!1)},3e3);return()=>clearTimeout(e)}},[b]);let M=()=>{let e=localStorage.getItem("roles")||"[]",t="true"===localStorage.getItem("display_toggle");Z&&e.includes(p.kg)&&t?E(!0):R.push("/t/categories")},T=(0,s.useCallback)(e=>{if(z.current)return;let t=e.currentTarget;z.current=!0,t.muted=!1,t.volume=1,t.currentTime=0,t.play().catch(e=>(console.warn("Autoplay with sound blocked, trying muted:",e),t.muted=!0,j(!0),t.play())).catch(e=>{console.warn("Fullscreen hero video play failed:",e),z.current=!1})},[]);return(0,n.jsxs)("section",{className:"relative md:h-[calc(100vh-113px)] min-h-[400px] flex items-center justify-center overflow-hidden",children:[!b&&(0,n.jsx)(m.Z,{"aria-label":"Background promotional video",onError:e=>{console.error("Background video failed to load:",e)}}),b&&(0,n.jsxs)("div",{className:"absolute inset-0 z-30 bg-black flex items-center justify-center",children:[(0,n.jsx)("video",{ref:P,className:"w-full h-full object-cover",src:null!=S?S:void 0,controls:!0,playsInline:!0,preload:"auto",onCanPlay:T}),(0,n.jsx)("button",{type:"button",className:"absolute top-4 left-4 z-50 flex items-center gap-2 bg-white/20 backdrop-blur-md hover:bg-white/30 text-white px-3 py-2 rounded-full transition-colors shadow-lg",onClick:()=>{if(P.current){let e=!k;P.current.muted=e,j(e)}},children:k?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o,{size:18}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Unmute"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{size:18}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Sound On"})]})}),w&&(0,n.jsx)("div",{className:"absolute bottom-6 left-1/2 transform -translate-x-1/2 z-40",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 bg-white/20 backdrop-blur-md text-white px-4 py-2 rounded-full shadow-lg",children:[(0,n.jsx)("span",{className:"inline-block",children:"⌨️"}),(0,n.jsxs)("span",{className:"text-sm font-medium",children:["Press ",(0,n.jsx)("kbd",{className:"bg-white/30 px-2 py-0.5 rounded text-xs font-bold mx-1",children:"ESC"})," to exit"]})]})})]}),!b&&(0,n.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),(0,n.jsx)("button",{type:"button",className:"absolute top-4 right-4 z-40 flex items-center gap-1 bg-[#bf1e2e] hover:bg-[#9d1825] text-white px-2 py-1 rounded text-xs font-medium transition-colors shadow-md",onClick:b?()=>{L()}:()=>{z.current=!1,j(!1),y(!0),C("https://rrw-prod.s3.us-west-2.amazonaws.com/videos/hls-output-full/playlist.m3u8")},children:b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{size:12}),"Close Video"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i,{size:12,fill:"white"}),"Watch Full Video"]})}),!b&&(0,n.jsxs)("div",{className:"brandon-med relative z-10 text-center text-white px-4 ",children:[(0,n.jsx)("h1",{className:"text-3xl md:text-5xl font-bold mb-4",children:"The Industry Leader in OEM Replacement Wheels"}),(0,n.jsx)("p",{className:"text-xl mb-6",children:"Precision Made. Priced Right."}),(0,n.jsx)("button",{type:"button",className:"bg-[#bf1e2e] hover:bg-[#9d1825] text-white px-8 py-3 rounded-lg text-lg font-semibold transition-colors",onClick:()=>M(),children:"Shop Now"})]}),(0,n.jsx)(f.Z,{isOpen:N,onClose:()=>E(!1)})]})}},50471:function(e,t,r){"use strict";r.d(t,{default:function(){return c}});var n=r(57437),s=r(2265),l=r(53463),a=r(31311),o=r(24648);function c(e){let{announcementId:t="product_list_page",thresholdPx:r=10,behavior:c="scrollDelta"}
11=e,[u,i]=(0,s.useState)([]),[d,m]=(0,s.useState)(!1),[f,h]=(0,s.useState)(0),[p,x]=(0,s.useState)(!1),v=(0,s.useRef)(0);if((0,s.useEffect)(()=>{let e=!1;return(async()=>{var r,n,s;try{let n=await (0,a.q)(t);!e&&n.success&&(null===(r=n.data)||void 0===r?void 0:r.length)&&i(n.data)}catch(t){!e&&(null==t?void 0:null===(s=t.response)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:n.error)&&o.Am.error(t.response.data.error)}})(),()=>{e=!0}},[t]),(0,s.useEffect)(()=>{"always"===c&&m(u.length>0)},[c,u.length]),(0,s.useEffect)(()=>{if("always"===c)return;v.current=window.scrollY;let e=()=>{let e=window.scrollY;if("scrollPastOffset"===c){m(e>r);return}let t=e-v.current;t>=r?m(!0):t<0&&m(!1),v.current=e};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[c,r]),(0,s.useEffect)(()=>{if(u.length<=1||p)return;let e=setInterval(()=>{h(e=>(e+1)%u.length)},3e3);return()=>clearInterval(e)},[u.length,p]),!u.length)return null;let b=u[f];return(0,n.jsx)("div",{style:{transform:d?"translateY(0)":"translateY(-100%)",opacity:d?1:0,backgroundColor:(null==b?void 0:b.background_color)||"#e0f2fe"},className:"fixed top-[64px] max-[921px]:top-[57px] left-0 right-0 z-[999] transition-all duration-300 ease-in-out border-b border-gray-200 shadow-sm",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:(0,n.jsxs)("div",{className:"relative overflow-hidden",children:[u.map((e,t)=>(0,n.jsx)("div",{style:{transform:"translateX(".concat((t-f)*100,"%)"),opacity:t===f?1:0},className:"absolute inset-0 transition-all duration-500 ease-in-out",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto text-center py-[2px]",children:(0,n.jsx)("div",{className:"text-gray-800 text-xs sm:text-base font-medium [&_a]:text-[#1c5c92] [&_a:hover]:underline",children:(0,l.ZP)(e.text||"")})})},e.id||t)),(0,n.jsx)("div",{className:"opacity-0 pointer-events-none",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto text-center py-[2px]",children:(0,n.jsx)("div",{className:"text-gray-800 text-xs sm:text-base font-medium",children:(0,l.ZP)((null==b?void 0:b.text)||"")})})})]})})}},165:function(e,t,r){"use strict";r.d(t,{hg:function(){return s},nr:function(){return n}});let n={backgroundPromo:"https://rrw-prod.s3.us-west-2.amazonaws.com/videos/hls-output-promo/playlist.m3u8"},s={name:"Road Ready Wheels",phone:"1-888-790-5899",email:"[email protected]"}},31311:function(e,t,r){"use strict";r.d(t,{Q:function(){return s},q:function(){return l}});var n=r(4864);let s=async e=>{try{return(await n.Z.post("api/v2/storefront/notifications/submitted_requests",e)).data}catch(e){throw e}},l=async e=>{try{return(await n.Z.get("api/v2/storefront/contents/announcements/".concat(e))).data}catch(e){throw e}}}},function(e){e.O(0,[9236,4648,4696,7138,5295,1877,1029,733,8308,532,2484,8704,3463,4300,9257,9901,2674,6778,2971,7023,1744],function(){return e(e.s=57836)}),_N_E=e.O()}]);

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.