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]=`14b0f027-4061-4e3c-a98e-758cdf50571f`,e._sentryDebugIdIdentifier=`sentry-dbid-14b0f027-4061-4e3c-a98e-758cdf50571f`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{rt as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Dn as r,Eg as i,Fg as a,cr as o,dn as s,k as c,or as l,sh as u}from"./entry.client-dr7r6s9a.js";import{Ct as d}from"./workspace-leaf-files-mc5sghv7.js";import{n as f}from"./DialogShell-k2jpaw9r.js";import{t as p}from"./GameSessionDetails-ecycyzpq.js";var m=a(),h=e(l(),1),g=n(),_=s(({invite:e,productInfo:t,hostProfile:n})=>{let{locInvitedYouToPlay:r}=c();return(0,g.jsx)(p.useComponent(),{productInfo:t,title:r(e.actor.gamertag.uniqueGamertag),expirationDateMS:e.expirationDateMS,session:{kind:`gameInvite`,host:n,payload:e.rawNotification,titleId:e.titleId}})},e=>{let{catalog:t,profile:n}=u(),{data:r}=i(t.queries.productInfosByAlternateId.detailed.getOptions({id:e.invite.titleId,idType:`XboxTitleId`})),{data:a}=i(n.queries.person.getActiveUserQuery().getOptions({xuid:e.invite.actor.xuid}));return{...e,productInfo:r[0],hostProfile:a}}),v=e=>{let n=(0,m.c)(15),{invite:i}=e,a=f.useComponent(),s=_.useComponent(),c;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={edge:`bottom`,centered:!0},n[0]=c):c=n[0];let l=t(c),u;n[1]===l?u=n[2]:(u=r(l),n[1]=l,n[2]=u);let p=u,v;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(v={default:!0,SM_20:!1},n[3]=v):v=n[3];let{data:y}=o(v),b=y?p:void 0,x=!y,S;n[4]!==x||n[5]!==y?(S=(0,h.default)(d,{"modal-floating":x,"modal-docked":y}),n[4]=x,n[5]=y,n[6]=S):S=n[6];let C;n[7]!==s||n[8]!==i?(C=(0,g.jsx)(s,{invite:i}),n[7]=s,n[8]=i,n[9]=C):C=n[9];let w;return n[10]!==a||n[11]!==S||n[12]!==b||n[13]!==C?(w=(0,g.jsx)(a,{className:S,positionStyle:b,children:C}),n[10]=a,n[11]=S,n[12]=b,n[13]=C,n[14]=w):w=n[14],w};export{v as GameInviteDialog,v as default};