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]=`3a18c97c-8652-4de2-90e5-612b5cd87e46`,e._sentryDebugIdIdentifier=`sentry-dbid-3a18c97c-8652-4de2-90e5-612b5cd87e46`)}catch{}import{Ag as e,Dg as t,Dr as n,Fg as r,dn as i,eh as a,k as o,lh as s,mr as c,sh as l}from"./entry.client-dr7r6s9a.js";import{n as u,r as d,t as f}from"./PeoplePickerList-0mvaxs16.js";import{t as p}from"./useGuideStrings-d2n0srzf.js";var m=r(),h=e(),g=i(e=>{let t=(0,m.c)(10),{friends:r,isPending:i,isError:a,children:o,onSelect:s}=e;n(i);let c;t[0]!==a||t[1]!==r||t[2]!==i?(c=()=>a||!r&&!i?`error`:i||!r?`pending`:r,t[0]=a,t[1]=r,t[2]=i,t[3]=c):c=t[3];let l=c,u;t[4]===l?u=t[5]:(u=l(),t[4]=l,t[5]=u);let f;return t[6]!==u||t[7]!==s||t[8]!==o?(f=(0,h.jsx)(d,{userList:u,onSelect:s,children:o}),t[6]=u,t[7]=s,t[8]=o,t[9]=f):f=t[9],f},e=>{let{friends:n}=l(),{data:r,isPending:i,isError:a}=t(n.queries.friends.getActiveUserQuery().getOptions());return{friends:r,isPending:i,isError:a,...e}}),_=c(e=>(0,h.jsx)(g.useComponent(),{...e}),`GuideFriendsPickerProvider`),v=e=>{let t=(0,m.c)(8),{locFriends:n}=o(),{locSearchFriends:r}=p(),i;t[0]===r?i=t[1]:(i=r(),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=n(),t[2]=n,t[3]=a);let s;return t[4]!==e||t[5]!==i||t[6]!==a?(s=(0,h.jsx)(u,{...e,searchPlaceholder:i,pageLabel:a}),t[4]=e,t[5]=i,t[6]=a,t[7]=s):s=t[7],s},y=()=>{let e=(0,m.c)(17),{locCannotLoadFriends:t,locSendAcceptFriendRequests:n}=p(),{locGenericErrorSubheading:r}=a(),{t:i}=s(`Guide`),o;e[0]===i?o=e[1]:(o=i(`You don't have friends yet`,{shortKey:`no_friends_yet`}),e[0]=i,e[1]=o);let c=o,l;e[2]===n?l=e[3]:(l=n(),e[2]=n,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]===t?d=e[8]:(d=t(),e[7]=t,e[8]=d);let g;e[9]===r?g=e[10]:(g=r(),e[9]=r,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};