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]=`5fcadde3-fd5a-4c3b-92d2-a27df05556da`,e._sentryDebugIdIdentifier=`sentry-dbid-5fcadde3-fd5a-4c3b-92d2-a27df05556da`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Hm as r,Oi as i,Qh as a,Um as o,Un as s,Zm as c,jg as l,ng as u,pi as d,xr as f,yt as p}from"./entry.client-mpghtlrl.js";import{H as m}from"./xds-icons-m106f2fc.js";import{t as h}from"./DialogShell-ga7ic6wy.js";import{t as g}from"./useGameStreamDialogContext-orgnly77.js";var _=e(l(),1),v=e(d(),1),y=n(),b=u(),x=e=>{let t=(0,y.c)(6),{onPress:n,className:i}=e,{locContinueAnyway:a}=r(),o;t[0]===a?o=t[1]:(o=a(),t[0]=a,t[1]=o);let s=o,c;return t[2]!==i||t[3]!==n||t[4]!==s?(c=(0,b.jsx)(f,{className:i,kind:`standard`,size:`standard`,as:`button`,alignment:`center`,onPress:n,children:s}),t[2]=i,t[3]=n,t[4]=s,t[5]=c):c=t[5],c},S=e=>{let n=(0,y.c)(5),{className:r}=e,{t:i}=t(`TakTooSmallDialog`),a;n[0]===i?a=n[1]:(a=i(`Learn more`,{shortKey:`learn_more_52aefc`}),n[0]=i,n[1]=a);let o;return n[2]!==r||n[3]!==a?(o=(0,b.jsx)(f,{kind:`brand`,size:`standard`,as:`a`,alignment:`center`,href:s,target:`_blank`,className:r,children:a}),n[2]=r,n[3]=a,n[4]=o):o=n[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:n}=g(),{t:r}=t(`TakTooSmallDialog`),i=r(`It's a little cramped in here`,{shortKey:`cramped_little_here_654f6e`}),a=r(`To use touch controls, maximize your window or use a bigger screen`,{shortKey:`controls_maximize_window_40cdde`}),o={accessibleTitle:i,accessibleDescription:a,dimBackground:!0,dismissable:!0,onWillClose:e,className:p(`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)(()=>{n(o)},[o,n]),(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:i}),(0,b.jsx)(`p`,{className:`items-center bg-noninteractive-content-secondary-background text-noninteractive-content-secondary-content type-body`,children:a}),(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=i(()=>{let{gameStream:e}=c(),t=o().getLogger(`TakTooSmallDialog`),{data:n}=a(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,x as n,S as t};