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]=`a6778ef5-139a-4192-8b33-f69405e70dbf`,e._sentryDebugIdIdentifier=`sentry-dbid-a6778ef5-139a-4192-8b33-f69405e70dbf`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{$m as e,Ag as t,Hm as n,Oi as r,Qh as i,Zm as a,_r as o,ng as s}from"./entry.client-mpghtlrl.js";import{a as c}from"./guideRouterEnvironmentHooks-h2xlfina.js";import{t as l}from"./useGuideStrings-n4ehuf4q.js";import{t as u}from"./GuidePageLayout-eh7novzv.js";import{n as d,t as f}from"./GuideL1Header-jicu0pye.js";import{t as p}from"./GuideIllustration-pex5y7xc.js";import{n as m,t as h}from"./ProfileCardLoading-k9ac00on.js";import{t as g}from"./useDialogPageDescription-fsgom47w.js";var _=t(),v=s(),y=t=>{let r=(0,_.c)(25),{person:i,isPending:a}=t,{locSomethingWentWrong:o,locGenericErrorSubheading:s}=n(),{locProfile:y}=l(),{t:b}=e(`Guide`),x=c(),S;r[0]!==i||r[1]!==b?(S=i?b(`Profile: {gamertag}`,{shortKey:`current_user_profile_dialog_description`,values:{gamertag:i.gamertag.base}}):void 0,r[0]=i,r[1]=b,r[2]=S):S=r[2],g(S);let C;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,v.jsx)(d,{}),r[3]=C):C=r[3];let w;r[4]!==x||r[5]!==y?(w=x?y():void 0,r[4]=x,r[5]=y,r[6]=w):w=r[6];let T;r[7]===w?T=r[8]:(T=(0,v.jsxs)(`div`,{className:`flex items-center gap-internal-gap-tight`,children:[C,(0,v.jsx)(f,{title:w,className:`flex-1`})]}),r[7]=w,r[8]=T);let E=T;if(a){let e;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,v.jsx)(h,{isCurrentUserPending:!0}),r[9]=e):e=r[9];let t;return r[10]===E?t=r[11]:(t=(0,v.jsxs)(u,{id:`guide-profile-landing-page`,children:[E,e]}),r[10]=E,r[11]=t),t}else if(i){let e;return r[12]!==i||r[13]!==E?(e=(0,v.jsx)(m,{person:i,header:E}),r[12]=i,r[13]=E,r[14]=e):e=r[14],e}else{let e;r[15]===o?e=r[16]:(e=o(),r[15]=o,r[16]=e);let t;r[17]===s?t=r[18]:(t=s(),r[17]=s,r[18]=t);let n;r[19]!==e||r[20]!==t?(n=(0,v.jsx)(p,{title:e,subtitle:t,illustrationType:`error`}),r[19]=e,r[20]=t,r[21]=n):n=r[21];let i;return r[22]!==E||r[23]!==n?(i=(0,v.jsxs)(u,{id:`guide-profile-landing-page`,children:[E,n]}),r[22]=E,r[23]=n,r[24]=i):i=r[24],i}},b=o(y,()=>{let{profile:e}=a(),{data:t,isPending:n}=i(e.queries.person.getActiveUserQuery().getOptions()),{isPending:r}=i({...e.queries.profileBadges.getActiveUserQuery().getOptions({xuid:t?.xuid}),enabled:t!==void 0});return{person:t,isPending:n||t!==void 0&&r}}),x=r(()=>(0,v.jsx)(b.useComponent(),{}),`ProfileLandingPage`);export{x as ProfileLandingPage,x as default,b as ProfileLandingPageConnection,y as PureProfileLandingPage};