System.register(["./public-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./site-legacy3.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],function(e,t){"use strict";var a,l,s,n,i,u,c,o,d,r,m,g,f,y,_,p;return{setters:[e=>{a=e.c,l=e.h,s=e._},e=>{n=e.x},e=>{i=e.n,u=e.o},e=>{c=e.k,o=e.P,d=e.W,r=e.R,m=e.V,g=e.U,f=e.a3,y=e.S,_=e.a4},e=>{p=e.dj},null,null],execute:function(){const t={class:"p-20px"};e("default",c({__name:"index",props:{name:{default:""},rule:{default:""},siteName:{default:""}},setup(e){const c=e,{t:x}=o(),{table:j,columns:N,setLoading:S}=a([{key:"rule",title:x("Waf.Site.Config.index_66")},{key:"ps",title:x("Waf.Site.Config.index_4"),width:180},{key:"status",title:x("Waf.Site.Config.index_5"),width:60,render:(e,t)=>d(p,{size:"small",value:e.status,onUpdateValue:async a=>{const{siteName:l,rule:s}=c;await u({index:t,siteName:l,ruleName:s}),e.status=a}},null)}]);return(async()=>{try{S(!0);const{siteName:e,rule:t}=c,{message:a}=await i({siteName:e,ruleName:t});n(a)&&(j.data=a.map(([e,t,a])=>({status:!!e,rule:t,ps:a})))}finally{S(!1)}})(),(e,a)=>{const n=l,i=s;return m(),r("div",t,[d(n,{"max-height":420,loading:g(j).loading,data:g(j).data,columns:g(N)},null,8,["loading","data","columns"]),d(i,{class:"mt-16px"},{default:f(()=>[y("li",null,_(e.$t("Waf.Site.Config.index_71")),1),y("li",null,_(e.$t("Waf.Site.Config.index_72")),1)]),_:1})])}}}))}}});
