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]=`5f5337b5-0036-415e-8feb-323256947e64`,e._sentryDebugIdIdentifier=`sentry-dbid-5f5337b5-0036-415e-8feb-323256947e64`)}catch{}import{Ag as e,H as t,P as n,Qh as r,R as i,Zm as a,_r as o,ai as s,bi as c,ei as l,ng as u}from"./entry.client-mpghtlrl.js";import{cr as d,sr as f}from"./workspace-leaf-files-oergw4h0.js";import{t as p}from"./GamePassBadge-hp32hqts.js";import{t as m}from"./Gamerscore-hcq9d41u.js";var h=e(),g=u(),_=o(e=>{let r=(0,h.c)(11),{person:a,gamepassLevel:o,isCollapsed:u,showFallback:_}=e,v=c()===`low`?d:f,{locGamertagSuffix:y}=t();if(_||!a){let e;return r[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,g.jsx)(s,{children:(0,g.jsx)(`div`,{className:`flex flex-row items-center gap-internal-icon-and-text-gap-loose p-internal-container-padding-regular`,children:(0,g.jsx)(l,{icon:(0,g.jsx)(i,{}),size:`subtitle2`})})}),r[0]=e):e=r[0],e}let b;r[1]===v?b=r[2]:(b=(0,g.jsx)(n,{gamerpicImageConstraints:v,kind:`presence`}),r[1]=v,r[2]=b);let x;r[3]!==u||r[4]!==a||r[5]!==y||r[6]!==o?(x=!u&&(0,g.jsxs)(`div`,{className:`gap-items-social-related-spacing-vertical-alignment-row-1-&-row-2 flex max-w-[85%] flex-col items-start`,children:[(0,g.jsxs)(`div`,{className:`line-clamp-1 flex items-baseline gap-component-item-social-horizontal-label-1-and-real-name-gap-regular self-stretch`,children:[(0,g.jsx)(`div`,{id:`my-profile-header-gamertag-base`,className:`overflow-hidden text-ellipsis text-item-visible-container-default-content-primary-rest type-title4`,children:a.gamertag.base}),a.gamertag.suffix&&(0,g.jsx)(`div`,{id:`my-profile-header-gamertag-suffix`,className:`overflow-hidden text-ellipsis text-item-visible-container-default-content-secondary-rest type-subtitle2`,children:y(a.gamertag.suffix)})]}),(0,g.jsxs)(`div`,{className:`flex items-baseline gap-internal-icon-and-text-gap-loose self-stretch`,children:[(0,g.jsx)(m,{className:`type-subtitle3`,numberClassName:`type-subtitle3`,gamerscore:a.gamerscore,iconSize:`subtitle3`}),(0,g.jsx)(p,{gamepassLevel:o,isInline:!1,className:`h-icon-caption self-center text-noninteractive-content-primary-content`})]})]}),r[3]=u,r[4]=a,r[5]=y,r[6]=o,r[7]=x):x=r[7];let S;return r[8]!==b||r[9]!==x?(S=(0,g.jsxs)(`div`,{className:`gap-items-social-related-spacing-horizontal-graphic-&-text pe-internal-container-padding-right ps-internal-container-padding-left py-internal-container-padding-top-&-bottom flex items-center self-stretch`,children:[b,x]}),r[8]=b,r[9]=x,r[10]=S):S=r[10],S},({isCollapsed:e})=>{let{profile:t,contentAccess:n}=a(),{data:i,isPending:o,isError:s}=r(t.queries.person.getActiveUserQuery().getOptions()),{data:c}=r(n.queries.gamepassAccess.getOptions());return{person:i??null,gamepassLevel:c??0,isCollapsed:!!e,showFallback:o||s}});export{_ as t};