1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2e41fcba-ccce-4c0d-a34f-a96cd25209e0",t._sentryDebugIdIdentifier="sentry-dbid-2e41fcba-ccce-4c0d-a34f-a96cd25209e0")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"448b1463cbc53d391baa2717de27201a4306b595"};(self.webpackChunkdpj=self.webpackChunkdpj||[]).push([[891],{891:function(t,e,s){s.r(e),s.d(e,{ProductSlider:function(){return a}});var i=s(295);class a{static initAuto(){return document.querySelectorAll(".product-slider").forEach((t=>{this.init(t)})),this}static init(t){if(!t.dataset.initialized)return t.dataset.initialized=!0,t.classList.add("product-slider--initialized"),this.setDataAttributes(t),this.attatchClickListeners(t),this.attatchSwipeListeners(t),this.attatchResizeListeners(t),this.updateClasses(t),this.updatePosition(t),this}static setDataAttributes(t){const e=t.querySelector(".product-slider__items");if(!e)return;const s=e.parentElement.offsetWidth,i=e.childElementCount,a=e.offsetWidth,d=e.children[0].offsetWidth,n=(a-d*i)/(i-1),o=d+n,r=Math.floor(s/o);t.dataset.lastIndex=i-r,t.dataset.offsetStep=o,void 0===t.dataset.index&&(t.dataset.index=0)}static attatchClickListeners(t){t.querySelectorAll(".product-slider__nav-action").forEach((e=>{e.addEventListener("click",(e=>{const s=e.target.dataset.action;"prev"===s?this.moveToPrev(t):"next"===s&&this.moveToNext(t),this.updateClasses(t),this.updatePosition(t)}))}))}static attatchSwipeListeners(t){i._.swipe.addCallback(t,{left:()=>{this.moveToNext(t),this.updateClasses(t),this.updatePosition(t)},right:()=>{this.moveToPrev(t),this.updateClasses(t),this.updatePosition(t)}})}static attatchResizeListeners(t){window.addEventListener("resize",(()=>{this.setDataAttributes(t),this.updatePosition(t)}))}static moveToPrev(t){const e=parseInt(t.dataset.index),s=parseInt(t.dataset.lastIndex);isNaN(s)||isNaN(e)||e<=0||(t.dataset.index=e-1)}static moveToNext(t){const e=parseInt(t.dataset.index),s=parseInt(t.dataset.lastIndex);isNaN(s)||isNaN(e)||e>=s||(t.dataset.index=e+1)}static updateClasses(t){const e=parseInt(t.dataset.index),s=parseInt(t.dataset.lastIndex);isNaN(e)||isNaN(s)||(e<=0?t.classList.add("product-slider--first"):t.classList.remove("product-slider--first"),e>=s?t.classList.add("product-slider--last"):t.classList.remove("product-slider--last"))}static updatePosition(t){const e=t.querySelector(".product-slider__items");if(!e)return void console.error("[ProductSlider] No items found");const s=parseInt(t.dataset.index);if(isNaN(s))return void console.error("[ProductSlider] index is not a number");const i=parseInt(t.dataset.offsetStep);if(isNaN(i))return void console.error("[ProductSlider] offsetStep is not a number");const a=s*i;$(e).animate({left:`-${a}px`},150,"linear")}}}}]); 2//# sourceMappingURL=60442413b041b37c6f5f.js.map
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.