import{a as d}from"/admin/build/_shared/chunk-GOVANXU2.js";import{B as u,C as g,E as m,F as r,J as y,N as p,R as h,S as C,c as a,la as c,u as b}from"/admin/build/_shared/chunk-23T7FBRJ.js";import{o as x,s as f,y as l}from"/admin/build/_shared/chunk-A7Z7N7I3.js";import{b as v,d as s}from"/admin/build/_shared/chunk-VGRMLH5W.js";var k=v(($,R)=>{R.exports={}});var e=s(l()),I=[{name:"Actions",icon:"fa6-solid:code",to:"/actions"}];function P({children:o}){let{isOpen:t,onOpen:n,onClose:i}=g();return(0,e.jsxs)(m,{minH:"100vh",bg:a("gray.100","gray.900"),children:[(0,e.jsx)(F,{onClose:()=>i,display:{base:"none",md:"flex"}}),(0,e.jsx)(h,{autoFocus:!1,isOpen:t,placement:"left",onClose:i,returnFocusOnClose:!1,onOverlayClick:i,size:"full",children:(0,e.jsx)(C,{children:(0,e.jsx)(F,{onClose:i})})}),(0,e.jsx)(w,{display:{base:"flex",md:"none"},onOpen:n}),(0,e.jsx)(m,{ml:{base:0,md:48},children:o})]})}var F=({onClose:o,...t})=>(0,e.jsxs)(r,{bg:a("white","gray.900"),borderRight:"1px",flexDirection:"column",borderRightColor:a("gray.200","gray.700"),w:{base:"full",md:48},pos:"fixed",h:"full",py:4,zIndex:2,gap:4,...t,children:[(0,e.jsxs)(r,{alignItems:"center",mx:"8",justifyContent:"space-between",children:[(0,e.jsx)(p,{fontSize:"2xl",fontFamily:"monospace",fontWeight:"bold",children:"Runnable"}),(0,e.jsx)(u,{display:{base:"flex",md:"none"},onClick:o})]}),I.map(n=>(0,e.jsx)(S,{icon:n.icon,to:n.to,children:n.name},n.name)),(0,e.jsx)(r,{flex:1}),(0,e.jsx)(f,{action:c("/logout"),method:"post",children:(0,e.jsx)(r,{as:"button",flex:1,align:"center",p:"2",px:"5",mx:"4",borderRadius:"lg",role:"group",cursor:"pointer",_hover:{bg:"cyan.100"},type:"submit",children:"Logout"})})]}),S=({icon:o,children:t,to:n,...i})=>(0,e.jsx)(y,{as:x,to:c(n),style:{textDecoration:"none"},_focus:{boxShadow:"none"},children:(0,e.jsxs)(r,{align:"center",p:"2",px:"5",mx:"4",borderRadius:"lg",role:"group",cursor:"pointer",_hover:{bg:"cyan.100"},...i,children:[o&&(0,e.jsx)(d,{mr:"4",fontSize:"16",minWidth:"20px",icon:o}),t]})}),w=({onOpen:o,...t})=>(0,e.jsxs)(r,{ml:{base:0,md:48},px:{base:4,md:24},height:"20",alignItems:"center",bg:a("white","gray.900"),borderBottomWidth:"1px",borderBottomColor:a("gray.200","gray.700"),justifyContent:"flex-start",...t,children:[(0,e.jsx)(b,{variant:"outline",onClick:o,"aria-label":"open menu",icon:(0,e.jsx)(d,{icon:"radix-icons:hamburger-menu"})}),(0,e.jsx)(p,{fontSize:"2xl",ml:"8",fontFamily:"monospace",fontWeight:"bold",children:"Runnable"})]});var B=s(l()),_=({children:o})=>(0,B.jsx)(P,{children:o});export{_ as a,k as b};
