@opexa/portal-components 0.0.99 → 0.0.100
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/useAccountQuery.js +3 -3
- package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +3 -2
- package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +3 -3
- package/dist/client/hooks/useAvailableQuestsCountQuery.js +3 -3
- package/dist/client/hooks/useAvailableQuestsQuery.js +3 -3
- package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +3 -3
- package/dist/client/hooks/useBonusQuery.js +3 -3
- package/dist/client/hooks/useBonusesCountQuery.js +3 -3
- package/dist/client/hooks/useBonusesQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusesCountQuery.js +3 -3
- package/dist/client/hooks/useCashbackBonusesQuery.js +3 -3
- package/dist/client/hooks/useCashbackQuery.js +2 -2
- package/dist/client/hooks/useCashbacksQuery.js +2 -2
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -3
- package/dist/client/hooks/useClaimCashbackBonusMutation.js +4 -3
- package/dist/client/hooks/useClaimSpotBonusMutation.js +4 -3
- package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateGameSessionMutation.js +5 -3
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -3
- package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -3
- package/dist/client/hooks/useDepositQuery.js +3 -3
- package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +3 -3
- package/dist/client/hooks/useDepositsCountQuery.js +3 -3
- package/dist/client/hooks/useEndGameSessionMutation.js +4 -3
- package/dist/client/hooks/useFavoriteGamesQuery.js +3 -3
- package/dist/client/hooks/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +2 -2
- package/dist/client/hooks/useGlobalStore.d.ts +3 -0
- package/dist/client/hooks/useGlobalStore.js +41 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +3 -3
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -5
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
- package/dist/client/hooks/useJackpotsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsCountQuery.js +2 -2
- package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +2 -2
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
- package/dist/client/hooks/useLocaleInfo.js +1 -1
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +4 -3
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +4 -3
- package/dist/client/hooks/useMemberVerificationQuery.js +3 -3
- package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
- package/dist/client/hooks/useMessagesQuery.js +3 -3
- package/dist/client/hooks/usePaymentSettingsQuery.js +3 -3
- package/dist/client/hooks/usePlatformQuery.js +2 -2
- package/dist/client/hooks/useProfileCompletionQuery.js +3 -3
- package/dist/client/hooks/usePromoQuery.js +2 -2
- package/dist/client/hooks/usePromosQuery.js +2 -2
- package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
- package/dist/client/hooks/useSessionQuery.js +4 -4
- package/dist/client/hooks/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +3 -2
- package/dist/client/hooks/useSignOutMutation.js +3 -2
- package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +2 -2
- package/dist/client/hooks/useTopWinsQuery.js +2 -2
- package/dist/client/hooks/useTournamentsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsCountQuery.js +2 -2
- package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +2 -2
- package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +3 -3
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +4 -3
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -3
- package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
- package/dist/client/hooks/useUpdateAccountMutation.js +4 -3
- package/dist/client/hooks/useWalletQuery.js +3 -3
- package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -3
- package/dist/client/services/authenticate.d.ts +1 -1
- package/dist/client/services/signIn.d.ts +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -1
- package/dist/client/utils/toaster.d.ts +1 -1
- package/dist/client/utils/toaster.js +1 -1
- package/dist/components/Account/Account.d.ts +3 -23
- package/dist/components/Account/Account.js +10 -115
- package/dist/components/Account/Account.lazy.d.ts +23 -0
- package/dist/components/Account/Account.lazy.js +138 -0
- package/dist/components/Account/AccountTrigger.js +2 -2
- package/dist/components/AccountInfo/AccountInfo.js +10 -4
- package/dist/components/AccountSecurity/AccountSecurity.js +13 -4
- package/dist/components/AccountVerification/AccountVerification.js +12 -3
- package/dist/components/Banner/Banner.d.ts +2 -2
- package/dist/components/Banner/Banner.js +2 -2
- package/dist/components/BetRecords/BetRecords.client.d.ts +7 -0
- package/dist/components/BetRecords/BetRecords.client.js +189 -0
- package/dist/components/BetRecords/BetRecords.d.ts +3 -7
- package/dist/components/BetRecords/BetRecords.js +8 -174
- package/dist/components/Bonus/Bonus.client.d.ts +9 -1
- package/dist/components/Bonus/Bonus.client.js +13 -4
- package/dist/components/Bonus/Bonus.d.ts +2 -9
- package/dist/components/Bonus/Bonus.js +22 -6
- package/dist/components/Bonuses/Bonuses.client.d.ts +9 -1
- package/dist/components/Bonuses/Bonuses.client.js +14 -4
- package/dist/components/Bonuses/Bonuses.d.ts +2 -9
- package/dist/components/Bonuses/Bonuses.js +3 -2
- package/dist/components/Bonuses/BonusesTrigger.js +7 -6
- package/dist/components/Cashback/Cashback.client.d.ts +6 -1
- package/dist/components/Cashback/Cashback.client.js +7 -3
- package/dist/components/Cashback/Cashback.d.ts +2 -6
- package/dist/components/Cashback/Cashback.js +11 -6
- package/dist/components/DepositWithdrawal/AmountChoices.js +5 -3
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +5 -3
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -3
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +15 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +10 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +2 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +5 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +4 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +10 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +2 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +10 -27
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +36 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +5 -2
- package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +17 -4
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +18 -4
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +15 -4
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +17 -4
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +11 -4
- package/dist/components/Disclaimer/DisclaimerV1.js +2 -1
- package/dist/components/Disclaimer/DisclaimerV2.js +2 -1
- package/dist/components/Disclaimer/ResponsibleGaming.js +2 -1
- package/dist/components/Disclaimer/TermsOfUse.js +3 -2
- package/dist/components/Empty.d.ts +1 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +5 -1
- package/dist/components/FavoriteGames/FavoriteGames.client.js +8 -4
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +2 -5
- package/dist/components/FavoriteGames/FavoriteGames.js +2 -2
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
- package/dist/components/GameLaunch/GameLaunch.js +10 -71
- package/dist/components/GameLaunch/GameLaunch.lazy.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.lazy.js +90 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -2
- package/dist/components/GameProviders/GameProvidersCarousel.js +5 -3
- package/dist/components/GameProviders/GameProvidersList.js +4 -3
- package/dist/components/Games/Game.js +14 -5
- package/dist/components/Games/GamesCarousel.client.d.ts +24 -1
- package/dist/components/Games/GamesCarousel.client.js +7 -3
- package/dist/components/Games/GamesCarousel.d.ts +2 -23
- package/dist/components/Games/GamesCarousel.js +2 -2
- package/dist/components/Games/GamesContext.js +1 -1
- package/dist/components/Games/GamesList.client.d.ts +19 -1
- package/dist/components/Games/GamesList.client.js +6 -3
- package/dist/components/Games/GamesList.d.ts +2 -18
- package/dist/components/Games/GamesList.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +10 -4
- package/dist/components/Jackpots/Jackpots.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +6 -4
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +9 -3
- package/dist/components/Jackpots/JackpotsList/JackpotsList.js +2 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +1 -1
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +8 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +3 -2
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +12 -3
- package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +2 -2
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +1 -1
- package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +3 -2
- package/dist/components/KYC/Header.js +4 -2
- package/dist/components/KYC/Indicator.js +2 -2
- package/dist/components/KYC/KYC.d.ts +1 -1
- package/dist/components/KYC/KYC.js +10 -22
- package/dist/components/KYC/KYC.lazy.d.ts +1 -0
- package/dist/components/KYC/KYC.lazy.js +26 -0
- package/dist/components/KYC/KYCContext.js +1 -1
- package/dist/components/KYC/KYCTrigger.js +1 -1
- package/dist/components/KYC/Step1.js +3 -2
- package/dist/components/KYC/Step2.js +3 -2
- package/dist/components/KYC/Step3.js +4 -2
- package/dist/components/KYC/Step4.js +3 -2
- package/dist/components/Messages/Message.js +3 -1
- package/dist/components/Messages/MessageContext.js +1 -1
- package/dist/components/Messages/MessagePopup.js +3 -3
- package/dist/components/Messages/MessageTrigger.js +2 -1
- package/dist/components/Messages/Messages.d.ts +3 -13
- package/dist/components/Messages/Messages.js +10 -35
- package/dist/components/Messages/Messages.lazy.d.ts +13 -0
- package/dist/components/Messages/Messages.lazy.js +48 -0
- package/dist/components/Messages/MessagesTrigger.js +7 -4
- package/dist/components/Messages/utils.d.ts +1 -1
- package/dist/components/Messages/utils.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +8 -5
- package/dist/components/PortalProvider/Providers.js +1 -1
- package/dist/components/PortalProvider/Snackbar.js +4 -3
- package/dist/components/Promo/Promo.client.d.ts +6 -1
- package/dist/components/Promo/Promo.client.js +7 -3
- package/dist/components/Promo/Promo.d.ts +2 -6
- package/dist/components/Promo/Promo.js +11 -6
- package/dist/components/Promos/Cashback.js +3 -2
- package/dist/components/Promos/Promo.js +3 -2
- package/dist/components/Promos/Promos.js +3 -2
- package/dist/components/Promos/PromosCarousel.js +7 -3
- package/dist/components/Promos/PromosGrid.js +2 -1
- package/dist/components/Protected/Protected.d.ts +1 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -2
- package/dist/components/Quests/Quests.client.d.ts +5 -1
- package/dist/components/Quests/Quests.client.js +2 -2
- package/dist/components/Quests/Quests.d.ts +2 -5
- package/dist/components/Quests/Quests.js +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -2
- package/dist/components/Search/Search.d.ts +3 -21
- package/dist/components/Search/Search.js +10 -64
- package/dist/components/Search/Search.lazy.d.ts +20 -0
- package/dist/components/Search/Search.lazy.js +78 -0
- package/dist/components/Search/SearchTrigger.js +1 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +16 -5
- package/dist/components/SignIn/NameAndPasswordSignIn.js +16 -7
- package/dist/components/SignIn/SignIn.d.ts +3 -7
- package/dist/components/SignIn/SignIn.js +10 -14
- package/dist/components/SignIn/SignIn.lazy.d.ts +7 -0
- package/dist/components/SignIn/SignIn.lazy.js +18 -0
- package/dist/components/SignIn/SignInContext.js +1 -1
- package/dist/components/SignIn/SignInMethod.js +1 -1
- package/dist/components/SignIn/SignInTrigger.js +1 -1
- package/dist/components/SignUp/SignUp.d.ts +3 -7
- package/dist/components/SignUp/SignUp.js +10 -12
- package/dist/components/SignUp/SignUp.lazy.d.ts +7 -0
- package/dist/components/SignUp/SignUp.lazy.js +16 -0
- package/dist/components/SignUp/SignUpForm.js +15 -5
- package/dist/components/SignUp/SignUpTrigger.js +1 -1
- package/dist/components/TopWins/TopWins.client.d.ts +5 -1
- package/dist/components/TopWins/TopWins.client.js +8 -3
- package/dist/components/TopWins/TopWins.d.ts +2 -5
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/Tournaments/Tournaments.js +1 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +6 -4
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +1 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +8 -3
- package/dist/components/Tournaments/TournamentsList/TournamentsList.js +2 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +1 -1
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +7 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +3 -2
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +10 -3
- package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +3 -2
- package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +1 -1
- package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.js +12 -4
- package/dist/components/TransactionRecords/TableFilters.js +9 -4
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.js +7 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +11 -4
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +12 -4
- package/dist/constants/endpoints.js +2 -2
- package/dist/handlers.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/server/services/authenticate.d.ts +1 -1
- package/dist/server/services/authenticate.js +1 -1
- package/dist/server/services/signIn.d.ts +1 -1
- package/dist/server/services/signIn.js +1 -1
- package/dist/server/services/signOut.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +3 -2
- package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
- package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
- package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
- package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchBonusQuery.js +3 -2
- package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
- package/dist/server/utils/prefetchBonusesQuery.js +3 -2
- package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
- package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +4 -3
- package/dist/server/utils/prefetchCashbackBonusesQuery.js +4 -3
- package/dist/server/utils/prefetchCashbackQuery.js +3 -2
- package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
- package/dist/server/utils/prefetchDepositQuery.js +3 -2
- package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +4 -3
- package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
- package/dist/server/utils/prefetchGamesQuery.js +3 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
- package/dist/server/utils/prefetchJackpotsCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
- package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
- package/dist/server/utils/prefetchPlatformQuery.js +3 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
- package/dist/server/utils/prefetchPromoQuery.js +3 -2
- package/dist/server/utils/prefetchPromosQuery.js +3 -2
- package/dist/server/utils/prefetchSessionQuery.js +2 -1
- package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
- package/dist/server/utils/prefetchTournamentsCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
- package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
- package/dist/server/utils/prefetchWalletQuery.js +3 -2
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
- package/dist/services/account.d.ts +341 -0
- package/dist/services/account.js +233 -0
- package/dist/services/auth.d.ts +80 -0
- package/dist/services/auth.js +152 -0
- package/dist/services/cmsPortal.d.ts +43 -0
- package/dist/services/cmsPortal.js +148 -0
- package/dist/services/file.d.ts +33 -0
- package/dist/services/file.js +18 -0
- package/dist/services/game.d.ts +44 -0
- package/dist/services/game.js +33 -0
- package/dist/services/portal.d.ts +37 -0
- package/dist/services/portal.js +44 -0
- package/dist/services/report.d.ts +223 -0
- package/dist/services/report.js +72 -0
- package/dist/services/trigger.d.ts +94 -0
- package/dist/services/trigger.js +88 -0
- package/dist/services/wallet.d.ts +475 -0
- package/dist/services/wallet.js +365 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Button/Button.js +2 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
- package/dist/ui/Collapsible/Collapsible.js +1 -1
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/Combobox/combobox.recipe.js +1 -1
- package/dist/ui/DatePicker/DatePicker.d.ts +336 -336
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/Dialog/Dialog.d.ts +154 -154
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/IconButton/IconButton.js +2 -1
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/PasswordInput.js +1 -1
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/Popover/Popover.d.ts +121 -121
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/popover.recipe.d.ts +11 -11
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Presence.d.ts +1 -1
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/Progress/progress.recipe.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/utils/getQueryClient.js +2 -2
- package/dist/utils/onMobileDevice.d.ts +5 -0
- package/dist/utils/onMobileDevice.js +9 -0
- package/dist/utils/queryKeys.d.ts +4 -1
- package/package.json +29 -30
- package/dist/client/hooks/index.d.ts +0 -70
- package/dist/client/hooks/index.js +0 -70
- package/dist/client/services/index.d.ts +0 -4
- package/dist/client/services/index.js +0 -4
- package/dist/client/utils/index.d.ts +0 -3
- package/dist/client/utils/index.js +0 -3
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
- package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
- package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
- package/dist/components/JackpotCounter/index.d.ts +0 -1
- package/dist/components/JackpotCounter/index.js +0 -1
- package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
- package/dist/components/Jackpots/JackpotDesktop.js +0 -45
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
- package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
- package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
- package/dist/components/Jackpots/JackpotMobile.js +0 -46
- package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
- package/dist/components/Jackpots/JackpotRules.js +0 -11
- package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
- package/dist/components/Jackpots/Jackpots.client.js +0 -29
- package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsContext.js +0 -3
- package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
- package/dist/components/Jackpots/useJackpotData.js +0 -92
- package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
- package/dist/components/PortalProvider/WebVitals.js +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
- package/dist/components/TournamentCounter/index.d.ts +0 -1
- package/dist/components/TournamentCounter/index.js +0 -1
- package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
- package/dist/components/Tournaments/TournamentDesktop.js +0 -57
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
- package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
- package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
- package/dist/components/Tournaments/TournamentMobile.js +0 -55
- package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
- package/dist/components/Tournaments/TournamentRules.js +0 -11
- package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
- package/dist/components/Tournaments/Tournaments.client.js +0 -20
- package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
- package/dist/components/Tournaments/TournamentsContext.js +0 -3
- package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
- package/dist/components/Tournaments/useTournamentData.js +0 -71
- package/dist/components/index.d.ts +0 -31
- package/dist/components/index.js +0 -31
- package/dist/icons/index.d.ts +0 -66
- package/dist/icons/index.js +0 -66
- package/dist/server/services/index.d.ts +0 -4
- package/dist/server/services/index.js +0 -4
- package/dist/server/utils/index.d.ts +0 -34
- package/dist/server/utils/index.js +0 -34
- package/dist/services/ObjectId.d.ts +0 -10
- package/dist/services/ObjectId.js +0 -72
- package/dist/services/index.d.ts +0 -13
- package/dist/services/index.js +0 -13
- package/dist/ui/index.d.ts +0 -26
- package/dist/ui/index.js +0 -26
- package/dist/utils/index.d.ts +0 -18
- package/dist/utils/index.js +0 -18
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import useEmblaCarousel from 'embla-carousel-react';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
7
|
-
import { ArrowLeftIcon, ArrowRightIcon } from '../../icons/index.js';
|
|
8
|
-
import { Button } from '../../ui/index.js';
|
|
9
|
-
export function TournamentGameProviders({ gameProviders, }) {
|
|
10
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
11
|
-
align: 'start',
|
|
12
|
-
slidesToScroll: 1,
|
|
13
|
-
});
|
|
14
|
-
const scrollPrev = useCallback(() => {
|
|
15
|
-
if (emblaApi)
|
|
16
|
-
emblaApi.scrollPrev();
|
|
17
|
-
}, [emblaApi]);
|
|
18
|
-
const scrollNext = useCallback(() => {
|
|
19
|
-
if (emblaApi)
|
|
20
|
-
emblaApi.scrollNext();
|
|
21
|
-
}, [emblaApi]);
|
|
22
|
-
const [canScrollPrev, setCanScrollPrev] = useState(false);
|
|
23
|
-
const [canScrollNext, setCanScrollNext] = useState(false);
|
|
24
|
-
const onSelect = useCallback(() => {
|
|
25
|
-
if (!emblaApi)
|
|
26
|
-
return;
|
|
27
|
-
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
28
|
-
setCanScrollNext(emblaApi.canScrollNext());
|
|
29
|
-
}, [emblaApi]);
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (!emblaApi)
|
|
32
|
-
return;
|
|
33
|
-
onSelect();
|
|
34
|
-
emblaApi.on('select', onSelect);
|
|
35
|
-
emblaApi.on('reInit', onSelect);
|
|
36
|
-
}, [emblaApi, onSelect]);
|
|
37
|
-
return (_jsxs("div", { className: "p-4 pb-8", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "text-text-primary-900 text-lg font-semibold", children: "Tournament Game Providers" }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: "rounded-l-none", "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] }), _jsx("div", { className: "relative mt-3 overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-3.5", children: gameProviders.map((provider, i) => (_jsx(Link, { href: `/${provider.slug}`, className: "bg-gray-800 lg:bg-bg-primary-900 min-w-27.5 rounded-md", children: _jsx(Image, { src: provider.logo, alt: "provider", className: "size-full" }) }, i))) }) })] }));
|
|
38
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function TournamentMobile(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,55 +0,0 @@
|
|
|
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 { TournamentGameProviders } from './TournamentGameProviders.js';
|
|
11
|
-
import { TournamentRules } from './TournamentRules.js';
|
|
12
|
-
import { useTournamentContext } from './TournamentsContext.js';
|
|
13
|
-
import { useTournamentData } from './useTournamentData.js';
|
|
14
|
-
export function TournamentMobile() {
|
|
15
|
-
const tournament = useTournamentContext();
|
|
16
|
-
const [isDetailsVisible, setIsDetailsVisible] = useState(false);
|
|
17
|
-
const { prizeAmountsByRank, timeParts, tournamentReward, filteredGameProviders, localeInfo, } = useTournamentData();
|
|
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(TournamentRules, {})] }), _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(TournamentGameProviders, { 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
|
-
];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Portal } from '@ark-ui/react';
|
|
4
|
-
import { XIcon } from '../../icons/index.js';
|
|
5
|
-
import { Flag06Icon } from '../../icons/Flag06Icon.js';
|
|
6
|
-
import { Dialog } from '../../ui/index.js';
|
|
7
|
-
import { useTournamentContext } from './TournamentsContext.js';
|
|
8
|
-
export function TournamentRules(props) {
|
|
9
|
-
const tournament = useTournamentContext();
|
|
10
|
-
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" }) })] }) })] })] }));
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import { useTournamentsQuery } from '../../client/hooks/index.js';
|
|
5
|
-
import closeChest from '../../images/close-chest.png';
|
|
6
|
-
import { TournamentDesktop } from './TournamentDesktop.js';
|
|
7
|
-
import { TournamentMobile } from './TournamentMobile.js';
|
|
8
|
-
import { TournamentContext, TournamentsPropsContext, } from './TournamentsContext.js';
|
|
9
|
-
export function Tournaments__client(props) {
|
|
10
|
-
const tournamentsQuery = useTournamentsQuery({
|
|
11
|
-
first: 100,
|
|
12
|
-
filter: {
|
|
13
|
-
status: {
|
|
14
|
-
equal: 'ACTIVE',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
const tournaments = tournamentsQuery.data?.pages[0].edges.map((edge) => edge.node) ?? [];
|
|
19
|
-
return (_jsx(TournamentsPropsContext, { value: props, children: _jsxs("div", { className: props.className, children: [_jsx("div", { className: "mb-3 text-lg font-semibold lg:mb-4.5", children: props.heading ?? 'Tournaments' }), tournaments.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden flex-col gap-6 lg:flex", children: tournaments.map((tournament) => (_jsx(TournamentContext, { value: tournament, children: _jsx(TournamentDesktop, {}) }, tournament.id))) }), _jsx("div", { className: "flex flex-col gap-6 lg:hidden", children: tournaments.map((tournament) => (_jsx(TournamentContext, { value: tournament, children: _jsx(TournamentMobile, {}) }, tournament.id))) })] })) : (_jsxs("div", { className: "mt-11 flex flex-col items-center justify-center", children: [_jsx(Image, { width: 100, height: 100, src: closeChest, alt: "closeChest", quality: 100, className: "h-29.5 w-29.5 lg:h-25 lg:w-25 size-full mix-blend-luminosity" }), _jsx("div", { className: "text-text-primary-900 mt-4 text-base font-semibold", children: props.heading ?? 'Tournaments' }), _jsxs("div", { className: "text-text-tertiary-600 mt-1 text-center text-sm", children: ["No ", props.heading?.toLocaleLowerCase() ?? 'tournaments', " are running at the moment. ", _jsx("br", {}), "Please check back later!"] })] }))] }) }));
|
|
20
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Tournament } from '../../types';
|
|
2
|
-
import type { TournamentsProps } from './Tournaments';
|
|
3
|
-
export declare const TournamentsPropsContext: import("react").Context<TournamentsProps>, useTournamentsPropsContext: () => TournamentsProps;
|
|
4
|
-
export declare const TournamentContext: import("react").Context<Tournament>, useTournamentContext: () => Tournament;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function useTournamentData(): {
|
|
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
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { pick } from 'lodash-es';
|
|
2
|
-
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
4
|
-
import { GAME_PROVIDER_DATA } from '../../constants/index.js';
|
|
5
|
-
import { useTournamentContext, useTournamentsPropsContext, } from './TournamentsContext.js';
|
|
6
|
-
export function useTournamentData() {
|
|
7
|
-
const tournamentsProps = useTournamentsPropsContext();
|
|
8
|
-
const tournament = useTournamentContext();
|
|
9
|
-
const gameProviders = tournamentsProps.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 = React.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
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './AccountInfo';
|
|
3
|
-
export * from './AccountSecurity';
|
|
4
|
-
export * from './AccountVerification';
|
|
5
|
-
export * from './Banner';
|
|
6
|
-
export * from './BetRecords';
|
|
7
|
-
export * from './Bonus';
|
|
8
|
-
export * from './Bonuses';
|
|
9
|
-
export * from './Cashback';
|
|
10
|
-
export * from './DepositWithdrawal';
|
|
11
|
-
export * from './Disclaimer';
|
|
12
|
-
export * from './FavoriteGames';
|
|
13
|
-
export * from './GameLaunch';
|
|
14
|
-
export * from './GameProviders';
|
|
15
|
-
export * from './Games';
|
|
16
|
-
export * from './GamesSearch';
|
|
17
|
-
export * from './Jackpots';
|
|
18
|
-
export * from './KYC';
|
|
19
|
-
export * from './Marquee';
|
|
20
|
-
export * from './Messages';
|
|
21
|
-
export * from './PortalProvider';
|
|
22
|
-
export * from './Promo';
|
|
23
|
-
export * from './Promos';
|
|
24
|
-
export * from './Protected';
|
|
25
|
-
export * from './Quests';
|
|
26
|
-
export * from './Search';
|
|
27
|
-
export * from './SignIn';
|
|
28
|
-
export * from './SignUp';
|
|
29
|
-
export * from './TopWins';
|
|
30
|
-
export * from './Tournaments';
|
|
31
|
-
export * from './TransactionRecords';
|
package/dist/components/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './Account/index.js';
|
|
2
|
-
export * from './AccountInfo/index.js';
|
|
3
|
-
export * from './AccountSecurity/index.js';
|
|
4
|
-
export * from './AccountVerification/index.js';
|
|
5
|
-
export * from './Banner/index.js';
|
|
6
|
-
export * from './BetRecords/index.js';
|
|
7
|
-
export * from './Bonus/index.js';
|
|
8
|
-
export * from './Bonuses/index.js';
|
|
9
|
-
export * from './Cashback/index.js';
|
|
10
|
-
export * from './DepositWithdrawal/index.js';
|
|
11
|
-
export * from './Disclaimer/index.js';
|
|
12
|
-
export * from './FavoriteGames/index.js';
|
|
13
|
-
export * from './GameLaunch/index.js';
|
|
14
|
-
export * from './GameProviders/index.js';
|
|
15
|
-
export * from './Games/index.js';
|
|
16
|
-
export * from './GamesSearch/index.js';
|
|
17
|
-
export * from './Jackpots/index.js';
|
|
18
|
-
export * from './KYC/index.js';
|
|
19
|
-
export * from './Marquee/index.js';
|
|
20
|
-
export * from './Messages/index.js';
|
|
21
|
-
export * from './PortalProvider/index.js';
|
|
22
|
-
export * from './Promo/index.js';
|
|
23
|
-
export * from './Promos/index.js';
|
|
24
|
-
export * from './Protected/index.js';
|
|
25
|
-
export * from './Quests/index.js';
|
|
26
|
-
export * from './Search/index.js';
|
|
27
|
-
export * from './SignIn/index.js';
|
|
28
|
-
export * from './SignUp/index.js';
|
|
29
|
-
export * from './TopWins/index.js';
|
|
30
|
-
export * from './Tournaments/index.js';
|
|
31
|
-
export * from './TransactionRecords/index.js';
|
package/dist/icons/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export * from './AlertCircleIcon';
|
|
2
|
-
export * from './AlertTriangle';
|
|
3
|
-
export * from './Announcement01Icon';
|
|
4
|
-
export * from './ArrowLeftIcon';
|
|
5
|
-
export * from './ArrowNarrowDownIcon';
|
|
6
|
-
export * from './ArrowNarrowUpIcon';
|
|
7
|
-
export * from './ArrowNarrowUpRightIcon';
|
|
8
|
-
export * from './ArrowRightIcon';
|
|
9
|
-
export * from './Award01Icon';
|
|
10
|
-
export * from './Award02Icon';
|
|
11
|
-
export * from './BankIcon';
|
|
12
|
-
export * from './Bell01Icon';
|
|
13
|
-
export * from './BellRingIcon';
|
|
14
|
-
export * from './CalendarIcon';
|
|
15
|
-
export * from './Camera01Icon';
|
|
16
|
-
export * from './CheckCircleBrokenIcon';
|
|
17
|
-
export * from './CheckCircleIcon';
|
|
18
|
-
export * from './CheckIcon';
|
|
19
|
-
export * from './CheckVerified02Icon';
|
|
20
|
-
export * from './ChevronDownIcon';
|
|
21
|
-
export * from './ChevronLeftIcon';
|
|
22
|
-
export * from './ChevronRightIcon';
|
|
23
|
-
export * from './ChevronUpIcon';
|
|
24
|
-
export * from './ClockStopWatchIcon';
|
|
25
|
-
export * from './CoinsHandIcon';
|
|
26
|
-
export * from './CoinsStacked02Icon';
|
|
27
|
-
export * from './CoinsSwap02Icon';
|
|
28
|
-
export * from './CreditCard02Icon';
|
|
29
|
-
export * from './CreditCardCheckIcon';
|
|
30
|
-
export * from './Diamond01Icon';
|
|
31
|
-
export * from './Expand03Icon';
|
|
32
|
-
export * from './EyeIcon';
|
|
33
|
-
export * from './EyeOffIcon';
|
|
34
|
-
export * from './FacebookIcon';
|
|
35
|
-
export * from './FaceIdIcon';
|
|
36
|
-
export * from './File02Icon';
|
|
37
|
-
export * from './FileCheck02Icon';
|
|
38
|
-
export * from './FileSearch02Icon';
|
|
39
|
-
export * from './FileX02Icon';
|
|
40
|
-
export * from './Flag06Icon';
|
|
41
|
-
export * from './GamingPad01Icon';
|
|
42
|
-
export * from './Gift01Icon';
|
|
43
|
-
export * from './Globe05Icon';
|
|
44
|
-
export * from './GoogleIcon';
|
|
45
|
-
export * from './HelpCircleIcon';
|
|
46
|
-
export * from './InfoCircleIcon';
|
|
47
|
-
export * from './Lock01Icon';
|
|
48
|
-
export * from './Logout01Icon';
|
|
49
|
-
export * from './MarkerPin06Icon';
|
|
50
|
-
export * from './Menu01Icon';
|
|
51
|
-
export * from './Menu03Icon';
|
|
52
|
-
export * from './PiggyBank02Icon';
|
|
53
|
-
export * from './QrCode02Icon';
|
|
54
|
-
export * from './SearchLgIcon';
|
|
55
|
-
export * from './SearchRefractionIcon';
|
|
56
|
-
export * from './Settings02Icon';
|
|
57
|
-
export * from './SpinnerIcon';
|
|
58
|
-
export * from './Star01Icon';
|
|
59
|
-
export * from './StarIcon';
|
|
60
|
-
export * from './StopWatchIcon';
|
|
61
|
-
export * from './Target04Icon';
|
|
62
|
-
export * from './Trophy01Icon';
|
|
63
|
-
export * from './UploadCloud02Icon';
|
|
64
|
-
export * from './User01Icon';
|
|
65
|
-
export * from './Wallet02Icon';
|
|
66
|
-
export * from './XIcon';
|
package/dist/icons/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export * from './AlertCircleIcon.js';
|
|
2
|
-
export * from './AlertTriangle.js';
|
|
3
|
-
export * from './Announcement01Icon.js';
|
|
4
|
-
export * from './ArrowLeftIcon.js';
|
|
5
|
-
export * from './ArrowNarrowDownIcon.js';
|
|
6
|
-
export * from './ArrowNarrowUpIcon.js';
|
|
7
|
-
export * from './ArrowNarrowUpRightIcon.js';
|
|
8
|
-
export * from './ArrowRightIcon.js';
|
|
9
|
-
export * from './Award01Icon.js';
|
|
10
|
-
export * from './Award02Icon.js';
|
|
11
|
-
export * from './BankIcon.js';
|
|
12
|
-
export * from './Bell01Icon.js';
|
|
13
|
-
export * from './BellRingIcon.js';
|
|
14
|
-
export * from './CalendarIcon.js';
|
|
15
|
-
export * from './Camera01Icon.js';
|
|
16
|
-
export * from './CheckCircleBrokenIcon.js';
|
|
17
|
-
export * from './CheckCircleIcon.js';
|
|
18
|
-
export * from './CheckIcon.js';
|
|
19
|
-
export * from './CheckVerified02Icon.js';
|
|
20
|
-
export * from './ChevronDownIcon.js';
|
|
21
|
-
export * from './ChevronLeftIcon.js';
|
|
22
|
-
export * from './ChevronRightIcon.js';
|
|
23
|
-
export * from './ChevronUpIcon.js';
|
|
24
|
-
export * from './ClockStopWatchIcon.js';
|
|
25
|
-
export * from './CoinsHandIcon.js';
|
|
26
|
-
export * from './CoinsStacked02Icon.js';
|
|
27
|
-
export * from './CoinsSwap02Icon.js';
|
|
28
|
-
export * from './CreditCard02Icon.js';
|
|
29
|
-
export * from './CreditCardCheckIcon.js';
|
|
30
|
-
export * from './Diamond01Icon.js';
|
|
31
|
-
export * from './Expand03Icon.js';
|
|
32
|
-
export * from './EyeIcon.js';
|
|
33
|
-
export * from './EyeOffIcon.js';
|
|
34
|
-
export * from './FacebookIcon.js';
|
|
35
|
-
export * from './FaceIdIcon.js';
|
|
36
|
-
export * from './File02Icon.js';
|
|
37
|
-
export * from './FileCheck02Icon.js';
|
|
38
|
-
export * from './FileSearch02Icon.js';
|
|
39
|
-
export * from './FileX02Icon.js';
|
|
40
|
-
export * from './Flag06Icon.js';
|
|
41
|
-
export * from './GamingPad01Icon.js';
|
|
42
|
-
export * from './Gift01Icon.js';
|
|
43
|
-
export * from './Globe05Icon.js';
|
|
44
|
-
export * from './GoogleIcon.js';
|
|
45
|
-
export * from './HelpCircleIcon.js';
|
|
46
|
-
export * from './InfoCircleIcon.js';
|
|
47
|
-
export * from './Lock01Icon.js';
|
|
48
|
-
export * from './Logout01Icon.js';
|
|
49
|
-
export * from './MarkerPin06Icon.js';
|
|
50
|
-
export * from './Menu01Icon.js';
|
|
51
|
-
export * from './Menu03Icon.js';
|
|
52
|
-
export * from './PiggyBank02Icon.js';
|
|
53
|
-
export * from './QrCode02Icon.js';
|
|
54
|
-
export * from './SearchLgIcon.js';
|
|
55
|
-
export * from './SearchRefractionIcon.js';
|
|
56
|
-
export * from './Settings02Icon.js';
|
|
57
|
-
export * from './SpinnerIcon.js';
|
|
58
|
-
export * from './Star01Icon.js';
|
|
59
|
-
export * from './StarIcon.js';
|
|
60
|
-
export * from './StopWatchIcon.js';
|
|
61
|
-
export * from './Target04Icon.js';
|
|
62
|
-
export * from './Trophy01Icon.js';
|
|
63
|
-
export * from './UploadCloud02Icon.js';
|
|
64
|
-
export * from './User01Icon.js';
|
|
65
|
-
export * from './Wallet02Icon.js';
|
|
66
|
-
export * from './XIcon.js';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './prefetchAccountQuery';
|
|
2
|
-
export * from './prefetchAvailablePromosQuery';
|
|
3
|
-
export * from './prefetchAvailableQuestsCountQuery';
|
|
4
|
-
export * from './prefetchAvailableQuestsQuery';
|
|
5
|
-
export * from './prefetchBetRecordsQuery';
|
|
6
|
-
export * from './prefetchBonusesCountQuery';
|
|
7
|
-
export * from './prefetchBonusesQuery';
|
|
8
|
-
export * from './prefetchBonusQuery';
|
|
9
|
-
export * from './prefetchCashbackBonusesCountQuery';
|
|
10
|
-
export * from './prefetchCashbackBonusesQuery';
|
|
11
|
-
export * from './prefetchCashbackBonusQuery';
|
|
12
|
-
export * from './prefetchCashbackQuery';
|
|
13
|
-
export * from './prefetchCashbacksQuery';
|
|
14
|
-
export * from './prefetchDepositQuery';
|
|
15
|
-
export * from './prefetchDepositRecordsQuery';
|
|
16
|
-
export * from './prefetchFavoriteGamesQuery';
|
|
17
|
-
export * from './prefetchGamesQuery';
|
|
18
|
-
export * from './prefetchInstapayBankListQuery';
|
|
19
|
-
export * from './prefetchIsMayaSessionValidQuery';
|
|
20
|
-
export * from './prefetchJackpotsCountQuery';
|
|
21
|
-
export * from './prefetchJackpotsQuery';
|
|
22
|
-
export * from './prefetchMemberVerificationQuery';
|
|
23
|
-
export * from './prefetchPaymentSettingsQuery';
|
|
24
|
-
export * from './prefetchPlatformQuery';
|
|
25
|
-
export * from './prefetchProfileCompletionQuery';
|
|
26
|
-
export * from './prefetchPromoQuery';
|
|
27
|
-
export * from './prefetchPromosQuery';
|
|
28
|
-
export * from './prefetchSessionQuery';
|
|
29
|
-
export * from './prefetchTopWinsQuery';
|
|
30
|
-
export * from './prefetchTournamentsCountQuery';
|
|
31
|
-
export * from './prefetchTournamentsQuery';
|
|
32
|
-
export * from './prefetchTransactionRecordsQuery';
|
|
33
|
-
export * from './prefetchWalletQuery';
|
|
34
|
-
export * from './prefetchWithdrawalRecordsQuery';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './prefetchAccountQuery.js';
|
|
2
|
-
export * from './prefetchAvailablePromosQuery.js';
|
|
3
|
-
export * from './prefetchAvailableQuestsCountQuery.js';
|
|
4
|
-
export * from './prefetchAvailableQuestsQuery.js';
|
|
5
|
-
export * from './prefetchBetRecordsQuery.js';
|
|
6
|
-
export * from './prefetchBonusesCountQuery.js';
|
|
7
|
-
export * from './prefetchBonusesQuery.js';
|
|
8
|
-
export * from './prefetchBonusQuery.js';
|
|
9
|
-
export * from './prefetchCashbackBonusesCountQuery.js';
|
|
10
|
-
export * from './prefetchCashbackBonusesQuery.js';
|
|
11
|
-
export * from './prefetchCashbackBonusQuery.js';
|
|
12
|
-
export * from './prefetchCashbackQuery.js';
|
|
13
|
-
export * from './prefetchCashbacksQuery.js';
|
|
14
|
-
export * from './prefetchDepositQuery.js';
|
|
15
|
-
export * from './prefetchDepositRecordsQuery.js';
|
|
16
|
-
export * from './prefetchFavoriteGamesQuery.js';
|
|
17
|
-
export * from './prefetchGamesQuery.js';
|
|
18
|
-
export * from './prefetchInstapayBankListQuery.js';
|
|
19
|
-
export * from './prefetchIsMayaSessionValidQuery.js';
|
|
20
|
-
export * from './prefetchJackpotsCountQuery.js';
|
|
21
|
-
export * from './prefetchJackpotsQuery.js';
|
|
22
|
-
export * from './prefetchMemberVerificationQuery.js';
|
|
23
|
-
export * from './prefetchPaymentSettingsQuery.js';
|
|
24
|
-
export * from './prefetchPlatformQuery.js';
|
|
25
|
-
export * from './prefetchProfileCompletionQuery.js';
|
|
26
|
-
export * from './prefetchPromoQuery.js';
|
|
27
|
-
export * from './prefetchPromosQuery.js';
|
|
28
|
-
export * from './prefetchSessionQuery.js';
|
|
29
|
-
export * from './prefetchTopWinsQuery.js';
|
|
30
|
-
export * from './prefetchTournamentsCountQuery.js';
|
|
31
|
-
export * from './prefetchTournamentsQuery.js';
|
|
32
|
-
export * from './prefetchTransactionRecordsQuery.js';
|
|
33
|
-
export * from './prefetchWalletQuery.js';
|
|
34
|
-
export * from './prefetchWithdrawalRecordsQuery.js';
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/* ref: https://github.com/HighOutputVentures/opexa/blob/main/packages/object-id/src/libs/object-id.ts */
|
|
2
|
-
// import bs58 from 'bs58';
|
|
3
|
-
// import { sha256 } from 'crypto-hash';
|
|
4
|
-
// import randomBytes from 'randombytes';
|
|
5
|
-
// const MACHINE_ID = randomBytes(5);
|
|
6
|
-
// let counter = randomBytes(4).readUInt32BE(0) & 0xffffff;
|
|
7
|
-
// export class ObjectId {
|
|
8
|
-
// constructor(private readonly _buffer: Buffer) {}
|
|
9
|
-
// /**
|
|
10
|
-
// * @param type The type of the object, e.g. `ObjectType.MemberAccount`
|
|
11
|
-
// * @example
|
|
12
|
-
// * ```ts
|
|
13
|
-
// * import { ObjectId, ObjectType } from '@opexa/portal-components';
|
|
14
|
-
// *
|
|
15
|
-
// * const id = ObjectId.generate(ObjectType.MemberAccount).toString();
|
|
16
|
-
// * ```
|
|
17
|
-
// */
|
|
18
|
-
// static generate(type: number) {
|
|
19
|
-
// const buffer = Buffer.alloc(13);
|
|
20
|
-
// const time = Math.floor(Date.now() / 1000) & 0xffffffff;
|
|
21
|
-
// counter = (counter + 1) & 0xffffff;
|
|
22
|
-
// buffer[0] = type & 0xff;
|
|
23
|
-
// buffer[1] = (time >> 24) & 0xff;
|
|
24
|
-
// buffer[2] = (time >> 16) & 0xff;
|
|
25
|
-
// buffer[3] = (time >> 8) & 0xff;
|
|
26
|
-
// buffer[4] = time & 0xff;
|
|
27
|
-
// buffer[5] = MACHINE_ID[0];
|
|
28
|
-
// buffer[6] = MACHINE_ID[1];
|
|
29
|
-
// buffer[7] = MACHINE_ID[2];
|
|
30
|
-
// buffer[8] = MACHINE_ID[3];
|
|
31
|
-
// buffer[9] = MACHINE_ID[4];
|
|
32
|
-
// buffer[10] = (counter >> 16) & 0xff;
|
|
33
|
-
// buffer[11] = (counter >> 8) & 0xff;
|
|
34
|
-
// buffer[12] = counter & 0xff;
|
|
35
|
-
// return new ObjectId(buffer);
|
|
36
|
-
// }
|
|
37
|
-
// /**
|
|
38
|
-
// *
|
|
39
|
-
// * @param type The type of the object, e.g. `ObjectType.Game`
|
|
40
|
-
// * @param key The key to generate the object ID from, e.g. `Game.id`
|
|
41
|
-
// * @example
|
|
42
|
-
// * ```ts
|
|
43
|
-
// * import { ObjectId, ObjectType } from '@opexa/portal-components';
|
|
44
|
-
// *
|
|
45
|
-
// * const id = (await ObjectId.generateFromKey(ObjectType.Game, gameId)).toString();
|
|
46
|
-
// * ```
|
|
47
|
-
// */
|
|
48
|
-
// static async generateFromKey(type: number, key: string) {
|
|
49
|
-
// const buffer = Buffer.alloc(13);
|
|
50
|
-
// buffer[0] = type & 0xff;
|
|
51
|
-
// Buffer.from(await sha256(key, { outputFormat: 'buffer' })).copy(
|
|
52
|
-
// <Uint8Array>buffer,
|
|
53
|
-
// 1,
|
|
54
|
-
// 0,
|
|
55
|
-
// 12,
|
|
56
|
-
// );
|
|
57
|
-
// return new ObjectId(buffer);
|
|
58
|
-
// }
|
|
59
|
-
// toString() {
|
|
60
|
-
// return bs58.encode(<Uint8Array>this._buffer);
|
|
61
|
-
// }
|
|
62
|
-
// }
|
|
63
|
-
export const ObjectType = {
|
|
64
|
-
MemberAccount: 8,
|
|
65
|
-
MemberVerification: 15,
|
|
66
|
-
Deposit: 9,
|
|
67
|
-
Withdrawal: 14,
|
|
68
|
-
File: 16,
|
|
69
|
-
Game: 203,
|
|
70
|
-
GameSession: 204,
|
|
71
|
-
MayaSession: 230,
|
|
72
|
-
};
|
package/dist/services/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './account.service';
|
|
2
|
-
export * from './auth.service';
|
|
3
|
-
export * from './cmsPortal.service';
|
|
4
|
-
export * from './file.service';
|
|
5
|
-
export * from './game.service';
|
|
6
|
-
export * from './portal.service';
|
|
7
|
-
export * from './report.service';
|
|
8
|
-
export * from './trigger.service';
|
|
9
|
-
export * from './wallet.service';
|
|
10
|
-
export * from './graphqlRequest';
|
|
11
|
-
export * from './httpRequest';
|
|
12
|
-
export * from './ObjectType';
|
|
13
|
-
export * from './sha256';
|