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]=`6b80c1e3-8aad-41f9-b777-dc143c0dc62c`,e._sentryDebugIdIdentifier=`sentry-dbid-6b80c1e3-8aad-41f9-b777-dc143c0dc62c`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Ag as e,Eg as t,Fg as n,ch as r,dn as i,lh as a,sh as o,wg as s}from"./entry.client-dr7r6s9a.js";import{t as c}from"./Switch-7x9agj32.js";import{t as l}from"./TabContentLayout-ltqqpnab.js";var u=n(),d=e(),f=i(e=>{let t=(0,u.c)(6),{handleChange:n,isChecked:r}=e,{t:i}=a(`SettingsStreamingTab`),o;t[0]===i?o=t[1]:(o=i(`Network quality indicator`,{shortKey:`NetworkQualityIndicator_switch_label`}),t[0]=i,t[1]=o);let s;return t[2]!==r||t[3]!==o||t[4]!==n?(s=(0,d.jsx)(c,{isChecked:r,label:o,handleChange:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=s):s=t[5],s},()=>{let{settings:{queries:{networkQualityIndicatorEnabledSetting:e},mutations:{setNetworkQualityIndicatorEnabledSetting:n}}}=o(),{data:i}=t(e.getOptions()),{mutate:a}=s(n.getOptions()),{trackUserAction:c}=r();return{handleChange:e=>{c(`NetworkQualityIndicatorToggle`,{newValue:e},`Change`),a({settingValue:e})},isChecked:i}}),p=i(e=>{let t=(0,u.c)(6),{handleChange:n,isChecked:r}=e,{t:i}=a(`SettingsStreamingTab`),o;t[0]===i?o=t[1]:(o=i(`Streaming statistics overlay`,{shortKey:`StreamStatistics_switch_label`}),t[0]=i,t[1]=o);let s;return t[2]!==r||t[3]!==o||t[4]!==n?(s=(0,d.jsx)(c,{isChecked:r,label:o,handleChange:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=s):s=t[5],s},()=>{let{settings:{queries:{streamStatisticsEnabledSetting:e},mutations:{setStreamStatisticsEnabledSetting:n}}}=o(),{data:i}=t(e.getOptions()),{mutate:a}=s(n.getOptions()),{trackUserAction:c}=r();return{handleChange:e=>{c(`StreamStatisticsToggle`,{newValue:e},`Change`),a({settingValue:e})},isChecked:i}}),m=()=>{let e=(0,u.c)(7),t=f.useComponent(),n=p.useComponent(),r;e[0]===t?r=e[1]:(r=(0,d.jsx)(t,{}),e[0]=t,e[1]=r);let i;e[2]===n?i=e[3]:(i=(0,d.jsx)(n,{}),e[2]=n,e[3]=i);let a;return e[4]!==r||e[5]!==i?(a=(0,d.jsxs)(l,{telemetryLocation:`StreamingTab`,children:[r,i]}),e[4]=r,e[5]=i,e[6]=a):a=e[6],a};export{m as StreamingTab};