import{P as s,k6 as a,M as t,hC as e,l as o}from"./utils-lib.js?v=1761009159";import{u as r}from"./column.js?v=1761009159";import{c as i,o as l,q as n,H as c,v as m,x as d,I as p,y as u,e as b,at as f}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const g={class:"p-[2rem]"},j=i({__name:"selected-cert-dialog",props:{compData:{default:()=>({})}},emits:["close"],setup(i,{emit:j}){const _=l({list:[],loading:!1}),h=i,{selectdCert:x}=h.compData,y=j,q=[{label:"域名",render:s=>s.dns.join(",")},{label:"到期时间",prop:"not_after",minWidth:100},{label:"品牌",prop:"info.issuer",minWidth:100},r([{onClick:async e=>{s({loading:"正在选择证书，请稍候...",request:a({cert_name:e.subject}),success:s=>{if(!s.status)return t.error(s.msg),!1;x(s.data),y("close")}})},title:"选择"}])];return n(async()=>{s({loading:f(_,"loading"),request:e(),data:[Array,f(_,"list")]})}),(s,a)=>{const t=o,e=c("bt-loading");return m(),d("div",g,[p(b(t,{ref:"certTable",column:q,"max-height":400,data:u(_).list,description:"证书列表为空"},null,8,["data"]),[[e,u(_).loading],[e,"正在加载证书列表，请稍后...","title"]])])}}});export{j as default};
