(()=>{"use strict";var t,r,a=function(t){t("body").on("click",".rtsb-quantity-plus, .rtsb-quantity-minus",function(r){var a,n;n=(a=t(r.currentTarget).closest(".rtsb-quantity-box-group").find(".qty")).val()?parseFloat(a.val()):0;var i=parseFloat(a.attr("max")),e=parseFloat(a.attr("min")),u=parseFloat(a.attr("step"));t(r.currentTarget).is(".rtsb-quantity-plus")?i&&i<=n?a.val(i):a.val(n+u):e&&e>=n?a.val(e):n>0&&a.val(n-u),t(".qty").trigger("change"),t(document).trigger("rtsb_cart_quantity_change")})};t=jQuery,window.RTSB&&window.RTSB._initialized&&(null===(r=window.RTSB.modules.register("cartQuantity",function(){return{name:"CartQuantityHandler",version:"1.0.0",init:function(){return a(t),this},refresh:function(){a(t)}}}))||void 0===r||r.init())})();