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]=`6b245bea-8df5-47bd-b43a-9b604b617004`,e._sentryDebugIdIdentifier=`sentry-dbid-6b245bea-8df5-47bd-b43a-9b604b617004`)}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,yr as u}from"./entry.client-mpghtlrl.js";import{ut as d}from"./xds-react-components-ihgca01z.js";import{t as f}from"./DialogShell-ga7ic6wy.js";var p=n(),m=e(l(),1),h=c(),g=s(e=>{let n=(0,p.c)(15),{handleClose:i}=e,{t:a}=t(`ChangeGamertagDialog`),{locClose:o,locSomethingWentWrong:s}=r(),c;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(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]=c):c=n[0];let l;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(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]=l):l=n[1];let g;n[2]===o?g=n[3]:(g=o(),n[2]=o,n[3]=g);let _;n[4]!==g||n[5]!==i?(_={text:g,onPress:i},n[4]=g,n[5]=i,n[6]=_):_=n[6];let v;n[7]===a?v=n[8]:(v=a(`Your gamertag has not changed. Please re-sign into your account and try again.`,{shortKey:`error_body`}),n[7]=a,n[8]=v);let y;n[9]===s?y=n[10]:(y=s(),n[9]=s,n[10]=y);let b;return n[11]!==_||n[12]!==v||n[13]!==y?(b=(0,h.jsxs)(h.Fragment,{children:[c,(0,h.jsx)(d,{className:l,children:(0,h.jsx)(u,{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}=o(),{trackUserAction:t}=i(),{mutate:n}=a(e.mutations.goBack);return{handleClose:()=>{t(`CloseModal`,{modalType:e.keys.changeGamertag.fullPath,dismissMethod:`closeButton`},`Press`),n()}}});export{g as t};