import{u as g}from"./vue-router-7f882520.js";import{v as C,l as D,o as v,t as x}from"./index-ae60edf9.js";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{u as G}from"./useGroupMemberList-2f20ff8e.js";import{d as y}from"./dayjs-4460abc8.js";import{S as b}from"./open-im-sdk-wasm-f19f04ec.js";import{u as S}from"./useConversationToggle-dd6106ea.js";import{d as A,k as a,j as k,o as M,c as w,$ as s,a as t,u as r,aX as n}from"./@vue-cb50a1c4.js";import{B as $}from"./index-e4a7d928.js";import"./vue-i18n-90d534a9.js";import"./@intlify-1c0af683.js";import"./pinia-de4079f2.js";import"./axios-7d5a0a64.js";import"./form-data-497f8b5e.js";import"./@amap-aca98dec.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"./index-597402db.js";import"./arrows_left-f963ef62.js";const B={class:"page_container"},L={class:"flex-1"},T={class:"flex items-center bg-white px-4 py-6"},N={class:"ml-2"},R={class:"text-lg font-medium"},Y={class:"ml-1 text-sm text-[#ADADAD]"},j={class:"bg-white px-4 py-4"},V={class:"ml-3 text-sub-text"},q={class:"mb-6 mt-8 flex w-full justify-between px-[22px]"},Co=A({__name:"index",setup(z){const u=g(),m=C(),e=D(),{toSpecifiedConversation:c}=S(),{fetchState:l}=G(),f=y(e.storeCurrentGroupInfo.createTime).format("YYYY-MM-DD"),i=a(()=>m.storeGroupList.findIndex(o=>o.groupID===e.storeCurrentGroupInfo.groupID)>-1);a(()=>{if(i.value)return l.groupMemberList.slice(0,6);const o=e.storeCurrentGroupInfo.memberCount??0;return new Array(o>=6?6:o).fill(1).map((d,p)=>({userID:p,nickname:"",faceURL:""}))});const _=()=>{const o=b.WorkingGroup;i.value?c({sourceID:e.storeCurrentGroupInfo.groupID,sessionType:o}):u.push({path:"sendApplication",query:{isGroup:"true",sourceID:e.storeCurrentGroupInfo.groupID,isScan:"false",notNeedVerification:"false",sessionType:o}})};return k(()=>{e.getCurrentMemberInGroupFromReq(e.storeCurrentGroupInfo.groupID)}),(o,d)=>{const p=x,I=$;return M(),w("div",B,[s(h),t("div",L,[t("div",T,[s(v,{size:48,src:r(e).storeCurrentGroupInfo.faceURL,"is-group":""},null,8,["src"]),t("div",N,[t("div",R,[t("span",null,n(r(e).storeCurrentGroupInfo.groupName),1)]),t("div",null,[s(p,{name:"clock",size:"13",color:"#ADADAD"}),t("span",Y,n(r(f)),1)])])]),t("div",j,[t("span",null,n(o.$t("groupID")),1),t("span",V,n(r(e).storeCurrentGroupInfo.groupID),1)])]),t("div",q,[s(I,{type:"primary",class:"!ml-1 w-full text-base",text:r(i)?o.$t("sendMessage"):o.$t("applyJoin"),onClick:_},null,8,["text"])])])}}});export{Co as default};
