1import{_ as l,c as n,o as r,B as h}from"./DIOrK7k0.js";class p{constructor({target:t,gradientsContainer:e,hasGradients:i=!1,speed:o=100,smooth:a=12}){this.target=t,this.gradientsContainer=e,this.hasGradients=i,this.speed=o,this.smooth=a,this.allowWheel=!0,this.moving=!1,this.pos=this.target.scrollTop,this.nearTop,this.nearBottom,this.addEventListeners(),this.hasGradients&&this.onScroll()}normalizeWheelDelta(t){return t.detail?t.wheelDelta?t.wheelDelta/t.detail/40*(t.detail>0?1:-1):-t.detail/3:t.wheelDelta/120}scrollToTop(){this.pos=0,this.target.scrollTop=0}stop(){this.allowWheel=!1,this.moving=!1}start(){this.allowWheel=!0}onWheel(t){if(t.preventDefault(),!this.allowWheel)return;const e=this.normalizeWheelDelta(t);this.pos+=-e*this.speed,this.pos=Math.max(0,Math.min(this.pos,this.target.scrollHeight-this.target.clientHeight)),this.moving||this.onUpdate()}onScroll(){const t=this.target.scrollTop<=20,e=this.target.scrollTop+this.target.clientHeight>=this.target.scrollHeight-20;t&&!this.nearTop?this.gradientsContainer.classList.add("hide-top-indicator"):!t&&this.nearTop&&this.gradientsContainer.classList.remove("hide-top-indicator"),e&&!this.nearBottom?this.gradientsContainer.classList.add("hide-bottom-indicator"):!e&&this.nearBottom&&this.gradientsContainer.classList.remove("hide-bottom-indicator"),this.nearTop=t,this.nearBottom=e}onUpdate(){this.moving=!0;const t=(this.pos-this.target.scrollTop)/this.smooth;this.target.scrollTop+=t,Math.abs(t)>.5?window.requestAnimationFrame(()=>this.onUpdate()):this.moving=!1}addEventListeners(){this.onWheelEvent=this.onWheel.bind(this),this.onScrollEvent=this.onScroll.bind(this),this.target.addEventListener("mousewheel",this.onWheelEvent,{passive:!1}),this.target.addEventListener("DOMMouseScroll",this.onWheelEvent,{passive:!1}),this.target.addEventListener("wheel",this.onWheelEvent,{passive:!1}),this.hasGradients&&this.target.addEventListener("scroll",this.onScrollEvent,{passive:!1})}destroy(){this.target.removeEventListener("mousewheel",this.onWheelEvent,{passive:!1}),this.target.removeEventListener("DOMMouseScroll",this.onWheelEvent,{passive:!1}),this.target.removeEventListener("wheel",this.onWheelEvent,{passive:!1}),this.hasGradients&&this.target.removeEventListener("scroll",this.onScrollEvent,{passive:!1})}}const c={__name:"PageButtonClose2",props:{color:{type:String,default:""}},setup(s){const t=s;return(e,i)=>(r(),n("div",{class:h(["page__button__close2",t.color])},null,2))}},v=l(c,[["__scopeId","data-v-40dacb15"]]);export{p as M,v as _};
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.