$(document).ready((function(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$(".car-loan-form").length&&e(),$(document).on("keyup",".car-loan-form input",(function(){a()})),$(document).on("change",".car-loan-form select",(function(){e()}));var n,o,t,a=(n=e,o=500,function(){for(var a=arguments.length,e=new Array(a),r=0;r<a;r++)e[r]=arguments[r];clearTimeout(t),t=setTimeout((function(){clearTimeout(t),n.apply(void 0,e)}),o)});function e(){var n=$(".car-loan-form");$.ajax({url:n.attr("data-url"),type:"POST",data:n.serialize(),success:function(n){var o=$(".loan-form-result");$(".loan-form-error").hide(),o.find(".down-payment-amount").html(n.down_payment),o.find(".est-monthly-payment").html(n.monthly_payment),o.find(".loan-amount").html(n.loan_amount)},error:function(n){$(".loan-form-error").html(n.responseJSON.message).show()}})}}));