text: webpackJsonp([7],{733:function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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}function l(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)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),c=n.n(o),i=n(8),u=n(32),s=(n.n(u),n(109)),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),f=n(42),p=function(e){function t(e){a(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.page=1,n.state={list:[],page:1,count:0},n}return l(t,e),m(t,[{key:"componentDidMount",value:function(){this.loadUnconfirmedList(1)}},{key:"loadUnconfirmedList",value:function(e){var t=Object(u.getShareHost)()+"/btb?action=unconfirmedList&page="+e;f.concat(t,function(e,t,n){if(!e)try{var a=JSON.parse(n),r=a.transactions,l=a.count;this.setState({list:r,count:l})}catch(e){}}.bind(this))}},{key:"prePage",value:function(){this.state.page>1&&(this.state.page--,this.loadUnconfirmedList(this.state.page))}},{key:"nextPage",value:function(){this.state.page++,this.loadUnconfirmedList(this.state.page)}},{key:"renderBlockList",value:function(){var e=this.state.list;return e?e.map(function(e){return c.a.createElement("tr",null,c.a.createElement("td",null,Object(u.getTransactionName)(e.type)),c.a.createElement("td",null,c.a.createElement(s.a,{rsId:e.from})),c.a.createElement("td",null,c.a.createElement(s.a,{rsId:e.to})),c.a.createElement("td",null,e.amount," BTB"),c.a.createElement("td",null,e.fee," BTB"),c.a.createElement("td",null,e.height))}):null}},{key:"renderList",value:function(){var e=this;return this.state.list?c.a.createElement(i.Q,null,c.a.createElement(i.k,null,c.a.createElement(i.g,null,c.a.createElement(i.h,null,c.a.createElement(i.T,{hover:!0,bordered:!0,striped:!0,responsive:!0,size:"sm"},c.a.createElement("thead",null,c.a.createElement("tr",null,c.a.createElement("th",null,"Type(\u4ea4\u6613\u7c7b\u578b)"),c.a.createElement("th",null,"From(\u53d1\u8d77\u8d26\u6237)"),c.a.createElement("th",null,"To(\u63a5\u6536\u8d26\u6237)"),c.a.createElement("th",null,"Amount(\u91d1\u989d)"),c.a.createElement("th",null,"Fee(\u624b\u7eed\u8d39)"),c.a.createElement("th",null,"Height(\u533a\u5757\u9ad8\u5ea6)"))),c.a.createElement("tbody",null,this.renderBlockList())),c.a.createElement("nav",null,c.a.createElement(i.J,null,c.a.createElement(i.K,null,c.a.createElement(i.L,{previous:!0,tag:"button",onClick:function(t){e.prePage()}},"Prev(\u4e0a\u4e00\u9875)")),c.a.createElement(i.K,{active:!0},c.a.createElement(i.L,{tag:"button"},this.state.page," - Total\uff08\u5171\uff09(",this.state.count,")")),c.a.createElement(i.K,null,c.a.createElement(i.L,{next:!0,tag:"button",onClick:function(t){e.nextPage()}},"Next(\u4e0b\u4e00\u9875)")))))))):null}},{key:"render",value:function(){return c.a.createElement("div",{className:"animated fadeIn"},this.renderList())}}]),t}(o.Component);t.default=p}});
  //# sourceMappingURL=7.d6929370.chunk.js.map