text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a3d2"],{bb51:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"page-title"},[r("h3",[t._v(t._s(t._f("localize")("HomeTitle")))]),r("button",{staticClass:"btn waves-effect waves-light btn-small",on:{click:t.refresh}},[r("i",{staticClass:"material-icons"},[t._v("refresh")])])]),t.loading?r("Loader"):r("div",{staticClass:"row"},[r("HomeBill",{attrs:{rates:t.currency.rates}}),r("HomeCurrency",{attrs:{rates:t.currency.rates,date:t.currency.date}})],1)],1)},s=[],a=(r("96cf"),r("3b8d")),c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col s12 m6 l4"},[r("div",{staticClass:"card light-blue bill-card"},[r("div",{staticClass:"card-content white-text"},[r("span",{staticClass:"card-title"},[t._v(t._s(t._f("localize")("HomeBillTitle")))]),t._l(t.currencies,(function(e){return r("p",{key:e,staticClass:"currency-line"},[r("span",[t._v(t._s(t._f("currency")(t.getCurrency(e),e)))])])}))],2)])])},i=[],l={props:["rates"],data:function(){return{currencies:["UAH","USD","EUR"]}},computed:{base:function(){return this.$store.getters.info.bill/(this.rates["UAH"]/this.rates["EUR"])}},methods:{getCurrency:function(t){return Math.floor(this.base*this.rates[t])}}},u=l,o=r("2877"),d=Object(o["a"])(u,c,i,!1,null,null,null),h=d.exports,f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col s12 m6 l8"},[r("div",{staticClass:"card orange darken-3 bill-card"},[r("div",{staticClass:"card-content white-text"},[r("div",{staticClass:"card-header"},[r("span",{staticClass:"card-title"},[t._v(t._s(t._f("localize")("HomeCurrencyTitle")))])]),r("table",[r("thead",[r("tr",[r("th",[t._v(t._s(t._f("localize")("HomeCurrencyTableCurrency")))]),r("th",[t._v(t._s(t._f("localize")("HomeCurrencyTableRate")))]),r("th",[t._v(t._s(t._f("localize")("HomeCurrencyTableDate")))])])]),r("tbody",t._l(t.currencies,(function(e){return r("tr",{key:e},[r("td",[t._v(t._s(e))]),r("td",[t._v(t._s(t.rates[e].toFixed(3)))]),r("td",[t._v(t._s(t._f("date")(t.date,"date")))])])})),0)])])])])},_=[],m={props:["rates","date"],data:function(){return{currencies:["UAH","USD","EUR"]}}},v=m,p=Object(o["a"])(v,f,_,!1,null,null,null),C=p.exports,b={name:"home",metaInfo:function(){return{title:this.$title("HomeTitle")}},data:function(){return{loading:!0,currency:null}},mounted:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("fetchCurrency");case 2:this.currency=t.sent,this.loading=!1;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{refresh:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,t.next=3,this.$store.dispatch("fetchCurrency");case 3:this.currency=t.sent,setTimeout((function(){e.loading=!1}),500);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},components:{HomeBill:h,HomeCurrency:C}},y=b,w=Object(o["a"])(y,n,s,!1,null,null,null);e["default"]=w.exports}}]);
  //# sourceMappingURL=chunk-2d21a3d2.6cbbadec.js.map