const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-BvUoh1FC.js","./index-vDL8KyrI.js","./index-KcXdcCUK.css","./snakeCase-B_0CeYWc.js","./_createCompounder-Bmfmbzn9.js","./Frontend-Czkdrkwh.js","./InputField-B5sOh_uD.js","./SelectField-apZm61cq.js","./Settings-UIZVjcVZ.js","./SettingsList-D3Urvwh_.js","./CheckboxField-m1WCeVZk.js","./Tools-C7_tyO66.js","./index-C4Y7ujGQ.js","./Bridge-BqxyXM2U.js","./DevConsole-xggBDKxm.js","./TextareaField-DY32r12P.js","./Donate-CHy3AC3m.js"])))=>i.map(i=>d[i]);
import{u,e as _,b as d,r as a,j as s,N as o,F as n,g as b,a7 as x,l as g,a8 as j,a9 as p,v,aa as N,_ as r}from"./index-vDL8KyrI.js";const T=a.lazy(async()=>await r(()=>import("./About-BvUoh1FC.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),f=a.lazy(async()=>await r(()=>import("./Frontend-Czkdrkwh.js"),__vite__mapDeps([5,1,2,6,7]),import.meta.url)),E=a.lazy(async()=>await r(()=>import("./Settings-UIZVjcVZ.js"),__vite__mapDeps([8,1,2,9,10,6,7]),import.meta.url)),y=a.lazy(async()=>await r(()=>import("./Tools-C7_tyO66.js"),__vite__mapDeps([11,1,2,12]),import.meta.url)),h=a.lazy(async()=>await r(()=>import("./Bridge-BqxyXM2U.js"),__vite__mapDeps([13,1,2]),import.meta.url)),A=a.lazy(async()=>await r(()=>import("./DevConsole-xggBDKxm.js"),__vite__mapDeps([14,1,2,6,7,15]),import.meta.url)),D=a.lazy(async()=>await r(()=>import("./Donate-CHy3AC3m.js"),__vite__mapDeps([16,1,2]),import.meta.url));function w(){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(T,{});case"frontend":return s.jsx(f,{});case"settings":return s.jsx(E,{});case"tools":return s.jsx(y,{});case"bridge":return s.jsx(h,{});case"dev-console":return s.jsx(A,{});case"donate":return s.jsx(D,{})}return s.jsx(s.Fragment,{})},[i]),e=({isActive:m})=>m?"tab tab-active":"tab";return s.jsx(s.Fragment,{children: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/frontend",className:e,children:[s.jsx(n,{icon:x,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:j,className:"me-2"}),t("tools")]}),s.jsxs(o,{to:"/settings/bridge",className:e,children:[s.jsx(n,{icon:p,className:"me-2"}),t("bridge")]}),s.jsxs(o,{to:"/settings/dev-console",className:e,children:[s.jsx(n,{icon:v,className:"me-2"}),t("dev_console")]}),s.jsxs(o,{to:"/settings/donate",className:e,children:[s.jsx(n,{icon:N,className:"me-2"}),t("donate")]}),s.jsx("div",{className:"tab-content block h-full bg-base-100 p-3",children:l})]})})}export{w as default};
