const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-Ego-NKa9.js?v=1773287522785","js/index-BRQskX9P.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","css/index-CCworjcO.css?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-CWBVpTDn.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785","js/index-Cy3Gp9Hk.js?v=1773287522785","js/theme-monokai-Bqt0uTuQ.js?v=1773287522785","js/ace-CNnfDSio.js?v=1773287522785","js/useLoading-CZ2gSAW7.js?v=1773287522785","js/file-B5PwfK2h.js?v=1773287522785","css/index-v0taN_O4.css?v=1773287522785","js/index-DIKmrNCq.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785","js/data-BVsViUMm.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785","js/index-K4YGya6V.js?v=1773287522785","css/index-DKJnQkCC.css?v=1773287522785","js/useTableData-BmkIKQ_R.js?v=1773287522785","js/index-DbQ6kGI4.js?v=1773287522785","js/index-BO1JCiS3.js?v=1773287522785","js/index-lEMZglLp.js?v=1773287522785","css/index-Cn3AD8n4.css?v=1773287522785","js/useSocket-DTHwGZgK.js?v=1773287522785"])))=>i.map(i=>d[i]);
import{bm as M,v as u,ar as U,h5 as $,gX as N,n as O,x as W,P as h}from"./index-BTglIPU2.js?v=1773287522785";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as z}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{u as Z}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as q}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{B as F,a2 as G}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as T,R as H,e as J,a0 as n,w as K,$ as D,a8 as Q,a9 as d,S as t,X as Y,j as tt,aa as et,a3 as f,Z as ot}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const at=T({__name:"index",setup(b){const w=f(()=>h(()=>import("./index-Ego-NKa9.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),k=f(()=>h(()=>import("./index-DbQ6kGI4.js?v=1773287522785"),__vite__mapDeps([24,9,10,2,3,4,5,6,7,11,12,13,14,15,16]))),y=f(()=>h(()=>import("./index-BO1JCiS3.js?v=1773287522785"),__vite__mapDeps([25,26,6,2,3,4,5,7,27,28,19]))),{t:o}=H(),g=M(),r=u(o("Docker.Template.index_13"),{onRefresh:()=>{m()}}),C=()=>{r.show=!0},c=J({page:1,pageSize:10}),{keys:E,columns:P,table:p}=Z([{key:"name",title:o("Docker.Template.index_4"),width:"20%",minWidth:120,ellipsis:{tooltip:!0}},{key:"path",title:o("Docker.Template.index_5"),width:"40%",minWidth:160,ellipsis:{tooltip:!0}},{key:"remark",title:o("Docker.Template.index_6"),minWidth:140,ellipsis:{tooltip:!0}},q({width:200,options:e=>[{label:o("Public.Btn.Edit"),onClick:()=>{v(e)}},{label:o("Docker.Template.index_8"),onClick:()=>{A(e)}},{label:o("Public.Btn.Del"),onClick:()=>{R(e)}}]})]),s=u(o("Docker.Template.index_14"),{onRefresh:()=>{m()}}),v=e=>{s.data.row=e,s.title=o("Docker.Template.index_15",[e.name]),s.show=!0},i=u(o("Docker.Template.index_16")),A=e=>{i.data.row=e,i.title=o("Docker.Template.index_17",[e.name]),i.show=!0},R=e=>{U({title:o("Docker.Template.index_18",[e.name]),content:()=>n("span",{class:"text-error"},[o("Docker.Template.index_12",[e.name])]),onConfirm:async()=>{await $({template_id:e.id}),m()}})},{loading:B,setLoading:x}=z(),m=async()=>{try{x(!0);const{message:e}=await N();p.data=O(e)?e:[],p.total=p.data.length}finally{E.value=[],x(!1)}};return K(()=>g.isRefresh,e=>{e&&(g.setRefresh(!1),m())}),m(),(e,a)=>{const L=F,S=j,V=X,_=W,I=G;return D(),Q(I,{class:"p-16px"},{default:d(()=>[n(V,null,{toolsLeft:d(()=>[n(L,{type:"primary",onClick:C},{default:d(()=>[tt(et(t(o)("Public.Btn.Add")),1)]),_:1})]),table:d(()=>[n(S,{page:t(c),"onUpdate:page":a[0]||(a[0]=l=>Y(c)?c.value=l:null),"is-page":!0,loading:t(B),columns:t(P),data:t(p).data},null,8,["page","loading","columns","data"])]),_:1}),n(_,{show:t(r).show,"onUpdate:show":a[1]||(a[1]=l=>t(r).show=l),title:t(r).title,data:t(r).data,width:650,"min-height":484,footer:!0,component:t(w)},null,8,["show","title","data","component"]),n(_,{show:t(s).show,"onUpdate:show":a[2]||(a[2]=l=>t(s).show=l),title:t(s).title,data:t(s).data,width:650,"min-height":436,footer:!0,component:t(k)},null,8,["show","title","data","component"]),n(_,{show:t(i).show,"onUpdate:show":a[3]||(a[3]=l=>t(i).show=l),title:t(i).title,data:t(i).data,width:640,"min-height":400,component:t(y)},null,8,["show","title","data","component"])]),_:1})}}}),xt=T({__name:"index",setup(b){return(w,k)=>(D(),ot("div",null,[n(at)]))}});export{xt as default};
