System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./setting-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(t,e){"use strict";var l,a,n,i,c,s,o,g,u,r,f,d,x,p,y,_,m,v,b,j,S,W,h;return{setters:[t=>{l=t.b,a=t.h,n=t.f,i=t._},t=>{c=t.c,s=t.m},t=>{o=t.I,g=t.g,u=t.J},t=>{r=t.aq,f=t.ay},t=>{d=t.k,x=t.P,p=t.e,y=t.U,_=t.V,m=t.W,v=t.Q,b=t.X,j=t.a2,S=t.j,W=t.a3,h=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(),P=p({text:"",text2:""}),U=async()=>{""!==P.text.trim()&&""!==P.text2.trim()?(await u(h(P)),P.text="",P.text2="",A()):s.error(d("Waf.Setting.config_170"))},{table:B,columns:C,setLoading:q}=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}}),A()}}]})]),A=async()=>{try{q(!0);const{message:t}=await g();c(t)&&(B.data=t.body_character_string.map((t=>{const e=Object.keys(t);return{text:e[0],text2:t[e[0]]}})))}finally{q(!1)}};return A(),(t,l)=>{const a=r,c=f,s=n,o=i;return y(),_("div",e,[m("div",$,[m("div",k,[v(a,{value:b(P).text,"onUpdate:value":l[0]||(l[0]=t=>b(P).text=t),placeholder:t.$t("Waf.Setting.config_164")},null,8,["value","placeholder"])]),m("div",w,[v(a,{value:b(P).text2,"onUpdate:value":l[1]||(l[1]=t=>b(P).text2=t),placeholder:t.$t("Waf.Setting.config_165")},null,8,["value","placeholder"])]),v(c,{type:"primary",onClick:U},{default:j((()=>[S(W(t.$t("Public.Btn.Add")),1)])),_:1})]),v(s,{"max-height":230,loading:b(B).loading,data:b(B).data,columns:b(C)},null,8,["loading","data","columns"]),v(o,{class:"mt-16px"},{default:j((()=>[m("li",null,W(t.$t("Waf.Setting.config_166")),1),m("li",null,W(t.$t("Waf.Setting.config_167")),1),m("li",null,W(t.$t("Waf.Setting.config_168")),1),m("li",null,W(t.$t("Waf.Setting.config_169")),1)])),_:1})])}}}))}}}));
