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]=`02dcb1f2-02d4-4372-8970-a2117ddd4828`,e._sentryDebugIdIdentifier=`sentry-dbid-02dcb1f2-02d4-4372-8970-a2117ddd4828`)}catch{}import{Dg as e,Fg as t,ch as n,sh as r,wg as i}from"./entry.client-dr7r6s9a.js";import{t as a}from"./PartyJoinability-iq42e9ph.js";import{t as o}from"./guideRouterEnvironmentHooks-gdtmgzra.js";var s=t(),c=t=>{let c=(0,s.c)(19),{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}=i(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}=e(m),g=h===void 0?`allowed`:h,_;c[4]===u.mutations.open?_=c[5]:(_=u.mutations.open.getOptions(),c[4]=u.mutations.open,c[5]=_);let{mutate:v}=i(_),y=o(),{trackUserAction:b}=n(),x;c[6]!==g||c[7]!==b||c[8]!==u.keys.partyBlocked.fullPath||c[9]!==u.keys.guide.jump.partyChatUnavailable.fullPath||c[10]!==u.keys.guide.jump.activeParty.fullPath||c[11]!==v||c[12]!==y||c[13]!==t||c[14]!==p?(x=e=>{bb6:switch(g){case`blockedNoCommunicationsPrivilege`:b(`OpenModal`,{modalType:u.keys.partyBlocked.fullPath},`Press`,{location:`BlockedNoCommunicationsPrivilegeButton`}),v({key:u.keys.partyBlocked.fullPath,props:{blockedReason:`suspension`}});break bb6;case`blockedByPrivacySettings`:b(`OpenModal`,{modalType:u.keys.partyBlocked.fullPath},`Press`,{location:`BlockedPrivacySettingsButton`}),v({key:u.keys.partyBlocked.fullPath,props:{blockedReason:`privacy`}});break bb6;case`blockedByUnsupportedClient`:y({to:u.keys.guide.jump.partyChatUnavailable.fullPath,replace:!!t});break bb6;default:p({partyJoinability:a.followedByMembers,inviteeXuids:e}),y({to:u.keys.guide.jump.activeParty.fullPath,search:{view:`people`},replace:!!t})}},c[6]=g,c[7]=b,c[8]=u.keys.partyBlocked.fullPath,c[9]=u.keys.guide.jump.partyChatUnavailable.fullPath,c[10]=u.keys.guide.jump.activeParty.fullPath,c[11]=v,c[12]=y,c[13]=t,c[14]=p,c[15]=x):x=c[15];let S=x,C;return c[16]!==S||c[17]!==g?(C={onPress:S,partyEntryStatus:g},c[16]=S,c[17]=g,c[18]=C):C=c[18],C};export{c as t};