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