(function(e){function t(t){for(var i,o,a=t[0],c=t[1],l=t[2],p=0,m=[];p1?i("img",{staticClass:"pop-back",attrs:{src:n("4c1d")},on:{click:e.mergerMessageBack}}):e._e(),i("span",{staticClass:"title"},[e._v(e._s(e.mergerTitle))]),i("img",{staticClass:"pop-close",attrs:{src:n("0c23")},on:{click:e.closeMessagePop}})]),i("transition",{attrs:{name:"custom-classes-transition","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e.mergerMessagePop?i("message-merger"):e._e()],1)],1)],1)},be=[],Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{backgroundColor:e.focus?"white":"transparent"},attrs:{id:"message-send-box-wrapper"},on:{drop:e.dropHandler}},[n("div",{staticClass:"send-header-bar"},[n("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"}},[n("div",{staticClass:"emojis"},e._l(e.emojiName,(function(t){return n("div",{key:t,staticClass:"emoji",on:{click:function(n){return e.chooseEmoji(t)}}},[n("img",{staticStyle:{width:"30px",height:"30px"},attrs:{src:e.emojiUrl+e.emojiMap[t]}})])})),0),n("i",{staticClass:"iconfont icon-smile",attrs:{slot:"reference",title:"发表情"},slot:"reference"})]),e.isHttps?n("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-around"}},[n("vue-record-audio",{attrs:{mode:"press"},on:{stream:e.onStream,result:e.onResult}}),e.record.src?n("div",{staticClass:"audio-container"},[n("audio",{attrs:{src:e.record.src,controls:""}})]):n("div",[e._v("点击左侧开始录音/停止录音")])],1),e.record.file?n("el-button",{staticStyle:{"margin-top":"8px",width:"100%"},attrs:{type:"primary"},on:{click:e.sendAudio}},[e._v("发送语音")]):e._e(),n("i",{staticClass:"iconfont icon-voice",attrs:{slot:"reference",title:"发语音"},slot:"reference"})],1):e._e(),n("i",{staticClass:"iconfont icon-tupian",attrs:{title:"发图片"},on:{click:e.handleSendImageClick}}),n("i",{staticClass:"el-icon-camera",attrs:{title:"发视频"},on:{click:e.handleSendVideoClick}}),n("i",{staticClass:"iconfont icon-wenjian",attrs:{title:"发文件"},on:{click:e.handleSendFileClick}}),n("i",{staticClass:"el-icon-search",attrs:{title:"聊天记录"},on:{click:function(t){e.searchDialog=!0}}})],1),n("el-dialog",{attrs:{visible:e.searchDialog,width:"80%","show-close":!1},on:{"update:visible":function(t){e.searchDialog=t}}},[n("div",{staticClass:"dialog-tile",attrs:{slot:"title"},slot:"title"},[n("el-input",{attrs:{placeholder:"请输入搜索的内容",clearable:""},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getroammsg.apply(null,arguments)}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search",title:"漫游搜索",loading:e.searchLoading},on:{click:e.getroammsg},slot:"append"})],1)],1),n("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"全部",name:"ALL"}}),n("el-tab-pane",{attrs:{label:"文本",name:e.TIM.TYPES.MSG_TEXT}}),n("el-tab-pane",{attrs:{label:"图片",name:e.TIM.TYPES.MSG_IMAGE}}),n("el-tab-pane",{attrs:{label:"音频",name:e.TIM.TYPES.MSG_AUDIO}}),n("el-tab-pane",{attrs:{label:"视频",name:e.TIM.TYPES.MSG_VIDEO}}),n("el-tab-pane",{attrs:{label:"文件",name:e.TIM.TYPES.MSG_FILE}})],1),n("el-row",{attrs:{gutter:20}},[n("el-col",{staticStyle:{height:"35vh","overflow-y":"scroll"},attrs:{span:24}},[0==e.roammsg.length?[0==e.searchMessageList.length?n("div",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(e.searchLoading?"正在漫游搜索,请耐心等候...":"没有找到相关记录")+"\n ")]):e._l(e.searchMessageList,(function(e){return n("message-item",{key:e.ID,attrs:{message:e}})}))]:e._l(e.roammsg,(function(e){return n("message-item",{key:e.MsgKey,attrs:{message:e}})}))],2)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.searchDialog=!1,e.searchText=""}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchDialog=!1,e.searchText=""}}},[e._v("确 定")])],1)],1),n("div",{staticClass:"bottom"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.messageContent,expression:"messageContent"}],ref:"text-input",staticClass:"text-input",attrs:{rows:"4",resize:"false"},domProps:{value:e.messageContent},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},input:[function(t){t.target.composing||(e.messageContent=t.target.value)},e.inputChange],keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.handleEnter.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.stopPropagation(),e.handleUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.stopPropagation(),e.handleDown.apply(null,arguments))}],keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?(t.preventDefault(),t.shiftKey||t.altKey||t.metaKey?null:e.handleLine.apply(null,arguments)):null}}}),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"按Enter发送消息,Ctrl+Enter换行",placement:"left-start"}},[n("div",{staticClass:"btn-send",on:{click:e.sendTextMessage}},[n("div",{staticClass:"tim-icon-send"})])])],1),n("input",{ref:"imagePicker",staticStyle:{display:"none"},attrs:{type:"file",id:"imagePicker",accept:".jpg, .jpeg, .png, .gif, .bmp"},on:{change:e.sendImage}}),n("input",{ref:"filePicker",staticStyle:{display:"none"},attrs:{type:"file",id:"filePicker"},on:{change:e.sendFile}}),n("input",{ref:"videoPicker",staticStyle:{display:"none"},attrs:{type:"file",id:"videoPicker",accept:".mp4"},on:{change:e.sendVideo}}),e.currentConversationType===e.TIM.TYPES.CONV_GROUP&&e.showCallingMember?n("div",{staticClass:"calling-member-list"},[n("calling-member-list",{attrs:{type:e.listTpye},on:{getList:e.getList}}),n("div",{staticClass:"calling-list-btn"},[n("span",{staticClass:"calling-btn",on:{click:e.cancelCalling}},[e._v("取消")]),n("span",{staticClass:"calling-btn",on:{click:e.callingHandler}},[e._v("确定")])])],1):e._e()],1)},we=[],Oe=(n("20d6"),n("3b2b"),n("e612"),n("dd87")),Me=n.n(Oe),Ie=(n("075a"),n("72aa")),Pe=n.n(Ie),Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"message-wrapper",class:e.messagePosition},[e.currentConversationType===e.TIM.TYPES.CONV_C2C?n("div",{staticClass:"c2c-layout",class:e.messagePosition},[e.showAvatar?n("div",{staticClass:"col-1"},[n("avatar",{attrs:{src:e.avatar},nativeOn:{click:function(t){return e.showFriendProfile.apply(null,arguments)}}})],1):e._e(),n("div",{staticClass:"col-2"},[n("div",{staticClass:"content-wrapper"},[e.isMine?n("message-status-icon",{attrs:{message:e.message}}):e._e(),e.message.type===e.TIM.TYPES.MSG_TEXT?n("text-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_IMAGE?n("image-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_FILE?["mp3"==e.message.payload.fileName.slice(-3)?n("audio",{attrs:{src:e.message.payload.fileUrl,controls:""}}):n("file-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}})]:e.message.type===e.TIM.TYPES.MSG_SOUND?n("sound-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_GRP_TIP?n("group-tip-element",{attrs:{payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_GRP_SYS_NOTICE?n("group-system-notice-element",{attrs:{payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_CUSTOM?n("custom-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_FACE?n("face-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_VIDEO?n("video-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_GEO?n("geo-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_MERGER?n("merger-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):n("span",[e._v("暂未支持的消息类型:"+e._s(e.message.type))])],2),e.showMessageHeader?n("message-footer",{attrs:{message:e.message}}):e._e()],1),n("div",{staticClass:"col-3"})]):e._e(),e.currentConversationType===e.TIM.TYPES.CONV_GROUP?n("div",{staticClass:"group-layout",class:e.messagePosition},[e.showAvatar?n("div",{staticClass:"col-1"},[n("avatar",{staticClass:"group-member-avatar",attrs:{src:e.avatar},nativeOn:{click:function(t){return e.showGroupMemberProfile.apply(null,arguments)}}})],1):e._e(),n("div",{staticClass:"col-2"},[e.showMessageHeader?n("message-header",{attrs:{message:e.message}}):e._e(),n("div",{staticClass:"content-wrapper"},[e.isMine?n("message-status-icon",{attrs:{message:e.message}}):e._e(),e.message.type===e.TIM.TYPES.MSG_TEXT?n("text-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_IMAGE?n("image-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_FILE?["mp3"==e.message.payload.fileName.slice(-3)?n("audio",{attrs:{src:e.message.payload.fileUrl,controls:""}}):n("file-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}})]:e.message.type===e.TIM.TYPES.MSG_SOUND?n("sound-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_GRP_TIP?n("group-tip-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_CUSTOM?n("custom-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_FACE?n("face-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_VIDEO?n("video-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_GEO?n("geo-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):e.message.type===e.TIM.TYPES.MSG_MERGER?n("merger-element",{attrs:{isMine:e.isMine,payload:e.message.payload,message:e.message}}):n("span",[e._v("暂未支持的消息类型:"+e._s(e.message.type))])],2)],1),n("div",{staticClass:"col-3"})]):e._e(),e.currentConversationType===e.TIM.TYPES.CONV_SYSTEM?n("div",{staticClass:"system-layout"},[n("div",{staticClass:"col-1"},[n("avatar",{attrs:{src:e.avatar,type:e.currentConversationType}})],1),n("div",{staticClass:"col-2"},[n("message-header",{attrs:{message:e.message}}),n("group-system-notice-element",{attrs:{payload:e.message.payload,message:e.message}})],1)]):e._e()])},_e=[],Ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.messageIconClass,staticStyle:{width:"16px",height:"16px"},on:{click:e.handleIconClick}},[e._v(e._s("message-send-fail"===e.messageIconClass?"!":""))])},De=[],Ae={name:"MessageStatusIcon",props:{message:{type:Object,required:!0}},computed:{messageIconClass:function(){switch(this.message.status){case"unSend":return"el-icon-loading";case"fail":return"message-send-fail";default:return""}}},methods:{handleIconClick:function(){var e=this;"message-send-fail"===this.messageIconClass&&this.tim.resendMessage(this.message).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})}))}}},xe=Ae,Le=(n("a86b"),Object(ce["a"])(xe,Ee,De,!1,null,"97210bde",null)),ke=Le.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"base",class:[e.isMine?"right":"left"]},[n("div",{staticClass:"name text-ellipsis"},[e._v(e._s(e.from))]),n("div",{staticClass:"date"},[e._v(e._s(e.date))])])},je=[];function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=e.getFullYear(),i=e.getMonth()+1,s=e.getDate();return"".concat(n).concat(t).concat(Fe(i)).concat(t).concat(Fe(s))}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return t?"".concat(Fe(n),":").concat(Fe(i),":").concat(Fe(s)):"".concat(n,":").concat(Fe(i))}function Ge(e){return"".concat(Re(e)," ").concat(Ne(e))}function Ue(e){return e.toDateString()===(new Date).toDateString()}function Fe(e){return e<10?"0".concat(e):e}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ve(e){for(var t=1;t120?this.isTimeout=!0:setTimeout(this.isTimeoutHandler,1e3)},reEdit:function(){this.$bus.$emit("reEditMessage",this.message.payload.text)}}},ct=at,lt=(n("b363"),Object(ce["a"])(ct,rt,ot,!1,null,"0ad1fde9",null)),ut=lt.exports,pt={name:"FileElement",props:{payload:{type:Object,required:!0},message:{type:Object,required:!0},isMine:{type:Boolean}},components:{MessageBubble:ut,ElProgress:st.a},computed:{fileName:function(){return this.payload.fileName},fileUrl:function(){return this.payload.fileUrl},size:function(){var e=this.payload.fileSize;return e>1024?e/1024>1024?"".concat(this.toFixed(e/1024/1024)," Mb"):"".concat(this.toFixed(e/1024)," Kb"):"".concat(this.toFixed(e),"B")},showProgressBar:function(){return"unSend"===this.$parent.message.status},percentage:function(){return Math.floor(100*(this.$parent.message.progress||0))}},methods:{toFixed:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.toFixed(t)},downloadFile:function(){var e=this;if(window.fetch)fetch(this.fileUrl).then((function(e){return e.blob()})).then((function(t){var n=document.createElement("a"),i=window.URL.createObjectURL(t);n.href=i,n.download=e.fileName,n.click()}));else{var t=document.createElement("a");t.href=this.fileUrl,t.target="_blank",t.download=this.filename,t.click()}}}},mt=pt,dt=(n("4d06"),Object(ce["a"])(mt,tt,nt,!1,null,"96091f5a",null)),ft=dt.exports,ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("message-bubble",{attrs:{isMine:e.isMine,message:e.message}},[n("div",{staticClass:"face-element-wrapper"},[n("img",{attrs:{src:e.url}})])])},gt=[],vt={name:"FaceElement",props:{payload:{type:Object,required:!0},message:{type:Object,required:!0},isMine:{type:Boolean}},components:{MessageBubble:ut},computed:{url:function(){var e="";return e=this.payload.data.indexOf("@2x")>0?this.payload.data:this.payload.data+"@2x","https://web.sdk.qcloud.com/im/assets/face-elem/".concat(e,".png")}}},yt=vt,bt=(n("649f"),Object(ce["a"])(yt,ht,gt,!1,null,"b7080c1e",null)),Ct=bt.exports,wt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("message-bubble",{attrs:{isMine:e.isMine,message:e.message}},[n("img",{staticClass:"image-element",attrs:{src:e.imageUrl},on:{load:e.onImageLoaded,click:e.handlePreview}}),e.showProgressBar?n("el-progress",{attrs:{percentage:e.percentage,color:function(e){return 100===e?"#67c23a":"#409eff"}}}):e._e()],1)},Ot=[];function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function It(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function en(e,t){if(e){if("string"===typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1?'"'.concat(e.payload.text,'"'):'"'.concat(t,'" ').concat(e.payload.text);case this.TIM.TYPES.GRP_TIP_MBR_PROFILE_UPDATED:var i,s=Zt(e.payload.memberList);try{for(s.s();!(i=s.n()).done;){var r=i.value;return r.muteTime>0?"群成员:".concat(r.userID,"被禁言").concat(r.muteTime,"秒"):"群成员:".concat(r.userID,"被取消禁言")}}catch(o){s.e(o)}finally{s.f()}break;default:return"[群提示消息]"}}}},on=rn,an=(n("b500"),Object(ce["a"])(on,Xt,Wt,!1,null,"19953c07",null)),cn=an.exports,ln=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("message-bubble",{attrs:{isMine:!1,message:e.message}},[n("div",{staticClass:"group-system-element-wrapper"},[e._v("\n "+e._s(e.text)+"\n "),e.isJoinGroupRequest?n("el-button",{attrs:{type:"text"},on:{click:function(t){e.showDialog=!0}}},[e._v("处理")]):e._e(),n("el-dialog",{attrs:{title:"处理加群申请",visible:e.showDialog,width:"30%"},on:{"update:visible":function(t){e.showDialog=t}}},[n("el-form",{ref:"form",attrs:{"label-width":"100px"},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}},[n("el-form-item",{attrs:{label:"处理结果:"}},[n("el-radio-group",{model:{value:e.form.handleAction,callback:function(t){e.$set(e.form,"handleAction",t)},expression:"form.handleAction"}},[n("el-radio",{attrs:{label:"Agree"}},[e._v("同意")]),n("el-radio",{attrs:{label:"Reject"}},[e._v("拒绝")])],1)],1),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1===this.payload.operationType,expression:"this.payload.operationType === 1"}],attrs:{label:"附言:"}},[n("el-input",{attrs:{type:"textarea",resize:"none",rows:3,placeholder:"请输入附言"},model:{value:e.form.handleMessage,callback:function(t){e.$set(e.form,"handleMessage",t)},expression:"form.handleMessage"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showDialog=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupApplication}},[e._v("确 定")])],1)],1)],1)])},un=[],pn=(n("b5d8"),n("f494")),mn=n.n(pn),dn=(n("fe07"),n("6ac5")),fn=n.n(dn),hn=n("ea1b"),gn=n.n(hn);function vn(e){var t=e.payload.groupProfile.name||e.payload.groupProfile.groupID;switch(e.payload.operationType){case 1:return"".concat(e.payload.operatorID," 申请加入群组:").concat(t);case 2:return"成功加入群组:".concat(t);case 3:return"申请加入群组:".concat(t,"被拒绝");case 4:return"你被管理员".concat(e.payload.operatorID,"踢出群组:").concat(t);case 5:return"群:".concat(t," 已被").concat(e.payload.operatorID,"解散");case 6:return"".concat(e.payload.operatorID,"创建群:").concat(t);case 7:return"".concat(e.payload.operatorID,"邀请你加群:").concat(t);case 8:return"你退出群组:".concat(t);case 9:return"你被".concat(e.payload.operatorID,"设置为群:").concat(t,"的管理员");case 10:return"你被".concat(e.payload.operatorID,"撤销群:").concat(t,"的管理员身份");case 12:return"".concat(e.payload.operatorID,"邀请你加群:").concat(t);case 13:return"".concat(e.payload.operatorID,"同意加群:").concat(t);case 14:return"".concat(e.payload.operatorID,"拒接加群:").concat(t);case 255:return"自定义群系统通知: "+e.payload.userDefinedField}}function yn(e){e.forEach((function(e){if(!e.callType){if(e.type===gn.a.TYPES.MSG_MERGER&&""!==e.payload.downloadKey){var t=window.tim.downloadMergerMessage(e);t.then((function(t){e=t})).catch((function(e){console.warn("downloadMergerMessage error:",e)}))}if(e.type===gn.a.TYPES.MSG_CUSTOM){var n={};try{n=JSON.parse(e.payload.data)}catch(c){n={}}if(1===n.businessID){if(e.conversationType===gn.a.TYPES.CONV_GROUP){5===n.actionType&&(e.nick=n.inviteeList?n.inviteeList.join(","):e.from);var i=window.trtcCalling.extractCallingInfoFromMessage(e),s="".concat(i);e.type=gn.a.TYPES.MSG_GRP_TIP;var r={operationType:256,text:s,userIDList:[]};e.payload=r}if(e.conversationType===gn.a.TYPES.CONV_C2C){var o=window.trtcCalling.extractCallingInfoFromMessage(e),a={text:o};e.payload=a}}}}}))}var bn={name:"GroupSystemNoticeElement",props:{payload:{type:Object,required:!0},message:{type:Object,required:!1}},components:{ElDialog:F.a,ElForm:C.a,ElFormItem:y.a,ElRadioGroup:fn.a,ElRadio:mn.a,MessageBubble:ut},data:function(){return{showDialog:!1,form:{handleAction:"Agree",handleMessage:""}}},computed:{text:function(){return vn(this.message)},title:function(){return this.message.type===this.TIM.TYPES.MSG_GRP_SYS_NOTICE?"群系统通知":"系统通知"},isJoinGroupRequest:function(){return 1===this.payload.operationType||12===this.payload.operationType}},methods:{handleGroupApplication:function(){var e=this;12===this.payload.operationType&&this.tim.callExperimentalAPI("handleGroupInvitation",{handleAction:this.form.handleAction,message:this.message}).then((function(){e.showDialog=!1,e.$store.commit("removeMessage",e.message)})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message}),e.showDialog=!1})),1===this.payload.operationType&&this.tim.handleGroupApplication({handleAction:this.form.handleAction,handleMessage:this.form.handleMessage,message:this.message}).then((function(){e.showDialog=!1,e.$store.commit("removeMessage",e.message)})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message}),e.showDialog=!1}))}}},Cn=bn,wn=(n("ae1e"),Object(ce["a"])(Cn,ln,un,!1,null,"4128d700",null)),On=wn.exports,Mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("message-bubble",{attrs:{isMine:e.isMine,message:e.message}},[n("div",{staticClass:"custom-element-wrapper"},["survey"===this.payload.data?n("div",{staticClass:"survey"},[n("div",{staticClass:"title"},[e._v("对IM DEMO的评分和建议")]),n("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},model:{value:e.rate,callback:function(t){e.rate=t},expression:"rate"}}),n("div",{staticClass:"suggestion"},[e._v(e._s(this.payload.extension))])],1):n("span",{staticClass:"text",attrs:{title:"您可以自行解析自定义消息"}},[e.text.isFromGroupLive&&1===e.text.isFromGroupLive?[n("message-group-live-status",{attrs:{liveInfo:e.text}})]:[e._v(e._s(e.text))]],2)])])},In=[],Pn=(n("78a7"),n("33ca")),Tn=n.n(Pn),_n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"group-live-custom-message-card",on:{click:e.handleClick}},[n("p",{staticClass:"card-title"},[e._v(e._s(e.cardTitle))]),n("p",{staticClass:"card-content"},[e._v(e._s(e.cardContent))]),n("div",{staticClass:"card-footer"},[n("img",{staticClass:"avatar",attrs:{src:e.roomCover,alt:""}}),n("span",[e._v("群直播")])])])},En=[],Dn=(n("c5f6"),n("bc3a")),An=n.n(Dn);function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ln(e){for(var t=1;t-1||location.host.indexOf("test")>-1?"//identify.test.bcxin.com.cn/identify":"https://identify.bcxin.com.cn:14433/identify";function bi(e){return An.a.get("".concat(yi,"/api/tencent/get-tencent-sig?mobilePhone=").concat(e,"&name=").concat(e))}function Ci(e,t){return new Promise((function(n,i){An.a.post("".concat(vi,"/v3/tenant/common/contacts/search"),e,t).then((function(e){n(e.data.data)})).catch((function(e){i(e)}))}))}function wi(e){return An.a.post("".concat(yi,"/api/tencent/get-im-roammsg"),e)}function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Mi(e){for(var t=1;t=this.memberList.length||(this.atUserID=this.memberList[t+1].userID)},handleEnter:function(){this.sendTextMessage()},inputChange:function(e){this.currentConversationType===this.TIM.TYPES.CONV_GROUP&&"@"===e.data&&(this.groupAt=!0,this.listTpye="groupAt",this.showCallingMember=!0)," "===e.data&&-1!==this.messageContent.indexOf("@ ")&&(this.groupAt=!1,this.listTpye="",this.showCallingMember=!1)},handleLine:function(){this.messageContent+="\n"},handlePaste:function(e){var t,n=this,i=e.clipboardData;if(i&&i.files&&i.files.length>0&&(t=i.files[0]),"undefined"!==typeof t){var s=this.tim.createImageMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:t},onProgress:function(e){n.$set(s,"progress",e)}});this.$store.commit("pushCurrentMessageList",s);var r=this.tim.sendMessage(s);r.catch((function(e){n.$store.commit("showMessage",{type:"error",message:e.message})}))}},dropHandler:function(e){var t=this;e.preventDefault();var n=e.dataTransfer.files[0],i={};i="video/mp4"===n.type?this.tim.createVideoMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:n},onProgress:function(e){t.$set(i,"progress",e)}}):this.tim.createFileMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:n},onProgress:function(e){t.$set(i,"progress",e)}}),this.$store.commit("pushCurrentMessageList",i),this.tim.sendMessage(i).then((function(){t.$refs.videoPicker.value=null})).catch((function(e){t.$store.commit("showMessage",{message:e.message,type:"error"})}))},sendTextMessage:function(){var e=this;if(""===this.messageContent||0===this.messageContent.trim().length)return this.messageContent="",void this.$store.commit("showMessage",{message:"不能发送空消息哦!",type:"info"});if(this.currentConversationType===this.TIM.TYPES.CONV_GROUP&&this.groupAt){var t=this.tim.createTextAtMessage({to:this.toAccount,conversationType:this.TIM.TYPES.CONV_GROUP,payload:{text:this.messageContent,atUserList:this.callingList}});return this.$store.commit("pushCurrentMessageList",t),this.$bus.$emit("scroll-bottom"),this.tim.sendMessage(t).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})})),this.messageContent="",void(this.groupAt=!1)}var n=this.tim.createTextMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{text:this.messageContent}});this.$store.commit("pushCurrentMessageList",n),this.$bus.$emit("scroll-bottom"),this.tim.sendMessage(n).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})})),this.messageContent=""},random:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},chooseEmoji:function(e){this.messageContent+=e},handleSendImageClick:function(){this.$refs.imagePicker.click()},handleSendFileClick:function(){this.$refs.filePicker.click()},handleSendVideoClick:function(){this.$refs.videoPicker.click()},sendImage:function(){var e=this,t=this.tim.createImageMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:document.getElementById("imagePicker")},onProgress:function(n){e.$set(t,"progress",n)}});this.$store.commit("pushCurrentMessageList",t),this.tim.sendMessage(t).then((function(){e.$refs.imagePicker.value=null})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})}))},sendFile:function(){var e=this,t=this.tim.createFileMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:document.getElementById("filePicker")},onProgress:function(n){e.$set(t,"progress",n)}});this.$store.commit("pushCurrentMessageList",t),this.tim.sendMessage(t).then((function(){e.$refs.filePicker.value=null})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})}))},sendAudio:function(){var e=this,t=this.tim.createFileMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:this.record.file},onProgress:function(n){e.$set(t,"progress",n)}});this.$store.commit("pushCurrentMessageList",t),this.tim.sendMessage(t).then((function(){e.record.file="",e.record.src=""})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})}))},sendVideo:function(){var e=this,t=this.tim.createVideoMessage({to:this.toAccount,conversationType:this.currentConversationType,payload:{file:document.getElementById("videoPicker")},onProgress:function(n){e.$set(t,"progress",n)}});this.$store.commit("pushCurrentMessageList",t),this.tim.sendMessage(t).then((function(){e.$refs.videoPicker.value=null})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})}))},handleTabClick:function(){},obj2form:function(e){var t="";for(var n in e)t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n])+"&";return t},getroammsg:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(){var t,n,i,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t={fromAccount:this.currentConversation.userProfile.userID,toAccount:this.$store.state.user.userID,keyword:this.searchText},this.roammsg=[],this.searchLoading=!0,/^\s+$/gi.test(this.searchText)){e.next=9;break}return e.next=6,wi(this.obj2form(t));case 6:n=e.sent,i=n.data,i.data.data.length>0&&(this.roammsg=i.data.data.map((function(e){return{ID:e.MsgKey,flow:"in",from:e.From_Account,to:e.To_Account,time:e.MsgTimeStamp,type:e.MsgBody[0].MsgType,payload:e.MsgBody[0].MsgType==s.TIM.TYPES.MSG_TEXT?{text:e.MsgBody[0].MsgContent.Text}:{downloadFlag:e.MsgBody[0].MsgContent.Download_Flag,fileName:e.MsgBody[0].MsgContent.FileName,fileSize:e.MsgBody[0].MsgContent.FileSize,fileUrl:e.MsgBody[0].MsgContent.Url,uuid:e.MsgBody[0].MsgContent.UUID},random:e.MsgRandom,sequence:e.MsgSeq}})));case 9:this.searchLoading=!1;case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},Pi=Ii,Ti=(n("12d9"),Object(ce["a"])(Pi,Ce,we,!1,null,"871ce48c",null)),_i=Ti.exports,Ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"conversation-profile-wrapper"},[e.currentConversation.type===e.TIM.TYPES.CONV_C2C?n("user-profile",{attrs:{userProfile:e.currentConversation.userProfile}}):e.currentConversation.type===e.TIM.TYPES.CONV_GROUP?n("group-profile",{attrs:{groupProfile:e.currentConversation.groupProfile}}):e._e()],1)},Di=[],Ai=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("group-member-list",{attrs:{groupProfile:e.groupProfile}}),n("div",{staticClass:"group-info-content"},[n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("群ID")]),n("div",{staticClass:"content"},[e._v(e._s(e.groupProfile.groupID))])]),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 群头像\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditFaceUrl=!0,e.inputFocus("editFaceUrl")}}}):e._e()]),e.showEditFaceUrl?n("el-input",{ref:"editFaceUrl",attrs:{autofocus:"",size:"mini"},on:{blur:function(t){e.showEditFaceUrl=!1}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editFaceUrl.apply(null,arguments)}},model:{value:e.avatar,callback:function(t){e.avatar=t},expression:"avatar"}}):n("div",{staticClass:"content"},[n("avatar",{attrs:{src:e.groupProfile.avatar}})],1)],1),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("群类型")]),n("div",{staticClass:"content"},[e._v(e._s(e.groupType))])]),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 群名称\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditName=!0,e.inputFocus("editName")}}}):e._e()]),e.showEditName?n("el-input",{ref:"editName",attrs:{autofocus:"",size:"mini"},on:{blur:function(t){e.showEditName=!1}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editName.apply(null,arguments)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}}):n("div",{staticClass:"content text-ellipsis",attrs:{title:e.groupProfile.name}},[e._v("\n "+e._s(e.groupProfile.name||"暂无")+"\n ")])],1),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 群介绍\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditIntroduction=!0,e.inputFocus("editIntroduction")}}}):e._e()]),e.showEditIntroduction?n("el-input",{ref:"editIntroduction",attrs:{autofocus:"",size:"mini"},on:{blur:function(t){e.showEditIntroduction=!1}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editIntroduction.apply(null,arguments)}},model:{value:e.introduction,callback:function(t){e.introduction=t},expression:"introduction"}}):n("div",{staticClass:"long-content",attrs:{title:e.groupProfile.introduction}},[e._v("\n "+e._s(e.groupProfile.introduction||"暂无")+"\n ")])],1),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 群公告\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditNotification=!0,e.inputFocus("editNotification")}}}):e._e()]),e.showEditNotification?n("el-input",{ref:"editNotification",attrs:{autofocus:"",size:"mini"},on:{blur:function(t){e.showEditNotification=!1}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editNotification.apply(null,arguments)}},model:{value:e.notification,callback:function(t){e.notification=t},expression:"notification"}}):n("div",{staticClass:"long-content",attrs:{title:e.groupProfile.notification}},[e._v("\n "+e._s(e.groupProfile.notification||"暂无")+"\n ")])],1),"Private"!==e.groupProfile.type?n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 申请加群方式\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditJoinOption=!0,e.inputFocus("editJoinOption")}}}):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEditJoinOption,expression:"!showEditJoinOption"}],staticClass:"content"},[e._v("\n "+e._s(e.joinOptionMap[e.groupProfile.joinOption])+"\n ")]),n("el-select",{directives:[{name:"show",rawName:"v-show",value:e.showEditJoinOption,expression:"showEditJoinOption"}],ref:"editJoinOption",attrs:{size:"mini","automatic-dropdown":""},on:{blur:function(t){e.showEditJoinOption=!1},change:e.editJoinOption},model:{value:e.joinOption,callback:function(t){e.joinOption=t},expression:"joinOption"}},[n("el-option",{attrs:{label:"自由加入",value:"FreeAccess"}}),n("el-option",{attrs:{label:"需要验证",value:"NeedPermission"}}),n("el-option",{attrs:{label:"禁止加群",value:"DisableApply"}})],1)],1):e._e(),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 群消息提示类型\n "),e.editable?n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditMessageRemindType=!0,e.inputFocus("editMessageRemindType")}}}):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEditMessageRemindType,expression:"!showEditMessageRemindType"}],staticClass:"content"},[e._v("\n "+e._s(e.messageRemindTypeMap[this.groupProfile.selfInfo.messageRemindType])+"\n ")]),n("el-select",{directives:[{name:"show",rawName:"v-show",value:e.showEditMessageRemindType,expression:"showEditMessageRemindType"}],ref:"editMessageRemindType",attrs:{size:"mini","automatic-dropdown":""},on:{change:e.editMessageRemindType,blur:function(t){e.showEditMessageRemindType=!1}},model:{value:e.messageRemindType,callback:function(t){e.messageRemindType=t},expression:"messageRemindType"}},[n("el-option",{attrs:{label:"接收消息并提示",value:"AcceptAndNotify"}}),n("el-option",{attrs:{label:"接收消息但不提示",value:"AcceptNotNotify"}}),n("el-option",{attrs:{label:"屏蔽消息",value:"Discard"}})],1)],1),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label"},[e._v("\n 我的群名片\n "),n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px"},on:{click:function(t){e.showEditNameCard=!0,e.inputFocus("editNameCard")}}})]),e.showEditNameCard?n("el-input",{ref:"editNameCard",attrs:{autofocus:"",size:"mini"},on:{blur:function(t){e.showEditNameCard=!1}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editNameCard.apply(null,arguments)}},model:{value:e.nameCard,callback:function(t){e.nameCard=t},expression:"nameCard"}}):n("div",{staticClass:"content cursor-pointer"},[e._v("\n "+e._s(e.groupProfile.selfInfo.nameCard||"暂无")+"\n ")])],1),n("div",{staticClass:"info-item"},[n("div",{staticClass:"label",class:{active:e.active}},[e._v("全体禁言")]),n("el-switch",{attrs:{"active-color":"#409eff","inactive-color":"#dcdfe6"},on:{change:e.changeMuteStatus},model:{value:e.muteAllMembers,callback:function(t){e.muteAllMembers=t},expression:"muteAllMembers"}})],1),e.isOwner?n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){e.showChangeGroupOwner=!0}}},[e._v("转让群组")]),e.showChangeGroupOwner?n("el-select",{attrs:{filterable:"",size:"mini",placeholder:"请选择新群主"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeOwner.apply(null,arguments)}},model:{value:e.newOwnerUserID,callback:function(t){e.newOwnerUserID=t},expression:"newOwnerUserID"}},e._l(e.currentMemberList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()],1):e._e(),n("div",[n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:e.quitGroup}},[e._v("退出群组")])],1),e.showDissmissGroup?n("div",[n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:e.dismissGroup}},[e._v("解散群组")])],1):e._e()])],1)},xi=[],Li=(n("e960"),n("b35b")),ki=n.n(Li),Si=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"group-member-list-wrapper"},[n("div",{staticClass:"header"},[n("span",{staticClass:"member-count text-ellipsis"},[e._v("群成员:"+e._s(e.currentConversation.groupProfile.memberCount))]),n("popover",{model:{value:e.addGroupMemberVisible,callback:function(t){e.addGroupMemberVisible=t},expression:"addGroupMemberVisible"}},[n("add-group-member"),n("div",{staticClass:"btn-add-member",attrs:{slot:"reference",title:"添加群成员"},slot:"reference"},[n("span",{staticClass:"tim-icon-friend-add"})])],1)],1),n("div",{staticClass:"scroll-content"},[n("div",{staticClass:"group-member-list"},e._l(e.members,(function(t){return n("div",{key:t.userID},[n("popover",{key:t.userID,attrs:{placement:"right"}},[n("group-member-info",{attrs:{member:t}}),n("div",{staticClass:"group-member",attrs:{slot:"reference"},on:{click:function(n){return e.getMemberProfile(t)}},slot:"reference"},[n("avatar",{class:t.role,attrs:{title:e.getGroupMemberAvatarText(t.role),src:t.avatar}}),n("div",{staticClass:"member-name text-ellipsis"},[t.nameCard?n("span",{attrs:{title:t.nameCard}},[e._v(e._s(t.nameCard))]):t.nick?n("span",{attrs:{title:t.nick}},[e._v(e._s(t.nick))]):n("span",{attrs:{title:t.userID}},[e._v(e._s(t.userID))])])],1)],1)],1)})),0)]),n("div",{staticClass:"more"},[e.showLoadMore?n("el-button",{attrs:{type:"text"},on:{click:e.loadMore}},[e._v("查看更多")]):e._e()],1)])},ji=[],Ri=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-select",{attrs:{multiple:"",filterable:"",placeholder:"请选择"},model:{value:e.userIDList,callback:function(t){e.userIDList=t},expression:"userIDList"}},e._l(e.friendList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),n("el-button",{attrs:{type:"primary"},on:{click:e.addGroupMember}},[e._v("确 定")])],1)},Ni=[];n("a481");function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ui(e){for(var t=1;t0&&(e.$store.commit("showMessage",{message:"群成员:".concat(s.join(","),",加群成功"),type:"success"}),e.tim.getGroupMemberProfile({groupID:t,userIDList:s}).then((function(t){var n=t.data.memberList;e.$store.commit("updateCurrentMemberList",n)}))),r.length>0&&e.$store.commit("showMessage",{message:"群成员:".concat(r.join(","),",添加失败!"),type:"error"}),o.length>0&&e.$store.commit("showMessage",{message:"群成员:".concat(o.join(","),",已在群中")}),e.userIDList=[]})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))}}},$i=Fi,Vi=Object(ce["a"])($i,Ri,Ni,!1,null,"374fc95c",null),Bi=Vi.exports,Yi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[e.showCancelBan?n("el-button",{attrs:{type:"text"},on:{click:e.cancelMute}},[e._v("取消禁言")]):e._e(),n("el-popover",{directives:[{name:"show",rawName:"v-show",value:e.showBan,expression:"showBan"}],attrs:{title:"禁言"},model:{value:e.popoverVisible,callback:function(t){e.popoverVisible=t},expression:"popoverVisible"}},[n("el-input",{attrs:{placeholder:"请输入禁言时间"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.setGroupMemberMuteTime.apply(null,arguments)}},model:{value:e.muteTime,callback:function(t){e.muteTime=t},expression:"muteTime"}}),n("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("禁言")])],1)],1),n("div",[n("span",{staticClass:"label"},[e._v("名称:")]),e._v("\n "+e._s(e.member.nick||"暂无")+"\n ")]),n("div",[n("span",{staticClass:"label"},[e._v("手机号:")]),e._v("\n "+e._s(e.member.phone&&e.member.phone.value)+"\n ")]),n("div",[n("span",{staticClass:"label"},[e._v("在职企业:")]),e._v("\n "+e._s(e.member.company&&e.member.company.value)+"\n ")]),e.showMuteUntil?n("div",[n("span",{staticClass:"label"},[e._v("禁言至:")]),n("span",{staticClass:"content"},[e._v(e._s(e.muteUntil))])]):e._e(),e.canChangeRole?n("el-button",{attrs:{type:"text"},on:{click:e.changeMemberRole}},[e._v("\n "+e._s("Admin"===e.member.role?"取消管理员":"设为管理员")+"\n ")]):e._e(),e.showKickout?n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:e.kickoutGroupMember}},[e._v("踢出群组")]):e._e()],1)},zi=[];function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qi(e){for(var t=1;tthis.current},showCancelBan:function(){return!(!this.showMuteUntil||this.currentConversation.type!==this.TIM.TYPES.CONV_GROUP||this.isMine)&&(this.isOwner||this.isAdmin)},showBan:function(){return this.currentConversation.type===this.TIM.TYPES.CONV_GROUP&&(this.isOwner||this.isAdmin)},showEditNameCard:function(){return this.isOwner||this.isAdmin},muteUntil:function(){return Ge(new Date(1e3*this.member.muteUntil))}}),methods:{kickoutGroupMember:function(){var e=this;this.tim.deleteGroupMember({groupID:this.currentConversation.groupProfile.groupID,reason:"我要踢你出群",userIDList:[this.member.userID]}).then((function(){e.$store.commit("deleteGroupMemeber",e.member.userID)})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))},changeMemberRole:function(){var e=this;if(this.canChangeRole){var t=this.member.role;this.tim.setGroupMemberRole({groupID:this.currentConversation.groupProfile.groupID,userID:this.member.userID,role:"Admin"===t?"Member":"Admin"}).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))}},setGroupMemberMuteTime:function(){var e=this;this.tim.setGroupMemberMuteTime({groupID:this.currentConversation.groupProfile.groupID,userID:this.member.userID,muteTime:Number(this.muteTime)}).then((function(){e.muteTime="",e.popoverVisible=!1})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))},cancelMute:function(){var e=this;this.tim.setGroupMemberMuteTime({groupID:this.currentConversation.groupProfile.groupID,userID:this.member.userID,muteTime:0}).then((function(){e.muteTime=""})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))},setGroupMemberNameCard:function(){var e=this;0!==this.nameCard.trim().length?this.tim.setGroupMemberNameCard({groupID:this.currentConversation.groupProfile.groupID,userID:this.member.userID,nameCard:this.nameCard}).then((function(){e.nameCardPopoverVisible=!1,e.$store.commit("showMessage",{message:"修改成功"})})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})})):this.$store.commit("showMessage",{message:"不能设置空的群名片",type:"warning"})}}},Ji=Ki,Qi=(n("e31b"),Object(ce["a"])(Ji,Yi,zi,!1,null,"3cafad9a",null)),Xi=Qi.exports;function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Zi(e){for(var t=1;t=0},friendGroupNameList:function(){return this.friendGroupList.map((function(e){return e.name}))},gender:function(){switch(this.userProfile.gender){case this.TIM.TYPES.GENDER_MALE:return"男";case this.TIM.TYPES.GENDER_FEMALE:return"女";default:return"未设置"}},genderClass:function(){switch(this.userProfile.gender){case this.TIM.TYPES.GENDER_MALE:return"icon-male";case this.TIM.TYPES.GENDER_FEMALE:return"icon-female";default:return""}},friendPhone:function(){return this.userProfile.profileCustomField?this.userProfile.profileCustomField.find((function(e){return"Tag_Profile_Custom_phone"==e.key})):""},friendCompany:function(){return this.userProfile.profileCustomField?this.userProfile.profileCustomField.find((function(e){return"Tag_Profile_Custom_InCom"==e.key})):""},groupName:function(){var e=this;if(this.friendGroupList.length>0){var t="";return this.friendGroupList.forEach((function(n){n.userIDList.includes(e.userProfile.userID)&&(t=n.name)})),t}return"暂无分组"}}),created:function(){},methods:{addFriend:function(){var e=this;this.tim.addFriend({to:this.userProfile.userID,remark:this.addInfo.remark,groupName:this.addInfo.groupName,wording:this.addInfo.wording,source:"AddSource_Type_Web",type:this.addInfo.type}).then((function(t){30539===t.data.code&&e.$store.commit("showMessage",{message:t.data.message,type:"warning"})})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"warning"})})),this.dialogAddFriendVisible=!1,this.addInfo={remark:"",groupName:"",wording:""}},removeFromFriendList:function(){var e=this,t={userIDList:[this.userProfile.userID],type:this.TIM.TYPES.SNS_DELETE_TYPE_BOTH};this.tim.deleteFriend(t).then((function(){})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))}}},hs=fs,gs=(n("caea"),Object(ce["a"])(hs,cs,ls,!1,null,"30d7095b",null)),vs=gs.exports;function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function bs(e){for(var t=1;t0?this.payload.data:this.payload.data+"@2x","https://web.sdk.qcloud.com/im/assets/face-elem/".concat(e,".png")},date:function(){return Ge(new Date(1e3*this.message.time))},fileSize:function(){var e=this.payload.fileSize;return e>1024?e/1024>1024?"".concat(this.toFixed(e/1024/1024)," Mb"):"".concat(this.toFixed(e/1024)," Kb"):"".concat(this.toFixed(e),"B")},from:function(){var e=this.currentConversation.type===this.TIM.TYPES.CONV_C2C;return this.isMine?this.currentUserProfile.nick||this.currentUserProfile.userID:e?this.currentConversation.userProfile.nick||this.currentConversation.userProfile.userID:this.message.nameCard||this.message.nick||this.message.from},avatar:function(){return"C2C"===this.currentConversation.type?this.isMine?this.currentUserProfile.avatar:this.currentConversation.userProfile.avatar:"GROUP"===this.currentConversation.type?this.isMine?this.currentUserProfile.avatar:this.message.avatar:""},currentConversationType:function(){return this.currentConversation.type},isMine:function(){return"out"===this.message.flow},contentList:function(){return St(this.payload)}}),methods:{translateCustomMessage:function(e){var t={};try{t=JSON.parse(e.data)}catch(n){t={}}return"group_create"===e.data?"".concat(e.extension):t.roomId?(t.roomId=t.roomId.toString(),t.isFromGroupLive=1,t):e.text?e.text:"[自定义消息]"},onImageLoaded:function(e){this.$bus.$emit("image-loaded",e)},handlePreview:function(){this.$bus.$emit("image-preview",{url:this.payload.imageInfoArray[0].url,flag:!0})},toFixed:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.toFixed(t)},showGroupMemberProfile:function(e){var t=this;this.tim.getGroupMemberProfile({groupID:this.message.to,userIDList:[this.message.from]}).then((function(n){var i=n.data.memberList;i[0]&&t.$bus.$emit("showMemberProfile",{event:e,member:i[0]})}))},messageClick:function(e){this.$store.commit("showConversationList",!1),this.showConversationList=!0,this.relayMessage=e},showMergerMessage:function(){this.$bus.$emit("mergerMessage",!0)},cancel:function(){this.showConversationList=!1},getList:function(e){this.selectedConversation=e},messageRelay:function(){var e=this,t="",n="";this.selectedConversation.forEach((function(i){-1!==i.indexOf(e.TIM.TYPES.CONV_C2C)&&(t=e.TIM.TYPES.CONV_C2C,n=i.substring(3,i.length)),-1!==i.indexOf(e.TIM.TYPES.CONV_GROUP)&&(t=e.TIM.TYPES.CONV_GROUP,n=i.substring(5,i.length));var s=e.tim.createForwardMessage({to:n,conversationType:t,payload:e.relayMessage,priority:e.TIM.TYPES.MSG_PRIORITY_NORMAL});e.tim.sendMessage(s).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"error"})})),e.showConversationList=!1}))},mergerHandler:function(e){this.$store.commit("setMergerMessage",e)},videoError:function(e){this.$store.commit("showMessage",{type:"error",message:"视频出错,错误原因:"+e.target.error.message})},play:function(){var e=document.createElement("audio");e.addEventListener("error",this.tryPlayAMR),e.src=this.payload.url;var t=e.play();t&&t.catch((function(){}))},tryPlayAMR:function(){try{var e=/MSIE|Trident|Edge/.test(window.navigator.userAgent);if(e)return void this.$store.commit("showMessage",{message:"您的浏览器不支持该格式的语音消息播放,请尝试更换浏览器,建议使用:谷歌浏览器",type:"warning"});if(!window.BenzAMRRecorder){var t=document.createElement("script");t.addEventListener("load",this.playAMR),t.src="./BenzAMRRecorder.js";var n=document.getElementsByTagName("script")[0];return void n.parentNode.insertBefore(t,n)}this.playAMR()}catch(i){this.$store.commit("showMessage",{message:"您的浏览器不支持该格式的语音消息播放,请尝试更换浏览器,建议使用:谷歌浏览器",type:"warning"})}},playAMR:function(){var e=this;!this.amr&&window.BenzAMRRecorder&&(this.amr=new window.BenzAMRRecorder),this.amr.isInit()?this.amr.play():this.amr.initWithUrl(this.url).then((function(){e.amr.play()}))},downloadFile:function(){var e=this;if(window.fetch)fetch(this.payload.fileUrl).then((function(e){return e.blob()})).then((function(t){var n=document.createElement("a"),i=window.URL.createObjectURL(t);n.href=i,n.download=e.payload.fileName,n.click()}));else{var t=document.createElement("a");t.href=this.payload.fileUrl,t.target="_blank",t.download=this.filename,t.click()}}}},Ns=Rs,Gs=(n("aada"),Object(ce["a"])(Ns,Ls,ks,!1,null,"4ffa3b3c",null)),Us=Gs.exports;function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function $s(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function ir(e,t){if(e){if("string"===typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(e,t):void 0}}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n30)){e.next=14;break}return this.$store.commit("showMessage",{message:"转发消息仅支持30条以内",type:"error"}),e.abrupt("return");case 14:a=nr(this.selectedMessageList),e.prev=15,a.s();case 17:if((c=a.n()).done){e.next=26;break}return l=c.value,e.next=21,this.sendSingleMessage(n,t,l);case 21:return u=e.sent,e.next=24,this.tim.sendMessage(u).then((function(e){return e})).catch((function(e){m.$store.commit("showMessage",{message:e.message,type:"error"})}));case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e["catch"](15),a.e(e.t0);case 31:return e.prev=31,a.f(),e.finish(31);case 34:3===this.relayType&&(p=this.mergerMessage(n,t),this.sendMessageHandler(p));case 35:e.next=4;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e["catch"](2),i.e(e.t1);case 42:return e.prev=42,i.f(),e.finish(42);case 45:this.$store.commit("showConversationList",!1),this.$store.commit("resetSelectedMessage",!1);case 47:case"end":return e.stop()}}),e,this,[[2,39,42,45],[15,28,31,34]])})));function t(){return e.apply(this,arguments)}return t}(),sendMessageHandler:function(e){var t=this;this.tim.sendMessage(e).catch((function(e){t.$store.commit("showMessage",{message:e.message,type:"error"})}))},setAbstractList:function(e){var t=e.nick||e.from,n="";switch(e.type){case this.TIM.TYPES.MSG_TEXT:return n=e.payload.text||"",n.length>20&&(n=n.slice(0,20)),"".concat(t,": ").concat(n);case this.TIM.TYPES.MSG_MERGER:return"".concat(t,": [聊天记录]");case this.TIM.TYPES.MSG_IMAGE:return"".concat(t,": [图片]");case this.TIM.TYPES.MSG_AUDIO:return"".concat(t,": [音频]");case this.TIM.TYPES.MSG_VIDEO:return"".concat(t,": [视频]");case this.TIM.TYPES.MSG_CUSTOM:return"".concat(t,": [自定义消息]");case this.TIM.TYPES.MSG_FILE:return"".concat(t,": [文件]");case this.TIM.TYPES.MSG_FACE:return"".concat(t,": [动画表情]")}},handleDropDownMousedown:function(e){2===e.buttons&&(this.$refs.dropdown.visible?this.$refs.dropdown.hide():this.$refs.dropdown.show())}}},cr=ar,lr=(n("9321"),Object(ce["a"])(cr,Hs,qs,!1,null,"2f808f9a",null)),ur=lr.exports,pr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showFriendContent||e.showApplicationContent?n("div",{staticClass:"friend-content",on:{click:e.closeHandler}},[e.showFriendContent?n("div",{staticClass:"friend-box"},[n("div",{staticClass:"profile-container"},[n("div",{staticClass:"item-nick text-ellipsis"},[e._v("\n "+e._s(e.friendProfile.profile.nick||e.friendProfile.profile.userID)+"\n ")]),n("img",{staticClass:"avatar",attrs:{src:e.friendProfile.profile.avatar?e.friendProfile.profile.avatar:"https://imgcache.qq.com/open/qcloud/video/act/webim-avatar/avatar-2.png"}})]),n("el-divider"),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("手机号")]),n("span",{staticClass:"content-text"},[e._v(e._s(e.friendPhone&&e.friendPhone.value))])]),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("在职企业")]),n("span",{staticClass:"content-text",attrs:{title:e.friendCompany&&e.friendCompany.value}},[e._v(e._s(e.friendCompany&&e.friendCompany.value))])]),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("状态")]),n("span",{staticClass:"content-text status",attrs:{title:e.friendSignature}},[e._v(e._s(e.friendSignature))])]),n("div",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("备注名")]),e.showEditRemark?n("el-input",{ref:"showEditRemark",staticStyle:{display:"inline-block"},attrs:{autofocus:"",size:"mini"},on:{blur:e.blurHandler},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editRemarkHandler.apply(null,arguments)}},model:{value:e.profileRemark,callback:function(t){e.profileRemark=t},expression:"profileRemark"}}):n("div",{staticClass:"text-box"},[n("span",{staticClass:"content-text content-width text-ellipsis"},[e._v(e._s(e.friendProfile.remark||"暂无"))]),n("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","font-size":"16px","margin-left":"6px"},on:{click:function(t){t.stopPropagation(),e.showEditRemark=!0,e.inputFocus("showEditRemark")}}})])],1),n("el-divider"),n("div",{directives:[{name:"show",rawName:"v-show",value:"friendList"===e.friendType,expression:"friendType === 'friendList'"}],staticClass:"content-box"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.showEdit,expression:"!showEdit"}],staticClass:"content-title",staticStyle:{"line-height":"35px"}},[e._v("所在分组")]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showEdit,expression:"showEdit"}],staticClass:"content-title",staticStyle:{"line-height":"35px"}},[e._v("添加到分组")]),n("div",{staticClass:"text-content"},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.showEdit,expression:"!showEdit"}],staticClass:"content-text"},[e._v(e._s(e.groupName))]),n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showEdit,expression:"!showEdit"}],staticClass:"el-icon-edit edit-icon",on:{click:function(t){return t.stopPropagation(),e.showEditHandler.apply(null,arguments)}}})]),e.showEdit?n("el-select",{attrs:{placeholder:"选择分组"},on:{change:e.addToFriendGroup},model:{value:e.addGroupName,callback:function(t){e.addGroupName=t},expression:"addGroupName"}},e._l(e.friendGroupList,(function(t){return n("el-option",{key:t.name,attrs:{label:t.name,value:t.name},on:{blur:function(t){e.showEdit=!1}}})})),1):e._e()],1),n("p",{directives:[{name:"show",rawName:"v-show",value:"groupFriend"===e.friendType,expression:"friendType === 'groupFriend'"}],staticClass:"content-box",staticStyle:{height:"40px"}},[n("span",{staticClass:"content-title",staticStyle:{"line-height":"35px"}},[e._v("所在分组")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.showEdit,expression:"!showEdit"}],staticClass:"content-text",staticStyle:{"line-height":"35px"}},[e._v(e._s(e.groupName))])]),n("div",{staticClass:"sendBtn",on:{click:function(t){return t.stopPropagation(),e.checkoutConversation(e.friendProfile.userID)}}},[e._v("\n 发送消息\n ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:"groupFriend"===e.friendType,expression:"friendType === 'groupFriend'"}],staticClass:"delete-text",on:{click:function(t){return t.stopPropagation(),e.removeFromFriendGroup(e.friendProfile.userID)}}},[e._v("\n 从该群组中移除\n ")]),n("el-popconfirm",{attrs:{"confirm-button-text":"确认","cancel-button-text":"取消",icon:"el-icon-info","icon-color":"red",title:"是否删除?"},on:{confirm:function(t){return e.removeFromFriendList(e.friendProfile.userID)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"friendList"===e.friendType,expression:"friendType === 'friendList'"}],staticClass:"delete-text",attrs:{slot:"reference"},slot:"reference"},[e._v("\n 删除该好友\n ")])])],1):e._e(),e.showApplicationContent?n("div",{staticClass:"friend-box"},[n("div",{staticClass:"profile-container"},[n("div",{staticClass:"item-nick text-ellipsis"},[e._v("\n "+e._s(e.applicationContent.nick||e.applicationContent.userID)+"\n ")]),n("img",{staticClass:"avatar",attrs:{src:e.applicationContent.avatar?e.applicationContent.avatar:"//imgcache.qq.com/open/qcloud/video/act/webim-avatar/avatar-2.png"}})]),n("el-divider"),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("userID")]),n("span",{staticClass:"content-text"},[e._v(e._s(e.applicationContent.userID))])]),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("来源")]),n("span",{staticClass:"content-text content-width text-ellipsis"},[e._v(e._s(e.getSource(e.applicationContent.source)))])]),e.showRemark?n("div",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("备注名")]),n("el-input",{ref:"showRemark",staticStyle:{display:"inline-block"},attrs:{autofocus:"",size:"mini"},on:{blur:e.remarkBlurHandler},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editRemarkHandler.apply(null,arguments)}},model:{value:e.acceptApplication.remark,callback:function(t){e.$set(e.acceptApplication,"remark",t)},expression:"acceptApplication.remark"}})],1):e._e(),n("el-divider"),n("p",{staticClass:"content-box"},[n("span",{staticClass:"content-title"},[e._v("打招呼")]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.applicationContent.wording,placement:"bottom-end"}},[n("span",{staticClass:"content-text content-width text-ellipsis"},[e._v(e._s(e.applicationContent.wording))])])],1),e.showRemark?n("div",{staticClass:"application-box"},[n("p",{staticClass:"application-refuse",on:{click:function(t){return e.acceptFriendApplication(e.applicationContent.userID)}}},[e._v("\n 确认\n ")]),n("p",{staticClass:"application-delete",on:{click:function(t){return e.cancelHandler()}}},[e._v("取消")])]):n("div",{staticClass:"application-box"},[n("p",{staticClass:"application-refuse",on:{click:e.acceptHandler}},[e._v("同意")]),n("p",{staticClass:"application-delete",on:{click:function(t){return e.refuseFriendApplication(e.applicationContent.userID)}}},[e._v("\n 拒绝\n ")])])],1):e._e()]):e._e()},mr=[];function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function fr(e){for(var t=1;t0?this.friendProfile.groupList.join(","):"暂无分组"},groupList:{get:function(){return this.friendProfile.groupList},set:function(e){this.editGroupList=e}},friendType:function(){return this.friendContent.type},getSource:function(){return function(e){return e.substring(15)}},friendSignature:function(){return this.friendProfile.profile.selfSignature}}),methods:{showEditHandler:function(){this.showEdit=!0,this.addGroupName=""},inputFocus:function(e){var t=this;this.profileRemark=this.friendProfile.remark,this.$nextTick((function(){t.$refs[e].focus()}))},blurHandler:function(){this.showEditRemark=!1,this.isUpdate=!0},remarkBlurHandler:function(){},acceptHandler:function(){var e=this;this.showRemark=!0,this.acceptApplication.remark="",this.$nextTick((function(){e.$refs.showRemark.focus()}))},cancelHandler:function(){this.showRemark=!1},closeHandler:function(){this.showEdit=!1,this.isUpdate&&this.editRemarkHandler()},editRemarkHandler:function(){var e=this;this.showEditRemark=!1,this.tim.updateFriend({userID:this.friendProfile.userID,remark:this.profileRemark}).then((function(){e.$store.commit("showMessage",{message:"修改成功"})})).catch((function(e){console.warn("getFriendProfile error:",e)})),this.isUpdate=!1},updateFriendGroup:function(){this.profileRemark=this.friendProfile.remark,this.tim.updateFriend({userID:this.friendProfile.userID,groupList:this.editGroupList}).then((function(){})).catch((function(e){console.warn("getFriendProfile error:",e)}))},checkoutConversation:function(e){var t=this;this.$store.dispatch("checkoutConversation","C2C".concat(e)).then((function(){t.showDialog=!1,t.$bus.$emit("checkoutConversation")})).catch((function(){t.$store.commit("showMessage",{message:"没有找到该用户",type:"warning"})}))},addToFriendGroup:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.addGroupName!=this.groupName){e.next=2;break}return e.abrupt("return");case 2:if(!(this.friendProfile.groupList.length>0)){e.next=5;break}return e.next=5,this.tim.removeFromFriendGroup({name:this.groupName,userIDList:[this.friendProfile.userID]});case 5:this.tim.addToFriendGroup({name:this.addGroupName,userIDList:[this.friendProfile.userID]}).then((function(){t.$store.commit("showMessage",{message:"添加成功",type:"success"})})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})})),this.showEdit=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeFromFriendGroup:function(e){var t=this;this.tim.removeFromFriendGroup({name:this.friendContent.groupName,userIDList:[e]}).then((function(){t.resetContent()})).catch((function(){}))},removeFromFriendList:function(e){var t=this;this.tim.deleteFriend({userIDList:[e],type:"Delete_Type_Both"}).then((function(){t.resetContent()})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})}))},acceptFriendApplication:function(e){var t=this;this.tim.acceptFriendApplication({userID:e,remark:this.acceptApplication.remark,tag:this.acceptApplication.tag,type:this.acceptApplication.type}).then((function(){t.resetContent(),t.$store.commit("showMessage",{message:"已同意加好友",type:"success"})})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})})),this.acceptApplication.remark="",this.showRemark=!1},deleteFriendApplication:function(e){var t=this;this.$store.commit("updateUnreadCount",0),this.tim.deleteFriendApplication({userID:e.userID,type:e.type}).then((function(){t.resetContent(),t.$store.commit("showMessage",{message:"已删除",type:"success"})})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})}))},refuseFriendApplication:function(e){var t=this;this.$store.commit("updateUnreadCount",0),this.tim.refuseFriendApplication({userID:e}).then((function(){t.resetContent(),t.$store.commit("showMessage",{message:"已拒绝",type:"success"}).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})}))}))},resetContent:function(){this.$store.commit("resetCurrentConversation"),this.$store.commit("resetFriendContent"),this.$store.commit("resetApplicationContent")}}},gr=hr,vr=(n("114e"),Object(ce["a"])(gr,pr,mr,!1,null,null,null)),yr=vr.exports,br=n("0c23"),Cr=n.n(br);function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Or(e){for(var t=1;t0&&this.tim.setMessageRead({conversationID:this.currentConversation.conversationID})},hidden:function(e){!e&&this.currentUnreadCount>0&&this.tim.setMessageRead({conversationID:this.currentConversation.conversationID})}},methods:{move:function(e){var t=this,n=this.$refs.dropdown.$el.children[0],i=e.clientX-n.offsetLeft,s=e.clientY-n.offsetTop;document.onmousemove=function(e){var r=e.clientX-i,o=e.clientY-s;t.positionX=o,t.positionY=r,n.style.left=r+"px",n.style.top=o+"px"},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},mergerMessageBack:function(){var e=this.mergerMessageList.length-2;this.$store.commit("updateMergerMessage",this.mergerMessageList[e])},closeMessagePop:function(){this.mergerMessagePop=!1,this.$store.commit("resetMergerMessage")},closeSelectMessage:function(){this.$store.commit("resetSelectedMessage",!1)},mergerSelectedHandler:function(){this.selectedMessageList=[],this.checkList=[],this.$store.commit("setSelectedMessage",!0)},mergerShow:function(e){this.mergerMessagePop=!0,this.mergerMessage=e,this.$store.commit("setMergerMessage",e)},mergerRelay:function(){this.selectedMessage(),this.$store.commit("setRelayType",3)},singleRelay:function(){this.selectedMessage(),this.$store.commit("setRelayType",2)},selectedMessage:function(){var e=this,t=[];this.selectedMessageList=[],this.checkList.forEach((function(n){t=e.currentMessageList.find((function(e){return e.ID===n})),e.selectedMessageList.push(t)})),this.$store.commit("showConversationList",!0),this.$store.commit("setSelectedMessageList",this.selectedMessageList)},onScroll:function(e){var t=e.target.scrollTop,n=this.$refs["message-list"];n&&this.preScrollHeight-n.clientHeight-t<20&&(this.isShowScrollButtomTips=!1)},keepMessageListOnButtom:function(){var e=this.$refs["message-list"];e&&(this.preScrollHeight-e.clientHeight-e.scrollTop<20?(this.$nextTick((function(){e.scrollTop=e.scrollHeight})),this.isShowScrollButtomTips=!1):this.isShowScrollButtomTips=!0,this.preScrollHeight=e.scrollHeight)},scrollMessageListToButtom:function(){var e=this;this.$nextTick((function(){var t=e.$refs["message-list"];t&&(t.scrollTop=t.scrollHeight,e.preScrollHeight=t.scrollHeight,e.isShowScrollButtomTips=!1)}))},showMore:function(){this.showConversationProfile=!this.showConversationProfile},onImageLoaded:function(){this.keepMessageListOnButtom()}}},Ir=Mr,Pr=(n("ead3"),Object(ce["a"])(Ir,ye,be,!1,null,"4fb5cc7e",null)),Tr=Pr.exports,_r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-bar-wrapper"},[n("div",{staticClass:"bar-left"},[n("my-profile"),n("div",{staticClass:"tab-items"},[n("div",{staticClass:"iconfont icon-conversation",class:{active:e.showConversationList},attrs:{id:"conversation-list",title:"会话列表"},on:{click:function(t){return e.handleClick("conversation-list")}}},[0!==e.totalUnreadCount?n("sup",{staticClass:"unread"},[e.totalUnreadCount>99?[e._v("99+")]:[e._v(e._s(e.totalUnreadCount))]],2):e._e()]),n("div",{staticClass:"iconfont icon-group",class:{active:e.showGroupList},attrs:{id:"group-list",title:"群组列表"},on:{click:function(t){return e.handleClick("group-list")}}}),n("div",{staticClass:"iconfont icon-contact",class:{active:e.showFriendList},attrs:{id:"friend-list",title:"好友列表"},on:{click:function(t){return e.handleClick("friend-list")}}},[0!==e.applicationUnreadCount?n("sup",{staticClass:"unread"},[e.applicationUnreadCount>99?[e._v("99+")]:[e._v(e._s(e.applicationUnreadCount))]],2):e._e()])]),n("div",{staticClass:"bottom",style:{display:e.isDevelopment?"block":"none"}},[n("div",{staticClass:"iconfont icon-tuichu",attrs:{title:"退出"},on:{click:function(t){return e.$store.dispatch("logout")}}})])],1),n("div",{staticClass:"bar-right"},[n("conversation-list",{directives:[{name:"show",rawName:"v-show",value:e.showConversationList,expression:"showConversationList"}]}),n("group-list",{directives:[{name:"show",rawName:"v-show",value:e.showGroupList,expression:"showGroupList"}]}),n("friend-list",{directives:[{name:"show",rawName:"v-show",value:e.showFriendList,expression:"showFriendList"}]})],1)])},Er=[],Dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-profile-wrapper"},[n("el-dialog",{attrs:{title:"编辑个人资料",visible:e.showEditMyProfile},on:{"update:visible":function(t){e.showEditMyProfile=t}}},[n("el-form",{attrs:{"label-width":"100px"},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}},[n("el-form-item",{attrs:{label:"头像"}},[n("avatar",{staticClass:"avatar",attrs:{src:e.currentUserProfile.avatar}})],1),n("el-form-item",{attrs:{label:"二维码"}},[n("qrcode-vue",{attrs:{value:JSON.stringify({type:"addFriend",userId:e.currentUserProfile.userID}),size:120,level:"H"}})],1),n("el-form-item",{attrs:{label:"名称"}},[n("el-input",{attrs:{disabled:"",value:e.form.nick,placeholder:"昵称"}})],1),n("el-form-item",{attrs:{label:"手机号码"}},[n("el-input",{attrs:{disabled:"",value:e.myPhone&&e.myPhone.value}})],1),n("el-form-item",{attrs:{label:"在职企业"}},[n("el-input",{attrs:{disabled:"",title:e.myCompany&&e.myCompany.value,value:e.myCompany&&e.myCompany.value}})],1),n("el-form-item",{attrs:{label:"个人状态"}},[n("el-input",{attrs:{type:"textarea",placeholder:"个人状态",maxlength:"100","show-word-limit":""},model:{value:e.form.selfSignature,callback:function(t){e.$set(e.form,"selfSignature",t)},expression:"form.selfSignature"}})],1),n("el-form-item",{attrs:{label:"自动回复"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.Tag_Profile_Custom_AutoRply,callback:function(t){e.Tag_Profile_Custom_AutoRply=t},expression:"Tag_Profile_Custom_AutoRply"}}),n("el-input",{attrs:{type:"textarea",placeholder:"自动回复内容",maxlength:"300","show-word-limit":""},model:{value:e.Tag_Profile_Custom_ARText,callback:function(t){e.Tag_Profile_Custom_ARText=t},expression:"Tag_Profile_Custom_ARText"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditMyProfile=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.editMyProfile}},[e._v("确 定")])],1)],1),n("el-popover",{staticClass:"popover",attrs:{width:200,trigger:"click",placement:"right"}},[n("profile-card",{attrs:{profile:e.currentUserProfile}}),n("i",{staticClass:"el-icon-setting edit-my-profile",on:{click:e.handleEdit}}),n("avatar",{staticClass:"my-avatar",attrs:{slot:"reference",src:e.currentUserProfile.avatar},slot:"reference"})],1)],1)},Ar=[],xr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"profile-card-wrapper"},[n("div",{staticClass:"content"},[n("avatar",{attrs:{src:e.profile.avatar}}),n("div",{staticClass:"basic"},[n("span",{staticClass:"nick text-ellipsis"},[e._v(e._s(e.profile.userID))]),n("span",{staticClass:"iconfont",class:e.genderClass})])],1)])},Lr=[],kr={name:"ProfileCard",props:{profile:{type:Object,required:!0}},computed:{genderClass:function(){switch(this.profile.gender){case this.TIM.TYPES.GENDER_MALE:return"icon-male";case this.TIM.TYPES.GENDER_FEMALE:return"icon-female";default:return"暂无"}}}},Sr=kr,jr=(n("8127"),Object(ce["a"])(Sr,xr,Lr,!1,null,null,null)),Rr=jr.exports,Nr=n("d7b0");function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ur(e){for(var t=1;t99?"99+":e.conversation.unreadCount)+"\n ")]):e._e()])]),n("div",{staticClass:"row-2"},[n("div",{staticClass:"summary"},[e.conversation.lastMessage?n("div",{staticClass:"text-ellipsis"},[e.hasMessageAtMe?n("span",{staticClass:"remind"},[e._v(e._s(e.messageAtMeText))]):e._e(),n("span",{staticClass:"text",attrs:{title:e.conversation.lastMessage.messageForShow}},[e._v("\n "+e._s(e.messageForShow)+"\n ")])]):e._e()]),n("div",{staticClass:"date"},[e._v("\n "+e._s(e.date)+"\n ")])])])],1)])},qr=[];function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jr(e){for(var t=1;t0},messageAtMeText:function(){var e=this,t="";return this.conversation.groupAtInfoList.length>0&&this.conversation.groupAtInfoList.forEach((function(n){n.atTypeArray[0]===e.TIM.TYPES.CONV_AT_ME&&(t=-1!==t.indexOf("[@所有人]")?"[@所有人][有人@我]":"[有人@我]"),n.atTypeArray[0]===e.TIM.TYPES.CONV_AT_ALL&&(t=-1!==t.indexOf("[有人@我]")?"[有人@我][@所有人]":"[@所有人]"),n.atTypeArray[0]===e.TIM.TYPES.CONV_AT_ALL_AT_ME&&(t="[@所有人][有人@我]")})),t},showUnreadCount:function(){return(this.$store.getters.hidden||this.currentConversation.conversationID!==this.conversation.conversationID)&&this.conversation.unreadCount>0},date:function(){if(!this.conversation.lastMessage||!this.conversation.lastMessage.lastTime)return"";var e=new Date(1e3*this.conversation.lastMessage.lastTime);return Ue(e)?Ne(e):Re(e)},avatar:function(){switch(this.conversation.type){case"GROUP":return this.conversation.groupProfile.avatar;case"C2C":return this.conversation.userProfile.avatar;default:return""}},conversationName:function(){return this.conversation.type===this.TIM.TYPES.CONV_C2C?this.conversation.userProfile.nick||this.conversation.userProfile.userID:this.conversation.type===this.TIM.TYPES.CONV_GROUP?this.conversation.groupProfile.name||this.conversation.groupProfile.groupID:this.conversation.type===this.TIM.TYPES.CONV_SYSTEM?"系统通知":""},showGrayBadge:function(){return this.conversation.type===this.TIM.TYPES.CONV_GROUP&&"AcceptNotNotify"===this.conversation.groupProfile.selfInfo.messageRemindType},messageForShow:function(){return this.conversation.lastMessage.isRevoked?this.conversation.lastMessage.fromAccount===this.currentUserProfile.userID?"你撤回了一条消息":this.conversation.type===this.TIM.TYPES.CONV_C2C?"对方撤回了一条消息":"".concat(this.conversation.lastMessage.fromAccount,"撤回了一条消息"):this.conversation.lastMessage.messageForShow}},Object(ve["c"])({currentConversation:function(e){return e.conversation.currentConversation},currentUserProfile:function(e){return e.user.currentUserProfile}})),Object(ve["b"])(["toAccount"])),mounted:function(){},methods:{selectConversation:function(){this.conversation.conversationID!==this.currentConversation.conversationID&&this.$store.dispatch("checkoutConversation",this.conversation.conversationID)},pinConversation:function(){var e=this;this.tim.pinConversation({conversationID:this.conversation.conversationID,isPinned:!this.conversation.isPinned}).then((function(){e.$store.commit("showMessage",{message:"会话【".concat(e.conversationName,"】").concat(e.conversation.isPinned?"":"取消","置顶成功!"),type:"success"})})).catch((function(t){e.$store.commit("showMessage",{message:"会话【".concat(e.conversationName,"】").concat(e.conversation.isPinned?"":"取消","置顶失败!, error=").concat(t.message),type:"error"})}))},deleteConversation:function(){var e=this;this.tim.deleteConversation(this.conversation.conversationID).then((function(){e.$store.commit("showMessage",{message:"会话【".concat(e.conversationName,"】删除成功!"),type:"success"}),e.popoverVisible=!1,e.$store.commit("resetCurrentConversation")})).catch((function(t){e.$store.commit("showMessage",{message:"会话【".concat(e.conversationName,"】删除失败!, error=").concat(t.message),type:"error"}),e.popoverVisible=!1}))},showContextMenu:function(){this.popoverVisible=!0}}},Xr=Qr,Wr=(n("93b1"),Object(ce["a"])(Xr,Hr,qr,!1,null,"5f104eda",null)),Zr=Wr.exports,eo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{attrs:{model:e.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"发送给好友"}},[n("el-select",{attrs:{multiple:"",filterable:"",placeholder:"请选择"},model:{value:e.form.memberList,callback:function(t){e.$set(e.form,"memberList",t)},expression:"form.memberList"}},e._l(e.friendList,(function(e){return n("el-option",{key:e.userID,attrs:{label:e.remark||e.profile.nick,value:e.userID}})})),1)],1),n("el-form-item",{attrs:{label:"发送给组"}},[n("el-select",{attrs:{multiple:"",filterable:"",placeholder:"请选择","value-key":"name"},model:{value:e.form.friendGroup,callback:function(t){e.$set(e.form,"friendGroup",t)},expression:"form.friendGroup"}},e._l(e.friendGroupList,(function(e){return n("el-option",{key:e.name,attrs:{label:e.name,value:e}})})),1)],1),n("el-form-item",{attrs:{label:"发送给群"}},[n("el-select",{attrs:{multiple:"",filterable:"",placeholder:"请选择"},model:{value:e.form.groupList,callback:function(t){e.$set(e.form,"groupList",t)},expression:"form.groupList"}},e._l(e.groupList,(function(e){return n("el-option",{key:e.groupID,attrs:{label:e.name,value:e.groupID}})})),1)],1),n("input",{ref:"imagePicker",staticStyle:{display:"none"},attrs:{type:"file",id:"imagePicker",accept:".jpg, .jpeg, .png, .gif, .bmp"},on:{change:e.sendImage}}),n("input",{ref:"filePicker",staticStyle:{display:"none"},attrs:{type:"file",id:"filePicker"},on:{change:e.sendFile}}),n("input",{ref:"videoPicker",staticStyle:{display:"none"},attrs:{type:"file",id:"videoPicker",accept:".mp4"},on:{change:e.sendVideo}}),n("el-form-item",{attrs:{label:"发送内容"}},[n("div",{staticClass:"send-box"},[n("div",{staticClass:"send-header-bar"},[n("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"}},[n("div",{staticClass:"emojis"},e._l(e.emojiName,(function(t){return n("div",{key:t,staticClass:"emoji",on:{click:function(n){return e.chooseEmoji(t)}}},[n("img",{staticStyle:{width:"30px",height:"30px"},attrs:{src:e.emojiUrl+e.emojiMap[t]}})])})),0),n("i",{staticClass:"iconfont icon-smile",attrs:{slot:"reference",title:"发表情"},slot:"reference"})]),n("i",{staticClass:"iconfont icon-tupian",attrs:{title:"发图片"},on:{click:e.handleSendImageClick}}),n("i",{staticClass:"el-icon-camera",attrs:{title:"发视频"},on:{click:e.handleSendVideoClick}}),n("i",{staticClass:"iconfont icon-wenjian",attrs:{title:"发文件"},on:{click:e.handleSendFileClick}})],1),n("div",{staticClass:"send-bottom"},[e.messageOptions.file?n("div",{staticClass:"file-input"},["imagePicker"==e.messageOptions.elementId?n("img",{attrs:{src:e.messageOptions.file}}):e._e(),"videoPicker"==e.messageOptions.elementId?n("video",{attrs:{controls:"",src:e.messageOptions.file}}):e._e(),"filePicker"==e.messageOptions.elementId?n("div",{staticClass:"file-element-wrapper"},[n("div",{staticClass:"header"},[n("i",{staticClass:"el-icon-document file-icon"}),n("div",{staticClass:"file-element"},[n("span",{staticClass:"file-name"},[e._v(e._s(e.messageOptions.file.name))]),n("span",{staticClass:"file-size"},[e._v(e._s(e.messageOptions.file.size)+" M")])])])]):e._e(),n("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:e.clear}})],1):n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.content,expression:"form.content"}],staticClass:"text-input",domProps:{value:e.form.content},on:{input:function(t){t.target.composing||e.$set(e.form,"content",t.target.value)}}})])])])],1),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.send}},[e._v("立即发送")]),n("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")])],1)],1)},to=[],no=n("2909");function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function so(e){for(var t=1;t=0&&this.checkoutPrev(n),40===e.keyCode&&n+10?(this.hideSearchLoading=!1,this.tim.searchGroupByID(e).then((function(e){var n=e.data.group;t([n])})).catch((function(){n.$store.commit("showMessage",{message:"没有找到该群",type:"error"})}))):this.hideSearchLoading=!0},showCreateGroupModel:function(){this.$store.commit("updateCreateGroupModelVisible",!0)},applyJoinGroup:function(e){var t=this;this.tim.joinGroup({groupID:e.groupID}).then(function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=n.data.status,e.next=e.t0===t.TIM.TYPES.JOIN_STATUS_WAIT_APPROVAL?3:e.t0===t.TIM.TYPES.JOIN_STATUS_SUCCESS?5:e.t0===t.TIM.TYPES.JOIN_STATUS_ALREADY_IN_GROUP?9:11;break;case 3:return t.$store.commit("showMessage",{message:"申请成功,等待群管理员确认。",type:"info"}),e.abrupt("break",12);case 5:return e.next=7,t.$store.dispatch("checkoutConversation","GROUP".concat(n.data.group.groupID));case 7:return t.$store.commit("showMessage",{message:"加群成功",type:"success"}),e.abrupt("break",12);case 9:return t.$store.commit("showMessage",{message:"您已经是群成员了,请勿重复加群哦!",type:"info"}),e.abrupt("break",12);case 11:return e.abrupt("break",12);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$store.commit("showMessage",{message:e.message,type:"error"})}))}}},jo=So,Ro=(n("ece5"),Object(ce["a"])(jo,go,vo,!1,null,"643b7126",null)),No=Ro.exports,Go=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"friend-container"},[i("div",{staticClass:"header-bar"},[i("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入用户名或手机号"},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[i("el-button",{attrs:{slot:"append",icon:"tim-icon-add"},on:{click:e.handleAddButtonClick},slot:"append"})],1)],1),i("el-dialog",{attrs:{title:"添加好友",visible:e.showDialog,"min-width":"400px"},on:{"update:visible":function(t){e.showDialog=t}}},[i("el-input",{attrs:{placeholder:"请输入用户手机号或证件号"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleAddFriendSearch.apply(null,arguments)}},model:{value:e.userID,callback:function(t){e.userID=t},expression:"userID"}},[i("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleAddFriendSearch},slot:"append"})],1),i("el-divider"),e.searchShow?i("div",[e._l(e.searchFriendList,(function(t,s){return i("div",{key:s,staticClass:"search-item"},[i("avatar",{attrs:{src:t.oneInchColorWhitePhoto}}),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.name||t.telephone))]),i("div",{staticClass:"item-nick"},[e._v(e._s(t.name||t.telephone))])]),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.idNum))]),i("div",{staticClass:"item-orgName"},[e._v(e._s(t.idNum))])]),i("div",{staticClass:"flex-grow"}),i("img",{staticClass:"add-friend-icon",attrs:{src:n("edbd")},on:{click:function(n){return e.addFriendPopClick(t)}}})],1)})),i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("el-pagination",{attrs:{layout:"total, prev, pager, next","page-sizes":[5,10,20],"page-size":e.searchParams.pageSize,"current-page":e.searchParams.pageIndex,total:e.searchParams.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],2):e._e()],1),i("el-dialog",{attrs:{title:"添加好友",visible:e.dialogAddFriendVisible,width:"600px"},on:{"update:visible":function(t){e.dialogAddFriendVisible=t}}},[i("el-form",{attrs:{model:e.addForm}},[i("el-form-item",{attrs:{label:"","label-width":e.formLabelWidth}},[i("div",{staticClass:"search-item"},[i("avatar",{attrs:{src:e.profile.avatar}}),i("div",{staticClass:"item-nick"},[e._v(e._s(e.profile.nick||e.profile.userID))])],1)]),i("el-form-item",{attrs:{label:"请输入验证信息","label-width":e.formLabelWidth}},[i("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入验证信息"},model:{value:e.addForm.wording,callback:function(t){e.$set(e.addForm,"wording",t)},expression:"addForm.wording"}})],1),i("el-form-item",{attrs:{label:"分组","label-width":e.formLabelWidth}},[i("el-select",{attrs:{placeholder:""},model:{value:e.addForm.groupName,callback:function(t){e.$set(e.addForm,"groupName",t)},expression:"addForm.groupName"}},[i("el-option",{attrs:{label:"选择分组",value:""}}),e._l(e.friendGroupNameList,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2)],1),i("el-form-item",{attrs:{label:"备注名称","label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.addForm.remark,callback:function(t){e.$set(e.addForm,"remark",t)},expression:"addForm.remark"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogAddFriendVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.addFriend}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"新增好友分组",visible:e.dialogAddGroup,width:"400px"},on:{"update:visible":function(t){e.dialogAddGroup=t}}},[i("el-input",{attrs:{placeholder:"请输入分组名称"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addGroupConfirm.apply(null,arguments)}},model:{value:e.groupName,callback:function(t){e.groupName=t},expression:"groupName"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogAddGroup=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.addGroupConfirm}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:"请输入分组名称",visible:e.dialogRenameGroup,width:"400px"},on:{"update:visible":function(t){e.dialogRenameGroup=t}}},[i("el-input",{nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.renameGroupConfirm.apply(null,arguments)}},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogRenameGroup=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.renameGroupConfirm}},[e._v("确 定")])],1)],1),i("div",{staticClass:"scroll-container"},[i("div",{staticClass:"menu-container"},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"application","default-openeds":e.openeds},on:{open:e.handleOpen,close:e.handleClose}},[i("el-submenu",{staticStyle:{"border-buttom":"1px solid #1c2438"},attrs:{index:"application"}},[i("template",{slot:"title"},[i("i",{class:{"el-icon-arrow-right":!e.active["application"],"el-icon-arrow-down":e.active["application"]}}),i("span",[e._v("新的好友\n "),0!==e.applicationUnreadCount?i("sup",{staticClass:"unread"},[e.applicationUnreadCount>99?[e._v("99+")]:[e._v(e._s(e.applicationUnreadCount))]],2):e._e()])]),i("el-menu-item-group",e._l(e.comeInApplicationList,(function(e,t){return i("el-menu-item",{key:e.userID,attrs:{index:e.userID}},[i("friend-application",{attrs:{application:e,index:t}})],1)})),1)],2),i("el-submenu",{attrs:{index:"friendGroup"}},[i("template",{slot:"title"},[i("i",{class:{"el-icon-arrow-right":!e.active["friendGroup"],"el-icon-arrow-down":e.active["friendGroup"]}}),i("span",[e._v("好友分组")]),i("i",{staticClass:"el-icon-circle-plus friend-group-btn",staticStyle:{right:"20px","font-size":"20px"},on:{click:function(t){t.stopPropagation(),e.dialogAddGroup=!0}}})]),i("el-menu-item-group",e._l(e.friendGroupList,(function(t){return i("el-submenu",{key:t.name,attrs:{index:t.name}},[i("template",{slot:"title"},[i("i",{directives:[{name:"show",rawName:"v-show",value:t.userIDList.length>0,expression:"friendGroup.userIDList.length > 0"}],staticClass:"animated",class:{"el-icon-arrow-right":!e.active[t.name],"el-icon-arrow-down":e.active[t.name]}}),i("i",{directives:[{name:"show",rawName:"v-show",value:0===t.userIDList.length,expression:"friendGroup.userIDList.length === 0"}],staticStyle:{"padding-left":"15px"}}),i("span",[e._v(e._s(t.name))]),i("span",{on:{click:function(e){e.stopPropagation()}}},[i("el-popover",{attrs:{placement:"bottom-start",width:"200",trigger:"click"}},[i("p",{on:{click:function(n){return e.renameFriendGroupHandler(t.name)}}},[e._v("\n 重命名该组\n ")]),i("el-popconfirm",{attrs:{"confirm-button-text":"确认","cancel-button-text":"取消",icon:"el-icon-info","icon-color":"red",title:"是否删除?"},on:{confirm:function(n){return e.deleteFriendGroup(t.name)}}},[i("p",{attrs:{slot:"reference"},slot:"reference"},[e._v("删除该组")])]),i("img",{staticClass:"friend-group-btn more-icon",attrs:{slot:"reference",src:n("d696")},slot:"reference"})],1)],1)]),e._l(e.groupFriend(t.userIDList),(function(n,s){return i("el-menu-item",{key:n.userID,attrs:{index:"1-4-1"}},[i("friend-item",{attrs:{friend:n,friendGroupNameList:e.friendGroupNameList,index:s,type:"groupFriend",groupName:t.name}})],1)}))],2)})),1)],2),i("el-submenu",{staticStyle:{"border-buttom":"1px solid #1c2438"},attrs:{"hide-timeout":e.hideTimeOut,index:"friendList"}},[i("template",{slot:"title"},[i("i",{class:{"el-icon-arrow-right":!e.active["friendList"],"el-icon-arrow-down":e.active["friendList"]}}),i("span",[e._v("联系人")])]),i("el-menu-item-group",e._l(e.friendList,(function(t,n){return i("el-menu-item",{key:t.userID,attrs:{index:t.userID}},[i("friend-item",{attrs:{index:n,friend:t,friendGroupNameList:e.friendGroupNameList,type:"friendList"}})],1)})),1)],2)],1)],1)])],1)},Uo=[],Fo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"friendList-item-wrapper",attrs:{id:"friend-"+e.name+"-"+e.index},on:{click:e.selectedItem}},[n("avatar",{attrs:{src:e.friend.profile.avatar}}),n("div",{staticClass:"item-nick text-ellipsis",attrs:{title:e.friend.profile.userID}},[e._v("\n "+e._s(e.friend.remark||e.friend.profile.nick)+"\n "),e.friendPhone?n("span",[e._v("("+e._s(e.friendPhone.value)+")")]):e._e()])],1)},$o=[],Vo={props:["friend","friendGroupNameList","type","groupName","index"],data:function(){return{addInfo:{name:"",userList:""}}},computed:{name:function(){return this.groupName?this.groupName:""},friendPhone:function(){return this.friend.profile.profileCustomField?this.friend.profile.profileCustomField.find((function(e){return"Tag_Profile_Custom_phone"==e.key})):""}},created:function(){console.log("this.friend",this.friend)},methods:{selectedItem:function(){this.$store.commit("resetCurrentConversation"),this.$store.dispatch("setFriendContent",{friend:this.friend,groupName:this.groupName,type:this.type})},handleFriendClick:function(){var e=this;this.tim.getConversationProfile("C2C".concat(this.friend.userID)).then((function(t){var n=t.data;e.$store.commit("updateCurrentConversation",n)})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})}))},handleCommand:function(e){var t=this;this.tim.addToFriendGroup({name:e,userIDList:[this.friend.profile.userID]}).then((function(){t.$store.commit("showMessage",{message:"添加成功",type:"success"})})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})}))},removeFromFriendList:function(e){var t=this;this.tim.deleteFriend({userIDList:[e.userID],type:"Delete_Type_Both"}).then((function(){})).catch((function(e){t.$store.commit("showMessage",{type:"error",message:e.message})}))},removeFromFriendGroup:function(e,t){this.tim.removeFromFriendGroup({name:t,userIDList:[e]}).then((function(){})).catch((function(){}))}}},Bo=Vo,Yo=(n("4ac4"),Object(ce["a"])(Bo,Fo,$o,!1,null,"af85c7ae",null)),zo=Yo.exports,Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"application-item-container",attrs:{id:"application-"+e.index},on:{click:e.selectedItem}},[n("div",{staticClass:"application-box"},[n("avatar",{attrs:{src:e.application.avatar}}),n("div",{staticClass:"application-content"},[n("span",{staticClass:"application-name text-ellipsis"},[e._v(e._s(e.application.nick||e.application.userID))]),e.application.wording?n("span",{staticClass:"application-wording text-ellipsis"},[e._v(e._s(e.application.wording)+" ")]):e._e()])],1)])},qo=[];function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jo(e){for(var t=1;t0},friendGroupNameList:function(){return this.friendGroupList.map((function(e){return e.name}))},comeInApplicationList:function(){var e=this;return this.applicationList.filter((function(t){return t.type===e.TIM.TYPES.SNS_APPLICATION_SENT_TO_ME}))},groupFriend:function(){return function(e){if(0!==e.length)return this.friendList.filter((function(t){return e.indexOf(t.userID)>-1}))}}}),mounted:function(){this.$set(this.active,"friendList",!0)},methods:{handleSizeChange:function(e){this.searchParams.pageSize=e,this.addFriendConfirm()},handleCurrentChange:function(e){this.searchParams.pageIndex=e,this.addFriendConfirm()},handleOpen:function(e,t){var n=this;1===t.length?this.$set(this.active,t[0],!0):this.$set(this.active,t[1],!0),"application"===e&&this.applicationUnreadCount>0&&this.tim.setFriendApplicationRead().then((function(){n.$store.commit("updateUnreadCount",0)})).catch((function(e){console.warn("setFriendApplicationRead error:",e)}))},handleClose:function(e,t){1===t.length?this.$set(this.active,t[0],!1):this.$set(this.active,t[1],!1)},handleSearchFriendParamsInit:function(){this.searchShow=!1,this.searchFriendList=[]},handleAddButtonClick:function(){this.showDialog=!0,this.handleSearchFriendParamsInit()},addFriendPopClick:function(e){var t=this;e.imIdentity?(console.log("item",e),bi(e.imIdentity).then((function(n){console.log("r",n),t.showDialog=!1,t.dialogAddFriendVisible=!0,t.addForm.userID=e.imIdentity}))):this.$store.commit("showMessage",{message:"im标识符不存在",type:"warning"})},handleAddFriendSearch:function(){this.searchParams.pageSize=5,this.searchParams.pageIndex=1,this.searchParams.total=0,this.addFriendConfirm()},addFriendConfirm:function(){var e=this,t=this.$loading({lock:!0,text:"努力查找中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.1)"});this.searchFriendList=[],Ci({keyword:this.userID,pageSize:this.searchParams.pageSize,pageIndex:this.searchParams.pageIndex},{headers:{Authorization:"Bearer ".concat(localStorage.getItem("token"))}}).then((function(n){console.log("123",n),t.close(),n.data&&n.data.length?(e.searchParams.total=n.totalCount,e.searchFriendList=n.data.map((function(e){return e})),e.searchShow=!0):e.$store.commit("showMessage",{message:"没有找到该用户",type:"warning"})})).catch((function(n){t.close(),e.searchShow=!1,e.$store.commit("showMessage",{message:"没有找到该用户",type:"warning"})}))},addFriend:function(){var e=this;this.dialogAddFriendVisible=!1,this.tim.addFriend({to:this.addForm.userID,remark:this.addForm.remark,groupName:this.addForm.groupName,wording:this.addForm.wording,source:"AddSource_Type_Web",type:this.addForm.type}).then((function(t){console.log("rere",t),0===t.data.code&&e.$store.commit("showMessage",{message:"添加成功",type:"success"}),30539===t.data.code&&e.$store.commit("showMessage",{message:t.data.message,type:"warning"})})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"warning"})})),this.searchShow=!1,this.profile={avatar:"",nick:"",userID:""},this.addForm={userID:"",remark:"",groupName:"",wording:""}},addGroupConfirm:function(){var e=this;this.tim.createFriendGroup({name:this.groupName}).then((function(){})).catch((function(t){e.$store.commit("showMessage",{type:"error",message:t.message})})),this.groupName="",this.dialogAddGroup=!1},deleteFriendGroup:function(e){var t=this;this.tim.deleteFriendGroup({name:e}).then((function(){t.$store.commit("showMessage",{message:"删除成功",type:"success"})})).catch((function(e){t.$store.commit("showMessage",{message:e.message,type:"warning"})}))},renameFriendGroupHandler:function(e){this.dialogRenameGroup=!0,this.oldGroupName=e,this.newGroupName=e},renameGroupConfirm:function(){var e=this;this.tim.renameFriendGroup({oldName:this.oldGroupName,newName:this.newGroupName}).then((function(){e.$store.commit("showMessage",{message:"修改成功",type:"success"})})).catch((function(t){e.$store.commit("showMessage",{message:t.message,type:"warning"})})),this.dialogRenameGroup=!1}}},ia=na,sa=(n("47b1"),Object(ce["a"])(ia,Go,Uo,!1,null,null,null)),ra=sa.exports;function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t-1||location.host.indexOf("test")>-1?1400522511:1400526063,ya={name:"Login",components:{ElForm:C.a,ElFormItem:y.a},data:function(){return{form:{userID:sessionStorage.getItem("imIdentity")||"",password:""},rules:{userID:[{required:!0,message:"请输入 userID",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},logo:ga.a,registerVisible:!1,loading:!1}},computed:{isDevelopment:function(){return!1}},created:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.isDevelopment){e.next=3;break}return e.next=3,this.login();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{submit:function(){var e=this;this.$refs["login"].validate((function(t){t&&e.login()}))},login:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(){var t,n,i,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,bi(this.form.userID);case 3:t=e.sent,n=t.data,i="",0==n.data.retType&&(i=n.data.data),this.tim.login({userID:this.form.userID,userSig:i}).then((function(){s.loading=!1,s.$store.commit("toggleIsLogin",!0),s.$store.commit("startComputeCurrent"),s.$store.commit("showMessage",{type:"success",message:"登录成功"}),s.$store.commit({type:"GET_USER_INFO",userID:s.form.userID,userSig:i,sdkAppID:va}),s.$store.commit("showMessage",{type:"success",message:"登录成功"})})).catch((function(e){s.loading=!1,s.$store.commit("showMessage",{message:"登录失败:"+e.message,type:"error"})}));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},ba=ya,Ca=(n("be3d"),Object(ce["a"])(ba,da,fa,!1,null,"197c51af",null)),wa=Ca.exports,Oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPreviewer,expression:"showPreviewer"}],staticClass:"image-previewer-wrapper",on:{mousewheel:e.handleMouseWheel}},[n("div",{staticClass:"image-wrapper"},[n("img",{staticClass:"image-preview",style:{transform:"scale("+e.zoom+") rotate("+e.rotate+"deg)"},attrs:{src:e.previewUrl},on:{click:e.close}})]),n("i",{staticClass:"el-icon-close close-button",on:{click:e.close}}),n("i",{staticClass:"el-icon-back prev-button",on:{click:e.goPrev}}),n("i",{staticClass:"el-icon-right next-button",on:{click:e.goNext}}),n("div",{staticClass:"actions-bar"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:e.zoomOut}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:e.zoomIn}}),n("i",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}}),n("span",{staticClass:"image-counter"},[e._v(e._s(e.index+1)+" / "+e._s(e.imgUrlList.length))])])])},Ma=[];function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Pa(e){for(var t=1;t0&&this.visible},imageStyle:function(){return{transform:"scale(".concat(this.zoom,");")}},previewUrl:function(){return this.urlFlag?this.url:this.formatUrl(this.imgUrlList[this.index])}}),mounted:function(){this.$bus.$on("image-preview",this.handlePreview)},methods:{handlePreview:function(e){var t=e.url,n=e.flag,i=void 0===n?void 0:n;this.url=t,this.urlFlag=!!i&&"merger",this.index=this.imgUrlList.findIndex((function(e){return e===t})),this.visible=!0},handleMouseWheel:function(e){e.wheelDelta>0?this.zoomIn():this.zoomOut()},zoomIn:function(){this.zoom+=.1},zoomOut:function(){this.zoom=this.zoom-.1>this.minZoom?this.zoom-.1:this.minZoom},close:function(){Object.assign(this,{zoom:1}),this.visible=!1},rotateLeft:function(){this.rotate-=90},rotateRight:function(){this.rotate+=90},goNext:function(){this.index=(this.index+1)%this.imgUrlList.length},goPrev:function(){this.index=this.index-1>=0?this.index-1:this.imgUrlList.length-1},formatUrl:function(e){return e?"//"===e.slice(0,2)?"https:".concat(e):e:""}}},_a=Ta,Ea=(n("be86"),Object(ce["a"])(_a,Oa,Ma,!1,null,"b7f38ec6",null)),Da=Ea.exports,Aa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialling||e.calling||e.isDialled,expression:"dialling || calling || isDialled"}],staticClass:"call-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isDialled,expression:"isDialled"}],staticClass:"choose"},[n("div",{staticClass:"title"},[e._v("\n "+e._s(e.sponsor)+"来通话啦\n ")]),n("div",{staticClass:"buttons"},[n("div",{staticClass:"accept",on:{click:function(t){return e.handleDebounce(e.accept,500)}}}),n("div",{staticClass:"refuse",on:{click:function(t){return e.handleDebounce(e.refuse,500)}}})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialling||e.calling,expression:"dialling || calling"}],staticClass:"call"},[e.dialling&&"C2C"===e.currentConversationType?n("div",{staticClass:"title"},[e._v("\n 正在呼叫"+e._s(e.toAccount)+"...\n ")]):e._e(),e.dialling&&"GROUP"===e.currentConversationType?n("div",{staticClass:"title"},[e._v("\n 正在呼叫...\n ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.callType===e.TRTCCalling.CALL_TYPE.VIDEO_CALL&&e.calling,expression:" callType === TRTCCalling.CALL_TYPE.VIDEO_CALL && calling"}]},[n("div",{staticClass:"small-group",attrs:{id:"small-group"}},[n("div",{staticClass:"video-box",attrs:{id:"local"}}),e._l(e.callingUserList,(function(e){return n("div",{key:"video-"+e,staticClass:"video-box",attrs:{id:"video-"+e}})}))],2)]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.callType===e.TRTCCalling.CALL_TYPE.AUDIO_CALL&&e.calling,expression:"callType === TRTCCalling.CALL_TYPE.AUDIO_CALL && calling"}],staticClass:"audio-box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.calling,expression:"calling"}],staticClass:"aduio-call"},[n("img",{staticClass:"audio-img",attrs:{src:e.myAvatar}}),n("p",{staticStyle:{"text-align":"center"}},[n("span",{staticClass:"nick-text"},[e._v(e._s(e.myNick))]),e.isMicOn?n("i",{staticClass:"el-icon-microphone micr-icon",staticStyle:{color:"#006FFF"}}):n("i",{staticClass:"el-icon-turn-off-microphone micr-icon"})])]),e._l(e.invitedUserInfo,(function(t){return n("div",{key:"video-"+t.userID,staticClass:"aduio-call"},[n("img",{staticClass:"audio-img",attrs:{src:t.avatar||e.defaultAvatar}}),n("p",{staticStyle:{"text-align":"center"}},[n("span",{staticClass:"nick-text"},[e._v(e._s(t.nick||t.userID))]),!0===t.isInvitedMicOn||void 0==t.isInvitedMicOn?n("i",{staticClass:"el-icon-microphone micr-icon",staticStyle:{color:"#006FFF"}}):n("i",{staticClass:"el-icon-turn-off-microphone micr-icon"})])])}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.calling,expression:"calling"}],staticClass:"duration"},[e._v("\n "+e._s(e.formatDurationStr)+"\n ")]),e.callType===e.TRTCCalling.CALL_TYPE.VIDEO_CALL?n("div",{staticClass:"buttons"},[n("div",{class:e.isCamOn?"videoOn":"videoOff",on:{click:e.videoHandler}}),n("div",{staticClass:"refuse",on:{click:function(t){return e.handleDebounce(e.leave,500)}}}),n("div",{class:e.isMicOn?"micOn":"micOff",on:{click:e.micHandler}})]):n("div",{staticClass:"buttons"},[n("div",{staticClass:"refuse",on:{click:function(t){return e.handleDebounce(e.leave,500)}}}),n("div",{class:e.isMicOn?"micOn":"micOff",on:{click:e.micHandler}})])])])},xa=[];function La(e){return e<10?"0".concat(e):e}function ka(e){if(e<60)return"00:00:".concat(La(e));if(e<3600){var t=parseInt(e/60),n=e-60*t;return"00:".concat(La(t),":").concat(La(n))}var i=parseInt(e/3600),s=e-3600*i,r=parseInt(s/60),o=s-60*r;return"".concat(La(i),":").concat(La(r),":").concat(La(o))}function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ja(e){for(var t=1;t=2&&this.calling){var n=window.document.getElementById("small-group");n&&n.classList.remove("small-group_box");var i=window.document.getElementById("small-group").childNodes;i.forEach((function(e,t){0===t&&e.classList.remove("small"),e.classList.remove("big"),e.classList.add("video-box")}))}},deep:!0,immediate:!0}},destroyed:function(){var e=this;this.removeListener(),window.addEventListener("beforeunload",(function(){e.videoCallLogOut()})),window.addEventListener("leave",(function(){e.videoCallLogOut()}))},mounted:function(){this.$bus.$on("video-call",this.videoCalling),this.$bus.$on("audio-call",this.audioCalling)},beforeDestroy:function(){this.$bus.$off("video-call",this.videoCalling),this.$bus.$off("audio-call",this.audioCalling)},methods:{videoCallLogOut:function(){(this.dialling||this.calling)&&this.leave(),this.isDialled&&this.refuse()},initListener:function(){this.trtcCalling.on(this.TRTCCalling.EVENT.ERROR,this.handleError),this.trtcCalling.on(this.TRTCCalling.EVENT.INVITED,this.handleNewInvitationReceived),this.trtcCalling.on(this.TRTCCalling.EVENT.USER_ENTER,this.handleUserEnter),this.trtcCalling.on(this.TRTCCalling.EVENT.USER_LEAVE,this.handleUserLeave),this.trtcCalling.on(this.TRTCCalling.EVENT.REJECT,this.handleInviteeReject),this.trtcCalling.on(this.TRTCCalling.EVENT.LINE_BUSY,this.handleInviteeLineBusy),this.trtcCalling.on(this.TRTCCalling.EVENT.CALLING_CANCEL,this.handleInviterCancel),this.trtcCalling.on(this.TRTCCalling.EVENT.KICKED_OUT,this.handleKickedOut),this.trtcCalling.on(this.TRTCCalling.EVENT.CALLING_TIMEOUT,this.handleCallTimeout),this.trtcCalling.on(this.TRTCCalling.EVENT.NO_RESP,this.handleNoResponse),this.trtcCalling.on(this.TRTCCalling.EVENT.CALLING_END,this.handleCallEnd),this.trtcCalling.on(this.TRTCCalling.EVENT.USER_VIDEO_AVAILABLE,this.handleUserVideoChange),this.trtcCalling.on(this.TRTCCalling.EVENT.USER_AUDIO_AVAILABLE,this.handleUserAudioChange)},removeListener:function(){this.trtcCalling.off(this.TRTCCalling.EVENT.ERROR,this.handleError),this.trtcCalling.off(this.TRTCCalling.EVENT.INVITED,this.handleNewInvitationReceived),this.trtcCalling.off(this.TRTCCalling.EVENT.USER_ENTER,this.handleUserEnter),this.trtcCalling.off(this.TRTCCalling.EVENT.USER_LEAVE,this.handleUserLeave),this.trtcCalling.off(this.TRTCCalling.EVENT.REJECT,this.handleInviteeReject),this.trtcCalling.off(this.TRTCCalling.EVENT.LINE_BUSY,this.handleInviteeLineBusy),this.trtcCalling.off(this.TRTCCalling.EVENT.CALLING_CANCEL,this.handleInviterCancel),this.trtcCalling.off(this.TRTCCalling.EVENT.KICKED_OUT,this.handleKickedOut),this.trtcCalling.off(this.TRTCCalling.EVENT.CALLING_TIMEOUT,this.handleCallTimeout),this.trtcCalling.off(this.TRTCCalling.EVENT.NO_RESP,this.handleNoResponse),this.trtcCalling.off(this.TRTCCalling.EVENT.CALLING_END,this.handleCallEnd),this.trtcCalling.off(this.TRTCCalling.EVENT.USER_VIDEO_AVAILABLE,this.handleUserVideoChange),this.trtcCalling.off(this.TRTCCalling.EVENT.USER_AUDIO_AVAILABLE,this.handleUserAudioChange)},handleError:function(){},handleNewInvitationReceived:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(t){var n,i,s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.inviteID,i=t.sponsor,s=t.inviteData,r=t.userIDList,o=t.isGroupCall,this.inviteID=n,this.inviteData=s,this.callType=s.callType,this.sponsor=i,this.invitedUserID=JSON.parse(JSON.stringify(r)),this.callingInfo.type=o?this.TIM.TYPES.CONV_GROUP:this.TIM.TYPES.CONV_C2C,this.changeState("isDialled",!0);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),accept:function(){var e=this;this.trtcCalling.accept({inviteID:this.inviteID,roomID:this.inviteData.roomID,callType:this.inviteData.callType}).then((function(t){e.changeState("calling",!0),t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message)}))},reject:function(){var e=this,t=this.inviteData.callType;this.trtcCalling.reject({inviteID:this.inviteID,isBusy:!1,callType:t}).then((function(t){t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message)}))},handleDebounce:function(e,t){var n=this,i=arguments;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.apply(n,i)}),t)},handleUserEnter:function(e){var t=this,n=e.userID;this.changeState("dialling",!0),this.isAccept(),this.callingUserList.length>=2&&(this.callingType=this.TIM.TYPES.CONV_GROUP),-1===this.callingUserList.indexOf(n)&&(this.callType===this.TRTCCalling.CALL_TYPE.AUDIO_CALL?this.getUserAvatar(n):this.callingUserList.push(n)),this.callType===this.TRTCCalling.CALL_TYPE.VIDEO_CALL&&this.$nextTick((function(){t.isStartLocalView||t.startLocalView(),t.startRemoteView(n)}))},handleUserLeave:function(e){var t=e.userID;if(this.callType!==this.TRTCCalling.CALL_TYPE.AUDIO_CALL){var n=this.callingUserList.findIndex((function(e){return e===t}));n>=0&&this.callingUserList.splice(n,1)}else{var i=this.invitedUserInfo.findIndex((function(e){return e.userID===t}));i>=0&&this.invitedUserInfo.splice(i,1)}},handleInviteeReject:function(e){var t=e.userID;this.userID===this.sponsor&&(this.setCallingstatus(t),this.$store.commit("showMessage",{message:"".concat(t,"拒绝通话")}))},setCallingstatus:function(e){var t=this.invitedUserID.indexOf(e);t>=0&&this.invitedUserID.splice(t,1),0===this.invitedUserID.length&&(this.changeState("isDialled",!1),this.changeState("dialling",!1))},handleInviteeLineBusy:function(e){var t=e.sponsor,n=e.userID;t===this.userID&&(this.setCallingstatus(n),this.$store.commit("showMessage",{message:"".concat(n,"忙线")}))},handleInviterCancel:function(){this.changeState("isDialled",!1),this.$store.commit("showMessage",{message:"通话已取消"})},handleKickedOut:function(){},handleCallTimeout:function(e){var t=this,n=e.userIDList;this.calling||(this.userID!==this.sponsor?(n.indexOf(this.userID)>-1&&this.toAccount&&this.sendMessage(this.userID,"",this.callingTips.callTimeout),this.changeState("isDialled",!1)):n.forEach((function(e){t.setCallingstatus(e)})))},handleCallEnd:function(e){var t=e.userID,n=e.callEnd;(t===this.userID&&0===this.invitedUserID.length||0===this.callingUserList)&&this.sendMessage(t,n,this.callingTips.callEnd),this.changeState("dialling",!1),this.isMicOn=!0,this.isCamOn=!0,this.maskShow=!1,this.isStartLocalView=!1},handleNoResponse:function(e){var t=this,n=e.sponsor,i=e.userIDList;n===this.userID&&(i.forEach((function(e){t.setCallingstatus(e)})),-1===i.indexOf(this.userID)&&this.sendMessage(i,"",this.callingTips.callTimeout))},handleUserVideoChange:function(){},handleUserAudioChange:function(e){var t=this.invitedUserInfo.findIndex((function(t){return t.userID===e.userID}));t>=0&&(this.invitedUserInfo[t].isInvitedMicOn=e.isAudioAvailable)},startLocalView:function(){var e=this;this.trtcCalling.startLocalView({userID:this.userID,videoViewDomID:"local"}).then((function(){e.isStartLocalView=!0}))},stopLocalView:function(){this.trtcCalling.stopLocalView({userID:this.userID,videoViewDomID:this.viewLocalDomID})},startRemoteView:function(e){this.trtcCalling.startRemoteView({userID:e,videoViewDomID:"video-".concat(e)}).then((function(){}))},stopRemoteView:function(e){this.trtcCalling.stopRemoteView({userID:this.userID,videoViewDomID:"video-".concat(e)})},getUserAvatar:function(e){var t=this,n=this.invitedUserInfo.findIndex((function(t){return t.userID===e}));if(!(n>=0)){var i=[e],s=this.tim.getUserProfile({userIDList:i});s.then((function(e){e.data[0]&&t.invitedUserInfo.push(e.data[0])})).catch((function(){}))}},changeState:function(e,t){var n=this,i=["dialling","isDialled","calling"];i.forEach((function(i){n[i]=i===e&&t})),this.$store.commit("UPDATE_ISBUSY",i.some((function(e){return n[e]})))},videoCalling:function(){var e=this;this.invitedUserID=JSON.parse(JSON.stringify(this.callingInfo.memberList)),this.sponsor=this.userID,this.calling||(this.callType=this.TRTCCalling.CALL_TYPE.VIDEO_CALL,this.isLocalMain=!0,this.callingInfo.type===this.TIM.TYPES.CONV_C2C?this.trtcCalling.call({userID:this.callingInfo.memberList[0],type:this.callType,timeout:30}).then((function(t){t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message),e.changeState("dialling",!0)})):this.trtcCalling.groupCall({userIDList:this.callingInfo.memberList,type:this.callType,groupID:this.currentConversation.groupProfile.groupID,timeout:30}).then((function(t){t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message),e.changeState("dialling",!0)})))},audioCalling:function(){var e=this;this.invitedUserID=this.callingInfo.memberList,this.sponsor=this.userID,this.calling||(this.callType=this.TRTCCalling.CALL_TYPE.AUDIO_CALL,"C2C"===this.callingInfo.type?this.trtcCalling.call({userID:this.callingInfo.memberList[0],type:this.callType,timeout:30}).then((function(t){e.changeState("dialling",!0),t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message)})):this.trtcCalling.groupCall({userIDList:this.callingInfo.memberList,type:this.callType,groupID:this.currentConversation.groupProfile.groupID,timeout:30}).then((function(t){e.changeState("dialling",!0),t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message)})))},leave:function(){var e=this;this.isMicOn=!0,this.isCamOn=!0,this.maskShow=!1,this.isStartLocalView=!1,this.calling?this.hangUp():this.trtcCalling.hangup().then((function(t){t.data.message.nick=e.currentUserProfile.nick,e.$store.commit("pushCurrentMessageList",t.data.message),e.changeState("dialling",!1),clearTimeout(e.timer)}))},refuse:function(){this.changeState("isDialled",!1),this.reject()},resetDuration:function(e){var t=this;this.duration=e,this.hangUpTimer=setTimeout((function(){var e=new Date;t.resetDuration(parseInt((e-t.start)/1e3))}),1e3)},isAccept:function(){clearTimeout(this.timer),this.changeState("calling",!0),clearTimeout(this.hangUpTimer),this.resetDuration(0),this.start=new Date},hangUp:function(){this.changeState("calling",!1),this.trtcCalling.hangup(),this.$store.commit("showMessage",{message:"已挂断"})},videoHandler:function(){this.isCamOn?(this.isCamOn=!1,this.maskShow=!0,this.trtcCalling.closeCamera()):(this.isCamOn=!0,this.maskShow=!1,this.trtcCalling.openCamera())},micHandler:function(){this.isMicOn?(this.trtcCalling.setMicMute(!0),this.isMicOn=!1):(this.trtcCalling.setMicMute(!1),this.isMicOn=!0)},changeMainVideo:function(){this.calling&&(this.isLocalMain=!this.isLocalMain)},sendMessage:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(t,n,i){var s,r,o,a,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="",t=Array.isArray(t)?t.join(","):t,r={to:this.toAccount,from:t,conversationType:this.currentConversationType,payload:{data:"",description:"",extension:""}},e.next=5,this.tim.createCustomMessage(r);case 5:o=e.sent,e.t0=i,e.next=e.t0===this.callingTips.callEnd?9:e.t0===this.callingTips.callTimeout?16:18;break;case 9:if(this.currentConversationType!==this.TIM.TYPES.CONV_GROUP){e.next=14;break}return s="结束群聊",e.abrupt("break",20);case 14:return s=0===n?"取消通话":"结束通话,通话时长:".concat(ka(n||this.duration)),e.abrupt("break",20);case 16:return s="无应答",e.abrupt("break",20);case 18:return s="",e.abrupt("break",20);case 20:this.currentConversationType===this.TIM.TYPES.CONV_GROUP&&(o.groupID=this.toAccount,a={operationType:256,text:s,userIDList:[]},o.payload=a),this.currentConversationType===this.TIM.TYPES.CONV_C2C&&(c={text:s},o.payload=c),this.currentConversationType===this.TIM.TYPES.CONV_GROUP&&(o.type=this.TIM.TYPES.MSG_GRP_TIP),o.callType="callingTips",this.$store.commit("pushCurrentMessageList",o);case 25:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()}},Na=Ra,Ga=(n("30b1"),Object(ce["a"])(Na,Aa,xa,!1,null,"0354109c",null)),Ua=Ga.exports,Fa={VIDEO_AUDIO_CALL:1,VIDEO_CALL_ACTION_DIALING:0,VIDEO_CALL_ACTION_SPONSOR_CANCEL:2,VIDEO_CALL_ACTION_REJECT:4,VIDEO_CALL_ACTION_SPONSOR_TIMEOUT:5,VIDEO_CALL_ACTION_ACCEPTED:3,VIDEO_CALL_ACTION_HANGUP:5};function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Va(e){for(var t=1;t0){if(e[0].conversationID==this.currentConversation.conversationID)return;if(e[0].conversationType==this.TIM.TYPES.CONV_C2C){if(e[0].to==e[0].from)return;var t=this.tim.createTextMessage({to:e[0].from,conversationType:this.TIM.TYPES.CONV_C2C,payload:{text:this.ARText}});this.tim.sendMessage(t)}}},onReceiveMessage:function(e){var t=e.data;this.playNotifyAudio(),this.handleAutoReply(t),this.handleVideoMessage(t),this.handleQuitGroupTip(t),this.$store.commit("pushCurrentMessageList",t)},onError:function(e){var t=e.data;"Network Error"!==t.message&&this.$store.commit("showMessage",{message:t.message,type:"error"})},onMessageReadByPeer:function(){},updateMyProfile:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(){var t,n,i,s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,fetch("//".concat(document.domain,"/obpm/api/runtime/users/myprofile"));case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,i=n.data,e.next=9,fetch("//".concat(document.domain,"/obpm/api/runtime/usersetups/domains"));case 9:return s=e.sent,e.next=12,s.json();case 12:r=e.sent,o=r.data,this.setProfile(i,o);case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getAvatar:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(t){var n,i,s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.domainId,i=t.loginNo,e.next=3,fetch("//".concat(document.domain,"/obpm/api/authtime/domain/").concat(n,"/users?currpage=1&lines=1"),{method:"POST",headers:{"x-g-app-token":"02C524E758DDC1C4F041F0A5953AB7803ACF01A6BEA5B4E50A2239979AA3FB409FFF0353A0E9CDA37DA4DEE3E1CBD066960EC8EE91B577A16D6B6D67A16CF300","x-g-app-time":Date.now()},body:JSON.stringify({loginno:i})});case 3:return s=e.sent,e.next=6,s.json();case 6:return r=e.sent,o=r.data,e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),setProfile:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(t,n){var i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAvatar(t);case 2:i=e.sent,s=i.datas,this.tim.updateMyProfile({nick:t.name,avatar:s&&s[0]&&"".concat(this.avatarBaseUrl).concat(s[0].field20)||"//imgcache.qq.com/open/qcloud/video/act/webim-avatar/avatar-2.png",profileCustomField:[{key:"Tag_Profile_Custom_phone",value:t.loginNo},{key:"Tag_Profile_Custom_InCom",value:Array.isArray(n)?n.filter((function(e){return"all_users_zone"!=e.name})).map((function(e){return e.name})).join(","):""}]}).then((function(e){console.log(e.data)})).catch((function(e){console.warn("updateMyProfile error:",e)}));case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}(),onReadyStateUpdate:function(){var e=Object(he["a"])(regeneratorRuntime.mark((function e(t){var n,i,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.name,i=n===this.TIM.EVENT.SDK_READY,this.$store.commit("toggleIsSDKReady",i),!i){e.next=15;break}if(this.isDevelopment){e.next=13;break}return e.prev=5,e.next=8,this.updateMyProfile();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](5),console.log(e.t0);case 13:this.tim.getMyProfile().then((function(e){var t=e.data;s.$store.commit("updateCurrentUserProfile",t)})).catch((function(e){s.$store.commit("showMessage",{type:"error",message:e.message})})),this.trtcCalling.login({sdkAppID:this.sdkAppID,userID:this.userID,userSig:this.userSig});case 15:case"end":return e.stop()}}),e,this,[[5,10]])})));function t(t){return e.apply(this,arguments)}return t}(),kickedOutReason:function(e){switch(e){case this.TIM.TYPES.KICKED_OUT_MULT_ACCOUNT:return"由于多实例登录";case this.TIM.TYPES.KICKED_OUT_MULT_DEVICE:return"由于多设备登录";case this.TIM.TYPES.KICKED_OUT_USERSIG_EXPIRED:return"由于 userSig 过期";default:return""}},checkoutNetState:function(e){switch(e){case this.TIM.TYPES.NET_STATE_CONNECTED:return{message:"已接入网络",type:"success"};case this.TIM.TYPES.NET_STATE_CONNECTING:return{message:"当前网络不稳定",type:"warning"};case this.TIM.TYPES.NET_STATE_DISCONNECTED:return{message:"当前网络不可用",type:"error"};default:return""}},onNetStateChange:function(e){this.$store.commit("showMessage",this.checkoutNetState(e.data.state))},onKickOut:function(e){this.$store.commit("showMessage",{message:"".concat(this.kickedOutReason(e.data.type),"被踢出,请重新登录。"),type:"error"}),this.$store.commit("toggleIsLogin",!1),this.$store.commit("reset")},onUpdateConversationList:function(e){var t=e.data,n=t.filter((function(e){return e.lastMessage.lastTime>0}));this.$store.commit("updateConversationList",n)},onUpdateGroupList:function(e){this.$store.commit("updateGroupList",e.data)},onReceiveGroupSystemNotice:function(e){var t=this,n=4===e.data.type,i="GROUP".concat(e.data.message.payload.groupProfile.groupID)===this.currentConversation.conversationID;n&&i&&this.$store.commit("resetCurrentConversation"),fe()({title:"新系统通知",message:vn(e.data.message),duration:3e3,onClick:function(){var e="@TIM#SYSTEM";t.$store.dispatch("checkoutConversation",e)}})},selectConversation:function(e){e!==this.currentConversation.conversationID&&this.$store.dispatch("checkoutConversation",e)},isJsonStr:function(e){try{return JSON.parse(e),!0}catch(t){return!1}},handleVideoMessage:function(e){var t=this,n=e.filter((function(e){return e.type===t.TIM.TYPES.MSG_CUSTOM&&t.isJsonStr(e.payload.data)}));if(0!==n.length){var i=JSON.parse(n[0].payload.data);if(i.action===Fa.VIDEO_CALL_ACTION_DIALING){if(this.isBusy)return void this.$bus.$emit("busy",i,n[0]);this.$store.commit("GENERATE_VIDEO_ROOM",i.room_id),this.selectConversation(n[0].conversationID),n[0].from!==this.userID&&this.$bus.$emit("isCalled")}i.action===Fa.VIDEO_CALL_ACTION_SPONSOR_CANCEL&&this.$bus.$emit("missCall"),i.action===Fa.VIDEO_CALL_ACTION_REJECT&&this.$bus.$emit("isRefused"),i.action===Fa.VIDEO_CALL_ACTION_SPONSOR_TIMEOUT&&this.$bus.$emit("missCall"),i.action===Fa.VIDEO_CALL_ACTION_ACCEPTED&&this.$bus.$emit("isAccept"),i.action===Fa.VIDEO_CALL_ACTION_HANGUP&&this.$bus.$emit("isHungUp"),i.action===Fa.VIDEO_CALL_ACTION_LINE_BUSY&&this.$bus.$emit("isRefused"),i.action===Fa.VIDEO_CALL_ACTION_ERROR&&this.$bus.$emit("isRefused")}},notifyMe:function(e){var t=this;"Notification"in window&&("granted"===window.Notification.permission?this.handleNotify(e):"denied"!==window.Notification.permission&&window.Notification.requestPermission().then((function(n){"granted"===n&&t.handleNotify(e)})))},handleNotify:function(e){var t=this,n=new window.Notification("有人提到了你",{icon:"https://web.sdk.qcloud.com/im/assets/images/logo.png",body:e.payload.text});n.onclick=function(){window.focus(),t.$store.dispatch("checkoutConversation",e.conversationID),n.close()}},handleQuitGroupTip:function(e){var t=this,n=e.filter((function(e){return t.currentConversation.conversationID===e.conversationID&&e.type===t.TIM.TYPES.MSG_GRP_TIP&&(e.payload.operationType===t.TIM.TYPES.GRP_TIP_MBR_QUIT||e.payload.operationType===t.TIM.TYPES.GRP_TIP_MBR_KICKED_OUT)}));n.length>0&&n.forEach((function(e){(Array.isArray(e.payload.userIDList)||e.payload.userIDList.length>0)&&t.$store.commit("deleteGroupMemberList",e.payload.userIDList)}))}}},Ya=Ba,za=(n("2482"),Object(ce["a"])(Ya,pe,me,!1,null,null,null)),Ha=za.exports,qa=(n("0fb7"),n("f529")),Ka=n.n(qa),Ja=n("3581"),Qa=n.n(Ja),Xa=gn.a.create({SDKAppID:va});window.setLogLevel=Xa.setLogLevel,Xa.setLogLevel(4),Xa.registerPlugin({"tim-upload-plugin":Qa.a});var Wa=Xa;n("386d");function Za(e){var t=e>0;if(t)if(window.parent.document.title.search(/\((.*?)\)/)>=0)if(window.parent.document.title=window.parent.document.title.replace(/\((.*?)\)/,"(".concat(e>99?"99+":e," 有新消息)")),window.parent.document.querySelector('a[title="聊天"]')&&"SPAN"==window.parent.document.querySelector('a[title="聊天"]').lastChild.nodeName)window.parent.document.querySelector('a[title="聊天"]').lastChild.textContent="".concat(e>99?"99+":e);else{var n=window.parent.document.createElement("span");n.style="position: absolute;right: -9px;top: -5px;width: 24px;height: 24px;border-radius: 50%;background-color: red;color: white;font-size: 12px;line-height: 24px;text-align: center;",n.innerText="".concat(e>99?"99+":e),window.parent.document.querySelector('a[title="聊天"]')&&window.parent.document.querySelector('a[title="聊天"]').appendChild(n)}else if(window.parent.document.title="(".concat(e," 有新消息)").concat(window.parent.document.title),window.parent.document.querySelector('a[title="聊天"]')&&"SPAN"==window.parent.document.querySelector('a[title="聊天"]').lastChild.nodeName)window.parent.document.querySelector('a[title="聊天"]').lastChild.textContent=e;else{var i=window.parent.document.createElement("span");i.style="position: absolute;right: -9px;top: -5px;width: 24px;height: 24px;border-radius: 50%;background-color: red;color: white;font-size: 12px;line-height: 24px;text-align: center;",i.innerText=e,window.parent.document.querySelector('a[title="聊天"]')&&window.parent.document.querySelector('a[title="聊天"]').appendChild(i)}else{window.parent.document.title=window.parent.document.title.replace(/\((.*?)\)/,"");var s=window.parent.document.querySelector('a[title="聊天"]')&&window.parent.document.querySelector('a[title="聊天"]').lastChild;s&&"SPAN"==s.nodeName&&window.parent.document.querySelector('a[title="聊天"]').removeChild(s)}}var ec={state:{currentConversation:{},currentMessageList:[],nextReqMessageID:"",isCompleted:!1,conversationList:[],callingInfo:{memberList:[],type:"C2C"},audioCall:!1,isShowConversationList:!1,selectedMessageList:[],relayType:1,mergerMessageList:[],mergerMessage:{},relayMessage:{},selectMessage:!1},getters:{toAccount:function(e){if(!e.currentConversation||!e.currentConversation.conversationID)return"";switch(e.currentConversation.type){case"C2C":return e.currentConversation.conversationID.replace("C2C","");case"GROUP":return e.currentConversation.conversationID.replace("GROUP","");default:return e.currentConversation.conversationID}},currentConversationType:function(e){return e.currentConversation&&e.currentConversation.type?e.currentConversation.type:""},totalUnreadCount:function(e){var t=e.conversationList.reduce((function(t,n){return cc.getters.hidden||e.currentConversation.conversationID!==n.conversationID?t+n.unreadCount:t}),0);return Za(t),t},imgUrlList:function(e){return e.currentMessageList.filter((function(e){return e.type===gn.a.TYPES.MSG_IMAGE&&!e.isRevoked})).map((function(e){return e.payload.imageInfoArray[0].url}))}},mutations:{setCallingList:function(e,t){e.callingInfo.memberList=t.memberList,e.callingInfo.type=t.type},showConversationList:function(e,t){e.isShowConversationList=t},setSelectedMessageList:function(e,t){e.selectedMessageList=t},setRelayType:function(e,t){e.relayType=t},setMergerMessage:function(e,t){e.mergerMessage=t,e.mergerMessageList=[].concat(Object(no["a"])(e.mergerMessageList),[t])},setRelayMessage:function(e,t){e.relayMessage=t},updateMergerMessage:function(e,t){e.mergerMessage=t,e.mergerMessageList.pop()},setSelectedMessage:function(e,t){e.selectMessage=t},resetSelectedMessage:function(e,t){e.selectMessage=t,Object.assign(e,{selectedMessageList:[]})},resetMergerMessage:function(e,t){e.mergerMessagePop=t,Object.assign(e,{mergerMessage:{},mergerMessageList:[]})},showAudioCall:function(e,t){e.audioCall=t},updateCurrentConversation:function(e,t){e.currentConversation=t,e.currentMessageList=[],e.nextReqMessageID="",e.isCompleted=!1},updateConversationList:function(e,t){e.conversationList=t},resetCurrentConversation:function(e){e.currentConversation={}},pushCurrentMessageList:function(e,t){if(e.currentConversation.conversationID)if(Array.isArray(t)){var n=t.filter((function(t){return t.conversationID===e.currentConversation.conversationID}));e.currentMessageList=[].concat(Object(no["a"])(e.currentMessageList),Object(no["a"])(n)),yn(e.currentMessageList)}else t.conversationID===e.currentConversation.conversationID&&(e.currentMessageList=[].concat(Object(no["a"])(e.currentMessageList),[t]),yn(e.currentMessageList))},removeMessage:function(e,t){var n=e.currentMessageList.findIndex((function(e){var n=e.ID;return n===t.ID}));n>=0&&e.currentMessageList.splice(n,1)},reset:function(e){Object.assign(e,{currentConversation:{},currentMessageList:[],nextReqMessageID:"",isCompleted:!1,conversationList:[]})}},actions:{getMessageList:function(e,t){if(e.state.isCompleted)e.commit("showMessage",{message:"已经没有更多的历史消息了哦",type:"info"});else{var n=e.state,i=n.nextReqMessageID,s=n.currentMessageList;Wa.getMessageList({conversationID:t,nextReqMessageID:i,count:15}).then((function(t){e.state.nextReqMessageID=t.data.nextReqMessageID,e.state.isCompleted=t.data.isCompleted||!t.data.nextReqMessageID,e.state.currentMessageList=[].concat(Object(no["a"])(t.data.messageList),Object(no["a"])(s)),yn(e.state.currentMessageList)}))}},checkoutConversation:function(e,t){if(e.commit("resetCurrentMemberList"),e.commit("resetSelectedMessage",!1),e.commit("resetFriendContent"),e.state.currentConversation.conversationID){var n=e.state.currentConversation.conversationID;Wa.setMessageRead({conversationID:n})}return Wa.setMessageRead({conversationID:t}),Wa.getConversationProfile(t).then((function(n){var i=n.data;return e.commit("updateCurrentConversation",i.conversation),e.dispatch("getMessageList",t),i.conversation.type===gn.a.TYPES.CONV_GROUP?e.dispatch("getGroupMemberList",i.conversation.groupProfile.groupID):Promise.resolve()}))}}},tc=ec,nc={state:{groupList:[],currentMemberList:[],createGroupModelVisible:!1},getters:{hasGroupList:function(e){return e.groupList.length>0}},mutations:{updateGroupList:function(e,t){e.groupList=t},updateCreateGroupModelVisible:function(e,t){e.createGroupModelVisible=t},updateCurrentMemberList:function(e,t){e.currentMemberList=[].concat(Object(no["a"])(e.currentMemberList),Object(no["a"])(t))},deleteGroupMemeber:function(e,t){e.currentMemberList=e.currentMemberList.filter((function(e){return e.userID!==t}))},deleteGroupMemberList:function(e,t){e.currentMemberList=e.currentMemberList.filter((function(e){return!t.includes(e.userID)}))},resetCurrentMemberList:function(e){e.currentMemberList=[]},reset:function(e){Object.assign(e,{groupList:[],currentMemberList:[],createGroupModelVisible:!1})}},actions:{updateGroupList:function(e,t){e.commit("updateGroupList",t)},getGroupMemberList:function(e,t){return Wa.getGroupMemberList({groupID:t,offset:e.state.currentMemberList.length,count:30}).then((function(t){return e.commit("updateCurrentMemberList",t.data.memberList),t}))}}},ic=nc,sc={state:{currentUserProfile:{},isLogin:!1,isSDKReady:!1,userID:0,userSig:"",sdkAppID:0},getters:{myPhone:function(e){return e.currentUserProfile.profileCustomField?e.currentUserProfile.profileCustomField.find((function(e){return"Tag_Profile_Custom_phone"==e.key})):""},myCompany:function(e){return e.currentUserProfile.profileCustomField?e.currentUserProfile.profileCustomField.find((function(e){return"Tag_Profile_Custom_InCom"==e.key})):""}},mutations:{updateCurrentUserProfile:function(e,t){e.currentUserProfile=t},toggleIsLogin:function(e,t){e.isLogin="undefined"===typeof t?!e.isLogin:t},toggleIsSDKReady:function(e,t){e.isSDKReady="undefined"===typeof t?!e.isSDKReady:t},reset:function(e){Object.assign(e,{currentUserProfile:{},isLogin:!1,isSDKReady:!1})},GET_USER_INFO:function(e,t){e.userID=t.userID,e.userSig=t.userSig,e.sdkAppID=t.sdkAppID}},actions:{logout:function(e){e.rootState.conversation.currentConversation.conversationID&&Wa.setMessageRead({conversationID:e.rootState.conversation.currentConversation.conversationID}),Wa.logout().then((function(){e.commit("toggleIsLogin"),e.commit("stopComputeCurrent"),e.commit("reset")}))}}},rc=sc,oc={state:{friendList:[],applicationList:[],unreadCount:0,createGroupModelVisible:!1,friendGroupList:[],currentMemberList:[],friendContent:{},applicationContent:{}},getters:{friendPhone:function(e){return e.friendContent.friend?e.friendContent.friend.profile.profileCustomField.find((function(e){return"Tag_Profile_Custom_phone"==e.key})):""},friendCompany:function(e){return e.friendContent.friend?e.friendContent.friend.profile.profileCustomField.find((function(e){return"Tag_Profile_Custom_InCom"==e.key})):""}},mutations:{updateFriendList:function(e,t){e.friendList=t},updateUnreadCount:function(e,t){e.unreadCount=t},updateFriendGroupList:function(e,t){e.friendGroupList=t},updateApplicationList:function(e,t){e.applicationList=t},updateFriendContent:function(e,t){e.friendContent=t},updateApplicationContent:function(e,t){e.applicationContent=t},resetApplicationContent:function(e){e.applicationContent={}},resetFriendContent:function(e){e.friendContent={}},deleteApplicationList:function(e,t){var n=t.to,i=t.applicationType;i===gn.a.TYPES.APPLICATION_TYPE_COMEIN&&(e.comeInApplicationList=e.comeInApplicationList.filter((function(e){return e.to!==n}))),i===gn.a.TYPES.APPLICATION_TYPE_SENDOUT&&(e.sendOutApplicationList=e.sendOutApplicationList.filter((function(e){return e.to!==n})))},deleteFriend:function(e,t){e.friendList=e.friendList.filter((function(e){return e.userID!==t}))},deleteFriendGroupList:function(e,t){e.friendGroupList=e.friendGroupList.filter((function(e){return!t.includes(e.groupName)}))},addFriendGroupList:function(e,t){e.friendGroupList=[].concat(Object(no["a"])(e.friendGroupList),Object(no["a"])(t))},updateFriendGroupInfo:function(e,t){e.friendGroupList=e.friendGroupList.map((function(e){return e.groupName===t.groupName?t:e}))},reset:function(e){Object.assign(e,{friendGroupList:[],friendList:[],applicationList:[],createGroupModelVisible:!1})}},actions:{setFriendContent:function(e,t){e.commit("resetCurrentConversation"),e.commit("resetApplicationContent"),e.commit("updateFriendContent",t)},setApplicationContent:function(e,t){e.commit("resetCurrentConversation"),e.commit("resetFriendContent"),e.commit("updateApplicationContent",t)}}},ac=oc;te["default"].use(ve["a"]);var cc=new ve["a"].Store({state:{current:Date.now(),intervalID:0,message:void 0},getters:{hidden:function(e){e.current;return"function"!==typeof document.hasFocus?document.hidden:!document.hasFocus()}},mutations:{startComputeCurrent:function(e){e.intervalID=setInterval((function(){e.current=Date.now()}),500)},stopComputeCurrent:function(e){clearInterval(e.intervalID),e.intervalID=0},showMessage:function(e,t){e.message&&e.message.close(),e.message=Ka()({message:t.message,type:t.type||"success",duration:t.duration||2e3,offset:40})}},modules:{conversation:tc,group:ic,friend:ac,user:rc}}),lc=n("4eb5"),uc=n.n(lc),pc=n("c9d0"),mc=n.n(pc),dc=(n("ed2c"),n("8e84"),n("ebd9"),n("fc9e")),fc=n.n(dc),hc={SDKAppID:va,tim:Wa},gc=new fc.a(hc);gc.setLogLevel(0);var vc=gc;window.tim=Wa,window.TIM=gn.a,window.TRTCCalling=fc.a,window.trtcCalling=vc,window.store=cc,te["default"].prototype.$bus=new te["default"],te["default"].prototype.tim=Wa,te["default"].prototype.TIM=gn.a,te["default"].prototype.$store=cc,te["default"].prototype.$confirm=ee.a.confirm,te["default"].prototype.trtcCalling=vc,te["default"].prototype.TRTCCalling=fc.a,te["default"].use(mc.a),te["default"].use(W.a),te["default"].use(Q.a),te["default"].use(K.a),te["default"].use(H.a),te["default"].use(Y.a),te["default"].use(V.a),te["default"].use(F.a),te["default"].use(G.a),te["default"].use(R.a),te["default"].use(S.a),te["default"].use(uc.a),te["default"].use(L.a),te["default"].use(A.a),te["default"].use(E.a),te["default"].use(T.a),te["default"].use(I.a),te["default"].use(O.a),te["default"].use(C.a),te["default"].use(y.a),te["default"].use(g.a),te["default"].use(f.a),te["default"].use(m.a),te["default"].use(u.a),te["default"].use(c.a),te["default"].use(o.a),te["default"].use(s.a),te["default"].component("avatar",ue),new te["default"]({render:function(e){return e(Ha)}}).$mount("#app")},5724:function(e,t,n){"use strict";n("ba16")},"60ed":function(e,t,n){"use strict";n("0553")},"649f":function(e,t,n){"use strict";n("424d")},7360:function(e,t,n){e.exports=n.p+"img/merger-relay.2acba573.png"},"76e5":function(e,t,n){},"777c":function(e,t,n){"use strict";n("c1f9")},"7b7d":function(e,t,n){"use strict";n("8652")},8127:function(e,t,n){"use strict";n("12d4")},"854e":function(e,t,n){},8652:function(e,t,n){},8831:function(e,t,n){},"8b2b":function(e,t,n){"use strict";n("f75f")},"8e84":function(e,t,n){},"921d":function(e,t,n){},9321:function(e,t,n){"use strict";n("0b00")},"93b1":function(e,t,n){"use strict";n("a1a6")},9403:function(e,t,n){"use strict";n("ce10d")},9457:function(e,t,n){},9908:function(e,t,n){},a1a6:function(e,t,n){},a1d8:function(e,t,n){e.exports=n.p+"img/logo.dc3be0d4.png"},a2ef:function(e,t,n){e.exports=n.p+"img/sig-relay.d5d4c610.png"},a65e:function(e,t,n){"use strict";n("e78d")},a777:function(e,t,n){},a86b:function(e,t,n){"use strict";n("854e")},a926:function(e,t,n){"use strict";n("921d")},aada:function(e,t,n){"use strict";n("f1d0")},ae1e:function(e,t,n){"use strict";n("f732")},aecb:function(e,t,n){},b144:function(e,t,n){},b363:function(e,t,n){"use strict";n("b144")},b500:function(e,t,n){"use strict";n("d07e")},b55c:function(e,t,n){},b781:function(e,t,n){},b7e7:function(e,t,n){},b90d:function(e,t,n){},b9e2:function(e,t,n){},ba16:function(e,t,n){},be3d:function(e,t,n){"use strict";n("405c")},be86:function(e,t,n){"use strict";n("2daf")},c0cf:function(e,t){e.exports="data:image/png;base64,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"},c1f9:function(e,t,n){},c342:function(e,t,n){},caea:function(e,t,n){"use strict";n("9457")},cbc6:function(e,t,n){"use strict";n("b9e2")},ce10d:function(e,t,n){},d07e:function(e,t,n){},d32b:function(e,t,n){},d696:function(e,t,n){e.exports=n.p+"img/more-icon.4c434367.png"},da18:function(e,t,n){},da66:function(e,t,n){"use strict";n("2af2")},de12:function(e,t,n){},e017:function(e,t,n){"use strict";n("76e5")},e31b:function(e,t,n){"use strict";n("1c1e")},e3ec:function(e,t,n){"use strict";n("53b9")},e434:function(e,t,n){"use strict";n("e995")},e545:function(e,t,n){"use strict";n("b7e7")},e78d:function(e,t,n){},e995:function(e,t,n){},ead3:function(e,t,n){"use strict";n("4214")},ebd9:function(e,t,n){},ec91:function(e,t,n){e.exports=n.p+"media/message.1b6a9366.mp3"},ece5:function(e,t,n){"use strict";n("b781")},ed2c:function(e,t,n){},ed6a:function(e,t,n){"use strict";n("b55c")},edbd:function(e,t){e.exports="data:image/png;base64,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"},f1d0:function(e,t,n){},f658:function(e,t,n){},f6e3:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK4AAACpCAMAAAHy0MbyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJYUExURQrBYAvBYRPDZhzGbCXIcSrJdSHHbxjFaQ7CYwzBYSnJdEzSi3bcpqLnw87z3+X47uj58Ov68uz68+n58ef579/36rzu05Djt2TYmz7OghnFai/KeIHfrcPw2OP47fz+/f////P8+Nb15K7ry1vVlBrFaw7CYlDTjqrqyPP899j15YrhsxDCZFfUksDv1vr+/C7KdyzKdq3qynLbo2HXmf7//rTszhTDZo/jtk7SjCjJc7nt0fX9+THLes3y3/3//oXgsA3CYjTMe5HjuA/CY8/z4IDfrRbEaLft0GbYnO779Pb9+cLv1x3GbNL04ub575zmv5flvEDPgzDLeaXoxIzitPD79TXMfB7GbeL47F7WlhLDZavqyfj9+03SjN326YvitEbQh3jdqO/79CLHcLHrzE/TjSPHcOT47vH79rHrzUvSivf9+vn++8zy3lXUkdf15SDHblnVk+D36ybIclrVlGfZnHjdpznNf1HTjhfEadv26I3itUfRiMfx26Pow0HPhJPkuZjlvMHv1zjNfkTQhWnZnhvFa8ry3TLLepXkurbt0Gvan4LfrknRiV/Wl9X05HHbo7/v1Z3mv8jx24jhskjRiTrNf8nx3Mvy3WLXmUfQh0XQhu3681LTj9n15ljVk2XYm6/ry+H37Or68bXsz2PYmjfMfW3aoLvu0zbMfTPLe77u1S7KeErRirDrzNr253fcpkPPhSvJdafpxr3u1N736n/frPL89o7itW/boWDXl3ndqJvmvvv+/Xveqsbx2tz26fT8+BHDZD3OgYTgr4fhsQAAAKRC35oAAADIdFJOU/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8A9ppxxwAAAAlwSFlzAAAXEQAAFxEByibzPwAABVpJREFUaEPt2zuP2koUB3BaN1dCLikwols5fVb5Cim3QaxEtNomDdJKaHWbbaBASPcTUKVBShv6NNH6e2Uefxs/5u0H7NX5NXiOzwwjY+yxPR4N422MhYqEw/KFiDbiZ3UY0V7D1ThizDMiAmIcIkIURaycxlGEQCFLRvUvlDJ8/j+MP2OhTGymxoqxCDc2ioz6/mgo5hB1C39BtBZGkEFAQIiLERKiKN2xtc0ffpSkD1MsVhzxSZxgoydLlA2QKfyLmA7S4Buiaitk5RBWQ04BYTXkFBBWQ04BYTXkFA6IqyCl5AvWNGB9DVbWYW3NGWvVZGOZsb8X8i+MAiHe5rOFeYfMbcSuliQzlA3WSGUQ0fqGPAExHWRJvxFUwzk2h6gacnKIqiEnt0VYCTm5FcJKyMlVzrB1yMl9tFzTBn5ASgFxFWRc6I+YSCjDmoZGDzisq8PaKuWQR52qaTi/BKjB2jo28mZjb7k2TkRRLGv9lCcgTUdrkiQbpbZTVk5003VYH2X3lo4SQkiAN3EokhYbBNuqDFWkN6xqoTRWKmt5d2SJZhSQESQfAyohJwRa0ECSvzka0LhHmrcZGtBYI80b6usYR1kG7ARuRO1KH63d0D8GausFdfiAykbI9fAdNS0+Id2RU2cl1HCivHrQ8bgPihpuvqOSi/RxFRd4XSwyU1bEIndKUcVbym8fYplhBeNlswfWVIJuTXh35WIH7lhjvEHhAcEuRO9/ZKOrPSKEEEIIIVey+e+f8Wy8e3V4yuxuWb4AV02QCFO/rH9CvB3FLRPlbB5P6lsmWBnuBQ3VYXUwNNPg8NTPhA+o1Vr9eKb7UUgJUnt8WDFHTgDDXTkGSQHM97ncHt6ooAGN4NtctstZZHnbo74O0rxpHsgVkObtHvV1Qq+4be2G3hCndiVqV6J2pb7afUJ9HbcpYk316Xx15smAeqiuhzxPW9TWq8xQdmW9u+53J7VQ3Dc0CJgCa98KHJLd2c5tOaQ7QzUr46yoJpeNK3ndY85QyYXPcApV3KCOA9cfTZqglp1fu+7/utT9Z9NNoFJLj2s8nuBYZSxx1dKd919OTKxixLOiNC+OnnkJBdtUKzN+ALo8gub/byy2xVq6bMRKoR3WxekjllfsJw1+fl7H+pjEfHd65ztKV90did/q8hynw+lmomEIfi6mdEKr284nx02y7GlPU+4IIYQQQgghhBBisVxuNptOp4j0YpOt60/wF/MfN9nvHzt0UGH2OfTJUT9eTdMipPmt9Hhj2K4Vr6hwTYcFOuOiu3lUYZauWzZ31S3s90hD2F3vQKF4xdBudq3/3G90wFfoc+t2grYtN75Gf1/x5QEWaGJAL7YpBSah0w3C2SZWGI0HPzzoJ0+66GZ2rDuPV+tUWkyvDGKbvGOx7vbxn9UnfG+g1cDnirbdfUE7A6Hu9om62yfqbp+ou336YN1tMTjn4oFPwm5TR/U6m+flJOCKvSr8vZQA5ZlggQa8/jn7TMTU8ZpZ20ary7SLfMpiv9J2V2klsfuE3WBHfFcnMjTal32buwsKcfgbcQ463bRSfxeZ6Rpf0a2A9xtcTLo4fKn0soH3fAp6P/o4xfWw3+amPfzhetpzuR2+olv3fMp89+56HJ1F+4kCdpQTihVnuc/HB5TLDpOB75VJE9GjZKX6cow1Bx0xWkR4A+AB5ZIU58Gejq5hnnGUaxxCMdacnlC+EZP8qHwqvwyB/ZZF0xt7RSJdF4eN6Wl7PP7asoHmFNv2J5JuyVk3Wnu8yt/fKkq32Jwlq/tbflMmet/e/ZEdncZfj0Gvvw4s35ztXpkjhBBCCCGkrdHoLzv9X1u4OdoGAAAAAElFTkSuQmCC"},f732:function(e,t,n){},f75f:function(e,t,n){},f92c:function(e,t,n){"use strict";n("b90d")},fd50:function(e,t,n){},fee6:function(e,t,n){}});