"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../../common/assets.js"),r=require("../../../utils/env.js");Math||n();const n=()=>"../../common/Icon.js",o=e.defineComponent({__name:"manage-member",props:{list:{type:Array,default:()=>[]},total:{type:Number,default:()=>0},isShowDel:{type:Boolean,default:()=>!1},self:{type:Object,default:()=>({})}},emits:["more","del","handleMemberProfileShow","close"],setup(n,{emit:o}){const u=n,f=e.ref(0),a=e.ref([]),s=e.ref(!1),l=e.ref({});e.watchEffect((()=>{f.value=u.total,s.value=u.isShowDel,a.value=u.list,l.value=u.self}));const c=o,i=t=>{let r="";switch(null==t?void 0:t.role){case e.qt.TYPES.GRP_MBR_ROLE_ADMIN:r=e.Wt.t("TUIGroup.管理员");break;case e.qt.TYPES.GRP_MBR_ROLE_OWNER:r=e.Wt.t("TUIGroup.群主")}return r&&(r=`(${r})`),t.userID===l.value.userID&&(r+=` (${e.Wt.t("TUIGroup.我")})`),r},p=()=>{c("more")},m=e=>{c("del",[e])},d=e=>{c("handleMemberProfileShow",e)};return(n,o)=>e.e({a:!e.unref(r.isUniFrameWork)},e.unref(r.isUniFrameWork)?e.e({f:e.t(e.unref(e.Wt).t("TUIGroup.群成员")),g:e.t(e.unref(e.Wt).t("关闭")),h:e.o$1((e=>{c("close","member")})),i:e.f(e.unref(a),((r,n,o)=>e.e({a:r.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b:e.t(r.nick||r.userID),c:e.t(i(r)),d:e.o$1((e=>d(r)),n),e:"Owner"!==r.role&&e.unref(s)},"Owner"!==r.role&&e.unref(s)?{f:"26f5f486-1-"+o,g:e.p({file:e.unref(t.delIcon$1),width:"16px",height:"16px"})}:{},{h:e.o$1((e=>m(r)),n),i:n}))),j:e.unref(a).length<e.unref(f)},e.unref(a).length<e.unref(f)?{k:e.t(e.unref(e.Wt).t("TUIGroup.查看更多")),l:e.o$1(p)}:{}):e.e({b:e.f(e.unref(a),((r,n,o)=>e.e({a:r.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b:e.t(r.nick||r.userID),c:e.t(i(r)),d:e.o$1((e=>d(r)),n),e:"Owner"!==r.role&&e.unref(s)},"Owner"!==r.role&&e.unref(s)?{f:"26f5f486-0-"+o,g:e.p({file:e.unref(t.delIcon$1),width:"16px",height:"16px"})}:{},{h:e.o$1((e=>m(r)),n),i:n}))),c:e.unref(a).length<e.unref(f)},e.unref(a).length<e.unref(f)?{d:e.t(e.unref(e.Wt).t("TUIGroup.查看更多")),e:e.o$1(p)}:{}))}}),u=e._export_sfc(o,[["__scopeId","data-v-26f5f486"]]);wx.createComponent(u);
