1(()=>{class AnchorLinks extends HTMLElement{constructor(){super(),this.SCROLL_GAP=16}connectedCallback(){this.addListeners()}addListeners(){this.anchorLinks.forEach(link=>{link.addEventListener("click",event=>this.smoothScrollTo(event)),link.addEventListener("keydown",event=>event.code.toUpperCase()==="ENTER"&&this.smoothScrollTo(event))})}smoothScrollTo(event){event.preventDefault();const target=event.currentTarget.getAttribute("href"),targetElement=document.querySelector(target);if(!targetElement)return;const headerHeight=this.headerHeight,elementPosition=targetElement.getBoundingClientRect().top+window.scrollY-headerHeight-this.SCROLL_GAP;window.scrollTo({top:elementPosition,behavior:"smooth"})}get anchorLinks(){return this.querySelectorAll("[data-anchor-link]")}get headerHeight(){return document.querySelector("[data-header]")?.offsetHeight||0}}customElements.get("anchor-links")||customElements.define("anchor-links",AnchorLinks)})(); 2//# sourceMappingURL=/cdn/shop/t/67/assets/anchor-links.js.map?v=53563549719581537431779963641
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.