System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./tools-legacy-DOwS7RGc.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./rules-legacy-CRGREktS.js?v=1773287522785"],(function(e,l){"use strict";var a,t,s,i,n,c,o,u,r,_,f,d,p,g,v,x,m,y,h,j,k;return{setters:[e=>{a=e._},e=>{t=e.n,s=e.h},e=>{i=e.i,n=e.r},e=>{c=e.a1,o=e.a6,u=e.aH,r=e.B},e=>{_=e.k,f=e.R,d=e.r,p=e.e,g=e.$,v=e.Z,x=e.a0,m=e.a9,y=e._,h=e.S,j=e.j,k=e.aa},null,null],execute:function(){const l={class:"p-20px pt-24px pb-8px"},b={class:"w-260px"};e("default",_({__name:"clear",setup(e,{expose:_}){const{t:B}=f(),w=d(null),C=p({site:[]}),W={site:{trigger:["change"],validator:()=>0!==C.site.length||new Error(B("Waf.Block.index_27"))}},$=d([]),N=()=>{C.site=$.value.map((e=>e.value))},P=()=>{C.site=[]};return(async()=>{const{message:e}=await i();t(e)&&($.value=e.map((e=>({label:e.siteName,value:e.siteName}))))})(),_({onConfirm:async()=>(await(w.value?.validate()),s({title:B("Waf.Block.index_28"),content:B("Waf.Block.index_29"),onConfirm:async()=>{const e=C.site.length===$.value.length;await n({safe_logs:0,site_all:e?1:0,site_logs:C.site})}}),!1)}),(e,t)=>{const s=r,i=u,n=o,_=c,f=a;return g(),v("div",l,[x(f,{ref_key:"formRef",ref:w,model:h(C),rules:W},{default:m((()=>[x(_,{label:e.$t("Waf.Block.index_25"),path:"site"},{default:m((()=>[y("div",b,[x(n,{value:h(C).site,"onUpdate:value":t[0]||(t[0]=e=>h(C).site=e),options:h($),multiple:!0,filterable:!0,"max-tag-count":"responsive",placeholder:e.$t("Waf.Block.index_27")},{header:m((()=>[x(i,{class:"w-full"},{default:m((()=>[x(s,{class:"flex-1",onClick:N},{default:m((()=>[j(k(e.$t("Public.All")),1)])),_:1}),x(s,{class:"flex-1",onClick:P},{default:m((()=>[j(k(e.$t("Public.Btn.Cancel")),1)])),_:1})])),_:1})])),_:1},8,["value","options","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
