import{_ as e}from"./CaGtQlYh.js";import{Gt as t,It as n}from"#entry";import{c as r,f as i,g as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p}from"./CIa-1CJu.js";var m=t(`config`,()=>{let t=n(`theme`,`sunset`),m=n(`autoSwitchTheme`,!1),h=n(`favDayTheme`,`nord`),g=n(`favNightTheme`,`sunset`),_=n(`proxiesPreviewType`,c.Auto),v=n(`proxiesPreviewAutoThreshold`,10),y=n(`proxiesOrderingType`,d.QUALITY_DESC),b=n(`proxiesDisplayMode`,i.CARD),x=n(`renderProxiesInTwoColumns`,!0),S=n(`proxiesCardSize`,s.COMFORTABLE),C=n(`stickyGroupHeader`,!0),w=n(`hideUnAvailableProxies`,!1),T=n(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),E=n(`autoCloseConns`,!0),D=n(`latencyTestTimeoutDuration`,5e3),O=n(`latencyMediumThreshold`,0),k=n(`latencyHighThreshold`,0),A=n(`iconHeight`,24),j=n(`iconMarginRight`,8),M=n(`autoSwitchEndpoint`,!1),N=n(`enableTwemoji`,!1),P=n(`sidebarExpanded`,!1),F=n(`useMobileBottomNav`,!0),I=n(`defaultPage`,`overview`),L=n(`connectionsTableSize`,a.XS),R=n(`connectionsTableColumnVisibility`,f),z=n(`connectionsTableColumnOrder`,l),B=n(`connectionsDisplayMode`,(()=>{if(localStorage.getItem(`connectionsDisplayMode`)!==null)return`auto`;let e=localStorage.getItem(`useMobileConnectionsTable`);if(e!==null){localStorage.removeItem(`useMobileConnectionsTable`);try{return JSON.parse(e)===!0?`table`:`auto`}catch{return`auto`}}return`auto`})()),V=n(`logsTableSize`,a.XS),H=n(`logLevel`,r.Info),U=n(`logMaxRows`,o),W=n(`quickFilterRegex`,`DIRECT|direct|dns-out`),G=n(`clientSourceIPTags`,[]),K=n(`showNetworkTopology`,!1),q=n(`enableDataUsageTracking`,!0),J=e(()=>T.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:m,favDayTheme:h,favNightTheme:g,proxiesPreviewType:_,proxiesPreviewAutoThreshold:v,proxiesOrderingType:y,proxiesDisplayMode:b,renderProxiesInTwoColumns:x,proxiesCardSize:S,stickyGroupHeader:C,hideUnAvailableProxies:w,urlForLatencyTest:T,autoCloseConns:E,latencyTestTimeoutDuration:D,latencyMediumThreshold:O,latencyHighThreshold:k,iconHeight:A,iconMarginRight:j,autoSwitchEndpoint:M,enableTwemoji:N,sidebarExpanded:P,useMobileBottomNav:F,defaultPage:I,connectionsTableSize:L,connectionsTableColumnVisibility:R,connectionsTableColumnOrder:z,connectionsDisplayMode:B,quickFilterRegex:W,logsTableSize:V,logLevel:H,logMaxRows:U,clientSourceIPTags:G,showNetworkTopology:K,enableDataUsageTracking:q,isLatencyTestByHttps:J,latencyQualityMap:e(()=>{let e=J.value?p:u,t=O.value>0?O.value:e.MEDIUM,n=k.value>0?k.value:e.HIGH;return{NOT_CONNECTED:e.NOT_CONNECTED,MEDIUM:t,HIGH:n}}),tableSizeClassName:e=>({[a.XS]:`table-xs`,[a.SM]:`table-sm`,[a.MD]:`table-md`,[a.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{_.value=c.Auto,y.value=d.QUALITY_DESC,b.value=i.CARD,x.value=!0,S.value=s.COMFORTABLE,C.value=!0,w.value=!1,T.value=`https://www.gstatic.com/generate_204`,E.value=!0,D.value=5e3,O.value=0,k.value=0,A.value=24,j.value=8},resetXdConfig:()=>{m.value=!1,M.value=!1,N.value=!1,F.value=!0,h.value=`nord`,g.value=`sunset`,t.value=`sunset`,I.value=`overview`,q.value=!0}}});export{m as t};