(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7723],{80031:function(e,u,n){Promise.resolve().then(n.bind(n,41532))},99376:function(e,u,n){"use strict";var r=n(35475);n.o(r,"useParams")&&n.d(u,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(u,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(u,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(u,{useSearchParams:function(){return r.useSearchParams}})},41532:function(e,u,n){"use strict";n.r(u),n.d(u,{default:function(){return h}});var r=n(57437),t=n(2265),s=n(99376),a=n(40525),c=n(23062),o=n(45218);function f(){let e=(0,s.useSearchParams)().get("conv"),{selectConversation:u,conversations:n,isLoading:r}=(0,c.K)();return(0,t.useEffect)(()=>{e&&!r&&u(e)},[e,r,n.length,u]),null}function i(){let e=(0,s.useRouter)(),{isAuthenticated:u,isLoading:n}=(0,a.C)(e=>e.auth);return((0,t.useEffect)(()=>{n||u||e.replace("/auth/login")},[u,n,e]),n||!u)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.Suspense,{children:(0,r.jsx)(f,{})}),(0,r.jsx)(o.r,{})]})}function h(){return(0,r.jsx)(i,{})}}},function(e){e.O(0,[5723,7777,2716,5392,7077,2972,9904,7681,3062,1518,2971,2117,1744],function(){return e(e.s=80031)}),_N_E=e.O()}]);