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]=`b55224e8-bd58-40ed-abcc-d26bb4478a51`,e._sentryDebugIdIdentifier=`sentry-dbid-b55224e8-bd58-40ed-abcc-d26bb4478a51`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Fr as n,H as r,Zh as i,Zm as a,_r as o,hi as s,ng as c,pi as l}from"./entry.client-mpghtlrl.js";import{ft as u}from"./xds-react-components-ihgca01z.js";import{Dt as d}from"./workspace-leaf-files-oergw4h0.js";import{n as f}from"./DialogShell-ga7ic6wy.js";import{t as p}from"./GameSessionDetails-lrb45wq3.js";var m=t(),h=e(l(),1),g=c(),_=o(({invite:e,productInfo:t,hostProfile:n})=>{let{locInvitedYouToPlay:i}=r();return(0,g.jsx)(p.useComponent(),{productInfo:t,title:i(e.actor.gamertag.uniqueGamertag),expirationDateMS:e.expirationDateMS,session:{kind:`gameInvite`,host:n,payload:e.rawNotification,titleId:e.titleId}})},e=>{let{catalog:t,profile:n}=a(),{data:r}=i(t.queries.productInfosByAlternateId.detailed.getOptions({id:e.invite.titleId,idType:`XboxTitleId`})),{data:o}=i(n.queries.person.getActiveUserQuery().getOptions({xuid:e.invite.actor.xuid}));return{...e,productInfo:r[0],hostProfile:o}}),v=e=>{let t=(0,m.c)(15),{invite:r}=e,i=f.useComponent(),a=_.useComponent(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={edge:`bottom`,centered:!0},t[0]=o):o=t[0];let c=u(o),l;t[1]===c?l=t[2]:(l=n(c),t[1]=c,t[2]=l);let p=l,v;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(v={default:!0,SM_20:!1},t[3]=v):v=t[3];let{data:y}=s(v),b=y?p:void 0,x=!y,S;t[4]!==x||t[5]!==y?(S=(0,h.default)(d,{"modal-floating":x,"modal-docked":y}),t[4]=x,t[5]=y,t[6]=S):S=t[6];let C;t[7]!==a||t[8]!==r?(C=(0,g.jsx)(a,{invite:r}),t[7]=a,t[8]=r,t[9]=C):C=t[9];let w;return t[10]!==i||t[11]!==S||t[12]!==b||t[13]!==C?(w=(0,g.jsx)(i,{className:S,positionStyle:b,children:C}),t[10]=i,t[11]=S,t[12]=b,t[13]=C,t[14]=w):w=t[14],w};export{v as GameInviteDialog,v as default};