System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./setting-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(t,e){"use strict";var l,a,n,i,c,s,o,g,u,r,f,d,x,p,y,_,m,v,S,j,b,h,W;return{setters:[t=>{l=t.c,a=t.f,n=t.h,i=t._},t=>{c=t.c,s=t.m},t=>{o=t.I,g=t.g,u=t.J},t=>{r=t.au,f=t.aC},t=>{d=t.k,x=t.P,p=t.e,y=t.R,_=t.S,m=t.U,v=t.X,S=t.V,j=t.a3,b=t.j,h=t.a4,W=t.N},null,null],execute:function(){const e={class:"p-20px"},$={class:"flex mb-16px"},k={class:"flex-1 mr-16px"},w={class:"w-230px mr-16px"};t("default",d({__name:"config",setup(t){const{t:d}=x(),C=p({text:"",text2:""}),P=async()=>{""!==C.text.trim()&&""!==C.text2.trim()?(await u(W(C)),C.text="",C.text2="",D()):s.error(d("Waf.Setting.config_170"))},{table:U,columns:B,setLoading:A}=l([{key:"text",title:d("Waf.Setting.config_164"),ellipsis:{tooltip:!0}},{key:"text2",title:d("Waf.Setting.config_165"),ellipsis:{tooltip:!0}},a({width:80,options:t=>[{label:d("Public.Btn.Del"),onClick:async()=>{await o({body:{[t.text]:t.text2}}),D()}}]})]),D=async()=>{try{A(!0);const{message:t}=await g();c(t)&&(U.data=t.body_character_string.map((t=>{const e=Object.keys(t);return{text:e[0],text2:t[e[0]]}})))}finally{A(!1)}};return D(),(t,l)=>{const a=r,c=f,s=n,o=i;return y(),_("div",e,[m("div",$,[m("div",k,[v(a,{value:S(C).text,"onUpdate:value":l[0]||(l[0]=t=>S(C).text=t),placeholder:t.$t("Waf.Setting.config_164")},null,8,["value","placeholder"])]),m("div",w,[v(a,{value:S(C).text2,"onUpdate:value":l[1]||(l[1]=t=>S(C).text2=t),placeholder:t.$t("Waf.Setting.config_165")},null,8,["value","placeholder"])]),v(c,{type:"primary",onClick:P},{default:j((()=>[b(h(t.$t("Public.Btn.Add")),1)])),_:1})]),v(s,{"max-height":230,loading:S(U).loading,data:S(U).data,columns:S(B)},null,8,["loading","data","columns"]),v(o,{class:"mt-16px"},{default:j((()=>[m("li",null,h(t.$t("Waf.Setting.config_166")),1),m("li",null,h(t.$t("Waf.Setting.config_167")),1),m("li",null,h(t.$t("Waf.Setting.config_168")),1),m("li",null,h(t.$t("Waf.Setting.config_169")),1)])),_:1})])}}}))}}}));
