1var module_226015030488=void function(){const ACTIVE_CLASS="kl-cards-slider__card--active",ACTIVE_CARD="."+ACTIVE_CLASS,prev=document.querySelector(".kl-cards-slider__arrow--prev"),next=document.querySelector(".kl-cards-slider__arrow--next");function activeCardIndex(cards){const activeCard=document.querySelector(ACTIVE_CARD);return Array.from(cards).indexOf(activeCard)}function changeCard(cards,index,newIndex){-1!==index&&(cards[index].classList.remove(ACTIVE_CLASS),cards[newIndex].classList.add(ACTIVE_CLASS))}prev.addEventListener("click",(function(){const cards=document.querySelectorAll(".kl-cards-slider__card"),index=activeCardIndex(cards);changeCard(cards,index,0===index?cards.length-1:index-1)})),next.addEventListener("click",(function(){const cards=document.querySelectorAll(".kl-cards-slider__card"),index=activeCardIndex(cards);changeCard(cards,index,(index+1)%cards.length)}))}(); 2//# sourceURL=https://143947125.fs1.hubspotusercontent-eu1.net/hubfs/143947125/hub_generated/module_assets/1/226015030488/1744107193695/module_Cards_Slider.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.