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]=`863316f2-2897-4982-813f-25099803cbde`,e._sentryDebugIdIdentifier=`sentry-dbid-863316f2-2897-4982-813f-25099803cbde`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Hm as r,Qm as i,Yh as a,Zm as o,_r as s,ng as c,pi as l}from"./entry.client-mpghtlrl.js";import{n as u}from"./DialogShell-ga7ic6wy.js";import{t as d}from"./ConfirmationDialog-gwsu4d5l.js";var f=e(l(),1),p=n(),m=c(),h=s(e=>{let n=(0,p.c)(20),{handlePressRemove:i,handlePressCancel:a,targetGamertag:o}=e,{t:s}=t(`ConfirmRemoveFriendDialog`),{locCancel:c,locRemove:l}=r(),u;n[0]!==o.uniqueGamertag||n[1]!==s?(u=s(`Remove {gamertag} from your friends list?`,{shortKey:`remove_friend_title`,values:{gamertag:o.uniqueGamertag}}),n[0]=o.uniqueGamertag,n[1]=s,n[2]=u):u=n[2];let f;n[3]===s?f=n[4]:(f=s(`After removing this friend, you'll need to send a friend request again if you want to add them back.`,{shortKey:`remove_friend_body`}),n[3]=s,n[4]=f);let h;n[5]===l?h=n[6]:(h=l(),n[5]=l,n[6]=h);let g;n[7]!==h||n[8]!==i?(g={text:h,onPress:i,kind:`destructive`},n[7]=h,n[8]=i,n[9]=g):g=n[9];let _;n[10]===c?_=n[11]:(_=c(),n[10]=c,n[11]=_);let v;n[12]!==_||n[13]!==a?(v={text:_,onPress:a},n[12]=_,n[13]=a,n[14]=v):v=n[14];let y;return n[15]!==u||n[16]!==f||n[17]!==g||n[18]!==v?(y=(0,m.jsx)(d,{title:u,prompt:f,firstButton:g,secondButton:v}),n[15]=u,n[16]=f,n[17]=g,n[18]=v,n[19]=y):y=n[19],y},({onRemove:e,targetGamertag:t})=>{let{dialog:n}=o(),{mutate:r}=a(n.mutations.goBack.getOptions()),{trackUserAction:s}=i();return{handlePressRemove:()=>{e(),s(`CloseModal`,{modalType:n.keys.confirmRemoveFriend.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`RemoveButton`}),r()},handlePressCancel:()=>{s(`CloseModal`,{modalType:n.keys.confirmRemoveFriend.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`CancelButton`}),r()},targetGamertag:t}}),g=e=>{let t=(0,p.c)(9),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r=u.useComponent(),i=h.useComponent(),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,f.default)(d.CONTAINER_CLASSNAME,`modal-medium modal-floating`),t[2]=a):a=t[2];let o;t[3]!==i||t[4]!==n?(o=(0,m.jsx)(i,{...n}),t[3]=i,t[4]=n,t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==o?(s=(0,m.jsx)(r,{autoHeight:!0,className:a,children:o}),t[6]=r,t[7]=o,t[8]=s):s=t[8],s};export{g as ConfirmRemoveFriendDialog,g as default};