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