import{w as a}from"./page_layout.js?v=1753954525509";import{c as e}from"./mail2.js?v=1753954525509";import{c as l}from"./public.js?v=1753954525509";import{k as o,ab as s,P as t,ac as n,r as i,U as u,a1 as r,X as p}from"./vue.js?v=1753954525509";import{cG as c}from"./naive.js?v=1753954525509";const m=o({__name:"index",props:s({all:{type:Boolean,default:!0},showTag:{type:Boolean,default:!0}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(o){const s=o,{t:m}=t(),v=n(o,"value"),d=i([]),f=({option:a})=>s.showTag?"".concat(m("Mail.MailBox.index_29")).concat(a.label):"".concat(a.label),{loading:g,setLoading:b}=l();return(async()=>{try{b(!0);const{message:l}=await e();a(l)&&(d.value=l.map((a=>({label:a,value:a}))),s.all?d.value.unshift({label:m("Public.All"),value:""}):v.value=l[0]||"")}finally{b(!1)}})(),(a,e)=>{const l=c;return u(),r(l,{value:v.value,"onUpdate:value":e[0]||(e[0]=a=>v.value=a),"consistent-menu-width":!1,options:p(d),loading:p(g),"render-tag":f,filterable:!0},null,8,["value","options","loading"])}}});export{m as _};
