import{cF as u,cG as b,f as p,cI as R,r as d,cJ as y,j as c,cL as T,cM as m}from"./index-6fe66247.js";import{a as h,b as v}from"./TableCell-1aea1cc4.js";function B(e){return u("MuiTable",e)}b("MuiTable",["root","stickyHeader"]);const S=e=>{const{classes:o,stickyHeader:t}=e;return m({root:["root",t&&"stickyHeader"]},B,o)},j=p("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"}}]}))),C="table",U=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=S(f),M=d.useMemo(()=>({padding:r,size:l,stickyHeader:n}),[r,l,n]);return c.jsx(h.Provider,{value:M,children:c.jsx(j,{as:s,role:s===C?null:"table",ref:t,className:T(w.root,i),ownerState:f,...x})})}),L=U;function $(e){return u("MuiTableBody",e)}b("MuiTableBody",["root"]);const k=e=>{const{classes:o}=e;return m({root:["root"]},$,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=k(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})})}),q=E;function z(e){return u("MuiTableHead",e)}b("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"}),F={variant:"head"},g="thead",G=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:F,children:c.jsx(D,{as:s,className:T(n.root,i),ref:t,role:s===g?null:"rowgroup",ownerState:l,...r})})}),K=G;export{L as T,K as a,q as b};
