https://duschbrocken.de/cdn/shop/t/741/assets/pdp-section-slider.js?v=140096691558749218771789245507
1function pdpSectionSlider({slidesPerViewMobile=1,slidesPerViewDesktop=3,gap=20,enabled=!0}={}){return{_enabled:enabled,activeSlide:0,_slideCount:0,_isDesktop:!1,init(){this.$nextTick(()=>{this._isDesktop=window.matchMedia("(min-width: 720px)").matches,this._slideCount=this.$refs.track?this.$refs.track.querySelectorAll(":scope > .pdp-slider__slide").length:0}),window.addEventListener("resize",()=>{this._isDesktop=window.matchMedia("(min-width: 720px)").matches})},get _slidesPerView(){return this._isDesktop?slidesPerViewDesktop:slidesPerViewMobile},get maxSlide(){return Math.max(0,this._slideCount-this._slidesPerView)},get canPrev(){return this._enabled&&this.activeSlide>0},get canNext(){return this._enabled&&this.activeSlide<this.maxSlide},onScroll(){if(!this._enabled)return;const track=this.$refs.track,slide=track&&track.querySelector(".pdp-slider__slide");if(!track||!slide)return;const stepWidth=slide.offsetWidth+gap;this.activeSlide=Math.min(this.maxSlide,Math.round(track.scrollLeft/stepWidth))},scrollToSlide(i){if(!this._enabled)return;const track=this.$refs.track,slide=track&&track.querySelector(".pdp-slider__slide");if(!track||!slide)return;const stepWidth=slide.offsetWidth+gap;track.scrollTo({left:i*stepWidth,behavior:"smooth"}),this.activeSlide=Math.min(i,this.maxSlide)},prev(){this.scrollToSlide(Math.max(0,this.activeSlide-1))},next(){this.scrollToSlide(Math.min(this.maxSlide,this.activeSlide+1))},dotsArray(){return Array.from({length:this.maxSlide+1},(_,i)=>i)}}} 2//# sourceMappingURL=/cdn/shop/t/741/assets/pdp-section-slider.js.map?v=140096691558749218771789245507
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.