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]=`816dde6a-447e-4e6a-8b7f-ee64518fc2b3`,e._sentryDebugIdIdentifier=`sentry-dbid-816dde6a-447e-4e6a-8b7f-ee64518fc2b3`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{$m as e,Ag as t,H as n,Oi as r,Zm as i,_r as a,ng as o}from"./entry.client-mpghtlrl.js";import{n as s}from"./guideRouterEnvironmentHooks-h2xlfina.js";import{t as c}from"./GuidePageLayout-eh7novzv.js";import{t as l}from"./GuideL2Header-a2pogkf0.js";import{n as u,r as d,t as f}from"./GuideFriendsPicker-hl7nx5ln.js";var p=t(),m=o(),h=t=>{let r=(0,p.c)(17),{onSelect:i}=t,{locAddPeople:a}=n(),{t:o}=e(`GuideJumpTab`),s;r[0]===o?s=r[1]:(s=e=>o(`{count, plural, other{Submit ({count})}}`,{values:{count:e},shortKey:`submit_people_picker`}),r[0]=o,r[1]=s);let h=s,g;r[2]===a?g=r[3]:(g=a(),r[2]=a,r[3]=g);let _;r[4]===g?_=r[5]:(_=(0,m.jsx)(l,{title:g}),r[4]=g,r[5]=_);let v;r[6]===h?v=r[7]:(v=(0,m.jsx)(f,{getSelectButtonLabel:h}),r[6]=h,r[7]=v);let y;r[8]!==_||r[9]!==v?(y=(0,m.jsxs)(`div`,{className:`flex flex-col gap-layout-vertical-title-and-row-regular`,children:[_,v]}),r[8]=_,r[9]=v,r[10]=y):y=r[10];let b;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,m.jsx)(u,{}),r[11]=b):b=r[11];let x;r[12]===y?x=r[13]:(x=(0,m.jsx)(c,{id:`guide-remoted-people-picker-page`,header:y,children:b}),r[12]=y,r[13]=x);let S;return r[14]!==i||r[15]!==x?(S=(0,m.jsx)(d,{onSelect:i,children:x}),r[14]=i,r[15]=x,r[16]=S):S=r[16],S},g=a(h,()=>{let e=s(),{gameStream:{guideSystemUiEventManager:t}}=i();return{onSelect:n=>{let r=n.map(e=>e.xuid);t.onShowPeoplePickerCompleted(r),e()}}}),_=r(()=>(0,m.jsx)(g.useComponent(),{}),`RemotedPeoplePickerPage`);export{h as PureRemotedPeoplePickerPage,_ as RemotedPeoplePickerPage,_ as default,g as RemotedPeoplePickerPageConnection};