import{a as b}from"/build/_shared/chunk-2F4KTA2C.js";import{a as D}from"/build/_shared/chunk-PFVVFK3U.js";import{B as v,C as m,a as w,d as u,r as d,u as p}from"/build/_shared/chunk-XIQ3C74K.js";import{a as T}from"/build/_shared/chunk-5TRFQBKG.js";import{a as L}from"/build/_shared/chunk-T6T2AEVA.js";import{a as i}from"/build/_shared/chunk-LR6G3KVW.js";import{d as e}from"/build/_shared/chunk-G5WX4PPA.js";var I=e(L(),1),l=e(T(),1);v();var n=e(w(),1),a=e(D(),1);var M=e(b(),1),t=e(m(),1);var k=o=>{let s=u();return(0,n.useEffect)(()=>{let{personalProjectId:r,personalEnvId:c,hasOnboarded:g}=o?.publicMetadata||{};if(r&&c){let h=g?i.app.project.env.dashboard:i.app.project.env.onboarding;s(h({projectId:r,envId:c}),{unstable_viewTransition:!0})}},[o]),null};function f(){let{user:o}=p(),[s]=(0,a.useTheme)(),r=s===a.Theme.DARK;return(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)("div",{className:"flex h-screen flex-col items-center justify-center gap-8",children:(0,t.jsx)("img",{src:r?"/DarkModeLogo.svg":"/LightModeLogo.svg",alt:"Montelo Logo",className:"w-48"})}),children:(0,t.jsx)(d,{resolve:o,children:k})})}export{f as a};
