PageSourceSearch

https://www.bluemint.com/cdn/shop/t/3/assets/block-quantity-picker.js?v=66471115282325472821767697613

js bluemint.com collected 2026-10-05 04:32:39 UTC 2,131 bytes, 2 lines download raw bytes

1import{EVENTS as t,publish as i}from"@nutima-themes/utils/pubsub";class s extends HTMLElement{constructor(){super(),this.variantId=this.getAttribute("data-variant-id"),this.cartType=this.getAttribute("data-cart-type"),this.quantity=parseInt(this.querySelector(".quantity-picker__input").value),this.active=this.getAttribute("data-active")==="true",this.productHandle=this.getAttribute("data-product-handle")}connectedCallback(){this.setupElements(),this.setupEventListeners(),this.updateDecreaseButton()}setupElements(){this.decreaseButton=this.querySelector(".decrease"),this.increaseButton=this.querySelector(".increase"),this.trashIcon=this.querySelector(".quantity-picker__trash"),this.minusIcon=this.querySelector(".quantity-picker__minus"),this.input=this.querySelector(".quantity-picker__input")}setupEventListeners(){this.decreaseButton.addEventListener("click",(()=>this.decrease())),this.increaseButton.addEventListener("click",(()=>this.increase())),this.input.addEventListener("change",(t2=>this.handleInputChange(t2)))}decrease(){this.quantity=parseInt(this.querySelector(".quantity-picker__input").value),this.quantity--,this.quantity>0||(this.quantity=0),this.updateValue(),this.dispatchChangeEvent()}increase(){this.quantity=parseInt(this.querySelector(".quantity-picker__input").value),this.quantity++,this.updateValue(),this.dispatchChangeEvent()}handleInputChange(t2){const i2=parseInt(t2.target.value);this.quantity=i2>0?i2:0,this.updateValue(),this.dispatchChangeEvent()}updateValue(){this.active||(this.input.value=this.quantity,this.updateDecreaseButton())}updateDecreaseButton(){this.active||(this.quantity>1?(this.trashIcon.classList.add("hidden"),this.minusIcon.classList.remove("hidden")):(this.trashIcon.classList.remove("hidden"),this.minusIcon.classList.add("hidden")))}dispatchChangeEvent(s2=this.quantity){i(t.quantityChange,{detail:{variantId:this.variantId,quantity:s2,active:this.active,cartType:this.cartType,productHandle:this.productHandle}})}}customElements.define("n-quantity-picker",s);
2//# sourceMappingURL=/cdn/shop/t/3/assets/block-quantity-picker.js.map?v=66471115282325472821767697613

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.