https://tula.com/cdn/shop/t/10/assets/custom-featured-collection-w…?v=114359855976620201201784733283
1const SECTION_SELECTOR='[data-section-type="featured-collection-with-media"]',reduceMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,wirePauseButton=(section,videoEl)=>{const pause=section.querySelector(".video-pause-floating");!pause||pause.dataset.fcwmWired==="true"||(pause.dataset.fcwmWired="true",pause.addEventListener("click",event=>{event.preventDefault(),videoEl.paused?(videoEl.play(),pause.dataset.isPlaying="true"):(videoEl.pause(),pause.dataset.isPlaying="false")}))},injectVideo=(section,wrapper)=>{if(wrapper.querySelector("video"))return;const template=wrapper.querySelector("template[data-fcwm-video-template]");if(!template)return;const clone=template.content.cloneNode(!0),videoEl=clone.querySelector("video"),poster=wrapper.querySelector("[data-fcwm-video-poster]");if(videoEl&&(videoEl.muted=!0,videoEl.setAttribute("playsinline",""),reduceMotion||videoEl.setAttribute("autoplay",""),poster&&videoEl.addEventListener("loadeddata",()=>{poster.style.opacity="0"},{once:!0})),poster?poster.before(clone):wrapper.append(clone),!!videoEl)if(wirePauseButton(section,videoEl),reduceMotion){const pauseBtn=section.querySelector(".video-pause-floating");pauseBtn&&(pauseBtn.dataset.isPlaying="false")}else videoEl.play()?.catch(()=>{})},initSection=section=>{if(!section||section.dataset.fcwmVideoInit==="true")return;section.dataset.fcwmVideoInit="true";const loadAll=()=>{section.querySelectorAll(".featured-collection-with-media__video-wrapper").forEach(wrapper=>injectVideo(section,wrapper))};if("IntersectionObserver"in window){const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting&&(loadAll(),observer.disconnect())})},{rootMargin:"200px"});observer.observe(section)}else loadAll()},initAll=(root=document)=>{root.querySelectorAll(SECTION_SELECTOR).forEach(initSection)};initAll(),document.addEventListener("shopify:section:load",event=>{initAll(event.target)}); 2//# sourceMappingURL=/cdn/shop/t/10/assets/custom-featured-collection-with-media.js.map?v=114359855976620201201784733283
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.