import{j as n,b as i,q as a,G as c,B as p,E as t,a0 as h}from"./index-DlNZgIG9.js";const m=({title:o,itemCount:e,tableMode:r=!1,children:s,sx:l})=>n(h,{variant:"outlined",sx:{mb:2,p:r?0:2.5,overflow:r?"hidden":void 0,...l},children:[r?n(p,{sx:{px:2.5,py:1.5,display:"flex",alignItems:"center",gap:1,borderBottom:"1px solid",borderColor:"divider"},children:[i(a,{variant:"overline",color:"text.secondary",sx:{letterSpacing:"0.08em"},children:o}),e!=null&&i(t,{label:e,size:"small",sx:{height:20,minWidth:28,fontSize:"0.7rem"}})]}):n(a,{variant:"overline",color:"text.secondary",sx:{mb:1.5,display:"flex",alignItems:"center",gap:1,letterSpacing:"0.08em"},children:[o,e!=null&&i(t,{label:e,size:"small",sx:{height:20,minWidth:28,fontSize:"0.7rem"}})]}),s]}),y=({label:o,value:e,xs:r=6,md:s=3,emphasis:l=!1,sx:d})=>n(c,{item:!0,xs:r,md:s,sx:d,children:[i(a,{variant:"caption",color:"text.secondary",sx:{display:"block",lineHeight:1.4},children:o}),e==null||typeof e=="string"||typeof e=="number"?i(a,{variant:"body2",fontWeight:l?500:400,sx:{wordBreak:"break-word",overflowWrap:"anywhere"},children:e??"—"}):e]});export{y as C,m as a};
