@opexa/portal-components 0.0.18 β 0.0.19
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.
- package/dist/client/hooks/index.d.ts +6 -3
- package/dist/client/hooks/useAuthenticateMutation.js +1 -1
- package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
- package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
- package/dist/client/hooks/useBonusesQuery.js +1 -0
- package/dist/client/hooks/useBonusesQuery.mjs +38 -0
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
- package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
- package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
- package/dist/client/hooks/useGlobalStore.d.ts +30 -20
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +39 -6
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -5
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -1
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +18 -18
- package/dist/client/hooks/useSignInMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.mjs +3 -2
- package/dist/client/hooks/useSignOutMutation.js +1 -1
- package/dist/client/hooks/useSignOutMutation.mjs +11 -10
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/services/getSession.js +1 -1
- package/dist/client/services/getSession.mjs +4 -3
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +90 -84
- package/dist/components/Account/Account.d.ts +17 -10
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +204 -148
- package/dist/components/Account/account.recipe.d.ts +61 -0
- package/dist/components/Account/account.recipe.js +1 -0
- package/dist/components/Account/account.recipe.mjs +35 -0
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +174 -150
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonuses/Bonuses.js +1 -1
- package/dist/components/Bonuses/Bonuses.mjs +6 -5
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +25 -23
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +15 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +36 -34
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +7 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +12 -10
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +7 -6
- package/dist/components/Empty.js +1 -0
- package/dist/components/{Empty/CloudIcon.mjs β Empty.mjs} +26 -11
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
- package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
- package/dist/components/FavoriteGames/index.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +147 -123
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
- package/dist/components/GameProviders/GameProviders.d.ts +7 -10
- package/dist/components/GameProviders/GameProviders.js +1 -0
- package/dist/components/GameProviders/GameProviders.mjs +122 -0
- package/dist/components/GameProviders/index.d.ts +1 -0
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +91 -66
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +4 -2
- package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -0
- package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
- package/dist/components/GamesSearch/index.d.ts +2 -0
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +1 -0
- package/dist/components/InfiniteScroll.mjs +30 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -114
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +206 -119
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -9
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
- package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
- package/dist/components/Jackpots/JackpotRules.js +1 -0
- package/dist/components/Jackpots/JackpotRules.mjs +78 -0
- package/dist/components/Jackpots/Jackpots.d.ts +2 -2
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/KYC/KYC.d.ts +5 -0
- package/dist/components/KYC/KYC.js +1 -0
- package/dist/components/KYC/KYC.mjs +84 -0
- package/dist/components/KYC/KYCContext.d.ts +3 -0
- package/dist/components/KYC/KYCContext.js +1 -0
- package/dist/components/KYC/KYCContext.mjs +11 -0
- package/dist/components/KYC/KYCTrigger.d.ts +5 -0
- package/dist/components/KYC/KYCTrigger.js +1 -0
- package/dist/components/KYC/KYCTrigger.mjs +42 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +1 -0
- package/dist/components/KYC/Step1.mjs +67 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +1 -0
- package/dist/components/KYC/Step2.mjs +126 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +1 -0
- package/dist/components/KYC/Step3.mjs +98 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -0
- package/dist/components/KYC/StepIndicator.js +1 -0
- package/dist/components/KYC/StepIndicator.mjs +42 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -0
- package/dist/components/KYC/UploadDocument.js +1 -0
- package/dist/components/KYC/UploadDocument.mjs +69 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -0
- package/dist/components/KYC/UploadSelfie.js +1 -0
- package/dist/components/KYC/UploadSelfie.mjs +65 -0
- package/dist/components/KYC/index.d.ts +2 -0
- package/dist/components/KYC/useKYC.d.ts +14 -0
- package/dist/components/KYC/useKYC.js +1 -0
- package/dist/components/KYC/useKYC.mjs +43 -0
- package/dist/components/KYC/utils.d.ts +1 -0
- package/dist/components/Messages/MessageItem.js +1 -1
- package/dist/components/Messages/MessageItem.mjs +37 -28
- package/dist/components/Messages/MessagePopup.js +1 -1
- package/dist/components/Messages/MessagePopup.mjs +35 -29
- package/dist/components/Messages/Messages.js +1 -1
- package/dist/components/Messages/Messages.mjs +80 -61
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
- package/dist/components/PortalProvider/{Providers.js β PortalProvider.client.js} +1 -1
- package/dist/components/PortalProvider/{Providers.mjs β PortalProvider.client.mjs} +28 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
- package/dist/components/Promo/Promo.d.ts +4 -1
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promo/Promo.mjs +2 -2
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +75 -22
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +5 -3
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -6
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +3 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
- package/dist/components/Quests/Quests.d.ts +1 -0
- package/dist/components/Quests/Quests.js +1 -0
- package/dist/components/Quests/Quests.mjs +15 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
- package/dist/components/Quests/index.d.ts +1 -0
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +4 -2
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +4 -2
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +4 -2
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +4 -2
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +3 -2
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -111
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +47 -38
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +236 -194
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +3 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +62 -53
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +61 -52
- package/dist/components/index.d.ts +8 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -36
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.js +1 -0
- package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
- package/dist/icons/Award01Icon.d.ts +2 -0
- package/dist/icons/Award01Icon.js +1 -0
- package/dist/icons/Award01Icon.mjs +22 -0
- package/dist/icons/CalendarIcon.d.ts +2 -0
- package/dist/icons/CalendarIcon.js +1 -0
- package/dist/icons/CalendarIcon.mjs +26 -0
- package/dist/icons/Camera01Icon.d.ts +2 -0
- package/dist/icons/Camera01Icon.js +1 -0
- package/dist/icons/Camera01Icon.mjs +25 -0
- package/dist/icons/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/CheckCircleIcon.js +1 -0
- package/dist/icons/CheckCircleIcon.mjs +22 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
- package/dist/icons/ClockStopWatchIcon.js +1 -0
- package/dist/icons/ClockStopWatchIcon.mjs +26 -0
- package/dist/icons/CoinsHandIcon.d.ts +2 -0
- package/dist/icons/CoinsHandIcon.js +1 -0
- package/dist/icons/CoinsHandIcon.mjs +22 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
- package/dist/icons/CoinsStacked02Icon.js +1 -0
- package/dist/icons/CoinsStacked02Icon.mjs +22 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
- package/dist/icons/CoinsSwap02Icon.js +1 -0
- package/dist/icons/CoinsSwap02Icon.mjs +22 -0
- package/dist/icons/Flag06Icon.d.ts +2 -0
- package/dist/icons/Flag06Icon.js +1 -0
- package/dist/icons/Flag06Icon.mjs +22 -0
- package/dist/icons/HelpCircleIcon.d.ts +2 -0
- package/dist/icons/HelpCircleIcon.js +1 -0
- package/dist/icons/HelpCircleIcon.mjs +22 -0
- package/dist/icons/InfoCircleIcon.d.ts +2 -0
- package/dist/icons/InfoCircleIcon.js +1 -0
- package/dist/icons/InfoCircleIcon.mjs +27 -0
- package/dist/icons/Menu01Icon.d.ts +2 -0
- package/dist/icons/Menu01Icon.js +1 -0
- package/dist/icons/Menu01Icon.mjs +22 -0
- package/dist/icons/Menu03Icon.d.ts +2 -0
- package/dist/icons/Menu03Icon.js +1 -0
- package/dist/icons/Menu03Icon.mjs +22 -0
- package/dist/icons/SearchLgIcon.d.ts +2 -0
- package/dist/icons/SearchLgIcon.js +1 -0
- package/dist/icons/SearchLgIcon.mjs +22 -0
- package/dist/icons/Settings02Icon.d.ts +2 -0
- package/dist/icons/Settings02Icon.js +1 -0
- package/dist/icons/Settings02Icon.mjs +25 -0
- package/dist/icons/Star01Icon.d.ts +2 -0
- package/dist/icons/Star01Icon.js +1 -0
- package/dist/icons/Star01Icon.mjs +22 -0
- package/dist/icons/StarIcon.js +1 -1
- package/dist/icons/StarIcon.mjs +1 -2
- package/dist/icons/UploadCloud02Icon.d.ts +2 -0
- package/dist/icons/UploadCloud02Icon.js +1 -0
- package/dist/icons/UploadCloud02Icon.mjs +22 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +80 -48
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/hacksaw-gaming.png.js +1 -0
- package/dist/images/hacksaw-gaming.png.mjs +4 -0
- package/dist/images/trophy-two.png.js +1 -0
- package/dist/images/trophy-two.png.mjs +4 -0
- package/dist/portal-components.css +1 -1
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/getSession.mjs +6 -5
- package/dist/server/utils/index.d.ts +2 -1
- package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchBonusesQuery.js +1 -0
- package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +9 -2
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Combobox/Combobox.d.ts +815 -1
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/Combobox.mjs +27 -2
- package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +1 -1
- package/dist/ui/IconButton/iconButton.recipe.d.ts +1 -0
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +3 -2
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +2 -1
- package/dist/utils/queryKeys.d.ts +7 -3
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +53 -43
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +43 -39
- package/package.json +16 -11
- package/dist/client/hooks/useSiteQuery.d.ts +0 -3
- package/dist/client/hooks/useSiteQuery.js +0 -1
- package/dist/client/hooks/useSiteQuery.mjs +0 -23
- package/dist/components/Empty/CloudIcon.d.ts +0 -2
- package/dist/components/Empty/CloudIcon.js +0 -1
- package/dist/components/Empty/Empty.js +0 -1
- package/dist/components/Empty/Empty.mjs +0 -20
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/images/ball.png.js +0 -1
- package/dist/images/ball.png.mjs +0 -4
- package/dist/images/card.png.js +0 -1
- package/dist/images/card.png.mjs +0 -4
- package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
- package/dist/server/utils/prefetchSiteQuery.js +0 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
- /package/dist/components/{Empty/Empty.d.ts β Empty.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("embla-carousel-react"),v=require("next/link"),s=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const N=require("../../client/hooks/useJackpotsQuery.js");require("usehooks-ts");const g=require("../../icons/ArrowLeftIcon.js"),j=require("../../icons/ArrowRightIcon.js"),b=require("../../icons/ChevronRightIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const n=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("@ark-ui/react");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const k=require("./JackpotCounterItem.js");function C(l){var a;const[u,r]=h({align:"start",slidesToScroll:1}),o=s.useCallback(()=>{r&&r.scrollPrev()},[r]),q=s.useCallback(()=>{r&&r.scrollNext()},[r]),[d,m]=s.useState(!1),[x,f]=s.useState(!1),i=s.useCallback(()=>{r&&(m(r.canScrollPrev()),f(r.canScrollNext()))},[r]);s.useEffect(()=>{r&&(i(),r.on("select",i),r.on("reInit",i))},[r,i]);const c=((a=N.useJackpotsQuery({first:100,filter:{status:{equal:"ACTIVE"},deleted:{equal:!1}},sort:{cursor:"POOL",order:"DESC"}}).data)==null?void 0:a.pages[0].edges.map(t=>t.node))??[];return c.length<=0?null:e.jsxs("div",{className:l.className,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-lg font-semibold",children:l.heading??"Jackpots"}),e.jsxs("div",{className:"flex items-center md:gap-3xl",children:[e.jsxs(v,{href:l.viewAllUrl??"/jackpots",className:"text-button-tertiary-fg flex gap-sm text-sm font-semibold",children:["See All",e.jsx(b.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),e.jsxs("div",{className:"hidden lg:flex",children:[e.jsx(n.Button,{disabled:!d,onClick:o,variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0","aria-label":"Previous",children:e.jsx(g.ArrowLeftIcon,{className:"size-5"})}),e.jsxs(n.Button,{disabled:!x,onClick:q,variant:"outline",colorScheme:"gray",className:"rounded-l-none","aria-label":"Next",children:[e.jsx("span",{className:"sr-only",children:"Next"}),e.jsx(j.ArrowRightIcon,{className:"size-5"})]})]})]})]}),e.jsx("div",{className:"relative mt-lg lg:overflow-hidden",ref:u,children:e.jsx("div",{className:"flex gap-2.5",children:c.map(t=>e.jsx(k.JackpotCounterItem,{jackpot:t,className:"w-full",viewAllUrl:l.viewAllUrl},t.id))})})]})}exports.JackpotCounter__client=C;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import x from "embla-carousel-react";
|
|
4
|
+
import g from "next/link";
|
|
5
|
+
import { useCallback as m, useState as c, useEffect as b } from "react";
|
|
6
|
+
import "@opexa/portal-sdk-core";
|
|
7
|
+
import "@tanstack/react-query";
|
|
8
|
+
import "tiny-invariant";
|
|
9
|
+
import "../../constants/index.mjs";
|
|
10
|
+
import "../../utils/capitalize.mjs";
|
|
11
|
+
import "../../utils/parseDecimal.mjs";
|
|
12
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
13
|
+
import "../../utils/getQueryClient.mjs";
|
|
14
|
+
import "../../utils/isMobile.mjs";
|
|
15
|
+
import "../../client/services/getSession.mjs";
|
|
16
|
+
import "lodash-es";
|
|
17
|
+
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
+
import "../../client/hooks/useGlobalStore.mjs";
|
|
19
|
+
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
|
+
import { useJackpotsQuery as S } from "../../client/hooks/useJackpotsQuery.mjs";
|
|
21
|
+
import "usehooks-ts";
|
|
22
|
+
import { ArrowLeftIcon as k } from "../../icons/ArrowLeftIcon.mjs";
|
|
23
|
+
import { ArrowRightIcon as C } from "../../icons/ArrowRightIcon.mjs";
|
|
24
|
+
import { ChevronRightIcon as w } from "../../icons/ChevronRightIcon.mjs";
|
|
25
|
+
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
26
|
+
import "../../ui/Avatar/Avatar.mjs";
|
|
27
|
+
import "../../ui/Badge/Badge.mjs";
|
|
28
|
+
import { Button as n } from "../../ui/Button/Button.mjs";
|
|
29
|
+
import "../../ui/Checkbox/Checkbox.mjs";
|
|
30
|
+
import "../../ui/Clipboard/Clipboard.mjs";
|
|
31
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
32
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
33
|
+
import "../../ui/DatePicker/DatePicker.mjs";
|
|
34
|
+
import "../../ui/Dialog/Dialog.mjs";
|
|
35
|
+
import "../../ui/Drawer/Drawer.mjs";
|
|
36
|
+
import "../../ui/Field/Field.mjs";
|
|
37
|
+
import "@ark-ui/react";
|
|
38
|
+
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
39
|
+
import "../../ui/NumberInput/NumberInput.mjs";
|
|
40
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
41
|
+
import "../../ui/PinInput/PinInput.mjs";
|
|
42
|
+
import "../../ui/Popover/Popover.mjs";
|
|
43
|
+
import "tailwind-merge";
|
|
44
|
+
import "../../ui/Progress/Progress.mjs";
|
|
45
|
+
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
46
|
+
import "../../ui/Select/Select.mjs";
|
|
47
|
+
import "../../ui/Table/Table.mjs";
|
|
48
|
+
import "../../ui/Tabs/Tabs.mjs";
|
|
49
|
+
import { JackpotCounterItem as y } from "./JackpotCounterItem.mjs";
|
|
50
|
+
function Se(o) {
|
|
51
|
+
var a;
|
|
52
|
+
const [p, e] = x({
|
|
53
|
+
align: "start",
|
|
54
|
+
slidesToScroll: 1
|
|
55
|
+
}), d = m(() => {
|
|
56
|
+
e && e.scrollPrev();
|
|
57
|
+
}, [e]), f = m(() => {
|
|
58
|
+
e && e.scrollNext();
|
|
59
|
+
}, [e]), [u, N] = c(!1), [h, v] = c(!1), l = m(() => {
|
|
60
|
+
e && (N(e.canScrollPrev()), v(e.canScrollNext()));
|
|
61
|
+
}, [e]);
|
|
62
|
+
b(() => {
|
|
63
|
+
e && (l(), e.on("select", l), e.on("reInit", l));
|
|
64
|
+
}, [e, l]);
|
|
65
|
+
const s = ((a = S({
|
|
66
|
+
first: 100,
|
|
67
|
+
filter: {
|
|
68
|
+
status: {
|
|
69
|
+
equal: "ACTIVE"
|
|
70
|
+
},
|
|
71
|
+
deleted: {
|
|
72
|
+
equal: !1
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
sort: {
|
|
76
|
+
cursor: "POOL",
|
|
77
|
+
order: "DESC"
|
|
78
|
+
}
|
|
79
|
+
}).data) == null ? void 0 : a.pages[0].edges.map((i) => i.node)) ?? [];
|
|
80
|
+
return s.length <= 0 ? null : /* @__PURE__ */ t("div", { className: o.className, children: [
|
|
81
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
|
|
82
|
+
/* @__PURE__ */ r("div", { className: "text-lg font-semibold", children: o.heading ?? "Jackpots" }),
|
|
83
|
+
/* @__PURE__ */ t("div", { className: "flex items-center md:gap-3xl", children: [
|
|
84
|
+
/* @__PURE__ */ t(
|
|
85
|
+
g,
|
|
86
|
+
{
|
|
87
|
+
href: o.viewAllUrl ?? "/jackpots",
|
|
88
|
+
className: "text-button-tertiary-fg flex gap-sm text-sm font-semibold",
|
|
89
|
+
children: [
|
|
90
|
+
"See All",
|
|
91
|
+
/* @__PURE__ */ r(w, { className: "size-5 lg:hidden" })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ t("div", { className: "hidden lg:flex", children: [
|
|
96
|
+
/* @__PURE__ */ r(
|
|
97
|
+
n,
|
|
98
|
+
{
|
|
99
|
+
disabled: !u,
|
|
100
|
+
onClick: d,
|
|
101
|
+
variant: "outline",
|
|
102
|
+
colorScheme: "gray",
|
|
103
|
+
className: "rounded-r-none border-r-0",
|
|
104
|
+
"aria-label": "Previous",
|
|
105
|
+
children: /* @__PURE__ */ r(k, { className: "size-5" })
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ t(
|
|
109
|
+
n,
|
|
110
|
+
{
|
|
111
|
+
disabled: !h,
|
|
112
|
+
onClick: f,
|
|
113
|
+
variant: "outline",
|
|
114
|
+
colorScheme: "gray",
|
|
115
|
+
className: "rounded-l-none",
|
|
116
|
+
"aria-label": "Next",
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Next" }),
|
|
119
|
+
/* @__PURE__ */ r(C, { className: "size-5" })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
] })
|
|
124
|
+
] })
|
|
125
|
+
] }),
|
|
126
|
+
/* @__PURE__ */ r("div", { className: "relative mt-lg lg:overflow-hidden", ref: p, children: /* @__PURE__ */ r("div", { className: "flex gap-2.5", children: s.map((i) => /* @__PURE__ */ r(
|
|
127
|
+
y,
|
|
128
|
+
{
|
|
129
|
+
jackpot: i,
|
|
130
|
+
className: "w-full",
|
|
131
|
+
viewAllUrl: o.viewAllUrl
|
|
132
|
+
},
|
|
133
|
+
i.id
|
|
134
|
+
)) }) })
|
|
135
|
+
] });
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
Se as JackpotCounter__client
|
|
139
|
+
};
|
|
@@ -5,4 +5,4 @@ export interface JackpotCounterProps {
|
|
|
5
5
|
viewAllUrl?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function JackpotCounter(props: JackpotCounterProps): import("react").JSX.Element
|
|
8
|
+
export declare function JackpotCounter(props: JackpotCounterProps): Promise<import("react").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("@opexa/portal-sdk-core");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../server/services/getSession.js");require("date-fns");require("next/headers");const t=require("../../server/utils/prefetchJackpotsQuery.js"),u=require("./JackpotCounter.client.js");async function i(e){return await t.prefetchJackpotsQuery({first:100,filter:{status:{equal:"ACTIVE"},deleted:{equal:!1}},sort:{cursor:"POOL",order:"DESC"}}),r.jsx(u.JackpotCounter__client,{...e})}exports.JackpotCounter=i;
|
|
@@ -1,66 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import x from "embla-carousel-react";
|
|
4
|
-
import g from "next/link";
|
|
5
|
-
import { useCallback as m, useState as c, useEffect as b } from "react";
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
2
|
import "@opexa/portal-sdk-core";
|
|
7
|
-
import "@tanstack/react-query";
|
|
8
|
-
import "tiny-invariant";
|
|
9
3
|
import "../../constants/index.mjs";
|
|
10
4
|
import "../../utils/capitalize.mjs";
|
|
11
5
|
import "../../utils/parseDecimal.mjs";
|
|
12
6
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
7
|
import "../../utils/getQueryClient.mjs";
|
|
14
8
|
import "../../utils/isMobile.mjs";
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "../../
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import { ArrowRightIcon as C } from "../../icons/ArrowRightIcon.mjs";
|
|
23
|
-
import { ChevronRightIcon as w } from "../../icons/ChevronRightIcon.mjs";
|
|
24
|
-
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
25
|
-
import "../../ui/Avatar/Avatar.mjs";
|
|
26
|
-
import "../../ui/Badge/Badge.mjs";
|
|
27
|
-
import { Button as n } from "../../ui/Button/Button.mjs";
|
|
28
|
-
import "../../ui/Checkbox/Checkbox.mjs";
|
|
29
|
-
import "../../ui/Clipboard/Clipboard.mjs";
|
|
30
|
-
import "../../ui/Collapsible/Collapsible.mjs";
|
|
31
|
-
import "../../ui/DatePicker/DatePicker.mjs";
|
|
32
|
-
import "../../ui/Dialog/Dialog.mjs";
|
|
33
|
-
import "../../ui/Drawer/Drawer.mjs";
|
|
34
|
-
import "../../ui/Field/Field.mjs";
|
|
35
|
-
import "@ark-ui/react";
|
|
36
|
-
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
37
|
-
import "../../ui/NumberInput/NumberInput.mjs";
|
|
38
|
-
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
39
|
-
import "../../ui/PinInput/PinInput.mjs";
|
|
40
|
-
import "../../ui/Popover/Popover.mjs";
|
|
41
|
-
import "tailwind-merge";
|
|
42
|
-
import "../../ui/Progress/Progress.mjs";
|
|
43
|
-
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
44
|
-
import "../../ui/Select/Select.mjs";
|
|
45
|
-
import "../../ui/Table/Table.mjs";
|
|
46
|
-
import "../../ui/Tabs/Tabs.mjs";
|
|
47
|
-
import { JackpotCounterItem as y } from "./JackpotCounterItem.mjs";
|
|
48
|
-
function ge(o) {
|
|
49
|
-
var a;
|
|
50
|
-
const [p, e] = x({
|
|
51
|
-
align: "start",
|
|
52
|
-
slidesToScroll: 1
|
|
53
|
-
}), d = m(() => {
|
|
54
|
-
e && e.scrollPrev();
|
|
55
|
-
}, [e]), f = m(() => {
|
|
56
|
-
e && e.scrollNext();
|
|
57
|
-
}, [e]), [u, N] = c(!1), [h, v] = c(!1), l = m(() => {
|
|
58
|
-
e && (N(e.canScrollPrev()), v(e.canScrollNext()));
|
|
59
|
-
}, [e]);
|
|
60
|
-
b(() => {
|
|
61
|
-
e && (l(), e.on("select", l), e.on("reInit", l));
|
|
62
|
-
}, [e, l]);
|
|
63
|
-
const s = ((a = S({
|
|
9
|
+
import "../../server/services/getSession.mjs";
|
|
10
|
+
import "date-fns";
|
|
11
|
+
import "next/headers";
|
|
12
|
+
import { prefetchJackpotsQuery as o } from "../../server/utils/prefetchJackpotsQuery.mjs";
|
|
13
|
+
import { JackpotCounter__client as i } from "./JackpotCounter.client.mjs";
|
|
14
|
+
async function J(r) {
|
|
15
|
+
return await o({
|
|
64
16
|
first: 100,
|
|
65
17
|
filter: {
|
|
66
18
|
status: {
|
|
@@ -74,64 +26,8 @@ function ge(o) {
|
|
|
74
26
|
cursor: "POOL",
|
|
75
27
|
order: "DESC"
|
|
76
28
|
}
|
|
77
|
-
})
|
|
78
|
-
return s.length <= 0 ? null : /* @__PURE__ */ t("div", { className: o.className, children: [
|
|
79
|
-
/* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
|
|
80
|
-
/* @__PURE__ */ r("div", { className: "text-lg font-semibold", children: o.heading ?? "Jackpots" }),
|
|
81
|
-
/* @__PURE__ */ t("div", { className: "flex items-center md:gap-3xl", children: [
|
|
82
|
-
/* @__PURE__ */ t(
|
|
83
|
-
g,
|
|
84
|
-
{
|
|
85
|
-
href: o.viewAllUrl ?? "/jackpots",
|
|
86
|
-
className: "text-button-tertiary-fg flex gap-sm text-sm font-semibold",
|
|
87
|
-
children: [
|
|
88
|
-
"See All",
|
|
89
|
-
/* @__PURE__ */ r(w, { className: "size-5 lg:hidden" })
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ t("div", { className: "hidden lg:flex", children: [
|
|
94
|
-
/* @__PURE__ */ r(
|
|
95
|
-
n,
|
|
96
|
-
{
|
|
97
|
-
disabled: !u,
|
|
98
|
-
onClick: d,
|
|
99
|
-
variant: "outline",
|
|
100
|
-
colorScheme: "gray",
|
|
101
|
-
className: "rounded-r-none border-r-0",
|
|
102
|
-
"aria-label": "Previous",
|
|
103
|
-
children: /* @__PURE__ */ r(k, { className: "size-5" })
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ t(
|
|
107
|
-
n,
|
|
108
|
-
{
|
|
109
|
-
disabled: !h,
|
|
110
|
-
onClick: f,
|
|
111
|
-
variant: "outline",
|
|
112
|
-
colorScheme: "gray",
|
|
113
|
-
className: "rounded-l-none",
|
|
114
|
-
"aria-label": "Next",
|
|
115
|
-
children: [
|
|
116
|
-
/* @__PURE__ */ r("span", { className: "sr-only", children: "Next" }),
|
|
117
|
-
/* @__PURE__ */ r(C, { className: "size-5" })
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
] })
|
|
122
|
-
] })
|
|
123
|
-
] }),
|
|
124
|
-
/* @__PURE__ */ r("div", { className: "relative mt-lg lg:overflow-hidden", ref: p, children: /* @__PURE__ */ r("div", { className: "flex gap-2.5", children: s.map((i) => /* @__PURE__ */ r(
|
|
125
|
-
y,
|
|
126
|
-
{
|
|
127
|
-
jackpot: i,
|
|
128
|
-
className: "w-full",
|
|
129
|
-
viewAllUrl: o.viewAllUrl
|
|
130
|
-
},
|
|
131
|
-
i.id
|
|
132
|
-
)) }) })
|
|
133
|
-
] });
|
|
29
|
+
}), /* @__PURE__ */ t(i, { ...r });
|
|
134
30
|
}
|
|
135
31
|
export {
|
|
136
|
-
|
|
32
|
+
J as JackpotCounter
|
|
137
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@ark-ui/react"),x=require("next/image"),v=require("next/link"),b=require("react"),t=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const c=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const j=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const p=require("../../icons/ArrowNarrowUpRightIcon.js"),d=require("../../icons/ChevronLeftIcon.js"),n=require("../../icons/ChevronRightIcon.js"),q=require("../../icons/Trophy01Icon.js"),C=require("../../icons/StarIcon.js"),I=require("../../images/close-chest.png.js"),z=require("../../images/first-place.png.js"),P=require("../../images/leaderboard.png.js"),M=require("../../images/open-chest.png.js"),i=require("./JackpotCounterItem.module.css.js");function L({jackpot:r,className:a,viewAllUrl:h}){const o=j.useLocaleInfo(),l=r.drawing,y=l?r.maximumJackpotPoolLimit:r.pool,f=b.useCallback(({isFirst:m})=>{const s=l?d.ChevronLeftIcon:n.ChevronRightIcon,w=m?l?"text-error-600":"text-success-800":"text-brand-300";return e.jsx(s,{className:t.twMerge("scale-400 lg:scale-250 min-w-2.5 lg:min-w-4",w)})},[l]),N=b.useMemo(()=>Array.from({length:40},(m,s)=>e.jsx(f,{isFirst:s===0},s)),[f]);return e.jsxs("div",{className:t.twMerge("bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-4 lg:p-5",a),children:[e.jsxs("div",{className:"z-1 relative flex flex-1 flex-col",children:[e.jsx("div",{className:"flex h-full flex-col justify-between",children:e.jsx("div",{className:"flex w-full justify-between",children:e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxs("div",{className:"relative flex w-full justify-between",children:[e.jsxs("div",{children:[l?e.jsxs("div",{className:"border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx("span",{className:"full bg-utility-success-500 size-1.5 animate-pulse rounded"}),"Paying Out"]}):e.jsxs("div",{className:"border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(p.ArrowNarrowUpRightIcon,{className:"text-utility-blue-500 size-3.5"}),"Accumulating"]}),e.jsx("div",{className:"text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl",children:r.name}),e.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:c.formatNumber(y,{currency:o.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]}),e.jsx("div",{className:"z-1 bottom-[-60] right-0 block lg:absolute",children:e.jsx(x,{width:150,height:150,src:l?M:I,alt:"closeChest",quality:100,className:"h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2"})})]}),e.jsxs("div",{className:"bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex",children:[e.jsx(x,{width:66,height:87,src:z,alt:"closeChest",className:"size-full h-auto w-[66px] mix-blend-luminosity"}),e.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[e.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:[e.jsx(q.Trophy01Icon,{className:"text-utility-brand-600 size-3.5"}),"Top Payout"]}),e.jsx("div",{className:"font-semibold",children:"No winners yet"}),e.jsx("div",{className:"text-text-secondary-700 text-xs",children:"You could be the first to win the tournament!"})]})]})]})})}),e.jsxs("div",{className:"mt-3 lg:mt-4",children:[e.jsxs("div",{className:"mb-1 flex justify-between",children:[e.jsx("div",{className:"text-text-primary-900 text-xs font-semibold",children:c.formatNumber(0,{currency:o.currency.code,compact:!0})}),e.jsxs("div",{className:"relative flex items-center justify-end gap-1.5",children:[l?e.jsxs("div",{className:"flex w-6 items-center",children:[e.jsx("div",{className:t.twMerge("absolute left-0",i.default["animate-arrow-red-flash-1"]),children:e.jsx(d.ChevronLeftIcon,{className:"size-4.5"})}),e.jsx("div",{className:t.twMerge("absolute left-1.5",i.default["animate-arrow-red-flash-2"]),children:e.jsx(d.ChevronLeftIcon,{className:"size-4.5"})}),e.jsx("div",{className:t.twMerge("absolute left-3",i.default["animate-arrow-red-flash-3"]),children:e.jsx(d.ChevronLeftIcon,{className:"size-4.5"})})]}):e.jsxs("div",{className:"flex w-6 items-center",children:[e.jsx("div",{className:t.twMerge("absolute left-0",i.default["animate-arrow-green-flash-1"]),children:e.jsx(n.ChevronRightIcon,{className:"size-4.5"})}),e.jsx("div",{className:t.twMerge("absolute left-1.5",i.default["animate-arrow-green-flash-2"]),children:e.jsx(n.ChevronRightIcon,{className:"size-4.5"})}),e.jsx("div",{className:t.twMerge("absolute left-3",i.default["animate-arrow-green-flash-3"]),children:e.jsx(n.ChevronRightIcon,{className:"size-4.5"})})]}),e.jsx("div",{className:"text-text-primary-900 text-xs font-semibold",children:c.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:o.currency.code,compact:!0})})]})]}),e.jsx(u.Progress.Root,{className:"bg-bg-primary h-2 w-full rounded-full lg:h-4",max:100,value:R(Number(r.pool),Number(r.maximumJackpotPoolLimit)),children:e.jsx(u.Progress.Track,{className:"bg-bg-primary h-full overflow-hidden rounded-full",children:e.jsx(u.Progress.Range,{className:"bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5",children:e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5","aria-hidden":"true",children:N})})})}),e.jsx("div",{className:"mt-1 block text-start text-2xs lg:hidden",children:l?`The pot has hit ${c.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:o.currency.code,compact:!0})} Play now for your chance to win big! π₯`:A(Number(r==null?void 0:r.pool)??0,Number(r==null?void 0:r.maximumJackpotPoolLimit)??0)})]})]}),e.jsxs("div",{className:"z-1 hidden flex-1 space-y-4 lg:block",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(x,{width:24,height:24,src:P,quality:100,alt:"leaderboardIcon",className:"size-full h-auto w-6"}),e.jsx("div",{className:"text-text-primary-900 text-lg font-semibold",children:"Starting soon!"})]}),e.jsxs(v,{className:"text-button-tertiary-fg flex text-sm font-semibold",href:h??"/jackpots",children:["See details",e.jsx(n.ChevronRightIcon,{className:"size-5"})]})]}),e.jsx("div",{className:t.twMerge("max-h-[272px] overflow-y-scroll",i.default.scrollArea),children:e.jsx("div",{className:"border-gray-200 overflow-hidden rounded-xl",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium",children:[e.jsx("th",{className:"w-[52px]",children:"#"}),e.jsx("th",{children:"Player"}),e.jsx("th",{children:"Multiplier"}),e.jsx("th",{children:"Prize"})]})}),e.jsx("tbody",{children:Array.from({length:10}).map((m,s)=>e.jsxs("tr",{className:"bg-bg-primary text-sm text-text-secondary-700",children:[e.jsx("td",{className:"border-border-secondary h-12 w-[52px] border-t-2",children:s+1<6?e.jsxs("div",{className:"relative",children:[e.jsx(C.StarIcon,{className:t.twMerge("mx-auto size-6.5",g[s].starColor)}),e.jsx("span",{className:t.twMerge("absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",g[s].numberColor),children:s+1})]}):"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"})]},s))})]})})})]}),l&&e.jsx("div",{className:t.twMerge(i.default["light-rays"],"absolute right-0 top-0 rounded-2xl")})]})}const R=(r,a)=>a===0?0:r/a*100,A=(r,a)=>(a===0?0:r/a*100)<=90?"The jackpot is heating up! Keep playing to stay in the action and watch it grow!":"π₯ Itβs about to pop! Stay in the game for your shot at the prize!",g=[{starColor:"text-yellow-400",numberColor:"text-bg-primary"},{starColor:"text-utility-gray-700",numberColor:"text-bg-primary"},{starColor:"text-yellow-700",numberColor:"text-bg-primary"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"}];exports.JackpotCounterItem=L;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("@ark-ui/react"),g=require("next/image"),P=require("next/link"),j=require("react"),s=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");const c=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const I=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const z=require("../../client/hooks/useJackpotPayoutsQuery.js"),M=require("../../icons/ArrowNarrowUpRightIcon.js"),h=require("../../icons/ChevronLeftIcon.js"),d=require("../../icons/ChevronRightIcon.js"),v=require("../../icons/StarIcon.js"),w=require("../../icons/Trophy01Icon.js"),L=require("../../images/close-chest.png.js"),J=require("../../images/first-place.png.js"),R=require("../../images/leaderboard.png.js"),T=require("../../images/open-chest.png.js"),a=require("./JackpotCounterItem.module.css.js");function A({jackpot:r,className:i,viewAllUrl:m}){var p;const u=((p=z.useJackpotPayoutsQuery({first:30,filter:{jackpot:{equal:r.id}},sort:{cursor:"AMOUNT",order:"DESC"}}).data)==null?void 0:p.pages[0].edges.map(o=>o.node))??[],x=u[0]??[],n=I.useLocaleInfo(),l=r.drawing,q=l?r.maximumJackpotPoolLimit:r.pool,N=j.useCallback(({index:o})=>{const t=l?h.ChevronLeftIcon:d.ChevronRightIcon;return e.jsx(t,{className:s.twMerge("scale-400 lg:scale-250 text-brand-300 min-w-2.5 lg:min-w-4",l?a.default["animate-wave-color-error"]:a.default["animate-wave-color-success"]),style:{animationDelay:l?`${(40-o-1)*.1}s`:`${o*.1}s`}})},[l]),C=j.useMemo(()=>Array.from({length:40},(o,t)=>e.jsx(N,{isFirst:t===0,index:t},t)),[N]);return e.jsxs("div",{className:s.twMerge("bg-bg-tertiary border-border-primary relative flex shrink-0 rounded-2xl border p-3 text-center lg:gap-4 lg:p-5",i),children:[e.jsxs("div",{className:"z-1 relative flex flex-1 flex-col",children:[e.jsx("div",{className:"flex h-full flex-col justify-between",children:e.jsx("div",{className:"flex w-full justify-between",children:e.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxs("div",{className:"relative flex w-full justify-between",children:[e.jsxs("div",{children:[l?e.jsxs("div",{className:"border-utility-success-200 bg-utility-success-50 text-utility-success-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx("span",{className:"full bg-utility-success-500 size-1.5 animate-pulse rounded"}),"Paying Out"]}):e.jsxs("div",{className:"border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700 flex w-fit items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(M.ArrowNarrowUpRightIcon,{className:"text-utility-blue-500 size-3.5"}),"Accumulating"]}),e.jsx("div",{className:"text-text-primary-900 mt-1 text-left text-lg font-medium lg:mt-5 lg:text-2xl",children:r.name}),e.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:c.formatNumber(q,{currency:n.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]}),e.jsx("div",{className:"z-1 bottom-[-60] right-0 lg:absolute",children:e.jsx(g,{width:150,height:150,src:l?T:L,alt:"closeChest",quality:100,className:"h-25 w-25 lg:h-37.5 lg:w-37.5 size-full p-2"})})]}),x.amount?e.jsx("div",{children:e.jsxs("div",{className:"bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex",children:[e.jsx("div",{className:"border-yellow-400 relative h-18 w-18 rounded-full border",children:e.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"})}),e.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[e.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:[e.jsx(w.Trophy01Icon,{className:"text-utility-brand-600 size-3.5"}),"Top Payout"]}),e.jsx("div",{className:"font-semibold",children:y(x.member.name)}),e.jsx("div",{className:"text-brand-400 text-2xl",children:c.formatNumber(x.amount,{currency:n.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]})]})}):e.jsxs("div",{className:"bg-bg-primary relative mt-4 hidden w-full gap-4 rounded-lg p-4 lg:flex",children:[e.jsx(g,{width:66,height:87,src:J,alt:"closeChest",className:"size-full h-auto w-[66px] mix-blend-luminosity"}),e.jsxs("div",{className:"flex flex-col gap-1 text-left",children:[e.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:[e.jsx(w.Trophy01Icon,{className:"text-utility-brand-600 size-3.5"}),"Top Payout"]}),e.jsx("div",{className:"font-semibold",children:"No winners yet"}),e.jsx("div",{className:"text-text-secondary-700 text-xs",children:"You could be the first to win the tournament!"})]})]})]})})}),e.jsxs("div",{className:"mt-3 lg:mt-4",children:[e.jsxs("div",{className:"mb-1 flex justify-between",children:[e.jsx("div",{className:"text-text-primary-900 text-xs font-semibold",children:c.formatNumber(0,{currency:n.currency.code,compact:!0})}),e.jsxs("div",{className:"relative flex items-center justify-end gap-1.5",children:[l?e.jsxs("div",{className:"flex w-6 items-center",children:[e.jsx("div",{className:s.twMerge("absolute left-0",a.default["animate-arrow-red-flash-1"]),children:e.jsx(h.ChevronLeftIcon,{className:"size-4.5"})}),e.jsx("div",{className:s.twMerge("absolute left-1.5",a.default["animate-arrow-red-flash-2"]),children:e.jsx(h.ChevronLeftIcon,{className:"size-4.5"})}),e.jsx("div",{className:s.twMerge("absolute left-3",a.default["animate-arrow-red-flash-3"]),children:e.jsx(h.ChevronLeftIcon,{className:"size-4.5"})})]}):e.jsxs("div",{className:"flex w-6 items-center",children:[e.jsx("div",{className:s.twMerge("absolute left-0",a.default["animate-arrow-green-flash-1"]),children:e.jsx(d.ChevronRightIcon,{className:"size-4.5"})}),e.jsx("div",{className:s.twMerge("absolute left-1.5",a.default["animate-arrow-green-flash-2"]),children:e.jsx(d.ChevronRightIcon,{className:"size-4.5"})}),e.jsx("div",{className:s.twMerge("absolute left-3",a.default["animate-arrow-green-flash-3"]),children:e.jsx(d.ChevronRightIcon,{className:"size-4.5"})})]}),e.jsx("div",{className:"text-text-primary-900 text-xs font-semibold",children:c.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:n.currency.code,compact:!0})})]})]}),e.jsx(f.Progress.Root,{className:"bg-bg-primary h-2 w-full rounded-full lg:h-4",max:100,value:S(Number(r.pool),Number(r.maximumJackpotPoolLimit)),children:e.jsx(f.Progress.Track,{className:"bg-bg-primary h-full overflow-hidden rounded-full",children:e.jsx(f.Progress.Range,{className:"bg-brand-500 relative h-full overflow-hidden rounded-full pl-1.5",children:e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5","aria-hidden":"true",children:C})})})}),e.jsx("div",{className:"mt-1 block text-start text-2xs lg:hidden",children:l?`The pot has hit ${c.formatNumber(r==null?void 0:r.maximumJackpotPoolLimit,{currency:n.currency.code,compact:!0})} Play now for your chance to win big! π₯`:D(Number(r==null?void 0:r.pool)??0,Number(r==null?void 0:r.maximumJackpotPoolLimit)??0)})]})]}),e.jsxs("div",{className:"z-1 hidden flex-1 space-y-4 lg:block",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(g,{width:24,height:24,src:R,quality:100,alt:"leaderboardIcon",className:"size-full h-auto w-6"}),e.jsx("div",{className:"text-text-primary-900 text-lg font-semibold",children:u.length?"Leaderboard":"Starting soon!"})]}),e.jsxs(P,{className:"text-button-tertiary-fg flex text-sm font-semibold",href:m??"/jackpots",children:["See details",e.jsx(d.ChevronRightIcon,{className:"size-5"})]})]}),e.jsx("div",{className:s.twMerge("max-h-[272px] overflow-y-scroll",a.default.scrollArea),children:e.jsx("div",{className:"border-gray-200 overflow-hidden rounded-xl",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-bg-secondary text-text-tertiary-600 h-8 text-xs font-medium",children:[e.jsx("th",{className:"w-[52px]",children:"#"}),e.jsx("th",{children:"Player"}),e.jsx("th",{children:"Multiplier"}),e.jsx("th",{children:"Prize"})]})}),e.jsx("tbody",{children:u.length?e.jsx(e.Fragment,{children:u.map((o,t)=>e.jsxs("tr",{className:"bg-bg-primary text-text-secondary-700 text-sm",children:[e.jsx("td",{className:"border-border-secondary h-12 w-[52px] border-t-2",children:t+1<6?e.jsxs("div",{className:"relative",children:[e.jsx(v.StarIcon,{className:s.twMerge("mx-auto size-6.5",b[t].starColor)}),e.jsx("span",{className:s.twMerge("absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",b[t].numberColor),children:t+1})]}):t+1}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:y(o.member.name)}),e.jsxs("td",{className:"border-border-secondary h-12 border-t-2",children:[o.multiplier,"x"]}),e.jsx("td",{className:"border-border-secondary text-brand-400 h-12 border-t-2",children:c.formatNumber(x.amount,{currency:n.currency.code,minDecimalPlaces:2,maxDecimalPlaces:2})})]},t))}):e.jsx(e.Fragment,{children:Array.from({length:10}).map((o,t)=>e.jsxs("tr",{className:"bg-bg-primary text-text-secondary-700 text-sm",children:[e.jsx("td",{className:"border-border-secondary h-12 w-[52px] border-t-2",children:t+1<6?e.jsxs("div",{className:"relative",children:[e.jsx(v.StarIcon,{className:s.twMerge("mx-auto size-6.5",b[t].starColor)}),e.jsx("span",{className:s.twMerge("absolute inset-0 mt-0.5 flex items-center justify-center text-2xs font-bold",b[t].numberColor),children:t+1})]}):t+1}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"}),e.jsx("td",{className:"border-border-secondary h-12 border-t-2",children:"-"})]},t))})})]})})})]}),l&&e.jsx("div",{className:s.twMerge(a.default["light-rays"],"absolute right-0 top-0 rounded-2xl [--light-rays-top:25%] lg:[--light-rays-top:150px]")})]})}function y(r){if(r.length<=7)return"*".repeat(r.length);const i=r.slice(0,3),m="*".repeat(7);return i+m}const S=(r,i)=>i===0?0:r/i*100,D=(r,i)=>(i===0?0:r/i*100)<=90?"The jackpot is heating up! Keep playing to stay in the action and watch it grow!":"π₯ Itβs about to pop! Stay in the game for your shot at the prize!",b=[{starColor:"text-yellow-400",numberColor:"text-bg-primary"},{starColor:"text-utility-gray-700",numberColor:"text-bg-primary"},{starColor:"text-yellow-700",numberColor:"text-bg-primary"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"},{starColor:"text-bg-quaternary",numberColor:"text-text-primary-900"}];exports.JackpotCounterItem=A;exports.maskName=y;
|