import{cF as w,cG as R,f as C,cI as y,r as i,cJ as T,j as m,cL as h,cM as g,o as p}from"./index-7414fd54.js";import{b as $}from"./TableCell-3cadf061.js";function x(e){return w("MuiTableRow",e)}const O=R("MuiTableRow",["root","selected","hover","head","footer"]),d=O,M=e=>{const{classes:o,selected:a,hover:s,head:l,footer:t}=e;return g({root:["root",a&&"selected",s&&"hover",l&&"head",t&&"footer"]},x,o)},U=C("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:a}=e;return[o.root,a.head&&o.head,a.footer&&o.footer]}})(y(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${d.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${d.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:p(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}))`:p(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),v="tr",j=i.forwardRef(function(o,a){const s=T({props:o,name:"MuiTableRow"}),{className:l,component:t=v,hover:n=!1,selected:u=!1,...b}=s,r=i.useContext($),c={...s,component:t,hover:n,selected:u,head:r&&r.variant==="head",footer:r&&r.variant==="footer"},f=M(c);return m.jsx(U,{as:t,ref:a,className:h(f.root,l),role:t===v?null:"row",ownerState:c,...b})}),E=j;export{E as T};
