System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./setting-legacy-DG9cBT-a.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(t,e){"use strict";var l,a,n,i,s,c,u,g,o,r,d,x,_,p,y,f,j,m,v,b,S,h,W;return{setters:[t=>{l=t._},t=>{a=t._},t=>{n=t.i,i=t.m},t=>{s=t.u},t=>{c=t.u},t=>{u=t.I,g=t.g,o=t.J},t=>{r=t.b,d=t.B},t=>{x=t.k,_=t.R,p=t.e,y=t.$,f=t.Z,j=t._,m=t.a0,v=t.S,b=t.a9,S=t.j,h=t.aa,W=t.N},null,null,null,null,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",x({__name:"config",setup(t){const{t:x}=_(),B=p({text:"",text2:""}),C=async()=>{""!==B.text.trim()&&""!==B.text2.trim()?(await o(W(B)),B.text="",B.text2="",U()):i.error(x("Waf.Setting.config_170"))},{table:D,columns:P,setLoading:T}=c([{key:"text",title:x("Waf.Setting.config_164"),ellipsis:{tooltip:!0}},{key:"text2",title:x("Waf.Setting.config_165"),ellipsis:{tooltip:!0}},s({width:80,options:t=>[{label:x("Public.Btn.Del"),onClick:async()=>{await u({body:{[t.text]:t.text2}}),U()}}]})]),U=async()=>{try{T(!0);const{message:t}=await g();n(t)&&(D.data=t.body_character_string.map((t=>{const e=Object.keys(t);return{text:e[0],text2:t[e[0]]}})))}finally{T(!1)}};return U(),(t,n)=>{const i=r,s=d,c=a,u=l;return y(),f("div",e,[j("div",$,[j("div",k,[m(i,{value:v(B).text,"onUpdate:value":n[0]||(n[0]=t=>v(B).text=t),placeholder:t.$t("Waf.Setting.config_164")},null,8,["value","placeholder"])]),j("div",w,[m(i,{value:v(B).text2,"onUpdate:value":n[1]||(n[1]=t=>v(B).text2=t),placeholder:t.$t("Waf.Setting.config_165")},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:C},{default:b((()=>[S(h(t.$t("Public.Btn.Add")),1)])),_:1})]),m(c,{"max-height":230,loading:v(D).loading,data:v(D).data,columns:v(P)},null,8,["loading","data","columns"]),m(u,{class:"mt-16px"},{default:b((()=>[j("li",null,h(t.$t("Waf.Setting.config_166")),1),j("li",null,h(t.$t("Waf.Setting.config_167")),1),j("li",null,h(t.$t("Waf.Setting.config_168")),1),j("li",null,h(t.$t("Waf.Setting.config_169")),1)])),_:1})])}}}))}}}));
