"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5301],{55301:(e,t,o)=>{o.r(t),o.d(t,{default:()=>i});var a=o(65043),c=o(73216),s=o(21383),n=o(56483),r=o(64159),l=o(46537),p=o(20649),u=o(20685),g=o(70579);const i=()=>{const e=(0,s.jL)(),t=(0,c.Zp)();return(0,a.useEffect)((()=>{const o=()=>{e((0,r.WQ)(!1)),e({type:"socket/OBDisconnect"}),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),e((0,l.wD)()),(0,n.q7)(),t("/login"),window.location.reload()};(()=>{const e=localStorage.getItem("auth-state");p.A.invoke("POST","/api/v1/logout",{state:e}).then(o).catch((e=>{console.error(e),o()}))})()}),[e,t]),(0,g.jsx)(u.A,{})}}}]);
//# sourceMappingURL=5301.79001158.chunk.js.map