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]=`ab56ac34-a1e8-45ec-8544-31a773133791`,e._sentryDebugIdIdentifier=`sentry-dbid-ab56ac34-a1e8-45ec-8544-31a773133791`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,H as r,Hm as i,Qm as a,Yh as o,Zm as s,_r as c,ng as l,pi as u}from"./entry.client-mpghtlrl.js";import{n as d}from"./DialogShell-ga7ic6wy.js";import{t as f}from"./ConfirmationDialog-gwsu4d5l.js";var p=e(u(),1),m=n(),h=l(),g=c(e=>{let n=(0,m.c)(20),{handlePressBlock:a,handlePressCancel:o,targetGamertag:s}=e,{t:c}=t(`ConfirmBlockDialog`),{locCancel:l}=i(),{locBlockUser:u}=r(),d;n[0]!==s.uniqueGamertag||n[1]!==c?(d=c(`Block {gamertag}?`,{shortKey:`block_user`,values:{gamertag:s.uniqueGamertag}}),n[0]=s.uniqueGamertag,n[1]=c,n[2]=d):d=n[2];let p;n[3]===c?p=n[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`}),n[3]=c,n[4]=p);let g;n[5]===u?g=n[6]:(g=u(!1),n[5]=u,n[6]=g);let _;n[7]!==g||n[8]!==a?(_={text:g,onPress:a,kind:`destructive`},n[7]=g,n[8]=a,n[9]=_):_=n[9];let v;n[10]===l?v=n[11]:(v=l(),n[10]=l,n[11]=v);let y;n[12]!==v||n[13]!==o?(y={text:v,onPress:o},n[12]=v,n[13]=o,n[14]=y):y=n[14];let b;return n[15]!==d||n[16]!==p||n[17]!==_||n[18]!==y?(b=(0,h.jsx)(f,{title:d,prompt:p,firstButton:_,secondButton:y}),n[15]=d,n[16]=p,n[17]=_,n[18]=y,n[19]=b):b=n[19],b},({onBlock:e,targetGamertag:t})=>{let{dialog:n}=s(),{mutate:r}=o(n.mutations.goBack.getOptions()),{trackUserAction:i}=a();return{handlePressBlock:()=>{e(),i(`CloseModal`,{modalType:n.keys.confirmBlock.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`BlockButton`}),r()},handlePressCancel:()=>{i(`CloseModal`,{modalType:n.keys.confirmBlock.fullPath,dismissMethod:`sideEffect`},`Press`,{location:`CancelButton`}),r()},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};