import{g as i,a as o,j as e}from"./FontSizeProvider-Cy0K7gvl.js";import{L as c,C as m}from"./trash-2-Dx96Ty-c.js";import{L as l,O as x}from"./LinkComponent-BNBw6Z6W.js";import{l as g}from"./icon-BmsVQuvA.js";import{C as d,a as f}from"./chevron-right-CxApm3L5.js";import{B as p}from"./brain-circuit-E5LTXM_M.js";const h=({children:t})=>{const s=i(),{t:a,i18n:r}=o(["settings","common","openai"]),n=(r==null?void 0:r.dir())==="rtl";return e.jsxs("div",{className:"flex w-full flex-col min-h-screen bg-neutral-50 dark:bg-[#1a1a1a]",children:[e.jsx("header",{className:"sticky top-0 z-20 bg-white dark:bg-[#1a1a1a] border-b border-gray-200 dark:border-gray-700 shadow-sm",children:e.jsx("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(c,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-pink-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900","aria-label":a("common:goBack"),children:n?e.jsx(d,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"}):e.jsx(f,{className:"h-5 w-5 text-gray-600 dark:text-gray-400"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{className:"h-7 w-7 rounded-lg",src:g,alt:a("common:pageAssist")}),e.jsx("div",{className:"flex flex-col",children:e.jsx("span",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:a("common:pageAssist")})})]})]})})}),e.jsx("main",{className:"relative w-full flex-1",children:e.jsx("div",{className:"mx-auto w-full h-full custom-scrollbar overflow-y-auto",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-x-16 lg:px-24",children:[e.jsx("aside",{className:"sticky lg:mt-0 top-0 bg-white dark:bg-[#1a1a1a] border-b dark:border-gray-600 lg:border-0 lg:bg-transparent lg:dark:bg-transparent",children:e.jsx("nav",{className:"w-full overflow-x-auto px-4 py-4 sm:px-6 lg:px-0 lg:py-0 lg:mt-8",children:e.jsxs("ul",{role:"list",className:"flex flex-row lg:flex-col gap-x-3 gap-y-1 min-w-max lg:min-w-0",children:[e.jsx(l,{href:"/settings",name:a("generalSettings.title"),icon:x,current:s.pathname}),e.jsx(l,{href:"/settings/openai",name:a("openai:settings"),icon:m,current:s.pathname}),e.jsx(l,{href:"/settings/model",name:a("manageModels.title"),current:s.pathname,icon:p})]})})}),e.jsx("main",{className:"flex-1 px-4 py-6 lg:px-0 lg:py-12",children:e.jsx("div",{className:"mx-auto max-w-4xl space-y-6 sm:space-y-8",children:t})})]})})})]})};export{h as S};
