1class BackToTop extends HTMLElement{constructor(){super(),this.render()}connectedCallback(){window.addEventListener("scroll",this.onScroll.bind(this)),this.querySelector("button.back-to-top_btn").addEventListener("click",this.onClick.bind(this))}disconnectedCallback(){window.removeEventListener("scroll",this.onScroll.bind(this)),this.querySelector("button.back-to-top_btn").removeEventListener("click",this.onClick.bind(this))}onScroll(){const windowHeight=window.innerHeight,documentHeight=document.documentElement.scrollHeight,scrollPosition=window.scrollY||document.body.scrollTop||document.documentElement.scrollTop;scrollPosition>=50&&scrollPosition<=documentHeight-windowHeight?this.classList.add("back-to-top__visible"):scrollPosition>=documentHeight-windowHeight?this.classList.add("back-to-top__visible"):this.classList.remove("back-to-top__visible")}onClick(){window.scrollTo({top:0,behavior:"smooth"})}render(){this.innerHTML=` 2 <button class="back-to-top_btn" aria-label="Scroll to top"> 3 <svg width="15" height="14" viewBox="0 0 15 14" fill="#ffffff" xmlns="http://www.w3.org/2000/svg"> 4 <path d="M7 1.92115L1.2077 7.71347L0.5 7L7.5 -3.0598e-07L14.5 7L13.7923 7.71348L8 1.92115L8 14L7 14L7 1.92115Z" fill="white"/> 5 </svg> 6 </button> 7 `}}customElements.define("back-to-top",BackToTop); 8//# sourceMappingURL=/cdn/shop/t/9/assets/back-to-top.js.map?v=137765920738155659181777368149
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.