System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,a){"use strict";var l,n,t,u,i,s,o,r,c,v,d,g;return{setters:[e=>{l=e.n},e=>{n=e.c},e=>{t=e.u},e=>{u=e.k,i=e.R,s=e.an,o=e.r,r=e.$,c=e.a8,v=e.S,d=e.ao},e=>{g=e.a6}],execute:function(){e("_",u({__name:"index",props:d({all:{type:Boolean,default:!0},showTag:{type:Boolean,default:!0}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const a=e,{t:u}=i(),d=s(e,"value"),p=o([]),y=({option:e})=>a.showTag?`${u("Mail.MailBox.index_29")}${e.label}`:`${e.label}`,{loading:f,setLoading:m}=t();return(async()=>{try{m(!0);const{message:e}=await n();l(e)&&(p.value=e.map((e=>({label:e,value:e}))),a.all?p.value.unshift({label:u("Public.All"),value:""}):d.value=e[0]||"")}finally{m(!1)}})(),(e,a)=>{const l=g;return r(),c(l,{value:d.value,"onUpdate:value":a[0]||(a[0]=e=>d.value=e),"consistent-menu-width":!1,options:v(p),loading:v(f),"render-tag":y,filterable:!0},null,8,["value","options","loading"])}}}))}}}));
