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]=`cf183900-1630-4ba4-97a7-896a3c43137c`,e._sentryDebugIdIdentifier=`sentry-dbid-cf183900-1630-4ba4-97a7-896a3c43137c`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Ag as e,Fg as t,dn as n,k as r,mr as i,sh as a}from"./entry.client-dr7r6s9a.js";import{t as o}from"./useGuideStrings-d2n0srzf.js";import{t as s}from"./GuidePageLayout-imh16gdu.js";import{t as c}from"./GuideL2Header-b90pi17a.js";import{n as l,r as u,t as d}from"./GuideFriendsPicker-e05agpt5.js";import{t as f}from"./useStartParty-ooqgumui.js";var p=t(),m=e(),h=e=>{let t=(0,p.c)(16),{onSelect:n,onSkip:i}=e,{locAddPeople:a}=r(),{locSendInvitesCount:f}=o(),h;t[0]===a?h=t[1]:(h=a(),t[0]=a,t[1]=h);let g;t[2]===h?g=t[3]:(g=(0,m.jsx)(c,{title:h}),t[2]=h,t[3]=g);let _;t[4]!==f||t[5]!==i?(_=(0,m.jsx)(d,{getSelectButtonLabel:f,onSkip:i}),t[4]=f,t[5]=i,t[6]=_):_=t[6];let v;t[7]!==g||t[8]!==_?(v=(0,m.jsxs)(`div`,{className:`flex flex-col gap-layout-vertical-related-content-in-a-section-tight`,children:[g,_]}),t[7]=g,t[8]=_,t[9]=v):v=t[9];let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,m.jsx)(l,{}),t[10]=y):y=t[10];let b;t[11]===v?b=t[12]:(b=(0,m.jsx)(s,{id:`guide-invite-and-create-party-page`,header:v,children:y}),t[11]=v,t[12]=b);let x;return t[13]!==n||t[14]!==b?(x=(0,m.jsx)(u,{onSelect:n,children:b}),t[13]=n,t[14]=b,t[15]=x):x=t[15],x},g=n(h,()=>{let{onPress:e}=f(!0),{gameStream:{guideSystemUiEventManager:t}}=a();return{onSelect:n=>{e(n.map(e=>e.xuid)),t.onShowLaunchPartyCompleted()},onSkip:()=>{e(),t.onShowLaunchPartyCompleted()}}}),_=i(()=>(0,m.jsx)(g.useComponent(),{}),`InviteAndCreatePartyPage`);export{_ as InviteAndCreatePartyPage,_ as default,g as InviteAndCreatePartyPageConnection,h as PureInviteAndCreatePartyPage};