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]=`5f2b3082-78e4-4978-aaa5-94e48deb7ee1`,e._sentryDebugIdIdentifier=`sentry-dbid-5f2b3082-78e4-4978-aaa5-94e48deb7ee1`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,ch as r,dn as i,eh as a,lh as o,or as s,sh as c,wg as l}from"./entry.client-dr7r6s9a.js";import{n as u}from"./DialogShell-k2jpaw9r.js";import{t as d}from"./ConfirmationDialog-lzvdkfji.js";var f=e(s(),1),p=n(),m=t(),h=i(e=>{let t=(0,p.c)(20),{handlePressRemove:n,handlePressCancel:r,targetGamertag:i}=e,{t:s}=o(`ConfirmRemoveFriendDialog`),{locCancel:c,locRemove:l}=a(),u;t[0]!==i.uniqueGamertag||t[1]!==s?(u=s(`Remove {gamertag} from your friends list?`,{shortKey:`remove_friend_title`,values:{gamertag:i.uniqueGamertag}}),t[0]=i.uniqueGamertag,t[1]=s,t[2]=u):u=t[2];let f;t[3]===s?f=t[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`}),t[3]=s,t[4]=f);let h;t[5]===l?h=t[6]:(h=l(),t[5]=l,t[6]=h);let g;t[7]!==h||t[8]!==n?(g={text:h,onPress:n,kind:`destructive`},t[7]=h,t[8]=n,t[9]=g):g=t[9];let _;t[10]===c?_=t[11]:(_=c(),t[10]=c,t[11]=_);let v;t[12]!==_||t[13]!==r?(v={text:_,onPress:r},t[12]=_,t[13]=r,t[14]=v):v=t[14];let y;return t[15]!==u||t[16]!==f||t[17]!==g||t[18]!==v?(y=(0,m.jsx)(d,{title:u,prompt:f,firstButton:g,secondButton:v}),t[15]=u,t[16]=f,t[17]=g,t[18]=v,t[19]=y):y=t[19],y},({onRemove:e,targetGamertag:t})=>{let{dialog:n}=c(),{mutate:i}=l(n.mutations.goBack.getOptions()),{trackUserAction:a}=r();return{handlePressRemove:()=>{e(),a(`CloseModal`,{modalType:n.keys.confirmRemoveFriend.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`RemoveButton`}),i()},handlePressCancel:()=>{a(`CloseModal`,{modalType:n.keys.confirmRemoveFriend.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`CancelButton`}),i()},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};