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]=`8f53febb-19df-4f22-b30e-9a2b2920a333`,e._sentryDebugIdIdentifier=`sentry-dbid-8f53febb-19df-4f22-b30e-9a2b2920a333`)}catch{}import{Ag as e,Qh as t,Yh as n,Zm as r,Zt as i}from"./entry.client-mpghtlrl.js";import{t as a}from"./PartyJoinability-vgai6vn6.js";import{t as o}from"./guideRouterEnvironmentHooks-h2xlfina.js";var s=e(),c=e=>{let c=(0,s.c)(17),{activeParty:l,dialog:u,nonMemberParties:d}=r(),f;c[0]===l.mutations.createParty?f=c[1]:(f=l.mutations.createParty.getActiveUserMutation().getOptions(),c[0]=l.mutations.createParty,c[1]=f);let{mutate:p}=n(f),m;c[2]===d.queries.partyEntryStatus?m=c[3]:(m=d.queries.partyEntryStatus.getActiveUserQuery().getOptions(),c[2]=d.queries.partyEntryStatus,c[3]=m);let{data:h}=t(m),g=h===void 0?`allowed`:h,_;c[4]===Symbol.for(`react.memo_cache_sentinel`)?(_={location:`useStartParty`},c[4]=_):_=c[4];let v=i(_),y=o(),b;c[5]!==g||c[6]!==v||c[7]!==u.keys.partyBlocked.fullPath||c[8]!==u.keys.guide.jump.partyChatUnavailable.fullPath||c[9]!==u.keys.guide.jump.activeParty.fullPath||c[10]!==y||c[11]!==e||c[12]!==p?(b=t=>{bb6:switch(g){case`blockedNoCommunicationsPrivilege`:v({key:u.keys.partyBlocked.fullPath,props:{blockedReason:`suspension`}});break bb6;case`blockedByPrivacySettings`:v({key:u.keys.partyBlocked.fullPath,props:{blockedReason:`privacy`}});break bb6;case`blockedByUnsupportedClient`:y({to:u.keys.guide.jump.partyChatUnavailable.fullPath,replace:!!e});break bb6;default:p({partyJoinability:a.followedByMembers,inviteeXuids:t}),y({to:u.keys.guide.jump.activeParty.fullPath,search:{view:`people`},replace:!!e})}},c[5]=g,c[6]=v,c[7]=u.keys.partyBlocked.fullPath,c[8]=u.keys.guide.jump.partyChatUnavailable.fullPath,c[9]=u.keys.guide.jump.activeParty.fullPath,c[10]=y,c[11]=e,c[12]=p,c[13]=b):b=c[13];let x=b,S;return c[14]!==x||c[15]!==g?(S={onPress:x,partyEntryStatus:g},c[14]=x,c[15]=g,c[16]=S):S=c[16],S};export{c as t};