System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.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","./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(e,l){"use strict";var a,t,n,u,i,s,c,g,r,o,d,y,_,p,f,v,j,m,x,b,S,h,$,W;return{setters:[e=>{a=e._},e=>{t=e._},e=>{n=e.k,u=e.R,i=e.r,s=e.$,c=e.Z,g=e._,r=e.a0,o=e.ai,d=e.X,y=e.S,_=e.a9,p=e.j,f=e.aa},e=>{v=e.n,j=e.m},e=>{m=e.u},e=>{x=e.u},e=>{b=e.q,S=e.t,h=e.v},e=>{$=e.b,W=e.B},null,null,null,null,null,null],execute:function(){const l={class:"p-20px"},k={class:"flex mb-16px"},w={class:"flex-1 mr-16px"};e("default",n({__name:"config",setup(e){const{t:n}=u(),B=i(""),C=async()=>{""!==B.value.trim()?(await h({text:B.value}),B.value="",R()):j.error(n("Waf.Setting.config_81"))},{table:D,columns:L,setLoading:P}=x([{key:"rule",title:"URL"},m({width:80,options:e=>[{label:n("Public.Btn.Del"),onClick:async()=>{await b({text:e.rule}),R()}}]})]),R=async()=>{try{P(!0);const{message:e}=await S();v(e)&&(D.data=e.map((e=>({rule:e}))))}finally{P(!1)}};return R(),(e,n)=>{const u=$,i=W,v=t,j=a;return s(),c("div",l,[g("div",k,[g("div",w,[r(u,{value:y(B),"onUpdate:value":n[0]||(n[0]=e=>d(B)?B.value=e:null),placeholder:e.$t("Waf.Setting.config_78"),onKeyup:o(C,["enter"])},null,8,["value","placeholder"])]),r(i,{type:"primary",onClick:C},{default:_((()=>[p(f(e.$t("Public.Btn.Add")),1)])),_:1})]),r(v,{"max-height":368,loading:y(D).loading,data:y(D).data,columns:y(L)},null,8,["loading","data","columns"]),r(j,{class:"mt-16px"},{default:_((()=>[g("li",null,f(e.$t("Waf.Setting.config_77")),1),g("li",null,f(e.$t("Waf.Setting.config_79")),1),g("li",null,f(e.$t("Waf.Setting.config_80")),1)])),_:1})])}}}))}}}));
