import{ex as p,i as c}from"./index-BTglIPU2.js?v=1773287522785";import{u as m}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{k as f,an as g,r as d,$ as v,a8 as _,s as L,S as l}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a6 as b}from"./naive-ui--dJnpVcV.js?v=1773287522785";const B=f({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(i){const t=g(i,"value"),{loading:r,setLoading:o}=m(),n=d([]);return(async()=>{try{o(!0);const{message:e}=await p();c(e)&&(n.value=Object.entries(e).map(([a,s])=>({label:s,value:a})))}finally{o(!1)}})(),(e,a)=>{const s=b;return v(),_(s,L({value:t.value,"onUpdate:value":a[0]||(a[0]=u=>t.value=u),loading:l(r),filterable:"",options:l(n)},e.$attrs),null,16,["value","loading","options"])}}});export{B as _};
