(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,138938,e=>{"use strict";e.i(843476);var t=e.i(427595);e.s(["useAuth",0,function(){let e=(0,t.useAuth)();return{user:e.user,tenant:e.tenant,features:e.features,isAuthenticated:e.isAuthenticated,isLoading:e.isLoading,error:e.error,permissions:e.permissions,hasPermission:e.hasPermission,login:e.login,logout:e.logout,syncFeatures:e.syncFeatures}}])},331713,e=>{"use strict";var t=e.i(843476),s=e.i(271645),i=e.i(618566),r=e.i(138938);e.s(["default",0,function(){let e=(0,i.useRouter)(),{isAuthenticated:n,isLoading:u}=(0,r.useAuth)();return(0,s.useEffect)(()=>{u||e.replace(n?"/dashboard":"/login")},[n,u,e]),(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"Redirecting..."})}])}]);