import{c as s,d as a,p as c,q as m}from"./chunk-SPUEGBWO.js";import{D as n}from"./chunk-GQP2MJQK.js";import{A as t,w as o}from"./chunk-ZVAMPSQU.js";import{j as i}from"./chunk-FB5LSH2R.js";var b=(()=>{let e=class e{constructor(){this.serverActionsService=t(c),this.messagingService=t(m),this.events=t(a)}logout(){return i(this,null,function*(){this.messagingService.disableNotifications(),this.serverActionsService.users.logout({"*":()=>{}}),localStorage.removeItem("token"),this.events.publish(s.Auth),yield n.deleteAllData()})}};e.\u0275fac=function(v){return new(v||e)},e.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();export{b as a};
