PageSourceSearch

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

js canapii.com collected 2026-10-01 11:58:26 UTC 3,595 bytes, 1 lines download raw bytes

1import{a as w,b as y}from"./chunk-27KAN2UR.js";import"./chunk-BN22DJZG.js";import"./chunk-EYI3M4W7.js";import"./chunk-N47RT2FV.js";import"./chunk-VRQFSSVW.js";import{g as T}from"./chunk-K3U65WJB.js";import{q as M}from"./chunk-7UO5WQYP.js";import"./chunk-73R64QIM.js";import"./chunk-EURTYAWN.js";import{g as b}from"./chunk-CT5YU3F2.js";import{e as C,h as k,j as u}from"./chunk-B5NVKW3K.js";import{k as P,z as I}from"./chunk-MRC2PHN7.js";import{Ec as v,Fa as s,Fc as h,Gc as m,Hc as S,Jb as p,Wb as a,bc as g,cc as c,gc as f}from"./chunk-77LCFR2D.js";import{l}from"./chunk-6G35VSEK.js";function N(r,U){r&1&&(h(0,"div"),S(1,"mat-spinner",2),m())}var d=(()=>{class r{constructor(t,e,i){this.route=t,this.router=e,this.authService=i,this.eventUrl="",this.redirectTo="",this.hasSource="",this.registrationPath="",this.isLoading=!0}ngOnInit(){this.route.queryParams.subscribe(t=>l(this,null,function*(){if(t.error_description&&t.error_description.includes("Already found an entry for username")){let e=t.error_description.includes("facebook")?"Facebook":t.error_description.includes("google")?"Google":t.error_description.includes("signinwithapple")?"SignInWithApple":t.error_description.includes("auth0")?"auth0":t.error_description.includes("linkedin")?"linkedin":t.error_description.includes("lenovo")?"lenovo":"";e&&this.socialSignIn(e)}})),b.listen("auth",({payload:{event:t,data:e}})=>{switch(t){case"customOAuthState":if(e){let i=JSON.parse(e);if(i.redirectTo&&(this.redirectTo=i.redirectTo),i.hasSource&&(this.hasSource=i.hasSource),i.registrationPath)if(i.registrationPath.includes("lenovo-ap-iso-kickoff-22")||i.registrationPath.includes("lenovonext22"))try{let o=new URL(window.location.origin+i.registrationPath),n=o.searchParams;n.delete("sso"),o.search=n.toString(),this.registrationPath=`${o.pathname}?${n.toString()}`}catch{this.registrationPath=i.registrationPath}else this.registrationPath=i.registrationPath}}}),this.authService.currentAuthenticatedUser(!0).then(t=>{this.registrationPath?(console.log({registrationPath:this.registrationPath}),window.open(this.registrationPath,"_self")):this.redirectTo?this.router.navigateByUrl(this.redirectTo):this.router.navigate(["/","account"])}).catch(t=>{this.router.navigate(["/","login"])})}socialSignIn(t){return l(this,null,function*(){let e=this.eventUrl||sessionStorage.getItem("eventUrl")||"",i=this.redirectTo||sessionStorage.getItem("redirectTo")||"",o=this.hasSource||sessionStorage.getItem("hasSource")||"",n=this.registrationPath||sessionStorage.getItem("registrationPath")||"";sessionStorage.setItem("eventUrl",e),sessionStorage.setItem("redirectTo",i),sessionStorage.setItem("hasSource",o),sessionStorage.setItem("registrationPath",n),yield M({provider:{custom:t},customState:JSON.stringify({url:e,redirectTo:i,hasSource:o,registrationPath:n})})})}static{this.\u0275fac=function(e){return new(e||r)(a(C),a(k),a(T))}}static{this.\u0275cmp=g({type:r,selectors:[["app-provider-callback"]],decls:2,vars:1,consts:[[1,"message-container"],[4,"ngIf"],["diameter","40",1,"mx-auto"]],template:function(e,i){e&1&&(h(0,"div",0),f(1,N,2,0,"div",1),m()),e&2&&(p(),v("ngIf",i.isLoading))},dependencies:[P,w],encapsulation:2})}}return r})();var R=[{path:"",component:d}],j=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=c({type:r})}static{this.\u0275inj=s({imports:[u.forChild(R),u]})}}return r})();var Q=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=c({type:r})}static{this.\u0275inj=s({imports:[I,j,y,d]})}}return r})();export{Q as ProviderCallbackModule};

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.