import{m as p,n as u,f as b,q as R,r as d,t as y,j as c,v as T,w as m}from"./index-952e178b.js";import{c as h,b as g}from"./TableRow-6a27d7f4.js";function B(e){return p("MuiTable",e)}u("MuiTable",["root","stickyHeader"]);const S=e=>{const{classes:o,stickyHeader:t}=e;return m({root:["root",t&&"stickyHeader"]},B,o)},j=b("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.stickyHeader&&o.stickyHeader]}})(R(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:o})=>o.stickyHeader,style:{borderCollapse:"separate"}}]}))),v="table",U=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTable"}),{className:i,component:s=v,padding:l="normal",size:r="medium",stickyHeader:n=!1,...w}=a,f={...a,component:s,padding:l,size:r,stickyHeader:n},x=S(f),M=d.useMemo(()=>({padding:l,size:r,stickyHeader:n}),[l,r,n]);return c.jsx(h.Provider,{value:M,children:c.jsx(j,{as:s,role:s===v?null:"table",ref:t,className:T(x.root,i),ownerState:f,...w})})}),J=U;function $(e){return p("MuiTableBody",e)}u("MuiTableBody",["root"]);const k=e=>{const{classes:o}=e;return m({root:["root"]},$,o)},N=b("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"table-row-group"}),P={variant:"body"},C="tbody",E=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableBody"}),{className:i,component:s=C,...l}=a,r={...a,component:s},n=k(r);return c.jsx(g.Provider,{value:P,children:c.jsx(N,{className:T(n.root,i),as:s,ref:t,role:s===C?null:"rowgroup",ownerState:r,...l})})}),K=E;function q(e){return p("MuiTableHead",e)}u("MuiTableHead",["root"]);const z=e=>{const{classes:o}=e;return m({root:["root"]},q,o)},A=b("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"table-header-group"}),D={variant:"head"},H="thead",F=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableHead"}),{className:i,component:s=H,...l}=a,r={...a,component:s},n=z(r);return c.jsx(g.Provider,{value:D,children:c.jsx(A,{as:s,className:T(n.root,i),ref:t,role:s===H?null:"rowgroup",ownerState:r,...l})})}),L=F;export{J as T,L as a,K as b};
