System.register(["./public-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./site-legacy3.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,i,t,n,u,s,r,o,c,d,m,f,p,g,x,v,_,y,C,S,W,h;return{setters:[e=>{l=e.c,i=e.f,t=e.h,n=e._},e=>{u=e.x,s=e.m},e=>{r=e.w,o=e.x,c=e.z},e=>{d=e.au,m=e.aC},e=>{f=e.k,p=e.P,g=e.e,x=e.R,v=e.S,_=e.U,y=e.X,C=e.V,S=e.a3,W=e.j,h=e.a4},null,null],execute:function(){const a={class:"p-20px"},N={class:"flex mb-16px"},j={class:"flex-1 mr-16px"},$={class:"w-110px mr-16px"},w={class:"w-110px mr-32px"},b="url_tell";e("default",f({__name:"protect",props:{siteName:{default:""}},setup(e){const f=e,{t:k}=p(),U=g({uri:"",name:"",value:""}),P=async()=>{""!==U.uri.trim()&&""!==U.name.trim()&&""!==U.value.trim()?(await c({siteName:f.siteName,ruleName:b,ruleUri:U.uri,ruleValue:U.name,rulePass:U.value}),U.uri="",U.name="",U.value="",A()):s.error(k("Waf.Site.Config.index_95"))},{table:B,columns:V,setLoading:z}=l([{key:"uri",title:k("Waf.Site.Config.index_96")},{key:"name",title:k("Waf.Site.Config.index_89")},{key:"value",title:k("Waf.Site.Config.index_90")},i({width:80,options:(e,a)=>[{label:k("Public.Btn.Del"),onClick:async()=>{await r({index:a,siteName:f.siteName,ruleName:b}),A()}}]})]),A=async()=>{try{z(!0);const{siteName:e}=f,{message:a}=await o({siteName:e,ruleName:b});u(a)&&(B.data=a.map((([e,a,l])=>({uri:e,name:a,value:l}))))}finally{z(!1)}};return A(),(e,l)=>{const i=d,u=m,s=t,r=n;return x(),v("div",a,[_("div",N,[_("div",j,[y(i,{value:C(U).uri,"onUpdate:value":l[0]||(l[0]=e=>C(U).uri=e),placeholder:e.$t("Waf.Site.Config.index_88")},null,8,["value","placeholder"])]),_("div",$,[y(i,{value:C(U).name,"onUpdate:value":l[1]||(l[1]=e=>C(U).name=e),placeholder:e.$t("Waf.Site.Config.index_89")},null,8,["value","placeholder"])]),_("div",w,[y(i,{value:C(U).value,"onUpdate:value":l[2]||(l[2]=e=>C(U).value=e),placeholder:e.$t("Waf.Site.Config.index_90")},null,8,["value","placeholder"])]),y(u,{type:"primary",onClick:P},{default:S((()=>[W(h(e.$t("Public.Btn.Add")),1)])),_:1})]),y(s,{"max-height":250,loading:C(B).loading,data:C(B).data,columns:C(V)},null,8,["loading","data","columns"]),y(r,{class:"mt-16px"},{default:S((()=>[_("li",null,h(e.$t("Waf.Site.Config.index_91")),1),_("li",null,h(e.$t("Waf.Site.Config.index_81")),1),_("li",null,h(e.$t("Waf.Site.Config.index_92")),1),_("li",null,h(e.$t("Waf.Site.Config.index_93")),1),_("li",null,h(e.$t("Waf.Site.Config.index_94")),1)])),_:1})])}}}))}}}));
