1(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e06e522d-742f-5965-9c70-08007dfc269a")}catch{}})();class PdpTabs extends HTMLElement{constructor(){super(),this._buttons=[],this._indicator=null,this._observer=null,this._clickListeners=[],this._resizeObserver=null,this._headerOffset=this._readHeaderOffset()}_readHeaderOffset(){try{var e=getComputedStyle(document.documentElement).getPropertyValue("--header-height").trim(),t=parseFloat(e);return Number.isFinite(t)?t:80}catch{return 80}}connectedCallback(){this._buttons=Array.from(this.querySelectorAll(".pdp-tabs__btn")),this._indicator=this.querySelector(".pdp-tabs__indicator"),this._buttons.forEach(t=>{var e=e2=>{e2.preventDefault(),this._scrollToSection(t.dataset.section)};t.addEventListener("click",e),this._clickListeners.push({btn:t,handler:e})}),this._setupObserver(),requestAnimationFrame(()=>{var e=this.querySelector(".pdp-tabs__btn.is-active");e&&this._moveIndicator(e)}),this._resizeObserver=new ResizeObserver(()=>{var e=this.querySelector(".pdp-tabs__btn.is-active");e&&this._moveIndicator(e)}),this._resizeObserver.observe(this)}disconnectedCallback(){this._clickListeners.forEach(({btn:e,handler:t})=>{e.removeEventListener("click",t)}),this._clickListeners=[],this._observer&&(this._observer.disconnect(),this._observer=null),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}_scrollToSection(e){var t,e=document.getElementById(e);e&&(t=this.offsetHeight||52,t=this._headerOffset+t+8,e=e.getBoundingClientRect().top+window.scrollY-t,window.scrollTo({top:e,behavior:"smooth"}))}_setupObserver(){let t=[];this._buttons.forEach(e=>{e=document.getElementById(e.dataset.section),e&&t.push(e)}),t.length&&(this._observer=new IntersectionObserver(e=>{e.forEach(e2=>{if(e2.isIntersecting&&0<e2.intersectionRatio){let t2=e2.target.id;e2=this._buttons.find(e3=>e3.dataset.section===t2),e2&&this._setActive(e2)}})},{root:null,rootMargin:"-30% 0px -60% 0px",threshold:0}),t.forEach(e=>this._observer.observe(e)))}_setActive(e){this._buttons.forEach(e2=>{e2.classList.remove("is-active"),e2.removeAttribute("aria-current")}),e.classList.add("is-active"),e.setAttribute("aria-current","location"),this._moveIndicator(e)}_moveIndicator(e){this._indicator&&(this._indicator.style.width=e.offsetWidth+"px",this._indicator.style.transform=`translateX(${e.offsetLeft}px)`)}}customElements.get("pdp-tabs")||customElements.define("pdp-tabs",PdpTabs); 2//# sourceMappingURL=/cdn/shop/t/6/assets/pdp-tabs.js.map?v=21113148260459232351780412104
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.