import{fS as a,d as s,p as e}from"./page_layout.js?v=1764830988434";import{j as o,k as t}from"./tools2.js?v=1764830988434";import{k as l,r as p,R as r,V as n,S as i,W as m,a4 as u,U as c,ak as v}from"./vue.js?v=1764830988434";import"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./public.js?v=1764830988434";import"./rules.js?v=1764830988434";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:a}=await o();s(a)&&(f.value=Object.keys(a).filter(s=>a[s]),_.value=Object.keys(a).map(a=>({label:a,value:a})))})(),l({onConfirm:async()=>{await t({data:f.value.reduce((a,s)=>(a[s]=!0,a),{})})}}),(s,e)=>{const o=a;return n(),r("div",j,[i("div",d,u(s.$t("Waf.Block.index_73")),1),m(o,{value:c(f),"onUpdate:value":e[0]||(e[0]=a=>v(f)?f.value=a:null),options:c(_)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{f as default};
