import{r as p,g as x,u,j as e,s as g,z as j,O as y}from"./index-gX9iSPDQ.js";import{c as n,a as l,B as r}from"./createLucideIcon-W0Ra_zwb.js";import{L as f}from"./link-YPZRNdtx.js";import{C as v,D as k,a as N,b,c as o}from"./dropdown-menu-AOj3LtoW.js";import{C as w}from"./chevron-right-BHY7sgyv.js";import{F as M,a as C}from"./file-text-BnwEIBwa.js";import"./Combination-BtzWoF87.js";import"./index-DmVJm5MZ.js";import"./index-DVAmEPTK.js";/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],O=n("LogOut",S);/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],i=n("Mic",L);/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],z=n("Moon",_);/**
 * @license lucide-react v0.476.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],D=n("Sun",I),T=[{icon:i,label:"Audio Upload",to:"/audio-upload"},{icon:M,label:"Audio Recordings",to:"/audio-recordings"},{icon:C,label:"Prompt Management",to:"/prompt-management"}];function R({children:a}){const[t,c]=p.useState(()=>{const s=x("sidebarOpen","true");return JSON.parse(s)}),d=u(),m=()=>{const s=!t;c(s),g("sidebarOpen",JSON.stringify(s))},h=()=>{localStorage.removeItem("token"),d.navigate({to:"/login"})};return e.jsxs("div",{className:"flex min-h-screen",children:[e.jsxs("div",{className:l("fixed top-0 left-0 z-40 flex h-full flex-col bg-gray-900 text-white transition-all duration-300 ease-in-out",t?"w-64":"w-16"),children:[e.jsx(r,{variant:"ghost",className:"absolute top-4 -right-4 z-50 h-8 w-8 rounded-full bg-gray-800 p-0 hover:bg-gray-700",onClick:m,children:t?e.jsx(v,{}):e.jsx(w,{})}),e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"flex h-16 items-center justify-center",children:e.jsx("div",{className:"rounded-full bg-white p-2",children:e.jsx(i,{className:"h-8 w-8 text-gray-900"})})}),e.jsx("nav",{className:"flex-1 space-y-2 p-4",children:T.map(s=>e.jsxs(f,{to:s.to,className:"flex items-center rounded-lg p-2 transition-colors hover:bg-gray-800",activeProps:{className:"bg-gray-800"},children:[e.jsx(s.icon,{className:"h-5 w-5"}),t&&e.jsx("span",{className:"ml-3",children:s.label})]},s.to))}),e.jsx("div",{className:"p-4",children:e.jsxs(r,{variant:"ghost",className:"w-full justify-start",onClick:h,children:[e.jsx(O,{className:"h-5 w-5"}),t&&e.jsx("span",{className:"ml-3",children:"Logout"})]})})]})]}),e.jsx("div",{className:l("flex-1 p-6 transition-all duration-300 ease-in-out",t?"ml-64":"ml-16"),children:a})]})}function A(){const{setTheme:a}=j();return e.jsxs(k,{children:[e.jsx(N,{asChild:!0,children:e.jsxs(r,{variant:"outline",size:"icon",children:[e.jsx(D,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),e.jsx(z,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),e.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxs(b,{align:"end",children:[e.jsx(o,{onClick:()=>a("light"),children:"Light"}),e.jsx(o,{onClick:()=>a("dark"),children:"Dark"}),e.jsx(o,{onClick:()=>a("system"),children:"System"})]})]})}const H=function(){return e.jsxs("div",{className:"flex min-h-screen",children:[e.jsx(R,{}),e.jsx("main",{className:"min-h-screen flex-1",children:e.jsxs("div",{className:"container mx-auto p-4",children:[e.jsx("div",{className:"mb-4 flex justify-end",children:e.jsx(A,{})}),e.jsx(y,{})]})})]})};export{H as component};
