(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{103:function(e,t,n){e.exports=n(116)},116:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(27),l=n.n(o),s=n(3),c=n(4),i=n(6),u=n(7),d=n(59),f=n(166),h=n(165),p=function(e){if(e instanceof d.a){for(var t=e.rows,n=[],r=1;r<t;r++)n.push(e.getCell(r,1).content.toString());return n}return e},m=function(e,t){var n={columns:[],rows:[]},r=e.rows,a=e.columns,o=[];n.columns.push({field:"id",headerName:"ID",flex:1,editable:!1});for(var l=1;l<a;l++){var s=e.getCell(0,l).content.toString(),c=t[l-1];void 0!==c&&(e.getCell(1,l).content instanceof Date?n.columns.push({field:s,headerName:c,flex:1,editable:!1,valueFormatter:function(e){return new Date(null===e||void 0===e?void 0:e.value).toLocaleString()}}):n.columns.push({field:s,headerName:c,flex:1,editable:!1})),o.push(s)}for(var i=1;i<r;i++){var u={};u.id=i;for(var d=1;d<a;d++){var f=e.getCell(i,d).content;if(f instanceof Date){var h=new Date(1e6*f.getTime());u[o[d-1]]=h}else u[o[d-1]]=f}console.log(u[o[o.length-1]]),1===u[o[o.length-1]][0]&&n.rows.push(u)}return n},g=function(e){Object(i.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return(e=t.call.apply(t,[this].concat(o))).state={},e.dataframe=e.props.args.processed_df,e.headers=p(e.props.args.headers),e.render=function(){var t=m(e.dataframe,e.headers);return a.a.createElement(f.a,{sx:{height:e.props.args.height,width:"100%",paddingLeft:2}},a.a.createElement(h.a,{rows:t.rows,columns:t.columns,rowHeight:50,loading:0===t.rows.length,rowsPerPageOptions:[100],disableSelectionOnClick:!0}))},e}return Object(s.a)(n)}(d.b),v=Object(d.c)(g);l.a.render(a.a.createElement(a.a.StrictMode,null,a.a.createElement(v,null)),document.getElementById("root"))}},[[103,1,2]]]);
//# sourceMappingURL=main.4cc03732.chunk.js.map