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