1import{_ as S,r as T,f as i,b as t,A as _,F as w,z as m,e as d,M as l,g as r,h as z,w as f,u as k,t as o,m as b,l as A,k as P,s as x}from"../chunks/chunk-D6Oav43O.js";import{n as s}from"../chunks/chunk-lzWkO0SH.js";import"../chunks/chunk-D1JYe4Qp.js";import{a as C}from"../chunks/chunk-pJ2yq5Pf.js";/* empty css *//* empty css *//* empty css *//* empty css */import"../chunks/chunk-BwNI8fUT.js";const D={class:"admin-home"},U={class:"md3-card admin-home-card"},j={key:0,class:"md3-loading"},E=["innerHTML"],B={key:0,class:"welcome"},V={class:"tiles md3-tile-grid"},L={__name:"+Page",setup(I){const c=f(!0),a=f(null);async function g(){const n=await C("/api/user/info",{method:"GET"});if(!n?.ok){await s("/admin/login");return}const y=(await n.json().catch(()=>({})))?.data?.users;a.value=y,c.value=!1}T(()=>{g()});async function h(){localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),await k({type:"alert",title:"Signed out",content:"You have been logged out."}),await s("/admin/login")}function u(){s("/admin/devices")}function v(){s("/admin/blog")}function p(){s("/admin/users")}return(n,e)=>(o(),i("div",D,[t("div",U,[c.value?(o(),i("div",j,[t("div",{class:"spinner",innerHTML:_(b)},null,8,E)])):(o(),i(w,{key:1},[e[4]||(e[4]=t("h1",{class:"title"},"Admin Console",-1)),a.value?(o(),i("p",B,m(a.value.name)+" · "+m(a.value.email),1)):d("v-if",!0),t("div",V,[t("div",{class:"md3-tile",role:"button",tabindex:"0",onClick:u,onKeydown:l(u,["enter"])},[...e[0]||(e[0]=[r('<span class="icon material-icons-round" data-v-d0ece0c1>devices</span><div class="content" data-v-d0ece0c1><div class="title" data-v-d0ece0c1>Devices</div><div class="desc" data-v-d0ece0c1>Manage devices, versions and recoveries</div></div><span class="chevron material-icons-round" data-v-d0ece0c1>chevron_right</span>',3)])],32),a.value&&a.value.admin?(o(),i("div",{key:0,class:"md3-tile",role:"button",tabindex:"0",onClick:v,onKeydown:l(v,["enter"])},[...e[1]||(e[1]=[r('<span class="icon material-icons-round" data-v-d0ece0c1>article</span><div class="content" data-v-d0ece0c1><div class="title" data-v-d0ece0c1>Blog</div><div class="desc" data-v-d0ece0c1>Publish, edit and manage posts</div></div><span class="chevron material-icons-round" data-v-d0ece0c1>chevron_right</span>',3)])],32)):d("v-if",!0),a.value&&a.value.admin?(o(),i("div",{key:1,class:"md3-tile",role:"button",tabindex:"0",onClick:p,onKeydown:l(p,["enter"])},[...e[2]||(e[2]=[r('<span class="icon material-icons-round" data-v-d0ece0c1>group</span><div class="content" data-v-d0ece0c1><div class="title" data-v-d0ece0c1>Users</div><div class="desc" data-v-d0ece0c1>Create, delete and clear passwords</div></div><span class="chevron material-icons-round" data-v-d0ece0c1>chevron_right</span>',3)])],32)):d("v-if",!0)]),t("div",{class:"actions"},[t("button",{class:"md3-btn md3-btn--outlined",onClick:h},[...e[3]||(e[3]=[t("span",{class:"icon material-icons-round"},"logout",-1),z(" Logout ",-1)])])])],64))])]))}},M=S(L,[["__scopeId","data-v-d0ece0c1"]]),R=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),Q={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:x}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/admin/index/+Page.vue",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:R}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+Layout.vue",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:P}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+config.js",fileExportPathToShowToUser:["default","title"]},valueSerialized:{type:"js-serialized",value:"AviumUI"}},onCreateApp:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+onCreateApp.js",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:A}]}};export{Q as configValuesSerialized};
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.