1if(typeof ProductQuantity!="function"){class ProductQuantity2 extends HTMLElement{constructor(){super();const qty=this.querySelector(".qty-selector"),qtyMinus=this.querySelector(".qty-minus"),qtyPlus=this.querySelector(".qty-plus"),qtyMin=qty.getAttribute("min")?parseInt(qty.getAttribute("min")):1,qtyMax=qty.getAttribute("max")?parseInt(qty.getAttribute("max")):999;parseInt(qty.value)-1<qtyMin&&qtyMinus.classList.add("disabled"),parseInt(qty.value)+1>qtyMax&&qtyPlus.classList.add("disabled"),qtyMinus.addEventListener("click",e=>{if(e.preventDefault(),!qtyMinus.classList.contains("disabled")){const currentQty=parseInt(qty.value);currentQty-1>=qtyMin&&(qty.value=currentQty-1,qtyPlus.classList.remove("disabled")),currentQty-1<=qtyMin&&qtyMinus.classList.add("disabled")}}),qtyPlus.addEventListener("click",e=>{if(e.preventDefault(),!qtyPlus.classList.contains("disabled")){const currentQty=parseInt(qty.value);currentQty+1<=qtyMax&&(qty.value=currentQty+1,qtyMinus.classList.remove("disabled")),currentQty+1>=qtyMax&&qtyPlus.classList.add("disabled")}})}}typeof customElements.get("product-quantity")>"u"&&customElements.define("product-quantity",ProductQuantity2)} 2//# sourceMappingURL=/cdn/shop/t/28/assets/component-quantity-selector.js.map?v=76406514757392057561786874776
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.