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]=`82059ea7-878f-44f4-92cf-039cca1efb5f`,e._sentryDebugIdIdentifier=`sentry-dbid-82059ea7-878f-44f4-92cf-039cca1efb5f`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{E as t,rt as n}from"./xds-react-components-lks62tbl.js";import{Ag as r,Dn as i,Fg as a,U as o,cr as s,dn as c,eh as l,lh as u,or as d}from"./entry.client-dr7r6s9a.js";import{It as f,Lt as p,Rt as m,Tn as h,ar as g}from"./xds-icons-d7khcnpi.js";import{n as _,t as v}from"./DialogShell-k2jpaw9r.js";var y=a(),b=e(d(),1),x=r(),S=c(e=>{let n=(0,y.c)(49),{isCloudGamingCompatible:r,isXboxOneCompatible:i,isXboxSeriesCompatible:a,isPCCompatible:o,isXbox360Compatible:s,capabilities:c}=e,{t:d}=u(`PurePlayableOnCapabilities`),{locPlayableOn:_,locCapabilities:S}=l(),w;n[0]===_?w=n[1]:(w=_(),n[0]=_,n[1]=w);let T;n[2]===w?T=n[3]:(T={title:{text:w,sizeClassName:`type-title2`}},n[2]=w,n[3]=T);let E=T,D;n[4]===S?D=n[5]:(D=S(),n[4]=S,n[5]=D);let O;n[6]===D?O=n[7]:(O={title:{text:D,sizeClassName:`type-title2`}},n[6]=D,n[7]=O);let k=O,A;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,b.default)(`gap !mb-0 !mt-0 flex flex-col items-start gap-layout-vertical-related-content-in-a-section-loose self-stretch !pt-0 [--scrollbar-track-margin-top:var(--modal-spacing)]`),n[8]=A):A=n[8];let j;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,b.default)(`!px-0`),n[9]=j):j=n[9];let M;n[10]===E?M=n[11]:(M=(0,x.jsx)(v.NavigationHeader,{showClose:!0,title:E,className:j}),n[10]=E,n[11]=M);let N;n[12]!==r||n[13]!==d?(N=r&&(0,x.jsx)(t,{label:d(`Cloud Gaming`,{shortKey:`cloud_gaming_38856e`}),icon:(0,x.jsx)(h,{})}),n[12]=r,n[13]=d,n[14]=N):N=n[14];let P;n[15]!==i||n[16]!==d?(P=i&&(0,x.jsx)(t,{label:d(`Xbox One`,{shortKey:`xbox_one_7b6ae7`}),icon:(0,x.jsx)(p,{})}),n[15]=i,n[16]=d,n[17]=P):P=n[17];let F;n[18]!==a||n[19]!==d?(F=a&&(0,x.jsx)(t,{label:d(`Xbox Series X|S`,{shortKey:`xbox_series_xs_4a520d`}),icon:(0,x.jsx)(f,{})}),n[18]=a,n[19]=d,n[20]=F):F=n[20];let I;n[21]!==o||n[22]!==d?(I=o&&(0,x.jsx)(t,{label:d(`PC`,{shortKey:`pc_6582cd`}),icon:(0,x.jsx)(g,{})}),n[21]=o,n[22]=d,n[23]=I):I=n[23];let L;n[24]!==s||n[25]!==d?(L=s&&(0,x.jsx)(t,{label:d(`Xbox 360`,{shortKey:`xbox_360_6e499f`}),icon:(0,x.jsx)(m,{})}),n[24]=s,n[25]=d,n[26]=L):L=n[26];let R;n[27]!==N||n[28]!==P||n[29]!==F||n[30]!==I||n[31]!==L?(R=(0,x.jsxs)(`div`,{className:`flex w-full flex-row flex-wrap gap-2`,children:[N,P,F,I,L]}),n[27]=N,n[28]=P,n[29]=F,n[30]=I,n[31]=L,n[32]=R):R=n[32];let z;n[33]!==M||n[34]!==R?(z=(0,x.jsxs)(`div`,{className:`w-full`,children:[M,R]}),n[33]=M,n[34]=R,n[35]=z):z=n[35];let B;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,b.default)(`!px-0`),n[36]=B):B=n[36];let V;n[37]===k?V=n[38]:(V=(0,x.jsx)(v.NavigationHeader,{title:k,className:B}),n[37]=k,n[38]=V);let H;n[39]===c?H=n[40]:(H=c?.map(C),n[39]=c,n[40]=H);let U;n[41]===H?U=n[42]:(U=(0,x.jsx)(`div`,{className:`flex w-full flex-row flex-wrap gap-2`,children:H}),n[41]=H,n[42]=U);let W;n[43]!==V||n[44]!==U?(W=(0,x.jsxs)(`div`,{className:`w-full`,children:[V,U]}),n[43]=V,n[44]=U,n[45]=W):W=n[45];let G;return n[46]!==z||n[47]!==W?(G=(0,x.jsxs)(v.ScrollContainer,{className:A,children:[z,W]}),n[46]=z,n[47]=W,n[48]=G):G=n[48],G},e=>({...e}));function C(e,n){return(0,x.jsx)(t,{label:e},`capability_${n}`)}var w=e=>{let t=(0,y.c)(16),r=_.useComponent(),a=S.useComponent(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={edge:`bottom`,centered:!0},t[0]=c):c=t[0];let u=n(c),d;t[1]===u?d=t[2]:(d=i(u),t[1]=u,t[2]=d);let f=d,p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p={default:!0,SM_25:!1},t[3]=p):p=t[3];let{data:m}=s(p),h=m?f:void 0,{locPlayableOn:g,locCapabilities:v}=l(),b=`${g()} - ${v()}`,C=!m,w;t[4]!==C||t[5]!==m?(w=o(`modal-generic modal-floating flex flex-col`,`border-container-backgrounds-elevation-border-level-4`,`shadow-container-backgrounds-elevation-background-level-4`,`bg-container-backgrounds-elevation-background-level-4`,{"modal-floating w-template-overlays-modal-size-medium-width-centered h-template-overlays-modal-size-large-height-centered":C,"modal-docked w-template-overlays-modal-size-large-width-slidesheet h-template-overlays-modal-size-large-height-slidesheet":m},`xsl-10:(w-template-overlays-modal-size-medium-width-slidesheet h-[317px])`,`density-low:(sm-25:h-[532px] md-20:h-[478px] lg-10:h-[440px] xl-10:h-[648px] xl-20:h-[600px])`,`density-high:(sm-25:h-[320px] md-20:h-[360px] lg-10:h-[376px] xl-10:h-[336px])`),t[4]=C,t[5]=m,t[6]=w):w=t[6];let T;t[7]!==a||t[8]!==e?(T=(0,x.jsx)(a,{...e}),t[7]=a,t[8]=e,t[9]=T):T=t[9];let E;return t[10]!==r||t[11]!==h||t[12]!==w||t[13]!==b||t[14]!==T?(E=(0,x.jsx)(r,{autoHeight:!0,positionStyle:h,className:w,accessibleTitle:b,children:T}),t[10]=r,t[11]=h,t[12]=w,t[13]=b,t[14]=T,t[15]=E):E=t[15],E};export{w as PlayableOnCapabilitiesDialog,w as default};