import{c6 as n,bK as r,c7 as s,bM as u}from"./entry.816e6e91.js";const l=n(a=>{const t=r(),e=s("token");e.value&&(t.authenticated=!0,t.token=e.value);{const o=localStorage.getItem("user");t.authenticatedUser=o?JSON.parse(o):{}}if(a.meta.layout=="auth"&&e.value)return u("/admin/");if(a.meta.layout=="admin-layout"&&!e.value)return u("/admin/login")});export{l as default};
