1 |
- (function(e){function t(t){for(var a,r,i=t[0],u=t[1],c=t[2],l=0,m=[];l<i.length;l++)r=i[l],n[r]&&m.push(n[r][0]),n[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);g&&g(t);while(m.length)m.shift()();return o.push.apply(o,c||[]),s()}function s(){for(var e,t=0;t<o.length;t++){for(var s=o[t],a=!0,r=1;r<s.length;r++){var i=s[r];0!==n[i]&&(a=!1)}a&&(o.splice(t--,1),e=u(u.s=s[0]))}return e}var a={},r={mini:0},n={mini:0},o=[];function i(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-4031c6b3":"58ec51e9"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var s=a[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,u),s.l=!0,s.exports}u.e=function(e){var t=[],s={"chunk-4031c6b3":1};r[e]?t.push(r[e]):0!==r[e]&&s[e]&&t.push(r[e]=new Promise(function(t,s){for(var a="css/"+({}[e]||e)+"."+{"chunk-4031c6b3":"7da7025b"}[e]+".css",n=u.p+a,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var c=o[i],l=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(l===a||l===n))return t()}var m=document.getElementsByTagName("style");for(i=0;i<m.length;i++){c=m[i],l=c.getAttribute("data-href");if(l===a||l===n)return t()}var g=document.createElement("link");g.rel="stylesheet",g.type="text/css",g.onload=t,g.onerror=function(t){var a=t&&t.target&&t.target.src||n,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete r[e],g.parentNode.removeChild(g),s(o)},g.href=n;var h=document.getElementsByTagName("head")[0];h.appendChild(g)}).then(function(){r[e]=0}));var a=n[e];if(0!==a)if(a)t.push(a[2]);else{var o=new Promise(function(t,s){a=n[e]=[t,s]});t.push(a[2]=o);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=i(e),c=function(t){l.onerror=l.onload=null,clearTimeout(m);var s=n[e];if(0!==s){if(s){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+r+")");o.type=a,o.request=r,s[1](o)}n[e]=void 0}};var m=setTimeout(function(){c({type:"timeout",target:l})},12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=a,u.d=function(e,t,s){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(u.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)u.d(s,a,function(t){return e[t]}.bind(null,a));return s},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="//static.meechat.me/cdn/new.mee.chat/dist/",u.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var m=0;m<c.length;m++)t(c[m]);var g=l;o.push([0,"chunk-vendors","chunk-common"]),s()})({0:function(e,t,s){e.exports=s("5b59")},"023a":function(e,t,s){"use strict";var a=s("bcf8"),r=s.n(a);r.a},"0627":function(e,t,s){},"1b0b":function(e,t,s){},"1c20":function(e,t,s){"use strict";var a=s("1b0b"),r=s.n(a);r.a},"1eac":function(e,t,s){},2502:function(e,t,s){},"2f35":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.repealMsg?a("div",{staticClass:"msg-repeal-item"},[e._v("\n "+e._s(e.repealStr)+"\n")]):e.joinMsg?a("div",{staticClass:"msg-join-item"},[a("span",[e._v(e._s(e.joinMsg))])]):e.msgItem&&e.msgItem.redPackTip?a("redPack-tip",{attrs:{info:e.msgItem}}):a("div",{staticClass:"msg-item clearfix",class:e.type},[e.timeMsg?a("msg-time",{attrs:{timestamp:e.timestamp}}):e._e(),e.avatarUrl?a("img",{staticClass:"user-avatar avatar",attrs:{src:s("6a00"),originurl:e.avatarUrl,alt:""},on:{click:e.clickInfo}}):a("div",{staticClass:"avatar",class:"avatar_bg"+e.userId%9,attrs:{"data-name":e.name&&e.name.slice(0,2).toUpperCase()},on:{click:e.clickInfo}}),a("div",{staticClass:"content"},[a("div",{staticClass:"metabar"},[a("span",{staticClass:"name",on:{contextmenu:function(t){return t.preventDefault(),e.onToolBtn(t,"username")}}},[e._v(e._s(e.name))]),e.creator==e.userId?a("span",{staticClass:"admin"},["me"===e.type?a("i",{staticClass:"icon-creator"}):e._e(),e._v("\n "+e._s(e.$t("public.owner"))+"\n "),"you"===e.type?a("i",{staticClass:"icon-creator"}):e._e()]):e.adminList.includes(Number(e.userId))?a("span",{staticClass:"admin"},["me"===e.type?a("i",{staticClass:"el-icon-star-on"}):e._e(),e._v("\n "+e._s(e.$t("public.admin"))+"\n "),"you"===e.type?a("i",{staticClass:"el-icon-star-on"}):e._e()]):e._e(),e.msgItem.ext_info&&e.msgItem.ext_info.is_tg?a("i",{staticClass:"icon-tele"}):e._e(),a("span",{staticClass:"time"},[e._v(e._s(e._f("formatTimestamp")(e.timestamp)))])]),4==e.msg_type&&e.msgItem?a("red-packet",{attrs:{info:e.msgItem},nativeOn:{click:function(t){return e.$packetGet(e.msgItem)}}}):[a("bubble-wrap",{attrs:{isMobile:e.isMobile,showToolbar:e.showToolbar},on:{onTouchStartToolBtn:e.onTouchStartToolBtn,onTouchEndToolBtn:e.onTouchEndToolBtn,onToolBtn:e.onToolBtn}},[e.loading?a("i",{staticClass:"loading-icon"}):e._e(),e.fail?a("i",{staticClass:"error-icon",on:{click:e.reSend}}):e._e(),1!=e.msg_type||"mini"!=e.meechatType||e.isMobile?1==e.msg_type?a("div",[a("img",{staticClass:"img-msg",style:{width:e.width,height:e.height},attrs:{src:"",originurl:e.formatUploadImg(e.content)},on:{click:function(t){return e.$showImgPreview(e.content)}}}),a("i",{staticClass:"pic-loading"})]):2==e.msg_type||3==e.msg_type?a("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}}):a("pre",{staticClass:"text",domProps:{innerHTML:e._s(e.content)}}):a("a",{attrs:{href:e.content,target:"_blank"}},[a("img",{staticClass:"img-msg",style:{width:e.width,height:e.height},attrs:{src:"",originurl:e.formatUploadImg(e.content)}}),a("i",{staticClass:"pic-loading"})]),"username"==e.toolBtnType?[a("ul",{directives:[{name:"show",rawName:"v-show",value:e.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar ext-username",on:{touchstart:function(e){e.stopPropagation()}}},[a("li",{on:{click:function(t){return t.preventDefault(),e.handleCopy(t)}}},[e._v(e._s(e.$t("chat.copy")))])])]:[a("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?a("li",{on:{click:function(t){return t.preventDefault(),e.handleQuote(t)}}},[e._v(e._s(e.$t("chat.quote")))]):e._e(),a("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?a("li",{staticClass:"split-line"}):e._e(),e.isAdmin?a("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?a("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?a("li",{on:{click:function(t){return t.preventDefault(),e.handleRevoke(t)}}},[e._v(e._s(e.$t("chat.revoke")))]):e._e()])]],2)]],2)],1)},r=[],n=(s("9f02"),s("0adb"),s("4694"),s("9caf")),o=s.n(n),i=s("0649"),u=s.n(i),c=(s("dc12"),s("bd31")),l=(s("46b5"),s("4941")),m=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"msg-time"},[e._v(e._s(e.showTime))])},g=[],h=s("33f8"),d={name:"msgTime",props:{timestamp:{type:[String,Number],required:!0}},computed:{showTime:function(){return Object(h["j"])(this.timestamp,2,this)}}},p=d,f=(s("34e5"),s("fc05")),v=Object(f["a"])(p,m,g,!1,null,"12e0d759",null),b=v.exports,_=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"},[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 ")])])},w=[],y={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}}},k=y,C=(s("a5b9"),Object(f["a"])(k,_,w,!1,null,"630e8fc2",null)),T=C.exports,x=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"tip-wrap"},[s("i",{staticClass:"redpack-icon"}),1==e.grabType?[s("span",[e._v(e._s(e.$t("public.you")))]),e._v(e._s(e.$t("redPacket.received"))),s("span",{staticClass:"text",on:{click:function(t){return e.$packetGet(e.info)}}},[e._v(e._s(e.$t("chat.redpack")))])]:2==e.grabType?[s("span",[e._v(e._s(e.group.members[e.info.to].nick_name))]),e._v(e._s(e.$t("redPacket.drawYour"))),s("span",{staticClass:"text",on:{click:function(t){return e.$packetGet(e.info)}}},[e._v(e._s(e.$t("chat.redpack")))])]:[e._v("\n "+e._s(e.$t("redPacket.youDraw"))),s("span",[e._v(e._s(e.group.members[e.info.from].nick_name))]),e._v(e._s(e.$t("redPacket.whos"))),s("span",{staticClass:"text",on:{click:function(t){return e.$packetGet(e.info)}}},[e._v(e._s(e.$t("chat.redpack")))])]],2)},I=[],j=s("52c1"),L={name:"redPackTip",props:["info"],computed:Object(c["a"])({},Object(j["e"])(["userId","group"]),{grabType:function(){return this.info.from==this.userId&&this.info.to==this.userId?1:this.info.from==this.userId?2:3}})},M=L,S=(s("cdfc"),Object(f["a"])(M,x,I,!1,null,"bfcd5686",null)),E=S.exports,B=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)},A=[],$={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)}}},R=$,O=Object(f["a"])(R,B,A,!1,null,"579d78e9",null),D=O.exports,P={name:"msgItem",components:{msgTime:b,redPacket:T,redPackTip:E,bubbleWrap:D},props:{msgItem:Object,isPrivate:Boolean,repealMsg:Boolean,joinMsg:String,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(h["o"])(),toolBtnType:""}},watch:{content:function(e,t){1!=this.msg_type&&e==t||this.countPicSize()}},computed:Object(c["a"])({},Object(j["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}}),{isLogin:function(){return!!this.myId},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||""}}),beforeMount:function(){1==this.msg_type&&this.countPicSize()},created:function(){},methods:Object(c["a"])({},Object(j["d"])(["setCopyText","updateChatInputFocus","reSendChatItem","setSessionRepeal"]),Object(j["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=u()(e[1]),s=u()(e[2]),a=t>400?400/t:1,r=s>250?250/s:1,n=Math.min(a,r);this.width=n*t+"px",this.height=n*s+"px"}},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()()-u()(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,a=this.replaceLink(this.replaceEmoji(s)),r="「".concat(t,":").concat(a,"」\n- - - - - - - - - - - - - - -\n");this.$emit("quoteMsg",r),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 a=this.replaceEmoji(s||this.content);this.$copyText(a).then(function(e){t.updateChatInputFocus(!0)},function(e){console.log("Can not copy")}),this.setCopyText(a)},handleShare:function(){this.$showInvite(this.content)},handleDel:function(){this.$emit("deleteMsg",this.hash)},handlePingMsg:function(){this.doPinMsg({hash:this.hash})},handleRevoke:function(){var e=this;this.isPrivate?this.doRepealPersonMsg({hash:this.hash}).then(function(t){e.$store.commit("setSessionRepeal",{me:!0,sessionId:e.curSession}),e.$store.commit("repealChatItem",{hash:e.hash,from:e.from})}):this.doRepealGroupMsg({hash:this.hash})},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?Object(l["a"])(1*e).format("HH:mm"):""}}},N=P,U=(s("fe83"),Object(f["a"])(N,a,r,!1,null,null,null));t["a"]=U.exports},"34d0":function(e,t,s){"use strict";var a=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()},r=[],n=(s("c9db"),s("ad09"),s("514e")),o=s.n(n),i=s("bd31"),u=s("52c1"),c=s("33f8"),l={name:"pinMsg",props:{visible:{type:Boolean,default:!1},msg:{type:String,default:""},hash:{type:String}},data:function(){return{}},computed:Object(i["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(i["a"])({},Object(u["b"])(["doUnpinMsg"]),{handleClose:function(e){var t=this;this.isAdmin?o.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["i"]}},m=l,g=(s("023a"),s("fc05")),h=Object(g["a"])(m,a,r,!1,null,"4c150356",null);t["a"]=h.exports},"34e5":function(e,t,s){"use strict";var a=s("81fe"),r=s.n(a);r.a},3703:function(e,t,s){"use strict";s.d(t,"a",function(){return a});var a={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:"🛑"}]}},"4e81":function(e,t,s){"use strict";var a=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,a){return s("li",{key:a,domProps:{innerHTML:e._s(t.surrogates)},on:{click:function(s){return e.handleClick(t,s)}}})}),0)]),e._l(e.emojiList,function(t,a){return s("div",{key:a},[s("p",{staticClass:"title"},[e._v(e._s(e.$t("emoji."+a)))]),s("ul",e._l(t,function(t,a){return s("li",{key:a,domProps:{innerHTML:e._s(t.surrogates)},on:{click:function(s){return 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,a,r){return s("li",{key:a,class:[{active:e.typeIndex==r+1}],on:{click:function(t){return t.stopPropagation(),e.handleType(r+1)}}},[s("i")])})],2)])},r=[],n=s("badb"),o=s.n(n),i=s("33f8"),u=s("3703"),c=s("4c07"),l={name:"emojiList",props:{emojiShow:Boolean},data:function(){return{emojiList:u["a"],recentList:[],index:0,typeIndex:0,emojiListSel:null,emojiTitleArrSel:[],meechatType:Object(i["o"])()}},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,a=this,r=e.names;this.$emit("addEmoji",o()(r)),this.recentList.length>9&&this.recentList.pop();var n=this.recentList.some(function(e,t){return s=t,r[0]==e.names[0]});n&&this.recentList.splice(s,1),this.recentList.unshift(e),localStorage.setItem("recentEmoji",o()(this.recentList));var i=document.getElementById("recent-emoji");this.$nextTick(function(){a.parseEmoji(i)})},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"}}})},handleScroll:function(){var e=this.emojiListSel.scrollTop,t=this.emojiTitleArrSel.length;Object(i["u"])({wrap:this.emojiListSel,imageArr:this.emojiImageArrSel});for(var s=0;s<t;s++){var a=this.emojiTitleArrSel[s],r=this.emojiTitleArrSel[s+1];(e+20>a.offsetTop&&r&&e<=r.offsetTop||!r&&e+20>a.offsetTop)&&(this.typeIndex=s)}},closeEmojiList:function(){this.$emit("closeEmojiList")}}},m=l,g=(s("6507"),s("fc05")),h=Object(g["a"])(m,a,r,!1,null,null,null);t["a"]=h.exports},5119:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"show",rawName:"v-show",value:e.toolShow,expression:"toolShow"}],staticClass:"tool-wrap",on:{click:function(e){e.stopPropagation()}}},[s("div",{staticClass:"tool-item"},[s("div",{staticClass:"icon-box",on:{click:e.$packetSend}},[s("i",{staticClass:"packet-icon"})]),s("span",{staticClass:"type"},[e._v(e._s(e.$t("chat.redpack")))])]),s("div",{staticClass:"tool-item"},[s("div",{staticClass:"icon-box"},[s("i",{staticClass:"picture-icon"}),s("input",{ref:"inputFile1",attrs:{type:"file",accept:"image/*"},on:{change:e.handleFile}})]),s("span",{staticClass:"type"},[e._v(e._s(e.$t("chat.image")))])]),s("div",{staticClass:"tool-item"},[s("div",{staticClass:"icon-box"},[s("i",{staticClass:"audio-icon"}),s("input",{ref:"inputFile2",attrs:{type:"file",accept:"audio/*"},on:{change:e.handleFile}})]),s("span",{staticClass:"type"},[e._v(e._s(e.$t("chat.audio")))])]),s("div",{staticClass:"tool-item"},[s("div",{staticClass:"icon-box"},[s("i",{staticClass:"video-icon"}),s("input",{ref:"inputFile3",attrs:{type:"file",accept:"video/*"},on:{change:e.handleFile}})]),s("span",{staticClass:"type"},[e._v(e._s(e.$t("chat.video")))])])])},r=[],n=s("33f8"),o={name:"toolbar",props:{toolShow:Boolean,meechatType:Object(n["o"])()},methods:{handleFile:function(e){this.$emit("handleFile",e)},resetInput:function(){this.$refs.inputFile1&&(this.$refs.inputFile1.value=null),this.$refs.inputFile2&&(this.$refs.inputFile2.value=null),this.$refs.inputFile3&&(this.$refs.inputFile3.value=null)}}},i=o,u=(s("838e"),s("fc05")),c=Object(u["a"])(i,a,r,!1,null,"5557f4dc",null);t["a"]=c.exports},"5b59":function(e,t,s){"use strict";s.r(t);s("fd99"),s("ad09");var a=s("a0df"),r=s.n(a),n=(s("9dce"),s("d6e8"),s("b709"),s("e9fc"),s("8973")),o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"app"},on:{mousewheel:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[s("chat-mini",{attrs:{show:e.show,groupId:e.groupId,width:e.outWidth,height:e.outHeight}})],1)},i=[],u=s("bd31"),c=s("0649"),l=s.n(c),m=s("52c1"),g=s("33f8"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"mini-wrap"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.showChat,expression:"showChat"}],staticClass:"mini-body",class:{"moblie-wrap":e.isMobile}},[s("div",{staticClass:"box"},[s("div",{staticClass:"box-hd"},[s("div",{staticClass:"btn-menu",class:[{active:e.personUnRead>0}],on:{click:function(t){t.stopPropagation(),e.showMenuExtra=!e.showMenuExtra}}}),s("div",{staticClass:"box-title",on:{click:function(t){t.stopPropagation(),e.showMenuExtra=!e.showMenuExtra}}},[e._v(e._s(e.group.groupName))]),s("div",{staticClass:"btn-close",on:{click:function(t){return e.handleToggleChat(!1)}}}),e.showLoginBtn?s("p",{staticClass:"user-tips",on:{click:e.handleLogin}},[s("em",[e._v(e._s(e.$t("mini.server")))])]):s("a",{staticClass:"user-tips",class:[{active:e.serverUnRead>0}],attrs:{href:e.linkToCreator,target:"meechatpc"},on:{click:function(t){return e.clearPmUnread(1)}}},[s("em",[e._v(e._s(e.$t("mini.server")))])]),s("ul",{directives:[{name:"show",rawName:"v-show",value:e.showMenuExtra,expression:"showMenuExtra"}],staticClass:"menu-extra"},[e.userInfo&&e.userInfo.user_id?s("div",{staticClass:"info clearfix"},[e.userInfo.cover_photo?s("img",{staticClass:"avatar",attrs:{src:e.userInfo.cover_photo+"?imageview/0/w/180"}}):s("span",{staticClass:"avatar avatar-bg"},[e._v(e._s(e.userInfo.nick_name.slice(0,2).toUpperCase()||e.userInfo.user_name.slice(0,2).toUpperCase()))]),s("span",{staticClass:"account-info"},[s("em",[e._v(e._s(e.userInfo.nick_name||e.userInfo.user_name))]),s("i",{staticClass:"login-out",attrs:{href:"javascript:void(0);"},on:{click:e.handleLogout}},[e._v(e._s(e.$t("mini.logout")))])])]):e._e(),e.userInfo&&e.userInfo.user_id?s("li",{on:{click:e.$showUserInfo}},[s("a",{attrs:{href:"#"}},[e._v(e._s(e.$t("mini.accountSetting")))])]):e._e(),e.group.groupId?s("li",[s("a",{attrs:{href:"/#/group/"+e.group.groupId,target:"meechatpc"},on:{click:function(t){return e.clearPmUnread(2)}}},[e._v(e._s(e.$t("mini.openWeb"))),s("em",{directives:[{name:"show",rawName:"v-show",value:e.personUnRead>0,expression:"personUnRead>0"}]},[e._v(e._s(e.personUnRead))])])]):e._e(),s("li",{on:{click:e.changeLang}},[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s("en"==e.curLang?"中文":"English"))])]),e._m(0)])]),s("chat-pin",e._b({on:{pinMsgClose:e.pinMsgClose,scrollToView:e.scrollToView}},"chat-pin",e.pinMsg,!1)),s("div",{ref:"msgBox",staticClass:"box-bd"},[s("div",{ref:"scrollWrap",staticClass:"scroller",on:{scroll:function(t){return t.preventDefault(),e.handleScroll(t)}}},[s("div",{ref:"msgWrap",staticClass:"msg-wrap"},[e.lockEnd?s("div",{staticClass:"msg-top-more"},[s("em",[e._v(e._s(e.$t("chat.noMore")))])]):e._e(),e.lockMore&&!e.lockEnd?s("div",{staticClass:"msg-top-load"},[s("i",{staticClass:"msg-loading-icon"})]):e._e(),e._l(e.chatList,function(t){return s("msg-item",e._b({key:t.hash,attrs:{msgItem:t,isMobile:e.isMobile,isAdmin:e.isAdmin},on:{quoteMsg:e.quoteMsg,deleteMsg:e.deleteMsg}},"msg-item",t,!1))})],2)]),s("at-me",{staticClass:"mini",attrs:{atList:e.atList},on:{scrollToMsg:e.scrollToMsg}}),e.unreadNums>0&&e.enableScroll&&!e.isBottom?s("div",{staticClass:"msg-unread",on:{click:e.doSetRead}},[s("em",[s("i",{staticClass:"el-icon-d-arrow-right"}),e._v(e._s(e.unreadNums)+e._s(e.$t("chat.unreadMsg")))])]):e._e()],1),e.isJoin?s("div",{staticClass:"box-ft"},[e.atShow?s("chat-at",{ref:"chatAt",attrs:{curInd:e.atInd,filterList:e.filterMembers},on:{atperson:e.atPerson}}):e._e(),e.showLoginBtn?s("div",{staticClass:"input-ctrl"},[s("span",{staticClass:"enable",on:{click:e.handleLogin}},[e._v(e._s(e.$t("mini.login")))])]):s("div",{staticClass:"input-con"},[s("div",{staticClass:"more-icon",on:{click:function(t){return t.stopPropagation(),e.handleMoreClick(t)}}}),s("form",{staticClass:"input-wrap",on:{submit:e.handleSend}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.inputMsg,expression:"inputMsg"}],ref:"chatInput",style:{height:e.inputHeight},attrs:{cols:"1",rows:"1",placeholder:"Write a message"},domProps:{value:e.inputMsg},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleUp(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleDown(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?null:"button"in t&&0!==t.button?null:e.handleLeft(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?null:"button"in t&&2!==t.button?null:e.handleRight(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDel(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEsc(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyDown(t)}],focus:e.handleFocus,blur:e.handleBlur,input:function(t){t.target.composing||(e.inputMsg=t.target.value)}}})]),s("div",{staticClass:"emoji-icon",on:{click:function(t){return t.stopPropagation(),e.handleEmojiClick(t)}}}),s("div",{staticClass:"btn-send",on:{click:e.handleSend}},[e._v(e._s(e.$t("chat.send")))])]),s("toolbar",{ref:"toolbar",attrs:{toolShow:e.toolShow},on:{handleFile:e.handleFile}}),s("emoji",{directives:[{name:"show",rawName:"v-show",value:e.showEmoji,expression:"showEmoji"}],attrs:{emojiShow:e.showEmoji},on:{addEmoji:e.addEmoji,closeEmojiList:e.closeEmojiList}})],1):s("div",{staticClass:"box-ft"},[s("div",{staticClass:"btn-join",on:{click:function(t){return e.joinGroup()}}},[e._v(e._s(e.$t("chat.joinGroup")))])])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isLoadingRoom,expression:"isLoadingRoom"}],staticClass:"pub-loading"})]),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.showChat,expression:"!showChat"}],staticClass:"mini-control",on:{click:function(t){return e.handleToggleChat(!0)}}},[s("div",{staticClass:"meechat-icon"},[s("i",{staticClass:"icon-logo"}),s("em",{directives:[{name:"show",rawName:"v-show",value:e.unreadCounts>0,expression:"unreadCounts>0"}]},[e._v("+"+e._s(e.unreadCounts))])])]),s("transition",{attrs:{name:"msgbox-fade"}},[e.loginBoxVisible?s("div",{staticClass:"pub-wrapper"},[s("div",{staticClass:"pub-mask",on:{click:function(t){e.loginBoxVisible=!1}}}),s("login-box",{on:{initMiniLoginCallback:e.initMiniLoginCallback}})],1):e._e()])],1)},d=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("li",[s("a",{attrs:{href:"https://www.mee.chat/",target:"_blank"}},[e._v("\n Powered by "),s("span",[e._v("MeeChat")])])])}],p=(s("face"),s("a700")),f=s.n(p),v=s("41dd"),b=s.n(v),_=s("9caf"),w=s.n(_),y=(s("3b70"),s("dfe5")),k=s.n(y),C=(s("4694"),s("0adb"),s("b5aa"),s("4457")),T=s("badb"),x=s.n(T),I=(s("dcfb"),s("46b5"),s("2f35")),j=s("4e81"),L=s("a1aa"),M=s("9360"),S=s("34d0"),E=s("5119"),B=s("e332"),A=s("76a4"),$=s("b16d"),R=s("8869"),O=s("455d"),D=s("3703"),P=s("5975"),N=s("1015"),U={name:"chatMini",mixins:[O["a"],R["c"],R["d"],R["b"]],components:{msgItem:I["a"],emoji:j["a"],chatAt:L["a"],chatPin:S["a"],atMe:M["a"],toolbar:E["a"],loginBox:N["a"]},props:{width:{type:Number,default:274},height:{type:Number,default:390},show:{type:Boolean,default:!1},groupId:[Number,String]},computed:Object(u["a"])({},Object(m["e"])(["account","group","userId","userInfo"]),Object(m["e"])({chatInputFocus:function(e){return e.group.chatInputFocus},blockList:function(e){return e.group.blockList},pinMsg:function(e){return e.group.pinMsg},atList:function(e){return e.group.atList},chatList:function(e){return e.group.chatList},unreadNums:function(e){return e.group.unreadNums},sessionList:function(e){return e.chat.sessionList},isJoin:function(e){return e.group.isJoin}}),{emojiMap:function(){var e={};for(var t in D["a"]){var s=D["a"][t];s.forEach(function(t){var s=x()(t.names),a=t.surrogates;e[s]=a})}return e},linkToCreator:function(){var e=this.group,t=e.creator,s=e.userId,a=t>s?"".concat(s,"-").concat(t):"".concat(t,"-").concat(s);return"".concat(location.origin,"/#/pm/").concat(a)},isAdmin:function(){var e=this;return this.group.adminList&&this.group.adminList.some(function(t){return t==e.userId})||this.group.creator==this.userId}}),data:function(){return{loginBoxVisible:!1,isLoadingRoom:!0,isMobile:Object(g["t"])(),showChat:!!this.show,showEmoji:!1,showMenuExtra:!1,showLoginBtn:!0,lockMore:!1,isScrollToView:!1,lockEnd:!1,loading:!1,unreadCounts:0,inputMsg:"",atInd:0,inputHeight:18,enableScroll:!1,isBottom:!0,toolShow:!1,chatImageArrSel:null,serverUnRead:0,personUnRead:0}},watch:{inputMsg:function(e,t){var s=this,a=this.$refs.chatInput;this.inputHeight="auto",this.$nextTick(function(){s.inputHeight=Math.max(18,Math.min(a.scrollHeight,75))+"px"})},chatList:function(e){var t=e[e.length-1];(t&&4==t.msg_type||this.isBottom)&&this.$nextTick(this.resizeToBottom)},chatInputFocus:function(e,t){if(!this.showLoginBtn){var s=this.$refs.chatInput;e?document.activeElement!==s&&(this.placeEnd(s),s.focus()):document.activeElement===s&&s.blur()}}},mounted:function(){var e=Object(C["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.groupId,useCache:!1}),e.next=3,this.checkLocalLogin();case 3:if(t=e.sent,!t){e.next=8;break}return this.showLoginBtn=!1,e.next=8,this.getUserInfo();case 8:this.$nextTick(this.initChat),this.$nextTick(this.initMiniSocket),document.getElementById("app").addEventListener("contextmenu",function(e){return e.preventDefault()}),document.addEventListener("paste",this.initPaste),document.addEventListener("drop",this.initDrop),document.addEventListener("dragover",this.initDragOver),document.body.addEventListener("click",function(){s.showEmoji=!1,s.showMenuExtra=!1,s.toolShow=!1});case 15:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){document.removeEventListener("paste",this.initPaste),document.removeEventListener("drop",this.initDrop),document.removeEventListener("dragover",this.initDragOver)},methods:Object(u["a"])({},Object(m["d"])(["initGroup","setUserId","setToken","addChatItem","deleteChatItem","updateChatInputFocus","updateGroupBlockList","updateMembers","updateGroupPinMsg","repealChatItem","removeAtListLast","clearAtList","initState","addPacketItem","addPacketTip","addUnreadNums","resetUnreadNums","addPinChatItem"]),Object(m["b"])(["getUserInfo","setAccount","doGameLogin","doScatterLogout","getGroupInfo","getNewMsgFromDb","getNewMsg","getHistoryMsg","doSendMsg","doSendFile","updateSessionLastmsg"]),{joinGroup:function(){var e=Object(C["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}(),handleMoreClick:function(){this.showEmoji=!1,this.toolShow=!this.toolShow,this.checkNeedToBottom()},handleEmojiClick:function(){this.toolShow=!1,this.showEmoji=!this.showEmoji,this.checkNeedToBottom()},checkNeedToBottom:function(){var e=this;this.isBottom&&this.$nextTick(function(){e.resizeToBottom()})},initMiniLoginCallback:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.initMiniSocket();case 2:return this.showLoginBtn=!1,this.initGroup({userId:this.userId,groupId:this.groupId,useCache:!1}),e.next=6,this.getUserInfo();case 6:this.loginBoxVisible=!1;case 7:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),initMiniSocket:function(){var e=this;if(window.WebSocket){var t=Object(B["a"])()+"?group_id=".concat(this.groupId);this.socket&&(this.socket.destroy(),this.socket=null),this.socket=new A["a"](t,{autoConnect:!0,reconnection:!0,reconnectionDelay:2e3}),this.socket.on("open",function(e){}),this.socket.on("message",function(t){t=JSON.parse(t),t.channel.match("chat:group")&&("msg"===t.data.type&&(e.getNewMsg({newMsg:!0}),t.data.from!=e.userId&&(e.showChat?e.addUnreadNums():(0===e.unreadCounts&&e.postResize(130,50),e.unreadCounts++))),"repeal"===t.data.type&&e.repealChatItem(t.data),"block"===t.data.type&&e.updateGroupBlockList({type:"add",id:t.data.to}),"unblock"===t.data.type&&e.updateGroupBlockList({type:"delete",id:t.data.to}),"join"===t.data.type&&e.updateMembers(t.data.user_info),"pin_msg"===t.data.type&&e.updateGroupPinMsg(t.data.pinMsg),"unpin_msg"===t.data.type&&e.updateGroupPinMsg(null),"new_redpack"===t.data.type&&(e.addPacketItem(t.data),t.data.from==e.userId&&e.$nextTick(e.resizeToBottom)),"grab_redpack"===t.data.type&&(t.data.from!=e.userId&&t.data.to!=e.userId||e.addPacketTip(t.data)))})}else console.log("Error: WebSocket is not supported .")},initChat:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.handleToggleChat(this.show),this.isLoadingRoom=!0,e.next=4,this.getGroupInfo();case 4:return e.next=6,this.getNewMsgFromDb();case 6:return e.next=8,this.getNewMsg();case 8:if(this.isLoadingRoom=!1,this.showLoginBtn){e.next=12;break}return e.next=12,this.getPmUnRead();case 12:this.show&&this.$nextTick(this.resizeToBottom),this.chatImageArrSel=this.$refs.scrollWrap.getElementsByTagName("img");case 14:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getPmUnRead:function(){var e=this;P["a"].session.getMiniUnRead().then(function(t){var s=t.data;e.personUnRead=s.data["0"],e.serverUnRead=s.data[e.groupId]||0})},clearPmUnread:function(e){1==e?this.serverUnRead=0:this.personUnRead=0},handleLogout:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.doScatterLogout(),this.showLoginBtn=!0,self!==top&&(localStorage.removeItem("account"),this.postMessager.send({action:"meechat:logout"})),this.$store.commit("setUserInfo",null),location.replace(location.href.replace("show=false","show=true"));case 5:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),handleLogout2:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.doScatterLogout(),this.showLoginBtn=!0;case 2:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),handleLogin:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.loginBoxVisible=!0;case 1:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),resizeToBottom:function(){this.$refs.scrollWrap.scrollTop=this.$refs.msgWrap.offsetHeight,this.resetUnreadNums(),this.isBottom=!0,Object(g["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"})},doSetRead:function(){this.resizeToBottom()},addEmoji:function(e){this.inputMsg+=e},handleScroll:function(e){var t=this;if(this.enableScroll=!0,e.target.focus(),this.group.chatList.length){var s=this.$refs.msgWrap,a=s.offsetHeight,r=e.target.scrollTop;0!==r||this.lockMore||null!==this.group.endHash&&(this.lockMore=!0,this.getHistoryMsg().then(function(n){if("end"===n)t.lockEnd=!0;else{var o=a-r;t.$nextTick(function(){e.target.scrollTop=s.offsetHeight-o,t.ps&&t.ps.update(),setTimeout(function(){t.lockMore=!1},800)})}})),r+e.target.offsetHeight>a?(this.isBottom=!0,this.unreadNums&&this.resetUnreadNums()):this.isBottom=!1,Object(g["u"])({wrap:this.$refs.scrollWrap,imageArr:this.chatImageArrSel,derection:"up"})}},handleSend:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(t){var s,a,r,n,o,i,u,c=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.blockList.some(function(e){return e==c.userId})){e.next=3;break}return k()({message:this.$t("chat.youAreBan"),type:"error"}),e.abrupt("return");case 3:for(r in s=this.inputMsg,a=s.match(/\["[a-z0-9A-Z_]+"\]/g),a)n=this.emojiMap[a[r]],n&&(s=s.replace(a[r],n));if(o=s.trim(),0!==o.length){e.next=10;break}return k()({message:this.$t("chat.cannotBeEmpty"),type:"warning"}),e.abrupt("return");case 10:if(i={type:0,msg:o},this.inputMsg="",!this.group.members[this.userId]){e.next=20;break}return u=w()(),this.addChatItem({from:this.userId,content:o,hash:"".concat(u),timestamp:u,createTime:u,msg_type:"0",loading:!0}),i.createTime=u,e.next=18,this.doSendMsg(i);case 18:e.next=22;break;case 20:return e.next=22,this.doSendMsg(i);case 22:return this.$nextTick(function(){this.resizeToBottom()}),t.preventDefault(),e.abrupt("return",!1);case 25:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),placeEnd:function(e){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var s=window.getSelection();s.removeAllRanges(),s.addRange(t)},initDrop:function(e){var t=this;e.preventDefault();var s=b()(e.dataTransfer.files);s.forEach(function(e){return t.handleFile(e)})},initDragOver:function(e){e.preventDefault()},initPaste:function(e){var t=this,s=(e.clipboardData||window.clipboardData).items;s&&s.length&&b()(s).forEach(function(e){var s=e.getAsFile();s&&t.handleFile(s)})},preHandleFile:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(t){var s,a,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.type,a=t.size,!s.match("video")){e.next=6;break}return e.abrupt("return",a>3145728?f.a.reject(new Error(t)):f.a.resolve({type:2,res:t}));case 6:if(!s.match("audio")){e.next=10;break}return e.abrupt("return",a>2097152?f.a.reject(new Error(t)):f.a.resolve({type:3,res:t}));case 10:if(!s.match("image")){e.next=15;break}return e.next=13,new $["a"]({file:t,maxSize:1048576});case 13:return r=e.sent,e.abrupt("return",{type:1,preview:r.base64,res:r.res});case 15:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),handleFile:function(){var e=Object(C["a"])(regeneratorRuntime.mark(function e(t){var s,a,r,n,o=this;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:a=e.sent,r={res:a.res},this.group.members[this.userId]&&(n=w()(),this.addChatItem({content:a.preview||"",from:this.userId,hash:"".concat(n),msg_type:a.type,timestamp:n,res:a.res,loading:!0,createTime:n}),r.createTime=n),this.doSendFile(r),this.toolShow=!1,setTimeout(function(){o.$refs.toolbar.resetInput(),o.resizeToBottom()},100),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](1),k()({message:this.$t("chat.maxUploadTips"),type:"warning"});case 15:case"end":return e.stop()}},e,this,[[1,12]])}));function t(t){return e.apply(this,arguments)}return t}(),handleToggleChat:function(e){var t=this;e?(this.showChat=!0,this.unreadCounts=0,this.$nextTick(function(){t.postResize(t.width,t.height+16),t.resizeToBottom()})):(this.showChat=!1,this.$nextTick(function(){t.postResize(56,50)}))},postResize:function(e,t){var s={action:"meechat:resize",data:{ch:t,cw:e}};return window.parent.postMessage(s,"*")},quoteMsg:function(e){this.inputMsg=e},deleteMsg:function(e){this.deleteChatItem(e)},pinMsgClose:function(){this.pinMsg.visible=!1},scrollToView:function(){var e=this;if(this.pinMsg){var t=this.pinMsg.hash,s=this.group.chatList.findIndex(function(e){return e.hash===t});s<0&&(this.addPinChatItem(this.pinMsg),s=0);var a=this.$refs.msgWrap.getElementsByClassName("msg-item")[s],r=s>=0?a.offsetTop-(this.pinMsg?40:10):a.offsetTop;Object(g["x"])(this.$refs.scrollWrap,r,a),this.isScrollToView=!0,setTimeout(function(){e.isScrollToView=!1,Object(g["u"])({wrap:e.$refs.scrollWrap,imageArr:e.chatImageArrSel,derection:"up"})},2e3)}},scrollToMsg:function(e){var t=this.atList[e].hash,s=this.group.chatList.findIndex(function(e){return e.hash===t});if(s>=0){var a=this.$refs.msgWrap.querySelectorAll(".msg-item").item(s);Object(g["x"])(this.$refs.scrollWrap,a.offsetTop-(this.pinMsg?40:10),a)}this.removeAtListLast()}})},z=U,F=z,V=(s("e859"),s("fc05")),G=Object(V["a"])(F,h,d,!1,null,"608cb71a",null),W=G.exports,H={name:"App",components:{chatMini:W},data:function(){var e=Object(g["q"])("width")||window.innerWidth,t=Object(g["q"])("height")||window.innerHeight-16;return{show:"true"===Object(g["q"])("show"),groupId:Object(g["q"])("groupId")||10001,outWidth:l()(e),outHeight:l()(t)}},methods:Object(u["a"])({},Object(m["d"])(["setPublicKey"]),Object(m["b"])(["setScatter","setAccount","doScatterLogin"])),created:function(){}},J=H,Y=(s("70ed"),Object(V["a"])(J,o,i,!1,null,null,null)),q=Y.exports,Z=s("1c04"),X=s("8134"),Q=s.n(X),K=s("6032"),ee=(s("eed8"),s("45ab")),te=s("21f7"),se=s("8f20"),ae=s("3488"),re=s("5a09"),ne=s("43e0"),oe=s("7199"),ie=s.n(oe),ue=s("9729"),ce=s("6103");s("3537");function le(e){requestAnimationFrame(le),ie.a.update(e)}n["default"].use(K["a"],Z["a"]),n["default"].use(Q.a),n["default"].use(ee["a"]),n["default"].use(te["a"]),n["default"].use(ne["a"],Z["a"]),n["default"].use(re["a"],Z["a"]),n["default"].use(se["a"],Z["a"]),n["default"].use(ae["a"],Z["a"]),n["default"].use(ue["a"]),n["default"].use(r.a),n["default"].config.productionTip=!1,new n["default"]({render:function(e){return e(q)},i18n:ce["a"],store:Z["a"]}).$mount("#app"),requestAnimationFrame(le)},"5ba2":function(e,t,s){},6507:function(e,t,s){"use strict";var a=s("ed9a"),r=s.n(a);r.a},"6a00":function(e,t,s){e.exports=s.p+"img/loading.b4490fa6.gif"},"70ed":function(e,t,s){"use strict";var a=s("0627"),r=s.n(a);r.a},7908:function(e,t,s){},"81fe":function(e,t,s){},"838e":function(e,t,s){"use strict";var a=s("1eac"),r=s.n(a);r.a},"92ec":function(e,t,s){"use strict";var a=s("2502"),r=s.n(a);r.a},9360:function(e,t,s){"use strict";var a=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()},r=[],n=s("bd31"),o=s("c1f9"),i=s.n(o),u=s("52c1"),c={name:"atMe",props:{atList:[Array]},computed:{atNum:function(){return i.a.unionBy(this.atList,"userId").length}},data:function(){return{totalVisible:!0,itemVisible:!0}},methods:Object(n["a"])({},Object(u["d"])(["clearAtList"]),{scrollToMsg:function(){this.$emit("scrollToMsg",this.atList.length-1)},closeAtme:function(){this.itemVisible=!1,this.clearAtList()}})},l=c,m=(s("1c20"),s("fc05")),g=Object(m["a"])(l,a,r,!1,null,"6ba1fb76",null);t["a"]=g.exports},a1aa:function(e,t,s){"use strict";var a=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,a){return s("div",{key:a,staticClass:"item",class:{active:a==e.curInd},on:{click:function(t){return t.stopPropagation(),e.atPerson(a)}}},[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)])])},r=[],n=s("bd31"),o=(s("46b5"),s("52c1")),i={name:"chatAt",props:{curInd:{type:Number},filterList:{type:Array}},computed:Object(n["a"])({},Object(o["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=i,c=(s("92ec"),s("fc05")),l=Object(c["a"])(u,a,r,!1,null,"456ce12a",null);t["a"]=l.exports},a5b9:function(e,t,s){"use strict";var a=s("d633"),r=s.n(a);r.a},b16d:function(e,t,s){"use strict";s("d0d1"),s("0adb"),s("c7d9");var a=s("0649"),r=s.n(a),n=s("a700"),o=s.n(n),i=s("45f1"),u=s.n(i),c=s("a585"),l=s("26cb"),m=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 o.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(l["a"])(e,[{key:"mini",value:function(e,t){var s=this,a=this.file,n=this.quantity;try{var o=new FileReader,i=new Image;o.readAsDataURL(a),o.onload=function(e){i.src=e.target.result},i.onload=function(){var t=document.createElement("canvas"),a=t.getContext("2d"),o=i.width,u=i.height;t.width=o,t.height=u,a.clearRect(0,0,o,u),a.drawImage(i,0,0,o,u);var c=t.toDataURL("image/jpeg",n),l=s.dataURLtoBlob(c);if(l.size>s.maxSize){a.clearRect(0,0,o,u);var m=s.maxSize/l.size*.8,g=r()(o*m),h=r()(u*m);t.width=g,t.height=h,a.drawImage(i,0,0,o,u,0,0,g,h),c=t.toDataURL("image/jpeg"),l=s.dataURLtoBlob(c)}e({base64:c,res:l})}}catch(u){t(u)}}},{key:"blobToDataURL",value:function(e){return new o.a(function(t,s){var a=new FileReader;a.onload=t,a.readAsDataURL(e)})}},{key:"dataURLtoBlob",value:function(e){var t=e.split(","),s=t[0].match(/:(.*?);/)[1],a=atob(t[1]),r=a.length,n=new Uint8Array(r);while(r--)n[r]=a.charCodeAt(r);return new Blob([n],{type:s})}}]),e}();t["a"]=m},bcf8: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=="},cdfc:function(e,t,s){"use strict";var a=s("f064"),r=s.n(a);r.a},d633:function(e,t,s){},e859:function(e,t,s){"use strict";var a=s("7908"),r=s.n(a);r.a},ed9a:function(e,t,s){},f064:function(e,t,s){},fe83:function(e,t,s){"use strict";var a=s("5ba2"),r=s.n(a);r.a}});
|