pc.f0c1a06a.js 41 KB

1
  1. (function(t){function e(e){for(var n,s,o=e[0],c=e[1],u=e[2],h=0,d=[];h<o.length;h++)s=o[h],a[s]&&d.push(a[s][0]),a[s]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);p&&p(e);while(d.length)d.shift()();return r.push.apply(r,u||[]),i()}function i(){for(var t,e=0;e<r.length;e++){for(var i=r[e],n=!0,s=1;s<i.length;s++){var o=i[s];0!==a[o]&&(n=!1)}n&&(r.splice(e--,1),t=c(c.s=i[0]))}return t}var n={},s={pc:0},a={pc:0},r=[];function o(t){return c.p+"js/"+({}[t]||t)+"."+{"chunk-074cda02":"b7a230c8","chunk-0a2f1101":"cac031c2","chunk-0d7ccc16":"8cc98afd","chunk-1a710e5c":"a27e2103","chunk-1e6a2ebb":"10fc497a","chunk-2e7e4d8a":"1b1d184a","chunk-6e987cd2":"572fe8e9","chunk-2781551f":"48819fc1","chunk-3028e170":"7761211e","chunk-335f5c5d":"3edfad4c","chunk-38822a98":"70bc8ceb","chunk-5aae9c76":"73a2af4a","chunk-6f498702":"8b7c9219","chunk-451c71fa":"1fb684ad","chunk-6c13bb44":"5fd515c3","chunk-70ed3fb8":"e7eb30ed","chunk-72b48984":"7aa1e4af","chunk-90cf752e":"f868e8d2","chunk-a7081a9a":"0f1618c5","chunk-acbed89a":"dd7762e5","chunk-c173b1d8":"0e865527","chunk-d3efe52c":"6819ca38","chunk-e59b4412":"5c018008","chunk-42e7d288":"183a4f60","chunk-7bbde94a":"a7935ea8","chunk-f0006e14":"cde0ddee","chunk-20f2b187":"6a48137f","chunk-7d4da030":"6987901d"}[t]+".js"}function c(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,c),i.l=!0,i.exports}c.e=function(t){var e=[],i={"chunk-074cda02":1,"chunk-0a2f1101":1,"chunk-0d7ccc16":1,"chunk-1a710e5c":1,"chunk-1e6a2ebb":1,"chunk-2e7e4d8a":1,"chunk-6e987cd2":1,"chunk-3028e170":1,"chunk-38822a98":1,"chunk-5aae9c76":1,"chunk-6f498702":1,"chunk-451c71fa":1,"chunk-6c13bb44":1,"chunk-70ed3fb8":1,"chunk-72b48984":1,"chunk-90cf752e":1,"chunk-a7081a9a":1,"chunk-acbed89a":1,"chunk-c173b1d8":1,"chunk-d3efe52c":1,"chunk-e59b4412":1,"chunk-42e7d288":1,"chunk-7bbde94a":1,"chunk-f0006e14":1,"chunk-20f2b187":1,"chunk-7d4da030":1};s[t]?e.push(s[t]):0!==s[t]&&i[t]&&e.push(s[t]=new Promise(function(e,i){for(var n="css/"+({}[t]||t)+"."+{"chunk-074cda02":"64ed162b","chunk-0a2f1101":"a926c3e5","chunk-0d7ccc16":"3e4dab33","chunk-1a710e5c":"6c4d2f2f","chunk-1e6a2ebb":"0237fd7e","chunk-2e7e4d8a":"fd3b7528","chunk-6e987cd2":"9dccaae5","chunk-2781551f":"31d6cfe0","chunk-3028e170":"7b7b6769","chunk-335f5c5d":"31d6cfe0","chunk-38822a98":"601b91da","chunk-5aae9c76":"ca822529","chunk-6f498702":"a8887c6a","chunk-451c71fa":"ab91c1a1","chunk-6c13bb44":"9016431d","chunk-70ed3fb8":"1e2497e0","chunk-72b48984":"43d8db4c","chunk-90cf752e":"94ab0962","chunk-a7081a9a":"ecdaf94d","chunk-acbed89a":"9d1d67ea","chunk-c173b1d8":"41b3f531","chunk-d3efe52c":"feb38348","chunk-e59b4412":"768d7966","chunk-42e7d288":"90421a20","chunk-7bbde94a":"eb6f0950","chunk-f0006e14":"70577f6e","chunk-20f2b187":"7ed1d94e","chunk-7d4da030":"e64410a5"}[t]+".css",a=c.p+n,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var u=r[o],h=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(h===n||h===a))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){u=d[o],h=u.getAttribute("data-href");if(h===n||h===a)return e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var n=e&&e.target&&e.target.src||a,r=new Error("Loading CSS chunk "+t+" failed.\n("+n+")");r.request=n,delete s[t],p.parentNode.removeChild(p),i(r)},p.href=a;var l=document.getElementsByTagName("head")[0];l.appendChild(p)}).then(function(){s[t]=0}));var n=a[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise(function(e,i){n=a[t]=[e,i]});e.push(n[2]=r);var u,h=document.createElement("script");h.charset="utf-8",h.timeout=120,c.nc&&h.setAttribute("nonce",c.nc),h.src=o(t),u=function(e){h.onerror=h.onload=null,clearTimeout(d);var i=a[t];if(0!==i){if(i){var n=e&&("load"===e.type?"missing":e.type),s=e&&e.target&&e.target.src,r=new Error("Loading chunk "+t+" failed.\n("+n+": "+s+")");r.type=n,r.request=s,i[1](r)}a[t]=void 0}};var d=setTimeout(function(){u({type:"timeout",target:h})},12e4);h.onerror=h.onload=u,document.head.appendChild(h)}return Promise.all(e)},c.m=t,c.c=n,c.d=function(t,e,i){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(c.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)c.d(i,n,function(e){return t[e]}.bind(null,n));return i},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="//static.meechat.me/cdn/mee.chat/dist/",c.oe=function(t){throw console.error(t),t};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],h=u.push.bind(u);u.push=e,u=u.slice();for(var d=0;d<u.length;d++)e(u[d]);var p=h;r.push([6,"chunk-vendors","chunk-common"]),i()})({"12d0":function(t,e,i){"use strict";var n=i("24d1"),s=i.n(n);s.a},1749:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"c-view"},[i("div",{staticClass:"box"},[i("div",{staticClass:"box-hd"},[i("div",{staticClass:"title-wrap"},[t._v(t._s(t.$t("group.recommendGroup"))+"\n ")])]),i("div",{staticClass:"box-bd pub-scroll-box"},[i("ul",{staticClass:"list-group"},t._l(t.showHotList,function(e,n){return i("li",{key:n,staticClass:"group-item"},[i("div",{staticClass:"avatar-wrap",on:{click:function(i){return t.joinGroup(e.group_id,e.is_join)}}},[e.cover_photo?i("img",{staticClass:"user-avatar",attrs:{src:e.cover_photo+"?imageview/0/w/180",alt:""}}):i("div",{staticClass:"user-avatar",class:"avatar_bg"+t.bgColorNum(e.group_id),attrs:{"data-name":e.group_title&&e.group_title.slice(0,2).toUpperCase()}}),1==e.is_auth?i("i",{staticClass:"icon-auth"}):t._e()]),i("div",{staticClass:"info"},[i("h3",{on:{click:function(i){return t.joinGroup(e.group_id,e.is_join)}}},[t._v(t._s(e.group_title))]),i("p",[i("i",{staticClass:"icon-group"}),t._v("\n "+t._s(e.member_num)+"\n ")]),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.joinGroup(e.group_id,e.is_join)}}},[t._v(t._s(1==e.is_join?t.$t("group.enter"):"+ "+t.$t("group.join")))])],1)])}),0)])])])},s=[],a=(i("dc12"),i("5cf1"),i("ad09"),i("94c8")),r=i.n(a),o=i("8973"),c=i("bced");o["default"].component(r.a.name,r.a);var u={name:"hotGroup",mixins:[c["a"]]},h=u,d=(i("aa2b"),i("fc05")),p=Object(d["a"])(h,n,s,!1,null,"55788a80",null);e["default"]=p.exports},"24cd":function(t,e,i){},"24d1":function(t,e,i){},"3e04":function(t,e,i){"use strict";var n=i("469e"),s=i.n(n);s.a},"41f4":function(t,e,i){},"469e":function(t,e,i){},"57d1":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pub-chat-item",class:{current:t.item.session_id==t.curSession,top:1==t.item.is_pin},on:{click:function(e){return t.changeSessionId(t.item)},contextmenu:function(e){return e.preventDefault(),t.onToolBtn(e)}}},[i("div",{staticClass:"avatar-wrap"},[t.item.unread>0&&1==t.item.is_mute?i("i",{staticClass:"mute mute-point"}):t.item.unread>0&&0==t.item.is_mute?i("i",{staticClass:"mute mute-num"},[t._v(t._s(t.item.unread))]):t._e(),t.item.cover_photo?i("img",{staticClass:"user-avatar",attrs:{src:t.item.cover_photo,alt:""}}):i("div",{staticClass:"user-avatar",class:"avatar_bg"+t.bgColorNum(t.item.session_id),attrs:{"data-name":t.item.name&&t.item.name.slice(0,2).toUpperCase()}}),1==t.item.is_auth?i("i",{staticClass:"icon-auth"}):t._e()]),i("div",{staticClass:"info"},[i("h3",[1==t.item.is_group?i("i",{staticClass:"icon-group"}):t._e(),i("span",[t._v(t._s(t.item.name))])]),i("p",[t.item.unread>0&&1==t.item.is_mute?i("span",[t._v("["+t._s(t.item.unread)+t._s(t.$t("public.item"))+"]")]):t._e(),t.item.last_msg?[5==t.item.last_msg.msg_type?["grab_redpack"==t.item.last_msg.event_type?[t._v("\n "+t._s((t.userInfo&&t.userInfo.user_id)==t.item.last_msg.from?t.$t("public.you"):t.item.last_msg.nick_name)+" "+t._s(t.$t("redPacket.receiveRedpack"))+"\n ")]:[t._v("\n "+t._s((t.userInfo&&t.userInfo.user_id)==t.item.last_msg.from?t.$t("public.you"):t.item.last_msg.nick_name)+" "+t._s("join"==t.item.last_msg.event_type?t.$t("chat.joinGroup"):t.$t("group.quitGroup"))+"\n ")]]:t.item.is_group?[t._v("\n "+t._s(t.item.last_msg.nick_name)+":"+t._s(0===t.item.last_msg.msg_type?t.item.cont:-1===t.item.last_msg.msg_type?t.$t("chat.revokeMsg"):"["+t.$t("chat.msgType["+(t.item.last_msg.msg_type-1)+"]")+"]")+"\n ")]:[t._v("\n "+t._s(0===t.item.last_msg.msg_type?t.item.cont:-1===t.item.last_msg.msg_type?""+(t.userId==t.item.last_msg.from?t.$t("public.you"):t.item.last_msg.nick_name)+t.$t("chat.revokeMsg"):"["+t.$t("chat.msgType["+(t.item.last_msg.msg_type-1)+"]")+"]")+"\n ")]]:t._e()],2),i("span",{staticClass:"time"},[t._v(t._s(t.handleUpdate(t.item.update_time_int)))]),1==t.item.is_mute?i("i",{staticClass:"icon-mute"}):t._e()]),t.item.session_id?i("ul",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar ext-session",style:{left:t.toolBarLeft,top:t.toolBarTop}},[i("li",{on:{click:function(e){return e.stopPropagation(),t.changePin(t.item.session_id,t.item.is_pin)}}},[t._v(t._s(1==t.item.is_pin?""+t.$t("public.cancel")+t.$t("chat.sticky"):t.$t("chat.sticky")))]),i("li",{on:{click:function(e){return e.stopPropagation(),t.changeMute(t.item.session_id,t.item.is_mute)}}},[t._v(t._s(1==t.item.is_mute?t.$t("group.cancelDisturb"):t.$t("group.doNotDisturb")))]),i("li",{on:{click:function(e){return e.stopPropagation(),t.delSession(t.item.session_id)}}},[t._v(t._s(t.$t("chat.deleteSession")))])]):t._e()])},s=[],a=(i("b5aa"),i("4457")),r=i("bd31"),o=i("52c1"),c=i("5975"),u=i("33f8"),h={name:"msgItem",props:{item:{type:Object}},data:function(){return{toolBarLeft:0,toolBarTop:0,showToolbar:!1,meechatType:Object(u["o"])()}},computed:Object(r["a"])({},Object(o["e"])(["curSession","userId"]),{userInfo:function(){return this.$store.state.userInfo}}),methods:{changeSessionId:function(t){var e=1==t.is_group?"/group/".concat(t.session_id):"/pm/".concat(t.session_id);this.$router.push({path:e})},bgColorNum:function(t){return Object(u["l"])(t,this.userId)},hideToolbar:function(t){!1!==this.showToolbar&&(this.showToolbar=!1,document.body.removeEventListener("click",this.hideToolbar,!1),document.body.removeEventListener("contextmenu",this.hideToolbar,!1))},getPagePos:function(t){var e=t,i=0,n=0;while(!/pub-chat-item/gi.test(e.getAttribute("class")))e=e.offsetParent;while(null!=e)i+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{actualX:i,actualY:n}},onToolBtn:function(t){var e=this;if(this.showToolbar)this.hideToolbar(t);else{var i="h5"==this.meechatType?window.innerWidth:276,n=100,s=this.getPagePos(t.target),a=s.actualX,r=t.pageX,o=r-a,c=i-n-20;this.toolBarLeft="".concat(o<c?o:c,"px"),setTimeout(function(){document.body.addEventListener("click",e.hideToolbar,!1),document.body.addEventListener("contextmenu",e.hideToolbar,!1)},0),this.showToolbar=!0}},changePin:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(e,i){var n,s,a,r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=0==i?"setPin":"cancelPin",s=0==i?"updateSessionListByPin":"cancelSessionListByPin",t.next=4,c["a"].session[n]({session_id:e});case 4:a=t.sent,r=a.data.data,this.$store.commit("updatePin",i),this.hideToolbar(),this.$store.commit(s,{session_id:e,is_pin:r.is_pin,pin_time_int:r.pin_time_int});case 9:case"end":return t.stop()}},t,this)}));function e(e,i){return t.apply(this,arguments)}return e}(),changeMute:function(){var t=Object(a["a"])(regeneratorRuntime.mark(function t(e,i){var n,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=0==i?"setMute":"cancelMute",s=0==i?"updateSessionListByMute":"cancelSessionListByMute",t.next=4,c["a"].session[n]({session_id:e});case 4:this.hideToolbar(),this.$store.commit("updateMute",i),this.$store.commit(s,e);case 7:case"end":return t.stop()}},t,this)}));function e(e,i){return t.apply(this,arguments)}return e}(),delSession:function(t){var e=this;Object(u["f"])(this.$t("chat.closeSessionMsg")).then(function(){e.$store.commit("removeSessionListById",t),e.hideToolbar(),e.curSession==t&&(e.$store.commit("changeSessionId",0),e.$router.push({path:"/"}))})},handleUpdate:function(t){return Object(u["j"])(t,1,this)}}},d=h,p=(i("3e04"),i("fc05")),l=Object(p["a"])(d,n,s,!1,null,null,null);e["a"]=l.exports},6:function(t,e,i){t.exports=i("921e")},"7e42":function(t,e,i){"use strict";var n=i("41f4"),s=i.n(n);s.a},"921e":function(t,e,i){"use strict";i.r(e);i("fd99"),i("ad09");var n=i("a0df"),s=i.n(n),a=(i("9dce"),i("d6e8"),i("b709"),i("e9fc"),i("8973")),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"app"}},[i("div",{class:[t.pwa?"c-pwa":"","c-main"]},[t.toApp?i("div",{staticClass:"c-wrap"},[i("panel"),i("router-view")],1):i("div",{staticClass:"c-login"},[i("login-box")],1)]),t._m(0)])},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"c-copyright"},[i("span",[t._v("copyright © 2019 MeeChat.")])])}],c=(i("b5aa"),i("4457")),u=(i("46b5"),i("dcfb"),i("bd31")),h=i("33f8"),d=i("455d"),p=i("52c1"),l=i("1015"),m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"c-panel"},[i("div",{staticClass:"c-panel-header"},[t.userInfo?i("div",{staticClass:"avatar-wrap",on:{click:t.$showUserInfo}},[t.userInfo.cover_photo?i("img",{attrs:{src:t.avatarUrl,alt:""}}):i("div",{staticClass:"user-avatar",class:"avatar_bg"+t.userInfo.user_id%9,attrs:{"data-name":t.userInfo.nick_name&&t.userInfo.nick_name.slice(0,2).toUpperCase()}})]):t._e(),t._m(0),i("div",{staticClass:"panel-setting"},[i("div",{class:["panel-nav-icon",{active:t.isShowSetting}],on:{click:function(e){return e.stopPropagation(),t.toggleLoginOut()}}}),i("ul",{class:["menu",{active:t.isShowSetting}]},[i("li",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.handleGlobalMute(e)}}},[i("i",{class:["icon-msg","icon-msg"+t.openGlobalNotice]}),t._v(t._s(0==t.openGlobalNotice?t.$t("public.closeMsg"):t.$t("public.openMsg"))+"\n ")]),i("li",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.handleFeedback(e)}}},[i("i",{staticClass:"icon-feedback"}),t._v(t._s(t.$t("public.feedback"))+"\n ")]),i("li",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.changeLang(e)}}},[i("i",{staticClass:"icon-lang"}),t._v(t._s("en"==t.curLang?t.$t("public.chinese"):t.$t("public.english"))+"\n ")]),i("li",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.handleLoginOut(e)}}},[i("i",{staticClass:"icon-logout"}),t._v(t._s(t.$t("public.quit"))+"\n ")])])])]),i("div",{staticClass:"c-panel-nav"},[i("div",{staticClass:"panel-searbar"},[i("div",{staticClass:"input-con"},[i("i",{staticClass:"el-icon-search"}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTxt,expression:"searchTxt"}],attrs:{type:"text",placeholder:t.$t("public.searchHotGroup")},domProps:{value:t.searchTxt},on:{input:[function(e){e.target.composing||(t.searchTxt=e.target.value)},function(e){return t.searchUser(e,t.sessionList)}]}})]),i("i",{staticClass:"el-icon-plus",on:{click:function(e){return t.$showInvite(1)}}})]),i("div",{staticClass:"panel-pwa",staticStyle:{display:"none"},attrs:{id:"btnPwa"}},[i("span",[t._v(t._s(t.$t("public.installPwa")))]),i("i",{staticClass:"el-icon-close",on:{click:function(e){return e.stopPropagation(),t.closePwaGuide()}}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isSearch,expression:"!isSearch"}],class:["group-recommand",{current:"0"==t.curSession}],on:{click:function(e){return t.$router.push("/hotGroup")}}},[i("i",{staticClass:"group-icon"}),i("p",{staticClass:"title"},[t._v(t._s(t.$t("chat.hotGroupRecommend"))),i("i",{staticClass:"el-icon-arrow-right"})])]),i("div",{staticClass:"chat-list pub-scroll-box"},[t.isSearch?[t._l(t.searchList,function(t){return i("session-item",{key:t.group_id,attrs:{item:t}})}),i("hot-group",{attrs:{searchTxt:t.searchTxt}})]:t._l(t.sessionList,function(t){return i("session-item",{key:t.group_id,attrs:{item:t}})})],2)])])},f=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"panel-ctrls"},[i("li",{staticClass:"current"},[i("i",{staticClass:"mee-icon-chat"})])])}],g=(i("0adb"),i("57d1")),v=i("1749"),b=i("8869"),k=i("5975"),_={name:"panel",mixins:[b["f"],b["a"],b["b"]],data:function(){return{searchTxt:"",isShowSetting:!1,openGlobalNotice:h["w"].getGlobalNotice()}},computed:Object(u["a"])({avatarUrl:function(){return/^http/.test(this.userInfo.cover_photo)?"".concat(this.userInfo.cover_photo,"?imageview/0/w/180"):this.userInfo.cover_photo}},Object(p["e"])({curSession:function(t){return t.curSession},userId:function(t){return t.userId},sessionList:function(t){return t.chat.sessionList},userInfo:function(t){return t.userInfo}})),components:{hotGroup:v["default"],sessionItem:g["a"]},methods:{closePwaGuide:function(){var t=document.getElementById("btnPwa");t.style.display="none"},toggleLoginOut:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isShowSetting=!!t&&!this.isShowSetting},handleLoginOut:function(){this.$store.commit("setUserInfo",null),this.$store.commit("initChatData"),this.$store.commit("initGroupData"),this.$store.dispatch("doScatterLogout"),this.$store.commit("chatAppLogin",!1),this.$store.commit("toApp",!1),this.isShowSetting=!1},handleFeedback:function(){var t=this;k["a"].base.feedback().then(function(e){var i=e.data,n=i.data.serverId,s=t.userId>n?"".concat(n,"-").concat(t.userId):"".concat(t.userId,"-").concat(n);t.addPanelSession(n,s),t.$store.commit("changeSessionId",s),t.$router.push({path:"/pm/".concat(s)}),t.isShowSetting=!1})},handleGlobalMute:function(){var t=0==this.openGlobalNotice?1:0;h["w"].setGlobalNotice(t,this)}},created:function(){var t=Object(c["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.$store.dispatch("getSessionList"),t.next=3,this.$store.dispatch("getUserInfo");case 3:location.hash.match("user")&&this.$showUserInfo();case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),mounted:function(){var t=this;document.addEventListener("click",function(){t.toggleLoginOut(!1)})}},y=_,w=(i("12d0"),i("fc05")),$=Object(w["a"])(y,m,f,!1,null,"457f867b",null),C=$.exports,T={name:"App",mixins:[d["a"]],components:{loginBox:l["a"],panel:C},computed:Object(u["a"])({},Object(p["e"])({isLogin:function(t){return t.chat.isLogin},toApp:function(t){return t.chat.toApp},curSession:function(t){return t.curSession},sessionList:function(t){return t.chat.sessionList}})),data:function(){return{pwa:"1"==Object(h["q"])("pwa")}},methods:{showUnreadNum:function(){var t=0;this.sessionList.forEach(function(e){0==e.is_mute&&(t+=Number(e.unread))}),h["w"].changeTitle(t>99?"99+":t)}},created:function(){var t=Object(c["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:this.checkLocalLogin();case 1:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),mounted:function(){var t=this,e=null;document.addEventListener("visibilitychange",function(){"hidden"!==document.visibilityState?(h["w"].changeTitle(0),e&&clearInterval(e)):(t.showUnreadNum(),e=setInterval(function(){t.showUnreadNum()},2e3))}),window.$router=this.$router}},S=T,I=(i("f682"),i("bd62"),Object(w["a"])(S,r,o,!1,null,"e35f77ac",null)),L=I.exports,x=i("1c04"),P=i("c375"),N=i("4bc7"),G=i("6032"),j=i("43e0"),O=i("5a09"),M=i("21f7"),E=i("8f20"),B=i("3488"),R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"msgbox-fade"}},[t.visible?i("div",{staticClass:"pub-wrapper",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"pub-mask",on:{click:function(e){t.visible=!1}}}),i("div",{staticClass:"pub-modal"},[i("div",{staticClass:"modal-hd"},[i("i",{staticClass:"el-icon-close",on:{click:function(e){t.visible=!1}}})]),i("div",{staticClass:"modal-bd"},[i("transition",{attrs:{name:"msgbox-fade"}},[t.visible?i("div",{staticClass:"pub-wrapper"},[i("div",{staticClass:"pub-mask",on:{click:function(e){t.visible=!1}}}),i("div",{staticClass:"packet-send-wrap"},["h5"==t.meechatType?i("back-bar",{staticClass:"redpacket-backbar",attrs:{title:t.$t("redPacket.title")},on:{onBack:t.hidePopup}}):t._e(),i("div",{staticClass:"send-wrap",class:[{"is-private":t.isPrivate}]},[i("i",{staticClass:"el-icon-close",on:{click:t.hidePopup}}),i("i",{staticClass:"el-icon-question",on:{click:function(e){t.helpShow=!0}}}),i("h3",{staticClass:"title"},[t._v(t._s(t.$t("redPacket.title")))]),i("p",{staticClass:"redpacket-tips",class:{hidden:!t.tips}},[t._v(t._s(t.tips))]),i("div",{staticClass:"main-box"},[i("div",{staticClass:"input-item"},[i("span",{staticClass:"text"},[t._v("\n "+t._s(t.$t("redPacket.totalAmount"))+"\n ")]),i("div",{staticClass:"packet-box"},[i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.money,expression:"money",modifiers:{number:!0}}],attrs:{type:"number",placeholder:"0.00"},domProps:{value:t.money},on:{input:function(e){e.target.composing||(t.money=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),i("div",{staticClass:"unit"},[i("div",{class:["cur-unit",{"has-arrow":t.group.eosInfo}]},[t._v(t._s(t.symbol))]),t.group.eosInfo?i("div",{staticClass:"code-menu"},[i("div",{staticClass:"code-item",on:{click:function(e){t.isGameToken=!t.isGameToken}}},[t._v("\n "+t._s(t.isGameToken?"EOS":t.group.eosInfo.token)+"\n ")])]):t._e()])])]),t.isPrivate?t._e():i("p",{staticClass:"input-tips"},[t._v("\n "+t._s(t.$t("redPacket.tip1"))+"\n ")]),t.isPrivate?t._e():i("div",{staticClass:"input-item pack-num-input"},[i("span",{staticClass:"text"},[t._v(t._s(t.$t("redPacket.num")))]),i("div",{staticClass:"packet-box"},[i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.packetNum,expression:"packetNum",modifiers:{number:!0}}],attrs:{type:"number",placeholder:t.$t("redPacket.placeholder1")},domProps:{value:t.packetNum},on:{input:function(e){e.target.composing||(t.packetNum=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),i("div",{staticClass:"unit"},[t._v(t._s(t.$t("redPacket.unit")))])])]),t.isPrivate?t._e():i("p",{staticClass:"group-user-num"},[t._v("\n "+t._s(t.$t("redPacket.tip2",{num:t.group.membersNum}))+"\n ")]),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.word,expression:"word"}],staticClass:"words",attrs:{placeholder:t.$t("redPacket.memo")},domProps:{value:t.word},on:{input:function(e){e.target.composing||(t.word=e.target.value)}}}),i("div",{staticClass:"sum"},[t._v("\n "+t._s(t.amountSum)+" "),i("span",[t._v(t._s(t.isGameToken?t.group.eosInfo.token:"EOS"))])]),i("button",{staticClass:"send-btn",class:{"is-disable":!t.amountSum||!t.packetNum,loading:t.isLoading},on:{click:t.sendPacket}},[t.isLoading?i("i",{staticClass:"el-icon-loading"}):t._e(),t._v(" "+t._s(t.$t("redPacket.sendBtn"))+"\n ")])]),i("p",{staticClass:"bot"},[t._v(t._s(t.$t("redPacket.tip3")))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.helpShow,expression:"helpShow"}],staticClass:"help-wrap"},[i("i",{staticClass:"el-icon-close",on:{click:function(e){t.helpShow=!1}}}),i("h3",{staticClass:"title"},[t._v(t._s(t.$t("redPacket.helpTitle")))]),i("div",{staticClass:"content"},[i("div",{staticClass:"item"},[t._v("\n "+t._s(t.$t("redPacket.helpRule1"))+"\n ")]),i("div",{staticClass:"item"},[t._v("\n "+t._s(t.$t("redPacket.helpRule2"))+"\n ")]),i("div",{staticClass:"item"},[t._v("\n "+t._s(t.$t("redPacket.helpRule3"))+"\n ")])])])],1)]):t._e()])],1)])]):t._e()])},A=[],U=i("badb"),H=i.n(U),F=(i("8e5d"),i("4694"),i("dc12"),i("024c")),J=(i("3b70"),i("dfe5")),q=i.n(J),D=i("d690"),X=i.n(D),W=i("b33c"),Y=i("1848"),z={name:"packetSend",data:function(){return{visible:!0,helpShow:!1,money:1,packetNum:1,word:this.$t("redPacket.memo"),tips:"",isLoading:!1,isGameToken:!1,meechatType:Object(h["o"])()}},components:{backBar:Y["a"]},computed:Object(u["a"])({},Object(p["e"])(["account","group","curSession","scatter"]),Object(p["c"])(["isPrivate"]),{amountSum:function(){return this.money},symbol:function(){return this.isGameToken?this.group.eosInfo.token:"EOS"},minSum:function(){return this.isGameToken?X.a.divide(this.group.eosInfo.min_amount,1e4):.1},maxSum:function(){return this.isGameToken?X.a.divide(this.group.eosInfo.max_amount,1e4):200}}),watch:{money:function(t){t>this.maxSum&&(this.money=this.maxSum,this.showTip("".concat(this.$t("redPacket.maxMoneyTip")," ").concat(this.maxSum," ").concat(this.symbol))),t&&t/this.packetNum<.01&&(this.money=X.a.times(this.packetNum,.01),this.showTip("".concat(this.$t("redPacket.singleMinMoneyTip")," 0.01 ").concat(this.symbol)))},packetNum:function(t,e){this.money&&X.a.divide(this.money,t)<.01&&(this.packetNum=e,this.showTip("".concat(this.$t("redPacket.singleMinMoneyTip")," 0.01 ").concat(this.symbol))),t>100&&(this.packetNum=100,this.showTip("".concat(this.$t("redPacket.maxNumberTip")," 100 个")))}},methods:{hidePopup:function(){this.visible=!1},showTip:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.tips=t,setTimeout(function(){e.tips=""},i)},sendPacket:function(){var t=Object(c["a"])(regeneratorRuntime.mark(function t(){var e,i,n,s,a,r,o,c,u,d,p=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if("eos"==Object(h["r"])("loginType")){t.next=3;break}return q()({message:this.$t("redPacket.sendForEosTips"),type:"error"}),t.abrupt("return");case 3:if(!(this.money<this.minSum)){t.next=6;break}return this.showTip("".concat(this.$t("redPacket.minMoneyTip")," ").concat(this.minSum," ").concat(this.symbol)),t.abrupt("return",!1);case 6:return this.isLoading=!0,e=this.amountSum.toFixed(4)+" ".concat(this.symbol),i="meechatadmin",n={type:"redpack",num:this.packetNum,memo:this.word,sid:this.isPrivate?this.curSession:this.group.groupId},s=this.isGameToken?this.group.eosInfo.token_code:"eosio.token",a=this.symbol,t.next=14,W["a"].getCurrencyBalance(s,this.account.name,a);case 14:if(r=t.sent,o=Object(F["a"])(r,1),c=o[0],!c){t.next=26;break}if(u=this.isGameToken?c.replace(new RegExp("\\s"+a),""):c.replace(/\sEOS/,""),!(this.amountSum>Number(u))){t.next=23;break}return q()({message:this.$t("public.noMoney"),type:"error"}),this.isLoading=!1,t.abrupt("return");case 23:this.isGameToken?(d=this.group.eosInfo.token_code,W["a"].doSymbolTransfer(this.account.name,"meechatadmin",e,H()(n),this.account.authority,d).then(function(t){p.hidePopup()}).catch(function(t){if(!t.type){var e=JSON.parse(t),i=e.error.details;q()({message:i[0].message,type:"error"})}}).finally(function(){p.isLoading=!1})):W["a"].transfer(this.account.name,i,e,H()(n),this.account.authority).then(function(t){p.hidePopup()}).catch(function(t){if(!t.type){var e=JSON.parse(t),i=e.error.details;q()({message:i[0].message,type:"error"})}}).finally(function(){p.isLoading=!1}),t.next=28;break;case 26:q()({message:this.$t("public.badNetwork"),type:"error"}),this.isLoading=!1;case 28:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},mounted:function(){}},K=z,Q=Object(w["a"])(K,R,A,!1,null,null,null),V=Q.exports,Z=i("6103");V.install=function(t,e){var i,n=t.extend(V);t.prototype.$pswSetting=function(){i&&(document.body.removeChild(i.$el),i=null),i=new n({el:document.createElement("div"),computed:{$store:function(){return e}},i18n:Z["a"],data:function(){return{}}}),document.body.appendChild(i.$el)}};var tt=V,et=i("9729"),it=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"msgbox-fade"}},[t.visible?i("div",{staticClass:"pub-wrapper",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"pub-mask",on:{click:function(e){t.visible=!1}}}),i("div",{staticClass:"pub-modal"},[i("div",{staticClass:"modal-hd"},[i("i",{staticClass:"el-icon-close",on:{click:function(e){t.visible=!1}}})]),i("div",{staticClass:"modal-bd"},[i("groupTypeSetting")],1)])]):t._e()])},nt=[];a["default"].component("groupTypeSetting",function(){return i.e("chunk-c173b1d8").then(i.bind(null,"8eed"))});var st={name:"loginPopup",data:function(){return{visible:!0}},computed:{},methods:{},created:function(){}},at=st,rt=(i("7e42"),Object(w["a"])(at,it,nt,!1,null,"9e910f5a",null)),ot=rt.exports;ot.install=function(t,e){var i,n=t.extend(ot);t.prototype.$setGroupType=function(){i&&(document.body.removeChild(i.$el),i=null),i=new n({el:document.createElement("div"),computed:{$store:function(){return e}},i18n:Z["a"],data:function(){return{}}}),document.body.appendChild(i.$el)}};var ct=ot,ut=i("8134"),ht=i.n(ut);i("3537"),i("e9ca");a["default"].use(N["a"],x["a"],P["b"]),a["default"].use(G["a"],x["a"],Z["a"]),a["default"].use(j["a"],x["a"],Z["a"]),a["default"].use(O["a"],x["a"],P["b"]),a["default"].use(E["a"],x["a"]),a["default"].use(B["a"],x["a"]),a["default"].use(tt,x["a"]),a["default"].use(et["a"]),a["default"].use(ct,x["a"]),a["default"].use(ht.a),a["default"].use(M["a"]),a["default"].use(s.a),a["default"].config.productionTip=!1,new a["default"]({render:function(t){return t(L)},store:x["a"],i18n:Z["a"],router:P["b"]}).$mount("#app")},"9bfa":function(t,e,i){},aa2b:function(t,e,i){"use strict";var n=i("9bfa"),s=i.n(n);s.a},bced:function(t,e,i){"use strict";i.d(e,"c",function(){return f}),i.d(e,"b",function(){return g}),i.d(e,"a",function(){return v});i("c9db"),i("ad09");var n=i("514e"),s=i.n(n),a=(i("4694"),i("3b70"),i("dfe5")),r=i.n(a),o=(i("dcfb"),i("0adb"),i("b5aa"),i("4457")),c=i("bd31"),u=i("5975"),h=i("52c1"),d=i("33f8"),p=i("8869"),l=i("c1f9"),m=i.n(l),f={computed:Object(c["a"])({},Object(h["e"])({myId:function(t){return t.userId},group:function(t){return t.group},curGroupId:function(t){return t.curSession},members:function(t){return t.group.members},sessionInfo:function(t){return t.group.sessionInfo},shareName:function(t){return t.group.shareName},adminList:function(t){return t.group.adminList},membersArray:function(t){return t.group.membersArray}}),{isAdmin:function(){return this.members&&this.members[this.myId]&&1==this.members[this.myId].is_admin},isCreator:function(){return this.group.creator==this.myId},isPrivate:function(){return this.$store.getters.isPrivate}}),mounted:function(){var t=this,e=this.$route.params.id;this.changeSessionId(e),this.isPrivate||this.group.groupId||(this.initGroup({userId:this.myId,groupId:e,useCache:!1}),this.getGroupInfo()),document.addEventListener("click",function(){if(t.$refs.chatSet){var e=t.$refs.chatSet.getAttribute("class");e.indexOf("move-left")>-1&&t.$emit("showCharSet",0)}})},data:function(){return{msgPush:!1,msgTop:!1,limitHeight:!0,isEdit:!1,newGroupName:"",newLink:"",newNotice:"",isEditLink:!1,editNotice:!1,editShareName:"",sharePath:"".concat(location.origin,"/s/"),isSearch:!1,searchList:[],searchTxt:"",meechatType:Object(d["o"])()}},methods:Object(c["a"])({},Object(h["d"])(["initGroup","changeSessionId","changeHotGroupStatus","removeSessionListById"]),Object(h["b"])(["updateSessionItem","getGroupInfo"]),{handleTitleBlur:function(){var t=this;this.isEdit=!1,this.newGroupName.length&&u["a"].group.changeTitle({group_id:this.curGroupId,title:this.newGroupName}).then(function(e){e.data;t.updateSessionItem({sessionId:t.curGroupId,data:{name:t.newGroupName}}),t.$store.commit("updateGroup",{key:"groupName",data:t.newGroupName})})},handleTitleFocus:function(){this.isEdit=!0,this.newGroupName=this.group.groupName},handleShowAll:function(){this.limitHeight||(this.$refs.scrollWrap.scrollTop=0),this.limitHeight=!this.limitHeight},handleLinkBlur:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.isEditLink=!1,!this.editShareName.match(/^\d{1,}$/)){t.next=4;break}return this.$showTips("分享链接不能是纯数字"),t.abrupt("return");case 4:if(this.editShareName.match(/^(\w|.){1,}$/)){t.next=7;break}return this.$showTips("分享链接只能是英文字母,数字和 . 的组合"),t.abrupt("return");case 7:return t.next=9,Object(d["f"])("分享链接只能被修改一次,确认修改为:".concat(this.sharePath+this.editShareName),"提示").catch(function(t){});case 9:u["a"].group.changeName({group_id:this.curGroupId,name:this.editShareName}).then(function(){e.$store.commit("updateGroup",{key:"shareName",data:e.editShareName})});case 10:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),handleLinkFocus:function(){this.isEditLink=!0,this.editShareName=this.shareName},handleNotice:function(){var t=this;u["a"].group.changeNotice({group_id:this.curGroupId,notice:this.newNotice}).then(function(){t.$showTips("修改成功"),t.editNotice=!1,t.$store.commit("updateGroup",{key:"groupNotice",data:t.newNotice})})},handleGroudMgr:function(){this.$emit("handleShowGroudMgr",1)},handleOpenNotice:function(){this.editNotice=!0,this.newNotice=this.group.groupNotice},copyLink:function(t){var e=this,i=document.location.protocol+t;this.$copyText(i).then(function(t){e.$showTips("复制成功")})},changePin:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(e){var i,n,s,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return i=1==e?"setPin":"cancelPin",n=1==e?"updateSessionListByPin":"cancelSessionListByPin",t.next=4,u["a"].session[i]({session_id:this.curGroupId});case 4:s=t.sent,a=s.data.data,this.$store.commit("updatePin",e),this.$store.commit(n,{session_id:this.curGroupId,is_pin:a.is_pin,pin_time_int:a.pin_time_int});case 8:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),changeMute:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(e){var i,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return i=1==e?"setMute":"cancelMute",n=1==e?"updateSessionListByMute":"cancelSessionListByMute",t.next=4,u["a"].session[i]({session_id:this.curGroupId});case 4:this.$store.commit("updateMute",e),this.$store.commit(n,this.curGroupId);case 6:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),leaveGroup:function(){var t=this;Object(d["f"])(this.$t("group.leaveComfirm")).then(function(){t.$emit("showLoadingRoom",!0),u["a"].group.leaveGroup({group_id:t.curGroupId}).then(function(){t.changeHotGroupStatus({groupId:t.curGroupId,isJoin:0}),t.removeSessionListById(t.curGroupId),t.$showTips(t.$t("group.leaveTip")),t.$emit("showLoadingRoom",!1),t.$store.commit("updateJoin",!1),"h5"==t.meechatType&&t.$router.go(-2)}).catch(function(){t.$emit("showLoadingRoom",!1)})})},searchUser:function(){var t=this;if(this.searchTxt.trim())if(this.membersArray.length<this.group.membersNum)u["a"].group.searchMember({group_id:this.group.groupId,keyword:this.searchTxt}).then(function(e){var i=e.data;t.searchList=i.data});else{var e=this.searchTxt;this.searchList=this.membersArray.filter(function(t){var i,n;return i=!!t.user_name&&t.user_name.indexOf(e)>-1,n=!!t.nick_name&&t.nick_name.indexOf(e)>-1,i||n})}}})},g={mixins:[p["e"]],data:function(){return{curItemIndex:0,checkList:[],groupName:"",isLoading:!1,showNum:0,meechatType:Object(d["o"])()}},computed:Object(c["a"])({checkedNum:function(){return this.checkList.filter(function(t){return t.isChecked}).length}},Object(h["e"])({userId:function(t){return t.userId},friendList:function(t){return t.chat.friendList},groupId:function(t){return t.group.groupId},group:function(t){return t.group},members:function(t){return t.group.members},membersArray:function(t){return t.group.membersArray},membersNum:function(t){return t.group.membersNum},adminList:function(t){return t.group.adminList}}),{inviteList:function(){return this.checkList.filter(function(t){return t.isChecked}).map(function(t){return t.user_id}).join(",")},resultList:function(){return this.checkList&&this.checkList.filter(function(t){return t.isChecked})||[]}}),methods:Object(c["a"])({},Object(h["b"])(["getGroupInfo"]),Object(h["d"])(["initGroup","changeSessionId"]),{getItemByUid:function(t){var e=this;return this.checkList.filter(function(i,n){return i.user_id==t&&(e.curItemIndex=n),i.user_id==t})[0]},changeState:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getItemByUid(t);i.isChoosed||(4==this.inviteType&&e&&this.adminList.length+this.checkedNum>5?this.$showTips(this.$t("group.groupMgrMostTips")):(5==this.inviteType&&this.checkList.forEach(function(t){t.isChecked=!1}),i["isChecked"]=e,this.$set(this.checkList,this.curItemIndex,i)))},changeStateForH5:function(t){var e=this.getItemByUid(t),i=!e.isChecked;4==this.inviteType&&i&&this.adminList.length+this.checkedNum>5?this.$showTips(this.$t("group.groupMgrMostTips")):(5==this.inviteType&&this.checkList.forEach(function(t){t.isChecked=!1}),e["isChecked"]=i,this.$set(this.checkList,this.curItemIndex,e))},initList:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:t.t0=this.inviteType,t.next=1===t.t0?3:2===t.t0?3:3===t.t0?7:4===t.t0?7:5===t.t0?7:9;break;case 3:return t.next=5,this.$store.dispatch("getFriendList");case 5:return this.checkList=this.friendList,t.abrupt("break",9);case 7:return this.checkList=this.membersArray,t.abrupt("break",9);case 9:this.checkList=m.a.filter(this.checkList,function(t){if(t.isChecked=!1,t.isChoosed=!1,t.isShow=!0,2==e.inviteType){var i=e.membersArray.some(function(e){return e.user_id==t.user_id});return!i}return 4==e.inviteType&&1==t.is_admin&&(t.isChoosed=!0),t.user_id!=e.userId}),this.showNum=this.checkList.length;case 11:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),optSubmit:function(){switch(this.inviteType){case 1:this.createGroup();break;case 2:this.invitesMember();break;case 3:this.removesMember();break;case 4:this.addAdmin();break;case 5:this.changeCreator();break;case 6:this.createGroup();break}},createGroup:function(){var t=this;this.groupName.length>16?this.$showTips(this.$t("group.groupNameLengthTips")):this.groupName?(this.isLoading=!0,u["a"].group.createGroup({group_title:this.groupName,user_id_list:this.inviteList}).then(function(e){var i=e.data,n=i.data.session_id;t.$showTips(t.$t("group.createSuccess")),t.$store.commit("addSessionItem",i.data),t.ext&&t.ext.tgGroupId?t.doSyncTelegram(n):t.$router.push("/group/".concat(n)),"h5"!=t.meechatType&&t.hidePopup()})):r()({message:this.$t("group.groupNameTips"),type:"warning"})},doSyncTelegram:function(t){var e=this;u["a"].tg.doSync({group_id:t,tg_group_id:this.ext.tgGroupId}).then(function(){e.$router.replace("/group/".concat(t))}).catch(function(t){console.log(t),"h5"==e.meechatType&&e.$router.replace("/")})},invitesMember:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.isLoading=!0,t.next=3,u["a"].group.invites({user_ids:this.inviteList,group_id:this.groupId});case 3:return t.next=5,this.getGroupInfo();case 5:"h5"==this.meechatType?this.$router.go(-1):this.hidePopup();case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),removesMember:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.isLoading=!0,t.next=3,u["a"].group.removes({user_ids:this.inviteList,group_id:this.groupId});case 3:return t.next=5,this.getGroupInfo();case 5:"h5"==this.meechatType?this.$router.go(-1):this.hidePopup();case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),addAdmin:function(){var t=this;this.isLoading=!0,u["a"].group.addAdmin({user_ids:this.inviteList,group_id:this.groupId}).then(function(e){e.data;t.getGroupInfo(),"h5"==t.meechatType?t.$router.go(-1):t.hidePopup()})},changeCreator:function(){var t=this;if(!(this.checkedNum<=0)){var e=this.checkList[this.curItemIndex],i=e.nick_name||e.user_name;s.a.confirm("".concat(this.$t("group.groupMgrComfime")," ").concat(i)).then(function(){t.isLoading=!0,u["a"].group.changeCreator({new_creator:t.inviteList,group_id:t.groupId}).then(function(e){e.data;"h5"==t.meechatType?t.$router.go(-1):t.hidePopup(),t.$store.dispatch("getGroupInfo"),r()({message:"".concat(t.$t("group.groupMgrResult")," ").concat(i),type:"warning"})})}).catch(function(t){console.log(t)})}}}),mounted:function(){this.initList()}},v={props:{searchTxt:String},data:function(){return{}},components:{},computed:Object(c["a"])({},Object(h["e"])(["hotList"]),{showHotList:function(){var t=this.searchTxt&&this.searchTxt.trim();if(!t)return this.hotList;var e=this.hotList.filter(function(e){var i=e.group_title&&e.group_title.toLocaleLowerCase()||"";return i.match(t)});return e}}),methods:Object(c["a"])({},Object(h["d"])(["changeHotGroupStatus"]),{bgColorNum:function(t){return Object(d["l"])(t,this.userId)},joinGroup:function(t,e){var i=this;1==e?this.$router.push("/group/".concat(t)):u["a"].group.joinGroup({group_id:t}).then(function(){i.changeHotGroupStatus({groupId:t,isJoin:1}),i.$router.push("/group/".concat(t))})}}),mounted:function(){this.$store.commit("changeSessionId","0"),this.$store.dispatch("getHotList")}}},bd62:function(t,e,i){"use strict";var n=i("c6ce"),s=i.n(n);s.a},c6ce:function(t,e,i){},f682:function(t,e,i){"use strict";var n=i("24cd"),s=i.n(n);s.a}});