var module_257158380755=void function(){"use strict";function initSlider(){"undefined"!=typeof Flickity?document.querySelectorAll(".js-slider").forEach((function(sliderElement){const flkty=new Flickity(sliderElement),captions=document.querySelectorAll(".js-slider-caption"),counter=document.querySelector(".js-slider-counter-current");function updateSlider(index){captions.forEach((function(caption,i){caption.classList.toggle("is-active",i===index)})),counter&&(counter.textContent=index+1)}updateSlider(0),flkty.on("select",(function(index){updateSlider(index)})),sliderElement.setAttribute("role","region"),sliderElement.setAttribute("aria-label","Project slider")})):setTimeout(initSlider,100)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",initSlider):initSlider()}(); //# sourceURL=https://144523864.fs1.hubspotusercontent-eu1.net/hubfs/144523864/hub_generated/module_assets/1/257158380755/1758007135879/module_WH-_wordpress-slider.js