Skip to content

Firefly III: a personal finances manager

Rebuild frontend

James Coled69843d4bc1f
diff --git a/frontend/src/components/dashboard/BudgetLimitRow.vue b/frontend/src/components/dashboard/BudgetLimitRow.vue
index 5d832951ff..ab719d6ede 100644
--- a/frontend/src/components/dashboard/BudgetLimitRow.vue
+++ b/frontend/src/components/dashboard/BudgetLimitRow.vue
@@ -93,7 +93,7 @@
<script>
export default {
name: "BudgetLimitRow",
- mounted() {
+ created() {
this.locale = localStorage.locale ?? 'en-US';
},
data() {
diff --git a/frontend/src/components/dashboard/MainAccountList.vue b/frontend/src/components/dashboard/MainAccountList.vue
index 945c9c172e..aec677a6c2 100644
--- a/frontend/src/components/dashboard/MainAccountList.vue
+++ b/frontend/src/components/dashboard/MainAccountList.vue
@@ -24,7 +24,12 @@
v-for="account in accounts">
<div class="card">
<div class="card-header">
- <h3 class="card-title"><a :href="account.uri">{{ account.title }}</a></h3>
+ <h3 class="card-title"><a :href="account.url">{{ account.title }}</a></h3>
+ <div class="card-tools">
+ <span :class="parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'">
+ {{ Intl.NumberFormat(locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)) }}
+ </span>
+ </div>
</div>
<div class="card-body table-responsive p-0">
<transaction-list-large :transactions="account.transactions" v-if="1===accounts.length" :account_id="account.id"/>
@@ -42,9 +47,11 @@ export default {
data() {
return {
accounts: [],
+ locale: 'en-US'
}
},
created() {
+ this.locale = localStorage.locale ?? 'en-US';
axios.get('./api/v1/preferences/frontpageAccounts')
.then(response => {
this.loadAccounts(response);
@@ -60,7 +67,9 @@ export default {
this.accounts.push({
id: accountIds[key],
title: '',
- uri: '',
+ url: '',
+ current_balance: '',
+ currency_code: '',
transactions: []
});
this.loadSingleAccount(key, accountIds[key]);
@@ -71,7 +80,10 @@ export default {
axios.get('./api/v1/accounts/' + accountId)
.then(response => {
this.accounts[key].title = response.data.data.attributes.name;
- this.accounts[key].uri = './accounts/show/' + response.data.data.id;
+ this.accounts[key].url = './accounts/show/' + response.data.data.id;
+ this.accounts[key].current_balance = response.data.data.attributes.current_balance;
+ this.accounts[key].currency_code = response.data.data.attributes.currency_code;
+
this.loadTransactions(key, accountId);
}
);
diff --git a/frontend/src/components/dashboard/MainBillsList.vue b/frontend/src/components/dashboard/MainBillsList.vue
index 6808d7dcb4..c2e8b470e6 100644
--- a/frontend/src/components/dashboard/MainBillsList.vue
+++ b/frontend/src/components/dashboard/MainBillsList.vue
@@ -34,7 +34,7 @@
</thead>
<tbody>
<tr v-for="bill in this.bills">
- <td><a :href="'./bills/show' + bill.id" :title="bill.attributes.name">{{ bill.attributes.name }}</a>
+ <td><a :href="'./bills/show/' + bill.id" :title="bill.attributes.name">{{ bill.attributes.name }}</a>
~{{
Intl.NumberFormat(locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +
parseFloat(bill.attributes.amount_max)) / 2)
diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue
index 57d6931e62..23ddba9700 100644
--- a/frontend/src/components/transactions/Create.vue
+++ b/frontend/src/components/transactions/Create.vue
@@ -29,7 +29,7 @@
<div class="alert alert-success alert-dismissible" v-if="successMessage.length > 0">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-thumbs-up"></i> {{ $t("firefly.flash_success") }}</h5>
- {{ successMessage }}
+ <span v-html="successMessage"></span>
</div>
<div class="row" v-if="transactions.length > 1">
@@ -434,10 +434,12 @@ export default {
}
// render msg:
this.successMessage = this.$t('firefly.transaction_stored_link', {ID: this.groupId, title: this.groupTitle});
- if(this.resetFormAfter) {
- this.resetTransactions();
+ if (this.resetFormAfter) {
+ this.submitted = false;
+ this.resetTransactions();
// do a short time out?
setTimeout(() => this.addTransaction(), 50);
+ // reset the form:
}
}
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index f754f11e1a..8641a4f95e 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -2,31 +2,31 @@
# yarn lockfile v1
-"@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.11":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f"
- integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==
+"@babel/code-frame@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658"
+ integrity sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==
dependencies:
- "@babel/highlight" "^7.10.4"
+ "@babel/highlight" "^7.12.13"
-"@babel/compat-data@^7.12.5", "@babel/compat-data@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.7.tgz#9329b4782a7d6bbd7eef57e11addf91ee3ef1e41"
- integrity sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==
+"@babel/compat-data@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.13.tgz#27e19e0ed3726ccf54067ced4109501765e7e2e8"
+ integrity sha512-U/hshG5R+SIoW7HVWIdmy1cB7s3ki+r3FpyEZiCgpi4tFgPnX/vynY80ZGSASOIrUM6O7VxOgCZgdt7h97bUGg==
"@babel/core@^7.0.0-beta.49", "@babel/core@^7.2.0":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.10.tgz#b79a2e1b9f70ed3d84bbfb6d8c4ef825f606bccd"
- integrity sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w==
- dependencies:
- "@babel/code-frame" "^7.10.4"
- "@babel/generator" "^7.12.10"
- "@babel/helper-module-transforms" "^7.12.1"
- "@babel/helpers" "^7.12.5"
- "@babel/parser" "^7.12.10"
- "@babel/template" "^7.12.7"
- "@babel/traverse" "^7.12.10"
- "@babel/types" "^7.12.10"
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.13.tgz#b73a87a3a3e7d142a66248bf6ad88b9ceb093425"
+ integrity sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw==
+ dependencies:
+ "@babel/code-frame" "^7.12.13"
+ "@babel/generator" "^7.12.13"
+ "@babel/helper-module-transforms" "^7.12.13"
+ "@babel/helpers" "^7.12.13"
+ "@babel/parser" "^7.12.13"
+ "@babel/template" "^7.12.13"
+ "@babel/traverse" "^7.12.13"
+ "@babel/types" "^7.12.13"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.1"
@@ -35,164 +35,155 @@
semver "^5.4.1"
source-map "^0.5.0"
-"@babel/generator@^7.12.10", "@babel/generator@^7.12.11":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.11.tgz#98a7df7b8c358c9a37ab07a24056853016aba3af"
- integrity sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==
+"@babel/generator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.13.tgz#5f6ebe6c85db99886db2d7b044409196f872a503"
+ integrity sha512-9qQ8Fgo8HaSvHEt6A5+BATP7XktD/AdAnObUeTRz5/e2y3kbrxZgz32qUJJsdmwUvBJzF4AeV21nGTNwv05Mpw==
dependencies:
- "@babel/types" "^7.12.11"
+ "@babel/types" "^7.12.13"
jsesc "^2.5.1"
source-map "^0.5.0"
-"@babel/helper-annotate-as-pure@^7.10.4":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.10.tgz#54ab9b000e60a93644ce17b3f37d313aaf1d115d"
- integrity sha512-XplmVbC1n+KY6jL8/fgLVXXUauDIB+lD5+GsQEh6F6GBF1dq1qy4DP4yXWzDKcoqXB3X58t61e85Fitoww4JVQ==
+"@babel/helper-annotate-as-pure@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.12.13.tgz#0f58e86dfc4bb3b1fcd7db806570e177d439b6ab"
+ integrity sha512-7YXfX5wQ5aYM/BOlbSccHDbuXXFPxeoUmfWtz8le2yTkTZc+BxsiEnENFoi2SlmA8ewDkG2LgIMIVzzn2h8kfw==
dependencies:
- "@babel/types" "^7.12.10"
+ "@babel/types" "^7.12.13"
-"@babel/helper-builder-binary-assignment-operator-visitor@^7.10.4":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.10.4.tgz#bb0b75f31bf98cbf9ff143c1ae578b87274ae1a3"
- integrity sha512-L0zGlFrGWZK4PbT8AszSfLTM5sDU1+Az/En9VrdT8/LmEiJt4zXt+Jve9DCAnQcbqDhCI+29y/L93mrDzddCcg==
+"@babel/helper-builder-binary-assignment-operator-visitor@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.12.13.tgz#6bc20361c88b0a74d05137a65cac8d3cbf6f61fc"
+ integrity sha512-CZOv9tGphhDRlVjVkAgm8Nhklm9RzSmWpX2my+t7Ua/KT616pEzXsQCjinzvkRvHWJ9itO4f296efroX23XCMA==
dependencies:
- "@babel/helper-explode-assignable-expression" "^7.10.4"
- "@babel/types" "^7.10.4"
+ "@babel/helper-explode-assignable-expression" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/helper-compilation-targets@^7.12.5":
- version "7.12.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.5.tgz#cb470c76198db6a24e9dbc8987275631e5d29831"
- integrity sha512-+qH6NrscMolUlzOYngSBMIOQpKUGPPsc61Bu5W10mg84LxZ7cmvnBHzARKbDoFxVvqqAbj6Tg6N7bSrWSPXMyw==
+"@babel/helper-compilation-targets@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.13.tgz#d689cdef88810aa74e15a7a94186f26a3d773c98"
+ integrity sha512-dXof20y/6wB5HnLOGyLh/gobsMvDNoekcC+8MCV2iaTd5JemhFkPD73QB+tK3iFC9P0xJC73B6MvKkyUfS9cCw==
dependencies:
- "@babel/compat-data" "^7.12.5"
- "@babel/helper-validator-option" "^7.12.1"
+ "@babel/compat-data" "^7.12.13"
+ "@babel/helper-validator-option" "^7.12.11"
browserslist "^4.14.5"
semver "^5.5.0"
-"@babel/helper-create-class-features-plugin@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.1.tgz#3c45998f431edd4a9214c5f1d3ad1448a6137f6e"
- integrity sha512-hkL++rWeta/OVOBTRJc9a5Azh5mt5WgZUGAKMD8JM141YsE08K//bp1unBBieO6rUKkIPyUE0USQ30jAy3Sk1w==
+"@babel/helper-create-class-features-plugin@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.13.tgz#0f1707c2eec1a4604f2a22a6fb209854ef2a399a"
+ integrity sha512-Vs/e9wv7rakKYeywsmEBSRC9KtmE7Px+YBlESekLeJOF0zbGUicGfXSNi3o+tfXSNS48U/7K9mIOOCR79Cl3+Q==
dependencies:
- "@babel/helper-function-name" "^7.10.4"
- "@babel/helper-member-expression-to-functions" "^7.12.1"
- "@babel/helper-optimise-call-expression" "^7.10.4"
- "@babel/helper-replace-supers" "^7.12.1"
- "@babel/helper-split-export-declaration" "^7.10.4"
+ "@babel/helper-function-name" "^7.12.13"
+ "@babel/helper-member-expression-to-functions" "^7.12.13"
+ "@babel/helper-optimise-call-expression" "^7.12.13"
+ "@babel/helper-replace-supers" "^7.12.13"
+ "@babel/helper-split-export-declaration" "^7.12.13"
-"@babel/helper-create-regexp-features-plugin@^7.12.1":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.7.tgz#2084172e95443fa0a09214ba1bb328f9aea1278f"
- integrity sha512-idnutvQPdpbduutvi3JVfEgcVIHooQnhvhx0Nk9isOINOIGYkZea1Pk2JlJRiUnMefrlvr0vkByATBY/mB4vjQ==
+"@babel/helper-create-regexp-features-plugin@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.13.tgz#0996d370a92896c612ae41a4215544bd152579c0"
+ integrity sha512-XC+kiA0J3at6E85dL5UnCYfVOcIZ834QcAY0TIpgUVnz0zDzg+0TtvZTnJ4g9L1dPRGe30Qi03XCIS4tYCLtqw==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.10.4"
+ "@babel/helper-annotate-as-pure" "^7.12.13"
regexpu-core "^4.7.1"
-"@babel/helper-define-map@^7.10.4":
- version "7.10.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.10.5.tgz#b53c10db78a640800152692b13393147acb9bb30"
- integrity sha512-fMw4kgFB720aQFXSVaXr79pjjcW5puTCM16+rECJ/plGS+zByelE8l9nCpV1GibxTnFVmUuYG9U8wYfQHdzOEQ==
+"@babel/helper-explode-assignable-expression@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.13.tgz#0e46990da9e271502f77507efa4c9918d3d8634a"
+ integrity sha512-5loeRNvMo9mx1dA/d6yNi+YiKziJZFylZnCo1nmFF4qPU4yJ14abhWESuSMQSlQxWdxdOFzxXjk/PpfudTtYyw==
dependencies:
- "@babel/helper-function-name" "^7.10.4"
- "@babel/types" "^7.10.5"
- lodash "^4.17.19"
+ "@babel/types" "^7.12.13"
-"@babel/helper-explode-assignable-expression@^7.10.4":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.1.tgz#8006a466695c4ad86a2a5f2fb15b5f2c31ad5633"
- integrity sha512-dmUwH8XmlrUpVqgtZ737tK88v07l840z9j3OEhCLwKTkjlvKpfqXVIZ0wpK3aeOxspwGrf/5AP5qLx4rO3w5rA==
+"@babel/helper-function-name@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.12.13.tgz#93ad656db3c3c2232559fd7b2c3dbdcbe0eb377a"
+ integrity sha512-TZvmPn0UOqmvi5G4vvw0qZTpVptGkB1GL61R6lKvrSdIxGm5Pky7Q3fpKiIkQCAtRCBUwB0PaThlx9vebCDSwA==
dependencies:
- "@babel/types" "^7.12.1"
+ "@babel/helper-get-function-arity" "^7.12.13"
+ "@babel/template" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/helper-function-name@^7.10.4", "@babel/helper-function-name@^7.12.11":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz#1fd7738aee5dcf53c3ecff24f1da9c511ec47b42"
- integrity sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==
+"@babel/helper-get-function-arity@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.13.tgz#bc63451d403a3b3082b97e1d8b3fe5bd4091e583"
+ integrity sha512-DjEVzQNz5LICkzN0REdpD5prGoidvbdYk1BVgRUOINaWJP2t6avB27X1guXK1kXNrX0WMfsrm1A/ZBthYuIMQg==
dependencies:
- "@babel/helper-get-function-arity" "^7.12.10"
- "@babel/template" "^7.12.7"
- "@babel/types" "^7.12.11"
+ "@babel/types" "^7.12.13"
-"@babel/helper-get-function-arity@^7.12.10":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz#b158817a3165b5faa2047825dfa61970ddcc16cf"
- integrity sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag==
+"@babel/helper-hoist-variables@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.12.13.tgz#13aba58b7480b502362316ea02f52cca0e9796cd"
+ integrity sha512-KSC5XSj5HreRhYQtZ3cnSnQwDzgnbdUDEFsxkN0m6Q3WrCRt72xrnZ8+h+pX7YxM7hr87zIO3a/v5p/H3TrnVw==
dependencies:
- "@babel/types" "^7.12.10"
+ "@babel/types" "^7.12.13"
-"@babel/helper-hoist-variables@^7.10.4":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.4.tgz#d49b001d1d5a68ca5e6604dda01a6297f7c9381e"
- integrity sha512-wljroF5PgCk2juF69kanHVs6vrLwIPNp6DLD+Lrl3hoQ3PpPPikaDRNFA+0t81NOoMt2DL6WW/mdU8k4k6ZzuA==
+"@babel/helper-member-expression-to-functions@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.13.tgz#c5715695b4f8bab32660dbdcdc2341dec7e3df40"
+ integrity sha512-B+7nN0gIL8FZ8SvMcF+EPyB21KnCcZHQZFczCxbiNGV/O0rsrSBlWGLzmtBJ3GMjSVMIm4lpFhR+VdVBuIsUcQ==
dependencies:
- "@babel/types" "^7.10.4"
+ "@babel/types" "^7.12.13"
-"@babel/helper-member-expression-to-functions@^7.12.1", "@babel/helper-member-expression-to-functions@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.7.tgz#aa77bd0396ec8114e5e30787efa78599d874a855"
- integrity sha512-DCsuPyeWxeHgh1Dus7APn7iza42i/qXqiFPWyBDdOFtvS581JQePsc1F/nD+fHrcswhLlRc2UpYS1NwERxZhHw==
+"@babel/helper-module-imports@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz#ec67e4404f41750463e455cc3203f6a32e93fcb0"
+ integrity sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g==
dependencies:
- "@babel/types" "^7.12.7"
+ "@babel/types" "^7.12.13"
-"@babel/helper-module-imports@^7.12.1", "@babel/helper-module-imports@^7.12.5":
- version "7.12.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.5.tgz#1bfc0229f794988f76ed0a4d4e90860850b54dfb"
- integrity sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA==
+"@babel/helper-module-transforms@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.13.tgz#01afb052dcad2044289b7b20beb3fa8bd0265bea"
+ integrity sha512-acKF7EjqOR67ASIlDTupwkKM1eUisNAjaSduo5Cz+793ikfnpe7p4Q7B7EWU2PCoSTPWsQkR7hRUWEIZPiVLGA==
dependencies:
- "@babel/types" "^7.12.5"
-
-"@babel/helper-module-transforms@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz#7954fec71f5b32c48e4b303b437c34453fd7247c"
- integrity sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==
- dependencies:
- "@babel/helper-module-imports" "^7.12.1"
- "@babel/helper-replace-supers" "^7.12.1"
- "@babel/helper-simple-access" "^7.12.1"
- "@babel/helper-split-export-declaration" "^7.11.0"
- "@babel/helper-validator-identifier" "^7.10.4"
- "@babel/template" "^7.10.4"
- "@babel/traverse" "^7.12.1"
- "@babel/types" "^7.12.1"
+ "@babel/helper-module-imports" "^7.12.13"
+ "@babel/helper-replace-supers" "^7.12.13"
+ "@babel/helper-simple-access" "^7.12.13"
+ "@babel/helper-split-export-declaration" "^7.12.13"
+ "@babel/helper-validator-identifier" "^7.12.11"
+ "@babel/template" "^7.12.13"
+ "@babel/traverse" "^7.12.13"
+ "@babel/types" "^7.12.13"
lodash "^4.17.19"
-"@babel/helper-optimise-call-expression@^7.10.4", "@babel/helper-optimise-call-expression@^7.12.10":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.10.tgz#94ca4e306ee11a7dd6e9f42823e2ac6b49881e2d"
- integrity sha512-4tpbU0SrSTjjt65UMWSrUOPZTsgvPgGG4S8QSTNHacKzpS51IVWGDj0yCwyeZND/i+LSN2g/O63jEXEWm49sYQ==
+"@babel/helper-optimise-call-expression@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.13.tgz#5c02d171b4c8615b1e7163f888c1c81c30a2aaea"
+ integrity sha512-BdWQhoVJkp6nVjB7nkFWcn43dkprYauqtk++Py2eaf/GRDFm5BxRqEIZCiHlZUGAVmtwKcsVL1dC68WmzeFmiA==
dependencies:
- "@babel/types" "^7.12.10"
+ "@babel/types" "^7.12.13"
-"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375"
- integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==
+"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz#174254d0f2424d8aefb4dd48057511247b0a9eeb"
+ integrity sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==
-"@babel/helper-remap-async-to-generator@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.1.tgz#8c4dbbf916314f6047dc05e6a2217074238347fd"
- integrity sha512-9d0KQCRM8clMPcDwo8SevNs+/9a8yWVVmaE80FGJcEP8N1qToREmWEGnBn8BUlJhYRFz6fqxeRL1sl5Ogsed7A==
+"@babel/helper-remap-async-to-generator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.13.tgz#170365f4140e2d20e5c88f8ba23c24468c296878"
+ integrity sha512-Qa6PU9vNcj1NZacZZI1Mvwt+gXDH6CTfgAkSjeRMLE8HxtDK76+YDId6NQR+z7Rgd5arhD2cIbS74r0SxD6PDA==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.10.4"
- "@babel/helper-wrap-function" "^7.10.4"
- "@babel/types" "^7.12.1"
+ "@babel/helper-annotate-as-pure" "^7.12.13"
+ "@babel/helper-wrap-function" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/helper-replace-supers@^7.12.1":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.12.11.tgz#ea511658fc66c7908f923106dd88e08d1997d60d"
- integrity sha512-q+w1cqmhL7R0FNzth/PLLp2N+scXEK/L2AHbXUyydxp828F4FEa5WcVoqui9vFRiHDQErj9Zof8azP32uGVTRA==
+"@babel/helper-replace-supers@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.12.13.tgz#00ec4fb6862546bd3d0aff9aac56074277173121"
+ integrity sha512-pctAOIAMVStI2TMLhozPKbf5yTEXc0OJa0eENheb4w09SrgOWEs+P4nTOZYJQCqs8JlErGLDPDJTiGIp3ygbLg==
dependencies:
- "@babel/helper-member-expression-to-functions" "^7.12.7"
- "@babel/helper-optimise-call-expression" "^7.12.10"
- "@babel/traverse" "^7.12.10"
- "@babel/types" "^7.12.11"
+ "@babel/helper-member-expression-to-functions" "^7.12.13"
+ "@babel/helper-optimise-call-expression" "^7.12.13"
+ "@babel/traverse" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/helper-simple-access@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.12.1.tgz#32427e5aa61547d38eb1e6eaf5fd1426fdad9136"
- integrity sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA==
+"@babel/helper-simple-access@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.12.13.tgz#8478bcc5cacf6aa1672b251c1d2dde5ccd61a6c4"
+ integrity sha512-0ski5dyYIHEfwpWGx5GPWhH35j342JaflmCeQmsPWcrOQDtCN6C1zKAVRFVbK53lPW2c9TsuLLSUDf0tIGJ5hA==
dependencies:
- "@babel/types" "^7.12.1"
+ "@babel/types" "^7.12.13"
"@babel/helper-skip-transparent-expression-wrappers@^7.12.1":
version "7.12.1"
@@ -201,72 +192,72 @@
dependencies:
"@babel/types" "^7.12.1"
-"@babel/helper-split-export-declaration@^7.10.4", "@babel/helper-split-export-declaration@^7.11.0", "@babel/helper-split-export-declaration@^7.12.11":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz#1b4cc424458643c47d37022223da33d76ea4603a"
- integrity sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==
+"@babel/helper-split-export-declaration@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.13.tgz#e9430be00baf3e88b0e13e6f9d4eaf2136372b05"
+ integrity sha512-tCJDltF83htUtXx5NLcaDqRmknv652ZWCHyoTETf1CXYJdPC7nohZohjUgieXhv0hTJdRf2FjDueFehdNucpzg==
dependencies:
- "@babel/types" "^7.12.11"
+ "@babel/types" "^7.12.13"
-"@babel/helper-validator-identifier@^7.10.4", "@babel/helper-validator-identifier@^7.12.11":
+"@babel/helper-validator-identifier@^7.12.11":
version "7.12.11"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed"
integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==
-"@babel/helper-validator-option@^7.12.1", "@babel/helper-validator-option@^7.12.11":
+"@babel/helper-validator-option@^7.12.11":
version "7.12.11"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.11.tgz#d66cb8b7a3e7fe4c6962b32020a131ecf0847f4f"
integrity sha512-TBFCyj939mFSdeX7U7DDj32WtzYY7fDcalgq8v3fBZMNOJQNn7nOYzMaUCiPxPYfCup69mtIpqlKgMZLvQ8Xhw==
-"@babel/helper-wrap-function@^7.10.4":
- version "7.12.3"
- resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.12.3.tgz#3332339fc4d1fbbf1c27d7958c27d34708e990d9"
- integrity sha512-Cvb8IuJDln3rs6tzjW3Y8UeelAOdnpB8xtQ4sme2MSZ9wOxrbThporC0y/EtE16VAtoyEfLM404Xr1e0OOp+ow==
+"@babel/helper-wrap-function@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.12.13.tgz#e3ea8cb3ee0a16911f9c1b50d9e99fe8fe30f9ff"
+ integrity sha512-t0aZFEmBJ1LojdtJnhOaQEVejnzYhyjWHSsNSNo8vOYRbAJNh6r6GQF7pd36SqG7OKGbn+AewVQ/0IfYfIuGdw==
dependencies:
- "@babel/helper-function-name" "^7.10.4"
- "@babel/template" "^7.10.4"
- "@babel/traverse" "^7.10.4"
- "@babel/types" "^7.10.4"
+ "@babel/helper-function-name" "^7.12.13"
+ "@babel/template" "^7.12.13"
+ "@babel/traverse" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/helpers@^7.12.5":
- version "7.12.5"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.5.tgz#1a1ba4a768d9b58310eda516c449913fe647116e"
- integrity sha512-lgKGMQlKqA8meJqKsW6rUnc4MdUk35Ln0ATDqdM1a/UpARODdI4j5Y5lVfUScnSNkJcdCRAaWkspykNoFg9sJA==
+"@babel/helpers@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.13.tgz#3c75e993632e4dadc0274eae219c73eb7645ba47"
+ integrity sha512-oohVzLRZ3GQEk4Cjhfs9YkJA4TdIDTObdBEZGrd6F/T0GPSnuV6l22eMcxlvcvzVIPH3VTtxbseudM1zIE+rPQ==
dependencies:
- "@babel/template" "^7.10.4"
- "@babel/traverse" "^7.12.5"
- "@babel/types" "^7.12.5"
+ "@babel/template" "^7.12.13"
+ "@babel/traverse" "^7.12.13"
+ "@babel/types" "^7.12.13"
-"@babel/highlight@^7.10.4":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143"
- integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==
+"@babel/highlight@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.12.13.tgz#8ab538393e00370b26271b01fa08f7f27f2e795c"
+ integrity sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww==
dependencies:
- "@babel/helper-validator-identifier" "^7.10.4"
+ "@babel/helper-validator-identifier" "^7.12.11"
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.12.10", "@babel/parser@^7.12.11", "@babel/parser@^7.12.7":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.11.tgz#9ce3595bcd74bc5c466905e86c535b8b25011e79"
- integrity sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==
+"@babel/parser@^7.12.13":
+ version "7.12.14"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.14.tgz#4adb7c5eef1d437ef965ad1569cd826db8c11dc9"
+ integrity sha512-xcfxDq3OrBnDsA/Z8eK5/2iPcLD8qbOaSSfOw4RA6jp4i7e6dEQ7+wTwxItEwzcXPQcsry5nZk96gmVPKletjQ==
-"@babel/plugin-proposal-async-generator-functions@^7.12.1":
- version "7.12.12"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.12.tgz#04b8f24fd4532008ab4e79f788468fd5a8476566"
- integrity sha512-nrz9y0a4xmUrRq51bYkWJIO5SBZyG2ys2qinHsN0zHDHVsUaModrkpyWWWXfGqYQmOL3x9sQIcTNN/pBGpo09A==
+"@babel/plugin-proposal-async-generator-functions@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.13.tgz#d1c6d841802ffb88c64a2413e311f7345b9e66b5"
+ integrity sha512-1KH46Hx4WqP77f978+5Ye/VUbuwQld2hph70yaw2hXS2v7ER2f3nlpNMu909HO2rbvP0NKLlMVDPh9KXklVMhA==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-remap-async-to-generator" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-remap-async-to-generator" "^7.12.13"
"@babel/plugin-syntax-async-generators" "^7.8.0"
-"@babel/plugin-proposal-class-properties@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz#a082ff541f2a29a4821065b8add9346c0c16e5de"
- integrity sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==
+"@babel/plugin-proposal-class-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.13.tgz#3d2ce350367058033c93c098e348161d6dc0d8c8"
+ integrity sha512-8SCJ0Ddrpwv4T7Gwb33EmW1V9PY5lggTO+A8WjyIwxrSHDUyBw4MtF96ifn1n8H806YlxbVCoKXbbmzD6RD+cA==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-create-class-features-plugin" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-proposal-dynamic-import@^7.12.1":
version "7.12.1"
@@ -276,87 +267,87 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
-"@babel/plugin-proposal-export-namespace-from@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz#8b9b8f376b2d88f5dd774e4d24a5cc2e3679b6d4"
- integrity sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw==
+"@babel/plugin-proposal-export-namespace-from@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.13.tgz#393be47a4acd03fa2af6e3cde9b06e33de1b446d"
+ integrity sha512-INAgtFo4OnLN3Y/j0VwAgw3HDXcDtX+C/erMvWzuV9v71r7urb6iyMXu7eM9IgLr1ElLlOkaHjJ0SbCmdOQ3Iw==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
-"@babel/plugin-proposal-json-strings@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.1.tgz#d45423b517714eedd5621a9dfdc03fa9f4eb241c"
- integrity sha512-GoLDUi6U9ZLzlSda2Df++VSqDJg3CG+dR0+iWsv6XRw1rEq+zwt4DirM9yrxW6XWaTpmai1cWJLMfM8qQJf+yw==
+"@babel/plugin-proposal-json-strings@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.13.tgz#ced7888a2db92a3d520a2e35eb421fdb7fcc9b5d"
+ integrity sha512-v9eEi4GiORDg8x+Dmi5r8ibOe0VXoKDeNPYcTTxdGN4eOWikrJfDJCJrr1l5gKGvsNyGJbrfMftC2dTL6oz7pg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-json-strings" "^7.8.0"
-"@babel/plugin-proposal-logical-assignment-operators@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.1.tgz#f2c490d36e1b3c9659241034a5d2cd50263a2751"
- integrity sha512-k8ZmVv0JU+4gcUGeCDZOGd0lCIamU/sMtIiX3UWnUc5yzgq6YUGyEolNYD+MLYKfSzgECPcqetVcJP9Afe/aCA==
+"@babel/plugin-proposal-logical-assignment-operators@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.13.tgz#575b5d9a08d8299eeb4db6430da6e16e5cf14350"
+ integrity sha512-fqmiD3Lz7jVdK6kabeSr1PZlWSUVqSitmHEe3Z00dtGTKieWnX9beafvavc32kjORa5Bai4QNHgFDwWJP+WtSQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
-"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz#3ed4fff31c015e7f3f1467f190dbe545cd7b046c"
- integrity sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==
+"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.13.tgz#24867307285cee4e1031170efd8a7ac807deefde"
+ integrity sha512-Qoxpy+OxhDBI5kRqliJFAl4uWXk3Bn24WeFstPH0iLymFehSAUR8MHpqU7njyXv/qbo7oN6yTy5bfCmXdKpo1Q==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
-"@babel/plugin-proposal-numeric-separator@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.7.tgz#8bf253de8139099fea193b297d23a9d406ef056b"
- integrity sha512-8c+uy0qmnRTeukiGsjLGy6uVs/TFjJchGXUeBqlG4VWYOdJWkhhVPdQ3uHwbmalfJwv2JsV0qffXP4asRfL2SQ==
+"@babel/plugin-proposal-numeric-separator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.13.tgz#bd9da3188e787b5120b4f9d465a8261ce67ed1db"
+ integrity sha512-O1jFia9R8BUCl3ZGB7eitaAPu62TXJRHn7rh+ojNERCFyqRwJMTmhz+tJ+k0CwI6CLjX/ee4qW74FSqlq9I35w==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
-"@babel/plugin-proposal-object-rest-spread@^7.12.1", "@babel/plugin-proposal-object-rest-spread@^7.2.0":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz#def9bd03cea0f9b72283dac0ec22d289c7691069"
- integrity sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==
+"@babel/plugin-proposal-object-rest-spread@^7.12.13", "@babel/plugin-proposal-object-rest-spread@^7.2.0":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.13.tgz#f93f3116381ff94bc676fdcb29d71045cd1ec011"
+ integrity sha512-WvA1okB/0OS/N3Ldb3sziSrXg6sRphsBgqiccfcQq7woEn5wQLNX82Oc4PlaFcdwcWHuQXAtb8ftbS8Fbsg/sg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-object-rest-spread" "^7.8.0"
- "@babel/plugin-transform-parameters" "^7.12.1"
+ "@babel/plugin-transform-parameters" "^7.12.13"
-"@babel/plugin-proposal-optional-catch-binding@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz#ccc2421af64d3aae50b558a71cede929a5ab2942"
- integrity sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==
+"@babel/plugin-proposal-optional-catch-binding@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.13.tgz#4640520afe57728af14b4d1574ba844f263bcae5"
+ integrity sha512-9+MIm6msl9sHWg58NvqpNpLtuFbmpFYk37x8kgnGzAHvX35E1FyAwSUt5hIkSoWJFSAH+iwU8bJ4fcD1zKXOzg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
-"@babel/plugin-proposal-optional-chaining@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.7.tgz#e02f0ea1b5dc59d401ec16fb824679f683d3303c"
- integrity sha512-4ovylXZ0PWmwoOvhU2vhnzVNnm88/Sm9nx7V8BPgMvAzn5zDou3/Awy0EjglyubVHasJj+XCEkr/r1X3P5elCA==
+"@babel/plugin-proposal-optional-chaining@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.13.tgz#63a7d805bc8ce626f3234ee5421a2a7fb23f66d9"
+ integrity sha512-0ZwjGfTcnZqyV3y9DSD1Yk3ebp+sIUpT2YDqP8hovzaNZnQq2Kd7PEqa6iOIUDBXBt7Jl3P7YAcEIL5Pz8u09Q==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
-"@babel/plugin-proposal-private-methods@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.1.tgz#86814f6e7a21374c980c10d38b4493e703f4a389"
- integrity sha512-mwZ1phvH7/NHK6Kf8LP7MYDogGV+DKB1mryFOEwx5EBNQrosvIczzZFTUmWaeujd5xT6G1ELYWUz3CutMhjE1w==
+"@babel/plugin-proposal-private-methods@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.13.tgz#ea78a12554d784ecf7fc55950b752d469d9c4a71"
+ integrity sha512-sV0V57uUwpauixvR7s2o75LmwJI6JECwm5oPUY5beZB1nBl2i37hc7CJGqB5G+58fur5Y6ugvl3LRONk5x34rg==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-create-class-features-plugin" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.1.tgz#2a183958d417765b9eae334f47758e5d6a82e072"
- integrity sha512-MYq+l+PvHuw/rKUz1at/vb6nCnQ2gmJBNaM62z0OgH7B2W1D9pvkpYtlti9bGtizNIU1K3zm4bZF9F91efVY0w==
+"@babel/plugin-proposal-unicode-property-regex@^7.12.13", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.13.tgz#bebde51339be829c17aaaaced18641deb62b39ba"
+ integrity sha512-XyJmZidNfofEkqFV5VC/bLabGmO5QzenPO/YOfGuEbgU+2sSwMmio3YLb4WtBgcmmdwZHyVyv8on77IUjQ5Gvg==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-create-regexp-features-plugin" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-async-generators@^7.8.0":
version "7.8.4"
@@ -365,12 +356,12 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-class-properties@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz#bcb297c5366e79bebadef509549cd93b04f19978"
- integrity sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==
+"@babel/plugin-syntax-class-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10"
+ integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-syntax-dynamic-import@^7.2.0", "@babel/plugin-syntax-dynamic-import@^7.8.0":
version "7.8.3"
@@ -435,296 +426,295 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-top-level-await@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz#dd6c0b357ac1bb142d98537450a319625d13d2a0"
- integrity sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A==
+"@babel/plugin-syntax-top-level-await@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.13.tgz#c5f0fa6e249f5b739727f923540cf7a806130178"
+ integrity sha512-A81F9pDwyS7yM//KwbCSDqy3Uj4NMIurtplxphWxoYtNPov7cJsDkAFNNyVlIZ3jwGycVsurZ+LtOA8gZ376iQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-arrow-functions@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz#8083ffc86ac8e777fbe24b5967c4b2521f3cb2b3"
- integrity sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==
+"@babel/plugin-transform-arrow-functions@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.13.tgz#eda5670b282952100c229f8a3bd49e0f6a72e9fe"
+ integrity sha512-tBtuN6qtCTd+iHzVZVOMNp+L04iIJBpqkdY42tWbmjIT5wvR2kx7gxMBsyhQtFzHwBbyGi9h8J8r9HgnOpQHxg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-async-to-generator@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.1.tgz#3849a49cc2a22e9743cbd6b52926d30337229af1"
- integrity sha512-SDtqoEcarK1DFlRJ1hHRY5HvJUj5kX4qmtpMAm2QnhOlyuMC4TMdCRgW6WXpv93rZeYNeLP22y8Aq2dbcDRM1A==
+"@babel/plugin-transform-async-to-generator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.13.tgz#fed8c69eebf187a535bfa4ee97a614009b24f7ae"
+ integrity sha512-psM9QHcHaDr+HZpRuJcE1PXESuGWSCcbiGFFhhwfzdbTxaGDVzuVtdNYliAwcRo3GFg0Bc8MmI+AvIGYIJG04A==
dependencies:
- "@babel/helper-module-imports" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-remap-async-to-generator" "^7.12.1"
+ "@babel/helper-module-imports" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-remap-async-to-generator" "^7.12.13"
-"@babel/plugin-transform-block-scoped-functions@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.1.tgz#f2a1a365bde2b7112e0a6ded9067fdd7c07905d9"
- integrity sha512-5OpxfuYnSgPalRpo8EWGPzIYf0lHBWORCkj5M0oLBwHdlux9Ri36QqGW3/LR13RSVOAoUUMzoPI/jpE4ABcHoA==
+"@babel/plugin-transform-block-scoped-functions@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.13.tgz#a9bf1836f2a39b4eb6cf09967739de29ea4bf4c4"
+ integrity sha512-zNyFqbc3kI/fVpqwfqkg6RvBgFpC4J18aKKMmv7KdQ/1GgREapSJAykLMVNwfRGO3BtHj3YQZl8kxCXPcVMVeg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-block-scoping@^7.12.11":
- version "7.12.12"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.12.tgz#d93a567a152c22aea3b1929bb118d1d0a175cdca"
- integrity sha512-VOEPQ/ExOVqbukuP7BYJtI5ZxxsmegTwzZ04j1aF0dkSypGo9XpDHuOrABsJu+ie+penpSJheDJ11x1BEZNiyQ==
+"@babel/plugin-transform-block-scoping@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.13.tgz#f36e55076d06f41dfd78557ea039c1b581642e61"
+ integrity sha512-Pxwe0iqWJX4fOOM2kEZeUuAxHMWb9nK+9oh5d11bsLoB0xMg+mkDpt0eYuDZB7ETrY9bbcVlKUGTOGWy7BHsMQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-classes@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz#65e650fcaddd3d88ddce67c0f834a3d436a32db6"
- integrity sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==
+"@babel/plugin-transform-classes@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.13.tgz#9728edc1838b5d62fc93ad830bd523b1fcb0e1f6"
+ integrity sha512-cqZlMlhCC1rVnxE5ZGMtIb896ijL90xppMiuWXcwcOAuFczynpd3KYemb91XFFPi3wJSe/OcrX9lXoowatkkxA==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.10.4"
- "@babel/helper-define-map" "^7.10.4"
- "@babel/helper-function-name" "^7.10.4"
- "@babel/helper-optimise-call-expression" "^7.10.4"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-replace-supers" "^7.12.1"
- "@babel/helper-split-export-declaration" "^7.10.4"
+ "@babel/helper-annotate-as-pure" "^7.12.13"
+ "@babel/helper-function-name" "^7.12.13"
+ "@babel/helper-optimise-call-expression" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-replace-supers" "^7.12.13"
+ "@babel/helper-split-export-declaration" "^7.12.13"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz#d68cf6c9b7f838a8a4144badbe97541ea0904852"
- integrity sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==
+"@babel/plugin-transform-computed-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.13.tgz#6a210647a3d67f21f699cfd2a01333803b27339d"
+ integrity sha512-dDfuROUPGK1mTtLKyDPUavmj2b6kFu82SmgpztBFEO974KMjJT+Ytj3/oWsTUMBmgPcp9J5Pc1SlcAYRpJ2hRA==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-destructuring@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz#b9a570fe0d0a8d460116413cb4f97e8e08b2f847"
- integrity sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==
+"@babel/plugin-transform-destructuring@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.13.tgz#fc56c5176940c5b41735c677124d1d20cecc9aeb"
+ integrity sha512-Dn83KykIFzjhA3FDPA1z4N+yfF3btDGhjnJwxIj0T43tP0flCujnU8fKgEkf0C1biIpSv9NZegPBQ1J6jYkwvQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.4.4":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.1.tgz#a1d16c14862817b6409c0a678d6f9373ca9cd975"
- integrity sha512-B2pXeRKoLszfEW7J4Hg9LoFaWEbr/kzo3teWHmtFCszjRNa/b40f9mfeqZsIDLLt/FjwQ6pz/Gdlwy85xNckBA==
+"@babel/plugin-transform-dotall-regex@^7.12.13", "@babel/plugin-transform-dotall-regex@^7.4.4":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.13.tgz#3f1601cc29905bfcb67f53910f197aeafebb25ad"
+ integrity sha512-foDrozE65ZFdUC2OfgeOCrEPTxdB3yjqxpXh8CH+ipd9CHd4s/iq81kcUpyH8ACGNEPdFqbtzfgzbT/ZGlbDeQ==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-create-regexp-features-plugin" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-duplicate-keys@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.1.tgz#745661baba295ac06e686822797a69fbaa2ca228"
- integrity sha512-iRght0T0HztAb/CazveUpUQrZY+aGKKaWXMJ4uf9YJtqxSUe09j3wteztCUDRHs+SRAL7yMuFqUsLoAKKzgXjw==
+"@babel/plugin-transform-duplicate-keys@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.13.tgz#6f06b87a8b803fd928e54b81c258f0a0033904de"
+ integrity sha512-NfADJiiHdhLBW3pulJlJI2NB0t4cci4WTZ8FtdIuNc2+8pslXdPtRRAEWqUY+m9kNOk2eRYbTAOipAxlrOcwwQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-exponentiation-operator@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz#b0f2ed356ba1be1428ecaf128ff8a24f02830ae0"
- integrity sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==
+"@babel/plugin-transform-exponentiation-operator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.13.tgz#4d52390b9a273e651e4aba6aee49ef40e80cd0a1"
+ integrity sha512-fbUelkM1apvqez/yYx1/oICVnGo2KM5s63mhGylrmXUxK/IAXSIf87QIxVfZldWf4QsOafY6vV3bX8aMHSvNrA==
dependencies:
- "@babel/helper-builder-binary-assignment-operator-visitor" "^7.10.4"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-for-of@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz#07640f28867ed16f9511c99c888291f560921cfa"
- integrity sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==
+"@babel/plugin-transform-for-of@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.13.tgz#561ff6d74d9e1c8879cb12dbaf4a14cd29d15cf6"
+ integrity sha512-xCbdgSzXYmHGyVX3+BsQjcd4hv4vA/FDy7Kc8eOpzKmBBPEOTurt0w5fCRQaGl+GSBORKgJdstQ1rHl4jbNseQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-function-name@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz#2ec76258c70fe08c6d7da154003a480620eba667"
- integrity sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==
+"@babel/plugin-transform-function-name@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.13.tgz#bb024452f9aaed861d374c8e7a24252ce3a50051"
+ integrity sha512-6K7gZycG0cmIwwF7uMK/ZqeCikCGVBdyP2J5SKNCXO5EOHcqi+z7Jwf8AmyDNcBgxET8DrEtCt/mPKPyAzXyqQ==
dependencies:
- "@babel/helper-function-name" "^7.10.4"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-function-name" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-literals@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz#d73b803a26b37017ddf9d3bb8f4dc58bfb806f57"
- integrity sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==
+"@babel/plugin-transform-literals@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.13.tgz#2ca45bafe4a820197cf315794a4d26560fe4bdb9"
+ integrity sha512-FW+WPjSR7hiUxMcKqyNjP05tQ2kmBCdpEpZHY1ARm96tGQCCBvXKnpjILtDplUnJ/eHZ0lALLM+d2lMFSpYJrQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-member-expression-literals@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.1.tgz#496038602daf1514a64d43d8e17cbb2755e0c3ad"
- integrity sha512-1sxePl6z9ad0gFMB9KqmYofk34flq62aqMt9NqliS/7hPEpURUCMbyHXrMPlo282iY7nAvUB1aQd5mg79UD9Jg==
+"@babel/plugin-transform-member-expression-literals@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.13.tgz#5ffa66cd59b9e191314c9f1f803b938e8c081e40"
+ integrity sha512-kxLkOsg8yir4YeEPHLuO2tXP9R/gTjpuTOjshqSpELUN3ZAg2jfDnKUvzzJxObun38sw3wm4Uu69sX/zA7iRvg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-modules-amd@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.1.tgz#3154300b026185666eebb0c0ed7f8415fefcf6f9"
- integrity sha512-tDW8hMkzad5oDtzsB70HIQQRBiTKrhfgwC/KkJeGsaNFTdWhKNt/BiE8c5yj19XiGyrxpbkOfH87qkNg1YGlOQ==
+"@babel/plugin-transform-modules-amd@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.13.tgz#43db16249b274ee2e551e2422090aa1c47692d56"
+ integrity sha512-JHLOU0o81m5UqG0Ulz/fPC68/v+UTuGTWaZBUwpEk1fYQ1D9LfKV6MPn4ttJKqRo5Lm460fkzjLTL4EHvCprvA==
dependencies:
- "@babel/helper-module-transforms" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-module-transforms" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-commonjs@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz#fa403124542636c786cf9b460a0ffbb48a86e648"
- integrity sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==
+"@babel/plugin-transform-modules-commonjs@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.13.tgz#5043b870a784a8421fa1fd9136a24f294da13e50"
+ integrity sha512-OGQoeVXVi1259HjuoDnsQMlMkT9UkZT9TpXAsqWplS/M0N1g3TJAn/ByOCeQu7mfjc5WpSsRU+jV1Hd89ts0kQ==
dependencies:
- "@babel/helper-module-transforms" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-simple-access" "^7.12.1"
+ "@babel/helper-module-transforms" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-simple-access" "^7.12.13"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-systemjs@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.1.tgz#663fea620d593c93f214a464cd399bf6dc683086"
- integrity sha512-Hn7cVvOavVh8yvW6fLwveFqSnd7rbQN3zJvoPNyNaQSvgfKmDBO9U1YL9+PCXGRlZD9tNdWTy5ACKqMuzyn32Q==
+"@babel/plugin-transform-modules-systemjs@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.13.tgz#351937f392c7f07493fc79b2118201d50404a3c5"
+ integrity sha512-aHfVjhZ8QekaNF/5aNdStCGzwTbU7SI5hUybBKlMzqIMC7w7Ho8hx5a4R/DkTHfRfLwHGGxSpFt9BfxKCoXKoA==
dependencies:
- "@babel/helper-hoist-variables" "^7.10.4"
- "@babel/helper-module-transforms" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-validator-identifier" "^7.10.4"
+ "@babel/helper-hoist-variables" "^7.12.13"
+ "@babel/helper-module-transforms" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-validator-identifier" "^7.12.11"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-umd@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.1.tgz#eb5a218d6b1c68f3d6217b8fa2cc82fec6547902"
- integrity sha512-aEIubCS0KHKM0zUos5fIoQm+AZUMt1ZvMpqz0/H5qAQ7vWylr9+PLYurT+Ic7ID/bKLd4q8hDovaG3Zch2uz5Q==
+"@babel/plugin-transform-modules-umd@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.13.tgz#26c66f161d3456674e344b4b1255de4d530cfb37"
+ integrity sha512-BgZndyABRML4z6ibpi7Z98m4EVLFI9tVsZDADC14AElFaNHHBcJIovflJ6wtCqFxwy2YJ1tJhGRsr0yLPKoN+w==
dependencies:
- "@babel/helper-module-transforms" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-module-transforms" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.1.tgz#b407f5c96be0d9f5f88467497fa82b30ac3e8753"
- integrity sha512-tB43uQ62RHcoDp9v2Nsf+dSM8sbNodbEicbQNA53zHz8pWUhsgHSJCGpt7daXxRydjb0KnfmB+ChXOv3oADp1Q==
+"@babel/plugin-transform-named-capturing-groups-regex@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.13.tgz#2213725a5f5bbbe364b50c3ba5998c9599c5c9d9"
+ integrity sha512-Xsm8P2hr5hAxyYblrfACXpQKdQbx4m2df9/ZZSQ8MAhsadw06+jW7s9zsSw6he+mJZXRlVMyEnVktJo4zjk1WA==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.12.1"
+ "@babel/helper-create-regexp-features-plugin" "^7.12.13"
-"@babel/plugin-transform-new-target@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.1.tgz#80073f02ee1bb2d365c3416490e085c95759dec0"
- integrity sha512-+eW/VLcUL5L9IvJH7rT1sT0CzkdUTvPrXC2PXTn/7z7tXLBuKvezYbGdxD5WMRoyvyaujOq2fWoKl869heKjhw==
+"@babel/plugin-transform-new-target@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.13.tgz#e22d8c3af24b150dd528cbd6e685e799bf1c351c"
+ integrity sha512-/KY2hbLxrG5GTQ9zzZSc3xWiOy379pIETEhbtzwZcw9rvuaVV4Fqy7BYGYOWZnaoXIQYbbJ0ziXLa/sKcGCYEQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-object-super@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.1.tgz#4ea08696b8d2e65841d0c7706482b048bed1066e"
- integrity sha512-AvypiGJH9hsquNUn+RXVcBdeE3KHPZexWRdimhuV59cSoOt5kFBmqlByorAeUlGG2CJWd0U+4ZtNKga/TB0cAw==
+"@babel/plugin-transform-object-super@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.13.tgz#b4416a2d63b8f7be314f3d349bd55a9c1b5171f7"
+ integrity sha512-JzYIcj3XtYspZDV8j9ulnoMPZZnF/Cj0LUxPOjR89BdBVx+zYJI9MdMIlUZjbXDX+6YVeS6I3e8op+qQ3BYBoQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-replace-supers" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.12.13"
+ "@babel/helper-replace-supers" "^7.12.13"
-"@babel/plugin-transform-parameters@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz#d2e963b038771650c922eff593799c96d853255d"
- integrity sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==
+"@babel/plugin-transform-parameters@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.13.tgz#461e76dfb63c2dfd327b8a008a9e802818ce9853"
+ integrity sha512-e7QqwZalNiBRHCpJg/P8s/VJeSRYgmtWySs1JwvfwPqhBbiWfOcHDKdeAi6oAyIimoKWBlwc8oTgbZHdhCoVZA==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-property-literals@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.1.tgz#41bc81200d730abb4456ab8b3fbd5537b59adecd"
- integrity sha512-6MTCR/mZ1MQS+AwZLplX4cEySjCpnIF26ToWo942nqn8hXSm7McaHQNeGx/pt7suI1TWOWMfa/NgBhiqSnX0cQ==
+"@babel/plugin-transform-property-literals@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.13.tgz#4e6a9e37864d8f1b3bc0e2dce7bf8857db8b1a81"
+ integrity sha512-nqVigwVan+lR+g8Fj8Exl0UQX2kymtjcWfMOYM1vTYEKujeyv2SkMgazf2qNcK7l4SDiKyTA/nHCPqL4e2zo1A==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-regenerator@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz#5f0a28d842f6462281f06a964e88ba8d7ab49753"
- integrity sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==
+"@babel/plugin-transform-regenerator@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.13.tgz#b628bcc9c85260ac1aeb05b45bde25210194a2f5"
+ integrity sha512-lxb2ZAvSLyJ2PEe47hoGWPmW22v7CtSl9jW8mingV4H2sEX/JOcrAj2nPuGWi56ERUm2bUpjKzONAuT6HCn2EA==
dependencies:
regenerator-transform "^0.14.2"
-"@babel/plugin-transform-reserved-words@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.1.tgz#6fdfc8cc7edcc42b36a7c12188c6787c873adcd8"
- integrity sha512-pOnUfhyPKvZpVyBHhSBoX8vfA09b7r00Pmm1sH+29ae2hMTKVmSp4Ztsr8KBKjLjx17H0eJqaRC3bR2iThM54A==
+"@babel/plugin-transform-reserved-words@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.13.tgz#7d9988d4f06e0fe697ea1d9803188aa18b472695"
+ integrity sha512-xhUPzDXxZN1QfiOy/I5tyye+TRz6lA7z6xaT4CLOjPRMVg1ldRf0LHw0TDBpYL4vG78556WuHdyO9oi5UmzZBg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/plugin-transform-runtime@^7.2.0":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.10.tgz#af0fded4e846c4b37078e8e5d06deac6cd848562"
- integrity sha512-xOrUfzPxw7+WDm9igMgQCbO3cJKymX7dFdsgRr1eu9n3KjjyU4pptIXbXPseQDquw+W+RuJEJMHKHNsPNNm3CA==
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.13.tgz#93a47630c80dab152a2b71011d1e1fd37b31b8e1"
+ integrity sha512-ho1CV2lm8qn2AxD3JdvPgtLVHCYLDaOszlf0gosdHcJAIfgNizag76WI+FoibrvfT+h117fgf8h+wgvo4O2qbA==
dependencies:
- "@babel/helper-module-imports" "^7.12.5"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-module-imports" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
semver "^5.5.1"
-"@babel/plugin-transform-shorthand-properties@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz#0bf9cac5550fce0cfdf043420f661d645fdc75e3"
- integrity sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==
+"@babel/plugin-transform-shorthand-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.13.tgz#db755732b70c539d504c6390d9ce90fe64aff7ad"
+ integrity sha512-xpL49pqPnLtf0tVluuqvzWIgLEhuPpZzvs2yabUHSKRNlN7ScYU7aMlmavOeyXJZKgZKQRBlh8rHbKiJDraTSw==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-spread@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz#527f9f311be4ec7fdc2b79bb89f7bf884b3e1e1e"
- integrity sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==
+"@babel/plugin-transform-spread@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.13.tgz#ca0d5645abbd560719c354451b849f14df4a7949"
+ integrity sha512-dUCrqPIowjqk5pXsx1zPftSq4sT0aCeZVAxhdgs3AMgyaDmoUT0G+5h3Dzja27t76aUEIJWlFgPJqJ/d4dbTtg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
-"@babel/plugin-transform-sticky-regex@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.7.tgz#560224613ab23987453948ed21d0b0b193fa7fad"
- integrity sha512-VEiqZL5N/QvDbdjfYQBhruN0HYjSPjC4XkeqW4ny/jNtH9gcbgaqBIXYEZCNnESMAGs0/K/R7oFGMhOyu/eIxg==
+"@babel/plugin-transform-sticky-regex@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.13.tgz#760ffd936face73f860ae646fb86ee82f3d06d1f"
+ integrity sha512-Jc3JSaaWT8+fr7GRvQP02fKDsYk4K/lYwWq38r/UGfaxo89ajud321NH28KRQ7xy1Ybc0VUE5Pz8psjNNDUglg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-template-literals@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz#b43ece6ed9a79c0c71119f576d299ef09d942843"
- integrity sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==
+"@babel/plugin-transform-template-literals@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.13.tgz#655037b07ebbddaf3b7752f55d15c2fd6f5aa865"
+ integrity sha512-arIKlWYUgmNsF28EyfmiQHJLJFlAJNYkuQO10jL46ggjBpeb2re1P9K9YGxNJB45BqTbaslVysXDYm/g3sN/Qg==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-typeof-symbol@^7.12.10":
- version "7.12.10"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.10.tgz#de01c4c8f96580bd00f183072b0d0ecdcf0dec4b"
- integrity sha512-JQ6H8Rnsogh//ijxspCjc21YPd3VLVoYtAwv3zQmqAt8YGYUtdo5usNhdl4b9/Vir2kPFZl6n1h0PfUz4hJhaA==
+"@babel/plugin-transform-typeof-symbol@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.13.tgz#785dd67a1f2ea579d9c2be722de8c84cb85f5a7f"
+ integrity sha512-eKv/LmUJpMnu4npgfvs3LiHhJua5fo/CysENxa45YCQXZwKnGCQKAg87bvoqSW1fFT+HA32l03Qxsm8ouTY3ZQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-unicode-escapes@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.1.tgz#5232b9f81ccb07070b7c3c36c67a1b78f1845709"
- integrity sha512-I8gNHJLIc7GdApm7wkVnStWssPNbSRMPtgHdmH3sRM1zopz09UWPS4x5V4n1yz/MIWTVnJ9sp6IkuXdWM4w+2Q==
+"@babel/plugin-transform-unicode-escapes@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.13.tgz#840ced3b816d3b5127dd1d12dcedc5dead1a5e74"
+ integrity sha512-0bHEkdwJ/sN/ikBHfSmOXPypN/beiGqjo+o4/5K+vxEFNPRPdImhviPakMKG4x96l85emoa0Z6cDflsdBusZbw==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-transform-unicode-regex@^7.12.1":
- version "7.12.1"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz#cc9661f61390db5c65e3febaccefd5c6ac3faecb"
- integrity sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==
+"@babel/plugin-transform-unicode-regex@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.13.tgz#b52521685804e155b1202e83fc188d34bb70f5ac"
+ integrity sha512-mDRzSNY7/zopwisPZ5kM9XKCfhchqIYwAKRERtEnhYscZB79VRekuRSoYbN0+KVe3y8+q1h6A4svXtP7N+UoCA==
dependencies:
- "@babel/helper-create-regexp-features-plugin" "^7.12.1"
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-create-regexp-features-plugin" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/preset-env@^7.2.0":
- version "7.12.11"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.11.tgz#55d5f7981487365c93dbbc84507b1c7215e857f9"
- integrity sha512-j8Tb+KKIXKYlDBQyIOy4BLxzv1NUOwlHfZ74rvW+Z0Gp4/cI2IMDPBWAgWceGcE7aep9oL/0K9mlzlMGxA8yNw==
- dependencies:
- "@babel/compat-data" "^7.12.7"
- "@babel/helper-compilation-targets" "^7.12.5"
- "@babel/helper-module-imports" "^7.12.5"
- "@babel/helper-plugin-utils" "^7.10.4"
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.13.tgz#3aa2d09cf7d255177538dff292ac9af29ad46525"
+ integrity sha512-JUVlizG8SoFTz4LmVUL8++aVwzwxcvey3N0j1tRbMAXVEy95uQ/cnEkmEKHN00Bwq4voAV3imQGnQvpkLAxsrw==
+ dependencies:
+ "@babel/compat-data" "^7.12.13"
+ "@babel/helper-compilation-targets" "^7.12.13"
+ "@babel/helper-module-imports" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.12.13"
"@babel/helper-validator-option" "^7.12.11"
- "@babel/plugin-proposal-async-generator-functions" "^7.12.1"
- "@babel/plugin-proposal-class-properties" "^7.12.1"
+ "@babel/plugin-proposal-async-generator-functions" "^7.12.13"
+ "@babel/plugin-proposal-class-properties" "^7.12.13"
"@babel/plugin-proposal-dynamic-import" "^7.12.1"
- "@babel/plugin-proposal-export-namespace-from" "^7.12.1"
- "@babel/plugin-proposal-json-strings" "^7.12.1"
- "@babel/plugin-proposal-logical-assignment-operators" "^7.12.1"
- "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.1"
- "@babel/plugin-proposal-numeric-separator" "^7.12.7"
- "@babel/plugin-proposal-object-rest-spread" "^7.12.1"
- "@babel/plugin-proposal-optional-catch-binding" "^7.12.1"
- "@babel/plugin-proposal-optional-chaining" "^7.12.7"
- "@babel/plugin-proposal-private-methods" "^7.12.1"
- "@babel/plugin-proposal-unicode-property-regex" "^7.12.1"
+ "@babel/plugin-proposal-export-namespace-from" "^7.12.13"
+ "@babel/plugin-proposal-json-strings" "^7.12.13"
+ "@babel/plugin-proposal-logical-assignment-operators" "^7.12.13"
+ "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.13"
+ "@babel/plugin-proposal-numeric-separator" "^7.12.13"
+ "@babel/plugin-proposal-object-rest-spread" "^7.12.13"
+ "@babel/plugin-proposal-optional-catch-binding" "^7.12.13"
+ "@babel/plugin-proposal-optional-chaining" "^7.12.13"
+ "@babel/plugin-proposal-private-methods" "^7.12.13"
+ "@babel/plugin-proposal-unicode-property-regex" "^7.12.13"
"@babel/plugin-syntax-async-generators" "^7.8.0"
- "@babel/plugin-syntax-class-properties" "^7.12.1"
+ "@babel/plugin-syntax-class-properties" "^7.12.13"
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
"@babel/plugin-syntax-json-strings" "^7.8.0"
@@ -734,41 +724,41 @@
"@babel/plugin-syntax-object-rest-spread" "^7.8.0"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
- "@babel/plugin-syntax-top-level-await" "^7.12.1"
- "@babel/plugin-transform-arrow-functions" "^7.12.1"
- "@babel/plugin-transform-async-to-generator" "^7.12.1"
- "@babel/plugin-transform-block-scoped-functions" "^7.12.1"
- "@babel/plugin-transform-block-scoping" "^7.12.11"
- "@babel/plugin-transform-classes" "^7.12.1"
- "@babel/plugin-transform-computed-properties" "^7.12.1"
- "@babel/plugin-transform-destructuring" "^7.12.1"
- "@babel/plugin-transform-dotall-regex" "^7.12.1"
- "@babel/plugin-transform-duplicate-keys" "^7.12.1"
- "@babel/plugin-transform-exponentiation-operator" "^7.12.1"
- "@babel/plugin-transform-for-of" "^7.12.1"
- "@babel/plugin-transform-function-name" "^7.12.1"
- "@babel/plugin-transform-literals" "^7.12.1"
- "@babel/plugin-transform-member-expression-literals" "^7.12.1"
- "@babel/plugin-transform-modules-amd" "^7.12.1"
- "@babel/plugin-transform-modules-commonjs" "^7.12.1"
- "@babel/plugin-transform-modules-systemjs" "^7.12.1"
- "@babel/plugin-transform-modules-umd" "^7.12.1"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.12.1"
- "@babel/plugin-transform-new-target" "^7.12.1"
- "@babel/plugin-transform-object-super" "^7.12.1"
- "@babel/plugin-transform-parameters" "^7.12.1"
- "@babel/plugin-transform-property-literals" "^7.12.1"
- "@babel/plugin-transform-regenerator" "^7.12.1"
- "@babel/plugin-transform-reserved-words" "^7.12.1"
- "@babel/plugin-transform-shorthand-properties" "^7.12.1"
- "@babel/plugin-transform-spread" "^7.12.1"
- "@babel/plugin-transform-sticky-regex" "^7.12.7"
- "@babel/plugin-transform-template-literals" "^7.12.1"
- "@babel/plugin-transform-typeof-symbol" "^7.12.10"
- "@babel/plugin-transform-unicode-escapes" "^7.12.1"
- "@babel/plugin-transform-unicode-regex" "^7.12.1"
+ "@babel/plugin-syntax-top-level-await" "^7.12.13"
+ "@babel/plugin-transform-arrow-functions" "^7.12.13"
+ "@babel/plugin-transform-async-to-generator" "^7.12.13"
+ "@babel/plugin-transform-block-scoped-functions" "^7.12.13"
+ "@babel/plugin-transform-block-scoping" "^7.12.13"
+ "@babel/plugin-transform-classes" "^7.12.13"
+ "@babel/plugin-transform-computed-properties" "^7.12.13"
+ "@babel/plugin-transform-destructuring" "^7.12.13"
+ "@babel/plugin-transform-dotall-regex" "^7.12.13"
+ "@babel/plugin-transform-duplicate-keys" "^7.12.13"
+ "@babel/plugin-transform-exponentiation-operator" "^7.12.13"
+ "@babel/plugin-transform-for-of" "^7.12.13"
+ "@babel/plugin-transform-function-name" "^7.12.13"
+ "@babel/plugin-transform-literals" "^7.12.13"
+ "@babel/plugin-transform-member-expression-literals" "^7.12.13"
+ "@babel/plugin-transform-modules-amd" "^7.12.13"
+ "@babel/plugin-transform-modules-commonjs" "^7.12.13"
+ "@babel/plugin-transform-modules-systemjs" "^7.12.13"
+ "@babel/plugin-transform-modules-umd" "^7.12.13"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.12.13"
+ "@babel/plugin-transform-new-target" "^7.12.13"
+ "@babel/plugin-transform-object-super" "^7.12.13"
+ "@babel/plugin-transform-parameters" "^7.12.13"
+ "@babel/plugin-transform-property-literals" "^7.12.13"
+ "@babel/plugin-transform-regenerator" "^7.12.13"
+ "@babel/plugin-transform-reserved-words" "^7.12.13"
+ "@babel/plugin-transform-shorthand-properties" "^7.12.13"
+ "@babel/plugin-transform-spread" "^7.12.13"
+ "@babel/plugin-transform-sticky-regex" "^7.12.13"
+ "@babel/plugin-transform-template-literals" "^7.12.13"
+ "@babel/plugin-transform-typeof-symbol" "^7.12.13"
+ "@babel/plugin-transform-unicode-escapes" "^7.12.13"
+ "@babel/plugin-transform-unicode-regex" "^7.12.13"
"@babel/preset-modules" "^0.1.3"
- "@babel/types" "^7.12.11"
+ "@babel/types" "^7.12.13"
core-js-compat "^3.8.0"
semver "^5.5.0"
@@ -784,40 +774,40 @@
esutils "^2.0.2"
"@babel/runtime@^7.2.0", "@babel/runtime@^7.8.4":
- version "7.12.5"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
- integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.13.tgz#0a21452352b02542db0ffb928ac2d3ca7cb6d66d"
+ integrity sha512-8+3UMPBrjFa/6TtKi/7sehPKqfAm4g6K+YQjyyFOLUTxzOngcRZTlAVY8sc2CORJYqdHQY8gRPHmn+qo15rCBw==
dependencies:
regenerator-runtime "^0.13.4"
-"@babel/template@^7.10.4", "@babel/template@^7.12.7":
- version "7.12.7"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.7.tgz#c817233696018e39fbb6c491d2fb684e05ed43bc"
- integrity sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==
- dependencies:
- "@babel/code-frame" "^7.10.4"
- "@babel/parser" "^7.12.7"
- "@babel/types" "^7.12.7"
-
-"@babel/traverse@^7.10.4", "@babel/traverse@^7.12.1", "@babel/traverse@^7.12.10", "@babel/traverse@^7.12.5":
- version "7.12.12"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.12.tgz#d0cd87892704edd8da002d674bc811ce64743376"
- integrity sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==
- dependencies:
- "@babel/code-frame" "^7.12.11"
- "@babel/generator" "^7.12.11"
- "@babel/helper-function-name" "^7.12.11"
- "@babel/helper-split-export-declaration" "^7.12.11"
- "@babel/parser" "^7.12.11"
- "@babel/types" "^7.12.12"
+"@babel/template@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.13.tgz#530265be8a2589dbb37523844c5bcb55947fb327"
+ integrity sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA==
+ dependencies:
+ "@babel/code-frame" "^7.12.13"
+ "@babel/parser" "^7.12.13"
+ "@babel/types" "^7.12.13"
+
+"@babel/traverse@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.13.tgz#689f0e4b4c08587ad26622832632735fb8c4e0c0"
+ integrity sha512-3Zb4w7eE/OslI0fTp8c7b286/cQps3+vdLW3UcwC8VSJC6GbKn55aeVVu2QJNuCDoeKyptLOFrPq8WqZZBodyA==
+ dependencies:
+ "@babel/code-frame" "^7.12.13"
+ "@babel/generator" "^7.12.13"
+ "@babel/helper-function-name" "^7.12.13"
+ "@babel/helper-split-export-declaration" "^7.12.13"
+ "@babel/parser" "^7.12.13"
+ "@babel/types" "^7.12.13"
debug "^4.1.0"
globals "^11.1.0"
lodash "^4.17.19"
-"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.12.1", "@babel/types@^7.12.10", "@babel/types@^7.12.11", "@babel/types@^7.12.12", "@babel/types@^7.12.5", "@babel/types@^7.12.7", "@babel/types@^7.4.4":
- version "7.12.12"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.12.tgz#4608a6ec313abbd87afa55004d373ad04a96c299"
- integrity sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==
+"@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.4.4":
+ version "7.12.13"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.13.tgz#8be1aa8f2c876da11a9cf650c0ecf656913ad611"
+ integrity sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ==
dependencies:
"@babel/helper-validator-identifier" "^7.12.11"
lodash "^4.17.19"
@@ -1422,7 +1412,7 @@ bluebird@^3.1.1, bluebird@^3.5.5:
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
-bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.4.0:
+bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9:
version "4.11.9"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828"
integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==
@@ -1501,7 +1491,7 @@ braces@~3.0.2:
dependencies:
fill-range "^7.0.1"
-brorand@^1.0.1:
+brorand@^1.0.1, brorand@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
@@ -2636,22 +2626,22 @@ ejs@^2.6.1:
integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==
electron-to-chromium@^1.3.649:
- version "1.3.650"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.650.tgz#24e821fff2ed61fd71fee092f2a0631b3c0c22a6"
- integrity sha512-j6pRuNylFBbroG6NB8Lw/Im9oDY74s2zWHBP5TmdYg73cBuL6cz//SMgolVa0gIJk/DSL+kO7baJ1DSXW1FUZg==
+ version "1.3.652"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.652.tgz#9465d884d609acffd131ba71096de7bfabd63670"
+ integrity sha512-85J5D0Ksxjq2MIHfgwOURRej72UMlexbaa7t+oKTJan3Pa/RBE8vJ4/JzwaQjLCElPvd0XeLWi7+xYTVrq96aA==
elliptic@^6.5.3:
- version "6.5.3"
- resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6"
- integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==
+ version "6.5.4"
+ resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
+ integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
dependencies:
- bn.js "^4.4.0"
- brorand "^1.0.1"
+ bn.js "^4.11.9"
+ brorand "^1.1.0"
hash.js "^1.0.0"
- hmac-drbg "^1.0.0"
- inherits "^2.0.1"
- minimalistic-assert "^1.0.0"
- minimalistic-crypto-utils "^1.0.0"
+ hmac-drbg "^1.0.1"
+ inherits "^2.0.4"
+ minimalistic-assert "^1.0.1"
+ minimalistic-crypto-utils "^1.0.1"
emoji-regex@^7.0.1:
version "7.0.3"
@@ -3247,9 +3237,9 @@ get-caller-file@^2.0.1:
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
get-intrinsic@^1.0.2:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.0.tgz#892e62931e6938c8a23ea5aaebcfb67bd97da97e"
- integrity sha512-M11rgtQp5GZMZzDL7jLTNxbDfurpzuau5uqRWDPvlHjfvg3TdScAZo96GLvhMjImrmR8uAt0FS2RLoMrfWGKlg==
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6"
+ integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==
dependencies:
function-bind "^1.1.1"
has "^1.0.3"
@@ -3479,7 +3469,7 @@ hex-color-regex@^1.1.0:
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
-hmac-drbg@^1.0.0:
+hmac-drbg@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=
@@ -4506,7 +4496,7 @@ minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
-minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
+minimalistic-crypto-utils@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
diff --git a/public/v2/js/dashboard.js b/public/v2/js/dashboard.js
index b6b1ef8248..37c9882951 100755
--- a/public/v2/js/dashboard.js
+++ b/public/v2/js/dashboard.js
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{235:function(t,e,s){s(409),t.exports=s(413)},238:function(t,e,s){"use strict";s(52)},239:function(t,e,s){(t.exports=s(24)(!1)).push([t.i,".dropdown-item[data-v-03e62f58],.dropdown-item[data-v-03e62f58]:hover{color:#212529}",""])},267:function(t,e,s){var a={"./af":61,"./af.js":61,"./ar":62,"./ar-dz":63,"./ar-dz.js":63,"./ar-kw":64,"./ar-kw.js":64,"./ar-ly":65,"./ar-ly.js":65,"./ar-ma":66,"./ar-ma.js":66,"./ar-sa":67,"./ar-sa.js":67,"./ar-tn":68,"./ar-tn.js":68,"./ar.js":62,"./az":69,"./az.js":69,"./be":70,"./be.js":70,"./bg":71,"./bg.js":71,"./bm":72,"./bm.js":72,"./bn":73,"./bn-bd":74,"./bn-bd.js":74,"./bn.js":73,"./bo":75,"./bo.js":75,"./br":76,"./br.js":76,"./bs":77,"./bs.js":77,"./ca":78,"./ca.js":78,"./cs":79,"./cs.js":79,"./cv":80,"./cv.js":80,"./cy":81,"./cy.js":81,"./da":82,"./da.js":82,"./de":83,"./de-at":84,"./de-at.js":84,"./de-ch":85,"./de-ch.js":85,"./de.js":83,"./dv":86,"./dv.js":86,"./el":87,"./el.js":87,"./en-au":88,"./en-au.js":88,"./en-ca":89,"./en-ca.js":89,"./en-gb":90,"./en-gb.js":90,"./en-ie":91,"./en-ie.js":91,"./en-il":92,"./en-il.js":92,"./en-in":93,"./en-in.js":93,"./en-nz":94,"./en-nz.js":94,"./en-sg":95,"./en-sg.js":95,"./eo":96,"./eo.js":96,"./es":97,"./es-do":98,"./es-do.js":98,"./es-mx":99,"./es-mx.js":99,"./es-us":100,"./es-us.js":100,"./es.js":97,"./et":101,"./et.js":101,"./eu":102,"./eu.js":102,"./fa":103,"./fa.js":103,"./fi":104,"./fi.js":104,"./fil":105,"./fil.js":105,"./fo":106,"./fo.js":106,"./fr":107,"./fr-ca":108,"./fr-ca.js":108,"./fr-ch":109,"./fr-ch.js":109,"./fr.js":107,"./fy":110,"./fy.js":110,"./ga":111,"./ga.js":111,"./gd":112,"./gd.js":112,"./gl":113,"./gl.js":113,"./gom-deva":114,"./gom-deva.js":114,"./gom-latn":115,"./gom-latn.js":115,"./gu":116,"./gu.js":116,"./he":117,"./he.js":117,"./hi":118,"./hi.js":118,"./hr":119,"./hr.js":119,"./hu":120,"./hu.js":120,"./hy-am":121,"./hy-am.js":121,"./id":122,"./id.js":122,"./is":123,"./is.js":123,"./it":124,"./it-ch":125,"./it-ch.js":125,"./it.js":124,"./ja":126,"./ja.js":126,"./jv":127,"./jv.js":127,"./ka":128,"./ka.js":128,"./kk":129,"./kk.js":129,"./km":130,"./km.js":130,"./kn":131,"./kn.js":131,"./ko":132,"./ko.js":132,"./ku":133,"./ku.js":133,"./ky":134,"./ky.js":134,"./lb":135,"./lb.js":135,"./lo":136,"./lo.js":136,"./lt":137,"./lt.js":137,"./lv":138,"./lv.js":138,"./me":139,"./me.js":139,"./mi":140,"./mi.js":140,"./mk":141,"./mk.js":141,"./ml":142,"./ml.js":142,"./mn":143,"./mn.js":143,"./mr":144,"./mr.js":144,"./ms":145,"./ms-my":146,"./ms-my.js":146,"./ms.js":145,"./mt":147,"./mt.js":147,"./my":148,"./my.js":148,"./nb":149,"./nb.js":149,"./ne":150,"./ne.js":150,"./nl":151,"./nl-be":152,"./nl-be.js":152,"./nl.js":151,"./nn":153,"./nn.js":153,"./oc-lnc":154,"./oc-lnc.js":154,"./pa-in":155,"./pa-in.js":155,"./pl":156,"./pl.js":156,"./pt":157,"./pt-br":158,"./pt-br.js":158,"./pt.js":157,"./ro":159,"./ro.js":159,"./ru":160,"./ru.js":160,"./sd":161,"./sd.js":161,"./se":162,"./se.js":162,"./si":163,"./si.js":163,"./sk":164,"./sk.js":164,"./sl":165,"./sl.js":165,"./sq":166,"./sq.js":166,"./sr":167,"./sr-cyrl":168,"./sr-cyrl.js":168,"./sr.js":167,"./ss":169,"./ss.js":169,"./sv":170,"./sv.js":170,"./sw":171,"./sw.js":171,"./ta":172,"./ta.js":172,"./te":173,"./te.js":173,"./tet":174,"./tet.js":174,"./tg":175,"./tg.js":175,"./th":176,"./th.js":176,"./tk":177,"./tk.js":177,"./tl-ph":178,"./tl-ph.js":178,"./tlh":179,"./tlh.js":179,"./tr":180,"./tr.js":180,"./tzl":181,"./tzl.js":181,"./tzm":182,"./tzm-latn":183,"./tzm-latn.js":183,"./tzm.js":182,"./ug-cn":184,"./ug-cn.js":184,"./uk":185,"./uk.js":185,"./ur":186,"./ur.js":186,"./uz":187,"./uz-latn":188,"./uz-latn.js":188,"./uz.js":187,"./vi":189,"./vi.js":189,"./x-pseudo":190,"./x-pseudo.js":190,"./yo":191,"./yo.js":191,"./zh-cn":192,"./zh-cn.js":192,"./zh-hk":193,"./zh-hk.js":193,"./zh-mo":194,"./zh-mo.js":194,"./zh-tw":195,"./zh-tw.js":195};function r(t){var e=n(t);return s(e)}function n(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}r.keys=function(){return Object.keys(a)},r.resolve=n,t.exports=r,r.id=267},409:function(t,e,s){"use strict";s.r(e);var a={name:"Dashboard",created:function(){},computed:{},methods:{}},r=s(1),n=Object(r.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("top-boxes"),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-account")],1)]),t._v(" "),s("main-account-list"),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-budget-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-category-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-debit-list")],1),t._v(" "),s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-credit-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-piggy-list")],1),t._v(" "),s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-bills-list")],1)])],1)}),[],!1,null,null,null).exports,i={name:"TopBoxes",props:{},data:function(){return{summary:[],balances:[],billsPaid:[],billsUnpaid:[],leftToSpend:[],netWorth:[]}},computed:{prefCurrencyBalances:function(){return this.filterOnCurrency(this.balances)},notPrefCurrencyBalances:function(){return this.filterOnNotCurrency(this.balances)},prefBillsUnpaid:function(){return this.filterOnCurrency(this.billsUnpaid)},notPrefBillsUnpaid:function(){return this.filterOnNotCurrency(this.billsUnpaid)},prefLeftToSpend:function(){return this.filterOnCurrency(this.leftToSpend)},notPrefLeftToSpend:function(){return this.filterOnNotCurrency(this.leftToSpend)},prefNetWorth:function(){return this.filterOnCurrency(this.netWorth)},notPrefNetWorth:function(){return this.filterOnNotCurrency(this.netWorth)},currencyCode:function(){return this.$store.getters.currencyCode},currencyId:function(){return this.$store.getters.currencyId}},created:function(){this.prepareComponent()},methods:{filterOnCurrency:function(t){var e=[];for(var s in t)t.hasOwnProperty(s)&&t[s].currency_id===this.currencyId&&e.push(t[s]);return 0===e.length&&t.hasOwnProperty(0)&&e.push(t[0]),e},filterOnNotCurrency:function(t){var e=[];for(var s in t)t.hasOwnProperty(s)&&t[s].currency_id!==this.currencyId&&e.push(t[s]);return e},prepareComponent:function(){var t=this;axios.get("./api/v1/summary/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.summary=e.data,t.buildComponent()}))},buildComponent:function(){this.getBalanceEntries(),this.getBillsEntries(),this.getLeftToSpend(),this.getNetWorth()},hasCurrency:function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].currency_id===this.currencyId)return!0;return!1},getBalanceEntries:function(){this.balances=this.getKeyedEntries("balance-in-")},getNetWorth:function(){this.netWorth=this.getKeyedEntries("net-worth-in-")},getLeftToSpend:function(){this.leftToSpend=this.getKeyedEntries("left-to-spend-in-")},getBillsEntries:function(){this.billsPaid=this.getKeyedEntries("bills-paid-in-"),this.billsUnpaid=this.getKeyedEntries("bills-unpaid-in-")},getKeyedEntries:function(t){var e=[];for(var s in this.summary)this.summary.hasOwnProperty(s)&&t===s.substr(0,t.length)&&e.push(this.summary[s]);return e}}},c=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(0),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.balance")))]),t._v(" "),t._l(t.prefCurrencyBalances,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(1),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefCurrencyBalances,(function(e,a){return s("span",{attrs:{title:e.sub_title}},[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefCurrencyBalances.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefCurrencyBalances.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(2),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.bills_to_pay")))]),t._v(" "),t._l(t.prefBillsUnpaid,(function(e){return s("span",{staticClass:"info-box-number"},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(3),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefBillsUnpaid,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefBillsUnpaid.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefBillsUnpaid.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(4),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.left_to_spend")))]),t._v(" "),t._l(t.prefLeftToSpend,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(5),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefLeftToSpend,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefLeftToSpend.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefLeftToSpend.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(6),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[s("span",[t._v(t._s(t.$t("firefly.net_worth")))])]),t._v(" "),t._l(t.prefNetWorth,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(7),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefNetWorth,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefNetWorth.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefNetWorth.length?s("span",[t._v(" ")]):t._e()],2)],2)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-bookmark text-info"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-info"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-calendar-alt text-teal"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-teal"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])}],!1,null,null,null).exports,o={name:"DataConverter",data:function(){return{dataSet:null,newDataSet:null,locale:localStorage.local}},methods:{convertChart:function(t){return this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]},this.getLabels(),this.getDataSets(),this.newDataSet.count=this.newDataSet.datasets.length,this.newDataSet},colorizeBarData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],s=[],a=0;a<e.length;a++)s.push("rgba("+e[a][0]+", "+e[a][1]+", "+e[a][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=s[r],this.newDataSet.datasets.push(n)}return this.newDataSet},colorizeLineData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],s=[],a=0;a<e.length;a++)s.push("rgba("+e[a][0]+", "+e[a][1]+", "+e[a][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=s[r],this.newDataSet.datasets.push(n)}return this.newDataSet},convertLabelsToDate:function(t){for(var e in t.labels)if(t.labels.hasOwnProperty(e)){var s=Date.parse(t.labels[e]);t.labels[e]=new Intl.DateTimeFormat(this.locale).format(s)}return t},getLabels:function(){var t=this.dataSet[0];if(void 0!==t)for(var e in t.entries)t.entries.hasOwnProperty(e)&&this.newDataSet.labels.push(e)},getDataSets:function(){for(var t in this.dataSet)if(this.dataSet.hasOwnProperty(t)){var e={},s=this.dataSet[t];if(void 0!==s){for(var a in e.label=s.label,e.type=s.type,e.currency_symbol=s.currency_symbol,e.currency_code=s.currency_code,e.yAxisID=s.yAxisID,e.data=[],s.entries)s.entries.hasOwnProperty(a)&&e.data.push(s.entries[a]);this.newDataSet.datasets.push(e)}}}}},l=Object(r.a)(o,void 0,void 0,!1,null,null,null).exports,u={name:"DefaultLineOptions",data:function(){return{}},methods:{formatLabel:function(t,e){var s=[],a=(t=String(t)).split(" "),r="";return a.forEach((function(t,n){if(r.length>0){var i=r+" "+t;if(!(i.length>e))return n===a.length-1?void s.push(i):void(r=i);s.push(r),r=""}n!==a.length-1&&t.length<e?r=t:s.push(t)})),s},getDefaultOptions:function(){var t=this;return{legend:{display:!1},animation:{duration:0},responsive:!0,maintainAspectRatio:!1,elements:{line:{cubicInterpolationMode:"monotone"}},scales:{xAxes:[{gridLines:{display:!1},ticks:{callback:function(e,s,a){var r=new Date(e),n=new Intl.DateTimeFormat(localStorage.locale,{year:"numeric",month:"long",day:"numeric"}).format(r);return t.formatLabel(n,20)}}}],yAxes:[{display:!0,ticks:{callback:function(t){var e=this.chart.data.datasets[0].currency_code?this.chart.data.datasets[0].currency_code:"EUR";return new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:e}).format(t)},beginAtZero:!0}}]},tooltips:{mode:"index",callbacks:{label:function(t,e){var s=e.datasets[t.datasetIndex].currency_code?e.datasets[t.datasetIndex].currency_code:"EUR",a=new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:s}).format(t.yLabel);return e.datasets[t.datasetIndex].label+": "+a}}}}}}},d=Object(r.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,"55cd0635",null).exports,_={name:"MainAccount",created:function(){axios.get("./api/v1/chart/account/overview?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(t){var e=l.methods.convertChart(t.data);e=l.methods.colorizeLineData(e);var s=$("#mainAccountsChart").get(0).getContext("2d");new Chart(s,{type:"line",data:e,options:d.methods.getDefaultOptions()})}))}},p=Object(r.a)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.yourAccounts")))])]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./accounts/asset"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_asset_accounts")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-body"},[e("div",[e("canvas",{staticStyle:{"min-height":"400px",height:"400px","max-height":"400px","max-width":"100%"},attrs:{id:"mainAccountsChart"}})])])}],!1,null,null,null).exports,f={name:"MainAccountList",data:function(){return{accounts:[]}},created:function(){var t=this;axios.get("./api/v1/preferences/frontpageAccounts").then((function(e){t.loadAccounts(e)}))},methods:{loadAccounts:function(t){var e=t.data.data.attributes.data;for(var s in e)e.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&(this.accounts.push({id:e[s],title:"",uri:"",transactions:[]}),this.loadSingleAccount(s,e[s]))},loadSingleAccount:function(t,e){var s=this;axios.get("./api/v1/accounts/"+e).then((function(a){s.accounts[t].title=a.data.data.attributes.name,s.accounts[t].uri="./accounts/show/"+a.data.data.id,s.loadTransactions(t,e)}))},loadTransactions:function(t,e){var s=this;axios.get("./api/v1/accounts/"+e+"/transactions?page=1&limit=10").then((function(e){s.accounts[t].transactions=e.data.data}))}}},m=Object(r.a)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},t._l(t.accounts,(function(e){return s("div",{class:{"col-lg-12":1===t.accounts.length,"col-lg-6":2===t.accounts.length,"col-lg-4":t.accounts.length>2}},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[s("a",{attrs:{href:e.uri}},[t._v(t._s(e.title))])])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[1===t.accounts.length?s("transaction-list-large",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e(),t._v(" "),2===t.accounts.length?s("transaction-list-medium",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e(),t._v(" "),t.accounts.length>2?s("transaction-list-small",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e()],1)])])})),0)}),[],!1,null,"2f3a38b8",null).exports,b={name:"MainBillsList",computed:{locale:function(){return this.$store.getters.locale}},created:function(){var t=this;axios.get("./api/v1/bills?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.loadBills(e.data.data)}))},components:{},methods:{loadBills:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e],a=s.attributes.active;s.attributes.pay_dates.length>0&&a&&this.bills.push(s)}}},data:function(){return{bills:[]}}},v=Object(r.a)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.bills")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-striped"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.bills")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.name")))]),t._v(" "),s("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.next_expected_match")))])])]),t._v(" "),s("tbody",t._l(this.bills,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"./bills/show"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v("\n ~"+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format((parseFloat(e.attributes.amount_min)+parseFloat(e.attributes.amount_max))/2))+"\n "),s("br")]),t._v(" "),s("td",t._l(e.attributes.pay_dates,(function(e){return s("span",[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e)))+"\n "),s("br")])})),0)])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./bills"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_bills")))])])])}),[],!1,null,null,null).exports,h={name:"BudgetLimitRow",mounted:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budgetLimit:{type:Object,default:function(){return{}}},budget:{type:Object,default:function(){return{}}}}},g=Object(r.a)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{staticStyle:{width:"25%"}},[s("a",{attrs:{href:"./budgets/show/"+t.budgetLimit.budget_id}},[t._v(t._s(t.budgetLimit.budget_name))])]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("div",{staticClass:"progress progress active"},[s("div",{staticClass:"progress-bar bg-success progress-bar-striped",style:"width: "+t.budgetLimit.pctGreen+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctGreen,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctGreen>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"progress-bar bg-warning progress-bar-striped",style:"width: "+t.budgetLimit.pctOrange+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctOrange,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctRed<=50&&t.budgetLimit.pctOrange>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"progress-bar bg-danger progress-bar-striped",style:"width: "+t.budgetLimit.pctRed+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctRed,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctOrange<=50&&t.budgetLimit.pctRed>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()])]),t._v(" "),s("small",{staticClass:"d-none d-lg-block"},[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.start))+"\n →\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.end))+"\n ")])]),t._v(" "),s("td",{staticClass:"align-middle d-none d-lg-table-cell",staticStyle:{width:"10%"}},[parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)>0?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e(),t._v(" "),0===parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)?s("span",{staticClass:"text-muted"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(0))+"\n ")]):t._e(),t._v(" "),parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)<0?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e()])])}),[],!1,null,"20d55ede",null).exports,y={name:"BudgetRow",mounted:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budget:{type:Object,default:{}}}},C={name:"BudgetListGroup",components:{BudgetLimitRow:g,BudgetRow:Object(r.a)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{staticStyle:{width:"25%"}},[s("a",{attrs:{href:"./budgets/show/"+t.budget.id}},[t._v(t._s(t.budget.name))])]),t._v(" "),s("td",{staticClass:"align-middle text-right"},[s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budget.currency_code}).format(parseFloat(t.budget.spent)))+"\n ")])])])}),[],!1,null,"3e0b277e",null).exports},props:{title:String,budgetLimits:Array,budgets:Array}},w={name:"MainBudgetList",components:{BudgetListGroup:Object(r.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.title))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",[t._l(t.budgetLimits,(function(t,e){return s("BudgetLimitRow",{key:e,attrs:{budgetLimit:t}})})),t._v(" "),t._l(t.budgets,(function(t,e){return s("BudgetRow",{key:e,attrs:{budget:t}})}))],2)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./budgets"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_budgets")))])])])}),[],!1,null,"1480b15a",null).exports},data:function(){return{budgetList:["daily","weekly","monthly","quarterly","half_year","yearly","other"],budgetLimits:{daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},budgets:{},rawBudgets:[],locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.collectData()},methods:{collectData:function(){this.getBudgets()},getBudgets:function(){var t=this;axios.get("./api/v1/budgets?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t.data[e];for(var a in s.attributes.spent)if(s.attributes.spent.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294){var r=s.attributes.spent[a];this.rawBudgets.push({id:parseInt(s.id),name:s.attributes.name,currency_id:parseInt(r.currency_id),currency_code:r.currency_code,spent:r.sum})}}this.getBudgetLimits()},getBudgetLimits:function(){var t=this;axios.get("./api/v1/budgets/limits?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseBudgetLimits(e.data)}))},parseBudgetLimits:function(t){for(var e in t.included)t.included.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&(this.budgets[t.included[e].id]={id:t.included[e].id,name:t.included[e].attributes.name});for(var s in t.data)if(t.data.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var a,r=0,n=0,i=0;this.filterBudgets(t.data[s].attributes.budget_id,t.data[s].attributes.currency_id),0!==parseFloat(t.data[s].attributes.spent)&&-1*parseFloat(t.data[s].attributes.spent)<parseFloat(t.data[s].attributes.amount)&&(r=-1*parseFloat(t.data[s].attributes.spent)/parseFloat(t.data[s].attributes.amount)*100),0!==parseFloat(t.data[s].attributes.spent)&&-1*parseFloat(t.data[s].attributes.spent)>parseFloat(t.data[s].attributes.amount)&&(i=100-(n=parseFloat(t.data[s].attributes.amount)/parseFloat(t.data[s].attributes.spent)*-1*100));var c={id:t.data[s].id,amount:t.data[s].attributes.amount,budget_id:t.data[s].attributes.budget_id,budget_name:this.budgets[t.data[s].attributes.budget_id].name,currency_id:t.data[s].attributes.currency_id,currency_code:t.data[s].attributes.currency_code,period:t.data[s].attributes.period,start:new Date(t.data[s].attributes.start),end:new Date(t.data[s].attributes.end),spent:t.data[s].attributes.spent,pctGreen:r,pctOrange:n,pctRed:i},o=null!==(a=t.data[s].attributes.period)&&void 0!==a?a:"other";this.budgetLimits[o].push(c)}},filterBudgets:function(t,e){for(var s in this.rawBudgets)this.rawBudgets.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.rawBudgets[s].currency_id===e&&this.rawBudgets[s].id===t&&this.rawBudgets.splice(s,1)}}},x=Object(r.a)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row"},[t.budgetLimits.daily.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.daily_budgets"),budgetLimits:t.budgetLimits.daily}})],1):t._e(),t._v(" "),t.budgetLimits.weekly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.weekly_budgets"),budgetLimits:t.budgetLimits.weekly}})],1):t._e(),t._v(" "),t.budgetLimits.monthly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.monthly_budgets"),budgetLimits:t.budgetLimits.monthly}})],1):t._e(),t._v(" "),t.budgetLimits.quarterly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.quarterly_budgets"),budgetLimits:t.budgetLimits.quarterly}})],1):t._e(),t._v(" "),t.budgetLimits.half_year.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.half_year_budgets"),budgetLimits:t.budgetLimits.half_year}})],1):t._e(),t._v(" "),t.budgetLimits.yearly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.yearly_budgets"),budgetLimits:t.budgetLimits.yearly}})],1):t._e(),t._v(" "),t.budgetLimits.other.length>0||t.rawBudgets.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.other_budgets"),budgetLimits:t.budgetLimits.other,budgets:t.rawBudgets}})],1):t._e()])])}),[],!1,null,"f0d512f0",null).exports,j={name:"MainCreditList",data:function(){return{locale:"en-US",income:[],max:0}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getExpenses()},methods:{getExpenses:function(){var t=this;axios.get("./api/v1/insight/income/date/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseExpenses(e.data)}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0===parseInt(e)&&(this.max=t[e].difference_float,s.pct=100),0!==parseInt(e)&&(s.pct=t[e].difference_float/this.max*100),this.income.push(s)}}}},S=Object(r.a)(j,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.revenue_accounts")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.income,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.pct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.pct+"%"},attrs:{role:"progressbar","aria-valuenow":e.pct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.pct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/deposit"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_deposits")))])])])}),[],!1,null,null,null).exports,L={name:"MainDebitList",data:function(){return{locale:"en-US",expenses:[],max:0}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getExpenses()},methods:{getExpenses:function(){var t=this;axios.get("./api/v1/insight/expense/date/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseExpenses(e.data)}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0===parseInt(e)&&(this.max=t[e].difference_float,s.pct=100),0!==parseInt(e)&&(s.pct=t[e].difference_float/this.max*100),this.expenses.push(s)}}}},F=Object(r.a)(L,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.expense_accounts")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.expenses,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.pct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.pct+"%"},attrs:{role:"progressbar","aria-valuenow":e.pct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.pct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/withdrawal"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_withdrawals")))])])])}),[],!1,null,null,null).exports,O={name:"MainPiggyList",created:function(){var t=this;axios.get("./api/v1/piggy_banks").then((function(e){t.loadPiggyBanks(e.data.data)}))},computed:{locale:function(){return this.$store.getters.locale}},methods:{loadPiggyBanks:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0!==parseFloat(s.attributes.left_to_save)&&(s.attributes.pct=parseFloat(s.attributes.current_amount)/parseFloat(s.attributes.target_amount)*100,this.piggy_banks.push(s))}this.piggy_banks.sort((function(t,e){return e.attributes.pct-t.attributes.pct}))}},data:function(){return{piggy_banks:[]}}},P=Object(r.a)(O,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.piggy_banks")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-striped"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.piggy_banks")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.piggy_bank")))]),t._v(" "),s("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.percentage"))+" "),s("small",[t._v("/ "+t._s(t.$t("list.amount")))])])])]),t._v(" "),s("tbody",t._l(this.piggy_banks,(function(e){return s("tr",[s("td",[t._v(t._s(e.attributes.name)+"\n "),e.attributes.object_group_title?s("small",{staticClass:"text-muted"},[s("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),s("td",[s("div",{staticClass:"progress-group"},[s("div",{staticClass:"progress progress-sm"},[e.attributes.pct<100?s("div",{staticClass:"progress-bar progress-bar-striped primary",style:{width:e.attributes.pct+"%"}}):t._e(),t._v(" "),100===e.attributes.pct?s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.attributes.pct+"%"}}):t._e()])]),t._v(" "),s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.current_amount))+"\n ")]),t._v("\n of\n "),s("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.target_amount)))])])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./piggy-banks"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_piggies")))])])])}),[],!1,null,"14a8a9a0",null).exports,k={name:"TransactionListLarge",props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},E=Object(r.a)(k,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.category")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.budget")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),s("br")])})),0),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",[0!==e.category_id?s("a",{attrs:{href:"categories/show/"+e.category_id}},[t._v(t._s(e.category_name))]):t._e(),s("br")])})),0),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",[0!==e.budget_id?s("a",{attrs:{href:"budgets/show/"+e.budget_id}},[t._v(t._s(e.budget_name))]):t._e(),s("br")])})),0)])})),0)])}),[],!1,null,"3b50021b",null).exports,I={name:"TransactionListMedium",props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},B=Object(r.a)(I,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),s("br")])})),0),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"0c7078c9",null).exports,D={name:"TransactionListSmall",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},methods:{},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},N=Object(r.a)(D,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e.attributes.transactions[0].date))}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"fae12aa6",null).exports,U=s(227),T=s.n(U),z={name:"Calendar",created:function(){},data:function(){return{locale:"en-US",range:{start:new Date(window.sessionStart),end:new Date(window.sessionEnd)},defaultRange:{start:new Date(window.sessionStart),end:new Date(window.sessionEnd)}}}},A=(s(238),Object(r.a)(z,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[t._v("Start")]),t._v(" "),s("div",{staticClass:"col-8"},[t._v(t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.range.start)))])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[t._v("End")]),t._v(" "),s("div",{staticClass:"col-8"},[t._v(t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.range.end)))])]),t._v(" "),s("date-picker",{attrs:{mode:"date",rows:"2","is-range":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.inputValue,r=e.inputEvents,n=e.isDragging,i=e.togglePopover;return[s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("div",{staticClass:"btn-group btn-group-sm d-flex"},[s("button",{staticClass:"btn btn-secondary btn-sm",on:{click:function(t){return i({placement:"auto-start",positionFixed:!0})}}},[s("i",{staticClass:"fas fa-calendar-alt"})]),t._v(" "),s("button",{staticClass:"btn btn-secondary"},[s("i",{staticClass:"fas fa-history"})]),t._v(" "),s("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{type:"button",id:"dropdownMenuButton","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[s("i",{staticClass:"fas fa-list"})]),t._v(" "),s("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(prev period)")]),t._v(" "),s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(next period)")]),t._v(" "),s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(this week?)")])])]),t._v(" "),s("input",t._g({class:n?"text-gray-600":"text-gray-900",attrs:{type:"hidden"},domProps:{value:a.start}},r.start)),t._v(" "),s("input",t._g({class:n?"text-gray-600":"text-gray-900",attrs:{type:"hidden"},domProps:{value:a.end}},r.end))])])]}}]),model:{value:t.range,callback:function(e){t.range=e},expression:"range"}})],1)}),[],!1,null,"03e62f58",null).exports),R={name:"MainCategoryList",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getCategories()},data:function(){return{locale:"en-US",categories:[],sortedList:[],spent:0,earned:0}},methods:{getCategories:function(){var t=this;axios.get("./api/v1/categories?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseCategories(e.data)}))},parseCategories:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t.data[e],a=null,r=parseInt(s.id);for(var n in s.attributes.spent)if(s.attributes.spent.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var i,c=s.attributes.spent[n];a=c.currency_id.toString()+"-"+s.id.toString(),this.categories[a]=null!==(i=this.categories[a])&&void 0!==i?i:{id:r,name:s.attributes.name,currency_code:c.currency_code,currency_symbol:c.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[a].spent=parseFloat(c.sum),this.spent=parseFloat(c.sum)<this.spent?parseFloat(c.sum):this.spent}for(var o in s.attributes.earned)if(s.attributes.earned.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var l,u=s.attributes.earned[o];a=u.currency_id.toString()+"-"+s.id.toString(),this.categories[a]=null!==(l=this.categories[a])&&void 0!==l?l:{id:r,name:s.attributes.name,currency_code:u.currency_code,currency_symbol:u.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[a].earned=parseFloat(u.sum),this.earned=parseFloat(u.sum)>this.earned?parseFloat(u.sum):this.earned}}this.sortCategories()},sortCategories:function(){var t=[];for(var e in this.categories)this.categories.hasOwnProperty(e)&&t.push(this.categories[e]);for(var s in t.sort((function(t,e){return t.spent+t.earned-(e.spent+e.earned)})),t)if(t.hasOwnProperty(s)){var a=t[s];a.spentPct=a.spent/this.spent*100,a.earnedPct=a.earned/this.earned*100,this.sortedList.push(a)}}}},G=Object(r.a)(R,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.categories")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.sortedList,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./categories/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.spentPct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.spentPct+"%"},attrs:{role:"progressbar","aria-valuenow":e.spentPct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.spentPct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]),t._v(" "),e.spentPct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]):t._e(),t._v(" "),e.earnedPct>0?s("div",{staticClass:"progress justify-content-end",attrs:{title:"hello2"}},[e.earnedPct<=20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n  ")]):t._e(),t._v(" "),s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.earnedPct+"%"},attrs:{role:"progressbar","aria-valuenow":e.earnedPct,"aria-valuemin":"0","aria-valuemax":"100",title:"hello"}},[e.earnedPct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n ")]):t._e()])]):t._e()])])})),0)])])])}),[],!1,null,"00bc733f",null).exports,M=s(3),W=s.n(M),q=s(2),K=s(23);s(17),s(266),W.a.component("transaction-list-large",E),W.a.component("transaction-list-medium",B),W.a.component("transaction-list-small",N),W.a.component("date-picker",T.a),W.a.component("dashboard",n),W.a.component("top-boxes",c),W.a.component("main-account",p),W.a.component("main-account-list",m),W.a.component("main-bills-list",v),W.a.component("main-budget-list",x),W.a.component("main-category-list",G),W.a.component("main-debit-list",F),W.a.component("main-credit-list",S),W.a.component("main-piggy-list",P),W.a.use(q.c);var J=s(19),V={};new W.a({i18n:J,store:K.a,el:"#dashboard",render:function(t){return t(n,{props:V})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}),new W.a({i18n:J,store:K.a,el:"#calendar",render:function(t){return t(A,{props:V})}})},413:function(t,e){},52:function(t,e,s){var a=s(239);"string"==typeof a&&(a=[[t.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};s(25)(a,r);a.locals&&(t.exports=a.locals)}},[[235,0,1]]]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{235:function(t,e,s){s(409),t.exports=s(413)},238:function(t,e,s){"use strict";s(52)},239:function(t,e,s){(t.exports=s(24)(!1)).push([t.i,".dropdown-item[data-v-03e62f58],.dropdown-item[data-v-03e62f58]:hover{color:#212529}",""])},267:function(t,e,s){var a={"./af":61,"./af.js":61,"./ar":62,"./ar-dz":63,"./ar-dz.js":63,"./ar-kw":64,"./ar-kw.js":64,"./ar-ly":65,"./ar-ly.js":65,"./ar-ma":66,"./ar-ma.js":66,"./ar-sa":67,"./ar-sa.js":67,"./ar-tn":68,"./ar-tn.js":68,"./ar.js":62,"./az":69,"./az.js":69,"./be":70,"./be.js":70,"./bg":71,"./bg.js":71,"./bm":72,"./bm.js":72,"./bn":73,"./bn-bd":74,"./bn-bd.js":74,"./bn.js":73,"./bo":75,"./bo.js":75,"./br":76,"./br.js":76,"./bs":77,"./bs.js":77,"./ca":78,"./ca.js":78,"./cs":79,"./cs.js":79,"./cv":80,"./cv.js":80,"./cy":81,"./cy.js":81,"./da":82,"./da.js":82,"./de":83,"./de-at":84,"./de-at.js":84,"./de-ch":85,"./de-ch.js":85,"./de.js":83,"./dv":86,"./dv.js":86,"./el":87,"./el.js":87,"./en-au":88,"./en-au.js":88,"./en-ca":89,"./en-ca.js":89,"./en-gb":90,"./en-gb.js":90,"./en-ie":91,"./en-ie.js":91,"./en-il":92,"./en-il.js":92,"./en-in":93,"./en-in.js":93,"./en-nz":94,"./en-nz.js":94,"./en-sg":95,"./en-sg.js":95,"./eo":96,"./eo.js":96,"./es":97,"./es-do":98,"./es-do.js":98,"./es-mx":99,"./es-mx.js":99,"./es-us":100,"./es-us.js":100,"./es.js":97,"./et":101,"./et.js":101,"./eu":102,"./eu.js":102,"./fa":103,"./fa.js":103,"./fi":104,"./fi.js":104,"./fil":105,"./fil.js":105,"./fo":106,"./fo.js":106,"./fr":107,"./fr-ca":108,"./fr-ca.js":108,"./fr-ch":109,"./fr-ch.js":109,"./fr.js":107,"./fy":110,"./fy.js":110,"./ga":111,"./ga.js":111,"./gd":112,"./gd.js":112,"./gl":113,"./gl.js":113,"./gom-deva":114,"./gom-deva.js":114,"./gom-latn":115,"./gom-latn.js":115,"./gu":116,"./gu.js":116,"./he":117,"./he.js":117,"./hi":118,"./hi.js":118,"./hr":119,"./hr.js":119,"./hu":120,"./hu.js":120,"./hy-am":121,"./hy-am.js":121,"./id":122,"./id.js":122,"./is":123,"./is.js":123,"./it":124,"./it-ch":125,"./it-ch.js":125,"./it.js":124,"./ja":126,"./ja.js":126,"./jv":127,"./jv.js":127,"./ka":128,"./ka.js":128,"./kk":129,"./kk.js":129,"./km":130,"./km.js":130,"./kn":131,"./kn.js":131,"./ko":132,"./ko.js":132,"./ku":133,"./ku.js":133,"./ky":134,"./ky.js":134,"./lb":135,"./lb.js":135,"./lo":136,"./lo.js":136,"./lt":137,"./lt.js":137,"./lv":138,"./lv.js":138,"./me":139,"./me.js":139,"./mi":140,"./mi.js":140,"./mk":141,"./mk.js":141,"./ml":142,"./ml.js":142,"./mn":143,"./mn.js":143,"./mr":144,"./mr.js":144,"./ms":145,"./ms-my":146,"./ms-my.js":146,"./ms.js":145,"./mt":147,"./mt.js":147,"./my":148,"./my.js":148,"./nb":149,"./nb.js":149,"./ne":150,"./ne.js":150,"./nl":151,"./nl-be":152,"./nl-be.js":152,"./nl.js":151,"./nn":153,"./nn.js":153,"./oc-lnc":154,"./oc-lnc.js":154,"./pa-in":155,"./pa-in.js":155,"./pl":156,"./pl.js":156,"./pt":157,"./pt-br":158,"./pt-br.js":158,"./pt.js":157,"./ro":159,"./ro.js":159,"./ru":160,"./ru.js":160,"./sd":161,"./sd.js":161,"./se":162,"./se.js":162,"./si":163,"./si.js":163,"./sk":164,"./sk.js":164,"./sl":165,"./sl.js":165,"./sq":166,"./sq.js":166,"./sr":167,"./sr-cyrl":168,"./sr-cyrl.js":168,"./sr.js":167,"./ss":169,"./ss.js":169,"./sv":170,"./sv.js":170,"./sw":171,"./sw.js":171,"./ta":172,"./ta.js":172,"./te":173,"./te.js":173,"./tet":174,"./tet.js":174,"./tg":175,"./tg.js":175,"./th":176,"./th.js":176,"./tk":177,"./tk.js":177,"./tl-ph":178,"./tl-ph.js":178,"./tlh":179,"./tlh.js":179,"./tr":180,"./tr.js":180,"./tzl":181,"./tzl.js":181,"./tzm":182,"./tzm-latn":183,"./tzm-latn.js":183,"./tzm.js":182,"./ug-cn":184,"./ug-cn.js":184,"./uk":185,"./uk.js":185,"./ur":186,"./ur.js":186,"./uz":187,"./uz-latn":188,"./uz-latn.js":188,"./uz.js":187,"./vi":189,"./vi.js":189,"./x-pseudo":190,"./x-pseudo.js":190,"./yo":191,"./yo.js":191,"./zh-cn":192,"./zh-cn.js":192,"./zh-hk":193,"./zh-hk.js":193,"./zh-mo":194,"./zh-mo.js":194,"./zh-tw":195,"./zh-tw.js":195};function r(t){var e=n(t);return s(e)}function n(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}r.keys=function(){return Object.keys(a)},r.resolve=n,t.exports=r,r.id=267},409:function(t,e,s){"use strict";s.r(e);var a={name:"Dashboard",created:function(){},computed:{},methods:{}},r=s(1),n=Object(r.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("top-boxes"),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-account")],1)]),t._v(" "),s("main-account-list"),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-budget-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("main-category-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-debit-list")],1),t._v(" "),s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-credit-list")],1)]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-piggy-list")],1),t._v(" "),s("div",{staticClass:"col-lg-6 col-md-12 col-sm-12 col-xs-12"},[s("main-bills-list")],1)])],1)}),[],!1,null,null,null).exports,i={name:"TopBoxes",props:{},data:function(){return{summary:[],balances:[],billsPaid:[],billsUnpaid:[],leftToSpend:[],netWorth:[]}},computed:{prefCurrencyBalances:function(){return this.filterOnCurrency(this.balances)},notPrefCurrencyBalances:function(){return this.filterOnNotCurrency(this.balances)},prefBillsUnpaid:function(){return this.filterOnCurrency(this.billsUnpaid)},notPrefBillsUnpaid:function(){return this.filterOnNotCurrency(this.billsUnpaid)},prefLeftToSpend:function(){return this.filterOnCurrency(this.leftToSpend)},notPrefLeftToSpend:function(){return this.filterOnNotCurrency(this.leftToSpend)},prefNetWorth:function(){return this.filterOnCurrency(this.netWorth)},notPrefNetWorth:function(){return this.filterOnNotCurrency(this.netWorth)},currencyCode:function(){return this.$store.getters.currencyCode},currencyId:function(){return this.$store.getters.currencyId}},created:function(){this.prepareComponent()},methods:{filterOnCurrency:function(t){var e=[];for(var s in t)t.hasOwnProperty(s)&&t[s].currency_id===this.currencyId&&e.push(t[s]);return 0===e.length&&t.hasOwnProperty(0)&&e.push(t[0]),e},filterOnNotCurrency:function(t){var e=[];for(var s in t)t.hasOwnProperty(s)&&t[s].currency_id!==this.currencyId&&e.push(t[s]);return e},prepareComponent:function(){var t=this;axios.get("./api/v1/summary/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.summary=e.data,t.buildComponent()}))},buildComponent:function(){this.getBalanceEntries(),this.getBillsEntries(),this.getLeftToSpend(),this.getNetWorth()},hasCurrency:function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].currency_id===this.currencyId)return!0;return!1},getBalanceEntries:function(){this.balances=this.getKeyedEntries("balance-in-")},getNetWorth:function(){this.netWorth=this.getKeyedEntries("net-worth-in-")},getLeftToSpend:function(){this.leftToSpend=this.getKeyedEntries("left-to-spend-in-")},getBillsEntries:function(){this.billsPaid=this.getKeyedEntries("bills-paid-in-"),this.billsUnpaid=this.getKeyedEntries("bills-unpaid-in-")},getKeyedEntries:function(t){var e=[];for(var s in this.summary)this.summary.hasOwnProperty(s)&&t===s.substr(0,t.length)&&e.push(this.summary[s]);return e}}},c=Object(r.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(0),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.balance")))]),t._v(" "),t._l(t.prefCurrencyBalances,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(1),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefCurrencyBalances,(function(e,a){return s("span",{attrs:{title:e.sub_title}},[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefCurrencyBalances.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefCurrencyBalances.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(2),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.bills_to_pay")))]),t._v(" "),t._l(t.prefBillsUnpaid,(function(e){return s("span",{staticClass:"info-box-number"},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(3),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefBillsUnpaid,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefBillsUnpaid.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefBillsUnpaid.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(4),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[t._v(t._s(t.$t("firefly.left_to_spend")))]),t._v(" "),t._l(t.prefLeftToSpend,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(5),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefLeftToSpend,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefLeftToSpend.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefLeftToSpend.length?s("span",[t._v(" ")]):t._e()],2)],2)])]),t._v(" "),s("div",{staticClass:"col"},[s("div",{staticClass:"info-box"},[t._m(6),t._v(" "),s("div",{staticClass:"info-box-content"},[s("span",{staticClass:"info-box-text"},[s("span",[t._v(t._s(t.$t("firefly.net_worth")))])]),t._v(" "),t._l(t.prefNetWorth,(function(e){return s("span",{staticClass:"info-box-number",attrs:{title:e.sub_title}},[t._v(t._s(e.value_parsed))])})),t._v(" "),t._m(7),t._v(" "),s("span",{staticClass:"progress-description"},[t._l(t.notPrefNetWorth,(function(e,a){return s("span",[t._v("\n "+t._s(e.value_parsed)),a+1!==t.notPrefNetWorth.length?s("span",[t._v(", ")]):t._e()])})),t._v(" "),0===t.notPrefNetWorth.length?s("span",[t._v(" ")]):t._e()],2)],2)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-bookmark text-info"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-info"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"far fa-calendar-alt text-teal"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-teal"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"info-box-icon"},[e("i",{staticClass:"fas fa-money-bill text-success"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress bg-success"},[e("div",{staticClass:"progress-bar",staticStyle:{width:"0"}})])}],!1,null,null,null).exports,o={name:"DataConverter",data:function(){return{dataSet:null,newDataSet:null,locale:localStorage.local}},methods:{convertChart:function(t){return this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]},this.getLabels(),this.getDataSets(),this.newDataSet.count=this.newDataSet.datasets.length,this.newDataSet},colorizeBarData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],s=[],a=0;a<e.length;a++)s.push("rgba("+e[a][0]+", "+e[a][1]+", "+e[a][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=s[r],this.newDataSet.datasets.push(n)}return this.newDataSet},colorizeLineData:function(t){this.dataSet=t,this.newDataSet={count:0,labels:[],datasets:[]};for(var e=[[53,124,165],[0,141,76],[219,139,11],[202,25,90],[85,82,153],[66,133,244],[219,68,55],[244,180,0],[15,157,88],[171,71,188],[0,172,193],[255,112,67],[158,157,36],[92,107,192],[240,98,146],[0,121,107],[194,24,91]],s=[],a=0;a<e.length;a++)s.push("rgba("+e[a][0]+", "+e[a][1]+", "+e[a][2]+", 0.5)");for(var r in this.newDataSet.labels=this.dataSet.labels,this.newDataSet.count=this.dataSet.count,this.dataSet.datasets)if(this.dataSet.datasets.hasOwnProperty(r)){var n=this.dataSet.datasets[r];n.fill=!1,n.backgroundColor=n.borderColor=s[r],this.newDataSet.datasets.push(n)}return this.newDataSet},convertLabelsToDate:function(t){for(var e in t.labels)if(t.labels.hasOwnProperty(e)){var s=Date.parse(t.labels[e]);t.labels[e]=new Intl.DateTimeFormat(this.locale).format(s)}return t},getLabels:function(){var t=this.dataSet[0];if(void 0!==t)for(var e in t.entries)t.entries.hasOwnProperty(e)&&this.newDataSet.labels.push(e)},getDataSets:function(){for(var t in this.dataSet)if(this.dataSet.hasOwnProperty(t)){var e={},s=this.dataSet[t];if(void 0!==s){for(var a in e.label=s.label,e.type=s.type,e.currency_symbol=s.currency_symbol,e.currency_code=s.currency_code,e.yAxisID=s.yAxisID,e.data=[],s.entries)s.entries.hasOwnProperty(a)&&e.data.push(s.entries[a]);this.newDataSet.datasets.push(e)}}}}},l=Object(r.a)(o,void 0,void 0,!1,null,null,null).exports,u={name:"DefaultLineOptions",data:function(){return{}},methods:{formatLabel:function(t,e){var s=[],a=(t=String(t)).split(" "),r="";return a.forEach((function(t,n){if(r.length>0){var i=r+" "+t;if(!(i.length>e))return n===a.length-1?void s.push(i):void(r=i);s.push(r),r=""}n!==a.length-1&&t.length<e?r=t:s.push(t)})),s},getDefaultOptions:function(){var t=this;return{legend:{display:!1},animation:{duration:0},responsive:!0,maintainAspectRatio:!1,elements:{line:{cubicInterpolationMode:"monotone"}},scales:{xAxes:[{gridLines:{display:!1},ticks:{callback:function(e,s,a){var r=new Date(e),n=new Intl.DateTimeFormat(localStorage.locale,{year:"numeric",month:"long",day:"numeric"}).format(r);return t.formatLabel(n,20)}}}],yAxes:[{display:!0,ticks:{callback:function(t){var e=this.chart.data.datasets[0].currency_code?this.chart.data.datasets[0].currency_code:"EUR";return new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:e}).format(t)},beginAtZero:!0}}]},tooltips:{mode:"index",callbacks:{label:function(t,e){var s=e.datasets[t.datasetIndex].currency_code?e.datasets[t.datasetIndex].currency_code:"EUR",a=new Intl.NumberFormat(localStorage.locale,{style:"currency",currency:s}).format(t.yLabel);return e.datasets[t.datasetIndex].label+": "+a}}}}}}},d=Object(r.a)(u,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,"55cd0635",null).exports,_={name:"MainAccount",created:function(){axios.get("./api/v1/chart/account/overview?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(t){var e=l.methods.convertChart(t.data);e=l.methods.colorizeLineData(e);var s=$("#mainAccountsChart").get(0).getContext("2d");new Chart(s,{type:"line",data:e,options:d.methods.getDefaultOptions()})}))}},p=Object(r.a)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.yourAccounts")))])]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./accounts/asset"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_asset_accounts")))])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-body"},[e("div",[e("canvas",{staticStyle:{"min-height":"400px",height:"400px","max-height":"400px","max-width":"100%"},attrs:{id:"mainAccountsChart"}})])])}],!1,null,null,null).exports,f={name:"MainAccountList",data:function(){return{accounts:[],locale:"en-US"}},created:function(){var t,e=this;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",axios.get("./api/v1/preferences/frontpageAccounts").then((function(t){e.loadAccounts(t)}))},methods:{loadAccounts:function(t){var e=t.data.data.attributes.data;for(var s in e)e.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&(this.accounts.push({id:e[s],title:"",url:"",current_balance:"",currency_code:"",transactions:[]}),this.loadSingleAccount(s,e[s]))},loadSingleAccount:function(t,e){var s=this;axios.get("./api/v1/accounts/"+e).then((function(a){s.accounts[t].title=a.data.data.attributes.name,s.accounts[t].url="./accounts/show/"+a.data.data.id,s.accounts[t].current_balance=a.data.data.attributes.current_balance,s.accounts[t].currency_code=a.data.data.attributes.currency_code,s.loadTransactions(t,e)}))},loadTransactions:function(t,e){var s=this;axios.get("./api/v1/accounts/"+e+"/transactions?page=1&limit=10").then((function(e){s.accounts[t].transactions=e.data.data}))}}},m=Object(r.a)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},t._l(t.accounts,(function(e){return s("div",{class:{"col-lg-12":1===t.accounts.length,"col-lg-6":2===t.accounts.length,"col-lg-4":t.accounts.length>2}},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[s("a",{attrs:{href:e.url}},[t._v(t._s(e.title))])]),t._v(" "),s("div",{staticClass:"card-tools"},[s("span",{class:parseFloat(e.current_balance)<0?"text-danger":"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.current_balance)))+"\n ")])])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[1===t.accounts.length?s("transaction-list-large",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e(),t._v(" "),2===t.accounts.length?s("transaction-list-medium",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e(),t._v(" "),t.accounts.length>2?s("transaction-list-small",{attrs:{transactions:e.transactions,account_id:e.id}}):t._e()],1)])])})),0)}),[],!1,null,"2561f762",null).exports,b={name:"MainBillsList",computed:{locale:function(){return this.$store.getters.locale}},created:function(){var t=this;axios.get("./api/v1/bills?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.loadBills(e.data.data)}))},components:{},methods:{loadBills:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e],a=s.attributes.active;s.attributes.pay_dates.length>0&&a&&this.bills.push(s)}}},data:function(){return{bills:[]}}},v=Object(r.a)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.bills")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-striped"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.bills")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.name")))]),t._v(" "),s("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.next_expected_match")))])])]),t._v(" "),s("tbody",t._l(this.bills,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"./bills/show/"+e.id,title:e.attributes.name}},[t._v(t._s(e.attributes.name))]),t._v("\n ~"+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format((parseFloat(e.attributes.amount_min)+parseFloat(e.attributes.amount_max))/2))+"\n "),s("br")]),t._v(" "),s("td",t._l(e.attributes.pay_dates,(function(e){return s("span",[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e)))+"\n "),s("br")])})),0)])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./bills"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_bills")))])])])}),[],!1,null,null,null).exports,h={name:"BudgetLimitRow",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budgetLimit:{type:Object,default:function(){return{}}},budget:{type:Object,default:function(){return{}}}}},y=Object(r.a)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{staticStyle:{width:"25%"}},[s("a",{attrs:{href:"./budgets/show/"+t.budgetLimit.budget_id}},[t._v(t._s(t.budgetLimit.budget_name))])]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("div",{staticClass:"progress progress active"},[s("div",{staticClass:"progress-bar bg-success progress-bar-striped",style:"width: "+t.budgetLimit.pctGreen+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctGreen,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctGreen>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"progress-bar bg-warning progress-bar-striped",style:"width: "+t.budgetLimit.pctOrange+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctOrange,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctRed<=50&&t.budgetLimit.pctOrange>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"progress-bar bg-danger progress-bar-striped",style:"width: "+t.budgetLimit.pctRed+"%;",attrs:{role:"progressbar","aria-valuenow":t.budgetLimit.pctRed,"aria-valuemin":"0","aria-valuemax":"100"}},[t.budgetLimit.pctOrange<=50&&t.budgetLimit.pctRed>35?s("span",[t._v("\n Spent\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.spent))+"\n of\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(t.budgetLimit.amount))+"\n ")]):t._e()])]),t._v(" "),s("small",{staticClass:"d-none d-lg-block"},[t._v("\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.start))+"\n →\n "+t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.budgetLimit.end))+"\n ")])]),t._v(" "),s("td",{staticClass:"align-middle d-none d-lg-table-cell",staticStyle:{width:"10%"}},[parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)>0?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e(),t._v(" "),0===parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)?s("span",{staticClass:"text-muted"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(0))+"\n ")]):t._e(),t._v(" "),parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)<0?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budgetLimit.currency_code}).format(parseFloat(t.budgetLimit.amount)+parseFloat(t.budgetLimit.spent)))+"\n ")]):t._e()])])}),[],!1,null,"3f6fd164",null).exports,g={name:"BudgetRow",mounted:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},data:function(){return{locale:"en-US"}},props:{budget:{type:Object,default:{}}}},C={name:"BudgetListGroup",components:{BudgetLimitRow:y,BudgetRow:Object(r.a)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{staticStyle:{width:"25%"}},[s("a",{attrs:{href:"./budgets/show/"+t.budget.id}},[t._v(t._s(t.budget.name))])]),t._v(" "),s("td",{staticClass:"align-middle text-right"},[s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:t.budget.currency_code}).format(parseFloat(t.budget.spent)))+"\n ")])])])}),[],!1,null,"3e0b277e",null).exports},props:{title:String,budgetLimits:Array,budgets:Array}},w={name:"MainBudgetList",components:{BudgetListGroup:Object(r.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.title))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",[t._l(t.budgetLimits,(function(t,e){return s("BudgetLimitRow",{key:e,attrs:{budgetLimit:t}})})),t._v(" "),t._l(t.budgets,(function(t,e){return s("BudgetRow",{key:e,attrs:{budget:t}})}))],2)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./budgets"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_budgets")))])])])}),[],!1,null,"1480b15a",null).exports},data:function(){return{budgetList:["daily","weekly","monthly","quarterly","half_year","yearly","other"],budgetLimits:{daily:[],weekly:[],monthly:[],quarterly:[],half_year:[],yearly:[],other:[]},budgets:{},rawBudgets:[],locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.collectData()},methods:{collectData:function(){this.getBudgets()},getBudgets:function(){var t=this;axios.get("./api/v1/budgets?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t.data[e];for(var a in s.attributes.spent)if(s.attributes.spent.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294){var r=s.attributes.spent[a];this.rawBudgets.push({id:parseInt(s.id),name:s.attributes.name,currency_id:parseInt(r.currency_id),currency_code:r.currency_code,spent:r.sum})}}this.getBudgetLimits()},getBudgetLimits:function(){var t=this;axios.get("./api/v1/budgets/limits?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseBudgetLimits(e.data)}))},parseBudgetLimits:function(t){for(var e in t.included)t.included.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&(this.budgets[t.included[e].id]={id:t.included[e].id,name:t.included[e].attributes.name});for(var s in t.data)if(t.data.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var a,r=0,n=0,i=0;this.filterBudgets(t.data[s].attributes.budget_id,t.data[s].attributes.currency_id),0!==parseFloat(t.data[s].attributes.spent)&&-1*parseFloat(t.data[s].attributes.spent)<parseFloat(t.data[s].attributes.amount)&&(r=-1*parseFloat(t.data[s].attributes.spent)/parseFloat(t.data[s].attributes.amount)*100),0!==parseFloat(t.data[s].attributes.spent)&&-1*parseFloat(t.data[s].attributes.spent)>parseFloat(t.data[s].attributes.amount)&&(i=100-(n=parseFloat(t.data[s].attributes.amount)/parseFloat(t.data[s].attributes.spent)*-1*100));var c={id:t.data[s].id,amount:t.data[s].attributes.amount,budget_id:t.data[s].attributes.budget_id,budget_name:this.budgets[t.data[s].attributes.budget_id].name,currency_id:t.data[s].attributes.currency_id,currency_code:t.data[s].attributes.currency_code,period:t.data[s].attributes.period,start:new Date(t.data[s].attributes.start),end:new Date(t.data[s].attributes.end),spent:t.data[s].attributes.spent,pctGreen:r,pctOrange:n,pctRed:i},o=null!==(a=t.data[s].attributes.period)&&void 0!==a?a:"other";this.budgetLimits[o].push(c)}},filterBudgets:function(t,e){for(var s in this.rawBudgets)this.rawBudgets.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.rawBudgets[s].currency_id===e&&this.rawBudgets[s].id===t&&this.rawBudgets.splice(s,1)}}},x=Object(r.a)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row"},[t.budgetLimits.daily.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.daily_budgets"),budgetLimits:t.budgetLimits.daily}})],1):t._e(),t._v(" "),t.budgetLimits.weekly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.weekly_budgets"),budgetLimits:t.budgetLimits.weekly}})],1):t._e(),t._v(" "),t.budgetLimits.monthly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.monthly_budgets"),budgetLimits:t.budgetLimits.monthly}})],1):t._e(),t._v(" "),t.budgetLimits.quarterly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.quarterly_budgets"),budgetLimits:t.budgetLimits.quarterly}})],1):t._e(),t._v(" "),t.budgetLimits.half_year.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.half_year_budgets"),budgetLimits:t.budgetLimits.half_year}})],1):t._e(),t._v(" "),t.budgetLimits.yearly.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.yearly_budgets"),budgetLimits:t.budgetLimits.yearly}})],1):t._e(),t._v(" "),t.budgetLimits.other.length>0||t.rawBudgets.length>0?s("div",{staticClass:"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12"},[s("BudgetListGroup",{attrs:{title:t.$t("firefly.other_budgets"),budgetLimits:t.budgetLimits.other,budgets:t.rawBudgets}})],1):t._e()])])}),[],!1,null,"f0d512f0",null).exports,j={name:"MainCreditList",data:function(){return{locale:"en-US",income:[],max:0}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getExpenses()},methods:{getExpenses:function(){var t=this;axios.get("./api/v1/insight/income/date/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseExpenses(e.data)}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0===parseInt(e)&&(this.max=t[e].difference_float,s.pct=100),0!==parseInt(e)&&(s.pct=t[e].difference_float/this.max*100),this.income.push(s)}}}},S=Object(r.a)(j,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.revenue_accounts")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.income,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.pct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.pct+"%"},attrs:{role:"progressbar","aria-valuenow":e.pct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.pct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/deposit"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_deposits")))])])])}),[],!1,null,null,null).exports,L={name:"MainDebitList",data:function(){return{locale:"en-US",expenses:[],max:0}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getExpenses()},methods:{getExpenses:function(){var t=this;axios.get("./api/v1/insight/expense/date/basic?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseExpenses(e.data)}))},parseExpenses:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0===parseInt(e)&&(this.max=t[e].difference_float,s.pct=100),0!==parseInt(e)&&(s.pct=t[e].difference_float/this.max*100),this.expenses.push(s)}}}},F=Object(r.a)(L,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.expense_accounts")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.expenses,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./accounts/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.pct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.pct+"%"},attrs:{role:"progressbar","aria-valuenow":e.pct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.pct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]),t._v(" "),e.pct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.difference_float))+"\n ")]):t._e()]):t._e()])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./transactions/withdrawal"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_withdrawals")))])])])}),[],!1,null,null,null).exports,O={name:"MainPiggyList",created:function(){var t=this;axios.get("./api/v1/piggy_banks").then((function(e){t.loadPiggyBanks(e.data.data)}))},computed:{locale:function(){return this.$store.getters.locale}},methods:{loadPiggyBanks:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t[e];0!==parseFloat(s.attributes.left_to_save)&&(s.attributes.pct=parseFloat(s.attributes.current_amount)/parseFloat(s.attributes.target_amount)*100,this.piggy_banks.push(s))}this.piggy_banks.sort((function(t,e){return e.attributes.pct-t.attributes.pct}))}},data:function(){return{piggy_banks:[]}}},P=Object(r.a)(O,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.piggy_banks")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-striped"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.piggy_banks")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticStyle:{width:"35%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.piggy_bank")))]),t._v(" "),s("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[t._v(t._s(t.$t("list.percentage"))+" "),s("small",[t._v("/ "+t._s(t.$t("list.amount")))])])])]),t._v(" "),s("tbody",t._l(this.piggy_banks,(function(e){return s("tr",[s("td",[t._v(t._s(e.attributes.name)+"\n "),e.attributes.object_group_title?s("small",{staticClass:"text-muted"},[s("br"),t._v("\n "+t._s(e.attributes.object_group_title)+"\n ")]):t._e()]),t._v(" "),s("td",[s("div",{staticClass:"progress-group"},[s("div",{staticClass:"progress progress-sm"},[e.attributes.pct<100?s("div",{staticClass:"progress-bar progress-bar-striped primary",style:{width:e.attributes.pct+"%"}}):t._e(),t._v(" "),100===e.attributes.pct?s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.attributes.pct+"%"}}):t._e()])]),t._v(" "),s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.current_amount))+"\n ")]),t._v("\n of\n "),s("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.attributes.currency_code}).format(e.attributes.target_amount)))])])])})),0)])]),t._v(" "),s("div",{staticClass:"card-footer"},[s("a",{staticClass:"btn btn-default button-sm",attrs:{href:"./piggy-banks"}},[s("i",{staticClass:"far fa-money-bill-alt"}),t._v(" "+t._s(t.$t("firefly.go_to_piggies")))])])])}),[],!1,null,"14a8a9a0",null).exports,k={name:"TransactionListLarge",props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},I=Object(r.a)(k,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.category")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.budget")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),s("br")])})),0),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",[0!==e.category_id?s("a",{attrs:{href:"categories/show/"+e.category_id}},[t._v(t._s(e.category_name))]):t._e(),s("br")])})),0),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",[0!==e.budget_id?s("a",{attrs:{href:"budgets/show/"+e.budget_id}},[t._v(t._s(e.budget_name))]):t._e(),s("br")])})),0)])})),0)])}),[],!1,null,"3b50021b",null).exports,E={name:"TransactionListMedium",props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},B=Object(r.a)(E,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.opposing_account")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:e.date}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"deposit"===e.type?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("a",{attrs:{href:"accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]):t._e(),t._v(" "),s("br")])})),0),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat("en-US",{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"0c7078c9",null).exports,D={name:"TransactionListSmall",data:function(){return{locale:"en-US"}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US"},methods:{},props:{transactions:{type:Array,default:function(){return[]}},account_id:{type:Number,default:function(){return 0}}}},N=Object(r.a)(D,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("table",{staticClass:"table table-striped table-sm"},[s("caption",{staticStyle:{display:"none"}},[t._v(t._s(t.$t("firefly.transaction_table_description")))]),t._v(" "),s("thead",[s("tr",[s("th",{staticClass:"text-left",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.description")))]),t._v(" "),s("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v(t._s(t.$t("firefly.amount")))])])]),t._v(" "),s("tbody",t._l(this.transactions,(function(e){return s("tr",[s("td",[s("a",{attrs:{href:"transactions/show/"+e.id,title:new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(new Date(e.attributes.transactions[0].date))}},[e.attributes.transactions.length>1?s("span",[t._v(t._s(e.attributes.group_title))]):t._e(),t._v(" "),1===e.attributes.transactions.length?s("span",[t._v(t._s(e.attributes.transactions[0].description))]):t._e()])]),t._v(" "),s("td",{staticStyle:{"text-align":"right"}},t._l(e.attributes.transactions,(function(e){return s("span",["withdrawal"===e.type?s("span",{staticClass:"text-danger"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"deposit"===e.type?s("span",{staticClass:"text-success"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.source_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*e.amount))),s("br")]):t._e(),t._v(" "),"transfer"===e.type&&e.destination_id===t.account_id?s("span",{staticClass:"text-info"},[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.amount))),s("br")]):t._e()])})),0)])})),0)])}),[],!1,null,"fae12aa6",null).exports,U=s(227),T=s.n(U),z={name:"Calendar",created:function(){},data:function(){return{locale:"en-US",range:{start:new Date(window.sessionStart),end:new Date(window.sessionEnd)},defaultRange:{start:new Date(window.sessionStart),end:new Date(window.sessionEnd)}}}},A=(s(238),Object(r.a)(z,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[t._v("Start")]),t._v(" "),s("div",{staticClass:"col-8"},[t._v(t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.range.start)))])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[t._v("End")]),t._v(" "),s("div",{staticClass:"col-8"},[t._v(t._s(new Intl.DateTimeFormat(t.locale,{year:"numeric",month:"long",day:"numeric"}).format(t.range.end)))])]),t._v(" "),s("date-picker",{attrs:{mode:"date",rows:"2","is-range":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.inputValue,r=e.inputEvents,n=e.isDragging,i=e.togglePopover;return[s("div",{staticClass:"row"},[s("div",{staticClass:"col"},[s("div",{staticClass:"btn-group btn-group-sm d-flex"},[s("button",{staticClass:"btn btn-secondary btn-sm",on:{click:function(t){return i({placement:"auto-start",positionFixed:!0})}}},[s("i",{staticClass:"fas fa-calendar-alt"})]),t._v(" "),s("button",{staticClass:"btn btn-secondary"},[s("i",{staticClass:"fas fa-history"})]),t._v(" "),s("button",{staticClass:"btn btn-secondary dropdown-toggle",attrs:{type:"button",id:"dropdownMenuButton","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[s("i",{staticClass:"fas fa-list"})]),t._v(" "),s("div",{staticClass:"dropdown-menu",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(prev period)")]),t._v(" "),s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(next period)")]),t._v(" "),s("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("(this week?)")])])]),t._v(" "),s("input",t._g({class:n?"text-gray-600":"text-gray-900",attrs:{type:"hidden"},domProps:{value:a.start}},r.start)),t._v(" "),s("input",t._g({class:n?"text-gray-600":"text-gray-900",attrs:{type:"hidden"},domProps:{value:a.end}},r.end))])])]}}]),model:{value:t.range,callback:function(e){t.range=e},expression:"range"}})],1)}),[],!1,null,"03e62f58",null).exports),R={name:"MainCategoryList",created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getCategories()},data:function(){return{locale:"en-US",categories:[],sortedList:[],spent:0,earned:0}},methods:{getCategories:function(){var t=this;axios.get("./api/v1/categories?start="+window.sessionStart+"&end="+window.sessionEnd).then((function(e){t.parseCategories(e.data)}))},parseCategories:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var s=t.data[e],a=null,r=parseInt(s.id);for(var n in s.attributes.spent)if(s.attributes.spent.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var i,c=s.attributes.spent[n];a=c.currency_id.toString()+"-"+s.id.toString(),this.categories[a]=null!==(i=this.categories[a])&&void 0!==i?i:{id:r,name:s.attributes.name,currency_code:c.currency_code,currency_symbol:c.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[a].spent=parseFloat(c.sum),this.spent=parseFloat(c.sum)<this.spent?parseFloat(c.sum):this.spent}for(var o in s.attributes.earned)if(s.attributes.earned.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var l,u=s.attributes.earned[o];a=u.currency_id.toString()+"-"+s.id.toString(),this.categories[a]=null!==(l=this.categories[a])&&void 0!==l?l:{id:r,name:s.attributes.name,currency_code:u.currency_code,currency_symbol:u.currency_symbol,spent:0,earned:0,spentPct:0,earnedPct:0},this.categories[a].earned=parseFloat(u.sum),this.earned=parseFloat(u.sum)>this.earned?parseFloat(u.sum):this.earned}}this.sortCategories()},sortCategories:function(){var t=[];for(var e in this.categories)this.categories.hasOwnProperty(e)&&t.push(this.categories[e]);for(var s in t.sort((function(t,e){return t.spent+t.earned-(e.spent+e.earned)})),t)if(t.hasOwnProperty(s)){var a=t[s];a.spentPct=a.spent/this.spent*100,a.earnedPct=a.earned/this.earned*100,this.sortedList.push(a)}}}},G=Object(r.a)(R,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.$t("firefly.categories")))])]),t._v(" "),s("div",{staticClass:"card-body table-responsive p-0"},[s("table",{staticClass:"table table-sm"},[s("tbody",t._l(t.sortedList,(function(e){return s("tr",[s("td",{staticStyle:{width:"20%"}},[s("a",{attrs:{href:"./categories/show/"+e.id}},[t._v(t._s(e.name))])]),t._v(" "),s("td",{staticClass:"align-middle"},[e.spentPct>0?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-danger",style:{width:e.spentPct+"%"},attrs:{role:"progressbar","aria-valuenow":e.spentPct,"aria-valuemin":"0","aria-valuemax":"100"}},[e.spentPct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]),t._v(" "),e.spentPct<=20?s("span",[t._v(" \n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.spent))+"\n ")]):t._e()]):t._e(),t._v(" "),e.earnedPct>0?s("div",{staticClass:"progress justify-content-end",attrs:{title:"hello2"}},[e.earnedPct<=20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n  ")]):t._e(),t._v(" "),s("div",{staticClass:"progress-bar progress-bar-striped bg-success",style:{width:e.earnedPct+"%"},attrs:{role:"progressbar","aria-valuenow":e.earnedPct,"aria-valuemin":"0","aria-valuemax":"100",title:"hello"}},[e.earnedPct>20?s("span",[t._v("\n "+t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(e.earned))+"\n ")]):t._e()])]):t._e()])])})),0)])])])}),[],!1,null,"00bc733f",null).exports,M=s(3),W=s.n(M),q=s(2),K=s(23);s(17),s(266),W.a.component("transaction-list-large",I),W.a.component("transaction-list-medium",B),W.a.component("transaction-list-small",N),W.a.component("date-picker",T.a),W.a.component("dashboard",n),W.a.component("top-boxes",c),W.a.component("main-account",p),W.a.component("main-account-list",m),W.a.component("main-bills-list",v),W.a.component("main-budget-list",x),W.a.component("main-category-list",G),W.a.component("main-debit-list",F),W.a.component("main-credit-list",S),W.a.component("main-piggy-list",P),W.a.use(q.c);var J=s(19),V={};new W.a({i18n:J,store:K.a,el:"#dashboard",render:function(t){return t(n,{props:V})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}),new W.a({i18n:J,store:K.a,el:"#calendar",render:function(t){return t(A,{props:V})}})},413:function(t,e){},52:function(t,e,s){var a=s(239);"string"==typeof a&&(a=[[t.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};s(25)(a,r);a.locals&&(t.exports=a.locals)}},[[235,0,1]]]);
//# sourceMappingURL=dashboard.js.map
\ No newline at end of file
diff --git a/public/v2/js/dashboard.js.map b/public/v2/js/dashboard.js.map
index dcd3a7a396..ae2b24e6ee 100755
--- a/public/v2/js/dashboard.js.map
+++ b/public/v2/js/dashboard.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///./src/components/dashboard/Calendar.vue?0ca4","webpack:///./src/components/dashboard/Calendar.vue?7459","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/components/dashboard/Dashboard.vue?2e08","webpack:///./src/components/dashboard/Dashboard.vue?e9df","webpack:///src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/TopBoxes.vue?c977","webpack:///src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?9c54","webpack:///./src/components/charts/DataConverter.vue?d682","webpack:///src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?36d0","webpack:///src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?e894","webpack:///./src/components/dashboard/MainAccount.vue?1e69","webpack:///src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?7d6d","webpack:///./src/components/dashboard/MainAccountList.vue?889b","webpack:///src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?ac92","webpack:///./src/components/dashboard/MainBillsList.vue?536e","webpack:///src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?8acb","webpack:///./src/components/dashboard/BudgetLimitRow.vue?c9a7","webpack:///src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue?d193","webpack:///./src/components/dashboard/BudgetRow.vue?09f9","webpack:///src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?7954","webpack:///src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetRow.vue?1b73","webpack:///./src/components/dashboard/MainBudgetList.vue?9843","webpack:///src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?9cbb","webpack:///./src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?4433","webpack:///./src/components/dashboard/MainCreditList.vue?53af","webpack:///src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?52ba","webpack:///./src/components/dashboard/MainDebitList.vue?587b","webpack:///src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?a917","webpack:///./src/components/dashboard/MainPiggyList.vue?7bae","webpack:///src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue?b9e0","webpack:///./src/components/transactions/TransactionListLarge.vue?3500","webpack:///src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue?350e","webpack:///./src/components/transactions/TransactionListMedium.vue?d4b8","webpack:///src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue?0bb3","webpack:///./src/components/transactions/TransactionListSmall.vue?5a3e","webpack:///src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue?6a70","webpack:///./src/components/dashboard/Calendar.vue?b9d0","webpack:///src/components/dashboard/Calendar.vue","webpack:///./src/components/dashboard/Calendar.vue","webpack:///./src/components/dashboard/Calendar.vue?7cba","webpack:///./src/components/dashboard/MainCategoryList.vue?9f14","webpack:///src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?dc06","webpack:///./src/pages/dashboard.js","webpack:///./src/components/dashboard/Calendar.vue?3f8b"],"names":["module","exports","push","i","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","name","created","computed","methods","_vm","this","_h","$createElement","_c","_self","_v","staticClass","props","data","summary","balances","billsPaid","billsUnpaid","leftToSpend","netWorth","prefCurrencyBalances","filterOnCurrency","notPrefCurrencyBalances","filterOnNotCurrency","prefBillsUnpaid","notPrefBillsUnpaid","prefLeftToSpend","notPrefLeftToSpend","prefNetWorth","notPrefNetWorth","currencyCode","$store","getters","currencyId","prepareComponent","array","hasOwnProperty","key","currency_id","ret","length","axios","get","window","sessionStart","sessionEnd","buildComponent","getBalanceEntries","getBillsEntries","getLeftToSpend","getNetWorth","hasCurrency","getKeyedEntries","expected","substr","result","_m","_s","$t","_l","balance","attrs","sub_title","value_parsed","index","_e","bill","left","nw","staticStyle","dataSet","newDataSet","locale","localStorage","local","convertChart","count","labels","datasets","getLabels","getDataSets","colorizeBarData","fillColors","colourSet","setKey","dataset","fill","backgroundColor","borderColor","colorizeLineData","convertLabelsToDate","labelKey","Intl","DateTimeFormat","format","unixTimeZero","firstSet","entries","entryLabel","oldSet","newSet","label","type","currency_symbol","currency_code","yAxisID","formatLabel","sections","words","str","String","split","temp","forEach","item","concat","maxwidth","getDefaultOptions","self","legend","display","animation","duration","responsive","maintainAspectRatio","elements","line","cubicInterpolationMode","scales","xAxes","yAxes","ticks","callback","NumberFormat","beginAtZero","tooltips","mode","callbacks","tooltipItem","datasetIndex","nrString","accounts","account","class","uri","title","transactions","components","loadBills","test","attributes","pay_dates","active","bills","style","currency","parseFloat","amount_min","amount_max","payDate","year","month","day","Date","mounted","budgetLimit","default","budget","budget_id","budget_name","pctGreen","spent","amount","pctOrange","pctRed","start","end","budgetLimits","Array","budgets","budgetList","daily","weekly","monthly","quarterly","half_year","yearly","other","rawBudgets","collectData","income","max","getExpenses","parseExpenses","mainKey","parseInt","difference_float","current","pct","entry","width","expenses","loadPiggyBanks","piggy","left_to_save","piggy_banks","sort","a","b","object_group_title","current_amount","target_amount","transaction","date","group_title","description","tr","destination_id","destination_name","source_id","source_name","account_id","category_id","category_name","Number","range","defaultRange","scopedSlots","_u","fn","ref","inputValue","inputEvents","isDragging","togglePopover","on","$event","placement","positionFixed","_g","domProps","model","value","$$v","expression","getCategories","categories","sortedList","earned","category","spentPct","earnedPct","require","Vue","component","TransactionListLarge","TransactionListMedium","TransactionListSmall","DatePicker","Dashboard","TopBoxes","MainAccount","MainAccountList","MainBillsList","MainBudgetList","MainCategoryList","MainDebitList","MainCreditList","MainPiggyList","use","Vuex","i18n","store","el","render","createElement","beforeCreate","commit","dispatch","Calendar","content","options","transform","undefined","locals"],"mappings":"uIAAA,O,qBCAUA,EAAOC,QAAU,EAAQ,GAAR,EAA4D,IAK/EC,KAAK,CAACF,EAAOG,EAAI,uFAAwF,M,oBCLjH,IAAIC,EAAM,CACT,OAA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UAAU,kBAAmBc,GAEjCf,IAAIgB,IAAIC,KAER,IAAIC,EAAOnB,EAAQ,IACfhP,EAAQ,GAEZ,IAAIiP,IAAI,CACIkB,OACAC,UACAC,GAAI,aACJC,OAAQ,SAACC,GACL,OAAOA,EAAchB,EAAW,CAACvP,MAAOA,KAE5CwQ,aAPJ,WAQQ/Q,KAAK0B,OAAOsP,OAAO,mBACnBhR,KAAK0B,OAAOuP,SAAS,+BAIrC,IAAIzB,IAAI,CACIkB,OACAC,UACAC,GAAI,YACJC,OAAQ,SAACC,GACL,OAAOA,EAAcI,EAAU,CAAC3Q,MAAOA,Q,uCCvFvD,IAAI4Q,EAAU,EAAQ,KAEA,iBAAZA,IAAsBA,EAAU,CAAC,CAACzS,EAAOG,EAAIsS,EAAS,MAOhE,IAAIC,EAAU,CAAC,KAAM,EAErB,eAPIC,EAQJ,gBAAqBC,GAER,EAAQ,GAAR,CAAgEH,EAASC,GAEnFD,EAAQI,SAAQ7S,EAAOC,QAAUwS,EAAQI,U","file":"/public/js/dashboard.js","sourcesContent":["export * from \"-!../../../node_modules/style-loader/index.js!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\"","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".dropdown-item[data-v-03e62f58],.dropdown-item[data-v-03e62f58]:hover{color:#212529}\", \"\"]);\n\n// exports\n","var map = {\n\t\"./af\": 61,\n\t\"./af.js\": 61,\n\t\"./ar\": 62,\n\t\"./ar-dz\": 63,\n\t\"./ar-dz.js\": 63,\n\t\"./ar-kw\": 64,\n\t\"./ar-kw.js\": 64,\n\t\"./ar-ly\": 65,\n\t\"./ar-ly.js\": 65,\n\t\"./ar-ma\": 66,\n\t\"./ar-ma.js\": 66,\n\t\"./ar-sa\": 67,\n\t\"./ar-sa.js\": 67,\n\t\"./ar-tn\": 68,\n\t\"./ar-tn.js\": 68,\n\t\"./ar.js\": 62,\n\t\"./az\": 69,\n\t\"./az.js\": 69,\n\t\"./be\": 70,\n\t\"./be.js\": 70,\n\t\"./bg\": 71,\n\t\"./bg.js\": 71,\n\t\"./bm\": 72,\n\t\"./bm.js\": 72,\n\t\"./bn\": 73,\n\t\"./bn-bd\": 74,\n\t\"./bn-bd.js\": 74,\n\t\"./bn.js\": 73,\n\t\"./bo\": 75,\n\t\"./bo.js\": 75,\n\t\"./br\": 76,\n\t\"./br.js\": 76,\n\t\"./bs\": 77,\n\t\"./bs.js\": 77,\n\t\"./ca\": 78,\n\t\"./ca.js\": 78,\n\t\"./cs\": 79,\n\t\"./cs.js\": 79,\n\t\"./cv\": 80,\n\t\"./cv.js\": 80,\n\t\"./cy\": 81,\n\t\"./cy.js\": 81,\n\t\"./da\": 82,\n\t\"./da.js\": 82,\n\t\"./de\": 83,\n\t\"./de-at\": 84,\n\t\"./de-at.js\": 84,\n\t\"./de-ch\": 85,\n\t\"./de-ch.js\": 85,\n\t\"./de.js\": 83,\n\t\"./dv\": 86,\n\t\"./dv.js\": 86,\n\t\"./el\": 87,\n\t\"./el.js\": 87,\n\t\"./en-au\": 88,\n\t\"./en-au.js\": 88,\n\t\"./en-ca\": 89,\n\t\"./en-ca.js\": 89,\n\t\"./en-gb\": 90,\n\t\"./en-gb.js\": 90,\n\t\"./en-ie\": 91,\n\t\"./en-ie.js\": 91,\n\t\"./en-il\": 92,\n\t\"./en-il.js\": 92,\n\t\"./en-in\": 93,\n\t\"./en-in.js\": 93,\n\t\"./en-nz\": 94,\n\t\"./en-nz.js\": 94,\n\t\"./en-sg\": 95,\n\t\"./en-sg.js\": 95,\n\t\"./eo\": 96,\n\t\"./eo.js\": 96,\n\t\"./es\": 97,\n\t\"./es-do\": 98,\n\t\"./es-do.js\": 98,\n\t\"./es-mx\": 99,\n\t\"./es-mx.js\": 99,\n\t\"./es-us\": 100,\n\t\"./es-us.js\": 100,\n\t\"./es.js\": 97,\n\t\"./et\": 101,\n\t\"./et.js\": 101,\n\t\"./eu\": 102,\n\t\"./eu.js\": 102,\n\t\"./fa\": 103,\n\t\"./fa.js\": 103,\n\t\"./fi\": 104,\n\t\"./fi.js\": 104,\n\t\"./fil\": 105,\n\t\"./fil.js\": 105,\n\t\"./fo\": 106,\n\t\"./fo.js\": 106,\n\t\"./fr\": 107,\n\t\"./fr-ca\": 108,\n\t\"./fr-ca.js\": 108,\n\t\"./fr-ch\": 109,\n\t\"./fr-ch.js\": 109,\n\t\"./fr.js\": 107,\n\t\"./fy\": 110,\n\t\"./fy.js\": 110,\n\t\"./ga\": 111,\n\t\"./ga.js\": 111,\n\t\"./gd\": 112,\n\t\"./gd.js\": 112,\n\t\"./gl\": 113,\n\t\"./gl.js\": 113,\n\t\"./gom-deva\": 114,\n\t\"./gom-deva.js\": 114,\n\t\"./gom-latn\": 115,\n\t\"./gom-latn.js\": 115,\n\t\"./gu\": 116,\n\t\"./gu.js\": 116,\n\t\"./he\": 117,\n\t\"./he.js\": 117,\n\t\"./hi\": 118,\n\t\"./hi.js\": 118,\n\t\"./hr\": 119,\n\t\"./hr.js\": 119,\n\t\"./hu\": 120,\n\t\"./hu.js\": 120,\n\t\"./hy-am\": 121,\n\t\"./hy-am.js\": 121,\n\t\"./id\": 122,\n\t\"./id.js\": 122,\n\t\"./is\": 123,\n\t\"./is.js\": 123,\n\t\"./it\": 124,\n\t\"./it-ch\": 125,\n\t\"./it-ch.js\": 125,\n\t\"./it.js\": 124,\n\t\"./ja\": 126,\n\t\"./ja.js\": 126,\n\t\"./jv\": 127,\n\t\"./jv.js\": 127,\n\t\"./ka\": 128,\n\t\"./ka.js\": 128,\n\t\"./kk\": 129,\n\t\"./kk.js\": 129,\n\t\"./km\": 130,\n\t\"./km.js\": 130,\n\t\"./kn\": 131,\n\t\"./kn.js\": 131,\n\t\"./ko\": 132,\n\t\"./ko.js\": 132,\n\t\"./ku\": 133,\n\t\"./ku.js\": 133,\n\t\"./ky\": 134,\n\t\"./ky.js\": 134,\n\t\"./lb\": 135,\n\t\"./lb.js\": 135,\n\t\"./lo\": 136,\n\t\"./lo.js\": 136,\n\t\"./lt\": 137,\n\t\"./lt.js\": 137,\n\t\"./lv\": 138,\n\t\"./lv.js\": 138,\n\t\"./me\": 139,\n\t\"./me.js\": 139,\n\t\"./mi\": 140,\n\t\"./mi.js\": 140,\n\t\"./mk\": 141,\n\t\"./mk.js\": 141,\n\t\"./ml\": 142,\n\t\"./ml.js\": 142,\n\t\"./mn\": 143,\n\t\"./mn.js\": 143,\n\t\"./mr\": 144,\n\t\"./mr.js\": 144,\n\t\"./ms\": 145,\n\t\"./ms-my\": 146,\n\t\"./ms-my.js\": 146,\n\t\"./ms.js\": 145,\n\t\"./mt\": 147,\n\t\"./mt.js\": 147,\n\t\"./my\": 148,\n\t\"./my.js\": 148,\n\t\"./nb\": 149,\n\t\"./nb.js\": 149,\n\t\"./ne\": 150,\n\t\"./ne.js\": 150,\n\t\"./nl\": 151,\n\t\"./nl-be\": 152,\n\t\"./nl-be.js\": 152,\n\t\"./nl.js\": 151,\n\t\"./nn\": 153,\n\t\"./nn.js\": 153,\n\t\"./oc-lnc\": 154,\n\t\"./oc-lnc.js\": 154,\n\t\"./pa-in\": 155,\n\t\"./pa-in.js\": 155,\n\t\"./pl\": 156,\n\t\"./pl.js\": 156,\n\t\"./pt\": 157,\n\t\"./pt-br\": 158,\n\t\"./pt-br.js\": 158,\n\t\"./pt.js\": 157,\n\t\"./ro\": 159,\n\t\"./ro.js\": 159,\n\t\"./ru\": 160,\n\t\"./ru.js\": 160,\n\t\"./sd\": 161,\n\t\"./sd.js\": 161,\n\t\"./se\": 162,\n\t\"./se.js\": 162,\n\t\"./si\": 163,\n\t\"./si.js\": 163,\n\t\"./sk\": 164,\n\t\"./sk.js\": 164,\n\t\"./sl\": 165,\n\t\"./sl.js\": 165,\n\t\"./sq\": 166,\n\t\"./sq.js\": 166,\n\t\"./sr\": 167,\n\t\"./sr-cyrl\": 168,\n\t\"./sr-cyrl.js\": 168,\n\t\"./sr.js\": 167,\n\t\"./ss\": 169,\n\t\"./ss.js\": 169,\n\t\"./sv\": 170,\n\t\"./sv.js\": 170,\n\t\"./sw\": 171,\n\t\"./sw.js\": 171,\n\t\"./ta\": 172,\n\t\"./ta.js\": 172,\n\t\"./te\": 173,\n\t\"./te.js\": 173,\n\t\"./tet\": 174,\n\t\"./tet.js\": 174,\n\t\"./tg\": 175,\n\t\"./tg.js\": 175,\n\t\"./th\": 176,\n\t\"./th.js\": 176,\n\t\"./tk\": 177,\n\t\"./tk.js\": 177,\n\t\"./tl-ph\": 178,\n\t\"./tl-ph.js\": 178,\n\t\"./tlh\": 179,\n\t\"./tlh.js\": 179,\n\t\"./tr\": 180,\n\t\"./tr.js\": 180,\n\t\"./tzl\": 181,\n\t\"./tzl.js\": 181,\n\t\"./tzm\": 182,\n\t\"./tzm-latn\": 183,\n\t\"./tzm-latn.js\": 183,\n\t\"./tzm.js\": 182,\n\t\"./ug-cn\": 184,\n\t\"./ug-cn.js\": 184,\n\t\"./uk\": 185,\n\t\"./uk.js\": 185,\n\t\"./ur\": 186,\n\t\"./ur.js\": 186,\n\t\"./uz\": 187,\n\t\"./uz-latn\": 188,\n\t\"./uz-latn.js\": 188,\n\t\"./uz.js\": 187,\n\t\"./vi\": 189,\n\t\"./vi.js\": 189,\n\t\"./x-pseudo\": 190,\n\t\"./x-pseudo.js\": 190,\n\t\"./yo\": 191,\n\t\"./yo.js\": 191,\n\t\"./zh-cn\": 192,\n\t\"./zh-cn.js\": 192,\n\t\"./zh-hk\": 193,\n\t\"./zh-hk.js\": 193,\n\t\"./zh-mo\": 194,\n\t\"./zh-mo.js\": 194,\n\t\"./zh-tw\": 195,\n\t\"./zh-tw.js\": 195\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 267;","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-boxes'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-account')],1)]),_vm._v(\" \"),_c('main-account-list'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-budget-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-category-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-debit-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-credit-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-piggy-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-bills-list')],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"","<!--\n - ExampleComponent.vue\n - Copyright (c) 2019 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <top-boxes/>\n <div class=\"row\">\n <div class=\"col\">\n <main-account/>\n </div>\n </div>\n <main-account-list/>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-budget-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-category-list/>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-debit-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-credit-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-piggy-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-bills-list/>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Dashboard\",\n created() {},\n computed: {},\n methods: {}\n}\n</script>\n","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=6fea41ee&\"\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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"","<!--\n - TopBoxes.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div class=\"col\"> <!-- col-md-3 col-sm-6 col-12 -->\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-bookmark text-info\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t(\"firefly.balance\") }}</span>\n <!-- balance in preferred currency -->\n <span class=\"info-box-number\" v-for=\"balance in prefCurrencyBalances\" :title=\"balance.sub_title\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-info\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- balance in not preferred currency -->\n <span class=\"progress-description\">\n <span v-for=\"(balance, index) in notPrefCurrencyBalances\" :title=\"balance.sub_title\">\n {{ balance.value_parsed }}<span v-if=\"index+1 !== notPrefCurrencyBalances.length\">, </span>\n </span>\n <span v-if=\"0===notPrefCurrencyBalances.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-calendar-alt text-teal\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t('firefly.bills_to_pay') }}</span>\n\n <!-- bills unpaid, in preferred currency. -->\n <span class=\"info-box-number\" v-for=\"balance in prefBillsUnpaid\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-teal\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- bills unpaid, in other currencies. -->\n <span class=\"progress-description\">\n <span v-for=\"(bill, index) in notPrefBillsUnpaid\">\n {{ bill.value_parsed }}<span v-if=\"index+1 !== notPrefBillsUnpaid.length\">, </span>\n </span>\n <span v-if=\"0===notPrefBillsUnpaid.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n <!-- left to spend -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t('firefly.left_to_spend') }}</span>\n\n <!-- left to spend in preferred currency -->\n <span class=\"info-box-number\" v-for=\"left in prefLeftToSpend\" :title=\"left.sub_title\">{{ left.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- other currencies-->\n <span class=\"progress-description\">\n <span v-for=\"(left, index) in notPrefLeftToSpend\">\n {{ left.value_parsed }}<span v-if=\"index+1 !== notPrefLeftToSpend.length\">, </span>\n </span>\n <span v-if=\"0===notPrefLeftToSpend.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <!-- net worth -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\"><span>{{ $t('firefly.net_worth') }}</span></span>\n <span class=\"info-box-number\" v-for=\"nw in prefNetWorth\" :title=\"nw.sub_title\">{{ nw.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <span class=\"progress-description\">\n <span v-for=\"(nw, index) in notPrefNetWorth\">\n {{ nw.value_parsed }}<span v-if=\"index+1 !== notPrefNetWorth.length\">, </span>\n </span>\n <span v-if=\"0===notPrefNetWorth.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nexport default {\n name: \"TopBoxes\",\n props: {},\n data() {\n return {\n summary: [],\n balances: [],\n billsPaid: [],\n billsUnpaid: [],\n leftToSpend: [],\n netWorth: [],\n }\n },\n computed: {\n\n // contains only balances with preferred currency.\n prefCurrencyBalances: function () {\n return this.filterOnCurrency(this.balances);\n },\n notPrefCurrencyBalances: function () {\n return this.filterOnNotCurrency(this.balances);\n },\n\n // contains only bills unpaid in preferred currency or first one.\n prefBillsUnpaid: function () {\n return this.filterOnCurrency(this.billsUnpaid);\n },\n notPrefBillsUnpaid: function () {\n return this.filterOnNotCurrency(this.billsUnpaid);\n },\n\n // left to spend\n prefLeftToSpend: function () {\n return this.filterOnCurrency(this.leftToSpend);\n },\n notPrefLeftToSpend: function () {\n return this.filterOnNotCurrency(this.leftToSpend);\n },\n\n // net worth\n prefNetWorth: function () {\n return this.filterOnCurrency(this.netWorth);\n },\n notPrefNetWorth: function () {\n return this.filterOnNotCurrency(this.netWorth);\n },\n currencyCode() {\n return this.$store.getters.currencyCode;\n },\n currencyId() {\n return this.$store.getters.currencyId;\n }\n },\n created() {\n this.prepareComponent();\n },\n methods: {\n filterOnCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n // console.log('Currency ID seems to be ' + this.currencyId);\n if (array[key].currency_id === this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n // or just the first one:\n if (0 === ret.length && array.hasOwnProperty(0)) {\n ret.push(array[0]);\n }\n return ret;\n },\n filterOnNotCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id !== this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n return ret;\n },\n /**\n * Prepare the component.\n */\n prepareComponent() {\n axios.get('./api/v1/summary/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.summary = response.data;\n this.buildComponent();\n });\n },\n buildComponent() {\n this.getBalanceEntries();\n this.getBillsEntries();\n this.getLeftToSpend();\n this.getNetWorth();\n },\n\n hasCurrency: function (array) {\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id === this.currencyId) {\n return true;\n }\n }\n }\n return false;\n },\n\n getBalanceEntries() {\n this.balances = this.getKeyedEntries('balance-in-');\n },\n getNetWorth() {\n this.netWorth = this.getKeyedEntries('net-worth-in-');\n },\n getLeftToSpend() {\n this.leftToSpend = this.getKeyedEntries('left-to-spend-in-');\n },\n getBillsEntries() {\n this.billsPaid = this.getKeyedEntries('bills-paid-in-');\n this.billsUnpaid = this.getKeyedEntries('bills-unpaid-in-');\n },\n getKeyedEntries(expected) {\n let result = [];\n for (const key in this.summary) {\n if (this.summary.hasOwnProperty(key)) {\n if (expected === key.substr(0, expected.length)) {\n result.push(this.summary[key]);\n }\n }\n }\n return result;\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TopBoxes.vue?vue&type=template&id=b9980d70&\"\nimport script from \"./TopBoxes.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBoxes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t(\"firefly.balance\")))]),_vm._v(\" \"),_vm._l((_vm.prefCurrencyBalances),function(balance){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":balance.sub_title}},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefCurrencyBalances),function(balance,index){return _c('span',{attrs:{\"title\":balance.sub_title}},[_vm._v(\"\\n \"+_vm._s(balance.value_parsed)),(index+1 !== _vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.bills_to_pay')))]),_vm._v(\" \"),_vm._l((_vm.prefBillsUnpaid),function(balance){return _c('span',{staticClass:\"info-box-number\"},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(3),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefBillsUnpaid),function(bill,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(bill.value_parsed)),(index+1 !== _vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.left_to_spend')))]),_vm._v(\" \"),_vm._l((_vm.prefLeftToSpend),function(left){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":left.sub_title}},[_vm._v(_vm._s(left.value_parsed))])}),_vm._v(\" \"),_vm._m(5),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefLeftToSpend),function(left,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(left.value_parsed)),(index+1 !== _vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(6),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_c('span',[_vm._v(_vm._s(_vm.$t('firefly.net_worth')))])]),_vm._v(\" \"),_vm._l((_vm.prefNetWorth),function(nw){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":nw.sub_title}},[_vm._v(_vm._s(nw.value_parsed))])}),_vm._v(\" \"),_vm._m(7),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefNetWorth),function(nw,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(nw.value_parsed)),(index+1 !== _vm.notPrefNetWorth.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefNetWorth.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-bookmark text-info\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-info\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-calendar-alt text-teal\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-teal\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"","<!--\n - DataConverter.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\nexport default {\n name: \"DataConverter\",\n data() {\n return {\n dataSet: null,\n newDataSet: null,\n locale: localStorage.local,\n }\n },\n methods: {\n convertChart(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n }\n this.getLabels();\n this.getDataSets();\n this.newDataSet.count = this.newDataSet.datasets.length;\n return this.newDataSet;\n },\n\n colorizeBarData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n\n colorizeLineData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n convertLabelsToDate(dataSet) {\n for (let labelKey in dataSet.labels) {\n if (dataSet.labels.hasOwnProperty(labelKey)) {\n const unixTimeZero = Date.parse(dataSet.labels[labelKey]);\n dataSet.labels[labelKey] = new Intl.DateTimeFormat(this.locale).format(unixTimeZero);\n }\n }\n return dataSet;\n },\n getLabels() {\n let firstSet = this.dataSet[0];\n if (typeof firstSet !== 'undefined') {\n for (const entryLabel in firstSet.entries) {\n if (firstSet.entries.hasOwnProperty(entryLabel)) {\n this.newDataSet.labels.push(entryLabel);\n }\n }\n }\n },\n getDataSets() {\n for (const setKey in this.dataSet) {\n if (this.dataSet.hasOwnProperty(setKey)) {\n let newSet = {};\n let oldSet = this.dataSet[setKey];\n if (typeof oldSet !== 'undefined') {\n newSet.label = oldSet.label;\n newSet.type = oldSet.type;\n newSet.currency_symbol = oldSet.currency_symbol;\n newSet.currency_code = oldSet.currency_code;\n newSet.yAxisID = oldSet.yAxisID;\n newSet.data = [];\n for (const entryLabel in oldSet.entries) {\n if (oldSet.entries.hasOwnProperty(entryLabel)) {\n newSet.data.push(oldSet.entries[entryLabel]);\n }\n }\n this.newDataSet.datasets.push(newSet);\n }\n }\n }\n }\n }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./DataConverter.vue?vue&type=script&lang=js&\"\nexport * from \"./DataConverter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","<!--\n - DefaultLineOptions.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n</template>\n\n\n<script>\n\nexport default {\n name: \"DefaultLineOptions\",\n data() {\n return {}\n },\n methods: {\n /**\n * Takes a string phrase and breaks it into separate phrases no bigger than 'maxwidth', breaks are made at complete words.\n * https://stackoverflow.com/questions/21409717/chart-js-and-long-labels\n *\n * @param str\n * @param maxwidth\n * @returns {Array}\n */\n formatLabel(str, maxwidth) {\n var sections = [];\n str = String(str);\n var words = str.split(\" \");\n var temp = \"\";\n\n words.forEach(function (item, index) {\n if (temp.length > 0) {\n var concat = temp + ' ' + item;\n\n if (concat.length > maxwidth) {\n sections.push(temp);\n temp = \"\";\n } else {\n if (index === (words.length - 1)) {\n sections.push(concat);\n return;\n } else {\n temp = concat;\n return;\n }\n }\n }\n\n if (index === (words.length - 1)) {\n sections.push(item);\n return;\n }\n\n if (item.length < maxwidth) {\n temp = item;\n } else {\n sections.push(item);\n }\n\n });\n\n return sections;\n },\n getDefaultOptions() {\n var self = this;\n return {\n legend: {\n display: false,\n },\n animation: {\n duration: 0,\n },\n responsive: true,\n maintainAspectRatio: false,\n elements: {\n line: {\n cubicInterpolationMode: 'monotone'\n }\n },\n scales: {\n xAxes: [\n {\n gridLines: {\n display: false\n },\n ticks: {\n // break ticks when too long\n callback: function (value, index, values) {\n // date format\n let dateObj = new Date(value);\n let options = { year: 'numeric', month: 'long', day: 'numeric' };\n let str = new Intl.DateTimeFormat(localStorage.locale, options).format(dateObj);\n //console.log();\n //return self.formatLabel(value, 20);\n return self.formatLabel(str, 20);\n }\n }\n }\n ],\n yAxes: [{\n display: true,\n ticks: {\n callback: function (tickValue) {\n \"use strict\";\n let currencyCode = this.chart.data.datasets[0].currency_code ? this.chart.data.datasets[0].currency_code : 'EUR';\n return new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tickValue);\n },\n beginAtZero: true\n }\n\n }]\n },\n tooltips: {\n mode: 'index',\n callbacks: {\n label: function (tooltipItem, data) {\n \"use strict\";\n let currencyCode = data.datasets[tooltipItem.datasetIndex].currency_code ? data.datasets[tooltipItem.datasetIndex].currency_code : 'EUR';\n let nrString =\n new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tooltipItem.yLabel)\n\n return data.datasets[tooltipItem.datasetIndex].label + ': ' + nrString;\n }\n }\n }\n };\n }\n\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=55cd0635&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 \"55cd0635\",\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 }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"","<!--\n - MainAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.yourAccounts') }}</h3>\n </div>\n <div class=\"card-body\">\n <div>\n <canvas id=\"mainAccountsChart\" style=\"min-height: 400px; height: 400px; max-height: 400px; max-width: 100%;\"></canvas>\n </div>\n </div>\n <div class=\"card-footer\">\n <a href=\"./accounts/asset\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport DataConverter from \"../charts/DataConverter\";\nimport DefaultLineOptions from \"../charts/DefaultLineOptions\";\n\nexport default {\n name: \"MainAccount\",\n created() {\n axios.get('./api/v1/chart/account/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n\n let chartData = DataConverter.methods.convertChart(response.data);\n chartData = DataConverter.methods.colorizeLineData(chartData);\n let lineChartCanvas = $('#mainAccountsChart').get(0).getContext('2d');\n new Chart(lineChartCanvas, {\n type: 'line',\n data: chartData,\n options: DefaultLineOptions.methods.getDefaultOptions()\n });\n });\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./MainAccount.vue?vue&type=template&id=4debd515&\"\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(\" \"),_vm._m(0),_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 = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-body\"},[_c('div',[_c('canvas',{staticStyle:{\"min-height\":\"400px\",\"height\":\"400px\",\"max-height\":\"400px\",\"max-width\":\"100%\"},attrs:{\"id\":\"mainAccountsChart\"}})])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"","<!--\n - MainAccountList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div v-bind:class=\"{ 'col-lg-12': 1 === accounts.length, 'col-lg-6': 2 === accounts.length, 'col-lg-4': accounts.length > 2 }\"\n v-for=\"account in accounts\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\"><a :href=\"account.uri\">{{ account.title }}</a></h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <transaction-list-large :transactions=\"account.transactions\" v-if=\"1===accounts.length\" :account_id=\"account.id\"/>\n <transaction-list-medium :transactions=\"account.transactions\" v-if=\"2===accounts.length\" :account_id=\"account.id\"/>\n <transaction-list-small :transactions=\"account.transactions\" v-if=\"accounts.length > 2\" :account_id=\"account.id\"/>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainAccountList\",\n data() {\n return {\n accounts: [],\n }\n },\n created() {\n axios.get('./api/v1/preferences/frontpageAccounts')\n .then(response => {\n this.loadAccounts(response);\n }\n );\n },\n methods:\n {\n loadAccounts(response) {\n let accountIds = response.data.data.attributes.data;\n for (let key in accountIds) {\n if (accountIds.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.accounts.push({\n id: accountIds[key],\n title: '',\n uri: '',\n transactions: []\n });\n this.loadSingleAccount(key, accountIds[key]);\n }\n }\n },\n loadSingleAccount(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId)\n .then(response => {\n this.accounts[key].title = response.data.data.attributes.name;\n this.accounts[key].uri = './accounts/show/' + response.data.data.id;\n this.loadTransactions(key, accountId);\n }\n );\n },\n loadTransactions(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId + '/transactions?page=1&limit=10')\n .then(response => {\n this.accounts[key].transactions = response.data.data;\n }\n );\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainAccountList.vue?vue&type=template&id=2f3a38b8&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 \"2f3a38b8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},_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.uri}},[_vm._v(_vm._s(account.title))])])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[(1===_vm.accounts.length)?_c('transaction-list-large',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e(),_vm._v(\" \"),(2===_vm.accounts.length)?_c('transaction-list-medium',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e(),_vm._v(\" \"),(_vm.accounts.length > 2)?_c('transaction-list-small',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e()],1)])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"","<!--\n - MainBills.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.bills') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.bills') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.name') }}</th>\n <th scope=\"col\" style=\"width:25%;\">{{ $t('list.next_expected_match') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"bill in this.bills\">\n <td><a :href=\"'./bills/show' + bill.id\" :title=\"bill.attributes.name\">{{ bill.attributes.name }}</a>\n ~{{\n Intl.NumberFormat(locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / 2)\n }}\n <br />\n </td>\n <td>\n <span v-for=\"payDate in bill.attributes.pay_dates\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)) }}\n <br />\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./bills\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_bills') }}</a>\n </div>\n </div>\n</template>\n<script>\n\nexport default {\n name: \"MainBillsList\",\n computed: {\n locale() {\n return this.$store.getters.locale;\n }\n },\n created() {\n axios.get('./api/v1/bills?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.loadBills(response.data.data);\n }\n );\n },\n components: {},\n methods: {\n loadBills(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n\n let bill = data[key];\n let active = bill.attributes.active;\n if (bill.attributes.pay_dates.length > 0 && active) {\n this.bills.push(bill);\n }\n }\n }\n }\n },\n data() {\n return {\n bills: []\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./MainBillsList.vue?vue&type=template&id=59904730&\"\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(\" \"),_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 ~\"+_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))+\"\\n \"),_c('br')]),_vm._v(\" \"),_c('td',_vm._l((bill.attributes.pay_dates),function(payDate){return _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')])}),0)])}),0)])]),_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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budgetLimit.budget_id\">{{ budgetLimit.budget_name }}</a>\n </td>\n\n <td style=\"vertical-align: middle\">\n <div class=\"progress progress active\">\n <div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctGreen\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctGreen + '%;'\">\n <span v-if=\"budgetLimit.pctGreen > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n\n\n </div>\n\n <div class=\"progress-bar bg-warning progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctOrange\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctOrange + '%;'\">\n <span v-if=\"budgetLimit.pctRed <= 50 && budgetLimit.pctOrange > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n </div>\n\n <div class=\"progress-bar bg-danger progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctRed\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctRed + '%;'\">\n <span v-if=\"budgetLimit.pctOrange <= 50 && budgetLimit.pctRed > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n </div>\n </div>\n <small class=\"d-none d-lg-block\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.start) }}\n &rarr;\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.end) }}\n </small>\n </td>\n\n <td style=\"width:10%;\" class=\"align-middle d-none d-lg-table-cell\">\n <span class=\"text-success\" v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) > 0\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n <span class=\"text-muted\" v-if=\"0.0 === parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent)\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(0) }}\n </span>\n <span class=\"text-danger\" v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) < 0\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n </td>\n </tr>\n\n</template>\n\n<script>\nexport default {\n name: \"BudgetLimitRow\",\n mounted() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budgetLimit: {\n type: Object,\n default: function () {\n return {};\n }\n },\n budget: {\n type: Object,\n default: function () {\n return {};\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetLimitRow.vue?vue&type=template&id=20d55ede&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 \"20d55ede\",\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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctGreen,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctGreen > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctOrange,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctRed <= 50 && _vm.budgetLimit.pctOrange > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctRed,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctOrange <= 50 && _vm.budgetLimit.pctRed > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount))+\"\\n \")]):_vm._e()])]),_vm._v(\" \"),_c('small',{staticClass:\"d-none d-lg-block\"},[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.start))+\"\\n →\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.end))+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle d-none d-lg-table-cell\",staticStyle:{\"width\":\"10%\"}},[(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) > 0)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(0.0 === parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent))?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(0))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) < 0)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budget.id\">{{ budget.name }}</a>\n </td>\n <td class=\"align-middle text-right\">\n <span class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budget.currency_code}).format(parseFloat(budget.spent)) }}\n </span>\n </td>\n </tr>\n</template>\n\n<script>\nexport default {\n name: \"BudgetRow\",\n mounted() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budget: {\n type: Object,\n default: {}\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","<!--\n - BudgetListGroup.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ title }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <BudgetLimitRow v-bind:key=\"key\" v-for=\"(budgetLimit, key) in budgetLimits\" :budgetLimit=\"budgetLimit\" />\n <BudgetRow v-bind:key=\"key\" v-for=\"(budget, key) in budgets\" :budget=\"budget\" />\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./budgets\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_budgets') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetLimitRow from \"./BudgetLimitRow\";\nimport BudgetRow from \"./BudgetRow\";\nexport default {\n name: \"BudgetListGroup\",\n components: {BudgetLimitRow, BudgetRow},\n props: {\n title: String,\n budgetLimits: Array,\n budgets: Array,\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetRow.vue?vue&type=template&id=3e0b277e&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 \"3e0b277e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budget.id}},[_vm._v(_vm._s(_vm.budget.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle text-right\"},[_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budget.currency_code}).format(parseFloat(_vm.budget.spent)))+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"","<!--\n - MainBudgetList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- daily budgets (will be the exception, I expect) -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.daily.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.daily_budgets')\" :budgetLimits=budgetLimits.daily\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.weekly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.weekly_budgets')\" :budgetLimits=budgetLimits.weekly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.monthly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.monthly_budgets')\" :budgetLimits=budgetLimits.monthly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.quarterly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.quarterly_budgets')\" :budgetLimits=budgetLimits.quarterly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.half_year.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.half_year_budgets')\" :budgetLimits=budgetLimits.half_year\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.yearly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.yearly_budgets')\" :budgetLimits=budgetLimits.yearly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.other.length > 0 || rawBudgets.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.other_budgets')\" :budgetLimits=budgetLimits.other :budgets=\"rawBudgets\"\n />\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport BudgetListGroup from \"./BudgetListGroup\";\n\nexport default {\n name: \"MainBudgetList\",\n components: {BudgetListGroup},\n data() {\n return {\n budgetList: ['daily', 'weekly', 'monthly', 'quarterly', 'half_year', 'yearly', 'other'],\n budgetLimits: {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n },\n budgets: {},\n rawBudgets: [],\n locale: 'en-US',\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.collectData();\n },\n methods:\n {\n collectData() {\n this.getBudgets();\n },\n getBudgets() {\n axios.get('./api/v1/budgets?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n for (let subKey in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let spentData = current.attributes.spent[subKey];\n this.rawBudgets.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name,\n currency_id: parseInt(spentData.currency_id),\n currency_code: spentData.currency_code,\n spent: spentData.sum\n }\n );\n }\n }\n\n }\n }\n this.getBudgetLimits();\n },\n\n\n getBudgetLimits() {\n axios.get('./api/v1/budgets/limits?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseBudgetLimits(response.data);\n }\n );\n },\n parseBudgetLimits(data) {\n for (let key in data.included) {\n if (data.included.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.budgets[data.included[key].id] =\n {\n id: data.included[key].id,\n name: data.included[key].attributes.name,\n };\n }\n }\n\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let pctGreen = 0;\n let pctOrange = 0;\n let pctRed = 0;\n\n // remove budget info from rawBudgets if it's there:\n this.filterBudgets(data.data[key].attributes.budget_id, data.data[key].attributes.currency_id);\n\n // spent within budget:\n if (0.0 !== parseFloat(data.data[key].attributes.spent) && (parseFloat(data.data[key].attributes.spent) * -1) < parseFloat(data.data[key].attributes.amount)) {\n pctGreen = (parseFloat(data.data[key].attributes.spent) * -1 / parseFloat(data.data[key].attributes.amount) * 100);\n }\n\n // spent over budget\n if (0.0 !== parseFloat(data.data[key].attributes.spent) && (parseFloat(data.data[key].attributes.spent) * -1) > parseFloat(data.data[key].attributes.amount)) {\n pctOrange = (parseFloat(data.data[key].attributes.amount) / parseFloat(data.data[key].attributes.spent) * -1) * 100;\n pctRed = 100 - pctOrange;\n }\n let obj = {\n id: data.data[key].id,\n amount: data.data[key].attributes.amount,\n budget_id: data.data[key].attributes.budget_id,\n budget_name: this.budgets[data.data[key].attributes.budget_id].name,\n currency_id: data.data[key].attributes.currency_id,\n currency_code: data.data[key].attributes.currency_code,\n period: data.data[key].attributes.period,\n start: new Date(data.data[key].attributes.start),\n end: new Date(data.data[key].attributes.end),\n spent: data.data[key].attributes.spent,\n pctGreen: pctGreen,\n pctOrange: pctOrange,\n pctRed: pctRed,\n };\n\n let period = data.data[key].attributes.period ?? 'other';\n this.budgetLimits[period].push(obj);\n\n }\n }\n\n\n // // loop budgets (and do what?)\n // for (let key in data.included) {\n // if (data.included.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n // let obj = {\n // name: data.included[key].attributes.name,\n // id: data.included[key].id,\n // };\n // this.budgets[data.included[key].id] = obj;\n // }\n // }\n\n // loop budget limits:\n // for (let key in data.data) {\n // if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n // let pctGreen = 0;\n // let pctOrange = 0;\n // let pctRed = 0;\n //\n\n //\n // let obj = {\n // id: data.data[key].id,\n // amount: data.data[key].attributes.amount,\n // budget_id: data.data[key].attributes.budget_id,\n // currency_id: data.data[key].attributes.currency_id,\n // currency_code: data.data[key].attributes.currency_code,\n // period: data.data[key].attributes.period,\n // start: new Date(data.data[key].attributes.start),\n // end: new Date(data.data[key].attributes.end),\n // spent: data.data[key].attributes.spent,\n // pctGreen: pctGreen,\n // pctOrange: pctOrange,\n // pctRed: pctRed,\n // };\n //\n //\n //\n // let period = data.data[key].attributes.period ?? 'other';\n // this.budgetLimits[period].push(obj);\n // }\n // }\n\n },\n filterBudgets(budgetId, currencyId) {\n for (let key in this.rawBudgets) {\n if (this.rawBudgets.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n if (this.rawBudgets[key].currency_id === currencyId && this.rawBudgets[key].id === budgetId) {\n this.rawBudgets.splice(key, 1);\n }\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetListGroup.vue?vue&type=template&id=1480b15a&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 \"1480b15a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',[_vm._l((_vm.budgetLimits),function(budgetLimit,key){return _c('BudgetLimitRow',{key:key,attrs:{\"budgetLimit\":budgetLimit}})}),_vm._v(\" \"),_vm._l((_vm.budgets),function(budget,key){return _c('BudgetRow',{key:key,attrs:{\"budget\":budget}})})],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./budgets\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_budgets')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./MainBudgetList.vue?vue&type=template&id=f0d512f0&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 \"f0d512f0\",\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('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:{\"title\":_vm.$t('firefly.daily_budgets'),\"budgetLimits\":_vm.budgetLimits.daily}})],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:{\"title\":_vm.$t('firefly.weekly_budgets'),\"budgetLimits\":_vm.budgetLimits.weekly}})],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:{\"title\":_vm.$t('firefly.monthly_budgets'),\"budgetLimits\":_vm.budgetLimits.monthly}})],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:{\"title\":_vm.$t('firefly.quarterly_budgets'),\"budgetLimits\":_vm.budgetLimits.quarterly}})],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:{\"title\":_vm.$t('firefly.half_year_budgets'),\"budgetLimits\":_vm.budgetLimits.half_year}})],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:{\"title\":_vm.$t('firefly.yearly_budgets'),\"budgetLimits\":_vm.budgetLimits.yearly}})],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:{\"title\":_vm.$t('firefly.other_budgets'),\"budgetLimits\":_vm.budgetLimits.other,\"budgets\":_vm.rawBudgets}})],1):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"","<!--\n - MainCreditList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.revenue_accounts') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in income\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div class=\"progress\" v-if=\"entry.pct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-success\" role=\"progressbar\" :aria-valuenow=\"entry.pct\"\n :style=\"{ width: entry.pct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./transactions/deposit\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_deposits') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainCreditList\",\n data() {\n return {\n locale: 'en-US',\n income: [],\n max: 0\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getExpenses();\n },\n methods: {\n getExpenses() {\n axios.get('./api/v1/insight/income/date/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === parseInt(mainKey)) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if(0 !== parseInt(mainKey)) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.income.push(current);\n\n }\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./MainCreditList.vue?vue&type=template&id=bf82cc48&\"\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.income),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: entry.pct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":entry.pct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"","<!--\n - MainDebitList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.expense_accounts') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in expenses\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div class=\"progress\" v-if=\"entry.pct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-danger\" role=\"progressbar\" :aria-valuenow=\"entry.pct\"\n :style=\"{ width: entry.pct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./transactions/withdrawal\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_withdrawals') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainDebitList\",\n data() {\n return {\n locale: 'en-US',\n expenses: [],\n max: 0\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getExpenses();\n },\n methods: {\n getExpenses() {\n axios.get('./api/v1/insight/expense/date/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === parseInt(mainKey)) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if(0 !== parseInt(mainKey)) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.expenses.push(current);\n\n }\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./MainDebitList.vue?vue&type=template&id=30a09b68&\"\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.expenses),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: entry.pct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":entry.pct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","<!--\n - MainPiggyList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.piggy_banks') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.piggy_banks') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.piggy_bank') }}</th>\n <th scope=\"col\" style=\"width:40%;\">{{ $t('list.percentage') }} <small>/ {{ $t('list.amount') }}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"piggy in this.piggy_banks\">\n <td>{{ piggy.attributes.name }}\n <small v-if=\"piggy.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ piggy.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <div class=\"progress-group\">\n <div class=\"progress progress-sm\">\n <div class=\"progress-bar progress-bar-striped primary\" v-if=\"piggy.attributes.pct < 100\" :style=\"{'width': piggy.attributes.pct + '%'}\"></div>\n <div class=\"progress-bar progress-bar-striped bg-success\" v-if=\"100 === piggy.attributes.pct\" :style=\"{'width': piggy.attributes.pct + '%'}\"></div>\n </div>\n </div>\n <span class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount)\n }}\n </span>\n of\n <span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)\n }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./piggy-banks\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_piggies') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainPiggyList\",\n created() {\n axios.get('./api/v1/piggy_banks')\n .then(response => {\n this.loadPiggyBanks(response.data.data);\n }\n );\n },\n computed: {\n locale() {\n return this.$store.getters.locale;\n }\n },\n methods: {\n loadPiggyBanks(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let piggy = data[key];\n if (0.0 !== parseFloat(piggy.attributes.left_to_save)) {\n piggy.attributes.pct = (parseFloat(piggy.attributes.current_amount) / parseFloat(piggy.attributes.target_amount)) * 100;\n this.piggy_banks.push(piggy);\n }\n }\n }\n this.piggy_banks.sort(function (a, b) {\n return b.attributes.pct - a.attributes.pct;\n });\n }\n },\n data() {\n return {\n piggy_banks: []\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainPiggyList.vue?vue&type=template&id=14a8a9a0&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 \"14a8a9a0\",\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(\" \"),_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',[_vm._v(_vm._s(piggy.attributes.name)+\"\\n \"),(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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListLarge.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n <th scope=\"col\">{{ $t('firefly.category') }}</th>\n <th scope=\"col\">{{ $t('firefly.budget') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'withdrawal' === tr.type\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'deposit' === tr.type\">{{ tr.source_name }}</a>\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'transfer' === tr.type && tr.source_id === account_id\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'transfer' === tr.type && tr.destination_id === account_id\">{{ tr.source_name }}</a>\n <br />\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'categories/show/' + tr.category_id\" v-if=\"0!==tr.category_id\">{{ tr.category_name }}</a><br />\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'budgets/show/' + tr.budget_id\" v-if=\"0!==tr.budget_id\">{{ tr.budget_name }}</a><br />\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\n export default {\n name: \"TransactionListLarge\",\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListLarge.vue?vue&type=template&id=3b50021b&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 \"3b50021b\",\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 && 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 && 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('en-US', {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('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.source_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.category_id)?_c('a',{attrs:{\"href\":'categories/show/' + tr.category_id}},[_vm._v(_vm._s(tr.category_name))]):_vm._e(),_c('br')])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.budget_id)?_c('a',{attrs:{\"href\":'budgets/show/' + tr.budget_id}},[_vm._v(_vm._s(tr.budget_name))]):_vm._e(),_c('br')])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListMedium.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'withdrawal' === tr.type\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'deposit' === tr.type\">{{ tr.source_name }}</a>\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'transfer' === tr.type && tr.source_id === account_id\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'transfer' === tr.type && tr.destination_id === account_id\">{{ tr.source_name }}</a>\n <br />\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\n export default {\n name: \"TransactionListMedium\",\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListMedium.vue?vue&type=template&id=0c7078c9&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 \"0c7078c9\",\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 && 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 && 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('en-US', {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('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.source_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListSmall.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListSmall\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n methods: {\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListSmall.vue?vue&type=template&id=fae12aa6&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 \"fae12aa6\",\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 && 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 && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","<!--\n - Calendar.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"row\">\n <div class=\"col\">Start</div>\n <div class=\"col-8\">{{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(range.start) }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col\">End</div>\n <div class=\"col-8\">{{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(range.end) }}</div>\n </div>\n <date-picker\n v-model=\"range\"\n mode=\"date\"\n rows=\"2\"\n is-range\n >\n <template v-slot=\"{ inputValue, inputEvents, isDragging, togglePopover }\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"btn-group btn-group-sm d-flex\">\n <button\n class=\"btn btn-secondary btn-sm\"\n @click=\"togglePopover({ placement: 'auto-start', positionFixed:true })\"\n ><i class=\"fas fa-calendar-alt\"></i></button>\n <button\n class=\"btn btn-secondary\"\n ><i class=\"fas fa-history\"></i></button>\n\n\n <button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-toggle=\"dropdown\" aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <i class=\"fas fa-list\"></i>\n </button>\n <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\n <a class=\"dropdown-item\" href=\"#\">(prev period)</a>\n <a class=\"dropdown-item\" href=\"#\">(next period)</a>\n <a class=\"dropdown-item\" href=\"#\">(this week?)</a>\n </div>\n\n </div>\n <input type=\"hidden\"\n :class=\"isDragging ? 'text-gray-600' : 'text-gray-900'\"\n :value=\"inputValue.start\"\n v-on=\"inputEvents.start\"\n />\n <input type=\"hidden\"\n :class=\"isDragging ? 'text-gray-600' : 'text-gray-900'\"\n :value=\"inputValue.end\"\n v-on=\"inputEvents.end\"\n />\n </div>\n </div>\n </template>\n </date-picker>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Calendar\",\n created() {\n // this.locale = localStorage.locale ?? 'en-US';\n // this.$store.commit('increment');\n // console.log(this.$store.state.count);\n // get dates for current period (history button):\n // get dates for optional periods (dropdown) + descriptions.\n },\n data() {\n return {\n locale: 'en-US',\n range: {\n start: new Date(window.sessionStart),\n end: new Date(window.sessionEnd),\n },\n defaultRange: {\n start: new Date(window.sessionStart),\n end: new Date(window.sessionEnd),\n },\n };\n },\n}\n</script>\n\n<style scoped>\n.dropdown-item {\n color: #212529;\n}\n\n.dropdown-item:hover {\n color: #212529;\n}\n</style>","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=03e62f58&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=03e62f58&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 \"03e62f58\",\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('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:{\"mode\":\"date\",\"rows\":\"2\",\"is-range\":\"\"},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\",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\"},[_c('i',{staticClass:\"fas fa-history\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"data-toggle\":\"dropdown\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('i',{staticClass:\"fas fa-list\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(prev period)\")]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(next period)\")]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(this week?)\")])])]),_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 }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"","<!--\n - MainCategoryList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.categories') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"category in sortedList\">\n <td style=\"width:20%;\">\n <a :href=\"'./categories/show/' + category.id\">{{ category.name }}</a>\n <!--<p>Spent: {{ category.spentPct }}</p>\n <p>earned: {{ category.earnedPct }}</p>\n -->\n </td>\n <td class=\"align-middle\">\n <!-- SPENT -->\n <div class=\"progress\" v-if=\"category.spentPct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-danger\" role=\"progressbar\" :aria-valuenow=\"category.spentPct\"\n :style=\"{ width: category.spentPct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"category.spentPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n <span v-if=\"category.spentPct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n\n <!-- EARNED -->\n <div class=\"progress justify-content-end\" v-if=\"category.earnedPct > 0\" title=\"hello2\">\n <span v-if=\"category.earnedPct <= 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n &nbsp;</span>\n <div class=\"progress-bar progress-bar-striped bg-success\" role=\"progressbar\" :aria-valuenow=\"category.earnedPct\" :style=\"{ width: category.earnedPct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\" title=\"hello\">\n <span v-if=\"category.earnedPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n </span>\n </div>\n </div>\n\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainCategoryList\",\n\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getCategories();\n },\n data() {\n return {\n locale: 'en-US',\n categories: [],\n sortedList: [],\n spent: 0,\n earned: 0\n }\n },\n methods:\n {\n getCategories() {\n axios.get('./api/v1/categories?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseCategories(response.data);\n }\n );\n },\n parseCategories(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n let entryKey = null;\n let categoryId = parseInt(current.id);\n\n // loop spent info:\n for (let subKey in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let spentData = current.attributes.spent[subKey];\n entryKey = spentData.currency_id.toString() + '-' + current.id.toString();\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: spentData.currency_code,\n currency_symbol: spentData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].spent = parseFloat(spentData.sum);\n this.spent = parseFloat(spentData.sum) < this.spent ? parseFloat(spentData.sum) : this.spent;\n }\n }\n\n // loop earned info\n for (let subKey in current.attributes.earned) {\n if (current.attributes.earned.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let earnedData = current.attributes.earned[subKey];\n entryKey = earnedData.currency_id.toString() + '-' + current.id.toString();\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: earnedData.currency_code,\n currency_symbol: earnedData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].earned = parseFloat(earnedData.sum);\n this.earned = parseFloat(earnedData.sum) > this.earned ? parseFloat(earnedData.sum) : this.earned;\n }\n }\n }\n }\n this.sortCategories();\n },\n sortCategories() {\n // no longer care about keys:\n let array = [];\n for (let cat in this.categories) {\n if (this.categories.hasOwnProperty(cat)) {\n array.push(this.categories[cat]);\n }\n }\n array.sort(function (one, two) {\n return (one.spent + one.earned) - (two.spent + two.earned);\n });\n for (let cat in array) {\n if (array.hasOwnProperty(cat)) {\n let current = array[cat];\n current.spentPct = (current.spent / this.spent) * 100;\n current.earnedPct = (current.earned / this.earned) * 100;\n this.sortedList.push(current);\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./MainCategoryList.vue?vue&type=template&id=00bc733f&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 \"00bc733f\",\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.sortedList),function(category){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./categories/show/' + category.id}},[_vm._v(_vm._s(category.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(category.spentPct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: category.spentPct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":category.spentPct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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',[_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:{\"role\":\"progressbar\",\"aria-valuenow\":category.earnedPct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"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)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * dashboard.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport Dashboard from \"../components/dashboard/Dashboard\";\nimport TopBoxes from \"../components/dashboard/TopBoxes\";\nimport MainAccount from \"../components/dashboard/MainAccount\";\nimport MainAccountList from \"../components/dashboard/MainAccountList\";\nimport MainBillsList from \"../components/dashboard/MainBillsList\";\nimport MainBudgetList from \"../components/dashboard/MainBudgetList\";\nimport MainCreditList from \"../components/dashboard/MainCreditList\";\nimport MainDebitList from \"../components/dashboard/MainDebitList\";\nimport MainPiggyList from \"../components/dashboard/MainPiggyList\";\nimport TransactionListLarge from \"../components/transactions/TransactionListLarge\";\nimport TransactionListMedium from \"../components/transactions/TransactionListMedium\";\nimport TransactionListSmall from \"../components/transactions/TransactionListSmall\";\nimport DatePicker from 'v-calendar/lib/components/date-picker.umd'\nimport Calendar from \"../components/dashboard/Calendar\";\nimport MainCategoryList from \"../components/dashboard/MainCategoryList\";\nimport Vue from \"vue\";\nimport Vuex from 'vuex'\nimport store from '../components/store';\n\n/**\n * First we will load Axios via bootstrap.js\n * jquery and bootstrap-sass preloaded in app.js\n * vue, uiv and vuei18n are in app_vue.js\n */\n\nrequire('../bootstrap');\nrequire('chart.js');\n\nVue.component('transaction-list-large', TransactionListLarge);\nVue.component('transaction-list-medium', TransactionListMedium);\nVue.component('transaction-list-small', TransactionListSmall);\n\n// components as an example\nVue.component('date-picker', DatePicker)\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 this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n },\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 });","\nvar content = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///./src/components/dashboard/Calendar.vue?0ca4","webpack:///./src/components/dashboard/Calendar.vue?7459","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/components/dashboard/Dashboard.vue?2e08","webpack:///./src/components/dashboard/Dashboard.vue?e9df","webpack:///src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/Dashboard.vue","webpack:///./src/components/dashboard/TopBoxes.vue?c977","webpack:///src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue","webpack:///./src/components/dashboard/TopBoxes.vue?9c54","webpack:///./src/components/charts/DataConverter.vue?d682","webpack:///src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DataConverter.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?36d0","webpack:///src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue","webpack:///./src/components/charts/DefaultLineOptions.vue?e894","webpack:///./src/components/dashboard/MainAccount.vue?1e69","webpack:///src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue","webpack:///./src/components/dashboard/MainAccount.vue?7d6d","webpack:///./src/components/dashboard/MainAccountList.vue?889b","webpack:///src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue","webpack:///./src/components/dashboard/MainAccountList.vue?d87b","webpack:///./src/components/dashboard/MainBillsList.vue?536e","webpack:///src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue","webpack:///./src/components/dashboard/MainBillsList.vue?55ec","webpack:///./src/components/dashboard/BudgetLimitRow.vue?c9a7","webpack:///src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue","webpack:///./src/components/dashboard/BudgetLimitRow.vue?e84c","webpack:///./src/components/dashboard/BudgetRow.vue?09f9","webpack:///src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?7954","webpack:///src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetRow.vue","webpack:///./src/components/dashboard/BudgetRow.vue?1b73","webpack:///./src/components/dashboard/MainBudgetList.vue?9843","webpack:///src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue","webpack:///./src/components/dashboard/BudgetListGroup.vue?9cbb","webpack:///./src/components/dashboard/MainBudgetList.vue","webpack:///./src/components/dashboard/MainBudgetList.vue?4433","webpack:///./src/components/dashboard/MainCreditList.vue?53af","webpack:///src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue","webpack:///./src/components/dashboard/MainCreditList.vue?52ba","webpack:///./src/components/dashboard/MainDebitList.vue?587b","webpack:///src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue","webpack:///./src/components/dashboard/MainDebitList.vue?a917","webpack:///./src/components/dashboard/MainPiggyList.vue?7bae","webpack:///src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue","webpack:///./src/components/dashboard/MainPiggyList.vue?b9e0","webpack:///./src/components/transactions/TransactionListLarge.vue?3500","webpack:///src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue","webpack:///./src/components/transactions/TransactionListLarge.vue?350e","webpack:///./src/components/transactions/TransactionListMedium.vue?d4b8","webpack:///src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue","webpack:///./src/components/transactions/TransactionListMedium.vue?0bb3","webpack:///./src/components/transactions/TransactionListSmall.vue?5a3e","webpack:///src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue","webpack:///./src/components/transactions/TransactionListSmall.vue?6a70","webpack:///./src/components/dashboard/Calendar.vue?b9d0","webpack:///src/components/dashboard/Calendar.vue","webpack:///./src/components/dashboard/Calendar.vue","webpack:///./src/components/dashboard/Calendar.vue?7cba","webpack:///./src/components/dashboard/MainCategoryList.vue?9f14","webpack:///src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue","webpack:///./src/components/dashboard/MainCategoryList.vue?dc06","webpack:///./src/pages/dashboard.js","webpack:///./src/components/dashboard/Calendar.vue?3f8b"],"names":["module","exports","push","i","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","name","created","computed","methods","_vm","this","_h","$createElement","_c","_self","_v","staticClass","props","data","summary","balances","billsPaid","billsUnpaid","leftToSpend","netWorth","prefCurrencyBalances","filterOnCurrency","notPrefCurrencyBalances","filterOnNotCurrency","prefBillsUnpaid","notPrefBillsUnpaid","prefLeftToSpend","notPrefLeftToSpend","prefNetWorth","notPrefNetWorth","currencyCode","$store","getters","currencyId","prepareComponent","array","hasOwnProperty","key","currency_id","ret","length","axios","get","window","sessionStart","sessionEnd","buildComponent","getBalanceEntries","getBillsEntries","getLeftToSpend","getNetWorth","hasCurrency","getKeyedEntries","expected","substr","result","_m","_s","$t","_l","balance","attrs","sub_title","value_parsed","index","_e","bill","left","nw","staticStyle","dataSet","newDataSet","locale","localStorage","local","convertChart","count","labels","datasets","getLabels","getDataSets","colorizeBarData","fillColors","colourSet","setKey","dataset","fill","backgroundColor","borderColor","colorizeLineData","convertLabelsToDate","labelKey","Intl","DateTimeFormat","format","unixTimeZero","firstSet","entries","entryLabel","oldSet","newSet","label","type","currency_symbol","currency_code","yAxisID","formatLabel","sections","words","str","String","split","temp","forEach","item","concat","maxwidth","getDefaultOptions","self","legend","display","animation","duration","responsive","maintainAspectRatio","elements","line","cubicInterpolationMode","scales","xAxes","yAxes","ticks","callback","NumberFormat","beginAtZero","tooltips","mode","callbacks","tooltipItem","datasetIndex","nrString","accounts","account","class","url","title","parseFloat","current_balance","style","currency","transactions","components","loadBills","test","attributes","pay_dates","active","bills","amount_min","amount_max","payDate","year","month","day","Date","budgetLimit","default","budget","budget_id","budget_name","pctGreen","spent","amount","pctOrange","pctRed","start","end","mounted","budgetLimits","Array","budgets","budgetList","daily","weekly","monthly","quarterly","half_year","yearly","other","rawBudgets","collectData","income","max","getExpenses","parseExpenses","mainKey","parseInt","difference_float","current","pct","entry","width","expenses","loadPiggyBanks","piggy","left_to_save","piggy_banks","sort","a","b","object_group_title","current_amount","target_amount","transaction","date","group_title","description","tr","destination_id","destination_name","source_id","source_name","account_id","category_id","category_name","Number","range","defaultRange","scopedSlots","_u","fn","ref","inputValue","inputEvents","isDragging","togglePopover","on","$event","placement","positionFixed","_g","domProps","model","value","$$v","expression","getCategories","categories","sortedList","earned","category","spentPct","earnedPct","require","Vue","component","TransactionListLarge","TransactionListMedium","TransactionListSmall","DatePicker","Dashboard","TopBoxes","MainAccount","MainAccountList","MainBillsList","MainBudgetList","MainCategoryList","MainDebitList","MainCreditList","MainPiggyList","use","Vuex","i18n","store","el","render","createElement","beforeCreate","commit","dispatch","Calendar","content","options","transform","undefined","locals"],"mappings":"uIAAA,O,qBCAUA,EAAOC,QAAU,EAAQ,GAAR,EAA4D,IAK/EC,KAAK,CAACF,EAAOG,EAAI,uFAAwF,M,oBCLjH,IAAIC,EAAM,CACT,OAAQ,GACR,UAAW,GACX,OAAQ,GACR,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GACX,aAAc,GACd,UAAW,GAC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C,UAAU,YAAaK,GAC3BN,IAAIC,UAAU,YAAaM,GAC3BP,IAAIC,UAAU,eAAgBO,GAC9BR,IAAIC,UAAU,oBAAqBQ,GACnCT,IAAIC,UAAU,kBAAmBS,GACjCV,IAAIC,UAAU,mBAAoBU,GAClCX,IAAIC,UAAU,qBAAsBW,GACpCZ,IAAIC,UAAU,kBAAmBY,GACjCb,IAAIC,UAAU,mBAAoBa,GAClCd,IAAIC,UAAU,kBAAmBc,GAEjCf,IAAIgB,IAAIC,KAER,IAAIC,EAAOnB,EAAQ,IACfjP,EAAQ,GAEZ,IAAIkP,IAAI,CACIkB,OACAC,UACAC,GAAI,aACJC,OAAQ,SAACC,GACL,OAAOA,EAAchB,EAAW,CAACxP,MAAOA,KAE5CyQ,aAPJ,WAQQhR,KAAK0B,OAAOuP,OAAO,mBACnBjR,KAAK0B,OAAOwP,SAAS,+BAIrC,IAAIzB,IAAI,CACIkB,OACAC,UACAC,GAAI,YACJC,OAAQ,SAACC,GACL,OAAOA,EAAcI,EAAU,CAAC5Q,MAAOA,Q,uCCvFvD,IAAI6Q,EAAU,EAAQ,KAEA,iBAAZA,IAAsBA,EAAU,CAAC,CAAC1S,EAAOG,EAAIuS,EAAS,MAOhE,IAAIC,EAAU,CAAC,KAAM,EAErB,eAPIC,EAQJ,gBAAqBC,GAER,EAAQ,GAAR,CAAgEH,EAASC,GAEnFD,EAAQI,SAAQ9S,EAAOC,QAAUyS,EAAQI,U","file":"/public/js/dashboard.js","sourcesContent":["export * from \"-!../../../node_modules/style-loader/index.js!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\"","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".dropdown-item[data-v-03e62f58],.dropdown-item[data-v-03e62f58]:hover{color:#212529}\", \"\"]);\n\n// exports\n","var map = {\n\t\"./af\": 61,\n\t\"./af.js\": 61,\n\t\"./ar\": 62,\n\t\"./ar-dz\": 63,\n\t\"./ar-dz.js\": 63,\n\t\"./ar-kw\": 64,\n\t\"./ar-kw.js\": 64,\n\t\"./ar-ly\": 65,\n\t\"./ar-ly.js\": 65,\n\t\"./ar-ma\": 66,\n\t\"./ar-ma.js\": 66,\n\t\"./ar-sa\": 67,\n\t\"./ar-sa.js\": 67,\n\t\"./ar-tn\": 68,\n\t\"./ar-tn.js\": 68,\n\t\"./ar.js\": 62,\n\t\"./az\": 69,\n\t\"./az.js\": 69,\n\t\"./be\": 70,\n\t\"./be.js\": 70,\n\t\"./bg\": 71,\n\t\"./bg.js\": 71,\n\t\"./bm\": 72,\n\t\"./bm.js\": 72,\n\t\"./bn\": 73,\n\t\"./bn-bd\": 74,\n\t\"./bn-bd.js\": 74,\n\t\"./bn.js\": 73,\n\t\"./bo\": 75,\n\t\"./bo.js\": 75,\n\t\"./br\": 76,\n\t\"./br.js\": 76,\n\t\"./bs\": 77,\n\t\"./bs.js\": 77,\n\t\"./ca\": 78,\n\t\"./ca.js\": 78,\n\t\"./cs\": 79,\n\t\"./cs.js\": 79,\n\t\"./cv\": 80,\n\t\"./cv.js\": 80,\n\t\"./cy\": 81,\n\t\"./cy.js\": 81,\n\t\"./da\": 82,\n\t\"./da.js\": 82,\n\t\"./de\": 83,\n\t\"./de-at\": 84,\n\t\"./de-at.js\": 84,\n\t\"./de-ch\": 85,\n\t\"./de-ch.js\": 85,\n\t\"./de.js\": 83,\n\t\"./dv\": 86,\n\t\"./dv.js\": 86,\n\t\"./el\": 87,\n\t\"./el.js\": 87,\n\t\"./en-au\": 88,\n\t\"./en-au.js\": 88,\n\t\"./en-ca\": 89,\n\t\"./en-ca.js\": 89,\n\t\"./en-gb\": 90,\n\t\"./en-gb.js\": 90,\n\t\"./en-ie\": 91,\n\t\"./en-ie.js\": 91,\n\t\"./en-il\": 92,\n\t\"./en-il.js\": 92,\n\t\"./en-in\": 93,\n\t\"./en-in.js\": 93,\n\t\"./en-nz\": 94,\n\t\"./en-nz.js\": 94,\n\t\"./en-sg\": 95,\n\t\"./en-sg.js\": 95,\n\t\"./eo\": 96,\n\t\"./eo.js\": 96,\n\t\"./es\": 97,\n\t\"./es-do\": 98,\n\t\"./es-do.js\": 98,\n\t\"./es-mx\": 99,\n\t\"./es-mx.js\": 99,\n\t\"./es-us\": 100,\n\t\"./es-us.js\": 100,\n\t\"./es.js\": 97,\n\t\"./et\": 101,\n\t\"./et.js\": 101,\n\t\"./eu\": 102,\n\t\"./eu.js\": 102,\n\t\"./fa\": 103,\n\t\"./fa.js\": 103,\n\t\"./fi\": 104,\n\t\"./fi.js\": 104,\n\t\"./fil\": 105,\n\t\"./fil.js\": 105,\n\t\"./fo\": 106,\n\t\"./fo.js\": 106,\n\t\"./fr\": 107,\n\t\"./fr-ca\": 108,\n\t\"./fr-ca.js\": 108,\n\t\"./fr-ch\": 109,\n\t\"./fr-ch.js\": 109,\n\t\"./fr.js\": 107,\n\t\"./fy\": 110,\n\t\"./fy.js\": 110,\n\t\"./ga\": 111,\n\t\"./ga.js\": 111,\n\t\"./gd\": 112,\n\t\"./gd.js\": 112,\n\t\"./gl\": 113,\n\t\"./gl.js\": 113,\n\t\"./gom-deva\": 114,\n\t\"./gom-deva.js\": 114,\n\t\"./gom-latn\": 115,\n\t\"./gom-latn.js\": 115,\n\t\"./gu\": 116,\n\t\"./gu.js\": 116,\n\t\"./he\": 117,\n\t\"./he.js\": 117,\n\t\"./hi\": 118,\n\t\"./hi.js\": 118,\n\t\"./hr\": 119,\n\t\"./hr.js\": 119,\n\t\"./hu\": 120,\n\t\"./hu.js\": 120,\n\t\"./hy-am\": 121,\n\t\"./hy-am.js\": 121,\n\t\"./id\": 122,\n\t\"./id.js\": 122,\n\t\"./is\": 123,\n\t\"./is.js\": 123,\n\t\"./it\": 124,\n\t\"./it-ch\": 125,\n\t\"./it-ch.js\": 125,\n\t\"./it.js\": 124,\n\t\"./ja\": 126,\n\t\"./ja.js\": 126,\n\t\"./jv\": 127,\n\t\"./jv.js\": 127,\n\t\"./ka\": 128,\n\t\"./ka.js\": 128,\n\t\"./kk\": 129,\n\t\"./kk.js\": 129,\n\t\"./km\": 130,\n\t\"./km.js\": 130,\n\t\"./kn\": 131,\n\t\"./kn.js\": 131,\n\t\"./ko\": 132,\n\t\"./ko.js\": 132,\n\t\"./ku\": 133,\n\t\"./ku.js\": 133,\n\t\"./ky\": 134,\n\t\"./ky.js\": 134,\n\t\"./lb\": 135,\n\t\"./lb.js\": 135,\n\t\"./lo\": 136,\n\t\"./lo.js\": 136,\n\t\"./lt\": 137,\n\t\"./lt.js\": 137,\n\t\"./lv\": 138,\n\t\"./lv.js\": 138,\n\t\"./me\": 139,\n\t\"./me.js\": 139,\n\t\"./mi\": 140,\n\t\"./mi.js\": 140,\n\t\"./mk\": 141,\n\t\"./mk.js\": 141,\n\t\"./ml\": 142,\n\t\"./ml.js\": 142,\n\t\"./mn\": 143,\n\t\"./mn.js\": 143,\n\t\"./mr\": 144,\n\t\"./mr.js\": 144,\n\t\"./ms\": 145,\n\t\"./ms-my\": 146,\n\t\"./ms-my.js\": 146,\n\t\"./ms.js\": 145,\n\t\"./mt\": 147,\n\t\"./mt.js\": 147,\n\t\"./my\": 148,\n\t\"./my.js\": 148,\n\t\"./nb\": 149,\n\t\"./nb.js\": 149,\n\t\"./ne\": 150,\n\t\"./ne.js\": 150,\n\t\"./nl\": 151,\n\t\"./nl-be\": 152,\n\t\"./nl-be.js\": 152,\n\t\"./nl.js\": 151,\n\t\"./nn\": 153,\n\t\"./nn.js\": 153,\n\t\"./oc-lnc\": 154,\n\t\"./oc-lnc.js\": 154,\n\t\"./pa-in\": 155,\n\t\"./pa-in.js\": 155,\n\t\"./pl\": 156,\n\t\"./pl.js\": 156,\n\t\"./pt\": 157,\n\t\"./pt-br\": 158,\n\t\"./pt-br.js\": 158,\n\t\"./pt.js\": 157,\n\t\"./ro\": 159,\n\t\"./ro.js\": 159,\n\t\"./ru\": 160,\n\t\"./ru.js\": 160,\n\t\"./sd\": 161,\n\t\"./sd.js\": 161,\n\t\"./se\": 162,\n\t\"./se.js\": 162,\n\t\"./si\": 163,\n\t\"./si.js\": 163,\n\t\"./sk\": 164,\n\t\"./sk.js\": 164,\n\t\"./sl\": 165,\n\t\"./sl.js\": 165,\n\t\"./sq\": 166,\n\t\"./sq.js\": 166,\n\t\"./sr\": 167,\n\t\"./sr-cyrl\": 168,\n\t\"./sr-cyrl.js\": 168,\n\t\"./sr.js\": 167,\n\t\"./ss\": 169,\n\t\"./ss.js\": 169,\n\t\"./sv\": 170,\n\t\"./sv.js\": 170,\n\t\"./sw\": 171,\n\t\"./sw.js\": 171,\n\t\"./ta\": 172,\n\t\"./ta.js\": 172,\n\t\"./te\": 173,\n\t\"./te.js\": 173,\n\t\"./tet\": 174,\n\t\"./tet.js\": 174,\n\t\"./tg\": 175,\n\t\"./tg.js\": 175,\n\t\"./th\": 176,\n\t\"./th.js\": 176,\n\t\"./tk\": 177,\n\t\"./tk.js\": 177,\n\t\"./tl-ph\": 178,\n\t\"./tl-ph.js\": 178,\n\t\"./tlh\": 179,\n\t\"./tlh.js\": 179,\n\t\"./tr\": 180,\n\t\"./tr.js\": 180,\n\t\"./tzl\": 181,\n\t\"./tzl.js\": 181,\n\t\"./tzm\": 182,\n\t\"./tzm-latn\": 183,\n\t\"./tzm-latn.js\": 183,\n\t\"./tzm.js\": 182,\n\t\"./ug-cn\": 184,\n\t\"./ug-cn.js\": 184,\n\t\"./uk\": 185,\n\t\"./uk.js\": 185,\n\t\"./ur\": 186,\n\t\"./ur.js\": 186,\n\t\"./uz\": 187,\n\t\"./uz-latn\": 188,\n\t\"./uz-latn.js\": 188,\n\t\"./uz.js\": 187,\n\t\"./vi\": 189,\n\t\"./vi.js\": 189,\n\t\"./x-pseudo\": 190,\n\t\"./x-pseudo.js\": 190,\n\t\"./yo\": 191,\n\t\"./yo.js\": 191,\n\t\"./zh-cn\": 192,\n\t\"./zh-cn.js\": 192,\n\t\"./zh-hk\": 193,\n\t\"./zh-hk.js\": 193,\n\t\"./zh-mo\": 194,\n\t\"./zh-mo.js\": 194,\n\t\"./zh-tw\": 195,\n\t\"./zh-tw.js\": 195\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 267;","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('top-boxes'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-account')],1)]),_vm._v(\" \"),_c('main-account-list'),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-budget-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('main-category-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-debit-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-credit-list')],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-piggy-list')],1),_vm._v(\" \"),_c('div',{staticClass:\"col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('main-bills-list')],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js&\"","<!--\n - ExampleComponent.vue\n - Copyright (c) 2019 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <top-boxes/>\n <div class=\"row\">\n <div class=\"col\">\n <main-account/>\n </div>\n </div>\n <main-account-list/>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-budget-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col\">\n <main-category-list/>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-debit-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-credit-list/>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-piggy-list/>\n </div>\n <div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <main-bills-list/>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Dashboard\",\n created() {},\n computed: {},\n methods: {}\n}\n</script>\n","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=6fea41ee&\"\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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TopBoxes.vue?vue&type=script&lang=js&\"","<!--\n - TopBoxes.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div class=\"col\"> <!-- col-md-3 col-sm-6 col-12 -->\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-bookmark text-info\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t(\"firefly.balance\") }}</span>\n <!-- balance in preferred currency -->\n <span class=\"info-box-number\" v-for=\"balance in prefCurrencyBalances\" :title=\"balance.sub_title\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-info\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- balance in not preferred currency -->\n <span class=\"progress-description\">\n <span v-for=\"(balance, index) in notPrefCurrencyBalances\" :title=\"balance.sub_title\">\n {{ balance.value_parsed }}<span v-if=\"index+1 !== notPrefCurrencyBalances.length\">, </span>\n </span>\n <span v-if=\"0===notPrefCurrencyBalances.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"far fa-calendar-alt text-teal\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t('firefly.bills_to_pay') }}</span>\n\n <!-- bills unpaid, in preferred currency. -->\n <span class=\"info-box-number\" v-for=\"balance in prefBillsUnpaid\">{{ balance.value_parsed }}</span>\n\n <div class=\"progress bg-teal\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- bills unpaid, in other currencies. -->\n <span class=\"progress-description\">\n <span v-for=\"(bill, index) in notPrefBillsUnpaid\">\n {{ bill.value_parsed }}<span v-if=\"index+1 !== notPrefBillsUnpaid.length\">, </span>\n </span>\n <span v-if=\"0===notPrefBillsUnpaid.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n <!-- left to spend -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\">{{ $t('firefly.left_to_spend') }}</span>\n\n <!-- left to spend in preferred currency -->\n <span class=\"info-box-number\" v-for=\"left in prefLeftToSpend\" :title=\"left.sub_title\">{{ left.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <!-- other currencies-->\n <span class=\"progress-description\">\n <span v-for=\"(left, index) in notPrefLeftToSpend\">\n {{ left.value_parsed }}<span v-if=\"index+1 !== notPrefLeftToSpend.length\">, </span>\n </span>\n <span v-if=\"0===notPrefLeftToSpend.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n <!-- net worth -->\n <div class=\"col\">\n <div class=\"info-box\">\n <span class=\"info-box-icon\"><i class=\"fas fa-money-bill text-success\"></i></span>\n\n <div class=\"info-box-content\">\n <span class=\"info-box-text\"><span>{{ $t('firefly.net_worth') }}</span></span>\n <span class=\"info-box-number\" v-for=\"nw in prefNetWorth\" :title=\"nw.sub_title\">{{ nw.value_parsed }}</span>\n\n <div class=\"progress bg-success\">\n <div class=\"progress-bar\" style=\"width: 0\"></div>\n </div>\n <span class=\"progress-description\">\n <span v-for=\"(nw, index) in notPrefNetWorth\">\n {{ nw.value_parsed }}<span v-if=\"index+1 !== notPrefNetWorth.length\">, </span>\n </span>\n <span v-if=\"0===notPrefNetWorth.length\">&nbsp;</span>\n </span>\n </div>\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nexport default {\n name: \"TopBoxes\",\n props: {},\n data() {\n return {\n summary: [],\n balances: [],\n billsPaid: [],\n billsUnpaid: [],\n leftToSpend: [],\n netWorth: [],\n }\n },\n computed: {\n\n // contains only balances with preferred currency.\n prefCurrencyBalances: function () {\n return this.filterOnCurrency(this.balances);\n },\n notPrefCurrencyBalances: function () {\n return this.filterOnNotCurrency(this.balances);\n },\n\n // contains only bills unpaid in preferred currency or first one.\n prefBillsUnpaid: function () {\n return this.filterOnCurrency(this.billsUnpaid);\n },\n notPrefBillsUnpaid: function () {\n return this.filterOnNotCurrency(this.billsUnpaid);\n },\n\n // left to spend\n prefLeftToSpend: function () {\n return this.filterOnCurrency(this.leftToSpend);\n },\n notPrefLeftToSpend: function () {\n return this.filterOnNotCurrency(this.leftToSpend);\n },\n\n // net worth\n prefNetWorth: function () {\n return this.filterOnCurrency(this.netWorth);\n },\n notPrefNetWorth: function () {\n return this.filterOnNotCurrency(this.netWorth);\n },\n currencyCode() {\n return this.$store.getters.currencyCode;\n },\n currencyId() {\n return this.$store.getters.currencyId;\n }\n },\n created() {\n this.prepareComponent();\n },\n methods: {\n filterOnCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n // console.log('Currency ID seems to be ' + this.currencyId);\n if (array[key].currency_id === this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n // or just the first one:\n if (0 === ret.length && array.hasOwnProperty(0)) {\n ret.push(array[0]);\n }\n return ret;\n },\n filterOnNotCurrency(array) {\n let ret = [];\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id !== this.currencyId) {\n ret.push(array[key]);\n }\n }\n }\n return ret;\n },\n /**\n * Prepare the component.\n */\n prepareComponent() {\n axios.get('./api/v1/summary/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.summary = response.data;\n this.buildComponent();\n });\n },\n buildComponent() {\n this.getBalanceEntries();\n this.getBillsEntries();\n this.getLeftToSpend();\n this.getNetWorth();\n },\n\n hasCurrency: function (array) {\n for (const key in array) {\n if (array.hasOwnProperty(key)) {\n if (array[key].currency_id === this.currencyId) {\n return true;\n }\n }\n }\n return false;\n },\n\n getBalanceEntries() {\n this.balances = this.getKeyedEntries('balance-in-');\n },\n getNetWorth() {\n this.netWorth = this.getKeyedEntries('net-worth-in-');\n },\n getLeftToSpend() {\n this.leftToSpend = this.getKeyedEntries('left-to-spend-in-');\n },\n getBillsEntries() {\n this.billsPaid = this.getKeyedEntries('bills-paid-in-');\n this.billsUnpaid = this.getKeyedEntries('bills-unpaid-in-');\n },\n getKeyedEntries(expected) {\n let result = [];\n for (const key in this.summary) {\n if (this.summary.hasOwnProperty(key)) {\n if (expected === key.substr(0, expected.length)) {\n result.push(this.summary[key]);\n }\n }\n }\n return result;\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TopBoxes.vue?vue&type=template&id=b9980d70&\"\nimport script from \"./TopBoxes.vue?vue&type=script&lang=js&\"\nexport * from \"./TopBoxes.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(0),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t(\"firefly.balance\")))]),_vm._v(\" \"),_vm._l((_vm.prefCurrencyBalances),function(balance){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":balance.sub_title}},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(1),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefCurrencyBalances),function(balance,index){return _c('span',{attrs:{\"title\":balance.sub_title}},[_vm._v(\"\\n \"+_vm._s(balance.value_parsed)),(index+1 !== _vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefCurrencyBalances.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(2),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.bills_to_pay')))]),_vm._v(\" \"),_vm._l((_vm.prefBillsUnpaid),function(balance){return _c('span',{staticClass:\"info-box-number\"},[_vm._v(_vm._s(balance.value_parsed))])}),_vm._v(\" \"),_vm._m(3),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefBillsUnpaid),function(bill,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(bill.value_parsed)),(index+1 !== _vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefBillsUnpaid.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_vm._v(_vm._s(_vm.$t('firefly.left_to_spend')))]),_vm._v(\" \"),_vm._l((_vm.prefLeftToSpend),function(left){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":left.sub_title}},[_vm._v(_vm._s(left.value_parsed))])}),_vm._v(\" \"),_vm._m(5),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefLeftToSpend),function(left,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(left.value_parsed)),(index+1 !== _vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefLeftToSpend.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"info-box\"},[_vm._m(6),_vm._v(\" \"),_c('div',{staticClass:\"info-box-content\"},[_c('span',{staticClass:\"info-box-text\"},[_c('span',[_vm._v(_vm._s(_vm.$t('firefly.net_worth')))])]),_vm._v(\" \"),_vm._l((_vm.prefNetWorth),function(nw){return _c('span',{staticClass:\"info-box-number\",attrs:{\"title\":nw.sub_title}},[_vm._v(_vm._s(nw.value_parsed))])}),_vm._v(\" \"),_vm._m(7),_vm._v(\" \"),_c('span',{staticClass:\"progress-description\"},[_vm._l((_vm.notPrefNetWorth),function(nw,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(nw.value_parsed)),(index+1 !== _vm.notPrefNetWorth.length)?_c('span',[_vm._v(\", \")]):_vm._e()])}),_vm._v(\" \"),(0===_vm.notPrefNetWorth.length)?_c('span',[_vm._v(\" \")]):_vm._e()],2)],2)])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-bookmark text-info\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-info\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"far fa-calendar-alt text-teal\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-teal\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"info-box-icon\"},[_c('i',{staticClass:\"fas fa-money-bill text-success\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress bg-success\"},[_c('div',{staticClass:\"progress-bar\",staticStyle:{\"width\":\"0\"}})])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DataConverter.vue?vue&type=script&lang=js&\"","<!--\n - DataConverter.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<script>\nexport default {\n name: \"DataConverter\",\n data() {\n return {\n dataSet: null,\n newDataSet: null,\n locale: localStorage.local,\n }\n },\n methods: {\n convertChart(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n }\n this.getLabels();\n this.getDataSets();\n this.newDataSet.count = this.newDataSet.datasets.length;\n return this.newDataSet;\n },\n\n colorizeBarData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n\n colorizeLineData(dataSet) {\n this.dataSet = dataSet;\n this.newDataSet = {\n count: 0,\n labels: [],\n datasets: []\n };\n // colors\n let colourSet = [\n [53, 124, 165],\n [0, 141, 76], // green\n [219, 139, 11],\n [202, 25, 90], // paars rood-ish #CA195A\n [85, 82, 153],\n [66, 133, 244],\n [219, 68, 55], // red #DB4437\n [244, 180, 0],\n [15, 157, 88],\n [171, 71, 188],\n [0, 172, 193],\n [255, 112, 67],\n [158, 157, 36],\n [92, 107, 192],\n [240, 98, 146],\n [0, 121, 107],\n [194, 24, 91]\n ];\n\n let fillColors = [];\n //let strokePointHighColors = [];\n\n\n for (let i = 0; i < colourSet.length; i++) {\n fillColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.5)\");\n //strokePointHighColors.push(\"rgba(\" + colourSet[i][0] + \", \" + colourSet[i][1] + \", \" + colourSet[i][2] + \", 0.9)\");\n }\n this.newDataSet.labels = this.dataSet.labels;\n this.newDataSet.count = this.dataSet.count;\n for (let setKey in this.dataSet.datasets) {\n if (this.dataSet.datasets.hasOwnProperty(setKey)) {\n var dataset = this.dataSet.datasets[setKey];\n dataset.fill = false;\n dataset.backgroundColor = dataset.borderColor = fillColors[setKey];\n this.newDataSet.datasets.push(dataset);\n }\n }\n return this.newDataSet;\n },\n convertLabelsToDate(dataSet) {\n for (let labelKey in dataSet.labels) {\n if (dataSet.labels.hasOwnProperty(labelKey)) {\n const unixTimeZero = Date.parse(dataSet.labels[labelKey]);\n dataSet.labels[labelKey] = new Intl.DateTimeFormat(this.locale).format(unixTimeZero);\n }\n }\n return dataSet;\n },\n getLabels() {\n let firstSet = this.dataSet[0];\n if (typeof firstSet !== 'undefined') {\n for (const entryLabel in firstSet.entries) {\n if (firstSet.entries.hasOwnProperty(entryLabel)) {\n this.newDataSet.labels.push(entryLabel);\n }\n }\n }\n },\n getDataSets() {\n for (const setKey in this.dataSet) {\n if (this.dataSet.hasOwnProperty(setKey)) {\n let newSet = {};\n let oldSet = this.dataSet[setKey];\n if (typeof oldSet !== 'undefined') {\n newSet.label = oldSet.label;\n newSet.type = oldSet.type;\n newSet.currency_symbol = oldSet.currency_symbol;\n newSet.currency_code = oldSet.currency_code;\n newSet.yAxisID = oldSet.yAxisID;\n newSet.data = [];\n for (const entryLabel in oldSet.entries) {\n if (oldSet.entries.hasOwnProperty(entryLabel)) {\n newSet.data.push(oldSet.entries[entryLabel]);\n }\n }\n this.newDataSet.datasets.push(newSet);\n }\n }\n }\n }\n }\n}\n</script>\n","var render, staticRenderFns\nimport script from \"./DataConverter.vue?vue&type=script&lang=js&\"\nexport * from \"./DataConverter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DefaultLineOptions.vue?vue&type=script&lang=js&\"","<!--\n - DefaultLineOptions.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n</template>\n\n\n<script>\n\nexport default {\n name: \"DefaultLineOptions\",\n data() {\n return {}\n },\n methods: {\n /**\n * Takes a string phrase and breaks it into separate phrases no bigger than 'maxwidth', breaks are made at complete words.\n * https://stackoverflow.com/questions/21409717/chart-js-and-long-labels\n *\n * @param str\n * @param maxwidth\n * @returns {Array}\n */\n formatLabel(str, maxwidth) {\n var sections = [];\n str = String(str);\n var words = str.split(\" \");\n var temp = \"\";\n\n words.forEach(function (item, index) {\n if (temp.length > 0) {\n var concat = temp + ' ' + item;\n\n if (concat.length > maxwidth) {\n sections.push(temp);\n temp = \"\";\n } else {\n if (index === (words.length - 1)) {\n sections.push(concat);\n return;\n } else {\n temp = concat;\n return;\n }\n }\n }\n\n if (index === (words.length - 1)) {\n sections.push(item);\n return;\n }\n\n if (item.length < maxwidth) {\n temp = item;\n } else {\n sections.push(item);\n }\n\n });\n\n return sections;\n },\n getDefaultOptions() {\n var self = this;\n return {\n legend: {\n display: false,\n },\n animation: {\n duration: 0,\n },\n responsive: true,\n maintainAspectRatio: false,\n elements: {\n line: {\n cubicInterpolationMode: 'monotone'\n }\n },\n scales: {\n xAxes: [\n {\n gridLines: {\n display: false\n },\n ticks: {\n // break ticks when too long\n callback: function (value, index, values) {\n // date format\n let dateObj = new Date(value);\n let options = { year: 'numeric', month: 'long', day: 'numeric' };\n let str = new Intl.DateTimeFormat(localStorage.locale, options).format(dateObj);\n //console.log();\n //return self.formatLabel(value, 20);\n return self.formatLabel(str, 20);\n }\n }\n }\n ],\n yAxes: [{\n display: true,\n ticks: {\n callback: function (tickValue) {\n \"use strict\";\n let currencyCode = this.chart.data.datasets[0].currency_code ? this.chart.data.datasets[0].currency_code : 'EUR';\n return new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tickValue);\n },\n beginAtZero: true\n }\n\n }]\n },\n tooltips: {\n mode: 'index',\n callbacks: {\n label: function (tooltipItem, data) {\n \"use strict\";\n let currencyCode = data.datasets[tooltipItem.datasetIndex].currency_code ? data.datasets[tooltipItem.datasetIndex].currency_code : 'EUR';\n let nrString =\n new Intl.NumberFormat(localStorage.locale, {style: 'currency', currency: currencyCode}).format(tooltipItem.yLabel)\n\n return data.datasets[tooltipItem.datasetIndex].label + ': ' + nrString;\n }\n }\n }\n };\n }\n\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./DefaultLineOptions.vue?vue&type=template&id=55cd0635&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 \"55cd0635\",\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 }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccount.vue?vue&type=script&lang=js&\"","<!--\n - MainAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.yourAccounts') }}</h3>\n </div>\n <div class=\"card-body\">\n <div>\n <canvas id=\"mainAccountsChart\" style=\"min-height: 400px; height: 400px; max-height: 400px; max-width: 100%;\"></canvas>\n </div>\n </div>\n <div class=\"card-footer\">\n <a href=\"./accounts/asset\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_asset_accounts') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport DataConverter from \"../charts/DataConverter\";\nimport DefaultLineOptions from \"../charts/DefaultLineOptions\";\n\nexport default {\n name: \"MainAccount\",\n created() {\n axios.get('./api/v1/chart/account/overview?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n\n let chartData = DataConverter.methods.convertChart(response.data);\n chartData = DataConverter.methods.colorizeLineData(chartData);\n let lineChartCanvas = $('#mainAccountsChart').get(0).getContext('2d');\n new Chart(lineChartCanvas, {\n type: 'line',\n data: chartData,\n options: DefaultLineOptions.methods.getDefaultOptions()\n });\n });\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./MainAccount.vue?vue&type=template&id=4debd515&\"\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(\" \"),_vm._m(0),_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 = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-body\"},[_c('div',[_c('canvas',{staticStyle:{\"min-height\":\"400px\",\"height\":\"400px\",\"max-height\":\"400px\",\"max-width\":\"100%\"},attrs:{\"id\":\"mainAccountsChart\"}})])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainAccountList.vue?vue&type=script&lang=js&\"","<!--\n - MainAccountList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"row\">\n <div v-bind:class=\"{ 'col-lg-12': 1 === accounts.length, 'col-lg-6': 2 === accounts.length, 'col-lg-4': accounts.length > 2 }\"\n v-for=\"account in accounts\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\"><a :href=\"account.url\">{{ account.title }}</a></h3>\n <div class=\"card-tools\">\n <span :class=\"parseFloat(account.current_balance) < 0 ? 'text-danger' : 'text-success'\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: account.currency_code}).format(parseFloat(account.current_balance)) }}\n </span>\n </div>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <transaction-list-large :transactions=\"account.transactions\" v-if=\"1===accounts.length\" :account_id=\"account.id\"/>\n <transaction-list-medium :transactions=\"account.transactions\" v-if=\"2===accounts.length\" :account_id=\"account.id\"/>\n <transaction-list-small :transactions=\"account.transactions\" v-if=\"accounts.length > 2\" :account_id=\"account.id\"/>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainAccountList\",\n data() {\n return {\n accounts: [],\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n axios.get('./api/v1/preferences/frontpageAccounts')\n .then(response => {\n this.loadAccounts(response);\n }\n );\n },\n methods:\n {\n loadAccounts(response) {\n let accountIds = response.data.data.attributes.data;\n for (let key in accountIds) {\n if (accountIds.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.accounts.push({\n id: accountIds[key],\n title: '',\n url: '',\n current_balance: '',\n currency_code: '',\n transactions: []\n });\n this.loadSingleAccount(key, accountIds[key]);\n }\n }\n },\n loadSingleAccount(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId)\n .then(response => {\n this.accounts[key].title = response.data.data.attributes.name;\n this.accounts[key].url = './accounts/show/' + response.data.data.id;\n this.accounts[key].current_balance = response.data.data.attributes.current_balance;\n this.accounts[key].currency_code = response.data.data.attributes.currency_code;\n\n this.loadTransactions(key, accountId);\n }\n );\n },\n loadTransactions(key, accountId) {\n axios.get('./api/v1/accounts/' + accountId + '/transactions?page=1&limit=10')\n .then(response => {\n this.accounts[key].transactions = response.data.data;\n }\n );\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainAccountList.vue?vue&type=template&id=2561f762&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 \"2561f762\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},_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\"},[(1===_vm.accounts.length)?_c('transaction-list-large',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e(),_vm._v(\" \"),(2===_vm.accounts.length)?_c('transaction-list-medium',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e(),_vm._v(\" \"),(_vm.accounts.length > 2)?_c('transaction-list-small',{attrs:{\"transactions\":account.transactions,\"account_id\":account.id}}):_vm._e()],1)])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBillsList.vue?vue&type=script&lang=js&\"","<!--\n - MainBills.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.bills') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.bills') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.name') }}</th>\n <th scope=\"col\" style=\"width:25%;\">{{ $t('list.next_expected_match') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"bill in this.bills\">\n <td><a :href=\"'./bills/show/' + bill.id\" :title=\"bill.attributes.name\">{{ bill.attributes.name }}</a>\n ~{{\n Intl.NumberFormat(locale, {style: 'currency', currency: bill.attributes.currency_code}).format((parseFloat(bill.attributes.amount_min) +\n parseFloat(bill.attributes.amount_max)) / 2)\n }}\n <br />\n </td>\n <td>\n <span v-for=\"payDate in bill.attributes.pay_dates\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(new Date(payDate)) }}\n <br />\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./bills\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_bills') }}</a>\n </div>\n </div>\n</template>\n<script>\n\nexport default {\n name: \"MainBillsList\",\n computed: {\n locale() {\n return this.$store.getters.locale;\n }\n },\n created() {\n axios.get('./api/v1/bills?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.loadBills(response.data.data);\n }\n );\n },\n components: {},\n methods: {\n loadBills(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n\n let bill = data[key];\n let active = bill.attributes.active;\n if (bill.attributes.pay_dates.length > 0 && active) {\n this.bills.push(bill);\n }\n }\n }\n }\n },\n data() {\n return {\n bills: []\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./MainBillsList.vue?vue&type=template&id=0e0ee1a5&\"\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(\" \"),_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 ~\"+_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))+\"\\n \"),_c('br')]),_vm._v(\" \"),_c('td',_vm._l((bill.attributes.pay_dates),function(payDate){return _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')])}),0)])}),0)])]),_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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetLimitRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budgetLimit.budget_id\">{{ budgetLimit.budget_name }}</a>\n </td>\n\n <td style=\"vertical-align: middle\">\n <div class=\"progress progress active\">\n <div class=\"progress-bar bg-success progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctGreen\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctGreen + '%;'\">\n <span v-if=\"budgetLimit.pctGreen > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n\n\n </div>\n\n <div class=\"progress-bar bg-warning progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctOrange\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctOrange + '%;'\">\n <span v-if=\"budgetLimit.pctRed <= 50 && budgetLimit.pctOrange > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n </div>\n\n <div class=\"progress-bar bg-danger progress-bar-striped\" role=\"progressbar\"\n :aria-valuenow=\"budgetLimit.pctRed\" aria-valuemin=\"0\" aria-valuemax=\"100\" :style=\"'width: '+ budgetLimit.pctRed + '%;'\">\n <span v-if=\"budgetLimit.pctOrange <= 50 && budgetLimit.pctRed > 35\">\n Spent\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.spent) }}\n of\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(budgetLimit.amount) }}\n </span>\n </div>\n </div>\n <small class=\"d-none d-lg-block\">\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.start) }}\n &rarr;\n {{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(budgetLimit.end) }}\n </small>\n </td>\n\n <td style=\"width:10%;\" class=\"align-middle d-none d-lg-table-cell\">\n <span class=\"text-success\" v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) > 0\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n <span class=\"text-muted\" v-if=\"0.0 === parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent)\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budgetLimit.currency_code}).format(0) }}\n </span>\n <span class=\"text-danger\" v-if=\"parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent) < 0\">\n {{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: budgetLimit.currency_code\n }).format(parseFloat(budgetLimit.amount) + parseFloat(budgetLimit.spent))\n }}\n </span>\n </td>\n </tr>\n\n</template>\n\n<script>\nexport default {\n name: \"BudgetLimitRow\",\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budgetLimit: {\n type: Object,\n default: function () {\n return {};\n }\n },\n budget: {\n type: Object,\n default: function () {\n return {};\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetLimitRow.vue?vue&type=template&id=3f6fd164&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 \"3f6fd164\",\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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctGreen,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctGreen > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctOrange,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctRed <= 50 && _vm.budgetLimit.pctOrange > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(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:{\"role\":\"progressbar\",\"aria-valuenow\":_vm.budgetLimit.pctRed,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(_vm.budgetLimit.pctOrange <= 50 && _vm.budgetLimit.pctRed > 35)?_c('span',[_vm._v(\"\\n Spent\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.spent))+\"\\n of\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(_vm.budgetLimit.amount))+\"\\n \")]):_vm._e()])]),_vm._v(\" \"),_c('small',{staticClass:\"d-none d-lg-block\"},[_vm._v(\"\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.start))+\"\\n →\\n \"+_vm._s(new Intl.DateTimeFormat(_vm.locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(_vm.budgetLimit.end))+\"\\n \")])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle d-none d-lg-table-cell\",staticStyle:{\"width\":\"10%\"}},[(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) > 0)?_c('span',{staticClass:\"text-success\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(0.0 === parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent))?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budgetLimit.currency_code}).format(0))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent) < 0)?_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: _vm.budgetLimit.currency_code\n }).format(parseFloat(_vm.budgetLimit.amount) + parseFloat(_vm.budgetLimit.spent)))+\"\\n \")]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetRow.vue?vue&type=script&lang=js&\"","<!--\n - BudgetRow.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <tr>\n <td style=\"width:25%;\">\n <a :href=\"'./budgets/show/' + budget.id\">{{ budget.name }}</a>\n </td>\n <td class=\"align-middle text-right\">\n <span class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: budget.currency_code}).format(parseFloat(budget.spent)) }}\n </span>\n </td>\n </tr>\n</template>\n\n<script>\nexport default {\n name: \"BudgetRow\",\n mounted() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n data() {\n return {\n locale: 'en-US',\n }\n },\n props: {\n budget: {\n type: Object,\n default: {}\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BudgetListGroup.vue?vue&type=script&lang=js&\"","<!--\n - BudgetListGroup.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ title }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <BudgetLimitRow v-bind:key=\"key\" v-for=\"(budgetLimit, key) in budgetLimits\" :budgetLimit=\"budgetLimit\" />\n <BudgetRow v-bind:key=\"key\" v-for=\"(budget, key) in budgets\" :budget=\"budget\" />\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./budgets\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_budgets') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nimport BudgetLimitRow from \"./BudgetLimitRow\";\nimport BudgetRow from \"./BudgetRow\";\nexport default {\n name: \"BudgetListGroup\",\n components: {BudgetLimitRow, BudgetRow},\n props: {\n title: String,\n budgetLimits: Array,\n budgets: Array,\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetRow.vue?vue&type=template&id=3e0b277e&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 \"3e0b277e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"width\":\"25%\"}},[_c('a',{attrs:{\"href\":'./budgets/show/' + _vm.budget.id}},[_vm._v(_vm._s(_vm.budget.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle text-right\"},[_c('span',{staticClass:\"text-danger\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: _vm.budget.currency_code}).format(parseFloat(_vm.budget.spent)))+\"\\n \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainBudgetList.vue?vue&type=script&lang=js&\"","<!--\n - MainBudgetList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <!-- daily budgets (will be the exception, I expect) -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.daily.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.daily_budgets')\" :budgetLimits=budgetLimits.daily\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.weekly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.weekly_budgets')\" :budgetLimits=budgetLimits.weekly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.monthly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.monthly_budgets')\" :budgetLimits=budgetLimits.monthly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.quarterly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.quarterly_budgets')\" :budgetLimits=budgetLimits.quarterly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.half_year.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.half_year_budgets')\" :budgetLimits=budgetLimits.half_year\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.yearly.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.yearly_budgets')\" :budgetLimits=budgetLimits.yearly\n />\n </div>\n <div class=\"col-xl-6 col-lg-12 col-md-12 col-sm-12 col-xs-12\" v-if=\"budgetLimits.other.length > 0 || rawBudgets.length > 0\">\n <BudgetListGroup :title=\"$t('firefly.other_budgets')\" :budgetLimits=budgetLimits.other :budgets=\"rawBudgets\"\n />\n </div>\n </div>\n\n </div>\n</template>\n\n<script>\nimport BudgetListGroup from \"./BudgetListGroup\";\n\nexport default {\n name: \"MainBudgetList\",\n components: {BudgetListGroup},\n data() {\n return {\n budgetList: ['daily', 'weekly', 'monthly', 'quarterly', 'half_year', 'yearly', 'other'],\n budgetLimits: {\n daily: [],\n weekly: [],\n monthly: [],\n quarterly: [],\n half_year: [],\n yearly: [],\n other: [],\n },\n budgets: {},\n rawBudgets: [],\n locale: 'en-US',\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.collectData();\n },\n methods:\n {\n collectData() {\n this.getBudgets();\n },\n getBudgets() {\n axios.get('./api/v1/budgets?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n for (let subKey in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let spentData = current.attributes.spent[subKey];\n this.rawBudgets.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name,\n currency_id: parseInt(spentData.currency_id),\n currency_code: spentData.currency_code,\n spent: spentData.sum\n }\n );\n }\n }\n\n }\n }\n this.getBudgetLimits();\n },\n\n\n getBudgetLimits() {\n axios.get('./api/v1/budgets/limits?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseBudgetLimits(response.data);\n }\n );\n },\n parseBudgetLimits(data) {\n for (let key in data.included) {\n if (data.included.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n this.budgets[data.included[key].id] =\n {\n id: data.included[key].id,\n name: data.included[key].attributes.name,\n };\n }\n }\n\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let pctGreen = 0;\n let pctOrange = 0;\n let pctRed = 0;\n\n // remove budget info from rawBudgets if it's there:\n this.filterBudgets(data.data[key].attributes.budget_id, data.data[key].attributes.currency_id);\n\n // spent within budget:\n if (0.0 !== parseFloat(data.data[key].attributes.spent) && (parseFloat(data.data[key].attributes.spent) * -1) < parseFloat(data.data[key].attributes.amount)) {\n pctGreen = (parseFloat(data.data[key].attributes.spent) * -1 / parseFloat(data.data[key].attributes.amount) * 100);\n }\n\n // spent over budget\n if (0.0 !== parseFloat(data.data[key].attributes.spent) && (parseFloat(data.data[key].attributes.spent) * -1) > parseFloat(data.data[key].attributes.amount)) {\n pctOrange = (parseFloat(data.data[key].attributes.amount) / parseFloat(data.data[key].attributes.spent) * -1) * 100;\n pctRed = 100 - pctOrange;\n }\n let obj = {\n id: data.data[key].id,\n amount: data.data[key].attributes.amount,\n budget_id: data.data[key].attributes.budget_id,\n budget_name: this.budgets[data.data[key].attributes.budget_id].name,\n currency_id: data.data[key].attributes.currency_id,\n currency_code: data.data[key].attributes.currency_code,\n period: data.data[key].attributes.period,\n start: new Date(data.data[key].attributes.start),\n end: new Date(data.data[key].attributes.end),\n spent: data.data[key].attributes.spent,\n pctGreen: pctGreen,\n pctOrange: pctOrange,\n pctRed: pctRed,\n };\n\n let period = data.data[key].attributes.period ?? 'other';\n this.budgetLimits[period].push(obj);\n\n }\n }\n\n\n // // loop budgets (and do what?)\n // for (let key in data.included) {\n // if (data.included.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n // let obj = {\n // name: data.included[key].attributes.name,\n // id: data.included[key].id,\n // };\n // this.budgets[data.included[key].id] = obj;\n // }\n // }\n\n // loop budget limits:\n // for (let key in data.data) {\n // if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n // let pctGreen = 0;\n // let pctOrange = 0;\n // let pctRed = 0;\n //\n\n //\n // let obj = {\n // id: data.data[key].id,\n // amount: data.data[key].attributes.amount,\n // budget_id: data.data[key].attributes.budget_id,\n // currency_id: data.data[key].attributes.currency_id,\n // currency_code: data.data[key].attributes.currency_code,\n // period: data.data[key].attributes.period,\n // start: new Date(data.data[key].attributes.start),\n // end: new Date(data.data[key].attributes.end),\n // spent: data.data[key].attributes.spent,\n // pctGreen: pctGreen,\n // pctOrange: pctOrange,\n // pctRed: pctRed,\n // };\n //\n //\n //\n // let period = data.data[key].attributes.period ?? 'other';\n // this.budgetLimits[period].push(obj);\n // }\n // }\n\n },\n filterBudgets(budgetId, currencyId) {\n for (let key in this.rawBudgets) {\n if (this.rawBudgets.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n if (this.rawBudgets[key].currency_id === currencyId && this.rawBudgets[key].id === budgetId) {\n this.rawBudgets.splice(key, 1);\n }\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./BudgetListGroup.vue?vue&type=template&id=1480b15a&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 \"1480b15a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',[_vm._l((_vm.budgetLimits),function(budgetLimit,key){return _c('BudgetLimitRow',{key:key,attrs:{\"budgetLimit\":budgetLimit}})}),_vm._v(\" \"),_vm._l((_vm.budgets),function(budget,key){return _c('BudgetRow',{key:key,attrs:{\"budget\":budget}})})],2)])]),_vm._v(\" \"),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"btn btn-default button-sm\",attrs:{\"href\":\"./budgets\"}},[_c('i',{staticClass:\"far fa-money-bill-alt\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.go_to_budgets')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./MainBudgetList.vue?vue&type=template&id=f0d512f0&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 \"f0d512f0\",\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('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:{\"title\":_vm.$t('firefly.daily_budgets'),\"budgetLimits\":_vm.budgetLimits.daily}})],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:{\"title\":_vm.$t('firefly.weekly_budgets'),\"budgetLimits\":_vm.budgetLimits.weekly}})],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:{\"title\":_vm.$t('firefly.monthly_budgets'),\"budgetLimits\":_vm.budgetLimits.monthly}})],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:{\"title\":_vm.$t('firefly.quarterly_budgets'),\"budgetLimits\":_vm.budgetLimits.quarterly}})],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:{\"title\":_vm.$t('firefly.half_year_budgets'),\"budgetLimits\":_vm.budgetLimits.half_year}})],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:{\"title\":_vm.$t('firefly.yearly_budgets'),\"budgetLimits\":_vm.budgetLimits.yearly}})],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:{\"title\":_vm.$t('firefly.other_budgets'),\"budgetLimits\":_vm.budgetLimits.other,\"budgets\":_vm.rawBudgets}})],1):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCreditList.vue?vue&type=script&lang=js&\"","<!--\n - MainCreditList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.revenue_accounts') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in income\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div class=\"progress\" v-if=\"entry.pct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-success\" role=\"progressbar\" :aria-valuenow=\"entry.pct\"\n :style=\"{ width: entry.pct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./transactions/deposit\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_deposits') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainCreditList\",\n data() {\n return {\n locale: 'en-US',\n income: [],\n max: 0\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getExpenses();\n },\n methods: {\n getExpenses() {\n axios.get('./api/v1/insight/income/date/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === parseInt(mainKey)) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if(0 !== parseInt(mainKey)) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.income.push(current);\n\n }\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./MainCreditList.vue?vue&type=template&id=bf82cc48&\"\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.income),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-success\",style:({ width: entry.pct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":entry.pct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainDebitList.vue?vue&type=script&lang=js&\"","<!--\n - MainDebitList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.expense_accounts') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"entry in expenses\">\n <td style=\"width:20%;\"><a :href=\"'./accounts/show/' + entry.id\">{{ entry.name }}</a></td>\n <td class=\"align-middle\">\n <div class=\"progress\" v-if=\"entry.pct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-danger\" role=\"progressbar\" :aria-valuenow=\"entry.pct\"\n :style=\"{ width: entry.pct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"entry.pct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n <span v-if=\"entry.pct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: entry.currency_code}).format(entry.difference_float) }}\n </span>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./transactions/withdrawal\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_withdrawals') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainDebitList\",\n data() {\n return {\n locale: 'en-US',\n expenses: [],\n max: 0\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getExpenses();\n },\n methods: {\n getExpenses() {\n axios.get('./api/v1/insight/expense/date/basic?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n // do something with response.\n this.parseExpenses(response.data);\n });\n },\n parseExpenses(data) {\n for (let mainKey in data) {\n if (data.hasOwnProperty(mainKey) && /^0$|^[1-9]\\d*$/.test(mainKey) && mainKey <= 4294967294) {\n // contains currency info and entries.\n let current = data[mainKey];\n if (0 === parseInt(mainKey)) {\n this.max = data[mainKey].difference_float;\n current.pct = 100;\n }\n if(0 !== parseInt(mainKey)) {\n // calc percentage:\n current.pct = (data[mainKey].difference_float / this.max) * 100;\n }\n this.expenses.push(current);\n\n }\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./MainDebitList.vue?vue&type=template&id=30a09b68&\"\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.expenses),function(entry){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./accounts/show/' + entry.id}},[_vm._v(_vm._s(entry.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(entry.pct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: entry.pct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":entry.pct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainPiggyList.vue?vue&type=script&lang=js&\"","<!--\n - MainPiggyList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.piggy_banks') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-striped\">\n <caption style=\"display:none;\">{{ $t('firefly.piggy_banks') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" style=\"width:35%;\">{{ $t('list.piggy_bank') }}</th>\n <th scope=\"col\" style=\"width:40%;\">{{ $t('list.percentage') }} <small>/ {{ $t('list.amount') }}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"piggy in this.piggy_banks\">\n <td>{{ piggy.attributes.name }}\n <small v-if=\"piggy.attributes.object_group_title\" class=\"text-muted\">\n <br/>\n {{ piggy.attributes.object_group_title }}\n </small>\n </td>\n <td>\n <div class=\"progress-group\">\n <div class=\"progress progress-sm\">\n <div class=\"progress-bar progress-bar-striped primary\" v-if=\"piggy.attributes.pct < 100\" :style=\"{'width': piggy.attributes.pct + '%'}\"></div>\n <div class=\"progress-bar progress-bar-striped bg-success\" v-if=\"100 === piggy.attributes.pct\" :style=\"{'width': piggy.attributes.pct + '%'}\"></div>\n </div>\n </div>\n <span class=\"text-success\">\n {{\n Intl.NumberFormat(locale, {style: 'currency', currency: piggy.attributes.currency_code}).format(piggy.attributes.current_amount)\n }}\n </span>\n of\n <span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: piggy.attributes.currency_code\n }).format(piggy.attributes.target_amount)\n }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"card-footer\">\n <a href=\"./piggy-banks\" class=\"btn btn-default button-sm\"><i class=\"far fa-money-bill-alt\"></i> {{ $t('firefly.go_to_piggies') }}</a>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainPiggyList\",\n created() {\n axios.get('./api/v1/piggy_banks')\n .then(response => {\n this.loadPiggyBanks(response.data.data);\n }\n );\n },\n computed: {\n locale() {\n return this.$store.getters.locale;\n }\n },\n methods: {\n loadPiggyBanks(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let piggy = data[key];\n if (0.0 !== parseFloat(piggy.attributes.left_to_save)) {\n piggy.attributes.pct = (parseFloat(piggy.attributes.current_amount) / parseFloat(piggy.attributes.target_amount)) * 100;\n this.piggy_banks.push(piggy);\n }\n }\n }\n this.piggy_banks.sort(function (a, b) {\n return b.attributes.pct - a.attributes.pct;\n });\n }\n },\n data() {\n return {\n piggy_banks: []\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./MainPiggyList.vue?vue&type=template&id=14a8a9a0&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 \"14a8a9a0\",\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(\" \"),_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',[_vm._v(_vm._s(piggy.attributes.name)+\"\\n \"),(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._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 = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListLarge.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListLarge.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n <th scope=\"col\">{{ $t('firefly.category') }}</th>\n <th scope=\"col\">{{ $t('firefly.budget') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'withdrawal' === tr.type\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'deposit' === tr.type\">{{ tr.source_name }}</a>\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'transfer' === tr.type && tr.source_id === account_id\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'transfer' === tr.type && tr.destination_id === account_id\">{{ tr.source_name }}</a>\n <br />\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'categories/show/' + tr.category_id\" v-if=\"0!==tr.category_id\">{{ tr.category_name }}</a><br />\n </span>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'budgets/show/' + tr.budget_id\" v-if=\"0!==tr.budget_id\">{{ tr.budget_name }}</a><br />\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\n export default {\n name: \"TransactionListLarge\",\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListLarge.vue?vue&type=template&id=3b50021b&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 \"3b50021b\",\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 && 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 && 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('en-US', {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('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.source_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.category_id)?_c('a',{attrs:{\"href\":'categories/show/' + tr.category_id}},[_vm._v(_vm._s(tr.category_name))]):_vm._e(),_c('br')])}),0),_vm._v(\" \"),_c('td',_vm._l((transaction.attributes.transactions),function(tr){return _c('span',[(0!==tr.budget_id)?_c('a',{attrs:{\"href\":'budgets/show/' + tr.budget_id}},[_vm._v(_vm._s(tr.budget_name))]):_vm._e(),_c('br')])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListMedium.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListMedium.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\">{{ $t('firefly.opposing_account') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"transaction.date\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td>\n <span v-for=\"tr in transaction.attributes.transactions\">\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'withdrawal' === tr.type\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'deposit' === tr.type\">{{ tr.source_name }}</a>\n <a :href=\"'accounts/show/' + tr.destination_id\" v-if=\"'transfer' === tr.type && tr.source_id === account_id\">{{ tr.destination_name }}</a>\n <a :href=\"'accounts/show/' + tr.source_id\" v-if=\"'transfer' === tr.type && tr.destination_id === account_id\">{{ tr.source_name }}</a>\n <br />\n </span>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1)}}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount)}}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\n export default {\n name: \"TransactionListMedium\",\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListMedium.vue?vue&type=template&id=0c7078c9&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 \"0c7078c9\",\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 && 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 && 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('en-US', {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('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.source_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1))),_c('br')]):_vm._e(),_vm._v(\" \"),('transfer' === tr.type && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat('en-US', {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionListSmall.vue?vue&type=script&lang=js&\"","<!--\n - TransactionListSmall.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <table class=\"table table-striped table-sm\">\n <caption style=\"display:none;\">{{ $t('firefly.transaction_table_description') }}</caption>\n <thead>\n <tr>\n <th scope=\"col\" class=\"text-left\">{{ $t('firefly.description') }}</th>\n <th scope=\"col\" class=\"text-right\">{{ $t('firefly.amount') }}</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"transaction in this.transactions\">\n <td>\n <a :href=\"'transactions/show/' + transaction.id \" :title=\"new Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long', day: 'numeric' }).format(new Date(transaction.attributes.transactions[0].date))\">\n <span v-if=\"transaction.attributes.transactions.length > 1\">{{ transaction.attributes.group_title }}</span>\n <span v-if=\"1===transaction.attributes.transactions.length\">{{ transaction.attributes.transactions[0].description }}</span>\n </a>\n </td>\n <td style=\"text-align:right;\">\n <span v-for=\"tr in transaction.attributes.transactions\">\n <span v-if=\"'withdrawal' === tr.type\" class=\"text-danger\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'deposit' === tr.type\" class=\"text-success\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.source_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount * -1) }}<br>\n </span>\n <span v-if=\"'transfer' === tr.type && tr.destination_id === account_id\" class=\"text-info\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount) }}<br>\n </span>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script>\nexport default {\n name: \"TransactionListSmall\",\n data() {\n return {\n locale: 'en-US'\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n },\n methods: {\n },\n props: {\n transactions: {\n type: Array,\n default: function () {\n return [];\n }\n },\n account_id: {\n type: Number,\n default: function () {\n return 0;\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>\n","import { render, staticRenderFns } from \"./TransactionListSmall.vue?vue&type=template&id=fae12aa6&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 \"fae12aa6\",\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 && 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 && tr.destination_id === _vm.account_id)?_c('span',{staticClass:\"text-info\"},[_vm._v(\"\\n \"+_vm._s(Intl.NumberFormat(_vm.locale, {style: 'currency', currency: tr.currency_code}).format(tr.amount))),_c('br')]):_vm._e()])}),0)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=script&lang=js&\"","<!--\n - Calendar.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"row\">\n <div class=\"col\">Start</div>\n <div class=\"col-8\">{{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(range.start) }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col\">End</div>\n <div class=\"col-8\">{{ new Intl.DateTimeFormat(locale, {year: 'numeric', month: 'long', day: 'numeric'}).format(range.end) }}</div>\n </div>\n <date-picker\n v-model=\"range\"\n mode=\"date\"\n rows=\"2\"\n is-range\n >\n <template v-slot=\"{ inputValue, inputEvents, isDragging, togglePopover }\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"btn-group btn-group-sm d-flex\">\n <button\n class=\"btn btn-secondary btn-sm\"\n @click=\"togglePopover({ placement: 'auto-start', positionFixed:true })\"\n ><i class=\"fas fa-calendar-alt\"></i></button>\n <button\n class=\"btn btn-secondary\"\n ><i class=\"fas fa-history\"></i></button>\n\n\n <button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-toggle=\"dropdown\" aria-haspopup=\"true\"\n aria-expanded=\"false\">\n <i class=\"fas fa-list\"></i>\n </button>\n <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\n <a class=\"dropdown-item\" href=\"#\">(prev period)</a>\n <a class=\"dropdown-item\" href=\"#\">(next period)</a>\n <a class=\"dropdown-item\" href=\"#\">(this week?)</a>\n </div>\n\n </div>\n <input type=\"hidden\"\n :class=\"isDragging ? 'text-gray-600' : 'text-gray-900'\"\n :value=\"inputValue.start\"\n v-on=\"inputEvents.start\"\n />\n <input type=\"hidden\"\n :class=\"isDragging ? 'text-gray-600' : 'text-gray-900'\"\n :value=\"inputValue.end\"\n v-on=\"inputEvents.end\"\n />\n </div>\n </div>\n </template>\n </date-picker>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"Calendar\",\n created() {\n // this.locale = localStorage.locale ?? 'en-US';\n // this.$store.commit('increment');\n // console.log(this.$store.state.count);\n // get dates for current period (history button):\n // get dates for optional periods (dropdown) + descriptions.\n },\n data() {\n return {\n locale: 'en-US',\n range: {\n start: new Date(window.sessionStart),\n end: new Date(window.sessionEnd),\n },\n defaultRange: {\n start: new Date(window.sessionStart),\n end: new Date(window.sessionEnd),\n },\n };\n },\n}\n</script>\n\n<style scoped>\n.dropdown-item {\n color: #212529;\n}\n\n.dropdown-item:hover {\n color: #212529;\n}\n</style>","import { render, staticRenderFns } from \"./Calendar.vue?vue&type=template&id=03e62f58&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=03e62f58&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 \"03e62f58\",\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('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:{\"mode\":\"date\",\"rows\":\"2\",\"is-range\":\"\"},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\",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\"},[_c('i',{staticClass:\"fas fa-history\"})]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",attrs:{\"type\":\"button\",\"id\":\"dropdownMenuButton\",\"data-toggle\":\"dropdown\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"}},[_c('i',{staticClass:\"fas fa-list\"})]),_vm._v(\" \"),_c('div',{staticClass:\"dropdown-menu\",attrs:{\"aria-labelledby\":\"dropdownMenuButton\"}},[_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(prev period)\")]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(next period)\")]),_vm._v(\" \"),_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"}},[_vm._v(\"(this week?)\")])])]),_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 }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MainCategoryList.vue?vue&type=script&lang=js&\"","<!--\n - MainCategoryList.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ $t('firefly.categories') }}</h3>\n </div>\n <div class=\"card-body table-responsive p-0\">\n <table class=\"table table-sm\">\n <tbody>\n <tr v-for=\"category in sortedList\">\n <td style=\"width:20%;\">\n <a :href=\"'./categories/show/' + category.id\">{{ category.name }}</a>\n <!--<p>Spent: {{ category.spentPct }}</p>\n <p>earned: {{ category.earnedPct }}</p>\n -->\n </td>\n <td class=\"align-middle\">\n <!-- SPENT -->\n <div class=\"progress\" v-if=\"category.spentPct > 0\">\n <div class=\"progress-bar progress-bar-striped bg-danger\" role=\"progressbar\" :aria-valuenow=\"category.spentPct\"\n :style=\"{ width: category.spentPct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\">\n <span v-if=\"category.spentPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n <span v-if=\"category.spentPct <= 20\">&nbsp;\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.spent) }}\n </span>\n </div>\n\n <!-- EARNED -->\n <div class=\"progress justify-content-end\" v-if=\"category.earnedPct > 0\" title=\"hello2\">\n <span v-if=\"category.earnedPct <= 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n &nbsp;</span>\n <div class=\"progress-bar progress-bar-striped bg-success\" role=\"progressbar\" :aria-valuenow=\"category.earnedPct\" :style=\"{ width: category.earnedPct + '%'}\" aria-valuemin=\"0\"\n aria-valuemax=\"100\" title=\"hello\">\n <span v-if=\"category.earnedPct > 20\">\n {{ Intl.NumberFormat(locale, {style: 'currency', currency: category.currency_code}).format(category.earned) }}\n </span>\n </div>\n </div>\n\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"MainCategoryList\",\n\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getCategories();\n },\n data() {\n return {\n locale: 'en-US',\n categories: [],\n sortedList: [],\n spent: 0,\n earned: 0\n }\n },\n methods:\n {\n getCategories() {\n axios.get('./api/v1/categories?start=' + window.sessionStart + '&end=' + window.sessionEnd)\n .then(response => {\n this.parseCategories(response.data);\n }\n );\n },\n parseCategories(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n let entryKey = null;\n let categoryId = parseInt(current.id);\n\n // loop spent info:\n for (let subKey in current.attributes.spent) {\n if (current.attributes.spent.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let spentData = current.attributes.spent[subKey];\n entryKey = spentData.currency_id.toString() + '-' + current.id.toString();\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: spentData.currency_code,\n currency_symbol: spentData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].spent = parseFloat(spentData.sum);\n this.spent = parseFloat(spentData.sum) < this.spent ? parseFloat(spentData.sum) : this.spent;\n }\n }\n\n // loop earned info\n for (let subKey in current.attributes.earned) {\n if (current.attributes.earned.hasOwnProperty(subKey) && /^0$|^[1-9]\\d*$/.test(subKey) && subKey <= 4294967294) {\n let earnedData = current.attributes.earned[subKey];\n entryKey = earnedData.currency_id.toString() + '-' + current.id.toString();\n\n // does the categories list thing have this combo? if not, create it.\n this.categories[entryKey] = this.categories[entryKey] ??\n {\n id: categoryId,\n name: current.attributes.name,\n currency_code: earnedData.currency_code,\n currency_symbol: earnedData.currency_symbol,\n spent: 0,\n earned: 0,\n spentPct: 0,\n earnedPct: 0,\n };\n this.categories[entryKey].earned = parseFloat(earnedData.sum);\n this.earned = parseFloat(earnedData.sum) > this.earned ? parseFloat(earnedData.sum) : this.earned;\n }\n }\n }\n }\n this.sortCategories();\n },\n sortCategories() {\n // no longer care about keys:\n let array = [];\n for (let cat in this.categories) {\n if (this.categories.hasOwnProperty(cat)) {\n array.push(this.categories[cat]);\n }\n }\n array.sort(function (one, two) {\n return (one.spent + one.earned) - (two.spent + two.earned);\n });\n for (let cat in array) {\n if (array.hasOwnProperty(cat)) {\n let current = array[cat];\n current.spentPct = (current.spent / this.spent) * 100;\n current.earnedPct = (current.earned / this.earned) * 100;\n this.sortedList.push(current);\n }\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./MainCategoryList.vue?vue&type=template&id=00bc733f&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 \"00bc733f\",\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(\" \"),_c('div',{staticClass:\"card-body table-responsive p-0\"},[_c('table',{staticClass:\"table table-sm\"},[_c('tbody',_vm._l((_vm.sortedList),function(category){return _c('tr',[_c('td',{staticStyle:{\"width\":\"20%\"}},[_c('a',{attrs:{\"href\":'./categories/show/' + category.id}},[_vm._v(_vm._s(category.name))])]),_vm._v(\" \"),_c('td',{staticClass:\"align-middle\"},[(category.spentPct > 0)?_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-bar progress-bar-striped bg-danger\",style:({ width: category.spentPct + '%'}),attrs:{\"role\":\"progressbar\",\"aria-valuenow\":category.spentPct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[(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',[_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',[_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:{\"role\":\"progressbar\",\"aria-valuenow\":category.earnedPct,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\",\"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)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * dashboard.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport Dashboard from \"../components/dashboard/Dashboard\";\nimport TopBoxes from \"../components/dashboard/TopBoxes\";\nimport MainAccount from \"../components/dashboard/MainAccount\";\nimport MainAccountList from \"../components/dashboard/MainAccountList\";\nimport MainBillsList from \"../components/dashboard/MainBillsList\";\nimport MainBudgetList from \"../components/dashboard/MainBudgetList\";\nimport MainCreditList from \"../components/dashboard/MainCreditList\";\nimport MainDebitList from \"../components/dashboard/MainDebitList\";\nimport MainPiggyList from \"../components/dashboard/MainPiggyList\";\nimport TransactionListLarge from \"../components/transactions/TransactionListLarge\";\nimport TransactionListMedium from \"../components/transactions/TransactionListMedium\";\nimport TransactionListSmall from \"../components/transactions/TransactionListSmall\";\nimport DatePicker from 'v-calendar/lib/components/date-picker.umd'\nimport Calendar from \"../components/dashboard/Calendar\";\nimport MainCategoryList from \"../components/dashboard/MainCategoryList\";\nimport Vue from \"vue\";\nimport Vuex from 'vuex'\nimport store from '../components/store';\n\n/**\n * First we will load Axios via bootstrap.js\n * jquery and bootstrap-sass preloaded in app.js\n * vue, uiv and vuei18n are in app_vue.js\n */\n\nrequire('../bootstrap');\nrequire('chart.js');\n\nVue.component('transaction-list-large', TransactionListLarge);\nVue.component('transaction-list-medium', TransactionListMedium);\nVue.component('transaction-list-small', TransactionListSmall);\n\n// components as an example\nVue.component('date-picker', DatePicker)\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 this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n },\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 });","\nvar content = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Calendar.vue?vue&type=style&index=0&id=03e62f58&scoped=true&lang=css&\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"],"sourceRoot":""}
\ No newline at end of file
diff --git a/public/v2/js/transactions/create.js b/public/v2/js/transactions/create.js
index f64ba95977..0ed027009b 100755
--- a/public/v2/js/transactions/create.js
+++ b/public/v2/js/transactions/create.js
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{226:function(t,e,n){var r=n(404);"string"==typeof r&&(r=[[t.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(25)(r,a);r.locals&&(t.exports=r.locals)},295:function(t,e,n){t.exports=n(408)},403:function(t,e,n){"use strict";n(226)},404:function(t,e,n){(t.exports=n(24)(!1)).push([t.i,".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}",""])},408:function(t,e,n){"use strict";n.r(e);var r=n(23),a=n(2),s=n(11),i=n(10);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=Object(a.b)("transactions/create"),d=(u.mapState,u.mapGetters),p=(u.mapActions,u.mapMutations),f={props:["index","value","errors"],components:{VueTypeaheadBootstrap:s.a},name:"TransactionDescription",data:function(){return{descriptions:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},methods:c(c({},p(["updateField"])),{},{clearDescription:function(){this.value=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)}),watch:{value:function(t){this.updateField({field:"description",index:this.index,value:t})}},computed:c({},d(["transactionType","transactions"]))},h=n(1),v=Object(h.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("vue-typeahead-bootstrap",{attrs:{inputName:"description[]",data:t.descriptions,placeholder:t.$t("firefly.description"),showOnFocus:!0,autofocus:"",inputClass:t.errors.length>0?"is-invalid":"",minMatchingChars:3,serializer:function(t){return t.description}},on:{input:t.lookupDescription},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,null,null).exports;function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=Object(a.b)("transactions/create"),y=(g.mapState,g.mapGetters),O=(g.mapActions,{props:["index","errors"],name:"TransactionDate",methods:b({},(0,g.mapMutations)(["updateField","setDate"])),computed:b(b({},y(["transactionType","date","transactions"])),{},{localDate:{get:function(){return this.date instanceof Date&&!isNaN(this.date)?this.date.toISOString().split("T")[0]:""},set:function(t){var e=new Date(t),n=new Date(this.date.getTime());n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),this.setDate({date:n})}},localTime:{get:function(){return this.date instanceof Date&&!isNaN(this.date)?("0"+this.date.getHours()).slice(-2)+":"+("0"+this.date.getMinutes()).slice(-2)+":"+("0"+this.date.getSeconds()).slice(-2):""},set:function(t){var e=new Date(this.date.getTime()),n=t.split(":");e.setHours(parseInt(n[0])),e.setMinutes(parseInt(n[1])),e.setSeconds(parseInt(n[2])),this.setDate({date:e})}}})}),x=Object(h.a)(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.date_and_time"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.localDate,expression:"localDate"}],ref:"date",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"date",title:t.$t("firefly.date"),disabled:t.index>0,autocomplete:"off",name:"date[]",placeholder:t.localDate},domProps:{value:t.localDate},on:{input:function(e){e.target.composing||(t.localDate=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.localTime,expression:"localTime"}],ref:"time",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"time",title:t.$t("firefly.time"),disabled:t.index>0,autocomplete:"off",name:"time[]",placeholder:t.localTime},domProps:{value:t.localTime},on:{input:function(e){e.target.composing||(t.localTime=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=Object(a.b)("transactions/create"),P=(T.mapState,T.mapGetters),k=(T.mapActions,{props:["index","value","errors"],name:"TransactionBudget",data:function(){return{budgetList:[]}},created:function(){this.collectData()},methods:j(j({},(0,T.mapMutations)(["updateField"])),{},{collectData:function(){this.budgetList.push({id:0,name:this.$t("firefly.no_budget")}),this.getBudgets()},getBudgets:function(){var t=this;axios.get("./api/v1/budgets").then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e];this.budgetList.push({id:parseInt(n.id),name:n.attributes.name})}}}),watch:{value:function(t){this.updateField({field:"budget_id",index:this.index,value:t})}},computed:j({},P(["transactionType","transactions"]))}),$=Object(h.a)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"budget",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.budget"),autocomplete:"off",name:"budget_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.budgetList,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=Object(a.b)("transactions/create"),F=(E.mapState,E.mapGetters),I=E.mapActions,L=E.mapMutations,M={name:"TransactionAccount",components:{VueTypeaheadBootstrap:s.a},props:["index","direction","value","errors"],data:function(){return{query:"",accounts:[],accountTypes:[],initialSet:[],selectedAccount:{}}},created:function(){this.createInitialSet()},methods:S(S(S({},L(["updateField","setDestinationAllowedTypes","setSourceAllowedTypes"])),I(["calcTransactionType"])),{},{getACURL:function(t,e){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/accounts?types="+t.join(",")+"&query="+e},clearAccount:function(){this.accounts=this.initialSet,this.value={name:""}},lookupAccount:Object(i.debounce)((function(){var t=this;0===this.accountTypes.length&&(this.accountTypes="source"===this.direction?this.sourceAllowedTypes:this.destinationAllowedTypes),axios.get(this.getACURL(this.accountTypes,this.value.name)).then((function(e){t.accounts=e.data}))}),300),createInitialSet:function(){var t=this,e=this.sourceAllowedTypes;"destination"===this.direction&&(e=this.destinationAllowedTypes),axios.get(this.getACURL(e,"")).then((function(e){t.accounts=e.data,t.initialSet=e.data}))}}),watch:{selectedAccount:function(t){this.value=t,this.value.name=this.value.name_with_balance},value:function(t){this.updateField({field:this.accountKey,index:this.index,value:t});var e=[],n=t.type?t.type:"no_type";void 0!==this.allowedOpposingTypes[this.direction]&&void 0!==this.allowedOpposingTypes[this.direction][n]&&(e=this.allowedOpposingTypes[this.direction][n]),"source"===this.direction&&this.setDestinationAllowedTypes(e),"destination"===this.direction&&this.setSourceAllowedTypes(e),this.calcTransactionType()}},computed:S(S({},F(["transactionType","transactions","defaultTransaction","sourceAllowedTypes","destinationAllowedTypes","allowedOpposingTypes"])),{},{accountKey:{get:function(){return"source"===this.direction?"source_account":"destination_account"}}})},N=Object(h.a)(M,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly."+this.direction+"_account"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{data:t.accounts,showOnFocus:!0,inputClass:t.errors.length>0?"is-invalid":"",inputName:t.direction+"[]",serializer:function(t){return t.name_with_balance},minMatchingChars:3,placeholder:t.$t("firefly."+this.direction+"_account")},on:{input:t.lookupAccount,hit:function(e){t.selectedAccount=e}},model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearAccount}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,"528f81f4",null).exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U=Object(a.b)("transactions/create"),V=(U.mapState,U.mapGetters),q=(U.mapActions,{name:"SwitchAccount",props:["index"],methods:B(B({},(0,U.mapMutations)(["updateField"])),{},{switchAccounts:function(){var t=this.transactions[this.index].source_account,e=this.transactions[this.index].destination_account;this.updateField({field:"source_account",index:this.index,value:e}),this.updateField({field:"destination_account",index:this.index,value:t})}}),computed:B({},V(["transactions","transactionType"]))}),z=Object(h.a)(q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},["any"!==this.transactionType?n("span",{staticClass:"text-muted"},[t._v("\n "+t._s(t.$t("firefly."+this.transactionType))+"\n ")]):t._e(),t._v(" "),"any"===this.transactionType?n("span",{staticClass:"text-muted"},[t._v(" ")]):t._e()]),t._v(" "),n("div",{staticClass:"btn-group d-flex"},[n("button",{staticClass:"btn btn-light",on:{click:t.switchAccounts}},[t._v("↔")])])])}),[],!1,null,"7fc33f88",null).exports;function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y=Object(a.b)("transactions/create"),K=(Y.mapState,Y.mapGetters),Q=(Y.mapActions,{name:"TransactionAmount",props:["index","errors"],data:function(){return{currencySymbol:""}},watch:{transactionType:function(t){switch(t){case"Transfer":case"Withdrawal":return this.currencyId=this.transactions[this.index].source_account.currency_id,void(this.currencySymbol=this.transactions[this.index].source_account.currency_symbol);case"Deposit":return this.currencyId=this.transactions[this.index].destination_account.currency_id,void(this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol)}},destinationAllowedTypes:function(t){void 0!==this.transactions[this.index].source_account.type&&-1!==["Asset account","Loan","Debt","Mortgage"].indexOf(this.transactions[this.index].source_account.type)&&(this.currencyId=this.transactions[this.index].source_account.currency_id,this.currencySymbol=this.transactions[this.index].source_account.currency_symbol)},sourceAllowedTypes:function(t){void 0!==this.transactions[this.index].destination_account.type&&"Transfer"!==this.transactionType&&-1!==["Asset account","Loan","Debt","Mortgage"].indexOf(this.transactions[this.index].destination_account.type)&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol)}},created:function(){this.updateCurrency()},methods:W(W({},(0,Y.mapMutations)(["updateField"])),{},{updateCurrency:function(){0===this.currencyId&&(this.currencySymbol=this.currencyPreference.symbol,this.currencyId=this.currencyPreference.id)}}),computed:W(W({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},K(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{amount:{get:function(){return this.transactions[this.index].amount},set:function(t){this.updateField({field:"amount",index:this.index,value:t})}},currencyId:{get:function(){return this.transactions[this.index].currency_id},set:function(t){this.updateField({field:"currency_id",index:this.index,value:t})}},selectedTransactionType:{get:function(){return this.transactionType},set:function(t){}}})}),X=Object(h.a)(Q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs"},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("div",{staticClass:"input-group-prepend"},[n("div",{staticClass:"input-group-text"},[t._v(t._s(t.currencySymbol))])]),t._v(" "),n("input",{attrs:{type:"hidden",name:"currency_id[]"},domProps:{value:t.currencyId}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.amount"),autocomplete:"off",name:"amount[]",type:"number",placeholder:t.$t("firefly.amount")},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,"4003e1ea",null).exports;function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nt=Object(a.b)("transactions/create"),rt=(nt.mapState,nt.mapGetters),at=(nt.mapActions,{name:"TransactionForeignAmount",props:["index","errors"],data:function(){return{currencySymbol:"",allCurrencies:[],selectableCurrencies:[]}},watch:{transactionType:function(t){},destinationAllowedTypes:function(t){},sourceAllowedTypes:function(t){}},created:function(){},methods:tt({},(0,nt.mapMutations)(["updateField"])),computed:tt(tt({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},rt(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{amount:{get:function(){return this.transactions[this.index].foreign_amount},set:function(t){this.updateField({field:"foreign_amount",index:this.index,value:t})}},currencyId:{get:function(){return this.transactions[this.index].foreign_currency_id},set:function(t){this.updateField({field:"foreign_currency_id",index:this.index,value:t})}},selectedTransactionType:{get:function(){return this.transactionType},set:function(t){}}})}),st=Object(h.a)(at,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"hidden",name:"foreign_currency_id[]"},domProps:{value:t.currencyId}}),t._v(" "),n("div",{staticClass:"text-xs"},[t._v(t._s(t.$t("form.foreign_amount")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("form.foreign_amount"),autocomplete:"off",disabled:0===t.currencyId,name:"foreign_amount[]",type:"number",placeholder:t.$t("form.foreign_amount")},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,"39931bed",null).exports;function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lt=Object(a.b)("transactions/create"),ut=(lt.mapState,lt.mapGetters),dt=(lt.mapActions,{name:"TransactionForeignCurrency",props:["index"],data:function(){return{allCurrencies:[],selectableCurrencies:[],lockedCurrency:0,selectIsVisible:!0}},watch:{transactionType:function(t){this.lockedCurrency=0,"Transfer"===t&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()},destinationAllowedTypes:function(t){this.lockedCurrency=0,"Transfer"===this.transactionType&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()},sourceAllowedTypes:function(t){this.lockedCurrency=0,"Transfer"===this.transactionType&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()}},created:function(){this.getAllCurrencies()},methods:ot(ot({},(0,lt.mapMutations)(["updateField"])),{},{checkVisibility:function(){var t=this.transactions[this.index].source_account.currency_id,e=this.transactions[this.index].destination_account.currency_id;this.selectIsVisible=!0,t===e&&0!==t&&"Transfer"===this.transactionType&&(this.selectIsVisible=!1,this.currencyId=0)},getAllCurrencies:function(){var t=this;axios.get("./api/v1/autocomplete/currencies").then((function(e){t.allCurrencies=e.data,t.filterCurrencies()}))},filterCurrencies:function(){if(0===this.lockedCurrency){for(var t in this.selectableCurrencies=[{id:0,name:this.$t("firefly.no_currency")}],this.allCurrencies)if(this.allCurrencies.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var e=this.allCurrencies[t];this.transactions[this.index].currency_id!==e.id&&this.selectableCurrencies.push(e),this.transactions[this.index].currency_id===e.id&&this.currencyId===e.id&&(this.currencyId=0)}}else for(var n in this.allCurrencies)if(this.allCurrencies.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.allCurrencies[n];r.id===this.lockedCurrency&&(this.selectableCurrencies=[r],this.currencyId=r.id)}}}),computed:ot(ot({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},ut(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{currencyId:{get:function(){return this.transactions[this.index].foreign_currency_id},set:function(t){this.updateField({field:"foreign_currency_id",index:this.index,value:t})}},normalCurrencyId:{get:function(){return this.transactions[this.index].currency_id}}})}),pt=Object(h.a)(dt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.selectIsVisible?n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs"},[t._v(" ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currencyId,expression:"currencyId"}],staticClass:"form-control",attrs:{name:"foreign_currency_id[]"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currencyId=e.target.multiple?n:n[0]}}},t._l(t.selectableCurrencies,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)])]):t._e()}),[],!1,null,"7008e22e",null).exports;function ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(n),!0).forEach((function(e){vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=Object(a.b)("transactions/create"),bt=(mt.mapState,mt.mapGetters),_t=(mt.mapActions,mt.mapMutations),gt={name:"TransactionCustomDates",props:["enabledDates","index","errors"],methods:ht(ht(ht({},bt(["transactions"])),_t(["updateField"])),{},{getFieldValue:function(t){var e;return null!==(e=this.transactions()[parseInt(this.index)][t])&&void 0!==e?e:""},setFieldValue:function(t,e){this.updateField({index:this.index,field:e,value:t.target.value})}})},yt=Object(h.a)(gt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.enabledDates,(function(e,r){return n("div",{staticClass:"form-group"},[e?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("form."+r))+"\n ")]):t._e(),t._v(" "),e?n("div",{staticClass:"input-group"},[n("input",{ref:r,refInFor:!0,staticClass:"form-control",attrs:{type:"date",title:t.$t("form."+r),autocomplete:"off",name:r+"[]",placeholder:t.$t("form."+r)},domProps:{value:t.getFieldValue(r)},on:{change:function(e){return t.setFieldValue(e,r)},submit:function(t){t.preventDefault()}}})]):t._e()])})),0)}),[],!1,null,"4d30715b",null).exports;function Ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){wt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jt=Object(a.b)("transactions/create"),Ct=(jt.mapState,jt.mapGetters),Tt=(jt.mapActions,jt.mapMutations),Pt={props:["value","index","errors"],components:{VueTypeaheadBootstrap:s.a},name:"TransactionCategory",data:function(){return{categories:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.categories=e.data,t.initialSet=e.data}))},methods:xt(xt({},Tt(["updateField"])),{},{clearCategory:function(){this.value=null},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/categories?query="+t},lookupCategory:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.categories=e.data}))}),300)}),watch:{value:function(t){this.updateField({field:"category",index:this.index,value:t})}},computed:xt(xt({},Ct(["transactionType","transactions"])),{},{selectedCategory:{get:function(){return this.categories[this.index].name},set:function(t){this.value=t.name}}})},kt=Object(h.a)(Pt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{inputName:"category[]",data:t.categories,placeholder:t.$t("firefly.category"),showOnFocus:!0,inputClass:t.errors.length>0?"is-invalid":"",minMatchingChars:3,serializer:function(t){return t.name}},on:{hit:function(e){t.selectedCategory=e},input:t.lookupCategory},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,null,null).exports;function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var At=Object(a.b)("transactions/create"),Et=(At.mapState,At.mapGetters),Ft=(At.mapActions,{props:["value","index","errors"],name:"TransactionBill",data:function(){return{billList:[]}},created:function(){this.collectData()},methods:Dt(Dt({},(0,At.mapMutations)(["updateField"])),{},{collectData:function(){this.billList.push({id:0,name:this.$t("firefly.no_bill")}),this.getBills()},getBills:function(){var t=this;axios.get("./api/v1/bills").then((function(e){t.parseBills(e.data)}))},parseBills:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e];this.billList.push({id:parseInt(n.id),name:n.attributes.name})}}}),watch:{value:function(t){this.updateField({field:"bill_id",index:this.index,value:t})}},computed:Dt({},Et(["transactionType","transactions"]))}),It=Object(h.a)(Ft,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.bill"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"bill",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.bill"),autocomplete:"off",name:"bill_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.billList,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports,Lt=n(234),Mt=n.n(Lt),Nt=n(48),Rt=n.n(Nt);function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vt=Object(a.b)("transactions/create"),qt=(Vt.mapState,Vt.mapGetters,Vt.mapActions,Vt.mapMutations),zt={name:"TransactionTags",components:{VueTagsInput:Mt.a},props:["value","index","errors"],data:function(){return{autocompleteItems:[],debounce:null,tags:[],currentTag:"",updateTags:!0}},watch:{currentTag:"initItems",value:function(t){this.updateField({field:"tags",index:this.index,value:t}),this.updateTags=!1,this.tags=t},tags:function(t){if(this.updateTags){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({text:t[n].text});this.value=e}this.updateTags=!0}},methods:Gt(Gt({},qt(["updateField"])),{},{initItems:function(){var t=this;if(!(this.currentTag.length<2)){var e=document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/tags?query=".concat(this.currentTag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){Rt.a.get(e).then((function(e){t.autocompleteItems=e.data.map((function(t){return{text:t.tag}}))})).catch((function(){return console.warn("Oh. Something went wrong loading tags.")}))}),300)}}})},Jt=(n(403),Object(h.a)(zt,(function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n "+e._s(e.$t("firefly.tags"))+"\n ")]),e._v(" "),r("div",{staticClass:"input-group"},[r("vue-tags-input",{attrs:{"add-only-from-autocomplete":!1,"autocomplete-items":e.autocompleteItems,tags:e.tags,title:e.$t("firefly.tags"),placeholder:e.$t("firefly.tags")},on:{"tags-changed":function(e){return t.tags=e}},model:{value:e.currentTag,callback:function(t){e.currentTag=t},expression:"currentTag"}})],1),e._v(" "),e.errors.length>0?r("span",e._l(e.errors,(function(t){return r("span",{staticClass:"text-danger small"},[e._v(e._s(t)),r("br")])})),0):e._e()])}),[],!1,null,null,null).exports);function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){Yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kt=Object(a.b)("transactions/create"),Qt=(Kt.mapState,Kt.mapGetters),Xt=(Kt.mapActions,{props:["index","value","errors"],name:"TransactionPiggyBank",data:function(){return{piggyList:[]}},created:function(){this.collectData()},methods:Ht(Ht({},(0,Kt.mapMutations)(["updateField"])),{},{collectData:function(){this.piggyList.push({id:0,name_with_balance:this.$t("firefly.no_piggy_bank")}),this.getPiggies()},getPiggies:function(){var t=this;axios.get("./api/v1/autocomplete/piggy-banks-with-balance").then((function(e){t.parsePiggies(e.data)}))},parsePiggies:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t[e];this.piggyList.push({id:parseInt(n.id),name_with_balance:n.name_with_balance})}}}),watch:{value:function(t){this.updateField({field:"piggy_bank_id",index:this.index,value:t})}},computed:Ht({},Qt(["transactionType","transactions"]))}),Zt=Object(h.a)(Xt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.piggy_bank"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"piggy_bank_id",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.piggy_bank"),autocomplete:"off",name:"piggy_bank_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.piggyList,(function(e){return n("option",{attrs:{label:e.name_with_balance},domProps:{value:e.id}},[t._v(t._s(e.name_with_balance))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ne=Object(a.b)("transactions/create"),re=(ne.mapState,ne.mapGetters,ne.mapActions,{props:["index","value","errors"],name:"TransactionInternalReference",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,ne.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"internal_reference",index:this.index,value:t})}}}),ae=Object(h.a)(re,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.internal_reference"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"text",name:"internal_reference[]",placeholder:t.$t("firefly.internal_reference")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"ce9f5a82",null).exports;function se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oe=Object(a.b)("transactions/create"),ce=(oe.mapState,oe.mapGetters,oe.mapActions,{props:["index","value","errors"],name:"TransactionExternalUrl",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?se(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,oe.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"external_url",index:this.index,value:t})}}}),le=Object(h.a)(ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.external_url"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"url",name:"external_url[]",placeholder:t.$t("firefly.external_url")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"8b7a9952",null).exports;function ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function de(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pe=Object(a.b)("transactions/create"),fe=(pe.mapState,pe.mapGetters,pe.mapActions,{props:["index","value","errors"],name:"TransactionNotes",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ue(Object(n),!0).forEach((function(e){de(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,pe.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"notes",index:this.index,value:t})}}}),he=Object(h.a)(fe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.notes"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{placeholder:t.$t("firefly.notes")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})])])}),[],!1,null,"5f8039da",null).exports,ve={props:["index","value","errors"],name:"TransactionLinks",data:function(){return{searchResults:[],include:[],locale:"en-US",linkTypes:[],query:"",searching:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getLinkTypes()},watch:{value:function(t){}},methods:{getTextForLinkType:function(t){var e=t.split("-");for(var n in this.linkTypes)if(this.linkTypes.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.linkTypes[n];if(e[0]===r.id&&e[1]===r.direction)return r.type}return"text for #"+t},selectTransaction:function(t){for(var e in this.searchResults)if(this.searchResults.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.searchResults[e];n.selected&&this.addToSelected(n),n.selected||this.removeFromSelected(n)}},selectLinkType:function(t){for(var e in this.searchResults)if(this.searchResults.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.searchResults[e];this.updateSelected(n.transaction_journal_id,n.link_type_id)}},updateSelected:function(t,e){for(var n in this.value)if(this.value.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.value[n];parseInt(r.transaction_journal_id)===t&&(this.value[n].link_type_id=e)}},addToSelected:function(t){void 0===this.value.find((function(e){return e.transaction_journal_id===t.transaction_journal_id}))&&this.value.push(t)},removeFromSelected:function(t){for(var e in this.value){if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)this.value[e].transaction_journal_id===t.transaction_journal_id&&this.value.splice(parseInt(e),1)}},getLinkTypes:function(){var t=this;axios.get("./api/v1/link_types").then((function(e){t.parseLinkTypes(e.data)}))},parseLinkTypes:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e],r={id:n.id,type:n.attributes.inward,direction:"inward"},a={id:n.id,type:n.attributes.outward,direction:"outward"};r.type===a.type&&(r.type=r.type+" (←)",a.type=a.type+" (→)"),this.linkTypes.push(r),this.linkTypes.push(a)}},search:function(){var t=this;this.searching=!0,this.searchResults=[];var e="./api/v1/search/transactions?limit=10&query="+this.query;axios.get(e).then((function(e){t.parseSearch(e.data)}))},parseSearch:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)for(var n in t.data[e].attributes.transactions)if(t.data[e].attributes.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=t.data[e].attributes.transactions[n];r.transaction_group_id=parseInt(t.data[e].id),r.selected=this.isJournalSelected(r.transaction_journal_id),r.link_type_id=this.getJournalLinkType(r.transaction_journal_id),r.link_type_text="",this.searchResults.push(r)}this.searching=!1},getJournalLinkType:function(t){for(var e in this.value)if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.value[e];if(n.transaction_journal_id===t)return n.link_type_id}return"1-inward"},isJournalSelected:function(t){for(var e in this.value){if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)if(this.value[e].transaction_journal_id===t)return!0}return!1}}},me=Object(h.a)(ve,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.journal_links"))+"\n ")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[0===t.value.length?n("p",[t._m(0)]):t._e(),t._v(" "),t.value.length>0?n("ul",{staticClass:"list-group"},t._l(t.value,(function(e){return n("li",{staticClass:"list-group-item"},[n("em",[t._v(t._s(t.getTextForLinkType(e.link_type_id)))]),t._v(" "),n("a",{attrs:{href:"./transaction/show/"+e.transaction_group_id}},[t._v(t._s(e.description))]),t._v(" "),"withdrawal"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"deposit"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"transfer"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-info"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),t._m(1,!0)])})),0):t._e(),t._v(" "),t.value.length>0?n("div",{staticClass:"form-text"},[t._m(2)]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal",attrs:{tabindex:"-1",id:"linkModal"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"container-fluid"},[t._m(4),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.search(e)}}},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{autocomplete:"off",maxlength:"255",type:"text",name:"search",id:"query",placeholder:"Search query"},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),t._m(5)])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t.searching?n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.searchResults.length>0?n("h4",[t._v("Search results")]):t._e(),t._v(" "),t.searchResults.length>0?n("table",{staticClass:"table table-sm"},[t._m(6),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"result.selected"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:[function(n){var r=e.selected,a=n.target,s=!!a.checked;if(Array.isArray(r)){var i=t._i(r,null);a.checked?i<0&&t.$set(e,"selected",r.concat([null])):i>-1&&t.$set(e,"selected",r.slice(0,i).concat(r.slice(i+1)))}else t.$set(e,"selected",s)},function(e){return t.selectTransaction(e)}]}})]),t._v(" "),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.link_type_id,expression:"result.link_type_id"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"link_type_id",n.target.multiple?r:r[0])},function(e){return t.selectLinkType(e)}]}},t._l(t.linkTypes,(function(e){return n("option",{attrs:{label:e.type},domProps:{value:e.id+"-"+e.direction}},[t._v(t._s(e.type)+"\n ")])})),0)]),t._v(" "),n("td",[n("a",{attrs:{href:"./transactions/show/"+e.transaction_group_id}},[t._v(t._s(e.description))]),t._v(" "),"withdrawal"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"deposit"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"transfer"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-info"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),n("br"),t._v(" "),n("em",[n("a",{attrs:{href:"./accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]),t._v("\n →\n "),n("a",{attrs:{href:"./accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))])])])])})),0)]):t._e()])])])]),t._v(" "),t._m(7)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-default btn-xs",attrs:{"data-toggle":"modal","data-target":"#linkModal"}},[e("i",{staticClass:"fas fa-plus"}),this._v(" Add transaction link")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"btn-group btn-group-xs float-right"},[e("a",{staticClass:"btn btn-xs btn-default",attrs:{href:"#"}},[e("i",{staticClass:"far fa-edit"})]),this._v(" "),e("a",{staticClass:"btn btn-xs btn-danger",attrs:{href:"#"}},[e("i",{staticClass:"far fa-trash-alt"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-default",attrs:{"data-toggle":"modal","data-target":"#linkModal"}},[e("i",{staticClass:"fas fa-plus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title"},[this._v("Transaction thing dialog.")]),this._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("p",[this._v("\n Use this form to search for transactions you wish to link to this one. When in doubt, use "),e("code",[this._v("id:*")]),this._v(" where the ID is the number from\n the URL.\n ")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[e("i",{staticClass:"fas fa-search"}),this._v(" Search")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",{staticStyle:{width:"33%"},attrs:{colspan:"2"}},[this._v("Include?")]),this._v(" "),e("th",[this._v("Transaction")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[this._v("Close")])])}],!1,null,null,null).exports,be={name:"TransactionAttachments",props:["transaction_journal_id"],watch:{transaction_journal_id:function(t){0!==t&&this.doUpload()}},methods:{doUpload:function(){var t=this;for(var e in this.$refs.att.files)this.$refs.att.files.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&function(){var n=t.$refs.att.files[e],r=new FileReader,a=t;r.onloadend=function(t){if(t.target.readyState===FileReader.DONE){var e={filename:n.name,attachable_type:"TransactionJournal",attachable_id:a.transaction_journal_id};axios.post("./api/v1/attachments",e).then((function(e){var n="./api/v1/attachments/"+e.data.data.id+"/upload";axios.post(n,new Blob([t.target.result])).then((function(t){a.$emit("uploaded-attachments")}))}))}},r.readAsArrayBuffer(n)}();0===this.$refs.att.files.length&&this.$emit("uploaded-attachments",this.transaction_journal_id)}}},_e=Object(h.a)(be,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[this._v("\n "+this._s(this.$t("firefly.attachments"))+"\n ")]),this._v(" "),e("div",{staticClass:"input-group"},[e("input",{ref:"att",staticClass:"form-control",attrs:{type:"file",multiple:"",name:"attachments[]"}})])])}),[],!1,null,"f8d170e2",null).exports;function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(n),!0).forEach((function(e){Oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xe=Object(a.b)("transactions/create"),we=(xe.mapState,xe.mapGetters),je=(xe.mapActions,xe.mapMutations),Ce={props:["value","errors"],name:"TransactionGroupTitle",components:{VueTypeaheadBootstrap:s.a},data:function(){return{descriptions:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},watch:{value:function(t){this.setGroupTitle({groupTitle:t})}},methods:ye(ye(ye({},je(["setGroupTitle"])),we(["groupTitle"])),{},{clearDescription:function(){this.setGroupTitle({groupTitle:""}),this.value=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)})},Te=Object(h.a)(Ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{inputName:"group_title",data:t.descriptions,placeholder:t.$t("firefly.split_transaction_title"),showOnFocus:!0,minMatchingChars:3,serializer:function(t){return t.description},inputClass:t.errors.length>0?"is-invalid":""},on:{input:t.lookupDescription},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,"a36ef926",null).exports;function Pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pe(Object(n),!0).forEach((function(e){$e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=Object(a.b)("transactions/create"),Se=(De.mapState,De.mapGetters),Ae=(De.mapActions,De.mapMutations),Ee={name:"Create",components:{TransactionAttachments:_e,TransactionNotes:he,TransactionExternalUrl:le,TransactionGroupTitle:Te,TransactionInternalReference:ae,TransactionPiggyBank:Zt,TransactionTags:Jt,TransactionLinks:me,TransactionBill:It,TransactionCategory:kt,TransactionCustomDates:yt,TransactionForeignCurrency:pt,TransactionForeignAmount:st,TransactionAmount:X,SwitchAccount:z,TransactionAccount:N,TransactionBudget:$,TransactionDescription:v,TransactionDate:x},created:function(){this.storeAllowedOpposingTypes(),this.storeAccountToTransaction(),this.storeCustomDateFields(),this.addTransaction()},data:function(){return{linkSearchResults:[],errorMessage:"",successMessage:"",isSubmitting:!1,isSubmittingTransaction:!1,isSubmittingLinks:!1,isSubmittingAttachments:!1,submitted:!1,submittedTransaction:!1,submittedLinks:!1,submittedAttachments:!1,submittedAttCount:0,groupTitleErrors:[],groupId:0,groupTitle:"",createAnother:!0,resetFormAfter:!0}},computed:ke({},Se(["transactionType","transactions","customDateFields","date","groupTitle"])),watch:{submittedTransaction:function(){this.finalizeSubmit()},submittedLinks:function(){this.finalizeSubmit()},submittedAttachments:function(){this.finalizeSubmit()}},methods:ke(ke({},Ae(["addTransaction","deleteTransaction","setAllowedOpposingTypes","setAccountToTransaction","setTransactionError","resetErrors","updateField","resetTransactions"])),{},{removeTransaction:function(t){this.$store.commit("transactions/create/deleteTransaction",{index:t})},storeCustomDateFields:function(){var t=this;axios.get("./api/v1/preferences/transaction_journal_optional_fields").then((function(e){var n=e.data.data.attributes.data,r=["interest_date","book_date","process_date","due_date","payment_date","invoice_date"],a={interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1};for(var s in n)n.hasOwnProperty(s)&&-1!==r.indexOf(s)&&(a[s]=n[s]);t.$store.commit("transactions/create/setCustomDateFields",a)}))},finalizeSubmit:function(){var t=this;if(this.submittedTransaction&&this.submittedAttachments&&this.submittedLinks&&!1===this.submitted){if(this.submitted=!0,this.isSubmitting=!1,!1===this.createAnother)return void(window.location.href=window.previousURL+"?transaction_group_id="+this.groupId+"&message=created");this.successMessage=this.$t("firefly.transaction_stored_link",{ID:this.groupId,title:this.groupTitle}),this.resetFormAfter&&(this.resetTransactions(),setTimeout((function(){return t.addTransaction()}),50))}},storeAllowedOpposingTypes:function(){this.setAllowedOpposingTypes(window.allowedOpposingTypes)},storeAccountToTransaction:function(){this.setAccountToTransaction(window.accountToTransaction)},submitTransaction:function(){var t=this;this.isSubmitting=!0,this.isSubmittingTransaction=!0,this.isSubmittingLinks=!0,this.isSubmittingAttachments=!0;var e=this.convertData();axios.post("./api/v1/transactions",e).then((function(n){t.isSubmittingTransaction=!1,t.submittedTransaction=!0,t.submitTransactionLinks(e,n),t.submitAttachments(e,n),t.groupId=parseInt(n.data.data.id),t.groupTitle=null===n.data.data.attributes.group_title?n.data.data.attributes.transactions[0].description:n.data.data.attributes.group_title})).catch((function(e){t.parseErrors(e.response.data)}))},submitAttachments:function(t,e){this.isSubmittingAttachments=!0;var n=e.data.data.attributes.transactions;for(var r in t.transactions)t.transactions.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294&&n.hasOwnProperty(r)&&this.updateField({index:r,field:"transaction_journal_id",value:n[0].transaction_journal_id})},uploadedAttachment:function(){this.submittedAttCount++,this.submittedAttCount===this.transactions.length&&(this.submittedAttachments=!0,this.isSubmittingAttachments=!1)},submitTransactionLinks:function(t,e){this.isSubmittingLinks=!0,this.submittedLinks=!1;var n=[],r=e.data.data.attributes.transactions,a=0;for(var s in t.transactions)if(t.transactions.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var i=t.transactions[s];if(r.hasOwnProperty(s)){var o=r[s];for(var c in i.links)if(i.links.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294){var l=i.links[c];a++,0===l.outward_id&&(l.outward_id=o.transaction_journal_id),0===l.inward_id&&(l.inward_id=o.transaction_journal_id),n.push(axios.post("./api/v1/transaction_links",l).then((function(t){})))}}}0===a&&(this.isSubmittingLinks=!1,this.submittedLinks=!0),Promise.all(n).then((function(){this.isSubmittingLinks=!1,this.submittedLinks=!0}))},parseErrors:function(t){for(var e in this.transactions)this.resetErrors({index:e});var n,r;for(var a in this.successMessage=null,this.errorMessage=this.$t("firefly.errors_submission"),void 0===t.errors&&(this.successMessage=null,this.errorMessage=t.message),t.errors)if(t.errors.hasOwnProperty(a)){if("group_title"===a){this.groupTitleErrors=t.errors[a];continue}if("group_title"!==a){n=parseInt(a.split(".")[1]);var s=void 0;switch(r=a.split(".")[2]){case"amount":case"description":case"date":case"tags":s={index:n,field:r,errors:t.errors[a]},this.setTransactionError(s);break;case"budget_id":s={index:n,field:"budget",errors:t.errors[a]},this.setTransactionError(s);break;case"bill_id":s={index:n,field:"bill",errors:t.errors[a]},this.setTransactionError(s);break;case"piggy_bank_id":s={index:n,field:"piggy_bank",errors:t.errors[a]},this.setTransactionError(s);break;case"category_name":s={index:n,field:"category",errors:t.errors[a]},this.setTransactionError(s);break;case"source_name":case"source_id":s={index:n,field:"source",errors:t.errors[a]},this.setTransactionError(s);break;case"destination_name":case"destination_id":s={index:n,field:"destination",errors:t.errors[a]},this.setTransactionError(s);break;case"foreign_amount":case"foreign_currency":s={index:n,field:"foreign_amount",errors:t.errors[a]},this.setTransactionError(s)}}this.transactions[n]}this.isSubmittingTransaction=!1,this.submittedTransaction=!0,this.isSubmitting=!1},convertData:function(){var t={transactions:[]};for(var e in this.groupTitle.length>0&&(t.group_title=this.groupTitle),this.transactions)this.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&t.transactions.push(this.convertSplit(e,this.transactions[e]));return t.transactions.length>1&&(t.group_title=t.transactions[0].description),t},convertSplit:function(t,e){var n,r,a,s,i="invalid";this.date instanceof Date&&!isNaN(this.date)&&(i=this.toW3CString(this.date));var o,c,l,u={description:e.description,date:i,type:this.transactionType,source_id:null!==(n=e.source_account.id)&&void 0!==n?n:null,source_name:null!==(r=e.source_account.name)&&void 0!==r?r:null,destination_id:null!==(a=e.destination_account.id)&&void 0!==a?a:null,destination_name:null!==(s=e.destination_account.name)&&void 0!==s?s:null,currency_id:e.currency_id,amount:e.amount,budget_id:e.budget_id,category_name:e.category,tags:e.tags,interest_date:e.interest_date,book_date:e.book_date,process_date:e.process_date,due_date:e.due_date,payment_date:e.payment_date,invoice_date:e.invoice_date,internal_reference:e.internal_reference,external_url:e.external_url,notes:e.notes,external_id:e.external_id,order:0,reconciled:!1};0!==e.piggy_bank_id&&(u.piggy_bank_id=e.piggy_bank_id),0!==e.bill_id&&(u.bill_id=e.bill_id),0!==e.foreign_currency_id&&(u.foreign_currency_id=e.foreign_currency_id),""!==e.foreign_amount&&(u.foreign_amount=e.foreign_amount),o=this.transactionType?this.transactionType.toLowerCase():"any",c=this.transactions[0].source_account.type,l=this.transactions[0].destination_account.type,"any"===o&&["asset","Asset account","Loan","Debt","Mortgage"].includes(c)&&(o="withdrawal"),"any"===o&&["asset","Asset account","Loan","Debt","Mortgage"].includes(l)&&(o="deposit"),u.type=o;var d=[];for(var p in e.links)if(e.links.hasOwnProperty(p)&&/^0$|^[1-9]\d*$/.test(p)&&p<=4294967294){var f=e.links[p],h=f.link_type_id.split("-"),v="outward"===h[1]?0:parseInt(f.transaction_journal_id),m="inward"===h[1]?0:parseInt(f.transaction_journal_id),b={link_type_id:parseInt(h[0]),inward_id:v,outward_id:m};d.push(b)}return u.links=d,u},toW3CString:function(t){var e=t.getFullYear(),n=t.getMonth();++n<10&&(n="0"+n);var r=t.getDate();r<10&&(r="0"+r);var a=t.getHours();a<10&&(a="0"+a);var s=t.getMinutes();s<10&&(s="0"+s);var i=t.getSeconds();i<10&&(i="0"+i);var o=-t.getTimezoneOffset(),c=Math.abs(Math.floor(o/60)),l=Math.abs(o)-60*c;c<10&&(c="0"+c),l<10&&(l="0"+l);var u="+";return o<0&&(u="-"),e+"-"+n+"-"+r+"T"+a+":"+s+":"+i+u+c+":"+l}})},Fe=Object(h.a)(Ee,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.errorMessage.length>0?n("div",{staticClass:"alert alert-danger alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",[n("i",{staticClass:"icon fas fa-ban"}),t._v(" "+t._s(t.$t("firefly.flash_error")))]),t._v("\n "+t._s(t.errorMessage)+"\n ")]):t._e(),t._v(" "),t.successMessage.length>0?n("div",{staticClass:"alert alert-success alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",[n("i",{staticClass:"icon fas fa-thumbs-up"}),t._v(" "+t._s(t.$t("firefly.flash_success")))]),t._v("\n "+t._s(t.successMessage)+"\n ")]):t._e(),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("ul",{staticClass:"nav nav-pills ml-auto p-2"},t._l(this.transactions,(function(e,r){return n("li",{staticClass:"nav-item"},[n("a",{class:"nav-link"+(0===r?" active":""),attrs:{href:"#split_"+r,"data-toggle":"tab"}},[""!==e.description?n("span",[t._v(t._s(e.description))]):t._e(),t._v(" "),""===e.description?n("span",[t._v("Split "+t._s(r+1))]):t._e()])])})),0)])]):t._e(),t._v(" "),n("div",{staticClass:"tab-content"},t._l(this.transactions,(function(e,r){return n("div",{class:"tab-pane"+(0===r?" active":""),attrs:{id:"split_"+r}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.basic_journal_information"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionDescription",{attrs:{index:r,errors:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12"},[n("TransactionAccount",{attrs:{direction:"source",index:r,errors:e.errors.source},model:{value:e.source_account,callback:function(n){t.$set(e,"source_account",n)},expression:"transaction.source_account"}})],1),t._v(" "),n("div",{staticClass:"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block"},[n("SwitchAccount",{attrs:{index:r}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAccount",{attrs:{direction:"destination",index:r,errors:e.errors.destination},model:{value:e.destination_account,callback:function(n){t.$set(e,"destination_account",n)},expression:"transaction.destination_account"}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12"},[n("TransactionAmount",{attrs:{index:r,errors:e.errors.amount}})],1),t._v(" "),n("div",{staticClass:"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block"},[n("TransactionForeignCurrency",{attrs:{index:r}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionForeignAmount",{attrs:{index:r,errors:e.errors.foreign_amount}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionDate",{attrs:{index:r,errors:e.errors.date}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2"},[n("TransactionCustomDates",{attrs:{index:r,"enabled-dates":t.customDateFields,errors:e.errors.custom_dates}})],1)])])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.transaction_journal_meta"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionBudget",{attrs:{index:r,errors:e.errors.budget},model:{value:e.budget_id,callback:function(n){t.$set(e,"budget_id",n)},expression:"transaction.budget_id"}}),t._v(" "),n("TransactionCategory",{attrs:{index:r,errors:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}})],1),t._v(" "),n("div",{staticClass:"col"},[n("TransactionBill",{attrs:{index:r,errors:e.errors.bill},model:{value:e.bill_id,callback:function(n){t.$set(e,"bill_id",n)},expression:"transaction.bill_id"}}),t._v(" "),n("TransactionTags",{attrs:{index:r,errors:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("TransactionPiggyBank",{attrs:{index:r,errors:e.errors.piggy_bank},model:{value:e.piggy_bank_id,callback:function(n){t.$set(e,"piggy_bank_id",n)},expression:"transaction.piggy_bank_id"}})],1)])])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.transaction_journal_meta"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionInternalReference",{attrs:{index:r,errors:e.errors.internal_reference},model:{value:e.internal_reference,callback:function(n){t.$set(e,"internal_reference",n)},expression:"transaction.internal_reference"}}),t._v(" "),n("TransactionExternalUrl",{attrs:{index:r,errors:e.errors.external_url},model:{value:e.external_url,callback:function(n){t.$set(e,"external_url",n)},expression:"transaction.external_url"}}),t._v(" "),n("TransactionNotes",{attrs:{index:r,errors:e.errors.notes},model:{value:e.notes,callback:function(n){t.$set(e,"notes",n)},expression:"transaction.notes"}})],1),t._v(" "),n("div",{staticClass:"col"},[n("TransactionAttachments",{ref:"attachments",refInFor:!0,attrs:{index:r,transaction_journal_id:e.transaction_journal_id,submitted_transaction:t.submittedTransaction},on:{"uploaded-attachments":function(e){return t.uploadedAttachment(e)}},model:{value:e.attachments,callback:function(n){t.$set(e,"attachments",n)},expression:"transaction.attachments"}}),t._v(" "),n("TransactionLinks",{attrs:{index:r},model:{value:e.links,callback:function(n){t.$set(e,"links",n)},expression:"transaction.links"}})],1)])])])])])])})),0),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t.transactions.length>1?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionGroupTitle",{attrs:{errors:this.groupTitleErrors},model:{value:this.groupTitle,callback:function(e){t.$set(this,"groupTitle",e)},expression:"this.groupTitle"}})],1)])])]):t._e()]),t._v(" "),n("div",{staticClass:"col"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n  \n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary float-left",on:{click:t.addTransaction}},[n("i",{staticClass:"far fa-clone"}),t._v(" "+t._s(t.$t("firefly.add_another_split"))+"\n ")]),t._v(" "),n("button",{staticClass:"btn btn-success float-right",attrs:{disabled:t.isSubmitting&&!t.submitted},on:{click:t.submitTransaction}},[t.isSubmitting?t._e():n("span",[n("i",{staticClass:"far fa-save"}),t._v(" "+t._s(t.$t("firefly.store_transaction")))]),t._v(" "),t.isSubmitting&&!t.submitted?n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e()])])])])])])])])])])}),[],!1,null,"3955ec91",null).exports,Ie=n(3),Le=n.n(Ie);n(17),Le.a.config.productionTip=!1;var Me=n(19),Ne={};new Le.a({i18n:Me,store:r.a,render:function(t){return t(Fe,{props:Ne})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_create")}},[[295,0,1]]]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{226:function(t,e,n){var r=n(404);"string"==typeof r&&(r=[[t.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(25)(r,a);r.locals&&(t.exports=r.locals)},295:function(t,e,n){t.exports=n(408)},403:function(t,e,n){"use strict";n(226)},404:function(t,e,n){(t.exports=n(24)(!1)).push([t.i,".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}",""])},408:function(t,e,n){"use strict";n.r(e);var r=n(23),a=n(2),s=n(11),i=n(10);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=Object(a.b)("transactions/create"),d=(u.mapState,u.mapGetters),p=(u.mapActions,u.mapMutations),f={props:["index","value","errors"],components:{VueTypeaheadBootstrap:s.a},name:"TransactionDescription",data:function(){return{descriptions:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},methods:c(c({},p(["updateField"])),{},{clearDescription:function(){this.value=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)}),watch:{value:function(t){this.updateField({field:"description",index:this.index,value:t})}},computed:c({},d(["transactionType","transactions"]))},h=n(1),v=Object(h.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("vue-typeahead-bootstrap",{attrs:{inputName:"description[]",data:t.descriptions,placeholder:t.$t("firefly.description"),showOnFocus:!0,autofocus:"",inputClass:t.errors.length>0?"is-invalid":"",minMatchingChars:3,serializer:function(t){return t.description}},on:{input:t.lookupDescription},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,null,null).exports;function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=Object(a.b)("transactions/create"),y=(g.mapState,g.mapGetters),O=(g.mapActions,{props:["index","errors"],name:"TransactionDate",methods:b({},(0,g.mapMutations)(["updateField","setDate"])),computed:b(b({},y(["transactionType","date","transactions"])),{},{localDate:{get:function(){return this.date instanceof Date&&!isNaN(this.date)?this.date.toISOString().split("T")[0]:""},set:function(t){var e=new Date(t),n=new Date(this.date.getTime());n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),this.setDate({date:n})}},localTime:{get:function(){return this.date instanceof Date&&!isNaN(this.date)?("0"+this.date.getHours()).slice(-2)+":"+("0"+this.date.getMinutes()).slice(-2)+":"+("0"+this.date.getSeconds()).slice(-2):""},set:function(t){var e=new Date(this.date.getTime()),n=t.split(":");e.setHours(parseInt(n[0])),e.setMinutes(parseInt(n[1])),e.setSeconds(parseInt(n[2])),this.setDate({date:e})}}})}),x=Object(h.a)(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.date_and_time"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.localDate,expression:"localDate"}],ref:"date",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"date",title:t.$t("firefly.date"),disabled:t.index>0,autocomplete:"off",name:"date[]",placeholder:t.localDate},domProps:{value:t.localDate},on:{input:function(e){e.target.composing||(t.localDate=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.localTime,expression:"localTime"}],ref:"time",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"time",title:t.$t("firefly.time"),disabled:t.index>0,autocomplete:"off",name:"time[]",placeholder:t.localTime},domProps:{value:t.localTime},on:{input:function(e){e.target.composing||(t.localTime=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=Object(a.b)("transactions/create"),P=(T.mapState,T.mapGetters),k=(T.mapActions,{props:["index","value","errors"],name:"TransactionBudget",data:function(){return{budgetList:[]}},created:function(){this.collectData()},methods:j(j({},(0,T.mapMutations)(["updateField"])),{},{collectData:function(){this.budgetList.push({id:0,name:this.$t("firefly.no_budget")}),this.getBudgets()},getBudgets:function(){var t=this;axios.get("./api/v1/budgets").then((function(e){t.parseBudgets(e.data)}))},parseBudgets:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e];this.budgetList.push({id:parseInt(n.id),name:n.attributes.name})}}}),watch:{value:function(t){this.updateField({field:"budget_id",index:this.index,value:t})}},computed:j({},P(["transactionType","transactions"]))}),$=Object(h.a)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"budget",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.budget"),autocomplete:"off",name:"budget_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.budgetList,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=Object(a.b)("transactions/create"),F=(E.mapState,E.mapGetters),I=E.mapActions,L=E.mapMutations,M={name:"TransactionAccount",components:{VueTypeaheadBootstrap:s.a},props:["index","direction","value","errors"],data:function(){return{query:"",accounts:[],accountTypes:[],initialSet:[],selectedAccount:{}}},created:function(){this.createInitialSet()},methods:S(S(S({},L(["updateField","setDestinationAllowedTypes","setSourceAllowedTypes"])),I(["calcTransactionType"])),{},{getACURL:function(t,e){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/accounts?types="+t.join(",")+"&query="+e},clearAccount:function(){this.accounts=this.initialSet,this.value={name:""}},lookupAccount:Object(i.debounce)((function(){var t=this;0===this.accountTypes.length&&(this.accountTypes="source"===this.direction?this.sourceAllowedTypes:this.destinationAllowedTypes),axios.get(this.getACURL(this.accountTypes,this.value.name)).then((function(e){t.accounts=e.data}))}),300),createInitialSet:function(){var t=this,e=this.sourceAllowedTypes;"destination"===this.direction&&(e=this.destinationAllowedTypes),axios.get(this.getACURL(e,"")).then((function(e){t.accounts=e.data,t.initialSet=e.data}))}}),watch:{selectedAccount:function(t){this.value=t,this.value.name=this.value.name_with_balance},value:function(t){this.updateField({field:this.accountKey,index:this.index,value:t});var e=[],n=t.type?t.type:"no_type";void 0!==this.allowedOpposingTypes[this.direction]&&void 0!==this.allowedOpposingTypes[this.direction][n]&&(e=this.allowedOpposingTypes[this.direction][n]),"source"===this.direction&&this.setDestinationAllowedTypes(e),"destination"===this.direction&&this.setSourceAllowedTypes(e),this.calcTransactionType()}},computed:S(S({},F(["transactionType","transactions","defaultTransaction","sourceAllowedTypes","destinationAllowedTypes","allowedOpposingTypes"])),{},{accountKey:{get:function(){return"source"===this.direction?"source_account":"destination_account"}}})},N=Object(h.a)(M,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly."+this.direction+"_account"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{data:t.accounts,showOnFocus:!0,inputClass:t.errors.length>0?"is-invalid":"",inputName:t.direction+"[]",serializer:function(t){return t.name_with_balance},minMatchingChars:3,placeholder:t.$t("firefly."+this.direction+"_account")},on:{input:t.lookupAccount,hit:function(e){t.selectedAccount=e}},model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearAccount}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,"528f81f4",null).exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U=Object(a.b)("transactions/create"),V=(U.mapState,U.mapGetters),q=(U.mapActions,{name:"SwitchAccount",props:["index"],methods:B(B({},(0,U.mapMutations)(["updateField"])),{},{switchAccounts:function(){var t=this.transactions[this.index].source_account,e=this.transactions[this.index].destination_account;this.updateField({field:"source_account",index:this.index,value:e}),this.updateField({field:"destination_account",index:this.index,value:t})}}),computed:B({},V(["transactions","transactionType"]))}),z=Object(h.a)(q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},["any"!==this.transactionType?n("span",{staticClass:"text-muted"},[t._v("\n "+t._s(t.$t("firefly."+this.transactionType))+"\n ")]):t._e(),t._v(" "),"any"===this.transactionType?n("span",{staticClass:"text-muted"},[t._v(" ")]):t._e()]),t._v(" "),n("div",{staticClass:"btn-group d-flex"},[n("button",{staticClass:"btn btn-light",on:{click:t.switchAccounts}},[t._v("↔")])])])}),[],!1,null,"7fc33f88",null).exports;function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){W(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y=Object(a.b)("transactions/create"),K=(Y.mapState,Y.mapGetters),Q=(Y.mapActions,{name:"TransactionAmount",props:["index","errors"],data:function(){return{currencySymbol:""}},watch:{transactionType:function(t){switch(t){case"Transfer":case"Withdrawal":return this.currencyId=this.transactions[this.index].source_account.currency_id,void(this.currencySymbol=this.transactions[this.index].source_account.currency_symbol);case"Deposit":return this.currencyId=this.transactions[this.index].destination_account.currency_id,void(this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol)}},destinationAllowedTypes:function(t){void 0!==this.transactions[this.index].source_account.type&&-1!==["Asset account","Loan","Debt","Mortgage"].indexOf(this.transactions[this.index].source_account.type)&&(this.currencyId=this.transactions[this.index].source_account.currency_id,this.currencySymbol=this.transactions[this.index].source_account.currency_symbol)},sourceAllowedTypes:function(t){void 0!==this.transactions[this.index].destination_account.type&&"Transfer"!==this.transactionType&&-1!==["Asset account","Loan","Debt","Mortgage"].indexOf(this.transactions[this.index].destination_account.type)&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol)}},created:function(){this.updateCurrency()},methods:H(H({},(0,Y.mapMutations)(["updateField"])),{},{updateCurrency:function(){0===this.currencyId&&(this.currencySymbol=this.currencyPreference.symbol,this.currencyId=this.currencyPreference.id)}}),computed:H(H({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},K(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{amount:{get:function(){return this.transactions[this.index].amount},set:function(t){this.updateField({field:"amount",index:this.index,value:t})}},currencyId:{get:function(){return this.transactions[this.index].currency_id},set:function(t){this.updateField({field:"currency_id",index:this.index,value:t})}},selectedTransactionType:{get:function(){return this.transactionType},set:function(t){}}})}),X=Object(h.a)(Q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs"},[t._v(t._s(t.$t("firefly.amount")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("div",{staticClass:"input-group-prepend"},[n("div",{staticClass:"input-group-text"},[t._v(t._s(t.currencySymbol))])]),t._v(" "),n("input",{attrs:{type:"hidden",name:"currency_id[]"},domProps:{value:t.currencyId}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.amount"),autocomplete:"off",name:"amount[]",type:"number",placeholder:t.$t("firefly.amount")},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,"4003e1ea",null).exports;function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nt=Object(a.b)("transactions/create"),rt=(nt.mapState,nt.mapGetters),at=(nt.mapActions,{name:"TransactionForeignAmount",props:["index","errors"],data:function(){return{currencySymbol:"",allCurrencies:[],selectableCurrencies:[]}},watch:{transactionType:function(t){},destinationAllowedTypes:function(t){},sourceAllowedTypes:function(t){}},created:function(){},methods:tt({},(0,nt.mapMutations)(["updateField"])),computed:tt(tt({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},rt(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{amount:{get:function(){return this.transactions[this.index].foreign_amount},set:function(t){this.updateField({field:"foreign_amount",index:this.index,value:t})}},currencyId:{get:function(){return this.transactions[this.index].foreign_currency_id},set:function(t){this.updateField({field:"foreign_currency_id",index:this.index,value:t})}},selectedTransactionType:{get:function(){return this.transactionType},set:function(t){}}})}),st=Object(h.a)(at,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"hidden",name:"foreign_currency_id[]"},domProps:{value:t.currencyId}}),t._v(" "),n("div",{staticClass:"text-xs"},[t._v(t._s(t.$t("form.foreign_amount")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("form.foreign_amount"),autocomplete:"off",disabled:0===t.currencyId,name:"foreign_amount[]",type:"number",placeholder:t.$t("form.foreign_amount")},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}})]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,"39931bed",null).exports;function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lt=Object(a.b)("transactions/create"),ut=(lt.mapState,lt.mapGetters),dt=(lt.mapActions,{name:"TransactionForeignCurrency",props:["index"],data:function(){return{allCurrencies:[],selectableCurrencies:[],lockedCurrency:0,selectIsVisible:!0}},watch:{transactionType:function(t){this.lockedCurrency=0,"Transfer"===t&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()},destinationAllowedTypes:function(t){this.lockedCurrency=0,"Transfer"===this.transactionType&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()},sourceAllowedTypes:function(t){this.lockedCurrency=0,"Transfer"===this.transactionType&&(this.currencyId=this.transactions[this.index].destination_account.currency_id,this.currencySymbol=this.transactions[this.index].destination_account.currency_symbol,this.lockedCurrency=this.currencyId),this.filterCurrencies(),this.checkVisibility()}},created:function(){this.getAllCurrencies()},methods:ot(ot({},(0,lt.mapMutations)(["updateField"])),{},{checkVisibility:function(){var t=this.transactions[this.index].source_account.currency_id,e=this.transactions[this.index].destination_account.currency_id;this.selectIsVisible=!0,t===e&&0!==t&&"Transfer"===this.transactionType&&(this.selectIsVisible=!1,this.currencyId=0)},getAllCurrencies:function(){var t=this;axios.get("./api/v1/autocomplete/currencies").then((function(e){t.allCurrencies=e.data,t.filterCurrencies()}))},filterCurrencies:function(){if(0===this.lockedCurrency){for(var t in this.selectableCurrencies=[{id:0,name:this.$t("firefly.no_currency")}],this.allCurrencies)if(this.allCurrencies.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var e=this.allCurrencies[t];this.transactions[this.index].currency_id!==e.id&&this.selectableCurrencies.push(e),this.transactions[this.index].currency_id===e.id&&this.currencyId===e.id&&(this.currencyId=0)}}else for(var n in this.allCurrencies)if(this.allCurrencies.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.allCurrencies[n];r.id===this.lockedCurrency&&(this.selectableCurrencies=[r],this.currencyId=r.id)}}}),computed:ot(ot({currencyPreference:{get:function(){return this.$store.state.currencyPreference}}},ut(["transactionType","transactions","destinationAllowedTypes","sourceAllowedTypes"])),{},{currencyId:{get:function(){return this.transactions[this.index].foreign_currency_id},set:function(t){this.updateField({field:"foreign_currency_id",index:this.index,value:t})}},normalCurrencyId:{get:function(){return this.transactions[this.index].currency_id}}})}),pt=Object(h.a)(dt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.selectIsVisible?n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs"},[t._v(" ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currencyId,expression:"currencyId"}],staticClass:"form-control",attrs:{name:"foreign_currency_id[]"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currencyId=e.target.multiple?n:n[0]}}},t._l(t.selectableCurrencies,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)])]):t._e()}),[],!1,null,"7008e22e",null).exports;function ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(n),!0).forEach((function(e){vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=Object(a.b)("transactions/create"),bt=(mt.mapState,mt.mapGetters),_t=(mt.mapActions,mt.mapMutations),gt={name:"TransactionCustomDates",props:["enabledDates","index","errors"],methods:ht(ht(ht({},bt(["transactions"])),_t(["updateField"])),{},{getFieldValue:function(t){var e;return null!==(e=this.transactions()[parseInt(this.index)][t])&&void 0!==e?e:""},setFieldValue:function(t,e){this.updateField({index:this.index,field:e,value:t.target.value})}})},yt=Object(h.a)(gt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.enabledDates,(function(e,r){return n("div",{staticClass:"form-group"},[e?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("form."+r))+"\n ")]):t._e(),t._v(" "),e?n("div",{staticClass:"input-group"},[n("input",{ref:r,refInFor:!0,staticClass:"form-control",attrs:{type:"date",title:t.$t("form."+r),autocomplete:"off",name:r+"[]",placeholder:t.$t("form."+r)},domProps:{value:t.getFieldValue(r)},on:{change:function(e){return t.setFieldValue(e,r)},submit:function(t){t.preventDefault()}}})]):t._e()])})),0)}),[],!1,null,"4d30715b",null).exports;function Ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){wt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jt=Object(a.b)("transactions/create"),Ct=(jt.mapState,jt.mapGetters),Tt=(jt.mapActions,jt.mapMutations),Pt={props:["value","index","errors"],components:{VueTypeaheadBootstrap:s.a},name:"TransactionCategory",data:function(){return{categories:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.categories=e.data,t.initialSet=e.data}))},methods:xt(xt({},Tt(["updateField"])),{},{clearCategory:function(){this.value=null},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/categories?query="+t},lookupCategory:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.categories=e.data}))}),300)}),watch:{value:function(t){this.updateField({field:"category",index:this.index,value:t})}},computed:xt(xt({},Ct(["transactionType","transactions"])),{},{selectedCategory:{get:function(){return this.categories[this.index].name},set:function(t){this.value=t.name}}})},kt=Object(h.a)(Pt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{inputName:"category[]",data:t.categories,placeholder:t.$t("firefly.category"),showOnFocus:!0,inputClass:t.errors.length>0?"is-invalid":"",minMatchingChars:3,serializer:function(t){return t.name}},on:{hit:function(e){t.selectedCategory=e},input:t.lookupCategory},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,null,null).exports;function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$t(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var At=Object(a.b)("transactions/create"),Et=(At.mapState,At.mapGetters),Ft=(At.mapActions,{props:["value","index","errors"],name:"TransactionBill",data:function(){return{billList:[]}},created:function(){this.collectData()},methods:Dt(Dt({},(0,At.mapMutations)(["updateField"])),{},{collectData:function(){this.billList.push({id:0,name:this.$t("firefly.no_bill")}),this.getBills()},getBills:function(){var t=this;axios.get("./api/v1/bills").then((function(e){t.parseBills(e.data)}))},parseBills:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e];this.billList.push({id:parseInt(n.id),name:n.attributes.name})}}}),watch:{value:function(t){this.updateField({field:"bill_id",index:this.index,value:t})}},computed:Dt({},Et(["transactionType","transactions"]))}),It=Object(h.a)(Ft,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.bill"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"bill",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.bill"),autocomplete:"off",name:"bill_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.billList,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports,Lt=n(234),Mt=n.n(Lt),Nt=n(48),Rt=n.n(Nt);function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vt=Object(a.b)("transactions/create"),qt=(Vt.mapState,Vt.mapGetters,Vt.mapActions,Vt.mapMutations),zt={name:"TransactionTags",components:{VueTagsInput:Mt.a},props:["value","index","errors"],data:function(){return{autocompleteItems:[],debounce:null,tags:[],currentTag:"",updateTags:!0}},watch:{currentTag:"initItems",value:function(t){this.updateField({field:"tags",index:this.index,value:t}),this.updateTags=!1,this.tags=t},tags:function(t){if(this.updateTags){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({text:t[n].text});this.value=e}this.updateTags=!0}},methods:Gt(Gt({},qt(["updateField"])),{},{initItems:function(){var t=this;if(!(this.currentTag.length<2)){var e=document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/tags?query=".concat(this.currentTag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){Rt.a.get(e).then((function(e){t.autocompleteItems=e.data.map((function(t){return{text:t.tag}}))})).catch((function(){return console.warn("Oh. Something went wrong loading tags.")}))}),300)}}})},Jt=(n(403),Object(h.a)(zt,(function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n "+e._s(e.$t("firefly.tags"))+"\n ")]),e._v(" "),r("div",{staticClass:"input-group"},[r("vue-tags-input",{attrs:{"add-only-from-autocomplete":!1,"autocomplete-items":e.autocompleteItems,tags:e.tags,title:e.$t("firefly.tags"),placeholder:e.$t("firefly.tags")},on:{"tags-changed":function(e){return t.tags=e}},model:{value:e.currentTag,callback:function(t){e.currentTag=t},expression:"currentTag"}})],1),e._v(" "),e.errors.length>0?r("span",e._l(e.errors,(function(t){return r("span",{staticClass:"text-danger small"},[e._v(e._s(t)),r("br")])})),0):e._e()])}),[],!1,null,null,null).exports);function Ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){Yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kt=Object(a.b)("transactions/create"),Qt=(Kt.mapState,Kt.mapGetters),Xt=(Kt.mapActions,{props:["index","value","errors"],name:"TransactionPiggyBank",data:function(){return{piggyList:[]}},created:function(){this.collectData()},methods:Wt(Wt({},(0,Kt.mapMutations)(["updateField"])),{},{collectData:function(){this.piggyList.push({id:0,name_with_balance:this.$t("firefly.no_piggy_bank")}),this.getPiggies()},getPiggies:function(){var t=this;axios.get("./api/v1/autocomplete/piggy-banks-with-balance").then((function(e){t.parsePiggies(e.data)}))},parsePiggies:function(t){for(var e in t)if(t.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t[e];this.piggyList.push({id:parseInt(n.id),name_with_balance:n.name_with_balance})}}}),watch:{value:function(t){this.updateField({field:"piggy_bank_id",index:this.index,value:t})}},computed:Wt({},Qt(["transactionType","transactions"]))}),Zt=Object(h.a)(Xt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.piggy_bank"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"piggy_bank_id",class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{title:t.$t("firefly.piggy_bank"),autocomplete:"off",name:"piggy_bank_id[]"},on:{submit:function(t){t.preventDefault()},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?n:n[0]}}},t._l(this.piggyList,(function(e){return n("option",{attrs:{label:e.name_with_balance},domProps:{value:e.id}},[t._v(t._s(e.name_with_balance))])})),0)]),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()])}),[],!1,null,null,null).exports;function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ne=Object(a.b)("transactions/create"),re=(ne.mapState,ne.mapGetters,ne.mapActions,{props:["index","value","errors"],name:"TransactionInternalReference",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,ne.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"internal_reference",index:this.index,value:t})}}}),ae=Object(h.a)(re,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.internal_reference"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"text",name:"internal_reference[]",placeholder:t.$t("firefly.internal_reference")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"ce9f5a82",null).exports;function se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oe=Object(a.b)("transactions/create"),ce=(oe.mapState,oe.mapGetters,oe.mapActions,{props:["index","value","errors"],name:"TransactionExternalUrl",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?se(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,oe.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"external_url",index:this.index,value:t})}}}),le=Object(h.a)(ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.external_url"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{type:"url",name:"external_url[]",placeholder:t.$t("firefly.external_url")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"8b7a9952",null).exports;function ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function de(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pe=Object(a.b)("transactions/create"),fe=(pe.mapState,pe.mapGetters,pe.mapActions,{props:["index","value","errors"],name:"TransactionNotes",methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ue(Object(n),!0).forEach((function(e){de(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,pe.mapMutations)(["updateField"])),watch:{value:function(t){this.updateField({field:"notes",index:this.index,value:t})}}}),he=Object(h.a)(fe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.notes"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{placeholder:t.$t("firefly.notes")},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})])])}),[],!1,null,"5f8039da",null).exports,ve={props:["index","value","errors"],name:"TransactionLinks",data:function(){return{searchResults:[],include:[],locale:"en-US",linkTypes:[],query:"",searching:!1}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.getLinkTypes()},watch:{value:function(t){}},methods:{getTextForLinkType:function(t){var e=t.split("-");for(var n in this.linkTypes)if(this.linkTypes.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.linkTypes[n];if(e[0]===r.id&&e[1]===r.direction)return r.type}return"text for #"+t},selectTransaction:function(t){for(var e in this.searchResults)if(this.searchResults.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.searchResults[e];n.selected&&this.addToSelected(n),n.selected||this.removeFromSelected(n)}},selectLinkType:function(t){for(var e in this.searchResults)if(this.searchResults.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.searchResults[e];this.updateSelected(n.transaction_journal_id,n.link_type_id)}},updateSelected:function(t,e){for(var n in this.value)if(this.value.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=this.value[n];parseInt(r.transaction_journal_id)===t&&(this.value[n].link_type_id=e)}},addToSelected:function(t){void 0===this.value.find((function(e){return e.transaction_journal_id===t.transaction_journal_id}))&&this.value.push(t)},removeFromSelected:function(t){for(var e in this.value){if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)this.value[e].transaction_journal_id===t.transaction_journal_id&&this.value.splice(parseInt(e),1)}},getLinkTypes:function(){var t=this;axios.get("./api/v1/link_types").then((function(e){t.parseLinkTypes(e.data)}))},parseLinkTypes:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=t.data[e],r={id:n.id,type:n.attributes.inward,direction:"inward"},a={id:n.id,type:n.attributes.outward,direction:"outward"};r.type===a.type&&(r.type=r.type+" (←)",a.type=a.type+" (→)"),this.linkTypes.push(r),this.linkTypes.push(a)}},search:function(){var t=this;this.searching=!0,this.searchResults=[];var e="./api/v1/search/transactions?limit=10&query="+this.query;axios.get(e).then((function(e){t.parseSearch(e.data)}))},parseSearch:function(t){for(var e in t.data)if(t.data.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)for(var n in t.data[e].attributes.transactions)if(t.data[e].attributes.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var r=t.data[e].attributes.transactions[n];r.transaction_group_id=parseInt(t.data[e].id),r.selected=this.isJournalSelected(r.transaction_journal_id),r.link_type_id=this.getJournalLinkType(r.transaction_journal_id),r.link_type_text="",this.searchResults.push(r)}this.searching=!1},getJournalLinkType:function(t){for(var e in this.value)if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.value[e];if(n.transaction_journal_id===t)return n.link_type_id}return"1-inward"},isJournalSelected:function(t){for(var e in this.value){if(this.value.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)if(this.value[e].transaction_journal_id===t)return!0}return!1}}},me=Object(h.a)(ve,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.journal_links"))+"\n ")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[0===t.value.length?n("p",[t._m(0)]):t._e(),t._v(" "),t.value.length>0?n("ul",{staticClass:"list-group"},t._l(t.value,(function(e){return n("li",{staticClass:"list-group-item"},[n("em",[t._v(t._s(t.getTextForLinkType(e.link_type_id)))]),t._v(" "),n("a",{attrs:{href:"./transaction/show/"+e.transaction_group_id}},[t._v(t._s(e.description))]),t._v(" "),"withdrawal"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"deposit"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"transfer"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-info"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),t._m(1,!0)])})),0):t._e(),t._v(" "),t.value.length>0?n("div",{staticClass:"form-text"},[t._m(2)]):t._e()])])]),t._v(" "),n("div",{staticClass:"modal",attrs:{tabindex:"-1",id:"linkModal"}},[n("div",{staticClass:"modal-dialog modal-lg"},[n("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"container-fluid"},[t._m(4),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.search(e)}}},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{autocomplete:"off",maxlength:"255",type:"text",name:"search",id:"query",placeholder:"Search query"},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),t._m(5)])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t.searching?n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e(),t._v(" "),t.searchResults.length>0?n("h4",[t._v("Search results")]):t._e(),t._v(" "),t.searchResults.length>0?n("table",{staticClass:"table table-sm"},[t._m(6),t._v(" "),n("tbody",t._l(t.searchResults,(function(e){return n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"result.selected"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:[function(n){var r=e.selected,a=n.target,s=!!a.checked;if(Array.isArray(r)){var i=t._i(r,null);a.checked?i<0&&t.$set(e,"selected",r.concat([null])):i>-1&&t.$set(e,"selected",r.slice(0,i).concat(r.slice(i+1)))}else t.$set(e,"selected",s)},function(e){return t.selectTransaction(e)}]}})]),t._v(" "),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.link_type_id,expression:"result.link_type_id"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"link_type_id",n.target.multiple?r:r[0])},function(e){return t.selectLinkType(e)}]}},t._l(t.linkTypes,(function(e){return n("option",{attrs:{label:e.type},domProps:{value:e.id+"-"+e.direction}},[t._v(t._s(e.type)+"\n ")])})),0)]),t._v(" "),n("td",[n("a",{attrs:{href:"./transactions/show/"+e.transaction_group_id}},[t._v(t._s(e.description))]),t._v(" "),"withdrawal"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-danger"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(-1*parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"deposit"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-success"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),"transfer"===e.type?n("span",[t._v("\n ("),n("span",{staticClass:"text-info"},[t._v(t._s(Intl.NumberFormat(t.locale,{style:"currency",currency:e.currency_code}).format(parseFloat(e.amount))))]),t._v(")\n ")]):t._e(),t._v(" "),n("br"),t._v(" "),n("em",[n("a",{attrs:{href:"./accounts/show/"+e.source_id}},[t._v(t._s(e.source_name))]),t._v("\n →\n "),n("a",{attrs:{href:"./accounts/show/"+e.destination_id}},[t._v(t._s(e.destination_name))])])])])})),0)]):t._e()])])])]),t._v(" "),t._m(7)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-default btn-xs",attrs:{"data-toggle":"modal","data-target":"#linkModal"}},[e("i",{staticClass:"fas fa-plus"}),this._v(" Add transaction link")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"btn-group btn-group-xs float-right"},[e("a",{staticClass:"btn btn-xs btn-default",attrs:{href:"#"}},[e("i",{staticClass:"far fa-edit"})]),this._v(" "),e("a",{staticClass:"btn btn-xs btn-danger",attrs:{href:"#"}},[e("i",{staticClass:"far fa-trash-alt"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-default",attrs:{"data-toggle":"modal","data-target":"#linkModal"}},[e("i",{staticClass:"fas fa-plus"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title"},[this._v("Transaction thing dialog.")]),this._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("p",[this._v("\n Use this form to search for transactions you wish to link to this one. When in doubt, use "),e("code",[this._v("id:*")]),this._v(" where the ID is the number from\n the URL.\n ")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[e("i",{staticClass:"fas fa-search"}),this._v(" Search")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",{staticStyle:{width:"33%"},attrs:{colspan:"2"}},[this._v("Include?")]),this._v(" "),e("th",[this._v("Transaction")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[this._v("Close")])])}],!1,null,null,null).exports,be={name:"TransactionAttachments",props:["transaction_journal_id"],watch:{transaction_journal_id:function(t){0!==t&&this.doUpload()}},methods:{doUpload:function(){var t=this;for(var e in this.$refs.att.files)this.$refs.att.files.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&function(){var n=t.$refs.att.files[e],r=new FileReader,a=t;r.onloadend=function(t){if(t.target.readyState===FileReader.DONE){var e={filename:n.name,attachable_type:"TransactionJournal",attachable_id:a.transaction_journal_id};axios.post("./api/v1/attachments",e).then((function(e){var n="./api/v1/attachments/"+e.data.data.id+"/upload";axios.post(n,new Blob([t.target.result])).then((function(t){a.$emit("uploaded-attachments")}))}))}},r.readAsArrayBuffer(n)}();0===this.$refs.att.files.length&&this.$emit("uploaded-attachments",this.transaction_journal_id)}}},_e=Object(h.a)(be,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[this._v("\n "+this._s(this.$t("firefly.attachments"))+"\n ")]),this._v(" "),e("div",{staticClass:"input-group"},[e("input",{ref:"att",staticClass:"form-control",attrs:{type:"file",multiple:"",name:"attachments[]"}})])])}),[],!1,null,"f8d170e2",null).exports;function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(n),!0).forEach((function(e){Oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xe=Object(a.b)("transactions/create"),we=(xe.mapState,xe.mapGetters),je=(xe.mapActions,xe.mapMutations),Ce={props:["value","errors"],name:"TransactionGroupTitle",components:{VueTypeaheadBootstrap:s.a},data:function(){return{descriptions:[],initialSet:[]}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},watch:{value:function(t){this.setGroupTitle({groupTitle:t})}},methods:ye(ye(ye({},je(["setGroupTitle"])),we(["groupTitle"])),{},{clearDescription:function(){this.setGroupTitle({groupTitle:""}),this.value=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(i.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)})},Te=Object(h.a)(Ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("vue-typeahead-bootstrap",{attrs:{inputName:"group_title",data:t.descriptions,placeholder:t.$t("firefly.split_transaction_title"),showOnFocus:!0,minMatchingChars:3,serializer:function(t){return t.description},inputClass:t.errors.length>0?"is-invalid":""},on:{input:t.lookupDescription},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2),t._v(" "),t.errors.length>0?n("span",t._l(t.errors,(function(e){return n("span",{staticClass:"text-danger small"},[t._v(t._s(e)),n("br")])})),0):t._e()],1)}),[],!1,null,"a36ef926",null).exports;function Pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pe(Object(n),!0).forEach((function(e){$e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=Object(a.b)("transactions/create"),Se=(De.mapState,De.mapGetters),Ae=(De.mapActions,De.mapMutations),Ee={name:"Create",components:{TransactionAttachments:_e,TransactionNotes:he,TransactionExternalUrl:le,TransactionGroupTitle:Te,TransactionInternalReference:ae,TransactionPiggyBank:Zt,TransactionTags:Jt,TransactionLinks:me,TransactionBill:It,TransactionCategory:kt,TransactionCustomDates:yt,TransactionForeignCurrency:pt,TransactionForeignAmount:st,TransactionAmount:X,SwitchAccount:z,TransactionAccount:N,TransactionBudget:$,TransactionDescription:v,TransactionDate:x},created:function(){this.storeAllowedOpposingTypes(),this.storeAccountToTransaction(),this.storeCustomDateFields(),this.addTransaction()},data:function(){return{linkSearchResults:[],errorMessage:"",successMessage:"",isSubmitting:!1,isSubmittingTransaction:!1,isSubmittingLinks:!1,isSubmittingAttachments:!1,submitted:!1,submittedTransaction:!1,submittedLinks:!1,submittedAttachments:!1,submittedAttCount:0,groupTitleErrors:[],groupId:0,groupTitle:"",createAnother:!0,resetFormAfter:!0}},computed:ke({},Se(["transactionType","transactions","customDateFields","date","groupTitle"])),watch:{submittedTransaction:function(){this.finalizeSubmit()},submittedLinks:function(){this.finalizeSubmit()},submittedAttachments:function(){this.finalizeSubmit()}},methods:ke(ke({},Ae(["addTransaction","deleteTransaction","setAllowedOpposingTypes","setAccountToTransaction","setTransactionError","resetErrors","updateField","resetTransactions"])),{},{removeTransaction:function(t){this.$store.commit("transactions/create/deleteTransaction",{index:t})},storeCustomDateFields:function(){var t=this;axios.get("./api/v1/preferences/transaction_journal_optional_fields").then((function(e){var n=e.data.data.attributes.data,r=["interest_date","book_date","process_date","due_date","payment_date","invoice_date"],a={interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1};for(var s in n)n.hasOwnProperty(s)&&-1!==r.indexOf(s)&&(a[s]=n[s]);t.$store.commit("transactions/create/setCustomDateFields",a)}))},finalizeSubmit:function(){var t=this;if(this.submittedTransaction&&this.submittedAttachments&&this.submittedLinks&&!1===this.submitted){if(this.submitted=!0,this.isSubmitting=!1,!1===this.createAnother)return void(window.location.href=window.previousURL+"?transaction_group_id="+this.groupId+"&message=created");this.successMessage=this.$t("firefly.transaction_stored_link",{ID:this.groupId,title:this.groupTitle}),this.resetFormAfter&&(this.submitted=!1,this.resetTransactions(),setTimeout((function(){return t.addTransaction()}),50))}},storeAllowedOpposingTypes:function(){this.setAllowedOpposingTypes(window.allowedOpposingTypes)},storeAccountToTransaction:function(){this.setAccountToTransaction(window.accountToTransaction)},submitTransaction:function(){var t=this;this.isSubmitting=!0,this.isSubmittingTransaction=!0,this.isSubmittingLinks=!0,this.isSubmittingAttachments=!0;var e=this.convertData();axios.post("./api/v1/transactions",e).then((function(n){t.isSubmittingTransaction=!1,t.submittedTransaction=!0,t.submitTransactionLinks(e,n),t.submitAttachments(e,n),t.groupId=parseInt(n.data.data.id),t.groupTitle=null===n.data.data.attributes.group_title?n.data.data.attributes.transactions[0].description:n.data.data.attributes.group_title})).catch((function(e){t.parseErrors(e.response.data)}))},submitAttachments:function(t,e){this.isSubmittingAttachments=!0;var n=e.data.data.attributes.transactions;for(var r in t.transactions)t.transactions.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294&&n.hasOwnProperty(r)&&this.updateField({index:r,field:"transaction_journal_id",value:n[0].transaction_journal_id})},uploadedAttachment:function(){this.submittedAttCount++,this.submittedAttCount===this.transactions.length&&(this.submittedAttachments=!0,this.isSubmittingAttachments=!1)},submitTransactionLinks:function(t,e){this.isSubmittingLinks=!0,this.submittedLinks=!1;var n=[],r=e.data.data.attributes.transactions,a=0;for(var s in t.transactions)if(t.transactions.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var i=t.transactions[s];if(r.hasOwnProperty(s)){var o=r[s];for(var c in i.links)if(i.links.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294){var l=i.links[c];a++,0===l.outward_id&&(l.outward_id=o.transaction_journal_id),0===l.inward_id&&(l.inward_id=o.transaction_journal_id),n.push(axios.post("./api/v1/transaction_links",l).then((function(t){})))}}}0===a&&(this.isSubmittingLinks=!1,this.submittedLinks=!0),Promise.all(n).then((function(){this.isSubmittingLinks=!1,this.submittedLinks=!0}))},parseErrors:function(t){for(var e in this.transactions)this.resetErrors({index:e});var n,r;for(var a in this.successMessage=null,this.errorMessage=this.$t("firefly.errors_submission"),void 0===t.errors&&(this.successMessage=null,this.errorMessage=t.message),t.errors)if(t.errors.hasOwnProperty(a)){if("group_title"===a){this.groupTitleErrors=t.errors[a];continue}if("group_title"!==a){n=parseInt(a.split(".")[1]);var s=void 0;switch(r=a.split(".")[2]){case"amount":case"description":case"date":case"tags":s={index:n,field:r,errors:t.errors[a]},this.setTransactionError(s);break;case"budget_id":s={index:n,field:"budget",errors:t.errors[a]},this.setTransactionError(s);break;case"bill_id":s={index:n,field:"bill",errors:t.errors[a]},this.setTransactionError(s);break;case"piggy_bank_id":s={index:n,field:"piggy_bank",errors:t.errors[a]},this.setTransactionError(s);break;case"category_name":s={index:n,field:"category",errors:t.errors[a]},this.setTransactionError(s);break;case"source_name":case"source_id":s={index:n,field:"source",errors:t.errors[a]},this.setTransactionError(s);break;case"destination_name":case"destination_id":s={index:n,field:"destination",errors:t.errors[a]},this.setTransactionError(s);break;case"foreign_amount":case"foreign_currency":s={index:n,field:"foreign_amount",errors:t.errors[a]},this.setTransactionError(s)}}this.transactions[n]}this.isSubmittingTransaction=!1,this.submittedTransaction=!0,this.isSubmitting=!1},convertData:function(){var t={transactions:[]};for(var e in this.groupTitle.length>0&&(t.group_title=this.groupTitle),this.transactions)this.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&t.transactions.push(this.convertSplit(e,this.transactions[e]));return t.transactions.length>1&&(t.group_title=t.transactions[0].description),t},convertSplit:function(t,e){var n,r,a,s,i="invalid";this.date instanceof Date&&!isNaN(this.date)&&(i=this.toW3CString(this.date));var o,c,l,u={description:e.description,date:i,type:this.transactionType,source_id:null!==(n=e.source_account.id)&&void 0!==n?n:null,source_name:null!==(r=e.source_account.name)&&void 0!==r?r:null,destination_id:null!==(a=e.destination_account.id)&&void 0!==a?a:null,destination_name:null!==(s=e.destination_account.name)&&void 0!==s?s:null,currency_id:e.currency_id,amount:e.amount,budget_id:e.budget_id,category_name:e.category,tags:e.tags,interest_date:e.interest_date,book_date:e.book_date,process_date:e.process_date,due_date:e.due_date,payment_date:e.payment_date,invoice_date:e.invoice_date,internal_reference:e.internal_reference,external_url:e.external_url,notes:e.notes,external_id:e.external_id,order:0,reconciled:!1};0!==e.piggy_bank_id&&(u.piggy_bank_id=e.piggy_bank_id),0!==e.bill_id&&(u.bill_id=e.bill_id),0!==e.foreign_currency_id&&(u.foreign_currency_id=e.foreign_currency_id),""!==e.foreign_amount&&(u.foreign_amount=e.foreign_amount),o=this.transactionType?this.transactionType.toLowerCase():"any",c=this.transactions[0].source_account.type,l=this.transactions[0].destination_account.type,"any"===o&&["asset","Asset account","Loan","Debt","Mortgage"].includes(c)&&(o="withdrawal"),"any"===o&&["asset","Asset account","Loan","Debt","Mortgage"].includes(l)&&(o="deposit"),u.type=o;var d=[];for(var p in e.links)if(e.links.hasOwnProperty(p)&&/^0$|^[1-9]\d*$/.test(p)&&p<=4294967294){var f=e.links[p],h=f.link_type_id.split("-"),v="outward"===h[1]?0:parseInt(f.transaction_journal_id),m="inward"===h[1]?0:parseInt(f.transaction_journal_id),b={link_type_id:parseInt(h[0]),inward_id:v,outward_id:m};d.push(b)}return u.links=d,u},toW3CString:function(t){var e=t.getFullYear(),n=t.getMonth();++n<10&&(n="0"+n);var r=t.getDate();r<10&&(r="0"+r);var a=t.getHours();a<10&&(a="0"+a);var s=t.getMinutes();s<10&&(s="0"+s);var i=t.getSeconds();i<10&&(i="0"+i);var o=-t.getTimezoneOffset(),c=Math.abs(Math.floor(o/60)),l=Math.abs(o)-60*c;c<10&&(c="0"+c),l<10&&(l="0"+l);var u="+";return o<0&&(u="-"),e+"-"+n+"-"+r+"T"+a+":"+s+":"+i+u+c+":"+l}})},Fe=Object(h.a)(Ee,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.errorMessage.length>0?n("div",{staticClass:"alert alert-danger alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",[n("i",{staticClass:"icon fas fa-ban"}),t._v(" "+t._s(t.$t("firefly.flash_error")))]),t._v("\n "+t._s(t.errorMessage)+"\n ")]):t._e(),t._v(" "),t.successMessage.length>0?n("div",{staticClass:"alert alert-success alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",[n("i",{staticClass:"icon fas fa-thumbs-up"}),t._v(" "+t._s(t.$t("firefly.flash_success")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.successMessage)}})]):t._e(),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("ul",{staticClass:"nav nav-pills ml-auto p-2"},t._l(this.transactions,(function(e,r){return n("li",{staticClass:"nav-item"},[n("a",{class:"nav-link"+(0===r?" active":""),attrs:{href:"#split_"+r,"data-toggle":"tab"}},[""!==e.description?n("span",[t._v(t._s(e.description))]):t._e(),t._v(" "),""===e.description?n("span",[t._v("Split "+t._s(r+1))]):t._e()])])})),0)])]):t._e(),t._v(" "),n("div",{staticClass:"tab-content"},t._l(this.transactions,(function(e,r){return n("div",{class:"tab-pane"+(0===r?" active":""),attrs:{id:"split_"+r}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.basic_journal_information"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionDescription",{attrs:{index:r,errors:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12"},[n("TransactionAccount",{attrs:{direction:"source",index:r,errors:e.errors.source},model:{value:e.source_account,callback:function(n){t.$set(e,"source_account",n)},expression:"transaction.source_account"}})],1),t._v(" "),n("div",{staticClass:"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block"},[n("SwitchAccount",{attrs:{index:r}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAccount",{attrs:{direction:"destination",index:r,errors:e.errors.destination},model:{value:e.destination_account,callback:function(n){t.$set(e,"destination_account",n)},expression:"transaction.destination_account"}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12"},[n("TransactionAmount",{attrs:{index:r,errors:e.errors.amount}})],1),t._v(" "),n("div",{staticClass:"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block"},[n("TransactionForeignCurrency",{attrs:{index:r}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionForeignAmount",{attrs:{index:r,errors:e.errors.foreign_amount}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionDate",{attrs:{index:r,errors:e.errors.date}})],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2"},[n("TransactionCustomDates",{attrs:{index:r,"enabled-dates":t.customDateFields,errors:e.errors.custom_dates}})],1)])])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.transaction_journal_meta"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionBudget",{attrs:{index:r,errors:e.errors.budget},model:{value:e.budget_id,callback:function(n){t.$set(e,"budget_id",n)},expression:"transaction.budget_id"}}),t._v(" "),n("TransactionCategory",{attrs:{index:r,errors:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}})],1),t._v(" "),n("div",{staticClass:"col"},[n("TransactionBill",{attrs:{index:r,errors:e.errors.bill},model:{value:e.bill_id,callback:function(n){t.$set(e,"bill_id",n)},expression:"transaction.bill_id"}}),t._v(" "),n("TransactionTags",{attrs:{index:r,errors:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("TransactionPiggyBank",{attrs:{index:r,errors:e.errors.piggy_bank},model:{value:e.piggy_bank_id,callback:function(n){t.$set(e,"piggy_bank_id",n)},expression:"transaction.piggy_bank_id"}})],1)])])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-header"},[n("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("firefly.transaction_journal_meta"))+"\n "),t.transactions.length>1?n("span",[t._v("("+t._s(r+1)+" / "+t._s(t.transactions.length)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionInternalReference",{attrs:{index:r,errors:e.errors.internal_reference},model:{value:e.internal_reference,callback:function(n){t.$set(e,"internal_reference",n)},expression:"transaction.internal_reference"}}),t._v(" "),n("TransactionExternalUrl",{attrs:{index:r,errors:e.errors.external_url},model:{value:e.external_url,callback:function(n){t.$set(e,"external_url",n)},expression:"transaction.external_url"}}),t._v(" "),n("TransactionNotes",{attrs:{index:r,errors:e.errors.notes},model:{value:e.notes,callback:function(n){t.$set(e,"notes",n)},expression:"transaction.notes"}})],1),t._v(" "),n("div",{staticClass:"col"},[n("TransactionAttachments",{ref:"attachments",refInFor:!0,attrs:{index:r,transaction_journal_id:e.transaction_journal_id,submitted_transaction:t.submittedTransaction},on:{"uploaded-attachments":function(e){return t.uploadedAttachment(e)}},model:{value:e.attachments,callback:function(n){t.$set(e,"attachments",n)},expression:"transaction.attachments"}}),t._v(" "),n("TransactionLinks",{attrs:{index:r},model:{value:e.links,callback:function(n){t.$set(e,"links",n)},expression:"transaction.links"}})],1)])])])])])])})),0),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t.transactions.length>1?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionGroupTitle",{attrs:{errors:this.groupTitleErrors},model:{value:this.groupTitle,callback:function(e){t.$set(this,"groupTitle",e)},expression:"this.groupTitle"}})],1)])])]):t._e()]),t._v(" "),n("div",{staticClass:"col"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n  \n ")]),t._v(" "),n("button",{staticClass:"btn btn-primary float-left",on:{click:t.addTransaction}},[n("i",{staticClass:"far fa-clone"}),t._v(" "+t._s(t.$t("firefly.add_another_split"))+"\n ")]),t._v(" "),n("button",{staticClass:"btn btn-success float-right",attrs:{disabled:t.isSubmitting&&!t.submitted},on:{click:t.submitTransaction}},[t.isSubmitting?t._e():n("span",[n("i",{staticClass:"far fa-save"}),t._v(" "+t._s(t.$t("firefly.store_transaction")))]),t._v(" "),t.isSubmitting&&!t.submitted?n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})]):t._e()])])])])])])])])])])}),[],!1,null,"04f43d12",null).exports,Ie=n(3),Le=n.n(Ie);n(17),Le.a.config.productionTip=!1;var Me=n(19),Ne={};new Le.a({i18n:Me,store:r.a,render:function(t){return t(Fe,{props:Ne})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_create")}},[[295,0,1]]]);
//# sourceMappingURL=create.js.map
\ No newline at end of file
diff --git a/public/v2/js/transactions/create.js.map b/public/v2/js/transactions/create.js.map
index d8dd48a5c5..df59cd3dce 100755
--- a/public/v2/js/transactions/create.js.map
+++ b/public/v2/js/transactions/create.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///./src/components/transactions/TransactionTags.vue?f6be","webpack:///./src/components/transactions/TransactionTags.vue?7125","webpack:///./src/components/transactions/TransactionTags.vue?9c61","webpack:///src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?e9b4","webpack:///./src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?0934","webpack:///src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?cd54","webpack:///./src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?415a","webpack:///src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?582a","webpack:///./src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?87f3","webpack:///src/components/transactions/TransactionAccount.vue","webpack:///./src/components/transactions/TransactionAccount.vue?99df","webpack:///./src/components/transactions/TransactionAccount.vue","webpack:///./src/components/transactions/TransactionAccount.vue?2f0d","webpack:///src/components/transactions/SwitchAccount.vue","webpack:///./src/components/transactions/SwitchAccount.vue?76a5","webpack:///./src/components/transactions/SwitchAccount.vue","webpack:///./src/components/transactions/SwitchAccount.vue?a5fd","webpack:///src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?2029","webpack:///./src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?f9ee","webpack:///src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?a3d5","webpack:///./src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?f406","webpack:///src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?7457","webpack:///./src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?5374","webpack:///src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?a208","webpack:///./src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?e034","webpack:///src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?7292","webpack:///./src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?bd4c","webpack:///src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?5529","webpack:///./src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?ec7f","webpack:///src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?0617","webpack:///./src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?bf89","webpack:///src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?183b","webpack:///./src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?72cc","webpack:///src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?111c","webpack:///./src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?6f1a","webpack:///src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1580","webpack:///./src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1c55","webpack:///src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?2e0f","webpack:///./src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?430e","webpack:///./src/components/transactions/TransactionLinks.vue?48a5","webpack:///src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?921b","webpack:///./src/components/transactions/TransactionAttachments.vue?11dd","webpack:///src/components/transactions/TransactionAttachments.vue","webpack:///./src/components/transactions/TransactionAttachments.vue","webpack:///./src/components/transactions/TransactionAttachments.vue?dffc","webpack:///src/components/transactions/TransactionGroupTitle.vue","webpack:///./src/components/transactions/TransactionGroupTitle.vue?816f","webpack:///./src/components/transactions/TransactionGroupTitle.vue","webpack:///./src/components/transactions/TransactionGroupTitle.vue?4bf1","webpack:///src/components/transactions/Create.vue","webpack:///./src/components/transactions/Create.vue?0a62","webpack:///./src/components/transactions/Create.vue","webpack:///./src/components/transactions/Create.vue?999f","webpack:///./src/pages/transactions/create.js"],"names":["content","module","i","options","transform","undefined","locals","exports","push","props","components","name","data","descriptions","initialSet","created","axios","get","this","getACURL","methods","clearDescription","value","document","getElementsByTagName","href","query","lookupDescription","watch","updateField","computed","_vm","_h","$createElement","_c","_self","staticClass","attrs","$t","errors","length","item","description","on","model","callback","$$v","expression","slot","_v","_l","error","_s","_e","localDate","date","Date","isNaN","toISOString","split","set","current","setFullYear","newDate","getFullYear","setMonth","getMonth","setDate","getDate","localTime","getHours","slice","getMinutes","getSeconds","setHours","parseInt","parts","setMinutes","setSeconds","directives","rawName","ref","class","index","domProps","$event","target","composing","budgetList","collectData","getBudgets","parseBudgets","hasOwnProperty","key","test","preventDefault","$$selectedVal","Array","prototype","filter","call","o","selected","map","_value","multiple","budget","id","accounts","accountTypes","selectedAccount","createInitialSet","types","join","clearAccount","lookupAccount","direction","sourceAllowedTypes","destinationAllowedTypes","name_with_balance","allowedOpposingTypes","type","opposingAccounts","setDestinationAllowedTypes","setSourceAllowedTypes","calcTransactionType","accountKey","$set","switchAccounts","transactionType","currencySymbol","currencyId","transactions","source_account","currency_id","currency_symbol","destination_account","indexOf","updateCurrency","currencyPreference","symbol","$store","state","amount","selectedTransactionType","allCurrencies","selectableCurrencies","foreign_amount","foreign_currency_id","lockedCurrency","selectIsVisible","filterCurrencies","checkVisibility","getAllCurrencies","sourceId","destId","normalCurrencyId","currency","getFieldValue","setFieldValue","enabled","refInFor","categories","clearCategory","lookupCategory","selectedCategory","billList","getBills","parseBills","bill","VueTagsInput","autocompleteItems","debounce","tags","currentTag","updateTags","shortList","initItems","clearTimeout","setTimeout","this$1","newTags","piggyList","getPiggies","parsePiggies","piggy","_m","searchResults","include","locale","linkTypes","searching","getLinkTypes","getTextForLinkType","linkTypeId","selectTransaction","addToSelected","removeFromSelected","selectLinkType","updateSelected","transaction_journal_id","link_type_id","journalId","journal","splice","parseLinkTypes","attributes","inward","outward","linkTypeInward","linkTypeOutward","search","url","parseSearch","ii","transaction_group_id","isJournalSelected","getJournalLinkType","link_type_text","transaction","Intl","NumberFormat","style","currency_code","format","parseFloat","result","isArray","_i","$$a","$$el","$$c","checked","$$i","concat","linkType","source_id","source_name","destination_id","destination_name","staticStyle","doUpload","$refs","att","files","$emit","setGroupTitle","TransactionAttachments","TransactionNotes","TransactionExternalUrl","TransactionGroupTitle","TransactionInternalReference","TransactionPiggyBank","TransactionTags","TransactionLinks","TransactionBill","TransactionCategory","TransactionCustomDates","TransactionForeignCurrency","TransactionForeignAmount","storeAllowedOpposingTypes","storeAccountToTransaction","storeCustomDateFields","addTransaction","linkSearchResults","errorMessage","successMessage","isSubmitting","isSubmittingTransaction","isSubmittingLinks","isSubmittingAttachments","submitted","submittedTransaction","submittedLinks","submittedAttachments","submittedAttCount","groupTitleErrors","groupId","groupTitle","createAnother","resetFormAfter","finalizeSubmit","removeTransaction","commit","then","interest_date","book_date","process_date","due_date","payment_date","invoice_date","fields","allDateFields","selectedDateFields","window","location","previousURL","resetTransactions","setAllowedOpposingTypes","setAccountToTransaction","accountToTransaction","submitTransaction","post","submitAttachments","uploadedAttachment","submitTransactionLinks","links","total","currentLink","outward_id","received","inward_id","promises","Promise","all","parseErrors","resetErrors","message","transactionIndex","fieldName","payload","setTransactionError","convertData","group_title","convertSplit","dateStr","toW3CString","array","budget_id","category_name","category","internal_reference","external_url","notes","external_id","order","reconciled","piggy_bank_id","currentSplit","bill_id","toLowerCase","firstSource","firstDestination","includes","linkTypeParts","inwardId","outwardId","newLink","month","day","hours","minutes","seconds","offsetHours","offsetMinutes","offset","offsetSign","year","source","destination","customDateFields","custom_dates","piggy_bank","require","Vue","config","productionTip","i18n","store","render","createElement","Create","beforeCreate","dispatch","$mount"],"mappings":"6EACA,IAAIA,EAAU,EAAQ,KAEA,iBAAZA,IAAsBA,EAAU,CAAC,CAACC,EAAOC,EAAIF,EAAS,MAOhE,IAAIG,EAAU,CAAC,KAAM,EAErB,eAPIC,EAQJ,gBAAqBC,GAER,EAAQ,GAAR,CAAgEL,EAASG,GAEnFH,EAAQM,SAAQL,EAAOM,QAAUP,EAAQM,S,uECjB5C,Q,qBCAUL,EAAOM,QAAU,EAAQ,GAAR,EAA4D,IAK/EC,KAAK,CAACP,EAAOC,EAAI,8KAA+K,M,wwBC+CxM,sC,EAAA,S,EAAA,e,EAAA,W,EAAA,cCpDsN,EDsDtN,CACEO,MAAO,CAAC,QAAS,QAAS,UAC1BC,WAAY,CAAd,2BACEC,KAAM,yBACNC,KAJF,WAKI,MAAO,CACLC,aAAc,GACdC,WAAY,KAGhBC,QAVF,WAUA,WACIC,MAAMC,IAAIC,KAAKC,SAAS,KAC5B,kBACM,EAAN,oBACM,EAAN,sBAIEC,QAAS,EAAX,KACA,EACA,CACA,iBAHA,IAMIC,iBAAkB,WAChBH,KAAKI,MAAQ,IAEfH,SAAU,SAAd,GAEM,OAAOI,SAASC,qBAAqB,QAAQ,GAAGC,KAAO,0CAA4CC,GAErGC,kBAAmB,OAAvB,WAAuB,EAAvB,sBAEMX,MAAMC,IAAIC,KAAKC,SAASD,KAAKI,QACnC,kBACQ,EAAR,yBAEA,OAEEM,MAAO,CACLN,MAAO,SAAX,GACMJ,KAAKW,YAAY,CAAvB,iDAGEC,SAAU,EAAZ,GACA,EACA,CACA,kBACA,mB,OEpFe,EAXC,YACd,GCRW,WAAa,IAAIC,EAAIb,KAASc,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,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,CAACF,EAAG,MAAM,CAACE,YAAY,wCAAwC,CAACL,EAAIkB,GAAG,iDAAiDlB,EAAIkB,GAAG,KAAKf,EAAG,SAAS,CAACE,YAAY,6BAA6BO,GAAG,CAAC,MAAQZ,EAAIwO,iBAAiB,CAACrO,EAAG,IAAI,CAACE,YAAY,iBAAiBL,EAAIkB,GAAG,IAAIlB,EAAIqB,GAAGrB,EAAIO,GAAG,8BAA8B,0BAA0BP,EAAIkB,GAAG,KAAKf,EAAG,SAAS,CAACE,YAAY,8BAA8BC,MAAM,CAAC,SAAWN,EAAI4O,eAAiB5O,EAAIgP,WAAWpO,GAAG,CAAC,MAAQZ,EAAI8Q,oBAAoB,CAAG9Q,EAAI4O,aAAuH5O,EAAIsB,KAA7GnB,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,gBAAgBL,EAAIkB,GAAG,IAAIlB,EAAIqB,GAAGrB,EAAIO,GAAG,iCAA0CP,EAAIkB,GAAG,KAAMlB,EAAI4O,eAAiB5O,EAAIgP,UAAW7O,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,6BAA6BL,EAAIsB,2BACvqS,IDUpB,EACA,KACA,WACA,M,2BEUFsT,EAAQ,IAERC,KAAIC,OAAOC,eAAgB,EAE3B,IAAIC,GAAOJ,EAAQ,IAEflW,GAAQ,GACZ,IAAImW,KAAI,CACIG,QACAC,UACAC,OAHJ,SAGWC,GACH,OAAOA,EAAcC,GAAQ,CAAC1W,MAAOA,MAEzC2W,aANJ,WAOQlW,KAAK2H,OAAO8I,OAAO,mBACnBzQ,KAAK2H,OAAOwO,SAAS,+BAE1BC,OAAO,0B","file":"/public/js/transactions/create.js","sourcesContent":["\nvar content = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","export * from \"-!../../../node_modules/style-loader/index.js!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\"","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}\", \"\"]);\n\n// exports\n","<!--\n - TransactionDescription.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <vue-typeahead-bootstrap\n inputName=\"description[]\"\n v-model=\"value\"\n :data=\"descriptions\"\n :placeholder=\"$t('firefly.description')\"\n :showOnFocus=true\n autofocus\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :minMatchingChars=\"3\"\n :serializer=\"item => item.description\"\n @input=\"lookupDescription\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearDescription\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionDescription\",\n data() {\n return {\n descriptions: [],\n initialSet: []\n }\n },\n created() {\n axios.get(this.getACURL(''))\n .then(response => {\n this.descriptions = response.data;\n this.initialSet = response.data;\n });\n },\n\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n clearDescription: function () {\n this.value = '';\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/transactions?query=' + query;\n },\n lookupDescription: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.descriptions = response.data;\n })\n }, 300)\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'description', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDescription.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDescription.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionDescription.vue?vue&type=template&id=aab0760c&\"\nimport script from \"./TransactionDescription.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionDescription.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:\"form-group\"},[_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"description[]\",\"data\":_vm.descriptions,\"placeholder\":_vm.$t('firefly.description'),\"showOnFocus\":true,\"autofocus\":\"\",\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"minMatchingChars\":3,\"serializer\":function (item) { return item.description; }},on:{\"input\":_vm.lookupDescription},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearDescription}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionDate.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.date_and_time') }}\n </div>\n <div class=\"input-group\">\n <input\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n type=\"date\"\n ref=\"date\"\n :title=\"$t('firefly.date')\"\n v-model=\"localDate\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"date[]\"\n :placeholder=\"localDate\"\n >\n <input\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n type=\"time\"\n ref=\"time\"\n :title=\"$t('firefly.time')\"\n v-model=\"localTime\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"time[]\"\n :placeholder=\"localTime\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'errors'],\n name: \"TransactionDate\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDate'\n ],\n ),\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'date',\n 'transactions'\n ]\n ),\n localDate: {\n get() {\n if (this.date instanceof Date && !isNaN(this.date)) {\n return this.date.toISOString().split('T')[0];\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n let newDate = new Date(value);\n let current = new Date(this.date.getTime());\n current.setFullYear(newDate.getFullYear());\n current.setMonth(newDate.getMonth());\n current.setDate(newDate.getDate());\n this.setDate({date: current});\n }\n },\n localTime: {\n get() {\n if (this.date instanceof Date && !isNaN(this.date)) {\n return ('0' + this.date.getHours()).slice(-2) + ':' + ('0' + this.date.getMinutes()).slice(-2) + ':' + ('0' + this.date.getSeconds()).slice(-2);\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n let current = new Date(this.date.getTime());\n let parts = value.split(':');\n current.setHours(parseInt(parts[0]));\n current.setMinutes(parseInt(parts[1]));\n current.setSeconds(parseInt(parts[2]));\n this.setDate({date: current});\n }\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionDate.vue?vue&type=template&id=0172cc48&\"\nimport script from \"./TransactionDate.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionDate.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.date_and_time'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.localDate),expression:\"localDate\"}],ref:\"date\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"date\",\"title\":_vm.$t('firefly.date'),\"disabled\":_vm.index > 0,\"autocomplete\":\"off\",\"name\":\"date[]\",\"placeholder\":_vm.localDate},domProps:{\"value\":(_vm.localDate)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localDate=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.localTime),expression:\"localTime\"}],ref:\"time\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"time\",\"title\":_vm.$t('firefly.time'),\"disabled\":_vm.index > 0,\"autocomplete\":\"off\",\"name\":\"time[]\",\"placeholder\":_vm.localTime},domProps:{\"value\":(_vm.localTime)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localTime=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionBudget.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.budget') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"budget\"\n :title=\"$t('firefly.budget')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"budget_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"budget in this.budgetList\" :value=\"budget.id\" :label=\"budget.name\">{{ budget.name }}</option>\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionBudget\",\n data() {\n return {\n budgetList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.budgetList.push(\n {\n id: 0,\n name: this.$t('firefly.no_budget'),\n }\n );\n this.getBudgets();\n },\n getBudgets() {\n axios.get('./api/v1/budgets')\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n this.budgetList.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'budget_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBudget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBudget.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionBudget.vue?vue&type=template&id=5544dff3&\"\nimport script from \"./TransactionBudget.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionBudget.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.budget'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"budget\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.budget'),\"autocomplete\":\"off\",\"name\":\"budget_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.budgetList),function(budget){return _c('option',{attrs:{\"label\":budget.name},domProps:{\"value\":budget.id}},[_vm._v(_vm._s(budget.name))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.' + this.direction + '_account') }}\n </div>\n <vue-typeahead-bootstrap\n v-model=\"value.name\"\n :data=\"accounts\"\n :showOnFocus=true\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :inputName=\"direction + '[]'\"\n :serializer=\"item => item.name_with_balance\"\n :minMatchingChars=\"3\"\n :placeholder=\"$t('firefly.' + this.direction + '_account')\"\n @input=\"lookupAccount\"\n @hit=\"selectedAccount = $event\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary\" v-on:click=\"clearAccount\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from 'lodash';\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionAccount\",\n components: {VueTypeaheadBootstrap},\n props: ['index', 'direction', 'value', 'errors'],\n data() {\n return {\n query: '',\n accounts: [],\n accountTypes: [],\n initialSet: [],\n selectedAccount: {}\n }\n },\n created() {\n this.createInitialSet();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDestinationAllowedTypes',\n 'setSourceAllowedTypes'\n ],\n ),\n ...mapActions(\n [\n 'calcTransactionType'\n ]\n ),\n getACURL: function (types, query) {\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;\n },\n clearAccount: function () {\n this.accounts = this.initialSet;\n this.value = {name: ''};\n },\n lookupAccount: debounce(function () {\n if (0 === this.accountTypes.length) {\n // set the types from the default types for this direction:\n this.accountTypes = 'source' === this.direction ? this.sourceAllowedTypes : this.destinationAllowedTypes;\n }\n\n // update autocomplete URL:\n axios.get(this.getACURL(this.accountTypes, this.value.name))\n .then(response => {\n this.accounts = response.data;\n })\n }, 300),\n createInitialSet: function () {\n let types = this.sourceAllowedTypes;\n if ('destination' === this.direction) {\n types = this.destinationAllowedTypes;\n }\n\n axios.get(this.getACURL(types, ''))\n .then(response => {\n // console.log('initial set of accounts. ' + this.direction);\n this.accounts = response.data;\n this.initialSet = response.data;\n });\n }\n },\n watch: {\n selectedAccount: function (value) {\n this.value = value;\n this.value.name = this.value.name_with_balance;\n },\n value: function (value) {\n this.updateField({field: this.accountKey, index: this.index, value: value});\n // set the opposing account allowed set.\n let opposingAccounts = [];\n let type = value.type ? value.type : 'no_type';\n if ('undefined' !== typeof this.allowedOpposingTypes[this.direction]) {\n if ('undefined' !== typeof this.allowedOpposingTypes[this.direction][type]) {\n opposingAccounts = this.allowedOpposingTypes[this.direction][type];\n }\n }\n\n if ('source' === this.direction) {\n this.setDestinationAllowedTypes(opposingAccounts);\n }\n if ('destination' === this.direction) {\n this.setSourceAllowedTypes(opposingAccounts);\n }\n\n this.calcTransactionType();\n },\n // account: function (value) {\n // //this.value.name = value;\n // //console.log('watch account in direction ' + this.direction + ' change to \"' + value + '\"');\n // // this.account = value ? value.name_with_balance : null;\n // // // console.log('this.account (' + this.direction + ') = \"' + this.account + '\"');\n // //\n // //\n // // // set the opposing account allowed set.\n // // // console.log('opposing:');\n // // let opposingAccounts = [];\n // // let type = value.type ? value.type : 'no_type';\n // // if ('undefined' !== typeof this.allowedOpposingTypes[this.direction]) {\n // // if ('undefined' !== typeof this.allowedOpposingTypes[this.direction][type]) {\n // // opposingAccounts = this.allowedOpposingTypes[this.direction][type];\n // // }\n // // }\n // //\n // // if ('source' === this.direction) {\n // // this.setDestinationAllowedTypes(opposingAccounts);\n // // }\n // // if ('destination' === this.direction) {\n // // this.setSourceAllowedTypes(opposingAccounts);\n // // }\n //\n //\n // //\n // // this.calcTransactionType();\n //\n //\n // }\n\n // selectedAccount: function (value) {\n\n // },\n // sourceAllowedTypes: function (value) {\n // if ('source' === this.direction) {\n // // console.log('do update initial set in direction ' + this.direction + ' because allowed types changed');\n // // update initial set:\n // this.createInitialSet();\n // }\n // },\n // destinationAllowedTypes: function (value) {\n // if ('destination' === this.direction) {\n // // console.log('do update initial set in direction ' + this.direction + ' because allowed types changed');\n // // update initial set:\n // this.createInitialSet();\n // }\n // }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'defaultTransaction',\n 'sourceAllowedTypes',\n 'destinationAllowedTypes',\n 'allowedOpposingTypes'\n ]),\n accountKey: {\n get() {\n return 'source' === this.direction ? 'source_account' : 'destination_account';\n }\n },\n // selectedAccount: {\n // get() {\n // return this.transactions[this.index][this.accountKey];\n // },\n // set(value) {\n // // console.log('set selectedAccount for ' + this.direction);\n // // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n // }\n // }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionAccount.vue?vue&type=template&id=528f81f4&scoped=true&\"\nimport script from \"./TransactionAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAccount.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 \"528f81f4\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.' + this.direction + '_account'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"data\":_vm.accounts,\"showOnFocus\":true,\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"inputName\":_vm.direction + '[]',\"serializer\":function (item) { return item.name_with_balance; },\"minMatchingChars\":3,\"placeholder\":_vm.$t('firefly.' + this.direction + '_account')},on:{\"input\":_vm.lookupAccount,\"hit\":function($event){_vm.selectedAccount = $event}},model:{value:(_vm.value.name),callback:function ($$v) {_vm.$set(_vm.value, \"name\", $$v)},expression:\"value.name\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearAccount}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - SwitchAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n <span class=\"text-muted\" v-if=\"'any' !== this.transactionType\">\n {{ $t('firefly.' + this.transactionType) }}\n </span>\n <span class=\"text-muted\" v-if=\"'any' === this.transactionType\">&nbsp;</span>\n </div>\n <div class=\"btn-group d-flex\">\n <button class=\"btn btn-light\" @click=\"switchAccounts\">&harr;</button>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"SwitchAccount\",\n props: ['index'],\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n\n switchAccounts() {\n let source = this.transactions[this.index].source_account;\n let dest = this.transactions[this.index].destination_account;\n\n this.updateField({field: 'source_account', index: this.index, value: dest});\n this.updateField({field: 'destination_account', index: this.index, value: source});\n\n // trigger other components.\n\n }\n },\n computed: {\n ...mapGetters(['transactions', 'transactionType']),\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SwitchAccount.vue?vue&type=template&id=7fc33f88&scoped=true&\"\nimport script from \"./SwitchAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./SwitchAccount.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 \"7fc33f88\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[('any' !== this.transactionType)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.' + this.transactionType))+\"\\n \")]):_vm._e(),_vm._v(\" \"),('any' === this.transactionType)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\" \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"btn-group d-flex\"},[_c('button',{staticClass:\"btn btn-light\",on:{\"click\":_vm.switchAccounts}},[_vm._v(\"↔\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionAmount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs\">{{ $t('firefly.amount') }}</div>\n <div class=\"input-group\">\n <div class=\"input-group-prepend\">\n <div class=\"input-group-text\">{{ currencySymbol }}</div>\n </div>\n <input type=\"hidden\" name=\"currency_id[]\" :value=\"currencyId\"/>\n <input\n :title=\"$t('firefly.amount')\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"amount[]\"\n type=\"number\"\n v-model=\"amount\"\n :placeholder=\"$t('firefly.amount')\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n//const {mapRootState, mapRootGetters, mapRootActions, mapRootMutations} = createHelpers('');\n\n\nexport default {\n name: \"TransactionAmount\",\n props: ['index', 'errors'],\n data() {\n return {\n currencySymbol: ''\n }\n },\n watch: {\n transactionType: function (value) {\n switch (value) {\n case 'Transfer':\n case 'Withdrawal':\n // take currency from source:\n this.currencyId = this.transactions[this.index].source_account.currency_id;\n this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n return;\n case 'Deposit':\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n return;\n }\n },\n destinationAllowedTypes: function (value) {\n // aka source was updated. if source is asset/loan/debt/mortgage use it to set the currency:\n if ('undefined' !== typeof this.transactions[this.index].source_account.type) {\n if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].source_account.type) !== -1) {\n // get currency pref from source account\n this.currencyId = this.transactions[this.index].source_account.currency_id;\n this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n }\n }\n },\n sourceAllowedTypes: function (value) {\n // aka destination was updated. if destination is asset/loan/debt/mortgage use it to set the currency:\n // unless its already known to be a transfer\n if ('undefined' !== typeof this.transactions[this.index].destination_account.type && 'Transfer' !== this.transactionType) {\n if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].destination_account.type) !== -1) {\n // get currency pref from destination account\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n }\n }\n },\n\n },\n created: function () {\n this.updateCurrency();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n updateCurrency: function () {\n if (0 === this.currencyId) {\n // use default currency from store.\n this.currencySymbol = this.currencyPreference.symbol;\n this.currencyId = this.currencyPreference.id;\n }\n }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n amount: {\n get() {\n return this.transactions[this.index].amount;\n },\n set(value) {\n this.updateField({field: 'amount', index: this.index, value: value});\n }\n },\n currencyId: {\n get() {\n return this.transactions[this.index].currency_id;\n },\n set(value) {\n this.updateField({field: 'currency_id', index: this.index, value: value});\n }\n },\n selectedTransactionType: {\n get() {\n return this.transactionType;\n },\n set(value) {\n // console.log('set selectedAccount for ' + this.direction);\n // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAmount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAmount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionAmount.vue?vue&type=template&id=4003e1ea&scoped=true&\"\nimport script from \"./TransactionAmount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAmount.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 \"4003e1ea\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs\"},[_vm._v(_vm._s(_vm.$t('firefly.amount')))]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('div',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.currencySymbol))])]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"currency_id[]\"},domProps:{\"value\":_vm.currencyId}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.amount'),\"autocomplete\":\"off\",\"name\":\"amount[]\",\"type\":\"number\",\"placeholder\":_vm.$t('firefly.amount')},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionForeignAmount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <!-- FOREIGN AMOUNT -->\n <div class=\"form-group\">\n <input type=\"hidden\" name=\"foreign_currency_id[]\" :value=\"currencyId\"/>\n <div class=\"text-xs\">{{ $t('form.foreign_amount') }}</div>\n <div class=\"input-group\">\n <input\n :title=\"$t('form.foreign_amount')\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n :disabled=\"0===currencyId\"\n name=\"foreign_amount[]\"\n type=\"number\"\n v-model=\"amount\"\n :placeholder=\"$t('form.foreign_amount')\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n//const {mapRootState, mapRootGetters, mapRootActions, mapRootMutations} = createHelpers('');\n\n\nexport default {\n name: \"TransactionForeignAmount\",\n props: ['index','errors'],\n data() {\n return {\n currencySymbol: '',\n allCurrencies: [],\n selectableCurrencies: [],\n }\n },\n watch: {\n transactionType: function (value) {\n // switch (value) {\n // case 'Transfer':\n // case 'Withdrawal':\n // // take currency from source:\n // //this.currencyId = this.transactions[this.index].source_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n // return;\n // case 'Deposit':\n // // take currency from destination:\n // this.currencyId = this.transactions[this.index].destination_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n // return;\n // }\n },\n destinationAllowedTypes: function (value) {\n // // aka source was updated. if source is asset/loan/debt/mortgage use it to set the currency:\n // if ('undefined' !== typeof this.transactions[this.index].source_account.type) {\n // if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].source_account.type) !== -1) {\n // // get currency pref from source account\n // this.currencyId = this.transactions[this.index].source_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n // }\n // }\n },\n sourceAllowedTypes: function (value) {\n // // aka destination was updated. if destination is asset/loan/debt/mortgage use it to set the currency:\n // // unless its already known to be a transfer\n // if ('undefined' !== typeof this.transactions[this.index].destination_account.type && 'Transfer' !== this.transactionType) {\n // if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].destination_account.type) !== -1) {\n // // get currency pref from destination account\n // this.currencyId = this.transactions[this.index].destination_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n // }\n // }\n },\n\n },\n created: function () {\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n\n // updateCurrency: function () {\n // if (0 === this.currencyId) {\n // // use default currency from store.\n // this.currencySymbol = this.currencyPreference.symbol;\n // this.currencyId = this.currencyPreference.id;\n // }\n // }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n amount: {\n get() {\n return this.transactions[this.index].foreign_amount;\n },\n set(value) {\n this.updateField({field: 'foreign_amount', index: this.index, value: value});\n }\n },\n currencyId: {\n get() {\n return this.transactions[this.index].foreign_currency_id;\n },\n set(value) {\n this.updateField({field: 'foreign_currency_id', index: this.index, value: value});\n }\n },\n selectedTransactionType: {\n get() {\n return this.transactionType;\n },\n set(value) {\n // console.log('set selectedAccount for ' + this.direction);\n // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignAmount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignAmount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionForeignAmount.vue?vue&type=template&id=39931bed&scoped=true&\"\nimport script from \"./TransactionForeignAmount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionForeignAmount.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 \"39931bed\",\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:\"form-group\"},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"foreign_currency_id[]\"},domProps:{\"value\":_vm.currencyId}}),_vm._v(\" \"),_c('div',{staticClass:\"text-xs\"},[_vm._v(_vm._s(_vm.$t('form.foreign_amount')))]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('form.foreign_amount'),\"autocomplete\":\"off\",\"disabled\":0===_vm.currencyId,\"name\":\"foreign_amount[]\",\"type\":\"number\",\"placeholder\":_vm.$t('form.foreign_amount')},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionForeignCurrency.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <!-- FOREIGN Currency -->\n <div class=\"form-group\" v-if=\"selectIsVisible\">\n <div class=\"text-xs\">&nbsp;</div>\n <div class=\"input-group\">\n <select name=\"foreign_currency_id[]\" v-model=\"currencyId\" class=\"form-control\">\n <option v-for=\"currency in selectableCurrencies\" :label=\"currency.name\" :value=\"currency.id\">{{ currency.name }}</option>\n </select>\n </div>\n </div>\n</template>\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionForeignCurrency\",\n props: ['index'],\n data() {\n return {\n allCurrencies: [],\n selectableCurrencies: [],\n lockedCurrency: 0,\n selectIsVisible: true\n }\n },\n watch: {\n transactionType: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === value) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n destinationAllowedTypes: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === this.transactionType) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n sourceAllowedTypes: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === this.transactionType) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n\n },\n created: function () {\n this.getAllCurrencies();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n checkVisibility: function () {\n // have the same currency ID, but not zero, and is a transfer\n let sourceId = this.transactions[this.index].source_account.currency_id;\n let destId = this.transactions[this.index].destination_account.currency_id;\n this.selectIsVisible = true;\n if (sourceId === destId && 0 !== sourceId && 'Transfer' === this.transactionType) {\n this.selectIsVisible = false;\n this.currencyId = 0;\n }\n },\n\n getAllCurrencies: function () {\n axios.get('./api/v1/autocomplete/currencies')\n .then(response => {\n this.allCurrencies = response.data;\n this.filterCurrencies();\n }\n );\n\n },\n filterCurrencies() {\n // if a currency is locked only that currency can (and must) be selected:\n if (0 !== this.lockedCurrency) {\n for (let key in this.allCurrencies) {\n if (this.allCurrencies.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = this.allCurrencies[key];\n if (current.id === this.lockedCurrency) {\n this.selectableCurrencies = [current];\n this.currencyId = current.id;\n }\n }\n }\n return;\n }\n\n\n this.selectableCurrencies = [\n {\n \"id\": 0,\n \"name\": this.$t('firefly.no_currency')\n }\n ];\n for (let key in this.allCurrencies) {\n if (this.allCurrencies.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = this.allCurrencies[key];\n // add to array if not \"locked\" in place:\n if (this.transactions[this.index].currency_id !== current.id) {\n this.selectableCurrencies.push(current);\n }\n // deselect impossible currency.\n if (this.transactions[this.index].currency_id === current.id && this.currencyId === current.id) {\n this.currencyId = 0;\n }\n }\n }\n //currency_id\n\n // always add empty currency:\n // this.selectableCurrencies = this.allCurrencies;\n // this.selectableCurrencies.reverse();\n // this.selectableCurrencies.push(\n // ;\n // this.selectableCurrencies.reverse();\n\n // remove\n\n }\n\n // updateCurrency: function () {\n // if (0 === this.currencyId) {\n // // use default currency from store.\n // this.currencySymbol = this.currencyPreference.symbol;\n // this.currencyId = this.currencyPreference.id;\n // }\n // }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n currencyId: {\n get() {\n return this.transactions[this.index].foreign_currency_id;\n },\n set(value) {\n this.updateField({field: 'foreign_currency_id', index: this.index, value: value});\n }\n },\n normalCurrencyId: {\n get() {\n return this.transactions[this.index].currency_id;\n },\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionForeignCurrency.vue?vue&type=template&id=7008e22e&scoped=true&\"\nimport script from \"./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionForeignCurrency.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 \"7008e22e\",\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 (_vm.selectIsVisible)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currencyId),expression:\"currencyId\"}],staticClass:\"form-control\",attrs:{\"name\":\"foreign_currency_id[]\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.currencyId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.selectableCurrencies),function(currency){return _c('option',{attrs:{\"label\":currency.name},domProps:{\"value\":currency.id}},[_vm._v(_vm._s(currency.name))])}),0)])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionCustomDates.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"form-group\" v-for=\"(enabled, name) in enabledDates\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"enabled\">\n {{ $t('form.' + name) }}\n </div>\n <div class=\"input-group\" v-if=\"enabled\">\n <input\n class=\"form-control\"\n type=\"date\"\n :ref=\"name\"\n :title=\"$t('form.' + name)\"\n :value=\"getFieldValue(name)\"\n @change=\"setFieldValue($event, name)\"\n autocomplete=\"off\"\n :name=\"name + '[]'\"\n :placeholder=\"$t('form.' + name)\"\n v-on:submit.prevent\n >\n </div>\n </div>\n </div>\n</template>\n\n<script>\n// TODO: error handling\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\nexport default {\n name: \"TransactionCustomDates\",\n props: ['enabledDates', 'index', 'errors'],\n methods: {\n ...mapGetters(\n [\n 'transactions'\n ]\n ),\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n getFieldValue(field) {\n return this.transactions()[parseInt(this.index)][field] ?? '';\n },\n setFieldValue(event, field) {\n this.updateField({index: this.index, field: field, value: event.target.value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCustomDates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCustomDates.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionCustomDates.vue?vue&type=template&id=4d30715b&scoped=true&\"\nimport script from \"./TransactionCustomDates.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionCustomDates.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 \"4d30715b\",\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._l((_vm.enabledDates),function(enabled,name){return _c('div',{staticClass:\"form-group\"},[(enabled)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('form.' + name))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(enabled)?_c('div',{staticClass:\"input-group\"},[_c('input',{ref:name,refInFor:true,staticClass:\"form-control\",attrs:{\"type\":\"date\",\"title\":_vm.$t('form.' + name),\"autocomplete\":\"off\",\"name\":name + '[]',\"placeholder\":_vm.$t('form.' + name)},domProps:{\"value\":_vm.getFieldValue(name)},on:{\"change\":function($event){return _vm.setFieldValue($event, name)},\"submit\":function($event){$event.preventDefault();}}})]):_vm._e()])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionCategory.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.category') }}\n </div>\n\n <vue-typeahead-bootstrap\n inputName=\"category[]\"\n v-model=\"value\"\n :data=\"categories\"\n :placeholder=\"$t('firefly.category')\"\n :showOnFocus=true\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :minMatchingChars=\"3\"\n :serializer=\"item => item.name\"\n @hit=\"selectedCategory = $event\"\n @input=\"lookupCategory\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearCategory\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['value', 'index', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionCategory\",\n data() {\n return {\n categories: [],\n initialSet: []\n }\n },\n\n created() {\n\n // initial list of accounts:\n axios.get(this.getACURL(''))\n .then(response => {\n this.categories = response.data;\n this.initialSet = response.data;\n });\n },\n\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n clearCategory: function () {\n this.value = null;\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/categories?query=' + query;\n },\n lookupCategory: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.categories = response.data;\n })\n }, 300)\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'category', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n ),\n selectedCategory: {\n get() {\n return this.categories[this.index].name;\n },\n set(value) {\n this.value = value.name;\n }\n }\n }\n}\n</script>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCategory.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCategory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionCategory.vue?vue&type=template&id=30308954&\"\nimport script from \"./TransactionCategory.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionCategory.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.category'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"category[]\",\"data\":_vm.categories,\"placeholder\":_vm.$t('firefly.category'),\"showOnFocus\":true,\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"minMatchingChars\":3,\"serializer\":function (item) { return item.name; }},on:{\"hit\":function($event){_vm.selectedCategory = $event},\"input\":_vm.lookupCategory},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearCategory}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionBill.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.bill') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"bill\"\n :title=\"$t('firefly.bill')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"bill_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"bill in this.billList\" :value=\"bill.id\" :label=\"bill.name\">{{ bill.name }}</option>\n\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['value', 'index', 'errors'],\n name: \"TransactionBill\",\n data() {\n return {\n billList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.billList.push(\n {\n id: 0,\n name: this.$t('firefly.no_bill'),\n }\n );\n this.getBills();\n },\n getBills() {\n axios.get('./api/v1/bills')\n .then(response => {\n this.parseBills(response.data);\n }\n );\n },\n parseBills(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n this.billList.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'bill_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBill.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBill.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionBill.vue?vue&type=template&id=f94af89c&\"\nimport script from \"./TransactionBill.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionBill.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.bill'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"bill\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.bill'),\"autocomplete\":\"off\",\"name\":\"bill_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.billList),function(bill){return _c('option',{attrs:{\"label\":bill.name},domProps:{\"value\":bill.id}},[_vm._v(_vm._s(bill.name))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionTags.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.tags') }}\n </div>\n <div class=\"input-group\">\n <vue-tags-input\n v-model=\"currentTag\"\n :add-only-from-autocomplete=\"false\"\n :autocomplete-items=\"autocompleteItems\"\n :tags=\"tags\"\n :title=\"$t('firefly.tags')\"\n v-bind:placeholder=\"$t('firefly.tags')\"\n @tags-changed=\"newTags => this.tags = newTags\"\n />\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTagsInput from \"@johmun/vue-tags-input\";\nimport axios from \"axios\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionTags\",\n components: {\n VueTagsInput\n },\n props: ['value', 'index', 'errors'],\n data() {\n return {\n autocompleteItems: [],\n debounce: null,\n tags: [],\n currentTag: '',\n updateTags: true // the idea is that this is always true, except when the tags-function sets the value.\n };\n },\n watch: {\n 'currentTag': 'initItems',\n value: function (value) {\n //console.log('watch: value');\n //console.log(value);\n this.updateField({field: 'tags', index: this.index, value: value});\n this.updateTags = false;\n this.tags = value;\n },\n tags: function (value) {\n if (this.updateTags) {\n //console.log('watch: tags');\n\n let shortList = [];\n for (let key in value) {\n if (value.hasOwnProperty(key)) {\n shortList.push({text: value[key].text});\n }\n }\n this.value = shortList;\n }\n this.updateTags = true;\n }\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n initItems() {\n if (this.currentTag.length < 2) {\n return;\n }\n const url = document.getElementsByTagName('base')[0].href + `api/v1/autocomplete/tags?query=${this.currentTag}`;\n\n clearTimeout(this.debounce);\n this.debounce = setTimeout(() => {\n axios.get(url).then(response => {\n this.autocompleteItems = response.data.map(item => {\n return {text: item.tag};\n });\n }).catch(() => console.warn('Oh. Something went wrong loading tags.'));\n }, 300);\n },\n },\n\n\n}\n</script>\n<style>\n.vue-tags-input {\n width: 100%;\n max-width: 100% !important;\n display: block;\n border-radius: 0.25rem;\n}\n\n.ti-input {\n border-radius: 0.25rem;\n max-width: 100%;\n width: 100%;\n}\n\n.ti-new-tag-input {\n font-size: 1rem;\n}\n</style>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionTags.vue?vue&type=template&id=ec497e92&\"\nimport script from \"./TransactionTags.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionTags.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TransactionTags.vue?vue&type=style&index=0&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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {\nvar this$1 = this;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.tags'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('vue-tags-input',{attrs:{\"add-only-from-autocomplete\":false,\"autocomplete-items\":_vm.autocompleteItems,\"tags\":_vm.tags,\"title\":_vm.$t('firefly.tags'),\"placeholder\":_vm.$t('firefly.tags')},on:{\"tags-changed\":function (newTags) { return this$1.tags = newTags; }},model:{value:(_vm.currentTag),callback:function ($$v) {_vm.currentTag=$$v},expression:\"currentTag\"}})],1),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionPiggyBank.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.piggy_bank') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"piggy_bank_id\"\n :title=\"$t('firefly.piggy_bank')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"piggy_bank_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"piggy in this.piggyList\" :value=\"piggy.id\" :label=\"piggy.name_with_balance\">{{ piggy.name_with_balance }}</option>\n\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionPiggyBank\",\n data() {\n return {\n piggyList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.piggyList.push(\n {\n id: 0,\n name_with_balance: this.$t('firefly.no_piggy_bank'),\n }\n );\n this.getPiggies();\n },\n getPiggies() {\n axios.get('./api/v1/autocomplete/piggy-banks-with-balance')\n .then(response => {\n this.parsePiggies(response.data);\n }\n );\n },\n parsePiggies(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data[key];\n this.piggyList.push(\n {\n id: parseInt(current.id),\n name_with_balance: current.name_with_balance\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'piggy_bank_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n ])\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionPiggyBank.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionPiggyBank.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionPiggyBank.vue?vue&type=template&id=0646debe&\"\nimport script from \"./TransactionPiggyBank.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionPiggyBank.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.piggy_bank'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"piggy_bank_id\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.piggy_bank'),\"autocomplete\":\"off\",\"name\":\"piggy_bank_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.piggyList),function(piggy){return _c('option',{attrs:{\"label\":piggy.name_with_balance},domProps:{\"value\":piggy.id}},[_vm._v(_vm._s(piggy.name_with_balance))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionInternalReference.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.internal_reference') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"text\"\n name=\"internal_reference[]\"\n v-model=\"value\"\n :placeholder=\"$t('firefly.internal_reference')\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button type=\"button\" class=\"btn btn-outline-secondary\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionInternalReference\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'internal_reference', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionInternalReference.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionInternalReference.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionInternalReference.vue?vue&type=template&id=ce9f5a82&scoped=true&\"\nimport script from \"./TransactionInternalReference.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionInternalReference.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 \"ce9f5a82\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.internal_reference'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"text\",\"name\":\"internal_reference[]\",\"placeholder\":_vm.$t('firefly.internal_reference')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\n\nexport { render, staticRenderFns }","<!--\n - TransactionInternalReference.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.external_url') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"url\"\n name=\"external_url[]\"\n :placeholder=\"$t('firefly.external_url')\"\n v-model=\"value\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button type=\"button\" class=\"btn btn-outline-secondary\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionExternalUrl\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'external_url', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionExternalUrl.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionExternalUrl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionExternalUrl.vue?vue&type=template&id=8b7a9952&scoped=true&\"\nimport script from \"./TransactionExternalUrl.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionExternalUrl.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 \"8b7a9952\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.external_url'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"url\",\"name\":\"external_url[]\",\"placeholder\":_vm.$t('firefly.external_url')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\n\nexport { render, staticRenderFns }","<!--\n - TransactionNotes.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.notes') }}\n </div>\n <div class=\"input-group\">\n <textarea\n v-model=\"value\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n :placeholder=\"$t('firefly.notes')\"\n ></textarea>\n </div>\n </div>\n\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionNotes\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'notes', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionNotes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionNotes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionNotes.vue?vue&type=template&id=5f8039da&scoped=true&\"\nimport script from \"./TransactionNotes.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionNotes.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 \"5f8039da\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.notes'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"placeholder\":_vm.$t('firefly.notes')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionLinks.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionLinks.vue?vue&type=script&lang=js&\"","<!--\n - TransactionLinks.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.journal_links') }}\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <p v-if=\"value.length === 0\">\n <button data-toggle=\"modal\" data-target=\"#linkModal\" class=\"btn btn-default btn-xs\"><i class=\"fas fa-plus\"></i> Add transaction link</button>\n </p>\n <ul class=\"list-group\" v-if=\"value.length > 0\">\n <li class=\"list-group-item\" v-for=\"transaction in value\">\n <em>{{ getTextForLinkType(transaction.link_type_id) }}</em>\n <a :href='\"./transaction/show/\" + transaction.transaction_group_id'>{{ transaction.description }}</a>\n\n <span v-if=\"transaction.type === 'withdrawal'\">\n (<span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount) * -1)\n }}</span>)\n </span>\n <span v-if=\"transaction.type === 'deposit'\">\n (<span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))\n }}</span>)\n </span>\n <span v-if=\"transaction.type === 'transfer'\">\n (<span class=\"text-info\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))\n }}</span>)\n </span>\n <div class=\"btn-group btn-group-xs float-right\">\n <a href=\"#\" class=\"btn btn-xs btn-default\"><i class=\"far fa-edit\"></i></a>\n <a href=\"#\" class=\"btn btn-xs btn-danger\"><i class=\"far fa-trash-alt\"></i></a>\n </div>\n </li>\n </ul>\n <div class=\"form-text\" v-if=\"value.length > 0\">\n <button data-toggle=\"modal\" data-target=\"#linkModal\" class=\"btn btn-default\"><i class=\"fas fa-plus\"></i></button>\n </div>\n </div>\n </div>\n </div>\n <!-- modal -->\n <div class=\"modal\" tabindex=\"-1\" id=\"linkModal\">\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">Transaction thing dialog.</h5>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col\">\n <p>\n Use this form to search for transactions you wish to link to this one. When in doubt, use <code>id:*</code> where the ID is the number from\n the URL.\n </p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <form v-on:submit.prevent=\"search\">\n <div class=\"input-group\">\n <input autocomplete=\"off\" maxlength=\"255\" type=\"text\" name=\"search\" v-model=\"query\" id=\"query\"\n class=\"form-control\" placeholder=\"Search query\">\n <div class=\"input-group-append\">\n <button type=\"submit\" class=\"btn btn-default\"><i class=\"fas fa-search\"></i> Search</button>\n </div>\n </div>\n </form>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <span v-if=\"searching\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <h4 v-if=\"searchResults.length > 0\">Search results</h4>\n <table class=\"table table-sm\" v-if=\"searchResults.length > 0\">\n <thead>\n <tr>\n <th style=\"width:33%\" colspan=\"2\">Include?</th>\n <th>Transaction</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"result in searchResults\">\n <td>\n <input type=\"checkbox\" class=\"form-control\"\n @change=\"selectTransaction($event)\"\n v-model=\"result.selected\"\n />\n </td>\n <td>\n <select\n @change=\"selectLinkType($event)\"\n class=\"form-control\"\n v-model=\"result.link_type_id\"\n >\n <option v-for=\"linkType in linkTypes\" :value=\"linkType.id + '-' + linkType.direction\" :label=\"linkType.type\">{{\n linkType.type\n }}\n </option>\n </select>\n </td>\n <td>\n <a :href=\"'./transactions/show/' + result.transaction_group_id\">{{ result.description }}</a>\n <span v-if=\"result.type === 'withdrawal'\">\n (<span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount) * -1)\n }}</span>)\n </span>\n <span v-if=\"result.type === 'deposit'\">\n (<span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))\n }}</span>)\n </span>\n <span v-if=\"result.type === 'transfer'\">\n (<span class=\"text-info\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))\n }}</span>)\n </span>\n <br/>\n <em>\n <a :href=\"'./accounts/show/' + result.source_id\">{{ result.source_name }}</a>\n &rarr;\n <a :href=\"'./accounts/show/' + result.destination_id\">{{ result.destination_name }}</a>\n </em>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\n// TODO error handling\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionLinks\",\n data() {\n return {\n searchResults: [],\n include: [],\n locale: 'en-US',\n linkTypes: [],\n query: '',\n searching: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getLinkTypes();\n },\n watch: {\n value: function (value) {\n //console.log('Selected transactions is now:');\n //console.log(value);\n }\n },\n methods: {\n getTextForLinkType: function (linkTypeId) {\n let parts = linkTypeId.split('-');\n for (let i in this.linkTypes) {\n if (this.linkTypes.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.linkTypes[i];\n //console.log(parts);\n //console.log(current);\n if (parts[0] === current.id && parts[1] === current.direction) {\n return current.type;\n }\n }\n }\n return 'text for #' + linkTypeId;\n },\n selectTransaction: function (event) {\n for (let i in this.searchResults) {\n if (this.searchResults.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.searchResults[i];\n if (current.selected) {\n this.addToSelected(current);\n }\n if (!current.selected) {\n // remove from\n this.removeFromSelected(current);\n }\n }\n }\n },\n selectLinkType: function (event) {\n for (let i in this.searchResults) {\n if (this.searchResults.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.searchResults[i];\n this.updateSelected(current.transaction_journal_id, current.link_type_id);\n }\n }\n },\n updateSelected(journalId, linkTypeId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (parseInt(current.transaction_journal_id) === journalId) {\n this.value[i].link_type_id = linkTypeId;\n }\n }\n }\n },\n addToSelected(journal) {\n const result = this.value.find(({transaction_journal_id}) => transaction_journal_id === journal.transaction_journal_id);\n if (typeof result === 'undefined') {\n this.value.push(journal);\n }\n },\n removeFromSelected(journal) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journal.transaction_journal_id) {\n this.value.splice(parseInt(i), 1);\n }\n }\n }\n },\n getLinkTypes: function () {\n let url = './api/v1/link_types';\n axios.get(url)\n .then(response => {\n this.parseLinkTypes(response.data);\n }\n );\n },\n parseLinkTypes: function (data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let linkTypeInward = {\n id: current.id,\n type: current.attributes.inward,\n direction: 'inward'\n };\n let linkTypeOutward = {\n id: current.id,\n type: current.attributes.outward,\n direction: 'outward'\n };\n if (linkTypeInward.type === linkTypeOutward.type) {\n linkTypeInward.type = linkTypeInward.type + ' (←)';\n linkTypeOutward.type = linkTypeOutward.type + ' (→)';\n }\n this.linkTypes.push(linkTypeInward);\n this.linkTypes.push(linkTypeOutward);\n }\n }\n },\n search: function () {\n this.searching = true;\n this.searchResults = [];\n let url = './api/v1/search/transactions?limit=10&query=' + this.query;\n axios.get(url)\n .then(response => {\n this.parseSearch(response.data);\n }\n );\n },\n parseSearch: function (data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n for (let ii in data.data[i].attributes.transactions) {\n if (data.data[i].attributes.transactions.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let current = data.data[i].attributes.transactions[ii];\n current.transaction_group_id = parseInt(data.data[i].id);\n current.selected = this.isJournalSelected(current.transaction_journal_id);\n current.link_type_id = this.getJournalLinkType(current.transaction_journal_id);\n current.link_type_text = '';\n this.searchResults.push(current);\n }\n }\n }\n }\n this.searching = false;\n },\n getJournalLinkType: function (journalId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journalId) {\n return current.link_type_id;\n }\n }\n }\n return '1-inward';\n },\n isJournalSelected: function (journalId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journalId) {\n return true;\n }\n }\n }\n return false;\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionLinks.vue?vue&type=template&id=1e068e4e&\"\nimport script from \"./TransactionLinks.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionLinks.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('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.journal_links'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.value.length === 0)?_c('p',[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.value.length > 0)?_c('ul',{staticClass:\"list-group\"},_vm._l((_vm.value),function(transaction){return _c('li',{staticClass:\"list-group-item\"},[_c('em',[_vm._v(_vm._s(_vm.getTextForLinkType(transaction.link_type_id)))]),_vm._v(\" \"),_c('a',{attrs:{\"href\":\"./transaction/show/\" + transaction.transaction_group_id}},[_vm._v(_vm._s(transaction.description))]),_vm._v(\" \"),(transaction.type === 'withdrawal')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount) * -1)))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(transaction.type === 'deposit')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(transaction.type === 'transfer')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-info\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),_vm._m(1,true)])}),0):_vm._e(),_vm._v(\" \"),(_vm.value.length > 0)?_c('div',{staticClass:\"form-text\"},[_vm._m(2)]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"modal\",attrs:{\"tabindex\":\"-1\",\"id\":\"linkModal\"}},[_c('div',{staticClass:\"modal-dialog modal-lg\"},[_c('div',{staticClass:\"modal-content\"},[_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"container-fluid\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.search($event)}}},[_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.query),expression:\"query\"}],staticClass:\"form-control\",attrs:{\"autocomplete\":\"off\",\"maxlength\":\"255\",\"type\":\"text\",\"name\":\"search\",\"id\":\"query\",\"placeholder\":\"Search query\"},domProps:{\"value\":(_vm.query)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.query=$event.target.value}}}),_vm._v(\" \"),_vm._m(5)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.searching)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.searchResults.length > 0)?_c('h4',[_vm._v(\"Search results\")]):_vm._e(),_vm._v(\" \"),(_vm.searchResults.length > 0)?_c('table',{staticClass:\"table table-sm\"},[_vm._m(6),_vm._v(\" \"),_c('tbody',_vm._l((_vm.searchResults),function(result){return _c('tr',[_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(result.selected),expression:\"result.selected\"}],staticClass:\"form-control\",attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(result.selected)?_vm._i(result.selected,null)>-1:(result.selected)},on:{\"change\":[function($event){var $$a=result.selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(result, \"selected\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(result, \"selected\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(result, \"selected\", $$c)}},function($event){return _vm.selectTransaction($event)}]}})]),_vm._v(\" \"),_c('td',[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(result.link_type_id),expression:\"result.link_type_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(result, \"link_type_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.selectLinkType($event)}]}},_vm._l((_vm.linkTypes),function(linkType){return _c('option',{attrs:{\"label\":linkType.type},domProps:{\"value\":linkType.id + '-' + linkType.direction}},[_vm._v(_vm._s(linkType.type)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('td',[_c('a',{attrs:{\"href\":'./transactions/show/' + result.transaction_group_id}},[_vm._v(_vm._s(result.description))]),_vm._v(\" \"),(result.type === 'withdrawal')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount) * -1)))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(result.type === 'deposit')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(result.type === 'transfer')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-info\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('em',[_c('a',{attrs:{\"href\":'./accounts/show/' + result.source_id}},[_vm._v(_vm._s(result.source_name))]),_vm._v(\"\\n →\\n \"),_c('a',{attrs:{\"href\":'./accounts/show/' + result.destination_id}},[_vm._v(_vm._s(result.destination_name))])])])])}),0)]):_vm._e()])])])]),_vm._v(\" \"),_vm._m(7)])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-default btn-xs\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#linkModal\"}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\" Add transaction link\")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"btn-group btn-group-xs float-right\"},[_c('a',{staticClass:\"btn btn-xs btn-default\",attrs:{\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-edit\"})]),_vm._v(\" \"),_c('a',{staticClass:\"btn btn-xs btn-danger\",attrs:{\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-default\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#linkModal\"}},[_c('i',{staticClass:\"fas fa-plus\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"Transaction thing dialog.\")]),_vm._v(\" \"),_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\",\"aria-label\":\"Close\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('p',[_vm._v(\"\\n Use this form to search for transactions you wish to link to this one. When in doubt, use \"),_c('code',[_vm._v(\"id:*\")]),_vm._v(\" where the ID is the number from\\n the URL.\\n \")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-default\",attrs:{\"type\":\"submit\"}},[_c('i',{staticClass:\"fas fa-search\"}),_vm._v(\" Search\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"33%\"},attrs:{\"colspan\":\"2\"}},[_vm._v(\"Include?\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Transaction\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\"}},[_vm._v(\"Close\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAttachments.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAttachments.vue?vue&type=script&lang=js&\"","<!--\n - TransactionAttachments.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.attachments') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"file\"\n multiple\n ref=\"att\"\n name=\"attachments[]\"\n class=\"form-control\"\n />\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"TransactionAttachments\",\n props: ['transaction_journal_id'],\n watch: {\n transaction_journal_id: function (value) {\n // do upload!\n if (0 !== value) {\n this.doUpload();\n }\n }\n },\n methods: {\n doUpload: function () {\n let uploads = [];\n for (let i in this.$refs.att.files) {\n if (this.$refs.att.files.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.$refs.att.files[i];\n let fileReader = new FileReader();\n let theParent = this; // dont ask me why i need to do this.\n fileReader.onloadend = function (evt) {\n if (evt.target.readyState === FileReader.DONE) {\n // do upload here\n const uri = './api/v1/attachments';\n const data = {\n filename: current.name,\n attachable_type: 'TransactionJournal',\n attachable_id: theParent.transaction_journal_id,\n };\n // create new attachment:\n axios.post(uri, data).then(response => {\n // upload actual file:\n const uploadUri = './api/v1/attachments/' + response.data.data.id + '/upload';\n axios\n .post(uploadUri, new Blob([evt.target.result]))\n .then(attachmentResponse => {\n // TODO feedback etc.\n theParent.$emit('uploaded-attachments');\n });\n });\n }\n }\n fileReader.readAsArrayBuffer(current);\n }\n }\n if (0 === this.$refs.att.files.length) {\n this.$emit('uploaded-attachments', this.transaction_journal_id);\n }\n }\n }\n\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionAttachments.vue?vue&type=template&id=f8d170e2&scoped=true&\"\nimport script from \"./TransactionAttachments.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAttachments.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 \"f8d170e2\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.attachments'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{ref:\"att\",staticClass:\"form-control\",attrs:{\"type\":\"file\",\"multiple\":\"\",\"name\":\"attachments[]\"}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionGroupTitle.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.split_transaction_title') }}\n </div>\n <vue-typeahead-bootstrap\n inputName=\"group_title\"\n v-model=\"value\"\n :data=\"descriptions\"\n :placeholder=\"$t('firefly.split_transaction_title')\"\n :showOnFocus=true\n :minMatchingChars=\"3\"\n :serializer=\"item => item.description\"\n @input=\"lookupDescription\"\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearDescription\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n\n </div>\n</template>\n\n<script>\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\nexport default {\n props: ['value', 'errors'],\n name: \"TransactionGroupTitle\",\n components: {VueTypeaheadBootstrap},\n data() {\n return {\n descriptions: [],\n initialSet: []\n }\n },\n\n created() {\n axios.get(this.getACURL(''))\n .then(response => {\n this.descriptions = response.data;\n this.initialSet = response.data;\n });\n },\n watch: {\n value: function (value) {\n //console.log('set');\n this.setGroupTitle({groupTitle: value});\n }\n },\n methods: {\n ...mapMutations(\n [\n 'setGroupTitle'\n ],\n ),\n ...mapGetters(\n [\n 'groupTitle'\n ]\n ),\n clearDescription: function () {\n this.setGroupTitle({groupTitle: ''});\n this.value = '';\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/transactions?query=' + query;\n },\n lookupDescription: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.descriptions = response.data;\n })\n }, 300)\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionGroupTitle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionGroupTitle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionGroupTitle.vue?vue&type=template&id=a36ef926&scoped=true&\"\nimport script from \"./TransactionGroupTitle.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionGroupTitle.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 \"a36ef926\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.split_transaction_title'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"group_title\",\"data\":_vm.descriptions,\"placeholder\":_vm.$t('firefly.split_transaction_title'),\"showOnFocus\":true,\"minMatchingChars\":3,\"serializer\":function (item) { return item.description; },\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : ''},on:{\"input\":_vm.lookupDescription},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearDescription}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - Create.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"alert alert-danger alert-dismissible\" v-if=\"errorMessage.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5><i class=\"icon fas fa-ban\"></i> {{ $t(\"firefly.flash_error\") }}</h5>\n {{ errorMessage }}\n </div>\n\n <div class=\"alert alert-success alert-dismissible\" v-if=\"successMessage.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5><i class=\"icon fas fa-thumbs-up\"></i> {{ $t(\"firefly.flash_success\") }}</h5>\n {{ successMessage }}\n </div>\n\n <div class=\"row\" v-if=\"transactions.length > 1\">\n <div class=\"col\">\n <!-- tabs -->\n <ul class=\"nav nav-pills ml-auto p-2\">\n <li v-for=\"(transaction, index) in this.transactions\" class=\"nav-item\"><a :class=\"'nav-link' + (0===index ? ' active' : '')\" :href=\"'#split_' + index\"\n data-toggle=\"tab\">\n <span v-if=\"'' !== transaction.description\">{{ transaction.description }}</span>\n <span v-if=\"'' === transaction.description\">Split {{ index + 1 }}</span>\n </a></li>\n </ul>\n </div>\n </div>\n <div class=\"tab-content\">\n <div v-for=\"(transaction, index) in this.transactions\" :class=\"'tab-pane' + (0===index ? ' active' : '')\" :id=\"'split_' + index\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.basic_journal_information') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col\">\n <TransactionDescription\n v-model=\"transaction.description\"\n :index=\"index\"\n :errors=\"transaction.errors.description\"\n ></TransactionDescription>\n </div>\n </div>\n <!-- source and destination -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\">\n <!-- SOURCE -->\n <TransactionAccount\n v-model=\"transaction.source_account\"\n direction=\"source\"\n :index=\"index\"\n :errors=\"transaction.errors.source\"\n />\n </div>\n <!-- switcharoo! -->\n <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\">\n <SwitchAccount\n :index=\"index\"\n />\n </div>\n\n <!-- destination -->\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <!-- DESTINATION -->\n <TransactionAccount\n v-model=\"transaction.destination_account\"\n direction=\"destination\"\n :index=\"index\"\n :errors=\"transaction.errors.destination\"\n />\n </div>\n </div>\n\n\n <!-- amount -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\">\n <!-- AMOUNT -->\n <TransactionAmount :index=\"index\" :errors=\"transaction.errors.amount\"/>\n <!--\n\n -->\n </div>\n <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\">\n <TransactionForeignCurrency :index=\"index\"/>\n </div>\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <TransactionForeignAmount :index=\"index\" :errors=\"transaction.errors.foreign_amount\"/>\n </div>\n </div>\n\n <!-- dates -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <TransactionDate\n :index=\"index\"\n :errors=\"transaction.errors.date\"\n />\n </div>\n\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2\">\n <TransactionCustomDates :index=\"index\" :enabled-dates=\"customDateFields\" :errors=\"transaction.errors.custom_dates\"/>\n </div>\n </div>\n\n <!-- end of body -->\n </div>\n </div>\n </div>\n </div> <!-- end of basic card -->\n\n <!-- card for meta -->\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_meta') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <!-- meta -->\n <div class=\"row\">\n <div class=\"col\">\n <TransactionBudget\n v-model=\"transaction.budget_id\"\n :index=\"index\"\n :errors=\"transaction.errors.budget\"\n />\n <TransactionCategory\n v-model=\"transaction.category\"\n :index=\"index\"\n :errors=\"transaction.errors.category\"\n />\n </div>\n <div class=\"col\">\n <TransactionBill\n v-model=\"transaction.bill_id\"\n :index=\"index\"\n :errors=\"transaction.errors.bill\"\n />\n <TransactionTags\n :index=\"index\"\n v-model=\"transaction.tags\"\n :errors=\"transaction.errors.tags\"\n />\n <TransactionPiggyBank\n :index=\"index\"\n v-model=\"transaction.piggy_bank_id\"\n :errors=\"transaction.errors.piggy_bank\"\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- end card for meta -->\n <!-- card for extra -->\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_meta') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col\">\n\n <TransactionInternalReference\n :index=\"index\"\n v-model=\"transaction.internal_reference\"\n :errors=\"transaction.errors.internal_reference\"\n />\n\n <TransactionExternalUrl\n :index=\"index\"\n v-model=\"transaction.external_url\"\n :errors=\"transaction.errors.external_url\"\n />\n <TransactionNotes\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.notes\"\n />\n </div>\n <div class=\"col\">\n\n <TransactionAttachments\n :index=\"index\"\n ref=\"attachments\"\n :transaction_journal_id=\"transaction.transaction_journal_id\"\n :submitted_transaction=\"submittedTransaction\"\n v-model=\"transaction.attachments\"\n v-on:uploaded-attachments=\"uploadedAttachment($event)\"\n />\n\n <TransactionLinks :index=\"index\"\n v-model=\"transaction.links\"\n />\n </div>\n\n </div>\n <!-- end of body -->\n </div>\n </div>\n </div>\n </div>\n <!-- end card for extra -->\n <!-- end of card -->\n </div>\n </div>\n <div class=\"row\">\n <!-- group title -->\n <div class=\"col\">\n <div class=\"card\" v-if=\"transactions.length > 1\">\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\">\n <TransactionGroupTitle v-model=\"this.groupTitle\" :errors=\"this.groupTitleErrors\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col\">\n <div class=\"row\">\n <!-- buttons! -->\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n &nbsp;\n </div>\n <button @click=\"addTransaction\" class=\"btn btn-primary float-left\"><i class=\"far fa-clone\"></i> {{ $t('firefly.add_another_split') }}\n </button>\n <button class=\"btn btn-success float-right\" @click=\"submitTransaction\" :disabled=\"isSubmitting && !submitted\">\n <span v-if=\"!isSubmitting\"><i class=\"far fa-save\"></i> {{ $t('firefly.store_transaction') }}</span>\n <span v-if=\"isSubmitting && !submitted\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from 'vuex'\n\nimport TransactionDescription from \"./TransactionDescription\";\nimport TransactionDate from \"./TransactionDate\";\nimport TransactionBudget from \"./TransactionBudget\";\nimport TransactionAccount from \"./TransactionAccount\";\nimport SwitchAccount from \"./SwitchAccount\";\nimport TransactionAmount from \"./TransactionAmount\";\nimport TransactionForeignAmount from \"./TransactionForeignAmount\";\nimport TransactionForeignCurrency from \"./TransactionForeignCurrency\";\nimport TransactionCustomDates from \"./TransactionCustomDates\";\nimport TransactionCategory from \"./TransactionCategory\";\nimport TransactionBill from \"./TransactionBill\";\nimport TransactionTags from \"./TransactionTags\";\nimport TransactionPiggyBank from \"./TransactionPiggyBank\";\nimport TransactionInternalReference from \"./TransactionInternalReference\";\nimport TransactionExternalUrl from \"./TransactionExternalUrl\";\nimport TransactionNotes from \"./TransactionNotes\";\nimport TransactionLinks from \"./TransactionLinks\";\nimport TransactionAttachments from \"./TransactionAttachments\";\nimport TransactionGroupTitle from \"./TransactionGroupTitle\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"Create\",\n components: {\n TransactionAttachments,\n TransactionNotes,\n TransactionExternalUrl,\n TransactionGroupTitle,\n TransactionInternalReference,\n TransactionPiggyBank,\n TransactionTags,\n TransactionLinks,\n TransactionBill,\n TransactionCategory,\n TransactionCustomDates,\n TransactionForeignCurrency,\n TransactionForeignAmount, TransactionAmount, SwitchAccount, TransactionAccount, TransactionBudget, TransactionDescription, TransactionDate\n },\n created() {\n this.storeAllowedOpposingTypes();\n this.storeAccountToTransaction();\n this.storeCustomDateFields();\n this.addTransaction();\n },\n data() {\n return {\n linkSearchResults: [],\n errorMessage: '',\n successMessage: '',\n\n // process steps:\n isSubmitting: false,\n isSubmittingTransaction: false,\n isSubmittingLinks: false,\n isSubmittingAttachments: false,\n\n // ready steps:\n submitted: false,\n submittedTransaction: false,\n submittedLinks: false,\n submittedAttachments: false,\n\n // number of uploaded attachments\n submittedAttCount: 0,\n\n // errors in the group title:\n groupTitleErrors: [],\n\n // group ID once submitted:\n groupId: 0,\n groupTitle: '',\n\n // some button flag things\n createAnother: true,\n resetFormAfter: true\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType', // -> this.someGetter\n 'transactions', // -> this.someOtherGetter\n 'customDateFields',\n 'date',\n 'groupTitle'\n ])\n },\n watch: {\n submittedTransaction: function () {\n this.finalizeSubmit();\n },\n submittedLinks: function () {\n this.finalizeSubmit();\n },\n submittedAttachments: function () {\n this.finalizeSubmit();\n }\n },\n methods: {\n ...mapMutations(\n [\n 'addTransaction',\n 'deleteTransaction',\n 'setAllowedOpposingTypes',\n 'setAccountToTransaction',\n 'setTransactionError',\n 'resetErrors',\n 'updateField',\n 'resetTransactions'\n ],\n ),\n removeTransaction: function (index) {\n this.$store.commit('transactions/create/deleteTransaction', {index: index});\n },\n storeCustomDateFields: function () {\n // TODO may include all custom fields in the future.\n axios.get('./api/v1/preferences/transaction_journal_optional_fields').then(response => {\n let fields = response.data.data.attributes.data;\n let allDateFields = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date'];\n let selectedDateFields = {\n interest_date: false,\n book_date: false,\n process_date: false,\n due_date: false,\n payment_date: false,\n invoice_date: false,\n };\n for (let key in fields) {\n if (fields.hasOwnProperty(key)) {\n if (-1 !== allDateFields.indexOf(key)) {\n selectedDateFields[key] = fields[key];\n }\n }\n }\n this.$store.commit('transactions/create/setCustomDateFields', selectedDateFields);\n });\n },\n finalizeSubmit() {\n if (this.submittedTransaction && this.submittedAttachments && this.submittedLinks && false === this.submitted) {\n this.submitted = true;\n this.isSubmitting = false;\n\n // show message, redirect.\n if (false === this.createAnother) {\n window.location.href = window.previousURL + '?transaction_group_id=' + this.groupId + '&message=created';\n return;\n }\n // render msg:\n this.successMessage = this.$t('firefly.transaction_stored_link', {ID: this.groupId, title: this.groupTitle});\n if(this.resetFormAfter) {\n this.resetTransactions();\n // do a short time out?\n setTimeout(() => this.addTransaction(), 50);\n }\n }\n\n },\n /**\n *\n */\n storeAllowedOpposingTypes: function () {\n this.setAllowedOpposingTypes(window.allowedOpposingTypes);\n },\n storeAccountToTransaction: function () {\n this.setAccountToTransaction(window.accountToTransaction);\n },\n /**\n *\n */\n submitTransaction: function () {\n this.isSubmitting = true;\n this.isSubmittingTransaction = true;\n this.isSubmittingLinks = true;\n this.isSubmittingAttachments = true;\n\n const url = './api/v1/transactions';\n const data = this.convertData();\n\n axios.post(url, data)\n .then(response => {\n this.isSubmittingTransaction = false; // done with submitting the transaction.\n this.submittedTransaction = true; // transaction is submitted.\n this.submitTransactionLinks(data, response);\n this.submitAttachments(data, response);\n this.groupId = parseInt(response.data.data.id);\n this.groupTitle = null === response.data.data.attributes.group_title ? response.data.data.attributes.transactions[0].description : response.data.data.attributes.group_title;\n })\n .catch(error => {\n this.parseErrors(error.response.data);\n });\n },\n\n submitAttachments: function (data, response) {\n this.isSubmittingAttachments = true;\n // tell each attachment thing that they can upload their attachments by giving them a valid transaction journal ID to upload to.\n let result = response.data.data.attributes.transactions\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (result.hasOwnProperty(i)) {\n this.updateField({index: i, field: 'transaction_journal_id', value: result[0].transaction_journal_id});\n }\n }\n }\n },\n uploadedAttachment: function () {\n this.submittedAttCount++;\n if (this.submittedAttCount === this.transactions.length) {\n this.submittedAttachments = true;\n this.isSubmittingAttachments = false;\n }\n },\n\n submitTransactionLinks(data, response) {\n this.isSubmittingLinks = true;\n this.submittedLinks = false;\n let promises = [];\n let result = response.data.data.attributes.transactions;\n let total = 0;\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let submitted = data.transactions[i];\n if (result.hasOwnProperty(i)) {\n // found matching created transaction.\n let received = result[i];\n // grab ID from received, loop \"submitted\" transaction links\n for (let ii in submitted.links) {\n if (submitted.links.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let currentLink = submitted.links[ii];\n total++;\n if (0 === currentLink.outward_id) {\n currentLink.outward_id = received.transaction_journal_id;\n }\n if (0 === currentLink.inward_id) {\n currentLink.inward_id = received.transaction_journal_id;\n }\n // submit transaction link:\n promises.push(axios.post('./api/v1/transaction_links', currentLink).then(response => {\n // TODO error handling.\n }));\n }\n }\n }\n }\n }\n if (0 === total) {\n this.isSubmittingLinks = false;\n this.submittedLinks = true;\n }\n Promise.all(promises).then(function () {\n this.isSubmittingLinks = false;\n this.submittedLinks = true;\n });\n },\n\n parseErrors: function (errors) {\n for (let i in this.transactions) {\n this.resetErrors({index: i});\n }\n\n this.successMessage = null;\n this.errorMessage = this.$t('firefly.errors_submission');\n if (typeof errors.errors === 'undefined') {\n this.successMessage = null;\n this.errorMessage = errors.message;\n }\n\n let transactionIndex;\n let fieldName;\n\n // fairly basic way of exploding the error array.\n for (const key in errors.errors) {\n if (errors.errors.hasOwnProperty(key)) {\n if (key === 'group_title') {\n this.groupTitleErrors = errors.errors[key];\n continue;\n }\n if (key !== 'group_title') {\n // lol dumbest way to explode \"transactions.0.something\" ever.\n transactionIndex = parseInt(key.split('.')[1]);\n\n fieldName = key.split('.')[2];\n // set error in this object thing.\n let payload;\n switch (fieldName) {\n case 'amount':\n case 'description':\n case 'date':\n case 'tags':\n payload = {index: transactionIndex, field: fieldName, errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'budget_id':\n payload = {index: transactionIndex, field: 'budget', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'bill_id':\n payload = {index: transactionIndex, field: 'bill', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'piggy_bank_id':\n payload = {index: transactionIndex, field: 'piggy_bank', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'category_name':\n payload = {index: transactionIndex, field: 'category', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'source_name':\n case 'source_id':\n payload = {index: transactionIndex, field: 'source', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'destination_name':\n case 'destination_id':\n payload = {index: transactionIndex, field: 'destination', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'foreign_amount':\n case 'foreign_currency':\n payload = {index: transactionIndex, field: 'foreign_amount', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n }\n }\n // unique some things\n if (typeof this.transactions[transactionIndex] !== 'undefined') {\n // TODO\n //this.transactions[transactionIndex].errors.source = Array.from(new Set(this.transactions[transactionIndex].errors.source));\n //this.transactions[transactionIndex].errors.destination = Array.from(new Set(this.transactions[transactionIndex].errors.destination));\n }\n\n }\n }\n this.isSubmittingTransaction = false;\n this.submittedTransaction = true;\n this.isSubmitting = false;\n },\n\n /**\n *\n */\n convertData: function () {\n //console.log('now in convertData');\n let data = {\n 'transactions': []\n };\n if (this.groupTitle.length > 0) {\n data.group_title = this.groupTitle;\n }\n\n for (let key in this.transactions) {\n if (this.transactions.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n data.transactions.push(this.convertSplit(key, this.transactions[key]));\n }\n }\n if (data.transactions.length > 1) {\n data.group_title = data.transactions[0].description;\n }\n return data;\n },\n /**\n *\n * @param key\n * @param array\n */\n convertSplit: function (key, array) {\n let dateStr = 'invalid';\n if (this.date instanceof Date && !isNaN(this.date)) {\n dateStr = this.toW3CString(this.date);\n }\n let currentSplit = {\n // basic\n description: array.description,\n date: dateStr,\n type: this.transactionType,\n\n // account\n source_id: array.source_account.id ?? null,\n source_name: array.source_account.name ?? null,\n destination_id: array.destination_account.id ?? null,\n destination_name: array.destination_account.name ?? null,\n\n // amount:\n currency_id: array.currency_id,\n amount: array.amount,\n\n // meta data\n budget_id: array.budget_id,\n category_name: array.category,\n tags: array.tags,\n\n // optional date fields (6x):\n interest_date: array.interest_date,\n book_date: array.book_date,\n process_date: array.process_date,\n due_date: array.due_date,\n payment_date: array.payment_date,\n invoice_date: array.invoice_date,\n\n // other optional fields:\n internal_reference: array.internal_reference,\n external_url: array.external_url,\n notes: array.notes,\n external_id: array.external_id,\n\n // from thing:\n order: 0,\n reconciled: false,\n };\n // bills and piggy banks\n if (0 !== array.piggy_bank_id) {\n currentSplit.piggy_bank_id = array.piggy_bank_id;\n }\n if (0 !== array.bill_id) {\n currentSplit.bill_id = array.bill_id;\n }\n\n // foreign amount:\n if (0 !== array.foreign_currency_id) {\n currentSplit.foreign_currency_id = array.foreign_currency_id;\n }\n if ('' !== array.foreign_amount) {\n currentSplit.foreign_amount = array.foreign_amount;\n }\n\n // do transaction type\n let transactionType;\n let firstSource;\n let firstDestination;\n\n // get transaction type from first transaction\n transactionType = this.transactionType ? this.transactionType.toLowerCase() : 'any';\n //console.log('Transaction type is now ' + transactionType);\n // if the transaction type is invalid, might just be that we can deduce it from\n // the presence of a source or destination account\n firstSource = this.transactions[0].source_account.type;\n firstDestination = this.transactions[0].destination_account.type;\n //console.log(this.transactions[0].source_account);\n //console.log(this.transactions[0].destination_account);\n //console.log('Type of first source is ' + firstSource);\n //console.log('Type of first destination is ' + firstDestination);\n\n if ('any' === transactionType && ['asset', 'Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstSource)) {\n transactionType = 'withdrawal';\n }\n\n if ('any' === transactionType && ['asset', 'Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstDestination)) {\n transactionType = 'deposit';\n }\n currentSplit.type = transactionType;\n //console.log('Final type is ' + transactionType);\n\n let links = [];\n for (let i in array.links) {\n if (array.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = array.links[i];\n let linkTypeParts = current.link_type_id.split('-');\n let inwardId = 'outward' === linkTypeParts[1] ? 0 : parseInt(current.transaction_journal_id);\n let outwardId = 'inward' === linkTypeParts[1] ? 0 : parseInt(current.transaction_journal_id);\n let newLink = {\n link_type_id: parseInt(linkTypeParts[0]),\n inward_id: inwardId,\n outward_id: outwardId,\n };\n links.push(newLink);\n }\n }\n currentSplit.links = links;\n\n // return it.\n return currentSplit;\n },\n toW3CString: function (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 }\n\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Create.vue?vue&type=template&id=3955ec91&scoped=true&\"\nimport script from \"./Create.vue?vue&type=script&lang=js&\"\nexport * from \"./Create.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 \"3955ec91\",\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.errorMessage.length > 0)?_c('div',{staticClass:\"alert alert-danger alert-dismissible\"},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[_c('i',{staticClass:\"icon fas fa-ban\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"firefly.flash_error\")))]),_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.successMessage.length > 0)?_c('div',{staticClass:\"alert alert-success alert-dismissible\"},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[_c('i',{staticClass:\"icon fas fa-thumbs-up\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"firefly.flash_success\")))]),_vm._v(\"\\n \"+_vm._s(_vm.successMessage)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.transactions.length > 1)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('ul',{staticClass:\"nav nav-pills ml-auto p-2\"},_vm._l((this.transactions),function(transaction,index){return _c('li',{staticClass:\"nav-item\"},[_c('a',{class:'nav-link' + (0===index ? ' active' : ''),attrs:{\"href\":'#split_' + index,\"data-toggle\":\"tab\"}},[('' !== transaction.description)?_c('span',[_vm._v(_vm._s(transaction.description))]):_vm._e(),_vm._v(\" \"),('' === transaction.description)?_c('span',[_vm._v(\"Split \"+_vm._s(index + 1))]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"tab-content\"},_vm._l((this.transactions),function(transaction,index){return _c('div',{class:'tab-pane' + (0===index ? ' active' : ''),attrs:{\"id\":'split_' + index}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.basic_journal_information'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionDescription',{attrs:{\"index\":index,\"errors\":transaction.errors.description},model:{value:(transaction.description),callback:function ($$v) {_vm.$set(transaction, \"description\", $$v)},expression:\"transaction.description\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\"},[_c('TransactionAccount',{attrs:{\"direction\":\"source\",\"index\":index,\"errors\":transaction.errors.source},model:{value:(transaction.source_account),callback:function ($$v) {_vm.$set(transaction, \"source_account\", $$v)},expression:\"transaction.source_account\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\"},[_c('SwitchAccount',{attrs:{\"index\":index}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAccount',{attrs:{\"direction\":\"destination\",\"index\":index,\"errors\":transaction.errors.destination},model:{value:(transaction.destination_account),callback:function ($$v) {_vm.$set(transaction, \"destination_account\", $$v)},expression:\"transaction.destination_account\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\"},[_c('TransactionAmount',{attrs:{\"index\":index,\"errors\":transaction.errors.amount}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\"},[_c('TransactionForeignCurrency',{attrs:{\"index\":index}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionForeignAmount',{attrs:{\"index\":index,\"errors\":transaction.errors.foreign_amount}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionDate',{attrs:{\"index\":index,\"errors\":transaction.errors.date}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2\"},[_c('TransactionCustomDates',{attrs:{\"index\":index,\"enabled-dates\":_vm.customDateFields,\"errors\":transaction.errors.custom_dates}})],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.transaction_journal_meta'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionBudget',{attrs:{\"index\":index,\"errors\":transaction.errors.budget},model:{value:(transaction.budget_id),callback:function ($$v) {_vm.$set(transaction, \"budget_id\", $$v)},expression:\"transaction.budget_id\"}}),_vm._v(\" \"),_c('TransactionCategory',{attrs:{\"index\":index,\"errors\":transaction.errors.category},model:{value:(transaction.category),callback:function ($$v) {_vm.$set(transaction, \"category\", $$v)},expression:\"transaction.category\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('TransactionBill',{attrs:{\"index\":index,\"errors\":transaction.errors.bill},model:{value:(transaction.bill_id),callback:function ($$v) {_vm.$set(transaction, \"bill_id\", $$v)},expression:\"transaction.bill_id\"}}),_vm._v(\" \"),_c('TransactionTags',{attrs:{\"index\":index,\"errors\":transaction.errors.tags},model:{value:(transaction.tags),callback:function ($$v) {_vm.$set(transaction, \"tags\", $$v)},expression:\"transaction.tags\"}}),_vm._v(\" \"),_c('TransactionPiggyBank',{attrs:{\"index\":index,\"errors\":transaction.errors.piggy_bank},model:{value:(transaction.piggy_bank_id),callback:function ($$v) {_vm.$set(transaction, \"piggy_bank_id\", $$v)},expression:\"transaction.piggy_bank_id\"}})],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.transaction_journal_meta'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionInternalReference',{attrs:{\"index\":index,\"errors\":transaction.errors.internal_reference},model:{value:(transaction.internal_reference),callback:function ($$v) {_vm.$set(transaction, \"internal_reference\", $$v)},expression:\"transaction.internal_reference\"}}),_vm._v(\" \"),_c('TransactionExternalUrl',{attrs:{\"index\":index,\"errors\":transaction.errors.external_url},model:{value:(transaction.external_url),callback:function ($$v) {_vm.$set(transaction, \"external_url\", $$v)},expression:\"transaction.external_url\"}}),_vm._v(\" \"),_c('TransactionNotes',{attrs:{\"index\":index,\"errors\":transaction.errors.notes},model:{value:(transaction.notes),callback:function ($$v) {_vm.$set(transaction, \"notes\", $$v)},expression:\"transaction.notes\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('TransactionAttachments',{ref:\"attachments\",refInFor:true,attrs:{\"index\":index,\"transaction_journal_id\":transaction.transaction_journal_id,\"submitted_transaction\":_vm.submittedTransaction},on:{\"uploaded-attachments\":function($event){return _vm.uploadedAttachment($event)}},model:{value:(transaction.attachments),callback:function ($$v) {_vm.$set(transaction, \"attachments\", $$v)},expression:\"transaction.attachments\"}}),_vm._v(\" \"),_c('TransactionLinks',{attrs:{\"index\":index},model:{value:(transaction.links),callback:function ($$v) {_vm.$set(transaction, \"links\", $$v)},expression:\"transaction.links\"}})],1)])])])])])])}),0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.transactions.length > 1)?_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionGroupTitle',{attrs:{\"errors\":this.groupTitleErrors},model:{value:(this.groupTitle),callback:function ($$v) {_vm.$set(this, \"groupTitle\", $$v)},expression:\"this.groupTitle\"}})],1)])])]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n  \\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary float-left\",on:{\"click\":_vm.addTransaction}},[_c('i',{staticClass:\"far fa-clone\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.add_another_split'))+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-success float-right\",attrs:{\"disabled\":_vm.isSubmitting && !_vm.submitted},on:{\"click\":_vm.submitTransaction}},[(!_vm.isSubmitting)?_c('span',[_c('i',{staticClass:\"far fa-save\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.store_transaction')))]):_vm._e(),_vm._v(\" \"),(_vm.isSubmitting && !_vm.submitted)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e()])])])])])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * create.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport store from \"../../components/store\";\nimport Create from \"../../components/transactions/Create\";\nimport Vue from \"vue\";\n\nrequire('../../bootstrap');\n\nVue.config.productionTip = false;\n// i18n\nlet i18n = require('../../i18n');\n\nlet props = {};\nnew Vue({\n i18n,\n store,\n render(createElement) {\n return createElement(Create, {props: props});\n },\n beforeCreate() {\n this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n },\n }).$mount('#transactions_create');\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///./src/components/transactions/TransactionTags.vue?f6be","webpack:///./src/components/transactions/TransactionTags.vue?7125","webpack:///./src/components/transactions/TransactionTags.vue?9c61","webpack:///src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?e9b4","webpack:///./src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?0934","webpack:///src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?cd54","webpack:///./src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?415a","webpack:///src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?582a","webpack:///./src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?87f3","webpack:///src/components/transactions/TransactionAccount.vue","webpack:///./src/components/transactions/TransactionAccount.vue?99df","webpack:///./src/components/transactions/TransactionAccount.vue","webpack:///./src/components/transactions/TransactionAccount.vue?2f0d","webpack:///src/components/transactions/SwitchAccount.vue","webpack:///./src/components/transactions/SwitchAccount.vue?76a5","webpack:///./src/components/transactions/SwitchAccount.vue","webpack:///./src/components/transactions/SwitchAccount.vue?a5fd","webpack:///src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?2029","webpack:///./src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?f9ee","webpack:///src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?a3d5","webpack:///./src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?f406","webpack:///src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?7457","webpack:///./src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?5374","webpack:///src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?a208","webpack:///./src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?e034","webpack:///src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?7292","webpack:///./src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?bd4c","webpack:///src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?5529","webpack:///./src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?ec7f","webpack:///src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?0617","webpack:///./src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?bf89","webpack:///src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?183b","webpack:///./src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?72cc","webpack:///src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?111c","webpack:///./src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?6f1a","webpack:///src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1580","webpack:///./src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1c55","webpack:///src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?2e0f","webpack:///./src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?430e","webpack:///./src/components/transactions/TransactionLinks.vue?48a5","webpack:///src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?921b","webpack:///./src/components/transactions/TransactionAttachments.vue?11dd","webpack:///src/components/transactions/TransactionAttachments.vue","webpack:///./src/components/transactions/TransactionAttachments.vue","webpack:///./src/components/transactions/TransactionAttachments.vue?dffc","webpack:///src/components/transactions/TransactionGroupTitle.vue","webpack:///./src/components/transactions/TransactionGroupTitle.vue?816f","webpack:///./src/components/transactions/TransactionGroupTitle.vue","webpack:///./src/components/transactions/TransactionGroupTitle.vue?4bf1","webpack:///src/components/transactions/Create.vue","webpack:///./src/components/transactions/Create.vue?0a62","webpack:///./src/components/transactions/Create.vue","webpack:///./src/components/transactions/Create.vue?03bb","webpack:///./src/pages/transactions/create.js"],"names":["content","module","i","options","transform","undefined","locals","exports","push","props","components","name","data","descriptions","initialSet","created","axios","get","this","getACURL","methods","clearDescription","value","document","getElementsByTagName","href","query","lookupDescription","watch","updateField","computed","_vm","_h","$createElement","_c","_self","staticClass","attrs","$t","errors","length","item","description","on","model","callback","$$v","expression","slot","_v","_l","error","_s","_e","localDate","date","Date","isNaN","toISOString","split","set","current","setFullYear","newDate","getFullYear","setMonth","getMonth","setDate","getDate","localTime","getHours","slice","getMinutes","getSeconds","setHours","parseInt","parts","setMinutes","setSeconds","directives","rawName","ref","class","index","domProps","$event","target","composing","budgetList","collectData","getBudgets","parseBudgets","hasOwnProperty","key","test","preventDefault","$$selectedVal","Array","prototype","filter","call","o","selected","map","_value","multiple","budget","id","accounts","accountTypes","selectedAccount","createInitialSet","types","join","clearAccount","lookupAccount","direction","sourceAllowedTypes","destinationAllowedTypes","name_with_balance","allowedOpposingTypes","type","opposingAccounts","setDestinationAllowedTypes","setSourceAllowedTypes","calcTransactionType","accountKey","$set","switchAccounts","transactionType","currencySymbol","currencyId","transactions","source_account","currency_id","currency_symbol","destination_account","indexOf","updateCurrency","currencyPreference","symbol","$store","state","amount","selectedTransactionType","allCurrencies","selectableCurrencies","foreign_amount","foreign_currency_id","lockedCurrency","selectIsVisible","filterCurrencies","checkVisibility","getAllCurrencies","sourceId","destId","normalCurrencyId","currency","getFieldValue","setFieldValue","enabled","refInFor","categories","clearCategory","lookupCategory","selectedCategory","billList","getBills","parseBills","bill","VueTagsInput","autocompleteItems","debounce","tags","currentTag","updateTags","shortList","initItems","clearTimeout","setTimeout","this$1","newTags","piggyList","getPiggies","parsePiggies","piggy","_m","searchResults","include","locale","linkTypes","searching","getLinkTypes","getTextForLinkType","linkTypeId","selectTransaction","addToSelected","removeFromSelected","selectLinkType","updateSelected","transaction_journal_id","link_type_id","journalId","journal","splice","parseLinkTypes","attributes","inward","outward","linkTypeInward","linkTypeOutward","search","url","parseSearch","ii","transaction_group_id","isJournalSelected","getJournalLinkType","link_type_text","transaction","Intl","NumberFormat","style","currency_code","format","parseFloat","result","isArray","_i","$$a","$$el","$$c","checked","$$i","concat","linkType","source_id","source_name","destination_id","destination_name","staticStyle","doUpload","$refs","att","files","$emit","setGroupTitle","TransactionAttachments","TransactionNotes","TransactionExternalUrl","TransactionGroupTitle","TransactionInternalReference","TransactionPiggyBank","TransactionTags","TransactionLinks","TransactionBill","TransactionCategory","TransactionCustomDates","TransactionForeignCurrency","TransactionForeignAmount","storeAllowedOpposingTypes","storeAccountToTransaction","storeCustomDateFields","addTransaction","linkSearchResults","errorMessage","successMessage","isSubmitting","isSubmittingTransaction","isSubmittingLinks","isSubmittingAttachments","submitted","submittedTransaction","submittedLinks","submittedAttachments","submittedAttCount","groupTitleErrors","groupId","groupTitle","createAnother","resetFormAfter","finalizeSubmit","removeTransaction","commit","then","interest_date","book_date","process_date","due_date","payment_date","invoice_date","fields","allDateFields","selectedDateFields","window","location","previousURL","setAllowedOpposingTypes","setAccountToTransaction","accountToTransaction","submitTransaction","post","submitAttachments","uploadedAttachment","submitTransactionLinks","links","total","currentLink","outward_id","received","inward_id","promises","Promise","all","parseErrors","resetErrors","message","transactionIndex","fieldName","payload","setTransactionError","convertData","group_title","convertSplit","dateStr","toW3CString","array","budget_id","category_name","category","internal_reference","external_url","notes","external_id","order","reconciled","piggy_bank_id","currentSplit","bill_id","toLowerCase","firstSource","firstDestination","includes","linkTypeParts","inwardId","outwardId","newLink","month","day","hours","minutes","seconds","offsetHours","offsetMinutes","offset","offsetSign","year","source","destination","customDateFields","custom_dates","piggy_bank","require","Vue","config","productionTip","i18n","store","render","createElement","Create","beforeCreate","dispatch","$mount"],"mappings":"6EACA,IAAIA,EAAU,EAAQ,KAEA,iBAAZA,IAAsBA,EAAU,CAAC,CAACC,EAAOC,EAAIF,EAAS,MAOhE,IAAIG,EAAU,CAAC,KAAM,EAErB,eAPIC,EAQJ,gBAAqBC,GAER,EAAQ,GAAR,CAAgEL,EAASG,GAEnFH,EAAQM,SAAQL,EAAOM,QAAUP,EAAQM,S,uECjB5C,Q,qBCAUL,EAAOM,QAAU,EAAQ,GAAR,EAA4D,IAK/EC,KAAK,CAACP,EAAOC,EAAI,8KAA+K,M,wwBC+CxM,sC,EAAA,S,EAAA,e,EAAA,W,EAAA,cCpDsN,EDsDtN,CACEO,MAAO,CAAC,QAAS,QAAS,UAC1BC,WAAY,CAAd,2BACEC,KAAM,yBACNC,KAJF,WAKI,MAAO,CACLC,aAAc,GACdC,WAAY,KAGhBC,QAVF,WAUA,WACIC,MAAMC,IAAIC,KAAKC,SAAS,KAC5B,kBACM,EAAN,oBACM,EAAN,sBAIEC,QAAS,EAAX,KACA,EACA,CACA,iBAHA,IAMIC,iBAAkB,WAChBH,KAAKI,MAAQ,IAEfH,SAAU,SAAd,GAEM,OAAOI,SAASC,qBAAqB,QAAQ,GAAGC,KAAO,0CAA4CC,GAErGC,kBAAmB,OAAvB,WAAuB,EAAvB,sBAEMX,MAAMC,IAAIC,KAAKC,SAASD,KAAKI,QACnC,kBACQ,EAAR,y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MAEzC0W,aANJ,WAOQjW,KAAK2H,OAAO8I,OAAO,mBACnBzQ,KAAK2H,OAAOuO,SAAS,+BAE1BC,OAAO,0B","file":"/public/js/transactions/create.js","sourcesContent":["\nvar content = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","export * from \"-!../../../node_modules/style-loader/index.js!../../../node_modules/css-loader/index.js??ref--6-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-2!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=style&index=0&lang=css&\"","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}\", \"\"]);\n\n// exports\n","<!--\n - TransactionDescription.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <vue-typeahead-bootstrap\n inputName=\"description[]\"\n v-model=\"value\"\n :data=\"descriptions\"\n :placeholder=\"$t('firefly.description')\"\n :showOnFocus=true\n autofocus\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :minMatchingChars=\"3\"\n :serializer=\"item => item.description\"\n @input=\"lookupDescription\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearDescription\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionDescription\",\n data() {\n return {\n descriptions: [],\n initialSet: []\n }\n },\n created() {\n axios.get(this.getACURL(''))\n .then(response => {\n this.descriptions = response.data;\n this.initialSet = response.data;\n });\n },\n\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n clearDescription: function () {\n this.value = '';\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/transactions?query=' + query;\n },\n lookupDescription: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.descriptions = response.data;\n })\n }, 300)\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'description', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDescription.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDescription.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionDescription.vue?vue&type=template&id=aab0760c&\"\nimport script from \"./TransactionDescription.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionDescription.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:\"form-group\"},[_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"description[]\",\"data\":_vm.descriptions,\"placeholder\":_vm.$t('firefly.description'),\"showOnFocus\":true,\"autofocus\":\"\",\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"minMatchingChars\":3,\"serializer\":function (item) { return item.description; }},on:{\"input\":_vm.lookupDescription},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearDescription}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionDate.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.date_and_time') }}\n </div>\n <div class=\"input-group\">\n <input\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n type=\"date\"\n ref=\"date\"\n :title=\"$t('firefly.date')\"\n v-model=\"localDate\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"date[]\"\n :placeholder=\"localDate\"\n >\n <input\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n type=\"time\"\n ref=\"time\"\n :title=\"$t('firefly.time')\"\n v-model=\"localTime\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"time[]\"\n :placeholder=\"localTime\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'errors'],\n name: \"TransactionDate\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDate'\n ],\n ),\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'date',\n 'transactions'\n ]\n ),\n localDate: {\n get() {\n if (this.date instanceof Date && !isNaN(this.date)) {\n return this.date.toISOString().split('T')[0];\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n let newDate = new Date(value);\n let current = new Date(this.date.getTime());\n current.setFullYear(newDate.getFullYear());\n current.setMonth(newDate.getMonth());\n current.setDate(newDate.getDate());\n this.setDate({date: current});\n }\n },\n localTime: {\n get() {\n if (this.date instanceof Date && !isNaN(this.date)) {\n return ('0' + this.date.getHours()).slice(-2) + ':' + ('0' + this.date.getMinutes()).slice(-2) + ':' + ('0' + this.date.getSeconds()).slice(-2);\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n let current = new Date(this.date.getTime());\n let parts = value.split(':');\n current.setHours(parseInt(parts[0]));\n current.setMinutes(parseInt(parts[1]));\n current.setSeconds(parseInt(parts[2]));\n this.setDate({date: current});\n }\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionDate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionDate.vue?vue&type=template&id=0172cc48&\"\nimport script from \"./TransactionDate.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionDate.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.date_and_time'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.localDate),expression:\"localDate\"}],ref:\"date\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"date\",\"title\":_vm.$t('firefly.date'),\"disabled\":_vm.index > 0,\"autocomplete\":\"off\",\"name\":\"date[]\",\"placeholder\":_vm.localDate},domProps:{\"value\":(_vm.localDate)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localDate=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.localTime),expression:\"localTime\"}],ref:\"time\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"time\",\"title\":_vm.$t('firefly.time'),\"disabled\":_vm.index > 0,\"autocomplete\":\"off\",\"name\":\"time[]\",\"placeholder\":_vm.localTime},domProps:{\"value\":(_vm.localTime)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localTime=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionBudget.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.budget') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"budget\"\n :title=\"$t('firefly.budget')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"budget_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"budget in this.budgetList\" :value=\"budget.id\" :label=\"budget.name\">{{ budget.name }}</option>\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionBudget\",\n data() {\n return {\n budgetList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.budgetList.push(\n {\n id: 0,\n name: this.$t('firefly.no_budget'),\n }\n );\n this.getBudgets();\n },\n getBudgets() {\n axios.get('./api/v1/budgets')\n .then(response => {\n this.parseBudgets(response.data);\n }\n );\n },\n parseBudgets(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n this.budgetList.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'budget_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBudget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBudget.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionBudget.vue?vue&type=template&id=5544dff3&\"\nimport script from \"./TransactionBudget.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionBudget.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.budget'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"budget\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.budget'),\"autocomplete\":\"off\",\"name\":\"budget_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.budgetList),function(budget){return _c('option',{attrs:{\"label\":budget.name},domProps:{\"value\":budget.id}},[_vm._v(_vm._s(budget.name))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.' + this.direction + '_account') }}\n </div>\n <vue-typeahead-bootstrap\n v-model=\"value.name\"\n :data=\"accounts\"\n :showOnFocus=true\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :inputName=\"direction + '[]'\"\n :serializer=\"item => item.name_with_balance\"\n :minMatchingChars=\"3\"\n :placeholder=\"$t('firefly.' + this.direction + '_account')\"\n @input=\"lookupAccount\"\n @hit=\"selectedAccount = $event\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary\" v-on:click=\"clearAccount\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from 'lodash';\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionAccount\",\n components: {VueTypeaheadBootstrap},\n props: ['index', 'direction', 'value', 'errors'],\n data() {\n return {\n query: '',\n accounts: [],\n accountTypes: [],\n initialSet: [],\n selectedAccount: {}\n }\n },\n created() {\n this.createInitialSet();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDestinationAllowedTypes',\n 'setSourceAllowedTypes'\n ],\n ),\n ...mapActions(\n [\n 'calcTransactionType'\n ]\n ),\n getACURL: function (types, query) {\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;\n },\n clearAccount: function () {\n this.accounts = this.initialSet;\n this.value = {name: ''};\n },\n lookupAccount: debounce(function () {\n if (0 === this.accountTypes.length) {\n // set the types from the default types for this direction:\n this.accountTypes = 'source' === this.direction ? this.sourceAllowedTypes : this.destinationAllowedTypes;\n }\n\n // update autocomplete URL:\n axios.get(this.getACURL(this.accountTypes, this.value.name))\n .then(response => {\n this.accounts = response.data;\n })\n }, 300),\n createInitialSet: function () {\n let types = this.sourceAllowedTypes;\n if ('destination' === this.direction) {\n types = this.destinationAllowedTypes;\n }\n\n axios.get(this.getACURL(types, ''))\n .then(response => {\n // console.log('initial set of accounts. ' + this.direction);\n this.accounts = response.data;\n this.initialSet = response.data;\n });\n }\n },\n watch: {\n selectedAccount: function (value) {\n this.value = value;\n this.value.name = this.value.name_with_balance;\n },\n value: function (value) {\n this.updateField({field: this.accountKey, index: this.index, value: value});\n // set the opposing account allowed set.\n let opposingAccounts = [];\n let type = value.type ? value.type : 'no_type';\n if ('undefined' !== typeof this.allowedOpposingTypes[this.direction]) {\n if ('undefined' !== typeof this.allowedOpposingTypes[this.direction][type]) {\n opposingAccounts = this.allowedOpposingTypes[this.direction][type];\n }\n }\n\n if ('source' === this.direction) {\n this.setDestinationAllowedTypes(opposingAccounts);\n }\n if ('destination' === this.direction) {\n this.setSourceAllowedTypes(opposingAccounts);\n }\n\n this.calcTransactionType();\n },\n // account: function (value) {\n // //this.value.name = value;\n // //console.log('watch account in direction ' + this.direction + ' change to \"' + value + '\"');\n // // this.account = value ? value.name_with_balance : null;\n // // // console.log('this.account (' + this.direction + ') = \"' + this.account + '\"');\n // //\n // //\n // // // set the opposing account allowed set.\n // // // console.log('opposing:');\n // // let opposingAccounts = [];\n // // let type = value.type ? value.type : 'no_type';\n // // if ('undefined' !== typeof this.allowedOpposingTypes[this.direction]) {\n // // if ('undefined' !== typeof this.allowedOpposingTypes[this.direction][type]) {\n // // opposingAccounts = this.allowedOpposingTypes[this.direction][type];\n // // }\n // // }\n // //\n // // if ('source' === this.direction) {\n // // this.setDestinationAllowedTypes(opposingAccounts);\n // // }\n // // if ('destination' === this.direction) {\n // // this.setSourceAllowedTypes(opposingAccounts);\n // // }\n //\n //\n // //\n // // this.calcTransactionType();\n //\n //\n // }\n\n // selectedAccount: function (value) {\n\n // },\n // sourceAllowedTypes: function (value) {\n // if ('source' === this.direction) {\n // // console.log('do update initial set in direction ' + this.direction + ' because allowed types changed');\n // // update initial set:\n // this.createInitialSet();\n // }\n // },\n // destinationAllowedTypes: function (value) {\n // if ('destination' === this.direction) {\n // // console.log('do update initial set in direction ' + this.direction + ' because allowed types changed');\n // // update initial set:\n // this.createInitialSet();\n // }\n // }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'defaultTransaction',\n 'sourceAllowedTypes',\n 'destinationAllowedTypes',\n 'allowedOpposingTypes'\n ]),\n accountKey: {\n get() {\n return 'source' === this.direction ? 'source_account' : 'destination_account';\n }\n },\n // selectedAccount: {\n // get() {\n // return this.transactions[this.index][this.accountKey];\n // },\n // set(value) {\n // // console.log('set selectedAccount for ' + this.direction);\n // // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n // }\n // }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionAccount.vue?vue&type=template&id=528f81f4&scoped=true&\"\nimport script from \"./TransactionAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAccount.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 \"528f81f4\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.' + this.direction + '_account'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"data\":_vm.accounts,\"showOnFocus\":true,\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"inputName\":_vm.direction + '[]',\"serializer\":function (item) { return item.name_with_balance; },\"minMatchingChars\":3,\"placeholder\":_vm.$t('firefly.' + this.direction + '_account')},on:{\"input\":_vm.lookupAccount,\"hit\":function($event){_vm.selectedAccount = $event}},model:{value:(_vm.value.name),callback:function ($$v) {_vm.$set(_vm.value, \"name\", $$v)},expression:\"value.name\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearAccount}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - SwitchAccount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n <span class=\"text-muted\" v-if=\"'any' !== this.transactionType\">\n {{ $t('firefly.' + this.transactionType) }}\n </span>\n <span class=\"text-muted\" v-if=\"'any' === this.transactionType\">&nbsp;</span>\n </div>\n <div class=\"btn-group d-flex\">\n <button class=\"btn btn-light\" @click=\"switchAccounts\">&harr;</button>\n </div>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"SwitchAccount\",\n props: ['index'],\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n\n switchAccounts() {\n let source = this.transactions[this.index].source_account;\n let dest = this.transactions[this.index].destination_account;\n\n this.updateField({field: 'source_account', index: this.index, value: dest});\n this.updateField({field: 'destination_account', index: this.index, value: source});\n\n // trigger other components.\n\n }\n },\n computed: {\n ...mapGetters(['transactions', 'transactionType']),\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchAccount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SwitchAccount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SwitchAccount.vue?vue&type=template&id=7fc33f88&scoped=true&\"\nimport script from \"./SwitchAccount.vue?vue&type=script&lang=js&\"\nexport * from \"./SwitchAccount.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 \"7fc33f88\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[('any' !== this.transactionType)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.' + this.transactionType))+\"\\n \")]):_vm._e(),_vm._v(\" \"),('any' === this.transactionType)?_c('span',{staticClass:\"text-muted\"},[_vm._v(\" \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"btn-group d-flex\"},[_c('button',{staticClass:\"btn btn-light\",on:{\"click\":_vm.switchAccounts}},[_vm._v(\"↔\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionAmount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs\">{{ $t('firefly.amount') }}</div>\n <div class=\"input-group\">\n <div class=\"input-group-prepend\">\n <div class=\"input-group-text\">{{ currencySymbol }}</div>\n </div>\n <input type=\"hidden\" name=\"currency_id[]\" :value=\"currencyId\"/>\n <input\n :title=\"$t('firefly.amount')\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"amount[]\"\n type=\"number\"\n v-model=\"amount\"\n :placeholder=\"$t('firefly.amount')\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n//const {mapRootState, mapRootGetters, mapRootActions, mapRootMutations} = createHelpers('');\n\n\nexport default {\n name: \"TransactionAmount\",\n props: ['index', 'errors'],\n data() {\n return {\n currencySymbol: ''\n }\n },\n watch: {\n transactionType: function (value) {\n switch (value) {\n case 'Transfer':\n case 'Withdrawal':\n // take currency from source:\n this.currencyId = this.transactions[this.index].source_account.currency_id;\n this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n return;\n case 'Deposit':\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n return;\n }\n },\n destinationAllowedTypes: function (value) {\n // aka source was updated. if source is asset/loan/debt/mortgage use it to set the currency:\n if ('undefined' !== typeof this.transactions[this.index].source_account.type) {\n if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].source_account.type) !== -1) {\n // get currency pref from source account\n this.currencyId = this.transactions[this.index].source_account.currency_id;\n this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n }\n }\n },\n sourceAllowedTypes: function (value) {\n // aka destination was updated. if destination is asset/loan/debt/mortgage use it to set the currency:\n // unless its already known to be a transfer\n if ('undefined' !== typeof this.transactions[this.index].destination_account.type && 'Transfer' !== this.transactionType) {\n if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].destination_account.type) !== -1) {\n // get currency pref from destination account\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n }\n }\n },\n\n },\n created: function () {\n this.updateCurrency();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n updateCurrency: function () {\n if (0 === this.currencyId) {\n // use default currency from store.\n this.currencySymbol = this.currencyPreference.symbol;\n this.currencyId = this.currencyPreference.id;\n }\n }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n amount: {\n get() {\n return this.transactions[this.index].amount;\n },\n set(value) {\n this.updateField({field: 'amount', index: this.index, value: value});\n }\n },\n currencyId: {\n get() {\n return this.transactions[this.index].currency_id;\n },\n set(value) {\n this.updateField({field: 'currency_id', index: this.index, value: value});\n }\n },\n selectedTransactionType: {\n get() {\n return this.transactionType;\n },\n set(value) {\n // console.log('set selectedAccount for ' + this.direction);\n // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAmount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAmount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionAmount.vue?vue&type=template&id=4003e1ea&scoped=true&\"\nimport script from \"./TransactionAmount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAmount.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 \"4003e1ea\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs\"},[_vm._v(_vm._s(_vm.$t('firefly.amount')))]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('div',{staticClass:\"input-group-prepend\"},[_c('div',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.currencySymbol))])]),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"currency_id[]\"},domProps:{\"value\":_vm.currencyId}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.amount'),\"autocomplete\":\"off\",\"name\":\"amount[]\",\"type\":\"number\",\"placeholder\":_vm.$t('firefly.amount')},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionForeignAmount.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <!-- FOREIGN AMOUNT -->\n <div class=\"form-group\">\n <input type=\"hidden\" name=\"foreign_currency_id[]\" :value=\"currencyId\"/>\n <div class=\"text-xs\">{{ $t('form.foreign_amount') }}</div>\n <div class=\"input-group\">\n <input\n :title=\"$t('form.foreign_amount')\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n :disabled=\"0===currencyId\"\n name=\"foreign_amount[]\"\n type=\"number\"\n v-model=\"amount\"\n :placeholder=\"$t('form.foreign_amount')\"\n >\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n//const {mapRootState, mapRootGetters, mapRootActions, mapRootMutations} = createHelpers('');\n\n\nexport default {\n name: \"TransactionForeignAmount\",\n props: ['index','errors'],\n data() {\n return {\n currencySymbol: '',\n allCurrencies: [],\n selectableCurrencies: [],\n }\n },\n watch: {\n transactionType: function (value) {\n // switch (value) {\n // case 'Transfer':\n // case 'Withdrawal':\n // // take currency from source:\n // //this.currencyId = this.transactions[this.index].source_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n // return;\n // case 'Deposit':\n // // take currency from destination:\n // this.currencyId = this.transactions[this.index].destination_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n // return;\n // }\n },\n destinationAllowedTypes: function (value) {\n // // aka source was updated. if source is asset/loan/debt/mortgage use it to set the currency:\n // if ('undefined' !== typeof this.transactions[this.index].source_account.type) {\n // if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].source_account.type) !== -1) {\n // // get currency pref from source account\n // this.currencyId = this.transactions[this.index].source_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].source_account.currency_symbol;\n // }\n // }\n },\n sourceAllowedTypes: function (value) {\n // // aka destination was updated. if destination is asset/loan/debt/mortgage use it to set the currency:\n // // unless its already known to be a transfer\n // if ('undefined' !== typeof this.transactions[this.index].destination_account.type && 'Transfer' !== this.transactionType) {\n // if (['Asset account', 'Loan', 'Debt', 'Mortgage'].indexOf(this.transactions[this.index].destination_account.type) !== -1) {\n // // get currency pref from destination account\n // this.currencyId = this.transactions[this.index].destination_account.currency_id;\n // this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n // }\n // }\n },\n\n },\n created: function () {\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n\n // updateCurrency: function () {\n // if (0 === this.currencyId) {\n // // use default currency from store.\n // this.currencySymbol = this.currencyPreference.symbol;\n // this.currencyId = this.currencyPreference.id;\n // }\n // }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n amount: {\n get() {\n return this.transactions[this.index].foreign_amount;\n },\n set(value) {\n this.updateField({field: 'foreign_amount', index: this.index, value: value});\n }\n },\n currencyId: {\n get() {\n return this.transactions[this.index].foreign_currency_id;\n },\n set(value) {\n this.updateField({field: 'foreign_currency_id', index: this.index, value: value});\n }\n },\n selectedTransactionType: {\n get() {\n return this.transactionType;\n },\n set(value) {\n // console.log('set selectedAccount for ' + this.direction);\n // console.log(value);\n // this.updateField({field: this.accountKey, index: this.index, value: value});\n }\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignAmount.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignAmount.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionForeignAmount.vue?vue&type=template&id=39931bed&scoped=true&\"\nimport script from \"./TransactionForeignAmount.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionForeignAmount.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 \"39931bed\",\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:\"form-group\"},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"foreign_currency_id[]\"},domProps:{\"value\":_vm.currencyId}}),_vm._v(\" \"),_c('div',{staticClass:\"text-xs\"},[_vm._v(_vm._s(_vm.$t('form.foreign_amount')))]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('form.foreign_amount'),\"autocomplete\":\"off\",\"disabled\":0===_vm.currencyId,\"name\":\"foreign_amount[]\",\"type\":\"number\",\"placeholder\":_vm.$t('form.foreign_amount')},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}})]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionForeignCurrency.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <!-- FOREIGN Currency -->\n <div class=\"form-group\" v-if=\"selectIsVisible\">\n <div class=\"text-xs\">&nbsp;</div>\n <div class=\"input-group\">\n <select name=\"foreign_currency_id[]\" v-model=\"currencyId\" class=\"form-control\">\n <option v-for=\"currency in selectableCurrencies\" :label=\"currency.name\" :value=\"currency.id\">{{ currency.name }}</option>\n </select>\n </div>\n </div>\n</template>\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionForeignCurrency\",\n props: ['index'],\n data() {\n return {\n allCurrencies: [],\n selectableCurrencies: [],\n lockedCurrency: 0,\n selectIsVisible: true\n }\n },\n watch: {\n transactionType: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === value) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n destinationAllowedTypes: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === this.transactionType) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n sourceAllowedTypes: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === this.transactionType) {\n // take currency from destination:\n this.currencyId = this.transactions[this.index].destination_account.currency_id;\n this.currencySymbol = this.transactions[this.index].destination_account.currency_symbol;\n this.lockedCurrency = this.currencyId;\n }\n this.filterCurrencies();\n this.checkVisibility();\n },\n\n },\n created: function () {\n this.getAllCurrencies();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n checkVisibility: function () {\n // have the same currency ID, but not zero, and is a transfer\n let sourceId = this.transactions[this.index].source_account.currency_id;\n let destId = this.transactions[this.index].destination_account.currency_id;\n this.selectIsVisible = true;\n if (sourceId === destId && 0 !== sourceId && 'Transfer' === this.transactionType) {\n this.selectIsVisible = false;\n this.currencyId = 0;\n }\n },\n\n getAllCurrencies: function () {\n axios.get('./api/v1/autocomplete/currencies')\n .then(response => {\n this.allCurrencies = response.data;\n this.filterCurrencies();\n }\n );\n\n },\n filterCurrencies() {\n // if a currency is locked only that currency can (and must) be selected:\n if (0 !== this.lockedCurrency) {\n for (let key in this.allCurrencies) {\n if (this.allCurrencies.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = this.allCurrencies[key];\n if (current.id === this.lockedCurrency) {\n this.selectableCurrencies = [current];\n this.currencyId = current.id;\n }\n }\n }\n return;\n }\n\n\n this.selectableCurrencies = [\n {\n \"id\": 0,\n \"name\": this.$t('firefly.no_currency')\n }\n ];\n for (let key in this.allCurrencies) {\n if (this.allCurrencies.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = this.allCurrencies[key];\n // add to array if not \"locked\" in place:\n if (this.transactions[this.index].currency_id !== current.id) {\n this.selectableCurrencies.push(current);\n }\n // deselect impossible currency.\n if (this.transactions[this.index].currency_id === current.id && this.currencyId === current.id) {\n this.currencyId = 0;\n }\n }\n }\n //currency_id\n\n // always add empty currency:\n // this.selectableCurrencies = this.allCurrencies;\n // this.selectableCurrencies.reverse();\n // this.selectableCurrencies.push(\n // ;\n // this.selectableCurrencies.reverse();\n\n // remove\n\n }\n\n // updateCurrency: function () {\n // if (0 === this.currencyId) {\n // // use default currency from store.\n // this.currencySymbol = this.currencyPreference.symbol;\n // this.currencyId = this.currencyPreference.id;\n // }\n // }\n },\n computed: {\n currencyPreference: {\n get() {\n return this.$store.state.currencyPreference;\n }\n },\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'destinationAllowedTypes',\n 'sourceAllowedTypes',\n ]),\n currencyId: {\n get() {\n return this.transactions[this.index].foreign_currency_id;\n },\n set(value) {\n this.updateField({field: 'foreign_currency_id', index: this.index, value: value});\n }\n },\n normalCurrencyId: {\n get() {\n return this.transactions[this.index].currency_id;\n },\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionForeignCurrency.vue?vue&type=template&id=7008e22e&scoped=true&\"\nimport script from \"./TransactionForeignCurrency.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionForeignCurrency.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 \"7008e22e\",\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 (_vm.selectIsVisible)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs\"},[_vm._v(\" \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.currencyId),expression:\"currencyId\"}],staticClass:\"form-control\",attrs:{\"name\":\"foreign_currency_id[]\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.currencyId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.selectableCurrencies),function(currency){return _c('option',{attrs:{\"label\":currency.name},domProps:{\"value\":currency.id}},[_vm._v(_vm._s(currency.name))])}),0)])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionCustomDates.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"form-group\" v-for=\"(enabled, name) in enabledDates\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"enabled\">\n {{ $t('form.' + name) }}\n </div>\n <div class=\"input-group\" v-if=\"enabled\">\n <input\n class=\"form-control\"\n type=\"date\"\n :ref=\"name\"\n :title=\"$t('form.' + name)\"\n :value=\"getFieldValue(name)\"\n @change=\"setFieldValue($event, name)\"\n autocomplete=\"off\"\n :name=\"name + '[]'\"\n :placeholder=\"$t('form.' + name)\"\n v-on:submit.prevent\n >\n </div>\n </div>\n </div>\n</template>\n\n<script>\n// TODO: error handling\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\nexport default {\n name: \"TransactionCustomDates\",\n props: ['enabledDates', 'index', 'errors'],\n methods: {\n ...mapGetters(\n [\n 'transactions'\n ]\n ),\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n getFieldValue(field) {\n return this.transactions()[parseInt(this.index)][field] ?? '';\n },\n setFieldValue(event, field) {\n this.updateField({index: this.index, field: field, value: event.target.value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCustomDates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCustomDates.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionCustomDates.vue?vue&type=template&id=4d30715b&scoped=true&\"\nimport script from \"./TransactionCustomDates.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionCustomDates.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 \"4d30715b\",\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._l((_vm.enabledDates),function(enabled,name){return _c('div',{staticClass:\"form-group\"},[(enabled)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('form.' + name))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(enabled)?_c('div',{staticClass:\"input-group\"},[_c('input',{ref:name,refInFor:true,staticClass:\"form-control\",attrs:{\"type\":\"date\",\"title\":_vm.$t('form.' + name),\"autocomplete\":\"off\",\"name\":name + '[]',\"placeholder\":_vm.$t('form.' + name)},domProps:{\"value\":_vm.getFieldValue(name)},on:{\"change\":function($event){return _vm.setFieldValue($event, name)},\"submit\":function($event){$event.preventDefault();}}})]):_vm._e()])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionCategory.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.category') }}\n </div>\n\n <vue-typeahead-bootstrap\n inputName=\"category[]\"\n v-model=\"value\"\n :data=\"categories\"\n :placeholder=\"$t('firefly.category')\"\n :showOnFocus=true\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n :minMatchingChars=\"3\"\n :serializer=\"item => item.name\"\n @hit=\"selectedCategory = $event\"\n @input=\"lookupCategory\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearCategory\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['value', 'index', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionCategory\",\n data() {\n return {\n categories: [],\n initialSet: []\n }\n },\n\n created() {\n\n // initial list of accounts:\n axios.get(this.getACURL(''))\n .then(response => {\n this.categories = response.data;\n this.initialSet = response.data;\n });\n },\n\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n clearCategory: function () {\n this.value = null;\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/categories?query=' + query;\n },\n lookupCategory: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.categories = response.data;\n })\n }, 300)\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'category', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n ),\n selectedCategory: {\n get() {\n return this.categories[this.index].name;\n },\n set(value) {\n this.value = value.name;\n }\n }\n }\n}\n</script>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCategory.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionCategory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionCategory.vue?vue&type=template&id=30308954&\"\nimport script from \"./TransactionCategory.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionCategory.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.category'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"category[]\",\"data\":_vm.categories,\"placeholder\":_vm.$t('firefly.category'),\"showOnFocus\":true,\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : '',\"minMatchingChars\":3,\"serializer\":function (item) { return item.name; }},on:{\"hit\":function($event){_vm.selectedCategory = $event},\"input\":_vm.lookupCategory},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearCategory}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionBill.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.bill') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"bill\"\n :title=\"$t('firefly.bill')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"bill_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"bill in this.billList\" :value=\"bill.id\" :label=\"bill.name\">{{ bill.name }}</option>\n\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['value', 'index', 'errors'],\n name: \"TransactionBill\",\n data() {\n return {\n billList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.billList.push(\n {\n id: 0,\n name: this.$t('firefly.no_bill'),\n }\n );\n this.getBills();\n },\n getBills() {\n axios.get('./api/v1/bills')\n .then(response => {\n this.parseBills(response.data);\n }\n );\n },\n parseBills(data) {\n for (let key in data.data) {\n if (data.data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data.data[key];\n this.billList.push(\n {\n id: parseInt(current.id),\n name: current.attributes.name\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'bill_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters(\n [\n 'transactionType',\n 'transactions',\n ]\n )\n }\n}\n</script>\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBill.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionBill.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionBill.vue?vue&type=template&id=f94af89c&\"\nimport script from \"./TransactionBill.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionBill.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.bill'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"bill\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.bill'),\"autocomplete\":\"off\",\"name\":\"bill_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.billList),function(bill){return _c('option',{attrs:{\"label\":bill.name},domProps:{\"value\":bill.id}},[_vm._v(_vm._s(bill.name))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionTags.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.tags') }}\n </div>\n <div class=\"input-group\">\n <vue-tags-input\n v-model=\"currentTag\"\n :add-only-from-autocomplete=\"false\"\n :autocomplete-items=\"autocompleteItems\"\n :tags=\"tags\"\n :title=\"$t('firefly.tags')\"\n v-bind:placeholder=\"$t('firefly.tags')\"\n @tags-changed=\"newTags => this.tags = newTags\"\n />\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\nimport VueTagsInput from \"@johmun/vue-tags-input\";\nimport axios from \"axios\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"TransactionTags\",\n components: {\n VueTagsInput\n },\n props: ['value', 'index', 'errors'],\n data() {\n return {\n autocompleteItems: [],\n debounce: null,\n tags: [],\n currentTag: '',\n updateTags: true // the idea is that this is always true, except when the tags-function sets the value.\n };\n },\n watch: {\n 'currentTag': 'initItems',\n value: function (value) {\n //console.log('watch: value');\n //console.log(value);\n this.updateField({field: 'tags', index: this.index, value: value});\n this.updateTags = false;\n this.tags = value;\n },\n tags: function (value) {\n if (this.updateTags) {\n //console.log('watch: tags');\n\n let shortList = [];\n for (let key in value) {\n if (value.hasOwnProperty(key)) {\n shortList.push({text: value[key].text});\n }\n }\n this.value = shortList;\n }\n this.updateTags = true;\n }\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n initItems() {\n if (this.currentTag.length < 2) {\n return;\n }\n const url = document.getElementsByTagName('base')[0].href + `api/v1/autocomplete/tags?query=${this.currentTag}`;\n\n clearTimeout(this.debounce);\n this.debounce = setTimeout(() => {\n axios.get(url).then(response => {\n this.autocompleteItems = response.data.map(item => {\n return {text: item.tag};\n });\n }).catch(() => console.warn('Oh. Something went wrong loading tags.'));\n }, 300);\n },\n },\n\n\n}\n</script>\n<style>\n.vue-tags-input {\n width: 100%;\n max-width: 100% !important;\n display: block;\n border-radius: 0.25rem;\n}\n\n.ti-input {\n border-radius: 0.25rem;\n max-width: 100%;\n width: 100%;\n}\n\n.ti-new-tag-input {\n font-size: 1rem;\n}\n</style>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionTags.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionTags.vue?vue&type=template&id=ec497e92&\"\nimport script from \"./TransactionTags.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionTags.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TransactionTags.vue?vue&type=style&index=0&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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {\nvar this$1 = this;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.tags'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('vue-tags-input',{attrs:{\"add-only-from-autocomplete\":false,\"autocomplete-items\":_vm.autocompleteItems,\"tags\":_vm.tags,\"title\":_vm.$t('firefly.tags'),\"placeholder\":_vm.$t('firefly.tags')},on:{\"tags-changed\":function (newTags) { return this$1.tags = newTags; }},model:{value:(_vm.currentTag),callback:function ($$v) {_vm.currentTag=$$v},expression:\"currentTag\"}})],1),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionPiggyBank.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.piggy_bank') }}\n </div>\n <div class=\"input-group\">\n <select\n ref=\"piggy_bank_id\"\n :title=\"$t('firefly.piggy_bank')\"\n v-model=\"value\"\n autocomplete=\"off\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n name=\"piggy_bank_id[]\"\n v-on:submit.prevent\n >\n <option v-for=\"piggy in this.piggyList\" :value=\"piggy.id\" :label=\"piggy.name_with_balance\">{{ piggy.name_with_balance }}</option>\n\n </select>\n </div>\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n </div>\n</template>\n\n<script>\n\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionPiggyBank\",\n data() {\n return {\n piggyList: []\n }\n },\n created() {\n this.collectData();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n collectData() {\n this.piggyList.push(\n {\n id: 0,\n name_with_balance: this.$t('firefly.no_piggy_bank'),\n }\n );\n this.getPiggies();\n },\n getPiggies() {\n axios.get('./api/v1/autocomplete/piggy-banks-with-balance')\n .then(response => {\n this.parsePiggies(response.data);\n }\n );\n },\n parsePiggies(data) {\n for (let key in data) {\n if (data.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n let current = data[key];\n this.piggyList.push(\n {\n id: parseInt(current.id),\n name_with_balance: current.name_with_balance\n }\n );\n }\n }\n },\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'piggy_bank_id', index: this.index, value: value});\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n ])\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionPiggyBank.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionPiggyBank.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionPiggyBank.vue?vue&type=template&id=0646debe&\"\nimport script from \"./TransactionPiggyBank.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionPiggyBank.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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.piggy_bank'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],ref:\"piggy_bank_id\",class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"title\":_vm.$t('firefly.piggy_bank'),\"autocomplete\":\"off\",\"name\":\"piggy_bank_id[]\"},on:{\"submit\":function($event){$event.preventDefault();},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((this.piggyList),function(piggy){return _c('option',{attrs:{\"label\":piggy.name_with_balance},domProps:{\"value\":piggy.id}},[_vm._v(_vm._s(piggy.name_with_balance))])}),0)]),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionInternalReference.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.internal_reference') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"text\"\n name=\"internal_reference[]\"\n v-model=\"value\"\n :placeholder=\"$t('firefly.internal_reference')\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button type=\"button\" class=\"btn btn-outline-secondary\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionInternalReference\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'internal_reference', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionInternalReference.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionInternalReference.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionInternalReference.vue?vue&type=template&id=ce9f5a82&scoped=true&\"\nimport script from \"./TransactionInternalReference.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionInternalReference.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 \"ce9f5a82\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.internal_reference'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"text\",\"name\":\"internal_reference[]\",\"placeholder\":_vm.$t('firefly.internal_reference')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\n\nexport { render, staticRenderFns }","<!--\n - TransactionInternalReference.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.external_url') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"url\"\n name=\"external_url[]\"\n :placeholder=\"$t('firefly.external_url')\"\n v-model=\"value\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button type=\"button\" class=\"btn btn-outline-secondary\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionExternalUrl\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'external_url', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionExternalUrl.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionExternalUrl.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionExternalUrl.vue?vue&type=template&id=8b7a9952&scoped=true&\"\nimport script from \"./TransactionExternalUrl.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionExternalUrl.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 \"8b7a9952\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.external_url'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"type\":\"url\",\"name\":\"external_url[]\",\"placeholder\":_vm.$t('firefly.external_url')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\n\nexport { render, staticRenderFns }","<!--\n - TransactionNotes.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.notes') }}\n </div>\n <div class=\"input-group\">\n <textarea\n v-model=\"value\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n :placeholder=\"$t('firefly.notes')\"\n ></textarea>\n </div>\n </div>\n\n</template>\n\n<script>\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionNotes\",\n methods: {\n ...mapMutations(\n [\n 'updateField',\n ],\n ),\n },\n watch: {\n value: function (value) {\n this.updateField({field: 'notes', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionNotes.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionNotes.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionNotes.vue?vue&type=template&id=5f8039da&scoped=true&\"\nimport script from \"./TransactionNotes.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionNotes.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 \"5f8039da\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.notes'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.value),expression:\"value\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"placeholder\":_vm.$t('firefly.notes')},domProps:{\"value\":(_vm.value)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionLinks.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionLinks.vue?vue&type=script&lang=js&\"","<!--\n - TransactionLinks.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.journal_links') }}\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <p v-if=\"value.length === 0\">\n <button data-toggle=\"modal\" data-target=\"#linkModal\" class=\"btn btn-default btn-xs\"><i class=\"fas fa-plus\"></i> Add transaction link</button>\n </p>\n <ul class=\"list-group\" v-if=\"value.length > 0\">\n <li class=\"list-group-item\" v-for=\"transaction in value\">\n <em>{{ getTextForLinkType(transaction.link_type_id) }}</em>\n <a :href='\"./transaction/show/\" + transaction.transaction_group_id'>{{ transaction.description }}</a>\n\n <span v-if=\"transaction.type === 'withdrawal'\">\n (<span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount) * -1)\n }}</span>)\n </span>\n <span v-if=\"transaction.type === 'deposit'\">\n (<span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))\n }}</span>)\n </span>\n <span v-if=\"transaction.type === 'transfer'\">\n (<span class=\"text-info\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))\n }}</span>)\n </span>\n <div class=\"btn-group btn-group-xs float-right\">\n <a href=\"#\" class=\"btn btn-xs btn-default\"><i class=\"far fa-edit\"></i></a>\n <a href=\"#\" class=\"btn btn-xs btn-danger\"><i class=\"far fa-trash-alt\"></i></a>\n </div>\n </li>\n </ul>\n <div class=\"form-text\" v-if=\"value.length > 0\">\n <button data-toggle=\"modal\" data-target=\"#linkModal\" class=\"btn btn-default\"><i class=\"fas fa-plus\"></i></button>\n </div>\n </div>\n </div>\n </div>\n <!-- modal -->\n <div class=\"modal\" tabindex=\"-1\" id=\"linkModal\">\n <div class=\"modal-dialog modal-lg\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">Transaction thing dialog.</h5>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col\">\n <p>\n Use this form to search for transactions you wish to link to this one. When in doubt, use <code>id:*</code> where the ID is the number from\n the URL.\n </p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <form v-on:submit.prevent=\"search\">\n <div class=\"input-group\">\n <input autocomplete=\"off\" maxlength=\"255\" type=\"text\" name=\"search\" v-model=\"query\" id=\"query\"\n class=\"form-control\" placeholder=\"Search query\">\n <div class=\"input-group-append\">\n <button type=\"submit\" class=\"btn btn-default\"><i class=\"fas fa-search\"></i> Search</button>\n </div>\n </div>\n </form>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <span v-if=\"searching\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n <h4 v-if=\"searchResults.length > 0\">Search results</h4>\n <table class=\"table table-sm\" v-if=\"searchResults.length > 0\">\n <thead>\n <tr>\n <th style=\"width:33%\" colspan=\"2\">Include?</th>\n <th>Transaction</th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"result in searchResults\">\n <td>\n <input type=\"checkbox\" class=\"form-control\"\n @change=\"selectTransaction($event)\"\n v-model=\"result.selected\"\n />\n </td>\n <td>\n <select\n @change=\"selectLinkType($event)\"\n class=\"form-control\"\n v-model=\"result.link_type_id\"\n >\n <option v-for=\"linkType in linkTypes\" :value=\"linkType.id + '-' + linkType.direction\" :label=\"linkType.type\">{{\n linkType.type\n }}\n </option>\n </select>\n </td>\n <td>\n <a :href=\"'./transactions/show/' + result.transaction_group_id\">{{ result.description }}</a>\n <span v-if=\"result.type === 'withdrawal'\">\n (<span class=\"text-danger\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount) * -1)\n }}</span>)\n </span>\n <span v-if=\"result.type === 'deposit'\">\n (<span class=\"text-success\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))\n }}</span>)\n </span>\n <span v-if=\"result.type === 'transfer'\">\n (<span class=\"text-info\">{{\n Intl.NumberFormat(locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))\n }}</span>)\n </span>\n <br/>\n <em>\n <a :href=\"'./accounts/show/' + result.source_id\">{{ result.source_name }}</a>\n &rarr;\n <a :href=\"'./accounts/show/' + result.destination_id\">{{ result.destination_name }}</a>\n </em>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\n// TODO error handling\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionLinks\",\n data() {\n return {\n searchResults: [],\n include: [],\n locale: 'en-US',\n linkTypes: [],\n query: '',\n searching: false\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.getLinkTypes();\n },\n watch: {\n value: function (value) {\n //console.log('Selected transactions is now:');\n //console.log(value);\n }\n },\n methods: {\n getTextForLinkType: function (linkTypeId) {\n let parts = linkTypeId.split('-');\n for (let i in this.linkTypes) {\n if (this.linkTypes.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.linkTypes[i];\n //console.log(parts);\n //console.log(current);\n if (parts[0] === current.id && parts[1] === current.direction) {\n return current.type;\n }\n }\n }\n return 'text for #' + linkTypeId;\n },\n selectTransaction: function (event) {\n for (let i in this.searchResults) {\n if (this.searchResults.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.searchResults[i];\n if (current.selected) {\n this.addToSelected(current);\n }\n if (!current.selected) {\n // remove from\n this.removeFromSelected(current);\n }\n }\n }\n },\n selectLinkType: function (event) {\n for (let i in this.searchResults) {\n if (this.searchResults.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.searchResults[i];\n this.updateSelected(current.transaction_journal_id, current.link_type_id);\n }\n }\n },\n updateSelected(journalId, linkTypeId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (parseInt(current.transaction_journal_id) === journalId) {\n this.value[i].link_type_id = linkTypeId;\n }\n }\n }\n },\n addToSelected(journal) {\n const result = this.value.find(({transaction_journal_id}) => transaction_journal_id === journal.transaction_journal_id);\n if (typeof result === 'undefined') {\n this.value.push(journal);\n }\n },\n removeFromSelected(journal) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journal.transaction_journal_id) {\n this.value.splice(parseInt(i), 1);\n }\n }\n }\n },\n getLinkTypes: function () {\n let url = './api/v1/link_types';\n axios.get(url)\n .then(response => {\n this.parseLinkTypes(response.data);\n }\n );\n },\n parseLinkTypes: function (data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = data.data[i];\n let linkTypeInward = {\n id: current.id,\n type: current.attributes.inward,\n direction: 'inward'\n };\n let linkTypeOutward = {\n id: current.id,\n type: current.attributes.outward,\n direction: 'outward'\n };\n if (linkTypeInward.type === linkTypeOutward.type) {\n linkTypeInward.type = linkTypeInward.type + ' (←)';\n linkTypeOutward.type = linkTypeOutward.type + ' (→)';\n }\n this.linkTypes.push(linkTypeInward);\n this.linkTypes.push(linkTypeOutward);\n }\n }\n },\n search: function () {\n this.searching = true;\n this.searchResults = [];\n let url = './api/v1/search/transactions?limit=10&query=' + this.query;\n axios.get(url)\n .then(response => {\n this.parseSearch(response.data);\n }\n );\n },\n parseSearch: function (data) {\n for (let i in data.data) {\n if (data.data.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n for (let ii in data.data[i].attributes.transactions) {\n if (data.data[i].attributes.transactions.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let current = data.data[i].attributes.transactions[ii];\n current.transaction_group_id = parseInt(data.data[i].id);\n current.selected = this.isJournalSelected(current.transaction_journal_id);\n current.link_type_id = this.getJournalLinkType(current.transaction_journal_id);\n current.link_type_text = '';\n this.searchResults.push(current);\n }\n }\n }\n }\n this.searching = false;\n },\n getJournalLinkType: function (journalId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journalId) {\n return current.link_type_id;\n }\n }\n }\n return '1-inward';\n },\n isJournalSelected: function (journalId) {\n for (let i in this.value) {\n if (this.value.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.value[i];\n if (current.transaction_journal_id === journalId) {\n return true;\n }\n }\n }\n return false;\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionLinks.vue?vue&type=template&id=1e068e4e&\"\nimport script from \"./TransactionLinks.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionLinks.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('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.journal_links'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.value.length === 0)?_c('p',[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.value.length > 0)?_c('ul',{staticClass:\"list-group\"},_vm._l((_vm.value),function(transaction){return _c('li',{staticClass:\"list-group-item\"},[_c('em',[_vm._v(_vm._s(_vm.getTextForLinkType(transaction.link_type_id)))]),_vm._v(\" \"),_c('a',{attrs:{\"href\":\"./transaction/show/\" + transaction.transaction_group_id}},[_vm._v(_vm._s(transaction.description))]),_vm._v(\" \"),(transaction.type === 'withdrawal')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount) * -1)))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(transaction.type === 'deposit')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(transaction.type === 'transfer')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-info\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: transaction.currency_code\n }).format(parseFloat(transaction.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),_vm._m(1,true)])}),0):_vm._e(),_vm._v(\" \"),(_vm.value.length > 0)?_c('div',{staticClass:\"form-text\"},[_vm._m(2)]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"modal\",attrs:{\"tabindex\":\"-1\",\"id\":\"linkModal\"}},[_c('div',{staticClass:\"modal-dialog modal-lg\"},[_c('div',{staticClass:\"modal-content\"},[_vm._m(3),_vm._v(\" \"),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"container-fluid\"},[_vm._m(4),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.search($event)}}},[_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.query),expression:\"query\"}],staticClass:\"form-control\",attrs:{\"autocomplete\":\"off\",\"maxlength\":\"255\",\"type\":\"text\",\"name\":\"search\",\"id\":\"query\",\"placeholder\":\"Search query\"},domProps:{\"value\":(_vm.query)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.query=$event.target.value}}}),_vm._v(\" \"),_vm._m(5)])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.searching)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e(),_vm._v(\" \"),(_vm.searchResults.length > 0)?_c('h4',[_vm._v(\"Search results\")]):_vm._e(),_vm._v(\" \"),(_vm.searchResults.length > 0)?_c('table',{staticClass:\"table table-sm\"},[_vm._m(6),_vm._v(\" \"),_c('tbody',_vm._l((_vm.searchResults),function(result){return _c('tr',[_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(result.selected),expression:\"result.selected\"}],staticClass:\"form-control\",attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(result.selected)?_vm._i(result.selected,null)>-1:(result.selected)},on:{\"change\":[function($event){var $$a=result.selected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(result, \"selected\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(result, \"selected\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(result, \"selected\", $$c)}},function($event){return _vm.selectTransaction($event)}]}})]),_vm._v(\" \"),_c('td',[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(result.link_type_id),expression:\"result.link_type_id\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(result, \"link_type_id\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.selectLinkType($event)}]}},_vm._l((_vm.linkTypes),function(linkType){return _c('option',{attrs:{\"label\":linkType.type},domProps:{\"value\":linkType.id + '-' + linkType.direction}},[_vm._v(_vm._s(linkType.type)+\"\\n \")])}),0)]),_vm._v(\" \"),_c('td',[_c('a',{attrs:{\"href\":'./transactions/show/' + result.transaction_group_id}},[_vm._v(_vm._s(result.description))]),_vm._v(\" \"),(result.type === 'withdrawal')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-danger\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount) * -1)))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(result.type === 'deposit')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-success\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),(result.type === 'transfer')?_c('span',[_vm._v(\"\\n (\"),_c('span',{staticClass:\"text-info\"},[_vm._v(_vm._s(Intl.NumberFormat(_vm.locale, {\n style: 'currency',\n currency: result.currency_code\n }).format(parseFloat(result.amount))))]),_vm._v(\")\\n \")]):_vm._e(),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('em',[_c('a',{attrs:{\"href\":'./accounts/show/' + result.source_id}},[_vm._v(_vm._s(result.source_name))]),_vm._v(\"\\n →\\n \"),_c('a',{attrs:{\"href\":'./accounts/show/' + result.destination_id}},[_vm._v(_vm._s(result.destination_name))])])])])}),0)]):_vm._e()])])])]),_vm._v(\" \"),_vm._m(7)])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-default btn-xs\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#linkModal\"}},[_c('i',{staticClass:\"fas fa-plus\"}),_vm._v(\" Add transaction link\")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"btn-group btn-group-xs float-right\"},[_c('a',{staticClass:\"btn btn-xs btn-default\",attrs:{\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-edit\"})]),_vm._v(\" \"),_c('a',{staticClass:\"btn btn-xs btn-danger\",attrs:{\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-default\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#linkModal\"}},[_c('i',{staticClass:\"fas fa-plus\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"Transaction thing dialog.\")]),_vm._v(\" \"),_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\",\"aria-label\":\"Close\"}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('p',[_vm._v(\"\\n Use this form to search for transactions you wish to link to this one. When in doubt, use \"),_c('code',[_vm._v(\"id:*\")]),_vm._v(\" where the ID is the number from\\n the URL.\\n \")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-default\",attrs:{\"type\":\"submit\"}},[_c('i',{staticClass:\"fas fa-search\"}),_vm._v(\" Search\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"33%\"},attrs:{\"colspan\":\"2\"}},[_vm._v(\"Include?\")]),_vm._v(\" \"),_c('th',[_vm._v(\"Transaction\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\",\"data-dismiss\":\"modal\"}},[_vm._v(\"Close\")])])}]\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAttachments.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionAttachments.vue?vue&type=script&lang=js&\"","<!--\n - TransactionAttachments.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.attachments') }}\n </div>\n <div class=\"input-group\">\n <input\n type=\"file\"\n multiple\n ref=\"att\"\n name=\"attachments[]\"\n class=\"form-control\"\n />\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"TransactionAttachments\",\n props: ['transaction_journal_id'],\n watch: {\n transaction_journal_id: function (value) {\n // do upload!\n if (0 !== value) {\n this.doUpload();\n }\n }\n },\n methods: {\n doUpload: function () {\n let uploads = [];\n for (let i in this.$refs.att.files) {\n if (this.$refs.att.files.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.$refs.att.files[i];\n let fileReader = new FileReader();\n let theParent = this; // dont ask me why i need to do this.\n fileReader.onloadend = function (evt) {\n if (evt.target.readyState === FileReader.DONE) {\n // do upload here\n const uri = './api/v1/attachments';\n const data = {\n filename: current.name,\n attachable_type: 'TransactionJournal',\n attachable_id: theParent.transaction_journal_id,\n };\n // create new attachment:\n axios.post(uri, data).then(response => {\n // upload actual file:\n const uploadUri = './api/v1/attachments/' + response.data.data.id + '/upload';\n axios\n .post(uploadUri, new Blob([evt.target.result]))\n .then(attachmentResponse => {\n // TODO feedback etc.\n theParent.$emit('uploaded-attachments');\n });\n });\n }\n }\n fileReader.readAsArrayBuffer(current);\n }\n }\n if (0 === this.$refs.att.files.length) {\n this.$emit('uploaded-attachments', this.transaction_journal_id);\n }\n }\n }\n\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionAttachments.vue?vue&type=template&id=f8d170e2&scoped=true&\"\nimport script from \"./TransactionAttachments.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionAttachments.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 \"f8d170e2\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.attachments'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"input-group\"},[_c('input',{ref:\"att\",staticClass:\"form-control\",attrs:{\"type\":\"file\",\"multiple\":\"\",\"name\":\"attachments[]\"}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionGroupTitle.vue\n - Copyright (c) 2021 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div class=\"form-group\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.split_transaction_title') }}\n </div>\n <vue-typeahead-bootstrap\n inputName=\"group_title\"\n v-model=\"value\"\n :data=\"descriptions\"\n :placeholder=\"$t('firefly.split_transaction_title')\"\n :showOnFocus=true\n :minMatchingChars=\"3\"\n :serializer=\"item => item.description\"\n @input=\"lookupDescription\"\n :inputClass=\"errors.length > 0 ? 'is-invalid' : ''\"\n >\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button v-on:click=\"clearDescription\" class=\"btn btn-outline-secondary\" type=\"button\"><i class=\"far fa-trash-alt\"></i></button>\n </div>\n </template>\n </vue-typeahead-bootstrap>\n\n <span v-if=\"errors.length > 0\">\n <span v-for=\"error in errors\" class=\"text-danger small\">{{ error }}<br/></span>\n </span>\n\n </div>\n</template>\n\n<script>\nimport VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\nimport {createNamespacedHelpers} from \"vuex\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\nexport default {\n props: ['value', 'errors'],\n name: \"TransactionGroupTitle\",\n components: {VueTypeaheadBootstrap},\n data() {\n return {\n descriptions: [],\n initialSet: []\n }\n },\n\n created() {\n axios.get(this.getACURL(''))\n .then(response => {\n this.descriptions = response.data;\n this.initialSet = response.data;\n });\n },\n watch: {\n value: function (value) {\n //console.log('set');\n this.setGroupTitle({groupTitle: value});\n }\n },\n methods: {\n ...mapMutations(\n [\n 'setGroupTitle'\n ],\n ),\n ...mapGetters(\n [\n 'groupTitle'\n ]\n ),\n clearDescription: function () {\n this.setGroupTitle({groupTitle: ''});\n this.value = '';\n },\n getACURL: function (query) {\n // update autocomplete URL:\n return document.getElementsByTagName('base')[0].href + 'api/v1/autocomplete/transactions?query=' + query;\n },\n lookupDescription: debounce(function () {\n // update autocomplete URL:\n axios.get(this.getACURL(this.value))\n .then(response => {\n this.descriptions = response.data;\n })\n }, 300)\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionGroupTitle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransactionGroupTitle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionGroupTitle.vue?vue&type=template&id=a36ef926&scoped=true&\"\nimport script from \"./TransactionGroupTitle.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionGroupTitle.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 \"a36ef926\",\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:\"form-group\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.split_transaction_title'))+\"\\n \")]),_vm._v(\" \"),_c('vue-typeahead-bootstrap',{attrs:{\"inputName\":\"group_title\",\"data\":_vm.descriptions,\"placeholder\":_vm.$t('firefly.split_transaction_title'),\"showOnFocus\":true,\"minMatchingChars\":3,\"serializer\":function (item) { return item.description; },\"inputClass\":_vm.errors.length > 0 ? 'is-invalid' : ''},on:{\"input\":_vm.lookupDescription},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.clearDescription}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2),_vm._v(\" \"),(_vm.errors.length > 0)?_c('span',_vm._l((_vm.errors),function(error){return _c('span',{staticClass:\"text-danger small\"},[_vm._v(_vm._s(error)),_c('br')])}),0):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - Create.vue\n - Copyright (c) 2020 [email protected]\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <https://www.gnu.org/licenses/>.\n -->\n\n<template>\n <div>\n <div class=\"alert alert-danger alert-dismissible\" v-if=\"errorMessage.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5><i class=\"icon fas fa-ban\"></i> {{ $t(\"firefly.flash_error\") }}</h5>\n {{ errorMessage }}\n </div>\n\n <div class=\"alert alert-success alert-dismissible\" v-if=\"successMessage.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5><i class=\"icon fas fa-thumbs-up\"></i> {{ $t(\"firefly.flash_success\") }}</h5>\n <span v-html=\"successMessage\"></span>\n </div>\n\n <div class=\"row\" v-if=\"transactions.length > 1\">\n <div class=\"col\">\n <!-- tabs -->\n <ul class=\"nav nav-pills ml-auto p-2\">\n <li v-for=\"(transaction, index) in this.transactions\" class=\"nav-item\"><a :class=\"'nav-link' + (0===index ? ' active' : '')\" :href=\"'#split_' + index\"\n data-toggle=\"tab\">\n <span v-if=\"'' !== transaction.description\">{{ transaction.description }}</span>\n <span v-if=\"'' === transaction.description\">Split {{ index + 1 }}</span>\n </a></li>\n </ul>\n </div>\n </div>\n <div class=\"tab-content\">\n <div v-for=\"(transaction, index) in this.transactions\" :class=\"'tab-pane' + (0===index ? ' active' : '')\" :id=\"'split_' + index\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.basic_journal_information') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col\">\n <TransactionDescription\n v-model=\"transaction.description\"\n :index=\"index\"\n :errors=\"transaction.errors.description\"\n ></TransactionDescription>\n </div>\n </div>\n <!-- source and destination -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\">\n <!-- SOURCE -->\n <TransactionAccount\n v-model=\"transaction.source_account\"\n direction=\"source\"\n :index=\"index\"\n :errors=\"transaction.errors.source\"\n />\n </div>\n <!-- switcharoo! -->\n <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\">\n <SwitchAccount\n :index=\"index\"\n />\n </div>\n\n <!-- destination -->\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <!-- DESTINATION -->\n <TransactionAccount\n v-model=\"transaction.destination_account\"\n direction=\"destination\"\n :index=\"index\"\n :errors=\"transaction.errors.destination\"\n />\n </div>\n </div>\n\n\n <!-- amount -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\">\n <!-- AMOUNT -->\n <TransactionAmount :index=\"index\" :errors=\"transaction.errors.amount\"/>\n <!--\n\n -->\n </div>\n <div class=\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\">\n <TransactionForeignCurrency :index=\"index\"/>\n </div>\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <TransactionForeignAmount :index=\"index\" :errors=\"transaction.errors.foreign_amount\"/>\n </div>\n </div>\n\n <!-- dates -->\n <div class=\"row\">\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <TransactionDate\n :index=\"index\"\n :errors=\"transaction.errors.date\"\n />\n </div>\n\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2\">\n <TransactionCustomDates :index=\"index\" :enabled-dates=\"customDateFields\" :errors=\"transaction.errors.custom_dates\"/>\n </div>\n </div>\n\n <!-- end of body -->\n </div>\n </div>\n </div>\n </div> <!-- end of basic card -->\n\n <!-- card for meta -->\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_meta') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <!-- meta -->\n <div class=\"row\">\n <div class=\"col\">\n <TransactionBudget\n v-model=\"transaction.budget_id\"\n :index=\"index\"\n :errors=\"transaction.errors.budget\"\n />\n <TransactionCategory\n v-model=\"transaction.category\"\n :index=\"index\"\n :errors=\"transaction.errors.category\"\n />\n </div>\n <div class=\"col\">\n <TransactionBill\n v-model=\"transaction.bill_id\"\n :index=\"index\"\n :errors=\"transaction.errors.bill\"\n />\n <TransactionTags\n :index=\"index\"\n v-model=\"transaction.tags\"\n :errors=\"transaction.errors.tags\"\n />\n <TransactionPiggyBank\n :index=\"index\"\n v-model=\"transaction.piggy_bank_id\"\n :errors=\"transaction.errors.piggy_bank\"\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- end card for meta -->\n <!-- card for extra -->\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_meta') }}\n <span v-if=\"transactions.length > 1\">({{ index + 1 }} / {{ transactions.length }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col\">\n\n <TransactionInternalReference\n :index=\"index\"\n v-model=\"transaction.internal_reference\"\n :errors=\"transaction.errors.internal_reference\"\n />\n\n <TransactionExternalUrl\n :index=\"index\"\n v-model=\"transaction.external_url\"\n :errors=\"transaction.errors.external_url\"\n />\n <TransactionNotes\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.notes\"\n />\n </div>\n <div class=\"col\">\n\n <TransactionAttachments\n :index=\"index\"\n ref=\"attachments\"\n :transaction_journal_id=\"transaction.transaction_journal_id\"\n :submitted_transaction=\"submittedTransaction\"\n v-model=\"transaction.attachments\"\n v-on:uploaded-attachments=\"uploadedAttachment($event)\"\n />\n\n <TransactionLinks :index=\"index\"\n v-model=\"transaction.links\"\n />\n </div>\n\n </div>\n <!-- end of body -->\n </div>\n </div>\n </div>\n </div>\n <!-- end card for extra -->\n <!-- end of card -->\n </div>\n </div>\n <div class=\"row\">\n <!-- group title -->\n <div class=\"col\">\n <div class=\"card\" v-if=\"transactions.length > 1\">\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\">\n <TransactionGroupTitle v-model=\"this.groupTitle\" :errors=\"this.groupTitleErrors\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col\">\n <div class=\"row\">\n <!-- buttons! -->\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n &nbsp;\n </div>\n <button @click=\"addTransaction\" class=\"btn btn-primary float-left\"><i class=\"far fa-clone\"></i> {{ $t('firefly.add_another_split') }}\n </button>\n <button class=\"btn btn-success float-right\" @click=\"submitTransaction\" :disabled=\"isSubmitting && !submitted\">\n <span v-if=\"!isSubmitting\"><i class=\"far fa-save\"></i> {{ $t('firefly.store_transaction') }}</span>\n <span v-if=\"isSubmitting && !submitted\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {createNamespacedHelpers} from 'vuex'\n\nimport TransactionDescription from \"./TransactionDescription\";\nimport TransactionDate from \"./TransactionDate\";\nimport TransactionBudget from \"./TransactionBudget\";\nimport TransactionAccount from \"./TransactionAccount\";\nimport SwitchAccount from \"./SwitchAccount\";\nimport TransactionAmount from \"./TransactionAmount\";\nimport TransactionForeignAmount from \"./TransactionForeignAmount\";\nimport TransactionForeignCurrency from \"./TransactionForeignCurrency\";\nimport TransactionCustomDates from \"./TransactionCustomDates\";\nimport TransactionCategory from \"./TransactionCategory\";\nimport TransactionBill from \"./TransactionBill\";\nimport TransactionTags from \"./TransactionTags\";\nimport TransactionPiggyBank from \"./TransactionPiggyBank\";\nimport TransactionInternalReference from \"./TransactionInternalReference\";\nimport TransactionExternalUrl from \"./TransactionExternalUrl\";\nimport TransactionNotes from \"./TransactionNotes\";\nimport TransactionLinks from \"./TransactionLinks\";\nimport TransactionAttachments from \"./TransactionAttachments\";\nimport TransactionGroupTitle from \"./TransactionGroupTitle\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"Create\",\n components: {\n TransactionAttachments,\n TransactionNotes,\n TransactionExternalUrl,\n TransactionGroupTitle,\n TransactionInternalReference,\n TransactionPiggyBank,\n TransactionTags,\n TransactionLinks,\n TransactionBill,\n TransactionCategory,\n TransactionCustomDates,\n TransactionForeignCurrency,\n TransactionForeignAmount, TransactionAmount, SwitchAccount, TransactionAccount, TransactionBudget, TransactionDescription, TransactionDate\n },\n created() {\n this.storeAllowedOpposingTypes();\n this.storeAccountToTransaction();\n this.storeCustomDateFields();\n this.addTransaction();\n },\n data() {\n return {\n linkSearchResults: [],\n errorMessage: '',\n successMessage: '',\n\n // process steps:\n isSubmitting: false,\n isSubmittingTransaction: false,\n isSubmittingLinks: false,\n isSubmittingAttachments: false,\n\n // ready steps:\n submitted: false,\n submittedTransaction: false,\n submittedLinks: false,\n submittedAttachments: false,\n\n // number of uploaded attachments\n submittedAttCount: 0,\n\n // errors in the group title:\n groupTitleErrors: [],\n\n // group ID once submitted:\n groupId: 0,\n groupTitle: '',\n\n // some button flag things\n createAnother: true,\n resetFormAfter: true\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType', // -> this.someGetter\n 'transactions', // -> this.someOtherGetter\n 'customDateFields',\n 'date',\n 'groupTitle'\n ])\n },\n watch: {\n submittedTransaction: function () {\n this.finalizeSubmit();\n },\n submittedLinks: function () {\n this.finalizeSubmit();\n },\n submittedAttachments: function () {\n this.finalizeSubmit();\n }\n },\n methods: {\n ...mapMutations(\n [\n 'addTransaction',\n 'deleteTransaction',\n 'setAllowedOpposingTypes',\n 'setAccountToTransaction',\n 'setTransactionError',\n 'resetErrors',\n 'updateField',\n 'resetTransactions'\n ],\n ),\n removeTransaction: function (index) {\n this.$store.commit('transactions/create/deleteTransaction', {index: index});\n },\n storeCustomDateFields: function () {\n // TODO may include all custom fields in the future.\n axios.get('./api/v1/preferences/transaction_journal_optional_fields').then(response => {\n let fields = response.data.data.attributes.data;\n let allDateFields = ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date'];\n let selectedDateFields = {\n interest_date: false,\n book_date: false,\n process_date: false,\n due_date: false,\n payment_date: false,\n invoice_date: false,\n };\n for (let key in fields) {\n if (fields.hasOwnProperty(key)) {\n if (-1 !== allDateFields.indexOf(key)) {\n selectedDateFields[key] = fields[key];\n }\n }\n }\n this.$store.commit('transactions/create/setCustomDateFields', selectedDateFields);\n });\n },\n finalizeSubmit() {\n if (this.submittedTransaction && this.submittedAttachments && this.submittedLinks && false === this.submitted) {\n this.submitted = true;\n this.isSubmitting = false;\n\n // show message, redirect.\n if (false === this.createAnother) {\n window.location.href = window.previousURL + '?transaction_group_id=' + this.groupId + '&message=created';\n return;\n }\n // render msg:\n this.successMessage = this.$t('firefly.transaction_stored_link', {ID: this.groupId, title: this.groupTitle});\n if (this.resetFormAfter) {\n this.submitted = false;\n this.resetTransactions();\n // do a short time out?\n setTimeout(() => this.addTransaction(), 50);\n // reset the form:\n }\n }\n\n },\n /**\n *\n */\n storeAllowedOpposingTypes: function () {\n this.setAllowedOpposingTypes(window.allowedOpposingTypes);\n },\n storeAccountToTransaction: function () {\n this.setAccountToTransaction(window.accountToTransaction);\n },\n /**\n *\n */\n submitTransaction: function () {\n this.isSubmitting = true;\n this.isSubmittingTransaction = true;\n this.isSubmittingLinks = true;\n this.isSubmittingAttachments = true;\n\n const url = './api/v1/transactions';\n const data = this.convertData();\n\n axios.post(url, data)\n .then(response => {\n this.isSubmittingTransaction = false; // done with submitting the transaction.\n this.submittedTransaction = true; // transaction is submitted.\n this.submitTransactionLinks(data, response);\n this.submitAttachments(data, response);\n this.groupId = parseInt(response.data.data.id);\n this.groupTitle = null === response.data.data.attributes.group_title ? response.data.data.attributes.transactions[0].description : response.data.data.attributes.group_title;\n })\n .catch(error => {\n this.parseErrors(error.response.data);\n });\n },\n\n submitAttachments: function (data, response) {\n this.isSubmittingAttachments = true;\n // tell each attachment thing that they can upload their attachments by giving them a valid transaction journal ID to upload to.\n let result = response.data.data.attributes.transactions\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (result.hasOwnProperty(i)) {\n this.updateField({index: i, field: 'transaction_journal_id', value: result[0].transaction_journal_id});\n }\n }\n }\n },\n uploadedAttachment: function () {\n this.submittedAttCount++;\n if (this.submittedAttCount === this.transactions.length) {\n this.submittedAttachments = true;\n this.isSubmittingAttachments = false;\n }\n },\n\n submitTransactionLinks(data, response) {\n this.isSubmittingLinks = true;\n this.submittedLinks = false;\n let promises = [];\n let result = response.data.data.attributes.transactions;\n let total = 0;\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let submitted = data.transactions[i];\n if (result.hasOwnProperty(i)) {\n // found matching created transaction.\n let received = result[i];\n // grab ID from received, loop \"submitted\" transaction links\n for (let ii in submitted.links) {\n if (submitted.links.hasOwnProperty(ii) && /^0$|^[1-9]\\d*$/.test(ii) && ii <= 4294967294) {\n let currentLink = submitted.links[ii];\n total++;\n if (0 === currentLink.outward_id) {\n currentLink.outward_id = received.transaction_journal_id;\n }\n if (0 === currentLink.inward_id) {\n currentLink.inward_id = received.transaction_journal_id;\n }\n // submit transaction link:\n promises.push(axios.post('./api/v1/transaction_links', currentLink).then(response => {\n // TODO error handling.\n }));\n }\n }\n }\n }\n }\n if (0 === total) {\n this.isSubmittingLinks = false;\n this.submittedLinks = true;\n }\n Promise.all(promises).then(function () {\n this.isSubmittingLinks = false;\n this.submittedLinks = true;\n });\n },\n\n parseErrors: function (errors) {\n for (let i in this.transactions) {\n this.resetErrors({index: i});\n }\n\n this.successMessage = null;\n this.errorMessage = this.$t('firefly.errors_submission');\n if (typeof errors.errors === 'undefined') {\n this.successMessage = null;\n this.errorMessage = errors.message;\n }\n\n let transactionIndex;\n let fieldName;\n\n // fairly basic way of exploding the error array.\n for (const key in errors.errors) {\n if (errors.errors.hasOwnProperty(key)) {\n if (key === 'group_title') {\n this.groupTitleErrors = errors.errors[key];\n continue;\n }\n if (key !== 'group_title') {\n // lol dumbest way to explode \"transactions.0.something\" ever.\n transactionIndex = parseInt(key.split('.')[1]);\n\n fieldName = key.split('.')[2];\n // set error in this object thing.\n let payload;\n switch (fieldName) {\n case 'amount':\n case 'description':\n case 'date':\n case 'tags':\n payload = {index: transactionIndex, field: fieldName, errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'budget_id':\n payload = {index: transactionIndex, field: 'budget', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'bill_id':\n payload = {index: transactionIndex, field: 'bill', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'piggy_bank_id':\n payload = {index: transactionIndex, field: 'piggy_bank', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'category_name':\n payload = {index: transactionIndex, field: 'category', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'source_name':\n case 'source_id':\n payload = {index: transactionIndex, field: 'source', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'destination_name':\n case 'destination_id':\n payload = {index: transactionIndex, field: 'destination', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n case 'foreign_amount':\n case 'foreign_currency':\n payload = {index: transactionIndex, field: 'foreign_amount', errors: errors.errors[key]};\n this.setTransactionError(payload);\n break;\n }\n }\n // unique some things\n if (typeof this.transactions[transactionIndex] !== 'undefined') {\n // TODO\n //this.transactions[transactionIndex].errors.source = Array.from(new Set(this.transactions[transactionIndex].errors.source));\n //this.transactions[transactionIndex].errors.destination = Array.from(new Set(this.transactions[transactionIndex].errors.destination));\n }\n\n }\n }\n this.isSubmittingTransaction = false;\n this.submittedTransaction = true;\n this.isSubmitting = false;\n },\n\n /**\n *\n */\n convertData: function () {\n //console.log('now in convertData');\n let data = {\n 'transactions': []\n };\n if (this.groupTitle.length > 0) {\n data.group_title = this.groupTitle;\n }\n\n for (let key in this.transactions) {\n if (this.transactions.hasOwnProperty(key) && /^0$|^[1-9]\\d*$/.test(key) && key <= 4294967294) {\n data.transactions.push(this.convertSplit(key, this.transactions[key]));\n }\n }\n if (data.transactions.length > 1) {\n data.group_title = data.transactions[0].description;\n }\n return data;\n },\n /**\n *\n * @param key\n * @param array\n */\n convertSplit: function (key, array) {\n let dateStr = 'invalid';\n if (this.date instanceof Date && !isNaN(this.date)) {\n dateStr = this.toW3CString(this.date);\n }\n let currentSplit = {\n // basic\n description: array.description,\n date: dateStr,\n type: this.transactionType,\n\n // account\n source_id: array.source_account.id ?? null,\n source_name: array.source_account.name ?? null,\n destination_id: array.destination_account.id ?? null,\n destination_name: array.destination_account.name ?? null,\n\n // amount:\n currency_id: array.currency_id,\n amount: array.amount,\n\n // meta data\n budget_id: array.budget_id,\n category_name: array.category,\n tags: array.tags,\n\n // optional date fields (6x):\n interest_date: array.interest_date,\n book_date: array.book_date,\n process_date: array.process_date,\n due_date: array.due_date,\n payment_date: array.payment_date,\n invoice_date: array.invoice_date,\n\n // other optional fields:\n internal_reference: array.internal_reference,\n external_url: array.external_url,\n notes: array.notes,\n external_id: array.external_id,\n\n // from thing:\n order: 0,\n reconciled: false,\n };\n // bills and piggy banks\n if (0 !== array.piggy_bank_id) {\n currentSplit.piggy_bank_id = array.piggy_bank_id;\n }\n if (0 !== array.bill_id) {\n currentSplit.bill_id = array.bill_id;\n }\n\n // foreign amount:\n if (0 !== array.foreign_currency_id) {\n currentSplit.foreign_currency_id = array.foreign_currency_id;\n }\n if ('' !== array.foreign_amount) {\n currentSplit.foreign_amount = array.foreign_amount;\n }\n\n // do transaction type\n let transactionType;\n let firstSource;\n let firstDestination;\n\n // get transaction type from first transaction\n transactionType = this.transactionType ? this.transactionType.toLowerCase() : 'any';\n //console.log('Transaction type is now ' + transactionType);\n // if the transaction type is invalid, might just be that we can deduce it from\n // the presence of a source or destination account\n firstSource = this.transactions[0].source_account.type;\n firstDestination = this.transactions[0].destination_account.type;\n //console.log(this.transactions[0].source_account);\n //console.log(this.transactions[0].destination_account);\n //console.log('Type of first source is ' + firstSource);\n //console.log('Type of first destination is ' + firstDestination);\n\n if ('any' === transactionType && ['asset', 'Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstSource)) {\n transactionType = 'withdrawal';\n }\n\n if ('any' === transactionType && ['asset', 'Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstDestination)) {\n transactionType = 'deposit';\n }\n currentSplit.type = transactionType;\n //console.log('Final type is ' + transactionType);\n\n let links = [];\n for (let i in array.links) {\n if (array.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = array.links[i];\n let linkTypeParts = current.link_type_id.split('-');\n let inwardId = 'outward' === linkTypeParts[1] ? 0 : parseInt(current.transaction_journal_id);\n let outwardId = 'inward' === linkTypeParts[1] ? 0 : parseInt(current.transaction_journal_id);\n let newLink = {\n link_type_id: parseInt(linkTypeParts[0]),\n inward_id: inwardId,\n outward_id: outwardId,\n };\n links.push(newLink);\n }\n }\n currentSplit.links = links;\n\n // return it.\n return currentSplit;\n },\n toW3CString: function (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 }\n\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Create.vue?vue&type=template&id=04f43d12&scoped=true&\"\nimport script from \"./Create.vue?vue&type=script&lang=js&\"\nexport * from \"./Create.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 \"04f43d12\",\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.errorMessage.length > 0)?_c('div',{staticClass:\"alert alert-danger alert-dismissible\"},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[_c('i',{staticClass:\"icon fas fa-ban\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"firefly.flash_error\")))]),_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.successMessage.length > 0)?_c('div',{staticClass:\"alert alert-success alert-dismissible\"},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[_c('i',{staticClass:\"icon fas fa-thumbs-up\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"firefly.flash_success\")))]),_vm._v(\" \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.successMessage)}})]):_vm._e(),_vm._v(\" \"),(_vm.transactions.length > 1)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('ul',{staticClass:\"nav nav-pills ml-auto p-2\"},_vm._l((this.transactions),function(transaction,index){return _c('li',{staticClass:\"nav-item\"},[_c('a',{class:'nav-link' + (0===index ? ' active' : ''),attrs:{\"href\":'#split_' + index,\"data-toggle\":\"tab\"}},[('' !== transaction.description)?_c('span',[_vm._v(_vm._s(transaction.description))]):_vm._e(),_vm._v(\" \"),('' === transaction.description)?_c('span',[_vm._v(\"Split \"+_vm._s(index + 1))]):_vm._e()])])}),0)])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"tab-content\"},_vm._l((this.transactions),function(transaction,index){return _c('div',{class:'tab-pane' + (0===index ? ' active' : ''),attrs:{\"id\":'split_' + index}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.basic_journal_information'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionDescription',{attrs:{\"index\":index,\"errors\":transaction.errors.description},model:{value:(transaction.description),callback:function ($$v) {_vm.$set(transaction, \"description\", $$v)},expression:\"transaction.description\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\"},[_c('TransactionAccount',{attrs:{\"direction\":\"source\",\"index\":index,\"errors\":transaction.errors.source},model:{value:(transaction.source_account),callback:function ($$v) {_vm.$set(transaction, \"source_account\", $$v)},expression:\"transaction.source_account\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\"},[_c('SwitchAccount',{attrs:{\"index\":index}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAccount',{attrs:{\"direction\":\"destination\",\"index\":index,\"errors\":transaction.errors.destination},model:{value:(transaction.destination_account),callback:function ($$v) {_vm.$set(transaction, \"destination_account\", $$v)},expression:\"transaction.destination_account\"}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-10 col-sm-12 col-xs-12\"},[_c('TransactionAmount',{attrs:{\"index\":index,\"errors\":transaction.errors.amount}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-2 col-lg-2 col-md-2 col-sm-12 text-center d-none d-sm-block\"},[_c('TransactionForeignCurrency',{attrs:{\"index\":index}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionForeignAmount',{attrs:{\"index\":index,\"errors\":transaction.errors.foreign_amount}})],1)]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionDate',{attrs:{\"index\":index,\"errors\":transaction.errors.date}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12 offset-xl-2 offset-lg-2\"},[_c('TransactionCustomDates',{attrs:{\"index\":index,\"enabled-dates\":_vm.customDateFields,\"errors\":transaction.errors.custom_dates}})],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.transaction_journal_meta'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionBudget',{attrs:{\"index\":index,\"errors\":transaction.errors.budget},model:{value:(transaction.budget_id),callback:function ($$v) {_vm.$set(transaction, \"budget_id\", $$v)},expression:\"transaction.budget_id\"}}),_vm._v(\" \"),_c('TransactionCategory',{attrs:{\"index\":index,\"errors\":transaction.errors.category},model:{value:(transaction.category),callback:function ($$v) {_vm.$set(transaction, \"category\", $$v)},expression:\"transaction.category\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('TransactionBill',{attrs:{\"index\":index,\"errors\":transaction.errors.bill},model:{value:(transaction.bill_id),callback:function ($$v) {_vm.$set(transaction, \"bill_id\", $$v)},expression:\"transaction.bill_id\"}}),_vm._v(\" \"),_c('TransactionTags',{attrs:{\"index\":index,\"errors\":transaction.errors.tags},model:{value:(transaction.tags),callback:function ($$v) {_vm.$set(transaction, \"tags\", $$v)},expression:\"transaction.tags\"}}),_vm._v(\" \"),_c('TransactionPiggyBank',{attrs:{\"index\":index,\"errors\":transaction.errors.piggy_bank},model:{value:(transaction.piggy_bank_id),callback:function ($$v) {_vm.$set(transaction, \"piggy_bank_id\", $$v)},expression:\"transaction.piggy_bank_id\"}})],1)])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('h3',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('firefly.transaction_journal_meta'))+\"\\n \"),(_vm.transactions.length > 1)?_c('span',[_vm._v(\"(\"+_vm._s(index + 1)+\" / \"+_vm._s(_vm.transactions.length)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionInternalReference',{attrs:{\"index\":index,\"errors\":transaction.errors.internal_reference},model:{value:(transaction.internal_reference),callback:function ($$v) {_vm.$set(transaction, \"internal_reference\", $$v)},expression:\"transaction.internal_reference\"}}),_vm._v(\" \"),_c('TransactionExternalUrl',{attrs:{\"index\":index,\"errors\":transaction.errors.external_url},model:{value:(transaction.external_url),callback:function ($$v) {_vm.$set(transaction, \"external_url\", $$v)},expression:\"transaction.external_url\"}}),_vm._v(\" \"),_c('TransactionNotes',{attrs:{\"index\":index,\"errors\":transaction.errors.notes},model:{value:(transaction.notes),callback:function ($$v) {_vm.$set(transaction, \"notes\", $$v)},expression:\"transaction.notes\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('TransactionAttachments',{ref:\"attachments\",refInFor:true,attrs:{\"index\":index,\"transaction_journal_id\":transaction.transaction_journal_id,\"submitted_transaction\":_vm.submittedTransaction},on:{\"uploaded-attachments\":function($event){return _vm.uploadedAttachment($event)}},model:{value:(transaction.attachments),callback:function ($$v) {_vm.$set(transaction, \"attachments\", $$v)},expression:\"transaction.attachments\"}}),_vm._v(\" \"),_c('TransactionLinks',{attrs:{\"index\":index},model:{value:(transaction.links),callback:function ($$v) {_vm.$set(transaction, \"links\", $$v)},expression:\"transaction.links\"}})],1)])])])])])])}),0),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.transactions.length > 1)?_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionGroupTitle',{attrs:{\"errors\":this.groupTitleErrors},model:{value:(this.groupTitle),callback:function ($$v) {_vm.$set(this, \"groupTitle\", $$v)},expression:\"this.groupTitle\"}})],1)])])]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n  \\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-primary float-left\",on:{\"click\":_vm.addTransaction}},[_c('i',{staticClass:\"far fa-clone\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.add_another_split'))+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-success float-right\",attrs:{\"disabled\":_vm.isSubmitting && !_vm.submitted},on:{\"click\":_vm.submitTransaction}},[(!_vm.isSubmitting)?_c('span',[_c('i',{staticClass:\"far fa-save\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.store_transaction')))]):_vm._e(),_vm._v(\" \"),(_vm.isSubmitting && !_vm.submitted)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e()])])])])])])])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * create.js\n * Copyright (c) 2020 [email protected]\n *\n * This file is part of Firefly III (https://github.com/firefly-iii).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport store from \"../../components/store\";\nimport Create from \"../../components/transactions/Create\";\nimport Vue from \"vue\";\n\nrequire('../../bootstrap');\n\nVue.config.productionTip = false;\n// i18n\nlet i18n = require('../../i18n');\n\nlet props = {};\nnew Vue({\n i18n,\n store,\n render(createElement) {\n return createElement(Create, {props: props});\n },\n beforeCreate() {\n this.$store.commit('initialiseStore');\n this.$store.dispatch('updateCurrencyPreference');\n },\n }).$mount('#transactions_create');\n"],"sourceRoot":""}
\ No newline at end of file