text: window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),document.addEventListener("DOMContentLoaded",function(){var json=document.querySelectorAll(".hhSliderJson");json.forEach(function(cnf){var config=JSON.parse(cnf.innerHTML),uid=config.uid,sliderContainer=document.querySelector("#c"+uid);if("undefined"!=typeof sliderContainer){function pause(){slider.pause(),btnAutoplay&&btnAutoplay.classList.remove("disabled")}var slider=tns(config),arrowsPrev=config.prevButton?sliderContainer.querySelector(config.prevButton):"",arrowsNext=config.nextButton?sliderContainer.querySelector(config.nextButton):"",arrowContainer=sliderContainer.querySelector(".tns-outer");disableOnInteraction=!!config.disableOnInteraction&&config.disableOnInteraction,btnAutoplay=sliderContainer.querySelector(".btn-autoplay"),arrowsPrev&&(arrowContainer.appendChild(arrowsPrev),arrowsPrev.addEventListener("click",function(){slider.goTo("prev"),"false"!==disableOnInteraction&&pause()},!1)),arrowsNext&&(arrowContainer.appendChild(arrowsNext),arrowsNext.addEventListener("click",function(){slider.goTo("next"),"false"!==disableOnInteraction&&pause()},!1));var pagination=sliderContainer.querySelector(".pagination");if(pagination){var items=pagination.getElementsByTagName("button"),itemsLength=items.length;for(let i=0;i<itemsLength;i++)items[i].addEventListener("click",function(){var clickedElement=i;slider.goTo(clickedElement),"false"!==disableOnInteraction&&pause()});slider.events.on("indexChanged",function(info){pagination.querySelector(".tns-nav-active").classList.remove("tns-nav-active"),items[info.displayIndex-1].classList.add("tns-nav-active")})}btnAutoplay&&btnAutoplay.addEventListener("click",function(){slider.play(),btnAutoplay.classList.add("disabled")}),slider.events.on("dragEnd",function(){"false"!==disableOnInteraction&&pause()}),slider.events.on("touchEnd",function(){"false"!==disableOnInteraction&&pause()})}})});
  //# sourceMappingURL=sourcemaps/main.min.js.map
  