-
Notifications
You must be signed in to change notification settings - Fork 2
/
explorer.9b3ea44f8c9a3239efaf.js
2 lines (2 loc) · 68.5 KB
/
explorer.9b3ea44f8c9a3239efaf.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1753:function(e,t,n){"use strict";n.d(t,"b",function(){return E}),n.d(t,"a",function(){return v});var a=n(0),r=n.n(a),o=n(1),i=n.n(o),l=n(5),s=n.n(l),c=n(35),u=n(23),m=n(22),p=n(14),f=n.n(p),d=n(2073),b=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}}();function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 y(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)}var v=function(e){function t(){return h(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return y(t,r.a.Component),b(t,[{key:"render",value:function(){var e=this.props,t=e.isActive,n=e.index,a=e.changeTab,o=e.title,i=e.className,l=e.updatedTab,c=e.disabled,u=e.subText,m=s()({"is-active":t},i);return"string"==typeof o&&o.indexOf(".")>0&&(o=f.a.translate(o)),this.props.collapsed?("string"==typeof u&&(u=u.trim()),r.a.createElement("option",{value:n,"data-is-link-to":this.props.isLinkTo},r.a.createElement("span",{className:"tab-title"},o,l?"*":"",u&&" (",u&&u,u&&")"))):r.a.createElement("li",{className:m,onClick:c?null:a.bind(this,n,this.props.isLinkTo)},r.a.createElement("a",null,r.a.createElement("span",{className:"tab-title"},o,l?"*":""),u&&r.a.createElement("div",{className:"tab-subtext"},u)))}}]),t}();v.propTypes={changeTab:i.a.func,isActive:i.a.bool.isRequired,index:i.a.number.isRequired,className:i.a.string,isLinkTo:i.a.string,subText:i.a.oneOfType([i.a.object,i.a.string])},v.defaultProps={isActive:!1,index:0,className:"",isLinkTo:"",subText:null};var E=function(e){function t(e){h(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={activeTab:e.setting?e.viewSettings.get(e.setting,e.defaultActiveTab):e.defaultActiveTab,width:window.innerWidth},n._setDimensions=n._setDimensions.bind(n),n}return y(t,r.a.Component),b(t,[{key:"componentDidMount",value:function(){this._setDimensions(),window.addEventListener("resize",this._setDimensions,{capture:!1,passive:!0})}},{key:"componentWillReceiveProps",value:function(e){var t=e.viewSettings.get(e.setting);t!==this.props.viewSettings.get(this.props.setting)&&this.setState({activeTab:t})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._setDimensions)}},{key:"_setDimensions",value:function(){var e=window.innerWidth;e!==this.state.width&&this.setState({width:e})}},{key:"_changeTab",value:function(e,t){e!==this.state.activeTab&&(""!==t&&this.props.history.push(t),this.props.setting&&u.a.changeViewSetting(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.setting,e)),this.setState({activeTab:e}),this.props.onChangeTab&&this.props.onChangeTab(e))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,a=t.contentClass,o=t.tabsClass,i=t.style,l=t.segmented,c=this.state.width<900&&r.a.Children.count(n)>2,u=null,m=r.a.Children.map(n,function(t,n){if(!t)return null;if(c&&t.props.disabled)return null;var a=n===e.state.activeTab;return a&&(u=t.props.children),r.a.cloneElement(t,{collapsed:c,isActive:a,changeTab:e._changeTab.bind(e),index:n})}).filter(function(e){return null!==e});return u||(u=m[0].props.children),r.a.createElement("div",{className:s()(this.props.actionButtons?"with-buttons":"",this.props.className)},r.a.createElement("div",{className:"service-selector"},r.a.createElement("ul",{style:i,className:s()("button-group no-margin",o,{segmented:l})},c?r.a.createElement("li",{style:{paddingLeft:10,paddingRight:10,minWidth:"15rem"}},r.a.createElement("select",{value:this.state.activeTab,style:{marginTop:10,marginBottom:10},className:"bts-select",onChange:function(t){var n=parseInt(t.target.value,10);e._changeTab(n,t.target[n].attributes["data-is-link-to"].value)}},m)):m,this.props.actionButtons?r.a.createElement("li",{className:"tabs-action-buttons"},this.props.actionButtons):null)),r.a.createElement("div",{className:s()("tab-content",a)},u))}}]),t}();E.propTypes={setting:i.a.string,defaultActiveTab:i.a.number,segmented:i.a.bool},E.defaultProps={active:0,defaultActiveTab:0,segmented:!0,contentClass:"",style:{}},E=Object(c.a)(E,{listenTo:function(){return[m.a]},getProps:function(){return{viewSettings:m.a.getState().viewSettings}}}),E=Object(d.a)(E)},1768:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(270),i=n(14),l=n.n(i),s=n(1756),c=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}}();var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={page:1,pageSize:e.pageSize},n}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,r.a.Component),c(t,[{key:"onChange",value:function(e,t){this.setState({page:e,pageSize:t})}},{key:"render",value:function(){var e=this,t=this.state,n=t.page,a=t.pageSize,i=this.props,c=i.header,u=i.rows,m=i.extraRow,p=u.length,f=d(n,a);function d(e,t){for(var n=[],a=(e-1)*t;a<Math.min(p,e*t);a++)n.push(u[a]);return n}return!f.length&&p&&(f=d(1,a)),r.a.createElement("div",{className:"grid-content",style:this.props.style},r.a.createElement("table",{className:this.props.className},c?r.a.createElement("thead",null,c):null,this.props.withTransition&&1===n?r.a.createElement(s.a,{component:"tbody",transitionName:"newrow"},f,m):r.a.createElement("tbody",null,f,m)),p>a?r.a.createElement(o.a,{style:{paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:this.props.leftPadding||null},total:p,showTotal:function(t){return l.a.translate(e.props.label,{count:t})},pageSize:a,current:n,onChange:this.onChange.bind(this)}):null,this.props.children)}}]),t}();u.defaultProps={rows:[],pageSize:15,label:"utility.total_x_items",className:"table",extraRow:null,style:{paddingBottom:"1rem"}},t.a=u},1804:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(39),i=n(48),l=n(141),s=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}}();var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),s(t,[{key:"render",value:function(){var e=this.props.witness.get("witness_account");return r.a.createElement(l.a,{account:e})}}]),t}();c.propTypes={witness:o.a.ChainObject.isRequired},c=Object(i.a)(c),t.a=c},1929:function(e,t,n){},2066:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(1753),i=n(14),l=n.n(i),s=n(11),c=n.n(s),u=n(336),m=n(39),p=n(48),f=n(10),d=n(32),b=n(3),h=n.n(b),g=n(531),y=n(35),v=n(23),E=n(22),_=n(5),k=n.n(_),w=n(2073),O=n(69),x=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}}();function j(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}function T(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)}n(1929);var N=function(e){function t(){return j(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,r.a.Component),x(t,[{key:"_onCardClick",value:function(e){e.preventDefault(),this.props.history.push("/account/"+this.props.witness.get("name"))}},{key:"render",value:function(){var e=f.ChainStore.getWitnessById(this.props.witness.get("id"));if(!e)return null;var t=e.get("total_votes"),n=e.get("last_aslot"),a={};a=this.props.most_recent-n>100?{borderLeft:"1px solid #FCAB53"}:{borderLeft:"1px solid #50D2C2"};var o=new Date(Date.now()-(this.props.most_recent-n)*f.ChainStore.getObject("2.0.0").getIn(["parameters","block_interval"])*1e3);return r.a.createElement("div",{className:"grid-content account-card",onClick:this._onCardClick.bind(this)},r.a.createElement("div",{className:"card",style:a},r.a.createElement("h4",{className:"text-center"},"#",this.props.rank,": ",this.props.witness.get("name")),r.a.createElement("div",{className:"card-content"},r.a.createElement("div",{className:"text-center"},r.a.createElement(u.a,{account:this.props.witness.get("name"),size:{height:64,width:64}})),r.a.createElement("br",null),r.a.createElement("table",{className:"table key-value-table"},r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,"Votes"),r.a.createElement("td",null,r.a.createElement(d.a,{amount:t,asset:"1.3.0",decimalOffset:5}))),r.a.createElement("tr",null,r.a.createElement("td",null,"Last Block"),r.a.createElement("td",null,r.a.createElement(g.a,{time:new Date(o)}))),r.a.createElement("tr",null,r.a.createElement("td",null,"Missed"),r.a.createElement("td",null,e.get("total_missed"))))))))}}]),t}();N.propTypes={witness:m.a.ChainAccount.isRequired},N=Object(p.a)(N),N=Object(w.a)(N);var S=function(e){function t(){return j(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,r.a.Component),x(t,[{key:"_onRowClick",value:function(e){e.preventDefault(),this.props.history.push("/account/"+this.props.witness.get("name"))}},{key:"render",value:function(){var e=this.props,t=e.witness,n=e.isCurrent,a=e.rank,o=f.ChainStore.getWitnessById(this.props.witness.get("id"));if(!o)return null;o.get("total_votes");var i=o.get("last_aslot"),l={};l=this.props.most_recent-i>100?{borderLeft:"1px solid #FCAB53"}:{borderLeft:"1px solid #50D2C2"};var s=new Date(Date.now()-(this.props.most_recent-i)*f.ChainStore.getObject("2.0.0").getIn(["parameters","block_interval"])*1e3),c=n?"active-witness":"",u=o.get("total_missed"),m=k()("txtlabel",{success:u<=500},{info:u>500&&u<=1250},{warning:u>1250&&u<=2e3},{error:u>=200});return r.a.createElement("tr",{className:c,onClick:this._onRowClick.bind(this)},r.a.createElement("td",null,a),r.a.createElement("td",{style:l},t.get("name")),r.a.createElement("td",null,r.a.createElement(g.a,{time:new Date(s)})),r.a.createElement("td",null,o.get("last_confirmed_block_num")),r.a.createElement("td",{className:m},u),r.a.createElement("td",null,r.a.createElement(d.a,{amount:o.get("total_votes"),asset:"1.3.0",decimalOffset:5})))}}]),t}();S.propTypes={witness:m.a.ChainAccount.isRequired},S=Object(p.a)(S),S=Object(w.a)(S);var P=function(e){function t(){j(this,t);var e=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={sortBy:"rank",inverseSort:!0},e.handleBlockIdClick=e.handleBlockIdClick.bind(e),e}return T(t,r.a.Component),x(t,[{key:"_setSort",value:function(e){this.setState({sortBy:e,inverseSort:e===this.state.sortBy?!this.state.inverseSort:this.state.inverseSort})}},{key:"handleBlockIdClick",value:function(e){var t=this;return function(){t.props.history.push("/block/"+e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.witnesses,a=t.current,o=(t.cardView,t.witnessList),i=this.state,l=(i.sortBy,i.inverseSort,0),s={};n.filter(function(e){return!!e&&-1!==o.indexOf(e.get("id"))}).sort(function(e,t){if(e&&t)return parseInt(t.get("total_votes"),10)-parseInt(e.get("total_votes"),10)}).forEach(function(e,t){if(e){var n=e.get("last_aslot");l<n&&(l=n),s[e.get("id")]=t+1}});var c=[];n.length>0&&n[1]&&(c=n.filter(function(t){if(!t)return!1;var n=f.ChainStore.getObject(t.get("witness_account"));if(!n)return!1;if(!f.ChainStore.getWitnessById(n.get("id")))return!1;var a=n.get("name");return!!a&&-1!==a.indexOf(e.props.filter)}).map(function(t){var n=f.ChainStore.getObject(t.get("witness_account")),a=f.ChainStore.getWitnessById(n.get("id")),r=a.get("last_aslot"),o=new Date(Date.now()-(e.props.current_aslot-r)*f.ChainStore.getObject("2.0.0").getIn(["parameters","block_interval"])*1e3);return{id:t.get("id"),key:n.get("name"),rank:s[t.get("id")],name:n.get("name"),signing_key:a.get("signing_key"),url:a.get("url"),lastConfirmedBlock:{id:a.get("last_confirmed_block_num"),timestamp:o.getTime()},blocksMissed:a.get("total_missed"),votes:a.get("total_votes")}}));var u=[{key:"#",title:"#",dataIndex:"rank",sorter:function(e,t){return e.rank>t.rank?1:e.rank<t.rank?-1:0}},{key:"name",title:"NAME",dataIndex:"name",sorter:function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}},{key:"url",title:"URL",dataIndex:"url",align:"center",render:function(e){return r.a.createElement("div",{style:{width:"100%",textAlign:"center"}},e&&function(e){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(e)}(e)&&function(e){return r.a.createElement(O.Popover,{content:r.a.createElement("a",{href:e,target:"_blank"},e),trigger:"hover"},r.a.createElement(O.Icon,{type:"link"}))}(e)||null)}},{key:"lastConfirmedBlock",title:"LAST CONFIRMED BLOCK",dataIndex:"lastConfirmedBlock",render:function(t){return r.a.createElement("span",null,r.a.createElement("a",{style:{display:"inline-block",minWidth:"100px"},href:"javascript:void(0)",onClick:e.handleBlockIdClick(t.id)},"#",Number(t.id).toLocaleString())," ",r.a.createElement(g.a,{time:new Date(t.timestamp)}))},sorter:function(e,t){return e.lastConfirmedBlock.timestamp>t.lastConfirmedBlock.timestamp?-1:e.lastConfirmedBlock.timestamp<t.lastConfirmedBlock.timestamp?1:0}},{key:"blocksMissed",title:"BLOCKS MISSED",dataIndex:"blocksMissed",render:function(e){var t=k()("txtlabel",{success:e<=500},{info:e>500&&e<=1250},{warning:e>1250&&e<=2e3},{error:e>=200});return r.a.createElement("span",{className:t},e)},sorter:function(e,t){return e.blocksMissed>t.blocksMissed?1:e.blocksMissed<t.blocksMissed?-1:0}},{key:"votes",title:"VOTES",dataIndex:"votes",render:function(e){return r.a.createElement(d.a,{amount:e,asset:"1.3.0",decimalOffset:5})},sorter:function(e,t){return e.votes>t.votes?1:e.votes<t.votes?-1:0}},{key:"key",title:"KEY",dataIndex:"signing_key",align:"center",render:function(e){return r.a.createElement("div",{style:{textAlign:"center",width:"100%"}},function(e){return r.a.createElement(O.Popover,{content:r.a.createElement("span",null,e),trigger:"hover"},r.a.createElement(O.Icon,{type:"key"}))}(e))}}];return r.a.createElement(O.Table,{rowClassName:function(e){return e.id===a?"active-witness":""},columns:u,dataSource:c,pagination:!1})}}]),t}();P.propTypes={witnesses:m.a.ChainObjectsList.isRequired},P=Object(p.a)(P,{show_loader:!0}),P=Object(w.a)(P);var A=function(e){function t(e){j(this,t);var n=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={filterWitness:e.filterWitness||"",cardView:e.cardView},n}return T(t,r.a.Component),x(t,[{key:"_onFilter",value:function(e){e.preventDefault(),this.setState({filterWitness:e.target.value.toLowerCase()}),v.a.changeViewSetting({filterWitness:e.target.value.toLowerCase()})}},{key:"_toggleView",value:function(){v.a.changeViewSetting({cardView:!this.state.cardView}),this.setState({cardView:!this.state.cardView})}},{key:"render",value:function(){var e=this.props,t=e.dynGlobalObject,n=e.globalObject;t=t.toJS(),n=n.toJS();var a=f.ChainStore.getObject(t.current_witness),o=null;return a&&(o=f.ChainStore.getObject(a.get("witness_account"))),r.a.createElement("div",{className:"grid-block"},r.a.createElement("div",{className:"grid-block"},r.a.createElement("div",{className:"grid-block"},r.a.createElement("div",{className:"grid-content "},r.a.createElement("div",{className:"explore-witness--info"},r.a.createElement("table",null,r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.witnesses.current"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.blocks.active_witnesses"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.witnesses.participation"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.witnesses.pay"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.witnesses.budget"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.witnesses.next_vote"})))),r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,o?o.get("name"):null),r.a.createElement("td",null,Object.keys(n.active_witnesses).length),r.a.createElement("td",null,t.participation,"%"),r.a.createElement("td",null,r.a.createElement(d.a,{amount:n.parameters.witness_pay_per_block,asset:"1.3.0"})),r.a.createElement("td",null," ",r.a.createElement(d.a,{amount:t.witness_budget,asset:"1.3.0"})),r.a.createElement("td",null," ",r.a.createElement(g.a,{time:new Date(t.next_maintenance_time+"Z")})))))),r.a.createElement(O.Input,{placeholder:l.a.translate("explorer.witnesses.filter_by_name"),onChange:this._onFilter.bind(this),style:{width:"200px",marginBottom:"12px",marginTop:"4px"},addonAfter:r.a.createElement(O.Icon,{type:"search"})}),r.a.createElement(P,{current_aslot:t.current_aslot,current:a?a.get("id"):null,witnesses:c.a.List(n.active_witnesses),witnessList:n.active_witnesses,filter:this.state.filterWitness,cardView:this.state.cardView})))))}}]),t}();A.propTypes={globalObject:m.a.ChainObject.isRequired,dynGlobalObject:m.a.ChainObject.isRequired},A.defaultProps={globalObject:"2.0.0",dynGlobalObject:"2.1.0"},A=Object(p.a)(A);var B=function(e){function t(){return j(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return T(t,r.a.Component),x(t,[{key:"render",value:function(){return r.a.createElement(A,this.props)}}]),t}(),D=B=Object(y.a)(B,{listenTo:function(){return[E.a]},getProps:function(){return{cardView:E.a.getState().viewSettings.get("cardView"),filterWitness:E.a.getState().viewSettings.get("filterWitness")}}}),L=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}}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(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 R(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)}var W=function(e){function t(){return I(this,t),M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return R(t,r.a.Component),L(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.committee_members,a=t.membersList,o=null,i={};n.filter(function(e){return!!e&&-1!==a.indexOf(e.get("id"))}).forEach(function(e,t){e&&(i[e.get("id")]=t+1)}),n.length>0&&n[1]&&(o=n.filter(function(t){if(!t)return!1;var n=f.ChainStore.getObject(t.get("committee_member_account"));return!!n&&(!!f.ChainStore.getCommitteeMemberById(n.get("id"))&&-1!==n.get("name").indexOf(e.props.filter||""))}).map(function(e){var t=f.ChainStore.getObject(e.get("committee_member_account")),n=f.ChainStore.getCommitteeMemberById(t.get("id"));return{key:e.get("id"),rank:i[e.get("id")],name:t.get("name"),votes:n.get("total_votes"),url:n.get("url")}}));var l=[{key:"#",title:"#",dataIndex:"rank",sorter:function(e,t){return e.rank>t.rank?1:e.rank<t.rank?-1:0}},{key:"name",title:"NAME",dataIndex:"name",sorter:function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}},{key:"votes",title:"VOTES",dataIndex:"votes",render:function(e){return r.a.createElement(d.a,{amount:e,asset:"1.3.0",decimalOffset:5})},sorter:function(e,t){return e.votes>t.votes?1:e.votes<t.votes?-1:0}},{key:"url",title:"WEBPAGE",dataIndex:"url",render:function(e){return r.a.createElement("a",{href:e,target:"_blank"},e)}}];return r.a.createElement(O.Table,{columns:l,dataSource:o,pagination:!1})}}]),t}();W.propTypes={committee_members:m.a.ChainObjectsList.isRequired},W=Object(p.a)(W,{show_loader:!0});var z=function(e){function t(e){I(this,t);var n=M(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={filterCommitteeMember:e.filterCommitteeMember||""},n}return R(t,r.a.Component),L(t,[{key:"shouldComponentUpdate",value:function(e,t){return!c.a.is(e.globalObject,this.props.globalObject)||t.filterCommitteeMember!==this.state.filterCommitteeMember||t.cardView!==this.state.cardView}},{key:"_onFilter",value:function(e){e.preventDefault(),this.setState({filterCommitteeMember:e.target.value.toLowerCase()}),v.a.changeViewSetting({filterCommitteeMember:e.target.value.toLowerCase()})}},{key:"render",value:function(){var e=this.props.globalObject;e=e.toJS();var t=[];for(var n in e.active_committee_members)e.active_committee_members.hasOwnProperty(n)&&t.push(e.active_committee_members[n]);return r.a.createElement("div",{className:"grid-block"},r.a.createElement("div",{className:"grid-block vertical medium-horizontal"},r.a.createElement("div",{className:"grid-block vertical"},r.a.createElement("div",{className:"grid-content"},r.a.createElement(O.Input,{placeholder:l.a.translate("explorer.witnesses.filter_by_name"),onChange:this._onFilter.bind(this),style:{width:"200px",marginBottom:"12px",marginTop:"4px"},addonAfter:r.a.createElement(O.Icon,{type:"search"})}),r.a.createElement(W,{filter:this.state.filterCommitteeMember,committee_members:c.a.List(e.active_committee_members),membersList:e.active_committee_members})))))}}]),t}();z.propTypes={globalObject:m.a.ChainObject.isRequired},z.defaultProps={globalObject:"2.0.0"},z=Object(p.a)(z);var F=function(e){function t(){return I(this,t),M(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return R(t,r.a.Component),L(t,[{key:"render",value:function(){return r.a.createElement(z,this.props)}}]),t}(),U=F=Object(y.a)(F,{listenTo:function(){return[E.a]},getProps:function(){return{cardView:E.a.getState().viewSettings.get("cardViewCommittee"),filterCommitteeMember:E.a.getState().viewSettings.get("filterCommitteeMember")}}}),V=n(129),H=n(526),q=n(1770),G=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}}();function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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 Y(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)}var Z=f.ChainTypes.operations,Q=Object.keys(Z),X={general:[0,25,26,27,28,32,33,37,39,40,41],asset:[10,11,12,13,14,15,16,17,18,19,38,42,43,44,47,48],market:[1,2,3,4,45,46],account:[5,6,7,8,9],business:[20,21,22,23,24,29,30,31,34,35,36]},$=[5,7,20,21,34],ee=function(e){function t(e){return J(this,t),K(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return Y(t,r.a.Component),G(t,[{key:"shouldComponentUpdate",value:function(e){return!c.a.is(e.globalObject,this.props.globalObject)}},{key:"render",value:function(){var e=this.props,t=e.globalObject,n=e.settings,a=e.opIds;e.title;t=t.toJSON();var o=f.ChainStore.getAsset("1.3.0"),i=t.parameters.current_fees,s=t.parameters.network_percent_of_fee/1e4,c=i.scale,u=i.parameters,m=n.get("unit")||o.get("symbol"),p=l.a.translate("transaction.trxTypes"),b=a.map(function(e){var t=u.findIndex(function(t){return t[0]===e});if(-1!==t){var n=u[t],a=n[0],o=n[1],i=Q[a],f=p[i],b=s;10===a&&(b=.5+.5*s);var h=[],g=!1,y=k()("label","info");for(var v in o){var E=o[v]*c/1e4,_=E*b,w=l.a.translate("transaction.feeTypes"),O=E?r.a.createElement(d.a,{amount:E,asset:"1.3.0"}):w._none,x=E?r.a.createElement(q.b,{fromAsset:"1.3.0",fullPrecision:!0,amount:E,toAsset:m,fullDecimals:!0}):w._none,j=_?r.a.createElement(d.a,{amount:_,asset:"1.3.0"}):w._none,C=_?r.a.createElement(q.b,{fromAsset:"1.3.0",fullPrecision:!0,amount:_,toAsset:m,fullDecimals:!0}):w._none,T=null;g||(g=!0,T=r.a.createElement("td",{rowSpan:"6",style:{width:"15em"}},r.a.createElement("span",{className:y},f))),$.indexOf(a)<0?h.push(r.a.createElement("tr",{key:a.toString()+v,className:"Annual Membership"===w[v]?"linethrough":""},T,r.a.createElement("td",null,w[v]),r.a.createElement("td",{style:{textAlign:"right"}},O,0!==E&&"BTS"!==m?r.a.createElement("span",null," / ",x):null),r.a.createElement("td",{style:{textAlign:"right"}},8!==t?j:null,8!==t&&0!==E&&"BTS"!==m?r.a.createElement("span",null," / ",C):null))):h.push(r.a.createElement("tr",{key:a.toString()+v},T,r.a.createElement("td",null,w[v]),r.a.createElement("td",{style:{textAlign:"right"}},"- ",r.a.createElement("sup",null,"*")),r.a.createElement("td",{style:{textAlign:"right"}},j,0!==E&&"BTS"!==m?r.a.createElement("span",null," / ",C):null)))}return r.a.createElement("tbody",{key:t},h)}console.warn("Asking for non-existing fee id %d! Check group settings in Fees.jsx",e)});return r.a.createElement("div",{className:"asset-card"},r.a.createElement("div",{className:"card-divider"},this.props.title),r.a.createElement("table",{className:"table"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.block.op"})),r.a.createElement("th",null,r.a.createElement(h.a,{content:"explorer.fees.type"})),r.a.createElement("th",{style:{textAlign:"right"}},r.a.createElement(h.a,{content:"explorer.fees.fee"})),r.a.createElement("th",{style:{textAlign:"right"}},r.a.createElement(h.a,{content:"explorer.fees.feeltm"})))),b))}}]),t}();ee.propTypes={globalObject:m.a.ChainObject.isRequired},ee.defaultProps={globalObject:"2.0.0"},ee=Object(p.a)(ee);var te=function(e){function t(){return J(this,t),K(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Y(t,r.a.Component),G(t,[{key:"render",value:function(){var e=l.a.translate("transaction.feeGroups"),t=[];for(var n in X){var a=e[n],o=X[n];t.push(r.a.createElement(ee,{key:n,settings:this.props.settings,opIds:o,title:a}))}return r.a.createElement("div",{className:"grid-block vertical",style:{overflow:"visible"}},r.a.createElement("div",{className:"grid-block small-12 shrink",style:{overflow:"visible"}},r.a.createElement(H.a,{path:"components/Fees"})),r.a.createElement("div",{className:"grid-block small-12 ",style:{overflow:"visible"}},r.a.createElement("div",{className:"grid-content"},t)))}}]),t}(),ne=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}}();var ae=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),ne(t,[{key:"render",value:function(){return r.a.createElement(V.a,{stores:[E.a],inject:{settings:E.a.getState().settings}},r.a.createElement(te,this.props))}}]),t}(),re=n(135),oe=n(2056),ie=n(239),le=n(90),se=n(533),ce=n(1804),ue=n(119),me=n(1790),pe=n.n(me),fe=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}}();var de=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),fe(t,[{key:"shouldComponentUpdate",value:function(e){if(e.blocks.size<20)return!1;var t=this.refs.trx_chart?this.refs.trx_chart.chart:null;if(t&&e.blocks!==this.props.blocks){var n=this._getData(e),a=n.trxData,r=n.colors,o=t.series[0],i=o.xData[o.xData.length-1];if(o.xData.length)return a.forEach(function(e){e[0]>i&&o.addPoint(e,!1,o.xData.length>=30)}),t.options.plotOptions.column.colors=r,t.redraw(),!1}return e.blocks!==this.props.blocks||e.head_block!==this.props.head_block}},{key:"_getData",value:function(e){var t=e.blocks,n=e.head_block,a=[],r=0;return{colors:(a=t.filter(function(e){return e.id>=n-30}).sort(function(e,t){return e.id-t.id}).takeLast(30).map(function(e){return r=Math.max(e.transactions.length,r),[e.id,e.transactions.length]}).toArray()).map(function(e){return e[1]<=5?"#50D2C2":e[1]<=10?"#A0D3E8":e[1]<=20?"#FCAB53":"#deb869"}),trxData:a,max:r}}},{key:"render",value:function(){var e=this._getData(this.props),t=e.trxData,n=e.colors,a=e.max,o=l.a.translate("explorer.blocks.transactions"),i={chart:{type:"column",backgroundColor:"rgba(255, 0, 0, 0)",spacing:[0,0,5,0],height:100},title:{text:null},credits:{enabled:!1},legend:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},tooltip:{shared:!1,formatter:function(){return o+": "+this.y}},series:[{name:"Transactions",data:t,color:"#50D2C2"}],xAxis:{labels:{enabled:!1},title:{text:null}},yAxis:{min:0,max:Math.max(1.5,a+.5),title:{text:null},labels:{enabled:!1},gridLineWidth:0,currentPriceIndicator:{enabled:!1}},plotOptions:{column:{animation:!0,minPointLength:5,colorByPoint:!0,colors:n,borderWidth:0}}};return t.length?r.a.createElement(pe.a,{ref:"trx_chart",config:i}):null}}]),t}(),be=n(691),he=n(517);var ge=function(e,t,n){var a=null==e?0:e.length;return a?(t=a-(t=n||void 0===t?1:Object(he.a)(t)),Object(be.a)(e,t<0?0:t,a)):[]},ye=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}}();var ve=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),ye(t,[{key:"shouldComponentUpdate",value:function(e){if(e.blockTimes.length<19)return!1;if(0===this.props.blockTimes.length)return!0;var t=this.refs.chart?this.refs.chart.chart:null;if(t){var n=this._getData(e),a=n.blockTimes,r=n.colors,o=t.series[0],i=o.xData[o.xData.length-1];if(o.xData.length)return a.forEach(function(e){e[0]>i&&o.addPoint(e,!1,o.xData.length>=30)}),t.options.plotOptions.column.colors=r,t.redraw(),!1}return e.blockTimes[e.blockTimes.length-1][0]!==this.props.blockTimes[this.props.blockTimes.length-1][0]||e.blockTimes.length!==this.props.blockTimes.length}},{key:"_getData",value:function(){var e=this.props,t=e.blockTimes,n=e.head_block;return t.filter(function(e){return e[0]>=n-30}),t&&t.length&&(t=ge(t,30)),{blockTimes:t,colors:t.map(function(e){return e[1]<=5?"#50D2C2":e[1]<=10?"#A0D3E8":e[1]<=20?"#FCAB53":"#deb869"})}}},{key:"render",value:function(){var e=this._getData(this.props),t=e.blockTimes,n=e.colors,a=l.a.translate("explorer.blocks.block_time"),o={chart:{type:"column",backgroundColor:"rgba(255, 0, 0, 0)",spacing:[0,0,5,0],height:100},title:{text:null},credits:{enabled:!1},legend:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},tooltip:{shared:!1,formatter:function(){return a+": "+this.y+"s"}},series:[{name:"Block time",data:t,color:"#50D2C2"}],xAxis:{labels:{enabled:!1},title:{text:null}},yAxis:{min:0,title:{text:null},labels:{enabled:!1},gridLineWidth:0,currentPriceIndicator:{enabled:!1}},plotOptions:{column:{animation:!0,minPointLength:3,colorByPoint:!0,colors:n,borderWidth:0}}};return t.length?r.a.createElement(pe.a,{ref:"chart",config:o}):null}}]),t}(),Ee=n(16),_e=n(1760),ke=n.n(_e),we=n(1756),Oe=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}}();function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 Ce(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)}n(784);var Te=function(e){function t(){return xe(this,t),je(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ce(t,r.a.Component),Oe(t,[{key:"shouldComponentUpdate",value:function(e){return e.blockTime!==this.props.blockTime}},{key:"render",value:function(){var e=this.props.blockTime,t=(new Date).getTime()-new Date(e).getTime(),n=k()("txtlabel",{success:t<=6e3},{info:t>6e3&&t<=15e3},{warning:t>15e3&&t<=25e3},{error:t>25e3});return e?r.a.createElement("h3",{className:n},r.a.createElement(g.a,{time:e})):null}}]),t}(),Ne=function(e){function t(e){xe(this,t);var n=je(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={animateEnter:!1,operationsHeight:null,blocksHeight:null},n._updateHeight=n._updateHeight.bind(n),n}return Ce(t,r.a.Component),Oe(t,[{key:"_getBlock",value:function(e,t){e&&(e=parseInt(e,10),ie.a.getLatest(e,t))}},{key:"componentWillMount",value:function(){window.addEventListener("resize",this._updateHeight,{capture:!1,passive:!0})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._updateHeight)}},{key:"componentWillReceiveProps",value:function(e){if(0===e.latestBlocks.size)return this._getInitialBlocks();this.state.animateEnter||this.setState({animateEnter:!0});var t=e.dynGlobalObject.get("head_block_number");return e.latestBlocks.size>=20&&e.dynGlobalObject.get("head_block_number")!==e.latestBlocks.get(0).id?this._getBlock(t,t):void 0}},{key:"componentDidMount",value:function(){this._getInitialBlocks();var e=this.refs.operations;ke.a.initialize(e);var t=this.refs.blocks;ke.a.initialize(t),this._updateHeight()}},{key:"shouldComponentUpdate",value:function(e,t){return!c.a.is(e.latestBlocks,this.props.latestBlocks)||!Ee.a.are_equal_shallow(t,this.state)}},{key:"componentDidUpdate",value:function(){this._updateHeight()}},{key:"_getInitialBlocks",value:function(){var e=parseInt(this.props.dynGlobalObject.get("head_block_number"),10);if(e)for(var t=19;t>=0;t--){var n=!1;if(this.props.latestBlocks.size>0)for(var a=0;a<this.props.latestBlocks.size;a++)if(this.props.latestBlocks.get(a).id===e-t){n=!0;break}n||this._getBlock(e-t,e)}}},{key:"_updateHeight",value:function(){var e=this.refs.outerWrapper.offsetHeight,t=this.refs.operationsText.offsetHeight,n=this.refs.blocksText.offsetHeight;this.setState({operationsHeight:e-t,blocksHeight:e-n},this.psUpdate)}},{key:"psUpdate",value:function(){var e=this.refs.operations;ke.a.update(e);var t=this.refs.blocks;ke.a.update(t)}},{key:"render",value:function(){var e=this.props,t=e.latestBlocks,n=e.latestTransactions,a=e.globalObject,o=e.dynGlobalObject,i=e.coreAsset,l=this.state,s=l.blocksHeight,c=l.operationsHeight,u=this.props.getDynamicObject(i.get("dynamic_asset_data_id")),m=null,p=null,f=null,b=0,g=t.size,y=0,v=[],E=0;if(t&&t.size>=20){var _=void 0,k=void 0,w=void 0;t.filter(function(e,t){return e.id===o.get("head_block_number")-t}).sort(function(e,t){return e.id-t.id}).forEach(function(e,t){b+=e.transactions.length,t>0?(v.push([e.id,(e.timestamp-_)/1e3]),k=e.timestamp):w=e.timestamp,_=e.timestamp}),m=t.sort(function(e,t){return t.id-e.id}).take(20).map(function(e){return r.a.createElement("tr",{key:e.id},r.a.createElement("td",null,r.a.createElement(oe.a,{to:"/block/"+e.id},"#",Ee.a.format_number(e.id,0))),r.a.createElement("td",null,r.a.createElement(le.a,{value:e.timestamp,format:"time"})),r.a.createElement("td",null,r.a.createElement(ce.a,{witness:e.witness})),r.a.createElement("td",null,Ee.a.format_number(e.transactions.length,0)))}).toArray();var O=0;p=n.sort(function(e,t){return t.block_num-e.block_num}).take(20).map(function(e){var t=0;return e.operations.map(function(n){return O>15?null:r.a.createElement(se.a,{key:O++,op:n,result:e.operation_results[t++],block:e.block_num,hideFee:!0,hideOpLabel:!1,current:"1.2.0",hideDate:!0,hidePending:!0})}).filter(function(e){return!!e})}).toArray(),f=t.first().timestamp,E=v.reduce(function(e,t,n,a){return e+t[1]/a.length},0),y=b/((k-w)/1e3)}return r.a.createElement("div",{ref:"outerWrapper",className:"grid-block vertical"},r.a.createElement("div",{className:"align-center grid-block shrink small-horizontal blocks-row"},r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.current_block"})),r.a.createElement("h2",null,"#",Ee.a.format_number(o.get("head_block_number"),0)))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.last_block"})),r.a.createElement(Te,{blockTime:f}))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.trx_per_sec"})),r.a.createElement("h2",null,Ee.a.format_number(y,2)))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.avg_conf_time"})),r.a.createElement("h2",null,Ee.a.format_number(E/2,2),"s")))),r.a.createElement("div",{className:"align-center grid-block shrink small-horizontal blocks-row"},r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.active_witnesses"})),r.a.createElement("h2",{className:"txtlabel success"},a.get("active_witnesses").size))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.active_committee_members"})),r.a.createElement("h2",{className:"txtlabel success"},a.get("active_committee_members").size))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.trx_per_block"})),r.a.createElement("h2",null,Ee.a.format_number(b/g||0,2)))),r.a.createElement("div",{className:"grid-block text-center small-6 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.recently_missed_blocks"})),r.a.createElement("h2",{className:"txtlabel warning",style:{fontWeight:"100"}},o.get("recently_missed_count"))))),r.a.createElement("div",{className:"align-center grid-block shrink small-vertical medium-horizontal blocks-row"},r.a.createElement("div",{className:"grid-block text-center small-12 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.asset.summary.current_supply"})),r.a.createElement("h3",{className:"txtlabel"},u?r.a.createElement(d.a,{amount:u.get("current_supply"),asset:i.get("id"),decimalOffset:5}):null))),r.a.createElement("div",{className:"grid-block text-center small-12 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("div",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.block_times"})),r.a.createElement(ve,{blockTimes:v,head_block_number:o.get("head_block_number")}))),r.a.createElement("div",{className:"grid-block text-center small-12 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow"},r.a.createElement("div",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.trx_per_block"})),r.a.createElement(de,{blocks:t,head_block:o.get("head_block_number")}))),r.a.createElement("div",{className:"grid-block text-center small-12 medium-3"},r.a.createElement("div",{className:"grid-content no-overflow clear-fix"},r.a.createElement("span",{className:"txtlabel"},r.a.createElement(h.a,{component:"span",content:"explorer.asset.summary.stealth_supply"})),r.a.createElement("h3",{className:"txtlabel"},u?r.a.createElement(d.a,{amount:u.get("confidential_supply"),asset:i.get("id"),decimalOffset:5}):null)))),r.a.createElement("div",{ref:"transactionsBlock",className:"grid-block no-overflow"},r.a.createElement("div",{className:"grid-block small-12 medium-6 vertical no-overflow",style:{paddingBottom:0}},r.a.createElement("div",{className:"grid-block vertical no-overflow generic-bordered-box"},r.a.createElement("div",{ref:"operationsText"},r.a.createElement("div",{className:"block-content-header"},r.a.createElement(h.a,{content:"account.recent"})),r.a.createElement("table",{className:"table fixed-height-2rem"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{content:"account.votes.info"})))))),r.a.createElement("div",{className:"grid-block",style:{maxHeight:c||"400px",overflow:"hidden"},ref:"operations"},r.a.createElement("table",{className:"table fixed-height-2rem"},r.a.createElement("tbody",null,p))))),r.a.createElement("div",{className:"grid-block medium-6 show-for-medium vertical no-overflow",style:{paddingBottom:0,paddingLeft:5}},r.a.createElement("div",{className:"grid-block vertical no-overflow generic-bordered-box"},r.a.createElement("div",{ref:"blocksText"},r.a.createElement("div",{className:"block-content-header"},r.a.createElement(h.a,{component:"span",content:"explorer.blocks.recent"}))),r.a.createElement("div",{className:"grid-block vertical",style:{maxHeight:s||"438px",overflow:"hidden"},ref:"blocks"},r.a.createElement("table",{className:"table fixed-height-2rem"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.block.id"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.block.date"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.block.witness"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.block.count"})))),r.a.createElement(we.a,{component:"tbody",transitionName:"newrow"},m)))))))}}]),t}();Ne.propTypes={globalObject:m.a.ChainObject.isRequired,dynGlobalObject:m.a.ChainObject.isRequired},Ne.defaultProps={globalObject:"2.0.0",dynGlobalObject:"2.1.0",latestBlocks:{},assets:{},accounts:{},height:1},Ne=Object(p.a)(Ne,{show_loader:!0});var Se=Ne=Object(ue.a)(Ne,{propNames:["coreAsset"],withDynamic:!0}),Pe=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}}();var Ae=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),Pe(t,[{key:"render",value:function(){return r.a.createElement(V.a,{stores:[re.a],inject:{latestBlocks:function(){return re.a.getState().latestBlocks},latestTransactions:function(){return re.a.getState().latestTransactions}}},r.a.createElement(Se,null))}}]),t}(),Be=n(529),De=n(1),Le=n.n(De),Ie=n(423),Me=n(141),Re=n(333),We=n(140),ze=n(41),Fe=n(98),Ue=n(1768),Ve=n(13),He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe=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}}();function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=new Fe.a("__graphene__"),Ke=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),a=Ve.Apis.instance().chain_id;return a=a?a.substr(0,8):"4018d784",n.state={chainID:a,foundLast:!1,lastAsset:"",isLoading:!1,totalAssets:"object"!=He(Je.get("totalAssets_"+a))?Je.get("totalAssets_"+a):a&&"4018d784"===a?3e3:50,assetsFetched:0,activeFilter:"market",filterUIA:e.filterUIA||"",filterMPA:e.filterMPA||"",filterPM:e.filterPM||""},n}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,r.a.Component),qe(t,[{key:"shouldComponentUpdate",value:function(e,t){return!c.a.is(e.assets,this.props.assets)||!Ee.a.are_equal_shallow(t,this.state)}},{key:"componentWillMount",value:function(){this._checkAssets(this.props.assets,!0)}},{key:"_checkAssets",value:function(e,t){this.setState({isLoading:!0});var n=e.sort(function(e,t){return e.symbol>t.symbol?1:e.symbol<t.symbol?-1:0}).last();0===e.size||t?(Ie.a.getAssetList.defer("A",100),this.setState({assetsFetched:100})):e.size>=this.state.assetsFetched&&(Ie.a.getAssetList.defer(n.symbol,100),this.setState({assetsFetched:this.state.assetsFetched+99})),e.size>this.state.totalAssets&&Je.set("totalAssets_"+this.state.chainID,e.size),this.state.assetsFetched>=this.state.totalAssets-100&&this.setState({isLoading:!1})}},{key:"componentWillReceiveProps",value:function(e){e.assets!==this.props.assets&&this._checkAssets(e.assets)}},{key:"linkToAccount",value:function(e){return e?r.a.createElement(Me.a,{account:e}):r.a.createElement("span",null,"-")}},{key:"_toggleFilter",value:function(e){this.setState({activeFilter:e})}},{key:"_onFilter",value:function(e,t){this.setState(Ge({},e,t.target.value.toUpperCase())),v.a.changeViewSetting(Ge({},e,t.target.value.toUpperCase()))}},{key:"render",value:function(){var e=this,t=this.props.assets,n=this.state.activeFilter,a=l.a.translate("markets.filter").toUpperCase(),o=f.ChainStore.getAsset("1.3.0"),i=void 0,s=void 0,c=void 0;"user"==n&&(i=t.filter(function(t){return!t.market_asset&&-1!==t.symbol.indexOf(e.state.filterUIA)}).map(function(t){var n=Re.a.parseDescription(t.options.description),a=t.symbol+"_"+(n.market?n.market:o?o.get("symbol"):"BTS");return r.a.createElement("tr",{key:t.symbol},r.a.createElement("td",null,r.a.createElement(oe.a,{to:"/asset/"+t.symbol},r.a.createElement(We.a,{name:t.symbol}))),r.a.createElement("td",null,e.linkToAccount(t.issuer)),r.a.createElement("td",null,r.a.createElement(d.a,{amount:t.dynamic.current_supply,asset:t.id,hide_asset:!0})),r.a.createElement("td",null,r.a.createElement(oe.a,{className:"button outline",to:"/market/"+a},r.a.createElement(h.a,{content:"header.exchange"}))))}).sort(function(e,t){return e.key>t.key?1:e.key<t.key?-1:0}).toArray()),"market"==n&&(s=t.filter(function(t){return t.bitasset_data&&!t.bitasset_data.is_prediction_market&&-1!==t.symbol.indexOf(e.state.filterMPA)}).map(function(t){var n=Re.a.parseDescription(t.options.description),a=t.symbol+"_"+(n.market?n.market:o?o.get("symbol"):"BTS");return r.a.createElement("tr",{key:t.symbol},r.a.createElement("td",null,r.a.createElement(oe.a,{to:"/asset/"+t.symbol},r.a.createElement(We.a,{name:t.symbol}))),r.a.createElement("td",null,e.linkToAccount(t.issuer)),r.a.createElement("td",null,r.a.createElement(d.a,{amount:t.dynamic.current_supply,asset:t.id,hide_asset:!0})),r.a.createElement("td",null,r.a.createElement(oe.a,{className:"button outline",to:"/market/"+a},r.a.createElement(h.a,{content:"header.exchange"}))))}).sort(function(e,t){return e.key>t.key?1:e.key<t.key?-1:0}).toArray()),"prediction"==n&&(c=t.filter(function(t){var n=Re.a.parseDescription(t.options.description);return t.bitasset_data&&t.bitasset_data.is_prediction_market&&(-1!==t.symbol.toLowerCase().indexOf(e.state.filterPM.toLowerCase())||-1!==n.main.toLowerCase().indexOf(e.state.filterPM.toLowerCase()))}).map(function(e){var t=Re.a.parseDescription(e.options.description),n=e.symbol+"_"+(t.market?t.market:o?o.get("symbol"):"BTS");return r.a.createElement("tr",{key:e.id.split(".")[2]},r.a.createElement("td",{style:{width:"80%"}},r.a.createElement("div",{style:{paddingTop:10,fontWeight:"bold"}},r.a.createElement(oe.a,{to:"/asset/"+e.symbol},r.a.createElement(We.a,{name:e.symbol})),t.condition?r.a.createElement("span",null," (",t.condition,")"):null),t?r.a.createElement("div",{style:{padding:"10px 20px 5px 0",lineHeight:"18px"}},t.main):null,r.a.createElement("div",{style:{padding:"0 20px 5px 0",lineHeight:"18px"}},r.a.createElement(Me.a,{account:e.issuer}),r.a.createElement("span",null," ","-"," ",r.a.createElement(d.a,{amount:e.dynamic.current_supply,asset:e.id})),t.expiry?r.a.createElement("span",null," - ",t.expiry):null)),r.a.createElement("td",{style:{width:"20%"}},r.a.createElement(oe.a,{className:"button outline",to:"/market/"+n},r.a.createElement(h.a,{content:"header.exchange"}))))}).sort(function(e,t){return e.key>t.key?-1:e.key<t.key?1:0}).toArray());var u=r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.assets.symbol"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.assets.issuer"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"markets.supply"})),r.a.createElement("th",null));return r.a.createElement("div",{className:"grid-block vertical"},r.a.createElement("div",{className:"grid-block vertical"},r.a.createElement("div",{className:"grid-block main-content small-12 medium-10 medium-offset-1 main-content vertical"},r.a.createElement("div",{className:"generic-bordered-box"},r.a.createElement("div",{className:"header-selector"},r.a.createElement("div",{className:"selector"},r.a.createElement("div",{className:k()("inline-block",{inactive:"market"!=n}),onClick:this._toggleFilter.bind(this,"market")},r.a.createElement(h.a,{content:"explorer.assets.market"})),r.a.createElement("div",{className:k()("inline-block",{inactive:"user"!=n}),onClick:this._toggleFilter.bind(this,"user")},r.a.createElement(h.a,{content:"explorer.assets.user"})),r.a.createElement("div",{className:k()("inline-block",{inactive:"prediction"!=n}),onClick:this._toggleFilter.bind(this,"prediction")},r.a.createElement(h.a,{content:"explorer.assets.prediction"})))),this.state.isLoading?r.a.createElement(ze.a,null):null,"market"==n?r.a.createElement("div",{className:"grid-block shrink"},r.a.createElement("div",{className:"grid-content"},r.a.createElement("input",{style:{maxWidth:"500px"},placeholder:a,type:"text",value:this.state.filterMPA,onChange:this._onFilter.bind(this,"filterMPA")}))):null,"market"==n?r.a.createElement("div",{className:"grid-block",style:{paddingBottom:20}},r.a.createElement(Ue.a,{header:u,rows:s})):null,"user"==n?r.a.createElement("div",{className:"grid-block shrink"},r.a.createElement("div",{className:"grid-content"},r.a.createElement("input",{style:{maxWidth:"500px"},placeholder:a,type:"text",value:this.state.filterUIA,onChange:this._onFilter.bind(this,"filterUIA")}))):null,"user"==n?r.a.createElement("div",{className:"grid-block",style:{paddingBottom:20}},r.a.createElement(Ue.a,{header:u,rows:i})):null,"prediction"==n?r.a.createElement("div",{className:"grid-block shrink"},r.a.createElement("div",{className:"grid-content"},r.a.createElement("input",{style:{maxWidth:"500px"},placeholder:l.a.translate("markets.search").toUpperCase(),type:"text",value:this.state.filterPM,onChange:this._onFilter.bind(this,"filterPM")}))):null,"prediction"==n?r.a.createElement("div",{className:"grid-block",style:{paddingBottom:20}},r.a.createElement(Ue.a,{rows:c,pageSize:6})):null))))}}]),t}();Ke.defaultProps={assets:{}},Ke.propTypes={assets:Le.a.object.isRequired};var Ye=Ke,Ze=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}}();var Qe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),Ze(t,[{key:"render",value:function(){return r.a.createElement(V.a,{stores:[Be.a,E.a],inject:{assets:function(){return Be.a.getState().assets},filterMPA:function(){return E.a.getState().viewSettings.get("filterMPA")},filterUIA:function(){return E.a.getState().viewSettings.get("filterUIA")}}},r.a.createElement(Ye,null))}}]),t}(),Xe=n(26),$e=n(305),et=n(47),tt=n(21),nt=n(332),at=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}}();function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(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 it(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)}var lt=function(e){function t(){return rt(this,t),ot(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return it(t,r.a.Component),at(t,[{key:"shouldComponentUpdate",value:function(e){return e.contacts!==this.props.contacts||e.account!==this.props.account}},{key:"_onAddContact",value:function(e,t){t.preventDefault(),et.a.addAccountContact(e)}},{key:"_onRemoveContact",value:function(e,t){t.preventDefault(),et.a.removeAccountContact(e)}},{key:"render",value:function(){var e=this.props,t=e.account,n=e.contacts;if(!t)return null;var a=t.getIn(["balances","1.3.0"])||null,o=t.get("name");return r.a.createElement("tr",{key:t.get("id")},r.a.createElement("td",null,t.get("id")),n.has(o)?r.a.createElement("td",{onClick:this._onRemoveContact.bind(this,o)},r.a.createElement(tt.a,{name:"minus-circle",title:"icons.minus_circle.remove_contact"})):r.a.createElement("td",{onClick:this._onAddContact.bind(this,o)},r.a.createElement(tt.a,{name:"plus-circle",title:"icons.plus_circle.add_contact"})),r.a.createElement("td",null,r.a.createElement(oe.a,{to:"/account/"+o+"/overview"},o)),r.a.createElement("td",null,a?r.a.createElement(nt.a,{balance:a}):"n/a"),r.a.createElement("td",null,a?r.a.createElement(nt.a,{balance:a,asPercentage:!0}):"n/a"))}}]),t}();lt.propTypes={account:m.a.ChainAccount.isRequired},lt.defaultProps={tempComponent:"tr",autosubscribe:!1},lt=Object(p.a)(lt);var st=function(e){return r.a.createElement(lt,e)};st=Object(y.a)(st,{listenTo:function(){return[Xe.a]},getProps:function(){return{contacts:Xe.a.getState().accountContacts}}});var ct=function(e){function t(e){rt(this,t);var n=ot(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={searchTerm:e.searchTerm,isLoading:!1},n._searchAccounts=Object($e.a)(n._searchAccounts,200),n}return it(t,r.a.Component),at(t,[{key:"shouldComponentUpdate",value:function(e,t){return!c.a.is(e.searchAccounts,this.props.searchAccounts)||t.searchTerm!==this.state.searchTerm||t.isLoading!==this.state.isLoading}},{key:"_onSearchChange",value:function(e){this.setState({searchTerm:e.target.value.toLowerCase(),isLoading:!0}),this._searchAccounts(e.target.value)}},{key:"_searchAccounts",value:function(e){et.a.accountSearch(e),this.setState({isLoading:!1})}},{key:"render",value:function(){var e=this.props.searchAccounts,t=this.state.searchTerm,n=[];return e.size>0&&t&&t.length>0&&(n=e.filter(function(e){return-1!==e.indexOf(t)}).sort(function(e,t){return e>t?1:e<t?-1:0}).map(function(e,t){return r.a.createElement(st,{key:t,account:e})}).toArray()),r.a.createElement("div",{className:"grid-block"},r.a.createElement("div",{className:"grid-block vertical medium-6 medium-offset-3"},r.a.createElement("div",{className:"grid-content shrink"},r.a.createElement(h.a,{component:"h3",content:"explorer.accounts.title"}),r.a.createElement("input",{type:"text",value:this.state.searchTerm,onChange:this._onSearchChange.bind(this)})),r.a.createElement(Ue.a,{header:r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"explorer.assets.id"})),r.a.createElement("th",null,r.a.createElement(tt.a,{name:"user",title:"icons.user.account"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"account.name"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"gateway.balance"})),r.a.createElement("th",null,r.a.createElement(h.a,{component:"span",content:"account.percent"}))),rows:n,pageSize:20}),this.state.isLoading?r.a.createElement("div",{style:{textAlign:"center",padding:10}},r.a.createElement(ze.a,{type:"three-bounce"})):null))}}]),t}();ct.defaultProps={searchAccounts:{}},ct.propTypes={searchAccounts:Le.a.object.isRequired};var ut=ct,mt=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}}();var pt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),mt(t,[{key:"render",value:function(){return r.a.createElement(V.a,{stores:[Xe.a],inject:{searchAccounts:function(){return Xe.a.getState().searchAccounts},searchTerm:function(){return Xe.a.getState().searchTerm}}},r.a.createElement(ut,null))}}]),t}(),ft=n(251),dt=n(1862),bt=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}}();var ht=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={height:null},e._setDimensions=e._setDimensions.bind(e),e}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,r.a.Component),bt(t,[{key:"componentWillMount",value:function(){window.addEventListener("resize",this._setDimensions,{capture:!1,passive:!0})}},{key:"componentDidMount",value:function(){this._setDimensions()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._setDimensions)}},{key:"_setDimensions",value:function(){var e=this.refs.wrapper.offsetHeight;e!==this.state.height&&this.setState({height:e})}},{key:"render",value:function(){return r.a.createElement("div",{ref:"wrapper",className:"grid-block page-layout no-overflow"},r.a.createElement(dt.a,{style:{width:"100%",padding:20},listHeight:this.state.height?this.state.height-82:null,className:"no-overflow",headerStyle:{paddingTop:0,borderTop:"none"},columns:[{name:"star",index:1},{name:"market",index:2},{name:"quoteSupply",index:3},{name:"vol",index:4},{name:"price",index:5},{name:"change",index:6}]}))}}]),t}(),gt=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}}();var yt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(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,r.a.Component),gt(t,[{key:"render",value:function(){return r.a.createElement(V.a,{stores:[E.a,Be.a,ft.a],inject:{starredMarkets:function(){return E.a.getState().starredMarkets},viewSettings:function(){return E.a.getState().viewSettings},lookupResults:function(){return Be.a.getState().lookupResults},marketBase:function(){return ft.a.getState().marketBase}}},r.a.createElement(ht,null))}}]),t}(),vt=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}}();var Et=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={tabs:[{name:"blocks",link:"/explorer/blocks",translate:"explorer.blocks.title",content:Ae},{name:"assets",link:"/explorer/assets",translate:"explorer.assets.title",content:Qe},{name:"accounts",link:"/explorer/accounts",translate:"explorer.accounts.title",content:pt},{name:"witnesses",link:"/explorer/witnesses",translate:"explorer.witnesses.title",content:D},{name:"committee_members",link:"/explorer/committee-members",translate:"explorer.committee_members.title",content:U},{name:"markets",link:"/explorer/markets",translate:"markets.title",content:yt},{name:"fees",link:"/explorer/fees",translate:"fees.title",content:ae}]},n}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,r.a.Component),vt(t,[{key:"render",value:function(){for(var e=this.props.match.params.tab,t=this.state.tabs.findIndex(function(t){return t.name===e}),n=[],a=0;a<this.state.tabs.length;a++){var i=this.state.tabs[a],l=i.content,s=t==a?"":i.link;n.push(r.a.createElement(o.a,{key:a,title:i.translate,isLinkTo:s},r.a.createElement(l,null)))}return r.a.createElement(o.b,{defaultActiveTab:t,segmented:!1,setting:"explorer-tabs",className:"account-tabs",tabsClass:"account-overview bordered-header content-block",contentClass:"tab-content explorer-tab-content padding"},n)}}]),t}();t.default=Et}}]);
//# sourceMappingURL=explorer.js.map