var LoginForm=function(){return function(){var e=$("#usernamePasswordForm"),r=$("#passwordInput").data("min-len");e.find("input[name=createAccount]").change(function(){$(this).prop("checked")?($("#pwdConfirm").removeClass("hidden"),$("#regName").removeClass("hidden").find("input").attr("required","required"),$("#passwordInput").attr("placeholder",__t("std","pw_min_x_chars").replace(/%NUM%/,r)),$("#createStr").removeClass("hidden"),$("#loginStr").addClass("hidden")):($("#pwdConfirm").addClass("hidden"),$("#regName").addClass("hidden").find("input").removeAttr("required"),$("#passwordInput").attr("placeholder",""),$("#createStr").addClass("hidden"),$("#loginStr").removeClass("hidden"))}).trigger("change"),e.submit(function(n){var t=$("#passwordInput").val();t.length<r&&(n.preventDefault(),bootbox.alert(__t("std","pw_x_chars").replace(/%NUM%/,r))),e.find("input[name=createAccount]").prop("checked")&&t!=$("#passwordConfirm").val()&&(n.preventDefault(),bootbox.alert(__t("std","pw_no_match")))})}}();new LoginForm;
//# sourceMappingURL=LoginForm.js.map
