1if(!customElements.get("swiper-slider")){class SwiperSlider extends HTMLElement{constructor(){super();var _this=this;this.swiperContainer=this.querySelector(".swiper-container"),this.config=this.swiperContainer?.dataset||{},this.waitForSwiper(function(){_this.initSwiperWithThumbs(_this.swiperContainer)})}waitForSwiper(trigger){var interval=setInterval(function(){typeof Swiper<"u"&&(clearInterval(interval),trigger())},50);setTimeout(function(){clearInterval(interval)},15e3)}thumbConfig(thumbConfig2){var config={slidesPerView:3,spaceBetween:12,centeredSlides:!1,grabCursor:!0,freeMode:!1,loop:!0,mousewheel:!1,slideToClickedSlide:!0,slidesPerColumn:1,slidesPerColumnFill:"column",keyboard:{enabled:!0},direction:"horizontal"};return thumbConfig2?.loop&&(config.loop=thumbConfig2.loop),thumbConfig2?.slidesPerView>1&&(config.slidesPerView=thumbConfig2.slidesPerView),thumbConfig2.direction&&(config.direction=thumbConfig2.direction),thumbConfig2.breakpoints&&(config.breakpoints=JSON.parse(thumbConfig2.breakpoints)),thumbConfig2.autoplay=="true"&&(config.autoplay={delay:thumbConfig2.delay||5e3}),thumbConfig2.allowTouchMove=="true"?config.allowTouchMove=!0:config.allowTouchMove=!1,config}galleryConfiguration(galleryConfig,thumbs){var config={slidesPerView:1,spaceBetween:12,loop:!0,direction:"horizontal",autoHeight:!0,thumbs:{},pagination:{el:"",clickable:!0},navigation:{nextEl:"",prevEl:""}};return galleryConfig.dots&&(config.pagination.el=galleryConfig.pagination),galleryConfig?.nav&&(config.navigation.prevEl=galleryConfig.prevEl,config.navigation.nextEl=galleryConfig.nextEl),galleryConfig.direction&&(config.direction=galleryConfig.direction),galleryConfig?.slidesPerView>1&&(config.slidesPerView=thumbConfig.slidesPerView),thumbs&&(config.thumbs.swiper=thumbs),galleryConfig.autoplay=="true"&&(config.autoplay={delay:galleryConfig.delay||4e3}),galleryConfig.breakpoints&&(config.breakpoints=JSON.parse(galleryConfig.breakpoints)),galleryConfig.allowTouchMove=="true"?config.allowTouchMove=!0:config.allowTouchMove=!1,console.log("Configuration",config),config}removeDuplicateSlides(slides){slides.forEach(function(slide){slide.classList.contains("swiper-slide-duplicate")&&slide.remove()})}initSwiperWithThumbs(){var sliderThumbs=document.querySelector(`${this.config.thumbsId}`),thumbs;if(sliderThumbs){var thumbConfig2=sliderThumbs.dataset;thumbConfig2=this.thumbConfig(thumbConfig2),thumbs=new Swiper(sliderThumbs,thumbConfig2)}if(this.swiperContainer){var galleryConfig=this.galleryConfiguration(this.config,thumbs),gallerySl=new Swiper(this.swiperContainer,galleryConfig);if(thumbs){thumbs.params.slideToClickedSlide=!0;var totalSlides=0;thumbs.slides.forEach(function(slide){slide.classList.contains("swiper-slide-duplicate")||totalSlides++}),totalSlides===thumbs.params.slidesPerView&&(thumbs.params.loop=!1,gallerySl.params.loop=!1,this.removeDuplicateSlides(thumbs.slides),this.removeDuplicateSlides(gallerySl.slides),thumbs.update(),gallerySl.update()),gallerySl.on("slideChange",function(){if(thumbs.params.slidesPerView===1.5){var activeSlideIndex=gallerySl.activeIndex,activeThumbnailIndex=Math.floor(activeSlideIndex*1.5);activeThumbnailIndex-activeSlideIndex>1&&(activeThumbnailIndex=activeThumbnailIndex-1),thumbs.slideTo(activeThumbnailIndex)}})}}}}customElements.define("swiper-slider",SwiperSlider)}window.addEventListener("scroll",()=>{var scrollPosition=window.scrollY,scrollThreshold=50,navbar=document.querySelector("body x-header");navbar&&(scrollPosition>scrollThreshold?navbar.classList.add("immy-sticky__header"):navbar.classList.remove("immy-sticky__header"))}); 2//# sourceMappingURL=/cdn/shop/t/115/assets/custom.js.map?v=162644341167129581981787621111
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.