Files
firefly-iii/public/v3/js/app.3c62d074.js

1 line
36 KiB
JavaScript
Raw Normal View History

2022-03-26 18:15:05 +01:00
(()=>{"use strict";var e={6102:(e,t,n)=>{n(5363),n(71);var r=n(8880),a=n(9592),o=n(3673);function i(e,t,n,r,a,i){const c=(0,o.up)("router-view");return(0,o.wg)(),(0,o.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,o.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",i]]),m=h;var _=n(4327),g=n(3340),b=n(9582);const f=[{path:"/",component:()=>Promise.all([n.e(4736),n.e(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(7776)]).then(n.bind(n,7776)),name:"index",meta:{dateSelector:!0,pageTitle:"firefly.welcome_back"}}]},{path:"/development",component:()=>Promise.all([n.e(4736),n.e(7041)]).then(n.bind(n,7041)),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(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(2463)]).then(n.bind(n,2463)),name:"export.index",meta:{pageTitle:"firefly.export"}}]},{path:"/budgets",component:()=>Promise.all([n.e(4736),n.e(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(648)]).then(n.bind(n,648)),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(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(8020)]).then(n.bind(n,8020)),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(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(8067)]).then(n.bind(n,8067)),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(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(2659)]).then(n.bind(n,2659)),name:"budgets.create",meta:{pageTitle:"firefly.budgets",breadcrumbs:[{title:"placeholder",route:"budgets.show",params:[]}]}}]},{path:"/subscriptions",component:()=>Promise.all([n.e(4736),n.e(7041)]).then(n.bind(n,7041)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(9733)]).then(n.bind(n,9733)),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(7041)]).then(n.bind(n,7041)),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:()=>Promis