(self.webpackChunk=self.webpackChunk||[]).push([[111],{9489:(e,t,a)=>{"use strict";a.r(t);var n=a(7760),o=a.n(n),i=a(7152),r=a(4605);window.$=window.jQuery=a(9755),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var s=document.head.querySelector('meta[name="csrf-token"]');s?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=s.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=r,o().use(vuei18n),o().use(r),window.Vue=o()},6149:(e,t,a)=>{"use strict";a.d(t,{Z:()=>D});var n=a(7760),o=a.n(n),i=a(629),r=a(6348),s=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,r.f$)(),defaultErrors:(0,r.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=s(e.defaultTransaction);t.errors=s(e.defaultErrors),e.transactions.push(t)},resetErrors:function(e,t){e.transactions[t.index].errors=s(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 _=a(9119),d=a(3894),u=a(584),p=a(7090),g=a(4431),y=a(8358),m=a(4135),h=a(3703);const b={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,o=new Date;switch(n){case"1D":t=(0,_.Z)(o),a=(0,d.Z)(o);break;case"1W":t=(0,_.Z)((0,u.Z)(o,{weekStartsOn:1})),a=(0,d.Z)((0,p.Z)(o,{weekStartsOn:1}));break;case"1M":t=(0,_.Z)((0,h.Z)(o)),a=(0,d.Z)((0,m.Z)(o));break;case"3M":t=(0,_.Z)((0,g.Z)(o)),a=(0,d.Z)((0,y.Z)(o));break;case"6M":o.getMonth()<=5&&((t=new Date(o)).setMonth(0),t.setDate(1),t=(0,_.Z)(t),(a=new Date(o)).setMonth(5),a.setDate(30),a=(0,d.Z)(t)),o.getMonth()>5&&((t=new Date(o)).setMonth(6),t.setDate(1),t=(0,_.Z)(t),(a=new Date(o)).setMonth(11),a.setDate(31),a=(0,d.Z)(t));break;case"1Y":(t=new Date(o)).setMonth(0),t.setDate(1),t=(0,_.Z)(t),(a=new Date(o)).setMonth(11),a.setDate(31),a=(0,d.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 f=function(){return{listPageSize:33,timezone:"",cacheKey:{age:0,value:"empty"}}},v={initialiseStore:function(e){if(localStorage.cacheKey){var t=JSON.parse(localStorage.cacheKey);Date.now()-t.age>864e5?e.commit("refreshCacheKey"):e.commit("setCacheKey",t)}else e.commit("refreshCacheKey");localStorage.listPageSize&&(f.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&&(f.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:f,getters:{listPageSize:function(e){return e.listPageSize},timezone:function(e){return e.timezone},cacheKey:function(e){return e.cacheKey.value}},actions:v,mutations:{refreshCacheKey:function(e){var t=Date.now(),a=Array(9).join((Math.random().toString(36)+"00000000000000000").slice(2,18)).slice(0,8),n={age:t,value:a};localStorage.cacheKey=JSON.stringify(n),e.cacheKey={age:t,value:a}},setCacheKey:function(e,t){localStorage.cacheKey=JSON.stringify(t),e.cacheKey=t},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}}};o().use(i.ZP);const D=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:b}}},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}})}))}}})},7236:(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)}})},451:(e,t,a)=>{"use strict";var n=a(7760),o=a.n(n),i=a(6149),r=(0,n.createStaticVNode)('
Treemap categories
Treemap accounts
',1),s={class:"row"},c={class:"col-lg-8 col-md-6 col-sm-12 col-xs-12"},l={class:"col-lg-4 col-md-6 col-sm-12 col-xs-12"},_=(0,n.createVNode)("span",{class:"fas fa-sync"},null,-1),d={class:"row"},u={class:"col"},p={class:"card"},g={class:"card-body p-0"},y=(0,n.createVNode)("span",{class:"fa fa-spinner"},null,-1),m={key:0},h={key:0,class:"fas fa-long-arrow-alt-right"},b={key:1,class:"fas fa-long-arrow-alt-left"},f={key:2,class:"fas fa-long-arrows-alt-h"},v={key:0,class:"fas fa-angle-right"},k={key:0,class:"text-success"},w={key:1,class:"text-danger"},D={key:2,class:"text-muted"},S={key:0,class:"btn-group btn-group-sm"},z={class:"dropdown"},I=(0,n.createVNode)("span",{class:"fa fas fa-pencil-alt"},null,-1),A=(0,n.createVNode)("span",{class:"fa far fa-trash"},null,-1),j=(0,n.createVNode)("span",{class:"fa fa-caret-down"},null,-1),x=(0,n.createVNode)("span",{class:"fa fa-caret-up"},null,-1),T={class:"card-footer"},C={class:"row"},P={class:"col-lg-8 col-md-6 col-sm-12 col-xs-12"},N={class:"col-lg-4 col-md-6 col-sm-12 col-xs-12"},B=(0,n.createVNode)("span",{class:"fas fa-sync"},null,-1),M={class:"row"},O={class:"col-xl-2 col-lg-4 col-sm-6 col-xs-12"},L={class:"card"},R={class:"card-header"},V={class:"card-title"},F={class:"card-body"};var Z=a(7757),E=a.n(Z),K=a(629),q=a(7955),U=a(734),W=a(3703),G=a(4135),H=a(7176);function Q(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);ae;){var a=(0,W.Z)(t),n=(0,G.Z)(t);this.ranges.push({start:a,end:n}),t=(0,U.Z)(t,{months:1})}},formatDate:function(e,t){return(0,q.Z)(e,t)},downloadTransactionList:function(e){var t=this;(0,H.y)().then(function(){var a,n=(a=E().mark((function a(n){var o,i;return E().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:o=(0,q.Z)(t.start,"y-MM-dd"),i=(0,q.Z)(t.end,"y-MM-dd"),console.log(t.urlEnd),console.log(t.urlStart),null!==t.urlEnd&&null!==t.urlStart&&(o=(0,q.Z)(t.urlStart,"y-MM-dd"),i=(0,q.Z)(t.urlEnd,"y-MM-dd")),n.get("./api/v1/transactions?type="+t.type+"&page="+e+"&start="+o+"&end="+i+"&cache="+t.cacheKey).then((function(e){var a;t.total=parseInt(e.data.meta.pagination.total),(a=t.transactions).push.apply(a,Q(e.data.data)),t.downloaded=!0,t.createTransactionRows()}));case 6:case"end":return a.stop()}}),a)})),function(){var e=this,t=arguments;return new Promise((function(n,o){var i=a.apply(e,t);function r(e){J(i,n,o,r,s,"next",e)}function s(e){J(i,n,o,r,s,"throw",e)}r(void 0)}))});return function(e){return n.apply(this,arguments)}}())},createTransactionRows:function(){for(var e in this.transactionRows=[],this.transactions){var t=this.transactions[e],a=this.getTransactionRow(t,0);if(this.transactionRows.push(a),t.attributes.transactions.length>1&&(a.description=t.attributes.group_title,a.split=!0,a.collapsed=!0===t.collapsed||void 0===t.collapsed,a.amount=t.attributes.transactions.map((function(e){return Number(e.amount)})).reduce((function(e,t){return e+t})),a.source_name="",a.source_id="",a.destination_name="",a.destination_id="",!a.collapsed))for(var n=0;nc?1:0:l(s).localeCompare(l(c),r,i);function l(e){return null==e?"":e instanceof Object?Object.keys(e).sort().map((function(t){return l(e[t])})).join(" "):String(e)}}}),render:function(e,t,a,o,i,Z){var E=(0,n.resolveComponent)("b-pagination"),K=(0,n.resolveComponent)("b-table");return(0,n.openBlock)(),(0,n.createBlock)("div",null,[r,(0,n.createVNode)("div",s,[(0,n.createVNode)("div",c,[(0,n.createVNode)(E,{modelValue:i.currentPage,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.currentPage=e}),"total-rows":i.total,"per-page":i.perPage,"aria-controls":"my-table"},null,8,["modelValue","total-rows","per-page"])]),(0,n.createVNode)("div",l,[(0,n.createVNode)("button",{onClick:t[2]||(t[2]=function(){return Z.newCacheKey&&Z.newCacheKey.apply(Z,arguments)}),class:"btn btn-sm float-right btn-info"},[_])])]),(0,n.createVNode)("div",d,[(0,n.createVNode)("div",u,[(0,n.createVNode)("div",p,[(0,n.createVNode)("div",g,[(0,n.createVNode)(K,{id:"my-table",small:"",striped:"",hover:"",responsive:"md","primary-key":"key","no-local-sorting":!1,items:i.transactionRows,fields:i.fields,"per-page":i.perPage,"sort-icon-left":"",ref:"table","current-page":i.currentPage,busy:i.loading,"sort-desc":i.sortDesc,"sort-compare":Z.tableSortCompare},{"table-busy":(0,n.withCtx)((function(){return[y]})),"cell(type)":(0,n.withCtx)((function(e){return[e.item.split&&null!==e.item.split_parent?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)("span",m,["deposit"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",h)):"withdrawal"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",b)):"transfer"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",f)):(0,n.createCommentVNode)("",!0)]))]})),"cell(description)":(0,n.withCtx)((function(e){return[e.item.split&&null!==e.item.split_parent?((0,n.openBlock)(),(0,n.createBlock)("span",v)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)("a",{class:!1===e.item.active?"text-muted":"",href:"./transactions/show/"+e.item.id,title:e.value},(0,n.toDisplayString)(e.value),11,["href","title"])]})),"cell(amount)":(0,n.withCtx)((function(e){return["deposit"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",k,(0,n.toDisplayString)(Intl.NumberFormat(i.locale,{style:"currency",currency:e.item.currency_code}).format(e.item.amount)),1)):"withdrawal"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",w,(0,n.toDisplayString)(Intl.NumberFormat(i.locale,{style:"currency",currency:e.item.currency_code}).format(-e.item.amount)),1)):"transfer"===e.item.type?((0,n.openBlock)(),(0,n.createBlock)("span",D,(0,n.toDisplayString)(Intl.NumberFormat(i.locale,{style:"currency",currency:e.item.currency_code}).format(e.item.amount)),1)):(0,n.createCommentVNode)("",!0)]})),"cell(date)":(0,n.withCtx)((function(e){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.item.date_formatted),1)]})),"cell(source_account)":(0,n.withCtx)((function(e){return[(0,n.createVNode)("a",{class:!1===e.item.active?"text-muted":"",href:"./accounts/show/"+e.item.source_id,title:e.item.source_name},(0,n.toDisplayString)(e.item.source_name),11,["href","title"])]})),"cell(destination_account)":(0,n.withCtx)((function(e){return[(0,n.createVNode)("a",{class:!1===e.item.active?"text-muted":"",href:"./accounts/show/"+e.item.destination_id,title:e.item.destination_name},(0,n.toDisplayString)(e.item.destination_name),11,["href","title"])]})),"cell(menu)":(0,n.withCtx)((function(t){return[t.item.split&&null!==t.item.split_parent?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)("div",S,[(0,n.createVNode)("div",z,[(0,n.createVNode)("button",{class:"btn btn-light btn-sm dropdown-toggle",type:"button",id:"dropdownMenuButton"+t.item.id,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},(0,n.toDisplayString)(e.$t("firefly.actions")),9,["id"]),(0,n.createVNode)("div",{class:"dropdown-menu","aria-labelledby":"dropdownMenuButton"+t.item.id},[(0,n.createVNode)("a",{class:"dropdown-item",href:"./transactions/edit/"+t.item.id},[I,(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("firefly.edit")),1)],8,["href"]),(0,n.createVNode)("a",{class:"dropdown-item",href:"./transactions/delete/"+t.item.id},[A,(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("firefly.delete")),1)],8,["href"])],8,["aria-labelledby"])])])),t.item.split&&null===t.item.split_parent&&!0===t.item.collapsed?((0,n.openBlock)(),(0,n.createBlock)("div",{key:1,class:"btn btn-light btn-sm",onClick:function(e){return Z.toggleCollapse(t.item)}},[j,(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("firefly.transaction_expand_split")),1)],8,["onClick"])):t.item.split&&null===t.item.split_parent&&!1===t.item.collapsed?((0,n.openBlock)(),(0,n.createBlock)("div",{key:2,class:"btn btn-light btn-sm",onClick:function(e){return Z.toggleCollapse(t.item)}},[x,(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("firefly.transaction_collapse_split")),1)],8,["onClick"])):(0,n.createCommentVNode)("",!0)]})),"cell(category)":(0,n.withCtx)((function(e){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.item.category_name),1)]})),_:1},8,["items","fields","per-page","current-page","busy","sort-desc","sort-compare"])]),(0,n.createVNode)("div",T,[(0,n.createVNode)("a",{href:"./transactions/create/"+i.type,class:"btn btn-success",title:e.$t("firefly.create_new_transaction")},(0,n.toDisplayString)(e.$t("firefly.create_new_transaction")),9,["href","title"])])])])]),(0,n.createVNode)("div",C,[(0,n.createVNode)("div",P,[(0,n.createVNode)(E,{modelValue:i.currentPage,"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.currentPage=e}),"total-rows":i.total,"per-page":i.perPage,"aria-controls":"my-table"},null,8,["modelValue","total-rows","per-page"])]),(0,n.createVNode)("div",N,[(0,n.createVNode)("button",{onClick:t[4]||(t[4]=function(){return Z.newCacheKey&&Z.newCacheKey.apply(Z,arguments)}),class:"btn btn-sm float-right btn-info"},[B])])]),(0,n.createVNode)("div",M,[((0,n.openBlock)(!0),(0,n.createBlock)(n.Fragment,null,(0,n.renderList)(i.ranges,(function(e){return(0,n.openBlock)(),(0,n.createBlock)("div",O,[(0,n.createVNode)("div",L,[(0,n.createVNode)("div",R,[(0,n.createVNode)("h3",V,(0,n.toDisplayString)(Z.formatDate(e.start,"yyyy-LL")),1)]),(0,n.createVNode)("div",F,[(0,n.createVNode)("a",{href:"./transactions/"+i.type+"/"+Z.formatDate(e.start,"yyyy-LL-dd")+"/"+Z.formatDate(e.end,"yyyy-LL-dd")},"Transactions",8,["href"])])])])})),256))])])}},ae=te;var ne=a(459),oe=a(9559),ie=a(6640);a(9489);var re=a(7236),se={};o().component("b-table",ne.h),o().component("b-pagination",oe.c),new(o())({i18n:re,store:i.Z,render:function(e){return e(ae,{props:se})},beforeCreate:function(){this.$store.commit("initialiseStore"),this.$store.dispatch("updateCurrencyPreference"),this.$store.dispatch("root/initialiseStore"),this.$store.dispatch("dashboard/index/initialiseStore")}}).$mount("#transactions_index"),new(o())({i18n:re,store:i.Z,el:"#calendar",render:function(e){return e(ie.Z,{props:se})}})},7176:(e,t,a)=>{"use strict";a.d(t,{y:()=>u});var n=a(7757),o=a.n(n),i=a(9483),r=a.n(i),s=a(881),c=a.n(s),l=a(5974);function _(e,t,a,n,o,i,r){try{var s=e[i](r),c=s.value}catch(e){return void a(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,a=arguments;return new Promise((function(n,o){var i=e.apply(t,a);function r(e){_(i,n,o,r,s,"next",e)}function s(e){_(i,n,o,r,s,"throw",e)}r(void 0)}))}}function u(){return p.apply(this,arguments)}function p(){return(p=d(o().mark((function e(){var t,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r().defineDriver(c());case 2:return t=r().createInstance({driver:[r().INDEXEDDB,r().LOCALSTORAGE,c()._driver],name:"my-cache"}),a=document.head.querySelector('meta[name="csrf-token"]'),e.abrupt("return",(0,l.setup)({baseURL:"./",headers:{"X-CSRF-TOKEN":a.content,"X-James-Rocks":"oh yes"},cache:{maxAge:864e5,readHeaders:!1,exclude:{query:!1},debug:!0,store:t}}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},6348:(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 o(){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$:()=>o})},7252:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(4015),o=a.n(n),i=a(3645),r=a.n(i)()(o());r.push([e.id,".dropdown-item[data-v-1ce542a2],.dropdown-item[data-v-1ce542a2]:hover{color:#212529}","",{version:3,sources:["webpack://./src/components/dashboard/Calendar.vue"],names:[],mappings:"AAslBA,sEACE,aACF",sourcesContent:["\x3c!--\n - Calendar.vue\n - Copyright (c) 2020 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