1/* 2Generated time: April 24, 2025 08:09 3This file was created by the app developer. Feel free to contact the original developer with any questions. It was minified (compressed) by AVADA. AVADA do NOT own this script. 4*/ 5function debounce(e,i=300){let s;return(...t)=>{clearTimeout(s),s=setTimeout(()=>e.apply(this,t),i)}}if(!customElements.get("slide-show")){class e extends HTMLElement{constructor(){super(),window.initLazyScript(this,this.init.bind(this))}init(){this.slideshow=this.querySelector(".slideshow"),this.slides=this.querySelectorAll(".slideshow__slide"),this.nav=this.querySelector(".slideshow-nav"),this.pagination=this.querySelector(".slideshow-pagination"),this.rtl="rtl"===document.dir,this.currentIndex=0,this.swipeThreshold=80,this.wheelTriggerWait=800,this.transitionOutDelay=this.dataset.transitionOutDelay||0,this.nav&&(this.counterCurrent=this.querySelector(".slideshow-nav__counter-current"),this.nav.addEventListener("click",this.handleNavClick.bind(this))),this.pagination&&(this.pageBtns=this.querySelectorAll(".page-btn"),this.pagination.addEventListener("click",this.handlePaginationClick.bind(this))),theme.device.hasTouch&&(this.slideshow.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.slideshow.addEventListener("touchmove",debounce(this.handleTouchMove.bind(this),200),{passive:!0})),this.slideshow.addEventListener("wheel",this.handleWheel.bind(this)),this.slideshow.addEventListener("transitionend",e.handleTransitionend),this.saveSlideVisibility(),this.setSlideVisibility(),"true"===this.dataset.autoplay&&this.initAutoPlay()}initAutoPlay(){this.autoplayEnabled=!0,this.autoplaySpeed=1e3*this.dataset.speed,this.pauseAutoplayOnMouseover="false"!==this.dataset.pauseAutoplayOnMouseover,this.pauseAutoplayOnMouseover&&(this.addEventListener("mouseover",this.pauseAutoplay.bind(this)),this.addEventListener("mouseleave",this.resumeAutoplay.bind(this))),this.slideshow.addEventListener("focusin",this.pauseAutoplay.bind(this)),this.slideshow.addEventListener("focusout",this.resumeAutoplay.bind(this)),this.addObserver(),this.startAutoplay()}handleNavClick(t){t.target.matches(".autoplay-btn")?this.togglePlayState(t):"next"===t.target.name?this.showNextSlide():"prev"===t.target.name&&this.showPrevSlide()}handlePaginationClick(t){t.target.matches(".page-btn")&&(this.autoplayTimeLeft=this.autoplaySpeed,this.setActiveSlide(Number(t.target.dataset.index)))}handleWheel(t){this.blockWheelTrigger?t.preventDefault():20<t.deltaX?(t.preventDefault(),this.showNextSlide(),this.blockWheelTrigger=!0,setTimeout(()=>{this.blockWheelTrigger=!1},this.wheelTriggerWait)):t.deltaX<-20&&(t.preventDefault(),this.showPrevSlide(),this.blockWheelTrigger=!0,setTimeout(()=>{this.blockWheelTrigger=!1},this.wheelTriggerWait))}handleTouchStart(t){this.touchStart=t.changedTouches[0].screenX}handleTouchMove(t){t=t.changedTouches[0].screenX;t<this.touchStart-this.swipeThreshold&&(this.rtl?this.showPrevSlide():this.showNextSlide()),t>this.touchStart+this.swipeThreshold&&(this.rtl?this.showNextSlide():this.showPrevSlide())}static handleTransitionend(t){t.target.matches(".slideshow__motion-media")&&t.target.classList.remove("transition-out")}showNextSlide(){let t=this.currentIndex+1;t===this.slides.length&&(t=0),this.setActiveSlide(t,"next")}showPrevSlide(){let t=this.currentIndex-1;t<0&&(t=this.slides.length-1),this.setActiveSlide(t,"prev")}setActiveSlide(e,i){if(e!==this.currentIndex){this.querySelectorAll(".transition-out").forEach(t=>t.classList.remove("transition-out"));let t=i||(e<this.currentIndex?"prev":"next");this.rtl&&(t="next"===t?"prev":"next"),this.dataset.direction=t,this.slides[this.currentIndex].classList.add("transition-out"),setTimeout(()=>{this.slideshow.scrollTo({left:this.slides[e].offsetLeft,behavior:"instant"}),this.slides[e].classList.add("is-active"),this.slides[this.currentIndex].classList.remove("is-active","transition-out");var t=this.slides[this.currentIndex].querySelector(".slideshow__motion-media");t&&t.classList.add("transition-out"),this.autoplayEnabled&&(this.autoplayPaused?this.autoplayStartTime=Date.now():(clearTimeout(this.autoplayTimer),this.startAutoplay())),this.counterCurrent&&(this.counterCurrent.textContent=e+1),this.currentIndex=e,this.setSlideVisibility(),this.updatePagination()},this.transitionOutDelay)}}updatePagination(){this.pagination&&this.pageBtns.forEach((t,e)=>{e===this.currentIndex?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}stopAutoplay(){this.setSlideshowState("paused"),clearTimeout(this.autoplayTimer)}startAutoplay(){this.autoplayTimeLeft=null,this.autoplayStartTime=Date.now(),this.autoplayTimer=setTimeout(this.showNextSlide.bind(this),this.autoplaySpeed),this.setSlideshowState("running")}pauseAutoplay(){this.autoplayEnabled&&!this.autoplayPaused&&(this.stopAutoplay(),this.autoplayTimeLeft?this.autoplayTimeLeft-=Date.now()-this.resumedTime:this.autoplayTimeLeft=this.autoplaySpeed-(Date.now()-this.autoplayStartTime))}resumeAutoplay(){this.autoplayEnabled&&this.autoplayPaused&&(this.resumedTime=Date.now(),this.autoplayTimer=setTimeout(()=>{this.showNextSlide(),this.startAutoplay()},this.autoplayTimeLeft),this.setSlideshowState("running"))}addObserver(){"IntersectionObserver"in window!=!1&&new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?this.resumeAutoplay():this.pauseAutoplay()})}).observe(this)}
5saveSlideVisibility(){this.slides.forEach(t=>{t.querySelectorAll("a[tabindex]").forEach(t=>{t.dataset.dataSlideshowPriorTabindex=t.getAttribute("tabindex")})})}setSlideVisibility(){this.slides.forEach((t,e)=>{var i=t.querySelectorAll("a");e===this.currentIndex?(t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),i.forEach(t=>{void 0!==t.dataset.dataSlideshowPriorTabindex?t.setAttribute("tabindex",t.dataset.dataSlideshowPriorTabindex):t.removeAttribute("tabindex")})):(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),i.forEach(t=>{t.setAttribute("tabindex","-1")}))})}setSlideshowState(t){this.style.setProperty("--play-state",t),this.slideshow.setAttribute("aria-live","running"===t?"off":"polite"),this.autoplayPaused="paused"===t}togglePlayState(t){t.target.classList.toggle("is-paused"),this.autoplayEnabled=!this.autoplayEnabled,this.dataset.autoplay=this.autoplayEnabled?"true":"false",this.autoplayEnabled?this.startAutoplay():this.stopAutoplay()}}customElements.define("slide-show",e)}
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.