1import{r as a,j as n}from"./index-2OzUdHgw.js";const m={"16:9":"ln-video--16-9","9:16":"ln-video--9-16"};function l(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function w({src:s,poster:o,ratio:c,label:d}){const[u,f]=a.useState(l);return a.useEffect(()=>{var i;if(typeof window>"u"||typeof window.matchMedia!="function")return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>f(e.matches);return t(),(i=e.addEventListener)==null||i.call(e,"change",t),()=>{var r;return(r=e.removeEventListener)==null?void 0:r.call(e,"change",t)}},[]),n.jsx("div",{className:`ln-video ${m[c]}`,children:u?n.jsx("img",{className:"ln-video__poster",src:o,alt:d}):n.jsx("video",{className:"ln-video__el",src:s,poster:o,"aria-label":d,muted:!0,playsInline:!0,autoPlay:!0,loop:!0,preload:"metadata"})})}export{w as V};
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.