import{J as a,a4 as e}from"./utils-lib.js?v=1761009159";import{c as s,T as l,U as t,r as o,k as u,J as r,p as i}from"./base-lib.js?v=1761009159";import{G as n}from"./mail.js?v=1761009159";const m=s({__name:"sender-select",props:l({isInit:{type:Boolean,default:!1}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(s,{expose:l}){const m=s,p=t(s,"value"),d=o([]),v=async()=>{const{data:e}=await n();a(e.data)&&(d.value=e.data.map((a=>({label:a.username,value:a.username}))),p.value=e.data[0].username)};return m.isInit&&v(),l({getList:v}),(a,s)=>{const l=e;return u(),r(l,{modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=a=>p.value=a),filterable:!0,options:i(d),placeholder:"请选择发件人"},null,8,["modelValue","options"])}}});export{m as _};
