import{cH as p,cG as u,f as b,cJ as R,r as d,cK as y,j as c,cL as T,cM as m}from"./index-c5c88b67.js";import{c as h,b as g}from"./TableRow-2b359fa8.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,...x}=a,f={...a,component:s,padding:l,size:r,stickyHeader:n},w=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(w.root,i),ownerState:f,...x})})}),q=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"},H="tbody",E=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableBody"}),{className:i,component:s=H,...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===H?null:"rowgroup",ownerState:r,...l})})}),F=E;function z(e){return p("MuiTableHead",e)}u("MuiTableHead",["root"]);const A=e=>{const{classes:o}=e;return m({root:["root"]},z,o)},D=b("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"table-header-group"}),G={variant:"head"},C="thead",J=d.forwardRef(function(o,t){const a=y({props:o,name:"MuiTableHead"}),{className:i,component:s=C,...l}=a,r={...a,component:s},n=A(r);return c.jsx(g.Provider,{value:G,children:c.jsx(D,{as:s,className:T(n.root,i),ref:t,role:s===C?null:"rowgroup",ownerState:r,...l})})}),I=J;export{q as T,I as a,F as b};
