"use strict";(self.webpackChunkchat=self.webpackChunkchat||[]).push([[632],{8632:(e,t,a)=>{a.r(t),a.d(t,{chatListeners:()=>O});var r=a(678),n=a(9133),o=a(7800),i=a(7489),s=a(3190),c=function e(t){var a,r;return{id:t[0],nickName:t[1],type:t[2],content:null!==(a=t[3])&&void 0!==a?a:null,gameType:null!==(r=t[4])&&void 0!==r?r:null,likeCount:t[5],isLiked:t[6],isInfluencer:t[7],profanityCount:t[8],date:new Date(t[9]).toString(),avatarUrl:t[10],baseMessage:t[11]?e(t[11]):null}},l=function(e){var t;return{minShareCoefficient:null!==(t=+e[0])&&void 0!==t?t:null}},u=function(e){return{id:e[0],isBlocked:e[1],isInfluencer:e[2],nickName:e[3],avatarUrl:e[4],canChangeNickName:e[5],blockType:e[6],unblockingDate:e[7]?new Date(e[7]).toString():null}},p=function(e){return{id:e[0],url:e[1]}},m=function(e){var t,a;return{id:e[0],name:null!==(t=e[1])&&void 0!==t?t:null,url:null!==(a=e[2])&&void 0!==a?a:null}},d=function(e){return{id:e[0],name:e[1],configuration:l(e[2]),player:e[3]?u(e[3]):null,messages:i.IEnumerable.map(e[4],c),pinnedMessages:i.IEnumerable.map(e[5],c),defaultAvatars:i.IEnumerable.map(e[6],p),emojis:i.IEnumerable.map(e[7],m)}},f=function(e){return{chatId:e[0],message:g(e[1]),baseMessage:e[2]?g(e[2]):null}},g=function(e){var t,a;return{id:e[0],partnerPlayerId:e[1],nickName:e[2],avatarUrl:e[3],isInfluencer:e[4],type:e[5],gameType:null!==(t=e[6])&&void 0!==t?t:null,content:null!==(a=e[7])&&void 0!==a?a:null,date:e[8]?new Date(e[8]).toString():null,containsProfanity:e[9],partnerId:e[10]}},v=function(e){return{id:e[0],likesCount:e[1]}},b=function(e){return{error:e[0]}},y=function(e){return{messageId:e[0],repliedMessageIds:e[1],nickName:e[2]}};function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function j(e){for(var t=1;t{a.d(t,{Fr:()=>u,GN:()=>p,Gz:()=>s,Hj:()=>n,IJ:()=>m,T2:()=>c,TQ:()=>o,iS:()=>i,wY:()=>d});var r=a(6295),n={OnChatReceive:"OnChatReceive",ReceiveMessage:"ReceiveMessage",SendMessage:"SendMessage",LikeMessage:"LikeMessage",UnLikeMessage:"UnLikeMessage",UpdateMessage:"UpdateMessage",UpdatePlayer:"UpdatePlayer",DeactivateChat:"DeactivateChat",Error:"Error",DeleteMessage:"DeleteMessage"},o={Text:0,Emoji:1,ShareWin:2,Gif:3},i={0:"text",1:"emoji",2:"sharewin",3:"gif"},s="Nq3Kdtkp3POEr9SsAGLVf1Ikv8g5KiFt",c={NicknameExist:4007,NicknameWithProfanity:4010},l=(0,r.getTypedParamsFromURL)()||{},u=(l.mode,l.backUrl,l.partnerId,l.playerId,l.referer,l.isMobile),p=l.gameKindName,m=l.gameTypeName,d=(l.activeGameId,l.culture,l.isDemo)}}]);