pages-devices-detail.BFGdXIhc.js 1012 B

1
  1. import{d as e,C as a,V as s,b as r,e as o,w as t,f as d,u as i,m as n,p as l,x as u,y as m}from"./index-B8ag6Oin.js";import{u as p}from"./useResource.CaerzKS8.js";import{g as f,i as c}from"./format.DDNdx33k.js";import{I as g}from"./IdentityGuard.CwYBrUeO.js";import{P as v}from"./PageState._en-b4Fw.js";import{D as _,a as j}from"./DevicePageHeader.BvIDJ-FC.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(()=>u(m("enterprise")+"/devices/"+c(y.value)));return s(e=>{y.value=Number(null==e?void 0:e.id),R()}),(e,a)=>{const s=l;return r(),o(s,{class:"device-page"},{default:t(()=>[d(_,{onManage:a[0]||(a[0]=e=>i(f)("/pages/devices/index"))}),d(g,{kind:"enterprise"},{default:t(()=>[d(v,{loading:i(I),error:i(P),onRetry:i(R)},null,8,["loading","error","onRetry"]),!i(x)||i(I)||i(P)?n("",!0):(r(),o(j,{key:0,data:i(x)},null,8,["data"]))]),_:1})]),_:1})}}}),[["__scopeId","data-v-d397884e"]]);export{x as default};