1import{a as j,b as B}from"./chunk-Z4I66M6R.js";import{G as x}from"./chunk-K72YNCC2.js";import"./chunk-WVJCXBCU.js";import"./chunk-V4CX7NQ7.js";import"./chunk-V4LCGU5T.js";import"./chunk-DMMP5UQM.js";import"./chunk-IF2B5A7G.js";import"./chunk-TG6HCYT2.js";import"./chunk-V2IBHSN7.js";import"./chunk-TPZ34VW5.js";import"./chunk-KGJC7T4D.js";import"./chunk-O5AI6HUK.js";import{h as b,i as L}from"./chunk-MDRFFXZM.js";import"./chunk-QYMPBRPK.js";import{h as C}from"./chunk-7GQDLYE4.js";import"./chunk-SDO3MRP3.js";import"./chunk-VM73DPZ7.js";import"./chunk-IER57G7O.js";import"./chunk-KOKBGFQW.js";import"./chunk-OTQWNMEK.js";import"./chunk-VXGORKY4.js";import{M}from"./chunk-JQQGEMVA.js";import{Cb as l,Db as h,Eb as f,Hd as y,Ld as I,Mb as g,Od as S,Rc as v,Xa as m,a,ab as n,cd as w,fb as p,ga as c,gb as d,kb as u,rb as s}from"./chunk-FCE7BWGT.js";import"./chunk-Z2GHHK3Z.js";import"./chunk-IE53JPBQ.js";import"./chunk-EGPBMAT7.js";import"./chunk-WGIJLE63.js";import"./chunk-TO2TOVO2.js";import"./chunk-VTNGRKUC.js";import"./chunk-4QSW3BJY.js";import"./chunk-V64TFCIA.js";import"./chunk-BUIZBFEK.js";import"./chunk-QYHS63RY.js";import"./chunk-IDAFYDKW.js";import"./chunk-PKML243M.js";import"./chunk-Q762RTV7.js";function P(o,t){if(o&1&&f(0,"app-loading-animation",1),o&2){let D=g();s("showLoading",D.loading===!0)("withBackground",!0)}}var A=(()=>{let t=class t{constructor(i,e,r,N){this.modalService=i,this.authService=e,this.router=r,this.route=N,this.loading=!0,this.subscription=new a}ngOnInit(){let i=this.route.snapshot.queryParams.redirectionUrl?decodeURI(this.route.snapshot.queryParams.redirectionUrl):"";return this.authService.logout().then(()=>(this.loading=!1,this.router.navigate(["/"]))).then(()=>{if(i!==""){if(M.isNative)return L.openInSystemBrowser({url:i,options:b});window.open(i)}}).catch(e=>{console.log(e);let r=this.modalService.getErrorLogoutModal();return this.subscription.add(r.onCloseFinished.subscribe(()=>this.router.navigate(["/"]))),this.modalService.openErrorLogoutModal()})}ngOnDestroy(){var i;(i=this.subscription)==null||i.unsubscribe()}};t.\u0275fac=function(e){return new(e||t)(n(C),n(x),n(I),n(y))},t.\u0275cmp=p({type:t,selectors:[["app-logout"]],standalone:!1,decls:2,vars:1,consts:[[3,"showLoading","withBackground",4,"ngIf"],[3,"showLoading","withBackground"]],template:function(e,r){e&1&&(l(0,"section"),u(1,P,1,2,"app-loading-animation",0),h()),e&2&&(m(),s("ngIf",r.loading===!0))},dependencies:[v,j],styles:["section[_ngcontent-%COMP%]{min-height:313px;position:relative}"]});let o=t;return o})();var Q=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=c({imports:[w,B,S.forChild([{path:"",pathMatch:"full",component:A}])]});let o=t;return o})();export{Q as LogoutModule};
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.