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]=`302f80d9-9964-4aa2-878e-7706d644b128`,e._sentryDebugIdIdentifier=`sentry-dbid-302f80d9-9964-4aa2-878e-7706d644b128`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Oi as n,Qh as r,Yh as i,Zm as a,_r as o,jg as s,ng as c}from"./entry.client-mpghtlrl.js";import{t as l}from"./useGameStreamDialogContext-orgnly77.js";import{s as u}from"./PureInStreamConfirmationDialog.styles-deafeydi.js";import{t as d}from"./PureInStreamConfirmationDialog-k0il2d8x.js";var f=e(s(),1),p=c(),m=o(d,()=>{let{t:e}=t(`IdleWarningDialog`),{gameStream:n,dialog:o}=a(),{data:s}=r(n.queries.instance.getOptions()),{mutate:c}=i(o.mutations.goBack),d=(0,f.useCallback)(()=>{s?.session?.sendKeepAlive(),c()},[s,c]),p={label:e(`I'm still here`,{shortKey:`still_here_im_3429e4`}),onPress:d,kind:`brand`,size:`standard`,as:`button`},m=e(`Are you still here?`,{shortKey:`still_here_you_14d69a`}),h=e(`Due to inactivity, your game streaming session will end soon.`,{shortKey:`inactivity_streaming_ses_3d2e6a`}),{setDialogShellProps:g}=l(),_={accessibleTitle:m,accessibleDescription:h,dismissable:!1,className:u,autoHeight:!0};return(0,f.useEffect)(()=>{g(_)},[_,g]),{locTitle:m,locDescription:h,button1Props:p}}),h=n(()=>(0,p.jsx)(m.useComponent(),{}),`IdleWarningDialog`);export{h as IdleWarningDialog,h as default,m as IdleWarningDialogConnection};