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AAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/api/rounds/queries/useRoundsLatest/service.ts","webpack://_N_E/./src/api/rounds/queries/useRoundsLatest/index.ts","webpack://_N_E/./src/api/rounds/queries/useRoundBySlug/service.ts","webpack://_N_E/./src/api/rounds/queries/useRoundBySlug/index.ts","webpack://_N_E/./src/api/rounds/queries/index.ts","webpack://_N_E/./src/api/rounds/index.ts","webpack://_N_E/./src/api/rounds/queryKeys.ts","webpack://_N_E/./src/components/core/GameCountdown/Content/index.tsx","webpack://_N_E/./src/components/core/GameCountdown/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/Row/Multiplier/helper.ts","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/PlayerCount/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/Profit/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/Row/Multiplier/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/Row/Skeleton/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/Row/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Header/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/index.tsx","webpack://_N_E/./src/components/core/Games/GameLeaderboard/index.tsx","webpack://_N_E/./src/components/core/Games/GamesVictoryBanner/Renderer/index.tsx","webpack://_N_E/./src/components/core/Games/GamesVictoryBanner/index.tsx","webpack://_N_E/./src/utils/round/getMultiplier.ts","webpack://_N_E/./src/components/core/Games/LastRounds/Chips/Chip/index.tsx","webpack://_N_E/./src/components/core/Games/LastRounds/Chips/variants.ts","webpack://_N_E/./src/components/core/Games/LastRounds/Chips/index.tsx","webpack://_N_E/./src/utils/math/isPositive.ts","webpack://_N_E/./src/utils/math/isNegative.ts","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameBetCell/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/TableUser/index.tsx","webpack://_N_E/./src/components/core/Table/CustomCells/ValueWithCoinCell/index.tsx","webpack://_N_E/./src/hooks/useAddNewRoundLatest.ts","webpack://_N_E/./src/hooks/useScoreboardInitializer/index.tsx","webpack://_N_E/./src/services/GameService.ts","webpack://_N_E/../../packages/common/src/hooks/infiniteQuery/useAddNewRecordToInfiniteQuery.ts","webpack://_N_E/../../packages/common/src/hooks/useInfiniteScroll/index.ts","webpack://_N_E/./src/components/core/GameCountdown/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/Row/Skeleton/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Body/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/Header/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/Table/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Content/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/PlayerCount/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/Profit/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/Header/styles.module.scss","webpack://_N_E/./src/components/core/Games/GameLeaderboard/styles.module.scss","webpack://_N_E/./src/components/core/Table/CustomCells/TableGameBetCell/styles.module.scss","webpack://_N_E/./src/components/core/Table/CustomCells/TableUser/styles.module.scss","webpack://_N_E/./src/components/core/Table/CustomCells/ValueWithCoinCell/styles.module.scss"],"sourcesContent":["import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseRoundsLatestQueryKeys } from './props';\nimport { AxiosResponse } from 'axios';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { Round } from '@/models/round';\nimport baseAPI from '@/api';\nimport { RoundsLatestRequestDto } from '@/services/dto/rounds-latest-request.dto';\n\nexport async function fetchRoundsLatest({\n pageParam,\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const { gameId, limit }: RoundsLatestRequestDto = queryKey[1];\n\n const response: AxiosResponse> = await baseAPI.get<\n PaginatedResponse\n >('/rounds/latest', {\n params: {\n page: pageParam,\n limit,\n gameId,\n },\n });\n\n return response.data;\n}\n","import {\n useInfiniteQueryCallbacks,\n useInfiniteQueryReset,\n} from '@starsoft/common/hooks';\nimport { RoundsQueryKeys } from '../../queryKeys';\nimport { UseRoundsLatestProps, UseRoundsLatestQueryKeys } from './props';\n\nimport { InfiniteData } from '@tanstack/react-query';\nimport { useInfiniteQuery } from '@starsoft/common/services/query-client';\nimport { fetchRoundsLatest } from './service';\nimport { useMemo } from 'react';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { Round } from '@/models/round';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\n\nexport function useRoundsLatest({ gameId, limit = 20 }: UseRoundsLatestProps) {\n const queryKey: UseRoundsLatestQueryKeys = [\n RoundsQueryKeys.Latest,\n {\n gameId,\n limit,\n },\n ];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n useInfiniteQueryReset(queryKey);\n\n const { data, ...infinityQuery } = useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseRoundsLatestQueryKeys\n >({\n queryKey,\n queryFn: fetchRoundsLatest,\n getNextPageParam,\n getPreviousPageParam,\n initialPageParam: 1,\n staleTime: 5 * 1000,\n structuralSharing: false,\n refetchOnWindowFocus: false,\n });\n\n const flatedData = useMemo(\n () => data?.pages?.flatMap(page => page?.data),\n [data],\n );\n\n return {\n ...infinityQuery,\n rounds: flatedData,\n };\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseRoundBySlugQueryKeys } from './props';\nimport { AxiosResponse } from 'axios';\nimport { Round } from '@/models/round';\nimport baseAPI from '@/api';\n\nexport async function fetchRoundBySlug({\n queryKey,\n}: QueryFunctionContext): Promise {\n const { slug } = queryKey[1];\n\n const response: AxiosResponse = await baseAPI.get('/rounds/by-slug', {\n params: {\n slug,\n },\n });\n\n return response.data;\n}\n","import { useQuery } from '@tanstack/react-query';\nimport { RoundsQueryKeys } from '../../queryKeys';\nimport { UseRoundBySlugProps, UseRoundBySlugQueryKeys } from './props';\nimport { Round } from '@/models/round';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { fetchRoundBySlug } from './service';\nimport { DetailedGameRound } from '@/models/detailed-round';\n\nexport function useRoundBySlug(options?: UseRoundBySlugProps) {\n const { slug, enabled = true, refetchOnMount = true } = options ?? {};\n const queryKey: UseRoundBySlugQueryKeys = [\n RoundsQueryKeys.BySlug,\n {\n slug: slug as string,\n },\n ];\n\n const { isPending, fetchStatus, data, error, refetch, isFetching } = useQuery<\n DetailedGameRound,\n AxiosError,\n DetailedGameRound,\n UseRoundBySlugQueryKeys\n >({\n queryKey,\n queryFn: fetchRoundBySlug,\n enabled: !!slug && enabled,\n staleTime: 5 * 1000,\n refetchOnMount,\n });\n\n return {\n isPending: isPending && fetchStatus !== 'idle',\n round: data,\n error,\n refetch,\n isFetching,\n };\n}\n","export { useRoundsLatest } from './useRoundsLatest';\nexport { useRoundBySlug } from './useRoundBySlug';\n","export * from './queries';\n","export enum RoundsQueryKeys {\n Latest = '/rounds/latest',\n BySlug = '/rounds/by-slug',\n}\n","import { SettingLayoutComponentId } from '@starsoft/common/models';\nimport { BaseCountdownProps } from '../props';\nimport { useComponentVariant } from '@/hooks/theme/useComponentVariant';\nimport { ComponentTypeId } from '@starsoft/common/models/setting/layout/component/type/types.enum';\nimport dynamic from 'next/dynamic';\n\nconst GameCountdownV1 = dynamic(() => import('./V1'), { ssr: true });\nconst GameCountdownV2 = dynamic(() => import('./V2'), { ssr: true });\n\nexport default function GameCountdownContent(props: BaseCountdownProps) {\n const version: string = useComponentVariant(ComponentTypeId.GameCountdown);\n\n switch (version) {\n case SettingLayoutComponentId.GameCountdownV1?.toString():\n return ;\n case SettingLayoutComponentId.GameCountdownV2?.toString():\n return ;\n default:\n return ;\n }\n}\n","import { memo, useEffect } from 'react';\nimport { useCountUp } from 'use-count-up';\nimport { GameCountdownProps } from './props';\nimport styles from './styles.module.scss';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport { useComponentVariant } from '@/hooks/theme/useComponentVariant';\nimport { ComponentTypeId } from '@starsoft/common/models/setting/layout/component/type/types.enum';\nimport GameCountdownContent from './Content';\n\nfunction GameCountdown({ countdown }: GameCountdownProps) {\n const version: string = useComponentVariant(ComponentTypeId.GameCountdown);\n const isVisible: boolean = countdown?.isPositive?.();\n const { value: countdownInterpolated, reset: resetCountdown } = useCountUp({\n start: (countdown?.toNumber?.() ?? 0) + 0.2,\n end: countdown?.toNumber?.() ?? 0,\n isCounting: isVisible,\n decimalPlaces: 2,\n duration: 0.2,\n });\n const progress: number = (Number(countdownInterpolated) / 10) * 100;\n\n function resetInterpolators() {\n resetCountdown();\n }\n\n useEffect(resetInterpolators, [countdown, isVisible, resetCountdown]);\n\n return (\n \n \n \n );\n}\nexport default memo(GameCountdown);\n","import { RouletteColor } from '@/models/roulette/color';\n\nexport function getRouletteMultiplier(color: RouletteColor) {\n switch (color) {\n case RouletteColor.White:\n return 14;\n case RouletteColor.Black:\n case RouletteColor.Red:\n return 2;\n }\n}\n","import { PlayerCountProps } from './props';\nimport useTranslation from 'next-translate/useTranslation';\nimport Trans from 'next-translate/Trans';\nimport defaultStyles from '../styles.module.scss';\nimport styles from './styles.module.scss';\nimport Link from '@/components/core/Link';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport PlayerCountSkeleton from './Skeleton';\nimport { GameRoundStatusId } from '@/models/round/status/id';\nimport { ProfileStatus } from '@/enums/profileStatus';\n\nexport default function PlayerCount({\n count,\n isLoading,\n round,\n shouldShowResult,\n}: PlayerCountProps) {\n const { t } = useTranslation('smash-racing');\n const isClosed =\n round?.status?.id?.toString() === GameRoundStatusId.Completed?.toString();\n\n return (\n
\n {(!isClosed || !shouldShowResult) && (\n
\n )}\n\n \n {count} {t('players_label')}\n \n
\n );\n}\n","import { ProfitProps } from './props';\nimport { WalletService } from '@starsoft/common/services';\nimport styles from './styles.module.scss';\nimport defaultStyles from '../styles.module.scss';\nimport { RoundStatus } from '@/models/round/status';\nimport { Nullable } from '@starsoft/common/interfaces';\nimport { Bet } from '@/models/bet';\nimport { MoneyService as Money } from '@starsoft/common/services';\nimport { useMemo } from 'react';\nimport { getMoneyOrAmount } from '@starsoft/common/utils';\nimport { GameRoundStatusId } from '@/models/round/status/id';\n\nexport default function Profit({\n isLoading,\n round,\n shouldShowResult,\n}: ProfitProps) {\n if (isLoading) {\n return
;\n }\n\n return (\n \n {WalletService.maskCurrency({\n amount:\n round?.analytics?.payout?.convertedAmounts?.['usdt']?.toNumber(),\n })}\n \n );\n}\n","import { GameLeaderboardHeaderProps } from './props';\nimport PlayerCount from './PlayerCount';\nimport Profit from './Profit';\nimport styles from './styles.module.scss';\n\nexport default function GameLeaderboardHeader({\n isLoading,\n count,\n round,\n shouldShowResult,\n}: GameLeaderboardHeaderProps) {\n return (\n
\n \n \n
\n );\n}\n","import { BetStatus } from '@/models/bet/status';\nimport { GameLeaderboardTableRowProps } from '../props';\nimport useTranslation from 'next-translate/useTranslation';\nimport { GameID, GameIDType } from '@/enums/gameId';\nimport { getRouletteMultiplier } from './helper';\nimport { RouletteColor } from '@/models/roulette/color';\nimport { GameRoundStatusId } from '@/models/round/status/id';\nimport { BetStatusId } from '@/models/bet/status/id';\n\nexport default function Multiplier({\n bet,\n shouldShowResult,\n}: GameLeaderboardTableRowProps) {\n const { t } = useTranslation('smash-racing');\n\n if (\n bet?.status?.id?.toString() !== BetStatusId.Open?.toString() &&\n shouldShowResult\n ) {\n if (bet?.profit?.isPositive()) {\n switch (bet?.game?.id?.toString()) {\n case GameID.Crash.toString():\n case GameID.CrashTrenball.toString():\n case GameID.Slide.toString():\n return `${bet?.crashpointBet?.crashpoint?.toNumberString()}x`;\n case GameID.Double.toString():\n case GameID.Frost.toString():\n return `${Number(getRouletteMultiplier(bet?.rouletteBet?.color as RouletteColor))?.toFixed(2)}x`;\n }\n }\n\n return <>0.00x;\n }\n\n return <>{t('betting_label')};\n}\n","import styles from '../../../styles.module.scss';\nimport skeleton from './styles.module.scss';\nimport { GameLeaderboardTableRowSkeletonProps } from './props';\n\nexport default function GameLeaderboardTableRowSkeleton({\n shouldShowReducedInfo,\n}: GameLeaderboardTableRowSkeletonProps) {\n return (\n \n \n
\n \n\n {!shouldShowReducedInfo ? (\n <>\n \n
\n \n\n \n
\n \n\n \n
\n \n \n ) : (\n \n
\n \n )}\n \n );\n}\n","import { GameLeaderboardTableRowProps } from './props';\nimport Multiplier from './Multiplier';\nimport { WalletService } from '@starsoft/common/services';\nimport { Coin } from '@/models/coin';\nimport useTranslation from 'next-translate/useTranslation';\nimport { Bet } from '@/models/bet';\nimport GameLeaderboardTableRowSkeleton from './Skeleton';\nimport { memo } from 'react';\nimport styles from '../../styles.module.scss';\nimport { BetStatus } from '@/models/bet/status';\nimport ValueWithCoinCell from '@/components/core/Table/CustomCells/ValueWithCoinCell';\nimport TableGameBetCell from '@/components/core/Table/CustomCells/TableGameBetCell';\nimport TableUser from '@/components/core/Table/CustomCells/TableUser';\nimport { getMoneyOrAmount } from '@starsoft/common/utils';\nimport { BetStatusId } from '@/models/bet/status/id';\n\nfunction GameLeaderboardTableRow({\n bet,\n isLoading,\n shouldShowResult,\n shouldShowReducedInfo,\n}: GameLeaderboardTableRowProps) {\n const { t } = useTranslation('smash-racing');\n const showProfit =\n bet?.status?.id?.toString() !== BetStatusId.Open?.toString() &&\n shouldShowResult;\n\n if (isLoading) {\n return (\n \n );\n }\n\n return (\n \n \n \n \n\n {!shouldShowReducedInfo ? (\n <>\n \n \n \n\n \n \n \n\n \n {bet?.status?.id?.toString() !== BetStatusId.Open?.toString() &&\n shouldShowResult ? (\n \n ) : (\n t('betting_label')\n )}{' '}\n \n \n ) : (\n \n \n \n )}\n \n );\n}\n\nexport default memo(GameLeaderboardTableRow);\n","import { memo, useMemo } from 'react';\nimport { GameLeaderboardTableProps } from '../props';\nimport GameLeaderboardTableRow from './Row';\nimport styles from './styles.module.scss';\nimport { useInfiniteScroll } from '@starsoft/common/hooks';\n\nfunction GameLeaderboardTableBody({\n scoreboard,\n isLoading,\n fetchNextPage,\n hasNextPage,\n isFetchingNextPage,\n shouldShowResult,\n shouldShowReducedInfo,\n smallerHeight,\n}: GameLeaderboardTableProps) {\n const Rows = useMemo(\n () =>\n scoreboard?.map(bet => (\n \n )),\n [scoreboard, shouldShowResult, shouldShowReducedInfo],\n );\n\n const Skeleton = useMemo(\n () =>\n Array.from({ length: 10 })?.map((_, i) => (\n \n )),\n [shouldShowReducedInfo],\n );\n\n const { ref } = useInfiniteScroll({\n hasMore: hasNextPage ?? false,\n isLoading: (isLoading || isFetchingNextPage) ?? false,\n loadMore: fetchNextPage,\n });\n\n return (\n \n {isLoading ? Skeleton : Rows}\n {isFetchingNextPage && Skeleton}\n \n );\n}\n\nexport default memo(GameLeaderboardTableBody);\n","import useTranslation from 'next-translate/useTranslation';\nimport { GameLeaderboardTableHeaderProps } from './props';\nimport styles from './styles.module.scss';\nimport defaultStyles from '../styles.module.scss';\n\nexport default function GameLeaderboardTableHeader({\n shouldShowReducedInfo,\n}: GameLeaderboardTableHeaderProps) {\n const { t } = useTranslation('smash-racing');\n const { t: tDataGrid } = useTranslation('data-grid');\n\n return (\n \n \n \n {t('table_column_name')}\n \n\n {!shouldShowReducedInfo ? (\n <>\n \n {t('table_column_multiplier')}\n \n\n \n {t('value_label')}\n \n\n \n {tDataGrid('profit_label')}\n \n \n ) : (\n \n {tDataGrid('tab_bet')}\n \n )}\n \n \n );\n}\n","import { memo } from 'react';\nimport GameLeaderboardTableBody from './Body';\nimport GameLeaderboardTableHeader from './Header';\nimport { GameLeaderboardTableProps } from './props';\nimport styles from './styles.module.scss';\n\nfunction GameLeaderboardTable({\n scoreboard,\n isLoading,\n fetchNextPage,\n isFetchingNextPage,\n hasNextPage,\n shouldShowResult,\n shouldShowReducedInfo,\n smallerHeight,\n}: GameLeaderboardTableProps) {\n return (\n \n \n \n
\n );\n}\n\nexport default memo(GameLeaderboardTable);\n","import { GameLeaderboardContentProps } from './props';\nimport GameLeaderboardTable from './Table';\nimport styles from './styles.module.scss';\nimport { memo } from 'react';\n\nfunction GameLeaderboardContent({\n isLoading,\n scoreboard,\n fetchNextPage,\n isFetchingNextPage,\n hasNextPage,\n shouldShowResult,\n shouldShowReducedInfo,\n smallerHeight,\n}: GameLeaderboardContentProps) {\n return (\n
\n \n
\n );\n}\n\nexport default memo(GameLeaderboardContent);\n","import GameLeaderboardHeader from './Header';\nimport GameLeaderboardContent from './Content';\nimport { GameLeaderboardProps } from './props';\nimport styles from './styles.module.scss';\nimport { memo } from 'react';\nimport { ErrorCard } from '@starsoft/common/components';\n\nfunction GameLeaderboard({\n round,\n shouldShowResult = true,\n fetchNextPage,\n scoreboard,\n error,\n hasNextPage,\n isFetchingNextPage,\n isLoading,\n refetch,\n isHeaderHidden,\n shouldShowReducedInfo,\n isTransparent,\n smallerHeight,\n}: GameLeaderboardProps) {\n if (error) {\n return refetch?.()} />;\n }\n\n return (\n \n {!isHeaderHidden && (\n \n )}\n\n \n
\n );\n}\n\nexport default memo(GameLeaderboard);\n","import { GamesVictoryBannerProps } from '../props';\nimport { useComponentVariant } from '@/hooks/theme/useComponentVariant';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport { ComponentTypeId } from '@starsoft/common/models/setting/layout/component/type/types.enum';\nimport dynamic from 'next/dynamic';\n\nconst GameVictoryBannerV1 = dynamic(() => import('./V1'), { ssr: true });\nconst GameVictoryBannerV2 = dynamic(() => import('./V2'), { ssr: true });\n\nexport default function GameVictoryBannerRenderer(\n props: GamesVictoryBannerProps,\n) {\n const componentId: string =\n useComponentVariant(ComponentTypeId.GameVictoryBanner) ??\n SettingLayoutComponentId.GameVictoryBannerV1?.toString();\n\n switch (componentId) {\n case SettingLayoutComponentId.GameVictoryBannerV1?.toString():\n return ;\n case SettingLayoutComponentId.GameVictoryBannerV2?.toString():\n return ;\n }\n}\n","import { GamesVictoryBannerProps } from './props';\nimport { memo } from 'react';\nimport GameVictoryBannerRenderer from './Renderer';\n\nfunction GameVictoryBanner(props: GamesVictoryBannerProps) {\n return ;\n}\n\nexport default memo(GameVictoryBanner);\n","import { GameID, GameIDType } from '@/enums/gameId';\nimport { DetailedGameRound } from '@/models/detailed-round';\nimport { Round } from '@/models/round';\n\nexport function getMultiplier(round: DetailedGameRound, gameId: GameIDType) {\n switch (gameId?.toString()) {\n case GameID.Slide?.toString():\n return `${round?.crash?.crashpoint.toNumberString()}x`;\n case GameID.Crash?.toString():\n case GameID.CrashTrenball?.toString():\n return `${round?.crash?.crashpoint.toNumberString()}x`;\n case GameID.Double?.toString():\n case GameID.Frost?.toString():\n return `${round?.roulette?.multiplier.toNumberString()}x`;\n }\n}\n","import { LastRoundsChipProps } from './props';\nimport { Round } from '@/models/round';\nimport { getMultiplier } from '@/utils/round/getMultiplier';\nimport { memo } from 'react';\nimport LastMatchChip from '../../../LastMatches/Chip';\nimport { GameReportType } from '@/hooks/gameReport/useGameReportSearchParams/gameReportType.enum';\n\nfunction LastRoundsChip({\n round,\n gameId,\n isBackgroundPaper,\n isLoading,\n modal,\n cover,\n}: LastRoundsChipProps) {\n return (\n \n {!isLoading && getMultiplier(round as Round, gameId)}\n \n );\n}\n\nexport default memo(LastRoundsChip);\n","import { Transition, Variants } from 'framer-motion';\n\nexport const transition: Transition = {\n x: {\n type: 'spring',\n damping: 25,\n stiffness: 500,\n duration: 0.25,\n },\n};\n\nexport const chipVariants: Variants = {\n open: {\n x: 0,\n opacity: 1,\n transition,\n },\n closed: {\n x: 20,\n opacity: 0,\n transition,\n },\n exit: {\n x: -20,\n opacity: 0,\n transition,\n },\n};\n","import { LastRoundsChipsProps } from './props';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useRoundsLatest } from '@/api/rounds';\nimport { useMemo } from 'react';\nimport LastRoundsChip from './Chip';\nimport { m } from 'framer-motion';\nimport { chipVariants } from './variants';\nimport LastMatches from '../../LastMatches';\nimport { GameReportType } from '@/hooks/gameReport/useGameReportSearchParams/gameReportType.enum';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { ErrorChip } from '@starsoft/common/components';\n\nexport default function LastRoundsChips({\n isBackgroundPaper,\n gameId,\n renderChip,\n}: LastRoundsChipsProps) {\n const { isOpen } = useModal(ModalsKey.LastRounds);\n const { rounds, isPending, error, refetch } = useRoundsLatest({\n gameId,\n });\n\n const isLoading: boolean = !isOpen && isPending;\n\n const Rounds: JSX.Element[] = useMemo(\n () =>\n rounds\n ?.filter((_, i) => i < 20)\n ?.map(round =>\n !renderChip ? (\n \n \n \n ) : (\n \n {renderChip({\n round,\n link: `?round-slug=${round?.slug}&round-id=${round?.id}&game-id=${gameId}&game-type=${GameReportType.RoundGame}`,\n modal: ModalsKey.GameReport,\n })}\n \n ),\n ),\n [isBackgroundPaper, renderChip, rounds, gameId],\n );\n\n const Skeletons: JSX.Element[] = useMemo(\n () =>\n Array.from({ length: 20 }).map((_, i) =>\n !renderChip ? (\n \n ) : (\n
\n {renderChip({\n isLoading: true,\n link: '',\n })}\n
\n ),\n ),\n [isBackgroundPaper, renderChip, gameId],\n );\n\n if (error) {\n return ;\n }\n\n return (\n \n {isLoading ? Skeletons : Rounds}\n \n );\n}\n","export function isPositive(value: number) {\n return Math.sign(value) === 1;\n}\n","export function isNegative(value: number) {\n return Math.sign(value) < 0;\n}\n","import { TableGameWinCellProps } from './props';\nimport styles from './styles.module.scss';\nimport { Image as CoreImage } from '@starsoft/common/components';\nimport { memo, useMemo } from 'react';\nimport { isPositive } from '@/utils/math/isPositive';\nimport { isNegative } from '@/utils/math/isNegative';\nimport { WalletService } from '@starsoft/common/services';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { getMoneyOrAmount } from '@starsoft/common/utils';\n\nfunction TableGameBetCell({\n bet,\n showAmount,\n isProfitStyle,\n isFlexEnd,\n}: TableGameWinCellProps) {\n function getPayout(): number {\n const payout = bet?.payout;\n\n return payout?.toNumber();\n }\n\n const payout: number = useMemo(getPayout, [bet, showAmount]);\n\n return (\n \n \n {WalletService.maskCurrency({\n amount: payout,\n coin: bet?.coin,\n })}\n
\n );\n}\n\nexport default memo(TableGameBetCell);\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { TableUserProps } from './props';\nimport styles from './styles.module.scss';\nimport Link from '@/components/core/Link';\nimport useTranslation from 'next-translate/useTranslation';\nimport { ProfileStatus } from '@/enums/profileStatus';\nimport { Image } from '@starsoft/common/components';\n\nexport default function TableUser({ player }: TableUserProps) {\n const { t } = useTranslation('common');\n const isPrivate: boolean = player?.status !== ProfileStatus.Visible;\n\n return (\n \n {!isPrivate && (\n \n )}\n\n {isPrivate && }\n {isPrivate ? t('private_label') : player?.username}\n \n );\n}\n","import { Image as CoreImage } from '@starsoft/common/components';\nimport { ValueWithCoinCellProps } from './props';\nimport styles from './styles.module.scss';\n\nexport default function ValueWithCoinCell({\n coin,\n value,\n}: ValueWithCoinCellProps) {\n return (\n
\n \n {value}\n
\n );\n}\n","import { RoundsQueryKeys } from '@/api/rounds/queryKeys';\nimport { GameIDType } from '@/enums/gameId';\nimport { Round } from '@/models/round';\nimport { useAddNewRecordToInfiniteQuery } from '@starsoft/common/hooks';\n\nexport function useAddNewRoundLatest(gameId: GameIDType) {\n const addNewRecordToInfiniteQuery = useAddNewRecordToInfiniteQuery([\n RoundsQueryKeys.Latest,\n { gameId },\n ]);\n\n return addNewRecordToInfiniteQuery;\n}\n","import { useBetsByRound } from '@/api/bets';\nimport { UseScoreboardInitializerProps } from './props';\nimport { parseToBigInt } from '@starsoft/common/utils/parsers';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { UseBetsByRoundProps } from '@/api/bets/queries/useBetsByRound/props';\n\nexport function useScoreboardInitializer({\n isSocketConnected,\n roundId,\n refetchRound,\n errorRound,\n isLoadingRound,\n gameId,\n}: UseScoreboardInitializerProps) {\n const {\n data: scoreboard,\n error: errorScoreboard,\n refetch: refetchScoreboard,\n fetchStatus,\n fetchNextPage,\n isFetchingNextPage,\n hasNextPage,\n } = useBetsByRound<'infinity', UseBetsByRoundProps>({\n type: 'infinity',\n roundId: roundId ? (parseToBigInt(roundId) as bigint) : undefined,\n enabled: isSocketConnected,\n gameId: gameId?.toString(),\n });\n const isLoading = isLoadingRound || (!scoreboard && fetchStatus === 'idle');\n const error = errorRound ?? errorScoreboard;\n\n function refetch() {\n if (errorRound) {\n refetchRound?.();\n }\n\n if (errorScoreboard) {\n refetchScoreboard();\n }\n }\n\n return {\n scoreboard,\n isLoading,\n error,\n refetch,\n fetchNextPage,\n isFetchingNextPage,\n hasNextPage,\n };\n}\n","import { store } from '@/lib/store';\nimport { handleToggleGameButtonAnimation } from '@/lib/store/games-preferences/actions';\n\nexport class GameService {\n static enterBet() {\n store.dispatch(handleToggleGameButtonAnimation(true));\n }\n}\n","import { InfiniteData, QueryKey, useQueryClient } from '@tanstack/react-query';\nimport { useCallback } from 'react';\nimport { Comparator } from '../../interfaces/comparator';\nimport { PaginatedResponse } from '../../models';\n\n/**\n * Custom hook to add a new record to an infinite query.\n * This hook provides a function that updates the cached data of an infinite query\n * by adding a new record to the first page of the data.\n *\n * @template T - The type of the record, which must include an 'id' of type bigint.\n * @param {QueryKey} queryKey - The key of the query to update.\n * @returns {(record: T, comparator?: Comparator) => void} - A function to add a new record to the infinite query.\n *\n * @example\n * const addRecord = useAddNewRecordToInfiniteQuery(['myQueryKey']);\n * addRecord({ id: 123n, name: 'New Record' }, (a, b) => a.id - b.id);\n */\nexport function useAddNewRecordToInfiniteQuery(\n queryKey: QueryKey,\n): (record: T, comparator?: Comparator) => void {\n // Access the query client to interact with the query cache\n const queryClient = useQueryClient();\n\n /**\n * Checks if a new record already exists in the current page of records.\n *\n * @param {T[]} records - The list of current records.\n * @param {T} record - The new record to check.\n * @returns {boolean} - True if the record is already in the page, false otherwise.\n */\n const isNewRecordInPage = useCallback((records: T[], record: T): boolean => {\n return !!records.find(round => round.id === record.id);\n }, []);\n\n /**\n * Updates the cached pages of the query by adding a new record to the first page.\n * If a comparator is provided, the records are sorted after adding the new record.\n *\n * @param {T} record - The new record to add.\n * @param {InfiniteData>} cachedPages - The current cached pages of the query.\n * @param {Comparator} [comparator] - Optional comparator function to sort the records.\n * @returns {InfiniteData>} - The updated cached pages.\n */\n const updateQueriesData = useCallback(\n (\n record: T,\n cachedPages: InfiniteData>,\n comparator?: Comparator,\n ) => {\n if (!cachedPages || !record) {\n return cachedPages;\n }\n\n let firstPage: PaginatedResponse = { ...cachedPages.pages?.[0] };\n\n if (isNewRecordInPage(firstPage.data, record)) {\n return cachedPages;\n }\n\n firstPage.data.unshift(record);\n\n if (comparator) {\n firstPage.data.sort(comparator);\n }\n\n let updatedPages: PaginatedResponse[] = [...cachedPages.pages];\n updatedPages.splice(0, 1, firstPage);\n\n return {\n ...cachedPages,\n pages: updatedPages,\n };\n },\n [isNewRecordInPage],\n );\n\n /**\n * Function to add a new record to the infinite query.\n * It updates the query's cached data by adding the new record to the first page.\n *\n * @param {T} record - The new record to add.\n * @param {Comparator} [comparator] - Optional comparator function to sort the records.\n */\n const addNewRecordToInfiniteQuery = useCallback(\n (record: T, comparator?: Comparator) => {\n queryClient.setQueriesData>>(\n {\n queryKey,\n },\n pages => updateQueriesData(record, pages, comparator),\n );\n },\n [queryClient, updateQueriesData],\n );\n\n return addNewRecordToInfiniteQuery;\n}\n","import { useCallback, useEffect, useRef, useState } from 'react';\nimport { UseInfiniteScrollProps } from './props';\nimport { debounce } from 'lodash';\n\n/**\n * Custom hook to implement infinite scrolling functionality within a container.\n * It listens to the scroll event and triggers a callback to load more content\n * when the user scrolls near the bottom of the container.\n *\n * @param {UseInfiniteScrollProps} props - The properties for the infinite scroll hook.\n * @param {boolean} props.hasMore - Indicates if there are more items to load.\n * @param {boolean} props.isLoading - Indicates if a loading operation is currently in progress.\n * @param {Function} props.loadMore - The function to call to load more items.\n * @param {boolean} [props.condition=true] - An additional condition to check before loading more items.\n * @param {boolean} [props.reverse=false] - If true, loads more items when scrolled to the top.\n *\n * @returns {Object} - An object containing a ref to attach to the scrollable container and a boolean indicating if the scroll is at the bottom.\n * @returns {React.RefObject} ref - A ref to attach to the scrollable container.\n * @returns {boolean} isAtBottom - A boolean indicating if the scroll is at the bottom of the container.\n *\n * Example usage:\n * const { ref, isAtBottom } = useInfiniteScroll({\n * hasMore: true,\n * isLoading: false,\n * loadMore: () => fetchMoreItems(),\n * condition: true,\n * reverse: false,\n * });\n */\nexport function useInfiniteScroll({\n hasMore,\n isLoading,\n loadMore,\n condition = true,\n reverse = false,\n}: UseInfiniteScrollProps) {\n // Reference to the scrollable container element\n const ref = useRef(null);\n // State to track the distance from the bottom of the container\n const [distanceBottom, setDistanceBottom] = useState(0);\n // State to track if the scroll is at the bottom of the container\n const [isAtBottom, setIsAtBottom] = useState(false);\n\n /**\n * Memoized scroll event listener that checks if more content should be loaded.\n * It uses lodash's debounce to limit the rate at which the function is called.\n */\n const scrollListener = useCallback(\n debounce(() => {\n if (ref && ref.current) {\n const scrollTop = ref?.current?.scrollTop;\n const bottom = ref.current?.scrollHeight - ref.current?.clientHeight;\n\n // Set the distance from the bottom if not already set\n if (!distanceBottom) {\n setDistanceBottom(Math.round(bottom * 0.2));\n }\n\n // Load more items if scrolled to the top and conditions are met\n if (scrollTop === 0 && hasMore && !isLoading && condition && reverse) {\n loadMore();\n }\n\n // Load more items if scrolled near the bottom and conditions are met\n if (\n scrollTop > bottom - distanceBottom &&\n hasMore &&\n !isLoading &&\n condition &&\n !reverse\n ) {\n loadMore();\n }\n\n // Update the isAtBottom state based on scroll position\n if (scrollTop > bottom - distanceBottom) {\n setIsAtBottom(true);\n } else {\n setIsAtBottom(false);\n }\n }\n }, 100),\n [hasMore, loadMore, isLoading, distanceBottom, reverse, condition, ref],\n );\n\n /**\n * Effect hook to add the scroll event listener when the component mounts\n * and remove it when the component unmounts.\n */\n useEffect(() => {\n if (!(ref && ref?.current)) {\n return;\n }\n const element = ref?.current;\n\n // Add scroll event listener\n element?.addEventListener('scroll', scrollListener);\n // Cleanup function to remove the event listener\n return () => {\n element?.removeEventListener('scroll', scrollListener);\n };\n }, [scrollListener, ref]);\n\n // Return the ref to the scrollable container and the isAtBottom state\n return {\n ref,\n isAtBottom,\n };\n}\n\nexport type { UseInfiniteScrollProps };\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__PKEeZ\",\"container--visible\":\"styles_container--visible__p_1Ok\",\"container--v2\":\"styles_container--v2__LQYm_\",\"skeleton-animation\":\"styles_skeleton-animation__ZGg0S\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"text\":\"styles_text__X0FIM\",\"skeleton-animation\":\"styles_skeleton-animation__VNU_v\",\"text--center\":\"styles_text--center__Gm_OK\",\"text--right\":\"styles_text--right__GsQDy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__Ekekx\",\"container--small\":\"styles_container--small___HBLt\",\"skeleton-animation\":\"styles_skeleton-animation__5wyzw\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__29HJF\",\"skeleton-animation\":\"styles_skeleton-animation__CaJhl\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"table\":\"styles_table__a9HcT\",\"table__row\":\"styles_table__row__PGamZ\",\"table__row__data\":\"styles_table__row__data__KIOgn\",\"table__row__data--right\":\"styles_table__row__data--right__JDhH7\",\"table__row__data--center\":\"styles_table__row__data--center__zg_Jf\",\"table__row__data--primary\":\"styles_table__row__data--primary__kRy4l\",\"skeleton-animation\":\"styles_skeleton-animation__IwKoy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__WBt8E\",\"skeleton-animation\":\"styles_skeleton-animation__gX9Sk\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__2iE0R\",\"container__dot\":\"styles_container__dot__P7Ws8\",\"container__link\":\"styles_container__link__ekxpS\",\"container__link--disabled\":\"styles_container__link--disabled__yD0Qo\",\"skeleton-animation\":\"styles_skeleton-animation__35Emy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"text-skeleton\":\"styles_text-skeleton__7g_WN\",\"skeleton-animation\":\"styles_skeleton-animation__BHXv_\",\"label\":\"styles_label__MzgGb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__fTtNj\",\"container__label\":\"styles_container__label__skflP\",\"skeleton-animation\":\"styles_skeleton-animation__rrFxe\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__p0N5w\",\"container--transparent\":\"styles_container--transparent__IxNwj\",\"container--header-hidden\":\"styles_container--header-hidden__aMQhz\",\"skeleton-animation\":\"styles_skeleton-animation__CXGdZ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__TCOF2\",\"container--end\":\"styles_container--end__ICCQH\",\"container--positive\":\"styles_container--positive__Nbynh\",\"container--negative\":\"styles_container--negative__P4iKj\",\"container__coin\":\"styles_container__coin__IY8n8\",\"skeleton-animation\":\"styles_skeleton-animation__fgZ0D\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__MVxpZ\",\"container--disabled\":\"styles_container--disabled____UOp\",\"container__image\":\"styles_container__image__m8fEv\",\"skeleton-animation\":\"styles_skeleton-animation__y2tlj\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container___nqEa\",\"container__image\":\"styles_container__image__K94ws\",\"skeleton-animation\":\"styles_skeleton-animation__HfM8k\"};"],"names":["fetchRoundsLatest","param","pageParam","queryKey","gameId","limit","response","baseAPI","get","params","page","data","useRoundsLatest","RoundsQueryKeys","Latest","getNextPageParam","getPreviousPageParam","useInfiniteQueryCallbacks","useInfiniteQueryReset","infinityQuery","useInfiniteQuery","queryFn","initialPageParam","staleTime","structuralSharing","refetchOnWindowFocus","flatedData","useMemo","pages","flatMap","rounds","GameCountdownV1","dynamic","Promise","all","__webpack_require__","e","then","bind","ssr","GameCountdownV2","GameCountdownContent","props","SettingLayoutComponentId","useComponentVariant","ComponentTypeId","GameCountdown","toString","jsx_runtime","jsx","core_GameCountdown","memo","countdown","version","isVisible","isPositive","value","countdownInterpolated","reset","resetCountdown","useCountUp","start","toNumber","end","isCounting","decimalPlaces","duration","progress","Number","useEffect","div","className","styles","concat","getRouletteMultiplier","color","RouletteColor","White","Black","Red","PlayerCount","round","GameRoundStatusId","count","isLoading","shouldShowResult","t","useTranslation","isClosed","status","id","Completed","jsxs","span","defaultStyles","Profit","WalletService","maskCurrency","amount","analytics","payout","convertedAmounts","GameLeaderboardHeader","Multiplier","bet","BetStatusId","Open","profit","game","GameID","Crash","CrashTrenball","Slide","crashpointBet","crashpoint","toNumberString","Double","Frost","rouletteBet","toFixed","Fragment","GameLeaderboardTableRowSkeleton","shouldShowReducedInfo","tr","td","skeleton","Row","showProfit","TableUser","player","TableGameBetCell","isProfitStyle","showAmount","isFlexEnd","ValueWithCoinCell","coin","getMoneyOrAmount","hideSymbol","Body","scoreboard","fetchNextPage","hasNextPage","isFetchingNextPage","smallerHeight","Rows","map","GameLeaderboardTableRow","Skeleton","Array","from","length","_","i","ref","useInfiniteScroll","hasMore","loadMore","tbody","GameLeaderboardTableHeader","tDataGrid","thead","Table","table","GameLeaderboardTableBody","Content","GameLeaderboardTable","Games_GameLeaderboard","error","refetch","isHeaderHidden","isTransparent","ErrorCard","betsCount","GameLeaderboardContent","GameVictoryBannerV1","GameVictoryBannerV2","GameVictoryBannerRenderer","GameVictoryBanner","GamesVictoryBanner","Chips_Chip","isBackgroundPaper","modal","cover","LastMatchChip","link","slug","GameReportType","RoundGame","getMultiplier","crash","roulette","multiplier","transition","x","type","damping","stiffness","chipVariants","open","opacity","closed","exit","LastRoundsChips","renderChip","isOpen","useModal","ModalsKey","LastRounds","isPending","Rounds","filter","m","animate","initial","variants","layoutId","GameReport","LastRoundsChip","Skeletons","ErrorChip","action","cardBg","LastMatches","CustomCells_TableGameBetCell","Math","sign","CoreImage","width","height","src","process","image","isPrivate","ProfileStatus","Visible","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","Link","UserProfile","href","Image","photo","alt","username","code","useAddNewRoundLatest","useAddNewRecordToInfiniteQuery","useScoreboardInitializer","isSocketConnected","roundId","refetchRound","errorRound","isLoadingRound","errorScoreboard","refetchScoreboard","fetchStatus","useBetsByRound","parseToBigInt","undefined","enabled","GameService","enterBet","store","dispatch","handleToggleGameButtonAnimation","queryClient","useQueryClient","isNewRecordInPage","useCallback","records","record","find","updateQueriesData","cachedPages","comparator","firstPage","unshift","sort","updatedPages","splice","setQueriesData","condition","reverse","useRef","distanceBottom","setDistanceBottom","useState","isAtBottom","setIsAtBottom","scrollListener","debounce","current","scrollTop","bottom","scrollHeight","clientHeight","element","addEventListener","removeEventListener","module","exports"],"sourceRoot":""}