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]=`7acf65ed-3de3-4643-bf72-3eac4255bc18`,e._sentryDebugIdIdentifier=`sentry-dbid-7acf65ed-3de3-4643-bf72-3eac4255bc18`)}catch{}import{Fg as e,X as t,Z as n,ch as r,eh as i,sh as a,wg as o,zp as s}from"./entry.client-dr7r6s9a.js";import{t as ee}from"./useTrackPrivacyInteractionEvent-bjoxdxky.js";import{t as te}from"./guideRouterEnvironmentHooks-gdtmgzra.js";import{t as ne}from"./useChatStrings-ddn3ault.js";import{t as c}from"./useCreateGroupAndNavigate-ebmfegn9.js";var l=e(),u=e=>{let u=(0,l.c)(61),{conversationId:d,userProfile:f}=e,p=te(),{locDelete:m,locCancel:h}=i(),{locDeleteConversationConfirmationTitle:g,locDeleteConversationConfirmationMessage:_}=ne(),v=f?.xuid,y=f?.gamertag,{conversation:b,privacy:x}=a(),{trackUserAction:S}=r(),{trackSuccessfulBlockUser:C,trackFailedBlockUser:w,trackSuccessfulUnblockUser:T,trackFailedUnblockUser:E}=ee(`useConversationHandlers`),D;u[0]===b.mutations.conversationMuteUnmute?D=u[1]:(D=b.mutations.conversationMuteUnmute.getActiveUserMutation().getOptions(),u[0]=b.mutations.conversationMuteUnmute,u[1]=D);let{mutate:O}=o(D),k;u[2]===x.mutations.blockUser?k=u[3]:(k=x.mutations.blockUser.getActiveUserMutation().getOptions(),u[2]=x.mutations.blockUser,u[3]=k);let{mutate:A}=o(k),j;u[4]===b.mutations.deleteConversation?j=u[5]:(j=b.mutations.deleteConversation.getActiveUserMutation().getOptions(),u[4]=b.mutations.deleteConversation,u[5]=j);let{mutate:M}=o(j),N;u[6]===Symbol.for(`react.memo_cache_sentinel`)?(N={location:`ConversationHandlers`},u[6]=N):N=u[6];let P=n(N),F;u[7]===b.mutations.activateConversation?F=u[8]:(F=b.mutations.activateConversation.getActiveUserMutation().getOptions(),u[7]=b.mutations.activateConversation,u[8]=F);let{mutate:I}=o(F),L;u[9]===b.mutations.deactivateConversationOrChannel?L=u[10]:(L=b.mutations.deactivateConversationOrChannel.getActiveUserMutation().getOptions(),u[9]=b.mutations.deactivateConversationOrChannel,u[10]=L);let{mutate:R}=o(L),{createGroupAndNavigate:z}=c(),B;u[11]===m?B=u[12]:(B=m(),u[11]=m,u[12]=B);let V=B,H;u[13]===h?H=u[14]:(H=h(),u[13]=h,u[14]=H);let U=H,W;u[15]===S?W=u[16]:(W=(e,t)=>{S(`ChatInteraction`,{type:e,wasSuccessful:t},`Press`)},u[15]=S,u[16]=W);let G=W,K;u[17]!==v||u[18]!==p?(K=()=>{v&&p({to:s.dialog.guide.chat.directChat.fullPath,params:{participantXuid:v}})},u[17]=v,u[18]=p,u[19]=K):K=u[19];let q;u[20]!==O||u[21]!==d||u[22]!==G?(q=e=>O({conversationId:d,isMute:e},{onSuccess:()=>G(e?`MuteConversation`:`UnmuteConversation`,!0),onError:()=>G(e?`MuteConversation`:`UnmuteConversation`,!1)}),u[20]=O,u[21]=d,u[22]=G,u[23]=q):q=u[23];let J;u[24]!==v||u[25]!==y||u[26]!==P||u[27]!==A||u[28]!==C||u[29]!==w||u[30]!==T||u[31]!==E?(J=(e,n)=>{v&&y&&(e?P({key:t.confirmBlock.fullPath,props:{targetGamertag:y,onBlock:()=>{A({targetXuid:v,shouldBlock:!0},{onSuccess:()=>{C(),n?.()},onError:w})}}}):A({targetXuid:v,shouldBlock:!1},{onSuccess:T,onError:E}))},u[24]=v,u[25]=y,u[26]=P,u[27]=A,u[28]=C,u[29]=w,u[30]=T,u[31]=E,u[32]=J):J=u[32];let Y;u[33]!==P||u[34]!==g||u[35]!==_||u[36]!==V||u[37]!==M||u[38]!==d||u[39]!==G||u[40]!==U?(Y=e=>{P({key:t.confirmation.fullPath,props:{title:g(),prompt:_(),firstButton:{text:V,kind:`destructive`,onPress:()=>{M({conversationId:d},{onSuccess:()=>{G(`DeleteConversation`,!0),e?.()},onError:()=>{G(`DeleteConversation`,!1)}})}},secondButton:{text:U}}})},u[33]=P,u[34]=g,u[35]=_,u[36]=V,u[37]=M,u[38]=d,u[39]=G,u[40]=U,u[41]=Y):Y=u[41];let X;u[42]!==v||u[43]!==z?(X=()=>{v&&z([v],{replace:!0})},u[42]=v,u[43]=z,u[44]=X):X=u[44];let Z;u[45]!==v||u[46]!==p?(Z=()=>{v&&p({to:s.dialog.guide.people.profileCard.fullPath,params:{xuid:v}})},u[45]=v,u[46]=p,u[47]=Z):Z=u[47];let Q;u[48]!==v||u[49]!==I||u[50]!==G||u[51]!==R?(Q=e=>{v&&(e?I({xuid:v},{onSuccess:()=>{G(`ActivateConversation`,!0)},onError:()=>{G(`ActivateConversation`,!1)}}):R(void 0,{onSuccess:()=>{G(`DeactivateConversation`,!0)},onError:()=>{G(`DeactivateConversation`,!1)}}))},u[48]=v,u[49]=I,u[50]=G,u[51]=R,u[52]=Q):Q=u[52];let $;return u[53]!==K||u[54]!==q||u[55]!==J||u[56]!==Y||u[57]!==X||u[58]!==Z||u[59]!==Q?($={openChat:K,muteUnmuteConversation:q,blockUser:J,deleteConversation:Y,convertToGroup:X,viewProfile:Z,activateConversation:Q},u[53]=K,u[54]=q,u[55]=J,u[56]=Y,u[57]=X,u[58]=Z,u[59]=Q,u[60]=$):$=u[60],$};export{u as t};