(this.webpackJsonp=this.webpackJsonp||[]).push([[151],{dEUZ:function(e,t,a){},p6ow:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(a("W9HT")),r=m(a("NUBc")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(a.push(u.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&i.return&&i.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("T2oS"),a("DjyN");var u=a("cDcd"),i=m(u),c=a("spEH");a("dEUZ");var o=m(a("vDqi")),s=m(a("2CTR")),d=a("sYIF"),f=a("eO8H");function m(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,u.useState)(void 0),a=l(t,2),m=a[0],p=a[1],h=(0,u.useState)(1),g=l(h,2),E=g[0],v=g[1],y=(0,u.useState)(0),b=l(y,2),w=b[0],N=b[1],S=(0,u.useState)(!0),x=l(S,2),_=x[0],j=x[1],k=e.match.params.owner,I=e.match.params.projectsId;return(0,u.useEffect)((function(){k&&I&&function(){j(!0);var e="/"+k+"/"+I+"/contributors.json";o.default.get(e,{params:{limit:20,page:E}}).then((function(e){e&&(p(e.data.list),N(e.data.total_count),j(!1))})).catch((function(e){}))}()}),[k,I,E]),i.default.createElement(c.WhiteBack,null,i.default.createElement(n.default,{spinning:_},i.default.createElement("div",{className:"boxPanel"},i.default.createElement("p",{className:"font-18 padding10-20",style:{borderBottom:"1px solid #eee"}},"贡献者列表"),m&&m.length>0?i.default.createElement("div",{className:"contrbuteList"},m.map((function(e,t){return i.default.createElement(c.AlignCenter,null,i.default.createElement("img",{alt:"",style:{borderRadius:"50%",marginRight:"10px"},src:(0,d.getImageUrl)("/"+e.image_url),width:"50px",height:"50px"}),i.default.createElement("div",null,i.default.createElement(f.Link,{to:"/"+e.login,className:"font-16"},e.name),i.default.createElement("p",{className:"font-12 color-grey-9"},"提交",e.contributions,"次")))}))):"",m&&0===m.length?i.default.createElement(s.default,{_html:"暂无贡献者"}):"",w>20?i.default.createElement("div",{className:"mt20 edu-txt-center"},i.default.createElement(r.default,{simple:!0,pageSize:20,onChange:function(e){v(e)},current:E,total:w})):"")))}}}]);