(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-008bd727"],{"17a3":function(t,i,s){"use strict";s.r(i);var a=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"r-view-mgr",on:{click:function(t){t.stopPropagation()}}},[t.adminShow?[s("div",{staticClass:"groudMgr-top"},[s("i",{staticClass:"el-icon-arrow-left",on:{click:function(i){t.adminShow=!1}}}),s("span",[t._v(t._s(t.$t("group.admin")))]),s("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),s("div",{staticClass:"groudMgr-admins"},[s("div",{staticClass:"admins-add",on:{click:function(i){return t.$showInvite(4)}}},[s("div",{staticClass:"add-fl"},[s("i",{staticClass:"el-icon-circle-plus-outline"}),t._v(t._s(t.$t("group.add"))+t._s(t.$t("group.admin"))+"\n        ")]),s("div",{staticClass:"add-fr"},[t._v("\n          "+t._s(t.adminsList.length)+"/"+t._s(t.membersArray.length)+"\n          "),s("i",{staticClass:"el-icon-arrow-right"})])]),s("ul",{staticClass:"admin-list"},t._l(t.adminsList,function(i,a){return s("li",{key:a,staticClass:"admin-item"},[i.cover_photo?s("img",{staticClass:"user-avatar",attrs:{src:i.cover_photo}}):s("div",{staticClass:"user-avatar",class:"avatar_bg"+i.user_id%9,attrs:{"data-name":i.nick_name.slice(0,2).toUpperCase()}}),s("span",{staticClass:"name"},[t._v(t._s(i.nick_name))]),s("el-button",{on:{click:function(s){return t.removeAdmin(i.user_id,i.nick_name)}}},[t._v(t._s(t.$t("public.remove")))])],1)}),0)])]:[s("div",{staticClass:"groudMgr-top"},[s("i",{staticClass:"el-icon-arrow-left",on:{click:t.handleGroudMgr}}),s("span",[t._v(t._s(t.$t("public.setting")))]),s("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),s("div",{staticClass:"ad-wrap"},[s("div",{staticClass:"ad-item",on:{click:function(i){t.adminShow=!0}}},[t._v("\n        "+t._s(t.$t("group.adminSetting"))),s("i",{staticClass:"el-icon-arrow-right"})]),s("div",{staticClass:"ad-item",on:{click:function(i){return t.$showInvite(5)}}},[t._v("\n        "+t._s(t.$t("invite.transferGroupOwner"))),s("i",{staticClass:"el-icon-arrow-right"})]),s("div",{staticClass:"ad-item",on:{click:t.addGroupAuth}},[t._v("\n        "+t._s(t.$t("group.groupCertification"))),s("i",{staticClass:"el-icon-arrow-right"})]),s("div",{staticClass:"ad-item",on:{click:function(i){t.isShowTeleTip=!0}}},[t._v("\n        "+t._s(t.$t("group.relateTelegram"))),s("i",{staticClass:"el-icon-arrow-right"})])])],s("div",{staticClass:"view-telegram",class:[{"move-left":t.isShowTeleTip}]},[s("div",{staticClass:"groudMgr-top"},[s("i",{staticClass:"el-icon-arrow-left",on:{click:function(i){t.isShowTeleTip=!1}}}),s("span",[t._v(t._s(t.$t("group.relateTelegram")))]),s("i",{staticClass:"el-icon-close",on:{click:function(i){t.isShowTeleTip=!1}}})]),s("p",[t._v(t._s(t.$t("group.teleStep1")))]),s("p",[t._v(t._s(t.$t("group.teleStep2")))])])],2)},n=[],e=(s("7e48"),s("3050"),s("a619")),o=s.n(e),c=s("3f47"),r=(s("3a23"),s("39ab"),s("c843")),l=s.n(r),u=s("6e6d"),d=s("52c1"),m=s("5975"),p=s("8869");u["default"].component(l.a.name,l.a);var h={name:"chatGroudMgr",mixins:[p["a"]],computed:Object(c["a"])({},Object(d["e"])({curGroupId:function(t){return t.curSession},userId:function(t){return t.userId},membersArray:function(t){return t.group.membersArray},sessionList:function(t){return t.chat.sessionList}}),{adminsList:function(){return this.membersArray.filter(function(t){return 1==t.is_admin})}}),data:function(){return{isShowTeleTip:!1,adminShow:!1}},methods:{handleGroudMgr:function(){this.$emit("handleShowGroudMgr",0)},handleCloseCharSet:function(){this.$emit("handleShowCharSet",0),this.adminShow=!1},removeAdmin:function(t,i){var s=this;o.a.confirm("".concat(this.$t("public.confirm")).concat(this.$t("public.remove")).concat(i,"?")).then(function(){m["a"].group.removeAdmin({admin_id:t,group_id:s.curGroupId}).then(function(t){t.data;s.$store.dispatch("getGroupInfo")})}).catch(function(t){console.log(t)})},addGroupAuth:function(){var t=this;m["a"].base.groupAuth({group_id:this.curGroupId}).then(function(i){var s=i.data,a=s.data.serverId,n=t.userId>a?"".concat(a,"-").concat(t.userId):"".concat(t.userId,"-").concat(a);t.addPanelSession(a,n),t.$store.commit("changeSessionId",n),t.$router.push({path:"/pm/".concat(n)})})}}},v=h,g=(s("c1de"),s("17cc")),f=Object(g["a"])(v,a,n,!1,null,"d3493e84",null);i["default"]=f.exports},b4a4:function(t,i,s){},c1de:function(t,i,s){"use strict";var a=s("b4a4"),n=s.n(a);n.a}}]);