import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{AutoSizer as t,Table as a,Column as i}from"react-virtualized";import{makeStyles as l}from"@material-ui/core";var o=l({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}}),n=function(t){var a=t.cellData,i=o();return r("div",e({className:i.cell},{children:a}))},d=function(l){var d=l.fileData,c=o(),h=Object.keys(d[0]||{});return r("div",e({className:c.tableWrapper},{children:r(t,{children:function(t){var l=t.height;return t.width,function(t){var l=t.height;return r(a,e({className:c.table,width:200*(h.length||10),height:l,headerHeight:40,rowHeight:50,rowCount:d.length,rowGetter:function(e){var r=e.index;return d[r]}},{children:h.map((function(e){return r(i,{width:200,flexGrow:1,dataKey:e,label:e,cellRenderer:function(e){var t=e.cellData;return r(n,{cellData:t})}},e)}))}))}({height:l})}})}))};export{d as CsvViewer};
