pages-devices-detail.B_hIkjTR.js 1002 B

1
  1. import{d as e,C as a,U as s,b as r,w as o,i as t,g as d,e as i,f as n,h as l,u,v as m}from"./index-CxEYQ6kj.js";import{u as p}from"./useResource.ByHOCF5R.js";import{i as f,g}from"./format.CYMU5Kjj.js";import{I as v}from"./IdentityGuard.DmOEkKZj.js";import{P as c}from"./PageState.Dhf4Vcy0.js";import{D as _,a as j}from"./DevicePageHeader.ChJ-zTeL.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=y(e({__name:"detail",setup(e){const y=a(0),{data:x,loading:I,error:P,load:R}=p(()=>d(i("enterprise")+"/devices/"+f(y.value)));return s(e=>{y.value=Number(null==e?void 0:e.id),R()}),(e,a)=>{const s=t;return n(),r(s,{class:"device-page"},{default:o(()=>[l(_,{onManage:a[0]||(a[0]=e=>u(g)("/pages/devices/index"))}),l(v,{kind:"enterprise"},{default:o(()=>[l(c,{loading:u(I),error:u(P),onRetry:u(R)},null,8,["loading","error","onRetry"]),!u(x)||u(I)||u(P)?m("",!0):(n(),r(j,{key:0,data:u(x)},null,8,["data"]))]),_:1})]),_:1})}}}),[["__scopeId","data-v-d397884e"]]);export{x as default};