System.register(["./index-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./planned-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var t,l,i,n,d,s,u,o,c,r,m,p,_,v,x,g,y,f,P,h,w,b,j,S,C,H,k,$,U,B,D;return{setters:[e=>{t=e._},e=>{l=e._},e=>{i=e.x,n=e.m},e=>{d=e.e,s=e.c,u=e.f,o=e.a},e=>{c=e.r,r=e.g,m=e.t,p=e.u},e=>{_=e.au,v=e.aC,x=e.d9,g=e.dg,y=e.dP},e=>{f=e.k,P=e.P,h=e.r,w=e.e,b=e.R,j=e.S,S=e.X,C=e.a3,H=e.U,k=e.V,$=e.aj,U=e.j,B=e.a4,D=e.N},null,null],execute:function(){const a={class:"p-20px"},R={class:"flex-1"},q={class:"mt-12px"},E={class:"px-20px pt-24px pb-8px"},N={class:"w-150px"};e("default",f({__name:"set",props:{data:{}},setup(e){const{t:f}=P(),O=e,{setOptions:V}=O.data,X=h(""),z=async()=>{const e=X.value.trim();""!==e?(await m({name:e}),X.value="",await M(),V?.(K.data)):n.error(f("Site.PHP.index_46"))},A=d(),F=h(null),G=w({id:-1,name:""}),I={name:{required:!0,message:f("Site.PHP.index_46"),trigger:["blur","change"]}},J=async({hide:e})=>{await(F.value?.validate()),await p(D(G)),await M(),V?.(K.data),e()},{table:K,columns:L}=s([{key:"name",title:f("Docker.Compose.form.index_3")},u({width:80,options:e=>[{label:f("Public.Btn.Edit"),disabled:0===e.id,onClick:()=>{(e=>{G.id=e.id,G.name=e.name,A.title=`${f("Site.PHP.index_48")} [${e.name}]`,A.show=!0})(e)}},{label:f("Public.Btn.Del"),disabled:0===e.id,onClick:()=>{o({title:`${f("Site.PHP.index_49")} [${e.name}]`,content:f("Site.PHP.index_50"),onConfirm:async({hide:a})=>{await c({id:e.id}),await M(),V?.(K.data,e.id),a()}})}}]})]),M=async()=>{const{message:e}=await r();K.data=i(e)?e:[]};return M(),(e,i)=>{const n=_,d=v,s=x,u=g,o=y,c=l,r=t;return b(),j("div",a,[S(s,null,{default:C((()=>[H("div",R,[S(n,{value:k(X),"onUpdate:value":i[0]||(i[0]=e=>$(X)?X.value=e:null),placeholder:e.$t("Site.PHP.index_46")},null,8,["value","placeholder"])]),H("div",null,[S(d,{type:"primary",onClick:z},{default:C((()=>[U(B(e.$t("Site.Cert.index_62")),1)])),_:1})])])),_:1}),H("div",q,[S(u,{"max-height":300,data:k(K).data,columns:k(L)},null,8,["data","columns"])]),S(r,{show:k(A).show,"onUpdate:show":i[2]||(i[2]=e=>k(A).show=e),title:k(A).title,width:350,footer:!0,onConfirm:J},{default:C((()=>[H("div",E,[S(c,{ref_key:"formRef",ref:F,model:k(G),rules:I},{default:C((()=>[S(o,{label:e.$t("Site.PHP.index_47"),path:"name"},{default:C((()=>[H("div",N,[S(n,{value:k(G).name,"onUpdate:value":i[1]||(i[1]=e=>k(G).name=e),placeholder:""},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])])),_:1},8,["show","title"])])}}}))}}}));
