(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{524:function(e,t,n){var content=n(615);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("3865ea24",content,!0,{sourceMap:!1})},614:function(e,t,n){"use strict";n(524)},615:function(e,t,n){(t=n(5)(!1)).push([e.i,"[data-v-5b2a094b] .van-index-bar__sidebar{display:none}.van-cell__right-icon[data-v-5b2a094b]{font-size:14px}.van-field[data-v-5b2a094b]{line-height:32px;padding:8px 15px}",""]),e.exports=t},693:function(e,t,n){"use strict";n.r(t);n(105),n(70),n(63),n(69),n(249),n(34),n(88);var r,c=n(8),o=(n(600),n(613)),l=n.n(o),d=(n(603),n(612)),k=n.n(d),f=(n(606),n(611)),h=n.n(f),v=n(38),_=n(609),m=n.n(_);function x(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?x(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):x(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var O={components:(r={},Object(c.a)(r,h.a.name,h.a),Object(c.a)(r,k.a.name,k.a),Object(c.a)(r,l.a.name,l.a),r),i18n:{messages:{zh:{title:"自定义行情",placeholder:"请输入搜索关键词"},en:{title:"Custom Ticker",placeholder:"Please enter a search term"}}},data:function(){return{keyword:"",tickerAll:[]}},computed:{indexList:function(){return this.tickerAll.map((function(e){return e.exchange_name}))},filterList:function(){var e=this;return this.keyword?this.tickerAll.map((function(t){var n=t.ticker_list.list.filter((function(t){return new RegExp(e.keyword,"i").test("".concat(t.exchange_name,"|").concat(t.coin,"/").concat(t.exchange_name,"|").concat(t.coin_name))}));return y(y({},t),{},{ticker_list:{count:n.length,list:n}})})):this.tickerAll}},created:function(){var e=this;this.getTickerAll().then((function(t){var data=t.data;e.tickerAll=m()(data.list)}))},methods:y(y({},Object(v.b)({getTickerAll:"ticker/getTickerAll",addTicker:"ticker/addTicker",removeTicker:"ticker/removeTicker"})),{},{onChangeCheckbox:function(e,t,n){e.status?this.addTicker({ticker_id:e.ticker_id}):this.removeTicker({ticker_id:e.ticker_id})}})},w=(n(614),n(43)),component=Object(w.a)(O,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("van-nav-bar",{attrs:{title:e.$t("title"),"left-arrow":""},on:{"click-left":function(t){return e.$router.back()}}}),e._v(" "),n("div",[n("van-search",{attrs:{placeholder:e.$t("placeholder")},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e._v(" "),n("van-index-bar",{attrs:{"index-list":e.indexList}},e._l(e.filterList,(function(t,r){return n("div",{key:t.exchange_name+"-"+r},[n("van-index-anchor",{attrs:{index:t.exchange_name}},[e._v(e._s(t.exchange_name)+"（"+e._s(t.ticker_list.count)+"）")]),e._v(" "),e._l(t.ticker_list.list,(function(t,c){return n("van-cell",{key:t.ticker_id,attrs:{title:t.coin+"/"+t.currency},scopedSlots:e._u([{key:"right-icon",fn:function(){return[n("van-checkbox",{attrs:{shape:"square"},on:{change:function(n){return e.onChangeCheckbox(t,c,r)}},model:{value:t.status,callback:function(n){e.$set(t,"status",n)},expression:"item.status"}})]},proxy:!0}],null,!0)})}))],2)})),0)],1)],1)}),[],!1,null,"5b2a094b",null);t.default=component.exports}}]);