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