/*! For license information please see 613.a5bd76652bd274a43abd.js.LICENSE.txt */ "use strict";(self.webpackChunkchat=self.webpackChunkchat||[]).push([[613],{837:(e,t,r)=>{r.d(t,{Re:()=>p,Zy:()=>y,bG:()=>h,d9:()=>d});var n=r(3953),o=r(2590),i=r(5457),a=r(2211);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 e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function v(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:E(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=v;var h={};function d(){}function p(){}function y(){}var g={};s(g,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(j([])));w&&w!==t&&r.call(w,i)&&(g=w);var b=y.prototype=d.prototype=Object.create(g);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function o(n,i,a,u){var l=f(e[n],e,i);if("throw"!==l.type){var s=l.arg,v=s.value;return v&&"object"==c(v)&&r.call(v,"__await")?t.resolve(v.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(v).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,u)}))}u(l.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e||""===e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},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;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}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,{GZ:()=>v,G_:()=>u,Ve:()=>i,c$:()=>c,sx:()=>a,tq:()=>s,zC:()=>o});var n=r(6606),o={OnChatReceive:"OnChatReceive",ReceiveMessage:"ReceiveMessage",SendMessage:"SendMessage",LikeMessage:"LikeMessage",UnLikeMessage:"UnLikeMessage",UpdateMessage:"UpdateMessage",UpdatePlayer:"UpdatePlayer",DeactivateChat:"DeactivateChat",Error:"Error"},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;l.activeGameId,l.culture,l.isDemo},8430:(e,t,r)=>{r.d(t,{$V:()=>w,D3:()=>S,DD:()=>b,Nw:()=>E,TA:()=>d,UA:()=>h,Uf:()=>L,Zw:()=>s,aX:()=>v,ck:()=>g,cq:()=>c,eh:()=>l,fh:()=>m,pQ:()=>O,u3:()=>f,w4:()=>p,zZ:()=>y});var n=r(1254),o=r(8030),i=r(9864),a=r(3590),c=i.Z,u=(0,n.createSlice)({name:"launcher",initialState:a.E,reducers:c}),l=function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.E;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}},s=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.messages)||[]},v=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.player)||{}},f=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.repliedMessage)||null},h=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.isSmileBlockOpened},d=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.emojis)||[]},p=function(e){var t;return(null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.defaultAvatars)||[]},y=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},g=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.isInputFocused},m=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.id},w=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.error},b=function(e){var t;return null===(t=e.services)||void 0===t||null===(t=t.chat)||void 0===t?void 0:t.showChatIndicator},O=function(e){var t,r,n;return{showChatIcon:"Crasher"!==e.partnerInfo.gameTypeName&&!(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:b(e),chatPopupOpened:y(e)}},L=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=u.actions,S=u.reducer}}]);