import{aq as N,ap as P,a8 as c,an as n,r as T,a_ as M,al as w,y as l,j as i,o as C,aA as S,ax as A}from"./index-e47c07e2.js";function j(a){return P("MuiCardHeader",a)}const U=N("MuiCardHeader",["root","avatar","action","content","title","subheader"]),v=U,_=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$=a=>{const{classes:e}=a;return A({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},j,e)},k=c("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(a,e)=>n({[`& .${v.title}`]:e.title,[`& .${v.subheader}`]:e.subheader},e.root)})({display:"flex",alignItems:"center",padding:16}),q=c("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(a,e)=>e.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),B=c("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(a,e)=>e.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),D=c("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(a,e)=>e.content})({flex:"1 1 auto"}),E=T.forwardRef(function(e,h){const p=M({props:e,name:"MuiCardHeader"}),{action:y,avatar:d,className:b,component:m="div",disableTypography:u=!1,subheader:g,subheaderTypographyProps:f,title:H,titleTypographyProps:x}=p,R=w(p,_),r=n({},p,{component:m,disableTypography:u}),t=$(r);let s=H;s!=null&&s.type!==l&&!u&&(s=i(l,n({variant:d?"body2":"h5",className:t.title,component:"span",display:"block"},x,{children:s})));let o=g;return o!=null&&o.type!==l&&!u&&(o=i(l,n({variant:d?"body2":"body1",className:t.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:o}))),C(k,n({className:S(t.root,b),as:m,ref:h,ownerState:r},R,{children:[d&&i(q,{className:t.avatar,ownerState:r,children:d}),C(D,{className:t.content,ownerState:r,children:[s,o]}),y&&i(B,{className:t.action,ownerState:r,children:y})]}))}),L=E;export{L as C};
