1const r=()=>{const e=window.matchMedia("(prefers-reduced-motion: reduce)");return e&&e.matches},u=e=>{const t=e.querySelector(".js-play-pause-button"),n=e.querySelector(".js-play-pause-button__screenreader-text"),a=e.querySelector(".background-video-local video"),i=e.dataset.translations;if(!t||!a||!i)return;const o=JSON.parse(i),l=t.dataset.autoPlay==="true";t.dataset.playing=l.toString(),r()?(a.pause(),t.dataset.playing="false"):l||a.pause(),t.addEventListener("click",()=>{if(t.dataset.playing==="true"){a.pause(),t.dataset.playing="false";const s=t.title.replace(o.pauseVideoTitle,o.playVideoTitle);t.title=s,n&&(n.textContent=s)}else{a.play().then(()=>{t.dataset.playing="true"}).catch(()=>{t.dataset.playing="false"});const s=t.title.replace(o.playVideoTitle,o.pauseVideoTitle);t.title=s,n&&(n.textContent=s)}})};export{u as BackgroundVideo};
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.