import{jsx as e}from"react/jsx-runtime";import{AutoSizer as r,Table as t,Column as a}from"react-virtualized";import{makeStyles as i}from"@material-ui/core";var l=i({tableWrapper:{borderTop:"1px solid #5C5C5C",borderBottom:"1px solid #5C5C5C",width:"100%",height:"100%",overflow:"scroll"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{width:200}}),o=function(r){var t=r.cellData,a=l();return e("div",{className:a.cell,children:t})},n=function(i){var n=i.fileData,d=l(),c=Object.keys(n[0]||{});return e("div",{className:d.tableWrapper,children:e(r,{children:function(r){var i=r.height;return r.width,function(r){var i=r.height;return e(t,{className:d.table,width:200*(c.length||10),height:i,headerHeight:40,rowHeight:50,rowCount:n.length,rowGetter:function(e){var r=e.index;return n[r]},children:c.map((function(r){return e(a,{width:200,flexGrow:1,dataKey:r,label:r,cellRenderer:function(r){var t=r.cellData;return e(o,{cellData:t})}},r)}))})}({height:i})}})})};export{n as CsvViewer};
