PageSourceSearch

https://account.canapii.com/chunk-G6CKJYBD.js

js canapii.com collected 2026-09-24 09:43:53 UTC 3,761 bytes, 1 lines download raw bytes

1import{a as O,b}from"./chunk-QF27IOQE.js";import"./chunk-JED7GRQQ.js";import"./chunk-ZECF2WJA.js";import"./chunk-24HYNKH3.js";import{e as v,g as N}from"./chunk-ZL7MM2RJ.js";import{c as B,i as A}from"./chunk-5AZO2E3H.js";import{e as F,f as h}from"./chunk-DE65ZGA7.js";import"./chunk-GZL4NBTB.js";import"./chunk-JIVZONLP.js";import{y as P}from"./chunk-S43ITSQ5.js";import{e as T,h as R,i as j,k as w}from"./chunk-5FWAKVG3.js";import{k as y,z as _}from"./chunk-KAXBUATZ.js";import{Cc as c,Dc as a,Ec as r,Fa as u,Fc as M,Jb as n,Jd as l,Kd as p,Wb as m,Xc as C,bc as x,cc as g,gc as E,jd as s,kd as L,ld as d}from"./chunk-XW6AEKHB.js";import{l as I}from"./chunk-6G35VSEK.js";function q(e,k){e&1&&(a(0,"div"),M(1,"mat-spinner",4),a(2,"div",5),s(3),l(4,"translate"),r()()),e&2&&(n(3),L(p(4,1,"You will be logged in once account is verified...")))}function G(e,k){e&1&&(a(0,"div",6),s(1),l(2,"translate"),a(3,"a",7),s(4),l(5,"translate"),r(),s(6),l(7,"translate"),r()),e&2&&(n(),d(" ",p(2,4,"The link has expired. Please go back to the")," "),n(2),c("routerLink","/auth/login"),n(),L(p(5,6,"Log in page")),n(2),d(" ",p(7,8,"to request for a new one.")," "))}function H(e,k){if(e&1&&(a(0,"div",8),s(1),l(2,"translate"),r()),e&2){let o=C();n(),d(" ",p(2,1,o.clockSkewMessage)," ")}}function W(e,k){e&1&&(a(0,"div",6),s(1),l(2,"translate"),r()),e&2&&(n(),d(" ",p(2,1,"Sign in failed!")," "))}var S=(()=>{class e{constructor(o,t,i,f){this.activatedRoute=o,this.router=t,this.authService=i,this.clockSkew=f,this.isLoading=!0,this.isLinkExpired=!1,this.isFailed=!1,this.isClockSkewed=!1,this.clockSkewMessage=v.MESSAGE}ngOnInit(){this.activatedRoute.paramMap.subscribe(o=>I(this,null,function*(){if(this.data=o.get("data"),!this.data){yield this.router.navigate(["/"]);return}let[t,i]=this.data.split(",");if(!t||!i){yield this.router.navigate(["/"]);return}if(yield this.clockSkew.isDeviceClockSkewed()){this.isLoading=!1,this.isClockSkewed=!0;return}try{yield this.authService.clearExistingSession(),yield B({username:t,options:{authFlowType:"CUSTOM_WITHOUT_SRP"}}),(yield A({challengeResponse:i,options:{clientMetadata:{type:"login"}}})).isSignedIn||(this.isLinkExpired=!0),yield P(),console.log("has session"),yield this.authService.currentAuthenticatedUser(),this.isLoading=!1,this.router.navigate(["/","account"])}catch(f){this.isLoading=!1,this.isFailed=!0,console.log("Login failed:",f)}}))}static{this.\u0275fac=function(t){return new(t||e)(m(T),m(R),m(N),m(v))}}static{this.\u0275cmp=x({type:e,selectors:[["app-email-login"]],decls:5,vars:4,consts:[[1,"message-container"],[4,"ngIf"],["class","console-spinner",4,"ngIf"],["class","console-spinner","role","alert",4,"ngIf"],["diameter","40",1,"mx-auto"],[1,"console-spinner","my-5"],[1,"console-spinner"],[3,"routerLink"],["role","alert",1,"console-spinner"]],template:function(t,i){t&1&&(a(0,"div",0),E(1,q,5,3,"div",1)(2,G,8,10,"div",2)(3,H,3,3,"div",3)(4,W,3,3,"div",2),r()),t&2&&(n(),c("ngIf",i.isLoading),n(),c("ngIf",!i.isLoading&&i.isLinkExpired),n(),c("ngIf",!i.isLoading&&i.isClockSkewed),n(),c("ngIf",!i.isLoading&&!i.isLinkExpired&&!i.isClockSkewed&&i.isFailed))},dependencies:[y,O,j,h,F],styles:[".message-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}.console-spinner[_ngcontent-%COMP%]{position:relative;top:-20px;text-align:center}"]})}}return e})();var Y=[{path:"",component:S}],U=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=u({imports:[w.forChild(Y),w]})}}return e})();var de=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=u({imports:[_,U,b,h,S]})}}return e})();export{de as EmailLoginModule};

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.