System.register(["./index-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./planned-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],function(e,a){"use strict";var t,l,i,n,d,s,u,o,c,r,m,p,_,v,x,g,y,f,h,w,P,b,j,S,k,C,H,$,U,R,B;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.da,g=e.dg,y=e.dR},e=>{f=e.k,h=e.P,w=e.r,P=e.e,b=e.R,j=e.V,S=e.W,k=e.S,C=e.a3,H=e.ak,$=e.U,U=e.j,R=e.a4,B=e.N},null,null],execute:function(){const a={class:"p-20px"},D={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}=h(),O=e,{setOptions:V}=O.data,W=w(""),z=async()=>{const e=W.value.trim();""!==e?(await m({name:e}),W.value="",await M(),V?.(K.data)):n.error(f("Site.PHP.index_46"))},A=d(),F=w(null),G=P({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(B(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 j(),b("div",a,[S(s,null,{default:C(()=>[k("div",D,[S(n,{value:$(W),"onUpdate:value":i[0]||(i[0]=e=>H(W)?W.value=e:null),placeholder:e.$t("Site.PHP.index_46")},null,8,["value","placeholder"])]),k("div",null,[S(d,{type:"primary",onClick:z},{default:C(()=>[U(R(e.$t("Site.Cert.index_62")),1)]),_:1})])]),_:1}),k("div",q,[S(u,{"max-height":300,data:$(K).data,columns:$(L)},null,8,["data","columns"])]),S(r,{show:$(A).show,"onUpdate:show":i[2]||(i[2]=e=>$(A).show=e),title:$(A).title,width:350,footer:!0,onConfirm:J},{default:C(()=>[k("div",E,[S(c,{ref_key:"formRef",ref:F,model:$(G),rules:I},{default:C(()=>[S(o,{label:e.$t("Site.PHP.index_47"),path:"name"},{default:C(()=>[k("div",N,[S(n,{value:$(G).name,"onUpdate:value":i[1]||(i[1]=e=>$(G).name=e),placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])])]),_:1},8,["show","title"])])}}}))}}});
