@opexa/portal-components 0.0.17 → 0.0.19
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/index.d.ts +7 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -1
- package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
- package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
- package/dist/client/hooks/useBonusesQuery.js +1 -0
- package/dist/client/hooks/useBonusesQuery.mjs +38 -0
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
- package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
- package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
- package/dist/client/hooks/useGlobalStore.d.ts +34 -14
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +113 -34
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- package/dist/client/hooks/useSignInMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.mjs +3 -2
- package/dist/client/hooks/useSignOutMutation.js +1 -1
- package/dist/client/hooks/useSignOutMutation.mjs +11 -10
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/services/getSession.js +1 -1
- package/dist/client/services/getSession.mjs +4 -3
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +92 -80
- package/dist/components/Account/Account.d.ts +17 -8
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +253 -130
- package/dist/components/Account/account.recipe.d.ts +61 -0
- package/dist/components/Account/account.recipe.js +1 -0
- package/dist/components/Account/account.recipe.mjs +35 -0
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +375 -319
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +126 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
- package/dist/components/Empty.js +1 -0
- package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
- package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
- package/dist/components/FavoriteGames/index.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
- package/dist/components/GameProviders/GameProviders.d.ts +7 -10
- package/dist/components/GameProviders/GameProviders.js +1 -0
- package/dist/components/GameProviders/GameProviders.mjs +122 -0
- package/dist/components/GameProviders/index.d.ts +1 -0
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +96 -68
- package/dist/components/Games/Games.d.ts +7 -2
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +4 -2
- package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -0
- package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
- package/dist/components/GamesSearch/index.d.ts +2 -0
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +1 -0
- package/dist/components/InfiniteScroll.mjs +30 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
- package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
- package/dist/components/Jackpots/JackpotRules.js +1 -0
- package/dist/components/Jackpots/JackpotRules.mjs +78 -0
- package/dist/components/Jackpots/Jackpots.d.ts +8 -0
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/Jackpots/index.d.ts +1 -0
- package/dist/components/KYC/KYC.d.ts +5 -0
- package/dist/components/KYC/KYC.js +1 -0
- package/dist/components/KYC/KYC.mjs +84 -0
- package/dist/components/KYC/KYCContext.d.ts +3 -0
- package/dist/components/KYC/KYCContext.js +1 -0
- package/dist/components/KYC/KYCContext.mjs +11 -0
- package/dist/components/KYC/KYCTrigger.d.ts +5 -0
- package/dist/components/KYC/KYCTrigger.js +1 -0
- package/dist/components/KYC/KYCTrigger.mjs +42 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +1 -0
- package/dist/components/KYC/Step1.mjs +67 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +1 -0
- package/dist/components/KYC/Step2.mjs +126 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +1 -0
- package/dist/components/KYC/Step3.mjs +98 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -0
- package/dist/components/KYC/StepIndicator.js +1 -0
- package/dist/components/KYC/StepIndicator.mjs +42 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -0
- package/dist/components/KYC/UploadDocument.js +1 -0
- package/dist/components/KYC/UploadDocument.mjs +69 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -0
- package/dist/components/KYC/UploadSelfie.js +1 -0
- package/dist/components/KYC/UploadSelfie.mjs +65 -0
- package/dist/components/KYC/index.d.ts +2 -0
- package/dist/components/KYC/useKYC.d.ts +14 -0
- package/dist/components/KYC/useKYC.js +1 -0
- package/dist/components/KYC/useKYC.mjs +43 -0
- package/dist/components/KYC/utils.d.ts +1 -0
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +7 -7
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +75 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +95 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +166 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
- package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
- package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
- package/dist/components/Promo/Promo.d.ts +4 -1
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promo/Promo.mjs +2 -2
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +75 -22
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +30 -25
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +14 -13
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +11 -7
- package/dist/components/Promos/Promos.d.ts +4 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
- package/dist/components/Quests/Quests.d.ts +1 -0
- package/dist/components/Quests/Quests.js +1 -0
- package/dist/components/Quests/Quests.mjs +15 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
- package/dist/components/Quests/index.d.ts +1 -0
- package/dist/components/SignIn/SignIn.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +34 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +169 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +34 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +125 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +15 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
- package/dist/components/index.d.ts +10 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpIcon.js +1 -0
- package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
- package/dist/icons/Award01Icon.d.ts +2 -0
- package/dist/icons/Award01Icon.js +1 -0
- package/dist/icons/Award01Icon.mjs +22 -0
- package/dist/icons/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -0
- package/dist/icons/CalendarIcon.d.ts +2 -0
- package/dist/icons/CalendarIcon.js +1 -0
- package/dist/icons/CalendarIcon.mjs +26 -0
- package/dist/icons/Camera01Icon.d.ts +2 -0
- package/dist/icons/Camera01Icon.js +1 -0
- package/dist/icons/Camera01Icon.mjs +25 -0
- package/dist/icons/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/CheckCircleIcon.js +1 -0
- package/dist/icons/CheckCircleIcon.mjs +22 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
- package/dist/icons/ClockStopWatchIcon.js +1 -0
- package/dist/icons/ClockStopWatchIcon.mjs +26 -0
- package/dist/icons/CoinsHandIcon.d.ts +2 -0
- package/dist/icons/CoinsHandIcon.js +1 -0
- package/dist/icons/CoinsHandIcon.mjs +22 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
- package/dist/icons/CoinsStacked02Icon.js +1 -0
- package/dist/icons/CoinsStacked02Icon.mjs +22 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
- package/dist/icons/CoinsSwap02Icon.js +1 -0
- package/dist/icons/CoinsSwap02Icon.mjs +22 -0
- package/dist/icons/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.mjs +22 -0
- package/dist/icons/Flag06Icon.d.ts +2 -0
- package/dist/icons/Flag06Icon.js +1 -0
- package/dist/icons/Flag06Icon.mjs +22 -0
- package/dist/icons/HelpCircleIcon.d.ts +2 -0
- package/dist/icons/HelpCircleIcon.js +1 -0
- package/dist/icons/HelpCircleIcon.mjs +22 -0
- package/dist/icons/InfoCircleIcon.d.ts +2 -0
- package/dist/icons/InfoCircleIcon.js +1 -0
- package/dist/icons/InfoCircleIcon.mjs +27 -0
- package/dist/icons/Menu01Icon.d.ts +2 -0
- package/dist/icons/Menu01Icon.js +1 -0
- package/dist/icons/Menu01Icon.mjs +22 -0
- package/dist/icons/Menu03Icon.d.ts +2 -0
- package/dist/icons/Menu03Icon.js +1 -0
- package/dist/icons/Menu03Icon.mjs +22 -0
- package/dist/icons/SearchLgIcon.d.ts +2 -0
- package/dist/icons/SearchLgIcon.js +1 -0
- package/dist/icons/SearchLgIcon.mjs +22 -0
- package/dist/icons/Settings02Icon.d.ts +2 -0
- package/dist/icons/Settings02Icon.js +1 -0
- package/dist/icons/Settings02Icon.mjs +25 -0
- package/dist/icons/Star01Icon.d.ts +2 -0
- package/dist/icons/Star01Icon.js +1 -0
- package/dist/icons/Star01Icon.mjs +22 -0
- package/dist/icons/StarIcon.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +18 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- package/dist/icons/UploadCloud02Icon.d.ts +2 -0
- package/dist/icons/UploadCloud02Icon.js +1 -0
- package/dist/icons/UploadCloud02Icon.mjs +22 -0
- package/dist/icons/index.d.ts +22 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +94 -0
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.png.mjs +4 -0
- package/dist/images/hacksaw-gaming.png.js +1 -0
- package/dist/images/hacksaw-gaming.png.mjs +4 -0
- package/dist/images/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- package/dist/images/trophy-two.png.js +1 -0
- package/dist/images/trophy-two.png.mjs +4 -0
- package/dist/portal-components.css +1 -1
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/getSession.mjs +6 -5
- package/dist/server/utils/index.d.ts +2 -1
- package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchBonusesQuery.js +1 -0
- package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +131 -5
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- package/dist/ui/Combobox/Combobox.d.ts +815 -1
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/Combobox.mjs +27 -2
- package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +7 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +9 -2
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +56 -38
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +48 -41
- package/package.json +24 -12
- package/dist/client/hooks/useSiteQuery.d.ts +0 -3
- package/dist/client/hooks/useSiteQuery.js +0 -1
- package/dist/client/hooks/useSiteQuery.mjs +0 -23
- package/dist/components/Empty/CloudIcon.d.ts +0 -2
- package/dist/components/Empty/CloudIcon.js +0 -1
- package/dist/components/Empty/Empty.js +0 -1
- package/dist/components/Empty/Empty.mjs +0 -16
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/components/Promos/PromosContent.d.ts +0 -2
- package/dist/images/ball.png.js +0 -1
- package/dist/images/ball.png.mjs +0 -4
- package/dist/images/card.png.js +0 -1
- package/dist/images/card.png.mjs +0 -4
- package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
- package/dist/server/utils/prefetchSiteQuery.js +0 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
- /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { zodResolver as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { useForm as
|
|
1
|
+
import { jsx as o, jsxs as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { zodResolver as I } from "@hookform/resolvers/zod";
|
|
3
|
+
import { useEffect as C } from "react";
|
|
4
|
+
import { useForm as v, Controller as M } from "react-hook-form";
|
|
5
5
|
import { z as a } from "zod";
|
|
6
6
|
import { useShallow as P } from "zustand/shallow";
|
|
7
7
|
import "@opexa/portal-sdk-core";
|
|
@@ -13,66 +13,73 @@ import { parseDecimal as l } from "../../../../utils/parseDecimal.mjs";
|
|
|
13
13
|
import "../../../../utils/getLocaleInfo.mjs";
|
|
14
14
|
import "../../../../utils/getQueryClient.mjs";
|
|
15
15
|
import "../../../../utils/isMobile.mjs";
|
|
16
|
+
import "../../../../client/services/getSession.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
-
import { useCreateMayaAppWithdrawalMutation as
|
|
19
|
-
import { useGlobalStore as
|
|
19
|
+
import { useCreateMayaAppWithdrawalMutation as V } from "../../../../client/hooks/useCreateMayaAppWithdrawalMutation.mjs";
|
|
20
|
+
import { useGlobalStore as W } from "../../../../client/hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
21
22
|
import { useIsMayaSessionValidQuery as A } from "../../../../client/hooks/useIsMayaSessionValidQuery.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { usePaymentSettingsQuery as
|
|
24
|
+
import { usePaymentSettingsQuery as E } from "../../../../client/hooks/usePaymentSettingsQuery.mjs";
|
|
24
25
|
import { toaster as f } from "../../../../client/utils/toaster.mjs";
|
|
25
|
-
import { ChevronDownIcon as
|
|
26
|
-
import { ChevronUpIcon as
|
|
27
|
-
import {
|
|
26
|
+
import { ChevronDownIcon as R } from "../../../../icons/ChevronDownIcon.mjs";
|
|
27
|
+
import { ChevronUpIcon as $ } from "../../../../icons/ChevronUpIcon.mjs";
|
|
28
|
+
import { EyeIcon as D } from "../../../../icons/EyeIcon.mjs";
|
|
29
|
+
import { EyeOffIcon as Q } from "../../../../icons/EyeOffIcon.mjs";
|
|
30
|
+
import { SpinnerIcon as T } from "../../../../icons/SpinnerIcon.mjs";
|
|
28
31
|
import "../../../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
32
|
import "../../../../ui/Avatar/Avatar.mjs";
|
|
30
33
|
import "../../../../ui/Badge/Badge.mjs";
|
|
31
34
|
import { Button as L } from "../../../../ui/Button/Button.mjs";
|
|
32
35
|
import "../../../../ui/Checkbox/Checkbox.mjs";
|
|
33
36
|
import "../../../../ui/Clipboard/Clipboard.mjs";
|
|
37
|
+
import "../../../../ui/Collapsible/Collapsible.mjs";
|
|
38
|
+
import "../../../../ui/Combobox/Combobox.mjs";
|
|
34
39
|
import "../../../../ui/DatePicker/DatePicker.mjs";
|
|
35
40
|
import "../../../../ui/Dialog/Dialog.mjs";
|
|
36
41
|
import "../../../../ui/Drawer/Drawer.mjs";
|
|
37
|
-
import { Root as h, ErrorText as g
|
|
42
|
+
import { Root as h, ErrorText as g } from "../../../../ui/Field/Field.mjs";
|
|
38
43
|
import "@ark-ui/react";
|
|
39
44
|
import "../../../../ui/IconButton/iconButton.recipe.mjs";
|
|
40
|
-
import { Root as
|
|
45
|
+
import { Root as N, Label as F, Control as j, Input as O, IncrementTrigger as U, DecrementTrigger as k } from "../../../../ui/NumberInput/NumberInput.mjs";
|
|
46
|
+
import { Root as z, Label as G, Control as Z, Input as _, VisibilityTrigger as q, Indicator as B } from "../../../../ui/PasswordInput/PasswordInput.mjs";
|
|
41
47
|
import "../../../../ui/PinInput/PinInput.mjs";
|
|
42
48
|
import "../../../../ui/Popover/Popover.mjs";
|
|
43
49
|
import "tailwind-merge";
|
|
50
|
+
import "../../../../ui/Progress/Progress.mjs";
|
|
44
51
|
import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
45
52
|
import "../../../../ui/Select/Select.mjs";
|
|
46
53
|
import "../../../../ui/Table/Table.mjs";
|
|
47
54
|
import "../../../../ui/Tabs/Tabs.mjs";
|
|
48
|
-
import { AmountChoices as
|
|
49
|
-
import { MayaSessionExpired as
|
|
50
|
-
function
|
|
55
|
+
import { AmountChoices as H } from "../../AmountChoices.mjs";
|
|
56
|
+
import { MayaSessionExpired as J } from "../../MayaSessionExpired.mjs";
|
|
57
|
+
function tr() {
|
|
51
58
|
var c;
|
|
52
|
-
const y =
|
|
53
|
-
P((
|
|
54
|
-
depositWithdrawal:
|
|
59
|
+
const y = W(
|
|
60
|
+
P((r) => ({
|
|
61
|
+
depositWithdrawal: r.depositWithdrawal
|
|
55
62
|
}))
|
|
56
|
-
), p =
|
|
63
|
+
), p = V({
|
|
57
64
|
onSuccess() {
|
|
58
|
-
|
|
65
|
+
t.reset(), y.depositWithdrawal.setOpen(!1), f.success({
|
|
59
66
|
description: "Withdrawal request submitted successfully."
|
|
60
67
|
});
|
|
61
68
|
},
|
|
62
|
-
onError(
|
|
69
|
+
onError(r) {
|
|
63
70
|
f.error({
|
|
64
|
-
description:
|
|
71
|
+
description: r.message
|
|
65
72
|
});
|
|
66
73
|
}
|
|
67
|
-
}),
|
|
68
|
-
amount: a.string().superRefine((
|
|
69
|
-
const u = l(
|
|
70
|
-
u <
|
|
74
|
+
}), b = A().data ?? !0, d = E().data, m = d == null ? void 0 : d.mayaAppWithdrawalGatewaySettings, n = l(m == null ? void 0 : m.maximumAmount, 0), i = l(m == null ? void 0 : m.minimumAmount, 0), w = a.object({
|
|
75
|
+
amount: a.string().superRefine((r, s) => {
|
|
76
|
+
const u = l(r, 0);
|
|
77
|
+
u < i && s.addIssue({
|
|
71
78
|
type: "number",
|
|
72
79
|
code: a.ZodIssueCode.too_small,
|
|
73
80
|
inclusive: !0,
|
|
74
|
-
minimum:
|
|
75
|
-
message: `Minimum amount is ${
|
|
81
|
+
minimum: i,
|
|
82
|
+
message: `Minimum amount is ${i.toLocaleString()}`
|
|
76
83
|
}), u > n && s.addIssue({
|
|
77
84
|
type: "number",
|
|
78
85
|
code: a.ZodIssueCode.too_big,
|
|
@@ -82,43 +89,43 @@ function Oo() {
|
|
|
82
89
|
});
|
|
83
90
|
}),
|
|
84
91
|
password: a.string().min(8, "Password must be 8 or more characters").max(64, "Password must be not be more than 64 characters")
|
|
85
|
-
}),
|
|
92
|
+
}), t = v({
|
|
86
93
|
mode: "all",
|
|
87
|
-
resolver:
|
|
94
|
+
resolver: I(w),
|
|
88
95
|
defaultValues: {
|
|
89
96
|
amount: "0",
|
|
90
97
|
password: ""
|
|
91
98
|
}
|
|
92
99
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
amount:
|
|
100
|
+
C(() => {
|
|
101
|
+
i && t.reset({
|
|
102
|
+
amount: i.toString(),
|
|
96
103
|
password: ""
|
|
97
104
|
});
|
|
98
|
-
}, [
|
|
99
|
-
const S =
|
|
105
|
+
}, [t, i]);
|
|
106
|
+
const S = t.handleSubmit(async (r) => {
|
|
100
107
|
p.mutate({
|
|
101
|
-
amount:
|
|
102
|
-
transactionPassword:
|
|
108
|
+
amount: r.amount,
|
|
109
|
+
transactionPassword: r.password
|
|
103
110
|
});
|
|
104
111
|
});
|
|
105
|
-
return
|
|
112
|
+
return b ? /* @__PURE__ */ e("form", { onSubmit: S, noValidate: !0, children: [
|
|
106
113
|
/* @__PURE__ */ o(
|
|
107
|
-
|
|
114
|
+
M,
|
|
108
115
|
{
|
|
109
|
-
control:
|
|
116
|
+
control: t.control,
|
|
110
117
|
name: "amount",
|
|
111
|
-
render: (
|
|
118
|
+
render: (r) => {
|
|
112
119
|
var s;
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
120
|
+
return /* @__PURE__ */ e(h, { invalid: !!t.formState.errors.amount, children: [
|
|
121
|
+
/* @__PURE__ */ e(
|
|
122
|
+
N,
|
|
116
123
|
{
|
|
117
124
|
min: 0,
|
|
118
125
|
step: 1,
|
|
119
|
-
value:
|
|
126
|
+
value: r.field.value,
|
|
120
127
|
onValueChange: (u) => {
|
|
121
|
-
|
|
128
|
+
r.field.onChange(u.value);
|
|
122
129
|
},
|
|
123
130
|
formatOptions: {
|
|
124
131
|
maximumFractionDigits: 2,
|
|
@@ -127,41 +134,46 @@ function Oo() {
|
|
|
127
134
|
allowMouseWheel: !0,
|
|
128
135
|
children: [
|
|
129
136
|
/* @__PURE__ */ o(F, { children: "Enter amount you want to deposit" }),
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */ o(
|
|
132
|
-
/* @__PURE__ */ o(
|
|
133
|
-
/* @__PURE__ */ o(
|
|
137
|
+
/* @__PURE__ */ e(j, { children: [
|
|
138
|
+
/* @__PURE__ */ o(O, {}),
|
|
139
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o($, {}) }),
|
|
140
|
+
/* @__PURE__ */ o(k, { children: /* @__PURE__ */ o(R, {}) })
|
|
134
141
|
] })
|
|
135
142
|
]
|
|
136
143
|
}
|
|
137
144
|
),
|
|
138
|
-
/* @__PURE__ */ o(g, { children: (s =
|
|
145
|
+
/* @__PURE__ */ o(g, { children: (s = t.formState.errors.amount) == null ? void 0 : s.message })
|
|
139
146
|
] });
|
|
140
147
|
}
|
|
141
148
|
}
|
|
142
149
|
),
|
|
143
150
|
/* @__PURE__ */ o(
|
|
144
|
-
|
|
151
|
+
H,
|
|
145
152
|
{
|
|
146
|
-
value: l(
|
|
147
|
-
onChange: (
|
|
148
|
-
|
|
153
|
+
value: l(t.watch("amount"), 0),
|
|
154
|
+
onChange: (r) => {
|
|
155
|
+
t.setValue("amount", r.toString(), {
|
|
149
156
|
shouldTouch: !0,
|
|
150
157
|
shouldDirty: !0,
|
|
151
158
|
shouldValidate: !0
|
|
152
159
|
});
|
|
153
160
|
},
|
|
154
|
-
min:
|
|
161
|
+
min: i,
|
|
155
162
|
max: n,
|
|
156
163
|
className: "mt-xl"
|
|
157
164
|
}
|
|
158
165
|
),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
/* @__PURE__ */ e(h, { className: "mt-3xl", invalid: !!t.formState.errors.password, children: [
|
|
167
|
+
/* @__PURE__ */ e(z, { children: [
|
|
168
|
+
/* @__PURE__ */ o(G, { children: "Password" }),
|
|
169
|
+
/* @__PURE__ */ e(Z, { children: [
|
|
170
|
+
/* @__PURE__ */ o(_, { ...t.register("password") }),
|
|
171
|
+
/* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(B, { fallback: /* @__PURE__ */ o(Q, {}), asChild: !0, children: /* @__PURE__ */ o(D, {}) }) })
|
|
172
|
+
] })
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ o(g, { children: (c = t.formState.errors.password) == null ? void 0 : c.message })
|
|
163
175
|
] }),
|
|
164
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ e("p", { className: "mt-4xl text-xs", children: [
|
|
165
177
|
"Upon clicking the deposit button, you agree to the",
|
|
166
178
|
" ",
|
|
167
179
|
/* @__PURE__ */ o("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
|
|
@@ -173,14 +185,14 @@ function Oo() {
|
|
|
173
185
|
type: "submit",
|
|
174
186
|
className: "mt-4.5",
|
|
175
187
|
disabled: p.isPending,
|
|
176
|
-
children: p.isPending ? /* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */ o(
|
|
188
|
+
children: p.isPending ? /* @__PURE__ */ e(x, { children: [
|
|
189
|
+
/* @__PURE__ */ o(T, {}),
|
|
178
190
|
"Processing..."
|
|
179
191
|
] }) : "Withdraw"
|
|
180
192
|
}
|
|
181
193
|
)
|
|
182
|
-
] }) : /* @__PURE__ */ o(
|
|
194
|
+
] }) : /* @__PURE__ */ o(J, {});
|
|
183
195
|
}
|
|
184
196
|
export {
|
|
185
|
-
|
|
197
|
+
tr as MayaAppWithdrawal
|
|
186
198
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("@hookform/resolvers/zod"),S=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("@hookform/resolvers/zod"),S=require("react"),f=require("react-hook-form"),n=require("zod"),v=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");const d=require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("../../../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const C=require("../../../../client/hooks/useCreateMayaWithdrawalMutation.js"),P=require("../../../../client/hooks/useGlobalStore.js");require("../../../../client/hooks/useInfiniteQueryHelper.js");const M=require("../../../../client/hooks/useLocaleInfo.js"),D=require("../../../../client/hooks/useMobileNumberParser.js");require("usehooks-ts");const W=require("../../../../client/hooks/usePaymentSettingsQuery.js"),j=require("../../../../client/utils/toaster.js"),z=require("../../../../icons/ChevronDownIcon.js"),E=require("../../../../icons/ChevronUpIcon.js"),R=require("../../../../icons/EyeIcon.js"),T=require("../../../../icons/EyeOffIcon.js"),L=require("../../../../icons/SpinnerIcon.js");require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const A=require("../../../../ui/Button/Button.js");require("../../../../ui/Checkbox/Checkbox.js");require("../../../../ui/Clipboard/Clipboard.js");require("../../../../ui/Collapsible/Collapsible.js");require("../../../../ui/Combobox/Combobox.js");require("../../../../ui/DatePicker/DatePicker.js");require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");const o=require("../../../../ui/Field/Field.js");require("@ark-ui/react");require("../../../../ui/IconButton/iconButton.recipe.js");const a=require("../../../../ui/NumberInput/NumberInput.js"),u=require("../../../../ui/PasswordInput/PasswordInput.js");require("../../../../ui/PinInput/PinInput.js");require("../../../../ui/Popover/Popover.js");require("tailwind-merge");require("../../../../ui/Progress/Progress.js");require("../../../../ui/SegmentGroup/SegmentGroup.js");require("../../../../ui/Select/Select.js");require("../../../../ui/Table/Table.js");require("../../../../ui/Tabs/Tabs.js");const F=require("../../AmountChoices.js");function V(){var x,p;const g=P.useGlobalStore(v.useShallow(s=>({depositWithdrawal:s.depositWithdrawal}))),b=M.useLocaleInfo(),y=D.useMobileNumberParser(),h=C.useCreateMayaWithdrawalMutation({onSuccess(){r.reset(),g.depositWithdrawal.setOpen(!1),j.toaster.success({description:"Withdrawal request submitted successfully."})},onError(s){j.toaster.error({description:s.message})}}),q=W.usePaymentSettingsQuery().data,i=q==null?void 0:q.mayaWithdrawalGatewaySettings,t=d.parseDecimal(i==null?void 0:i.minimumAmount,0),m=d.parseDecimal(i==null?void 0:i.maximumAmount,0),w=n.z.object({amount:n.z.string().superRefine((s,l)=>{const c=d.parseDecimal(s,0);c<t&&l.addIssue({type:"number",code:n.z.ZodIssueCode.too_small,inclusive:!0,minimum:t,message:`Minimum amount is ${t.toLocaleString()}`}),c>m&&l.addIssue({type:"number",code:n.z.ZodIssueCode.too_big,inclusive:!0,maximum:m,message:`Maximum amount is ${m.toLocaleString()}`})}),password:n.z.string().min(8,"Password must be 8 or more characters").max(64,"Password must be not be more than 64 characters"),mobileNumber:n.z.string().regex(b.mobileNumber.pattern,"Invalid mobile number")}),r=f.useForm({mode:"all",resolver:N.zodResolver(w),defaultValues:{amount:"0",password:"",mobileNumber:""}});S.useEffect(()=>{t&&r.reset({amount:t.toString(),password:"",mobileNumber:""})},[r,t]);const I=r.handleSubmit(async s=>{h.mutate({amount:s.amount,recipientMobileNumber:y.format(s.mobileNumber),transactionPassword:s.password})});return e.jsxs("form",{onSubmit:I,noValidate:!0,autoComplete:"off",children:[e.jsxs(o.Root,{invalid:!!r.formState.errors.mobileNumber,children:[e.jsx(o.Label,{children:"Mobile Number"}),e.jsxs("div",{className:"relative",children:[e.jsx(b.country.flag,{className:"pointer-events-none absolute left-3.5 top-1/2 size-5 -translate-y-1/2"}),e.jsx(o.Input,{className:"pl-10.5",...r.register("mobileNumber")})]}),e.jsx(o.ErrorText,{children:(x=r.formState.errors.mobileNumber)==null?void 0:x.message})]}),e.jsx(f.Controller,{control:r.control,name:"amount",render:s=>{var l;return e.jsxs(o.Root,{invalid:!!r.formState.errors.amount,className:"mt-3xl",children:[e.jsxs(a.Root,{min:0,step:1,value:s.field.value,onValueChange:c=>{s.field.onChange(c.value)},formatOptions:{maximumFractionDigits:2,minimumFractionDigits:0},allowMouseWheel:!0,children:[e.jsx(a.Label,{children:"Enter amount you want to withdraw"}),e.jsxs(a.Control,{children:[e.jsx(a.Input,{}),e.jsx(a.IncrementTrigger,{children:e.jsx(E.ChevronUpIcon,{})}),e.jsx(a.DecrementTrigger,{children:e.jsx(z.ChevronDownIcon,{})})]})]}),e.jsx(o.ErrorText,{children:(l=r.formState.errors.amount)==null?void 0:l.message})]})}}),e.jsx(F.AmountChoices,{value:d.parseDecimal(r.watch("amount"),0),onChange:s=>{r.setValue("amount",s.toString(),{shouldTouch:!0,shouldDirty:!0,shouldValidate:!0})},min:t,max:m,className:"mt-xl"}),e.jsxs(o.Root,{className:"mt-3xl",invalid:!!r.formState.errors.password,children:[e.jsxs(u.Root,{children:[e.jsx(u.Label,{children:"Password"}),e.jsxs(u.Control,{children:[e.jsx(u.Input,{...r.register("password")}),e.jsx(u.VisibilityTrigger,{children:e.jsx(u.Indicator,{fallback:e.jsx(T.EyeOffIcon,{}),asChild:!0,children:e.jsx(R.EyeIcon,{})})})]})]}),e.jsx(o.ErrorText,{children:(p=r.formState.errors.password)==null?void 0:p.message})]}),e.jsxs("p",{className:"mt-4xl text-xs",children:["Upon clicking the deposit button, you agree to the"," ",e.jsx("button",{type:"button",className:"underline underline-offset-2",children:"Terms of Use and Privacy Policy"}),"."]}),e.jsx(A.Button,{type:"submit",className:"mt-4.5",disabled:h.isPending,children:h.isPending?e.jsxs(e.Fragment,{children:[e.jsx(L.SpinnerIcon,{}),"Processing..."]}):"Deposit"})]})}exports.MayaWithdrawal=V;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { zodResolver as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { useForm as
|
|
5
|
-
import { z as
|
|
6
|
-
import { useShallow as
|
|
1
|
+
import { jsxs as t, jsx as o, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { zodResolver as x } from "@hookform/resolvers/zod";
|
|
3
|
+
import { useEffect as C } from "react";
|
|
4
|
+
import { useForm as P, Controller as M } from "react-hook-form";
|
|
5
|
+
import { z as n } from "zod";
|
|
6
|
+
import { useShallow as W } from "zustand/shallow";
|
|
7
7
|
import "@opexa/portal-sdk-core";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "tiny-invariant";
|
|
@@ -13,18 +13,21 @@ import { parseDecimal as u } from "../../../../utils/parseDecimal.mjs";
|
|
|
13
13
|
import "../../../../utils/getLocaleInfo.mjs";
|
|
14
14
|
import "../../../../utils/getQueryClient.mjs";
|
|
15
15
|
import "../../../../utils/isMobile.mjs";
|
|
16
|
+
import "../../../../client/services/getSession.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
-
import { useCreateMayaWithdrawalMutation as
|
|
19
|
-
import { useGlobalStore as
|
|
19
|
+
import { useCreateMayaWithdrawalMutation as $ } from "../../../../client/hooks/useCreateMayaWithdrawalMutation.mjs";
|
|
20
|
+
import { useGlobalStore as L } from "../../../../client/hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
-
import { useMobileNumberParser as
|
|
22
|
+
import { useLocaleInfo as D } from "../../../../client/hooks/useLocaleInfo.mjs";
|
|
23
|
+
import { useMobileNumberParser as R } from "../../../../client/hooks/useMobileNumberParser.mjs";
|
|
23
24
|
import "usehooks-ts";
|
|
24
|
-
import { usePaymentSettingsQuery as
|
|
25
|
+
import { usePaymentSettingsQuery as E } from "../../../../client/hooks/usePaymentSettingsQuery.mjs";
|
|
25
26
|
import { toaster as w } from "../../../../client/utils/toaster.mjs";
|
|
26
|
-
import { ChevronDownIcon as
|
|
27
|
-
import { ChevronUpIcon as
|
|
27
|
+
import { ChevronDownIcon as T } from "../../../../icons/ChevronDownIcon.mjs";
|
|
28
|
+
import { ChevronUpIcon as V } from "../../../../icons/ChevronUpIcon.mjs";
|
|
29
|
+
import { EyeIcon as A } from "../../../../icons/EyeIcon.mjs";
|
|
30
|
+
import { EyeOffIcon as F } from "../../../../icons/EyeOffIcon.mjs";
|
|
28
31
|
import { SpinnerIcon as j } from "../../../../icons/SpinnerIcon.mjs";
|
|
29
32
|
import "../../../../ui/AlertDialog/AlertDialog.mjs";
|
|
30
33
|
import "../../../../ui/Avatar/Avatar.mjs";
|
|
@@ -32,110 +35,114 @@ import "../../../../ui/Badge/Badge.mjs";
|
|
|
32
35
|
import { Button as z } from "../../../../ui/Button/Button.mjs";
|
|
33
36
|
import "../../../../ui/Checkbox/Checkbox.mjs";
|
|
34
37
|
import "../../../../ui/Clipboard/Clipboard.mjs";
|
|
38
|
+
import "../../../../ui/Collapsible/Collapsible.mjs";
|
|
39
|
+
import "../../../../ui/Combobox/Combobox.mjs";
|
|
35
40
|
import "../../../../ui/DatePicker/DatePicker.mjs";
|
|
36
41
|
import "../../../../ui/Dialog/Dialog.mjs";
|
|
37
42
|
import "../../../../ui/Drawer/Drawer.mjs";
|
|
38
|
-
import { Root as d, Label as
|
|
43
|
+
import { Root as d, Label as O, Input as Q, ErrorText as f } from "../../../../ui/Field/Field.mjs";
|
|
39
44
|
import "@ark-ui/react";
|
|
40
45
|
import "../../../../ui/IconButton/iconButton.recipe.mjs";
|
|
41
|
-
import { Root as
|
|
46
|
+
import { Root as U, Label as k, Control as G, Input as Z, IncrementTrigger as _, DecrementTrigger as q } from "../../../../ui/NumberInput/NumberInput.mjs";
|
|
47
|
+
import { Root as B, Label as H, Control as J, Input as K, VisibilityTrigger as X, Indicator as Y } from "../../../../ui/PasswordInput/PasswordInput.mjs";
|
|
42
48
|
import "../../../../ui/PinInput/PinInput.mjs";
|
|
43
49
|
import "../../../../ui/Popover/Popover.mjs";
|
|
44
50
|
import "tailwind-merge";
|
|
51
|
+
import "../../../../ui/Progress/Progress.mjs";
|
|
45
52
|
import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
46
53
|
import "../../../../ui/Select/Select.mjs";
|
|
47
54
|
import "../../../../ui/Table/Table.mjs";
|
|
48
55
|
import "../../../../ui/Tabs/Tabs.mjs";
|
|
49
|
-
import { AmountChoices as
|
|
50
|
-
function
|
|
51
|
-
var
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
depositWithdrawal:
|
|
56
|
+
import { AmountChoices as oo } from "../../AmountChoices.mjs";
|
|
57
|
+
function mr() {
|
|
58
|
+
var b, g;
|
|
59
|
+
const y = L(
|
|
60
|
+
W((e) => ({
|
|
61
|
+
depositWithdrawal: e.depositWithdrawal
|
|
55
62
|
}))
|
|
56
|
-
),
|
|
63
|
+
), h = D(), N = R(), p = $({
|
|
57
64
|
onSuccess() {
|
|
58
|
-
|
|
65
|
+
r.reset(), y.depositWithdrawal.setOpen(!1), w.success({
|
|
59
66
|
description: "Withdrawal request submitted successfully."
|
|
60
67
|
});
|
|
61
68
|
},
|
|
62
|
-
onError(
|
|
69
|
+
onError(e) {
|
|
63
70
|
w.error({
|
|
64
|
-
description:
|
|
71
|
+
description: e.message
|
|
65
72
|
});
|
|
66
73
|
}
|
|
67
|
-
}), c =
|
|
68
|
-
amount:
|
|
69
|
-
const l = u(
|
|
70
|
-
l <
|
|
74
|
+
}), c = E().data, m = c == null ? void 0 : c.mayaWithdrawalGatewaySettings, i = u(m == null ? void 0 : m.minimumAmount, 0), a = u(m == null ? void 0 : m.maximumAmount, 0), I = n.object({
|
|
75
|
+
amount: n.string().superRefine((e, s) => {
|
|
76
|
+
const l = u(e, 0);
|
|
77
|
+
l < i && s.addIssue({
|
|
71
78
|
type: "number",
|
|
72
|
-
code:
|
|
79
|
+
code: n.ZodIssueCode.too_small,
|
|
73
80
|
inclusive: !0,
|
|
74
|
-
minimum:
|
|
75
|
-
message: `Minimum amount is ${
|
|
76
|
-
}), l >
|
|
81
|
+
minimum: i,
|
|
82
|
+
message: `Minimum amount is ${i.toLocaleString()}`
|
|
83
|
+
}), l > a && s.addIssue({
|
|
77
84
|
type: "number",
|
|
78
|
-
code:
|
|
85
|
+
code: n.ZodIssueCode.too_big,
|
|
79
86
|
inclusive: !0,
|
|
80
|
-
maximum:
|
|
81
|
-
message: `Maximum amount is ${
|
|
87
|
+
maximum: a,
|
|
88
|
+
message: `Maximum amount is ${a.toLocaleString()}`
|
|
82
89
|
});
|
|
83
90
|
}),
|
|
84
|
-
password:
|
|
85
|
-
mobileNumber:
|
|
86
|
-
}),
|
|
91
|
+
password: n.string().min(8, "Password must be 8 or more characters").max(64, "Password must be not be more than 64 characters"),
|
|
92
|
+
mobileNumber: n.string().regex(h.mobileNumber.pattern, "Invalid mobile number")
|
|
93
|
+
}), r = P({
|
|
87
94
|
mode: "all",
|
|
88
|
-
resolver:
|
|
95
|
+
resolver: x(I),
|
|
89
96
|
defaultValues: {
|
|
90
97
|
amount: "0",
|
|
91
98
|
password: "",
|
|
92
99
|
mobileNumber: ""
|
|
93
100
|
}
|
|
94
101
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
amount:
|
|
102
|
+
C(() => {
|
|
103
|
+
i && r.reset({
|
|
104
|
+
amount: i.toString(),
|
|
98
105
|
password: "",
|
|
99
106
|
mobileNumber: ""
|
|
100
107
|
});
|
|
101
|
-
}, [
|
|
102
|
-
const
|
|
108
|
+
}, [r, i]);
|
|
109
|
+
const v = r.handleSubmit(async (e) => {
|
|
103
110
|
p.mutate({
|
|
104
|
-
amount:
|
|
105
|
-
recipientMobileNumber:
|
|
106
|
-
transactionPassword:
|
|
111
|
+
amount: e.amount,
|
|
112
|
+
recipientMobileNumber: N.format(e.mobileNumber),
|
|
113
|
+
transactionPassword: e.password
|
|
107
114
|
});
|
|
108
115
|
});
|
|
109
|
-
return /* @__PURE__ */ t("form", { onSubmit:
|
|
110
|
-
/* @__PURE__ */ t(d, { invalid: !!
|
|
111
|
-
/* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ t("form", { onSubmit: v, noValidate: !0, autoComplete: "off", children: [
|
|
117
|
+
/* @__PURE__ */ t(d, { invalid: !!r.formState.errors.mobileNumber, children: [
|
|
118
|
+
/* @__PURE__ */ o(O, { children: "Mobile Number" }),
|
|
112
119
|
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ o(h.country.flag, { className: "pointer-events-none absolute left-3.5 top-1/2 size-5 -translate-y-1/2" }),
|
|
121
|
+
/* @__PURE__ */ o(Q, { className: "pl-10.5", ...r.register("mobileNumber") })
|
|
115
122
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ o(f, { children: (b = r.formState.errors.mobileNumber) == null ? void 0 : b.message })
|
|
117
124
|
] }),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
125
|
+
/* @__PURE__ */ o(
|
|
126
|
+
M,
|
|
120
127
|
{
|
|
121
|
-
control:
|
|
128
|
+
control: r.control,
|
|
122
129
|
name: "amount",
|
|
123
|
-
render: (
|
|
124
|
-
var
|
|
130
|
+
render: (e) => {
|
|
131
|
+
var s;
|
|
125
132
|
return /* @__PURE__ */ t(
|
|
126
133
|
d,
|
|
127
134
|
{
|
|
128
|
-
invalid: !!
|
|
135
|
+
invalid: !!r.formState.errors.amount,
|
|
129
136
|
className: "mt-3xl",
|
|
130
137
|
children: [
|
|
131
138
|
/* @__PURE__ */ t(
|
|
132
|
-
|
|
139
|
+
U,
|
|
133
140
|
{
|
|
134
141
|
min: 0,
|
|
135
142
|
step: 1,
|
|
136
|
-
value:
|
|
143
|
+
value: e.field.value,
|
|
137
144
|
onValueChange: (l) => {
|
|
138
|
-
|
|
145
|
+
e.field.onChange(l.value);
|
|
139
146
|
},
|
|
140
147
|
formatOptions: {
|
|
141
148
|
maximumFractionDigits: 2,
|
|
@@ -143,57 +150,62 @@ function Oe() {
|
|
|
143
150
|
},
|
|
144
151
|
allowMouseWheel: !0,
|
|
145
152
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ o(k, { children: "Enter amount you want to withdraw" }),
|
|
147
154
|
/* @__PURE__ */ t(G, { children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ o(Z, {}),
|
|
156
|
+
/* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(V, {}) }),
|
|
157
|
+
/* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(T, {}) })
|
|
151
158
|
] })
|
|
152
159
|
]
|
|
153
160
|
}
|
|
154
161
|
),
|
|
155
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ o(f, { children: (s = r.formState.errors.amount) == null ? void 0 : s.message })
|
|
156
163
|
]
|
|
157
164
|
}
|
|
158
165
|
);
|
|
159
166
|
}
|
|
160
167
|
}
|
|
161
168
|
),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
169
|
+
/* @__PURE__ */ o(
|
|
170
|
+
oo,
|
|
164
171
|
{
|
|
165
|
-
value: u(
|
|
166
|
-
onChange: (
|
|
167
|
-
|
|
172
|
+
value: u(r.watch("amount"), 0),
|
|
173
|
+
onChange: (e) => {
|
|
174
|
+
r.setValue("amount", e.toString(), {
|
|
168
175
|
shouldTouch: !0,
|
|
169
176
|
shouldDirty: !0,
|
|
170
177
|
shouldValidate: !0
|
|
171
178
|
});
|
|
172
179
|
},
|
|
173
|
-
min:
|
|
174
|
-
max:
|
|
180
|
+
min: i,
|
|
181
|
+
max: a,
|
|
175
182
|
className: "mt-xl"
|
|
176
183
|
}
|
|
177
184
|
),
|
|
178
|
-
/* @__PURE__ */ t(d, { className: "mt-3xl", invalid: !!
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
|
|
181
|
-
|
|
185
|
+
/* @__PURE__ */ t(d, { className: "mt-3xl", invalid: !!r.formState.errors.password, children: [
|
|
186
|
+
/* @__PURE__ */ t(B, { children: [
|
|
187
|
+
/* @__PURE__ */ o(H, { children: "Password" }),
|
|
188
|
+
/* @__PURE__ */ t(J, { children: [
|
|
189
|
+
/* @__PURE__ */ o(K, { ...r.register("password") }),
|
|
190
|
+
/* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(Y, { fallback: /* @__PURE__ */ o(F, {}), asChild: !0, children: /* @__PURE__ */ o(A, {}) }) })
|
|
191
|
+
] })
|
|
192
|
+
] }),
|
|
193
|
+
/* @__PURE__ */ o(f, { children: (g = r.formState.errors.password) == null ? void 0 : g.message })
|
|
182
194
|
] }),
|
|
183
195
|
/* @__PURE__ */ t("p", { className: "mt-4xl text-xs", children: [
|
|
184
196
|
"Upon clicking the deposit button, you agree to the",
|
|
185
197
|
" ",
|
|
186
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ o("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
|
|
187
199
|
"."
|
|
188
200
|
] }),
|
|
189
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ o(
|
|
190
202
|
z,
|
|
191
203
|
{
|
|
192
204
|
type: "submit",
|
|
193
205
|
className: "mt-4.5",
|
|
194
206
|
disabled: p.isPending,
|
|
195
|
-
children: p.isPending ? /* @__PURE__ */ t(
|
|
196
|
-
/* @__PURE__ */
|
|
207
|
+
children: p.isPending ? /* @__PURE__ */ t(S, { children: [
|
|
208
|
+
/* @__PURE__ */ o(j, {}),
|
|
197
209
|
"Processing..."
|
|
198
210
|
] }) : "Deposit"
|
|
199
211
|
}
|
|
@@ -201,5 +213,5 @@ function Oe() {
|
|
|
201
213
|
] });
|
|
202
214
|
}
|
|
203
215
|
export {
|
|
204
|
-
|
|
216
|
+
mr as MayaWithdrawal
|
|
205
217
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),A=require("next/link"),w=require("react"),f=require("zustand/shallow"),p=require("../../../client/hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../../utils/capitalize.js");require("../../../utils/parseDecimal.js");require("../../../constants/index.js");require("../../../utils/getLocaleInfo.js");require("../../../utils/getQueryClient.js");const q=require("../../../utils/isMobile.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const y=require("../../../client/hooks/useGlobalStore.js");require("../../../client/hooks/useInfiniteQueryHelper.js");const W=require("../../../client/hooks/useOnMMA.js"),g=require("../../../client/hooks/usePaymentSettingsQuery.js"),M=require("../../../icons/AlertCircleIcon.js"),j=require("../../../icons/AlertTriangle.js"),P=require("../../../icons/ArrowRightIcon.js"),I=require("../../../icons/SpinnerIcon.js"),N=require("../PaymentMethods.js"),S=require("./GCashWithdrawal/GCashWithdrawal.js"),G=require("./InstapayWithdrawal/InstapayWithdrawal.js"),C=require("./MayaAppWithdrawal/MayaAppWithdrawal.js"),v=require("./MayaWithdrawal/MayaWithdrawal.js");function E(){const[i]=W.useOnMMA(),n=p.useAccountQuery().data,l=g.usePaymentSettingsQuery(),e=l.data,s=(()=>{var u,d,h,m,x,b;const r=[];return i?r.push("MAYA_APP"):q.onMobileDevice()?((u=e==null?void 0:e.gcashWithdrawalGatewaySettings)!=null&&u.mobileWebEnabled&&r.push("GCASH"),(d=e==null?void 0:e.mayaWithdrawalGatewaySettings)!=null&&d.mobileWebEnabled&&r.push("MAYA"),(h=e==null?void 0:e.instapayWithdrawalGatewaySettings)!=null&&h.mobileWebEnabled&&r.push("INSTAPAY")):((m=e==null?void 0:e.gcashWithdrawalGatewaySettings)!=null&&m.webEnabled&&r.push("GCASH"),(x=e==null?void 0:e.mayaWithdrawalGatewaySettings)!=null&&x.webEnabled&&r.push("MAYA"),(b=e==null?void 0:e.instapayWithdrawalGatewaySettings)!=null&&b.mobileWebEnabled&&r.push("INSTAPAY")),r})(),[a,c]=w.useState();return w.useEffect(()=>{s.length>0&&!a&&c(s[0])},[s,a]),n&&(!n.transactionPassword||n.verificationStatus!=="VERIFIED")?t.jsx(T,{}):l.isLoading?t.jsx(I.SpinnerIcon,{className:"mx-auto size-6"}):s.length<=0?t.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:[t.jsx(M.AlertCircleIcon,{className:"size-4"}),"No available payment methods"]}):t.jsxs(t.Fragment,{children:[t.jsx(N.PaymentMethods,{value:a,onChange:c,options:s}),a==="GCASH"&&t.jsx(S.GCashWithdrawal,{}),a==="MAYA"&&t.jsx(v.MayaWithdrawal,{}),a==="MAYA_APP"&&t.jsx(C.MayaAppWithdrawal,{}),a==="INSTAPAY"&&t.jsx(G.InstapayWithdrawal,{})]})}function T(){const i=y.useGlobalStore(f.useShallow(o=>({depositWithdrawal:o.depositWithdrawal})));return t.jsxs("div",{className:"pb-16 pt-4xl lg:pb-12",children:[t.jsx("div",{className:"bg-amber-50 text-amber-600 mx-auto flex size-12 items-center justify-center rounded-full lg:size-14",children:t.jsx(j.AlertTriangleIcon,{className:"size-6 lg:size-7"})}),t.jsx("h2",{className:"mt-xl text-center text-lg font-semibold lg:text-2xl",children:"Verification and password not set"}),t.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."}),t.jsxs(A,{href:"/personal-center",className:"text-gray-900 mx-auto mt-2xl flex w-fit items-center gap-md font-semibold",onClick:()=>{i.depositWithdrawal.setOpen(!1),i.depositWithdrawal.setTab("WITHDRAWAL")},children:["Personal Center ",t.jsx(P.ArrowRightIcon,{className:"size-5"})]})]})}exports.Withdrawal=E;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),A=require("next/link"),w=require("react"),f=require("zustand/shallow"),p=require("../../../client/hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../../utils/capitalize.js");require("../../../utils/parseDecimal.js");require("../../../constants/index.js");require("../../../utils/getLocaleInfo.js");require("../../../utils/getQueryClient.js");const q=require("../../../utils/isMobile.js");require("../../../client/services/getSession.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const y=require("../../../client/hooks/useGlobalStore.js");require("../../../client/hooks/useInfiniteQueryHelper.js");const W=require("../../../client/hooks/useOnMMA.js"),g=require("../../../client/hooks/usePaymentSettingsQuery.js"),M=require("../../../icons/AlertCircleIcon.js"),j=require("../../../icons/AlertTriangle.js"),P=require("../../../icons/ArrowRightIcon.js"),I=require("../../../icons/SpinnerIcon.js"),N=require("../PaymentMethods.js"),S=require("./GCashWithdrawal/GCashWithdrawal.js"),G=require("./InstapayWithdrawal/InstapayWithdrawal.js"),C=require("./MayaAppWithdrawal/MayaAppWithdrawal.js"),v=require("./MayaWithdrawal/MayaWithdrawal.js");function E(){const[i]=W.useOnMMA(),n=p.useAccountQuery().data,l=g.usePaymentSettingsQuery(),e=l.data,s=(()=>{var u,d,h,m,x,b;const r=[];return i?r.push("MAYA_APP"):q.onMobileDevice()?((u=e==null?void 0:e.gcashWithdrawalGatewaySettings)!=null&&u.mobileWebEnabled&&r.push("GCASH"),(d=e==null?void 0:e.mayaWithdrawalGatewaySettings)!=null&&d.mobileWebEnabled&&r.push("MAYA"),(h=e==null?void 0:e.instapayWithdrawalGatewaySettings)!=null&&h.mobileWebEnabled&&r.push("INSTAPAY")):((m=e==null?void 0:e.gcashWithdrawalGatewaySettings)!=null&&m.webEnabled&&r.push("GCASH"),(x=e==null?void 0:e.mayaWithdrawalGatewaySettings)!=null&&x.webEnabled&&r.push("MAYA"),(b=e==null?void 0:e.instapayWithdrawalGatewaySettings)!=null&&b.mobileWebEnabled&&r.push("INSTAPAY")),r})(),[a,c]=w.useState();return w.useEffect(()=>{s.length>0&&!a&&c(s[0])},[s,a]),n&&(!n.transactionPassword||n.verificationStatus!=="VERIFIED")?t.jsx(T,{}):l.isLoading?t.jsx(I.SpinnerIcon,{className:"mx-auto size-6"}):s.length<=0?t.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:[t.jsx(M.AlertCircleIcon,{className:"size-4"}),"No available payment methods"]}):t.jsxs(t.Fragment,{children:[t.jsx(N.PaymentMethods,{value:a,onChange:c,options:s}),a==="GCASH"&&t.jsx(S.GCashWithdrawal,{}),a==="MAYA"&&t.jsx(v.MayaWithdrawal,{}),a==="MAYA_APP"&&t.jsx(C.MayaAppWithdrawal,{}),a==="INSTAPAY"&&t.jsx(G.InstapayWithdrawal,{})]})}function T(){const i=y.useGlobalStore(f.useShallow(o=>({depositWithdrawal:o.depositWithdrawal})));return t.jsxs("div",{className:"pb-16 pt-4xl lg:pb-12",children:[t.jsx("div",{className:"bg-amber-50 text-amber-600 mx-auto flex size-12 items-center justify-center rounded-full lg:size-14",children:t.jsx(j.AlertTriangleIcon,{className:"size-6 lg:size-7"})}),t.jsx("h2",{className:"mt-xl text-center text-lg font-semibold lg:text-2xl",children:"Verification and password not set"}),t.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."}),t.jsxs(A,{href:"/personal-center",className:"text-gray-900 mx-auto mt-2xl flex w-fit items-center gap-md font-semibold",onClick:()=>{i.depositWithdrawal.setOpen(!1),i.depositWithdrawal.setTab("WITHDRAWAL")},children:["Personal Center ",t.jsx(P.ArrowRightIcon,{className:"size-5"})]})]})}exports.Withdrawal=E;
|