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]=`ac0fa4dc-eb7c-4fa2-afd1-4143d098fe2f`,e._sentryDebugIdIdentifier=`sentry-dbid-ac0fa4dc-eb7c-4fa2-afd1-4143d098fe2f`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Fg as t,Ig as n,Og as r,eh as i,lh as a,sh as o,wg as s}from"./entry.client-dr7r6s9a.js";import{o as c}from"./stream-gate-hooks-fa9kj8pw.js";var l=t(),u=e(n(),1),d=()=>{let e=(0,l.c)(22),t=c(),{dialog:n,settings:d}=o(),f=n.keys.confirmation.fullPath,p;e[0]===d.queries.hasSeenNoLocalMultiplayerDialogSetting?p=e[1]:(p=d.queries.hasSeenNoLocalMultiplayerDialogSetting.getOptions(),e[0]=d.queries.hasSeenNoLocalMultiplayerDialogSetting,e[1]=p);let m;e[2]!==f||e[3]!==n.queries.isDialogOpen?(m=n.queries.isDialogOpen.getOptions({key:f}),e[2]=f,e[3]=n.queries.isDialogOpen,e[4]=m):m=e[4];let h;e[5]!==p||e[6]!==m?(h={queries:[p,m]},e[5]=p,e[6]=m,e[7]=h):h=e[7];let[g,_]=r(h),{data:v,isLoading:y}=g,{data:b,isLoading:x}=_,{mutate:S}=s(n.mutations.open),{mutate:C}=s(d.mutations.setHasSeenNoLocalMultiplayerDialogSetting),{t:w}=a(`NoLocalMultiplayerDialog`),{locGotIt:T}=i(),E;e[8]===C?E=e[9]:(E=()=>{C({settingValue:!0})},e[8]=C,e[9]=E);let D=E,O,k;e[10]!==b||e[11]!==x||e[12]!==y||e[13]!==v||e[14]!==t.length||e[15]!==S||e[16]!==f||e[17]!==w||e[18]!==T||e[19]!==D?(O=()=>{!b&&!x&&!y&&!v&&t.length>1&&S({key:f,props:{title:w(`Cloud gaming only supports one account at a time`,{shortKey:`nolocalmultiplayerdialog_supports_account_gaming_313c4c`}),prompt:w(`Because you've connected multiple controllers, just a heads up that local multiplayer isn't available at the moment.`,{shortKey:`nolocalmultiplayerdialog_controllers_multiplayer_58b4ec`}),firstButton:{text:T(),kind:`brand`,size:`standard`,onPress:D}}})},k=[f,t.length,v,b,x,y,T,D,S,w],e[10]=b,e[11]=x,e[12]=y,e[13]=v,e[14]=t.length,e[15]=S,e[16]=f,e[17]=w,e[18]=T,e[19]=D,e[20]=O,e[21]=k):(O=e[20],k=e[21]),(0,u.useEffect)(O,k)};export{d as t};