import{E as e,M as t,W as n}from"./SdXlftKS.js";import{c as r,d as i,f as a,i as o,l as s,m as c,o as l,p as u,r as d,u as f}from"./_v7-ePgP.js";const p=t(`config`,()=>{let t=e(`theme`,`sunset`),p=e(`autoSwitchTheme`,!1),m=e(`favDayTheme`,`nord`),h=e(`favNightTheme`,`sunset`),g=e(`proxiesPreviewType`,u.Auto),_=e(`proxiesOrderingType`,a.NATURAL),v=e(`proxiesDisplayMode`,i.CARD),y=e(`renderProxiesInTwoColumns`,!0),b=e(`hideUnAvailableProxies`,!1),x=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),S=e(`autoCloseConns`,!0),C=e(`latencyTestTimeoutDuration`,5e3),w=e(`iconHeight`,24),T=e(`iconMarginRight`,8),E=e(`autoSwitchEndpoint`,!1),D=e(`enableTwemoji`,!1),O=e(`sidebarExpanded`,!1),k=e(`connectionsTableSize`,c.XS),A=e(`connectionsTableColumnVisibility`,o),j=e(`connectionsTableColumnOrder`,d),M=e(`logsTableSize`,c.XS),N=e(`logLevel`,f.Info),P=e(`logMaxRows`,l),F=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),I=e(`clientSourceIPTags`,[]),L=e(`showNetworkTopology`,!1),R=n(()=>x.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:p,favDayTheme:m,favNightTheme:h,proxiesPreviewType:g,proxiesOrderingType:_,proxiesDisplayMode:v,renderProxiesInTwoColumns:y,hideUnAvailableProxies:b,urlForLatencyTest:x,autoCloseConns:S,latencyTestTimeoutDuration:C,iconHeight:w,iconMarginRight:T,autoSwitchEndpoint:E,enableTwemoji:D,sidebarExpanded:O,connectionsTableSize:k,connectionsTableColumnVisibility:A,connectionsTableColumnOrder:j,quickFilterRegex:F,logsTableSize:M,logLevel:N,logMaxRows:P,clientSourceIPTags:I,showNetworkTopology:L,isLatencyTestByHttps:R,latencyQualityMap:n(()=>R.value?s:r),tableSizeClassName:e=>({[c.XS]:`table-xs`,[c.SM]:`table-sm`,[c.MD]:`table-md`,[c.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{g.value=u.Auto,_.value=a.NATURAL,v.value=i.CARD,y.value=!0,b.value=!1,x.value=`https://www.gstatic.com/generate_204`,S.value=!0,C.value=5e3,w.value=24,T.value=8},resetXdConfig:()=>{p.value=!1,E.value=!1,D.value=!1,m.value=`nord`,h.value=`sunset`,t.value=`sunset`}}});export{p as t};