import{bh as b,bi as u,d as p,bj as h,r as d,bk as y,j as c,bm as T,bn as m}from"./index-60a3c753.js";import{b as R,c as v}from"./TableRow-0b33776c.js";function j(e){return b("MuiTable",e)}u("MuiTable",["root","stickyHeader"]);const B=e=>{const{classes:o,stickyHeader:t}=e;return m({root:["root",t&&"stickyHeader"]},j,o)},S=p("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.stickyHeader&&o.stickyHeader]}})(h(({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"}}]}))),C="table",k=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTable"}),{className:i,component:s=C,padding:r="normal",size:l="medium",stickyHeader:n=!1,...x}=a,f={...a,component:s,padding:r,size:l,stickyHeader:n},w=B(f),M=d.useMemo(()=>({padding:r,size:l,stickyHeader:n}),[r,l,n]);return c.jsx(R.Provider,{value:M,children:c.jsx(S,{as:s,role:s===C?null:"table",ref:t,className:T(w.root,i),ownerState:f,...x})})}),J=k;function U(e){return b("MuiTableBody",e)}u("MuiTableBody",["root"]);const $=e=>{const{classes:o}=e;return m({root:["root"]},U,o)},N=p("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),P={variant:"body"},H="tbody",E=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableBody"}),{className:i,component:s=H,...r}=a,l={...a,component:s},n=$(l);return c.jsx(v.Provider,{value:P,children:c.jsx(N,{className:T(n.root,i),as:s,ref:t,role:s===H?null:"rowgroup",ownerState:l,...r})})}),K=E;function z(e){return b("MuiTableHead",e)}u("MuiTableHead",["root"]);const A=e=>{const{classes:o}=e;return m({root:["root"]},z,o)},D=p("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),q={variant:"head"},g="thead",F=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableHead"}),{className:i,component:s=g,...r}=a,l={...a,component:s},n=A(l);return c.jsx(v.Provider,{value:q,children:c.jsx(D,{as:s,className:T(n.root,i),ref:t,role:s===g?null:"rowgroup",ownerState:l,...r})})}),L=F;export{J as T,L as a,K as b};
