Files
firefly-iii/public/v3/js/app.48914805.js

1 line
33 KiB
JavaScript
Raw Normal View History

2022-04-12 17:45:54 +02:00
(()=>{"use strict";var e={8163:(e,t,n)=>{n(8964),n(702);var r=n(1957),a=n(1947),i=n(499),o=n(9835);function c(e,t,n,r,a,i){const c=(0,o.up)("router-view");return(0,o.wg)(),(0,o.j4)(c)}var s=n(9167),l=n(1569);class p{async authenticate(){return await l.api.get("/sanctum/csrf-cookie")}}class d{default(){let e=new p;return e.authenticate().then((()=>l.api.get("/api/v1/currencies/default")))}}const h=(0,o.aZ)({name:"App",preFetch({store:e}){e.dispatch("fireflyiii/refreshCacheKey");const t=function(){let t=new s.Z;return t.getByName("viewRange").then((t=>{const n=t.data.data.attributes.data;e.commit("fireflyiii/updateViewRange",n),e.dispatch("fireflyiii/setDatesFromViewRange")})).catch((e=>{console.error("Could not load view range."),console.log(e)}))},n=function(){let t=new s.Z;return t.getByName("listPageSize").then((t=>{const n=t.data.data.attributes.data;e.commit("fireflyiii/updateListPageSize",n)})).catch((e=>{console.error("Could not load listPageSize."),console.log(e)}))},r=function(){let t=new d;return t.default().then((t=>{let n=parseInt(t.data.data.id),r=t.data.data.attributes.code;e.commit("fireflyiii/setCurrencyId",n),e.commit("fireflyiii/setCurrencyCode",r)})).catch((e=>{console.error("Could not load preferences."),console.log(e)}))};r().then((()=>{t(),n()}))}});var u=n(1639);const m=(0,u.Z)(h,[["render",c]]),_=m;var g=n(3340),b=n(8910);const f=[{path:"/",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(5266)]).then(n.bind(n,5266)),name:"index",meta:{dateSelector:!0,pageTitle:"firefly.welcome_back"}}]},{path:"/development",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(576)]).then(n.bind(n,576)),name:"development.index",meta:{pageTitle:"firefly.development"}}]},{path:"/export",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(8493)]).then(n.bind(n,8493)),name:"export.index",meta:{pageTitle:"firefly.export"}}]},{path:"/budgets",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(7499)]).then(n.bind(n,7499)),name:"budgets.index",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"budgets",route:"budgets.index",params:[]}]}}]},{path:"/budgets/show/:id",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(8376)]).then(n.bind(n,3543)),name:"budgets.show",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"placeholder",route:"budgets.show",params:[]}]}}]},{path:"/budgets/edit/:id",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(7919)]).then(n.bind(n,7919)),name:"budgets.edit",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"placeholder",route:"budgets.show",params:[]}]}}]},{path:"/budgets/create",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(4640)]).then(n.bind(n,4640)),name:"budgets.create",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"placeholder",route:"budgets.show",params:[]}]}}]},{path:"/subscriptions",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(6072)]).then(n.bind(n,6072)),name:"subscriptions.index",meta:{pageTitle:"firefly.subscriptions",breadcrumbs:[{title:"placeholder",route:"subscriptions.index",params:[]}]}}]},{path:"/subscriptions/show/:id",component:()=>Promise.all([n.e(4736),n.e(773)]).then(n.bind(n,773)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(2686)]).then(n.bind(n,2686)),name:"subscriptions.show",meta:{pageTitle:"firefly.subscriptions",breadcrumbs:[{title:"placeholder",route:"subscriptions.index"}]}}]},{path:"/subscriptions/edit/:id",component:()=>Promise.all([n.e(4736),n.e(773)]