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