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,l){"use strict";var a,i,t,n,u,r,s,o,c,f,d,m,g,p,x,_,y,v,C,S,N,W;return{setters:[e=>{a=e.c,i=e.f,t=e.h,n=e._},e=>{u=e.x,r=e.m},e=>{s=e.w,o=e.x,c=e.A},e=>{f=e.au,d=e.aC},e=>{m=e.k,g=e.P,p=e.e,x=e.R,_=e.S,y=e.U,v=e.X,C=e.V,S=e.a3,N=e.j,W=e.a4},null,null],execute:function(){const l={class:"p-20px"},j={class:"flex mb-16px"},h={class:"flex-1 mr-16px"},$={class:"w-230px mr-16px"},b="url_rule";e("default",m({__name:"filter",props:{siteName:{default:""}},setup(e){const m=e,{t:w}=g(),k=p({url:"",filter:""}),U=async()=>{""!==k.url.trim()&&""!==k.filter.trim()?(await c({siteName:m.siteName,ruleName:b,ruleUri:k.url,ruleValue:k.filter}),k.url="",k.filter="",V()):r.error(w("Waf.Site.Config.index_85"))},{table:P,columns:A,setLoading:B}=a([{key:"uri",title:w("Waf.Site.Config.index_86")},{key:"name",title:w("Waf.Site.Config.index_87")},i({width:80,options:(e,l)=>[{label:w("Public.Btn.Del"),onClick:async()=>{await s({index:l,siteName:m.siteName,ruleName:b}),V()}}]})]),V=async()=>{try{B(!0);const{siteName:e}=m,{message:l}=await o({siteName:e,ruleName:b});u(l)&&(P.data=l.map((([e,l,a])=>({uri:e,name:l,value:a}))))}finally{B(!1)}};return V(),(e,a)=>{const i=f,u=d,r=t,s=n;return x(),_("div",l,[y("div",j,[y("div",h,[v(i,{value:C(k).url,"onUpdate:value":a[0]||(a[0]=e=>C(k).url=e),placeholder:e.$t("Waf.Site.Config.index_67")},null,8,["value","placeholder"])]),y("div",$,[v(i,{value:C(k).filter,"onUpdate:value":a[1]||(a[1]=e=>C(k).filter=e),placeholder:e.$t("Waf.Site.Config.index_79")},null,8,["value","placeholder"])]),v(u,{type:"primary",onClick:U},{default:S((()=>[N(W(e.$t("Public.Btn.Add")),1)])),_:1})]),v(r,{"max-height":230,loading:C(P).loading,data:C(P).data,columns:C(A)},null,8,["loading","data","columns"]),v(s,{class:"mt-16px"},{default:S((()=>[y("li",null,W(e.$t("Waf.Site.Config.index_80")),1),y("li",null,W(e.$t("Waf.Site.Config.index_81")),1),y("li",null,W(e.$t("Waf.Site.Config.index_82")),1),y("li",null,W(e.$t("Waf.Site.Config.index_83")),1),y("li",null,W(e.$t("Waf.Site.Config.index_84")),1)])),_:1})])}}}))}}}));
