PageSourceSearch

https://reliableramps.com/cdn/shop/t/26/assets/video-section.js?v=38415978955926866351745413371

js reliableramps.com collected 2026-10-08 07:05:22 UTC 1,927 bytes, 2 lines download raw bytes

1import"@archetype-themes/scripts/config";import"@archetype-themes/scripts/helpers/init-observer";import"@archetype-themes/scripts/helpers/youtube";import"@archetype-themes/scripts/helpers/vimeo";class VideoSection extends HTMLElement{constructor(){super(),this.selectors={videoParent:".video-parent-section"},this.container=this,this.sectionId=this.container.getAttribute("data-section-id"),this.namespace=".video-"+this.sectionId,this.videoObject,theme.initWhenVisible({element:this.container,callback:this.init.bind(this),threshold:500}),document.dispatchEvent(new CustomEvent("video-section:loaded",{detail:{sectionId:this.sectionId}}))}disconnectedCallback(){this.onUnload()}init(){const dataDiv=this.container.querySelector(".video-div");if(!dataDiv)return;switch(dataDiv.dataset.type){case"youtube":let videoId=dataDiv.dataset.videoId;this.initYoutubeVideo(videoId);break;case"vimeo":videoId=dataDiv.dataset.videoId,this.initVimeoVideo(videoId);break;case"mp4":this.initMp4Video();break}}initYoutubeVideo(videoId){this.videoObject=new theme.YouTube("YouTubeVideo-"+this.sectionId,{videoId,videoParent:this.selectors.videoParent})}initVimeoVideo(videoId){this.videoObject=new theme.VimeoPlayer("Vimeo-"+this.sectionId,videoId,{videoParent:this.selectors.videoParent})}initMp4Video(){const mp4Video="Mp4Video-"+this.sectionId,mp4Div=document.getElementById(mp4Video),parent=mp4Div.closest(this.selectors.videoParent);if(mp4Div){parent.classList.add("loaded");const playPromise=document.querySelector("#"+mp4Video).play();playPromise!==void 0&&playPromise.then(function(){}).catch(function(){mp4Div.setAttribute("controls",""),parent.classList.add("video-interactable")})}}onUnload(){this.videoObject&&typeof this.videoObject.destroy=="function"&&this.videoObject.destroy()}}customElements.define("video-section",VideoSection);
2//# sourceMappingURL=/cdn/shop/t/26/assets/video-section.js.map?v=38415978955926866351745413371

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.