PageSourceSearch

https://www.purdueglobal.edu/183.a4d8bbc815fa3f69.js

js purdueglobal.edu collected 2026-10-01 09:03:41 UTC 3,888 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkWebSite=self.webpackChunkWebSite||[]).push([[183],{6564:(b,g,s)=>{s.r(g),s.d(g,{LoginComponent:()=>M});class u{constructor(){this.username="",this.password="",this.rememberMe=!1}}class p{constructor(){this.token="",this.result=!0}}var l=s(9417),c=s(177),n=s(4438),d=s(4803),h=s(1626);let m=(()=>{class o{constructor(e){this.http=e,this.loginUrl="auth/login"}login(e){return this.http.post(`core/api/${this.loginUrl}`,e)}static{this.\u0275fac=function(r){return new(r||o)(n.KVO(h.Qq))}}static{this.\u0275prov=n.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function f(o,C){1&o&&(n.j41(0,"div"),n.EFF(1,"Invalid User/Password"),n.k0s())}let M=(()=>{class o{constructor(e,r,t){this.router=e,this.route=r,this.authService=t,this.invalidLogin=!1,this.loginDto=new u,this.jwtDto=new p}login(e){e.username&&e.password?this.authService.login(e).subscribe({next:r=>{r&&r.result?(this.invalidLogin=!1,window.location.assign(this.getSafeReturnUrl())):this.invalidLogin=!0},error:r=>{this.invalidLogin=!0,console.error("An error occurred:",r)}}):this.invalidLogin=!0}getSafeReturnUrl(){const e=this.route.snapshot.queryParamMap.get("returnUrl");return e&&e.startsWith("/")&&"/"!==e[1]&&"\\"!==e[1]?e:"/"}static{this.\u0275fac=function(r){return new(r||o)(n.rXU(d.Ix),n.rXU(d.nX),n.rXU(m))}}static{this.\u0275cmp=n.VBU({type:o,selectors:[["app-login"]],standalone:!0,features:[n.aNF],decls:11,vars:5,consts:[[1,"container"],["type","text","placeholder","username",1,"field",3,"ngModelChange","ngModel"],["type","password","placeholder","password",1,"field",3,"ngModelChange","ngModel"],[1,"remember-me"],["type","checkbox",3,"ngModelChange","ngModel","value"],[1,"btn",3,"click"],[4,"ngIf"]],template:function(r,t){1&r&&(n.j41(0,"div",0)(1,"h1"),n.EFF(2,"Login"),n.k0s(),n.j41(3,"input",1),n.mxI("ngModelChange",function(i){return n.DH7(t.loginDto.username,i)||(t.loginDto.username=i),i}),n.k0s(),n.j41(4,"input",2),n.mxI("ngModelChange",function(i){return n.DH7(t.loginDto.password,i)||(t.loginDto.password=i),i}),n.k0s(),n.j41(5,"div",3),n.EFF(6,"Remember me"),n.j41(7,"input",4),n.mxI("ngModelChange",function(i){return n.DH7(t.loginDto.rememberMe,i)||(t.loginDto.rememberMe=i),i}),n.k0s()(),n.j41(8,"button",5),n.bIt("click",function(){return t.login(t.loginDto)}),n.EFF(9,"Login"),n.k0s(),n.DNE(10,f,2,0,"div",6),n.k0s()),2&r&&(n.R7$(3),n.R50("ngModel",t.loginDto.username),n.R7$(),n.R50("ngModel",t.loginDto.password),n.R7$(3),n.R50("ngModel",t.loginDto.rememberMe),n.Y8G("value",t.loginDto.rememberMe),n.R7$(3),n.Y8G("ngIf",t.invalidLogin))},dependencies:[l.YN,l.me,l.Zm,l.BC,l.vS,c.MD,c.bT],styles:["*[_ngcontent-%COMP%]{box-sizing:border-box}body[_ngcontent-%COMP%]{background-color:#3498db;font-family:Arial,sans-serif;padding:50px}.container[_ngcontent-%COMP%]{margin:20px auto;padding:10px;width:300px;height:300px;background-color:#fff;border-radius:5px;display:flex;flex-direction:column;justify-content:center}h1[_ngcontent-%COMP%]{width:70%;color:#777;font-size:32px;margin:28px auto 20px;text-align:center}input[_ngcontent-%COMP%]{padding:12px 0;margin-bottom:10px;border-radius:3px;border:2px solid transparent;text-align:center;font-size:16px;transition:border .2s,background-color .2s}.field[_ngcontent-%COMP%]{background-color:#ecf0f1}.field[_ngcontent-%COMP%]:focus{border:2px solid #3498DB}.btn[_ngcontent-%COMP%]{background-color:#3498db;color:#fff;line-height:25px;cursor:pointer}.btn[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]:active{background-color:#1f78b4;border:2px solid #1F78B4}.pass-link[_ngcontent-%COMP%]{text-align:center}.pass-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .pass-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{font-size:12px;color:#777}.remember-me[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:20px}"]})}}return o})()}}]);

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.