import{l as x,I as b,_ as D}from"./index-ae60edf9.js";import{T as H,a as S}from"./index-80468eb1.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-fbf25b5f.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang-e7eadba1.js";import{V as v}from"./virtual-list-b1ee24f1.js";import{d as T,b as B,l as E,j as N,o,c as V,$ as a,bj as n,u as r,O as s}from"./@vue-cb50a1c4.js";import"./vue-router-7f882520.js";import"./open-im-sdk-wasm-f19f04ec.js";import"./dayjs-4460abc8.js";import"./@amap-aca98dec.js";import"./vue-i18n-90d534a9.js";import"./@intlify-1c0af683.js";import"./pinia-de4079f2.js";import"./axios-7d5a0a64.js";import"./form-data-497f8b5e.js";import"./uuid-a960c1f4.js";import"./date-fns-f56f60e6.js";import"./@babel-7fd5df1e.js";import"./mitt-f7ef348c.js";import"./@vueuse-19adab01.js";import"./livekit-client-ca552de3.js";import"./@livekit-3058dbe8.js";import"./loglevel-e40a507a.js";import"./rxjs-2154ddb2.js";import"./tslib-8dbab242.js";import"./@vuemap-5ebdc63e.js";import"./lodash-es-91418b19.js";import"./use-id-22cfdfcf.js";import"./index-597402db.js";import"./arrows_left-f963ef62.js";import"./index-e4a7d928.js";const j={class:"page_container"},z=T({__name:"index",setup(G){var u,_;const i=x(),d=B(0),e=E({readedHasMore:!0,readedLoading:!1,readedMemberList:[],unReadHasMore:!0,unReadLoading:!1,unReadMemberList:[]}),m=JSON.parse(history.state.choosedMessage),l=history.state.clientMsgID,R=(u=m.attachedInfoElem)==null?void 0:u.groupHasReadInfo.hasReadCount,h=(_=m.attachedInfoElem)==null?void 0:_.groupHasReadInfo.unreadCount,y=()=>{e.readedHasMore&&!e.readedLoading&&c()},I=()=>{e.unReadHasMore&&!e.unReadLoading&&p()},c=()=>{e.readedLoading=!0,b.getGroupMessageReaderList({conversationID:i.storeCurrentConversation.conversationID,clientMsgID:l,filter:0,offset:e.readedMemberList.length,count:20}).then(({data:t})=>{e.readedMemberList=[...e.readedMemberList,...t],e.readedHasMore=t.length===20}).finally(()=>e.readedLoading=!1)},p=()=>{e.unReadLoading=!0,b.getGroupMessageReaderList({conversationID:i.storeCurrentConversation.conversationID,clientMsgID:l,filter:1,offset:e.unReadMemberList.length,count:20}).then(({data:t})=>{e.unReadMemberList=[...e.unReadMemberList,...t],e.unReadHasMore=t.length===20}).finally(()=>e.unReadLoading=!1)};return N(()=>{p(),c()}),(t,f)=>{const C=w,g=F,M=H,$=S;return o(),V("div",j,[a(C,{title:t.$t("messageRecipientList")},null,8,["title"]),a($,{active:d.value,"onUpdate:active":f[0]||(f[0]=k=>d.value=k)},{default:n(()=>[a(M,{title:`${t.$t("readed")} ${r(R)}`},{default:n(()=>[e.readedMemberList.length>0?(o(),s(r(v),{key:0,class:"my_scrollbar h-full overflow-y-auto bg-[#F7F7F7]","data-key":"userID","data-sources":e.readedMemberList,"data-component":L,"estimate-size":88,"extra-props":{total:e.readedMemberList.length},onTobottom:y},null,8,["data-sources","extra-props"])):(o(),s(g,{key:1}))]),_:1},8,["title"]),a(M,{title:`${t.$t("unread")} ${r(h)}`},{default:n(()=>[e.unReadMemberList.length>0?(o(),s(r(v),{key:0,class:"my_scrollbar h-full overflow-y-auto bg-[#F7F7F7]","data-key":"userID","data-sources":e.unReadMemberList,"data-component":L,"estimate-size":88,"extra-props":{total:e.unReadMemberList.length},onTobottom:I},null,8,["data-sources","extra-props"])):(o(),s(g,{key:1}))]),_:1},8,["title"])]),_:1},8,["active"])])}}});const ve=D(z,[["__scopeId","data-v-66fe5ca3"]]);export{ve as default};
