import{l as s,$ as a,x as e,aU as t}from"./utils-lib.js?v=20260328163632";import{K as l}from"./wsl.js?v=20260328163632";import{u as n}from"./index50.js?v=20260328163632";import{k as o,r as i,O as r,w as m,o as p,l as d,Y as u,V as c,W as x,X as b,Z as y,_ as f,a3 as k,U as j,F as v,L as _,j as C,a1 as w}from"./base-lib.js?v=20260328163632";import{aL as L,aw as g,aK as h}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index97.js?v=20260328163632";const O={class:"min-h-300px"},A={class:"mb-10px text-14px text-medium font-bold"},D=o({__name:"index",setup(o,{expose:D}){const{sid:H,isRefreshList:K}=n(),U=i(!1),V=i({}),q=i({columns:[{title:s("名称"),key:"Name"},{title:s("版本"),key:"Version"},{title:s("详细信息"),key:"Details",render:s=>{const a=Object.entries(s.Details).map((([s,a])=>"".concat(s,": ").concat(a))).join("<br>");return r("span",{innerHTML:a},null)}}],data:[]}),[F,M]=a(q),N=()=>{e({loading:U,request:l({sid:H.value}),success:s=>{s.status&&(V.value=s.data,q.value.data=Array.isArray(s.data.Components)?s.data.Components:[])}})};return m((()=>K.value),(s=>{s&&(N(),K.value=!1)})),p(N),D({init:N}),(a,e)=>{const l=h,n=L,o=g,i=j("bt-loading");return d((c(),x("div",O,[b("div",A,y(u(s)("基础信息")),1),Object.keys(u(V)).length?(c(),f(n,{key:0,"label-placement":"left",bordered:"",column:3,"label-class":"w-100px"},{default:k((()=>[(c(!0),x(v,null,_(u(V),((s,a)=>(c(),x(v,{key:a},["Components"!==a?(c(),f(l,{key:0},{label:k((()=>[C(y(a),1)])),default:k((()=>[u(t)(s)?(c(!0),x(v,{key:0},_(s,((s,a)=>(c(),x("div",{key:a},[b("span",null,y(a)+": ",1),b("span",null,y(s),1)])))),128)):(c(),x(v,{key:1},[C(y(s),1)],64))])),_:2},1024)):w("",!0)],64)))),128))])),_:1})):(c(),f(o,{key:1},{default:k((()=>[C(y(u(s)("暂无数据")),1)])),_:1})),e[0]||(e[0]=b("div",{class:"mt-20px mb-10px text-14px text-medium font-bold"},"Components",-1)),u(V).Components?(c(),f(u(F),{key:2})):(c(),f(o,{key:3},{default:k((()=>[C(y(u(s)("暂无数据")),1)])),_:1}))])),[[i,u(U)],[i,u(s)("正在加载中，请稍后..."),"title"]])}}});export{D as default};
