PageSourceSearch

https://www.labello.com/dist/NiveaX/modules/DraggableElement.f661e547.js

js labello.com collected 2026-10-02 12:43:20 UTC 1,530 bytes, 2 lines download raw bytes

1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[8596],{92092:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});s(67736);class a{constructor(t,e){this.draggableElement="string"==typeof t?document.querySelector(t):t;e=this.mergeOptions({slide:"ul",slides:"> *"},e),this.slide=this.draggableElement.querySelector(e.slide),this.slideWidth=Math.ceil(Array.from(this.slide.querySelectorAll(e.slide+" "+e.slides)).map(t=>t.offsetWidth).reduce((t,e)=>t+e)),this.hPan=!1,this.vPan=!1,this.minDrag=0,this.currentX=0,this.lastX=0}setup(){let t=new Hammer.Manager(this.draggableElement);return t.add(new Hammer.Pan({direction:Hammer.DIRECTION_HORIZONTAL,threshold:0})),t.on("panmove",t=>this.drag(t)),t.on("panend pancancel",t=>this.dragEnd(t)),this}drag(t){this.hPan||t.direction!=Hammer.DIRECTION_UP&&t.direction!=Hammer.DIRECTION_DOWN||(this.vPan=!0),this.vPan||t.direction!=Hammer.DIRECTION_LEFT&&t.direction!=Hammer.DIRECTION_RIGHT||(this.hPan=!0,this.translate(t.deltaX))}translate(t){let e=Math.min(this.lastX+t,this.minDrag);this.currentX=Math.max(e,this.getMaxDrag()),this.slide.style.transform=`translate3d(${this.currentX}px,0,0)`}getMaxDrag(){return Math.min(this.draggableElement.offsetWidth-this.slideWidth,this.minDrag)}dragEnd(t){this.lastX=this.currentX,this.hPan=!1,this.vPan=!1}mergeOptions(t,e){let s;if(e)try{s=JSON.parse(e)}catch(t){console.warn("bad data-options")}return"object"==typeof s?Object.assign(t,s):t}}}}]);
2//# sourceMappingURL=/dist/NiveaX/./modules/DraggableElement.f661e547.js.097e95be.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.