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