1(function(){const PLAY_ICON=`<svg aria-hidden="true" width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 <path d="M0.352539 1.98926C0.352539 0.890623 1.24316 0 2.3418 0C2.78168 0 3.20915 0.145798 3.55735 0.414589L13.4411 8.04427C14.4502 8.82321 14.4828 10.3347 13.5083 11.1564L3.566 19.5398C3.21358 19.837 2.76744 20 2.30645 20C1.22734 20 0.352539 19.1252 0.352539 18.0461V1.98926Z" fill="#D9D9D9"/> 3 </svg>`,PAUSE_ICON=` 4 <svg aria-hidden="true" width="15" height="20" viewBox="0 0 15 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 5 <rect width="5" height="20" rx="2.5" fill="#D9D9D9"/> 6 <rect x="10" width="5" height="20" rx="2.5" fill="#D9D9D9"/> 7 </svg>`;function wrapIfNeeded(video){if(!video.closest(".a11y-media-wrapper")){const wrap=document.createElement("div");wrap.className="a11y-media-wrapper",video.parentNode.insertBefore(wrap,video),wrap.appendChild(video)}}function addButton(video){if(video.dataset.a11yBtnAttached)return;video.dataset.a11yBtnAttached="true",wrapIfNeeded(video);const btn=document.createElement("button");btn.type="button",btn.className="a11y-media-btn";const isPaused=video.paused;btn.setAttribute("aria-pressed",String(!isPaused)),btn.setAttribute("aria-label",isPaused?"Play video":"Pause video"),btn.innerHTML=isPaused?PLAY_ICON:PAUSE_ICON,video.autoplay&&!video.muted&&(video.muted=!0),btn.addEventListener("click",()=>{video.paused?video.play():video.pause(),updateState()}),video.addEventListener("play",updateState),video.addEventListener("pause",updateState);function updateState(){const paused=video.paused;btn.setAttribute("aria-pressed",String(!paused)),btn.setAttribute("aria-label",paused?"Play video":"Pause video"),btn.innerHTML=paused?PLAY_ICON:PAUSE_ICON}video.closest(".a11y-media-wrapper").appendChild(btn)}function eligible(v){return(v.matches("video[autoplay], video.background-video, video.background-media, video.media")||v.autoplay)&&!v.controls}function init(root=document){root.querySelectorAll("video").forEach(v=>{eligible(v)&&addButton(v)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>init()):init(),new MutationObserver(muts=>{muts.forEach(m=>{m.addedNodes.forEach(node=>{node.nodeType===1&&(node.tagName==="VIDEO"?eligible(node)&&addButton(node):init(node))})})}).observe(document.documentElement,{childList:!0,subtree:!0})})(); 8//# sourceMappingURL=/cdn/shop/t/147/assets/a11y-video-toggle.js.map?v=131554775210546526551788459182
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.