(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-af4b672c","chunk-1a0d9872"],{1749:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"c-view"},[s("div",{staticClass:"box"},[s("div",{staticClass:"box-hd"},[s("div",{staticClass:"title-wrap"},[t._v(t._s(t.$t("group.recommendGroup"))+"\n ")])]),s("div",{staticClass:"box-bd pub-scroll-box"},[s("ul",{staticClass:"list-group"},t._l(t.showHotList,function(e,i){return s("li",{key:i,staticClass:"group-item"},[s("div",{staticClass:"avatar-wrap",on:{click:function(s){return t.joinGroup(e.group_id,e.is_join)}}},[e.cover_photo?s("img",{staticClass:"user-avatar",attrs:{src:e.cover_photo+"?imageview/0/w/180",alt:""}}):s("div",{staticClass:"user-avatar",class:"avatar_bg"+t.bgColorNum(e.group_id),attrs:{"data-name":e.group_title&&e.group_title.slice(0,2).toUpperCase()}}),1==e.is_auth?s("i",{staticClass:"icon-auth"}):t._e()]),s("div",{staticClass:"info"},[s("h3",{on:{click:function(s){return t.joinGroup(e.group_id,e.is_join)}}},[t._v(t._s(e.group_title))]),s("p",[s("i",{staticClass:"icon-group"}),t._v("\n "+t._s(e.member_num)+"\n ")]),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return t.joinGroup(e.group_id,e.is_join)}}},[t._v(t._s(1==e.is_join?t.$t("group.enter"):"+ "+t.$t("group.join")))])],1)])}),0)])])])},a=[],n=(s("dc12"),s("5cf1"),s("ad09"),s("94c8")),o=s.n(n),r=s("8973"),c=s("bced");r["default"].component(o.a.name,o.a);var u={name:"hotGroup",mixins:[c["a"]]},l=u,m=(s("aa2b"),s("fc05")),p=Object(m["a"])(l,i,a,!1,null,"55788a80",null);e["default"]=p.exports},"3e04":function(t,e,s){"use strict";var i=s("469e"),a=s.n(i);a.a},"469e":function(t,e,s){},4956:function(t,e,s){"use strict";var i=s("5ed5"),a=s.n(i);a.a},"4d7a":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"hot-group"},[s("div",{staticClass:"top-search"},[t.searchShow?s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTxt,expression:"searchTxt"},{name:"focus",rawName:"v-focus"}],staticClass:"search-wrap",attrs:{type:"text"},domProps:{value:t.searchTxt},on:{input:[function(e){e.target.composing||(t.searchTxt=e.target.value)},function(e){return t.searchUser(e,t.sessionList)}],blur:t.handleBlur}}):s("div",{staticClass:"search-tips search-wrap",on:{click:function(e){t.searchShow=!0}}},[s("i",{staticClass:"el-icon-search"}),t._v(t._s(t.$t("public.searchHotGroup"))+"\n ")]),s("span",{on:{click:function(e){return t.$router.go(-1)}}},[t._v(t._s(t.$t("public.cancel")))])]),t.isSearch?t._l(t.searchList,function(t,e){return s("session-item",{key:e,staticClass:"current",attrs:{item:t}})}):t._e(),s("div",{staticClass:"hot-list"},[s("hot-group",{attrs:{searchTxt:t.searchTxt}})],1)],2)},a=[],n=s("bd31"),o=(s("dc12"),s("5cf1"),s("ad09"),s("94c8")),r=s.n(o),c=s("8973"),u=s("52c1"),l=s("8869"),m=s("57d1"),p=s("1749");c["default"].component(r.a.name,r.a);var h={name:"searchH5",mixins:[l["f"]],components:{sessionItem:m["a"],hotGroup:p["default"]},data:function(){return{searchShow:!1,searchTxt:""}},computed:Object(n["a"])({},Object(u["e"])({sessionList:function(t){return t.chat.sessionList}})),methods:{handleBlur:function(t){var e=t.target.value;e||(this.searchShow=!1)}},created:function(){}},d=h,_=(s("4956"),s("fc05")),f=Object(_["a"])(d,i,a,!1,null,"78551c0b",null);e["default"]=f.exports},"57d1":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pub-chat-item",class:{current:t.item.session_id==t.curSession,top:1==t.item.is_pin},on:{click:function(e){return t.changeSessionId(t.item)},contextmenu:function(e){return e.preventDefault(),t.onToolBtn(e)}}},[s("div",{staticClass:"avatar-wrap"},[t.item.unread>0&&1==t.item.is_mute?s("i",{staticClass:"mute mute-point"}):t.item.unread>0&&0==t.item.is_mute?s("i",{staticClass:"mute mute-num"},[t._v(t._s(t.item.unread))]):t._e(),t.item.cover_photo?s("img",{staticClass:"user-avatar",attrs:{src:t.item.cover_photo,alt:""}}):s("div",{staticClass:"user-avatar",class:"avatar_bg"+t.bgColorNum(t.item.session_id),attrs:{"data-name":t.item.name&&t.item.name.slice(0,2).toUpperCase()}}),1==t.item.is_auth?s("i",{staticClass:"icon-auth"}):t._e()]),s("div",{staticClass:"info"},[s("h3",[1==t.item.is_group?s("i",{staticClass:"icon-group"}):t._e(),s("span",[t._v(t._s(t.item.name))])]),s("p",[t.item.unread>0&&1==t.item.is_mute?s("span",[t._v("["+t._s(t.item.unread)+t._s(t.$t("public.item"))+"]")]):t._e(),t.item.last_msg?[t.item.is_group?[t._v("\n "+t._s(t.item.last_msg.nick_name)+":"+t._s(0===t.item.last_msg.msg_type?t.item.cont:-1===t.item.last_msg.msg_type?t.$t("chat.revokeMsg"):"["+t.$t("chat.msgType["+(t.item.last_msg.msg_type-1)+"]")+"]")+"\n ")]:[t._v("\n "+t._s(0===t.item.last_msg.msg_type?t.item.cont:-1===t.item.last_msg.msg_type?""+(t.userId==t.item.last_msg.from?t.$t("public.you"):t.item.last_msg.nick_name)+t.$t("chat.revokeMsg"):"["+t.$t("chat.msgType["+(t.item.last_msg.msg_type-1)+"]")+"]")+"\n ")]]:t._e()],2),s("span",{staticClass:"time"},[t._v(t._s(t.handleUpdate(t.item.update_time_int)))]),1==t.item.is_mute?s("i",{staticClass:"icon-mute"}):t._e()]),t.item.session_id?s("ul",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar ext-session",style:{left:t.toolBarLeft,top:t.toolBarTop}},[s("li",{on:{click:function(e){return e.stopPropagation(),t.changePin(t.item.session_id,t.item.is_pin)}}},[t._v(t._s(1==t.item.is_pin?""+t.$t("public.cancel")+t.$t("chat.sticky"):t.$t("chat.sticky")))]),s("li",{on:{click:function(e){return e.stopPropagation(),t.changeMute(t.item.session_id,t.item.is_mute)}}},[t._v(t._s(1==t.item.is_mute?t.$t("group.cancelDisturb"):t.$t("group.doNotDisturb")))]),s("li",{on:{click:function(e){return e.stopPropagation(),t.delSession(t.item.session_id)}}},[t._v(t._s(t.$t("chat.deleteSession")))])]):t._e()])},a=[],n=(s("b5aa"),s("4457")),o=s("bd31"),r=s("52c1"),c=s("5975"),u=s("33f8"),l={name:"msgItem",props:{item:{type:Object}},data:function(){return{toolBarLeft:0,toolBarTop:0,showToolbar:!1,meechatType:Object(u["o"])()}},computed:Object(o["a"])({},Object(r["e"])(["curSession","userId"]),{userInfo:function(){return this.$store.state.userInfo}}),methods:{changeSessionId:function(t){var e=1==t.is_group?"/group/".concat(t.session_id):"/pm/".concat(t.session_id);this.$router.push({path:e})},bgColorNum:function(t){return Object(u["l"])(t,this.userId)},hideToolbar:function(t){!1!==this.showToolbar&&(this.showToolbar=!1,document.body.removeEventListener("click",this.hideToolbar,!1),document.body.removeEventListener("contextmenu",this.hideToolbar,!1))},getPagePos:function(t){var e=t,s=0,i=0;while(!/pub-chat-item/gi.test(e.getAttribute("class")))e=e.offsetParent;while(null!=e)s+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{actualX:s,actualY:i}},onToolBtn:function(t){var e=this;if(this.showToolbar)this.hideToolbar(t);else{var s="h5"==this.meechatType?window.innerWidth:276,i=100,a=this.getPagePos(t.target),n=a.actualX,o=t.pageX,r=o-n,c=s-i-20;this.toolBarLeft="".concat(r