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]=`a122839b-1a51-49e6-a65b-ad2e64faf711`,e._sentryDebugIdIdentifier=`sentry-dbid-a122839b-1a51-49e6-a65b-ad2e64faf711`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Dg as n,Fg as r,Ig as i,dn as a,eh as o,lh as s,mr as c,sh as l,wg as u}from"./entry.client-dr7r6s9a.js";import{t as d}from"./useMatchMedia-ou8sntjn.js";import{t as f}from"./useGameStreamDialogContext-ivl0rv5q.js";import{s as p}from"./PureInStreamConfirmationDialog.styles-f9kkr64u.js";import{t as m}from"./PureInStreamConfirmationDialog-ivf23uic.js";var h=e(i(),1),g=r();function _(){let e=(0,g.c)(6),{gameStream:t}=l(),r=d(`(display-mode: fullscreen)`),i;e[0]!==r||e[1]!==t.queries.isFullscreen?(i=t.queries.isFullscreen.getOptions({isDisplayModeFullscreen:r}),e[0]=r,e[1]=t.queries.isFullscreen,e[2]=i):i=e[2];let{data:a}=n(i),{mutateAsync:o}=u(t.mutations.toggleFullscreen),s=!!a,c;return e[3]!==s||e[4]!==o?(c=[s,o],e[3]=s,e[4]=o,e[5]=c):c=e[5],c}var v=t(),y=a(m,()=>{let{t:e}=s(`ExitFullscreenDialog`),{dialog:t}=l(),{mutate:n}=u(t.mutations.goBack),[r,i]=_(),a=(0,h.useCallback)(()=>{n(),r||i()},[n,r,i]),c={label:e(`Return to fullscreen`,{shortKey:`fullscreen_return_62b2b4`}),onPress:a,kind:`brand`,size:`standard`,as:`button`},d=(0,h.useCallback)(()=>{n()},[n]),m={label:e(`Exit fullscreen`,{shortKey:`fullscreen_exit_b7c93d`}),kind:`standard`,size:`standard`,as:`button`,onPress:d},{locWarning:g}=o(),v=g(),y=e(`Exiting fullscreen mode can degrade the gameplay experience`,{shortKey:`fullscreen_experience_2f6029`}),{setDialogShellProps:b}=f(),x={accessibleTitle:v,accessibleDescription:y,dismissable:!0,className:p,autoHeight:!0};return(0,h.useEffect)(()=>{b(x)},[x,b]),{locTitle:v,locDescription:y,button1Props:c,button2Props:m}}),b=c(()=>(0,v.jsx)(y.useComponent(),{}),`ExitFullscreenDialog`);export{b as ExitFullscreenDialog,b as default,y as ExitFullscreenDialogConnection};