import{u as I}from"./vue-i18n-90d534a9.js";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{U as k}from"./uqrcodejs-00405b21.js";import{k as w,l as y,ba as S,bb as D,o as h,_ as N}from"./index-ae60edf9.js";import{d as Q,b as U,k as g,j as B,o as l,c as _,$ as f,u as e,a as o,aX as r,P as C}from"./@vue-cb50a1c4.js";import"./@intlify-1c0af683.js";import"./vue-router-7f882520.js";import"./index-597402db.js";import"./arrows_left-f963ef62.js";import"./@amap-aca98dec.js";import"./open-im-sdk-wasm-f19f04ec.js";import"./dayjs-4460abc8.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 q={class:"page_container"},E={key:0,class:"mx-6 mt-24 flex flex-col items-center rounded-md bg-white px-9 pt-9 pb-4"},R={class:"flex w-full items-center"},T={class:"info ml-4"},z={class:"max-w-[200px] truncate text-[#333]"},A={class:"mt-1 color text-sm"},L={class:"mt-10 flex h-[240px] w-[240px] items-center justify-center border-4 border-solid border-[#E8EAEF]"},P={class:"mt-6 text-sm text-[#999]"},V={key:1,class:"groupqr"},$={class:"name"},j={class:"tip"},F=Q({__name:"index",props:{isGroup:{type:Boolean}},emits:[],setup(c,{emit:M}){const t=c,{t:i}=I(),n=w(),p=y(),d=U(),a=g(()=>t.isGroup?p.storeCurrentGroupInfo.groupName:n.storeSelfInfo.nickname),x=g(()=>t.isGroup?p.storeCurrentGroupInfo.faceURL:n.storeSelfInfo.faceURL),G=t.isGroup?i("groupQrCode"):i("qrCode"),v=t.isGroup?i("messageTip.scanGroupQrCodeTip"):i("messageTip.scanQrCodeTip");return B(()=>{let m=S+n.storeSelfInfo.userID;t.isGroup&&(m=D+p.storeCurrentGroupInfo.groupID);const s=new k;s.data=m,s.size=200,s.make();const u=d.value.getContext("2d");s.canvasContext=u,s.drawCanvas()}),(m,s)=>{const u=b;return l(),_("div",q,[f(u,{title:e(G)},null,8,["title"]),t.isGroup?C("",!0):(l(),_("div",E,[o("div",R,[f(h,{src:e(x),desc:e(a),"is-group":c.isGroup,size:68},null,8,["src","desc","is-group"]),o("div",T,[o("div",z,r(e(a)),1),o("text",A,"ID："+r(e(n).storeSelfInfo.userID),1)])]),o("div",L,[o("canvas",{ref_key:"canvas",ref:d,width:"200",height:"200"},null,512)]),o("div",P,r(e(v)),1)])),t.isGroup?(l(),_("div",V,[f(h,{src:e(x),desc:e(a),"is-group":c.isGroup,size:60},null,8,["src","desc","is-group"]),o("div",$,"群聊:"+r(e(a)),1),o("canvas",{ref_key:"canvas",ref:d,width:"200",height:"200"},null,512),o("div",j,r(e(v)),1)])):C("",!0)])}}});const ge=N(F,[["__scopeId","data-v-c0d0b136"]]);export{ge as default};
