"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[6299,8517,6337],{6299:(e,a,t)=>{t.r(a),t.d(a,{BASE_POPUP_NAMES:()=>u,BaseHubMethodNames:()=>n,BaseHubRequests:()=>i,BaseHubResponseModels:()=>d,types:()=>o,useBaseRequests:()=>s});var r=t(6337),o={string:"",number:0,array:[],object:{},bool:!1,date:new Date},n={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=n.Ping,this.model={version:e},this.messagePackModel=(0,r.parseObjectToArray)([e])},GetBalance:function(a){var t=a.token,o=void 0===t?0:t;this.name=n.GetBalance,this.model={version:e,token:o},this.messagePackModel=(0,r.parseObjectToArray)([e,o])},GetInitialState:function(a){var t=a.activeGameId,o=void 0===t?0:t,i=a.token,s=void 0===i?"":i,d=a.isDemo,u=void 0!==d&&d,l=a.partnerId,c=void 0===l?0:l,I=a.culture,b=void 0===I?"":I,p=a.isModeChanged,y=void 0!==p&&p;this.name=n.GetInitialState,this.model={version:e,activeGameId:o,token:s,isDemo:u,partnerId:c,culture:b},this.messagePackModel=(0,r.parseObjectToArray)([e,+o,s,"true"===u,+c,b,y])},GenerateHashCode:function(a){var t=a.key,o=void 0===t?"":t,i=a.salt,s=void 0===i?"":i;this.name=n.GenerateHashCode,this.model={version:e,key:o,salt:s},this.messagePackModel=(0,r.parseObjectToArray)([e,o,s])},History:function(a){var t=a.token,o=void 0===t?"":t;this.name=n.History,this.model={version:e,token:o},this.messagePackModel=(0,r.parseObjectToArray)([+e,o])},BonusHistory:function(a){var t=a.token,r=void 0===t?"":t;this.name=n.BonusHistory,this.model={version:e,token:r}},BonusInfo:function(a){var t=a.token,o=void 0===t?"":t,i=a.activeGameId,s=void 0===i?0:i;this.name=n.BonusInfo,this.model={version:e,token:o,activeGameId:s},this.messagePackModel=(0,r.parseObjectToArray)([e,o])},GetMaxWinners:function(a){var t=a.activeGameId,o=void 0===t?0:t,i=a.partnerId,s=void 0===i?"":i,d=a.token,u=void 0===d?"":d;this.name=n.GetMaxWinners,this.model={version:e,activeGameId:o,partnerId:s,token:u},this.messagePackModel=(0,r.parseObjectToArray)([e,o,s,u])}}};function s(e,a,t){var r=i(t),o=e||{},n=o.token,s=o.activeGameId,d=o.isDemo,u=o.partnerId,l=o.culture;return{getPing:function(){var e=new r.Ping;a(e)},getHashCode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=new r.GenerateHashCode({key:e,salt:t});a(o)},getBetHistory:function(){var e=new r.History({token:n});a(e)},getBonusHistory:function(){var e=new r.BonusHistory({token:n});a(e)},getBonusInfo:function(){var e=new r.BonusInfo({token:n,activeGameId:s});a(e)},getInitialState:function(){var e=new r.GetInitialState({activeGameId:s,token:n,isDemo:d,partnerId:u,culture:l});a(e)},getMaxWinners:function(){var e=new r.GetMaxWinners({activeGameId:s,partnerId:u,token:n});a(e)}}}var d={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"})},8517:(e,a,t)=>{t.r(a),t.d(a,{BASE_POPUP_NAMES:()=>i,MAX_AUTOBET:()=>s,MAX_AUTOCASHOUT:()=>d,isFeatureMessagePackEnabled:()=>l,isMessagePackEnabled:()=>u});var r=(0,t(6295).getParamsFromUrl)(),o=r.isMessagePackEnabled,n=r.isFeatureMessagePackEnabled,i=Object.freeze({RULES:"Rules",CHECK_HASH_CODE:"CheckHashCode",ABOUT_HASH_CODE:"AboutHashCode",GAME_CONTROLS:"GameControls",BONUS_LIST:"BonusListPopup",KEYBOARD:"Keyboard",KEYBOARD_MINES:"KeyboardMines",GLOBAL_HISTORY:"GlobalHistory",GLOBAL_BONUS_HISTORY:"GlobalBonusHistory",MENU:"Menu",MAIN_MENU:"MainMenu",LEADER_BOARD:"LeaderBoard",LEADER_BOARD_HISTORY:"LeaderBoardHistory",BONUS_ASIDE:"BonusAside",CHAT_POPUP:"ChatPopup",CHAT_REGISTRY_POPUP:"ChatRegistryPopup",CASH_BACK:"CashBackPopup",CASH_BACK_RULES:"CashbackRules",CASH_BACK_INFO_POPUP:"CashbackInfoPopup",CASH_BACK_COLLECT_POPUP:"CashbackCollectPopup",CASH_BACK_INTRO_POPUP:"CashbackIntroPopup"}),s=100,d=699999.99,u="true"===o,l="true"===n},6337:(e,a,t)=>{t.r(a),t.d(a,{GFA:()=>u,IEnumerable:()=>g,activeGameId:()=>S,backUrl:()=>I,culture:()=>A,gameKindName:()=>B,gameTypeName:()=>v,isDemo:()=>P,isMobile:()=>m,mappedGlobalBonusHistory:()=>O,mode:()=>c,parseObjectToArray:()=>E,partnerId:()=>C,playerId:()=>h,referer:()=>y,responseFromServerToObject:()=>k,responseFromServerToObjectForFeature:()=>_,setRulesVersionInStorage:()=>H,skinningName:()=>G,sortTickets:()=>L});var r=t(6884),o=t(6295),n=t(1703),i=t.n(n),s=t(3387),d=t(8517),u=(0,r.GalaxsysFrontendApi)(),l=(0,o.getTypedParamsFromURL)()||{},c=l.mode,I=l.backUrl,b=l.partnerId,p=l.playerId,y=l.referer,m=l.isMobile,B=l.gameKindName,v=l.gameTypeName,S=l.activeGameId,A=l.culture,P=l.isDemo,G=l.skinningName,C=+b,h=+p,H=function(e,a){if(e){var t="rule_".concat(null==B?void 0:B.toLowerCase(),"_").concat(A,"_").concat(C),r=null===i()||void 0===i()?void 0:i().getItem(t);r?r!==e.toString()&&(null===i()||void 0===i()||i().setItem(t,e),setTimeout((function(){a()}),1e4)):null===i()||void 0===i()||i().setItem(t,e)}},O=function(e,a){var t=a.strBet,r=a.strExpireDate;return{headers:[a.strType,a.strQuantity,t,a.strTotalWin,a.strDate,r],body:null==e?void 0:e.map((function(e){return{type:s.BonusTypesById[+e.type]&&a["str".concat(s.BonusTypesById[+e.type])]||"Free Bonus",quantity:e.count||e.quantity||"-",bet:e.bet,totalWin:e.totalWin,date:(0,o.getFormattedDateTime)(e.assignDate||e.date),expireDate:(0,o.getFormattedDateTime)(e.expireDate)}})),winBy:"totalWin"}},f=function(e){return(null==e?void 0:e.sort((function(e,a){return a.betInfo[0].betCoin+a.betInfo[1].betCoin-e.betInfo[0].betCoin-e.betInfo[1].betCoin})))||[]},L=function(e){var a=[],t=[];return null==e||e.forEach((function(e){e.playerId===+h?a.push(e):t.push(e)})),f(a),f(t),[].concat(a,t)};function k(e,a){return d.isMessagePackEnabled?e(a):a}function _(e,a){return d.isFeatureMessagePackEnabled?e(a):a}var g={map:function(e,a){return e.map((function(e){return a(e)}))}};function E(e){return e?Object.values(e).map((function(e){return e instanceof Date?e.toISOString():e instanceof Set?Array.from(e):e instanceof Object&&!Array.isArray(e)?E(e):e})):[]}}}]);