1import{a as c}from"./chunk-F5OKEALZ.js";import{d as l}from"./chunk-4RWUZHGQ.js";import"./chunk-G7KODK5X.js";import{x as p}from"./chunk-QMDHXJ4U.js";import{Ja as r,Rb as s,Sb as i,ha as o,pc as m,rb as a}from"./chunk-7ERWTRFD.js";var g=class n{router=o(l);platformId=o(r);ngOnInit(){if(!p(this.platformId))return;let t=localStorage.getItem("impersonate_session");if(!t){this.router.navigate(["/login"]);return}try{let e=JSON.parse(t);e.accessToken&&e.refreshToken?(c.saveTokens(e.accessToken,e.refreshToken),localStorage.removeItem("impersonate_session"),localStorage.setItem("impersonated_by",e.impersonatedBy||"superadmin"),localStorage.setItem("impersonated_email",e.email||""),this.router.navigate(["/events"])):(localStorage.removeItem("impersonate_session"),this.router.navigate(["/login"]))}catch{localStorage.removeItem("impersonate_session"),this.router.navigate(["/login"])}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=a({type:n,selectors:[["app-impersonate-login"]],decls:2,vars:0,consts:[[2,"padding","40px","text-align","center","color","#666"]],template:function(e,f){e&1&&(s(0,"p",0),m(1,"Einloggen als User..."),i())},encapsulation:2})};export{g as ImpersonateLoginComponent};
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.