1import{B as u}from"./chunk-BaseElement-COVKFV2h.js";import{t as h}from"./chunk-custom-element-BhZVzxrc.js";import"./chunk-lit-element-CULRVKo8.js";import{r as c}from"./chunk-state-BP5Nb0So.js";import"./chunk-property-BXqvfTtY.js";var d=Object.defineProperty,b=Object.getOwnPropertyDescriptor,a=(t,s,o,r)=>{for(var e=r>1?void 0:r?b(s,o):s,n=t.length-1,l;n>=0;n--)(l=t[n])&&(e=(r?l(s,o,e):l(e))||e);return r&&e&&d(s,o,e),e};let i=class extends u{constructor(){super(...arguments),this.isButtonVisible=!1,this.isScrolledPastButton=!1,this.handleScroll=()=>{if(!this.buyButtonsSlot)return;const t=this.buyButtonsSlot.getBoundingClientRect();this.isScrolledPastButton=t.top<0,this.handleStickyState()}}connectedCallback(){super.connectedCallback(),this.buyButtonsSlot=document.querySelector('[data-slot="buy-buttons"]'),this.initializeObservers(),window.addEventListener("scroll",this.handleScroll,{passive:!0})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observer)==null||t.disconnect(),window.removeEventListener("scroll",this.handleScroll)}initializeObservers(){if(!this.buyButtonsSlot){console.warn("Target element for IntersectionObserver not found.");return}setTimeout(()=>{this.classList.remove("opacity-0")},800),this.observer=new IntersectionObserver(t=>{t.forEach(s=>{this.isButtonVisible=s.isIntersecting,this.handleStickyState()})},{root:null,threshold:0}),this.observer.observe(this.buyButtonsSlot)}handleStickyState(){if(!this.isScrolledPastButton){this.setAttribute("aria-hidden","true");return}window.matchMedia(i.DESKTOP_BREAKPOINT).matches?this.isButtonVisible?this.setAttribute("aria-hidden","true"):this.setAttribute("aria-hidden","false"):this.isButtonVisible?this.setAttribute("aria-hidden","true"):this.setAttribute("aria-hidden","false")}};i.DESKTOP_BREAKPOINT="(min-width: 1024px)";a([c()],i.prototype,"isButtonVisible",2);a([c()],i.prototype,"isScrolledPastButton",2);i=a([h("sticky-atc")],i);
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.