System.register(["./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./setting-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(l,a){"use strict";var e,t,n,i,c,s,u,o,g,r,d,f,m,y,p,_,v,x,j,S,b,h,k,W;return{setters:[l=>{e=l.c,t=l.f,n=l.h,i=l._},l=>{c=l.k,s=l.P,u=l.r,o=l.R,g=l.S,r=l.U,d=l.X,f=l.V,m=l.aj,y=l.ak,p=l.a3,_=l.j,v=l.a4},l=>{x=l.x,j=l.m},l=>{S=l.q,b=l.t,h=l.v},l=>{k=l.au,W=l.aC},null,null],execute:function(){const a={class:"p-20px"},$={class:"flex mb-16px"},w={class:"flex-1 mr-16px"};l("default",c({__name:"config",setup(l){const{t:c}=s(),C=u(""),P=async()=>{""!==C.value.trim()?(await h({text:C.value}),C.value="",R()):j.error(c("Waf.Setting.config_81"))},{table:U,columns:B,setLoading:L}=e([{key:"rule",title:"URL"},t({width:80,options:l=>[{label:c("Public.Btn.Del"),onClick:async()=>{await S({text:l.rule}),R()}}]})]),R=async()=>{try{L(!0);const{message:l}=await b();x(l)&&(U.data=l.map((l=>({rule:l}))))}finally{L(!1)}};return R(),(l,e)=>{const t=k,c=W,s=n,u=i;return o(),g("div",a,[r("div",$,[r("div",w,[d(t,{value:f(C),"onUpdate:value":e[0]||(e[0]=l=>m(C)?C.value=l:null),placeholder:l.$t("Waf.Setting.config_78"),onKeyup:y(P,["enter"])},null,8,["value","placeholder"])]),d(c,{type:"primary",onClick:P},{default:p((()=>[_(v(l.$t("Public.Btn.Add")),1)])),_:1})]),d(s,{"max-height":368,loading:f(U).loading,data:f(U).data,columns:f(B)},null,8,["loading","data","columns"]),d(u,{class:"mt-16px"},{default:p((()=>[r("li",null,v(l.$t("Waf.Setting.config_77")),1),r("li",null,v(l.$t("Waf.Setting.config_79")),1),r("li",null,v(l.$t("Waf.Setting.config_80")),1)])),_:1})])}}}))}}}));
