PageSourceSearch

https://cdn.deputy.com/1271506e1df63eca546f79a9c6d4bd6fede854e0/js/_app/dp.my.login.js

js deputy.com collected 2026-09-24 08:07:16 UTC 6,719 bytes, 1 lines download raw bytes

1var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});DP.my.login={loginView:null,forgetPasswordView:null,resendActivationEmailView:null,blnEmailFieldReadOnly:!1,init:__name(function(){this.loginView=new DP.my.login.vwLogin({el:$("#login-form")}),this.forgetPasswordView=new DP.my.login.forgetPassword({el:$("#password-modal")}),this.resendActivationEmailView=new DP.my.login.vwResendActivationEmail({el:$("#resend-activation-email-modal")});var _this=this;this.loginView.on("forgetPasswordClicked",function(){_this.forgetPasswordView.show(),_this.forgetPasswordView.model.set({EmailAddress:_this.loginView.model.get("EmailAddress")})}),this.loginView.on("resendActivationClicked",function(){_this.resendActivationEmailView.show(),_this.resendActivationEmailView.model.set({EmailAddress:_this.loginView.model.get("EmailAddress")})}),$("#login-email").trigger("focus"),$(".social-connect").click(function(e){$(e.target).addClass("disabled").text("Loading..")})},"init")},DP.my.login.mdlLoginUser=Backbone.Model.extend({validation:{EmailAddress:{required:!0},Password:{required:!0}},loginWithCallback:__name(function(fnCallback){DP.mushodo.askSingle("DoLogin",this.toJSON(),fnCallback)},"loginWithCallback")}),DP.my.login.vwLogin=DP.my.base.vwEditPanel.extend({initialize:__name(function(){this.model=new DP.my.login.mdlLoginUser,this.fields={},this.fields.EmailAddress=new DP.my.base.vwTextInputTrimmingField({el:this.$(".login-email")}),this.fields.Password=new DP.my.base.vwTextInputField({el:this.$(".login-password")}),this.fields.EmailAddress.blnAllowEnterKey=!0,this.fields.Password.blnAllowEnterKey=!0,this.model.set({EmailAddress:this.fields.EmailAddress.getInputValue()}),this.listenToModelError(),this.$("input[name='hdnScreenRes']").val(screen.width+"x"+screen.height)},"initialize"),events:{"click .forget-password":"forgetPasswordClicked","keypress #login-email,#login-password":"submitForm","click .show-thirdparty":"showThirdParty"},recaptchaCallback:__name(function(){this.$("#recaptchaTokenTrigger").trigger("click")},"recaptchaCallback"),forgetPasswordClicked:__name(function(e){e.preventDefault(),this.trigger("forgetPasswordClicked")},"forgetPasswordClicked"),submitForm:__name(function(e){var keyCode=e.keyCode||e.which;return keyCode==13?(this.$("#btnLoginSubmit").trigger("click"),!1):!0},"submitForm"),showThirdParty:__name(function(e){$(".third-party-dropdown").dropdown("toggle")},"showThirdParty")}),DP.my.login.mdlForgetPassword=Backbone.Model.extend({validation:{EmailAddress:{required:!0}},sendResetPasswordEmailWithCallback:__name(function(fnCallback){DP.mushodo.askSingle("SendResetPasswordEmail",this.toJSON(),fnCallback)},"sendResetPasswordEmailWithCallback")}),DP.my.login.forgetPassword=DP.my.base.vwEditPanel.extend({initialize:__name(function(){this.model=new DP.my.login.mdlForgetPassword,this.fields={},this.fields.EmailAddress=new DP.my.base.vwTextInputTrimmingField({el:this.$(".forget-password-email")}),this.addDefaultListeners(),this.addModalListener()}
1,"initialize"),addModalListener:__name(function(){var _this=this;this.on("hidden",function(){_this.reset()})},"addModalListener"),events:{"click .btn-primary":"sendResetPasswordEmail"},reset:__name(function(){this.model.clear(),this.removeAllMessages()},"reset"),show:__name(function(){this.reset(),this.$("#email").attr("readonly",DP.my.login.blnEmailFieldReadOnly?"readonly":!1),$(this.el).modal("show")},"show"),hide:__name(function(){this.$("#email").attr("readonly",!1),$(this.el).modal("hide")},"hide"),sendResetPasswordEmail:__name(function(e){e.preventDefault();var _this=this,map=this.getValuesFromFields();_this.model.set(map),_this.model.isValid(!0)&&(_this.removeAllMessages(),this.$(".btn-primary").button("loading"))},"sendResetPasswordEmail"),validateValue:__name(function(){var map=this.getValuesFromFields();this.model.set(map);var blnValid=this.model.isValid(!0);return blnValid},"validateValue")}),DP.my.login.mdlResendActivationEmail=Backbone.Model.extend({validation:{EmailAddress:{required:!0}},resendActivationEmailWithCallback:__name(function(fnCallback){DP.mushodo.askSingle("ResendActivationEmail",this.toJSON(),fnCallback)},"resendActivationEmailWithCallback")}),DP.my.login.vwResendActivationEmail=DP.my.base.vwEditPanel.extend({initialize:__name(function(){this.model=new DP.my.login.mdlResendActivationEmail,this.fields={},this.fields.EmailAddress=new DP.my.base.vwTextInputTrimmingField({el:this.$(".resend-activation-email")}),this.addDefaultListeners(),this.addModalListener()}
1,"initialize"),addModalListener:__name(function(){var _this=this;this.on("hidden",function(){_this.reset()})},"addModalListener"),events:{"click .btn-primary":"resendActivationEmail"},reset:__name(function(){this.model.clear(),this.removeAllMessages()},"reset"),show:__name(function(){this.reset(),$(this.el).modal("show"),this.$("#resend-activation-email").attr("readonly",DP.my.login.blnEmailFieldReadOnly?"readonly":!1)},"show"),hide:__name(function(){this.reset(),this.$("#resend-activation-email").attr("readonly",!1),$(this.el).modal("hide")},"hide"),resendActivationEmail:__name(function(e){e.preventDefault();var _this=this,map=this.getValuesFromFields();_this.model.set(map),_this.model.isValid(!0)&&(_this.removeAllMessages(),this.$(".btn-primary").button("loading"),_this.model.resendActivationEmailWithCallback(function(mix){_this.$(".btn-primary").button("reset"),mix&&mix.error?_this.handleServerError(mix):(DP.utils.notyFeedback("Thanks. Please check your email to activate your account."),_this.hide())}))},"resendActivationEmail")}),function(){$(document).bind("qcloaded",function(e){DP.my.login.init(),DP.mushodo.askSingle("GetOpenIdService","",function(mixReturn){mixReturn&&!mixReturn.error&&(DP.my.login.blnEmailFieldReadOnly=mixReturn==!0,$("#login-email").attr("readonly",DP.my.login.blnEmailFieldReadOnly?"readonly":!1))}),document.location.hash=="#forgot"&&$(".forget-password").trigger("click"),$("#password-modal input").keyup(function(event){if(event.key==="Enter"||event.keyCode===13){var $button=$("#password-modal #btnResetPasssword");$button&&$button.trigger("click")}}),$("#resend-activation-email-modal input").keyup(function(event){if(event.key==="Enter"||event.keyCode===13){var $button=$("#resend-activation-email-modal .btn-primary");$button&&$button.trigger("click")}}),$("#signup-form input").keyup(function(event){if(event.key==="Enter"||event.keyCode===13){var $button=$("#signup-form #btnSignup");$button&&$button.trigger("click")}})})}(),window.recaptchaCallback=function(token){DP.my.login.loginView.recaptchaCallback(token)},$(document).ready(function(){top!==self&&(window.parent.location=self.location)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.