import{QuantitySelectorComponent}from"@theme/component-quantity-selector";export class CartQuantitySelectorComponent extends QuantitySelectorComponent{getEffectiveMax(){const{max}=this.getCurrentValues();return max}updateButtonStates(){const{minusButton,plusButton}=this.refs,{min,value}=this.getCurrentValues(),effectiveMax=this.getEffectiveMax();minusButton.disabled=value<=min,plusButton.disabled=effectiveMax!==null&&value>=effectiveMax}}customElements.get("cart-quantity-selector-component")||customElements.define("cart-quantity-selector-component",CartQuantitySelectorComponent);
//# sourceMappingURL=/s/files/1/0677/1399/0759/t/1/assets/component-cart-quantity-selector.js.map?v=1783078800
