import{d as y,g as a}from"./chunk-QO3I7KTG.js";import{Aa as S,Ca as x,Ya as w,ha as f,hb as T,jb as b,k as v,kb as k,s as h,za as C}from"./chunk-VA2ZAQUO.js";import{Cb as p,Dc as c,Fc as d,Pc as g,dc as r,ec as n,mc as u,nb as m,ob as t}from"./chunk-F5OOQG77.js";import"./chunk-2AVGQ2MQ.js";var Y=(()=>{class o{constructor(l,e,i,s){this.authService=l,this.router=e,this.apiService=i,this.titleService=s,this.title="Logout Page",this.currentYear=new Date().getFullYear(),this.titleService.setTitle(this.title)}ngOnInit(){this.logout()}logout(){this.authService.clearToken(),localStorage.clear(),this.router.navigate(["/logout"])}goToLogin(){this.authService.clearToken(),this.router.navigate(["/login"])}static{this.\u0275fac=function(e){return new(e||o)(t(y),t(h),t(a),t(v))}}static{this.\u0275cmp=p({type:o,selectors:[["app-logout"]],features:[g([a])],decls:17,vars:1,consts:[[1,"bg-light","dark:bg-transparent","min-vh-100","d-flex","flex-row","align-items-center"],["breakpoint","md"],[1,"justify-content-center"],["lg","10","xl","8"],[1,"p-4"],["cForm",""],["xs","6"],["cButton","","color","primary",1,"px-4",3,"click"],[1,"text-center"],["href","https://www.crashplan.com","target","_blank",2,"color","#062D4D","text-decoration","none"]],template:function(e,i){e&1&&(r(0,"div",0)(1,"c-container",1)(2,"c-row",2)(3,"c-col",3)(4,"c-card-group")(5,"c-card",4)(6,"c-card-body")(7,"form",5)(8,"h2"),c(9,"You have been successfully logged out"),n(),r(10,"c-row")(11,"c-col",6)(12,"button",7),u("click",function(){return i.goToLogin()}),c(13," Login to Portal "),n()()()()()()()()()()(),r(14,"div",8)(15,"a",9),c(16),n()()),e&2&&(m(16),d("\xA9 CrashPlan ",i.currentYear," "))},dependencies:[T,k,b,x,C,S,w,f],encapsulation:2})}}return o})();export{Y as LogoutComponent};
