"use strict";$(function(){$.validator.setDefaults({highlight:function(n){$(n).parent().find(".errorContainer").show()},unhighlight:function(n){$(n).parent().find(".errorContainer").hide()},errorElement:"span",errorClass:"help-block",errorPlacement:function(n,t){n.insertAfter(t).wrap('<div class="errorContainer"><div class="arrow"><\/div><\/div>')}});$("form").each(function(){$(this).validate()});$("form.landing-page-form .amount-btn-group input:radio").bind("click change",function(n){var i=n.target.value,u=$(n.target),r=u.closest("form"),t;r.length<=0||(t=r.find("#txtAmount"),i&&(t.val(i),t.valid()))});$("form.landing-page-form input[type='number']").on("keyup",function(n){var t=$(n.target);t.parents("form").find(".amount-btn-group .btn").removeClass("active").end().find('[type="radio"]').prop("checked",!1)})})