System.register(["./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./site-legacy3.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,t,i,n,s,u,c,o,r,d,m,f,g,p,y,_,x,v,N,b,j,h,C,w;return{setters:[e=>{l=e.b,t=e.h,i=e.f,n=e._},e=>{s=e.k,u=e.P,c=e.r,o=e.U,r=e.V,d=e.W,m=e.Q,f=e.X,g=e.ah,p=e.at,y=e.a2,_=e.j,x=e.a3},e=>{v=e.w,N=e.m},e=>{b=e.w,j=e.x,h=e.y},e=>{C=e.aq,w=e.ay},null,null],execute:function(){const a={class:"p-20px"},S={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},k="disable_path";e("default",s({__name:"disable",props:{siteName:{default:""}},setup(e){const s=e,{t:$}=u(),P=c(""),B=async()=>{""!==P.value.trim()?(await h({siteName:s.siteName,ruleName:k,ruleValue:P.value}),P.value="",A()):N.error($("Waf.Site.Config.index_70"))},{table:U,columns:V,setLoading:q}=l([{key:"rule",title:$("Waf.Site.Config.index_66")},t({width:80,options:(e,a)=>[{label:$("Public.Btn.Del"),onClick:async()=>{await b({index:a,siteName:s.siteName,ruleName:k}),A()}}]})]),A=async()=>{try{q(!0);const{siteName:e}=s,{message:a}=await j({siteName:e,ruleName:k});v(a)&&(U.data=a.map((e=>({rule:e}))))}finally{q(!1)}};return A(),(e,l)=>{const t=C,s=w,u=i,c=n;return o(),r("div",a,[d("div",S,[d("div",W,[m(t,{value:f(P),"onUpdate:value":l[0]||(l[0]=e=>g(P)?P.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:p(B,["enter"])},null,8,["value","placeholder"])]),m(s,{type:"primary",onClick:B},{default:y((()=>[_(x(e.$t("Public.Btn.Add")),1)])),_:1})]),m(u,{"max-height":368,loading:f(U).loading,data:f(U).data,columns:f(V)},null,8,["loading","data","columns"]),m(c,{class:"mt-16px"},{default:y((()=>[d("li",null,x(e.$t("Waf.Site.Config.index_68")),1),d("li",null,x(e.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}}))}}}));
