/*! For license information please see 94.d13ea48bfe5cbe914a6f.js.LICENSE.txt */ "use strict";(self.webpackChunkchat=self.webpackChunkchat||[]).push([[94],{4228:(e,t,r)=>{r.d(t,{LX:()=>p,_z:()=>f,iG:()=>d,x8:()=>h});var n=r(9094),o=r(2517),i=r(1858),a=r(3190);function c(e){return c="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},c(e)}function u(){u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function v(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(e){v=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof w?t:w,a=Object.create(i.prototype),c=new N(n||[]);return o(a,"_invoke",{value:x(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var d="suspendedStart",p="suspendedYield",y="executing",g="completed",m={};function w(){}function b(){}function O(){}var L={};v(L,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(C([])));E&&E!==r&&n.call(E,a)&&(L=E);var k=O.prototype=w.prototype=Object.create(L);function P(e){["next","throw","return"].forEach((function(t){v(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(o,i,a,u){var l=h(e[o],e,i);if("throw"!==l.type){var s=l.arg,v=s.value;return v&&"object"==c(v)&&n.call(v,"__await")?t.resolve(v.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(v).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function x(t,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?g:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{r.d(t,{Fr:()=>s,GN:()=>v,Gz:()=>c,Hj:()=>o,IJ:()=>f,T2:()=>u,TQ:()=>i,iS:()=>a,wY:()=>h});var n=r(6295),o={OnChatReceive:"OnChatReceive",ReceiveMessage:"ReceiveMessage",SendMessage:"SendMessage",LikeMessage:"LikeMessage",UnLikeMessage:"UnLikeMessage",UpdateMessage:"UpdateMessage",UpdatePlayer:"UpdatePlayer",DeactivateChat:"DeactivateChat",Error:"Error",DeleteMessage:"DeleteMessage"},i={Text:0,Emoji:1,ShareWin:2,Gif:3},a={0:"text",1:"emoji",2:"sharewin",3:"gif"},c="Nq3Kdtkp3POEr9SsAGLVf1Ikv8g5KiFt",u={NicknameExist:4007,NicknameWithProfanity:4010},l=(0,n.getTypedParamsFromURL)()||{},s=(l.mode,l.backUrl,l.partnerId,l.playerId,l.referer,l.isMobile),v=l.gameKindName,f=l.gameTypeName,h=(l.activeGameId,l.culture,l.isDemo)},2153:(e,t,r)=>{r.d(t,{AW:()=>g,FA:()=>d,Gl:()=>L,KW:()=>m,R:()=>O,Rk:()=>h,St:()=>f,Uu:()=>p,YE:()=>k,hQ:()=>s,jB:()=>w,k9:()=>b,mC:()=>y,mF:()=>u,o1:()=>E,vR:()=>S,ze:()=>v});var n=r(5942),o=r(9133),i=r(2213),a=r(7792),c=r(3190),u=i.A,l=(0,n.createSlice)({name:"launcher",initialState:a.u,reducers:u}),s=function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.u;return{chatId:null===(e=n.services)||void 0===e||null===(e=e.chat)||void 0===e?void 0:e.id,smileBlockIsOpened:null===(t=n.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.isSmileBlockOpened,isBlocked:null===(r=n.services.chat)||void 0===r||null===(r=r.player)||void 0===r?void 0:r.isBlocked}},v=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.messages)||[]},f=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.player)||{}},h=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.repliedMessage)||null},d=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.isSmileBlockOpened},p=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.emojis)||[]},y=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.defaultAvatars)||[]},g=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.popups)||void 0===t||null===(t=t[o.BASE_POPUP_NAMES.CHAT_POPUP])||void 0===t?void 0:t.open)||!1},m=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.isInputFocused},w=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.id},b=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.error},O=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.showChatIndicator},L=function(e){var t,r,n;return{showChatIcon:!e.hideChatIconFromHeader&&"Crasher"!==c.GN&&!(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t||!t.id),showAvatar:!(null===(r=e.services)||void 0===r||null===(r=r.chat)||void 0===r||null===(r=r.player)||void 0===r||!r.nickName),avatarUrl:null===(n=e.services)||void 0===n||null===(n=n.chat)||void 0===n||null===(n=n.player)||void 0===n?void 0:n.avatarUrl,newMessageNotify:O(e),chatPopupOpened:g(e)}},S=function(e){var t,r,n;return(null===(t=e.gameInfo)||void 0===t?void 0:t.sharedBigWinCoefficient)>=(null===(r=e.services.chat)||void 0===r||null===(r=r.configuration)||void 0===r?void 0:r.minShareCoefficient)?null===(n=e.gameInfo)||void 0===n?void 0:n.sharedBigWinCoefficient:0},E=l.actions,k=l.reducer}}]);