1if(!customElements.get("ff-slider")){class FFSlider extends HTMLElement{constructor(){super(),this.ffSwiperInstance=null}connectedCallback(){this.ffInitElements(),this.ffSetConfig(),this.ffHandleLayout()}ffInitElements(){this.ffSwiperEl=this.querySelector(".swiper"),this.ffSwiperEl&&(this.ffWrapper=this.ffSwiperEl.querySelector(".swiper-wrapper"),this.ffSwiperPagination=this.ffSwiperEl.querySelector(".swiper-pagination"))}ffSetConfig(){this.ffBreakpoint=parseInt(this.dataset.ffBreakpoint)||768,this.ffIsMobile=window.innerWidth<=this.ffBreakpoint,this.ffLayout=this.ffGetLayout(),this.ffItemsPerView=this.ffGetItemsPerView(),this.ffShowDots=this.ffGetShowDots(),this.ffSpaceBetween=this.ffGetSpaceBetween(),this.ffAutoplay=this.dataset.ffAutoplay==="true",this.ffDelay=parseInt(this.dataset.ffDelay)||3e3,this.ffLoop=this.dataset.ffLoop==="true"}ffGetLayout(){return(this.ffIsMobile?this.dataset.ffLayoutMobile:this.dataset.ffLayoutDesktop)||"ff_slider"}ffGetItemsPerView(){const viewKey=this.ffIsMobile?"ffItemsPerViewMobile":"ffItemsPerVie
1wDesktop";return parseFloat(this.dataset[viewKey])||1}ffGetShowDots(){return(this.ffIsMobile?this.dataset.ffShowDotsMobile:this.dataset.ffShowDotsDesktop)!=="false"}ffGetSpaceBetween(){return(this.ffIsMobile?this.dataset.ffSpaceBetweenMobile:this.dataset.ffSpaceBetweenDesktop)||0}ffHandleLayout(){this.ffLayout==="ff_slider"?this.ffCreateSlider():this.ffCreateGrid()}ffCreateGrid(){if(!this.ffWrapper)return;this.ffWrapper.style.display="flex",this.ffWrapper.style.flexWrap="wrap",this.ffWrapper.style.gap=`${this.ffSpaceBetween}px`;const percentageWidth=100/this.ffItemsPerView,gapSubtraction=this.ffSpaceBetween*(this.ffItemsPerView-1)/this.ffItemsPerView;Array.from(this.ffWrapper.children).forEach(child=>{child.style.width=`calc(${percentageWidth}% - ${gapSubtraction}px)`,child.style.boxSizing="border-box"})}ffCreateSlider(){if(this.ffSwiperInstance||!this.ffWrapper||this.ffWrapper.children.length<=1)return;const ffSliderOptions=this.ffConfigureSliderOptions();this.ffSwiperInstance=new Swiper(this.ffSwiperEl,ffSliderOptions)}ffConfigureSliderOptions(){const ffSliderOptions={slidesPerView:this.ffItemsPerVie
1w,spaceBetween:this.ffSpaceBetween};return this.ffShowDots&&(ffSliderOptions.pagination={el:this.ffSwiperPagination,clickable:!0}),this.ffAutoplay&&(ffSliderOptions.autoplay={delay:this.ffDelay}),this.ffLoop&&(ffSliderOptions.loop=this.ffLoop),ffSliderOptions}}customElements.define("ff-slider",FFSlider)} 2//# sourceMappingURL=/cdn/shop/t/63/assets/ff-slider.js.map?v=162246164144329270431749638837
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.