(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686],{55111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(95155),a=n(12115),o=n(555),r=n(10541);function s(){let e=(0,o.useAuthStore)(e=>e.isAuthenticated);if((0,a.useEffect)(()=>{if(!e){let e=(0,r.yc)(),t=`${e}/admin`;window.location.pathname===t||window.location.pathname.startsWith(`${t}/`)||(window.location.href=`${e}/login`)}},[e]),!e){let e=!1;{let t=(0,r.yc)(),n=`${t}/admin`;e=window.location.pathname===n||window.location.pathname.startsWith(`${n}/`)}if(!e)return null}let t=(0,r.yc)();return(0,i.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,i.jsxs)("div",{className:"text-center max-w-md px-4",children:[(0,i.jsx)("h1",{className:"text-4xl font-bold text-foreground mb-2",children:"404"}),(0,i.jsx)("p",{className:"text-muted-foreground mb-6",children:"This page could not be found."}),(0,i.jsx)("a",{href:`${t}/`,className:"inline-flex items-center px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:opacity-90 transition-opacity",children:"Go home"})]})})}},58100:(e,t,n)=>{Promise.resolve().then(n.bind(n,55111))}},e=>{e.O(0,[4396,2703,6355,8824,8230,3718,443,8441,3794,7358],()=>e(e.s=58100)),_N_E=e.O()}]);