"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5056],{92676:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var c=o(69060),a=o(51560),s=o(66156),n=o(61060),r=o(95705),l=o(87816),i=o(50900),p=o(24324),u=o(82496);const g=()=>{const e=(0,s.Ab)(),t=(0,a.i6)();return(0,c.useEffect)((()=>{const o=()=>{e((0,r.E9)(!1)),e({type:"socket/OBDisconnect"}),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),e((0,l._L)()),(0,n.Oi)(),t("/login"),window.location.reload()};(()=>{const e=localStorage.getItem("auth-state");i.c.invoke("POST","/api/v1/logout",{state:e}).then(o).catch((e=>{console.error(e),o()}))})()}),[e,t]),(0,u.jsx)(p.c,{})}}}]);
//# sourceMappingURL=5056.eb86acd9.chunk.js.map