if(!customElements.get("shop-the-look-slider")){class ShopTheLookSlider extends customElements.get("card-product-slider"){constructor(){super(),this.dotsList=this.querySelector(".js-dots-list"),this.sliderOptions.breakpoints={750:{slidesPerView:1,spaceBetween:72},990:{spaceBetween:100},1100:{spaceBetween:130},1200:{spaceBetween:156}},this.initSlider(this.querySelector(".js-slider")),this.dotsList.addEventListener("click",e=>{if(!e.target.classList.contains("js-btn"))return;e.preventDefault();const btn=e.target;if(btn.classList.contains("is-current"))return;const btnIndex=+btn.dataset.index;this.updateActiveDot(btn),this.slider.slideTo(btnIndex,300)}),this.slider?.on("slideChange",e=>{const sliderIndex=e.realIndex,btn=this.dotsList.querySelector(`.js-btn[data-index="${sliderIndex}"]`);this.updateActiveDot(btn)})}connectedCallback(){}updateActiveDot(btn){const currentBtn=this.dotsList.querySelector(".js-btn.is-current");currentBtn.classList.remove("is-current"),currentBtn.setAttribute("aria-current",!1),btn.classList.add("is-current"),btn.setAttribute("aria-current",!0)}}customElements.define("shop-the-look-slider",ShopTheLookSlider)}
//# sourceMappingURL=/cdn/shop/t/12/assets/shop-the-look-slider.js.map?v=48806398868468561601682758931
