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