const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index257.js?v=1753954525509","js/index102.js?v=1753954525509","js/vue.js?v=1753954525509","js/__commonjsHelpers__.js?v=1753954525509","js/naive.js?v=1753954525509","js/common.js?v=1753954525509","js/page_layout.js?v=1753954525509","js/public.js?v=1753954525509","css/public.css?v=1753954525509","css/page_layout.css?v=1753954525509","css/index19.css?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang25.js?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang.js?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang14.js?v=1753954525509","js/theme-chrome.js?v=1753954525509","js/file2.js?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang9.js?v=1753954525509","js/index96.js?v=1753954525509","css/index13.css?v=1753954525509","js/index259.js?v=1753954525509","js/index260.js?v=1753954525509","js/index101.js?v=1753954525509","css/index18.css?v=1753954525509"])))=>i.map(i=>d[i]);
import{bg as e,fw as t,fl as a,w as o,a as i}from"./page_layout.js?v=1753954525509";import{_ as s}from"./index.js?v=1753954525509";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import{e as l,b as p,h as d,q as m,c as r,f as _}from"./public.js?v=1753954525509";import{ay as c,cD as h}from"./naive.js?v=1753954525509";import{k as u,P as w,e as x,Q as f,w as k,U as g,a1 as D,a2 as j,j as y,a3 as T,X as b,ah as v,_ as E,V as P}from"./vue.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";const R=u({__name:"index",setup(u){const P=E((()=>i((()=>import("./index257.js?v=1753954525509")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])))),R=E((()=>i((()=>import("./index259.js?v=1753954525509")),__vite__mapDeps([19,11,12,4,2,3,5,6,7,8,9,13,14,15])))),C=E((()=>i((()=>import("./index260.js?v=1753954525509")),__vite__mapDeps([20,21,2,3,6,4,5,7,8,9,22])))),{t:L}=w(),U=e(),A=l(L("Docker.Template.index_13"),{onRefresh:()=>{G()}}),V=()=>{A.show=!0},B=x({page:1,pageSize:10}),{keys:I,columns:O,table:W}=p([{key:"name",title:L("Docker.Template.index_4"),width:"20%",minWidth:120,ellipsis:{tooltip:!0}},{key:"path",title:L("Docker.Template.index_5"),width:"40%",minWidth:160,ellipsis:{tooltip:!0}},{key:"remark",title:L("Docker.Template.index_6"),minWidth:140,ellipsis:{tooltip:!0}},d({width:200,options:e=>[{label:L("Public.Btn.Edit"),onClick:()=>{z(e)}},{label:L("Docker.Template.index_8"),onClick:()=>{Q(e)}},{label:L("Public.Btn.Del"),onClick:()=>{S(e)}}]})]),q=l(L("Docker.Template.index_14"),{onRefresh:()=>{G()}}),z=e=>{q.data.row=e,q.title=L("Docker.Template.index_15",[e.name]),q.show=!0},H=l(L("Docker.Template.index_16")),Q=e=>{H.data.row=e,H.title=L("Docker.Template.index_17",[e.name]),H.show=!0},S=e=>{m({title:L("Docker.Template.index_18",[e.name]),content:()=>f("span",{class:"text-error"},[L("Docker.Template.index_12",[e.name])]),onConfirm:async()=>{await t({template_id:e.id}),G()}})},{loading:X,setLoading:F}=r(),G=async()=>{try{F(!0);const{message:e}=await a();W.data=o(e)?e:[],W.total=W.data.length}finally{I.value=[],F(!1)}};return k((()=>U.isRefresh),(e=>{e&&(U.setRefresh(!1),G())})),G(),(e,t)=>{const a=c,o=_,i=n,l=s,p=h;return g(),D(p,{class:"p-16px"},{default:j((()=>[f(i,null,{toolsLeft:j((()=>[f(a,{type:"primary",onClick:V},{default:j((()=>[y(T(b(L)("Public.Btn.Add")),1)])),_:1})])),table:j((()=>[f(o,{page:b(B),"onUpdate:page":t[0]||(t[0]=e=>v(B)?B.value=e:null),"is-page":!0,loading:b(X),columns:b(O),data:b(W).data},null,8,["page","loading","columns","data"])])),_:1}),f(l,{show:b(A).show,"onUpdate:show":t[1]||(t[1]=e=>b(A).show=e),title:b(A).title,data:b(A).data,width:650,"min-height":484,footer:!0,component:b(P)},null,8,["show","title","data","component"]),f(l,{show:b(q).show,"onUpdate:show":t[2]||(t[2]=e=>b(q).show=e),title:b(q).title,data:b(q).data,width:650,"min-height":436,footer:!0,component:b(R)},null,8,["show","title","data","component"]),f(l,{show:b(H).show,"onUpdate:show":t[3]||(t[3]=e=>b(H).show=e),title:b(H).title,data:b(H).data,width:640,"min-height":400,component:b(C)},null,8,["show","title","data","component"])])),_:1})}}}),C=u({__name:"index",setup:e=>(e,t)=>(g(),P("div",null,[f(R)]))});export{C as default};
