/*! For license information please see 4333.e1440e100412e7294357.js.LICENSE.txt */ (self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[4333],{1352:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(4914),o=n(3444),a=n.n(o),i=n(6337),s=n(4848);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.r(t),n.d(t,{BASE_POPUP_NAMES:()=>u,BaseHubMethodNames:()=>a,BaseHubRequests:()=>i,BaseHubResponseModels:()=>c,types:()=>o,useBaseRequests:()=>s});var r=n(6337),o={string:"",number:0,array:[],object:{},bool:!1,date:new Date},a={Ping:"Ping",GetBalance:"GetBalance",GetInitialState:"GetInitialState",GetInitialStateGameTickets:"GetInitialStateGameTickets",GetInitialStateHistory:"GetInitialStateHistory",GetInitialStateMaxWinners:"GetInitialStateMaxWinners",GetInitialStateLeaders:"GetInitialStateLeaders",GetInitialStateGameResults:"GetInitialStateGameResults",GetInitialStateStatistics:"GetInitialStateStatistics",GetInitialStateCashBackInfo:"GetInitialStateCashBackInfo",GetInitialStateLastRoundTickets:"GetInitialStateLastRoundTickets",GenerateHashCode:"GenerateHashCode",History:"History",BonusHistory:"BonusHistory",BonusInfo:"BonusInfo",BonusNotify:"BonusNotify",Error:"Error",LogOutPlayer:"LogOutPlayer",ExpiredToken:"ExpiredToken",Deactivated:"Deactivated",UpdateWinners:"UpdateWinners",GetMaxWinners:"GetMaxWinners",ActiveLeaderboardInfo:"ActiveLeaderboardInfo",LeaderboardPlayersListUpdate:"LeaderboardPlayersListUpdate",LeaderboardPlayerScoreUpdate:"LeaderboardPlayerScoreUpdate",LeaderboardInfo:"LeaderboardInfo",LeaderboardHistory:"LeaderboardHistory",LeaderboardStart:"LeaderboardStart",LeaderboardFinish:"LeaderboardFinish",LeaderboardPlayerWin:"LeaderboardPlayerWin",UpcomingLeaderboards:"UpcomingLeaderboards",Validation:"Validation"},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return{Ping:function(){this.name=a.Ping,this.model={version:e},this.messagePackModel=(0,r.parseObjectToArray)([e])},GetBalance:function(t){var n=t.token,o=void 0===n?0:n;this.name=a.GetBalance,this.model={version:e,token:o},this.messagePackModel=(0,r.parseObjectToArray)([e,o])},GetInitialState:function(t){var n=t.activeGameId,o=void 0===n?0:n,i=t.token,s=void 0===i?"":i,c=t.isDemo,u=void 0!==c&&c,l=t.partnerId,f=void 0===l?0:l,d=t.culture,h=void 0===d?"":d,p=t.isModeChanged,v=void 0!==p&&p;this.name=a.GetInitialState,this.model={version:e,activeGameId:o,token:s,isDemo:u,partnerId:f,culture:h},this.messagePackModel=(0,r.parseObjectToArray)([e,+o,s,"true"===u,+f,h,v])},GenerateHashCode:function(t){var n=t.key,o=void 0===n?"":n,i=t.salt,s=void 0===i?"":i;this.name=a.GenerateHashCode,this.model={version:e,key:o,salt:s},this.messagePackModel=(0,r.parseObjectToArray)([e,o,s])},History:function(t){var n=t.token,o=void 0===n?"":n;this.name=a.History,this.model={version:e,token:o},this.messagePackModel=(0,r.parseObjectToArray)([+e,o])},BonusHistory:function(t){var n=t.token,r=void 0===n?"":n;this.name=a.BonusHistory,this.model={version:e,token:r}},BonusInfo:function(t){var n=t.token,o=void 0===n?"":n,i=t.activeGameId,s=void 0===i?0:i;this.name=a.BonusInfo,this.model={version:e,token:o,activeGameId:s},this.messagePackModel=(0,r.parseObjectToArray)([e,o])},GetMaxWinners:function(t){var n=t.activeGameId,o=void 0===n?0:n,i=t.partnerId,s=void 0===i?"":i,c=t.token,u=void 0===c?"":c;this.name=a.GetMaxWinners,this.model={version:e,activeGameId:o,partnerId:s,token:u},this.messagePackModel=(0,r.parseObjectToArray)([e,o,s,u])}}};function s(e,t,n){var r=i(n),o=e||{},a=o.token,s=o.activeGameId,c=o.isDemo,u=o.partnerId,l=o.culture;return{getPing:function(){var e=new r.Ping;t(e)},getHashCode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=new r.GenerateHashCode({key:e,salt:n});t(o)},getBetHistory:function(){var e=new r.History({token:a});t(e)},getBonusHistory:function(){var e=new r.BonusHistory({token:a});t(e)},getBonusInfo:function(){var e=new r.BonusInfo({token:a,activeGameId:s});t(e)},getInitialState:function(){var e=new r.GetInitialState({activeGameId:s,token:a,isDemo:c,partnerId:u,culture:l});t(e)},getMaxWinners:function(){var e=new r.GetMaxWinners({activeGameId:s,partnerId:u,token:a});t(e)}}}var c={Ping:{},GetInitialStateCashBackInfo:{id:0,fillPercentage:0,boxCount:0,boxAmounts:[]},GetBalance:{balance:0},GenerateHashCode:{hashCode:""},BonusHistory:{bonusHistory:[{type:"string",quantity:0,bet:0,date:"1 January, 1970, 00:00:00 UTC",expireDate:"1 January, 1970, 00:00:00 UTC",totalWin:0}]},ActiveLeaderboardInfo:{leaderBoard:[{}]},LeaderboardPlayersListUpdate:{leaderBoard:[{}]},LeaderboardPlayerScoreUpdate:{leaderBoard:[{}]},LeaderboardInfo:{leaderBoard:[{}]},LeaderboardHistory:{leaderBoard:[{}]},LeaderboardStart:{leaderBoard:[{}]},LeaderboardFinish:{leaderBoard:[{}]},LeaderboardPlayerWin:{leaderBoard:[{}]},Error:{},LogOutPlayer:{},ExpiredToken:{isExpired:!1,token:""},Deactivated:{partnerIds:[]},Validation:{validation:void 0}},u=Object.freeze({RULES:"Rules",CHECK_HASH_CODE:"CheckHashCode",ABOUT_HASH_CODE:"AboutHashCode",GAME_CONTROLS:"GameControls",BONUS_LIST:"BonusListPopup",KEYBOARD:"Keyboard",GLOBAL_HISTORY:"GlobalHistory",GLOBAL_BONUS_HISTORY:"GlobalBonusHistory",CASH_BACK:"CashBackPopup",KEYBOARD_MINES:"KeyboardMines",MENU:"Menu",MAIN_MENU:"MainMenu",LEADER_BOARD:"LeaderBoard",LEADER_BOARD_HISTORY:"LeaderBoardHistory",BONUS_ASIDE:"BonusAside",CHAT_POPUP:"ChatPopup",CHAT_REGISTRY_POPUP:"ChatRegistryPopup"})},4825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var r=n(4914),o=n(3444),a=n.n(o),i=n(6295),s=n(7770),c=n.n(s),u=n(7999),l=n.n(u),f=n(4840),d=n.n(f),h=n(7749),p=n(5218),v=n(5072),y=n.n(v),m=n(7825),b=n.n(m),g=n(7659),S=n.n(g),w=n(5056),I=n.n(w),B=n(540),C=n.n(B),L=n(1113),H=n.n(L),E=n(4805),O={};O.styleTagTransform=H(),O.setAttributes=I(),O.insert=S().bind(null,"head"),O.domAPI=b(),O.insertStyleElement=C(),y()(E.A,O);const G=E.A&&E.A.locals?E.A.locals:void 0;var x=n(4553),j={};j.styleTagTransform=H(),j.setAttributes=I(),j.insert=S().bind(null,"head"),j.domAPI=b(),j.insertStyleElement=C(),y()(x.A,j);const k=x.A&&x.A.locals?x.A.locals:void 0;var A=n(4848),P=(0,i.getIsMobile)(),M="".concat(h.c_,"/images/global/").concat(P?"mobile":"desktop","/underconstruction.webp"),N=P?G:k;function T(e){var t=e.className,n=e.style,r=e.children,o=(0,p.shallowSelector)(p.selectFallBackInfo),a=o.isExpired,i=o.isDisconnected,s=o.underConstruction,u=o.isDeactivated,f=(0,p.shallowSelector)(p.selectResources),h=f.strWaitingForInternetConnection,v=f.strSessionExpired,y=f.strAttention,m=f.strWebSiteIsDownForMaintenance;return(0,A.jsx)("div",{className:"".concat(N.gameLayout," ").concat(t),children:u||null!=s&&s.show?(0,A.jsx)(l(),{url:M,text:m,startTime:null==s?void 0:s.startTime,endTime:null==s?void 0:s.endTime,resources:y,styles:n.underConstruction}):a?(0,A.jsx)(d(),{text:v}):i?(0,A.jsx)(c(),{text:h}):(0,A.jsx)("div",{className:N.gameCenter,children:r})})}const D=(0,r.memo)(T);T.defaultProps={className:"",style:{loader:{},underConstruction:{}},children:null},T.propTypes={className:a().string,style:a().shape({loader:a().object,underConstruction:a().object}),children:a().oneOfType([a().element,a().array])}},6806:(e,t,n)=>{"use strict";n.d(t,{g:()=>me});var r=n(4914),o=n(678),a=n(6295),i=n(5218),s=n(2593),c=n(8517),u=n(6337),l=n(5869),f=n.n(l),d=n(6299),h=n(7749),p=n(7438);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n ").concat(e.newVersion,")")),e.oldVersion!==e.newVersion){var t=i.result;t.objectStoreNames.contains("translations")&&(console.log("Translation deleted from DB!"),t.deleteObjectStore("translations"));var r=t.createObjectStore("translations",{keyPath:"key"});r.createIndex("key","key",{unique:!0}),r.transaction.oncomplete=function(){M(n,e.newVersion,t,o)}}},e.next=16;break;case 15:P(n);case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),P(n),console.log(e.t0);case 22:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t,n){return e.apply(this,arguments)}}(),T=function(e){return{balance:e[0]}},D=function(e){return{history:e[0]}},_=function(e){return{bonuses:e[0]}},R=function(e){return{hashCode:e[0]}},U=function(e){return{isExpired:e[0],token:e[1]}},F=function(e){return{gameInfo:e[0]?W(e[0]):null,partnerInfo:q(e[1]),underConstruction:e[2]?K(e[2]):null,translationVersion:e[3],uiConfigs:e[4]?u.IEnumerable.map(e[4],V):e[4]}},V=function(e){return{key:e[0],configValue:e[1]}},W=function(e){return{gameId:e[0]}},q=function(e){return{coinRate:e[0],currencyId:e[1],precision:e[2],minBet:e[3],maxBet:e[4],maxWin:e[5],defaultBet:e[6],partnerInstanceName:e[7],isActive:e[8],allowedBetsCount:e[9],quickBets:e[10]}},K=function(e){return{show:e[0],startTime:e[1],endTime:e[2]}},Y=function(e){return{tickets:e}},J=function(e){return{statistics:e}},z=function(e){return{leaders:e[0]}},$=function(e){return{results:e}},Z=function(e){return{historyTickets:e}},Q=function(e){return{partnerIds:e[0]}};function X(e){return X="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},X(e)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),G(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;G(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function re(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return H(i.actions.openPopup({name:e,args:t}))}),[]),me=null;me=2===n?function(e){var t=e.version,n=e.gameName,s=(0,o.useDispatch)(),c=(0,o.useSelector)(i.selectToken),l=(0,o.useSelector)(i.selectPlayerBalance),v=(0,i.shallowSelector)(i.selectLauncherData2),y=v.hubConnected,m=v.reloadSite,b=v.isDataLoaded,g=oe(f()(n,u.backUrl),1)[0],S=(0,d.useBaseRequests)(ie,p.requestToServer,t),w=S.getPing,I=S.getHashCode,B=S.getBetHistory,C=(S.getBonusHistory,S.getInitialState);return(0,r.useEffect)((function(){if(!u.isDemo)return le("GalaxsysBalance",{balance:l}),ue("GalaxsysBalance",(function(){le("GalaxsysBalance",{balance:l})})),function(){fe("GalaxsysBalance")}}),[l]),(0,r.useEffect)((function(){if(!u.isDemo)return ue("GalaxsysJackpot",(function(e){var t=e.isShow;console.log("Listening to Jackpot: ",t),null===L()||void 0===L()||L().setItem("GalaxsysJackpot",t)})),function(){fe("GalaxsysJackpot")}}),[]),(0,r.useEffect)((function(){s(i.actions.setParamsFromUrl((0,a.getParamsFromUrl)()))}),[]),(0,r.useEffect)((function(){s(i.actions.setHostName(g))}),[g]),(0,r.useEffect)((function(){m&&window.location.reload()}),[m]),(0,r.useEffect)((function(){if(null!==p.hubConnection&&void 0!==p.hubConnection&&p.hubConnection.dontReconnect||s(i.actions.setDisconnected({isDisconnected:!y})),y||s(i.actions.closeAllPopups()),y){var e=setInterval(w,5e3);return function(){return clearInterval(e)}}}),[y]),(0,r.useEffect)((function(){y?(C(),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.GetInitialState,function(){var e,t=(e=ne().mark((function e(t){var n,r;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:n=(0,u.responseFromServerToObject)(F,t),fetch("".concat(h.LU,"/Lobby/SimilarGames?partnerId=").concat(u.partnerId)).then((function(e){return e.json()})).then((function(e){var t=e.games;s(i.actions.setSimilarGames({games:t}))})),r=function(e){(0,o.batch)((function(){s(i.actions.setTranslations(e)),s(i.actions.setLauncherInitialState(n))}))},n.translationVersion?N(n.translationVersion,r):(s(i.actions.setLauncherInitialState(n)),console.log("Get Initial State Handling Completed"));case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){re(a,r,o,i,s,"next",e)}function s(e){re(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}()),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.GetBalance,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetBalance,t=(0,u.responseFromServerToObject)(T,e);s(i.actions.setBalance(t))})),p.hubConnection.on(d.BaseHubMethodNames.GetInitialStateGameTickets,(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialStateGameTickets,n=(0,u.responseFromServerToObject)(Y,t);s(i.actions.setInitialStateTickets(null!==(e=n.ticket)&&void 0!==e?e:n))})),p.hubConnection.on(d.BaseHubMethodNames.GetInitialStateHistory,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialStateHistory,t=(0,u.responseFromServerToObject)(Z,e);s(i.actions.setInitialStateHistory(t))})),p.hubConnection.on(d.BaseHubMethodNames.GetInitialStateGameResults,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialStateGameResults,t=(0,u.responseFromServerToObject)($,e);s(i.actions.setInitialStateResults({results:(null==t?void 0:t.results)||t}))})),p.hubConnection.on(d.BaseHubMethodNames.GetInitialStateLeaders,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialStateLeaders,t=(0,u.responseFromServerToObject)(z,e);s(i.actions.setInitialStateLeaders(t))})),p.hubConnection.on(d.BaseHubMethodNames.GetInitialStateStatistics,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialStateStatistics,t=(0,u.responseFromServerToObject)(J,e);s(i.actions.setInitialStateStatistics(t))})),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.BonusInfo,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.BonusInfo,t=(0,u.responseFromServerToObject)(_,e);if(t){var n=t.bonuses.map((function(e){return te(te({},e),{},{type:e.type.toLowerCase(),expireDate:(0,a.getFormattedDateTime)(e.expireDate)})}))||[];s(i.actions.cleanAndFillBonus(n))}})),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.Deactivated,(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.Deactivated;null!==(e=(0,u.responseFromServerToObject)(Q,t).partnerIds)&&void 0!==e&&e.includes(u.partnerId)&&(s(i.actions.closeAllPopups()),s(i.actions.setDeactivated(!0)))}))):(null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.GetInitialState),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.BonusInfo),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.Deactivated),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.GetBalance))}),[y]),(0,r.useEffect)((function(){if(b){var e=new Map;e.set(d.BaseHubMethodNames.History,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.History,t=(0,u.responseFromServerToObject)(D,e);t&&s(i.actions.setGlobalHistory({history:(null==t?void 0:t.history)||t}))})).set(d.BaseHubMethodNames.BonusHistory,(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.BonusHistory).bonusHistory;s(i.actions.setGlobalBonusHistory({bonusHistory:e}))})).set(d.BaseHubMethodNames.Ping,(function(){se=5e3-(Date.now()-se),s(i.actions.setPing({ping:se>0?se:0})),se=Date.now()})).set(d.BaseHubMethodNames.GenerateHashCode,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GenerateHashCode,t=(0,u.responseFromServerToObject)(R,e);s(i.actions.setPlayerHashCode({hashCode:t.hashCode}))})).set(d.BaseHubMethodNames.Error,(function(){console.error("Backend called error message")})).set(d.BaseHubMethodNames.LogOutPlayer,(function(){window.location.href="".concat(window.location.origin,"/?PartnerId=").concat(u.partnerId,"&culture=").concat(u.culture,"&gameType=").concat(u.gameKindName,"&isMobile=").concat(u.isMobile,"&isLogout=true")})).set(d.BaseHubMethodNames.ExpiredToken,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.ExpiredToken,t=(0,u.responseFromServerToObject)(U,e);s(i.actions.setExpiredToken(t)),p.hubConnection.dontReconnect=!0,p.hubConnection.stop()})),e.forEach((function(e,t){null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(t,e)}))}}),[b,y]),(0,r.useMemo)((function(){return{getHashCode:I,getBetHistory:B}}),[u.partnerId,u.referer,c,u.culture,u.playerId,u.gameKindName,g])}({version:n,gameName:l}):function(e){var t=e.version,n=e.gameName,s=(0,o.useDispatch)(),c=(0,o.useSelector)(i.selectToken),l=(0,o.useSelector)(i.selectHubIsConnected),y=(0,o.useSelector)(i.selectReloadSite),S=(0,o.useSelector)(i.selectPlayerBalance),C=(0,o.useSelector)(i.selectStrNotifWentWrong),L=v(f()(n,u.backUrl),1)[0],H=(0,d.useBaseRequests)(m,p.requestToServer,t),E=H.getPing,O=H.getHashCode,G=H.getBetHistory,x=H.getInitialState;return(0,r.useEffect)((function(){if(!u.isDemo)return I("GalaxsysBalance",{balance:S}),w("GalaxsysBalance",(function(){I("GalaxsysBalance",{balance:S})})),function(){B("GalaxsysBalance")}}),[S]),(0,r.useEffect)((function(){s(i.actions.setHostName(L))}),[L]),(0,r.useEffect)((function(){y&&window.location.reload()}),[y]),(0,r.useEffect)((function(){s(i.actions.setParamsFromUrl((0,a.getParamsFromUrl)()))}),[]),(0,r.useEffect)((function(){return p.hubConnection.dontReconnect||s(i.actions.setDisconnected({isDisconnected:!l})),l?(x(),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.GetInitialState,(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetInitialState;t.gameData?(fetch("".concat(h.LU,"/Lobby/SimilarGames?partnerId=").concat(u.partnerId)).then((function(e){return e.json()})).then((function(e){var t=e.games;s(i.actions.setSimilarGames({games:t}))})),s(i.actions.setLauncherInitialState(t.gameData)),(e=new Map).set(d.BaseHubMethodNames.History,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.History;s(i.actions.setGlobalHistory({history:e}))})).set(d.BaseHubMethodNames.BonusHistory,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.BonusHistory;s(i.actions.setGlobalBonusHistory({bonusHistory:e}))})).set(d.BaseHubMethodNames.Ping,(function(){b=5e3-(Date.now()-b),s(i.actions.setPing({ping:b>0?b:0})),b=Date.now()})).set(d.BaseHubMethodNames.GenerateHashCode,(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GenerateHashCode).hashCode;s(i.actions.setPlayerHashCode({hashCode:e}))})).set(d.BaseHubMethodNames.Error,(function(){console.error("Backend called error message")})).set(d.BaseHubMethodNames.LogOutPlayer,(function(){window.location.href="".concat(window.location.origin,"/?PartnerId=").concat(u.partnerId,"&culture=").concat(u.culture,"&gameType=").concat(u.gameKindName,"&isMobile=").concat(u.isMobile,"&isLogout=true")})).set(d.BaseHubMethodNames.BonusNotify,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.BonusNotify,t=e.id,n=e.bet,r=e.count,o=e.expireDate,c=e.type;s(i.actions.addBonus([{id:t,remainingCount:r,remainingBet:n,type:c.toLowerCase(),expireDate:(0,a.getFormattedDateTime)(o)}]))})).set(d.BaseHubMethodNames.ExpiredToken,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.ExpiredToken;s(i.actions.setExpiredToken(e)),p.hubConnection.dontReconnect=!0,p.hubConnection.stop()})),e.forEach((function(e,t){null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(t,e)})),g=setInterval(E,5e3)):console.error(d.BaseHubMethodNames.GetInitialState,t)})),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.Deactivated,(function(){var e;null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.Deactivated).partnerIds)&&void 0!==e&&e.includes(u.partnerId)&&s(i.actions.setDeactivated(!0))})),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.GetBalance,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.GetBalance;s(i.actions.setBalance(e))})),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.on(d.BaseHubMethodNames.Validation,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.BaseHubResponseModels.Validation;s(i.actions.addNotification({message:"".concat(C,": ").concat(e.validation),status:"error"}))}))):(null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.GetInitialState),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.Deactivated),null===p.hubConnection||void 0===p.hubConnection||p.hubConnection.off(d.BaseHubMethodNames.GetBalance),clearInterval(g),s(i.actions.closeAllPopups())),function(){return clearInterval(g)}}),[l]),(0,r.useMemo)((function(){return{getHashCode:O,getBetHistory:G}}),[u.partnerId,u.referer,c,u.culture,u.playerId,u.gameKindName,L])}({version:n,gameName:l});var be=me,ge=be.getHashCode,Se=be.getBetHistory,we=(0,o.useSelector)(i.selectDataLoaded),Ie=(0,o.useSelector)(i.selectIsDeactivated),Be=(0,o.useSelector)(i.selectLauncherDataLoaded),Ce=(0,o.useSelector)(i.selectGameAssetsAreLoading),Le=(0,i.shallowSelector)(i.selectToken),He=j&&we&&Be&&P&&O||Ie,Ee=(0,r.useCallback)((function(){q((function(e){return!e}))}),[W]),Oe=(0,r.useCallback)((function(){(0,a.redirectToHomeGalaxsys)({partnerId:u.partnerId,referer:u.referer})}),[u.partnerId,u.referer]),Ge=(0,r.useCallback)((function(){M(!0)}),[]),xe=(0,r.useCallback)((function(e){switch(q(!1),e){case"home":Oe();break;case"game":break;case"history":Se(),pe(c.BASE_POPUP_NAMES.GLOBAL_HISTORY);break;case"bonusHistory":(0,s.W)(),pe(c.BASE_POPUP_NAMES.GLOBAL_BONUS_HISTORY);break;case"rules":pe(c.BASE_POPUP_NAMES.RULES);break;case"leaderboard":pe(c.BASE_POPUP_NAMES.LEADER_BOARD_HISTORY)}}),[u.partnerId,Le,u.culture]);return(0,r.useEffect)((function(){C.current||(C.current=document.getElementsByTagName("body")[0]),ee(W),C.current.style.overflow=W?"hidden":""}),[W]),(0,r.useEffect)((function(){if(!u.isDemo)return ve("GalaxsysFreeze",(function(e){var t=e.isFreezed;he(t)})),function(){ye("GalaxsysFreeze")}}),[]),(0,r.useEffect)((function(){He&&!Ce&&S()}),[He,Ce]),{setIsCssVariablesLoaded:G,setIsContentLoaded:k,menuOpened:W,blurred:X,showBackdrop:ce,openPopup:pe,getHashCode:ge,getBetHistory:Se,isDeactivated:Ie,gameAssetsAreLoading:Ce,handleMenuClick:Ee,mediaIsLoaded:Ge,openTab:xe,isBaseDataLoaded:He}}},3745:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4914),o=n(678),a=n(5218),i=n(7438),s=["mousedown","mousemove","keydown","scroll","touchstart"];function c(){var e=(0,o.useDispatch)(),t=(0,r.useRef)(new Date);return(0,r.useEffect)((function(){var e=function(){t.current=new Date};return s.forEach((function(t){document.addEventListener(t,e)})),function(){s.forEach((function(t){document.removeEventListener(t,e)}))}}),[]),(0,r.useEffect)((function(){var n=setInterval((function(){new Date-t.current>=12e5&&(e(a.actions.setUserInactive({isInactive:!0})),i.hubConnection.dontReconnect=!0,i.hubConnection.stop(),clearInterval(n))}),1e3);return function(){clearInterval(n)}}),[]),null}const u=(0,r.memo)(c)},4553:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".LZBL9Xbl_iElgVjxAhJn{display:flex;flex-direction:row;height:50.625em;width:90em;margin:auto;position:relative}.m39UUZV0xKd1O6Ofg1qt{height:100%}",""]),i.locals={gameCenter:"LZBL9Xbl_iElgVjxAhJn",gameLayout:"m39UUZV0xKd1O6Ofg1qt"};const s=i},4805:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".cMnblziyKBAjFO7y0HNB{color:#fff;width:100%;height:100%;padding:calc(env(safe-area-inset-top) + 2.5em) 0 env(safe-area-inset-bottom)}.IvCnwQ5KzFVqbGS7Gn23{width:100%;height:100%}",""]),i.locals={gameLayout:"cMnblziyKBAjFO7y0HNB",gameCenter:"IvCnwQ5KzFVqbGS7Gn23"};const s=i},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2780:(e,t,n)=>{var r={"./crasher/betera.json":[9539,9539],"./crasher/casibom.json":[6722,6722],"./crasher/ecuabet.json":[6365,6365],"./crasher/fun88.json":[4433,4433],"./crasher/jbo.json":[3385,3385],"./crasher/mostbet.json":[4038,4038],"./crasher/novibet.json":[6189,6189],"./crasher/pinup.json":[5346,5346],"./turbomines/fun88.json":[8395,8395],"./turbomines/jbo.json":[2175,2175],"./turbomines/onewin.json":[2048,2048]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n.t(o,19)))}o.keys=()=>Object.keys(r),o.id=2780,e.exports=o}}]);