1var module_320756270824=function(){class CircularCarousel{constructor(trackElement,options={}){trackElement&&(this.track=trackElement,this.speed=options.speed||.5,this.isPaused=!1,this.rafId=null,this.init())}getGap(){return window.innerWidth<768?40:100}getSlideWidth(){const vw=window.innerWidth;return vw<640?Math.round(.2*vw):vw<1024?120:140}init(){if(this.track.style.height="",this.track.style.position="",this.slides=Array.from(this.track.children),0===this.slides.length)return;this.slideCount=this.slides.length,this.gap=this.getGap(),this.slideWidth=this.getSlideWidth(),this.slideWithGap=this.slideWidth+this.gap,this.totalWidth=this.slideWithGap*this.slideCount,this.slides.forEach((slide,index)=>{slide.style.position="absolute",slide.style.left="0",slide.style.transform="",slide.dataset.offset=index*this.slideWithGap});const img=this.slides[0].querySelector("img"),imgHeight=img?img.offsetHeight:60;this.track.style.height=(imgHeight||60)+"px",this.track.style.position="relative",this._listenersAttached||(this.track.addEventListener("mouseenter",()=>this.pause()),this.track.addEventListener("mouseleave",()=>this.resume()),this._listenersAttached=!0),this.animate()}
1animate(){this.isPaused||this.slides.forEach(slide=>{let offset=parseFloat(slide.dataset.offset);offset-=this.speed,offset<-this.slideWithGap&&(offset+=this.totalWidth),slide.dataset.offset=offset,slide.style.transform=`translateX(${offset}px)`}),this.rafId=requestAnimationFrame(()=>this.animate())}pause(){this.isPaused=!0}resume(){this.isPaused=!1}destroy(){this.rafId&&cancelAnimationFrame(this.rafId)}reinit(){this.destroy(),this.init()}}window.addEventListener("load",function(){const logoTrack=document.getElementById("company-logo-track");if(!logoTrack)return;let resizeTimer,carousel=new CircularCarousel(logoTrack,{speed:.7});window.addEventListener("resize",function(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){carousel.reinit()},200)})})}(); 2//# sourceURL=https://20922849.fs1.hubspotusercontent-na2.net/hubfs/20922849/hub_generated/module_assets/1/320756270824/1788360095779/module_Logo-Carousel.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.