"use strict";(self.webpackChunkleaderboard=self.webpackChunkleaderboard||[]).push([[743],{2058:(e,a,r)=>{r.d(a,{QY:()=>s,TG:()=>p,WG:()=>i,EY:()=>c,al:()=>d,xn:()=>t,tq:()=>b,Ix:()=>l,r:()=>m});var o=r(6606),n="https://nar-fg.cchhllpp.net/prd",d="".concat(n,"/images/leaderBoard/global/cupWithWings.png"),t="".concat(n,"/images/leaderBoard/global/header.png"),c="".concat(n,"/images/leaderBoard/global/goldenCup.png"),i="".concat(n,"/images/leaderBoard/global/goldenBranch.png"),l="".concat(n,"/images/leaderBoard/global/ribbon.png"),s={ActiveLeaderboardInfo:"ActiveLeaderboardInfo",LeaderboardPlayersListUpdate:"LeaderboardPlayersListUpdate",LeaderboardPlayerScoreUpdate:"LeaderboardPlayerScoreUpdate",LeaderboardInfo:"LeaderboardInfo",LeaderboardHistory:"LeaderboardHistory",LeaderboardStart:"LeaderboardStart",LeaderboardFinish:"LeaderboardFinish",LeaderboardPlayerWin:"LeaderboardPlayerWin",UpcomingLeaderboards:"UpcomingLeaderboards"},u=(0,o.getTypedParamsFromURL)()||{},b=u.isMobile,p=u.culture,m=u.token},743:(e,a,r)=>{r.r(a),r.d(a,{leaderboardListeners:()=>F});var o=r(1277),n=r(8757),d=r(2058),t=function(e){return{id:e[0],name:e[1]}},c=function(e){return{id:e[0]}},i=function(e){return{leaderboardId:e[0],name:e[1],partnerId:e[2],playerId:e[3],gameTypes:e[4],partnerPlayerId:e[5],playerNickName:e[6],currencyCode:e[7],currencyId:e[8],winAmount:e[9],position:e[10]}},l=function(e){return{id:e[0],playerNickname:e[1],score:e[2],position:e[3],isWinPosition:e[4]}},s=function(e){return{leaderboardId:e[0],players:n.IEnumerable.map(e[1],v)}},u=function(e){return e?n.IEnumerable.map(e,b):null},b=function(e){return{id:e[0],name:e[1],currencyId:e[2],currencyCode:e[3],prizeFund:e[4],startDate:e[5],endDate:e[6]}},p=function(e){return{id:e[0],name:e[1],currentPlayerInfo:e[2]?v(e[2]):null,players:e[3]?n.IEnumerable.map(e[3],v):null}},m=function(e){return e?n.IEnumerable.map(e,L):null},L=function(e){return{id:e[0],name:e[1],prizePool:e[2],minBet:e[3],games:e[4],startDate:e[5],endDate:e[6],status:e[7]}},g=function(e){return{id:e[0],name:e[1],status:e[2],currentPlayerInfo:e[3]?v(e[3]):null,players:e[4]?n.IEnumerable.map(e[4],v):null,prizes:e[5]?n.IEnumerable.map(e[5],f):null,rules:e[6]}},v=function(e){return{id:e[0],position:e[1],playerNickName:e[2],score:e[3],isWinPosition:e[4]}},f=function(e){var a;return{id:e[0],placeFrom:e[1],placeTo:null!==(a=e[2])&&void 0!==a?a:null,prize:e[3],currencyCode:e[4]}},F=[{name:d.QY.ActiveLeaderboardInfo,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch;console.log(r);var t=(0,n.responseFromServerToObjectForFeature)(p,r);console.log(t),d(o.actions.setLeaderBoardInfo({data:t}))}},{name:d.QY.LeaderboardPlayersListUpdate,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(s,r);console.log(t),d(o.actions.setActiveLeaderBoardPlayers({data:t}))}},{name:d.QY.LeaderboardPlayerScoreUpdate,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(l,r);console.log(t),d(o.actions.setLeaderBoardCurrentPlayer({data:t}))}},{name:d.QY.LeaderboardInfo,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(g,r);console.log(t),d(o.actions.setCurrentLeaderBoard({data:t}))}},{name:d.QY.LeaderboardHistory,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(m,r);console.log(t),d(o.actions.setLeaderboardHistory({data:t}))}},{name:d.QY.LeaderboardStart,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,c=(0,n.responseFromServerToObjectForFeature)(t,r);console.log(c),d(o.actions.setLeaderboardStart({data:c}))}},{name:d.QY.LeaderboardFinish,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(c,r);console.log(t),d(o.actions.setLeaderboardFinish({data:t}))}},{name:d.QY.LeaderboardPlayerWin,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(i,r);console.log(t),d(o.actions.setLeaderboardPlayerWin(t))}},{name:d.QY.UpcomingLeaderboards,callback:function(e){var a=e.data,r=void 0===a?{}:a,d=e.dispatch,t=(0,n.responseFromServerToObjectForFeature)(u,r);console.log(t),d(o.actions.setUpcomingLeaderboards(t))}}]}}]);