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]=`bbd26509-ae72-4400-a58f-61cc65c058ab`,e._sentryDebugIdIdentifier=`sentry-dbid-bbd26509-ae72-4400-a58f-61cc65c058ab`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Bt as n,Dg as r,Fg as i,Ig as a,U as o,eh as s,hn as c,lh as l,mr as u,or as d,sh as f,th as p}from"./entry.client-dr7r6s9a.js";import{et as m}from"./xds-icons-d7khcnpi.js";import{t as h}from"./DialogShell-k2jpaw9r.js";import{t as g}from"./useGameStreamDialogContext-ivl0rv5q.js";var _=e(a(),1),v=e(d(),1),y=i(),b=t(),x=e=>{let t=(0,y.c)(6),{onPress:n,className:r}=e,{locContinueAnyway:i}=s(),a;t[0]===i?a=t[1]:(a=i(),t[0]=i,t[1]=a);let o=a,l;return t[2]!==r||t[3]!==n||t[4]!==o?(l=(0,b.jsx)(c,{className:r,kind:`standard`,size:`standard`,as:`button`,alignment:`center`,onPress:n,children:o}),t[2]=r,t[3]=n,t[4]=o,t[5]=l):l=t[5],l},S=e=>{let t=(0,y.c)(5),{className:r}=e,{t:i}=l(`TakTooSmallDialog`),a;t[0]===i?a=t[1]:(a=i(`Learn more`,{shortKey:`learn_more_52aefc`}),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a?(o=(0,b.jsx)(c,{kind:`brand`,size:`standard`,as:`a`,alignment:`center`,href:n,target:`_blank`,className:r,children:a}),t[2]=r,t[3]=a,t[4]=o):o=t[4],o},C=(0,v.default)(`flex items-center justify-center gap-[8px] self-stretch`,`min-w-component-action-text-standard-min-width`,`py-component-action-text-standard-container-padding-top-and-bottom`,`px-internal-container-padding-regular`),w=({onContinueAnyway:e})=>{let{setDialogShellProps:t}=g(),{t:n}=l(`TakTooSmallDialog`),r=n(`It's a little cramped in here`,{shortKey:`cramped_little_here_654f6e`}),i=n(`To use touch controls, maximize your window or use a bigger screen`,{shortKey:`controls_maximize_window_40cdde`}),a={accessibleTitle:r,accessibleDescription:i,dimBackground:!0,dismissable:!0,onWillClose:e,className:o(`w-template-overlays-modal-size-small-width-compact`,`h-[396px] xs-20:h-[420px] sm-10:h-[420px]`,`density-low:(sm-25:h-[532px])`,`density-high:(sm-25:h-[460px])`,`rounded-lg bg-container-backgrounds-elevation-background-level-2`)};return(0,_.useEffect)(()=>{t(a)},[a,t]),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(`div`,{className:(0,v.default)(`flex flex-col items-center justify-center`,`py-template-overlays-modal-container-padding-2-top-&-bottom`),children:(0,b.jsx)(h.ScrollContainer,{className:(0,v.default)(`flex flex-col items-start self-stretch sbar`,`px-template-overlays-modal-container-padding-2-left-&-right`),children:(0,b.jsxs)(`div`,{className:(0,v.default)(`flex flex-col items-center self-stretch`,`gap-layout-vertical-group-of-items-regular`),children:[(0,b.jsx)(`div`,{className:(0,v.default)(`flex aspect-square items-center justify-center`,`w-template-illustration-medium`,`h-[176px]`,`p-[22px]`),children:(0,b.jsx)(m,{className:`flex aspect-square h-[88px] w-[88px] items-start text-noninteractive-content-primary-content`})}),(0,b.jsx)(`div`,{className:`flex flex-col items-center gap-layout-vertical-related-content-in-a-section-tight self-stretch`,children:(0,b.jsxs)(`div`,{className:`flex flex-col items-center gap-layout-vertical-group-of-items-tight self-stretch text-center`,children:[(0,b.jsx)(`div`,{className:`flex items-center justify-center self-stretch bg-noninteractive-content-primary-background text-noninteractive-content-primary-content type-title3`,children:r}),(0,b.jsx)(`p`,{className:`items-center bg-noninteractive-content-secondary-background text-noninteractive-content-secondary-content type-body`,children:i}),(0,b.jsxs)(`div`,{className:`max-w-template-states-button-group-max-width flex flex-col items-center justify-center gap-layout-vertical-group-of-items-regular self-stretch`,children:[(0,b.jsx)(S,{className:C}),(0,b.jsx)(x,{className:C,onPress:e})]})]})})]})})})})},T=u(()=>{let{gameStream:e}=f(),t=p().getLogger(`TakTooSmallDialog`),{data:n}=r(e.queries.instance.getOptions());return(0,b.jsx)(w,{onContinueAnyway:()=>{if(!n){t.warn(`Game stream instance is not available.`);return}n.tak.config.onHideTakTooSmall()}})},`TakTooSmallDialog`);export{w as PureTakTooSmallDialog,T as TakTooSmallDialog,T as default};