System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./site-legacy-BrICTGUT.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,a){"use strict";var l,t,i,n,s,u,c,d,r,o,g,y,p,_,m,x,f,j,v,N,b,h,C,S;return{setters:[e=>{l=e._},e=>{t=e._},e=>{i=e.k,n=e.R,s=e.r,u=e.$,c=e.Z,d=e._,r=e.a0,o=e.ai,g=e.X,y=e.S,p=e.a9,_=e.j,m=e.aa},e=>{x=e.n,f=e.m},e=>{j=e.u},e=>{v=e.u},e=>{N=e.w,b=e.x,h=e.y},e=>{C=e.b,S=e.B},null,null,null,null,null,null],execute:function(){const a={class:"p-20px"},w={class:"flex mb-16px"},W={class:"flex-1 mr-16px"},$="disable_php_path";e("default",i({__name:"index",props:{siteName:{default:""}},setup(e){const i=e,{t:k}=n(),B=s(""),D=async()=>{""!==B.value.trim()?(await h({siteName:i.siteName,ruleName:$,ruleValue:B.value}),B.value="",K()):f.error(k("Waf.Site.Config.index_70"))},{table:P,columns:T,setLoading:A}=v([{key:"rule",title:k("Waf.Site.Config.index_66")},j({width:80,options:(e,a)=>[{label:k("Public.Btn.Del"),onClick:async()=>{await N({index:a,siteName:i.siteName,ruleName:$}),K()}}]})]),K=async()=>{try{A(!0);const{siteName:e}=i,{message:a}=await b({siteName:e,ruleName:$});x(a)&&(P.data=a.map((e=>({rule:e}))))}finally{A(!1)}};return K(),(e,i)=>{const n=C,s=S,x=t,f=l;return u(),c("div",a,[d("div",w,[d("div",W,[r(n,{value:y(B),"onUpdate:value":i[0]||(i[0]=e=>g(B)?B.value=e:null),placeholder:e.$t("Waf.Site.Config.index_67"),onKeyup:o(D,["enter"])},null,8,["value","placeholder"])]),r(s,{type:"primary",onClick:D},{default:p((()=>[_(m(e.$t("Public.Btn.Add")),1)])),_:1})]),r(x,{"max-height":368,loading:y(P).loading,data:y(P).data,columns:y(T)},null,8,["loading","data","columns"]),r(f,{class:"mt-16px"},{default:p((()=>[d("li",null,m(e.$t("Waf.Site.Config.index_68")),1),d("li",null,m(e.$t("Waf.Site.Config.index_69")),1)])),_:1})])}}}))}}}));
