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]=`e6bd12c2-0205-4db2-828e-c7e5f6a04aba`,e._sentryDebugIdIdentifier=`sentry-dbid-e6bd12c2-0205-4db2-828e-c7e5f6a04aba`)}catch{}import{Ag as e,ng as t,v as n,y as r}from"./entry.client-mpghtlrl.js";import{M as i}from"./xds-react-components-ihgca01z.js";import{$t as a,Ir as o,Jt as s,Nr as c,Qt as l,Xt as u,Yt as d,Zt as f,jr as p,ln as m,on as h}from"./xds-icons-m106f2fc.js";var g=e(),_={share:m,store:f,info:r,warning:n,xboxseriesx:s,xboxseriesxs:s,xboxonex:d,xboxone:d,pc1:h,pc:h,xbox360:u,cloud:o,controllersettings:a,controllerinput:c,mouseandkeyboardinput:l,touchinput:p},v=e=>{let t=e?.trim().toLowerCase();return t?_[t]:void 0},y=t(),b=e=>{let t=(0,g.c)(4),{tags:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(x),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,y.jsx)(`ul`,{className:`m-0 flex w-full list-none flex-row flex-wrap gap-layout-horizontal-gutter p-0`,children:r}),t[2]=r,t[3]=i),i};function x(e){let t=v(e.icon);return(0,y.jsx)(`li`,{children:(0,y.jsx)(i,{label:e.label,icon:t?(0,y.jsx)(t,{}):void 0})},e.label)}var S=e=>{let t=(0,g.c)(7),{data:n}=e;if(n.tags.length===0)return null;let r;t[0]===n.title?r=t[1]:(r=(0,y.jsx)(`h5`,{className:`text-noninteractive-content-primary-content type-title3`,children:n.title}),t[0]=n.title,t[1]=r);let i;t[2]===n.tags?i=t[3]:(i=(0,y.jsx)(b,{tags:n.tags}),t[2]=n.tags,t[3]=i);let a;return t[4]!==r||t[5]!==i?(a=(0,y.jsxs)(`div`,{className:`flex flex-col gap-layout-vertical-group-of-items-regular`,children:[r,i]}),t[4]=r,t[5]=i,t[6]=a):a=t[6],a},C=e=>{let t=(0,g.c)(10),{playableOn:n,playableWith:r,capabilities:i}=e,a;t[0]===n?a=t[1]:(a=n&&(0,y.jsx)(S,{data:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r&&(0,y.jsx)(S,{data:r}),t[2]=r,t[3]=o);let s;t[4]===i?s=t[5]:(s=i&&(0,y.jsx)(S,{data:i}),t[4]=i,t[5]=s);let c;return t[6]!==a||t[7]!==o||t[8]!==s?(c=(0,y.jsxs)(`div`,{className:`flex w-full flex-col gap-layout-vertical-group-of-items-regular`,children:[a,o,s]}),t[6]=a,t[7]=o,t[8]=s,t[9]=c):c=t[9],c};export{v as n,C as t};