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]=`85c23c38-e583-4804-849b-113fee05a342`,e._sentryDebugIdIdentifier=`sentry-dbid-85c23c38-e583-4804-849b-113fee05a342`)}catch{}import{Ag as e,Dg as t,Fg as n,Qn as r,Wn as i,dn as a,dr as o,k as s,sh as c,v as l,x as u}from"./entry.client-dr7r6s9a.js";import{$t as d,en as f}from"./workspace-leaf-files-mc5sghv7.js";import{t as p}from"./GamePassBadge-dyhvpnbf.js";import{t as m}from"./Gamerscore-hxfaor61.js";var h=n(),g=e(),_=a(e=>{let t=(0,h.c)(11),{person:n,gamepassLevel:a,isCollapsed:c,showFallback:_}=e,v=o()===`low`?f:d,{locGamertagSuffix:y}=s();if(_||!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,g.jsx)(r,{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)(i,{icon:(0,g.jsx)(u,{}),size:`subtitle2`})})}),t[0]=e):e=t[0],e}let b;t[1]===v?b=t[2]:(b=(0,g.jsx)(l,{gamerpicImageConstraints:v,kind:`presence`}),t[1]=v,t[2]=b);let x;t[3]!==c||t[4]!==n||t[5]!==y||t[6]!==a?(x=!c&&(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:n.gamertag.base}),n.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(n.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:n.gamerscore,iconSize:`subtitle3`}),(0,g.jsx)(p,{gamepassLevel:a,isInline:!1,className:`h-icon-caption self-center text-noninteractive-content-primary-content`})]})]}),t[3]=c,t[4]=n,t[5]=y,t[6]=a,t[7]=x):x=t[7];let S;return t[8]!==b||t[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]}),t[8]=b,t[9]=x,t[10]=S):S=t[10],S},({isCollapsed:e})=>{let{profile:n,contentAccess:r}=c(),{data:i,isPending:a,isError:o}=t(n.queries.person.getActiveUserQuery().getOptions()),{data:s}=t(r.queries.gamepassAccess.getOptions());return{person:i??null,gamepassLevel:s??0,isCollapsed:!!e,showFallback:a||o}});export{_ as t};