import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,A as r,E as i,F as a,I as o,O as s,P as c,d as l,f as u,g as d,h as f,k as p}from"./Fade-Bj1YUcWe.js";var m=e(t()),h=m.createContext(),g=m.createContext();function _(e){return a(`MuiTableCell`,e)}var v=c(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),y=n(),b=e=>{let{classes:t,variant:n,align:r,padding:a,size:o,stickyHeader:s}=e;return i({root:[`root`,n,s&&`stickyHeader`,r!==`inherit`&&`align${f(r)}`,a!==`normal`&&`padding${f(a)}`,`size${f(o)}`]},_,t)},x=d(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${f(n.size)}`],n.padding!==`normal`&&t[`padding${f(n.padding)}`],n.align!==`inherit`&&t[`align${f(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(u(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode===`light`?r(s(e.palette.divider,1),.88):p(s(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${v.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),S=m.forwardRef(function(e,t){let n=l({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:s,scope:c,size:u,sortDirection:d,variant:f,...p}=n,_=m.useContext(h),v=m.useContext(g),S=v&&v.variant===`head`,C;C=a||(S?`th`:`td`);let w=c;C===`td`?w=void 0:!w&&S&&(w=`col`);let T=f||v&&v.variant,E={...n,align:r,component:C,padding:s||(_&&_.padding?_.padding:`normal`),size:u||(_&&_.size?_.size:`medium`),sortDirection:d,stickyHeader:T===`head`&&_&&_.stickyHeader,variant:T},D=b(E),O=null;return d&&(O=d===`asc`?`ascending`:`descending`),(0,y.jsx)(x,{as:C,ref:t,className:o(D.root,i),"aria-sort":O,scope:w,ownerState:E,...p})});export{g as n,h as r,S as t};