2 lines
613 B
JavaScript
2 lines
613 B
JavaScript
import{cb as a,gd as t,ge as s}from"./index.203f4f59.js";const i=a({id:"app-visualization",state:()=>({year:Number(localStorage.getItem(t))||new Date().getFullYear()-1,addressId:null,play:localStorage.getItem(s)==="true"}),getters:{getYear(){return this.year},getAddresId(){var e;return(e=this==null?void 0:this.addressId)!=null?e:null},getPlay(){return this.play}},actions:{setAddressId(e){this.addressId=e},setYear(e){this.year=e,localStorage.setItem(t,String(e))},setPlay(e){this.play=e,localStorage.setItem(s,String(e))},plus(){this.setYear(this.year+1)},minus(){this.setYear(this.year-1)}}});export{i as u};
|