forked from bitcoin/bitcoin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path9f89767b783ef39af59a.js.download
1 lines (1 loc) · 18.3 KB
/
9f89767b783ef39af59a.js.download
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1378:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return v})),n.d(e,"getters",(function(){return P})),n.d(e,"mutations",(function(){return L})),n.d(e,"actions",(function(){return S}));var r=n(4),o=n(36),c=n(2),f=(n(14),n(8),n(121),n(49),n(51),n(30),n(11),n(13),n(12),n(15),n(10),n(16),n(131)),l=n(81),d=n(115),m=n(212);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function w(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var v=function(){return{topInfo:{},recommendChart:[],sessionId:"",userInfo:null,banner:[],language:"",allTagsList:[],currencyTagsList:[],researchTagsList:[],newsTagsList:[],exchangeList:[],ecosystemList:[],isDark:!1}},P={topInfo:function(t){return t.topInfo},recommendChart:function(t){return t.recommendChart},sessionId:function(t){return t.sessionId},userInfo:function(t){return t.userInfo},banner:function(t){return t.banner},language:function(t){return t.language},isDark:function(t){return t.isDark}},L={setWallet:function(t,e){t.userInfo.walletAddress=e},setLanguage:function(t,e){t.language=e},setUser:function(t,e){t.userInfo=e},resetuser:function(t){t.userInfo=null},setTopInfo:function(t,e){t.topInfo=e},setBanner:function(t,e){t.banner=e},setRecommendChart:function(t,e){t.recommendChart=e},setSessionId:function(t,e){t.sessionId=e},goTop:function(){document&&document.querySelector(".content")&&(document.querySelector(".content").scrollTop=0)},setAllTagsList:function(t,e){t.allTagsList=e},setResearchTagsList:function(t,e){t.researchTagsList=e},setCurrencyTagsList:function(t,e){t.currencyTagsList=e},setNewsTagsList:function(t,e){t.newsTagsList=e},setExchanges:function(t,e){t.exchangeList=e},setEco:function(t,e){t.ecosystemList=e},setIsDark:function(t,e){t.isDark=e}},S={nuxtServerInit:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,c,l,m,h,w,v,P,L,S,O,R,k;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,c=t.state,l=t.dispatch,m=e.$cookies,h=e.i18n,w=m.get("sessionId"),v=m.get("isDark"),r("setSessionId",w),r("setIsDark",v),P=h.locale,L=[],c.userInfo||!w){n.next=22;break}return L.push(f.a.post(d.a.getUser,{},"sessionId=".concat(c.sessionId))),n.prev=10,n.next=13,Promise.allSettled(L);case 13:S=n.sent,O=Object(o.a)(S,1),(R=O[0])&&(0===(k=R.value).code?r("setUser",k.data):r("resetuser")),n.next=22;break;case 19:n.prev=19,n.t0=n.catch(10),console.log(n.t0);case 22:return n.next=24,Promise.all([l("getAllTagsList",P),l("getCurrencyTagsList",P),l("getNewsTagsList",P),l("getResearchTagsList",P),l("getExchanges",P),l("getEco",P),l("getRecommend"),l("getTopInfo")]);case 24:case"end":return n.stop()}}),n,null,[[10,19]])})))()},getRecommend:function(t){return Object(c.a)(regeneratorRuntime.mark((function e(){var n,r,source;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,f.a.get(l.a.recommend);case 4:return 0===(r=e.sent).code&&r.data.length>0&&(source=r.data.map((function(t){return t.change1d>0?t.color="#32be88":t.color="#e96975",t.xAxis=t.trendVoList.map((function(t){return t.sourceTime})),t.series=t.trendVoList.map((function(t){return t.amount})),t})),n("setRecommendChart",source)),e.abrupt("return",Promise.resolve({topInfo:r}));case 9:return e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.abrupt("return",Promise.reject(e.t0));case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))()},getTopInfo:function(t){return Object(c.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,e.prev=1,e.next=4,f.a.get(l.a.topInfo);case 4:return 0===(r=e.sent).code&&n("setTopInfo",r.data),e.abrupt("return",Promise.resolve({topInfo:r}));case 9:return e.prev=9,e.t0=e.catch(1),console.log(e.t0),e.abrupt("return",Promise.reject(e.t0));case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))()},getBanner:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o,data;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.post(l.a.banner,{language:e});case 4:return 0===(o=n.sent).code&&(data=o.data.map((function(t){return w(w({},t),{},{color:m.a[t.isOver],text:m.b[t.isOver]})})),r("setBanner",data)),n.abrupt("return",Promise.resolve({banner:o}));case 9:return n.prev=9,n.t0=n.catch(1),console.log(n.t0),n.abrupt("return",Promise.reject(n.t0));case 13:case"end":return n.stop()}}),n,null,[[1,9]])})))()},getAllTagsList:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.post(l.a.allTagsList,{language:e});case 4:0===(o=n.sent).code&&r("setAllTagsList",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},getCurrencyTagsList:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.post(l.a.currencyTagsList,{language:e});case 4:0===(o=n.sent).code&&r("setCurrencyTagsList",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},getNewsTagsList:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.post(l.a.newsTagsList,{language:e});case 4:0===(o=n.sent).code&&r("setNewsTagsList",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},getResearchTagsList:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.post(l.a.researchTagsList,{language:e});case 4:0===(o=n.sent).code&&r("setResearchTagsList",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},getExchanges:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.get(l.a.exchange,{language:e});case 4:0===(o=n.sent).code&&r("setExchanges",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()},getEco:function(t,e){return Object(c.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,n.prev=1,n.next=4,f.a.get(l.a.ecosystem,{language:e});case 4:0===(o=n.sent).code&&r("setEco",o.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[1,8]])})))()}}},1419:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));n(30),n(34);var r=function(){return{compares:[],currentBrend:"overview",coinDetail:{name:"",abbreviate:"",cid:"",currentPrice:null},compareCoinsDetail:[],currencies:{}}},o={compares:function(t){return t.compares},coinDetail:function(t){return t.coinDetail},currentBrend:function(t){return t.currentBrend},compareCoinsDetail:function(t){return t.compareCoinsDetail},currencies:function(t){return t.currencies}},c={setCompares:function(t,e){t.compares=e.map((function(t){return Number(t)}))},setCoinDetail:function(t,e){t.coinDetail=e},setCurrentBrend:function(t,e){t.currentBrend=e},setCompareCoinsDetail:function(t,e){t.compareCoinsDetail=e},setCurrencies:function(t,e){t.currencies=e}},f={}},1420:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));var r=function(){return{currentNewly:1,currentGainer:1,currentWatchlist:1,portfolioId:""}},o={currentNewly:function(t){return t.currentNewly},currentGainer:function(t){return t.currentGainer},currentWatchlist:function(t){return t.currentWatchlist},portfolioId:function(t){return t.portfolioId},total:function(t){return t.total}},c={setCurrentNewly:function(t,e){t.currentNewly=e},setCurrentGainer:function(t,e){t.currentGainer=e},setCurrentWatchlist:function(t,e){t.currentWatchlist=e},setPortfolioId:function(t,e){t.portfolioId=e}},f={initCureent:function(t){var e=t.commit;e("setCurrentNewly",1),e("setCurrentGainer",1),e("setCurrentWatchlist",1)}}},1421:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c}));var r=function(){return{compares:[],marketTag:null}},o={compares:function(t){return t.compares},marketTag:function(t){return t.marketTag}},c={setCompares:function(t,e){t.compares=e},setMarketTag:function(t,e){t.marketTag=e}}},1422:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));var r=function(){return{noRefresh:!1,showLogin:!1,showSignup:!1,showForget:!1,showSetPassword:!1,showSuccess:!1,showClose:!1,showSupplement:!1,showSupplementEmail:!1,showChangePassword:!1,supplementEmail:"",supplementAccount:null,restPassword:{email:"",code:""}}},o={noRefresh:function(t){return t.noRefresh},showClose:function(t){return t.showClose},showLogin:function(t){return t.showLogin},showSignup:function(t){return t.showSignup},showForget:function(t){return t.showForget},showSetPassword:function(t){return t.showSetPassword},showSuccess:function(t){return t.showSuccess},restPassword:function(t){return t.restPassword},showSupplement:function(t){return t.showSupplement},showSupplementEmail:function(t){return t.showSupplementEmail},showChangePassword:function(t){return t.showChangePassword},supplementAccount:function(t){return t.supplementAccount},supplementEmail:function(t){return t.supplementEmail}},c={setNoRefresh:function(t,e){t.noRefresh=e},setShowClose:function(t,e){t.showClose=e},setShowLogin:function(t,e){t.showLogin=e},setShowSignup:function(t,e){t.showSignup=e},setForget:function(t,e){t.showForget=e},setShowSetPassword:function(t,e){t.showSetPassword=e},setShowSuccess:function(t,e){t.showSuccess=e},setRestPassword:function(t,e){t.restPassword=e},setShowSupplement:function(t,data){t.showSupplement=data.showSupplement},setSupplementEmail:function(t,e){t.supplementEmail=e},setShowSupplementEmail:function(t,e){t.showSupplementEmail=e},setShowChangePassword:function(t,e){t.showChangePassword=e},setSupplementAccout:function(t,e){t.supplementAccount=e}},f={}},1423:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c}));var r=function(){return{opacity:0,navState:!0}},o={navOpacity:function(t){return t.opacity},navState:function(t){return t.navState}},c={setOpacity:function(t,e){t.opacity=e},setNavState:function(t,e){t.navState=e}}},1424:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));var r=function(){return{currentNews:1,date:{startDate:"",endDate:""}}},o={currentNews:function(t){return t.currentNews},date:function(t){return t.date}},c={setCurrentNews:function(t,e){t.currentNews=e},setDate:function(t,e){t.date=e}},f={}},1425:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return m})),n.d(e,"getters",(function(){return h})),n.d(e,"mutations",(function(){return w})),n.d(e,"actions",(function(){return v}));n(11),n(13),n(12),n(15),n(16);var r=n(4),o=n(2),c=(n(14),n(8),n(10),n(30),n(17),n(57)),f=n(131);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m=function(){return{portfolioName:"",portfolioId:"",portfolios:[],loading:!1,tableLoading:!1,list:[],desensitization:!0,detailVisible:!1,portfolioDetail:{}}},h={portfolioName:function(t){return t.portfolioName},portfolioId:function(t){return t.portfolioId},portfolios:function(t){return t.portfolios},loading:function(t){return t.loading},tableLoading:function(t){return t.tableLoading},list:function(t){return t.list},desensitization:function(t){return t.desensitization},detailVisible:function(t){return t.detailVisible},portfolioDetail:function(t){return t.portfolioDetail}},w={setPortfolioName:function(t,e){t.portfolioName=e},setPortfolioId:function(t,e){t.portfolioId=e},setPortfolios:function(t,e){t.portfolios=e},setPortfolioItemDesensitization:function(t,e){t.portfolios.forEach((function(t){t.id===e?t.desensitization=!t.desensitization:t.desensitization=!0}))},setLoading:function(t,e){t.loading=e},setTableLoading:function(t,e){t.tableLoading=e},setList:function(t,e){t.list=e},setDesensitization:function(t,e){t.desensitization=e},setDetailVisible:function(t,e){t.detailVisible=e},setPortfolioDetail:function(t,e){t.portfolioDetail=e},init:function(t){t.portfolioName="",t.portfolioId="",t.portfolios=[],t.list=[],t.loading=!1,t.tableLoading=!1,t.desensitization=!0,t.detailVisible=!1}},v={getPortfolios:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o,l,m,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,r=t.state,n("setLoading",!0),e.prev=2,e.next=5,f.a.get(c.a.portfolios);case 5:0===(o=e.sent).code&&(h=o.data.map((function(t){return t.id===r.portfolioId?d(d({},t),{},{desensitization:!1}):d(d({},t),{},{desensitization:!0})})),n("setPortfolioName",r.setPortfolioName||(null===(l=h[0])||void 0===l?void 0:l.name)),n("setPortfolioId",r.portfolioId||(null===(m=h[0])||void 0===m?void 0:m.id)),n("setPortfolios",h)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.log(e.t0);case 12:n("setLoading",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))()},getProtfolioTable:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o,l,m,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,r=t.state,n("setTableLoading",!0),e.prev=2,e.next=5,f.a.post(c.a.portfolioTables,{portfolioId:r.portfolioId,sort:1});case 5:30===(o=e.sent).code&&(m=null===(l=o.data.portfolioResponse)||void 0===l?void 0:l.assets,h=o.data.portfolioInfoListResponse.map((function(t,e){return d(d({},t),{},{serial:e+1,pnl:t.numbers*(t.price-t.pricePerCoin),assetsProportion:t.numbers*t.price/m})})),n("setList",h)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.log(e.t0);case 12:n("setTableLoading",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))()},getPortfolioDetail:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,r=t.state,n("setPortfolioDetail",[]),e.prev=2,e.next=5,f.a.post(c.a.portfolioDetail,{portfolioId:r.portfolioId});case 5:30===(o=e.sent).code&&n("setPortfolioDetail",o.data.portfolioResponse),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))()}}},1426:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));var r=function(){return{mode:"card",currentResearch:1}},o={mode:function(t){return t.mode},currentResearch:function(t){return t.currentResearch}},c={setMode:function(t,e){t.mode=e},setCurrentResearch:function(t,e){t.currentResearch=e}},f={}},1427:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c})),n.d(e,"actions",(function(){return f}));var r=function(){return{currentTab:"ALL",searchVal:""}},o={currentTab:function(t){return t.currentTab},searchVal:function(t){return t.searchVal}},c={setCurrentTab:function(t,e){t.currentTab=e},setSearchVal:function(t,e){t.searchVal=e}},f={}},1428:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c}));var r=function(){return{coinsPage:1,researchPage:1,newsPage:1,tokenwiki:1}},o={coinsPage:function(t){return t.coinsPage},researchPage:function(t){return t.researchPage},newsPage:function(t){return t.newsPage},tokenwikiPage:function(t){return t.tokenwikiPage}},c={SetCoinsPage:function(t,e){t.coinsPage=e},SetResearchPage:function(t,e){t.researchPage=e},SetNewsPage:function(t,e){t.newsPage=e},SetTokenwikiPage:function(t,e){t.tokenwikiPage=e}}},1429:function(t,e,n){"use strict";n.r(e),n.d(e,"state",(function(){return r})),n.d(e,"getters",(function(){return o})),n.d(e,"mutations",(function(){return c}));var r=function(){return{currentCrypto:1,currentResearch:1,currentNews:1}},o={currentCrypto:function(t){return t.currentCrypto},currentResearch:function(t){return t.currentResearch},currentNews:function(t){return t.currentNews}},c={setCurrentCrypto:function(t,e){t.currentCrypto=e},setCurrentResearch:function(t,e){t.currentResearch=e},setCurrentNews:function(t,e){t.currentNews=e}}}},[[2067,9,0,3,1,4,5,2,6]]]);