import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t,b as n,t as r,x as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";function o({title:e,subtitle:t,color:r=`permission`,workerBadge:a}){return(0,s.jsxs)(i,{flexDirection:`column`,children:[(0,s.jsxs)(i,{flexDirection:`row`,gap:1,children:[(0,s.jsx)(n,{bold:!0,color:r,children:e}),a&&(0,s.jsxs)(n,{dimColor:!0,children:[`· `,`@`,a.name]})]}),t!=null&&(typeof t==`string`?(0,s.jsx)(n,{dimColor:!0,wrap:`truncate-start`,children:t}):t)]})}var s,c=e((()=>{t(),r(),s=a()}));function l({title:e,subtitle:t,color:n=`permission`,titleColor:r,innerPaddingX:a=1,workerBadge:s,titleRight:c,children:l}){return(0,u.jsxs)(i,{flexDirection:`column`,borderStyle:`round`,borderColor:n,borderLeft:!1,borderRight:!1,borderBottom:!1,marginTop:1,children:[(0,u.jsx)(i,{paddingX:1,flexDirection:`column`,children:(0,u.jsxs)(i,{justifyContent:`space-between`,children:[(0,u.jsx)(o,{title:e,subtitle:t,color:r,workerBadge:s}),c]})}),(0,u.jsx)(i,{flexDirection:`column`,paddingX:a,children:l})]})}var u,d=e((()=>{t(),r(),c(),u=a()}));export{c as i,d as n,o as r,l as t};