import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,E as r,F as i,I as a,O as o,P as s,d as c,f as l,g as u}from"./Fade-Bj1YUcWe.js";import{n as d,r as f}from"./TableCell-XF5Kj4Pi.js";var p=e(t());function m(e){return i(`MuiTable`,e)}s(`MuiTable`,[`root`,`stickyHeader`]);var h=n(),g=e=>{let{classes:t,stickyHeader:n}=e;return r({root:[`root`,n&&`stickyHeader`]},m,t)},_=u(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(l(({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:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),v=`table`,y=p.forwardRef(function(e,t){let n=c({props:e,name:`MuiTable`}),{className:r,component:i=v,padding:o=`normal`,size:s=`medium`,stickyHeader:l=!1,...u}=n,d={...n,component:i,padding:o,size:s,stickyHeader:l},m=g(d),y=p.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return(0,h.jsx)(f.Provider,{value:y,children:(0,h.jsx)(_,{as:i,role:i===v?null:`table`,ref:t,className:a(m.root,r),ownerState:d,...u})})});function b(e){return i(`MuiTableBody`,e)}s(`MuiTableBody`,[`root`]);var x=e=>{let{classes:t}=e;return r({root:[`root`]},b,t)},S=u(`tbody`,{name:`MuiTableBody`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`table-row-group`}),C={variant:`body`},w=`tbody`,T=p.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableBody`}),{className:r,component:i=w,...o}=n,s={...n,component:i},l=x(s);return(0,h.jsx)(d.Provider,{value:C,children:(0,h.jsx)(S,{className:a(l.root,r),as:i,ref:t,role:i===w?null:`rowgroup`,ownerState:s,...o})})});function E(e){return i(`MuiTableContainer`,e)}s(`MuiTableContainer`,[`root`]);var D=e=>{let{classes:t}=e;return r({root:[`root`]},E,t)},O=u(`div`,{name:`MuiTableContainer`,slot:`Root`,overridesResolver:(e,t)=>t.root})({width:`100%`,overflowX:`auto`}),k=p.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...o}=n,s={...n,component:i},l=D(s);return(0,h.jsx)(O,{ref:t,as:i,className:a(l.root,r),ownerState:s,...o})});function A(e){return i(`MuiTableHead`,e)}s(`MuiTableHead`,[`root`]);var j=e=>{let{classes:t}=e;return r({root:[`root`]},A,t)},M=u(`thead`,{name:`MuiTableHead`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`table-header-group`}),N={variant:`head`},P=`thead`,F=p.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableHead`}),{className:r,component:i=P,...o}=n,s={...n,component:i},l=j(s);return(0,h.jsx)(d.Provider,{value:N,children:(0,h.jsx)(M,{as:i,className:a(l.root,r),ref:t,role:i===P?null:`rowgroup`,ownerState:s,...o})})});function I(e){return i(`MuiTableRow`,e)}var L=s(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),R=e=>{let{classes:t,selected:n,hover:i,head:a,footer:o}=e;return r({root:[`root`,n&&`selected`,i&&`hover`,a&&`head`,o&&`footer`]},I,t)},z=u(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(l(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${L.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${L.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:o(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:o(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),B=`tr`,V=p.forwardRef(function(e,t){let n=c({props:e,name:`MuiTableRow`}),{className:r,component:i=B,hover:o=!1,selected:s=!1,...l}=n,u=p.useContext(d),f={...n,component:i,hover:o,selected:s,head:u&&u.variant===`head`,footer:u&&u.variant===`footer`},m=R(f);return(0,h.jsx)(z,{as:i,ref:t,className:a(m.root,r),role:i===B?null:`row`,ownerState:f,...l})});export{y as a,T as i,F as n,k as r,V as t};