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]=`a0581dce-48be-428a-a0a1-190996d68043`,e._sentryDebugIdIdentifier=`sentry-dbid-a0581dce-48be-428a-a0a1-190996d68043`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{Ag as e,H as t,Oi as n,Zm as r,_r as i,ng as a}from"./entry.client-mpghtlrl.js";import{t as o}from"./useGuideStrings-n4ehuf4q.js";import{t as s}from"./GuidePageLayout-eh7novzv.js";import{t as c}from"./GuideL2Header-a2pogkf0.js";import{n as l,r as u,t as d}from"./GuideFriendsPicker-hl7nx5ln.js";import{t as f}from"./useStartParty-ixcjwocq.js";var p=e(),m=a(),h=e=>{let n=(0,p.c)(16),{onSelect:r,onSkip:i}=e,{locAddPeople:a}=t(),{locSendInvitesCount:f}=o(),h;n[0]===a?h=n[1]:(h=a(),n[0]=a,n[1]=h);let g;n[2]===h?g=n[3]:(g=(0,m.jsx)(c,{title:h}),n[2]=h,n[3]=g);let _;n[4]!==f||n[5]!==i?(_=(0,m.jsx)(d,{getSelectButtonLabel:f,onSkip:i}),n[4]=f,n[5]=i,n[6]=_):_=n[6];let v;n[7]!==g||n[8]!==_?(v=(0,m.jsxs)(`div`,{className:`flex flex-col gap-layout-vertical-title-and-row-regular`,children:[g,_]}),n[7]=g,n[8]=_,n[9]=v):v=n[9];let y;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,m.jsx)(l,{}),n[10]=y):y=n[10];let b;n[11]===v?b=n[12]:(b=(0,m.jsx)(s,{id:`guide-invite-and-create-party-page`,header:v,children:y}),n[11]=v,n[12]=b);let x;return n[13]!==r||n[14]!==b?(x=(0,m.jsx)(u,{onSelect:r,children:b}),n[13]=r,n[14]=b,n[15]=x):x=n[15],x},g=i(h,()=>{let{onPress:e}=f(!0),{gameStream:{guideSystemUiEventManager:t}}=r();return{onSelect:n=>{e(n.map(e=>e.xuid)),t.onShowLaunchPartyCompleted()},onSkip:()=>{e(),t.onShowLaunchPartyCompleted()}}}),_=n(()=>(0,m.jsx)(g.useComponent(),{}),`InviteAndCreatePartyPage`);export{_ as InviteAndCreatePartyPage,_ as default,g as InviteAndCreatePartyPageConnection,h as PureInviteAndCreatePartyPage};