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]=`92b15430-cb34-4ce8-b5eb-16b25771155a`,e._sentryDebugIdIdentifier=`sentry-dbid-92b15430-cb34-4ce8-b5eb-16b25771155a`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Ig as n,Og as r,dn as i,lh as a,mr as o,sh as s,zp as c}from"./entry.client-dr7r6s9a.js";import{t as l}from"./useEmitGameStreamDialogEvent-dljcy1v9.js";import{t as u}from"./useGameStreamDialogContext-ivl0rv5q.js";import{s as d}from"./PureInStreamConfirmationDialog.styles-f9kkr64u.js";import{t as f}from"./PureInStreamConfirmationDialog-ivf23uic.js";var p=e(n(),1),m=t(),h=i(f,()=>{let e=l(c.dialog.gameStream.streamIsReady.fullPath,`close`),{t}=a(`StreamIsReadyDialog`),{deviceInformation:n,gameStream:i}=s(),[{data:o,isLoading:f},{data:m,isLoading:h},{data:g,isLoading:_}]=r({queries:[n.queries.isMobile.getOptions(),n.queries.isTablet.getOptions(),i.queries.instance.getOptions()]}),v=f||h||_,y=(0,p.useCallback)(()=>{g?.session?.onPlayStreamGesture(),e()},[g?.session,e]),b={label:t(`{isTouchDevice, select, true {Tap to start playing} other {Click to start playing}}`,{shortKey:`other_5f21b7`,values:{isTouchDevice:o||m}}),onPress:y,kind:`brand`,size:`standard`,as:`button`},x=t(`Ready to play?`,{shortKey:`ready_play_3b8610`}),S=t(`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=o(()=>(0,m.jsx)(h.useComponent(),{}),`StreamIsReadyDialog`);export{g as StreamIsReadyDialog,g as default,h as StreamIsReadyDialogConnection};