1import{n as e,s as t,t as n}from"./jsx-runtime-DnlWeMvz.js";var r=t(e(),1),i=n();function a({src:e,poster:t,className:n,ariaLabel:a,ariaHidden:o}){let[s,c]=(0,r.useState)(!1),[l,u]=(0,r.useState)(!1),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=navigator.connection;if(e?.saveData||e?.effectiveType&&/2g/.test(e.effectiveType)||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=()=>{t=window.setTimeout(()=>c(!0),300)};return document.readyState===`complete`?n():window.addEventListener(`load`,n,{once:!0}),()=>{window.removeEventListener(`load`,n),t&&window.clearTimeout(t)}},[]),!s||l?(0,i.jsx)(`img`,{src:t,alt:o?``:a??``,"aria-hidden":o,className:n,decoding:`async`,fetchPriority:`high`}):(0,i.jsx)(`video`,{ref:d,className:n,src:e,poster:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:`auto`,"aria-label":a,"aria-hidden":o,onError:()=>u(!0)})}export{a as t}; 2//# sourceMappingURL=LazyHeroVideo-BwZV1muP.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.