const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-Bzn4phMf.js","./index-DtyjNqrf.js","./envs-DFlyG_dH.js","./index-EwioJBcA.css","./snakeCase-DmoQhYQA.js","./_createCompounder-CbLsIfEE.js","./Health-CKhCvWTS.js","./DeviceImage-D-FjKeE6.js","./index-Q3KOJDn9.js","./Table-BQc_g_eJ.js","./DebouncedInput-DnWGzIEH.js","./format-6Yb6jWnA.js","./Frontend-BjIugJEJ.js","./CheckboxField-DKhAwA85.js","./InputField-CYbmpJqW.js","./NumberField-DVRroIAm.js","./SelectField-DfdnxD7O.js","./Settings-BjCQ4C8J.js","./SettingsList-m7AYDAw4.js","./Tools-Cjm0CrsG.js","./Bridge-CxXyKguB.js","./DevConsole-Bodnafv_.js","./TextareaField-Xo9B_w91.js","./Donate-Dj2gLttt.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-DtyjNqrf.js";import"./envs-DFlyG_dH.js";const h=a.lazy(async()=>await r(()=>import("./About-Bzn4phMf.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),f=a.lazy(async()=>await r(()=>import("./Health-CKhCvWTS.js"),__vite__mapDeps([6,1,2,3,7,8,9,10,11]),import.meta.url)),E=a.lazy(async()=>await r(()=>import("./Frontend-BjIugJEJ.js"),__vite__mapDeps([12,1,2,3,13,14,15,16]),import.meta.url)),y=a.lazy(async()=>await r(()=>import("./Settings-BjCQ4C8J.js"),__vite__mapDeps([17,1,2,3,18,13,14,15,16]),import.meta.url)),P=a.lazy(async()=>await r(()=>import("./Tools-Cjm0CrsG.js"),__vite__mapDeps([19,1,2,3,14,8]),import.meta.url)),A=a.lazy(async()=>await r(()=>import("./Bridge-CxXyKguB.js"),__vite__mapDeps([20,1,2,3]),import.meta.url)),D=a.lazy(async()=>await r(()=>import("./DevConsole-Bodnafv_.js"),__vite__mapDeps([21,1,2,3,14,16,22]),import.meta.url)),w=a.lazy(async()=>await r(()=>import("./Donate-Dj2gLttt.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};
