1(()=>{class PdpStickyInfo extends XThemeBaseElement{mount(){this.dataset.stickyMode==="bottom"&&(this.updateStickyOffset=()=>{const panelHeight=this.getBoundingClientRect().height,bottomGap=24+(this.stickyAtc?.classList.contains("is-visible")&&window.getComputedStyle(this.stickyAtc).visibility!=="hidden"?this.stickyAtc.getBoundingClientRect().height:0),stickyTop=window.innerHeight-panelHeight-bottomGap;this.style.setProperty("--pdp-info-sticky-top",`${Math.round(stickyTop)}px`);const topGap=(Number.parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue("--nt-sticky-header-height"))||0)+24,availableHeight=window.innerHeight-topGap-bottomGap;if(panelHeight<=availableHeight){this.classList.remove("is-bottom-stuck"),this.classList.add("is-short-panel");return}this.classList.remove("is-short-panel");const scrollY=window.scrollY;this.classList.contains("is-bottom-stuck")||(this.naturalDocumentTop=this.getBoundingClientRect().top+scrollY);const activationScroll=Math.max(1,this.naturalDocumentTop-stickyTop),shouldStick=scrollY>=activationScroll;this.classList.toggle("is-bottom-stuck",shouldStick),shouldStick||(this.naturalDocumentTop=this.getBoundingClientRect().top+scrollY)},this.stickyAtc=document.querySelector("[data-pdp-sticky-atc]"),this.updateStickyOffset(),this.resizeObserver=new ResizeObserver(this.updateStickyOffset),this.resizeObserver.observe(this),this.stickyAtc&&(this.resizeObserver.observe(this.stickyAtc),this.stickyAtcObserver=new MutationObserver(this.updateStickyOffset),this.stickyAtcObserver.observe(this.stickyAtc,{attributes:!0,attributeFilter:["class"]})),window.addEventListener("resize",this.updateStickyOffset,{passive:!0,signal:this._ac.signal}),window.addEventListener("scroll",this.updateStickyOffset,{passive:!0,signal:this._ac.signal}),document.fonts?.ready.then(()=>{this._connected&&this.updateStickyOffset()}))}unmount(){this.resizeObserver?.disconnect(),this.stickyAtcObserver?.disconnect(),this.resizeObserver=null,this.stickyAtcObserver=null,this.stickyAtc=null}}window.customElements.get("x-pdp-sticky-info")||window.customElements.define("x-pdp-sticky-info",PdpStickyInfo)})(); 2//# sourceMappingURL=/cdn/shop/t/205/assets/pdp-sticky-info.js.map?v=29965833135819592331790271331
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.