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