import{bQ as m,bR as v,ao as S,j as o,b as r,q as s,cK as b,S as x,B as i,F as y,a2 as k}from"./index-DlNZgIG9.js";import{B as C}from"./Breadcrumbs-C2b52YrP.js";var u={},j=m;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,w=j(v()),I=S;f=u.default=(0,w.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:l=!1})=>o(i,{sx:{position:l?"sticky":"static",top:l?0:"auto",zIndex:l?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(s,{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(s,{variant:"h5",sx:{fontWeight:600,letterSpacing:-.2,color:"text.primary"},noWrap:!0,children:d}),p]}),n&&r(s,{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:l})=>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",...l},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(s,{variant:"subtitle1",sx:{fontWeight:600,color:"text.primary",fontSize:14},noWrap:!0,children:e}),d&&r(s,{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};
