chunk-579c6ae2.c95e7ca5.js 81 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-579c6ae2"],{"023a":function(e,t,s){"use strict";var r=s("c156"),n=s.n(r);n.a},"0782":function(e,t,s){var r=s("471d");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},"084d":function(e,t,s){var r=s("ae63"),n=s("33f2");e.exports=function(e){if(void 0===e)return 0;var t=r(e),s=n(t);if(t!==s)throw RangeError("Wrong length!");return s}},"14e7":function(e,t,s){"use strict";var r=s("4839"),n=s("3a0f"),a=s("4725"),i=s("60c7"),o=s("c84b"),u=s("f043"),c=s("201d"),m=s("508e"),h=s("ae63"),l=s("33f2"),g=s("084d"),f=s("62af").f,d=s("694f").f,p=s("72b6"),v=s("c67d"),b="ArrayBuffer",_="DataView",w="prototype",y="Wrong length!",k="Wrong index!",I=r[b],S=r[_],T=r.Math,x=r.RangeError,A=r.Infinity,j=I,L=T.abs,M=T.pow,C=T.floor,E=T.log,O=T.LN2,$="buffer",R="byteLength",B="byteOffset",D=n?"_b":$,P=n?"_l":R,N=n?"_o":B;function U(e,t,s){var r,n,a,i=new Array(s),o=8*s-t-1,u=(1<<o)-1,c=u>>1,m=23===t?M(2,-24)-M(2,-77):0,h=0,l=e<0||0===e&&1/e<0?1:0;for(e=L(e),e!=e||e===A?(n=e!=e?1:0,r=u):(r=C(E(e)/O),e*(a=M(2,-r))<1&&(r--,a*=2),e+=r+c>=1?m/a:m*M(2,1-c),e*a>=2&&(r++,a/=2),r+c>=u?(n=0,r=u):r+c>=1?(n=(e*a-1)*M(2,t),r+=c):(n=e*M(2,c-1)*M(2,t),r=0));t>=8;i[h++]=255&n,n/=256,t-=8);for(r=r<<t|n,o+=t;o>0;i[h++]=255&r,r/=256,o-=8);return i[--h]|=128*l,i}function F(e,t,s){var r,n=8*s-t-1,a=(1<<n)-1,i=a>>1,o=n-7,u=s-1,c=e[u--],m=127&c;for(c>>=7;o>0;m=256*m+e[u],u--,o-=8);for(r=m&(1<<-o)-1,m>>=-o,o+=t;o>0;r=256*r+e[u],u--,o-=8);if(0===m)m=1-i;else{if(m===a)return r?NaN:c?-A:A;r+=M(2,t),m-=i}return(c?-1:1)*r*M(2,m-t)}function G(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function z(e){return[255&e]}function W(e){return[255&e,e>>8&255]}function V(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function H(e){return U(e,52,8)}function Y(e){return U(e,23,4)}function J(e,t,s){d(e[w],t,{get:function(){return this[s]}})}function Z(e,t,s,r){var n=+s,a=g(n);if(a+t>e[P])throw x(k);var i=e[D]._b,o=a+e[N],u=i.slice(o,o+t);return r?u:u.reverse()}function X(e,t,s,r,n,a){var i=+s,o=g(i);if(o+t>e[P])throw x(k);for(var u=e[D]._b,c=o+e[N],m=r(+n),h=0;h<t;h++)u[c+h]=m[a?h:t-h-1]}if(i.ABV){if(!c(function(){I(1)})||!c(function(){new I(-1)})||c(function(){return new I,new I(1.5),new I(NaN),I.name!=b})){I=function(e){return m(this,I),new j(g(e))};for(var q,Q=I[w]=j[w],K=f(j),ee=0;K.length>ee;)(q=K[ee++])in I||o(I,q,j[q]);a||(Q.constructor=I)}var te=new S(new I(2)),se=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(S[w],{setInt8:function(e,t){se.call(this,e,t<<24>>24)},setUint8:function(e,t){se.call(this,e,t<<24>>24)}},!0)}else I=function(e){m(this,I,b);var t=g(e);this._b=p.call(new Array(t),0),this[P]=t},S=function(e,t,s){m(this,S,_),m(e,I,_);var r=e[P],n=h(t);if(n<0||n>r)throw x("Wrong offset!");if(s=void 0===s?r-n:l(s),n+s>r)throw x(y);this[D]=e,this[N]=n,this[P]=s},n&&(J(I,R,"_l"),J(S,$,"_b"),J(S,R,"_l"),J(S,B,"_o")),u(S[w],{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(Z(this,4,e,arguments[1]))},getUint32:function(e){return G(Z(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return F(Z(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return F(Z(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,z,t)},setUint8:function(e,t){X(this,1,e,z,t)},setInt16:function(e,t){X(this,2,e,W,t,arguments[2])},setUint16:function(e,t){X(this,2,e,W,t,arguments[2])},setInt32:function(e,t){X(this,4,e,V,t,arguments[2])},setUint32:function(e,t){X(this,4,e,V,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,Y,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,H,t,arguments[2])}});v(I,b),v(S,_),o(S[w],i.VIEW,!0),t[b]=I,t[_]=S},"1c20":function(e,t,s){"use strict";var r=s("9014"),n=s.n(r);n.a},"2eb7":function(e,t,s){"use strict";var r=s("98a4"),n=s.n(r);n.a},"2f31":function(e,t,s){e.exports=s("9f30")},"2f35":function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.repealMsg?r("div",{staticClass:"msg-item-common msg-repeal-item"},[e._v("\n "+e._s(e.repealStr)+"\n")]):5==e.msg_type&&e.joinMsg?r("div",{staticClass:"msg-item-common msg-join-item"},[r("span",[e._v(e._s(e.joinMsg))])]):5==e.msg_type&&e.redpackGrapInfo?r("redPack-tip",{class:[{"show-full":e.isShowFullInfo||e.timeMsg&&e.timestamp}],attrs:{info:e.redpackGrapInfo}}):r("div",{staticClass:"msg-item-common msg-item clearfix",class:[{"show-full":e.isShowFullInfo||e.timeMsg&&e.timestamp},e.type]},[e.timeMsg&&e.timestamp?r("msg-time",{attrs:{timestamp:e.timestamp}}):e._e(),e.avatarUrl?r("img",{staticClass:"user-avatar avatar",attrs:{src:s("6a00"),originurl:e.avatarUrl,alt:""},on:{click:e.clickInfo}}):r("div",{staticClass:"avatar",class:"avatar_bg"+e.userId%9,attrs:{"data-name":e.showName.slice(0,2).toUpperCase()},on:{click:e.clickInfo}}),r("div",{staticClass:"content"},[r("div",{staticClass:"metabar"},[r("span",{staticClass:"name",on:{contextmenu:function(t){return t.preventDefault(),e.onToolBtn(t,"username")}}},[e._v(e._s(e.msgItem.ext_info&&e.msgItem.ext_info.event_type)+" "+e._s(e.showName))]),e.creator==e.userId?r("span",{staticClass:"admin"},["me"===e.type?r("i",{staticClass:"icon-creator"}):e._e(),e._v("\n "+e._s(e.$t("public.owner"))+"\n "),"you"===e.type?r("i",{staticClass:"icon-creator"}):e._e()]):e.adminList.includes(Number(e.userId))?r("span",{staticClass:"admin"},["me"===e.type?r("i",{staticClass:"el-icon-star-on"}):e._e(),e._v("\n "+e._s(e.$t("public.admin"))+"\n "),"you"===e.type?r("i",{staticClass:"el-icon-star-on"}):e._e()]):e._e(),e.isFromTg?r("i",{staticClass:"icon-tele"}):e._e()]),4==e.msg_type&&e.msgItem?r("red-packet",{attrs:{info:e.msgItem},nativeOn:{click:function(t){return e.$packetGet(e.msgItem)}}},[r("span",{staticClass:"time"},[e._v(e._s(e._f("formatTimestamp")(e.timestamp)))])]):[r("bubble-wrap",{staticClass:"bubble-wrap",attrs:{isMobile:e.isMobile,showToolbar:e.showToolbar},on:{onTouchStartToolBtn:e.onTouchStartToolBtn,onTouchEndToolBtn:e.onTouchEndToolBtn,onToolBtn:e.onToolBtn}},[r("span",{staticClass:"time"},[e._v(e._s(e._f("formatTimestamp")(e.timestamp)))]),e.isFromTg&&e.msgItem.ext_info.tg_nick?r("p",{staticClass:"tg-name"},[e._v(e._s(e.msgItem.ext_info.tg_nick)+":")]):e._e(),e.loading?r("i",{staticClass:"loading-icon"}):e._e(),e.fail?r("i",{staticClass:"error-icon",on:{click:e.reSend}}):e._e(),1!=e.msg_type||"mini"!=e.meechatType||e.isMobile?1==e.msg_type?r("div",{staticClass:"img-msg-wrap"},[r("img",{staticClass:"img-msg isLoading",style:{width:e.width,height:e.height},attrs:{src:"",originurl:e.formatUploadImg(e.content)},on:{click:function(t){return e.$showImgPreview(e.content)}}}),r("i",{staticClass:"pic-loading2",style:{background:e.contentBg}})]):2==e.msg_type||3==e.msg_type?r("video",{staticClass:"video-msg",class:{"limit-height":3==e.msg_type},attrs:{controls:"controls",preload:"meta",poster:e.msgItem.ext_info&&e.msgItem.ext_info.cover_url,src:e.content}}):r("pre",{staticClass:"text",domProps:{innerHTML:e._s(e.content)}}):r("a",{staticClass:"img-msg-wrap",attrs:{href:e.content,target:"_blank"}},[r("img",{staticClass:"img-msg",style:{width:e.width,height:e.height},attrs:{src:"",originurl:e.formatUploadImg(e.content)}}),r("i",{staticClass:"pic-loading2",style:{background:e.contentBg}})]),"username"==e.toolBtnType?[r("ul",{directives:[{name:"show",rawName:"v-show",value:e.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar ext-username",on:{touchstart:function(e){e.stopPropagation()}}},[r("li",{on:{click:function(t){return t.preventDefault(),e.handleCopy(t)}}},[e._v(e._s(e.$t("chat.copy")))])])]:[r("ul",{directives:[{name:"show",rawName:"v-show",value:e.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar username",on:{touchstart:function(e){e.stopPropagation()}}},[0==e.msg_type||4==e.msg_type?r("li",{on:{click:function(t){return t.preventDefault(),e.handleQuote(t)}}},[e._v(e._s(e.$t("chat.quote")))]):e._e(),r("li",{on:{click:function(t){return t.preventDefault(),e.handleCopy(t)}}},[e._v(e._s(e.$t("chat.copy")))]),e.isAdmin&&"you"===e.type||e.isAdmin||e.revoke?r("li",{staticClass:"split-line"}):e._e(),e.isAdmin?r("li",{on:{click:function(t){return t.preventDefault(),e.handlePingMsg(t)}}},[e._v(e._s(e.$t("chat.sticky")))]):e._e(),e.isAdmin&&"you"===e.type?r("li",{on:{click:function(t){return t.preventDefault(),e.handleBlock(t)}}},[e._v(e._s(e.block?e.$t("chat.liftaBan"):e.$t("public.ban")))]):e._e(),e.isAdmin||e.revoke?r("li",{on:{click:function(t){return t.preventDefault(),e.handleRevoke(t)}}},[e._v(e._s(e.$t("chat.revoke")))]):e._e()])]],2)]],2)],1)},n=[],a=(s("4453"),s("ee95")),i=(s("48fb"),s("2f31")),o=s.n(i),u=(s("f91a"),s("f10e"),s("96f8")),c=s.n(u),m=(s("3a23"),s("3f47")),h=(s("b06f"),s("50af")),l=s.n(h),g=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"msg-time"},[e._v(e._s(e.showTime))])},f=[],d=s("33f8"),p={name:"msgTime",props:{timestamp:{type:[String,Number],required:!0}},computed:{showTime:function(){return Object(d["i"])(this.timestamp,2,this)}}},v=p,b=(s("b72e"),s("17cc")),_=Object(b["a"])(v,g,f,!1,null,"ee843662",null),w=_.exports,y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"red-packet",class:e.info.userId==e.userId?"me":"you"},[e._t("default"),s("div",{staticClass:"top",class:{"lose-bg":e.isLoseBg,unopen:0==e.info.ext.grabbed}},[s("i",{staticClass:"red-packet-icon"}),s("div",{staticClass:"word"},[s("p",[e._v(e._s(e.info.content.title))]),1==e.info.ext.grabbed?s("p",{staticClass:"bot-text"},[e._v(e._s(e.$t("redPacket.received")))]):1==e.info.ext.redpack_status?s("p",{staticClass:"bot-text"},[e._v(e._s(e.$t("redPacket.lootAll")))]):2==e.info.ext.redpack_status?s("p",{staticClass:"bot-text"},[e._v(e._s(e.$t("redPacket.expired")))]):e._e()])]),s("div",{staticClass:"bot"},[e._v("\n "+e._s(e.info.content.tokenType||"EOS")+e._s(e.$t("chat.redpack"))+"\n ")])],2)},k=[],I={name:"redPacket",props:["info"],computed:{userId:function(){return this.$store.state.userId},isLoseBg:function(){return 0!=this.info.ext.redpack_status||1==this.info.ext.grabbed}}},S=I,T=(s("2eb7"),Object(b["a"])(S,y,k,!1,null,"a6a8ff32",null)),x=T.exports,A=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"msg-item-common tip-wrap"},[s("i",{staticClass:"redpack-icon"}),s("span",[e._v(e._s(e.info.to==e.userId?e.$t("public.you"):e.toUser.nick_name))]),e._v(e._s(e.$t("redPacket.drawed"))+"\n "),s("span",[e._v(e._s(e.info.from==e.userId?e.$t("public.you"):e.fromUser.nick_name))]),e._v(e._s(e.$t("redPacket.whos"))+"\n "),s("span",{staticClass:"text",on:{click:function(t){return e.$packetGet(e.packetGetInfo,!0)}}},[e._v(e._s(e.$t("chat.redpack")))])])},j=[],L=s("52c1"),M={name:"redPackTip",props:["info","msgItem"],data:function(){return{fromUser:{},toUser:{}}},computed:Object(m["a"])({},Object(L["e"])(["userId","group"]),Object(L["e"])({members:function(e){return e.group.members}}),{packetGetInfo:function(){var e={userId:this.info.from,content:{trxId:this.info.content.redpack_trx_id}};return e}}),created:function(){this.fromUser=this.members&&this.members[c()(this.info.from)]||{},this.toUser=this.members&&this.members[this.info.to]||{}}},C=M,E=(s("7d63"),Object(b["a"])(C,A,j,!1,null,"71355a23",null)),O=E.exports,$=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.isMobile?[s("div",{staticClass:"bubble disabled",class:{focus:e.showToolbar},on:{contextmenu:function(e){e.preventDefault()},touchstart:e.onTouchStartToolBtn,touchend:e.onTouchEndToolBtn}},[e._t("default")],2)]:[s("div",{staticClass:"bubble",class:{focus:e.showToolbar},on:{contextmenu:function(t){return t.preventDefault(),e.onToolBtn(t)}}},[e._t("default")],2)]],2)},R=[],B={name:"bubbleWrap",props:{isMobile:Boolean,showToolbar:Boolean},methods:{onToolBtn:function(e){this.$emit("onToolBtn",e)},onTouchStartToolBtn:function(e){this.$emit("onTouchStartToolBtn",e)},onTouchEndToolBtn:function(e){this.$emit("onTouchEndToolBtn",e)}}},D=B,P=Object(b["a"])(D,$,R,!1,null,"579d78e9",null),N=P.exports,U={name:"msgItem",components:{msgTime:w,redPacket:x,redPackTip:O,bubbleWrap:N},props:{msgItem:Object,isPrivate:Boolean,repealMsg:Boolean,from:[String,Number],timeMsg:Boolean,avatar:{type:String},name:{type:String},timestamp:[String,Number],hash:String,content:{type:[String,Number,Object]},userId:[String,Number],type:{type:String},msg_type:{type:[Number,String]},createTime:[Number],loading:[Boolean],fail:[Boolean],res:[File,Blob],isMobile:Boolean,isAdmin:Boolean},data:function(){return{showToolbar:!1,revoke:!1,block:!1,revokeTimeAllow:!1,width:"auto",height:"auto",longTapTimer:null,meechatType:Object(d["n"])(),toolBtnType:"",contentBg:""}},watch:{content:function(e,t){1==this.msg_type&&e!=t&&this.countPicSize()}},computed:Object(m["a"])({},Object(L["e"])({curSession:function(e){return e.curSession},myId:function(e){return e.userId},userInfo:function(e){return e.group.userInfo},blockList:function(e){return e.group.blockList},adminList:function(e){return e.group.adminList},members:function(e){return e.group.members},creator:function(e){return e.group.creator},lastMsgUid:function(e){return e.group.lastMsgUid}}),{isLogin:function(){return!!this.myId},isShowFullInfo:function(){return this.msgItem.isShowFullInfo},repealStr:function(){if(this.repealMsg){if(this.from&&this.from!=this.userId){if(this.from!=this.userId){var e=this.members[this.from],t=e?e.nick_name:this.$t("public.admin");return"".concat(t).concat(this.$t("chat.revoked")).concat(this.name).concat(this.$t("chat.aMsg"))}return"".concat(this.name).concat(this.$t("chat.revokeMsg"))}return"".concat("me"==this.type?this.$t("public.you"):this.name).concat(this.$t("chat.revokeMsg"))}return""},avatarUrl:function(){var e=this.members[this.userId]&&this.members[this.userId].cover_photo;return e||this.avatar||""},isFromTg:function(){return this.msgItem.ext_info&&this.msgItem.ext_info.is_tg},joinMsg:function(){if(5==this.msg_type){var e=this.msgItem.ext_info,t=this.members[this.userId]&&this.members[this.userId].nick_name||this.name||"",s=this.userId==this.myId?this.$t("public.you"):t;return e&&"leave_group"==e.event_type?"".concat(s," ").concat(this.$t("group.quitGroup")):e&&"join"==e.event_type?"".concat(s," ").concat(this.$t("chat.joinGroup")):""}},redpackGrapInfo:function(){if(5==this.msg_type&&(!this.msgItem.ext_info||"grab_redpack"==this.msgItem.ext_info.event_type))return this.msgItem.ext_info},showName:function(){return this.members[this.userId]&&this.members[this.userId].nick_name||this.name||""}}),beforeMount:function(){},created:function(){1==this.msg_type&&this.countPicSize(),5==this.msg_type&&Object(d["z"])("lastShowMsgUid",0)},methods:Object(m["a"])({},Object(L["d"])(["setCopyText","updateChatInputFocus","reSendChatItem","setSessionRepeal","setLastMsgUid"]),Object(L["b"])(["doRepealPersonMsg","doRepealGroupMsg","doBlockUser","doUnBlockUser","doPinMsg","doSendMsg","doSendFile"]),{clickInfo:function(){if(this.isLogin)if("h5"==this.meechatType){var e="me"===this.type?"/me":"/other/".concat(this.userId);this.$router.push(e)}else"me"===this.type?this.$showUserInfo():this.$showOtherInfo(this.userId)},countPicSize:function(){var e=/_size([0-9]+)x([0-9]+)/.exec(this.content);if(e){var t=c()(e[1]),s=c()(e[2]),r=t>400?400/t:1,n=s>250?250/s:1,a=Math.min(r,n);this.width=a*t+"px",this.height=a*s+"px"}var i=this.content.match(/_[^(size|len)].+?.(jpg|png)/gi);this.contentBg=["#",i&&i[0].replace(/_|.(jpg|png)/g,"")].join("")},formatUploadImg:function(e){return/^data:image/.test(e)?e:"".concat(e,"?imageview/0/w/400")},hideToolbar:function(e){!1!==this.showToolbar&&(this.showToolbar=!1,document.body.removeEventListener("touchstart",this.hideToolbar,!1),document.body.removeEventListener("click",this.hideToolbar,!1),document.body.removeEventListener("contextmenu",this.hideToolbar,!1))},onToolBtn:function(e,t){var s=this;this.toolBtnType=t,this.showToolbar?this.hideToolbar(e):(this.isMobile||setTimeout(function(){document.body.addEventListener("click",s.hideToolbar,!1),document.body.addEventListener("contextmenu",s.hideToolbar,!1)},0),this.showToolbar=!0,this.block=this.blockList.some(function(e){return e==s.userId}),this.revokeTimeAllow=o()()-c()(this.timestamp)<18e4,this.revoke="me"===this.type&&this.revokeTimeAllow)},onTouchStartToolBtn:function(e){var t=this;clearTimeout(this.longTapTimer),this.longTapTimer=setTimeout(function(){t.onToolBtn(e)},800)},onTouchEndToolBtn:function(e){var t=this;clearTimeout(this.longTapTimer),setTimeout(function(){document.body.addEventListener("touchstart",t.hideToolbar,!1),document.body.addEventListener("click",t.hideToolbar,!1)},0)},replaceEmoji:function(e){var t=/<img class="emoji" .+?\/>/gi;return e.replace(t,function(e){var t=e.match(/alt=.+?&*"/g),s=t&&t[0].replace(/"|alt=|/g,"");return s})},replaceLink:function(e){var t=/<a href=".+?" class="link text" target="_blank">.+?<\/a>/gi;return e.replace(t,function(e){var t=e.match(/>.+?&*<\/a>/g),s=t&&t[0].replace(/>|<\/a>|/g,"");return s})},handleQuote:function(){var e=this,t=this.name,s=this.content,r=this.replaceLink(this.replaceEmoji(s)),n="「".concat(t,":").concat(r,"」\n- - - - - - - - - - - - - - -\n");this.$emit("quoteMsg",n),this.$nextTick(function(){e.updateChatInputFocus(!0)})},handleCopy:function(){var e,t=this,s="";window.getSelection?(e=window.getSelection(),s=e.toString()):document.selection&&(e=document.selection.createRange(),s=e.text);var r=this.replaceLink(this.replaceEmoji(s||this.content));this.$copyText(r).then(function(e){t.updateChatInputFocus(!0)},function(e){console.log("Can not copy")}),this.setCopyText(r)},handleShare:function(){this.$showInvite(this.content)},handleDel:function(){this.$emit("deleteMsg",this.hash)},handlePingMsg:function(){this.doPinMsg({hash:this.hash})},handleRevoke:function(){var e=Object(a["a"])(regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.isPrivate){e.next=5;break}return e.next=3,this.doRepealPersonMsg({hash:this.hash}).then(function(e){t.$store.commit("setSessionRepeal",{me:!0,sessionId:t.curSession}),t.$store.commit("repealChatItem",{hash:t.hash,from:t.from})});case 3:e.next=7;break;case 5:return e.next=7,this.doRepealGroupMsg({hash:this.hash});case 7:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),handleBlock:function(){this.block?this.doUnBlockUser({id:this.userId}):this.doBlockUser({id:this.userId})},reSend:function(){if(0==this.msg_type||4==this.msg_type){var e={type:0,msg:this.content,createTime:this.createTime};this.reSendChatItem({createTime:this.createTime}),this.isPrivate?this.doSendPrivateMsg(e):this.doSendMsg(e)}else{var t={res:this.res,createTime:this.createTime};this.reSendChatItem({createTime:this.createTime}),this.doSendFile(t)}}}),filters:{formatTimestamp:function(e){return e?l()(1*e).format("HH:mm"):""}}},F=U,G=(s("fe83"),Object(b["a"])(F,r,n,!1,null,null,null));t["a"]=G.exports},"34d0":function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.visible?s("div",{staticClass:"chat-pinmsg",on:{click:e.scrollToView}},[s("label",[e._v(e._s(e.$t("chat.news"))+":")]),s("div",{staticClass:"msg-content"},[e._v(e._s(e._f("decryptoMsg")(e.msg)))]),s("i",{staticClass:"msg-close",on:{click:function(t){return t.stopPropagation(),e.handleClose(t)}}})]):e._e()},n=[],a=(s("7e48"),s("3050"),s("a619")),i=s.n(a),o=s("3f47"),u=s("52c1"),c=s("33f8"),m={name:"pinMsg",props:{visible:{type:Boolean,default:!1},msg:{type:String,default:""},hash:{type:String}},data:function(){return{}},computed:Object(o["a"])({},Object(u["e"])(["userId"]),Object(u["e"])({adminList:function(e){return e.group.adminList}}),{isAdmin:function(){var e=this;return this.adminList&&this.adminList.some(function(t){return t==e.userId})}}),methods:Object(o["a"])({},Object(u["b"])(["doUnpinMsg"]),{handleClose:function(e){var t=this;this.isAdmin?i.a.confirm(this.$t("chat.closePinMsg")).then(function(){t.doUnpinMsg({hash:t.hash})}).catch(function(e){console.log(e)}):this.$emit("pinMsgClose")},scrollToView:function(e){this.$emit("scrollToView")}}),mounted:function(){},filters:{decryptoMsg:c["h"]}},h=m,l=(s("023a"),s("17cc")),g=Object(l["a"])(h,r,n,!1,null,"4c150356",null);t["a"]=g.exports},3703:function(e,t,s){"use strict";s.d(t,"a",function(){return r});var r={person:[{names:["grinning"],surrogates:"😀"},{names:["grimacing"],surrogates:"😬"},{names:["grin"],surrogates:"😁"},{names:["joy"],surrogates:"😂"},{names:["smiley"],surrogates:"😃"},{names:["smile"],surrogates:"😄"},{names:["sweat_smile"],surrogates:"😅"},{names:["laughing"],surrogates:"😆"},{names:["innocent"],surrogates:"😇"},{names:["wink"],surrogates:"😉"},{names:["blush"],surrogates:"😊"},{names:["slight_smile"],surrogates:"🙂"},{names:["upside_down"],surrogates:"🙃"},{names:["relaxed"],surrogates:"☺"},{names:["yum"],surrogates:"😋"},{names:["relieved"],surrogates:"😌"},{names:["heart_eyes"],surrogates:"😍"},{names:["kissing_heart"],surrogates:"😘"},{names:["kissing"],surrogates:"😗"},{names:["kissing_smiling_eyes"],surrogates:"😙"},{names:["kissing_closed_eyes"],surrogates:"😚"},{names:["stuck_out_tongue_winking_eye"],surrogates:"😜"},{names:["stuck_out_tongue_closed_eyes"],surrogates:"😝"},{names:["stuck_out_tongue"],surrogates:"😛"},{names:["money_mouth"],surrogates:"🤑"},{names:["nerd"],surrogates:"🤓"},{names:["sunglasses"],surrogates:"😎"},{names:["hugging"],surrogates:"🤗"},{names:["smirk"],surrogates:"😏"},{names:["no_mouth"],surrogates:"😶"},{names:["neutral_face"],surrogates:"😐"},{names:["expressionless"],surrogates:"😑"},{names:["unamused"],surrogates:"😒"},{names:["rolling_eyes"],surrogates:"🙄"},{names:["thinking"],surrogates:"🤔"},{names:["flushed"],surrogates:"😳"},{names:["disappointed"],surrogates:"😞"},{names:["worried"],surrogates:"😟"},{names:["angry"],surrogates:"😠"},{names:["rage"],surrogates:"😡"},{names:["pensive"],surrogates:"😔"},{names:["confused"],surrogates:"😕"},{names:["slight_frown"],surrogates:"🙁"},{names:["frowning2"],surrogates:"☹"},{names:["persevere"],surrogates:"😣"},{names:["confounded"],surrogates:"😖"},{names:["tired_face"],surrogates:"😫"},{names:["weary"],surrogates:"😩"},{names:["triumph"],surrogates:"😤"},{names:["open_mouth"],surrogates:"😮"},{names:["scream"],surrogates:"😱"},{names:["fearful"],surrogates:"😨"},{names:["cold_sweat"],surrogates:"😰"},{names:["hushed"],surrogates:"😯"},{names:["frowning"],surrogates:"😦"},{names:["anguished"],surrogates:"😧"},{names:["cry"],surrogates:"😢"},{names:["disappointed_relieved"],surrogates:"😥"},{names:["sleepy"],surrogates:"😪"},{names:["sweat"],surrogates:"😓"},{names:["sob"],surrogates:"😭"},{names:["dizzy_face"],surrogates:"😵"},{names:["astonished"],surrogates:"😲"},{names:["zipper_mouth"],surrogates:"🤐"},{names:["mask"],surrogates:"😷"},{names:["thermometer_face"],surrogates:"🤒"},{names:["head_bandage"],surrogates:"🤕"},{names:["sleeping"],surrogates:"😴"},{names:["rofl"],surrogates:"🤣"},{names:["drool"],surrogates:"🤤"},{names:["liar"],surrogates:"🤥"},{names:["sneeze"],surrogates:"🤧"},{names:["zzz"],surrogates:"💤"},{names:["poop"],surrogates:"💩"},{names:["call_me"],surrogates:"🤙",hasDiversity:!0},{names:["back_of_hand"],surrogates:"🤚",hasDiversity:!0},{names:["left_fist"],surrogates:"🤛",hasDiversity:!0},{names:["right_fist"],surrogates:"🤜",hasDiversity:!0},{names:["handshake"],surrogates:"🤝"},{names:["fingers_crossed"],surrogates:"🤞",hasDiversity:!0},{names:["raised_hands"],surrogates:"🙌",hasDiversity:!0},{names:["clap"],surrogates:"👏",hasDiversity:!0},{names:["wave"],surrogates:"👋",hasDiversity:!0},{names:["thumbsup"],surrogates:"👍",hasDiversity:!0},{names:["thumbsdown"],surrogates:"👎",hasDiversity:!0},{names:["punch"],surrogates:"👊",hasDiversity:!0},{names:["fist"],surrogates:"✊",hasDiversity:!0},{names:["v"],surrogates:"✌",hasDiversity:!0},{names:["ok_hand"],surrogates:"👌",hasDiversity:!0},{names:["raised_hand"],surrogates:"✋",hasDiversity:!0},{names:["open_hands"],surrogates:"👐",hasDiversity:!0},{names:["muscle"],surrogates:"💪",hasDiversity:!0},{names:["pray"],surrogates:"🙏",hasDiversity:!0},{names:["point_up"],surrogates:"☝",hasDiversity:!0},{names:["middle_finger"],surrogates:"🖕",hasDiversity:!0},{names:["hand_splayed"],surrogates:"🖐",hasDiversity:!0},{names:["metal"],surrogates:"🤘",hasDiversity:!0},{names:["vulcan"],surrogates:"🖖",hasDiversity:!0},{names:["lips"],surrogates:"👄"},{names:["bow"],surrogates:"🙇",hasDiversity:!0},{names:["massage"],surrogates:"💆",hasDiversity:!0},{names:["necktie"],surrogates:"👔"},{names:["dress"],surrogates:"👗"},{names:["bikini"],surrogates:"👙"},{names:["kimono"],surrogates:"👘"},{names:["prince"],surrogates:"🤴",hasDiversity:!0},{names:["man_in_tuxedo"],surrogates:"🤵",hasDiversity:!0},{names:["mrs_claus"],surrogates:"🤶",hasDiversity:!0},{names:["face_palm"],surrogates:"🤦",hasDiversity:!0},{names:["shrug"],surrogates:"🤷",hasDiversity:!0}],nature:[{names:["rose"],surrogates:"🌹"},{names:["wilted_rose"],surrogates:"🥀"},{names:["tulip"],surrogates:"🌷"},{names:["hibiscus"],surrogates:"🌺"},{names:["sunflower"],surrogates:"🌻"},{names:["blossom"],surrogates:"🌼"},{names:["cherry_blossom"],surrogates:"🌸"},{names:["bouquet"],surrogates:"💐"},{names:["four_leaf_clover"],surrogates:"🍀"},{names:["bamboo"],surrogates:"🎍"},{names:["tanabata_tree"],surrogates:"🎋"},{names:["leaves"],surrogates:"🍃"},{names:["fallen_leaf"],surrogates:"🍂"},{names:["maple_leaf"],surrogates:"🍁"},{names:["ear_of_rice"],surrogates:"🌾"},{names:["mushroom"],surrogates:"🍄"},{names:["chestnut"],surrogates:"🌰"},{names:["jack_o_lantern"],surrogates:"🎃"},{names:["dog"],surrogates:"🐶"},{names:["cat"],surrogates:"🐱"},{names:["mouse"],surrogates:"🐭"},{names:["hamster"],surrogates:"🐹"},{names:["rabbit"],surrogates:"🐰"},{names:["bear"],surrogates:"🐻"},{names:["panda_face"],surrogates:"🐼"},{names:["koala"],surrogates:"🐨"},{names:["tiger"],surrogates:"🐯"},{names:["lion_face"],surrogates:"🦁"},{names:["cow"],surrogates:"🐮"},{names:["pig"],surrogates:"🐷"},{names:["pig_nose"],surrogates:"🐽"},{names:["frog"],surrogates:"🐸"},{names:["octopus"],surrogates:"🐙"},{names:["monkey_face"],surrogates:"🐵"},{names:["see_no_evil"],surrogates:"🙈"},{names:["hear_no_evil"],surrogates:"🙉"},{names:["speak_no_evil"],surrogates:"🙊"},{names:["monkey"],surrogates:"🐒"},{names:["chicken"],surrogates:"🐔"},{names:["penguin"],surrogates:"🐧"},{names:["bird"],surrogates:"🐦"},{names:["baby_chick"],surrogates:"🐤"},{names:["wolf"],surrogates:"🐺"},{names:["boar"],surrogates:"🐗"},{names:["horse"],surrogates:"🐴"},{names:["unicorn"],surrogates:"🦄"},{names:["bee"],surrogates:"🐝"},{names:["bug"],surrogates:"🐛"},{names:["snail"],surrogates:"🐌"},{names:["beetle"],surrogates:"🐞"},{names:["ant"],surrogates:"🐜"},{names:["spider"],surrogates:"🕷"},{names:["scorpion"],surrogates:"🦂"},{names:["crab"],surrogates:"🦀"},{names:["snake"],surrogates:"🐍"},{names:["turtle"],surrogates:"🐢"},{names:["tropical_fish"],surrogates:"🐠"},{names:["fish"],surrogates:"🐟"},{names:["blowfish"],surrogates:"🐡"},{names:["dolphin"],surrogates:"🐬"},{names:["whale"],surrogates:"🐳"},{names:["whale2"],surrogates:"🐋"},{names:["crocodile"],surrogates:"🐊"},{names:["leopard"],surrogates:"🐆"},{names:["tiger2"],surrogates:"🐅"},{names:["water_buffalo"],surrogates:"🐃"},{names:["ox"],surrogates:"🐂"},{names:["cow2"],surrogates:"🐄"},{names:["dromedary_camel"],surrogates:"🐪"},{names:["camel"],surrogates:"🐫"},{names:["elephant"],surrogates:"🐘"},{names:["goat"],surrogates:"🐐"},{names:["ram"],surrogates:"🐏"},{names:["sheep"],surrogates:"🐑"},{names:["racehorse"],surrogates:"🐎"},{names:["pig2"],surrogates:"🐖"},{names:["rat"],surrogates:"🐀"},{names:["mouse2"],surrogates:"🐁"},{names:["rooster"],surrogates:"🐓"},{names:["turkey"],surrogates:"🦃"},{names:["dove"],surrogates:"🕊"},{names:["dog2"],surrogates:"🐕"},{names:["poodle"],surrogates:"🐩"},{names:["cat2"],surrogates:"🐈"},{names:["rabbit2"],surrogates:"🐇"},{names:["chipmunk"],surrogates:"🐿"},{names:["feet"],surrogates:"🐾"},{names:["dragon"],surrogates:"🐉"},{names:["dragon_face"],surrogates:"🐲"},{names:["shell"],surrogates:"🐚"},{names:["eagle"],surrogates:"🦅"},{names:["duck"],surrogates:"🦆"},{names:["bat"],surrogates:"🦇"},{names:["shark"],surrogates:"🦈"},{names:["owl"],surrogates:"🦉"},{names:["fox"],surrogates:"🦊"},{names:["butterfly"],surrogates:"🦋"},{names:["deer"],surrogates:"🦌"},{names:["gorilla"],surrogates:"🦍"},{names:["lizard"],surrogates:"🦎"},{names:["rhino"],surrogates:"🦏"},{names:["shrimp"],surrogates:"🦐"},{names:["squid"],surrogates:"🦑"}],food:[{names:["green_apple"],surrogates:"🍏"},{names:["apple"],surrogates:"🍎"},{names:["pear"],surrogates:"🍐"},{names:["tangerine"],surrogates:"🍊"},{names:["lemon"],surrogates:"🍋"},{names:["banana"],surrogates:"🍌"},{names:["watermelon"],surrogates:"🍉"},{names:["grapes"],surrogates:"🍇"},{names:["strawberry"],surrogates:"🍓"},{names:["melon"],surrogates:"🍈"},{names:["cherries"],surrogates:"🍒"},{names:["peach"],surrogates:"🍑"},{names:["pineapple"],surrogates:"🍍"},{names:["tomato"],surrogates:"🍅"},{names:["eggplant"],surrogates:"🍆"},{names:["hot_pepper"],surrogates:"🌶"},{names:["corn"],surrogates:"🌽"},{names:["sweet_potato"],surrogates:"🍠"},{names:["honey_pot"],surrogates:"🍯"},{names:["bread"],surrogates:"🍞"},{names:["cheese"],surrogates:"🧀"},{names:["poultry_leg"],surrogates:"🍗"},{names:["meat_on_bone"],surrogates:"🍖"},{names:["fried_shrimp"],surrogates:"🍤"},{names:["cooking"],surrogates:"🍳"},{names:["hamburger"],surrogates:"🍔"},{names:["fries"],surrogates:"🍟"},{names:["hotdog"],surrogates:"🌭"},{names:["pizza"],surrogates:"🍕"},{names:["spaghetti"],surrogates:"🍝"},{names:["taco"],surrogates:"🌮"},{names:["burrito"],surrogates:"🌯"},{names:["ramen"],surrogates:"🍜"},{names:["stew"],surrogates:"🍲"},{names:["fish_cake"],surrogates:"🍥"},{names:["sushi"],surrogates:"🍣"},{names:["bento"],surrogates:"🍱"},{names:["curry"],surrogates:"🍛"},{names:["rice_ball"],surrogates:"🍙"},{names:["rice"],surrogates:"🍚"},{names:["rice_cracker"],surrogates:"🍘"},{names:["oden"],surrogates:"🍢"},{names:["dango"],surrogates:"🍡"},{names:["shaved_ice"],surrogates:"🍧"},{names:["ice_cream"],surrogates:"🍨"},{names:["icecream"],surrogates:"🍦"},{names:["cake"],surrogates:"🍰"},{names:["birthday"],surrogates:"🎂"},{names:["custard"],surrogates:"🍮"},{names:["candy"],surrogates:"🍬"},{names:["lollipop"],surrogates:"🍭"},{names:["chocolate_bar"],surrogates:"🍫"},{names:["popcorn"],surrogates:"🍿"},{names:["doughnut"],surrogates:"🍩"},{names:["cookie"],surrogates:"🍪"},{names:["beer"],surrogates:"🍺"},{names:["beers"],surrogates:"🍻"},{names:["wine_glass"],surrogates:"🍷"},{names:["cocktail"],surrogates:"🍸"},{names:["tropical_drink"],surrogates:"🍹"},{names:["champagne"],surrogates:"🍾"},{names:["sake"],surrogates:"🍶"},{names:["tea"],surrogates:"🍵"},{names:["coffee"],surrogates:"☕"},{names:["baby_bottle"],surrogates:"🍼"},{names:["fork_and_knife"],surrogates:"🍴"},{names:["fork_knife_plate"],surrogates:"🍽"},{names:["croissant"],surrogates:"🥐"},{names:["avocado"],surrogates:"🥑"},{names:["cucumber"],surrogates:"🥒"},{names:["bacon"],surrogates:"🥓"},{names:["potato"],surrogates:"🥔"},{names:["carrot"],surrogates:"🥕"},{names:["french_bread"],surrogates:"🥖"},{names:["salad"],surrogates:"🥗"},{names:["shallow_pan_of_food"],surrogates:"🥘"},{names:["stuffed_flatbread"],surrogates:"🥙"},{names:["champagne_glass"],surrogates:"🥂"},{names:["tumbler_glass"],surrogates:"🥃"},{names:["spoon"],surrogates:"🥄"},{names:["egg"],surrogates:"🥚"},{names:["milk"],surrogates:"🥛"},{names:["peanuts"],surrogates:"🥜"},{names:["kiwi"],surrogates:"🥝"},{names:["pancakes"],surrogates:"🥞"}],activity:[{names:["soccer"],surrogates:"⚽"},{names:["basketball"],surrogates:"🏀"},{names:["football"],surrogates:"🏈"},{names:["baseball"],surrogates:"⚾"},{names:["tennis"],surrogates:"🎾"},{names:["volleyball"],surrogates:"🏐"},{names:["rugby_football"],surrogates:"🏉"},{names:["8ball"],surrogates:"🎱"},{names:["golf"],surrogates:"⛳"},{names:["golfer"],surrogates:"🏌",hasDiversity:!0},{names:["ping_pong"],surrogates:"🏓"},{names:["badminton"],surrogates:"🏸"},{names:["hockey"],surrogates:"🏒"},{names:["field_hockey"],surrogates:"🏑"},{names:["cricket"],surrogates:"🏏"},{names:["ski"],surrogates:"🎿"},{names:["skier"],surrogates:"⛷",hasDiversity:!0},{names:["snowboarder"],surrogates:"🏂",hasDiversity:!0},{names:["ice_skate"],surrogates:"⛸"},{names:["bow_and_arrow"],surrogates:"🏹"},{names:["fishing_pole_and_fish"],surrogates:"🎣"},{names:["rowboat"],surrogates:"🚣",hasDiversity:!0},{names:["swimmer"],surrogates:"🏊",hasDiversity:!0},{names:["surfer"],surrogates:"🏄",hasDiversity:!0},{names:["bath"],surrogates:"🛀",hasDiversity:!0},{names:["basketball_player"],surrogates:"⛹",hasDiversity:!0},{names:["lifter"],surrogates:"🏋",hasDiversity:!0},{names:["bicyclist"],surrogates:"🚴",hasDiversity:!0},{names:["mountain_bicyclist"],surrogates:"🚵",hasDiversity:!0},{names:["horse_racing"],surrogates:"🏇",hasDiversity:!0},{names:["levitate"],surrogates:"🕴",hasDiversity:!0},{names:["trophy"],surrogates:"🏆"},{names:["running_shirt_with_sash"],surrogates:"🎽"},{names:["medal"],surrogates:"🏅"},{names:["military_medal"],surrogates:"🎖"},{names:["reminder_ribbon"],surrogates:"🎗"},{names:["rosette"],surrogates:"🏵"},{names:["ticket"],surrogates:"🎫"},{names:["tickets"],surrogates:"🎟"},{names:["performing_arts"],surrogates:"🎭"},{names:["art"],surrogates:"🎨"},{names:["circus_tent"],surrogates:"🎪"},{names:["microphone"],surrogates:"🎤"},{names:["headphones"],surrogates:"🎧"},{names:["musical_score"],surrogates:"🎼"},{names:["musical_keyboard"],surrogates:"🎹"},{names:["saxophone"],surrogates:"🎷"},{names:["trumpet"],surrogates:"🎺"},{names:["guitar"],surrogates:"🎸"},{names:["violin"],surrogates:"🎻"},{names:["clapper"],surrogates:"🎬"},{names:["video_game"],surrogates:"🎮"},{names:["space_invader"],surrogates:"👾"},{names:["dart"],surrogates:"🎯"},{names:["game_die"],surrogates:"🎲"},{names:["slot_machine"],surrogates:"🎰"},{names:["bowling"],surrogates:"🎳"},{names:["cartwheel"],surrogates:"🤸",hasDiversity:!0},{names:["juggling"],surrogates:"🤹",hasDiversity:!0},{names:["wrestlers"],surrogates:"🤼"},{names:["boxing_glove"],surrogates:"🥊"},{names:["martial_arts_uniform"],surrogates:"🥋"},{names:["water_polo"],surrogates:"🤽",hasDiversity:!0},{names:["handball"],surrogates:"🤾",hasDiversity:!0},{names:["goal"],surrogates:"🥅"},{names:["fencer"],surrogates:"🤺"},{names:["first_place"],surrogates:"🥇"},{names:["second_place"],surrogates:"🥈"},{names:["third_place"],surrogates:"🥉"},{names:["drum"],surrogates:"🥁"}],trip:[{names:["red_car"],surrogates:"🚗"},{names:["taxi"],surrogates:"🚕"},{names:["blue_car"],surrogates:"🚙"},{names:["bus"],surrogates:"🚌"},{names:["trolleybus"],surrogates:"🚎"},{names:["race_car"],surrogates:"🏎"},{names:["police_car"],surrogates:"🚓"},{names:["ambulance"],surrogates:"🚑"},{names:["fire_engine"],surrogates:"🚒"},{names:["minibus"],surrogates:"🚐"},{names:["truck"],surrogates:"🚚"},{names:["articulated_lorry"],surrogates:"🚛"},{names:["tractor"],surrogates:"🚜"},{names:["motorcycle"],surrogates:"🏍"},{names:["bike"],surrogates:"🚲"},{names:["rotating_light"],surrogates:"🚨"},{names:["oncoming_police_car"],surrogates:"🚔"},{names:["oncoming_bus"],surrogates:"🚍"},{names:["oncoming_automobile"],surrogates:"🚘"},{names:["oncoming_taxi"],surrogates:"🚖"},{names:["aerial_tramway"],surrogates:"🚡"},{names:["mountain_cableway"],surrogates:"🚠"},{names:["suspension_railway"],surrogates:"🚟"},{names:["railway_car"],surrogates:"🚃"},{names:["train"],surrogates:"🚋"},{names:["monorail"],surrogates:"🚝"},{names:["bullettrain_side"],surrogates:"🚄"},{names:["bullettrain_front"],surrogates:"🚅"},{names:["light_rail"],surrogates:"🚈"},{names:["mountain_railway"],surrogates:"🚞"},{names:["steam_locomotive"],surrogates:"🚂"},{names:["train2"],surrogates:"🚆"},{names:["metro"],surrogates:"🚇"},{names:["tram"],surrogates:"🚊"},{names:["station"],surrogates:"🚉"},{names:["helicopter"],surrogates:"🚁"},{names:["airplane_small"],surrogates:"🛩"},{names:["airplane"],surrogates:"✈"},{names:["sailboat"],surrogates:"⛵"},{names:["motorboat"],surrogates:"🛥"},{names:["speedboat"],surrogates:"🚤"},{names:["ferry"],surrogates:"⛴"},{names:["cruise_ship"],surrogates:"🛳"},{names:["rocket"],surrogates:"🚀"},{names:["satellite_orbital"],surrogates:"🛰"},{names:["scooter"],surrogates:"🛴"},{names:["motorbike"],surrogates:"🛵"},{names:["canoe"],surrogates:"🛶"}],symbol:[{names:["100"],surrogates:"💯"},{names:["1234"],surrogates:"🔢"},{names:["heart"],surrogates:"❤"},{names:["broken_heart"],surrogates:"💔"},{names:["two_hearts"],surrogates:"💕"},{names:["revolving_hearts"],surrogates:"💞"},{names:["heartbeat"],surrogates:"💓"},{names:["heartpulse"],surrogates:"💗"},{names:["sparkling_heart"],surrogates:"💖"},{names:["cupid"],surrogates:"💘"},{names:["gift_heart"],surrogates:"💝"},{names:["heart_decoration"],surrogates:"💟"},{names:["om_symbol"],surrogates:"🕉"},{names:["six_pointed_star"],surrogates:"🔯"},{names:["menorah"],surrogates:"🕎"},{names:["place_of_worship"],surrogates:"🛐"},{names:["ophiuchus"],surrogates:"⛎"},{names:["sos"],surrogates:"🆘"},{names:["no_entry"],surrogates:"⛔"},{names:["name_badge"],surrogates:"📛"},{names:["no_entry_sign"],surrogates:"🚫"},{names:["x"],surrogates:"❌"},{names:["o"],surrogates:"⭕"},{names:["anger"],surrogates:"💢"},{names:["no_pedestrians"],surrogates:"🚷"},{names:["do_not_litter"],surrogates:"🚯"},{names:["no_bicycles"],surrogates:"🚳"},{names:["non_potable_water"],surrogates:"🚱"},{names:["underage"],surrogates:"🔞"},{names:["no_mobile_phones"],surrogates:"📵"},{names:["low_brightness"],surrogates:"🔅"},{names:["high_brightness"],surrogates:"🔆"},{names:["trident"],surrogates:"🔱"},{names:["fleur_de_lis"],surrogates:"⚜"},{names:["part_alternation_mark"],surrogates:"〽"},{names:["warning"],surrogates:"⚠"},{names:["children_crossing"],surrogates:"🚸"},{names:["beginner"],surrogates:"🔰"},{names:["recycle"],surrogates:"♻"},{names:["chart"],surrogates:"💹"},{names:["sparkle"],surrogates:"❇"},{names:["eight_spoked_asterisk"],surrogates:"✳"},{names:["negative_squared_cross_mark"],surrogates:"❎"},{names:["white_check_mark"],surrogates:"✅"},{names:["globe_with_meridians"],surrogates:"🌐"},{names:["atm"],surrogates:"🏧"},{names:["no_smoking"],surrogates:"🚭"},{names:["wc"],surrogates:"🚾"},{names:["mens"],surrogates:"🚹"},{names:["womens"],surrogates:"🚺"},{names:["baby_symbol"],surrogates:"🚼"},{names:["restroom"],surrogates:"🚻"},{names:["put_litter_in_its_place"],surrogates:"🚮"},{names:["heavy_dollar_sign"],surrogates:"💲"},{names:["black_joker"],surrogates:"🃏"},{names:["spades"],surrogates:"♠"},{names:["clubs"],surrogates:"♣"},{names:["hearts"],surrogates:"♥"},{names:["diamonds"],surrogates:"♦"},{names:["black_heart"],surrogates:"🖤"},{names:["stop_sign"],surrogates:"🛑"}]}},3868:function(e,t,s){"use strict";s.d(t,"a",function(){return b}),s.d(t,"b",function(){return _}),s.d(t,"c",function(){return w});var r=s("3f46"),n=s.n(r),a=s("2f31"),i=s.n(a),o=(s("f91a"),s("f10e"),s("0da4"),s("3050"),s("03a8")),u=s.n(o),c=s("cc80"),m=s.n(c),h=(s("612f"),s("ea65"),s("b89d")),l=(s("4453"),s("ee95")),g=(s("a1d1"),s("3f47")),f=s("52c1"),d=s("33f8"),p=s("3703"),v=s("b16d"),b={watch:{isRefreshImg:function(e){var t=this;e&&(this.$nextTick(function(){Object(d["u"])({wrap:t.$refs.scrollWrap,imageArr:t.chatImageArrSel,derection:"up"})}),this.setIsRefreshImg(!1))}},computed:Object(g["a"])({},Object(f["e"])({isRefreshImg:function(e){return e.group.isRefreshImg}})),methods:Object(g["a"])({},Object(f["d"])(["addPinChatItem","setIsRefreshImg","deleteChatItem","removeAtListLast"]),{pinMsgClose:function(){this.pinMsg.visible=!1},deleteMsg:function(e){this.deleteChatItem(e)},scrollToMsg:function(e){var t=this.atList[e].hash,s=this.group.chatList.findIndex(function(e){return e.hash===t});if(s>=0){var r=this.$refs.msgWrap.getElementsByClassName("msg-item-common").item(s);Object(d["y"])(this.$refs.scrollWrap,r.offsetTop-(this.pinMsg?40:10),r)}this.removeAtListLast()},scrollToView:function(){var e=this;if(this.pinMsg){var t=this.pinMsg.hash,s=this.group.chatList.findIndex(function(e){return e.hash===t&&0==e.msg_type});s<0&&(this.addPinChatItem(this.pinMsg),s=0),this.$nextTick(function(){var t=e.$refs.msgWrap.getElementsByClassName("msg-item-common")[s],r=s>=0?t.offsetTop:0,n=function(){Object(d["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"})};Object(d["y"])(e.$refs.scrollWrap,r,t,n.bind(e)),e.isScrollToView=!0,setTimeout(function(){e.isScrollToView=!1},2e3)})}},joinGroup:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.isLoadingRoom=!0,e.next=3,this.$store.dispatch("joinGroup");case 3:this.isLoadingRoom=!1;case 4:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()})},_={mixins:[b],watch:{$route:function(e){this.bdHiden=!0,this.groupSet=!1,this.lockMore=!1,this.lockEnd=!1,this.enableScroll=!1,this.initRoom()},chatList:function(e){var t=e[e.length-1];(t&&4==t.msg_type||this.isBottom)&&this.$nextTick(this.resizeToBottom)},isJoinGroup:function(e){1==e&&setTimeout(this.resizeToBottom.bind(this),100)}},data:function(){return{isLoadingRoom:!0,groupSet:!1,lockMore:!1,lockEnd:!1,enableScroll:!1,isBottom:!0,scrollHeight:100,isScrollToView:!1,isShowGroudMgr:!1,chatImageArrSel:null,meechatType:Object(d["n"])()}},computed:Object(g["a"])({},Object(f["e"])(["curSession","group","chat","userId","userInfo"]),Object(f["e"])({creator:function(e){return e.group.creator},isJoin:function(e){return e.group.isJoin},pinMsg:function(e){return e.group.pinMsg},atList:function(e){return e.group.atList},unreadNums:function(e){return e.group.unreadNums},chatList:function(e){return e.group.chatList},members:function(e){return e.group.members},sessionId:function(e){return e.curSession},sessionInfo:function(e){return e.group.sessionInfo}}),{isExist:function(){var e=this,t=this.chat.sessionList;return!t||!t.length||t.some(function(t){return t.session_id==e.sessionId})},isAdmin:function(){var e=this;return this.group.adminList&&this.group.adminList.some(function(t){return t==e.userId})||this.group.creator==this.userId},isPrivate:function(){return this.$store.getters.isPrivate},isCreator:function(){return this.userId==this.creator},isJoinGroup:function(){return this.group&&this.group.groupId?this.isJoin?1:0:1},linkToCreator:function(){var e=this.group,t=e.creator,s=e.userId,r=t>s?"".concat(s,"-").concat(t):"".concat(t,"-").concat(s);return"".concat(location.origin,"/#/pm/").concat(r)}}),mounted:function(){this.initRoom(),document.getElementById("app").addEventListener("contextmenu",function(e){return e.preventDefault()}),this.chatImageArrSel=this.$refs.scrollWrap.getElementsByTagName("img")},methods:Object(g["a"])({},Object(f["d"])(["initGroup","setUserId","setToken","resetUnreadNums","addChatItem","initState","clearAtList","clearHash","setSessionItemUnread","clearChatList","changeSessionId","updateMembers"]),Object(f["b"])(["setAccount","getGroupInfo","getUserInfo","getNewMsgFromDb","getNewMsg","getHistoryMsg","doSendMsg","getPrivateNewMsgFromDb","getPrivateNewMsg","getPrivateHistoryMsg","doSendPrivateMsg"]),{initRoom:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.userInfo){e.next=3;break}return e.next=3,this.getUserInfo();case 3:if(this.userInfo){e.next=5;break}return e.abrupt("return");case 5:if(this.changeSessionId(this.$route.params.id),this.clearHash(),this.clearChatList(),this.initState(),this.isExist&&this.$store.commit("setSessionItemUnread",{session_id:this.curSession,unread:0,curSession:this.curSession}),!this.isPrivate){e.next=15;break}return e.next=13,this.initPersonChat();case 13:e.next=17;break;case 15:return e.next=17,this.initGroupChat();case 17:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),initPersonChat:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t,s,r,n,a,i,o=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getPrivateNewMsgFromDb();case 2:return t=e.sent,t||this.showLoadingRoom(!0),e.next=6,this.getPrivateNewMsg();case 6:return s=e.sent,this.showLoadingRoom(!1),this.$nextTick(function(){o.resizeToBottom(),o.bdHiden=!1}),this.members[this.userId]||this.updateMembers(Object(h["a"])({},this.userId,this.userInfo)),r=this.curSession.split("-"),n=r[0]!=this.userId?r[0]:r[1],a=s.data.userMap[n],a&&(this.$store.commit("updateGroup",{key:"privateName",data:a.nick_name}),this.isExist||(i={cover_photo:a.cover_photo,is_group:"0",name:a.nick_name,session_id:this.sessionId},this.$store.commit("addSessionItem",i))),e.abrupt("return",s);case 15:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),initGroupChat:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t,s=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.initGroup({userId:this.userId,groupId:this.sessionId,useCache:!1}),this.isShowGroudMgr=!1,this.getGroupInfo(),e.next=5,this.getNewMsgFromDb();case 5:return t=e.sent,t||this.showLoadingRoom(!0),e.next=9,this.getNewMsg();case 9:this.showLoadingRoom(!1),this.$nextTick(function(){s.resizeToBottom(),s.bdHiden=!1,Object(d["u"])({wrap:s.$refs.scrollWrap,imageArr:s.chatImageArrSel,derection:"up"})}),setTimeout(function(){if(!s.isExist&&s.group){var e={cover_photo:s.group.coverPhoto,is_group:"1",name:s.group.groupName,session_id:s.sessionId};s.$store.commit("addSessionItem",e)}},1e3);case 12:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),initScrollEvent:function(){},handleScroll:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var s,r,n,a,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.group.chatList.length){e.next=2;break}return e.abrupt("return");case 2:if(this.enableScroll=!0,s=this.$refs.msgWrap.offsetHeight-16,r=t.target.scrollTop,0!=r||this.lockMore){e.next=18;break}if(null===this.group.endHash){e.next=18;break}if(this.lockMore=!0,!this.isPrivate){e.next=14;break}return e.next=11,this.getPrivateHistoryMsg();case 11:n=e.sent,e.next=17;break;case 14:return e.next=16,this.getHistoryMsg();case 16:n=e.sent;case 17:"end"===n?this.lockEnd=!0:(a=s-r,this.$nextTick(function(){t.target.scrollTop=i.$refs.msgWrap.offsetHeight-a,setTimeout(function(){i.lockMore=!1},800)}));case 18:r+t.target.offsetHeight>s?(this.isBottom=!0,this.group.unreadNums&&this.resetUnreadNums()):this.isBottom=!1,Object(d["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"});case 20:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),resizeToBottom:function(){this.$refs.msgWrap&&(this.$refs.msgWrap.style.height="auto",this.$refs.scrollWrap.scrollTop=this.$refs.msgWrap.offsetHeight,this.resetUnreadNums(),Object(d["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"},200))},doSetRead:function(){this.resizeToBottom()},quoteMsg:function(e){this.$refs.inputArea.inputMsg=e},showGroudMgr:function(e){this.isShowGroudMgr=1==e},initEmojiAndTool:function(){this.emojiShow=!1,this.toolShow=!1},showLoadingRoom:function(e){this.isLoadingRoom=e}}),beforeDestroy:function(){document.body.removeEventListener("click",this.initEmojiAndTool)}},w={computed:Object(g["a"])({},Object(f["e"])(["group","userId"]),Object(f["e"])({chatInputFocus:function(e){return e.group.chatInputFocus},blockList:function(e){return e.group.blockList}}),{isPrivate:function(){return this.$store.getters.isPrivate},emojiMap:function(){var e={};for(var t in p["a"]){var s=p["a"][t];s.forEach(function(t){var s=m()(t.names),r=t.surrogates;e[s]=r})}return e}}),data:function(){return{filePreviewShow:!1,emojiShow:!1,fileInfo:null,inputMsg:"",atInd:0,meechatType:Object(d["n"])()}},mounted:function(){},methods:Object(g["a"])({},Object(f["d"])(["updateChatInputFocus","addChatItem"]),Object(f["b"])(["doSendMsg","doSendFile","doSendPrivateMsg"]),{addEmoji:function(e){this.inputMsg+=e,"pc"==this.meechatType&&(this.emojiShow=!1,this.$refs.chatInput.focus())},closeFilePreview:function(){this.fileInfo=null,this.filePreviewShow=!1,this.emptyFileForm()},showFilePreview:function(e){e&&(this.fileInfo=e,this.filePreviewShow=!0)},handleInput:function(){this.inputMsg=this.inputMsg.substring(0,5e3)},handleSend:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var s,r,n,a,o,c,m,h,l,g=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.blockList.some(function(e){return e==g.userId})){e.next=3;break}return u()({message:"您已被禁言",type:"error"}),e.abrupt("return");case 3:for(n in s=this.inputMsg,r=s.match(/\["[a-z0-9A-Z_]+"\]/g),r)a=this.emojiMap[r[n]],a&&(s=s.replace(r[n],a));if(o=s.trim().substring(0,5e3),0!==o.length){e.next=10;break}return u()({message:"聊天内容不能为空",type:"warning"}),e.abrupt("return");case 10:if(c={type:0,msg:o},this.group.members[this.userId]&&(m=i()(),h=Object(d["r"])("lastShowMsgUid")||0,this.addChatItem({from:this.userId,content:o,hash:"".concat(m),timestamp:m,createTime:m,msg_type:"0",loading:!0,isShowFullInfo:this.userId!=h}),this.userId!=h&&(h=this.userId),Object(d["z"])("lastShowMsgUid",h),c.createTime=m),this.inputMsg="",!this.isPrivate){e.next=19;break}return e.next=16,this.doSendPrivateMsg(c);case 16:e.t0=e.sent,e.next=22;break;case 19:return e.next=21,this.doSendMsg(c);case 21:e.t0=e.sent;case 22:return l=e.t0,this.$store.commit("setSessionItemUnread",{session_id:this.curSession,unread:0,curSession:this.curSession,cont:o,timestamp:l.timestamp}),this.$nextTick(function(){this.resizeToBottom?this.resizeToBottom():this.$emit("toBottom"),Object(d["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"})}),t.preventDefault(),e.abrupt("return",!1);case 27:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),preHandleFile:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var s,r,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.type,r=t.size,!s.match("video")){e.next=6;break}return e.abrupt("return",r>3145728?n.a.reject(new Error(t)):n.a.resolve({type:2,res:t,preview:window.webkitURL.createObjectURL(t)}));case 6:if(!s.match("audio")){e.next=10;break}return e.abrupt("return",r>2097152?n.a.reject(new Error(t)):n.a.resolve({type:3,res:t,preview:window.webkitURL.createObjectURL(t)}));case 10:if(!s.match("image")){e.next=15;break}return e.next=13,new v["a"]({file:t,maxSize:1048576});case 13:return a=e.sent,e.abrupt("return",{type:1,preview:a.base64,res:a.res});case 15:case"end":return e.stop()}},e)}));function t(t){return e.apply(this,arguments)}return t}(),handleFile:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var s,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return s=t.constructor===File?t:t.target.files[0],e.prev=1,e.next=4,this.preHandleFile(s);case 4:r=e.sent,"pc"==this.meechatType?this.showFilePreview(r):this.handleFileSend(r),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),u()({message:"上传文件大小限制:音频2M以内,视频3M以内",type:"warning"});case 11:case"end":return e.stop()}},e,this,[[1,8]])}));function t(t){return e.apply(this,arguments)}return t}(),handleFileSend:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var s,r,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.filePreviewShow=!1,s={res:t.res},r=i()(),this.addChatItem({content:t.preview||"",from:this.userId,hash:"".concat(r),msg_type:t.type,timestamp:r,res:t.res,loading:!0,createTime:r}),s.createTime=r,e.next=7,this.doSendFile(s);case 7:setTimeout(function(){n.emptyFileForm(),n.$refs.toolbar&&n.$refs.toolbar.resetInput(),n.resizeToBottom?n.resizeToBottom():n.$emit("toBottom")},100);case 8:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),emptyFileForm:function(){this.$refs.inputFile&&(this.$refs.inputFile.value=null),this.$refs.inputFile1&&(this.$refs.inputFile1.value=null),this.$refs.inputFile2&&(this.$refs.inputFile2.value=null),this.$refs.inputFile3&&(this.$refs.inputFile3.value=null)}})}},3914:function(e,t,s){s("740e")("Uint8",1,function(e){return function(t,s,r){return e(this,t,s,r)}})},"417d":function(e,t,s){"use strict";var r=s("6c85"),n=s.n(r);function a(e){if(n()(e)){for(var t=0,s=new Array(e.length);t<e.length;t++)s[t]=e[t];return s}}var i=s("ab6b"),o=s.n(i),u=s("ad81"),c=s.n(u);function m(e){if(c()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return o()(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function l(e){return a(e)||m(e)||h()}s.d(t,"a",function(){return l})},"446c":function(e,t,s){},"4e81":function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"emoji-wrap"},[s("div",{staticClass:"emoji-list pub-scroll-box",attrs:{id:"emojiList"},on:{"&scroll":function(t){return e.handleScroll(t)}}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.recentList.length,expression:"recentList.length"}]},[s("p",{staticClass:"title"},[e._v(e._s(e.$t("emoji.lastestUse")))]),s("ul",{attrs:{id:"recent-emoji"}},e._l(e.recentList,function(t,r){return s("li",{key:r,domProps:{innerHTML:e._s(t.surrogates)},on:{click:function(s){return s.stopPropagation(),e.handleClick(t,s)}}})}),0)]),e._l(e.emojiList,function(t,r){return s("div",{key:r},[s("p",{staticClass:"title"},[e._v(e._s(e.$t("emoji."+r)))]),s("ul",e._l(t,function(t,r){return s("li",{key:r,domProps:{innerHTML:e._s(t.surrogates)},on:{click:function(s){return s.stopPropagation(),e.handleClick(t,s)}}})}),0)])})],2),s("ul",{staticClass:"type-list"},[s("li",{directives:[{name:"show",rawName:"v-show",value:e.recentList.length,expression:"recentList.length"}],class:[{active:0==e.typeIndex}],on:{click:function(t){return t.stopPropagation(),e.handleType(0)}}},[s("i")]),e._l(e.emojiList,function(t,r,n){return s("li",{key:r,class:[{active:e.typeIndex==n+1}],on:{click:function(t){return t.stopPropagation(),e.handleType(n+1)}}},[s("i")])})],2)])},n=[],a=s("cc80"),i=s.n(a),o=s("33f8"),u=s("3703"),c=s("4c07"),m={name:"emojiList",props:{emojiShow:Boolean},data:function(){return{emojiList:u["a"],recentList:[],index:0,typeIndex:0,emojiListSel:null,emojiTitleArrSel:[],meechatType:Object(o["n"])()}},watch:{emojiShow:function(e){var t=this;e?this.$root.$el.addEventListener("click",this.closeEmojiList):this.$root.$el.removeEventListener("click",this.closeEmojiList),setTimeout(function(){t.handleScroll()},10)}},computed:{},mounted:function(){var e=this;this.recentList=JSON.parse(localStorage.getItem("recentEmoji"))||[],this.emojiListSel=document.getElementById("emojiList"),this.emojiTitleArrSel=this.emojiListSel.getElementsByClassName("title"),this.emojiImageArrSel=this.emojiListSel.getElementsByTagName("img"),this.$nextTick(function(){e.parseEmoji(e.emojiListSel)})},methods:{handleType:function(e){this.emojiTitleArrSel[e]&&(this.typeIndex=e,this.emojiListSel.scrollTop=this.emojiTitleArrSel[e].offsetTop)},handleClick:function(e,t){var s,r=this,n=e.names;this.$emit("addEmoji",i()(n)),this.recentList.length>9&&this.recentList.pop();var a=this.recentList.some(function(e,t){return s=t,n[0]==e.names[0]});a&&this.recentList.splice(s,1),this.recentList.unshift(e),localStorage.setItem("recentEmoji",i()(this.recentList));var o=document.getElementById("recent-emoji");this.$nextTick(function(){r.parseEmoji(o)}),setTimeout(function(){r.loadImage()},0)},parseEmoji:function(e){var t=s("c446");c["a"].parse(e,{callback:function(e,s){return t},attributes:function(e,t){return{originurl:"https://w2.meechat.me/emoji/"+t+".svg"}}})},loadImage:function(){Object(o["u"])({wrap:this.emojiListSel,imageArr:this.emojiImageArrSel})},handleScroll:function(){var e=this.emojiListSel.scrollTop,t=this.emojiTitleArrSel.length;this.loadImage();for(var s=0;s<t;s++){var r=this.emojiTitleArrSel[s],n=this.emojiTitleArrSel[s+1];(e+20>r.offsetTop&&n&&e<=n.offsetTop||!n&&e+20>r.offsetTop)&&(this.typeIndex=s)}},closeEmojiList:function(){this.$emit("closeEmojiList")}}},h=m,l=(s("6507"),s("17cc")),g=Object(l["a"])(h,r,n,!1,null,null,null);t["a"]=g.exports},"4f40":function(e,t,s){},"50cd":function(e,t,s){"use strict";var r=s("4cf4"),n=s("0763");e.exports=function(e,t,s){t in e?r.f(e,t,n(0,s)):e[t]=s}},"60c7":function(e,t,s){var r,n=s("4839"),a=s("c84b"),i=s("75ff"),o=i("typed_array"),u=i("view"),c=!(!n.ArrayBuffer||!n.DataView),m=c,h=0,l=9,g="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(h<l)(r=n[g[h++]])?(a(r.prototype,o,!0),a(r.prototype,u,!0)):m=!1;e.exports={ABV:c,CONSTR:m,TYPED:o,VIEW:u}},6507:function(e,t,s){"use strict";var r=s("4f40"),n=s.n(r);n.a},"6a00":function(e,t,s){e.exports=s.p+"img/loading.b4490fa6.gif"},"72b6":function(e,t,s){"use strict";var r=s("aa91"),n=s("8da8"),a=s("33f2");e.exports=function(e){var t=r(this),s=a(t.length),i=arguments.length,o=n(i>1?arguments[1]:void 0,s),u=i>2?arguments[2]:void 0,c=void 0===u?s:n(u,s);while(c>o)t[o++]=e;return t}},"740e":function(e,t,s){"use strict";if(s("3a0f")){var r=s("4725"),n=s("4839"),a=s("201d"),i=s("2d2c"),o=s("60c7"),u=s("14e7"),c=s("0709"),m=s("508e"),h=s("b915"),l=s("c84b"),g=s("f043"),f=s("ae63"),d=s("33f2"),p=s("084d"),v=s("8da8"),b=s("1f51"),_=s("3301"),w=s("56f8"),y=s("b429"),k=s("aa91"),I=s("577d"),S=s("04ac"),T=s("d6e1"),x=s("62af").f,A=s("a5de"),j=s("75ff"),L=s("f3ae"),M=s("ea02"),C=s("0d0d"),E=s("d4f6"),O=s("5c07"),$=s("f03e"),R=s("fbd3"),B=s("4fd1"),D=s("72b6"),P=s("d56d"),N=s("694f"),U=s("78de"),F=N.f,G=U.f,z=n.RangeError,W=n.TypeError,V=n.Uint8Array,H="ArrayBuffer",Y="Shared"+H,J="BYTES_PER_ELEMENT",Z="prototype",X=Array[Z],q=u.ArrayBuffer,Q=u.DataView,K=M(0),ee=M(2),te=M(3),se=M(4),re=M(5),ne=M(6),ae=C(!0),ie=C(!1),oe=O.values,ue=O.keys,ce=O.entries,me=X.lastIndexOf,he=X.reduce,le=X.reduceRight,ge=X.join,fe=X.sort,de=X.slice,pe=X.toString,ve=X.toLocaleString,be=L("iterator"),_e=L("toStringTag"),we=j("typed_constructor"),ye=j("def_constructor"),ke=o.CONSTR,Ie=o.TYPED,Se=o.VIEW,Te="Wrong length!",xe=M(1,function(e,t){return Ce(E(e,e[ye]),t)}),Ae=a(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),je=!!V&&!!V[Z].set&&a(function(){new V(1).set({})}),Le=function(e,t){var s=f(e);if(s<0||s%t)throw z("Wrong offset!");return s},Me=function(e){if(y(e)&&Ie in e)return e;throw W(e+" is not a typed array!")},Ce=function(e,t){if(!(y(e)&&we in e))throw W("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Oe(E(e,e[ye]),t)},Oe=function(e,t){var s=0,r=t.length,n=Ce(e,r);while(r>s)n[s]=t[s++];return n},$e=function(e,t,s){F(e,t,{get:function(){return this._d[s]}})},Re=function(e){var t,s,r,n,a,i,o=k(e),u=arguments.length,m=u>1?arguments[1]:void 0,h=void 0!==m,l=A(o);if(void 0!=l&&!I(l)){for(i=l.call(o),r=[],t=0;!(a=i.next()).done;t++)r.push(a.value);o=r}for(h&&u>2&&(m=c(m,arguments[2],2)),t=0,s=d(o.length),n=Ce(this,s);s>t;t++)n[t]=h?m(o[t],t):o[t];return n},Be=function(){var e=0,t=arguments.length,s=Ce(this,t);while(t>e)s[e]=arguments[e++];return s},De=!!V&&a(function(){ve.call(new V(1))}),Pe=function(){return ve.apply(De?de.call(Me(this)):Me(this),arguments)},Ne={copyWithin:function(e,t){return P.call(Me(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return se(Me(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(Me(this),arguments)},filter:function(e){return Ee(this,ee(Me(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Me(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ne(Me(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Me(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ie(Me(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(Me(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ge.apply(Me(this),arguments)},lastIndexOf:function(e){return me.apply(Me(this),arguments)},map:function(e){return xe(Me(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return he.apply(Me(this),arguments)},reduceRight:function(e){return le.apply(Me(this),arguments)},reverse:function(){var e,t=this,s=Me(t).length,r=Math.floor(s/2),n=0;while(n<r)e=t[n],t[n++]=t[--s],t[s]=e;return t},some:function(e){return te(Me(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return fe.call(Me(this),e)},subarray:function(e,t){var s=Me(this),r=s.length,n=v(e,r);return new(E(s,s[ye]))(s.buffer,s.byteOffset+n*s.BYTES_PER_ELEMENT,d((void 0===t?r:v(t,r))-n))}},Ue=function(e,t){return Ee(this,de.call(Me(this),e,t))},Fe=function(e){Me(this);var t=Le(arguments[1],1),s=this.length,r=k(e),n=d(r.length),a=0;if(n+t>s)throw z(Te);while(a<n)this[t+a]=r[a++]},Ge={entries:function(){return ce.call(Me(this))},keys:function(){return ue.call(Me(this))},values:function(){return oe.call(Me(this))}},ze=function(e,t){return y(e)&&e[Ie]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return ze(e,t=b(t,!0))?h(2,e[t]):G(e,t)},Ve=function(e,t,s){return!(ze(e,t=b(t,!0))&&y(s)&&_(s,"value"))||_(s,"get")||_(s,"set")||s.configurable||_(s,"writable")&&!s.writable||_(s,"enumerable")&&!s.enumerable?F(e,t,s):(e[t]=s.value,e)};ke||(U.f=We,N.f=Ve),i(i.S+i.F*!ke,"Object",{getOwnPropertyDescriptor:We,defineProperty:Ve}),a(function(){pe.call({})})&&(pe=ve=function(){return ge.call(this)});var He=g({},Ne);g(He,Ge),l(He,be,Ge.values),g(He,{slice:Ue,set:Fe,constructor:function(){},toString:pe,toLocaleString:Pe}),$e(He,"buffer","b"),$e(He,"byteOffset","o"),$e(He,"byteLength","l"),$e(He,"length","e"),F(He,_e,{get:function(){return this[Ie]}}),e.exports=function(e,t,s,u){u=!!u;var c=e+(u?"Clamped":"")+"Array",h="get"+e,g="set"+e,f=n[c],v=f||{},b=f&&T(f),_=!f||!o.ABV,k={},I=f&&f[Z],A=function(e,s){var r=e._d;return r.v[h](s*t+r.o,Ae)},j=function(e,s,r){var n=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),n.v[g](s*t+n.o,r,Ae)},L=function(e,t){F(e,t,{get:function(){return A(this,t)},set:function(e){return j(this,t,e)},enumerable:!0})};_?(f=s(function(e,s,r,n){m(e,f,c,"_d");var a,i,o,u,h=0,g=0;if(y(s)){if(!(s instanceof q||(u=w(s))==H||u==Y))return Ie in s?Oe(f,s):Re.call(f,s);a=s,g=Le(r,t);var v=s.byteLength;if(void 0===n){if(v%t)throw z(Te);if(i=v-g,i<0)throw z(Te)}else if(i=d(n)*t,i+g>v)throw z(Te);o=i/t}else o=p(s),i=o*t,a=new q(i);l(e,"_d",{b:a,o:g,l:i,e:o,v:new Q(a)});while(h<o)L(e,h++)}),I=f[Z]=S(He),l(I,"constructor",f)):a(function(){f(1)})&&a(function(){new f(-1)})&&R(function(e){new f,new f(null),new f(1.5),new f(e)},!0)||(f=s(function(e,s,r,n){var a;return m(e,f,c),y(s)?s instanceof q||(a=w(s))==H||a==Y?void 0!==n?new v(s,Le(r,t),n):void 0!==r?new v(s,Le(r,t)):new v(s):Ie in s?Oe(f,s):Re.call(f,s):new v(p(s))}),K(b!==Function.prototype?x(v).concat(x(b)):x(v),function(e){e in f||l(f,e,v[e])}),f[Z]=I,r||(I.constructor=f));var M=I[be],C=!!M&&("values"==M.name||void 0==M.name),E=Ge.values;l(f,we,!0),l(I,Ie,c),l(I,Se,!0),l(I,ye,f),(u?new f(1)[_e]==c:_e in I)||F(I,_e,{get:function(){return c}}),k[c]=f,i(i.G+i.W+i.F*(f!=v),k),i(i.S,c,{BYTES_PER_ELEMENT:t}),i(i.S+i.F*a(function(){v.of.call(f,1)}),c,{from:Re,of:Be}),J in I||l(I,J,t),i(i.P,c,Ne),B(c),i(i.P+i.F*je,c,{set:Fe}),i(i.P+i.F*!C,c,Ge),r||I.toString==pe||(I.toString=pe),i(i.P+i.F*a(function(){new f(1).slice()}),c,{slice:Ue}),i(i.P+i.F*(a(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!a(function(){I.toLocaleString.call([1,2])})),c,{toLocaleString:Pe}),$[c]=C?M:E,r||C||l(I,be,E)}}else e.exports=function(){}},"7d63":function(e,t,s){"use strict";var r=s("94f4"),n=s.n(r);n.a},8725:function(e,t,s){s("d27c"),e.exports=s("836e").parseFloat},8869:function(e,t,s){"use strict";s.d(t,"f",function(){return l}),s.d(t,"e",function(){return g}),s.d(t,"c",function(){return f}),s.d(t,"d",function(){return d}),s.d(t,"a",function(){return p}),s.d(t,"b",function(){return v});var r=s("396f"),n=(s("5f33"),s("3f47")),a=(s("f10e"),s("417d")),i=(s("612f"),s("4453"),s("ee95")),o=(s("3a23"),s("5975")),u=s("33f8"),c=s("52c1"),m=s("c1f9"),h=s.n(m),l={data:function(){return{isSearch:!1,searchList:null}},methods:{searchUser:function(e,t){var s=e.target.value.toLocaleLowerCase();s?(this.searchList=t.filter(function(e){var t,r,n=(e.name||e.user_name||"").toLocaleLowerCase(),a=(e.nick_name||"").toLocaleLowerCase();return t=!!n&&n.indexOf(s)>-1,r=!!a&&a.indexOf(s)>-1,t||r}),this.isSearch=!0):this.isSearch=!1}}},g={data:function(){return{showNum:0,isSearchGroup:!1,searchUserTimer:null,searchGroupList:[]}},methods:{searchUser:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(t,s){var r=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:clearTimeout(this.searchUserTimer),this.searchUserTimer=setTimeout(Object(i["a"])(regeneratorRuntime.mark(function e(){var n,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.target.value.toLocaleLowerCase(),i=r.inviteType,r.isSearchGroup=!0,n.trim()){e.next=7;break}return s.forEach(function(e){r.$set(e,"isShow",!0)}),r.$nextTick(function(){r.isSearchGroup=!1,r.showNum=s.length,s=r.originListCache}),e.abrupt("return");case 7:if(s.forEach(function(e){var t,s,a=(e.user_name||"").toLocaleLowerCase(),i=(e.nick_name||"").toLocaleLowerCase();t=!!a&&a.indexOf(n)>-1,s=!!i&&i.indexOf(n)>-1,r.$set(e,"isShow",t||s)}),s.length+1>=r.membersNum||1==i||2==i){e.next=11;break}return e.next=11,o["a"].group.searchMember({group_id:r.group.groupId,keyword:n}).then(function(e){var t=e.data,r=t.data;r.forEach(function(e){e.isChecked=!1,e.isChoosed=!1,e.isShow=!0}),s=h.a.unionBy([].concat(Object(a["a"])(s),Object(a["a"])(r)),"user_id")});case 11:r.searchGroupList=s,r.$nextTick(function(){r.showNum=s.filter(function(e){return e.isShow}).length});case 13:case"end":return e.stop()}},e)})),200);case 4:case"end":return e.stop()}},e,this)}));function t(t,s){return e.apply(this,arguments)}return t}()}},f={data:function(){return{atInd:0}},methods:{atPerson:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=this.$refs.chatInput,s=t.selectionStart,r=s-this.keyAfterAt.length;this.inputMsg=this.inputMsg.slice(0,r)+"".concat(e," ")+this.inputMsg.slice(s),this.atInd=0,t.focus(),this.$nextTick(function(){t.setSelectionRange(r+e.length+1,r+e.length+1)}),this.$store.commit("updateIsNewAt",{isNewAt:this.group.isNewAt,isNewAtFound:!0}),this.$store.commit("updateGroupSearchList",[])},handleUp:function(e){return this.atInd>0&&this.atInd--,this.atShow&&e.preventDefault(),!0},handleDown:function(e){var t=this.filterMembers.length;return this.atInd<t-1?this.atInd++:this.atInd=0,this.atShow&&e.preventDefault(),!0}}},d={data:function(){return{selectionAfterAt:!1,keyAfterAt:"",keyAfterAtTimer:"",lastKeyAfterAt:"",isIOS:!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),isShowContextmenu:!1,menuTop:0,menuLeft:0}},mounted:function(){},computed:Object(n["a"])({},Object(c["e"])(["copyText"]),{filterMembers:function(){if(!this.group.groupId)return[];var e=this.group.membersArray,t=[];if(""!==this.keyAfterAt)t=this.group.searchList;else for(var s=0;s<e.length;s++)e[s].user_id!=this.userId&&t.push(e[s]);return t.slice(0,100)},atShow:function(){return this.atInd=0,this.selectionAfterAt&&this.filterMembers.length}}),watch:{keyAfterAt:function(e){var t=this;clearTimeout(this.keyAfterAtTimer),this.keyAfterAtTimer=setTimeout(function(){t.handleKeyAfterAt(e)},200)},inputMsg:function(e,t){this.handleSelectionChange()}},methods:{handleKeyAfterAt:function(e){var t=this;if(this.group.groupId&&""!=e.trim()&&!this.group.isNewAtFound)if(this.group.membersArray.length<this.group.membersNum)o["a"].group.searchMember({group_id:this.group.groupId,keyword:e}).then(function(e){var s=e.data;t.$store.commit("updateGroupSearchList",s.data)});else{var s=this.group.membersArray.filter(function(t){var s,r;return s=!!t.user_name&&t.user_name.indexOf(e)>-1,r=!!t.nick_name&&t.nick_name.indexOf(e)>-1,s||r});this.$store.commit("updateGroupSearchList",s)}},getStrBeforeSelection:function(){var e=this.$refs.chatInput;if(!e)return"";var t=e.selectionStart,s=this.inputMsg.slice(0,t);return s},getStrAfterSelection:function(){var e=this.$refs.chatInput;if(!e)return"";var t=e.selectionStart,s=this.inputMsg.slice(t);return s},handleClick:function(){this.isShowContextmenu=!1},handleLeft:function(e){var t=this.$refs.chatInput,s=t.selectionStart;if(0===s)return!0;var r=this.getStrBeforeSelection(),n=this.group.members;for(var a in n){var i=n[a].user_name,o=new RegExp("@".concat(i," $"));if(o.test(r))return e.preventDefault(),t.setSelectionRange(s-i.length-2,s-i.length-2),!0}},handleRight:function(e){var t=this.$refs.chatInput,s=t.selectionStart,r=this.getStrAfterSelection(),n=this.group.members;for(var a in n){var i=n[a].user_name,o=new RegExp("^@".concat(i," "));if(o.test(r))return e.preventDefault(),t.setSelectionRange(s+i.length+2,s+i.length+2),!0}return!0},handleDel:function(e){var t=this,s=this.$refs.chatInput,n=s.selectionStart;if(0!==n){var a=this.getStrBeforeSelection(),i=this.group.members,o=function(r){var o=i[r].user_name,u=new RegExp("@".concat(o," $"));if(u.test(a))return e.preventDefault(),t.inputMsg=t.inputMsg.slice(0,n-o.length-2)+t.inputMsg.slice(n),t.$nextTick(function(){s.setSelectionRange(n-o.length-2,n-o.length-2)}),{v:void 0}};for(var u in i){var c=o(u);if("object"===Object(r["a"])(c))return c.v}}},handleKeyDown:function(e){var t=this;if(!this.atShow){if(e.altKey||e.ctrlKey){var s=this.getStrBeforeSelection(),r=this.getStrAfterSelection();this.inputMsg=s+"\n"+r,this.$nextTick(function(){t.$refs.chatInput.setSelectionRange(s.length+1,s.length+1)})}else this.handleSend(e),e.preventDefault();return!0}e.preventDefault();var n=this.filterMembers[this.atInd];this.atPerson(n.user_name,n.nick_name)},handleFocus:function(){var e=this;this.$emit("handleFocus"),this.updateChatInputFocus(!0),document.addEventListener("selectionchange",this.handleSelectionChange),this.isIOS&&setTimeout(function(){e.$root.$el.addEventListener("click",e.fixIOS)},0)},handleBlur:function(){var e=this;if(document.removeEventListener("selectionchange",this.handleSelectionChange),this.updateChatInputFocus(!1),(this.selectionAfterAt||this.isShowContextmenu)&&setTimeout(function(){e.selectionAfterAt=!1,e.isShowContextmenu=!1},200),this.isIOS){var t=document.body.scrollTop;document.body.scrollTop=t,this.$root.$el.removeEventListener("click",this.fixIOS)}Object(u["v"])()},handleEsc:function(){this.selectionAfterAt=!1},handleSelectionChange:function(){var e=this.$refs.chatInput;if(e){var t=e.selectionStart,s=this.$refs.chatInput.selectionEnd;if(t===s){var r=this.getStrBeforeSelection();if(this.selectionAfterAt=/@/.test(r),this.selectionAfterAt){this.keyAfterAt=r.slice(r.lastIndexOf("@")+1);var n=this.keyAfterAt.indexOf(this.lastKeyAfterAt)<0;this.$store.commit("updateIsNewAt",{isNewAt:n,isNewAtFound:!n&&this.group.isNewAtFound}),n&&this.$store.commit("updateGroupSearchList",[]),this.lastKeyAfterAt=this.keyAfterAt}}}},handleContextmenu:function(e){this.copyText&&(this.isShowContextmenu=!this.isShowContextmenu,this.isShowContextmenu&&(this.menuTop=e.offsetY,this.menuLeft=e.offsetX>100?e.offsetX-30:e.offsetX))},handlePaste:function(){this.isShowContextmenu=!1,this.inputMsg+=this.copyText},closeEmojiList:function(){this.emojiShow=!1},fixIOS:function(e){var t=this;setTimeout(function(){t.$refs.chatInput===document.activeElement&&document.activeElement.blur()},0)}}},p={methods:{addPanelSession:function(e,t){var s=this,r=this.sessionList.some(function(e){return e.session_id==t});r||o["a"].user.getOtherInfo({target_id:e}).then(function(e){var r=e.data,n=r.data,a={cover_photo:n.cover_photo,is_group:"0",name:n.nick_name,session_id:t,unread:0};s.$store.commit("addSessionItem",a)})}}},v={data:function(){return{curLang:Object(u["r"])("lang")||Object(u["m"])()}},methods:{changeLang:function(){var e="en"==this.curLang?"zh":"en";this.$i18n.locale=e,this.curLang=e,Object(u["z"])("lang",e)}}}},"8af1":function(e,t,s){"use strict";var r=s("8232"),n=s("471d"),a=s("7182"),i=s("44a7"),o=s("33ef"),u=s("3202"),c=s("50cd"),m=s("0811");n(n.S+n.F*!s("1969")(function(e){Array.from(e)}),"Array",{from:function(e){var t,s,n,h,l=a(e),g="function"==typeof this?this:Array,f=arguments.length,d=f>1?arguments[1]:void 0,p=void 0!==d,v=0,b=m(l);if(p&&(d=r(d,f>2?arguments[2]:void 0,2)),void 0==b||g==Array&&o(b))for(t=u(l.length),s=new g(t);t>v;v++)c(s,v,p?d(l[v],v):l[v]);else for(h=b.call(l),s=new g;!(n=h.next()).done;v++)c(s,v,p?i(h,d,[n.value,v],!0):n.value);return s.length=v,s}})},9014:function(e,t,s){},"92dd":function(e,t,s){s("4d6c"),s("8af1"),e.exports=s("836e").Array.from},"92ec":function(e,t,s){"use strict";var r=s("446c"),n=s.n(r);n.a},9360:function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.atList&&e.atList.length?s("div",{staticClass:"at-me"},[e.atNum>=2&&e.totalVisible?s("div",{staticClass:"at-me-item",on:{click:e.scrollToMsg}},[s("div",{staticClass:"at-content"},[e._v(e._s(e.$t("chat.hava"))+e._s(e.atNum)+e._s(e.$t("chat.atYouWithPeople")))]),s("i",{staticClass:"icon-close",attrs:{title:e.$t("public.close")},on:{click:function(t){t.stopPropagation(),e.totalVisible=!1}}})]):e.atNum&&e.itemVisible?s("div",{staticClass:"at-me-item",on:{click:e.scrollToMsg}},[s("div",{staticClass:"at-content"},[e._v(e._s(e.atList[0].name)+e._s(e.$t("chat.atYou")))]),s("i",{staticClass:"icon-close",attrs:{title:e.$t("public.close")},on:{click:function(t){return t.stopPropagation(),e.closeAtme(t)}}})]):e._e()]):e._e()},n=[],a=s("3f47"),i=s("c1f9"),o=s.n(i),u=s("52c1"),c={name:"atMe",props:{atList:[Array]},computed:{atNum:function(){return o.a.unionBy(this.atList,"userId").length}},data:function(){return{totalVisible:!0,itemVisible:!0}},methods:Object(a["a"])({},Object(u["d"])(["clearAtList"]),{scrollToMsg:function(){this.$emit("scrollToMsg",this.atList.length-1)},closeAtme:function(){this.itemVisible=!1,this.clearAtList()}})},m=c,h=(s("1c20"),s("17cc")),l=Object(h["a"])(m,r,n,!1,null,"6ba1fb76",null);t["a"]=l.exports},"94f4":function(e,t,s){},"98a4":function(e,t,s){},"9f30":function(e,t,s){s("0782"),e.exports=s("836e").Date.now},a1aa:function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"chat-at"},[s("div",{staticClass:"bar-wrap"},[s("div",{ref:"container"},e._l(e.filterList,function(t,r){return s("div",{key:r,staticClass:"item",class:{active:r==e.curInd},on:{click:function(t){return t.stopPropagation(),e.atPerson(r)}}},[s("div",{staticClass:"avatar",class:"avatar_bg"+t.user_id%9},[t.cover_photo?s("img",{attrs:{src:t.cover_photo}}):[e._v("\n "+e._s(t.nick_name.slice(0,2).toUpperCase())+"\n ")]],2),s("div",{staticClass:"name"},[s("p",{staticClass:"nick-name"},[e._v("\n "+e._s(t.nick_name)+"\n "),t.is_admin>0?s("span",{class:["status-identity","identity"+t.is_admin]},[e._v(e._s(1==t.is_admin?e.$t("public.admin"):e.$t("public.owner")))]):e._e(),1==t.is_block?s("span",{staticClass:"status-forbidden"},[e._v(" "+e._s(e.$t("public.ban")))]):e._e()]),s("p",{staticClass:"user-name"},[e._v("@"+e._s(t.user_name))])])])}),0)])])},n=[],a=s("3f47"),i=(s("b06f"),s("52c1")),o={name:"chatAt",props:{curInd:{type:Number},filterList:{type:Array}},computed:Object(a["a"])({},Object(i["e"])(["userId"])),data:function(){return{showFilterList:[]}},watch:{curInd:function(e){this.scrollIntoView()}},methods:{atPerson:function(e){var t=this.filterList[e];this.$emit("atperson",t.user_name,t.nick_name)},scrollIntoView:function(){var e=this.$refs.container.children[this.curInd];e&&e.scrollIntoView&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}}},u=o,c=(s("92ec"),s("17cc")),m=Object(c["a"])(u,r,n,!1,null,"456ce12a",null);t["a"]=m.exports},ab6b:function(e,t,s){e.exports=s("92dd")},ad81:function(e,t,s){e.exports=s("a945")},b16d:function(e,t,s){"use strict";s("3914"),s("f10e"),s("ea65");var r=s("96f8"),n=s.n(r),a=s("3f46"),i=s.n(a),o=s("ffba"),u=s.n(o),c=s("eb12"),m=s("ba94"),h=function(){function e(t){var s=this;return Object(c["a"])(this,e),this.file=t.file,this.maxSize=t.maxSize||1048576,this.quantity=u()((this.file.size/this.maxSize).toFixed(2)),new i.a(function(e,t){s.quantity<=1?s.blobToDataURL(s.file).then(function(t){e({base64:t.target.result,res:s.file})}):s.mini(e,t)})}return Object(m["a"])(e,[{key:"mini",value:function(e,t){var s=this,r=this.file,a=this.quantity;try{var i=new FileReader,o=new Image;i.readAsDataURL(r),i.onload=function(e){o.src=e.target.result},o.onload=function(){var t=document.createElement("canvas"),r=t.getContext("2d"),i=o.width,u=o.height;t.width=i,t.height=u,r.clearRect(0,0,i,u),r.drawImage(o,0,0,i,u);var c=t.toDataURL("image/jpeg",a),m=s.dataURLtoBlob(c);if(m.size>s.maxSize){r.clearRect(0,0,i,u);var h=s.maxSize/m.size*.8,l=n()(i*h),g=n()(u*h);t.width=l,t.height=g,r.drawImage(o,0,0,i,u,0,0,l,g),c=t.toDataURL("image/jpeg"),m=s.dataURLtoBlob(c)}e({base64:c,res:m})}}catch(u){t(u)}}},{key:"blobToDataURL",value:function(e){return new i.a(function(t,s){var r=new FileReader;r.onload=t,r.readAsDataURL(e)})}},{key:"dataURLtoBlob",value:function(e){var t=e.split(","),s=t[0].match(/:(.*?);/)[1],r=atob(t[1]),n=r.length,a=new Uint8Array(n);while(n--)a[n]=r.charCodeAt(n);return new Blob([a],{type:s})}}]),e}();t["a"]=h},b72e:function(e,t,s){"use strict";var r=s("e525"),n=s.n(r);n.a},c156:function(e,t,s){},c446:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAqCAYAAAAqAaJlAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkM2N0RFRDc0MjEzRDExRTlCQUEwODg1REQxMEY4MjYyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkM2N0RFRDc1MjEzRDExRTlCQUEwODg1REQxMEY4MjYyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzY3REVENzIyMTNEMTFFOUJBQTA4ODVERDEwRjgyNjIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzY3REVENzMyMTNEMTFFOUJBQTA4ODVERDEwRjgyNjIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5un2ugAAADr0lEQVR42tSZS0hUYRTH75i9KNOgTDClRWVGQrZxk2UPrFapgb3cSLqKchNM0ewyUggKy0WkuKiwXJRGBEml5aZVDxTHtEVMChVBTfawxrL/gf8n12lm7mNe1wM/LneY7zv/Ofe75/vOGVdmzjpttlhqlOOXgx1gC8gHq0EaSAd+MA7eAC94Ch6Dj3aduWxENgXsBTVgF5hjYewf8AC0gC7wN55iy0E9WM/7X6AH9ILnYBh8YVQluhlgLdgESsA2MJ9jB4EH3Im12GXgKijj/VtwHlynMLMmP6AKnACr+FknqAWfzDxSIysCLylUolbHaDVbFKrx+80cX8f5yjh/UbRi94BHIBv0gQLQBAJRvpgBzlPAebPpZ7ddsdv5iBaBVt6PxjgbjXLeVvrp4r0lsfKYboN54DLX1GSc0uck579Ef+I3z6zYBeAWX4YOcBxMxTnfT3ENK783qcNQrBtsZBqqSYBQvWCJ8Gv6dxulrlx+WXLhVi7+RFsxeMIcLsvBFy6yboa/PUlCNfptpw53uGUgu001t8D6MBOd5OMK5pyBAKvjzlBHNXX9J7YSLORhw5vkA9YQeEg9laHEqq30WoTIyJvqCoE/TKTsjhO7EaRrWuxcHvNkYLdDjq/d1FNMfdPZYAPoByPcEJxikj7XcFseUJFV+curOcu8en1K7Ape3zlMrMqxWXqxabyOO0zsuF5fijaLLCXUL3CQzXjiSuwHXnNs7kR2Mdr5cnl9rxc7xGu+wyKbr9enxMpJ6zvr/iwTkzSE2ZHMcsqEjyzq+UZ902IDbELIRKUOiWop9fSpmk+fDTp5rTIRUb/JNWd0xogU4cNBumaIlRLmJ9tByV67smPtpJ6OUGKlhm/jZx6Ta9Zv8e1PN7lmPdTRRl0hK4VGMAEOgs1Jiqr4PUQdjZEKRp8uai0mNomGGGeBNPp1UajPqLptZDsnj/0tV4Ii6qI/8fuKgTAsxSX8B7ge94OLCRAs81+gP+V3wmxHRpJwBfjNJscVzVof1oqlcv46+qtQm4CVXpcUjvvADzYfethAi6WtpJ9a+innva0u4j3m3THWQgPgmBZ9ez+V8/Rz3jH6uW+3i6jsGSgEd1nDN7FWO8q8acXSOW6E82QwIIX0E3lh22jTn9XtcPIS9PLRvWCB95nnT0lDS1mAihhpZZboGm5SX53W4tCmD34aIvoIDxtW/wCREruVIuP6B0iwZTJi6q8lieJisAR85fFumFGU05N0txP611LS7J8AAwDm1AAk0+Wa7AAAAABJRU5ErkJggg=="},d27c:function(e,t,s){var r=s("471d"),n=s("e8be");r(r.G+r.F*(parseFloat!=n),{parseFloat:n})},d56d:function(e,t,s){"use strict";var r=s("aa91"),n=s("8da8"),a=s("33f2");e.exports=[].copyWithin||function(e,t){var s=r(this),i=a(s.length),o=n(e,i),u=n(t,i),c=arguments.length>2?arguments[2]:void 0,m=Math.min((void 0===c?i:n(c,i))-u,i-o),h=1;u<o&&o<u+m&&(h=-1,u+=m-1,o+=m-1);while(m-- >0)u in s?s[o]=s[u]:delete s[o],o+=h,u+=h;return s}},e525:function(e,t,s){},e8be:function(e,t,s){var r=s("a051").parseFloat,n=s("e2d3").trim;e.exports=1/r(s("4bcb")+"-0")!==-1/0?function(e){var t=n(String(e),3),s=r(t);return 0===s&&"-"==t.charAt(0)?-0:s}:r},eb6a:function(e,t,s){},fe83:function(e,t,s){"use strict";var r=s("eb6a"),n=s.n(r);n.a},ffba:function(e,t,s){e.exports=s("8725")}}]);