/*! For license information please see 343.7416d22b8b1a70893681.js.LICENSE.txt */ "use strict";(self.webpackChunkchat=self.webpackChunkchat||[]).push([[343],{4228:(e,t,r)=>{r.d(t,{LX:()=>p,_z:()=>v,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",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function v(e,t,r,n){var i=t&&t.prototype instanceof w?t:w,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:P(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=v;var d="suspendedStart",p="suspendedYield",y="executing",g="completed",m={};function w(){}function b(){}function k(){}var O={};f(O,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(_([])));L&&L!==r&&n.call(L,a)&&(O=L);var j=k.prototype=w.prototype=Object.create(O);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,u){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(s.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 P(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 s=h(t,r,n);if("normal"===s.type){if(o=n.done?g:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function _(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"),s=n.call(a,"finallyLoc");if(u&&s){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),C(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;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function s(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 l(e){for(var t=1;t{r.d(t,{$s:()=>l,Dj:()=>c,PH:()=>o,QX:()=>h,Us:()=>u,Zh:()=>f,b:()=>a,nR:()=>s,tm:()=>v,x6:()=>i});var n=r(8874),o=(0,n.css)(["width:100%;height:100%;"]),i=(0,n.css)(["font-size:1em;cursor:pointer;"]),a=(0,n.css)(["",";position:absolute;background:transparent;border:none;padding:0;"],i),c=function(e){var t=e.isInlineFlex,r=e.alignItems,n=e.justifyContent,o=e.alignContent,i=e.isWrap,a=e.flexDirection;return"\n display: ".concat(t?"inline-flex":"flex",";\n ").concat(r&&"align-items: ".concat(r),";\n ").concat(n&&"justify-content: ".concat(n),";\n ").concat(o&&"align-content: ".concat(o),";\n ").concat(i&&"flex-wrap: wrap",";\n ").concat(a&&"flex-direction: ".concat(a),";\n")},u=(0,n.css)(["position:absolute;top:0;left:0;"]),s=(0,n.css)(['content:"";',";"],u),l=(0,n.css)(["",";height:0.125em;width:100%;background:radial-gradient(50% 100% at 50% 0%,#ff5c25 0%,rgba(255,92,37,0) 100%);"],s),f=(0,n.css)(["",";height:1px;width:100%;background:radial-gradient(50% 50% at 50% 50%,#ff8425 0%,rgba(255,132,37,0) 100%);"],s),v=(0,n.css)(["color:rgb(var(--white));text-transform:uppercase;"]),h=(0,n.css)(["&::-webkit-scrollbar{width:0.125em;height:0.125em;}&::-webkit-scrollbar-track-piece{background-color:transparent;}&::-webkit-scrollbar-thumb:vertical{height:0.3125em;background:#66462d;border-radius:0.1875em;}"])},3190:(e,t,r)=>{r.d(t,{Fr:()=>l,GN:()=>f,Gz:()=>c,Hj:()=>o,IJ:()=>v,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},s=(0,n.getTypedParamsFromURL)()||{},l=(s.mode,s.backUrl,s.partnerId,s.playerId,s.referer,s.isMobile),f=s.gameKindName,v=s.gameTypeName,h=(s.activeGameId,s.culture,s.isDemo)},2153:(e,t,r)=>{r.d(t,{AW:()=>g,FA:()=>d,Gl:()=>O,KW:()=>m,R:()=>k,Rk:()=>h,St:()=>v,Uu:()=>p,YE:()=>j,hQ:()=>l,jB:()=>w,k9:()=>b,mC:()=>y,mF:()=>u,o1:()=>L,vR:()=>x,ze:()=>f});var n=r(5942),o=r(9133),i=r(2213),a=r(7792),c=r(3190),u=i.A,s=(0,n.createSlice)({name:"launcher",initialState:a.u,reducers:u}),l=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}},f=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)||{}},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},k=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:!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:k(e),chatPopupOpened:g(e)}},x=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},L=s.actions,j=s.reducer}}]);