(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58974],{23675:(e,s,r)=>{"use strict";var t=r(84675);r.o(t,"useParams")&&r.d(s,{useParams:function(){return t.useParams}}),r.o(t,"usePathname")&&r.d(s,{usePathname:function(){return t.usePathname}}),r.o(t,"useRouter")&&r.d(s,{useRouter:function(){return t.useRouter}}),r.o(t,"useSearchParams")&&r.d(s,{useSearchParams:function(){return t.useSearchParams}})},39268:(e,s,r)=>{"use strict";r.d(s,{c:()=>n});var t=r(12079);function a(e,s){return(...e)=>{try{return s(...e)}catch{throw Error(void 0)}}}let n=a(0,t.c3);a(0,t.kc)},42359:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>c});var t=r(90508),a=r(1856),n=r(23675),u=r(39268);function c(){let e=(0,u.c)(),s=(0,n.useRouter)();return(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/admin/session");if((await e.json()).success)return void s.replace("/admin");let r=await fetch("/api/auth/session");if(r.ok&&(await r.json()).success)return void s.replace("/projects");s.replace("/login")}catch(e){s.replace("/login")}})()},[s]),(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-[#FAF8F4]",children:(0,t.jsx)("div",{className:"text-[#737373]",children:e("common.loading")})})}},76674:(e,s,r)=>{Promise.resolve().then(r.bind(r,42359))}},e=>{e.O(0,[12079,74951,65496,77358],()=>e(e.s=76674)),_N_E=e.O()}]);