PageSourceSearch

https://www.sejda.com/js/pages/login.min.js?v=34

js sejda.com collected 2026-09-24 08:49:54 UTC 5,394 bytes, 1 lines download raw bytes

1var inFrame=window!=window.top;$(function(){function o(o){const e=" [Error code: "+o.status+"]",n=o.responseText;var t="An error occurred. Please try again or contact support."+e;return 400!==o.status&&403!==o.status||(t=n||t),429===o.status&&(t="Too many login attempts. Please take a break and try again later."),t}function e(o){const e=(o||"").toLowerCase().trim();if(e.indexOf("@")<1)return null;for(var n=0;n<s.length;n++)if(e.endsWith(s[n]))return e;return null}function n(o){c!==!0&&(o&&console.log("Switching login form to SSO"),$(".sso-login-elem").toggle(!!o),$(".pwd-login-elem").toggle(!o))}function t(){const o=e(d.val());return o?o in l?void n(l[o]):void $.jsonPost("/users/login-with-sso/lookup",{email:o}).done(function(t){l[o]=!!t.useSSO,e(d.val())===o&&n(l[o])}).fail(function(){}):void n(!1)}function i(){$("#google-signin-preload").hide(),GoogleApis.loadGSI(function(){$("#google-signin-wrap").show(),google.accounts.id.initialize({client_id:"8721525582-fbt24du8pl38r1ht2ihu9q9vl815o5t8.apps.googleusercontent.com",callback:function(e){var n={id_token:e.credential};$.jsonPost("/users/login-with-google",n).done(function(o){inFrame?(window.parent.userLoggedInHandler(o.email,o.teamMember),window.parent.closeLoginModal()):window.location.href="account"}).fail(function(e,n,t){const i=o(e);$("#google-signin-wrap").find(".alert").text(i).show()})}}),google.accounts.id.renderButton(document.getElementById("google-signin2"),{theme:"outline",size:"large",scope:"profile email",width:350,height:35,longtitle:!0})})}inFrame&&($("header").hide(),$("footer").hide(),$(".logo").hide(),$("#closeFrame").show().click(function(o){o.preventDefault(),parent.closeLoginModal()}));try{const a=Intl.DateTimeFormat().resolvedOptions().timeZone+" "+navigator.language;$.cookie("tz_lang",a,{expires:365,path:"/"})}catch(o){}var r=$("#login-form");r.submit(function(e){e.preventDefault();var n=$(this).serializeJSON();if(r.find(".alert").hide(),!n["cf-turnstile-response"])return r.find(".alert").text('Please select the "Verify you are human" checkbox below').show(),!1;var t=r.find("button[type=submit]");t.attr("disabled","disabled").find("i.fa-lock").removeClass("fa-lock").addClass("fa-spinner fa-spin"),$.jsonPost("/users/login",n).done(function(o){Sejda.LocalStorage.setItem("rememberedEmail",n.email),inFrame?(window.parent.userLoggedInHandler(n.email,o.teamMember),window.parent.closeLoginModal()):window.location.href="account"}).fail(function(e,i,a){t.removeAttr("disabled").find("i.fa-spinner").removeClass("fa-spinner fa-spin").addClass("fa-lock");try{"undefined"!=typeof turnstile&&turnstile.reset()}catch(o){}const s=e.responseText,l=o(e);if(403===e.status&&"Email verification required"===s){r.find(".verification-code-group").show();const c=r.find("input[name=emailVerificationCode]"),d=c.val();return c.val(""),""!==d&&r.find(".alert").text("Verification code is incorrect").show(),void Sejda.EmailVerification.populateCheckInboxLink(n.email,r)}r.find(".alert").text(l).show()}).always(function(){})});const s=["o.com","s.com","t.com","a.com","k.com"],l={};var c=!1;const d=r.find("[name=email]"),u=r.find("[name=password]");d.on("input blur",t),u.on("focus",t),$(".switch-use-pwd a").click(function(){c=!0,$(".pwd-login-elem").show(),$(".sso-login-elem").hide()}),d.trigger("keyup input").focus();const f=Sejda.LocalStorage.getItem("rememberedEmail");f&&(d.val()||d.val(f).trigger("keyup input")),$(".btn-login-sso").click(function(){console.log("Performing SSO");const e=r.serializeJSON();return Sejda.LocalStorage.setItem("rememberedEmail",e.email),e["cf-turnstile-response"]?void $.jsonPost("/users/login-with-sso",e).done(function(o){inFrame?window.open(o.ssoUrl,"_blank"):window.location.href=o.ssoUrl}).fail(function(e,n,t){const i=o(e);r.find(".alert").text(i).show()}):(r.find(".alert").text('Please select the "Verify you are human" checkbox below').show(),!1)}),$("#msft-signin2").click(function(){loadScript("https://alcdn.msftauth.net/lib/1.2.1/js/msal.js",function(){const e={auth:{clientId:"fcd5a3f1-9bed-44f2-8eb8-84483c69b9e2",authority:"https://login.microsoftonline.com/common",redirectUri:[window.location.protocol,"//",window.location.host,"/one-drive-auth"].join("")},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1}},n=new Msal.UserAgentApplication(e);n.loginPopup({scopes:["openid","profile","email"],prompt:"select_account",redirectUri:[window.location.protocol,"//",window.location.host,"/one-drive-auth"].join("")}).then(function(e){const t=e.account.userName;return t&&t.toLowerCase().endsWith("@gmail.com")?void $("#msft-signin-wrap").find(".alert").text(s_i18n("It looks like you have a Google account. Please use the Sign in with Google button instead.")).show():void n.acquireTokenSilent({scopes:["openid","profile","email"],account:e.account}).then(function(e){const n=e.idToken.rawIdToken;var t={id_token:n};
1$.jsonPost("/users/login-with-microsoft",t).done(function(o){inFrame?(window.parent.userLoggedInHandler(o.email,o.teamMember),window.parent.closeLoginModal()):window.location.href="account"}).fail(function(e,n,t){const i=o(e);$("#msft-signin-wrap").find(".alert").text(i).show()})}).catch(function(o){console.error(o)})}).catch(function(o){console.error(o)})})}),Sejda.OptOutChoices.noGoogle()?$(".btn-login-google-preload").click(function(){Sejda.OptOutChoices.askGoogle().then(function(){i()})}):i()}),forceHttps();

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.