1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[8287],{19967:(t,o,e)=>{e.r(o),e.d(o,{default:()=>l});class l{constructor(){this.scrollTop=0,this.scrollDurationCap=1200,this.windowHeight=0,window.addEventListener("scroll",()=>{this.scrollEvent()},!1),this.scrollEvent()}scrollEvent(){this.scrollTop=this.getScrollTop()}getScrollTop(){return document.documentElement.scrollTop||document.body.parentElement.scrollTop||document.body.scrollTop}setScrollTop(t){document.documentElement.scrollTop=t,document.body.parentElement.scrollTop=t,document.body.scrollTop=t}getElementPosition(t){for(var o=0,e=0;t;)null!=t&&t.offsetTop>0&&(o+=t.offsetLeft-t.scrollLeft+t.clientLeft,e+=t.offsetTop-t.scrollTop+t.clientTop),t=t.offsetParent;return{left:o,top:e}}animateScrollTop(t,o,e,l,n=0){const s=this.scrollTop,r=this.getElementPosition(t).top-e-n;this.animateScroll(s,r,o,l)}animateScroll(t,o,e,l=()=>{}){const n=t;let s=o-n,r=0;e=e>this.scrollDurationCap?this.scrollDurationCap:e;let i=()=>{r+=10;var t=Math.ceil(Math.easeInOutCubic(r,n,s,e));this.setScrollTop(t),r<e?this.nxRAF=requestAnimationFrame(i):requestAnimationFrame(l)};requestAnimationFrame(i),window.onwheel=()=>{window.cancelAnimationFrame(this.nxRAF),requestAnimationFrame(l)}}}}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/ScrollTo.4cd7985d.js.4c97fdb1.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.