PageSourceSearch

https://www.custtom.de/build/assets/free-mode-CrvlvCV6.js

js custtom.de collected 2026-10-10 00:47:49 UTC 3,409 bytes, 1 lines download raw bytes

1import{n as v,a as h}from"./swiper-core-PzmbJR2I.js";function z({swiper:e,extendParams:g,emit:c,once:x}){g({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function S(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function E(){if(e.params.cssMode)return;const{touchEventsData:l,touches:t}=e;l.velocities.length===0&&l.velocities.push({position:t[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:t[e.isHorizontal()?"currentX":"currentY"],time:v()})}function B({currentPos:l}){if(e.params.cssMode)return;const{params:t,wrapperEl:f,rtlTranslate:r,snapGrid:i,touchEventsData:m}=e,b=v()-m.touchStartTime;if(l<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(l>-e.maxTranslate()){e.slides.length<i.length?e.slideTo(i.length-1):e.slideTo(e.slides.length-1);return}if(t.freeMode.momentum){if(m.velocities.length>1){const n=m.velocities.pop(),a=m.velocities.pop(),R=n.position-a.position,y=n.time-a.time;e.velocity=R/y,e.velocity/=2,Math.abs(e.velocity)<t.freeMode.minimumVelocity&&(e.velocity=0),(y>150||v()-n.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=t.freeMode.momentumVelocityRatio,m.velocities.length=0;let s=1e3*t.freeMode.momentumRatio;const D=e.velocity*s;let o=e.translate+D;r&&(o=-o);let M=!1,u;const d=Math.abs(e.velocity)*20*t.freeMode.momentumBounceRatio;let T;if(o<e.maxTranslate())t.freeMode.momentumBounce?(o+e.maxTranslate()<-d&&(o=e.maxTranslate()-d),u=e.maxTranslate(),M=!0,m.allowMomentumBounce=!0):o=e.maxTranslate(),t.loop&&t.centeredSlides&&(T=!0);else if(o>e.minTranslate())t.freeMode.momentumBounce?(o-e.minTranslate()>d&&(o=e.minTranslate()+d),u=e.minTranslate(),M=!0,m.allowMomentumBounce=!0):o=e.minTranslate(),t.loop&&t.centeredSlides&&(T=!0);else if(t.freeMode.sticky){let n;for(let a=0;a<i.length;a+=1)if(i[a]>-o){n=a;break}Math.abs(i[n]-o)<Math.abs(i[n-1]-o)||e.swipeDirection==="next"?o=i[n]:o=i[n-1],o=-o}if(T&&x("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(r?s=Math.abs((-o-e.translate)/e.velocity):s=Math.abs((o-e.translate)/e.velocity),t.freeMode.sticky){const n=Math.abs((r?-o:o)-e.translate),a=e.slidesSizesGrid[e.activeIndex];n<a?s=t.speed:n<2*a?s=t.speed*1.5:s=t.speed*2.5}}else if(t.freeMode.sticky){e.slideToClosest();return}t.freeMode.momentumBounce&&M?(e.updateProgress(u),e.setTransition(s),e.setTranslate(o),e.transitionStart(!0,e.swipeDirection),e.animating=!0,h(f,()=>{!e||e.destroyed||!m.allowMomentumBounce||(c("momentumBounce"),e.setTransition(t.speed),setTimeout(()=>{e.setTranslate(u),h(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(c("_freeModeNoMomentumRelease"),e.updateProgress(o),e.setTransition(s),e.setTranslate(o),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,h(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(o),e.updateActiveIndex(),e.updateSlidesClasses()}else if(t.freeMode.sticky){e.slideToClosest();return}else t.freeMode&&c("_freeModeNoMomentumRelease");(!t.freeMode.momentum||b>=t.longSwipesMs)&&(c("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:S,onTouchMove:E,onTouchEnd:B}})}export{z as f};

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.