Files
firefly-iii/public/v3/js/app.2d290244.js

1 line
36 KiB
JavaScript
Raw Normal View History

2022-06-05 14:09:30 +02:00
(()=>{"use strict";var e={2206:(e,t,n)=>{n(8964),n(702);var r=n(1957),a=n(1947),o=n(499),i=n(9835);function c(e,t,n,r,a,o){const c=(0,i.up)("router-view");return(0,i.wg)(),(0,i.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")))}}var u=n(3555);const h=(0,i.aZ)({name:"App",preFetch({store:e}){const t=(0,u.S)(e);t.refreshCacheKey();const n=function(){let e=new s.Z;return e.getByName("viewRange").then((e=>{const n=e.data.data.attributes.data;t.updateViewRange(n),t.setDatesFromViewRange()})).catch((e=>{console.error("Could not load view range."),console.log(e)}))},r=function(){let e=new s.Z;return e.getByName("listPageSize").then((e=>{const n=e.data.data.attributes.data;t.updateListPageSize(n)})).catch((e=>{console.error("Could not load listPageSize."),console.log(e)}))},a=function(){let e=new d;return e.default().then((e=>{let n=parseInt(e.data.data.id),r=e.data.data.attributes.code;t.setCurrencyId(n),t.setCurrencyCode(r)})).catch((e=>{console.error("Could not load preferences."),console.log(e)}))};a().then((()=>{n(),r()}))}});var m=n(1639);const _=(0,m.Z)(h,[["render",c]]),g=_;var b=n(3340),f=n(7363);const y=(0,b.h)((()=>{const e=(0,f.WB)();return e}));var w=n(8910);const P=[{path:"/",component:()=>Promise.all([n.e(4736),n.e(1522)]).then(n.bind(n,1522)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(6742)]).then(n.bind(n,6742)),name:"index",meta:{dateSelector:!0,pageTitle:"firefly.welcome_back"}}]},{path:"/development",component:()=>Promise.all([n.e(4736),n.e(1522)]).then(n.bind(n,1522)),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(1522)]).then(n.bind(n,1522)),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(1522)]).then(n.bind(n,1522)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(5361)]).then(n.bind(n,5361)),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(1522)]).then(n.bind(n,1522)),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(1522)]).then(n.bind(n,1522)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(3350)]).then(n.bind(n,3350)),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(1522)]).then(n.bind(n,1522)),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(1522)]).then(n.bind(n,1522)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(4853)]).then(n.bind(n,4853)),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(1522)]).then(n.bind(n,1522)),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(1522)]).t