1var module_215660268916=(function(){function init(wrapper){var track=wrapper.querySelector(".cs-tst-s1-track");if(track){var viewport=wrapper.querySelector(".cs-tst-s1-viewport"),realSlides=Array.prototype.slice.call(track.querySelectorAll(".cs-tst-s1-slide")),dots=Array.prototype.slice.call(wrapper.querySelectorAll(".cs-tst-dot")),prevBtn=wrapper.querySelector(".cs-tst-arrow--prev"),nextBtn=wrapper.querySelector(".cs-tst-arrow--next"),realN=realSlides.length;if(0!==realN){var isAutoplay="true"===wrapper.getAttribute("data-autoplay"),intervalTime=parseInt(wrapper.getAttribute("data-interval"),10)||1e4;if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(isAutoplay=!1),isAutoplay&&wrapper.style.setProperty("--autoplay-duration",intervalTime+"ms"),realN<2)dots[0]&&dots[0].classList.add("active");else{track.insertBefore(makeClone(realSlides[realN-1]),realSlides[0]),track.appendChild(makeClone(realSlides[0]));var allLen=realN+2,pos=1,animating=!1,snapTimer=null,timer=null;prevBtn&&prevBtn.addEventListener("click",function(){stop(),goPrev(),play()}),nextBtn&&nextBtn.addEventListener("click",function(){stop(),goNext(),play()}),dots.forEach(function(d,i){d.addEventListener("click",function(){animating||(stop(),i!==realIndex()&&(animating=!0,pos=i+1,place(!0),syncDots(),clearTimeout(snapTimer),snapTimer=setTimeout(finishMove,500)),play())})}),wrapper.setAttribute("tabindex","0"),wrapper.addEventListener("keydown",function(e){"ArrowLeft"===e.key?(e.preventDefault(),stop(),goPrev(),play()):"ArrowRight"===e.key&&(e.preventDefault(),stop(),goNext(),play())}),wrapper.addEventListener("mouseenter",stop),wrapper.addEventListener("mouseleave",play),wrapper.addEventListener("focusin",stop),wrapper.addEventListener("focusout",play);var dragging=!1,dragStartX=0,dragMoved=!1,baseTx=0;viewport&&(viewport.addEventListener("pointerdown",function(e){if("touch"!==e.pointerType&&0===e.button){stop(),clearTimeout(snapTimer),snapTimer=null,animating=!1,0===pos?(pos=realN,place(!1)):pos===allLen-1&&(pos=1,place(!1)),dragging=!0,dragMoved=!1,dragStartX=e.clientX,baseTx=-pos*slideWidth();try{viewport.setPointerCapture(e.pointerId)}catch(err){}viewport.classList.add("is-grabbing"),track.style.transition="none"}}),viewport.addEventListener("pointermove",function(e){if(dragging){var dx=e.clientX-dragStartX;Math.abs(dx)>5&&(dragMoved=!0),track.style.transform="translateX("+(baseTx+dx)+"px)"}}),viewport.addEventListener("pointerup",function(e){if(dragging){dragging=!1,viewport.classList.remove("is-grabbing");var dx=("number"==typeof e.clientX?e.clientX:dragStartX)-dragStartX;dragMoved&&Math.abs(dx)>50?dx<0?goNext():goPrev():place(!0),play()}}),viewport.addEventListener("pointercancel",function(){dragging&&(dragging=!1,viewport.classList.remove("is-grabbing"),place(!0))}),viewport.addEventListener("click",function(e){dragMoved&&(e.stopImmediatePropagation(),e.preventDefault(),dragMoved=!1)},!0));var rt,tStartX=0,tStartY=0;wrapper.addEventListener("touchstart",function(e){tStartX=e.touches[0].clientX,tStartY=e.touches[0].clientY},{passive:!0}),wrapper.addEventListener("touchend",function(e){var dx=e.changedTouches[0].clientX-tStartX,dy=e.changedTouches[0].clientY-tStartY;Math.abs(dx)>40&&Math.abs(dx)>Math.abs(dy)&&(stop(),dx<0?goNext():goPrev(),play())},{passive:!0}),window.addEventListener("resize",function(){clearTimeout(rt),rt=setTimeout(function(){place(!1)},150)}),place(!1),syncDots(),play()}}}function makeClone(node){var c=node.cloneNode(!0);return c.classList.remove("active"),c.setAttribute("aria-hidden","true"),c.setAttribute("data-cs-clone","1"),c.style.pointerEvents="none",Array.prototype.forEach.call(c.querySelectorAll("a, button, [tabindex]"),function(el){el.setAttribute("tabindex","-1")}),c}function slideWidth(){return realSlides[0].getBoundingClientRect().width||viewport.offsetWidth}function realIndex(){return(pos-1+realN)%realN}function place(animate){track.style.transition=animate?"":"none",track.style.transform="translateX("+-pos*slideWidth()+"px)"}function syncDots(){var ri=realIndex();dots.forEach(function(d,i){d.classList.toggle("active",i===ri)}
1),isAutoplay&&dots[ri]&&(dots[ri].classList.remove("active"),dots[ri].offsetWidth,dots[ri].classList.add("active"))}function finishMove(){snapTimer=null,animating=!1,0===pos?(pos=realN,place(!1)):pos===allLen-1&&(pos=1,place(!1))}function move(delta){animating||(animating=!0,pos+=delta,place(!0),syncDots(),clearTimeout(snapTimer),snapTimer=setTimeout(finishMove,500))}function goNext(){move(1)}function goPrev(){move(-1)}function stop(){timer&&(clearInterval(timer),timer=null)}function play(){isAutoplay&&(stop(),timer=setInterval(goNext,intervalTime))}}function boot(){document.querySelectorAll(".cs-tst-wrapper").forEach(init)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",boot):boot()}(),void document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".cs-tst-g3").forEach(function(root){var track=root.querySelector(".cs-tst-g3-track");if(track){var cards=Array.prototype.slice.call(track.children),n=cards.length;if(0!==n){var prevBtn=root.querySelector(".cs-tst-g3-prev"),nextBtn=root.querySelector(".cs-tst-g3-next"),dotsBox=root.querySelector(".cs-tst-g3-dots"),isAuto="true"===String(root.getAttribute("data-autoplay")).toLowerCase(),interval=parseInt(root.getAttribute("data-interval"),10)||8e3;isAuto&&root.style.setProperty("--autoplay-duration",interval+"ms");var realCards=cards.slice();n>1&&realCards.forEach(function(c){var cl=c.cloneNode(!0);cl.setAttribute("aria-hidden","true"),cl.setAttribute("data-cs-clone","1"),Array.prototype.forEach.call(cl.querySelectorAll("a, button, [tabindex]"),function(el){el.setAttribute("tabindex","-1")}),track.appendChild(cl)});var rt,idx=0,timer=null,dots=[],animating=!1,snapTimer=null;prevBtn&&prevBtn.addEventListener("click",function(e){stop(),advance(-1),play(),blurIfMouse(e,prevBtn)}),nextBtn&&nextBtn.addEventListener("click",function(e){stop(),advance(1),play(),blurIfMouse(e,nextBtn)}),root.addEventListener("mouseenter",stop),root.addEventListener("mouseleave",play),window.addEventListener("resize",function(){clearTimeout(rt),rt=setTimeout(function(){buildDots(),place(!1),setActiveDot()},150)});var viewport=root.querySelector(".cs-tst-g3-viewport")||track,dragging=!1,dragStartX=0,dragMoved=!1,baseTx=0;viewport.addEventListener("pointerdown",function(e){if("touch"!==e.pointerType&&0===e.button&&scrollable()){stop(),clearTimeout(snapTimer),snapTimer=null,animating=!1,idx>=n?idx-=n:idx<0&&(idx+=n),place(!1),dragging=!0,dragMoved=!1,dragStartX=e.clientX,baseTx=-idx*step();try{viewport.setPointerCapture(e.pointerId)}catch(err){}viewport.classList.add("is-grabbing"),track.style.transition="none"}}),viewport.addEventListener("pointermove",function(e){if(dragging){var dx=e.clientX-dragStartX;Math.abs(dx)>5&&(dragMoved=!0),track.style.transform="translateX("+(baseTx+dx)+"px)"}}),viewport.addEventListener("pointerup",function(e){if(dragging){dragging=!1,viewport.classList.remove("is-grabbing");var dx=("number"==typeof e.clientX?e.clientX:dragStartX)-dragStartX;dragMoved&&Math.abs(dx)>50?advance(dx<0?1:-1):place(!0),play()}}),viewport.addEventListener("pointercancel",function(){dragging&&(dragging=!1,viewport.classList.remove("is-grabbing"),place(!0))}),viewport.addEventListener("click",function(e){dragMoved&&(e.stopPropagation(),e.preventDefault(),dragMoved=!1)},!0);var tStartX=0,tStartY=0;viewport.addEventListener("touchstart",function(e){tStartX=e.touches[0].clientX,tStartY=e.touches[0].clientY},{passive:!0}),viewport.addEventListener("touchend",function(e){var dx=e.changedTouches[0].clientX-tStartX,dy=e.changedTouches[0].clientY-tStartY;Math.abs(dx)>40&&Math.abs(dx)>Math.abs(dy)&&(stop(),advance(dx<0?1:-1),play())},{passive:!0}),buildDots(),place(!1),setActiveDot(),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||play()}}function scrollable(){return n>((w=window.innerWidth)<=680?1:w<=992?2:3);var w}function blurIfMouse(e,el){e&&e.detail>0&&el&&el.blur&&el.blur()}function step(){return realCards[0].getBoundingClientRect().width+24}function place(animate){track.style.transition=animate?"":"none",track.style.transform="translateX("+-idx*step()+"px)"}function buildDots(){if(dotsBox){var count=scrollable()?n:1;if(dots.length!==count){dotsBox.innerHTML="",dots=[];for(var i=0;i<count;i++){var d=document.createElement("button");
1d.className="cs-tst-dot",d.setAttribute("type","button"),d.setAttribute("aria-label","Go to testimonials "+(i+1)),function(j){d.addEventListener("click",function(e){var target;stop(),target=j,animating||target===(idx%n+n)%n||(animating=!0,idx=target,place(!0),setActiveDot(),clearTimeout(snapTimer),snapTimer=setTimeout(finishMove,500)),play(),blurIfMouse(e,d)})}(i),dotsBox.appendChild(d),dots.push(d)}}}}function setActiveDot(){var ri=(idx%n+n)%n;dots.forEach(function(d,i){d.classList.toggle("active",i===ri)}),isAuto&&dots[ri]&&(dots[ri].classList.remove("active"),dots[ri].offsetWidth,dots[ri].classList.add("active"))}function finishMove(){snapTimer=null,animating=!1,idx>=n&&(idx-=n,place(!1))}function advance(delta){scrollable()&&!animating&&(delta<0&&idx<=0&&(idx=n,place(!1),track.offsetWidth),animating=!0,idx+=delta,place(!0),setActiveDot(),clearTimeout(snapTimer),snapTimer=setTimeout(finishMove,500))}function stop(){timer&&(clearInterval(timer),timer=null)}function play(){isAuto&&scrollable()&&(stop(),timer=setInterval(function(){advance(1)},interval))}})})); 2//# sourceURL=https://7007026.fs1.hubspotusercontent-na1.net/hubfs/7007026/hub_generated/module_assets/1/215660268916/1782893848771/module_CS-v2_Carousel_Testimonials.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.