text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28fed842"],{"0070":function(t,e,n){},c79f:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"padding-x-3 padding-x-4--md padding-y-4"},[n("div",{staticClass:"flex flex-wrap justify-between items-center margin-bottom-3"},[n("div",{staticClass:"color-primary-light margin-bottom-3",domProps:{textContent:t._s(t.$t("deposit.my_deposits"))}}),n("div",{staticClass:"flex justify-center items-center margin-bottom-3"},[n("div",{staticClass:"flex justify-center items-center tab usd cursor-pointer",class:{active:"USD"===t.activeCurrency},on:{click:function(e){return t.changeCurrency("USD")}}},[n("icon-usd",{staticClass:"icon--crypto margin-right-2"}),n("div",{staticClass:"font-bold"},[t._v("USD")])],1),n("div",{staticClass:"flex justify-center items-center tab btc cursor-pointer",class:{active:"BTC"===t.activeCurrency},on:{click:function(e){return t.changeCurrency("BTC")}}},[n("icon-bitcoin",{staticClass:"icon--crypto margin-right-2"}),n("div",{staticClass:"font-bold"},[t._v("BTC")])],1),n("div",{staticClass:"flex justify-center items-center tab eth cursor-pointer",class:{active:"ETH"===t.activeCurrency},on:{click:function(e){return t.changeCurrency("ETH")}}},[n("icon-ethereum",{staticClass:"icon--crypto margin-right-2"}),n("div",{staticClass:"font-bold"},[t._v("ETH ")])],1)])]),n("div",[t.DEPOSITS.data.total>0?n("div",{staticClass:"grid grid-gap-3"},[n("div",{staticClass:"grid-column-12 grid-column-6--lg"},t._l(t.twoColonBlock?t.$firstHalf(t.DEPOSITS.data.list):t.DEPOSITS.data.list,(function(e,i){return n("div",{key:t.$getRandomKey(),staticClass:"animate-slide-in-down margin-bottom-3",style:"animation-delay: 0."+(i+1)+"s"},[n("account-my-deposit-card",{attrs:{item:e}})],1)})),0),n("div",{staticClass:"grid-column-12 grid-column-6--lg"},t._l(t.twoColonBlock?t.$secondHalf(t.DEPOSITS.data.list):"",(function(e,i){return n("div",{key:t.$getRandomKey(),staticClass:"animate-slide-in-down margin-bottom-3",style:"animation-delay: 0."+(i+1)+"s"},[n("account-my-deposit-card",{attrs:{item:e}})],1)})),0)]):n("no-data")],1),n("pagination",{attrs:{active:t.query.page,amount:t.query.amount,from:t.query.from,total:t.DEPOSITS.data.total},on:{change:t.changePage}})],1)},c=[],o=(n("d3b7"),n("96cf"),n("1da1")),a=n("5530"),r={from:0,amount:12,page:1},s={name:"AccountMyDeposits",components:{IconUSD:function(){return n.e("chunk-3b83a1c8").then(n.t.bind(null,"f04f",7))},IconBitcoin:function(){return n.e("chunk-513b72bd").then(n.t.bind(null,"f810",7))},IconEthereum:function(){return n.e("chunk-6196c150").then(n.t.bind(null,"0c5f",7))},AccountMyDepositCard:function(){return n.e("chunk-0d63d370").then(n.bind(null,"1cbe"))},NoData:function(){return n.e("chunk-0e310c66").then(n.bind(null,"1419"))},Pagination:function(){return n.e("chunk-4986c83a").then(n.bind(null,"1799"))}},data:function(){return{viewportWidth:0,twoColonBlock:!0,isAllDeposits:!0,activeCurrency:"",query:Object(a["a"])({},r)}},computed:{DEPOSITS:function(t){return t.$store.getters["deposits/DEPOSITS"]}},watch:{$LOCALE:{handler:function(){this.fetchDeposits(),this.viewportWidth=document.documentElement.clientWidth,this.formatColonBlock()},immediate:!0},viewportWidth:function(){this.formatColonBlock()}},created:function(){window.addEventListener("resize",this.updateViewportWidth)},destroyed:function(){window.removeEventListener("resize",this.updateViewportWidth)},methods:{formatColonBlock:function(){if(this.viewportWidth>991)return this.twoColonBlock=!0;this.twoColonBlock=!1},updateViewportWidth:function(){this.viewportWidth=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},changePage:function(t){this.query=Object(a["a"])(Object(a["a"])({},this.query),{},{from:this.query.amount*(t-1),page:t}),this.fetchDeposits()},clearPagination:function(){this.query.from=0,this.query.page=1},changeCurrency:function(t){this.activeCurrency=t,this.clearPagination(),this.query=Object(a["a"])(Object(a["a"])({},this.query),{},{currency:t}),this.fetchDeposits()},fetchDeposits:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("deposits/fetchDeposits",t.query);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),e.t0;case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))()}}},u=s,d=(n("da38"),n("2877")),l=Object(d["a"])(u,i,c,!1,null,"33f62918",null);e["default"]=l.exports},da38:function(t,e,n){"use strict";var i=n("0070"),c=n.n(i);c.a}}]);