System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./site-legacy3.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(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.X,r=e.R,m=e.S,g=e.V,f=e.a3,y=e.U,_=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 i({index:t,siteName:l,ruleName:s}),e.status=a}},null)}]);return(async()=>{try{S(!0);const{siteName:e,rule:t}=c,{message:a}=await u({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 r(),m("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})])}}}))}}}));
