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