import{a as x}from"./chunk-HF23TE3C.js";import{Pa as f,_ as s,_a as h,ab as C,bb as k,m as p,qa as g,ra as d,ta as v}from"./chunk-RIXYHOD2.js";import{Gc as u,Hc as m,Yb as r,Zb as i,fc as l,lb as n,oa as a,vc as c}from"./chunk-7RF4FE4V.js";import"./chunk-WWX6BADO.js";var j=(()=>{class t{constructor(o,e){this.authService=o,this.router=e}ngOnInit(){this.logout()}logout(){console.log("logout clicked"),this.authService.clearToken(),localStorage.clear(),console.log("Token after logout : "+this.authService.getToken()),this.router.navigate(["/logout"])}goToLogin(){this.authService.clearToken(),this.router.navigate(["/login"])}static{this.\u0275fac=function(e){return new(e||t)(n(x),n(p))}}static{this.\u0275cmp=a({type:t,selectors:[["app-logout"]],standalone:!0,features:[u([]),m],decls:14,vars:0,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"]],template:function(e,S){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"),i(),r(10,"c-row")(11,"c-col",6)(12,"button",7),l("click",function(){return S.goToLogin()}),c(13," Login to Portal "),i()()()()()()()()()()())},dependencies:[h,k,C,v,g,d,f,s]})}}return t})();export{j as LogoutComponent};
