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]=`b7582e1a-aa7f-448d-9a5c-33161bb3cfdf`,e._sentryDebugIdIdentifier=`sentry-dbid-b7582e1a-aa7f-448d-9a5c-33161bb3cfdf`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Di as r,Hm as i,Qm as a,Yh as o,Zm as s,_r as c,ng as l,pi as u,pp as d,xr as f}from"./entry.client-mpghtlrl.js";import{ut as p}from"./xds-react-components-ihgca01z.js";import{t as m}from"./DialogShell-ga7ic6wy.js";import{t as h}from"./useChangeGamertagStrings-g1ircyol.js";import{n as g,r as _}from"./routes-oel6fm83.js";var v=n(),y=e(u(),1),b=l(),x=c(e=>{let n=(0,v.c)(35),{handleDone:r,legacyGamertag:a,uniqueGamertag:o}=e,{t:s}=t(`ChangeGamertagDialog`),{locGotIt:c}=i(),{locModernGamertagItemSubtext:l,locLegacyGamertagItemSubtext:u}=h(),d;n[0]===s?d=n[1]:(d=s(`Success!`,{shortKey:`changegamertag_success_title`}),n[0]=s,n[1]=d);let g;n[2]===d?g=n[3]:(g={title:{text:d,sizeClassName:`type-section3`},containerClassName:`flex-1 items-center`},n[2]=d,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]===s?w=n[8]:(w=s(`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]=s,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]===l?E=n[12]:(E=l(),n[11]=l,n[12]=E);let D;n[13]!==o||n[14]!==E?(D=(0,b.jsx)(_,{label1:o,label2:E}),n[13]=o,n[14]=E,n[15]=D):D=n[15];let O;n[16]===u?O=n[17]:(O=u(),n[16]=u,n[17]=O);let k;n[18]!==a||n[19]!==O?(k=(0,b.jsx)(_,{label1:a,label2:O}),n[18]=a,n[19]=O,n[20]=k):k=n[20];let A;n[21]!==T||n[22]!==D||n[23]!==k?(A=(0,b.jsxs)(p,{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]===c?M=n[27]:(M=c(),n[26]=c,n[27]=M);let N;n[28]!==r||n[29]!==M?(N=(0,b.jsx)(`div`,{className:j,children:(0,b.jsx)(f,{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}=s(),{trackUserAction:t}=a(),{mutate:n}=o(e.mutations.goBack),r=d({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)(r,{location:`SuccessfulChangeGamertagScreen`,children:(0,b.jsx)(t,{})}),e[0]=t,e[1]=n),n};export{S as SuccessfulChangeGamertag};