(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{126:function(e,t,n){e.exports=n(139)},139:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),l=n(32),i=n.n(l),o=n(3),c=n(4),s=n(6),u=n(7),d=n(85),p=n(200),m=n(201),g=n(199),h=n(101),f=n.n(h),b=n(103),v=n.n(b),y=function(e,t,n,r){var l={columns:[],rows:[],columnVisibility:{}},i=e.rows,o=e.columns,c=new RegExp("[0-9]+");l.columns.push({field:"id",headerName:"id",flex:1,editable:!1}),l.columnVisibility.id=!1;for(var s=function(){var i,o=e.getCell(0,u),s=null!==o.content&&""!==o.content?o.content.toString():u.toString();"id"===s&&(s="_id",i="_id");var d={field:s,headerName:i=Object.keys(t).includes(s)?t[s]:s,flex:1,editable:!1,renderCell:function(e){return a.a.createElement(p.a,{overflow:"auto"},a.a.createElement(m.a,null,e.value.toString()))}};if(Object.keys(r).includes(s)){var g=r[s];switch(g.type){case"image":d.renderCell=function(e){return a.a.createElement("img",{alt:void 0!==e.id?i+e.id.toString():i+"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(g.lang,g.options)};break;case"bool":d.renderCell=function(e){return e.value?a.a.createElement(f.a,{color:"success"}):a.a.createElement(v.a,{color:"error"})}}}l.columns.push(d),l.columnVisibility[s]=!(c.test(s)||n.includes(s))},u=1;u<o;u++)s();for(var d=1;d<i;d++){var g={};g.id=d;for(var h=1;h<o;h++)g[l.columns[h].field]=e.getCell(d,h).content;l.rows.push(g)}return l},w=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];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=y(e.df,e.labels,e.hide,e.types);return a.a.createElement(p.a,{sx:{height:e.height,width:"100%"}},a.a.createElement(g.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),S=Object(d.b)(w);i.a.render(a.a.createElement(a.a.StrictMode,null,a.a.createElement(S,null)),document.getElementById("root"))}},[[126,1,2]]]);
//# sourceMappingURL=main.b678ef52.chunk.js.map