@opexa/portal-components 0.0.29 → 0.0.30
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/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 +1 -1
- 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,313 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Portal } from '@ark-ui/react';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useAccountQuery, useGlobalStore, useLocaleInfo, useSignOutMutation, useUnreadMessagesCountQuery, useWalletQuery, } from '../../client/hooks/index.js';
|
|
7
|
-
import { AlertCircleIcon, ChevronLeftIcon, ChevronRightIcon, CoinsStacked02Icon, CoinsSwap02Icon, CreditCard02Icon, FileCheck02Icon, Gift01Icon, Lock01Icon, Logout01Icon, Settings02Icon, User01Icon, XIcon, } from '../../icons/index.js';
|
|
8
|
-
import avatarPlaceholder from '../../images/placeholder-avatar.png';
|
|
9
|
-
import { Badge, Button, Drawer, IconButton, Popover, Presence } from '../../ui/index.js';
|
|
10
|
-
import { formatNumber, parseDecimal } from '../../utils/index.js';
|
|
11
|
-
import { accountRecipe } from './account.recipe.js';
|
|
12
|
-
const recipe = accountRecipe();
|
|
13
|
-
export function Account(props) {
|
|
14
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
15
|
-
account: ctx.account,
|
|
16
|
-
account__mobile: ctx.account__mobile,
|
|
17
|
-
accountSettings: ctx.accountSettings,
|
|
18
|
-
})));
|
|
19
|
-
return (<>
|
|
20
|
-
<Drawer.Root open={globalStore.account__mobile.open} onOpenChange={(details) => {
|
|
21
|
-
globalStore.account__mobile.setOpen(details.open);
|
|
22
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
23
|
-
}} lazyMount unmountOnExit>
|
|
24
|
-
<Drawer.Trigger asChild className="lg:hidden">
|
|
25
|
-
{props.children ?? (<IconButton size="sm" colorScheme="gray">
|
|
26
|
-
{globalStore.account__mobile.open ? (<XIcon />) : (<Image src={avatarPlaceholder} alt="" width={100} height={100} className="size-10"/>)}
|
|
27
|
-
</IconButton>)}
|
|
28
|
-
</Drawer.Trigger>
|
|
29
|
-
<Portal>
|
|
30
|
-
<Drawer.Positioner>
|
|
31
|
-
<Drawer.Content className="relative top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6" style={{
|
|
32
|
-
['--top']: props.offsetTop ?? '0px',
|
|
33
|
-
}}>
|
|
34
|
-
<Profile />
|
|
35
|
-
<Wallet />
|
|
36
|
-
<Links rewardsUrl={props.rewardsUrl} betRecordsUrl={props.betRecordsUrl} transactionsUrl={props.transactionsUrl}/>
|
|
37
|
-
<AccountSettingsMenu accountInfoUrl={props.accountInfoUrl} accountSecurityUrl={props.accountSecurityUrl} accountVerificationUrl={props.accountVerificationUrl} accountPaymentMethodsUrl={props.accountPaymentMethodsUrl}/>
|
|
38
|
-
</Drawer.Content>
|
|
39
|
-
</Drawer.Positioner>
|
|
40
|
-
</Portal>
|
|
41
|
-
</Drawer.Root>
|
|
42
|
-
|
|
43
|
-
<Popover.Root open={globalStore.account.open} onOpenChange={(details) => {
|
|
44
|
-
globalStore.account.setOpen(details.open);
|
|
45
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
46
|
-
}} lazyMount unmountOnExit positioning={{
|
|
47
|
-
placement: 'bottom',
|
|
48
|
-
strategy: 'fixed',
|
|
49
|
-
}}>
|
|
50
|
-
<Popover.Trigger className="hidden lg:flex" asChild>
|
|
51
|
-
{props.children ?? (<IconButton size="sm" colorScheme="gray">
|
|
52
|
-
<Image src={avatarPlaceholder} alt="" width={48} height={48} className="size-10"/>
|
|
53
|
-
</IconButton>)}
|
|
54
|
-
</Popover.Trigger>
|
|
55
|
-
<Portal>
|
|
56
|
-
<Popover.Positioner>
|
|
57
|
-
<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">
|
|
58
|
-
<Profile />
|
|
59
|
-
<Wallet />
|
|
60
|
-
<Links rewardsUrl={props.rewardsUrl} betRecordsUrl={props.betRecordsUrl} transactionsUrl={props.transactionsUrl}/>
|
|
61
|
-
<AccountSettingsMenu accountInfoUrl={props.accountInfoUrl} accountSecurityUrl={props.accountSecurityUrl} accountVerificationUrl={props.accountVerificationUrl} accountPaymentMethodsUrl={props.accountPaymentMethodsUrl}/>
|
|
62
|
-
</Popover.Content>
|
|
63
|
-
</Popover.Positioner>
|
|
64
|
-
</Portal>
|
|
65
|
-
</Popover.Root>
|
|
66
|
-
</>);
|
|
67
|
-
}
|
|
68
|
-
function Profile() {
|
|
69
|
-
const accountQuery = useAccountQuery();
|
|
70
|
-
const account = accountQuery.data;
|
|
71
|
-
return (<div className="flex shrink-0 items-center gap-lg">
|
|
72
|
-
<Image src={avatarPlaceholder} alt="" width={48} height={48} className="size-12"/>
|
|
73
|
-
<div className="grow">
|
|
74
|
-
<p className="text-text-secondary-700 font-semibold leading-tight">
|
|
75
|
-
{account?.name}
|
|
76
|
-
</p>
|
|
77
|
-
<p className="text-text-tertiary-600 leading-tight">
|
|
78
|
-
{account?.nickName ?? account?.emailAddress ?? account?.realName}
|
|
79
|
-
</p>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<Badge.Root colorScheme={account?.verified ? 'success' : 'danger'} className="self-start">
|
|
83
|
-
<Badge.Indicator />
|
|
84
|
-
<Badge.Label>
|
|
85
|
-
{account?.verified ? 'Verified' : 'Unverified'}
|
|
86
|
-
</Badge.Label>
|
|
87
|
-
</Badge.Root>
|
|
88
|
-
</div>);
|
|
89
|
-
}
|
|
90
|
-
function Wallet() {
|
|
91
|
-
const localeInfo = useLocaleInfo();
|
|
92
|
-
const walletQuery = useWalletQuery({
|
|
93
|
-
refetchInterval: 1000,
|
|
94
|
-
});
|
|
95
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
96
|
-
profile: ctx.account,
|
|
97
|
-
mobileProfile: ctx.account__mobile,
|
|
98
|
-
depositWithdrawal: ctx.depositWithdrawal,
|
|
99
|
-
})));
|
|
100
|
-
const depositBalance = parseDecimal(walletQuery.data?.balance, 0);
|
|
101
|
-
const bonusBalance = parseDecimal(walletQuery.data?.bonus, 0);
|
|
102
|
-
const totalBalance = depositBalance + bonusBalance;
|
|
103
|
-
return (<div className="border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl">
|
|
104
|
-
<div className="text-text-secondary-700 text-sm">Total Balance</div>
|
|
105
|
-
<div className="text-3xl font-bold">
|
|
106
|
-
{formatNumber(totalBalance, {
|
|
107
|
-
currency: localeInfo?.currency.code,
|
|
108
|
-
minDecimalPlaces: 2,
|
|
109
|
-
})}
|
|
110
|
-
</div>
|
|
111
|
-
<div className="mt-1.5 flex gap-7xl">
|
|
112
|
-
<div>
|
|
113
|
-
<p className="text-text-secondary-700 text-2xs">Deposit Balance</p>
|
|
114
|
-
<p className="text-medium text-text-primary-brand">
|
|
115
|
-
{formatNumber(depositBalance, {
|
|
116
|
-
currency: localeInfo?.currency.code,
|
|
117
|
-
minDecimalPlaces: 2,
|
|
118
|
-
})}
|
|
119
|
-
</p>
|
|
120
|
-
</div>
|
|
121
|
-
<div>
|
|
122
|
-
<p className="text-text-secondary-700 text-2xs">Bonus Balance</p>
|
|
123
|
-
<p className="text-medium text-text-primary-brand">
|
|
124
|
-
{formatNumber(bonusBalance, {
|
|
125
|
-
currency: localeInfo?.currency.code,
|
|
126
|
-
minDecimalPlaces: 2,
|
|
127
|
-
})}
|
|
128
|
-
</p>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<div className="mt-3 flex gap-lg">
|
|
133
|
-
<Button size="xs" variant="outline" onClick={() => {
|
|
134
|
-
globalStore.depositWithdrawal.setOpen(true);
|
|
135
|
-
globalStore.depositWithdrawal.setTab('WITHDRAWAL');
|
|
136
|
-
globalStore.profile.setOpen(false);
|
|
137
|
-
globalStore.mobileProfile.setOpen(false);
|
|
138
|
-
}}>
|
|
139
|
-
Withdraw
|
|
140
|
-
</Button>
|
|
141
|
-
<Button size="xs" onClick={() => {
|
|
142
|
-
globalStore.depositWithdrawal.setOpen(true);
|
|
143
|
-
globalStore.depositWithdrawal.setTab('DEPOSIT');
|
|
144
|
-
globalStore.profile.setOpen(false);
|
|
145
|
-
globalStore.mobileProfile.setOpen(false);
|
|
146
|
-
}}>
|
|
147
|
-
Deposit
|
|
148
|
-
</Button>
|
|
149
|
-
</div>
|
|
150
|
-
</div>);
|
|
151
|
-
}
|
|
152
|
-
function Links(props) {
|
|
153
|
-
const signOutMutation = useSignOutMutation();
|
|
154
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
155
|
-
account: ctx.account,
|
|
156
|
-
account__mobile: ctx.account__mobile,
|
|
157
|
-
accountSettings: ctx.accountSettings,
|
|
158
|
-
messages: ctx.messages,
|
|
159
|
-
})));
|
|
160
|
-
const unreadMessagesCountQuery = useUnreadMessagesCountQuery({}, { refetchInterval: 5000 });
|
|
161
|
-
return (<nav className={recipe.nav({ className: 'mt-xl' })}>
|
|
162
|
-
<ul>
|
|
163
|
-
<li className={recipe.navItemRoot()}>
|
|
164
|
-
<button type="button" className={recipe.navItemLink()} onClick={() => {
|
|
165
|
-
globalStore.account.setOpen(false);
|
|
166
|
-
globalStore.account__mobile.setOpen(false);
|
|
167
|
-
globalStore.messages.setOpen(true);
|
|
168
|
-
}}>
|
|
169
|
-
<Logout01Icon className={recipe.navItemIcon()}/>
|
|
170
|
-
<span className={recipe.navItemLabel()}>Notifications</span>
|
|
171
|
-
<span className={recipe.navItemBadge()} data-type="warning">
|
|
172
|
-
{unreadMessagesCountQuery.data ?? 0}
|
|
173
|
-
</span>
|
|
174
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
175
|
-
</button>
|
|
176
|
-
</li>
|
|
177
|
-
<li className={recipe.navItemRoot()}>
|
|
178
|
-
<Link href={props.rewardsUrl ?? '/rewards'} className={recipe.navItemLink()} onClick={() => {
|
|
179
|
-
globalStore.account.setOpen(false);
|
|
180
|
-
globalStore.account__mobile.setOpen(false);
|
|
181
|
-
}}>
|
|
182
|
-
<Gift01Icon className={recipe.navItemIcon()}/>
|
|
183
|
-
<span className={recipe.navItemLabel()}>Rewards</span>
|
|
184
|
-
<span className={recipe.navItemBadge()} data-type="warning">
|
|
185
|
-
0
|
|
186
|
-
</span>
|
|
187
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
188
|
-
</Link>
|
|
189
|
-
</li>
|
|
190
|
-
</ul>
|
|
191
|
-
|
|
192
|
-
<ul>
|
|
193
|
-
<li className={recipe.navItemRoot()}>
|
|
194
|
-
<button type="button" className={recipe.navItemLink()} onClick={() => {
|
|
195
|
-
globalStore.accountSettings.setCollapsed(false);
|
|
196
|
-
}}>
|
|
197
|
-
<Settings02Icon className={recipe.navItemIcon()}/>
|
|
198
|
-
<span className={recipe.navItemLabel()}>Settings</span>
|
|
199
|
-
<span className={recipe.navItemBadge()} data-type="error">
|
|
200
|
-
<AlertCircleIcon />
|
|
201
|
-
</span>
|
|
202
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
203
|
-
</button>
|
|
204
|
-
</li>
|
|
205
|
-
</ul>
|
|
206
|
-
|
|
207
|
-
<ul>
|
|
208
|
-
<li className={recipe.navItemRoot()}>
|
|
209
|
-
<Link href={props.betRecordsUrl ?? '/bet-records'} className={recipe.navItemLink()} onClick={() => {
|
|
210
|
-
globalStore.account.setOpen(false);
|
|
211
|
-
globalStore.account__mobile.setOpen(false);
|
|
212
|
-
}}>
|
|
213
|
-
<CoinsStacked02Icon className={recipe.navItemIcon()}/>
|
|
214
|
-
<span className={recipe.navItemLabel()}>Bet Records</span>
|
|
215
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
216
|
-
</Link>
|
|
217
|
-
</li>
|
|
218
|
-
<li className={recipe.navItemRoot()}>
|
|
219
|
-
<Link href={props.transactionsUrl ?? '/transactions'} className={recipe.navItemLink()} onClick={() => {
|
|
220
|
-
globalStore.account.setOpen(false);
|
|
221
|
-
globalStore.account__mobile.setOpen(false);
|
|
222
|
-
}}>
|
|
223
|
-
<CoinsSwap02Icon className={recipe.navItemIcon()}/>
|
|
224
|
-
<span className={recipe.navItemLabel()}>Transactions</span>
|
|
225
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
226
|
-
</Link>
|
|
227
|
-
</li>
|
|
228
|
-
</ul>
|
|
229
|
-
|
|
230
|
-
<ul>
|
|
231
|
-
<li className={recipe.navItemRoot()}>
|
|
232
|
-
<button type="button" className={recipe.navItemLink()} disabled={signOutMutation.isPending} onClick={() => {
|
|
233
|
-
signOutMutation.mutate();
|
|
234
|
-
globalStore.account.setOpen(false);
|
|
235
|
-
globalStore.account__mobile.setOpen(false);
|
|
236
|
-
}}>
|
|
237
|
-
<Logout01Icon className={recipe.navItemIcon()}/>
|
|
238
|
-
<span className={recipe.navItemLabel()}>Log Out</span>
|
|
239
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
240
|
-
</button>
|
|
241
|
-
</li>
|
|
242
|
-
</ul>
|
|
243
|
-
</nav>);
|
|
244
|
-
}
|
|
245
|
-
function AccountSettingsMenu(props) {
|
|
246
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
247
|
-
account: ctx.account,
|
|
248
|
-
account__mobile: ctx.account__mobile,
|
|
249
|
-
accountSettings: ctx.accountSettings,
|
|
250
|
-
})));
|
|
251
|
-
return (<Presence present={!globalStore.accountSettings.collapsed} lazyMount 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">
|
|
252
|
-
<div className="bg-bg-primary-alt flex items-center gap-xl px-xl py-md">
|
|
253
|
-
<IconButton size="2xs" variant="outline" colorScheme="gray" onClick={() => {
|
|
254
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
255
|
-
}}>
|
|
256
|
-
<ChevronLeftIcon />
|
|
257
|
-
</IconButton>
|
|
258
|
-
<h2 className="text-text-primary-900 text-lg font-semibold">
|
|
259
|
-
Settings
|
|
260
|
-
</h2>
|
|
261
|
-
</div>
|
|
262
|
-
<nav className={recipe.nav({ className: 'p-4' })}>
|
|
263
|
-
<ul>
|
|
264
|
-
<li className={recipe.navItemRoot()}>
|
|
265
|
-
<Link href={props.accountInfoUrl ?? '/account'} className={recipe.navItemLink()} onClick={() => {
|
|
266
|
-
globalStore.account.setOpen(false);
|
|
267
|
-
globalStore.account__mobile.setOpen(false);
|
|
268
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
269
|
-
}}>
|
|
270
|
-
<User01Icon className={recipe.navItemIcon()}/>
|
|
271
|
-
<span className={recipe.navItemLabel()}>Account Info</span>
|
|
272
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
273
|
-
</Link>
|
|
274
|
-
</li>
|
|
275
|
-
<li className={recipe.navItemRoot()}>
|
|
276
|
-
<Link href={props.accountSecurityUrl ?? '/account/security'} className={recipe.navItemLink()} onClick={() => {
|
|
277
|
-
globalStore.account.setOpen(false);
|
|
278
|
-
globalStore.account__mobile.setOpen(false);
|
|
279
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
280
|
-
}}>
|
|
281
|
-
<Lock01Icon className={recipe.navItemIcon()}/>
|
|
282
|
-
<span className={recipe.navItemLabel()}>Security</span>
|
|
283
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
284
|
-
</Link>
|
|
285
|
-
</li>
|
|
286
|
-
<li className={recipe.navItemRoot()}>
|
|
287
|
-
<Link href={props.accountVerificationUrl ?? '/account/verification'} className={recipe.navItemLink()} onClick={() => {
|
|
288
|
-
globalStore.account.setOpen(false);
|
|
289
|
-
globalStore.account__mobile.setOpen(false);
|
|
290
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
291
|
-
}}>
|
|
292
|
-
<FileCheck02Icon className={recipe.navItemIcon()}/>
|
|
293
|
-
<span className={recipe.navItemLabel()}>
|
|
294
|
-
Personal Verification
|
|
295
|
-
</span>
|
|
296
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
297
|
-
</Link>
|
|
298
|
-
</li>
|
|
299
|
-
<li className={recipe.navItemRoot()}>
|
|
300
|
-
<Link href={props.accountPaymentMethodsUrl ?? '/account/payment-methods'} className={recipe.navItemLink()} onClick={() => {
|
|
301
|
-
globalStore.account.setOpen(false);
|
|
302
|
-
globalStore.account__mobile.setOpen(false);
|
|
303
|
-
globalStore.accountSettings.setCollapsed(true);
|
|
304
|
-
}}>
|
|
305
|
-
<CreditCard02Icon className={recipe.navItemIcon()}/>
|
|
306
|
-
<span className={recipe.navItemLabel()}>Payment Methods</span>
|
|
307
|
-
<ChevronRightIcon className={recipe.navItemIndicator()}/>
|
|
308
|
-
</Link>
|
|
309
|
-
</li>
|
|
310
|
-
</ul>
|
|
311
|
-
</nav>
|
|
312
|
-
</Presence>);
|
|
313
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { format } from 'date-fns';
|
|
3
|
-
import { noop } from 'lodash-es';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import { useAccountQuery, useLocaleInfo, useMobileNumberParser, } from '../../client/hooks/index.js';
|
|
6
|
-
import { FacebookIcon, GoogleIcon } from '../../icons/index.js';
|
|
7
|
-
import avatar from '../../images/placeholder-avatar.png';
|
|
8
|
-
import { Button, Field, IconButton } from '../../ui/index.js';
|
|
9
|
-
export function AccountInfo(props) {
|
|
10
|
-
const localeInfo = useLocaleInfo();
|
|
11
|
-
const accountQuery = useAccountQuery();
|
|
12
|
-
const account = accountQuery.data;
|
|
13
|
-
const mobileNumberParser = useMobileNumberParser();
|
|
14
|
-
return (<div className={props.className}>
|
|
15
|
-
<h2 className="text-text-secondary-700 text-sm font-semibold">
|
|
16
|
-
Profile Info
|
|
17
|
-
</h2>
|
|
18
|
-
<div className="bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border">
|
|
19
|
-
<div className="border-border-secondary border-b px-4 py-5">
|
|
20
|
-
<div className="flex items-center gap-xl">
|
|
21
|
-
<Image src={avatar} alt="" width={80} height={80} className="size-14 shrink-0 rounded-md object-cover"/>
|
|
22
|
-
<div>
|
|
23
|
-
<h3 className="text-text-secondary-700 text-lg font-semibold leading-tight">
|
|
24
|
-
{account?.name}
|
|
25
|
-
</h3>
|
|
26
|
-
<p className="text-text-tertiary-600 leading-tight">
|
|
27
|
-
{account?.emailAddress ?? account?.nickName}
|
|
28
|
-
</p>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div className="flex justify-end px-xl py-lg">
|
|
33
|
-
<Button size="sm" variant="outline" fullWidth={false}>
|
|
34
|
-
Upload New Avatar
|
|
35
|
-
</Button>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<h2 className="text-text-secondary-700 mt-6 text-sm font-semibold">
|
|
40
|
-
Contact Info
|
|
41
|
-
</h2>
|
|
42
|
-
|
|
43
|
-
<div className="shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5">
|
|
44
|
-
<Field.Root>
|
|
45
|
-
<Field.Label>Mobile Number</Field.Label>
|
|
46
|
-
<div className="relative">
|
|
47
|
-
<localeInfo.country.flag className="pointer-events-none absolute left-3.5 top-1/2 size-5 -translate-y-1/2"/>
|
|
48
|
-
<Field.Input className="pl-10.5" value={account?.mobileNumber
|
|
49
|
-
? mobileNumberParser.format(account?.mobileNumber)
|
|
50
|
-
: ''} readOnly onChange={noop}/>
|
|
51
|
-
</div>
|
|
52
|
-
</Field.Root>
|
|
53
|
-
|
|
54
|
-
<Field.Root className="mt-6">
|
|
55
|
-
<Field.Label>Email address</Field.Label>
|
|
56
|
-
<Field.Input defaultValue={account?.emailAddress ?? ''}/>
|
|
57
|
-
</Field.Root>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<h2 className="text-text-secondary-700 mt-6 text-sm font-semibold">
|
|
61
|
-
Personal Data
|
|
62
|
-
</h2>
|
|
63
|
-
|
|
64
|
-
<div className="shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5">
|
|
65
|
-
<Field.Root>
|
|
66
|
-
<Field.Label>Real name</Field.Label>
|
|
67
|
-
<Field.Input value={account?.realName ?? ''} onChange={noop} readOnly/>
|
|
68
|
-
</Field.Root>
|
|
69
|
-
|
|
70
|
-
<Field.Root className="mt-6">
|
|
71
|
-
<Field.Label>Date of birth</Field.Label>
|
|
72
|
-
<Field.Input type="date" value={account?.birthDay ? format(account.birthDay, 'yyyy-MM-dd') : ''} readOnly/>
|
|
73
|
-
</Field.Root>
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
<h2 className="text-text-secondary-700 mt-6 text-sm font-semibold">
|
|
77
|
-
Account Connections
|
|
78
|
-
</h2>
|
|
79
|
-
|
|
80
|
-
<div className="shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5">
|
|
81
|
-
<div className="flex items-center">
|
|
82
|
-
<div className="flex grow items-center gap-sm">
|
|
83
|
-
<IconButton variant="outline" colorScheme="gray">
|
|
84
|
-
<GoogleIcon className="size-6"/>
|
|
85
|
-
</IconButton>
|
|
86
|
-
<div>
|
|
87
|
-
<p className="text-sm font-medium leading-tight">Google</p>
|
|
88
|
-
<p className="text-text-secondary-700 mt-xs text-xs leading-tight">
|
|
89
|
-
Not Connected
|
|
90
|
-
</p>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
<Button fullWidth={false}>Connect</Button>
|
|
94
|
-
</div>
|
|
95
|
-
<div className="mt-6 flex items-center">
|
|
96
|
-
<div className="flex grow items-center gap-sm">
|
|
97
|
-
<IconButton variant="outline" colorScheme="gray">
|
|
98
|
-
<FacebookIcon className="size-6"/>
|
|
99
|
-
</IconButton>
|
|
100
|
-
<div>
|
|
101
|
-
<p className="text-sm font-medium leading-tight">Facebook</p>
|
|
102
|
-
<p className="text-text-success-primary-600 mt-xs text-xs leading-tight">
|
|
103
|
-
Connected
|
|
104
|
-
</p>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<button className="text-button-tertiary-error-fg text-sm font-semibold">
|
|
108
|
-
Disconnect
|
|
109
|
-
</button>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
</div>);
|
|
113
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { ark, createListCollection, Portal } from '@ark-ui/react';
|
|
3
|
-
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
import { useProfileCompletionQuery } from '../../client/hooks/index.js';
|
|
5
|
-
import { AlertCircleIcon, CheckIcon, CheckVerified02Icon, ChevronDownIcon, EyeIcon, EyeOffIcon, } from '../../icons/index.js';
|
|
6
|
-
import { Field, PasswordInput, Select } from '../../ui/index.js';
|
|
7
|
-
export function AccountSecurity(props) {
|
|
8
|
-
const profileCompletionQuery = useProfileCompletionQuery();
|
|
9
|
-
const profileCompletion = profileCompletionQuery.data;
|
|
10
|
-
return (<div className={props.className}>
|
|
11
|
-
<div className="flex items-center">
|
|
12
|
-
<div className="grow">
|
|
13
|
-
<h2 className="text-text-secondary-700 text-sm font-semibold">
|
|
14
|
-
Log in password
|
|
15
|
-
</h2>
|
|
16
|
-
<p className="text-text-tertiary-600 text-sm">
|
|
17
|
-
Access your account by logging in with your name and password.
|
|
18
|
-
</p>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<ark.svg asChild className={twMerge('size-6', profileCompletion?.accountPassword
|
|
22
|
-
? 'text-text-success-primary'
|
|
23
|
-
: 'text-text-warning-primary')}>
|
|
24
|
-
{profileCompletion?.accountPassword ? (<CheckVerified02Icon />) : (<AlertCircleIcon />)}
|
|
25
|
-
</ark.svg>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div className="shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5">
|
|
29
|
-
<Field.Root>
|
|
30
|
-
<PasswordInput.Root>
|
|
31
|
-
<PasswordInput.Label>Password</PasswordInput.Label>
|
|
32
|
-
<PasswordInput.Control>
|
|
33
|
-
<PasswordInput.Input />
|
|
34
|
-
<PasswordInput.VisibilityTrigger>
|
|
35
|
-
<PasswordInput.Indicator fallback={<EyeOffIcon />} asChild>
|
|
36
|
-
<EyeIcon />
|
|
37
|
-
</PasswordInput.Indicator>
|
|
38
|
-
</PasswordInput.VisibilityTrigger>
|
|
39
|
-
</PasswordInput.Control>
|
|
40
|
-
</PasswordInput.Root>
|
|
41
|
-
</Field.Root>
|
|
42
|
-
|
|
43
|
-
<Field.Root className="mt-6">
|
|
44
|
-
<Select.Root collection={secretQuestionCollection} lazyMount positioning={{
|
|
45
|
-
sameWidth: true,
|
|
46
|
-
}}>
|
|
47
|
-
<Select.Label>Security Question</Select.Label>
|
|
48
|
-
<Select.Trigger>
|
|
49
|
-
<Select.ValueText placeholder="Game Vendor"/>
|
|
50
|
-
<Select.Indicator asChild>
|
|
51
|
-
<ChevronDownIcon />
|
|
52
|
-
</Select.Indicator>
|
|
53
|
-
</Select.Trigger>
|
|
54
|
-
<Portal>
|
|
55
|
-
<Select.Positioner>
|
|
56
|
-
<Select.Content>
|
|
57
|
-
<Select.ItemGroup>
|
|
58
|
-
{secretQuestionCollection.items.map((provider) => (<Select.Item key={provider} item={provider}>
|
|
59
|
-
<Select.ItemText>
|
|
60
|
-
{secretQuestionCollection.stringifyItem(provider)}
|
|
61
|
-
</Select.ItemText>
|
|
62
|
-
<Select.ItemIndicator asChild>
|
|
63
|
-
<CheckIcon />
|
|
64
|
-
</Select.ItemIndicator>
|
|
65
|
-
</Select.Item>))}
|
|
66
|
-
</Select.ItemGroup>
|
|
67
|
-
</Select.Content>
|
|
68
|
-
</Select.Positioner>
|
|
69
|
-
</Portal>
|
|
70
|
-
</Select.Root>
|
|
71
|
-
</Field.Root>
|
|
72
|
-
|
|
73
|
-
<Field.Root className="mt-6">
|
|
74
|
-
<Field.Label>Answer</Field.Label>
|
|
75
|
-
<Field.Input />
|
|
76
|
-
</Field.Root>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<div className="mt-6 flex items-center">
|
|
80
|
-
<div className="grow">
|
|
81
|
-
<h2 className="text-text-secondary-700 text-sm font-semibold">
|
|
82
|
-
Transaction password
|
|
83
|
-
</h2>
|
|
84
|
-
<p className="text-text-tertiary-600 text-sm">
|
|
85
|
-
The transaction password secures and confirms your wallet
|
|
86
|
-
withdrawals.
|
|
87
|
-
</p>
|
|
88
|
-
</div>
|
|
89
|
-
|
|
90
|
-
<ark.svg asChild className={twMerge('size-6', profileCompletion?.accountPassword
|
|
91
|
-
? 'text-text-success-primary'
|
|
92
|
-
: 'text-text-warning-primary')}>
|
|
93
|
-
{profileCompletion?.accountPassword ? (<CheckVerified02Icon />) : (<AlertCircleIcon />)}
|
|
94
|
-
</ark.svg>
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<div className="shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border px-4 py-5">
|
|
98
|
-
<Field.Root>
|
|
99
|
-
<PasswordInput.Root>
|
|
100
|
-
<PasswordInput.Label>Password</PasswordInput.Label>
|
|
101
|
-
<PasswordInput.Control>
|
|
102
|
-
<PasswordInput.Input />
|
|
103
|
-
<PasswordInput.VisibilityTrigger>
|
|
104
|
-
<PasswordInput.Indicator fallback={<EyeOffIcon />} asChild>
|
|
105
|
-
<EyeIcon />
|
|
106
|
-
</PasswordInput.Indicator>
|
|
107
|
-
</PasswordInput.VisibilityTrigger>
|
|
108
|
-
</PasswordInput.Control>
|
|
109
|
-
</PasswordInput.Root>
|
|
110
|
-
</Field.Root>
|
|
111
|
-
</div>
|
|
112
|
-
</div>);
|
|
113
|
-
}
|
|
114
|
-
const SECRET_QUESTIONS = [
|
|
115
|
-
'BEST_CHILDHOOD_FRIEND',
|
|
116
|
-
'BIRTH_PLACE',
|
|
117
|
-
'FAVORITE_BOOK',
|
|
118
|
-
'FAVORITE_MOVIE',
|
|
119
|
-
'FAVORITE_TEACHER',
|
|
120
|
-
'FIRST_CAR',
|
|
121
|
-
'FIRST_PET',
|
|
122
|
-
'FIRST_SCHOOL',
|
|
123
|
-
'MOTHERS_MAIDEN_NAME',
|
|
124
|
-
'PARENTS_MET_CITY',
|
|
125
|
-
];
|
|
126
|
-
const SECRET_QUESIONS_MAP = {
|
|
127
|
-
BEST_CHILDHOOD_FRIEND: 'Who is your best childhood friend?',
|
|
128
|
-
BIRTH_PLACE: 'Where were you born?',
|
|
129
|
-
FAVORITE_BOOK: 'What is your favorite book?',
|
|
130
|
-
FAVORITE_MOVIE: 'What is your favorite movie?',
|
|
131
|
-
FAVORITE_TEACHER: 'Who was your favorite teacher?',
|
|
132
|
-
FIRST_CAR: 'What was your first car?',
|
|
133
|
-
FIRST_PET: 'What was your first pet?',
|
|
134
|
-
FIRST_SCHOOL: 'What was the name of your first school?',
|
|
135
|
-
MOTHERS_MAIDEN_NAME: "What is your mother's maiden name?",
|
|
136
|
-
PARENTS_MET_CITY: 'In which city did your parents meet?',
|
|
137
|
-
};
|
|
138
|
-
const secretQuestionCollection = createListCollection({
|
|
139
|
-
items: SECRET_QUESTIONS,
|
|
140
|
-
itemToValue: (item) => item,
|
|
141
|
-
itemToString: (item) => SECRET_QUESIONS_MAP[item],
|
|
142
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import emblaCarouselAutoplay from 'embla-carousel-autoplay';
|
|
3
|
-
import useEmblaCarousel, {} from 'embla-carousel-react';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import { Fragment, useEffect, useState } from 'react';
|
|
7
|
-
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { dataAttr } from '../../utils/index.js';
|
|
9
|
-
export function Banner(props) {
|
|
10
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
11
|
-
loop: true,
|
|
12
|
-
align: 'start',
|
|
13
|
-
}, [
|
|
14
|
-
emblaCarouselAutoplay({
|
|
15
|
-
playOnInit: true,
|
|
16
|
-
delay: 5000,
|
|
17
|
-
}),
|
|
18
|
-
]);
|
|
19
|
-
const [currentIndex, setCurrentIndex] = useState(0);
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
function handler(detail) {
|
|
22
|
-
setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
|
|
23
|
-
}
|
|
24
|
-
emblaApi?.on('scroll', handler);
|
|
25
|
-
emblaApi?.on('init', handler);
|
|
26
|
-
return () => {
|
|
27
|
-
emblaApi?.on('init', handler);
|
|
28
|
-
emblaApi?.off('scroll', handler);
|
|
29
|
-
};
|
|
30
|
-
}, [emblaApi]);
|
|
31
|
-
return (<div className={twMerge('relative', props.className)}>
|
|
32
|
-
<div ref={emblaRef} className="overflow-hidden">
|
|
33
|
-
<div className="flex gap-2">
|
|
34
|
-
{props.banners.map((banner, index) => {
|
|
35
|
-
const img = (<Image src={banner.src} alt="" width={1200} /* ✏️ TODO: must be 400 on mobile */ height={300} /* ✏️ TODO: must be 225 on mobile */ className="block h-auto w-full rounded-xl" priority={index === 0}/>);
|
|
36
|
-
return (<Fragment key={index}>
|
|
37
|
-
{!banner.redirectUrl ? (<div className="w-full shrink-0">{img}</div>) : (<Link href={banner.redirectUrl} className="block w-full shrink-0">
|
|
38
|
-
{img}
|
|
39
|
-
</Link>)}
|
|
40
|
-
</Fragment>);
|
|
41
|
-
})}
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div className="absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2">
|
|
46
|
-
{props.banners.map((_, index) => (<button key={index} type="button" className="ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9" onClick={() => {
|
|
47
|
-
emblaApi?.scrollTo(index);
|
|
48
|
-
}} aria-label={`Go to slide ${index + 1}`} data-active={dataAttr(index === currentIndex)}/>))}
|
|
49
|
-
</div>
|
|
50
|
-
</div>);
|
|
51
|
-
}
|