@opexa/portal-components 0.0.86 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  2. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  3. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  4. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  5. package/dist/components/DepositWithdrawal/index.d.ts +1 -0
  6. package/dist/components/DepositWithdrawal/index.js +1 -0
  7. package/dist/components/Jackpots/Jackpots.d.ts +3 -9
  8. package/dist/components/Jackpots/Jackpots.js +8 -2
  9. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.d.ts +20 -0
  10. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +64 -0
  11. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.d.ts +2 -0
  12. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +2 -0
  13. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.d.ts +9 -0
  14. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +107 -0
  15. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
  16. package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +11 -0
  17. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +29 -0
  18. package/dist/components/Jackpots/JackpotsList/JackpotsListContext.d.ts +4 -0
  19. package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +3 -0
  20. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
  21. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.d.ts +1 -0
  22. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +44 -0
  23. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.d.ts +5 -0
  24. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +40 -0
  25. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.d.ts +1 -0
  26. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +45 -0
  27. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.d.ts +2 -0
  28. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +10 -0
  29. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +14 -0
  30. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +92 -0
  31. package/dist/components/Tournaments/Tournaments.d.ts +3 -7
  32. package/dist/components/Tournaments/Tournaments.js +8 -2
  33. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.d.ts +9 -0
  34. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +51 -0
  35. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.d.ts +2 -0
  36. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +2 -0
  37. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.d.ts +6 -0
  38. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +107 -0
  39. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -0
  40. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -0
  41. package/dist/components/Tournaments/TournamentsList/TournamentsList.d.ts +9 -0
  42. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +20 -0
  43. package/dist/components/Tournaments/TournamentsList/TournamentsListContext.d.ts +4 -0
  44. package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +3 -0
  45. package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.d.ts +1 -0
  46. package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +55 -0
  47. package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.d.ts +5 -0
  48. package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +37 -0
  49. package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.d.ts +1 -0
  50. package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +55 -0
  51. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.d.ts +2 -0
  52. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +9 -0
  53. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +10 -0
  54. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +71 -0
  55. package/dist/components/index.d.ts +0 -2
  56. package/dist/components/index.js +0 -2
  57. package/dist/icons/index.d.ts +1 -0
  58. package/dist/icons/index.js +1 -0
  59. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  60. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  61. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  62. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  63. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  64. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  65. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  66. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  67. package/dist/ui/DatePicker/DatePicker.d.ts +264 -264
  68. package/dist/ui/DatePicker/datePicker.recipe.d.ts +11 -11
  69. package/dist/ui/Dialog/Dialog.d.ts +121 -121
  70. package/dist/ui/Dialog/dialog.recipe.d.ts +11 -11
  71. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  72. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  73. package/dist/ui/Field/Field.d.ts +21 -21
  74. package/dist/ui/Field/field.recipe.d.ts +3 -3
  75. package/dist/ui/Popover/Popover.d.ts +55 -55
  76. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  77. package/dist/ui/Select/Select.d.ts +45 -45
  78. package/dist/ui/Select/select.recipe.d.ts +3 -3
  79. package/dist/ui/Table/Table.d.ts +21 -21
  80. package/dist/ui/Table/table.recipe.d.ts +3 -3
  81. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  82. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  83. package/dist/utils/index.d.ts +1 -0
  84. package/dist/utils/index.js +1 -0
  85. package/dist/utils/isStyleEntries.d.ts +2 -0
  86. package/dist/utils/isStyleEntries.js +5 -0
  87. package/package.json +1 -1
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import Image from 'next/image';
3
+ import React, { useState } from 'react';
4
+ import { twMerge } from 'tailwind-merge';
5
+ import { ArrowNarrowDownIcon, ArrowNarrowUpIcon, Award01Icon, StarIcon, Trophy01Icon, User01Icon, } from '../../../icons/index.js';
6
+ import firstPlace from '../../../images/first-place.png';
7
+ import trophy from '../../../images/trophy.png';
8
+ import { Button } from '../../../ui/index.js';
9
+ import { formatNumber, mask } from '../../../utils/index.js';
10
+ import { useTournamentsListItemContext } from './TournamentsListContext.js';
11
+ import { TournamentsListItemGameProviders } from './TournamentsListItemGameProviders.js';
12
+ import { TournamentsListItemRules } from './TournamentsListItemRules.js';
13
+ import { useTournamentsListItemData } from './useTournamentListItemData.js';
14
+ export function TournamentsListItemMobile() {
15
+ const tournament = useTournamentsListItemContext();
16
+ const [isDetailsVisible, setIsDetailsVisible] = useState(false);
17
+ const { prizeAmountsByRank, timeParts, tournamentReward, filteredGameProviders, localeInfo, } = useTournamentsListItemData();
18
+ return (_jsxs("div", { className: "bg-bg-primary border-border-primary rounded-2xl border", children: [_jsx("div", { className: twMerge('bg-bg-tertiary relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5'), children: _jsxs("div", { className: "z-1 relative flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsx("div", { className: "flex w-full flex-col", children: _jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex w-full justify-between", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium", children: [_jsx(Award01Icon, { className: "text-utility-brand-500 size-3.5" }), "Multiplier"] }), _jsx("div", { className: "flex h-fit", children: timeParts.map((part, idx) => (_jsxs(React.Fragment, { children: [_jsxs("div", { className: twMerge('bg-bg-primary text-text-primary-900 flex h-fit w-8 flex-col items-center rounded-[4px] pb-1.5'), children: [_jsx("span", { className: "text-base font-medium", children: String(part.value).padStart(2, '0') }), _jsx("span", { className: "text-[8px]", children: part.label })] }), idx < timeParts.length - 1 && (_jsxs("div", { className: "flex flex-col justify-center gap-[6px] px-[6px]", children: [_jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" }), _jsx("div", { className: "bg-bg-primary h-1 w-1 rounded-full" })] }))] }, part.label))) })] }), _jsx("div", { className: "text-text-primary-900 mt-2.5 text-left text-lg font-medium lg:mt-5 lg:text-2xl", children: tournament.name }), _jsx("div", { className: "bg-bg-primary text-brand-400 mt-1.5 w-fit rounded-md px-2 py-1 text-2xl font-bold lg:mt-2 lg:text-4xl", children: formatNumber(tournamentReward, {
19
+ currency: localeInfo.currency.code,
20
+ minDecimalPlaces: 2,
21
+ maxDecimalPlaces: 2,
22
+ }) })] }), _jsx("div", { className: "z-1 absolute bottom-[-60] right-0", children: _jsx(Image, { width: 72.94, height: 93, src: trophy, alt: "trophy", quality: 100, className: "size-full" }) })] }) }) }) }), tournament.topPayouts.length ? (_jsx("div", { children: _jsxs("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4", children: [_jsxs("div", { className: "bg-bg-tertiary relative flex h-18 w-18 items-center justify-center rounded-full", children: [_jsx(User01Icon, { className: "text-text-quarterary-500 size-9" }), _jsx("div", { className: "bg-yellow-400 text-brand-950 border-bg-primary absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] text-xs font-bold", children: "1st" })] }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: mask(tournament?.topPayouts[0]?.member?.name || '') }), _jsx("div", { className: "text-brand-400 text-2xl", children: formatNumber(tournament?.topPayouts[0]?.amount, {
23
+ currency: localeInfo.currency.code,
24
+ minDecimalPlaces: 2,
25
+ maxDecimalPlaces: 2,
26
+ }) })] })] }) })) : (_jsxs("div", { className: "bg-bg-primary relative mt-4 flex w-full gap-4 rounded-lg p-4", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "closeChest", className: "size-full h-auto w-[66px] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 flex h-fit w-fit items-center gap-1 rounded-sm border px-2 py-0.5 text-xs font-medium", children: [_jsx(Trophy01Icon, { className: "text-utility-brand-600 size-3.5" }), "Top Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] })), _jsx(Button, { variant: "outline", className: twMerge('mt-5.5 px-3.5 py-2.5 text-sm', isDetailsVisible ? 'hidden' : 'flex'), onClick: () => setIsDetailsVisible(!isDetailsVisible), children: _jsxs("div", { className: "flex gap-1.5", children: ["See Details", _jsx(ArrowNarrowDownIcon, { className: "size-5" })] }) })] }) }), isDetailsVisible && (_jsxs("div", { children: [_jsxs("div", { className: "z-1 flex-1", children: [_jsxs("div", { className: "flex items-center justify-between p-3", children: [_jsx("div", { className: "flex gap-2", children: _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: tournament.currentLeaderboard.edges.length
27
+ ? 'Leaderboard'
28
+ : 'Starting soon!' }) }), _jsx(TournamentsListItemRules, {})] }), _jsx("div", { children: _jsx("div", { className: "border-gray-200 overflow-hidden", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-bg-secondary text-text-tertiary-600 h-8 text-center text-xs font-medium", children: [_jsx("th", { className: "w-[52px]", children: "#" }), _jsx("th", { children: "Player" }), _jsx("th", { children: "Multiplier" }), _jsx("th", { children: "Prize" })] }) }), _jsx("tbody", { children: tournament.currentLeaderboard.edges.length ? (_jsx(_Fragment, { children: tournament.currentLeaderboard.edges.map((tournament, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-center text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: mask(tournament.node.username) }), _jsxs("td", { className: "border-border-secondary h-12 border-t-2", children: [tournament.node.multiplier, "x"] }), i + 1 <= prizeAmountsByRank.length ? (_jsx("td", { className: "border-border-secondary text-brand-400 h-12 border-t-2", children: formatNumber(prizeAmountsByRank[i], {
29
+ currency: localeInfo.currency.code,
30
+ minDecimalPlaces: 2,
31
+ maxDecimalPlaces: 2,
32
+ }) })) : (_jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }))] }, i))) })) : (_jsx(_Fragment, { children: Array.from({ length: 5 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-text-secondary-700 text-center text-sm", children: [_jsx("td", { className: "border-border-secondary h-12 w-[52px] border-t-2", children: i + 1 < 6 ? (_jsxs("div", { className: "relative", children: [_jsx(StarIcon, { className: twMerge('mx-auto size-6.5', starTierStyles[i].starColor) }), _jsx("span", { className: twMerge('absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold', starTierStyles[i].numberColor), children: i + 1 })] })) : (i + 1) }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" }), _jsx("td", { className: "border-border-secondary h-12 border-t-2", children: "-" })] }, i))) })) })] }) }) })] }), Boolean(filteredGameProviders.length) && (_jsx(TournamentsListItemGameProviders, { gameProviders: filteredGameProviders })), _jsx("div", { className: "m-3", children: _jsx(Button, { variant: "outline", className: twMerge('px-3.5 py-2.5 text-sm', !isDetailsVisible ? 'hidden' : 'flex'), onClick: () => setIsDetailsVisible(!isDetailsVisible), children: _jsxs("div", { className: "flex gap-1.5", children: ["Hide", _jsx(ArrowNarrowUpIcon, { className: "size-5" })] }) }) })] }))] }));
33
+ }
34
+ const starTierStyles = [
35
+ {
36
+ starColor: 'text-yellow-400',
37
+ numberColor: 'text-bg-primary',
38
+ },
39
+ {
40
+ starColor: 'text-utility-gray-700',
41
+ numberColor: 'text-bg-primary',
42
+ },
43
+ {
44
+ starColor: 'text-yellow-700',
45
+ numberColor: 'text-bg-primary',
46
+ },
47
+ {
48
+ starColor: 'text-bg-quaternary',
49
+ numberColor: 'text-text-primary-900',
50
+ },
51
+ {
52
+ starColor: 'text-bg-quaternary',
53
+ numberColor: 'text-text-primary-900',
54
+ },
55
+ ];
@@ -0,0 +1,2 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ export declare function TournamentsListItemRules(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Portal } from '@ark-ui/react';
3
+ import { Flag06Icon, XIcon } from '../../../icons/index.js';
4
+ import { Dialog } from '../../../ui/index.js';
5
+ import { useTournamentsListItemContext } from './TournamentsListContext.js';
6
+ export function TournamentsListItemRules(props) {
7
+ const tournament = useTournamentsListItemContext();
8
+ return (_jsxs(Dialog.Root, { lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: [_jsx(Dialog.Trigger, { asChild: true, children: props.children ?? (_jsx("button", { type: "button", className: "text-button-tertiary-fg flex text-sm font-semibold", children: "Tournament Rules" })) }), _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start lg:h-auto lg:w-[640px] lg:rounded-xl", children: [_jsxs("div", { className: "p-3xl", children: [_jsxs("div", { className: "mb-3 flex justify-between", children: [_jsx("div", { className: "bg-bg-tertiary border-border-primary flex h-12 w-12 items-center justify-center rounded-lg border", children: _jsx(Flag06Icon, { className: "text-text-tertiary-600 size-full p-3" }) }), _jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) })] }), _jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Tournament Rules" }), _jsx("div", { className: "text-text-tertiary-600 mt-1 text-sm", children: "Terms and Conditions" })] }), _jsx("div", { className: "border-gray-800 border-t-1 pb-3", children: _jsx("div", { dangerouslySetInnerHTML: { __html: tournament.description }, className: "px-3xl py-3" }) })] }) })] })] }));
9
+ }
@@ -0,0 +1,10 @@
1
+ export declare function useTournamentsListItemData(): {
2
+ timeParts: {
3
+ label: string;
4
+ value: number;
5
+ }[];
6
+ tournamentReward: number;
7
+ prizeAmountsByRank: number[];
8
+ filteredGameProviders: import("../../../types").GameProviderData[];
9
+ localeInfo: import("../../../utils").LocaleInfo;
10
+ };
@@ -0,0 +1,71 @@
1
+ import { pick } from 'lodash-es';
2
+ import { useCallback, useEffect, useMemo, useState } from 'react';
3
+ import { useLocaleInfo } from '../../../client/hooks/index.js';
4
+ import { GAME_PROVIDER_DATA } from '../../../constants/index.js';
5
+ import { useTournamentsListItemContext, useTournamentsListPropsContext, } from './TournamentsListContext.js';
6
+ export function useTournamentsListItemData() {
7
+ const tournamentsListProps = useTournamentsListPropsContext();
8
+ const tournament = useTournamentsListItemContext();
9
+ const gameProviders = tournamentsListProps.gameProviders.map((provider) => GAME_PROVIDER_DATA[provider]);
10
+ const localeInfo = useLocaleInfo();
11
+ const [timeRemaining, setTimeRemaining] = useState({
12
+ days: 0,
13
+ hours: 0,
14
+ minutes: 0,
15
+ seconds: 0,
16
+ isPast: false,
17
+ });
18
+ const activationEndDateTime = useMemo(() => new Date(tournament.activationEndDateTime), [tournament.activationEndDateTime]);
19
+ const calculateRemainingTime = useCallback(() => {
20
+ const now = new Date();
21
+ const diffMs = activationEndDateTime.getTime() - now.getTime();
22
+ if (diffMs <= 0) {
23
+ setTimeRemaining({
24
+ days: 0,
25
+ hours: 0,
26
+ minutes: 0,
27
+ seconds: 0,
28
+ isPast: true,
29
+ });
30
+ return;
31
+ }
32
+ const diffSeconds = Math.floor(diffMs / 1000);
33
+ const days = Math.floor(diffSeconds / (3600 * 24));
34
+ const hours = Math.floor((diffSeconds % (3600 * 24)) / 3600);
35
+ const minutes = Math.floor((diffSeconds % 3600) / 60);
36
+ const seconds = diffSeconds % 60;
37
+ const updated = pick({ days, hours, minutes, seconds, isPast: false }, [
38
+ 'days',
39
+ 'hours',
40
+ 'minutes',
41
+ 'seconds',
42
+ 'isPast',
43
+ ]);
44
+ setTimeRemaining(updated);
45
+ }, [activationEndDateTime]);
46
+ useEffect(() => {
47
+ calculateRemainingTime();
48
+ const interval = setInterval(calculateRemainingTime, 1000); // Update every second
49
+ return () => clearInterval(interval);
50
+ }, [activationEndDateTime, calculateRemainingTime]);
51
+ const timeParts = [
52
+ { label: 'Day', value: timeRemaining.days },
53
+ { label: 'Hour', value: timeRemaining.hours },
54
+ { label: 'Min', value: timeRemaining.minutes },
55
+ { label: 'Sec', value: timeRemaining.seconds },
56
+ ];
57
+ const tournamentReward = Object.values(tournament.rewardSettings)
58
+ .map(Number)
59
+ .reduce((sum, val) => sum + val, 0);
60
+ const prizeAmountsByRank = Object.values(tournament.rewardSettings).map(Number);
61
+ const filteredGameProviders = gameProviders.filter((provider) => {
62
+ return tournament.enabledGameProviders.includes(provider.id);
63
+ });
64
+ return {
65
+ timeParts,
66
+ tournamentReward,
67
+ prizeAmountsByRank,
68
+ filteredGameProviders,
69
+ localeInfo,
70
+ };
71
+ }
@@ -14,7 +14,6 @@ export * from './GameLaunch';
14
14
  export * from './GameProviders';
15
15
  export * from './Games';
16
16
  export * from './GamesSearch';
17
- export * from './JackpotCounter';
18
17
  export * from './Jackpots';
19
18
  export * from './KYC';
20
19
  export * from './Marquee';
@@ -28,6 +27,5 @@ export * from './Search';
28
27
  export * from './SignIn';
29
28
  export * from './SignUp';
30
29
  export * from './TopWins';
31
- export * from './TournamentCounter';
32
30
  export * from './Tournaments';
33
31
  export * from './TransactionRecords';
@@ -14,7 +14,6 @@ export * from './GameLaunch/index.js';
14
14
  export * from './GameProviders/index.js';
15
15
  export * from './Games/index.js';
16
16
  export * from './GamesSearch/index.js';
17
- export * from './JackpotCounter/index.js';
18
17
  export * from './Jackpots/index.js';
19
18
  export * from './KYC/index.js';
20
19
  export * from './Marquee/index.js';
@@ -28,6 +27,5 @@ export * from './Search/index.js';
28
27
  export * from './SignIn/index.js';
29
28
  export * from './SignUp/index.js';
30
29
  export * from './TopWins/index.js';
31
- export * from './TournamentCounter/index.js';
32
30
  export * from './Tournaments/index.js';
33
31
  export * from './TransactionRecords/index.js';
@@ -37,6 +37,7 @@ export * from './File02Icon';
37
37
  export * from './FileCheck02Icon';
38
38
  export * from './FileSearch02Icon';
39
39
  export * from './FileX02Icon';
40
+ export * from './Flag06Icon';
40
41
  export * from './GamingPad01Icon';
41
42
  export * from './Gift01Icon';
42
43
  export * from './Globe05Icon';
@@ -37,6 +37,7 @@ export * from './File02Icon.js';
37
37
  export * from './FileCheck02Icon.js';
38
38
  export * from './FileSearch02Icon.js';
39
39
  export * from './FileX02Icon.js';
40
+ export * from './Flag06Icon.js';
40
41
  export * from './GamingPad01Icon.js';
41
42
  export * from './Gift01Icon.js';
42
43
  export * from './Globe05Icon.js';