1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a00a69-1f0d-7a83-8ddc-d0ca324555c9")}catch(e){}}();import{r as e,j as i,z as _,a8 as T,a9 as x,aa as I,ab as O}from"./index-JSH-Qnfn.js";const a=[T,x,I,O],E=600,h=2,D={"--media-object-fit":"cover","--media-object-position":"center","--controls":"none"};function A(l){return{...D,transition:`opacity ${E}ms ease`,opacity:l?1:0}}function j({className:l}){const[n,b]=e.useState(0),[r,d]=e.useState(null),[m,o]=e.useState(!1),[p,C]=e.useState(!1),f=e.useRef(),u=e.useRef(!1),S=e.useCallback(()=>{C(!0)},[]),s=e.useCallback(()=>{if(u.current)return;u.current=!0;const t=(n+1)%a.length;d(t),o(!1)},[n]),P=e.useCallback(t=>{const c=t.target;c.duration&&c.currentTime>=c.duration-h&&s()},[s]),R=e.useCallback(()=>{o(!0),clearTimeout(f.current),f.current=setTimeout(()=>{u.current=!1,d(t=>(t!==null&&b(t),null)),o(!1),C(!0)},E)},[]),y=e.useCallback(()=>{s()},[s]);return i.jsxs("div",{className:l,children:[i.jsx(_,{playbackId:a[n],streamType:"on-demand",autoPlay:"muted",muted:!0,playsInline:!0,controls:!1,thumbnailTime:0,onCanPlay:S,onTimeUpdate:P,onEnded:y,className:"absolute inset-0 h-full w-full",style:A(p&&!m)},a[n]),r!==null&&i.jsx(_,{playbackId:a[r],streamType:"on-demand",autoPlay:"muted",muted:!0,playsInline:!0,controls:!1,thumbnailTime:0,onCanPlay:R,onEnded:y,className:"absolute inset-0 h-full w-full",style:A(m)},a[r])]})}export{j as V}; 2//# sourceMappingURL=video-loop-DVgaMU1H.js.map 3 4//# chunkId=01a00a69-1f0d-7a83-8ddc-d0ca324555c9
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.