"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../_virtual/jsx-runtime.js"),b=require("../../Field/checkbox/Checkbox.js"),u=require("../styles.js"),g=require("../utils.js");function C({filteredRows:x,onRowClick:s,selectedRows:a,disabledRows:i,columns:o,rowIdentifier:r,"data-testid":j,"data-trackid":h}){return t.jsxRuntimeExports.jsx("tbody",{"data-testid":j,"data-trackid":h,children:x.map((d,p)=>{const l=g.getRowIdByIdentifier(d,r||""),n=!!(r&&a&&a.includes(l)),c=!!(r&&i&&i.includes(l));return t.jsxRuntimeExports.jsxs("tr",{"data-selected":n,"data-disabled":c,role:"row",children:[typeof s=="function"&&t.jsxRuntimeExports.jsx(u.CheckboxCell,{as:"td",role:"cell",children:t.jsxRuntimeExports.jsx(b.Checkbox,{onChange:e=>s(e.target.value),value:l,name:"select-row",checked:n,disabled:c})}),o.map((e,v)=>!e.hideCell&&t.jsxRuntimeExports.jsx(u.Td,{textAlign:e.textAlign,verticalAlign:e.verticalAlign,role:"cell",children:e.renderCell(d)},`cell_${v}`))]},`row_${p}`)})})}exports.default=C;
