module.exports=[36395,a=>{"use strict";var b=a.i(72131),c=a.i(53131);a.s(["useAuth",0,()=>{let a=(0,b.useContext)(c.AuthContext);if(void 0===a)throw Error("useAuth must be used within an AuthProvider");return a}])},60350,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(36395);function f(){let a=(0,d.useRouter)(),{isAuthenticated:f,loading:g}=(0,e.useAuth)();return(0,c.useEffect)(()=>{console.log("🏠 Home page - checking auth:",{isAuthenticated:f,loading:g}),g||(f?(console.log("✅ Authenticated - redirecting to dashboard"),a.replace("/dashboard")):(console.log("❌ Not authenticated - redirecting to login"),a.replace("/login")))},[f,g,a]),(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),(0,b.jsx)("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})})}a.s(["default",()=>f])}];

//# sourceMappingURL=_b6bf7677._.js.map