@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { createListCollection } from '@ark-ui/react';
|
|
3
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
4
|
+
import { useEffect, useMemo } from 'react';
|
|
5
|
+
import { Controller, useForm } from 'react-hook-form';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import { useShallow } from 'zustand/shallow';
|
|
8
|
+
import { useCreateInstapayWithdrawalMutation, useGlobalStore, useInstapayBankListQuery, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
9
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
10
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
11
|
+
import { Button, Field, NumberInput, PasswordInput, Select } from '../../../../ui/index.js';
|
|
12
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
13
|
+
import { AmountChoices } from '../../AmountChoices.js';
|
|
14
|
+
export function InstapayWithdrawal() {
|
|
15
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
16
|
+
depositWithdrawal: ctx.depositWithdrawal,
|
|
17
|
+
})));
|
|
18
|
+
const createWithdrawalMutation = useCreateInstapayWithdrawalMutation({
|
|
19
|
+
onSuccess() {
|
|
20
|
+
form.reset();
|
|
21
|
+
globalStore.depositWithdrawal.setOpen(false);
|
|
22
|
+
toaster.success({
|
|
23
|
+
description: 'Withdrawal request submitted successfully.',
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
onError(error) {
|
|
27
|
+
toaster.error({
|
|
28
|
+
description: error.message,
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const instapayBankListQuery = useInstapayBankListQuery();
|
|
33
|
+
const instapayBankList = instapayBankListQuery.data;
|
|
34
|
+
const paymentSettingsQuery = usePaymentSettingsQuery();
|
|
35
|
+
const paymentSettings = paymentSettingsQuery.data;
|
|
36
|
+
const gatewaySettings = paymentSettings?.instapayWithdrawalGatewaySettings;
|
|
37
|
+
const minimumAmount = parseDecimal(gatewaySettings?.minimumAmount, 0);
|
|
38
|
+
const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
|
|
39
|
+
const definition = z.object({
|
|
40
|
+
amount: z.string().superRefine((val, ctx) => {
|
|
41
|
+
const n = parseDecimal(val, 0);
|
|
42
|
+
if (n < minimumAmount) {
|
|
43
|
+
ctx.addIssue({
|
|
44
|
+
type: 'number',
|
|
45
|
+
code: z.ZodIssueCode.too_small,
|
|
46
|
+
inclusive: true,
|
|
47
|
+
minimum: minimumAmount,
|
|
48
|
+
message: `Minimum amount is ${minimumAmount.toLocaleString()}`,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
if (n > maximumAmount) {
|
|
52
|
+
ctx.addIssue({
|
|
53
|
+
type: 'number',
|
|
54
|
+
code: z.ZodIssueCode.too_big,
|
|
55
|
+
inclusive: true,
|
|
56
|
+
maximum: maximumAmount,
|
|
57
|
+
message: `Maximum amount is ${maximumAmount.toLocaleString()}`,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
password: z
|
|
62
|
+
.string()
|
|
63
|
+
.min(8, 'Password must be 8 or more characters')
|
|
64
|
+
.max(64, 'Password must be not be more than 64 characters'),
|
|
65
|
+
accountNumber: z.string().min(1).trim(),
|
|
66
|
+
bankCode: z.string().min(1, 'Bank is required').trim(),
|
|
67
|
+
});
|
|
68
|
+
const form = useForm({
|
|
69
|
+
mode: 'all',
|
|
70
|
+
resolver: zodResolver(definition),
|
|
71
|
+
defaultValues: {
|
|
72
|
+
amount: '0',
|
|
73
|
+
password: '',
|
|
74
|
+
accountNumber: '',
|
|
75
|
+
bankCode: '',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (minimumAmount) {
|
|
80
|
+
form.reset({
|
|
81
|
+
amount: minimumAmount.toString(),
|
|
82
|
+
bankCode: form.getValues('bankCode'),
|
|
83
|
+
password: '',
|
|
84
|
+
accountNumber: '',
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}, [form, minimumAmount]);
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (instapayBankList?.length) {
|
|
90
|
+
form.reset({
|
|
91
|
+
amount: form.getValues('amount'),
|
|
92
|
+
bankCode: instapayBankList[0].code,
|
|
93
|
+
password: '',
|
|
94
|
+
accountNumber: '',
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, [form, instapayBankList]);
|
|
98
|
+
const handleSubmit = form.handleSubmit(async (data) => {
|
|
99
|
+
createWithdrawalMutation.mutate({
|
|
100
|
+
amount: data.amount,
|
|
101
|
+
transactionPassword: data.password,
|
|
102
|
+
accountNumber: data.accountNumber,
|
|
103
|
+
bankCode: data.bankCode,
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
const bankCollection = useMemo(() => createListCollection({
|
|
107
|
+
items: instapayBankList ?? [],
|
|
108
|
+
itemToValue: (item) => item.code,
|
|
109
|
+
itemToString: (item) => item.name,
|
|
110
|
+
}), [instapayBankList]);
|
|
111
|
+
console.log(bankCollection.items);
|
|
112
|
+
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", children: [_jsx(Controller, { control: form.control, name: "bankCode", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.bankCode, children: [_jsxs(Select.Root, { collection: bankCollection, positioning: {
|
|
113
|
+
sameWidth: true,
|
|
114
|
+
}, value: o.field.value ? [o.field.value] : [], onValueChange: (details) => {
|
|
115
|
+
o.field.onChange(details.value.at(0) ?? '');
|
|
116
|
+
}, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.id))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Bank account number" }), _jsx(Field.Input, { ...form.register('accountNumber') }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-3xl", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
|
|
117
|
+
o.field.onChange(details.value);
|
|
118
|
+
}, formatOptions: {
|
|
119
|
+
maximumFractionDigits: 2,
|
|
120
|
+
minimumFractionDigits: 0,
|
|
121
|
+
}, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to withdraw" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
|
|
122
|
+
form.setValue('amount', value.toString(), {
|
|
123
|
+
shouldTouch: true,
|
|
124
|
+
shouldDirty: true,
|
|
125
|
+
shouldValidate: true,
|
|
126
|
+
});
|
|
127
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-4xl text-xs", children: ["Upon clicking the deposit button, you agree to the", ' ', _jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }), "."] }), _jsx(Button, { type: "submit", className: "mt-4.5", disabled: createWithdrawalMutation.isPending, children: createWithdrawalMutation.isPending ? (_jsxs(_Fragment, { children: [_jsx(SpinnerIcon, {}), "Processing..."] })) : ('Deposit') })] }));
|
|
128
|
+
}
|
package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function MayaAppWithdrawal(): import("react").JSX.Element;
|
|
1
|
+
export declare function MayaAppWithdrawal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import { Controller, useForm } from 'react-hook-form';
|
|
@@ -8,8 +9,8 @@ import { toaster } from '../../../../client/utils/index.js';
|
|
|
8
9
|
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
9
10
|
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui/index.js';
|
|
10
11
|
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
|
-
import { AmountChoices } from '../../AmountChoices';
|
|
12
|
-
import { MayaSessionExpired } from '../../MayaSessionExpired';
|
|
12
|
+
import { AmountChoices } from '../../AmountChoices.js';
|
|
13
|
+
import { MayaSessionExpired } from '../../MayaSessionExpired.js';
|
|
13
14
|
export function MayaAppWithdrawal() {
|
|
14
15
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
15
16
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
@@ -85,72 +86,18 @@ export function MayaAppWithdrawal() {
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
if (!isMayaSessionValid) {
|
|
88
|
-
return
|
|
89
|
+
return _jsx(MayaSessionExpired, {});
|
|
89
90
|
}
|
|
90
|
-
return (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<NumberInput.Input />
|
|
103
|
-
<NumberInput.IncrementTrigger>
|
|
104
|
-
<ChevronUpIcon />
|
|
105
|
-
</NumberInput.IncrementTrigger>
|
|
106
|
-
<NumberInput.DecrementTrigger>
|
|
107
|
-
<ChevronDownIcon />
|
|
108
|
-
</NumberInput.DecrementTrigger>
|
|
109
|
-
</NumberInput.Control>
|
|
110
|
-
</NumberInput.Root>
|
|
111
|
-
<Field.ErrorText>
|
|
112
|
-
{form.formState.errors.amount?.message}
|
|
113
|
-
</Field.ErrorText>
|
|
114
|
-
</Field.Root>)}/>
|
|
115
|
-
|
|
116
|
-
<AmountChoices value={parseDecimal(form.watch('amount'), 0)} onChange={(value) => {
|
|
117
|
-
form.setValue('amount', value.toString(), {
|
|
118
|
-
shouldTouch: true,
|
|
119
|
-
shouldDirty: true,
|
|
120
|
-
shouldValidate: true,
|
|
121
|
-
});
|
|
122
|
-
}} min={minimumAmount} max={maximumAmount} className="mt-xl"/>
|
|
123
|
-
|
|
124
|
-
<Field.Root className="mt-3xl" invalid={!!form.formState.errors.password}>
|
|
125
|
-
<PasswordInput.Root>
|
|
126
|
-
<PasswordInput.Label>Password</PasswordInput.Label>
|
|
127
|
-
<PasswordInput.Control>
|
|
128
|
-
<PasswordInput.Input {...form.register('password')}/>
|
|
129
|
-
<PasswordInput.VisibilityTrigger>
|
|
130
|
-
<PasswordInput.Indicator fallback={<EyeOffIcon />} asChild>
|
|
131
|
-
<EyeIcon />
|
|
132
|
-
</PasswordInput.Indicator>
|
|
133
|
-
</PasswordInput.VisibilityTrigger>
|
|
134
|
-
</PasswordInput.Control>
|
|
135
|
-
</PasswordInput.Root>
|
|
136
|
-
<Field.ErrorText>
|
|
137
|
-
{form.formState.errors.password?.message}
|
|
138
|
-
</Field.ErrorText>
|
|
139
|
-
</Field.Root>
|
|
140
|
-
|
|
141
|
-
<p className="mt-4xl text-xs">
|
|
142
|
-
Upon clicking the deposit button, you agree to the{' '}
|
|
143
|
-
<button type="button" className="underline underline-offset-2">
|
|
144
|
-
Terms of Use and Privacy Policy
|
|
145
|
-
</button>
|
|
146
|
-
.
|
|
147
|
-
</p>
|
|
148
|
-
|
|
149
|
-
<Button type="submit" className="mt-4.5" disabled={createWithdrawalMutation.isPending}>
|
|
150
|
-
{createWithdrawalMutation.isPending ? (<>
|
|
151
|
-
<SpinnerIcon />
|
|
152
|
-
Processing...
|
|
153
|
-
</>) : ('Withdraw')}
|
|
154
|
-
</Button>
|
|
155
|
-
</form>);
|
|
91
|
+
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, children: [_jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
|
|
92
|
+
o.field.onChange(details.value);
|
|
93
|
+
}, formatOptions: {
|
|
94
|
+
maximumFractionDigits: 2,
|
|
95
|
+
minimumFractionDigits: 0,
|
|
96
|
+
}, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to deposit" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
|
|
97
|
+
form.setValue('amount', value.toString(), {
|
|
98
|
+
shouldTouch: true,
|
|
99
|
+
shouldDirty: true,
|
|
100
|
+
shouldValidate: true,
|
|
101
|
+
});
|
|
102
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-4xl text-xs", children: ["Upon clicking the deposit button, you agree to the", ' ', _jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }), "."] }), _jsx(Button, { type: "submit", className: "mt-4.5", disabled: createWithdrawalMutation.isPending, children: createWithdrawalMutation.isPending ? (_jsxs(_Fragment, { children: [_jsx(SpinnerIcon, {}), "Processing..."] })) : ('Withdraw') })] }));
|
|
156
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function MayaWithdrawal(): import("react").JSX.Element;
|
|
1
|
+
export declare function MayaWithdrawal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import { Controller, useForm } from 'react-hook-form';
|
|
@@ -8,7 +9,7 @@ import { toaster } from '../../../../client/utils/index.js';
|
|
|
8
9
|
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
9
10
|
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui/index.js';
|
|
10
11
|
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
|
-
import { AmountChoices } from '../../AmountChoices';
|
|
12
|
+
import { AmountChoices } from '../../AmountChoices.js';
|
|
12
13
|
export function MayaWithdrawal() {
|
|
13
14
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
14
15
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
@@ -89,81 +90,16 @@ export function MayaWithdrawal() {
|
|
|
89
90
|
transactionPassword: data.password,
|
|
90
91
|
});
|
|
91
92
|
});
|
|
92
|
-
return (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<Controller control={form.control} name="amount" render={(o) => (<Field.Root invalid={!!form.formState.errors.amount} className="mt-3xl">
|
|
105
|
-
<NumberInput.Root min={0} step={1} value={o.field.value} onValueChange={(details) => {
|
|
106
|
-
o.field.onChange(details.value);
|
|
107
|
-
}} formatOptions={{
|
|
108
|
-
maximumFractionDigits: 2,
|
|
109
|
-
minimumFractionDigits: 0,
|
|
110
|
-
}} allowMouseWheel>
|
|
111
|
-
<NumberInput.Label>
|
|
112
|
-
Enter amount you want to withdraw
|
|
113
|
-
</NumberInput.Label>
|
|
114
|
-
<NumberInput.Control>
|
|
115
|
-
<NumberInput.Input />
|
|
116
|
-
<NumberInput.IncrementTrigger>
|
|
117
|
-
<ChevronUpIcon />
|
|
118
|
-
</NumberInput.IncrementTrigger>
|
|
119
|
-
<NumberInput.DecrementTrigger>
|
|
120
|
-
<ChevronDownIcon />
|
|
121
|
-
</NumberInput.DecrementTrigger>
|
|
122
|
-
</NumberInput.Control>
|
|
123
|
-
</NumberInput.Root>
|
|
124
|
-
<Field.ErrorText>
|
|
125
|
-
{form.formState.errors.amount?.message}
|
|
126
|
-
</Field.ErrorText>
|
|
127
|
-
</Field.Root>)}/>
|
|
128
|
-
|
|
129
|
-
<AmountChoices value={parseDecimal(form.watch('amount'), 0)} onChange={(value) => {
|
|
130
|
-
form.setValue('amount', value.toString(), {
|
|
131
|
-
shouldTouch: true,
|
|
132
|
-
shouldDirty: true,
|
|
133
|
-
shouldValidate: true,
|
|
134
|
-
});
|
|
135
|
-
}} min={minimumAmount} max={maximumAmount} className="mt-xl"/>
|
|
136
|
-
|
|
137
|
-
<Field.Root className="mt-3xl" invalid={!!form.formState.errors.password}>
|
|
138
|
-
<PasswordInput.Root>
|
|
139
|
-
<PasswordInput.Label>Password</PasswordInput.Label>
|
|
140
|
-
<PasswordInput.Control>
|
|
141
|
-
<PasswordInput.Input {...form.register('password')}/>
|
|
142
|
-
<PasswordInput.VisibilityTrigger>
|
|
143
|
-
<PasswordInput.Indicator fallback={<EyeOffIcon />} asChild>
|
|
144
|
-
<EyeIcon />
|
|
145
|
-
</PasswordInput.Indicator>
|
|
146
|
-
</PasswordInput.VisibilityTrigger>
|
|
147
|
-
</PasswordInput.Control>
|
|
148
|
-
</PasswordInput.Root>
|
|
149
|
-
<Field.ErrorText>
|
|
150
|
-
{form.formState.errors.password?.message}
|
|
151
|
-
</Field.ErrorText>
|
|
152
|
-
</Field.Root>
|
|
153
|
-
|
|
154
|
-
<p className="mt-4xl text-xs">
|
|
155
|
-
Upon clicking the deposit button, you agree to the{' '}
|
|
156
|
-
<button type="button" className="underline underline-offset-2">
|
|
157
|
-
Terms of Use and Privacy Policy
|
|
158
|
-
</button>
|
|
159
|
-
.
|
|
160
|
-
</p>
|
|
161
|
-
|
|
162
|
-
<Button type="submit" className="mt-4.5" disabled={createWithdrawalMutation.isPending}>
|
|
163
|
-
{createWithdrawalMutation.isPending ? (<>
|
|
164
|
-
<SpinnerIcon />
|
|
165
|
-
Processing...
|
|
166
|
-
</>) : ('Deposit')}
|
|
167
|
-
</Button>
|
|
168
|
-
</form>);
|
|
93
|
+
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsx(localeInfo.country.flag, { className: "pointer-events-none absolute left-3.5 top-1/2 size-5 -translate-y-1/2" }), _jsx(Field.Input, { className: "pl-10.5", ...form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: form.formState.errors.mobileNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-3xl", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
|
|
94
|
+
o.field.onChange(details.value);
|
|
95
|
+
}, formatOptions: {
|
|
96
|
+
maximumFractionDigits: 2,
|
|
97
|
+
minimumFractionDigits: 0,
|
|
98
|
+
}, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to withdraw" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
|
|
99
|
+
form.setValue('amount', value.toString(), {
|
|
100
|
+
shouldTouch: true,
|
|
101
|
+
shouldDirty: true,
|
|
102
|
+
shouldValidate: true,
|
|
103
|
+
});
|
|
104
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-4xl text-xs", children: ["Upon clicking the deposit button, you agree to the", ' ', _jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }), "."] }), _jsx(Button, { type: "submit", className: "mt-4.5", disabled: createWithdrawalMutation.isPending, children: createWithdrawalMutation.isPending ? (_jsxs(_Fragment, { children: [_jsx(SpinnerIcon, {}), "Processing..."] })) : ('Deposit') })] }));
|
|
169
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Withdrawal(): import("react").JSX.Element;
|
|
1
|
+
export declare function Withdrawal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import Link from 'next/link';
|
|
2
3
|
import { useEffect, useState } from 'react';
|
|
3
4
|
import { useShallow } from 'zustand/shallow';
|
|
4
5
|
import { useAccountQuery, useGlobalStore, useOnMMA, usePaymentSettingsQuery, } from '../../../client/hooks/index.js';
|
|
5
6
|
import { AlertCircleIcon, AlertTriangleIcon, ArrowRightIcon, SpinnerIcon, } from '../../../icons/index.js';
|
|
6
7
|
import { onMobileDevice } from '../../../utils/index.js';
|
|
7
|
-
import { PaymentMethods } from '../PaymentMethods';
|
|
8
|
-
import { GCashWithdrawal } from './GCashWithdrawal/GCashWithdrawal';
|
|
9
|
-
import { InstapayWithdrawal } from './InstapayWithdrawal/InstapayWithdrawal';
|
|
10
|
-
import { MayaAppWithdrawal } from './MayaAppWithdrawal/MayaAppWithdrawal';
|
|
11
|
-
import { MayaWithdrawal } from './MayaWithdrawal/MayaWithdrawal';
|
|
8
|
+
import { PaymentMethods } from '../PaymentMethods.js';
|
|
9
|
+
import { GCashWithdrawal } from './GCashWithdrawal/GCashWithdrawal.js';
|
|
10
|
+
import { InstapayWithdrawal } from './InstapayWithdrawal/InstapayWithdrawal.js';
|
|
11
|
+
import { MayaAppWithdrawal } from './MayaAppWithdrawal/MayaAppWithdrawal.js';
|
|
12
|
+
import { MayaWithdrawal } from './MayaWithdrawal/MayaWithdrawal.js';
|
|
12
13
|
export function Withdrawal() {
|
|
13
14
|
const [onMMA] = useOnMMA();
|
|
14
15
|
const accountQuery = useAccountQuery();
|
|
@@ -53,46 +54,22 @@ export function Withdrawal() {
|
|
|
53
54
|
if (account) {
|
|
54
55
|
if (!account.transactionPassword ||
|
|
55
56
|
account.verificationStatus !== 'VERIFIED')
|
|
56
|
-
return
|
|
57
|
+
return _jsx(WithdrawalNotAllowed, {});
|
|
57
58
|
}
|
|
58
59
|
if (paymentSettingsQuery.isLoading) {
|
|
59
|
-
return
|
|
60
|
+
return _jsx(SpinnerIcon, { className: "mx-auto size-6" });
|
|
60
61
|
}
|
|
61
62
|
if (enabledPaymentMethods.length <= 0) {
|
|
62
|
-
return (
|
|
63
|
-
<AlertCircleIcon className="size-4"/>
|
|
64
|
-
No available payment methods
|
|
65
|
-
</div>);
|
|
63
|
+
return (_jsxs("div", { className: "border-amber-200 text-amber-700 bg-amber-50 flex items-center gap-1.5 rounded-sm border px-3 py-2.5 text-sm", children: [_jsx(AlertCircleIcon, { className: "size-4" }), "No available payment methods"] }));
|
|
66
64
|
}
|
|
67
|
-
return (
|
|
68
|
-
<PaymentMethods value={paymentMethod} onChange={setPaymentMethod} options={enabledPaymentMethods}/>
|
|
69
|
-
|
|
70
|
-
{paymentMethod === 'GCASH' && <GCashWithdrawal />}
|
|
71
|
-
{paymentMethod === 'MAYA' && <MayaWithdrawal />}
|
|
72
|
-
{paymentMethod === 'MAYA_APP' && <MayaAppWithdrawal />}
|
|
73
|
-
{paymentMethod === 'INSTAPAY' && <InstapayWithdrawal />}
|
|
74
|
-
</>);
|
|
65
|
+
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {})] }));
|
|
75
66
|
}
|
|
76
67
|
function WithdrawalNotAllowed() {
|
|
77
68
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
78
69
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
79
70
|
})));
|
|
80
|
-
return (
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<h2 className="mt-xl text-center text-lg font-semibold lg:text-2xl">
|
|
85
|
-
Verification and password not set
|
|
86
|
-
</h2>
|
|
87
|
-
<p className="text-gray-500 mx-auto mt-md max-w-[31.25rem] text-center text-sm lg:text-base">
|
|
88
|
-
To enable withdrawals, first complete the identity verification process
|
|
89
|
-
and set up your transaction password.
|
|
90
|
-
</p>
|
|
91
|
-
<Link href="/personal-center" className="text-gray-900 mx-auto mt-2xl flex w-fit items-center gap-md font-semibold" onClick={() => {
|
|
92
|
-
globalStore.depositWithdrawal.setOpen(false);
|
|
93
|
-
globalStore.depositWithdrawal.setTab('WITHDRAWAL');
|
|
94
|
-
}}>
|
|
95
|
-
Personal Center <ArrowRightIcon className="size-5"/>
|
|
96
|
-
</Link>
|
|
97
|
-
</div>);
|
|
71
|
+
return (_jsxs("div", { className: "pb-16 pt-4xl lg:pb-12", children: [_jsx("div", { className: "bg-amber-50 text-amber-600 mx-auto flex size-12 items-center justify-center rounded-full lg:size-14", children: _jsx(AlertTriangleIcon, { className: "size-6 lg:size-7" }) }), _jsx("h2", { className: "mt-xl text-center text-lg font-semibold lg:text-2xl", children: "Verification and password not set" }), _jsx("p", { className: "text-gray-500 mx-auto mt-md max-w-[31.25rem] text-center text-sm lg:text-base", children: "To enable withdrawals, first complete the identity verification process and set up your transaction password." }), _jsxs(Link, { href: "/personal-center", className: "text-gray-900 mx-auto mt-2xl flex w-fit items-center gap-md font-semibold", onClick: () => {
|
|
72
|
+
globalStore.depositWithdrawal.setOpen(false);
|
|
73
|
+
globalStore.depositWithdrawal.setTab('WITHDRAWAL');
|
|
74
|
+
}, children: ["Personal Center ", _jsx(ArrowRightIcon, { className: "size-5" })] })] }));
|
|
98
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DepositWithdrawal';
|
|
1
|
+
export * from './DepositWithdrawal.js';
|
|
@@ -2,4 +2,4 @@ import type { ImageProps } from 'next/image';
|
|
|
2
2
|
export interface DisclaimerProps {
|
|
3
3
|
logo: ImageProps['src'];
|
|
4
4
|
}
|
|
5
|
-
export declare function Disclaimer(props: DisclaimerProps): import("react").JSX.Element;
|
|
5
|
+
export declare function Disclaimer(props: DisclaimerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Portal } from '@ark-ui/react';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import { useRef } from 'react';
|
|
6
|
+
import pagcorLogo from '../../images/pagcor.png';
|
|
7
|
+
import responsibleGamingLogo from '../../images/responsible-gaming.png';
|
|
8
|
+
import { Button, Dialog } from '../../ui/index.js';
|
|
9
|
+
import { useDisclaimer } from './useDisclaimer.js';
|
|
10
|
+
export function Disclaimer(props) {
|
|
11
|
+
const disclaimer = useDisclaimer();
|
|
12
|
+
const acceptTriggerRef = useRef(null);
|
|
13
|
+
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, initialFocusEl: () => acceptTriggerRef.current, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsx(Dialog.Title, { className: "mt-3xl text-center text-lg font-semibold", children: "Age Verification" }), _jsxs(Dialog.Description, { className: "text-text-tertiary-600 mt-xs text-center text-sm", children: ["By entering this website I acknowledge and confirmI am 21 years of age and I agree with the", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", children: "Terms and Conditions." })] }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx(Button, { ref: acceptTriggerRef, type: "button", className: "mt-4xl", onClick: disclaimer.close, children: "Accept" })] }) })] }) }));
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Disclaimer';
|
|
1
|
+
export * from './Disclaimer.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function Empty(props) {
|
|
3
|
+
return (_jsxs("div", { role: "alert", "aria-live": "polite", className: props.className, children: [_jsxs("div", { className: "relative mx-auto w-[9.5rem] pt-4", children: [_jsx("div", { className: "bg-utility-gray-200 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full" }), _jsx(CloudIcon, { className: "relative h-auto w-full shrink-0" }), _jsx("div", { className: "bg-utility-gray-200/40 absolute bottom-2 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm", children: _jsx(props.icon, { className: "size-6 text-white" }) }), _jsx("div", { className: "bg-utility-gray-200 absolute left-4 top-3.5 size-2.5 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute bottom-0.5 left-3 size-3.5 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute right-3.5 top-1 size-2 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute right-0 top-6.5 size-3.5 rounded-full" })] }), _jsx("h2", { className: "mt-xl text-center font-semibold", children: props.title }), _jsx("p", { className: "text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: props.message })] }));
|
|
4
|
+
}
|
|
5
|
+
function CloudIcon(props) {
|
|
6
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 152 104", fill: "none", ...props, children: [_jsxs("g", { filter: "url(#filter0_dd_2719_19242)", children: [_jsx("path", { d: "M77.6 0C66.8273 0 57.2978 5.32329 51.4987 13.4829C49.605 13.0363 47.6301 12.8 45.6 12.8C31.4615 12.8 20 24.2615 20 38.4C20 52.5385 31.4615 64 45.6 64L109.6 64C121.971 64 132 53.9712 132 41.6C132 29.2288 121.971 19.2 109.6 19.2C108.721 19.2 107.854 19.2506 107.002 19.349C102.098 7.9677 90.7797 0 77.6 0Z", fill: "#F9FAFB" }), _jsx("ellipse", { cx: "45.6", cy: "38.4008", rx: "25.6", ry: "25.6", fill: "url(#paint0_linear_2719_19242)" }), _jsx("circle", { cx: "77.6", cy: "32", r: "32", fill: "url(#paint1_linear_2719_19242)" }), _jsx("ellipse", { cx: "109.6", cy: "41.5992", rx: "22.4", ry: "22.4", fill: "url(#paint2_linear_2719_19242)" })] }), _jsxs("defs", { children: [_jsxs("filter", { id: "filter0_dd_2719_19242", x: "0", y: "0", width: "152", height: "104", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect1_dropShadow_2719_19242" }), _jsx("feOffset", { dy: "8" }), _jsx("feGaussianBlur", { stdDeviation: "4" }), _jsx("feComposite", { in2: "hardAlpha", operator: "out" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0" }), _jsx("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_2719_19242" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect2_dropShadow_2719_19242" }), _jsx("feOffset", { dy: "20" }), _jsx("feGaussianBlur", { stdDeviation: "12" }), _jsx("feComposite", { in2: "hardAlpha", operator: "out" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0" }), _jsx("feBlend", { mode: "normal", in2: "effect1_dropShadow_2719_19242", result: "effect2_dropShadow_2719_19242" }), _jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect2_dropShadow_2719_19242", result: "shape" })] }), _jsxs("linearGradient", { id: "paint0_linear_2719_19242", x1: "25.9429", y1: "21.4865", x2: "71.2", y2: "64.0007", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "paint1_linear_2719_19242", x1: "53.0286", y1: "10.8571", x2: "109.6", y2: "64", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "paint2_linear_2719_19242", x1: "92.4", y1: "26.7992", x2: "132", y2: "63.9992", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] })] })] }));
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { FavoriteGamesProps } from './FavoriteGames';
|
|
2
|
-
export declare function FavoriteGames__client(props: FavoriteGamesProps): import("react").JSX.Element | null;
|
|
2
|
+
export declare function FavoriteGames__client(props: FavoriteGamesProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { useFavoriteGamesQuery, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
|
|
6
|
+
import { ArrowLeftIcon, ArrowRightIcon, Star01Icon } from '../../icons/index.js';
|
|
7
|
+
import { Button } from '../../ui/index.js';
|
|
8
|
+
import { getGameImageUrl } from '../../utils/index.js';
|
|
9
|
+
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
10
|
+
export function FavoriteGames__client(props) {
|
|
11
|
+
const gamesQuery = useFavoriteGamesQuery();
|
|
12
|
+
const games = gamesQuery.data ?? [];
|
|
13
|
+
if (games.length <= 0)
|
|
14
|
+
return null;
|
|
15
|
+
return (_jsxs("div", { className: props.className, children: [_jsxs("div", { className: "flex items-center", children: [_jsx("h2", { className: "text-lg font-semibold", children: props.heading ?? 'Favorite Games' }), _jsx("div", { className: "grow" }), _jsx("div", { className: "flex items-center justify-center gap-xl", children: _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "rounded-l-none", children: _jsx(ArrowRightIcon, { className: "size-5" }) })] }) })] }), _jsx("div", { className: "relative mt-lg lg:overflow-hidden", children: _jsx("div", { className: twMerge('grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col grid-rows-1 gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md'), children: games.map((game) => (_jsx(Item, { game: game }, game.id))) }) })] }));
|
|
16
|
+
}
|
|
17
|
+
function Item({ game }) {
|
|
18
|
+
const sessionQuery = useSessionQuery();
|
|
19
|
+
const session = sessionQuery.data;
|
|
20
|
+
const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation();
|
|
21
|
+
return (_jsxs(GameLaunchTrigger, { game: game, className: "relative block w-full shadow-sm", children: [session?.status === 'authenticated' && (_jsx("div", { role: "button", onClick: (e) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
if (unmarkGameAsFavoriteMutation.isPending)
|
|
25
|
+
return;
|
|
26
|
+
unmarkGameAsFavoriteMutation.mutate(game.id);
|
|
27
|
+
}, "aria-disabled": unmarkGameAsFavoriteMutation.isPending, className: "rounded-xs absolute right-2 top-2 flex size-9 items-center justify-center bg-black/65 blur-[0.5px]", children: _jsx(Star01Icon, { className: "fill-yellow-400 text-yellow-400 size-5" }) })), _jsx(Image, { src: getGameImageUrl({
|
|
28
|
+
id: game.id,
|
|
29
|
+
provider: game.provider,
|
|
30
|
+
}), alt: "", width: 200, height: 200, priority: true, className: "aspect-square w-full rounded-t-md object-cover" }), _jsx("span", { className: "bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold", children: game.name })] }));
|
|
31
|
+
}
|
|
@@ -3,4 +3,4 @@ export interface FavoriteGamesProps {
|
|
|
3
3
|
/** @default 'Favorite Games' */
|
|
4
4
|
heading?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function FavoriteGames(props: FavoriteGamesProps): Promise<import("react").JSX.Element>;
|
|
6
|
+
export declare function FavoriteGames(props: FavoriteGamesProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { prefetchFavoriteGamesQuery } from '../../server/utils/index.js';
|
|
3
|
+
import { FavoriteGames__client } from './FavoriteGames.client.js';
|
|
4
|
+
export async function FavoriteGames(props) {
|
|
5
|
+
await prefetchFavoriteGamesQuery();
|
|
6
|
+
return _jsx(FavoriteGames__client, { ...props });
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './FavoriteGames';
|
|
1
|
+
export * from './FavoriteGames.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function GameLaunch(): import("react").JSX.Element;
|
|
1
|
+
export declare function GameLaunch(): import("react/jsx-runtime").JSX.Element;
|