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