1import{a as h}from"/build/_shared/chunk-5OBEDPFR.js";import{a as B}from"/build/_shared/chunk-H6S7FWVP.js";import{d as P}from"/build/_shared/chunk-T36URGAI.js";var o=P(B()),e=P(h()),F=({video_autoplay:c,video_sound:M,video_controls:C,desktop_mp4EncodingProfile:_,desktop_webMEncodingProfile:w,mobile_mp4EncodingProfile:L,mobile_webMEncodingProfile:v,desktop_url:f,mobile_url:m,display_images:t,scroll_to_play:u,mobile_styles:S,desktop_styles:R,loopVideo:I,className:U,variant:E})=>{var p,T,b,V,D,a;let[r,$]=(0,o.useState)(["",""]),[N,k]=(0,o.useState)(["",""]),l=(0,o.useRef)(null),s=(0,o.useRef)(null);return(0,o.useEffect)(()=>{window.innerWidth>768?k([`${f}/${w}`,`${f}/${_}`]):$([`${m}/${v}`,`${m}/${L}`])},[]),(0,o.useEffect)(()=>{let d=(i,n)=>{i.forEach(O=>{O.isIntersecting?n.current.play().catch(g=>{console.error("Auto-play failed:",g)}):n.current.pause()})};if(u){let i=new IntersectionObserver(O=>{d(O,l)},{threshold:.5}),n=new IntersectionObserver(O=>{d(O,s)},{threshold:.5});return i.observe(l.current),n.observe(s.current),()=>{i.disconnect(),n.disconnect()}}},[u]),(0,e.jsxs)("div",{className:`${U}`,children:[(0,e.jsxs)("video",{ref:l,"data-test-id":"video-element",className:`md:hidden w-full ${S}
1`,playsInline:!0,autoPlay:!!c,muted:!M,controls:E!=="ctaHighlights"&&E!=="categoryCarousel"?!!C:!1,poster:((b=(T=(p=t==null?void 0:t.mobile)==null?void 0:p.data)==null?void 0:T.attributes)==null?void 0:b.url)||void 0,loop:!!I,children:[r[0]!==""?(0,e.jsx)("source",{src:r[0],type:"video/webm"}):null,r[1]!==""?(0,e.jsx)("source",{src:r[1],type:"video/mp4"}):null]}),(0,e.jsxs)("video",{ref:s,"data-test-id":"video-element",className:`hidden md:block w-full ${R}`,autoPlay:!!c,muted:!M,controls:E!=="ctaHighlights"&&E!=="categoryCarousel"?!!C:!1,poster:((a=(D=(V=t==null?void 0:t.desktop)==null?void 0:V.data)==null?void 0:D.attributes)==null?void 0:a.url)||void 0,loop:!!I,children:[N[0]!==""?(0,e.jsx)("source",{src:N[0],type:"video/webm"}):null,N[1]!==""?(0,e.jsx)("source",{src:N[1],type:"video/mp4"}):null]})]})};export{F as a};
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.