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]=`e876bc3a-5bf9-4834-98cd-602cef4fabca`,e._sentryDebugIdIdentifier=`sentry-dbid-e876bc3a-5bf9-4834-98cd-602cef4fabca`)}catch{}import{$i as e,$m as t,Ag as n,H as r,Hm as i,Oi as a,Qh as o,Zm as s,_r as c,ng as l}from"./entry.client-mpghtlrl.js";import{i as u,r as d,t as f}from"./PeoplePickerList-osg9oky5.js";import{t as p}from"./useGuideStrings-n4ehuf4q.js";var m=n(),h=l(),g=c(t=>{let n=(0,m.c)(10),{friends:r,isPending:i,isError:a,children:o,onSelect:s}=t;e(i);let c;n[0]!==a||n[1]!==r||n[2]!==i?(c=()=>a||!r&&!i?`error`:i||!r?`pending`:r,n[0]=a,n[1]=r,n[2]=i,n[3]=c):c=n[3];let l=c,d;n[4]===l?d=n[5]:(d=l(),n[4]=l,n[5]=d);let f;return n[6]!==d||n[7]!==s||n[8]!==o?(f=(0,h.jsx)(u,{userList:d,onSelect:s,children:o}),n[6]=d,n[7]=s,n[8]=o,n[9]=f):f=n[9],f},e=>{let{friends:t}=s(),{data:n,isPending:r,isError:i}=o(t.queries.friends.getActiveUserQuery().getOptions());return{friends:n,isPending:r,isError:i,...e}}),_=a(e=>(0,h.jsx)(g.useComponent(),{...e}),`GuideFriendsPickerProvider`),v=e=>{let t=(0,m.c)(8),{locFriends:n}=r(),{locSearchFriends:i}=p(),a;t[0]===i?a=t[1]:(a=i(),t[0]=i,t[1]=a);let o;t[2]===n?o=t[3]:(o=n(),t[2]=n,t[3]=o);let s;return t[4]!==e||t[5]!==a||t[6]!==o?(s=(0,h.jsx)(d,{...e,searchPlaceholder:a,pageLabel:o}),t[4]=e,t[5]=a,t[6]=o,t[7]=s):s=t[7],s},y=()=>{let e=(0,m.c)(17),{locCannotLoadFriends:n,locSendAcceptFriendRequests:r}=p(),{locGenericErrorSubheading:a}=i(),{t:o}=t(`Guide`),s;e[0]===o?s=e[1]:(s=o(`You don't have friends yet`,{shortKey:`no_friends_yet`}),e[0]=o,e[1]=s);let c=s,l;e[2]===r?l=e[3]:(l=r(),e[2]=r,e[3]=l);let u;e[4]!==c||e[5]!==l?(u={title:c,subtitle:l,illustrationType:`emptyFriendsRequests`},e[4]=c,e[5]=l,e[6]=u):u=e[6];let d;e[7]===n?d=e[8]:(d=n(),e[7]=n,e[8]=d);let g;e[9]===a?g=e[10]:(g=a(),e[9]=a,e[10]=g);let _;e[11]!==d||e[12]!==g?(_={title:d,subtitle:g,illustrationType:`error`},e[11]=d,e[12]=g,e[13]=_):_=e[13];let v;return e[14]!==u||e[15]!==_?(v=(0,h.jsx)(f,{noUsersIllustrationProps:u,errorIllustrationProps:_,disableScroll:!0}),e[14]=u,e[15]=_,e[16]=v):v=e[16],v};export{y as n,_ as r,v as t};