1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0719ff62-344c-42b1-a20f-b3e446203f14`,e._sentryDebugIdIdentifier=`sentry-dbid-0719ff62-344c-42b1-a20f-b3e446203f14`)}catch{}})();import{a as e}from"./DmpP8q0G.js";import{n as t}from"./BkMtV9gr.js";import{d as n,u as r}from"./ChWFQMF0.js";function i(){let e={},t=JSON.parse(localStorage.getItem(n));return e[r]=t?t.value:null,{token:t,headers:e}}var a=t(`user`,{state:()=>({user:{},userName:null,isUserLoggedIn:!1}),getters:{getIsUserLoggedIn:e=>e.isUserLoggedIn,getUserName:e=>e.userName},actions:{async get(){let{token:t,headers:n}=i();if(t){let{$axios:t}=e();try{let e=await t.get(`/api/v1/sessions/me`,{headers:n});this.user=e.data,this.userName=e.data.fullName,this.isUserLoggedIn=!0}catch(e){e.response.status===401&&(this.isUserLoggedIn=!1)}}},async logout(){let{token:t,headers:r}=i();if(t){let{$axios:t}=e();await t.delete(`/api/v1/sessions`,{headers:r}),localStorage.removeItem(n),this.isUserLoggedIn=!1}}}});
1export{i as n,a as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.