import{bc as m,bd as v,V as S,j as o,b as r,q as l,bA as b,S as x,B as i,F as y,aI as k}from"./index-DWFi48i_.js";import{B as C}from"./Breadcrumbs-CJ0YMUOv.js";var u={},I=m;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,j=I(v()),w=S;f=u.default=(0,j.default)((0,w.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");const W=({breadcrumbs:e,title:s,subtitle:n,badge:p,actions:a,meta:c,sticky:d=!1})=>o(i,{sx:{position:d?"sticky":"static",top:d?0:"auto",zIndex:d?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(C,{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:s}),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:s,action:n,children:p,dense:a=!1,noPadding:c=!1,sx:d})=>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",...d},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}),s&&r(l,{variant:"caption",color:"text.secondary",children:s})]}),n]}),r(k,{})]}),r(i,{sx:{p:c?0:a?1.5:2},children:p})]});export{W as P,_ as S};
