System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./tools-legacy2.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./rules-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,s,n,c,i,o,u,r,_,p,f,d,g,v,m,y,x,j,k,b;return{setters:[e=>{a=e._},e=>{t=e.w},e=>{s=e.d},e=>{n=e.i,c=e.r},e=>{i=e.ay,o=e.aV,u=e.cG,r=e.cA},e=>{_=e.k,p=e.P,f=e.r,d=e.e,g=e.U,v=e.V,m=e.Q,y=e.a2,x=e.W,j=e.X,k=e.j,b=e.a3},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=f(null),W=d({site:[]}),C={site:{trigger:["change"],validator:()=>0!==W.site.length||new Error(w("Waf.Block.index_27"))}},$=f([]),P=()=>{W.site=$.value.map((e=>e.value))},A=()=>{W.site=[]};return(async()=>{const{message:e}=await n();t(e)&&($.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=W.site.length===$.value.length;await c({safe_logs:0,site_all:e?1:0,site_logs:W.site})}}),!1)}),(e,t)=>{const s=i,n=o,c=u,_=r,p=a;return g(),v("div",l,[m(p,{ref_key:"formRef",ref:B,model:j(W),rules:C},{default:y((()=>[m(_,{label:e.$t("Waf.Block.index_25"),path:"site"},{default:y((()=>[x("div",h,[m(c,{value:j(W).site,"onUpdate:value":t[0]||(t[0]=e=>j(W).site=e),options:j($),multiple:!0,filterable:!0,"max-tag-count":"responsive",placeholder:e.$t("Waf.Block.index_27")},{header:y((()=>[m(n,{class:"w-full"},{default:y((()=>[m(s,{class:"flex-1",onClick:P},{default:y((()=>[k(b(e.$t("Public.All")),1)])),_:1}),m(s,{class:"flex-1",onClick:A},{default:y((()=>[k(b(e.$t("Public.Btn.Cancel")),1)])),_:1})])),_:1})])),_:1},8,["value","options","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
