(this.webpackJsonpstreamlit_antd_cards=this.webpackJsonpstreamlit_antd_cards||[]).push([[0],{102:function(e,t,a){e.exports=a(176)},176:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(26),o=a.n(c),i=a(1),l=a(2),s=a(30),p=a(3),u=a(4),d=a(66),h=a(183),m=a(184),k=a(185),f=a(186),g=a(180),v=a(181),_=g.a.Meta,y=function(e,t){return e.length>t?"".concat(e.substring(0,t),"..."):e},E=function(e){Object(p.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(i.a)(this,a);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(e=t.call.apply(t,[this].concat(c))).render=function(){var t=e.props.args.items,a=[],n=Object(s.a)(e);return t.forEach((function(t,c){var o=[];e.props.args.show_delete_action&&o.push(r.a.createElement(h.a,{key:"delete",onClick:function(){return n.onClick(t,"delete")}})),e.props.args.show_setting_action&&o.push(r.a.createElement(m.a,{key:"setting",onClick:function(){return n.onClick(t,"setting")}})),e.props.args.show_edit_action&&o.push(r.a.createElement(k.a,{key:"edit",onClick:function(){return n.onClick(t,"edit")}})),e.props.args.show_open_action&&o.push(r.a.createElement(f.a,{key:"open",onClick:function(){return n.onClick(t,"open")}})),a.push(r.a.createElement(g.a,{key:"card-".concat(t.id),hoverable:!0,style:{width:240,margin:"15px"},cover:t.cover?r.a.createElement("img",{alt:t.cover,src:t.cover,width:240,height:160}):null,actions:o},r.a.createElement(_,{avatar:t.avatar?r.a.createElement(v.a,{src:t.avatar}):null,title:t.title,description:y(t.description,e.props.args.desc_max_len)})))})),r.a.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},a)},e}return Object(l.a)(a,[{key:"onClick",value:function(e,t){d.a.setComponentValue({action:t,payload:e})}}]),a}(d.b),b=Object(d.c)(E);a(175);o.a.render(r.a.createElement(r.a.StrictMode,null,r.a.createElement(b,null)),document.getElementById("root"))}},[[102,1,2]]]);
//# sourceMappingURL=main.39d21fe9.chunk.js.map