Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Will make submit form possible.
James Cole91183a91b6e1
diff --git a/public/v1/js/app.js b/public/v1/js/app.jsindex 02db04be3c..0b128eb9df 100644--- a/public/v1/js/app.js+++ b/public/v1/js/app.js@@ -12509,26 +12509,26 @@ Vue.use(__WEBPACK_IMPORTED_MODULE_0_uiv__);Vue.component('budget', __webpack_require__(42));Vue.component('custom-date', __webpack_require__(48));-Vue.component('custom-string', __webpack_require__(114));-Vue.component('custom-attachments', __webpack_require__(119));-Vue.component('custom-textarea', __webpack_require__(124));--Vue.component('custom-transaction-fields', __webpack_require__(53));-Vue.component('piggy-bank', __webpack_require__(58));-Vue.component('tags', __webpack_require__(63));-Vue.component('category', __webpack_require__(69));-Vue.component('amount', __webpack_require__(74));-Vue.component('foreign-amount', __webpack_require__(79));-Vue.component('transaction-type', __webpack_require__(84));-Vue.component('account-select', __webpack_require__(89));+Vue.component('custom-string', __webpack_require__(53));+Vue.component('custom-attachments', __webpack_require__(58));+Vue.component('custom-textarea', __webpack_require__(63));++Vue.component('custom-transaction-fields', __webpack_require__(68));+Vue.component('piggy-bank', __webpack_require__(73));+Vue.component('tags', __webpack_require__(78));+Vue.component('category', __webpack_require__(84));+Vue.component('amount', __webpack_require__(89));+Vue.component('foreign-amount', __webpack_require__(94));+Vue.component('transaction-type', __webpack_require__(99));+Vue.component('account-select', __webpack_require__(104));/*** Components for OAuth2 tokens.*/-Vue.component('passport-clients', __webpack_require__(94));-Vue.component('passport-authorized-clients', __webpack_require__(99));-Vue.component('passport-personal-access-tokens', __webpack_require__(104));-Vue.component('create-transaction', __webpack_require__(109));+Vue.component('passport-clients', __webpack_require__(109));+Vue.component('passport-authorized-clients', __webpack_require__(114));+Vue.component('passport-personal-access-tokens', __webpack_require__(119));+Vue.component('create-transaction', __webpack_require__(124));var app = new Vue({el: '#app'@@ -48903,6 +48903,498 @@ var __vue_template_functional__ = false/* styles */var __vue_styles__ = injectStyle/* scopeId */+var __vue_scopeId__ = "data-v-73a9dd75"+/* moduleIdentifier (server only) */+var __vue_module_identifier__ = null+var Component = normalizeComponent(+ __vue_script__,+ __vue_template__,+ __vue_template_functional__,+ __vue_styles__,+ __vue_scopeId__,+ __vue_module_identifier__+)+Component.options.__file = "resources/assets/js/components/transactions/CustomString.vue"++/* hot reload */+if (false) {(function () {+ var hotAPI = require("vue-hot-reload-api")+ hotAPI.install(require("vue"), false)+ if (!hotAPI.compatible) return+ module.hot.accept()+ if (!module.hot.data) {+ hotAPI.createRecord("data-v-73a9dd75", Component.options)+ } else {+ hotAPI.reload("data-v-73a9dd75", Component.options)+ }+ module.hot.dispose(function (data) {+ disposed = true+ })+})()}++module.exports = Component.exports+++/***/ }),+/* 54 */+/***/ (function(module, exports, __webpack_require__) {++// style-loader: Adds some css to the DOM by adding a <style> tag++// load the styles+var content = __webpack_require__(55);+if(typeof content === 'string') content = [[module.i, content, '']];+if(content.locals) module.exports = content.locals;+// add the styles to the DOM+var update = __webpack_require__(1)("7a8e435e", content, false, {});+// Hot Module Replacement+if(false) {+ // When the styles change, update the <style> tags+ if(!content.locals) {+ module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-73a9dd75\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomString.vue", function() {+ var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-73a9dd75\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomString.vue");+ if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];+ update(newContent);+ });+ }+ // When the module is disposed, remove the <style> tags+ module.hot.dispose(function() { update(); });+}++/***/ }),+/* 55 */+/***/ (function(module, exports, __webpack_require__) {++exports = module.exports = __webpack_require__(0)(false);+// imports+++// module+exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);++// exports+++/***/ }),+/* 56 */+/***/ (function(module, __webpack_exports__, __webpack_require__) {++"use strict";+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });+//+//+//+//+//+//+//+//+//+//+//+//+//+//+//++/* harmony default export */ __webpack_exports__["default"] = ({+ name: "CustomString",+ props: {+ title: String,+ name: String,+ value: String+ },+ methods: {+ handleInput: function handleInput(e) {+ this.$emit('input', this.$refs.str.value);+ }+ }+});++/***/ }),+/* 57 */+/***/ (function(module, exports, __webpack_require__) {++var render = function() {+ var _vm = this+ var _h = _vm.$createElement+ var _c = _vm._self._c || _h+ return _c("div", { staticClass: "form-group" }, [+ _c("div", { staticClass: "col-sm-12 text-sm" }, [+ _vm._v("\n " + _vm._s(_vm.title) + "\n ")+ ]),+ _vm._v(" "),+ _c("div", { staticClass: "col-sm-12" }, [+ _c("input", {+ ref: "str",+ staticClass: "form-control",+ attrs: {+ type: "text",+ name: _vm.name,+ title: _vm.title,+ autocomplete: "off",+ placeholder: _vm.title+ },+ domProps: { value: _vm.value },+ on: { input: _vm.handleInput }+ })+ ])+ ])+}+var staticRenderFns = []+render._withStripped = true+module.exports = { render: render, staticRenderFns: staticRenderFns }+if (false) {+ module.hot.accept()+ if (module.hot.data) {+ require("vue-hot-reload-api") .rerender("data-v-73a9dd75", module.exports)+ }+}++/***/ }),+/* 58 */+/***/ (function(module, exports, __webpack_require__) {++var disposed = false+function injectStyle (ssrContext) {+ if (disposed) return+ __webpack_require__(59)+}+var normalizeComponent = __webpack_require__(2)+/* script */+var __vue_script__ = __webpack_require__(61)+/* template */+var __vue_template__ = __webpack_require__(62)+/* template functional */+var __vue_template_functional__ = false+/* styles */+var __vue_styles__ = injectStyle+/* scopeId */+var __vue_scopeId__ = "data-v-75bc1a7c"+/* moduleIdentifier (server only) */+var __vue_module_identifier__ = null+var Component = normalizeComponent(+ __vue_script__,+ __vue_template__,+ __vue_template_functional__,+ __vue_styles__,+ __vue_scopeId__,+ __vue_module_identifier__+)+Component.options.__file = "resources/assets/js/components/transactions/CustomAttachments.vue"++/* hot reload */+if (false) {(function () {+ var hotAPI = require("vue-hot-reload-api")+ hotAPI.install(require("vue"), false)+ if (!hotAPI.compatible) return+ module.hot.accept()+ if (!module.hot.data) {+ hotAPI.createRecord("data-v-75bc1a7c", Component.options)+ } else {+ hotAPI.reload("data-v-75bc1a7c", Component.options)+ }+ module.hot.dispose(function (data) {+ disposed = true+ })+})()}++module.exports = Component.exports+++/***/ }),+/* 59 */+/***/ (function(module, exports, __webpack_require__) {++// style-loader: Adds some css to the DOM by adding a <style> tag++// load the styles+var content = __webpack_require__(60);+if(typeof content === 'string') content = [[module.i, content, '']];+if(content.locals) module.exports = content.locals;+// add the styles to the DOM+var update = __webpack_require__(1)("55496da8", content, false, {});+// Hot Module Replacement+if(false) {+ // When the styles change, update the <style> tags+ if(!content.locals) {+ module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-75bc1a7c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomAttachments.vue", function() {+ var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-75bc1a7c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomAttachments.vue");+ if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];+ update(newContent);+ });+ }+ // When the module is disposed, remove the <style> tags+ module.hot.dispose(function() { update(); });+}++/***/ }),+/* 60 */+/***/ (function(module, exports, __webpack_require__) {++exports = module.exports = __webpack_require__(0)(false);+// imports+++// module+exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);++// exports+++/***/ }),+/* 61 */+/***/ (function(module, __webpack_exports__, __webpack_require__) {++"use strict";+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });+//+//+//+//+//+//+//+//+//+//+//+//+//+//+//++/* harmony default export */ __webpack_exports__["default"] = ({+ name: "CustomAttachments",+ props: {+ title: String,+ name: String+ }+});++/***/ }),+/* 62 */+/***/ (function(module, exports, __webpack_require__) {++var render = function() {+ var _vm = this+ var _h = _vm.$createElement+ var _c = _vm._self._c || _h+ return _c("div", { staticClass: "form-group" }, [+ _c("div", { staticClass: "col-sm-12 text-sm" }, [+ _vm._v("\n " + _vm._s(_vm.title) + "\n ")+ ]),+ _vm._v(" "),+ _c("div", { staticClass: "col-sm-12" }, [+ _c("input", {+ staticClass: "form-control",+ attrs: {+ multiple: "multiple",+ autocomplete: "off",+ placeholder: _vm.title,+ title: _vm.title,+ name: _vm.name,+ type: "file"+ }+ })+ ])+ ])+}+var staticRenderFns = []+render._withStripped = true+module.exports = { render: render, staticRenderFns: staticRenderFns }+if (false) {+ module.hot.accept()+ if (module.hot.data) {+ require("vue-hot-reload-api") .rerender("data-v-75bc1a7c", module.exports)+ }+}++/***/ }),+/* 63 */+/***/ (function(module, exports, __webpack_require__) {++var disposed = false+function injectStyle (ssrContext) {+ if (disposed) return+ __webpack_require__(64)+}+var normalizeComponent = __webpack_require__(2)+/* script */+var __vue_script__ = __webpack_require__(66)+/* template */+var __vue_template__ = __webpack_require__(67)+/* template functional */+var __vue_template_functional__ = false+/* styles */+var __vue_styles__ = injectStyle+/* scopeId */+var __vue_scopeId__ = "data-v-11018d84"+/* moduleIdentifier (server only) */+var __vue_module_identifier__ = null+var Component = normalizeComponent(+ __vue_script__,+ __vue_template__,+ __vue_template_functional__,+ __vue_styles__,+ __vue_scopeId__,+ __vue_module_identifier__+)+Component.options.__file = "resources/assets/js/components/transactions/CustomTextArea.vue"++/* hot reload */+if (false) {(function () {+ var hotAPI = require("vue-hot-reload-api")+ hotAPI.install(require("vue"), false)+ if (!hotAPI.compatible) return+ module.hot.accept()+ if (!module.hot.data) {+ hotAPI.createRecord("data-v-11018d84", Component.options)+ } else {+ hotAPI.reload("data-v-11018d84", Component.options)+ }+ module.hot.dispose(function (data) {+ disposed = true+ })+})()}++module.exports = Component.exports+++/***/ }),+/* 64 */+/***/ (function(module, exports, __webpack_require__) {++// style-loader: Adds some css to the DOM by adding a <style> tag++// load the styles+var content = __webpack_require__(65);+if(typeof content === 'string') content = [[module.i, content, '']];+if(content.locals) module.exports = content.locals;+// add the styles to the DOM+var update = __webpack_require__(1)("0b0c8efa", content, false, {});+// Hot Module Replacement+if(false) {+ // When the styles change, update the <style> tags+ if(!content.locals) {+ module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11018d84\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomTextArea.vue", function() {+ var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11018d84\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomTextArea.vue");+ if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];+ update(newContent);+ });+ }+ // When the module is disposed, remove the <style> tags+ module.hot.dispose(function() { update(); });+}++/***/ }),+/* 65 */+/***/ (function(module, exports, __webpack_require__) {++exports = module.exports = __webpack_require__(0)(false);+// imports+++// module+exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);++// exports+++/***/ }),+/* 66 */+/***/ (function(module, __webpack_exports__, __webpack_require__) {++"use strict";+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });+//+//+//+//+//+//+//+//+//+//+//+//+//+//+//++/* harmony default export */ __webpack_exports__["default"] = ({+ name: "CustomTextarea",+ props: {+ title: String,+ name: String,+ value: String+ },+ methods: {+ handleInput: function handleInput(e) {+ this.$emit('input', this.$refs.str.value);+ }+ }+});++/***/ }),+/* 67 */+/***/ (function(module, exports, __webpack_require__) {++var render = function() {+ var _vm = this+ var _h = _vm.$createElement+ var _c = _vm._self._c || _h+ return _c("div", { staticClass: "form-group" }, [+ _c("div", { staticClass: "col-sm-12 text-sm" }, [+ _vm._v("\n " + _vm._s(_vm.title) + "\n ")+ ]),+ _vm._v(" "),+ _c("div", { staticClass: "col-sm-12" }, [+ _c("textarea", {+ ref: "str",+ staticClass: "form-control",+ attrs: {+ name: _vm.name,+ title: _vm.title,+ autocomplete: "off",+ placeholder: _vm.title+ },+ domProps: { value: _vm.value },+ on: { input: _vm.handleInput }+ })+ ])+ ])+}+var staticRenderFns = []+render._withStripped = true+module.exports = { render: render, staticRenderFns: staticRenderFns }+if (false) {+ module.hot.accept()+ if (module.hot.data) {+ require("vue-hot-reload-api") .rerender("data-v-11018d84", module.exports)+ }+}++/***/ }),+/* 68 */+/***/ (function(module, exports, __webpack_require__) {++var disposed = false+function injectStyle (ssrContext) {+ if (disposed) return+ __webpack_require__(69)+}+var normalizeComponent = __webpack_require__(2)+/* script */+var __vue_script__ = __webpack_require__(71)+/* template */+var __vue_template__ = __webpack_require__(72)+/* template functional */+var __vue_template_functional__ = false+/* styles */+var __vue_styles__ = injectStyle+/* scopeId */var __vue_scopeId__ = "data-v-0f4148fa"/* moduleIdentifier (server only) */var __vue_module_identifier__ = null@@ -48936,13 +49428,13 @@ module.exports = Component.exports/***/ }),-/* 54 */+/* 69 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(55);+var content = __webpack_require__(70);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -48962,7 +49454,7 @@ if(false) {}/***/ }),-/* 55 */+/* 70 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -48976,7 +49468,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 56 */+/* 71 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -49081,7 +49573,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 57 */+/* 72 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -49234,19 +49726,19 @@ if (false) {}/***/ }),-/* 58 */+/* 73 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(59)+ __webpack_require__(74)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(61)+var __vue_script__ = __webpack_require__(76)/* template */-var __vue_template__ = __webpack_require__(62)+var __vue_template__ = __webpack_require__(77)/* template functional */var __vue_template_functional__ = false/* styles */@@ -49285,13 +49777,13 @@ module.exports = Component.exports/***/ }),-/* 59 */+/* 74 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(60);+var content = __webpack_require__(75);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -49311,7 +49803,7 @@ if(false) {}/***/ }),-/* 60 */+/* 75 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -49325,7 +49817,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 61 */+/* 76 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -49398,7 +49890,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 62 */+/* 77 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -49446,19 +49938,19 @@ if (false) {}/***/ }),-/* 63 */+/* 78 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(64)+ __webpack_require__(79)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(66)+var __vue_script__ = __webpack_require__(81)/* template */-var __vue_template__ = __webpack_require__(68)+var __vue_template__ = __webpack_require__(83)/* template functional */var __vue_template_functional__ = false/* styles */@@ -49497,13 +49989,13 @@ module.exports = Component.exports/***/ }),-/* 64 */+/* 79 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(65);+var content = __webpack_require__(80);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -49523,7 +50015,7 @@ if(false) {}/***/ }),-/* 65 */+/* 80 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -49537,14 +50029,14 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 66 */+/* 81 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";Object.defineProperty(__webpack_exports__, "__esModule", { value: true });/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(6);/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__johmun_vue_tags_input__ = __webpack_require__(67);+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__johmun_vue_tags_input__ = __webpack_require__(82);/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__johmun_vue_tags_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__johmun_vue_tags_input__);////@@ -49633,14 +50125,14 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 67 */+/* 82 *//***/ (function(module, exports, __webpack_require__) {!function(A,t){ true?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.vueTagsInput=t():A.vueTagsInput=t()}(window,function(){return function(A){var t={};function e(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return A[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=A,e.c=t,e.d=function(A,t,n){e.o(A,t)||Object.defineProperty(A,t,{enumerable:!0,get:n})},e.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},e.t=function(A,t){if(1&t&&(A=e(A)),8&t)return A;if(4&t&&"object"==typeof A&&A&&A.__esModule)return A;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:A}),2&t&&"string"!=typeof A)for(var i in A)e.d(n,i,function(t){return A[t]}.bind(null,i));return n},e.n=function(A){var t=A&&A.__esModule?function(){return A.default}:function(){return A};return e.d(t,"a",t),t},e.o=function(A,t){return Object.prototype.hasOwnProperty.call(A,t)},e.p="/dist/",e(e.s=6)}([function(A,t,e){var n=e(8);"string"==typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);(0,e(4).default)("7ec05f6c",n,!1,{})},function(A,t,e){var n=e(10);"string"==typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);(0,e(4).default)("3453d19d",n,!1,{})},function(A,t,e){"use strict";A.exports=function(A){var t=[];return t.toString=function(){return this.map(function(t){var e=function(A,t){var e=A[1]||"",n=A[3];if(!n)return e;if(t&&"function"==typeof btoa){var i=(o=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=n.sources.map(function(A){return"/*# sourceURL="+n.sourceRoot+A+" */"});return[e].concat(a).concat([i]).join("\n")}var o;return[e].join("\n")}(t,A);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},t.i=function(A,e){"string"==typeof A&&(A=[[null,A,""]]);for(var n={},i=0;i<this.length;i++){var a=this[i][0];null!=a&&(n[a]=!0)}for(i=0;i<A.length;i++){var o=A[i];null!=o[0]&&n[o[0]]||(e&&!o[2]?o[2]=e:e&&(o[2]="("+o[2]+") and ("+e+")"),t.push(o))}},t}},function(A,t){A.exports="data:application/vnd.ms-fontobject;base64,aAUAAMQEAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAUdPJHwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFrAAAALwAAABgY21hcBdW0okAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmpZ+jMAAAAXgAAAD8aGVhZA/FmAgAAAJ0AAAANmhoZWEHgAPIAAACrAAAACRobXR4EgABvgAAAtAAAAAcbG9jYQCSAOIAAALsAAAAEG1heHAACQAfAAAC/AAAACBuYW1lmUoJ+wAAAxwAAAGGcG9zdAADAAAAAASkAAAAIAADA4ABkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkCA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpAv/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAVgEBA74CgQAcAAABMhceARcWFwcmJy4BJyYjIgYHFyERFzY3PgE3NgIWSkNDbykpF2QQIB9VMzQ5P3AtnP6AmB0iIkspKAJVFxhSODlCIDMrKz4REislmgGAmhkVFBwICAABANYAgQMqAtUACwAAAQcXBycHJzcnNxc3Ayru7jzu7jzu7jzu7gKZ7u487u487u487u4AAQCSAIEDgAK9AAUAACUBFwEnNwGAAcQ8/gDuPPkBxDz+AO48AAAAAAEAAAAAAAAfydNRXw889QALBAAAAAAA1nUqGwAAAADWdSobAAAAAAO+AtUAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA74AAQAAAAAAAAAAAAAAAAAAAAcEAAAAAAAAAAAAAAACAAAABAAAVgQAANYEAACSAAAAAAAKABQAHgBQAGoAfgABAAAABwAdAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="},function(A,t,e){"use strict";function n(A,t){for(var e=[],n={},i=0;i<t.length;i++){var a=t[i],o=a[0],r={id:A+":"+i,css:a[1],media:a[2],sourceMap:a[3]};n[o]?n[o].parts.push(r):e.push(n[o]={id:o,parts:[r]})}return e}e.r(t),e.d(t,"default",function(){return g});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),r=null,s=0,u=!1,c=function(){},d=null,l="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(A,t,e,i){u=e,d=i||{};var o=n(A,t);return f(o),function(t){for(var e=[],i=0;i<o.length;i++){var r=o[i];(s=a[r.id]).refs--,e.push(s)}t?f(o=n(A,t)):o=[];for(i=0;i<e.length;i++){var s;if(0===(s=e[i]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete a[s.id]}}}}function f(A){for(var t=0;t<A.length;t++){var e=A[t],n=a[e.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](e.parts[i]);for(;i<e.parts.length;i++)n.parts.push(v(e.parts[i]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(i=0;i<e.parts.length;i++)o.push(v(e.parts[i]));a[e.id]={id:e.id,refs:1,parts:o}}}}function B(){var A=document.createElement("style");return A.type="text/css",o.appendChild(A),A}function v(A){var t,e,n=document.querySelector("style["+l+'~="'+A.id+'"]');if(n){if(u)return c;n.parentNode.removeChild(n)}if(p){var i=s++;n=r||(r=B()),t=C.bind(null,n,i,!1),e=C.bind(null,n,i,!0)}else n=B(),t=function(A,t){var e=t.css,n=t.media,i=t.sourceMap;n&&A.setAttribute("media",n);d.ssrId&&A.setAttribute(l,t.id);i&&(e+="\n/*# sourceURL="+i.sources[0]+" */",e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(A.styleSheet)A.styleSheet.cssText=e;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(e))}}.bind(null,n),e=function(){n.parentNode.removeChild(n)};return t(A),function(n){if(n){if(n.css===A.css&&n.media===A.media&&n.sourceMap===A.sourceMap)return;t(A=n)}else e()}}var h,m=(h=[],function(A,t){return h[A]=t,h.filter(Boolean).join("\n")});function C(A,t,e,n){var i=e?"":n.css;if(A.styleSheet)A.styleSheet.cssText=m(t,i);else{var a=document.createTextNode(i),o=A.childNodes;o[t]&&A.removeChild(o[t]),o.length?A.insertBefore(a,o[t]):A.appendChild(a)}}},function(A,t,e){"use strict";var n=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty;A.exports=function A(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o,r,s,u=n(t),c=n(e);if(u&&c){if((r=t.length)!=e.length)return!1;for(o=r;0!=o--;)if(!A(t[o],e[o]))return!1;return!0}if(u!=c)return!1;var d=t instanceof Date,l=e instanceof Date;if(d!=l)return!1;if(d&&l)return t.getTime()==e.getTime();var p=t instanceof RegExp,g=e instanceof RegExp;if(p!=g)return!1;if(p&&g)return t.toString()==e.toString();var f=i(t);if((r=f.length)!==i(e).length)return!1;for(o=r;0!=o--;)if(!a.call(e,f[o]))return!1;for(o=r;0!=o--;)if(!A(t[s=f[o]],e[s]))return!1;return!0}return t!=t&&e!=e}},function(A,t,e){A.exports=e(14)},function(A,t,e){"use strict";var n=e(0);e.n(n).a},function(A,t,e){(A.exports=e(2)(!0)).push([A.i,".ti-tag-input[data-v-108f4f13] {\n background-color: transparent;\n color: inherit;\n border: none;\n padding: 0px;\n margin: 0px;\n display: flex;\n top: 0px;\n position: absolute;\n width: 100%;\n line-height: inherit;\n}\n.ti-tag-input[data-v-108f4f13]::-ms-clear {\n display: none;\n}\ninput[data-v-108f4f13]:focus {\n outline: none;\n}\ninput[disabled][data-v-108f4f13] {\n background-color: transparent;\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/tag-input.vue"],names:[],mappings:"AAAA;EACE,8BAA8B;EAC9B,eAAe;EACf,aAAa;EACb,aAAa;EACb,YAAY;EACZ,cAAc;EACd,SAAS;EACT,mBAAmB;EACnB,YAAY;EACZ,qBAAqB;CAAE;AAEzB;EACE,cAAc;CAAE;AAElB;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE",file:"tag-input.vue?vue&type=style&index=0&id=108f4f13&lang=css&scoped=true&",sourcesContent:[".ti-tag-input {\n background-color: transparent;\n color: inherit;\n border: none;\n padding: 0px;\n margin: 0px;\n display: flex;\n top: 0px;\n position: absolute;\n width: 100%;\n line-height: inherit; }\n\n.ti-tag-input::-ms-clear {\n display: none; }\n\ninput:focus {\n outline: none; }\n\ninput[disabled] {\n background-color: transparent; }\n"],sourceRoot:""}])},function(A,t,e){"use strict";var n=e(1);e.n(n).a},function(A,t,e){t=A.exports=e(2)(!0);var n=e(11),i=n(e(3)),a=n(e(3)+"#iefix"),o=n(e(12)),r=n(e(13));t.push([A.i,"@font-face {\n font-family: 'icomoon';\n src: url("+i+");\n src: url("+a+') format("embedded-opentype"), url('+o+') format("truetype"), url('+r+') format("woff");\n font-weight: normal;\n font-style: normal;\n}\n[class^="ti-icon-"][data-v-61d92e31], [class*=" ti-icon-"][data-v-61d92e31] {\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[data-v-61d92e31]:before {\n content: "\\e902";\n}\n.ti-icon-close[data-v-61d92e31]:before {\n content: "\\e901";\n}\n.ti-icon-undo[data-v-61d92e31]:before {\n content: "\\e900";\n}\nul[data-v-61d92e31] {\n margin: 0px;\n padding: 0px;\n list-style-type: none;\n}\n*[data-v-61d92e31], *[data-v-61d92e31]:before, *[data-v-61d92e31]:after {\n box-sizing: border-box;\n}\ninput[data-v-61d92e31]:focus {\n outline: none;\n}\ninput[disabled][data-v-61d92e31] {\n background-color: transparent;\n}\n.vue-tags-input[data-v-61d92e31] {\n max-width: 450px;\n position: relative;\n background-color: #fff;\n}\ndiv.vue-tags-input.disabled[data-v-61d92e31] {\n opacity: 0.5;\n}\ndiv.vue-tags-input.disabled *[data-v-61d92e31] {\n cursor: default;\n}\n.ti-input[data-v-61d92e31] {\n border: 1px solid #ccc;\n display: flex;\n padding: 4px;\n flex-wrap: wrap;\n}\n.ti-tags[data-v-61d92e31] {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n line-height: 1em;\n}\n.ti-tag[data-v-61d92e31] {\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}\n.ti-tag[data-v-61d92e31]:focus {\n outline: none;\n}\n.ti-tag .ti-content[data-v-61d92e31] {\n display: flex;\n align-items: center;\n}\n.ti-tag .ti-tag-center[data-v-61d92e31] {\n position: relative;\n}\n.ti-tag span[data-v-61d92e31] {\n line-height: .85em;\n}\n.ti-tag span.ti-hidden[data-v-61d92e31] {\n padding-left: 14px;\n visibility: hidden;\n height: 0px;\n white-space: pre;\n}\n.ti-tag .ti-actions[data-v-61d92e31] {\n margin-left: 2px;\n display: flex;\n align-items: center;\n font-size: 1.15em;\n}\n.ti-tag .ti-actions i[data-v-61d92e31] {\n cursor: pointer;\n}\n.ti-tag[data-v-61d92e31]:last-child {\n margin-right: 4px;\n}\n.ti-tag.ti-invalid[data-v-61d92e31], .ti-tag.ti-tag.ti-deletion-mark[data-v-61d92e31] {\n background-color: #e54d42;\n}\n.ti-new-tag-input-wrapper[data-v-61d92e31] {\n display: flex;\n flex: 1 0 auto;\n padding: 3px 5px;\n margin: 2px;\n font-size: .85em;\n}\n.ti-new-tag-input-wrapper input[data-v-61d92e31] {\n flex: 1 0 auto;\n min-width: 100px;\n border: none;\n padding: 0px;\n margin: 0px;\n}\n.ti-new-tag-input[data-v-61d92e31] {\n line-height: initial;\n}\n.ti-autocomplete[data-v-61d92e31] {\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[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(A,t,e){"use strict";A.exports=function(A){return"string"!=typeof A?A:(/^['"].*['"]$/.test(A)&&(A=A.slice(1,-1)),/["'() \t\n]/.test(A)?'"'+A.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':A)}},function(A,t){A.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(A,t){A.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(A,t,e){"use strict";e.r(t);var n=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":A.disabled},{"ti-focus":A.focused}]},[e("div",{staticClass:"ti-input"},[A.tagsCopy?e("ul",{staticClass:"ti-tags"},[A._l(A.tagsCopy,function(t,n){return e("li",{key:n,staticClass:"ti-tag",class:[{"ti-editing":A.tagsEditStatus[n]},t.tiClasses,t.classes,{"ti-deletion-mark":A.isMarked(n)}],style:t.style,attrs:{tabindex:n+1},on:{click:function(e){A.$emit("tag-clicked",{tag:t,index:n})}}},[e("div",{staticClass:"ti-content"},[A.$scopedSlots["tag-left"]?e("div",{staticClass:"ti-tag-left"},[A._t("tag-left",null,{tag:t,index:n,edit:A.tagsEditStatus[n],performSaveEdit:A.performSaveTag,performDelete:A.performDeleteTag,performCancelEdit:A.cancelEdit,performOpenEdit:A.performEditTag,deletionMark:A.isMarked(n)})],2):A._e(),A._v(" "),e("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[A.$scopedSlots["tag-center"]?A._e():e("span",{class:{"ti-hidden":A.tagsEditStatus[n]},on:{click:function(t){A.performEditTag(n)}}},[A._v(A._s(t.text))]),A._v(" "),A.$scopedSlots["tag-center"]?A._e():e("tag-input",{attrs:{scope:{edit:A.tagsEditStatus[n],maxlength:A.maxlength,tag:t,index:n,validateTag:A.createChangedTag,performCancelEdit:A.cancelEdit,performSaveEdit:A.performSaveTag}}}),A._v(" "),A._t("tag-center",null,{tag:t,index:n,maxlength:A.maxlength,edit:A.tagsEditStatus[n],performSaveEdit:A.performSaveTag,performDelete:A.performDeleteTag,performCancelEdit:A.cancelEdit,validateTag:A.createChangedTag,performOpenEdit:A.performEditTag,deletionMark:A.isMarked(n)})],2),A._v(" "),A.$scopedSlots["tag-right"]?e("div",{staticClass:"ti-tag-right"},[A._t("tag-right",null,{tag:t,index:n,edit:A.tagsEditStatus[n],performSaveEdit:A.performSaveTag,performDelete:A.performDeleteTag,performCancelEdit:A.cancelEdit,performOpenEdit:A.performEditTag,deletionMark:A.isMarked(n)})],2):A._e()]),A._v(" "),e("div",{staticClass:"ti-actions"},[A.$scopedSlots["tag-actions"]?A._e():e("i",{directives:[{name:"show",rawName:"v-show",value:A.tagsEditStatus[n],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(t){A.cancelEdit(n)}}}),A._v(" "),A.$scopedSlots["tag-actions"]?A._e():e("i",{directives:[{name:"show",rawName:"v-show",value:!A.tagsEditStatus[n],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(t){A.performDeleteTag(n)}}}),A._v(" "),A.$scopedSlots["tag-actions"]?A._t("tag-actions",null,{tag:t,index:n,edit:A.tagsEditStatus[n],performSaveEdit:A.performSaveTag,performDelete:A.performDeleteTag,performCancelEdit:A.cancelEdit,performOpenEdit:A.performEditTag,deletionMark:A.isMarked(n)}):A._e()],2)])}),A._v(" "),e("li",{staticClass:"ti-new-tag-input-wrapper"},[e("input",A._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[A.createClasses(A.newTag,A.tags,A.validation,A.isDuplicate)],attrs:{placeholder:A.placeholder,maxlength:A.maxlength,disabled:A.disabled,type:"text",size:"1"},domProps:{value:A.newTag},on:{keydown:[function(t){A.performAddTags(A.filteredAutocompleteItems[A.selectedItem]||A.newTag,t)},function(t){return"button"in t||8===t.keyCode?A.invokeDelete(t):null},function(t){if(!("button"in t)&&38!==t.keyCode)return null;A.selectItem(t,"before")},function(t){if(!("button"in t)&&40!==t.keyCode)return null;A.selectItem(t,"after")}],paste:A.addTagsFromPaste,input:A.updateNewTag,blur:function(t){A.$emit("blur",t)},focus:function(t){A.focused=!0,A.$emit("focus",t)},click:function(t){!A.addOnlyFromAutocomplete&&(A.selectedItem=null)}}},"input",A.$attrs,!1))])],2):A._e()]),A._v(" "),A._t("between-elements"),A._v(" "),A.autocompleteOpen?e("div",{staticClass:"ti-autocomplete",on:{mouseout:function(t){A.selectedItem=null}}},[A._t("autocomplete-header"),A._v(" "),e("ul",A._l(A.filteredAutocompleteItems,function(t,n){return e("li",{key:n,staticClass:"ti-item",class:[t.tiClasses,t.classes,{"ti-selected-item":A.isSelected(n)}],style:t.style,on:{mouseover:function(t){!A.disabled&&(A.selectedItem=n)}}},[A.$scopedSlots["autocomplete-item"]?A._t("autocomplete-item",null,{item:t,index:n,performAdd:function(t){return A.performAddTags(t,void 0,"autocomplete")},selected:A.isSelected(n)}):e("div",{on:{click:function(e){A.performAddTags(t,void 0,"autocomplete")}}},[A._v("\n "+A._s(t.text)+"\n ")])],2)}),0),A._v(" "),A._t("autocomplete-footer")],2):A._e()],2)};n._withStripped=!0;var i=e(5),a=e.n(i),o=function(A){return JSON.parse(JSON.stringify(A))},r=function(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;void 0===A.text&&(A={text:A});var i=function(A,t){return t.filter(function(t){var e=A.text;return"string"==typeof t.rule?!new RegExp(t.rule).test(e):t.rule instanceof RegExp?!t.rule.test(e):"[object Function]"==={}.toString.call(t.rule)?t.rule(A):void 0}).map(function(A){return A.classes})}(A,e),a=function(A,t){for(var e=0;e<A.length;){if(t(A[e],e,A))return e;e++}return-1}(t,function(t){return t===A}),r=o(t),s=-1!==a?r.splice(a,1)[0]:o(A);return(n?n(r,s):-1!==r.map(function(A){return A.text}).indexOf(s.text))&&i.push("ti-duplicate"),0===i.length?i.push("ti-valid"):i.push("ti-invalid"),i},s=function(A){void 0===A.text&&(A={text:A});for(var t=o(A),e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t.tiClasses=r.apply(void 0,[A].concat(n)),t},u=function(A){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return A.map(function(t){return s.apply(void 0,[t,A].concat(e))})},c=function(){var A=this,t=A.$createElement,e=A._self._c||t;return A.scope.edit?e("input",{directives:[{name:"model",rawName:"v-model",value:A.scope.tag.text,expression:"scope.tag.text"}],staticClass:"ti-tag-input",attrs:{maxlength:A.scope.maxlength,type:"text",size:"1"},domProps:{value:A.scope.tag.text},on:{input:[function(t){t.target.composing||A.$set(A.scope.tag,"text",t.target.value)},function(t){A.scope.validateTag(A.scope.index,t)}],blur:function(t){A.scope.performCancelEdit(A.scope.index)},keydown:function(t){A.scope.performSaveEdit(A.scope.index,t)}}}):A._e()};c._withStripped=!0;var d={name:"TagInput",props:{scope:{type:Object}}};e(7);function l(A,t,e,n,i,a,o,r){var s,u="function"==typeof A?A.options:A;if(t&&(u.render=t,u.staticRenderFns=e,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(s=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),i&&i.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(o)},u._ssrRegister=s):i&&(s=r?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(A,t){return s.call(t),c(A,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,s):[s]}return{exports:A,options:u}}var p=l(d,c,[],!1,null,"108f4f13",null);p.options.__file="vue-tags-input/tag-input.vue";var g=p.exports,f=function(A){return!A.some(function(A){var t=!A.text;t&&console.warn('Missing property "text"',A);var e=!1;return A.classes&&(e="string"!=typeof A.classes),e&&console.warn('Property "classes" must be type of string',A),t||e})},B=function(A){return!A.some(function(A){if("number"==typeof A){var t=isFinite(A)&&Math.floor(A)===A;return t||console.warn("Only numerics are allowed for this prop. Found:",A),!t}if("string"==typeof A){var e=/\W|[a-z]|!\d/i.test(A);return e||console.warn("Only alpha strings are allowed for this prop. Found:",A),!e}return console.warn("Only numeric and string values are allowed. Found:",A),!1})},v={value:{type:String,default:"",required:!0},tags:{type:Array,default:function(){return[]},validator:f},autocompleteItems:{type:Array,default:function(){return[]},validator:f},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:function(){return[13]},validator:B},saveOnKey:{type:Array,default:function(){return[13]},validator:B},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:function(){return[]},validator:function(A){return!A.some(function(A){var t=!A.rule;t&&console.warn('Property "rule" is missing',A);var e=A.rule&&("string"==typeof A.rule||A.rule instanceof RegExp||"[object Function]"==={}.toString.call(A.rule));e||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(A.rule));var n=!A.classes;n&&console.warn('Property "classes" is missing',A);var i=A.type&&"string"!=typeof A.type;return i&&console.warn('Property "type" must be type of string. Found:',A),!e||t||n||i})}},separators:{type:Array,default:function(){return[";"]},validator:function(A){return!A.some(function(A){var t="string"!=typeof A;return t&&console.warn("Separators must be type of string. Found:",A),t})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean}};function h(A){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}var m={name:"VueTagsInput",components:{TagInput:g},props:v,data:function(){return{newTag:null,tagsCopy:null,tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen:function(){return!!this.autocompleteAlwaysOpen||null!==this.newTag&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var A=this,t=this.autocompleteItems.map(function(t){return s(t,A.tags,A.validation,A.isDuplicate)});return this.autocompleteFilterDuplicates?t.filter(this.duplicateFilter):t}},methods:{createClasses:r,getSelectedIndex:function(A){var t=this.filteredAutocompleteItems,e=this.selectedItem,n=t.length-1;if(0!==t.length)return null===e?0:"before"===A&&0===e?n:"after"===A&&e===n?0:"after"===A?e+1:e-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(A,t){A.preventDefault(),this.selectedItem=this.getSelectedIndex(t)},isSelected:function(A){return this.selectedItem===A},isMarked:function(A){return this.deletionMark===A},invokeDelete:function(){var A=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var t=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout(function(){return A.deletionMark=null},1e3),this.deletionMark=t):this.performDeleteTag(t)}},addTagsFromPaste:function(){var A=this;this.addFromPaste&&setTimeout(function(){return A.performAddTags(A.newTag)},10)},performEditTag:function(A){var t=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(A),this.$emit("before-editing-tag",{index:A,tag:this.tagsCopy[A],editTag:function(){return t.editTag(A)}}))},editTag:function(A){this.allowEditTags&&(this.toggleEditMode(A),this.focus(A))},toggleEditMode:function(A){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,A,!this.tagsEditStatus[A])},createChangedTag:function(A,t){var e=this.tagsCopy[A];e.text=t?t.target.value:this.tagsCopy[A].text,this.$set(this.tagsCopy,A,s(e,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(A){var t=this;this.$nextTick(function(){var e=t.$refs.tagCenter[A].querySelector("input.ti-tag-input");e&&e.focus()})},quote:function(A){return A.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(A){this.tags[A]&&(this.tagsCopy[A]=o(s(this.tags[A],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,A,!1))},hasForbiddingAddRule:function(A){var t=this;return A.some(function(A){var e=t.validation.find(function(t){return A===t.classes});return!!e&&e.disableAdd})},createTagTexts:function(A){var t=this,e=new RegExp(this.separators.map(function(A){return t.quote(A)}).join("|"));return A.split(e).map(function(A){return{text:A}})},performDeleteTag:function(A){var t=this;this._events["before-deleting-tag"]||this.deleteTag(A),this.$emit("before-deleting-tag",{index:A,tag:this.tagsCopy[A],deleteTag:function(){return t.deleteTag(A)}})},deleteTag:function(A){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(A,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(A,t){var e=-1!==this[t].indexOf(A.keyCode)||-1!==this[t].indexOf(A.key);return e&&A.preventDefault(),!e},performAddTags:function(A,t,e){var n=this;if(!(this.disabled||t&&this.noTriggerKey(t,"addOnKey"))){var i=[];"object"===h(A)&&(i=[A]),"string"==typeof A&&(i=this.createTagTexts(A)),(i=i.filter(function(A){return A.text.trim().length>0})).forEach(function(A){A=s(A,n.tags,n.validation,n.isDuplicate),n._events["before-adding-tag"]||n.addTag(A,e),n.$emit("before-adding-tag",{tag:A,addTag:function(){return n.addTag(A,e)}})})}},duplicateFilter:function(A){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,A):!this.tagsCopy.find(function(t){return t.text===A.text})},addTag:function(A){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",n=this.filteredAutocompleteItems.map(function(A){return A.text});this.addOnlyFromAutocomplete&&-1===n.indexOf(A.text)||this.$nextTick(function(){return t.maxTags&&t.maxTags<=t.tagsCopy.length?t.$emit("max-tags-reached",A):t.avoidAddingDuplicates&&!t.duplicateFilter(A)?t.$emit("adding-duplicate",A):void(t.hasForbiddingAddRule(A.tiClasses)||(t.$emit("input",""),t.tagsCopy.push(A),t._events["update:tags"]&&t.$emit("update:tags",t.tagsCopy),"autocomplete"===e&&t.$refs.newTagInput.focus(),t.$emit("tags-changed",t.tagsCopy)))})},performSaveTag:function(A,t){var e=this,n=this.tagsCopy[A];this.disabled||t&&this.noTriggerKey(t,"addOnKey")||0!==n.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(A,n),this.$emit("before-saving-tag",{index:A,tag:n,saveTag:function(){return e.saveTag(A,n)}}))},saveTag:function(A,t){if(this.avoidAddingDuplicates){var e=o(this.tagsCopy),n=e.splice(A,1)[0];if(this.isDuplicate?this.isDuplicate(e,n):-1!==e.map(function(A){return A.text}).indexOf(n.text))return this.$emit("saving-duplicate",t)}this.hasForbiddingAddRule(t.tiClasses)||(this.$set(this.tagsCopy,A,t),this.toggleEditMode(A),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var A=this;return!this.tagsCopy.some(function(t,e){return!a()(t,A.tags[e])})},updateNewTag:function(A){var t=A.target.value;this.newTag=t,this.$emit("input",t)},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)},blurred:function(A){this.$el.contains(A.target)||(this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1)}},watch:{value:function(A){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=A},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.blurred)},destroyed:function(){document.removeEventListener("click",this.blurred)}},C=(e(9),l(m,n,[],!1,null,"61d92e31",null));C.options.__file="vue-tags-input/vue-tags-input.vue";var E=C.exports;e.d(t,"VueTagsInput",function(){return E}),e.d(t,"createClasses",function(){return r}),e.d(t,"createTag",function(){return s}),e.d(t,"createTags",function(){return u}),e.d(t,"TagInput",function(){return g}),E.install=function(A){return A.component(E.name,E)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(E);t.default=E}])});//# sourceMappingURL=vue-tags-input.js.map/***/ }),-/* 68 */+/* 83 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -49685,19 +50177,19 @@ if (false) {}/***/ }),-/* 69 */+/* 84 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(70)+ __webpack_require__(85)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(72)+var __vue_script__ = __webpack_require__(87)/* template */-var __vue_template__ = __webpack_require__(73)+var __vue_template__ = __webpack_require__(88)/* template functional */var __vue_template_functional__ = false/* styles */@@ -49736,13 +50228,13 @@ module.exports = Component.exports/***/ }),-/* 70 */+/* 85 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(71);+var content = __webpack_require__(86);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -49762,7 +50254,7 @@ if(false) {}/***/ }),-/* 71 */+/* 86 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -49776,7 +50268,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 72 */+/* 87 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -49903,7 +50395,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 73 */+/* 88 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -49983,19 +50475,19 @@ if (false) {}/***/ }),-/* 74 */+/* 89 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(75)+ __webpack_require__(90)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(77)+var __vue_script__ = __webpack_require__(92)/* template */-var __vue_template__ = __webpack_require__(78)+var __vue_template__ = __webpack_require__(93)/* template functional */var __vue_template_functional__ = false/* styles */@@ -50034,13 +50526,13 @@ module.exports = Component.exports/***/ }),-/* 75 */+/* 90 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(76);+var content = __webpack_require__(91);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -50060,7 +50552,7 @@ if(false) {}/***/ }),-/* 76 */+/* 91 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -50074,7 +50566,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 77 */+/* 92 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -50158,7 +50650,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 78 */+/* 93 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -50197,19 +50689,19 @@ if (false) {}/***/ }),-/* 79 */+/* 94 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(80)+ __webpack_require__(95)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(82)+var __vue_script__ = __webpack_require__(97)/* template */-var __vue_template__ = __webpack_require__(83)+var __vue_template__ = __webpack_require__(98)/* template functional */var __vue_template_functional__ = false/* styles */@@ -50248,13 +50740,13 @@ module.exports = Component.exports/***/ }),-/* 80 */+/* 95 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(81);+var content = __webpack_require__(96);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -50274,7 +50766,7 @@ if(false) {}/***/ }),-/* 81 */+/* 96 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -50288,7 +50780,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 82 */+/* 97 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -50435,7 +50927,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 83 */+/* 98 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -50507,19 +50999,19 @@ if (false) {}/***/ }),-/* 84 */+/* 99 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(85)+ __webpack_require__(100)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(87)+var __vue_script__ = __webpack_require__(102)/* template */-var __vue_template__ = __webpack_require__(88)+var __vue_template__ = __webpack_require__(103)/* template functional */var __vue_template_functional__ = false/* styles */@@ -50558,13 +51050,13 @@ module.exports = Component.exports/***/ }),-/* 85 */+/* 100 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(86);+var content = __webpack_require__(101);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -50584,7 +51076,7 @@ if(false) {}/***/ }),-/* 86 */+/* 101 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -50598,7 +51090,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 87 */+/* 102 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -50691,7 +51183,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 88 */+/* 103 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -50719,19 +51211,19 @@ if (false) {}/***/ }),-/* 89 */+/* 104 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(90)+ __webpack_require__(105)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(92)+var __vue_script__ = __webpack_require__(107)/* template */-var __vue_template__ = __webpack_require__(93)+var __vue_template__ = __webpack_require__(108)/* template functional */var __vue_template_functional__ = false/* styles */@@ -50770,13 +51262,13 @@ module.exports = Component.exports/***/ }),-/* 90 */+/* 105 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(91);+var content = __webpack_require__(106);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -50796,7 +51288,7 @@ if(false) {}/***/ }),-/* 91 */+/* 106 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -50810,7 +51302,7 @@ exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\/***/ }),-/* 92 */+/* 107 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -50972,7 +51464,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 93 */+/* 108 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -51052,19 +51544,19 @@ if (false) {}/***/ }),-/* 94 */+/* 109 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(95)+ __webpack_require__(110)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(97)+var __vue_script__ = __webpack_require__(112)/* template */-var __vue_template__ = __webpack_require__(98)+var __vue_template__ = __webpack_require__(113)/* template functional */var __vue_template_functional__ = false/* styles */@@ -51103,13 +51595,13 @@ module.exports = Component.exports/***/ }),-/* 95 */+/* 110 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(96);+var content = __webpack_require__(111);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -51129,7 +51621,7 @@ if(false) {}/***/ }),-/* 96 */+/* 111 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -51143,7 +51635,7 @@ exports.push([module.i, "\n.action-link[data-v-5d1d7d82] {\n cursor: pointer;/***/ }),-/* 97 */+/* 112 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -51511,7 +52003,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol});/***/ }),-/* 98 */+/* 113 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -52077,19 +52569,19 @@ if (false) {}/***/ }),-/* 99 */+/* 114 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(100)+ __webpack_require__(115)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(102)+var __vue_script__ = __webpack_require__(117)/* template */-var __vue_template__ = __webpack_require__(103)+var __vue_template__ = __webpack_require__(118)/* template functional */var __vue_template_functional__ = false/* styles */@@ -52128,13 +52620,13 @@ module.exports = Component.exports/***/ }),-/* 100 */+/* 115 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(101);+var content = __webpack_require__(116);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -52154,7 +52646,7 @@ if(false) {}/***/ }),-/* 101 */+/* 116 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -52168,7 +52660,7 @@ exports.push([module.i, "\n.action-link[data-v-2ee9fe67] {\n cursor: pointer;/***/ }),-/* 102 */+/* 117 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -52296,7 +52788,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 103 */+/* 118 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -52416,19 +52908,19 @@ if (false) {}/***/ }),-/* 104 */+/* 119 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(105)+ __webpack_require__(120)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(107)+var __vue_script__ = __webpack_require__(122)/* template */-var __vue_template__ = __webpack_require__(108)+var __vue_template__ = __webpack_require__(123)/* template functional */var __vue_template_functional__ = false/* styles */@@ -52467,13 +52959,13 @@ module.exports = Component.exports/***/ }),-/* 105 */+/* 120 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(106);+var content = __webpack_require__(121);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -52493,7 +52985,7 @@ if(false) {}/***/ }),-/* 106 */+/* 121 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -52507,7 +52999,7 @@ exports.push([module.i, "\n.action-link[data-v-89c53f18] {\n cursor: pointer;/***/ }),-/* 107 */+/* 122 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -52832,7 +53324,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol});/***/ }),-/* 108 */+/* 123 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -53199,19 +53691,19 @@ if (false) {}/***/ }),-/* 109 */+/* 124 *//***/ (function(module, exports, __webpack_require__) {var disposed = falsefunction injectStyle (ssrContext) {if (disposed) return- __webpack_require__(110)+ __webpack_require__(125)}var normalizeComponent = __webpack_require__(2)/* script */-var __vue_script__ = __webpack_require__(112)+var __vue_script__ = __webpack_require__(127)/* template */-var __vue_template__ = __webpack_require__(113)+var __vue_template__ = __webpack_require__(128)/* template functional */var __vue_template_functional__ = false/* styles */@@ -53250,13 +53742,13 @@ module.exports = Component.exports/***/ }),-/* 110 */+/* 125 *//***/ (function(module, exports, __webpack_require__) {// style-loader: Adds some css to the DOM by adding a <style> tag// load the styles-var content = __webpack_require__(111);+var content = __webpack_require__(126);if(typeof content === 'string') content = [[module.i, content, '']];if(content.locals) module.exports = content.locals;// add the styles to the DOM@@ -53276,7 +53768,7 @@ if(false) {}/***/ }),-/* 111 */+/* 126 *//***/ (function(module, exports, __webpack_require__) {exports = module.exports = __webpack_require__(0)(false);@@ -53284,13 +53776,13 @@ exports = module.exports = __webpack_require__(0)(false);// module-exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);+exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);// exports/***/ }),-/* 112 */+/* 127 *//***/ (function(module, __webpack_exports__, __webpack_require__) {"use strict";@@ -53461,11 +53953,6 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });//////-//-//-//-//-///* harmony default export */ __webpack_exports__["default"] = ({name: "CreateTransaction",@@ -53475,7 +53962,98 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });},ready: function ready() {},- methods: {+ methods: {+ convertData: function convertData() {+ var data = {+ 'transactions': []+ };+ var tagList = [];+ var transactionType = void 0;+ var firstSource = void 0;+ var firstDestination = void 0;+ if (this.transactions.length > 1) {+ data.group_title = this.group_title;+ }++ // get transaction type from first transaction+ transactionType = this.transactionType ? this.transactionType.toLowerCase() : 'invalid';++ // if the transaction type is invalid, might just be that we can deduce it from+ // the presence of a source or destination account+ firstSource = this.transactions[0].source_account.type;+ firstDestination = this.transactions[0].destination_account.type;++ if ('invalid' === transactionType && ['Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstSource)) {+ console.log('Assumed this is a withdrawal.');+ transactionType = 'withdrawal';+ }++ if ('invalid' === transactionType && ['Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstDestination)) {+ console.log('Assumed this is a deposit.');+ transactionType = 'deposit';+ }++ for (var key in this.transactions) {+ if (this.transactions.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {+ tagList = [];++ // loop tags+ for (var tagKey in this.transactions[key].tags) {+ if (this.transactions[key].tags.hasOwnProperty(tagKey) && /^0$|^[1-9]\d*$/.test(tagKey) && key <= 4294967294) {+ tagList.push(this.transactions[key].tags[tagKey].text);+ }+ }++ data.transactions.push({+ type: transactionType,+ date: this.transactions[key].date,++ amount: this.transactions[key].amount,+ currency_id: this.transactions[key].currency_id,++ foreign_amount: this.transactions[key].foreign_amount.amount,+ foreign_currency_id: this.transactions[key].foreign_amount.currency_id,++ description: this.transactions[key].description,++ source_id: this.transactions[key].source_account.id,+ source_name: this.transactions[key].source_account.name,++ destination_id: this.transactions[key].destination_account.id,+ destination_name: this.transactions[key].destination_account.name,++ budget_id: this.transactions[key].budget,+ category_name: this.transactions[key].category,+ piggy_bank_id: this.transactions[key].piggy_bank,+ tags: tagList,++ interest_date: this.transactions[key].custom_fields.interest_date,+ book_date: this.transactions[key].custom_fields.book_date,+ process_date: this.transactions[key].custom_fields.process_date,+ due_date: this.transactions[key].custom_fields.due_date,+ payment_date: this.transactions[key].custom_fields.payment_date,+ invoice_date: this.transactions[key].custom_fields.invoice_date,+ internal_reference: this.transactions[key].custom_fields.internal_reference,+ notes: this.transactions[key].custom_fields.notes+ });+ }+ }+ console.log(data);++ return data;+ },+ submit: function submit(e) {+ var uri = './api/v1/transactions?_token=' + document.head.querySelector('meta[name="csrf-token"]').content;+ var data = this.convertData();++ axios.post(uri, data).then(function (response) {+ console.log(response);+ });+ if (e) {+ e.preventDefault();+ }+ },+addTransaction: function addTransaction(e) {this.transactions.push({description: "",@@ -53646,7 +54224,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });});/***/ }),-/* 113 */+/* 128 *//***/ (function(module, exports, __webpack_require__) {var render = function() {@@ -54022,8 +54600,6 @@ var render = function() {])}),_vm._v(" "),- _c("pre", [_vm._v(_vm._s(_vm.$data))]),- _vm._v(" "),_c("div", { staticClass: "row" }, [_c("div", { staticClass: "col-lg-12" }, [_c("p", [@@ -54036,10 +54612,16 @@ var render = function() {[_vm._v("Add another split")]),_vm._v(" "),- _c("button", { staticClass: "btn btn-success" }, [_vm._v("Submit")])+ _c(+ "button",+ { staticClass: "btn btn-success", on: { click: _vm.submit } },+ [_vm._v("Submit")]+ )])])- ])+ ]),+ _vm._v(" "),+ _c("pre", [_vm._v(_vm._s(_vm.$data))])],2)@@ -54067,497 +54649,5 @@ if (false) {}}-/***/ }),-/* 114 */-/***/ (function(module, exports, __webpack_require__) {--var disposed = false-function injectStyle (ssrContext) {- if (disposed) return- __webpack_require__(115)-}-var normalizeComponent = __webpack_require__(2)-/* script */-var __vue_script__ = __webpack_require__(117)-/* template */-var __vue_template__ = __webpack_require__(118)-/* template functional */-var __vue_template_functional__ = false-/* styles */-var __vue_styles__ = injectStyle-/* scopeId */-var __vue_scopeId__ = "data-v-73a9dd75"-/* moduleIdentifier (server only) */-var __vue_module_identifier__ = null-var Component = normalizeComponent(- __vue_script__,- __vue_template__,- __vue_template_functional__,- __vue_styles__,- __vue_scopeId__,- __vue_module_identifier__-)-Component.options.__file = "resources/assets/js/components/transactions/CustomString.vue"--/* hot reload */-if (false) {(function () {- var hotAPI = require("vue-hot-reload-api")- hotAPI.install(require("vue"), false)- if (!hotAPI.compatible) return- module.hot.accept()- if (!module.hot.data) {- hotAPI.createRecord("data-v-73a9dd75", Component.options)- } else {- hotAPI.reload("data-v-73a9dd75", Component.options)- }- module.hot.dispose(function (data) {- disposed = true- })-})()}--module.exports = Component.exports---/***/ }),-/* 115 */-/***/ (function(module, exports, __webpack_require__) {--// style-loader: Adds some css to the DOM by adding a <style> tag--// load the styles-var content = __webpack_require__(116);-if(typeof content === 'string') content = [[module.i, content, '']];-if(content.locals) module.exports = content.locals;-// add the styles to the DOM-var update = __webpack_require__(1)("7a8e435e", content, false, {});-// Hot Module Replacement-if(false) {- // When the styles change, update the <style> tags- if(!content.locals) {- module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-73a9dd75\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomString.vue", function() {- var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-73a9dd75\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomString.vue");- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];- update(newContent);- });- }- // When the module is disposed, remove the <style> tags- module.hot.dispose(function() { update(); });-}--/***/ }),-/* 116 */-/***/ (function(module, exports, __webpack_require__) {--exports = module.exports = __webpack_require__(0)(false);-// imports---// module-exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);--// exports---/***/ }),-/* 117 */-/***/ (function(module, __webpack_exports__, __webpack_require__) {--"use strict";-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//--/* harmony default export */ __webpack_exports__["default"] = ({- name: "CustomString",- props: {- title: String,- name: String,- value: String- },- methods: {- handleInput: function handleInput(e) {- this.$emit('input', this.$refs.str.value);- }- }-});--/***/ }),-/* 118 */-/***/ (function(module, exports, __webpack_require__) {--var render = function() {- var _vm = this- var _h = _vm.$createElement- var _c = _vm._self._c || _h- return _c("div", { staticClass: "form-group" }, [- _c("div", { staticClass: "col-sm-12 text-sm" }, [- _vm._v("\n " + _vm._s(_vm.title) + "\n ")- ]),- _vm._v(" "),- _c("div", { staticClass: "col-sm-12" }, [- _c("input", {- ref: "str",- staticClass: "form-control",- attrs: {- type: "text",- name: _vm.name,- title: _vm.title,- autocomplete: "off",- placeholder: _vm.title- },- domProps: { value: _vm.value },- on: { input: _vm.handleInput }- })- ])- ])-}-var staticRenderFns = []-render._withStripped = true-module.exports = { render: render, staticRenderFns: staticRenderFns }-if (false) {- module.hot.accept()- if (module.hot.data) {- require("vue-hot-reload-api") .rerender("data-v-73a9dd75", module.exports)- }-}--/***/ }),-/* 119 */-/***/ (function(module, exports, __webpack_require__) {--var disposed = false-function injectStyle (ssrContext) {- if (disposed) return- __webpack_require__(120)-}-var normalizeComponent = __webpack_require__(2)-/* script */-var __vue_script__ = __webpack_require__(122)-/* template */-var __vue_template__ = __webpack_require__(123)-/* template functional */-var __vue_template_functional__ = false-/* styles */-var __vue_styles__ = injectStyle-/* scopeId */-var __vue_scopeId__ = "data-v-75bc1a7c"-/* moduleIdentifier (server only) */-var __vue_module_identifier__ = null-var Component = normalizeComponent(- __vue_script__,- __vue_template__,- __vue_template_functional__,- __vue_styles__,- __vue_scopeId__,- __vue_module_identifier__-)-Component.options.__file = "resources/assets/js/components/transactions/CustomAttachments.vue"--/* hot reload */-if (false) {(function () {- var hotAPI = require("vue-hot-reload-api")- hotAPI.install(require("vue"), false)- if (!hotAPI.compatible) return- module.hot.accept()- if (!module.hot.data) {- hotAPI.createRecord("data-v-75bc1a7c", Component.options)- } else {- hotAPI.reload("data-v-75bc1a7c", Component.options)- }- module.hot.dispose(function (data) {- disposed = true- })-})()}--module.exports = Component.exports---/***/ }),-/* 120 */-/***/ (function(module, exports, __webpack_require__) {--// style-loader: Adds some css to the DOM by adding a <style> tag--// load the styles-var content = __webpack_require__(121);-if(typeof content === 'string') content = [[module.i, content, '']];-if(content.locals) module.exports = content.locals;-// add the styles to the DOM-var update = __webpack_require__(1)("55496da8", content, false, {});-// Hot Module Replacement-if(false) {- // When the styles change, update the <style> tags- if(!content.locals) {- module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-75bc1a7c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomAttachments.vue", function() {- var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-75bc1a7c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomAttachments.vue");- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];- update(newContent);- });- }- // When the module is disposed, remove the <style> tags- module.hot.dispose(function() { update(); });-}--/***/ }),-/* 121 */-/***/ (function(module, exports, __webpack_require__) {--exports = module.exports = __webpack_require__(0)(false);-// imports---// module-exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);--// exports---/***/ }),-/* 122 */-/***/ (function(module, __webpack_exports__, __webpack_require__) {--"use strict";-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//--/* harmony default export */ __webpack_exports__["default"] = ({- name: "CustomAttachments",- props: {- title: String,- name: String- }-});--/***/ }),-/* 123 */-/***/ (function(module, exports, __webpack_require__) {--var render = function() {- var _vm = this- var _h = _vm.$createElement- var _c = _vm._self._c || _h- return _c("div", { staticClass: "form-group" }, [- _c("div", { staticClass: "col-sm-12 text-sm" }, [- _vm._v("\n " + _vm._s(_vm.title) + "\n ")- ]),- _vm._v(" "),- _c("div", { staticClass: "col-sm-12" }, [- _c("input", {- staticClass: "form-control",- attrs: {- multiple: "multiple",- autocomplete: "off",- placeholder: _vm.title,- title: _vm.title,- name: _vm.name,- type: "file"- }- })- ])- ])-}-var staticRenderFns = []-render._withStripped = true-module.exports = { render: render, staticRenderFns: staticRenderFns }-if (false) {- module.hot.accept()- if (module.hot.data) {- require("vue-hot-reload-api") .rerender("data-v-75bc1a7c", module.exports)- }-}--/***/ }),-/* 124 */-/***/ (function(module, exports, __webpack_require__) {--var disposed = false-function injectStyle (ssrContext) {- if (disposed) return- __webpack_require__(125)-}-var normalizeComponent = __webpack_require__(2)-/* script */-var __vue_script__ = __webpack_require__(127)-/* template */-var __vue_template__ = __webpack_require__(128)-/* template functional */-var __vue_template_functional__ = false-/* styles */-var __vue_styles__ = injectStyle-/* scopeId */-var __vue_scopeId__ = "data-v-11018d84"-/* moduleIdentifier (server only) */-var __vue_module_identifier__ = null-var Component = normalizeComponent(- __vue_script__,- __vue_template__,- __vue_template_functional__,- __vue_styles__,- __vue_scopeId__,- __vue_module_identifier__-)-Component.options.__file = "resources/assets/js/components/transactions/CustomTextArea.vue"--/* hot reload */-if (false) {(function () {- var hotAPI = require("vue-hot-reload-api")- hotAPI.install(require("vue"), false)- if (!hotAPI.compatible) return- module.hot.accept()- if (!module.hot.data) {- hotAPI.createRecord("data-v-11018d84", Component.options)- } else {- hotAPI.reload("data-v-11018d84", Component.options)- }- module.hot.dispose(function (data) {- disposed = true- })-})()}--module.exports = Component.exports---/***/ }),-/* 125 */-/***/ (function(module, exports, __webpack_require__) {--// style-loader: Adds some css to the DOM by adding a <style> tag--// load the styles-var content = __webpack_require__(126);-if(typeof content === 'string') content = [[module.i, content, '']];-if(content.locals) module.exports = content.locals;-// add the styles to the DOM-var update = __webpack_require__(1)("0b0c8efa", content, false, {});-// Hot Module Replacement-if(false) {- // When the styles change, update the <style> tags- if(!content.locals) {- module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11018d84\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomTextArea.vue", function() {- var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11018d84\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./CustomTextArea.vue");- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];- update(newContent);- });- }- // When the module is disposed, remove the <style> tags- module.hot.dispose(function() { update(); });-}--/***/ }),-/* 126 */-/***/ (function(module, exports, __webpack_require__) {--exports = module.exports = __webpack_require__(0)(false);-// imports---// module-exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);--// exports---/***/ }),-/* 127 */-/***/ (function(module, __webpack_exports__, __webpack_require__) {--"use strict";-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });-//-//-//-//-//-//-//-//-//-//-//-//-//-//-//--/* harmony default export */ __webpack_exports__["default"] = ({- name: "CustomTextarea",- props: {- title: String,- name: String,- value: String- },- methods: {- handleInput: function handleInput(e) {- this.$emit('input', this.$refs.str.value);- }- }-});--/***/ }),-/* 128 */-/***/ (function(module, exports, __webpack_require__) {--var render = function() {- var _vm = this- var _h = _vm.$createElement- var _c = _vm._self._c || _h- return _c("div", { staticClass: "form-group" }, [- _c("div", { staticClass: "col-sm-12 text-sm" }, [- _vm._v("\n " + _vm._s(_vm.title) + "\n ")- ]),- _vm._v(" "),- _c("div", { staticClass: "col-sm-12" }, [- _c("textarea", {- ref: "str",- staticClass: "form-control",- attrs: {- name: _vm.name,- title: _vm.title,- autocomplete: "off",- placeholder: _vm.title- },- domProps: { value: _vm.value },- on: { input: _vm.handleInput }- })- ])- ])-}-var staticRenderFns = []-render._withStripped = true-module.exports = { render: render, staticRenderFns: staticRenderFns }-if (false) {- module.hot.accept()- if (module.hot.data) {- require("vue-hot-reload-api") .rerender("data-v-11018d84", module.exports)- }-}-/***/ })/******/ ]);\ No newline at end of filediff --git a/resources/assets/js/components/transactions/CreateTransaction.vue b/resources/assets/js/components/transactions/CreateTransaction.vueindex 5de1c2b1cb..62d0cd427f 100644--- a/resources/assets/js/components/transactions/CreateTransaction.vue+++ b/resources/assets/js/components/transactions/CreateTransaction.vue@@ -38,8 +38,6 @@v-model="group_title"title="Description of the split transaction" autocomplete="off"placeholder="Description of the split transaction">--<p class="help-block">If you create a split transaction, there must be a global description for all splitsof the transaction.@@ -144,12 +142,8 @@<tagsv-model="transaction.tags"></tags>- <!-- custom string fields -->- <custom-transaction-fields v-model="transaction.custom_fields"></custom-transaction-fields>-- <!-- custom date fields -->-- <!-- custom other fields -->+ <custom-transaction-fields+ v-model="transaction.custom_fields"></custom-transaction-fields></div></div></div>@@ -157,15 +151,16 @@</div></div></div>- <pre>{{ $data }}</pre>+<div class="row"><div class="col-lg-12"><p>- <button class="btn btn-primary" v-on:click="addTransaction">Add another split</button>- <button class="btn btn-success">Submit</button>+ <button class="btn btn-primary" @click="addTransaction">Add another split</button>+ <button class="btn btn-success" @click="submit">Submit</button></p></div></div>+ <pre>{{ $data }}</pre></form></template>@@ -180,6 +175,101 @@},methods: {+ convertData: function () {+ let data = {+ 'transactions': [],+ };+ let tagList = [];+ let transactionType;+ let firstSource;+ let firstDestination;+ if (this.transactions.length > 1) {+ data.group_title = this.group_title;+ }++ // get transaction type from first transaction+ transactionType = this.transactionType ? this.transactionType.toLowerCase() : 'invalid';++ // if the transaction type is invalid, might just be that we can deduce it from+ // the presence of a source or destination account+ firstSource = this.transactions[0].source_account.type;+ firstDestination = this.transactions[0].destination_account.type;+++ if ('invalid' === transactionType && ['Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstSource)) {+ console.log('Assumed this is a withdrawal.');+ transactionType = 'withdrawal';+ }++ if ('invalid' === transactionType && ['Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstDestination)) {+ console.log('Assumed this is a deposit.');+ transactionType = 'deposit';+ }++ for (let key in this.transactions) {+ if (this.transactions.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {+ tagList = [];++ // loop tags+ for (let tagKey in this.transactions[key].tags) {+ if (this.transactions[key].tags.hasOwnProperty(tagKey) && /^0$|^[1-9]\d*$/.test(tagKey) && key <= 4294967294) {+ tagList.push(this.transactions[key].tags[tagKey].text);+ }+ }+++ data.transactions.push(+ {+ type: transactionType,+ date: this.transactions[key].date,++ amount: this.transactions[key].amount,+ currency_id: this.transactions[key].currency_id,++ foreign_amount: this.transactions[key].foreign_amount.amount,+ foreign_currency_id: this.transactions[key].foreign_amount.currency_id,++ description: this.transactions[key].description,++ source_id: this.transactions[key].source_account.id,+ source_name: this.transactions[key].source_account.name,++ destination_id: this.transactions[key].destination_account.id,+ destination_name: this.transactions[key].destination_account.name,++ budget_id: this.transactions[key].budget,+ category_name: this.transactions[key].category,+ piggy_bank_id: this.transactions[key].piggy_bank,+ tags: tagList,++ interest_date: this.transactions[key].custom_fields.interest_date,+ book_date: this.transactions[key].custom_fields.book_date,+ process_date: this.transactions[key].custom_fields.process_date,+ due_date: this.transactions[key].custom_fields.due_date,+ payment_date: this.transactions[key].custom_fields.payment_date,+ invoice_date: this.transactions[key].custom_fields.invoice_date,+ internal_reference: this.transactions[key].custom_fields.internal_reference,+ notes: this.transactions[key].custom_fields.notes+ }+ );+ }+ }+ console.log(data);++ return data;+ },+ submit(e) {+ const uri = './api/v1/transactions?_token=' + document.head.querySelector('meta[name="csrf-token"]').content;+ const data = this.convertData();++ axios.post(uri, data)+ .then(response => {+ console.log(response);+ });+ if (e) {+ e.preventDefault();+ }+ },addTransaction: function (e) {this.transactions.push({description: "",