1import{D as i}from"./DeferWebComponent.min.BrKhvwE6.js";class r extends i{constructor(){super()}ready(){this.addToCart=document.querySelector("[data-add-to-cart]"),this.header=document.querySelector("[data-header]"),this.footer=document.querySelector("#shopify-section-footer"),this.productFieldset=document.querySelector("[data-main-product-fieldset]"),this.handleSticky(),addEventListener("scroll",()=>{this.onScroll()}),this.productFieldset.addEventListener("change",t=>{this.inputChange(t)})}onScroll(){this.handleSticky()}handleSticky(){this.rect=this.addToCart.getBoundingClientRect(),this.headerRect=this.header.getBoundingClientRect(),this.rect.bottom>this.headerRect.bottom?this.style.transform="translateY(100%)":(this.style.transform="translateY(0)",this.classList.remove("u-hidden"))}inputChange(t){var e;if(t.target.classList.contains("js-product-variant")){const s=`clrz-product-sticky-btn [for='${t.target.id}']`;(e=document.querySelector("label.is-active"))==null||e.classList.remove("is-active"),document.querySelector(s).classList.add("is-active")}}}customElements.get("clrz-product-sticky-btn")===void 0&&customElements.define("clrz-product-sticky-btn",r);
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.