1import{b as w}from"./chunk-SNGI3OVF.js";import"./chunk-KAUVSFIH.js";import"./chunk-2EZXPYT6.js";import"./chunk-EGH2GOSG.js";import"./chunk-R3BQBWBF.js";import"./chunk-SSHBWZAK.js";import{a as E}from"./chunk-6EKE77PV.js";import"./chunk-MDCRXW2F.js";import"./chunk-AFUKTT5J.js";import"./chunk-ASBZ7FIU.js";import"./chunk-IKPCAQUT.js";import"./chunk-EWLA2CDU.js";import{e as u,i as p,j as d}from"./chunk-BRRKURLF.js";import"./chunk-EWRCFGZL.js";import"./chunk-WVIS2PPO.js";import"./chunk-SR55O55O.js";import"./chunk-P25HZZAX.js";import"./chunk-Q7DVF7L3.js";import{b as C}from"./chunk-EZ4VUNRI.js";import{b as i,d as R}from"./chunk-HR6EBGLK.js";import"./chunk-J4RCXDYQ.js";import"./chunk-IVXUHL3V.js";import"./chunk-QE242Y5W.js";import{qa as c}from"./chunk-O7ASEO4K.js";import{E as v,G as g,K as A,ba as n,ga as r,n as f,s}from"./chunk-7QO5KFNJ.js";import"./chunk-RGO6UA7O.js";var h=class e{authService=r(d);redirectionService=r(p);authData$=C(this.authService.getAuthData());static JOB_CANDIDATE_PROFILES_ACCOUNT="/experten";static redirectViewRoute={[i.CORPORATE]:"/corporate",[i.JOB_CANDIDATE]:"/experten/angestellte",[i.FREELANCER]:"/experten/selbststaendige",[i.MEMBER]:"/experten/selbststaendige"};canActivate(l,o){return this.authData$.pipe(v(t=>!!t),A(1),s(t=>(t.viewMode===i.FREELANCER||t.viewMode===i.MEMBER||t.viewMode===i.JOB_CANDIDATE)&&o.url.startsWith(e.JOB_CANDIDATE_PROFILES_ACCOUNT)&&!o.url.startsWith(e.redirectViewRoute[i.FREELANCER])&&!o.url.startsWith(e.redirectViewRoute[i.JOB_CANDIDATE])&&[u.JOB_CANDIDATE_ACCOUNT,u.PROFILES_ACCOUNT].every(a=>t.roles.includes(a))&&t.lastActiveViewMode===null||o.url.startsWith(e.redirectViewRoute[t.viewMode])?!0:o.url==="/"?(this.redirectionService.redirectToDashboard(t.viewMode,t.roles,t.lastActiveViewMode),!1):(t.viewMode===i.GUEST?this.authService.redirectToLogin():this.redirectionService.redirectTo403(),!1)))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})},I=(e,l)=>r(h).canActivate(e,l);var P=(()=>{class e{authService=r(d);router=r(c);redirectionService=r(p);canActivate(o){let t=this.authService.getAuthData()(),m=t&&t.roles.length>0;if(m){let a=o.queryParams[E.REDIRECT_TARGET];a?this.router.navigateByUrl(a):this.redirectionService.redirectToDashboard(t.viewMode,t.roles,t.lastActiveViewMode)}return!m}static \u0275fac=function(t){return new(t||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),M=e=>r(P).canActivate(e);var k=(()=>{class e{loginService=r(R);router=r(c);canActivate(o){return this.loginService.checkResetPasswordToken(o.paramMap.get("token")).pipe(s(()=>!0),g(()=>(this.router.navigateByUrl("/passwort-vergessen/link-ungueltig"),f(!1))))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),S=e=>r(k).canActivate(e);var oe=[{path:"login",loadComponent:()=>import("./chunk-LYP67VKW.js").then(e=>e.LoginComponent),canActivate:[M],runGuardsAndResolvers:"always"},{path:"linkedin-login",loadComponent:()=>import("./chunk-R3CIFLTM.js").then(e=>e.LinkedinLoginComponent)},{path:"google-login",loadComponent:()=>import("./chunk-LYP67VKW.js").then(e=>e.LoginComponent)},{path:"",loadComponent:()=>import("./chunk-LBQLS4OU.js").then(e=>e.AuthComponent),children:[{path:"",pathMatch:"full",loadComponent:()=>import("./chunk-LBQLS4OU.js").then(e=>e.AuthComponent),canActivate:[I]},{path:"",canActivateChild:[w],runGuardsAndResolvers:"always",data:{shouldBeLoggedIn:!1},children:[{path:"passwort-vergessen/link-ungueltig",loadComponent:()=>import("./chunk-QPY3KFAR.js").then(e=>e.MessagePageComponent),data:{titleKey:"MessagePages.forgotPasswordInvalid.title",subtitleKey:"MessagePages.forgotPasswordInvalid.message",button:{text:"MessagePages.requestPasswordAgain",routerLink:"/passwort-vergessen"}}},{path:"passwort-vergessen/:token",loadComponent:()=>import("./chunk-F66YMTSU.js").then(e=>e.ResetPasswordComponent),canActivate:[S],runGuardsAndResolvers:"always"},{path:"passwort-vergessen",loadComponent:()=>import("./chunk-KNMG4F2I.js").then(e=>e.ForgotPasswordComponent)}]}]},{path:"email-bestaetigen/:id",loadComponent:()=>import("./chunk-7324HAYA.js").then(e=>e.EmailVerificationComponent)},{path:"login/admin/:tokenID",loadComponent:()=>import("./chunk-3NIRGRKI.js").then(e=>e.TokenAdminLoginComponent)}];export{oe as authRoutes};
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.