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

1 line
36 KiB
JavaScript
Raw Normal View History

2022-04-03 12:12:41 +02:00
(()=>{"use strict";var e={4989:(e,t,n)=>{n(5363),n(71);var r=n(8880),a=n(9592),i=n(3673);function o(e,t,n,r,a,o){const c=(0,i.up)("router-view");return(0,i.wg)(),(0,i.j4)(c)}var c=n(4155),s=n(5474);class l{async authenticate(){return await s.api.get("/sanctum/csrf-cookie")}}class d{default(){let e=new l;return e.authenticate().then((()=>s.api.get("/api/v1/currencies/default")))}}n(4904);const p=(0,i.aZ)({name:"App",preFetch({store:e}){e.dispatch("fireflyiii/refreshCacheKey");const t=function(){let t=new c.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 c.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(4260);const h=(0,u.Z)(p,[["render",o]]),m=h;var _=n(4327),g=n(3340),b=n(9582);const f=[{path:"/",component:()=>Promise.all([n.e(4736),n.e(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(656)]).then(n.bind(n,656)),name:"index",meta:{dateSelector:!0,pageTitle:"firefly.welcome_back"}}]},{path:"/development",component:()=>Promise.all([n.e(4736),n.e(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(2574)]).then(n.bind(n,2574)),name:"development.index",meta:{pageTitle:"firefly.development"}}]},{path:"/export",component:()=>Promise.all([n.e(4736),n.e(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(4411)]).then(n.bind(n,4411)),name:"export.index",meta:{pageTitle:"firefly.export"}}]},{path:"/budgets",component:()=>Promise.all([n.e(4736),n.e(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(1032)]).then(n.bind(n,1032)),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(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(3443)]).then(n.bind(n,3443)),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(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(7345)]).then(n.bind(n,7345)),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(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(2131)]).then(n.bind(n,2131)),name:"budgets.create",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"placeholder",route:"budgets.show",params:[]}]}}]},{path:"/subscriptions",component:()=>Promise.all([n.e(4736),n.e(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(154)]).then(n.bind(n,154)),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(1241)]).then(n.bind(n,1241)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(3015)]).then(n.bind(n,3015)),name:"subscriptions.show",meta:{pageTitle:"firefly.subscriptions",breadcrumbs:[{title:"placeholder",route:"subscriptions.index"}]}}]},{path:"/subscriptions/edit/:id",component:()=>Promise.