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C,IAAAA,CAAE7B,UAAWC,IAAAA,sBAAAA,UAAgCoB,EAAE,wBAIxD,sCC7BO,SAASvF,EACdjD,CAAwD,CACxDiJ,CAEmC,CACnCjH,CAEoC,KANpC,CAAEgB,KAAAA,CAAI,CAAElB,QAAAA,EAAU,EAAI,CAAE,GAAGlB,EAA6B,CAAxDZ,EAQMkJ,EAAeD,EAAiB,CACpCnH,QAASkB,aAAAA,GAAuBlB,EAChC,GAAGlB,CAAI,GAEHuI,EAAgBnH,EAAkB,CACtCgB,KAAAA,EACAlB,QAASkB,cAAAA,GAAwBlB,EACjC,GAAGlB,CAAI,SAGT,aAAIoC,EACKkG,EAGFC,CACT,oDC7CAC,EAAAC,OAAA,EAAkB,gHCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/api/bets/queries/useBetsByRound/default/service.ts","webpack://_N_E/./src/api/bets/queries/useBetsByRound/default/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsByRound/infinite/service.ts","webpack://_N_E/./src/api/bets/queries/useBetsByRound/infinite/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsByRound/index.ts","webpack://_N_E/./src/api/bets/queries/useBetById/service.ts","webpack://_N_E/./src/api/bets/queries/useBetById/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsByPlayer/service.ts","webpack://_N_E/./src/api/bets/queries/useBetsByPlayer/index.ts","webpack://_N_E/./src/api/bets/queries/useBets/service.ts","webpack://_N_E/./src/api/bets/queries/useBets/index.ts","webpack://_N_E/./src/api/bets/queries/index.ts","webpack://_N_E/./src/api/bets/index.ts","webpack://_N_E/./src/api/bets/queries/useBetRanking/service.ts","webpack://_N_E/./src/api/bets/queries/useBetRanking/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsMe/infinity/service.ts","webpack://_N_E/./src/api/bets/queries/useBetsMe/infinity/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsMe/default/service.ts","webpack://_N_E/./src/api/bets/queries/useBetsMe/default/index.ts","webpack://_N_E/./src/api/bets/queries/useBetsMe/index.ts","webpack://_N_E/./src/components/core/Games/LastBets/Chips/Chip/index.tsx","webpack://_N_E/./src/components/core/Games/LastBets/Modal/Content/index.tsx","webpack://_N_E/./src/components/core/Games/LastBets/Modal/index.tsx","webpack://_N_E/./src/models/bet/status/id/index.ts","webpack://_N_E/../../packages/common/src/components/NoDataComponent/index.tsx","webpack://_N_E/../../packages/common/src/hooks/usePaginatedOrInfiniteQuery/index.ts","webpack://_N_E/./src/components/core/Games/LastBets/Modal/Content/styles.module.scss","webpack://_N_E/../../packages/common/src/components/NoDataComponent/styles.module.scss"],"sourcesContent":["import baseAPI from '@/api';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsByRoundQueryKeyProps } from '../props';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\nimport { PaginatedResponse } from '@starsoft/common/models';\n\nexport async function fetchBetsByRound({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const { roundId, ...filter } = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>(\n `/bets/round/${roundId}`,\n {\n params: filter,\n },\n );\n\n return response.data;\n}\n","import { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { UseBetsByRoundProps, UseBetsByRoundQueryKeyProps } from '../props';\nimport { useUserAccount } from '@/api/user/queries';\nimport { useQuery } from '@tanstack/react-query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { fetchBetsByRound } from './service';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { useState } from 'react';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport {\n usePaginatedQuery,\n UsePaginatedQueryReturnProps,\n UseQueryProps,\n} from '@starsoft/common/hooks';\n\nexport function useBetsByRoundDefault(options?: UseBetsByRoundProps) {\n const { isAuthorized } = useUserAccount();\n const { roundId, ...rest } = options;\n const [page, setPage] = useState(1);\n\n const filter: BetsSortAndFilterQuery = {\n ...rest,\n page,\n limit: rest?.limit ?? 15,\n };\n\n const queryKey: UseBetsByRoundQueryKeyProps = [BetsQueryKeys.ByRound, filter];\n\n const { data, isPending, fetchStatus, error, refetch, isFetching, ...query } =\n useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseBetsByRoundQueryKeyProps\n >({\n queryFn: fetchBetsByRound,\n queryKey,\n staleTime: 5 * 1000,\n enabled: isAuthorized && !!roundId,\n });\n\n const paginatedCallbacks = usePaginatedQuery({\n data,\n page,\n setPage,\n queryParams: {\n roundId,\n },\n });\n\n return {\n ...query,\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data,\n bets: data?.data,\n ...paginatedCallbacks,\n page,\n } as unknown as UsePaginatedQueryReturnProps;\n}\n","import baseAPI from '@/api';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsByRoundInfiniteQueryKeyProps } from '../props';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\nimport { PaginatedResponse } from '@starsoft/common/models';\n\nexport async function fetchBetsByRound({\n queryKey,\n pageParam = 1,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const { roundId, ...filter } = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>(\n `/bets/round/${roundId}`,\n {\n params: {\n ...filter,\n page: pageParam,\n },\n },\n );\n\n return response.data;\n}\n","import { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport {\n UseBetsByRoundInfiniteQueryKeyProps,\n UseBetsByRoundProps,\n} from '../props';\nimport { useUserAccount } from '@/api/user/queries';\nimport {\n DefinedInfiniteQueryObserverResult,\n InfiniteData,\n useInfiniteQuery,\n} from '@tanstack/react-query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { fetchBetsByRound } from './service';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { useMemo } from 'react';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport {\n useInfiniteQueryCallbacks,\n useInfiniteQueryReset,\n UseInfiniteQueryReturnProps,\n} from '@starsoft/common/hooks';\n\nexport function useBetsByRoundInfinite(options?: UseBetsByRoundProps) {\n const { isAuthorized } = useUserAccount();\n const { roundId, ...rest } = options;\n\n const filter: BetsSortAndFilterQuery = {\n ...rest,\n limit: rest?.limit ?? 15,\n };\n\n const queryKey: UseBetsByRoundInfiniteQueryKeyProps = [\n BetsQueryKeys.ByRoundInfinite,\n filter,\n ];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n\n useInfiniteQueryReset(queryKey);\n\n const { data, isPending, fetchStatus, error, refetch, ...query } =\n useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseBetsByRoundInfiniteQueryKeyProps\n >({\n queryFn: fetchBetsByRound,\n queryKey,\n getNextPageParam,\n getPreviousPageParam,\n initialPageParam: 1,\n staleTime: 5 * 1000,\n enabled: isAuthorized && !!roundId,\n });\n\n const bets = useMemo(\n () => data?.pages.flatMap(page => page.data) ?? [],\n [data],\n );\n\n return {\n ...query,\n isPending: (isPending && fetchStatus !== 'idle') as false,\n error,\n refetch,\n data: bets,\n bets,\n fetchStatus,\n } as unknown as UseInfiniteQueryReturnProps;\n}\n","import { UseBetsByRoundProps } from './props';\nimport { useBetsByRoundDefault } from './default';\nimport { useBetsByRoundInfinite } from './infinite';\nimport {\n QueryFetchType,\n usePaginatedOrInfiniteQuery,\n UseQueryProps,\n} from '@starsoft/common/hooks';\nimport { DetailedBet } from '@/models/detailed-bet';\n\nexport function useBetsByRound<\n T extends QueryFetchType,\n K extends UseBetsByRoundProps,\n>({ type, enabled = true, ...rest }: UseQueryProps) {\n return usePaginatedOrInfiniteQuery(\n { type, enabled, ...rest },\n useBetsByRoundInfinite,\n useBetsByRoundDefault,\n );\n}\n","import baseAPI from '@/api';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetByIdQueryKeyProps } from './props';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchBetById({\n queryKey,\n}: QueryFunctionContext): Promise {\n const id = queryKey[1];\n const response: AxiosResponse = await baseAPI.get(\n `/bets/${id}`,\n );\n\n return response.data;\n}\n","import { fetchBetById } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { UseBetByIdProps, UseBetByIdQueryKeyProps } from './props';\nimport { useUserAccount } from '@/api/user/queries';\nimport { useQuery } from '@tanstack/react-query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { DetailedBet } from '@/models/detailed-bet';\n\nexport function useBetById(options?: UseBetByIdProps) {\n const { isAuthorized } = useUserAccount();\n const { id, enabled = true } = options ?? {};\n\n const queryKey: UseBetByIdQueryKeyProps = [BetsQueryKeys.ById, id];\n\n const { data, isPending, fetchStatus, error, refetch, isFetching } = useQuery<\n DetailedBet,\n AxiosError,\n DetailedBet,\n UseBetByIdQueryKeyProps\n >({\n queryFn: fetchBetById,\n queryKey,\n staleTime: 5 * 1000,\n enabled: isAuthorized && !!id && enabled,\n });\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n isFetching,\n data,\n bet: data,\n };\n}\n","import baseAPI from '@/api';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsByPlayerQueryKeyProps } from './props';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\nimport { PaginatedResponse } from '@starsoft/common/models';\n\nexport async function fetchBetsByPlayer({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const { playerId, ...filter } = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>(\n `/bets/player/${playerId}`,\n {\n params: filter,\n },\n );\n\n return response.data;\n}\n","import { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { UseBetsByPlayerProps, UseBetsByPlayerQueryKeyProps } from './props';\nimport { useUserAccount } from '@/api/user/queries';\nimport { useQuery } from '@tanstack/react-query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { fetchBetsByPlayer } from './service';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { useState } from 'react';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\nexport function useBetsByPlayer(options?: UseBetsByPlayerProps) {\n const { isAuthorized } = useUserAccount();\n const { playerId, ...rest } = options ?? {};\n const [page, setPage] = useState(1);\n\n const filter: BetsSortAndFilterQuery = {\n ...rest,\n page,\n limit: rest?.limit ?? 15,\n };\n\n const queryKey: UseBetsByPlayerQueryKeyProps = [\n BetsQueryKeys.ByPlayer,\n filter,\n ];\n\n const { data, isPending, fetchStatus, error, refetch, isFetching } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseBetsByPlayerQueryKeyProps\n >({\n queryFn: fetchBetsByPlayer,\n queryKey,\n staleTime: 5 * 1000,\n enabled: isAuthorized && !!playerId,\n });\n\n const paginatedCallbacks = usePaginatedQuery({\n data,\n page,\n setPage,\n queryParams: {\n playerId,\n },\n });\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data,\n ...paginatedCallbacks,\n page,\n };\n}\n","import baseAPI from '@/api';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsQueryKeyProps } from './props';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchBets({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const filter: BetsSortAndFilterQuery = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>('/bets', {\n params: {\n sortOrder: filter.sortOrder,\n aggregatorId: filter.aggregatorId,\n gameId: filter.gameId,\n page: filter.page,\n limit: filter.limit,\n },\n });\n\n return response.data;\n}\n","import { fetchBets } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { UseBetsQueryKeyProps } from './props';\nimport { InfiniteData, useInfiniteQuery } from '@tanstack/react-query';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { useMemo } from 'react';\nimport { useInfiniteQueryCallbacks } from '@starsoft/common/hooks';\n\nexport function useBets(options?: BetsSortAndFilterQuery) {\n const filter: BetsSortAndFilterQuery = {\n sortOrder: options?.sortOrder,\n aggregatorId: options?.aggregatorId,\n gameId: options?.gameId,\n limit: options?.limit ?? 15,\n };\n const queryKey: UseBetsQueryKeyProps = [BetsQueryKeys.Primary, filter];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n\n const { data, isPending, fetchStatus, error, refetch, isFetching, ...rest } =\n useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseBetsQueryKeyProps\n >({\n queryFn: fetchBets,\n queryKey,\n staleTime: 5 * 1000,\n structuralSharing: false,\n refetchOnWindowFocus: false,\n getNextPageParam,\n getPreviousPageParam,\n initialPageParam: 1,\n });\n\n const bets = useMemo(() => data?.pages.flatMap(page => page.data), [data]);\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data,\n bets,\n isFetching,\n ...rest,\n };\n}\n","export { useBetsMe } from './useBetsMe';\nexport { useBetsByRound } from './useBetsByRound';\nexport { useBetsByRoundInfinite } from './useBetsByRound/infinite';\nexport { useBetsByRoundDefault } from './useBetsByRound/default';\nexport { useBetById } from './useBetById';\nexport { useBetsByPlayer } from './useBetsByPlayer';\nexport { useBets } from './useBets';\nexport { useBetRanking } from './useBetRanking';\n","export * from './queries';\n","import baseAPI from '@/api';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetRankingQueryKeyProps } from './props';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { BetRankingFilterQuery } from '@/services/dto/bet/ranking/bet-ranking-filter-query.dto';\n\nexport async function fetchBetsRanking({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const filter: BetRankingFilterQuery = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>(`/bets/ranking`, {\n params: filter,\n });\n\n return response.data;\n}\n","import { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { GenericError } from '@/models/generic-error';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { useState } from 'react';\nimport { UseBetRankingProps, UseBetRankingQueryKeyProps } from './props';\nimport { fetchBetsRanking } from './service';\n\nimport { BetRankingFilterQuery } from '@/services/dto/bet/ranking/bet-ranking-filter-query.dto';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\n\nexport function useBetRanking(options?: UseBetRankingProps) {\n const { periodId, typeId, limit, query, gameId } = options;\n\n const [page, setPage] = useState(1);\n\n const filter: BetRankingFilterQuery = {\n page,\n limit: limit ?? 15,\n query,\n periodId,\n typeId,\n gameId,\n };\n\n const queryKey: UseBetRankingQueryKeyProps = [BetsQueryKeys.Ranking, filter];\n\n const { data, isPending, fetchStatus, error, refetch, isFetching } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseBetRankingQueryKeyProps\n >({\n queryFn: fetchBetsRanking,\n queryKey,\n staleTime: 5 * 1000,\n enabled: !!periodId && !!typeId,\n });\n\n const paginatedCallbacks = usePaginatedQuery({\n data,\n page,\n setPage,\n queryParams: {\n periodId,\n typeId,\n gameId,\n query,\n },\n });\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data,\n ...paginatedCallbacks,\n page,\n };\n}\n","import baseAPI from '@/api';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsMeInfinityQueryKeyProps } from '../props';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchBetsMe({\n queryKey,\n pageParam,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const filter: BetsSortAndFilterQuery = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>('/bets/me', {\n params: {\n sortOrder: filter.sortOrder,\n aggregatorId: filter.aggregatorId,\n gameId: filter.gameId,\n page: pageParam,\n limit: filter.limit,\n },\n });\n\n return response.data;\n}\n","import { fetchBetsMe } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport {\n UseBetsMeInfinityQueryKeyProps,\n UseBetsMeQueryKeyProps,\n} from '../props';\nimport { useUserAccount } from '@/api/user/queries';\nimport {\n InfiniteData,\n useInfiniteQuery,\n useQuery,\n} from '@tanstack/react-query';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { useMemo, useState } from 'react';\nimport {\n useInfiniteQueryCallbacks,\n UseInfiniteQueryReturnProps,\n} from '@starsoft/common/hooks';\n\nexport function useBetsMeInfinity(options?: BetsSortAndFilterQuery) {\n const { isAuthorized } = useUserAccount();\n\n const filter: BetsSortAndFilterQuery = {\n sortOrder: options?.sortOrder,\n aggregatorId: options?.aggregatorId,\n gameId: options?.gameId,\n limit: options?.limit ?? 15,\n };\n const queryKey: UseBetsMeInfinityQueryKeyProps = [\n BetsQueryKeys.MeInfinity,\n filter,\n ];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n\n const { data, isPending, fetchStatus, error, refetch, isFetching, ...rest } =\n useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseBetsMeInfinityQueryKeyProps\n >({\n queryFn: fetchBetsMe,\n queryKey,\n staleTime: 5 * 1000,\n structuralSharing: false,\n enabled: isAuthorized,\n refetchOnWindowFocus: false,\n getNextPageParam,\n getPreviousPageParam,\n initialPageParam: 1,\n });\n\n const bets = useMemo(() => data?.pages.flatMap(page => page.data), [data]);\n const metadata = useMemo(\n () => data?.pages.flatMap(page => page.metadata)?.[0],\n [data],\n );\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data: bets,\n fetchStatus,\n bets,\n isFetching,\n metadata,\n ...rest,\n } as unknown as UseInfiniteQueryReturnProps;\n}\n","import baseAPI from '@/api';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseBetsMeQueryKeyProps } from '../props';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchBetsMe({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const filter: BetsSortAndFilterQuery = queryKey[1];\n const response: AxiosResponse> =\n await baseAPI.get>('/bets/me', {\n params: {\n sortOrder: filter.sortOrder,\n aggregatorId: filter.aggregatorId,\n gameId: filter.gameId,\n page: filter.page,\n limit: filter.limit,\n },\n });\n\n return response.data;\n}\n","import { fetchBetsMe } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { UseBetsMeQueryKeyProps } from '../props';\nimport { useUserAccount } from '@/api/user/queries';\nimport {\n InfiniteData,\n useInfiniteQuery,\n useQuery,\n} from '@tanstack/react-query';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { BetsQueryKeys } from '@/api/bets/queryKey';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { DetailedBet } from '@/models/detailed-bet';\nimport { useMemo, useState } from 'react';\nimport {\n useInfiniteQueryCallbacks,\n usePaginatedQuery,\n UsePaginatedQueryReturnProps,\n} from '@starsoft/common/hooks';\n\nexport function useBetsMeDefault(options?: BetsSortAndFilterQuery) {\n const { isAuthorized } = useUserAccount();\n const [page, setPage] = useState(1);\n\n const filter: BetsSortAndFilterQuery = {\n sortOrder: options?.sortOrder,\n aggregatorId: options?.aggregatorId,\n gameId: options?.gameId,\n limit: options?.limit ?? 15,\n page,\n };\n const queryKey: UseBetsMeQueryKeyProps = [BetsQueryKeys.Me, filter];\n\n const { data, isPending, fetchStatus, error, refetch, isFetching, ...rest } =\n useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseBetsMeQueryKeyProps\n >({\n queryFn: fetchBetsMe,\n queryKey,\n staleTime: 5 * 1000,\n enabled: isAuthorized,\n refetchOnWindowFocus: false,\n });\n\n const paginatedCallbacks = usePaginatedQuery({\n data,\n page,\n setPage,\n queryParams: {\n sortOrder: options?.sortOrder,\n aggregatorId: options?.aggregatorId,\n gameId: options?.gameId,\n limit: options?.limit ?? 15,\n },\n });\n\n return {\n isPending: (isPending || isFetching) && fetchStatus !== 'idle',\n error,\n refetch,\n data,\n bets: data?.data,\n isFetching,\n metadata: data?.metadata,\n ...rest,\n ...paginatedCallbacks,\n page,\n } as unknown as UsePaginatedQueryReturnProps;\n}\n","import {\n QueryFetchType,\n usePaginatedOrInfiniteQuery,\n UseQueryProps,\n} from '@starsoft/common/hooks';\nimport { BetsSortAndFilterQuery } from '@/services/dto/bet/me/bets-sort-and-filter-query.query';\nimport { useBetsMeInfinity } from './infinity';\nimport { useBetsMeDefault } from './default';\nimport { DetailedBet } from '@/models/detailed-bet';\n\nexport function useBetsMe<\n T extends QueryFetchType,\n K extends BetsSortAndFilterQuery,\n>(options?: UseQueryProps) {\n return usePaginatedOrInfiniteQuery(\n {\n ...options,\n },\n useBetsMeInfinity,\n useBetsMeDefault,\n );\n}\n","import { LastBetChipProps } from './props';\nimport { memo } from 'react';\nimport LastMatchChip from '../../../LastMatches/Chip';\nimport { GameReportType } from '@/hooks/gameReport/useGameReportSearchParams/gameReportType.enum';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { Decimal } from '@starsoft/common/services/Decimal';\nimport { BetStatusId } from '@/models/bet/status/id';\n\nfunction LastBetChip({ bet, isLoading, cover, gameId }: LastBetChipProps) {\n return (\n \n {!isLoading &&\n Decimal.fromSubunits(bet?.multiplier, {\n scale: 4,\n }).toNumberString()}\n x\n \n );\n}\n\nexport default memo(LastBetChip);\n","import { useMemo } from 'react';\nimport DateCard from '../../../LastMatches/Modal/Content/DateCard';\nimport LastMatchesContent from '../../../LastMatches/Modal/Content';\nimport { useBetsMe } from '@/api/bets';\nimport LastBetChip from '../../Chips/Chip';\nimport { useSearchParams } from '@/hooks/useSearchParams';\n\nimport styles from './styles.module.scss';\nimport { ErrorCard, NoDataComponent } from '@starsoft/common/components';\nimport { GameIDType } from '@/enums/gameId';\nimport { parseToBigInt } from '@starsoft/common/utils/parsers';\n\nexport default function LastBetsModalContent(): JSX.Element {\n const search = useSearchParams();\n const gameId = parseToBigInt(search.get('game-id') as string) as GameIDType;\n const {\n data: bets,\n isPending,\n isFetchingNextPage,\n fetchNextPage,\n hasNextPage,\n error,\n refetch,\n } = useBetsMe({\n type: 'infinity',\n gameId: parseToBigInt(gameId) as GameIDType,\n limit: 50,\n });\n\n const Bets = useMemo(\n () =>\n bets?.map(bet => (\n \n \n \n )),\n [bets, gameId],\n );\n\n const Skeletons = useMemo(\n () =>\n Array.from({ length: 50 }).map((_, i) => (\n \n \n \n )),\n [gameId],\n );\n\n if (error) {\n return ;\n }\n\n if (bets?.length == 0) {\n return (\n
\n \n
\n );\n }\n\n return (\n \n {Bets}\n {(isPending || isFetchingNextPage) && Skeletons}\n \n );\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport LastBetsModalContent from './Content';\nimport LastMatchesModal from '../../LastMatches/Modal';\nimport { AuthService } from '@/services/AuthService';\n\nexport default function LastBetsModal() {\n return (\n \n \n \n );\n}\n","/**\n * @description Namespace representing the different statuses a bet can have.\n * Each status is associated with a unique numeric identifier using BigInt (n suffix).\n *\n * @property {bigint} Open - Status ID 1: Represents a bet that is still active and open\n * @property {bigint} Canceled - Status ID 2: Represents a bet that has been canceled\n * @property {bigint} Refunded - Status ID 3: Represents a bet where the amount has been refunded\n * @property {bigint} Won - Status ID 4: Represents a bet that has been won\n * @property {bigint} Lost - Status ID 5: Represents a bet that has been lost\n * @property {bigint} CashedOut - Status ID 6: Represents a bet that has been cashed out early\n * @property {bigint} HalfWon - Status ID 7: Represents a bet that has been partially won\n * @property {bigint} HalfLost - Status ID 8: Represents a bet that has been partially lost\n */\nexport namespace BetStatusId {\n // Status for bets that are still active and awaiting results\n export const Open = 1n;\n\n // Status for bets that have been canceled by the system or admin\n export const Canceled = 2n;\n\n // Status for bets where the amount has been returned to the user\n export const Refunded = 3n;\n\n // Status for bets that have been successful\n export const Won = 4n;\n\n // Status for bets that have been unsuccessful\n export const Lost = 5n;\n\n // Status for bets that have been manually closed by the user before completion\n export const CashedOut = 6n;\n\n // Status for bets that have been partially successful\n export const HalfWon = 7n;\n\n // Status for bets that have been partially unsuccessful\n export const HalfLost = 8n;\n}\n\n/**\n * @description Type representing the possible values of BetStatusId.\n * This type is derived from the keys of the BetStatusId namespace.\n *\n * @type {bigint} - A BigInt value representing one of the bet status identifiers\n */\nexport type BetStatusIdType = (typeof BetStatusId)[keyof typeof BetStatusId];\n","import { useTranslation } from '@starsoft/common/hooks';\nimport { SettingsService } from '@starsoft/common/services';\nimport { NoDataComponentProps } from './props';\nimport styles from './styles.module.scss';\n\n/**\n * NoDataComponent\n * A component that displays a \"no data\" message with an animated Lottie illustration.\n * Uses translations for text content and supports different styling variants.\n *\n * @component\n * @param {Object} props - Component props\n * @param {boolean} [props.isSecondaryStyles] - Whether to use secondary styling variant\n * @param {boolean} [props.isSmall] - Whether to use smaller size variant\n * @param {boolean} [props.tableStyles] - Whether to use table-specific styling\n * @returns {JSX.Element} The rendered no data message with animation\n *\n * @example\n * // Basic usage\n * \n *\n * // With styling variants\n * \n */\nexport function NoDataComponent({\n isSecondaryStyles,\n isSmall,\n tableStyles,\n}: NoDataComponentProps) {\n const { t } = useTranslation('common');\n\n // Initialize Lottie animation player with empty search animation\n\n return (\n \n \n
\n
{t('no_data_title')}
\n

{t('no_data_found')}

\n
\n \n );\n}\n","import {\n QueryFetchType,\n UseInfiniteQueryReturnProps,\n UsePaginatedQueryReturnProps,\n UseQueryProps,\n UseQueryReturnType,\n} from './props';\nexport * from './props';\n\n/**\n * Hook to manage either a paginated or infinite query based on the provided type.\n *\n * @template T - The query type ('infinity' or 'paginated').\n * @template D - The data type returned by the query.\n * @template K - The query key type.\n *\n * @param {UseQueryProps} options - Options to configure the query.\n * @param {function(QueryProps): UseInfiniteQueryReturnProps} useInfinityQuery - Hook for infinite query.\n * @param {function(QueryProps): UsePaginatedQueryReturnProps} usePaginatedQuery - Hook for paginated query.\n *\n * @returns {UseQueryReturnType} - The query result based on the type.\n */\nexport function usePaginatedOrInfiniteQuery(\n { type, enabled = true, ...rest }: UseQueryProps,\n useInfinityQuery: (\n props: Omit, 'type' | 'enabled'>,\n ) => UseInfiniteQueryReturnProps,\n usePaginatedQuery: (\n props: Omit, 'type' | 'enabled'>,\n ) => UsePaginatedQueryReturnProps,\n): UseQueryReturnType {\n const infiniteData = useInfinityQuery({\n enabled: type === 'infinity' && enabled,\n ...rest,\n });\n const paginatedData = usePaginatedQuery({\n type,\n enabled: type === 'paginated' && enabled,\n ...rest,\n });\n\n if (type === 'infinity') {\n return infiniteData as unknown as UseQueryReturnType;\n }\n\n return paginatedData as unknown as UseQueryReturnType;\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__W_ax9\",\"skeleton-animation\":\"styles_skeleton-animation__ZXmFt\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__1zQ5L\",\"container--secondary-styles\":\"styles_container--secondary-styles__XD3Ps\",\"container--small\":\"styles_container--small__sBc8M\",\"container__wrapper\":\"styles_container__wrapper__yt1b8\",\"container__description\":\"styles_container__description__DqXA6\",\"container__title\":\"styles_container__title__MhrO5\",\"container--table\":\"styles_container--table__XtWpR\",\"container__lottie\":\"styles_container__lottie__XCj7x\",\"skeleton-animation\":\"styles_skeleton-animation__VxDSg\"};"],"names":["fetchBetsByRound","param","queryKey","roundId","filter","response","baseAPI","get","concat","params","data","useBetsByRoundDefault","options","rest","isAuthorized","useUserAccount","page","setPage","useState","limit","BetsQueryKeys","ByRound","isPending","fetchStatus","error","refetch","isFetching","query","useQuery","queryFn","staleTime","enabled","paginatedCallbacks","usePaginatedQuery","queryParams","bets","pageParam","useBetsByRoundInfinite","ByRoundInfinite","getNextPageParam","getPreviousPageParam","useInfiniteQueryCallbacks","useInfiniteQueryReset","useInfiniteQuery","initialPageParam","useMemo","pages","flatMap","useBetsByRound","type","usePaginatedOrInfiniteQuery","fetchBetsRanking","useBetRanking","periodId","typeId","gameId","Ranking","fetchBetsMe","sortOrder","aggregatorId","useBetsMeInfinity","MeInfinity","structuralSharing","refetchOnWindowFocus","metadata","useBetsMeDefault","Me","useBetsMe","__webpack_exports__","Z","memo","bet","BetStatusId","isLoading","cover","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","LastMatchChip","link","id","GameReportType","BetGame","won","status","toString","Won","modal","ModalsKey","GameReport","Decimal","fromSubunits","multiplier","scale","toNumberString","LastBetsModalContent","search","useSearchParams","parseToBigInt","isFetchingNextPage","fetchNextPage","hasNextPage","Bets","map","jsx_runtime","jsx","DateCard","createdAt","LastBetChip","Skeletons","Array","from","length","_","i","ErrorCard","div","className","styles","NoDataComponent","LastMatchesContent","loadMore","LastBetsModal","LastMatchesModal","LastBets","title","openCondition","AuthService","Open","Canceled","Refunded","Lost","CashedOut","HalfWon","HalfLost","isSecondaryStyles","isSmall","tableStyles","t","useTranslation","img","src","SettingsService","env","S3_BUCKET_BASE_URL","h6","p","useInfinityQuery","infiniteData","paginatedData","module","exports"],"sourceRoot":""}