const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-Cd5G1nNd.js","./index-BeDhuS24.js","./envs-DFlyG_dH.js","./index-sQ1gk-WC.css","./snakeCase-DF3cbatb.js","./_createCompounder-HA4t3BbU.js","./Health-D0P1xz_-.js","./DeviceImage-CGx5yo8m.js","./index-CIWfMo3U.js","./Table-CH7yonv3.js","./DebouncedInput-jeSVRz3c.js","./format-LeabZw87.js","./Frontend-Bw0vB4aZ.js","./CheckboxField-BhwpagjA.js","./InputField-E2g5qJCn.js","./NumberField-CH6-YRbT.js","./SelectField-CgXiODUe.js","./Settings-CwUeWW5z.js","./SettingsList-wPZC4AYF.js","./Tools-BQ5g0Zg_.js","./Bridge-Dg4Q3BhD.js","./DevConsole-CRKukHFU.js","./TextareaField-DAyUngHz.js","./Donate-Ceq-2-mP.js"])))=>i.map(i=>d[i]);
import{u,d as _,b as d,r as a,j as s,N as o,F as n,e as b,a9 as x,aa as j,k as g,ab as p,ac as v,q as N,ad as T,_ as r}from"./index-BeDhuS24.js";import"./envs-DFlyG_dH.js";const h=a.lazy(async()=>await r(()=>import("./About-Cd5G1nNd.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),f=a.lazy(async()=>await r(()=>import("./Health-D0P1xz_-.js"),__vite__mapDeps([6,1,2,3,7,8,9,10,11]),import.meta.url)),E=a.lazy(async()=>await r(()=>import("./Frontend-Bw0vB4aZ.js"),__vite__mapDeps([12,1,2,3,13,14,15,16]),import.meta.url)),y=a.lazy(async()=>await r(()=>import("./Settings-CwUeWW5z.js"),__vite__mapDeps([17,1,2,3,18,13,14,15,16]),import.meta.url)),P=a.lazy(async()=>await r(()=>import("./Tools-BQ5g0Zg_.js"),__vite__mapDeps([19,1,2,3,14,8]),import.meta.url)),A=a.lazy(async()=>await r(()=>import("./Bridge-Dg4Q3BhD.js"),__vite__mapDeps([20,1,2,3]),import.meta.url)),D=a.lazy(async()=>await r(()=>import("./DevConsole-CRKukHFU.js"),__vite__mapDeps([21,1,2,3,14,16,22]),import.meta.url)),w=a.lazy(async()=>await r(()=>import("./Donate-Ceq-2-mP.js"),__vite__mapDeps([23,1,2,3]),import.meta.url));function R(){const c=u(),{tab:i}=_(),{t}=d(["settings","navbar"]);a.useEffect(()=>{i||c("/settings/about",{replace:!0})},[i,c]);const l=a.useMemo(()=>{switch(i){case"about":return s.jsx(h,{});case"health":return s.jsx(f,{});case"frontend":return s.jsx(E,{});case"settings":return s.jsx(y,{});case"tools":return s.jsx(P,{});case"bridge":return s.jsx(A,{});case"dev-console":return s.jsx(D,{});case"donate":return s.jsx(w,{})}return""},[i]),e=({isActive:m})=>m?"tab tab-active":"tab";return s.jsxs("div",{className:"tabs tabs-border",children:[s.jsxs(o,{to:"/settings/about",className:e,children:[s.jsx(n,{icon:b,className:"me-2"}),t("about")]}),s.jsxs(o,{to:"/settings/health",className:e,children:[s.jsx(n,{icon:x,className:"me-2"}),t("health")]}),s.jsxs(o,{to:"/settings/frontend",className:e,children:[s.jsx(n,{icon:j,className:"me-2"}),t("frontend")]}),s.jsxs(o,{to:"/settings/settings",className:e,children:[s.jsx(n,{icon:g,className:"me-2"}),t("settings")]}),s.jsxs(o,{to:"/settings/tools",className:e,children:[s.jsx(n,{icon:p,className:"me-2"}),t("tools")]}),s.jsxs(o,{to:"/settings/bridge",className:e,children:[s.jsx(n,{icon:v,className:"me-2"}),t("bridge")]}),s.jsxs(o,{to:"/settings/dev-console",className:e,children:[s.jsx(n,{icon:N,className:"me-2"}),t("dev_console")]}),s.jsxs(o,{to:"/settings/donate",className:e,children:[s.jsx(n,{icon:T,className:"me-2"}),t("donate")]}),s.jsx("div",{className:"tab-content block h-full bg-base-100 p-3",children:l})]})}export{R as default};
