import{av as h,aw as g,K as w}from"./index.17037962789732.js";import"./index.170379627897315.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import{s as x}from"./home.1703796278973.js";import{a as r}from"./comm.1703796278973.js";import{c as C}from"./system.1703796278973.js";import{d as I,k,m as V,o as y,x as B,z as i,b as o,a as c,D as m,u as s,t as b,G as j,H as J}from"./vue.1703796278973.js";import{_ as N}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const S=n=>(j("data-v-e0c54d9c"),n=n(),J(),n),$={class:"init-home-container"},z=S(()=>i("div",{class:"title"},"请选择首页视图",-1)),H={class:"choose-view"},D=["src"],E=["src"],G=["src"],K=I({__name:"index",emits:["refresh"],setup(n,{emit:d}){const u=C(),e=k("device"),p=()=>{x({name:"view",content:e.value}).then(()=>d("refresh"))};return V(()=>u.userInfos,l=>{l.username==="admin"&&(e.value="comprehensive",p())}),(l,t)=>{const a=h,v=g,f=w;return y(),B("div",$,[z,i("div",H,[o(v,{class:"view-content",gutter:24},{default:c(()=>[o(a,{span:8,class:m(["select-item",{selected:s(e)==="device"}]),onClick:t[0]||(t[0]=_=>e.value="device")},{default:c(()=>[i("img",{src:s(r)("/home/device.png"),alt:""},null,8,D)]),_:1},8,["class"]),o(a,{span:8,class:m(["select-item",{selected:s(e)==="ops"}]),onClick:t[1]||(t[1]=_=>e.value="ops")},{default:c(()=>[i("img",{src:s(r)("/home/ops.png"),alt:""},null,8,E)]),_:1},8,["class"]),o(a,{span:8,class:m(["select-item",{selected:s(e)==="comprehensive"}]),onClick:t[2]||(t[2]=_=>e.value="comprehensive")},{default:c(()=>[i("img",{src:s(r)("/home/comprehensive.png"),alt:""},null,8,G)]),_:1},8,["class"])]),_:1}),o(f,{type:"primary",class:"btn",onClick:p},{default:c(()=>[b("确定")]),_:1})])])}}});const ae=N(K,[["__scopeId","data-v-e0c54d9c"]]);export{ae as default};
