(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 i=n(0),a=n.n(i),l=n(27),r=n.n(l),o=n(3),s=n(4),c=n(6),u=n(7),d=n(67),p=n(166),m=n(165),g=function(e,t,n,i){var l={columns:[],rows:[],columnVisibility:{}},r=e.rows,o=e.columns,s=new RegExp("[0-9]+");l.columns.push({field:"id",headerName:"id",flex:1,editable:!1}),l.columnVisibility.id=!1;for(var c=function(){var r,o=e.getCell(0,u),c=null!==o.content&&""!==o.content?o.content.toString():u.toString();"id"===c&&(c="_id",r="_id");var d={field:c,headerName:r=Object.keys(t).includes(c)?t[c]:c,flex:1,editable:!1};if(Object.keys(i).includes(c)){var p=i[c];switch(p.type){case"image":d.renderCell=function(e){return a.a.createElement("img",{alt:void 0!==e.id?r+e.id.toString():r+"null",src:e.value,height:"100%"})};break;case"date":d.valueFormatter=function(e){return new Date(1e6*(null===e||void 0===e?void 0:e.value)).toLocaleString(p.lang,p.options)}}}l.columns.push(d),l.columnVisibility[c]=!(s.test(c)||n.includes(c))},u=1;u<o;u++)c();for(var d=1;d<r;d++){var p={};p.id=d;for(var m=1;m<o;m++)p[l.columns[m].field]=e.getCell(d,m).content;l.rows.push(p)}return console.log(l),l},h=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(s.a)(this,n);for(var i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return(e=t.call.apply(t,[this].concat(l))).state={},e.df=e.props.args.df,e.height=e.props.args.height,e.pageSize=e.props.args.pageSize,e.labels=e.props.args.labels,e.hide=e.props.args.hide,e.types=e.props.args.types,e.render=function(){var t=g(e.df,e.labels,e.hide,e.types);return a.a.createElement(p.a,{sx:{height:e.height,width:"100%"}},a.a.createElement(m.a,{initialState:{columns:{columnVisibilityModel:t.columnVisibility}},columns:t.columns,rows:t.rows,pageSize:e.pageSize,disableSelectionOnClick:!0}))},e}return Object(o.a)(n)}(d.a),b=Object(d.b)(h);r.a.render(a.a.createElement(a.a.StrictMode,null,a.a.createElement(b,null)),document.getElementById("root"))}},[[103,1,2]]]);
//# sourceMappingURL=main.5a33b4ce.chunk.js.map