-
Notifications
You must be signed in to change notification settings - Fork 2
/
exchange~explorer.js.map
1 lines (1 loc) · 42.7 KB
/
exchange~explorer.js.map
1
{"version":3,"file":"exchange~explorer.6f9e3fc79bd1be5fe5e2.js","sources":["webpack:///exchange~explorer.6f9e3fc79bd1be5fe5e2.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1756:function(e,t,n){\"use strict\";var a=n(0),r=n.n(a),s=n(1798),o=n.n(s),i=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 l=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={animateEnter:!1},e.timer=null,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),i(t,[{key:\"componentDidMount\",value:function(){this.enableAnimation()}},{key:\"resetAnimation\",value:function(){this.setState({animateEnter:!1}),this.enableAnimation()}},{key:\"enableAnimation\",value:function(){var e=this;this.timer=setTimeout(function(){e.timer&&e.setState({animateEnter:!0})},2e3)}},{key:\"componentWillUnmount\",value:function(){clearTimeout(this.timer),this.timer=null}},{key:\"render\",value:function(){return this.props.children?r.a.createElement(o.a,{className:this.props.className,component:this.props.component,transitionName:this.props.transitionName,transitionEnterTimeout:this.props.enterTimeout,transitionEnter:this.state.animateEnter,transitionLeave:!1},this.props.children):r.a.createElement(this.props.component)}}]),t}();l.defaultProps={component:\"span\",enterTimeout:2e3},t.a=l},1757:function(e,t,n){\"use strict\";var a=n(0),r=n.n(a),s=n(119),o=n(1),i=n.n(o),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},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}}();function u(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function p(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 h(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 m=function(e){function t(e){u(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={imgError:!1},n}return h(t,r.a.Component),c(t,[{key:\"shouldComponentUpdate\",value:function(e,t){return this.props.asset!==e.asset||this.props.maxWidth!==e.maxWidth||this.props.whiteList!==e.whiteList||this.state.imgError!==t.imgError}},{key:\"_onError\",value:function(e){this.state.imgError||(this.props.replaceNoneToBts?this.refs[e.toLowerCase()].src=\"asset-symbols/bts.png\":this.refs[e.toLowerCase()].remove(),this.setState({imgError:!0}))}},{key:\"render\",value:function(){var e=function(e){return e.get(\"symbol\")}(this.props.asset);return r.a.createElement(\"img\",{ref:e.toLowerCase(),className:\"column-hide-small\",onError:this._onError.bind(this,e),style:{maxWidth:this.props.maxWidth,marginRight:5},src:\"asset-symbols/\"+e.toLowerCase()+\".png\"})}}]),t}();m.propTypes={replaceNoneToBts:i.a.bool,maxWidth:i.a.number},m.defaultProps={replaceNoneToBts:!0,maxWidth:20},m=Object(s.a)(m);var f=function(e){function t(){return u(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,r.a.Component),c(t,[{key:\"render\",value:function(){return r.a.createElement(m,l({},this.props,{asset:this.props.name}))}}]),t}();t.a=f},1770:function(e,t,n){\"use strict\";n.d(t,\"b\",function(){return M}),n.d(t,\"a\",function(){return C});var a=n(0),r=n.n(a),s=n(32),o=n(39),i=n(48),l=n(119),c=n(16),u=n(35),p=n(251),h=n(3),m=n.n(h),f=n(14),d=n.n(f),y=n(105),b=n.n(y),g=n(536),v=n(59),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_=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 E(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function w(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function S(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 x(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 O=function(e){function t(e){return w(this,t),S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return x(t,g[\"a\"]),_(t,[{key:\"componentDidMount\",value:function(){b.a.rebuild()}},{key:\"shouldComponentUpdate\",value:function(e){return function e(t,n,a){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,a)}if(\"value\"in r)return r.value;var o=r.get;return void 0!==o?o.call(a):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"shouldComponentUpdate\",this).call(this,e)||!c.a.are_equal_shallow(e.pulsate,this.props.pulsate)||e.toAsset!==this.props.toAsset||e.fromAsset!==this.props.fromAsset||e.amount!==this.props.amount}},{key:\"getValue\",value:function(){var e=this.props,t=e.amount,n=e.toAsset,a=e.fromAsset,r=e.fullPrecision,s=e.allMarketStats,o=e.coreAsset;return v.a.convertValue(t,n,a,s,o,r)}},{key:\"render\",value:function(){var e=this.props,t=e.amount,n=e.toAsset,a=e.fromAsset,o=e.fullPrecision,i=E(e,[\"amount\",\"toAsset\",\"fromAsset\",\"fullPrecision\"]),l=n.get(\"id\"),u=n.get(\"symbol\");o||(t=c.a.get_asset_amount(t,a));var p=this.getValue();return p||0===p?r.a.createElement(s.a,k({noPrefix:!0,amount:p,asset:l,decimalOffset:-1!==u.indexOf(\"BTC\")?4:this.props.fullDecimals?0:this.props.noDecimals?n.get(\"precision\"):n.get(\"precision\")-2},i)):r.a.createElement(\"div\",{className:\"tooltip inline-block\",\"data-place\":\"bottom\",\"data-tip\":d.a.translate(\"tooltip.no_price\"),style:{fontSize:\"0.9rem\"}},r.a.createElement(m.a,{content:\"account.no_price\"}))}}]),t}();O.defaultProps={fullPrecision:!0,noDecimals:!1,fullDecimals:!1,hide_asset:!1},O=Object(l.a)(O,{propNames:[\"toAsset\",\"fromAsset\",\"coreAsset\"],defaultProps:{toAsset:\"1.3.0\",coreAsset:\"1.3.0\"}});var M=function(e){function t(){return w(this,t),S(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,r.a.Component),_(t,[{key:\"render\",value:function(){var e=this.props,t=e.refCallback,n=E(e,[\"refCallback\"]);return r.a.createElement(O,k({},n,{ref:t}))}}]),t}();M=Object(u.a)(M,{listenTo:function(){return[p.a]},getProps:function(){return{allMarketStats:p.a.getState().allMarketStats}}});var C=function(e){function t(){return w(this,t),S(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,r.a.Component),_(t,[{key:\"render\",value:function(){var e=this.props,t=e.balance,n=E(e,[\"balance\"]),a=!!t.getIn([\"balance\",\"amount\"]),s=Number(a?t.getIn([\"balance\",\"amount\"]):t.get(\"balance\")),o=a?t.getIn([\"balance\",\"asset_id\"]):t.get(\"asset_type\");return isNaN(s)?r.a.createElement(\"span\",null,\"--\"):r.a.createElement(M,k({amount:s,fromAsset:o,noDecimals:!0},n))}}]),t}();C.propTypes={balance:o.a.ChainObject.isRequired},C=Object(i.a)(C,{keep_updating:!0})},1778:function(e,t,n){\"use strict\";var a=n(0),r=n.n(a),s=n(3),o=n.n(s),i=n(10),l=n(39),c=n(48),u=n(14),p=n.n(u),h=n(335),m=n(32),f=n(11),d=n.n(f),y=n(5),b=n.n(y),g=n(119),v=n(1),k=n.n(v),_=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 E(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function w(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 S(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 x=function(e){function t(){return E(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,r.a.Component),_(t,[{key:\"render\",value:function(){return 0!==this.props.assets.length&&this.props.value?r.a.createElement(h.a,{entries:this.props.assets.map(function(e){return e&&e.get(\"symbol\")}).filter(function(e){return!!e}),values:this.props.assets.reduce(function(e,t){return t&&t.get(\"symbol\")&&(e[t.get(\"symbol\")]=t),e},{}),singleEntry:this.props.assets[0]?r.a.createElement(m.a,{asset:this.props.assets[0].get(\"id\"),amount:0,hide_amount:!0}):null,value:\"\",onChange:this.props.onChange}):null}}]),t}();x.propTypes={value:k.a.string,onChange:k.a.func},x=Object(g.a)(x,{asList:!0});var O=function(e){function t(){return E(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,r.a.Component),_(t,[{key:\"getAsset\",value:function(){return this.props.asset}},{key:\"getError\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.assetInput,t=this.props.error;return t||!e||this.getNameType(e)||(t=p.a.translate(\"explorer.asset.invalid\",{name:e})),t}},{key:\"getNameType\",value:function(e){return e?i.ChainValidation.is_valid_symbol_error(e,!0)?null:\"symbol\":null}},{key:\"onInputChanged\",value:function(e){var t=e.target.value.trim().substr(0,16).toUpperCase();this.props.onChange&&t!==this.props.assetInput&&this.props.onChange(t)}},{key:\"onKeyDown\",value:function(e){13===e.keyCode&&(this.onFound(e),this.onAction(e))}},{key:\"componentDidMount\",value:function(){this.props.onFound&&this.props.asset&&this.props.onFound(this.props.asset)}},{key:\"componentWillReceiveProps\",value:function(e){this.props.onFound&&e.asset!==this.props.asset&&this.props.onFound(e.asset)}},{key:\"onFound\",value:function(e){e.preventDefault(),!this.props.onFound||this.getError()||this.props.disableActionButton||this.props.asset&&this.props.onFound(this.props.asset)}},{key:\"onAssetSelect\",value:function(e){e&&(this.props.onFound(e),this.props.onChange(e.get(\"symbol\")))}},{key:\"onAction\",value:function(e){e.preventDefault(),!this.props.onAction||this.getError()||this.props.disableActionButton||this.props.asset&&this.props.onAction(this.props.asset)}},{key:\"render\",value:function(){var e=this.props,t=e.disabled,n=e.noLabel,a=this.getError(),s=void 0;t||(this.props.asset?s=this.props.asset.get(\"symbol\"):!a&&this.props.assetInput&&(a=p.a.translate(\"explorer.asset.not_found\",{name:this.props.assetInput})));var i=b()(\"button\",{disabled:!this.props.asset||a||this.props.disableActionButton});return r.a.createElement(\"div\",{className:\"asset-selector\",style:this.props.style},r.a.createElement(\"div\",null,r.a.createElement(\"div\",{className:\"header-area\"},a||n?null:r.a.createElement(\"label\",{className:\"right-label\"},\" \",r.a.createElement(\"span\",null,s)),r.a.createElement(o.a,{component:\"label\",content:this.props.label})),r.a.createElement(\"div\",{className:\"input-area\"},r.a.createElement(\"div\",{className:\"inline-label input-wrapper\"},r.a.createElement(\"input\",{style:this.props.inputStyle,disabled:this.props.disabled,type:\"text\",value:this.props.assetInput||\"\",placeholder:this.props.placeholder||p.a.translate(\"explorer.assets.symbol\"),ref:\"user_input\",onChange:this.onInputChanged.bind(this),onKeyDown:this.onKeyDown.bind(this),tabIndex:this.props.tabIndex}),r.a.createElement(\"div\",{className:\"form-label select floating-dropdown\"},this.props.asset?r.a.createElement(x,{ref:this.props.refCallback,value:this.props.asset.get(\"symbol\"),assets:d.a.List(this.props.assets),onChange:this.onAssetSelect.bind(this)}):null),this.props.children,this.props.onAction?r.a.createElement(\"button\",{className:i,onClick:this.onAction.bind(this)},r.a.createElement(o.a,{content:this.props.action_label})):null)),r.a.createElement(\"div\",{className:\"error-area\",style:{paddingBottom:\"10px\"}},r.a.createElement(\"span\",{style:{wordBreak:\"break-all\"}},a))))}}]),t}();O.propTypes={label:k.a.string,error:k.a.string,placeholder:k.a.string,onChange:k.a.func,onFound:k.a.func,assetInput:k.a.string,asset:l.a.ChainAsset,tabIndex:k.a.number,disableActionButton:k.a.bool},O.defaultProps={disabled:!1},t.a=Object(c.a)(O)},1862:function(e,t,n){\"use strict\";var a=n(305),r=n(0),s=n.n(r),o=n(11),i=n.n(o),l=n(1760),c=n.n(l),u=n(16),p=n(3),h=n.n(p),m=n(36),f=n(35),d=n(32),y=n(119),b=n(39),g=n(48),v=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 k=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,s.a.Component),v(t,[{key:\"render\",value:function(){return this.props.account?s.a.createElement(\"span\",null,this.props.account.get(\"name\")):null}}]),t}();k.propTypes={account:b.a.ChainObject.isRequired},k.defaultProps={autosubscribe:!1};var _=Object(g.a)(k),E=n(1757),w=n(21),S=n(85),x=n(23),O=n(2073),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}}();var C=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.statsInterval=null,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,s.a.Component),M(t,[{key:\"_onClick\",value:function(e){\"/market/\"+e!==this.props.location.pathname&&(S.a.switchMarket(),this.props.history.push(\"/market/\"+e))}},{key:\"componentDidMount\",value:function(){this.statsChecked=new Date,this.statsInterval=S.a.getMarketStatsInterval(35e3,this.props.base,this.props.quote)}},{key:\"componentWillUnmount\",value:function(){this.statsInterval&&this.statsInterval()}},{key:\"shouldComponentUpdate\",value:function(e){return!u.a.are_equal_shallow(e,this.props)}},{key:\"_onStar\",value:function(e,t,n){n.preventDefault(),this.props.starred?x.a.removeStarMarket(e,t):x.a.addStarMarket(e,t)}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.quote,a=t.base,r=(t.noSymbols,t.stats),o=t.starred;if(!n||!a)return null;var i=n.get(\"symbol\")+\"_\"+a.get(\"symbol\"),l=n.get(\"symbol\")+\":\"+a.get(\"symbol\"),c=this.props.getDynamicObject(n.get(\"dynamic_asset_data_id\")),p=this.props.getDynamicObject(a.get(\"dynamic_asset_data_id\")),h=u.a.convertPrice(n,a),m={};this.props.leftAlign&&(m.textAlign=\"left\");var f=\"button outline\",y=null;this.props.compact&&(f+=\" no-margin\",y={marginBottom:0,fontSize:\"0.75rem\",padding:\"4px 10px\",borderRadius:\"0px\",letterSpacing:\"0.05rem\"});var b=this.props.columns.map(function(t){switch(t.name){case\"star\":var m=o?\"gold-star\":\"grey-star\";return s.a.createElement(\"td\",{onClick:e._onStar.bind(e,n.get(\"symbol\"),a.get(\"symbol\")),key:t.index},s.a.createElement(w.a,{className:m,name:\"fi-star\",title:\"icons.fi_star.symbol\"}));case\"vol\":var b=r?r.volumeBase:0;return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),className:\"text-right\",key:t.index},u.a.format_volume(b));case\"change\":var g=u.a.format_number(r&&r.change?r.change:0,2),v=\"0.00\"===g?\"\":g>0?\"change-up\":\"change-down\";return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),className:\"text-right \"+v,key:t.index},g+\"%\");case\"marketName\":return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),key:t.index},s.a.createElement(\"div\",{className:f,style:y},l));case\"market\":return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),key:t.index},s.a.createElement(E.a,{replaceNoneToBts:!1,maxWidth:20,name:n.get(\"symbol\")}),e.props.name);case\"price\":var k=r&&r.price?r.price.toReal():r&&r.close&&r.close.quote.amount&&r.close.base.amount?u.a.get_asset_price(r.close.quote.amount,n,r.close.base.amount,a,!0):u.a.get_asset_price(h.quote.amount,n,h.base.amount,a,!0),S=6;return-1!==[\"BTC\",\"OPEN.BTC\",\"TRADE.BTC\",\"GOLD\",\"SILVER\"].indexOf(a.get(\"symbol\"))&&(S=8),s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),className:\"text-right\",key:t.index},u.a.format_number(k,k>1e3?0:k>10?2:S));case\"quoteSupply\":return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),key:t.index},c?s.a.createElement(d.a,{style:{fontWeight:\"bold\"},amount:parseInt(c.get(\"current_supply\"),10),asset:n.get(\"id\")}):null);case\"baseSupply\":return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),key:t.index},p?s.a.createElement(d.a,{style:{fontWeight:\"bold\"},amount:parseInt(p.get(\"current_supply\"),10),asset:a.get(\"id\")}):null);case\"issuer\":return s.a.createElement(\"td\",{onClick:e._onClick.bind(e,i),key:t.index},s.a.createElement(_,{account:n.get(\"issuer\")}));case\"add\":return s.a.createElement(\"td\",{style:{textAlign:\"right\"},key:t.index,onClick:e.props.onCheckMarket.bind(e,i)},s.a.createElement(\"input\",{type:\"checkbox\",checked:!!e.props.isChecked||e.props.isDefault,disabled:e.props.isDefault,\"data-tip\":e.props.isDefault?\"This market is a default market and cannot be removed\":null}));case\"remove\":return s.a.createElement(\"td\",{key:t.index,className:\"clickable\",onClick:e.props.removeMarket},s.a.createElement(\"span\",{style:{marginBottom:\"6px\",marginRight:\"6px\",zIndex:999},className:\"text float-right remove\"},\"–\"))}}).sort(function(e,t){return e.key>t.key}),g=\"clickable\";return this.props.current&&(g+=\" activeMarket\"),s.a.createElement(\"tr\",{className:g,style:m},b)}}]),t}();C.defaultProps={noSymbols:!1},C=Object(O.a)(C);var A=Object(y.a)(C,{propNames:[\"quote\",\"base\"],defaultProps:{tempComponent:\"tr\"},withDynamic:!0}),T=n(22),j=n(251),B=n(529),N=n(140),P=n(423),I=n(5),q=n.n(I),L=n(1778),W=n(14),D=n.n(W),F=n(41),R=n(10),U=n(1818),V=n.n(U),z=n(42),G=n.n(z),H=n(74),Q=n(104),J=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 K=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={backingAsset:\"\",error:!1,valid:!1},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,s.a.Component),J(t,[{key:\"_onMoveUp\",value:function(e){var t=this.props.quotes.findIndex(function(t){return t===e});x.a.modifyPreferedBases({oldIndex:t,newIndex:t-1})}},{key:\"_onMoveDown\",value:function(e){var t=this.props.quotes.findIndex(function(t){return t===e});x.a.modifyPreferedBases({oldIndex:t,newIndex:t+1})}},{key:\"_onRemove\",value:function(e){var t=this.props.quotes.findIndex(function(t){return t===e});t>=0&&x.a.modifyPreferedBases({remove:t})}},{key:\"_onAdd\",value:function(e){-1===this.props.quotes.findIndex(function(t){return t===e.get(\"symbol\")})&&x.a.modifyPreferedBases({add:e.get(\"symbol\")})}},{key:\"_onInputBackingAsset\",value:function(e){this.setState({backingAsset:e.toUpperCase(),error:null})}},{key:\"_onFoundBackingAsset\",value:function(e){e&&(this.props.quotes.includes(e.get(\"symbol\"))?this.setState({error:\"Asset already being used\",isValid:!1}):this.setState({isValid:!0}))}},{key:\"render\",value:function(){var e=this,t=this.state.error,n=this.props.quotes.size;return s.a.createElement(Q.a,{id:\"quote_selection\",overlay:!0,modalHeader:\"exchange.quote_selection\",noLogo:!0},s.a.createElement(\"section\",{className:\"block-list no-border-bottom\"},s.a.createElement(\"table\",{className:\"table\"},s.a.createElement(\"thead\",null,s.a.createElement(\"tr\",null,s.a.createElement(\"th\",null),s.a.createElement(\"th\",null,s.a.createElement(h.a,{content:\"account.quote\"})),s.a.createElement(\"th\",{style:{textAlign:\"center\"}},s.a.createElement(h.a,{content:\"exchange.move_down\"})),s.a.createElement(\"th\",{style:{textAlign:\"center\"}},s.a.createElement(h.a,{content:\"exchange.move_up\"})),s.a.createElement(\"th\",{style:{textAlign:\"center\"}},s.a.createElement(h.a,{content:\"exchange.remove\"})))),s.a.createElement(\"tbody\",null,this.props.quotes.map(function(t,a){return s.a.createElement(\"tr\",{key:t},s.a.createElement(\"td\",null,a+1),s.a.createElement(\"td\",null,t),s.a.createElement(\"td\",{className:\"text-center\"},a!==n-1&&s.a.createElement(w.a,{onClick:e._onMoveDown.bind(e,t),name:\"chevron-down\",className:\"clickable\"})),s.a.createElement(\"td\",{className:\"text-center\"},0!==a&&s.a.createElement(w.a,{onClick:e._onMoveUp.bind(e,t),name:\"chevron-down\",className:\"clickable rotate180\"})),s.a.createElement(\"td\",{className:\"text-center\"},n>1&&s.a.createElement(w.a,{onClick:e._onRemove.bind(e,t),name:\"cross-circle\",className:\"clickable\"})))}))),s.a.createElement(\"br\",null),s.a.createElement(\"br\",null),s.a.createElement(\"br\",null),s.a.createElement(\"div\",null,s.a.createElement(L.a,{label:\"exchange.custom_quote\",onChange:this._onInputBackingAsset.bind(this),asset:this.state.backingAsset,assetInput:this.state.backingAsset,tabIndex:1,style:{width:\"100%\",paddingRight:\"10px\"},onFound:this._onFoundBackingAsset.bind(this),onAction:this._onAdd.bind(this),action_label:\"exchange.add_quote\",disableActionButton:!!t,noLabel:!0}),s.a.createElement(\"div\",{className:\"error-area\"},t))))}}]),t}(),X=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,s=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,s=e}finally{try{!a&&i.return&&i.return()}finally{if(r)throw s}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),Y=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 Z(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}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}function ee(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 te=function(e){function t(e){Z(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state=n._getInitialState(e),n}return ee(t,s.a.Component),Y(t,[{key:\"_getInitialState\",value:function(e){var t=!!e.findMarketTab||e.viewSettings.get(\"myMarketsBase_\"+e.index);return{open:void 0===t||t,inverseSort:e.viewSettings.get(\"myMarketsInvert\",!0),sortBy:e.viewSettings.get(\"myMarketsSort\",\"volume\")}}},{key:\"componentWillReceiveProps\",value:function(e){e.findMarketTab!==this.props.findMarketTab&&this.setState(this._getInitialState(e))}},{key:\"shouldComponentUpdate\",value:function(e,t){return!e.markets||!this.props.markets||(!u.a.are_equal_shallow(t,this.state)||!u.a.are_equal_shallow(e.markets,this.props.markets)||e.starredMarkets!==this.props.starredMarkets||e.marketStats!==this.props.marketStats||e.userMarkets!==this.props.userMarkets)}},{key:\"_inverseSort\",value:function(){x.a.changeViewSetting({myMarketsInvert:!this.state.myMarketsInvert}),this.setState({inverseSort:!this.state.inverseSort})}},{key:\"_changeSort\",value:function(e){e!==this.state.sortBy?(x.a.changeViewSetting({myMarketsSort:e}),this.setState({sortBy:e})):this._inverseSort()}},{key:\"_onToggle\",value:function(){if(!this.props.findMarketTab){var e=!this.state.open;this.setState({open:e});var t={};t[\"myMarketsBase_\"+this.props.index]=e,x.a.changeViewSetting(t)}}},{key:\"_onToggleUserMarket\",value:function(e){var t=e.split(\"_\"),n=X(t,2),a=n[0],r=n[1],s=!this.props.userMarkets.get(e);x.a.setUserMarket(a,r,s)}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.columns,a=t.markets,r=t.base,o=t.marketStats,i=t.starredMarkets,l=t.current,c=this.state,u=c.sortBy,p=c.inverseSort,m=c.open;if(!a||!a.length)return null;var f=n.map(function(t){switch(t.name){case\"market\":return s.a.createElement(\"th\",{key:t.name,className:\"clickable\",onClick:e._changeSort.bind(e,\"name\")},s.a.createElement(h.a,{content:\"exchange.market\"}));case\"vol\":return s.a.createElement(\"th\",{key:t.name,className:\"clickable\",onClick:e._changeSort.bind(e,\"volume\"),style:{textAlign:\"right\"}},s.a.createElement(h.a,{content:\"exchange.vol_short\"}));case\"price\":return s.a.createElement(\"th\",{key:t.name,style:{textAlign:\"right\"}},s.a.createElement(h.a,{content:\"exchange.price\"}));case\"quoteSupply\":return s.a.createElement(\"th\",{key:t.name},s.a.createElement(h.a,{content:\"exchange.base_supply\"}));case\"baseSupply\":return s.a.createElement(\"th\",{key:t.name},s.a.createElement(h.a,{content:\"exchange.quote_supply\"}));case\"change\":return s.a.createElement(\"th\",{key:t.name,className:\"clickable\",onClick:e._changeSort.bind(e,\"change\"),style:{textAlign:\"right\"}},s.a.createElement(h.a,{content:\"exchange.change\"}));case\"issuer\":return s.a.createElement(\"th\",{key:t.name},s.a.createElement(h.a,{content:\"explorer.assets.issuer\"}));case\"add\":return s.a.createElement(\"th\",{key:t.name,style:{textAlign:\"right\"}},s.a.createElement(h.a,{content:\"account.perm.confirm_add\"}));default:return s.a.createElement(\"th\",{key:t.name})}}),d=a.map(function(t){return e.props.onlyLiquid&&o.get(t.id)&&0==o.get(t.id).volumeBase?null:s.a.createElement(A,{key:t.id,name:\"others\"===r?s.a.createElement(\"span\",null,s.a.createElement(N.a,{name:t.quote}),\":\",s.a.createElement(N.a,{name:t.base})):s.a.createElement(N.a,{dataPlace:\"left\",name:t.quote}),quote:t.quote,base:t.base,columns:n,leftAlign:!0,compact:!0,noSymbols:!0,stats:o.get(t.id),starred:i.has(t.id),current:l===t.id,isChecked:e.props.userMarkets.has(t.id),isDefault:e.props.defaultMarkets&&e.props.defaultMarkets.has(t.id),onCheckMarket:e._onToggleUserMarket.bind(e),location:e.props.location,history:e.props.history})}).filter(function(e){return null!==e}).sort(function(e,t){var n=e.key.split(\"_\"),a=t.key.split(\"_\"),r=o.get(n[0]+\"_\"+n[1]),s=o.get(a[0]+\"_\"+a[1]);switch(u){case\"name\":return n[0]>a[0]?p?-1:1:n[0]<a[0]?p?1:-1:n[1]>a[1]?p?-1:1:n[1]<a[1]?p?1:-1:0;case\"volume\":return r&&s?p?s.volumeBase-r.volumeBase:r.volumeBase-s.volumeBase:0;case\"change\":return r&&s?p?s.change-r.change:r.change-s.change:0}});return s.a.createElement(\"div\",{style:{paddingRight:10}},m?s.a.createElement(\"table\",{className:\"table table-hover text-right\"},s.a.createElement(\"thead\",null,s.a.createElement(\"tr\",null,f)),d&&d.length?s.a.createElement(\"tbody\",null,d):null):null)}}]),t}();te.defaultProps={maxRows:20,onlyLiquid:!1};var ne=function(e){function t(e){Z(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.clearInput=function(){n.setState({myMarketFilter:\"\"})},n.handleSearchUpdate=function(e){n.setState({myMarketFilter:e.target.value&&e.target.value.toUpperCase()})},n.state={inverseSort:e.viewSettings.get(\"myMarketsInvert\",!0),sortBy:e.viewSettings.get(\"myMarketsSort\",\"volume\"),activeTab:e.viewSettings.get(\"favMarketTab\",\"my-market\"),activeMarketTab:e.viewSettings.get(\"activeMarketTab\",0),lookupQuote:null,lookupBase:null,inputValue:\"\",minWidth:\"100%\",findBaseInput:\"USD\",activeFindBase:\"USD\"},n._setMinWidth=n._setMinWidth.bind(n),n.getAssetList=Object(a.a)(P.a.getAssetList.defer,150),n}return ee(t,s.a.Component),Y(t,[{key:\"shouldComponentUpdate\",value:function(e,t){return!(i.a.is(e.searchAssets,this.props.searchAssets)&&i.a.is(e.markets,this.props.markets)&&i.a.is(e.starredMarkets,this.props.starredMarkets)&&i.a.is(e.defaultMarkets,this.props.defaultMarkets)&&i.a.is(e.marketStats,this.props.marketStats)&&u.a.are_equal_shallow(t,this.state)&&e.current===this.props.current&&e.minWidth===this.props.minWidth&&e.listHeight===this.props.listHeight&&e.preferredBases===this.props.preferredBases&&e.onlyStars===this.props.onlyStars&&e.onlyLiquid===this.props.onlyLiquid&&e.assetsLoading===this.props.assetsLoading&&e.userMarkets===this.props.userMarkets)}},{key:\"componentWillMount\",value:function(){if(this.props.setMinWidth&&window.addEventListener(\"resize\",this._setMinWidth,{capture:!1,passive:!0}),this.props.currrent){var e=this.props.current.split(\"_\")[1],t=this.props.preferredBases.findIndex(function(t){return t===e});-1!==t&&t!==this.state.activeMarketTab&&this.setState({activeMarketTab:t})}}},{key:\"componentDidMount\",value:function(){var e=this.refs.favorites;c.a.initialize(e),this._setMinWidth()}},{key:\"componentWillUnmount\",value:function(){this.props.setMinWidth&&window.removeEventListener(\"resize\",this._setMinWidth),clearTimeout(this.timer)}},{key:\"componentWillReceiveProps\",value:function(e){this.props.myMarketTab&&!e.myMarketTab&&this.refs.findSearchInput&&this.refs.findSearchInput.focus()}},{key:\"_setMinWidth\",value:function(){this.props.setMinWidth&&this.refs.favorites&&\"my-market\"===this.props.activeTab&&this.state.minWidth!==this.refs.favorites.offsetWidth&&this.setState({minWidth:this.refs.favorites.offsetWidth})}},{key:\"componentDidUpdate\",value:function(){if(this.refs.favorites){var e=this.refs.favorites;c.a.update(e)}}},{key:\"_inverseSort\",value:function(){x.a.changeViewSetting({myMarketsInvert:!this.state.myMarketsInvert}),this.setState({inverseSort:!this.state.inverseSort})}},{key:\"_changeSort\",value:function(e){e!==this.state.sortBy?(x.a.changeViewSetting({myMarketsSort:e}),this.setState({sortBy:e})):this._inverseSort()}},{key:\"_goMarkets\",value:function(){this.props.history.push(\"/markets\")}},{key:\"_changeTab\",value:function(e){x.a.changeViewSetting({favMarketTab:e}),this.setState({activeTab:e}),this._setMinWidth()}},{key:\"_onInputName\",value:function(e,t){var n=this,a=t.target.value.trim().toUpperCase(),r=!R.ChainValidation.is_valid_symbol_error(a,!0);this.setState({inputValue:a}),a&&a.length>=2&&!r||(this.state.inputValue!==a&&this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){n._lookupAssets(a,e)},1500))}},{key:\"_lookupAssets\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e||\"\"===e){var n=e.toUpperCase().split(\":\"),a=n[0],r=2===n.length?n[1]:null;this.setState({lookupQuote:a,lookupBase:r}),x.a.changeViewSetting.defer({marketLookupInput:e.toUpperCase()}),this.getAssetList(a,50,t)}}},{key:\"toggleActiveMarketTab\",value:function(e){x.a.changeViewSetting({activeMarketTab:e}),this.setState({activeMarketTab:e})}},{key:\"_onInputBaseAsset\",value:function(e){this.setState({findBaseInput:e.toUpperCase(),error:null})}},{key:\"_onFoundBaseAsset\",value:function(e){e&&this.setState({activeFindBase:e.get(\"symbol\")})}},{key:\"_getMarkets\",value:function(){var e=this.props,t=e.searchAssets,n=e.defaultMarkets,a=e.onlyStars,r=e.userMarkets,s=e.preferredBases,o=e.starredMarkets,l=this.state,c=l.activeTab,u=l.lookupQuote,p=l.lookupBase,h=l.myMarketFilter,m=l.activeMarketTab,f=Object(H.d)(s),d=this._getBases(),y=[],b={},g=[],v=\"my-market\"===c;t.size&&t.filter(function(e){try{if(e.options.description){var t=JSON.parse(e.options.description);if(\"visible\"in t&&!t.visible)return!1}}catch(e){}return-1!==e.symbol.indexOf(u)&&e.symbol.length>=u.length}).forEach(function(e){d.forEach(function(t){var n=e.symbol+\"_\"+t;t!==e.symbol&&y.push([n,{quote:e.symbol,base:t}])})}),y=y.filter(function(e){return!p||e[1].quote===u});var k=v?n:i.a.Map(y);if(v&&r.size&&r.forEach(function(e,t){k.has(t)||(k=k.set(t,e))}),k.size>0){var _=v?s.get(m):this.state.activeFindBase,E=function(e,t,n,r,i){return{otherMarkets:n.filter(function(e){if(e.base===e.quote)return!1;if(v){var t=e.quote+\"_\"+e.base;return h?-1!==t.indexOf(h):!(a&&!o.has(t))}return!(u.length<1)&&-1!==e.quote.indexOf(u)}).map(function(n){var a=n.quote+\"_\"+n.base;if(-1!==t.indexOf(n.base)){r[e]||(r[e]=[]);var o={id:a,quote:n.quote,base:n.base};return r[e].find(function(e){return e.id===a})||r[e].push(o),null}if(!s.includes(n.base)&&-1===f.indexOf(n.base))return{id:a,quote:n.quote,base:n.base}}).filter(function(e){return!!e}).take(v?100:20).toArray().concat(i),baseGroups:r}}(_,[_],k,b,g);g=E.otherMarkets,b=E.baseGroups}return{baseGroups:b,otherMarkets:g}}},{key:\"_getBases\",value:function(){var e=this.props,t=e.preferredBases,n=e.searchAssets,a=this.state,r=a.lookupQuote,s=a.lookupBase,o=n.filter(function(e){return s&&s.length?0===e.symbol.indexOf(s):-1!==e.symbol.indexOf(r)}).map(function(e){if(s&&s.length){if(0===e.symbol.indexOf(s))return e.symbol}else if(t.includes(e.symbol)&&e.symbol.length>=r.length&&e.symbol.length<r.length+3)return e.symbol}).filter(function(e){return!!e}).toArray();return o=(o=o.concat(t.filter(function(e){return!s||!s.length||0===e.indexOf(s)}).toArray())).filter(function(e){return!(s&&s.length>1)||0===e.indexOf(s)})}},{key:\"render\",value:function(){var e=this,t=this.props,a=t.starredMarkets,r=t.marketStats,o=t.columns,i=t.assetsLoading,l=t.preferredBases,c=t.current,u=t.viewSettings,p=t.listHeight,f=this.state,d=f.activeMarketTab,y=\"my-market\"===f.activeTab,b=l.map(function(e){return e});y||(l=(l=l.clear()).push(this.state.activeFindBase)),y||(d=0);var g=this._getMarkets(),v=g.baseGroups,k=g.otherMarkets,_=k&&k.length,E=\"mymarkets-header clickable\",w=q()(E,{inactive:!y}),O=q()(E,{inactive:y}),M={minWidth:this.state.minWidth,minHeight:\"6rem\"};p&&(M.height=p);var C=n(14);return s.a.createElement(\"div\",{className:this.props.className,style:this.props.style},s.a.createElement(\"div\",{style:this.props.headerStyle,className:\"grid-block shrink left-orderbook-header bottom-header\"},s.a.createElement(\"div\",{ref:\"myMarkets\",className:w,onClick:this._changeTab.bind(this,\"my-market\"),\"data-intro\":C.translate(\"walkthrough.my_markets_tab\")},s.a.createElement(h.a,{content:\"exchange.market_name\"})),s.a.createElement(\"div\",{className:O,onClick:this._changeTab.bind(this,\"find-market\"),\"data-intro\":C.translate(\"walkthrough.find_markets_tab\")},s.a.createElement(h.a,{content:\"exchange.more\"}))),this.props.controls?s.a.createElement(\"div\",{className:\"small-12 medium-6\",style:{padding:\"1rem 0\"}},this.props.controls?s.a.createElement(\"div\",{style:{paddingBottom:\"0.5rem\"}},this.props.controls):null):null,y?s.a.createElement(\"div\",{className:\"grid-block vertical shrink\",style:{width:\"100%\",textAlign:\"left\",padding:\"0.75rem 0.5rem\"}},s.a.createElement(\"div\",null,s.a.createElement(\"label\",{style:{margin:\"3px 0 0\"}},s.a.createElement(\"input\",{style:{position:\"relative\",top:3},className:\"no-margin\",type:\"checkbox\",checked:this.props.onlyLiquid,onChange:function(){x.a.changeViewSetting({onlyLiquid:!e.props.onlyLiquid})}}),s.a.createElement(\"span\",{style:{paddingLeft:\"0.4rem\"}},s.a.createElement(h.a,{content:\"exchange.show_only_liquid\"}))),s.a.createElement(\"label\",{style:{margin:\"3px 0 0\"}},s.a.createElement(\"input\",{style:{position:\"relative\",top:3},className:\"no-margin\",type:\"checkbox\",checked:this.props.onlyStars,onChange:function(){S.a.toggleStars()}}),s.a.createElement(\"span\",{style:{paddingLeft:\"0.4rem\"}},s.a.createElement(m.a,{string:\"exchange.show_only_star_formatter\",keys:[{type:\"icon\",value:\"fi-star\",className:\"gold-star\",arg:\"star_icon\"}]}))),s.a.createElement(\"br\",null)),s.a.createElement(\"div\",{className:\"search-wrapper\"},s.a.createElement(\"form\",null,s.a.createElement(\"input\",{autoComplete:\"off\",style:{fontSize:\"0.9rem\",height:\"inherit\",position:\"relative\",top:1,padding:2},type:\"text\",className:\"no-margin market-filter-input\",placeholder:D.a.translate(\"exchange.filter\"),maxLength:\"16\",name:\"focus\",required:\"required\",value:this.state.myMarketFilter,onChange:this.handleSearchUpdate}),s.a.createElement(\"button\",{className:\"clear-text\",type:\"reset\",onClick:this.clearInput})))):s.a.createElement(\"div\",{style:{width:\"100%\",textAlign:\"left\",padding:\"0.75rem 0.5rem\"}},s.a.createElement(\"table\",null,s.a.createElement(\"tbody\",null,s.a.createElement(\"tr\",{style:{width:\"100%\"}},s.a.createElement(\"td\",null,s.a.createElement(L.a,{onAssetSelect:this._onFoundBaseAsset.bind(this),assets:b,onChange:this._onInputBaseAsset.bind(this),asset:this.state.findBaseInput,assetInput:this.state.findBaseInput,tabIndex:1,style:{width:\"100%\",paddingBottom:\"1.5rem\"},onFound:this._onFoundBaseAsset.bind(this),label:\"exchange.quote\",noLabel:!0,inputStyle:{fontSize:\"0.9rem\"}}))),s.a.createElement(\"tr\",{style:{width:\"100%\"}},s.a.createElement(\"td\",null,s.a.createElement(\"label\",null,s.a.createElement(h.a,{content:\"account.user_issued_assets.name\"}),\":\"),s.a.createElement(\"input\",{style:{fontSize:\"0.9rem\",position:\"relative\",top:1},type:\"text\",value:this.state.inputValue,onChange:this._onInputName.bind(this,!0),placeholder:D.a.translate(\"exchange.search\"),maxLength:\"16\",tabIndex:2,ref:\"findSearchInput\"}),this.state.assetNameError?s.a.createElement(\"div\",{className:\"error-area\",style:{paddingTop:10}},s.a.createElement(\"span\",{style:{wordBreak:\"break-all\"}},s.a.createElement(h.a,{content:\"explorer.asset.invalid\",name:this.state.inputValue}))):null))))),s.a.createElement(\"ul\",{className:\"mymarkets-tabs\"},y&&l.map(function(t,n){return t?s.a.createElement(\"li\",{key:t,onClick:e.toggleActiveMarketTab.bind(e,n),className:q()(\"mymarkets-tab\",{active:d===n})},t.replace(\"RUDEX.\",\"\")):null}),y?null:s.a.createElement(\"li\",{className:q()(\"mymarkets-tab\",{active:!0})},this.state.activeFindBase),y&&_?s.a.createElement(\"li\",{key:\"others\",style:{textTransform:\"uppercase\"},onClick:this.toggleActiveMarketTab.bind(this,l.size+1),className:q()(\"mymarkets-tab\",{active:d===l.size+1})},s.a.createElement(h.a,{content:\"exchange.others\"})):null,y&&s.a.createElement(\"li\",{key:\"quote_edit\",style:{textTransform:\"uppercase\"},onClick:function(){G.a.publish(\"quote_selection\",\"open\")},className:\"mymarkets-tab\"},\" + \")),s.a.createElement(\"div\",{style:M,className:\"table-container grid-block vertical mymarkets-list\",ref:\"favorites\"},i?s.a.createElement(\"div\",{style:{position:\"absolute\",paddingTop:\"3rem\",textAlign:\"center\",width:\"100%\"}},s.a.createElement(F.a,{type:\"three-bounce\"})):null,l.filter(function(e){return e===l.get(d)}).map(function(t,n){return s.a.createElement(te,{userMarkets:e.props.userMarkets,defaultMarkets:e.props.defaultMarkets,index:n,allowChange:!1,key:t,current:c,starredMarkets:a,marketStats:r,viewSettings:u,columns:y?o:e.props.findColumns||o,markets:v[t],base:t,maxRows:y?20:10,findMarketTab:!y,location:e.props.location,history:e.props.history,onlyLiquid:e.props.onlyLiquid&&y})}),d===l.size+1&&y&&_?s.a.createElement(te,{userMarkets:this.props.userMarkets,index:l.size,current:c,starredMarkets:a,marketStats:r,viewSettings:u,columns:o,markets:k,base:\"others\",maxRows:y?20:10,findMarketTab:!y,location:this.props.location,history:this.props.history}):null),s.a.createElement(K,{quotes:this.props.preferredBases}))}}]),t}();ne.defaultProps={activeTab:\"my-market\",setMinWidth:!1},ne=V()(ne,50,{leading:!1});var ae=function(e){function t(){return Z(this,t),$(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ee(t,s.a.Component),Y(t,[{key:\"render\",value:function(){return s.a.createElement(ne,this.props)}}]),t}();t.a=Object(f.a)(ae,{listenTo:function(){return[T.a,j.a,B.a]},getProps:function(){return{starredMarkets:T.a.getState().starredMarkets,onlyLiquid:T.a.getState().viewSettings.get(\"onlyLiquid\",!1),defaultMarkets:T.a.getState().defaultMarkets,viewSettings:T.a.getState().viewSettings,preferredBases:T.a.getState().preferredBases,marketStats:j.a.getState().allMarketStats,userMarkets:T.a.getState().userMarkets,searchAssets:B.a.getState().assets,onlyStars:j.a.getState().onlyStars,assetsLoading:B.a.getState().assetsLoading}}})}}]);"],"mappings":"AAAA","sourceRoot":""}