(()=>{"use strict";var t;(t=jQuery)(document).on("click",".quantity .increase, .quantity .decrease",(function(a){a.preventDefault();var r=t(this),e=r.closest(".product-button").find(".quantity_button"),n=r.siblings(".qty"),s=parseInt(n.attr("step"),10),i=parseInt(n.val(),10),u=parseInt(n.attr("min"),10),c=parseInt(n.attr("max"),10);if(u=u||1,c=c||i+1,r.hasClass("decrease")&&i>u){n.val(i-s),n.trigger("change");var d=+e.attr("data-quantity");d-=1,e.attr("data-quantity",d)}if(r.hasClass("increase")&&i<c){n.val(i+s),n.trigger("change");var l=+e.attr("data-quantity");l+=1,e.attr("data-quantity",l)}}))})();