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

1 line
37 KiB
JavaScript
Raw Normal View History

2022-12-27 08:41:18 +01:00
(()=>{"use strict";var e={6894:(e,t,n)=>{n(8964),n(702),n(3697);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(1746),d=n(1569);class p{async authenticate(){return await d.api.get("/sanctum/csrf-cookie")}}class u{default(){let e=new p;return e.authenticate().then((()=>d.api.get("/api/v1/currencies/default")))}}var h=n(3555);const m=(0,i.aZ)({name:"App",preFetch({store:e}){const t=(0,h.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 u;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)}))},o=function(){return(new l.Z).get("locale").then((e=>{const n=e.data.data.attributes.data.replace("_","-");t.setLocale(n)})).catch((e=>{console.error("Could not load locale."),console.log(e)}))};a().then((()=>{n(),r(),o()}))}});var _=n(1639);const g=(0,_.Z)(m,[["render",c]]),b=g;var f=n(3340),y=n(7363);const w=(0,f.h)((()=>{const e=(0,y.WB)();return e}));var P=n(8910);const v=[{path:"/",component:()=>Promise.all([n.e(4736),n.e(1181)]).then(n.bind(n,1181)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(8015)]).then(n.bind(n,8015)),name:"index",meta:{dateSelector:!0,pageTitle:"firefly.welcome_back"}}]},{path:"/development",component:()=>Promise.all([n.e(4736),n.e(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),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(1181)]).then(n.bind(n,1181)),children:[{path:"",component:()=>Promise.all([n.e(4736),n.e(3064),n.e(2686)]).then(n.bind(n,2686)),