import{r as e}from"./bundle-mjs-DuVun8J2.js";import"./react-dom-CyRBZdbZ.js";import{c as t,u as n}from"./chunk-LFPYN7LY-Dq4q0Zxd.js";import{p as r,t as i}from"./scroll-area-CWx9n_us.js";import{C as a,v as o,x as s,y as c}from"./middleware-CKSrUg7K.js";import{i as l}from"./button-DbPycOZU.js";import{t as u}from"./arrow-left-0rV8y4vB.js";import"./client-CfJnSvcd.js";import{ct as d,lt as f,ot as p,st as m}from"./index-BZmR4FtW.js";var h=e();function g(){let{isDark:e,toggle:g}=p(),_=r(),v=t(),[y]=n(),b=y.get(`section`),x=b&&d.some(e=>e.key===b)?b:void 0,S=d.find(e=>e.key===x)?.label??`Settings`;return(0,h.jsxs)(`div`,{className:`flex flex-col h-full overflow-hidden`,children:[(0,h.jsxs)(`div`,{className:l(`flex items-center gap-3 shrink-0 border-b border-border-subtle`,_?`px-4 py-3`:`px-6 py-4`),children:[(0,h.jsxs)(o,{children:[(0,h.jsx)(s,{asChild:!0,children:(0,h.jsx)(`span`,{className:`inline-flex`,children:(0,h.jsx)(a,{onClick:()=>v(-1),"aria-label":`Go back`,className:_?`touch-target`:void 0,children:(0,h.jsx)(u,{className:`size-5 text-muted-foreground`})})})}),(0,h.jsx)(c,{side:`bottom`,children:`Go back`})]}),(0,h.jsx)(`h1`,{className:`text-foreground typo-h3`,children:`Settings`})]}),(0,h.jsxs)(`div`,{className:`flex flex-col flex-1 min-h-0`,children:[(0,h.jsxs)(`div`,{className:l(`shrink-0 border-b border-border-subtle`,_?`px-4 py-3`:`px-6 py-4`),children:[(0,h.jsx)(`span`,{className:`text-foreground typo-h4`,children:S}),(0,h.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:x?m[x]:`Configure theme, telemetry, LM integration, and runtime connectivity.`})]}),(0,h.jsx)(i,{className:`flex-1`,children:(0,h.jsx)(`div`,{className:l(_?`px-4`:`px-6`),children:(0,h.jsx)(f,{isDark:e,onToggleTheme:g,section:x})})})]})]})}export{g as SettingsPage};