1function startCarousel(carousel){const slideContainer=carousel.querySelector(".testimonial-quotes__list"),slideItems=carousel.querySelectorAll(".testimonial-quote"),buttons=carousel.querySelectorAll(".testimonial-quotes__button");let slideWidth=slideItems[0].offsetWidth,isManualNavigation=!1;window.addEventListener("DOMContentLoaded",(()=>navigate("0"))),window.addEventListener("DOMContentLoaded",(()=>{buttons.forEach((button=>button.classList.remove("testimonial-quotes__button--active"))),buttons[0].classList.add("testimonial-quotes__button--active")})),buttons.forEach(((button,index)=>{button.addEventListener("click",(()=>{isManualNavigation=!0,buttons.forEach((btn=>btn.classList.remove("testimonial-quotes__button--active"))),button.classList.add("testimonial-quotes__button--active"),slideItems.forEach((slide=>slide.classList.remove("feature--active"))),slideItems[index].classList.add("feature--active"),navigate(index)}))})),window.addEventListener("resize",(()=>{slideWidth=slideItems[0].offsetWidth,window.matchMedia("(max-width: 991px)").matches&&(window.addEventListener("resize",(()=>navigate("0"))),buttons.forEach((button=>button.classList.remove("testimonial-quotes__button--active"))),buttons[0].classList.add("testimonial-quotes__button--active"))}));const navigate=arg=>{slideContainer.scrollLeft=(arg=>{const maxScrollLeft=slideContainer.scrollWidth-slideWidth;if("forward"===arg){const x=slideContainer.scrollLeft+slideWidth+10;return x<=maxScrollLeft?x:0}if("backward"===arg){const x=slideContainer.scrollLeft-slideWidth-10;return x>=0?x:maxScrollLeft}if("number"==typeof arg)return arg*(slideWidth+10)})(arg)},slideObserver=new IntersectionObserver(((entries,observer)=>{isManualNavigation||entries.forEach((entry=>{if(entry.isIntersecting){const dataSlide=entry.target.dataset.slide;buttons.forEach((button=>button.classList.remove("testimonial-quotes__button--active"))),buttons[dataSlide].classList.add("testimonial-quotes__button--active")}}))}),{root:slideContainer,threshold:.1});document.querySelectorAll(".testimonial-quote").forEach((slide=>{slideObserver.observe(slide)}))}document.querySelectorAll(".testimonial-quotes").forEach((carousel=>{startCarousel(carousel)})); 2//# sourceURL=https://2759869.fs1.hubspotusercontent-na1.net/hubfs/2759869/hub_generated/template_assets/1/195708895090/1757342029419/template_testimonial-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.