import{ac as T,ab as N,a0 as c,a9 as n,r as P,aD as M,a7 as w,T as l,j as i,l as C,aF as S,ak as j}from"./index-57016b76.js";function A(a){return N("MuiCardHeader",a)}const U=T("MuiCardHeader",["root","avatar","action","content","title","subheader"]),v=U,$=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],k=a=>{const{classes:e}=a;return j({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},A,e)},_=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}),D=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}),E=c("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(a,e)=>e.content})({flex:"1 1 auto"}),F=P.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=k(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(_,n({className:S(t.root,b),as:m,ref:h,ownerState:r},R,{children:[d&&i(D,{className:t.avatar,ownerState:r,children:d}),C(E,{className:t.content,ownerState:r,children:[s,o]}),y&&i(B,{className:t.action,ownerState:r,children:y})]}))}),L=F;export{L as C};
