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]=`1afb1801-afea-480f-b869-955105452468`,e._sentryDebugIdIdentifier=`sentry-dbid-1afb1801-afea-480f-b869-955105452468`)}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,Kp as i,ch as a,dn as o,eh as s,hn as c,lh as l,or as u,pr as d,sh as f,wg as p}from"./entry.client-dr7r6s9a.js";import{t as m}from"./DialogShell-k2jpaw9r.js";import{t as h}from"./useChangeGamertagStrings-ks3jik87.js";import{n as g,r as _}from"./routes-bxal063z.js";var v=r(),y=e(u(),1),b=n(),x=o(e=>{let n=(0,v.c)(35),{handleDone:r,legacyGamertag:i,uniqueGamertag:a}=e,{t:o}=l(`ChangeGamertagDialog`),{locGotIt:u}=s(),{locModernGamertagItemSubtext:d,locLegacyGamertagItemSubtext:f}=h(),p;n[0]===o?p=n[1]:(p=o(`Success!`,{shortKey:`changegamertag_success_title`}),n[0]=o,n[1]=p);let g;n[2]===p?g=n[3]:(g={title:{text:p,sizeClassName:`type-section3`},containerClassName:`flex-1 items-center`},n[2]=p,n[3]=g);let x=g,S;n[4]===x?S=n[5]:(S=(0,b.jsx)(m.NavigationHeader,{showClose:!0,className:`ps-template-overlays-modal-container-padding-2-left-&-right content-between items-baseline self-stretch p-internal-gap-regular`,title:x}),n[4]=x,n[5]=S);let C;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,y.default)(`overflow-y-auto sbar`,`[--scrollbar-track-margin-top:var(--modal-spacing)]`,`flex flex-1 flex-col self-stretch`,`px-template-overlays-modal-container-padding-2-left-&-right fp-t`,`items-start gap-internal-gap-static-regular`),n[6]=C):C=n[6];let w;n[7]===o?w=n[8]:(w=o(`It will take some time for your new gamertag to reflect on all Xbox apps and services. You may need to sign in again to have it reflect on xbox.com`,{shortKey:`successful_change_gamertag_description`}),n[7]=o,n[8]=w);let T;n[9]===w?T=n[10]:(T=(0,b.jsx)(`p`,{className:`text-action-noninteractive-content-rest type-body`,children:w}),n[9]=w,n[10]=T);let E;n[11]===d?E=n[12]:(E=d(),n[11]=d,n[12]=E);let D;n[13]!==a||n[14]!==E?(D=(0,b.jsx)(_,{label1:a,label2:E}),n[13]=a,n[14]=E,n[15]=D):D=n[15];let O;n[16]===f?O=n[17]:(O=f(),n[16]=f,n[17]=O);let k;n[18]!==i||n[19]!==O?(k=(0,b.jsx)(_,{label1:i,label2:O}),n[18]=i,n[19]=O,n[20]=k):k=n[20];let A;n[21]!==T||n[22]!==D||n[23]!==k?(A=(0,b.jsxs)(t,{className:C,children:[T,D,k]}),n[21]=T,n[22]=D,n[23]=k,n[24]=A):A=n[24];let j;n[25]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,y.default)(`flex gap-internal-gap-regular self-stretch`,`px-template-overlays-modal-container-padding-2-left-&-right pb-template-overlays-modal-container-padding-2-top-&-bottom pt-internal-gap-static-regular`),n[25]=j):j=n[25];let M;n[26]===u?M=n[27]:(M=u(),n[26]=u,n[27]=M);let N;n[28]!==r||n[29]!==M?(N=(0,b.jsx)(`div`,{className:j,children:(0,b.jsx)(c,{as:`button`,className:`flex-1`,kind:`brand`,size:`standard`,onPress:r,children:M})}),n[28]=r,n[29]=M,n[30]=N):N=n[30];let P;return n[31]!==S||n[32]!==A||n[33]!==N?(P=(0,b.jsxs)(b.Fragment,{children:[S,A,N]}),n[31]=S,n[32]=A,n[33]=N,n[34]=P):P=n[34],P},()=>{let{dialog:e}=f(),{trackUserAction:t}=a(),{mutate:n}=p(e.mutations.goBack),r=i({from:g.successfulChangeGamertag});return{handleDone:()=>{t(`CloseModal`,{modalType:e.keys.changeGamertag.fullPath,dismissMethod:`closeButton`},`Press`),n()},legacyGamertag:r.gamertag??``,uniqueGamertag:r.uniqueModernGamertag??``}}),S=()=>{let e=(0,v.c)(2),t=x.useComponent(),n;return e[0]===t?n=e[1]:(n=(0,b.jsx)(d,{location:`SuccessfulChangeGamertagScreen`,children:(0,b.jsx)(t,{})}),e[0]=t,e[1]=n),n};export{S as SuccessfulChangeGamertag};