customElements.get("section-home-reviews")||customElements.define("section-home-reviews",class extends HTMLElement{constructor(){super(),window.addEventListener("DOMContentLoaded",()=>{this.observeElement(this,this.handleInViewport.bind(this))})}handleInViewport(){this.init()}observeElement(element,callback){if(this.observer=new IntersectionObserver((entries,observerInstance)=>{entries.forEach(entry=>{entry.isIntersecting&&(callback(),observerInstance.unobserve(entry.target))})},{root:null,threshold:.5}),this.isElementInViewport(element)){callback();return}this.observer.observe(element)}isElementInViewport(el){const rect=el.getBoundingClientRect();return rect.top>=-el.offsetHeight/2&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)+el.offsetHeight/2}disconnectedCallback(){this.observer.disconnect()}init(){const reviewBox=this.querySelector(".review-box"),loopPlay=reviewBox.getAttribute("data-loop");$(reviewBox).slick({infinite:!!loopPlay,slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,autoplay:!1,autoplaySpeed:2e3,fade:!0,prevArrow:'',nextArrow:'',responsive:[{breakpoint:590,settings:{arrows:!1,dots:!0}}]})}}); //# sourceMappingURL=/cdn/shop/t/106/assets/section-home-reviews.js.map?v=41028297362515696781741336867