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KCAlBD,EAAAC,OAAA,EAAkB,4fCAlBD,EAAAC,OAAA,EAAkB,0ICAlBD,EAAAC,OAAA,EAAkB,oZCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?b417","webpack://_N_E/./src/api/tournaments/queryKey.ts","webpack://_N_E/./src/api/tournaments/queries/useTournaments/service.ts","webpack://_N_E/./src/api/tournaments/queries/useTournaments/index.ts","webpack://_N_E/./src/api/tournaments/queries/useTournamentsBySlug/service.ts","webpack://_N_E/./src/api/tournaments/queries/useTournamentsBySlug/index.ts","webpack://_N_E/./src/api/tournaments/queries/index.ts","webpack://_N_E/./src/api/tournaments/index.ts","webpack://_N_E/./src/hooks/tournaments/useTournamentCardVersion/index.ts","webpack://_N_E/./src/models/tournament/status/index.ts","webpack://_N_E/./src/components/Tournaments/Page/Tabs/options.ts","webpack://_N_E/./src/lib/store/tournaments/actions.ts","webpack://_N_E/./src/components/Tournaments/Page/Tabs/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Content/Input/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Content/Cards/Card/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Content/Cards/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Content/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Hero/variants.ts","webpack://_N_E/./src/components/core/StakedCarousel/utils.ts","webpack://_N_E/./src/components/core/StakedCarousel/styles.ts","webpack://_N_E/./src/components/core/StakedCarousel/variants.ts","webpack://_N_E/./src/components/core/StakedCarousel/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/Hero/index.tsx","webpack://_N_E/./src/components/Tournaments/Page/index.tsx","webpack://_N_E/./src/pages/tournaments/index.tsx","webpack://_N_E/../../packages/common/src/components/NoDataComponent/index.tsx","webpack://_N_E/../../packages/common/src/components/PaginationWithProgress/Skeleton/index.tsx","webpack://_N_E/../../packages/common/src/components/PaginationWithProgress/index.tsx","webpack://_N_E/../../packages/common/src/components/Section/index.tsx","webpack://_N_E/../../packages/common/src/hooks/useDebounce.tsx","webpack://_N_E/./src/components/Tournaments/Page/Content/Cards/styles.module.scss","webpack://_N_E/./src/components/Tournaments/Page/Content/styles.module.scss","webpack://_N_E/./src/components/Tournaments/Page/Hero/styles.module.scss","webpack://_N_E/./src/components/Tournaments/Page/styles.module.scss","webpack://_N_E/../../packages/common/src/components/NoDataComponent/styles.module.scss","webpack://_N_E/../../packages/common/src/components/PaginationWithProgress/Skeleton/styles.module.scss","webpack://_N_E/../../packages/common/src/components/PaginationWithProgress/styles.module.scss","webpack://_N_E/../../packages/common/src/components/Section/styles.module.scss"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/tournaments\",\n function () {\n return require(\"private-next-pages/tournaments/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/tournaments\"])\n });\n }\n ","export enum TournamentsQueryKeys {\n Primary = '/tournaments',\n BySlug = '/tournaments/by-slug',\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseTournamentsQueryKeyProps } from './props';\nimport baseAPI from '@/api';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { TournamentWithStats } from '@/models/tournament/with-stats';\n\nexport async function fetchTournamentsWithStats({\n queryKey,\n pageParam,\n}: QueryFunctionContext) {\n const { query, status, limit } = queryKey[1];\n\n const response = await baseAPI.get>(\n '/tournaments',\n {\n params: {\n query,\n status,\n limit,\n page: pageParam,\n },\n },\n );\n\n return response.data;\n}\n","import { UseTournamentsProps, UseTournamentsQueryKeyProps } from './props';\nimport { TournamentsQueryKeys } from '../../queryKey';\nimport { InfiniteData } from '@tanstack/react-query';\nimport { useInfiniteQuery } from '@starsoft/common/services/query-client';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { fetchTournamentsWithStats } from './service';\nimport { FetchTournamentsInputDto } from '@/services/dto/tournaments/fetch-tournaments-input.dto';\nimport { useMemo } from 'react';\nimport { PaginatedResponse } from '@starsoft/common/models';\nimport { TournamentWithStats } from '@/models/tournament/with-stats';\nimport {\n useDebounce,\n useInfiniteQueryCallbacks,\n useInfiniteQueryReset,\n} from '@starsoft/common/hooks';\n\nexport function useTournaments(options?: UseTournamentsProps) {\n const { limit = 20, query: externalQuery, status } = options ?? {};\n const debouncedQuery = useDebounce(externalQuery);\n\n const params: FetchTournamentsInputDto = {\n query: externalQuery ?? debouncedQuery,\n status: status,\n limit,\n };\n\n const queryKey: UseTournamentsQueryKeyProps = [\n TournamentsQueryKeys.Primary,\n params,\n ];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n useInfiniteQueryReset(queryKey);\n\n const { data, isPending, fetchStatus, ...query } = useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseTournamentsQueryKeyProps\n >({\n queryKey,\n queryFn: fetchTournamentsWithStats,\n initialPageParam: 1,\n getNextPageParam,\n getPreviousPageParam,\n refetchOnWindowFocus: false,\n staleTime: 5 * 1000,\n });\n\n const tournaments = useMemo(\n () => data?.pages?.flatMap(page => page?.data),\n [data],\n );\n\n return {\n ...query,\n tournaments,\n data,\n isLoading: isPending && fetchStatus !== 'idle',\n };\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseTournamentsBySlugQueryKeyProps } from './props';\nimport baseAPI from '@/api';\nimport { TournamentWithStats } from '@/models/tournament/with-stats';\n\nexport async function fetchTournamentsWithStatsBySlug({\n queryKey,\n}: QueryFunctionContext) {\n const { slug } = queryKey[1];\n\n const response = await baseAPI.get(\n '/tournaments/by-slug',\n {\n params: {\n slug,\n },\n },\n );\n\n return response.data;\n}\n","import { UseTournamentsBySlugQueryKeyProps } from './props';\nimport { TournamentsQueryKeys } from '../../queryKey';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { fetchTournamentsWithStatsBySlug } from './service';\nimport { TournamentWithStats } from '@/models/tournament/with-stats';\nimport { useRouter } from 'next/router';\n\nexport function useTournamentsBySlug() {\n const { query: routerQuery } = useRouter();\n const slug = routerQuery?.slug as string;\n\n const queryKey: UseTournamentsBySlugQueryKeyProps = [\n TournamentsQueryKeys.BySlug,\n { slug },\n ];\n\n const { data, isPending, fetchStatus, ...query } = useQuery<\n TournamentWithStats,\n AxiosError,\n TournamentWithStats,\n UseTournamentsBySlugQueryKeyProps\n >({\n queryKey,\n queryFn: fetchTournamentsWithStatsBySlug,\n refetchOnWindowFocus: false,\n staleTime: 5 * 1000,\n enabled: !!slug,\n });\n\n return {\n ...query,\n data,\n isLoading: isPending && fetchStatus !== 'idle',\n };\n}\n","export { useTournaments } from './useTournaments';\nexport { useTournamentsBySlug } from './useTournamentsBySlug';\n","export * from './queries';\n","import { useResolvedTheme } from '@/hooks/theme/useResolvedTheme';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport { ComponentTypeId } from '@starsoft/common/models/setting/layout/component/type/types.enum';\n\nexport function useTournamentCardVersion() {\n const { components } = useResolvedTheme();\n const tournamentCardId: string =\n components.get(ComponentTypeId.TournamentCard?.toString())?.toString() ??\n SettingLayoutComponentId.TournamentCardV1?.toString();\n const isTournamentV2 =\n tournamentCardId == SettingLayoutComponentId.TournamentCardV2?.toString();\n\n return {\n tournamentCardId,\n isTournamentV2,\n };\n}\n","export enum TournamentStatus {\n Created = 'created',\n Open = 'open',\n Closed = 'closed',\n}\n","import { TournamentStatus } from '@/models/tournament/status';\nimport { Nullable } from '@starsoft/common/interfaces';\nimport { Tab } from '@starsoft/common/src/components/Tabs/Tab/props';\n\nexport const tournamentsTabs: Tab>[] = [\n {\n label: 'lobby_label',\n value: null,\n icon: 'fa-duotone fa-house',\n },\n {\n label: 'upcomming_label',\n value: TournamentStatus.Open,\n icon: 'fa-duotone fa-calendar',\n },\n {\n label: 'closed_label',\n value: TournamentStatus.Closed,\n icon: 'fa-duotone fa-close',\n },\n];\n","import { Nullable } from '@starsoft/common/interfaces';\nimport {\n SetCurrentTournamentTabPayload,\n SetTournamentsQueryPayload,\n TournamentsActions,\n} from './props';\nimport { TournamentStatus } from '@/models/tournament/status';\n\nexport function setCurrentTournamentTab(\n payload: Nullable,\n): SetCurrentTournamentTabPayload {\n return { type: TournamentsActions.SetCurrentTab, payload };\n}\n\nexport function SetTournamentQuery(\n payload: string,\n): SetTournamentsQueryPayload {\n return { type: TournamentsActions.SetTournamentQuery, payload };\n}\n","import { tournamentsTabs } from './options';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RootState } from '@/lib/store';\nimport { useCallback } from 'react';\nimport { setCurrentTournamentTab } from '@/lib/store/tournaments/actions';\nimport { Nullable } from '@starsoft/common/interfaces';\nimport { TournamentStatus } from '@/models/tournament/status';\nimport { TabsWithVersion } from '@/components/core/TabsWithVersion';\n\nexport default function TournamentsPageTabs() {\n const dispatch = useDispatch();\n const currentTab = useSelector((state: RootState) => state.tournaments.tab);\n\n const onTabChange = useCallback(\n (e: Nullable) => {\n dispatch(setCurrentTournamentTab(e));\n },\n [dispatch],\n );\n\n return (\n \n );\n}\n","import { RootState } from '@/lib/store';\nimport { SetTournamentQuery } from '@/lib/store/tournaments/actions';\nimport { Input } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nexport default function TournamentsPageContentInput() {\n const { t } = useTranslation('tournaments');\n const dispatch = useDispatch();\n\n const query: string = useSelector(\n (state: RootState) => state.tournaments.query,\n );\n\n function handleChangeTournamentsQuery(\n e: React.ChangeEvent,\n ) {\n dispatch(SetTournamentQuery(e.target.value));\n }\n\n return (\n \n );\n}\n","import { TournamentsCardProps } from './props';\n\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport dynamic from 'next/dynamic';\nimport { useTournamentCardVersion } from '@/hooks/tournaments/useTournamentCardVersion';\n\nconst TournamentsCardV1 = dynamic(() => import('./Versions/V1'), {\n ssr: true,\n});\nconst TournamentsCardV2 = dynamic(() => import('./Versions/V2'), {\n ssr: true,\n});\nconst TournamentsCardV3 = dynamic(() => import('./Versions/V3'), {\n ssr: true,\n});\n\nfunction TournamentsCard(props: TournamentsCardProps) {\n const { tournamentCardId } = useTournamentCardVersion();\n\n switch (tournamentCardId) {\n case SettingLayoutComponentId.TournamentCardV1?.toString():\n return ;\n case SettingLayoutComponentId.TournamentCardV2?.toString():\n return ;\n case SettingLayoutComponentId.TournamentCardV3?.toString():\n return ;\n }\n}\n\nexport default TournamentsCard;\n","import TournamentsCard from './Card';\nimport { useTournaments } from '@/api/tournaments';\nimport { Section } from '@starsoft/common/components';\nimport { TournamentWithStats } from '@/models/tournament/with-stats';\n\nimport styles from './styles.module.scss';\nimport { useSelector } from 'react-redux';\nimport { RootState } from '@/lib/store';\n\nexport default function TournamentsPageContentCards() {\n const query = useSelector((state: RootState) => state.tournaments.query);\n const tab = useSelector((state: RootState) => state.tournaments.tab);\n const {\n isLoading,\n error,\n tournaments,\n refetch,\n hasNextPage,\n fetchNextPage,\n isFetchingNextPage,\n data,\n } = useTournaments({\n limit: 20,\n query,\n status: tab,\n });\n\n return (\n (\n \n ),\n skeleton: index => (\n \n ),\n }}\n />\n );\n}\n","import styles from './styles.module.scss';\nimport TournamentsPageContentInput from './Input';\nimport TournamentsPageContentCards from './Cards';\n\nexport default function TournamentsPageContent() {\n return (\n
\n \n
\n \n
\n
\n );\n}\n","export const fadeInUp = {\n hidden: {\n opacity: 0,\n y: 50,\n transition: {\n type: 'spring',\n stiffness: 300,\n damping: 140,\n },\n },\n show: {\n opacity: 1,\n y: 0,\n transition: {\n type: 'spring',\n stiffness: 80,\n },\n },\n};\n\nexport const fadeInDown = {\n hidden: {\n opacity: 0,\n zIndex: 2,\n y: -100,\n transition: {\n type: 'spring',\n stiffness: 300,\n damping: 140,\n },\n },\n show: {\n opacity: 1,\n zIndex: 2,\n y: 0,\n transition: {\n type: 'spring',\n stiffness: 80,\n },\n },\n};\n","export function wrap(min: number, max: number, value: number) {\n const rangeSize = max - min + 1;\n return ((((value - min) % rangeSize) + rangeSize) % rangeSize) + min;\n}\n","import { getComputedColor } from '@/utils/theme';\nimport Color from 'color';\nimport styled from 'styled-components';\n\nexport const Button = styled.button`\n all: unset;\n box-sizing: border-box;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: -10%;\n z-index: 2;\n width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ${({ theme }) => theme.vars.palette.primary.main};\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n color: ${({ theme }) => theme.vars.palette.text.primary};\n opacity: 0;\n\n &:hover {\n opacity: 1;\n background-color: ${({ theme }) =>\n Color(getComputedColor(theme.vars.palette.primary.main))\n .darken(0.2)\n .toString()};\n }\n\n i {\n font-size: 14px;\n }\n\n @media (max-width: 768px) {\n opacity: 1;\n right: 0;\n }\n`;\n\nexport const Container = styled.div`\n .card {\n width: 100%;\n position: absolute;\n z-index: 1;\n\n &:hover {\n ${Button} {\n opacity: 1;\n }\n }\n }\n\n .card-next-1 {\n z-index: 0;\n\n &::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(\n to left,\n ${({ theme }) => theme.vars.palette.background.paper},\n transparent 75%\n );\n }\n }\n\n .card-next-2 {\n z-index: -1;\n\n &::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n background-image: linear-gradient(\n to left,\n ${({ theme }) => theme.vars.palette.background.paper},\n transparent 80%\n );\n }\n }\n\n &:hover {\n ${Button} {\n opacity: 1;\n }\n }\n`;\n","export const carouselPrimaryCard = {\n open: {\n top: '50%',\n opacity: 1,\n left: 0,\n transform: 'translateY(-50%) scale(1)',\n },\n exit: {\n left: '-20%',\n transform: 'translateY(-50%) scale(1)',\n top: '50%',\n opacity: 0,\n },\n};\n\nexport const carouselSecondaryCard = {\n open: {\n top: '50%',\n opacity: 1,\n left: '10%',\n transform: 'translateY(-50%) scale(0.95)',\n },\n exit: {\n left: 0,\n transform: 'translateY(-50%) scale(1)',\n top: '50%',\n opacity: 0,\n },\n};\n\nexport const carouselTertiaryCard = {\n open: {\n top: '50%',\n opacity: 1,\n left: '20%',\n transform: 'translateY(-50%) scale(0.9)',\n },\n exit: {\n top: '50%',\n opacity: 0,\n left: '10%',\n transform: 'translateY(-50%) scale(0.95)',\n },\n};\n\nexport const carouselTransition = {\n ease: 'easeInOut',\n duration: 0.25,\n};\n","import { useEffect, useState } from 'react';\nimport { StakedCarouselProps } from './props';\nimport { wrap } from './utils';\nimport { Button, Container } from './styles';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport {\n carouselPrimaryCard,\n carouselSecondaryCard,\n carouselTertiaryCard,\n carouselTransition,\n} from './variants';\nimport { ErrorCard } from '@starsoft/common/components';\n\nexport default function StakedCarousel({\n component,\n data,\n withoutTip = false,\n error,\n refetch,\n}: StakedCarouselProps) {\n const [page, setPage] = useState(0);\n const [lastPageChange, setLastPageChange] = useState(\n new Date().getTime(),\n );\n const currentIndex = wrap(0, data?.length ? data?.length - 1 : 0, page);\n const nextIndex1 = wrap(0, data?.length ? data?.length - 1 : 0, page + 1);\n const nextIndex2 = wrap(0, data?.length ? data?.length - 1 : 0, page + 2);\n\n const currentItem = data?.[currentIndex];\n const nextItem1 = data?.[nextIndex1];\n const nextItem2 = data?.[nextIndex2];\n\n function paginate() {\n setPage(prev => prev + 1);\n setLastPageChange(new Date().getTime());\n }\n\n function moveCarousel() {\n const interval = setInterval(() => {\n if (new Date().getTime() - lastPageChange < 5000) {\n return;\n }\n\n setPage(prev => prev + 1);\n }, 5000);\n\n return () => clearInterval(interval);\n }\n\n useEffect(moveCarousel, [lastPageChange]);\n\n if (data?.length === 0) {\n return null;\n }\n\n if (error) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n `translateY(-50%) ${generated}`}\n key={`staked-carousel-${page}`}\n >\n {component(currentItem)}\n \n `translateY(-50%) ${generated}`}\n key={`staked-carousel-${page + 1}`}\n >\n {component(nextItem1)}\n \n `translateY(-50%) ${generated}`}\n key={`staked-carousel-${page + 2}`}\n >\n {component(nextItem2)}\n \n \n \n );\n}\n","import { motion } from 'framer-motion';\nimport { fadeInDown, fadeInUp } from './variants';\nimport StakedCarousel from '@/components/core/StakedCarousel';\nimport { useTournaments } from '@/api/tournaments';\nimport { Image } from '@starsoft/common/components';\nimport TournamentsCard from '../Content/Cards/Card';\nimport useTranslation from 'next-translate/useTranslation';\n\nimport styles from './styles.module.scss';\nimport { platformAssets } from '@/utils/assets';\n\nexport default function TournamentsHero(): JSX.Element {\n const { t } = useTranslation('tournaments');\n\n const { isLoading, error, tournaments, refetch } = useTournaments({\n limit: 9,\n query: '',\n status: null,\n });\n\n return (\n
\n \n
\n \n
\n

\n {t('tournaments_label')} {platformAssets.app}\n

\n

\n {t('tournaments_description', { app_provider: platformAssets.app })}\n

\n \n \n
\n (\n \n )}\n />\n
\n \n
\n );\n}\n","import styles from './styles.module.scss';\nimport Layout from '@/components/core/Layout';\nimport TournamentsPageTabs from './Tabs';\nimport TournamentsPageContent from './Content';\nimport TournamentsHero from './Hero';\n\nexport default function TournamentsPage() {\n return (\n \n
\n \n \n \n
\n
\n );\n}\n","import TournamentsPage from '@/components/Tournaments/Page';\nimport { Language } from '@/enums/language';\nimport { GetServerSidePropsResultWithMetadataAndServerState } from '@/interfaces/pages/getServerSidePropsResultWithMetadataAndDehydratedState';\nimport { generateCasinoMetadata } from '@/lib/metadata';\nimport { mainPrefetchs } from '@/lib/prefetch';\nimport { dehydrate, QueryClient } from '@tanstack/react-query';\nimport { GetServerSidePropsContext } from 'next';\n\nexport default function Tournaments() {\n return ;\n}\n\nexport async function getServerSideProps({\n locale,\n req,\n}: GetServerSidePropsContext): Promise {\n const queryClient = new QueryClient();\n const [metadata] = await Promise.all([\n generateCasinoMetadata({\n lang: locale as Language,\n path: '/tournaments',\n title: 'tournaments_label',\n }),\n mainPrefetchs({\n queryClient,\n req,\n }),\n ]);\n\n return {\n props: {\n metadata: JSON.stringify(metadata),\n dehydratedState: dehydrate(queryClient),\n },\n };\n}\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 { Button } from '@starsoft/common/components';\nimport styles from '../styles.module.scss';\nimport skeleton from './styles.module.scss';\n\nexport default function PaginationWithProgressSkeleton(): JSX.Element {\n return (\n
\n
\n
\n
\n
\n
\n
\n );\n}\n","import { PaginationWithProgressProps } from './props';\nimport PaginationWithProgressSkeleton from './Skeleton';\n\nimport styles from './styles.module.scss';\nimport { Button } from '../Button';\nimport { useTranslation } from '../../hooks';\n\n/**\n * PaginationWithProgress Component\n * A component that displays pagination with a progress bar showing how much content has been loaded.\n * Includes a \"Load More\" button and handles loading states.\n *\n * @component\n * @param {Object} props - Component props\n * @param {number} props.count - Current number of items loaded\n * @param {() => void} props.fetchNextPage - Function to fetch next page of items\n * @param {boolean} props.hasNextPage - Whether there are more items to load\n * @param {boolean} props.loading - Whether the initial data is loading\n * @param {boolean} props.isFetchingNextPage - Whether the next page is being fetched\n * @param {number} props.totalCount - Total number of items available\n * @returns {JSX.Element} The rendered pagination with progress component\n *\n * @example\n * loadMore()}\n * hasNextPage={true}\n * loading={false}\n * isFetchingNextPage={false}\n * totalCount={100}\n * />\n */\nexport function PaginationWithProgress({\n count,\n fetchNextPage,\n hasNextPage,\n loading,\n isFetchingNextPage,\n totalCount,\n}: PaginationWithProgressProps) {\n const { t } = useTranslation('common');\n\n /**\n * Handles clicking the \"Load More\" button\n * Calls fetchNextPage if it is defined\n */\n function handleFetchNextPage() {\n if (fetchNextPage != undefined) {\n fetchNextPage();\n }\n }\n\n if (loading) {\n return ;\n }\n\n return (\n
\n
\n
\n \n
\n \n {t(\n !hasNextPage\n ? 'no_more_items_label'\n : 'pagination_load_more_button',\n )}\n \n
\n
\n );\n}\n","import { useMemo } from 'react';\nimport { SectionProps } from './props';\nimport styles from './styles.module.scss';\nimport { ErrorCard } from '../ErrorCard';\nimport { PaginationWithProgress } from '../PaginationWithProgress';\nimport { NoDataComponent } from '../NoDataComponent';\n\n/**\n * Section Component\n * A generic component that handles displaying paginated or non-paginated lists of items with loading states,\n * error handling, and pagination controls.\n *\n * @component\n * @template T - The type of data items being displayed\n * @param {Object} props - Component props\n * @param {boolean} props.paginated - Whether the data is paginated\n * @param {'manual' | 'infinite'} props.paginationType - Type of pagination to use\n * @param {Error} props.error - Error object if request failed\n * @param {boolean} props.hasMore - Whether there are more items to load\n * @param {boolean} props.isLoading - Whether initial data is loading\n * @param {boolean} props.isLoadingMore - Whether next page is loading\n * @param {number} props.limit - Number of items per page\n * @param {() => void} props.loadMore - Function to load next page\n * @param {() => void} props.refetch - Function to retry failed request\n * @param {Object} props.componenents - Component renderers\n * @param {(data: T, index: number) => JSX.Element} props.componenents.component - Renders each data item\n * @param {(index: number) => JSX.Element} props.componenents.skeleton - Renders loading placeholder\n * @param {T[]} props.data - Array of data items to display\n * @param {number} props.totalCount - Total number of items available\n * @param {string} props.className - Additional CSS class for content container\n * @returns {JSX.Element} The rendered section component\n *\n * @example\n * type User = {\n * id: number;\n * name: string;\n * };\n *\n * fetchNextPage()}\n * refetch={() => refetchData()}\n * componenents={{\n * component: (user, index) => ,\n * skeleton: (index) => \n * }}\n * data={users}\n * totalCount={100}\n * className=\"user-list\"\n * />\n */\nexport function Section({\n paginated,\n paginationType,\n error,\n hasMore,\n isLoading,\n isLoadingMore,\n limit,\n loadMore,\n refetch,\n componenents: { component, skeleton },\n data,\n totalCount,\n className,\n}: SectionProps) {\n // Memoized array of skeleton components for loading state\n const Skeletons: JSX.Element[] = useMemo(\n () => Array.from({ length: limit }).map((_, index) => skeleton(index)),\n [limit, skeleton],\n );\n\n // Memoized array of rendered data components\n const Components: JSX.Element[] = useMemo(\n () => data?.map((data, index) => component(data, index)),\n [data, component],\n );\n\n // Show error state if there's an error and refetch function available\n if (error && refetch) {\n return (\n
\n \n
\n );\n }\n\n // Show no data component if not loading and no data available\n if (!isLoading && data?.length === 0) {\n return ;\n }\n\n return (\n
\n \n {Components}\n {((paginated && isLoadingMore) || isLoading) && Skeletons}\n
\n\n {!isLoading && paginationType == 'manual' && loadMore && (\n \n )}\n
\n );\n}\n","import { useEffect, useState } from 'react';\n\n/**\n * Custom hook that debounces a value.\n *\n * @template T - The type of the value to debounce.\n * @param {T} value - The value to debounce.\n * @param {number} [delay=500] - The debounce delay in milliseconds.\n * @returns {T} - The debounced value.\n *\n * @example\n * const debouncedSearchTerm = useDebounce(searchTerm, 300);\n */\nexport function useDebounce(value: T, delay: number = 500): T {\n // State to store the debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n /**\n * Function to handle the debounce logic.\n * Sets a timeout to update the debounced value after the specified delay.\n * Clears the timeout if the value or delay changes before the timeout completes.\n */\n function handleDebounce() {\n const timer = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(timer);\n };\n }\n\n // useEffect hook to apply the debounce logic whenever the value or delay changes\n useEffect(handleDebounce, [value, delay]);\n\n // Return the debounced value\n return debouncedValue;\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"content\":\"styles_content__1dVuv\",\"content--empty\":\"styles_content--empty__rzWu7\",\"skeleton-animation\":\"styles_skeleton-animation__dhpbg\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__cH0fn\",\"container__wrapper\":\"styles_container__wrapper__ZQw63\",\"skeleton-animation\":\"styles_skeleton-animation__Lv2A9\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__r3Ltr\",\"container__column\":\"styles_container__column__aoyqB\",\"container__title\":\"styles_container__title__7vXN7\",\"container__description\":\"styles_container__description__3q9_U\",\"container__carousel\":\"styles_container__carousel__bhYsS\",\"logo\":\"styles_logo__HOg7d\",\"skeleton-animation\":\"styles_skeleton-animation__WORE6\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__F_Ebm\",\"container__heading\":\"styles_container__heading__982Ne\",\"skeleton-animation\":\"styles_skeleton-animation__zNRI5\"};","// 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\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"progress\":\"styles_progress__vmOnB\",\"label\":\"styles_label__kYnt0\",\"skeleton-animation\":\"styles_skeleton-animation__grSMs\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__Y5ac0\",\"container__wrapper\":\"styles_container__wrapper__eD20K\",\"container__wrapper__progress\":\"styles_container__wrapper__progress__8PLwL\",\"container__wrapper__progress__container\":\"styles_container__wrapper__progress__container__gOeiQ\",\"container__wrapper__label\":\"styles_container__wrapper__label__N1dvc\",\"skeleton-animation\":\"styles_skeleton-animation__i3pWW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__b0_7Y\",\"container__content\":\"styles_container__content__g4e0z\",\"container--error\":\"styles_container--error__0Ij1U\",\"skeleton-animation\":\"styles_skeleton-animation__Md2Ax\"};"],"names":["window","__NEXT_P","push","__webpack_require__","TournamentsQueryKeys","fetchTournamentsWithStats","param","queryKey","pageParam","query","status","limit","response","baseAPI","get","params","page","data","useTournaments","options","externalQuery","debouncedQuery","useDebounce","Primary","getNextPageParam","getPreviousPageParam","useInfiniteQueryCallbacks","useInfiniteQueryReset","isPending","fetchStatus","useInfiniteQuery","queryFn","initialPageParam","refetchOnWindowFocus","staleTime","tournaments","useMemo","pages","flatMap","isLoading","fetchTournamentsWithStatsBySlug","slug","useTournamentsBySlug","routerQuery","useRouter","BySlug","useQuery","enabled","useTournamentCardVersion","components","ComponentTypeId","SettingLayoutComponentId","useResolvedTheme","tournamentCardId","TournamentCard","toString","TournamentCardV1","isTournamentV2","TournamentCardV2","TournamentStatus","tournamentsTabs","label","value","icon","Open","Closed","TournamentsPageTabs","dispatch","useDispatch","currentTab","useSelector","state","tab","onTabChange","useCallback","type","TournamentsActions","SetCurrentTab","payload","e","jsx_runtime","jsx","TabsWithVersion","i18nNamespace","tabs","setTab","useMaxContent","TournamentsPageContentInput","t","useTranslation","Input","placeholder","onChange","target","SetTournamentQuery","isContainerColor","TournamentsCardV1","dynamic","Promise","all","then","bind","ssr","TournamentsCardV2","TournamentsCardV3","Card","props","TournamentCardV3","TournamentsPageContentCards","error","refetch","hasNextPage","fetchNextPage","isFetchingNextPage","Section","paginated","paginationType","hasMore","isLoadingMore","loadMore","className","styles","concat","length","totalCount","metadata","count","componenents","component","tournament","position","TournamentsCard","item","id","skeleton","index","TournamentsPageContent","jsxs","div","fadeInUp","hidden","opacity","y","transition","stiffness","damping","show","fadeInDown","zIndex","wrap","min","max","rangeSize","Button","styled","button","withConfig","theme","vars","palette","primary","main","text","Color","getComputedColor","darken","Container","background","paper","carouselPrimaryCard","open","top","left","transform","exit","carouselSecondaryCard","carouselTertiaryCard","carouselTransition","ease","duration","StakedCarousel","withoutTip","setPage","useState","lastPageChange","setLastPageChange","Date","getTime","currentIndex","nextIndex1","nextIndex2","currentItem","nextItem1","nextItem2","useEffect","interval","setInterval","prev","clearInterval","ErrorCard","onClick","i","AnimatePresence","mode","motion","initial","animate","variants","transformTemplate","_","generated","delay","TournamentsHero","whileInView","viewport","once","amount","Image","src","platformAssets","logo","width","height","alt","h1","app","p","app_provider","hideGames","TournamentsPage","Layout","Tournaments","NoDataComponent","isSecondaryStyles","isSmall","tableStyles","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","img","SettingsService","env","S3_BUCKET_BASE_URL","h6","PaginationWithProgressSkeleton","isSkeleton","PaginationWithProgress","loading","style","isSecondary","disabled","undefined","Skeletons","Array","from","map","Components","debouncedValue","setDebouncedValue","timer","setTimeout","clearTimeout","module","exports"],"sourceRoot":""}