(function(e){function t(t){for(var a,o,i=t[0],u=t[1],c=t[2],m=0,h=[];ma?a/t:1,n=s>250?250/s:1,o=Math.min(r,n);this.width=o*t+"px",this.height=o*s+"px"}}},created:function(){},methods:Object(n["a"])({},Object(T["d"])(["updateChatInputFocus","reSendChatItem","setSessionRepeal"]),Object(T["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)},imgLoad:function(e){this.width="auto",this.height="auto"},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){var t=this;this.showToolbar?this.hideToolbar(e):(this.isMobile||setTimeout(function(){document.body.addEventListener("click",t.hideToolbar,!1),document.body.addEventListener("contextmenu",t.hideToolbar,!1)},0),this.showToolbar=!0,this.block=this.blockList.some(function(e){return e==t.userId}),this.revokeTimeAllow=Date.now()-parseInt(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=//gi;return e.replace(t,function(e){var t=e.match(/alt=.+?&*"/g),s=t&&t[0].replace(/"|alt=|/g,"");return s})},handleQuote:function(){var e=this,t=this.name,s=this.content,a=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")})},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?i()(1*e).format("HH:mm"):""}}},R=D,O=(s("fe83"),Object(g["a"])(R,a,r,!1,null,null,null));t["a"]=O.exports},3207:function(e,t,s){},"32d6":function(e,t,s){},"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("9e1f"),s("450d"),s("6ed5")),o=s.n(n),i=s("be94"),u=s("2f62"),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,h=(s("023a"),s("2877")),g=Object(h["a"])(m,a,r,!1,null,"4c150356",null);t["a"]=g.exports},"34e5":function(e,t,s){"use strict";var a=s("74ac"),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:"๐Ÿ›‘"}]}},"3abf":function(e,t,s){},"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){e.handleClick(t,s)}}})}))]),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){e.handleClick(t,s)}}})}))])})],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){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){t.stopPropagation(),e.handleType(r+1)}}},[s("i")])})],2)])},r=[],n=(s("6762"),s("2fdb"),s("cadf"),s("551c"),s("097d"),s("33f8")),o=s("3703"),i=s("4c16"),u={name:"emojiList",props:{emojiShow:Boolean},data:function(){return{emojiList:o["a"],recentList:[],index:0,typeIndex:0,emojiListSel:null,emojiTitleArrSel:[],meechatType:Object(n["m"])()}},watch:{emojiShow:function(e){var t=this;e?(document.body.addEventListener("touchstart",this.closeEmojiList),document.body.addEventListener("click",this.closeEmojiList)):(document.body.removeEventListener("touchstart",this.closeEmojiList),document.body.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=this,a=e.names;if(this.$emit("addEmoji",JSON.stringify(a)),this.recentList.length>9&&this.recentList.pop(),this.recentList.includes(e)){var r=this.recentList.indexOf(e);this.recentList.splice(r,1)}this.recentList.unshift(e),localStorage.setItem("recentEmoji",JSON.stringify(this.recentList));var n=document.getElementById("recent-emoji");this.$nextTick(function(){s.parseEmoji(n)})},parseEmoji:function(e){var t=s("c446");i["a"].parse(e,{callback:function(e,s){return t},attributes:function(e,t){return{originurl:"https://w2.meechat.me/emoji/"+t+".svg"}}})},handleScroll:function(){for(var e=this.emojiListSel.scrollTop,t=this.emojiListSel.clientHeight,s=this.emojiImageArrSel.length,a=this.emojiTitleArrSel.length,r=0;rc.offsetTop&&l&&e<=l.offsetTop||!l&&e+20>c.offsetTop)&&(this.typeIndex=u)}},closeEmojiList:function(){this.$emit("closeEmojiList")}}},c=u,l=(s("6507"),s("2877")),m=Object(l["a"])(c,a,r,!1,null,null,null);t["a"]=m.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",name:"res",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",name:"res",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",name:"res",accept:"video/*"},on:{change:e.handleFile}})]),s("span",{staticClass:"type"},[e._v(e._s(e.$t("chat.video")))])])])},r=[],n={name:"toolbar",props:{toolShow:Boolean},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)}}},o=n,i=(s("cf15"),s("2877")),u=Object(i["a"])(o,a,r,!1,null,"27a4a954",null);t["a"]=u.exports},"5b59":function(e,t,s){"use strict";s.r(t);s("be4f"),s("450d");var a=s("896a"),r=s.n(a),n=(s("cadf"),s("551c"),s("097d"),s("2b0e")),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("be94"),c=s("2f62"),l=s("33f8"),m=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)+" ("+e._s(e.group.membersNum)+")")]),s("div",{staticClass:"btn-close",on:{click:function(t){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){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.account&&e.userInfo?s("div",{staticClass:"info clearfix"},[e.userInfo.cover_photo?s("img",{staticClass:"avatar",attrs:{src:e.userInfo.cover_photo}}):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.account&&e.userInfo?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){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),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"},["loading"===e.showLoginBtn?s("span",[e._v(e._s(e.$t("mini.logining")))]):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"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?e.handleUp(t):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?e.handleDown(t):null},function(t){return"button"in t||!e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])?"button"in t&&0!==t.button?null:e.handleLeft(t):null},function(t){return"button"in t||!e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])?"button"in t&&2!==t.button?null:e.handleRight(t):null},function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete"])?e.handleDel(t):null},function(t){return"button"in t||!e._k(t.keyCode,"esc",27,t.key,"Escape")?e.handleEsc(t):null},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleKeyDown(t):null}],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)],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.showChat,expression:"!showChat"}],staticClass:"mini-control",on:{click:function(t){e.handleToggleChat(!0)}}},[s("i",{directives:[{name:"show",rawName:"v-show",value:e.atList.length,expression:"atList.length"}],staticClass:"at-tip"},[e._v("@")]),e.unreadCounts>0?s("ul",[s("li",{staticClass:"msg-tips"},[s("em",[e._v("+"+e._s(e.unreadCounts))])]),s("li",{staticClass:"user-tips"},[s("em",[e._v(e._s(e.group.membersNum))])])]):s("div",{staticClass:"meechat-icon"},[s("i",{staticClass:"user-tips"},[s("em",[e._v(e._s(e.group.membersNum))])])])])])},h=[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")])])])}],g=(s("20d6"),s("5df3"),s("1c4c"),s("0fb7"),s("f529")),d=s.n(g),p=(s("7514"),s("a481"),s("4917"),s("96cf"),s("1da1")),f=(s("ac6a"),s("c5f6"),s("2f35")),v=s("4e81"),b=s("a1aa"),_=s("9360"),w=s("34d0"),k=s("5119"),y=s("e332"),C=s("76a4"),T=s("53ca");function I(e){if(e)return j(e)}function j(e){for(var t in I.prototype)e[t]=I.prototype[t];return e}function L(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",s=arguments.length>1?arguments[1]:void 0;if(!(this instanceof L))return new L(t,s);t&&"object"===Object(T["a"])(t)&&(s=t,t=void 0),I(this),s=s||{},s.path=s.path||"/",this.opts=s,this.target=t,this.requestQueue={},window.addEventListener("message",function(t){e.msgHandler(t)},!1)}I.prototype.on=I.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},I.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},I.prototype.off=I.prototype.removeListener=I.prototype.removeAllListeners=I.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0===arguments.length)return this._callbacks={},this;var s,a=this._callbacks["$"+e];if(!a)return this;if(1===arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;rs?"".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{isMobile:Object(l["p"])(),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,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(p["a"])(regeneratorRuntime.mark(function e(){var t,s,a,r,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){"meechat:setShow"===e.action?n.handleToggleChat(e.show):"meechat:logout"===e.action&&n.handleLogout2()},this.postMessager=new x("*",{callback:t}),window.postMessager=this.postMessager,this.initGroup({userId:this.userId,groupId:this.groupId,useCache:!1}),s=localStorage.getItem("user_id"),a=localStorage.getItem("token"),r=localStorage.getItem("account"),!(s&&a&&r)){e.next=17;break}if(this.setUserId(s),this.setToken(a),this.setAccount(JSON.parse(r)),this.showLoginBtn=!1,self!==top){e.next=15;break}return e.next=15,this.scatterConnect();case 15:return e.next=17,this.getUserInfo();case 17:this.$nextTick(this.initChat),this.$nextTick(this.initMiniSocket),document.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(){n.showEmoji=!1,n.showMenuExtra=!1,n.toolShow=!1});case 24:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),beforeDestroy:function(){document.removeEventListener("paste",this.initPaste),document.removeEventListener("drop",this.initDrop),document.removeEventListener("dragover",this.initDragOver)},methods:Object(u["a"])({},Object(c["d"])(["initGroup","setUserId","setToken","addChatItem","deleteChatItem","updateChatInputFocus","updateGroupBlockList","updateMembers","updateGroupPinMsg","repealChatItem","removeAtListLast","clearAtList","initState","addPacketItem","addPacketTip","addUnreadNums","resetUnreadNums"]),Object(c["b"])(["getUserInfo","setAccount","doGameLogin","doScatterLogout","getGroupInfo","getNewMsgFromDb","getNewMsg","getHistoryMsg","doSendMsg","doSendFile","doContractLogin","updateSessionLastmsg"]),{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()})},initMiniSocket:function(){var e=this;if(window.WebSocket){var t=Object(y["a"])()+"?group_id=".concat(this.groupId);this.socket&&(this.socket.destroy(),this.socket=null),this.socket=new C["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(p["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.handleToggleChat(this.show),e.next=3,this.getGroupInfo();case 3:return e.next=5,this.getNewMsgFromDb();case 5:return e.next=7,this.getNewMsg();case 7:if(this.showLoginBtn){e.next=10;break}return e.next=10,this.getPmUnRead();case 10:this.show&&this.$nextTick(this.resizeToBottom);case 11:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getPmUnRead:function(){var e=this;A["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(p["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),this.$store.commit("initChatData"),this.$store.commit("initGroupData"),location.replace(location.href.replace("show=false","show=true"));case 7:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),handleLogout2:function(){var e=Object(p["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)}));return function(){return e.apply(this,arguments)}}(),handleLogin:function(){var e=Object(p["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.showLoginBtn="loading",self!==top?this.handleParentLogin():this.scatterConnect();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),scatterConnect:function(){var e=Object(p["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.loginEos();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getParentIdentity:function(){var e=Object(p["a"])(regeneratorRuntime.mark(function e(){var t,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(self===top){e.next=13;break}return e.prev=1,e.next=4,this.postMessager.send({action:"meechat:getIdentity"});case 4:t=e.sent,s=t.accounts.find(function(e){return"eos"===e.blockchain}),localStorage.setItem("account",JSON.stringify(s)),this.setAccount(s),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),this.showLoginBtn=!0;case 13:case"end":return e.stop()}},e,this,[[1,10]])}));return function(){return e.apply(this,arguments)}}(),handleParentLogin:function(){var e=Object(p["a"])(regeneratorRuntime.mark(function e(){var t,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getParentIdentity();case 3:if(this.account){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this.doContractLogin();case 7:location.replace(location.href.replace("show=false","show=true")),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](0),e.t0.type||(t=JSON.parse(e.t0),s=t.error.details,d()({message:s[0].message,type:"error"})),this.showLoginBtn=!0;case 14:case"end":return e.stop()}},e,this,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),resizeToBottom:function(){this.$refs.scrollWrap.scrollTop=this.$refs.msgWrap.offsetHeight,this.resetUnreadNums(),this.isBottom=!0},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&&!this.isScrollToView){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}},handleSend:function(){var e=Object(p["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 d()({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 d()({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=Date.now(),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)}));return function(t){return e.apply(this,arguments)}}(),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=Array.from(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&&Array.from(s).forEach(function(e){var s=e.getAsFile();s&&t.handleFile(s)})},preHandleFile:function(){var e=Object(p["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?Promise.reject(new Error(t)):Promise.resolve({type:2,res:t}));case 6:if(!s.match("audio")){e.next=10;break}return e.abrupt("return",a>2097152?Promise.reject(new Error(t)):Promise.resolve({type:3,res:t}));case 10:if(!s.match("image")){e.next=15;break}return e.next=13,new M["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)}));return function(t){return e.apply(this,arguments)}}(),handleFile:function(){var e=Object(p["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=Date.now(),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),d()({message:this.$t("chat.maxUploadTips"),type:"warning"});case 15:case"end":return e.stop()}},e,this,[[1,12]])}));return function(t){return e.apply(this,arguments)}}(),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(l["r"])(this.$refs.scrollWrap,r,a),this.isScrollToView=!0,setTimeout(function(){e.isScrollToView=!1},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(l["r"])(this.$refs.scrollWrap,a.offsetTop-(this.pinMsg?40:10),a)}this.removeAtListLast()}})},$=B,D=(s("bf74"),s("2877")),R=Object(D["a"])($,m,h,!1,null,"bde5fd5e",null),O=R.exports,P={name:"App",components:{chatMini:O},data:function(){var e=Object(l["o"])("width")||window.innerWidth,t=Object(l["o"])("height")||window.innerHeight-16;return{show:"true"===Object(l["o"])("show"),groupId:Object(l["o"])("groupId")||10001,outWidth:parseInt(e),outHeight:parseInt(t)}},methods:Object(u["a"])({},Object(c["d"])(["setPublicKey"]),Object(c["b"])(["setScatter","setAccount","doScatterLogin"])),created:function(){}},N=P,U=(s("70ed"),Object(D["a"])(N,o,i,!1,null,null,null)),z=U.exports,F=s("1c04"),V=s("4eb5"),G=s.n(V),W=s("6032"),H=(s("a899"),s("e508")),J=s("21f7"),Y=s("8f20"),Z=s("3488"),q=s("5a09"),X=s("43e0"),Q=s("682a"),K=s.n(Q),ee=s("9729"),te=s("6103");s("3537");function se(e){requestAnimationFrame(se),K.a.update(e)}n["default"].use(W["a"],F["a"]),n["default"].use(G.a),n["default"].use(H["a"]),n["default"].use(J["a"]),n["default"].use(X["a"],F["a"]),n["default"].use(q["a"],F["a"]),n["default"].use(Y["a"],F["a"]),n["default"].use(Z["a"],F["a"]),n["default"].use(ee["a"]),n["default"].use(r.a),n["default"].config.productionTip=!1,new n["default"]({render:function(e){return e(z)},i18n:te["a"],store:F["a"]}).$mount("#app"),requestAnimationFrame(se)},"5f10":function(e,t,s){},6507:function(e,t,s){"use strict";var a=s("7e94"),r=s.n(a);r.a},"68dc":function(e,t,s){},"70ed":function(e,t,s){"use strict";var a=s("3abf"),r=s.n(a);r.a},"74ac":function(e,t,s){},"7e94":function(e,t,s){},"92ec":function(e,t,s){"use strict";var a=s("68dc"),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("be94"),o=s("2ef0"),i=s.n(o),u=s("2f62"),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("2877")),h=Object(m["a"])(l,a,r,!1,null,"6ba1fb76",null);t["a"]=h.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){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))])])])}))])])},r=[],n=s("be94"),o=(s("c5f6"),s("2f62")),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("2877")),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("ccf9"),r=s.n(a);r.a},a7b8:function(e,t,s){},b16d:function(e,t,s){"use strict";s("34ef"),s("4917"),s("28a5");var a=s("d4ec"),r=s("bee2"),n=function(){function e(t){var s=this;return Object(a["a"])(this,e),this.file=t.file,this.maxSize=t.maxSize||1048576,this.quantity=parseFloat((this.file.size/this.maxSize).toFixed(2)),new Promise(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(r["a"])(e,[{key:"mini",value:function(e,t){var s=this,a=this.file,r=this.quantity;try{var n=new FileReader,o=new Image;n.readAsDataURL(a),n.onload=function(e){o.src=e.target.result},o.onload=function(){var t=document.createElement("canvas"),a=t.getContext("2d"),n=o.width,i=o.height;t.width=n,t.height=i,a.clearRect(0,0,n,i),a.drawImage(o,0,0,n,i);var u=t.toDataURL("image/jpeg",r),c=s.dataURLtoBlob(u);if(c.size>s.maxSize){a.clearRect(0,0,n,i);var l=s.maxSize/c.size*.8,m=parseInt(n*l),h=parseInt(i*l);t.width=m,t.height=h,a.drawImage(o,0,0,n,i,0,0,m,h),u=t.toDataURL("image/jpeg"),c=s.dataURLtoBlob(u)}e({base64:u,res:c})}}catch(i){t(i)}}},{key:"blobToDataURL",value:function(e){return new Promise(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"]=n},bf74:function(e,t,s){"use strict";var a=s("5f10"),r=s.n(a);r.a},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=="},ccf9:function(e,t,s){},cdfc:function(e,t,s){"use strict";var a=s("a7b8"),r=s.n(a);r.a},cf15:function(e,t,s){"use strict";var a=s("3207"),r=s.n(a);r.a},f523:function(e,t,s){},fe83:function(e,t,s){"use strict";var a=s("f523"),r=s.n(a);r.a}});