@opexa/portal-components 0.0.29 → 0.0.31
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.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBonusesQuery.d.ts +1 -1
- package/dist/client/hooks/useCashbacksQuery.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useDepositQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useInfiniteQueryHelper.d.ts +1 -1
- package/dist/client/hooks/useInstapayBankListQuery.d.ts +1 -1
- package/dist/client/hooks/useIsMayaSessionValidQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +1 -1
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -1
- package/dist/client/hooks/useMemberVerificationQuery.d.ts +1 -1
- package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.d.ts +1 -1
- package/dist/client/hooks/usePlatformQuery.d.ts +1 -1
- package/dist/client/hooks/useProfileCompletionQuery.d.ts +1 -1
- package/dist/client/hooks/usePromoQuery.d.ts +1 -1
- package/dist/client/hooks/usePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSessionQuery.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignOutMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useTopWinsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +1 -1
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
- package/dist/client/hooks/useWalletQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/utils/{createRecipeContext.jsx → createRecipeContext.js} +4 -7
- package/dist/client/utils/index.js +1 -1
- package/dist/components/Account/Account.d.ts +1 -1
- package/dist/components/Account/Account.js +127 -0
- package/dist/components/Account/index.js +1 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +1 -1
- package/dist/components/AccountInfo/AccountInfo.js +18 -0
- package/dist/components/AccountInfo/index.js +1 -1
- package/dist/components/AccountPaymentMethods/index.js +1 -1
- package/dist/components/AccountSecurity/AccountSecurity.d.ts +1 -1
- package/dist/components/AccountSecurity/AccountSecurity.js +47 -0
- package/dist/components/AccountSecurity/index.js +1 -1
- package/dist/components/AccountVerification/index.js +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +38 -0
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/BetRecords/BetRecords.d.ts +1 -1
- package/dist/components/BetRecords/BetRecords.js +192 -0
- package/dist/components/BetRecords/index.js +1 -1
- package/dist/components/Bonus/Bonus.client.d.ts +1 -1
- package/dist/components/Bonus/Bonus.client.js +9 -0
- package/dist/components/Bonus/Bonus.d.ts +1 -1
- package/dist/components/Bonus/Bonus.js +5 -0
- package/dist/components/Bonus/index.js +1 -1
- package/dist/components/Bonuses/Bonuses.d.ts +1 -1
- package/dist/components/Bonuses/Bonuses.js +15 -0
- package/dist/components/Bonuses/index.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.d.ts +1 -1
- package/dist/components/DepositWithdrawal/{AmountChoices.jsx → AmountChoices.js} +4 -7
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +26 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/{Deposit.jsx → Deposit.js} +10 -20
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/{GCashDeposit.jsx → GCashDeposit.js} +32 -104
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/{MayaAppDeposit.jsx → MayaAppDeposit.js} +34 -106
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/{MayaDeposit.jsx → MayaDeposit.js} +32 -104
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +129 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +5 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +5 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +14 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +128 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +5 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +18 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +8 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +39 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +1 -1
- package/dist/components/DepositWithdrawal/{DepositWithdrawalTrigger.jsx → DepositWithdrawalTrigger.js} +3 -2
- package/dist/components/DepositWithdrawal/MayaSessionExpired.d.ts +1 -1
- package/dist/components/DepositWithdrawal/MayaSessionExpired.js +5 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +1 -1
- package/dist/components/DepositWithdrawal/{PaymentMethods.jsx → PaymentMethods.js} +7 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/{GCashWithdrawal.jsx → GCashWithdrawal.js} +14 -78
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +128 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/{MayaAppWithdrawal.jsx → MayaAppWithdrawal.js} +16 -69
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/{MayaWithdrawal.jsx → MayaWithdrawal.js} +14 -78
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/{Withdrawal.jsx → Withdrawal.js} +14 -37
- package/dist/components/DepositWithdrawal/index.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.d.ts +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +14 -0
- package/dist/components/Disclaimer/index.js +1 -1
- package/dist/components/Empty.d.ts +1 -1
- package/dist/components/Empty.js +7 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +1 -1
- package/dist/components/FavoriteGames/FavoriteGames.client.js +31 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +1 -1
- package/dist/components/FavoriteGames/FavoriteGames.js +7 -0
- package/dist/components/FavoriteGames/index.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
- package/dist/components/GameLaunch/GameLaunch.js +99 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -1
- package/dist/components/GameLaunch/{GameLaunchTrigger.jsx → GameLaunchTrigger.js} +4 -3
- package/dist/components/GameLaunch/index.js +2 -2
- package/dist/components/GameProviders/GameProviders.d.ts +2 -2
- package/dist/components/GameProviders/GameProviders.js +32 -0
- package/dist/components/GameProviders/index.js +1 -1
- package/dist/components/Games/Games.client.d.ts +1 -1
- package/dist/components/Games/Games.client.js +84 -0
- package/dist/components/Games/Games.d.ts +1 -1
- package/dist/components/Games/{Games.jsx → Games.js} +3 -2
- package/dist/components/Games/index.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +38 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +1 -1
- package/dist/components/GamesSearch/{GamesSearchTrigger.jsx → GamesSearchTrigger.js} +3 -2
- package/dist/components/GamesSearch/index.js +2 -2
- package/dist/components/InfiniteScroll.d.ts +1 -1
- package/dist/components/{InfiniteScroll.jsx → InfiniteScroll.js} +2 -7
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +1 -1
- package/dist/components/JackpotCounter/{JackpotCounter.client.jsx → JackpotCounter.client.js} +3 -30
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
- package/dist/components/JackpotCounter/{JackpotCounter.jsx → JackpotCounter.js} +3 -2
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +114 -0
- package/dist/components/JackpotCounter/index.js +1 -1
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +2 -2
- package/dist/components/Jackpots/JackpotGameProviders.js +38 -0
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItemDesktop.js +44 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.js +48 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +1 -1
- package/dist/components/Jackpots/JackpotRules.js +9 -0
- package/dist/components/Jackpots/Jackpots.d.ts +2 -2
- package/dist/components/Jackpots/Jackpots.js +26 -0
- package/dist/components/Jackpots/index.js +1 -1
- package/dist/components/Jackpots/useJackpotItemData.d.ts +2 -2
- package/dist/components/Jackpots/{useJackpotItemData.jsx → useJackpotItemData.js} +5 -4
- package/dist/components/KYC/KYC.d.ts +1 -1
- package/dist/components/KYC/KYC.js +19 -0
- package/dist/components/KYC/KYCTrigger.d.ts +1 -1
- package/dist/components/KYC/{KYCTrigger.jsx → KYCTrigger.js} +3 -2
- package/dist/components/KYC/Step1.d.ts +1 -1
- package/dist/components/KYC/Step1.js +10 -0
- package/dist/components/KYC/Step2.d.ts +1 -1
- package/dist/components/KYC/Step2.js +15 -0
- package/dist/components/KYC/Step3.d.ts +1 -1
- package/dist/components/KYC/Step3.js +11 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -1
- package/dist/components/KYC/StepIndicator.js +13 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -1
- package/dist/components/KYC/UploadDocument.js +8 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -1
- package/dist/components/KYC/UploadSelfie.js +8 -0
- package/dist/components/KYC/index.js +2 -2
- package/dist/components/Marquee/Marquee.d.ts +1 -1
- package/dist/components/Marquee/Marquee.js +5 -0
- package/dist/components/Marquee/index.js +1 -1
- package/dist/components/Messages/MessageItem.d.ts +1 -1
- package/dist/components/Messages/MessageItem.js +28 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -1
- package/dist/components/Messages/MessagePopup.js +18 -0
- package/dist/components/Messages/Messages.d.ts +1 -1
- package/dist/components/Messages/Messages.js +31 -0
- package/dist/components/Messages/MessagesTrigger.d.ts +1 -1
- package/dist/components/Messages/{MessagesTrigger.jsx → MessagesTrigger.js} +3 -2
- package/dist/components/Messages/index.js +2 -2
- package/dist/components/Messages/utils.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.client.js +26 -0
- package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
- package/dist/components/PortalProvider/{PortalProvider.jsx → PortalProvider.js} +3 -6
- package/dist/components/PortalProvider/index.js +1 -1
- package/dist/components/Promo/Promo.d.ts +1 -1
- package/dist/components/Promo/Promo.js +8 -0
- package/dist/components/Promo/PromoContent.d.ts +1 -1
- package/dist/components/Promo/PromoContent.js +9 -0
- package/dist/components/Promo/index.js +1 -1
- package/dist/components/Promos/PromoCarousel.d.ts +1 -1
- package/dist/components/Promos/PromoCarousel.js +41 -0
- package/dist/components/Promos/PromoGrid.d.ts +1 -1
- package/dist/components/Promos/PromoGrid.js +12 -0
- package/dist/components/Promos/PromoItem.d.ts +1 -1
- package/dist/components/Promos/PromoItem.js +10 -0
- package/dist/components/Promos/Promos.d.ts +1 -1
- package/dist/components/Promos/Promos.js +11 -0
- package/dist/components/Promos/index.js +1 -1
- package/dist/components/Protected/index.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +58 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +8 -0
- package/dist/components/Quests/Quests.d.ts +1 -1
- package/dist/components/Quests/Quests.js +6 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.js +16 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +8 -0
- package/dist/components/Quests/index.js +1 -1
- package/dist/components/SignIn/SignIn.d.ts +1 -1
- package/dist/components/SignIn/SignIn.js +15 -0
- package/dist/components/SignIn/SignInForm.d.ts +1 -1
- package/dist/components/SignIn/SignInForm.js +118 -0
- package/dist/components/SignIn/SignInTrigger.d.ts +1 -1
- package/dist/components/SignIn/{SignInTrigger.jsx → SignInTrigger.js} +3 -2
- package/dist/components/SignIn/index.js +2 -2
- package/dist/components/SignUp/SignUp.d.ts +1 -1
- package/dist/components/SignUp/SignUp.js +16 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -1
- package/dist/components/SignUp/SignUpForm.js +133 -0
- package/dist/components/SignUp/SignUpTrigger.d.ts +1 -1
- package/dist/components/SignUp/{SignUpTrigger.jsx → SignUpTrigger.js} +3 -2
- package/dist/components/SignUp/index.js +2 -2
- package/dist/components/TopWins/TopWins.client.d.ts +1 -1
- package/dist/components/TopWins/TopWins.client.js +23 -0
- package/dist/components/TopWins/TopWins.d.ts +1 -1
- package/dist/components/TopWins/TopWins.js +7 -0
- package/dist/components/TopWins/index.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +1 -1
- package/dist/components/TournamentCounter/{TournamentCounter.client.jsx → TournamentCounter.client.js} +3 -30
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
- package/dist/components/TournamentCounter/{TournamentCounter.jsx → TournamentCounter.js} +3 -2
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -2
- package/dist/components/TournamentCounter/TournamentCounterItem.js +96 -0
- package/dist/components/TournamentCounter/index.js +1 -1
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -1
- package/dist/components/Tournaments/{TournamentGameProviders.jsx → TournamentGameProviders.js} +2 -23
- package/dist/components/Tournaments/TournamentItem.d.ts +1 -2
- package/dist/components/Tournaments/TournamentItem.js +97 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +1 -2
- package/dist/components/Tournaments/TournamentItemMobile.js +99 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +1 -1
- package/dist/components/Tournaments/TournamentRules.js +9 -0
- package/dist/components/Tournaments/Tournaments.d.ts +1 -1
- package/dist/components/Tournaments/Tournaments.js +26 -0
- package/dist/components/Tournaments/index.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.js +87 -0
- package/dist/components/TransactionRecords/TableFilters.d.ts +2 -2
- package/dist/components/TransactionRecords/TableFilters.js +212 -0
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.js +10 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +62 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +81 -0
- package/dist/components/TransactionRecords/index.js +1 -1
- package/dist/icons/AlertCircleIcon.d.ts +1 -1
- package/dist/icons/AlertCircleIcon.js +4 -0
- package/dist/icons/AlertTriangle.d.ts +1 -1
- package/dist/icons/AlertTriangle.js +4 -0
- package/dist/icons/Announcement01Icon.d.ts +1 -1
- package/dist/icons/Announcement01Icon.js +4 -0
- package/dist/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/icons/ArrowLeftIcon.js +4 -0
- package/dist/icons/ArrowNarrowDownIcon.d.ts +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +4 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +4 -0
- package/dist/icons/ArrowNarrowUpRightIcon.d.ts +1 -1
- package/dist/icons/ArrowNarrowUpRightIcon.js +4 -0
- package/dist/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/icons/ArrowRightIcon.js +4 -0
- package/dist/icons/Award01Icon.d.ts +1 -1
- package/dist/icons/Award01Icon.js +4 -0
- package/dist/icons/Award02Icon.d.ts +1 -1
- package/dist/icons/Award02Icon.js +4 -0
- package/dist/icons/BankIcon.d.ts +1 -1
- package/dist/icons/BankIcon.js +4 -0
- package/dist/icons/Bell01Icon.d.ts +1 -1
- package/dist/icons/Bell01Icon.js +4 -0
- package/dist/icons/BellRingIcon.d.ts +1 -1
- package/dist/icons/BellRingIcon.js +4 -0
- package/dist/icons/CalendarIcon.d.ts +1 -1
- package/dist/icons/CalendarIcon.js +4 -0
- package/dist/icons/Camera01Icon.d.ts +1 -1
- package/dist/icons/Camera01Icon.js +4 -0
- package/dist/icons/CheckCircleBrokenIcon.d.ts +1 -1
- package/dist/icons/CheckCircleBrokenIcon.js +4 -0
- package/dist/icons/CheckCircleIcon.d.ts +1 -1
- package/dist/icons/CheckCircleIcon.js +4 -0
- package/dist/icons/CheckIcon.d.ts +1 -1
- package/dist/icons/CheckIcon.js +4 -0
- package/dist/icons/CheckVerified02Icon.d.ts +1 -1
- package/dist/icons/CheckVerified02Icon.js +4 -0
- package/dist/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/icons/ChevronDownIcon.js +4 -0
- package/dist/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/icons/ChevronLeftIcon.js +4 -0
- package/dist/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/icons/ChevronRightIcon.js +4 -0
- package/dist/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/icons/ChevronUpIcon.js +4 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +1 -1
- package/dist/icons/ClockStopWatchIcon.js +4 -0
- package/dist/icons/CoinsHandIcon.d.ts +1 -1
- package/dist/icons/CoinsHandIcon.js +4 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +1 -1
- package/dist/icons/CoinsStacked02Icon.js +4 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +1 -1
- package/dist/icons/CoinsSwap02Icon.js +4 -0
- package/dist/icons/CreditCard02Icon.d.ts +1 -1
- package/dist/icons/CreditCard02Icon.js +4 -0
- package/dist/icons/Diamond01Icon.d.ts +1 -1
- package/dist/icons/Diamond01Icon.js +4 -0
- package/dist/icons/Expand03Icon.d.ts +1 -1
- package/dist/icons/Expand03Icon.js +4 -0
- package/dist/icons/EyeIcon.d.ts +1 -1
- package/dist/icons/EyeIcon.js +4 -0
- package/dist/icons/EyeOffIcon.d.ts +1 -1
- package/dist/icons/EyeOffIcon.js +4 -0
- package/dist/icons/FacebookIcon.d.ts +1 -1
- package/dist/icons/FacebookIcon.js +4 -0
- package/dist/icons/File02Icon.d.ts +1 -1
- package/dist/icons/File02Icon.js +4 -0
- package/dist/icons/FileCheck02Icon.d.ts +1 -1
- package/dist/icons/FileCheck02Icon.js +4 -0
- package/dist/icons/Flag06Icon.d.ts +1 -1
- package/dist/icons/Flag06Icon.js +4 -0
- package/dist/icons/Gift01Icon.d.ts +1 -1
- package/dist/icons/Gift01Icon.js +4 -0
- package/dist/icons/GoogleIcon.d.ts +1 -1
- package/dist/icons/GoogleIcon.js +4 -0
- package/dist/icons/HelpCircleIcon.d.ts +1 -1
- package/dist/icons/HelpCircleIcon.js +4 -0
- package/dist/icons/InfoCircleIcon.d.ts +1 -1
- package/dist/icons/InfoCircleIcon.js +4 -0
- package/dist/icons/Lock01Icon.d.ts +1 -1
- package/dist/icons/Lock01Icon.js +4 -0
- package/dist/icons/Logout01Icon.d.ts +1 -1
- package/dist/icons/Logout01Icon.js +4 -0
- package/dist/icons/MarkerPin06Icon.d.ts +1 -1
- package/dist/icons/MarkerPin06Icon.js +4 -0
- package/dist/icons/Menu01Icon.d.ts +1 -1
- package/dist/icons/Menu01Icon.js +4 -0
- package/dist/icons/Menu03Icon.d.ts +1 -1
- package/dist/icons/Menu03Icon.js +4 -0
- package/dist/icons/PiggyBank02Icon.d.ts +1 -1
- package/dist/icons/PiggyBank02Icon.js +4 -0
- package/dist/icons/QrCode02Icon.d.ts +1 -1
- package/dist/icons/QrCode02Icon.js +4 -0
- package/dist/icons/SearchLgIcon.d.ts +1 -1
- package/dist/icons/SearchLgIcon.js +4 -0
- package/dist/icons/SearchRefractionIcon.d.ts +1 -1
- package/dist/icons/SearchRefractionIcon.js +4 -0
- package/dist/icons/Settings02Icon.d.ts +1 -1
- package/dist/icons/Settings02Icon.js +4 -0
- package/dist/icons/SpinnerIcon.d.ts +1 -1
- package/dist/icons/SpinnerIcon.js +5 -0
- package/dist/icons/Star01Icon.d.ts +1 -1
- package/dist/icons/Star01Icon.js +4 -0
- package/dist/icons/StarIcon.d.ts +1 -1
- package/dist/icons/StarIcon.js +4 -0
- package/dist/icons/StopWatchIcon.d.ts +1 -1
- package/dist/icons/StopWatchIcon.js +4 -0
- package/dist/icons/Target04Icon.d.ts +1 -1
- package/dist/icons/Target04Icon.js +4 -0
- package/dist/icons/Trophy01Icon.d.ts +1 -1
- package/dist/icons/Trophy01Icon.js +4 -0
- package/dist/icons/UploadCloud02Icon.d.ts +1 -1
- package/dist/icons/UploadCloud02Icon.js +4 -0
- package/dist/icons/User01Icon.d.ts +1 -1
- package/dist/icons/User01Icon.js +4 -0
- package/dist/icons/Wallet02Icon.d.ts +1 -1
- package/dist/icons/Wallet02Icon.js +4 -0
- package/dist/icons/XIcon.d.ts +1 -1
- package/dist/icons/XIcon.js +4 -0
- package/dist/icons/index.js +56 -56
- package/dist/middleware.d.ts +1 -0
- package/dist/middleware.js +1 -11
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/third-parties/FacebookPixel/index.js +1 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/ui/AlertDialog/index.js +1 -1
- package/dist/ui/Avatar/index.js +1 -1
- package/dist/ui/Badge/Badge.js +12 -0
- package/dist/ui/Badge/index.js +1 -1
- package/dist/ui/Button/Button.d.ts +1 -1
- package/dist/ui/Button/{Button.jsx → Button.js} +3 -2
- package/dist/ui/Button/index.js +1 -1
- package/dist/ui/Checkbox/index.js +1 -1
- package/dist/ui/Clipboard/index.js +1 -1
- package/dist/ui/Collapsible/index.js +1 -1
- package/dist/ui/Combobox/index.js +1 -1
- package/dist/ui/DatePicker/index.js +1 -1
- package/dist/ui/Dialog/index.js +1 -1
- package/dist/ui/Drawer/index.js +1 -1
- package/dist/ui/Field/index.js +1 -1
- package/dist/ui/IconButton/IconButton.d.ts +1 -1
- package/dist/ui/IconButton/{IconButton.jsx → IconButton.js} +3 -2
- package/dist/ui/IconButton/index.js +1 -1
- package/dist/ui/Menu/index.js +1 -1
- package/dist/ui/NumberInput/index.js +1 -1
- package/dist/ui/PasswordInput/index.js +1 -1
- package/dist/ui/PinInput/index.js +1 -1
- package/dist/ui/Popover/index.js +1 -1
- package/dist/ui/Presence.d.ts +1 -1
- package/dist/ui/Presence.js +7 -0
- package/dist/ui/Progress/index.js +1 -1
- package/dist/ui/Prose.d.ts +1 -1
- package/dist/ui/Prose.js +5 -0
- package/dist/ui/SegmentGroup/index.js +1 -1
- package/dist/ui/Select/index.js +1 -1
- package/dist/ui/Table/index.js +1 -1
- package/dist/ui/Tabs/index.js +1 -1
- package/dist/ui/Tooltip/index.js +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/utils/getLocaleInfo.js +175 -0
- package/dist/utils/index.js +1 -1
- package/package.json +3 -10
- package/dist/components/Account/Account.jsx +0 -313
- package/dist/components/AccountInfo/AccountInfo.jsx +0 -113
- package/dist/components/AccountSecurity/AccountSecurity.jsx +0 -142
- package/dist/components/Banner/Banner.jsx +0 -51
- package/dist/components/BetRecords/BetRecords.jsx +0 -470
- package/dist/components/Bonus/Bonus.client.jsx +0 -144
- package/dist/components/Bonus/Bonus.jsx +0 -4
- package/dist/components/Bonuses/Bonuses.jsx +0 -87
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +0 -73
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +0 -15
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +0 -203
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +0 -15
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +0 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +0 -90
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +0 -15
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +0 -197
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +0 -14
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +0 -104
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +0 -19
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +0 -95
- package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +0 -13
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +0 -218
- package/dist/components/Disclaimer/Disclaimer.jsx +0 -45
- package/dist/components/Empty.jsx +0 -62
- package/dist/components/FavoriteGames/FavoriteGames.client.jsx +0 -63
- package/dist/components/FavoriteGames/FavoriteGames.jsx +0 -6
- package/dist/components/GameLaunch/GameLaunch.jsx +0 -188
- package/dist/components/GameProviders/GameProviders.jsx +0 -60
- package/dist/components/Games/Games.client.jsx +0 -118
- package/dist/components/GamesSearch/GamesSearch.jsx +0 -110
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +0 -317
- package/dist/components/Jackpots/JackpotGameProviders.jsx +0 -59
- package/dist/components/Jackpots/JackpotItemDesktop.jsx +0 -251
- package/dist/components/Jackpots/JackpotItemMobile.jsx +0 -271
- package/dist/components/Jackpots/JackpotRules.jsx +0 -43
- package/dist/components/Jackpots/Jackpots.jsx +0 -37
- package/dist/components/KYC/KYC.jsx +0 -39
- package/dist/components/KYC/Step1.jsx +0 -37
- package/dist/components/KYC/Step2.jsx +0 -86
- package/dist/components/KYC/Step3.jsx +0 -68
- package/dist/components/KYC/StepIndicator.jsx +0 -22
- package/dist/components/KYC/UploadDocument.jsx +0 -30
- package/dist/components/KYC/UploadSelfie.jsx +0 -28
- package/dist/components/Marquee/Marquee.jsx +0 -20
- package/dist/components/Messages/MessageItem.jsx +0 -47
- package/dist/components/Messages/MessagePopup.jsx +0 -43
- package/dist/components/Messages/Messages.jsx +0 -87
- package/dist/components/PortalProvider/PortalProvider.client.jsx +0 -54
- package/dist/components/Promo/Promo.jsx +0 -7
- package/dist/components/Promo/PromoContent.jsx +0 -104
- package/dist/components/Promos/PromoCarousel.jsx +0 -69
- package/dist/components/Promos/PromoGrid.jsx +0 -24
- package/dist/components/Promos/PromoItem.jsx +0 -24
- package/dist/components/Promos/Promos.jsx +0 -10
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +0 -104
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +0 -46
- package/dist/components/Quests/Quests.jsx +0 -12
- package/dist/components/Quests/WageringQuest/WageringQuest.jsx +0 -58
- package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +0 -38
- package/dist/components/SignIn/SignIn.jsx +0 -29
- package/dist/components/SignIn/SignInForm.jsx +0 -233
- package/dist/components/SignUp/SignUp.jsx +0 -32
- package/dist/components/SignUp/SignUpForm.jsx +0 -230
- package/dist/components/TopWins/TopWins.client.jsx +0 -48
- package/dist/components/TopWins/TopWins.jsx +0 -6
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +0 -233
- package/dist/components/Tournaments/TournamentItem.jsx +0 -224
- package/dist/components/Tournaments/TournamentItemMobile.jsx +0 -242
- package/dist/components/Tournaments/TournamentRules.jsx +0 -43
- package/dist/components/Tournaments/Tournaments.jsx +0 -37
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +0 -193
- package/dist/components/TransactionRecords/TableFilters.jsx +0 -446
- package/dist/components/TransactionRecords/TransactionRecords.jsx +0 -39
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +0 -147
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +0 -182
- package/dist/icons/AlertCircleIcon.jsx +0 -5
- package/dist/icons/AlertTriangle.jsx +0 -5
- package/dist/icons/Announcement01Icon.jsx +0 -5
- package/dist/icons/ArrowLeftIcon.jsx +0 -5
- package/dist/icons/ArrowNarrowDownIcon.jsx +0 -5
- package/dist/icons/ArrowNarrowUpIcon.jsx +0 -5
- package/dist/icons/ArrowNarrowUpRightIcon.jsx +0 -5
- package/dist/icons/ArrowRightIcon.jsx +0 -5
- package/dist/icons/Award01Icon.jsx +0 -5
- package/dist/icons/Award02Icon.jsx +0 -5
- package/dist/icons/BankIcon.jsx +0 -5
- package/dist/icons/Bell01Icon.jsx +0 -5
- package/dist/icons/BellRingIcon.jsx +0 -5
- package/dist/icons/CalendarIcon.jsx +0 -5
- package/dist/icons/Camera01Icon.jsx +0 -6
- package/dist/icons/CheckCircleBrokenIcon.jsx +0 -5
- package/dist/icons/CheckCircleIcon.jsx +0 -5
- package/dist/icons/CheckIcon.jsx +0 -5
- package/dist/icons/CheckVerified02Icon.jsx +0 -5
- package/dist/icons/ChevronDownIcon.jsx +0 -5
- package/dist/icons/ChevronLeftIcon.jsx +0 -5
- package/dist/icons/ChevronRightIcon.jsx +0 -5
- package/dist/icons/ChevronUpIcon.jsx +0 -5
- package/dist/icons/ClockStopWatchIcon.jsx +0 -5
- package/dist/icons/CoinsHandIcon.jsx +0 -5
- package/dist/icons/CoinsStacked02Icon.jsx +0 -5
- package/dist/icons/CoinsSwap02Icon.jsx +0 -5
- package/dist/icons/CreditCard02Icon.jsx +0 -5
- package/dist/icons/Diamond01Icon.jsx +0 -5
- package/dist/icons/Expand03Icon.jsx +0 -5
- package/dist/icons/EyeIcon.jsx +0 -6
- package/dist/icons/EyeOffIcon.jsx +0 -5
- package/dist/icons/FacebookIcon.jsx +0 -6
- package/dist/icons/File02Icon.jsx +0 -5
- package/dist/icons/FileCheck02Icon.jsx +0 -5
- package/dist/icons/Flag06Icon.jsx +0 -5
- package/dist/icons/Gift01Icon.jsx +0 -5
- package/dist/icons/GoogleIcon.jsx +0 -9
- package/dist/icons/HelpCircleIcon.jsx +0 -5
- package/dist/icons/InfoCircleIcon.jsx +0 -5
- package/dist/icons/Lock01Icon.jsx +0 -5
- package/dist/icons/Logout01Icon.jsx +0 -5
- package/dist/icons/MarkerPin06Icon.jsx +0 -5
- package/dist/icons/Menu01Icon.jsx +0 -5
- package/dist/icons/Menu03Icon.jsx +0 -5
- package/dist/icons/PiggyBank02Icon.jsx +0 -5
- package/dist/icons/QrCode02Icon.jsx +0 -5
- package/dist/icons/SearchLgIcon.jsx +0 -5
- package/dist/icons/SearchRefractionIcon.jsx +0 -5
- package/dist/icons/Settings02Icon.jsx +0 -6
- package/dist/icons/SpinnerIcon.jsx +0 -9
- package/dist/icons/Star01Icon.jsx +0 -5
- package/dist/icons/StarIcon.jsx +0 -5
- package/dist/icons/StopWatchIcon.jsx +0 -5
- package/dist/icons/Target04Icon.jsx +0 -5
- package/dist/icons/Trophy01Icon.jsx +0 -5
- package/dist/icons/UploadCloud02Icon.jsx +0 -5
- package/dist/icons/User01Icon.jsx +0 -5
- package/dist/icons/Wallet02Icon.jsx +0 -5
- package/dist/icons/XIcon.jsx +0 -5
- package/dist/ui/Badge/Badge.jsx +0 -11
- package/dist/ui/Presence.jsx +0 -6
- package/dist/ui/Prose.jsx +0 -4
- package/dist/utils/getLocaleInfo.jsx +0 -237
- /package/dist/components/AccountPaymentMethods/{AccountPaymentMethods.jsx → AccountPaymentMethods.js} +0 -0
- /package/dist/components/AccountVerification/{AccountVerification.jsx → AccountVerification.js} +0 -0
- /package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{OnlineBankDepositContext.jsx → OnlineBankDepositContext.js} +0 -0
- /package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{useOnlineBankDeposit.jsx → useOnlineBankDeposit.js} +0 -0
- /package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{QRPHDepositContext.jsx → QRPHDepositContext.js} +0 -0
- /package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{useQRPHDeposit.jsx → useQRPHDeposit.js} +0 -0
- /package/dist/components/Disclaimer/{useDisclaimer.jsx → useDisclaimer.js} +0 -0
- /package/dist/components/KYC/{KYCContext.jsx → KYCContext.js} +0 -0
- /package/dist/components/Protected/{Protected.jsx → Protected.js} +0 -0
- /package/dist/third-parties/FacebookPixel/{FacebookPixel.jsx → FacebookPixel.js} +0 -0
- /package/dist/third-parties/GoogleRecaptcha/{GoogleRecaptcha.jsx → GoogleRecaptcha.js} +0 -0
- /package/dist/ui/AlertDialog/{AlertDialog.jsx → AlertDialog.js} +0 -0
- /package/dist/ui/Avatar/{Avatar.jsx → Avatar.js} +0 -0
- /package/dist/ui/Checkbox/{Checkbox.jsx → Checkbox.js} +0 -0
- /package/dist/ui/Clipboard/{Clipboard.jsx → Clipboard.js} +0 -0
- /package/dist/ui/Collapsible/{Collapsible.jsx → Collapsible.js} +0 -0
- /package/dist/ui/Combobox/{Combobox.jsx → Combobox.js} +0 -0
- /package/dist/ui/DatePicker/{DatePicker.jsx → DatePicker.js} +0 -0
- /package/dist/ui/Dialog/{Dialog.jsx → Dialog.js} +0 -0
- /package/dist/ui/Drawer/{Drawer.jsx → Drawer.js} +0 -0
- /package/dist/ui/Field/{Field.jsx → Field.js} +0 -0
- /package/dist/ui/Menu/{Menu.jsx → Menu.js} +0 -0
- /package/dist/ui/NumberInput/{NumberInput.jsx → NumberInput.js} +0 -0
- /package/dist/ui/PasswordInput/{PasswordInput.jsx → PasswordInput.js} +0 -0
- /package/dist/ui/PinInput/{PinInput.jsx → PinInput.js} +0 -0
- /package/dist/ui/Popover/{Popover.jsx → Popover.js} +0 -0
- /package/dist/ui/Progress/{Progress.jsx → Progress.js} +0 -0
- /package/dist/ui/SegmentGroup/{SegmentGroup.jsx → SegmentGroup.js} +0 -0
- /package/dist/ui/Select/{Select.jsx → Select.js} +0 -0
- /package/dist/ui/Table/{Table.jsx → Table.js} +0 -0
- /package/dist/ui/Tabs/{Tabs.jsx → Tabs.js} +0 -0
- /package/dist/ui/Tooltip/{Tooltip.jsx → Tooltip.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type BetRecord, type BetRecordsInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useBetRecordsQuery: InfiniteQuery<PaginatedQueryResult<BetRecord>, BetRecordsInput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateGCashDepositInput, type Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateGCashDepositMutation: Mutation<Deposit, SetOptional<CreateGCashDepositInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateGCashWithdrawalInput } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateGCashWithdrawalMutation: Mutation<string, SetOptional<CreateGCashWithdrawalInput, 'id'>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FavoriteGame, type Game, type GameSession } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { Mutation } from '
|
|
2
|
+
import type { Mutation } from '~/types';
|
|
3
3
|
export declare const useCreateGameSessionMutation: Mutation<GameSession, Game | FavoriteGame>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateAIOInstapayWithdrawalInput } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateInstapayWithdrawalMutation: Mutation<string, SetOptional<CreateAIOInstapayWithdrawalInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateMayaAppDepositInput, type Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateMayaAppDepositMutation: Mutation<Deposit, SetOptional<CreateMayaAppDepositInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateMayaAppWithdrawalInput } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateMayaAppWithdrawalMutation: Mutation<string, SetOptional<CreateMayaAppWithdrawalInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateMayaDepositInput, type Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateMayaDepositMutation: Mutation<Deposit, SetOptional<CreateMayaDepositInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateMayaWithdrawalInput } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateMayaWithdrawalMutation: Mutation<string, SetOptional<CreateMayaWithdrawalInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateAIOOnlineBankDepositInput, type Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateOnlineBankDepositMutation: Mutation<Deposit, SetOptional<CreateAIOOnlineBankDepositInput, 'id'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CreateAIOQRPHDeposit, type Deposit } from '@opexa/portal-sdk-core';
|
|
2
2
|
import type { SetOptional } from 'type-fest';
|
|
3
|
-
import type { Mutation } from '
|
|
3
|
+
import type { Mutation } from '~/types';
|
|
4
4
|
export declare const useCreateQRPHDepositMutation: Mutation<Deposit, SetOptional<CreateAIOQRPHDeposit, 'id'>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type DepositRecord, type DepositRecordsInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useDepositRecordsQuery: InfiniteQuery<PaginatedQueryResult<DepositRecord>, DepositRecordsInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Query } from '
|
|
1
|
+
import type { Query } from '~/types';
|
|
2
2
|
export declare const useDepositsCountQuery: Query<number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FavoriteGame, type Game, type GameSession } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { Mutation } from '
|
|
2
|
+
import type { Mutation } from '~/types';
|
|
3
3
|
export declare const useEndGameSessionMutation: Mutation<void, {
|
|
4
4
|
game: Game | FavoriteGame;
|
|
5
5
|
session: GameSession;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Game, type GamesInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useGamesQuery: InfiniteQuery<PaginatedQueryResult<Game>, GamesInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Query } from '
|
|
1
|
+
import type { Query } from '~/types';
|
|
2
2
|
export declare const useIsMayaSessionValidQuery: Query<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JackpotPayout, type JackpotPayoutsInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useJackpotPayoutsQuery: InfiniteQuery<PaginatedQueryResult<JackpotPayout>, JackpotPayoutsInput>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Jackpot, type JackpotsInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useJackpotsQuery: InfiniteQuery<PaginatedQueryResult<Jackpot>, JackpotsInput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLocaleInfo: () => import("
|
|
1
|
+
export declare const useLocaleInfo: () => import("~/utils").LocaleInfo;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Mutation } from '
|
|
1
|
+
import type { Mutation } from '~/types';
|
|
2
2
|
export declare const useMarkGameAsFavoriteMutation: Mutation<string, string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Mutation } from '
|
|
1
|
+
import type { Mutation } from '~/types';
|
|
2
2
|
export declare const useMarkMessageAsReadMutation: Mutation<string, string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Message, type MessagesInput, type PaginatedQueryResult } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useMessagesQuery: InfiniteQuery<PaginatedQueryResult<Message>, MessagesInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Query, Session } from '
|
|
1
|
+
import type { Query, Session } from '~/types';
|
|
2
2
|
export declare const useSessionQuery: Query<Session>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Authenticator } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { Mutation } from '
|
|
2
|
+
import type { Mutation } from '~/types';
|
|
3
3
|
import { type SignInInput } from '../services';
|
|
4
4
|
export declare const useSignInMutation: Mutation<Authenticator | null, SignInInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Mutation } from '
|
|
1
|
+
import type { Mutation } from '~/types';
|
|
2
2
|
export declare const useSignOutMutation: Mutation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RegisterMemberAccountViaMobileInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { Mutation } from '
|
|
2
|
+
import type { Mutation } from '~/types';
|
|
3
3
|
export interface SignUpMutationInput extends RegisterMemberAccountViaMobileInput {
|
|
4
4
|
}
|
|
5
5
|
export declare const useSignUpMutation: Mutation<void, SignUpMutationInput>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PaginatedQueryResult, type Tournament, type TournamentsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useTournamentsQuery: InfiniteQuery<PaginatedQueryResult<Tournament>, TournamentsInput>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PaginatedQueryResult, type TransactionRecord, type TransactionRecordsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useTransactionRecordsQuery: InfiniteQuery<PaginatedQueryResult<TransactionRecord>, TransactionRecordsInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Mutation } from '
|
|
1
|
+
import type { Mutation } from '~/types';
|
|
2
2
|
export declare const useUnmarkGameAsFavoriteMutation: Mutation<void, string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PaginatedQueryResult, type WithdrawalRecord, type WithdrawalRecordsInput } from '@opexa/portal-sdk-core';
|
|
2
|
-
import type { InfiniteQuery } from '
|
|
2
|
+
import type { InfiniteQuery } from '~/types';
|
|
3
3
|
export declare const useWithdrawalRecordsQuery: InfiniteQuery<PaginatedQueryResult<WithdrawalRecord>, WithdrawalRecordsInput>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Session } from '
|
|
1
|
+
import type { Session } from '~/types';
|
|
2
2
|
export declare const getSession: () => Promise<Session>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { createSplitProps } from '../../utils/index.js';
|
|
3
4
|
export function createRecipeContext(recipe) {
|
|
@@ -10,9 +11,7 @@ export function createRecipeContext(recipe) {
|
|
|
10
11
|
const StyledComponent = (props) => {
|
|
11
12
|
const [recipeProps, localProps] = createSplitProps(recipe.variantKeys)(props);
|
|
12
13
|
const context = recipe(recipeProps);
|
|
13
|
-
return (
|
|
14
|
-
<Component {...localProps}/>
|
|
15
|
-
</RecipeContext.Provider>);
|
|
14
|
+
return (_jsx(RecipeContext.Provider, { value: context, children: _jsx(Component, { ...localProps }) }));
|
|
16
15
|
};
|
|
17
16
|
return StyledComponent;
|
|
18
17
|
}
|
|
@@ -31,9 +30,7 @@ export function createRecipeContext(recipe) {
|
|
|
31
30
|
...recipeProps,
|
|
32
31
|
className: userDefinedClassName,
|
|
33
32
|
});
|
|
34
|
-
return (
|
|
35
|
-
<Component {...localProps} className={className}/>
|
|
36
|
-
</RecipeContext.Provider>);
|
|
33
|
+
return (_jsx(RecipeContext.Provider, { value: context, children: _jsx(Component, { ...localProps, className: className }) }));
|
|
37
34
|
};
|
|
38
35
|
StyledComponent.displayName = Component.displayName || Component.name;
|
|
39
36
|
return StyledComponent;
|
|
@@ -55,7 +52,7 @@ export function createRecipeContext(recipe) {
|
|
|
55
52
|
...recipeProps,
|
|
56
53
|
className: userDefinedClassName,
|
|
57
54
|
});
|
|
58
|
-
return
|
|
55
|
+
return _jsx(Component, { ...localProps, className: className });
|
|
59
56
|
};
|
|
60
57
|
StyledComponent.displayName = Component.displayName || Component.name;
|
|
61
58
|
return StyledComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './createRecipeContext';
|
|
1
|
+
export * from './createRecipeContext.js';
|
|
2
2
|
export * from './toaster.js';
|
|
@@ -26,4 +26,4 @@ export interface AccountProps {
|
|
|
26
26
|
/** @default '/account/payment-methods' */
|
|
27
27
|
accountPaymentMethodsUrl?: string;
|
|
28
28
|
}
|
|
29
|
-
export declare function Account(props: AccountProps): import("react").JSX.Element;
|
|
29
|
+
export declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Portal } from '@ark-ui/react';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import Link from 'next/link';
|
|
6
|
+
import { useShallow } from 'zustand/shallow';
|
|
7
|
+
import { useAccountQuery, useGlobalStore, useLocaleInfo, useSignOutMutation, useUnreadMessagesCountQuery, useWalletQuery, } from '../../client/hooks/index.js';
|
|
8
|
+
import { AlertCircleIcon, ChevronLeftIcon, ChevronRightIcon, CoinsStacked02Icon, CoinsSwap02Icon, CreditCard02Icon, FileCheck02Icon, Gift01Icon, Lock01Icon, Logout01Icon, Settings02Icon, User01Icon, XIcon, } from '../../icons/index.js';
|
|
9
|
+
import avatarPlaceholder from '../../images/placeholder-avatar.png';
|
|
10
|
+
import { Badge, Button, Drawer, IconButton, Popover, Presence } from '../../ui/index.js';
|
|
11
|
+
import { formatNumber, parseDecimal } from '../../utils/index.js';
|
|
12
|
+
import { accountRecipe } from './account.recipe.js';
|
|
13
|
+
const recipe = accountRecipe();
|
|
14
|
+
export function Account(props) {
|
|
15
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
16
|
+
account: ctx.account,
|
|
17
|
+
account__mobile: ctx.account__mobile,
|
|
18
|
+
accountSettings: ctx.accountSettings,
|
|
19
|
+
})));
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Drawer.Root, { open: globalStore.account__mobile.open, onOpenChange: (details) => {
|
|
21
|
+
globalStore.account__mobile.setOpen(details.open);
|
|
22
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
23
|
+
}, lazyMount: true, unmountOnExit: true, children: [_jsx(Drawer.Trigger, { asChild: true, className: "lg:hidden", children: props.children ?? (_jsx(IconButton, { size: "sm", colorScheme: "gray", children: globalStore.account__mobile.open ? (_jsx(XIcon, {})) : (_jsx(Image, { src: avatarPlaceholder, alt: "", width: 100, height: 100, className: "size-10" })) })) }), _jsx(Portal, { children: _jsx(Drawer.Positioner, { children: _jsxs(Drawer.Content, { className: "relative top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6", style: {
|
|
24
|
+
['--top']: props.offsetTop ?? '0px',
|
|
25
|
+
}, children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: props.rewardsUrl, betRecordsUrl: props.betRecordsUrl, transactionsUrl: props.transactionsUrl }), _jsx(AccountSettingsMenu, { accountInfoUrl: props.accountInfoUrl, accountSecurityUrl: props.accountSecurityUrl, accountVerificationUrl: props.accountVerificationUrl, accountPaymentMethodsUrl: props.accountPaymentMethodsUrl })] }) }) })] }), _jsxs(Popover.Root, { open: globalStore.account.open, onOpenChange: (details) => {
|
|
26
|
+
globalStore.account.setOpen(details.open);
|
|
27
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
28
|
+
}, lazyMount: true, unmountOnExit: true, positioning: {
|
|
29
|
+
placement: 'bottom',
|
|
30
|
+
strategy: 'fixed',
|
|
31
|
+
}, children: [_jsx(Popover.Trigger, { className: "hidden lg:flex", asChild: true, children: props.children ?? (_jsx(IconButton, { size: "sm", colorScheme: "gray", children: _jsx(Image, { src: avatarPlaceholder, alt: "", width: 48, height: 48, className: "size-10" }) })) }), _jsx(Portal, { children: _jsx(Popover.Positioner, { children: _jsxs(Popover.Content, { className: "border-border-primary bg-bg-primary relative z-popover w-[23.438rem] overflow-hidden rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: props.rewardsUrl, betRecordsUrl: props.betRecordsUrl, transactionsUrl: props.transactionsUrl }), _jsx(AccountSettingsMenu, { accountInfoUrl: props.accountInfoUrl, accountSecurityUrl: props.accountSecurityUrl, accountVerificationUrl: props.accountVerificationUrl, accountPaymentMethodsUrl: props.accountPaymentMethodsUrl })] }) }) })] })] }));
|
|
32
|
+
}
|
|
33
|
+
function Profile() {
|
|
34
|
+
const accountQuery = useAccountQuery();
|
|
35
|
+
const account = accountQuery.data;
|
|
36
|
+
return (_jsxs("div", { className: "flex shrink-0 items-center gap-lg", children: [_jsx(Image, { src: avatarPlaceholder, alt: "", width: 48, height: 48, className: "size-12" }), _jsxs("div", { className: "grow", children: [_jsx("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: account?.name }), _jsx("p", { className: "text-text-tertiary-600 leading-tight", children: account?.nickName ?? account?.emailAddress ?? account?.realName })] }), _jsxs(Badge.Root, { colorScheme: account?.verified ? 'success' : 'danger', className: "self-start", children: [_jsx(Badge.Indicator, {}), _jsx(Badge.Label, { children: account?.verified ? 'Verified' : 'Unverified' })] })] }));
|
|
37
|
+
}
|
|
38
|
+
function Wallet() {
|
|
39
|
+
const localeInfo = useLocaleInfo();
|
|
40
|
+
const walletQuery = useWalletQuery({
|
|
41
|
+
refetchInterval: 1000,
|
|
42
|
+
});
|
|
43
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
44
|
+
profile: ctx.account,
|
|
45
|
+
mobileProfile: ctx.account__mobile,
|
|
46
|
+
depositWithdrawal: ctx.depositWithdrawal,
|
|
47
|
+
})));
|
|
48
|
+
const depositBalance = parseDecimal(walletQuery.data?.balance, 0);
|
|
49
|
+
const bonusBalance = parseDecimal(walletQuery.data?.bonus, 0);
|
|
50
|
+
const totalBalance = depositBalance + bonusBalance;
|
|
51
|
+
return (_jsxs("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [_jsx("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }), _jsx("div", { className: "text-3xl font-bold", children: formatNumber(totalBalance, {
|
|
52
|
+
currency: localeInfo?.currency.code,
|
|
53
|
+
minDecimalPlaces: 2,
|
|
54
|
+
}) }), _jsxs("div", { className: "mt-1.5 flex gap-7xl", children: [_jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(depositBalance, {
|
|
55
|
+
currency: localeInfo?.currency.code,
|
|
56
|
+
minDecimalPlaces: 2,
|
|
57
|
+
}) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Bonus Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(bonusBalance, {
|
|
58
|
+
currency: localeInfo?.currency.code,
|
|
59
|
+
minDecimalPlaces: 2,
|
|
60
|
+
}) })] })] }), _jsxs("div", { className: "mt-3 flex gap-lg", children: [_jsx(Button, { size: "xs", variant: "outline", onClick: () => {
|
|
61
|
+
globalStore.depositWithdrawal.setOpen(true);
|
|
62
|
+
globalStore.depositWithdrawal.setTab('WITHDRAWAL');
|
|
63
|
+
globalStore.profile.setOpen(false);
|
|
64
|
+
globalStore.mobileProfile.setOpen(false);
|
|
65
|
+
}, children: "Withdraw" }), _jsx(Button, { size: "xs", onClick: () => {
|
|
66
|
+
globalStore.depositWithdrawal.setOpen(true);
|
|
67
|
+
globalStore.depositWithdrawal.setTab('DEPOSIT');
|
|
68
|
+
globalStore.profile.setOpen(false);
|
|
69
|
+
globalStore.mobileProfile.setOpen(false);
|
|
70
|
+
}, children: "Deposit" })] })] }));
|
|
71
|
+
}
|
|
72
|
+
function Links(props) {
|
|
73
|
+
const signOutMutation = useSignOutMutation();
|
|
74
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
75
|
+
account: ctx.account,
|
|
76
|
+
account__mobile: ctx.account__mobile,
|
|
77
|
+
accountSettings: ctx.accountSettings,
|
|
78
|
+
messages: ctx.messages,
|
|
79
|
+
})));
|
|
80
|
+
const unreadMessagesCountQuery = useUnreadMessagesCountQuery({}, { refetchInterval: 5000 });
|
|
81
|
+
return (_jsxs("nav", { className: recipe.nav({ className: 'mt-xl' }), children: [_jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), onClick: () => {
|
|
82
|
+
globalStore.account.setOpen(false);
|
|
83
|
+
globalStore.account__mobile.setOpen(false);
|
|
84
|
+
globalStore.messages.setOpen(true);
|
|
85
|
+
}, children: [_jsx(Logout01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Notifications" }), _jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: unreadMessagesCountQuery.data ?? 0 }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.rewardsUrl ?? '/rewards', className: recipe.navItemLink(), onClick: () => {
|
|
86
|
+
globalStore.account.setOpen(false);
|
|
87
|
+
globalStore.account__mobile.setOpen(false);
|
|
88
|
+
}, children: [_jsx(Gift01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Rewards" }), _jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: "0" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), onClick: () => {
|
|
89
|
+
globalStore.accountSettings.setCollapsed(false);
|
|
90
|
+
}, children: [_jsx(Settings02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Settings" }), _jsx("span", { className: recipe.navItemBadge(), "data-type": "error", children: _jsx(AlertCircleIcon, {}) }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) }), _jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.betRecordsUrl ?? '/bet-records', className: recipe.navItemLink(), onClick: () => {
|
|
91
|
+
globalStore.account.setOpen(false);
|
|
92
|
+
globalStore.account__mobile.setOpen(false);
|
|
93
|
+
}, children: [_jsx(CoinsStacked02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.transactionsUrl ?? '/transactions', className: recipe.navItemLink(), onClick: () => {
|
|
94
|
+
globalStore.account.setOpen(false);
|
|
95
|
+
globalStore.account__mobile.setOpen(false);
|
|
96
|
+
}, children: [_jsx(CoinsSwap02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Transactions" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), disabled: signOutMutation.isPending, onClick: () => {
|
|
97
|
+
signOutMutation.mutate();
|
|
98
|
+
globalStore.account.setOpen(false);
|
|
99
|
+
globalStore.account__mobile.setOpen(false);
|
|
100
|
+
}, children: [_jsx(Logout01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Log Out" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })] }));
|
|
101
|
+
}
|
|
102
|
+
function AccountSettingsMenu(props) {
|
|
103
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
104
|
+
account: ctx.account,
|
|
105
|
+
account__mobile: ctx.account__mobile,
|
|
106
|
+
accountSettings: ctx.accountSettings,
|
|
107
|
+
})));
|
|
108
|
+
return (_jsxs(Presence, { present: !globalStore.accountSettings.collapsed, lazyMount: true, className: "bg-bg-primary ui-open:animate-slide-in-right ui-closed:animate-slide-out-right absolute left-0 top-0 size-full overflow-y-auto", children: [_jsxs("div", { className: "bg-bg-primary-alt flex items-center gap-xl px-xl py-md", children: [_jsx(IconButton, { size: "2xs", variant: "outline", colorScheme: "gray", onClick: () => {
|
|
109
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
110
|
+
}, children: _jsx(ChevronLeftIcon, {}) }), _jsx("h2", { className: "text-text-primary-900 text-lg font-semibold", children: "Settings" })] }), _jsx("nav", { className: recipe.nav({ className: 'p-4' }), children: _jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountInfoUrl ?? '/account', className: recipe.navItemLink(), onClick: () => {
|
|
111
|
+
globalStore.account.setOpen(false);
|
|
112
|
+
globalStore.account__mobile.setOpen(false);
|
|
113
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
114
|
+
}, children: [_jsx(User01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Account Info" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountSecurityUrl ?? '/account/security', className: recipe.navItemLink(), onClick: () => {
|
|
115
|
+
globalStore.account.setOpen(false);
|
|
116
|
+
globalStore.account__mobile.setOpen(false);
|
|
117
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
118
|
+
}, children: [_jsx(Lock01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Security" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountVerificationUrl ?? '/account/verification', className: recipe.navItemLink(), onClick: () => {
|
|
119
|
+
globalStore.account.setOpen(false);
|
|
120
|
+
globalStore.account__mobile.setOpen(false);
|
|
121
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
122
|
+
}, children: [_jsx(FileCheck02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Personal Verification" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountPaymentMethodsUrl ?? '/account/payment-methods', className: recipe.navItemLink(), onClick: () => {
|
|
123
|
+
globalStore.account.setOpen(false);
|
|
124
|
+
globalStore.account__mobile.setOpen(false);
|
|
125
|
+
globalStore.accountSettings.setCollapsed(true);
|
|
126
|
+
}, children: [_jsx(CreditCard02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Payment Methods" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }) })] }));
|
|
127
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Account';
|
|
1
|
+
export * from './Account.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { format } from 'date-fns';
|
|
4
|
+
import { noop } from 'lodash-es';
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
import { useAccountQuery, useLocaleInfo, useMobileNumberParser, } from '../../client/hooks/index.js';
|
|
7
|
+
import { FacebookIcon, GoogleIcon } from '../../icons/index.js';
|
|
8
|
+
import avatar from '../../images/placeholder-avatar.png';
|
|
9
|
+
import { Button, Field, IconButton } from '../../ui/index.js';
|
|
10
|
+
export function AccountInfo(props) {
|
|
11
|
+
const localeInfo = useLocaleInfo();
|
|
12
|
+
const accountQuery = useAccountQuery();
|
|
13
|
+
const account = accountQuery.data;
|
|
14
|
+
const mobileNumberParser = useMobileNumberParser();
|
|
15
|
+
return (_jsxs("div", { className: props.className, children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Profile Info" }), _jsxs("div", { className: "bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border", children: [_jsx("div", { className: "border-border-secondary border-b px-4 py-5", children: _jsxs("div", { className: "flex items-center gap-xl", children: [_jsx(Image, { src: avatar, alt: "", width: 80, height: 80, className: "size-14 shrink-0 rounded-md object-cover" }), _jsxs("div", { children: [_jsx("h3", { className: "text-text-secondary-700 text-lg font-semibold leading-tight", children: account?.name }), _jsx("p", { className: "text-text-tertiary-600 leading-tight", children: account?.emailAddress ?? account?.nickName })] })] }) }), _jsx("div", { className: "flex justify-end px-xl py-lg", children: _jsx(Button, { size: "sm", variant: "outline", fullWidth: false, children: "Upload New Avatar" }) })] }), _jsx("h2", { className: "text-text-secondary-700 mt-6 text-sm font-semibold", children: "Contact Info" }), _jsxs("div", { className: "shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5", children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsx(localeInfo.country.flag, { className: "pointer-events-none absolute left-3.5 top-1/2 size-5 -translate-y-1/2" }), _jsx(Field.Input, { className: "pl-10.5", value: account?.mobileNumber
|
|
16
|
+
? mobileNumberParser.format(account?.mobileNumber)
|
|
17
|
+
: '', readOnly: true, onChange: noop })] })] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Email address" }), _jsx(Field.Input, { defaultValue: account?.emailAddress ?? '' })] })] }), _jsx("h2", { className: "text-text-secondary-700 mt-6 text-sm font-semibold", children: "Personal Data" }), _jsxs("div", { className: "shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5", children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Real name" }), _jsx(Field.Input, { value: account?.realName ?? '', onChange: noop, readOnly: true })] }), _jsxs(Field.Root, { className: "mt-6", children: [_jsx(Field.Label, { children: "Date of birth" }), _jsx(Field.Input, { type: "date", value: account?.birthDay ? format(account.birthDay, 'yyyy-MM-dd') : '', readOnly: true })] })] }), _jsx("h2", { className: "text-text-secondary-700 mt-6 text-sm font-semibold", children: "Account Connections" }), _jsxs("div", { className: "shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5", children: [_jsxs("div", { className: "flex items-center", children: [_jsxs("div", { className: "flex grow items-center gap-sm", children: [_jsx(IconButton, { variant: "outline", colorScheme: "gray", children: _jsx(GoogleIcon, { className: "size-6" }) }), _jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium leading-tight", children: "Google" }), _jsx("p", { className: "text-text-secondary-700 mt-xs text-xs leading-tight", children: "Not Connected" })] })] }), _jsx(Button, { fullWidth: false, children: "Connect" })] }), _jsxs("div", { className: "mt-6 flex items-center", children: [_jsxs("div", { className: "flex grow items-center gap-sm", children: [_jsx(IconButton, { variant: "outline", colorScheme: "gray", children: _jsx(FacebookIcon, { className: "size-6" }) }), _jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium leading-tight", children: "Facebook" }), _jsx("p", { className: "text-text-success-primary-600 mt-xs text-xs leading-tight", children: "Connected" })] })] }), _jsx("button", { className: "text-button-tertiary-error-fg text-sm font-semibold", children: "Disconnect" })] })] })] }));
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AccountInfo';
|
|
1
|
+
export * from './AccountInfo.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AccountPaymentMethods';
|
|
1
|
+
export * from './AccountPaymentMethods.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface AccountSecurityProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function AccountSecurity(props: AccountSecurityProps): import("react").JSX.Element;
|
|
4
|
+
export declare function AccountSecurity(props: AccountSecurityProps): import("react/jsx-runtime").JSX.Element;
|