var wc;(()=>{"use strict";var t={};(t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(t);const e=window.wc.__experimentalInteractivity,n=t=>{var e;const n=null===(e=t.target.parentElement)||void 0===e?void 0:e.querySelector(".input-text.qty.text");if(!n)return;const r=parseInt(n.value,10),a=parseInt(n.min,10),o=parseInt(n.max,10),i=parseInt(n.step,10);return{currentValue:isNaN(r)?0:r,minValue:isNaN(a)?1:a,maxValue:isNaN(o)?void 0:o,step:isNaN(i)?1:i,inputElement:n}};(0,e.store)("woocommerce/add-to-cart-form",{state:{},actions:{addQuantity:t=>{const e=n(t);if(!e)return;const{currentValue:r,maxValue:a,step:o,inputElement:i}=e,u=r+o;(void 0===a||u<=a)&&(i.value=u.toString())},removeQuantity:t=>{const e=n(t);if(!e)return;const{currentValue:r,minValue:a,step:o,inputElement:i}=e,u=r-o;u>=a&&(i.value=u.toString())}}}),(wc=void 0===wc?{}:wc)["add-to-cart-form"]=t})();