PageSourceSearch

https://www.dcm.co.uk/dist/assets/feature_carousel_controller-4diLLhv1.js

js dcm.co.uk collected 2026-10-02 10:26:09 UTC 1,551 bytes, 2 lines download raw bytes

1var l=Object.defineProperty;var r=(e,t,s)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var a=(e,t,s)=>r(e,typeof t!="symbol"?t+"":t,s);import{C as h}from"./controller-DL_XDwt0.js";import"./app-CQlf5mo4.js";class n extends h{connect(){this.index=0,this.autoplayDelay=5e3,this.autoplayInterval=null,this.startAutoplay()}disconnect(){this.stopAutoplay()}shouldAutoplay(){return this.slideTargets.length>1&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}startAutoplay(){this.shouldAutoplay()&&(this.stopAutoplay(),this.autoplayInterval=window.setInterval(()=>{this.next(!0)},this.autoplayDelay))}stopAutoplay(){this.autoplayInterval&&(clearInterval(this.autoplayInterval),this.autoplayInterval=null)}resetAutoplay(){this.startAutoplay()}prev(){this.goTo(this.index-1),this.resetAutoplay()}next(t=!1){this.goTo(this.index+1),t||this.resetAutoplay()}goToDot(t){const s=this.dotTargets.indexOf(t.currentTarget);s!==-1&&(this.goTo(s),this.resetAutoplay())}goTo(t){const s=this.slideTargets.length;s!==0&&(this.slideTargets[this.index].classList.remove("feature-panel__slide--active"),t<0&&(t=s-1),t>=s&&(t=0),this.index=t,this.trackTarget.style.transform="translateX(-"+this.index*100+"%)",this.dotTargets.forEach((i,o)=>{i.classList.toggle("feature-panel__dot--active",o===this.index)}),setTimeout(()=>{this.slideTargets[this.index].classList.add("feature-panel__slide--active")},300))}}a(n,"targets",["track","slide","dot"]);export{n as default};
2//# sourceMappingURL=feature_carousel_controller-4diLLhv1.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.