import{x as a}from"./page_layout.js?v=1763625242172";import{c as e}from"./mail.js?v=1763625242172";import{d as l}from"./public.js?v=1763625242172";import{k as o,ad as s,P as t,ae as n,r as i,R as u,a2 as r,V as p}from"./vue.js?v=1763625242172";import{dV as d}from"./naive.js?v=1763625242172";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"),c=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)&&(c.value=l.map((a=>({label:a,value:a}))),s.all?c.value.unshift({label:m("Public.All"),value:""}):v.value=l[0]||"")}finally{b(!1)}})(),(a,e)=>{const l=d;return u(),r(l,{value:v.value,"onUpdate:value":e[0]||(e[0]=a=>v.value=a),"consistent-menu-width":!1,options:p(c),loading:p(g),"render-tag":f,filterable:!0},null,8,["value","options","loading"])}}});export{m as _};
