import{bq as m,br as v,a9 as S,j as o,b as r,s as l,cw as b,S as x,B as i,H as y,Y as k}from"./index-BiWH3VAt.js";import{B as w}from"./Breadcrumbs-DDQs7r4b.js";var u={},C=m;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,j=C(v()),I=S;f=u.default=(0,j.default)((0,I.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");const W=({breadcrumbs:e,title:d,subtitle:n,badge:p,actions:a,meta:c,sticky:s=!1})=>o(i,{sx:{position:s?"sticky":"static",top:s?0:"auto",zIndex:s?5:"auto",bgcolor:"background.paper",borderBottom:"1px solid",borderColor:"divider",px:{xs:2,md:3},py:1.5,mb:2,borderRadius:1.5,boxShadow:"0 1px 2px rgba(15,23,42,0.04)"},children:[e&&e.length>0&&r(w,{separator:r(f,{fontSize:"inherit"}),sx:{mb:.75,"& .MuiBreadcrumbs-li":{fontSize:12,color:"text.secondary"}},children:e.map((t,h)=>h===e.length-1||!t.to&&!t.onClick?r(l,{variant:"caption",color:"text.secondary",children:t.label},h):r(b,{href:t.to,onClick:g=>{t.onClick&&(g.preventDefault(),t.onClick())},underline:"hover",color:"text.secondary",sx:{fontSize:12},children:t.label},h))}),o(x,{direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},spacing:{xs:1.5,md:2},children:[o(i,{sx:{flex:1,minWidth:0},children:[o(x,{direction:"row",alignItems:"center",spacing:1.25,children:[r(l,{variant:"h5",sx:{fontWeight:600,letterSpacing:-.2,color:"text.primary"},noWrap:!0,children:d}),p]}),n&&r(l,{variant:"body2",color:"text.secondary",sx:{mt:.25},children:n}),c&&r(i,{sx:{mt:1},children:c})]}),a&&r(x,{direction:"row",spacing:1,alignItems:"center",flexShrink:0,children:a})]})]}),_=({title:e,subtitle:d,action:n,children:p,dense:a=!1,noPadding:c=!1,sx:s})=>o(i,{sx:{bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:1.5,boxShadow:"0 1px 2px rgba(15,23,42,0.03)",overflow:"hidden",...s},children:[(e||n)&&o(y,{children:[o(x,{direction:"row",alignItems:"center",spacing:1,sx:{px:a?1.5:2,py:a?1:1.25},children:[o(i,{sx:{flex:1,minWidth:0},children:[e&&r(l,{variant:"subtitle1",sx:{fontWeight:600,color:"text.primary",fontSize:14},noWrap:!0,children:e}),d&&r(l,{variant:"caption",color:"text.secondary",children:d})]}),n]}),r(k,{})]}),r(i,{sx:{p:c?0:a?1.5:2},children:p})]});export{W as P,_ as S};
