Skip to content

Firefly III: a personal finances manager

Sort expenses and revenue by percentage.

James Cole075605469029
diff --git a/frontend/src/components/dashboard/MainCreditList.vue b/frontend/src/components/dashboard/MainCreditList.vue
index 6b17a64cf4..8432943544 100644
--- a/frontend/src/components/dashboard/MainCreditList.vue
+++ b/frontend/src/components/dashboard/MainCreditList.vue
@@ -71,6 +71,7 @@ import {createNamespacedHelpers} from "vuex";
const {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')
+// TODO same as credit list but reversed
export default {
name: "MainCreditList",
@@ -131,21 +132,27 @@ export default {
},
parseIncome(data) {
for (let mainKey in data) {
- if (data.hasOwnProperty(mainKey) ) {
+ if (data.hasOwnProperty(mainKey)) {
mainKey = parseInt(mainKey);
// contains currency info and entries.
let current = data[mainKey];
- if (0 === mainKey) {
- this.max = data[mainKey].difference_float;
- current.pct = 100;
- }
- if (0 !== mainKey) {
- // calc percentage:
- current.pct = (data[mainKey].difference_float / this.max) * 100;
- }
+ current.pct = 0;
+ this.max = current.difference_float > this.max ? current.difference_float : this.max;
this.income.push(current);
}
}
+ if (0 === this.max) {
+ this.max = 1;
+ }
+ // now sort + pct:
+ for (let i in this.income) {
+ if (this.income.hasOwnProperty(i)) {
+ let current = this.income[i];
+ current.pct = (current.difference_float / this.max) * 100;
+ this.income[i] = current;
+ }
+ }
+ this.income.sort((a,b) => (a.pct > b.pct) ? -1 : ((b.pct > a.pct) ? 1 : 0));
}
}
}
diff --git a/frontend/src/components/dashboard/MainDebitList.vue b/frontend/src/components/dashboard/MainDebitList.vue
index f12389db8d..3c47ffe204 100644
--- a/frontend/src/components/dashboard/MainDebitList.vue
+++ b/frontend/src/components/dashboard/MainDebitList.vue
@@ -78,7 +78,7 @@ export default {
return {
locale: 'en-US',
expenses: [],
- max: 0,
+ min: 0,
loading: true,
error: false
}
@@ -132,20 +132,27 @@ export default {
parseExpenses(data) {
for (let mainKey in data) {
if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\d*$/.test(mainKey) && mainKey <= 4294967294) {
- // contains currency info and entries.
let current = data[mainKey];
- if (0 === parseInt(mainKey)) {
- this.max = data[mainKey].difference_float;
- current.pct = 100;
- }
- if (0 !== parseInt(mainKey)) {
- // calc percentage:
- current.pct = (data[mainKey].difference_float / this.max) * 100;
- }
+ current.pct = 0;
+
+ this.min = current.difference_float < this.min ? current.difference_float : this.min;
this.expenses.push(current);
+ }
+ }
+ if (0 === this.min) {
+ this.min = -1;
+ }
+ // now sort + pct:
+ for (let i in this.expenses) {
+ if (this.expenses.hasOwnProperty(i)) {
+ let current = this.expenses[i];
+ current.pct = (current.difference_float*-1 / this.min*-1) * 100;
+ this.expenses[i] = current;
}
}
+ this.expenses.sort((a,b) => (a.pct > b.pct) ? -1 : ((b.pct > a.pct) ? 1 : 0));
+
}
}
}
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index 838cabb760..521510f272 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -2002,9 +2002,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001181:
- version "1.0.30001204"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001204.tgz#256c85709a348ec4d175e847a3b515c66e79f2aa"
- integrity sha512-JUdjWpcxfJ9IPamy2f5JaRDCaqJOxDzOSKtbdx4rH9VivMd1vIzoPumsJa9LoMIi4Fx2BV2KZOxWhNkBjaYivQ==
+ version "1.0.30001205"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001205.tgz#d79bf6a6fb13196b4bb46e5143a22ca0242e0ef8"
+ integrity sha512-TL1GrS5V6LElbitPazidkBMD9sa448bQDDLrumDqaggmKFcuU2JW1wTOHJPukAcOMtEmLcmDJEzfRrf+GjM0Og==
chalk@^1.1.3:
version "1.1.3"
diff --git a/public/v2/js/dashboard.js b/public/v2/js/dashboard.js
index 8366bcbf5f..82988bdf3b 100755
--- a/public/v2/js/dashboard.js
+++ b/public/v2/js/dashboard.js
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{276:function(t,e,a){a(457),t.exports=a(725)},277:function(t,e,a){var s={"./af":89,"./af.js":89,"./ar":90,"./ar-dz":91,"./ar-dz.js":91,"./ar-kw":92,"./ar-kw.js":92,"./ar-ly":93,"./ar-ly.js":93,"./ar-ma":94,"./ar-ma.js":94,"./ar-sa":95,"./ar-sa.js":95,"./ar-tn":96,"./ar-tn.js":96,"./ar.js":90,"./az":97,"./az.js":97,"./be":98,"./be.js":98,"./bg":99,"./bg.js":99,"./bm":100,"./bm.js":100,"./bn":101,"./bn-bd":102,"./bn-bd.js":102,"./bn.js":101,"./bo":103,"./bo.js":103,"./br":104,"./br.js":104,"./bs":105,"./bs.js":105,"./ca":106,"./ca.js":106,"./cs":107,"./cs.js":107,"./cv":108,"./cv.js":108,"./cy":109,"./cy.js":109,"./da":110,"./da.js":110,"./de":111,"./de-at":112,"./de-at.js":112,"./de-ch":113,"./de-ch.js":113,"./de.js":111,"./dv":114,"./dv.js":114,"./el":115,"./el.js":115,"./en-au":116,"./en-au.js":116,"./en-ca":117,"./en-ca.js":117,"./en-gb":118,"./en-gb.js":118,"./en-ie":119,"./en-ie.js":119,"./en-il":120,"./en-il.js":120,"./en-in":121,"./en-in.js":121,"./en-nz":122,"./en-nz.js":122,"./en-sg":123,"./en-sg.js":123,"./eo":124,"./eo.js":124,"./es":125,"./es-do":126,"./es-do.js":126,"./es-mx":127,"./es-mx.js":127,"./es-us":128,"./es-us.js":128,"./es.js":125,"./et":129,"./et.js":129,"./eu":130,"./eu.js":130,"./fa":131,"./fa.js":131,"./fi":132,"./fi.js":132,"./fil":133,"./fil.js":133,"./fo":134,"./fo.js":134,"./fr":135,"./fr-ca":136,"./fr-ca.js":136,"./fr-ch":137,"./fr-ch.js":137,"./fr.js":135,"./fy":138,"./fy.js":138,"./ga":139,"./ga.js":139,"./gd":140,"./gd.js":140,"./gl":141,"./gl.js":141,"./gom-deva":142,"./gom-deva.js":142,"./gom-latn":143,"./gom-latn.js":143,"./gu":144,"./gu.js":144,"./he":145,"./he.js":145,"./hi":146,"./hi.js":146,"./hr":147,"./hr.js":147,"./hu":148,"./hu.js":148,"./hy-am":149,"./hy-am.js":149,"./id":150,"./id.js":150,"./is":151,"./is.js":151,"./it":152,"./it-ch":153,"./it-ch.js":153,"./it.js":152,"./ja":154,"./ja.js":154,"./jv":155,"./jv.js":155,"./ka":156,"./ka.js":156,"./kk":157,"./kk.js":157,"./km":158,"./km.js":158,"./kn":159,"./kn.js":159,"./ko":160,"./ko.js":160,"./ku":161,"./ku.js":161,"./ky":162,"./ky.js":162,"./lb":163,"./lb.js":163,"./lo":164,"./lo.js":164,"./lt":165,"./lt.js":165,"./lv":166,"./lv.js":166,"./me":167,"./me.js":167,"./mi":168,"./mi.js":168,"./mk":169,"./mk.js":169,"./ml":170,"./ml.js":170,"./mn":171,"./mn.js":171,"./mr":172,"./mr.js":172,"./ms":173,"./ms-my":174,"./ms-my.js":174,"./ms.js":173,"./mt":175,"./mt.js":175,"./my":176,"./my.js":176,"./nb":177,"./nb.js":177,"./ne":178,"./ne.js":178,"./nl":179,"./nl-be":180,"./nl-be.js":180,"./nl.js":179,"./nn":181,"./nn.js":181,"./oc-lnc":182,"./oc-lnc.js":182,"./pa-in":183,"./pa-in.js":183,"./pl":184,"./pl.js":184,"./pt":185,"./pt-br":186,"./pt-br.js":186,"./pt.js":185,"./ro":187,"./ro.js":187,"./ru":188,"./ru.js":188,"./sd":189,"./sd.js":189,"./se":190,"./se.js":190,"./si":191,"./si.js":191,"./sk":192,"./sk.js":192,"./sl":193,"./sl.js":193,"./sq":194,"./sq.js":194,"./sr":195,"./sr-cyrl":196,"./sr-cyrl.js":196,"./sr.js":195,"./ss":197,"./ss.js":197,"./sv":198,"./sv.js":198,"./sw":199,"./sw.js":199,"./ta":200,"./ta.js":200,"./te":201,"./te.js":201,"./tet":202,"./tet.js":202,"./tg":203,"./tg.js":203,"./th":204,"./th.js":204,"./tk":205,"./tk.js":205,"./tl-ph":206,"./tl-ph.js":206,"./tlh":207,"./tlh.js":207,"./tr":208,"./tr.js":208,"./tzl":209,"./tzl.js":209,"./tzm":210,"./tzm-latn":211,"./tzm-latn.js":211,"./tzm.js":210,"./ug-cn":212,"./ug-cn.js":212,"./uk":213,"./uk.js":213,"./ur":214,"./ur.js":214,"./uz":215,"./uz-latn":216,"./uz-latn.js":216,"./uz.js":215,"./vi":217,"./vi.js":217,"./x-pseudo":218,"./x-pseudo.js":218,"./yo":219,"./yo.js":219,"./zh-cn":220,"./zh-cn.js":220,"./zh-hk":221,"./zh-hk.js":221,"./zh-mo":222,"./zh-mo.js":222,"./zh-tw":223,"./zh-tw.js":223};function r(t){var e=n(t);return a(e)}function n(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}r.keys=function(){return Object.keys(s)},r.resolve=n,t.exports=r,r.id=277},457:function(t,e,a){"use strict";a.r(e);var s={name:"Dashboard"},r=a(4),n=Object(r.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("top-boxes"),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-account")],1)]),t._v(" "),a("main-account-list"),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-budget-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-category-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-debit-list")],1),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-credit-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-piggy-list")],1),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-bills-list")],1)])],1)}),[],!1,null,null,null).exports,i=a(14);function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function o(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var u=Object(i.b)("dashboard/index"),d=(u.mapState,u.mapGetters),p=(u.mapActions,u.mapMutations,{name:"TopBoxes",props:{},data:function(){return{summary:[],balances:[],billsPaid:[],billsUnpaid:[],leftToSpend:[],netWorth:[],loading:!0,error:!1,ready:!1}},computed:o(o({},d(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready},prefCurrencyBalances:function(){return this.filterOnCurrency(this.balances)},notPrefCurrencyBalances:function(){return this.filterOnNotCurrency(this.balances)},prefBillsUnpaid:function(){return this.filterOnCurrency(this.billsUnpaid)},notPrefBillsUnpaid:function(){return this.filterOnNotCurrency(this.billsUnpaid)},prefLeftToSpend:function(){return this.filterOnCurrency(this.leftToSpend)},notPrefLeftToSpend:function(){return this.filterOnNotCurrency(this.leftToSpend)},prefNetWorth:function(){return this.filterOnCurrency(this.netWorth)},notPrefNetWorth:function(){return this.filterOnNotCurrency(this.netWorth)},currencyCode:function(){return this.$store.getters.currencyCode},currencyId:function(){return this.$store.getters.currencyId}}),watch:{datesReady:function(t){!0===t&&this.prepareComponent()},start:function(){!1===this.loading&&this.prepareComponent()},end:function(){!1===this.loading&&this.prepareComponent()}},created:function(){this.ready=!0},methods:{filterOnCurrency:function(t){var e=[];for(var a in t)t.hasOwnProperty(a)&&t[a].currency_id===this.currencyId&&e.push(t[a]);return 0===e.length&&t.hasOwnProperty(0)&&e.push(t[0]),e},filterOnNotCurrency:function(t){var e=[];for(var a in t)t.hasOwnProperty(a)&&t[a].currency_id!==this.currencyId&&e.push(t[a]);return e},prepareComponent:function(){var t=this;this.error=!1,this.loading=!0,this.summary=[],this.balances=[],this.billsPaid=[],this.billsUnpaid=[],this.leftToSpend=[],this.netWorth=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/summary/basic?start="+e+"&end="+a).then((function(e){t.summary=e.data,t.buildComponent(),t.loading=!1})).catch((function(e){t.error=!0}))},buildComponent:function(){this.getBalanceEntries(),this.getBillsEntries(),this.getLeftToSpend(),this.getNetWorth()},hasCurrency:function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].currency_id===this.currencyId)return!0;return!1},getBalanceEntries:function(){this.balances=this.getKeyedEntries("balance-in-")},getNetWorth:function(){this.netWorth=this.getKeyedEntries("net-worth-in-")},getLeftToSpend:function(){this.leftToSpend=this.getKeyedEntries("left-to-spend-in-")},getBillsEntries:function(){this.billsPaid=this.getKeyedEntries("bills-paid-in-"),this.billsUnpaid=this.getKeyedEntries("bills-unpaid-in-")},getKeyedEntries:function(t){var e=[];for(var a in this.summary)this.summary.hasOwnProperty(a)&&t===a.substr(0,t.length)&&e.push(this.summary[a]);return e}}}),f=Object(r.a)(p,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(0),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.balance")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefCurrencyBalances,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(1),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefCurrencyBalances,(function(e,s){return a("span",{attrs:{title:e.sub_title}},[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefCurrencyBalances.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefCurrencyBalances.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(2),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.bills_to_pay")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefBillsUnpaid,(function(e){return a("span",{staticClass:"info-box-number"},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(3),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefBillsUnpaid,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefBillsUnpaid.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefBillsUnpaid.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(4),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.left_to_spend")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefLeftToSpend,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(5),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefLeftToSpend,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefLeftToSpend.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefLeftToSpend.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(6),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.net_worth")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefNetWorth,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(7),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefNetWorth,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefNetWorth.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefNetWorth.length?a("span",[t._v(" ")]):t._e()],2)],2)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-bookmark text-info"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-info"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-calendar-alt text-teal"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-teal"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])}],!1,null,null,null).exports,_={name:"DataConverter",data:function(){return{dataSet:null,newDataSet:null,locale:localStorage.local}},methods:{convertChart:function(t){return this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]},this.getLabels(),this.getDataSets(),this.newDataSet.count=this.newDataSet.datasets.length,this.newDataSet},colorizeBarData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],a=[],s=0;s<e.length;s++)a.push("rgba("+e[s][0]+", "+e[s][1]+", "+e[s][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=a[r],this.newDataSet.datasets.push(n)}return this.newDataSet},colorizeLineData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],a=[],s=0;s<e.length;s++)a.push("rgba("+e[s][0]+", "+e[s][1]+", "+e[s][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=a[r],this.newDataSet.datasets.push(n)}return this.newDataSet},convertLabelsToDate:function(t){for(var e in t.labels)if(t.labels.hasOwnProperty(e)){var a=Date.parse(t.labels[e]);t.labels[e]=new Intl.DateTimeFormat(this.locale).format(a)}return t},getLabels:function(){var t=this.dataSet[0];if(void 0!==t)for(var e in t.entries)t.entries.hasOwnProperty(e)&&this.newDataSet.labels.push(e)},getDataSets:function(){for(var t in this.dataSet)if(this.dataSet.hasOwnProperty(t)){var e={},a=this.dataSet[t];if(void 0!==a){for(var s in e.label=a.label,e.type=a.type,e.currency_symbol=a.currency_symbol,e.currency_code=a.currency_code,e.yAxisID=a.yAxisID,e.data=[],a.entries)a.entries.hasOwnProperty(s)&&e.data.push(a.entries[s]);this.newDataSet.datasets.push(e)}}}}},b=Object(r.a)(_,void 0,void 0,!1,null,null,null).exports,h={name:"DefaultLineOptions",data:function(){return{}},methods:{formatLabel:function(t,e){var a=[],s=(t=String(t)).split(" "),r="";return s.forEach((function(t,n){if(r.length>0){var i=r+" "+t;if(!(i.length>e))return n===s.length-1?void a.push(i):void(r=i);a.push(r),r=""}n!==s.length-1&&t.length<e?r=t:a.push(t)})),a},getDefaultOptions:function(){var t=this;return{legend:{display:!1},animation:{duration:0},responsive:!0,maintainAspectRatio:!1,elements:{line:{cubicInterpolationMode:"monotone"}},scales:{xAxes:[{gridLines:{display:!1},ticks:{callback:function(e,a,s){var r=new Date(e),n=new Intl.DateTimeFormat(localStorage.locale,{year:"numeric",month:"long",day:"numeric"}).format(r);return t.formatLabel(n,20)}}}],yAxes:[{display:!0,ticks:{callback:function(t){var e=this.chart.data.datasets[0].currency_code?this.chart.data.datasets[0].currency_code:"EUR";return new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:e}).format(t)},beginAtZero:!0}}]},tooltips:{mode:"index",callbacks:{label:function(t,e){var a=e.datasets[t.datasetIndex].currency_code?e.datasets[t.datasetIndex].currency_code:"EUR",s=new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:a}).format(t.yLabel);return e.datasets[t.datasetIndex].label+": "+s}}}}}}},m=Object(r.a)(h,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,"5f7e90aa",null).exports,g=a(88),v=g.b.reactiveProp,y={extends:g.a,mixins:[v],props:["options"],mounted:function(){this.renderChart(this.chartData,this.options)}},C=Object(r.a)(y,void 0,void 0,!1,null,null,null).exports;function j(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function w(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?j(Object(a),!0).forEach((function(e){O(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function O(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var x=Object(i.b)("dashboard/index"),S=(x.mapState,x.mapGetters),P=(x.mapActions,x.mapMutations,{name:"MainAccount",components:{MainAccountChart:C},data:function(){return{loading:!0,error:!1,ready:!1,dataCollection:{},chartOptions:{}}},created:function(){this.ready=!0,this.chartOptions=m.methods.getDefaultOptions()},computed:w(w({},S(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseChart()},start:function(){this.initialiseChart()},end:function(){this.initialiseChart()}},methods:{initialiseChart:function(){var t=this;this.loading=!0,this.error=!1;var e="./api/v1/chart/account/overview?start="+this.start.toISOString().split("T")[0]+"&end="+this.end.toISOString().split("T")[0];axios.get(e).then((function(e){var a=b.methods.convertChart(e.data);a=b.methods.colorizeLineData(a),t.dataCollection=a,t.loading=!1})).catch((function(e){t.error=!0}))}}}),L=Object(r.a)(P,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.yourAccounts")))])]),t._v(" "),a("div",{staticClass:"card-body"},[t.loading?t._e():a("div",[t.loading||t.error?t._e():a("MainAccountChart",{attrs:{"chart-data":t.dataCollection,options:t.chartOptions}})],1),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"text-center"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("div",{staticClass:"text-center"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e()]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./accounts/asset"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_asset_accounts")))])])])}),[],!1,null,null,null).exports;function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function I(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){D(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function D(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var E=Object(i.b)("dashboard/index"),F=(E.mapState,E.mapGetters),k=(E.mapActions,E.mapMutations,{name:"MainAccountList",data:function(){return{loading:!0,error:!1,ready:!1,accounts:[],locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:I(I({},F(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseList()},start:function(){!1===this.loading&&this.initialiseList()},end:function(){!1===this.loading&&this.initialiseList()}},methods:{initialiseList:function(){var t=this;this.loading=!0,this.accounts=[],axios.get("./api/v1/preferences/frontpageAccounts").then((function(e){t.loadAccounts(e)}))},loadAccounts:function(t){var e=t.data.data.attributes.data;for(var a in e)e.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&(this.accounts.push({id:e[a],title:"",url:"",current_balance:"",currency_code:"EUR",transactions:[]}),this.loadSingleAccount(a,e[a]))},loadSingleAccount:function(t,e){var a=this;axios.get("./api/v1/accounts/"+e).then((function(s){a.accounts[t].title=s.data.data.attributes.name,a.accounts[t].url="./accounts/show/"+s.data.data.id,a.accounts[t].current_balance=s.data.data.attributes.current_balance,a.accounts[t].currency_code=s.data.data.attributes.currency_code,a.loadTransactions(t,e)}))},loadTransactions:function(t,e){var a=this,s=this.start.toISOString().split("T")[0],r=this.end.toISOString().split("T")[0];axios.get("./api/v1/accounts/"+e+"/transactions?page=1&limit=10&start="+s+"&end="+r).then((function(e){a.accounts[t].transactions=e.data.data,a.loading=!1,a.error=!1}))}}}),B=Object(r.a)(k,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.loading&&!t.error?a("div",{staticClass:"row"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"row"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"row"},t._l(t.accounts,(function(e){return a("div",{class:{"col-lg-12":1===t.accounts.length,"col-lg-6":2===t.accounts.length,"col-lg-4":t.accounts.length>2}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[a("a",{attrs:{href:e.url}},[t._v(t._s(e.title))])]),t._v(" "),a("div",{staticClass:"card-tools"},[a("span",{class:parseFloat(e.current_balance)<0?"text-danger":"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.current_balance)))+"\n ")])])]),t._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("div",[1===t.accounts.length?a("transaction-list-large",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e(),t._v(" "),2===t.accounts.length?a("transaction-list-medium",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e(),t._v(" "),t.accounts.length>2?a("transaction-list-small",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e()],1)])])])})),0)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])])])])}],!1,null,"5d6bb842",null).exports;function N(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?N(Object(a),!0).forEach((function(e){U(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):N(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function U(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var R=Object(i.b)("dashboard/index"),A=(R.mapState,R.mapGetters),z=(R.mapActions,R.mapMutations,{name:"MainBillsList",data:function(){return{bills:[],locale:"en-US",ready:!1,loading:!0,error:!1}},computed:T(T({},A(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseBills()},start:function(){!1===this.loading&&this.initialiseBills()},end:function(){!1===this.loading&&this.initialiseBills()}},created:function(){var t;this.ready=!0,this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},components:{},methods:{initialiseBills:function(){var t=this;this.loading=!0,this.bills=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/bills?start="+e+"&end="+a).then((function(e){t.loadBills(e.data.data)})).catch((function(e){t.error=!0,t.loading=!1}))},renderPaidDate:function(t){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(t.date)),a=this.$t("firefly.bill_paid_on",{date:e});return'<a href="./transactions/show/'+t.transaction_group_id+'" title="'+a+'">'+a+"</a>"},loadBills:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e],s=a.attributes.active;a.attributes.pay_dates.length>0&&s&&this.bills.push(a)}this.error=!1,this.loading=!1}}}),G=Object(r.a)(z,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.bills")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.bills")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.name")))]),t._v(" "),a("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.next_expected_match")))])])]),t._v(" "),a("tbody",t._l(this.bills,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"./bills/show/"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v("\n (~ "),a("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format((parseFloat(e.attributes.amount_min)+parseFloat(e.attributes.amount_max))/-2)))]),t._v(")\n "),e.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),a("td",[t._l(e.attributes.paid_dates,(function(e){return a("span",[a("span",{domProps:{innerHTML:t._s(t.renderPaidDate(e))}}),a("br")])})),t._v(" "),t._l(e.attributes.pay_dates,(function(s){return 0===e.attributes.paid_dates.length?a("span",[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(s)))),a("br")]):t._e()}))],2)])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./bills"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_bills")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,M={name:"BudgetLimitRow",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budgetLimit:{type:Object,default:function(){return{}}},budget:{type:Object,default:function(){return{}}}}},W=Object(r.a)(M,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+t.budgetLimit.budget_id}},[t._v(t._s(t.budgetLimit.budget_name))])]),t._v(" "),a("td",{staticStyle:{"vertical-align":"middle"}},[a("div",{staticClass:"progress progress active"},[a("div",{staticClass:"progress-bar bg-success progress-bar-striped",style:"width: "+t.budgetLimit.pctGreen+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctGreen,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctGreen>35?a("span",[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("div",{staticClass:"progress-bar bg-warning progress-bar-striped",style:"width: "+t.budgetLimit.pctOrange+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctOrange,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctRed<=50&&t.budgetLimit.pctOrange>35?a("span",[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("div",{staticClass:"progress-bar bg-danger progress-bar-striped",style:"width: "+t.budgetLimit.pctRed+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctRed,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctOrange<=50&&t.budgetLimit.pctRed>35?a("span",{staticClass:"text-muted"},[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),t.budgetLimit.pctGreen<=35&&0===t.budgetLimit.pctOrange&&0===t.budgetLimit.pctRed&&0!==t.budgetLimit.pctGreen?a("span",{staticStyle:{"line-height":"16px"}},[t._v("\n   "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("small",{staticClass:"d-none d-lg-block"},[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.start))+"\n →\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.end))+"\n ")])]),t._v(" "),a("td",{staticClass:"align-middle d-none d-lg-table-cell",staticStyle:{width:"10%"}},[parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)>0?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e(),t._v(" "),0===parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)?a("span",{staticClass:"text-muted"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(0))+"\n ")]):t._e(),t._v(" "),parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)<0?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e()])])}),[],!1,null,"7988ecb6",null).exports,q={name:"BudgetRow",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budget:{type:Object,default:{}}}},K={name:"BudgetListGroup",components:{BudgetLimitRow:W,BudgetRow:Object(r.a)(q,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+t.budget.id}},[t._v(t._s(t.budget.name))])]),t._v(" "),a("td",{staticClass:"align-middle text-right"},[a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budget.currency_code}).format(parseFloat(t.budget.spent)))+"\n ")])])])}),[],!1,null,"2fc8f640",null).exports},props:{title:String,budgetLimits:Array,budgets:Array}},J=Object(r.a)(K,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.title))])]),t._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",[t._l(t.budgetLimits,(function(t,e){return a("BudgetLimitRow",{key:e,attrs:{budgetLimit:t}})})),t._v(" "),t._l(t.budgets,(function(t,e){return a("BudgetRow",{key:e,attrs:{budget:t}})}))],2)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./budgets"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_budgets")))])])])}),[],!1,null,"658dd996",null).exports;function H(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function Z(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?H(Object(a),!0).forEach((function(e){Q(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):H(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function Q(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var V=Object(i.b)("dashboard/index"),X=(V.mapState,V.mapGetters),Y=(V.mapActions,V.mapMutations,{name:"MainBudgetList",components:{BudgetListGroup:J},data:function(){return{budgetList:["daily","weekly","monthly","quarterly","half_year","yearly","other"],budgetLimits:{daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},budgets:{},rawBudgets:[],locale:"en-US",ready:!1,loading:!0,error:!1}},created:function(){var t;this.ready=!0,this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},watch:{datesReady:function(t){!0===t&&this.getBudgets()},start:function(){!1===this.loading&&this.getBudgets()},end:function(){!1===this.loading&&this.getBudgets()}},computed:Z(Z({},X(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),methods:{getBudgets:function(){var t=this;this.budgets={},this.rawBudgets=[],this.budgetLimits={daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},this.loading=!0;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/budgets?start="+e+"&end="+a).then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.data[e];if(!1===a.attributes.active)continue;for(var s in a.attributes.spent)if(a.attributes.spent.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var r=a.attributes.spent[s];this.rawBudgets.push({id:parseInt(a.id),name:a.attributes.name,currency_id:parseInt(r.currency_id),currency_code:r.currency_code,spent:r.sum}),console.log("Added budget "+a.attributes.name+" ("+r.currency_code+")")}}this.getBudgetLimits()},getBudgetLimits:function(){var t=this,e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/budget-limits?start="+e+"&end="+a).then((function(e){t.parseBudgetLimits(e.data),t.loading=!1}))},parseBudgetLimits:function(t){for(var e in t.included)if(t.included.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.included[e],s=parseInt(a.id);this.budgets[s]={id:s,name:a.attributes.name},console.log("Collected meta data: budget #"+s+" is named "+a.attributes.name)}for(var r in t.data)if(t.data.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294){var n,i=t.data[r],c=parseInt(i.id),o=parseInt(i.attributes.budget_id),l=parseInt(i.attributes.currency_id),u=parseFloat(i.attributes.spent),d=parseFloat(i.attributes.amount),p=null!==(n=i.attributes.period)&&void 0!==n?n:"other",f=0,_=0,b=0;console.log('Collected "'+p+'" budget limit #'+c+" (part of budget #"+o+")"),console.log("Spent "+u+" of "+d),this.filterBudgets(o,l),0!==u&&-1*u<d&&(f=-1*u/(100*d)),0!==u&&-1*u>d&&(b=100-(_=d/(-1*u)*100));var h={id:c,amount:i.attributes.amount,budget_id:o,budget_name:this.budgets[i.attributes.budget_id].name,currency_id:l,currency_code:i.attributes.currency_code,period:i.attributes.period,start:new Date(i.attributes.start),end:new Date(i.attributes.end),spent:i.attributes.spent,pctGreen:f,pctOrange:_,pctRed:b};this.budgetLimits[p].push(h)}},filterBudgets:function(t,e){for(var a in this.rawBudgets)this.rawBudgets.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&this.rawBudgets[a].currency_id===e&&this.rawBudgets[a].id===t&&(console.log("Budget "+this.rawBudgets[a].name+" with currency "+this.rawBudgets[a].currency_code+" will be removed in favor of a budget limit."),this.rawBudgets.splice(parseInt(a),1))}}}),tt=Object(r.a)(Y,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.loading?t._e():a("div",{staticClass:"row"},[t.budgetLimits.daily.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.daily,title:t.$t("firefly.daily_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.weekly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.weekly,title:t.$t("firefly.weekly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.monthly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.monthly,title:t.$t("firefly.monthly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.quarterly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.quarterly,title:t.$t("firefly.quarterly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.half_year.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.half_year,title:t.$t("firefly.half_year_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.yearly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.yearly,title:t.$t("firefly.yearly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.other.length>0||t.rawBudgets.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.other,budgets:t.rawBudgets,title:t.$t("firefly.other_budgets")}})],1):t._e()]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"row"},[t._m(0)]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])])])])}],!1,null,"5d7e4c93",null).exports;function et(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function at(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?et(Object(a),!0).forEach((function(e){st(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):et(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function st(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var rt=Object(i.b)("dashboard/index"),nt=(rt.mapState,rt.mapGetters),it=(rt.mapActions,rt.mapMutations,{name:"MainCreditList",data:function(){return{locale:"en-US",income:[],max:0,loading:!0,error:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:at(at({},nt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getIncome()},start:function(){!1===this.loading&&this.getIncome()},end:function(){!1===this.loading&&this.getIncome()}},methods:{getIncome:function(){var t=this;this.loading=!0,this.income=[],this.error=!1;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/insight/income/revenue?start="+e+"&end="+a).then((function(e){t.parseIncome(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseIncome:function(t){for(var e in t)if(t.hasOwnProperty(e)){var a=t[e=parseInt(e)];0===e&&(this.max=t[e].difference_float,a.pct=100),0!==e&&(a.pct=t[e].difference_float/this.max*100),this.income.push(a)}}}}),ct=Object(r.a)(it,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.revenue_accounts")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.income,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.pct+"%"},attrs:{"aria-valuenow":e.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.pct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/deposit"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_deposits")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports;function ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(a),!0).forEach((function(e){ut(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function ut(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var dt=Object(i.b)("dashboard/index"),pt=(dt.mapState,dt.mapGetters),ft=(dt.mapActions,dt.mapMutations,{name:"MainDebitList",data:function(){return{locale:"en-US",expenses:[],max:0,loading:!0,error:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:lt(lt({},pt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getExpenses()},start:function(){!1===this.loading&&this.getExpenses()},end:function(){!1===this.loading&&this.getExpenses()}},methods:{getExpenses:function(){var t=this;this.loading=!0,this.error=!1,this.expenses=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/insight/expense/expense?start="+e+"&end="+a).then((function(e){t.parseExpenses(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e];0===parseInt(e)&&(this.max=t[e].difference_float,a.pct=100),0!==parseInt(e)&&(a.pct=t[e].difference_float/this.max*100),this.expenses.push(a)}}}}),_t=Object(r.a)(ft,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.expense_accounts")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.expenses,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.pct+"%"},attrs:{"aria-valuenow":e.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.pct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/withdrawal"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_withdrawals")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,bt={name:"MainPiggyList",data:function(){return{piggy_banks:[],loading:!0,error:!1,locale:"en-US"}},created:function(){var t,e=this;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",axios.get("./api/v1/piggy_banks").then((function(t){e.loadPiggyBanks(t.data.data),e.loading=!1})).catch((function(t){e.error=!0}))},methods:{loadPiggyBanks:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e];0!==parseFloat(a.attributes.left_to_save)&&(a.attributes.pct=parseFloat(a.attributes.current_amount)/parseFloat(a.attributes.target_amount)*100,this.piggy_banks.push(a))}this.piggy_banks.sort((function(t,e){return e.attributes.pct-t.attributes.pct}))}}},ht=Object(r.a)(bt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.piggy_banks")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.piggy_banks")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.piggy_bank")))]),t._v(" "),a("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.percentage"))+" "),a("small",[t._v("/ "+t._s(t.$t("list.amount")))])])])]),t._v(" "),a("tbody",t._l(this.piggy_banks,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"./piggy-banks/show/"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v(" "),e.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),a("td",[a("div",{staticClass:"progress-group"},[a("div",{staticClass:"progress progress-sm"},[e.attributes.pct<100?a("div",{staticClass:"progress-bar progress-bar-striped primary",style:{width:e.attributes.pct+"%"}}):t._e(),t._v(" "),100===e.attributes.pct?a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.attributes.pct+"%"}}):t._e()])]),t._v(" "),a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.current_amount))+"\n ")]),t._v("\n of\n "),a("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.target_amount)))])])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./piggy-banks"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_piggies")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"c17c9a5a",null).exports,mt={name:"TransactionListLarge",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},gt=Object(r.a)(mt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.category")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.budget")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),a("br")])})),0),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",[0!==e.category_id?a("a",{attrs:{href:"categories/show/"+e.category_id}},[t._v(t._s(e.category_name))]):t._e(),a("br")])})),0),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",[0!==e.budget_id?a("a",{attrs:{href:"budgets/show/"+e.budget_id}},[t._v(t._s(e.budget_name))]):t._e(),a("br")])})),0)])})),0)])}),[],!1,null,"6e420753",null).exports,vt={name:"TransactionListMedium",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},yt=Object(r.a)(vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),a("br")])})),0),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"0d4f7042",null).exports,Ct={name:"TransactionListSmall",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},methods:{},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},jt=Object(r.a)(Ct,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e.attributes.transactions[0].date))}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"4cd7a656",null).exports,wt=a(67);function Ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function xt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(a),!0).forEach((function(e){St(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function St(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Pt=Object(i.b)("dashboard/index"),Lt=(Pt.mapState,Pt.mapGetters),$t=(Pt.mapActions,Pt.mapMutations,{name:"MainCategoryList",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},data:function(){return{locale:"en-US",categories:[],sortedList:[],spent:0,earned:0,loading:!0,error:!1}},computed:xt(xt({},Lt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getCategories()},start:function(){!1===this.loading&&this.getCategories()},end:function(){!1===this.loading&&this.getCategories()}},methods:{getCategories:function(){var t=this;this.categories=[],this.sortedList=[],this.spent=0,this.earned=0,this.loading=!0;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/categories?start="+e+"&end="+a).then((function(e){t.parseCategories(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseCategories:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.data[e],s=null,r=parseInt(a.id);for(var n in a.attributes.spent)if(a.attributes.spent.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var i,c=a.attributes.spent[n];s=c.currency_id+"-"+a.id,this.categories[s]=null!==(i=this.categories[s])&&void 0!==i?i:{id:r,name:a.attributes.name,currency_code:c.currency_code,currency_symbol:c.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[s].spent=parseFloat(c.sum),this.spent=parseFloat(c.sum)<this.spent?parseFloat(c.sum):this.spent}for(var o in a.attributes.earned)if(a.attributes.earned.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var l,u=a.attributes.earned[o];s=u.currency_id+"-"+a.id,this.categories[s]=null!==(l=this.categories[s])&&void 0!==l?l:{id:r,name:a.attributes.name,currency_code:u.currency_code,currency_symbol:u.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[s].earned=parseFloat(u.sum),this.earned=parseFloat(u.sum)>this.earned?parseFloat(u.sum):this.earned}}this.sortCategories()},sortCategories:function(){var t=[];for(var e in this.categories)this.categories.hasOwnProperty(e)&&t.push(this.categories[e]);for(var a in t.sort((function(t,e){return t.spent+t.earned-(e.spent+e.earned)})),t)if(t.hasOwnProperty(a)){var s=t[a];s.spentPct=s.spent/this.spent*100,s.earnedPct=s.earned/this.earned*100,this.sortedList.push(s)}}}}),It=Object(r.a)($t,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.categories")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.sortedList,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./categories/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.spentPct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.spentPct+"%"},attrs:{"aria-valuenow":e.spentPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.spentPct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]),t._v(" "),e.spentPct<=20?a("span",{staticClass:"progress-label",staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]):t._e(),t._v(" "),e.earnedPct>0?a("div",{staticClass:"progress justify-content-end",attrs:{title:"hello2"}},[e.earnedPct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n  ")]):t._e(),t._v(" "),a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.earnedPct+"%"},attrs:{"aria-valuenow":e.earnedPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar",title:"hello"}},[e.earnedPct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n ")]):t._e()])]):t._e()])])})),0)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"098366f9",null).exports,Dt=a(8),Et=a.n(Dt),Ft=a(30);a(41),a(85),Et.a.component("transaction-list-large",gt),Et.a.component("transaction-list-medium",yt),Et.a.component("transaction-list-small",jt),Et.a.component("dashboard",n),Et.a.component("top-boxes",f),Et.a.component("main-account",L),Et.a.component("main-account-list",B),Et.a.component("main-bills-list",G),Et.a.component("main-budget-list",tt),Et.a.component("main-category-list",It),Et.a.component("main-debit-list",_t),Et.a.component("main-credit-list",ct),Et.a.component("main-piggy-list",ht),Et.a.use(i.c);var kt=a(43),Bt={};new Et.a({i18n:kt,store:Ft.a,el:"#dashboard",render:function(t){return t(n,{props:Bt})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference"),this.$store.dispatch("root/initialiseStore"),this.$store.dispatch("dashboard/index/initialiseStore")}}),new Et.a({i18n:kt,store:Ft.a,el:"#calendar",render:function(t){return t(wt.a,{props:Bt})}})},725:function(t,e){}},[[276,0,1]]]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{276:function(t,e,a){a(457),t.exports=a(725)},277:function(t,e,a){var s={"./af":89,"./af.js":89,"./ar":90,"./ar-dz":91,"./ar-dz.js":91,"./ar-kw":92,"./ar-kw.js":92,"./ar-ly":93,"./ar-ly.js":93,"./ar-ma":94,"./ar-ma.js":94,"./ar-sa":95,"./ar-sa.js":95,"./ar-tn":96,"./ar-tn.js":96,"./ar.js":90,"./az":97,"./az.js":97,"./be":98,"./be.js":98,"./bg":99,"./bg.js":99,"./bm":100,"./bm.js":100,"./bn":101,"./bn-bd":102,"./bn-bd.js":102,"./bn.js":101,"./bo":103,"./bo.js":103,"./br":104,"./br.js":104,"./bs":105,"./bs.js":105,"./ca":106,"./ca.js":106,"./cs":107,"./cs.js":107,"./cv":108,"./cv.js":108,"./cy":109,"./cy.js":109,"./da":110,"./da.js":110,"./de":111,"./de-at":112,"./de-at.js":112,"./de-ch":113,"./de-ch.js":113,"./de.js":111,"./dv":114,"./dv.js":114,"./el":115,"./el.js":115,"./en-au":116,"./en-au.js":116,"./en-ca":117,"./en-ca.js":117,"./en-gb":118,"./en-gb.js":118,"./en-ie":119,"./en-ie.js":119,"./en-il":120,"./en-il.js":120,"./en-in":121,"./en-in.js":121,"./en-nz":122,"./en-nz.js":122,"./en-sg":123,"./en-sg.js":123,"./eo":124,"./eo.js":124,"./es":125,"./es-do":126,"./es-do.js":126,"./es-mx":127,"./es-mx.js":127,"./es-us":128,"./es-us.js":128,"./es.js":125,"./et":129,"./et.js":129,"./eu":130,"./eu.js":130,"./fa":131,"./fa.js":131,"./fi":132,"./fi.js":132,"./fil":133,"./fil.js":133,"./fo":134,"./fo.js":134,"./fr":135,"./fr-ca":136,"./fr-ca.js":136,"./fr-ch":137,"./fr-ch.js":137,"./fr.js":135,"./fy":138,"./fy.js":138,"./ga":139,"./ga.js":139,"./gd":140,"./gd.js":140,"./gl":141,"./gl.js":141,"./gom-deva":142,"./gom-deva.js":142,"./gom-latn":143,"./gom-latn.js":143,"./gu":144,"./gu.js":144,"./he":145,"./he.js":145,"./hi":146,"./hi.js":146,"./hr":147,"./hr.js":147,"./hu":148,"./hu.js":148,"./hy-am":149,"./hy-am.js":149,"./id":150,"./id.js":150,"./is":151,"./is.js":151,"./it":152,"./it-ch":153,"./it-ch.js":153,"./it.js":152,"./ja":154,"./ja.js":154,"./jv":155,"./jv.js":155,"./ka":156,"./ka.js":156,"./kk":157,"./kk.js":157,"./km":158,"./km.js":158,"./kn":159,"./kn.js":159,"./ko":160,"./ko.js":160,"./ku":161,"./ku.js":161,"./ky":162,"./ky.js":162,"./lb":163,"./lb.js":163,"./lo":164,"./lo.js":164,"./lt":165,"./lt.js":165,"./lv":166,"./lv.js":166,"./me":167,"./me.js":167,"./mi":168,"./mi.js":168,"./mk":169,"./mk.js":169,"./ml":170,"./ml.js":170,"./mn":171,"./mn.js":171,"./mr":172,"./mr.js":172,"./ms":173,"./ms-my":174,"./ms-my.js":174,"./ms.js":173,"./mt":175,"./mt.js":175,"./my":176,"./my.js":176,"./nb":177,"./nb.js":177,"./ne":178,"./ne.js":178,"./nl":179,"./nl-be":180,"./nl-be.js":180,"./nl.js":179,"./nn":181,"./nn.js":181,"./oc-lnc":182,"./oc-lnc.js":182,"./pa-in":183,"./pa-in.js":183,"./pl":184,"./pl.js":184,"./pt":185,"./pt-br":186,"./pt-br.js":186,"./pt.js":185,"./ro":187,"./ro.js":187,"./ru":188,"./ru.js":188,"./sd":189,"./sd.js":189,"./se":190,"./se.js":190,"./si":191,"./si.js":191,"./sk":192,"./sk.js":192,"./sl":193,"./sl.js":193,"./sq":194,"./sq.js":194,"./sr":195,"./sr-cyrl":196,"./sr-cyrl.js":196,"./sr.js":195,"./ss":197,"./ss.js":197,"./sv":198,"./sv.js":198,"./sw":199,"./sw.js":199,"./ta":200,"./ta.js":200,"./te":201,"./te.js":201,"./tet":202,"./tet.js":202,"./tg":203,"./tg.js":203,"./th":204,"./th.js":204,"./tk":205,"./tk.js":205,"./tl-ph":206,"./tl-ph.js":206,"./tlh":207,"./tlh.js":207,"./tr":208,"./tr.js":208,"./tzl":209,"./tzl.js":209,"./tzm":210,"./tzm-latn":211,"./tzm-latn.js":211,"./tzm.js":210,"./ug-cn":212,"./ug-cn.js":212,"./uk":213,"./uk.js":213,"./ur":214,"./ur.js":214,"./uz":215,"./uz-latn":216,"./uz-latn.js":216,"./uz.js":215,"./vi":217,"./vi.js":217,"./x-pseudo":218,"./x-pseudo.js":218,"./yo":219,"./yo.js":219,"./zh-cn":220,"./zh-cn.js":220,"./zh-hk":221,"./zh-hk.js":221,"./zh-mo":222,"./zh-mo.js":222,"./zh-tw":223,"./zh-tw.js":223};function r(t){var e=n(t);return a(e)}function n(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}r.keys=function(){return Object.keys(s)},r.resolve=n,t.exports=r,r.id=277},457:function(t,e,a){"use strict";a.r(e);var s={name:"Dashboard"},r=a(4),n=Object(r.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("top-boxes"),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-account")],1)]),t._v(" "),a("main-account-list"),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-budget-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-category-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-debit-list")],1),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-credit-list")],1)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-piggy-list")],1),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-bills-list")],1)])],1)}),[],!1,null,null,null).exports,i=a(14);function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function o(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var u=Object(i.b)("dashboard/index"),d=(u.mapState,u.mapGetters),p=(u.mapActions,u.mapMutations,{name:"TopBoxes",props:{},data:function(){return{summary:[],balances:[],billsPaid:[],billsUnpaid:[],leftToSpend:[],netWorth:[],loading:!0,error:!1,ready:!1}},computed:o(o({},d(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready},prefCurrencyBalances:function(){return this.filterOnCurrency(this.balances)},notPrefCurrencyBalances:function(){return this.filterOnNotCurrency(this.balances)},prefBillsUnpaid:function(){return this.filterOnCurrency(this.billsUnpaid)},notPrefBillsUnpaid:function(){return this.filterOnNotCurrency(this.billsUnpaid)},prefLeftToSpend:function(){return this.filterOnCurrency(this.leftToSpend)},notPrefLeftToSpend:function(){return this.filterOnNotCurrency(this.leftToSpend)},prefNetWorth:function(){return this.filterOnCurrency(this.netWorth)},notPrefNetWorth:function(){return this.filterOnNotCurrency(this.netWorth)},currencyCode:function(){return this.$store.getters.currencyCode},currencyId:function(){return this.$store.getters.currencyId}}),watch:{datesReady:function(t){!0===t&&this.prepareComponent()},start:function(){!1===this.loading&&this.prepareComponent()},end:function(){!1===this.loading&&this.prepareComponent()}},created:function(){this.ready=!0},methods:{filterOnCurrency:function(t){var e=[];for(var a in t)t.hasOwnProperty(a)&&t[a].currency_id===this.currencyId&&e.push(t[a]);return 0===e.length&&t.hasOwnProperty(0)&&e.push(t[0]),e},filterOnNotCurrency:function(t){var e=[];for(var a in t)t.hasOwnProperty(a)&&t[a].currency_id!==this.currencyId&&e.push(t[a]);return e},prepareComponent:function(){var t=this;this.error=!1,this.loading=!0,this.summary=[],this.balances=[],this.billsPaid=[],this.billsUnpaid=[],this.leftToSpend=[],this.netWorth=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/summary/basic?start="+e+"&end="+a).then((function(e){t.summary=e.data,t.buildComponent(),t.loading=!1})).catch((function(e){t.error=!0}))},buildComponent:function(){this.getBalanceEntries(),this.getBillsEntries(),this.getLeftToSpend(),this.getNetWorth()},hasCurrency:function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].currency_id===this.currencyId)return!0;return!1},getBalanceEntries:function(){this.balances=this.getKeyedEntries("balance-in-")},getNetWorth:function(){this.netWorth=this.getKeyedEntries("net-worth-in-")},getLeftToSpend:function(){this.leftToSpend=this.getKeyedEntries("left-to-spend-in-")},getBillsEntries:function(){this.billsPaid=this.getKeyedEntries("bills-paid-in-"),this.billsUnpaid=this.getKeyedEntries("bills-unpaid-in-")},getKeyedEntries:function(t){var e=[];for(var a in this.summary)this.summary.hasOwnProperty(a)&&t===a.substr(0,t.length)&&e.push(this.summary[a]);return e}}}),f=Object(r.a)(p,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(0),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.balance")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefCurrencyBalances,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(1),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefCurrencyBalances,(function(e,s){return a("span",{attrs:{title:e.sub_title}},[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefCurrencyBalances.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefCurrencyBalances.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(2),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.bills_to_pay")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefBillsUnpaid,(function(e){return a("span",{staticClass:"info-box-number"},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(3),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefBillsUnpaid,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefBillsUnpaid.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefBillsUnpaid.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(4),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.left_to_spend")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefLeftToSpend,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(5),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefLeftToSpend,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefLeftToSpend.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefLeftToSpend.length?a("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"info-box"},[t._m(6),t._v(" "),a("div",{staticClass:"info-box-content"},[t.loading||t.error?t._e():a("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.net_worth")))]),t._v(" "),t.loading&&!t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("span",{staticClass:"info-box-text"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e(),t._v(" "),t._l(t.prefNetWorth,(function(e){return a("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(7),t._v(" "),a("span",{staticClass:"progress-description"},[t._l(t.notPrefNetWorth,(function(e,s){return a("span",[t._v("\n "+t._s(e.value_parsed)),s+1!==t.notPrefNetWorth.length?a("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefNetWorth.length?a("span",[t._v(" ")]):t._e()],2)],2)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-bookmark text-info"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-info"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-calendar-alt text-teal"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-teal"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])}],!1,null,null,null).exports,_={name:"DataConverter",data:function(){return{dataSet:null,newDataSet:null,locale:localStorage.local}},methods:{convertChart:function(t){return this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]},this.getLabels(),this.getDataSets(),this.newDataSet.count=this.newDataSet.datasets.length,this.newDataSet},colorizeBarData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],a=[],s=0;s<e.length;s++)a.push("rgba("+e[s][0]+", "+e[s][1]+", "+e[s][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=a[r],this.newDataSet.datasets.push(n)}return this.newDataSet},colorizeLineData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],a=[],s=0;s<e.length;s++)a.push("rgba("+e[s][0]+", "+e[s][1]+", "+e[s][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=a[r],this.newDataSet.datasets.push(n)}return this.newDataSet},convertLabelsToDate:function(t){for(var e in t.labels)if(t.labels.hasOwnProperty(e)){var a=Date.parse(t.labels[e]);t.labels[e]=new Intl.DateTimeFormat(this.locale).format(a)}return t},getLabels:function(){var t=this.dataSet[0];if(void 0!==t)for(var e in t.entries)t.entries.hasOwnProperty(e)&&this.newDataSet.labels.push(e)},getDataSets:function(){for(var t in this.dataSet)if(this.dataSet.hasOwnProperty(t)){var e={},a=this.dataSet[t];if(void 0!==a){for(var s in e.label=a.label,e.type=a.type,e.currency_symbol=a.currency_symbol,e.currency_code=a.currency_code,e.yAxisID=a.yAxisID,e.data=[],a.entries)a.entries.hasOwnProperty(s)&&e.data.push(a.entries[s]);this.newDataSet.datasets.push(e)}}}}},b=Object(r.a)(_,void 0,void 0,!1,null,null,null).exports,h={name:"DefaultLineOptions",data:function(){return{}},methods:{formatLabel:function(t,e){var a=[],s=(t=String(t)).split(" "),r="";return s.forEach((function(t,n){if(r.length>0){var i=r+" "+t;if(!(i.length>e))return n===s.length-1?void a.push(i):void(r=i);a.push(r),r=""}n!==s.length-1&&t.length<e?r=t:a.push(t)})),a},getDefaultOptions:function(){var t=this;return{legend:{display:!1},animation:{duration:0},responsive:!0,maintainAspectRatio:!1,elements:{line:{cubicInterpolationMode:"monotone"}},scales:{xAxes:[{gridLines:{display:!1},ticks:{callback:function(e,a,s){var r=new Date(e),n=new Intl.DateTimeFormat(localStorage.locale,{year:"numeric",month:"long",day:"numeric"}).format(r);return t.formatLabel(n,20)}}}],yAxes:[{display:!0,ticks:{callback:function(t){var e=this.chart.data.datasets[0].currency_code?this.chart.data.datasets[0].currency_code:"EUR";return new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:e}).format(t)},beginAtZero:!0}}]},tooltips:{mode:"index",callbacks:{label:function(t,e){var a=e.datasets[t.datasetIndex].currency_code?e.datasets[t.datasetIndex].currency_code:"EUR",s=new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:a}).format(t.yLabel);return e.datasets[t.datasetIndex].label+": "+s}}}}}}},m=Object(r.a)(h,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,"5f7e90aa",null).exports,g=a(88),v=g.b.reactiveProp,y={extends:g.a,mixins:[v],props:["options"],mounted:function(){this.renderChart(this.chartData,this.options)}},C=Object(r.a)(y,void 0,void 0,!1,null,null,null).exports;function j(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function w(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?j(Object(a),!0).forEach((function(e){O(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function O(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var x=Object(i.b)("dashboard/index"),S=(x.mapState,x.mapGetters),P=(x.mapActions,x.mapMutations,{name:"MainAccount",components:{MainAccountChart:C},data:function(){return{loading:!0,error:!1,ready:!1,dataCollection:{},chartOptions:{}}},created:function(){this.ready=!0,this.chartOptions=m.methods.getDefaultOptions()},computed:w(w({},S(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseChart()},start:function(){this.initialiseChart()},end:function(){this.initialiseChart()}},methods:{initialiseChart:function(){var t=this;this.loading=!0,this.error=!1;var e="./api/v1/chart/account/overview?start="+this.start.toISOString().split("T")[0]+"&end="+this.end.toISOString().split("T")[0];axios.get(e).then((function(e){var a=b.methods.convertChart(e.data);a=b.methods.colorizeLineData(a),t.dataCollection=a,t.loading=!1})).catch((function(e){t.error=!0}))}}}),L=Object(r.a)(P,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.yourAccounts")))])]),t._v(" "),a("div",{staticClass:"card-body"},[t.loading?t._e():a("div",[t.loading||t.error?t._e():a("MainAccountChart",{attrs:{"chart-data":t.dataCollection,options:t.chartOptions}})],1),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"text-center"},[a("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.error?a("div",{staticClass:"text-center"},[a("i",{staticClass:"fas fa-exclamation-triangle text-danger"})]):t._e()]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./accounts/asset"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_asset_accounts")))])])])}),[],!1,null,null,null).exports;function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function I(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){D(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function D(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var E=Object(i.b)("dashboard/index"),F=(E.mapState,E.mapGetters),k=(E.mapActions,E.mapMutations,{name:"MainAccountList",data:function(){return{loading:!0,error:!1,ready:!1,accounts:[],locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:I(I({},F(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseList()},start:function(){!1===this.loading&&this.initialiseList()},end:function(){!1===this.loading&&this.initialiseList()}},methods:{initialiseList:function(){var t=this;this.loading=!0,this.accounts=[],axios.get("./api/v1/preferences/frontpageAccounts").then((function(e){t.loadAccounts(e)}))},loadAccounts:function(t){var e=t.data.data.attributes.data;for(var a in e)e.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&(this.accounts.push({id:e[a],title:"",url:"",current_balance:"",currency_code:"EUR",transactions:[]}),this.loadSingleAccount(a,e[a]))},loadSingleAccount:function(t,e){var a=this;axios.get("./api/v1/accounts/"+e).then((function(s){a.accounts[t].title=s.data.data.attributes.name,a.accounts[t].url="./accounts/show/"+s.data.data.id,a.accounts[t].current_balance=s.data.data.attributes.current_balance,a.accounts[t].currency_code=s.data.data.attributes.currency_code,a.loadTransactions(t,e)}))},loadTransactions:function(t,e){var a=this,s=this.start.toISOString().split("T")[0],r=this.end.toISOString().split("T")[0];axios.get("./api/v1/accounts/"+e+"/transactions?page=1&limit=10&start="+s+"&end="+r).then((function(e){a.accounts[t].transactions=e.data.data,a.loading=!1,a.error=!1}))}}}),B=Object(r.a)(k,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.loading&&!t.error?a("div",{staticClass:"row"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"row"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"row"},t._l(t.accounts,(function(e){return a("div",{class:{"col-lg-12":1===t.accounts.length,"col-lg-6":2===t.accounts.length,"col-lg-4":t.accounts.length>2}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[a("a",{attrs:{href:e.url}},[t._v(t._s(e.title))])]),t._v(" "),a("div",{staticClass:"card-tools"},[a("span",{class:parseFloat(e.current_balance)<0?"text-danger":"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.current_balance)))+"\n ")])])]),t._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("div",[1===t.accounts.length?a("transaction-list-large",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e(),t._v(" "),2===t.accounts.length?a("transaction-list-medium",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e(),t._v(" "),t.accounts.length>2?a("transaction-list-small",{attrs:{account_id:e.id,transactions:e.transactions}}):t._e()],1)])])])})),0)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])])])])}],!1,null,"5d6bb842",null).exports;function N(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function T(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?N(Object(a),!0).forEach((function(e){U(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):N(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function U(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var R=Object(i.b)("dashboard/index"),A=(R.mapState,R.mapGetters),z=(R.mapActions,R.mapMutations,{name:"MainBillsList",data:function(){return{bills:[],locale:"en-US",ready:!1,loading:!0,error:!1}},computed:T(T({},A(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.initialiseBills()},start:function(){!1===this.loading&&this.initialiseBills()},end:function(){!1===this.loading&&this.initialiseBills()}},created:function(){var t;this.ready=!0,this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},components:{},methods:{initialiseBills:function(){var t=this;this.loading=!0,this.bills=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/bills?start="+e+"&end="+a).then((function(e){t.loadBills(e.data.data)})).catch((function(e){t.error=!0,t.loading=!1}))},renderPaidDate:function(t){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(t.date)),a=this.$t("firefly.bill_paid_on",{date:e});return'<a href="./transactions/show/'+t.transaction_group_id+'" title="'+a+'">'+a+"</a>"},loadBills:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e],s=a.attributes.active;a.attributes.pay_dates.length>0&&s&&this.bills.push(a)}this.error=!1,this.loading=!1}}}),G=Object(r.a)(z,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.bills")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.bills")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.name")))]),t._v(" "),a("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.next_expected_match")))])])]),t._v(" "),a("tbody",t._l(this.bills,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"./bills/show/"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v("\n (~ "),a("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format((parseFloat(e.attributes.amount_min)+parseFloat(e.attributes.amount_max))/-2)))]),t._v(")\n "),e.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),a("td",[t._l(e.attributes.paid_dates,(function(e){return a("span",[a("span",{domProps:{innerHTML:t._s(t.renderPaidDate(e))}}),a("br")])})),t._v(" "),t._l(e.attributes.pay_dates,(function(s){return 0===e.attributes.paid_dates.length?a("span",[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(s)))),a("br")]):t._e()}))],2)])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./bills"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_bills")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,M={name:"BudgetLimitRow",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budgetLimit:{type:Object,default:function(){return{}}},budget:{type:Object,default:function(){return{}}}}},W=Object(r.a)(M,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+t.budgetLimit.budget_id}},[t._v(t._s(t.budgetLimit.budget_name))])]),t._v(" "),a("td",{staticStyle:{"vertical-align":"middle"}},[a("div",{staticClass:"progress progress active"},[a("div",{staticClass:"progress-bar bg-success progress-bar-striped",style:"width: "+t.budgetLimit.pctGreen+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctGreen,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctGreen>35?a("span",[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("div",{staticClass:"progress-bar bg-warning progress-bar-striped",style:"width: "+t.budgetLimit.pctOrange+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctOrange,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctRed<=50&&t.budgetLimit.pctOrange>35?a("span",[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("div",{staticClass:"progress-bar bg-danger progress-bar-striped",style:"width: "+t.budgetLimit.pctRed+"%;",attrs:{"aria-valuenow":t.budgetLimit.pctRed,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.budgetLimit.pctOrange<=50&&t.budgetLimit.pctRed>35?a("span",{staticClass:"text-muted"},[t._v("\n "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),t.budgetLimit.pctGreen<=35&&0===t.budgetLimit.pctOrange&&0===t.budgetLimit.pctRed&&0!==t.budgetLimit.pctGreen?a("span",{staticStyle:{"line-height":"16px"}},[t._v("\n   "+t._s(t.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent),total:Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount)}))+"\n ")]):t._e()]),t._v(" "),a("small",{staticClass:"d-none d-lg-block"},[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.start))+"\n →\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.end))+"\n ")])]),t._v(" "),a("td",{staticClass:"align-middle d-none d-lg-table-cell",staticStyle:{width:"10%"}},[parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)>0?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e(),t._v(" "),0===parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)?a("span",{staticClass:"text-muted"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(0))+"\n ")]):t._e(),t._v(" "),parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)<0?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e()])])}),[],!1,null,"7988ecb6",null).exports,q={name:"BudgetRow",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budget:{type:Object,default:{}}}},K={name:"BudgetListGroup",components:{BudgetLimitRow:W,BudgetRow:Object(r.a)(q,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+t.budget.id}},[t._v(t._s(t.budget.name))])]),t._v(" "),a("td",{staticClass:"align-middle text-right"},[a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budget.currency_code}).format(parseFloat(t.budget.spent)))+"\n ")])])])}),[],!1,null,"2fc8f640",null).exports},props:{title:String,budgetLimits:Array,budgets:Array}},J=Object(r.a)(K,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.title))])]),t._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",[t._l(t.budgetLimits,(function(t,e){return a("BudgetLimitRow",{key:e,attrs:{budgetLimit:t}})})),t._v(" "),t._l(t.budgets,(function(t,e){return a("BudgetRow",{key:e,attrs:{budget:t}})}))],2)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./budgets"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_budgets")))])])])}),[],!1,null,"658dd996",null).exports;function H(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function Z(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?H(Object(a),!0).forEach((function(e){Q(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):H(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function Q(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var V=Object(i.b)("dashboard/index"),X=(V.mapState,V.mapGetters),Y=(V.mapActions,V.mapMutations,{name:"MainBudgetList",components:{BudgetListGroup:J},data:function(){return{budgetList:["daily","weekly","monthly","quarterly","half_year","yearly","other"],budgetLimits:{daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},budgets:{},rawBudgets:[],locale:"en-US",ready:!1,loading:!0,error:!1}},created:function(){var t;this.ready=!0,this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},watch:{datesReady:function(t){!0===t&&this.getBudgets()},start:function(){!1===this.loading&&this.getBudgets()},end:function(){!1===this.loading&&this.getBudgets()}},computed:Z(Z({},X(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),methods:{getBudgets:function(){var t=this;this.budgets={},this.rawBudgets=[],this.budgetLimits={daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},this.loading=!0;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/budgets?start="+e+"&end="+a).then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.data[e];if(!1===a.attributes.active)continue;for(var s in a.attributes.spent)if(a.attributes.spent.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var r=a.attributes.spent[s];this.rawBudgets.push({id:parseInt(a.id),name:a.attributes.name,currency_id:parseInt(r.currency_id),currency_code:r.currency_code,spent:r.sum}),console.log("Added budget "+a.attributes.name+" ("+r.currency_code+")")}}this.getBudgetLimits()},getBudgetLimits:function(){var t=this,e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/budget-limits?start="+e+"&end="+a).then((function(e){t.parseBudgetLimits(e.data),t.loading=!1}))},parseBudgetLimits:function(t){for(var e in t.included)if(t.included.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.included[e],s=parseInt(a.id);this.budgets[s]={id:s,name:a.attributes.name},console.log("Collected meta data: budget #"+s+" is named "+a.attributes.name)}for(var r in t.data)if(t.data.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294){var n,i=t.data[r],c=parseInt(i.id),o=parseInt(i.attributes.budget_id),l=parseInt(i.attributes.currency_id),u=parseFloat(i.attributes.spent),d=parseFloat(i.attributes.amount),p=null!==(n=i.attributes.period)&&void 0!==n?n:"other",f=0,_=0,b=0;console.log('Collected "'+p+'" budget limit #'+c+" (part of budget #"+o+")"),console.log("Spent "+u+" of "+d),this.filterBudgets(o,l),0!==u&&-1*u<d&&(f=-1*u/(100*d)),0!==u&&-1*u>d&&(b=100-(_=d/(-1*u)*100));var h={id:c,amount:i.attributes.amount,budget_id:o,budget_name:this.budgets[i.attributes.budget_id].name,currency_id:l,currency_code:i.attributes.currency_code,period:i.attributes.period,start:new Date(i.attributes.start),end:new Date(i.attributes.end),spent:i.attributes.spent,pctGreen:f,pctOrange:_,pctRed:b};this.budgetLimits[p].push(h)}},filterBudgets:function(t,e){for(var a in this.rawBudgets)this.rawBudgets.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&this.rawBudgets[a].currency_id===e&&this.rawBudgets[a].id===t&&(console.log("Budget "+this.rawBudgets[a].name+" with currency "+this.rawBudgets[a].currency_code+" will be removed in favor of a budget limit."),this.rawBudgets.splice(parseInt(a),1))}}}),tt=Object(r.a)(Y,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.loading?t._e():a("div",{staticClass:"row"},[t.budgetLimits.daily.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.daily,title:t.$t("firefly.daily_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.weekly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.weekly,title:t.$t("firefly.weekly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.monthly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.monthly,title:t.$t("firefly.monthly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.quarterly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.quarterly,title:t.$t("firefly.quarterly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.half_year.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.half_year,title:t.$t("firefly.half_year_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.yearly.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.yearly,title:t.$t("firefly.yearly_budgets")}})],1):t._e(),t._v(" "),t.budgetLimits.other.length>0||t.rawBudgets.length>0?a("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[a("BudgetListGroup",{attrs:{budgetLimits:t.budgetLimits.other,budgets:t.rawBudgets,title:t.$t("firefly.other_budgets")}})],1):t._e()]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"row"},[t._m(0)]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])])])])}],!1,null,"5d7e4c93",null).exports;function et(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function at(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?et(Object(a),!0).forEach((function(e){st(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):et(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function st(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var rt=Object(i.b)("dashboard/index"),nt=(rt.mapState,rt.mapGetters),it=(rt.mapActions,rt.mapMutations,{name:"MainCreditList",data:function(){return{locale:"en-US",income:[],max:0,loading:!0,error:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:at(at({},nt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getIncome()},start:function(){!1===this.loading&&this.getIncome()},end:function(){!1===this.loading&&this.getIncome()}},methods:{getIncome:function(){var t=this;this.loading=!0,this.income=[],this.error=!1;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/insight/income/revenue?start="+e+"&end="+a).then((function(e){t.parseIncome(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseIncome:function(t){for(var e in t)if(t.hasOwnProperty(e)){var a=t[e=parseInt(e)];a.pct=0,this.max=a.difference_float>this.max?a.difference_float:this.max,this.income.push(a)}for(var s in 0===this.max&&(this.max=1),this.income)if(this.income.hasOwnProperty(s)){var r=this.income[s];r.pct=r.difference_float/this.max*100,this.income[s]=r}this.income.sort((function(t,e){return t.pct>e.pct?-1:e.pct>t.pct?1:0}))}}}),ct=Object(r.a)(it,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.revenue_accounts")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.income,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.pct+"%"},attrs:{"aria-valuenow":e.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.pct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/deposit"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_deposits")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports;function ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(a),!0).forEach((function(e){ut(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function ut(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var dt=Object(i.b)("dashboard/index"),pt=(dt.mapState,dt.mapGetters),ft=(dt.mapActions,dt.mapMutations,{name:"MainDebitList",data:function(){return{locale:"en-US",expenses:[],min:0,loading:!0,error:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},computed:lt(lt({},pt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getExpenses()},start:function(){!1===this.loading&&this.getExpenses()},end:function(){!1===this.loading&&this.getExpenses()}},methods:{getExpenses:function(){var t=this;this.loading=!0,this.error=!1,this.expenses=[];var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/insight/expense/expense?start="+e+"&end="+a).then((function(e){t.parseExpenses(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e];a.pct=0,this.min=a.difference_float<this.min?a.difference_float:this.min,this.expenses.push(a)}for(var s in 0===this.min&&(this.min=-1),this.expenses)if(this.expenses.hasOwnProperty(s)){var r=this.expenses[s];r.pct=-1*r.difference_float/this.min*-1*100,this.expenses[s]=r}this.expenses.sort((function(t,e){return t.pct>e.pct?-1:e.pct>t.pct?1:0}))}}}),_t=Object(r.a)(ft,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.expense_accounts")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.expenses,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.pct+"%"},attrs:{"aria-valuenow":e.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.pct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/withdrawal"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_withdrawals")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,bt={name:"MainPiggyList",data:function(){return{piggy_banks:[],loading:!0,error:!1,locale:"en-US"}},created:function(){var t,e=this;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",axios.get("./api/v1/piggy_banks").then((function(t){e.loadPiggyBanks(t.data.data),e.loading=!1})).catch((function(t){e.error=!0}))},methods:{loadPiggyBanks:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t[e];0!==parseFloat(a.attributes.left_to_save)&&(a.attributes.pct=parseFloat(a.attributes.current_amount)/parseFloat(a.attributes.target_amount)*100,this.piggy_banks.push(a))}this.piggy_banks.sort((function(t,e){return e.attributes.pct-t.attributes.pct}))}}},ht=Object(r.a)(bt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.piggy_banks")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.piggy_banks")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.piggy_bank")))]),t._v(" "),a("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.percentage"))+" "),a("small",[t._v("/ "+t._s(t.$t("list.amount")))])])])]),t._v(" "),a("tbody",t._l(this.piggy_banks,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"./piggy-banks/show/"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v(" "),e.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),a("td",[a("div",{staticClass:"progress-group"},[a("div",{staticClass:"progress progress-sm"},[e.attributes.pct<100?a("div",{staticClass:"progress-bar progress-bar-striped primary",style:{width:e.attributes.pct+"%"}}):t._e(),t._v(" "),100===e.attributes.pct?a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.attributes.pct+"%"}}):t._e()])]),t._v(" "),a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.current_amount))+"\n ")]),t._v("\n of\n "),a("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.target_amount)))])])])})),0)])]),t._v(" "),a("div",{staticClass:"card-footer"},[a("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./piggy-banks"}},[a("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_piggies")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"c17c9a5a",null).exports,mt={name:"TransactionListLarge",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},gt=Object(r.a)(mt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.category")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.budget")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),a("br")])})),0),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",[0!==e.category_id?a("a",{attrs:{href:"categories/show/"+e.category_id}},[t._v(t._s(e.category_name))]):t._e(),a("br")])})),0),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",[0!==e.budget_id?a("a",{attrs:{href:"budgets/show/"+e.budget_id}},[t._v(t._s(e.budget_name))]):t._e(),a("br")])})),0)])})),0)])}),[],!1,null,"6e420753",null).exports,vt={name:"TransactionListMedium",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},yt=Object(r.a)(vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),a("br")])})),0),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"0d4f7042",null).exports,Ct={name:"TransactionListSmall",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},methods:{},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},jt=Object(r.a)(Ct,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),a("tbody",t._l(this.transactions,(function(e){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+e.id,title:new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e.attributes.transactions[0].date))}},[e.attributes.transactions.length>1?a("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?a("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),a("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return a("span",["withdrawal"===e.type?a("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"deposit"===e.type?a("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.source_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),a("br")]):t._e(),t._v(" "),"transfer"===e.type&&parseInt(e.destination_id)===t.account_id?a("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),a("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"4cd7a656",null).exports,wt=a(67);function Ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function xt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(a),!0).forEach((function(e){St(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function St(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Pt=Object(i.b)("dashboard/index"),Lt=(Pt.mapState,Pt.mapGetters),$t=(Pt.mapActions,Pt.mapMutations,{name:"MainCategoryList",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.ready=!0},data:function(){return{locale:"en-US",categories:[],sortedList:[],spent:0,earned:0,loading:!0,error:!1}},computed:xt(xt({},Lt(["start","end"])),{},{datesReady:function(){return null!==this.start&&null!==this.end&&this.ready}}),watch:{datesReady:function(t){!0===t&&this.getCategories()},start:function(){!1===this.loading&&this.getCategories()},end:function(){!1===this.loading&&this.getCategories()}},methods:{getCategories:function(){var t=this;this.categories=[],this.sortedList=[],this.spent=0,this.earned=0,this.loading=!0;var e=this.start.toISOString().split("T")[0],a=this.end.toISOString().split("T")[0];axios.get("./api/v1/categories?start="+e+"&end="+a).then((function(e){t.parseCategories(e.data),t.loading=!1})).catch((function(e){t.error=!0}))},parseCategories:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var a=t.data[e],s=null,r=parseInt(a.id);for(var n in a.attributes.spent)if(a.attributes.spent.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var i,c=a.attributes.spent[n];s=c.currency_id+"-"+a.id,this.categories[s]=null!==(i=this.categories[s])&&void 0!==i?i:{id:r,name:a.attributes.name,currency_code:c.currency_code,currency_symbol:c.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[s].spent=parseFloat(c.sum),this.spent=parseFloat(c.sum)<this.spent?parseFloat(c.sum):this.spent}for(var o in a.attributes.earned)if(a.attributes.earned.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var l,u=a.attributes.earned[o];s=u.currency_id+"-"+a.id,this.categories[s]=null!==(l=this.categories[s])&&void 0!==l?l:{id:r,name:a.attributes.name,currency_code:u.currency_code,currency_symbol:u.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[s].earned=parseFloat(u.sum),this.earned=parseFloat(u.sum)>this.earned?parseFloat(u.sum):this.earned}}this.sortCategories()},sortCategories:function(){var t=[];for(var e in this.categories)this.categories.hasOwnProperty(e)&&t.push(this.categories[e]);for(var a in t.sort((function(t,e){return t.spent+t.earned-(e.spent+e.earned)})),t)if(t.hasOwnProperty(a)){var s=t[a];s.spentPct=s.spent/this.spent*100,s.earnedPct=s.earned/this.earned*100,this.sortedList.push(s)}}}}),It=Object(r.a)($t,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.categories")))])]),t._v(" "),t.loading&&!t.error?a("div",{staticClass:"card-body"},[t._m(0)]):t._e(),t._v(" "),t.error?a("div",{staticClass:"card-body"},[t._m(1)]):t._e(),t._v(" "),t.loading||t.error?t._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("tbody",t._l(t.sortedList,(function(e){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./categories/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),a("td",{staticClass:"align-middle"},[e.spentPct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.spentPct+"%"},attrs:{"aria-valuenow":e.spentPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.spentPct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]),t._v(" "),e.spentPct<=20?a("span",{staticClass:"progress-label",staticStyle:{"line-height":"16px"}},[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]):t._e(),t._v(" "),e.earnedPct>0?a("div",{staticClass:"progress justify-content-end",attrs:{title:"hello2"}},[e.earnedPct<=20?a("span",{staticStyle:{"line-height":"16px"}},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n  ")]):t._e(),t._v(" "),a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.earnedPct+"%"},attrs:{"aria-valuenow":e.earnedPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar",title:"hello"}},[e.earnedPct>20?a("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n ")]):t._e()])]):t._e()])])})),0)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"098366f9",null).exports,Dt=a(8),Et=a.n(Dt),Ft=a(30);a(41),a(85),Et.a.component("transaction-list-large",gt),Et.a.component("transaction-list-medium",yt),Et.a.component("transaction-list-small",jt),Et.a.component("dashboard",n),Et.a.component("top-boxes",f),Et.a.component("main-account",L),Et.a.component("main-account-list",B),Et.a.component("main-bills-list",G),Et.a.component("main-budget-list",tt),Et.a.component("main-category-list",It),Et.a.component("main-debit-list",_t),Et.a.component("main-credit-list",ct),Et.a.component("main-piggy-list",ht),Et.a.use(i.c);var kt=a(43),Bt={};new Et.a({i18n:kt,store:Ft.a,el:"#dashboard",render:function(t){return t(n,{props:Bt})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference"),this.$store.dispatch("root/initialiseStore"),this.$store.dispatch("dashboard/index/initialiseStore")}}),new Et.a({i18n:kt,store:Ft.a,el:"#calendar",render:function(t){return t(wt.a,{props:Bt})}})},725:function(t,e){}},[[276,0,1]]]);
//# sourceMappingURL=dashboard.js.map
\ No newline at end of file
diff --git a/public/v2/js/dashboard.js.map b/public/v2/js/dashboard.js.map
index 39f59dc84b..2773410291 100755
--- a/public/v2/js/dashboard.js.map
+++ b/public/v2/js/dashboard.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/components/dashboard/Dashboard.vue?c016","webpack:///./src/components/dashboard/Dashboard.vue?e9df","webpack:///src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/Dashboard.vue","webpack:///src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?c977","webpack:///./src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?83ff","webpack:///./src/components/charts/DataConverter.vue?d682","webpack:///src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?36d0","webpack:///src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?6f90","webpack:///src/components/dashboard/MainAccountChart.vue","webpack:///./src/components/dashboard/MainAccountChart.vue?f54b","webpack:///./src/components/dashboard/MainAccountChart.vue","webpack:///src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?1e69","webpack:///./src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?0800","webpack:///src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?889b","webpack:///./src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?1697","webpack:///src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?536e","webpack:///./src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?17cf","webpack:///./src/components/dashboard/BudgetLimitRow.vue?c9a7","webpack:///src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue?a956","webpack:///./src/components/dashboard/BudgetRow.vue?09f9","webpack:///src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?7954","webpack:///src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetRow.vue?d9e9","webpack:///./src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?f3cb","webpack:///src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?9843","webpack:///./src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?faf9","webpack:///src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?53af","webpack:///./src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?2156","webpack:///src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?587b","webpack:///./src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?f552","webpack:///./src/components/dashboard/MainPiggyList.vue?7bae","webpack:///src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue?60b5","webpack:///./src/components/transactions/TransactionListLarge.vue?3500","webpack:///src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue?d789","webpack:///./src/components/transactions/TransactionListMedium.vue?d4b8","webpack:///src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue?4497","webpack:///./src/components/transactions/TransactionListSmall.vue?5a3e","webpack:///src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue?46eb","webpack:///src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?9f14","webpack:///./src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?eaf1","webpack:///./src/pages/dashboard.js"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","name","_vm","this","_h","$createElement","_c","_self","_v","staticClass","props","data","summary","balances","billsPaid","billsUnpaid","leftToSpend","netWorth","loading","error","ready","computed","start","end","prefCurrencyBalances","filterOnCurrency","notPrefCurrencyBalances","filterOnNotCurrency","prefBillsUnpaid","notPrefBillsUnpaid","prefLeftToSpend","notPrefLeftToSpend","prefNetWorth","notPrefNetWorth","currencyCode","$store","getters","currencyId","watch","datesReady","value","prepareComponent","created","methods","array","hasOwnProperty","key","currency_id","ret","push","length","axios","get","startStr","endStr","buildComponent","getBalanceEntries","getBillsEntries","getLeftToSpend","getNetWorth","hasCurrency","getKeyedEntries","expected","substr","result","_m","_e","_s","$t","_l","balance","attrs","sub_title","value_parsed","index","bill","left","nw","staticStyle","dataSet","newDataSet","locale","localStorage","local","convertChart","count","labels","datasets","getLabels","getDataSets","colorizeBarData","fillColors","colourSet","i","setKey","dataset","fill","backgroundColor","borderColor","colorizeLineData","convertLabelsToDate","labelKey","Intl","DateTimeFormat","format","unixTimeZero","firstSet","entries","entryLabel","oldSet","newSet","label","type","currency_symbol","currency_code","yAxisID","formatLabel","sections","words","str","String","split","temp","forEach","item","concat","maxwidth","getDefaultOptions","self","legend","display","animation","duration","responsive","maintainAspectRatio","elements","line","cubicInterpolationMode","scales","xAxes","yAxes","ticks","callback","NumberFormat","beginAtZero","tooltips","mode","callbacks","tooltipItem","datasetIndex","nrString","extends","mixins","reactiveProp","mounted","renderChart","chartData","options","components","dataCollection","chartOptions","DefaultLineOptions","initialiseChart","url","accounts","initialiseList","loadAccounts","accountIds","test","loadSingleAccount","accountId","loadTransactions","account","class","title","parseFloat","current_balance","style","currency","transactions","bills","initialiseBills","renderPaidDate","obj","transaction_group_id","loadBills","attributes","pay_dates","active","amount_min","amount_max","object_group_title","paidDate","domProps","payDate","paid_dates","year","month","day","Date","budgetLimit","default","budget","budget_id","budget_name","pctGreen","amount","spent","total","pctOrange","pctRed","budgetLimits","Array","budgets","budgetList","daily","weekly","monthly","quarterly","half_year","yearly","other","rawBudgets","getBudgets","income","max","getIncome","parseIncome","mainKey","parseInt","difference_float","current","pct","entry","width","expenses","getExpenses","parseExpenses","piggy_banks","loadPiggyBanks","piggy","left_to_save","sort","a","b","current_amount","target_amount","account_id","Number","transaction","date","group_title","description","tr","destination_id","destination_name","source_id","source_name","category_id","category_name","categories","sortedList","earned","getCategories","category","spentPct","earnedPct","require","Vue","component","TransactionListLarge","TransactionListMedium","TransactionListSmall","Dashboard","TopBoxes","MainAccount","MainAccountList","MainBillsList","MainBudgetList","MainCategoryList","MainDebitList","MainCreditList","MainPiggyList","use","Vuex","i18n","store","el","render","createElement","beforeCreate","commit","dispatch","Calendar"],"mappings":"0HAAA,IAAIA,EAAM,CACT,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,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,\n\t\"./ar-ma\": 94,\n\t\"./ar-ma.js\": 94,\n\t\"./ar-sa\": 95,\n\t\"./ar-sa.js\": 95,\n\t\"./ar-tn\": 96,\n\t\"./ar-tn.js\": 96,\n\t\"./ar.js\": 90,\n\t\"./az\": 97,\n\t\"./az.js\": 97,\n\t\"./be\": 98,\n\t\"./be.js\": 98,\n\t\"./bg\": 99,\n\t\"./bg.js\": 99,\n\t\"./bm\": 100,\n\t\"./bm.js\": 100,\n\t\"./bn\": 101,\n\t\"./bn-bd\": 102,\n\t\"./bn-bd.js\": 102,\n\t\"./bn.js\": 101,\n\t\"./bo\": 103,\n\t\"./bo.js\": 103,\n\t\"./br\": 104,\n\t\"./br.js\": 104,\n\t\"./bs\": 105,\n\t\"./bs.js\": 105,\n\t\"./ca\": 106,\n\t\"./ca.js\": 106,\n\t\"./cs\": 107,\n\t\"./cs.js\": 107,\n\t\"./cv\": 108,\n\t\"./cv.js\": 108,\n\t\"./cy\": 109,\n\t\"./cy.js\": 109,\n\t\"./da\": 110,\n\t\"./da.js\": 110,\n\t\"./de\": 111,\n\t\"./de-at\": 112,\n\t\"./de-at.js\": 112,\n\t\"./de-ch\": 113,\n\t\"./de-ch.js\": 113,\n\t\"./de.js\": 111,\n\t\"./dv\": 114,\n\t\"./dv.js\": 114,\n\t\"./el\": 115,\n\t\"./el.js\": 115,\n\t\"./en-au\": 116,\n\t\"./en-au.js\": 116,\n\t\"./en-ca\": 117,\n\t\"./en-ca.js\": 117,\n\t\"./en-gb\": 118,\n\t\"./en-gb.js\": 118,\n\t\"./en-ie\": 119,\n\t\"./en-ie.js\": 119,\n\t\"./en-il\": 120,\n\t\"./en-il.js\": 120,\n\t\"./en-in\": 121,\n\t\"./en-in.js\": 121,\n\t\"./en-nz\": 122,\n\t\"./en-nz.js\": 122,\n\t\"./en-sg\": 123,\n\t\"./en-sg.js\": 123,\n\t\"./eo\": 124,\n\t\"./eo.js\": 124,\n\t\"./es\": 125,\n\t\"./es-do\": 126,\n\t\"./es-do.js\": 126,\n\t\"./es-mx\": 127,\n\t\"./es-mx.js\": 127,\n\t\"./es-us\": 128,\n\t\"./es-us.js\": 128,\n\t\"./es.js\": 125,\n\t\"./et\": 129,\n\t\"./et.js\": 129,\n\t\"./eu\": 130,\n\t\"./eu.js\": 130,\n\t\"./fa\": 131,\n\t\"./fa.js\": 131,\n\t\"./fi\": 132,\n\t\"./fi.js\": 132,\n\t\"./fil\": 133,\n\t\"./fil.js\": 133,\n\t\"./fo\": 134,\n\t\"./fo.js\": 134,\n\t\"./fr\": 135,\n\t\"./fr-ca\": 136,\n\t\"./fr-ca.js\": 136,\n\t\"./fr-ch\": 137,\n\t\"./fr-ch.js\": 137,\n\t\"./fr.js\": 135,\n\t\"./fy\": 138,\n\t\"./fy.js\": 138,\n\t\"./ga\": 139,\n\t\"./ga.js\": 139,\n\t\"./gd\": 140,\n\t\"./gd.js\": 140,\n\t\"./gl\": 141,\n\t\"./gl.js\": 141,\n\t\"./gom-deva\": 142,\n\t\"./gom-deva.js\": 142,\n\t\"./gom-latn\": 143,\n\t\"./gom-latn.js\": 143,\n\t\"./gu\": 144,\n\t\"./gu.js\": 144,\n\t\"./he\": 145,\n\t\"./he.js\": 145,\n\t\"./hi\": 146,\n\t\"./hi.js\": 146,\n\t\"./hr\": 147,\n\t\"./hr.js\": 147,\n\t\"./hu\": 148,\n\t\"./hu.js\": 148,\n\t\"./hy-am\": 149,\n\t\"./hy-am.js\": 149,\n\t\"./id\": 150,\n\t\"./id.js\": 150,\n\t\"./is\": 151,\n\t\"./is.js\": 151,\n\t\"./it\": 152,\n\t\"./it-ch\": 153,\n\t\"./it-ch.js\": 153,\n\t\"./it.js\": 152,\n\t\"./ja\": 154,\n\t\"./ja.js\": 154,\n\t\"./jv\": 155,\n\t\"./jv.js\": 155,\n\t\"./ka\": 156,\n\t\"./ka.js\": 156,\n\t\"./kk\": 157,\n\t\"./kk.js\": 157,\n\t\"./km\": 158,\n\t\"./km.js\": 158,\n\t\"./kn\": 159,\n\t\"./kn.js\": 159,\n\t\"./ko\": 160,\n\t\"./ko.js\": 160,\n\t\"./ku\": 161,\n\t\"./ku.js\": 161,\n\t\"./ky\": 162,\n\t\"./ky.js\": 162,\n\t\"./lb\": 163,\n\t\"./lb.js\": 163,\n\t\"./lo\": 164,\n\t\"./lo.js\": 164,\n\t\"./lt\": 165,\n\t\"./lt.js\": 165,\n\t\"./lv\": 166,\n\t\"./lv.js\": 166,\n\t\"./me\": 167,\n\t\"./me.js\": 167,\n\t\"./mi\": 168,\n\t\"./mi.js\": 168,\n\t\"./mk\": 169,\n\t\"./mk.js\": 169,\n\t\"./ml\": 170,\n\t\"./ml.js\": 170,\n\t\"./mn\": 171,\n\t\"./mn.js\": 171,\n\t\"./mr\": 172,\n\t\"./mr.js\": 172,\n\t\"./ms\": 173,\n\t\"./ms-my\": 174,\n\t\"./ms-my.js\": 174,\n\t\"./ms.js\": 173,\n\t\"./mt\": 175,\n\t\"./mt.js\": 175,\n\t\"./my\": 176,\n\t\"./my.js\": 176,\n\t\"./nb\": 177,\n\t\"./nb.js\": 177,\n\t\"./ne\": 178,\n\t\"./ne.js\": 178,\n\t\"./nl\": 179,\n\t\"./nl-be\": 180,\n\t\"./nl-be.js\": 180,\n\t\"./nl.js\": 179,\n\t\"./nn\": 181,\n\t\"./nn.js\": 181,\n\t\"./oc-lnc\": 182,\n\t\"./oc-lnc.js\": 182,\n\t\"./pa-in\": 183,\n\t\"./pa-in.js\": 183,\n\t\"./pl\": 184,\n\t\"./pl.js\": 184,\n\t\"./pt\": 185,\n\t\"./pt-br\": 186,\n\t\"./pt-br.js\": 186,\n\t\"./pt.js\": 185,\n\t\"./ro\": 187,\n\t\"./ro.js\": 187,\n\t\"./ru\": 188,\n\t\"./ru.js\": 188,\n\t\"./sd\": 189,\n\t\"./sd.js\": 189,\n\t\"./se\": 190,\n\t\"./se.js\": 190,\n\t\"./si\": 191,\n\t\"./si.js\": 191,\n\t\"./sk\": 192,\n\t\"./sk.js\": 192,\n\t\"./sl\": 193,\n\t\"./sl.js\": 193,\n\t\"./sq\": 194,\n\t\"./sq.js\": 194,\n\t\"./sr\": 195,\n\t\"./sr-cyrl\": 196,\n\t\"./sr-cyrl.js\": 196,\n\t\"./sr.js\": 195,\n\t\"./ss\": 197,\n\t\"./ss.js\": 197,\n\t\"./sv\": 198,\n\t\"./sv.js\": 198,\n\t\"./sw\": 199,\n\t\"./sw.js\": 199,\n\t\"./ta\": 200,\n\t\"./ta.js\": 200,\n\t\"./te\": 201,\n\t\"./te.js\": 201,\n\t\"./tet\": 202,\n\t\"./tet.js\": 202,\n\t\"./tg\": 203,\n\t\"./tg.js\": 203,\n\t\"./th\": 204,\n\t\"./th.js\": 204,\n\t\"./tk\": 205,\n\t\"./tk.js\": 205,\n\t\"./tl-ph\": 206,\n\t\"./tl-ph.js\": 206,\n\t\"./tlh\": 207,\n\t\"./tlh.js\": 207,\n\t\"./tr\": 208,\n\t\"./tr.js\": 208,\n\t\"./tzl\": 209,\n\t\"./tzl.js\": 209,\n\t\"./tzm\": 210,\n\t\"./tzm-latn\": 211,\n\t\"./tzm-latn.js\": 211,\n\t\"./tzm.js\": 210,\n\t\"./ug-cn\": 212,\n\t\"./ug-cn.js\": 212,\n\t\"./uk\": 213,\n\t\"./uk.js\": 213,\n\t\"./ur\": 214,\n\t\"./ur.js\": 214,\n\t\"./uz\": 215,\n\t\"./uz-latn\": 216,\n\t\"./uz-latn.js\": 216,\n\t\"./uz.js\": 215,\n\t\"./vi\": 217,\n\t\"./vi.js\": 217,\n\t\"./x-pseudo\": 218,\n\t\"./x-pseudo.js\": 218,\n\t\"./yo\": 219,\n\t\"./yo.js\": 219,\n\t\"./zh-cn\": 220,\n\t\"./zh-cn.js\": 220,\n\t\"./zh-hk\": 221,\n\t\"./zh-hk.js\": 221,\n\t\"./zh-mo\": 222,\n\t\"./zh-mo.js\": 222,\n\t\"./zh-tw\": 223,\n\t\"./zh-tw.js\": 223\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 277;","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-boxes'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-account')],1)]),_vm._v(\" \"),_c('main-account-list'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-budget-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-category-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-debit-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-credit-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-piggy-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-bills-list')],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"","<!--\n - ExampleComponent.vue\n - Copyright (c) 2019 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <top-boxes/>\n <div class=\"row\">\n <div class=\"col\">\n <main-account/>\n </div>\n </div>\n <main-account-list/>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-budget-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-category-list/>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-debit-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-credit-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-piggy-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-bills-list/>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Dashboard\",\n}\n</script>\n","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=9d50d3a2&\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n - TopBoxes.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div class=\"col\"> <!-- col-md-3 col-sm-6 col-12 -->\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-bookmark text-info\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t(\"firefly.balance\") }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- balance in preferred currency -->\n <span v-for=\"balance in prefCurrencyBalances\" :title=\"balance.sub_title\" class=\"info-box-number\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-info\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- balance in not preferred currency -->\n <span class=\"progress-description\">\n <span v-for=\"(balance, index) in notPrefCurrencyBalances\" :title=\"balance.sub_title\">\n {{ balance.value_parsed }}<span v-if=\"index+1 !== notPrefCurrencyBalances.length\">, </span>\n </span>\n <span v-if=\"0===notPrefCurrencyBalances.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-calendar-alt text-teal\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.bills_to_pay') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- bills unpaid, in preferred currency. -->\n <span v-for=\"balance in prefBillsUnpaid\" class=\"info-box-number\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-teal\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- bills unpaid, in other currencies. -->\n <span class=\"progress-description\">\n <span v-for=\"(bill, index) in notPrefBillsUnpaid\">\n {{ bill.value_parsed }}<span v-if=\"index+1 !== notPrefBillsUnpaid.length\">, </span>\n </span>\n <span v-if=\"0===notPrefBillsUnpaid.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n <!-- left to spend -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.left_to_spend') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- left to spend in preferred currency -->\n <span v-for=\"left in prefLeftToSpend\" :title=\"left.sub_title\" class=\"info-box-number\">{{ left.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- other currencies-->\n <span class=\"progress-description\">\n <span v-for=\"(left, index) in notPrefLeftToSpend\">\n {{ left.value_parsed }}<span v-if=\"index+1 !== notPrefLeftToSpend.length\">, </span>\n </span>\n <span v-if=\"0===notPrefLeftToSpend.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <!-- net worth -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.net_worth') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <span v-for=\"nw in prefNetWorth\" :title=\"nw.sub_title\" class=\"info-box-number\">{{ nw.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <span class=\"progress-description\">\n <span v-for=\"(nw, index) in notPrefNetWorth\">\n {{ nw.value_parsed }}<span v-if=\"index+1 !== notPrefNetWorth.length\">, </span>\n </span>\n <span v-if=\"0===notPrefNetWorth.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\nexport default {\n name: \"TopBoxes\",\n props: {},\n data() {\n return {\n summary: [],\n balances: [],\n billsPaid: [],\n billsUnpaid: [],\n leftToSpend: [],\n netWorth: [],\n loading: true,\n error: false,\n ready: false\n }\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n },\n\n // contains only balances with preferred currency.\n prefCurrencyBalances: function () {\n return this.filterOnCurrency(this.balances);\n },\n notPrefCurrencyBalances: function () {\n return this.filterOnNotCurrency(this.balances);\n },\n\n // contains only bills unpaid in preferred currency or first one.\n prefBillsUnpaid: function () {\n return this.filterOnCurrency(this.billsUnpaid);\n },\n notPrefBillsUnpaid: function () {\n return this.filterOnNotCurrency(this.billsUnpaid);\n },\n\n // left to spend\n prefLeftToSpend: function () {\n return this.filterOnCurrency(this.leftToSpend);\n },\n notPrefLeftToSpend: function () {\n return this.filterOnNotCurrency(this.leftToSpend);\n },\n\n // net worth\n prefNetWorth: function () {\n return this.filterOnCurrency(this.netWorth);\n },\n notPrefNetWorth: function () {\n return this.filterOnNotCurrency(this.netWorth);\n },\n currencyCode() {\n return this.$store.getters.currencyCode;\n },\n currencyId() {\n return this.$store.getters.currencyId;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.prepareComponent();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.prepareComponent();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.prepareComponent();\n }\n },\n },\n created() {\n this.ready = true;\n },\n methods: {\n filterOnCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n // console.log('Currency ID seems to be ' + this.currencyId);\n if (array[key].currency_id === this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n // or just the first one:\n if (0 === ret.length && array.hasOwnProperty(0)) {\n ret.push(array[0]);\n }\n return ret;\n },\n filterOnNotCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id !== this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n return ret;\n },\n /**\n * Prepare the component.\n */\n prepareComponent() {\n this.error = false;\n this.loading = true;\n this.summary = [];\n this.balances = [];\n this.billsPaid = [];\n this.billsUnpaid = [];\n this.leftToSpend = [];\n this.netWorth = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/summary/basic?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.summary = response.data;\n this.buildComponent();\n this.loading = false\n }).catch(error => {\n this.error = true\n });\n },\n buildComponent() {\n this.getBalanceEntries();\n this.getBillsEntries();\n this.getLeftToSpend();\n this.getNetWorth();\n },\n\n hasCurrency: function (array) {\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id === this.currencyId) {\n return true;\n }\n }\n }\n return false;\n },\n\n getBalanceEntries() {\n this.balances = this.getKeyedEntries('balance-in-');\n },\n getNetWorth() {\n this.netWorth = this.getKeyedEntries('net-worth-in-');\n },\n getLeftToSpend() {\n this.leftToSpend = this.getKeyedEntries('left-to-spend-in-');\n },\n getBillsEntries() {\n this.billsPaid = this.getKeyedEntries('bills-paid-in-');\n this.billsUnpaid = this.getKeyedEntries('bills-unpaid-in-');\n },\n getKeyedEntries(expected) {\n let result = [];\n for (const key in this.summary) {\n if (this.summary.hasOwnProperty(key)) {\n if (expected === key.substr(0, expected.length)) {\n result.push(this.summary[key]);\n }\n }\n }\n return result;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TopBoxes.vue?vue&type=template&id=5c6cdcc5&\"\nimport script from \"./TopBoxes.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBoxes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t(\"firefly.balance\")))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefCurrencyBalances),function(balance){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":balance.sub_title}},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefCurrencyBalances),function(balance,index){return _c('span',{attrs:{\"title\":balance.sub_title}},[_vm._v(\"\\n \"+_vm._s(balance.value_parsed)),(index+1 !== _vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.bills_to_pay')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefBillsUnpaid),function(balance){return _c('span',{staticClass:\"info-box-number\"},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(3),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefBillsUnpaid),function(bill,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(bill.value_parsed)),(index+1 !== _vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.left_to_spend')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefLeftToSpend),function(left){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":left.sub_title}},[_vm._v(_vm._s(left.value_parsed))])}),_vm._v(\" \"),_vm._m(5),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefLeftToSpend),function(left,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(left.value_parsed)),(index+1 !== _vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(6),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.net_worth')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefNetWorth),function(nw){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":nw.sub_title}},[_vm._v(_vm._s(nw.value_parsed))])}),_vm._v(\" \"),_vm._m(7),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefNetWorth),function(nw,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(nw.value_parsed)),(index+1 !== _vm.notPrefNetWorth.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefNetWorth.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-bookmark text-info\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-info\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-calendar-alt text-teal\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-teal\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"","<!--\n - DataConverter.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\nexport default {\n name: \"DataConverter\",\n data() {\n return {\n dataSet: null,\n newDataSet: null,\n locale: localStorage.local,\n }\n },\n methods: {\n convertChart(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n }\n this.getLabels();\n this.getDataSets();\n this.newDataSet.count = this.newDataSet.datasets.length;\n return this.newDataSet;\n },\n\n colorizeBarData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n\n colorizeLineData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n convertLabelsToDate(dataSet) {\n for (let labelKey in dataSet.labels) {\n if (dataSet.labels.hasOwnProperty(labelKey)) {\n const unixTimeZero = Date.parse(dataSet.labels[labelKey]);\n dataSet.labels[labelKey] = new Intl.DateTimeFormat(this.locale).format(unixTimeZero);\n }\n }\n return dataSet;\n },\n getLabels() {\n let firstSet = this.dataSet[0];\n if (typeof firstSet !== 'undefined') {\n for (const entryLabel in firstSet.entries) {\n if (firstSet.entries.hasOwnProperty(entryLabel)) {\n this.newDataSet.labels.push(entryLabel);\n }\n }\n }\n },\n getDataSets() {\n for (const setKey in this.dataSet) {\n if (this.dataSet.hasOwnProperty(setKey)) {\n let newSet = {};\n let oldSet = this.dataSet[setKey];\n if (typeof oldSet !== 'undefined') {\n newSet.label = oldSet.label;\n newSet.type = oldSet.type;\n newSet.currency_symbol = oldSet.currency_symbol;\n newSet.currency_code = oldSet.currency_code;\n newSet.yAxisID = oldSet.yAxisID;\n newSet.data = [];\n for (const entryLabel in oldSet.entries) {\n if (oldSet.entries.hasOwnProperty(entryLabel)) {\n newSet.data.push(oldSet.entries[entryLabel]);\n }\n }\n this.newDataSet.datasets.push(newSet);\n }\n }\n }\n }\n }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./DataConverter.vue?vue&type=script&lang=js&\"\nexport * from \"./DataConverter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","<!--\n - DefaultLineOptions.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n</template>\n\n\n<script>\n\nexport default {\n name: \"DefaultLineOptions\",\n data() {\n return {}\n },\n methods: {\n /**\n * Takes a string phrase and breaks it into separate phrases no bigger than 'maxwidth', breaks are made at complete words.\n * https://stackoverflow.com/questions/21409717/chart-js-and-long-labels\n *\n * @param str\n * @param maxwidth\n * @returns {Array}\n */\n formatLabel(str, maxwidth) {\n var sections = [];\n str = String(str);\n var words = str.split(\" \");\n var temp = \"\";\n\n words.forEach(function (item, index) {\n if (temp.length > 0) {\n var concat = temp + ' ' + item;\n\n if (concat.length > maxwidth) {\n sections.push(temp);\n temp = \"\";\n } else {\n if (index === (words.length - 1)) {\n sections.push(concat);\n return;\n } else {\n temp = concat;\n return;\n }\n }\n }\n\n if (index === (words.length - 1)) {\n sections.push(item);\n return;\n }\n\n if (item.length < maxwidth) {\n temp = item;\n } else {\n sections.push(item);\n }\n\n });\n\n return sections;\n },\n getDefaultOptions() {\n var self = this;\n return {\n legend: {\n display: false,\n },\n animation: {\n duration: 0,\n },\n responsive: true,\n maintainAspectRatio: false,\n elements: {\n line: {\n cubicInterpolationMode: 'monotone'\n }\n },\n scales: {\n xAxes: [\n {\n gridLines: {\n display: false\n },\n ticks: {\n // break ticks when too long\n callback: function (value, index, values) {\n // date format\n let dateObj = new Date(value);\n let options = {year: 'numeric', month: 'long', day: 'numeric'};\n let str = new Intl.DateTimeFormat(localStorage.locale, options).format(dateObj);\n //console.log();\n //return self.formatLabel(value, 20);\n return self.formatLabel(str, 20);\n }\n }\n }\n ],\n yAxes: [{\n display: true,\n ticks: {\n callback: function (tickValue) {\n \"use strict\";\n let currencyCode = this.chart.data.datasets[0].currency_code ? this.chart.data.datasets[0].currency_code : 'EUR';\n return new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tickValue);\n },\n beginAtZero: true\n }\n\n }]\n },\n tooltips: {\n mode: 'index',\n callbacks: {\n label: function (tooltipItem, data) {\n \"use strict\";\n let currencyCode = data.datasets[tooltipItem.datasetIndex].currency_code ? data.datasets[tooltipItem.datasetIndex].currency_code : 'EUR';\n let nrString =\n new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tooltipItem.yLabel)\n\n return data.datasets[tooltipItem.datasetIndex].label + ': ' + nrString;\n }\n }\n }\n };\n }\n\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=5f7e90aa&scoped=true&\"\nimport script from \"./DefaultLineOptions.vue?vue&type=script&lang=js&\"\nexport * from \"./DefaultLineOptions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f7e90aa\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainAccountChart.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\n\nimport {Line, mixins} from 'vue-chartjs'\n\nconst {reactiveProp} = mixins\n\nexport default {\n extends: Line,\n mixins: [reactiveProp],\n props: ['options'],\n mounted() {\n this.renderChart(this.chartData, this.options)\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountChart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountChart.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./MainAccountChart.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccountChart.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n - MainAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.yourAccounts') }}</h3>\n </div>\n <div class=\"card-body\">\n <div v-if=\"!loading\">\n <MainAccountChart v-if=\"!loading && !error\" :chart-data=\"dataCollection\" :options=\"chartOptions\"/>\n </div>\n <div v-if=\"loading && !error\" class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n <div v-if=\"error\" class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./accounts/asset\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport DataConverter from \"../charts/DataConverter\";\nimport DefaultLineOptions from \"../charts/DefaultLineOptions\";\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport MainAccountChart from \"./MainAccountChart\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainAccount\",\n components: {MainAccountChart},\n data() {\n return {\n loading: true,\n error: false,\n ready: false,\n dataCollection: {},\n chartOptions: {}\n }\n },\n created() {\n this.ready = true;\n this.chartOptions = DefaultLineOptions.methods.getDefaultOptions();\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseChart();\n }\n },\n start: function () {\n this.initialiseChart();\n },\n end: function () {\n this.initialiseChart();\n },\n },\n methods: {\n initialiseChart: function () {\n this.loading = true;\n this.error = false;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n let url = './api/v1/chart/account/overview?start=' + startStr + '&end=' + endStr;\n // console.log('URL is ' + url);\n axios.get(url)\n .then(response => {\n let chartData = DataConverter.methods.convertChart(response.data);\n chartData = DataConverter.methods.colorizeLineData(chartData);\n this.dataCollection = chartData;\n this.loading = false;\n })\n .catch(error => {\n // console.log('Has error!');\n // console.log(error);\n this.error = true;\n // console.error(error);\n });\n }\n },\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainAccount.vue?vue&type=template&id=53c6b338&\"\nimport script from \"./MainAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccount.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.yourAccounts')))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[(!_vm.loading)?_c('div',[(!_vm.loading && !_vm.error)?_c('MainAccountChart',{attrs:{\"chart-data\":_vm.dataCollection,\"options\":_vm.chartOptions}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./accounts/asset\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_asset_accounts')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainAccountList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- row if loading -->\n <div v-if=\"loading && !error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- row if error -->\n <div v-if=\"error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- row if normal -->\n <div v-if=\"!loading && !error\" class=\"row\">\n <div\n v-for=\"account in accounts\"\n v-bind:class=\"{ 'col-lg-12': 1 === accounts.length, 'col-lg-6': 2 === accounts.length, 'col-lg-4': accounts.length > 2 }\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\"><a :href=\"account.url\">{{ account.title }}</a></h3>\n <div class=\"card-tools\">\n <span :class=\"parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)) }}\n </span>\n </div>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <div>\n <transaction-list-large v-if=\"1===accounts.length\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n <transaction-list-medium v-if=\"2===accounts.length\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n <transaction-list-small v-if=\"accounts.length > 2\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainAccountList\",\n data() {\n return {\n loading: true,\n error: false,\n ready: false,\n accounts: [],\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseList();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.initialiseList();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.initialiseList();\n }\n },\n },\n methods: {\n initialiseList: function () {\n this.loading = true;\n this.accounts = [];\n axios.get('./api/v1/preferences/frontpageAccounts')\n .then(response => {\n this.loadAccounts(response);\n }\n );\n },\n loadAccounts(response) {\n let accountIds = response.data.data.attributes.data;\n for (let key in accountIds) {\n if (accountIds.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.accounts.push({\n id: accountIds[key],\n title: '',\n url: '',\n current_balance: '',\n currency_code: 'EUR',\n transactions: []\n });\n this.loadSingleAccount(key, accountIds[key]);\n }\n }\n },\n loadSingleAccount(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId)\n .then(response => {\n this.accounts[key].title = response.data.data.attributes.name;\n this.accounts[key].url = './accounts/show/' + response.data.data.id;\n this.accounts[key].current_balance = response.data.data.attributes.current_balance;\n this.accounts[key].currency_code = response.data.data.attributes.currency_code;\n\n this.loadTransactions(key, accountId);\n }\n );\n },\n loadTransactions(key, accountId) {\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/accounts/' + accountId + '/transactions?page=1&limit=10&start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.accounts[key].transactions = response.data.data;\n this.loading = false;\n this.error = false;\n }\n );\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainAccountList.vue?vue&type=template&id=5d6bb842&scoped=true&\"\nimport script from \"./MainAccountList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccountList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d6bb842\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},_vm._l((_vm.accounts),function(account){return _c('div',{class:{ 'col-lg-12': 1 === _vm.accounts.length, 'col-lg-6': 2 === _vm.accounts.length, 'col-lg-4': _vm.accounts.length > 2 }},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_c('a',{attrs:{\"href\":account.url}},[_vm._v(_vm._s(account.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-tools\"},[_c('span',{class:parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('div',[(1===_vm.accounts.length)?_c('transaction-list-large',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e(),_vm._v(\" \"),(2===_vm.accounts.length)?_c('transaction-list-medium',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e(),_vm._v(\" \"),(_vm.accounts.length > 2)?_c('transaction-list-small',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e()],1)])])])}),0):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])])])])}]\n\nexport { render, staticRenderFns }","<!--\n - MainBills.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.bills') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.bills') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.name') }}</th>\n <th scope=\"col\" style=\"width:25%;\">{{ $t('list.next_expected_match') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"bill in this.bills\">\n <td><a :href=\"'./bills/show/' + bill.id\" :title=\"bill.attributes.name\">{{ bill.attributes.name }}</a>\n (~ <span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / -2)\n }}</span>)\n <small v-if=\"bill.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ bill.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <span v-for=\"paidDate in bill.attributes.paid_dates\">\n <span v-html=\"renderPaidDate(paidDate)\"/><br/>\n </span>\n <span v-for=\"payDate in bill.attributes.pay_dates\" v-if=\"0===bill.attributes.paid_dates.length\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)) }}<br/>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./bills\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_bills') }}</a>\n </div>\n </div>\n</template>\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\nexport default {\n name: \"MainBillsList\",\n data() {\n return {\n bills: [],\n locale: 'en-US',\n ready: false,\n loading: true,\n error: false\n }\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseBills();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.initialiseBills();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.initialiseBills();\n }\n },\n },\n created() {\n this.ready = true;\n this.locale = localStorage.locale ?? 'en-US';\n },\n components: {},\n methods: {\n initialiseBills: function () {\n this.loading = true;\n this.bills = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n\n axios.get('./api/v1/bills?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.loadBills(response.data.data);\n }\n ).catch(error => {\n this.error = true;\n this.loading = false;\n });\n },\n renderPaidDate: function (obj) {\n let dateStr = new Intl.DateTimeFormat(this.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(obj.date));\n let str = this.$t('firefly.bill_paid_on', {date: dateStr});\n return '<a href=\"./transactions/show/' + obj.transaction_group_id + '\" title=\"' + str + '\">' + str + '</a>';\n },\n loadBills: function (data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n\n let bill = data[key];\n let active = bill.attributes.active;\n if (bill.attributes.pay_dates.length > 0 && active) {\n this.bills.push(bill);\n }\n }\n }\n this.error = false;\n this.loading = false;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainBillsList.vue?vue&type=template&id=64c4c037&\"\nimport script from \"./MainBillsList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainBillsList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.bills')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-striped\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.bills')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"35%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.name')))]),_vm._v(\" \"),_c('th',{staticStyle:{\"width\":\"25%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.next_expected_match')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.bills),function(bill){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'./bills/show/' + bill.id,\"title\":bill.attributes.name}},[_vm._v(_vm._s(bill.attributes.name))]),_vm._v(\"\\n (~ \"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / -2)))]),_vm._v(\")\\n \"),(bill.attributes.object_group_title)?_c('small',{staticClass:\"text-muted\"},[_c('br'),_vm._v(\"\\n \"+_vm._s(bill.attributes.object_group_title)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('td',[_vm._l((bill.attributes.paid_dates),function(paidDate){return _c('span',[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.renderPaidDate(paidDate))}}),_c('br')])}),_vm._v(\" \"),_vm._l((bill.attributes.pay_dates),function(payDate){return (0===bill.attributes.paid_dates.length)?_c('span',[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)))),_c('br')]):_vm._e()})],2)])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./bills\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_bills')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budgetLimit.budget_id\">{{ budgetLimit.budget_name }}</a>\n </td>\n\n <td style=\"vertical-align: middle\">\n <div class=\"progress progress active\">\n <div :aria-valuenow=\"budgetLimit.pctGreen\" :style=\"'width: '+ budgetLimit.pctGreen + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctGreen > 35\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n <!-- -->\n </span>\n\n\n </div>\n\n <div :aria-valuenow=\"budgetLimit.pctOrange\" :style=\"'width: '+ budgetLimit.pctOrange + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-warning progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctRed <= 50 && budgetLimit.pctOrange > 35\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n </div>\n\n <div :aria-valuenow=\"budgetLimit.pctRed\" :style=\"'width: '+ budgetLimit.pctRed + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-danger progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctOrange <= 50 && budgetLimit.pctRed > 35\" class=\"text-muted\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n </div>\n\n <!-- amount if bar is very small -->\n <span v-if=\"budgetLimit.pctGreen <= 35 && 0 === budgetLimit.pctOrange && 0 === budgetLimit.pctRed && 0 !== budgetLimit.pctGreen\" style=\"line-height: 16px;\">\n &nbsp; {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n\n </div>\n <small class=\"d-none d-lg-block\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.start) }}\n &rarr;\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.end) }}\n </small>\n </td>\n\n <td class=\"align-middle d-none d-lg-table-cell\" style=\"width:10%;\">\n <span v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) > 0\" class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n <span v-if=\"0.0 === parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent)\" class=\"text-muted\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(0) }}\n </span>\n <span v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) < 0\" class=\"text-danger\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n </td>\n </tr>\n\n</template>\n\n<script>\nexport default {\n name: \"BudgetLimitRow\",\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budgetLimit: {\n type: Object,\n default: function () {\n return {};\n }\n },\n budget: {\n type: Object,\n default: function () {\n return {};\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetLimitRow.vue?vue&type=template&id=7988ecb6&scoped=true&\"\nimport script from \"./BudgetLimitRow.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetLimitRow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7988ecb6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budgetLimit.budget_id}},[_vm._v(_vm._s(_vm.budgetLimit.budget_name))])]),_vm._v(\" \"),_c('td',{staticStyle:{\"vertical-align\":\"middle\"}},[_c('div',{staticClass:\"progress progress active\"},[_c('div',{staticClass:\"progress-bar bg-success progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctGreen + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctGreen,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctGreen > 35)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar bg-warning progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctOrange + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctOrange,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctRed <= 50 && _vm.budgetLimit.pctOrange > 35)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar bg-danger progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctRed + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctRed,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctOrange <= 50 && _vm.budgetLimit.pctRed > 35)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.budgetLimit.pctGreen <= 35 && 0 === _vm.budgetLimit.pctOrange && 0 === _vm.budgetLimit.pctRed && 0 !== _vm.budgetLimit.pctGreen)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\"\\n   \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('small',{staticClass:\"d-none d-lg-block\"},[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.start))+\"\\n →\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.end))+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle d-none d-lg-table-cell\",staticStyle:{\"width\":\"10%\"}},[(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) > 0)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(0.0 === parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent))?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(0))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) < 0)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budget.id\">{{ budget.name }}</a>\n </td>\n <td class=\"align-middle text-right\">\n <span class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budget.currency_code}).format(parseFloat(budget.spent)) }}\n </span>\n </td>\n </tr>\n</template>\n\n<script>\nexport default {\n name: \"BudgetRow\",\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budget: {\n type: Object,\n default: {}\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","<!--\n - BudgetListGroup.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ title }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <BudgetLimitRow v-for=\"(budgetLimit, key) in budgetLimits\" v-bind:key=\"key\" :budgetLimit=\"budgetLimit\"/>\n <BudgetRow v-for=\"(budget, key) in budgets\" v-bind:key=\"key\" :budget=\"budget\"/>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./budgets\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_budgets') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetLimitRow from \"./BudgetLimitRow\";\nimport BudgetRow from \"./BudgetRow\";\n\nexport default {\n name: \"BudgetListGroup\",\n components: {BudgetLimitRow, BudgetRow},\n props: {\n title: String,\n budgetLimits: Array,\n budgets: Array,\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetRow.vue?vue&type=template&id=2fc8f640&scoped=true&\"\nimport script from \"./BudgetRow.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetRow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2fc8f640\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budget.id}},[_vm._v(_vm._s(_vm.budget.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle text-right\"},[_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budget.currency_code}).format(parseFloat(_vm.budget.spent)))+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./BudgetListGroup.vue?vue&type=template&id=658dd996&scoped=true&\"\nimport script from \"./BudgetListGroup.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetListGroup.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"658dd996\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',[_vm._l((_vm.budgetLimits),function(budgetLimit,key){return _c('BudgetLimitRow',{key:key,attrs:{\"budgetLimit\":budgetLimit}})}),_vm._v(\" \"),_vm._l((_vm.budgets),function(budget,key){return _c('BudgetRow',{key:key,attrs:{\"budget\":budget}})})],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./budgets\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_budgets')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainBudgetList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- daily budgets (will be the exception, I expect) -->\n <div v-if=\"!loading\" class=\"row\">\n <div v-if=\"budgetLimits.daily.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.daily :title=\"$t('firefly.daily_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.weekly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.weekly :title=\"$t('firefly.weekly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.monthly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.monthly :title=\"$t('firefly.monthly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.quarterly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.quarterly :title=\"$t('firefly.quarterly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.half_year.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.half_year :title=\"$t('firefly.half_year_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.yearly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.yearly :title=\"$t('firefly.yearly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.other.length > 0 || rawBudgets.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.other :budgets=\"rawBudgets\" :title=\"$t('firefly.other_budgets')\"\n />\n </div>\n </div>\n <div v-if=\"loading && !error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetListGroup from \"./BudgetListGroup\";\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainBudgetList\",\n components: {BudgetListGroup},\n data() {\n return {\n budgetList: ['daily', 'weekly', 'monthly', 'quarterly', 'half_year', 'yearly', 'other'],\n budgetLimits: {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n },\n budgets: {}, // used to collect some meta data.\n rawBudgets: [],\n locale: 'en-US',\n ready: false,\n loading: true,\n error: false\n }\n },\n created() {\n this.ready = true;\n this.locale = localStorage.locale ?? 'en-US';\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getBudgets();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getBudgets();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getBudgets();\n }\n },\n },\n computed: {\n ...mapGetters(['start', 'end']),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n methods:\n {\n getBudgets: function () {\n this.budgets = {};\n this.rawBudgets = [];\n this.budgetLimits = {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n };\n this.loading = true;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/budgets?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n if (false === current.attributes.active) {\n // skip inactive budgets\n continue;\n }\n for (let ii in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let spentData = current.attributes.spent[ii];\n this.rawBudgets.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name,\n currency_id: parseInt(spentData.currency_id),\n currency_code: spentData.currency_code,\n spent: spentData.sum\n }\n );\n console.log('Added budget ' + current.attributes.name + ' (' + spentData.currency_code + ')');\n }\n }\n }\n }\n this.getBudgetLimits();\n },\n getBudgetLimits() {\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/budget-limits?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseBudgetLimits(response.data);\n this.loading = false;\n }\n );\n },\n parseBudgetLimits(data) {\n // collect budget meta data.\n for (let i in data.included) {\n if (data.included.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.included[i];\n let currentId = parseInt(current.id);\n this.budgets[currentId] =\n {\n id: currentId,\n name: current.attributes.name,\n };\n console.log('Collected meta data: budget #' + currentId + ' is named ' + current.attributes.name);\n }\n }\n\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let currentId = parseInt(current.id);\n let budgetId = parseInt(current.attributes.budget_id);\n let currencyId = parseInt(current.attributes.currency_id);\n let spentFloat = parseFloat(current.attributes.spent);\n let amount = parseFloat(current.attributes.amount);\n let period = current.attributes.period ?? 'other';\n let pctGreen = 0;\n let pctOrange = 0;\n let pctRed = 0;\n console.log('Collected \"' + period + '\" budget limit #' + currentId + ' (part of budget #' + budgetId + ')');\n console.log('Spent ' + spentFloat + ' of ' + amount);\n\n // remove budget info from rawBudgets if it's there:\n this.filterBudgets(budgetId, currencyId);\n\n // spent within budget:\n if (0.0 !== spentFloat && spentFloat * -1 < amount) {\n pctGreen = (spentFloat * -1) / (amount * 100);\n }\n\n // spent over budget\n if (0.0 !== spentFloat && (spentFloat * -1) > amount) {\n pctOrange = (amount / (spentFloat * -1)) * 100;\n pctRed = 100 - pctOrange;\n }\n let obj = {\n id: currentId,\n amount: current.attributes.amount,\n budget_id: budgetId,\n budget_name: this.budgets[current.attributes.budget_id].name,\n currency_id: currencyId,\n currency_code: current.attributes.currency_code,\n period: current.attributes.period,\n start: new Date(current.attributes.start),\n end: new Date(current.attributes.end),\n spent: current.attributes.spent,\n pctGreen: pctGreen,\n pctOrange: pctOrange,\n pctRed: pctRed,\n };\n\n this.budgetLimits[period].push(obj);\n }\n }\n },\n\n filterBudgets(budgetId, currencyId) {\n for (let i in this.rawBudgets) {\n if (this.rawBudgets.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (this.rawBudgets[i].currency_id === currencyId && this.rawBudgets[i].id === budgetId) {\n console.log('Budget ' + this.rawBudgets[i].name + ' with currency ' + this.rawBudgets[i].currency_code + ' will be removed in favor of a budget limit.');\n this.rawBudgets.splice(parseInt(i), 1);\n }\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainBudgetList.vue?vue&type=template&id=5d7e4c93&scoped=true&\"\nimport script from \"./MainBudgetList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainBudgetList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d7e4c93\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.loading)?_c('div',{staticClass:\"row\"},[(_vm.budgetLimits.daily.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.daily,\"title\":_vm.$t('firefly.daily_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.weekly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.weekly,\"title\":_vm.$t('firefly.weekly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.monthly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.monthly,\"title\":_vm.$t('firefly.monthly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.quarterly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.quarterly,\"title\":_vm.$t('firefly.quarterly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.half_year.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.half_year,\"title\":_vm.$t('firefly.half_year_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.yearly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.yearly,\"title\":_vm.$t('firefly.yearly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.other.length > 0 || _vm.rawBudgets.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.other,\"budgets\":_vm.rawBudgets,\"title\":_vm.$t('firefly.other_budgets')}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(0)]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])])])])}]\n\nexport { render, staticRenderFns }","<!--\n - MainCreditList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.revenue_accounts') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in income\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div v-if=\"entry.pct > 0\" class=\"progress\">\n <div :aria-valuenow=\"entry.pct\" :style=\"{ width: entry.pct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-success\"\n role=\"progressbar\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./transactions/deposit\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_deposits') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\n\nexport default {\n name: \"MainCreditList\",\n data() {\n return {\n locale: 'en-US',\n income: [],\n max: 0,\n loading: true,\n error: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getIncome();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getIncome();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getIncome();\n }\n },\n },\n methods: {\n getIncome() {\n this.loading = true;\n this.income = [];\n this.error = false;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/insight/income/revenue?start=' + startStr + '&end=' + endStr)\n .then(response => {\n // do something with response.\n this.parseIncome(response.data);\n this.loading = false;\n }).catch(error => {\n this.error = true\n });\n },\n parseIncome(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) ) {\n mainKey = parseInt(mainKey);\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === mainKey) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if (0 !== mainKey) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.income.push(current);\n }\n }\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainCreditList.vue?vue&type=template&id=5dcfbdd4&\"\nimport script from \"./MainCreditList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainCreditList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.revenue_accounts')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.income),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: entry.pct + '%'}),attrs:{\"aria-valuenow\":entry.pct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(entry.pct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(entry.pct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./transactions/deposit\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_deposits')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","<!--\n - MainDebitList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.expense_accounts') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in expenses\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div v-if=\"entry.pct > 0\" class=\"progress\">\n <div :aria-valuenow=\"entry.pct\" :style=\"{ width: entry.pct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-danger\"\n role=\"progressbar\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./transactions/withdrawal\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_withdrawals') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\n\nexport default {\n name: \"MainDebitList\",\n data() {\n return {\n locale: 'en-US',\n expenses: [],\n max: 0,\n loading: true,\n error: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getExpenses();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getExpenses();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getExpenses();\n }\n },\n },\n methods: {\n getExpenses() {\n this.loading = true;\n this.error = false;\n this.expenses = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/insight/expense/expense?start=' + startStr + '&end=' + endStr)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n this.loading = false\n }).catch(error => {\n this.error = true\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === parseInt(mainKey)) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if (0 !== parseInt(mainKey)) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.expenses.push(current);\n\n }\n }\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainDebitList.vue?vue&type=template&id=7aa5bf85&\"\nimport script from \"./MainDebitList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainDebitList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.expense_accounts')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.expenses),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: entry.pct + '%'}),attrs:{\"aria-valuenow\":entry.pct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(entry.pct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(entry.pct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./transactions/withdrawal\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_withdrawals')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","<!--\n - MainPiggyList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.piggy_banks') }}</h3>\n </div>\n\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.piggy_banks') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.piggy_bank') }}</th>\n <th scope=\"col\" style=\"width:40%;\">{{ $t('list.percentage') }} <small>/ {{ $t('list.amount') }}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"piggy in this.piggy_banks\">\n <td>\n <a :href=\"'./piggy-banks/show/' + piggy.id\" :title=\"piggy.attributes.name\">{{ piggy.attributes.name }}</a>\n <small v-if=\"piggy.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ piggy.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <div class=\"progress-group\">\n <div class=\"progress progress-sm\">\n <div v-if=\"piggy.attributes.pct < 100\" :style=\"{'width': piggy.attributes.pct + '%'}\" class=\"progress-bar progress-bar-striped primary\"></div>\n <div v-if=\"100 === piggy.attributes.pct\" :style=\"{'width': piggy.attributes.pct + '%'}\"\n class=\"progress-bar progress-bar-striped bg-success\"></div>\n </div>\n </div>\n <span class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount)\n }}\n </span>\n of\n <span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)\n }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./piggy-banks\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_piggies') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainPiggyList\",\n data() {\n return {\n piggy_banks: [],\n loading: true,\n error: false,\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n axios.get('./api/v1/piggy_banks')\n .then(response => {\n this.loadPiggyBanks(response.data.data);\n this.loading = false;\n }\n ).catch(error => {\n this.error = true\n });\n },\n methods: {\n loadPiggyBanks(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let piggy = data[key];\n if (0.0 !== parseFloat(piggy.attributes.left_to_save)) {\n piggy.attributes.pct = (parseFloat(piggy.attributes.current_amount) / parseFloat(piggy.attributes.target_amount)) * 100;\n this.piggy_banks.push(piggy);\n }\n }\n }\n this.piggy_banks.sort(function (a, b) {\n return b.attributes.pct - a.attributes.pct;\n });\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainPiggyList.vue?vue&type=template&id=c17c9a5a&scoped=true&\"\nimport script from \"./MainPiggyList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainPiggyList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c17c9a5a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.piggy_banks')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-striped\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.piggy_banks')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"35%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.piggy_bank')))]),_vm._v(\" \"),_c('th',{staticStyle:{\"width\":\"40%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.percentage'))+\" \"),_c('small',[_vm._v(\"/ \"+_vm._s(_vm.$t('list.amount')))])])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.piggy_banks),function(piggy){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'./piggy-banks/show/' + piggy.id,\"title\":piggy.attributes.name}},[_vm._v(_vm._s(piggy.attributes.name))]),_vm._v(\" \"),(piggy.attributes.object_group_title)?_c('small',{staticClass:\"text-muted\"},[_c('br'),_vm._v(\"\\n \"+_vm._s(piggy.attributes.object_group_title)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('td',[_c('div',{staticClass:\"progress-group\"},[_c('div',{staticClass:\"progress progress-sm\"},[(piggy.attributes.pct < 100)?_c('div',{staticClass:\"progress-bar progress-bar-striped primary\",style:({'width': piggy.attributes.pct + '%'})}):_vm._e(),_vm._v(\" \"),(100 === piggy.attributes.pct)?_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({'width': piggy.attributes.pct + '%'})}):_vm._e()])]),_vm._v(\" \"),_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount))+\"\\n \")]),_vm._v(\"\\n of\\n \"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)))])])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./piggy-banks\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_piggies')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListLarge.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n <th scope=\"col\">{{ $t('firefly.category') }}</th>\n <th scope=\"col\">{{ $t('firefly.budget') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"'withdrawal' === tr.type\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'deposit' === tr.type\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <br/>\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"0!==tr.category_id\" :href=\"'categories/show/' + tr.category_id\">{{ tr.category_name }}</a><br/>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"0!==tr.budget_id\" :href=\"'budgets/show/' + tr.budget_id\">{{ tr.budget_name }}</a><br/>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListLarge\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListLarge.vue?vue&type=template&id=6e420753&scoped=true&\"\nimport script from \"./TransactionListLarge.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListLarge.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6e420753\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.opposing_account')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.category')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.budget')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":transaction.date}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),_c('br')])}),0),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.category_id)?_c('a',{attrs:{\"href\":'categories/show/' + tr.category_id}},[_vm._v(_vm._s(tr.category_name))]):_vm._e(),_c('br')])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.budget_id)?_c('a',{attrs:{\"href\":'budgets/show/' + tr.budget_id}},[_vm._v(_vm._s(tr.budget_name))]):_vm._e(),_c('br')])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListMedium.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"'withdrawal' === tr.type\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'deposit' === tr.type\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <br/>\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListMedium\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListMedium.vue?vue&type=template&id=0d4f7042&scoped=true&\"\nimport script from \"./TransactionListMedium.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListMedium.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0d4f7042\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.opposing_account')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":transaction.date}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),_c('br')])}),0),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListSmall.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \"\n :title=\"new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListSmall\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n methods: {},\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListSmall.vue?vue&type=template&id=4cd7a656&scoped=true&\"\nimport script from \"./TransactionListSmall.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListSmall.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4cd7a656\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":new Intl.DateTimeFormat(_vm.locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainCategoryList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.categories') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"category in sortedList\">\n <td style=\"width:20%;\">\n <a :href=\"'./categories/show/' + category.id\">{{ category.name }}</a>\n </td>\n <td class=\"align-middle\">\n <!-- SPENT -->\n <div v-if=\"category.spentPct > 0\" class=\"progress\">\n <div :aria-valuenow=\"category.spentPct\" :style=\"{ width: category.spentPct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-danger\"\n role=\"progressbar\">\n <span v-if=\"category.spentPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n <span v-if=\"category.spentPct <= 20\" class=\"progress-label\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n\n </div>\n\n <!-- EARNED -->\n <div v-if=\"category.earnedPct > 0\" class=\"progress justify-content-end\" title=\"hello2\">\n <span v-if=\"category.earnedPct <= 20\" style=\"line-height: 16px;\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n &nbsp;</span>\n <div :aria-valuenow=\"category.earnedPct\" :style=\"{ width: category.earnedPct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-success\"\n role=\"progressbar\" title=\"hello\">\n <span v-if=\"category.earnedPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n </span>\n </div>\n </div>\n\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainCategoryList\",\n\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n data() {\n return {\n locale: 'en-US',\n categories: [],\n sortedList: [],\n spent: 0,\n earned: 0,\n loading: true,\n error: false\n }\n },\n computed: {\n ...mapGetters(['start', 'end']),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getCategories();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getCategories();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getCategories();\n }\n },\n },\n methods:\n {\n getCategories() {\n this.categories = [];\n this.sortedList = [];\n this.spent = 0;\n this.earned = 0;\n this.loading = true;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/categories?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseCategories(response.data);\n this.loading = false;\n }\n ).catch(error => {\n this.error = true;\n });\n },\n parseCategories(data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let entryKey = null;\n let categoryId = parseInt(current.id);\n\n // loop spent info:\n for (let ii in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let spentData = current.attributes.spent[ii];\n entryKey = spentData.currency_id + '-' + current.id;\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: spentData.currency_code,\n currency_symbol: spentData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].spent = parseFloat(spentData.sum);\n this.spent = parseFloat(spentData.sum) < this.spent ? parseFloat(spentData.sum) : this.spent;\n }\n }\n\n // loop earned info\n for (let ii in current.attributes.earned) {\n if (current.attributes.earned.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let earnedData = current.attributes.earned[ii];\n entryKey = earnedData.currency_id + '-' + current.id;\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: earnedData.currency_code,\n currency_symbol: earnedData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].earned = parseFloat(earnedData.sum);\n this.earned = parseFloat(earnedData.sum) > this.earned ? parseFloat(earnedData.sum) : this.earned;\n }\n }\n }\n }\n this.sortCategories();\n },\n sortCategories() {\n // no longer care about keys:\n let array = [];\n for (let i in this.categories) {\n if (this.categories.hasOwnProperty(i)) {\n array.push(this.categories[i]);\n }\n }\n array.sort(function (one, two) {\n return (one.spent + one.earned) - (two.spent + two.earned);\n });\n for (let i in array) {\n if (array.hasOwnProperty(i)) {\n let current = array[i];\n current.spentPct = (current.spent / this.spent) * 100;\n current.earnedPct = (current.earned / this.earned) * 100;\n this.sortedList.push(current);\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainCategoryList.vue?vue&type=template&id=098366f9&scoped=true&\"\nimport script from \"./MainCategoryList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainCategoryList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"098366f9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.categories')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.sortedList),function(category){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./categories/show/' + category.id}},[_vm._v(_vm._s(category.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(category.spentPct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: category.spentPct + '%'}),attrs:{\"aria-valuenow\":category.spentPct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(category.spentPct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.spent))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(category.spentPct <= 20)?_c('span',{staticClass:\"progress-label\",staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.spent))+\"\\n \")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(category.earnedPct > 0)?_c('div',{staticClass:\"progress justify-content-end\",attrs:{\"title\":\"hello2\"}},[(category.earnedPct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.earned))+\"\\n  \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: category.earnedPct + '%'}),attrs:{\"aria-valuenow\":category.earnedPct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\",\"title\":\"hello\"}},[(category.earnedPct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.earned))+\"\\n \")]):_vm._e()])]):_vm._e()])])}),0)])]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","/*\n * dashboard.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport Dashboard from \"../components/dashboard/Dashboard\";\nimport TopBoxes from \"../components/dashboard/TopBoxes\";\nimport MainAccount from \"../components/dashboard/MainAccount\";\nimport MainAccountList from \"../components/dashboard/MainAccountList\";\nimport MainBillsList from \"../components/dashboard/MainBillsList\";\nimport MainBudgetList from \"../components/dashboard/MainBudgetList\";\nimport MainCreditList from \"../components/dashboard/MainCreditList\";\nimport MainDebitList from \"../components/dashboard/MainDebitList\";\nimport MainPiggyList from \"../components/dashboard/MainPiggyList\";\nimport TransactionListLarge from \"../components/transactions/TransactionListLarge\";\nimport TransactionListMedium from \"../components/transactions/TransactionListMedium\";\nimport TransactionListSmall from \"../components/transactions/TransactionListSmall\";\nimport Calendar from \"../components/dashboard/Calendar\";\nimport MainCategoryList from \"../components/dashboard/MainCategoryList\";\nimport Vue from \"vue\";\nimport Vuex from 'vuex'\nimport store from '../components/store';\n\n/**\n * First we will load Axios via bootstrap.js\n * jquery and bootstrap-sass preloaded in app.js\n * vue, uiv and vuei18n are in app_vue.js\n */\n\nrequire('../bootstrap');\nrequire('chart.js');\n\nVue.component('transaction-list-large', TransactionListLarge);\nVue.component('transaction-list-medium', TransactionListMedium);\nVue.component('transaction-list-small', TransactionListSmall);\n\n// components as an example\n\nVue.component('dashboard', Dashboard);\nVue.component('top-boxes', TopBoxes);\nVue.component('main-account', MainAccount);\nVue.component('main-account-list', MainAccountList);\nVue.component('main-bills-list', MainBillsList);\nVue.component('main-budget-list', MainBudgetList);\nVue.component('main-category-list', MainCategoryList);\nVue.component('main-debit-list', MainDebitList);\nVue.component('main-credit-list', MainCreditList);\nVue.component('main-piggy-list', MainPiggyList);\n\nVue.use(Vuex);\n\nlet i18n = require('../i18n');\nlet props = {};\n\nnew Vue({\n i18n,\n store,\n el: \"#dashboard\",\n render: (createElement) => {\n return createElement(Dashboard, {props: props});\n },\n beforeCreate() {\n // TODO migrate to \"root\" store.\n this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n this.$store.dispatch('root/initialiseStore');\n this.$store.dispatch('dashboard/index/initialiseStore');\n },\n });\nnew Vue({\n i18n,\n store,\n el: \"#calendar\",\n render: (createElement) => {\n return createElement(Calendar, {props: props});\n },\n // TODO init store as well?\n });"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/components/dashboard/Dashboard.vue?c016","webpack:///./src/components/dashboard/Dashboard.vue?e9df","webpack:///src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/Dashboard.vue","webpack:///src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?c977","webpack:///./src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?83ff","webpack:///./src/components/charts/DataConverter.vue?d682","webpack:///src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?36d0","webpack:///src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?6f90","webpack:///src/components/dashboard/MainAccountChart.vue","webpack:///./src/components/dashboard/MainAccountChart.vue?f54b","webpack:///./src/components/dashboard/MainAccountChart.vue","webpack:///src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?1e69","webpack:///./src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?0800","webpack:///src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?889b","webpack:///./src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?1697","webpack:///src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?536e","webpack:///./src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?17cf","webpack:///./src/components/dashboard/BudgetLimitRow.vue?c9a7","webpack:///src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue?a956","webpack:///./src/components/dashboard/BudgetRow.vue?09f9","webpack:///src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?7954","webpack:///src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetRow.vue?d9e9","webpack:///./src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?f3cb","webpack:///src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?9843","webpack:///./src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?faf9","webpack:///src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?53af","webpack:///./src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?3903","webpack:///src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?587b","webpack:///./src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?fcfb","webpack:///./src/components/dashboard/MainPiggyList.vue?7bae","webpack:///src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue?60b5","webpack:///./src/components/transactions/TransactionListLarge.vue?3500","webpack:///src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue?d789","webpack:///./src/components/transactions/TransactionListMedium.vue?d4b8","webpack:///src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue?4497","webpack:///./src/components/transactions/TransactionListSmall.vue?5a3e","webpack:///src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue?46eb","webpack:///src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?9f14","webpack:///./src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?eaf1","webpack:///./src/pages/dashboard.js"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","name","_vm","this","_h","$createElement","_c","_self","_v","staticClass","props","data","summary","balances","billsPaid","billsUnpaid","leftToSpend","netWorth","loading","error","ready","computed","start","end","prefCurrencyBalances","filterOnCurrency","notPrefCurrencyBalances","filterOnNotCurrency","prefBillsUnpaid","notPrefBillsUnpaid","prefLeftToSpend","notPrefLeftToSpend","prefNetWorth","notPrefNetWorth","currencyCode","$store","getters","currencyId","watch","datesReady","value","prepareComponent","created","methods","array","hasOwnProperty","key","currency_id","ret","push","length","axios","get","startStr","endStr","buildComponent","getBalanceEntries","getBillsEntries","getLeftToSpend","getNetWorth","hasCurrency","getKeyedEntries","expected","substr","result","_m","_e","_s","$t","_l","balance","attrs","sub_title","value_parsed","index","bill","left","nw","staticStyle","dataSet","newDataSet","locale","localStorage","local","convertChart","count","labels","datasets","getLabels","getDataSets","colorizeBarData","fillColors","colourSet","i","setKey","dataset","fill","backgroundColor","borderColor","colorizeLineData","convertLabelsToDate","labelKey","Intl","DateTimeFormat","format","unixTimeZero","firstSet","entries","entryLabel","oldSet","newSet","label","type","currency_symbol","currency_code","yAxisID","formatLabel","sections","words","str","String","split","temp","forEach","item","concat","maxwidth","getDefaultOptions","self","legend","display","animation","duration","responsive","maintainAspectRatio","elements","line","cubicInterpolationMode","scales","xAxes","yAxes","ticks","callback","NumberFormat","beginAtZero","tooltips","mode","callbacks","tooltipItem","datasetIndex","nrString","extends","mixins","reactiveProp","mounted","renderChart","chartData","options","components","dataCollection","chartOptions","DefaultLineOptions","initialiseChart","url","accounts","initialiseList","loadAccounts","accountIds","test","loadSingleAccount","accountId","loadTransactions","account","class","title","parseFloat","current_balance","style","currency","transactions","bills","initialiseBills","renderPaidDate","obj","transaction_group_id","loadBills","attributes","pay_dates","active","amount_min","amount_max","object_group_title","paidDate","domProps","payDate","paid_dates","year","month","day","Date","budgetLimit","default","budget","budget_id","budget_name","pctGreen","amount","spent","total","pctOrange","pctRed","budgetLimits","Array","budgets","budgetList","daily","weekly","monthly","quarterly","half_year","yearly","other","rawBudgets","getBudgets","income","max","getIncome","parseIncome","mainKey","parseInt","current","pct","difference_float","sort","entry","width","expenses","min","getExpenses","parseExpenses","piggy_banks","loadPiggyBanks","piggy","left_to_save","a","b","current_amount","target_amount","account_id","Number","transaction","date","group_title","description","tr","destination_id","destination_name","source_id","source_name","category_id","category_name","categories","sortedList","earned","getCategories","category","spentPct","earnedPct","require","Vue","component","TransactionListLarge","TransactionListMedium","TransactionListSmall","Dashboard","TopBoxes","MainAccount","MainAccountList","MainBillsList","MainBudgetList","MainCategoryList","MainDebitList","MainCreditList","MainPiggyList","use","Vuex","i18n","store","el","render","createElement","beforeCreate","commit","dispatch","Calendar"],"mappings":"0HAAA,IAAIA,EAAM,CACT,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ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YAAY,eAAe,CAACH,EAAG,IAAI,CAACG,YAAY,iDDU7U,EACA,KACA,WACA,M,oCE8BFmQ,EAAQ,IACRA,EAAQ,IAERC,KAAIC,UAAU,yBAA0BC,IACxCF,KAAIC,UAAU,0BAA2BE,IACzCH,KAAIC,UAAU,yBAA0BG,IAIxCJ,KAAIC,UAAU,YAAaI,GAC3BL,KAAIC,UAAU,YAAaK,GAC3BN,KAAIC,UAAU,eAAgBM,GAC9BP,KAAIC,UAAU,oBAAqBO,GACnCR,KAAIC,UAAU,kBAAmBQ,GACjCT,KAAIC,UAAU,mBAAoBS,IAClCV,KAAIC,UAAU,qBAAsBU,IACpCX,KAAIC,UAAU,kBAAmBW,IACjCZ,KAAIC,UAAU,mBAAoBY,IAClCb,KAAIC,UAAU,kBAAmBa,IAEjCd,KAAIe,IAAIC,KAER,IAAIC,GAAOlB,EAAQ,IACflQ,GAAQ,GAEZ,IAAImQ,KAAI,CACIiB,QACAC,WACAC,GAAI,aACJC,OAAQ,SAACC,GACL,OAAOA,EAAchB,EAAW,CAACxQ,MAAOA,MAE5CyR,aAPJ,WASQhS,KAAKgC,OAAOiQ,OAAO,mBACnBjS,KAAKgC,OAAOkQ,SAAS,4BACrBlS,KAAKgC,OAAOkQ,SAAS,wBACrBlS,KAAKgC,OAAOkQ,SAAS,sCAGrC,IAAIxB,KAAI,CACIiB,QACAC,WACAC,GAAI,YACJC,OAAQ,SAACC,GACL,OAAOA,EAAcI,KAAU,CAAC5R,MAAOA,S","file":"/public/js/dashboard.js","sourcesContent":["var map = {\n\t\"./af\": 89,\n\t\"./af.js\": 89,\n\t\"./ar\": 90,\n\t\"./ar-dz\": 91,\n\t\"./ar-dz.js\": 91,\n\t\"./ar-kw\": 92,\n\t\"./ar-kw.js\": 92,\n\t\"./ar-ly\": 93,\n\t\"./ar-ly.js\": 93,\n\t\"./ar-ma\": 94,\n\t\"./ar-ma.js\": 94,\n\t\"./ar-sa\": 95,\n\t\"./ar-sa.js\": 95,\n\t\"./ar-tn\": 96,\n\t\"./ar-tn.js\": 96,\n\t\"./ar.js\": 90,\n\t\"./az\": 97,\n\t\"./az.js\": 97,\n\t\"./be\": 98,\n\t\"./be.js\": 98,\n\t\"./bg\": 99,\n\t\"./bg.js\": 99,\n\t\"./bm\": 100,\n\t\"./bm.js\": 100,\n\t\"./bn\": 101,\n\t\"./bn-bd\": 102,\n\t\"./bn-bd.js\": 102,\n\t\"./bn.js\": 101,\n\t\"./bo\": 103,\n\t\"./bo.js\": 103,\n\t\"./br\": 104,\n\t\"./br.js\": 104,\n\t\"./bs\": 105,\n\t\"./bs.js\": 105,\n\t\"./ca\": 106,\n\t\"./ca.js\": 106,\n\t\"./cs\": 107,\n\t\"./cs.js\": 107,\n\t\"./cv\": 108,\n\t\"./cv.js\": 108,\n\t\"./cy\": 109,\n\t\"./cy.js\": 109,\n\t\"./da\": 110,\n\t\"./da.js\": 110,\n\t\"./de\": 111,\n\t\"./de-at\": 112,\n\t\"./de-at.js\": 112,\n\t\"./de-ch\": 113,\n\t\"./de-ch.js\": 113,\n\t\"./de.js\": 111,\n\t\"./dv\": 114,\n\t\"./dv.js\": 114,\n\t\"./el\": 115,\n\t\"./el.js\": 115,\n\t\"./en-au\": 116,\n\t\"./en-au.js\": 116,\n\t\"./en-ca\": 117,\n\t\"./en-ca.js\": 117,\n\t\"./en-gb\": 118,\n\t\"./en-gb.js\": 118,\n\t\"./en-ie\": 119,\n\t\"./en-ie.js\": 119,\n\t\"./en-il\": 120,\n\t\"./en-il.js\": 120,\n\t\"./en-in\": 121,\n\t\"./en-in.js\": 121,\n\t\"./en-nz\": 122,\n\t\"./en-nz.js\": 122,\n\t\"./en-sg\": 123,\n\t\"./en-sg.js\": 123,\n\t\"./eo\": 124,\n\t\"./eo.js\": 124,\n\t\"./es\": 125,\n\t\"./es-do\": 126,\n\t\"./es-do.js\": 126,\n\t\"./es-mx\": 127,\n\t\"./es-mx.js\": 127,\n\t\"./es-us\": 128,\n\t\"./es-us.js\": 128,\n\t\"./es.js\": 125,\n\t\"./et\": 129,\n\t\"./et.js\": 129,\n\t\"./eu\": 130,\n\t\"./eu.js\": 130,\n\t\"./fa\": 131,\n\t\"./fa.js\": 131,\n\t\"./fi\": 132,\n\t\"./fi.js\": 132,\n\t\"./fil\": 133,\n\t\"./fil.js\": 133,\n\t\"./fo\": 134,\n\t\"./fo.js\": 134,\n\t\"./fr\": 135,\n\t\"./fr-ca\": 136,\n\t\"./fr-ca.js\": 136,\n\t\"./fr-ch\": 137,\n\t\"./fr-ch.js\": 137,\n\t\"./fr.js\": 135,\n\t\"./fy\": 138,\n\t\"./fy.js\": 138,\n\t\"./ga\": 139,\n\t\"./ga.js\": 139,\n\t\"./gd\": 140,\n\t\"./gd.js\": 140,\n\t\"./gl\": 141,\n\t\"./gl.js\": 141,\n\t\"./gom-deva\": 142,\n\t\"./gom-deva.js\": 142,\n\t\"./gom-latn\": 143,\n\t\"./gom-latn.js\": 143,\n\t\"./gu\": 144,\n\t\"./gu.js\": 144,\n\t\"./he\": 145,\n\t\"./he.js\": 145,\n\t\"./hi\": 146,\n\t\"./hi.js\": 146,\n\t\"./hr\": 147,\n\t\"./hr.js\": 147,\n\t\"./hu\": 148,\n\t\"./hu.js\": 148,\n\t\"./hy-am\": 149,\n\t\"./hy-am.js\": 149,\n\t\"./id\": 150,\n\t\"./id.js\": 150,\n\t\"./is\": 151,\n\t\"./is.js\": 151,\n\t\"./it\": 152,\n\t\"./it-ch\": 153,\n\t\"./it-ch.js\": 153,\n\t\"./it.js\": 152,\n\t\"./ja\": 154,\n\t\"./ja.js\": 154,\n\t\"./jv\": 155,\n\t\"./jv.js\": 155,\n\t\"./ka\": 156,\n\t\"./ka.js\": 156,\n\t\"./kk\": 157,\n\t\"./kk.js\": 157,\n\t\"./km\": 158,\n\t\"./km.js\": 158,\n\t\"./kn\": 159,\n\t\"./kn.js\": 159,\n\t\"./ko\": 160,\n\t\"./ko.js\": 160,\n\t\"./ku\": 161,\n\t\"./ku.js\": 161,\n\t\"./ky\": 162,\n\t\"./ky.js\": 162,\n\t\"./lb\": 163,\n\t\"./lb.js\": 163,\n\t\"./lo\": 164,\n\t\"./lo.js\": 164,\n\t\"./lt\": 165,\n\t\"./lt.js\": 165,\n\t\"./lv\": 166,\n\t\"./lv.js\": 166,\n\t\"./me\": 167,\n\t\"./me.js\": 167,\n\t\"./mi\": 168,\n\t\"./mi.js\": 168,\n\t\"./mk\": 169,\n\t\"./mk.js\": 169,\n\t\"./ml\": 170,\n\t\"./ml.js\": 170,\n\t\"./mn\": 171,\n\t\"./mn.js\": 171,\n\t\"./mr\": 172,\n\t\"./mr.js\": 172,\n\t\"./ms\": 173,\n\t\"./ms-my\": 174,\n\t\"./ms-my.js\": 174,\n\t\"./ms.js\": 173,\n\t\"./mt\": 175,\n\t\"./mt.js\": 175,\n\t\"./my\": 176,\n\t\"./my.js\": 176,\n\t\"./nb\": 177,\n\t\"./nb.js\": 177,\n\t\"./ne\": 178,\n\t\"./ne.js\": 178,\n\t\"./nl\": 179,\n\t\"./nl-be\": 180,\n\t\"./nl-be.js\": 180,\n\t\"./nl.js\": 179,\n\t\"./nn\": 181,\n\t\"./nn.js\": 181,\n\t\"./oc-lnc\": 182,\n\t\"./oc-lnc.js\": 182,\n\t\"./pa-in\": 183,\n\t\"./pa-in.js\": 183,\n\t\"./pl\": 184,\n\t\"./pl.js\": 184,\n\t\"./pt\": 185,\n\t\"./pt-br\": 186,\n\t\"./pt-br.js\": 186,\n\t\"./pt.js\": 185,\n\t\"./ro\": 187,\n\t\"./ro.js\": 187,\n\t\"./ru\": 188,\n\t\"./ru.js\": 188,\n\t\"./sd\": 189,\n\t\"./sd.js\": 189,\n\t\"./se\": 190,\n\t\"./se.js\": 190,\n\t\"./si\": 191,\n\t\"./si.js\": 191,\n\t\"./sk\": 192,\n\t\"./sk.js\": 192,\n\t\"./sl\": 193,\n\t\"./sl.js\": 193,\n\t\"./sq\": 194,\n\t\"./sq.js\": 194,\n\t\"./sr\": 195,\n\t\"./sr-cyrl\": 196,\n\t\"./sr-cyrl.js\": 196,\n\t\"./sr.js\": 195,\n\t\"./ss\": 197,\n\t\"./ss.js\": 197,\n\t\"./sv\": 198,\n\t\"./sv.js\": 198,\n\t\"./sw\": 199,\n\t\"./sw.js\": 199,\n\t\"./ta\": 200,\n\t\"./ta.js\": 200,\n\t\"./te\": 201,\n\t\"./te.js\": 201,\n\t\"./tet\": 202,\n\t\"./tet.js\": 202,\n\t\"./tg\": 203,\n\t\"./tg.js\": 203,\n\t\"./th\": 204,\n\t\"./th.js\": 204,\n\t\"./tk\": 205,\n\t\"./tk.js\": 205,\n\t\"./tl-ph\": 206,\n\t\"./tl-ph.js\": 206,\n\t\"./tlh\": 207,\n\t\"./tlh.js\": 207,\n\t\"./tr\": 208,\n\t\"./tr.js\": 208,\n\t\"./tzl\": 209,\n\t\"./tzl.js\": 209,\n\t\"./tzm\": 210,\n\t\"./tzm-latn\": 211,\n\t\"./tzm-latn.js\": 211,\n\t\"./tzm.js\": 210,\n\t\"./ug-cn\": 212,\n\t\"./ug-cn.js\": 212,\n\t\"./uk\": 213,\n\t\"./uk.js\": 213,\n\t\"./ur\": 214,\n\t\"./ur.js\": 214,\n\t\"./uz\": 215,\n\t\"./uz-latn\": 216,\n\t\"./uz-latn.js\": 216,\n\t\"./uz.js\": 215,\n\t\"./vi\": 217,\n\t\"./vi.js\": 217,\n\t\"./x-pseudo\": 218,\n\t\"./x-pseudo.js\": 218,\n\t\"./yo\": 219,\n\t\"./yo.js\": 219,\n\t\"./zh-cn\": 220,\n\t\"./zh-cn.js\": 220,\n\t\"./zh-hk\": 221,\n\t\"./zh-hk.js\": 221,\n\t\"./zh-mo\": 222,\n\t\"./zh-mo.js\": 222,\n\t\"./zh-tw\": 223,\n\t\"./zh-tw.js\": 223\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 277;","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-boxes'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-account')],1)]),_vm._v(\" \"),_c('main-account-list'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-budget-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-category-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-debit-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-credit-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-piggy-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-bills-list')],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"","<!--\n - ExampleComponent.vue\n - Copyright (c) 2019 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <top-boxes/>\n <div class=\"row\">\n <div class=\"col\">\n <main-account/>\n </div>\n </div>\n <main-account-list/>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-budget-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-category-list/>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-debit-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-credit-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-piggy-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-bills-list/>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Dashboard\",\n}\n</script>\n","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=9d50d3a2&\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n - TopBoxes.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div class=\"col\"> <!-- col-md-3 col-sm-6 col-12 -->\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-bookmark text-info\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t(\"firefly.balance\") }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- balance in preferred currency -->\n <span v-for=\"balance in prefCurrencyBalances\" :title=\"balance.sub_title\" class=\"info-box-number\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-info\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- balance in not preferred currency -->\n <span class=\"progress-description\">\n <span v-for=\"(balance, index) in notPrefCurrencyBalances\" :title=\"balance.sub_title\">\n {{ balance.value_parsed }}<span v-if=\"index+1 !== notPrefCurrencyBalances.length\">, </span>\n </span>\n <span v-if=\"0===notPrefCurrencyBalances.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-calendar-alt text-teal\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.bills_to_pay') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- bills unpaid, in preferred currency. -->\n <span v-for=\"balance in prefBillsUnpaid\" class=\"info-box-number\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-teal\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- bills unpaid, in other currencies. -->\n <span class=\"progress-description\">\n <span v-for=\"(bill, index) in notPrefBillsUnpaid\">\n {{ bill.value_parsed }}<span v-if=\"index+1 !== notPrefBillsUnpaid.length\">, </span>\n </span>\n <span v-if=\"0===notPrefBillsUnpaid.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n <!-- left to spend -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.left_to_spend') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <!-- left to spend in preferred currency -->\n <span v-for=\"left in prefLeftToSpend\" :title=\"left.sub_title\" class=\"info-box-number\">{{ left.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- other currencies-->\n <span class=\"progress-description\">\n <span v-for=\"(left, index) in notPrefLeftToSpend\">\n {{ left.value_parsed }}<span v-if=\"index+1 !== notPrefLeftToSpend.length\">, </span>\n </span>\n <span v-if=\"0===notPrefLeftToSpend.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <!-- net worth -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span v-if=\"!loading && !error\" class=\"info-box-text\">{{ $t('firefly.net_worth') }}</span>\n <span v-if=\"loading && !error\" class=\"info-box-text\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <span v-if=\"error\" class=\"info-box-text\"><i class=\"fas fa-exclamation-triangle text-danger\"></i></span>\n <span v-for=\"nw in prefNetWorth\" :title=\"nw.sub_title\" class=\"info-box-number\">{{ nw.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <span class=\"progress-description\">\n <span v-for=\"(nw, index) in notPrefNetWorth\">\n {{ nw.value_parsed }}<span v-if=\"index+1 !== notPrefNetWorth.length\">, </span>\n </span>\n <span v-if=\"0===notPrefNetWorth.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\nexport default {\n name: \"TopBoxes\",\n props: {},\n data() {\n return {\n summary: [],\n balances: [],\n billsPaid: [],\n billsUnpaid: [],\n leftToSpend: [],\n netWorth: [],\n loading: true,\n error: false,\n ready: false\n }\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n },\n\n // contains only balances with preferred currency.\n prefCurrencyBalances: function () {\n return this.filterOnCurrency(this.balances);\n },\n notPrefCurrencyBalances: function () {\n return this.filterOnNotCurrency(this.balances);\n },\n\n // contains only bills unpaid in preferred currency or first one.\n prefBillsUnpaid: function () {\n return this.filterOnCurrency(this.billsUnpaid);\n },\n notPrefBillsUnpaid: function () {\n return this.filterOnNotCurrency(this.billsUnpaid);\n },\n\n // left to spend\n prefLeftToSpend: function () {\n return this.filterOnCurrency(this.leftToSpend);\n },\n notPrefLeftToSpend: function () {\n return this.filterOnNotCurrency(this.leftToSpend);\n },\n\n // net worth\n prefNetWorth: function () {\n return this.filterOnCurrency(this.netWorth);\n },\n notPrefNetWorth: function () {\n return this.filterOnNotCurrency(this.netWorth);\n },\n currencyCode() {\n return this.$store.getters.currencyCode;\n },\n currencyId() {\n return this.$store.getters.currencyId;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.prepareComponent();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.prepareComponent();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.prepareComponent();\n }\n },\n },\n created() {\n this.ready = true;\n },\n methods: {\n filterOnCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n // console.log('Currency ID seems to be ' + this.currencyId);\n if (array[key].currency_id === this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n // or just the first one:\n if (0 === ret.length && array.hasOwnProperty(0)) {\n ret.push(array[0]);\n }\n return ret;\n },\n filterOnNotCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id !== this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n return ret;\n },\n /**\n * Prepare the component.\n */\n prepareComponent() {\n this.error = false;\n this.loading = true;\n this.summary = [];\n this.balances = [];\n this.billsPaid = [];\n this.billsUnpaid = [];\n this.leftToSpend = [];\n this.netWorth = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/summary/basic?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.summary = response.data;\n this.buildComponent();\n this.loading = false\n }).catch(error => {\n this.error = true\n });\n },\n buildComponent() {\n this.getBalanceEntries();\n this.getBillsEntries();\n this.getLeftToSpend();\n this.getNetWorth();\n },\n\n hasCurrency: function (array) {\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id === this.currencyId) {\n return true;\n }\n }\n }\n return false;\n },\n\n getBalanceEntries() {\n this.balances = this.getKeyedEntries('balance-in-');\n },\n getNetWorth() {\n this.netWorth = this.getKeyedEntries('net-worth-in-');\n },\n getLeftToSpend() {\n this.leftToSpend = this.getKeyedEntries('left-to-spend-in-');\n },\n getBillsEntries() {\n this.billsPaid = this.getKeyedEntries('bills-paid-in-');\n this.billsUnpaid = this.getKeyedEntries('bills-unpaid-in-');\n },\n getKeyedEntries(expected) {\n let result = [];\n for (const key in this.summary) {\n if (this.summary.hasOwnProperty(key)) {\n if (expected === key.substr(0, expected.length)) {\n result.push(this.summary[key]);\n }\n }\n }\n return result;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TopBoxes.vue?vue&type=template&id=5c6cdcc5&\"\nimport script from \"./TopBoxes.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBoxes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t(\"firefly.balance\")))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefCurrencyBalances),function(balance){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":balance.sub_title}},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefCurrencyBalances),function(balance,index){return _c('span',{attrs:{\"title\":balance.sub_title}},[_vm._v(\"\\n \"+_vm._s(balance.value_parsed)),(index+1 !== _vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.bills_to_pay')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefBillsUnpaid),function(balance){return _c('span',{staticClass:\"info-box-number\"},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(3),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefBillsUnpaid),function(bill,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(bill.value_parsed)),(index+1 !== _vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.left_to_spend')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefLeftToSpend),function(left){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":left.sub_title}},[_vm._v(_vm._s(left.value_parsed))])}),_vm._v(\" \"),_vm._m(5),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefLeftToSpend),function(left,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(left.value_parsed)),(index+1 !== _vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(6),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[(!_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.net_worth')))]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"info-box-text\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.prefNetWorth),function(nw){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":nw.sub_title}},[_vm._v(_vm._s(nw.value_parsed))])}),_vm._v(\" \"),_vm._m(7),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefNetWorth),function(nw,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(nw.value_parsed)),(index+1 !== _vm.notPrefNetWorth.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefNetWorth.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-bookmark text-info\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-info\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-calendar-alt text-teal\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-teal\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"","<!--\n - DataConverter.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\nexport default {\n name: \"DataConverter\",\n data() {\n return {\n dataSet: null,\n newDataSet: null,\n locale: localStorage.local,\n }\n },\n methods: {\n convertChart(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n }\n this.getLabels();\n this.getDataSets();\n this.newDataSet.count = this.newDataSet.datasets.length;\n return this.newDataSet;\n },\n\n colorizeBarData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n\n colorizeLineData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n convertLabelsToDate(dataSet) {\n for (let labelKey in dataSet.labels) {\n if (dataSet.labels.hasOwnProperty(labelKey)) {\n const unixTimeZero = Date.parse(dataSet.labels[labelKey]);\n dataSet.labels[labelKey] = new Intl.DateTimeFormat(this.locale).format(unixTimeZero);\n }\n }\n return dataSet;\n },\n getLabels() {\n let firstSet = this.dataSet[0];\n if (typeof firstSet !== 'undefined') {\n for (const entryLabel in firstSet.entries) {\n if (firstSet.entries.hasOwnProperty(entryLabel)) {\n this.newDataSet.labels.push(entryLabel);\n }\n }\n }\n },\n getDataSets() {\n for (const setKey in this.dataSet) {\n if (this.dataSet.hasOwnProperty(setKey)) {\n let newSet = {};\n let oldSet = this.dataSet[setKey];\n if (typeof oldSet !== 'undefined') {\n newSet.label = oldSet.label;\n newSet.type = oldSet.type;\n newSet.currency_symbol = oldSet.currency_symbol;\n newSet.currency_code = oldSet.currency_code;\n newSet.yAxisID = oldSet.yAxisID;\n newSet.data = [];\n for (const entryLabel in oldSet.entries) {\n if (oldSet.entries.hasOwnProperty(entryLabel)) {\n newSet.data.push(oldSet.entries[entryLabel]);\n }\n }\n this.newDataSet.datasets.push(newSet);\n }\n }\n }\n }\n }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./DataConverter.vue?vue&type=script&lang=js&\"\nexport * from \"./DataConverter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","<!--\n - DefaultLineOptions.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n</template>\n\n\n<script>\n\nexport default {\n name: \"DefaultLineOptions\",\n data() {\n return {}\n },\n methods: {\n /**\n * Takes a string phrase and breaks it into separate phrases no bigger than 'maxwidth', breaks are made at complete words.\n * https://stackoverflow.com/questions/21409717/chart-js-and-long-labels\n *\n * @param str\n * @param maxwidth\n * @returns {Array}\n */\n formatLabel(str, maxwidth) {\n var sections = [];\n str = String(str);\n var words = str.split(\" \");\n var temp = \"\";\n\n words.forEach(function (item, index) {\n if (temp.length > 0) {\n var concat = temp + ' ' + item;\n\n if (concat.length > maxwidth) {\n sections.push(temp);\n temp = \"\";\n } else {\n if (index === (words.length - 1)) {\n sections.push(concat);\n return;\n } else {\n temp = concat;\n return;\n }\n }\n }\n\n if (index === (words.length - 1)) {\n sections.push(item);\n return;\n }\n\n if (item.length < maxwidth) {\n temp = item;\n } else {\n sections.push(item);\n }\n\n });\n\n return sections;\n },\n getDefaultOptions() {\n var self = this;\n return {\n legend: {\n display: false,\n },\n animation: {\n duration: 0,\n },\n responsive: true,\n maintainAspectRatio: false,\n elements: {\n line: {\n cubicInterpolationMode: 'monotone'\n }\n },\n scales: {\n xAxes: [\n {\n gridLines: {\n display: false\n },\n ticks: {\n // break ticks when too long\n callback: function (value, index, values) {\n // date format\n let dateObj = new Date(value);\n let options = {year: 'numeric', month: 'long', day: 'numeric'};\n let str = new Intl.DateTimeFormat(localStorage.locale, options).format(dateObj);\n //console.log();\n //return self.formatLabel(value, 20);\n return self.formatLabel(str, 20);\n }\n }\n }\n ],\n yAxes: [{\n display: true,\n ticks: {\n callback: function (tickValue) {\n \"use strict\";\n let currencyCode = this.chart.data.datasets[0].currency_code ? this.chart.data.datasets[0].currency_code : 'EUR';\n return new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tickValue);\n },\n beginAtZero: true\n }\n\n }]\n },\n tooltips: {\n mode: 'index',\n callbacks: {\n label: function (tooltipItem, data) {\n \"use strict\";\n let currencyCode = data.datasets[tooltipItem.datasetIndex].currency_code ? data.datasets[tooltipItem.datasetIndex].currency_code : 'EUR';\n let nrString =\n new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tooltipItem.yLabel)\n\n return data.datasets[tooltipItem.datasetIndex].label + ': ' + nrString;\n }\n }\n }\n };\n }\n\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=5f7e90aa&scoped=true&\"\nimport script from \"./DefaultLineOptions.vue?vue&type=script&lang=js&\"\nexport * from \"./DefaultLineOptions.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f7e90aa\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainAccountChart.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\n\nimport {Line, mixins} from 'vue-chartjs'\n\nconst {reactiveProp} = mixins\n\nexport default {\n extends: Line,\n mixins: [reactiveProp],\n props: ['options'],\n mounted() {\n this.renderChart(this.chartData, this.options)\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountChart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountChart.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./MainAccountChart.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccountChart.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<!--\n - MainAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.yourAccounts') }}</h3>\n </div>\n <div class=\"card-body\">\n <div v-if=\"!loading\">\n <MainAccountChart v-if=\"!loading && !error\" :chart-data=\"dataCollection\" :options=\"chartOptions\"/>\n </div>\n <div v-if=\"loading && !error\" class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n <div v-if=\"error\" class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./accounts/asset\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport DataConverter from \"../charts/DataConverter\";\nimport DefaultLineOptions from \"../charts/DefaultLineOptions\";\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport MainAccountChart from \"./MainAccountChart\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainAccount\",\n components: {MainAccountChart},\n data() {\n return {\n loading: true,\n error: false,\n ready: false,\n dataCollection: {},\n chartOptions: {}\n }\n },\n created() {\n this.ready = true;\n this.chartOptions = DefaultLineOptions.methods.getDefaultOptions();\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseChart();\n }\n },\n start: function () {\n this.initialiseChart();\n },\n end: function () {\n this.initialiseChart();\n },\n },\n methods: {\n initialiseChart: function () {\n this.loading = true;\n this.error = false;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n let url = './api/v1/chart/account/overview?start=' + startStr + '&end=' + endStr;\n // console.log('URL is ' + url);\n axios.get(url)\n .then(response => {\n let chartData = DataConverter.methods.convertChart(response.data);\n chartData = DataConverter.methods.colorizeLineData(chartData);\n this.dataCollection = chartData;\n this.loading = false;\n })\n .catch(error => {\n // console.log('Has error!');\n // console.log(error);\n this.error = true;\n // console.error(error);\n });\n }\n },\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainAccount.vue?vue&type=template&id=53c6b338&\"\nimport script from \"./MainAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccount.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.yourAccounts')))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[(!_vm.loading)?_c('div',[(!_vm.loading && !_vm.error)?_c('MainAccountChart',{attrs:{\"chart-data\":_vm.dataCollection,\"options\":_vm.chartOptions}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./accounts/asset\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_asset_accounts')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainAccountList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- row if loading -->\n <div v-if=\"loading && !error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- row if error -->\n <div v-if=\"error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- row if normal -->\n <div v-if=\"!loading && !error\" class=\"row\">\n <div\n v-for=\"account in accounts\"\n v-bind:class=\"{ 'col-lg-12': 1 === accounts.length, 'col-lg-6': 2 === accounts.length, 'col-lg-4': accounts.length > 2 }\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\"><a :href=\"account.url\">{{ account.title }}</a></h3>\n <div class=\"card-tools\">\n <span :class=\"parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)) }}\n </span>\n </div>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <div>\n <transaction-list-large v-if=\"1===accounts.length\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n <transaction-list-medium v-if=\"2===accounts.length\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n <transaction-list-small v-if=\"accounts.length > 2\" :account_id=\"account.id\" :transactions=\"account.transactions\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainAccountList\",\n data() {\n return {\n loading: true,\n error: false,\n ready: false,\n accounts: [],\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseList();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.initialiseList();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.initialiseList();\n }\n },\n },\n methods: {\n initialiseList: function () {\n this.loading = true;\n this.accounts = [];\n axios.get('./api/v1/preferences/frontpageAccounts')\n .then(response => {\n this.loadAccounts(response);\n }\n );\n },\n loadAccounts(response) {\n let accountIds = response.data.data.attributes.data;\n for (let key in accountIds) {\n if (accountIds.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.accounts.push({\n id: accountIds[key],\n title: '',\n url: '',\n current_balance: '',\n currency_code: 'EUR',\n transactions: []\n });\n this.loadSingleAccount(key, accountIds[key]);\n }\n }\n },\n loadSingleAccount(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId)\n .then(response => {\n this.accounts[key].title = response.data.data.attributes.name;\n this.accounts[key].url = './accounts/show/' + response.data.data.id;\n this.accounts[key].current_balance = response.data.data.attributes.current_balance;\n this.accounts[key].currency_code = response.data.data.attributes.currency_code;\n\n this.loadTransactions(key, accountId);\n }\n );\n },\n loadTransactions(key, accountId) {\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/accounts/' + accountId + '/transactions?page=1&limit=10&start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.accounts[key].transactions = response.data.data;\n this.loading = false;\n this.error = false;\n }\n );\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainAccountList.vue?vue&type=template&id=5d6bb842&scoped=true&\"\nimport script from \"./MainAccountList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainAccountList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d6bb842\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},_vm._l((_vm.accounts),function(account){return _c('div',{class:{ 'col-lg-12': 1 === _vm.accounts.length, 'col-lg-6': 2 === _vm.accounts.length, 'col-lg-4': _vm.accounts.length > 2 }},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_c('a',{attrs:{\"href\":account.url}},[_vm._v(_vm._s(account.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-tools\"},[_c('span',{class:parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)))+\"\\n \")])])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('div',[(1===_vm.accounts.length)?_c('transaction-list-large',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e(),_vm._v(\" \"),(2===_vm.accounts.length)?_c('transaction-list-medium',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e(),_vm._v(\" \"),(_vm.accounts.length > 2)?_c('transaction-list-small',{attrs:{\"account_id\":account.id,\"transactions\":account.transactions}}):_vm._e()],1)])])])}),0):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])])])])}]\n\nexport { render, staticRenderFns }","<!--\n - MainBills.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.bills') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.bills') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.name') }}</th>\n <th scope=\"col\" style=\"width:25%;\">{{ $t('list.next_expected_match') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"bill in this.bills\">\n <td><a :href=\"'./bills/show/' + bill.id\" :title=\"bill.attributes.name\">{{ bill.attributes.name }}</a>\n (~ <span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / -2)\n }}</span>)\n <small v-if=\"bill.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ bill.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <span v-for=\"paidDate in bill.attributes.paid_dates\">\n <span v-html=\"renderPaidDate(paidDate)\"/><br/>\n </span>\n <span v-for=\"payDate in bill.attributes.pay_dates\" v-if=\"0===bill.attributes.paid_dates.length\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)) }}<br/>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./bills\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_bills') }}</a>\n </div>\n </div>\n</template>\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\nexport default {\n name: \"MainBillsList\",\n data() {\n return {\n bills: [],\n locale: 'en-US',\n ready: false,\n loading: true,\n error: false\n }\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.initialiseBills();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.initialiseBills();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.initialiseBills();\n }\n },\n },\n created() {\n this.ready = true;\n this.locale = localStorage.locale ?? 'en-US';\n },\n components: {},\n methods: {\n initialiseBills: function () {\n this.loading = true;\n this.bills = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n\n axios.get('./api/v1/bills?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.loadBills(response.data.data);\n }\n ).catch(error => {\n this.error = true;\n this.loading = false;\n });\n },\n renderPaidDate: function (obj) {\n let dateStr = new Intl.DateTimeFormat(this.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(obj.date));\n let str = this.$t('firefly.bill_paid_on', {date: dateStr});\n return '<a href=\"./transactions/show/' + obj.transaction_group_id + '\" title=\"' + str + '\">' + str + '</a>';\n },\n loadBills: function (data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n\n let bill = data[key];\n let active = bill.attributes.active;\n if (bill.attributes.pay_dates.length > 0 && active) {\n this.bills.push(bill);\n }\n }\n }\n this.error = false;\n this.loading = false;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainBillsList.vue?vue&type=template&id=64c4c037&\"\nimport script from \"./MainBillsList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainBillsList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.bills')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-striped\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.bills')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"35%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.name')))]),_vm._v(\" \"),_c('th',{staticStyle:{\"width\":\"25%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.next_expected_match')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.bills),function(bill){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'./bills/show/' + bill.id,\"title\":bill.attributes.name}},[_vm._v(_vm._s(bill.attributes.name))]),_vm._v(\"\\n (~ \"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / -2)))]),_vm._v(\")\\n \"),(bill.attributes.object_group_title)?_c('small',{staticClass:\"text-muted\"},[_c('br'),_vm._v(\"\\n \"+_vm._s(bill.attributes.object_group_title)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('td',[_vm._l((bill.attributes.paid_dates),function(paidDate){return _c('span',[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.renderPaidDate(paidDate))}}),_c('br')])}),_vm._v(\" \"),_vm._l((bill.attributes.pay_dates),function(payDate){return (0===bill.attributes.paid_dates.length)?_c('span',[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)))),_c('br')]):_vm._e()})],2)])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./bills\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_bills')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budgetLimit.budget_id\">{{ budgetLimit.budget_name }}</a>\n </td>\n\n <td style=\"vertical-align: middle\">\n <div class=\"progress progress active\">\n <div :aria-valuenow=\"budgetLimit.pctGreen\" :style=\"'width: '+ budgetLimit.pctGreen + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctGreen > 35\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n <!-- -->\n </span>\n\n\n </div>\n\n <div :aria-valuenow=\"budgetLimit.pctOrange\" :style=\"'width: '+ budgetLimit.pctOrange + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-warning progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctRed <= 50 && budgetLimit.pctOrange > 35\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n </div>\n\n <div :aria-valuenow=\"budgetLimit.pctRed\" :style=\"'width: '+ budgetLimit.pctRed + '%;'\"\n aria-valuemax=\"100\" aria-valuemin=\"0\" class=\"progress-bar bg-danger progress-bar-striped\" role=\"progressbar\">\n <span v-if=\"budgetLimit.pctOrange <= 50 && budgetLimit.pctRed > 35\" class=\"text-muted\">\n {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n </div>\n\n <!-- amount if bar is very small -->\n <span v-if=\"budgetLimit.pctGreen <= 35 && 0 === budgetLimit.pctOrange && 0 === budgetLimit.pctRed && 0 !== budgetLimit.pctGreen\" style=\"line-height: 16px;\">\n &nbsp; {{ $t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent), total: Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount)}) }}\n </span>\n\n </div>\n <small class=\"d-none d-lg-block\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.start) }}\n &rarr;\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.end) }}\n </small>\n </td>\n\n <td class=\"align-middle d-none d-lg-table-cell\" style=\"width:10%;\">\n <span v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) > 0\" class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n <span v-if=\"0.0 === parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent)\" class=\"text-muted\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(0) }}\n </span>\n <span v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) < 0\" class=\"text-danger\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n </td>\n </tr>\n\n</template>\n\n<script>\nexport default {\n name: \"BudgetLimitRow\",\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budgetLimit: {\n type: Object,\n default: function () {\n return {};\n }\n },\n budget: {\n type: Object,\n default: function () {\n return {};\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetLimitRow.vue?vue&type=template&id=7988ecb6&scoped=true&\"\nimport script from \"./BudgetLimitRow.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetLimitRow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7988ecb6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budgetLimit.budget_id}},[_vm._v(_vm._s(_vm.budgetLimit.budget_name))])]),_vm._v(\" \"),_c('td',{staticStyle:{\"vertical-align\":\"middle\"}},[_c('div',{staticClass:\"progress progress active\"},[_c('div',{staticClass:\"progress-bar bg-success progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctGreen + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctGreen,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctGreen > 35)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar bg-warning progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctOrange + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctOrange,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctRed <= 50 && _vm.budgetLimit.pctOrange > 35)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar bg-danger progress-bar-striped\",style:('width: '+ _vm.budgetLimit.pctRed + '%;'),attrs:{\"aria-valuenow\":_vm.budgetLimit.pctRed,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(_vm.budgetLimit.pctOrange <= 50 && _vm.budgetLimit.pctRed > 35)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(_vm.budgetLimit.pctGreen <= 35 && 0 === _vm.budgetLimit.pctOrange && 0 === _vm.budgetLimit.pctRed && 0 !== _vm.budgetLimit.pctGreen)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\"\\n   \"+_vm._s(_vm.$t('firefly.spent_x_of_y', {amount: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent), total: Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount)}))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('small',{staticClass:\"d-none d-lg-block\"},[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.start))+\"\\n →\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.end))+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle d-none d-lg-table-cell\",staticStyle:{\"width\":\"10%\"}},[(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) > 0)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(0.0 === parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent))?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(0))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) < 0)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budget.id\">{{ budget.name }}</a>\n </td>\n <td class=\"align-middle text-right\">\n <span class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budget.currency_code}).format(parseFloat(budget.spent)) }}\n </span>\n </td>\n </tr>\n</template>\n\n<script>\nexport default {\n name: \"BudgetRow\",\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budget: {\n type: Object,\n default: {}\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","<!--\n - BudgetListGroup.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ title }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <BudgetLimitRow v-for=\"(budgetLimit, key) in budgetLimits\" v-bind:key=\"key\" :budgetLimit=\"budgetLimit\"/>\n <BudgetRow v-for=\"(budget, key) in budgets\" v-bind:key=\"key\" :budget=\"budget\"/>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./budgets\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_budgets') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetLimitRow from \"./BudgetLimitRow\";\nimport BudgetRow from \"./BudgetRow\";\n\nexport default {\n name: \"BudgetListGroup\",\n components: {BudgetLimitRow, BudgetRow},\n props: {\n title: String,\n budgetLimits: Array,\n budgets: Array,\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetRow.vue?vue&type=template&id=2fc8f640&scoped=true&\"\nimport script from \"./BudgetRow.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetRow.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2fc8f640\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budget.id}},[_vm._v(_vm._s(_vm.budget.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle text-right\"},[_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budget.currency_code}).format(parseFloat(_vm.budget.spent)))+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./BudgetListGroup.vue?vue&type=template&id=658dd996&scoped=true&\"\nimport script from \"./BudgetListGroup.vue?vue&type=script&lang=js&\"\nexport * from \"./BudgetListGroup.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"658dd996\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',[_vm._l((_vm.budgetLimits),function(budgetLimit,key){return _c('BudgetLimitRow',{key:key,attrs:{\"budgetLimit\":budgetLimit}})}),_vm._v(\" \"),_vm._l((_vm.budgets),function(budget,key){return _c('BudgetRow',{key:key,attrs:{\"budget\":budget}})})],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./budgets\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_budgets')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainBudgetList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- daily budgets (will be the exception, I expect) -->\n <div v-if=\"!loading\" class=\"row\">\n <div v-if=\"budgetLimits.daily.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.daily :title=\"$t('firefly.daily_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.weekly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.weekly :title=\"$t('firefly.weekly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.monthly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.monthly :title=\"$t('firefly.monthly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.quarterly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.quarterly :title=\"$t('firefly.quarterly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.half_year.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.half_year :title=\"$t('firefly.half_year_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.yearly.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.yearly :title=\"$t('firefly.yearly_budgets')\"\n />\n </div>\n <div v-if=\"budgetLimits.other.length > 0 || rawBudgets.length > 0\" class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n <BudgetListGroup :budgetLimits=budgetLimits.other :budgets=\"rawBudgets\" :title=\"$t('firefly.other_budgets')\"\n />\n </div>\n </div>\n <div v-if=\"loading && !error\" class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetListGroup from \"./BudgetListGroup\";\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainBudgetList\",\n components: {BudgetListGroup},\n data() {\n return {\n budgetList: ['daily', 'weekly', 'monthly', 'quarterly', 'half_year', 'yearly', 'other'],\n budgetLimits: {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n },\n budgets: {}, // used to collect some meta data.\n rawBudgets: [],\n locale: 'en-US',\n ready: false,\n loading: true,\n error: false\n }\n },\n created() {\n this.ready = true;\n this.locale = localStorage.locale ?? 'en-US';\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getBudgets();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getBudgets();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getBudgets();\n }\n },\n },\n computed: {\n ...mapGetters(['start', 'end']),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n methods:\n {\n getBudgets: function () {\n this.budgets = {};\n this.rawBudgets = [];\n this.budgetLimits = {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n };\n this.loading = true;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/budgets?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n if (false === current.attributes.active) {\n // skip inactive budgets\n continue;\n }\n for (let ii in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let spentData = current.attributes.spent[ii];\n this.rawBudgets.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name,\n currency_id: parseInt(spentData.currency_id),\n currency_code: spentData.currency_code,\n spent: spentData.sum\n }\n );\n console.log('Added budget ' + current.attributes.name + ' (' + spentData.currency_code + ')');\n }\n }\n }\n }\n this.getBudgetLimits();\n },\n getBudgetLimits() {\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/budget-limits?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseBudgetLimits(response.data);\n this.loading = false;\n }\n );\n },\n parseBudgetLimits(data) {\n // collect budget meta data.\n for (let i in data.included) {\n if (data.included.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.included[i];\n let currentId = parseInt(current.id);\n this.budgets[currentId] =\n {\n id: currentId,\n name: current.attributes.name,\n };\n console.log('Collected meta data: budget #' + currentId + ' is named ' + current.attributes.name);\n }\n }\n\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let currentId = parseInt(current.id);\n let budgetId = parseInt(current.attributes.budget_id);\n let currencyId = parseInt(current.attributes.currency_id);\n let spentFloat = parseFloat(current.attributes.spent);\n let amount = parseFloat(current.attributes.amount);\n let period = current.attributes.period ?? 'other';\n let pctGreen = 0;\n let pctOrange = 0;\n let pctRed = 0;\n console.log('Collected \"' + period + '\" budget limit #' + currentId + ' (part of budget #' + budgetId + ')');\n console.log('Spent ' + spentFloat + ' of ' + amount);\n\n // remove budget info from rawBudgets if it's there:\n this.filterBudgets(budgetId, currencyId);\n\n // spent within budget:\n if (0.0 !== spentFloat && spentFloat * -1 < amount) {\n pctGreen = (spentFloat * -1) / (amount * 100);\n }\n\n // spent over budget\n if (0.0 !== spentFloat && (spentFloat * -1) > amount) {\n pctOrange = (amount / (spentFloat * -1)) * 100;\n pctRed = 100 - pctOrange;\n }\n let obj = {\n id: currentId,\n amount: current.attributes.amount,\n budget_id: budgetId,\n budget_name: this.budgets[current.attributes.budget_id].name,\n currency_id: currencyId,\n currency_code: current.attributes.currency_code,\n period: current.attributes.period,\n start: new Date(current.attributes.start),\n end: new Date(current.attributes.end),\n spent: current.attributes.spent,\n pctGreen: pctGreen,\n pctOrange: pctOrange,\n pctRed: pctRed,\n };\n\n this.budgetLimits[period].push(obj);\n }\n }\n },\n\n filterBudgets(budgetId, currencyId) {\n for (let i in this.rawBudgets) {\n if (this.rawBudgets.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (this.rawBudgets[i].currency_id === currencyId && this.rawBudgets[i].id === budgetId) {\n console.log('Budget ' + this.rawBudgets[i].name + ' with currency ' + this.rawBudgets[i].currency_code + ' will be removed in favor of a budget limit.');\n this.rawBudgets.splice(parseInt(i), 1);\n }\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainBudgetList.vue?vue&type=template&id=5d7e4c93&scoped=true&\"\nimport script from \"./MainBudgetList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainBudgetList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d7e4c93\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.loading)?_c('div',{staticClass:\"row\"},[(_vm.budgetLimits.daily.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.daily,\"title\":_vm.$t('firefly.daily_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.weekly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.weekly,\"title\":_vm.$t('firefly.weekly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.monthly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.monthly,\"title\":_vm.$t('firefly.monthly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.quarterly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.quarterly,\"title\":_vm.$t('firefly.quarterly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.half_year.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.half_year,\"title\":_vm.$t('firefly.half_year_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.yearly.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.yearly,\"title\":_vm.$t('firefly.yearly_budgets')}})],1):_vm._e(),_vm._v(\" \"),(_vm.budgetLimits.other.length > 0 || _vm.rawBudgets.length > 0)?_c('div',{staticClass:\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\"},[_c('BudgetListGroup',{attrs:{\"budgetLimits\":_vm.budgetLimits.other,\"budgets\":_vm.rawBudgets,\"title\":_vm.$t('firefly.other_budgets')}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"row\"},[_vm._m(0)]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])])])])}]\n\nexport { render, staticRenderFns }","<!--\n - MainCreditList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.revenue_accounts') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in income\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div v-if=\"entry.pct > 0\" class=\"progress\">\n <div :aria-valuenow=\"entry.pct\" :style=\"{ width: entry.pct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-success\"\n role=\"progressbar\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./transactions/deposit\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_deposits') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\n// TODO same as credit list but reversed\n\nexport default {\n name: \"MainCreditList\",\n data() {\n return {\n locale: 'en-US',\n income: [],\n max: 0,\n loading: true,\n error: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getIncome();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getIncome();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getIncome();\n }\n },\n },\n methods: {\n getIncome() {\n this.loading = true;\n this.income = [];\n this.error = false;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/insight/income/revenue?start=' + startStr + '&end=' + endStr)\n .then(response => {\n // do something with response.\n this.parseIncome(response.data);\n this.loading = false;\n }).catch(error => {\n this.error = true\n });\n },\n parseIncome(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey)) {\n mainKey = parseInt(mainKey);\n // contains currency info and entries.\n let current = data[mainKey];\n current.pct = 0;\n this.max = current.difference_float > this.max ? current.difference_float : this.max;\n this.income.push(current);\n }\n }\n if (0 === this.max) {\n this.max = 1;\n }\n // now sort + pct:\n for (let i in this.income) {\n if (this.income.hasOwnProperty(i)) {\n let current = this.income[i];\n current.pct = (current.difference_float / this.max) * 100;\n this.income[i] = current;\n }\n }\n this.income.sort((a,b) => (a.pct > b.pct) ? -1 : ((b.pct > a.pct) ? 1 : 0));\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainCreditList.vue?vue&type=template&id=2b1b601e&\"\nimport script from \"./MainCreditList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainCreditList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.revenue_accounts')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.income),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: entry.pct + '%'}),attrs:{\"aria-valuenow\":entry.pct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(entry.pct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(entry.pct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./transactions/deposit\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_deposits')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","<!--\n - MainDebitList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.expense_accounts') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in expenses\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div v-if=\"entry.pct > 0\" class=\"progress\">\n <div :aria-valuenow=\"entry.pct\" :style=\"{ width: entry.pct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-danger\"\n role=\"progressbar\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./transactions/withdrawal\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_withdrawals') }}</a>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\n\nexport default {\n name: \"MainDebitList\",\n data() {\n return {\n locale: 'en-US',\n expenses: [],\n min: 0,\n loading: true,\n error: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n computed: {\n ...mapGetters([\n 'start',\n 'end'\n ]),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getExpenses();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getExpenses();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getExpenses();\n }\n },\n },\n methods: {\n getExpenses() {\n this.loading = true;\n this.error = false;\n this.expenses = [];\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/insight/expense/expense?start=' + startStr + '&end=' + endStr)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n this.loading = false\n }).catch(error => {\n this.error = true\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n let current = data[mainKey];\n current.pct = 0;\n\n this.min = current.difference_float < this.min ? current.difference_float : this.min;\n this.expenses.push(current);\n }\n }\n\n if (0 === this.min) {\n this.min = -1;\n }\n // now sort + pct:\n for (let i in this.expenses) {\n if (this.expenses.hasOwnProperty(i)) {\n let current = this.expenses[i];\n current.pct = (current.difference_float*-1 / this.min*-1) * 100;\n this.expenses[i] = current;\n }\n }\n this.expenses.sort((a,b) => (a.pct > b.pct) ? -1 : ((b.pct > a.pct) ? 1 : 0));\n\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainDebitList.vue?vue&type=template&id=a1a8ea6c&\"\nimport script from \"./MainDebitList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainDebitList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.expense_accounts')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.expenses),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: entry.pct + '%'}),attrs:{\"aria-valuenow\":entry.pct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(entry.pct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(entry.pct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float))+\"\\n \")]):_vm._e()]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./transactions/withdrawal\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_withdrawals')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","<!--\n - MainPiggyList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.piggy_banks') }}</h3>\n </div>\n\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.piggy_banks') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.piggy_bank') }}</th>\n <th scope=\"col\" style=\"width:40%;\">{{ $t('list.percentage') }} <small>/ {{ $t('list.amount') }}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"piggy in this.piggy_banks\">\n <td>\n <a :href=\"'./piggy-banks/show/' + piggy.id\" :title=\"piggy.attributes.name\">{{ piggy.attributes.name }}</a>\n <small v-if=\"piggy.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ piggy.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <div class=\"progress-group\">\n <div class=\"progress progress-sm\">\n <div v-if=\"piggy.attributes.pct < 100\" :style=\"{'width': piggy.attributes.pct + '%'}\" class=\"progress-bar progress-bar-striped primary\"></div>\n <div v-if=\"100 === piggy.attributes.pct\" :style=\"{'width': piggy.attributes.pct + '%'}\"\n class=\"progress-bar progress-bar-striped bg-success\"></div>\n </div>\n </div>\n <span class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount)\n }}\n </span>\n of\n <span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)\n }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a class=\"btn btn-default button-sm\" href=\"./piggy-banks\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_piggies') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainPiggyList\",\n data() {\n return {\n piggy_banks: [],\n loading: true,\n error: false,\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n axios.get('./api/v1/piggy_banks')\n .then(response => {\n this.loadPiggyBanks(response.data.data);\n this.loading = false;\n }\n ).catch(error => {\n this.error = true\n });\n },\n methods: {\n loadPiggyBanks(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let piggy = data[key];\n if (0.0 !== parseFloat(piggy.attributes.left_to_save)) {\n piggy.attributes.pct = (parseFloat(piggy.attributes.current_amount) / parseFloat(piggy.attributes.target_amount)) * 100;\n this.piggy_banks.push(piggy);\n }\n }\n }\n this.piggy_banks.sort(function (a, b) {\n return b.attributes.pct - a.attributes.pct;\n });\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainPiggyList.vue?vue&type=template&id=c17c9a5a&scoped=true&\"\nimport script from \"./MainPiggyList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainPiggyList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c17c9a5a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.piggy_banks')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-striped\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.piggy_banks')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"35%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.piggy_bank')))]),_vm._v(\" \"),_c('th',{staticStyle:{\"width\":\"40%\"},attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('list.percentage'))+\" \"),_c('small',[_vm._v(\"/ \"+_vm._s(_vm.$t('list.amount')))])])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.piggy_banks),function(piggy){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'./piggy-banks/show/' + piggy.id,\"title\":piggy.attributes.name}},[_vm._v(_vm._s(piggy.attributes.name))]),_vm._v(\" \"),(piggy.attributes.object_group_title)?_c('small',{staticClass:\"text-muted\"},[_c('br'),_vm._v(\"\\n \"+_vm._s(piggy.attributes.object_group_title)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('td',[_c('div',{staticClass:\"progress-group\"},[_c('div',{staticClass:\"progress progress-sm\"},[(piggy.attributes.pct < 100)?_c('div',{staticClass:\"progress-bar progress-bar-striped primary\",style:({'width': piggy.attributes.pct + '%'})}):_vm._e(),_vm._v(\" \"),(100 === piggy.attributes.pct)?_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({'width': piggy.attributes.pct + '%'})}):_vm._e()])]),_vm._v(\" \"),_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount))+\"\\n \")]),_vm._v(\"\\n of\\n \"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)))])])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./piggy-banks\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_piggies')))])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListLarge.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n <th scope=\"col\">{{ $t('firefly.category') }}</th>\n <th scope=\"col\">{{ $t('firefly.budget') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"'withdrawal' === tr.type\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'deposit' === tr.type\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <br/>\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"0!==tr.category_id\" :href=\"'categories/show/' + tr.category_id\">{{ tr.category_name }}</a><br/>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"0!==tr.budget_id\" :href=\"'budgets/show/' + tr.budget_id\">{{ tr.budget_name }}</a><br/>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListLarge\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListLarge.vue?vue&type=template&id=6e420753&scoped=true&\"\nimport script from \"./TransactionListLarge.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListLarge.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6e420753\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.opposing_account')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.category')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.budget')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":transaction.date}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),_c('br')])}),0),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.category_id)?_c('a',{attrs:{\"href\":'categories/show/' + tr.category_id}},[_vm._v(_vm._s(tr.category_name))]):_vm._e(),_c('br')])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.budget_id)?_c('a',{attrs:{\"href\":'budgets/show/' + tr.budget_id}},[_vm._v(_vm._s(tr.budget_name))]):_vm._e(),_c('br')])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListMedium.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a v-if=\"'withdrawal' === tr.type\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'deposit' === tr.type\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" :href=\"'accounts/show/' + tr.destination_id\">{{ tr.destination_name }}</a>\n <a v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" :href=\"'accounts/show/' + tr.source_id\">{{ tr.source_name }}</a>\n <br/>\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListMedium\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListMedium.vue?vue&type=template&id=0d4f7042&scoped=true&\"\nimport script from \"./TransactionListMedium.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListMedium.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0d4f7042\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.opposing_account')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":transaction.date}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.destination_id}},[_vm._v(_vm._s(tr.destination_name))]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('a',{attrs:{\"href\":'accounts/show/' + tr.source_id}},[_vm._v(_vm._s(tr.source_name))]):_vm._e(),_vm._v(\" \"),_c('br')])}),0),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListSmall.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th class=\"text-left\" scope=\"col\">{{ $t('firefly.description') }}</th>\n <th class=\"text-right\" scope=\"col\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \"\n :title=\"new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.source_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && parseInt(tr.destination_id) === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListSmall\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n methods: {},\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListSmall.vue?vue&type=template&id=4cd7a656&scoped=true&\"\nimport script from \"./TransactionListSmall.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionListSmall.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4cd7a656\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{staticClass:\"table table-striped table-sm\"},[_c('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.transaction_table_description')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.description')))]),_vm._v(\" \"),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.amount')))])])]),_vm._v(\" \"),_c('tbody',_vm._l((this.transactions),function(transaction){return _c('tr',[_c('td',[_c('a',{attrs:{\"href\":'transactions/show/' + transaction.id,\"title\":new Intl.DateTimeFormat(_vm.locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))}},[(transaction.attributes.transactions.length > 1)?_c('span',[_vm._v(_vm._s(transaction.attributes.group_title))]):_vm._e(),_vm._v(\" \"),(1===transaction.attributes.transactions.length)?_c('span',[_vm._v(_vm._s(transaction.attributes.transactions[0].description))]):_vm._e()])]),_vm._v(\" \"),_c('td',{staticStyle:{\"text-align\":\"right\"}},_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[('withdrawal' === tr.type)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('deposit' === tr.type)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.source_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && parseInt(tr.destination_id) === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - MainCategoryList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.categories') }}</h3>\n </div>\n <!-- body if loading -->\n <div v-if=\"loading && !error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-spinner fa-spin\"></i>\n </div>\n </div>\n <!-- body if error -->\n <div v-if=\"error\" class=\"card-body\">\n <div class=\"text-center\">\n <i class=\"fas fa-exclamation-triangle text-danger\"></i>\n </div>\n </div>\n <!-- body if normal -->\n <div v-if=\"!loading && !error\" class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"category in sortedList\">\n <td style=\"width:20%;\">\n <a :href=\"'./categories/show/' + category.id\">{{ category.name }}</a>\n </td>\n <td class=\"align-middle\">\n <!-- SPENT -->\n <div v-if=\"category.spentPct > 0\" class=\"progress\">\n <div :aria-valuenow=\"category.spentPct\" :style=\"{ width: category.spentPct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-danger\"\n role=\"progressbar\">\n <span v-if=\"category.spentPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n <span v-if=\"category.spentPct <= 20\" class=\"progress-label\" style=\"line-height: 16px;\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n\n </div>\n\n <!-- EARNED -->\n <div v-if=\"category.earnedPct > 0\" class=\"progress justify-content-end\" title=\"hello2\">\n <span v-if=\"category.earnedPct <= 20\" style=\"line-height: 16px;\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n &nbsp;</span>\n <div :aria-valuenow=\"category.earnedPct\" :style=\"{ width: category.earnedPct + '%'}\" aria-valuemax=\"100\"\n aria-valuemin=\"0\" class=\"progress-bar progress-bar-striped bg-success\"\n role=\"progressbar\" title=\"hello\">\n <span v-if=\"category.earnedPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n </span>\n </div>\n </div>\n\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('dashboard/index')\n\nexport default {\n name: \"MainCategoryList\",\n\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.ready = true;\n },\n data() {\n return {\n locale: 'en-US',\n categories: [],\n sortedList: [],\n spent: 0,\n earned: 0,\n loading: true,\n error: false\n }\n },\n computed: {\n ...mapGetters(['start', 'end']),\n 'datesReady': function () {\n return null !== this.start && null !== this.end && this.ready;\n }\n },\n watch: {\n datesReady: function (value) {\n if (true === value) {\n this.getCategories();\n }\n },\n start: function () {\n if (false === this.loading) {\n this.getCategories();\n }\n },\n end: function () {\n if (false === this.loading) {\n this.getCategories();\n }\n },\n },\n methods:\n {\n getCategories() {\n this.categories = [];\n this.sortedList = [];\n this.spent = 0;\n this.earned = 0;\n this.loading = true;\n let startStr = this.start.toISOString().split('T')[0];\n let endStr = this.end.toISOString().split('T')[0];\n axios.get('./api/v1/categories?start=' + startStr + '&end=' + endStr)\n .then(response => {\n this.parseCategories(response.data);\n this.loading = false;\n }\n ).catch(error => {\n this.error = true;\n });\n },\n parseCategories(data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let entryKey = null;\n let categoryId = parseInt(current.id);\n\n // loop spent info:\n for (let ii in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let spentData = current.attributes.spent[ii];\n entryKey = spentData.currency_id + '-' + current.id;\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: spentData.currency_code,\n currency_symbol: spentData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].spent = parseFloat(spentData.sum);\n this.spent = parseFloat(spentData.sum) < this.spent ? parseFloat(spentData.sum) : this.spent;\n }\n }\n\n // loop earned info\n for (let ii in current.attributes.earned) {\n if (current.attributes.earned.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let earnedData = current.attributes.earned[ii];\n entryKey = earnedData.currency_id + '-' + current.id;\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: earnedData.currency_code,\n currency_symbol: earnedData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].earned = parseFloat(earnedData.sum);\n this.earned = parseFloat(earnedData.sum) > this.earned ? parseFloat(earnedData.sum) : this.earned;\n }\n }\n }\n }\n this.sortCategories();\n },\n sortCategories() {\n // no longer care about keys:\n let array = [];\n for (let i in this.categories) {\n if (this.categories.hasOwnProperty(i)) {\n array.push(this.categories[i]);\n }\n }\n array.sort(function (one, two) {\n return (one.spent + one.earned) - (two.spent + two.earned);\n });\n for (let i in array) {\n if (array.hasOwnProperty(i)) {\n let current = array[i];\n current.spentPct = (current.spent / this.spent) * 100;\n current.earnedPct = (current.earned / this.earned) * 100;\n this.sortedList.push(current);\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MainCategoryList.vue?vue&type=template&id=098366f9&scoped=true&\"\nimport script from \"./MainCategoryList.vue?vue&type=script&lang=js&\"\nexport * from \"./MainCategoryList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"098366f9\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t('firefly.categories')))])]),_vm._v(\" \"),(_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('div',{staticClass:\"card-body\"},[_vm._m(1)]):_vm._e(),_vm._v(\" \"),(!_vm.loading && !_vm.error)?_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.sortedList),function(category){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./categories/show/' + category.id}},[_vm._v(_vm._s(category.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(category.spentPct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: category.spentPct + '%'}),attrs:{\"aria-valuenow\":category.spentPct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\"}},[(category.spentPct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.spent))+\"\\n \")]):_vm._e()]),_vm._v(\" \"),(category.spentPct <= 20)?_c('span',{staticClass:\"progress-label\",staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\" \\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.spent))+\"\\n \")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(category.earnedPct > 0)?_c('div',{staticClass:\"progress justify-content-end\",attrs:{\"title\":\"hello2\"}},[(category.earnedPct <= 20)?_c('span',{staticStyle:{\"line-height\":\"16px\"}},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.earned))+\"\\n  \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: category.earnedPct + '%'}),attrs:{\"aria-valuenow\":category.earnedPct,\"aria-valuemax\":\"100\",\"aria-valuemin\":\"0\",\"role\":\"progressbar\",\"title\":\"hello\"}},[(category.earnedPct > 20)?_c('span',[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: category.currency_code}).format(category.earned))+\"\\n \")]):_vm._e()])]):_vm._e()])])}),0)])]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-exclamation-triangle text-danger\"})])}]\n\nexport { render, staticRenderFns }","/*\n * dashboard.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport Dashboard from \"../components/dashboard/Dashboard\";\nimport TopBoxes from \"../components/dashboard/TopBoxes\";\nimport MainAccount from \"../components/dashboard/MainAccount\";\nimport MainAccountList from \"../components/dashboard/MainAccountList\";\nimport MainBillsList from \"../components/dashboard/MainBillsList\";\nimport MainBudgetList from \"../components/dashboard/MainBudgetList\";\nimport MainCreditList from \"../components/dashboard/MainCreditList\";\nimport MainDebitList from \"../components/dashboard/MainDebitList\";\nimport MainPiggyList from \"../components/dashboard/MainPiggyList\";\nimport TransactionListLarge from \"../components/transactions/TransactionListLarge\";\nimport TransactionListMedium from \"../components/transactions/TransactionListMedium\";\nimport TransactionListSmall from \"../components/transactions/TransactionListSmall\";\nimport Calendar from \"../components/dashboard/Calendar\";\nimport MainCategoryList from \"../components/dashboard/MainCategoryList\";\nimport Vue from \"vue\";\nimport Vuex from 'vuex'\nimport store from '../components/store';\n\n/**\n * First we will load Axios via bootstrap.js\n * jquery and bootstrap-sass preloaded in app.js\n * vue, uiv and vuei18n are in app_vue.js\n */\n\nrequire('../bootstrap');\nrequire('chart.js');\n\nVue.component('transaction-list-large', TransactionListLarge);\nVue.component('transaction-list-medium', TransactionListMedium);\nVue.component('transaction-list-small', TransactionListSmall);\n\n// components as an example\n\nVue.component('dashboard', Dashboard);\nVue.component('top-boxes', TopBoxes);\nVue.component('main-account', MainAccount);\nVue.component('main-account-list', MainAccountList);\nVue.component('main-bills-list', MainBillsList);\nVue.component('main-budget-list', MainBudgetList);\nVue.component('main-category-list', MainCategoryList);\nVue.component('main-debit-list', MainDebitList);\nVue.component('main-credit-list', MainCreditList);\nVue.component('main-piggy-list', MainPiggyList);\n\nVue.use(Vuex);\n\nlet i18n = require('../i18n');\nlet props = {};\n\nnew Vue({\n i18n,\n store,\n el: \"#dashboard\",\n render: (createElement) => {\n return createElement(Dashboard, {props: props});\n },\n beforeCreate() {\n // TODO migrate to \"root\" store.\n this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n this.$store.dispatch('root/initialiseStore');\n this.$store.dispatch('dashboard/index/initialiseStore');\n },\n });\nnew Vue({\n i18n,\n store,\n el: \"#calendar\",\n render: (createElement) => {\n return createElement(Calendar, {props: props});\n },\n // TODO init store as well?\n });"],"sourceRoot":""}
\ No newline at end of file