PageSourceSearch

https://porsche-motorsport-web.vercel.app/_next/static/chunks/5912.0c496fb737692922.js

js porsche-motorsport-web.vercel.app collected 2026-10-03 07:32:59 UTC 5,183 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{14221:(e,r,t)=>{t.d(r,{L:()=>a});var n=t(6029),u=t(77367),c=t(35882);let a=(0,u.R)((e,r)=>{let{preload:t="metadata",...u}=e;return(0,n.jsx)(c.B.video,{width:"full",height:"full",objectFit:"cover",muted:!0,playsInline:!0,preload:t,"aria-hidden":"true",ref:r,...u})});a.displayName="ScrubVideo"},83431:(e,r,t)=>{t.d(r,{S:()=>u});var n=t(55729);function u(e){let r=(0,n.useRef)(e);return(0,n.useInsertionEffect)(()=>{r.current=e}),r}},95912:(e,r,t)=>{t.r(r),t.d(r,{VideoBackend:()=>i});var n=t(6029),u=t(55729),c=t(14221),a=t(83431);let i=(0,u.forwardRef)(function(e,r){let{sources:t,load:i="auto",loadMode:l="stream",initialLoop:o,onReady:s,onFirstFrame:d}=e,f=(0,u.useRef)(null),m=(0,u.useRef)(null),p=(0,u.useRef)(0),v=(0,u.useRef)(0),y=(0,u.useRef)(!1),E=(0,u.useRef)(!1),T=(0,u.useRef)(!1),h=(0,u.useRef)(!1),L=(0,u.useRef)(!1),F=(0,u.useRef)(!1),R=(0,u.useRef)(!1),b=(0,u.useRef)(0),k=(0,a.S)(s),V=(0,a.S)(d);function g(e,r){let t=m.current;y.current&&t&&t.from===r.from&&t.to===r.to||(w(),m.current=r,y.current=!0,(e.ended||e.currentTime>=r.to)&&(e.currentTime=r.from),e.play().catch(()=>{}),S(e))}function w(){y.current=!1,m.current=null;let e=f.current,r=p.current;r&&(e&&"requestVideoFrameCallback"in HTMLVideoElement.prototype?e.cancelVideoFrameCallback(r):cancelAnimationFrame(r),p.current=0),e&&!e.paused&&e.pause()}function S(e){"requestVideoFrameCallback"in HTMLVideoElement.prototype?p.current=e.requestVideoFrameCallback((r,t)=>(function e(r,t,n){if(!y.current)return;let u=m.current;u&&n.mediaTime>=u.to&&(r.currentTime=u.from),p.current=r.requestVideoFrameCallback((t,n)=>e(r,t,n))})(e,r,t)):p.current=requestAnimationFrame(()=>(function e(r){if(!y.current)return;let t=m.current;t&&r.readyState>=2&&r.currentTime>=t.to&&(r.currentTime=t.from),p.current=requestAnimationFrame(()=>e(r))})(e))}function q(){return"full"!==l||R.current}function C(){var e;!h.current&&F.current&&q()&&(T.current=!0,h.current=!0,null==(e=k.current)||e.call(k))}function x(){var e;!L.current&&E.current&&q()&&(L.current=!0,null==(e=V.current)||e.call(V))}function A(){E.current=!0,x()}function M(){R.current||(R.current=!0,b.current&&(clearTimeout(b.current),b.current=0),C(),x())}function j(e){if(!E.current)if("requestVideoFrameCallback"in HTMLVideoElement.prototype)e.requestVideoFrameCallback(()=>A()),e.readyState>=2?A():e.addEventListener("loadeddata",()=>A(),{once:!0});else{let r=()=>{if(!E.current){if(e.readyState>=2){v.current=0,A();return}v.current=requestAnimationFrame(r)}};v.current=requestAnimationFrame(r)}}(0,u.useImperativeHandle)(r,()=>({seekToTime(e){w();let r=f.current;r&&(r.currentTime=Math.max(0,e))},seekToProgress(e){let r=f.current;r&&function(e,r){let t=e.duration;isFinite(t)&&0!==t&&(w(),e.currentTime=Math.max(0,Math.min(r*t,t)))}(r,e)},getCurrentTime(){var e,r;return null!=(r=null==(e=f.current)?void 0:e.currentTime)?r:null},getDuration:()=>(function(e){let r=null==e?void 0:e.duration;return void 0!==r&&isFinite(r)?r:null})(f.current),isReady:()=>T.current,hasRenderedFrame:()=>E.current,startLoop(e){let r=f.current;r&&g(r,e)},stopLoop(){w()},reset(){w(),E.current=!1,L.current=!1;let e=f.current;e&&(e.currentTime=0,j(e))},async captureFrame(){let e=f.current;if(!e||e.readyState<2)return null;try{return await createImageBitmap(e)}catch(e){return null}},get element(){return f.current}}),[]),(0,u.useEffect)(()=>{let e=f.current;if(!e)return;let r=()=>{F.current=!0,C()};return e.readyState>=2&&r(),e.addEventListener("canplay",r),()=>e.removeEventListener("canplay",r)},[k]),(0,u.useEffect)(()=>{if("full"!==l||"auto"!==i)return;let e=f.current;if(!e)return;let r=()=>{let r=e.duration;if(!isFinite(r)||0===r)return;let t=e.buffered;t.length>0&&t.end(t.length-1)>=r-.25&&M()};return e.addEventListener("canplaythrough",M),e.addEventListener("progress",r),e.addEventListener("loadeddata",r),r(),b.current=window.setTimeout(M,12e3),()=>{e.removeEventListener("canplaythrough",M),e.removeEventListener("progress",r),e.removeEventListener("loadeddata",r),b.current&&(clearTimeout(b.current),b.current=0)}},[l,i,t.mp4,t.webm]),(0,u.useEffect)(()=>
1{if(!o)return;let e=f.current;if(!e)return;let r=()=>{y.current=!0,m.current=o,(e.ended||e.currentTime>=o.to)&&(e.currentTime=o.from),e.play().catch(()=>{}),S(e)};return e.readyState>=2?r():e.addEventListener("canplay",r,{once:!0}),()=>{e.removeEventListener("canplay",r),w()}},[]),(0,u.useEffect)(()=>{let e=f.current;if(e)return j(e),()=>{v.current&&(cancelAnimationFrame(v.current),v.current=0)}},[]);let B=(0,u.useRef)(!1);return(0,u.useEffect)(()=>{if(!B.current){B.current=!0;return}let e=f.current;if(!e||(w(),T.current=!1,h.current=!1,E.current=!1,L.current=!1,F.current=!1,R.current=!1,e.load(),j(e),!o))return;let r=()=>g(e,o);return e.readyState>=2?void r():(e.addEventListener("canplay",r,{once:!0}),()=>e.removeEventListener("canplay",r))},[t.mp4,t.webm]),(0,n.jsxs)(c.L,{ref:f,preload:"auto"===i?"auto":"none",children:[t.webm&&(0,n.jsx)("source",{src:t.webm,type:"video/webm"}),(0,n.jsx)("source",{src:t.mp4,type:"video/mp4"})]})});i.displayName="VideoBackend"}}]);
2//# sourceMappingURL=5912.0c496fb737692922.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.