Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Recreate frontend.
James Coleaa4695bbbfda
diff --git a/frontend/yarn.lock b/frontend/yarn.lockindex 8e8dacbdb8..ba0c892eab 100644--- a/frontend/yarn.lock+++ b/frontend/yarn.lock@@ -9,38 +9,39 @@dependencies:"@babel/highlight" "^7.12.13"-"@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/compat-data@^7.11.0", "@babel/compat-data@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.0.tgz#7889eb7ee6518e2afa5d312b15fd7fd1fe9f3744"+ integrity sha512-mKgFbYQ+23pjwNGBNPNWrBfa3g/EcmrPnwQpjWoNxq9xYf+M8wcLhMlz/wkWimLjzNzGnl3D+C2186gMzk0VuA=="@babel/core@^7.0.0-beta.49", "@babel/core@^7.2.0":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.17.tgz#993c5e893333107a2815d8e0d73a2c3755e280b2"- integrity sha512-V3CuX1aBywbJvV2yzJScRxeiiw0v2KZZYYE3giywxzFJL13RiyPjaaDwhDnxmgFTTS7FgvM2ijr4QmKNIu0AtQ==+ version "7.13.1"+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.1.tgz#7ddd027176debe40f13bb88bac0c21218c5b1ecf"+ integrity sha512-FzeKfFBG2rmFtGiiMdXZPFt/5R5DXubVi82uYhjGX4Msf+pgYQMCFIqFXZWs5vbIYbf14VeBIgdGI03CDOOM1w==dependencies:"@babel/code-frame" "^7.12.13"- "@babel/generator" "^7.12.17"- "@babel/helper-module-transforms" "^7.12.17"- "@babel/helpers" "^7.12.17"- "@babel/parser" "^7.12.17"+ "@babel/generator" "^7.13.0"+ "@babel/helper-compilation-targets" "^7.13.0"+ "@babel/helper-module-transforms" "^7.13.0"+ "@babel/helpers" "^7.13.0"+ "@babel/parser" "^7.13.0""@babel/template" "^7.12.13"- "@babel/traverse" "^7.12.17"- "@babel/types" "^7.12.17"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0"convert-source-map "^1.7.0"debug "^4.1.0"- gensync "^1.0.0-beta.1"+ gensync "^1.0.0-beta.2"json5 "^2.1.2"lodash "^4.17.19"- semver "^5.4.1"+ semver "7.0.0"source-map "^0.5.0"-"@babel/generator@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.17.tgz#9ef1dd792d778b32284411df63f4f668a9957287"- integrity sha512-DSA7ruZrY4WI8VxuS1jWSRezFnghEoYEFrZcw9BizQRmOZiUsiHl59+qEARGPqPikwA/GPTyRCi7isuCK/oyqg==+"@babel/generator@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.0.tgz#bd00d4394ca22f220390c56a0b5b85568ec1ec0c"+ integrity sha512-zBZfgvBB/ywjx0Rgc2+BwoH/3H+lDtlgD4hBOpEv5LxRnYsm/753iRuLepqnYlynpjC3AdQxtxsoeHJoEEwOAw==dependencies:- "@babel/types" "^7.12.17"+ "@babel/types" "^7.13.0"jsesc "^2.5.1"source-map "^0.5.0"@@ -59,25 +60,25 @@"@babel/helper-explode-assignable-expression" "^7.12.13""@babel/types" "^7.12.13"-"@babel/helper-compilation-targets@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.17.tgz#91d83fae61ef390d39c3f0507cb83979bab837c7"- integrity sha512-5EkibqLVYOuZ89BSg2lv+GG8feywLuvMXNYgf0Im4MssE0mFWPztSpJbildNnUgw0bLI2EsIN4MpSHC2iUJkQA==+"@babel/helper-compilation-targets@^7.10.4", "@babel/helper-compilation-targets@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.0.tgz#c9cf29b82a76fd637f0faa35544c4ace60a155a1"+ integrity sha512-SOWD0JK9+MMIhTQiUVd4ng8f3NXhPVQvTv7D3UN4wbp/6cAHnB2EmMaU1zZA2Hh1gwme+THBrVSqTFxHczTh0Q==dependencies:- "@babel/compat-data" "^7.12.13"+ "@babel/compat-data" "^7.13.0""@babel/helper-validator-option" "^7.12.17"browserslist "^4.14.5"- semver "^5.5.0"+ semver "7.0.0"-"@babel/helper-create-class-features-plugin@^7.12.13":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.17.tgz#704b69c8a78d03fb1c5fcc2e7b593f8a65628944"- integrity sha512-I/nurmTxIxHV0M+rIpfQBF1oN342+yvl2kwZUrQuOClMamHF1w5tknfZubgNOLRoA73SzBFAdFcpb4M9HwOeWQ==+"@babel/helper-create-class-features-plugin@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.0.tgz#28d04ad9cfbd1ed1d8b988c9ea7b945263365846"+ integrity sha512-twwzhthM4/+6o9766AW2ZBHpIHPSGrPGk1+WfHiu13u/lBnggXGNYCpeAyVfNwGDKfkhEDp+WOD/xafoJ2iLjA==dependencies:"@babel/helper-function-name" "^7.12.13"- "@babel/helper-member-expression-to-functions" "^7.12.17"+ "@babel/helper-member-expression-to-functions" "^7.13.0""@babel/helper-optimise-call-expression" "^7.12.13"- "@babel/helper-replace-supers" "^7.12.13"+ "@babel/helper-replace-supers" "^7.13.0""@babel/helper-split-export-declaration" "^7.12.13""@babel/helper-create-regexp-features-plugin@^7.12.13":@@ -88,12 +89,26 @@"@babel/helper-annotate-as-pure" "^7.12.13"regexpu-core "^4.7.1"+"@babel/helper-define-polyfill-provider@^0.1.0":+ version "0.1.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.1.0.tgz#a9e8a161bb594a6a26ba93f68efd475c935a1727"+ integrity sha512-/nX4CQRve5OZsc0FsvkuefeIQFG7GQo2X5GbD/seME7Tu4s2gHuQfXTIKup++/W9K1SWi2dTe7H9zhgJxhn/pA==+ dependencies:+ "@babel/helper-compilation-targets" "^7.10.4"+ "@babel/helper-module-imports" "^7.10.4"+ "@babel/helper-plugin-utils" "^7.10.4"+ "@babel/traverse" "^7.11.5"+ debug "^4.1.1"+ lodash.debounce "^4.0.8"+ resolve "^1.14.2"+ semver "^6.1.2"+"@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==+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.13.0.tgz#17b5c59ff473d9f956f40ef570cf3a76ca12657f"+ integrity sha512-qS0peLTDP8kOisG1blKbaoBg/o9OSa1qoumMjTK5pM+KDTtpxpsiubnCGP34vK8BXGcb2M9eigwgvoJryrzwWA==dependencies:- "@babel/types" "^7.12.13"+ "@babel/types" "^7.13.0""@babel/helper-function-name@^7.12.13":version "7.12.13"@@ -112,39 +127,40 @@"@babel/types" "^7.12.13""@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==+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.13.0.tgz#5d5882e855b5c5eda91e0cadc26c6e7a2c8593d8"+ integrity sha512-0kBzvXiIKfsCA0y6cFEIJf4OdzfpRuNk4+YTeHZpGGc666SATFKTz6sRncwFnQk7/ugJ4dSrCj6iJuvW4Qwr2g==dependencies:- "@babel/types" "^7.12.13"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0"-"@babel/helper-member-expression-to-functions@^7.12.13", "@babel/helper-member-expression-to-functions@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.17.tgz#f82838eb06e1235307b6d71457b6670ff71ee5ac"- integrity sha512-Bzv4p3ODgS/qpBE0DiJ9qf5WxSmrQ8gVTe8ClMfwwsY2x/rhykxxy3bXzG7AGTnPB2ij37zGJ/Q/6FruxHxsxg==+"@babel/helper-member-expression-to-functions@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.13.0.tgz#6aa4bb678e0f8c22f58cdb79451d30494461b091"+ integrity sha512-yvRf8Ivk62JwisqV1rFRMxiSMDGnN6KH1/mDMmIrij4jztpQNRoHqqMG3U6apYbGRPJpgPalhva9Yd06HlUxJQ==dependencies:- "@babel/types" "^7.12.17"+ "@babel/types" "^7.13.0"-"@babel/helper-module-imports@^7.12.13":+"@babel/helper-module-imports@^7.10.4", "@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.13"-"@babel/helper-module-transforms@^7.12.13", "@babel/helper-module-transforms@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.17.tgz#7c75b987d6dfd5b48e575648f81eaac891539509"- integrity sha512-sFL+p6zOCQMm9vilo06M4VHuTxUAwa6IxgL56Tq1DVtA0ziAGTH1ThmJq7xwPqdQlgAbKX3fb0oZNbtRIyA5KQ==+"@babel/helper-module-transforms@^7.12.13", "@babel/helper-module-transforms@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.13.0.tgz#42eb4bd8eea68bab46751212c357bfed8b40f6f1"+ integrity sha512-Ls8/VBwH577+pw7Ku1QkUWIyRRNHpYlts7+qSqBBFCW3I8QteB9DxfcZ5YJpOwH6Ihe/wn8ch7fMGOP1OhEIvw==dependencies:"@babel/helper-module-imports" "^7.12.13"- "@babel/helper-replace-supers" "^7.12.13"+ "@babel/helper-replace-supers" "^7.13.0""@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.17"- "@babel/types" "^7.12.17"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0"lodash "^4.17.19""@babel/helper-optimise-call-expression@^7.12.13":@@ -154,29 +170,29 @@dependencies:"@babel/types" "^7.12.13"-"@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-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af"+ integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ==-"@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==+"@babel/helper-remap-async-to-generator@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.13.0.tgz#376a760d9f7b4b2077a9dd05aa9c3927cadb2209"+ integrity sha512-pUQpFBE9JvC9lrQbpX0TmeNIy5s7GnZjna2lhhcHC7DzgBs6fWn722Y5cfwgrtrqc7NAJwMvOa0mKhq6XaE4jg==dependencies:"@babel/helper-annotate-as-pure" "^7.12.13"- "@babel/helper-wrap-function" "^7.12.13"- "@babel/types" "^7.12.13"+ "@babel/helper-wrap-function" "^7.13.0"+ "@babel/types" "^7.13.0"-"@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==+"@babel/helper-replace-supers@^7.12.13", "@babel/helper-replace-supers@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.13.0.tgz#6034b7b51943094cb41627848cb219cb02be1d24"+ integrity sha512-Segd5me1+Pz+rmN/NFBOplMbZG3SqRJOBlY+mA0SxAv6rjj7zJqr1AVr3SfzUVTLCv7ZLU5FycOM/SBGuLPbZw==dependencies:- "@babel/helper-member-expression-to-functions" "^7.12.13"+ "@babel/helper-member-expression-to-functions" "^7.13.0""@babel/helper-optimise-call-expression" "^7.12.13"- "@babel/traverse" "^7.12.13"- "@babel/types" "^7.12.13"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0""@babel/helper-simple-access@^7.12.13":version "7.12.13"@@ -209,24 +225,24 @@resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831"integrity sha512-TopkMDmLzq8ngChwRlyjR6raKD6gMSae4JdYDB8bByKreQgG0RBTuKe9LRxW3wFtUnjxOPRKBDwEH6Mg5KeDfw==-"@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==+"@babel/helper-wrap-function@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.13.0.tgz#bdb5c66fda8526ec235ab894ad53a1235c79fcc4"+ integrity sha512-1UX9F7K3BS42fI6qd2A4BjKzgGjToscyZTdp1DjknHLCIvpgne6918io+aL5LXFcER/8QWiwpoY902pVEqgTXA==dependencies:"@babel/helper-function-name" "^7.12.13""@babel/template" "^7.12.13"- "@babel/traverse" "^7.12.13"- "@babel/types" "^7.12.13"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0"-"@babel/helpers@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.17.tgz#71e03d2981a6b5ee16899964f4101dc8471d60bc"- integrity sha512-tEpjqSBGt/SFEsFikKds1sLNChKKGGR17flIgQKXH4fG6m9gTgl3gnOC1giHNyaBCSKuTfxaSzHi7UnvqiVKxg==+"@babel/helpers@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.13.0.tgz#7647ae57377b4f0408bf4f8a7af01c42e41badc0"+ integrity sha512-aan1MeFPxFacZeSz6Ld7YZo5aPuqnKlD7+HZY75xQsueczFccP9A7V05+oe0XpLwHK3oLorPe9eaAUljL7WEaQ==dependencies:"@babel/template" "^7.12.13"- "@babel/traverse" "^7.12.17"- "@babel/types" "^7.12.17"+ "@babel/traverse" "^7.13.0"+ "@babel/types" "^7.13.0""@babel/highlight@^7.12.13":version "7.12.13"@@ -237,27 +253,27 @@chalk "^2.0.0"js-tokens "^4.0.0"-"@babel/parser@^7.12.13", "@babel/parser@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.17.tgz#bc85d2d47db38094e5bb268fc761716e7d693848"- integrity sha512-r1yKkiUTYMQ8LiEI0UcQx5ETw5dpTLn9wijn9hk6KkTtOK95FndDN10M+8/s6k/Ymlbivw0Av9q4SlgF80PtHg==+"@babel/parser@^7.12.13", "@babel/parser@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.0.tgz#49b9b6ee213e5634fa80361dae139effef893f78"+ integrity sha512-w80kxEMFhE3wjMOQkfdTvv0CSdRSJZptIlLhU4eU/coNJeWjduspUFz+IRnBbAq6m5XYBFMoT1TNkk9K9yf10g==-"@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==+"@babel/plugin-proposal-async-generator-functions@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.0.tgz#42f4a4922c973ceb70bfd4708daf55601fe25434"+ integrity sha512-3Loqr0+jE2/yqp29VnW1YqcWjGnIQwICotlrMfn6+1Ih2MBIbaaIFpJ5fnmYmGSUa9vwMhHOh2rMAqUH7NMWmQ==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"- "@babel/helper-remap-async-to-generator" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0"+ "@babel/helper-remap-async-to-generator" "^7.13.0""@babel/plugin-syntax-async-generators" "^7.8.0"-"@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==+"@babel/plugin-proposal-class-properties@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.13.0.tgz#146376000b94efd001e57a40a88a525afaab9f37"+ integrity sha512-KnTDjFNC1g+45ka0myZNvSBFLhNCLN+GeGYLDEA8Oq7MZ6yMgfLoIRh86GRT0FjtJhZw8JyUskP9uvj5pHM9Zg==dependencies:- "@babel/helper-create-class-features-plugin" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-create-class-features-plugin" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-proposal-dynamic-import@^7.12.17":version "7.12.17"@@ -291,12 +307,12 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"-"@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==+"@babel/plugin-proposal-nullish-coalescing-operator@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.13.0.tgz#1a96fdf2c43109cfe5568513c5379015a23f5380"+ integrity sha512-UkAvFA/9+lBBL015gjA68NvKiCReNxqFLm3SdNKaM3XXoDisA7tMAIX4PmIwatFoFqMxxT3WyG9sK3MO0Kting==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0""@babel/plugin-proposal-numeric-separator@^7.12.13":@@ -307,14 +323,14 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/plugin-syntax-numeric-separator" "^7.10.4"-"@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==+"@babel/plugin-proposal-object-rest-spread@^7.13.0", "@babel/plugin-proposal-object-rest-spread@^7.2.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.13.0.tgz#8f19ad247bb96bd5ad2d4107e6eddfe0a789937b"+ integrity sha512-B4qphdSTp0nLsWcuei07JPKeZej4+Hd22MdnulJXQa1nCcGSBlk8FiqenGERaPZ+PuYhz4Li2Wjc8yfJvHgUMw==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-syntax-object-rest-spread" "^7.8.0"- "@babel/plugin-transform-parameters" "^7.12.13"+ "@babel/plugin-transform-parameters" "^7.13.0""@babel/plugin-proposal-optional-catch-binding@^7.12.13":version "7.12.13"@@ -324,22 +340,22 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/plugin-syntax-optional-catch-binding" "^7.8.0"-"@babel/plugin-proposal-optional-chaining@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.17.tgz#e382becadc2cb16b7913b6c672d92e4b33385b5c"- integrity sha512-TvxwI80pWftrGPKHNfkvX/HnoeSTR7gC4ezWnAL39PuktYUe6r8kEpOLTYnkBTsaoeazXm2jHJ22EQ81sdgfcA==+"@babel/plugin-proposal-optional-chaining@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.13.0.tgz#75b41ce0d883d19e8fe635fc3f846be3b1664f4d"+ integrity sha512-OVRQOZEBP2luZrvEbNSX5FfWDousthhdEoAOpej+Tpe58HFLvqRClT89RauIvBuCDFEip7GW1eT86/5lMy2RNA==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/helper-skip-transparent-expression-wrappers" "^7.12.1""@babel/plugin-syntax-optional-chaining" "^7.8.0"-"@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==+"@babel/plugin-proposal-private-methods@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.13.0.tgz#04bd4c6d40f6e6bbfa2f57e2d8094bad900ef787"+ integrity sha512-MXyyKQd9inhx1kDYPkFRVOBXQ20ES8Pto3T7UZ92xj2mY0EVD8oAVzeyYuVfy/mxAdTSIayOvg+aVzcHV2bn6Q==dependencies:- "@babel/helper-create-class-features-plugin" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-create-class-features-plugin" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-proposal-unicode-property-regex@^7.12.13", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":version "7.12.13"@@ -433,21 +449,21 @@dependencies:"@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-arrow-functions@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.13.0.tgz#10a59bebad52d637a027afa692e8d5ceff5e3dae"+ integrity sha512-96lgJagobeVmazXFaDrbmCLQxBysKu7U6Do3mLsx27gf5Dk85ezysrs2BZUpXD703U/Su1xTBDxxar2oa4jAGg==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0"-"@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==+"@babel/plugin-transform-async-to-generator@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.13.0.tgz#8e112bf6771b82bf1e974e5e26806c5c99aa516f"+ integrity sha512-3j6E004Dx0K3eGmhxVJxwwI89CTJrce7lg3UrtFuDAVQ/2+SJ/h/aSFOeE6/n0WB1GsOffsJp6MnPQNQ8nmwhg==dependencies:"@babel/helper-module-imports" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"- "@babel/helper-remap-async-to-generator" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0"+ "@babel/helper-remap-async-to-generator" "^7.13.0""@babel/plugin-transform-block-scoped-functions@^7.12.13":version "7.12.13"@@ -463,32 +479,32 @@dependencies:"@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-classes@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.13.0.tgz#0265155075c42918bf4d3a4053134176ad9b533b"+ integrity sha512-9BtHCPUARyVH1oXGcSJD3YpsqRLROJx5ZNP6tN5vnk17N0SVf9WCtf8Nuh1CFmgByKKAIMstitKduoCmsaDK5g==dependencies:"@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-plugin-utils" "^7.13.0"+ "@babel/helper-replace-supers" "^7.13.0""@babel/helper-split-export-declaration" "^7.12.13"globals "^11.1.0"-"@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==+"@babel/plugin-transform-computed-properties@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.13.0.tgz#845c6e8b9bb55376b1fa0b92ef0bdc8ea06644ed"+ integrity sha512-RRqTYTeZkZAz8WbieLTvKUEUxZlUTdmL5KGMyZj7FnMfLNKV4+r5549aORG/mgojRmFlQMJDUupwAMiF2Q7OUg==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0"-"@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==+"@babel/plugin-transform-destructuring@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.13.0.tgz#c5dce270014d4e1ebb1d806116694c12b7028963"+ integrity sha512-zym5em7tePoNT9s964c0/KU3JPPnuq7VhIxPRefJ4/s82cD+q1mgKfuGRDMCPL0HTyKz4dISuQlCusfgCJ86HA==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-transform-dotall-regex@^7.12.13", "@babel/plugin-transform-dotall-regex@^7.4.4":version "7.12.13"@@ -513,12 +529,12 @@"@babel/helper-builder-binary-assignment-operator-visitor" "^7.12.13""@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-for-of@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.13.0.tgz#c799f881a8091ac26b54867a845c3e97d2696062"+ integrity sha512-IHKT00mwUVYE0zzbkDgNRP6SRzvfGCYsOxIRz8KsiaaHCcT9BWIkO+H9QRJseHBLOGBZkHUdHiqj6r0POsdytg==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-transform-function-name@^7.12.13":version "7.12.13"@@ -542,22 +558,22 @@dependencies:"@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-modules-amd@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.13.0.tgz#19f511d60e3d8753cc5a6d4e775d3a5184866cc3"+ integrity sha512-EKy/E2NHhY/6Vw5d1k3rgoobftcNUmp9fGjb9XZwQLtTctsRBOTRO7RHHxfIky1ogMN5BxN7p9uMA3SzPfotMQ==dependencies:- "@babel/helper-module-transforms" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-module-transforms" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0"babel-plugin-dynamic-import-node "^2.3.3"-"@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==+"@babel/plugin-transform-modules-commonjs@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.13.0.tgz#276932693a20d12c9776093fdc99c0d9995e34c6"+ integrity sha512-j7397PkIB4lcn25U2dClK6VLC6pr2s3q+wbE8R3vJvY6U1UTBBj0n6F+5v6+Fd/UwfDPAorMOs2TV+T4M+owpQ==dependencies:- "@babel/helper-module-transforms" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-module-transforms" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/helper-simple-access" "^7.12.13"babel-plugin-dynamic-import-node "^2.3.3"@@ -572,13 +588,13 @@"@babel/helper-validator-identifier" "^7.12.11"babel-plugin-dynamic-import-node "^2.3.3"-"@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==+"@babel/plugin-transform-modules-umd@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.13.0.tgz#8a3d96a97d199705b9fd021580082af81c06e70b"+ integrity sha512-D/ILzAh6uyvkWjKKyFE/W0FzWwasv6vPTSqPcjxFqn6QpX3u8DjRVliq4F2BamO2Wee/om06Vyy+vPkNrd4wxw==dependencies:- "@babel/helper-module-transforms" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-module-transforms" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-transform-named-capturing-groups-regex@^7.12.13":version "7.12.13"@@ -602,12 +618,12 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/helper-replace-supers" "^7.12.13"-"@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==+"@babel/plugin-transform-parameters@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.13.0.tgz#8fa7603e3097f9c0b7ca1a4821bc2fb52e9e5007"+ integrity sha512-Jt8k/h/mIwE2JFEOb3lURoY5C85ETcYPnbuAJ96zRBzh1XHtQZfs62ChZ6EP22QlC8c7Xqr9q+e1SU5qttwwjw==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-transform-property-literals@^7.12.13":version "7.12.13"@@ -631,13 +647,16 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/plugin-transform-runtime@^7.2.0":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.17.tgz#329cb61d293b7e60a7685b91dda7c300668cee18"- integrity sha512-s+kIJxnaTj+E9Q3XxQZ5jOo+xcogSe3V78/iFQ5RmoT0jROdpcdxhfGdq/VLqW1hFSzw6VjqN8aQqTaAMixWsw==+ version "7.13.2"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.13.2.tgz#c50f0ee426c12fd3c647d0f23cc2e872d011e137"+ integrity sha512-WGvQwEanjiNgSnStXz5XKCs+S3HSw04eQM+tCIoPVTGbSWkSoxt1HlnmB6YFrEJcWlVh8Jqg43DGvLPlX/rWZw==dependencies:"@babel/helper-module-imports" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"- semver "^5.5.1"+ "@babel/helper-plugin-utils" "^7.13.0"+ babel-plugin-polyfill-corejs2 "^0.1.2"+ babel-plugin-polyfill-corejs3 "^0.1.2"+ babel-plugin-polyfill-regenerator "^0.1.1"+ semver "7.0.0""@babel/plugin-transform-shorthand-properties@^7.12.13":version "7.12.13"@@ -646,12 +665,12 @@dependencies:"@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-spread@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.13.0.tgz#84887710e273c1815ace7ae459f6f42a5d31d5fd"+ integrity sha512-V6vkiXijjzYeFmQTr3dBxPtZYLPcUfY34DebOU27jIl2M/Y8Egm52Hw82CSjjPqd54GTlJs5x+CR7HeNr24ckg==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/helper-skip-transparent-expression-wrappers" "^7.12.1""@babel/plugin-transform-sticky-regex@^7.12.13":@@ -661,12 +680,12 @@dependencies:"@babel/helper-plugin-utils" "^7.12.13"-"@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==+"@babel/plugin-transform-template-literals@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.13.0.tgz#a36049127977ad94438dee7443598d1cefdf409d"+ integrity sha512-d67umW6nlfmr1iehCcBv69eSUSySk1EsIS8aTDX4Xo9qajAh6mYtcl4kJrBkGXuxZPEgVr7RVfAvNW6YQkd4Mw==dependencies:- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/plugin-transform-typeof-symbol@^7.12.13":version "7.12.13"@@ -691,27 +710,26 @@"@babel/helper-plugin-utils" "^7.12.13""@babel/preset-env@^7.2.0":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.17.tgz#94a3793ff089c32ee74d76a3c03a7597693ebaaa"- integrity sha512-9PMijx8zFbCwTHrd2P4PJR5nWGH3zWebx2OcpTjqQrHhCiL2ssSR2Sc9ko2BsI2VmVBfoaQmPrlMTCui4LmXQg==+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.13.0.tgz#6ecc3daf63627792ec03d1076dbb54b4928a9e0d"+ integrity sha512-UeU4bHlskjdwqNnaiBEYTXbL7dtuUDtOOkcS2c64wR2UqwUMzlRsvxoKQtsVJR579dS3Wmxnb7HRc9U5mSzQhA==dependencies:- "@babel/compat-data" "^7.12.13"- "@babel/helper-compilation-targets" "^7.12.17"- "@babel/helper-module-imports" "^7.12.13"- "@babel/helper-plugin-utils" "^7.12.13"+ "@babel/compat-data" "^7.13.0"+ "@babel/helper-compilation-targets" "^7.13.0"+ "@babel/helper-plugin-utils" "^7.13.0""@babel/helper-validator-option" "^7.12.17"- "@babel/plugin-proposal-async-generator-functions" "^7.12.13"- "@babel/plugin-proposal-class-properties" "^7.12.13"+ "@babel/plugin-proposal-async-generator-functions" "^7.13.0"+ "@babel/plugin-proposal-class-properties" "^7.13.0""@babel/plugin-proposal-dynamic-import" "^7.12.17""@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-nullish-coalescing-operator" "^7.13.0""@babel/plugin-proposal-numeric-separator" "^7.12.13"- "@babel/plugin-proposal-object-rest-spread" "^7.12.13"+ "@babel/plugin-proposal-object-rest-spread" "^7.13.0""@babel/plugin-proposal-optional-catch-binding" "^7.12.13"- "@babel/plugin-proposal-optional-chaining" "^7.12.17"- "@babel/plugin-proposal-private-methods" "^7.12.13"+ "@babel/plugin-proposal-optional-chaining" "^7.13.0"+ "@babel/plugin-proposal-private-methods" "^7.13.0""@babel/plugin-proposal-unicode-property-regex" "^7.12.13""@babel/plugin-syntax-async-generators" "^7.8.0""@babel/plugin-syntax-class-properties" "^7.12.13"@@ -725,42 +743,45 @@"@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.13"- "@babel/plugin-transform-arrow-functions" "^7.12.13"- "@babel/plugin-transform-async-to-generator" "^7.12.13"+ "@babel/plugin-transform-arrow-functions" "^7.13.0"+ "@babel/plugin-transform-async-to-generator" "^7.13.0""@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-classes" "^7.13.0"+ "@babel/plugin-transform-computed-properties" "^7.13.0"+ "@babel/plugin-transform-destructuring" "^7.13.0""@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-for-of" "^7.13.0""@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-amd" "^7.13.0"+ "@babel/plugin-transform-modules-commonjs" "^7.13.0""@babel/plugin-transform-modules-systemjs" "^7.12.13"- "@babel/plugin-transform-modules-umd" "^7.12.13"+ "@babel/plugin-transform-modules-umd" "^7.13.0""@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-parameters" "^7.13.0""@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-spread" "^7.13.0""@babel/plugin-transform-sticky-regex" "^7.12.13"- "@babel/plugin-transform-template-literals" "^7.12.13"+ "@babel/plugin-transform-template-literals" "^7.13.0""@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.17"- core-js-compat "^3.8.0"- semver "^5.5.0"+ "@babel/types" "^7.13.0"+ babel-plugin-polyfill-corejs2 "^0.1.2"+ babel-plugin-polyfill-corejs3 "^0.1.2"+ babel-plugin-polyfill-regenerator "^0.1.1"+ core-js-compat "^3.9.0"+ semver "7.0.0""@babel/preset-modules@^0.1.3":version "0.1.4"@@ -774,9 +795,9 @@esutils "^2.0.2""@babel/runtime@^7.2.0", "@babel/runtime@^7.8.4":- version "7.12.18"- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.18.tgz#af137bd7e7d9705a412b3caaf991fe6aaa97831b"- integrity sha512-BogPQ7ciE6SYAUPtlm9tWbgI9+2AgqSam6QivMgXgAT+fKbgppaj4ZX15MHeLC1PVF5sNk70huBu20XxWOs8Cg==+ version "7.13.2"+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.2.tgz#9511c87d2808b2cf5fb9e9c5cf0d1ab789d75499"+ integrity sha512-U9plpxyudmZNYe12YI6cXyeWTWYCTq2u1h+C0XVtC3+BoiuzTh1BHlMJgxMrbKTombYkf7wQGqoxYkptFehuZw==dependencies:regenerator-runtime "^0.13.4"@@ -789,25 +810,25 @@"@babel/parser" "^7.12.13""@babel/types" "^7.12.13"-"@babel/traverse@^7.12.13", "@babel/traverse@^7.12.17":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.17.tgz#40ec8c7ffb502c4e54c7f95492dc11b88d718619"- integrity sha512-LGkTqDqdiwC6Q7fWSwQoas/oyiEYw6Hqjve5KOSykXkmFJFqzvGMb9niaUEag3Rlve492Mkye3gLw9FTv94fdQ==+"@babel/traverse@^7.11.5", "@babel/traverse@^7.13.0":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.13.0.tgz#6d95752475f86ee7ded06536de309a65fc8966cc"+ integrity sha512-xys5xi5JEhzC3RzEmSGrs/b3pJW/o87SypZ+G/PhaE7uqVQNv/jlmVIBXuoh5atqQ434LfXV+sf23Oxj0bchJQ==dependencies:"@babel/code-frame" "^7.12.13"- "@babel/generator" "^7.12.17"+ "@babel/generator" "^7.13.0""@babel/helper-function-name" "^7.12.13""@babel/helper-split-export-declaration" "^7.12.13"- "@babel/parser" "^7.12.17"- "@babel/types" "^7.12.17"+ "@babel/parser" "^7.13.0"+ "@babel/types" "^7.13.0"debug "^4.1.0"globals "^11.1.0"lodash "^4.17.19"-"@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.12.17", "@babel/types@^7.4.4":- version "7.12.17"- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.17.tgz#9d711eb807e0934c90b8b1ca0eb1f7230d150963"- integrity sha512-tNMDjcv/4DIcHxErTgwB9q2ZcYyN0sUfgGKUK/mm1FJK7Wz+KstoEekxrl/tBiNDgLK1HGi+sppj1An/1DR4fQ==+"@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.4.4":+ version "7.13.0"+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.0.tgz#74424d2816f0171b4100f0ab34e9a374efdf7f80"+ integrity sha512-hE+HE8rnG1Z6Wzo+MhaKE5lM5eMx71T4EHJgku2E3xIfaULhDcxiiRxUYgwX8qwP1BBSlag+TdGOt6JAidIZTA==dependencies:"@babel/helper-validator-identifier" "^7.12.11"lodash "^4.17.19"@@ -1347,6 +1368,30 @@ babel-plugin-dynamic-import-node@^2.3.3:dependencies:object.assign "^4.1.0"+babel-plugin-polyfill-corejs2@^0.1.2:+ version "0.1.2"+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.1.2.tgz#3e5e7ef339dd84ca34c6a20605e6d4ef62aba3b1"+ integrity sha512-sSGAKN95gTnXjg3RtGI9QBW/xSqXy5fo2Bt+W5WkhconIO+QxuDZChyjZYiY90xE3MQRI1k73Dh/HAe86cWf8A==+ dependencies:+ "@babel/compat-data" "^7.11.0"+ "@babel/helper-define-polyfill-provider" "^0.1.0"+ semver "^6.1.1"++babel-plugin-polyfill-corejs3@^0.1.2:+ version "0.1.2"+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.2.tgz#39b0d46744360738237bd54052af852c84d74ebf"+ integrity sha512-7neRvPKcdvZ4X9IpYBCmT+ceVUKC1idX7DJN5sRtiPP9d0ABD6k5x/QvXTiz/9wMp86FBDX6Gz0g7WQY2lRfgw==+ dependencies:+ "@babel/helper-define-polyfill-provider" "^0.1.0"+ core-js-compat "^3.8.1"++babel-plugin-polyfill-regenerator@^0.1.1:+ version "0.1.1"+ resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.1.tgz#3b9b907d1554747ff131bd5c6da81713e342db73"+ integrity sha512-QZlnPDLX2JEXP8RQGeP4owNxRKUAqHD+rdlyRHV8ENeCcI9ni2qT9IzxT9jYW1aZrxCgehD31LztlMaA68zoqQ==+ dependencies:+ "@babel/helper-define-polyfill-provider" "^0.1.0"+balanced-match@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"@@ -2088,7 +2133,7 @@ copy-descriptor@^0.1.0:resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=-core-js-compat@^3.8.0:+core-js-compat@^3.8.1, core-js-compat@^3.9.0:version "3.9.0"resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.9.0.tgz#29da39385f16b71e1915565aa0385c4e0963ad56"integrity sha512-YK6fwFjCOKWwGnjFUR3c544YsnA/7DoLL0ysncuOJ4pwbriAtOpvM2bygdlcXbvQCQZ7bBU9CL4t7tGl7ETRpQ==@@ -2626,9 +2671,9 @@ ejs@^2.6.1:integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==electron-to-chromium@^1.3.649:- version "1.3.671"- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.671.tgz#8feaed6eae42d279fa4611f58c42a5a1eb81b2a0"- integrity sha512-RTD97QkdrJKaKwRv9h/wGAaoR2lGxNXEcBXS31vjitgTPwTWAbLdS7cEsBK68eEQy7p6YyT8D5BxBEYHu2SuwQ==+ version "1.3.672"+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.672.tgz#3a6e335016dab4bc584d5292adc4f98f54541f6a"+ integrity sha512-gFQe7HBb0lbOMqK2GAS5/1F+B0IMdYiAgB9OT/w1F4M7lgJK2aNOMNOM622aEax+nS1cTMytkiT0uMOkbtFmHw==elliptic@^6.5.3:version "6.5.4"@@ -2727,7 +2772,7 @@ es-abstract@^1.17.2:string.prototype.trimend "^1.0.1"string.prototype.trimstart "^1.0.1"-es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2:+es-abstract@^1.18.0-next.2:version "1.18.0-next.2"resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.2.tgz#088101a55f0541f595e7e057199e27ddc8f3a5c2"integrity sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw==@@ -3226,7 +3271,7 @@ function-bind@^1.1.1:resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==-gensync@^1.0.0-beta.1:+gensync@^1.0.0-beta.2:version "1.0.0-beta.2"resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==@@ -3851,6 +3896,13 @@ is-color-stop@^1.0.0:rgb-regex "^1.0.1"rgba-regex "^1.0.0"+is-core-module@^2.2.0:+ version "2.2.0"+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a"+ integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==+ dependencies:+ has "^1.0.3"+is-data-descriptor@^0.1.4:version "0.1.4"resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"@@ -4290,6 +4342,11 @@ lodash.clonedeep@^4.5.0:resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=+lodash.debounce@^4.0.8:+ version "4.0.8"+ resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"+ integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=+lodash.memoize@^4.1.2:version "4.1.2"resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"@@ -4858,13 +4915,13 @@ object.pick@^1.3.0:isobject "^3.0.1"object.values@^1.1.0:- version "1.1.2"- resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.2.tgz#7a2015e06fcb0f546bd652486ce8583a4731c731"- integrity sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag==+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.3.tgz#eaa8b1e17589f02f698db093f7c62ee1699742ee"+ integrity sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==dependencies:- call-bind "^1.0.0"+ call-bind "^1.0.2"define-properties "^1.1.3"- es-abstract "^1.18.0-next.1"+ es-abstract "^1.18.0-next.2"has "^1.0.3"obuf@^1.0.0, obuf@^1.1.2:@@ -5078,6 +5135,11 @@ path-key@^3.1.0:resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==+path-parse@^1.0.6:+ version "1.0.6"+ resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"+ integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==+version "0.1.7"resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"@@ -5871,6 +5933,14 @@ resolve-url@^0.2.1:resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=+resolve@^1.14.2:+ version "1.20.0"+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"+ integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==+ dependencies:+ is-core-module "^2.2.0"+ path-parse "^1.0.6"+ret@~0.1.10:version "0.1.15"resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"@@ -6023,12 +6093,12 @@ [email protected]:resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e"integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==-semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:+semver@^5.5.0, semver@^5.6.0:version "5.7.1"resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==-semver@^6.0.0, semver@^6.3.0:+semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:version "6.3.0"resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==diff --git a/public/v2/js/transactions/create.js b/public/v2/js/transactions/create.jsindex 0ba4ef6724..f9924e46fa 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],{230:function(t,e,n){var s=n(410);"string"==typeof s&&(s=[[t.i,s,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(22)(s,i);s.locals&&(t.exports=s.locals)},299:function(t,e,n){t.exports=n(421)},409:function(t,e,n){"use strict";n(230)},410:function(t,e,n){(t.exports=n(21)(!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}",""])},421:function(t,e,n){"use strict";n.r(e);var s=n(16),i=n(2),a={name:"Alert",props:["message","type"]},r=n(1),o=Object(r.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.message.length>0?n("div",{class:"alert alert-"+t.type+" alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",["danger"===t.type?n("i",{staticClass:"icon fas fa-ban"}):t._e(),t._v(" "),"success"===t.type?n("i",{staticClass:"icon fas fa-thumbs-up"}):t._e(),t._v(" "),"danger"===t.type?n("span",[t._v(t._s(t.$t("firefly.flash_error")))]):t._e(),t._v(" "),"success"===t.type?n("span",[t._v(t._s(t.$t("firefly.flash_success")))]):t._e()]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.message)}})]):t._e()}),[],!1,null,null,null).exports,c={name:"SplitPills",props:["transactions"]},l=Object(r.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 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,s){return n("li",{staticClass:"nav-item"},[n("a",{class:"nav-link"+(0===s?" active":""),attrs:{href:"#split_"+s,"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(s+1))]):t._e()])])})),0)])]):t._e()}),[],!1,null,null,null).exports,u=n(12),d=n(11);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=Object(i.b)("transactions/create"),_=(h.mapState,h.mapGetters),v=(h.mapActions,h.mapMutations),g={props:["value","errors"],name:"TransactionGroupTitle",components:{VueTypeaheadBootstrap:u.a},data:function(){return{descriptions:[],initialSet:[],title:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},watch:{title:function(t){this.setGroupTitle({groupTitle:t})}},methods:f(f(f({},v(["setGroupTitle"])),_(["groupTitle"])),{},{clearDescription:function(){this.setGroupTitle({groupTitle:""}),this.title=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.title)).then((function(e){t.descriptions=e.data}))}),300)})},y=Object(r.a)(g,(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.title,callback:function(e){t.title=e},expression:"title"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,"20a0ca60",null).exports,b={props:["index","value","errors"],components:{VueTypeaheadBootstrap:u.a},name:"TransactionDescription",data:function(){return{descriptions:[],initialSet:[],description:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},methods:{clearDescription:function(){this.description=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)},watch:{description:function(t){this.$emit("set-description",t)}}},x=Object(r.a)(b,(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.description,callback:function(e){t.description=e},expression:"description"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,C={props:["index","errors","date","time"],name:"TransactionDate",data:function(){return{localDate:this.date,localTime:this.time}},methods:{},computed:{dateStr:{get:function(){return this.localDate instanceof Date&&!isNaN(this.localDate)?this.localDate.toISOString().split("T")[0]:""},set:function(t){if(""===t)return this.localDate=new Date,void this.$emit("set-date",{date:this.localDate});this.localDate=new Date(t),this.$emit("set-date",{date:this.localDate})}},timeStr:{get:function(){return this.localTime instanceof Date&&!isNaN(this.localTime)?("0"+this.localTime.getHours()).slice(-2)+":"+("0"+this.localTime.getMinutes()).slice(-2)+":"+("0"+this.localTime.getSeconds()).slice(-2):""},set:function(t){if(""===t)return this.localTime.setHours(0),this.localTime.setMinutes(0),this.localTime.setSeconds(0),void this.$emit("set-time",{time:this.localTime});var e=new Date(this.localTime.getTime()),n=t.split(":");e.setHours(parseInt(n[0])),e.setMinutes(parseInt(n[1])),e.setSeconds(parseInt(n[2])),this.localTime=e,this.$emit("set-time",{time:this.localTime})}}}},T=Object(r.a)(C,(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.dateStr,expression:"dateStr"}],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.dateStr},domProps:{value:t.dateStr},on:{input:function(e){e.target.composing||(t.dateStr=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.timeStr,expression:"timeStr"}],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.timeStr},domProps:{value:t.timeStr},on:{input:function(e){e.target.composing||(t.timeStr=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,k={props:["index","value","errors"],name:"TransactionBudget",data:function(){return{budgetList:[],budget:this.value}},created:function(){this.collectData()},methods:{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:{budget:function(t){this.$emit("set-budget",t)}}},w=Object(r.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.budget,expression:"budget"}],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.budget=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 $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(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 O=Object(i.b)("transactions/create"),j=(O.mapState,O.mapGetters),S=(O.mapActions,O.mapMutations),P={name:"TransactionAccount",components:{VueTypeaheadBootstrap:u.a},props:["index","direction","value","errors"],data:function(){return{query:"",accounts:[],accountTypes:[],initialSet:[],selectedAccount:{},account:this.value,accountName:"",selectedAccountTrigger:!1}},created:function(){this.createInitialSet()},methods:F(F({},S(["updateField","setDestinationAllowedTypes","setSourceAllowedTypes"])),{},{getACURL:function(t,e){return"./api/v1/autocomplete/accounts?types="+t.join(",")+"&query="+e},clearAccount:function(){this.accounts=this.initialSet,this.account={name:"",type:"no_type",id:null,currency_id:null,currency_code:null,currency_symbol:null},this.accountName=""},lookupAccount:Object(d.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.accountName)).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.selectedAccountTrigger=!0,this.account=t,this.$emit(this.emitAccountId,t.id),this.$emit(this.emitAccountType,t.type),this.$emit(this.emitAccountName,t.name),this.$emit(this.emitAccountCurrencyId,t.currency_id),this.$emit(this.emitAccountCurrencyCode,t.currency_code),this.$emit(this.emitAccountCurrencySymbol,t.currency_symbol),this.accountName=this.account.name_with_balance},accountName:function(t){!1===this.selectedAccountTrigger&&(console.log("Save to change name!"),this.$emit(this.emitAccountId,null),this.$emit(this.emitAccountType,null),this.$emit(this.emitAccountName,t),this.$emit(this.emitAccountCurrencyId,null),this.$emit(this.emitAccountCurrencyCode,null),this.$emit(this.emitAccountCurrencySymbol,null),this.accountTrigger=!1,this.account={name:t,type:null,id:null,currency_id:null,currency_code:null,currency_symbol:null}),this.selectedAccountTrigger=!1},account:function(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)},value:function(t){console.log(this.direction+" account overruled by external forces."),this.account=t,this.selectedAccountTrigger=!0,this.accountName=t.name}},computed:F(F({},j(["transactionType","sourceAllowedTypes","destinationAllowedTypes","allowedOpposingTypes"])),{},{accountKey:{get:function(){return"source"===this.direction?"source_account":"destination_account"}},emitAccountId:{get:function(){return"set-"+this.direction+"-account-id"}},emitAccount:{get:function(){return"set-"+this.direction+"-account"}},emitAccountName:{get:function(){return"set-"+this.direction+"-account-name"}},emitAccountType:{get:function(){return"set-"+this.direction+"-account-type"}},emitAccountCurrencyId:{get:function(){return"set-"+this.direction+"-account-currency-id"}},emitAccountCurrencyCode:{get:function(){return"set-"+this.direction+"-account-currency-code"}},emitAccountCurrencySymbol:{get:function(){return"set-"+this.direction+"-account-currency-symbol"}},visible:{get:function(){return 0===this.index||("source"===this.direction?"any"===this.transactionType||"Deposit"===this.transactionType:"destination"===this.direction&&("any"===this.transactionType||"Withdrawal"===this.transactionType))}}})},D=Object(r.a)(P,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[t.visible?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[0===this.index?n("span",[t._v(t._s(t.$t("firefly."+this.direction+"_account")))]):t._e(),t._v(" "),this.index>0?n("span",{staticClass:"text-warning"},[t._v(t._s(t.$t("firefly.first_split_overrules_"+this.direction)))]):t._e()]):t._e(),t._v(" "),t.visible?t._e():n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n \n ")]),t._v(" "),t.visible?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."+t.direction+"_account")},on:{input:t.lookupAccount,hit:function(e){t.selectedAccount=e}},scopedSlots:t._u([{key:"suggestion",fn:function(e){var s=e.data,i=e.htmlText;return[n("div",{staticClass:"d-flex",attrs:{title:s.type}},[n("span",{domProps:{innerHTML:t._s(i)}}),n("br")])]}}],null,!1,1423807661),model:{value:t.accountName,callback:function(e){t.accountName=e},expression:"accountName"}},[t._v(" "),n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",type:"button"},on:{click:t.clearAccount}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2):t._e(),t._v(" "),t.visible?t._e():n("div",{staticClass:"form-control-static"},[n("span",{staticClass:"small text-muted"},[n("em",[t._v(t._s(t.$t("firefly.first_split_decides")))])])]),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 E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N=Object(i.b)("transactions/create"),M=(N.mapState,N.mapGetters),U=(N.mapActions,{name:"SwitchAccount",props:["index"],methods:L(L({},(0,N.mapMutations)(["updateField"])),{},{switchAccounts:function(){this.$emit("switch-accounts",this.index)}}),computed:L({},M(["transactionType"]))}),R=Object(r.a)(U,(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,"2d362d12",null).exports,B={name:"TransactionAmount",props:["index","errors","amount","transactionType","sourceCurrencySymbol","destinationCurrencySymbol"],data:function(){return{transactionAmount:this.amount,currencySymbol:null,srcCurrencySymbol:this.sourceCurrencySymbol,dstCurrencySymbol:this.destinationCurrencySymbol}},watch:{transactionAmount:function(t){this.$emit("set-amount",t)},amount:function(t){this.transactionAmount=t},sourceCurrencySymbol:function(t){this.srcCurrencySymbol=t},destinationCurrencySymbol:function(t){this.dstCurrencySymbol=t},transactionType:function(t){switch(t){case"Transfer":case"Withdrawal":this.currencySymbol=this.srcCurrencySymbol;break;case"Deposit":this.currencySymbol=this.dstCurrencySymbol}}}},z=Object(r.a)(B,(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"},[t.currencySymbol?n("div",{staticClass:"input-group-prepend"},[n("div",{staticClass:"input-group-text"},[t._v(t._s(t.currencySymbol))])]):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.transactionAmount,expression:"transactionAmount"}],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.transactionAmount},on:{input:function(e){e.target.composing||(t.transactionAmount=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,"71a072b0",null).exports,V={name:"TransactionForeignAmount",props:["index","errors","transactionType","sourceCurrencyId","destinationCurrencyId"],data:function(){return{amount:""}},watch:{amount:function(t){this.$emit("set-foreign-amount",t)}},computed:{isVisible:{get:function(){return!("Transfer"===this.transactionType&&this.sourceCurrencyId===this.destinationCurrencyId)}}}},G=Object(r.a)(V,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?n("div",{staticClass:"form-group"},[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",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()]):t._e()}),[],!1,null,"1439811f",null).exports,q={name:"TransactionForeignCurrency",props:["index","transactionType","sourceCurrencyId","destinationCurrencyId","selectedCurrencyId"],data:function(){return{selectedCurrency:0,allCurrencies:[],selectableCurrencies:[],dstCurrencyId:this.destinationCurrencyId,srcCurrencyId:this.sourceCurrencyId,lockedCurrency:0}},watch:{sourceCurrencyId:function(t){this.srcCurrencyId=t},destinationCurrencyId:function(t){this.dstCurrencyId=t},selectedCurrency:function(t){this.$emit("set-foreign-currency-id",t)},transactionType:function(t){this.lockedCurrency=0,"Transfer"===t&&(this.lockedCurrency=this.dstCurrencyId,this.selectedCurrency=this.dstCurrencyId),this.filterCurrencies()}},created:function(){this.getAllCurrencies()},methods:{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.selectableCurrencies.push(e)}}else for(var n in this.allCurrencies)if(this.allCurrencies.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=this.allCurrencies[n];s.id===this.lockedCurrency&&(this.selectableCurrencies=[s],this.selectedCurrency=s.id)}}},computed:{isVisible:function(){return!("Transfer"===this.transactionType&&this.srcCurrencyId===this.dstCurrencyId)}}},H=Object(r.a)(q,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?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.selectedCurrency,expression:"selectedCurrency"}],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.selectedCurrency=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,"5af5a995",null).exports,W={name:"TransactionCustomDates",props:["index","errors","customFields","interestDate","bookDate","processDate","dueDate","paymentDate","invoiceDate"],data:function(){return{dateFields:["interest_date","book_date","process_date","due_date","payment_date","invoice_date"],availableFields:this.customFields,dates:{interest_date:this.interestDate,book_date:this.bookDate,process_date:this.processDate,due_date:this.dueDate,payment_date:this.paymentDate,invoice_date:this.invoiceDate}}},watch:{customFields:function(t){this.availableFields=t}},methods:{isDateField:function(t){return this.dateFields.includes(t)},getFieldValue:function(t){var e;return null!==(e=this.dates[t])&&void 0!==e?e:""},setFieldValue:function(t,e){this.$emit("set-custom-date",{field:e,date:t.target.value})}}},J=Object(r.a)(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.availableFields,(function(e,s){return n("div",{staticClass:"form-group"},[e&&t.isDateField(s)?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("form."+s))+"\n ")]):t._e(),t._v(" "),e&&t.isDateField(s)?n("div",{staticClass:"input-group"},[n("input",{ref:s,refInFor:!0,staticClass:"form-control",attrs:{type:"date",title:t.$t("form."+s),autocomplete:"off",name:s+"[]",placeholder:t.$t("form."+s)},domProps:{value:t.getFieldValue(s)},on:{change:function(e){return t.setFieldValue(e,s)},submit:function(t){t.preventDefault()}}})]):t._e()])})),0)}),[],!1,null,null,null).exports,K={props:["value","index","errors"],components:{VueTypeaheadBootstrap:u.a},name:"TransactionCategory",data:function(){return{categories:[],initialSet:[],category:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.categories=e.data,t.initialSet=e.data}))},methods:{clearCategory:function(){this.category=null},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/categories?query="+t},lookupCategory:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.categories=e.data}))}),300)},watch:{category:function(t){this.$emit("set-category",t)}},computed:{selectedCategory:{get:function(){return this.categories[this.index].name},set:function(t){this.category=t.name}}}},Z=Object(r.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.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.category,callback:function(e){t.category=e},expression:"category"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,Y={props:["value","index","errors"],name:"TransactionBill",data:function(){return{billList:[],bill:this.value}},created:function(){this.collectData()},methods:{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:{bill:function(t){this.$emit("set-bill",t)}}},Q=Object(r.a)(Y,(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.bill,expression:"bill"}],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.bill=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,X=n(239),tt=n.n(X),et=n(50),nt=n.n(et),st={name:"TransactionTags",components:{VueTagsInput:tt.a},props:["value","index","errors"],data:function(){return{autocompleteItems:[],debounce:null,tags:[],currentTag:"",updateTags:!0,tagList:this.value}},watch:{currentTag:"initItems",tagList:function(t){this.$emit("set-tags",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.tagList=e}this.updateTags=!0}},methods:{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(){nt.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)}}}},it=(n(409),Object(r.a)(st,(function(){var t=this,e=this,n=e.$createElement,s=e._self._c||n;return s("div",{staticClass:"form-group"},[s("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n "+e._s(e.$t("firefly.tags"))+"\n ")]),e._v(" "),s("div",{staticClass:"input-group"},[s("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?s("span",e._l(e.errors,(function(t){return s("span",{staticClass:"text-danger small"},[e._v(e._s(t)),s("br")])})),0):e._e()])}),[],!1,null,null,null).exports),at={props:["index","value","errors"],name:"TransactionPiggyBank",data:function(){return{piggyList:[],piggy_bank_id:this.value}},created:function(){this.collectData()},methods:{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:{piggy_bank_id:function(t){this.$emit("set-piggy-bank",t)}}},rt=Object(r.a)(at,(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.piggy_bank_id,expression:"piggy_bank_id"}],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.piggy_bank_id=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,ot={props:["index","value","errors","customFields"],name:"TransactionInternalReference",data:function(){return{reference:this.value,availableFields:this.customFields}},computed:{showField:function(){return"internal_reference"in this.availableFields&&this.availableFields.internal_reference}},methods:{},watch:{customFields:function(t){this.availableFields=t},reference:function(t){this.$emit("set-internal-reference",t)}}},ct=Object(r.a)(ot,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.reference,expression:"reference"}],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.reference},on:{input:function(e){e.target.composing||(t.reference=e.target.value)}}}),t._v(" "),t._m(0)])]):t._e()}),[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:{tabindex:"-1",type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,null,null).exports,lt={props:["index","value","errors","customFields"],name:"TransactionExternalUrl",data:function(){return{url:this.value,availableFields:this.customFields}},computed:{showField:function(){return"external_uri"in this.availableFields&&this.availableFields.external_uri}},methods:{},watch:{customFields:function(t){this.availableFields=t},url:function(t){this.$emit("set-external-url",t)}}},ut=Object(r.a)(lt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.url,expression:"url"}],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.url},on:{input:function(e){e.target.composing||(t.url=e.target.value)}}}),t._v(" "),t._m(0)])]):t._e()}),[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:{tabindex:"-1",type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"630feb99",null).exports,dt={props:["index","value","errors","customFields"],name:"TransactionNotes",data:function(){return{notes:this.value,availableFields:this.customFields}},computed:{showField:function(){return"notes"in this.availableFields&&this.availableFields.notes}},watch:{customFields:function(t){this.availableFields=t},notes:function(t){this.$emit("set-notes",t)}}},pt=Object(r.a)(dt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.notes,expression:"notes"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{placeholder:t.$t("firefly.notes")},domProps:{value:t.notes},on:{input:function(e){e.target.composing||(t.notes=e.target.value)}}})])]):t._e()}),[],!1,null,"dca081c4",null).exports,ft=n(191),mt={props:["index","value","errors","customFields"],name:"TransactionLinks",data:function(){return{searchResults:[],include:[],locale:"en-US",linkTypes:[],query:"",searching:!1,links:[],availableFields:this.customFields}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.links=ft(this.value),this.getLinkTypes()},computed:{showField:function(){return"links"in this.availableFields&&this.availableFields.links}},watch:{links:function(t){this.$emit("set-links",ft(t))},customFields:function(t){this.availableFields=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 s=this.linkTypes[n];if(e[0]===s.id&&e[1]===s.direction)return s.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.links)if(this.links.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=this.links[n];parseInt(s.transaction_journal_id)===t&&(this.links[n].link_type_id=e)}},addToSelected:function(t){void 0===this.links.find((function(e){return e.transaction_journal_id===t.transaction_journal_id}))&&this.links.push(t)},removeFromSelected:function(t){for(var e in this.links){if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)this.links[e].transaction_journal_id===t.transaction_journal_id&&this.links.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],s={id:n.id,type:n.attributes.inward,direction:"inward"},i={id:n.id,type:n.attributes.outward,direction:"outward"};s.type===i.type&&(s.type=s.type+" (←)",i.type=i.type+" (→)"),this.linkTypes.push(s),this.linkTypes.push(i)}},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 s=t.data[e].attributes.transactions[n];s.transaction_group_id=parseInt(t.data[e].id),s.selected=this.isJournalSelected(s.transaction_journal_id),s.link_type_id=this.getJournalLinkType(s.transaction_journal_id),s.link_type_text="",this.searchResults.push(s)}this.searching=!1},getJournalLinkType:function(t){for(var e in this.links)if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.links[e];if(n.transaction_journal_id===t)return n.link_type_id}return"1-inward"},isJournalSelected:function(t){for(var e in this.links){if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)if(this.links[e].transaction_journal_id===t)return!0}return!1}}},ht=Object(r.a)(mt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.links.length?n("p",[t._m(0)]):t._e(),t._v(" "),t.links.length>0?n("ul",{staticClass:"list-group"},t._l(t.links,(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.links.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 s=e.selected,i=n.target,a=!!i.checked;if(Array.isArray(s)){var r=t._i(s,null);i.checked?r<0&&t.$set(e,"selected",s.concat([null])):r>-1&&t.$set(e,"selected",s.slice(0,r).concat(s.slice(r+1)))}else t.$set(e,"selected",a)},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 s=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?s:s[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)])])])]):t._e()}),[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:{tabindex:"-1",href:"#"}},[e("i",{staticClass:"far fa-edit"})]),this._v(" "),e("a",{staticClass:"btn btn-xs btn-danger",attrs:{tabindex:"-1",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,_t={name:"TransactionAttachments",props:["transaction_journal_id","customFields"],data:function(){return{availableFields:this.customFields}},watch:{customFields:function(t){this.availableFields=t},transaction_journal_id:function(t){if(!this.showField)return console.log("Field is hidden. Emit event!"),void this.$emit("uploaded-attachments",t);0!==t&&this.doUpload()}},computed:{showField:function(){return"attachments"in this.availableFields&&this.availableFields.attachments}},methods:{doUpload:function(){var t=this;for(var e in console.log("Now in doUpload() for "+this.$refs.att.files.length+" files."),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],s=new FileReader,i=t;s.onloadend=function(t){var e=this;if(t.target.readyState===FileReader.DONE){var s={filename:n.name,attachable_type:"TransactionJournal",attachable_id:i.transaction_journal_id};axios.post("./api/v1/attachments",s).then((function(n){var s="./api/v1/attachments/"+n.data.data.id+"/upload";axios.post(s,new Blob([t.target.result])).then((function(t){console.log("Uploaded a file. Emit event!"),i.$emit("uploaded-attachments",e.transaction_journal_id)}))}))}},s.readAsArrayBuffer(n)}();0===this.$refs.att.files.length&&(console.log("No files to upload. Emit event!"),this.$emit("uploaded-attachments",this.transaction_journal_id))}}},vt=Object(r.a)(_t,(function(){var t=this.$createElement,e=this._self._c||t;return this.showField?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[]"}})])]):this._e()}),[],!1,null,"4957e769",null).exports,gt=n(428),yt=n(429),bt=n(430),xt=(n(411),n(4)),Ct=n.n(xt);delete Ct.a.Icon.Default.prototype._getIconUrl,Ct.a.Icon.Default.mergeOptions({iconRetinaUrl:n(415),iconUrl:n(231),shadowUrl:n(416)});var Tt={name:"TransactionLocation",props:["index","value","errors","customFields"],components:{LMap:gt.a,LTileLayer:yt.a,LMarker:bt.a},created:function(){var t=this;axios.get("./api/v1/configuration/static/firefly.default_location").then((function(e){t.zoom=parseInt(e.data["firefly.default_location"].zoom_level),t.center=[parseFloat(e.data["firefly.default_location"].latitude),parseFloat(e.data["firefly.default_location"].longitude)]}))},data:function(){return{availableFields:this.customFields,url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",zoom:3,center:[0,0],bounds:null,map:null,hasMarker:!1,marker:[0,0]}},methods:{prepMap:function(){this.map=this.$refs.myMap.mapObject,this.map.on("contextmenu",this.setObjectLocation),this.map.on("zoomend",this.saveZoomLevel)},setObjectLocation:function(t){this.marker=[t.latlng.lat,t.latlng.lng],this.hasMarker=!0,this.emitEvent()},saveZoomLevel:function(){this.emitEvent()},clearLocation:function(){this.hasMarker=!1,this.emitEvent()},emitEvent:function(){this.$emit("set-marker-location",{zoomLevel:this.zoom,lat:this.marker[0],lng:this.marker[1],hasMarker:this.hasMarker})},zoomUpdated:function(t){this.zoom=t},centerUpdated:function(t){this.center=t},boundsUpdated:function(t){this.bounds=t}},computed:{showField:function(){return"location"in this.availableFields&&this.availableFields.location}},watch:{customFields:function(t){this.availableFields=t}}},kt=Object(r.a)(Tt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.location"))+"\n ")]),t._v(" "),n("div",{staticStyle:{width:"100%",height:"300px"}},[n("l-map",{ref:"myMap",staticStyle:{width:"100%",height:"300px"},attrs:{zoom:t.zoom,center:t.center},on:{ready:function(e){return t.prepMap()},"update:zoom":t.zoomUpdated,"update:center":t.centerUpdated,"update:bounds":t.boundsUpdated}},[n("l-tile-layer",{attrs:{url:t.url}}),t._v(" "),n("l-marker",{attrs:{"lat-lng":t.marker,visible:t.hasMarker}})],1),t._v(" "),n("span",[n("button",{staticClass:"btn btn-default btn-xs",on:{click:t.clearLocation}},[t._v(t._s(t.$t("firefly.clear_location")))])])],1),t._v(" "),n("p",[t._v(" ")])]):t._e()}),[],!1,null,"6cf6c869",null).exports;function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function $t(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){Ft(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 Ft(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(i.b)("transactions/create"),Ot=(At.mapState,At.mapGetters),jt=(At.mapActions,At.mapMutations,{name:"SplitForm",props:["transaction","split","count","customFields","index","submittedTransaction"],computed:$t($t({},Ot(["transactionType","date","time"])),{},{splitDate:function(){return this.date},splitTime:function(){return this.time},sourceAccount:function(){return{id:this.transaction.source_account_id,name:this.transaction.source_account_name,type:this.transaction.source_account_type}},destinationAccount:function(){return{id:this.transaction.destination_account_id,name:this.transaction.destination_account_name,type:this.transaction.destination_account_type}},hasMetaFields:function(){var t=["internal_reference","notes","attachments","external_uri","location","links"];for(var e in this.customFields)if(this.customFields.hasOwnProperty(e)&&t.includes(e)&&!0===this.customFields[e])return!0;return!1}}),components:{TransactionLocation:kt,SplitPills:l,TransactionAttachments:vt,TransactionNotes:pt,TransactionExternalUrl:ut,TransactionInternalReference:ct,TransactionPiggyBank:rt,TransactionTags:it,TransactionLinks:ht,TransactionBill:Q,TransactionCategory:Z,TransactionCustomDates:J,TransactionForeignCurrency:H,TransactionForeignAmount:G,TransactionAmount:z,SwitchAccount:R,TransactionAccount:D,TransactionBudget:w,TransactionDescription:x,TransactionDate:T}}),St=Object(r.a)(jt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"tab-pane"+(0===t.index?" active":""),attrs:{id:"split_"+t.index}},[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.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionDescription",t._g({attrs:{index:t.index,errors:t.transaction.errors.description},model:{value:t.transaction.description,callback:function(e){t.$set(t.transaction,"description",e)},expression:"transaction.description"}},t.$listeners))],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",t._g({attrs:{direction:"source",index:t.index,errors:t.transaction.errors.source},model:{value:t.sourceAccount,callback:function(e){t.sourceAccount=e},expression:"sourceAccount"}},t.$listeners))],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"},[0===t.index?n("SwitchAccount",t._g({attrs:{index:t.index}},t.$listeners)):t._e()],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAccount",t._g({attrs:{direction:"destination",index:t.index,errors:t.transaction.errors.destination},model:{value:t.destinationAccount,callback:function(e){t.destinationAccount=e},expression:"destinationAccount"}},t.$listeners))],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",t._g({attrs:{index:t.index,errors:t.transaction.errors.amount,amount:t.transaction.amount,"transaction-type":this.transactionType,"source-currency-symbol":this.transaction.source_account_currency_symbol,"destination-currency-symbol":this.transaction.destination_account_currency_symbol}},t.$listeners))],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",t._g({attrs:{"transaction-type":this.transactionType,"source-currency-id":this.transaction.source_account_currency_id,"destination-currency-id":this.transaction.destination_account_currency_id,"selected-currency-id":this.transaction.foreign_currency_id,index:t.index}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionForeignAmount",t._g({attrs:{index:t.index,errors:t.transaction.errors.foreign_amount,"transaction-type":this.transactionType,"source-currency-id":this.transaction.source_account_currency_id,"destination-currency-id":this.transaction.destination_account_currency_id,"selected-currency-id":this.transaction.foreign_currency_id}},t.$listeners))],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",t._g({attrs:{index:t.index,date:t.splitDate,time:t.splitTime,errors:t.transaction.errors.date}},t.$listeners))],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",t._g({attrs:{index:t.index,"custom-fields":t.customFields,errors:t.transaction.errors.custom_dates,"interest-date":t.transaction.interest_date,"book-date":t.transaction.book_date,"process-date":t.transaction.process_date,"due-date":t.transaction.due_date,"payment-date":t.transaction.payment_date,"invoice-date":t.transaction.invoice_date},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}}},t.$listeners))],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.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},["Transfer"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionBudget",t._g({attrs:{index:t.index,errors:t.transaction.errors.budget},model:{value:t.transaction.budget_id,callback:function(e){t.$set(t.transaction,"budget_id",e)},expression:"transaction.budget_id"}},t.$listeners)):t._e(),t._v(" "),n("TransactionCategory",t._g({attrs:{index:t.index,errors:t.transaction.errors.category},model:{value:t.transaction.category,callback:function(e){t.$set(t.transaction,"category",e)},expression:"transaction.category"}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},["Transfer"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionBill",t._g({attrs:{index:t.index,errors:t.transaction.errors.bill},model:{value:t.transaction.bill_id,callback:function(e){t.$set(t.transaction,"bill_id",e)},expression:"transaction.bill_id"}},t.$listeners)):t._e(),t._v(" "),n("TransactionTags",t._g({attrs:{index:t.index,errors:t.transaction.errors.tags},model:{value:t.transaction.tags,callback:function(e){t.$set(t.transaction,"tags",e)},expression:"transaction.tags"}},t.$listeners)),t._v(" "),"Withdrawal"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionPiggyBank",t._g({attrs:{index:t.index,errors:t.transaction.errors.piggy_bank},model:{value:t.transaction.piggy_bank_id,callback:function(e){t.$set(t.transaction,"piggy_bank_id",e)},expression:"transaction.piggy_bank_id"}},t.$listeners)):t._e()],1)])])])])]),t._v(" "),t.hasMetaFields?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_extra"))+"\n "),t.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[n("TransactionInternalReference",t._g({attrs:{index:t.index,errors:t.transaction.errors.internal_reference,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.internal_reference,callback:function(e){t.$set(t.transaction,"internal_reference",e)},expression:"transaction.internal_reference"}},t.$listeners)),t._v(" "),n("TransactionExternalUrl",t._g({attrs:{index:t.index,errors:t.transaction.errors.external_url,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.external_url,callback:function(e){t.$set(t.transaction,"external_url",e)},expression:"transaction.external_url"}},t.$listeners)),t._v(" "),n("TransactionNotes",t._g({attrs:{index:t.index,errors:t.transaction.errors.notes,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.notes,callback:function(e){t.$set(t.transaction,"notes",e)},expression:"transaction.notes"}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAttachments",t._g({ref:"attachments",attrs:{index:t.index,transaction_journal_id:t.transaction.transaction_journal_id,submitted_transaction:t.submittedTransaction,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.attachments,callback:function(e){t.$set(t.transaction,"attachments",e)},expression:"transaction.attachments"}},t.$listeners)),t._v(" "),n("TransactionLocation",t._g({attrs:{index:t.index,errors:t.transaction.errors.location,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.notes,callback:function(e){t.$set(t.transaction,"notes",e)},expression:"transaction.notes"}},t.$listeners)),t._v(" "),n("TransactionLinks",t._g({attrs:{index:t.index,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.links,callback:function(e){t.$set(t.transaction,"links",e)},expression:"transaction.links"}},t.$listeners))],1)])])])])]):t._e()])}),[],!1,null,null,null).exports;function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(n),!0).forEach((function(e){Et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pt(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 Lt=Object(i.b)("transactions/create"),It=(Lt.mapState,Lt.mapGetters),Nt=(Lt.mapActions,Lt.mapMutations),Mt={name:"Create",components:{SplitForm:St,Alert:o,SplitPills:l,TransactionGroupTitle:y},created:function(){this.storeAllowedOpposingTypes(),this.storeAccountToTransaction(),this.storeCustomFields(),this.addTransaction()},data:function(){return{errorMessage:"",successMessage:"",customFields:[],enableSubmit:!0,createAnother:!1,resetFormAfter:!1,submittedTransaction:!1,submittedLinks:!1,submittedAttachments:!1,inError:!1,submittedAttCount:{},groupTitleErrors:[],returnedGroupId:0,returnedGroupTitle:"",accountToTransaction:{}}},computed:Dt({},It(["transactionType","transactions","date","time","groupTitle"])),watch:{submittedTransaction:function(){this.finalizeSubmit()},submittedLinks:function(){this.finalizeSubmit()},submittedAttachments:function(){this.finalizeSubmit()}},methods:Dt(Dt({},Nt(["addTransaction","deleteTransaction","setAllowedOpposingTypes","setTransactionError","setTransactionType","resetErrors","updateField","resetTransactions","setDate","setTime"])),{},{removeTransaction:function(t){this.$store.commit("transactions/create/deleteTransaction",{index:t})},storeCustomFields:function(){var t=this;axios.get("./api/v1/preferences/transaction_journal_optional_fields").then((function(e){t.customFields=e.data.data.attributes.data}))},finalizeSubmit:function(){var t=this;if(console.log("finalizeSubmit ("+this.submittedTransaction+", "+this.submittedAttachments+", "+this.submittedLinks+")"),this.submittedTransaction&&this.submittedAttachments&&this.submittedLinks){var e;if(console.log("all true"),console.log("createAnother = "+this.createAnother),console.log("inError = "+this.inError),!1===this.createAnother&&!1===this.inError)return console.log("redirect"),void(window.location.href=(null!==(e=window.previousURL)&&void 0!==e?e:"/")+"?transaction_group_id="+this.returnedGroupId+"&message=created");for(var n in!1===this.inError&&(this.errorMessage="",this.successMessage=this.$t("firefly.transaction_stored_link",{ID:this.returnedGroupId,title:this.returnedGroupTitle})),this.enableSubmit=!0,this.submittedTransaction=!1,this.submittedLinks=!1,this.submittedAttachments=!1,this.inError=!1,this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&this.transactions.hasOwnProperty(n)&&this.updateField({index:n,field:"transaction_journal_id",value:0});this.submittedAttCount=[],this.resetFormAfter&&(this.resetTransactions(),setTimeout((function(){return t.addTransaction()}),50))}},submitTransaction:function(){var t=this;console.log("submitTransaction()"),this.enableSubmit=!1;var e=this.convertData();console.log("Will submit:"),console.log(e),axios.post("./api/v1/transactions",e).then((function(n){console.log("Response is OK!"),t.submittedTransaction=!0,t.submitTransactionLinks(e,n),t.submitAttachments(e,n),t.returnedGroupId=parseInt(n.data.data.id),t.returnedGroupTitle=null===n.data.data.attributes.group_title?n.data.data.attributes.transactions[0].description:n.data.data.attributes.group_title})).catch((function(e){t.enableSubmit=!0,t.submittedTransaction=!0,t.submittedAttachments=!0,t.submittedLinks=!0,t.inError=!0,t.parseErrors(e.response.data)}))},submitAttachments:function(t,e){console.log("submitAttachments()");var n=e.data.data.attributes.transactions;for(var s in t.transactions)t.transactions.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&n.hasOwnProperty(s)&&this.updateField({index:s,field:"transaction_journal_id",value:n[0].transaction_journal_id})},uploadedAttachment:function(t){console.log("Triggered uploadedAttachment("+t+")");var e="str"+t;this.submittedAttCount[e]=1,Object.keys(this.submittedAttCount).length===this.transactions.length&&(this.submittedAttachments=!0)},storeLocation:function(t,e){var n=e.hasMarker?e.zoomLevel:null,s=e.hasMarker?e.lat:null,i=e.hasMarker?e.lng:null;this.updateField({index:t,field:"zoom_level",value:n}),this.updateField({index:t,field:"latitude",value:s}),this.updateField({index:t,field:"longitude",value:i})},storeAccountValue:function(t,e,n,s){var i=e+"_account_"+n;this.updateField({index:t,field:i,value:s}),"type"===n&&this.calculateTransactionType(t)},storeDescription:function(t,e){this.updateField({field:"description",index:t,value:e})},storeForeignCurrencyId:function(t,e){console.log("storeForeignCurrencyId("+t+","+e+")"),this.updateField({field:"foreign_currency_id",index:t,value:e})},storeAmount:function(t,e){this.updateField({field:"amount",index:t,value:e})},storeForeignAmount:function(t,e){this.updateField({field:"foreign_amount",index:t,value:e})},storeDate:function(t){this.setDate(t.date)},storeTime:function(t){this.setTime(t.time)},storeCustomDate:function(t,e){this.updateField({field:e.field,index:t,value:e.date})},storeBudget:function(t,e){this.updateField({field:"budget_id",index:t,value:e})},storeCategory:function(t,e){this.updateField({field:"category",index:t,value:e})},storeBill:function(t,e){this.updateField({field:"bill_id",index:t,value:e})},storeTags:function(t,e){this.updateField({field:"tags",index:t,value:e})},storePiggyBank:function(t,e){this.updateField({field:"piggy_bank_id",index:t,value:e})},storeInternalReference:function(t,e){this.updateField({field:"internal_reference",index:t,value:e})},storeExternalUrl:function(t,e){this.updateField({field:"external_url",index:t,value:e})},storeNotes:function(t,e){this.updateField({field:"notes",index:t,value:e})},storeLinks:function(t,e){this.updateField({field:"links",index:t,value:e})},calculateTransactionType:function(t){if(0===t){var e=this.transactions[0].source_account_type,n=this.transactions[0].destination_account_type;if(null===e||null===n)return void this.setTransactionType("any");if(""===e||""===n)return void this.setTransactionType("any");var s=this.accountToTransaction[e];if(void 0!==s){var i=s[n];if(void 0!==s[n])return void this.setTransactionType(i)}"Asset account"!==e&&this.updateField({index:0,field:"destination_account_id",value:null}),"Asset account"!==n&&this.updateField({index:0,field:"source_account_id",value:null}),this.setTransactionType("any")}},submitTransactionLinks:function(t,e){var n=[],s=e.data.data.attributes.transactions,i=0;for(var a in t.transactions)if(t.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294){var r=t.transactions[a];if(s.hasOwnProperty(a)){var o=s[a];for(var c in r.links)if(r.links.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294){var l=r.links[c];i++,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!==i?Promise.all(n).then((function(){this.submittedLinks=!0})):this.submittedLinks=!0},parseErrors:function(t){for(var e in this.transactions)this.resetErrors({index:e});var n,s,i;for(var a in this.successMessage="",this.errorMessage=this.$t("firefly.errors_submission"),void 0===t.errors&&(this.successMessage="",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)switch(s=parseInt(a.split(".")[1]),i=a.split(".")[2]){case"amount":case"description":case"date":case"tags":n={index:s,field:i,errors:t.errors[a]},this.setTransactionError(n);break;case"budget_id":n={index:s,field:"budget",errors:t.errors[a]},this.setTransactionError(n);break;case"bill_id":n={index:s,field:"bill",errors:t.errors[a]},this.setTransactionError(n);break;case"piggy_bank_id":n={index:s,field:"piggy_bank",errors:t.errors[a]},this.setTransactionError(n);break;case"category_name":n={index:s,field:"category",errors:t.errors[a]},this.setTransactionError(n);break;case"source_name":case"source_id":n={index:s,field:"source",errors:t.errors[a]},this.setTransactionError(n);break;case"destination_name":case"destination_id":n={index:s,field:"destination",errors:t.errors[a]},this.setTransactionError(n);break;case"foreign_amount":case"foreign_currency":n={index:s,field:"foreign_amount",errors:t.errors[a]},this.setTransactionError(n)}this.transactions[s]}},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.transactions.length>1&&(t=this.synchronizeAccounts(t)),t},synchronizeAccounts:function(t){for(var e in t.transactions)t.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&("Transfer"===this.transactionType&&(t.transactions[e].source_name=null,t.transactions[e].destination_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id,t.transactions[e].destination_id=t.transactions[0].destination_id)),"Deposit"===this.transactionType&&(t.transactions[e].destination_name=null,e>0&&(t.transactions[e].destination_id=t.transactions[0].destination_id)),"Withdrawal"===this.transactionType&&(t.transactions[e].source_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id)));return t},switchAccounts:function(t){console.log("user wants to switch Accounts");var e=this.transactions[t].source_account_id,n=this.transactions[t].source_account_name,s=this.transactions[t].source_account_type,i=this.transactions[t].destination_account_id,a=this.transactions[t].destination_account_name,r=this.transactions[t].destination_account_type;this.updateField({index:0,field:"source_account_id",value:i}),this.updateField({index:0,field:"source_account_name",value:a}),this.updateField({index:0,field:"source_account_type",value:r}),this.updateField({index:0,field:"destination_account_id",value:e}),this.updateField({index:0,field:"destination_account_name",value:n}),this.updateField({index:0,field:"destination_account_type",value:s}),this.calculateTransactionType(0)},convertSplit:function(t,e){var n,s,i,a,r="invalid";if(this.time instanceof Date&&!isNaN(this.time)&&this.date instanceof Date&&!isNaN(this.date)){var o=new Date(this.date);o.setHours(this.time.getHours()),o.setMinutes(this.time.getMinutes()),o.setSeconds(this.time.getSeconds()),r=this.toW3CString(this.date)}var c,l,u,d={description:e.description,date:r,type:this.transactionType,source_id:null!==(n=e.source_account_id)&&void 0!==n?n:null,source_name:null!==(s=e.source_account_name)&&void 0!==s?s:null,destination_id:null!==(i=e.destination_account_id)&&void 0!==i?i:null,destination_name:null!==(a=e.destination_account_name)&&void 0!==a?a: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,zoom_level:e.zoom_level,longitude:e.longitude,latitude:e.latitude,order:0,reconciled:!1};0!==e.piggy_bank_id&&(d.piggy_bank_id=e.piggy_bank_id),0!==e.bill_id&&(d.bill_id=e.bill_id),0!==e.foreign_currency_id&&""!==e.foreign_amount&&(d.foreign_currency_id=e.foreign_currency_id),""!==e.foreign_amount&&(d.foreign_amount=e.foreign_amount),c=this.transactionType?this.transactionType.toLowerCase():"any",l=this.transactions[0].source_account_type,u=this.transactions[0].destination_account_type,d.currency_id=e.source_account_currency_id,"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(l)&&(c="withdrawal"),"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(u)&&(c="deposit",d.currency_id=e.destination_account_currency_id),d.type=c;var p=[];for(var f in e.links)if(e.links.hasOwnProperty(f)&&/^0$|^[1-9]\d*$/.test(f)&&f<=4294967294){var m=e.links[f],h=m.link_type_id.split("-"),_="outward"===h[1]?0:parseInt(m.transaction_journal_id),v="inward"===h[1]?0:parseInt(m.transaction_journal_id),g={link_type_id:parseInt(h[0]),inward_id:_,outward_id:v};p.push(g)}return d.links=p,d},toW3CString:function(t){var e=t.getFullYear(),n=t.getMonth();++n<10&&(n="0"+n);var s=t.getDate();s<10&&(s="0"+s);var i=t.getHours();i<10&&(i="0"+i);var a=t.getMinutes();a<10&&(a="0"+a);var r=t.getSeconds();r<10&&(r="0"+r);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+"-"+s+"T"+i+":"+a+":"+r+u+c+":"+l},storeAllowedOpposingTypes:function(){this.setAllowedOpposingTypes(window.allowedOpposingTypes)},storeAccountToTransaction:function(){var t=this;axios.get("./api/v1/configuration/static/firefly.account_to_transaction").then((function(e){t.accountToTransaction=e.data["firefly.account_to_transaction"]}))}})},Ut=Object(r.a)(Mt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("alert",{attrs:{message:t.errorMessage,type:"danger"}}),t._v(" "),n("alert",{attrs:{message:t.successMessage,type:"success"}}),t._v(" "),n("SplitPills",{attrs:{transactions:t.transactions}}),t._v(" "),n("div",{staticClass:"tab-content"},t._l(this.transactions,(function(e,s){return n("SplitForm",{key:s,attrs:{transaction:e,index:s,count:t.transactions.length,"custom-fields":t.customFields,"submitted-transaction":t.submittedTransaction},on:{"uploaded-attachments":function(e){return t.uploadedAttachment(e)},"set-description":function(e){return t.storeDescription(s,e)},"set-marker-location":function(e){return t.storeLocation(s,e)},"set-source-account-id":function(e){return t.storeAccountValue(s,"source","id",e)},"set-source-account-name":function(e){return t.storeAccountValue(s,"source","name",e)},"set-source-account-type":function(e){return t.storeAccountValue(s,"source","type",e)},"set-source-account-currency-id":function(e){return t.storeAccountValue(s,"source","currency_id",e)},"set-source-account-currency-code":function(e){return t.storeAccountValue(s,"source","currency_code",e)},"set-source-account-currency-symbol":function(e){return t.storeAccountValue(s,"source","currency_symbol",e)},"set-destination-account-id":function(e){return t.storeAccountValue(s,"destination","id",e)},"set-destination-account-name":function(e){return t.storeAccountValue(s,"destination","name",e)},"set-destination-account-type":function(e){return t.storeAccountValue(s,"destination","type",e)},"set-destination-account-currency-id":function(e){return t.storeAccountValue(s,"destination","currency_id",e)},"set-destination-account-currency-code":function(e){return t.storeAccountValue(s,"destination","currency_code",e)},"set-destination-account-currency-symbol":function(e){return t.storeAccountValue(s,"destination","currency_symbol",e)},"switch-accounts":function(e){return t.switchAccounts(e)},"set-amount":function(e){return t.storeAmount(s,e)},"set-foreign-currency-id":function(e){return t.storeForeignCurrencyId(s,e)},"set-foreign-amount":function(e){return t.storeForeignAmount(s,e)},"set-date":function(e){return t.storeDate(e)},"set-time":function(e){return t.storeTime(e)},"set-custom-date":function(e){return t.storeCustomDate(s,e)},"set-budget":function(e){return t.storeBudget(s,e)},"set-category":function(e){return t.storeCategory(s,e)},"set-bill":function(e){return t.storeBill(s,e)},"set-tags":function(e){return t.storeTags(s,e)},"set-piggy-bank":function(e){return t.storePiggyBank(s,e)},"set-internal-reference":function(e){return t.storeInternalReference(s,e)},"set-external-url":function(e){return t.storeExternalUrl(s,e)},"set-notes":function(e){return t.storeNotes(s,e)},"set-links":function(e){return t.storeLinks(s,e)}}})})),1),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[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-outline-primary btn-block",on:{click:t.addTransaction}},[n("i",{staticClass:"far fa-clone"}),t._v(" "+t._s(t.$t("firefly.add_another_split"))+"\n ")])]),t._v(" "),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-success btn-block",attrs:{disabled:!t.enableSubmit},on:{click:t.submitTransaction}},[t.enableSubmit?n("span",[n("i",{staticClass:"far fa-save"}),t._v(" "+t._s(t.$t("firefly.store_transaction")))]):t._e(),t._v(" "),t.enableSubmit?t._e():n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t._v("\n \n ")]),t._v(" "),n("div",{staticClass:"col"},[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createAnother,expression:"createAnother"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"createAnother"},domProps:{checked:Array.isArray(t.createAnother)?t._i(t.createAnother,null)>-1:t.createAnother},on:{change:function(e){var n=t.createAnother,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t._i(n,null);s.checked?a<0&&(t.createAnother=n.concat([null])):a>-1&&(t.createAnother=n.slice(0,a).concat(n.slice(a+1)))}else t.createAnother=i}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"createAnother"}},[n("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.create_another")))])])]),t._v(" "),n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.resetFormAfter,expression:"resetFormAfter"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"resetFormAfter",disabled:!t.createAnother},domProps:{checked:Array.isArray(t.resetFormAfter)?t._i(t.resetFormAfter,null)>-1:t.resetFormAfter},on:{change:function(e){var n=t.resetFormAfter,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t._i(n,null);s.checked?a<0&&(t.resetFormAfter=n.concat([null])):a>-1&&(t.resetFormAfter=n.slice(0,a).concat(n.slice(a+1)))}else t.resetFormAfter=i}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"resetFormAfter"}},[n("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.reset_after")))])])])])])])])])])],1)}),[],!1,null,"190d9ddc",null).exports,Rt=n(3),Bt=n.n(Rt);n(15),Bt.a.config.productionTip=!1;var zt=n(18),Vt={};new Bt.a({i18n:zt,store:s.a,render:function(t){return t(Ut,{props:Vt})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_create")}},[[299,0,1]]]);+(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{230:function(t,e,n){var s=n(410);"string"==typeof s&&(s=[[t.i,s,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(22)(s,i);s.locals&&(t.exports=s.locals)},299:function(t,e,n){t.exports=n(421)},409:function(t,e,n){"use strict";n(230)},410:function(t,e,n){(t.exports=n(21)(!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}",""])},421:function(t,e,n){"use strict";n.r(e);var s=n(16),i=n(2),a={name:"Alert",props:["message","type"]},r=n(1),o=Object(r.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.message.length>0?n("div",{class:"alert alert-"+t.type+" alert-dismissible"},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-hidden":"true"}},[t._v("×")]),t._v(" "),n("h5",["danger"===t.type?n("i",{staticClass:"icon fas fa-ban"}):t._e(),t._v(" "),"success"===t.type?n("i",{staticClass:"icon fas fa-thumbs-up"}):t._e(),t._v(" "),"danger"===t.type?n("span",[t._v(t._s(t.$t("firefly.flash_error")))]):t._e(),t._v(" "),"success"===t.type?n("span",[t._v(t._s(t.$t("firefly.flash_success")))]):t._e()]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.message)}})]):t._e()}),[],!1,null,null,null).exports,c={name:"SplitPills",props:["transactions"]},l=Object(r.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 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,s){return n("li",{staticClass:"nav-item"},[n("a",{class:"nav-link"+(0===s?" active":""),attrs:{href:"#split_"+s,"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(s+1))]):t._e()])])})),0)])]):t._e()}),[],!1,null,null,null).exports,u=n(12),d=n(11);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(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 m=Object(i.b)("transactions/create"),_=(m.mapState,m.mapGetters),v=(m.mapActions,m.mapMutations),g={props:["value","errors"],name:"TransactionGroupTitle",components:{VueTypeaheadBootstrap:u.a},data:function(){return{descriptions:[],initialSet:[],title:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},watch:{title:function(t){this.setGroupTitle({groupTitle:t})}},methods:f(f(f({},v(["setGroupTitle"])),_(["groupTitle"])),{},{clearDescription:function(){this.setGroupTitle({groupTitle:""}),this.title=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.title)).then((function(e){t.descriptions=e.data}))}),300)})},y=Object(r.a)(g,(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.title,callback:function(e){t.title=e},expression:"title"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,"20a0ca60",null).exports,b={props:["index","value","errors"],components:{VueTypeaheadBootstrap:u.a},name:"TransactionDescription",data:function(){return{descriptions:[],initialSet:[],description:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.descriptions=e.data,t.initialSet=e.data}))},methods:{clearDescription:function(){this.description=""},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/transactions?query="+t},lookupDescription:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.descriptions=e.data}))}),300)},watch:{description:function(t){this.$emit("set-field",{field:"description",index:this.index,value:t})}}},x=Object(r.a)(b,(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.description,callback:function(e){t.description=e},expression:"description"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,C={props:["index","errors","date","time"],name:"TransactionDate",data:function(){return{localDate:this.date,localTime:this.time}},methods:{},computed:{dateStr:{get:function(){return this.localDate instanceof Date&&!isNaN(this.localDate)?this.localDate.toISOString().split("T")[0]:""},set:function(t){if(""===t)return this.localDate=new Date,void this.$emit("set-date",{date:this.localDate});this.localDate=new Date(t),this.$emit("set-date",{date:this.localDate})}},timeStr:{get:function(){return this.localTime instanceof Date&&!isNaN(this.localTime)?("0"+this.localTime.getHours()).slice(-2)+":"+("0"+this.localTime.getMinutes()).slice(-2)+":"+("0"+this.localTime.getSeconds()).slice(-2):""},set:function(t){if(""===t)return this.localTime.setHours(0),this.localTime.setMinutes(0),this.localTime.setSeconds(0),void this.$emit("set-time",{time:this.localTime});var e=new Date(this.localTime.getTime()),n=t.split(":");e.setHours(parseInt(n[0])),e.setMinutes(parseInt(n[1])),e.setSeconds(parseInt(n[2])),this.localTime=e,this.$emit("set-time",{time:this.localTime})}}}},T=Object(r.a)(C,(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.dateStr,expression:"dateStr"}],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.dateStr},domProps:{value:t.dateStr},on:{input:function(e){e.target.composing||(t.dateStr=e.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.timeStr,expression:"timeStr"}],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.timeStr},domProps:{value:t.timeStr},on:{input:function(e){e.target.composing||(t.timeStr=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,k={props:["index","value","errors"],name:"TransactionBudget",data:function(){return{budgetList:[],budget:this.value}},created:function(){this.collectData()},methods:{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:{budget:function(t){this.$emit("set-field",{field:"budget_id",index:this.index,value:t})}}},w=Object(r.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.budget,expression:"budget"}],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.budget=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 $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A=Object(i.b)("transactions/create"),j=(A.mapState,A.mapGetters),S=(A.mapActions,A.mapMutations),P={name:"TransactionAccount",components:{VueTypeaheadBootstrap:u.a},props:["index","direction","value","errors"],data:function(){return{query:"",accounts:[],accountTypes:[],initialSet:[],selectedAccount:{},account:this.value,accountName:"",selectedAccountTrigger:!1}},created:function(){this.createInitialSet()},methods:F(F({},S(["updateField","setDestinationAllowedTypes","setSourceAllowedTypes"])),{},{getACURL:function(t,e){return"./api/v1/autocomplete/accounts?types="+t.join(",")+"&query="+e},clearAccount:function(){this.accounts=this.initialSet,this.account={name:"",type:"no_type",id:null,currency_id:null,currency_code:null,currency_symbol:null},this.accountName=""},lookupAccount:Object(d.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.accountName)).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){console.log("Emit on selected account"),this.selectedAccountTrigger=!0,this.account=t,this.$emit("set-account",{index:this.index,direction:this.direction,id:t.id,type:t.type,name:t.name,currency_id:t.currency_id,currency_code:t.currency_code,currency_symbol:t.currency_symbol}),this.accountName=this.account.name_with_balance},accountName:function(t){!1===this.selectedAccountTrigger&&(console.log("Save to change name!"),this.$emit("set-account",{index:this.index,direction:this.direction,id:null,type:null,name:t,currency_id:null,currency_code:null,currency_symbol:null}),this.accountTrigger=!1,this.account={name:t,type:null,id:null,currency_id:null,currency_code:null,currency_symbol:null}),this.selectedAccountTrigger=!1},account:function(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)},value:function(t){console.log(this.direction+" account overruled by external forces."),this.account=t,this.selectedAccountTrigger=!0,this.accountName=t.name}},computed:F(F({},j(["transactionType","sourceAllowedTypes","destinationAllowedTypes","allowedOpposingTypes"])),{},{accountKey:{get:function(){return"source"===this.direction?"source_account":"destination_account"}},emitAccountId:{get:function(){return"set-"+this.direction+"-account-id"}},emitAccount:{get:function(){return"set-"+this.direction+"-account"}},emitAccountName:{get:function(){return"set-"+this.direction+"-account-name"}},emitAccountType:{get:function(){return"set-"+this.direction+"-account-type"}},emitAccountCurrencyId:{get:function(){return"set-"+this.direction+"-account-currency-id"}},emitAccountCurrencyCode:{get:function(){return"set-"+this.direction+"-account-currency-code"}},emitAccountCurrencySymbol:{get:function(){return"set-"+this.direction+"-account-currency-symbol"}},visible:{get:function(){return 0===this.index||("source"===this.direction?"any"===this.transactionType||"Deposit"===this.transactionType:"destination"===this.direction&&("any"===this.transactionType||"Withdrawal"===this.transactionType))}}})},D=Object(r.a)(P,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[t.visible?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[0===this.index?n("span",[t._v(t._s(t.$t("firefly."+this.direction+"_account")))]):t._e(),t._v(" "),this.index>0?n("span",{staticClass:"text-warning"},[t._v(t._s(t.$t("firefly.first_split_overrules_"+this.direction)))]):t._e()]):t._e(),t._v(" "),t.visible?t._e():n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n \n ")]),t._v(" "),t.visible?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."+t.direction+"_account")},on:{input:t.lookupAccount,hit:function(e){t.selectedAccount=e}},scopedSlots:t._u([{key:"suggestion",fn:function(e){var s=e.data,i=e.htmlText;return[n("div",{staticClass:"d-flex",attrs:{title:s.type}},[n("span",{domProps:{innerHTML:t._s(i)}}),n("br")])]}}],null,!1,1423807661),model:{value:t.accountName,callback:function(e){t.accountName=e},expression:"accountName"}},[t._v(" "),n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",type:"button"},on:{click:t.clearAccount}},[n("i",{staticClass:"far fa-trash-alt"})])])])],2):t._e(),t._v(" "),t.visible?t._e():n("div",{staticClass:"form-control-static"},[n("span",{staticClass:"small text-muted"},[n("em",[t._v(t._s(t.$t("firefly.first_split_decides")))])])]),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 E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N=Object(i.b)("transactions/create"),M=(N.mapState,N.mapGetters),U=(N.mapActions,{name:"SwitchAccount",props:["index"],methods:L(L({},(0,N.mapMutations)(["updateField"])),{},{switchAccounts:function(){this.$emit("switch-accounts",this.index)}}),computed:L({},M(["transactionType"]))}),R=Object(r.a)(U,(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,"2d362d12",null).exports,z={name:"TransactionAmount",props:["index","errors","amount","transactionType","sourceCurrencySymbol","destinationCurrencySymbol"],data:function(){return{transactionAmount:this.amount,currencySymbol:null,srcCurrencySymbol:this.sourceCurrencySymbol,dstCurrencySymbol:this.destinationCurrencySymbol}},watch:{transactionAmount:function(t){this.$emit("set-field",{field:"amount",index:this.index,value:t})},amount:function(t){this.transactionAmount=t},sourceCurrencySymbol:function(t){this.srcCurrencySymbol=t},destinationCurrencySymbol:function(t){this.dstCurrencySymbol=t},transactionType:function(t){switch(t){case"Transfer":case"Withdrawal":this.currencySymbol=this.srcCurrencySymbol;break;case"Deposit":this.currencySymbol=this.dstCurrencySymbol}}}},B=Object(r.a)(z,(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"},[t.currencySymbol?n("div",{staticClass:"input-group-prepend"},[n("div",{staticClass:"input-group-text"},[t._v(t._s(t.currencySymbol))])]):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.transactionAmount,expression:"transactionAmount"}],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.transactionAmount},on:{input:function(e){e.target.composing||(t.transactionAmount=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,"22d5efb1",null).exports,G={name:"TransactionForeignAmount",props:["index","errors","transactionType","sourceCurrencyId","destinationCurrencyId"],data:function(){return{amount:""}},watch:{amount:function(t){this.$emit("set-field",{field:"foreign_amount",index:this.index,value:t})}},computed:{isVisible:{get:function(){return!("Transfer"===this.transactionType&&this.sourceCurrencyId===this.destinationCurrencyId)}}}},q=Object(r.a)(G,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?n("div",{staticClass:"form-group"},[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",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()]):t._e()}),[],!1,null,"dbdd83f8",null).exports,V={name:"TransactionForeignCurrency",props:["index","transactionType","sourceCurrencyId","destinationCurrencyId","selectedCurrencyId"],data:function(){return{selectedCurrency:0,allCurrencies:[],selectableCurrencies:[],dstCurrencyId:this.destinationCurrencyId,srcCurrencyId:this.sourceCurrencyId,lockedCurrency:0}},watch:{sourceCurrencyId:function(t){this.srcCurrencyId=t},destinationCurrencyId:function(t){this.dstCurrencyId=t},selectedCurrency:function(t){this.$emit("set-field",{field:"foreign_currency_id",index:this.index,value:t})},transactionType:function(t){this.lockedCurrency=0,"Transfer"===t&&(this.lockedCurrency=this.dstCurrencyId,this.selectedCurrency=this.dstCurrencyId),this.filterCurrencies()}},created:function(){this.getAllCurrencies()},methods:{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.selectableCurrencies.push(e)}}else for(var n in this.allCurrencies)if(this.allCurrencies.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=this.allCurrencies[n];s.id===this.lockedCurrency&&(this.selectableCurrencies=[s],this.selectedCurrency=s.id)}}},computed:{isVisible:function(){return!("Transfer"===this.transactionType&&this.srcCurrencyId===this.dstCurrencyId)}}},H=Object(r.a)(V,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isVisible?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.selectedCurrency,expression:"selectedCurrency"}],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.selectedCurrency=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,"6d9bb9d2",null).exports,W={name:"TransactionCustomDates",props:["index","errors","customFields","interestDate","bookDate","processDate","dueDate","paymentDate","invoiceDate"],data:function(){return{dateFields:["interest_date","book_date","process_date","due_date","payment_date","invoice_date"],availableFields:this.customFields,dates:{interest_date:this.interestDate,book_date:this.bookDate,process_date:this.processDate,due_date:this.dueDate,payment_date:this.paymentDate,invoice_date:this.invoiceDate}}},watch:{customFields:function(t){this.availableFields=t}},methods:{isDateField:function(t){return this.dateFields.includes(t)},getFieldValue:function(t){var e;return null!==(e=this.dates[t])&&void 0!==e?e:""},setFieldValue:function(t,e){this.$emit("set-field",{field:e,index:this.index,value:t.target.value})}}},J=Object(r.a)(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.availableFields,(function(e,s){return n("div",{staticClass:"form-group"},[e&&t.isDateField(s)?n("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[t._v("\n "+t._s(t.$t("form."+s))+"\n ")]):t._e(),t._v(" "),e&&t.isDateField(s)?n("div",{staticClass:"input-group"},[n("input",{ref:s,refInFor:!0,staticClass:"form-control",attrs:{type:"date",title:t.$t("form."+s),autocomplete:"off",name:s+"[]",placeholder:t.$t("form."+s)},domProps:{value:t.getFieldValue(s)},on:{change:function(e){return t.setFieldValue(e,s)},submit:function(t){t.preventDefault()}}})]):t._e()])})),0)}),[],!1,null,null,null).exports,K={props:["value","index","errors"],components:{VueTypeaheadBootstrap:u.a},name:"TransactionCategory",data:function(){return{categories:[],initialSet:[],category:this.value}},created:function(){var t=this;axios.get(this.getACURL("")).then((function(e){t.categories=e.data,t.initialSet=e.data}))},methods:{clearCategory:function(){this.category=null},getACURL:function(t){return document.getElementsByTagName("base")[0].href+"api/v1/autocomplete/categories?query="+t},lookupCategory:Object(d.debounce)((function(){var t=this;axios.get(this.getACURL(this.value)).then((function(e){t.categories=e.data}))}),300)},watch:{category:function(t){this.$emit("set-field",{field:"category",index:this.index,value:t})}},computed:{selectedCategory:{get:function(){return this.categories[this.index].name},set:function(t){this.category=t.name}}}},Z=Object(r.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.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.category,callback:function(e){t.category=e},expression:"category"}},[n("template",{slot:"append"},[n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary",attrs:{tabindex:"-1",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,Y={props:["value","index","errors"],name:"TransactionBill",data:function(){return{billList:[],bill:this.value}},created:function(){this.collectData()},methods:{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:{bill:function(t){this.$emit("set-field",{field:"bill_id",index:this.index,value:t})}}},Q=Object(r.a)(Y,(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.bill,expression:"bill"}],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.bill=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,X=n(239),tt=n.n(X),et=n(50),nt=n.n(et),st={name:"TransactionTags",components:{VueTagsInput:tt.a},props:["value","index","errors"],data:function(){return{autocompleteItems:[],debounce:null,tags:[],currentTag:"",updateTags:!0,tagList:this.value}},watch:{currentTag:"initItems",tagList:function(t){this.$emit("set-field",{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.tagList=e}this.updateTags=!0}},methods:{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(){nt.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)}}}},it=(n(409),Object(r.a)(st,(function(){var t=this,e=this,n=e.$createElement,s=e._self._c||n;return s("div",{staticClass:"form-group"},[s("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n "+e._s(e.$t("firefly.tags"))+"\n ")]),e._v(" "),s("div",{staticClass:"input-group"},[s("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?s("span",e._l(e.errors,(function(t){return s("span",{staticClass:"text-danger small"},[e._v(e._s(t)),s("br")])})),0):e._e()])}),[],!1,null,null,null).exports),at={props:["index","value","errors"],name:"TransactionPiggyBank",data:function(){return{piggyList:[],piggy_bank_id:this.value}},created:function(){this.collectData()},methods:{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:{piggy_bank_id:function(t){this.$emit("set-field",{field:"piggy_bank_id",index:this.index,value:t})}}},rt=Object(r.a)(at,(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.piggy_bank_id,expression:"piggy_bank_id"}],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.piggy_bank_id=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,ot={props:["index","value","errors","customFields"],name:"TransactionInternalReference",data:function(){return{reference:this.value,availableFields:this.customFields}},computed:{showField:function(){return"internal_reference"in this.availableFields&&this.availableFields.internal_reference}},methods:{},watch:{customFields:function(t){this.availableFields=t},reference:function(t){this.$emit("set-field",{field:"internal_reference",index:this.index,value:t})}}},ct=Object(r.a)(ot,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.reference,expression:"reference"}],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.reference},on:{input:function(e){e.target.composing||(t.reference=e.target.value)}}}),t._v(" "),t._m(0)])]):t._e()}),[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:{tabindex:"-1",type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,null,null).exports,lt={props:["index","value","errors","customFields"],name:"TransactionExternalUrl",data:function(){return{url:this.value,availableFields:this.customFields}},computed:{showField:function(){return"external_uri"in this.availableFields&&this.availableFields.external_uri}},methods:{},watch:{customFields:function(t){this.availableFields=t},url:function(t){this.$emit("set-field",{field:"external_url",index:index,value:t})}}},ut=Object(r.a)(lt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.url,expression:"url"}],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.url},on:{input:function(e){e.target.composing||(t.url=e.target.value)}}}),t._v(" "),t._m(0)])]):t._e()}),[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:{tabindex:"-1",type:"button"}},[e("i",{staticClass:"far fa-trash-alt"})])])}],!1,null,"18d1da80",null).exports,dt={props:["index","value","errors","customFields"],name:"TransactionNotes",data:function(){return{notes:this.value,availableFields:this.customFields}},computed:{showField:function(){return"notes"in this.availableFields&&this.availableFields.notes}},watch:{customFields:function(t){this.availableFields=t},notes:function(t){this.$emit("set-field",{field:"notes",index:this.index,value:t})}}},pt=Object(r.a)(dt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.notes,expression:"notes"}],class:t.errors.length>0?"form-control is-invalid":"form-control",attrs:{placeholder:t.$t("firefly.notes")},domProps:{value:t.notes},on:{input:function(e){e.target.composing||(t.notes=e.target.value)}}})])]):t._e()}),[],!1,null,"1ea17f92",null).exports,ft=n(191),ht={props:["index","value","errors","customFields"],name:"TransactionLinks",data:function(){return{searchResults:[],include:[],locale:"en-US",linkTypes:[],query:"",searching:!1,links:[],availableFields:this.customFields}},created:function(){var t;this.locale=null!==(t=localStorage.locale)&&void 0!==t?t:"en-US",this.links=ft(this.value),this.getLinkTypes()},computed:{showField:function(){return"links"in this.availableFields&&this.availableFields.links}},watch:{links:function(t){this.$emit("set-field",{index:this.index,field:"links",value:ft(t)})},customFields:function(t){this.availableFields=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 s=this.linkTypes[n];if(e[0]===s.id&&e[1]===s.direction)return s.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.links)if(this.links.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=this.links[n];parseInt(s.transaction_journal_id)===t&&(this.links[n].link_type_id=e)}},addToSelected:function(t){void 0===this.links.find((function(e){return e.transaction_journal_id===t.transaction_journal_id}))&&this.links.push(t)},removeFromSelected:function(t){for(var e in this.links){if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)this.links[e].transaction_journal_id===t.transaction_journal_id&&this.links.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],s={id:n.id,type:n.attributes.inward,direction:"inward"},i={id:n.id,type:n.attributes.outward,direction:"outward"};s.type===i.type&&(s.type=s.type+" (←)",i.type=i.type+" (→)"),this.linkTypes.push(s),this.linkTypes.push(i)}},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 s=t.data[e].attributes.transactions[n];s.transaction_group_id=parseInt(t.data[e].id),s.selected=this.isJournalSelected(s.transaction_journal_id),s.link_type_id=this.getJournalLinkType(s.transaction_journal_id),s.link_type_text="",this.searchResults.push(s)}this.searching=!1},getJournalLinkType:function(t){for(var e in this.links)if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294){var n=this.links[e];if(n.transaction_journal_id===t)return n.link_type_id}return"1-inward"},isJournalSelected:function(t){for(var e in this.links){if(this.links.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294)if(this.links[e].transaction_journal_id===t)return!0}return!1}}},mt=Object(r.a)(ht,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.links.length?n("p",[t._m(0)]):t._e(),t._v(" "),t.links.length>0?n("ul",{staticClass:"list-group"},t._l(t.links,(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.links.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 s=e.selected,i=n.target,a=!!i.checked;if(Array.isArray(s)){var r=t._i(s,null);i.checked?r<0&&t.$set(e,"selected",s.concat([null])):r>-1&&t.$set(e,"selected",s.slice(0,r).concat(s.slice(r+1)))}else t.$set(e,"selected",a)},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 s=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?s:s[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)])])])]):t._e()}),[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:{tabindex:"-1",href:"#"}},[e("i",{staticClass:"far fa-edit"})]),this._v(" "),e("a",{staticClass:"btn btn-xs btn-danger",attrs:{tabindex:"-1",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,_t={name:"TransactionAttachments",props:["transaction_journal_id","customFields"],data:function(){return{availableFields:this.customFields}},watch:{customFields:function(t){this.availableFields=t},transaction_journal_id:function(t){if(!this.showField)return console.log("Field is hidden. Emit event!"),void this.$emit("uploaded-attachments",t);0!==t&&this.doUpload()}},computed:{showField:function(){return"attachments"in this.availableFields&&this.availableFields.attachments}},methods:{doUpload:function(){var t=this;for(var e in console.log("Now in doUpload() for "+this.$refs.att.files.length+" files."),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],s=new FileReader,i=t;s.onloadend=function(t){var e=this;if(t.target.readyState===FileReader.DONE){var s={filename:n.name,attachable_type:"TransactionJournal",attachable_id:i.transaction_journal_id};axios.post("./api/v1/attachments",s).then((function(n){var s="./api/v1/attachments/"+n.data.data.id+"/upload";axios.post(s,new Blob([t.target.result])).then((function(t){console.log("Uploaded a file. Emit event!"),i.$emit("uploaded-attachments",e.transaction_journal_id)}))}))}},s.readAsArrayBuffer(n)}();0===this.$refs.att.files.length&&(console.log("No files to upload. Emit event!"),this.$emit("uploaded-attachments",this.transaction_journal_id))}}},vt=Object(r.a)(_t,(function(){var t=this.$createElement,e=this._self._c||t;return this.showField?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[]"}})])]):this._e()}),[],!1,null,"4957e769",null).exports,gt=n(428),yt=n(429),bt=n(430),xt=(n(411),n(4)),Ct=n.n(xt);delete Ct.a.Icon.Default.prototype._getIconUrl,Ct.a.Icon.Default.mergeOptions({iconRetinaUrl:n(415),iconUrl:n(231),shadowUrl:n(416)});var Tt={name:"TransactionLocation",props:["index","value","errors","customFields"],components:{LMap:gt.a,LTileLayer:yt.a,LMarker:bt.a},created:function(){var t=this;axios.get("./api/v1/configuration/static/firefly.default_location").then((function(e){t.zoom=parseInt(e.data["firefly.default_location"].zoom_level),t.center=[parseFloat(e.data["firefly.default_location"].latitude),parseFloat(e.data["firefly.default_location"].longitude)]}))},data:function(){return{availableFields:this.customFields,url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",zoom:3,center:[0,0],bounds:null,map:null,hasMarker:!1,marker:[0,0]}},methods:{prepMap:function(){this.map=this.$refs.myMap.mapObject,this.map.on("contextmenu",this.setObjectLocation),this.map.on("zoomend",this.saveZoomLevel)},setObjectLocation:function(t){this.marker=[t.latlng.lat,t.latlng.lng],this.hasMarker=!0,this.emitEvent()},saveZoomLevel:function(){this.emitEvent()},clearLocation:function(){this.hasMarker=!1,this.emitEvent()},emitEvent:function(){this.$emit("set-marker-location",{index:this.index,zoomLevel:this.zoom,lat:this.marker[0],lng:this.marker[1],hasMarker:this.hasMarker})},zoomUpdated:function(t){this.zoom=t},centerUpdated:function(t){this.center=t},boundsUpdated:function(t){this.bounds=t}},computed:{showField:function(){return"location"in this.availableFields&&this.availableFields.location}},watch:{customFields:function(t){this.availableFields=t}}},kt=Object(r.a)(Tt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showField?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.location"))+"\n ")]),t._v(" "),n("div",{staticStyle:{width:"100%",height:"300px"}},[n("l-map",{ref:"myMap",staticStyle:{width:"100%",height:"300px"},attrs:{zoom:t.zoom,center:t.center},on:{ready:function(e){return t.prepMap()},"update:zoom":t.zoomUpdated,"update:center":t.centerUpdated,"update:bounds":t.boundsUpdated}},[n("l-tile-layer",{attrs:{url:t.url}}),t._v(" "),n("l-marker",{attrs:{"lat-lng":t.marker,visible:t.hasMarker}})],1),t._v(" "),n("span",[n("button",{staticClass:"btn btn-default btn-xs",on:{click:t.clearLocation}},[t._v(t._s(t.$t("firefly.clear_location")))])])],1),t._v(" "),n("p",[t._v(" ")])]):t._e()}),[],!1,null,"edf1fb46",null).exports;function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function $t(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){Ft(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 Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ot=Object(i.b)("transactions/create"),At=(Ot.mapState,Ot.mapGetters),jt=(Ot.mapActions,Ot.mapMutations,{name:"SplitForm",props:["transaction","split","count","customFields","index","submittedTransaction"],computed:$t($t({},At(["transactionType","date","time"])),{},{splitDate:function(){return this.date},splitTime:function(){return this.time},sourceAccount:function(){return{id:this.transaction.source_account_id,name:this.transaction.source_account_name,type:this.transaction.source_account_type}},destinationAccount:function(){return{id:this.transaction.destination_account_id,name:this.transaction.destination_account_name,type:this.transaction.destination_account_type}},hasMetaFields:function(){var t=["internal_reference","notes","attachments","external_uri","location","links"];for(var e in this.customFields)if(this.customFields.hasOwnProperty(e)&&t.includes(e)&&!0===this.customFields[e])return!0;return!1}}),components:{TransactionLocation:kt,SplitPills:l,TransactionAttachments:vt,TransactionNotes:pt,TransactionExternalUrl:ut,TransactionInternalReference:ct,TransactionPiggyBank:rt,TransactionTags:it,TransactionLinks:mt,TransactionBill:Q,TransactionCategory:Z,TransactionCustomDates:J,TransactionForeignCurrency:H,TransactionForeignAmount:q,TransactionAmount:B,SwitchAccount:R,TransactionAccount:D,TransactionBudget:w,TransactionDescription:x,TransactionDate:T}}),St=Object(r.a)(jt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"tab-pane"+(0===t.index?" active":""),attrs:{id:"split_"+t.index}},[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.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("TransactionDescription",t._g({attrs:{index:t.index,errors:t.transaction.errors.description},model:{value:t.transaction.description,callback:function(e){t.$set(t.transaction,"description",e)},expression:"transaction.description"}},t.$listeners))],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",t._g({attrs:{direction:"source",index:t.index,errors:t.transaction.errors.source},model:{value:t.sourceAccount,callback:function(e){t.sourceAccount=e},expression:"sourceAccount"}},t.$listeners))],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"},[0===t.index?n("SwitchAccount",t._g({attrs:{index:t.index}},t.$listeners)):t._e()],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAccount",t._g({attrs:{direction:"destination",index:t.index,errors:t.transaction.errors.destination},model:{value:t.destinationAccount,callback:function(e){t.destinationAccount=e},expression:"destinationAccount"}},t.$listeners))],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",t._g({attrs:{index:t.index,errors:t.transaction.errors.amount,amount:t.transaction.amount,"transaction-type":this.transactionType,"source-currency-symbol":this.transaction.source_account_currency_symbol,"destination-currency-symbol":this.transaction.destination_account_currency_symbol}},t.$listeners))],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",t._g({attrs:{"transaction-type":this.transactionType,"source-currency-id":this.transaction.source_account_currency_id,"destination-currency-id":this.transaction.destination_account_currency_id,"selected-currency-id":this.transaction.foreign_currency_id,index:t.index}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12"},[n("TransactionForeignAmount",t._g({attrs:{index:t.index,errors:t.transaction.errors.foreign_amount,"transaction-type":this.transactionType,"source-currency-id":this.transaction.source_account_currency_id,"destination-currency-id":this.transaction.destination_account_currency_id,"selected-currency-id":this.transaction.foreign_currency_id}},t.$listeners))],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",t._g({attrs:{index:t.index,date:t.splitDate,time:t.splitTime,errors:t.transaction.errors.date}},t.$listeners))],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",t._g({attrs:{index:t.index,"custom-fields":t.customFields,errors:t.transaction.errors.custom_dates,"interest-date":t.transaction.interest_date,"book-date":t.transaction.book_date,"process-date":t.transaction.process_date,"due-date":t.transaction.due_date,"payment-date":t.transaction.payment_date,"invoice-date":t.transaction.invoice_date},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}}},t.$listeners))],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.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},["Transfer"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionBudget",t._g({attrs:{index:t.index,errors:t.transaction.errors.budget},model:{value:t.transaction.budget_id,callback:function(e){t.$set(t.transaction,"budget_id",e)},expression:"transaction.budget_id"}},t.$listeners)):t._e(),t._v(" "),n("TransactionCategory",t._g({attrs:{index:t.index,errors:t.transaction.errors.category},model:{value:t.transaction.category,callback:function(e){t.$set(t.transaction,"category",e)},expression:"transaction.category"}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},["Transfer"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionBill",t._g({attrs:{index:t.index,errors:t.transaction.errors.bill},model:{value:t.transaction.bill_id,callback:function(e){t.$set(t.transaction,"bill_id",e)},expression:"transaction.bill_id"}},t.$listeners)):t._e(),t._v(" "),n("TransactionTags",t._g({attrs:{index:t.index,errors:t.transaction.errors.tags},model:{value:t.transaction.tags,callback:function(e){t.$set(t.transaction,"tags",e)},expression:"transaction.tags"}},t.$listeners)),t._v(" "),"Withdrawal"!==t.transactionType&&"Deposit"!==t.transactionType?n("TransactionPiggyBank",t._g({attrs:{index:t.index,errors:t.transaction.errors.piggy_bank},model:{value:t.transaction.piggy_bank_id,callback:function(e){t.$set(t.transaction,"piggy_bank_id",e)},expression:"transaction.piggy_bank_id"}},t.$listeners)):t._e()],1)])])])])]),t._v(" "),t.hasMetaFields?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_extra"))+"\n "),t.count>1?n("span",[t._v("("+t._s(t.index+1)+" / "+t._s(t.count)+") ")]):t._e()])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[n("TransactionInternalReference",t._g({attrs:{index:t.index,errors:t.transaction.errors.internal_reference,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.internal_reference,callback:function(e){t.$set(t.transaction,"internal_reference",e)},expression:"transaction.internal_reference"}},t.$listeners)),t._v(" "),n("TransactionExternalUrl",t._g({attrs:{index:t.index,errors:t.transaction.errors.external_url,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.external_url,callback:function(e){t.$set(t.transaction,"external_url",e)},expression:"transaction.external_url"}},t.$listeners)),t._v(" "),n("TransactionNotes",t._g({attrs:{index:t.index,errors:t.transaction.errors.notes,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.notes,callback:function(e){t.$set(t.transaction,"notes",e)},expression:"transaction.notes"}},t.$listeners))],1),t._v(" "),n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[n("TransactionAttachments",t._g({ref:"attachments",attrs:{index:t.index,transaction_journal_id:t.transaction.transaction_journal_id,submitted_transaction:t.submittedTransaction,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.attachments,callback:function(e){t.$set(t.transaction,"attachments",e)},expression:"transaction.attachments"}},t.$listeners)),t._v(" "),n("TransactionLocation",t._g({attrs:{index:t.index,errors:t.transaction.errors.location,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.notes,callback:function(e){t.$set(t.transaction,"notes",e)},expression:"transaction.notes"}},t.$listeners)),t._v(" "),n("TransactionLinks",t._g({attrs:{index:t.index,"custom-fields":t.customFields},on:{"update:customFields":function(e){t.customFields=e},"update:custom-fields":function(e){t.customFields=e}},model:{value:t.transaction.links,callback:function(e){t.$set(t.transaction,"links",e)},expression:"transaction.links"}},t.$listeners))],1)])])])])]):t._e()])}),[],!1,null,null,null).exports;function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(n),!0).forEach((function(e){Et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pt(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 Lt=Object(i.b)("transactions/create"),It=(Lt.mapState,Lt.mapGetters),Nt=(Lt.mapActions,Lt.mapMutations),Mt={name:"Create",components:{SplitForm:St,Alert:o,SplitPills:l,TransactionGroupTitle:y},created:function(){this.storeAllowedOpposingTypes(),this.storeAccountToTransaction(),this.storeCustomFields(),this.addTransaction()},data:function(){return{errorMessage:"",successMessage:"",customFields:[],enableSubmit:!0,createAnother:!1,resetFormAfter:!1,submittedTransaction:!1,submittedLinks:!1,submittedAttachments:!1,inError:!1,submittedAttCount:{},groupTitleErrors:[],returnedGroupId:0,returnedGroupTitle:"",accountToTransaction:{}}},computed:Dt({},It(["transactionType","transactions","date","time","groupTitle"])),watch:{submittedTransaction:function(){this.finalizeSubmit()},submittedLinks:function(){this.finalizeSubmit()},submittedAttachments:function(){this.finalizeSubmit()}},methods:Dt(Dt({},Nt(["addTransaction","deleteTransaction","setAllowedOpposingTypes","setTransactionError","setTransactionType","resetErrors","updateField","resetTransactions","setDate","setTime"])),{},{removeTransaction:function(t){this.$store.commit("transactions/create/deleteTransaction",{index:t})},storeCustomFields:function(){var t=this;axios.get("./api/v1/preferences/transaction_journal_optional_fields").then((function(e){t.customFields=e.data.data.attributes.data}))},finalizeSubmit:function(){var t=this;if(console.log("finalizeSubmit ("+this.submittedTransaction+", "+this.submittedAttachments+", "+this.submittedLinks+")"),this.submittedTransaction&&this.submittedAttachments&&this.submittedLinks){var e;if(console.log("all true"),console.log("createAnother = "+this.createAnother),console.log("inError = "+this.inError),!1===this.createAnother&&!1===this.inError)return console.log("redirect"),void(window.location.href=(null!==(e=window.previousURL)&&void 0!==e?e:"/")+"?transaction_group_id="+this.returnedGroupId+"&message=created");for(var n in!1===this.inError&&(this.errorMessage="",this.successMessage=this.$t("firefly.transaction_stored_link",{ID:this.returnedGroupId,title:this.returnedGroupTitle})),this.enableSubmit=!0,this.submittedTransaction=!1,this.submittedLinks=!1,this.submittedAttachments=!1,this.inError=!1,this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&this.transactions.hasOwnProperty(n)&&this.updateField({index:n,field:"transaction_journal_id",value:0});this.submittedAttCount=[],this.resetFormAfter&&(this.resetTransactions(),setTimeout((function(){return t.addTransaction()}),50))}},submitTransaction:function(){var t=this;console.log("submitTransaction()"),this.enableSubmit=!1;var e=this.convertData();console.log("Will submit:"),console.log(e),axios.post("./api/v1/transactions",e).then((function(n){console.log("Response is OK!"),t.submittedTransaction=!0,t.submitTransactionLinks(e,n),t.submitAttachments(e,n),t.returnedGroupId=parseInt(n.data.data.id),t.returnedGroupTitle=null===n.data.data.attributes.group_title?n.data.data.attributes.transactions[0].description:n.data.data.attributes.group_title})).catch((function(e){t.enableSubmit=!0,t.submittedTransaction=!0,t.submittedAttachments=!0,t.submittedLinks=!0,t.inError=!0,t.parseErrors(e.response.data)}))},submitAttachments:function(t,e){console.log("submitAttachments()");var n=e.data.data.attributes.transactions;for(var s in t.transactions)t.transactions.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&n.hasOwnProperty(s)&&this.updateField({index:s,field:"transaction_journal_id",value:n[0].transaction_journal_id})},uploadedAttachment:function(t){console.log("Triggered uploadedAttachment("+t+")");var e="str"+t;this.submittedAttCount[e]=1,Object.keys(this.submittedAttCount).length===this.transactions.length&&(this.submittedAttachments=!0)},storeLocation:function(t){var e=t.hasMarker?t.zoomLevel:null,n=t.hasMarker?t.lat:null,s=t.hasMarker?t.lng:null;this.updateField({index:t.index,field:"zoom_level",value:e}),this.updateField({index:t.index,field:"latitude",value:n}),this.updateField({index:t.index,field:"longitude",value:s})},storeAccountValue:function(t){this.updateField({index:t.index,field:t.direction+"_account_id",value:t.id}),this.updateField({index:t.index,field:t.direction+"_account_type",value:t.type}),this.updateField({index:t.index,field:t.direction+"_account_name",value:t.name}),this.updateField({index:t.index,field:t.direction+"_account_currency_id",value:t.currency_id}),this.updateField({index:t.index,field:t.direction+"_account_currency_code",value:t.currency_code}),this.updateField({index:t.index,field:t.direction+"_account_currency_symbol",value:t.currency_symbol}),this.calculateTransactionType(t.index)},storeField:function(t){this.updateField(t)},storeDate:function(t){this.setDate(t.date)},storeTime:function(t){this.setTime(t.time)},calculateTransactionType:function(t){if(0===t){var e=this.transactions[0].source_account_type,n=this.transactions[0].destination_account_type;if(null===e||null===n)return void this.setTransactionType("any");if(""===e||""===n)return void this.setTransactionType("any");var s=this.accountToTransaction[e];if(void 0!==s){var i=s[n];if(void 0!==s[n])return void this.setTransactionType(i)}"Asset account"!==e&&this.updateField({index:0,field:"destination_account_id",value:null}),"Asset account"!==n&&this.updateField({index:0,field:"source_account_id",value:null}),this.setTransactionType("any")}},submitTransactionLinks:function(t,e){var n=[],s=e.data.data.attributes.transactions,i=0;for(var a in t.transactions)if(t.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294){var r=t.transactions[a];if(s.hasOwnProperty(a)){var o=s[a];for(var c in r.links)if(r.links.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294){var l=r.links[c];i++,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!==i?Promise.all(n).then((function(){this.submittedLinks=!0})):this.submittedLinks=!0},parseErrors:function(t){for(var e in this.transactions)this.resetErrors({index:e});var n,s,i;for(var a in this.successMessage="",this.errorMessage=this.$t("firefly.errors_submission"),void 0===t.errors&&(this.successMessage="",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)switch(s=parseInt(a.split(".")[1]),i=a.split(".")[2]){case"amount":case"description":case"date":case"tags":n={index:s,field:i,errors:t.errors[a]},this.setTransactionError(n);break;case"budget_id":n={index:s,field:"budget",errors:t.errors[a]},this.setTransactionError(n);break;case"bill_id":n={index:s,field:"bill",errors:t.errors[a]},this.setTransactionError(n);break;case"piggy_bank_id":n={index:s,field:"piggy_bank",errors:t.errors[a]},this.setTransactionError(n);break;case"category_name":n={index:s,field:"category",errors:t.errors[a]},this.setTransactionError(n);break;case"source_name":case"source_id":n={index:s,field:"source",errors:t.errors[a]},this.setTransactionError(n);break;case"destination_name":case"destination_id":n={index:s,field:"destination",errors:t.errors[a]},this.setTransactionError(n);break;case"foreign_amount":case"foreign_currency":n={index:s,field:"foreign_amount",errors:t.errors[a]},this.setTransactionError(n)}this.transactions[s]}},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.transactions.length>1&&(t=this.synchronizeAccounts(t)),t},synchronizeAccounts:function(t){for(var e in t.transactions)t.transactions.hasOwnProperty(e)&&/^0$|^[1-9]\d*$/.test(e)&&e<=4294967294&&("Transfer"===this.transactionType&&(t.transactions[e].source_name=null,t.transactions[e].destination_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id,t.transactions[e].destination_id=t.transactions[0].destination_id)),"Deposit"===this.transactionType&&(t.transactions[e].destination_name=null,e>0&&(t.transactions[e].destination_id=t.transactions[0].destination_id)),"Withdrawal"===this.transactionType&&(t.transactions[e].source_name=null,e>0&&(t.transactions[e].source_id=t.transactions[0].source_id)));return t},switchAccounts:function(t){console.log("user wants to switch Accounts");var e=this.transactions[t].source_account_id,n=this.transactions[t].source_account_name,s=this.transactions[t].source_account_type,i=this.transactions[t].destination_account_id,a=this.transactions[t].destination_account_name,r=this.transactions[t].destination_account_type;this.updateField({index:0,field:"source_account_id",value:i}),this.updateField({index:0,field:"source_account_name",value:a}),this.updateField({index:0,field:"source_account_type",value:r}),this.updateField({index:0,field:"destination_account_id",value:e}),this.updateField({index:0,field:"destination_account_name",value:n}),this.updateField({index:0,field:"destination_account_type",value:s}),this.calculateTransactionType(0)},convertSplit:function(t,e){var n,s,i,a,r="invalid";if(this.time instanceof Date&&!isNaN(this.time)&&this.date instanceof Date&&!isNaN(this.date)){var o=new Date(this.date);o.setHours(this.time.getHours()),o.setMinutes(this.time.getMinutes()),o.setSeconds(this.time.getSeconds()),r=this.toW3CString(this.date)}var c,l,u,d={description:e.description,date:r,type:this.transactionType,source_id:null!==(n=e.source_account_id)&&void 0!==n?n:null,source_name:null!==(s=e.source_account_name)&&void 0!==s?s:null,destination_id:null!==(i=e.destination_account_id)&&void 0!==i?i:null,destination_name:null!==(a=e.destination_account_name)&&void 0!==a?a: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,zoom_level:e.zoom_level,longitude:e.longitude,latitude:e.latitude,order:0,reconciled:!1};0!==e.piggy_bank_id&&(d.piggy_bank_id=e.piggy_bank_id),0!==e.bill_id&&(d.bill_id=e.bill_id),0!==e.foreign_currency_id&&""!==e.foreign_amount&&(d.foreign_currency_id=e.foreign_currency_id),""!==e.foreign_amount&&(d.foreign_amount=e.foreign_amount),c=this.transactionType?this.transactionType.toLowerCase():"any",l=this.transactions[0].source_account_type,u=this.transactions[0].destination_account_type,d.currency_id=e.source_account_currency_id,"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(l)&&(c="withdrawal"),"any"===c&&["asset","Asset account","Loan","Debt","Mortgage"].includes(u)&&(c="deposit",d.currency_id=e.destination_account_currency_id),d.type=c;var p=[];for(var f in e.links)if(e.links.hasOwnProperty(f)&&/^0$|^[1-9]\d*$/.test(f)&&f<=4294967294){var h=e.links[f],m=h.link_type_id.split("-"),_="outward"===m[1]?0:parseInt(h.transaction_journal_id),v="inward"===m[1]?0:parseInt(h.transaction_journal_id),g={link_type_id:parseInt(m[0]),inward_id:_,outward_id:v};p.push(g)}return d.links=p,d},toW3CString:function(t){var e=t.getFullYear(),n=t.getMonth();++n<10&&(n="0"+n);var s=t.getDate();s<10&&(s="0"+s);var i=t.getHours();i<10&&(i="0"+i);var a=t.getMinutes();a<10&&(a="0"+a);var r=t.getSeconds();r<10&&(r="0"+r);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+"-"+s+"T"+i+":"+a+":"+r+u+c+":"+l},storeAllowedOpposingTypes:function(){this.setAllowedOpposingTypes(window.allowedOpposingTypes)},storeAccountToTransaction:function(){var t=this;axios.get("./api/v1/configuration/static/firefly.account_to_transaction").then((function(e){t.accountToTransaction=e.data["firefly.account_to_transaction"]}))}})},Ut=Object(r.a)(Mt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("alert",{attrs:{message:t.errorMessage,type:"danger"}}),t._v(" "),n("alert",{attrs:{message:t.successMessage,type:"success"}}),t._v(" "),n("SplitPills",{attrs:{transactions:t.transactions}}),t._v(" "),n("div",{staticClass:"tab-content"},t._l(this.transactions,(function(e,s){return n("SplitForm",{key:s,attrs:{transaction:e,index:s,count:t.transactions.length,"custom-fields":t.customFields,"submitted-transaction":t.submittedTransaction},on:{"uploaded-attachments":function(e){return t.uploadedAttachment(e)},"set-marker-location":function(e){return t.storeLocation(e)},"set-account":function(e){return t.storeAccountValue(e)},"switch-accounts":function(e){return t.switchAccounts(e)},"set-date":function(e){return t.storeDate(e)},"set-time":function(e){return t.storeTime(e)},"set-field":function(e){return t.storeField(e)}}})})),1),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[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-outline-primary btn-block",on:{click:t.addTransaction}},[n("i",{staticClass:"far fa-clone"}),t._v(" "+t._s(t.$t("firefly.add_another_split"))+"\n ")])]),t._v(" "),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-success btn-block",attrs:{disabled:!t.enableSubmit},on:{click:t.submitTransaction}},[t.enableSubmit?n("span",[n("i",{staticClass:"far fa-save"}),t._v(" "+t._s(t.$t("firefly.store_transaction")))]):t._e(),t._v(" "),t.enableSubmit?t._e():n("span",[n("i",{staticClass:"fas fa-spinner fa-spin"})])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t._v("\n \n ")]),t._v(" "),n("div",{staticClass:"col"},[n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createAnother,expression:"createAnother"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"createAnother"},domProps:{checked:Array.isArray(t.createAnother)?t._i(t.createAnother,null)>-1:t.createAnother},on:{change:function(e){var n=t.createAnother,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t._i(n,null);s.checked?a<0&&(t.createAnother=n.concat([null])):a>-1&&(t.createAnother=n.slice(0,a).concat(n.slice(a+1)))}else t.createAnother=i}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"createAnother"}},[n("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.create_another")))])])]),t._v(" "),n("div",{staticClass:"form-check"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.resetFormAfter,expression:"resetFormAfter"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"resetFormAfter",disabled:!t.createAnother},domProps:{checked:Array.isArray(t.resetFormAfter)?t._i(t.resetFormAfter,null)>-1:t.resetFormAfter},on:{change:function(e){var n=t.resetFormAfter,s=e.target,i=!!s.checked;if(Array.isArray(n)){var a=t._i(n,null);s.checked?a<0&&(t.resetFormAfter=n.concat([null])):a>-1&&(t.resetFormAfter=n.slice(0,a).concat(n.slice(a+1)))}else t.resetFormAfter=i}}}),t._v(" "),n("label",{staticClass:"form-check-label",attrs:{for:"resetFormAfter"}},[n("span",{staticClass:"small"},[t._v(t._s(t.$t("firefly.reset_after")))])])])])])])])])])],1)}),[],!1,null,"5bb53cab",null).exports,Rt=n(3),zt=n.n(Rt);n(15),zt.a.config.productionTip=!1;var Bt=n(18),Gt={};new zt.a({i18n:Bt,store:s.a,render:function(t){return t(Ut,{props:Gt})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_create")}},[[299,0,1]]]);//# sourceMappingURL=create.js.map\ No newline at end of filediff --git a/public/v2/js/transactions/create.js.map b/public/v2/js/transactions/create.js.mapindex c5bbe51b5b..6b57f9c098 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/partials/Alert.vue?608f","webpack:///src/components/partials/Alert.vue","webpack:///./src/components/partials/Alert.vue","webpack:///./src/components/partials/Alert.vue?dd32","webpack:///./src/components/transactions/SplitPills.vue?bfa9","webpack:///src/components/transactions/SplitPills.vue","webpack:///./src/components/transactions/SplitPills.vue","webpack:///./src/components/transactions/SplitPills.vue?23a1","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?36c2","webpack:///./src/components/transactions/TransactionDescription.vue?e9b4","webpack:///src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?d5b3","webpack:///./src/components/transactions/TransactionDate.vue?cd54","webpack:///src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?96cd","webpack:///./src/components/transactions/TransactionBudget.vue?582a","webpack:///src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?338a","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?4dce","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?8f90","webpack:///./src/components/transactions/TransactionAmount.vue?2029","webpack:///src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?db8c","webpack:///./src/components/transactions/TransactionForeignAmount.vue?a3d5","webpack:///src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?9f40","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?7457","webpack:///src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?4648","webpack:///./src/components/transactions/TransactionCustomDates.vue?a208","webpack:///src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?cc36","webpack:///./src/components/transactions/TransactionCategory.vue?7292","webpack:///src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?1394","webpack:///./src/components/transactions/TransactionBill.vue?5529","webpack:///src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?cda7","webpack:///./src/components/transactions/TransactionTags.vue?0617","webpack:///src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?d559","webpack:///./src/components/transactions/TransactionPiggyBank.vue?183b","webpack:///src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?67f5","webpack:///./src/components/transactions/TransactionInternalReference.vue?111c","webpack:///src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?dad8","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1580","webpack:///src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1909","webpack:///./src/components/transactions/TransactionNotes.vue?2e0f","webpack:///src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?18da","webpack:///src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?48a5","webpack:///./src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?ebca","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?e36d","webpack:///src/components/transactions/TransactionLocation.vue","webpack:///./src/components/transactions/TransactionLocation.vue?b0f9","webpack:///./src/components/transactions/TransactionLocation.vue","webpack:///./src/components/transactions/TransactionLocation.vue?bc7e","webpack:///src/components/transactions/SplitForm.vue","webpack:///./src/components/transactions/SplitForm.vue?f1c3","webpack:///./src/components/transactions/SplitForm.vue","webpack:///./src/components/transactions/SplitForm.vue?8292","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?1758","webpack:///./src/pages/transactions/create.js"],"names":["content","module","i","options","transform","undefined","locals","exports","push","name","props","_vm","this","_h","$createElement","_c","_self","message","length","class","type","staticClass","attrs","_v","_e","_s","$t","domProps","transactions","_l","transaction","index","description","components","data","descriptions","initialSet","title","value","created","axios","get","getACURL","watch","setGroupTitle","methods","clearDescription","document","getElementsByTagName","href","query","lookupDescription","item","errors","on","model","callback","$$v","expression","slot","error","$emit","localDate","date","localTime","time","computed","dateStr","Date","isNaN","toISOString","split","set","timeStr","getHours","slice","getMinutes","getSeconds","setHours","setMinutes","setSeconds","current","parseInt","parts","directives","rawName","ref","$event","target","composing","budgetList","budget","collectData","getBudgets","parseBudgets","hasOwnProperty","key","test","preventDefault","$$selectedVal","Array","prototype","filter","call","o","selected","map","_value","multiple","id","accounts","accountTypes","selectedAccount","account","accountName","selectedAccountTrigger","createInitialSet","types","join","clearAccount","lookupAccount","direction","sourceAllowedTypes","destinationAllowedTypes","emitAccountId","emitAccountType","emitAccountName","emitAccountCurrencyId","currency_id","emitAccountCurrencyCode","currency_code","emitAccountCurrencySymbol","currency_symbol","name_with_balance","console","log","accountTrigger","allowedOpposingTypes","opposingAccounts","setDestinationAllowedTypes","setSourceAllowedTypes","accountKey","emitAccount","visible","transactionType","scopedSlots","_u","fn","htmlText","switchAccounts","transactionAmount","amount","currencySymbol","srcCurrencySymbol","sourceCurrencySymbol","dstCurrencySymbol","destinationCurrencySymbol","isVisible","sourceCurrencyId","destinationCurrencyId","selectedCurrency","allCurrencies","selectableCurrencies","dstCurrencyId","srcCurrencyId","lockedCurrency","filterCurrencies","getAllCurrencies","currency","dateFields","availableFields","customFields","dates","interest_date","interestDate","book_date","bookDate","process_date","processDate","due_date","dueDate","payment_date","paymentDate","invoice_date","invoiceDate","isDateField","includes","getFieldValue","setFieldValue","enabled","refInFor","categories","category","clearCategory","lookupCategory","selectedCategory","billList","bill","getBills","parseBills","VueTagsInput","autocompleteItems","debounce","tags","currentTag","updateTags","tagList","shortList","initItems","clearTimeout","setTimeout","this$1","newTags","piggyList","piggy_bank_id","getPiggies","parsePiggies","piggy","reference","showField","internal_reference","_m","url","external_uri","notes","searchResults","include","locale","linkTypes","searching","links","lodashClonedeep","getLinkTypes","getTextForLinkType","linkTypeId","selectTransaction","addToSelected","removeFromSelected","selectLinkType","updateSelected","transaction_journal_id","link_type_id","journalId","journal","splice","parseLinkTypes","attributes","inward","outward","linkTypeInward","linkTypeOutward","search","parseSearch","ii","transaction_group_id","isJournalSelected","getJournalLinkType","link_type_text","Intl","NumberFormat","style","format","parseFloat","result","isArray","_i","$$a","$$el","$$c","checked","$$i","$set","concat","linkType","source_id","source_name","destination_id","destination_name","staticStyle","doUpload","attachments","$refs","att","files","LMap","LTileLayer","LMarker","then","zoom","center","bounds","hasMarker","marker","prepMap","myMap","mapObject","setObjectLocation","saveZoomLevel","event","latlng","lat","lng","emitEvent","clearLocation","zoomUpdated","centerUpdated","boundsUpdated","location","splitDate","splitTime","sourceAccount","source_account_id","source_account_name","source_account_type","destinationAccount","destination_account_id","destination_account_name","destination_account_type","hasMetaFields","field","requiredFields","TransactionLocation","SplitPills","TransactionAttachments","TransactionNotes","TransactionExternalUrl","TransactionInternalReference","TransactionPiggyBank","TransactionTags","TransactionLinks","TransactionBill","TransactionCategory","TransactionCustomDates","TransactionForeignCurrency","TransactionForeignAmount","TransactionAmount","SwitchAccount","TransactionAccount","TransactionBudget","TransactionDescription","TransactionDate","count","_g","$listeners","source","destination","source_account_currency_symbol","destination_account_currency_symbol","source_account_currency_id","destination_account_currency_id","foreign_currency_id","foreign_amount","custom_dates","piggy_bank","external_url","submittedTransaction","SplitForm","Alert","TransactionGroupTitle","storeAllowedOpposingTypes","storeAccountToTransaction","storeCustomFields","addTransaction","errorMessage","successMessage","enableSubmit","createAnother","resetFormAfter","submittedLinks","submittedAttachments","inError","submittedAttCount","groupTitleErrors","returnedGroupId","returnedGroupTitle","accountToTransaction","finalizeSubmit","removeTransaction","$store","commit","window","updateField","resetTransactions","submitTransaction","post","submitAttachments","uploadedAttachment","storeLocation","storeAccountValue","calculateTransactionType","storeDescription","storeForeignCurrencyId","storeAmount","storeForeignAmount","storeDate","setDate","storeTime","setTime","storeCustomDate","storeBudget","storeCategory","storeBill","storeTags","storePiggyBank","storeInternalReference","storeExternalUrl","storeNotes","storeLinks","dest","setTransactionType","expectedDestinationTypes","submitTransactionLinks","submitted","total","currentLink","outward_id","received","inward_id","promises","Promise","all","parseErrors","resetErrors","transactionIndex","fieldName","payload","setTransactionError","convertData","groupTitle","group_title","convertSplit","synchronizeAccounts","theDate","toW3CString","array","budget_id","category_name","external_id","zoom_level","longitude","latitude","order","reconciled","currentSplit","bill_id","toLowerCase","firstSource","firstDestination","linkTypeParts","inwardId","outwardId","newLink","month","day","hours","minutes","seconds","offsetHours","offsetMinutes","offset","offsetSign","year","setAllowedOpposingTypes","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,2DCLH,ECgCrM,CACEO,KAAM,QACNC,MAAO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FF,GAAK,IAAInQ,EAAIoW,eAAerG,EAAI/L,MAAM,EAAEmM,GAAKE,OAAON,EAAI/L,MAAMmM,EAAI,UAAWnQ,EAAIoW,eAAenG,MAASjQ,EAAIY,GAAG,KAAKR,EAAG,QAAQ,CAACM,YAAY,mBAAmBC,MAAM,CAAC,IAAM,mBAAmB,CAACP,EAAG,OAAO,CAACM,YAAY,SAAS,CAACV,EAAIY,GAAGZ,EAAIc,GAAGd,EAAIe,GAAG,4CAA4C,KACjwN,IDUpB,EACA,KACA,WACA,M,2BEUFqb,EAAQ,IAERC,KAAIC,OAAOC,eAAgB,EAE3B,IAAIC,GAAOJ,EAAQ,IAEfrc,GAAQ,GACZ,IAAIsc,KAAI,CACIG,QACAC,UACAC,OAHJ,SAGWC,GACH,OAAOA,EAAcC,GAAQ,CAAC7c,MAAOA,MAEzC8c,aANJ,WAOQ5c,KAAK8W,OAAOC,OAAO,mBACnB/W,KAAK8W,OAAO+F,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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Alert.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!./Alert.vue?vue&type=script&lang=js&\"","<!--\n - Alert.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<template>\n <div :class=\"'alert alert-' + type + ' alert-dismissible'\" v-if=\"message.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5>\n <i v-if=\"'danger' === type\" class=\"icon fas fa-ban\"></i>\n <i v-if=\"'success' === type\" class=\"icon fas fa-thumbs-up\"></i>\n <span v-if=\"'danger' === type\">{{ $t(\"firefly.flash_error\") }}</span>\n <span v-if=\"'success' === type\">{{ $t(\"firefly.flash_success\") }}</span>\n </h5>\n <span v-html=\"message\"></span>\n </div>\n</template>\n<script>\nexport default {\n name: \"Alert\",\n props: ['message', 'type']\n}\n</script>","import { render, staticRenderFns } from \"./Alert.vue?vue&type=template&id=e66a6110&\"\nimport script from \"./Alert.vue?vue&type=script&lang=js&\"\nexport * from \"./Alert.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 (_vm.message.length > 0)?_c('div',{class:'alert alert-' + _vm.type + ' alert-dismissible'},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[('danger' === _vm.type)?_c('i',{staticClass:\"icon fas fa-ban\"}):_vm._e(),_vm._v(\" \"),('success' === _vm.type)?_c('i',{staticClass:\"icon fas fa-thumbs-up\"}):_vm._e(),_vm._v(\" \"),('danger' === _vm.type)?_c('span',[_vm._v(_vm._s(_vm.$t(\"firefly.flash_error\")))]):_vm._e(),_vm._v(\" \"),('success' === _vm.type)?_c('span',[_vm._v(_vm._s(_vm.$t(\"firefly.flash_success\")))]):_vm._e()]),_vm._v(\" \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.message)}})]):_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!./SplitPills.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!./SplitPills.vue?vue&type=script&lang=js&\"","<!--\n - SplitPills.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=\"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</template>\n\n<script>\nexport default {\n name: \"SplitPills\",\n props: ['transactions']\n}\n</script>\n","import { render, staticRenderFns } from \"./SplitPills.vue?vue&type=template&id=12e491e5&\"\nimport script from \"./SplitPills.vue?vue&type=script&lang=js&\"\nexport * from \"./SplitPills.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 (_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()}\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=\"title\"\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 tabindex=\"-1\" 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 title: this.value\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 title: 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.title = '';\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.title))\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=20a0ca60&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 \"20a0ca60\",\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.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"description\"\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 tabindex=\"-1\" 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 VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nexport default {\n props: ['index', 'value', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionDescription\",\n data() {\n return {\n descriptions: [],\n initialSet: [],\n description: this.value\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 clearDescription: function () {\n this.description = '';\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 description: function (value) {\n this.$emit('set-description', value);\n //\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionDescription.vue?vue&type=template&id=1bfce4c2&\"\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.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"dateStr\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"date[]\"\n :placeholder=\"dateStr\"\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=\"timeStr\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"time[]\"\n :placeholder=\"timeStr\"\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\nexport default {\n props: ['index', 'errors', 'date', 'time'],\n name: \"TransactionDate\",\n data() {\n return {\n localDate: this.date,\n localTime: this.time\n }\n },\n methods: {},\n computed: {\n dateStr: {\n get() {\n if (this.localDate instanceof Date && !isNaN(this.localDate)) {\n return this.localDate.toISOString().split('T')[0];\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n if ('' === value) {\n // reset to today\n this.localDate = new Date();\n this.$emit('set-date', {date: this.localDate});\n return;\n }\n this.localDate = new Date(value);\n this.$emit('set-date', {date: this.localDate});\n }\n },\n timeStr: {\n get() {\n if (this.localTime instanceof Date && !isNaN(this.localTime)) {\n return ('0' + this.localTime.getHours()).slice(-2) + ':' + ('0' + this.localTime.getMinutes()).slice(-2) + ':' + ('0' + this.localTime.getSeconds()).slice(-2);\n }\n return '';\n },\n set(value) {\n if ('' === value) {\n this.localTime.setHours(0);\n this.localTime.setMinutes(0);\n this.localTime.setSeconds(0);\n this.$emit('set-time', {time: this.localTime});\n return;\n }\n // bit of a hack but meh.\n let current = new Date(this.localTime.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.localTime = current;\n this.$emit('set-time', {time: this.localTime});\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionDate.vue?vue&type=template&id=64ea40ba&\"\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.dateStr),expression:\"dateStr\"}],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.dateStr},domProps:{\"value\":(_vm.dateStr)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.dateStr=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.timeStr),expression:\"timeStr\"}],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.timeStr},domProps:{\"value\":(_vm.timeStr)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.timeStr=$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 }","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&\"","<!--\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=\"budget\"\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>\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionBudget\",\n data() {\n return {\n budgetList: [],\n budget: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 budget: function (value) {\n this.$emit('set-budget', value);\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionBudget.vue?vue&type=template&id=648c4287&\"\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.budget),expression:\"budget\"}],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.budget=$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\" v-if=\"visible\">\n <span v-if=\"0 === this.index\">{{ $t('firefly.' + this.direction + '_account') }}</span>\n <span class=\"text-warning\" v-if=\"this.index > 0\">{{ $t('firefly.first_split_overrules_' + this.direction) }}</span>\n </div>\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"!visible\">\n \n </div>\n <vue-typeahead-bootstrap\n v-if=\"visible\"\n v-model=\"accountName\"\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.' + direction + '_account')\"\n @input=\"lookupAccount\"\n @hit=\"selectedAccount = $event\"\n >\n\n <template slot=\"suggestion\" slot-scope=\"{ data, htmlText }\">\n <div class=\"d-flex\" :title=\"data.type\">\n <span v-html=\"htmlText\"></span><br>\n </div>\n </template>\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button tabindex=\"-1\" 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 <div class=\"form-control-static\" v-if=\"!visible\">\n <span class=\"small text-muted\"><em>{{ $t('firefly.first_split_decides') }}</em></span>\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 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 account: this.value,\n accountName: '',\n selectedAccountTrigger: false,\n }\n },\n created() {\n this.createInitialSet();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDestinationAllowedTypes',\n 'setSourceAllowedTypes'\n ],\n ),\n getACURL: function (types, query) {\n return './api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;\n },\n clearAccount: function () {\n this.accounts = this.initialSet;\n this.account = {name: '', type: 'no_type', id: null, currency_id: null, currency_code: null, currency_symbol: null};\n this.accountName = '';\n },\n lookupAccount: debounce(function () {\n //console.log('In lookupAccount()');\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.accountName))\n .then(response => {\n //console.log('Got a response!');\n this.accounts = response.data;\n //console.log(response.data);\n })\n }, 300),\n\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 this.accounts = response.data;\n this.initialSet = response.data;\n });\n }\n },\n watch: {\n selectedAccount: function (value) {\n //console.log('Emit on selected account');\n this.selectedAccountTrigger = true;\n this.account = value;\n this.$emit(this.emitAccountId, value.id);\n this.$emit(this.emitAccountType, value.type);\n this.$emit(this.emitAccountName, value.name);\n this.$emit(this.emitAccountCurrencyId, value.currency_id);\n this.$emit(this.emitAccountCurrencyCode, value.currency_code);\n this.$emit(this.emitAccountCurrencySymbol, value.currency_symbol);\n //this.$emit(this.emitAccount, value);\n this.accountName = this.account.name_with_balance;\n\n // call method to set what the opposing accounts should be.\n // and what the\n\n },\n accountName: function (value) {\n if (false === this.selectedAccountTrigger) {\n console.log('Save to change name!');\n this.$emit(this.emitAccountId, null);\n this.$emit(this.emitAccountType, null);\n this.$emit(this.emitAccountName, value);\n this.$emit(this.emitAccountCurrencyId, null);\n this.$emit(this.emitAccountCurrencyCode, null);\n this.$emit(this.emitAccountCurrencySymbol, null);\n //this.$emit(this.emitAccount, {name: value, type: null, id: null, currency_id: null, currency_code: null, currency_symbol: null});\n // also reset local account thing, but dont be weird about it\n this.accountTrigger = false;\n this.account = {name: value, type: null, id: null, currency_id: null, currency_code: null, currency_symbol: null};\n\n }\n this.selectedAccountTrigger = false;\n },\n account: 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 value: function (value) {\n console.log(this.direction + ' account overruled by external forces.');\n this.account = value;\n this.selectedAccountTrigger = true;\n this.accountName = value.name;\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'sourceAllowedTypes',\n 'destinationAllowedTypes',\n 'allowedOpposingTypes'\n ]),\n accountKey: {\n get() {\n return 'source' === this.direction ? 'source_account' : 'destination_account';\n }\n },\n emitAccountId: {\n get() {\n return 'set-' + this.direction + '-account-id';\n }\n },\n emitAccount: {\n get() {\n return 'set-' + this.direction + '-account';\n }\n },\n emitAccountName: {\n get() {\n return 'set-' + this.direction + '-account-name';\n }\n },\n emitAccountType: {\n get() {\n return 'set-' + this.direction + '-account-type';\n }\n },\n emitAccountCurrencyId: {\n get() {\n return 'set-' + this.direction + '-account-currency-id';\n }\n },\n emitAccountCurrencyCode: {\n get() {\n return 'set-' + this.direction + '-account-currency-code';\n }\n },\n emitAccountCurrencySymbol: {\n get() {\n return 'set-' + this.direction + '-account-currency-symbol';\n }\n },\n\n visible: {\n get() {\n // index 0 is always visible:\n if (0 === this.index) {\n return true;\n }\n if ('source' === this.direction) {\n return 'any' === this.transactionType || 'Deposit' === this.transactionType\n }\n if ('destination' === this.direction) {\n return 'any' === this.transactionType || 'Withdrawal' === this.transactionType;\n }\n return false;\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!./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=0a3e35ba&\"\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 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\"},[(_vm.visible)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[(0 === this.index)?_c('span',[_vm._v(_vm._s(_vm.$t('firefly.' + this.direction + '_account')))]):_vm._e(),_vm._v(\" \"),(this.index > 0)?_c('span',{staticClass:\"text-warning\"},[_vm._v(_vm._s(_vm.$t('firefly.first_split_overrules_' + this.direction)))]):_vm._e()]):_vm._e(),_vm._v(\" \"),(!_vm.visible)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \\n \")]):_vm._e(),_vm._v(\" \"),(_vm.visible)?_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.' + _vm.direction + '_account')},on:{\"input\":_vm.lookupAccount,\"hit\":function($event){_vm.selectedAccount = $event}},scopedSlots:_vm._u([{key:\"suggestion\",fn:function(ref){\nvar data = ref.data;\nvar htmlText = ref.htmlText;\nreturn [_c('div',{staticClass:\"d-flex\",attrs:{\"title\":data.type}},[_c('span',{domProps:{\"innerHTML\":_vm._s(htmlText)}}),_c('br')])]}}],null,false,1423807661),model:{value:(_vm.accountName),callback:function ($$v) {_vm.accountName=$$v},expression:\"accountName\"}},[_vm._v(\" \"),_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"},on:{\"click\":_vm.clearAccount}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2):_vm._e(),_vm._v(\" \"),(!_vm.visible)?_c('div',{staticClass:\"form-control-static\"},[_c('span',{staticClass:\"small text-muted\"},[_c('em',[_vm._v(_vm._s(_vm.$t('firefly.first_split_decides')))])])]):_vm._e(),_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\"> </span>\n </div>\n <div class=\"btn-group d-flex\">\n <button class=\"btn btn-light\" @click=\"switchAccounts\">↔</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 this.$emit('switch-accounts', this.index);\n }\n },\n computed: {\n ...mapGetters(['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=2d362d12&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 \"2d362d12\",\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 }","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&\"","<!--\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\" v-if=\"currencySymbol\">\n <div class=\"input-group-text\">{{ currencySymbol }}</div>\n </div>\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=\"transactionAmount\"\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\nexport default {\n name: \"TransactionAmount\",\n props: [\n 'index', 'errors', 'amount', 'transactionType',\n 'sourceCurrencySymbol',\n 'destinationCurrencySymbol',\n ],\n data() {\n return {\n transactionAmount: this.amount,\n currencySymbol: null,\n srcCurrencySymbol: this.sourceCurrencySymbol,\n dstCurrencySymbol: this.destinationCurrencySymbol,\n }\n },\n watch: {\n transactionAmount: function (value) {\n this.$emit('set-amount', value);\n },\n amount: function(value) {\n this.transactionAmount = value;\n },\n sourceCurrencySymbol: function (value) {\n this.srcCurrencySymbol = value;\n },\n destinationCurrencySymbol: function (value) {\n this.dstCurrencySymbol = value;\n },\n\n transactionType: function(value) {\n switch (value) {\n case 'Transfer':\n case 'Withdrawal':\n this.currencySymbol =this.srcCurrencySymbol;\n break;\n case 'Deposit':\n this.currencySymbol =this.dstCurrencySymbol;\n }\n },\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionAmount.vue?vue&type=template&id=71a072b0&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 \"71a072b0\",\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\"},[(_vm.currencySymbol)?_c('div',{staticClass:\"input-group-prepend\"},[_c('div',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.currencySymbol))])]):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.transactionAmount),expression:\"transactionAmount\"}],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.transactionAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.transactionAmount=$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 }","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&\"","<!--\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\" v-if=\"isVisible\">\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 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>\nexport default {\n name: \"TransactionForeignAmount\",\n props: [\n 'index',\n 'errors',\n 'transactionType',\n 'sourceCurrencyId',\n 'destinationCurrencyId'\n ],\n data() {\n return {\n amount: ''\n // currencySymbol: '',\n // allCurrencies: [],\n // selectableCurrencies: [],\n }\n },\n watch: {\n amount: function(value) {\n this.$emit('set-foreign-amount', value);\n }\n },\n computed: {\n isVisible: {\n get() {\n return !('Transfer' === this.transactionType && this.sourceCurrencyId === this.destinationCurrencyId);\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionForeignAmount.vue?vue&type=template&id=1439811f&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 \"1439811f\",\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.isVisible)?_c('div',{staticClass:\"form-group\"},[_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\",\"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()]):_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!./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&\"","<!--\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=\"isVisible\">\n <div class=\"text-xs\"> </div>\n <div class=\"input-group\">\n <select name=\"foreign_currency_id[]\" v-model=\"selectedCurrency\" 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\nexport default {\n name: \"TransactionForeignCurrency\",\n props: [\n 'index',\n 'transactionType',\n 'sourceCurrencyId',\n 'destinationCurrencyId',\n 'selectedCurrencyId'\n ],\n data() {\n return {\n selectedCurrency: 0,\n allCurrencies: [],\n selectableCurrencies: [],\n dstCurrencyId: this.destinationCurrencyId,\n srcCurrencyId: this.sourceCurrencyId,\n lockedCurrency: 0,\n }\n },\n watch: {\n sourceCurrencyId: function (value) {\n this.srcCurrencyId = value;\n },\n destinationCurrencyId: function (value) {\n this.dstCurrencyId = value;\n },\n selectedCurrency: function(value) {\n this.$emit('set-foreign-currency-id', value);\n },\n transactionType: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === value) {\n this.lockedCurrency = this.dstCurrencyId;\n this.selectedCurrency = this.dstCurrencyId;\n }\n this.filterCurrencies();\n },\n },\n created: function () {\n this.getAllCurrencies();\n },\n methods: {\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.selectedCurrency = current.id;\n }\n }\n }\n return;\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 this.selectableCurrencies.push(current);\n }\n }\n }\n },\n computed: {\n isVisible: function () {\n return !('Transfer' === this.transactionType && this.srcCurrencyId === this.dstCurrencyId);\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionForeignCurrency.vue?vue&type=template&id=5af5a995&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 \"5af5a995\",\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.isVisible)?_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.selectedCurrency),expression:\"selectedCurrency\"}],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.selectedCurrency=$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 }","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&\"","<!--\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 availableFields\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"enabled && isDateField(name)\">\n {{ $t('form.' + name) }}\n </div>\n <div class=\"input-group\" v-if=\"enabled && isDateField(name)\">\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>\nexport default {\n name: \"TransactionCustomDates\",\n props: [\n 'index',\n 'errors',\n 'customFields',\n 'interestDate',\n 'bookDate',\n 'processDate',\n 'dueDate',\n 'paymentDate',\n 'invoiceDate'\n ],\n data() {\n return {\n dateFields: ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date'],\n availableFields: this.customFields,\n dates: {\n interest_date: this.interestDate,\n book_date: this.bookDate,\n process_date: this.processDate,\n due_date: this.dueDate,\n payment_date: this.paymentDate,\n invoice_date: this.invoiceDate,\n }\n ,\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n }\n },\n methods: {\n isDateField: function (name) {\n return this.dateFields.includes(name)\n },\n getFieldValue(field) {\n return this.dates[field] ?? '';\n },\n setFieldValue(event, field) {\n this.$emit('set-custom-date', { field: field, date: event.target.value});\n },\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionCustomDates.vue?vue&type=template&id=893a79ba&\"\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 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',_vm._l((_vm.availableFields),function(enabled,name){return _c('div',{staticClass:\"form-group\"},[(enabled && _vm.isDateField(name))?_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 && _vm.isDateField(name))?_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 }","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&\"","<!--\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=\"category\"\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 tabindex=\"-1\" 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 VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nexport default {\n props: ['value', 'index', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionCategory\",\n data() {\n return {\n categories: [],\n initialSet: [],\n category: this.value\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 clearCategory: function () {\n this.category = 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 category: function (value) {\n this.$emit('set-category', value);\n }\n },\n computed: {\n selectedCategory: {\n get() {\n return this.categories[this.index].name;\n },\n set(value) {\n this.category = value.name;\n }\n }\n }\n}\n</script>","import { render, staticRenderFns } from \"./TransactionCategory.vue?vue&type=template&id=f0fe5ad4&\"\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.category),callback:function ($$v) {_vm.category=$$v},expression:\"category\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"bill\"\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>\nexport default {\n props: ['value', 'index', 'errors'],\n name: \"TransactionBill\",\n data() {\n return {\n billList: [],\n bill: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 bill: function (value) {\n this.$emit('set-bill', value);\n }\n },\n}\n</script>\n\n","import { render, staticRenderFns } from \"./TransactionBill.vue?vue&type=template&id=44e02d44&\"\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.bill),expression:\"bill\"}],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.bill=$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 }","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&\"","<!--\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 VueTagsInput from \"@johmun/vue-tags-input\";\nimport axios from \"axios\";\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 tagList: this.value\n };\n },\n watch: {\n 'currentTag': 'initItems',\n tagList: function (value) {\n this.$emit('set-tags', value);\n this.updateTags = false;\n this.tags = value;\n },\n tags: function (value) {\n if (this.updateTags) {\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.tagList = shortList;\n }\n this.updateTags = true;\n }\n },\n methods: {\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 { render, staticRenderFns } from \"./TransactionTags.vue?vue&type=template&id=233f0e62&\"\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 }","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&\"","<!--\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=\"piggy_bank_id\"\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\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionPiggyBank\",\n data() {\n return {\n piggyList: [],\n piggy_bank_id: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 piggy_bank_id: function (value) {\n this.$emit('set-piggy-bank', value);\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionPiggyBank.vue?vue&type=template&id=00b893ae&\"\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.piggy_bank_id),expression:\"piggy_bank_id\"}],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.piggy_bank_id=$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 }","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&\"","<!--\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\" v-if=\"showField\">\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=\"reference\"\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 tabindex=\"-1\" 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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionInternalReference\",\n data() {\n return {\n reference: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('internal_reference' in this.availableFields) {\n return this.availableFields.internal_reference;\n }\n return false;\n }\n },\n methods: {\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n reference: function (value) {\n this.$emit('set-internal-reference', value);\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionInternalReference.vue?vue&type=template&id=f6c7fdc8&\"\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 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 (_vm.showField)?_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.reference),expression:\"reference\"}],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.reference)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.reference=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\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!./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&\"","<!--\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\" v-if=\"showField\">\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=\"url\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button tabindex=\"-1\" 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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionExternalUrl\",\n data() {\n return {\n url: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('external_uri' in this.availableFields) {\n return this.availableFields.external_uri;\n }\n return false;\n }\n },\n methods: {\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n url: function (value) {\n this.$emit('set-external-url', value);\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionExternalUrl.vue?vue&type=template&id=630feb99&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 \"630feb99\",\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.showField)?_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.url),expression:\"url\"}],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.url)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\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!./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&\"","<!--\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\" v-if=\"showField\">\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=\"notes\"\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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionNotes\",\n data() {\n return {\n notes: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('notes' in this.availableFields) {\n return this.availableFields.notes;\n }\n return false;\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n notes: function (value) {\n this.$emit('set-notes', value);\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionNotes.vue?vue&type=template&id=dca081c4&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 \"dca081c4\",\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.showField)?_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.notes),expression:\"notes\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"placeholder\":_vm.$t('firefly.notes')},domProps:{\"value\":(_vm.notes)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.notes=$event.target.value}}})])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\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 v-if=\"showField\">\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=\"links.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=\"links.length > 0\">\n <li class=\"list-group-item\" v-for=\"transaction in links\">\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 tabindex=\"-1\" href=\"#\" class=\"btn btn-xs btn-default\"><i class=\"far fa-edit\"></i></a>\n <a tabindex=\"-1\" 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=\"links.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\">×</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 →\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>\nconst lodashClonedeep = require('lodash.clonedeep');\n// TODO error handling\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionLinks\",\n data() {\n return {\n searchResults: [],\n include: [],\n locale: 'en-US',\n linkTypes: [],\n query: '',\n searching: false,\n links: [],\n availableFields: this.customFields\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.links = lodashClonedeep(this.value);\n this.getLinkTypes();\n },\n computed: {\n showField: function () {\n if ('links' in this.availableFields) {\n return this.availableFields.links;\n }\n return false;\n }\n },\n watch: {\n links: function (value) {\n // TODO\n this.$emit('set-links', lodashClonedeep(value));\n //this.updateField({index: this.index, field: 'links', value: lodashClonedeep(value)});\n },\n customFields: function (value) {\n this.availableFields = 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 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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (parseInt(current.transaction_journal_id) === journalId) {\n this.links[i].link_type_id = linkTypeId;\n }\n }\n }\n },\n addToSelected(journal) {\n let result = this.links.find(({transaction_journal_id}) => transaction_journal_id === journal.transaction_journal_id);\n if (typeof result === 'undefined') {\n this.links.push(journal);\n }\n },\n removeFromSelected(journal) {\n for (let i in this.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (current.transaction_journal_id === journal.transaction_journal_id) {\n this.links.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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (current.transaction_journal_id === journalId) {\n return true;\n }\n }\n }\n return false;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./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&\"","import { render, staticRenderFns } from \"./TransactionLinks.vue?vue&type=template&id=6a8de93d&\"\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 (_vm.showField)?_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.links.length === 0)?_c('p',[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.links.length > 0)?_c('ul',{staticClass:\"list-group\"},_vm._l((_vm.links),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.links.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)])])])]):_vm._e()}\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:{\"tabindex\":\"-1\",\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-edit\"})]),_vm._v(\" \"),_c('a',{staticClass:\"btn btn-xs btn-danger\",attrs:{\"tabindex\":\"-1\",\"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\" v-if=\"showField\">\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', 'customFields'],\n data() {\n return {\n availableFields: this.customFields\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n transaction_journal_id: function (value) {\n if (!this.showField) {\n console.log('Field is hidden. Emit event!');\n this.$emit('uploaded-attachments', value);\n return;\n }\n // console.log('transaction_journal_id changed to ' + value);\n // do upload!\n if (0 !== value) {\n this.doUpload();\n }\n }\n },\n computed: {\n showField: function () {\n if ('attachments' in this.availableFields) {\n return this.availableFields.attachments;\n }\n return false;\n }\n },\n methods: {\n doUpload: function () {\n console.log('Now in doUpload() for ' + this.$refs.att.files.length + ' files.');\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 console.log('Uploaded a file. Emit event!');\n // console.log(attachmentResponse);\n theParent.$emit('uploaded-attachments', this.transaction_journal_id);\n });\n });\n }\n }\n fileReader.readAsArrayBuffer(current);\n }\n }\n if (0 === this.$refs.att.files.length) {\n console.log('No files to upload. Emit event!');\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=4957e769&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 \"4957e769\",\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.showField)?_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[]\"}})])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionLocation.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\" v-if=\"showField\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.location') }}\n </div>\n <div style=\"width:100%;height:300px;\">\n <l-map\n style=\"width:100%;height:300px;\"\n :zoom=\"zoom\"\n ref=\"myMap\" @ready=\"prepMap()\"\n :center=\"center\"\n @update:zoom=\"zoomUpdated\"\n @update:center=\"centerUpdated\"\n @update:bounds=\"boundsUpdated\"\n >\n <l-tile-layer :url=\"url\"></l-tile-layer>\n <l-marker :lat-lng=\"marker\" :visible=\"hasMarker\"></l-marker>\n </l-map>\n <span>\n <button class=\"btn btn-default btn-xs\" @click=\"clearLocation\">{{ $t('firefly.clear_location') }}</button>\n </span>\n </div>\n <p> </p>\n </div>\n</template>\n\n<script>\n\n// If you need to reference 'L', such as in 'L.icon', then be sure to\n// explicitly import 'leaflet' into your component\n// import L from 'leaflet';\nimport {LMap, LMarker, LTileLayer} from 'vue2-leaflet';\nimport 'leaflet/dist/leaflet.css';\n\nimport L from 'leaflet';\n\ndelete L.Icon.Default.prototype._getIconUrl;\n\nL.Icon.Default.mergeOptions({\n iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),\n iconUrl: require('leaflet/dist/images/marker-icon.png'),\n shadowUrl: require('leaflet/dist/images/marker-shadow.png')\n });\n\nexport default {\n name: \"TransactionLocation\",\n props: ['index', 'value', 'errors', 'customFields'],\n components: {\n LMap,\n LTileLayer,\n LMarker,\n },\n created() {\n axios.get('./api/v1/configuration/static/firefly.default_location').then(response => {\n this.zoom = parseInt(response.data['firefly.default_location'].zoom_level);\n this.center =\n [\n parseFloat(response.data['firefly.default_location'].latitude),\n parseFloat(response.data['firefly.default_location'].longitude),\n ]\n ;\n });\n },\n data() {\n return {\n availableFields: this.customFields,\n url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n zoom: 3,\n center: [0, 0],\n bounds: null,\n map: null,\n hasMarker: false,\n marker: [0, 0],\n }\n },\n methods: {\n prepMap: function () {\n this.map = this.$refs.myMap.mapObject;\n this.map.on('contextmenu', this.setObjectLocation);\n this.map.on('zoomend', this.saveZoomLevel);\n },\n setObjectLocation: function (event) {\n this.marker = [event.latlng.lat, event.latlng.lng];\n this.hasMarker = true;\n this.emitEvent();\n },\n saveZoomLevel: function () {\n this.emitEvent();\n },\n clearLocation: function () {\n this.hasMarker = false;\n this.emitEvent();\n },\n emitEvent() {\n this.$emit('set-marker-location', {zoomLevel: this.zoom, lat: this.marker[0], lng: this.marker[1], hasMarker: this.hasMarker});\n },\n zoomUpdated(zoom) {\n this.zoom = zoom;\n },\n centerUpdated(center) {\n this.center = center;\n },\n boundsUpdated(bounds) {\n this.bounds = bounds;\n }\n },\n computed: {\n showField: function () {\n if ('location' in this.availableFields) {\n return this.availableFields.location;\n }\n return false;\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = 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!./TransactionLocation.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!./TransactionLocation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionLocation.vue?vue&type=template&id=6cf6c869&scoped=true&\"\nimport script from \"./TransactionLocation.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionLocation.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 \"6cf6c869\",\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.showField)?_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.location'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"300px\"}},[_c('l-map',{ref:\"myMap\",staticStyle:{\"width\":\"100%\",\"height\":\"300px\"},attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center},on:{\"ready\":function($event){return _vm.prepMap()},\"update:zoom\":_vm.zoomUpdated,\"update:center\":_vm.centerUpdated,\"update:bounds\":_vm.boundsUpdated}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url}}),_vm._v(\" \"),_c('l-marker',{attrs:{\"lat-lng\":_vm.marker,\"visible\":_vm.hasMarker}})],1),_vm._v(\" \"),_c('span',[_c('button',{staticClass:\"btn btn-default btn-xs\",on:{\"click\":_vm.clearLocation}},[_vm._v(_vm._s(_vm.$t('firefly.clear_location')))])])],1),_vm._v(\" \"),_c('p',[_vm._v(\" \")])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - SplitForm.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=\"'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=\"count > 1\">({{ index + 1 }} / {{ count }}) </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-on=\"$listeners\"\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-on=\"$listeners\"\n v-model=\"sourceAccount\"\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 v-if=\"0 === index\"\n v-on=\"$listeners\"\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-on=\"$listeners\"\n v-model=\"destinationAccount\"\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\n :index=\"index\"\n :errors=\"transaction.errors.amount\"\n :amount=\"transaction.amount\"\n :transaction-type=\"this.transactionType\"\n :source-currency-symbol=\"this.transaction.source_account_currency_symbol\"\n :destination-currency-symbol=\"this.transaction.destination_account_currency_symbol\"\n v-on=\"$listeners\"\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\n v-on=\"$listeners\"\n :transaction-type=\"this.transactionType\"\n :source-currency-id=\"this.transaction.source_account_currency_id\"\n :destination-currency-id=\"this.transaction.destination_account_currency_id\"\n :selected-currency-id=\"this.transaction.foreign_currency_id\"\n :index=\"index\"\n />\n </div>\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <!--\n The reason that TransactionAmount gets the symbols and\n TransactionForeignAmount gets the ID's of the currencies is\n because ultimately TransactionAmount doesn't decide which\n currency id is submitted to Firefly III.\n -->\n <TransactionForeignAmount\n :index=\"index\"\n v-on=\"$listeners\"\n :errors=\"transaction.errors.foreign_amount\"\n :transaction-type=\"this.transactionType\"\n :source-currency-id=\"this.transaction.source_account_currency_id\"\n :destination-currency-id=\"this.transaction.destination_account_currency_id\"\n :selected-currency-id=\"this.transaction.foreign_currency_id\"\n />\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 v-on=\"$listeners\"\n :date=\"splitDate\"\n :time=\"splitTime\"\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\n :index=\"index\"\n v-on=\"$listeners\"\n :custom-fields.sync=\"customFields\"\n :errors=\"transaction.errors.custom_dates\"\n :interest-date=\"transaction.interest_date\"\n :book-date=\"transaction.book_date\"\n :process-date=\"transaction.process_date\"\n :due-date=\"transaction.due_date\"\n :payment-date=\"transaction.payment_date\"\n :invoice-date=\"transaction.invoice_date\"\n />\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=\"count > 1\">({{ index + 1 }} / {{ count }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <!-- meta -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <TransactionBudget\n v-on=\"$listeners\"\n v-model=\"transaction.budget_id\"\n :index=\"index\"\n :errors=\"transaction.errors.budget\"\n v-if=\"!('Transfer' === transactionType || 'Deposit' === transactionType)\"\n />\n <TransactionCategory\n v-on=\"$listeners\"\n v-model=\"transaction.category\"\n :index=\"index\"\n :errors=\"transaction.errors.category\"\n />\n </div>\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <TransactionBill\n v-on=\"$listeners\"\n v-model=\"transaction.bill_id\"\n :index=\"index\"\n :errors=\"transaction.errors.bill\"\n v-if=\"!('Transfer' === transactionType || 'Deposit' === transactionType)\"\n />\n <TransactionTags\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.tags\"\n :errors=\"transaction.errors.tags\"\n />\n <TransactionPiggyBank\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.piggy_bank_id\"\n :errors=\"transaction.errors.piggy_bank\"\n v-if=\"!('Withdrawal' === transactionType || 'Deposit' === transactionType)\"\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\" v-if=\"hasMetaFields\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_extra') }}\n <span v-if=\"count > 1\">({{ index + 1 }} / {{ count }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n\n <TransactionInternalReference\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.internal_reference\"\n :errors=\"transaction.errors.internal_reference\"\n :custom-fields.sync=\"customFields\"\n />\n\n <TransactionExternalUrl\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.external_url\"\n :errors=\"transaction.errors.external_url\"\n :custom-fields.sync=\"customFields\"\n />\n <TransactionNotes\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.notes\"\n :custom-fields.sync=\"customFields\"\n />\n </div>\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n\n <TransactionAttachments\n :index=\"index\"\n ref=\"attachments\"\n v-on=\"$listeners\"\n :transaction_journal_id=\"transaction.transaction_journal_id\"\n :submitted_transaction=\"submittedTransaction\"\n v-model=\"transaction.attachments\"\n :custom-fields.sync=\"customFields\"\n />\n <TransactionLocation\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.location\"\n :custom-fields.sync=\"customFields\"\n />\n\n <TransactionLinks\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.links\"\n :custom-fields.sync=\"customFields\"\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</template>\n\n<script>\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 SplitPills from \"./SplitPills\";\nimport {createNamespacedHelpers} from \"vuex\";\nimport TransactionLocation from \"./TransactionLocation\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"SplitForm\",\n props: [\n 'transaction',\n 'split',\n 'count',\n 'customFields', // for custom transaction form fields.\n 'index',\n 'submittedTransaction' // need to know if transaction is submitted.\n ],\n // TODO get rid of mapped getters.\n computed: {\n ...mapGetters(['transactionType', 'date', 'time']),\n splitDate: function () {\n return this.date;\n },\n splitTime: function () {\n return this.time;\n },\n sourceAccount: function () {\n return {\n id: this.transaction.source_account_id,\n name: this.transaction.source_account_name,\n type: this.transaction.source_account_type,\n };\n },\n destinationAccount: function () {\n return {\n id: this.transaction.destination_account_id,\n name: this.transaction.destination_account_name,\n type: this.transaction.destination_account_type,\n };\n },\n hasMetaFields: function () {\n let requiredFields = [\n 'internal_reference',\n 'notes',\n 'attachments',\n 'external_uri',\n 'location',\n 'links',\n ];\n for (let field in this.customFields) {\n if (this.customFields.hasOwnProperty(field)) {\n if (requiredFields.includes(field)) {\n if (true === this.customFields[field]) {\n return true;\n }\n }\n }\n }\n return false;\n }\n },\n components: {\n TransactionLocation,\n SplitPills,\n TransactionAttachments,\n TransactionNotes,\n TransactionExternalUrl,\n TransactionInternalReference,\n TransactionPiggyBank,\n TransactionTags,\n TransactionLinks,\n TransactionBill,\n TransactionCategory,\n TransactionCustomDates,\n TransactionForeignCurrency,\n TransactionForeignAmount,\n TransactionAmount,\n SwitchAccount,\n TransactionAccount,\n TransactionBudget,\n TransactionDescription,\n TransactionDate\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!./SplitForm.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!./SplitForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SplitForm.vue?vue&type=template&id=bf619d56&\"\nimport script from \"./SplitForm.vue?vue&type=script&lang=js&\"\nexport * from \"./SplitForm.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',{class:'tab-pane' + (0===_vm.index ? ' active' : ''),attrs:{\"id\":'split_' + _vm.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.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionDescription',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.description},model:{value:(_vm.transaction.description),callback:function ($$v) {_vm.$set(_vm.transaction, \"description\", $$v)},expression:\"transaction.description\"}},_vm.$listeners))],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',_vm._g({attrs:{\"direction\":\"source\",\"index\":_vm.index,\"errors\":_vm.transaction.errors.source},model:{value:(_vm.sourceAccount),callback:function ($$v) {_vm.sourceAccount=$$v},expression:\"sourceAccount\"}},_vm.$listeners))],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\"},[(0 === _vm.index)?_c('SwitchAccount',_vm._g({attrs:{\"index\":_vm.index}},_vm.$listeners)):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAccount',_vm._g({attrs:{\"direction\":\"destination\",\"index\":_vm.index,\"errors\":_vm.transaction.errors.destination},model:{value:(_vm.destinationAccount),callback:function ($$v) {_vm.destinationAccount=$$v},expression:\"destinationAccount\"}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.amount,\"amount\":_vm.transaction.amount,\"transaction-type\":this.transactionType,\"source-currency-symbol\":this.transaction.source_account_currency_symbol,\"destination-currency-symbol\":this.transaction.destination_account_currency_symbol}},_vm.$listeners))],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',_vm._g({attrs:{\"transaction-type\":this.transactionType,\"source-currency-id\":this.transaction.source_account_currency_id,\"destination-currency-id\":this.transaction.destination_account_currency_id,\"selected-currency-id\":this.transaction.foreign_currency_id,\"index\":_vm.index}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionForeignAmount',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.foreign_amount,\"transaction-type\":this.transactionType,\"source-currency-id\":this.transaction.source_account_currency_id,\"destination-currency-id\":this.transaction.destination_account_currency_id,\"selected-currency-id\":this.transaction.foreign_currency_id}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"date\":_vm.splitDate,\"time\":_vm.splitTime,\"errors\":_vm.transaction.errors.date}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"custom-fields\":_vm.customFields,\"errors\":_vm.transaction.errors.custom_dates,\"interest-date\":_vm.transaction.interest_date,\"book-date\":_vm.transaction.book_date,\"process-date\":_vm.transaction.process_date,\"due-date\":_vm.transaction.due_date,\"payment-date\":_vm.transaction.payment_date,\"invoice-date\":_vm.transaction.invoice_date},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}}},_vm.$listeners))],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.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(!('Transfer' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionBudget',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.budget},model:{value:(_vm.transaction.budget_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"budget_id\", $$v)},expression:\"transaction.budget_id\"}},_vm.$listeners)):_vm._e(),_vm._v(\" \"),_c('TransactionCategory',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.category},model:{value:(_vm.transaction.category),callback:function ($$v) {_vm.$set(_vm.transaction, \"category\", $$v)},expression:\"transaction.category\"}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(!('Transfer' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionBill',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.bill},model:{value:(_vm.transaction.bill_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"bill_id\", $$v)},expression:\"transaction.bill_id\"}},_vm.$listeners)):_vm._e(),_vm._v(\" \"),_c('TransactionTags',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.tags},model:{value:(_vm.transaction.tags),callback:function ($$v) {_vm.$set(_vm.transaction, \"tags\", $$v)},expression:\"transaction.tags\"}},_vm.$listeners)),_vm._v(\" \"),(!('Withdrawal' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionPiggyBank',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.piggy_bank},model:{value:(_vm.transaction.piggy_bank_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"piggy_bank_id\", $$v)},expression:\"transaction.piggy_bank_id\"}},_vm.$listeners)):_vm._e()],1)])])])])]),_vm._v(\" \"),(_vm.hasMetaFields)?_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_extra'))+\"\\n \"),(_vm.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionInternalReference',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.internal_reference,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.internal_reference),callback:function ($$v) {_vm.$set(_vm.transaction, \"internal_reference\", $$v)},expression:\"transaction.internal_reference\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionExternalUrl',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.external_url,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.external_url),callback:function ($$v) {_vm.$set(_vm.transaction, \"external_url\", $$v)},expression:\"transaction.external_url\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionNotes',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.notes,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.notes),callback:function ($$v) {_vm.$set(_vm.transaction, \"notes\", $$v)},expression:\"transaction.notes\"}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAttachments',_vm._g({ref:\"attachments\",attrs:{\"index\":_vm.index,\"transaction_journal_id\":_vm.transaction.transaction_journal_id,\"submitted_transaction\":_vm.submittedTransaction,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.attachments),callback:function ($$v) {_vm.$set(_vm.transaction, \"attachments\", $$v)},expression:\"transaction.attachments\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionLocation',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.location,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.notes),callback:function ($$v) {_vm.$set(_vm.transaction, \"notes\", $$v)},expression:\"transaction.notes\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionLinks',_vm._g({attrs:{\"index\":_vm.index,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.links),callback:function ($$v) {_vm.$set(_vm.transaction, \"links\", $$v)},expression:\"transaction.links\"}},_vm.$listeners))],1)])])])])]):_vm._e()])}\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 <alert :message=\"errorMessage\" type=\"danger\"/>\n <alert :message=\"successMessage\" type=\"success\"/>\n <SplitPills :transactions=\"transactions\"/>\n <div class=\"tab-content\">\n <SplitForm\n v-for=\"(transaction, index) in this.transactions\"\n v-bind:key=\"index\"\n :transaction=\"transaction\"\n :index=\"index\"\n :count=\"transactions.length\"\n :custom-fields=\"customFields\"\n :submitted-transaction=\"submittedTransaction\"\n v-on:uploaded-attachments=\"uploadedAttachment($event)\"\n v-on:set-description=\"storeDescription(index, $event)\"\n v-on:set-marker-location=\"storeLocation(index, $event)\"\n v-on:set-source-account-id=\"storeAccountValue(index, 'source', 'id', $event)\"\n v-on:set-source-account-name=\"storeAccountValue(index, 'source', 'name', $event)\"\n v-on:set-source-account-type=\"storeAccountValue(index, 'source', 'type', $event)\"\n v-on:set-source-account-currency-id=\"storeAccountValue(index, 'source', 'currency_id', $event)\"\n v-on:set-source-account-currency-code=\"storeAccountValue(index, 'source', 'currency_code', $event)\"\n v-on:set-source-account-currency-symbol=\"storeAccountValue(index, 'source', 'currency_symbol', $event)\"\n v-on:set-destination-account-id=\"storeAccountValue(index, 'destination', 'id', $event)\"\n v-on:set-destination-account-name=\"storeAccountValue(index, 'destination', 'name', $event)\"\n v-on:set-destination-account-type=\"storeAccountValue(index, 'destination', 'type', $event)\"\n v-on:set-destination-account-currency-id=\"storeAccountValue(index, 'destination', 'currency_id', $event)\"\n v-on:set-destination-account-currency-code=\"storeAccountValue(index, 'destination', 'currency_code', $event)\"\n v-on:set-destination-account-currency-symbol=\"storeAccountValue(index, 'destination', 'currency_symbol', $event)\"\n v-on:switch-accounts=\"switchAccounts($event)\"\n v-on:set-amount=\"storeAmount(index, $event)\"\n v-on:set-foreign-currency-id=\"storeForeignCurrencyId(index, $event)\"\n v-on:set-foreign-amount=\"storeForeignAmount(index, $event)\"\n v-on:set-date=\"storeDate($event)\"\n v-on:set-time=\"storeTime($event)\"\n v-on:set-custom-date=\"storeCustomDate(index, $event)\"\n v-on:set-budget=\"storeBudget(index, $event)\"\n v-on:set-category=\"storeCategory(index, $event)\"\n v-on:set-bill=\"storeBill(index, $event)\"\n v-on:set-tags=\"storeTags(index, $event)\"\n v-on:set-piggy-bank=\"storePiggyBank(index, $event)\"\n v-on:set-internal-reference=\"storeInternalReference(index, $event)\"\n v-on:set-external-url=\"storeExternalUrl(index, $event)\"\n v-on:set-notes=\"storeNotes(index, $event)\"\n v-on:set-links=\"storeLinks(index, $event)\"\n />\n </div>\n\n <div class=\"row\">\n <!-- group title -->\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <!-- buttons -->\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 \n </div>\n <button @click=\"addTransaction\" class=\"btn btn-outline-primary btn-block\"><i class=\"far fa-clone\"></i> {{ $t('firefly.add_another_split') }}\n </button>\n </div>\n <div class=\"col\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n \n </div>\n <button class=\"btn btn-success btn-block\" @click=\"submitTransaction\" :disabled=\"!enableSubmit\">\n <span v-if=\"enableSubmit\"><i class=\"far fa-save\"></i> {{ $t('firefly.store_transaction') }}</span>\n <span v-if=\"!enableSubmit\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n </button>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n \n </div>\n <div class=\"col\">\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"checkbox\" v-model=\"createAnother\" id=\"createAnother\">\n <label class=\"form-check-label\" for=\"createAnother\">\n <span class=\"small\">{{ $t('firefly.create_another') }}</span>\n </label>\n </div>\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"checkbox\" v-model=\"resetFormAfter\" id=\"resetFormAfter\" :disabled=\"!createAnother\">\n <label class=\"form-check-label\" for=\"resetFormAfter\">\n <span class=\"small\">{{ $t('firefly.reset_after') }}</span>\n </label>\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'\nimport Alert from '../partials/Alert';\nimport SplitPills from \"./SplitPills\";\nimport TransactionGroupTitle from \"./TransactionGroupTitle\";\nimport SplitForm from \"./SplitForm\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"Create\",\n components: {\n SplitForm,\n Alert,\n SplitPills,\n TransactionGroupTitle,\n },\n created() {\n this.storeAllowedOpposingTypes();\n this.storeAccountToTransaction();\n this.storeCustomFields();\n this.addTransaction();\n },\n data() {\n return {\n // error or success message\n errorMessage: '',\n successMessage: '',\n\n // custom fields, useful for components:\n customFields: [],\n\n // states for the form (makes sense right)\n enableSubmit: true,\n createAnother: false,\n resetFormAfter: false,\n\n // things the process is done working on (3 phases):\n submittedTransaction: false,\n submittedLinks: false,\n submittedAttachments: false,\n\n // transaction was actually submitted?\n inError: false,\n\n // number of uploaded attachments\n // its an object because we count per transaction journal (which can have multiple attachments)\n // and array doesn't work right.\n submittedAttCount: {},\n\n // errors in the group title:\n groupTitleErrors: [],\n\n // group ID + title once submitted:\n returnedGroupId: 0,\n returnedGroupTitle: '',\n\n // meta data:\n accountToTransaction: {}\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'date',\n 'time',\n 'groupTitle'\n ])\n },\n watch: {\n submittedTransaction: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n },\n submittedLinks: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n },\n submittedAttachments: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n }\n },\n methods: {\n /**\n * Store related mutators used by this component.\n */\n ...mapMutations(\n [\n 'addTransaction',\n 'deleteTransaction',\n 'setAllowedOpposingTypes',\n 'setTransactionError',\n 'setTransactionType',\n 'resetErrors',\n 'updateField',\n 'resetTransactions',\n 'setDate',\n 'setTime'\n ],\n ),\n /**\n * Removes a split from the array.\n */\n removeTransaction: function (index) {\n this.$store.commit('transactions/create/deleteTransaction', {index: index});\n },\n /**\n * This method grabs the users preferred custom transaction fields. It's used when configuring the\n * custom date selects that will be available. It could be something the component does by itself,\n * thereby separating concerns. This is on my list. If it changes to a per-component thing, then\n * it should be done via the create.js Vue store because multiple components are interested in the\n * user's custom transaction fields.\n */\n storeCustomFields: function () {\n axios.get('./api/v1/preferences/transaction_journal_optional_fields').then(response => {\n this.customFields = response.data.data.attributes.data;\n });\n },\n /**\n * Submitting a transaction consists of 3 steps: submitting the transaction, uploading attachments\n * and creating links. Only once all three steps are executed may the message be shown or the user be\n * forwarded.\n */\n finalizeSubmit() {\n console.log('finalizeSubmit (' + this.submittedTransaction + ', ' + this.submittedAttachments + ', ' + this.submittedLinks + ')');\n if (this.submittedTransaction && this.submittedAttachments && this.submittedLinks) {\n console.log('all true');\n console.log('createAnother = ' + this.createAnother);\n console.log('inError = ' + this.inError);\n if (false === this.createAnother && false === this.inError) {\n console.log('redirect');\n window.location.href = (window.previousURL ?? '/') + '?transaction_group_id=' + this.returnedGroupId + '&message=created';\n return;\n }\n\n\n if (false === this.inError) {\n // show message:\n this.errorMessage = '';\n this.successMessage = this.$t('firefly.transaction_stored_link', {ID: this.returnedGroupId, title: this.returnedGroupTitle});\n }\n\n // enable flags:\n this.enableSubmit = true;\n this.submittedTransaction = false;\n this.submittedLinks = false;\n this.submittedAttachments = false;\n this.inError = false;\n\n\n // reset attachments (always do this)\n for (let i in this.transactions) {\n if (this.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (this.transactions.hasOwnProperty(i)) {\n // console.log('Reset attachment #' + i);\n this.updateField({index: i, field: 'transaction_journal_id', value: 0});\n }\n }\n }\n this.submittedAttCount = [];\n\n // reset the form:\n if (this.resetFormAfter) {\n this.resetTransactions();\n // do a short time out?\n setTimeout(() => this.addTransaction(), 50);\n }\n // console.log('Done with finalizeSubmit!');\n // return;\n }\n // console.log('Did nothing in finalizeSubmit');\n },\n /**\n * Actually submit the transaction to Firefly III. This is a fairly complex beast of a thing because multiple things\n * need to happen in the right order.\n */\n submitTransaction: function () {\n console.log('submitTransaction()');\n // disable the submit button:\n this.enableSubmit = false;\n\n // convert the data so its ready to be submitted:\n const url = './api/v1/transactions';\n const data = this.convertData();\n\n console.log('Will submit:');\n console.log(data);\n\n // POST the transaction.\n axios.post(url, data)\n .then(response => {\n console.log('Response is OK!');\n // report the transaction is submitted.\n this.submittedTransaction = true;\n\n // submit links and attachments (can only be done when the transaction is created)\n this.submitTransactionLinks(data, response);\n this.submitAttachments(data, response);\n\n // meanwhile, store the ID and the title in some easy to access variables.\n this.returnedGroupId = parseInt(response.data.data.id);\n this.returnedGroupTitle = null === response.data.data.attributes.group_title ? response.data.data.attributes.transactions[0].description : response.data.data.attributes.group_title;\n // console.log('Group title is now \"' + this.groupTitle + '\"');\n })\n .catch(error => {\n // oh noes Firefly III has something to bitch about.\n this.enableSubmit = true;\n // console.log('enable submit = true');\n // report the transaction is submitted.\n this.submittedTransaction = true;\n // also report attachments and links are submitted:\n this.submittedAttachments = true;\n this.submittedLinks = true;\n\n // but report an error because error:\n this.inError = true;\n this.parseErrors(error.response.data);\n });\n },\n\n /**\n * Submitting transactions means we will give each TransactionAttachment component\n * the ID of the transaction journal (so it works for multiple splits). Each component\n * will then start uploading their transactions (so its a separated concern) and report\n * back to the \"uploadedAttachment\" function below via an event emitter.\n *\n * The ID is set via the store.\n */\n submitAttachments: function (data, response) {\n console.log('submitAttachments()');\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 /**\n * When a attachment component is done uploading it ends up here. We create an object where we count how many\n * attachment components have reported back they're done uploading. Of course if they have nothing to upload\n * they will be pretty fast in reporting they're done.\n *\n * Once the number of components matches the number of splits we know all attachments have been uploaded.\n */\n uploadedAttachment: function (journalId) {\n console.log('Triggered uploadedAttachment(' + journalId + ')');\n let key = 'str' + journalId;\n this.submittedAttCount[key] = 1;\n let count = Object.keys(this.submittedAttCount).length;\n if (count === this.transactions.length) {\n // mark the attachments as stored:\n this.submittedAttachments = true;\n }\n },\n /**\n * Responds to changed location.\n */\n storeLocation: function (index, event) {\n let zoomLevel = event.hasMarker ? event.zoomLevel : null;\n let lat = event.hasMarker ? event.lat : null;\n let lng = event.hasMarker ? event.lng : null;\n this.updateField({index: index, field: 'zoom_level', value: zoomLevel});\n this.updateField({index: index, field: 'latitude', value: lat});\n this.updateField({index: index, field: 'longitude', value: lng});\n },\n /**\n * Responds to changed account.\n */\n storeAccountValue: function (index, direction, field, value) {\n // depending on these account values\n let key = direction + '_account_' + field;\n //console.log('storeAccountValue(' + index + ', \"' + direction + '\", \"' + field + '\", \"' + key + '\") = \"' + value + '\"');\n this.updateField({index: index, field: key, value: value});\n if ('type' === field) {\n this.calculateTransactionType(index);\n }\n },\n storeDescription: function (index, value) {\n this.updateField({field: 'description', index: index, value: value});\n },\n storeForeignCurrencyId: function (index, value) {\n console.log('storeForeignCurrencyId(' + index + ',' + value + ')');\n this.updateField({field: 'foreign_currency_id', index: index, value: value});\n },\n storeAmount: function (index, value) {\n this.updateField({field: 'amount', index: index, value: value});\n },\n storeForeignAmount: function (index, value) {\n this.updateField({field: 'foreign_amount', index: index, value: value});\n },\n storeDate: function (value) {\n this.setDate(value.date)\n },\n storeTime: function (value) {\n this.setTime(value.time)\n },\n storeCustomDate: function (index, payload) {\n this.updateField({field: payload.field, index: index, value: payload.date});\n },\n storeBudget: function (index, value) {\n this.updateField({field: 'budget_id', index: index, value: value});\n },\n storeCategory: function (index, value) {\n this.updateField({field: 'category', index: index, value: value});\n },\n storeBill: function (index, value) {\n this.updateField({field: 'bill_id', index: index, value: value});\n },\n storeTags: function (index, value) {\n this.updateField({field: 'tags', index: index, value: value});\n },\n storePiggyBank: function (index, value) {\n this.updateField({field: 'piggy_bank_id', index: index, value: value});\n },\n storeInternalReference: function (index, value) {\n this.updateField({field: 'internal_reference', index: index, value: value});\n },\n storeExternalUrl: function (index, value) {\n this.updateField({field: 'external_url', index: index, value: value});\n },\n storeNotes: function (index, value) {\n this.updateField({field: 'notes', index: index, value: value});\n },\n storeLinks: function (index, value) {\n this.updateField({field: 'links', index: index, value: value});\n },\n\n /**\n * Calculate the transaction type based on what's currently in the store.\n */\n calculateTransactionType: function (index) {\n //console.log('calculateTransactionType(' + index + ')');\n if (0 === index) {\n let source = this.transactions[0].source_account_type;\n let dest = this.transactions[0].destination_account_type;\n if (null === source || null === dest) {\n //console.log('transactionType any');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n //console.log('calculateTransactionType: either type is NULL so no dice.');\n return;\n }\n if ('' === source || '' === dest) {\n //console.log('transactionType any');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n //console.log('calculateTransactionType: either type is empty so no dice.');\n return;\n }\n // ok so type is set on both:\n let expectedDestinationTypes = this.accountToTransaction[source];\n if ('undefined' !== typeof expectedDestinationTypes) {\n let transactionType = expectedDestinationTypes[dest];\n if ('undefined' !== typeof expectedDestinationTypes[dest]) {\n //console.log('Found a type: ' + transactionType);\n this.setTransactionType(transactionType);\n //this.$store.commit('setTransactionType', transactionType);\n //console.log('calculateTransactionType: ' + source + ' --> ' + dest + ' = ' + transactionType);\n return;\n }\n }\n //console.log('Found no type for ' + source + ' --> ' + dest);\n if ('Asset account' !== source) {\n //console.log('Drop ID from destination.');\n this.updateField({index: 0, field: 'destination_account_id', value: null});\n //console.log('calculateTransactionType: drop ID from destination.');\n // source.id =null\n // context.commit('updateField', {field: 'source_account',index: })\n // context.state.transactions[0].source_account.id = null;\n }\n if ('Asset account' !== dest) {\n //console.log('Drop ID from source.');\n this.updateField({index: 0, field: 'source_account_id', value: null});\n //console.log('calculateTransactionType: drop ID from source.');\n //context.state.transactions[0].destination_account.id = null;\n }\n //console.log('calculateTransactionType: fallback, type to any.');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n }\n },\n /**\n * Submit transaction links.\n */\n submitTransactionLinks(data, response) {\n //console.log('submitTransactionLinks()');\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.submittedLinks = true;\n return;\n }\n Promise.all(promises).then(function () {\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 this.successMessage = '';\n this.errorMessage = this.$t('firefly.errors_submission');\n if (typeof errors.errors === 'undefined') {\n this.successMessage = '';\n this.errorMessage = errors.message;\n }\n\n let payload;\n //payload = {index: 0, field: 'description', errors: ['Test error index 0']};\n //this.setTransactionError(payload);\n\n //payload = {index: 1, field: 'description', errors: ['Test error index 1']};\n //this.setTransactionError(payload);\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 // console.log('Error index: \"' + key + '\"');\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\n // set error in this object thing.\n // console.log('The errors in key \"' + key + '\" are');\n // console.log(errors.errors[key]);\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 //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 },\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 i in this.transactions) {\n if (this.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n data.transactions.push(this.convertSplit(i, this.transactions[i]));\n }\n }\n if (data.transactions.length > 1) {\n data.group_title = data.transactions[0].description;\n }\n\n // depending on the transaction type for this thing, we need to\n // make sure other splits match the data we submit.\n if (data.transactions.length > 1) {\n // console.log('This is a split!');\n data = this.synchronizeAccounts(data);\n }\n\n return data;\n },\n synchronizeAccounts: function (data) {\n // console.log('synchronizeAccounts: ' + this.transactionType);\n // make sure all splits have whatever is in split 0.\n // since its a transfer we can drop the name and use ID's only.\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n // console.log('now at ' + i);\n\n // for transfers, overrule both the source and the destination:\n if ('Transfer' === this.transactionType) {\n data.transactions[i].source_name = null;\n data.transactions[i].destination_name = null;\n if (i > 0) {\n data.transactions[i].source_id = data.transactions[0].source_id;\n data.transactions[i].destination_id = data.transactions[0].destination_id;\n }\n }\n // for deposits, overrule the destination and ignore the rest.\n if ('Deposit' === this.transactionType) {\n data.transactions[i].destination_name = null;\n if (i > 0) {\n data.transactions[i].destination_id = data.transactions[0].destination_id;\n }\n }\n\n // for withdrawals, overrule the source and ignore the rest.\n if ('Withdrawal' === this.transactionType) {\n data.transactions[i].source_name = null;\n if (i > 0) {\n data.transactions[i].source_id = data.transactions[0].source_id;\n }\n }\n }\n }\n return data;\n\n },\n\n switchAccounts: function (index) {\n console.log('user wants to switch Accounts');\n let origSourceId = this.transactions[index].source_account_id;\n let origSourceName = this.transactions[index].source_account_name;\n let origSourceType = this.transactions[index].source_account_type;\n\n let origDestId = this.transactions[index].destination_account_id;\n let origDestName = this.transactions[index].destination_account_name;\n let origDestType = this.transactions[index].destination_account_type;\n\n this.updateField({index: 0, field: 'source_account_id', value: origDestId});\n this.updateField({index: 0, field: 'source_account_name', value: origDestName});\n this.updateField({index: 0, field: 'source_account_type', value: origDestType});\n\n this.updateField({index: 0, field: 'destination_account_id', value: origSourceId});\n this.updateField({index: 0, field: 'destination_account_name', value: origSourceName});\n this.updateField({index: 0, field: 'destination_account_type', value: origSourceType});\n this.calculateTransactionType(0);\n },\n\n\n /**\n *\n * @param key\n * @param array\n */\n convertSplit: function (key, array) {\n let dateStr = 'invalid';\n if (\n this.time instanceof Date && !isNaN(this.time) &&\n this.date instanceof Date && !isNaN(this.date)\n ) {\n let theDate = new Date(this.date);\n // update time in date object.\n theDate.setHours(this.time.getHours());\n theDate.setMinutes(this.time.getMinutes());\n theDate.setSeconds(this.time.getSeconds());\n dateStr = this.toW3CString(this.date);\n }\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 // location:\n zoom_level: array.zoom_level,\n longitude: array.longitude,\n latitude: array.latitude,\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 && '' !== array.foreign_amount) {\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 // default to source:\n currentSplit.currency_id = array.source_account_currency_id;\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 currentSplit.currency_id = array.destination_account_currency_id;\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 storeAllowedOpposingTypes: function () {\n // take this from API:\n this.setAllowedOpposingTypes(window.allowedOpposingTypes);\n },\n storeAccountToTransaction: function () {\n axios.get('./api/v1/configuration/static/firefly.account_to_transaction')\n .then(response => {\n this.accountToTransaction = response.data['firefly.account_to_transaction'];\n });\n },\n\n },\n\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./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=190d9ddc&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 \"190d9ddc\",\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('alert',{attrs:{\"message\":_vm.errorMessage,\"type\":\"danger\"}}),_vm._v(\" \"),_c('alert',{attrs:{\"message\":_vm.successMessage,\"type\":\"success\"}}),_vm._v(\" \"),_c('SplitPills',{attrs:{\"transactions\":_vm.transactions}}),_vm._v(\" \"),_c('div',{staticClass:\"tab-content\"},_vm._l((this.transactions),function(transaction,index){return _c('SplitForm',{key:index,attrs:{\"transaction\":transaction,\"index\":index,\"count\":_vm.transactions.length,\"custom-fields\":_vm.customFields,\"submitted-transaction\":_vm.submittedTransaction},on:{\"uploaded-attachments\":function($event){return _vm.uploadedAttachment($event)},\"set-description\":function($event){return _vm.storeDescription(index, $event)},\"set-marker-location\":function($event){return _vm.storeLocation(index, $event)},\"set-source-account-id\":function($event){return _vm.storeAccountValue(index, 'source', 'id', $event)},\"set-source-account-name\":function($event){return _vm.storeAccountValue(index, 'source', 'name', $event)},\"set-source-account-type\":function($event){return _vm.storeAccountValue(index, 'source', 'type', $event)},\"set-source-account-currency-id\":function($event){return _vm.storeAccountValue(index, 'source', 'currency_id', $event)},\"set-source-account-currency-code\":function($event){return _vm.storeAccountValue(index, 'source', 'currency_code', $event)},\"set-source-account-currency-symbol\":function($event){return _vm.storeAccountValue(index, 'source', 'currency_symbol', $event)},\"set-destination-account-id\":function($event){return _vm.storeAccountValue(index, 'destination', 'id', $event)},\"set-destination-account-name\":function($event){return _vm.storeAccountValue(index, 'destination', 'name', $event)},\"set-destination-account-type\":function($event){return _vm.storeAccountValue(index, 'destination', 'type', $event)},\"set-destination-account-currency-id\":function($event){return _vm.storeAccountValue(index, 'destination', 'currency_id', $event)},\"set-destination-account-currency-code\":function($event){return _vm.storeAccountValue(index, 'destination', 'currency_code', $event)},\"set-destination-account-currency-symbol\":function($event){return _vm.storeAccountValue(index, 'destination', 'currency_symbol', $event)},\"switch-accounts\":function($event){return _vm.switchAccounts($event)},\"set-amount\":function($event){return _vm.storeAmount(index, $event)},\"set-foreign-currency-id\":function($event){return _vm.storeForeignCurrencyId(index, $event)},\"set-foreign-amount\":function($event){return _vm.storeForeignAmount(index, $event)},\"set-date\":function($event){return _vm.storeDate($event)},\"set-time\":function($event){return _vm.storeTime($event)},\"set-custom-date\":function($event){return _vm.storeCustomDate(index, $event)},\"set-budget\":function($event){return _vm.storeBudget(index, $event)},\"set-category\":function($event){return _vm.storeCategory(index, $event)},\"set-bill\":function($event){return _vm.storeBill(index, $event)},\"set-tags\":function($event){return _vm.storeTags(index, $event)},\"set-piggy-bank\":function($event){return _vm.storePiggyBank(index, $event)},\"set-internal-reference\":function($event){return _vm.storeInternalReference(index, $event)},\"set-external-url\":function($event){return _vm.storeExternalUrl(index, $event)},\"set-notes\":function($event){return _vm.storeNotes(index, $event)},\"set-links\":function($event){return _vm.storeLinks(index, $event)}}})}),1),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(_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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_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-outline-primary btn-block\",on:{\"click\":_vm.addTransaction}},[_c('i',{staticClass:\"far fa-clone\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.add_another_split'))+\"\\n \")])]),_vm._v(\" \"),_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-success btn-block\",attrs:{\"disabled\":!_vm.enableSubmit},on:{\"click\":_vm.submitTransaction}},[(_vm.enableSubmit)?_c('span',[_c('i',{staticClass:\"far fa-save\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.store_transaction')))]):_vm._e(),_vm._v(\" \"),(!_vm.enableSubmit)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"\\n \\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.createAnother),expression:\"createAnother\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"checkbox\",\"id\":\"createAnother\"},domProps:{\"checked\":Array.isArray(_vm.createAnother)?_vm._i(_vm.createAnother,null)>-1:(_vm.createAnother)},on:{\"change\":function($event){var $$a=_vm.createAnother,$$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.createAnother=$$a.concat([$$v]))}else{$$i>-1&&(_vm.createAnother=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.createAnother=$$c}}}}),_vm._v(\" \"),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"createAnother\"}},[_c('span',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.$t('firefly.create_another')))])])]),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.resetFormAfter),expression:\"resetFormAfter\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"checkbox\",\"id\":\"resetFormAfter\",\"disabled\":!_vm.createAnother},domProps:{\"checked\":Array.isArray(_vm.resetFormAfter)?_vm._i(_vm.resetFormAfter,null)>-1:(_vm.resetFormAfter)},on:{\"change\":function($event){var $$a=_vm.resetFormAfter,$$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.resetFormAfter=$$a.concat([$$v]))}else{$$i>-1&&(_vm.resetFormAfter=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.resetFormAfter=$$c}}}}),_vm._v(\" \"),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"resetFormAfter\"}},[_c('span',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.$t('firefly.reset_after')))])])])])])])])])])],1)}\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/partials/Alert.vue?608f","webpack:///src/components/partials/Alert.vue","webpack:///./src/components/partials/Alert.vue","webpack:///./src/components/partials/Alert.vue?dd32","webpack:///./src/components/transactions/SplitPills.vue?bfa9","webpack:///src/components/transactions/SplitPills.vue","webpack:///./src/components/transactions/SplitPills.vue","webpack:///./src/components/transactions/SplitPills.vue?23a1","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?36c2","webpack:///./src/components/transactions/TransactionDescription.vue?e9b4","webpack:///src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue","webpack:///./src/components/transactions/TransactionDescription.vue?7b96","webpack:///./src/components/transactions/TransactionDate.vue?cd54","webpack:///src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue","webpack:///./src/components/transactions/TransactionDate.vue?96cd","webpack:///./src/components/transactions/TransactionBudget.vue?582a","webpack:///src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue","webpack:///./src/components/transactions/TransactionBudget.vue?6de4","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?13f1","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?8f90","webpack:///./src/components/transactions/TransactionAmount.vue?2029","webpack:///src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue","webpack:///./src/components/transactions/TransactionAmount.vue?644d","webpack:///./src/components/transactions/TransactionForeignAmount.vue?a3d5","webpack:///src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue","webpack:///./src/components/transactions/TransactionForeignAmount.vue?71bb","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?7457","webpack:///src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue","webpack:///./src/components/transactions/TransactionForeignCurrency.vue?79b8","webpack:///./src/components/transactions/TransactionCustomDates.vue?a208","webpack:///src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue","webpack:///./src/components/transactions/TransactionCustomDates.vue?a449","webpack:///./src/components/transactions/TransactionCategory.vue?7292","webpack:///src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue","webpack:///./src/components/transactions/TransactionCategory.vue?b212","webpack:///./src/components/transactions/TransactionBill.vue?5529","webpack:///src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue","webpack:///./src/components/transactions/TransactionBill.vue?31a5","webpack:///./src/components/transactions/TransactionTags.vue?0617","webpack:///src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue","webpack:///./src/components/transactions/TransactionTags.vue?0e42","webpack:///./src/components/transactions/TransactionPiggyBank.vue?183b","webpack:///src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue","webpack:///./src/components/transactions/TransactionPiggyBank.vue?6519","webpack:///./src/components/transactions/TransactionInternalReference.vue?111c","webpack:///src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue","webpack:///./src/components/transactions/TransactionInternalReference.vue?d6ff","webpack:///./src/components/transactions/TransactionExternalUrl.vue?1580","webpack:///src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue","webpack:///./src/components/transactions/TransactionExternalUrl.vue?c5fc","webpack:///./src/components/transactions/TransactionNotes.vue?2e0f","webpack:///src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue","webpack:///./src/components/transactions/TransactionNotes.vue?a2f3","webpack:///src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?48a5","webpack:///./src/components/transactions/TransactionLinks.vue","webpack:///./src/components/transactions/TransactionLinks.vue?86d9","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?e36d","webpack:///src/components/transactions/TransactionLocation.vue","webpack:///./src/components/transactions/TransactionLocation.vue?b0f9","webpack:///./src/components/transactions/TransactionLocation.vue","webpack:///./src/components/transactions/TransactionLocation.vue?24a3","webpack:///src/components/transactions/SplitForm.vue","webpack:///./src/components/transactions/SplitForm.vue?f1c3","webpack:///./src/components/transactions/SplitForm.vue","webpack:///./src/components/transactions/SplitForm.vue?8292","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?a12f","webpack:///./src/pages/transactions/create.js"],"names":["content","module","i","options","transform","undefined","locals","exports","push","name","props","_vm","this","_h","$createElement","_c","_self","message","length","class","type","staticClass","attrs","_v","_e","_s","$t","domProps","transactions","_l","transaction","index","description","components","data","descriptions","initialSet","title","value","created","axios","get","getACURL","watch","setGroupTitle","methods","clearDescription","document","getElementsByTagName","href","query","lookupDescription","item","errors","on","model","callback","$$v","expression","slot","error","$emit","localDate","date","localTime","time","computed","dateStr","Date","isNaN","toISOString","split","set","timeStr","getHours","slice","getMinutes","getSeconds","setHours","setMinutes","setSeconds","current","parseInt","parts","directives","rawName","ref","$event","target","composing","budgetList","budget","collectData","getBudgets","parseBudgets","hasOwnProperty","key","test","preventDefault","$$selectedVal","Array","prototype","filter","call","o","selected","map","_value","multiple","id","accounts","accountTypes","selectedAccount","account","accountName","selectedAccountTrigger","createInitialSet","types","join","clearAccount","lookupAccount","direction","sourceAllowedTypes","destinationAllowedTypes","console","log","name_with_balance","accountTrigger","allowedOpposingTypes","opposingAccounts","setDestinationAllowedTypes","setSourceAllowedTypes","accountKey","emitAccountId","emitAccount","emitAccountName","emitAccountType","emitAccountCurrencyId","emitAccountCurrencyCode","emitAccountCurrencySymbol","visible","transactionType","scopedSlots","_u","fn","htmlText","switchAccounts","transactionAmount","amount","currencySymbol","srcCurrencySymbol","sourceCurrencySymbol","dstCurrencySymbol","destinationCurrencySymbol","isVisible","sourceCurrencyId","destinationCurrencyId","selectedCurrency","allCurrencies","selectableCurrencies","dstCurrencyId","srcCurrencyId","lockedCurrency","filterCurrencies","getAllCurrencies","currency","dateFields","availableFields","customFields","dates","interest_date","interestDate","book_date","bookDate","process_date","processDate","due_date","dueDate","payment_date","paymentDate","invoice_date","invoiceDate","isDateField","includes","getFieldValue","setFieldValue","enabled","refInFor","categories","category","clearCategory","lookupCategory","selectedCategory","billList","bill","getBills","parseBills","VueTagsInput","autocompleteItems","debounce","tags","currentTag","updateTags","tagList","shortList","initItems","clearTimeout","setTimeout","this$1","newTags","piggyList","piggy_bank_id","getPiggies","parsePiggies","piggy","reference","showField","internal_reference","_m","url","external_uri","notes","searchResults","include","locale","linkTypes","searching","links","lodashClonedeep","getLinkTypes","getTextForLinkType","linkTypeId","selectTransaction","addToSelected","removeFromSelected","selectLinkType","updateSelected","transaction_journal_id","link_type_id","journalId","journal","splice","parseLinkTypes","attributes","inward","outward","linkTypeInward","linkTypeOutward","search","parseSearch","ii","transaction_group_id","isJournalSelected","getJournalLinkType","link_type_text","Intl","NumberFormat","style","currency_code","format","parseFloat","result","isArray","_i","$$a","$$el","$$c","checked","$$i","$set","concat","linkType","source_id","source_name","destination_id","destination_name","staticStyle","doUpload","attachments","$refs","att","files","LMap","LTileLayer","LMarker","then","zoom","center","bounds","hasMarker","marker","prepMap","myMap","mapObject","setObjectLocation","saveZoomLevel","event","latlng","lat","lng","emitEvent","clearLocation","zoomUpdated","centerUpdated","boundsUpdated","location","splitDate","splitTime","sourceAccount","source_account_id","source_account_name","source_account_type","destinationAccount","destination_account_id","destination_account_name","destination_account_type","hasMetaFields","field","requiredFields","TransactionLocation","SplitPills","TransactionAttachments","TransactionNotes","TransactionExternalUrl","TransactionInternalReference","TransactionPiggyBank","TransactionTags","TransactionLinks","TransactionBill","TransactionCategory","TransactionCustomDates","TransactionForeignCurrency","TransactionForeignAmount","TransactionAmount","SwitchAccount","TransactionAccount","TransactionBudget","TransactionDescription","TransactionDate","count","_g","$listeners","source","destination","source_account_currency_symbol","destination_account_currency_symbol","source_account_currency_id","destination_account_currency_id","foreign_currency_id","foreign_amount","custom_dates","piggy_bank","external_url","submittedTransaction","SplitForm","Alert","TransactionGroupTitle","storeAllowedOpposingTypes","storeAccountToTransaction","storeCustomFields","addTransaction","errorMessage","successMessage","enableSubmit","createAnother","resetFormAfter","submittedLinks","submittedAttachments","inError","submittedAttCount","groupTitleErrors","returnedGroupId","returnedGroupTitle","accountToTransaction","finalizeSubmit","removeTransaction","$store","commit","window","updateField","resetTransactions","submitTransaction","post","submitAttachments","uploadedAttachment","storeLocation","storeAccountValue","calculateTransactionType","payload","storeField","storeDate","setDate","storeTime","setTime","dest","setTransactionType","expectedDestinationTypes","submitTransactionLinks","submitted","total","currentLink","outward_id","received","inward_id","promises","Promise","all","parseErrors","resetErrors","transactionIndex","fieldName","setTransactionError","convertData","groupTitle","group_title","convertSplit","synchronizeAccounts","theDate","toW3CString","array","currency_id","budget_id","category_name","external_id","zoom_level","longitude","latitude","order","reconciled","currentSplit","bill_id","toLowerCase","firstSource","firstDestination","linkTypeParts","inwardId","outwardId","newLink","month","day","hours","minutes","seconds","offsetHours","offsetMinutes","offset","offsetSign","year","setAllowedOpposingTypes","require","Vue","config","productionTip","i18n","store","render","createElement","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AAYX,EAAIiW,eAAejV,SAAS,CAAC,QAAUyE,MAAMkK,QAAQ3P,EAAIkW,gBAAgBlW,EAAI4P,GAAG5P,EAAIkW,eAAe,OAAO,EAAGlW,EAAkB,gBAAG2C,GAAG,CAAC,OAAS,SAASiC,GAAQ,IAAIiL,EAAI7P,EAAIkW,eAAepG,EAAKlL,EAAOC,OAAOkL,IAAID,EAAKE,QAAuB,GAAGvK,MAAMkK,QAAQE,GAAK,CAAC,IAAaI,EAAIjQ,EAAI4P,GAAGC,EAAhB,MAA4BC,EAAKE,QAASC,EAAI,IAAIjQ,EAAIkW,eAAerG,EAAIM,OAAO,CAAhF,QAA6FF,GAAK,IAAIjQ,EAAIkW,eAAerG,EAAI7L,MAAM,EAAEiM,GAAKE,OAAON,EAAI7L,MAAMiM,EAAI,UAAWjQ,EAAIkW,eAAenG,MAAS/P,EAAIY,GAAG,KAAKR,EAAG,QAAQ,CAACM,YAAY,mBAAmBC,MAAM,CAAC,IAAM,mBAAmB,CAACP,EAAG,OAAO,CAACM,YAAY,SAAS,CAACV,EAAIY,GAAGZ,EAAIc,GAAGd,EAAIe,GAAG,4CAA4C,KACl8I,IDUpB,EACA,KACA,WACA,M,2BEUFua,EAAQ,IAERC,KAAIC,OAAOC,eAAgB,EAE3B,IAAIC,GAAOJ,EAAQ,IAEfvb,GAAQ,GACZ,IAAIwb,KAAI,CACIG,QACAC,UACAC,OAHJ,SAGWC,GACH,OAAOA,EAAcC,GAAQ,CAAC/b,MAAOA,MAEzCgc,aANJ,WAOQ9b,KAAK4W,OAAOC,OAAO,mBACnB7W,KAAK4W,OAAOmF,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","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Alert.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!./Alert.vue?vue&type=script&lang=js&\"","<!--\n - Alert.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<template>\n <div :class=\"'alert alert-' + type + ' alert-dismissible'\" v-if=\"message.length > 0\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n <h5>\n <i v-if=\"'danger' === type\" class=\"icon fas fa-ban\"></i>\n <i v-if=\"'success' === type\" class=\"icon fas fa-thumbs-up\"></i>\n <span v-if=\"'danger' === type\">{{ $t(\"firefly.flash_error\") }}</span>\n <span v-if=\"'success' === type\">{{ $t(\"firefly.flash_success\") }}</span>\n </h5>\n <span v-html=\"message\"></span>\n </div>\n</template>\n<script>\nexport default {\n name: \"Alert\",\n props: ['message', 'type']\n}\n</script>","import { render, staticRenderFns } from \"./Alert.vue?vue&type=template&id=e66a6110&\"\nimport script from \"./Alert.vue?vue&type=script&lang=js&\"\nexport * from \"./Alert.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 (_vm.message.length > 0)?_c('div',{class:'alert alert-' + _vm.type + ' alert-dismissible'},[_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"data-dismiss\":\"alert\",\"aria-hidden\":\"true\"}},[_vm._v(\"×\")]),_vm._v(\" \"),_c('h5',[('danger' === _vm.type)?_c('i',{staticClass:\"icon fas fa-ban\"}):_vm._e(),_vm._v(\" \"),('success' === _vm.type)?_c('i',{staticClass:\"icon fas fa-thumbs-up\"}):_vm._e(),_vm._v(\" \"),('danger' === _vm.type)?_c('span',[_vm._v(_vm._s(_vm.$t(\"firefly.flash_error\")))]):_vm._e(),_vm._v(\" \"),('success' === _vm.type)?_c('span',[_vm._v(_vm._s(_vm.$t(\"firefly.flash_success\")))]):_vm._e()]),_vm._v(\" \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.message)}})]):_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!./SplitPills.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!./SplitPills.vue?vue&type=script&lang=js&\"","<!--\n - SplitPills.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=\"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</template>\n\n<script>\nexport default {\n name: \"SplitPills\",\n props: ['transactions']\n}\n</script>\n","import { render, staticRenderFns } from \"./SplitPills.vue?vue&type=template&id=12e491e5&\"\nimport script from \"./SplitPills.vue?vue&type=script&lang=js&\"\nexport * from \"./SplitPills.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 (_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()}\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=\"title\"\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 tabindex=\"-1\" 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 title: this.value\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 title: 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.title = '';\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.title))\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=20a0ca60&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 \"20a0ca60\",\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.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"description\"\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 tabindex=\"-1\" 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 VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nexport default {\n props: ['index', 'value', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionDescription\",\n data() {\n return {\n descriptions: [],\n initialSet: [],\n description: this.value\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 clearDescription: function () {\n this.description = '';\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 description: function (value) {\n this.$emit('set-field', {field: 'description', index: this.index, value: value});\n //\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionDescription.vue?vue&type=template&id=3b975c9f&\"\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.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"dateStr\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"date[]\"\n :placeholder=\"dateStr\"\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=\"timeStr\"\n :disabled=\"index > 0\"\n autocomplete=\"off\"\n name=\"time[]\"\n :placeholder=\"timeStr\"\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\nexport default {\n props: ['index', 'errors', 'date', 'time'],\n name: \"TransactionDate\",\n data() {\n return {\n localDate: this.date,\n localTime: this.time\n }\n },\n methods: {},\n computed: {\n dateStr: {\n get() {\n if (this.localDate instanceof Date && !isNaN(this.localDate)) {\n return this.localDate.toISOString().split('T')[0];\n }\n return '';\n },\n set(value) {\n // bit of a hack but meh.\n if ('' === value) {\n // reset to today\n this.localDate = new Date();\n this.$emit('set-date', {date: this.localDate});\n return;\n }\n this.localDate = new Date(value);\n this.$emit('set-date', {date: this.localDate});\n }\n },\n timeStr: {\n get() {\n if (this.localTime instanceof Date && !isNaN(this.localTime)) {\n return ('0' + this.localTime.getHours()).slice(-2) + ':' + ('0' + this.localTime.getMinutes()).slice(-2) + ':' + ('0' + this.localTime.getSeconds()).slice(-2);\n }\n return '';\n },\n set(value) {\n if ('' === value) {\n this.localTime.setHours(0);\n this.localTime.setMinutes(0);\n this.localTime.setSeconds(0);\n this.$emit('set-time', {time: this.localTime});\n return;\n }\n // bit of a hack but meh.\n let current = new Date(this.localTime.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.localTime = current;\n this.$emit('set-time', {time: this.localTime});\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionDate.vue?vue&type=template&id=64ea40ba&\"\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.dateStr),expression:\"dateStr\"}],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.dateStr},domProps:{\"value\":(_vm.dateStr)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.dateStr=$event.target.value}}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.timeStr),expression:\"timeStr\"}],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.timeStr},domProps:{\"value\":(_vm.timeStr)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.timeStr=$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 }","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&\"","<!--\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=\"budget\"\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>\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionBudget\",\n data() {\n return {\n budgetList: [],\n budget: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 budget: function (value) {\n this.$emit('set-field', {field: 'budget_id', index: this.index, value: value});\n }\n },\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionBudget.vue?vue&type=template&id=5a42782c&\"\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.budget),expression:\"budget\"}],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.budget=$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\" v-if=\"visible\">\n <span v-if=\"0 === this.index\">{{ $t('firefly.' + this.direction + '_account') }}</span>\n <span class=\"text-warning\" v-if=\"this.index > 0\">{{ $t('firefly.first_split_overrules_' + this.direction) }}</span>\n </div>\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"!visible\">\n \n </div>\n <vue-typeahead-bootstrap\n v-if=\"visible\"\n v-model=\"accountName\"\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.' + direction + '_account')\"\n @input=\"lookupAccount\"\n @hit=\"selectedAccount = $event\"\n >\n\n <template slot=\"suggestion\" slot-scope=\"{ data, htmlText }\">\n <div class=\"d-flex\" :title=\"data.type\">\n <span v-html=\"htmlText\"></span><br>\n </div>\n </template>\n <template slot=\"append\">\n <div class=\"input-group-append\">\n <button tabindex=\"-1\" 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 <div class=\"form-control-static\" v-if=\"!visible\">\n <span class=\"small text-muted\"><em>{{ $t('firefly.first_split_decides') }}</em></span>\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 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 account: this.value,\n accountName: '',\n selectedAccountTrigger: false,\n }\n },\n created() {\n this.createInitialSet();\n },\n methods: {\n ...mapMutations(\n [\n 'updateField',\n 'setDestinationAllowedTypes',\n 'setSourceAllowedTypes'\n ],\n ),\n getACURL: function (types, query) {\n return './api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;\n },\n clearAccount: function () {\n this.accounts = this.initialSet;\n this.account = {name: '', type: 'no_type', id: null, currency_id: null, currency_code: null, currency_symbol: null};\n this.accountName = '';\n },\n lookupAccount: debounce(function () {\n //console.log('In lookupAccount()');\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.accountName))\n .then(response => {\n //console.log('Got a response!');\n this.accounts = response.data;\n //console.log(response.data);\n })\n }, 300),\n\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 this.accounts = response.data;\n this.initialSet = response.data;\n });\n }\n },\n watch: {\n selectedAccount: function (value) {\n console.log('Emit on selected account');\n this.selectedAccountTrigger = true;\n this.account = value;\n\n this.$emit('set-account',\n {\n index: this.index,\n direction: this.direction,\n id: value.id,\n type: value.type,\n name: value.name,\n currency_id: value.currency_id,\n currency_code: value.currency_code,\n currency_symbol: value.currency_symbol,\n }\n );\n this.accountName = this.account.name_with_balance;\n },\n accountName: function (value) {\n if (false === this.selectedAccountTrigger) {\n console.log('Save to change name!');\n this.$emit('set-account',\n {\n index: this.index,\n direction: this.direction,\n id: null,\n type: null,\n name: value,\n currency_id: null,\n currency_code: null,\n currency_symbol: null,\n }\n );\n this.accountTrigger = false;\n this.account = {name: value, type: null, id: null, currency_id: null, currency_code: null, currency_symbol: null};\n }\n this.selectedAccountTrigger = false;\n },\n account: function (value) {\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 value: function (value) {\n console.log(this.direction + ' account overruled by external forces.');\n this.account = value;\n this.selectedAccountTrigger = true;\n this.accountName = value.name;\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'sourceAllowedTypes',\n 'destinationAllowedTypes',\n 'allowedOpposingTypes'\n ]),\n accountKey: {\n get() {\n return 'source' === this.direction ? 'source_account' : 'destination_account';\n }\n },\n emitAccountId: {\n get() {\n return 'set-' + this.direction + '-account-id';\n }\n },\n emitAccount: {\n get() {\n return 'set-' + this.direction + '-account';\n }\n },\n emitAccountName: {\n get() {\n return 'set-' + this.direction + '-account-name';\n }\n },\n emitAccountType: {\n get() {\n return 'set-' + this.direction + '-account-type';\n }\n },\n emitAccountCurrencyId: {\n get() {\n return 'set-' + this.direction + '-account-currency-id';\n }\n },\n emitAccountCurrencyCode: {\n get() {\n return 'set-' + this.direction + '-account-currency-code';\n }\n },\n emitAccountCurrencySymbol: {\n get() {\n return 'set-' + this.direction + '-account-currency-symbol';\n }\n },\n\n visible: {\n get() {\n // index 0 is always visible:\n if (0 === this.index) {\n return true;\n }\n if ('source' === this.direction) {\n return 'any' === this.transactionType || 'Deposit' === this.transactionType\n }\n if ('destination' === this.direction) {\n return 'any' === this.transactionType || 'Withdrawal' === this.transactionType;\n }\n return false;\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!./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=29102158&\"\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 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\"},[(_vm.visible)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[(0 === this.index)?_c('span',[_vm._v(_vm._s(_vm.$t('firefly.' + this.direction + '_account')))]):_vm._e(),_vm._v(\" \"),(this.index > 0)?_c('span',{staticClass:\"text-warning\"},[_vm._v(_vm._s(_vm.$t('firefly.first_split_overrules_' + this.direction)))]):_vm._e()]):_vm._e(),_vm._v(\" \"),(!_vm.visible)?_c('div',{staticClass:\"text-xs d-none d-lg-block d-xl-block\"},[_vm._v(\"\\n \\n \")]):_vm._e(),_vm._v(\" \"),(_vm.visible)?_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.' + _vm.direction + '_account')},on:{\"input\":_vm.lookupAccount,\"hit\":function($event){_vm.selectedAccount = $event}},scopedSlots:_vm._u([{key:\"suggestion\",fn:function(ref){\nvar data = ref.data;\nvar htmlText = ref.htmlText;\nreturn [_c('div',{staticClass:\"d-flex\",attrs:{\"title\":data.type}},[_c('span',{domProps:{\"innerHTML\":_vm._s(htmlText)}}),_c('br')])]}}],null,false,1423807661),model:{value:(_vm.accountName),callback:function ($$v) {_vm.accountName=$$v},expression:\"accountName\"}},[_vm._v(\" \"),_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"},on:{\"click\":_vm.clearAccount}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])])],2):_vm._e(),_vm._v(\" \"),(!_vm.visible)?_c('div',{staticClass:\"form-control-static\"},[_c('span',{staticClass:\"small text-muted\"},[_c('em',[_vm._v(_vm._s(_vm.$t('firefly.first_split_decides')))])])]):_vm._e(),_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\"> </span>\n </div>\n <div class=\"btn-group d-flex\">\n <button class=\"btn btn-light\" @click=\"switchAccounts\">↔</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 this.$emit('switch-accounts', this.index);\n }\n },\n computed: {\n ...mapGetters(['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=2d362d12&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 \"2d362d12\",\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 }","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&\"","<!--\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\" v-if=\"currencySymbol\">\n <div class=\"input-group-text\">{{ currencySymbol }}</div>\n </div>\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=\"transactionAmount\"\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\nexport default {\n name: \"TransactionAmount\",\n props: [\n 'index', 'errors', 'amount', 'transactionType',\n 'sourceCurrencySymbol',\n 'destinationCurrencySymbol',\n ],\n data() {\n return {\n transactionAmount: this.amount,\n currencySymbol: null,\n srcCurrencySymbol: this.sourceCurrencySymbol,\n dstCurrencySymbol: this.destinationCurrencySymbol,\n }\n },\n watch: {\n transactionAmount: function (value) {\n this.$emit('set-field', {field: 'amount', index: this.index, value: value});\n },\n amount: function (value) {\n this.transactionAmount = value;\n },\n sourceCurrencySymbol: function (value) {\n this.srcCurrencySymbol = value;\n },\n destinationCurrencySymbol: function (value) {\n this.dstCurrencySymbol = value;\n },\n\n transactionType: function (value) {\n switch (value) {\n case 'Transfer':\n case 'Withdrawal':\n this.currencySymbol = this.srcCurrencySymbol;\n break;\n case 'Deposit':\n this.currencySymbol = this.dstCurrencySymbol;\n }\n },\n },\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionAmount.vue?vue&type=template&id=22d5efb1&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 \"22d5efb1\",\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\"},[(_vm.currencySymbol)?_c('div',{staticClass:\"input-group-prepend\"},[_c('div',{staticClass:\"input-group-text\"},[_vm._v(_vm._s(_vm.currencySymbol))])]):_vm._e(),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.transactionAmount),expression:\"transactionAmount\"}],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.transactionAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.transactionAmount=$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 }","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&\"","<!--\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\" v-if=\"isVisible\">\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 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>\nexport default {\n name: \"TransactionForeignAmount\",\n props: [\n 'index',\n 'errors',\n 'transactionType',\n 'sourceCurrencyId',\n 'destinationCurrencyId'\n ],\n data() {\n return {\n amount: ''\n // currencySymbol: '',\n // allCurrencies: [],\n // selectableCurrencies: [],\n }\n },\n watch: {\n amount: function(value) {\n this.$emit('set-field', {field: 'foreign_amount', index: this.index, value: value});\n }\n },\n computed: {\n isVisible: {\n get() {\n return !('Transfer' === this.transactionType && this.sourceCurrencyId === this.destinationCurrencyId);\n }\n },\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionForeignAmount.vue?vue&type=template&id=dbdd83f8&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 \"dbdd83f8\",\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.isVisible)?_c('div',{staticClass:\"form-group\"},[_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\",\"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()]):_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!./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&\"","<!--\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=\"isVisible\">\n <div class=\"text-xs\"> </div>\n <div class=\"input-group\">\n <select name=\"foreign_currency_id[]\" v-model=\"selectedCurrency\" 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\nexport default {\n name: \"TransactionForeignCurrency\",\n props: [\n 'index',\n 'transactionType',\n 'sourceCurrencyId',\n 'destinationCurrencyId',\n 'selectedCurrencyId'\n ],\n data() {\n return {\n selectedCurrency: 0,\n allCurrencies: [],\n selectableCurrencies: [],\n dstCurrencyId: this.destinationCurrencyId,\n srcCurrencyId: this.sourceCurrencyId,\n lockedCurrency: 0,\n }\n },\n watch: {\n sourceCurrencyId: function (value) {\n this.srcCurrencyId = value;\n },\n destinationCurrencyId: function (value) {\n this.dstCurrencyId = value;\n },\n selectedCurrency: function(value) {\n this.$emit('set-field',{field: 'foreign_currency_id', index: this.index, value: value});\n },\n transactionType: function (value) {\n this.lockedCurrency = 0;\n if ('Transfer' === value) {\n this.lockedCurrency = this.dstCurrencyId;\n this.selectedCurrency = this.dstCurrencyId;\n }\n this.filterCurrencies();\n },\n },\n created: function () {\n this.getAllCurrencies();\n },\n methods: {\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.selectedCurrency = current.id;\n }\n }\n }\n return;\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 this.selectableCurrencies.push(current);\n }\n }\n }\n },\n computed: {\n isVisible: function () {\n return !('Transfer' === this.transactionType && this.srcCurrencyId === this.dstCurrencyId);\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionForeignCurrency.vue?vue&type=template&id=6d9bb9d2&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 \"6d9bb9d2\",\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.isVisible)?_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.selectedCurrency),expression:\"selectedCurrency\"}],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.selectedCurrency=$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 }","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&\"","<!--\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 availableFields\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\" v-if=\"enabled && isDateField(name)\">\n {{ $t('form.' + name) }}\n </div>\n <div class=\"input-group\" v-if=\"enabled && isDateField(name)\">\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>\nexport default {\n name: \"TransactionCustomDates\",\n props: [\n 'index',\n 'errors',\n 'customFields',\n 'interestDate',\n 'bookDate',\n 'processDate',\n 'dueDate',\n 'paymentDate',\n 'invoiceDate'\n ],\n data() {\n return {\n dateFields: ['interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date'],\n availableFields: this.customFields,\n dates: {\n interest_date: this.interestDate,\n book_date: this.bookDate,\n process_date: this.processDate,\n due_date: this.dueDate,\n payment_date: this.paymentDate,\n invoice_date: this.invoiceDate,\n }\n ,\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n }\n },\n methods: {\n isDateField: function (name) {\n return this.dateFields.includes(name)\n },\n getFieldValue(field) {\n return this.dates[field] ?? '';\n },\n setFieldValue(event, field) {\n this.$emit('set-field', {field: field, index: this.index, value: event.target.value});\n },\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionCustomDates.vue?vue&type=template&id=ef5ee828&\"\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 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',_vm._l((_vm.availableFields),function(enabled,name){return _c('div',{staticClass:\"form-group\"},[(enabled && _vm.isDateField(name))?_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 && _vm.isDateField(name))?_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 }","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&\"","<!--\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=\"category\"\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 tabindex=\"-1\" 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 VueTypeaheadBootstrap from 'vue-typeahead-bootstrap';\nimport {debounce} from \"lodash\";\n\nexport default {\n props: ['value', 'index', 'errors'],\n components: {VueTypeaheadBootstrap},\n name: \"TransactionCategory\",\n data() {\n return {\n categories: [],\n initialSet: [],\n category: this.value\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 clearCategory: function () {\n this.category = 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 category: function (value) {\n this.$emit('set-field', {field: 'category', index: this.index, value: value});\n }\n },\n computed: {\n selectedCategory: {\n get() {\n return this.categories[this.index].name;\n },\n set(value) {\n this.category = value.name;\n }\n }\n }\n}\n</script>","import { render, staticRenderFns } from \"./TransactionCategory.vue?vue&type=template&id=7624fe33&\"\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.category),callback:function ($$v) {_vm.category=$$v},expression:\"category\"}},[_c('template',{slot:\"append\"},[_c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"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 }","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&\"","<!--\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=\"bill\"\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>\nexport default {\n props: ['value', 'index', 'errors'],\n name: \"TransactionBill\",\n data() {\n return {\n billList: [],\n bill: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 bill: function (value) {\n this.$emit('set-field', {field: 'bill_id', index: this.index, value: value});\n }\n },\n}\n</script>\n\n","import { render, staticRenderFns } from \"./TransactionBill.vue?vue&type=template&id=7f4d9c01&\"\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.bill),expression:\"bill\"}],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.bill=$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 }","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&\"","<!--\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 VueTagsInput from \"@johmun/vue-tags-input\";\nimport axios from \"axios\";\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 tagList: this.value\n };\n },\n watch: {\n 'currentTag': 'initItems',\n tagList: function (value) {\n this.$emit('set-field', {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 let shortList = [];\n for (let key in value) {\n if (value.hasOwnProperty(key)) {\n shortList.push({text: value[key].text});\n }\n }\n this.tagList = shortList;\n }\n this.updateTags = true;\n }\n },\n methods: {\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 { render, staticRenderFns } from \"./TransactionTags.vue?vue&type=template&id=62a93ba8&\"\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 }","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&\"","<!--\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=\"piggy_bank_id\"\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\nexport default {\n props: ['index', 'value', 'errors'],\n name: \"TransactionPiggyBank\",\n data() {\n return {\n piggyList: [],\n piggy_bank_id: this.value\n }\n },\n created() {\n this.collectData();\n },\n methods: {\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 piggy_bank_id: function (value) {\n this.$emit('set-field', {field: 'piggy_bank_id', index: this.index, value: value});\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionPiggyBank.vue?vue&type=template&id=3061a138&\"\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.piggy_bank_id),expression:\"piggy_bank_id\"}],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.piggy_bank_id=$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 }","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&\"","<!--\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\" v-if=\"showField\">\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=\"reference\"\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 tabindex=\"-1\" 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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionInternalReference\",\n data() {\n return {\n reference: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('internal_reference' in this.availableFields) {\n return this.availableFields.internal_reference;\n }\n return false;\n }\n },\n methods: {\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n reference: function (value) {\n this.$emit('set-field', {field: 'internal_reference', index: this.index, value: value});\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./TransactionInternalReference.vue?vue&type=template&id=028ad247&\"\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 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 (_vm.showField)?_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.reference),expression:\"reference\"}],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.reference)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.reference=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\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!./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&\"","<!--\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\" v-if=\"showField\">\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=\"url\"\n :class=\"errors.length > 0 ? 'form-control is-invalid' : 'form-control'\"\n />\n <div class=\"input-group-append\">\n <button tabindex=\"-1\" 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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionExternalUrl\",\n data() {\n return {\n url: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('external_uri' in this.availableFields) {\n return this.availableFields.external_uri;\n }\n return false;\n }\n },\n methods: {},\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n url: function (value) {\n this.$emit('set-field', {field: 'external_url', index: index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionExternalUrl.vue?vue&type=template&id=18d1da80&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 \"18d1da80\",\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.showField)?_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.url),expression:\"url\"}],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.url)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value}}}),_vm._v(\" \"),_vm._m(0)])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-group-append\"},[_c('button',{staticClass:\"btn btn-outline-secondary\",attrs:{\"tabindex\":\"-1\",\"type\":\"button\"}},[_c('i',{staticClass:\"far fa-trash-alt\"})])])}]\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!./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&\"","<!--\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\" v-if=\"showField\">\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=\"notes\"\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>\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionNotes\",\n data() {\n return {\n notes: this.value,\n availableFields: this.customFields\n }\n },\n computed: {\n showField: function () {\n if ('notes' in this.availableFields) {\n return this.availableFields.notes;\n }\n return false;\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n notes: function (value) {\n this.$emit('set-field', {field: 'notes', index: this.index, value: value});\n }\n }\n}\n</script>\n\n<style scoped>\n\n</style>","import { render, staticRenderFns } from \"./TransactionNotes.vue?vue&type=template&id=1ea17f92&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 \"1ea17f92\",\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.showField)?_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.notes),expression:\"notes\"}],class:_vm.errors.length > 0 ? 'form-control is-invalid' : 'form-control',attrs:{\"placeholder\":_vm.$t('firefly.notes')},domProps:{\"value\":(_vm.notes)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.notes=$event.target.value}}})])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\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 v-if=\"showField\">\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=\"links.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=\"links.length > 0\">\n <li class=\"list-group-item\" v-for=\"transaction in links\">\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 tabindex=\"-1\" href=\"#\" class=\"btn btn-xs btn-default\"><i class=\"far fa-edit\"></i></a>\n <a tabindex=\"-1\" 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=\"links.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\">×</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 →\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>\nconst lodashClonedeep = require('lodash.clonedeep');\n// TODO error handling\nexport default {\n props: ['index', 'value', 'errors', 'customFields'],\n name: \"TransactionLinks\",\n data() {\n return {\n searchResults: [],\n include: [],\n locale: 'en-US',\n linkTypes: [],\n query: '',\n searching: false,\n links: [],\n availableFields: this.customFields\n }\n },\n created() {\n this.locale = localStorage.locale ?? 'en-US';\n this.links = lodashClonedeep(this.value);\n this.getLinkTypes();\n },\n computed: {\n showField: function () {\n if ('links' in this.availableFields) {\n return this.availableFields.links;\n }\n return false;\n }\n },\n watch: {\n links: function (value) {\n this.$emit('set-field', {index: this.index, field: 'links', value: lodashClonedeep(value)});\n },\n customFields: function (value) {\n this.availableFields = 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 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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (parseInt(current.transaction_journal_id) === journalId) {\n this.links[i].link_type_id = linkTypeId;\n }\n }\n }\n },\n addToSelected(journal) {\n let result = this.links.find(({transaction_journal_id}) => transaction_journal_id === journal.transaction_journal_id);\n if (typeof result === 'undefined') {\n this.links.push(journal);\n }\n },\n removeFromSelected(journal) {\n for (let i in this.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (current.transaction_journal_id === journal.transaction_journal_id) {\n this.links.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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[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.links) {\n if (this.links.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n let current = this.links[i];\n if (current.transaction_journal_id === journalId) {\n return true;\n }\n }\n }\n return false;\n }\n }\n}\n</script>\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./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&\"","import { render, staticRenderFns } from \"./TransactionLinks.vue?vue&type=template&id=b8f39b46&\"\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 (_vm.showField)?_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.links.length === 0)?_c('p',[_vm._m(0)]):_vm._e(),_vm._v(\" \"),(_vm.links.length > 0)?_c('ul',{staticClass:\"list-group\"},_vm._l((_vm.links),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.links.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)])])])]):_vm._e()}\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:{\"tabindex\":\"-1\",\"href\":\"#\"}},[_c('i',{staticClass:\"far fa-edit\"})]),_vm._v(\" \"),_c('a',{staticClass:\"btn btn-xs btn-danger\",attrs:{\"tabindex\":\"-1\",\"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\" v-if=\"showField\">\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', 'customFields'],\n data() {\n return {\n availableFields: this.customFields\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = value;\n },\n transaction_journal_id: function (value) {\n if (!this.showField) {\n console.log('Field is hidden. Emit event!');\n this.$emit('uploaded-attachments', value);\n return;\n }\n // console.log('transaction_journal_id changed to ' + value);\n // do upload!\n if (0 !== value) {\n this.doUpload();\n }\n }\n },\n computed: {\n showField: function () {\n if ('attachments' in this.availableFields) {\n return this.availableFields.attachments;\n }\n return false;\n }\n },\n methods: {\n doUpload: function () {\n console.log('Now in doUpload() for ' + this.$refs.att.files.length + ' files.');\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 console.log('Uploaded a file. Emit event!');\n // console.log(attachmentResponse);\n theParent.$emit('uploaded-attachments', this.transaction_journal_id);\n });\n });\n }\n }\n fileReader.readAsArrayBuffer(current);\n }\n }\n if (0 === this.$refs.att.files.length) {\n console.log('No files to upload. Emit event!');\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=4957e769&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 \"4957e769\",\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.showField)?_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[]\"}})])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - TransactionLocation.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\" v-if=\"showField\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n {{ $t('firefly.location') }}\n </div>\n <div style=\"width:100%;height:300px;\">\n <l-map\n style=\"width:100%;height:300px;\"\n :zoom=\"zoom\"\n ref=\"myMap\" @ready=\"prepMap()\"\n :center=\"center\"\n @update:zoom=\"zoomUpdated\"\n @update:center=\"centerUpdated\"\n @update:bounds=\"boundsUpdated\"\n >\n <l-tile-layer :url=\"url\"></l-tile-layer>\n <l-marker :lat-lng=\"marker\" :visible=\"hasMarker\"></l-marker>\n </l-map>\n <span>\n <button class=\"btn btn-default btn-xs\" @click=\"clearLocation\">{{ $t('firefly.clear_location') }}</button>\n </span>\n </div>\n <p> </p>\n </div>\n</template>\n\n<script>\n\n// If you need to reference 'L', such as in 'L.icon', then be sure to\n// explicitly import 'leaflet' into your component\n// import L from 'leaflet';\nimport {LMap, LMarker, LTileLayer} from 'vue2-leaflet';\nimport 'leaflet/dist/leaflet.css';\n\nimport L from 'leaflet';\n\ndelete L.Icon.Default.prototype._getIconUrl;\n\nL.Icon.Default.mergeOptions({\n iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),\n iconUrl: require('leaflet/dist/images/marker-icon.png'),\n shadowUrl: require('leaflet/dist/images/marker-shadow.png')\n });\n\nexport default {\n name: \"TransactionLocation\",\n props: ['index', 'value', 'errors', 'customFields'],\n components: {\n LMap,\n LTileLayer,\n LMarker,\n },\n created() {\n axios.get('./api/v1/configuration/static/firefly.default_location').then(response => {\n this.zoom = parseInt(response.data['firefly.default_location'].zoom_level);\n this.center =\n [\n parseFloat(response.data['firefly.default_location'].latitude),\n parseFloat(response.data['firefly.default_location'].longitude),\n ]\n ;\n });\n },\n data() {\n return {\n availableFields: this.customFields,\n url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n zoom: 3,\n center: [0, 0],\n bounds: null,\n map: null,\n hasMarker: false,\n marker: [0, 0],\n }\n },\n methods: {\n prepMap: function () {\n this.map = this.$refs.myMap.mapObject;\n this.map.on('contextmenu', this.setObjectLocation);\n this.map.on('zoomend', this.saveZoomLevel);\n },\n setObjectLocation: function (event) {\n this.marker = [event.latlng.lat, event.latlng.lng];\n this.hasMarker = true;\n this.emitEvent();\n },\n saveZoomLevel: function () {\n this.emitEvent();\n },\n clearLocation: function () {\n this.hasMarker = false;\n this.emitEvent();\n },\n emitEvent() {\n this.$emit('set-marker-location', {\n index: this.index,\n zoomLevel: this.zoom,\n lat: this.marker[0],\n lng: this.marker[1],\n hasMarker: this.hasMarker\n }\n );\n },\n zoomUpdated(zoom) {\n this.zoom = zoom;\n },\n centerUpdated(center) {\n this.center = center;\n },\n boundsUpdated(bounds) {\n this.bounds = bounds;\n }\n },\n computed: {\n showField: function () {\n if ('location' in this.availableFields) {\n return this.availableFields.location;\n }\n return false;\n }\n },\n watch: {\n customFields: function (value) {\n this.availableFields = 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!./TransactionLocation.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!./TransactionLocation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TransactionLocation.vue?vue&type=template&id=edf1fb46&scoped=true&\"\nimport script from \"./TransactionLocation.vue?vue&type=script&lang=js&\"\nexport * from \"./TransactionLocation.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 \"edf1fb46\",\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.showField)?_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.location'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"300px\"}},[_c('l-map',{ref:\"myMap\",staticStyle:{\"width\":\"100%\",\"height\":\"300px\"},attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center},on:{\"ready\":function($event){return _vm.prepMap()},\"update:zoom\":_vm.zoomUpdated,\"update:center\":_vm.centerUpdated,\"update:bounds\":_vm.boundsUpdated}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url}}),_vm._v(\" \"),_c('l-marker',{attrs:{\"lat-lng\":_vm.marker,\"visible\":_vm.hasMarker}})],1),_vm._v(\" \"),_c('span',[_c('button',{staticClass:\"btn btn-default btn-xs\",on:{\"click\":_vm.clearLocation}},[_vm._v(_vm._s(_vm.$t('firefly.clear_location')))])])],1),_vm._v(\" \"),_c('p',[_vm._v(\" \")])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n - SplitForm.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=\"'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=\"count > 1\">({{ index + 1 }} / {{ count }}) </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-on=\"$listeners\"\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-on=\"$listeners\"\n v-model=\"sourceAccount\"\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 v-if=\"0 === index\"\n v-on=\"$listeners\"\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-on=\"$listeners\"\n v-model=\"destinationAccount\"\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\n :index=\"index\"\n :errors=\"transaction.errors.amount\"\n :amount=\"transaction.amount\"\n :transaction-type=\"this.transactionType\"\n :source-currency-symbol=\"this.transaction.source_account_currency_symbol\"\n :destination-currency-symbol=\"this.transaction.destination_account_currency_symbol\"\n v-on=\"$listeners\"\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\n v-on=\"$listeners\"\n :transaction-type=\"this.transactionType\"\n :source-currency-id=\"this.transaction.source_account_currency_id\"\n :destination-currency-id=\"this.transaction.destination_account_currency_id\"\n :selected-currency-id=\"this.transaction.foreign_currency_id\"\n :index=\"index\"\n />\n </div>\n <div class=\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\">\n <!--\n The reason that TransactionAmount gets the symbols and\n TransactionForeignAmount gets the ID's of the currencies is\n because ultimately TransactionAmount doesn't decide which\n currency id is submitted to Firefly III.\n -->\n <TransactionForeignAmount\n :index=\"index\"\n v-on=\"$listeners\"\n :errors=\"transaction.errors.foreign_amount\"\n :transaction-type=\"this.transactionType\"\n :source-currency-id=\"this.transaction.source_account_currency_id\"\n :destination-currency-id=\"this.transaction.destination_account_currency_id\"\n :selected-currency-id=\"this.transaction.foreign_currency_id\"\n />\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 v-on=\"$listeners\"\n :date=\"splitDate\"\n :time=\"splitTime\"\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\n :index=\"index\"\n v-on=\"$listeners\"\n :custom-fields.sync=\"customFields\"\n :errors=\"transaction.errors.custom_dates\"\n :interest-date=\"transaction.interest_date\"\n :book-date=\"transaction.book_date\"\n :process-date=\"transaction.process_date\"\n :due-date=\"transaction.due_date\"\n :payment-date=\"transaction.payment_date\"\n :invoice-date=\"transaction.invoice_date\"\n />\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=\"count > 1\">({{ index + 1 }} / {{ count }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <!-- meta -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <TransactionBudget\n v-on=\"$listeners\"\n v-model=\"transaction.budget_id\"\n :index=\"index\"\n :errors=\"transaction.errors.budget\"\n v-if=\"!('Transfer' === transactionType || 'Deposit' === transactionType)\"\n />\n <TransactionCategory\n v-on=\"$listeners\"\n v-model=\"transaction.category\"\n :index=\"index\"\n :errors=\"transaction.errors.category\"\n />\n </div>\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <TransactionBill\n v-on=\"$listeners\"\n v-model=\"transaction.bill_id\"\n :index=\"index\"\n :errors=\"transaction.errors.bill\"\n v-if=\"!('Transfer' === transactionType || 'Deposit' === transactionType)\"\n />\n <TransactionTags\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.tags\"\n :errors=\"transaction.errors.tags\"\n />\n <TransactionPiggyBank\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.piggy_bank_id\"\n :errors=\"transaction.errors.piggy_bank\"\n v-if=\"!('Withdrawal' === transactionType || 'Deposit' === transactionType)\"\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\" v-if=\"hasMetaFields\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">\n {{ $t('firefly.transaction_journal_extra') }}\n <span v-if=\"count > 1\">({{ index + 1 }} / {{ count }}) </span>\n </h3>\n </div>\n <div class=\"card-body\">\n <!-- start of body -->\n <div class=\"row\">\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n\n <TransactionInternalReference\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.internal_reference\"\n :errors=\"transaction.errors.internal_reference\"\n :custom-fields.sync=\"customFields\"\n />\n\n <TransactionExternalUrl\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.external_url\"\n :errors=\"transaction.errors.external_url\"\n :custom-fields.sync=\"customFields\"\n />\n <TransactionNotes\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.notes\"\n :custom-fields.sync=\"customFields\"\n />\n </div>\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n\n <TransactionAttachments\n :index=\"index\"\n ref=\"attachments\"\n v-on=\"$listeners\"\n :transaction_journal_id=\"transaction.transaction_journal_id\"\n :submitted_transaction=\"submittedTransaction\"\n v-model=\"transaction.attachments\"\n :custom-fields.sync=\"customFields\"\n />\n <TransactionLocation\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.notes\"\n :errors=\"transaction.errors.location\"\n :custom-fields.sync=\"customFields\"\n />\n\n <TransactionLinks\n v-on=\"$listeners\"\n :index=\"index\"\n v-model=\"transaction.links\"\n :custom-fields.sync=\"customFields\"\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</template>\n\n<script>\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 SplitPills from \"./SplitPills\";\nimport {createNamespacedHelpers} from \"vuex\";\nimport TransactionLocation from \"./TransactionLocation\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"SplitForm\",\n props: [\n 'transaction',\n 'split',\n 'count',\n 'customFields', // for custom transaction form fields.\n 'index',\n 'submittedTransaction' // need to know if transaction is submitted.\n ],\n // TODO get rid of mapped getters.\n computed: {\n ...mapGetters(['transactionType', 'date', 'time']),\n splitDate: function () {\n return this.date;\n },\n splitTime: function () {\n return this.time;\n },\n sourceAccount: function () {\n return {\n id: this.transaction.source_account_id,\n name: this.transaction.source_account_name,\n type: this.transaction.source_account_type,\n };\n },\n destinationAccount: function () {\n return {\n id: this.transaction.destination_account_id,\n name: this.transaction.destination_account_name,\n type: this.transaction.destination_account_type,\n };\n },\n hasMetaFields: function () {\n let requiredFields = [\n 'internal_reference',\n 'notes',\n 'attachments',\n 'external_uri',\n 'location',\n 'links',\n ];\n for (let field in this.customFields) {\n if (this.customFields.hasOwnProperty(field)) {\n if (requiredFields.includes(field)) {\n if (true === this.customFields[field]) {\n return true;\n }\n }\n }\n }\n return false;\n }\n },\n components: {\n TransactionLocation,\n SplitPills,\n TransactionAttachments,\n TransactionNotes,\n TransactionExternalUrl,\n TransactionInternalReference,\n TransactionPiggyBank,\n TransactionTags,\n TransactionLinks,\n TransactionBill,\n TransactionCategory,\n TransactionCustomDates,\n TransactionForeignCurrency,\n TransactionForeignAmount,\n TransactionAmount,\n SwitchAccount,\n TransactionAccount,\n TransactionBudget,\n TransactionDescription,\n TransactionDate\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!./SplitForm.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!./SplitForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SplitForm.vue?vue&type=template&id=bf619d56&\"\nimport script from \"./SplitForm.vue?vue&type=script&lang=js&\"\nexport * from \"./SplitForm.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',{class:'tab-pane' + (0===_vm.index ? ' active' : ''),attrs:{\"id\":'split_' + _vm.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.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('TransactionDescription',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.description},model:{value:(_vm.transaction.description),callback:function ($$v) {_vm.$set(_vm.transaction, \"description\", $$v)},expression:\"transaction.description\"}},_vm.$listeners))],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',_vm._g({attrs:{\"direction\":\"source\",\"index\":_vm.index,\"errors\":_vm.transaction.errors.source},model:{value:(_vm.sourceAccount),callback:function ($$v) {_vm.sourceAccount=$$v},expression:\"sourceAccount\"}},_vm.$listeners))],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\"},[(0 === _vm.index)?_c('SwitchAccount',_vm._g({attrs:{\"index\":_vm.index}},_vm.$listeners)):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAccount',_vm._g({attrs:{\"direction\":\"destination\",\"index\":_vm.index,\"errors\":_vm.transaction.errors.destination},model:{value:(_vm.destinationAccount),callback:function ($$v) {_vm.destinationAccount=$$v},expression:\"destinationAccount\"}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.amount,\"amount\":_vm.transaction.amount,\"transaction-type\":this.transactionType,\"source-currency-symbol\":this.transaction.source_account_currency_symbol,\"destination-currency-symbol\":this.transaction.destination_account_currency_symbol}},_vm.$listeners))],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',_vm._g({attrs:{\"transaction-type\":this.transactionType,\"source-currency-id\":this.transaction.source_account_currency_id,\"destination-currency-id\":this.transaction.destination_account_currency_id,\"selected-currency-id\":this.transaction.foreign_currency_id,\"index\":_vm.index}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-5 col-lg-5 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionForeignAmount',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.foreign_amount,\"transaction-type\":this.transactionType,\"source-currency-id\":this.transaction.source_account_currency_id,\"destination-currency-id\":this.transaction.destination_account_currency_id,\"selected-currency-id\":this.transaction.foreign_currency_id}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"date\":_vm.splitDate,\"time\":_vm.splitTime,\"errors\":_vm.transaction.errors.date}},_vm.$listeners))],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',_vm._g({attrs:{\"index\":_vm.index,\"custom-fields\":_vm.customFields,\"errors\":_vm.transaction.errors.custom_dates,\"interest-date\":_vm.transaction.interest_date,\"book-date\":_vm.transaction.book_date,\"process-date\":_vm.transaction.process_date,\"due-date\":_vm.transaction.due_date,\"payment-date\":_vm.transaction.payment_date,\"invoice-date\":_vm.transaction.invoice_date},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}}},_vm.$listeners))],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.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(!('Transfer' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionBudget',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.budget},model:{value:(_vm.transaction.budget_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"budget_id\", $$v)},expression:\"transaction.budget_id\"}},_vm.$listeners)):_vm._e(),_vm._v(\" \"),_c('TransactionCategory',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.category},model:{value:(_vm.transaction.category),callback:function ($$v) {_vm.$set(_vm.transaction, \"category\", $$v)},expression:\"transaction.category\"}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(!('Transfer' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionBill',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.bill},model:{value:(_vm.transaction.bill_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"bill_id\", $$v)},expression:\"transaction.bill_id\"}},_vm.$listeners)):_vm._e(),_vm._v(\" \"),_c('TransactionTags',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.tags},model:{value:(_vm.transaction.tags),callback:function ($$v) {_vm.$set(_vm.transaction, \"tags\", $$v)},expression:\"transaction.tags\"}},_vm.$listeners)),_vm._v(\" \"),(!('Withdrawal' === _vm.transactionType || 'Deposit' === _vm.transactionType))?_c('TransactionPiggyBank',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.piggy_bank},model:{value:(_vm.transaction.piggy_bank_id),callback:function ($$v) {_vm.$set(_vm.transaction, \"piggy_bank_id\", $$v)},expression:\"transaction.piggy_bank_id\"}},_vm.$listeners)):_vm._e()],1)])])])])]),_vm._v(\" \"),(_vm.hasMetaFields)?_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_extra'))+\"\\n \"),(_vm.count > 1)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.index + 1)+\" / \"+_vm._s(_vm.count)+\") \")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionInternalReference',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.internal_reference,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.internal_reference),callback:function ($$v) {_vm.$set(_vm.transaction, \"internal_reference\", $$v)},expression:\"transaction.internal_reference\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionExternalUrl',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.external_url,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.external_url),callback:function ($$v) {_vm.$set(_vm.transaction, \"external_url\", $$v)},expression:\"transaction.external_url\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionNotes',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.notes,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.notes),callback:function ($$v) {_vm.$set(_vm.transaction, \"notes\", $$v)},expression:\"transaction.notes\"}},_vm.$listeners))],1),_vm._v(\" \"),_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_c('TransactionAttachments',_vm._g({ref:\"attachments\",attrs:{\"index\":_vm.index,\"transaction_journal_id\":_vm.transaction.transaction_journal_id,\"submitted_transaction\":_vm.submittedTransaction,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.attachments),callback:function ($$v) {_vm.$set(_vm.transaction, \"attachments\", $$v)},expression:\"transaction.attachments\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionLocation',_vm._g({attrs:{\"index\":_vm.index,\"errors\":_vm.transaction.errors.location,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.notes),callback:function ($$v) {_vm.$set(_vm.transaction, \"notes\", $$v)},expression:\"transaction.notes\"}},_vm.$listeners)),_vm._v(\" \"),_c('TransactionLinks',_vm._g({attrs:{\"index\":_vm.index,\"custom-fields\":_vm.customFields},on:{\"update:customFields\":function($event){_vm.customFields=$event},\"update:custom-fields\":function($event){_vm.customFields=$event}},model:{value:(_vm.transaction.links),callback:function ($$v) {_vm.$set(_vm.transaction, \"links\", $$v)},expression:\"transaction.links\"}},_vm.$listeners))],1)])])])])]):_vm._e()])}\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 <alert :message=\"errorMessage\" type=\"danger\"/>\n <alert :message=\"successMessage\" type=\"success\"/>\n <SplitPills :transactions=\"transactions\"/>\n <div class=\"tab-content\">\n <SplitForm\n v-for=\"(transaction, index) in this.transactions\"\n v-bind:key=\"index\"\n :transaction=\"transaction\"\n :index=\"index\"\n :count=\"transactions.length\"\n :custom-fields=\"customFields\"\n :submitted-transaction=\"submittedTransaction\"\n v-on:uploaded-attachments=\"uploadedAttachment($event)\"\n v-on:set-marker-location=\"storeLocation($event)\"\n v-on:set-account=\"storeAccountValue($event)\"\n v-on:switch-accounts=\"switchAccounts($event)\"\n v-on:set-date=\"storeDate($event)\"\n v-on:set-time=\"storeTime($event)\"\n v-on:set-field=\"storeField($event)\"\n />\n </div>\n\n <div class=\"row\">\n <!-- group title -->\n <div class=\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\">\n <!-- buttons -->\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 \n </div>\n <button @click=\"addTransaction\" class=\"btn btn-outline-primary btn-block\"><i class=\"far fa-clone\"></i> {{ $t('firefly.add_another_split') }}\n </button>\n </div>\n <div class=\"col\">\n <div class=\"text-xs d-none d-lg-block d-xl-block\">\n \n </div>\n <button class=\"btn btn-success btn-block\" @click=\"submitTransaction\" :disabled=\"!enableSubmit\">\n <span v-if=\"enableSubmit\"><i class=\"far fa-save\"></i> {{ $t('firefly.store_transaction') }}</span>\n <span v-if=\"!enableSubmit\"><i class=\"fas fa-spinner fa-spin\"></i></span>\n </button>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n \n </div>\n <div class=\"col\">\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"checkbox\" v-model=\"createAnother\" id=\"createAnother\">\n <label class=\"form-check-label\" for=\"createAnother\">\n <span class=\"small\">{{ $t('firefly.create_another') }}</span>\n </label>\n </div>\n <div class=\"form-check\">\n <input class=\"form-check-input\" type=\"checkbox\" v-model=\"resetFormAfter\" id=\"resetFormAfter\" :disabled=\"!createAnother\">\n <label class=\"form-check-label\" for=\"resetFormAfter\">\n <span class=\"small\">{{ $t('firefly.reset_after') }}</span>\n </label>\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'\nimport Alert from '../partials/Alert';\nimport SplitPills from \"./SplitPills\";\nimport TransactionGroupTitle from \"./TransactionGroupTitle\";\nimport SplitForm from \"./SplitForm\";\n\nconst {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')\n\nexport default {\n name: \"Create\",\n components: {\n SplitForm,\n Alert,\n SplitPills,\n TransactionGroupTitle,\n },\n created() {\n this.storeAllowedOpposingTypes();\n this.storeAccountToTransaction();\n this.storeCustomFields();\n this.addTransaction();\n },\n data() {\n return {\n // error or success message\n errorMessage: '',\n successMessage: '',\n\n // custom fields, useful for components:\n customFields: [],\n\n // states for the form (makes sense right)\n enableSubmit: true,\n createAnother: false,\n resetFormAfter: false,\n\n // things the process is done working on (3 phases):\n submittedTransaction: false,\n submittedLinks: false,\n submittedAttachments: false,\n\n // transaction was actually submitted?\n inError: false,\n\n // number of uploaded attachments\n // its an object because we count per transaction journal (which can have multiple attachments)\n // and array doesn't work right.\n submittedAttCount: {},\n\n // errors in the group title:\n groupTitleErrors: [],\n\n // group ID + title once submitted:\n returnedGroupId: 0,\n returnedGroupTitle: '',\n\n // meta data:\n accountToTransaction: {}\n }\n },\n computed: {\n ...mapGetters([\n 'transactionType',\n 'transactions',\n 'date',\n 'time',\n 'groupTitle'\n ])\n },\n watch: {\n submittedTransaction: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n },\n submittedLinks: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n },\n submittedAttachments: function () {\n // see finalizeSubmit()\n this.finalizeSubmit();\n }\n },\n methods: {\n /**\n * Store related mutators used by this component.\n */\n ...mapMutations(\n [\n 'addTransaction',\n 'deleteTransaction',\n 'setAllowedOpposingTypes',\n 'setTransactionError',\n 'setTransactionType',\n 'resetErrors',\n 'updateField',\n 'resetTransactions',\n 'setDate',\n 'setTime'\n ],\n ),\n /**\n * Removes a split from the array.\n */\n removeTransaction: function (index) {\n this.$store.commit('transactions/create/deleteTransaction', {index: index});\n },\n /**\n * This method grabs the users preferred custom transaction fields. It's used when configuring the\n * custom date selects that will be available. It could be something the component does by itself,\n * thereby separating concerns. This is on my list. If it changes to a per-component thing, then\n * it should be done via the create.js Vue store because multiple components are interested in the\n * user's custom transaction fields.\n */\n storeCustomFields: function () {\n axios.get('./api/v1/preferences/transaction_journal_optional_fields').then(response => {\n this.customFields = response.data.data.attributes.data;\n });\n },\n /**\n * Submitting a transaction consists of 3 steps: submitting the transaction, uploading attachments\n * and creating links. Only once all three steps are executed may the message be shown or the user be\n * forwarded.\n */\n finalizeSubmit() {\n console.log('finalizeSubmit (' + this.submittedTransaction + ', ' + this.submittedAttachments + ', ' + this.submittedLinks + ')');\n if (this.submittedTransaction && this.submittedAttachments && this.submittedLinks) {\n console.log('all true');\n console.log('createAnother = ' + this.createAnother);\n console.log('inError = ' + this.inError);\n if (false === this.createAnother && false === this.inError) {\n console.log('redirect');\n window.location.href = (window.previousURL ?? '/') + '?transaction_group_id=' + this.returnedGroupId + '&message=created';\n return;\n }\n\n\n if (false === this.inError) {\n // show message:\n this.errorMessage = '';\n this.successMessage = this.$t('firefly.transaction_stored_link', {ID: this.returnedGroupId, title: this.returnedGroupTitle});\n }\n\n // enable flags:\n this.enableSubmit = true;\n this.submittedTransaction = false;\n this.submittedLinks = false;\n this.submittedAttachments = false;\n this.inError = false;\n\n\n // reset attachments (always do this)\n for (let i in this.transactions) {\n if (this.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n if (this.transactions.hasOwnProperty(i)) {\n // console.log('Reset attachment #' + i);\n this.updateField({index: i, field: 'transaction_journal_id', value: 0});\n }\n }\n }\n this.submittedAttCount = [];\n\n // reset the form:\n if (this.resetFormAfter) {\n this.resetTransactions();\n // do a short time out?\n setTimeout(() => this.addTransaction(), 50);\n }\n // console.log('Done with finalizeSubmit!');\n // return;\n }\n // console.log('Did nothing in finalizeSubmit');\n },\n /**\n * Actually submit the transaction to Firefly III. This is a fairly complex beast of a thing because multiple things\n * need to happen in the right order.\n */\n submitTransaction: function () {\n console.log('submitTransaction()');\n // disable the submit button:\n this.enableSubmit = false;\n\n // convert the data so its ready to be submitted:\n const url = './api/v1/transactions';\n const data = this.convertData();\n\n console.log('Will submit:');\n console.log(data);\n\n // POST the transaction.\n axios.post(url, data)\n .then(response => {\n console.log('Response is OK!');\n // report the transaction is submitted.\n this.submittedTransaction = true;\n\n // submit links and attachments (can only be done when the transaction is created)\n this.submitTransactionLinks(data, response);\n this.submitAttachments(data, response);\n\n // meanwhile, store the ID and the title in some easy to access variables.\n this.returnedGroupId = parseInt(response.data.data.id);\n this.returnedGroupTitle = null === response.data.data.attributes.group_title ? response.data.data.attributes.transactions[0].description : response.data.data.attributes.group_title;\n // console.log('Group title is now \"' + this.groupTitle + '\"');\n })\n .catch(error => {\n // oh noes Firefly III has something to bitch about.\n this.enableSubmit = true;\n // console.log('enable submit = true');\n // report the transaction is submitted.\n this.submittedTransaction = true;\n // also report attachments and links are submitted:\n this.submittedAttachments = true;\n this.submittedLinks = true;\n\n // but report an error because error:\n this.inError = true;\n this.parseErrors(error.response.data);\n });\n },\n\n /**\n * Submitting transactions means we will give each TransactionAttachment component\n * the ID of the transaction journal (so it works for multiple splits). Each component\n * will then start uploading their transactions (so its a separated concern) and report\n * back to the \"uploadedAttachment\" function below via an event emitter.\n *\n * The ID is set via the store.\n */\n submitAttachments: function (data, response) {\n console.log('submitAttachments()');\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 /**\n * When a attachment component is done uploading it ends up here. We create an object where we count how many\n * attachment components have reported back they're done uploading. Of course if they have nothing to upload\n * they will be pretty fast in reporting they're done.\n *\n * Once the number of components matches the number of splits we know all attachments have been uploaded.\n */\n uploadedAttachment: function (journalId) {\n console.log('Triggered uploadedAttachment(' + journalId + ')');\n let key = 'str' + journalId;\n this.submittedAttCount[key] = 1;\n let count = Object.keys(this.submittedAttCount).length;\n if (count === this.transactions.length) {\n // mark the attachments as stored:\n this.submittedAttachments = true;\n }\n },\n /**\n * Responds to changed location.\n */\n storeLocation: function (payload) {\n let zoomLevel = payload.hasMarker ? payload.zoomLevel : null;\n let lat = payload.hasMarker ? payload.lat : null;\n let lng = payload.hasMarker ? payload.lng : null;\n this.updateField({index: payload.index, field: 'zoom_level', value: zoomLevel});\n this.updateField({index: payload.index, field: 'latitude', value: lat});\n this.updateField({index: payload.index, field: 'longitude', value: lng});\n },\n /**\n * Responds to changed account.\n */\n storeAccountValue: function (payload) {\n this.updateField({index: payload.index, field: payload.direction + '_account_id', value: payload.id});\n this.updateField({index: payload.index, field: payload.direction + '_account_type', value: payload.type});\n this.updateField({index: payload.index, field: payload.direction + '_account_name', value: payload.name});\n\n this.updateField({index: payload.index, field: payload.direction + '_account_currency_id', value: payload.currency_id});\n this.updateField({index: payload.index, field: payload.direction + '_account_currency_code', value: payload.currency_code});\n this.updateField({index: payload.index, field: payload.direction + '_account_currency_symbol', value: payload.currency_symbol});\n\n this.calculateTransactionType(payload.index);\n },\n storeField: function (payload) {\n this.updateField(payload);\n },\n storeDate: function (value) {\n this.setDate(value.date)\n },\n storeTime: function (value) {\n this.setTime(value.time)\n },\n\n /**\n * Calculate the transaction type based on what's currently in the store.\n */\n calculateTransactionType: function (index) {\n //console.log('calculateTransactionType(' + index + ')');\n if (0 === index) {\n let source = this.transactions[0].source_account_type;\n let dest = this.transactions[0].destination_account_type;\n if (null === source || null === dest) {\n //console.log('transactionType any');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n //console.log('calculateTransactionType: either type is NULL so no dice.');\n return;\n }\n if ('' === source || '' === dest) {\n //console.log('transactionType any');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n //console.log('calculateTransactionType: either type is empty so no dice.');\n return;\n }\n // ok so type is set on both:\n let expectedDestinationTypes = this.accountToTransaction[source];\n if ('undefined' !== typeof expectedDestinationTypes) {\n let transactionType = expectedDestinationTypes[dest];\n if ('undefined' !== typeof expectedDestinationTypes[dest]) {\n //console.log('Found a type: ' + transactionType);\n this.setTransactionType(transactionType);\n //this.$store.commit('setTransactionType', transactionType);\n //console.log('calculateTransactionType: ' + source + ' --> ' + dest + ' = ' + transactionType);\n return;\n }\n }\n //console.log('Found no type for ' + source + ' --> ' + dest);\n if ('Asset account' !== source) {\n //console.log('Drop ID from destination.');\n this.updateField({index: 0, field: 'destination_account_id', value: null});\n //console.log('calculateTransactionType: drop ID from destination.');\n // source.id =null\n // context.commit('updateField', {field: 'source_account',index: })\n // context.state.transactions[0].source_account.id = null;\n }\n if ('Asset account' !== dest) {\n //console.log('Drop ID from source.');\n this.updateField({index: 0, field: 'source_account_id', value: null});\n //console.log('calculateTransactionType: drop ID from source.');\n //context.state.transactions[0].destination_account.id = null;\n }\n //console.log('calculateTransactionType: fallback, type to any.');\n this.setTransactionType('any');\n //this.$store.commit('setTransactionType', 'any');\n }\n },\n /**\n * Submit transaction links.\n */\n submitTransactionLinks(data, response) {\n //console.log('submitTransactionLinks()');\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.submittedLinks = true;\n return;\n }\n Promise.all(promises).then(function () {\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 this.successMessage = '';\n this.errorMessage = this.$t('firefly.errors_submission');\n if (typeof errors.errors === 'undefined') {\n this.successMessage = '';\n this.errorMessage = errors.message;\n }\n\n let payload;\n //payload = {index: 0, field: 'description', errors: ['Test error index 0']};\n //this.setTransactionError(payload);\n\n //payload = {index: 1, field: 'description', errors: ['Test error index 1']};\n //this.setTransactionError(payload);\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 // console.log('Error index: \"' + key + '\"');\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\n // set error in this object thing.\n // console.log('The errors in key \"' + key + '\" are');\n // console.log(errors.errors[key]);\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 //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 },\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 i in this.transactions) {\n if (this.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n data.transactions.push(this.convertSplit(i, this.transactions[i]));\n }\n }\n if (data.transactions.length > 1) {\n data.group_title = data.transactions[0].description;\n }\n\n // depending on the transaction type for this thing, we need to\n // make sure other splits match the data we submit.\n if (data.transactions.length > 1) {\n // console.log('This is a split!');\n data = this.synchronizeAccounts(data);\n }\n\n return data;\n },\n synchronizeAccounts: function (data) {\n // console.log('synchronizeAccounts: ' + this.transactionType);\n // make sure all splits have whatever is in split 0.\n // since its a transfer we can drop the name and use ID's only.\n for (let i in data.transactions) {\n if (data.transactions.hasOwnProperty(i) && /^0$|^[1-9]\\d*$/.test(i) && i <= 4294967294) {\n // console.log('now at ' + i);\n\n // for transfers, overrule both the source and the destination:\n if ('Transfer' === this.transactionType) {\n data.transactions[i].source_name = null;\n data.transactions[i].destination_name = null;\n if (i > 0) {\n data.transactions[i].source_id = data.transactions[0].source_id;\n data.transactions[i].destination_id = data.transactions[0].destination_id;\n }\n }\n // for deposits, overrule the destination and ignore the rest.\n if ('Deposit' === this.transactionType) {\n data.transactions[i].destination_name = null;\n if (i > 0) {\n data.transactions[i].destination_id = data.transactions[0].destination_id;\n }\n }\n\n // for withdrawals, overrule the source and ignore the rest.\n if ('Withdrawal' === this.transactionType) {\n data.transactions[i].source_name = null;\n if (i > 0) {\n data.transactions[i].source_id = data.transactions[0].source_id;\n }\n }\n }\n }\n return data;\n\n },\n\n switchAccounts: function (index) {\n console.log('user wants to switch Accounts');\n let origSourceId = this.transactions[index].source_account_id;\n let origSourceName = this.transactions[index].source_account_name;\n let origSourceType = this.transactions[index].source_account_type;\n\n let origDestId = this.transactions[index].destination_account_id;\n let origDestName = this.transactions[index].destination_account_name;\n let origDestType = this.transactions[index].destination_account_type;\n\n this.updateField({index: 0, field: 'source_account_id', value: origDestId});\n this.updateField({index: 0, field: 'source_account_name', value: origDestName});\n this.updateField({index: 0, field: 'source_account_type', value: origDestType});\n\n this.updateField({index: 0, field: 'destination_account_id', value: origSourceId});\n this.updateField({index: 0, field: 'destination_account_name', value: origSourceName});\n this.updateField({index: 0, field: 'destination_account_type', value: origSourceType});\n this.calculateTransactionType(0);\n },\n\n\n /**\n *\n * @param key\n * @param array\n */\n convertSplit: function (key, array) {\n let dateStr = 'invalid';\n if (\n this.time instanceof Date && !isNaN(this.time) &&\n this.date instanceof Date && !isNaN(this.date)\n ) {\n let theDate = new Date(this.date);\n // update time in date object.\n theDate.setHours(this.time.getHours());\n theDate.setMinutes(this.time.getMinutes());\n theDate.setSeconds(this.time.getSeconds());\n dateStr = this.toW3CString(this.date);\n }\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 // location:\n zoom_level: array.zoom_level,\n longitude: array.longitude,\n latitude: array.latitude,\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 && '' !== array.foreign_amount) {\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 // default to source:\n currentSplit.currency_id = array.source_account_currency_id;\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 currentSplit.currency_id = array.destination_account_currency_id;\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 storeAllowedOpposingTypes: function () {\n // take this from API:\n this.setAllowedOpposingTypes(window.allowedOpposingTypes);\n },\n storeAccountToTransaction: function () {\n axios.get('./api/v1/configuration/static/firefly.account_to_transaction')\n .then(response => {\n this.accountToTransaction = response.data['firefly.account_to_transaction'];\n });\n },\n\n },\n\n}\n</script>\n\n<style scoped>\n\n</style>","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--4-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./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=5bb53cab&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 \"5bb53cab\",\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('alert',{attrs:{\"message\":_vm.errorMessage,\"type\":\"danger\"}}),_vm._v(\" \"),_c('alert',{attrs:{\"message\":_vm.successMessage,\"type\":\"success\"}}),_vm._v(\" \"),_c('SplitPills',{attrs:{\"transactions\":_vm.transactions}}),_vm._v(\" \"),_c('div',{staticClass:\"tab-content\"},_vm._l((this.transactions),function(transaction,index){return _c('SplitForm',{key:index,attrs:{\"transaction\":transaction,\"index\":index,\"count\":_vm.transactions.length,\"custom-fields\":_vm.customFields,\"submitted-transaction\":_vm.submittedTransaction},on:{\"uploaded-attachments\":function($event){return _vm.uploadedAttachment($event)},\"set-marker-location\":function($event){return _vm.storeLocation($event)},\"set-account\":function($event){return _vm.storeAccountValue($event)},\"switch-accounts\":function($event){return _vm.switchAccounts($event)},\"set-date\":function($event){return _vm.storeDate($event)},\"set-time\":function($event){return _vm.storeTime($event)},\"set-field\":function($event){return _vm.storeField($event)}}})}),1),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[(_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-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12\"},[_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-outline-primary btn-block\",on:{\"click\":_vm.addTransaction}},[_c('i',{staticClass:\"far fa-clone\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.add_another_split'))+\"\\n \")])]),_vm._v(\" \"),_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-success btn-block\",attrs:{\"disabled\":!_vm.enableSubmit},on:{\"click\":_vm.submitTransaction}},[(_vm.enableSubmit)?_c('span',[_c('i',{staticClass:\"far fa-save\"}),_vm._v(\" \"+_vm._s(_vm.$t('firefly.store_transaction')))]):_vm._e(),_vm._v(\" \"),(!_vm.enableSubmit)?_c('span',[_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_vm._v(\"\\n \\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.createAnother),expression:\"createAnother\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"checkbox\",\"id\":\"createAnother\"},domProps:{\"checked\":Array.isArray(_vm.createAnother)?_vm._i(_vm.createAnother,null)>-1:(_vm.createAnother)},on:{\"change\":function($event){var $$a=_vm.createAnother,$$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.createAnother=$$a.concat([$$v]))}else{$$i>-1&&(_vm.createAnother=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.createAnother=$$c}}}}),_vm._v(\" \"),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"createAnother\"}},[_c('span',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.$t('firefly.create_another')))])])]),_vm._v(\" \"),_c('div',{staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.resetFormAfter),expression:\"resetFormAfter\"}],staticClass:\"form-check-input\",attrs:{\"type\":\"checkbox\",\"id\":\"resetFormAfter\",\"disabled\":!_vm.createAnother},domProps:{\"checked\":Array.isArray(_vm.resetFormAfter)?_vm._i(_vm.resetFormAfter,null)>-1:(_vm.resetFormAfter)},on:{\"change\":function($event){var $$a=_vm.resetFormAfter,$$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.resetFormAfter=$$a.concat([$$v]))}else{$$i>-1&&(_vm.resetFormAfter=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.resetFormAfter=$$c}}}}),_vm._v(\" \"),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"resetFormAfter\"}},[_c('span',{staticClass:\"small\"},[_vm._v(_vm._s(_vm.$t('firefly.reset_after')))])])])])])])])])])],1)}\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