1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9c4fb57e"],{1069:function(t,e,i){"use strict";var s=i("fed0"),a=i.n(s);a.a},2422:function(t,e,i){"use strict";var s=i("c9cc"),a=i.n(s);a.a},"339e":function(t,e,i){"use strict";var s=i("705a"),a=i.n(s);a.a},"52a2":function(t,e,i){},"705a":function(t,e,i){},"7a80":function(t,e,i){},"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.group.url?i("a",{staticClass:"icon-link",attrs:{href:t.group.url,target:"_blank"}}):t._e(),t.isPrivate?t._e():i("i",{staticClass:"el-icon-more",on:{click:function(e){e.stopPropagation(),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._s(t.$t("chat.noMore")))])]):t._e(),t.lockMore&&!t.lockEnd?i("div",{staticClass:"msg-top-load"},[i("i",{staticClass:"msg-loading-icon"})]):t._e(),t._l(t.chatList,function(e,s){return i("msg-item",t._b({key:s,attrs:{isPrivate:t.isPrivate,msgItem:e,isAdmin:t.isAdmin},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}}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.group.unreadNums>0&&t.enableScroll&&!t.isBottom,expression:"group.unreadNums > 0 && enableScroll && !isBottom"}],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)+t._s(t.$t("chat.unreadMsg"))+"\n ")])])],1),i("input-area",{directives:[{name:"show",rawName:"v-show",value:1==t.isJoinGroup,expression:"isJoinGroup==1"}],ref:"inputArea",on:{toBottom:t.resizeToBottom,handleFocus:function(e){return t.showCharSet(0)}}}),i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.isJoinGroup,expression:"isJoinGroup==0"}],staticClass:"btn-join",on:{click:function(e){return t.joinGroup()}}},[t._v(t._s(t.$t("chat.joinGroup")))])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoadingRoom,expression:"isLoadingRoom"}],staticClass:"pub-loading"}),t.group.members&&!t.isPrivate?i("chat-set",{class:{"move-left":t.groupSet},on:{showLoadingRoom:t.showLoadingRoom,showCharSet:t.showCharSet,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("dc12"),i("5cf1"),i("ad09"),i("94c8")),o=i.n(n),r=i("8973"),c=i("2f35"),l=i("34d0"),u=i("9360"),d=i("3868"),p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"chatSet",staticClass:"r-view pub-scroll-box",on:{click:function(t){t.stopPropagation()}}},[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:t.$t("group.searchMember")},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){return 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){return t.$showInvite(2)}}},[t._m(0),i("span",{staticClass:"name"},[t._v(t._s(t.$t("group.add")))])]):t._e(),t.isAdmin||t.isCreator?i("li",{staticClass:"list-item",on:{click:function(e){return t.$showInvite(3)}}},[t._m(1),i("span",{staticClass:"name"},[t._v(t._s(t.$t("group.delete")))])]):t._e(),t._l(t.membersArray,function(e,s){return[i("li",{key:s,staticClass:"list-item",on:{click:function(i){return 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?t.$t("group.showAll"):t.$t("group.hideAll"))+" "),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._s(t.$t("group.groupName")))]),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 ext-avatar"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.setGroupAvatar")))]),i("p",{staticClass:"text cursor",on:{click:function(e){return 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._s(t.$t("group.groupPin")))]),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(t._s(t.group.groupNotice))]):i("p",{staticClass:"text notice"},[t._v(t._s(t.$t("group.noPin")))])]],2),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.groupInviteLink")))]),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){return 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)]),t.isAdmin||t.isCreator?i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.groupId")))]),i("p",{staticClass:"text"},[t._v("group_id: "+t._s(t.group.groupId))])]):t._e(),i("div",{staticClass:"setting-item"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.doNotDisturb")))]),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(t._s(t.$t("group.topChat")))]),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 cursor",on:{click:t.handleGroudMgr}},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("group.admin"))),i("i",{staticClass:"el-icon-arrow-right team-arrow-icon"})])]):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.group.isJoin,expression:"group.isJoin"}],staticClass:"setting-bottom"},[i("button",{staticClass:"delete-btn",on:{click:t.leaveGroup}},[t._v(t._s(t.$t("group.quitGroup")))])]),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(t._s(t.$t("group.groupPin")))]),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:t.$t("group.groupPinInput")},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(t._s(t.$t("public.confirm")))])],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"})])}],v=(i("2df7"),i("8058")),h=i.n(v),f=i("bced");r["default"].component(o.a.name,o.a),r["default"].component(h.a.name,h.a);var g={name:"chatSet",mixins:[f["c"]],watch:{searchTxt:function(t,e){""==t?this.isSearch=!1:(this.isSearch=!0,this.searchUser())}}},_=g,C=(i("339e"),i("fc05")),w=Object(C["a"])(_,p,m,!1,null,"5746405c",null),b=w.exports,k=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"}],attrs:{emojiShow:t.emojiShow},on:{addEmoji:t.addEmoji,closeEmojiList:t.closeEmojiList}})],1),i("file-preview",{directives:[{name:"show",rawName:"v-show",value:t.filePreviewShow,expression:"filePreviewShow"}],attrs:{fileInfo:t.fileInfo},on:{handleFileSend:t.handleFileSend,closeFilePreview:t.closeFilePreview}}),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){return e.stopPropagation(),t.handleEmoji(e)}}}),i("div",{staticClass:"file-icon"},[i("input",{ref:"inputFile",attrs:{type:"file"},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(e){return e.stopPropagation(),t.handleClick(e)},input:[function(e){e.target.composing||(t.inputMsg=e.target.value)},t.handleInput],keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.handleUp(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.handleDown(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:"button"in e&&0!==e.button?null:t.handleLeft(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?null:"button"in e&&2!==e.button?null:t.handleRight(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDel(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.handleEsc(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleKeyDown(e)}],focus:t.handleFocus,blur:t.handleBlur,contextmenu:function(e){return e.preventDefault(),t.handleContextmenu(e)}}})]),i("ul",{directives:[{name:"show",rawName:"v-show",value:t.isShowContextmenu,expression:"isShowContextmenu"}],staticClass:"pub-pop-toolbar",style:{top:t.menuTop+"px",left:t.menuLeft+"px"}},[i("li",{on:{click:function(e){return e.preventDefault(),t.handlePaste(e)}}},[t._v(t._s(t.$t("chat.paste")))])])]),i("div",{staticClass:"send-action"},[t._v(t._s(t.$t("chat.enterTips"))+"\n "),i("el-button",{attrs:{disabled:!t.inputMsg},on:{click:t.handleSend}},[t._v(t._s(t.$t("chat.send")))])],1)],1)},S=[],x=(i("dcfb"),i("41dd")),$=i.n(x),y=i("bd31"),I=i("4e81"),N=i("a1aa"),P=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"preview-wrap"},[i("div",{staticClass:"preview-hd"},[t._v(t._s(t.fileInfo&&1==t.fileInfo.type?t.$t("chat.imageComfirm"):t.$t("chat.videoComfirm"))+":")]),i("div",{staticClass:"preview-bd"},[t.fileInfo&&1==t.fileInfo.type?i("img",{attrs:{src:this.fileInfo&&this.fileInfo.preview}}):t._e(),!t.fileInfo||2!=t.fileInfo.type&&3!=t.fileInfo.type?t._e():i("video",{class:[{"ext-audio":3==t.fileInfo.type}],attrs:{controls:"",src:this.fileInfo&&this.fileInfo.preview}})]),i("div",{staticClass:"preview-ft"},[i("el-button",{on:{click:t.closeFilePreview}},[t._v(t._s(t.$t("public.cancel")))]),i("el-button",{attrs:{type:"primary"},on:{click:t.handleFileSend}},[t._v(t._s(t.$t("public.confirm")))])],1)])},M=[];r["default"].component(o.a.name,o.a);var G={props:{fileInfo:Object},computed:{previewUrl:function(){return this.fileInfo?1==this.fileInfo.type?this.fileInfo.preview:window.webkitURL.createObjectURL(this.fileInfo.res):""}},methods:{closeFilePreview:function(){this.$emit("closeFilePreview")},handleFileSend:function(){this.$emit("handleFileSend",this.fileInfo)}}},A=G,L=(i("2422"),Object(C["a"])(A,P,M,!1,null,"934a997a",null)),j=L.exports,E=i("52c1"),O=i("8869"),T={name:"inputArea",mixins:[O["c"],O["d"],d["b"]],components:{Emoji:I["a"],chatAt:N["a"],filePreview:j},watch:{$route:function(){this.$refs.chatInput.focus(),this.inputMsg=""}},computed:Object(y["a"])({},Object(E["e"])(["curSession"])),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:{handleEmoji:function(){this.emojiShow=!this.emojiShow},initDrop:function(t){var e=this;t.preventDefault();var i=$()(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&&$()(i).forEach(function(t){var i=t.getAsFile();i&&e.handleFile(i)})}}},D=T,F=(i("1069"),Object(C["a"])(D,k,S,!1,null,"5c618f7e",null)),R=F.exports,U=i("33f8"),B=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"r-view-mgr",on:{click:function(t){t.stopPropagation()}}},[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(t._s(t.$t("group.admin")))]),i("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),i("div",{staticClass:"groudMgr-admins"},[i("div",{staticClass:"admins-add",on:{click:function(e){return t.$showInvite(4)}}},[i("div",{staticClass:"add-fl"},[i("i",{staticClass:"el-icon-circle-plus-outline"}),t._v(t._s(t.$t("group.add"))+t._s(t.$t("group.admin"))+"\n ")]),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){return t.removeAdmin(e.user_id,e.nick_name)}}},[t._v(t._s(t.$t("public.remove")))])],1)}),0)])]:[i("div",{staticClass:"groudMgr-top"},[i("i",{staticClass:"el-icon-arrow-left",on:{click:t.handleGroudMgr}}),i("span",[t._v(t._s(t.$t("public.setting")))]),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 "+t._s(t.$t("group.adminSetting"))),i("i",{staticClass:"el-icon-arrow-right"})]),i("div",{staticClass:"ad-item",on:{click:function(e){return t.$showInvite(5)}}},[t._v("\n "+t._s(t.$t("invite.transferGroupOwner"))),i("i",{staticClass:"el-icon-arrow-right"})]),i("div",{staticClass:"ad-item",on:{click:t.addGroupAuth}},[t._v("\n "+t._s(t.$t("group.groupCertification"))),i("i",{staticClass:"el-icon-arrow-right"})]),i("div",{staticClass:"ad-item",on:{click:function(e){t.isShowTeleTip=!0}}},[t._v("\n "+t._s(t.$t("group.relateTelegram"))),i("i",{staticClass:"el-icon-arrow-right"})])])],i("div",{staticClass:"view-telegram",class:[{"move-left":t.isShowTeleTip}]},[i("div",{staticClass:"groudMgr-top"},[i("i",{staticClass:"el-icon-arrow-left",on:{click:function(e){t.isShowTeleTip=!1}}}),i("span",[t._v(t._s(t.$t("group.relateTelegram")))]),i("i",{staticClass:"el-icon-close",on:{click:function(e){t.isShowTeleTip=!1}}})]),i("p",[t._v(t._s(t.$t("group.teleStep1")))]),i("p",[t._v(t._s(t.$t("group.teleStep2")))])])],2)},J=[],H=(i("c9db"),i("514e")),q=i.n(H),W=i("5975");r["default"].component(o.a.name,o.a);var z={name:"chatGroudMgr",mixins:[O["a"]],computed:Object(y["a"])({},Object(E["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,e){var i=this;q.a.confirm("".concat(this.$t("public.confirm")).concat(this.$t("public.remove")).concat(e,"?")).then(function(){W["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;W["a"].base.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);t.addPanelSession(s,a),t.$store.commit("changeSessionId",a),t.$router.push({path:"/pm/".concat(a)})})}}},V=z,K=(i("c1de"),Object(C["a"])(V,B,J,!1,null,"d3493e84",null)),Q=K.exports;r["default"].component(o.a.name,o.a);var X={name:"chatRoom",mixins:[d["a"]],data:function(){return{isShowGroudMgr:!1,bdHiden:!0}},components:{msgItem:c["a"],inputArea:R,chatGroudMgr:Q,chatSet:b,chatPin:l["a"],atMe:u["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(U["p"])(),window.onresize=function(){t.scrollHeight=Object(U["p"])()}}},Y=X,Z=(i("b1b7"),Object(C["a"])(Y,s,a,!1,null,"4fde9e0a",null));e["default"]=Z.exports},b1b7:function(t,e,i){"use strict";var s=i("7a80"),a=i.n(s);a.a},c1de:function(t,e,i){"use strict";var s=i("52a2"),a=i.n(s);a.a},c9cc:function(t,e,i){},fed0:function(t,e,i){}}]);
|