(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24136,e=>{"use strict";var t=e.i(71645),r=e.i(97815);e.s(["useAuth",0,()=>{let e=(0,t.useContext)(r.AuthContext);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}])},31713,e=>{"use strict";var t=e.i(43476),r=e.i(71645),i=e.i(18566),s=e.i(24136);function o(){let e=(0,i.useRouter)(),{isAuthenticated:o,loading:n}=(0,s.useAuth)();return(0,r.useEffect)(()=>{console.log("🏠 Home page - checking auth:",{isAuthenticated:o,loading:n}),n||(o?(console.log("✅ Authenticated - redirecting to dashboard"),e.replace("/dashboard")):(console.log("❌ Not authenticated - redirecting to login"),e.replace("/login")))},[o,n,e]),(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),(0,t.jsx)("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})})}e.s(["default",()=>o])}]);