1var module_54868755081=function(){let elemPosArr=[];$(".video-toggle-button").click(function(){var video=$(this).siblings(".media-video").get(0);$(this).hasClass("play-video")?($(this).removeClass("play-video"),$(this).attr("aria-label","Play video"),video.pause()):($(this).addClass("play-video"),$(this).attr("aria-label","Pause video"),video.play())}),$(".lottie-toggle-button").click(function(){console.log("HI");var video=$(this).siblings(".media-lottie").get(0);$(this).hasClass("play-video")?($(this).removeClass("play-video"),video.isManuallyPaused=!0,$(this).attr("aria-label","Play video"),video.pause()):($(this).addClass("play-video"),video.isManuallyPaused=!1,$(this).attr("aria-label","Pause video"),video.play())});const playLottieAnimation=function(elem,index,elemArr){const lottie=elemArr.get(index);elem.play||lottie.isManuallyPaused||(elemArr.get(index).play(),elem.play=!0)},stopLottieAnimation=function(elem,index,elemArr){const lottie=elemArr.get(index);elem.play&&lottie.isManuallyPaused?(elemArr.get(index).pause(),elem.play=!1):elem.play&&(elemArr.get(index).stop(),elem.play=!1)},initLottieAnimation=function(){const windowHeight=$(window).height();let lastScrollTop=0,elemArr=function(elemClass){return $(`.${elemClass}`)}("play-lottie");$(window).on("scroll",function(){let currentWindowPos=$(this).scrollTop()+windowHeight;elemPosArr=function(elemArr){const elemLength=elemArr.length;for(let index=0;index<elemLength;index++){const currentElem=elemArr.get(index),$el=$(currentElem),elemHeight=currentElem.offsetHeight,elemTopPos=$el.offset().top,elemBottomPos=elemTopPos+elemHeight;elemPosArr[index]?(elemPosArr[index].top=elemTopPos,elemPosArr[index].bottom=elemBottomPos,elemPosArr[index].height=elemHeight):elemPosArr.push({top:elemTopPos,bottom:elemBottomPos,height:elemHeight})}return elemPosArr}(elemArr),currentWindowPos>lastScrollTop?function(elemPosArr,windowHeight,currentWindowPos,elemArr){elemPosArr.forEach((elem,index)=>{currentWindowPos>=elem.top+.1*elem.height&¤tWindowPos<elem.bottom+windowHeight?playLottieAnimation(elem,index,elemArr):stopLottieAnimation(elem,index,elemArr)})}(elemPosArr,windowHeight,currentWindowPos,elemArr):function(elemPosArr,windowHeight,currentWindowPos,elemArr){elemPosArr.forEach((elem,index)=>{currentWindowPos<windowHeight+(elem.top+.9*elem.height)&¤tWindowPos>elem.top?playLottieAnimation(elem,index,elemArr):stopLottieAnimation(elem,index,elemArr)})}(elemPosArr,windowHeight,currentWindowPos,elemArr),lastScrollTop=currentWindowPos}
1)};var imported;(imported=document.createElement("script")).src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js",document.head.appendChild(imported),$(window).on("load",function(){initLottieAnimation(),$(window).resize(()=>initLottieAnimation())})}(); 2//# sourceURL=https://2148167.fs1.hubspotusercontent-eu1.net/hubfs/2148167/hub_generated/module_assets/1/54868755081/1789021272500/module_0Builder_RichText-Image_2Col.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.