import{aa as e,l as a,a4 as t,$ as s,ac as o,A as r,a7 as i,z as l,x as n,a2 as d}from"./utils-lib.js?v=20260328163632";import{B as c}from"./index91.js?v=20260328163632";import{k as m,E as u}from"./wsl.js?v=20260328163632";import{u as p}from"./index92.js?v=20260328163632";import{a as k,u as f}from"./index50.js?v=20260328163632";import{r as h,k as y,w as _,o as g,J as w,V as b,_ as j,a3 as v,Y as x,O as R,N as O}from"./base-lib.js?v=20260328163632";const A=h(!1),B=h([]),E=e=>e.id,L=h({columns:[e(),{title:a("仓库名称"),width:300,key:"name"},{title:a("URL"),key:"url"},{title:a("仓库显示名称"),width:300,key:"reg_name",render:e=>e.reg_name||"--"},{title:a("命名空间"),width:300,key:"namespace",render:e=>e.namespace||"--"},{title:a("备注"),key:"remark"},t([{isHide:e=>"dcocker.io"!==e.url,title:a("删除"),onClick:async e=>{await l({title:a("删除镜像仓库【{0}】",[e.name]),content:a("您真的要删除镜像仓库【{0}】吗？",[e.name])}),n({loading:a("正在删除镜像仓库，请稍后..."),request:m({id:e.id}),message:!0,success:P})}}])],data:[]}),[q,z]=s(L),{BtOperation:C}=p({options:[{active:!0,label:a("添加镜像仓库"),onClick:()=>{r({title:a("添加镜像仓库"),area:500,showFooter:!0,component:()=>i((()=>import("./index233.js?v=20260328163632")),[],import.meta.url)})}}]}),{BtBatch:K}=o({tableRef:z,checkedRowKeys:B,options:[{label:a("删除镜像仓库"),value:"delete",event:k}]}),P=()=>{n({loading:A,request:u(),success:e=>{L.value.data=Array.isArray(e.data)?e.data:[]}})},S=()=>{T(),P()},T=()=>{L.value.data=[]},U=y({__name:"index",setup(e,{expose:a}){const{isRefreshList:t}=f();return _((()=>t.value),(e=>{e&&(P(),t.value=!1)})),g(S),w(T),a({init:S}),(e,a)=>(b(),j(x(d),null,{"header-left":v((()=>[R(x(C),{class:"gap-10px"})])),"header-right":v((()=>[R(x(c),{onRefresh:x(P)},null,8,["onRefresh"])])),content:v((()=>[R(x(q),{"checked-row-keys":x(B),"onUpdate:checkedRowKeys":a[0]||(a[0]=e=>O(B)?B.value=e:null),"row-key":x(E),loading:x(A)},null,8,["checked-row-keys","row-key","loading"])])),"footer-left":v((()=>[R(x(K))])),"footer-right":v((()=>a[1]||(a[1]=[]))),_:1}))}}),V=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));export{P as g,V as i};
