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]=`3780fccf-94ad-4309-8bd0-a841ae1572b1`,e._sentryDebugIdIdentifier=`sentry-dbid-3780fccf-94ad-4309-8bd0-a841ae1572b1`)}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,k as o,lh as s,or as c,sh as l,wg as u}from"./entry.client-dr7r6s9a.js";import{n as d}from"./DialogShell-k2jpaw9r.js";import{t as f}from"./ConfirmationDialog-lzvdkfji.js";var p=e(c(),1),m=n(),h=t(),g=i(e=>{let t=(0,m.c)(20),{handlePressBlock:n,handlePressCancel:r,targetGamertag:i}=e,{t:c}=s(`ConfirmBlockDialog`),{locCancel:l}=a(),{locBlockUser:u}=o(),d;t[0]!==i.uniqueGamertag||t[1]!==c?(d=c(`Block {gamertag}?`,{shortKey:`block_user`,values:{gamertag:i.uniqueGamertag}}),t[0]=i.uniqueGamertag,t[1]=c,t[2]=d):d=t[2];let p;t[3]===c?p=t[4]:(p=c(`When you block someone, they can no longer communicate with you, see your activity, or add you as a friend. If you're friends, blocking will remove them from your friends list.`,{shortKey:`confirm_block_body`}),t[3]=c,t[4]=p);let g;t[5]===u?g=t[6]:(g=u(!1),t[5]=u,t[6]=g);let _;t[7]!==g||t[8]!==n?(_={text:g,onPress:n,kind:`destructive`},t[7]=g,t[8]=n,t[9]=_):_=t[9];let v;t[10]===l?v=t[11]:(v=l(),t[10]=l,t[11]=v);let y;t[12]!==v||t[13]!==r?(y={text:v,onPress:r},t[12]=v,t[13]=r,t[14]=y):y=t[14];let b;return t[15]!==d||t[16]!==p||t[17]!==_||t[18]!==y?(b=(0,h.jsx)(f,{title:d,prompt:p,firstButton:_,secondButton:y}),t[15]=d,t[16]=p,t[17]=_,t[18]=y,t[19]=b):b=t[19],b},({onBlock:e,targetGamertag:t})=>{let{dialog:n}=l(),{mutate:i}=u(n.mutations.goBack.getOptions()),{trackUserAction:a}=r();return{handlePressBlock:()=>{e(),a(`CloseModal`,{modalType:n.keys.confirmBlock.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`BlockButton`}),i()},handlePressCancel:()=>{a(`CloseModal`,{modalType:n.keys.confirmBlock.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`CancelButton`}),i()},targetGamertag:t}}),_=e=>{let t=(0,m.c)(9),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r=d.useComponent(),i=g.useComponent(),a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.default)(f.CONTAINER_CLASSNAME,`modal-medium modal-floating`),t[2]=a):a=t[2];let o;t[3]!==i||t[4]!==n?(o=(0,h.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,h.jsx)(r,{autoHeight:!0,className:a,children:o}),t[6]=r,t[7]=o,t[8]=s):s=t[8],s};export{_ as ConfirmBlockDialog,_ as default};