From 3c3ba637b55f43054a2555e1216d8046cbf5d83e Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 5 May 2020 07:44:33 +0200 Subject: [PATCH] Make sure demo user can't upload attachments. --- .../V1/Controllers/AttachmentController.php | 4 ++ app/Api/V1/Middleware/ApiDemoUser.php | 61 +++++++++++++++++++ composer.lock | 30 ++++----- config/import.php | 4 +- public/v1/js/create_transaction.js | 2 +- public/v1/js/edit_transaction.js | 2 +- .../transactions/CreateTransaction.vue | 13 +++- .../transactions/EditTransaction.vue | 13 +++- 8 files changed, 108 insertions(+), 21 deletions(-) create mode 100644 app/Api/V1/Middleware/ApiDemoUser.php diff --git a/app/Api/V1/Controllers/AttachmentController.php b/app/Api/V1/Controllers/AttachmentController.php index a2895d4847..562f1f81e2 100644 --- a/app/Api/V1/Controllers/AttachmentController.php +++ b/app/Api/V1/Controllers/AttachmentController.php @@ -23,10 +23,12 @@ declare(strict_types=1); namespace FireflyIII\Api\V1\Controllers; +use FireflyIII\Api\V1\Middleware\ApiDemoUser; use FireflyIII\Api\V1\Requests\AttachmentStoreRequest; use FireflyIII\Api\V1\Requests\AttachmentUpdateRequest; use FireflyIII\Exceptions\FireflyException; use FireflyIII\Helpers\Attachments\AttachmentHelperInterface; +use FireflyIII\Http\Middleware\IsDemoUser; use FireflyIII\Models\Attachment; use FireflyIII\Repositories\Attachment\AttachmentRepositoryInterface; use FireflyIII\Transformers\AttachmentTransformer; @@ -58,6 +60,7 @@ class AttachmentController extends Controller public function __construct() { parent::__construct(); + $this->middleware(ApiDemoUser::class)->except(['delete', 'download', 'show', 'index']); $this->middleware( function ($request, $next) { /** @var User $user */ @@ -65,6 +68,7 @@ class AttachmentController extends Controller $this->repository = app(AttachmentRepositoryInterface::class); $this->repository->setUser($user); + return $next($request); } ); diff --git a/app/Api/V1/Middleware/ApiDemoUser.php b/app/Api/V1/Middleware/ApiDemoUser.php new file mode 100644 index 0000000000..5323877208 --- /dev/null +++ b/app/Api/V1/Middleware/ApiDemoUser.php @@ -0,0 +1,61 @@ +. + */ +declare(strict_types=1); + +namespace FireflyIII\Api\V1\Middleware; + +use Closure; +use FireflyIII\Repositories\User\UserRepositoryInterface; +use FireflyIII\User; +use Illuminate\Http\Request; + +/** + * Class ApiDemoUser. + */ +class ApiDemoUser +{ + /** + * Handle an incoming request. + * + * @param Request $request + * @param Closure $next + * + * @return mixed + */ + public function handle(Request $request, Closure $next) + { + /** @var User $user */ + $user = $request->user(); + + if (null === $user) { + return $next($request); + } + + /** @var UserRepositoryInterface $repository */ + $repository = app(UserRepositoryInterface::class); + + if ($repository->hasRole($user, 'demo')) { + return response('', 403); + } + + return $next($request); + } +} diff --git a/composer.lock b/composer.lock index deed74711f..5e8afa915f 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "adldap2/adldap2", - "version": "v10.2.3", + "version": "v10.3.0", "source": { "type": "git", "url": "https://github.com/Adldap2/Adldap2.git", - "reference": "2baffac2dfef308f0a94afa360b6a77540730fd2" + "reference": "1294c92746e3fb3bb59cd7756ca7838a1e705a2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/2baffac2dfef308f0a94afa360b6a77540730fd2", - "reference": "2baffac2dfef308f0a94afa360b6a77540730fd2", + "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/1294c92746e3fb3bb59cd7756ca7838a1e705a2a", + "reference": "1294c92746e3fb3bb59cd7756ca7838a1e705a2a", "shasum": "" }, "require": { @@ -63,7 +63,7 @@ "ldap", "windows" ], - "time": "2020-03-08T23:04:47+00:00" + "time": "2020-05-04T21:10:15+00:00" }, { "name": "adldap2/adldap2-laravel", @@ -1748,16 +1748,16 @@ }, { "name": "league/commonmark", - "version": "1.4.2", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "9e780d972185e4f737a03bade0fd34a9e67bbf31" + "reference": "412639f7cfbc0b31ad2455b2fe965095f66ae505" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/9e780d972185e4f737a03bade0fd34a9e67bbf31", - "reference": "9e780d972185e4f737a03bade0fd34a9e67bbf31", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/412639f7cfbc0b31ad2455b2fe965095f66ae505", + "reference": "412639f7cfbc0b31ad2455b2fe965095f66ae505", "shasum": "" }, "require": { @@ -1844,7 +1844,7 @@ "type": "tidelift" } ], - "time": "2020-04-24T13:39:56+00:00" + "time": "2020-05-04T22:15:21+00:00" }, { "name": "league/csv", @@ -8014,12 +8014,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "478dd17a48d0eb007ff854f4b885034df5db7c29" + "reference": "f46390d28af4fdb07c09d9aabf4c4e35149a7a08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/478dd17a48d0eb007ff854f4b885034df5db7c29", - "reference": "478dd17a48d0eb007ff854f4b885034df5db7c29", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/f46390d28af4fdb07c09d9aabf4c4e35149a7a08", + "reference": "f46390d28af4fdb07c09d9aabf4c4e35149a7a08", "shasum": "" }, "conflict": { @@ -8109,7 +8109,7 @@ "magento/product-community-edition": ">=2,<2.2.10|>=2.3,<2.3.2-p.2", "monolog/monolog": ">=1.8,<1.12", "namshi/jose": "<2.2", - "nzo/url-encryptor-bundle": "<5.0.1", + "nzo/url-encryptor-bundle": ">=4,<4.3.2|>=5,<5.0.1", "onelogin/php-saml": "<2.10.4", "oneup/uploader-bundle": "<1.9.3|>=2,<2.1.5", "openid/php-openid": "<2.3", @@ -8283,7 +8283,7 @@ "type": "tidelift" } ], - "time": "2020-05-03T18:57:18+00:00" + "time": "2020-05-04T14:37:25+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", diff --git a/config/import.php b/config/import.php index 0959ed2bdd..21f5d74422 100644 --- a/config/import.php +++ b/config/import.php @@ -47,11 +47,11 @@ return [ 'file' => false, 'bunq' => false, 'spectre' => true, - 'ynab' => true, + 'ynab' => false, 'plaid' => false, 'quovo' => false, 'yodlee' => false, - 'fints' => true, + 'fints' => false, 'bad' => false, // always disabled ], // demo user can use these import providers (when enabled): diff --git a/public/v1/js/create_transaction.js b/public/v1/js/create_transaction.js index bd32bcd718..69922a2d30 100644 --- a/public/v1/js/create_transaction.js +++ b/public/v1/js/create_transaction.js @@ -1,2 +1,2 @@ /*! For license information please see create_transaction.js.LICENSE.txt */ -!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=81)}([function(t,e,n){"use strict";function a(t,e,n,a,i,r,o,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),a&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var A=u.beforeCreate;u.beforeCreate=A?[].concat(A,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";var a=n(5),i=n(12),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,a=t.length;n=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){c.headers[t]=a.merge(r)})),t.exports=c}).call(this,n(10))},function(t,e,n){t.exports=n(11)},,function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),a=0;a1)for(var n=1;n=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=a.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?{write:function(t,e,n,i,r,o){var s=[];s.push(t+"="+encodeURIComponent(e)),a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(i)&&s.push("path="+i),a.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var a=n(1);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){a.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var a=n(1),i=n(23),r=n(8),o=n(2),s=n(24),c=n(25);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=a.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var a=n(1);t.exports=function(t,e,n){return a.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var a=n(9);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new a(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){window.axios=n(3),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var a=document.head.querySelector('meta[name="csrf-token"]');a?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=a.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},function(t,e,n){window,t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=6)}([function(t,e,n){var a=n(8);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("7ec05f6c",a,!1,{})},function(t,e,n){var a=n(10);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("3453d19d",a,!1,{})},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"==typeof btoa){var r=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[a].concat(o).concat([r]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;in.parts.length&&(a.parts.length=n.parts.length)}else{var o=[];for(i=0;i div[data-v-61d92e31] {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%;\n}\n.ti-selected-item[data-v-61d92e31] {\n background-color: #5C6BC0;\n color: #fff;\n}\n',"",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,mCAA8C;EAC9C,+JAAuM;EACvM,oBAAoB;EACpB,mBAAmB;CAAE;AAEvB;EACE,kCAAkC;EAClC,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EACf,oCAAoC;EACpC,mCAAmC;CAAE;AAEvC;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,YAAY;EACZ,aAAa;EACb,sBAAsB;CAAE;AAE1B;EACE,uBAAuB;CAAE;AAE3B;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE;AAElC;EACE,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;CAAE;AAE3B;EACE,aAAa;CAAE;AACf;IACE,gBAAgB;CAAE;AAEtB;EACE,uBAAuB;EACvB,cAAc;EACd,aAAa;EACb,gBAAgB;CAAE;AAEpB;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;CAAE;AAErB;EACE,0BAA0B;EAC1B,YAAY;EACZ,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,cAAc;CAAE;AAClB;IACE,cAAc;IACd,oBAAoB;CAAE;AACxB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;CAAE;AACrB;IACE,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,kBAAkB;CAAE;AACpB;MACE,gBAAgB;CAAE;AACtB;IACE,kBAAkB;CAAE;AACtB;IACE,0BAA0B;CAAE;AAEhC;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;CAAE;AAElB;EACE,qBAAqB;CAAE;AAEzB;EACE,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,YAAY;CAAE;AAEhB;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;CAAE;AAEhB;EACE,0BAA0B;EAC1B,YAAY;CAAE",file:"vue-tags-input.scss?vue&type=style&index=0&id=61d92e31&lang=scss&scoped=true&",sourcesContent:['@font-face {\n font-family: \'icomoon\';\n src: url("./assets/fonts/icomoon.eot?7grlse");\n src: url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"), url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"), url("./assets/fonts/icomoon.woff?7grlse") format("woff");\n font-weight: normal;\n font-style: normal; }\n\n[class^="ti-icon-"], [class*=" ti-icon-"] {\n font-family: \'icomoon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.ti-icon-check:before {\n content: "\\e902"; }\n\n.ti-icon-close:before {\n content: "\\e901"; }\n\n.ti-icon-undo:before {\n content: "\\e900"; }\n\nul {\n margin: 0px;\n padding: 0px;\n list-style-type: none; }\n\n*, *:before, *:after {\n box-sizing: border-box; }\n\ninput:focus {\n outline: none; }\n\ninput[disabled] {\n background-color: transparent; }\n\n.vue-tags-input {\n max-width: 450px;\n position: relative;\n background-color: #fff; }\n\ndiv.vue-tags-input.disabled {\n opacity: 0.5; }\n div.vue-tags-input.disabled * {\n cursor: default; }\n\n.ti-input {\n border: 1px solid #ccc;\n display: flex;\n padding: 4px;\n flex-wrap: wrap; }\n\n.ti-tags {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n line-height: 1em; }\n\n.ti-tag {\n background-color: #5C6BC0;\n color: #fff;\n border-radius: 2px;\n display: flex;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-tag:focus {\n outline: none; }\n .ti-tag .ti-content {\n display: flex;\n align-items: center; }\n .ti-tag .ti-tag-center {\n position: relative; }\n .ti-tag span {\n line-height: .85em; }\n .ti-tag span.ti-hidden {\n padding-left: 14px;\n visibility: hidden;\n height: 0px;\n white-space: pre; }\n .ti-tag .ti-actions {\n margin-left: 2px;\n display: flex;\n align-items: center;\n font-size: 1.15em; }\n .ti-tag .ti-actions i {\n cursor: pointer; }\n .ti-tag:last-child {\n margin-right: 4px; }\n .ti-tag.ti-invalid, .ti-tag.ti-tag.ti-deletion-mark {\n background-color: #e54d42; }\n\n.ti-new-tag-input-wrapper {\n display: flex;\n flex: 1 0 auto;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-new-tag-input-wrapper input {\n flex: 1 0 auto;\n min-width: 100px;\n border: none;\n padding: 0px;\n margin: 0px; }\n\n.ti-new-tag-input {\n line-height: initial; }\n\n.ti-autocomplete {\n border: 1px solid #ccc;\n border-top: none;\n position: absolute;\n width: 100%;\n background-color: #fff;\n z-index: 20; }\n\n.ti-item > div {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%; }\n\n.ti-selected-item {\n background-color: #5C6BC0;\n color: #fff; }\n'],sourceRoot:""}])},function(t,e,n){"use strict";t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(t,e){t.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":t.disabled},{"ti-focus":t.focused}]},[n("div",{staticClass:"ti-input"},[t.tagsCopy?n("ul",{staticClass:"ti-tags"},[t._l(t.tagsCopy,(function(e,a){return n("li",{key:a,staticClass:"ti-tag",class:[{"ti-editing":t.tagsEditStatus[a]},e.tiClasses,e.classes,{"ti-deletion-mark":t.isMarked(a)}],style:e.style,attrs:{tabindex:"0"},on:{click:function(n){return t.$emit("tag-clicked",{tag:e,index:a})}}},[n("div",{staticClass:"ti-content"},[t.$scopedSlots["tag-left"]?n("div",{staticClass:"ti-tag-left"},[t._t("tag-left",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e(),t._v(" "),n("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[t.$scopedSlots["tag-center"]?t._e():n("span",{class:{"ti-hidden":t.tagsEditStatus[a]},on:{click:function(e){return t.performEditTag(a)}}},[t._v(t._s(e.text))]),t._v(" "),t.$scopedSlots["tag-center"]?t._e():n("tag-input",{attrs:{scope:{edit:t.tagsEditStatus[a],maxlength:t.maxlength,tag:e,index:a,validateTag:t.createChangedTag,performCancelEdit:t.cancelEdit,performSaveEdit:t.performSaveTag}}}),t._v(" "),t._t("tag-center",null,{tag:e,index:a,maxlength:t.maxlength,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,validateTag:t.createChangedTag,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2),t._v(" "),t.$scopedSlots["tag-right"]?n("div",{staticClass:"ti-tag-right"},[t._t("tag-right",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e()]),t._v(" "),n("div",{staticClass:"ti-actions"},[t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:t.tagsEditStatus[a],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(e){return t.cancelEdit(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:!t.tagsEditStatus[a],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(e){return t.performDeleteTag(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._t("tag-actions",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)}):t._e()],2)])})),t._v(" "),n("li",{staticClass:"ti-new-tag-input-wrapper"},[n("input",t._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[t.createClasses(t.newTag,t.tags,t.validation,t.isDuplicate)],attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,type:"text",size:"1"},domProps:{value:t.newTag},on:{keydown:[function(e){return t.performAddTags(t.filteredAutocompleteItems[t.selectedItem]||t.newTag,e)},function(e){return e.type.indexOf("key")||8===e.keyCode?t.invokeDelete(e):null},function(e){return e.type.indexOf("key")||9===e.keyCode?t.performBlur(e):null},function(e){return e.type.indexOf("key")||38===e.keyCode?t.selectItem(e,"before"):null},function(e){return e.type.indexOf("key")||40===e.keyCode?t.selectItem(e,"after"):null}],paste:t.addTagsFromPaste,input:t.updateNewTag,blur:function(e){return t.$emit("blur",e)},focus:function(e){t.focused=!0,t.$emit("focus",e)},click:function(e){!t.addOnlyFromAutocomplete&&(t.selectedItem=null)}}},"input",t.$attrs,!1))])],2):t._e()]),t._v(" "),t._t("between-elements"),t._v(" "),t.autocompleteOpen?n("div",{staticClass:"ti-autocomplete",on:{mouseout:function(e){t.selectedItem=null}}},[t._t("autocomplete-header"),t._v(" "),n("ul",t._l(t.filteredAutocompleteItems,(function(e,a){return n("li",{key:a,staticClass:"ti-item",class:[e.tiClasses,e.classes,{"ti-selected-item":t.isSelected(a)}],style:e.style,on:{mouseover:function(e){!t.disabled&&(t.selectedItem=a)}}},[t.$scopedSlots["autocomplete-item"]?t._t("autocomplete-item",null,{item:e,index:a,performAdd:function(e){return t.performAddTags(e,void 0,"autocomplete")},selected:t.isSelected(a)}):n("div",{on:{click:function(n){return t.performAddTags(e,void 0,"autocomplete")}}},[t._v("\n "+t._s(e.text)+"\n ")])],2)})),0),t._v(" "),t._t("autocomplete-footer")],2):t._e()],2)};a._withStripped=!0;var i=n(5),r=n.n(i),o=function(t){return JSON.parse(JSON.stringify(t))},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0;void 0===t.text&&(t={text:t});var i=function(t,e){return e.filter((function(e){var n=t.text;return"string"==typeof e.rule?!new RegExp(e.rule).test(n):e.rule instanceof RegExp?!e.rule.test(n):"[object Function]"==={}.toString.call(e.rule)?e.rule(t):void 0})).map((function(t){return t.classes}))}(t,n),r=function(t,e){for(var n=0;n1?n-1:0),i=1;i1?e-1:0),a=1;a=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var t=this,e=this.autocompleteItems.map((function(e){return c(e,t.tags,t.validation,t.isDuplicate)}));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:s,getSelectedIndex:function(t){var e=this.filteredAutocompleteItems,n=this.selectedItem,a=e.length-1;if(0!==e.length)return null===n?0:"before"===t&&0===n?a:"after"===t&&n===a?0:"after"===t?n+1:n-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(t,e){t.preventDefault(),this.selectedItem=this.getSelectedIndex(e)},isSelected:function(t){return this.selectedItem===t},isMarked:function(t){return this.deletionMark===t},invokeDelete:function(){var t=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var e=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout((function(){return t.deletionMark=null}),1e3),this.deletionMark=e):this.performDeleteTag(e)}},addTagsFromPaste:function(){var t=this;this.addFromPaste&&setTimeout((function(){return t.performAddTags(t.newTag)}),10)},performEditTag:function(t){var e=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(t),this.$emit("before-editing-tag",{index:t,tag:this.tagsCopy[t],editTag:function(){return e.editTag(t)}}))},editTag:function(t){this.allowEditTags&&(this.toggleEditMode(t),this.focus(t))},toggleEditMode:function(t){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,t,!this.tagsEditStatus[t])},createChangedTag:function(t,e){var n=this.tagsCopy[t];n.text=e?e.target.value:this.tagsCopy[t].text,this.$set(this.tagsCopy,t,c(n,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.tagCenter[t].querySelector("input.ti-tag-input");n&&n.focus()}))},quote:function(t){return t.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(t){this.tags[t]&&(this.tagsCopy[t]=o(c(this.tags[t],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,t,!1))},hasForbiddingAddRule:function(t){var e=this;return t.some((function(t){var n=e.validation.find((function(e){return t===e.classes}));return!!n&&n.disableAdd}))},createTagTexts:function(t){var e=this,n=new RegExp(this.separators.map((function(t){return e.quote(t)})).join("|"));return t.split(n).map((function(t){return{text:t}}))},performDeleteTag:function(t){var e=this;this._events["before-deleting-tag"]||this.deleteTag(t),this.$emit("before-deleting-tag",{index:t,tag:this.tagsCopy[t],deleteTag:function(){return e.deleteTag(t)}})},deleteTag:function(t){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(t,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(t,e){var n=-1!==this[e].indexOf(t.keyCode)||-1!==this[e].indexOf(t.key);return n&&t.preventDefault(),!n},performAddTags:function(t,e,n){var a=this;if(!(this.disabled||e&&this.noTriggerKey(e,"addOnKey"))){var i=[];"object"===m(t)&&(i=[t]),"string"==typeof t&&(i=this.createTagTexts(t)),(i=i.filter((function(t){return t.text.trim().length>0}))).forEach((function(t){t=c(t,a.tags,a.validation,a.isDuplicate),a._events["before-adding-tag"]||a.addTag(t,n),a.$emit("before-adding-tag",{tag:t,addTag:function(){return a.addTag(t,n)}})}))}},duplicateFilter:function(t){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,t):!this.tagsCopy.find((function(e){return e.text===t.text}))},addTag:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",a=this.filteredAutocompleteItems.map((function(t){return t.text}));this.addOnlyFromAutocomplete&&-1===a.indexOf(t.text)||this.$nextTick((function(){return e.maxTags&&e.maxTags<=e.tagsCopy.length?e.$emit("max-tags-reached",t):e.avoidAddingDuplicates&&!e.duplicateFilter(t)?e.$emit("adding-duplicate",t):void(e.hasForbiddingAddRule(t.tiClasses)||(e.$emit("input",""),e.tagsCopy.push(t),e._events["update:tags"]&&e.$emit("update:tags",e.tagsCopy),"autocomplete"===n&&e.$refs.newTagInput.focus(),e.$emit("tags-changed",e.tagsCopy)))}))},performSaveTag:function(t,e){var n=this,a=this.tagsCopy[t];this.disabled||e&&this.noTriggerKey(e,"addOnKey")||0!==a.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(t,a),this.$emit("before-saving-tag",{index:t,tag:a,saveTag:function(){return n.saveTag(t,a)}}))},saveTag:function(t,e){if(this.avoidAddingDuplicates){var n=o(this.tagsCopy),a=n.splice(t,1)[0];if(this.isDuplicate?this.isDuplicate(n,a):-1!==n.map((function(t){return t.text})).indexOf(a.text))return this.$emit("saving-duplicate",e)}this.hasForbiddingAddRule(e.tiClasses)||(this.$set(this.tagsCopy,t,e),this.toggleEditMode(t),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var t=this;return!this.tagsCopy.some((function(e,n){return!r()(e,t.tags[n])}))},updateNewTag:function(t){var e=t.target.value;this.newTag=e,this.$emit("input",e)},initTags:function(){this.tagsCopy=u(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=o(this.tags).map((function(){return!1})),this._events["update:tags"]&&!this.tagsEqual()&&this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(t){this.$el.contains(t.target)||this.$el.contains(document.activeElement)||this.performBlur(t)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{value:function(t){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=t},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.value,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},destroyed:function(){document.removeEventListener("click",this.blurredOnClick)}},y=(n(9),d(v,a,[],!1,null,"61d92e31",null));y.options.__file="vue-tags-input/vue-tags-input.vue";var b=y.exports;n.d(e,"VueTagsInput",(function(){return b})),n.d(e,"createClasses",(function(){return s})),n.d(e,"createTag",(function(){return c})),n.d(e,"createTags",(function(){return u})),n.d(e,"TagInput",(function(){return f})),b.install=function(t){return t.component(b.name,b)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(b),e.default=b}])},function(t,e,n){"use strict";var a={name:"CustomAttachments",props:{title:String,name:String,error:Array},methods:{hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("input",{staticClass:"form-control",attrs:{multiple:"multiple",autocomplete:"off",placeholder:t.title,title:t.title,name:t.name,type:"file"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"73840c18",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomDate",props:{value:String,title:String,name:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.date.value)},hasError:function(){return this.error.length>0},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value?t.value.substr(0,10):""},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"7a261844",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomString",props:{title:String,name:String,value:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},clearField:function(){this.name="",this.$refs.str.value="",this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"str",staticClass:"form-control",attrs:{type:"text",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"ada77346",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTextarea",props:{title:String,name:String,value:String,error:Array},data:function(){return{textValue:this.value}},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.textValue,expression:"textValue"}],ref:"str",staticClass:"form-control",attrs:{name:t.name,title:t.title,autocomplete:"off",rows:"8",placeholder:t.title},domProps:{value:t.textValue},on:{input:[function(e){e.target.composing||(t.textValue=e.target.value)},t.handleInput]}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"40389097",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"StandardDate",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.date.value)},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value),this.$emit("clear:date")}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.date"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:"date[]",title:t.$t("firefly.date"),autocomplete:"off",disabled:t.index>0,placeholder:t.$t("firefly.date")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"4e877916",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"GroupDescription",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},clearField:function(){this.name="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"group_title",title:t.$t("firefly.split_transaction_title"),autocomplete:"off",placeholder:t.$t("firefly.split_transaction_title")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),0===t.error.length?n("p",{staticClass:"help-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title_help"))+"\n ")]):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"2666c561",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"TransactionDescription",mounted:function(){this.target=this.$refs.descr,this.descriptionAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/transaction-journals/all?search=",this.$refs.descr.focus()},components:{},data:function(){return{descriptionAutoCompleteURI:null,name:null,description:null,target:null}},methods:{search:function(t){return["ab","cd"]},hasError:function(){return this.error.length>0},clearDescription:function(){this.description="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value),this.$emit("clear:description")},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},handleEnter:function(t){t.keyCode},selectedItem:function(t){void 0!==this.name&&"string"!=typeof this.name&&(this.$refs.descr.value=this.name.description,this.$emit("input",this.$refs.descr.value))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.description"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"description[]",title:t.$t("firefly.description"),autocomplete:"off",placeholder:t.$t("firefly.description")},domProps:{value:t.value},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()},input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.descriptionAutoCompleteURI,target:t.target,"item-key":"description"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"dfd3d572",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTransactionFields",props:["value","error"],mounted:function(){this.getPreference()},data:function(){return{customInterestDate:null,fields:[{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1,internal_reference:!1,notes:!1,attachments:!1}]}},computed:{dateComponent:function(){return"custom-date"},stringComponent:function(){return"custom-string"},attachmentComponent:function(){return"custom-attachments"},textareaComponent:function(){return"custom-textarea"}},methods:{handleInput:function(t){this.$emit("input",this.value)},getPreference:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"api/v1/preferences/transaction_journal_optional_fields";axios.get(e).then((function(e){t.fields=e.data.data.attributes.data})).catch((function(){return console.warn("Oh. Something went wrong loading custom transaction fields.")}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.hidden_fields_preferences"))}}),t._v(" "),this.fields.interest_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.interest_date,name:"interest_date[]",title:t.$t("form.interest_date")},model:{value:t.value.interest_date,callback:function(e){t.$set(t.value,"interest_date",e)},expression:"value.interest_date"}}):t._e(),t._v(" "),this.fields.book_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.book_date,name:"book_date[]",title:t.$t("form.book_date")},model:{value:t.value.book_date,callback:function(e){t.$set(t.value,"book_date",e)},expression:"value.book_date"}}):t._e(),t._v(" "),this.fields.process_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.process_date,name:"process_date[]",title:t.$t("form.process_date")},model:{value:t.value.process_date,callback:function(e){t.$set(t.value,"process_date",e)},expression:"value.process_date"}}):t._e(),t._v(" "),this.fields.due_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.due_date,name:"due_date[]",title:t.$t("form.due_date")},model:{value:t.value.due_date,callback:function(e){t.$set(t.value,"due_date",e)},expression:"value.due_date"}}):t._e(),t._v(" "),this.fields.payment_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.payment_date,name:"payment_date[]",title:t.$t("form.payment_date")},model:{value:t.value.payment_date,callback:function(e){t.$set(t.value,"payment_date",e)},expression:"value.payment_date"}}):t._e(),t._v(" "),this.fields.invoice_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.invoice_date,name:"invoice_date[]",title:t.$t("form.invoice_date")},model:{value:t.value.invoice_date,callback:function(e){t.$set(t.value,"invoice_date",e)},expression:"value.invoice_date"}}):t._e(),t._v(" "),this.fields.internal_reference?n(t.stringComponent,{tag:"component",attrs:{error:t.error.internal_reference,name:"internal_reference[]",title:t.$t("form.internal_reference")},model:{value:t.value.internal_reference,callback:function(e){t.$set(t.value,"internal_reference",e)},expression:"value.internal_reference"}}):t._e(),t._v(" "),this.fields.attachments?n(t.attachmentComponent,{tag:"component",attrs:{error:t.error.attachments,name:"attachments[]",title:t.$t("firefly.attachments")},model:{value:t.value.attachments,callback:function(e){t.$set(t.value,"attachments",e)},expression:"value.attachments"}}):t._e(),t._v(" "),this.fields.notes?n(t.textareaComponent,{tag:"component",attrs:{error:t.error.notes,name:"notes[]",title:t.$t("firefly.notes")},model:{value:t.value.notes,callback:function(e){t.$set(t.value,"notes",e)},expression:"value.notes"}}):t._e()],1)}),[],!1,null,"c24d33ba",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"PiggyBank",props:["value","transactionType","error","no_piggy_bank"],mounted:function(){this.loadPiggies()},data:function(){return{piggies:[]}},methods:{handleInput:function(t){this.$emit("input",this.$refs.piggy.value)},hasError:function(){return this.error.length>0},loadPiggies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/piggy-banks";axios.get(e,{}).then((function(e){for(var n in t.piggies=[{name_with_amount:t.no_piggy_bank,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.piggies.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0!==this.transactionType&&"Transfer"===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12"},[this.piggies.length>0?n("select",{ref:"piggy",staticClass:"form-control",attrs:{name:"piggy_bank[]"},on:{input:t.handleInput}},t._l(this.piggies,(function(e){return n("option",{attrs:{label:e.name_with_amount},domProps:{value:e.id}},[t._v(t._s(e.name_with_amount))])})),0):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1797c09a",null);e.a=r.exports},function(t,e,n){"use strict";var a=n(3),i=n.n(a),r=n(29),o={name:"Tags",components:{VueTagsInput:n.n(r).a},props:["value","error"],data:function(){return{tag:"",autocompleteItems:[],debounce:null,tags:this.value}},watch:{tag:"initItems"},methods:{update:function(t){this.autocompleteItems=[],this.tags=t,this.$emit("input",this.tags)},clearTags:function(){this.tags=[]},hasError:function(){return this.error.length>0},initItems:function(){var t=this;if(!(this.tag.length<2)){var e=document.getElementsByTagName("base")[0].href+"json/tags?search=".concat(this.tag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){i.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.")}))}),600)}}}},s=n(0),c=Object(s.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.tags"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("vue-tags-input",{attrs:{tags:t.tags,title:t.$t("firefly.tags"),classes:"form-input","autocomplete-items":t.autocompleteItems,"add-only-from-autocomplete":!1,placeholder:t.$t("firefly.tags")},on:{"tags-changed":t.update},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearTags}},[n("i",{staticClass:"fa fa-trash-o"})])])],1)]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"4f8ece50",null);e.a=c.exports},function(t,e,n){"use strict";var a={name:"Category",props:{value:String,inputName:String,error:Array,accountName:{type:String,default:""}},data:function(){return{categoryAutoCompleteURI:null,name:null,target:null}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input,this.categoryAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/categories?search="},methods:{hasError:function(){return this.error.length>0},handleInput:function(t){"string"!=typeof this.$refs.input.value?this.$emit("input",this.$refs.input.value.name):this.$emit("input",this.$refs.input.value)},clearCategory:function(){this.name="",this.$refs.input.value="",this.$emit("input",this.$refs.input.value),this.$emit("clear:category")},selectedItem:function(t){void 0!==this.name&&(this.$emit("select:category",this.name),"string"!=typeof this.name?this.$emit("input",this.name.name):this.$emit("input",this.name))},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.$t("firefly.category"),autocomplete:"off","data-role":"input",name:"category[]",title:t.$t("firefly.category")},domProps:{value:t.value},on:{input:t.handleInput,keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.categoryAutoCompleteURI,target:t.target,"item-key":"name"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"5fd3029c",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Amount",props:["source","destination","transactionType","value","error"],data:function(){return{sourceAccount:this.source,destinationAccount:this.destination,type:this.transactionType}},methods:{handleInput:function(t){this.$emit("input",this.$refs.amount.value)},clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},changeData:function(){var t=this.transactionType;t||this.source.name||this.destination.name?(null===t&&(t=""),""!==t||""===this.source.currency_name?""!==t||""===this.destination.currency_name?"withdrawal"!==t.toLowerCase()&&"reconciliation"!==t.toLowerCase()&&"transfer"!==t.toLowerCase()?("deposit"===t.toLowerCase()&&"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()&&$(this.$refs.cur).text(this.destination.currency_name),"deposit"!==t.toLowerCase()||"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()||$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text(this.source.currency_name):$(this.$refs.cur).text(this.destination.currency_name):$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text("")}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},mounted:function(){this.changeData()}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("firefly.amount"))+"\n ")]),t._v(" "),n("label",{ref:"cur",staticClass:"col-sm-4 control-label"}),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"amount[]",title:t.$t("firefly.amount"),autocomplete:"off",placeholder:t.$t("firefly.amount")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"440928b9",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"ForeignAmountSelect",props:["source","destination","transactionType","value","error","no_currency","title"],mounted:function(){this.liability=!1,this.loadCurrencies()},data:function(){return{currencies:[],enabledCurrencies:[],exclude:null,liability:!1}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},methods:{clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},handleInput:function(t){var e={amount:this.$refs.amount.value,currency_id:this.$refs.currency_select.value};this.$emit("input",e)},changeData:function(){this.enabledCurrencies=[];var t=this.destination.type?this.destination.type.toLowerCase():"invalid",e=this.source.type?this.source.type.toLowerCase():"invalid",n=this.transactionType?this.transactionType.toLowerCase():"invalid",a=["loan","debt","mortgage"],i=-1!==a.indexOf(e),r=-1!==a.indexOf(t);if("transfer"===n||r||i)for(var o in this.liability=!0,this.currencies)this.currencies.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&this.currencies[o].id===this.destination.currency_id&&this.enabledCurrencies.push(this.currencies[o]);else if("withdrawal"===n&&this.source&&!1===i)for(var s in this.currencies)this.currencies.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.source.currency_id!==this.currencies[s].id&&this.enabledCurrencies.push(this.currencies[s]);else if("deposit"===n&&this.destination)for(var c in this.currencies)this.currencies.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294&&this.destination.currency_id!==this.currencies[c].id&&this.enabledCurrencies.push(this.currencies[c]);else for(var u in this.currencies)this.currencies.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&this.enabledCurrencies.push(this.currencies[u])},loadCurrencies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/currencies";axios.get(e,{}).then((function(e){for(var n in t.currencies=[{name:t.no_currency,id:0,enabled:!0}],t.enabledCurrencies=[{name:t.no_currency,id:0,enabled:!0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.data[n].enabled&&(t.currencies.push(e.data[n]),t.enabledCurrencies.push(e.data[n]))}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return this.enabledCurrencies.length>=1?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("form.foreign_amount"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("select",{ref:"currency_select",staticClass:"form-control",attrs:{name:"foreign_currency[]"},on:{input:t.handleInput}},t._l(this.enabledCurrencies,(function(e){return e.enabled?n("option",{attrs:{label:e.name},domProps:{value:e.id,selected:t.value.currency_id===e.id}},[t._v("\n "+t._s(e.name)+"\n ")]):t._e()})),0)]),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[this.enabledCurrencies.length>0?n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"foreign_amount[]",title:this.title,autocomplete:"off",placeholder:this.title},domProps:{value:t.value.amount},on:{input:t.handleInput}}):t._e(),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"37601284",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{source:String,destination:String,type:String},methods:{changeValue:function(){if(this.source&&this.destination){var t="";window.accountToTypes[this.source]?window.accountToTypes[this.source][this.destination]?t=window.accountToTypes[this.source][this.destination]:console.warn("User selected an impossible destination."):console.warn("User selected an impossible source."),""!==t&&(this.transactionType=t,this.sentence=this.$t("firefly.you_create_"+t.toLowerCase()),this.$emit("act:limitSourceType",this.source),this.$emit("act:limitDestinationType",this.destination))}else this.sentence="",this.transactionType="";this.$emit("set:transactionType",this.transactionType)}},data:function(){return{transactionType:this.type,sentence:""}},watch:{source:function(){this.changeValue()},destination:function(){this.changeValue()}},name:"TransactionType"},i=n(0),r=Object(i.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-12"},[""!==this.sentence?e("label",{staticClass:"control-label text-info"},[this._v("\n "+this._s(this.sentence)+"\n ")]):this._e()])])}),[],!1,null,"0539dc1a",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{inputName:String,title:String,index:Number,transactionType:String,error:Array,accountName:{type:String,default:""},accountTypeFilters:{type:Array,default:function(){return[]}},defaultAccountTypeFilters:{type:Array,default:function(){return[]}}},data:function(){return{accountAutoCompleteURI:null,name:null,trType:this.transactionType,target:null,inputDisabled:!1,allowedTypes:this.accountTypeFilters,defaultAllowedTypes:this.defaultAccountTypeFilters}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input;var t=this.allowedTypes.join(",");this.name=this.accountName,this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search=",this.triggerTransactionType()},watch:{transactionType:function(){this.triggerTransactionType()},accountName:function(){this.name=this.accountName},accountTypeFilters:function(){var t=this.accountTypeFilters.join(",");0===this.accountTypeFilters.length&&(t=this.defaultAccountTypeFilters.join(",")),this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search="},name:function(){}},methods:{hasError:function(){return this.error.length>0},triggerTransactionType:function(){if(this.name,null!==this.transactionType&&""!==this.transactionType&&(this.inputDisabled=!1,""!==this.transactionType.toString()&&this.index>0)){if("transfer"===this.transactionType.toString().toLowerCase())return void(this.inputDisabled=!0);if("withdrawal"===this.transactionType.toString().toLowerCase()&&"source"===this.inputName.substr(0,6).toLowerCase())return void(this.inputDisabled=!0);"deposit"===this.transactionType.toString().toLowerCase()&&"destination"===this.inputName.substr(0,11).toLowerCase()&&(this.inputDisabled=!0)}},selectedItem:function(t){void 0!==this.name&&("string"==typeof this.name&&this.$emit("clear:value"),this.$emit("select:account",this.name))},clearSource:function(t){this.name="",this.$emit("clear:value")},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.title,"data-index":t.index,autocomplete:"off","data-role":"input",disabled:t.inputDisabled,name:t.inputName,title:t.title},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearSource}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.accountAutoCompleteURI,target:t.target,"item-key":"name_with_balance"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"019a1ec0",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Budget",props:{transactionType:String,value:{type:[String,Number],default:0},error:Array,no_budget:String},mounted:function(){this.loadBudgets()},data:function(){return{selected:this.value,budgets:[]}},methods:{signalChange:function(t){this.$emit("input",this.$refs.budget.value)},handleInput:function(t){this.$emit("input",this.$refs.budget.value)},hasError:function(){return this.error.length>0},loadBudgets:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/budgets";axios.get(e,{}).then((function(e){for(var n in t.budgets=[{name:t.no_budget,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.budgets.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0===this.transactionType||"withdrawal"===this.transactionType||"Withdrawal"===this.transactionType||""===this.transactionType||null===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[this.budgets.length>0?n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"budget",staticClass:"form-control",attrs:{name:"budget[]",title:t.$t("firefly.budget")},on:{input:t.handleInput,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.selected=e.target.multiple?n:n[0]},t.signalChange]}},t._l(this.budgets,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),0):t._e(),t._v(" "),1===this.budgets.length?n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.no_budget_pointer"))}}):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1e0beee7",null);e.a=r.exports},,,,,function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Jak to jde?","flash_error":"Chyba!","flash_success":"Úspěšně dokončeno!","close":"Zavřít","split_transaction_title":"Popis rozúčtování","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Rozdělit","transaction_journal_information":"Informace o transakci","no_budget_pointer":"Zdá se, že zatím nemáte žádné rozpočty. Na stránce rozpočty byste nějaké měli vytvořit. Rozpočty mohou pomoci udržet si přehled ve výdajích.","source_account":"Zdrojový účet","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Cílový účet","add_another_split":"Přidat další rozúčtování","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Odeslat","amount":"Částka","date":"Datum","tags":"Štítky","no_budget":"(žádný rozpočet)","category":"Kategorie","attachments":"Přílohy","notes":"Poznámky","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Pokud vytvoříte rozúčtování, je třeba, aby zde byl celkový popis pro všechna rozúčtování dané transakce.","none_in_select_list":"(žádné)","no_piggy_bank":"(žádná pokladnička)","description":"Popis","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Rozpočet","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Úrokové datum","book_date":"Datum rezervace","process_date":"Datum zpracování","due_date":"Datum splatnosti","foreign_amount":"Částka v cizí měně","payment_date":"Datum zaplacení","invoice_date":"Datum vystavení","internal_reference":"Interní reference"},"config":{"html_language":"cs"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Überblick","flash_error":"Fehler!","flash_success":"Geschafft!","close":"Schließen","split_transaction_title":"Beschreibung der Splittbuchung","errors_submission":"Problem bei der Übermittlung. Bitte überprüfen Sie die nachfolgenden Fehler.","split":"Teilen","transaction_journal_information":"Transaktionsinformationen","no_budget_pointer":"Sie scheinen noch keine Kostenrahmen festgelegt zu haben. Sie sollten einige davon auf der Seite „Kostenrahmen” anlegen. Kostenrahmen können Ihnen dabei helfen, den Überblick über die Ausgaben zu behalten.","source_account":"Quellkonto","hidden_fields_preferences":"Sie können weitere Buchungsoptionen in Ihren Einstellungen aktivieren.","destination_account":"Zielkonto","add_another_split":"Eine weitere Aufteilung hinzufügen","submission":"Übermittlung","create_another":"Nach dem Speichern hierher zurückkehren, um ein weiteres zu erstellen.","reset_after":"Formular nach der Übermittlung zurücksetzen","submit":"Absenden","amount":"Betrag","date":"Datum","tags":"Schlagwörter","no_budget":"(kein Budget)","category":"Kategorie","attachments":"Anhänge","notes":"Notizen","update_transaction":"Buchung aktualisieren","after_update_create_another":"Nach dem Aktualisieren hierher zurückkehren, um weiter zu bearbeiten.","store_as_new":"Als neue Buchung speichern statt zu aktualisieren.","split_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchhaltung geben.","none_in_select_list":"(Keine)","no_piggy_bank":"(kein Sparschwein)","description":"Beschreibung","split_transaction_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchung geben.","destination_account_reconciliation":"Sie können das Zielkonto einer Kontenausgleichsbuchung nicht bearbeiten.","source_account_reconciliation":"Sie können das Quellkonto einer Kontenausgleichsbuchung nicht bearbeiten.","budget":"Budget","you_create_withdrawal":"Sie haben eine Auszahlung erstellt.","you_create_transfer":"Sie haben eine Buchung erstellt.","you_create_deposit":"Sie haben eine Einzahlung erstellt."},"form":{"interest_date":"Zinstermin","book_date":"Buchungsdatum","process_date":"Bearbeitungsdatum","due_date":"Fälligkeitstermin","foreign_amount":"Ausländischer Betrag","payment_date":"Zahlungsdatum","invoice_date":"Rechnungsdatum","internal_reference":"Interner Verweis"},"config":{"html_language":"de"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Error!","flash_success":"Success!","close":"Close","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Split","transaction_journal_information":"Transaction information","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Add another split","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Submit","amount":"Amount","date":"Date","tags":"Tags","no_budget":"(no budget)","category":"Category","attachments":"Attachments","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Description","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Interest date","book_date":"Book date","process_date":"Processing date","due_date":"Due date","foreign_amount":"Foreign amount","payment_date":"Payment date","invoice_date":"Invoice date","internal_reference":"Internal reference"},"config":{"html_language":"en"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"¿Qué está pasando?","flash_error":"¡Error!","flash_success":"¡Operación correcta!","close":"Cerrar","split_transaction_title":"Descripción de la transacción dividida","errors_submission":"Hubo algo malo con su envío. Por favor, revise los errores de abajo.","split":"Separar","transaction_journal_information":"Información de transacción","no_budget_pointer":"Parece que aún no tiene presupuestos. Debe crear algunos en la página presupuestos. Los presupuestos pueden ayudarle a realizar un seguimiento de los gastos.","source_account":"Cuenta origen","hidden_fields_preferences":"Puede habilitar más opciones de transacción en sus ajustes .","destination_account":"Cuenta destino","add_another_split":"Añadir otra división","submission":"Envío","create_another":"Después de guardar, vuelve aquí para crear otro.","reset_after":"Restablecer formulario después del envío","submit":"Enviar","amount":"Cantidad","date":"Fecha","tags":"Etiquetas","no_budget":"(sin presupuesto)","category":"Categoria","attachments":"Archivos adjuntos","notes":"Notas","update_transaction":"Actualizar transacción","after_update_create_another":"Después de actualizar, vuelve aquí para continuar editando.","store_as_new":"Almacenar como una nueva transacción en lugar de actualizar.","split_title_help":"Si crea una transacción dividida, debe haber una descripción global para todos los fragmentos de la transacción.","none_in_select_list":"(ninguno)","no_piggy_bank":"(sin alcancía)","description":"Descripción","split_transaction_title_help":"Si crea una transacción dividida, debe existir una descripción global para todas las divisiones de la transacción.","destination_account_reconciliation":"No puede editar la cuenta de destino de una transacción de reconciliación.","source_account_reconciliation":"No puede editar la cuenta de origen de una transacción de reconciliación.","budget":"Presupuesto","you_create_withdrawal":"Está creando un retiro.","you_create_transfer":"Está creando una transferencia.","you_create_deposit":"Está creando un depósito."},"form":{"interest_date":"Fecha de interés","book_date":"Fecha de registro","process_date":"Fecha de procesamiento","due_date":"Fecha de vencimiento","foreign_amount":"Cantidad extranjera","payment_date":"Fecha de pago","invoice_date":"Fecha de la factura","internal_reference":"Referencia interna"},"config":{"html_language":"es"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Τι παίζει;","flash_error":"Σφάλμα!","flash_success":"Επιτυχία!","close":"Κλείσιμο","split_transaction_title":"Περιγραφή της συναλλαγής με διαχωρισμό","errors_submission":"Υπήρξε κάποιο λάθος με την υποβολή σας. Ελέγξτε τα παρακάτω σφάλματα.","split":"Διαχωρισμός","transaction_journal_information":"Πληροφορίες συναλλαγής","no_budget_pointer":"Φαίνεται πως δεν έχετε ορίσει προϋπολογισμούς ακόμη. Πρέπει να δημιουργήσετε κάποιον στη σελίδα προϋπολογισμών. Οι προϋπολογισμοί σας βοηθούν να επιβλέπετε τις δαπάνες σας.","source_account":"Λογαριασμός προέλευσης","hidden_fields_preferences":"Μπορείτε να ενεργοποιήσετε περισσότερες επιλογές συναλλαγών στις ρυθμίσεις.","destination_account":"Λογαριασμός προορισμού","add_another_split":"Προσθήκη ενός ακόμα διαχωρισμού","submission":"Υποβολή","create_another":"Μετά την αποθήκευση, επιστρέψτε εδώ για να δημιουργήσετε ακόμη ένα.","reset_after":"Επαναφορά φόρμας μετά την υποβολή","submit":"Υποβολή","amount":"Ποσό","date":"Ημερομηνία","tags":"Ετικέτες","no_budget":"(χωρίς προϋπολογισμό)","category":"Κατηγορία","attachments":"Συνημμένα","notes":"Σημειώσεις","update_transaction":"Ενημέρωση συναλλαγής","after_update_create_another":"Μετά την ενημέρωση, επιστρέψτε εδώ για να συνεχίσετε την επεξεργασία.","store_as_new":"Αποθήκευση ως νέα συναλλαγή αντί για ενημέρωση.","split_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","none_in_select_list":"(τίποτα)","no_piggy_bank":"(χωρίς κουμπαρά)","description":"Περιγραφή","split_transaction_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","destination_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προορισμού σε μια συναλλαγή τακτοποίησης.","source_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προέλευσης σε μια συναλλαγή τακτοποίησης.","budget":"Προϋπολογισμός","you_create_withdrawal":"Δημιουργείτε μια ανάληψη.","you_create_transfer":"Δημιουργείτε μια μεταφορά.","you_create_deposit":"Δημιουργείτε μια κατάθεση."},"form":{"interest_date":"Ημερομηνία τοκισμού","book_date":"Ημερομηνία εγγραφής","process_date":"Ημερομηνία επεξεργασίας","due_date":"Ημερομηνία προθεσμίας","foreign_amount":"Ποσό σε ξένο νόμισμα","payment_date":"Ημερομηνία πληρωμής","invoice_date":"Ημερομηνία τιμολόγησης","internal_reference":"Εσωτερική αναφορά"},"config":{"html_language":"el"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Que se passe-t-il ?","flash_error":"Erreur !","flash_success":"Super !","close":"Fermer","split_transaction_title":"Description de l\'opération ventilée","errors_submission":"Certaines informations ne sont pas correctes dans votre formulaire. Veuillez vérifier les erreurs ci-dessous.","split":"Ventiler","transaction_journal_information":"Informations sur les opérations","no_budget_pointer":"Vous semblez n’avoir encore aucun budget. Vous devriez en créer un sur la page des budgets. Les budgets peuvent vous aider à garder une trace des dépenses.","source_account":"Compte source","hidden_fields_preferences":"Vous pouvez activer plus d\'options d\'opérations dans vos paramètres.","destination_account":"Compte de destination","add_another_split":"Ajouter une autre fraction","submission":"Soumission","create_another":"Après enregistrement, revenir ici pour en créer un nouveau.","reset_after":"Réinitialiser le formulaire après soumission","submit":"Soumettre","amount":"Montant","date":"Date","tags":"Tags","no_budget":"(pas de budget)","category":"Catégorie","attachments":"Pièces jointes","notes":"Notes","update_transaction":"Mettre à jour l\'opération","after_update_create_another":"Après la mise à jour, revenir ici pour continuer l\'édition.","store_as_new":"Enregistrer comme une nouvelle opération au lieu de mettre à jour.","split_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fractions de l\'opération.","none_in_select_list":"(aucun)","no_piggy_bank":"(aucune tirelire)","description":"Description","split_transaction_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fraction de l\'opération.","destination_account_reconciliation":"Vous ne pouvez pas modifier le compte de destination d\'une opération de rapprochement.","source_account_reconciliation":"Vous ne pouvez pas modifier le compte source d\'une opération de rapprochement.","budget":"Budget","you_create_withdrawal":"Vous saisissez une dépense.","you_create_transfer":"Vous saisissez un transfert.","you_create_deposit":"Vous saisissez un dépôt."},"form":{"interest_date":"Date de valeur (intérêts)","book_date":"Date de réservation","process_date":"Date de traitement","due_date":"Échéance","foreign_amount":"Montant en devise étrangère","payment_date":"Date de paiement","invoice_date":"Date de facturation","internal_reference":"Référence interne"},"config":{"html_language":"fr"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mi a helyzet?","flash_error":"Hiba!","flash_success":"Siker!","close":"Bezárás","split_transaction_title":"Felosztott tranzakció leírása","errors_submission":"Hiba történt a beküldés során. Kérem, javítsa az alábbi hibákat.","split":"Felosztás","transaction_journal_information":"Tranzakciós információk","no_budget_pointer":"Úgy tűnik, még nincsenek költségkeretek. Költségkereteket a költségkeretek oldalon lehet létrehozni. A költségkeretek segítenek nyomon követni a költségeket.","source_account":"Forrás számla","hidden_fields_preferences":"A beállításokban több tranzakciós beállítási lehetőség is megadható.","destination_account":"Célszámla","add_another_split":"Másik felosztás hozzáadása","submission":"Feliratkozás","create_another":"A tárolás után térjen vissza ide új létrehozásához.","reset_after":"Űrlap törlése a beküldés után","submit":"Beküldés","amount":"Összeg","date":"Dátum","tags":"Címkék","no_budget":"(nincs költségkeret)","category":"Kategória","attachments":"Mellékletek","notes":"Megjegyzések","update_transaction":"Tranzakció frissítése","after_update_create_another":"A frissítés után térjen vissza ide a szerkesztés folytatásához.","store_as_new":"Tárolás új tranzakcióként frissítés helyett.","split_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","none_in_select_list":"(nincs)","no_piggy_bank":"(nincs malacpersely)","description":"Leírás","split_transaction_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","destination_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció célszámláját.","source_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció forrásszámláját.","budget":"Költségkeret","you_create_withdrawal":"Egy költség létrehozása.","you_create_transfer":"Egy átutalás létrehozása.","you_create_deposit":"Egy bevétel létrehozása."},"form":{"interest_date":"Kamatfizetési időpont","book_date":"Könyvelés dátuma","process_date":"Feldolgozás dátuma","due_date":"Lejárati időpont","foreign_amount":"Külföldi összeg","payment_date":"Fizetés dátuma","invoice_date":"Számla dátuma","internal_reference":"Belső hivatkozás"},"config":{"html_language":"hu"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Kesalahan!","flash_success":"Keberhasilan!","close":"Dekat","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Pisah","transaction_journal_information":"Informasi transaksi","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Tambahkan perpecahan lagi","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Menyerahkan","amount":"Jumlah","date":"Tanggal","tags":"Tag","no_budget":"(no budget)","category":"Kategori","attachments":"Lampiran","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Deskripsi","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Anggaran","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Tanggal bunga","book_date":"Tanggal buku","process_date":"Tanggal pemrosesan","due_date":"Batas tanggal terakhir","foreign_amount":"Foreign amount","payment_date":"Tanggal pembayaran","invoice_date":"Tanggal faktur","internal_reference":"Referensi internal"},"config":{"html_language":"id"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"La tua situazione finanziaria","flash_error":"Errore!","flash_success":"Successo!","close":"Chiudi","split_transaction_title":"Descrizione della transazione suddivisa","errors_submission":"Errore durante l\'invio. Controlla gli errori segnalati qui sotto.","split":"Dividi","transaction_journal_information":"Informazioni transazione","no_budget_pointer":"Sembra che tu non abbia ancora dei budget. Dovresti crearne alcuni nella pagina dei budget. I budget possono aiutarti a tenere traccia delle spese.","source_account":"Conto di origine","hidden_fields_preferences":"Puoi abilitare maggiori opzioni per le transazioni nelle tue impostazioni.","destination_account":"Conto destinazione","add_another_split":"Aggiungi un\'altra divisione","submission":"Invio","create_another":"Dopo il salvataggio, torna qui per crearne un\'altra.","reset_after":"Resetta il modulo dopo l\'invio","submit":"Invia","amount":"Importo","date":"Data","tags":"Etichette","no_budget":"(nessun budget)","category":"Categoria","attachments":"Allegati","notes":"Note","update_transaction":"Aggiorna transazione","after_update_create_another":"Dopo l\'aggiornamento, torna qui per continuare la modifica.","store_as_new":"Salva come nuova transazione invece di aggiornarla.","split_title_help":"Se crei una transazione suddivisa è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","none_in_select_list":"(nessuna)","no_piggy_bank":"(nessun salvadanaio)","description":"Descrizione","split_transaction_title_help":"Se crei una transazione suddivisa, è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","destination_account_reconciliation":"Non è possibile modificare il conto di destinazione di una transazione di riconciliazione.","source_account_reconciliation":"Non puoi modificare il conto di origine di una transazione di riconciliazione.","budget":"Budget","you_create_withdrawal":"Stai creando un prelievo.","you_create_transfer":"Stai creando un trasferimento.","you_create_deposit":"Stai creando un deposito."},"form":{"interest_date":"Data interesse","book_date":"Data contabile","process_date":"Data elaborazione","due_date":"Data scadenza","foreign_amount":"Importo estero","payment_date":"Data pagamento","invoice_date":"Data fatturazione","internal_reference":"Riferimento interno"},"config":{"html_language":"it"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hoe staat het er voor?","flash_error":"Fout!","flash_success":"Gelukt!","close":"Sluiten","split_transaction_title":"Beschrijving van de gesplitste transactie","errors_submission":"Er ging iets mis. Check de errors.","split":"Splitsen","transaction_journal_information":"Transactieinformatie","no_budget_pointer":"Je hebt nog geen budgetten. Maak er een aantal op de budgetten-pagina. Met budgetten kan je je uitgaven beter bijhouden.","source_account":"Bronrekening","hidden_fields_preferences":"Je kan meer transactieopties inschakelen in je instellingen.","destination_account":"Doelrekening","add_another_split":"Voeg een split toe","submission":"Indienen","create_another":"Terug naar deze pagina voor een nieuwe transactie.","reset_after":"Reset formulier na opslaan","submit":"Invoeren","amount":"Bedrag","date":"Datum","tags":"Tags","no_budget":"(geen budget)","category":"Categorie","attachments":"Bijlagen","notes":"Notities","update_transaction":"Update transactie","after_update_create_another":"Na het opslaan terug om door te gaan met wijzigen.","store_as_new":"Opslaan als nieuwe transactie ipv de huidige bij te werken.","split_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","none_in_select_list":"(geen)","no_piggy_bank":"(geen spaarpotje)","description":"Omschrijving","split_transaction_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","destination_account_reconciliation":"Je kan de doelrekening van een afstemming niet wijzigen.","source_account_reconciliation":"Je kan de bronrekening van een afstemming niet wijzigen.","budget":"Budget","you_create_withdrawal":"Je maakt een uitgave.","you_create_transfer":"Je maakt een overschrijving.","you_create_deposit":"Je maakt inkomsten."},"form":{"interest_date":"Rentedatum","book_date":"Boekdatum","process_date":"Verwerkingsdatum","due_date":"Vervaldatum","foreign_amount":"Bedrag in vreemde valuta","payment_date":"Betalingsdatum","invoice_date":"Factuurdatum","internal_reference":"Interne verwijzing"},"config":{"html_language":"nl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hvordan går det?","flash_error":"Feil!","flash_success":"Suksess!","close":"Lukk","split_transaction_title":"Description of the split transaction","split":"Del opp","transaction_journal_information":"Transaksjonsinformasjon","source_account":"Source account","destination_account":"Destination account","add_another_split":"Legg til en oppdeling til","submit":"Send inn","amount":"Beløp","no_budget":"(ingen budsjett)","category":"Kategori","attachments":"Vedlegg","notes":"Notater"},"form":{"interest_date":"Rentedato","book_date":"Bokføringsdato","process_date":"Prosesseringsdato","due_date":"Forfallsdato","payment_date":"Betalingsdato","invoice_date":"Fakturadato","internal_reference":"Intern referanse"},"config":{"html_language":"no"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Co jest grane?","flash_error":"Błąd!","flash_success":"Sukces!","close":"Zamknij","split_transaction_title":"Opis podzielonej transakcji","errors_submission":"Coś poszło nie tak w czasie zapisu. Proszę sprawdź błędy poniżej.","split":"Podziel","transaction_journal_information":"Informacje o transakcji","no_budget_pointer":"Wygląda na to że nie masz jeszcze budżetów. Powinieneś utworzyć kilka na stronie budżety. Budżety mogą Ci pomóc śledzić wydatki.","source_account":"Konto źródłowe","hidden_fields_preferences":"Możesz włączyć więcej opcji transakcji w swoich ustawieniach.","destination_account":"Konto docelowe","add_another_split":"Dodaj kolejny podział","submission":"Zapisz","create_another":"Po zapisaniu wróć tutaj, aby utworzyć kolejny.","reset_after":"Wyczyść formularz po zapisaniu","submit":"Prześlij","amount":"Kwota","date":"Data","tags":"Tagi","no_budget":"(brak budżetu)","category":"Kategoria","attachments":"Załączniki","notes":"Notatki","update_transaction":"Zaktualizuj transakcję","after_update_create_another":"Po aktualizacji wróć tutaj, aby kontynuować edycję.","store_as_new":"Zapisz jako nową zamiast aktualizować.","split_title_help":"Podzielone transakcje muszą posiadać globalny opis.","none_in_select_list":"(żadne)","no_piggy_bank":"(brak skarbonki)","description":"Opis","split_transaction_title_help":"Jeśli tworzysz podzieloną transakcję, musi ona posiadać globalny opis dla wszystkich podziałów w transakcji.","destination_account_reconciliation":"Nie możesz edytować konta docelowego transakcji uzgadniania.","source_account_reconciliation":"Nie możesz edytować konta źródłowego transakcji uzgadniania.","budget":"Budżet","you_create_withdrawal":"Tworzysz wydatek.","you_create_transfer":"Tworzysz przelew.","you_create_deposit":"Tworzysz wpłatę."},"form":{"interest_date":"Data odsetek","book_date":"Data księgowania","process_date":"Data przetworzenia","due_date":"Termin realizacji","foreign_amount":"Kwota zagraniczna","payment_date":"Data płatności","invoice_date":"Data faktury","internal_reference":"Wewnętrzny numer"},"config":{"html_language":"pl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mitä kuuluu?","flash_error":"Virhe!","flash_success":"Valmista tuli!","close":"Sulje","split_transaction_title":"Jaetun tapahtuman kuvaus","errors_submission":"Lomakkeen tiedoissa oli puutteita - alta löydät listan puutteista.","split":"Jaa","transaction_journal_information":"Tapahtumatiedot","no_budget_pointer":"Sinulla ei näyttäisi olevan vielä yhtään budjettia. Sinun kannattaisi luoda niitä budjetit-sivulla. Budjetit voivat auttaa sinua pitämään kirjaa kuluistasi.","source_account":"Lähdetili","hidden_fields_preferences":"Voit aktivoida lisää tapahtumavalintoja asetuksissa.","destination_account":"Kohdetili","add_another_split":"Lisää tapahtumaan uusi osa","submission":"Vahvistus","create_another":"Tallennuksen jälkeen, palaa takaisin luomaan uusi tapahtuma.","reset_after":"Tyhjennä lomake lähetyksen jälkeen","submit":"Vahvista","amount":"Summa","date":"Päivämäärä","tags":"Tägit","no_budget":"(ei budjettia)","category":"Kategoria","attachments":"Liitteet","notes":"Muistiinpanot","update_transaction":"Päivitä tapahtuma","after_update_create_another":"Päivityksen jälkeen, palaa takaisin jatkamaan muokkausta.","store_as_new":"Tallenna uutena tapahtumana päivityksen sijaan.","split_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","none_in_select_list":"(ei mitään)","no_piggy_bank":"(ei säästöpossu)","description":"Kuvaus","split_transaction_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","destination_account_reconciliation":"Et voi muokata täsmäytystapahtuman kohdetiliä.","source_account_reconciliation":"Et voi muokata täsmäytystapahtuman lähdetiliä.","budget":"Budjetti","you_create_withdrawal":"Olet luomassa nostoa.","you_create_transfer":"Olet luomassa siirtoa.","you_create_deposit":"Olet luomassa talletusta."},"form":{"interest_date":"Korkopäivä","book_date":"Kirjauspäivä","process_date":"Käsittelypäivä","due_date":"Eräpäivä","foreign_amount":"Ulkomaan summa","payment_date":"Maksupäivä","invoice_date":"Laskun päivämäärä","internal_reference":"Sisäinen viite"},"config":{"html_language":"fi"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"O que está acontecendo?","flash_error":"Erro!","flash_success":"Sucesso!","close":"Fechar","split_transaction_title":"Descrição da transação dividida","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Dividir","transaction_journal_information":"Informação da transação","no_budget_pointer":"Parece que você ainda não tem orçamentos. Você deve criar alguns na página de orçamentos. Orçamentos podem ajudá-lo a manter o controle das despesas.","source_account":"Conta origem","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Conta destino","add_another_split":"Adicionar outra divisão","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Enviar","amount":"Valor","date":"Data","tags":"Tags","no_budget":"(sem orçamento)","category":"Categoria","attachments":"Anexos","notes":"Notas","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Se você criar uma transação dividida, é necessário haver uma descrição global para todas as partes da transação.","none_in_select_list":"(nenhum)","no_piggy_bank":"(nenhum cofrinho)","description":"Descrição","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","source_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","budget":"Orçamento","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interesse","book_date":"Data reserva","process_date":"Data de processamento","due_date":"Data de vencimento","foreign_amount":"Montante em moeda estrangeira","payment_date":"Data de pagamento","invoice_date":"Data da Fatura","internal_reference":"Referência interna"},"config":{"html_language":"pt-br"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Ce se redă?","flash_error":"Eroare!","flash_success":"Succes!","close":"Închide","split_transaction_title":"Descrierea tranzacției divizate","errors_submission":"A fost ceva în neregulă cu transmiterea dvs. Vă rugăm să consultați erorile de mai jos.","split":"Împarte","transaction_journal_information":"Informații despre tranzacții","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Contul sursă","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Contul de destinație","add_another_split":"Adăugați o divizare","submission":"Transmitere","create_another":"După stocare, reveniți aici pentru a crea alta.","reset_after":"Resetați formularul după trimitere","submit":"Trimite","amount":"Sumă","date":"Dată","tags":"Etichete","no_budget":"(nici un buget)","category":"Categorie","attachments":"Atașamente","notes":"Notițe","update_transaction":"Actualizați tranzacția","after_update_create_another":"După actualizare, reveniți aici pentru a continua editarea.","store_as_new":"Stocați ca o tranzacție nouă în loc să actualizați.","split_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","none_in_select_list":"(nici unul)","no_piggy_bank":"(nicio pușculiță)","description":"Descriere","split_transaction_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","destination_account_reconciliation":"Nu puteți edita contul de destinație al unei tranzacții de reconciliere.","source_account_reconciliation":"Nu puteți edita contul sursă al unei tranzacții de reconciliere.","budget":"Buget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interes","book_date":"Rezervă dată","process_date":"Data procesării","due_date":"Data scadentă","foreign_amount":"Sumă străină","payment_date":"Data de plată","invoice_date":"Data facturii","internal_reference":"Referință internă"},"config":{"html_language":"ro"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Что происходит с моими финансами?","flash_error":"Ошибка!","flash_success":"Успешно!","close":"Закрыть","split_transaction_title":"Описание разделённой транзакции","errors_submission":"При отправке произошла ошибка. Пожалуйста, проверьте ошибки ниже.","split":"Разделить","transaction_journal_information":"Информация о транзакции","no_budget_pointer":"Похоже, у вас пока нет бюджетов. Вы должны создать их в разделе Бюджеты. Бюджеты могут помочь вам отслеживать расходы.","source_account":"Счёт-источник","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Счёт назначения","add_another_split":"Добавить новую часть","submission":"Отправить","create_another":"После сохранения вернуться сюда и создать ещё одну аналогичную запись.","reset_after":"Сбросить форму после отправки","submit":"Подтвердить","amount":"Сумма","date":"Дата","tags":"Метки","no_budget":"(вне бюджета)","category":"Категория","attachments":"Вложения","notes":"Заметки","update_transaction":"Обновить транзакцию","after_update_create_another":"После обновления вернитесь сюда, чтобы продолжить редактирование.","store_as_new":"Сохранить как новую транзакцию вместо обновления.","split_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание дле всех её составляющих.","none_in_select_list":"(нет)","no_piggy_bank":"(нет копилки)","description":"Описание","split_transaction_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание для всех её составляющих.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"Вы не можете редактировать исходный аккаунт сверки.","budget":"Бюджет","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Дата выплаты","book_date":"Дата бронирования","process_date":"Дата обработки","due_date":"Срок","foreign_amount":"Сумма в иностранной валюте","payment_date":"Дата платежа","invoice_date":"Дата выставления счёта","internal_reference":"Внутренняя ссылка"},"config":{"html_language":"ru"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"吃饱没?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","split":"分割","transaction_journal_information":"交易资讯","source_account":"来源帐户","destination_account":"目标帐户","add_another_split":"增加拆分","submit":"送出","amount":"金额","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"錯誤!","flash_success":"成功!","close":"關閉","split_transaction_title":"拆分交易的描述","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"分割","transaction_journal_information":"交易資訊","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"增加拆分","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"送出","amount":"金額","date":"日期","tags":"標籤","no_budget":"(無預算)","category":"分類","attachments":"附加檔案","notes":"備註","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"若您建立一筆拆分交易,須有一個有關交易所有拆分的整體描述。","none_in_select_list":"(空)","no_piggy_bank":"(no piggy bank)","description":"描述","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"預算","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"利率日期","book_date":"登記日期","process_date":"處理日期","due_date":"到期日","foreign_amount":"外幣金額","payment_date":"付款日期","invoice_date":"發票日期","internal_reference":"內部參考"},"config":{"html_language":"zh-tw"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"今天理财了吗?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","errors_submission":"您的提交有误,请查看下面输出的错误信息。","split":"分割","transaction_journal_information":"交易资讯","no_budget_pointer":"您似乎还没有任何预算。您应该在 预算页面上创建他们。预算可以帮助您跟踪费用。","source_account":"来源帐户","hidden_fields_preferences":"您可以在 设置中启用更多的交易选项。","destination_account":"目标帐户","add_another_split":"增加拆分","submission":"提交","create_another":"保存后,返回此页面创建另一笔记录。","reset_after":"提交后重置表单","submit":"提交","amount":"金额","date":"日期","tags":"标签","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释","update_transaction":"更新交易","after_update_create_another":"更新后,返回此页面继续编辑。","store_as_new":"保存为新交易而不是更新此交易。","split_title_help":"如果您创建一个拆分交易,必须有一个全局的交易描述。","none_in_select_list":"(空)","no_piggy_bank":"(无存钱罐)","description":"描述","split_transaction_title_help":"如果您创建了一个分割交易,交易的所有分割项都必须有全局描述。","destination_account_reconciliation":"您不能编辑对账交易的目标账户","source_account_reconciliation":"您不能编辑对账交易的源账户","budget":"预算","you_create_withdrawal":"您正在创建一个提款","you_create_transfer":"您正在创建一个转账","you_create_deposit":"您正在创建一个存款"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","foreign_amount":"外币金额","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh-cn"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Vad spelas?","flash_error":"Fel!","flash_success":"Slutförd!","close":"Stäng","split_transaction_title":"Description of the split transaction","errors_submission":"Något fel uppstod med inskickningen. Vänligen kontrollera felen nedan.","split":"Dela","transaction_journal_information":"Transaktionsinformation","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Från konto","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Till konto","add_another_split":"Lägga till en annan delning","submission":"Inskickning","create_another":"Efter sparat, återkom hit för att skapa ytterligare en.","reset_after":"Återställ formulär efter inskickat","submit":"Skicka","amount":"Belopp","date":"Datum","tags":"Etiketter","no_budget":"(ingen budget)","category":"Kategori","attachments":"Bilagor","notes":"Noteringar","update_transaction":"Uppdatera transaktion","after_update_create_another":"Efter uppdaterat, återkom hit för att fortsätta redigera.","store_as_new":"Spara en ny transaktion istället för att uppdatera.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(Ingen)","no_piggy_bank":"(ingen spargris)","description":"Beskrivning","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Du kan inte redigera destinationskontot för en avstämningstransaktion.","source_account_reconciliation":"Du kan inte redigera källkontot för en avstämningstransaktion.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Räntedatum","book_date":"Bokföringsdatum","process_date":"Behandlingsdatum","due_date":"Förfallodatum","foreign_amount":"Utländskt belopp","payment_date":"Betalningsdatum","invoice_date":"Fakturadatum","internal_reference":"Intern referens"},"config":{"html_language":"sv"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Chào mừng trở lại","flash_error":"Lỗi!","flash_success":"Thành công!","close":"Đóng","split_transaction_title":"Mô tả giao dịch tách","errors_submission":"Có gì đó sai. Vui lòng kiểm tra các lỗi dưới đây.","split":"Chia ra","transaction_journal_information":"Thông tin giao dịch","no_budget_pointer":"Bạn dường như chưa có ngân sách. Bạn nên tạo một cái trên budgets-page. Ngân sách có thể giúp bạn theo dõi chi phí.","source_account":"Nguồn tài khoản","hidden_fields_preferences":"Bạn có thể kích hoạt thêm tùy chọn giao dịch trong settings.","destination_account":"Tài khoản đích","add_another_split":"Thêm một phân chia khác","submission":"Gửi","create_another":"Sau khi lưu trữ, quay trở lại đây để tạo một cái khác.","reset_after":"Đặt lại mẫu sau khi gửi","submit":"Gửi","amount":"Số tiền","date":"Ngày","tags":"Thẻ","no_budget":"(không có ngân sách)","category":"Dan hmucj","attachments":"Tệp đính kèm","notes":"Ghi chú","update_transaction":"Cập nhật giao dịch","after_update_create_another":"Sau khi cập nhật, quay lại đây để tiếp tục chỉnh sửa.","store_as_new":"Lưu trữ như một giao dịch mới thay vì cập nhật.","split_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Sự miêu tả","split_transaction_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","destination_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản đích của giao dịch đối chiếu.","source_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản nguồn của giao dịch đối chiếu.","budget":"Ngân sách","you_create_withdrawal":"Bạn đang tạo một rút tiền.","you_create_transfer":"Bạn đang tạo một chuyển khoản.","you_create_deposit":"Bạn đang tạo một tiền gửi."},"form":{"interest_date":"Ngày lãi","book_date":"Ngày đặt sách","process_date":"Ngày xử lý","due_date":"Ngày đáo hạn","foreign_amount":"Ngoại tệ","payment_date":"Ngày thanh toán","invoice_date":"Ngày hóa đơn","internal_reference":"Tài liệu tham khảo nội bộ"},"config":{"html_language":"vi"}}')},,,,,,,,,,,function(t,e,n){t.exports=n(92)},,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var a=n(30),i={name:"CreateTransaction",components:{},mounted:function(){var t=this;this.addTransactionToArray(),document.onreadystatechange=function(){"complete"===document.readyState&&(t.prefillSourceAccount(),t.prefillDestinationAccount())}},methods:{prefillSourceAccount:function(){0!==window.sourceId&&this.getAccount(window.sourceId,"source_account")},prefillDestinationAccount:function(){0!==destinationId&&this.getAccount(window.destinationId,"destination_account")},getAccount:function(t,e){var n=this,a="./api/v1/accounts/"+t+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content;axios.get(a).then((function(t){var a=t.data.data.attributes;a.type=n.fullAccountType(a.type,a.liability_type),a.id=parseInt(t.data.data.id),"source_account"===e&&n.selectedSourceAccount(0,a),"destination_account"===e&&n.selectedDestinationAccount(0,a)})).catch((function(t){console.warn("Could not auto fill account"),console.warn(t)}))},fullAccountType:function(t,e){var n,a=t;"liabilities"===t&&(a=e);return null!==(n={asset:"Asset account",loan:"Loan",debt:"Debt",mortgage:"Mortgage"}[a])&&void 0!==n?n:a},convertData:function(){var t,e,n,a={transactions:[]};for(var i in this.transactions.length>1&&(a.group_title=this.group_title),t=this.transactionType?this.transactionType.toLowerCase():"invalid",e=this.transactions[0].source_account.type,n=this.transactions[0].destination_account.type,"invalid"===t&&["asset","Asset account","Loan","Debt","Mortgage"].includes(e)&&(t="withdrawal"),"invalid"===t&&["asset","Asset account","Loan","Debt","Mortgage"].includes(n)&&(t="deposit"),this.transactions)this.transactions.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&a.transactions.push(this.convertDataRow(this.transactions[i],i,t));return""===a.group_title&&a.transactions.length>1&&(a.group_title=a.transactions[0].description),a},convertDataRow:function(t,e,n){var a,i,r,o,s,c,u=[],l=null,A=null;for(var d in i=t.source_account.id,r=t.source_account.name,o=t.destination_account.id,s=t.destination_account.name,c=t.date,e>0&&(c=this.transactions[0].date),"withdrawal"===n&&""===s&&(o=window.cashAccountId),"deposit"===n&&""===r&&(i=window.cashAccountId),e>0&&("withdrawal"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(i=this.transactions[0].source_account.id,r=this.transactions[0].source_account.name),e>0&&("deposit"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(o=this.transactions[0].destination_account.id,s=this.transactions[0].destination_account.name),u=[],l=null,A=null,t.tags)t.tags.hasOwnProperty(d)&&/^0$|^[1-9]\d*$/.test(d)&&d<=4294967294&&u.push(t.tags[d].text);return""!==t.foreign_amount.amount&&0!==parseFloat(t.foreign_amount.amount)&&(l=t.foreign_amount.amount,A=t.foreign_amount.currency_id),A===t.currency_id&&(l=null,A=null),0===o&&(o=null),0===i&&(i=null),1===(t.amount.match(/\,/g)||[]).length&&(t.amount=t.amount.replace(",",".")),a={type:n,date:c,amount:t.amount,currency_id:t.currency_id,description:t.description,source_id:i,source_name:r,destination_id:o,destination_name:s,category_name:t.category,interest_date:t.custom_fields.interest_date,book_date:t.custom_fields.book_date,process_date:t.custom_fields.process_date,due_date:t.custom_fields.due_date,payment_date:t.custom_fields.payment_date,invoice_date:t.custom_fields.invoice_date,internal_reference:t.custom_fields.internal_reference,notes:t.custom_fields.notes},u.length>0&&(a.tags=u),null!==l&&(a.foreign_amount=l,a.foreign_currency_id=A),parseInt(t.budget)>0&&(a.budget_id=parseInt(t.budget)),parseInt(t.piggy_bank)>0&&(a.piggy_bank_id=parseInt(t.piggy_bank)),a},submit:function(t){var e=this,n="./api/v1/transactions?_token="+document.head.querySelector('meta[name="csrf-token"]').content,a=this.convertData(),i=$("#submitButton");i.prop("disabled",!0),axios.post(n,a).then((function(t){0===e.collectAttachmentData(t)&&e.redirectUser(t.data.data.id,t.data.data)})).catch((function(t){console.error("Error in transaction submission."),console.error(t),e.parseErrors(t.response.data),console.log("enable button again."),i.removeAttr("disabled")})),t&&t.preventDefault()},escapeHTML:function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML},redirectUser:function(t,e){var n=this,a=null===e.attributes.group_title?e.attributes.transactions[0].description:e.attributes.group_title;this.createAnother?(this.success_message='Transaction #'+t+' ("'+this.escapeHTML(a)+'") has been stored.',this.error_message="",this.resetFormAfter&&(this.resetTransactions(),setTimeout((function(){return n.addTransactionToArray()}),50)),this.setDefaultErrors(),console.log("enable button again."),$("#submitButton").removeAttr("disabled")):window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=created"},collectAttachmentData:function(t){var e=this,n=t.data.data.id,a=[],i=[],r=$('input[name="attachments[]"]');for(var o in r)if(r.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294)for(var s in r[o].files)r[o].files.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&a.push({journal:t.data.data.attributes.transactions[o].transaction_journal_id,file:r[o].files[s]});var c=a.length,u=function(r){var o,s,u;a.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294&&(o=a[r],s=e,(u=new FileReader).onloadend=function(e){e.target.readyState===FileReader.DONE&&(i.push({name:a[r].file.name,journal:a[r].journal,content:new Blob([e.target.result])}),i.length===c&&s.uploadFiles(i,n,t.data.data))},u.readAsArrayBuffer(o.file))};for(var l in a)u(l);return c},uploadFiles:function(t,e,n){var a=this,i=t.length,r=0,o=function(o){if(t.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var s={filename:t[o].name,attachable_type:"TransactionJournal",attachable_id:t[o].journal};axios.post("./api/v1/attachments",s).then((function(s){var c="./api/v1/attachments/"+s.data.data.id+"/upload";axios.post(c,t[o].content).then((function(t){return++r===i&&a.redirectUser(e,n),!0})).catch((function(t){return console.error("Could not upload"),console.error(t),++r===i&&a.redirectUser(e,n),!1}))}))}};for(var s in t)o(s)},setDefaultErrors:function(){for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(this.transactions[t].errors={source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}})},parseErrors:function(t){var e,n;for(var a in this.setDefaultErrors(),this.error_message="",t.message.length>0?this.error_message=this.$t("firefly.errors_submission"):this.error_message="",t.errors)if(t.errors.hasOwnProperty(a)){if("group_title"===a&&(this.group_title_errors=t.errors[a]),"group_title"!==a)switch(e=parseInt(a.split(".")[1]),n=a.split(".")[2]){case"amount":case"date":case"budget_id":case"description":case"tags":this.transactions[e].errors[n]=t.errors[a];break;case"source_name":case"source_id":this.transactions[e].errors.source_account=this.transactions[e].errors.source_account.concat(t.errors[a]);break;case"destination_name":case"destination_id":this.transactions[e].errors.destination_account=this.transactions[e].errors.destination_account.concat(t.errors[a]);break;case"foreign_amount":case"foreign_currency_id":this.transactions[e].errors.foreign_amount=this.transactions[e].errors.foreign_amount.concat(t.errors[a])}void 0!==this.transactions[e]&&(this.transactions[e].errors.source_account=Array.from(new Set(this.transactions[e].errors.source_account)),this.transactions[e].errors.destination_account=Array.from(new Set(this.transactions[e].errors.destination_account)))}},resetTransactions:function(){this.transactions=[]},addTransactionToArray:function(t){if(this.transactions.push({description:"",date:"",amount:"",category:"",piggy_bank:0,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:0,tags:[],custom_fields:{interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",internal_reference:"",notes:"",attachments:[]},foreign_amount:{amount:"",currency_id:0},source_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:["Asset account","Revenue account","Loan","Debt","Mortgage"],default_allowed_types:["Asset account","Revenue account","Loan","Debt","Mortgage"]},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:["Asset account","Expense account","Loan","Debt","Mortgage"],default_allowed_types:["Asset account","Expense account","Loan","Debt","Mortgage"]}}),1===this.transactions.length){var e=new Date;this.transactions[0].date=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)}t&&t.preventDefault()},setTransactionType:function(t){this.transactionType=t},deleteTransaction:function(t,e){for(var n in e.preventDefault(),this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n);for(var a in this.transactions.splice(t,1),this.transactions)this.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)},limitSourceType:function(t){var e;for(e=0;e1?n("span",[t._v(t._s(t.$t("firefly.split"))+" "+t._s(a+1)+" / "+t._s(t.transactions.length))]):t._e(),t._v(" "),1===t.transactions.length?n("span",[t._v(t._s(t.$t("firefly.transaction_journal_information")))]):t._e()]),t._v(" "),t.transactions.length>1?n("div",{staticClass:"box-tools pull-right",attrs:{x:""}},[n("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteTransaction(a,e)}}},[n("i",{staticClass:"fa fa-trash"})])]):t._e()]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-4"},[n("transaction-description",{attrs:{index:a,error:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}}),t._v(" "),n("account-select",{attrs:{inputName:"source[]",title:t.$t("firefly.source_account"),accountName:e.source_account.name,accountTypeFilters:e.source_account.allowed_types,defaultAccountTypeFilters:e.source_account.default_allowed_types,transactionType:t.transactionType,index:a,error:e.errors.source_account},on:{"clear:value":function(e){return t.clearSource(a)},"select:account":function(e){return t.selectedSourceAccount(a,e)}}}),t._v(" "),n("account-select",{attrs:{inputName:"destination[]",title:t.$t("firefly.destination_account"),accountName:e.destination_account.name,accountTypeFilters:e.destination_account.allowed_types,defaultAccountTypeFilters:e.destination_account.default_allowed_types,transactionType:t.transactionType,index:a,error:e.errors.destination_account},on:{"clear:value":function(e){return t.clearDestination(a)},"select:account":function(e){return t.selectedDestinationAccount(a,e)}}}),t._v(" "),0===a?n("standard-date",{attrs:{index:a,error:e.errors.date},model:{value:e.date,callback:function(n){t.$set(e,"date",n)},expression:"transaction.date"}}):t._e(),t._v(" "),0===a?n("div",[n("transaction-type",{attrs:{source:e.source_account.type,destination:e.destination_account.type},on:{"set:transactionType":function(e){return t.setTransactionType(e)},"act:limitSourceType":function(e){return t.limitSourceType(e)},"act:limitDestinationType":function(e){return t.limitDestinationType(e)}}})],1):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("amount",{attrs:{source:e.source_account,destination:e.destination_account,error:e.errors.amount,transactionType:t.transactionType},model:{value:e.amount,callback:function(n){t.$set(e,"amount",n)},expression:"transaction.amount"}}),t._v(" "),n("foreign-amount",{attrs:{source:e.source_account,destination:e.destination_account,transactionType:t.transactionType,error:e.errors.foreign_amount,title:t.$t("form.foreign_amount")},model:{value:e.foreign_amount,callback:function(n){t.$set(e,"foreign_amount",n)},expression:"transaction.foreign_amount"}})],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("budget",{attrs:{transactionType:t.transactionType,error:e.errors.budget_id,no_budget:t.$t("firefly.none_in_select_list")},model:{value:e.budget,callback:function(n){t.$set(e,"budget",n)},expression:"transaction.budget"}}),t._v(" "),n("category",{attrs:{transactionType:t.transactionType,error:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}}),t._v(" "),n("piggy-bank",{attrs:{transactionType:t.transactionType,error:e.errors.piggy_bank,no_piggy_bank:t.$t("firefly.no_piggy_bank")},model:{value:e.piggy_bank,callback:function(n){t.$set(e,"piggy_bank",n)},expression:"transaction.piggy_bank"}}),t._v(" "),n("tags",{attrs:{error:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("custom-transaction-fields",{attrs:{error:e.errors.custom_errors},model:{value:e.custom_fields,callback:function(n){t.$set(e,"custom_fields",n)},expression:"transaction.custom_fields"}})],1)])]),t._v(" "),t.transactions.length-1===a?n("div",{staticClass:"box-footer"},[n("button",{staticClass:"split_add_btn btn btn-default",attrs:{type:"button"},on:{click:t.addTransactionToArray}},[t._v(t._s(t.$t("firefly.add_another_split")))])]):t._e()])])])})),0),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("group-description",{attrs:{error:t.group_title_errors},model:{value:t.group_title,callback:function(e){t.group_title=e},expression:"group_title"}})],1)])])]):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.submission"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createAnother,expression:"createAnother"}],attrs:{name:"create_another",type:"checkbox"},domProps:{checked:Array.isArray(t.createAnother)?t._i(t.createAnother,null)>-1:t.createAnother},on:{change:function(e){var n=t.createAnother,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.createAnother=n.concat([null])):r>-1&&(t.createAnother=n.slice(0,r).concat(n.slice(r+1)))}else t.createAnother=i}}}),t._v("\n "+t._s(t.$t("firefly.create_another"))+"\n ")])]),t._v(" "),n("div",{staticClass:"checkbox"},[n("label",{class:{"text-muted":!1===this.createAnother}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.resetFormAfter,expression:"resetFormAfter"}],attrs:{disabled:!1===this.createAnother,name:"reset_form",type:"checkbox"},domProps:{checked:Array.isArray(t.resetFormAfter)?t._i(t.resetFormAfter,null)>-1:t.resetFormAfter},on:{change:function(e){var n=t.resetFormAfter,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.resetFormAfter=n.concat([null])):r>-1&&(t.resetFormAfter=n.slice(0,r).concat(n.slice(r+1)))}else t.resetFormAfter=i}}}),t._v("\n "+t._s(t.$t("firefly.reset_after"))+"\n\n ")])])]),t._v(" "),n("div",{staticClass:"box-footer"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-success",attrs:{id:"submitButton"},on:{click:t.submit}},[t._v(t._s(t.$t("firefly.submit")))])])])])])])])}),[],!1,null,"7b0e6965",null).exports,s=n(31),c=n(32),u=n(33),l=n(34),A=n(35),d=n(36),p=n(37),f=n(38),h=n(39),g=n(40),_=n(41),m=n(42),v=n(43),y=n(44),b=n(45);n(28),Vue.component("budget",b.a),Vue.component("custom-date",s.a),Vue.component("custom-string",c.a),Vue.component("custom-attachments",a.a),Vue.component("custom-textarea",u.a),Vue.component("standard-date",l.a),Vue.component("group-description",A.a),Vue.component("transaction-description",d.a),Vue.component("custom-transaction-fields",p.a),Vue.component("piggy-bank",f.a),Vue.component("tags",h.a),Vue.component("category",g.a),Vue.component("amount",_.a),Vue.component("foreign-amount",m.a),Vue.component("transaction-type",v.a),Vue.component("account-select",y.a),Vue.component("create-transaction",o);var C=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{cs:n(50),de:n(51),en:n(52),es:n(53),el:n(54),fr:n(55),hu:n(56),id:n(57),it:n(58),nl:n(59),no:n(60),pl:n(61),fi:n(62),"pt-br":n(63),ro:n(64),ru:n(65),zh:n(66),"zh-tw":n(67),"zh-cn":n(68),sv:n(69),vi:n(70)}}),w={};new Vue({i18n:C,el:"#create_transaction",render:function(t){return t(o,{props:w})}})}]); \ No newline at end of file +!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=81)}([function(t,e,n){"use strict";function a(t,e,n,a,i,r,o,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),a&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var A=u.beforeCreate;u.beforeCreate=A?[].concat(A,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";var a=n(5),i=n(12),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,a=t.length;n=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){c.headers[t]=a.merge(r)})),t.exports=c}).call(this,n(10))},function(t,e,n){t.exports=n(11)},,function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),a=0;a1)for(var n=1;n=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=a.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?{write:function(t,e,n,i,r,o){var s=[];s.push(t+"="+encodeURIComponent(e)),a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(i)&&s.push("path="+i),a.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var a=n(1);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){a.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var a=n(1),i=n(23),r=n(8),o=n(2),s=n(24),c=n(25);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=a.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var a=n(1);t.exports=function(t,e,n){return a.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var a=n(9);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new a(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){window.axios=n(3),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var a=document.head.querySelector('meta[name="csrf-token"]');a?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=a.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},function(t,e,n){window,t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=6)}([function(t,e,n){var a=n(8);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("7ec05f6c",a,!1,{})},function(t,e,n){var a=n(10);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("3453d19d",a,!1,{})},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"==typeof btoa){var r=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[a].concat(o).concat([r]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;in.parts.length&&(a.parts.length=n.parts.length)}else{var o=[];for(i=0;i div[data-v-61d92e31] {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%;\n}\n.ti-selected-item[data-v-61d92e31] {\n background-color: #5C6BC0;\n color: #fff;\n}\n',"",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,mCAA8C;EAC9C,+JAAuM;EACvM,oBAAoB;EACpB,mBAAmB;CAAE;AAEvB;EACE,kCAAkC;EAClC,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EACf,oCAAoC;EACpC,mCAAmC;CAAE;AAEvC;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,YAAY;EACZ,aAAa;EACb,sBAAsB;CAAE;AAE1B;EACE,uBAAuB;CAAE;AAE3B;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE;AAElC;EACE,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;CAAE;AAE3B;EACE,aAAa;CAAE;AACf;IACE,gBAAgB;CAAE;AAEtB;EACE,uBAAuB;EACvB,cAAc;EACd,aAAa;EACb,gBAAgB;CAAE;AAEpB;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;CAAE;AAErB;EACE,0BAA0B;EAC1B,YAAY;EACZ,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,cAAc;CAAE;AAClB;IACE,cAAc;IACd,oBAAoB;CAAE;AACxB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;CAAE;AACrB;IACE,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,kBAAkB;CAAE;AACpB;MACE,gBAAgB;CAAE;AACtB;IACE,kBAAkB;CAAE;AACtB;IACE,0BAA0B;CAAE;AAEhC;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;CAAE;AAElB;EACE,qBAAqB;CAAE;AAEzB;EACE,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,YAAY;CAAE;AAEhB;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;CAAE;AAEhB;EACE,0BAA0B;EAC1B,YAAY;CAAE",file:"vue-tags-input.scss?vue&type=style&index=0&id=61d92e31&lang=scss&scoped=true&",sourcesContent:['@font-face {\n font-family: \'icomoon\';\n src: url("./assets/fonts/icomoon.eot?7grlse");\n src: url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"), url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"), url("./assets/fonts/icomoon.woff?7grlse") format("woff");\n font-weight: normal;\n font-style: normal; }\n\n[class^="ti-icon-"], [class*=" ti-icon-"] {\n font-family: \'icomoon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.ti-icon-check:before {\n content: "\\e902"; }\n\n.ti-icon-close:before {\n content: "\\e901"; }\n\n.ti-icon-undo:before {\n content: "\\e900"; }\n\nul {\n margin: 0px;\n padding: 0px;\n list-style-type: none; }\n\n*, *:before, *:after {\n box-sizing: border-box; }\n\ninput:focus {\n outline: none; }\n\ninput[disabled] {\n background-color: transparent; }\n\n.vue-tags-input {\n max-width: 450px;\n position: relative;\n background-color: #fff; }\n\ndiv.vue-tags-input.disabled {\n opacity: 0.5; }\n div.vue-tags-input.disabled * {\n cursor: default; }\n\n.ti-input {\n border: 1px solid #ccc;\n display: flex;\n padding: 4px;\n flex-wrap: wrap; }\n\n.ti-tags {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n line-height: 1em; }\n\n.ti-tag {\n background-color: #5C6BC0;\n color: #fff;\n border-radius: 2px;\n display: flex;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-tag:focus {\n outline: none; }\n .ti-tag .ti-content {\n display: flex;\n align-items: center; }\n .ti-tag .ti-tag-center {\n position: relative; }\n .ti-tag span {\n line-height: .85em; }\n .ti-tag span.ti-hidden {\n padding-left: 14px;\n visibility: hidden;\n height: 0px;\n white-space: pre; }\n .ti-tag .ti-actions {\n margin-left: 2px;\n display: flex;\n align-items: center;\n font-size: 1.15em; }\n .ti-tag .ti-actions i {\n cursor: pointer; }\n .ti-tag:last-child {\n margin-right: 4px; }\n .ti-tag.ti-invalid, .ti-tag.ti-tag.ti-deletion-mark {\n background-color: #e54d42; }\n\n.ti-new-tag-input-wrapper {\n display: flex;\n flex: 1 0 auto;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-new-tag-input-wrapper input {\n flex: 1 0 auto;\n min-width: 100px;\n border: none;\n padding: 0px;\n margin: 0px; }\n\n.ti-new-tag-input {\n line-height: initial; }\n\n.ti-autocomplete {\n border: 1px solid #ccc;\n border-top: none;\n position: absolute;\n width: 100%;\n background-color: #fff;\n z-index: 20; }\n\n.ti-item > div {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%; }\n\n.ti-selected-item {\n background-color: #5C6BC0;\n color: #fff; }\n'],sourceRoot:""}])},function(t,e,n){"use strict";t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(t,e){t.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":t.disabled},{"ti-focus":t.focused}]},[n("div",{staticClass:"ti-input"},[t.tagsCopy?n("ul",{staticClass:"ti-tags"},[t._l(t.tagsCopy,(function(e,a){return n("li",{key:a,staticClass:"ti-tag",class:[{"ti-editing":t.tagsEditStatus[a]},e.tiClasses,e.classes,{"ti-deletion-mark":t.isMarked(a)}],style:e.style,attrs:{tabindex:"0"},on:{click:function(n){return t.$emit("tag-clicked",{tag:e,index:a})}}},[n("div",{staticClass:"ti-content"},[t.$scopedSlots["tag-left"]?n("div",{staticClass:"ti-tag-left"},[t._t("tag-left",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e(),t._v(" "),n("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[t.$scopedSlots["tag-center"]?t._e():n("span",{class:{"ti-hidden":t.tagsEditStatus[a]},on:{click:function(e){return t.performEditTag(a)}}},[t._v(t._s(e.text))]),t._v(" "),t.$scopedSlots["tag-center"]?t._e():n("tag-input",{attrs:{scope:{edit:t.tagsEditStatus[a],maxlength:t.maxlength,tag:e,index:a,validateTag:t.createChangedTag,performCancelEdit:t.cancelEdit,performSaveEdit:t.performSaveTag}}}),t._v(" "),t._t("tag-center",null,{tag:e,index:a,maxlength:t.maxlength,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,validateTag:t.createChangedTag,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2),t._v(" "),t.$scopedSlots["tag-right"]?n("div",{staticClass:"ti-tag-right"},[t._t("tag-right",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e()]),t._v(" "),n("div",{staticClass:"ti-actions"},[t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:t.tagsEditStatus[a],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(e){return t.cancelEdit(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:!t.tagsEditStatus[a],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(e){return t.performDeleteTag(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._t("tag-actions",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)}):t._e()],2)])})),t._v(" "),n("li",{staticClass:"ti-new-tag-input-wrapper"},[n("input",t._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[t.createClasses(t.newTag,t.tags,t.validation,t.isDuplicate)],attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,type:"text",size:"1"},domProps:{value:t.newTag},on:{keydown:[function(e){return t.performAddTags(t.filteredAutocompleteItems[t.selectedItem]||t.newTag,e)},function(e){return e.type.indexOf("key")||8===e.keyCode?t.invokeDelete(e):null},function(e){return e.type.indexOf("key")||9===e.keyCode?t.performBlur(e):null},function(e){return e.type.indexOf("key")||38===e.keyCode?t.selectItem(e,"before"):null},function(e){return e.type.indexOf("key")||40===e.keyCode?t.selectItem(e,"after"):null}],paste:t.addTagsFromPaste,input:t.updateNewTag,blur:function(e){return t.$emit("blur",e)},focus:function(e){t.focused=!0,t.$emit("focus",e)},click:function(e){!t.addOnlyFromAutocomplete&&(t.selectedItem=null)}}},"input",t.$attrs,!1))])],2):t._e()]),t._v(" "),t._t("between-elements"),t._v(" "),t.autocompleteOpen?n("div",{staticClass:"ti-autocomplete",on:{mouseout:function(e){t.selectedItem=null}}},[t._t("autocomplete-header"),t._v(" "),n("ul",t._l(t.filteredAutocompleteItems,(function(e,a){return n("li",{key:a,staticClass:"ti-item",class:[e.tiClasses,e.classes,{"ti-selected-item":t.isSelected(a)}],style:e.style,on:{mouseover:function(e){!t.disabled&&(t.selectedItem=a)}}},[t.$scopedSlots["autocomplete-item"]?t._t("autocomplete-item",null,{item:e,index:a,performAdd:function(e){return t.performAddTags(e,void 0,"autocomplete")},selected:t.isSelected(a)}):n("div",{on:{click:function(n){return t.performAddTags(e,void 0,"autocomplete")}}},[t._v("\n "+t._s(e.text)+"\n ")])],2)})),0),t._v(" "),t._t("autocomplete-footer")],2):t._e()],2)};a._withStripped=!0;var i=n(5),r=n.n(i),o=function(t){return JSON.parse(JSON.stringify(t))},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0;void 0===t.text&&(t={text:t});var i=function(t,e){return e.filter((function(e){var n=t.text;return"string"==typeof e.rule?!new RegExp(e.rule).test(n):e.rule instanceof RegExp?!e.rule.test(n):"[object Function]"==={}.toString.call(e.rule)?e.rule(t):void 0})).map((function(t){return t.classes}))}(t,n),r=function(t,e){for(var n=0;n1?n-1:0),i=1;i1?e-1:0),a=1;a=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var t=this,e=this.autocompleteItems.map((function(e){return c(e,t.tags,t.validation,t.isDuplicate)}));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:s,getSelectedIndex:function(t){var e=this.filteredAutocompleteItems,n=this.selectedItem,a=e.length-1;if(0!==e.length)return null===n?0:"before"===t&&0===n?a:"after"===t&&n===a?0:"after"===t?n+1:n-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(t,e){t.preventDefault(),this.selectedItem=this.getSelectedIndex(e)},isSelected:function(t){return this.selectedItem===t},isMarked:function(t){return this.deletionMark===t},invokeDelete:function(){var t=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var e=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout((function(){return t.deletionMark=null}),1e3),this.deletionMark=e):this.performDeleteTag(e)}},addTagsFromPaste:function(){var t=this;this.addFromPaste&&setTimeout((function(){return t.performAddTags(t.newTag)}),10)},performEditTag:function(t){var e=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(t),this.$emit("before-editing-tag",{index:t,tag:this.tagsCopy[t],editTag:function(){return e.editTag(t)}}))},editTag:function(t){this.allowEditTags&&(this.toggleEditMode(t),this.focus(t))},toggleEditMode:function(t){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,t,!this.tagsEditStatus[t])},createChangedTag:function(t,e){var n=this.tagsCopy[t];n.text=e?e.target.value:this.tagsCopy[t].text,this.$set(this.tagsCopy,t,c(n,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.tagCenter[t].querySelector("input.ti-tag-input");n&&n.focus()}))},quote:function(t){return t.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(t){this.tags[t]&&(this.tagsCopy[t]=o(c(this.tags[t],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,t,!1))},hasForbiddingAddRule:function(t){var e=this;return t.some((function(t){var n=e.validation.find((function(e){return t===e.classes}));return!!n&&n.disableAdd}))},createTagTexts:function(t){var e=this,n=new RegExp(this.separators.map((function(t){return e.quote(t)})).join("|"));return t.split(n).map((function(t){return{text:t}}))},performDeleteTag:function(t){var e=this;this._events["before-deleting-tag"]||this.deleteTag(t),this.$emit("before-deleting-tag",{index:t,tag:this.tagsCopy[t],deleteTag:function(){return e.deleteTag(t)}})},deleteTag:function(t){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(t,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(t,e){var n=-1!==this[e].indexOf(t.keyCode)||-1!==this[e].indexOf(t.key);return n&&t.preventDefault(),!n},performAddTags:function(t,e,n){var a=this;if(!(this.disabled||e&&this.noTriggerKey(e,"addOnKey"))){var i=[];"object"===m(t)&&(i=[t]),"string"==typeof t&&(i=this.createTagTexts(t)),(i=i.filter((function(t){return t.text.trim().length>0}))).forEach((function(t){t=c(t,a.tags,a.validation,a.isDuplicate),a._events["before-adding-tag"]||a.addTag(t,n),a.$emit("before-adding-tag",{tag:t,addTag:function(){return a.addTag(t,n)}})}))}},duplicateFilter:function(t){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,t):!this.tagsCopy.find((function(e){return e.text===t.text}))},addTag:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",a=this.filteredAutocompleteItems.map((function(t){return t.text}));this.addOnlyFromAutocomplete&&-1===a.indexOf(t.text)||this.$nextTick((function(){return e.maxTags&&e.maxTags<=e.tagsCopy.length?e.$emit("max-tags-reached",t):e.avoidAddingDuplicates&&!e.duplicateFilter(t)?e.$emit("adding-duplicate",t):void(e.hasForbiddingAddRule(t.tiClasses)||(e.$emit("input",""),e.tagsCopy.push(t),e._events["update:tags"]&&e.$emit("update:tags",e.tagsCopy),"autocomplete"===n&&e.$refs.newTagInput.focus(),e.$emit("tags-changed",e.tagsCopy)))}))},performSaveTag:function(t,e){var n=this,a=this.tagsCopy[t];this.disabled||e&&this.noTriggerKey(e,"addOnKey")||0!==a.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(t,a),this.$emit("before-saving-tag",{index:t,tag:a,saveTag:function(){return n.saveTag(t,a)}}))},saveTag:function(t,e){if(this.avoidAddingDuplicates){var n=o(this.tagsCopy),a=n.splice(t,1)[0];if(this.isDuplicate?this.isDuplicate(n,a):-1!==n.map((function(t){return t.text})).indexOf(a.text))return this.$emit("saving-duplicate",e)}this.hasForbiddingAddRule(e.tiClasses)||(this.$set(this.tagsCopy,t,e),this.toggleEditMode(t),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var t=this;return!this.tagsCopy.some((function(e,n){return!r()(e,t.tags[n])}))},updateNewTag:function(t){var e=t.target.value;this.newTag=e,this.$emit("input",e)},initTags:function(){this.tagsCopy=u(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=o(this.tags).map((function(){return!1})),this._events["update:tags"]&&!this.tagsEqual()&&this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(t){this.$el.contains(t.target)||this.$el.contains(document.activeElement)||this.performBlur(t)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{value:function(t){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=t},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.value,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},destroyed:function(){document.removeEventListener("click",this.blurredOnClick)}},y=(n(9),d(v,a,[],!1,null,"61d92e31",null));y.options.__file="vue-tags-input/vue-tags-input.vue";var b=y.exports;n.d(e,"VueTagsInput",(function(){return b})),n.d(e,"createClasses",(function(){return s})),n.d(e,"createTag",(function(){return c})),n.d(e,"createTags",(function(){return u})),n.d(e,"TagInput",(function(){return f})),b.install=function(t){return t.component(b.name,b)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(b),e.default=b}])},function(t,e,n){"use strict";var a={name:"CustomAttachments",props:{title:String,name:String,error:Array},methods:{hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("input",{staticClass:"form-control",attrs:{multiple:"multiple",autocomplete:"off",placeholder:t.title,title:t.title,name:t.name,type:"file"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"73840c18",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomDate",props:{value:String,title:String,name:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.date.value)},hasError:function(){return this.error.length>0},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value?t.value.substr(0,10):""},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"7a261844",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomString",props:{title:String,name:String,value:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},clearField:function(){this.name="",this.$refs.str.value="",this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"str",staticClass:"form-control",attrs:{type:"text",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"ada77346",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTextarea",props:{title:String,name:String,value:String,error:Array},data:function(){return{textValue:this.value}},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.textValue,expression:"textValue"}],ref:"str",staticClass:"form-control",attrs:{name:t.name,title:t.title,autocomplete:"off",rows:"8",placeholder:t.title},domProps:{value:t.textValue},on:{input:[function(e){e.target.composing||(t.textValue=e.target.value)},t.handleInput]}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"40389097",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"StandardDate",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.date.value)},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value),this.$emit("clear:date")}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.date"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:"date[]",title:t.$t("firefly.date"),autocomplete:"off",disabled:t.index>0,placeholder:t.$t("firefly.date")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"4e877916",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"GroupDescription",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},clearField:function(){this.name="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"group_title",title:t.$t("firefly.split_transaction_title"),autocomplete:"off",placeholder:t.$t("firefly.split_transaction_title")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),0===t.error.length?n("p",{staticClass:"help-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title_help"))+"\n ")]):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"2666c561",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"TransactionDescription",mounted:function(){this.target=this.$refs.descr,this.descriptionAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/transaction-journals/all?search=",this.$refs.descr.focus()},components:{},data:function(){return{descriptionAutoCompleteURI:null,name:null,description:null,target:null}},methods:{search:function(t){return["ab","cd"]},hasError:function(){return this.error.length>0},clearDescription:function(){this.description="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value),this.$emit("clear:description")},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},handleEnter:function(t){t.keyCode},selectedItem:function(t){void 0!==this.name&&"string"!=typeof this.name&&(this.$refs.descr.value=this.name.description,this.$emit("input",this.$refs.descr.value))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.description"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"description[]",title:t.$t("firefly.description"),autocomplete:"off",placeholder:t.$t("firefly.description")},domProps:{value:t.value},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()},input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.descriptionAutoCompleteURI,target:t.target,"item-key":"description"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"dfd3d572",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTransactionFields",props:["value","error"],mounted:function(){this.getPreference()},data:function(){return{customInterestDate:null,fields:[{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1,internal_reference:!1,notes:!1,attachments:!1}]}},computed:{dateComponent:function(){return"custom-date"},stringComponent:function(){return"custom-string"},attachmentComponent:function(){return"custom-attachments"},textareaComponent:function(){return"custom-textarea"}},methods:{handleInput:function(t){this.$emit("input",this.value)},getPreference:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"api/v1/preferences/transaction_journal_optional_fields";axios.get(e).then((function(e){t.fields=e.data.data.attributes.data})).catch((function(){return console.warn("Oh. Something went wrong loading custom transaction fields.")}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.hidden_fields_preferences"))}}),t._v(" "),this.fields.interest_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.interest_date,name:"interest_date[]",title:t.$t("form.interest_date")},model:{value:t.value.interest_date,callback:function(e){t.$set(t.value,"interest_date",e)},expression:"value.interest_date"}}):t._e(),t._v(" "),this.fields.book_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.book_date,name:"book_date[]",title:t.$t("form.book_date")},model:{value:t.value.book_date,callback:function(e){t.$set(t.value,"book_date",e)},expression:"value.book_date"}}):t._e(),t._v(" "),this.fields.process_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.process_date,name:"process_date[]",title:t.$t("form.process_date")},model:{value:t.value.process_date,callback:function(e){t.$set(t.value,"process_date",e)},expression:"value.process_date"}}):t._e(),t._v(" "),this.fields.due_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.due_date,name:"due_date[]",title:t.$t("form.due_date")},model:{value:t.value.due_date,callback:function(e){t.$set(t.value,"due_date",e)},expression:"value.due_date"}}):t._e(),t._v(" "),this.fields.payment_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.payment_date,name:"payment_date[]",title:t.$t("form.payment_date")},model:{value:t.value.payment_date,callback:function(e){t.$set(t.value,"payment_date",e)},expression:"value.payment_date"}}):t._e(),t._v(" "),this.fields.invoice_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.invoice_date,name:"invoice_date[]",title:t.$t("form.invoice_date")},model:{value:t.value.invoice_date,callback:function(e){t.$set(t.value,"invoice_date",e)},expression:"value.invoice_date"}}):t._e(),t._v(" "),this.fields.internal_reference?n(t.stringComponent,{tag:"component",attrs:{error:t.error.internal_reference,name:"internal_reference[]",title:t.$t("form.internal_reference")},model:{value:t.value.internal_reference,callback:function(e){t.$set(t.value,"internal_reference",e)},expression:"value.internal_reference"}}):t._e(),t._v(" "),this.fields.attachments?n(t.attachmentComponent,{tag:"component",attrs:{error:t.error.attachments,name:"attachments[]",title:t.$t("firefly.attachments")},model:{value:t.value.attachments,callback:function(e){t.$set(t.value,"attachments",e)},expression:"value.attachments"}}):t._e(),t._v(" "),this.fields.notes?n(t.textareaComponent,{tag:"component",attrs:{error:t.error.notes,name:"notes[]",title:t.$t("firefly.notes")},model:{value:t.value.notes,callback:function(e){t.$set(t.value,"notes",e)},expression:"value.notes"}}):t._e()],1)}),[],!1,null,"c24d33ba",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"PiggyBank",props:["value","transactionType","error","no_piggy_bank"],mounted:function(){this.loadPiggies()},data:function(){return{piggies:[]}},methods:{handleInput:function(t){this.$emit("input",this.$refs.piggy.value)},hasError:function(){return this.error.length>0},loadPiggies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/piggy-banks";axios.get(e,{}).then((function(e){for(var n in t.piggies=[{name_with_amount:t.no_piggy_bank,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.piggies.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0!==this.transactionType&&"Transfer"===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12"},[this.piggies.length>0?n("select",{ref:"piggy",staticClass:"form-control",attrs:{name:"piggy_bank[]"},on:{input:t.handleInput}},t._l(this.piggies,(function(e){return n("option",{attrs:{label:e.name_with_amount},domProps:{value:e.id}},[t._v(t._s(e.name_with_amount))])})),0):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1797c09a",null);e.a=r.exports},function(t,e,n){"use strict";var a=n(3),i=n.n(a),r=n(29),o={name:"Tags",components:{VueTagsInput:n.n(r).a},props:["value","error"],data:function(){return{tag:"",autocompleteItems:[],debounce:null,tags:this.value}},watch:{tag:"initItems"},methods:{update:function(t){this.autocompleteItems=[],this.tags=t,this.$emit("input",this.tags)},clearTags:function(){this.tags=[]},hasError:function(){return this.error.length>0},initItems:function(){var t=this;if(!(this.tag.length<2)){var e=document.getElementsByTagName("base")[0].href+"json/tags?search=".concat(this.tag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){i.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.")}))}),600)}}}},s=n(0),c=Object(s.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.tags"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("vue-tags-input",{attrs:{tags:t.tags,title:t.$t("firefly.tags"),classes:"form-input","autocomplete-items":t.autocompleteItems,"add-only-from-autocomplete":!1,placeholder:t.$t("firefly.tags")},on:{"tags-changed":t.update},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearTags}},[n("i",{staticClass:"fa fa-trash-o"})])])],1)]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"4f8ece50",null);e.a=c.exports},function(t,e,n){"use strict";var a={name:"Category",props:{value:String,inputName:String,error:Array,accountName:{type:String,default:""}},data:function(){return{categoryAutoCompleteURI:null,name:null,target:null}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input,this.categoryAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/categories?search="},methods:{hasError:function(){return this.error.length>0},handleInput:function(t){"string"!=typeof this.$refs.input.value?this.$emit("input",this.$refs.input.value.name):this.$emit("input",this.$refs.input.value)},clearCategory:function(){this.name="",this.$refs.input.value="",this.$emit("input",this.$refs.input.value),this.$emit("clear:category")},selectedItem:function(t){void 0!==this.name&&(this.$emit("select:category",this.name),"string"!=typeof this.name?this.$emit("input",this.name.name):this.$emit("input",this.name))},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.$t("firefly.category"),autocomplete:"off","data-role":"input",name:"category[]",title:t.$t("firefly.category")},domProps:{value:t.value},on:{input:t.handleInput,keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.categoryAutoCompleteURI,target:t.target,"item-key":"name"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"5fd3029c",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Amount",props:["source","destination","transactionType","value","error"],data:function(){return{sourceAccount:this.source,destinationAccount:this.destination,type:this.transactionType}},methods:{handleInput:function(t){this.$emit("input",this.$refs.amount.value)},clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},changeData:function(){var t=this.transactionType;t||this.source.name||this.destination.name?(null===t&&(t=""),""!==t||""===this.source.currency_name?""!==t||""===this.destination.currency_name?"withdrawal"!==t.toLowerCase()&&"reconciliation"!==t.toLowerCase()&&"transfer"!==t.toLowerCase()?("deposit"===t.toLowerCase()&&"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()&&$(this.$refs.cur).text(this.destination.currency_name),"deposit"!==t.toLowerCase()||"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()||$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text(this.source.currency_name):$(this.$refs.cur).text(this.destination.currency_name):$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text("")}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},mounted:function(){this.changeData()}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("firefly.amount"))+"\n ")]),t._v(" "),n("label",{ref:"cur",staticClass:"col-sm-4 control-label"}),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"amount[]",title:t.$t("firefly.amount"),autocomplete:"off",placeholder:t.$t("firefly.amount")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"440928b9",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"ForeignAmountSelect",props:["source","destination","transactionType","value","error","no_currency","title"],mounted:function(){this.liability=!1,this.loadCurrencies()},data:function(){return{currencies:[],enabledCurrencies:[],exclude:null,liability:!1}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},methods:{clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},handleInput:function(t){var e={amount:this.$refs.amount.value,currency_id:this.$refs.currency_select.value};this.$emit("input",e)},changeData:function(){this.enabledCurrencies=[];var t=this.destination.type?this.destination.type.toLowerCase():"invalid",e=this.source.type?this.source.type.toLowerCase():"invalid",n=this.transactionType?this.transactionType.toLowerCase():"invalid",a=["loan","debt","mortgage"],i=-1!==a.indexOf(e),r=-1!==a.indexOf(t);if("transfer"===n||r||i)for(var o in this.liability=!0,this.currencies)this.currencies.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&this.currencies[o].id===this.destination.currency_id&&this.enabledCurrencies.push(this.currencies[o]);else if("withdrawal"===n&&this.source&&!1===i)for(var s in this.currencies)this.currencies.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.source.currency_id!==this.currencies[s].id&&this.enabledCurrencies.push(this.currencies[s]);else if("deposit"===n&&this.destination)for(var c in this.currencies)this.currencies.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294&&this.destination.currency_id!==this.currencies[c].id&&this.enabledCurrencies.push(this.currencies[c]);else for(var u in this.currencies)this.currencies.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&this.enabledCurrencies.push(this.currencies[u])},loadCurrencies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/currencies";axios.get(e,{}).then((function(e){for(var n in t.currencies=[{name:t.no_currency,id:0,enabled:!0}],t.enabledCurrencies=[{name:t.no_currency,id:0,enabled:!0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.data[n].enabled&&(t.currencies.push(e.data[n]),t.enabledCurrencies.push(e.data[n]))}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return this.enabledCurrencies.length>=1?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("form.foreign_amount"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("select",{ref:"currency_select",staticClass:"form-control",attrs:{name:"foreign_currency[]"},on:{input:t.handleInput}},t._l(this.enabledCurrencies,(function(e){return e.enabled?n("option",{attrs:{label:e.name},domProps:{value:e.id,selected:t.value.currency_id===e.id}},[t._v("\n "+t._s(e.name)+"\n ")]):t._e()})),0)]),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[this.enabledCurrencies.length>0?n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"foreign_amount[]",title:this.title,autocomplete:"off",placeholder:this.title},domProps:{value:t.value.amount},on:{input:t.handleInput}}):t._e(),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"37601284",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{source:String,destination:String,type:String},methods:{changeValue:function(){if(this.source&&this.destination){var t="";window.accountToTypes[this.source]?window.accountToTypes[this.source][this.destination]?t=window.accountToTypes[this.source][this.destination]:console.warn("User selected an impossible destination."):console.warn("User selected an impossible source."),""!==t&&(this.transactionType=t,this.sentence=this.$t("firefly.you_create_"+t.toLowerCase()),this.$emit("act:limitSourceType",this.source),this.$emit("act:limitDestinationType",this.destination))}else this.sentence="",this.transactionType="";this.$emit("set:transactionType",this.transactionType)}},data:function(){return{transactionType:this.type,sentence:""}},watch:{source:function(){this.changeValue()},destination:function(){this.changeValue()}},name:"TransactionType"},i=n(0),r=Object(i.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-12"},[""!==this.sentence?e("label",{staticClass:"control-label text-info"},[this._v("\n "+this._s(this.sentence)+"\n ")]):this._e()])])}),[],!1,null,"0539dc1a",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{inputName:String,title:String,index:Number,transactionType:String,error:Array,accountName:{type:String,default:""},accountTypeFilters:{type:Array,default:function(){return[]}},defaultAccountTypeFilters:{type:Array,default:function(){return[]}}},data:function(){return{accountAutoCompleteURI:null,name:null,trType:this.transactionType,target:null,inputDisabled:!1,allowedTypes:this.accountTypeFilters,defaultAllowedTypes:this.defaultAccountTypeFilters}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input;var t=this.allowedTypes.join(",");this.name=this.accountName,this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search=",this.triggerTransactionType()},watch:{transactionType:function(){this.triggerTransactionType()},accountName:function(){this.name=this.accountName},accountTypeFilters:function(){var t=this.accountTypeFilters.join(",");0===this.accountTypeFilters.length&&(t=this.defaultAccountTypeFilters.join(",")),this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search="},name:function(){}},methods:{hasError:function(){return this.error.length>0},triggerTransactionType:function(){if(this.name,null!==this.transactionType&&""!==this.transactionType&&(this.inputDisabled=!1,""!==this.transactionType.toString()&&this.index>0)){if("transfer"===this.transactionType.toString().toLowerCase())return void(this.inputDisabled=!0);if("withdrawal"===this.transactionType.toString().toLowerCase()&&"source"===this.inputName.substr(0,6).toLowerCase())return void(this.inputDisabled=!0);"deposit"===this.transactionType.toString().toLowerCase()&&"destination"===this.inputName.substr(0,11).toLowerCase()&&(this.inputDisabled=!0)}},selectedItem:function(t){void 0!==this.name&&("string"==typeof this.name&&this.$emit("clear:value"),this.$emit("select:account",this.name))},clearSource:function(t){this.name="",this.$emit("clear:value")},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.title,"data-index":t.index,autocomplete:"off","data-role":"input",disabled:t.inputDisabled,name:t.inputName,title:t.title},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearSource}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.accountAutoCompleteURI,target:t.target,"item-key":"name_with_balance"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"019a1ec0",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Budget",props:{transactionType:String,value:{type:[String,Number],default:0},error:Array,no_budget:String},mounted:function(){this.loadBudgets()},data:function(){return{selected:this.value,budgets:[]}},methods:{signalChange:function(t){this.$emit("input",this.$refs.budget.value)},handleInput:function(t){this.$emit("input",this.$refs.budget.value)},hasError:function(){return this.error.length>0},loadBudgets:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/budgets";axios.get(e,{}).then((function(e){for(var n in t.budgets=[{name:t.no_budget,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.budgets.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0===this.transactionType||"withdrawal"===this.transactionType||"Withdrawal"===this.transactionType||""===this.transactionType||null===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[this.budgets.length>0?n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"budget",staticClass:"form-control",attrs:{name:"budget[]",title:t.$t("firefly.budget")},on:{input:t.handleInput,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.selected=e.target.multiple?n:n[0]},t.signalChange]}},t._l(this.budgets,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),0):t._e(),t._v(" "),1===this.budgets.length?n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.no_budget_pointer"))}}):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1e0beee7",null);e.a=r.exports},,,,,function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Jak to jde?","flash_error":"Chyba!","flash_success":"Úspěšně dokončeno!","close":"Zavřít","split_transaction_title":"Popis rozúčtování","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Rozdělit","transaction_journal_information":"Informace o transakci","no_budget_pointer":"Zdá se, že zatím nemáte žádné rozpočty. Na stránce rozpočty byste nějaké měli vytvořit. Rozpočty mohou pomoci udržet si přehled ve výdajích.","source_account":"Zdrojový účet","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Cílový účet","add_another_split":"Přidat další rozúčtování","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Odeslat","amount":"Částka","date":"Datum","tags":"Štítky","no_budget":"(žádný rozpočet)","category":"Kategorie","attachments":"Přílohy","notes":"Poznámky","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Pokud vytvoříte rozúčtování, je třeba, aby zde byl celkový popis pro všechna rozúčtování dané transakce.","none_in_select_list":"(žádné)","no_piggy_bank":"(žádná pokladnička)","description":"Popis","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Rozpočet","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Úrokové datum","book_date":"Datum rezervace","process_date":"Datum zpracování","due_date":"Datum splatnosti","foreign_amount":"Částka v cizí měně","payment_date":"Datum zaplacení","invoice_date":"Datum vystavení","internal_reference":"Interní reference"},"config":{"html_language":"cs"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Überblick","flash_error":"Fehler!","flash_success":"Geschafft!","close":"Schließen","split_transaction_title":"Beschreibung der Splittbuchung","errors_submission":"Problem bei der Übermittlung. Bitte überprüfen Sie die nachfolgenden Fehler.","split":"Teilen","transaction_journal_information":"Transaktionsinformationen","no_budget_pointer":"Sie scheinen noch keine Kostenrahmen festgelegt zu haben. Sie sollten einige davon auf der Seite „Kostenrahmen” anlegen. Kostenrahmen können Ihnen dabei helfen, den Überblick über die Ausgaben zu behalten.","source_account":"Quellkonto","hidden_fields_preferences":"Sie können weitere Buchungsoptionen in Ihren Einstellungen aktivieren.","destination_account":"Zielkonto","add_another_split":"Eine weitere Aufteilung hinzufügen","submission":"Übermittlung","create_another":"Nach dem Speichern hierher zurückkehren, um ein weiteres zu erstellen.","reset_after":"Formular nach der Übermittlung zurücksetzen","submit":"Absenden","amount":"Betrag","date":"Datum","tags":"Schlagwörter","no_budget":"(kein Budget)","category":"Kategorie","attachments":"Anhänge","notes":"Notizen","update_transaction":"Buchung aktualisieren","after_update_create_another":"Nach dem Aktualisieren hierher zurückkehren, um weiter zu bearbeiten.","store_as_new":"Als neue Buchung speichern statt zu aktualisieren.","split_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchhaltung geben.","none_in_select_list":"(Keine)","no_piggy_bank":"(kein Sparschwein)","description":"Beschreibung","split_transaction_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchung geben.","destination_account_reconciliation":"Sie können das Zielkonto einer Kontenausgleichsbuchung nicht bearbeiten.","source_account_reconciliation":"Sie können das Quellkonto einer Kontenausgleichsbuchung nicht bearbeiten.","budget":"Budget","you_create_withdrawal":"Sie haben eine Auszahlung erstellt.","you_create_transfer":"Sie haben eine Buchung erstellt.","you_create_deposit":"Sie haben eine Einzahlung erstellt."},"form":{"interest_date":"Zinstermin","book_date":"Buchungsdatum","process_date":"Bearbeitungsdatum","due_date":"Fälligkeitstermin","foreign_amount":"Ausländischer Betrag","payment_date":"Zahlungsdatum","invoice_date":"Rechnungsdatum","internal_reference":"Interner Verweis"},"config":{"html_language":"de"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Error!","flash_success":"Success!","close":"Close","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Split","transaction_journal_information":"Transaction information","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Add another split","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Submit","amount":"Amount","date":"Date","tags":"Tags","no_budget":"(no budget)","category":"Category","attachments":"Attachments","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Description","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Interest date","book_date":"Book date","process_date":"Processing date","due_date":"Due date","foreign_amount":"Foreign amount","payment_date":"Payment date","invoice_date":"Invoice date","internal_reference":"Internal reference"},"config":{"html_language":"en"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"¿Qué está pasando?","flash_error":"¡Error!","flash_success":"¡Operación correcta!","close":"Cerrar","split_transaction_title":"Descripción de la transacción dividida","errors_submission":"Hubo algo malo con su envío. Por favor, revise los errores de abajo.","split":"Separar","transaction_journal_information":"Información de transacción","no_budget_pointer":"Parece que aún no tiene presupuestos. Debe crear algunos en la página presupuestos. Los presupuestos pueden ayudarle a realizar un seguimiento de los gastos.","source_account":"Cuenta origen","hidden_fields_preferences":"Puede habilitar más opciones de transacción en sus ajustes .","destination_account":"Cuenta destino","add_another_split":"Añadir otra división","submission":"Envío","create_another":"Después de guardar, vuelve aquí para crear otro.","reset_after":"Restablecer formulario después del envío","submit":"Enviar","amount":"Cantidad","date":"Fecha","tags":"Etiquetas","no_budget":"(sin presupuesto)","category":"Categoria","attachments":"Archivos adjuntos","notes":"Notas","update_transaction":"Actualizar transacción","after_update_create_another":"Después de actualizar, vuelve aquí para continuar editando.","store_as_new":"Almacenar como una nueva transacción en lugar de actualizar.","split_title_help":"Si crea una transacción dividida, debe haber una descripción global para todos los fragmentos de la transacción.","none_in_select_list":"(ninguno)","no_piggy_bank":"(sin alcancía)","description":"Descripción","split_transaction_title_help":"Si crea una transacción dividida, debe existir una descripción global para todas las divisiones de la transacción.","destination_account_reconciliation":"No puede editar la cuenta de destino de una transacción de reconciliación.","source_account_reconciliation":"No puede editar la cuenta de origen de una transacción de reconciliación.","budget":"Presupuesto","you_create_withdrawal":"Está creando un retiro.","you_create_transfer":"Está creando una transferencia.","you_create_deposit":"Está creando un depósito."},"form":{"interest_date":"Fecha de interés","book_date":"Fecha de registro","process_date":"Fecha de procesamiento","due_date":"Fecha de vencimiento","foreign_amount":"Cantidad extranjera","payment_date":"Fecha de pago","invoice_date":"Fecha de la factura","internal_reference":"Referencia interna"},"config":{"html_language":"es"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Τι παίζει;","flash_error":"Σφάλμα!","flash_success":"Επιτυχία!","close":"Κλείσιμο","split_transaction_title":"Περιγραφή της συναλλαγής με διαχωρισμό","errors_submission":"Υπήρξε κάποιο λάθος με την υποβολή σας. Ελέγξτε τα παρακάτω σφάλματα.","split":"Διαχωρισμός","transaction_journal_information":"Πληροφορίες συναλλαγής","no_budget_pointer":"Φαίνεται πως δεν έχετε ορίσει προϋπολογισμούς ακόμη. Πρέπει να δημιουργήσετε κάποιον στη σελίδα προϋπολογισμών. Οι προϋπολογισμοί σας βοηθούν να επιβλέπετε τις δαπάνες σας.","source_account":"Λογαριασμός προέλευσης","hidden_fields_preferences":"Μπορείτε να ενεργοποιήσετε περισσότερες επιλογές συναλλαγών στις ρυθμίσεις.","destination_account":"Λογαριασμός προορισμού","add_another_split":"Προσθήκη ενός ακόμα διαχωρισμού","submission":"Υποβολή","create_another":"Μετά την αποθήκευση, επιστρέψτε εδώ για να δημιουργήσετε ακόμη ένα.","reset_after":"Επαναφορά φόρμας μετά την υποβολή","submit":"Υποβολή","amount":"Ποσό","date":"Ημερομηνία","tags":"Ετικέτες","no_budget":"(χωρίς προϋπολογισμό)","category":"Κατηγορία","attachments":"Συνημμένα","notes":"Σημειώσεις","update_transaction":"Ενημέρωση συναλλαγής","after_update_create_another":"Μετά την ενημέρωση, επιστρέψτε εδώ για να συνεχίσετε την επεξεργασία.","store_as_new":"Αποθήκευση ως νέα συναλλαγή αντί για ενημέρωση.","split_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","none_in_select_list":"(τίποτα)","no_piggy_bank":"(χωρίς κουμπαρά)","description":"Περιγραφή","split_transaction_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","destination_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προορισμού σε μια συναλλαγή τακτοποίησης.","source_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προέλευσης σε μια συναλλαγή τακτοποίησης.","budget":"Προϋπολογισμός","you_create_withdrawal":"Δημιουργείτε μια ανάληψη.","you_create_transfer":"Δημιουργείτε μια μεταφορά.","you_create_deposit":"Δημιουργείτε μια κατάθεση."},"form":{"interest_date":"Ημερομηνία τοκισμού","book_date":"Ημερομηνία εγγραφής","process_date":"Ημερομηνία επεξεργασίας","due_date":"Ημερομηνία προθεσμίας","foreign_amount":"Ποσό σε ξένο νόμισμα","payment_date":"Ημερομηνία πληρωμής","invoice_date":"Ημερομηνία τιμολόγησης","internal_reference":"Εσωτερική αναφορά"},"config":{"html_language":"el"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Que se passe-t-il ?","flash_error":"Erreur !","flash_success":"Super !","close":"Fermer","split_transaction_title":"Description de l\'opération ventilée","errors_submission":"Certaines informations ne sont pas correctes dans votre formulaire. Veuillez vérifier les erreurs ci-dessous.","split":"Ventiler","transaction_journal_information":"Informations sur les opérations","no_budget_pointer":"Vous semblez n’avoir encore aucun budget. Vous devriez en créer un sur la page des budgets. Les budgets peuvent vous aider à garder une trace des dépenses.","source_account":"Compte source","hidden_fields_preferences":"Vous pouvez activer plus d\'options d\'opérations dans vos paramètres.","destination_account":"Compte de destination","add_another_split":"Ajouter une autre fraction","submission":"Soumission","create_another":"Après enregistrement, revenir ici pour en créer un nouveau.","reset_after":"Réinitialiser le formulaire après soumission","submit":"Soumettre","amount":"Montant","date":"Date","tags":"Tags","no_budget":"(pas de budget)","category":"Catégorie","attachments":"Pièces jointes","notes":"Notes","update_transaction":"Mettre à jour l\'opération","after_update_create_another":"Après la mise à jour, revenir ici pour continuer l\'édition.","store_as_new":"Enregistrer comme une nouvelle opération au lieu de mettre à jour.","split_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fractions de l\'opération.","none_in_select_list":"(aucun)","no_piggy_bank":"(aucune tirelire)","description":"Description","split_transaction_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fraction de l\'opération.","destination_account_reconciliation":"Vous ne pouvez pas modifier le compte de destination d\'une opération de rapprochement.","source_account_reconciliation":"Vous ne pouvez pas modifier le compte source d\'une opération de rapprochement.","budget":"Budget","you_create_withdrawal":"Vous saisissez une dépense.","you_create_transfer":"Vous saisissez un transfert.","you_create_deposit":"Vous saisissez un dépôt."},"form":{"interest_date":"Date de valeur (intérêts)","book_date":"Date de réservation","process_date":"Date de traitement","due_date":"Échéance","foreign_amount":"Montant en devise étrangère","payment_date":"Date de paiement","invoice_date":"Date de facturation","internal_reference":"Référence interne"},"config":{"html_language":"fr"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mi a helyzet?","flash_error":"Hiba!","flash_success":"Siker!","close":"Bezárás","split_transaction_title":"Felosztott tranzakció leírása","errors_submission":"Hiba történt a beküldés során. Kérem, javítsa az alábbi hibákat.","split":"Felosztás","transaction_journal_information":"Tranzakciós információk","no_budget_pointer":"Úgy tűnik, még nincsenek költségkeretek. Költségkereteket a költségkeretek oldalon lehet létrehozni. A költségkeretek segítenek nyomon követni a költségeket.","source_account":"Forrás számla","hidden_fields_preferences":"A beállításokban több tranzakciós beállítási lehetőség is megadható.","destination_account":"Célszámla","add_another_split":"Másik felosztás hozzáadása","submission":"Feliratkozás","create_another":"A tárolás után térjen vissza ide új létrehozásához.","reset_after":"Űrlap törlése a beküldés után","submit":"Beküldés","amount":"Összeg","date":"Dátum","tags":"Címkék","no_budget":"(nincs költségkeret)","category":"Kategória","attachments":"Mellékletek","notes":"Megjegyzések","update_transaction":"Tranzakció frissítése","after_update_create_another":"A frissítés után térjen vissza ide a szerkesztés folytatásához.","store_as_new":"Tárolás új tranzakcióként frissítés helyett.","split_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","none_in_select_list":"(nincs)","no_piggy_bank":"(nincs malacpersely)","description":"Leírás","split_transaction_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","destination_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció célszámláját.","source_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció forrásszámláját.","budget":"Költségkeret","you_create_withdrawal":"Egy költség létrehozása.","you_create_transfer":"Egy átutalás létrehozása.","you_create_deposit":"Egy bevétel létrehozása."},"form":{"interest_date":"Kamatfizetési időpont","book_date":"Könyvelés dátuma","process_date":"Feldolgozás dátuma","due_date":"Lejárati időpont","foreign_amount":"Külföldi összeg","payment_date":"Fizetés dátuma","invoice_date":"Számla dátuma","internal_reference":"Belső hivatkozás"},"config":{"html_language":"hu"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Kesalahan!","flash_success":"Keberhasilan!","close":"Dekat","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Pisah","transaction_journal_information":"Informasi transaksi","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Tambahkan perpecahan lagi","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Menyerahkan","amount":"Jumlah","date":"Tanggal","tags":"Tag","no_budget":"(no budget)","category":"Kategori","attachments":"Lampiran","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Deskripsi","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Anggaran","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Tanggal bunga","book_date":"Tanggal buku","process_date":"Tanggal pemrosesan","due_date":"Batas tanggal terakhir","foreign_amount":"Foreign amount","payment_date":"Tanggal pembayaran","invoice_date":"Tanggal faktur","internal_reference":"Referensi internal"},"config":{"html_language":"id"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"La tua situazione finanziaria","flash_error":"Errore!","flash_success":"Successo!","close":"Chiudi","split_transaction_title":"Descrizione della transazione suddivisa","errors_submission":"Errore durante l\'invio. Controlla gli errori segnalati qui sotto.","split":"Dividi","transaction_journal_information":"Informazioni transazione","no_budget_pointer":"Sembra che tu non abbia ancora dei budget. Dovresti crearne alcuni nella pagina dei budget. I budget possono aiutarti a tenere traccia delle spese.","source_account":"Conto di origine","hidden_fields_preferences":"Puoi abilitare maggiori opzioni per le transazioni nelle tue impostazioni.","destination_account":"Conto destinazione","add_another_split":"Aggiungi un\'altra divisione","submission":"Invio","create_another":"Dopo il salvataggio, torna qui per crearne un\'altra.","reset_after":"Resetta il modulo dopo l\'invio","submit":"Invia","amount":"Importo","date":"Data","tags":"Etichette","no_budget":"(nessun budget)","category":"Categoria","attachments":"Allegati","notes":"Note","update_transaction":"Aggiorna transazione","after_update_create_another":"Dopo l\'aggiornamento, torna qui per continuare la modifica.","store_as_new":"Salva come nuova transazione invece di aggiornarla.","split_title_help":"Se crei una transazione suddivisa è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","none_in_select_list":"(nessuna)","no_piggy_bank":"(nessun salvadanaio)","description":"Descrizione","split_transaction_title_help":"Se crei una transazione suddivisa, è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","destination_account_reconciliation":"Non è possibile modificare il conto di destinazione di una transazione di riconciliazione.","source_account_reconciliation":"Non puoi modificare il conto di origine di una transazione di riconciliazione.","budget":"Budget","you_create_withdrawal":"Stai creando un prelievo.","you_create_transfer":"Stai creando un trasferimento.","you_create_deposit":"Stai creando un deposito."},"form":{"interest_date":"Data interesse","book_date":"Data contabile","process_date":"Data elaborazione","due_date":"Data scadenza","foreign_amount":"Importo estero","payment_date":"Data pagamento","invoice_date":"Data fatturazione","internal_reference":"Riferimento interno"},"config":{"html_language":"it"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hoe staat het er voor?","flash_error":"Fout!","flash_success":"Gelukt!","close":"Sluiten","split_transaction_title":"Beschrijving van de gesplitste transactie","errors_submission":"Er ging iets mis. Check de errors.","split":"Splitsen","transaction_journal_information":"Transactieinformatie","no_budget_pointer":"Je hebt nog geen budgetten. Maak er een aantal op de budgetten-pagina. Met budgetten kan je je uitgaven beter bijhouden.","source_account":"Bronrekening","hidden_fields_preferences":"Je kan meer transactieopties inschakelen in je instellingen.","destination_account":"Doelrekening","add_another_split":"Voeg een split toe","submission":"Indienen","create_another":"Terug naar deze pagina voor een nieuwe transactie.","reset_after":"Reset formulier na opslaan","submit":"Invoeren","amount":"Bedrag","date":"Datum","tags":"Tags","no_budget":"(geen budget)","category":"Categorie","attachments":"Bijlagen","notes":"Notities","update_transaction":"Update transactie","after_update_create_another":"Na het opslaan terug om door te gaan met wijzigen.","store_as_new":"Opslaan als nieuwe transactie ipv de huidige bij te werken.","split_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","none_in_select_list":"(geen)","no_piggy_bank":"(geen spaarpotje)","description":"Omschrijving","split_transaction_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","destination_account_reconciliation":"Je kan de doelrekening van een afstemming niet wijzigen.","source_account_reconciliation":"Je kan de bronrekening van een afstemming niet wijzigen.","budget":"Budget","you_create_withdrawal":"Je maakt een uitgave.","you_create_transfer":"Je maakt een overschrijving.","you_create_deposit":"Je maakt inkomsten."},"form":{"interest_date":"Rentedatum","book_date":"Boekdatum","process_date":"Verwerkingsdatum","due_date":"Vervaldatum","foreign_amount":"Bedrag in vreemde valuta","payment_date":"Betalingsdatum","invoice_date":"Factuurdatum","internal_reference":"Interne verwijzing"},"config":{"html_language":"nl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hvordan går det?","flash_error":"Feil!","flash_success":"Suksess!","close":"Lukk","split_transaction_title":"Description of the split transaction","split":"Del opp","transaction_journal_information":"Transaksjonsinformasjon","source_account":"Source account","destination_account":"Destination account","add_another_split":"Legg til en oppdeling til","submit":"Send inn","amount":"Beløp","no_budget":"(ingen budsjett)","category":"Kategori","attachments":"Vedlegg","notes":"Notater"},"form":{"interest_date":"Rentedato","book_date":"Bokføringsdato","process_date":"Prosesseringsdato","due_date":"Forfallsdato","payment_date":"Betalingsdato","invoice_date":"Fakturadato","internal_reference":"Intern referanse"},"config":{"html_language":"no"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Co jest grane?","flash_error":"Błąd!","flash_success":"Sukces!","close":"Zamknij","split_transaction_title":"Opis podzielonej transakcji","errors_submission":"Coś poszło nie tak w czasie zapisu. Proszę sprawdź błędy poniżej.","split":"Podziel","transaction_journal_information":"Informacje o transakcji","no_budget_pointer":"Wygląda na to że nie masz jeszcze budżetów. Powinieneś utworzyć kilka na stronie budżety. Budżety mogą Ci pomóc śledzić wydatki.","source_account":"Konto źródłowe","hidden_fields_preferences":"Możesz włączyć więcej opcji transakcji w swoich ustawieniach.","destination_account":"Konto docelowe","add_another_split":"Dodaj kolejny podział","submission":"Zapisz","create_another":"Po zapisaniu wróć tutaj, aby utworzyć kolejny.","reset_after":"Wyczyść formularz po zapisaniu","submit":"Prześlij","amount":"Kwota","date":"Data","tags":"Tagi","no_budget":"(brak budżetu)","category":"Kategoria","attachments":"Załączniki","notes":"Notatki","update_transaction":"Zaktualizuj transakcję","after_update_create_another":"Po aktualizacji wróć tutaj, aby kontynuować edycję.","store_as_new":"Zapisz jako nową zamiast aktualizować.","split_title_help":"Podzielone transakcje muszą posiadać globalny opis.","none_in_select_list":"(żadne)","no_piggy_bank":"(brak skarbonki)","description":"Opis","split_transaction_title_help":"Jeśli tworzysz podzieloną transakcję, musi ona posiadać globalny opis dla wszystkich podziałów w transakcji.","destination_account_reconciliation":"Nie możesz edytować konta docelowego transakcji uzgadniania.","source_account_reconciliation":"Nie możesz edytować konta źródłowego transakcji uzgadniania.","budget":"Budżet","you_create_withdrawal":"Tworzysz wydatek.","you_create_transfer":"Tworzysz przelew.","you_create_deposit":"Tworzysz wpłatę."},"form":{"interest_date":"Data odsetek","book_date":"Data księgowania","process_date":"Data przetworzenia","due_date":"Termin realizacji","foreign_amount":"Kwota zagraniczna","payment_date":"Data płatności","invoice_date":"Data faktury","internal_reference":"Wewnętrzny numer"},"config":{"html_language":"pl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mitä kuuluu?","flash_error":"Virhe!","flash_success":"Valmista tuli!","close":"Sulje","split_transaction_title":"Jaetun tapahtuman kuvaus","errors_submission":"Lomakkeen tiedoissa oli puutteita - alta löydät listan puutteista.","split":"Jaa","transaction_journal_information":"Tapahtumatiedot","no_budget_pointer":"Sinulla ei näyttäisi olevan vielä yhtään budjettia. Sinun kannattaisi luoda niitä budjetit-sivulla. Budjetit voivat auttaa sinua pitämään kirjaa kuluistasi.","source_account":"Lähdetili","hidden_fields_preferences":"Voit aktivoida lisää tapahtumavalintoja asetuksissa.","destination_account":"Kohdetili","add_another_split":"Lisää tapahtumaan uusi osa","submission":"Vahvistus","create_another":"Tallennuksen jälkeen, palaa takaisin luomaan uusi tapahtuma.","reset_after":"Tyhjennä lomake lähetyksen jälkeen","submit":"Vahvista","amount":"Summa","date":"Päivämäärä","tags":"Tägit","no_budget":"(ei budjettia)","category":"Kategoria","attachments":"Liitteet","notes":"Muistiinpanot","update_transaction":"Päivitä tapahtuma","after_update_create_another":"Päivityksen jälkeen, palaa takaisin jatkamaan muokkausta.","store_as_new":"Tallenna uutena tapahtumana päivityksen sijaan.","split_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","none_in_select_list":"(ei mitään)","no_piggy_bank":"(ei säästöpossu)","description":"Kuvaus","split_transaction_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","destination_account_reconciliation":"Et voi muokata täsmäytystapahtuman kohdetiliä.","source_account_reconciliation":"Et voi muokata täsmäytystapahtuman lähdetiliä.","budget":"Budjetti","you_create_withdrawal":"Olet luomassa nostoa.","you_create_transfer":"Olet luomassa siirtoa.","you_create_deposit":"Olet luomassa talletusta."},"form":{"interest_date":"Korkopäivä","book_date":"Kirjauspäivä","process_date":"Käsittelypäivä","due_date":"Eräpäivä","foreign_amount":"Ulkomaan summa","payment_date":"Maksupäivä","invoice_date":"Laskun päivämäärä","internal_reference":"Sisäinen viite"},"config":{"html_language":"fi"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"O que está acontecendo?","flash_error":"Erro!","flash_success":"Sucesso!","close":"Fechar","split_transaction_title":"Descrição da transação dividida","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Dividir","transaction_journal_information":"Informação da transação","no_budget_pointer":"Parece que você ainda não tem orçamentos. Você deve criar alguns na página de orçamentos. Orçamentos podem ajudá-lo a manter o controle das despesas.","source_account":"Conta origem","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Conta destino","add_another_split":"Adicionar outra divisão","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Enviar","amount":"Valor","date":"Data","tags":"Tags","no_budget":"(sem orçamento)","category":"Categoria","attachments":"Anexos","notes":"Notas","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Se você criar uma transação dividida, é necessário haver uma descrição global para todas as partes da transação.","none_in_select_list":"(nenhum)","no_piggy_bank":"(nenhum cofrinho)","description":"Descrição","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","source_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","budget":"Orçamento","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interesse","book_date":"Data reserva","process_date":"Data de processamento","due_date":"Data de vencimento","foreign_amount":"Montante em moeda estrangeira","payment_date":"Data de pagamento","invoice_date":"Data da Fatura","internal_reference":"Referência interna"},"config":{"html_language":"pt-br"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Ce se redă?","flash_error":"Eroare!","flash_success":"Succes!","close":"Închide","split_transaction_title":"Descrierea tranzacției divizate","errors_submission":"A fost ceva în neregulă cu transmiterea dvs. Vă rugăm să consultați erorile de mai jos.","split":"Împarte","transaction_journal_information":"Informații despre tranzacții","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Contul sursă","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Contul de destinație","add_another_split":"Adăugați o divizare","submission":"Transmitere","create_another":"După stocare, reveniți aici pentru a crea alta.","reset_after":"Resetați formularul după trimitere","submit":"Trimite","amount":"Sumă","date":"Dată","tags":"Etichete","no_budget":"(nici un buget)","category":"Categorie","attachments":"Atașamente","notes":"Notițe","update_transaction":"Actualizați tranzacția","after_update_create_another":"După actualizare, reveniți aici pentru a continua editarea.","store_as_new":"Stocați ca o tranzacție nouă în loc să actualizați.","split_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","none_in_select_list":"(nici unul)","no_piggy_bank":"(nicio pușculiță)","description":"Descriere","split_transaction_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","destination_account_reconciliation":"Nu puteți edita contul de destinație al unei tranzacții de reconciliere.","source_account_reconciliation":"Nu puteți edita contul sursă al unei tranzacții de reconciliere.","budget":"Buget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interes","book_date":"Rezervă dată","process_date":"Data procesării","due_date":"Data scadentă","foreign_amount":"Sumă străină","payment_date":"Data de plată","invoice_date":"Data facturii","internal_reference":"Referință internă"},"config":{"html_language":"ro"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Что происходит с моими финансами?","flash_error":"Ошибка!","flash_success":"Успешно!","close":"Закрыть","split_transaction_title":"Описание разделённой транзакции","errors_submission":"При отправке произошла ошибка. Пожалуйста, проверьте ошибки ниже.","split":"Разделить","transaction_journal_information":"Информация о транзакции","no_budget_pointer":"Похоже, у вас пока нет бюджетов. Вы должны создать их в разделе Бюджеты. Бюджеты могут помочь вам отслеживать расходы.","source_account":"Счёт-источник","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Счёт назначения","add_another_split":"Добавить новую часть","submission":"Отправить","create_another":"После сохранения вернуться сюда и создать ещё одну аналогичную запись.","reset_after":"Сбросить форму после отправки","submit":"Подтвердить","amount":"Сумма","date":"Дата","tags":"Метки","no_budget":"(вне бюджета)","category":"Категория","attachments":"Вложения","notes":"Заметки","update_transaction":"Обновить транзакцию","after_update_create_another":"После обновления вернитесь сюда, чтобы продолжить редактирование.","store_as_new":"Сохранить как новую транзакцию вместо обновления.","split_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание дле всех её составляющих.","none_in_select_list":"(нет)","no_piggy_bank":"(нет копилки)","description":"Описание","split_transaction_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание для всех её составляющих.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"Вы не можете редактировать исходный аккаунт сверки.","budget":"Бюджет","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Дата выплаты","book_date":"Дата бронирования","process_date":"Дата обработки","due_date":"Срок","foreign_amount":"Сумма в иностранной валюте","payment_date":"Дата платежа","invoice_date":"Дата выставления счёта","internal_reference":"Внутренняя ссылка"},"config":{"html_language":"ru"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"吃饱没?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","split":"分割","transaction_journal_information":"交易资讯","source_account":"来源帐户","destination_account":"目标帐户","add_another_split":"增加拆分","submit":"送出","amount":"金额","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"錯誤!","flash_success":"成功!","close":"關閉","split_transaction_title":"拆分交易的描述","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"分割","transaction_journal_information":"交易資訊","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"增加拆分","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"送出","amount":"金額","date":"日期","tags":"標籤","no_budget":"(無預算)","category":"分類","attachments":"附加檔案","notes":"備註","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"若您建立一筆拆分交易,須有一個有關交易所有拆分的整體描述。","none_in_select_list":"(空)","no_piggy_bank":"(no piggy bank)","description":"描述","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"預算","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"利率日期","book_date":"登記日期","process_date":"處理日期","due_date":"到期日","foreign_amount":"外幣金額","payment_date":"付款日期","invoice_date":"發票日期","internal_reference":"內部參考"},"config":{"html_language":"zh-tw"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"今天理财了吗?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","errors_submission":"您的提交有误,请查看下面输出的错误信息。","split":"分割","transaction_journal_information":"交易资讯","no_budget_pointer":"您似乎还没有任何预算。您应该在 预算页面上创建他们。预算可以帮助您跟踪费用。","source_account":"来源帐户","hidden_fields_preferences":"您可以在 设置中启用更多的交易选项。","destination_account":"目标帐户","add_another_split":"增加拆分","submission":"提交","create_another":"保存后,返回此页面创建另一笔记录。","reset_after":"提交后重置表单","submit":"提交","amount":"金额","date":"日期","tags":"标签","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释","update_transaction":"更新交易","after_update_create_another":"更新后,返回此页面继续编辑。","store_as_new":"保存为新交易而不是更新此交易。","split_title_help":"如果您创建一个拆分交易,必须有一个全局的交易描述。","none_in_select_list":"(空)","no_piggy_bank":"(无存钱罐)","description":"描述","split_transaction_title_help":"如果您创建了一个分割交易,交易的所有分割项都必须有全局描述。","destination_account_reconciliation":"您不能编辑对账交易的目标账户","source_account_reconciliation":"您不能编辑对账交易的源账户","budget":"预算","you_create_withdrawal":"您正在创建一个提款","you_create_transfer":"您正在创建一个转账","you_create_deposit":"您正在创建一个存款"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","foreign_amount":"外币金额","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh-cn"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Vad spelas?","flash_error":"Fel!","flash_success":"Slutförd!","close":"Stäng","split_transaction_title":"Description of the split transaction","errors_submission":"Något fel uppstod med inskickningen. Vänligen kontrollera felen nedan.","split":"Dela","transaction_journal_information":"Transaktionsinformation","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Från konto","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Till konto","add_another_split":"Lägga till en annan delning","submission":"Inskickning","create_another":"Efter sparat, återkom hit för att skapa ytterligare en.","reset_after":"Återställ formulär efter inskickat","submit":"Skicka","amount":"Belopp","date":"Datum","tags":"Etiketter","no_budget":"(ingen budget)","category":"Kategori","attachments":"Bilagor","notes":"Noteringar","update_transaction":"Uppdatera transaktion","after_update_create_another":"Efter uppdaterat, återkom hit för att fortsätta redigera.","store_as_new":"Spara en ny transaktion istället för att uppdatera.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(Ingen)","no_piggy_bank":"(ingen spargris)","description":"Beskrivning","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Du kan inte redigera destinationskontot för en avstämningstransaktion.","source_account_reconciliation":"Du kan inte redigera källkontot för en avstämningstransaktion.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Räntedatum","book_date":"Bokföringsdatum","process_date":"Behandlingsdatum","due_date":"Förfallodatum","foreign_amount":"Utländskt belopp","payment_date":"Betalningsdatum","invoice_date":"Fakturadatum","internal_reference":"Intern referens"},"config":{"html_language":"sv"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Chào mừng trở lại","flash_error":"Lỗi!","flash_success":"Thành công!","close":"Đóng","split_transaction_title":"Mô tả giao dịch tách","errors_submission":"Có gì đó sai. Vui lòng kiểm tra các lỗi dưới đây.","split":"Chia ra","transaction_journal_information":"Thông tin giao dịch","no_budget_pointer":"Bạn dường như chưa có ngân sách. Bạn nên tạo một cái trên budgets-page. Ngân sách có thể giúp bạn theo dõi chi phí.","source_account":"Nguồn tài khoản","hidden_fields_preferences":"Bạn có thể kích hoạt thêm tùy chọn giao dịch trong settings.","destination_account":"Tài khoản đích","add_another_split":"Thêm một phân chia khác","submission":"Gửi","create_another":"Sau khi lưu trữ, quay trở lại đây để tạo một cái khác.","reset_after":"Đặt lại mẫu sau khi gửi","submit":"Gửi","amount":"Số tiền","date":"Ngày","tags":"Thẻ","no_budget":"(không có ngân sách)","category":"Dan hmucj","attachments":"Tệp đính kèm","notes":"Ghi chú","update_transaction":"Cập nhật giao dịch","after_update_create_another":"Sau khi cập nhật, quay lại đây để tiếp tục chỉnh sửa.","store_as_new":"Lưu trữ như một giao dịch mới thay vì cập nhật.","split_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Sự miêu tả","split_transaction_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","destination_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản đích của giao dịch đối chiếu.","source_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản nguồn của giao dịch đối chiếu.","budget":"Ngân sách","you_create_withdrawal":"Bạn đang tạo một rút tiền.","you_create_transfer":"Bạn đang tạo một chuyển khoản.","you_create_deposit":"Bạn đang tạo một tiền gửi."},"form":{"interest_date":"Ngày lãi","book_date":"Ngày đặt sách","process_date":"Ngày xử lý","due_date":"Ngày đáo hạn","foreign_amount":"Ngoại tệ","payment_date":"Ngày thanh toán","invoice_date":"Ngày hóa đơn","internal_reference":"Tài liệu tham khảo nội bộ"},"config":{"html_language":"vi"}}')},,,,,,,,,,,function(t,e,n){t.exports=n(92)},,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var a=n(30),i={name:"CreateTransaction",components:{},mounted:function(){var t=this;this.addTransactionToArray(),document.onreadystatechange=function(){"complete"===document.readyState&&(t.prefillSourceAccount(),t.prefillDestinationAccount())}},methods:{prefillSourceAccount:function(){0!==window.sourceId&&this.getAccount(window.sourceId,"source_account")},prefillDestinationAccount:function(){0!==destinationId&&this.getAccount(window.destinationId,"destination_account")},getAccount:function(t,e){var n=this,a="./api/v1/accounts/"+t+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content;axios.get(a).then((function(t){var a=t.data.data.attributes;a.type=n.fullAccountType(a.type,a.liability_type),a.id=parseInt(t.data.data.id),"source_account"===e&&n.selectedSourceAccount(0,a),"destination_account"===e&&n.selectedDestinationAccount(0,a)})).catch((function(t){console.warn("Could not auto fill account"),console.warn(t)}))},fullAccountType:function(t,e){var n,a=t;"liabilities"===t&&(a=e);return null!==(n={asset:"Asset account",loan:"Loan",debt:"Debt",mortgage:"Mortgage"}[a])&&void 0!==n?n:a},convertData:function(){var t,e,n,a={transactions:[]};for(var i in this.transactions.length>1&&(a.group_title=this.group_title),t=this.transactionType?this.transactionType.toLowerCase():"invalid",e=this.transactions[0].source_account.type,n=this.transactions[0].destination_account.type,"invalid"===t&&["asset","Asset account","Loan","Debt","Mortgage"].includes(e)&&(t="withdrawal"),"invalid"===t&&["asset","Asset account","Loan","Debt","Mortgage"].includes(n)&&(t="deposit"),this.transactions)this.transactions.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&a.transactions.push(this.convertDataRow(this.transactions[i],i,t));return""===a.group_title&&a.transactions.length>1&&(a.group_title=a.transactions[0].description),a},convertDataRow:function(t,e,n){var a,i,r,o,s,c,u=[],l=null,A=null;for(var d in i=t.source_account.id,r=t.source_account.name,o=t.destination_account.id,s=t.destination_account.name,c=t.date,e>0&&(c=this.transactions[0].date),"withdrawal"===n&&""===s&&(o=window.cashAccountId),"deposit"===n&&""===r&&(i=window.cashAccountId),e>0&&("withdrawal"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(i=this.transactions[0].source_account.id,r=this.transactions[0].source_account.name),e>0&&("deposit"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(o=this.transactions[0].destination_account.id,s=this.transactions[0].destination_account.name),u=[],l=null,A=null,t.tags)t.tags.hasOwnProperty(d)&&/^0$|^[1-9]\d*$/.test(d)&&d<=4294967294&&u.push(t.tags[d].text);return""!==t.foreign_amount.amount&&0!==parseFloat(t.foreign_amount.amount)&&(l=t.foreign_amount.amount,A=t.foreign_amount.currency_id),A===t.currency_id&&(l=null,A=null),0===o&&(o=null),0===i&&(i=null),1===(t.amount.match(/\,/g)||[]).length&&(t.amount=t.amount.replace(",",".")),a={type:n,date:c,amount:t.amount,currency_id:t.currency_id,description:t.description,source_id:i,source_name:r,destination_id:o,destination_name:s,category_name:t.category,interest_date:t.custom_fields.interest_date,book_date:t.custom_fields.book_date,process_date:t.custom_fields.process_date,due_date:t.custom_fields.due_date,payment_date:t.custom_fields.payment_date,invoice_date:t.custom_fields.invoice_date,internal_reference:t.custom_fields.internal_reference,notes:t.custom_fields.notes},u.length>0&&(a.tags=u),null!==l&&(a.foreign_amount=l,a.foreign_currency_id=A),parseInt(t.budget)>0&&(a.budget_id=parseInt(t.budget)),parseInt(t.piggy_bank)>0&&(a.piggy_bank_id=parseInt(t.piggy_bank)),a},submit:function(t){var e=this,n="./api/v1/transactions?_token="+document.head.querySelector('meta[name="csrf-token"]').content,a=this.convertData(),i=$("#submitButton");i.prop("disabled",!0),axios.post(n,a).then((function(t){0===e.collectAttachmentData(t)&&e.redirectUser(t.data.data.id,t.data.data)})).catch((function(t){console.error("Error in transaction submission."),console.error(t),e.parseErrors(t.response.data),console.log("enable button again."),i.removeAttr("disabled")})),t&&t.preventDefault()},escapeHTML:function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML},redirectUser:function(t,e){var n=this,a=null===e.attributes.group_title?e.attributes.transactions[0].description:e.attributes.group_title;this.createAnother?(this.success_message='Transaction #'+t+' ("'+this.escapeHTML(a)+'") has been stored.',this.error_message="",this.resetFormAfter&&(this.resetTransactions(),setTimeout((function(){return n.addTransactionToArray()}),50)),this.setDefaultErrors(),console.log("enable button again."),$("#submitButton").removeAttr("disabled")):window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=created"},collectAttachmentData:function(t){var e=this,n=t.data.data.id,a=[],i=[],r=$('input[name="attachments[]"]');for(var o in r)if(r.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294)for(var s in r[o].files)r[o].files.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&a.push({journal:t.data.data.attributes.transactions[o].transaction_journal_id,file:r[o].files[s]});var c=a.length,u=function(r){var o,s,u;a.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294&&(o=a[r],s=e,(u=new FileReader).onloadend=function(e){e.target.readyState===FileReader.DONE&&(i.push({name:a[r].file.name,journal:a[r].journal,content:new Blob([e.target.result])}),i.length===c&&s.uploadFiles(i,n,t.data.data))},u.readAsArrayBuffer(o.file))};for(var l in a)u(l);return c},uploadFiles:function(t,e,n){var a=this,i=t.length,r=0,o=function(o){if(t.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var s={filename:t[o].name,attachable_type:"TransactionJournal",attachable_id:t[o].journal};axios.post("./api/v1/attachments",s).then((function(s){var c="./api/v1/attachments/"+s.data.data.id+"/upload";axios.post(c,t[o].content).then((function(t){return++r===i&&a.redirectUser(e,n),!0})).catch((function(t){return console.error("Could not upload"),console.error(t),++r===i&&a.redirectUser(e,n),!1}))})).catch((function(t){return console.error("Could not create upload."),console.error(t),++r===i&&a.redirectUser(e,n),!1}))}};for(var s in t)o(s)},setDefaultErrors:function(){for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(this.transactions[t].errors={source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}})},parseErrors:function(t){var e,n;for(var a in this.setDefaultErrors(),this.error_message="",t.message.length>0?this.error_message=this.$t("firefly.errors_submission"):this.error_message="",t.errors)if(t.errors.hasOwnProperty(a)){if("group_title"===a&&(this.group_title_errors=t.errors[a]),"group_title"!==a)switch(e=parseInt(a.split(".")[1]),n=a.split(".")[2]){case"amount":case"date":case"budget_id":case"description":case"tags":this.transactions[e].errors[n]=t.errors[a];break;case"source_name":case"source_id":this.transactions[e].errors.source_account=this.transactions[e].errors.source_account.concat(t.errors[a]);break;case"destination_name":case"destination_id":this.transactions[e].errors.destination_account=this.transactions[e].errors.destination_account.concat(t.errors[a]);break;case"foreign_amount":case"foreign_currency_id":this.transactions[e].errors.foreign_amount=this.transactions[e].errors.foreign_amount.concat(t.errors[a])}void 0!==this.transactions[e]&&(this.transactions[e].errors.source_account=Array.from(new Set(this.transactions[e].errors.source_account)),this.transactions[e].errors.destination_account=Array.from(new Set(this.transactions[e].errors.destination_account)))}},resetTransactions:function(){this.transactions=[]},addTransactionToArray:function(t){if(this.transactions.push({description:"",date:"",amount:"",category:"",piggy_bank:0,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:0,tags:[],custom_fields:{interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",internal_reference:"",notes:"",attachments:[]},foreign_amount:{amount:"",currency_id:0},source_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:["Asset account","Revenue account","Loan","Debt","Mortgage"],default_allowed_types:["Asset account","Revenue account","Loan","Debt","Mortgage"]},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:["Asset account","Expense account","Loan","Debt","Mortgage"],default_allowed_types:["Asset account","Expense account","Loan","Debt","Mortgage"]}}),1===this.transactions.length){var e=new Date;this.transactions[0].date=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)}t&&t.preventDefault()},setTransactionType:function(t){this.transactionType=t},deleteTransaction:function(t,e){for(var n in e.preventDefault(),this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n);for(var a in this.transactions.splice(t,1),this.transactions)this.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)},limitSourceType:function(t){var e;for(e=0;e1?n("span",[t._v(t._s(t.$t("firefly.split"))+" "+t._s(a+1)+" / "+t._s(t.transactions.length))]):t._e(),t._v(" "),1===t.transactions.length?n("span",[t._v(t._s(t.$t("firefly.transaction_journal_information")))]):t._e()]),t._v(" "),t.transactions.length>1?n("div",{staticClass:"box-tools pull-right",attrs:{x:""}},[n("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteTransaction(a,e)}}},[n("i",{staticClass:"fa fa-trash"})])]):t._e()]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-4"},[n("transaction-description",{attrs:{index:a,error:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}}),t._v(" "),n("account-select",{attrs:{inputName:"source[]",title:t.$t("firefly.source_account"),accountName:e.source_account.name,accountTypeFilters:e.source_account.allowed_types,defaultAccountTypeFilters:e.source_account.default_allowed_types,transactionType:t.transactionType,index:a,error:e.errors.source_account},on:{"clear:value":function(e){return t.clearSource(a)},"select:account":function(e){return t.selectedSourceAccount(a,e)}}}),t._v(" "),n("account-select",{attrs:{inputName:"destination[]",title:t.$t("firefly.destination_account"),accountName:e.destination_account.name,accountTypeFilters:e.destination_account.allowed_types,defaultAccountTypeFilters:e.destination_account.default_allowed_types,transactionType:t.transactionType,index:a,error:e.errors.destination_account},on:{"clear:value":function(e){return t.clearDestination(a)},"select:account":function(e){return t.selectedDestinationAccount(a,e)}}}),t._v(" "),0===a?n("standard-date",{attrs:{index:a,error:e.errors.date},model:{value:e.date,callback:function(n){t.$set(e,"date",n)},expression:"transaction.date"}}):t._e(),t._v(" "),0===a?n("div",[n("transaction-type",{attrs:{source:e.source_account.type,destination:e.destination_account.type},on:{"set:transactionType":function(e){return t.setTransactionType(e)},"act:limitSourceType":function(e){return t.limitSourceType(e)},"act:limitDestinationType":function(e){return t.limitDestinationType(e)}}})],1):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("amount",{attrs:{source:e.source_account,destination:e.destination_account,error:e.errors.amount,transactionType:t.transactionType},model:{value:e.amount,callback:function(n){t.$set(e,"amount",n)},expression:"transaction.amount"}}),t._v(" "),n("foreign-amount",{attrs:{source:e.source_account,destination:e.destination_account,transactionType:t.transactionType,error:e.errors.foreign_amount,title:t.$t("form.foreign_amount")},model:{value:e.foreign_amount,callback:function(n){t.$set(e,"foreign_amount",n)},expression:"transaction.foreign_amount"}})],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("budget",{attrs:{transactionType:t.transactionType,error:e.errors.budget_id,no_budget:t.$t("firefly.none_in_select_list")},model:{value:e.budget,callback:function(n){t.$set(e,"budget",n)},expression:"transaction.budget"}}),t._v(" "),n("category",{attrs:{transactionType:t.transactionType,error:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}}),t._v(" "),n("piggy-bank",{attrs:{transactionType:t.transactionType,error:e.errors.piggy_bank,no_piggy_bank:t.$t("firefly.no_piggy_bank")},model:{value:e.piggy_bank,callback:function(n){t.$set(e,"piggy_bank",n)},expression:"transaction.piggy_bank"}}),t._v(" "),n("tags",{attrs:{error:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("custom-transaction-fields",{attrs:{error:e.errors.custom_errors},model:{value:e.custom_fields,callback:function(n){t.$set(e,"custom_fields",n)},expression:"transaction.custom_fields"}})],1)])]),t._v(" "),t.transactions.length-1===a?n("div",{staticClass:"box-footer"},[n("button",{staticClass:"split_add_btn btn btn-default",attrs:{type:"button"},on:{click:t.addTransactionToArray}},[t._v(t._s(t.$t("firefly.add_another_split")))])]):t._e()])])])})),0),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("group-description",{attrs:{error:t.group_title_errors},model:{value:t.group_title,callback:function(e){t.group_title=e},expression:"group_title"}})],1)])])]):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.submission"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.createAnother,expression:"createAnother"}],attrs:{name:"create_another",type:"checkbox"},domProps:{checked:Array.isArray(t.createAnother)?t._i(t.createAnother,null)>-1:t.createAnother},on:{change:function(e){var n=t.createAnother,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.createAnother=n.concat([null])):r>-1&&(t.createAnother=n.slice(0,r).concat(n.slice(r+1)))}else t.createAnother=i}}}),t._v("\n "+t._s(t.$t("firefly.create_another"))+"\n ")])]),t._v(" "),n("div",{staticClass:"checkbox"},[n("label",{class:{"text-muted":!1===this.createAnother}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.resetFormAfter,expression:"resetFormAfter"}],attrs:{disabled:!1===this.createAnother,name:"reset_form",type:"checkbox"},domProps:{checked:Array.isArray(t.resetFormAfter)?t._i(t.resetFormAfter,null)>-1:t.resetFormAfter},on:{change:function(e){var n=t.resetFormAfter,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.resetFormAfter=n.concat([null])):r>-1&&(t.resetFormAfter=n.slice(0,r).concat(n.slice(r+1)))}else t.resetFormAfter=i}}}),t._v("\n "+t._s(t.$t("firefly.reset_after"))+"\n\n ")])])]),t._v(" "),n("div",{staticClass:"box-footer"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-success",attrs:{id:"submitButton"},on:{click:t.submit}},[t._v(t._s(t.$t("firefly.submit")))])])])])])])])}),[],!1,null,"84e3c8cc",null).exports,s=n(31),c=n(32),u=n(33),l=n(34),A=n(35),d=n(36),p=n(37),f=n(38),h=n(39),g=n(40),_=n(41),m=n(42),v=n(43),y=n(44),b=n(45);n(28),Vue.component("budget",b.a),Vue.component("custom-date",s.a),Vue.component("custom-string",c.a),Vue.component("custom-attachments",a.a),Vue.component("custom-textarea",u.a),Vue.component("standard-date",l.a),Vue.component("group-description",A.a),Vue.component("transaction-description",d.a),Vue.component("custom-transaction-fields",p.a),Vue.component("piggy-bank",f.a),Vue.component("tags",h.a),Vue.component("category",g.a),Vue.component("amount",_.a),Vue.component("foreign-amount",m.a),Vue.component("transaction-type",v.a),Vue.component("account-select",y.a),Vue.component("create-transaction",o);var C=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{cs:n(50),de:n(51),en:n(52),es:n(53),el:n(54),fr:n(55),hu:n(56),id:n(57),it:n(58),nl:n(59),no:n(60),pl:n(61),fi:n(62),"pt-br":n(63),ro:n(64),ru:n(65),zh:n(66),"zh-tw":n(67),"zh-cn":n(68),sv:n(69),vi:n(70)}}),w={};new Vue({i18n:C,el:"#create_transaction",render:function(t){return t(o,{props:w})}})}]); \ No newline at end of file diff --git a/public/v1/js/edit_transaction.js b/public/v1/js/edit_transaction.js index 5e622ffa64..7d0043bb7d 100644 --- a/public/v1/js/edit_transaction.js +++ b/public/v1/js/edit_transaction.js @@ -1,2 +1,2 @@ /*! For license information please see edit_transaction.js.LICENSE.txt */ -!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=82)}([function(t,e,n){"use strict";function a(t,e,n,a,i,r,s,o){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),a&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=o?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var A=u.beforeCreate;u.beforeCreate=A?[].concat(A,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";var a=n(5),i=n(12),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function o(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,a=t.length;n=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){c.headers[t]=a.merge(r)})),t.exports=c}).call(this,n(10))},function(t,e,n){t.exports=n(11)},,function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),a=0;a1)for(var n=1;n=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=a.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?{write:function(t,e,n,i,r,s){var o=[];o.push(t+"="+encodeURIComponent(e)),a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(i)&&o.push("path="+i),a.isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var a=n(1);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){a.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var a=n(1),i=n(23),r=n(8),s=n(2),o=n(24),c=n(25);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!o(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=a.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var a=n(1);t.exports=function(t,e,n){return a.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var a=n(9);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new a(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){window.axios=n(3),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var a=document.head.querySelector('meta[name="csrf-token"]');a?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=a.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},function(t,e,n){window,t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=6)}([function(t,e,n){var a=n(8);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("7ec05f6c",a,!1,{})},function(t,e,n){var a=n(10);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("3453d19d",a,!1,{})},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"==typeof btoa){var r=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[a].concat(s).concat([r]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;in.parts.length&&(a.parts.length=n.parts.length)}else{var s=[];for(i=0;i div[data-v-61d92e31] {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%;\n}\n.ti-selected-item[data-v-61d92e31] {\n background-color: #5C6BC0;\n color: #fff;\n}\n',"",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,mCAA8C;EAC9C,+JAAuM;EACvM,oBAAoB;EACpB,mBAAmB;CAAE;AAEvB;EACE,kCAAkC;EAClC,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EACf,oCAAoC;EACpC,mCAAmC;CAAE;AAEvC;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,YAAY;EACZ,aAAa;EACb,sBAAsB;CAAE;AAE1B;EACE,uBAAuB;CAAE;AAE3B;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE;AAElC;EACE,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;CAAE;AAE3B;EACE,aAAa;CAAE;AACf;IACE,gBAAgB;CAAE;AAEtB;EACE,uBAAuB;EACvB,cAAc;EACd,aAAa;EACb,gBAAgB;CAAE;AAEpB;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;CAAE;AAErB;EACE,0BAA0B;EAC1B,YAAY;EACZ,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,cAAc;CAAE;AAClB;IACE,cAAc;IACd,oBAAoB;CAAE;AACxB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;CAAE;AACrB;IACE,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,kBAAkB;CAAE;AACpB;MACE,gBAAgB;CAAE;AACtB;IACE,kBAAkB;CAAE;AACtB;IACE,0BAA0B;CAAE;AAEhC;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;CAAE;AAElB;EACE,qBAAqB;CAAE;AAEzB;EACE,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,YAAY;CAAE;AAEhB;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;CAAE;AAEhB;EACE,0BAA0B;EAC1B,YAAY;CAAE",file:"vue-tags-input.scss?vue&type=style&index=0&id=61d92e31&lang=scss&scoped=true&",sourcesContent:['@font-face {\n font-family: \'icomoon\';\n src: url("./assets/fonts/icomoon.eot?7grlse");\n src: url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"), url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"), url("./assets/fonts/icomoon.woff?7grlse") format("woff");\n font-weight: normal;\n font-style: normal; }\n\n[class^="ti-icon-"], [class*=" ti-icon-"] {\n font-family: \'icomoon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.ti-icon-check:before {\n content: "\\e902"; }\n\n.ti-icon-close:before {\n content: "\\e901"; }\n\n.ti-icon-undo:before {\n content: "\\e900"; }\n\nul {\n margin: 0px;\n padding: 0px;\n list-style-type: none; }\n\n*, *:before, *:after {\n box-sizing: border-box; }\n\ninput:focus {\n outline: none; }\n\ninput[disabled] {\n background-color: transparent; }\n\n.vue-tags-input {\n max-width: 450px;\n position: relative;\n background-color: #fff; }\n\ndiv.vue-tags-input.disabled {\n opacity: 0.5; }\n div.vue-tags-input.disabled * {\n cursor: default; }\n\n.ti-input {\n border: 1px solid #ccc;\n display: flex;\n padding: 4px;\n flex-wrap: wrap; }\n\n.ti-tags {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n line-height: 1em; }\n\n.ti-tag {\n background-color: #5C6BC0;\n color: #fff;\n border-radius: 2px;\n display: flex;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-tag:focus {\n outline: none; }\n .ti-tag .ti-content {\n display: flex;\n align-items: center; }\n .ti-tag .ti-tag-center {\n position: relative; }\n .ti-tag span {\n line-height: .85em; }\n .ti-tag span.ti-hidden {\n padding-left: 14px;\n visibility: hidden;\n height: 0px;\n white-space: pre; }\n .ti-tag .ti-actions {\n margin-left: 2px;\n display: flex;\n align-items: center;\n font-size: 1.15em; }\n .ti-tag .ti-actions i {\n cursor: pointer; }\n .ti-tag:last-child {\n margin-right: 4px; }\n .ti-tag.ti-invalid, .ti-tag.ti-tag.ti-deletion-mark {\n background-color: #e54d42; }\n\n.ti-new-tag-input-wrapper {\n display: flex;\n flex: 1 0 auto;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-new-tag-input-wrapper input {\n flex: 1 0 auto;\n min-width: 100px;\n border: none;\n padding: 0px;\n margin: 0px; }\n\n.ti-new-tag-input {\n line-height: initial; }\n\n.ti-autocomplete {\n border: 1px solid #ccc;\n border-top: none;\n position: absolute;\n width: 100%;\n background-color: #fff;\n z-index: 20; }\n\n.ti-item > div {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%; }\n\n.ti-selected-item {\n background-color: #5C6BC0;\n color: #fff; }\n'],sourceRoot:""}])},function(t,e,n){"use strict";t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(t,e){t.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":t.disabled},{"ti-focus":t.focused}]},[n("div",{staticClass:"ti-input"},[t.tagsCopy?n("ul",{staticClass:"ti-tags"},[t._l(t.tagsCopy,(function(e,a){return n("li",{key:a,staticClass:"ti-tag",class:[{"ti-editing":t.tagsEditStatus[a]},e.tiClasses,e.classes,{"ti-deletion-mark":t.isMarked(a)}],style:e.style,attrs:{tabindex:"0"},on:{click:function(n){return t.$emit("tag-clicked",{tag:e,index:a})}}},[n("div",{staticClass:"ti-content"},[t.$scopedSlots["tag-left"]?n("div",{staticClass:"ti-tag-left"},[t._t("tag-left",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e(),t._v(" "),n("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[t.$scopedSlots["tag-center"]?t._e():n("span",{class:{"ti-hidden":t.tagsEditStatus[a]},on:{click:function(e){return t.performEditTag(a)}}},[t._v(t._s(e.text))]),t._v(" "),t.$scopedSlots["tag-center"]?t._e():n("tag-input",{attrs:{scope:{edit:t.tagsEditStatus[a],maxlength:t.maxlength,tag:e,index:a,validateTag:t.createChangedTag,performCancelEdit:t.cancelEdit,performSaveEdit:t.performSaveTag}}}),t._v(" "),t._t("tag-center",null,{tag:e,index:a,maxlength:t.maxlength,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,validateTag:t.createChangedTag,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2),t._v(" "),t.$scopedSlots["tag-right"]?n("div",{staticClass:"ti-tag-right"},[t._t("tag-right",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e()]),t._v(" "),n("div",{staticClass:"ti-actions"},[t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:t.tagsEditStatus[a],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(e){return t.cancelEdit(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:!t.tagsEditStatus[a],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(e){return t.performDeleteTag(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._t("tag-actions",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)}):t._e()],2)])})),t._v(" "),n("li",{staticClass:"ti-new-tag-input-wrapper"},[n("input",t._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[t.createClasses(t.newTag,t.tags,t.validation,t.isDuplicate)],attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,type:"text",size:"1"},domProps:{value:t.newTag},on:{keydown:[function(e){return t.performAddTags(t.filteredAutocompleteItems[t.selectedItem]||t.newTag,e)},function(e){return e.type.indexOf("key")||8===e.keyCode?t.invokeDelete(e):null},function(e){return e.type.indexOf("key")||9===e.keyCode?t.performBlur(e):null},function(e){return e.type.indexOf("key")||38===e.keyCode?t.selectItem(e,"before"):null},function(e){return e.type.indexOf("key")||40===e.keyCode?t.selectItem(e,"after"):null}],paste:t.addTagsFromPaste,input:t.updateNewTag,blur:function(e){return t.$emit("blur",e)},focus:function(e){t.focused=!0,t.$emit("focus",e)},click:function(e){!t.addOnlyFromAutocomplete&&(t.selectedItem=null)}}},"input",t.$attrs,!1))])],2):t._e()]),t._v(" "),t._t("between-elements"),t._v(" "),t.autocompleteOpen?n("div",{staticClass:"ti-autocomplete",on:{mouseout:function(e){t.selectedItem=null}}},[t._t("autocomplete-header"),t._v(" "),n("ul",t._l(t.filteredAutocompleteItems,(function(e,a){return n("li",{key:a,staticClass:"ti-item",class:[e.tiClasses,e.classes,{"ti-selected-item":t.isSelected(a)}],style:e.style,on:{mouseover:function(e){!t.disabled&&(t.selectedItem=a)}}},[t.$scopedSlots["autocomplete-item"]?t._t("autocomplete-item",null,{item:e,index:a,performAdd:function(e){return t.performAddTags(e,void 0,"autocomplete")},selected:t.isSelected(a)}):n("div",{on:{click:function(n){return t.performAddTags(e,void 0,"autocomplete")}}},[t._v("\n "+t._s(e.text)+"\n ")])],2)})),0),t._v(" "),t._t("autocomplete-footer")],2):t._e()],2)};a._withStripped=!0;var i=n(5),r=n.n(i),s=function(t){return JSON.parse(JSON.stringify(t))},o=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0;void 0===t.text&&(t={text:t});var i=function(t,e){return e.filter((function(e){var n=t.text;return"string"==typeof e.rule?!new RegExp(e.rule).test(n):e.rule instanceof RegExp?!e.rule.test(n):"[object Function]"==={}.toString.call(e.rule)?e.rule(t):void 0})).map((function(t){return t.classes}))}(t,n),r=function(t,e){for(var n=0;n1?n-1:0),i=1;i1?e-1:0),a=1;a=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var t=this,e=this.autocompleteItems.map((function(e){return c(e,t.tags,t.validation,t.isDuplicate)}));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:o,getSelectedIndex:function(t){var e=this.filteredAutocompleteItems,n=this.selectedItem,a=e.length-1;if(0!==e.length)return null===n?0:"before"===t&&0===n?a:"after"===t&&n===a?0:"after"===t?n+1:n-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(t,e){t.preventDefault(),this.selectedItem=this.getSelectedIndex(e)},isSelected:function(t){return this.selectedItem===t},isMarked:function(t){return this.deletionMark===t},invokeDelete:function(){var t=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var e=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout((function(){return t.deletionMark=null}),1e3),this.deletionMark=e):this.performDeleteTag(e)}},addTagsFromPaste:function(){var t=this;this.addFromPaste&&setTimeout((function(){return t.performAddTags(t.newTag)}),10)},performEditTag:function(t){var e=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(t),this.$emit("before-editing-tag",{index:t,tag:this.tagsCopy[t],editTag:function(){return e.editTag(t)}}))},editTag:function(t){this.allowEditTags&&(this.toggleEditMode(t),this.focus(t))},toggleEditMode:function(t){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,t,!this.tagsEditStatus[t])},createChangedTag:function(t,e){var n=this.tagsCopy[t];n.text=e?e.target.value:this.tagsCopy[t].text,this.$set(this.tagsCopy,t,c(n,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.tagCenter[t].querySelector("input.ti-tag-input");n&&n.focus()}))},quote:function(t){return t.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(t){this.tags[t]&&(this.tagsCopy[t]=s(c(this.tags[t],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,t,!1))},hasForbiddingAddRule:function(t){var e=this;return t.some((function(t){var n=e.validation.find((function(e){return t===e.classes}));return!!n&&n.disableAdd}))},createTagTexts:function(t){var e=this,n=new RegExp(this.separators.map((function(t){return e.quote(t)})).join("|"));return t.split(n).map((function(t){return{text:t}}))},performDeleteTag:function(t){var e=this;this._events["before-deleting-tag"]||this.deleteTag(t),this.$emit("before-deleting-tag",{index:t,tag:this.tagsCopy[t],deleteTag:function(){return e.deleteTag(t)}})},deleteTag:function(t){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(t,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(t,e){var n=-1!==this[e].indexOf(t.keyCode)||-1!==this[e].indexOf(t.key);return n&&t.preventDefault(),!n},performAddTags:function(t,e,n){var a=this;if(!(this.disabled||e&&this.noTriggerKey(e,"addOnKey"))){var i=[];"object"===m(t)&&(i=[t]),"string"==typeof t&&(i=this.createTagTexts(t)),(i=i.filter((function(t){return t.text.trim().length>0}))).forEach((function(t){t=c(t,a.tags,a.validation,a.isDuplicate),a._events["before-adding-tag"]||a.addTag(t,n),a.$emit("before-adding-tag",{tag:t,addTag:function(){return a.addTag(t,n)}})}))}},duplicateFilter:function(t){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,t):!this.tagsCopy.find((function(e){return e.text===t.text}))},addTag:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",a=this.filteredAutocompleteItems.map((function(t){return t.text}));this.addOnlyFromAutocomplete&&-1===a.indexOf(t.text)||this.$nextTick((function(){return e.maxTags&&e.maxTags<=e.tagsCopy.length?e.$emit("max-tags-reached",t):e.avoidAddingDuplicates&&!e.duplicateFilter(t)?e.$emit("adding-duplicate",t):void(e.hasForbiddingAddRule(t.tiClasses)||(e.$emit("input",""),e.tagsCopy.push(t),e._events["update:tags"]&&e.$emit("update:tags",e.tagsCopy),"autocomplete"===n&&e.$refs.newTagInput.focus(),e.$emit("tags-changed",e.tagsCopy)))}))},performSaveTag:function(t,e){var n=this,a=this.tagsCopy[t];this.disabled||e&&this.noTriggerKey(e,"addOnKey")||0!==a.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(t,a),this.$emit("before-saving-tag",{index:t,tag:a,saveTag:function(){return n.saveTag(t,a)}}))},saveTag:function(t,e){if(this.avoidAddingDuplicates){var n=s(this.tagsCopy),a=n.splice(t,1)[0];if(this.isDuplicate?this.isDuplicate(n,a):-1!==n.map((function(t){return t.text})).indexOf(a.text))return this.$emit("saving-duplicate",e)}this.hasForbiddingAddRule(e.tiClasses)||(this.$set(this.tagsCopy,t,e),this.toggleEditMode(t),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var t=this;return!this.tagsCopy.some((function(e,n){return!r()(e,t.tags[n])}))},updateNewTag:function(t){var e=t.target.value;this.newTag=e,this.$emit("input",e)},initTags:function(){this.tagsCopy=u(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=s(this.tags).map((function(){return!1})),this._events["update:tags"]&&!this.tagsEqual()&&this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(t){this.$el.contains(t.target)||this.$el.contains(document.activeElement)||this.performBlur(t)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{value:function(t){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=t},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.value,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},destroyed:function(){document.removeEventListener("click",this.blurredOnClick)}},y=(n(9),d(v,a,[],!1,null,"61d92e31",null));y.options.__file="vue-tags-input/vue-tags-input.vue";var b=y.exports;n.d(e,"VueTagsInput",(function(){return b})),n.d(e,"createClasses",(function(){return o})),n.d(e,"createTag",(function(){return c})),n.d(e,"createTags",(function(){return u})),n.d(e,"TagInput",(function(){return f})),b.install=function(t){return t.component(b.name,b)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(b),e.default=b}])},function(t,e,n){"use strict";var a={name:"CustomAttachments",props:{title:String,name:String,error:Array},methods:{hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("input",{staticClass:"form-control",attrs:{multiple:"multiple",autocomplete:"off",placeholder:t.title,title:t.title,name:t.name,type:"file"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"73840c18",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomDate",props:{value:String,title:String,name:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.date.value)},hasError:function(){return this.error.length>0},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value?t.value.substr(0,10):""},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"7a261844",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomString",props:{title:String,name:String,value:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},clearField:function(){this.name="",this.$refs.str.value="",this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"str",staticClass:"form-control",attrs:{type:"text",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"ada77346",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTextarea",props:{title:String,name:String,value:String,error:Array},data:function(){return{textValue:this.value}},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.textValue,expression:"textValue"}],ref:"str",staticClass:"form-control",attrs:{name:t.name,title:t.title,autocomplete:"off",rows:"8",placeholder:t.title},domProps:{value:t.textValue},on:{input:[function(e){e.target.composing||(t.textValue=e.target.value)},t.handleInput]}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"40389097",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"StandardDate",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.date.value)},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value),this.$emit("clear:date")}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.date"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:"date[]",title:t.$t("firefly.date"),autocomplete:"off",disabled:t.index>0,placeholder:t.$t("firefly.date")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"4e877916",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"GroupDescription",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},clearField:function(){this.name="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"group_title",title:t.$t("firefly.split_transaction_title"),autocomplete:"off",placeholder:t.$t("firefly.split_transaction_title")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),0===t.error.length?n("p",{staticClass:"help-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title_help"))+"\n ")]):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"2666c561",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"TransactionDescription",mounted:function(){this.target=this.$refs.descr,this.descriptionAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/transaction-journals/all?search=",this.$refs.descr.focus()},components:{},data:function(){return{descriptionAutoCompleteURI:null,name:null,description:null,target:null}},methods:{search:function(t){return["ab","cd"]},hasError:function(){return this.error.length>0},clearDescription:function(){this.description="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value),this.$emit("clear:description")},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},handleEnter:function(t){t.keyCode},selectedItem:function(t){void 0!==this.name&&"string"!=typeof this.name&&(this.$refs.descr.value=this.name.description,this.$emit("input",this.$refs.descr.value))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.description"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"description[]",title:t.$t("firefly.description"),autocomplete:"off",placeholder:t.$t("firefly.description")},domProps:{value:t.value},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()},input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.descriptionAutoCompleteURI,target:t.target,"item-key":"description"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"dfd3d572",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTransactionFields",props:["value","error"],mounted:function(){this.getPreference()},data:function(){return{customInterestDate:null,fields:[{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1,internal_reference:!1,notes:!1,attachments:!1}]}},computed:{dateComponent:function(){return"custom-date"},stringComponent:function(){return"custom-string"},attachmentComponent:function(){return"custom-attachments"},textareaComponent:function(){return"custom-textarea"}},methods:{handleInput:function(t){this.$emit("input",this.value)},getPreference:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"api/v1/preferences/transaction_journal_optional_fields";axios.get(e).then((function(e){t.fields=e.data.data.attributes.data})).catch((function(){return console.warn("Oh. Something went wrong loading custom transaction fields.")}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.hidden_fields_preferences"))}}),t._v(" "),this.fields.interest_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.interest_date,name:"interest_date[]",title:t.$t("form.interest_date")},model:{value:t.value.interest_date,callback:function(e){t.$set(t.value,"interest_date",e)},expression:"value.interest_date"}}):t._e(),t._v(" "),this.fields.book_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.book_date,name:"book_date[]",title:t.$t("form.book_date")},model:{value:t.value.book_date,callback:function(e){t.$set(t.value,"book_date",e)},expression:"value.book_date"}}):t._e(),t._v(" "),this.fields.process_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.process_date,name:"process_date[]",title:t.$t("form.process_date")},model:{value:t.value.process_date,callback:function(e){t.$set(t.value,"process_date",e)},expression:"value.process_date"}}):t._e(),t._v(" "),this.fields.due_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.due_date,name:"due_date[]",title:t.$t("form.due_date")},model:{value:t.value.due_date,callback:function(e){t.$set(t.value,"due_date",e)},expression:"value.due_date"}}):t._e(),t._v(" "),this.fields.payment_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.payment_date,name:"payment_date[]",title:t.$t("form.payment_date")},model:{value:t.value.payment_date,callback:function(e){t.$set(t.value,"payment_date",e)},expression:"value.payment_date"}}):t._e(),t._v(" "),this.fields.invoice_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.invoice_date,name:"invoice_date[]",title:t.$t("form.invoice_date")},model:{value:t.value.invoice_date,callback:function(e){t.$set(t.value,"invoice_date",e)},expression:"value.invoice_date"}}):t._e(),t._v(" "),this.fields.internal_reference?n(t.stringComponent,{tag:"component",attrs:{error:t.error.internal_reference,name:"internal_reference[]",title:t.$t("form.internal_reference")},model:{value:t.value.internal_reference,callback:function(e){t.$set(t.value,"internal_reference",e)},expression:"value.internal_reference"}}):t._e(),t._v(" "),this.fields.attachments?n(t.attachmentComponent,{tag:"component",attrs:{error:t.error.attachments,name:"attachments[]",title:t.$t("firefly.attachments")},model:{value:t.value.attachments,callback:function(e){t.$set(t.value,"attachments",e)},expression:"value.attachments"}}):t._e(),t._v(" "),this.fields.notes?n(t.textareaComponent,{tag:"component",attrs:{error:t.error.notes,name:"notes[]",title:t.$t("firefly.notes")},model:{value:t.value.notes,callback:function(e){t.$set(t.value,"notes",e)},expression:"value.notes"}}):t._e()],1)}),[],!1,null,"c24d33ba",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"PiggyBank",props:["value","transactionType","error","no_piggy_bank"],mounted:function(){this.loadPiggies()},data:function(){return{piggies:[]}},methods:{handleInput:function(t){this.$emit("input",this.$refs.piggy.value)},hasError:function(){return this.error.length>0},loadPiggies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/piggy-banks";axios.get(e,{}).then((function(e){for(var n in t.piggies=[{name_with_amount:t.no_piggy_bank,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.piggies.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0!==this.transactionType&&"Transfer"===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12"},[this.piggies.length>0?n("select",{ref:"piggy",staticClass:"form-control",attrs:{name:"piggy_bank[]"},on:{input:t.handleInput}},t._l(this.piggies,(function(e){return n("option",{attrs:{label:e.name_with_amount},domProps:{value:e.id}},[t._v(t._s(e.name_with_amount))])})),0):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1797c09a",null);e.a=r.exports},function(t,e,n){"use strict";var a=n(3),i=n.n(a),r=n(29),s={name:"Tags",components:{VueTagsInput:n.n(r).a},props:["value","error"],data:function(){return{tag:"",autocompleteItems:[],debounce:null,tags:this.value}},watch:{tag:"initItems"},methods:{update:function(t){this.autocompleteItems=[],this.tags=t,this.$emit("input",this.tags)},clearTags:function(){this.tags=[]},hasError:function(){return this.error.length>0},initItems:function(){var t=this;if(!(this.tag.length<2)){var e=document.getElementsByTagName("base")[0].href+"json/tags?search=".concat(this.tag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){i.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.")}))}),600)}}}},o=n(0),c=Object(o.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.tags"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("vue-tags-input",{attrs:{tags:t.tags,title:t.$t("firefly.tags"),classes:"form-input","autocomplete-items":t.autocompleteItems,"add-only-from-autocomplete":!1,placeholder:t.$t("firefly.tags")},on:{"tags-changed":t.update},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearTags}},[n("i",{staticClass:"fa fa-trash-o"})])])],1)]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"4f8ece50",null);e.a=c.exports},function(t,e,n){"use strict";var a={name:"Category",props:{value:String,inputName:String,error:Array,accountName:{type:String,default:""}},data:function(){return{categoryAutoCompleteURI:null,name:null,target:null}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input,this.categoryAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/categories?search="},methods:{hasError:function(){return this.error.length>0},handleInput:function(t){"string"!=typeof this.$refs.input.value?this.$emit("input",this.$refs.input.value.name):this.$emit("input",this.$refs.input.value)},clearCategory:function(){this.name="",this.$refs.input.value="",this.$emit("input",this.$refs.input.value),this.$emit("clear:category")},selectedItem:function(t){void 0!==this.name&&(this.$emit("select:category",this.name),"string"!=typeof this.name?this.$emit("input",this.name.name):this.$emit("input",this.name))},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.$t("firefly.category"),autocomplete:"off","data-role":"input",name:"category[]",title:t.$t("firefly.category")},domProps:{value:t.value},on:{input:t.handleInput,keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.categoryAutoCompleteURI,target:t.target,"item-key":"name"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"5fd3029c",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Amount",props:["source","destination","transactionType","value","error"],data:function(){return{sourceAccount:this.source,destinationAccount:this.destination,type:this.transactionType}},methods:{handleInput:function(t){this.$emit("input",this.$refs.amount.value)},clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},changeData:function(){var t=this.transactionType;t||this.source.name||this.destination.name?(null===t&&(t=""),""!==t||""===this.source.currency_name?""!==t||""===this.destination.currency_name?"withdrawal"!==t.toLowerCase()&&"reconciliation"!==t.toLowerCase()&&"transfer"!==t.toLowerCase()?("deposit"===t.toLowerCase()&&"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()&&$(this.$refs.cur).text(this.destination.currency_name),"deposit"!==t.toLowerCase()||"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()||$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text(this.source.currency_name):$(this.$refs.cur).text(this.destination.currency_name):$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text("")}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},mounted:function(){this.changeData()}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("firefly.amount"))+"\n ")]),t._v(" "),n("label",{ref:"cur",staticClass:"col-sm-4 control-label"}),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"amount[]",title:t.$t("firefly.amount"),autocomplete:"off",placeholder:t.$t("firefly.amount")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"440928b9",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"ForeignAmountSelect",props:["source","destination","transactionType","value","error","no_currency","title"],mounted:function(){this.liability=!1,this.loadCurrencies()},data:function(){return{currencies:[],enabledCurrencies:[],exclude:null,liability:!1}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},methods:{clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},handleInput:function(t){var e={amount:this.$refs.amount.value,currency_id:this.$refs.currency_select.value};this.$emit("input",e)},changeData:function(){this.enabledCurrencies=[];var t=this.destination.type?this.destination.type.toLowerCase():"invalid",e=this.source.type?this.source.type.toLowerCase():"invalid",n=this.transactionType?this.transactionType.toLowerCase():"invalid",a=["loan","debt","mortgage"],i=-1!==a.indexOf(e),r=-1!==a.indexOf(t);if("transfer"===n||r||i)for(var s in this.liability=!0,this.currencies)this.currencies.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.currencies[s].id===this.destination.currency_id&&this.enabledCurrencies.push(this.currencies[s]);else if("withdrawal"===n&&this.source&&!1===i)for(var o in this.currencies)this.currencies.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&this.source.currency_id!==this.currencies[o].id&&this.enabledCurrencies.push(this.currencies[o]);else if("deposit"===n&&this.destination)for(var c in this.currencies)this.currencies.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294&&this.destination.currency_id!==this.currencies[c].id&&this.enabledCurrencies.push(this.currencies[c]);else for(var u in this.currencies)this.currencies.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&this.enabledCurrencies.push(this.currencies[u])},loadCurrencies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/currencies";axios.get(e,{}).then((function(e){for(var n in t.currencies=[{name:t.no_currency,id:0,enabled:!0}],t.enabledCurrencies=[{name:t.no_currency,id:0,enabled:!0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.data[n].enabled&&(t.currencies.push(e.data[n]),t.enabledCurrencies.push(e.data[n]))}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return this.enabledCurrencies.length>=1?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("form.foreign_amount"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("select",{ref:"currency_select",staticClass:"form-control",attrs:{name:"foreign_currency[]"},on:{input:t.handleInput}},t._l(this.enabledCurrencies,(function(e){return e.enabled?n("option",{attrs:{label:e.name},domProps:{value:e.id,selected:t.value.currency_id===e.id}},[t._v("\n "+t._s(e.name)+"\n ")]):t._e()})),0)]),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[this.enabledCurrencies.length>0?n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"foreign_amount[]",title:this.title,autocomplete:"off",placeholder:this.title},domProps:{value:t.value.amount},on:{input:t.handleInput}}):t._e(),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"37601284",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{source:String,destination:String,type:String},methods:{changeValue:function(){if(this.source&&this.destination){var t="";window.accountToTypes[this.source]?window.accountToTypes[this.source][this.destination]?t=window.accountToTypes[this.source][this.destination]:console.warn("User selected an impossible destination."):console.warn("User selected an impossible source."),""!==t&&(this.transactionType=t,this.sentence=this.$t("firefly.you_create_"+t.toLowerCase()),this.$emit("act:limitSourceType",this.source),this.$emit("act:limitDestinationType",this.destination))}else this.sentence="",this.transactionType="";this.$emit("set:transactionType",this.transactionType)}},data:function(){return{transactionType:this.type,sentence:""}},watch:{source:function(){this.changeValue()},destination:function(){this.changeValue()}},name:"TransactionType"},i=n(0),r=Object(i.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-12"},[""!==this.sentence?e("label",{staticClass:"control-label text-info"},[this._v("\n "+this._s(this.sentence)+"\n ")]):this._e()])])}),[],!1,null,"0539dc1a",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{inputName:String,title:String,index:Number,transactionType:String,error:Array,accountName:{type:String,default:""},accountTypeFilters:{type:Array,default:function(){return[]}},defaultAccountTypeFilters:{type:Array,default:function(){return[]}}},data:function(){return{accountAutoCompleteURI:null,name:null,trType:this.transactionType,target:null,inputDisabled:!1,allowedTypes:this.accountTypeFilters,defaultAllowedTypes:this.defaultAccountTypeFilters}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input;var t=this.allowedTypes.join(",");this.name=this.accountName,this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search=",this.triggerTransactionType()},watch:{transactionType:function(){this.triggerTransactionType()},accountName:function(){this.name=this.accountName},accountTypeFilters:function(){var t=this.accountTypeFilters.join(",");0===this.accountTypeFilters.length&&(t=this.defaultAccountTypeFilters.join(",")),this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search="},name:function(){}},methods:{hasError:function(){return this.error.length>0},triggerTransactionType:function(){if(this.name,null!==this.transactionType&&""!==this.transactionType&&(this.inputDisabled=!1,""!==this.transactionType.toString()&&this.index>0)){if("transfer"===this.transactionType.toString().toLowerCase())return void(this.inputDisabled=!0);if("withdrawal"===this.transactionType.toString().toLowerCase()&&"source"===this.inputName.substr(0,6).toLowerCase())return void(this.inputDisabled=!0);"deposit"===this.transactionType.toString().toLowerCase()&&"destination"===this.inputName.substr(0,11).toLowerCase()&&(this.inputDisabled=!0)}},selectedItem:function(t){void 0!==this.name&&("string"==typeof this.name&&this.$emit("clear:value"),this.$emit("select:account",this.name))},clearSource:function(t){this.name="",this.$emit("clear:value")},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.title,"data-index":t.index,autocomplete:"off","data-role":"input",disabled:t.inputDisabled,name:t.inputName,title:t.title},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearSource}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.accountAutoCompleteURI,target:t.target,"item-key":"name_with_balance"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"019a1ec0",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Budget",props:{transactionType:String,value:{type:[String,Number],default:0},error:Array,no_budget:String},mounted:function(){this.loadBudgets()},data:function(){return{selected:this.value,budgets:[]}},methods:{signalChange:function(t){this.$emit("input",this.$refs.budget.value)},handleInput:function(t){this.$emit("input",this.$refs.budget.value)},hasError:function(){return this.error.length>0},loadBudgets:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/budgets";axios.get(e,{}).then((function(e){for(var n in t.budgets=[{name:t.no_budget,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.budgets.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0===this.transactionType||"withdrawal"===this.transactionType||"Withdrawal"===this.transactionType||""===this.transactionType||null===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[this.budgets.length>0?n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"budget",staticClass:"form-control",attrs:{name:"budget[]",title:t.$t("firefly.budget")},on:{input:t.handleInput,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.selected=e.target.multiple?n:n[0]},t.signalChange]}},t._l(this.budgets,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),0):t._e(),t._v(" "),1===this.budgets.length?n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.no_budget_pointer"))}}):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1e0beee7",null);e.a=r.exports},,,,,function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Jak to jde?","flash_error":"Chyba!","flash_success":"Úspěšně dokončeno!","close":"Zavřít","split_transaction_title":"Popis rozúčtování","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Rozdělit","transaction_journal_information":"Informace o transakci","no_budget_pointer":"Zdá se, že zatím nemáte žádné rozpočty. Na stránce rozpočty byste nějaké měli vytvořit. Rozpočty mohou pomoci udržet si přehled ve výdajích.","source_account":"Zdrojový účet","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Cílový účet","add_another_split":"Přidat další rozúčtování","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Odeslat","amount":"Částka","date":"Datum","tags":"Štítky","no_budget":"(žádný rozpočet)","category":"Kategorie","attachments":"Přílohy","notes":"Poznámky","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Pokud vytvoříte rozúčtování, je třeba, aby zde byl celkový popis pro všechna rozúčtování dané transakce.","none_in_select_list":"(žádné)","no_piggy_bank":"(žádná pokladnička)","description":"Popis","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Rozpočet","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Úrokové datum","book_date":"Datum rezervace","process_date":"Datum zpracování","due_date":"Datum splatnosti","foreign_amount":"Částka v cizí měně","payment_date":"Datum zaplacení","invoice_date":"Datum vystavení","internal_reference":"Interní reference"},"config":{"html_language":"cs"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Überblick","flash_error":"Fehler!","flash_success":"Geschafft!","close":"Schließen","split_transaction_title":"Beschreibung der Splittbuchung","errors_submission":"Problem bei der Übermittlung. Bitte überprüfen Sie die nachfolgenden Fehler.","split":"Teilen","transaction_journal_information":"Transaktionsinformationen","no_budget_pointer":"Sie scheinen noch keine Kostenrahmen festgelegt zu haben. Sie sollten einige davon auf der Seite „Kostenrahmen” anlegen. Kostenrahmen können Ihnen dabei helfen, den Überblick über die Ausgaben zu behalten.","source_account":"Quellkonto","hidden_fields_preferences":"Sie können weitere Buchungsoptionen in Ihren Einstellungen aktivieren.","destination_account":"Zielkonto","add_another_split":"Eine weitere Aufteilung hinzufügen","submission":"Übermittlung","create_another":"Nach dem Speichern hierher zurückkehren, um ein weiteres zu erstellen.","reset_after":"Formular nach der Übermittlung zurücksetzen","submit":"Absenden","amount":"Betrag","date":"Datum","tags":"Schlagwörter","no_budget":"(kein Budget)","category":"Kategorie","attachments":"Anhänge","notes":"Notizen","update_transaction":"Buchung aktualisieren","after_update_create_another":"Nach dem Aktualisieren hierher zurückkehren, um weiter zu bearbeiten.","store_as_new":"Als neue Buchung speichern statt zu aktualisieren.","split_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchhaltung geben.","none_in_select_list":"(Keine)","no_piggy_bank":"(kein Sparschwein)","description":"Beschreibung","split_transaction_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchung geben.","destination_account_reconciliation":"Sie können das Zielkonto einer Kontenausgleichsbuchung nicht bearbeiten.","source_account_reconciliation":"Sie können das Quellkonto einer Kontenausgleichsbuchung nicht bearbeiten.","budget":"Budget","you_create_withdrawal":"Sie haben eine Auszahlung erstellt.","you_create_transfer":"Sie haben eine Buchung erstellt.","you_create_deposit":"Sie haben eine Einzahlung erstellt."},"form":{"interest_date":"Zinstermin","book_date":"Buchungsdatum","process_date":"Bearbeitungsdatum","due_date":"Fälligkeitstermin","foreign_amount":"Ausländischer Betrag","payment_date":"Zahlungsdatum","invoice_date":"Rechnungsdatum","internal_reference":"Interner Verweis"},"config":{"html_language":"de"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Error!","flash_success":"Success!","close":"Close","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Split","transaction_journal_information":"Transaction information","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Add another split","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Submit","amount":"Amount","date":"Date","tags":"Tags","no_budget":"(no budget)","category":"Category","attachments":"Attachments","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Description","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Interest date","book_date":"Book date","process_date":"Processing date","due_date":"Due date","foreign_amount":"Foreign amount","payment_date":"Payment date","invoice_date":"Invoice date","internal_reference":"Internal reference"},"config":{"html_language":"en"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"¿Qué está pasando?","flash_error":"¡Error!","flash_success":"¡Operación correcta!","close":"Cerrar","split_transaction_title":"Descripción de la transacción dividida","errors_submission":"Hubo algo malo con su envío. Por favor, revise los errores de abajo.","split":"Separar","transaction_journal_information":"Información de transacción","no_budget_pointer":"Parece que aún no tiene presupuestos. Debe crear algunos en la página presupuestos. Los presupuestos pueden ayudarle a realizar un seguimiento de los gastos.","source_account":"Cuenta origen","hidden_fields_preferences":"Puede habilitar más opciones de transacción en sus ajustes .","destination_account":"Cuenta destino","add_another_split":"Añadir otra división","submission":"Envío","create_another":"Después de guardar, vuelve aquí para crear otro.","reset_after":"Restablecer formulario después del envío","submit":"Enviar","amount":"Cantidad","date":"Fecha","tags":"Etiquetas","no_budget":"(sin presupuesto)","category":"Categoria","attachments":"Archivos adjuntos","notes":"Notas","update_transaction":"Actualizar transacción","after_update_create_another":"Después de actualizar, vuelve aquí para continuar editando.","store_as_new":"Almacenar como una nueva transacción en lugar de actualizar.","split_title_help":"Si crea una transacción dividida, debe haber una descripción global para todos los fragmentos de la transacción.","none_in_select_list":"(ninguno)","no_piggy_bank":"(sin alcancía)","description":"Descripción","split_transaction_title_help":"Si crea una transacción dividida, debe existir una descripción global para todas las divisiones de la transacción.","destination_account_reconciliation":"No puede editar la cuenta de destino de una transacción de reconciliación.","source_account_reconciliation":"No puede editar la cuenta de origen de una transacción de reconciliación.","budget":"Presupuesto","you_create_withdrawal":"Está creando un retiro.","you_create_transfer":"Está creando una transferencia.","you_create_deposit":"Está creando un depósito."},"form":{"interest_date":"Fecha de interés","book_date":"Fecha de registro","process_date":"Fecha de procesamiento","due_date":"Fecha de vencimiento","foreign_amount":"Cantidad extranjera","payment_date":"Fecha de pago","invoice_date":"Fecha de la factura","internal_reference":"Referencia interna"},"config":{"html_language":"es"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Τι παίζει;","flash_error":"Σφάλμα!","flash_success":"Επιτυχία!","close":"Κλείσιμο","split_transaction_title":"Περιγραφή της συναλλαγής με διαχωρισμό","errors_submission":"Υπήρξε κάποιο λάθος με την υποβολή σας. Ελέγξτε τα παρακάτω σφάλματα.","split":"Διαχωρισμός","transaction_journal_information":"Πληροφορίες συναλλαγής","no_budget_pointer":"Φαίνεται πως δεν έχετε ορίσει προϋπολογισμούς ακόμη. Πρέπει να δημιουργήσετε κάποιον στη σελίδα προϋπολογισμών. Οι προϋπολογισμοί σας βοηθούν να επιβλέπετε τις δαπάνες σας.","source_account":"Λογαριασμός προέλευσης","hidden_fields_preferences":"Μπορείτε να ενεργοποιήσετε περισσότερες επιλογές συναλλαγών στις ρυθμίσεις.","destination_account":"Λογαριασμός προορισμού","add_another_split":"Προσθήκη ενός ακόμα διαχωρισμού","submission":"Υποβολή","create_another":"Μετά την αποθήκευση, επιστρέψτε εδώ για να δημιουργήσετε ακόμη ένα.","reset_after":"Επαναφορά φόρμας μετά την υποβολή","submit":"Υποβολή","amount":"Ποσό","date":"Ημερομηνία","tags":"Ετικέτες","no_budget":"(χωρίς προϋπολογισμό)","category":"Κατηγορία","attachments":"Συνημμένα","notes":"Σημειώσεις","update_transaction":"Ενημέρωση συναλλαγής","after_update_create_another":"Μετά την ενημέρωση, επιστρέψτε εδώ για να συνεχίσετε την επεξεργασία.","store_as_new":"Αποθήκευση ως νέα συναλλαγή αντί για ενημέρωση.","split_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","none_in_select_list":"(τίποτα)","no_piggy_bank":"(χωρίς κουμπαρά)","description":"Περιγραφή","split_transaction_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","destination_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προορισμού σε μια συναλλαγή τακτοποίησης.","source_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προέλευσης σε μια συναλλαγή τακτοποίησης.","budget":"Προϋπολογισμός","you_create_withdrawal":"Δημιουργείτε μια ανάληψη.","you_create_transfer":"Δημιουργείτε μια μεταφορά.","you_create_deposit":"Δημιουργείτε μια κατάθεση."},"form":{"interest_date":"Ημερομηνία τοκισμού","book_date":"Ημερομηνία εγγραφής","process_date":"Ημερομηνία επεξεργασίας","due_date":"Ημερομηνία προθεσμίας","foreign_amount":"Ποσό σε ξένο νόμισμα","payment_date":"Ημερομηνία πληρωμής","invoice_date":"Ημερομηνία τιμολόγησης","internal_reference":"Εσωτερική αναφορά"},"config":{"html_language":"el"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Que se passe-t-il ?","flash_error":"Erreur !","flash_success":"Super !","close":"Fermer","split_transaction_title":"Description de l\'opération ventilée","errors_submission":"Certaines informations ne sont pas correctes dans votre formulaire. Veuillez vérifier les erreurs ci-dessous.","split":"Ventiler","transaction_journal_information":"Informations sur les opérations","no_budget_pointer":"Vous semblez n’avoir encore aucun budget. Vous devriez en créer un sur la page des budgets. Les budgets peuvent vous aider à garder une trace des dépenses.","source_account":"Compte source","hidden_fields_preferences":"Vous pouvez activer plus d\'options d\'opérations dans vos paramètres.","destination_account":"Compte de destination","add_another_split":"Ajouter une autre fraction","submission":"Soumission","create_another":"Après enregistrement, revenir ici pour en créer un nouveau.","reset_after":"Réinitialiser le formulaire après soumission","submit":"Soumettre","amount":"Montant","date":"Date","tags":"Tags","no_budget":"(pas de budget)","category":"Catégorie","attachments":"Pièces jointes","notes":"Notes","update_transaction":"Mettre à jour l\'opération","after_update_create_another":"Après la mise à jour, revenir ici pour continuer l\'édition.","store_as_new":"Enregistrer comme une nouvelle opération au lieu de mettre à jour.","split_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fractions de l\'opération.","none_in_select_list":"(aucun)","no_piggy_bank":"(aucune tirelire)","description":"Description","split_transaction_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fraction de l\'opération.","destination_account_reconciliation":"Vous ne pouvez pas modifier le compte de destination d\'une opération de rapprochement.","source_account_reconciliation":"Vous ne pouvez pas modifier le compte source d\'une opération de rapprochement.","budget":"Budget","you_create_withdrawal":"Vous saisissez une dépense.","you_create_transfer":"Vous saisissez un transfert.","you_create_deposit":"Vous saisissez un dépôt."},"form":{"interest_date":"Date de valeur (intérêts)","book_date":"Date de réservation","process_date":"Date de traitement","due_date":"Échéance","foreign_amount":"Montant en devise étrangère","payment_date":"Date de paiement","invoice_date":"Date de facturation","internal_reference":"Référence interne"},"config":{"html_language":"fr"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mi a helyzet?","flash_error":"Hiba!","flash_success":"Siker!","close":"Bezárás","split_transaction_title":"Felosztott tranzakció leírása","errors_submission":"Hiba történt a beküldés során. Kérem, javítsa az alábbi hibákat.","split":"Felosztás","transaction_journal_information":"Tranzakciós információk","no_budget_pointer":"Úgy tűnik, még nincsenek költségkeretek. Költségkereteket a költségkeretek oldalon lehet létrehozni. A költségkeretek segítenek nyomon követni a költségeket.","source_account":"Forrás számla","hidden_fields_preferences":"A beállításokban több tranzakciós beállítási lehetőség is megadható.","destination_account":"Célszámla","add_another_split":"Másik felosztás hozzáadása","submission":"Feliratkozás","create_another":"A tárolás után térjen vissza ide új létrehozásához.","reset_after":"Űrlap törlése a beküldés után","submit":"Beküldés","amount":"Összeg","date":"Dátum","tags":"Címkék","no_budget":"(nincs költségkeret)","category":"Kategória","attachments":"Mellékletek","notes":"Megjegyzések","update_transaction":"Tranzakció frissítése","after_update_create_another":"A frissítés után térjen vissza ide a szerkesztés folytatásához.","store_as_new":"Tárolás új tranzakcióként frissítés helyett.","split_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","none_in_select_list":"(nincs)","no_piggy_bank":"(nincs malacpersely)","description":"Leírás","split_transaction_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","destination_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció célszámláját.","source_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció forrásszámláját.","budget":"Költségkeret","you_create_withdrawal":"Egy költség létrehozása.","you_create_transfer":"Egy átutalás létrehozása.","you_create_deposit":"Egy bevétel létrehozása."},"form":{"interest_date":"Kamatfizetési időpont","book_date":"Könyvelés dátuma","process_date":"Feldolgozás dátuma","due_date":"Lejárati időpont","foreign_amount":"Külföldi összeg","payment_date":"Fizetés dátuma","invoice_date":"Számla dátuma","internal_reference":"Belső hivatkozás"},"config":{"html_language":"hu"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Kesalahan!","flash_success":"Keberhasilan!","close":"Dekat","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Pisah","transaction_journal_information":"Informasi transaksi","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Tambahkan perpecahan lagi","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Menyerahkan","amount":"Jumlah","date":"Tanggal","tags":"Tag","no_budget":"(no budget)","category":"Kategori","attachments":"Lampiran","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Deskripsi","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Anggaran","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Tanggal bunga","book_date":"Tanggal buku","process_date":"Tanggal pemrosesan","due_date":"Batas tanggal terakhir","foreign_amount":"Foreign amount","payment_date":"Tanggal pembayaran","invoice_date":"Tanggal faktur","internal_reference":"Referensi internal"},"config":{"html_language":"id"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"La tua situazione finanziaria","flash_error":"Errore!","flash_success":"Successo!","close":"Chiudi","split_transaction_title":"Descrizione della transazione suddivisa","errors_submission":"Errore durante l\'invio. Controlla gli errori segnalati qui sotto.","split":"Dividi","transaction_journal_information":"Informazioni transazione","no_budget_pointer":"Sembra che tu non abbia ancora dei budget. Dovresti crearne alcuni nella pagina dei budget. I budget possono aiutarti a tenere traccia delle spese.","source_account":"Conto di origine","hidden_fields_preferences":"Puoi abilitare maggiori opzioni per le transazioni nelle tue impostazioni.","destination_account":"Conto destinazione","add_another_split":"Aggiungi un\'altra divisione","submission":"Invio","create_another":"Dopo il salvataggio, torna qui per crearne un\'altra.","reset_after":"Resetta il modulo dopo l\'invio","submit":"Invia","amount":"Importo","date":"Data","tags":"Etichette","no_budget":"(nessun budget)","category":"Categoria","attachments":"Allegati","notes":"Note","update_transaction":"Aggiorna transazione","after_update_create_another":"Dopo l\'aggiornamento, torna qui per continuare la modifica.","store_as_new":"Salva come nuova transazione invece di aggiornarla.","split_title_help":"Se crei una transazione suddivisa è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","none_in_select_list":"(nessuna)","no_piggy_bank":"(nessun salvadanaio)","description":"Descrizione","split_transaction_title_help":"Se crei una transazione suddivisa, è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","destination_account_reconciliation":"Non è possibile modificare il conto di destinazione di una transazione di riconciliazione.","source_account_reconciliation":"Non puoi modificare il conto di origine di una transazione di riconciliazione.","budget":"Budget","you_create_withdrawal":"Stai creando un prelievo.","you_create_transfer":"Stai creando un trasferimento.","you_create_deposit":"Stai creando un deposito."},"form":{"interest_date":"Data interesse","book_date":"Data contabile","process_date":"Data elaborazione","due_date":"Data scadenza","foreign_amount":"Importo estero","payment_date":"Data pagamento","invoice_date":"Data fatturazione","internal_reference":"Riferimento interno"},"config":{"html_language":"it"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hoe staat het er voor?","flash_error":"Fout!","flash_success":"Gelukt!","close":"Sluiten","split_transaction_title":"Beschrijving van de gesplitste transactie","errors_submission":"Er ging iets mis. Check de errors.","split":"Splitsen","transaction_journal_information":"Transactieinformatie","no_budget_pointer":"Je hebt nog geen budgetten. Maak er een aantal op de budgetten-pagina. Met budgetten kan je je uitgaven beter bijhouden.","source_account":"Bronrekening","hidden_fields_preferences":"Je kan meer transactieopties inschakelen in je instellingen.","destination_account":"Doelrekening","add_another_split":"Voeg een split toe","submission":"Indienen","create_another":"Terug naar deze pagina voor een nieuwe transactie.","reset_after":"Reset formulier na opslaan","submit":"Invoeren","amount":"Bedrag","date":"Datum","tags":"Tags","no_budget":"(geen budget)","category":"Categorie","attachments":"Bijlagen","notes":"Notities","update_transaction":"Update transactie","after_update_create_another":"Na het opslaan terug om door te gaan met wijzigen.","store_as_new":"Opslaan als nieuwe transactie ipv de huidige bij te werken.","split_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","none_in_select_list":"(geen)","no_piggy_bank":"(geen spaarpotje)","description":"Omschrijving","split_transaction_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","destination_account_reconciliation":"Je kan de doelrekening van een afstemming niet wijzigen.","source_account_reconciliation":"Je kan de bronrekening van een afstemming niet wijzigen.","budget":"Budget","you_create_withdrawal":"Je maakt een uitgave.","you_create_transfer":"Je maakt een overschrijving.","you_create_deposit":"Je maakt inkomsten."},"form":{"interest_date":"Rentedatum","book_date":"Boekdatum","process_date":"Verwerkingsdatum","due_date":"Vervaldatum","foreign_amount":"Bedrag in vreemde valuta","payment_date":"Betalingsdatum","invoice_date":"Factuurdatum","internal_reference":"Interne verwijzing"},"config":{"html_language":"nl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hvordan går det?","flash_error":"Feil!","flash_success":"Suksess!","close":"Lukk","split_transaction_title":"Description of the split transaction","split":"Del opp","transaction_journal_information":"Transaksjonsinformasjon","source_account":"Source account","destination_account":"Destination account","add_another_split":"Legg til en oppdeling til","submit":"Send inn","amount":"Beløp","no_budget":"(ingen budsjett)","category":"Kategori","attachments":"Vedlegg","notes":"Notater"},"form":{"interest_date":"Rentedato","book_date":"Bokføringsdato","process_date":"Prosesseringsdato","due_date":"Forfallsdato","payment_date":"Betalingsdato","invoice_date":"Fakturadato","internal_reference":"Intern referanse"},"config":{"html_language":"no"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Co jest grane?","flash_error":"Błąd!","flash_success":"Sukces!","close":"Zamknij","split_transaction_title":"Opis podzielonej transakcji","errors_submission":"Coś poszło nie tak w czasie zapisu. Proszę sprawdź błędy poniżej.","split":"Podziel","transaction_journal_information":"Informacje o transakcji","no_budget_pointer":"Wygląda na to że nie masz jeszcze budżetów. Powinieneś utworzyć kilka na stronie budżety. Budżety mogą Ci pomóc śledzić wydatki.","source_account":"Konto źródłowe","hidden_fields_preferences":"Możesz włączyć więcej opcji transakcji w swoich ustawieniach.","destination_account":"Konto docelowe","add_another_split":"Dodaj kolejny podział","submission":"Zapisz","create_another":"Po zapisaniu wróć tutaj, aby utworzyć kolejny.","reset_after":"Wyczyść formularz po zapisaniu","submit":"Prześlij","amount":"Kwota","date":"Data","tags":"Tagi","no_budget":"(brak budżetu)","category":"Kategoria","attachments":"Załączniki","notes":"Notatki","update_transaction":"Zaktualizuj transakcję","after_update_create_another":"Po aktualizacji wróć tutaj, aby kontynuować edycję.","store_as_new":"Zapisz jako nową zamiast aktualizować.","split_title_help":"Podzielone transakcje muszą posiadać globalny opis.","none_in_select_list":"(żadne)","no_piggy_bank":"(brak skarbonki)","description":"Opis","split_transaction_title_help":"Jeśli tworzysz podzieloną transakcję, musi ona posiadać globalny opis dla wszystkich podziałów w transakcji.","destination_account_reconciliation":"Nie możesz edytować konta docelowego transakcji uzgadniania.","source_account_reconciliation":"Nie możesz edytować konta źródłowego transakcji uzgadniania.","budget":"Budżet","you_create_withdrawal":"Tworzysz wydatek.","you_create_transfer":"Tworzysz przelew.","you_create_deposit":"Tworzysz wpłatę."},"form":{"interest_date":"Data odsetek","book_date":"Data księgowania","process_date":"Data przetworzenia","due_date":"Termin realizacji","foreign_amount":"Kwota zagraniczna","payment_date":"Data płatności","invoice_date":"Data faktury","internal_reference":"Wewnętrzny numer"},"config":{"html_language":"pl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mitä kuuluu?","flash_error":"Virhe!","flash_success":"Valmista tuli!","close":"Sulje","split_transaction_title":"Jaetun tapahtuman kuvaus","errors_submission":"Lomakkeen tiedoissa oli puutteita - alta löydät listan puutteista.","split":"Jaa","transaction_journal_information":"Tapahtumatiedot","no_budget_pointer":"Sinulla ei näyttäisi olevan vielä yhtään budjettia. Sinun kannattaisi luoda niitä budjetit-sivulla. Budjetit voivat auttaa sinua pitämään kirjaa kuluistasi.","source_account":"Lähdetili","hidden_fields_preferences":"Voit aktivoida lisää tapahtumavalintoja asetuksissa.","destination_account":"Kohdetili","add_another_split":"Lisää tapahtumaan uusi osa","submission":"Vahvistus","create_another":"Tallennuksen jälkeen, palaa takaisin luomaan uusi tapahtuma.","reset_after":"Tyhjennä lomake lähetyksen jälkeen","submit":"Vahvista","amount":"Summa","date":"Päivämäärä","tags":"Tägit","no_budget":"(ei budjettia)","category":"Kategoria","attachments":"Liitteet","notes":"Muistiinpanot","update_transaction":"Päivitä tapahtuma","after_update_create_another":"Päivityksen jälkeen, palaa takaisin jatkamaan muokkausta.","store_as_new":"Tallenna uutena tapahtumana päivityksen sijaan.","split_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","none_in_select_list":"(ei mitään)","no_piggy_bank":"(ei säästöpossu)","description":"Kuvaus","split_transaction_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","destination_account_reconciliation":"Et voi muokata täsmäytystapahtuman kohdetiliä.","source_account_reconciliation":"Et voi muokata täsmäytystapahtuman lähdetiliä.","budget":"Budjetti","you_create_withdrawal":"Olet luomassa nostoa.","you_create_transfer":"Olet luomassa siirtoa.","you_create_deposit":"Olet luomassa talletusta."},"form":{"interest_date":"Korkopäivä","book_date":"Kirjauspäivä","process_date":"Käsittelypäivä","due_date":"Eräpäivä","foreign_amount":"Ulkomaan summa","payment_date":"Maksupäivä","invoice_date":"Laskun päivämäärä","internal_reference":"Sisäinen viite"},"config":{"html_language":"fi"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"O que está acontecendo?","flash_error":"Erro!","flash_success":"Sucesso!","close":"Fechar","split_transaction_title":"Descrição da transação dividida","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Dividir","transaction_journal_information":"Informação da transação","no_budget_pointer":"Parece que você ainda não tem orçamentos. Você deve criar alguns na página de orçamentos. Orçamentos podem ajudá-lo a manter o controle das despesas.","source_account":"Conta origem","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Conta destino","add_another_split":"Adicionar outra divisão","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Enviar","amount":"Valor","date":"Data","tags":"Tags","no_budget":"(sem orçamento)","category":"Categoria","attachments":"Anexos","notes":"Notas","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Se você criar uma transação dividida, é necessário haver uma descrição global para todas as partes da transação.","none_in_select_list":"(nenhum)","no_piggy_bank":"(nenhum cofrinho)","description":"Descrição","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","source_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","budget":"Orçamento","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interesse","book_date":"Data reserva","process_date":"Data de processamento","due_date":"Data de vencimento","foreign_amount":"Montante em moeda estrangeira","payment_date":"Data de pagamento","invoice_date":"Data da Fatura","internal_reference":"Referência interna"},"config":{"html_language":"pt-br"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Ce se redă?","flash_error":"Eroare!","flash_success":"Succes!","close":"Închide","split_transaction_title":"Descrierea tranzacției divizate","errors_submission":"A fost ceva în neregulă cu transmiterea dvs. Vă rugăm să consultați erorile de mai jos.","split":"Împarte","transaction_journal_information":"Informații despre tranzacții","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Contul sursă","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Contul de destinație","add_another_split":"Adăugați o divizare","submission":"Transmitere","create_another":"După stocare, reveniți aici pentru a crea alta.","reset_after":"Resetați formularul după trimitere","submit":"Trimite","amount":"Sumă","date":"Dată","tags":"Etichete","no_budget":"(nici un buget)","category":"Categorie","attachments":"Atașamente","notes":"Notițe","update_transaction":"Actualizați tranzacția","after_update_create_another":"După actualizare, reveniți aici pentru a continua editarea.","store_as_new":"Stocați ca o tranzacție nouă în loc să actualizați.","split_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","none_in_select_list":"(nici unul)","no_piggy_bank":"(nicio pușculiță)","description":"Descriere","split_transaction_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","destination_account_reconciliation":"Nu puteți edita contul de destinație al unei tranzacții de reconciliere.","source_account_reconciliation":"Nu puteți edita contul sursă al unei tranzacții de reconciliere.","budget":"Buget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interes","book_date":"Rezervă dată","process_date":"Data procesării","due_date":"Data scadentă","foreign_amount":"Sumă străină","payment_date":"Data de plată","invoice_date":"Data facturii","internal_reference":"Referință internă"},"config":{"html_language":"ro"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Что происходит с моими финансами?","flash_error":"Ошибка!","flash_success":"Успешно!","close":"Закрыть","split_transaction_title":"Описание разделённой транзакции","errors_submission":"При отправке произошла ошибка. Пожалуйста, проверьте ошибки ниже.","split":"Разделить","transaction_journal_information":"Информация о транзакции","no_budget_pointer":"Похоже, у вас пока нет бюджетов. Вы должны создать их в разделе Бюджеты. Бюджеты могут помочь вам отслеживать расходы.","source_account":"Счёт-источник","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Счёт назначения","add_another_split":"Добавить новую часть","submission":"Отправить","create_another":"После сохранения вернуться сюда и создать ещё одну аналогичную запись.","reset_after":"Сбросить форму после отправки","submit":"Подтвердить","amount":"Сумма","date":"Дата","tags":"Метки","no_budget":"(вне бюджета)","category":"Категория","attachments":"Вложения","notes":"Заметки","update_transaction":"Обновить транзакцию","after_update_create_another":"После обновления вернитесь сюда, чтобы продолжить редактирование.","store_as_new":"Сохранить как новую транзакцию вместо обновления.","split_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание дле всех её составляющих.","none_in_select_list":"(нет)","no_piggy_bank":"(нет копилки)","description":"Описание","split_transaction_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание для всех её составляющих.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"Вы не можете редактировать исходный аккаунт сверки.","budget":"Бюджет","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Дата выплаты","book_date":"Дата бронирования","process_date":"Дата обработки","due_date":"Срок","foreign_amount":"Сумма в иностранной валюте","payment_date":"Дата платежа","invoice_date":"Дата выставления счёта","internal_reference":"Внутренняя ссылка"},"config":{"html_language":"ru"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"吃饱没?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","split":"分割","transaction_journal_information":"交易资讯","source_account":"来源帐户","destination_account":"目标帐户","add_another_split":"增加拆分","submit":"送出","amount":"金额","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"錯誤!","flash_success":"成功!","close":"關閉","split_transaction_title":"拆分交易的描述","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"分割","transaction_journal_information":"交易資訊","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"增加拆分","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"送出","amount":"金額","date":"日期","tags":"標籤","no_budget":"(無預算)","category":"分類","attachments":"附加檔案","notes":"備註","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"若您建立一筆拆分交易,須有一個有關交易所有拆分的整體描述。","none_in_select_list":"(空)","no_piggy_bank":"(no piggy bank)","description":"描述","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"預算","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"利率日期","book_date":"登記日期","process_date":"處理日期","due_date":"到期日","foreign_amount":"外幣金額","payment_date":"付款日期","invoice_date":"發票日期","internal_reference":"內部參考"},"config":{"html_language":"zh-tw"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"今天理财了吗?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","errors_submission":"您的提交有误,请查看下面输出的错误信息。","split":"分割","transaction_journal_information":"交易资讯","no_budget_pointer":"您似乎还没有任何预算。您应该在 预算页面上创建他们。预算可以帮助您跟踪费用。","source_account":"来源帐户","hidden_fields_preferences":"您可以在 设置中启用更多的交易选项。","destination_account":"目标帐户","add_another_split":"增加拆分","submission":"提交","create_another":"保存后,返回此页面创建另一笔记录。","reset_after":"提交后重置表单","submit":"提交","amount":"金额","date":"日期","tags":"标签","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释","update_transaction":"更新交易","after_update_create_another":"更新后,返回此页面继续编辑。","store_as_new":"保存为新交易而不是更新此交易。","split_title_help":"如果您创建一个拆分交易,必须有一个全局的交易描述。","none_in_select_list":"(空)","no_piggy_bank":"(无存钱罐)","description":"描述","split_transaction_title_help":"如果您创建了一个分割交易,交易的所有分割项都必须有全局描述。","destination_account_reconciliation":"您不能编辑对账交易的目标账户","source_account_reconciliation":"您不能编辑对账交易的源账户","budget":"预算","you_create_withdrawal":"您正在创建一个提款","you_create_transfer":"您正在创建一个转账","you_create_deposit":"您正在创建一个存款"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","foreign_amount":"外币金额","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh-cn"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Vad spelas?","flash_error":"Fel!","flash_success":"Slutförd!","close":"Stäng","split_transaction_title":"Description of the split transaction","errors_submission":"Något fel uppstod med inskickningen. Vänligen kontrollera felen nedan.","split":"Dela","transaction_journal_information":"Transaktionsinformation","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Från konto","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Till konto","add_another_split":"Lägga till en annan delning","submission":"Inskickning","create_another":"Efter sparat, återkom hit för att skapa ytterligare en.","reset_after":"Återställ formulär efter inskickat","submit":"Skicka","amount":"Belopp","date":"Datum","tags":"Etiketter","no_budget":"(ingen budget)","category":"Kategori","attachments":"Bilagor","notes":"Noteringar","update_transaction":"Uppdatera transaktion","after_update_create_another":"Efter uppdaterat, återkom hit för att fortsätta redigera.","store_as_new":"Spara en ny transaktion istället för att uppdatera.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(Ingen)","no_piggy_bank":"(ingen spargris)","description":"Beskrivning","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Du kan inte redigera destinationskontot för en avstämningstransaktion.","source_account_reconciliation":"Du kan inte redigera källkontot för en avstämningstransaktion.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Räntedatum","book_date":"Bokföringsdatum","process_date":"Behandlingsdatum","due_date":"Förfallodatum","foreign_amount":"Utländskt belopp","payment_date":"Betalningsdatum","invoice_date":"Fakturadatum","internal_reference":"Intern referens"},"config":{"html_language":"sv"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Chào mừng trở lại","flash_error":"Lỗi!","flash_success":"Thành công!","close":"Đóng","split_transaction_title":"Mô tả giao dịch tách","errors_submission":"Có gì đó sai. Vui lòng kiểm tra các lỗi dưới đây.","split":"Chia ra","transaction_journal_information":"Thông tin giao dịch","no_budget_pointer":"Bạn dường như chưa có ngân sách. Bạn nên tạo một cái trên budgets-page. Ngân sách có thể giúp bạn theo dõi chi phí.","source_account":"Nguồn tài khoản","hidden_fields_preferences":"Bạn có thể kích hoạt thêm tùy chọn giao dịch trong settings.","destination_account":"Tài khoản đích","add_another_split":"Thêm một phân chia khác","submission":"Gửi","create_another":"Sau khi lưu trữ, quay trở lại đây để tạo một cái khác.","reset_after":"Đặt lại mẫu sau khi gửi","submit":"Gửi","amount":"Số tiền","date":"Ngày","tags":"Thẻ","no_budget":"(không có ngân sách)","category":"Dan hmucj","attachments":"Tệp đính kèm","notes":"Ghi chú","update_transaction":"Cập nhật giao dịch","after_update_create_another":"Sau khi cập nhật, quay lại đây để tiếp tục chỉnh sửa.","store_as_new":"Lưu trữ như một giao dịch mới thay vì cập nhật.","split_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Sự miêu tả","split_transaction_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","destination_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản đích của giao dịch đối chiếu.","source_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản nguồn của giao dịch đối chiếu.","budget":"Ngân sách","you_create_withdrawal":"Bạn đang tạo một rút tiền.","you_create_transfer":"Bạn đang tạo một chuyển khoản.","you_create_deposit":"Bạn đang tạo một tiền gửi."},"form":{"interest_date":"Ngày lãi","book_date":"Ngày đặt sách","process_date":"Ngày xử lý","due_date":"Ngày đáo hạn","foreign_amount":"Ngoại tệ","payment_date":"Ngày thanh toán","invoice_date":"Ngày hóa đơn","internal_reference":"Tài liệu tham khảo nội bộ"},"config":{"html_language":"vi"}}')},,,,,,,,,,,,function(t,e,n){t.exports=n(93)},,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var a=n(30),i={name:"EditTransaction",props:{groupId:Number},mounted:function(){this.getGroup()},ready:function(){},methods:{positiveAmount:function(t){return t<0?-1*t:t},roundNumber:function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},selectedSourceAccount:function(t,e){if("string"==typeof e)return this.transactions[t].source_account.id=null,void(this.transactions[t].source_account.name=e);this.transactions[t].source_account={id:e.id,name:e.name,type:e.type,currency_id:e.currency_id,currency_name:e.currency_name,currency_code:e.currency_code,currency_decimal_places:e.currency_decimal_places,allowed_types:this.transactions[t].source_account.allowed_types}},selectedDestinationAccount:function(t,e){if("string"==typeof e)return this.transactions[t].destination_account.id=null,void(this.transactions[t].destination_account.name=e);this.transactions[t].destination_account={id:e.id,name:e.name,type:e.type,currency_id:e.currency_id,currency_name:e.currency_name,currency_code:e.currency_code,currency_decimal_places:e.currency_decimal_places,allowed_types:this.transactions[t].destination_account.allowed_types}},clearSource:function(t){this.transactions[t].source_account={id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:this.transactions[t].source_account.allowed_types},this.transactions[t].destination_account&&this.selectedDestinationAccount(t,this.transactions[t].destination_account)},setTransactionType:function(t){null!==t&&(this.transactionType=t)},deleteTransaction:function(t,e){for(var n in e.preventDefault(),this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n);for(var a in this.transactions.splice(t,1),this.transactions)this.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)},clearDestination:function(t){this.transactions[t].destination_account={id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:this.transactions[t].destination_account.allowed_types},this.transactions[t].source_account&&this.selectedSourceAccount(t,this.transactions[t].source_account)},getGroup:function(){var t=this,e=window.location.href.split("/"),n="./api/v1/transactions/"+e[e.length-1]+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content;axios.get(n).then((function(e){t.processIncomingGroup(e.data.data)})).catch((function(t){}))},processIncomingGroup:function(t){this.group_title=t.attributes.group_title;var e=t.attributes.transactions.reverse();for(var n in e)if(e.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var a=e[n];this.processIncomingGroupRow(a)}},processIncomingGroupRow:function(t){this.setTransactionType(t.type);var e=[];for(var n in t.tags)t.tags.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.push({text:t.tags[n],tiClasses:[]});this.transactions.push({transaction_journal_id:t.transaction_journal_id,description:t.description,date:t.date.substr(0,10),amount:this.roundNumber(this.positiveAmount(t.amount),t.currency_decimal_places),category:t.category_name,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:t.budget_id,tags:e,custom_fields:{interest_date:t.interest_date,book_date:t.book_date,process_date:t.process_date,due_date:t.due_date,payment_date:t.payment_date,invoice_date:t.invoice_date,internal_reference:t.internal_reference,notes:t.notes},foreign_amount:{amount:this.roundNumber(this.positiveAmount(t.foreign_amount),t.foreign_currency_decimal_places),currency_id:t.foreign_currency_id},source_account:{id:t.source_id,name:t.source_name,type:t.source_type,currency_id:t.currency_id,currency_name:t.currency_name,currency_code:t.currency_code,currency_decimal_places:t.currency_decimal_places,allowed_types:[t.source_type]},destination_account:{id:t.destination_id,name:t.destination_name,type:t.destination_type,currency_id:t.currency_id,currency_name:t.currency_name,currency_code:t.currency_code,currency_decimal_places:t.currency_decimal_places,allowed_types:[t.destination_type]}})},convertData:function(){var t,e,n,a={transactions:[]};for(var i in this.transactions.length>1&&(a.group_title=this.group_title),t=this.transactionType?this.transactionType.toLowerCase():"invalid",e=this.transactions[0].source_account.type,n=this.transactions[0].destination_account.type,"invalid"===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)&&(t="withdrawal"),"invalid"===t&&["Asset account","Loan","Debt","Mortgage"].includes(n)&&(t="deposit"),this.transactions)this.transactions.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&a.transactions.push(this.convertDataRow(this.transactions[i],i,t));return a},convertDataRow:function(t,e,n){var a,i,r,s,o,c,u=[],l=null,A=null;for(var d in i=t.source_account.id,r=t.source_account.name,s=t.destination_account.id,o=t.destination_account.name,c=t.date,e>0&&(c=this.transactions[0].date),"withdrawal"===n&&""===o&&(s=window.cashAccountId),"deposit"===n&&""===r&&(i=window.cashAccountId),e>0&&("withdrawal"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(i=this.transactions[0].source_account.id,r=this.transactions[0].source_account.name),e>0&&("deposit"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(s=this.transactions[0].destination_account.id,o=this.transactions[0].destination_account.name),u=[],l=null,A=null,t.tags)t.tags.hasOwnProperty(d)&&/^0$|^[1-9]\d*$/.test(d)&&d<=4294967294&&u.push(t.tags[d].text);return""!==t.foreign_amount.amount&&0!==parseFloat(t.foreign_amount.amount)&&(l=t.foreign_amount.amount,A=t.foreign_amount.currency_id),A===t.currency_id&&(l=null,A=null),0===s&&(s=null),0===i&&(i=null),1===(String(t.amount).match(/\,/g)||[]).length&&(t.amount=String(t.amount).replace(",",".")),a={transaction_journal_id:t.transaction_journal_id,type:n,date:c,amount:t.amount,currency_id:t.currency_id,description:t.description,source_id:i,source_name:r,destination_id:s,destination_name:o,category_name:t.category,interest_date:t.custom_fields.interest_date,book_date:t.custom_fields.book_date,process_date:t.custom_fields.process_date,due_date:t.custom_fields.due_date,payment_date:t.custom_fields.payment_date,invoice_date:t.custom_fields.invoice_date,internal_reference:t.custom_fields.internal_reference,notes:t.custom_fields.notes,tags:u},null!==l&&(a.foreign_amount=l,a.foreign_currency_id=A),a.budget_id=parseInt(t.budget),parseInt(t.piggy_bank)>0&&(a.piggy_bank_id=parseInt(t.piggy_bank)),a},submit:function(t){var e=this,n=window.location.href.split("/"),a="./api/v1/transactions/"+n[n.length-1]+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content,i="PUT";this.storeAsNew&&(a="./api/v1/transactions?_token="+document.head.querySelector('meta[name="csrf-token"]').content,i="POST");var r=this.convertData(),s=$("#submitButton");s.prop("disabled",!0),axios({method:i,url:a,data:r}).then((function(t){0===e.collectAttachmentData(t)&&e.redirectUser(t.data.data.id)})).catch((function(t){e.parseErrors(t.response.data)})),t&&t.preventDefault(),s.removeAttr("disabled")},redirectUser:function(t){this.returnAfter?(this.setDefaultErrors(),this.storeAsNew?(this.success_message='Transaction #'+t+" has been created.",this.error_message=""):(this.success_message='The transaction has been updated.',this.error_message="")):this.storeAsNew?window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=created":window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=updated"},collectAttachmentData:function(t){var e=this,n=t.data.data.id,a=[],i=[],r=$('input[name="attachments[]"]');for(var s in r)if(r.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294)for(var o in r[s].files)if(r[s].files.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var c=t.data.data.attributes.transactions.reverse();a.push({journal:c[s].transaction_journal_id,file:r[s].files[o]})}var u=a.length,l=function(t){var r,s,o;a.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(r=a[t],s=e,(o=new FileReader).onloadend=function(e){e.target.readyState===FileReader.DONE&&(i.push({name:a[t].file.name,journal:a[t].journal,content:new Blob([e.target.result])}),i.length===u&&s.uploadFiles(i,n))},o.readAsArrayBuffer(r.file))};for(var A in a)l(A);return u},uploadFiles:function(t,e){var n=this,a=t.length,i=0,r=function(r){if(t.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294){var s={filename:t[r].name,attachable_type:"TransactionJournal",attachable_id:t[r].journal};axios.post("./api/v1/attachments",s).then((function(s){var o="./api/v1/attachments/"+s.data.data.id+"/upload";axios.post(o,t[r].content).then((function(t){return++i===a&&n.redirectUser(e,null),!0})).catch((function(t){return console.error("Could not upload file."),console.error(t),i++,n.error_message="Could not upload attachment: "+t,i===a&&n.redirectUser(e,null),!1}))}))}};for(var s in t)r(s)},addTransaction:function(t){this.transactions.push({transaction_journal_id:0,description:"",date:"",amount:"",category:"",piggy_bank:0,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:0,tags:[],custom_fields:{interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",internal_reference:"",notes:"",attachments:[]},foreign_amount:{amount:"",currency_id:0},source_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:[]},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:[]}}),t&&t.preventDefault()},parseErrors:function(t){var e,n;for(var a in this.setDefaultErrors(),this.error_message="",t.message.length>0?this.error_message=this.$t("firefly.errors_submission"):this.error_message="",t.errors)if(t.errors.hasOwnProperty(a)&&("group_title"===a&&(this.group_title_errors=t.errors[a]),"group_title"!==a)){switch(e=parseInt(a.split(".")[1]),n=a.split(".")[2]){case"amount":case"date":case"budget_id":case"description":case"tags":this.transactions[e].errors[n]=t.errors[a];break;case"source_name":case"source_id":this.transactions[e].errors.source_account=this.transactions[e].errors.source_account.concat(t.errors[a]);break;case"destination_name":case"destination_id":this.transactions[e].errors.destination_account=this.transactions[e].errors.destination_account.concat(t.errors[a]);break;case"foreign_amount":case"foreign_currency_id":this.transactions[e].errors.foreign_amount=this.transactions[e].errors.foreign_amount.concat(t.errors[a])}this.transactions[e].errors.source_account=Array.from(new Set(this.transactions[e].errors.source_account)),this.transactions[e].errors.destination_account=Array.from(new Set(this.transactions[e].errors.destination_account))}},setDefaultErrors:function(){for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(this.transactions[t].errors={source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}})}},data:function(){return{group:this.groupId,error_message:"",success_message:"",transactions:[],group_title:"",returnAfter:!1,storeAsNew:!1,transactionType:null,group_title_errors:[],resetButtonDisabled:!0}}},r=n(0),s=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"form-horizontal",attrs:{method:"POST",action:"#","accept-charset":"UTF-8",id:"store",enctype:"multipart/form-data"}},[n("input",{attrs:{name:"_token",type:"hidden",value:"xxx"}}),t._v(" "),""!==t.error_message?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"alert alert-danger alert-dismissible",attrs:{role:"alert"}},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":t.$t("firefly.close")}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),n("strong",[t._v(t._s(t.$t("firefly.flash_error")))]),t._v(" "+t._s(t.error_message)+"\n ")])])]):t._e(),t._v(" "),""!==t.success_message?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"alert alert-success alert-dismissible",attrs:{role:"alert"}},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":t.$t("firefly.close")}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),n("strong",[t._v(t._s(t.$t("firefly.flash_success")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.success_message)}})])])]):t._e(),t._v(" "),n("div",t._l(t.transactions,(function(e,a){return n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title splitTitle"},[t.transactions.length>1?n("span",[t._v(t._s(t.$t("firefly.split"))+" "+t._s(a+1)+" / "+t._s(t.transactions.length))]):t._e(),t._v(" "),1===t.transactions.length?n("span",[t._v(t._s(t.$t("firefly.transaction_journal_information")))]):t._e()]),t._v(" "),t.transactions.length>1?n("div",{staticClass:"box-tools pull-right",attrs:{x:""}},[n("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteTransaction(a,e)}}},[n("i",{staticClass:"fa fa-trash"})])]):t._e()]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-4"},["reconciliation"!==t.transactionType.toLowerCase()?n("transaction-description",{attrs:{index:a,error:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}}):t._e(),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("account-select",{attrs:{inputName:"source[]",title:t.$t("firefly.source_account"),accountName:e.source_account.name,accountTypeFilters:e.source_account.allowed_types,transactionType:t.transactionType,index:a,error:e.errors.source_account},on:{"clear:value":function(e){return t.clearSource(a)},"select:account":function(e){return t.selectedSourceAccount(a,e)}}}):t._e(),t._v(" "),"reconciliation"===t.transactionType.toLowerCase()?n("div",{staticClass:"form-group"},[n("div",{staticClass:"col-sm-12"},[n("p",{staticClass:"form-control-static",attrs:{id:"ffInput_source"}},[n("em",[t._v("\n "+t._s(t.$t("firefly.source_account_reconciliation"))+"\n ")])])])]):t._e(),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("account-select",{attrs:{inputName:"destination[]",title:t.$t("firefly.destination_account"),accountName:e.destination_account.name,accountTypeFilters:e.destination_account.allowed_types,transactionType:t.transactionType,index:a,error:e.errors.destination_account},on:{"clear:value":function(e){return t.clearDestination(a)},"select:account":function(e){return t.selectedDestinationAccount(a,e)}}}):t._e(),t._v(" "),"reconciliation"===t.transactionType.toLowerCase()?n("div",{staticClass:"form-group"},[n("div",{staticClass:"col-sm-12"},[n("p",{staticClass:"form-control-static",attrs:{id:"ffInput_dest"}},[n("em",[t._v("\n "+t._s(t.$t("firefly.destination_account_reconciliation"))+"\n ")])])])]):t._e(),t._v(" "),n("standard-date",{attrs:{index:a,error:e.errors.date},model:{value:e.date,callback:function(n){t.$set(e,"date",n)},expression:"transaction.date"}}),t._v(" "),0===a?n("div",[n("transaction-type",{attrs:{source:e.source_account.type,destination:e.destination_account.type},on:{"set:transactionType":function(e){return t.setTransactionType(e)},"act:limitSourceType":function(e){return t.limitSourceType(e)},"act:limitDestinationType":function(e){return t.limitDestinationType(e)}}})],1):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("amount",{attrs:{source:e.source_account,destination:e.destination_account,error:e.errors.amount,transactionType:t.transactionType},model:{value:e.amount,callback:function(n){t.$set(e,"amount",n)},expression:"transaction.amount"}}),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("foreign-amount",{attrs:{source:e.source_account,destination:e.destination_account,transactionType:t.transactionType,error:e.errors.foreign_amount,no_currency:t.$t("firefly.none_in_select_list"),title:t.$t("form.foreign_amount")},model:{value:e.foreign_amount,callback:function(n){t.$set(e,"foreign_amount",n)},expression:"transaction.foreign_amount"}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("budget",{attrs:{transactionType:t.transactionType,error:e.errors.budget_id,no_budget:t.$t("firefly.none_in_select_list")},model:{value:e.budget,callback:function(n){t.$set(e,"budget",n)},expression:"transaction.budget"}}),t._v(" "),n("category",{attrs:{transactionType:t.transactionType,error:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}}),t._v(" "),n("tags",{attrs:{transactionType:t.transactionType,tags:e.tags,error:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("custom-transaction-fields",{attrs:{error:e.errors.custom_errors},model:{value:e.custom_fields,callback:function(n){t.$set(e,"custom_fields",n)},expression:"transaction.custom_fields"}})],1)])]),t._v(" "),t.transactions.length-1===a&&"reconciliation"!==t.transactionType.toLowerCase()?n("div",{staticClass:"box-footer"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.addTransaction}},[t._v(t._s(t.$t("firefly.add_another_split")))])]):t._e()])])])})),0),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("group-description",{attrs:{error:t.group_title_errors},model:{value:t.group_title,callback:function(e){t.group_title=e},expression:"group_title"}})],1)])])]):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.submission"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.returnAfter,expression:"returnAfter"}],attrs:{name:"return_after",type:"checkbox"},domProps:{checked:Array.isArray(t.returnAfter)?t._i(t.returnAfter,null)>-1:t.returnAfter},on:{change:function(e){var n=t.returnAfter,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.returnAfter=n.concat([null])):r>-1&&(t.returnAfter=n.slice(0,r).concat(n.slice(r+1)))}else t.returnAfter=i}}}),t._v("\n "+t._s(t.$t("firefly.after_update_create_another"))+"\n ")])]),t._v(" "),null!==t.transactionType&&"reconciliation"!==t.transactionType.toLowerCase()?n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeAsNew,expression:"storeAsNew"}],attrs:{name:"store_as_new",type:"checkbox"},domProps:{checked:Array.isArray(t.storeAsNew)?t._i(t.storeAsNew,null)>-1:t.storeAsNew},on:{change:function(e){var n=t.storeAsNew,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.storeAsNew=n.concat([null])):r>-1&&(t.storeAsNew=n.slice(0,r).concat(n.slice(r+1)))}else t.storeAsNew=i}}}),t._v("\n "+t._s(t.$t("firefly.store_as_new"))+"\n ")])]):t._e()]),t._v(" "),n("div",{staticClass:"box-footer"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-success",on:{click:t.submit}},[t._v(t._s(t.$t("firefly.update_transaction")))])])])])])])])}),[],!1,null,"f382f1ae",null).exports,o=n(31),c=n(32),u=n(33),l=n(34),A=n(35),d=n(36),p=n(37),f=n(38),_=n(39),h=n(40),g=n(41),m=n(42),v=n(43),y=n(44),b=n(45);n(28),Vue.component("budget",b.a),Vue.component("custom-date",o.a),Vue.component("custom-string",c.a),Vue.component("custom-attachments",a.a),Vue.component("custom-textarea",u.a),Vue.component("standard-date",l.a),Vue.component("group-description",A.a),Vue.component("transaction-description",d.a),Vue.component("custom-transaction-fields",p.a),Vue.component("piggy-bank",f.a),Vue.component("tags",_.a),Vue.component("category",h.a),Vue.component("amount",g.a),Vue.component("foreign-amount",m.a),Vue.component("transaction-type",v.a),Vue.component("account-select",y.a),Vue.component("edit-transaction",s);var C=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{cs:n(50),de:n(51),en:n(52),es:n(53),el:n(54),fr:n(55),hu:n(56),id:n(57),it:n(58),nl:n(59),no:n(60),pl:n(61),fi:n(62),"pt-br":n(63),ro:n(64),ru:n(65),zh:n(66),"zh-tw":n(67),"zh-cn":n(68),sv:n(69),vi:n(70)}}),w={};new Vue({i18n:C,el:"#edit_transaction",render:function(t){return t(s,{props:w})}})}]); \ No newline at end of file +!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=82)}([function(t,e,n){"use strict";function a(t,e,n,a,i,r,o,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),a&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var A=u.beforeCreate;u.beforeCreate=A?[].concat(A,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";var a=n(5),i=n(12),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,a=t.length;n=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),a.forEach(["post","put","patch"],(function(t){c.headers[t]=a.merge(r)})),t.exports=c}).call(this,n(10))},function(t,e,n){t.exports=n(11)},,function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),a=0;a1)for(var n=1;n=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var a=t;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=a.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var a=n(1);t.exports=a.isStandardBrowserEnv()?{write:function(t,e,n,i,r,o){var s=[];s.push(t+"="+encodeURIComponent(e)),a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(i)&&s.push("path="+i),a.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var a=n(1);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){a.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var a=n(1),i=n(23),r=n(8),o=n(2),s=n(24),c=n(25);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=a.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var a=n(1);t.exports=function(t,e,n){return a.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var a=n(9);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new a(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){window.axios=n(3),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var a=document.head.querySelector('meta[name="csrf-token"]');a?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=a.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token")},function(t,e,n){window,t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=6)}([function(t,e,n){var a=n(8);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("7ec05f6c",a,!1,{})},function(t,e,n){var a=n(10);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals),(0,n(4).default)("3453d19d",a,!1,{})},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"==typeof btoa){var r=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[a].concat(o).concat([r]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;in.parts.length&&(a.parts.length=n.parts.length)}else{var o=[];for(i=0;i div[data-v-61d92e31] {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%;\n}\n.ti-selected-item[data-v-61d92e31] {\n background-color: #5C6BC0;\n color: #fff;\n}\n',"",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,mCAA8C;EAC9C,+JAAuM;EACvM,oBAAoB;EACpB,mBAAmB;CAAE;AAEvB;EACE,kCAAkC;EAClC,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EACf,oCAAoC;EACpC,mCAAmC;CAAE;AAEvC;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,YAAY;EACZ,aAAa;EACb,sBAAsB;CAAE;AAE1B;EACE,uBAAuB;CAAE;AAE3B;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE;AAElC;EACE,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;CAAE;AAE3B;EACE,aAAa;CAAE;AACf;IACE,gBAAgB;CAAE;AAEtB;EACE,uBAAuB;EACvB,cAAc;EACd,aAAa;EACb,gBAAgB;CAAE;AAEpB;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;CAAE;AAErB;EACE,0BAA0B;EAC1B,YAAY;EACZ,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,cAAc;CAAE;AAClB;IACE,cAAc;IACd,oBAAoB;CAAE;AACxB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;CAAE;AACrB;IACE,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,kBAAkB;CAAE;AACpB;MACE,gBAAgB;CAAE;AACtB;IACE,kBAAkB;CAAE;AACtB;IACE,0BAA0B;CAAE;AAEhC;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;CAAE;AAElB;EACE,qBAAqB;CAAE;AAEzB;EACE,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,YAAY;CAAE;AAEhB;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;CAAE;AAEhB;EACE,0BAA0B;EAC1B,YAAY;CAAE",file:"vue-tags-input.scss?vue&type=style&index=0&id=61d92e31&lang=scss&scoped=true&",sourcesContent:['@font-face {\n font-family: \'icomoon\';\n src: url("./assets/fonts/icomoon.eot?7grlse");\n src: url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"), url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"), url("./assets/fonts/icomoon.woff?7grlse") format("woff");\n font-weight: normal;\n font-style: normal; }\n\n[class^="ti-icon-"], [class*=" ti-icon-"] {\n font-family: \'icomoon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.ti-icon-check:before {\n content: "\\e902"; }\n\n.ti-icon-close:before {\n content: "\\e901"; }\n\n.ti-icon-undo:before {\n content: "\\e900"; }\n\nul {\n margin: 0px;\n padding: 0px;\n list-style-type: none; }\n\n*, *:before, *:after {\n box-sizing: border-box; }\n\ninput:focus {\n outline: none; }\n\ninput[disabled] {\n background-color: transparent; }\n\n.vue-tags-input {\n max-width: 450px;\n position: relative;\n background-color: #fff; }\n\ndiv.vue-tags-input.disabled {\n opacity: 0.5; }\n div.vue-tags-input.disabled * {\n cursor: default; }\n\n.ti-input {\n border: 1px solid #ccc;\n display: flex;\n padding: 4px;\n flex-wrap: wrap; }\n\n.ti-tags {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n line-height: 1em; }\n\n.ti-tag {\n background-color: #5C6BC0;\n color: #fff;\n border-radius: 2px;\n display: flex;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-tag:focus {\n outline: none; }\n .ti-tag .ti-content {\n display: flex;\n align-items: center; }\n .ti-tag .ti-tag-center {\n position: relative; }\n .ti-tag span {\n line-height: .85em; }\n .ti-tag span.ti-hidden {\n padding-left: 14px;\n visibility: hidden;\n height: 0px;\n white-space: pre; }\n .ti-tag .ti-actions {\n margin-left: 2px;\n display: flex;\n align-items: center;\n font-size: 1.15em; }\n .ti-tag .ti-actions i {\n cursor: pointer; }\n .ti-tag:last-child {\n margin-right: 4px; }\n .ti-tag.ti-invalid, .ti-tag.ti-tag.ti-deletion-mark {\n background-color: #e54d42; }\n\n.ti-new-tag-input-wrapper {\n display: flex;\n flex: 1 0 auto;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em; }\n .ti-new-tag-input-wrapper input {\n flex: 1 0 auto;\n min-width: 100px;\n border: none;\n padding: 0px;\n margin: 0px; }\n\n.ti-new-tag-input {\n line-height: initial; }\n\n.ti-autocomplete {\n border: 1px solid #ccc;\n border-top: none;\n position: absolute;\n width: 100%;\n background-color: #fff;\n z-index: 20; }\n\n.ti-item > div {\n cursor: pointer;\n padding: 3px 6px;\n width: 100%; }\n\n.ti-selected-item {\n background-color: #5C6BC0;\n color: #fff; }\n'],sourceRoot:""}])},function(t,e,n){"use strict";t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){t.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(t,e){t.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":t.disabled},{"ti-focus":t.focused}]},[n("div",{staticClass:"ti-input"},[t.tagsCopy?n("ul",{staticClass:"ti-tags"},[t._l(t.tagsCopy,(function(e,a){return n("li",{key:a,staticClass:"ti-tag",class:[{"ti-editing":t.tagsEditStatus[a]},e.tiClasses,e.classes,{"ti-deletion-mark":t.isMarked(a)}],style:e.style,attrs:{tabindex:"0"},on:{click:function(n){return t.$emit("tag-clicked",{tag:e,index:a})}}},[n("div",{staticClass:"ti-content"},[t.$scopedSlots["tag-left"]?n("div",{staticClass:"ti-tag-left"},[t._t("tag-left",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e(),t._v(" "),n("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[t.$scopedSlots["tag-center"]?t._e():n("span",{class:{"ti-hidden":t.tagsEditStatus[a]},on:{click:function(e){return t.performEditTag(a)}}},[t._v(t._s(e.text))]),t._v(" "),t.$scopedSlots["tag-center"]?t._e():n("tag-input",{attrs:{scope:{edit:t.tagsEditStatus[a],maxlength:t.maxlength,tag:e,index:a,validateTag:t.createChangedTag,performCancelEdit:t.cancelEdit,performSaveEdit:t.performSaveTag}}}),t._v(" "),t._t("tag-center",null,{tag:e,index:a,maxlength:t.maxlength,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,validateTag:t.createChangedTag,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2),t._v(" "),t.$scopedSlots["tag-right"]?n("div",{staticClass:"ti-tag-right"},[t._t("tag-right",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)})],2):t._e()]),t._v(" "),n("div",{staticClass:"ti-actions"},[t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:t.tagsEditStatus[a],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(e){return t.cancelEdit(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._e():n("i",{directives:[{name:"show",rawName:"v-show",value:!t.tagsEditStatus[a],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(e){return t.performDeleteTag(a)}}}),t._v(" "),t.$scopedSlots["tag-actions"]?t._t("tag-actions",null,{tag:e,index:a,edit:t.tagsEditStatus[a],performSaveEdit:t.performSaveTag,performDelete:t.performDeleteTag,performCancelEdit:t.cancelEdit,performOpenEdit:t.performEditTag,deletionMark:t.isMarked(a)}):t._e()],2)])})),t._v(" "),n("li",{staticClass:"ti-new-tag-input-wrapper"},[n("input",t._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[t.createClasses(t.newTag,t.tags,t.validation,t.isDuplicate)],attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,type:"text",size:"1"},domProps:{value:t.newTag},on:{keydown:[function(e){return t.performAddTags(t.filteredAutocompleteItems[t.selectedItem]||t.newTag,e)},function(e){return e.type.indexOf("key")||8===e.keyCode?t.invokeDelete(e):null},function(e){return e.type.indexOf("key")||9===e.keyCode?t.performBlur(e):null},function(e){return e.type.indexOf("key")||38===e.keyCode?t.selectItem(e,"before"):null},function(e){return e.type.indexOf("key")||40===e.keyCode?t.selectItem(e,"after"):null}],paste:t.addTagsFromPaste,input:t.updateNewTag,blur:function(e){return t.$emit("blur",e)},focus:function(e){t.focused=!0,t.$emit("focus",e)},click:function(e){!t.addOnlyFromAutocomplete&&(t.selectedItem=null)}}},"input",t.$attrs,!1))])],2):t._e()]),t._v(" "),t._t("between-elements"),t._v(" "),t.autocompleteOpen?n("div",{staticClass:"ti-autocomplete",on:{mouseout:function(e){t.selectedItem=null}}},[t._t("autocomplete-header"),t._v(" "),n("ul",t._l(t.filteredAutocompleteItems,(function(e,a){return n("li",{key:a,staticClass:"ti-item",class:[e.tiClasses,e.classes,{"ti-selected-item":t.isSelected(a)}],style:e.style,on:{mouseover:function(e){!t.disabled&&(t.selectedItem=a)}}},[t.$scopedSlots["autocomplete-item"]?t._t("autocomplete-item",null,{item:e,index:a,performAdd:function(e){return t.performAddTags(e,void 0,"autocomplete")},selected:t.isSelected(a)}):n("div",{on:{click:function(n){return t.performAddTags(e,void 0,"autocomplete")}}},[t._v("\n "+t._s(e.text)+"\n ")])],2)})),0),t._v(" "),t._t("autocomplete-footer")],2):t._e()],2)};a._withStripped=!0;var i=n(5),r=n.n(i),o=function(t){return JSON.parse(JSON.stringify(t))},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0;void 0===t.text&&(t={text:t});var i=function(t,e){return e.filter((function(e){var n=t.text;return"string"==typeof e.rule?!new RegExp(e.rule).test(n):e.rule instanceof RegExp?!e.rule.test(n):"[object Function]"==={}.toString.call(e.rule)?e.rule(t):void 0})).map((function(t){return t.classes}))}(t,n),r=function(t,e){for(var n=0;n1?n-1:0),i=1;i1?e-1:0),a=1;a=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var t=this,e=this.autocompleteItems.map((function(e){return c(e,t.tags,t.validation,t.isDuplicate)}));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:s,getSelectedIndex:function(t){var e=this.filteredAutocompleteItems,n=this.selectedItem,a=e.length-1;if(0!==e.length)return null===n?0:"before"===t&&0===n?a:"after"===t&&n===a?0:"after"===t?n+1:n-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(t,e){t.preventDefault(),this.selectedItem=this.getSelectedIndex(e)},isSelected:function(t){return this.selectedItem===t},isMarked:function(t){return this.deletionMark===t},invokeDelete:function(){var t=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var e=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout((function(){return t.deletionMark=null}),1e3),this.deletionMark=e):this.performDeleteTag(e)}},addTagsFromPaste:function(){var t=this;this.addFromPaste&&setTimeout((function(){return t.performAddTags(t.newTag)}),10)},performEditTag:function(t){var e=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(t),this.$emit("before-editing-tag",{index:t,tag:this.tagsCopy[t],editTag:function(){return e.editTag(t)}}))},editTag:function(t){this.allowEditTags&&(this.toggleEditMode(t),this.focus(t))},toggleEditMode:function(t){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,t,!this.tagsEditStatus[t])},createChangedTag:function(t,e){var n=this.tagsCopy[t];n.text=e?e.target.value:this.tagsCopy[t].text,this.$set(this.tagsCopy,t,c(n,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(t){var e=this;this.$nextTick((function(){var n=e.$refs.tagCenter[t].querySelector("input.ti-tag-input");n&&n.focus()}))},quote:function(t){return t.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(t){this.tags[t]&&(this.tagsCopy[t]=o(c(this.tags[t],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,t,!1))},hasForbiddingAddRule:function(t){var e=this;return t.some((function(t){var n=e.validation.find((function(e){return t===e.classes}));return!!n&&n.disableAdd}))},createTagTexts:function(t){var e=this,n=new RegExp(this.separators.map((function(t){return e.quote(t)})).join("|"));return t.split(n).map((function(t){return{text:t}}))},performDeleteTag:function(t){var e=this;this._events["before-deleting-tag"]||this.deleteTag(t),this.$emit("before-deleting-tag",{index:t,tag:this.tagsCopy[t],deleteTag:function(){return e.deleteTag(t)}})},deleteTag:function(t){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(t,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(t,e){var n=-1!==this[e].indexOf(t.keyCode)||-1!==this[e].indexOf(t.key);return n&&t.preventDefault(),!n},performAddTags:function(t,e,n){var a=this;if(!(this.disabled||e&&this.noTriggerKey(e,"addOnKey"))){var i=[];"object"===m(t)&&(i=[t]),"string"==typeof t&&(i=this.createTagTexts(t)),(i=i.filter((function(t){return t.text.trim().length>0}))).forEach((function(t){t=c(t,a.tags,a.validation,a.isDuplicate),a._events["before-adding-tag"]||a.addTag(t,n),a.$emit("before-adding-tag",{tag:t,addTag:function(){return a.addTag(t,n)}})}))}},duplicateFilter:function(t){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,t):!this.tagsCopy.find((function(e){return e.text===t.text}))},addTag:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",a=this.filteredAutocompleteItems.map((function(t){return t.text}));this.addOnlyFromAutocomplete&&-1===a.indexOf(t.text)||this.$nextTick((function(){return e.maxTags&&e.maxTags<=e.tagsCopy.length?e.$emit("max-tags-reached",t):e.avoidAddingDuplicates&&!e.duplicateFilter(t)?e.$emit("adding-duplicate",t):void(e.hasForbiddingAddRule(t.tiClasses)||(e.$emit("input",""),e.tagsCopy.push(t),e._events["update:tags"]&&e.$emit("update:tags",e.tagsCopy),"autocomplete"===n&&e.$refs.newTagInput.focus(),e.$emit("tags-changed",e.tagsCopy)))}))},performSaveTag:function(t,e){var n=this,a=this.tagsCopy[t];this.disabled||e&&this.noTriggerKey(e,"addOnKey")||0!==a.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(t,a),this.$emit("before-saving-tag",{index:t,tag:a,saveTag:function(){return n.saveTag(t,a)}}))},saveTag:function(t,e){if(this.avoidAddingDuplicates){var n=o(this.tagsCopy),a=n.splice(t,1)[0];if(this.isDuplicate?this.isDuplicate(n,a):-1!==n.map((function(t){return t.text})).indexOf(a.text))return this.$emit("saving-duplicate",e)}this.hasForbiddingAddRule(e.tiClasses)||(this.$set(this.tagsCopy,t,e),this.toggleEditMode(t),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var t=this;return!this.tagsCopy.some((function(e,n){return!r()(e,t.tags[n])}))},updateNewTag:function(t){var e=t.target.value;this.newTag=e,this.$emit("input",e)},initTags:function(){this.tagsCopy=u(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=o(this.tags).map((function(){return!1})),this._events["update:tags"]&&!this.tagsEqual()&&this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(t){this.$el.contains(t.target)||this.$el.contains(document.activeElement)||this.performBlur(t)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{value:function(t){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=t},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.value,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},destroyed:function(){document.removeEventListener("click",this.blurredOnClick)}},y=(n(9),d(v,a,[],!1,null,"61d92e31",null));y.options.__file="vue-tags-input/vue-tags-input.vue";var b=y.exports;n.d(e,"VueTagsInput",(function(){return b})),n.d(e,"createClasses",(function(){return s})),n.d(e,"createTag",(function(){return c})),n.d(e,"createTags",(function(){return u})),n.d(e,"TagInput",(function(){return f})),b.install=function(t){return t.component(b.name,b)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(b),e.default=b}])},function(t,e,n){"use strict";var a={name:"CustomAttachments",props:{title:String,name:String,error:Array},methods:{hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("input",{staticClass:"form-control",attrs:{multiple:"multiple",autocomplete:"off",placeholder:t.title,title:t.title,name:t.name,type:"file"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"73840c18",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomDate",props:{value:String,title:String,name:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.date.value)},hasError:function(){return this.error.length>0},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value?t.value.substr(0,10):""},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"7a261844",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomString",props:{title:String,name:String,value:String,error:Array},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},clearField:function(){this.name="",this.$refs.str.value="",this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"str",staticClass:"form-control",attrs:{type:"text",name:t.name,title:t.title,autocomplete:"off",placeholder:t.title},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"ada77346",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTextarea",props:{title:String,name:String,value:String,error:Array},data:function(){return{textValue:this.value}},methods:{handleInput:function(t){this.$emit("input",this.$refs.str.value)},hasError:function(){return this.error.length>0}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.textValue,expression:"textValue"}],ref:"str",staticClass:"form-control",attrs:{name:t.name,title:t.title,autocomplete:"off",rows:"8",placeholder:t.title},domProps:{value:t.textValue},on:{input:[function(e){e.target.composing||(t.textValue=e.target.value)},t.handleInput]}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"40389097",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"StandardDate",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.date.value)},clearDate:function(){this.name="",this.$refs.date.value="",this.$emit("input",this.$refs.date.value),this.$emit("clear:date")}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.date"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"date",staticClass:"form-control",attrs:{type:"date",name:"date[]",title:t.$t("firefly.date"),autocomplete:"off",disabled:t.index>0,placeholder:t.$t("firefly.date")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDate}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"4e877916",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"GroupDescription",methods:{hasError:function(){return this.error.length>0},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},clearField:function(){this.name="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value)}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"group_title",title:t.$t("firefly.split_transaction_title"),autocomplete:"off",placeholder:t.$t("firefly.split_transaction_title")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearField}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),0===t.error.length?n("p",{staticClass:"help-block"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title_help"))+"\n ")]):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"2666c561",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:["error","value","index"],name:"TransactionDescription",mounted:function(){this.target=this.$refs.descr,this.descriptionAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/transaction-journals/all?search=",this.$refs.descr.focus()},components:{},data:function(){return{descriptionAutoCompleteURI:null,name:null,description:null,target:null}},methods:{search:function(t){return["ab","cd"]},hasError:function(){return this.error.length>0},clearDescription:function(){this.description="",this.$refs.descr.value="",this.$emit("input",this.$refs.descr.value),this.$emit("clear:description")},handleInput:function(t){this.$emit("input",this.$refs.descr.value)},handleEnter:function(t){t.keyCode},selectedItem:function(t){void 0!==this.name&&"string"!=typeof this.name&&(this.$refs.descr.value=this.name.description,this.$emit("input",this.$refs.descr.value))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.description"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"descr",staticClass:"form-control",attrs:{type:"text",name:"description[]",title:t.$t("firefly.description"),autocomplete:"off",placeholder:t.$t("firefly.description")},domProps:{value:t.value},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()},input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearDescription}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.descriptionAutoCompleteURI,target:t.target,"item-key":"description"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"dfd3d572",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"CustomTransactionFields",props:["value","error"],mounted:function(){this.getPreference()},data:function(){return{customInterestDate:null,fields:[{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1,internal_reference:!1,notes:!1,attachments:!1}]}},computed:{dateComponent:function(){return"custom-date"},stringComponent:function(){return"custom-string"},attachmentComponent:function(){return"custom-attachments"},textareaComponent:function(){return"custom-textarea"}},methods:{handleInput:function(t){this.$emit("input",this.value)},getPreference:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"api/v1/preferences/transaction_journal_optional_fields";axios.get(e).then((function(e){t.fields=e.data.data.attributes.data})).catch((function(){return console.warn("Oh. Something went wrong loading custom transaction fields.")}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.hidden_fields_preferences"))}}),t._v(" "),this.fields.interest_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.interest_date,name:"interest_date[]",title:t.$t("form.interest_date")},model:{value:t.value.interest_date,callback:function(e){t.$set(t.value,"interest_date",e)},expression:"value.interest_date"}}):t._e(),t._v(" "),this.fields.book_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.book_date,name:"book_date[]",title:t.$t("form.book_date")},model:{value:t.value.book_date,callback:function(e){t.$set(t.value,"book_date",e)},expression:"value.book_date"}}):t._e(),t._v(" "),this.fields.process_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.process_date,name:"process_date[]",title:t.$t("form.process_date")},model:{value:t.value.process_date,callback:function(e){t.$set(t.value,"process_date",e)},expression:"value.process_date"}}):t._e(),t._v(" "),this.fields.due_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.due_date,name:"due_date[]",title:t.$t("form.due_date")},model:{value:t.value.due_date,callback:function(e){t.$set(t.value,"due_date",e)},expression:"value.due_date"}}):t._e(),t._v(" "),this.fields.payment_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.payment_date,name:"payment_date[]",title:t.$t("form.payment_date")},model:{value:t.value.payment_date,callback:function(e){t.$set(t.value,"payment_date",e)},expression:"value.payment_date"}}):t._e(),t._v(" "),this.fields.invoice_date?n(t.dateComponent,{tag:"component",attrs:{error:t.error.invoice_date,name:"invoice_date[]",title:t.$t("form.invoice_date")},model:{value:t.value.invoice_date,callback:function(e){t.$set(t.value,"invoice_date",e)},expression:"value.invoice_date"}}):t._e(),t._v(" "),this.fields.internal_reference?n(t.stringComponent,{tag:"component",attrs:{error:t.error.internal_reference,name:"internal_reference[]",title:t.$t("form.internal_reference")},model:{value:t.value.internal_reference,callback:function(e){t.$set(t.value,"internal_reference",e)},expression:"value.internal_reference"}}):t._e(),t._v(" "),this.fields.attachments?n(t.attachmentComponent,{tag:"component",attrs:{error:t.error.attachments,name:"attachments[]",title:t.$t("firefly.attachments")},model:{value:t.value.attachments,callback:function(e){t.$set(t.value,"attachments",e)},expression:"value.attachments"}}):t._e(),t._v(" "),this.fields.notes?n(t.textareaComponent,{tag:"component",attrs:{error:t.error.notes,name:"notes[]",title:t.$t("firefly.notes")},model:{value:t.value.notes,callback:function(e){t.$set(t.value,"notes",e)},expression:"value.notes"}}):t._e()],1)}),[],!1,null,"c24d33ba",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"PiggyBank",props:["value","transactionType","error","no_piggy_bank"],mounted:function(){this.loadPiggies()},data:function(){return{piggies:[]}},methods:{handleInput:function(t){this.$emit("input",this.$refs.piggy.value)},hasError:function(){return this.error.length>0},loadPiggies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/piggy-banks";axios.get(e,{}).then((function(e){for(var n in t.piggies=[{name_with_amount:t.no_piggy_bank,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.piggies.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0!==this.transactionType&&"Transfer"===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12"},[this.piggies.length>0?n("select",{ref:"piggy",staticClass:"form-control",attrs:{name:"piggy_bank[]"},on:{input:t.handleInput}},t._l(this.piggies,(function(e){return n("option",{attrs:{label:e.name_with_amount},domProps:{value:e.id}},[t._v(t._s(e.name_with_amount))])})),0):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1797c09a",null);e.a=r.exports},function(t,e,n){"use strict";var a=n(3),i=n.n(a),r=n(29),o={name:"Tags",components:{VueTagsInput:n.n(r).a},props:["value","error"],data:function(){return{tag:"",autocompleteItems:[],debounce:null,tags:this.value}},watch:{tag:"initItems"},methods:{update:function(t){this.autocompleteItems=[],this.tags=t,this.$emit("input",this.tags)},clearTags:function(){this.tags=[]},hasError:function(){return this.error.length>0},initItems:function(){var t=this;if(!(this.tag.length<2)){var e=document.getElementsByTagName("base")[0].href+"json/tags?search=".concat(this.tag);clearTimeout(this.debounce),this.debounce=setTimeout((function(){i.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.")}))}),600)}}}},s=n(0),c=Object(s.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.tags"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("vue-tags-input",{attrs:{tags:t.tags,title:t.$t("firefly.tags"),classes:"form-input","autocomplete-items":t.autocompleteItems,"add-only-from-autocomplete":!1,placeholder:t.$t("firefly.tags")},on:{"tags-changed":t.update},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearTags}},[n("i",{staticClass:"fa fa-trash-o"})])])],1)]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"4f8ece50",null);e.a=c.exports},function(t,e,n){"use strict";var a={name:"Category",props:{value:String,inputName:String,error:Array,accountName:{type:String,default:""}},data:function(){return{categoryAutoCompleteURI:null,name:null,target:null}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input,this.categoryAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/categories?search="},methods:{hasError:function(){return this.error.length>0},handleInput:function(t){"string"!=typeof this.$refs.input.value?this.$emit("input",this.$refs.input.value.name):this.$emit("input",this.$refs.input.value)},clearCategory:function(){this.name="",this.$refs.input.value="",this.$emit("input",this.$refs.input.value),this.$emit("clear:category")},selectedItem:function(t){void 0!==this.name&&(this.$emit("select:category",this.name),"string"!=typeof this.name?this.$emit("input",this.name.name):this.$emit("input",this.name))},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.category"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.$t("firefly.category"),autocomplete:"off","data-role":"input",name:"category[]",title:t.$t("firefly.category")},domProps:{value:t.value},on:{input:t.handleInput,keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.clearCategory}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.categoryAutoCompleteURI,target:t.target,"item-key":"name"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"5fd3029c",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Amount",props:["source","destination","transactionType","value","error"],data:function(){return{sourceAccount:this.source,destinationAccount:this.destination,type:this.transactionType}},methods:{handleInput:function(t){this.$emit("input",this.$refs.amount.value)},clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},changeData:function(){var t=this.transactionType;t||this.source.name||this.destination.name?(null===t&&(t=""),""!==t||""===this.source.currency_name?""!==t||""===this.destination.currency_name?"withdrawal"!==t.toLowerCase()&&"reconciliation"!==t.toLowerCase()&&"transfer"!==t.toLowerCase()?("deposit"===t.toLowerCase()&&"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()&&$(this.$refs.cur).text(this.destination.currency_name),"deposit"!==t.toLowerCase()||"debt"!==this.source.type.toLowerCase()&&"loan"!==this.source.type.toLowerCase()&&"mortgage"!==this.source.type.toLowerCase()||$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text(this.source.currency_name):$(this.$refs.cur).text(this.destination.currency_name):$(this.$refs.cur).text(this.source.currency_name)):$(this.$refs.cur).text("")}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},mounted:function(){this.changeData()}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("firefly.amount"))+"\n ")]),t._v(" "),n("label",{ref:"cur",staticClass:"col-sm-4 control-label"}),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"amount[]",title:t.$t("firefly.amount"),autocomplete:"off",placeholder:t.$t("firefly.amount")},domProps:{value:t.value},on:{input:t.handleInput}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)}),[],!1,null,"440928b9",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"ForeignAmountSelect",props:["source","destination","transactionType","value","error","no_currency","title"],mounted:function(){this.liability=!1,this.loadCurrencies()},data:function(){return{currencies:[],enabledCurrencies:[],exclude:null,liability:!1}},watch:{source:function(){this.changeData()},destination:function(){this.changeData()},transactionType:function(){this.changeData()}},methods:{clearAmount:function(){this.$refs.amount.value="",this.$emit("input",this.$refs.amount.value),this.$emit("clear:amount")},hasError:function(){return this.error.length>0},handleInput:function(t){var e={amount:this.$refs.amount.value,currency_id:this.$refs.currency_select.value};this.$emit("input",e)},changeData:function(){this.enabledCurrencies=[];var t=this.destination.type?this.destination.type.toLowerCase():"invalid",e=this.source.type?this.source.type.toLowerCase():"invalid",n=this.transactionType?this.transactionType.toLowerCase():"invalid",a=["loan","debt","mortgage"],i=-1!==a.indexOf(e),r=-1!==a.indexOf(t);if("transfer"===n||r||i)for(var o in this.liability=!0,this.currencies)this.currencies.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294&&this.currencies[o].id===this.destination.currency_id&&this.enabledCurrencies.push(this.currencies[o]);else if("withdrawal"===n&&this.source&&!1===i)for(var s in this.currencies)this.currencies.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&this.source.currency_id!==this.currencies[s].id&&this.enabledCurrencies.push(this.currencies[s]);else if("deposit"===n&&this.destination)for(var c in this.currencies)this.currencies.hasOwnProperty(c)&&/^0$|^[1-9]\d*$/.test(c)&&c<=4294967294&&this.destination.currency_id!==this.currencies[c].id&&this.enabledCurrencies.push(this.currencies[c]);else for(var u in this.currencies)this.currencies.hasOwnProperty(u)&&/^0$|^[1-9]\d*$/.test(u)&&u<=4294967294&&this.enabledCurrencies.push(this.currencies[u])},loadCurrencies:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/currencies";axios.get(e,{}).then((function(e){for(var n in t.currencies=[{name:t.no_currency,id:0,enabled:!0}],t.enabledCurrencies=[{name:t.no_currency,id:0,enabled:!0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.data[n].enabled&&(t.currencies.push(e.data[n]),t.enabledCurrencies.push(e.data[n]))}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return this.enabledCurrencies.length>=1?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-8 col-sm-offset-4 text-sm"},[t._v("\n "+t._s(t.$t("form.foreign_amount"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-4"},[n("select",{ref:"currency_select",staticClass:"form-control",attrs:{name:"foreign_currency[]"},on:{input:t.handleInput}},t._l(this.enabledCurrencies,(function(e){return e.enabled?n("option",{attrs:{label:e.name},domProps:{value:e.id,selected:t.value.currency_id===e.id}},[t._v("\n "+t._s(e.name)+"\n ")]):t._e()})),0)]),t._v(" "),n("div",{staticClass:"col-sm-8"},[n("div",{staticClass:"input-group"},[this.enabledCurrencies.length>0?n("input",{ref:"amount",staticClass:"form-control",attrs:{type:"number",step:"any",name:"foreign_amount[]",title:this.title,autocomplete:"off",placeholder:this.title},domProps:{value:t.value.amount},on:{input:t.handleInput}}):t._e(),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearAmount}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"37601284",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{source:String,destination:String,type:String},methods:{changeValue:function(){if(this.source&&this.destination){var t="";window.accountToTypes[this.source]?window.accountToTypes[this.source][this.destination]?t=window.accountToTypes[this.source][this.destination]:console.warn("User selected an impossible destination."):console.warn("User selected an impossible source."),""!==t&&(this.transactionType=t,this.sentence=this.$t("firefly.you_create_"+t.toLowerCase()),this.$emit("act:limitSourceType",this.source),this.$emit("act:limitDestinationType",this.destination))}else this.sentence="",this.transactionType="";this.$emit("set:transactionType",this.transactionType)}},data:function(){return{transactionType:this.type,sentence:""}},watch:{source:function(){this.changeValue()},destination:function(){this.changeValue()}},name:"TransactionType"},i=n(0),r=Object(i.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-12"},[""!==this.sentence?e("label",{staticClass:"control-label text-info"},[this._v("\n "+this._s(this.sentence)+"\n ")]):this._e()])])}),[],!1,null,"0539dc1a",null);e.a=r.exports},function(t,e,n){"use strict";var a={props:{inputName:String,title:String,index:Number,transactionType:String,error:Array,accountName:{type:String,default:""},accountTypeFilters:{type:Array,default:function(){return[]}},defaultAccountTypeFilters:{type:Array,default:function(){return[]}}},data:function(){return{accountAutoCompleteURI:null,name:null,trType:this.transactionType,target:null,inputDisabled:!1,allowedTypes:this.accountTypeFilters,defaultAllowedTypes:this.defaultAccountTypeFilters}},ready:function(){this.name=this.accountName},mounted:function(){this.target=this.$refs.input;var t=this.allowedTypes.join(",");this.name=this.accountName,this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search=",this.triggerTransactionType()},watch:{transactionType:function(){this.triggerTransactionType()},accountName:function(){this.name=this.accountName},accountTypeFilters:function(){var t=this.accountTypeFilters.join(",");0===this.accountTypeFilters.length&&(t=this.defaultAccountTypeFilters.join(",")),this.accountAutoCompleteURI=document.getElementsByTagName("base")[0].href+"json/accounts?types="+t+"&search="},name:function(){}},methods:{hasError:function(){return this.error.length>0},triggerTransactionType:function(){if(this.name,null!==this.transactionType&&""!==this.transactionType&&(this.inputDisabled=!1,""!==this.transactionType.toString()&&this.index>0)){if("transfer"===this.transactionType.toString().toLowerCase())return void(this.inputDisabled=!0);if("withdrawal"===this.transactionType.toString().toLowerCase()&&"source"===this.inputName.substr(0,6).toLowerCase())return void(this.inputDisabled=!0);"deposit"===this.transactionType.toString().toLowerCase()&&"destination"===this.inputName.substr(0,11).toLowerCase()&&(this.inputDisabled=!0)}},selectedItem:function(t){void 0!==this.name&&("string"==typeof this.name&&this.$emit("clear:value"),this.$emit("select:account",this.name))},clearSource:function(t){this.name="",this.$emit("clear:value")},handleEnter:function(t){t.keyCode}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[n("div",{staticClass:"input-group"},[n("input",{ref:"input",staticClass:"form-control",attrs:{type:"text",placeholder:t.title,"data-index":t.index,autocomplete:"off","data-role":"input",disabled:t.inputDisabled,name:t.inputName,title:t.title},on:{keypress:t.handleEnter,submit:function(t){t.preventDefault()}}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-default",attrs:{tabIndex:"-1",type:"button"},on:{click:t.clearSource}},[n("i",{staticClass:"fa fa-trash-o"})])])]),t._v(" "),n("typeahead",{attrs:{"open-on-empty":!0,"open-on-focus":!0,"async-src":t.accountAutoCompleteURI,target:t.target,"item-key":"name_with_balance"},on:{input:t.selectedItem},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)])}),[],!1,null,"019a1ec0",null);e.a=r.exports},function(t,e,n){"use strict";var a={name:"Budget",props:{transactionType:String,value:{type:[String,Number],default:0},error:Array,no_budget:String},mounted:function(){this.loadBudgets()},data:function(){return{selected:this.value,budgets:[]}},methods:{signalChange:function(t){this.$emit("input",this.$refs.budget.value)},handleInput:function(t){this.$emit("input",this.$refs.budget.value)},hasError:function(){return this.error.length>0},loadBudgets:function(){var t=this,e=document.getElementsByTagName("base")[0].href+"json/budgets";axios.get(e,{}).then((function(e){for(var n in t.budgets=[{name:t.no_budget,id:0}],e.data)e.data.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&t.budgets.push(e.data[n])}))}}},i=n(0),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0===this.transactionType||"withdrawal"===this.transactionType||"Withdrawal"===this.transactionType||""===this.transactionType||null===this.transactionType?n("div",{staticClass:"form-group",class:{"has-error":t.hasError()}},[n("div",{staticClass:"col-sm-12 text-sm"},[t._v("\n "+t._s(t.$t("firefly.budget"))+"\n ")]),t._v(" "),n("div",{staticClass:"col-sm-12"},[this.budgets.length>0?n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],ref:"budget",staticClass:"form-control",attrs:{name:"budget[]",title:t.$t("firefly.budget")},on:{input:t.handleInput,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.selected=e.target.multiple?n:n[0]},t.signalChange]}},t._l(this.budgets,(function(e){return n("option",{attrs:{label:e.name},domProps:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),0):t._e(),t._v(" "),1===this.budgets.length?n("p",{staticClass:"help-block",domProps:{innerHTML:t._s(t.$t("firefly.no_budget_pointer"))}}):t._e(),t._v(" "),t._l(this.error,(function(e){return n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"text-danger"},[t._v(t._s(e))])])}))],2)]):t._e()}),[],!1,null,"1e0beee7",null);e.a=r.exports},,,,,function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Jak to jde?","flash_error":"Chyba!","flash_success":"Úspěšně dokončeno!","close":"Zavřít","split_transaction_title":"Popis rozúčtování","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Rozdělit","transaction_journal_information":"Informace o transakci","no_budget_pointer":"Zdá se, že zatím nemáte žádné rozpočty. Na stránce rozpočty byste nějaké měli vytvořit. Rozpočty mohou pomoci udržet si přehled ve výdajích.","source_account":"Zdrojový účet","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Cílový účet","add_another_split":"Přidat další rozúčtování","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Odeslat","amount":"Částka","date":"Datum","tags":"Štítky","no_budget":"(žádný rozpočet)","category":"Kategorie","attachments":"Přílohy","notes":"Poznámky","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Pokud vytvoříte rozúčtování, je třeba, aby zde byl celkový popis pro všechna rozúčtování dané transakce.","none_in_select_list":"(žádné)","no_piggy_bank":"(žádná pokladnička)","description":"Popis","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Rozpočet","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Úrokové datum","book_date":"Datum rezervace","process_date":"Datum zpracování","due_date":"Datum splatnosti","foreign_amount":"Částka v cizí měně","payment_date":"Datum zaplacení","invoice_date":"Datum vystavení","internal_reference":"Interní reference"},"config":{"html_language":"cs"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Überblick","flash_error":"Fehler!","flash_success":"Geschafft!","close":"Schließen","split_transaction_title":"Beschreibung der Splittbuchung","errors_submission":"Problem bei der Übermittlung. Bitte überprüfen Sie die nachfolgenden Fehler.","split":"Teilen","transaction_journal_information":"Transaktionsinformationen","no_budget_pointer":"Sie scheinen noch keine Kostenrahmen festgelegt zu haben. Sie sollten einige davon auf der Seite „Kostenrahmen” anlegen. Kostenrahmen können Ihnen dabei helfen, den Überblick über die Ausgaben zu behalten.","source_account":"Quellkonto","hidden_fields_preferences":"Sie können weitere Buchungsoptionen in Ihren Einstellungen aktivieren.","destination_account":"Zielkonto","add_another_split":"Eine weitere Aufteilung hinzufügen","submission":"Übermittlung","create_another":"Nach dem Speichern hierher zurückkehren, um ein weiteres zu erstellen.","reset_after":"Formular nach der Übermittlung zurücksetzen","submit":"Absenden","amount":"Betrag","date":"Datum","tags":"Schlagwörter","no_budget":"(kein Budget)","category":"Kategorie","attachments":"Anhänge","notes":"Notizen","update_transaction":"Buchung aktualisieren","after_update_create_another":"Nach dem Aktualisieren hierher zurückkehren, um weiter zu bearbeiten.","store_as_new":"Als neue Buchung speichern statt zu aktualisieren.","split_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchhaltung geben.","none_in_select_list":"(Keine)","no_piggy_bank":"(kein Sparschwein)","description":"Beschreibung","split_transaction_title_help":"Wenn Sie eine Splittbuchung anlegen, muss es eine eindeutige Beschreibung für alle Aufteilungen der Buchung geben.","destination_account_reconciliation":"Sie können das Zielkonto einer Kontenausgleichsbuchung nicht bearbeiten.","source_account_reconciliation":"Sie können das Quellkonto einer Kontenausgleichsbuchung nicht bearbeiten.","budget":"Budget","you_create_withdrawal":"Sie haben eine Auszahlung erstellt.","you_create_transfer":"Sie haben eine Buchung erstellt.","you_create_deposit":"Sie haben eine Einzahlung erstellt."},"form":{"interest_date":"Zinstermin","book_date":"Buchungsdatum","process_date":"Bearbeitungsdatum","due_date":"Fälligkeitstermin","foreign_amount":"Ausländischer Betrag","payment_date":"Zahlungsdatum","invoice_date":"Rechnungsdatum","internal_reference":"Interner Verweis"},"config":{"html_language":"de"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Error!","flash_success":"Success!","close":"Close","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Split","transaction_journal_information":"Transaction information","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Add another split","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Submit","amount":"Amount","date":"Date","tags":"Tags","no_budget":"(no budget)","category":"Category","attachments":"Attachments","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Description","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Interest date","book_date":"Book date","process_date":"Processing date","due_date":"Due date","foreign_amount":"Foreign amount","payment_date":"Payment date","invoice_date":"Invoice date","internal_reference":"Internal reference"},"config":{"html_language":"en"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"¿Qué está pasando?","flash_error":"¡Error!","flash_success":"¡Operación correcta!","close":"Cerrar","split_transaction_title":"Descripción de la transacción dividida","errors_submission":"Hubo algo malo con su envío. Por favor, revise los errores de abajo.","split":"Separar","transaction_journal_information":"Información de transacción","no_budget_pointer":"Parece que aún no tiene presupuestos. Debe crear algunos en la página presupuestos. Los presupuestos pueden ayudarle a realizar un seguimiento de los gastos.","source_account":"Cuenta origen","hidden_fields_preferences":"Puede habilitar más opciones de transacción en sus ajustes .","destination_account":"Cuenta destino","add_another_split":"Añadir otra división","submission":"Envío","create_another":"Después de guardar, vuelve aquí para crear otro.","reset_after":"Restablecer formulario después del envío","submit":"Enviar","amount":"Cantidad","date":"Fecha","tags":"Etiquetas","no_budget":"(sin presupuesto)","category":"Categoria","attachments":"Archivos adjuntos","notes":"Notas","update_transaction":"Actualizar transacción","after_update_create_another":"Después de actualizar, vuelve aquí para continuar editando.","store_as_new":"Almacenar como una nueva transacción en lugar de actualizar.","split_title_help":"Si crea una transacción dividida, debe haber una descripción global para todos los fragmentos de la transacción.","none_in_select_list":"(ninguno)","no_piggy_bank":"(sin alcancía)","description":"Descripción","split_transaction_title_help":"Si crea una transacción dividida, debe existir una descripción global para todas las divisiones de la transacción.","destination_account_reconciliation":"No puede editar la cuenta de destino de una transacción de reconciliación.","source_account_reconciliation":"No puede editar la cuenta de origen de una transacción de reconciliación.","budget":"Presupuesto","you_create_withdrawal":"Está creando un retiro.","you_create_transfer":"Está creando una transferencia.","you_create_deposit":"Está creando un depósito."},"form":{"interest_date":"Fecha de interés","book_date":"Fecha de registro","process_date":"Fecha de procesamiento","due_date":"Fecha de vencimiento","foreign_amount":"Cantidad extranjera","payment_date":"Fecha de pago","invoice_date":"Fecha de la factura","internal_reference":"Referencia interna"},"config":{"html_language":"es"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Τι παίζει;","flash_error":"Σφάλμα!","flash_success":"Επιτυχία!","close":"Κλείσιμο","split_transaction_title":"Περιγραφή της συναλλαγής με διαχωρισμό","errors_submission":"Υπήρξε κάποιο λάθος με την υποβολή σας. Ελέγξτε τα παρακάτω σφάλματα.","split":"Διαχωρισμός","transaction_journal_information":"Πληροφορίες συναλλαγής","no_budget_pointer":"Φαίνεται πως δεν έχετε ορίσει προϋπολογισμούς ακόμη. Πρέπει να δημιουργήσετε κάποιον στη σελίδα προϋπολογισμών. Οι προϋπολογισμοί σας βοηθούν να επιβλέπετε τις δαπάνες σας.","source_account":"Λογαριασμός προέλευσης","hidden_fields_preferences":"Μπορείτε να ενεργοποιήσετε περισσότερες επιλογές συναλλαγών στις ρυθμίσεις.","destination_account":"Λογαριασμός προορισμού","add_another_split":"Προσθήκη ενός ακόμα διαχωρισμού","submission":"Υποβολή","create_another":"Μετά την αποθήκευση, επιστρέψτε εδώ για να δημιουργήσετε ακόμη ένα.","reset_after":"Επαναφορά φόρμας μετά την υποβολή","submit":"Υποβολή","amount":"Ποσό","date":"Ημερομηνία","tags":"Ετικέτες","no_budget":"(χωρίς προϋπολογισμό)","category":"Κατηγορία","attachments":"Συνημμένα","notes":"Σημειώσεις","update_transaction":"Ενημέρωση συναλλαγής","after_update_create_another":"Μετά την ενημέρωση, επιστρέψτε εδώ για να συνεχίσετε την επεξεργασία.","store_as_new":"Αποθήκευση ως νέα συναλλαγή αντί για ενημέρωση.","split_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","none_in_select_list":"(τίποτα)","no_piggy_bank":"(χωρίς κουμπαρά)","description":"Περιγραφή","split_transaction_title_help":"Εάν δημιουργήσετε μια διαχωρισμένη συναλλαγή, πρέπει να υπάρχει μια καθολική περιγραφή για όλους τους διαχωρισμούς της συναλλαγής.","destination_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προορισμού σε μια συναλλαγή τακτοποίησης.","source_account_reconciliation":"Δεν μπορείτε να τροποποιήσετε τον λογαριασμό προέλευσης σε μια συναλλαγή τακτοποίησης.","budget":"Προϋπολογισμός","you_create_withdrawal":"Δημιουργείτε μια ανάληψη.","you_create_transfer":"Δημιουργείτε μια μεταφορά.","you_create_deposit":"Δημιουργείτε μια κατάθεση."},"form":{"interest_date":"Ημερομηνία τοκισμού","book_date":"Ημερομηνία εγγραφής","process_date":"Ημερομηνία επεξεργασίας","due_date":"Ημερομηνία προθεσμίας","foreign_amount":"Ποσό σε ξένο νόμισμα","payment_date":"Ημερομηνία πληρωμής","invoice_date":"Ημερομηνία τιμολόγησης","internal_reference":"Εσωτερική αναφορά"},"config":{"html_language":"el"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Que se passe-t-il ?","flash_error":"Erreur !","flash_success":"Super !","close":"Fermer","split_transaction_title":"Description de l\'opération ventilée","errors_submission":"Certaines informations ne sont pas correctes dans votre formulaire. Veuillez vérifier les erreurs ci-dessous.","split":"Ventiler","transaction_journal_information":"Informations sur les opérations","no_budget_pointer":"Vous semblez n’avoir encore aucun budget. Vous devriez en créer un sur la page des budgets. Les budgets peuvent vous aider à garder une trace des dépenses.","source_account":"Compte source","hidden_fields_preferences":"Vous pouvez activer plus d\'options d\'opérations dans vos paramètres.","destination_account":"Compte de destination","add_another_split":"Ajouter une autre fraction","submission":"Soumission","create_another":"Après enregistrement, revenir ici pour en créer un nouveau.","reset_after":"Réinitialiser le formulaire après soumission","submit":"Soumettre","amount":"Montant","date":"Date","tags":"Tags","no_budget":"(pas de budget)","category":"Catégorie","attachments":"Pièces jointes","notes":"Notes","update_transaction":"Mettre à jour l\'opération","after_update_create_another":"Après la mise à jour, revenir ici pour continuer l\'édition.","store_as_new":"Enregistrer comme une nouvelle opération au lieu de mettre à jour.","split_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fractions de l\'opération.","none_in_select_list":"(aucun)","no_piggy_bank":"(aucune tirelire)","description":"Description","split_transaction_title_help":"Si vous créez une opération ventilée, il doit y avoir une description globale pour chaque fraction de l\'opération.","destination_account_reconciliation":"Vous ne pouvez pas modifier le compte de destination d\'une opération de rapprochement.","source_account_reconciliation":"Vous ne pouvez pas modifier le compte source d\'une opération de rapprochement.","budget":"Budget","you_create_withdrawal":"Vous saisissez une dépense.","you_create_transfer":"Vous saisissez un transfert.","you_create_deposit":"Vous saisissez un dépôt."},"form":{"interest_date":"Date de valeur (intérêts)","book_date":"Date de réservation","process_date":"Date de traitement","due_date":"Échéance","foreign_amount":"Montant en devise étrangère","payment_date":"Date de paiement","invoice_date":"Date de facturation","internal_reference":"Référence interne"},"config":{"html_language":"fr"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mi a helyzet?","flash_error":"Hiba!","flash_success":"Siker!","close":"Bezárás","split_transaction_title":"Felosztott tranzakció leírása","errors_submission":"Hiba történt a beküldés során. Kérem, javítsa az alábbi hibákat.","split":"Felosztás","transaction_journal_information":"Tranzakciós információk","no_budget_pointer":"Úgy tűnik, még nincsenek költségkeretek. Költségkereteket a költségkeretek oldalon lehet létrehozni. A költségkeretek segítenek nyomon követni a költségeket.","source_account":"Forrás számla","hidden_fields_preferences":"A beállításokban több tranzakciós beállítási lehetőség is megadható.","destination_account":"Célszámla","add_another_split":"Másik felosztás hozzáadása","submission":"Feliratkozás","create_another":"A tárolás után térjen vissza ide új létrehozásához.","reset_after":"Űrlap törlése a beküldés után","submit":"Beküldés","amount":"Összeg","date":"Dátum","tags":"Címkék","no_budget":"(nincs költségkeret)","category":"Kategória","attachments":"Mellékletek","notes":"Megjegyzések","update_transaction":"Tranzakció frissítése","after_update_create_another":"A frissítés után térjen vissza ide a szerkesztés folytatásához.","store_as_new":"Tárolás új tranzakcióként frissítés helyett.","split_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","none_in_select_list":"(nincs)","no_piggy_bank":"(nincs malacpersely)","description":"Leírás","split_transaction_title_help":"Felosztott tranzakció létrehozásakor meg kell adni egy globális leírást a tranzakció összes felosztása részére.","destination_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció célszámláját.","source_account_reconciliation":"Nem lehet szerkeszteni egy egyeztetett tranzakció forrásszámláját.","budget":"Költségkeret","you_create_withdrawal":"Egy költség létrehozása.","you_create_transfer":"Egy átutalás létrehozása.","you_create_deposit":"Egy bevétel létrehozása."},"form":{"interest_date":"Kamatfizetési időpont","book_date":"Könyvelés dátuma","process_date":"Feldolgozás dátuma","due_date":"Lejárati időpont","foreign_amount":"Külföldi összeg","payment_date":"Fizetés dátuma","invoice_date":"Számla dátuma","internal_reference":"Belső hivatkozás"},"config":{"html_language":"hu"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"Kesalahan!","flash_success":"Keberhasilan!","close":"Dekat","split_transaction_title":"Description of the split transaction","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Pisah","transaction_journal_information":"Informasi transaksi","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"Tambahkan perpecahan lagi","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Menyerahkan","amount":"Jumlah","date":"Tanggal","tags":"Tag","no_budget":"(no budget)","category":"Kategori","attachments":"Lampiran","notes":"Notes","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Deskripsi","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"Anggaran","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Tanggal bunga","book_date":"Tanggal buku","process_date":"Tanggal pemrosesan","due_date":"Batas tanggal terakhir","foreign_amount":"Foreign amount","payment_date":"Tanggal pembayaran","invoice_date":"Tanggal faktur","internal_reference":"Referensi internal"},"config":{"html_language":"id"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"La tua situazione finanziaria","flash_error":"Errore!","flash_success":"Successo!","close":"Chiudi","split_transaction_title":"Descrizione della transazione suddivisa","errors_submission":"Errore durante l\'invio. Controlla gli errori segnalati qui sotto.","split":"Dividi","transaction_journal_information":"Informazioni transazione","no_budget_pointer":"Sembra che tu non abbia ancora dei budget. Dovresti crearne alcuni nella pagina dei budget. I budget possono aiutarti a tenere traccia delle spese.","source_account":"Conto di origine","hidden_fields_preferences":"Puoi abilitare maggiori opzioni per le transazioni nelle tue impostazioni.","destination_account":"Conto destinazione","add_another_split":"Aggiungi un\'altra divisione","submission":"Invio","create_another":"Dopo il salvataggio, torna qui per crearne un\'altra.","reset_after":"Resetta il modulo dopo l\'invio","submit":"Invia","amount":"Importo","date":"Data","tags":"Etichette","no_budget":"(nessun budget)","category":"Categoria","attachments":"Allegati","notes":"Note","update_transaction":"Aggiorna transazione","after_update_create_another":"Dopo l\'aggiornamento, torna qui per continuare la modifica.","store_as_new":"Salva come nuova transazione invece di aggiornarla.","split_title_help":"Se crei una transazione suddivisa è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","none_in_select_list":"(nessuna)","no_piggy_bank":"(nessun salvadanaio)","description":"Descrizione","split_transaction_title_help":"Se crei una transazione suddivisa, è necessario che ci sia una descrizione globale per tutte le suddivisioni della transazione.","destination_account_reconciliation":"Non è possibile modificare il conto di destinazione di una transazione di riconciliazione.","source_account_reconciliation":"Non puoi modificare il conto di origine di una transazione di riconciliazione.","budget":"Budget","you_create_withdrawal":"Stai creando un prelievo.","you_create_transfer":"Stai creando un trasferimento.","you_create_deposit":"Stai creando un deposito."},"form":{"interest_date":"Data interesse","book_date":"Data contabile","process_date":"Data elaborazione","due_date":"Data scadenza","foreign_amount":"Importo estero","payment_date":"Data pagamento","invoice_date":"Data fatturazione","internal_reference":"Riferimento interno"},"config":{"html_language":"it"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hoe staat het er voor?","flash_error":"Fout!","flash_success":"Gelukt!","close":"Sluiten","split_transaction_title":"Beschrijving van de gesplitste transactie","errors_submission":"Er ging iets mis. Check de errors.","split":"Splitsen","transaction_journal_information":"Transactieinformatie","no_budget_pointer":"Je hebt nog geen budgetten. Maak er een aantal op de budgetten-pagina. Met budgetten kan je je uitgaven beter bijhouden.","source_account":"Bronrekening","hidden_fields_preferences":"Je kan meer transactieopties inschakelen in je instellingen.","destination_account":"Doelrekening","add_another_split":"Voeg een split toe","submission":"Indienen","create_another":"Terug naar deze pagina voor een nieuwe transactie.","reset_after":"Reset formulier na opslaan","submit":"Invoeren","amount":"Bedrag","date":"Datum","tags":"Tags","no_budget":"(geen budget)","category":"Categorie","attachments":"Bijlagen","notes":"Notities","update_transaction":"Update transactie","after_update_create_another":"Na het opslaan terug om door te gaan met wijzigen.","store_as_new":"Opslaan als nieuwe transactie ipv de huidige bij te werken.","split_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","none_in_select_list":"(geen)","no_piggy_bank":"(geen spaarpotje)","description":"Omschrijving","split_transaction_title_help":"Als je een gesplitste transactie maakt, moet er een algemene beschrijving zijn voor alle splitsingen van de transactie.","destination_account_reconciliation":"Je kan de doelrekening van een afstemming niet wijzigen.","source_account_reconciliation":"Je kan de bronrekening van een afstemming niet wijzigen.","budget":"Budget","you_create_withdrawal":"Je maakt een uitgave.","you_create_transfer":"Je maakt een overschrijving.","you_create_deposit":"Je maakt inkomsten."},"form":{"interest_date":"Rentedatum","book_date":"Boekdatum","process_date":"Verwerkingsdatum","due_date":"Vervaldatum","foreign_amount":"Bedrag in vreemde valuta","payment_date":"Betalingsdatum","invoice_date":"Factuurdatum","internal_reference":"Interne verwijzing"},"config":{"html_language":"nl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Hvordan går det?","flash_error":"Feil!","flash_success":"Suksess!","close":"Lukk","split_transaction_title":"Description of the split transaction","split":"Del opp","transaction_journal_information":"Transaksjonsinformasjon","source_account":"Source account","destination_account":"Destination account","add_another_split":"Legg til en oppdeling til","submit":"Send inn","amount":"Beløp","no_budget":"(ingen budsjett)","category":"Kategori","attachments":"Vedlegg","notes":"Notater"},"form":{"interest_date":"Rentedato","book_date":"Bokføringsdato","process_date":"Prosesseringsdato","due_date":"Forfallsdato","payment_date":"Betalingsdato","invoice_date":"Fakturadato","internal_reference":"Intern referanse"},"config":{"html_language":"no"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Co jest grane?","flash_error":"Błąd!","flash_success":"Sukces!","close":"Zamknij","split_transaction_title":"Opis podzielonej transakcji","errors_submission":"Coś poszło nie tak w czasie zapisu. Proszę sprawdź błędy poniżej.","split":"Podziel","transaction_journal_information":"Informacje o transakcji","no_budget_pointer":"Wygląda na to że nie masz jeszcze budżetów. Powinieneś utworzyć kilka na stronie budżety. Budżety mogą Ci pomóc śledzić wydatki.","source_account":"Konto źródłowe","hidden_fields_preferences":"Możesz włączyć więcej opcji transakcji w swoich ustawieniach.","destination_account":"Konto docelowe","add_another_split":"Dodaj kolejny podział","submission":"Zapisz","create_another":"Po zapisaniu wróć tutaj, aby utworzyć kolejny.","reset_after":"Wyczyść formularz po zapisaniu","submit":"Prześlij","amount":"Kwota","date":"Data","tags":"Tagi","no_budget":"(brak budżetu)","category":"Kategoria","attachments":"Załączniki","notes":"Notatki","update_transaction":"Zaktualizuj transakcję","after_update_create_another":"Po aktualizacji wróć tutaj, aby kontynuować edycję.","store_as_new":"Zapisz jako nową zamiast aktualizować.","split_title_help":"Podzielone transakcje muszą posiadać globalny opis.","none_in_select_list":"(żadne)","no_piggy_bank":"(brak skarbonki)","description":"Opis","split_transaction_title_help":"Jeśli tworzysz podzieloną transakcję, musi ona posiadać globalny opis dla wszystkich podziałów w transakcji.","destination_account_reconciliation":"Nie możesz edytować konta docelowego transakcji uzgadniania.","source_account_reconciliation":"Nie możesz edytować konta źródłowego transakcji uzgadniania.","budget":"Budżet","you_create_withdrawal":"Tworzysz wydatek.","you_create_transfer":"Tworzysz przelew.","you_create_deposit":"Tworzysz wpłatę."},"form":{"interest_date":"Data odsetek","book_date":"Data księgowania","process_date":"Data przetworzenia","due_date":"Termin realizacji","foreign_amount":"Kwota zagraniczna","payment_date":"Data płatności","invoice_date":"Data faktury","internal_reference":"Wewnętrzny numer"},"config":{"html_language":"pl"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Mitä kuuluu?","flash_error":"Virhe!","flash_success":"Valmista tuli!","close":"Sulje","split_transaction_title":"Jaetun tapahtuman kuvaus","errors_submission":"Lomakkeen tiedoissa oli puutteita - alta löydät listan puutteista.","split":"Jaa","transaction_journal_information":"Tapahtumatiedot","no_budget_pointer":"Sinulla ei näyttäisi olevan vielä yhtään budjettia. Sinun kannattaisi luoda niitä budjetit-sivulla. Budjetit voivat auttaa sinua pitämään kirjaa kuluistasi.","source_account":"Lähdetili","hidden_fields_preferences":"Voit aktivoida lisää tapahtumavalintoja asetuksissa.","destination_account":"Kohdetili","add_another_split":"Lisää tapahtumaan uusi osa","submission":"Vahvistus","create_another":"Tallennuksen jälkeen, palaa takaisin luomaan uusi tapahtuma.","reset_after":"Tyhjennä lomake lähetyksen jälkeen","submit":"Vahvista","amount":"Summa","date":"Päivämäärä","tags":"Tägit","no_budget":"(ei budjettia)","category":"Kategoria","attachments":"Liitteet","notes":"Muistiinpanot","update_transaction":"Päivitä tapahtuma","after_update_create_another":"Päivityksen jälkeen, palaa takaisin jatkamaan muokkausta.","store_as_new":"Tallenna uutena tapahtumana päivityksen sijaan.","split_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","none_in_select_list":"(ei mitään)","no_piggy_bank":"(ei säästöpossu)","description":"Kuvaus","split_transaction_title_help":"Jos luot jaetun tapahtuman, kokonaisuudelle tarvitaan nimi.","destination_account_reconciliation":"Et voi muokata täsmäytystapahtuman kohdetiliä.","source_account_reconciliation":"Et voi muokata täsmäytystapahtuman lähdetiliä.","budget":"Budjetti","you_create_withdrawal":"Olet luomassa nostoa.","you_create_transfer":"Olet luomassa siirtoa.","you_create_deposit":"Olet luomassa talletusta."},"form":{"interest_date":"Korkopäivä","book_date":"Kirjauspäivä","process_date":"Käsittelypäivä","due_date":"Eräpäivä","foreign_amount":"Ulkomaan summa","payment_date":"Maksupäivä","invoice_date":"Laskun päivämäärä","internal_reference":"Sisäinen viite"},"config":{"html_language":"fi"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"O que está acontecendo?","flash_error":"Erro!","flash_success":"Sucesso!","close":"Fechar","split_transaction_title":"Descrição da transação dividida","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"Dividir","transaction_journal_information":"Informação da transação","no_budget_pointer":"Parece que você ainda não tem orçamentos. Você deve criar alguns na página de orçamentos. Orçamentos podem ajudá-lo a manter o controle das despesas.","source_account":"Conta origem","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Conta destino","add_another_split":"Adicionar outra divisão","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"Enviar","amount":"Valor","date":"Data","tags":"Tags","no_budget":"(sem orçamento)","category":"Categoria","attachments":"Anexos","notes":"Notas","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"Se você criar uma transação dividida, é necessário haver uma descrição global para todas as partes da transação.","none_in_select_list":"(nenhum)","no_piggy_bank":"(nenhum cofrinho)","description":"Descrição","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","source_account_reconciliation":"Você não pode editar a conta de origem de uma transação de reconciliação.","budget":"Orçamento","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interesse","book_date":"Data reserva","process_date":"Data de processamento","due_date":"Data de vencimento","foreign_amount":"Montante em moeda estrangeira","payment_date":"Data de pagamento","invoice_date":"Data da Fatura","internal_reference":"Referência interna"},"config":{"html_language":"pt-br"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Ce se redă?","flash_error":"Eroare!","flash_success":"Succes!","close":"Închide","split_transaction_title":"Descrierea tranzacției divizate","errors_submission":"A fost ceva în neregulă cu transmiterea dvs. Vă rugăm să consultați erorile de mai jos.","split":"Împarte","transaction_journal_information":"Informații despre tranzacții","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Contul sursă","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Contul de destinație","add_another_split":"Adăugați o divizare","submission":"Transmitere","create_another":"După stocare, reveniți aici pentru a crea alta.","reset_after":"Resetați formularul după trimitere","submit":"Trimite","amount":"Sumă","date":"Dată","tags":"Etichete","no_budget":"(nici un buget)","category":"Categorie","attachments":"Atașamente","notes":"Notițe","update_transaction":"Actualizați tranzacția","after_update_create_another":"După actualizare, reveniți aici pentru a continua editarea.","store_as_new":"Stocați ca o tranzacție nouă în loc să actualizați.","split_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","none_in_select_list":"(nici unul)","no_piggy_bank":"(nicio pușculiță)","description":"Descriere","split_transaction_title_help":"Dacă creați o tranzacție divizată, trebuie să existe o descriere globală pentru toate diviziunile tranzacției.","destination_account_reconciliation":"Nu puteți edita contul de destinație al unei tranzacții de reconciliere.","source_account_reconciliation":"Nu puteți edita contul sursă al unei tranzacții de reconciliere.","budget":"Buget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Data de interes","book_date":"Rezervă dată","process_date":"Data procesării","due_date":"Data scadentă","foreign_amount":"Sumă străină","payment_date":"Data de plată","invoice_date":"Data facturii","internal_reference":"Referință internă"},"config":{"html_language":"ro"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Что происходит с моими финансами?","flash_error":"Ошибка!","flash_success":"Успешно!","close":"Закрыть","split_transaction_title":"Описание разделённой транзакции","errors_submission":"При отправке произошла ошибка. Пожалуйста, проверьте ошибки ниже.","split":"Разделить","transaction_journal_information":"Информация о транзакции","no_budget_pointer":"Похоже, у вас пока нет бюджетов. Вы должны создать их в разделе Бюджеты. Бюджеты могут помочь вам отслеживать расходы.","source_account":"Счёт-источник","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Счёт назначения","add_another_split":"Добавить новую часть","submission":"Отправить","create_another":"После сохранения вернуться сюда и создать ещё одну аналогичную запись.","reset_after":"Сбросить форму после отправки","submit":"Подтвердить","amount":"Сумма","date":"Дата","tags":"Метки","no_budget":"(вне бюджета)","category":"Категория","attachments":"Вложения","notes":"Заметки","update_transaction":"Обновить транзакцию","after_update_create_another":"После обновления вернитесь сюда, чтобы продолжить редактирование.","store_as_new":"Сохранить как новую транзакцию вместо обновления.","split_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание дле всех её составляющих.","none_in_select_list":"(нет)","no_piggy_bank":"(нет копилки)","description":"Описание","split_transaction_title_help":"Если вы создаёте разделённую транзакцию, то должны указать общее описание для всех её составляющих.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"Вы не можете редактировать исходный аккаунт сверки.","budget":"Бюджет","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Дата выплаты","book_date":"Дата бронирования","process_date":"Дата обработки","due_date":"Срок","foreign_amount":"Сумма в иностранной валюте","payment_date":"Дата платежа","invoice_date":"Дата выставления счёта","internal_reference":"Внутренняя ссылка"},"config":{"html_language":"ru"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"吃饱没?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","split":"分割","transaction_journal_information":"交易资讯","source_account":"来源帐户","destination_account":"目标帐户","add_another_split":"增加拆分","submit":"送出","amount":"金额","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"What\'s playing?","flash_error":"錯誤!","flash_success":"成功!","close":"關閉","split_transaction_title":"拆分交易的描述","errors_submission":"There was something wrong with your submission. Please check out the errors below.","split":"分割","transaction_journal_information":"交易資訊","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Source account","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Destination account","add_another_split":"增加拆分","submission":"Submission","create_another":"After storing, return here to create another one.","reset_after":"Reset form after submission","submit":"送出","amount":"金額","date":"日期","tags":"標籤","no_budget":"(無預算)","category":"分類","attachments":"附加檔案","notes":"備註","update_transaction":"Update transaction","after_update_create_another":"After updating, return here to continue editing.","store_as_new":"Store as a new transaction instead of updating.","split_title_help":"若您建立一筆拆分交易,須有一個有關交易所有拆分的整體描述。","none_in_select_list":"(空)","no_piggy_bank":"(no piggy bank)","description":"描述","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"You can\'t edit the destination account of a reconciliation transaction.","source_account_reconciliation":"You can\'t edit the source account of a reconciliation transaction.","budget":"預算","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"利率日期","book_date":"登記日期","process_date":"處理日期","due_date":"到期日","foreign_amount":"外幣金額","payment_date":"付款日期","invoice_date":"發票日期","internal_reference":"內部參考"},"config":{"html_language":"zh-tw"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"今天理财了吗?","flash_error":"错误!","flash_success":"成功!","close":"关闭","split_transaction_title":"拆分交易的描述","errors_submission":"您的提交有误,请查看下面输出的错误信息。","split":"分割","transaction_journal_information":"交易资讯","no_budget_pointer":"您似乎还没有任何预算。您应该在 预算页面上创建他们。预算可以帮助您跟踪费用。","source_account":"来源帐户","hidden_fields_preferences":"您可以在 设置中启用更多的交易选项。","destination_account":"目标帐户","add_another_split":"增加拆分","submission":"提交","create_another":"保存后,返回此页面创建另一笔记录。","reset_after":"提交后重置表单","submit":"提交","amount":"金额","date":"日期","tags":"标签","no_budget":"(无预算)","category":"分类","attachments":"附加档案","notes":"注释","update_transaction":"更新交易","after_update_create_another":"更新后,返回此页面继续编辑。","store_as_new":"保存为新交易而不是更新此交易。","split_title_help":"如果您创建一个拆分交易,必须有一个全局的交易描述。","none_in_select_list":"(空)","no_piggy_bank":"(无存钱罐)","description":"描述","split_transaction_title_help":"如果您创建了一个分割交易,交易的所有分割项都必须有全局描述。","destination_account_reconciliation":"您不能编辑对账交易的目标账户","source_account_reconciliation":"您不能编辑对账交易的源账户","budget":"预算","you_create_withdrawal":"您正在创建一个提款","you_create_transfer":"您正在创建一个转账","you_create_deposit":"您正在创建一个存款"},"form":{"interest_date":"利率日期","book_date":"登记日期","process_date":"处理日期","due_date":"到期日","foreign_amount":"外币金额","payment_date":"付款日期","invoice_date":"发票日期","internal_reference":"内部参考"},"config":{"html_language":"zh-cn"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Vad spelas?","flash_error":"Fel!","flash_success":"Slutförd!","close":"Stäng","split_transaction_title":"Description of the split transaction","errors_submission":"Något fel uppstod med inskickningen. Vänligen kontrollera felen nedan.","split":"Dela","transaction_journal_information":"Transaktionsinformation","no_budget_pointer":"You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.","source_account":"Från konto","hidden_fields_preferences":"You can enable more transaction options in your settings.","destination_account":"Till konto","add_another_split":"Lägga till en annan delning","submission":"Inskickning","create_another":"Efter sparat, återkom hit för att skapa ytterligare en.","reset_after":"Återställ formulär efter inskickat","submit":"Skicka","amount":"Belopp","date":"Datum","tags":"Etiketter","no_budget":"(ingen budget)","category":"Kategori","attachments":"Bilagor","notes":"Noteringar","update_transaction":"Uppdatera transaktion","after_update_create_another":"Efter uppdaterat, återkom hit för att fortsätta redigera.","store_as_new":"Spara en ny transaktion istället för att uppdatera.","split_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","none_in_select_list":"(Ingen)","no_piggy_bank":"(ingen spargris)","description":"Beskrivning","split_transaction_title_help":"If you create a split transaction, there must be a global description for all splits of the transaction.","destination_account_reconciliation":"Du kan inte redigera destinationskontot för en avstämningstransaktion.","source_account_reconciliation":"Du kan inte redigera källkontot för en avstämningstransaktion.","budget":"Budget","you_create_withdrawal":"You\'re creating a withdrawal.","you_create_transfer":"You\'re creating a transfer.","you_create_deposit":"You\'re creating a deposit."},"form":{"interest_date":"Räntedatum","book_date":"Bokföringsdatum","process_date":"Behandlingsdatum","due_date":"Förfallodatum","foreign_amount":"Utländskt belopp","payment_date":"Betalningsdatum","invoice_date":"Fakturadatum","internal_reference":"Intern referens"},"config":{"html_language":"sv"}}')},function(t){t.exports=JSON.parse('{"firefly":{"welcome_back":"Chào mừng trở lại","flash_error":"Lỗi!","flash_success":"Thành công!","close":"Đóng","split_transaction_title":"Mô tả giao dịch tách","errors_submission":"Có gì đó sai. Vui lòng kiểm tra các lỗi dưới đây.","split":"Chia ra","transaction_journal_information":"Thông tin giao dịch","no_budget_pointer":"Bạn dường như chưa có ngân sách. Bạn nên tạo một cái trên budgets-page. Ngân sách có thể giúp bạn theo dõi chi phí.","source_account":"Nguồn tài khoản","hidden_fields_preferences":"Bạn có thể kích hoạt thêm tùy chọn giao dịch trong settings.","destination_account":"Tài khoản đích","add_another_split":"Thêm một phân chia khác","submission":"Gửi","create_another":"Sau khi lưu trữ, quay trở lại đây để tạo một cái khác.","reset_after":"Đặt lại mẫu sau khi gửi","submit":"Gửi","amount":"Số tiền","date":"Ngày","tags":"Thẻ","no_budget":"(không có ngân sách)","category":"Dan hmucj","attachments":"Tệp đính kèm","notes":"Ghi chú","update_transaction":"Cập nhật giao dịch","after_update_create_another":"Sau khi cập nhật, quay lại đây để tiếp tục chỉnh sửa.","store_as_new":"Lưu trữ như một giao dịch mới thay vì cập nhật.","split_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","none_in_select_list":"(none)","no_piggy_bank":"(no piggy bank)","description":"Sự miêu tả","split_transaction_title_help":"Nếu bạn tạo một giao dịch phân tách, phải có một mô tả toàn cầu cho tất cả các phân chia của giao dịch.","destination_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản đích của giao dịch đối chiếu.","source_account_reconciliation":"Bạn không thể chỉnh sửa tài khoản nguồn của giao dịch đối chiếu.","budget":"Ngân sách","you_create_withdrawal":"Bạn đang tạo một rút tiền.","you_create_transfer":"Bạn đang tạo một chuyển khoản.","you_create_deposit":"Bạn đang tạo một tiền gửi."},"form":{"interest_date":"Ngày lãi","book_date":"Ngày đặt sách","process_date":"Ngày xử lý","due_date":"Ngày đáo hạn","foreign_amount":"Ngoại tệ","payment_date":"Ngày thanh toán","invoice_date":"Ngày hóa đơn","internal_reference":"Tài liệu tham khảo nội bộ"},"config":{"html_language":"vi"}}')},,,,,,,,,,,,function(t,e,n){t.exports=n(93)},,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var a=n(30),i={name:"EditTransaction",props:{groupId:Number},mounted:function(){this.getGroup()},ready:function(){},methods:{positiveAmount:function(t){return t<0?-1*t:t},roundNumber:function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},selectedSourceAccount:function(t,e){if("string"==typeof e)return this.transactions[t].source_account.id=null,void(this.transactions[t].source_account.name=e);this.transactions[t].source_account={id:e.id,name:e.name,type:e.type,currency_id:e.currency_id,currency_name:e.currency_name,currency_code:e.currency_code,currency_decimal_places:e.currency_decimal_places,allowed_types:this.transactions[t].source_account.allowed_types}},selectedDestinationAccount:function(t,e){if("string"==typeof e)return this.transactions[t].destination_account.id=null,void(this.transactions[t].destination_account.name=e);this.transactions[t].destination_account={id:e.id,name:e.name,type:e.type,currency_id:e.currency_id,currency_name:e.currency_name,currency_code:e.currency_code,currency_decimal_places:e.currency_decimal_places,allowed_types:this.transactions[t].destination_account.allowed_types}},clearSource:function(t){this.transactions[t].source_account={id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:this.transactions[t].source_account.allowed_types},this.transactions[t].destination_account&&this.selectedDestinationAccount(t,this.transactions[t].destination_account)},setTransactionType:function(t){null!==t&&(this.transactionType=t)},deleteTransaction:function(t,e){for(var n in e.preventDefault(),this.transactions)this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n);for(var a in this.transactions.splice(t,1),this.transactions)this.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)},clearDestination:function(t){this.transactions[t].destination_account={id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:this.transactions[t].destination_account.allowed_types},this.transactions[t].source_account&&this.selectedSourceAccount(t,this.transactions[t].source_account)},getGroup:function(){var t=this,e=window.location.href.split("/"),n="./api/v1/transactions/"+e[e.length-1]+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content;axios.get(n).then((function(e){t.processIncomingGroup(e.data.data)})).catch((function(t){}))},processIncomingGroup:function(t){this.group_title=t.attributes.group_title;var e=t.attributes.transactions.reverse();for(var n in e)if(e.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var a=e[n];this.processIncomingGroupRow(a)}},processIncomingGroupRow:function(t){this.setTransactionType(t.type);var e=[];for(var n in t.tags)t.tags.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294&&e.push({text:t.tags[n],tiClasses:[]});this.transactions.push({transaction_journal_id:t.transaction_journal_id,description:t.description,date:t.date.substr(0,10),amount:this.roundNumber(this.positiveAmount(t.amount),t.currency_decimal_places),category:t.category_name,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:t.budget_id,tags:e,custom_fields:{interest_date:t.interest_date,book_date:t.book_date,process_date:t.process_date,due_date:t.due_date,payment_date:t.payment_date,invoice_date:t.invoice_date,internal_reference:t.internal_reference,notes:t.notes},foreign_amount:{amount:this.roundNumber(this.positiveAmount(t.foreign_amount),t.foreign_currency_decimal_places),currency_id:t.foreign_currency_id},source_account:{id:t.source_id,name:t.source_name,type:t.source_type,currency_id:t.currency_id,currency_name:t.currency_name,currency_code:t.currency_code,currency_decimal_places:t.currency_decimal_places,allowed_types:[t.source_type]},destination_account:{id:t.destination_id,name:t.destination_name,type:t.destination_type,currency_id:t.currency_id,currency_name:t.currency_name,currency_code:t.currency_code,currency_decimal_places:t.currency_decimal_places,allowed_types:[t.destination_type]}})},convertData:function(){var t,e,n,a={transactions:[]};for(var i in this.transactions.length>1&&(a.group_title=this.group_title),t=this.transactionType?this.transactionType.toLowerCase():"invalid",e=this.transactions[0].source_account.type,n=this.transactions[0].destination_account.type,"invalid"===t&&["Asset account","Loan","Debt","Mortgage"].includes(e)&&(t="withdrawal"),"invalid"===t&&["Asset account","Loan","Debt","Mortgage"].includes(n)&&(t="deposit"),this.transactions)this.transactions.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&a.transactions.push(this.convertDataRow(this.transactions[i],i,t));return a},convertDataRow:function(t,e,n){var a,i,r,o,s,c,u=[],l=null,A=null;for(var d in i=t.source_account.id,r=t.source_account.name,o=t.destination_account.id,s=t.destination_account.name,c=t.date,e>0&&(c=this.transactions[0].date),"withdrawal"===n&&""===s&&(o=window.cashAccountId),"deposit"===n&&""===r&&(i=window.cashAccountId),e>0&&("withdrawal"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(i=this.transactions[0].source_account.id,r=this.transactions[0].source_account.name),e>0&&("deposit"===n.toLowerCase()||"transfer"===n.toLowerCase())&&(o=this.transactions[0].destination_account.id,s=this.transactions[0].destination_account.name),u=[],l=null,A=null,t.tags)t.tags.hasOwnProperty(d)&&/^0$|^[1-9]\d*$/.test(d)&&d<=4294967294&&u.push(t.tags[d].text);return""!==t.foreign_amount.amount&&0!==parseFloat(t.foreign_amount.amount)&&(l=t.foreign_amount.amount,A=t.foreign_amount.currency_id),A===t.currency_id&&(l=null,A=null),0===o&&(o=null),0===i&&(i=null),1===(String(t.amount).match(/\,/g)||[]).length&&(t.amount=String(t.amount).replace(",",".")),a={transaction_journal_id:t.transaction_journal_id,type:n,date:c,amount:t.amount,currency_id:t.currency_id,description:t.description,source_id:i,source_name:r,destination_id:o,destination_name:s,category_name:t.category,interest_date:t.custom_fields.interest_date,book_date:t.custom_fields.book_date,process_date:t.custom_fields.process_date,due_date:t.custom_fields.due_date,payment_date:t.custom_fields.payment_date,invoice_date:t.custom_fields.invoice_date,internal_reference:t.custom_fields.internal_reference,notes:t.custom_fields.notes,tags:u},null!==l&&(a.foreign_amount=l,a.foreign_currency_id=A),a.budget_id=parseInt(t.budget),parseInt(t.piggy_bank)>0&&(a.piggy_bank_id=parseInt(t.piggy_bank)),a},submit:function(t){var e=this,n=window.location.href.split("/"),a="./api/v1/transactions/"+n[n.length-1]+"?_token="+document.head.querySelector('meta[name="csrf-token"]').content,i="PUT";this.storeAsNew&&(a="./api/v1/transactions?_token="+document.head.querySelector('meta[name="csrf-token"]').content,i="POST");var r=this.convertData(),o=$("#submitButton");o.prop("disabled",!0),axios({method:i,url:a,data:r}).then((function(t){0===e.collectAttachmentData(t)&&e.redirectUser(t.data.data.id)})).catch((function(t){e.parseErrors(t.response.data)})),t&&t.preventDefault(),o.removeAttr("disabled")},redirectUser:function(t){this.returnAfter?(this.setDefaultErrors(),this.storeAsNew?(this.success_message='Transaction #'+t+" has been created.",this.error_message=""):(this.success_message='The transaction has been updated.',this.error_message="")):this.storeAsNew?window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=created":window.location.href=window.previousUri+"?transaction_group_id="+t+"&message=updated"},collectAttachmentData:function(t){var e=this,n=t.data.data.id,a=[],i=[],r=$('input[name="attachments[]"]');for(var o in r)if(r.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294)for(var s in r[o].files)if(r[o].files.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294){var c=t.data.data.attributes.transactions.reverse();a.push({journal:c[o].transaction_journal_id,file:r[o].files[s]})}var u=a.length,l=function(t){var r,o,s;a.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(r=a[t],o=e,(s=new FileReader).onloadend=function(e){e.target.readyState===FileReader.DONE&&(i.push({name:a[t].file.name,journal:a[t].journal,content:new Blob([e.target.result])}),i.length===u&&o.uploadFiles(i,n))},s.readAsArrayBuffer(r.file))};for(var A in a)l(A);return u},uploadFiles:function(t,e){var n=this,a=t.length,i=0,r=function(r){if(t.hasOwnProperty(r)&&/^0$|^[1-9]\d*$/.test(r)&&r<=4294967294){var o={filename:t[r].name,attachable_type:"TransactionJournal",attachable_id:t[r].journal};axios.post("./api/v1/attachments",o).then((function(o){var s="./api/v1/attachments/"+o.data.data.id+"/upload";axios.post(s,t[r].content).then((function(t){return++i===a&&n.redirectUser(e,null),!0})).catch((function(t){return console.error("Could not upload file."),console.error(t),i++,n.error_message="Could not upload attachment: "+t,i===a&&n.redirectUser(e,null),!1}))})).catch((function(t){return console.error("Could not create upload."),console.error(t),++i===a&&n.redirectUser(e,null),!1}))}};for(var o in t)r(o)},addTransaction:function(t){this.transactions.push({transaction_journal_id:0,description:"",date:"",amount:"",category:"",piggy_bank:0,errors:{source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}},budget:0,tags:[],custom_fields:{interest_date:"",book_date:"",process_date:"",due_date:"",payment_date:"",invoice_date:"",internal_reference:"",notes:"",attachments:[]},foreign_amount:{amount:"",currency_id:0},source_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:[]},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2,allowed_types:[]}}),t&&t.preventDefault()},parseErrors:function(t){var e,n;for(var a in this.setDefaultErrors(),this.error_message="",t.message.length>0?this.error_message=this.$t("firefly.errors_submission"):this.error_message="",t.errors)if(t.errors.hasOwnProperty(a)&&("group_title"===a&&(this.group_title_errors=t.errors[a]),"group_title"!==a)){switch(e=parseInt(a.split(".")[1]),n=a.split(".")[2]){case"amount":case"date":case"budget_id":case"description":case"tags":this.transactions[e].errors[n]=t.errors[a];break;case"source_name":case"source_id":this.transactions[e].errors.source_account=this.transactions[e].errors.source_account.concat(t.errors[a]);break;case"destination_name":case"destination_id":this.transactions[e].errors.destination_account=this.transactions[e].errors.destination_account.concat(t.errors[a]);break;case"foreign_amount":case"foreign_currency_id":this.transactions[e].errors.foreign_amount=this.transactions[e].errors.foreign_amount.concat(t.errors[a])}this.transactions[e].errors.source_account=Array.from(new Set(this.transactions[e].errors.source_account)),this.transactions[e].errors.destination_account=Array.from(new Set(this.transactions[e].errors.destination_account))}},setDefaultErrors:function(){for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&(this.transactions[t].errors={source_account:[],destination_account:[],description:[],amount:[],date:[],budget_id:[],foreign_amount:[],category:[],piggy_bank:[],tags:[],custom_errors:{interest_date:[],book_date:[],process_date:[],due_date:[],payment_date:[],invoice_date:[],internal_reference:[],notes:[],attachments:[]}})}},data:function(){return{group:this.groupId,error_message:"",success_message:"",transactions:[],group_title:"",returnAfter:!1,storeAsNew:!1,transactionType:null,group_title_errors:[],resetButtonDisabled:!0}}},r=n(0),o=Object(r.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"form-horizontal",attrs:{method:"POST",action:"#","accept-charset":"UTF-8",id:"store",enctype:"multipart/form-data"}},[n("input",{attrs:{name:"_token",type:"hidden",value:"xxx"}}),t._v(" "),""!==t.error_message?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"alert alert-danger alert-dismissible",attrs:{role:"alert"}},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":t.$t("firefly.close")}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),n("strong",[t._v(t._s(t.$t("firefly.flash_error")))]),t._v(" "+t._s(t.error_message)+"\n ")])])]):t._e(),t._v(" "),""!==t.success_message?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"alert alert-success alert-dismissible",attrs:{role:"alert"}},[n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":t.$t("firefly.close")}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),n("strong",[t._v(t._s(t.$t("firefly.flash_success")))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.success_message)}})])])]):t._e(),t._v(" "),n("div",t._l(t.transactions,(function(e,a){return n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title splitTitle"},[t.transactions.length>1?n("span",[t._v(t._s(t.$t("firefly.split"))+" "+t._s(a+1)+" / "+t._s(t.transactions.length))]):t._e(),t._v(" "),1===t.transactions.length?n("span",[t._v(t._s(t.$t("firefly.transaction_journal_information")))]):t._e()]),t._v(" "),t.transactions.length>1?n("div",{staticClass:"box-tools pull-right",attrs:{x:""}},[n("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteTransaction(a,e)}}},[n("i",{staticClass:"fa fa-trash"})])]):t._e()]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-4"},["reconciliation"!==t.transactionType.toLowerCase()?n("transaction-description",{attrs:{index:a,error:e.errors.description},model:{value:e.description,callback:function(n){t.$set(e,"description",n)},expression:"transaction.description"}}):t._e(),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("account-select",{attrs:{inputName:"source[]",title:t.$t("firefly.source_account"),accountName:e.source_account.name,accountTypeFilters:e.source_account.allowed_types,transactionType:t.transactionType,index:a,error:e.errors.source_account},on:{"clear:value":function(e){return t.clearSource(a)},"select:account":function(e){return t.selectedSourceAccount(a,e)}}}):t._e(),t._v(" "),"reconciliation"===t.transactionType.toLowerCase()?n("div",{staticClass:"form-group"},[n("div",{staticClass:"col-sm-12"},[n("p",{staticClass:"form-control-static",attrs:{id:"ffInput_source"}},[n("em",[t._v("\n "+t._s(t.$t("firefly.source_account_reconciliation"))+"\n ")])])])]):t._e(),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("account-select",{attrs:{inputName:"destination[]",title:t.$t("firefly.destination_account"),accountName:e.destination_account.name,accountTypeFilters:e.destination_account.allowed_types,transactionType:t.transactionType,index:a,error:e.errors.destination_account},on:{"clear:value":function(e){return t.clearDestination(a)},"select:account":function(e){return t.selectedDestinationAccount(a,e)}}}):t._e(),t._v(" "),"reconciliation"===t.transactionType.toLowerCase()?n("div",{staticClass:"form-group"},[n("div",{staticClass:"col-sm-12"},[n("p",{staticClass:"form-control-static",attrs:{id:"ffInput_dest"}},[n("em",[t._v("\n "+t._s(t.$t("firefly.destination_account_reconciliation"))+"\n ")])])])]):t._e(),t._v(" "),n("standard-date",{attrs:{index:a,error:e.errors.date},model:{value:e.date,callback:function(n){t.$set(e,"date",n)},expression:"transaction.date"}}),t._v(" "),0===a?n("div",[n("transaction-type",{attrs:{source:e.source_account.type,destination:e.destination_account.type},on:{"set:transactionType":function(e){return t.setTransactionType(e)},"act:limitSourceType":function(e){return t.limitSourceType(e)},"act:limitDestinationType":function(e){return t.limitDestinationType(e)}}})],1):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("amount",{attrs:{source:e.source_account,destination:e.destination_account,error:e.errors.amount,transactionType:t.transactionType},model:{value:e.amount,callback:function(n){t.$set(e,"amount",n)},expression:"transaction.amount"}}),t._v(" "),"reconciliation"!==t.transactionType.toLowerCase()?n("foreign-amount",{attrs:{source:e.source_account,destination:e.destination_account,transactionType:t.transactionType,error:e.errors.foreign_amount,no_currency:t.$t("firefly.none_in_select_list"),title:t.$t("form.foreign_amount")},model:{value:e.foreign_amount,callback:function(n){t.$set(e,"foreign_amount",n)},expression:"transaction.foreign_amount"}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-lg-4"},[n("budget",{attrs:{transactionType:t.transactionType,error:e.errors.budget_id,no_budget:t.$t("firefly.none_in_select_list")},model:{value:e.budget,callback:function(n){t.$set(e,"budget",n)},expression:"transaction.budget"}}),t._v(" "),n("category",{attrs:{transactionType:t.transactionType,error:e.errors.category},model:{value:e.category,callback:function(n){t.$set(e,"category",n)},expression:"transaction.category"}}),t._v(" "),n("tags",{attrs:{transactionType:t.transactionType,tags:e.tags,error:e.errors.tags},model:{value:e.tags,callback:function(n){t.$set(e,"tags",n)},expression:"transaction.tags"}}),t._v(" "),n("custom-transaction-fields",{attrs:{error:e.errors.custom_errors},model:{value:e.custom_fields,callback:function(n){t.$set(e,"custom_fields",n)},expression:"transaction.custom_fields"}})],1)])]),t._v(" "),t.transactions.length-1===a&&"reconciliation"!==t.transactionType.toLowerCase()?n("div",{staticClass:"box-footer"},[n("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.addTransaction}},[t._v(t._s(t.$t("firefly.add_another_split")))])]):t._e()])])])})),0),t._v(" "),t.transactions.length>1?n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.split_transaction_title"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("group-description",{attrs:{error:t.group_title_errors},model:{value:t.group_title,callback:function(e){t.group_title=e},expression:"group_title"}})],1)])])]):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-6 col-sm-12 col-xs-12"},[n("div",{staticClass:"box"},[n("div",{staticClass:"box-header with-border"},[n("h3",{staticClass:"box-title"},[t._v("\n "+t._s(t.$t("firefly.submission"))+"\n ")])]),t._v(" "),n("div",{staticClass:"box-body"},[n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.returnAfter,expression:"returnAfter"}],attrs:{name:"return_after",type:"checkbox"},domProps:{checked:Array.isArray(t.returnAfter)?t._i(t.returnAfter,null)>-1:t.returnAfter},on:{change:function(e){var n=t.returnAfter,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.returnAfter=n.concat([null])):r>-1&&(t.returnAfter=n.slice(0,r).concat(n.slice(r+1)))}else t.returnAfter=i}}}),t._v("\n "+t._s(t.$t("firefly.after_update_create_another"))+"\n ")])]),t._v(" "),null!==t.transactionType&&"reconciliation"!==t.transactionType.toLowerCase()?n("div",{staticClass:"checkbox"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeAsNew,expression:"storeAsNew"}],attrs:{name:"store_as_new",type:"checkbox"},domProps:{checked:Array.isArray(t.storeAsNew)?t._i(t.storeAsNew,null)>-1:t.storeAsNew},on:{change:function(e){var n=t.storeAsNew,a=e.target,i=!!a.checked;if(Array.isArray(n)){var r=t._i(n,null);a.checked?r<0&&(t.storeAsNew=n.concat([null])):r>-1&&(t.storeAsNew=n.slice(0,r).concat(n.slice(r+1)))}else t.storeAsNew=i}}}),t._v("\n "+t._s(t.$t("firefly.store_as_new"))+"\n ")])]):t._e()]),t._v(" "),n("div",{staticClass:"box-footer"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-success",on:{click:t.submit}},[t._v(t._s(t.$t("firefly.update_transaction")))])])])])])])])}),[],!1,null,"8b500c5a",null).exports,s=n(31),c=n(32),u=n(33),l=n(34),A=n(35),d=n(36),p=n(37),f=n(38),_=n(39),h=n(40),g=n(41),m=n(42),v=n(43),y=n(44),b=n(45);n(28),Vue.component("budget",b.a),Vue.component("custom-date",s.a),Vue.component("custom-string",c.a),Vue.component("custom-attachments",a.a),Vue.component("custom-textarea",u.a),Vue.component("standard-date",l.a),Vue.component("group-description",A.a),Vue.component("transaction-description",d.a),Vue.component("custom-transaction-fields",p.a),Vue.component("piggy-bank",f.a),Vue.component("tags",_.a),Vue.component("category",h.a),Vue.component("amount",g.a),Vue.component("foreign-amount",m.a),Vue.component("transaction-type",v.a),Vue.component("account-select",y.a),Vue.component("edit-transaction",o);var C=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{cs:n(50),de:n(51),en:n(52),es:n(53),el:n(54),fr:n(55),hu:n(56),id:n(57),it:n(58),nl:n(59),no:n(60),pl:n(61),fi:n(62),"pt-br":n(63),ro:n(64),ru:n(65),zh:n(66),"zh-tw":n(67),"zh-cn":n(68),sv:n(69),vi:n(70)}}),w={};new Vue({i18n:C,el:"#edit_transaction",render:function(t){return t(o,{props:w})}})}]); \ No newline at end of file diff --git a/resources/assets/js/components/transactions/CreateTransaction.vue b/resources/assets/js/components/transactions/CreateTransaction.vue index 778a4ad733..64c819195f 100644 --- a/resources/assets/js/components/transactions/CreateTransaction.vue +++ b/resources/assets/js/components/transactions/CreateTransaction.vue @@ -598,7 +598,18 @@ // console.log('Upload complete!'); return false; }); - }); + }).catch(error => { + console.error('Could not create upload.'); + console.error(error); + uploads++; + if (uploads === count) { + // finally we can redirect the user onwards. + // console.log('FINAL UPLOAD'); + this.redirectUser(groupId, transactionData); + } + // console.log('Upload complete!'); + return false; + }); } } diff --git a/resources/assets/js/components/transactions/EditTransaction.vue b/resources/assets/js/components/transactions/EditTransaction.vue index 7ad6d93e3e..3dfddc24d4 100644 --- a/resources/assets/js/components/transactions/EditTransaction.vue +++ b/resources/assets/js/components/transactions/EditTransaction.vue @@ -773,7 +773,18 @@ // console.error(error); return false; }); - }); + }).catch(error => { + console.error('Could not create upload.'); + console.error(error); + uploads++; + if (uploads === count) { + // finally we can redirect the user onwards. + // console.log('FINAL UPLOAD'); + this.redirectUser(groupId, null); + } + // console.log('Upload complete!'); + return false; + }); } }