PageSourceSearch

https://schools.pikmykid.com/pmk/4405.46719d1a4eb7a43a.js

js pikmykid.com collected 2026-09-24 09:23:41 UTC 25,989 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpikmykid=self.webpackChunkpikmykid||[]).push([[4405],{4405:(dt,y,r)=>{r.r(y),r.d(y,{LoginComponent:()=>pt});var u=r(5312),t=r(4438),v=r(1626),S=r(2490),R=r(2735);let C=(()=>{class s{constructor(e,i,o){this.http=e,this.cookieService=i,this.systemService=o}login(e){return this.http.post(u.c.basePath+"home/adminlogin",e,this.systemService.options)}verifyOtp(e){return this.http.post(u.c.basePath+"home/verifyotp",e,this.systemService.options)}resendOtp(e){return this.http.post(u.c.basePath+"home/resendotp",e,this.systemService.options)}checkEmail(e){return this.http.post(u.c.basePath+"sso/getssointegrationtype",e,this.systemService.options)}validateOtpToken(e){return this.http.post(u.c.basePath+"home/validateotptokenasync",e,this.systemService.options)}sendschooluseraccountresetlink(e){return this.http.post(u.c.basePath+"account/sendschooluseraccountresetlink",e,this.systemService.options)}static#t=this.\u0275fac=function(i){return new(i||s)(t.KVO(v.Qq),t.KVO(S.O),t.KVO(R.V))};static#e=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}return s})();var x=r(2168),T=r(491),k=r(1141),I=r(7550),w=r(2242),L=r(229),b=r(177),m=r(9417),g=r(3321),E=r(1043),U=r(6160),O=r(4602),D=r(6516),p=r(4820),h=r(4718),G=r(4796),N=r(5779),F=r(4244);function j(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",5)(1,"div",7),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.returnToLogin())})("keydown.enter",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.returnToLogin())})("keydown.space",function(o){return t.eBV(e),t.XpG(2).returnToLogin(),t.Njj(o.preventDefault())}),t.nrm(2,"i",8),t.EFF(3," Return to Login"),t.k0s()()}}function V(s,a){1&s&&t.nrm(0,"img",9)}function A(s,a){if(1&s&&(t.j41(0,"div",18),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.JRh(e.error_message)}}function X(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",5)(1,"div",19)(2,"label",20),t.EFF(3,"Email Address "),t.nrm(4,"app-required",21),t.k0s(),t.j41(5,"input",22),t.bIt("keyup.enter",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.checkEmail())})("change",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.onEmailChange())}),t.k0s()()()}if(2&s){const e=t.XpG(4);t.R7$(4),t.Y8G("field",e.fLogin.UserName)("validateOnTouched",!0),t.R7$(),t.Y8G("ngClass",e.fLogin.UserName.errors&&e.fLogin.UserName.touched?"login_input-invalid":"")}}function P(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",5)(1,"div",19)(2,"label",23),t.EFF(3,"Username"),t.k0s(),t.j41(4,"input",24),t.bIt("change",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.onEmailChange())}),t.k0s()()()}if(2&s){const e=t.XpG(4);t.R7$(4),t.Y8G("readonly",!e.usernameEditable)}}function $(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",5)(1,"div",19)(2,"label",25),t.EFF(3,"Password "),t.nrm(4,"app-required",21),t.k0s(),t.j41(5,"input",26),t.bIt("keydown.enter",function(o){t.eBV(e);const l=t.XpG(4);return t.Njj(l.onPasswordEnter(o))}),t.k0s()()()}if(2&s){const e=t.XpG(4);t.R7$(4),t.Y8G("field",e.fLogin.Password)("validateOnTouched",!0),t.R7$(),t.Y8G("ngClass",e.fLogin.Password.errors&&e.fLogin.Password.touched?"login_input-invalid":"")}}function Y(s,a){if(1&s&&t.nrm(0,"app-btn-primary-state",27),2&s){const e=t.XpG(4);t.Y8G("label","Login")("state",e.btnState)("action",e.login)}}function B(s,a){if(1&s&&t.nrm(0,"app-btn-primary-state",27),2&s){const e=t.XpG(4);t.Y8G("label","Continue")("state",e.btnState)("action",e.checkEmail)}}function M(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",28)(1,"a",29),t.bIt("click",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.toggleReset())})("keydown.enter",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.toggleReset())})("keydown.space",function(o){return t.eBV(e),t.XpG(4).toggleReset(),t.Njj(o.preventDefault())}),t.EFF(2,"Forgot your password?"),t.k0s()()}}function z(s,a){1&s&&(t.j41(0,"div",30)(1,"span"),t.EFF(2,"Or"),t.k0s()())}function J(s,a){if(1&s){const e=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.sso())}),t.k0s()}}function K(s,a){if(1&s&&(t.j41(0,"div")(1,"form",11)(2,"div",12),t.EFF(3,"Staff Login"),t.k0s(),t.DNE(4,A,2,1,"div",13)(5,X,6,3,"div",2)(6,P,5,1,"div",2)(7,$,6,3,"div",2)(8,Y,1,3,"app-btn-primary-state",14)(9,B,1,3,"app-btn-primary-state",14)(10,M,3,0,"div",15)(11,z,3,0,"div",16)(12,J,1,0,"button",17),t.k0s()()),2&s){const e=t.XpG(3);t.R7$(),t.Y8G("formGroup",e.myFormLogin),t.R7$(3),t.Y8G("ngIf",e.error),t.R7$(),t.Y8G("ngIf",!e.emailChecked),t.R7$(),t.Y8G("ngIf",e.emailChecked),t.R7$(),t.Y8G("ngIf",e.emailChecked),t.R7$(),t.Y8G("ngIf",e.emailChecked),t.R7$(),t.Y8G("ngIf",!e.emailChecked),t.R7$(),t.Y8G("ngIf",e.emailChecked),t.R7$(),t.Y8G("ngIf",e.ssoEnabled),t.R7$(),t.Y8G("ngIf",e.ssoEnabled)}}function Q(s,a){if(1&s&&(t.j41(0,"div",37),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.SpI("Enter the verification code sent to ",e.otpUserEmail,"")}}function q(s,a){if(1&s&&(t.j41(0,"div",38),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.JRh(e.success_message)}}function H(s,a){if(1&s&&(t.j41(0,"div",18),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.JRh(e.error_message)}}function Z(s,a){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.SpI(" (available in ",e.otpCountdownText,")")}}function W(s,a){if(1&s){const e=t.RV6();t.j41(0,"div")(1,"form",32)(2,"div",12),t.EFF(3,"Verification Code"),t.k0s(),t.DNE(4,Q,2,1,"div",33)(5,q,2,1,"div",34)(6,H,2,1,"div",13),t.j41(7,"div",5)(8,"div",19)(9,"label",35),t.EFF(10,"One-time Passcode "),t.nrm(11,"app-required",21),t.k0s(),t.j41(12,"input",36),t.bIt("keyup.enter",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.verifyOtp())}),t.k0s()()(),t.nrm(13,"app-btn-primary-state",27),t.j41(14,"div",28)(15,"a",29),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(!o.isResendBlocked&&o.resendOtp())})("keydown.enter",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(!o.isResendBlocked&&o.resendOtp())})("keydown.space",function(o){t.eBV(e);const l=t.XpG(3);return!l.isResendBlocked&&l.resendOtp(),t.Njj(o.preventDefault())}),t.EFF(16," Resend code "),t.DNE(17,Z,2,1,"span",10),t.k0s()()()()}if(2&s){const e=t.XpG(3);t.R7$(),t.Y8G("formGroup",e.myFormOtp),t.R7$(3),t.Y8G("ngIf",e.otpUserEmail),t.R7$(),t.Y8G("ngIf",e.success),t.R7$(),t.Y8G("ngIf",e.error),t.R7$(5),t.Y8G("field",e.fOtp.OtpCode)("validateOnTouched",!0),t.R7$(),t.Y8G("ngClass",e.fOtp.OtpCode.errors&&e.fOtp.OtpCode.touched?"login_input-invalid":""),t.R7$(),t.Y8G("label","Verify Code")("state",e.btnState)("action",e.verifyOtp),t.R7$(2),t.AVh("forgot-disabled",e.isResendBlocked),t.BMQ("aria-disabled",e.isResendBlocked),t.R7$(2),t.Y8G("ngIf",e.otpCountdownSeconds>0)}}function tt(s,a){1&s&&(t.j41(0,"div",37),t.EFF(1,"Enter your email below to receive your password reset instructions"),t.k0s())}function et(s,a){if(1&s&&(t.j41(0,"div",38),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.JRh(e.success_message)}}function st(s,a){if(1&s&&(t.j41(0,"div",18),t.EFF(1),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.JRh(e.error_message)}}function ot(s,a){if(1&s){const e=t.RV6();t.j41(0,"form",42)(1,"div",5)(2,"div",19)(3,"label",20),t.EFF(4,"Email Address "),t.nrm(5,"app-required",43),t.k0s(),t.j41(6,"input",44),t.bIt("keyup.enter",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.reset())}),t.k0s()()()()}if(2&s){const e=t.XpG(4);t.Y8G("formGroup",e.myFormReset),t.R7$(5),t.Y8G("field",e.fReset.UserName),t.R7$(),t.Y8G("ngClass",e.fReset.UserName.invali
1d&&e.fReset.UserName.dirty?"login_input-invalid":"")}}function it(s,a){if(1&s&&(t.j41(0,"div",45),t.nrm(1,"app-btn-primary-state",27),t.k0s()),2&s){const e=t.XpG(4);t.R7$(),t.Y8G("label","Send Reset Link")("state",e.btnState)("action",e.reset)}}function nt(s,a){if(1&s&&(t.j41(0,"div")(1,"div",39),t.EFF(2,"Forgot Password?"),t.k0s(),t.DNE(3,tt,2,0,"div",33)(4,et,2,1,"div",34)(5,st,2,1,"div",13)(6,ot,7,3,"form",40)(7,it,2,3,"div",41),t.k0s()),2&s){const e=t.XpG(3);t.R7$(3),t.Y8G("ngIf",!e.success),t.R7$(),t.Y8G("ngIf",e.success),t.R7$(),t.Y8G("ngIf",e.error),t.R7$(),t.Y8G("ngIf",!e.success),t.R7$(),t.Y8G("ngIf",!e.success)}}function rt(s,a){if(1&s&&t.DNE(0,K,13,10,"div",10)(1,W,18,14,"div",10)(2,nt,8,5,"div",10),2&s){const e=t.XpG(2);t.Y8G("ngIf",!e.forgot&&!e.otpRequired),t.R7$(),t.Y8G("ngIf",e.otpRequired),t.R7$(),t.Y8G("ngIf",e.forgot)}}function at(s,a){if(1&s){const e=t.RV6();t.j41(0,"div",1),t.DNE(1,j,4,0,"div",2),t.j41(2,"p-card"),t.DNE(3,V,1,0,"ng-template",3)(4,rt,3,3,"ng-template",4),t.k0s(),t.j41(5,"div",5)(6,"div",6),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.terms())})("keydown.enter",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.terms())})("keydown.space",function(o){return t.eBV(e),t.XpG().terms(),t.Njj(o.preventDefault())}),t.EFF(7,"Terms of Use"),t.k0s()()()}if(2&s){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.forgot||e.otpRequired)}}let pt=(()=>{class s{constructor(e,i,o,l,_){this.router=e,this.activatedRoute=i,this.loginService=o,this.systemService=l,this.authService=_,this.OtpStatus={Required:"OTP_REQUIRED",Validated:"OTP_VALIDATED",Failed:"OTP_FAILED",Locked:"OTP_LOCKED",Expired:"OTP_EXPIRED"},this.error=!1,this.error_message="",this.env=u.c,this.success=!1,this.success_message="",this.redirectUrl="",this.btnState=p.D.Default,this.AUTOFILL_PREVENTION_DELAY=500,this.myFormLogin=new m.gE({UserName:new m.MJ({value:"",disabled:!1},[(0,g.o)([{type:"required"}])]),Password:new m.MJ({value:"",disabled:!1},[(0,g.o)([{type:"required"}])])}),this.myFormReset=new m.gE({UserName:new m.MJ({value:"",disabled:!1},[(0,g.o)([{type:"required"}])])}),this.myFormOtp=new m.gE({OtpCode:new m.MJ("",[(0,g.o)([{type:"required"}])])}),this.forgot=!1,this.otpRequired=!1,this.otpUserId="",this.otpUserEmail="",this.otpUserType="",this.otpSchoolId="",this.otpSchoolName="",this.otpIsUserAnAdmin=!1,this.otpAccountTypeID="",this.otpCountdownSeconds=0,this.otpCountdownTimer=null,this.rememberMe="0",this.Subscriptions=[],this.emailChecked=!1,this.usernameEditable=!1,this.ssoEnabled=!1,this.showLogin=!0,this.ssoIntegrations={None:0,Saml:1},this.ssoType=0,this.login=()=>{if(this.error=!1,this.error_message="",this.success=!1,this.success_message="",!this.fLogin.Password.value)return void this.fLogin.Password.markAsTouched();if(this.btnState==p.D.Loading)return;this.btnState=p.D.Loading;const d={...this.myFormLogin.value,rememberMe:this.rememberMe};this.Subscriptions.push(this.loginService.login(d).subscribe(n=>{if(n.IsSuccess){const c=this.normalizeResponse(n).Data;if(this.getOtpStatus(c)===this.OtpStatus.Required)return this.btnState=p.D.Default,this.otpRequired=!0,this.forgot=!1,this.otpUserId=this.getResponseValue(c,["UserId","userId"])||"",this.otpUserEmail=this.getResponseValue(c,["UserEmail","userEmail"])||"",this.otpUserType=this.getResponseValue(c,["UserType","userType"])||"",this.otpSchoolId=this.getResponseValue(c,["SchoolId","schoolId"])||"",this.otpSchoolName=this.getResponseValue(c,["SchoolName","schoolName"])||"",this.otpIsUserAnAdmin=this.getResponseBool(c,["IsUserAnAdmin","isUserAnAdmin"]),this.otpAccountTypeID=this.getResponseValue(c,["AccountTypeID","accountTypeID","accountTypeId"])||"",this.startOtpCountdownFromResponse(c),void this.myFormOtp.reset();this.systemService.clearLocalStorage(),this.handlePostLogin(c)}else this.ShowError(this.getResponseValue(n,["ErrorMessage","errorMessage"])||"An error occurred")}))},this.verifyOtp=()=>{if(this.error=!1,this.error_message="",this.success=!1,this.success_message="",!this.otpRequired||!this.otpUserId)return;if(!this.myFormOtp.valid)return void this.myFormOtp.markAllAsTouched();if(this.btnState==p.D.Loading)return;this.btnState=p.D.Loading;const d={userId:this.otpUserId,otpCode:(this.fOtp.OtpCode.value||"").toString().trim().toUpperCase(),RedirectTo:this.redirectUrl,UserType:this.otpUserType,SchoolId:this.otpSchoolId,SchoolName:this.otpSchoolName,IsUserAnAdmin:this.otpIsUserAnAdmin,AccountTypeID:this.otpAccountTypeID,UserEmail:this.otpUserEmail};this.Subscriptions.push(this.loginService.verifyOtp(d).subscribe(n=>{if(n.IsSuccess){const c=this.normalizeResponse(n).Data;this.otpRequired=!1,this.otpUserId="",this.otpUserEmail="",this.otpUserType="",this.otpSchoolId="",this.otpSchoolName="",this.otpIsUserAnAdmin=!1,this.otpAccountTypeID="",this.stopOtpCountdown(),this.otpCountdownSeconds=0,this.myFormOtp.reset(),this.systemService.clearLocalStorage(),this.handlePostLogin(c)}else!0===n.TakeAction&&this.returnToLogin(),this.ShowError(this.getResponseValue(n,["ErrorMessage","errorMessage"])||"An error occurred")}))},this.resendOtp=()=>{this.error=!1,this.error_message="",this.success=!1,this.success_message="",this.otpRequired&&this.otpUserId&&!this.isResendBlocked&&(this.btnState=p.D.Loading,this.Subscriptions.push(this.loginService.resendOtp({userId:this.otpUserId}).subscribe(n=>{if(n.IsSuccess){const c=this.normalizeResponse(n).Data,f=this.getResponseValue(c,["Message","message"]);return this.startOtpCountdownFromResponse(c),this.btnState=p.D.Success,this.success=!0,this.success_message=f,void setTimeout(()=>{this.btnState=p.D.Default},h.K.Default)}this.ShowError(this.getResponseValue(n,["ErrorMessage","errorMessage"]))})))},this.checkEmail=()=>{if(this.emailChecked)return;if(this.error=!1,this.error_message="",!this.fLogin.UserName.value)return void this.fLogin.UserName.markAsTouched();let d={Email:this.fLogin.UserName.value};this.btnState=p.D.Loading,this.Subscriptions.push(this.loginService.checkEmail(d).subscribe(n=>{this.emailChecked=n.IsSuccess,this.ssoType=n.Data,this.ssoEnabled=this.ssoType!=this.ssoIntegrations.None,this.btnState=p.D.Default,this.emailChecked&&(this.usernameEditable=!1,setTimeout(()=>{this.usernameEditable=!0},this.AUTOFILL_PREVENTION_DELAY))}))},this.reset=()=>{if(!this.fReset.UserName.value)return;this.resetMessages();let d={Username:this.fReset.UserName.value};this.btnState=p.D.Loading,this.Subscriptions.push(this.loginService.sendschooluseraccountresetlink(d).subscribe(n=>{n.Success?setTimeout(()=>{this.btnState=p.D.Success,this.success_message=n.Message,setTimeout(()=>{this.btnState=p.D.Default,this.success=n.Success},h.K.Default)},h.K.Success):setTimeout(()=>{this.btnState=p.D.Error,this.error=!n.Success,this.error_message=n.Message,setTimeout(()=>{this.btnState=p.D.Default},h.K.Default)},h.K.Error)}))},this.systemService.isLoggedIn()&&(this.systemService.setLoading(!0),this.showLogin=!1,this.router.navigate(["schooladmin/d
1ashboard"])),this.activatedRoute.queryParams.subscribe(d=>{var n=d.redir;null!=n&&(this.redirectUrl=n),this.handleLogoutQueryParam(d)})}get fLogin(){return this.myFormLogin.controls}get fReset(){return this.myFormReset.controls}get fOtp(){return this.myFormOtp.controls}ngAfterContentChecked(){}ngOnInit(){this.systemService.clearLoading(),this.Subscriptions.push(this.activatedRoute.params.subscribe(e=>{const i=(e.token||"").toString().trim();i&&this.validateJwtTokenAndStartOtpFlow(i)}))}ngOnDestroy(){this.stopOtpCountdown(),this.Subscriptions.forEach(e=>{e.unsubscribe()})}get isResendBlocked(){return this.btnState==p.D.Loading||this.otpCountdownSeconds>0}get otpCountdownText(){return`${Math.floor(this.otpCountdownSeconds/60)}:${(this.otpCountdownSeconds%60).toString().padStart(2,"0")}`}onPasswordEnter(e){e.preventDefault(),!e.repeat&&this.login()}RedirectTo(e){this.systemService.setLoading(!0),this.showLogin=!1,setTimeout(()=>{this.btnState=p.D.Success,setTimeout(()=>{this.btnState=p.D.Default,""!=this.redirectUrl?this.router.navigate([this.redirectUrl]):window.location.href=u.c.basePath+e},h.K.Default)},h.K.Success)}handlePostLogin(e){"4"==this.getResponseValue(e,["UserType","userType"])?this.RedirectTo("district/"):this.RedirectTo("SchoolAdmin/Dashboard")}normalizeResponse(e){if("string"==typeof e)try{return JSON.parse(e)}catch{return{}}return e||{}}getResponseValue(e,i){for(const o of i)if(e&&null!=e[o])return e[o];return null}getResponseBool(e,i){const o=this.getResponseValue(e,i);return"boolean"==typeof o?o:"string"==typeof o&&"true"===o.toLowerCase()}getOtpStatus(e){const i=this.getResponseValue(e,["OtpStatus","otpStatus"]);return i?i.toString().trim().toUpperCase():""}validateJwtTokenAndStartOtpFlow(e){this.resetMessages(),this.forgot=!1,this.otpRequired=!1,this.otpUserId="",this.otpUserEmail="",this.otpUserType="",this.otpSchoolId="",this.otpSchoolName="",this.otpIsUserAnAdmin=!1,this.otpAccountTypeID="",this.stopOtpCountdown(),this.otpCountdownSeconds=0,this.myFormOtp.reset(),this.btnState=p.D.Loading,this.Subscriptions.push(this.loginService.validateOtpToken({token:e}).subscribe(i=>{const o=this.normalizeResponse(i),l=o.Data,_=this.getResponseBool(o,["IsSuccess","issuccess"]),d=this.getResponseValue(l,["UserId","userId"]),n=this.getResponseValue(l,["UserType","userType"]),c=this.getResponseValue(l,["SchoolId","schoolId"]),f=this.getResponseValue(l,["Email","Email"]);if(_&&d)return this.btnState=p.D.Default,this.otpRequired=!0,this.otpUserId=d.toString(),this.otpUserType=n.toString(),this.otpSchoolId=c.toString(),this.otpUserEmail=f.toString(),void this.startOtpCountdownFromJwtToken(e);const lt=this.getResponseValue(o,["Message","message"])||this.getResponseValue(l,["Message","message"])||"The login token is invalid or has expired. Please log in again.";this.ShowError(lt)}))}handleLogoutQueryParam(e){"true"===(e.Logout??e.logout??"").toString().trim().toLowerCase()&&this.Subscriptions.push(this.authService.logout().subscribe(o=>{this.systemService.logOut()}))}startOtpCountdownFromJwtToken(e){if(e)try{const i=e.split(".");if(i.length<2)return;const o=i[1].replace(/-/g,"+").replace(/_/g,"/"),l=o.padEnd(4*Math.ceil(o.length/4),"="),_=atob(l),d=JSON.parse(_);if(!d||!d.exp)return;const n=new Date(1e3*Number(d.exp));if(isNaN(n.getTime()))return;this.startOtpCountdown(n.toISOString())}catch{this.otpCountdownSeconds=0}}ShowError(e){this.btnState=p.D.Error,this.error=!0,this.error_message=e,setTimeout(()=>{this.btnState=p.D.Default},h.K.Default)}onEmailChange(){this.emailChecked&&(this.emailChecked=!1,this.ssoEnabled=!1,this.usernameEditable=!1)}sso(){if(!this.fLogin.UserName.value)return;let e="";this.ssoType==this.ssoIntegrations.Saml&&(e=this.env.basePath+"ssosaml/login?email="+this.fLogin.UserName.value),""!=e&&(window.location.href=e)}returnToLogin(){this.forgot=!1,this.otpRequired=!1,this.otpUserId="",this.otpUserEmail="",this.otpUserType="",this.otpSchoolId="",this.otpSchoolName="",this.otpIsUserAnAdmin=!1,this.otpAccountTypeID="",this.stopOtpCountdown(),this.otpCountdownSeconds=0,this.myFormOtp.reset(),this.resetMessages()}startOtpCountdownFromResponse(e){const i=this.getResponseValue(e,["OtpExpiresAtUtc","otpExpiresAtUtc"]);i&&this.startOtpCountdown(i)}startOtpCountdown(e){this.stopOtpCountdown();const i=new Date(e).getTime();if(isNaN(i))return void(this.otpCountdownSeconds=0);const o=()=>{const l=Math.max(0,Math.floor((i-Date.now())/1e3));this.otpCountdownSeconds=l,l<=0&&this.stopOtpCountdown()};o(),this.otpCountdownSeconds>0&&(this.otpCountdownTimer=setInterval(()=>{o()},1e3))}stopOtpCountdown(){this.otpCountdownTimer&&(clearInterval(this.otpCountdownTimer),this.otpCountdownTimer=null)}toggleReset(){this.myFormReset.setValue({UserName:this.fLogin.UserName.value}),this.resetMessages(),this.forgot=!0}resetMessages(){this.error=!1,this.error_message="",this.success=!1,this.success_message=""}terms(){window.open(this.env.basePath+"account/termsconditions","_blank")}static#t=this.\u0275fac=function(i){return new(i||s)(t.rXU(x.Ix),t.rXU(x.nX),t.rXU(C),t.rXU(R.V),t.rXU(G.u))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["app-login"]],standalone:!0,features:[t.Jv_([C,I.w,v.Qq,S.O]),t.aNF],decls:1,vars:1,consts:[["class","flex flex-column align-items-center justify-content-center","style","height: 100vh;","role","main",4,"ngIf"],["role","main",1,"flex","flex-column","align-items-center","justify-content-center",2,"height","100vh"],["class","flex flex-row",4,"ngIf"],["pTemplate","header"],["pTemplate","content"],[1,"flex","flex-row"],["role","button","tabindex","0",1,"tos",3,"click","keydown.enter","keydown.space"],["role","button","tabindex","0",1,"back",3,"click","keydown.enter","keydown.space"],["aria-hidden","true",1,"pi","pi-chevron-left"],["src","assets/images/login-logo.png","alt","Pikmykid logo",1,"login_logo"],[4,"ngIf"],["id","Login",3,"formGroup"],["role","heading","aria-level","2",1,"login_caption"],["class","login_error","role","alert","aria-live","assertive",4,"ngIf"],[3,"label","state","action",4,"ngIf"],["class","flex justify-content-center",4,"ngIf"],["class","login-page__or d-sso",4,"ngIf"],["pButton","","class","sso","label","Continue with Single Sign-On",3,"click",4,"ngIf"],["role","alert","aria-live","assertive",1,"login_error"],[1,"field"],["for","UserName"],[3,"field","validateOnTouched"],["pInputText","","id","UserName","name","UserName","type","text","formControlName","UserName","autocomplete","username",1,"login_
1input",3,"keyup.enter","change","ngClass"],["for","username-verified"],["id","username-verified","name","username-verified","formControlName","UserName","autocomplete","username",1,"login_input",3,"change","readonly"],["for","Password"],["type","password","id","Password","name","Password","formControlName","Password","autocomplete","current-password",1,"login_input",3,"keydown.enter","ngClass"],[3,"label","state","action"],[1,"flex","justify-content-center"],["role","button","tabindex","0",1,"forgot",3,"click","keydown.enter","keydown.space"],[1,"login-page__or","d-sso"],["pButton","","label","Continue with Single Sign-On",1,"sso",3,"click"],["id","VerifyOtp",3,"formGroup"],["class","forgot_message",4,"ngIf"],["class","login_success","role","status","aria-live","polite",4,"ngIf"],["for","OtpCode"],["pInputText","","id","OtpCode","name","OtpCode","type","text","formControlName","OtpCode",1,"login_input",3,"keyup.enter","ngClass"],[1,"forgot_message"],["role","status","aria-live","polite",1,"login_success"],["role","heading","aria-level","2",1,"forgot_caption"],["id","myFormReset",3,"formGroup",4,"ngIf"],["class","field_button",4,"ngIf"],["id","myFormReset",3,"formGroup"],[3,"field"],["pInputText","","id","UserName","name","UserName","type","text","formControlName","UserName",1,"login_input",3,"keyup.enter","ngClass"],[1,"field_button"]],template:function(i,o){1&i&&t.DNE(0,at,8,1,"div",0),2&i&&t.Y8G("ngIf",o.showLogin)},dependencies:[b.MD,b.YU,b.bT,m.YN,m.qT,m.me,m.BC,m.cb,m.X1,m.j4,m.JD,T.D,T.Z,N.Ei,k.tm,k._f,w.u,w.S,L.Ou,v.q1,x.iI,E.O,F.d,U.I,O.k,D.l],styles:['.p-card{border-radius:8px;width:384px}.p-card .p-card-header{border-bottom:0px!important;padding-bottom:0}.p-card-content{padding:0 32px 18px!important}.field{margin-bottom:.75rem}.field label{padding-bottom:0;margin-bottom:0;margin-left:25px}.field_button{margin-top:10px}.login_caption{font-size:1.5rem;letter-spacing:1px;color:#333e48;margin-bottom:24px;font-family:proxima-nova,sans-serif;text-transform:uppercase;font-weight:400;margin-top:0;display:flex;justify-content:center}.p-card-footer{padding:24px 32px 40px!important}button.login{font-size:1.143rem;width:100%;margin:24px auto 0;box-sizing:border-box;height:56px;background:#3fa9f5;color:#fff;border-radius:56px;font-weight:400;font-family:sofia-pro,sans-serif;position:relative;text-align:center;overflow:hidden;display:flex;transition:all .25s cubic-bezier(.34,.61,.59,1.11)}button.sso{font-size:1.143rem;width:100%;margin:24px auto 0;box-sizing:border-box;height:56px;border:1px solid #DCE0E6;background:#fff;color:#8ea6ba;border-radius:56px;font-weight:400;font-family:sofia-pro,sans-serif;position:relative;text-align:center;overflow:hidden;padding:0;transition:all .25s cubic-bezier(.34,.61,.59,1.11)}.forgot{font-size:1.143rem;display:inline-block;margin-top:24px;color:#afc2d0}.forgot:hover{color:#3fa9f5}.forgot-disabled,.forgot-disabled:hover{color:#afc2d0;opacity:.65;cursor:default}.forgot_caption{color:#333e48;font-size:34px!important;margin-bottom:12px!important;margin-top:0!important;letter-spacing:-.01em;font-weight:700;text-align:center}.forgot_message{text-align:center;font-size:16px;margin-bottom:10px}.login_logo{border:0px;width:280px;height:140px;margin:0 auto}.login_error{color:#b82d2d;text-align:center;font-size:1.143rem;padding-bottom:5px}.login_success{color:#7ac943;text-align:center;padding:8px;font-size:1.143rem}.tos{margin-top:40px;margin-bottom:24px;text-align:center;display:block;color:#6e829c;font-size:1.143rem;cursor:pointer}.back{margin-bottom:24px;text-align:left;display:block;color:#6e829c;font-size:1.143rem;cursor:pointer}.login_input{margin-top:8px;font-size:1.143rem;height:56px;padding:16px 24px;line-height:24px;width:100%;box-sizing:border-box;border-radius:56px;font-weight:300!important;border:1px solid #DCE0E6;font-family:sofia-pro,sans-serif}.login_input-invalid{border:1px solid #B82D2D!important}.btn-primary-state{font-size:1.143rem;width:100%;margin:24px auto 0!important;height:56px!important;border-radius:56px!important;box-sizing:border-box;background:#3fa9f5;color:#fff;font-weight:400;font-family:sofia-pro,sans-serif;position:relative;text-align:center;overflow:hidden;display:flex;transition:all .25s cubic-bezier(.34,.61,.59,1.11);padding:0;border:0!important;padding-left:0!important;padding-right:0!important}.btn-primary-state__default,.btn-primary-state__loading,.btn-primary-state__success,.btn-primary-state__error{height:56px!important;line-height:56px!important}.login-page__or{width:100%;display:flex;flex-direction:row;text-transform:uppercase;font-size:1rem;padding-top:24px}.login-page__or:before,.login-page__or:after{content:"";border-bottom:1px solid #DCE0E6;flex:1 0 auto;height:10px;margin:0}.login-page__or span{text-align:center;flex:.2 0 auto;margin:0;color:#a2acb3}@media (max-width: 390px){.p-card{width:375px}}@media (max-width: 389px){.p-card{width:360px}}@media (max-width: 439px){.login_logo{display:block;
1width:200px;height:100px;margin:0 auto}}@media (max-height: 800px){.tos{margin-top:5px;margin-bottom:0}}@media (max-height: 736px){.tos{display:none}}\n'],encapsulation:2})}return s})()}}]);

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.