import{u as l}from"./vue-i18n-90d534a9.js";import{d}from"./vue-router-7f882520.js";import{_}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{V as f}from"./virtual-list-b1ee24f1.js";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-9aa69c97.js";import{A as e}from"./data-6aa94e54.js";import{v as A}from"./index-ae60edf9.js";import{d as R,k as s,o as b,c as v,$ as c,u as r}from"./@vue-cb50a1c4.js";import"./@intlify-1c0af683.js";import"./index-597402db.js";import"./arrows_left-f963ef62.js";import"./index-e4a7d928.js";import"./open-im-sdk-wasm-f19f04ec.js";import"./dayjs-4460abc8.js";import"./@amap-aca98dec.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";const h={class:"page_container"},Z=R({__name:"index",setup(x){const{t:n}=l(),o=d(),i=A(),a=s(()=>{switch(Number(o.query.type)){case e.RecivedFriendApplication:return i.storeRecvFriendApplicationList.sort((t,p)=>t.handleResult===0?-1:1);case e.SentFriendApplication:return i.storeSendFriendApplicationList.sort((t,p)=>t.handleResult===0?-1:1);case e.RecivedGroupApplication:return i.storeRecvGroupApplicationList.sort((t,p)=>t.handleResult===0?-1:1);case e.SentGroupApplication:return i.storeSendGroupApplicationList.sort((t,p)=>t.handleResult===0?-1:1);default:return[]}}),m=s(()=>Number(o.query.type)===e.RecivedFriendApplication?n("contactMenu.newFriends"):Number(o.query.type)===e.RecivedGroupApplication?n("contactMenu.applyGroup"):n("contactMenu.myApply"));return(t,p)=>{const u=_;return b(),v("div",h,[c(u,{title:r(m)},null,8,["title"]),c(r(f),{class:"my_scrollbar flex-1 overflow-y-auto bg-white","data-key":"toUserID","data-sources":r(a),"data-component":y,"estimate-size":88,"extra-props":{total:r(a).length,type:Number(r(o).query.type)}},null,8,["data-sources","extra-props"])])}}});export{Z as default};
