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]=`64434e56-cbc3-4ff1-84fd-5adf60eef2bf`,e._sentryDebugIdIdentifier=`sentry-dbid-64434e56-cbc3-4ff1-84fd-5adf60eef2bf`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{st as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,ch as i,dn as a,eh as o,lh as s,or as c,pn as l,sh as u,wg as d}from"./entry.client-dr7r6s9a.js";import{t as f}from"./DialogShell-k2jpaw9r.js";var p=r(),m=e(c(),1),h=n(),g=a(e=>{let n=(0,p.c)(15),{handleClose:r}=e,{t:i}=s(`ChangeGamertagDialog`),{locClose:a,locSomethingWentWrong:c}=o(),u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,h.jsx)(f.NavigationHeader,{showClose:!0,className:`ps-template-overlays-modal-container-padding-2-left-&-right content-between items-baseline self-stretch p-internal-gap-regular`}),n[0]=u):u=n[0];let d;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,m.default)(`overflow-y-auto sbar`,`[--scrollbar-track-margin-top:var(--modal-spacing)]`,`flex flex-col self-stretch`,`px-template-overlays-modal-container-padding-2-left-&-right`,`items-start gap-internal-gap-static-regular fp-b`),n[1]=d):d=n[1];let g;n[2]===a?g=n[3]:(g=a(),n[2]=a,n[3]=g);let _;n[4]!==g||n[5]!==r?(_={text:g,onPress:r},n[4]=g,n[5]=r,n[6]=_):_=n[6];let v;n[7]===i?v=n[8]:(v=i(`Your Gamertag has not changed. Please re-sign into your account and try again.`,{shortKey:`error_body`}),n[7]=i,n[8]=v);let y;n[9]===c?y=n[10]:(y=c(),n[9]=c,n[10]=y);let b;return n[11]!==_||n[12]!==v||n[13]!==y?(b=(0,h.jsxs)(h.Fragment,{children:[u,(0,h.jsx)(t,{className:d,children:(0,h.jsx)(l,{illustration:`error`,primaryButton:_,subtitle:v,title:y})})]}),n[11]=_,n[12]=v,n[13]=y,n[14]=b):b=n[14],b},()=>{let{dialog:e}=u(),{trackUserAction:t}=i(),{mutate:n}=d(e.mutations.goBack);return{handleClose:()=>{t(`CloseModal`,{modalType:e.keys.changeGamertag.fullPath,dismissMethod:`closeButton`},`Press`),n()}}});export{g as t};