import{k as v,l as I,P as d}from"./index-ae60edf9.js";import{S as r}from"./open-im-sdk-wasm-f19f04ec.js";import{v as f}from"./uuid-a960c1f4.js";var D=(s=>(s[s.Album=0]="Album",s[s.Shoot=1]="Shoot",s[s.File=2]="File",s[s.IDCard=3]="IDCard",s[s.Location=4]="Location",s[s.RtcCall=5]="RtcCall",s[s.Meeting=6]="Meeting",s[s.VoiceCall=7]="VoiceCall",s[s.VideoCall=8]="VideoCall",s))(D||{}),e=(s=>(s[s.VoiceCall=0]="VoiceCall",s[s.VideoCall=1]="VideoCall",s))(e||{});const L=()=>{const s=v(),i=I();return{inviteRtc:async(n,l,a)=>{const u=l!=="",m=n===e.VoiceCall?"audio":"video";d.emit("OPEN_RTC_MODAL",{invitation:{inviterUserID:s.selfInfo.userID,inviteeUserIDList:a,groupID:l,roomID:f(),timeout:60,mediaType:m,sessionType:u?r.WorkingGroup:r.Single,platformID:5},participant:{userInfo:{nickname:i.currentConversation.showName,userID:i.currentConversation.userID,faceURL:i.currentConversation.faceURL,ex:""}}})}}};export{D as C,e as R,L as u};
