!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(){var t=e(this),a=t.closest(".quantity").find(".qty"),o=parseFloat(a.val()),r=parseFloat(a.attr("max")),i=parseFloat(a.attr("min")),l=a.attr("step");o&&""!==o&&"NaN"!==o||(o=0),""!==r&&"NaN"!==r||(r=""),""!==i&&"NaN"!==i||(i=0),"any"!==l&&""!==l&&void 0!==l&&"NaN"!=parseFloat(l)||(l="1"),t.is(".plus")?r&&(o+parseFloat(l)).toFixed(l.getDecimals())>=r?a.val(r):a.val((o+parseFloat(l)).toFixed(l.getDecimals())):i&&(o-parseFloat(l)).toFixed(l.getDecimals())<=i?a.val(i):o>0&&a.val((o-parseFloat(l)).toFixed(l.getDecimals())),a.trigger("change")})},e(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery);