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]=`3a8da3dc-2a2a-4399-abb6-3024eb217529`,e._sentryDebugIdIdentifier=`sentry-dbid-3a8da3dc-2a2a-4399-abb6-3024eb217529`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Dg as n,Ig as r,dn as i,lh as a,mr as o,sh as s,wg as c}from"./entry.client-dr7r6s9a.js";import{t as l}from"./useGameStreamDialogContext-ivl0rv5q.js";import{s as u}from"./PureInStreamConfirmationDialog.styles-f9kkr64u.js";import{t as d}from"./PureInStreamConfirmationDialog-ivf23uic.js";var f=e(r(),1),p=t(),m=i(d,()=>{let{t:e}=a(`IdleWarningDialog`),{gameStream:t,dialog:r}=s(),{data:i}=n(t.queries.instance.getOptions()),{mutate:o}=c(r.mutations.goBack),d=(0,f.useCallback)(()=>{i?.session?.sendKeepAlive(),o()},[i,o]),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=o(()=>(0,p.jsx)(m.useComponent(),{}),`IdleWarningDialog`);export{h as IdleWarningDialog,h as default,m as IdleWarningDialogConnection};