import{u as G}from"./vue-router-7f882520.js";import{v as g,l as C,k as I,_ as S}from"./index-ae60edf9.js";import{T as x,a as $}from"./index-80468eb1.js";import"./index-fc073ec7.js";import{S as w}from"./index-7aceb4e5.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{V as d}from"./virtual-list-b1ee24f1.js";import{_}from"./index.vue_vue_type_script_setup_true_lang-e7eadba1.js";import{_ as f}from"./index.vue_vue_type_script_setup_true_lang-fbf25b5f.js";import{u as T}from"./useConversationToggle-dd6106ea.js";import{S as j}from"./open-im-sdk-wasm-f19f04ec.js";import{d as B,b as V,k as L,o as s,c as M,$ as n,a as N,bj as i,u as e,O as p}from"./@vue-cb50a1c4.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 U={class:"page_container"},z={class:"flex-1 overflow-hidden"},K=B({__name:"index",setup(O){G();const v=g();C();const y=I(),{toSpecifiedConversation:h}=T(),m=V(0),r=L(()=>{const o=[],t=[];return v.storeGroupList.map(a=>{a.ownerUserID===y.storeSelfInfo.userID?o.push(a):t.push(a)}),{createdGroup:o,joinedGroup:t}}),c=o=>{const t=j.WorkingGroup;h({sourceID:o.groupID,sessionType:t})};return(o,t)=>{const a=D,b=w,u=x,k=$;return s(),M("div",U,[n(a,{title:o.$t("contactMenu.myGroup")},null,8,["title"]),n(b,{background:"#fff",placeholder:o.$t("placeholder.search"),readonly:"",onClickInput:t[0]||(t[0]=l=>o.$router.push({path:"searchFriendOrGroup",state:{isGroup:"true"}}))},null,8,["placeholder"]),N("div",z,[n(k,{active:m.value,"onUpdate:active":t[1]||(t[1]=l=>m.value=l)},{default:i(()=>[n(u,{title:o.$t("contactMenu.myCreate")},{default:i(()=>[e(r).createdGroup.length>0?(s(),p(e(d),{key:0,class:"my_scrollbar flex-1 overflow-y-auto bg-white","data-key":"groupID","data-sources":e(r).createdGroup,"data-component":_,"estimate-size":88,"extra-props":{subKey:"memberCount",total:e(r).createdGroup.length,onClickItem:c}},null,8,["data-sources","extra-props"])):(s(),p(f,{key:1}))]),_:1},8,["title"]),n(u,{title:o.$t("contactMenu.myJoin")},{default:i(()=>[e(r).joinedGroup.length>0?(s(),p(e(d),{key:0,class:"my_scrollbar flex-1 overflow-y-auto bg-white","data-key":"groupID","data-sources":e(r).joinedGroup,"data-component":_,"estimate-size":88,"extra-props":{subKey:"memberCount",total:e(r).joinedGroup.length,onClickItem:c}},null,8,["data-sources","extra-props"])):(s(),p(f,{key:1}))]),_:1},8,["title"])]),_:1},8,["active"])])])}}});const Co=S(K,[["__scopeId","data-v-e6bda740"]]);export{Co as default};
