diff --git a/frontend/src/components/dashboard/TopBoxes.vue b/frontend/src/components/dashboard/TopBoxes.vue index 0a64e0fcde..bdf6c31efd 100644 --- a/frontend/src/components/dashboard/TopBoxes.vue +++ b/frontend/src/components/dashboard/TopBoxes.vue @@ -107,7 +107,7 @@ {{ nw.value_parsed }} - +  
diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 5ce75347e5..4ca5e5db91 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -3228,9 +3228,9 @@ ekko-lightbox@^5.3.0: integrity sha512-mbacwySuVD3Ad6F2hTkjSTvJt59bcVv2l/TmBerp4xZnLak8tPtA4AScUn4DL42c1ksTiAO6sGhJZ52P/1Qgew== electron-to-chromium@^1.3.719: - version "1.3.719" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.719.tgz#87166fee347a46a2557f19aadb40a1d68241e61c" - integrity sha512-heM78GKSqrIzO9Oz0/y22nTBN7bqSP1Pla2SyU9DiSnQD+Ea9SyyN5RWWlgqsqeBLNDkSlE9J9EHFmdMPzxB/g== + version "1.3.720" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.720.tgz#f5d66df8754d993006b7b2ded15ff7738c58bd94" + integrity sha512-B6zLTxxaOFP4WZm6DrvgRk8kLFYWNhQ5TrHMC0l5WtkMXhU5UbnvWoTfeEwqOruUSlNMhVLfYak7REX6oC5Yfw== elliptic@^6.5.3: version "6.5.4" diff --git a/public/v2/js/dashboard.js b/public/v2/js/dashboard.js index cba008735b..cb1e7cdc88 100755 --- a/public/v2/js/dashboard.js +++ b/public/v2/js/dashboard.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[663],{232:(e,t,a)=>{"use strict";a.r(t);var n=a(7760),s=a.n(n),o=a(7152),r=a(4605);window.$=window.jQuery=a(9755),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var i=document.head.querySelector('meta[name="csrf-token"]');i?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=i.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");var c=document.head.querySelector('meta[name="locale"]');localStorage.locale=c?c.content:"en_US",a(6891),a(3734),a(7632),a(5432),window.vuei18n=o.Z,window.uiv=r,s().use(vuei18n),s().use(r),window.Vue=s()},9899:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(7760),s=a.n(n),o=a(629),r=a(4478),i=a(3465);const c={namespaced:!0,state:function(){return{transactionType:"any",groupTitle:"",transactions:[],customDateFields:{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1},defaultTransaction:(0,r.f$)(),defaultErrors:(0,r.kQ)()}},getters:{transactions:function(e){return e.transactions},defaultErrors:function(e){return e.defaultErrors},groupTitle:function(e){return e.groupTitle},transactionType:function(e){return e.transactionType},accountToTransaction:function(e){return e.accountToTransaction},defaultTransaction:function(e){return e.defaultTransaction},sourceAllowedTypes:function(e){return e.sourceAllowedTypes},destinationAllowedTypes:function(e){return e.destinationAllowedTypes},allowedOpposingTypes:function(e){return e.allowedOpposingTypes},customDateFields:function(e){return e.customDateFields}},actions:{},mutations:{addTransaction:function(e){var t=i(e.defaultTransaction);t.errors=i(e.defaultErrors),e.transactions.push(t)},resetErrors:function(e,t){e.transactions[t.index].errors=i(e.defaultErrors)},resetTransactions:function(e){e.transactions=[]},setGroupTitle:function(e,t){e.groupTitle=t.groupTitle},setCustomDateFields:function(e,t){e.customDateFields=t},deleteTransaction:function(e,t){e.transactions.splice(t.index,1),e.transactions.length},setTransactionType:function(e,t){e.transactionType=t},setAllowedOpposingTypes:function(e,t){e.allowedOpposingTypes=t},setAccountToTransaction:function(e,t){e.accountToTransaction=t},updateField:function(e,t){e.transactions[t.index][t.field]=t.value},setTransactionError:function(e,t){e.transactions[t.index].errors[t.field]=t.errors},setDestinationAllowedTypes:function(e,t){e.destinationAllowedTypes=t},setSourceAllowedTypes:function(e,t){e.sourceAllowedTypes=t}}};var l=a(9119),u=a(3894),_=a(584),d=a(7090),p=a(4431),g=a(8358),y=a(4135),h=a(3703);const m={namespaced:!0,state:function(){return{viewRange:"default",start:null,end:null,defaultStart:null,defaultEnd:null}},getters:{start:function(e){return e.start},end:function(e){return e.end},defaultStart:function(e){return e.defaultStart},defaultEnd:function(e){return e.defaultEnd},viewRange:function(e){return e.viewRange}},actions:{initialiseStore:function(e){e.dispatch("restoreViewRange"),axios.get("./api/v1/preferences/viewRange").then((function(t){var a=t.data.data.attributes.data,n=e.getters.viewRange;e.commit("setViewRange",a),a!==n&&e.dispatch("setDatesFromViewRange"),a===n&&e.dispatch("restoreViewRangeDates")})).catch((function(){e.commit("setViewRange","1M"),e.dispatch("setDatesFromViewRange")}))},restoreViewRangeDates:function(e){localStorage.viewRangeStart&&e.commit("setStart",new Date(localStorage.viewRangeStart)),localStorage.viewRangeEnd&&e.commit("setEnd",new Date(localStorage.viewRangeEnd)),localStorage.viewRangeDefaultStart&&e.commit("setDefaultStart",new Date(localStorage.viewRangeDefaultStart)),localStorage.viewRangeDefaultEnd&&e.commit("setDefaultEnd",new Date(localStorage.viewRangeDefaultEnd))},restoreViewRange:function(e){var t=localStorage.getItem("viewRange");null!==t&&e.commit("setViewRange",t)},setDatesFromViewRange:function(e){var t,a,n=e.getters.viewRange,s=new Date;switch(n){case"1D":t=(0,l.Z)(s),a=(0,u.Z)(s);break;case"1W":t=(0,l.Z)((0,_.Z)(s,{weekStartsOn:1})),a=(0,u.Z)((0,d.Z)(s,{weekStartsOn:1}));break;case"1M":t=(0,l.Z)((0,h.Z)(s)),a=(0,u.Z)((0,y.Z)(s));break;case"3M":t=(0,l.Z)((0,p.Z)(s)),a=(0,u.Z)((0,g.Z)(s));break;case"6M":s.getMonth()<=5&&((t=new Date(s)).setMonth(0),t.setDate(1),t=(0,l.Z)(t),(a=new Date(s)).setMonth(5),a.setDate(30),a=(0,u.Z)(t)),s.getMonth()>5&&((t=new Date(s)).setMonth(6),t.setDate(1),t=(0,l.Z)(t),(a=new Date(s)).setMonth(11),a.setDate(31),a=(0,u.Z)(t));break;case"1Y":(t=new Date(s)).setMonth(0),t.setDate(1),t=(0,l.Z)(t),(a=new Date(s)).setMonth(11),a.setDate(31),a=(0,u.Z)(a)}e.commit("setStart",t),e.commit("setEnd",a),e.commit("setDefaultStart",t),e.commit("setDefaultEnd",a)}},mutations:{setStart:function(e,t){e.start=t,window.localStorage.setItem("viewRangeStart",t)},setEnd:function(e,t){e.end=t,window.localStorage.setItem("viewRangeEnd",t)},setDefaultStart:function(e,t){e.defaultStart=t,window.localStorage.setItem("viewRangeDefaultStart",t)},setDefaultEnd:function(e,t){e.defaultEnd=t,window.localStorage.setItem("viewRangeDefaultEnd",t)},setViewRange:function(e,t){e.viewRange=t,window.localStorage.setItem("viewRange",t)}}};var f=function(){return{listPageSize:33,timezone:""}},b={initialiseStore:function(e){localStorage.listPageSize&&(f.listPageSize=localStorage.listPageSize,e.commit("setListPageSize",{length:localStorage.listPageSize})),localStorage.listPageSize||axios.get("./api/v1/preferences/listPageSize").then((function(t){e.commit("setListPageSize",{length:parseInt(t.data.data.attributes.data)})})),localStorage.timezone&&(f.timezone=localStorage.timezone,e.commit("setTimezone",{timezone:localStorage.timezone})),localStorage.timezone||axios.get("./api/v1/configuration/app.timezone").then((function(t){e.commit("setTimezone",{timezone:t.data.data.value})}))}};const v={namespaced:!0,state:f,getters:{listPageSize:function(e){return e.listPageSize},timezone:function(e){return e.timezone}},actions:b,mutations:{setListPageSize:function(e,t){var a=parseInt(t.length);0!==a&&(e.listPageSize=a,localStorage.listPageSize=a)},setTimezone:function(e,t){""!==t.timezone&&(e.timezone=t.timezone,localStorage.timezone=t.timezone)}}};s().use(o.ZP);const w=new o.ZP.Store({namespaced:!0,modules:{root:v,transactions:{namespaced:!0,modules:{create:c,edit:{namespaced:!0,state:function(){return{}},getters:{},actions:{},mutations:{}}}},accounts:{namespaced:!0,modules:{index:{namespaced:!0,state:function(){return{orderMode:!1,activeFilter:1}},getters:{orderMode:function(e){return e.orderMode},activeFilter:function(e){return e.activeFilter}},actions:{},mutations:{setOrderMode:function(e,t){e.orderMode=t},setActiveFilter:function(e,t){e.activeFilter=t}}}}},dashboard:{namespaced:!0,modules:{index:m}}},strict:!1,plugins:[],state:{currencyPreference:{},locale:"en-US",listPageSize:50},mutations:{setCurrencyPreference:function(e,t){e.currencyPreference=t.payload},initialiseStore:function(e){if(localStorage.locale)e.locale=localStorage.locale;else{var t=document.head.querySelector('meta[name="locale"]');t&&(e.locale=t.content,localStorage.locale=t.content)}}},getters:{currencyCode:function(e){return e.currencyPreference.code},currencyPreference:function(e){return e.currencyPreference},currencyId:function(e){return e.currencyPreference.id},locale:function(e){return e.locale}},actions:{updateCurrencyPreference:function(e){localStorage.currencyPreference?e.commit("setCurrencyPreference",{payload:JSON.parse(localStorage.currencyPreference)}):axios.get("./api/v1/currencies/default").then((function(t){var a={id:parseInt(t.data.data.id),name:t.data.data.attributes.name,symbol:t.data.data.attributes.symbol,code:t.data.data.attributes.code,decimal_places:parseInt(t.data.data.attributes.decimal_places)};localStorage.currencyPreference=JSON.stringify(a),e.commit("setCurrencyPreference",{payload:a})})).catch((function(t){console.error(t),e.commit("setCurrencyPreference",{payload:{id:1,name:"Euro",symbol:"€",code:"EUR",decimal_places:2}})}))}}})},157:(e,t,a)=>{e.exports=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{bg:a(7154),cs:a(6407),de:a(4726),en:a(3340),"en-us":a(3340),"en-gb":a(6318),es:a(5394),el:a(3636),fr:a(2551),hu:a(995),it:a(9112),nl:a(4671),nb:a(9085),pl:a(6238),fi:a(7868),"pt-br":a(6586),"pt-pt":a(8664),ro:a(1102),ru:a(753),"zh-tw":a(1715),"zh-cn":a(4556),sk:a(7049),sv:a(7921),vi:a(1497)}})},6905:(e,t,a)=>{"use strict";var n=a(1900);const s=(0,n.Z)({name:"Dashboard"},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("top-boxes"),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-account")],1)]),e._v(" "),a("main-account-list"),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-budget-list")],1)]),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("main-category-list")],1)]),e._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),e._v(" "),a("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("main-credit-list")],1)]),e._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),e._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;var o=a(629);function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t0){var r=s+" "+e;if(!(r.length>t))return o===n.length-1?void a.push(r):void(s=r);a.push(s),s=""}o!==n.length-1&&e.length2}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[a("a",{attrs:{href:t.url}},[e._v(e._s(t.title))])]),e._v(" "),a("div",{staticClass:"card-tools"},[a("span",{class:parseFloat(t.current_balance)<0?"text-danger":"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(parseFloat(t.current_balance)))+"\n ")])])]),e._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("div",[1===e.accounts.length?a("transaction-list-large",{attrs:{account_id:t.id,transactions:t.transactions}}):e._e(),e._v(" "),2===e.accounts.length?a("transaction-list-medium",{attrs:{account_id:t.id,transactions:t.transactions}}):e._e(),e._v(" "),e.accounts.length>2?a("transaction-list-small",{attrs:{account_id:t.id,transactions:t.transactions}}):e._e()],1)])])])})),0)])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col"},[t("div",{staticClass:"card"},[t("div",{staticClass:"card-body"},[t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col"},[t("div",{staticClass:"card"},[t("div",{staticClass:"card-body"},[t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])])])])}],!1,null,"8e5b2eb4",null).exports;function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(e){for(var t=1;t'+a+""},loadBills:function(e){for(var t in e)if(e.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var a=e[t],n=a.attributes.active;a.attributes.pay_dates.length>0&&n&&this.bills.push(a)}this.error=!1,this.loading=!1}}},L=(0,n.Z)(N,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.$t("firefly.bills")))])]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"card-body"},[e._m(0)]):e._e(),e._v(" "),e.error?a("div",{staticClass:"card-body"},[e._m(1)]):e._e(),e._v(" "),e.loading||e.error?e._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.bills")))]),e._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[e._v(e._s(e.$t("list.name")))]),e._v(" "),a("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[e._v(e._s(e.$t("list.next_expected_match")))])])]),e._v(" "),a("tbody",e._l(this.bills,(function(t){return a("tr",[a("td",[a("a",{attrs:{href:"./bills/show/"+t.id,title:t.attributes.name}},[e._v(e._s(t.attributes.name))]),e._v("\n (~ "),a("span",{staticClass:"text-danger"},[e._v(e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.attributes.currency_code}).format((parseFloat(t.attributes.amount_min)+parseFloat(t.attributes.amount_max))/-2)))]),e._v(")\n "),t.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),e._v("\n "+e._s(t.attributes.object_group_title)+"\n ")]):e._e()]),e._v(" "),a("td",[e._l(t.attributes.paid_dates,(function(t){return a("span",[a("span",{domProps:{innerHTML:e._s(e.renderPaidDate(t))}}),a("br")])})),e._v(" "),e._l(t.attributes.pay_dates,(function(n){return 0===t.attributes.paid_dates.length?a("span",[e._v("\n "+e._s(new Intl.DateTimeFormat(e.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(n)))+"\n "),a("br")]):e._e()}))],2)])})),0)])]),e._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"}),e._v(" "+e._s(e.$t("firefly.go_to_bills")))])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,F={name:"BudgetLimitRow",created:function(){var e;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US"},data:function(){return{locale:"en-US"}},props:{budgetLimit:{type:Object,default:function(){return{}}},budget:{type:Object,default:function(){return{}}}}},R=(0,n.Z)(F,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+e.budgetLimit.budget_id}},[e._v(e._s(e.budgetLimit.budget_name))])]),e._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: "+e.budgetLimit.pctGreen+"%;",attrs:{"aria-valuenow":e.budgetLimit.pctGreen,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.budgetLimit.pctGreen>35?a("span",[e._v("\n "+e._s(e.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.spent),total:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.amount)}))+"\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"progress-bar bg-warning progress-bar-striped",style:"width: "+e.budgetLimit.pctOrange+"%;",attrs:{"aria-valuenow":e.budgetLimit.pctOrange,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.budgetLimit.pctRed<=50&&e.budgetLimit.pctOrange>35?a("span",[e._v("\n "+e._s(e.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.spent),total:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.amount)}))+"\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"progress-bar bg-danger progress-bar-striped",style:"width: "+e.budgetLimit.pctRed+"%;",attrs:{"aria-valuenow":e.budgetLimit.pctRed,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[e.budgetLimit.pctOrange<=50&&e.budgetLimit.pctRed>35?a("span",{staticClass:"text-muted"},[e._v("\n "+e._s(e.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.spent),total:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.amount)}))+"\n ")]):e._e()]),e._v(" "),e.budgetLimit.pctGreen<=35&&0===e.budgetLimit.pctOrange&&0===e.budgetLimit.pctRed&&0!==e.budgetLimit.pctGreen?a("span",{staticStyle:{"line-height":"16px"}},[e._v("\n   "+e._s(e.$t("firefly.spent_x_of_y",{amount:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.spent),total:Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(e.budgetLimit.amount)}))+"\n ")]):e._e()]),e._v(" "),a("small",{staticClass:"d-none d-lg-block"},[e._v("\n "+e._s(new Intl.DateTimeFormat(e.locale,{year:"numeric",month:"long",day:"numeric"}).format(e.budgetLimit.start))+"\n →\n "+e._s(new Intl.DateTimeFormat(e.locale,{year:"numeric",month:"long",day:"numeric"}).format(e.budgetLimit.end))+"\n ")])]),e._v(" "),a("td",{staticClass:"align-middle d-none d-lg-table-cell",staticStyle:{width:"10%"}},[parseFloat(e.budgetLimit.amount)+parseFloat(e.budgetLimit.spent)>0?a("span",{staticClass:"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(parseFloat(e.budgetLimit.amount)+parseFloat(e.budgetLimit.spent)))+"\n ")]):e._e(),e._v(" "),0===parseFloat(e.budgetLimit.amount)+parseFloat(e.budgetLimit.spent)?a("span",{staticClass:"text-muted"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(0))+"\n ")]):e._e(),e._v(" "),parseFloat(e.budgetLimit.amount)+parseFloat(e.budgetLimit.spent)<0?a("span",{staticClass:"text-danger"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:e.budgetLimit.currency_code}).format(parseFloat(e.budgetLimit.amount)+parseFloat(e.budgetLimit.spent)))+"\n ")]):e._e()])])}),[],!1,null,"7988ecb6",null).exports,M={name:"BudgetRow",created:function(){var e;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US"},data:function(){return{locale:"en-US"}},props:{budget:{type:Object,default:{}}}},E={name:"BudgetListGroup",components:{BudgetLimitRow:R,BudgetRow:(0,n.Z)(M,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("td",{staticStyle:{width:"25%"}},[a("a",{attrs:{href:"./budgets/show/"+e.budget.id}},[e._v(e._s(e.budget.name))])]),e._v(" "),a("td",{staticClass:"align-middle text-right"},[a("span",{staticClass:"text-danger"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:e.budget.currency_code}).format(parseFloat(e.budget.spent)))+"\n ")])])])}),[],!1,null,"2fc8f640",null).exports},props:{title:String,budgetLimits:Array,budgets:Array}},Z=(0,n.Z)(E,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.title))])]),e._v(" "),a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.title))]),e._v(" "),a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.budget")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.spent")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.left")))])])]),e._v(" "),a("tbody",[e._l(e.budgetLimits,(function(e,t){return a("BudgetLimitRow",{key:t,attrs:{budgetLimit:e}})})),e._v(" "),e._l(e.budgets,(function(e,t){return a("BudgetRow",{key:t,attrs:{budget:e}})}))],2)])]),e._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"}),e._v(" "+e._s(e.$t("firefly.go_to_budgets")))])])])}),[],!1,null,"2b21deef",null).exports;function $(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function W(e){for(var t=1;td&&(h=100-(y=_/d*100));var m={id:i,amount:r.attributes.amount,budget_id:c,budget_name:this.budgets[r.attributes.budget_id].name,currency_id:l,currency_code:r.attributes.currency_code,period:r.attributes.period,start:new Date(r.attributes.start),end:new Date(r.attributes.end),spent:r.attributes.spent,pctGreen:g,pctOrange:y,pctRed:h};this.budgetLimits[p].push(m)}},filterBudgets:function(e,t){for(var a in this.rawBudgets)this.rawBudgets.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&this.rawBudgets[a].currency_id===t&&this.rawBudgets[a].id===e&&this.rawBudgets.splice(parseInt(a),1)}}},K=(0,n.Z)(G,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.loading?e._e():a("div",{staticClass:"row"},[e.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:e.budgetLimits.daily,title:e.$t("firefly.daily_budgets")}})],1):e._e(),e._v(" "),e.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:e.budgetLimits.weekly,title:e.$t("firefly.weekly_budgets")}})],1):e._e(),e._v(" "),e.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:e.budgetLimits.monthly,title:e.$t("firefly.monthly_budgets")}})],1):e._e(),e._v(" "),e.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:e.budgetLimits.quarterly,title:e.$t("firefly.quarterly_budgets")}})],1):e._e(),e._v(" "),e.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:e.budgetLimits.half_year,title:e.$t("firefly.half_year_budgets")}})],1):e._e(),e._v(" "),e.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:e.budgetLimits.yearly,title:e.$t("firefly.yearly_budgets")}})],1):e._e(),e._v(" "),e.budgetLimits.other.length>0||e.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:e.budgetLimits.other,budgets:e.rawBudgets,title:e.$t("firefly.other_budgets")}})],1):e._e()]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"row"},[e._m(0)]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col"},[t("div",{staticClass:"card"},[t("div",{staticClass:"card-body"},[t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])])])])}],!1,null,"20b8cacf",null).exports;function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function Q(e){for(var t=1;tthis.max?a.difference_float:this.max,this.income.push(a)}for(var n in 0===this.max&&(this.max=1),this.income)if(this.income.hasOwnProperty(n)){var s=this.income[n];s.pct=s.difference_float/this.max*100,this.income[n]=s}this.income.sort((function(e,t){return e.pct>t.pct?-1:t.pct>e.pct?1:0}))}}},te=(0,n.Z)(ee,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.$t("firefly.revenue_accounts")))])]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"card-body"},[e._m(0)]):e._e(),e._v(" "),e.error?a("div",{staticClass:"card-body"},[e._m(1)]):e._e(),e._v(" "),e.loading||e.error?e._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.revenue_accounts")))]),e._v(" "),a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.category")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.spent")))])])]),e._v(" "),a("tbody",e._l(e.income,(function(t){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+t.id}},[e._v(e._s(t.name))])]),e._v(" "),a("td",{staticClass:"align-middle"},[t.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:t.pct+"%"},attrs:{"aria-valuenow":t.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.pct>20?a("span",[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.difference_float))+"\n ")]):e._e()]),e._v(" "),t.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[e._v(" \n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.difference_float))+"\n ")]):e._e()]):e._e()])])})),0)])]),e._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"}),e._v(" "+e._s(e.$t("firefly.go_to_deposits")))])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports;function ae(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function ne(e){for(var t=1;tt.pct?-1:t.pct>e.pct?1:0}))}}},ce=(0,n.Z)(ie,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.$t("firefly.expense_accounts")))])]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"card-body"},[e._m(0)]):e._e(),e._v(" "),e.error?a("div",{staticClass:"card-body"},[e._m(1)]):e._e(),e._v(" "),e.loading||e.error?e._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.expense_accounts")))]),e._v(" "),a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.category")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.spent")))])])]),e._v(" "),a("tbody",e._l(e.expenses,(function(t){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./accounts/show/"+t.id}},[e._v(e._s(t.name))])]),e._v(" "),a("td",{staticClass:"align-middle"},[t.pct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:t.pct+"%"},attrs:{"aria-valuenow":t.pct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.pct>20?a("span",[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.difference_float))+"\n ")]):e._e()]),e._v(" "),t.pct<=20?a("span",{staticStyle:{"line-height":"16px"}},[e._v(" \n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.difference_float))+"\n ")]):e._e()]):e._e()])])})),0)])]),e._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"}),e._v(" "+e._s(e.$t("firefly.go_to_withdrawals")))])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,null,null).exports,le={name:"MainPiggyList",data:function(){return{piggy_banks:[],loading:!0,error:!1,locale:"en-US"}},created:function(){var e,t=this;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US",axios.get("./api/v1/piggy_banks").then((function(e){t.loadPiggyBanks(e.data.data),t.loading=!1})).catch((function(e){t.error=!0}))},methods:{loadPiggyBanks:function(e){for(var t in e)if(e.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var a=e[t];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(e,t){return t.attributes.pct-e.attributes.pct}))}}},ue=(0,n.Z)(le,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.$t("firefly.piggy_banks")))])]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"card-body"},[e._m(0)]):e._e(),e._v(" "),e.error?a("div",{staticClass:"card-body"},[e._m(1)]):e._e(),e._v(" "),e.loading||e.error?e._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-striped"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.piggy_banks")))]),e._v(" "),a("thead",[a("tr",[a("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[e._v(e._s(e.$t("list.piggy_bank")))]),e._v(" "),a("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[e._v(e._s(e.$t("list.percentage"))+" "),a("small",[e._v("/ "+e._s(e.$t("list.amount")))])])])]),e._v(" "),a("tbody",e._l(this.piggy_banks,(function(t){return a("tr",[a("td",[a("a",{attrs:{href:"./piggy-banks/show/"+t.id,title:t.attributes.name}},[e._v(e._s(t.attributes.name))]),e._v(" "),t.attributes.object_group_title?a("small",{staticClass:"text-muted"},[a("br"),e._v("\n "+e._s(t.attributes.object_group_title)+"\n ")]):e._e()]),e._v(" "),a("td",[a("div",{staticClass:"progress-group"},[a("div",{staticClass:"progress progress-sm"},[t.attributes.pct<100?a("div",{staticClass:"progress-bar progress-bar-striped primary",style:{width:t.attributes.pct+"%"}}):e._e(),e._v(" "),100===t.attributes.pct?a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:t.attributes.pct+"%"}}):e._e()])]),e._v(" "),a("span",{staticClass:"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.attributes.currency_code}).format(t.attributes.current_amount))+"\n ")]),e._v("\n of\n "),a("span",{staticClass:"text-success"},[e._v(e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.attributes.currency_code}).format(t.attributes.target_amount)))])])])})),0)])]),e._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"}),e._v(" "+e._s(e.$t("firefly.go_to_piggies")))])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"c17c9a5a",null).exports,_e={name:"TransactionListLarge",data:function(){return{locale:"en-US"}},created:function(){var e;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},de=(0,n.Z)(_e,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.transaction_table_description")))]),e._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.description")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.opposing_account")))]),e._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.amount")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.category")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.budget")))])])]),e._v(" "),a("tbody",e._l(this.transactions,(function(t){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+t.id,title:t.date}},[t.attributes.transactions.length>1?a("span",[e._v(e._s(t.attributes.group_title))]):e._e(),e._v(" "),1===t.attributes.transactions.length?a("span",[e._v(e._s(t.attributes.transactions[0].description))]):e._e()])]),e._v(" "),a("td",e._l(t.attributes.transactions,(function(t){return a("span",["withdrawal"===t.type?a("a",{attrs:{href:"accounts/show/"+t.destination_id}},[e._v(e._s(t.destination_name))]):e._e(),e._v(" "),"deposit"===t.type?a("a",{attrs:{href:"accounts/show/"+t.source_id}},[e._v(e._s(t.source_name))]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.source_id)===e.account_id?a("a",{attrs:{href:"accounts/show/"+t.destination_id}},[e._v(e._s(t.destination_name))]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.destination_id)===e.account_id?a("a",{attrs:{href:"accounts/show/"+t.source_id}},[e._v(e._s(t.source_name))]):e._e(),e._v(" "),a("br")])})),0),e._v(" "),a("td",{staticStyle:{"text-align":"right"}},e._l(t.attributes.transactions,(function(t){return a("span",["withdrawal"===t.type?a("span",{staticClass:"text-danger"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"deposit"===t.type?a("span",{staticClass:"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.source_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.destination_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e()])})),0),e._v(" "),a("td",e._l(t.attributes.transactions,(function(t){return a("span",[0!==t.category_id?a("a",{attrs:{href:"categories/show/"+t.category_id}},[e._v(e._s(t.category_name))]):e._e(),a("br")])})),0),e._v(" "),a("td",e._l(t.attributes.transactions,(function(t){return a("span",[0!==t.budget_id?a("a",{attrs:{href:"budgets/show/"+t.budget_id}},[e._v(e._s(t.budget_name))]):e._e(),a("br")])})),0)])})),0)])}),[],!1,null,"6e420753",null).exports,pe={name:"TransactionListMedium",data:function(){return{locale:"en-US"}},created:function(){var e;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US"},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},ge=(0,n.Z)(pe,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.transaction_table_description")))]),e._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.description")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.opposing_account")))]),e._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.amount")))])])]),e._v(" "),a("tbody",e._l(this.transactions,(function(t){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+t.id,title:t.date}},[t.attributes.transactions.length>1?a("span",[e._v(e._s(t.attributes.group_title))]):e._e(),e._v(" "),1===t.attributes.transactions.length?a("span",[e._v(e._s(t.attributes.transactions[0].description))]):e._e()])]),e._v(" "),a("td",e._l(t.attributes.transactions,(function(t){return a("span",["withdrawal"===t.type?a("a",{attrs:{href:"accounts/show/"+t.destination_id}},[e._v(e._s(t.destination_name))]):e._e(),e._v(" "),"deposit"===t.type?a("a",{attrs:{href:"accounts/show/"+t.source_id}},[e._v(e._s(t.source_name))]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.source_id)===e.account_id?a("a",{attrs:{href:"accounts/show/"+t.destination_id}},[e._v(e._s(t.destination_name))]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.destination_id)===e.account_id?a("a",{attrs:{href:"accounts/show/"+t.source_id}},[e._v(e._s(t.source_name))]):e._e(),e._v(" "),a("br")])})),0),e._v(" "),a("td",{staticStyle:{"text-align":"right"}},e._l(t.attributes.transactions,(function(t){return a("span",["withdrawal"===t.type?a("span",{staticClass:"text-danger"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"deposit"===t.type?a("span",{staticClass:"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.source_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.destination_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e()])})),0)])})),0)])}),[],!1,null,"0d4f7042",null).exports,ye={name:"TransactionListSmall",data:function(){return{locale:"en-US"}},created:function(){var e;this.locale=null!==(e=localStorage.locale)&&void 0!==e?e:"en-US"},methods:{},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},he=(0,n.Z)(ye,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table table-striped table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.transaction_table_description")))]),e._v(" "),a("thead",[a("tr",[a("th",{staticClass:"text-left",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.description")))]),e._v(" "),a("th",{staticClass:"text-right",attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.amount")))])])]),e._v(" "),a("tbody",e._l(this.transactions,(function(t){return a("tr",[a("td",[a("a",{attrs:{href:"transactions/show/"+t.id,title:new Intl.DateTimeFormat(e.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(t.attributes.transactions[0].date))}},[t.attributes.transactions.length>1?a("span",[e._v(e._s(t.attributes.group_title))]):e._e(),e._v(" "),1===t.attributes.transactions.length?a("span",[e._v(e._s(t.attributes.transactions[0].description))]):e._e()])]),e._v(" "),a("td",{staticStyle:{"text-align":"right"}},e._l(t.attributes.transactions,(function(t){return a("span",["withdrawal"===t.type?a("span",{staticClass:"text-danger"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"deposit"===t.type?a("span",{staticClass:"text-success"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.source_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(-1*t.amount))),a("br")]):e._e(),e._v(" "),"transfer"===t.type&&parseInt(t.destination_id)===e.account_id?a("span",{staticClass:"text-info"},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.amount))),a("br")]):e._e()])})),0)])})),0)])}),[],!1,null,"4cd7a656",null).exports;var me=a(1114);function fe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function be(e){for(var t=1;tthis.earned?parseFloat(u.sum):this.earned}}},sortCategories:function(){var e=[];for(var t in this.categories)this.categories.hasOwnProperty(t)&&e.push(this.categories[t]);for(var a in e.sort((function(e,t){return e.spent+e.earned-(t.spent+t.earned)})),e)if(e.hasOwnProperty(a)){var n=e[a];n.spentPct=n.spent/this.spent*100,n.earnedPct=n.earned/this.earned*100,this.sortedList.push(n)}}}},Se=(0,n.Z)(De,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("h3",{staticClass:"card-title"},[e._v(e._s(e.$t("firefly.categories")))])]),e._v(" "),e.loading&&!e.error?a("div",{staticClass:"card-body"},[e._m(0)]):e._e(),e._v(" "),e.error?a("div",{staticClass:"card-body"},[e._m(1)]):e._e(),e._v(" "),e.loading||e.error?e._e():a("div",{staticClass:"card-body table-responsive p-0"},[a("table",{staticClass:"table table-sm"},[a("caption",{staticStyle:{display:"none"}},[e._v(e._s(e.$t("firefly.categories")))]),e._v(" "),a("thead",[a("tr",[a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.category")))]),e._v(" "),a("th",{attrs:{scope:"col"}},[e._v(e._s(e.$t("firefly.spent")))])])]),e._v(" "),a("tbody",e._l(e.sortedList,(function(t){return a("tr",[a("td",{staticStyle:{width:"20%"}},[a("a",{attrs:{href:"./categories/show/"+t.id}},[e._v(e._s(t.name))])]),e._v(" "),a("td",{staticClass:"align-middle"},[t.spentPct>0?a("div",{staticClass:"progress"},[a("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:t.spentPct+"%"},attrs:{"aria-valuenow":t.spentPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar"}},[t.spentPct>20?a("span",[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.spent))+"\n ")]):e._e()]),e._v(" "),t.spentPct<=20?a("span",{staticClass:"progress-label",staticStyle:{"line-height":"16px"}},[e._v(" \n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.spent))+"\n ")]):e._e()]):e._e(),e._v(" "),t.earnedPct>0?a("div",{staticClass:"progress justify-content-end",attrs:{title:"hello2"}},[t.earnedPct<=20?a("span",{staticStyle:{"line-height":"16px"}},[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.earned))+"\n  ")]):e._e(),e._v(" "),a("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:t.earnedPct+"%"},attrs:{"aria-valuenow":t.earnedPct,"aria-valuemax":"100","aria-valuemin":"0",role:"progressbar",title:"hello"}},[t.earnedPct>20?a("span",[e._v("\n "+e._s(Intl.NumberFormat(e.locale,{style:"currency",currency:t.currency_code}).format(t.earned))+"\n ")]):e._e()])]):e._e()])])})),0)])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-spinner fa-spin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"text-center"},[t("i",{staticClass:"fas fa-exclamation-triangle text-danger"})])}],!1,null,"2290c5b8",null).exports;var Ie=a(7760),Ce=a.n(Ie),xe=a(9899);a(232),a(2181),Ce().component("transaction-list-large",de),Ce().component("transaction-list-medium",ge),Ce().component("transaction-list-small",he),Ce().component("dashboard",s),Ce().component("top-boxes",d),Ce().component("main-account",k),Ce().component("main-account-list",j),Ce().component("main-bills-list",L),Ce().component("main-budget-list",K),Ce().component("main-category-list",Se),Ce().component("main-debit-list",ce),Ce().component("main-credit-list",te),Ce().component("main-piggy-list",ue),Ce().use(o.ZP);var ze=a(157),je={};new(Ce())({i18n:ze,store:xe.Z,el:"#dashboard",render:function(e){return e(s,{props:je})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference"),this.$store.dispatch("root/initialiseStore"),this.$store.dispatch("dashboard/index/initialiseStore")}}),new(Ce())({i18n:ze,store:xe.Z,el:"#calendar",render:function(e){return e(me.Z,{props:je})}})},4478:(e,t,a)=>{"use strict";function n(){return{description:[],amount:[],source:[],destination:[],currency:[],foreign_currency:[],foreign_amount:[],date:[],custom_dates:[],budget:[],category:[],bill:[],tags:[],piggy_bank:[],internal_reference:[],external_url:[],notes:[],location:[]}}function s(){return{description:"",transaction_journal_id:0,source_account_id:null,source_account_name:null,source_account_type:null,source_account_currency_id:null,source_account_currency_code:null,source_account_currency_symbol:null,destination_account_id:null,destination_account_name:null,destination_account_type:null,destination_account_currency_id:null,destination_account_currency_code:null,destination_account_currency_symbol:null,attachments:!1,selectedAttachments:!1,uploadTrigger:!1,clearTrigger:!1,source_account:{id:0,name:"",name_with_balance:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},amount:"",currency_id:0,foreign_amount:"",foreign_currency_id:0,category:null,budget_id:0,bill_id:0,piggy_bank_id:0,tags:[],interest_date:null,book_date:null,process_date:null,due_date:null,payment_date:null,invoice_date:null,internal_reference:null,external_url:null,external_id:null,notes:null,links:[],zoom_level:null,longitude:null,latitude:null,errors:{}}}a.d(t,{kQ:()=>n,f$:()=>s})},9239:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var n=a(4015),s=a.n(n),o=a(3645),r=a.n(o)()(s());r.push([e.id,".dropdown-item[data-v-391cacea],.dropdown-item[data-v-391cacea]:hover{color:#212529}","",{version:3,sources:["webpack://./src/components/dashboard/Calendar.vue"],names:[],mappings:"AAwlBA,sEACA,aACA",sourcesContent:["\x3c!--\n - Calendar.vue\n - Copyright (c) 2020 james@firefly-iii.org\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 .\n --\x3e\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"","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","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 }","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(\" \"),(0 === _vm.prefCurrencyBalances.length)?_c('span',{staticClass:\"info-box-number\"},[_vm._v(\" \")]):_vm._e(),_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(\" \"),(0===_vm.prefBillsUnpaid.length)?_c('span',{staticClass:\"info-box-number\"},[_vm._v(\" \")]):_vm._e(),_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(\" \"),(0 === _vm.prefLeftToSpend.length)?_c('span',{staticClass:\"info-box-number\"},[_vm._v(\" \")]):_vm._e(),_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 }","\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=26508747&\"\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","\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"","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","\n\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=5165f460&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 \"5165f460\",\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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=15075039&\"\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\"},[_c('div',[_c('canvas',{ref:\"canvas\",attrs:{\"id\":\"canvas\",\"width\":\"400\",\"height\":\"400\"}})]),_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(\" \"),(_vm.timezoneDifference)?_c('div',{staticClass:\"text-muted small\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.timezone_difference', {local: _vm.localTimeZone, system: _vm.systemTimeZone}))+\"\\n \")]):_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\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=8e5b2eb4&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 \"8e5b2eb4\",\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\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=547b1023&\"\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)))+\"\\n \"),_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 }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","\n\n\n\n\n\n","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=2b21deef&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 \"2b21deef\",\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.budget')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.spent')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.left')))])])]),_vm._v(\" \"),_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\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=20b8cacf&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 \"20b8cacf\",\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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=3e98985a&\"\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.revenue_accounts')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=9816a3c2&\"\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.expense_accounts')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","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\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=2290c5b8&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 \"2290c5b8\",\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.categories')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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) 2021 james@firefly-iii.org\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 .\n */\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\n// TODO pretty sure not all categories, budgets and other objects are picked up because they're paginated.\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 });","/*\n * transactions.js\n * Copyright (c) 2021 james@firefly-iii.org\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 .\n */\n\nexport function getDefaultErrors() {\n return {\n description: [],\n amount: [],\n source: [],\n destination: [],\n currency: [],\n foreign_currency: [],\n foreign_amount: [],\n date: [],\n custom_dates: [],\n budget: [],\n category: [],\n bill: [],\n tags: [],\n piggy_bank: [],\n internal_reference: [],\n external_url: [],\n notes: [],\n location: []\n };\n}\n\nexport function getDefaultTransaction() {\n return {\n // basic\n description: '',\n transaction_journal_id: 0,\n // accounts:\n source_account_id: null,\n source_account_name: null,\n source_account_type: null,\n\n source_account_currency_id: null,\n source_account_currency_code: null,\n source_account_currency_symbol: null,\n\n destination_account_id: null,\n destination_account_name: null,\n destination_account_type: null,\n\n destination_account_currency_id: null,\n destination_account_currency_code: null,\n destination_account_currency_symbol: null,\n attachments: false,\n selectedAttachments: false,\n uploadTrigger: false,\n clearTrigger: false,\n\n source_account: {\n id: 0,\n name: \"\",\n name_with_balance: \"\",\n type: \"\",\n currency_id: 0,\n currency_name: '',\n currency_code: '',\n currency_decimal_places: 2\n },\n destination_account: {\n id: 0,\n name: \"\",\n type: \"\",\n currency_id: 0,\n currency_name: '',\n currency_code: '',\n currency_decimal_places: 2\n },\n\n // amount:\n amount: '',\n currency_id: 0,\n foreign_amount: '',\n foreign_currency_id: 0,\n\n // meta data\n category: null,\n budget_id: 0,\n bill_id: 0,\n piggy_bank_id: 0,\n tags: [],\n\n // optional date fields (6x):\n interest_date: null,\n book_date: null,\n process_date: null,\n due_date: null,\n payment_date: null,\n invoice_date: null,\n\n // optional other fields:\n internal_reference: null,\n external_url: null,\n external_id: null,\n notes: null,\n\n // transaction links:\n links: [],\n // location:\n zoom_level: null,\n longitude: null,\n latitude: null,\n\n // error handling\n errors: {},\n }\n}\n\nexport function toW3CString(date) {\n // https://gist.github.com/tristanlins/6585391\n let year = date.getFullYear();\n let month = date.getMonth();\n month++;\n if (month < 10) {\n month = '0' + month;\n }\n let day = date.getDate();\n if (day < 10) {\n day = '0' + day;\n }\n let hours = date.getHours();\n if (hours < 10) {\n hours = '0' + hours;\n }\n let minutes = date.getMinutes();\n if (minutes < 10) {\n minutes = '0' + minutes;\n }\n let seconds = date.getSeconds();\n if (seconds < 10) {\n seconds = '0' + seconds;\n }\n let offset = -date.getTimezoneOffset();\n let offsetHours = Math.abs(Math.floor(offset / 60));\n let offsetMinutes = Math.abs(offset) - offsetHours * 60;\n if (offsetHours < 10) {\n offsetHours = '0' + offsetHours;\n }\n if (offsetMinutes < 10) {\n offsetMinutes = '0' + offsetMinutes;\n }\n let offsetSign = '+';\n if (offset < 0) {\n offsetSign = '-';\n }\n return year + '-' + month + '-' + day +\n 'T' + hours + ':' + minutes + ':' + seconds +\n offsetSign + offsetHours + ':' + offsetMinutes;\n}","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".dropdown-item[data-v-391cacea],.dropdown-item[data-v-391cacea]:hover{color:#212529}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/dashboard/Calendar.vue\"],\"names\":[],\"mappings\":\"AAwlBA,sEACA,aACA\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"Start\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.range.start)))])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"End\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.range.end)))])]),_vm._v(\" \"),_c('date-picker',{attrs:{\"rows\":2,\"is-range\":\"\",\"mode\":\"date\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar inputValue = ref.inputValue;\nvar inputEvents = ref.inputEvents;\nvar isDragging = ref.isDragging;\nvar togglePopover = ref.togglePopover;\nreturn [_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"btn-group btn-group-sm d-flex\"},[_c('button',{staticClass:\"btn btn-secondary btn-sm\",attrs:{\"title\":_vm.$t('firefly.custom_period')},on:{\"click\":function($event){return togglePopover({ placement: 'auto-start', positionFixed: true })}}},[_c('i',{staticClass:\"fas fa-calendar-alt\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"title\":_vm.$t('firefly.reset_to_current')},on:{\"click\":_vm.resetDate}},[_c('i',{staticClass:\"fas fa-history\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",attrs:{\"id\":\"dropdownMenuButton\",\"title\":_vm.$t('firefly.select_period'),\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\"}},[_c('i',{staticClass:\"fas fa-list\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},_vm._l((_vm.periods),function(period){return _c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.customDate(period.start, period.end)}}},[_vm._v(_vm._s(period.title))])}),0)]),_vm._v(\" \"),_c('input',_vm._g({class:isDragging ? 'text-gray-600' : 'text-gray-900',attrs:{\"type\":\"hidden\"},domProps:{\"value\":inputValue.start}},inputEvents.start)),_vm._v(\" \"),_c('input',_vm._g({class:isDragging ? 'text-gray-600' : 'text-gray-900',attrs:{\"type\":\"hidden\"},domProps:{\"value\":inputValue.end}},inputEvents.end))])])]}}]),model:{value:(_vm.range),callback:function ($$v) {_vm.range=$$v},expression:\"range\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=391cacea&scoped=true&\"\nimport script from \"./Calendar.vue?vue&type=script&lang=js&\"\nexport * from \"./Calendar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Calendar.vue?vue&type=style&index=0&id=391cacea&scoped=true&lang=css&\"\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 \"391cacea\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=5165f460&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 \"5165f460\",\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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=15075039&\"\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\"},[_c('div',[_c('canvas',{ref:\"canvas\",attrs:{\"id\":\"canvas\",\"width\":\"400\",\"height\":\"400\"}})]),_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(\" \"),(_vm.timezoneDifference)?_c('div',{staticClass:\"text-muted small\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.timezone_difference', {local: _vm.localTimeZone, system: _vm.systemTimeZone}))+\"\\n \")]):_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\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=8e5b2eb4&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 \"8e5b2eb4\",\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\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=547b1023&\"\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)))+\"\\n \"),_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 }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","\n\n\n\n\n\n","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=2b21deef&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 \"2b21deef\",\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),_c('thead',[_c('tr',[_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.budget')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.spent')))]),_vm._v(\" \"),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(_vm._s(_vm.$t('firefly.left')))])])]),_vm._v(\" \"),_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\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=20b8cacf&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 \"20b8cacf\",\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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=3e98985a&\"\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.revenue_accounts')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=9816a3c2&\"\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.expense_accounts')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","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 }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","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\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[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??clonedRuleSet-5[0].rules[0].use[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=2290c5b8&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 \"2290c5b8\",\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('caption',{staticStyle:{\"display\":\"none\"}},[_vm._v(_vm._s(_vm.$t('firefly.categories')))]),_vm._v(\" \"),_c('thead',[_c('tr',[_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.spent')))])])]),_vm._v(\" \"),_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) 2021 james@firefly-iii.org\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 .\n */\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\n// TODO pretty sure not all categories, budgets and other objects are picked up because they're paginated.\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 });","/*\n * transactions.js\n * Copyright (c) 2021 james@firefly-iii.org\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 .\n */\n\nexport function getDefaultErrors() {\n return {\n description: [],\n amount: [],\n source: [],\n destination: [],\n currency: [],\n foreign_currency: [],\n foreign_amount: [],\n date: [],\n custom_dates: [],\n budget: [],\n category: [],\n bill: [],\n tags: [],\n piggy_bank: [],\n internal_reference: [],\n external_url: [],\n notes: [],\n location: []\n };\n}\n\nexport function getDefaultTransaction() {\n return {\n // basic\n description: '',\n transaction_journal_id: 0,\n // accounts:\n source_account_id: null,\n source_account_name: null,\n source_account_type: null,\n\n source_account_currency_id: null,\n source_account_currency_code: null,\n source_account_currency_symbol: null,\n\n destination_account_id: null,\n destination_account_name: null,\n destination_account_type: null,\n\n destination_account_currency_id: null,\n destination_account_currency_code: null,\n destination_account_currency_symbol: null,\n attachments: false,\n selectedAttachments: false,\n uploadTrigger: false,\n clearTrigger: false,\n\n source_account: {\n id: 0,\n name: \"\",\n name_with_balance: \"\",\n type: \"\",\n currency_id: 0,\n currency_name: '',\n currency_code: '',\n currency_decimal_places: 2\n },\n destination_account: {\n id: 0,\n name: \"\",\n type: \"\",\n currency_id: 0,\n currency_name: '',\n currency_code: '',\n currency_decimal_places: 2\n },\n\n // amount:\n amount: '',\n currency_id: 0,\n foreign_amount: '',\n foreign_currency_id: 0,\n\n // meta data\n category: null,\n budget_id: 0,\n bill_id: 0,\n piggy_bank_id: 0,\n tags: [],\n\n // optional date fields (6x):\n interest_date: null,\n book_date: null,\n process_date: null,\n due_date: null,\n payment_date: null,\n invoice_date: null,\n\n // optional other fields:\n internal_reference: null,\n external_url: null,\n external_id: null,\n notes: null,\n\n // transaction links:\n links: [],\n // location:\n zoom_level: null,\n longitude: null,\n latitude: null,\n\n // error handling\n errors: {},\n }\n}\n\nexport function toW3CString(date) {\n // https://gist.github.com/tristanlins/6585391\n let year = date.getFullYear();\n let month = date.getMonth();\n month++;\n if (month < 10) {\n month = '0' + month;\n }\n let day = date.getDate();\n if (day < 10) {\n day = '0' + day;\n }\n let hours = date.getHours();\n if (hours < 10) {\n hours = '0' + hours;\n }\n let minutes = date.getMinutes();\n if (minutes < 10) {\n minutes = '0' + minutes;\n }\n let seconds = date.getSeconds();\n if (seconds < 10) {\n seconds = '0' + seconds;\n }\n let offset = -date.getTimezoneOffset();\n let offsetHours = Math.abs(Math.floor(offset / 60));\n let offsetMinutes = Math.abs(offset) - offsetHours * 60;\n if (offsetHours < 10) {\n offsetHours = '0' + offsetHours;\n }\n if (offsetMinutes < 10) {\n offsetMinutes = '0' + offsetMinutes;\n }\n let offsetSign = '+';\n if (offset < 0) {\n offsetSign = '-';\n }\n return year + '-' + month + '-' + day +\n 'T' + hours + ':' + minutes + ':' + seconds +\n offsetSign + offsetHours + ':' + offsetMinutes;\n}","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".dropdown-item[data-v-391cacea],.dropdown-item[data-v-391cacea]:hover{color:#212529}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/dashboard/Calendar.vue\"],\"names\":[],\"mappings\":\"AAwlBA,sEACA,aACA\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"Start\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.range.start)))])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"End\")]),_vm._v(\" \"),_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.range.end)))])]),_vm._v(\" \"),_c('date-picker',{attrs:{\"rows\":2,\"is-range\":\"\",\"mode\":\"date\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar inputValue = ref.inputValue;\nvar inputEvents = ref.inputEvents;\nvar isDragging = ref.isDragging;\nvar togglePopover = ref.togglePopover;\nreturn [_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"btn-group btn-group-sm d-flex\"},[_c('button',{staticClass:\"btn btn-secondary btn-sm\",attrs:{\"title\":_vm.$t('firefly.custom_period')},on:{\"click\":function($event){return togglePopover({ placement: 'auto-start', positionFixed: true })}}},[_c('i',{staticClass:\"fas fa-calendar-alt\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"title\":_vm.$t('firefly.reset_to_current')},on:{\"click\":_vm.resetDate}},[_c('i',{staticClass:\"fas fa-history\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",attrs:{\"id\":\"dropdownMenuButton\",\"title\":_vm.$t('firefly.select_period'),\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\"}},[_c('i',{staticClass:\"fas fa-list\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},_vm._l((_vm.periods),function(period){return _c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.customDate(period.start, period.end)}}},[_vm._v(_vm._s(period.title))])}),0)]),_vm._v(\" \"),_c('input',_vm._g({class:isDragging ? 'text-gray-600' : 'text-gray-900',attrs:{\"type\":\"hidden\"},domProps:{\"value\":inputValue.start}},inputEvents.start)),_vm._v(\" \"),_c('input',_vm._g({class:isDragging ? 'text-gray-600' : 'text-gray-900',attrs:{\"type\":\"hidden\"},domProps:{\"value\":inputValue.end}},inputEvents.end))])])]}}]),model:{value:(_vm.range),callback:function ($$v) {_vm.range=$$v},expression:\"range\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=391cacea&scoped=true&\"\nimport script from \"./Calendar.vue?vue&type=script&lang=js&\"\nexport * from \"./Calendar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Calendar.vue?vue&type=style&index=0&id=391cacea&scoped=true&lang=css&\"\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 \"391cacea\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a