1customElements.get("quantity-input")||customElements.define("quantity-input",class extends HTMLElement{input=null;constructor(){super(),this.input=this.querySelector("input"),this.input&&this.input.addEventListener("change",this.onInputChange.bind(this)),this.querySelectorAll("button").forEach(t=>t.addEventListener("click",this.onButtonClick.bind(this)))}connectedCallback(){this.validateQtyRules()}disconnectedCallback(){this.input&&this.input.removeEventListener("change",this.onInputChange.bind(this)),this.querySelectorAll("button").forEach(t=>t.removeEventListener("click",this.onButtonClick.bind(this)))}onInputChange(t){this.validateQtyRules()}onButtonClick(t){if(t.preventDefault(),!this.input)return;const e=this.input.value;t.target.name==="plus"?parseInt(this.input.dataset.min||"0")>parseInt(this.input.step)&&this.input.value=="0"?this.input.value=this.input.dataset.min??"0":this.input.stepUp():this.input.stepDown(),this.input.dataset.min===e&&t.target.name==="minus"&&(this.input.value=this.input.min);const i=this.closest("cart-item");i&&i.changeQuantity(parseInt(this.input.value))}validateQtyRules(){}});
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.