!function(e){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||Object.defineProperty(String.prototype,"getDecimals",{value:function(){var e=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},enumerable:!1}),woodmartThemeModule.$document.on("click",".plus, .minus",function(t){t.preventDefault();var a=e(this),o=a.closest(".quantity").find(".qty"),r=parseFloat(o.val()),i=parseFloat(o.attr("max")),l=parseFloat(o.attr("min")),n=o.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==i&&"NaN"!==i||(i=""),""!==l&&"NaN"!==l||(l=0),"any"!==n&&""!==n&&void 0!==n&&"NaN"!=parseFloat(n)||(n="1"),a.is(".plus")?i&&(r+parseFloat(n)).toFixed(n.getDecimals())>=i?o.val(i):o.val((r+parseFloat(n)).toFixed(n.getDecimals())):l&&(r-parseFloat(n)).toFixed(n.getDecimals())<=l?o.val(l):r>0&&o.val((r-parseFloat(n)).toFixed(n.getDecimals())),o.trigger("change")})},e(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery);