1var module_194394160428=void document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".VideoTestimonial").forEach(module=>{!function(module){module.querySelectorAll(".VideoTestimonial--container").forEach(videoContainer=>{const playButton=videoContainer.querySelector(".Video__play"),iframeContainer=videoContainer.querySelector(".Video__iframe"),thumbImage=videoContainer.querySelector(".Video__thumb"),videoStat=videoContainer.nextElementSibling,isVideoStat=videoStat&&videoStat.classList.contains("VideoStat");thumbImage.addEventListener("click",()=>{try{const embedUrl=function(videoUrl){let embedUrl="";return videoUrl.hostname.includes("youtube.com")?embedUrl=`https://www.youtube.com/embed/${videoUrl.searchParams.get("v")}?autoplay=1`:videoUrl.hostname.includes("youtu.be")?embedUrl=`https://www.youtube.com/embed/${videoUrl.pathname.slice(1)}?autoplay=1`:videoUrl.hostname.includes("vimeo.com")&&(embedUrl=`https://player.vimeo.com/video/${videoUrl.pathname.slice(1)}?autoplay=1`),embedUrl}(new URL(videoContainer.dataset.src));if(embedUrl){const videoIframe=Object.assign(document.createElement("iframe"),{src:embedUrl,width:"800",height:"500",allow:"autoplay; encrypted-media"});iframeContainer.appendChild(videoIframe),playButton.style.display="none",thumbImage.classList.add("fade-out"),isVideoStat&&(videoStat.style.display="none")}}catch(e){console.error("Failed to initialise video player:",e)}})})}(module);const authors=module.querySelectorAll(".VideoTestimonial__author"),videoContainers=module.querySelectorAll(".VideoTestimonial__content");authors.forEach((author,index)=>{author.addEventListener("click",()=>{!function(container){const activeContent=container.querySelector(".VideoTestimonial__content--active");if(!activeContent)return;const video=activeContent.querySelector(".VideoTestimonial--container"),iframeContainer=video.querySelector(".Video__iframe"),playButton=video.querySelector(".Video__play"),thumbImage=video.querySelector(".Video__thumb"),videoStat=video.nextElementSibling;iframeContainer.innerHTML="",playButton.style.display="",thumbImage.classList.remove("fade-out"),videoStat&&videoStat.classList.contains("VideoStat")&&(videoStat.style.display="")}(module),authors.forEach((a,i)=>a.classList.toggle("VideoTestimonial__author--active",index===i)),videoContainers.forEach(content=>{content.classList.toggle("VideoTestimonial__content--active",parseInt(content.dataset.index)===index)})})})})}); 2//# sourceURL=https://6316159.fs1.hubspotusercontent-na1.net/hubfs/6316159/hub_generated/module_assets/1/194394160428/1768408488934/module_video_testimonials_global.js
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.