PageSourceSearch

https://rekonise.com/chunk-U3DS4MX6.js

js rekonise.com collected 2026-09-24 09:36:02 UTC 2,275 bytes, 1 lines download raw bytes

1import{a as k}from"./chunk-4X2WIFZI.js";import{l as p}from"./chunk-GVKCEWLH.js";import{a as g,b as f}from"./chunk-HX355UZN.js";import{b as d}from"./chunk-RTYUUXPQ.js";import{a as v}from"./chunk-2EUR4NMB.js";import{a as m}from"./chunk-4QXTYDGK.js";import"./chunk-PYVUQE42.js";import{g as u}from"./chunk-BXVXVZI5.js";import"./chunk-QONMVMJJ.js";import"./chunk-BR7SVKEQ.js";import"./chunk-JGDRMP4N.js";import"./chunk-EZWV5NND.js";import"./chunk-2PPFUFFT.js";import"./chunk-7CN4IQMJ.js";import"./chunk-6ATSIKZN.js";import"./chunk-Y3YKJBPO.js";import{Ub as o,Vb as a,Wb as h,ea as n,qc as l,sb as c}from"./chunk-CNARTFLR.js";import"./chunk-EQDQRRRY.js";var I=(()=>{class i{constructor(){this.router=n(u),this.auth=n(m),this.pendingLink=n(k),this.events=n(v),this.snackBar=n(p)}ngOnInit(){this.auth.oauthCallback().subscribe({next:t=>{if(!t){this.router.navigate(["/login"],{queryParams:{error:"Authentication failed"}});return}this.completeSignInAndRedirect()},error:t=>{console.error("OAuth callback error:",t),this.router.navigate(["/login"],{queryParams:{error:"Authentication failed"}})}})}completeSignInAndRedirect(){let t=this.pendingLink.get();if(!t&&!this.pendingLink.hasClaims()){this.router.navigate(["/dashboard"]);return}this.pendingLink.finishAfterAuth().subscribe({next:({claimed:e,created:r})=>{e.length&&this.events.anonymousLinkClaimedEvent({source:"oauth",count:e.length}),r&&this.events.socialUnlockCreatedEvent({source:"pending_link_after_oauth",unlock_type:String(d.LINK),action_count:t?.actions.length??0});let s=r?.slug??e[e.length-1];this.router.navigate(s?["/dashboard/links",s]:["/dashboard"])},error:()=>{this.snackBar.open("Signed in, but we couldn't save your link. Try again from the dashboard.","Dismiss",{horizontalPosition:"right"}),this.router.navigate(["/dashboard"])}})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=c({type:i,selectors:[["app-oauth-callback"]],decls:5,vars:0,consts:[[1,"flex","min-h-screen","items-center","justify-center","flex-col","gap-2"],["diameter","30","color","primary"],[1,"text-muted"]],template:function(e,r){e&1&&(o(0,"div",0)(1,"div"),h(2,"mat-spinner",1),a(),o(3,"p",2),l(4,"Signing in"),a()())},dependencies:[f,g],encapsulation:2})}}return i})();export{I as OAuthCallbackComponent};

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.