(this.webpackJsonp=this.webpackJsonp||[]).push([[82],{"2CTR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n("q1tI"),l=o(a),u=o(n("dF3D"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e._html,n=e.small;return l.default.createElement("div",{className:n?"none_panels small":"none_panels"},l.default.createElement("div",null,l.default.createElement("img",{src:u.default,alt:""}),l.default.createElement("div",{className:"none_p_title"},t)))}}]),t}(a.Component);t.default=f},dEUZ:function(e,t,n){},dF3D:function(e,t){e.exports="data:image/png;base64,[encoded data, 7836 characters]"},p6ow:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n("W9HT")),a=p(n("NUBc")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var u,o=e[Symbol.iterator]();!(r=(u=o.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("04bd"),n("YQTV");var u=n("q1tI"),o=p(u),s=n("spEH");n("dEUZ");var c=p(n("vDqi")),f=p(n("2CTR")),i=n("sYIF"),d=n("eO8H");function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,u.useState)(void 0),n=l(t,2),p=n[0],A=n[1],b=(0,u.useState)(1),E=l(b,2),m=E[0],g=E[1],w=(0,u.useState)(0),h=l(w,2),v=h[0],y=h[1],O=(0,u.useState)(!0),D=l(O,2),Z=D[0],z=D[1],R=e.match.params.owner,k=e.match.params.projectsId;return(0,u.useEffect)((function(){R&&k&&function(){z(!0);var e="/"+R+"/"+k+"/contributors.json";c.default.get(e,{params:{limit:20,page:m}}).then((function(e){e&&(A(e.data.contributors),y(e.data.total_count),z(!1))})).catch((function(e){}))}()}),[R,k,m]),o.default.createElement(s.WhiteBack,null,o.default.createElement(r.default,{spinning:Z},o.default.createElement("div",{className:"boxPanel"},o.default.createElement("p",{className:"font-18 mb20"},"贡献者列表"),p&&p.length>0?o.default.createElement("div",{className:"contrbuteList"},p.map((function(e,t){return o.default.createElement(s.AlignCenter,null,o.default.createElement("img",{alt:"",style:{borderRadius:"50%",marginRight:"10px"},src:(0,i.getImageUrl)("images/"+e.image_url),width:"50px",height:"50px"}),o.default.createElement("div",null,o.default.createElement(d.Link,{to:"/users/"+e.login,className:"font-16"},e.name),o.default.createElement("p",{className:"font-12 color-grey-9"},"提交",e.contributions,"次")))}))):"",p&&0===p.length?o.default.createElement(f.default,{_html:"暂无贡献者"}):"",v>20?o.default.createElement("div",{className:"mt20 edu-txt-center"},o.default.createElement(a.default,{simple:!0,pageSize:20,onChange:function(e){g(e)},current:m,total:v})):"")))}}}]);