import{ac as T,ab as N,a0 as c,a9 as n,r as P,aL as M,a7 as w,T as l,j as i,l as C,am as S,aj as j}from"./index-91e9700c.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"],_=a=>{const{classes:e}=a;return j({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},A,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}),L=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=P.forwardRef(function(e,h){const p=M({props:e,name:"MuiCardHeader"}),{action:m,avatar:d,className:b,component:y="div",disableTypography:u=!1,subheader:g,subheaderTypographyProps:f,title:H,titleTypographyProps:x}=p,R=w(p,$),r=n({},p,{component:y,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:y,ref:h,ownerState:r},R,{children:[d&&i(L,{className:t.avatar,ownerState:r,children:d}),C(D,{className:t.content,ownerState:r,children:[s,o]}),m&&i(B,{className:t.action,ownerState:r,children:m})]}))}),W=E;export{W as C};
