1const e=()=>({originalUserScrollPos:0,init:function(){this.donateButton=this.$el.querySelector(".button"),this.closeIcon=this.$el.querySelector(".cw-icon-remove"),this.donateButton&&this.donateButton.addEventListener("click",this.handleDonateClick.bind(this)),this.closeIcon&&this.closeIcon.addEventListener("click",this.handleCloseClick.bind(this))},handleDonateClick:function(){this.originalUserScrollPos=window.pageYOffset;const{body:o}=document;o.style.top=`-${this.originalUserScrollPos}px`,o.classList.add("banner-open"),o.classList.remove("banner-closing")},handleCloseClick:function(){const{body:o}=document;o.style.top="0",o.classList.remove("banner-open"),o.classList.add("banner-closing"),window.scrollTo(0,this.originalUserScrollPos),setTimeout(()=>{o.classList.remove("banner-closing")},750)}});export{e as default}; 2//# sourceMappingURL=MobileDonateBanner-DiRKPa-y.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.