1(function(){const stopVideo=section=>{const videos=section.querySelectorAll("video"),buttonsPlay=section.querySelectorAll(".js-play-video-img-text");videos.length>0&&videos.forEach(video=>{video.pause()}),buttonsPlay.length>0&&buttonsPlay.forEach(btn=>{btn.classList.remove("active")})},playVideo=section=>{const videos=section.querySelectorAll("video");videos.length>0&&videos.forEach(video=>{const button=video.parentElement.querySelector(".js-play-video-img-text");video.parentElement.classList.contains("autoplay")&&(video.autoplay=!0,button&&button.classList.remove("active")),video.autoplay&&video.paused&&(video.play(),button&&button.classList.remove("active"))})},controlsVideo=section=>{const buttonsPlay=section.querySelectorAll(".js-play-video-img-text"),buttonsSound=section.querySelectorAll(".js-sound-video-img-text");buttonsPlay.forEach(button=>{button.onclick=()=>{const video=button.parentElement.querySelector("video");video&&(video.paused?setTimeout(()=>{video.play()},10):setTimeout(()=>{video.pause()},10),button.classList.toggle("active"))}}),buttonsSound.forEach(button=>{button.onclick=()=>{const video=button.parentElement.querySelector("video");video&&(video.muted?setTimeout(()=>{video.muted=!1},10):setTimeout(()=>{video.muted=!0},10),button.classList.toggle("active"))}})},initSection=()=>{const sections=document.querySelectorAll(".image-with-text-section"),sectionObserver=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting?playVideo(entry.target):stopVideo(entry.target)})}),sectionResizeObserver=new ResizeObserver(entries=>{const[entry]=entries;playVideo(entry.target)});sections.forEach(section=>{sectionObserver.observe(section),sectionResizeObserver.observe(section),controlsVideo(section)})};initSection(),document.addEventListener("shopify:section:load",function(){initSection()})})(); 2//# sourceMappingURL=/cdn/shop/t/19/assets/image-with-text.js.map?v=152221689251348198121745396763
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.