@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,37 +0,0 @@
|
|
|
1
|
-
import { Button, Field } from '../../ui/index.js';
|
|
2
|
-
import { useKYCContext } from './KYCContext';
|
|
3
|
-
export function Step1() {
|
|
4
|
-
const context = useKYCContext();
|
|
5
|
-
return (<form className="mt-3xl flex grow flex-col" onSubmit={(e) => {
|
|
6
|
-
e.preventDefault();
|
|
7
|
-
context.setStep(2);
|
|
8
|
-
}}>
|
|
9
|
-
<h2 className="text-text-primary-900 text-center text-lg">
|
|
10
|
-
Basic Information
|
|
11
|
-
</h2>
|
|
12
|
-
<p className="text-text-tertiary-600 text-center text-sm">
|
|
13
|
-
Enter your basic details for identification and communication.
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<div className="mt-9 grow">
|
|
17
|
-
<Field.Root>
|
|
18
|
-
<Field.Label>Real name</Field.Label>
|
|
19
|
-
<Field.Input />
|
|
20
|
-
</Field.Root>
|
|
21
|
-
<Field.Root className="mt-xl">
|
|
22
|
-
<Field.Label>Date of birth</Field.Label>
|
|
23
|
-
<Field.Input type="date"/>
|
|
24
|
-
</Field.Root>
|
|
25
|
-
<Button type="submit" className="mt-xl">
|
|
26
|
-
Continue
|
|
27
|
-
</Button>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div className="text-text-tertiary-600 mt-3xl w-full text-center text-sm">
|
|
31
|
-
Use another account.{' '}
|
|
32
|
-
<button type="button" className="text-button-tertiary-fg font-semibold">
|
|
33
|
-
Log out
|
|
34
|
-
</button>
|
|
35
|
-
</div>
|
|
36
|
-
</form>);
|
|
37
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { HelpCircleIcon, UploadCloud02Icon } from '../../icons/index.js';
|
|
2
|
-
import { Button, Field } from '../../ui/index.js';
|
|
3
|
-
import { useKYCContext } from './KYCContext';
|
|
4
|
-
export function Step2() {
|
|
5
|
-
const context = useKYCContext();
|
|
6
|
-
return (<form className="mt-3xl flex grow flex-col items-start justify-start overflow-y-auto" onSubmit={(e) => {
|
|
7
|
-
e.preventDefault();
|
|
8
|
-
context.setStep(3);
|
|
9
|
-
}}>
|
|
10
|
-
<h2 className="text-text-primary-900 w-full text-center text-lg">
|
|
11
|
-
Verify Your Identity
|
|
12
|
-
</h2>
|
|
13
|
-
<p className="text-text-tertiary-600 w-full text-center text-sm">
|
|
14
|
-
Verify your details to confirm your identity and secure your access.
|
|
15
|
-
</p>
|
|
16
|
-
|
|
17
|
-
<div className="border-border-secondary bg-bg-brand-secondary-alt text-text-tertiary-600 mt-xl w-full rounded-xl border p-3 text-2xs leading-tight">
|
|
18
|
-
<h4 className="font-semibold">Instructions</h4>
|
|
19
|
-
<ol className="mt-2 list-inside list-decimal">
|
|
20
|
-
<li>Upload a full photo of your ID.</li>
|
|
21
|
-
<li>
|
|
22
|
-
Please ensure that all details in the uploaded image are legible.
|
|
23
|
-
</li>
|
|
24
|
-
<li>
|
|
25
|
-
Please ensure that the ID uploaded is within the validity period.
|
|
26
|
-
</li>
|
|
27
|
-
</ol>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div className="scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full mt-xl w-full grow overflow-y-auto">
|
|
31
|
-
<Field.Root>
|
|
32
|
-
<Field.Label className="flex items-center gap-1.5">
|
|
33
|
-
Front of your ID{' '}
|
|
34
|
-
<HelpCircleIcon className="text-text-quinary size-4"/>
|
|
35
|
-
</Field.Label>
|
|
36
|
-
<div className="border-border-secondary bg-bg-primary rounded-xl border px-3xl py-xl">
|
|
37
|
-
<div className="border-border-secondary shadow-xs text-text-secondary-700 mx-auto flex size-8 items-center justify-center rounded-sm border">
|
|
38
|
-
<UploadCloud02Icon className="size-4"/>
|
|
39
|
-
</div>
|
|
40
|
-
<p className="text-text-tertiary-600 mt-lg text-center text-xs">
|
|
41
|
-
<span className="text-button-tertiary-fg font-semibold">
|
|
42
|
-
Click to upload
|
|
43
|
-
</span>{' '}
|
|
44
|
-
or drag and drop
|
|
45
|
-
</p>
|
|
46
|
-
<p className="text-text-tertiary-600 mt-xs text-center text-xs">
|
|
47
|
-
PNG, JPG or JPEG (max. 10mb)
|
|
48
|
-
</p>
|
|
49
|
-
<p className="text-text-tertiary-600 mt-xs text-center text-xs">
|
|
50
|
-
or
|
|
51
|
-
</p>
|
|
52
|
-
<Button size="xs" variant="outline" className="mx-auto mt-xs w-fit" onClick={() => {
|
|
53
|
-
context.setUploadingDocument(true);
|
|
54
|
-
}}>
|
|
55
|
-
Take a photo
|
|
56
|
-
</Button>
|
|
57
|
-
</div>
|
|
58
|
-
</Field.Root>
|
|
59
|
-
|
|
60
|
-
<Field.Root className="mt-3">
|
|
61
|
-
<Field.Label className="flex items-center gap-1.5">
|
|
62
|
-
Selfie holding your ID{' '}
|
|
63
|
-
<HelpCircleIcon className="text-text-quinary size-4"/>
|
|
64
|
-
</Field.Label>
|
|
65
|
-
<div className="border-border-secondary bg-bg-primary flex h-[180px] items-center justify-center rounded-xl border px-3xl py-xl">
|
|
66
|
-
<Button size="xs" variant="outline" className="w-fit" onClick={() => {
|
|
67
|
-
context.setUploadingDocument(true);
|
|
68
|
-
}}>
|
|
69
|
-
Take a photo
|
|
70
|
-
</Button>
|
|
71
|
-
</div>
|
|
72
|
-
</Field.Root>
|
|
73
|
-
</div>
|
|
74
|
-
|
|
75
|
-
<div className="mt-xl w-full">
|
|
76
|
-
<Button type="submit">Continue</Button>
|
|
77
|
-
|
|
78
|
-
<div className="text-text-tertiary-600 mt-3xl w-full text-center text-sm">
|
|
79
|
-
Use another account.{' '}
|
|
80
|
-
<button type="button" className="text-button-tertiary-fg font-semibold">
|
|
81
|
-
Log out
|
|
82
|
-
</button>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</form>);
|
|
86
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { CheckIcon } from '../../icons/index.js';
|
|
2
|
-
import { Button, Checkbox, Field } from '../../ui/index.js';
|
|
3
|
-
import { useKYCContext } from './KYCContext';
|
|
4
|
-
export function Step3() {
|
|
5
|
-
const context = useKYCContext();
|
|
6
|
-
return (<form className="mt-3xl flex grow flex-col items-start justify-start overflow-y-auto" onSubmit={(e) => {
|
|
7
|
-
e.preventDefault();
|
|
8
|
-
context.setOpen(false);
|
|
9
|
-
}}>
|
|
10
|
-
<h2 className="text-text-primary-900 w-full text-center text-lg">
|
|
11
|
-
Personal Information
|
|
12
|
-
</h2>
|
|
13
|
-
<p className="text-text-tertiary-600 w-full text-center text-sm">
|
|
14
|
-
Provide your basic details and work info.
|
|
15
|
-
</p>
|
|
16
|
-
|
|
17
|
-
<div className="scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full mt-4 w-full grow overflow-y-auto">
|
|
18
|
-
<Field.Root>
|
|
19
|
-
<Field.Label>Permanent address</Field.Label>
|
|
20
|
-
<Field.Input />
|
|
21
|
-
</Field.Root>
|
|
22
|
-
|
|
23
|
-
<Checkbox.Root className="mt-lg">
|
|
24
|
-
<Checkbox.Control>
|
|
25
|
-
<Checkbox.Indicator asChild>
|
|
26
|
-
<CheckIcon />
|
|
27
|
-
</Checkbox.Indicator>
|
|
28
|
-
</Checkbox.Control>
|
|
29
|
-
<Checkbox.Label>
|
|
30
|
-
Use permanent address as current address
|
|
31
|
-
</Checkbox.Label>
|
|
32
|
-
<Checkbox.HiddenInput />
|
|
33
|
-
</Checkbox.Root>
|
|
34
|
-
|
|
35
|
-
<Field.Root className="mt-xl">
|
|
36
|
-
<Field.Label>Current address</Field.Label>
|
|
37
|
-
<Field.Input />
|
|
38
|
-
</Field.Root>
|
|
39
|
-
<Field.Root className="mt-xl">
|
|
40
|
-
<Field.Label>Source of income</Field.Label>
|
|
41
|
-
<Field.Input />
|
|
42
|
-
</Field.Root>
|
|
43
|
-
<Field.Root className="mt-xl">
|
|
44
|
-
<Field.Label>Nature of work</Field.Label>
|
|
45
|
-
<Field.Input />
|
|
46
|
-
</Field.Root>
|
|
47
|
-
<Field.Root className="mt-xl">
|
|
48
|
-
<Field.Label>Place of birth</Field.Label>
|
|
49
|
-
<Field.Input />
|
|
50
|
-
</Field.Root>
|
|
51
|
-
<Field.Root className="mt-xl">
|
|
52
|
-
<Field.Label>Nationality</Field.Label>
|
|
53
|
-
<Field.Input />
|
|
54
|
-
</Field.Root>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div className="mt-xl w-full">
|
|
58
|
-
<Button type="submit">Submit and Play</Button>
|
|
59
|
-
|
|
60
|
-
<div className="text-text-tertiary-600 mt-3xl w-full text-center text-sm">
|
|
61
|
-
Use another account.{' '}
|
|
62
|
-
<button type="button" className="text-button-tertiary-fg font-semibold">
|
|
63
|
-
Log out
|
|
64
|
-
</button>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</form>);
|
|
68
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { dataAttr } from '../../utils/index.js';
|
|
2
|
-
import { useKYCContext } from './KYCContext';
|
|
3
|
-
export function StepIndicator() {
|
|
4
|
-
const context = useKYCContext();
|
|
5
|
-
return (<div className="mx-auto mt-3xl flex w-fit items-center">
|
|
6
|
-
<Circle active={context.step >= 1}/>
|
|
7
|
-
<Line active={context.step >= 2}/>
|
|
8
|
-
<Circle active={context.step >= 2}/>
|
|
9
|
-
<Line active={context.step >= 3}/>
|
|
10
|
-
<Circle active={context.step >= 3}/>
|
|
11
|
-
</div>);
|
|
12
|
-
}
|
|
13
|
-
function Circle({ active }) {
|
|
14
|
-
return (<div className="ui-active:bg-bg-brand-solid ui-active:shadow-brand border-border-disabled-subtle bg-bg-disabled-subtle group flex size-6 items-center justify-center rounded-full transition-colors delay-300 duration-300" data-active={dataAttr(active)}>
|
|
15
|
-
<div className="bg-text-disabled-subtle size-2.5 rounded-full transition-all delay-300 duration-300 ui-group-active:bg-white"/>
|
|
16
|
-
</div>);
|
|
17
|
-
}
|
|
18
|
-
function Line({ active }) {
|
|
19
|
-
return (<div className="bg-bg-quaternary group relative h-0.5 w-20" data-active={dataAttr(active)}>
|
|
20
|
-
<div className="bg-text-brand-primary-600 absolute left-0 top-0 h-full w-0 transition-all duration-300 ui-group-active:w-full"/>
|
|
21
|
-
</div>);
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons/index.js';
|
|
2
|
-
import { Button } from '../../ui/index.js';
|
|
3
|
-
import { useKYCContext } from './KYCContext';
|
|
4
|
-
export function UploadDocument() {
|
|
5
|
-
const context = useKYCContext();
|
|
6
|
-
return (<div className="bg-bg-primary-alt relative w-[747px] rounded-xl pb-12 pt-4xl">
|
|
7
|
-
<button type="button" className="absolute right-4 top-4" onClick={() => context.setUploadingDocument(false)}>
|
|
8
|
-
<XIcon className="text-text-quinary size-5"/>
|
|
9
|
-
</button>
|
|
10
|
-
<h2 className="text-center text-xl font-semibold">
|
|
11
|
-
Take a Picture of Your Front ID
|
|
12
|
-
</h2>
|
|
13
|
-
<p className="text-text-tertiary-600 mt-md text-center">
|
|
14
|
-
Make sure your ID is clearly visible, well-lit, and not blurry.
|
|
15
|
-
<br /> Avoid glare or reflections, and ensure all corners are within the
|
|
16
|
-
frame.
|
|
17
|
-
</p>
|
|
18
|
-
<div className="mx-auto mt-10 h-[333px] w-[643px] rounded-xl bg-white/10"></div>
|
|
19
|
-
<div className="mx-auto mt-10 flex w-fit gap-3">
|
|
20
|
-
<Button variant="outline" fullWidth={false}>
|
|
21
|
-
<Camera01Icon />
|
|
22
|
-
Retake Photo
|
|
23
|
-
</Button>
|
|
24
|
-
<Button fullWidth={false}>
|
|
25
|
-
<CheckCircleIcon />
|
|
26
|
-
Use Photo
|
|
27
|
-
</Button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>);
|
|
30
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons/index.js';
|
|
2
|
-
import { Button } from '../../ui/index.js';
|
|
3
|
-
import { useKYCContext } from './KYCContext';
|
|
4
|
-
export function UploadSelfie() {
|
|
5
|
-
const context = useKYCContext();
|
|
6
|
-
return (<div className="bg-bg-primary-alt relative w-[747px] rounded-xl pb-12 pt-4xl">
|
|
7
|
-
<button type="button" className="absolute right-4 top-4" onClick={() => context.setUploadingSelfie(false)}>
|
|
8
|
-
<XIcon className="text-text-quinary size-5"/>
|
|
9
|
-
</button>
|
|
10
|
-
<h2 className="text-center text-xl font-semibold">
|
|
11
|
-
Take a Selfie Holding Your ID
|
|
12
|
-
</h2>
|
|
13
|
-
<p className="text-text-tertiary-600 mt-md text-center">
|
|
14
|
-
Make sure your face and ID are clearly visible, with no glare or blur.
|
|
15
|
-
</p>
|
|
16
|
-
<div className="mx-auto mt-10 h-[333px] w-[643px] rounded-xl bg-white/10"></div>
|
|
17
|
-
<div className="mx-auto mt-10 flex w-fit gap-3">
|
|
18
|
-
<Button variant="outline" fullWidth={false}>
|
|
19
|
-
<Camera01Icon />
|
|
20
|
-
Retake Photo
|
|
21
|
-
</Button>
|
|
22
|
-
<Button fullWidth={false}>
|
|
23
|
-
<CheckCircleIcon />
|
|
24
|
-
Use Photo
|
|
25
|
-
</Button>
|
|
26
|
-
</div>
|
|
27
|
-
</div>);
|
|
28
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
export function Marquee(props) {
|
|
3
|
-
return (<div className={twMerge('border-border-primary bg-bg-primary text-text-secondary-700 shadow-xs flex gap-lg rounded-lg border p-1 pr-2.5 text-sm font-medium', props.className)}>
|
|
4
|
-
<div className="border-border-primary flex shrink-0 items-center gap-sm rounded-sm border px-2 py-0.5">
|
|
5
|
-
<span className="bg-utility-success-500 outline-utility-success-100 size-2 rounded-full outline-2"/>
|
|
6
|
-
<span>What's new</span>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div className="flex grow items-center overflow-hidden">
|
|
10
|
-
<div className="flex items-center whitespace-nowrap">
|
|
11
|
-
<div className="animate-marquee pr-4 [animation-delay:1s]">
|
|
12
|
-
{props.children}
|
|
13
|
-
</div>
|
|
14
|
-
<div className="animate-marquee pr-4 [animation-delay:1s]">
|
|
15
|
-
{props.children}
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>);
|
|
20
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { tz } from '@date-fns/tz';
|
|
2
|
-
import { format } from 'date-fns';
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore, useLocaleInfo, useMarkMessageAsReadMutation, } from '../../client/hooks/index.js';
|
|
6
|
-
import { getMessageIcon } from '../../components/Messages/utils.js';
|
|
7
|
-
export function MessageItem({ message }) {
|
|
8
|
-
const { id, title, dateTimeCreated, content, markedAsRead, icon, actions } = message;
|
|
9
|
-
const localeInfo = useLocaleInfo();
|
|
10
|
-
const { messages: messagesStore } = useGlobalStore(useShallow((ctx) => ({ messages: ctx.messages })));
|
|
11
|
-
const { mutate } = useMarkMessageAsReadMutation();
|
|
12
|
-
const Icon = getMessageIcon(icon);
|
|
13
|
-
const handleViewMessage = async () => {
|
|
14
|
-
mutate(id);
|
|
15
|
-
messagesStore.setOpen(false);
|
|
16
|
-
messagesStore.message.setData(message);
|
|
17
|
-
messagesStore.message.setOpen(true);
|
|
18
|
-
};
|
|
19
|
-
const handleActionClick = (e) => {
|
|
20
|
-
e.stopPropagation();
|
|
21
|
-
messagesStore.setOpen(false);
|
|
22
|
-
messagesStore.setTab('ALL');
|
|
23
|
-
};
|
|
24
|
-
return (<div role="button" tabIndex={0} className="border-border-secondary rounded-xs bg-bg-secondary flex h-auto flex-shrink-0 cursor-pointer flex-col border px-3.5 py-2.5" onClick={handleViewMessage} aria-pressed="false">
|
|
25
|
-
<div className="flex items-center space-x-2">
|
|
26
|
-
<p className="text-text-tertiary-600 text-xs font-normal">
|
|
27
|
-
{format(new Date(dateTimeCreated), 'M/d/yyyy - h:mma', {
|
|
28
|
-
in: tz(localeInfo.timezone),
|
|
29
|
-
})}
|
|
30
|
-
</p>
|
|
31
|
-
{!markedAsRead && (<div className="bg-utility-success-500 h-2.5 w-2.5 rounded-full"/>)}
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div className="mb-2 flex items-center space-x-2">
|
|
35
|
-
<Icon className="text-brand-400"/>
|
|
36
|
-
<p className="text-text-primary-brand text-sm font-semibold">{title}</p>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<p className="line-clamp-3 text-wrap text-sm font-normal" dangerouslySetInnerHTML={{ __html: content }}/>
|
|
40
|
-
|
|
41
|
-
{actions.length > 0 && (<div className="mt-2 flex flex-wrap items-center justify-end gap-2">
|
|
42
|
-
{actions.map((action, index) => (<Link key={index} className="border-button-secondary-border text-button-secondary-fg rounded-md border px-3 py-2 text-sm" href={action.url} onClick={handleActionClick}>
|
|
43
|
-
{action.name}
|
|
44
|
-
</Link>))}
|
|
45
|
-
</div>)}
|
|
46
|
-
</div>);
|
|
47
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Portal } from '@ark-ui/react';
|
|
2
|
-
import Link from 'next/link';
|
|
3
|
-
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
5
|
-
import { XIcon } from '../../icons/index.js';
|
|
6
|
-
import { Dialog } from '../../ui/index.js';
|
|
7
|
-
import { getMessageIcon } from './utils.js';
|
|
8
|
-
export const MessagePopup = () => {
|
|
9
|
-
const { messages: messagesStore } = useGlobalStore(useShallow((ctx) => ({ messages: ctx.messages })));
|
|
10
|
-
const message = messagesStore.message.data;
|
|
11
|
-
const Icon = getMessageIcon(message?.icon ?? 'MESSAGE');
|
|
12
|
-
return (<Dialog.Root lazyMount unmountOnExit open={messagesStore.message.open} onOpenChange={({ open }) => {
|
|
13
|
-
messagesStore.message.setOpen(open);
|
|
14
|
-
}} closeOnEscape={false} closeOnInteractOutside={false}>
|
|
15
|
-
<Portal>
|
|
16
|
-
<Dialog.Backdrop className="!z-[calc(var(--z-dialog)+1)]"/>
|
|
17
|
-
<Dialog.Positioner className="!z-[calc(var(--z-dialog)+2)] flex items-center justify-center">
|
|
18
|
-
<Dialog.Content className="min-h-auto mx-auto min-w-[21.438rem] max-w-[21.438rem] rounded-xl px-xl pb-0 pt-5 shadow-xl">
|
|
19
|
-
<Dialog.CloseTrigger>
|
|
20
|
-
<XIcon />
|
|
21
|
-
</Dialog.CloseTrigger>
|
|
22
|
-
<div className="pb-6">
|
|
23
|
-
<div className="bg-bg-brand-secondary mx-auto w-fit rounded-full p-3">
|
|
24
|
-
<Icon className="text-text-brand" height="24" width="24"/>
|
|
25
|
-
</div>
|
|
26
|
-
<p className="text-text-primary-brand mt-lg text-center text-lg font-semibold leading-tight">
|
|
27
|
-
{message?.title}
|
|
28
|
-
</p>
|
|
29
|
-
<div className="text-shadow-text-secondary-700 mt-xs text-center text-sm font-normal leading-tight" dangerouslySetInnerHTML={{ __html: message?.content ?? '' }}/>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
{message?.actions.length ? (<div className="flex flex-col space-y-2 px-4 pb-8 pt-6 text-center">
|
|
33
|
-
{message.actions.map((action, index) => (<Link className="bg-button-primary-bg rounded-xs text-button-primary-fg w-full px-4 py-2.5 text-base font-semibold" key={index} href={action.url} onClick={() => {
|
|
34
|
-
messagesStore.message.setOpen(false);
|
|
35
|
-
}}>
|
|
36
|
-
{action.name}
|
|
37
|
-
</Link>))}
|
|
38
|
-
</div>) : null}
|
|
39
|
-
</Dialog.Content>
|
|
40
|
-
</Dialog.Positioner>
|
|
41
|
-
</Portal>
|
|
42
|
-
</Dialog.Root>);
|
|
43
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Portal } from '@ark-ui/react';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore, useMessagesQuery, useUnreadMessagesCountQuery, } from '../../client/hooks/index.js';
|
|
6
|
-
import { Bell01Icon, SpinnerIcon, XIcon } from '../../icons/index.js';
|
|
7
|
-
import { Drawer, IconButton, Tabs } from '../../ui/index.js';
|
|
8
|
-
import { InfiniteScroll } from '../InfiniteScroll';
|
|
9
|
-
import { MessageItem } from './MessageItem';
|
|
10
|
-
import { MessagePopup } from './MessagePopup';
|
|
11
|
-
const TABS = ['ALL', 'UNREAD'];
|
|
12
|
-
export function Messages() {
|
|
13
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({ messages: ctx.messages })));
|
|
14
|
-
const unreadMessagesCountQuery = useUnreadMessagesCountQuery({}, { refetchInterval: 5000 });
|
|
15
|
-
const unreadMessagesCount = unreadMessagesCountQuery.data ?? 0;
|
|
16
|
-
const messagesQuery = useMessagesQuery({
|
|
17
|
-
first: 10,
|
|
18
|
-
...(globalStore.messages.tab === 'UNREAD' && {
|
|
19
|
-
filter: {
|
|
20
|
-
markedAsRead: {
|
|
21
|
-
equal: true,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
}, { refetchInterval: 5000 });
|
|
26
|
-
const messages = messagesQuery.data?.pages.flatMap((page) => page.edges.map((e) => e.node)) ?? [];
|
|
27
|
-
return (<>
|
|
28
|
-
<Drawer.Root open={globalStore.messages.open} onOpenChange={({ open }) => globalStore.messages.setOpen(open)} lazyMount unmountOnExit>
|
|
29
|
-
<Drawer.Trigger asChild>
|
|
30
|
-
<IconButton size="sm" colorScheme="gray" className="relative">
|
|
31
|
-
{!!unreadMessagesCount && (<div className="bg-brand-500 leading-4.5 text-button-primary-fg absolute -right-1.5 -top-1.5 rounded-full border px-1.5 text-2xs font-semibold">
|
|
32
|
-
{unreadMessagesCount}
|
|
33
|
-
</div>)}
|
|
34
|
-
<Bell01Icon />
|
|
35
|
-
</IconButton>
|
|
36
|
-
</Drawer.Trigger>
|
|
37
|
-
|
|
38
|
-
<Portal>
|
|
39
|
-
<Drawer.Backdrop />
|
|
40
|
-
<Drawer.Positioner>
|
|
41
|
-
<Drawer.Content className="bg-gray-50 bg-bg-primary flex flex-col">
|
|
42
|
-
<div className="flex flex-col space-y-6">
|
|
43
|
-
<div className="flex items-end justify-between px-4 pt-6">
|
|
44
|
-
<p className="text-text-primary-brand text-xl font-semibold">
|
|
45
|
-
Notifications
|
|
46
|
-
</p>
|
|
47
|
-
<Drawer.CloseTrigger className="p-2">
|
|
48
|
-
<XIcon />
|
|
49
|
-
</Drawer.CloseTrigger>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<Tabs.Root value={globalStore.messages.tab} onValueChange={(details) => globalStore.messages.setTab(z.enum(TABS).parse(details.value))} lazyMount unmountOnExit>
|
|
53
|
-
<div className="mb-4 w-full px-4">
|
|
54
|
-
<Tabs.List className="border-border-secondary w-full border">
|
|
55
|
-
<Tabs.Trigger value="ALL" className="flex-1/5 ui-selected:text-text-primary-brand text-text-tertiary-600">
|
|
56
|
-
All
|
|
57
|
-
</Tabs.Trigger>
|
|
58
|
-
<Tabs.Trigger value="UNREAD" className="flex-1/5 ui-selected:text-text-primary-brand text-text-tertiary-600 flex items-center justify-center space-x-2">
|
|
59
|
-
<div>Unread</div>
|
|
60
|
-
{!!unreadMessagesCount && (<div className="border-border-primary bg-bg-secondary rounded-full border px-2 py-0.5">
|
|
61
|
-
{unreadMessagesCount}
|
|
62
|
-
</div>)}
|
|
63
|
-
</Tabs.Trigger>
|
|
64
|
-
<Tabs.Indicator className="bg-bg-active"/>
|
|
65
|
-
</Tabs.List>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<div className="border-border-secondary mb-10 w-full border-t"/>
|
|
69
|
-
|
|
70
|
-
{TABS.map((tab) => (<Tabs.Content key={tab} id="messages-scrollable" value={tab} className="scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full max-h-[calc(100vh-197px)] overflow-y-auto pb-4 pl-4" style={{ scrollbarGutter: 'stable' }}>
|
|
71
|
-
{messages.length > 0 && (<div className="flex flex-col space-y-4">
|
|
72
|
-
{messages.map((message) => (<MessageItem key={message.id} message={message}/>))}
|
|
73
|
-
</div>)}
|
|
74
|
-
|
|
75
|
-
<InfiniteScroll loader={<SpinnerIcon className="mx-auto size-5"/>} hasMore={!!messagesQuery.hasNextPage} loadMore={async () => {
|
|
76
|
-
await messagesQuery.fetchNextPage();
|
|
77
|
-
}} className="mt-4"/>
|
|
78
|
-
</Tabs.Content>))}
|
|
79
|
-
</Tabs.Root>
|
|
80
|
-
</div>
|
|
81
|
-
</Drawer.Content>
|
|
82
|
-
</Drawer.Positioner>
|
|
83
|
-
</Portal>
|
|
84
|
-
</Drawer.Root>
|
|
85
|
-
<MessagePopup />
|
|
86
|
-
</>);
|
|
87
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { Toast, Toaster } from '@ark-ui/react';
|
|
3
|
-
import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google';
|
|
4
|
-
import { QueryClientProvider } from '@tanstack/react-query';
|
|
5
|
-
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { toaster } from '../../client/utils/index.js';
|
|
7
|
-
import { AlertCircleIcon, XIcon } from '../../icons/index.js';
|
|
8
|
-
import { FacebookPixel, GoogleRecaptcha } from '../../third-parties/index.js';
|
|
9
|
-
import { getQueryClient } from '../../utils/index.js';
|
|
10
|
-
export function PortalProvider__client({ googleAnalyticsId, googleTagManagerId, googleRecaptchaSiteKey, facebookPixelId, children, }) {
|
|
11
|
-
const queryClient = getQueryClient();
|
|
12
|
-
return (<QueryClientProvider client={queryClient}>
|
|
13
|
-
{children}
|
|
14
|
-
|
|
15
|
-
<Toaster toaster={toaster}>
|
|
16
|
-
{(toast) => (<Toast.Root key={toast.id} className="shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]">
|
|
17
|
-
<div className={twMerge('flex size-9.5 items-center justify-center rounded-full border-2', toast.type === 'error'
|
|
18
|
-
? 'border-red-500/15'
|
|
19
|
-
: 'border-green-500/15')}>
|
|
20
|
-
<div className={twMerge('flex size-7 items-center justify-center rounded-full border-2', toast.type === 'error'
|
|
21
|
-
? 'border-red-500/35'
|
|
22
|
-
: 'border-green-500/35')}>
|
|
23
|
-
<AlertCircleIcon className={twMerge('size-5', toast.type === 'error' ? 'text-red-500' : 'text-green-500')}/>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div className="grow text-sm leading-none">
|
|
28
|
-
<Toast.Title className="font-semibold">
|
|
29
|
-
{toast.title
|
|
30
|
-
? toast.title
|
|
31
|
-
: toast.type === 'error'
|
|
32
|
-
? 'Error'
|
|
33
|
-
: 'Success'}
|
|
34
|
-
</Toast.Title>
|
|
35
|
-
<Toast.Description className="text-gray-700 mt-1">
|
|
36
|
-
{toast.description
|
|
37
|
-
? toast.description
|
|
38
|
-
: toast.type === 'error'
|
|
39
|
-
? 'Something went wrong.'
|
|
40
|
-
: 'Operation completed successfully.'}
|
|
41
|
-
</Toast.Description>
|
|
42
|
-
</div>
|
|
43
|
-
<Toast.CloseTrigger className="text-gray-400 hover:text-gray-500 self-start">
|
|
44
|
-
<XIcon className="size-5"/>
|
|
45
|
-
</Toast.CloseTrigger>
|
|
46
|
-
</Toast.Root>)}
|
|
47
|
-
</Toaster>
|
|
48
|
-
|
|
49
|
-
{facebookPixelId && <FacebookPixel fbId={facebookPixelId}/>}
|
|
50
|
-
{googleAnalyticsId && <GoogleAnalytics gaId={googleAnalyticsId}/>}
|
|
51
|
-
{googleTagManagerId && <GoogleTagManager gtmId={googleTagManagerId}/>}
|
|
52
|
-
{googleRecaptchaSiteKey && (<GoogleRecaptcha siteKey={googleRecaptchaSiteKey}/>)}
|
|
53
|
-
</QueryClientProvider>);
|
|
54
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
import Link from 'next/link';
|
|
4
|
-
import { ChevronLeftIcon } from '../../icons/index.js';
|
|
5
|
-
import { Button, Prose } from '../../ui/index.js';
|
|
6
|
-
export function PromoContent(props) {
|
|
7
|
-
return (<div className={props.className}>
|
|
8
|
-
<Link href={props.viewAllPromosUrl ?? '/promos'} className="text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold">
|
|
9
|
-
<ChevronLeftIcon className="size-6"/>
|
|
10
|
-
Back to all Promotions
|
|
11
|
-
</Link>
|
|
12
|
-
<Image src="https://s3.ap-east-1.amazonaws.com/opexa-assets.opexasystem.com/assets/BSxIXEsa59_zzMAR27-ALLDAYREBATE06-STATIC-WEB-HB-1920x1080.png" alt="" width={1024} height={600} className="mt-xl h-auto w-full rounded-xl lg:mt-6"/>
|
|
13
|
-
<Button className="mt-xl lg:mt-6">Deposit Now</Button>
|
|
14
|
-
|
|
15
|
-
<h1 className="mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl">
|
|
16
|
-
Welcome Bonus 100% up to $500 + 10 Free Spins
|
|
17
|
-
</h1>
|
|
18
|
-
|
|
19
|
-
<p className="text-text-secondary-700 mt-xl lg:mt-6">
|
|
20
|
-
Ends 5/26/2025, 1:59:59 AM
|
|
21
|
-
</p>
|
|
22
|
-
|
|
23
|
-
<Prose className="mt-2xl lg:mt-6">
|
|
24
|
-
<p>
|
|
25
|
-
Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam
|
|
26
|
-
suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis
|
|
27
|
-
montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere
|
|
28
|
-
vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien
|
|
29
|
-
varius id.
|
|
30
|
-
</p>
|
|
31
|
-
<p>
|
|
32
|
-
Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat
|
|
33
|
-
mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis
|
|
34
|
-
fusce augue enim. Quis at habitant diam at. Suscipit tristique risus,
|
|
35
|
-
at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet
|
|
36
|
-
sodales id est ac volutpat.
|
|
37
|
-
</p>
|
|
38
|
-
<p>
|
|
39
|
-
Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris
|
|
40
|
-
id. Non pellentesque congue eget consectetur turpis. Sapien, dictum
|
|
41
|
-
molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis
|
|
42
|
-
velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh
|
|
43
|
-
orci.
|
|
44
|
-
</p>
|
|
45
|
-
<p>
|
|
46
|
-
Dolor enim eu tortor urna sed duis nulla. Aliquam vestibulum, nulla
|
|
47
|
-
odio nisl vitae. In aliquet pellentesque aenean hac vestibulum turpis
|
|
48
|
-
mi bibendum diam. Tempor integer aliquam in vitae malesuada fringilla.
|
|
49
|
-
</p>
|
|
50
|
-
<p>
|
|
51
|
-
Elit nisi in eleifend sed nisi. Pulvinar at orci, proin imperdiet
|
|
52
|
-
commodo consectetur convallis risus. Sed condimentum enim dignissim
|
|
53
|
-
adipiscing faucibus consequat, urna. Viverra purus et erat auctor
|
|
54
|
-
aliquam. Risus, volutpat vulputate posuere purus sit congue convallis
|
|
55
|
-
aliquet. Arcu id augue ut feugiat donec porttitor neque. Mauris, neque
|
|
56
|
-
ultricies eu vestibulum, bibendum quam lorem id. Dolor lacus, eget
|
|
57
|
-
nunc lectus in tellus, pharetra, porttitor.
|
|
58
|
-
</p>
|
|
59
|
-
<p>
|
|
60
|
-
Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris
|
|
61
|
-
id. Non pellentesque congue eget consectetur turpis. Sapien, dictum
|
|
62
|
-
molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis
|
|
63
|
-
velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh
|
|
64
|
-
orci.
|
|
65
|
-
</p>
|
|
66
|
-
<h5>General Conditions:</h5>
|
|
67
|
-
<p>
|
|
68
|
-
Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam
|
|
69
|
-
suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis
|
|
70
|
-
montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere
|
|
71
|
-
vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien
|
|
72
|
-
varius id.
|
|
73
|
-
</p>
|
|
74
|
-
<p>
|
|
75
|
-
Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat
|
|
76
|
-
mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis
|
|
77
|
-
fusce augue enim. Quis at habitant diam at. Suscipit tristique risus,
|
|
78
|
-
at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet
|
|
79
|
-
sodales id est ac volutpat.
|
|
80
|
-
</p>
|
|
81
|
-
</Prose>
|
|
82
|
-
<Prose className="bg-bg-secondary mt-xl rounded-2xl p-2xl lg:mt-16 lg:p-4xl">
|
|
83
|
-
<h2>Conclusion</h2>
|
|
84
|
-
<p>
|
|
85
|
-
Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id
|
|
86
|
-
scelerisque est ultricies ultricies. Duis est sit sed leo nisl,
|
|
87
|
-
blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at
|
|
88
|
-
scelerisque amet nulla purus habitasse.
|
|
89
|
-
</p>
|
|
90
|
-
<p>
|
|
91
|
-
Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas
|
|
92
|
-
condimentum mi massa. In tincidunt pharetra consectetur sed duis
|
|
93
|
-
facilisis metus. Etiam egestas in nec sed et. Quis lobortis at sit
|
|
94
|
-
dictum eget nibh tortor commodo cursus.
|
|
95
|
-
</p>
|
|
96
|
-
<p>
|
|
97
|
-
Odio felis sagittis, morbi feugiat tortor vitae feugiat fusce aliquet.
|
|
98
|
-
Nam elementum urna nisi aliquet erat dolor enim. Ornare id morbi eget
|
|
99
|
-
ipsum. Aliquam senectus neque ut id eget consectetur dictum. Donec
|
|
100
|
-
posuere pharetra odio consequat scelerisque et, nunc tortor.
|
|
101
|
-
</p>
|
|
102
|
-
</Prose>
|
|
103
|
-
</div>);
|
|
104
|
-
}
|