/*! For license information please see 2851.080ee758a5bb91edf89e.js.LICENSE.txt */ "use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[2851,9904],{9904:(e,t,n)=>{n.r(t),n.d(t,{BASE_POPUP_NAMES:()=>c,BaseHubMethodNames:()=>r,BaseHubRequests:()=>a,BaseHubResponseModels:()=>s,types:()=>o,useBaseRequests:()=>i});var o={string:"",number:0,array:[],object:{},bool:!1,date:new Date},r={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",GetLeaderBoard:"GetLeaderBoard"},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return{Ping:function(){this.name=r.Ping,this.model={version:e}},GetBalance:function(t){var n=t.token,o=void 0===n?0:n;this.name=r.GetBalance,this.model={version:e,token:o}},GetInitialState:function(t){var n=t.activeGameId,o=void 0===n?0:n,a=t.token,i=void 0===a?"":a,s=t.isDemo,c=void 0!==s&&s,u=t.partnerId,l=void 0===u?0:u,d=t.culture,f=void 0===d?"":d;this.name=r.GetInitialState,this.model={version:e,activeGameId:o,token:i,isDemo:c,partnerId:l,culture:f}},GetLeaderBoard:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.name=r.ActiveLeaderboardInfo,this.model=e},GenerateHashCode:function(t){var n=t.key,o=void 0===n?"":n,a=t.salt,i=void 0===a?"":a;this.name=r.GenerateHashCode,this.model={version:e,key:o,salt:i}},History:function(t){var n=t.token,o=void 0===n?"":n;this.name=r.History,this.model={version:e,token:o}},BonusHistory:function(t){var n=t.token,o=void 0===n?"":n;this.name=r.BonusHistory,this.model={version:e,token:o}},BonusInfo:function(t){var n=t.token,o=void 0===n?"":n,a=t.activeGameId,i=void 0===a?0:a;this.name=r.BonusInfo,this.model={version:e,token:o,activeGameId:i}},GetMaxWinners:function(t){var n=t.activeGameId,o=void 0===n?0:n,a=t.partnerId,i=void 0===a?"":a,s=t.token,c=void 0===s?"":s;this.name=r.GetMaxWinners,this.model={version:e,activeGameId:o,partnerId:i,token:c}}}};function i(e,t,n){var o=a(n),r=e||{},i=r.token,s=r.activeGameId,c=r.isDemo,u=r.partnerId,l=r.culture;return{getPing:function(){var e=new o.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]:"",r=new o.GenerateHashCode({key:e,salt:n});t(r)},getBetHistory:function(){var e=new o.History({token:i});t(e)},getBonusHistory:function(){var e=new o.BonusHistory({token:i});t(e)},getBonusInfo:function(){var e=new o.BonusInfo({token:i,activeGameId:s});t(e)},getInitialState:function(){var e=new o.GetInitialState({activeGameId:s,token:i,isDemo:c,partnerId:u,culture:l});t(e)},getMaxWinners:function(){var e=new o.GetMaxWinners({activeGameId:s,partnerId:u,token:i});t(e)}}}var s={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:[{}]},BonusInfo:{bonuses:[{id:0,remainingCount:0,remainingBet:0,bet:0,expireDate:"1 January, 1970, 00:00:00 UTC",type:""}]},BonusNotify:{id:0,bet:0,count:0,expireDate:"1 January, 1970, 00:00:00 UTC",type:""},Error:{},LogOutPlayer:{},ExpiredToken:{isExpired:!1,token:""},Deactivated:{partnerIds:[]}},c=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"})},6317:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var o=n(8416),r=n(5439),a=n.n(r),i=n(6606),s=n(7503),c=n.n(s),u=n(5570),l=n.n(u),d=n(3574),f=n.n(d),h=n(3379),p=n.n(h),v=n(7795),b=n.n(v),y=n(569),m=n.n(y),g=n(3565),B=n.n(g),H=n(9216),S=n.n(H),I=n(4589),C=n.n(I),w=n(871),L={};L.styleTagTransform=C(),L.setAttributes=B(),L.insert=m().bind(null,"head"),L.domAPI=b(),L.insertStyleElement=S(),p()(w.Z,L);const G=w.Z&&w.Z.locals?w.Z.locals:void 0;var M=n(8838),x={};x.styleTagTransform=C(),x.setAttributes=B(),x.insert=m().bind(null,"head"),x.domAPI=b(),x.insertStyleElement=S(),p()(M.Z,x);const E=M.Z&&M.Z.locals?M.Z.locals:void 0;var P=n(3621),O=n(613),N=n(5893),T=(0,i.getIsMobile)(),k=(0,i.isIpad)(),j="".concat(P.mD,"/images/global/").concat(T?"mobile":"desktop","/underconstruction.png"),D=T&&!k?G:E;function R(e){var t=e.className,n=e.style,o=e.children,r=(0,O.shallowSelector)(O.selectFallBackInfo),a=r.isExpired,i=r.isDisconnected,s=r.underConstruction,u=r.isDeactivated,d=(0,O.shallowSelector)(O.selectResources),h=d.strWaitingForInternetConnection,p=d.strSessionExpired,v=d.strAttention,b=d.strWebSiteIsDownForMaintenance;return(0,N.jsx)("div",{className:"".concat(D.gameLayout," ").concat(k?D.gameLayoutIpad:""," ").concat(t),children:u||null!=s&&s.show?(0,N.jsx)(f(),{url:j,text:b,startTime:null==s?void 0:s.startTime,endTime:null==s?void 0:s.endTime,resources:v,styles:n.underConstruction}):a?(0,N.jsx)(l(),{text:p}):i?(0,N.jsx)(c(),{text:h}):(0,N.jsx)("div",{className:"".concat(D.gameCenter," ").concat(k?D.gameCenterIpad:""),children:o})})}const A=(0,o.memo)(R);R.defaultProps={className:"",style:{loader:{},underConstruction:{}},children:null},R.propTypes={className:a().string,style:a().shape({loader:a().object,underConstruction:a().object}),children:a().oneOfType([a().element,a().array])}},3419:(e,t,n)=>{n.d(t,{Z:()=>L});var o=n(8416),r=n(5694),a=n(2552),i=n.n(a),s=n(6606),c=n(9904),u=n(613),l=n(3621),d=n(3351),f=(n(5914),n(9767));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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialState;t.gameData?(fetch("".concat(l.Ub,"/Lobby/SimilarGames?partnerId=").concat(f.y_)).then((function(e){return e.json()})).then((function(e){var t=e.games;a(u.actions.setSimilarGames({games:t}))})),a(u.actions.setLauncherInitialState(t.gameData)),(e=new Map).set(c.BaseHubMethodNames.History,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.History;a(u.actions.setGlobalHistory({history:e}))})).set(c.BaseHubMethodNames.BonusHistory,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusHistory;a(u.actions.setGlobalBonusHistory({bonusHistory:e}))})).set(c.BaseHubMethodNames.Ping,(function(){B=5e3-(Date.now()-B),a(u.actions.setPing({ping:B>0?B:0})),B=Date.now()})).set(c.BaseHubMethodNames.GenerateHashCode,(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GenerateHashCode).hashCode;a(u.actions.setPlayerHashCode({hashCode:e}))})).set(c.BaseHubMethodNames.Error,(function(){console.error("Backend called error message")})).set(c.BaseHubMethodNames.LogOutPlayer,(function(){window.location.href="".concat(window.location.origin,"/?PartnerId=").concat(f.y_,"&culture=").concat(f.TG,"&gameType=").concat(f.GZ,"&isMobile=").concat(f.tq,"&isLogout=true")})).set(c.BaseHubMethodNames.BonusNotify,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusNotify,t=e.id,n=e.bet,o=e.count,r=e.expireDate,i=e.type;a(u.actions.addBonus([{id:t,remainingCount:o,remainingBet:n,type:i.toLowerCase(),expireDate:(0,s.getFormattedDateTime)(r)}]))})).set(c.BaseHubMethodNames.ExpiredToken,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.ExpiredToken;a(u.actions.setExpiredToken(e)),d.hubConnection.dontReconnect=!0,d.hubConnection.stop()})),e.forEach((function(e,t){null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(t,e)})),H=setInterval(G,5e3)):console.error(c.BaseHubMethodNames.GetInitialState,t)})),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.BonusInfo,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusInfo;if(e){var t=e.freeBetInfo.map((function(e){return v(v({},e),{},{type:e.type.toLowerCase(),expireDate:(0,s.getFormattedDateTime)(e.expireDate)})}))||[];a(u.actions.cleanAndFillBonus(t))}})),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.Deactivated,(function(){var e;null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.Deactivated).partnerIds)&&void 0!==e&&e.includes(f.y_)&&a(u.actions.setDeactivated(!0))})),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.GetBalance,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetBalance;a(u.actions.setBalance(e))}))):(null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.GetInitialState),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.BonusInfo),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.Deactivated),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.GetBalance),clearInterval(H),a(u.actions.closeAllPopups())),function(){return clearInterval(H)}}),[p]),(0,o.useMemo)((function(){return{getHashCode:M,getBetHistory:x,getBonusHistory:E}}),[f.y_,f.q7,h,f.TG,f.QW,f.GZ,S])}},4687:(e,t,n)=>{n.d(t,{Z:()=>P});var o=n(8416),r=n(5694),a=n(2552),i=n.n(a),s=n(6606),c=n(9904),u=n(613),l=n(3621),d=n(3351),f=n(9767);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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;L(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function m(e,t,n,o,r,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(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function i(e){m(a,o,r,i,s,"next",e)}function s(e){m(a,o,r,i,s,"throw",e)}i(void 0)}))}}function B(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 o,r,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=(o=a.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(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)?H(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 H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n ").concat(i.newVersion,")")),(s=o.result).objectStoreNames.contains("translations")&&s.deleteObjectStore("translations"),s.createObjectStore("translations",{keyPath:"key"}).createIndex("key","key",{unique:!0}),r.next=7,x().then((function(o){if(o){var r=s.transaction("translations","readwrite"),i=r.objectStore("translations");Object.entries(JSON.parse(o.translation)).forEach((function(e){var t=B(e,2),o={key:t[0],value:t[1]},r=i.add(o);r.onsuccess=function(){console.log("Translation added to the store",r.result)},r.onerror=function(){console.log("Store Error: ",r.error),n()}}));var c=i.getAll();c.onsuccess=function(t){a(u.actions.setTranslations(M(t.target.result))),e()},c.onerror=function(){n()},r.oncomplete=function(){console.log("Transaction is complete"),indexedDB.open("store_".concat(f.y_,"_").concat(f.TG),10*o.version),console.log("Upgraded Store version: (".concat(10*t.translationVersion," => ").concat(10*o.version,")"))},r.onerror=function(){n()}}else s.deleteObjectStore("translations")}));case 7:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),o.onsuccess=g(y().mark((function t(){var r,i,s,c;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("Store successfully connected"),(r=o.result).objectStoreNames.contains("translations")&&(i=r.transaction("translations","readonly"),s=i.objectStore("translations"),(c=s.getAll()).onsuccess=function(t){t.target.result.length&&(a(u.actions.setTranslations(M(t.target.result))),e())},c.onerror=function(){n()});case 3:case"end":return t.stop()}}),t)}))),o.onerror=function(){n()},o.onblocked=function(){n()}})).then((function(){a(u.actions.setLauncherInitialState(t))})).catch(g(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x().then((function(e){console.log("IndexedDB failed, trying set translations directly"),e&&(0,r.batch)((function(){a(u.actions.setTranslations(JSON.parse(e.translation))),a(u.actions.setLauncherInitialState(t))}))}));case 2:case"end":return e.stop()}}),e)})))):a(u.actions.setLauncherInitialState(t)),console.log("Get Initial State Handling Completed");case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.GetBalance,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetBalance;a(u.actions.setBalance(e))})),d.hubConnection.on(c.BaseHubMethodNames.GetInitialStateGameTickets,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialStateGameTickets;a(u.actions.setInitialStateTickets(e))})),d.hubConnection.on(c.BaseHubMethodNames.GetInitialStateHistory,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialStateHistory;a(u.actions.setInitialStateHistory(e))})),d.hubConnection.on(c.BaseHubMethodNames.GetInitialStateGameResults,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialStateGameResults;a(u.actions.setInitialStateResults(e))})),d.hubConnection.on(c.BaseHubMethodNames.GetInitialStateLeaders,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialStateLeaders;a(u.actions.setInitialStateLeaders(e))})),d.hubConnection.on(c.BaseHubMethodNames.GetInitialStateStatistics,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GetInitialStateStatistics;a(u.actions.setInitialStateStatistics(e))})),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.BonusInfo,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusInfo;if(e){var t=e.bonuses.map((function(e){return v(v({},e),{},{type:e.type.toLowerCase(),expireDate:(0,s.getFormattedDateTime)(e.expireDate)})}))||[];a(u.actions.cleanAndFillBonus(t))}})),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(c.BaseHubMethodNames.Deactivated,(function(){var e;null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.Deactivated).partnerIds)&&void 0!==e&&e.includes(f.y_)&&(a(u.actions.closeAllPopups()),a(u.actions.setDeactivated(!0)))}))):(null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.GetInitialState),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.BonusInfo),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.Deactivated),null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.off(c.BaseHubMethodNames.GetBalance))}),[m]),(0,o.useEffect)((function(){if(C){var e=new Map;e.set(c.BaseHubMethodNames.History,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.History;e&&a(u.actions.setGlobalHistory({history:e.history||e}))})).set(c.BaseHubMethodNames.BonusHistory,(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusHistory).bonusHistory;a(u.actions.setGlobalBonusHistory({bonusHistory:e}))})).set(c.BaseHubMethodNames.Ping,(function(){I=5e3-(Date.now()-I),a(u.actions.setPing({ping:I>0?I:0})),I=Date.now()})).set(c.BaseHubMethodNames.GenerateHashCode,(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.GenerateHashCode).hashCode;a(u.actions.setPlayerHashCode({hashCode:e}))})).set(c.BaseHubMethodNames.Error,(function(){console.error("Backend called error message")})).set(c.BaseHubMethodNames.LogOutPlayer,(function(){window.location.href="".concat(window.location.origin,"/?PartnerId=").concat(f.y_,"&culture=").concat(f.TG,"&gameType=").concat(f.GZ,"&isMobile=").concat(f.tq,"&isLogout=true")})).set(c.BaseHubMethodNames.ActiveLeaderboardInfo,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.ActiveLeaderboardInfo;a(u.actions.setLeaderBoardInfo({response:e}))})).set(c.BaseHubMethodNames.LeaderboardPlayersListUpdate,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardPlayersListUpdate;a(u.actions.setActiveLeaderBoardPlayers({response:e}))})).set(c.BaseHubMethodNames.LeaderboardPlayerScoreUpdate,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardPlayerScoreUpdate;a(u.actions.setLeaderBoardCurrentPlayer({response:e}))})).set(c.BaseHubMethodNames.LeaderboardInfo,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardInfo;a(u.actions.setCurrentLeaderBoard({response:e}))})).set(c.BaseHubMethodNames.LeaderboardHistory,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardHistory;a(u.actions.setLeaderboardHistory({response:e}))})).set(c.BaseHubMethodNames.LeaderboardStart,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardStart;a(u.actions.setLeaderboardStart({response:e}))})).set(c.BaseHubMethodNames.LeaderboardFinish,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardFinish;a(u.actions.setLeaderboardFinish({response:e}))})).set(c.BaseHubMethodNames.LeaderboardPlayerWin,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardPlayerWin;a(u.actions.setLeaderboardPlayerWin(e))})).set(c.BaseHubMethodNames.UpcomingLeaderboards,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.LeaderboardPlayerWin;a(u.actions.setUpcomingLeaderboards(e))})).set(c.BaseHubMethodNames.BonusNotify,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.BonusNotify,t=e.id,n=e.bet,o=e.count,r=e.expireDate,i=e.type;a(u.actions.addBonus([{id:t,remainingCount:o,remainingBet:n,type:i.toLowerCase(),expireDate:(0,s.getFormattedDateTime)(r)}]))})).set(c.BaseHubMethodNames.ExpiredToken,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.BaseHubResponseModels.ExpiredToken;a(u.actions.setExpiredToken(e)),d.hubConnection.dontReconnect=!0,d.hubConnection.stop()})),e.forEach((function(e,t){null===d.hubConnection||void 0===d.hubConnection||d.hubConnection.on(t,e)}))}}),[C,m]),(0,o.useMemo)((function(){return{getHashCode:N,getBetHistory:T,getBonusHistory:k}}),[f.y_,f.q7,h,f.TG,f.QW,f.GZ,E])}},7291:(e,t,n)=>{n.d(t,{Z:()=>u});var o=n(8416),r=n(5694),a=n(613),i=n(3351),s=["mousedown","mousemove","keydown","scroll","touchstart"];function c(){var e=(0,r.useDispatch)(),t=(0,o.useRef)(new Date);return(0,o.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,o.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,o.memo)(c)},8838:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(8081),r=n.n(o),a=n(5879),i=n.n(a)()(r());i.push([e.id,".LZBL9Xbl_iElgVjxAhJn{display:flex;height:50.625em;width:90em;margin:auto;position:relative}.JqFzKCpa4thmo6jOK7RT{flex-direction:column;width:100%;height:auto}.m39UUZV0xKd1O6Ofg1qt{height:100%}.z73qoScEESkvQ7KYIvII{padding:calc(env(safe-area-inset-top) + 2.5em) 0 env(safe-area-inset-bottom);height:100%}",""]),i.locals={gameCenter:"LZBL9Xbl_iElgVjxAhJn",gameCenterIpad:"JqFzKCpa4thmo6jOK7RT",gameLayout:"m39UUZV0xKd1O6Ofg1qt",gameLayoutIpad:"z73qoScEESkvQ7KYIvII"};const s=i},871:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(8081),r=n.n(o),a=n(5879),i=n.n(a)()(r());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},5879:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)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),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},8081:e=>{e.exports=function(e){return e[1]}},3379:e=>{var t=[];function n(e){for(var n=-1,o=0;o{var t={};e.exports=function(e,n){var o=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(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{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 o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{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))}}}}]);