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]=`d802e848-df70-4d05-825a-afa8868d54ab`,e._sentryDebugIdIdentifier=`sentry-dbid-d802e848-df70-4d05-825a-afa8868d54ab`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$h as t,$m as n,Oi as r,Zm as i,_r as a,jg as o,ng as s,op as c}from"./entry.client-mpghtlrl.js";import{t as l}from"./useEmitGameStreamDialogEvent-m3jw3fvd.js";import{t as u}from"./useGameStreamDialogContext-orgnly77.js";import{s as d}from"./PureInStreamConfirmationDialog.styles-deafeydi.js";import{t as f}from"./PureInStreamConfirmationDialog-k0il2d8x.js";var p=e(o(),1),m=s(),h=a(f,()=>{let e=l(c.dialog.gameStream.streamIsReady.fullPath,`close`),{t:r}=n(`StreamIsReadyDialog`),{deviceInformation:a,gameStream:o}=i(),[{data:s,isLoading:f},{data:m,isLoading:h},{data:g,isLoading:_}]=t({queries:[a.queries.isMobile.getOptions(),a.queries.isTablet.getOptions(),o.queries.instance.getOptions()]}),v=f||h||_,y=(0,p.useCallback)(()=>{g?.session?.onPlayStreamGesture(),e()},[g?.session,e]),b={label:r(`{isTouchDevice, select, true {Tap to start playing} other {Click to start playing}}`,{shortKey:`other_5f21b7`,values:{isTouchDevice:s||m}}),onPress:y,kind:`brand`,size:`standard`,as:`button`},x=r(`Ready to play?`,{shortKey:`ready_play_3b8610`}),S=r(`Your stream is ready.`,{shortKey:`stream_ready_200a0d`}),{setDialogShellProps:C}=u(),w={accessibleTitle:x,accessibleDescription:S,dismissable:!1,className:d,autoHeight:!0};return(0,p.useEffect)(()=>{C(w)},[w,C]),{locTitle:x,locDescription:S,button1Props:b,isLoading:v}}),g=r(()=>(0,m.jsx)(h.useComponent(),{}),`StreamIsReadyDialog`);export{g as StreamIsReadyDialog,g as default,h as StreamIsReadyDialogConnection};