(this["webpackJsonpchaos-platform-fe"]=this["webpackJsonpchaos-platform-fe"]||[]).push([[20],{779:function(e,t,a){"use strict";a.r(t);a(570);var c=a(571),s=(a(620),a(619)),n=a(67),i=a(68),o=a(69),r=a(70),l=(a(260),a(112)),h=(a(396),a(170)),j=(a(600),a(602)),b=a(1),d=a.n(b),u=a(766),O=(a(675),a(677)),p=a(59),f=a(90),v=a(12),x=a(16),m=a.n(x),y=a(268),C=a(780),g=a(781),k=a(782),w=a(783),P=a(10),E=function(e){Object(o.a)(a,e);var t=Object(r.a)(a);function a(e){return Object(n.a)(this,a),t.call(this,e)}return Object(i.a)(a,[{key:"fetchPublicChaostoolsList",value:function(){var e=this;(0,this.props.fetchPublicChaostools)((function(t){var a=t.publics;m.a.isEmpty(a)||a.map((function(t){e.fetchChaostoolsOverview(t)}))}))}},{key:"fetchChaostoolsOverview",value:function(e){var t=this.props.fetchChaostoolsOverview;t(e)}},{key:"componentDidMount",value:function(){this.fetchPublicChaostoolsList()}},{key:"detail",value:function(e,t,a){var c=this.props.history,s={name:e,version:t};m.a.isEmpty(a)||(s=Object(p.a)(Object(p.a)({},s),{},{anchor:a})),c.push("/chaostools/market/detail/?".concat(y.a(Object(p.a)({},s))))}},{key:"deployed",value:function(e,t){var a={name:e,version:t};this.props.history.push("/chaostools/market/deployed/?".concat(y.a(Object(p.a)({},a))))}},{key:"render",value:function(){var e=this,t=this.props,a=t.chaostools,c=t.loading;return Object(P.jsx)(O.b,{loading:c,style:{marginTop:16},itemLayout:"vertical",size:"large",split:!0,pagination:{pageSize:10},dataSource:a||[],renderItem:function(t){return Object(P.jsxs)(O.b.Item,{actions:[Object(P.jsxs)(h.b,{children:[Object(P.jsx)(C.a,{}),Object(P.jsx)("a",{onClick:e.detail.bind(e,t.name,t.latest,"scenarios"),children:"\u573a\u666f\u5217\u8868"})]}),Object(P.jsxs)(h.b,{children:[Object(P.jsx)(g.a,{}),Object(P.jsx)("a",{onClick:e.detail.bind(e,t.name,t.latest,"scenarios"),children:"\u5bfc\u5165&\u66f4\u65b0\u573a\u666f"})]}),Object(P.jsxs)(h.b,{children:[Object(P.jsx)(k.a,{}),Object(P.jsx)("a",{onClick:e.deployed.bind(e,t.name,t.latest,"deployed"),children:"\u90e8\u7f72&\u66f4\u65b0\u5de5\u5177"})]}),Object(P.jsxs)(h.b,{children:[Object(P.jsx)(w.a,{}),Object(P.jsx)("a",{onClick:e.detail.bind(e,t.name,t.latest,"information"),children:"\u67e5\u770b\u66f4\u591a\u8be6\u60c5"})]})],extra:Object(P.jsx)("img",{height:150,width:200,alt:"logo",src:t.logo}),children:[Object(P.jsx)(O.b.Item.Meta,{title:Object(P.jsxs)("a",{href:t.href,children:[t.title,"(v",t.latest,")"]}),description:t.description}),t.readme]},t.title)}})}}]),a}(d.a.Component),I=Object(f.b)((function(e){var t=e.chaostools.toJS();return{chaostools:t.chaostools,publics:t.publics,loading:t.loading}}),(function(e){return{fetchPublicChaostools:function(t){return e(v.a.fetchPublicChaostools(t))},fetchChaostoolsOverview:function(t){return e(v.a.fetchChaostoolsOverview(t))}}}))(E),J=j.a.Paragraph,L=function(e){var t=e.icon,a=e.text;e.onClick;return Object(P.jsxs)(h.b,{children:[d.a.createElement(t),Object(P.jsx)("a",{children:a})]})},S=function(e){var t=e.children,a=e.extraContent;return Object(P.jsxs)(l.a,{children:[Object(P.jsx)("div",{style:{flex:1},children:t}),Object(P.jsx)("div",{className:"image",children:a})]})},z=function(e){Object(o.a)(a,e);var t=Object(r.a)(a);function a(){var e;Object(n.a)(this,a);for(var c=arguments.length,i=new Array(c),o=0;o<c;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).headerRender=function(){return Object(P.jsx)(s.a,{style:{paddingBottom:16},title:"\u6df7\u6c8c\u5b9e\u9a8c\u5de5\u5177\u5e02\u573a",subTitle:"\u9009\u62e9\u6709\u5f88\u591a\uff0c\u5c06\u6765\u4f1a\u66f4\u591a...",tags:Object(P.jsx)(L,{icon:u.a,text:"Github"},"list-vertical-star-o"),children:Object(P.jsxs)(S,{children:[Object(P.jsx)(J,{children:"\u5e02\u573a\u4ecb\u7ecd"}),Object(P.jsx)(J,{children:"\u90e8\u7f72\u6d41\u7a0b\uff1a\u5bfc\u5165\u573a\u666f-\u90e8\u7f72\u6f14\u7ec3\u5de5\u5177"})]})})},e}return Object(i.a)(a,[{key:"render",value:function(){return Object(P.jsxs)("div",{children:[this.headerRender(),Object(P.jsx)(c.a,{dashed:!0}),Object(P.jsx)(I,{history:this.props.history})]})}}]),a}(d.a.Component);t.default=z}}]);
//# sourceMappingURL=20.040ce829.chunk.js.map