PageSourceSearch

https://dz.diesel.com/on/demandware.static/Sites-DieselWW-Site/-/e…/js/component-MiniCarousel.chunks.js

js diesel.com collected 2026-09-24 08:41:37 UTC 3,366 bytes, 1 lines download raw bytes

1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[2939,6494],{65658:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var s=r(96156),i=r(38302);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){(0,s.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class l extends i.default{get DEFAULT_CONFIGS(){return{root:null,rootMargin:"300px",threshold:.5}}constructor(e){super(e)}observe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=o(o({},this.DEFAULT_CONFIGS),t);let s=new IntersectionObserver((t=>{t.forEach((t=>{let{isIntersecting:r,target:i}=t;r&&(e(),s.unobserve(i))}))}),r);s.observe(this.element)}}},68997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var s=r(82503),i=r(46378),n=r(65658);class o extends n.default{get SELECTORS(){return{arrowNext:".mini-swiper-button--next",arrowPrev:".mini-swiper-button--prev",swiperSlide:".js-swiper-slide",containerToRevealOnLoad:".js-pdp-shopthelook-container"}}constructor(e){super(e),this.arrowNext=this.element.parentElement.querySelector(this.SELECTORS.arrowNext),this.arrowPrev=this.element.parentElement.querySelector(this.SELECTORS.arrowPrev),this.containerToRevealOnLoad=this.element.closest(this.SELECTORS.containerToRevealOnLoad),this.slides=[...this.element.querySelectorAll(this.SELECTORS.swiperSlide)],this.swiper=null,this.lastState=null,this.onResize=this.debounce((()=>this.evaluate()),150),window.addEventListener("resize",this.onResize),this.revealContainer(),"undefined"!=typeof ResizeObserver?(this.resizeObserver=new ResizeObserver((()=>this.evaluate())),this.resizeObserver.observe(this.element)):requestAnimationFrame((()=>requestAnimationFrame((()=>this.evaluate()))))}evaluate(){if(!this.element.clientWidth)return;const e=window.innerWidth>=1024&&this.hasOverflow(),t=e?"carousel":"static";t!==this.lastState&&(this.lastState=t,e?(this.initSlider(),this.toggleArrows(!0),this.swiper&&this.swiper.update()):(this.destroySlider(),this.toggleArrows(!1)))}hasOverflow(){return!!this.slides.length&&this.element.scrollWidth>this.element.clientWidth+1}initSlider(){this.swiper||(this.swiper=new s.Z(this.element,{modules:[i.W_,i.s5],slidesPerView:"auto",spaceBetween:2,loop:!1,watchOverflow:!1,navigation:{nextEl:this.arrowNext,prevEl:this.arrowPrev}}))}destroySlider(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}toggleArrows(e){[this.arrowNext,this.arrowPrev].forEach((t=>{t&&t.classList.toggle("hidden-arrows",!e)}))}revealContainer(){this.containerToRevealOnLoad&&this.containerToRevealOnLoad.classList.remove("hidden")}debounce(e,t){var r=this;let s;return function(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];clearTimeout(s),s=setTimeout((()=>e.apply(r,n)),t)}}destroy(){window.removeEventListener("resize",this.onResize),this.resizeObserver&&this.resizeObserver.disconnect(),this.destroySlider(),super.destroy()}}}}]);

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.