tilince-test-456
Version:
ZEGO ZIMKit SDK for Web React
1 lines • 101 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("zego-zim-web"),require("i18next"));else if("function"==typeof define&&define.amd)define(["react","zego-zim-web","i18next"],t);else{var n="object"==typeof exports?t(require("react"),require("zego-zim-web"),require("i18next")):t(e.React,e.ZIM,e.i18next);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}("undefined"!=typeof self?self:this,(function(e,t,n){return function(){var o={406:function(e){var t,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],l=!1,u=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},567:function(e,t,n){var o=n(12);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},765:function(e,t,n){var o=n(410);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},471:function(e,t,n){var o=n(395);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},994:function(e,t,n){var o=n(419);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},98:function(e,t,n){var o=n(49);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},587:function(e,t,n){var o=n(945);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},861:function(e,t,n){var o=n(948);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},749:function(e,t,n){var o=n(908);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},250:function(e,t,n){var o=n(42);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},955:function(e,t,n){var o=n(37);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},474:function(e,t,n){var o=n(851);"string"==typeof o&&(o=[[e.id,o,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};n(379)(o,r);o.locals&&(e.exports=o.locals)},379:function(e,t,n){var o,r,i={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var o=s.call(this,e,n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),l=null,u=0,p=[],d=n(657);function h(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=i[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(C(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(C(o.parts[a],t));i[o.id]={id:o.id,refs:1,parts:s}}}}function g(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function m(e,t){var n=c(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=p[p.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=c(e.insertAt.before,n);n.insertBefore(t,r)}}function f(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return n.nc}();o&&(e.attrs.nonce=o)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function C(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=l||(l=v(t)),o=b.bind(null,n,a,!1),r=b.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),o=D.bind(null,n,t),r=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),o=L.bind(null,n),r=function(){f(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=g(e,t);return h(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var a=n[r];(s=i[a.id]).refs--,o.push(s)}e&&h(g(e,t),t);for(r=0;r<o.length;r++){var s;if(0===(s=o[r]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete i[s.id]}}}};var I,_=(I=[],function(e,t){return I[e]=t,I.filter(Boolean).join("\n")});function b(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function L(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function D(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=d(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},657:function(e){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},838:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIEAAACBCAYAAADnoNlQAAAAAXNSR0IArs4c6QAAEKZJREFUeF7tnV+MXFUdx3+/O7PbPzs7M7RdoKXQ8qcxKURMePFBg2gUIT7w4B/Ciw+NifBEjDEQIjEKBjWaUBMfTIhB8EHF2JggD76gITxITIoYSgRCof93u+382aVddmaO+Ux68PZ2Zu+5d+7M3tk5J9k06Z57zu/+ft/z+3/uqgw45ufnS1u3bi212+29xpgvqOonjTH7VXVORCrGmM0DbjHxj6vqiojUROSsqh7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8i8oaIvCoibzcajcXdu3efd1H7/Sj5H69iOEPmEnI5AAAAAElFTkSuQmCC"},187:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,o){function r(n){e.removeListener(t,i),o(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,o){var r,i,a,l;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=o?[n,a]:[a,n]:o?a.unshift(n):a.push(n),(r=c(e))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(o);return r.listener=n,o.wrapFn=r,r}function d(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):g(r,r.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}function m(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=g(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,o,r,i,a;if(s(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},12:function(e,t,n){"use strict";n.r(t)},410:function(e,t,n){"use strict";n.r(t)},395:function(e,t,n){"use strict";n.r(t)},419:function(e,t,n){"use strict";n.r(t)},49:function(e,t,n){"use strict";n.r(t)},945:function(e,t,n){"use strict";n.r(t)},948:function(e,t,n){"use strict";n.r(t)},908:function(e,t,n){"use strict";n.r(t)},42:function(e,t,n){"use strict";n.r(t)},37:function(e,t,n){"use strict";n.r(t)},851:function(e,t,n){"use strict";n.r(t)},899:function(t){"use strict";t.exports=e},796:function(e){"use strict";e.exports=t},612:function(e){"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{Common:function(){return Se},ConversationList:function(){return re},EventName:function(){return r},GroupInfoView:function(){return Le},MessageView:function(){return Ie},ZIMKitEventHandler:function(){return m},ZIMKitGroupVM:function(){return z},ZIMKitManager:function(){return H},ZIMKiti18n:function(){return A},ZIMPlatform:function(){return e}});var e,t=i(796),n=i.n(t);!function(e){e[e.Web=0]="Web"}(e||(e={}));var o,r,s=n(),c=function(e){this.platform=e},l=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.create=function(e){return t.instance||(t.instance=s.create(e)),t.instance},t.getInstance=function(){return t.instance},t.prototype.on=function(e,n){return t.instance.on(e,n)},t.prototype.off=function(e){return t.instance.off(e)},t.prototype.login=function(e,n){return t.instance.login(e,n)},t.prototype.logout=function(){return t.instance.logout()},t.prototype.destroy=function(){return t.instance.destroy()},t.prototype.renewToken=function(e){return t.instance.renewToken(e)},t.prototype.queryConversationList=function(e){return t.instance.queryConversationList(e)},t.prototype.createGroup=function(e,n,o){return t.instance.createGroup(e,n,o)},t.prototype.sendPeerMessage=function(e,n,o){return t.instance.sendPeerMessage(e,n,o)},t.prototype.sendGroupMessage=function(e,n,o){return t.instance.sendGroupMessage(e,n,o)},t.prototype.sendMediaMessage=function(e,n,o,r,i){return t.instance.sendMediaMessage(e,n,o,r,i)},t.prototype.queryHistoryMessage=function(e,n,o){return t.instance.queryHistoryMessage(e,n,o)},t.prototype.deleteConversation=function(e,n,o){return t.instance.deleteConversation(e,n,o)},t.prototype.clearConversationUnreadMessageCount=function(e,n){return t.instance.clearConversationUnreadMessageCount(e,n)},t.prototype.queryGroupInfo=function(e){return t.instance.queryGroupInfo(e)},t.prototype.queryGroupMemberList=function(e,n){return t.instance.queryGroupMemberList(e,n)},t.prototype.joinGroup=function(e){return t.instance.joinGroup(e)},t.prototype.leaveGroup=function(e){return t.instance.leaveGroup(e)},t.prototype.uploadLog=function(){return t.instance.uploadLog()},t.prototype.updateUserAvatarUrl=function(e){return t.instance.updateUserAvatarUrl(e)},t}((function(){})),p=i(406),d=p&&p.env.PLATFORM||"web",h=function(){function t(){}return t.initPlatform=function(){return"web"===d?(t.zimPlatformManage=new c(e.Web),t.zimModule=u,Promise.resolve()):Promise.resolve()},t.getInstance=function(){return t.zimModule.getInstance()},t.create=function(e){return t.zimModule.create(e)},t.prototype.on=function(e,n){return t.getInstance().on(e,n)},t.prototype.off=function(e){return t.getInstance().off(e)},t.prototype.login=function(e,n){return t.getInstance().login(e,n)},t.prototype.logout=function(){return t.getInstance().logout()},t.prototype.destroy=function(){return t.getInstance().destroy()},t.prototype.renewToken=function(e){return t.getInstance().renewToken(e)},t.prototype.queryConversationList=function(e){return t.getInstance().queryConversationList(e)},t.prototype.createGroup=function(e,n,o){return t.getInstance().createGroup(e,n,o)},t.prototype.sendPeerMessage=function(e,n,o){return t.getInstance().sendPeerMessage(e,n,o)},t.prototype.sendGroupMessage=function(e,n,o){return t.getInstance().sendGroupMessage(e,n,o)},t.prototype.sendMediaMessage=function(e,n,o,r,i){return t.getInstance().sendMediaMessage(e,n,o,r,i)},t.prototype.queryHistoryMessage=function(e,n,o){return t.getInstance().queryHistoryMessage(e,n,o)},t.prototype.deleteConversation=function(e,n,o){return t.getInstance().deleteConversation(e,n,o)},t.prototype.clearConversationUnreadMessageCount=function(e,n){return t.getInstance().clearConversationUnreadMessageCount(e,n)},t.prototype.queryGroupInfo=function(e){return t.getInstance().queryGroupInfo(e)},t.prototype.queryGroupMemberList=function(e,n){return t.getInstance().queryGroupMemberList(e,n)},t.prototype.joinGroup=function(e){return t.getInstance().joinGroup(e)},t.prototype.leaveGroup=function(e){return t.getInstance().leaveGroup(e)},t.prototype.uploadLog=function(){return t.getInstance().uploadLog()},t.prototype.updateUserAvatarUrl=function(e){return t.getInstance().updateUserAvatarUrl(e)},t}();!function(e){e.zimError="error",e.zimConnectionStateChanged="connectionStateChanged",e.zimTokenWillExpire="tokenWillExpire",e.zimReceivePeerMessage="receivePeerMessage",e.zimReceiveGroupMessage="receiveGroupMessage",e.zimConversationTotalUnreadMessageCountUpdated="conversationTotalUnreadMessageCountUpdated",e.zimConversationChanged="conversationChanged",e.zimKitIsLoggedIn="isLoggedIn",e.zimKitLoginUserUpdate="loginUserUpdate",e.zimKitDeleteConversation="deleteConversation",e.zimKitCurrentConversationUpdate="currentConversationUpdate",e.zimKitConversationListUpdate="conversationListUpdate",e.zimKitConversationListQueryAbnormally="conversationListQueryAbnormally",e.zimKitCreateGroup="createGroup",e.zimKitCurrentChatUpdated="currentChatUpdated",e.zimKitCurrentMessageListUpdated="messageListUpdated",e.zimKitCurrentGroupInfoUpdated="currentGroupInfoUpdated",e.zimKitImgMessageUpdated="imgMessageUpdated"}(r||(r={}));var g=function(){function e(){var t;return this.eventList=((t={})[r.zimError]=[],t[r.zimConnectionStateChanged]=[],t[r.zimTokenWillExpire]=[],t[r.zimReceivePeerMessage]=[],t[r.zimReceiveGroupMessage]=[],t[r.zimConversationTotalUnreadMessageCountUpdated]=[],t[r.zimConversationChanged]=[],t[r.zimKitIsLoggedIn]=[],t[r.zimKitLoginUserUpdate]=[],t[r.zimKitDeleteConversation]=[],t[r.zimKitConversationListUpdate]=[],t[r.zimKitCurrentConversationUpdate]=[],t[r.zimKitConversationListQueryAbnormally]=[],t[r.zimKitCreateGroup]=[],t[r.zimKitCurrentChatUpdated]=[],t[r.zimKitCurrentMessageListUpdated]=[],t[r.zimKitCurrentGroupInfoUpdated]=[],t[r.zimKitImgMessageUpdated]=[],t),e.instance||(e.instance=this),e.instance}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.addEventListener=function(e,t){var n=this;return!!this.eventList[e]&&(!!Array.isArray(t)&&(t.forEach((function(t){!n.eventList[e].includes(t)&&n.eventList[e].push(t)})),!0))},e.prototype.removeEventListener=function(e,t){if(!this.eventList[e])return!1;var n=this.eventList[e];return t&&t.length?t.forEach((function(e){n.splice(n.indexOf(e),1)})):this.eventList[e]=[],!0},e.prototype.actionListener=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.eventList[e]&&this.eventList[e].forEach((function(e){e.apply(void 0,t)}))},e}(),m=g,f=i(612),v=i.n(f);function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=i(899),_=i.n(I),b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,L={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…"},D=function(e){return L[e]};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(b,D)}};(0,I.createContext)();!function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var t,n,o;t=e,(n=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&y(t.prototype,n),o&&y(t,o),Object.defineProperty(t,"prototype",{writable:!1})}();var M={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x=E(E({},x),e)}(e.options.react),function(e){e}(e)}};var N,U={common_yesterday:"昨天",common_user_kick_out:"重复登录,用户被踢出",common_monday:"周一",common_tuesday:"周二",common_wednesday:"周三",common_thursday:"周四",common_friday:"周五",common_saturday:"周六",common_sunday:"周日",common_logout:"退出",common_return:"返回",conversation_start_chat_w:"发起聊天",conversation_empty:"暂无消息\n快去发起聊天吧",conversation_start_single_chat:"发起单聊",conversation_start_group_chat:"发起群聊",conversation_join_group_chat:"加入群聊",conversation_cancel:"取消",conversation_delete:"删除",conversation_message_total_count:"消息总数",conversation_reload:"重新加载",conversation_enter_touserid_w:"请输入对方用户ID",conversation_close_chat_w:"关闭聊天",demo_login_hint:"输入用户id",demo_login:"登录",demo_user_name:"用户名为:%s",demo_user_name_w:"随机用户昵称",demo_welcome:"您好,\n欢迎使用 \nZEGO In-app Chat",demo_input_user_id_error_tips:"请输入6–12位英文或数字的用户ID",demo_input_placeholder_w:"请输入6–12位英文或数字的用户ID",demo_user_id_login:"用户ID登录",group_create_chat:"发起会话",group_input_group_id:"输入群ID",group_input_group_id_w:"输入群聊ID",group_input_group_name:"输入群聊名称",group_input_user_id_of_group:"输入群成员的用户ID,';'英文分号隔开",group_input_user_id_of_group_w:"输入群成员的用户ID,';'英文分号隔开",group_user_id_cant_null:"用户id不能为空",group_create_group_chat_title:"发起群聊会话",group_join_group_chat:"加入群聊会话",group_user_not_exit:"用户不存在",group_group_not_exit:"群不存在",group_group_user_id_not_exit:"群成员用户ID %s 不存在,请返回",group_group_user_id_not_exit_w:"请返回修改",group_group_id_not_exit:"群ID %s 不存在,请返回",group_group_id_not_exit_w:"不存在,请返回修改",group_input_user_id_error_tip:"请输入6–12位英文或数字的用户ID",group_group_id:"群聊ID",group_copy:"复制",group_copy_success:"复制成功",message_input_new_message:"输入新消息",message_user_not_exit_please_again:"用户ID:%s不存在,请返回重新添加",message_user_not_exit_please_again_w_1:"用户ID",message_user_not_exit_please_again_w_2:"不存在,请返回重新添加",message_cant_send_empty_msg:"不允许发送空白消息",message_create_chat:"发起会话",message_input_user_id_error_tips:"请输入6–12位英文或数字的用户ID",message_create_single_chat:"发起单聊会话",message_send_w:"发送",message_empty_w:"暂时还没有收到消息"},O={common_yesterday:"Yesterday",common_user_kick_out:"The user is kicked out because the ID is reused for login. ",common_monday:"Monday",common_tuesday:"Tuesday",common_wednesday:"Wednesday",common_thursday:"Thursday",common_friday:"Friday",common_saturday:"Saturday",common_sunday:"Sunday",common_logout:"Log out",common_return:"Back",conversation_start_chat_w:"New Chat",conversation_empty:"No chats.\nStart chatting now.",conversation_start_single_chat:"One-on-one chat",conversation_start_group_chat:"Group chat",conversation_join_group_chat:"Join a group",conversation_cancel:"Cancel",conversation_delete:"Delete",conversation_message_total_count:"Chats",conversation_reload:"Reload",conversation_enter_touserid_w:"Enter a user ID",conversation_close_chat_w:"Delete",demo_login_hint:"User ID",demo_login:"Log in",demo_user_name:"Username: %s",demo_user_name_w:"Random nickname",demo_welcome:"Hi, \nwelcome to \nZEGOCLOUD In-app Chat.",demo_input_user_id_error_tips:"The userID must be between 6-12 characters using letters and numbers.",demo_input_placeholder_w:"6-12 bit userID, include letters and numbers",demo_user_id_login:"User Login",group_create_chat:"OK",group_input_group_id:"Group ID",group_input_group_id_w:"Group ID",group_input_group_name:"Group name",group_input_user_id_of_group:"Enter the user IDS of the group members, separated by ';'.",group_input_user_id_of_group_w:"Enter the user IDS of the group members, separated by ';'.",group_user_id_cant_null:"User ID is required.",group_create_group_chat_title:"New group chat",group_join_group_chat:"Join a group chat",group_user_not_exit:"The user doesn't exist.",group_group_not_exit:"The group doesn't exist.",group_group_user_id_not_exit:"The user ID (%s) doesn't exist. Please modify and try again.",group_group_user_id_not_exit_w:"Please modify and try again.",group_group_id_not_exit:"The group (%s) doesn't exist. Please try again.",group_group_id_not_exit_w:"It doesn't exist. Please modify and try again.",group_input_user_id_error_tip:"The userID must be between 6-12 characters using letters and numbers.",group_group_id:"Group ID",group_copy:"Copy",group_copy_success:"Copied.",message_input_new_message:"",message_user_not_exit_please_again:"The user ID (%s) doesn't exist. Please try again.",message_user_not_exit_please_again_w_1:"User ID",message_user_not_exit_please_again_w_2:"It doesn't exist. Please try again.",message_cant_send_empty_msg:"Blank messages are not allowed",message_create_chat:"OK",message_input_user_id_error_tips:"The userID must be between 6-12 characters using letters and numbers.",message_create_single_chat:"New 1-on-1 chat",message_send_w:"Send",message_empty_w:"No messages received."},S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},A=function(){function e(){if(this.localesData={en:{},zh:{}},this.i18next=v().use(M),!e.instance){var t={en:O,zh:U};this.localesData=t,e.instance=this}return e.instance}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.destroy=function(){e.instance.localesData={en:{},cn:{}},e.instance=null},e.prototype.init=function(){var e={resources:{zh:{translation:this.localesData.zh},en:{translation:this.localesData.en}},fallbackLng:navigator.language,detection:{caches:["localStorage","sessionStorage","cookie"]}};return this.i18next.init(e)},e.prototype.provideMessage=function(e){return this.localesData.en=S(S({},this.localesData.en),e.en),this.localesData.zh=S(S({},this.localesData.zh),e.zh),this.localesData},e.prototype.getLocalesData=function(){return this.localesData},e.prototype.getI18next=function(){return this.i18next},e}();A.getInstance().init(),function(e){e[e.online=1]="online",e[e.offline=0]="offline"}(N||(N={}));var H=function(){function e(){return this.eventHandler=m.getInstance(),this.userInfo={},this.isInit=!1,this.isLoggedIn=!1,this.networkStatus=N.online,e.instance||(e.instance=this),e.instance}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.createZIM=function(e){var t=this;return this.appConfig=e,h.initPlatform().then((function(){t.zim=h.create(e.appID),t.isInit=!0,t.onEvent(),window.manager=t}))},e.prototype.loginWithUserInfo=function(e,t){var n=this;return this.userInfo=e,this.zim.login(e,t).then((function(){n.token=t,n.isLoggedIn=!0,n.eventHandler.actionListener(r.zimKitIsLoggedIn),n.eventHandler.actionListener(r.zimKitLoginUserUpdate,e)}))},e.prototype.updateUserAvatarUrl=function(e){return this.zim.updateUserAvatarUrl(e)},e.prototype.logout=function(){return this.isLoggedIn=!1,this.token="",this.zim.logout()},e.prototype.destroy=function(){this.offEvent(),this.zim.destroy(),this.isInit=!1},e.prototype.uploadLog=function(){return this.zim.uploadLog()},e.prototype.registerConnectionStateChangedCallback=function(e){this.eventHandler.addEventListener(r.zimConnectionStateChanged,[e])},e.prototype.onEvent=function(){var e=this;this.zim.on(r.zimError,(function(t,n){e.eventHandler.actionListener(r.zimError,n)})),this.zim.on(r.zimConnectionStateChanged,(function(t,n){0===n.state&&3===n.event&&e.zim.login(e.userInfo,e.token),e.eventHandler.actionListener(r.zimConnectionStateChanged,n)})),this.zim.on(r.zimReceivePeerMessage,(function(t,n){e.eventHandler.actionListener(r.zimReceivePeerMessage,n)})),this.zim.on(r.zimReceiveGroupMessage,(function(t,n){e.eventHandler.actionListener(r.zimReceiveGroupMessage,n)})),this.zim.on(r.zimConversationTotalUnreadMessageCountUpdated,(function(t,n){e.eventHandler.actionListener(r.zimConversationTotalUnreadMessageCountUpdated,n)})),this.zim.on(r.zimConversationChanged,(function(t,n){e.eventHandler.actionListener(r.zimConversationChanged,n)})),window.addEventListener("offline",(function(){console.log("===网络失败,请稍后重试"),e.networkStatus=N.offline})),window.addEventListener("online",(function(){console.log("===网络连接"),e.networkStatus=N.online}))},e.prototype.offEvent=function(){this.zim.off(r.zimError),this.zim.off(r.zimConversationChanged),this.zim.off(r.zimTokenWillExpire),this.zim.off(r.zimReceivePeerMessage),this.zim.off(r.zimReceiveGroupMessage),this.zim.off(r.zimConversationTotalUnreadMessageCountUpdated)},e}(),T=function(e){this.conversationID=e.conversationID,this.conversationName=e.conversationName,this.conversationAvatarUrl=e.conversationAvatarUrl,this.type=e.type,this.unreadMessageCount=e.unreadMessageCount,this.lastMessage=e.lastMessage,this.orderKey=e.orderKey,this.notificationStatus=e.notificationStatus},k=function(){function e(){return this.eventHandler=m.getInstance(),this.pagePullCount=100,this.conversationList=[],this.totalUnreadMessageCount=0,this.isAbnormal=!1,this.activeCvID="",this.loadStatus=0,e.instance||(e.instance=this,e.instance.initListenerHandle()),e.instance}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.initListenerHandle=function(){var e=this;this.eventHandler.addEventListener(r.zimConversationTotalUnreadMessageCountUpdated,[function(t){e.totalUnreadMessageCount=t.totalUnreadMessageCount}]),this.eventHandler.addEventListener(r.zimConversationChanged,[function(t){if(2===e.loadStatus){var n=!1,o=!1;if(t.infoList.forEach((function(t){switch(t.event){case 1:if(e.conversationList.length){var r=!1;e.conversationList.forEach((function(i){i.conversationID===t.conversation.conversationID&&(r=!0,Object.assign(i,t.conversation),e.activeCvID===t.conversation.conversationID&&(o=!0),n=!0)})),r||(e.conversationList.push(t.conversation),n=!0)}else e.conversationList.push(t.conversation),e.activeCvID=t.conversation.conversationID,n=!0,o=!0;break;case 0:var i=e.conversationList.length;n=e.insetConversationList(t.conversation),i||(e.activeCvID=t.conversation.conversationID,o=!0)}})),n&&(e.sortCvListHandle(),e.eventHandler.actionListener(r.zimKitConversationListUpdate,e.conversationList)),o){var i=e.getConversationByID(e.activeCvID);e.eventHandler.actionListener(r.zimKitCurrentConversationUpdate,i),i.unreadMessageCount&&e.clearConversationUnreadMessageCount(i.conversationID,i.type)}}}])},e.prototype.loadConversationList=function(){var e=this,t={nextConversation:void 0,count:localStorage.count||this.pagePullCount};return 1===this.loadStatus?Promise.reject():(this.loadStatus=1,H.getInstance().zim.queryConversationList(t).then((function(t){if(e.loadStatus=2,e.isAbnormal=!1,e.conversationList.length=0,t.conversationList.forEach((function(t){0!==t.type&&2!==t.type||e.conversationList.push(new T(t))})),e.sortCvListHandle(),e.conversationList.length&&!e.activeCvID){var n=e.conversationList[0];e.activeCvID=n.conversationID,e.clearConversationUnreadMessageCount(n.conversationID,n.type)}e.eventHandler.actionListener(r.zimKitConversationListUpdate,e.conversationList),e.eventHandler.actionListener(r.zimKitCurrentConversationUpdate,e.getConversationByID(e.activeCvID)),e.eventHandler.actionListener(r.zimKitConversationListQueryAbnormally,!1)})).catch((function(t){e.loadStatus=2,e.isAbnormal=!0,e.eventHandler.actionListener(r.zimKitConversationListQueryAbnormally,!0)})))},e.prototype.setCurrentConversation=function(e){this.activeCvID=e,this.eventHandler.actionListener(r.zimKitCurrentConversationUpdate,this.getConversationByID(e))},e.prototype.setTempConversation=function(e){this.activeCvID=e.conversationID,this.eventHandler.actionListener(r.zimKitCurrentConversationUpdate,e)},e.prototype.loadNextPage=function(){var e=this,t={nextConversation:this.conversationList[this.conversationList.length-1],count:this.pagePullCount};H.getInstance().zim.queryConversationList(t).then((function(t){t.conversationList.forEach((function(t){0!==t.type&&2!==t.type||e.conversationList.push(new T(t))})),e.sortCvListHandle(),e.eventHandler.actionListener(r.zimKitConversationListUpdate,e.conversationList)}))},e.prototype.deleteConversation=function(e,t){var n=this;return H.getInstance().zim.deleteConversation(e,t,{isAlsoDeleteServerConversation:!0}).then((function(t){return n.conversationList.forEach((function(e,o){e.conversationID===t.conversationID&&n.conversationList.splice(o,1)})),e===n.activeCvID&&n.conversationList.length&&(n.activeCvID=n.conversationList[0].conversationID,n.eventHandler.actionListener(r.zimKitCurrentConversationUpdate,n.conversationList[0])),n.eventHandler.actionListener(r.zimKitConversationListUpdate,n.conversationList),n.eventHandler.actionListener(r.zimKitDeleteConversation,e),t}))},e.prototype.removeData=function(){},e.prototype.clearConversationUnreadMessageCount=function(e,t){return H.getInstance().zim.clearConversationUnreadMessageCount(e,t).catch((function(e){console.error(e)}))},e.prototype.registerIsLoggedInCallback=function(e){this.eventHandler.addEventListener(r.zimKitIsLoggedIn,[e])},e.prototype.registerCvTotalUnreadMessageCountUpdatedCallback=function(e){this.eventHandler.addEventListener(r.zimConversationTotalUnreadMessageCountUpdated,[e])},e.prototype.registerCvListUpdatedCallback=function(e){this.eventHandler.addEventListener(r.zimKitConversationListUpdate,[e])},e.prototype.registerAbnormalCallback=function(e){this.eventHandler.addEventListener(r.zimKitConversationListQueryAbnormally,[e])},e.prototype.registerCurrentCvUpdatedCallback=function(e){this.eventHandler.addEventListener(r.zimKitCurrentConversationUpdate,[e])},e.prototype.unInit=function(){this.conversationList.length=0,this.totalUnreadMessageCount=0,this.isAbnormal=!1,this.activeCvID="",this.loadStatus=0},e.prototype.getConversationByID=function(e){return this.conversationList.filter((function(t){return t.conversationID===e}))[0]},e.prototype.insetConversationList=function(e){var t=!1;return void 0===this.conversationList.find((function(t){return e.conversationID===t.conversationID}))&&(this.conversationList.push(e),t=!0),t},e.prototype.sortCvListHandle=function(){this.conversationList.sort((function(e,t){return t.orderKey-e.orderKey}))},e}(),z=function(){function e(){return this.eventHandler=m.getInstance(),this.memberList=[],e.instance||(e.instance=this,e.instance.initListenerHandle()),e.instance}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.initListenerHandle=function(){var e=this;this.eventHandler.addEventListener(r.zimKitCreateGroup,[function(){}]),this.eventHandler.addEventListener(r.zimKitCurrentConversationUpdate,[function(t){t&&2===t.type&&(e.currentGroupInfo={baseInfo:{groupID:t.conversationID,groupName:t.conversationName}},e.eventHandler.actionListener(r.zimKitCurrentGroupInfoUpdated,e.currentGroupInfo),e.queryGroupMemberList(t.conversationID))}])},e.prototype.createGroup=function(e,t,n){var o=this,i={groupID:e,groupName:t,groupAvatarUrl:""};return H.getInstance().zim.createGroup(i,n).then((function(e){return o.currentGroupInfo=e.groupInfo,o.eventHandler.actionListener(r.zimKitCurrentGroupInfoUpdated,o.currentGroupInfo),e}))},e.prototype.queryGroupMemberList=function(e){var t=this;return H.getInstance().zim.queryGroupMemberList(e,{count:100,nextFlag:0}).then((function(e){t.memberList=e.userList})).catch((function(e){console.log("queryGroupMemberList err",e)}))},e.prototype.joinGroup=function(e){var t=this;return H.getInstance().zim.joinGroup(e).then((function(e){return t.currentGroupInfo=e.groupInfo,t.eventHandler.actionListener(r.zimKitCurrentGroupInfoUpdated,t.currentGroupInfo),e}))},e.prototype.leaveGroup=function(e){return H.getInstance().zim.leaveGroup(e)},e.prototype.dismissGroup=function(e){},e.prototype.inviteUsersJoinGroup=function(e,t){},e.prototype.kickGroupMembers=function(e,t){},e.prototype.queryGroupInfo=function(e){return H.getInstance().zim.queryGroupInfo(e)},e.prototype.unInit=function(){this.currentGroupInfo=null,this.memberList.length=0},e.prototype.registerCurrentGroupInfoUpdateCallback=function(e){this.eventHandler.addEventListener(r.zimKitCurrentGroupInfoUpdated,[e])},e}(),G=(i(567),i(471),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}()),j=function(){return j=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},j.apply(this,arguments)},P=A.getInstance().getI18next(),q=function(e){function t(t){var n=e.call(this,t)||this;return n.changeNav=n.changeNav.bind(n),n}return G(t,e),t.prototype.changeNav=function(){this.props.onNavChange(this.props.item)},t.prototype.render=function(){return _().createElement("div",{className:"title"+(this.props.item.actived?" actived":""),onClick:this.changeNav},this.props.item.text)},t}(_().Component),K=function(e){function t(t){var n=e.call(this,t)||this;return n.state={tabList:n.props.tabList.map((function(e,t){return j(j({},e),{actived:!t})}))},n.handleNavChange=n.handleNavChange.bind(n),n}return G(t,e),t.prototype.handleNavChange=function(e){this.state.tabList.forEach((function(t){t.actived=t.id===e.id})),this.setState({tabList:this.state.tabList}),this.props.onNavChange(e)},t.prototype.render=function(){var e=this,t=null;return this.state.tabList&&(t=this.state.tabList.map((function(t){return _().createElement(q,{key:t.id,item:t,onNavChange:e.handleNavChange})}))),_().createElement("div",{className:"top"},t)},t}(_().Component),W=function(e){function t(t){var n=e.call(this,t)||this;return n.state={peerErrTip:!1,peerDisabled:!0,groupErrTip:!1,groupDisabled:!0,groupID:"",toUserID:"",groupName:"",userIDList:""},n.closeDialog=n.closeDialog.bind(n),n.createPeerChat=n.createPeerChat.bind(n),n.createGroupChat=n.createGroupChat.bind(n),n.joinGroup=n.joinGroup.bind(n),n.handleUserIDInputChange=n.handleUserIDInputChange.bind(n),n.handleGroupUserIDInputChange=n.handleGroupUserIDInputChange.bind(n),n.handleGroupIDInputChange=n.handleGroupIDInputChange.bind(n),n.handleGroupNameInputChange=n.handleGroupNameInputChange.bind(n),n}return G(t,e),t.prototype.closeDialog=function(){this.props.onCloseDialog()},t.prototype.createPeerChat=function(){this.props.onCreatePeerChat(this.state.toUserID)},t.prototype.createGroupChat=function(){this.props.onCreateGroupChat(this.state.groupName,this.state.userIDList)},t.prototype.joinGroup=function(){this.props.onJoinGroup(this.state.groupID)},t.prototype.handleUserIDInputChange=function(e){var t=e.target.value;if(t.length){var n=t.length<6||t.length>12;this.setState({toUserID:t,peerErrTip:n,peerDisabled:n})}else this.setState({toUserID:t,peerErrTip:!1,peerDisabled:!0})},t.prototype.handleGroupUserIDInputChange=function(e){var t=e.target.value,n=!0,o=!0;if(this.stat