PageSourceSearch

https://nantelmusique.ca/cdn/shop/t/22/assets/favorite-products.js?v=100791254855707725451777129316

js nantelmusique.ca collected 2026-09-30 13:23:36 UTC 3,881 bytes, 2 lines download raw bytes

1customElements.get("favorite-products")||customElements.define("favorite-products",class extends HTMLElement{constructor(){super()}connectedCallback(){this.enableSlider=this.dataset.enableSlider==="true",this.sectionId=this.dataset.sectionId,this.testimonialsWrapper=this.querySelector(".favorite-products__testimonials"),this.productWrapper=this.querySelector(".favorite-products__products"),this.mediaWrapper=this.querySelector(".favorite-products__media"),this.TestimonialSlider=!1,this.ProductSlider=!1,this.MediaSlider=!1,this.enableSlider&&this.initSlider()}get layout(){return this.dataset.layout}get paginationType(){return this.dataset.paginationType}get paginationTypeMobile(){return this.dataset.paginationTypeMobile}initSlider(){this.currentPaginationType=this.paginationType,this.initProductSlider(),this.initMediaSlider(),this.initTestimonialSlider(),this.TestimonialSlider.slider.on("slideChange",swiper=>{const{slides,activeIndex}=swiper,currentSlide=slides[activeIndex];this.refreshAnimation(this.ProductSlider.slider.slides[activeIndex]),this.refreshAnimation(this.MediaSlider.slider.slides[activeIndex]),this.updateControlsScheme(currentSlide),this.ProductSlider.slider.slideTo(activeIndex)}),this.ProductSlider.slider.on("slideChange",swiper=>{const{activeIndex}=swiper;this.MediaSlider.slider.slideTo(activeIndex)}),this.MediaSlider.slider.on("slideChange",swiper=>{const{activeIndex}=swiper;this.TestimonialSlider.slider.slideTo(activeIndex)}),Shopify.designMode&&document.addEventListener("shopify:block:select",e=>{if(e.detail.sectionId!=this.sectionId)return;let{target}=e;const index=Number(target.dataset.index);this.TestimonialSlider.slider.slideTo(index)}),this.fixQuickviewDuplicate()}initProductSlider(){const additionModules=[FoxTheme.Swiper.EffectFade],sliderOptions={slidesPerView:1,loop:!1,threshold:2};this.layout==="content-left"&&(sliderOptions.effect="fade",sliderOptions.fadeEffect={crossFade:!0},sliderOptions.autoHeight=!0),this.ProductSlider=new window.FoxTheme.Carousel(this.productWrapper,sliderOptions,additionModules),this.ProductSlider.init()}initMediaSlider(){const sliderOptions={slidesPerView:1,loop:!1,threshold:2,allowTouchMove:!1};this.MediaSlider=new window.FoxTheme.Carousel(this.mediaWrapper.querySelector(".swiper"),sliderOptions),this.MediaSlider.init()}initTestimonialSlider(){const sliderOptions={slidesPerView:1,navigation:{nextEl:this.querySelector(".swiper-button-next"),prevEl:this.querySelector(".swiper-button-prev")},pagination:{el:this.querySelector(".swiper-pagination"),clickable:!0,type:this.paginationTypeMobile},loop:!1,threshold:2,on:{init:this.handleAfterInit.bind(this)}};this.TestimonialSlider=new window.FoxTheme.Carousel(this.testimonialsWrapper.querySelector(".swiper"),sliderOptions),this.TestimonialSlider.init()}updateControlsScheme(activeSlide){if(this.testimonialsWrapper){Array.from(this.testimonialsWrapper.classList).filter(className=>className.startsWith("color-")).forEach(className=>this.testimonialsWrapper.classList.remove(className));const colorScheme=activeSlide.dataset.colorScheme;this.testimonialsWrapper.classList.add(colorScheme)}}handleAfterInit(){const activeBullet=this.querySelector(".swiper-pagination-bullet-active");activeBullet&&(activeBullet.classList.remove("swiper-pagination-bullet-active"),activeBullet.offsetHeight,activeBullet.classList.add("swiper-pagination-bullet-active"))}refreshAnimation(activeSlide){activeSlide&&activeSlide.querySelectorAll("motion-element").forEach(motionEl=>{setTimeout(()=>{motionEl&&motionEl.refreshAnimation()})})}fixQuickviewDuplicate(){let modalIds=[];Array.from(this.querySelectorAll("quick-view-modal")).forEach(modal=>{const modalID=modal.getAttribute("id");modalIds.includes(modalID)?modal.remove():modalIds.push(modalID)})}});
2//# sourceMappingURL=/cdn/shop/t/22/assets/favorite-products.js.map?v=100791254855707725451777129316

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.