"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../../../../common/assets.js");Math||(r+n)();const n=()=>"../../common/Slider/index.js",r=()=>"../../common/Icon.js",u=e.defineComponent({__name:"manage-admin",props:{member:{type:Object,default:()=>{}},isSetMuteTime:{type:Boolean,default:()=>!1},currentGroup:{type:Object,default:()=>{}}},emits:["addAdmin","removeAdmin","setAllMuteTime","addMute","removeMute","close"],setup(n,{emit:r}){const u=n,m=e.ref(!1),o=e.ref({admin:[],member:[],muteMember:[]}),a=e.ref();e.watchEffect((()=>{o.value=u.member,m.value=u.isSetMuteTime,a.value=u.currentGroup}));const i=r,s=()=>{i("addAdmin")},p=()=>{i("removeAdmin")},d=e=>{i("setAllMuteTime",e)},f=()=>{i("addMute")},c=()=>{i("removeMute")};return(n,r)=>e.e({a:e.t(e.unref(e.Wt).t("TUIGroup.群管理员")),b:e.f(e.unref(o).admin,((t,n,r)=>({a:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b:e.t(t.nick||t.userID),c:n}))),c:e.p({file:e.unref(t.plusSVG),width:"16px",height:"16px"}),d:e.o$1(s),e:e.unref(o).admin.length>0},e.unref(o).admin.length>0?{f:e.p({file:e.unref(t.minusSVG),width:"16px",height:"16px"}),g:e.o$1(p)}:{},{h:e.unref(m)},e.unref(m)?{i:e.t(e.unref(e.Wt).t("TUIGroup.全员禁言")),j:e.t(e.unref(e.Wt).t("TUIGroup.全员禁言开启后，只允许群主和管理员发言。")),k:e.o$1(d),l:e.p({open:e.unref(a).muteAllMembers})}:{},{m:e.unref(m)},e.unref(m)?e.e({n:e.t(e.unref(e.Wt).t("TUIGroup.单独禁言人员")),o:e.f(e.unref(o).muteMember,((t,n,r)=>({a:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b:e.t(t.nick||t.userID),c:n}))),p:e.p({file:e.unref(t.plusSVG),width:"16px",height:"16px"}),q:e.o$1(f),r:e.unref(o).muteMember.length>0},e.unref(o).muteMember.length>0?{s:e.p({file:e.unref(t.minusSVG),width:"16px",height:"16px"}),t:e.o$1(c)}:{}):{})}}),m=e._export_sfc(u,[["__scopeId","data-v-2a5ca315"]]);wx.createComponent(m);
