(self.webpackChunk=self.webpackChunk||[]).push([[847],{232:(e,t,a)=>{"use strict";a.r(t);var n=a(7760),s=a.n(n),i=a(7152),o=a(4605);window.$=window.jQuery=a(9755),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");var c=document.head.querySelector('meta[name="locale"]');localStorage.locale=c?c.content:"en_US",a(6891),a(3734),a(7632),a(5432),window.vuei18n=i.Z,window.uiv=o,s().use(vuei18n),s().use(o),window.Vue=s()},9899:(e,t,a)=>{"use strict";a.d(t,{Z:()=>x});var n=a(7760),s=a.n(n),i=a(629),o=a(4478),r=a(3465);const c={namespaced:!0,state:function(){return{transactionType:"any",groupTitle:"",transactions:[],customDateFields:{interest_date:!1,book_date:!1,process_date:!1,due_date:!1,payment_date:!1,invoice_date:!1},defaultTransaction:(0,o.f$)(),defaultErrors:(0,o.kQ)()}},getters:{transactions:function(e){return e.transactions},defaultErrors:function(e){return e.defaultErrors},groupTitle:function(e){return e.groupTitle},transactionType:function(e){return e.transactionType},accountToTransaction:function(e){return e.accountToTransaction},defaultTransaction:function(e){return e.defaultTransaction},sourceAllowedTypes:function(e){return e.sourceAllowedTypes},destinationAllowedTypes:function(e){return e.destinationAllowedTypes},allowedOpposingTypes:function(e){return e.allowedOpposingTypes},customDateFields:function(e){return e.customDateFields}},actions:{},mutations:{addTransaction:function(e){var t=r(e.defaultTransaction);t.errors=r(e.defaultErrors),e.transactions.push(t)},resetErrors:function(e,t){e.transactions[t.index].errors=r(e.defaultErrors)},resetTransactions:function(e){e.transactions=[]},setGroupTitle:function(e,t){e.groupTitle=t.groupTitle},setCustomDateFields:function(e,t){e.customDateFields=t},deleteTransaction:function(e,t){e.transactions.splice(t.index,1),e.transactions.length},setTransactionType:function(e,t){e.transactionType=t},setAllowedOpposingTypes:function(e,t){e.allowedOpposingTypes=t},setAccountToTransaction:function(e,t){e.accountToTransaction=t},updateField:function(e,t){e.transactions[t.index][t.field]=t.value},setTransactionError:function(e,t){e.transactions[t.index].errors[t.field]=t.errors},setDestinationAllowedTypes:function(e,t){e.destinationAllowedTypes=t},setSourceAllowedTypes:function(e,t){e.sourceAllowedTypes=t}}};const l={namespaced:!0,state:function(){return{}},getters:{},actions:{},mutations:{}};var u=a(9119),_=a(3894),d=a(584),p=a(7090),g=a(4431),m=a(8358),h=a(4135),y=a(3703);const f={namespaced:!0,state:function(){return{viewRange:"default",start:null,end:null,defaultStart:null,defaultEnd:null}},getters:{start:function(e){return e.start},end:function(e){return e.end},defaultStart:function(e){return e.defaultStart},defaultEnd:function(e){return e.defaultEnd},viewRange:function(e){return e.viewRange}},actions:{initialiseStore:function(e){e.dispatch("restoreViewRange"),axios.get("./api/v1/preferences/viewRange").then((function(t){var a=t.data.data.attributes.data,n=e.getters.viewRange;e.commit("setViewRange",a),a!==n&&e.dispatch("setDatesFromViewRange"),a===n&&e.dispatch("restoreViewRangeDates")})).catch((function(){e.commit("setViewRange","1M"),e.dispatch("setDatesFromViewRange")}))},restoreViewRangeDates:function(e){localStorage.viewRangeStart&&e.commit("setStart",new Date(localStorage.viewRangeStart)),localStorage.viewRangeEnd&&e.commit("setEnd",new Date(localStorage.viewRangeEnd)),localStorage.viewRangeDefaultStart&&e.commit("setDefaultStart",new Date(localStorage.viewRangeDefaultStart)),localStorage.viewRangeDefaultEnd&&e.commit("setDefaultEnd",new Date(localStorage.viewRangeDefaultEnd))},restoreViewRange:function(e){var t=localStorage.getItem("viewRange");null!==t&&e.commit("setViewRange",t)},setDatesFromViewRange:function(e){var t,a,n=e.getters.viewRange,s=new Date;switch(n){case"1D":t=(0,u.Z)(s),a=(0,_.Z)(s);break;case"1W":t=(0,u.Z)((0,d.Z)(s,{weekStartsOn:1})),a=(0,_.Z)((0,p.Z)(s,{weekStartsOn:1}));break;case"1M":t=(0,u.Z)((0,y.Z)(s)),a=(0,_.Z)((0,h.Z)(s));break;case"3M":t=(0,u.Z)((0,g.Z)(s)),a=(0,_.Z)((0,m.Z)(s));break;case"6M":s.getMonth()<=5&&((t=new Date(s)).setMonth(0),t.setDate(1),t=(0,u.Z)(t),(a=new Date(s)).setMonth(5),a.setDate(30),a=(0,_.Z)(t)),s.getMonth()>5&&((t=new Date(s)).setMonth(6),t.setDate(1),t=(0,u.Z)(t),(a=new Date(s)).setMonth(11),a.setDate(31),a=(0,_.Z)(t));break;case"1Y":(t=new Date(s)).setMonth(0),t.setDate(1),t=(0,u.Z)(t),(a=new Date(s)).setMonth(11),a.setDate(31),a=(0,_.Z)(a)}e.commit("setStart",t),e.commit("setEnd",a),e.commit("setDefaultStart",t),e.commit("setDefaultEnd",a)}},mutations:{setStart:function(e,t){e.start=t,window.localStorage.setItem("viewRangeStart",t)},setEnd:function(e,t){e.end=t,window.localStorage.setItem("viewRangeEnd",t)},setDefaultStart:function(e,t){e.defaultStart=t,window.localStorage.setItem("viewRangeDefaultStart",t)},setDefaultEnd:function(e,t){e.defaultEnd=t,window.localStorage.setItem("viewRangeDefaultEnd",t)},setViewRange:function(e,t){e.viewRange=t,window.localStorage.setItem("viewRange",t)}}};var b=function(){return{listPageSize:33,timezone:""}},v={initialiseStore:function(e){localStorage.listPageSize&&(b.listPageSize=localStorage.listPageSize,e.commit("setListPageSize",{length:localStorage.listPageSize})),localStorage.listPageSize||axios.get("./api/v1/preferences/listPageSize").then((function(t){e.commit("setListPageSize",{length:parseInt(t.data.data.attributes.data)})})),localStorage.timezone&&(b.timezone=localStorage.timezone,e.commit("setTimezone",{timezone:localStorage.timezone})),localStorage.timezone||axios.get("./api/v1/configuration/app.timezone").then((function(t){e.commit("setTimezone",{timezone:t.data.data.value})}))}};const k={namespaced:!0,state:b,getters:{listPageSize:function(e){return e.listPageSize},timezone:function(e){return e.timezone}},actions:v,mutations:{setListPageSize:function(e,t){var a=parseInt(t.length);0!==a&&(e.listPageSize=a,localStorage.listPageSize=a)},setTimezone:function(e,t){""!==t.timezone&&(e.timezone=t.timezone,localStorage.timezone=t.timezone)}}};const w={namespaced:!0,state:function(){return{orderMode:!1,activeFilter:1}},getters:{orderMode:function(e){return e.orderMode},activeFilter:function(e){return e.activeFilter}},actions:{},mutations:{setOrderMode:function(e,t){e.orderMode=t},setActiveFilter:function(e,t){e.activeFilter=t}}};s().use(i.ZP);const x=new i.ZP.Store({namespaced:!0,modules:{root:k,transactions:{namespaced:!0,modules:{create:c,edit:l}},accounts:{namespaced:!0,modules:{index:w}},dashboard:{namespaced:!0,modules:{index:f}}},strict:false,plugins:[],state:{currencyPreference:{},locale:"en-US",listPageSize:50},mutations:{setCurrencyPreference:function(e,t){e.currencyPreference=t.payload},initialiseStore:function(e){if(localStorage.locale)e.locale=localStorage.locale;else{var t=document.head.querySelector('meta[name="locale"]');t&&(e.locale=t.content,localStorage.locale=t.content)}}},getters:{currencyCode:function(e){return e.currencyPreference.code},currencyPreference:function(e){return e.currencyPreference},currencyId:function(e){return e.currencyPreference.id},locale:function(e){return e.locale}},actions:{updateCurrencyPreference:function(e){localStorage.currencyPreference?e.commit("setCurrencyPreference",{payload:JSON.parse(localStorage.currencyPreference)}):axios.get("./api/v1/currencies/default").then((function(t){var a={id:parseInt(t.data.data.id),name:t.data.data.attributes.name,symbol:t.data.data.attributes.symbol,code:t.data.data.attributes.code,decimal_places:parseInt(t.data.data.attributes.decimal_places)};localStorage.currencyPreference=JSON.stringify(a),e.commit("setCurrencyPreference",{payload:a})})).catch((function(t){console.error(t),e.commit("setCurrencyPreference",{payload:{id:1,name:"Euro",symbol:"€",code:"EUR",decimal_places:2}})}))}}})},157:(e,t,a)=>{e.exports=new vuei18n({locale:document.documentElement.lang,fallbackLocale:"en",messages:{bg:a(7154),cs:a(6407),de:a(4726),en:a(3340),"en-us":a(3340),"en-gb":a(6318),es:a(5394),el:a(3636),fr:a(2551),hu:a(995),it:a(9112),nl:a(4671),nb:a(9085),pl:a(6238),fi:a(7868),"pt-br":a(6586),"pt-pt":a(8664),ro:a(1102),ru:a(753),"zh-tw":a(1715),"zh-cn":a(4556),sk:a(7049),sv:a(7921),vi:a(1497)}})},5718:(e,t,a)=>{"use strict";var n=a(9899),s=a(629),i=a(3324),o=a(7661),r=a(6753),c=a(5524),l=a(4478);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function d(e){for(var t=1;t1&&void 0===t.group_title&&(null===this.originalGroupTitle||""===this.originalGroupTitle)&&(t.group_title=this.transactions[0].description,a=!0),this.transactions)if(this.transactions.hasOwnProperty(o)&&/^0$|^[1-9]\d*$/.test(o)&&o<=4294967294){var r=this.transactions[o],c=this.originalTransactions.hasOwnProperty(o)?this.originalTransactions[o]:{},l={},_=["description","source_account_id","source_account_name","destination_account_id","destination_account_name","amount","foreign_amount","foreign_currency_id","category_name","budget_id","bill_id","interest_date","book_date","due_date","payment_date","invoice_date","external_url","internal_reference","external_id","notes","zoom_level","longitude","latitude"];for(var d in o>0&&(l.type=this.transactionType.toLowerCase(),"deposit"!==this.transactionType.toLowerCase()&&"transfer"!==this.transactionType.toLowerCase()||(r.destination_account_name=this.originalTransactions[0].destination_account_name,r.destination_account_id=this.originalTransactions[0].destination_account_id),"withdrawal"!==this.transactionType.toLowerCase()&&"transfer"!==this.transactionType.toLowerCase()||(r.source_account_name=this.originalTransactions[0].source_account_name,r.source_account_id=this.originalTransactions[0].source_account_id)),_)if(_.hasOwnProperty(d)&&/^0$|^[1-9]\d*$/.test(d)&&d<=4294967294){var p=_[d],m=p;if(null===r[p]&&void 0===c[p])continue;if(r[p]!==c[p]){if("foreign_amount"===m&&""===r[p])continue;if("foreign_currency_id"===m&&0===r[p])continue;"source_account_id"===m&&(m="source_id"),"source_account_name"===m&&(m="source_name"),"destination_account_id"===m&&(m="destination_id"),"destination_account_name"===m&&(m="destination_name"),l[m]=r[p],a=!0}}if(JSON.stringify(r.tags)!==JSON.stringify(c.tags)){if(l.tags=[],0!==r.tags.length)for(var h in r.tags)if(r.tags.hasOwnProperty(h)&&/^0$|^[1-9]\d*$/.test(h)&&h<=4294967294){var y=r.tags[h];"object"===u(y)&&null!==y&&l.tags.push(y.text),"string"==typeof y&&l.tags.push(y)}a=!0}if(this.compareLinks(r.links)!==this.compareLinks(c.links)&&(n=!0),void 0!==r.selectedAttachments&&!0===r.selectedAttachments&&(s=!0),this.date!==this.originalDate&&(a=!0,l.date=this.date),0===Object.keys(l).length&&i>1)l.transaction_journal_id=c.transaction_journal_id,t.transactions.push(g(l)),a=!0;else if(0!==Object.keys(l).length){var f;l.transaction_journal_id=null!==(f=c.transaction_journal_id)&&void 0!==f?f:0,t.transactions.push(g(l)),a=!0}}this.submitUpdate(t,a,n,s)},submitData:function(e,t){if(!e)return new Promise((function(e){e({})}));var a="./api/v1/transactions/"+this.groupId;return axios.put(a,t)},handleSubmissionResponse:function(e){this.submittedTransaction=!0;var t=[];if(void 0!==e.data){var a;this.returnedGroupId=null!==(a=parseInt(e.data.data.id))&&void 0!==a?a:null,this.returnedGroupTitle=null===e.data.data.attributes.group_title?e.data.data.attributes.transactions[0].description:e.data.data.attributes.group_title;var n=e.data.data.attributes.transactions;for(var s in n)n.hasOwnProperty(s)&&/^0$|^[1-9]\d*$/.test(s)&&s<=4294967294&&t.push(parseInt(n[s].transaction_journal_id))}else for(var i in this.transactions)this.transactions.hasOwnProperty(i)&&/^0$|^[1-9]\d*$/.test(i)&&i<=4294967294&&t.push(this.transactions[i].transaction_journal_id);return t=t.reverse(),new Promise((function(e){e({journals:t})}))},submitLinks:function(e){var t=this;return e?this.deleteAllOriginalLinks().then((function(){return t.submitNewLinks()})):new Promise((function(e){e({})}))},submitAttachments:function(e,t){if(!e)return new Promise((function(e){e({})}));var a=!1;for(var n in this.transactions)if(this.transactions.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=this.transactions[n],i=s.transaction_journal_id;void 0!==t&&(i=t.journals[n]);var o=s.selectedAttachments;this.transactions[n].transaction_journal_id=i,this.transactions[n].uploadTrigger=!0,o&&(a=!0)}!0===a&&(this.submittedAttachments=0)},finaliseSubmission:function(){if(0!==this.submittedAttachments){var e;if(!0===this.stayHere&&!1===this.inError&&(this.errorMessage="",this.warningMessage="",this.successMessage=this.$t("firefly.transaction_updated_link",{ID:this.groupId,title:this.returnedGroupTitle})),!1===this.stayHere&&!1===this.inError)window.location.href=(null!==(e=window.previousURL)&&void 0!==e?e:"/")+"?transaction_group_id="+this.groupId+"&message=updated";for(var t in this.enableSubmit=!0,this.submittedAttachments=-1,this.inError=!1,this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&this.transactions.hasOwnProperty(t)&&(this.transactions[t].clearTrigger=!0)}},submitUpdate:function(e,t,a,n){var s=this;this.inError=!1,this.submitData(t,e).then(this.handleSubmissionResponse).then((function(e){return Promise.all([s.submitLinks(a,e),s.submitAttachments(n,e)])})).then(this.finaliseSubmission).catch(this.handleSubmissionError)},compareLinks:function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&t.push({amount:e[a].amount,currency_code:e[a].currency_code,description:e[a].description,link_type_id:e[a].link_type_id,transaction_group_id:e[a].transaction_group_id,type:e[a].type});return JSON.stringify(t)},uploadAttachments:function(e){if(0===Object.keys(e).length)for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&this.updateField({index:t,field:"transaction_journal_id",value:e[t].transaction_journal_id});this.submittedAttachments=!0},parseErrors:function(e){for(var t in this.transactions)this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294&&this.resetErrors({index:t});var a,n,s;for(var i in this.successMessage="",this.errorMessage=this.$t("firefly.errors_submission"),void 0===e.errors&&(this.successMessage="",this.errorMessage=e.message),e.errors)if(e.errors.hasOwnProperty(i)){if("group_title"===i){this.groupTitleErrors=e.errors[i];continue}if("group_title"!==i)switch(n=parseInt(i.split(".")[1]),s=i.split(".")[2]){case"amount":case"description":case"date":case"tags":a={index:n,field:s,errors:e.errors[i]},this.setTransactionError(a);break;case"budget_id":a={index:n,field:"budget",errors:e.errors[i]},this.setTransactionError(a);break;case"bill_id":a={index:n,field:"bill",errors:e.errors[i]},this.setTransactionError(a);break;case"piggy_bank_id":a={index:n,field:"piggy_bank",errors:e.errors[i]},this.setTransactionError(a);break;case"category_name":a={index:n,field:"category",errors:e.errors[i]},this.setTransactionError(a);break;case"source_name":case"source_id":a={index:n,field:"source",errors:e.errors[i]},this.setTransactionError(a);break;case"destination_name":case"destination_id":a={index:n,field:"destination",errors:e.errors[i]},this.setTransactionError(a);break;case"foreign_amount":case"foreign_currency":a={index:n,field:"foreign_amount",errors:e.errors[i]},this.setTransactionError(a)}this.transactions[n]}},setTransactionError:function(e){this.transactions[e.index].errors[e.field]=e.errors},resetErrors:function(e){this.transactions[e.index].errors=g((0,l.kQ)())},deleteOriginalLinks:function(e){var t=[];for(var a in e.links)if(e.links.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294){var n="/api/v1/transaction_links/"+e.links[a].id;t.push(axios.delete(n))}return Promise.all(t)},deleteAllOriginalLinks:function(){var e=[];for(var t in this.transactions)if(this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var a=this.transactions[t],n=this.originalTransactions.hasOwnProperty(t)?this.originalTransactions[t]:{},s=this.compareLinks(a.links),i=this.compareLinks(n.links);s!==i?"[]"!==i&&e.push(this.deleteOriginalLinks(n)):e.push(new Promise((function(e){e({})})))}return Promise.all(e)},submitNewLinks:function(){var e=[];for(var t in this.transactions)if(this.transactions.hasOwnProperty(t)&&/^0$|^[1-9]\d*$/.test(t)&&t<=4294967294){var a=this.transactions[t];for(var n in a.links)if(a.links.hasOwnProperty(n)&&/^0$|^[1-9]\d*$/.test(n)&&n<=4294967294){var s=a.links[n],i={inward_id:a.transaction_journal_id,outward_id:a.transaction_journal_id,link_type_id:"something"},o=s.link_type_id.split("-");i.link_type_id=o[0],"inward"===o[1]&&(i.inward_id=s.transaction_journal_id),"outward"===o[1]&&(i.outward_id=s.transaction_journal_id),e.push(axios.post("./api/v1/transaction_links",i))}}return Promise.all(e)},submitTransactionLinksX:function(){},finalizeSubmitX:function(){if(this.submittedTransaction&&this.submittedAttachments&&this.submittedLinks){var e,t;if(!0===this.stayHere&&!1===this.inError&&0===this.returnedGroupId&&(this.errorMessage="",this.successMessage="",this.warningMessage=this.$t("firefly.transaction_updated_no_changes",{ID:this.returnedGroupId,title:this.returnedGroupTitle})),!1===this.stayHere&&!1===this.inError&&0===this.returnedGroupId)window.location.href=(null!==(e=window.previousURL)&&void 0!==e?e:"/")+"?transaction_group_id="+this.groupId+"&message=no_change";if(!0===this.stayHere&&!1===this.inError&&0!==this.returnedGroupId&&(this.errorMessage="",this.warningMessage="",this.successMessage=this.$t("firefly.transaction_updated_link",{ID:this.returnedGroupId,title:this.returnedGroupTitle})),!1===this.stayHere&&!1===this.inError&&0!==this.returnedGroupId)window.location.href=(null!==(t=window.previousURL)&&void 0!==t?t:"/")+"?transaction_group_id="+this.groupId+"&message=updated";for(var a in this.enableSubmit=!0,this.submittedTransaction=!1,this.submittedLinks=!1,this.submittedAttachments=!1,this.inError=!1,this.transactions)this.transactions.hasOwnProperty(a)&&/^0$|^[1-9]\d*$/.test(a)&&a<=4294967294&&this.transactions.hasOwnProperty(a)}}})};const h=(0,a(1900).Z)(m,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Alert",{attrs:{message:e.errorMessage,type:"danger"}}),e._v(" "),a("Alert",{attrs:{message:e.successMessage,type:"success"}}),e._v(" "),a("Alert",{attrs:{message:e.warningMessage,type:"warning"}}),e._v(" "),a("form",{attrs:{autocomplete:"off"},on:{submit:e.submitTransaction}},[a("SplitPills",{attrs:{transactions:e.transactions}}),e._v(" "),a("div",{staticClass:"tab-content"},e._l(this.transactions,(function(t,n){return a("SplitForm",{key:n,attrs:{count:e.transactions.length,transaction:t,"allowed-opposing-types":e.allowedOpposingTypes,"custom-fields":e.customFields,date:e.date,index:n,"transaction-type":e.transactionType,"destination-allowed-types":e.destinationAllowedTypes,"source-allowed-types":e.sourceAllowedTypes,"allow-switch":!1},on:{"uploaded-attachments":function(t){return e.uploadedAttachment(t)},"set-marker-location":function(t){return e.storeLocation(t)},"set-account":function(t){return e.storeAccountValue(t)},"set-date":function(t){return e.storeDate(t)},"set-field":function(t){return e.storeField(t)},"remove-transaction":function(t){return e.removeTransaction(t)},"selected-attachments":function(t){return e.selectedAttachments(t)}}})})),1),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[e.transactions.length>1?a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("TransactionGroupTitle",{attrs:{errors:this.groupTitleErrors},on:{"set-group-title":function(t){return e.storeGroupTitle(t)}},model:{value:this.groupTitle,callback:function(t){e.$set(this,"groupTitle",t)},expression:"this.groupTitle"}})],1)])])]):e._e()]),e._v(" "),a("div",{staticClass:"col-xl-6 col-lg-6 col-md-12 col-sm-12 col-xs-12"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n  \n ")]),e._v(" "),a("button",{staticClass:"btn btn-outline-primary btn-block",attrs:{type:"button"},on:{click:e.addTransaction}},[a("i",{staticClass:"far fa-clone"}),e._v("\n "+e._s(e.$t("firefly.add_another_split"))+"\n ")])]),e._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"text-xs d-none d-lg-block d-xl-block"},[e._v("\n  \n ")]),e._v(" "),a("button",{staticClass:"btn btn-info btn-block",attrs:{disabled:!e.enableSubmit},on:{click:e.submitTransaction}},[e.enableSubmit?a("span",[a("i",{staticClass:"far fa-save"}),e._v(" "+e._s(e.$t("firefly.update_transaction")))]):e._e(),e._v(" "),e.enableSubmit?e._e():a("span",[a("i",{staticClass:"fas fa-spinner fa-spin"})])])])]),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[e._v("\n  \n ")]),e._v(" "),a("div",{staticClass:"col"},[a("div",{staticClass:"form-check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.stayHere,expression:"stayHere"}],staticClass:"form-check-input",attrs:{id:"stayHere",type:"checkbox"},domProps:{checked:Array.isArray(e.stayHere)?e._i(e.stayHere,null)>-1:e.stayHere},on:{change:function(t){var a=e.stayHere,n=t.target,s=!!n.checked;if(Array.isArray(a)){var i=e._i(a,null);n.checked?i<0&&(e.stayHere=a.concat([null])):i>-1&&(e.stayHere=a.slice(0,i).concat(a.slice(i+1)))}else e.stayHere=s}}}),e._v(" "),a("label",{staticClass:"form-check-label",attrs:{for:"stayHere"}},[a("span",{staticClass:"small"},[e._v(e._s(e.$t("firefly.after_update_create_another")))])])])])])])])])])],1)],1)}),[],!1,null,"4a1cf39d",null).exports;var y=a(7760),f=a.n(y);a(232),f().config.productionTip=!1;var b=a(157),v={};new(f())({i18n:b,store:n.Z,render:function(e){return e(h,{props:v})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference")}}).$mount("#transactions_edit")},4478:(e,t,a)=>{"use strict";function n(){return{description:[],amount:[],source:[],destination:[],currency:[],foreign_currency:[],foreign_amount:[],date:[],custom_dates:[],budget:[],category:[],bill:[],tags:[],piggy_bank:[],internal_reference:[],external_url:[],notes:[],location:[]}}function s(){return{description:"",transaction_journal_id:0,source_account_id:null,source_account_name:null,source_account_type:null,source_account_currency_id:null,source_account_currency_code:null,source_account_currency_symbol:null,destination_account_id:null,destination_account_name:null,destination_account_type:null,destination_account_currency_id:null,destination_account_currency_code:null,destination_account_currency_symbol:null,attachments:!1,selectedAttachments:!1,uploadTrigger:!1,clearTrigger:!1,source_account:{id:0,name:"",name_with_balance:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},destination_account:{id:0,name:"",type:"",currency_id:0,currency_name:"",currency_code:"",currency_decimal_places:2},amount:"",currency_id:0,foreign_amount:"",foreign_currency_id:0,category:null,budget_id:0,bill_id:0,piggy_bank_id:0,tags:[],interest_date:null,book_date:null,process_date:null,due_date:null,payment_date:null,invoice_date:null,internal_reference:null,external_url:null,external_id:null,notes:null,links:[],zoom_level:null,longitude:null,latitude:null,errors:{}}}a.d(t,{kQ:()=>n,f$:()=>s})},6665:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var n=a(4015),s=a.n(n),i=a(3645),o=a.n(i)()(s());o.push([e.id,".vue-tags-input{max-width:100%!important;display:block}.ti-input,.vue-tags-input{width:100%;border-radius:.25rem}.ti-input{max-width:100%}.ti-new-tag-input{font-size:1rem}","",{version:3,sources:["webpack://./src/components/transactions/TransactionTags.vue"],names:[],mappings:"AA2HA,gBAEA,wBAAA,CACA,aAEA,CAEA,0BANA,UAAA,CAGA,oBAOA,CAJA,UAEA,cAEA,CAEA,kBACA,cACA",sourcesContent:['\x3c!--\n - TransactionTags.vue\n - Copyright (c) 2021 james@firefly-iii.org\n -\n - This file is part of Firefly III (https://github.com/firefly-iii).\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n --\x3e\n\n\n\n