'use strict';

var __bundle57e0c5af = require('./__bundle-57e0c5af-b8304f7a.js');

exports._ = void 0;!function(e){e[e.NONE=0]="NONE",e[e.CHANNEL_ENTER=10102]="CHANNEL_ENTER",e[e.CHANNEL_EXIT=10103]="CHANNEL_EXIT",e[e.USER_CHANNEL_MUTE=10201]="USER_CHANNEL_MUTE",e[e.USER_CHANNEL_UNMUTE=10200]="USER_CHANNEL_UNMUTE",e[e.USER_CHANNEL_BAN=10601]="USER_CHANNEL_BAN",e[e.USER_CHANNEL_UNBAN=10600]="USER_CHANNEL_UNBAN",e[e.CHANNEL_FREEZE=10701]="CHANNEL_FREEZE",e[e.CHANNEL_UNFREEZE=10700]="CHANNEL_UNFREEZE",e[e.TYPING_START=10900]="TYPING_START",e[e.TYPING_END=10901]="TYPING_END",e[e.CHANNEL_JOIN=1e4]="CHANNEL_JOIN",e[e.CHANNEL_LEAVE=10001]="CHANNEL_LEAVE",e[e.CHANNEL_OPERATOR_UPDATE=10002]="CHANNEL_OPERATOR_UPDATE",e[e.CHANNEL_INVITE=10020]="CHANNEL_INVITE",e[e.CHANNEL_ACCEPT_INVITE=10021]="CHANNEL_ACCEPT_INVITE",e[e.CHANNEL_DECLINE_INVITE=10022]="CHANNEL_DECLINE_INVITE",e[e.CHANNEL_PROP_CHANGED=11e3]="CHANNEL_PROP_CHANGED",e[e.CHANNEL_DELETED=12e3]="CHANNEL_DELETED",e[e.CHANNEL_META_DATA_CHANGED=11100]="CHANNEL_META_DATA_CHANGED",e[e.CHANNEL_META_COUNTERS_CHANGED=11200]="CHANNEL_META_COUNTERS_CHANGED",e[e.CHANNEL_HIDE=13e3]="CHANNEL_HIDE",e[e.CHANNEL_UNHIDE=13001]="CHANNEL_UNHIDE";}(exports._||(exports._={}));var l=function(){function n(e){this.channelUrl=e.channel_url,this.channelType=e.channel_type,this.category=e.cat,this.data=e.data,this.ts=e.ts;}return Object.defineProperty(n.prototype,"isGroupChannelEvent",{get:function(){return this.channelType===__bundle57e0c5af.ne.GROUP},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpenChannelEvent",{get:function(){return this.channelType===__bundle57e0c5af.ne.OPEN},enumerable:!1,configurable:!0}),n}(),C=function(e){function t(n,t,a){var s=e.call(this,n,"SYEV",a)||this;return s.event=new l(a),s}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),d=function(e){function t(n,t,s){var N=e.call(this,n,t,s)||this,o=s.data.operators,E=void 0===o?[]:o;return N.operators=E.map((function(e){return new __bundle57e0c5af.ct(N._iid,e)})),N}return __bundle57e0c5af.t(t,e),t}(C),h=function(e){function t(n,t,a){var s=e.call(this,n,"MCNT",a)||this;return s.groupChannelMemberCounts=a.group_channels.map((function(e){return {channelUrl:e.channel_url,memberCount:e.member_count,joinedMemberCount:e.joined_member_count,updatedAt:e.ts}})),s.openChannelMemberCounts=a.open_channels.map((function(e){return {channelUrl:e.channel_url,participantCount:e.participant_count,updatedAt:e.ts}})),s}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),A=function(e){function t(n,t,a){var E,i,r,u=this;(u=e.call(this,n,"ADMM",a)||this).message=new __bundle57e0c5af.Kt(n,a);var _=__bundle57e0c5af.St.of(n).sdkState;return u.isMentioned=__bundle57e0c5af.Ye(u.message.mentionType,null!==(E=u.message.mentionedUserIds)&&void 0!==E?E:null===(i=u.message.mentionedUsers)||void 0===i?void 0:i.map((function(e){return e.userId})),_.userId),u.forceUpdateLastMessage=null!==(r=a.force_update_last_message)&&void 0!==r&&r,u}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),c=function(e){function t(n,t,a){var o,i,r,u,_,l,C=this;(C=e.call(this,n,"AEDI",a)||this).message=new __bundle57e0c5af.Kt(n,a);var d=__bundle57e0c5af.St.of(n).sdkState;return C.mentionCountChange=__bundle57e0c5af.Je({mentionType:null!==(i=null===(o=a.old_values)||void 0===o?void 0:o.mention_type)&&void 0!==i?i:null,mentionedUserIds:null!==(u=null===(r=a.old_values)||void 0===r?void 0:r.mentioned_user_ids)&&void 0!==u?u:[]},{mentionType:C.message.mentionType,mentionedUserIds:null!==(_=C.message.mentionedUserIds)&&void 0!==_?_:null===(l=C.message.mentionedUsers)||void 0===l?void 0:l.map((function(e){return e.userId}))},d.userId),C}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),T=function(e){function t(n,t,a){var s=e.call(this,n,"MRCT",a)||this;return s.channelUrl=a.channel_url,s.channelType=a.channel_type,s.event=new __bundle57e0c5af.wt$1(a),s}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),H=function(e){function t(n,t,a){var s=e.call(this,n,"MTHD",a)||this;return s.event=new __bundle57e0c5af.Sn(n,a),s}return __bundle57e0c5af.t(t,e),t}(__bundle57e0c5af.B),U=function(){this.onUserMuted=__bundle57e0c5af.Y,this.onUserUnmuted=__bundle57e0c5af.Y,this.onUserBanned=__bundle57e0c5af.Y,this.onUserUnbanned=__bundle57e0c5af.Y,this.onChannelChanged=__bundle57e0c5af.Y,this.onChannelDeleted=__bundle57e0c5af.Y,this.onChannelFrozen=__bundle57e0c5af.Y,this.onChannelUnfrozen=__bundle57e0c5af.Y,this.onOperatorUpdated=__bundle57e0c5af.Y,this.onChannelMemberCountChanged=__bundle57e0c5af.Y,this.onMetaDataCreated=__bundle57e0c5af.Y,this.onMetaDataUpdated=__bundle57e0c5af.Y,this.onMetaDataDeleted=__bundle57e0c5af.Y,this.onMetaCounterCreated=__bundle57e0c5af.Y,this.onMetaCounterUpdated=__bundle57e0c5af.Y,this.onMetaCounterDeleted=__bundle57e0c5af.Y,this.onMessageReceived=__bundle57e0c5af.Y,this.onMessageUpdated=__bundle57e0c5af.Y,this.onMessageDeleted=__bundle57e0c5af.Y,this.onMentionReceived=__bundle57e0c5af.Y,this.onReactionUpdated=__bundle57e0c5af.Y,this.onThreadInfoUpdated=__bundle57e0c5af.Y;};

exports.A = A;
exports.C = C;
exports.H = H;
exports.T = T;
exports.U = U;
exports.c = c;
exports.d = d;
exports.h = h;
//# sourceMappingURL=__bundle-bd072f34-578ccb1e.js.map
