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]=`01c9c450-9cc7-4194-959d-17b9c91c548c`,e._sentryDebugIdIdentifier=`sentry-dbid-01c9c450-9cc7-4194-959d-17b9c91c548c`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{$m as e,Ag as t,Qm as n,Yh as r,Zh as i,Zm as a,_r as o,ng as s}from"./entry.client-mpghtlrl.js";import{t as c}from"./Switch-kh4wjj0c.js";import{t as l}from"./TabContentLayout-c956lcpz.js";var u=t(),d=s(),f=o(t=>{let n=(0,u.c)(6),{handleChange:r,isChecked:i}=t,{t:a}=e(`SettingsStreamingTab`),o;n[0]===a?o=n[1]:(o=a(`Network quality indicator`,{shortKey:`NetworkQualityIndicator_switch_label`}),n[0]=a,n[1]=o);let s;return n[2]!==i||n[3]!==o||n[4]!==r?(s=(0,d.jsx)(c,{isChecked:i,label:o,handleChange:r}),n[2]=i,n[3]=o,n[4]=r,n[5]=s):s=n[5],s},()=>{let{settings:{queries:{networkQualityIndicatorEnabledSetting:e},mutations:{setNetworkQualityIndicatorEnabledSetting:t}}}=a(),{data:o}=i(e.getOptions()),{mutate:s}=r(t.getOptions()),{trackUserAction:c}=n();return{handleChange:e=>{c(`NetworkQualityIndicatorToggle`,{newValue:e},`Change`),s({settingValue:e})},isChecked:o}}),p=o(t=>{let n=(0,u.c)(6),{handleChange:r,isChecked:i}=t,{t:a}=e(`SettingsStreamingTab`),o;n[0]===a?o=n[1]:(o=a(`Streaming statistics overlay`,{shortKey:`StreamStatistics_switch_label`}),n[0]=a,n[1]=o);let s;return n[2]!==i||n[3]!==o||n[4]!==r?(s=(0,d.jsx)(c,{isChecked:i,label:o,handleChange:r}),n[2]=i,n[3]=o,n[4]=r,n[5]=s):s=n[5],s},()=>{let{settings:{queries:{streamStatisticsEnabledSetting:e},mutations:{setStreamStatisticsEnabledSetting:t}}}=a(),{data:o}=i(e.getOptions()),{mutate:s}=r(t.getOptions()),{trackUserAction:c}=n();return{handleChange:e=>{c(`StreamStatisticsToggle`,{newValue:e},`Change`),s({settingValue:e})},isChecked:o}}),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};