import{f_ as a,d as s,p as e}from"./page_layout.js?v=1764233927359";import{j as o,k as t}from"./tools2.js?v=1764233927359";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=1764233927359";import"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./public.js?v=1764233927359";import"./rules.js?v=1764233927359";const j={class:"p-20px"},d={class:"mb-16px text-desc"},_=e(l({__name:"config",setup(e,{expose:l}){const _=p([]),f=p([]);return(async()=>{const{message:a}=await o();s(a)&&(_.value=Object.keys(a).filter(s=>a[s]),f.value=Object.keys(a).map(a=>({label:a,value:a})))})(),l({onConfirm:async()=>{await t({data:_.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(_),"onUpdate:value":e[0]||(e[0]=a=>v(_)?_.value=a:null),options:c(f)},null,8,["value","options"])])}}}),[["__scopeId","data-v-4f75b301"]]);export{_ as default};
