import{i as f,c as u}from"./index-BTglIPU2.js?v=1773287522785";import{j as _,k as m}from"./tools-CMJvIbk2.js?v=1773287522785";import{k as d,r as n,$ as v,Z as g,_ as x,aa as b,a0 as k,S as i,X as j}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{b1 as y}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./rules-pmZEUQ_o.js?v=1773287522785";const B={class:"p-20px"},C={class:"mb-16px text-desc"},O=d({__name:"config",setup(R,{expose:r}){const s=n([]),o=n([]),c=async()=>{const{message:t}=await _();f(t)&&(s.value=Object.keys(t).filter(e=>t[e]),o.value=Object.keys(t).map(e=>({label:e,value:e})))},l=async()=>{const t=s.value.reduce((e,a)=>(e[a]=!0,e),{});o.value.forEach(e=>{t[e.value]||(t[e.value]=!1)}),await m({data:t})};return c(),r({onConfirm:l}),(t,e)=>{const a=y;return v(),g("div",B,[x("div",C,b(t.$t("Waf.Block.index_73")),1),k(a,{value:i(s),"onUpdate:value":e[0]||(e[0]=p=>j(s)?s.value=p:null),options:i(o)},null,8,["value","options"])])}}}),V=u(O,[["__scopeId","data-v-22ecfe71"]]);export{V as default};
