(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bfa1569"],{"02f4":function(t,e,i){var s=i("4588"),a=i("be13");t.exports=function(t){return function(e,i){var n,o,r=String(a(e)),c=s(i),u=r.length;return c<0||c>=u?t?"":void 0:(n=r.charCodeAt(c),n<55296||n>56319||c+1===u||(o=r.charCodeAt(c+1))<56320||o>57343?t?r.charAt(c):n:t?r.slice(c,c+2):o-56320+(n-55296<<10)+65536)}}},"1c4c":function(t,e,i){"use strict";var s=i("9b43"),a=i("5ca1"),n=i("4bf8"),o=i("1fa8"),r=i("33a4"),c=i("9def"),u=i("f1ae"),l=i("27ee");a(a.S+a.F*!i("5cc5")(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,a,d,h=n(t),m="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,f=void 0!==v,g=0,_=l(h);if(f&&(v=s(v,p>2?arguments[2]:void 0,2)),void 0==_||m==Array&&r(_))for(e=c(h.length),i=new m(e);e>g;g++)u(i,g,f?v(h[g],g):h[g]);else for(d=_.call(h),i=new m;!(a=d.next()).done;g++)u(i,g,f?o(d,v,[a.value,g],!0):a.value);return i.length=g,i}})},"218f":function(t,e,i){},"5df3":function(t,e,i){"use strict";var s=i("02f4")(!0);i("01f9")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=s(e,i),this._i+=t.length,{value:t,done:!1})})},"7a9f":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"c-view"},[i("div",{staticClass:"box"},[i("div",{staticClass:"box-hd"},[i("div",{staticClass:"title-wrap"},[t._v("\n "+t._s(t.isPrivate?t.group.privateName:t.group.groupName)+"\n "),t.isPrivate?t._e():i("span",[t._v("("+t._s(t.group.membersNum)+")")]),t.isPrivate?t._e():i("i",{staticClass:"el-icon-more",on:{click:function(e){t.groupSet=!t.groupSet}}})])]),i("chat-pin",t._b({on:{pinMsgClose:t.pinMsgClose,scrollToView:t.scrollToView}},"chat-pin",t.pinMsg,!1)),i("div",{staticClass:"box-bd",class:{hidden:t.bdHiden}},[i("div",{ref:"scrollWrap",staticClass:"bar",on:{scroll:t.handleScroll}},[i("div",{ref:"msgWrap",staticClass:"scroll-wrapper"},[i("div",{staticClass:"msg-wrap"},[t.lockEnd?i("div",{staticClass:"msg-top-more"},[i("em",[t._v("没有更多了")])]):t._e(),t.lockMore&&!t.lockEnd?i("div",{staticClass:"msg-top-load"},[i("i",{staticClass:"msg-loading-icon"})]):t._e(),t.group.chatList.length?t._l(t.group.pinList,function(e,s){return i("msg-item",t._b({key:"pin"+s,on:{quoteMsg:t.quoteMsg,deleteMsg:t.deleteMsg}},"msg-item",e,!1))}):t._e(),t._l(t.chatList,function(e,s){return i("msg-item",t._b({key:s,attrs:{isPrivate:t.isPrivate,msgItem:e},on:{quoteMsg:t.quoteMsg,deleteMsg:t.deleteMsg}},"msg-item",e,!1))})],2)])]),t.isPrivate?t._e():i("at-me",{attrs:{atList:t.atList},on:{scrollToMsg:t.scrollToMsg}}),t.group.unreadNums>0&&t.enableScroll&&!t.isBottom?i("div",{staticClass:"msg-unread",on:{click:t.doSetRead}},[i("em",[i("i",{staticClass:"el-icon-d-arrow-right"}),t._v("\n "+t._s(t.group.unreadNums)+"条未读消息\n ")])]):t._e()],1),i("input-area",{directives:[{name:"show",rawName:"v-show",value:1==t.isJoinGroup,expression:"isJoinGroup==1"}],ref:"inputArea",on:{toBottom:t.resizeToBottom}}),i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.isJoinGroup,expression:"isJoinGroup==0"}],staticClass:"btn-join",on:{click:function(e){t.joinGroup()}}},[t._v("加入群聊")])],1),t.group.members&&!t.isPrivate?i("chat-set",{class:{"move-left":t.groupSet},on:{handleShowGroudMgr:t.showGroudMgr}}):t._e(),i("chat-groud-mgr",{directives:[{name:"show",rawName:"v-show",value:t.isCreator,expression:"isCreator"}],class:{"move-left":t.isShowGroudMgr},on:{handleShowGroudMgr:t.showGroudMgr,handleShowCharSet:t.showCharSet}})],1)},a=[],n=(i("7f7f"),i("1951"),i("450d"),i("eedf")),o=i.n(n),r=(i("cadf"),i("551c"),i("097d"),i("2b0e")),c=i("2f35"),u=i("34d0"),l=i("9360"),d=i("3868"),h=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"r-view pub-scroll-box"},[i("div",{staticClass:"setting-top"},[i("div",{staticClass:"search-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTxt,expression:"searchTxt"}],attrs:{type:"text",placeholder:"搜索群成员"},domProps:{value:t.searchTxt},on:{input:function(e){e.target.composing||(t.searchTxt=e.target.value)}}}),i("i",{staticClass:"el-icon-search"})]),t.isSearch?i("ul",{staticClass:"user-list pub-scroll-box"},[t._l(t.searchList,function(e,s){return[i("li",{key:s,staticClass:"list-item",on:{click:function(i){t.$showOtherInfo(e.user_id)}}},[e.cover_photo?i("img",{staticClass:"avatar",attrs:{src:e.cover_photo,alt:""}}):i("div",{staticClass:"user-avatar avatar",class:"avatar_bg"+e.user_id%9,attrs:{title:e.nick_name,"data-name":e&&e.nick_name&&e.nick_name.slice(0,2).toUpperCase()}}),i("span",{staticClass:"name"},[t._v(t._s(e.nick_name))])])]})],2):i("ul",{ref:"scrollWrap",staticClass:"user-list pub-scroll-box",class:{"height-limit":t.limitHeight}},[t.isAdmin||t.isCreator?i("li",{staticClass:"list-item",on:{click:function(e){t.$showInvite(2)}}},[t._m(0),i("span",{staticClass:"name"},[t._v("添加")])]):t._e(),t.isAdmin||t.isCreator?i("li",{staticClass:"list-item",on:{click:function(e){t.$showInvite(3)}}},[t._m(1),i("span",{staticClass:"name"},[t._v("删除")])]):t._e(),t._l(t.membersArray,function(e,s){return[i("li",{key:s,staticClass:"list-item",on:{click:function(i){t.$showOtherInfo(e.user_id)}}},[i("div",{staticClass:"avatar-box"},[e.cover_photo?i("img",{staticClass:"avatar",attrs:{src:e.cover_photo,alt:""}}):i("div",{staticClass:"user-avatar avatar",class:"avatar_bg"+e.user_id%9,attrs:{title:e.nick_name,"data-name":e&&e.nick_name&&e.nick_name.slice(0,2).toUpperCase()}}),t.group.creator==e.user_id?i("i",{staticClass:"creator-icon"}):t.adminList.includes(Number(e.user_id))?i("i",{staticClass:"admin-icon el-icon-star-on"}):t._e()]),i("span",{staticClass:"name"},[t._v(t._s(e.nick_name))])])]})],2),t.group.userCounts>6?i("div",{staticClass:"show-all-btn",on:{click:t.handleShowAll}},[t._v("\n "+t._s(t.limitHeight?"展开全部":"收起")+" "),i("i",{class:"el-icon-arrow-"+(t.limitHeight?"down":"up")})]):t._e()]),t.isAdmin||t.isCreator?i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("群名")]),t.isEdit?i("input",{directives:[{name:"model",rawName:"v-model",value:t.newGroupName,expression:"newGroupName"},{name:"focus",rawName:"v-focus"}],staticClass:"edit-full-input",attrs:{type:"text"},domProps:{value:t.newGroupName},on:{blur:t.handleTitleBlur,input:function(e){e.target.composing||(t.newGroupName=e.target.value)}}}):i("p",{staticClass:"text",on:{click:t.handleTitleFocus}},[t._v(t._s(t.group.groupName)),i("i",{staticClass:"el-icon-edit"})])]):t._e(),t.isAdmin||t.isCreator?i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("设置群头像")]),i("p",{staticClass:"text cursor",on:{click:function(e){t.$editGroupAvatar(t.group.coverPhoto)}}},[t.group.coverPhoto?i("img",{staticClass:"team-avatar",attrs:{src:t.group.coverPhoto,alt:""}}):i("span",{staticClass:"no-avatar"},[i("i",{staticClass:"el-icon-plus"})]),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})])]):t._e(),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("群公告")]),t.isAdmin||t.isCreator?i("p",{staticClass:"text cursor",on:{click:t.handleOpenNotice}},[t._v(t._s(t.group.groupNotice)),i("i",{staticClass:"el-icon-edit"})]):[t.group.groupNotice?i("p",{staticClass:"text notice"},[t._v("\n "+t._s(t.group.groupNotice)+"\n ")]):i("p",{staticClass:"text notice"},[t._v("\n 暂无公告\n ")])]],2),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("群邀请链接")]),i("p",{staticClass:"text"},[t.isEditLink?[i("em",{staticClass:"edit-name-path"},[t._v(t._s(t.sharePath))]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.editShareName,expression:"editShareName"},{name:"focus",rawName:"v-focus"}],staticClass:"edit-name-input",attrs:{type:"text",autofocus:""},domProps:{value:t.editShareName},on:{blur:t.handleLinkBlur,input:function(e){e.target.composing||(t.editShareName=e.target.value)}}})]:[i("a",{staticClass:"invite-link",attrs:{href:"javascript:"},on:{click:function(e){t.copyLink(t.group.inviteUrl)}}},[t._v(t._s(t.sharePath+t.shareName))]),t.isAdmin||t.isCreator?i("span",{staticClass:"invite-editBtn",on:{click:t.handleLinkFocus}},[i("i",{staticClass:"el-icon-edit"})]):t._e()]],2)]),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("消息免打扰")]),i("p",{staticClass:"text"},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#2298f0","inactive-color":"#cbcbcb"},on:{change:t.changeMute},model:{value:t.sessionInfo.is_mute,callback:function(e){t.$set(t.sessionInfo,"is_mute",e)},expression:"sessionInfo.is_mute"}})],1)]),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v("置顶聊天")]),i("p",{staticClass:"text"},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#2298f0","inactive-color":"#cbcbcb"},on:{change:t.changePin},model:{value:t.sessionInfo.is_pin,callback:function(e){t.$set(t.sessionInfo,"is_pin",e)},expression:"sessionInfo.is_pin"}})],1)]),t.isCreator?i("div",{staticClass:"setting-item ext-group-admin",on:{click:t.handleGroudMgr}},[t._m(2)]):t._e(),i("div",{staticClass:"setting-bottom"},[i("button",{staticClass:"delete-btn",on:{click:t.leaveGroup}},[t._v("退出群组")])]),i("transition",{attrs:{name:"msgbox-fade"}},[t.editNotice?i("div",{staticClass:"pub-wrapper"},[i("div",{staticClass:"pub-mask"}),i("div",{staticClass:"pub-modal notice-modal"},[i("div",{staticClass:"modal-hd"},[i("div",{staticClass:"title"},[t._v("群公告")]),i("i",{staticClass:"el-icon-close",on:{click:function(e){t.editNotice=!1}}})]),i("div",{staticClass:"modal-bd"},[i("textarea",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.newNotice,expression:"newNotice"}],attrs:{placeholder:"请输入你的群公告"},domProps:{value:t.newNotice},on:{input:function(e){e.target.composing||(t.newNotice=e.target.value)}}})]),i("div",{staticClass:"modal-fd"},[i("el-button",{attrs:{type:"primary"},on:{click:t.handleNotice}},[t._v("确认")])],1)])]):t._e()])],1)},m=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"avatar btn"},[i("i",{staticClass:"el-icon-plus"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"avatar btn"},[i("i",{staticClass:"el-icon-minus"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title"},[t._v("群管理"),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})])}],p=(i("4917"),i("96cf"),i("1da1")),v=i("be94"),f=(i("e960"),i("b35b")),g=i.n(f),_=i("5975"),C=i("2f62"),w=i("33f8");r["default"].component(o.a.name,o.a),r["default"].component(g.a.name,g.a);var b={name:"chatSet",watch:{searchTxt:function(t,e){""==t?this.isSearch=!1:(this.isSearch=!0,this.searchUser())}},computed:Object(v["a"])({},Object(C["d"])({myId:function(t){return t.userId},group:function(t){return t.group},curGroupId:function(t){return t.curSession},members:function(t){return t.group.members},sessionInfo:function(t){return t.group.sessionInfo},shareName:function(t){return t.group.shareName},adminList:function(t){return t.group.adminList},membersArray:function(t){return t.group.membersArray}}),{isAdmin:function(){return this.members&&this.members[this.myId]&&1==this.members[this.myId].is_admin},isCreator:function(){return this.group.creator==this.myId}}),data:function(){return{msgPush:!1,msgTop:!1,limitHeight:!0,isEdit:!1,newGroupName:"",newLink:"",newNotice:"",isEditLink:!1,editNotice:!1,editShareName:"",sharePath:"".concat(location.origin,"/s/"),isSearch:!1,searchList:[],searchTxt:""}},methods:Object(v["a"])({},Object(C["b"])(["updateSessionItem"]),{handleTitleBlur:function(){var t=this;this.isEdit=!1,this.newGroupName.length&&_["a"].group.changeTitle({group_id:this.curGroupId,title:this.newGroupName}).then(function(e){e.data;t.updateSessionItem({sessionId:t.curGroupId,data:{name:t.newGroupName}}),t.$store.commit("updateGroup",{key:"groupName",data:t.newGroupName})})},handleTitleFocus:function(){this.isEdit=!0,this.newGroupName=this.group.groupName},handleShowAll:function(){this.limitHeight||(this.$refs.scrollWrap.scrollTop=0),this.limitHeight=!this.limitHeight},handleLinkBlur:function(){var t=Object(p["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.isEditLink=!1,!this.editShareName.match(/^\d{1,}$/)){t.next=4;break}return this.$showTips("分享链接不能是纯数字"),t.abrupt("return");case 4:if(this.editShareName.match(/^(\w|.){1,}$/)){t.next=7;break}return this.$showTips("分享链接只能是英文字母,数字和 . 的组合"),t.abrupt("return");case 7:return t.next=9,Object(w["f"])("分享链接只能被修改一次,确认修改为:".concat(this.sharePath+this.editShareName),"提示").catch(function(t){});case 9:_["a"].group.changeName({group_id:this.curGroupId,name:this.editShareName}).then(function(){e.$store.commit("updateGroup",{key:"shareName",data:e.editShareName})});case 10:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),handleLinkFocus:function(){this.isEditLink=!0,this.editShareName=this.shareName},handleNotice:function(){var t=this;_["a"].group.changeNotice({group_id:this.curGroupId,notice:this.newNotice}).then(function(){t.$showTips("修改成功"),t.editNotice=!1,t.$store.commit("updateGroup",{key:"groupNotice",data:t.newNotice})})},handleGroudMgr:function(){this.$emit("handleShowGroudMgr",1)},handleOpenNotice:function(){this.editNotice=!0,this.newNotice=this.group.groupNotice},copyLink:function(t){var e=this;this.$copyText(t).then(function(t){e.$showTips("复制成功")})},changePin:function(t){var e=this;1==t?_["a"].session.setPin({session_id:this.curGroupId}).then(function(){e.$store.commit("updatePin",t),e.$store.commit("updateSessionListByPin",e.curGroupId)}):_["a"].session.cancelPin({session_id:this.curGroupId}).then(function(){e.$store.commit("updatePin",t),e.$store.commit("cancelSessionListByPin",e.curGroupId)})},changeMute:function(t){var e=this;1==t?_["a"].session.setMute({session_id:this.curGroupId}).then(function(){e.$store.commit("updateMute",t)}):_["a"].session.cancelMute({session_id:this.curGroupId}).then(function(){e.$store.commit("updateMute",t)})},leaveGroup:function(){var t=this;Object(w["f"])("确认退出该群聊?").then(function(){_["a"].group.leaveGroup({group_id:t.curGroupId}).then(function(){t.$store.commit("removeSessionListById",t.curGroupId),t.$store.dispatch("getGroupInfo"),t.$showTips("已退出该群聊")})})},searchUser:function(){var t=this;if(this.membersArray.length-1,s=!!t.nick_name&&t.nick_name.indexOf(e)>-1,i||s})}}})},k=b,N=(i("d206"),i("2877")),S=Object(N["a"])(k,h,m,!1,null,"e4042448",null);S.options.__file="index.vue";var x=S.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"box-ft"},[i("transition",{attrs:{name:"msgbox-fade"}},[i("Emoji",{directives:[{name:"show",rawName:"v-show",value:t.emojiShow,expression:"emojiShow"}],on:{addEmoji:t.addEmoji}})],1),t.atShow?i("chat-at",{ref:"chatAt",attrs:{curInd:t.atInd,filterList:t.filterMembers},on:{atperson:t.atPerson}}):t._e(),i("div",{staticClass:"toolbar"},[i("i",{staticClass:"look-icon",on:{click:function(e){e.stopPropagation(),t.emojiShow=!t.emojiShow}}}),i("div",{staticClass:"file-icon"},[i("input",{ref:"inputFile",attrs:{type:"file",name:"res"},on:{change:t.handleFile}})]),i("i",{staticClass:"icon-packet",on:{click:t.$packetSend}})]),i("div",{staticClass:"send-content"},[i("form",{staticClass:"input-wrap",on:{submit:t.handleSend}},[i("textarea",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.inputMsg,expression:"inputMsg"}],ref:"chatInput",attrs:{cols:"1",rows:"1",placeholder:""},domProps:{value:t.inputMsg},on:{click:function(t){t.stopPropagation()},keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?(e.preventDefault(),t.handleUp(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?(e.preventDefault(),t.handleDown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:t.handleLeft(e):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?"button"in e&&2!==e.button?null:t.handleRight(e):null},function(e){return"button"in e||!t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete"])?t.handleDel(e):null},function(e){return"button"in e||!t._k(e.keyCode,"esc",27,e.key,"Escape")?t.handleEsc(e):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleKeyDown(e):null}],focus:t.handleFocus,blur:t.handleBlur,input:function(e){e.target.composing||(t.inputMsg=e.target.value)}}})])]),i("div",{staticClass:"send-action"},[t._v("Enter发送,Ctrl + Enter 换行\n "),i("el-button",{on:{click:t.handleSend}},[t._v("发送")])],1)],1)},G=[],I=(i("ac6a"),i("5df3"),i("1c4c"),i("4e81")),M=i("a1aa"),$=i("8869"),A={name:"inputArea",mixins:[$["a"],$["b"],d["b"]],components:{Emoji:I["a"],chatAt:M["a"]},watch:{$route:function(){this.$refs.chatInput.focus(),this.inputMsg=""}},mounted:function(){document.addEventListener("paste",this.initPaste),document.addEventListener("drop",this.initDrop),document.addEventListener("dragover",this.initDragOver)},beforeDestroy:function(){document.removeEventListener("paste",this.initPaste),document.removeEventListener("drop",this.initDrop),document.removeEventListener("dragover",this.initDragOver)},methods:{initDrop:function(t){var e=this;t.preventDefault();var i=Array.from(t.dataTransfer.files);i.forEach(function(t){return e.handleFile(t)})},initDragOver:function(t){t.preventDefault()},initPaste:function(t){var e=this,i=(t.clipboardData||window.clipboardData).items;i&&i.length&&Array.from(i).forEach(function(t){var i=t.getAsFile();i&&e.handleFile(i)})}}},L=A,E=(i("a1e0"),Object(N["a"])(L,y,G,!1,null,"eef4070a",null));E.options.__file="inputArea.vue";var P=E.exports,T=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"r-view-mgr"},[t.adminShow?[i("div",{staticClass:"groudMgr-top"},[i("i",{staticClass:"el-icon-arrow-left",on:{click:function(e){t.adminShow=!1}}}),i("span",[t._v("群管理")]),i("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),i("div",{staticClass:"groudMgr-admins"},[i("div",{staticClass:"admins-add",on:{click:function(e){t.$showInvite(4)}}},[t._m(0),i("div",{staticClass:"add-fr"},[t._v("\n "+t._s(t.adminsList.length)+"/"+t._s(t.membersArray.length)+"\n "),i("i",{staticClass:"el-icon-arrow-right"})])]),i("ul",{staticClass:"admin-list"},t._l(t.adminsList,function(e,s){return i("li",{key:s,staticClass:"admin-item"},[e.cover_photo?i("img",{staticClass:"user-avatar",attrs:{src:e.cover_photo}}):i("div",{staticClass:"user-avatar",class:"avatar_bg"+e.user_id%9,attrs:{"data-name":e.nick_name.slice(0,2).toUpperCase()}}),i("span",{staticClass:"name"},[t._v(t._s(e.nick_name))]),i("el-button",{on:{click:function(i){t.removeAdmin(e.user_id,e.nick_name)}}},[t._v("移除")])],1)}))])]:[i("div",{staticClass:"groudMgr-top"},[i("i",{staticClass:"el-icon-arrow-left",on:{click:t.handleGroudMgr}}),i("span",[t._v("设置")]),i("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),i("div",{staticClass:"ad-wrap"},[i("div",{staticClass:"ad-item",on:{click:function(e){t.adminShow=!0}}},[t._v("\n 群管理员设置"),i("i",{staticClass:"el-icon-arrow-right"})]),i("div",{staticClass:"ad-item",on:{click:function(e){t.$showInvite(5)}}},[t._v("\n 转让群主"),i("i",{staticClass:"el-icon-arrow-right"})]),i("div",{staticClass:"ad-item",on:{click:t.addGroupAuth}},[t._v("\n 申请群认证"),i("i",{staticClass:"el-icon-arrow-right"})])])]],2)},j=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"add-fl"},[i("i",{staticClass:"el-icon-circle-plus-outline"}),t._v("添加群管理\n ")])}],O=(i("9e1f"),i("6ed5")),D=i.n(O);r["default"].component(o.a.name,o.a);var B={name:"chatGroudMgr",computed:Object(v["a"])({},Object(C["d"])({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{adminShow:!1}},methods:{handleGroudMgr:function(){this.$emit("handleShowGroudMgr",0)},handleCloseCharSet:function(){this.$emit("handleShowCharSet",0),this.adminShow=!1},removeAdmin:function(t,e){var i=this;D.a.confirm("确定移除".concat(e,"吗?")).then(function(){_["a"].group.removeAdmin({admin_id:t,group_id:i.curGroupId}).then(function(t){t.data;i.$store.dispatch("getGroupInfo")})}).catch(function(t){console.log(t)})},addGroupAuth:function(){var t=this;_["a"].group.groupAuth({group_id:this.curGroupId}).then(function(e){var i=e.data,s=i.data.serverId,a=t.userId>s?"".concat(s,"-").concat(t.userId):"".concat(t.userId,"-").concat(s),n=t.sessionList.some(function(t){return t.session_id==a});n||_["a"].user.getOtherInfo({target_id:s}).then(function(e){var i=e.data,s=i.data,n={cover_photo:s.cover_photo,is_group:"0",name:s.nick_name,session_id:a,unread:0};t.$store.commit("addSessionItem",n)}),t.$store.commit("changeSessionId",a),t.$router.push({path:"/pm/".concat(a)})})}}},F=B,H=(i("9923"),Object(N["a"])(F,T,j,!1,null,"44b63fb8",null));H.options.__file="index.vue";var U=H.exports;r["default"].component(o.a.name,o.a);var R={name:"chatRoom",mixins:[d["a"]],data:function(){return{isShowGroudMgr:!1,bdHiden:!0}},components:{msgItem:c["a"],inputArea:P,chatGroudMgr:U,chatSet:x,chatPin:u["a"],atMe:l["a"]},methods:{showCharSet:function(t){this.groupSet=1==t,this.isShowGroudMgr=!1},showGroudMgr:function(t){this.isShowGroudMgr=1==t}},mounted:function(){var t=this;this.scrollHeight=Object(w["k"])(),window.onresize=function(){t.scrollHeight=Object(w["k"])()}}},J=R,q=(i("ffdf"),Object(N["a"])(J,s,a,!1,null,"cc3aadca",null));q.options.__file="chatRoom.vue";e["default"]=q.exports},9923:function(t,e,i){"use strict";var s=i("218f"),a=i.n(s);a.a},a1e0:function(t,e,i){"use strict";var s=i("dcf8"),a=i.n(s);a.a},c844:function(t,e,i){},d206:function(t,e,i){"use strict";var s=i("f53a"),a=i.n(s);a.a},dcf8:function(t,e,i){},f1ae:function(t,e,i){"use strict";var s=i("86cc"),a=i("4630");t.exports=function(t,e,i){e in t?s.f(t,e,a(0,i)):t[e]=i}},f53a:function(t,e,i){},ffdf:function(t,e,i){"use strict";var s=i("c844"),a=i.n(s);a.a}}]);