$(document).ready((function(){function t(t,a){var e="",u=numeral(t.value).value();t.value=numeral(u).format(a),e=u,$(t).on("keyup",(function(){var t=numeral(this.value).value();if(e!=t){var u=this.selectionStart,n=this.value.length;this.value=numeral(t).format(a),e=t;var l=this.value.length-n+u;this.setSelectionRange(l,l)}})).on("blur",(function(){var t=numeral(this.value).value();this.value=numeral(t).format(a)}))}$(".input-price-ext").each((function(){var a=this.getAttribute("data-format");null==a&&(a="0,0"),t(this,a)}))}));