import{c as a,f3 as s,e}from"./page_layout.js?v=1753954525509";import{j as o,k as t}from"./tools2.js?v=1753954525509";import{k as l,r as p,U as r,V as n,W as i,a3 as m,Q as c,X as u,ah as v}from"./vue.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./public.js?v=1753954525509";import"./rules.js?v=1753954525509";const j={class:"p-20px"},d={class:"mb-16px text-desc"},f=e(l({__name:"config",setup(e,{expose:l}){const f=p([]),_=p([]);return(async()=>{const{message:s}=await o();a(s)&&(f.value=Object.keys(s).filter((a=>s[a])),_.value=Object.keys(s).map((a=>({label:a,value:a}))))})(),l({onConfirm:async()=>{await t({data:f.value.reduce(((a,s)=>(a[s]=!0,a)),{})})}}),(a,e)=>{const o=s;return r(),n("div",j,[i("div",d,m(a.$t("Waf.Block.index_73")),1),c(o,{value:u(f),"onUpdate:value":e[0]||(e[0]=a=>v(f)?f.value=a:null),options:u(_)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{f as default};
