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]=`75859c27-658b-428f-951b-6f47f7f2c445`,e._sentryDebugIdIdentifier=`sentry-dbid-75859c27-658b-428f-951b-6f47f7f2c445`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Ag as e,Fg as t,dn as n,k as r,lh as i,mr as a,sh as o}from"./entry.client-dr7r6s9a.js";import{n as s}from"./guideRouterEnvironmentHooks-gdtmgzra.js";import{t as c}from"./GuidePageLayout-imh16gdu.js";import{t as l}from"./GuideL2Header-b90pi17a.js";import{n as u,r as d,t as f}from"./GuideFriendsPicker-e05agpt5.js";var p=t(),m=e(),h=e=>{let t=(0,p.c)(17),{onSelect:n}=e,{locAddPeople:a}=r(),{t:o}=i(`GuideJumpTab`),s;t[0]===o?s=t[1]:(s=e=>o(`{count, plural, other{Submit ({count})}}`,{values:{count:e},shortKey:`submit_people_picker`}),t[0]=o,t[1]=s);let h=s,g;t[2]===a?g=t[3]:(g=a(),t[2]=a,t[3]=g);let _;t[4]===g?_=t[5]:(_=(0,m.jsx)(l,{title:g}),t[4]=g,t[5]=_);let v;t[6]===h?v=t[7]:(v=(0,m.jsx)(f,{getSelectButtonLabel:h}),t[6]=h,t[7]=v);let y;t[8]!==_||t[9]!==v?(y=(0,m.jsxs)(`div`,{className:`flex flex-col gap-layout-vertical-related-content-in-a-section-tight`,children:[_,v]}),t[8]=_,t[9]=v,t[10]=y):y=t[10];let b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,m.jsx)(u,{}),t[11]=b):b=t[11];let x;t[12]===y?x=t[13]:(x=(0,m.jsx)(c,{id:`guide-remoted-people-picker-page`,header:y,children:b}),t[12]=y,t[13]=x);let S;return t[14]!==n||t[15]!==x?(S=(0,m.jsx)(d,{onSelect:n,children:x}),t[14]=n,t[15]=x,t[16]=S):S=t[16],S},g=n(h,()=>{let e=s(),{gameStream:{guideSystemUiEventManager:t}}=o();return{onSelect:n=>{let r=n.map(e=>e.xuid);t.onShowPeoplePickerCompleted(r),e()}}}),_=a(()=>(0,m.jsx)(g.useComponent(),{}),`RemotedPeoplePickerPage`);export{h as PureRemotedPeoplePickerPage,_ as RemotedPeoplePickerPage,_ as default,g as RemotedPeoplePickerPageConnection};