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,a){"use strict";var l,i,t,n,u,s,r,d,c,o,m,g,f,p,_,x,v,y,j,C,S,W;return{setters:[e=>{l=e._},e=>{i=e._},e=>{t=e.n,n=e.m},e=>{u=e.u},e=>{s=e.u},e=>{r=e.w,d=e.x,c=e.z},e=>{o=e.b,m=e.B},e=>{g=e.k,f=e.R,p=e.e,_=e.$,x=e.Z,v=e._,y=e.a0,j=e.S,C=e.a9,S=e.j,W=e.aa},null,null,null,null,null,null],execute:function(){const a={class:"p-20px"},h={class:"flex mb-16px"},N={class:"flex-1 mr-16px"},$={class:"w-110px mr-16px"},b={class:"w-110px mr-32px"},w="url_tell";e("default",g({__name:"protect",props:{siteName:{default:""}},setup(e){const g=e,{t:k}=f(),U=p({uri:"",name:"",value:""}),B=async()=>{""!==U.uri.trim()&&""!==U.name.trim()&&""!==U.value.trim()?(await c({siteName:g.siteName,ruleName:w,ruleUri:U.uri,ruleValue:U.name,rulePass:U.value}),U.uri="",U.name="",U.value="",z()):n.error(k("Waf.Site.Config.index_95"))},{table:P,columns:D,setLoading:T}=s([{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")},u({width:80,options:(e,a)=>[{label:k("Public.Btn.Del"),onClick:async()=>{await r({index:a,siteName:g.siteName,ruleName:w}),z()}}]})]),z=async()=>{try{T(!0);const{siteName:e}=g,{message:a}=await d({siteName:e,ruleName:w});t(a)&&(P.data=a.map((([e,a,l])=>({uri:e,name:a,value:l}))))}finally{T(!1)}};return z(),(e,t)=>{const n=o,u=m,s=i,r=l;return _(),x("div",a,[v("div",h,[v("div",N,[y(n,{value:j(U).uri,"onUpdate:value":t[0]||(t[0]=e=>j(U).uri=e),placeholder:e.$t("Waf.Site.Config.index_88")},null,8,["value","placeholder"])]),v("div",$,[y(n,{value:j(U).name,"onUpdate:value":t[1]||(t[1]=e=>j(U).name=e),placeholder:e.$t("Waf.Site.Config.index_89")},null,8,["value","placeholder"])]),v("div",b,[y(n,{value:j(U).value,"onUpdate:value":t[2]||(t[2]=e=>j(U).value=e),placeholder:e.$t("Waf.Site.Config.index_90")},null,8,["value","placeholder"])]),y(u,{type:"primary",onClick:B},{default:C((()=>[S(W(e.$t("Public.Btn.Add")),1)])),_:1})]),y(s,{"max-height":250,loading:j(P).loading,data:j(P).data,columns:j(D)},null,8,["loading","data","columns"]),y(r,{class:"mt-16px"},{default:C((()=>[v("li",null,W(e.$t("Waf.Site.Config.index_91")),1),v("li",null,W(e.$t("Waf.Site.Config.index_81")),1),v("li",null,W(e.$t("Waf.Site.Config.index_92")),1),v("li",null,W(e.$t("Waf.Site.Config.index_93")),1),v("li",null,W(e.$t("Waf.Site.Config.index_94")),1)])),_:1})])}}}))}}}));
