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]=`34856826-778d-4be3-841b-c6776b93552d`,e._sentryDebugIdIdentifier=`sentry-dbid-34856826-778d-4be3-841b-c6776b93552d`)}catch{}import{Ag as e,Fg as t,dn as n,eh as r,lh as i,zp as a}from"./entry.client-dr7r6s9a.js";import{t as o}from"./HorizontalSocialItem-en4pxu2j.js";import{t as s}from"./HorizontalSocialItemLoading-m0axsm2y.js";import{t as c}from"./ContainerVirtualGrid-db88vdpo.js";import{t as l}from"./guideRouterEnvironmentHooks-gdtmgzra.js";import{t as u}from"./GuidePageLayout-imh16gdu.js";import{n as d,t as f}from"./useFormatAmountOfTime-njujwiij.js";import{t as p}from"./GuideIllustration-ox8r1eop.js";import{t as m}from"./GuideL2Header-b90pi17a.js";var h=t(),g=e(),_=n(e=>{let t=(0,h.c)(6),{xuid:n,onPress:r,timestampMs:i,referenceTime:a}=e,s=f(i,a,!0),c;t[0]===s?c=t[1]:(c=s?(0,g.jsx)(`div`,{className:`text-item-visible-container-default-content-primary-rest type-body`,children:s}):null,t[0]=s,t[1]=c);let l;return t[2]!==n||t[3]!==r||t[4]!==c?(l=(0,g.jsx)(o,{xuid:n,onPress:r,version:`regular`,background:`invisible`,extraContent:c}),t[2]=n,t[3]=r,t[4]=c,t[5]=l):l=t[5],l},({xuid:e,...t})=>{let n=l();return{onPress:()=>{n({to:a.dialog.guide.people.profileCard.fullPath,params:{xuid:e}})},xuid:e,...t}}),v=e=>{let t=(0,h.c)(41),{users:n,isError:a,isPending:o,userType:s}=e,{t:l}=i(`GuidePeopleTab`),{locSomethingWentWrong:f,locGenericErrorSubheading:v}=r(),b=_.useComponent(),x;t[0]!==n||t[1]!==s?(x=()=>{if(!(!n||n.length===0))return s===`recentFollowers`?n[0].followedByDateInMs:n[0].friendedDateInMs},t[0]=n,t[1]=s,t[2]=x):x=t[2];let S=x,C;t[3]===S?C=t[4]:(C=S(),t[3]=S,t[4]=C);let w=d(`auto`,C),T;t[5]!==s||t[6]!==l?(T=s===`recentFollowers`?l(`Recent followers`,{shortKey:`recent_followers`}):l(`Recent friends`,{shortKey:`recent_friends`}),t[5]=s,t[6]=l,t[7]=T):T=t[7];let E=T;if(n){let e=`guide-${s}`,r;t[8]===E?r=t[9]:(r=(0,g.jsx)(m,{title:E}),t[8]=E,t[9]=r);let i;t[10]!==b||t[11]!==s||t[12]!==w?(i=e=>(0,g.jsx)(b,{xuid:e.xuid,timestampMs:s===`recentFollowers`?e.followedByDateInMs:e.friendedDateInMs,referenceTime:w?.referenceTime},e.xuid),t[10]=b,t[11]=s,t[12]=w,t[13]=i):i=t[13];let a;t[14]!==n||t[15]!==i?(a=(0,g.jsx)(c,{items:n,renderItem:i,columns:1,overscan:10,gapSize:`var(--V1VF)`}),t[14]=n,t[15]=i,t[16]=a):a=t[16];let o;return t[17]!==e||t[18]!==r||t[19]!==a?(o=(0,g.jsx)(u,{id:e,header:r,children:a}),t[17]=e,t[18]=r,t[19]=a,t[20]=o):o=t[20],o}else if(a||!o){let e=`guide-${s}`,n;t[21]===E?n=t[22]:(n=(0,g.jsx)(m,{title:E}),t[21]=E,t[22]=n);let r;t[23]===f?r=t[24]:(r=f(),t[23]=f,t[24]=r);let i;t[25]===v?i=t[26]:(i=v(),t[25]=v,t[26]=i);let a;t[27]!==r||t[28]!==i?(a=(0,g.jsx)(p,{title:r,subtitle:i,illustrationType:`error`}),t[27]=r,t[28]=i,t[29]=a):a=t[29];let o;return t[30]!==e||t[31]!==n||t[32]!==a?(o=(0,g.jsx)(u,{id:e,header:n,children:a}),t[30]=e,t[31]=n,t[32]=a,t[33]=o):o=t[33],o}else{let e=`guide-${s}`,n;t[34]===E?n=t[35]:(n=(0,g.jsx)(m,{title:E}),t[34]=E,t[35]=n);let r;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,g.jsx)(`div`,{className:`flex max-h-full flex-col gap-layout-vertical-group-of-items-tight overflow-y-hidden`,children:Array.from({length:15},y)}),t[36]=r):r=t[36];let i;return t[37]!==e||t[38]!==n||t[39]!==r?(i=(0,g.jsx)(u,{id:e,header:n,children:r}),t[37]=e,t[38]=n,t[39]=r,t[40]=i):i=t[40],i}};function y(e,t){return(0,g.jsx)(s,{includeContainer:!0},t)}export{v as t};