try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3261e6a5-8a9e-4f00-a56b-2b445204b26a`,e._sentryDebugIdIdentifier=`sentry-dbid-3261e6a5-8a9e-4f00-a56b-2b445204b26a`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Ag as e,Dg as t,Fg as n,dn as r,eh as i,mr as a,sh as o}from"./entry.client-dr7r6s9a.js";import{n as s,t as c}from"./GuideL1Header-ntkqljmx.js";import{t as l}from"./GuidePageLayout-imh16gdu.js";import{t as u}from"./GuideIllustration-ox8r1eop.js";import{n as d,t as f}from"./ProfileCardLoading-nyvatzlc.js";var p=n(),m=e(),h=e=>{let t=(0,p.c)(11),{person:n,isPending:r}=e,{locSomethingWentWrong:a,locGenericErrorSubheading:o}=i(),h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,m.jsxs)(`div`,{className:`flex items-center gap-internal-gap-tight`,children:[(0,m.jsx)(s,{}),(0,m.jsx)(c,{className:`flex-1`})]}),t[0]=h):h=t[0];let g=h;if(n){let e;return t[1]===n?e=t[2]:(e=(0,m.jsx)(d,{person:n,header:g}),t[1]=n,t[2]=e),e}else if(r){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,m.jsxs)(l,{id:`guide-profile-landing-page`,children:[g,(0,m.jsx)(f,{isCurrentUserPending:!0})]}),t[3]=e):e=t[3],e}else{let e;t[4]===a?e=t[5]:(e=a(),t[4]=a,t[5]=e);let n;t[6]===o?n=t[7]:(n=o(),t[6]=o,t[7]=n);let r;return t[8]!==e||t[9]!==n?(r=(0,m.jsxs)(l,{id:`guide-profile-landing-page`,children:[g,(0,m.jsx)(u,{title:e,subtitle:n,illustrationType:`error`})]}),t[8]=e,t[9]=n,t[10]=r):r=t[10],r}},g=r(h,()=>{let{profile:e}=o(),{data:n,isPending:r}=t(e.queries.person.getActiveUserQuery().getOptions());return{person:n,isPending:r}}),_=a(()=>(0,m.jsx)(g.useComponent(),{}),`ProfileLandingPage`);export{_ as ProfileLandingPage,_ as default,g as ProfileLandingPageConnection,h as PureProfileLandingPage};