@opexa/portal-components 0.0.2 → 0.0.4
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/components/Account/Account.d.ts +12 -0
- package/dist/components/Account/Account.jsx +172 -0
- package/dist/components/Account/index.d.ts +1 -0
- package/dist/components/Account/index.js +1 -0
- package/dist/components/Banner/Banner.d.ts +11 -0
- package/dist/components/Banner/Banner.jsx +52 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/BetRecords/BetRecords.d.ts +7 -0
- package/dist/components/BetRecords/BetRecords.jsx +4 -0
- package/dist/components/BetRecords/BetRecordsContent.d.ts +2 -0
- package/dist/components/BetRecords/BetRecordsContent.jsx +413 -0
- package/dist/components/BetRecords/index.d.ts +1 -0
- package/dist/components/BetRecords/index.js +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.d.ts +11 -0
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +31 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.d.ts +8 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.jsx +78 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +82 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +282 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +22 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +286 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +92 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +14 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +77 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +24 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +256 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +14 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +107 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +19 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +81 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +6 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +101 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +4 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +63 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +10 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +70 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -0
- package/dist/components/DepositWithdrawal/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/index.js +1 -0
- package/dist/components/DepositWithdrawal/utils.d.ts +3 -0
- package/dist/components/DepositWithdrawal/utils.js +8 -0
- package/dist/components/Disclaimer/Disclaimer.d.ts +5 -0
- package/dist/components/Disclaimer/Disclaimer.jsx +45 -0
- package/dist/components/Disclaimer/index.d.ts +1 -0
- package/dist/components/Disclaimer/index.js +1 -0
- package/dist/components/Disclaimer/useDisclaimer.d.ts +4 -0
- package/dist/components/Disclaimer/useDisclaimer.jsx +39 -0
- package/dist/components/Empty/CloudIcon.d.ts +2 -0
- package/dist/components/Empty/CloudIcon.jsx +42 -0
- package/dist/components/Empty/Empty.d.ts +9 -0
- package/dist/components/Empty/Empty.jsx +16 -0
- package/dist/components/Empty/index.d.ts +1 -0
- package/dist/components/Empty/index.js +1 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +3 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.jsx +8 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +6 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.jsx +19 -0
- package/dist/components/FeatureFlagProvider/index.d.ts +2 -0
- package/dist/components/FeatureFlagProvider/index.js +3 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +8 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +66 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +5 -0
- package/dist/components/GameLaunch/GameLaunch.jsx +225 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +6 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +107 -0
- package/dist/components/GameLaunch/index.d.ts +2 -0
- package/dist/components/GameLaunch/index.js +2 -0
- package/dist/components/GameProviders/GameProviders.d.ts +14 -0
- package/dist/components/GameProviders/GameProviders.jsx +3 -0
- package/dist/components/Games/Games.d.ts +10 -0
- package/dist/components/Games/Games.jsx +57 -0
- package/dist/components/Games/GamesContent.d.ts +2 -0
- package/dist/components/Games/GamesContent.jsx +138 -0
- package/dist/components/Games/index.d.ts +1 -0
- package/dist/components/Games/index.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounter.jsx +61 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.jsx +87 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +108 -0
- package/dist/components/JackpotCounter/index.d.ts +1 -0
- package/dist/components/JackpotCounter/index.js +1 -0
- package/dist/components/Marquee/Marquee.d.ts +5 -0
- package/dist/components/Marquee/Marquee.jsx +14 -0
- package/dist/components/Marquee/index.d.ts +1 -0
- package/dist/components/Marquee/index.js +1 -0
- package/dist/components/PortalProvider/PortalProvider.d.ts +2 -0
- package/dist/components/PortalProvider/PortalProvider.jsx +67 -0
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.jsx +49 -0
- package/dist/components/PortalProvider/index.d.ts +1 -0
- package/dist/components/PortalProvider/index.js +1 -0
- package/dist/components/Promo/Promo.d.ts +4 -0
- package/dist/components/Promo/Promo.jsx +50 -0
- package/dist/components/Promo/PromoContent.d.ts +2 -0
- package/dist/components/Promo/PromoContent.jsx +18 -0
- package/dist/components/Promo/index.d.ts +1 -0
- package/dist/components/Promo/index.js +1 -0
- package/dist/components/Promos/PromoCarousel.d.ts +2 -0
- package/dist/components/Promos/PromoCarousel.jsx +110 -0
- package/dist/components/Promos/PromoGrid.d.ts +2 -0
- package/dist/components/Promos/PromoGrid.jsx +24 -0
- package/dist/components/Promos/PromoItem.d.ts +7 -0
- package/dist/components/Promos/PromoItem.jsx +24 -0
- package/dist/components/Promos/Promos.d.ts +11 -0
- package/dist/components/Promos/Promos.jsx +57 -0
- package/dist/components/Promos/PromosContent.d.ts +2 -0
- package/dist/components/Promos/PromosContent.jsx +110 -0
- package/dist/components/Promos/index.d.ts +1 -0
- package/dist/components/Promos/index.js +1 -0
- package/dist/components/Protected/Protected.d.ts +6 -0
- package/dist/components/Protected/Protected.jsx +9 -0
- package/dist/components/Protected/index.d.ts +1 -0
- package/dist/components/Protected/index.js +1 -0
- package/dist/components/SignIn/SignIn.d.ts +8 -0
- package/dist/components/SignIn/SignIn.jsx +39 -0
- package/dist/components/SignIn/SignInForm.d.ts +1 -0
- package/dist/components/SignIn/SignInForm.jsx +308 -0
- package/dist/components/SignIn/index.d.ts +1 -0
- package/dist/components/SignIn/index.js +1 -0
- package/dist/components/SignUp/SignUp.d.ts +8 -0
- package/dist/components/SignUp/SignUp.jsx +37 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpForm.jsx +312 -0
- package/dist/components/SignUp/index.d.ts +1 -0
- package/dist/components/SignUp/index.js +1 -0
- package/dist/components/TopWins/TopWins.d.ts +5 -0
- package/dist/components/TopWins/TopWins.jsx +45 -0
- package/dist/components/TopWins/TopWinsContent.d.ts +2 -0
- package/dist/components/TopWins/TopWinsContent.jsx +51 -0
- package/dist/components/TopWins/index.d.ts +1 -0
- package/dist/components/TopWins/index.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +6 -0
- package/dist/components/TournamentCounter/TournamentCounter.jsx +54 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.jsx +79 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +111 -0
- package/dist/components/TournamentCounter/index.d.ts +1 -0
- package/dist/components/TournamentCounter/index.js +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +181 -0
- package/dist/components/TransactionRecords/TableFilters.d.ts +26 -0
- package/dist/components/TransactionRecords/TableFilters.jsx +359 -0
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +7 -0
- package/dist/components/TransactionRecords/TransactionRecords.jsx +33 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +141 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +177 -0
- package/dist/components/TransactionRecords/index.d.ts +1 -0
- package/dist/components/TransactionRecords/index.js +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.js +18 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/constants/index.js +64 -0
- package/dist/handlers.d.ts +4 -6
- package/dist/handlers.js +291 -303
- package/dist/hooks/useAccountQuery/getAccountQueryKey.d.ts +2 -0
- package/dist/hooks/useAccountQuery/getAccountQueryKey.js +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.d.ts +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.js +75 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.d.ts +3 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.js +88 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.d.ts +2 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.js +1 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.d.ts +3 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.js +70 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.js +4 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.d.ts +2 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.js +75 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.js +88 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.js +4 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.d.ts +2 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.js +75 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.js +91 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.d.ts +2 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.js +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.d.ts +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.js +67 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.d.ts +3 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.js +68 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useControllableState.js +47 -0
- package/dist/hooks/useCooldown.d.ts +43 -0
- package/dist/hooks/useCooldown.js +101 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.js +125 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.js +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.d.ts +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.js +171 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.js +125 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.js +125 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.js +125 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.js +125 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.js +4 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.d.ts +1 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.js +75 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.d.ts +3 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.js +88 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.js +4 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.d.ts +2 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.js +75 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.js +93 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.js +3 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.d.ts +1 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.js +75 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.js +88 -0
- package/dist/hooks/useDisclosure.d.ts +11 -0
- package/dist/hooks/useDisclosure.js +13 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.js +3 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.d.ts +6 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.js +95 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.d.ts +3 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.js +1 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.d.ts +2 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.js +80 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.d.ts +3 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.js +33 -0
- package/dist/hooks/useGlobalStore.d.ts +42 -0
- package/dist/hooks/useGlobalStore.js +76 -0
- package/dist/hooks/useInfiniteQueryHelper.d.ts +31 -0
- package/dist/hooks/useInfiniteQueryHelper.js +121 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.d.ts +2 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.js +3 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.d.ts +1 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.js +75 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.d.ts +3 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.js +88 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.js +3 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.d.ts +1 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.js +84 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.js +97 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.js +1 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.d.ts +2 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.js +68 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.js +32 -0
- package/dist/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/hooks/useLocaleInfo.js +7 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.d.ts +2 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.js +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.d.ts +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.js +75 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.d.ts +3 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.js +87 -0
- package/dist/hooks/useMobileNumberParser.d.ts +8 -0
- package/dist/hooks/useMobileNumberParser.js +63 -0
- package/dist/hooks/useOnMMA.d.ts +2 -0
- package/dist/hooks/useOnMMA.js +5 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.d.ts +2 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.js +3 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.d.ts +1 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.js +75 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.d.ts +3 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js +88 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.d.ts +2 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.js +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.d.ts +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.js +70 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.d.ts +3 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.js +65 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.d.ts +2 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.js +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.d.ts +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.js +67 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.d.ts +3 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.js +68 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.d.ts +2 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.js +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.d.ts +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.js +67 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.d.ts +3 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.js +68 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.d.ts +2 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.js +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.d.ts +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.js +68 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.d.ts +2 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.js +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.d.ts +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.js +53 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.d.ts +2 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.js +60 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.js +1 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.js +69 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.d.ts +2 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.js +1 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.d.ts +5 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.js +65 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.d.ts +2 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.js +1 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.d.ts +4 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.js +73 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.d.ts +2 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.js +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.d.ts +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.js +70 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.d.ts +3 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.js +68 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.d.ts +2 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.js +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.d.ts +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.js +67 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.d.ts +3 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.js +66 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.js +4 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.d.ts +2 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.js +68 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.js +33 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.js +4 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.d.ts +2 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.js +75 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.js +93 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.d.ts +2 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.js +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.d.ts +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.js +75 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.d.ts +3 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.js +87 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.js +1 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.d.ts +2 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.js +75 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.js +94 -0
- package/dist/icons/AlertCircleIcon.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.jsx +5 -0
- package/dist/icons/AlertTriangle.d.ts +2 -0
- package/dist/icons/AlertTriangle.jsx +5 -0
- package/dist/icons/ArrowLeftIcon.d.ts +2 -0
- package/dist/icons/ArrowLeftIcon.jsx +5 -0
- package/dist/icons/ArrowNarrowUpRightIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpRightIcon.jsx +5 -0
- package/dist/icons/ArrowRightIcon.d.ts +2 -0
- package/dist/icons/ArrowRightIcon.jsx +5 -0
- package/dist/icons/Award02Icon.d.ts +2 -0
- package/dist/icons/Award02Icon.jsx +5 -0
- package/dist/icons/BankIcon.d.ts +2 -0
- package/dist/icons/BankIcon.jsx +5 -0
- package/dist/icons/CheckCircleBrokenIcon.d.ts +2 -0
- package/dist/icons/CheckCircleBrokenIcon.jsx +5 -0
- package/dist/icons/CheckIcon.d.ts +2 -0
- package/dist/icons/CheckIcon.jsx +5 -0
- package/dist/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/icons/ChevronDownIcon.jsx +5 -0
- package/dist/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/icons/ChevronLeftIcon.jsx +5 -0
- package/dist/icons/ChevronRightIcon.d.ts +2 -0
- package/dist/icons/ChevronRightIcon.jsx +5 -0
- package/dist/icons/ChevronUpIcon.d.ts +2 -0
- package/dist/icons/ChevronUpIcon.jsx +5 -0
- package/dist/icons/Expand03Icon.d.ts +2 -0
- package/dist/icons/Expand03Icon.jsx +5 -0
- package/dist/icons/FacebookIcon.d.ts +2 -0
- package/dist/icons/FacebookIcon.jsx +6 -0
- package/dist/icons/File02Icon.d.ts +2 -0
- package/dist/icons/File02Icon.jsx +5 -0
- package/dist/icons/Gift01Icon.d.ts +2 -0
- package/dist/icons/Gift01Icon.jsx +5 -0
- package/dist/icons/GoogleIcon.d.ts +2 -0
- package/dist/icons/GoogleIcon.jsx +9 -0
- package/dist/icons/Logout01Icon.d.ts +2 -0
- package/dist/icons/Logout01Icon.jsx +5 -0
- package/dist/icons/QrCode02Icon.d.ts +2 -0
- package/dist/icons/QrCode02Icon.jsx +5 -0
- package/dist/icons/SpinnerIcon.d.ts +2 -0
- package/dist/icons/SpinnerIcon.jsx +9 -0
- package/dist/icons/User01Icon.d.ts +2 -0
- package/dist/icons/User01Icon.jsx +5 -0
- package/dist/icons/Wallet02Icon.d.ts +2 -0
- package/dist/icons/Wallet02Icon.jsx +5 -0
- package/dist/icons/XIcon.d.ts +1 -0
- package/dist/icons/XIcon.jsx +5 -0
- package/dist/images/bank-icon.png +0 -0
- package/dist/images/images/QRPh.png +0 -0
- package/dist/images/images/ball.png +0 -0
- package/dist/images/images/bank-icon.png +0 -0
- package/dist/images/images/card.png +0 -0
- package/dist/images/images/close-chest.png +0 -0
- package/dist/images/images/gcash.png +0 -0
- package/dist/images/images/qrph-icon.png +0 -0
- package/dist/images/maya.png +0 -0
- package/dist/images/online-bank.png +0 -0
- package/dist/images/open-chest.png +0 -0
- package/dist/images/pagcor.png +0 -0
- package/dist/images/qrph-icon.png +0 -0
- package/dist/images/responsible-gaming.png +0 -0
- package/dist/images/trophy.png +0 -0
- package/dist/index.d.ts +1 -144
- package/dist/index.js +1 -7654
- package/dist/middleware.d.ts +2 -5
- package/dist/middleware.js +90 -90
- package/dist/services/client/authenticate.d.ts +2 -0
- package/dist/services/client/authenticate.js +76 -0
- package/dist/services/client/getSession.d.ts +2 -0
- package/dist/services/client/getSession.js +59 -0
- package/dist/services/client/signIn.d.ts +3 -0
- package/dist/services/client/signIn.js +77 -0
- package/dist/services/client/signOut.d.ts +1 -0
- package/dist/services/client/signOut.js +61 -0
- package/dist/services/server/authenticate.d.ts +2 -0
- package/dist/services/server/authenticate.js +69 -0
- package/dist/services/server/getSession.d.ts +2 -0
- package/dist/services/server/getSession.js +55 -0
- package/dist/services/server/signIn.d.ts +2 -0
- package/dist/services/server/signIn.js +74 -0
- package/dist/services/server/signOut.d.ts +1 -0
- package/dist/services/server/signOut.js +67 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/index.js +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +508 -0
- package/dist/ui/AlertDialog/AlertDialog.jsx +17 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +46 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +17 -0
- package/dist/ui/AlertDialog/index.d.ts +1 -0
- package/dist/ui/AlertDialog/index.js +1 -0
- package/dist/ui/Avatar/Avatar.d.ts +68 -0
- package/dist/ui/Avatar/Avatar.jsx +9 -0
- package/dist/ui/Avatar/avatar.recipe.d.ts +22 -0
- package/dist/ui/Avatar/avatar.recipe.js +21 -0
- package/dist/ui/Avatar/index.d.ts +1 -0
- package/dist/ui/Avatar/index.js +1 -0
- package/dist/ui/Badge/Badge.d.ts +167 -0
- package/dist/ui/Badge/Badge.jsx +10 -0
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -0
- package/dist/ui/Badge/badge.anatomy.js +2 -0
- package/dist/ui/Badge/badge.recipe.d.ts +52 -0
- package/dist/ui/Badge/badge.recipe.js +67 -0
- package/dist/ui/Badge/index.d.ts +1 -0
- package/dist/ui/Badge/index.js +1 -0
- package/dist/ui/Button/Button.d.ts +7 -0
- package/dist/ui/Button/Button.jsx +19 -0
- package/dist/ui/Button/button.recipe.d.ts +57 -0
- package/dist/ui/Button/button.recipe.js +46 -0
- package/dist/ui/Button/index.d.ts +1 -0
- package/dist/ui/Button/index.js +1 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +286 -0
- package/dist/ui/Checkbox/Checkbox.jsx +13 -0
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +40 -0
- package/dist/ui/Checkbox/checkbox.recipe.js +40 -0
- package/dist/ui/Checkbox/index.d.ts +1 -0
- package/dist/ui/Checkbox/index.js +1 -0
- package/dist/ui/Clipboard/Clipboard.d.ts +224 -0
- package/dist/ui/Clipboard/Clipboard.jsx +12 -0
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +37 -0
- package/dist/ui/Clipboard/clipboard.recipe.js +38 -0
- package/dist/ui/Clipboard/index.d.ts +1 -0
- package/dist/ui/Clipboard/index.js +1 -0
- package/dist/ui/Combobox/Combobox.d.ts +1 -0
- package/dist/ui/Combobox/Combobox.jsx +2 -0
- package/dist/ui/Combobox/combobox.recipe.d.ts +0 -0
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/index.d.ts +1 -0
- package/dist/ui/Combobox/index.js +1 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +2114 -0
- package/dist/ui/DatePicker/DatePicker.jsx +30 -0
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +88 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +15 -0
- package/dist/ui/DatePicker/index.d.ts +1 -0
- package/dist/ui/DatePicker/index.js +1 -0
- package/dist/ui/Dialog/Dialog.d.ts +508 -0
- package/dist/ui/Dialog/Dialog.jsx +17 -0
- package/dist/ui/Dialog/dialog.recipe.d.ts +46 -0
- package/dist/ui/Dialog/dialog.recipe.js +12 -0
- package/dist/ui/Dialog/index.d.ts +1 -0
- package/dist/ui/Dialog/index.js +1 -0
- package/dist/ui/Drawer/Drawer.d.ts +310 -0
- package/dist/ui/Drawer/Drawer.jsx +17 -0
- package/dist/ui/Drawer/drawer.recipe.d.ts +28 -0
- package/dist/ui/Drawer/drawer.recipe.js +24 -0
- package/dist/ui/Drawer/index.d.ts +1 -0
- package/dist/ui/Drawer/index.js +1 -0
- package/dist/ui/Field/Field.d.ts +303 -0
- package/dist/ui/Field/Field.jsx +13 -0
- package/dist/ui/Field/field.recipe.d.ts +43 -0
- package/dist/ui/Field/field.recipe.js +47 -0
- package/dist/ui/Field/index.d.ts +1 -0
- package/dist/ui/Field/index.js +1 -0
- package/dist/ui/IconButton/IconButton.d.ts +7 -0
- package/dist/ui/IconButton/IconButton.jsx +19 -0
- package/dist/ui/IconButton/iconButton.recipe.d.ts +80 -0
- package/dist/ui/IconButton/iconButton.recipe.js +17 -0
- package/dist/ui/IconButton/index.d.ts +1 -0
- package/dist/ui/IconButton/index.js +1 -0
- package/dist/ui/Menu/Menu.d.ts +1 -0
- package/dist/ui/Menu/Menu.jsx +2 -0
- package/dist/ui/Menu/index.d.ts +1 -0
- package/dist/ui/Menu/index.js +1 -0
- package/dist/ui/Menu/menu.recipe.d.ts +0 -0
- package/dist/ui/Menu/menu.recipe.js +1 -0
- package/dist/ui/NumberInput/NumberInput.d.ts +202 -0
- package/dist/ui/NumberInput/NumberInput.jsx +14 -0
- package/dist/ui/NumberInput/index.d.ts +1 -0
- package/dist/ui/NumberInput/index.js +1 -0
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +25 -0
- package/dist/ui/NumberInput/numberInput.recipe.js +24 -0
- package/dist/ui/PinInput/PinInput.d.ts +163 -0
- package/dist/ui/PinInput/PinInput.jsx +11 -0
- package/dist/ui/PinInput/index.d.ts +1 -0
- package/dist/ui/PinInput/index.js +1 -0
- package/dist/ui/PinInput/pinInput.recipe.d.ts +40 -0
- package/dist/ui/PinInput/pinInput.recipe.js +38 -0
- package/dist/ui/Popover/Popover.d.ts +508 -0
- package/dist/ui/Popover/Popover.jsx +17 -0
- package/dist/ui/Popover/index.d.ts +1 -0
- package/dist/ui/Popover/index.js +1 -0
- package/dist/ui/Popover/popover.recipe.d.ts +46 -0
- package/dist/ui/Popover/popover.recipe.js +9 -0
- package/dist/ui/Presence.d.ts +2 -0
- package/dist/ui/Presence.jsx +5 -0
- package/dist/ui/Progress/Progress.d.ts +1 -0
- package/dist/ui/Progress/Progress.jsx +2 -0
- package/dist/ui/Progress/index.d.ts +1 -0
- package/dist/ui/Progress/index.js +1 -0
- package/dist/ui/Progress/progress.recipe.d.ts +0 -0
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +226 -0
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +14 -0
- package/dist/ui/SegmentGroup/index.d.ts +1 -0
- package/dist/ui/SegmentGroup/index.js +1 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +37 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +33 -0
- package/dist/ui/Select/Select.d.ts +739 -0
- package/dist/ui/Select/Select.jsx +24 -0
- package/dist/ui/Select/index.d.ts +1 -0
- package/dist/ui/Select/index.js +1 -0
- package/dist/ui/Select/select.recipe.d.ts +49 -0
- package/dist/ui/Select/select.recipe.js +37 -0
- package/dist/ui/Table/Table.d.ts +301 -0
- package/dist/ui/Table/Table.jsx +12 -0
- package/dist/ui/Table/index.d.ts +1 -0
- package/dist/ui/Table/index.js +1 -0
- package/dist/ui/Table/table.anatomy.d.ts +1 -0
- package/dist/ui/Table/table.anatomy.js +2 -0
- package/dist/ui/Table/table.recipe.d.ts +43 -0
- package/dist/ui/Table/table.recipe.js +27 -0
- package/dist/ui/Tabs/Tabs.d.ts +187 -0
- package/dist/ui/Tabs/Tabs.jsx +11 -0
- package/dist/ui/Tabs/index.d.ts +1 -0
- package/dist/ui/Tabs/index.js +1 -0
- package/dist/ui/Tabs/tabs.recipe.d.ts +37 -0
- package/dist/ui/Tabs/tabs.recipe.js +33 -0
- package/dist/ui/Tooltip/Tooltip.d.ts +1 -0
- package/dist/ui/Tooltip/Tooltip.jsx +2 -0
- package/dist/ui/Tooltip/index.d.ts +1 -0
- package/dist/ui/Tooltip/index.js +1 -0
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +0 -0
- package/dist/ui/Tooltip/tooltip.recipe.js +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.js +23 -0
- package/dist/utils/anatomyToRecipeSlots.d.ts +6 -0
- package/dist/utils/anatomyToRecipeSlots.js +13 -0
- package/dist/utils/capitalize.d.ts +40 -0
- package/dist/utils/capitalize.js +47 -0
- package/dist/utils/createPoll.d.ts +28 -0
- package/dist/utils/createPoll.js +104 -0
- package/dist/utils/createRecipeContext.d.ts +15 -0
- package/dist/utils/createRecipeContext.jsx +73 -0
- package/dist/utils/createSplitProps.d.ts +3 -0
- package/dist/utils/createSplitProps.js +19 -0
- package/dist/utils/dataAttr.d.ts +1 -0
- package/dist/utils/dataAttr.js +3 -0
- package/dist/utils/formatNumber.d.ts +21 -0
- package/dist/utils/formatNumber.js +45 -0
- package/dist/utils/getGameImageUrl.d.ts +12 -0
- package/dist/utils/getGameImageUrl.js +10 -0
- package/dist/utils/getLocaleInfo.d.ts +79 -0
- package/dist/utils/getLocaleInfo.jsx +237 -0
- package/dist/utils/getQueryClient.d.ts +2 -0
- package/dist/utils/getQueryClient.js +26 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isMobile.js +16 -0
- package/dist/utils/parseDecimal.d.ts +2 -0
- package/dist/utils/parseDecimal.js +18 -0
- package/dist/utils/toaster.d.ts +2 -0
- package/dist/utils/toaster.js +8 -0
- package/package.json +157 -13
- package/dist/JackpotCounter.module-5D2TMSET.module.css +0 -46
- package/dist/chunk-CA3CKIFK.mjs +0 -74
- package/dist/chunk-CA3CKIFK.mjs.map +0 -1
- package/dist/chunk-J5LGTIGS.mjs +0 -10
- package/dist/chunk-J5LGTIGS.mjs.map +0 -1
- package/dist/chunk-WGWFJYET.mjs +0 -1229
- package/dist/chunk-WGWFJYET.mjs.map +0 -1
- package/dist/handlers.d.mts +0 -43
- package/dist/handlers.js.map +0 -1
- package/dist/handlers.mjs +0 -267
- package/dist/handlers.mjs.map +0 -1
- package/dist/index.d.mts +0 -144
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -6422
- package/dist/index.mjs.map +0 -1
- package/dist/middleware.d.mts +0 -8
- package/dist/middleware.js.map +0 -1
- package/dist/middleware.mjs +0 -45
- package/dist/middleware.mjs.map +0 -1
- package/dist/ui.d.mts +0 -6904
- package/dist/ui.d.ts +0 -6904
- package/dist/ui.js +0 -1280
- package/dist/ui.js.map +0 -1
- package/dist/ui.mjs +0 -48
- package/dist/ui.mjs.map +0 -1
- /package/dist/{QRPh-LURVHEVK.png → images/QRPh.png} +0 -0
- /package/dist/{ball-TSKR3KCL.png → images/ball.png} +0 -0
- /package/dist/{card-DTJVRZI7.png → images/card.png} +0 -0
- /package/dist/{close-chest-T4YK5KYS.png → images/close-chest.png} +0 -0
- /package/dist/{gcash-3TV2ZD5Z.png → images/gcash.png} +0 -0
- /package/dist/{maya-2LESMCYJ.png → images/images/maya.png} +0 -0
- /package/dist/{online-bank-ZRRABICE.png → images/images/online-bank.png} +0 -0
- /package/dist/{open-chest-XMGW5QZE.png → images/images/open-chest.png} +0 -0
- /package/dist/{pagcor-AFUY5PSY.png → images/images/pagcor.png} +0 -0
- /package/dist/{responsible-gaming-MQQBK5RV.png → images/images/responsible-gaming.png} +0 -0
- /package/dist/{trophy-QC26LEAT.png → images/images/trophy.png} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { Portal } from '@ark-ui/react';
|
|
38
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
39
|
+
import { useEffect } from 'react';
|
|
40
|
+
import { Controller, useForm } from 'react-hook-form';
|
|
41
|
+
import invariant from 'tiny-invariant';
|
|
42
|
+
import { z } from 'zod';
|
|
43
|
+
import { useShallow } from 'zustand/shallow';
|
|
44
|
+
import { useAvailablePromosQuery } from '../../../../hooks/useAvailablePromosQuery/useAvailablePromosQuery.js';
|
|
45
|
+
import { useCreateGCashDepositMutation } from '../../../../hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.js';
|
|
46
|
+
import { useDepositsCountQuery } from '../../../../hooks/useDepositsCountQuery/useDepositsCountQuery.js';
|
|
47
|
+
import { useDisclosure } from '../../../../hooks/useDisclosure.js';
|
|
48
|
+
import { useGlobalStore } from '../../../../hooks/useGlobalStore.js';
|
|
49
|
+
import { usePaymentSettingsQuery } from '../../../../hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js';
|
|
50
|
+
import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.jsx';
|
|
51
|
+
import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.jsx';
|
|
52
|
+
import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.jsx';
|
|
53
|
+
import { SpinnerIcon } from '../../../../icons/SpinnerIcon.jsx';
|
|
54
|
+
import { XIcon } from '../../../../icons/XIcon.jsx';
|
|
55
|
+
import { AlertDialog, Button, Field, NumberInput, } from '../../../../ui/index.js';
|
|
56
|
+
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
57
|
+
import { toaster } from '../../../../utils/toaster.js';
|
|
58
|
+
import { AmountChoices } from '../../AmountChoices.jsx';
|
|
59
|
+
import { AvailablePromos } from '../../AvailablePromos.jsx';
|
|
60
|
+
export function GCashDeposit() {
|
|
61
|
+
var _this = this;
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
var disclosure = useDisclosure();
|
|
64
|
+
var globalStore = useGlobalStore(useShallow(function (ctx) { return ({
|
|
65
|
+
depositWithdrawal: ctx.depositWithdrawal,
|
|
66
|
+
}); }));
|
|
67
|
+
var createDepositMutation = useCreateGCashDepositMutation({
|
|
68
|
+
onSuccess: function (data) {
|
|
69
|
+
invariant(data.checkoutUrl);
|
|
70
|
+
window.open(data.checkoutUrl, '_blank', 'noopener,noreferrer');
|
|
71
|
+
form.reset();
|
|
72
|
+
globalStore.depositWithdrawal.setOpen(false);
|
|
73
|
+
},
|
|
74
|
+
onError: function (error) {
|
|
75
|
+
toaster.error({
|
|
76
|
+
description: error.message,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
var depositsCountQuery = useDepositsCountQuery();
|
|
81
|
+
var depositsCount = (_a = depositsCountQuery.data) !== null && _a !== void 0 ? _a : 0;
|
|
82
|
+
var paymentSettingsQuery = usePaymentSettingsQuery();
|
|
83
|
+
var paymentSettings = paymentSettingsQuery.data;
|
|
84
|
+
var gatewaySettings = paymentSettings === null || paymentSettings === void 0 ? void 0 : paymentSettings.gcashDepositGatewaySettings;
|
|
85
|
+
var maximumAmount = parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.maximumAmount, 0);
|
|
86
|
+
var minimumAmount = depositsCount <= 0
|
|
87
|
+
? parseDecimal((_b = paymentSettingsQuery.data) === null || _b === void 0 ? void 0 : _b.minimumFirstDepositAmount, 0)
|
|
88
|
+
: parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.minimumAmount, 0);
|
|
89
|
+
var promosQuery = useAvailablePromosQuery();
|
|
90
|
+
var promos = (_c = promosQuery.data) !== null && _c !== void 0 ? _c : [];
|
|
91
|
+
var definition = z
|
|
92
|
+
.object({
|
|
93
|
+
amount: z.string().superRefine(function (val, ctx) {
|
|
94
|
+
var n = parseDecimal(val, 0);
|
|
95
|
+
if (n < minimumAmount) {
|
|
96
|
+
ctx.addIssue({
|
|
97
|
+
type: 'number',
|
|
98
|
+
code: z.ZodIssueCode.too_small,
|
|
99
|
+
inclusive: true,
|
|
100
|
+
minimum: minimumAmount,
|
|
101
|
+
message: "Minimum amount is ".concat(minimumAmount.toLocaleString()),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (n > maximumAmount) {
|
|
105
|
+
ctx.addIssue({
|
|
106
|
+
type: 'number',
|
|
107
|
+
code: z.ZodIssueCode.too_big,
|
|
108
|
+
inclusive: true,
|
|
109
|
+
maximum: maximumAmount,
|
|
110
|
+
message: "Maximum amount is ".concat(maximumAmount.toLocaleString()),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
promo: z.string().optional().nullable(),
|
|
115
|
+
})
|
|
116
|
+
.superRefine(function (value, ctx) {
|
|
117
|
+
var promo = promos.find(function (o) { return o.id === value.promo; });
|
|
118
|
+
var promoMinAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.minimumDepositAmount, 0);
|
|
119
|
+
var promoMaxAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.maximumDepositAmount, 0);
|
|
120
|
+
var amount = parseDecimal(value.amount, 0);
|
|
121
|
+
if (promo && amount < promoMinAmount) {
|
|
122
|
+
ctx.addIssue({
|
|
123
|
+
path: ['amount'],
|
|
124
|
+
code: z.ZodIssueCode.custom,
|
|
125
|
+
message: "Minimum amount for this promo is ".concat(promoMinAmount.toLocaleString()),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (promo && amount > promoMaxAmount) {
|
|
129
|
+
ctx.addIssue({
|
|
130
|
+
path: ['amount'],
|
|
131
|
+
code: z.ZodIssueCode.custom,
|
|
132
|
+
message: "Maximum amount for this promo is ".concat(promoMaxAmount),
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var form = useForm({
|
|
137
|
+
mode: 'all',
|
|
138
|
+
resolver: zodResolver(definition),
|
|
139
|
+
defaultValues: {
|
|
140
|
+
amount: '0',
|
|
141
|
+
promo: null,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
useEffect(function () {
|
|
145
|
+
if (minimumAmount) {
|
|
146
|
+
form.reset({
|
|
147
|
+
amount: minimumAmount.toString(),
|
|
148
|
+
promo: null,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}, [form, minimumAmount]);
|
|
152
|
+
var handleSubmit = form.handleSubmit(function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
153
|
+
var _a;
|
|
154
|
+
return __generator(this, function (_b) {
|
|
155
|
+
createDepositMutation.mutate({
|
|
156
|
+
amount: data.amount.toString(),
|
|
157
|
+
promo: (_a = data.promo) !== null && _a !== void 0 ? _a : undefined,
|
|
158
|
+
});
|
|
159
|
+
return [2 /*return*/];
|
|
160
|
+
});
|
|
161
|
+
}); });
|
|
162
|
+
return (<form onSubmit={handleSubmit} noValidate>
|
|
163
|
+
<Controller control={form.control} name="amount" render={function (o) {
|
|
164
|
+
var _a;
|
|
165
|
+
return (<Field.Root invalid={!!form.formState.errors.amount}>
|
|
166
|
+
<NumberInput.Root min={0} step={1} value={o.field.value} onValueChange={function (details) {
|
|
167
|
+
o.field.onChange(details.value);
|
|
168
|
+
}} formatOptions={{
|
|
169
|
+
maximumFractionDigits: 2,
|
|
170
|
+
minimumFractionDigits: 0,
|
|
171
|
+
}} allowMouseWheel>
|
|
172
|
+
<NumberInput.Label>
|
|
173
|
+
Enter amount you want to deposit
|
|
174
|
+
</NumberInput.Label>
|
|
175
|
+
<NumberInput.Control>
|
|
176
|
+
<NumberInput.Input />
|
|
177
|
+
<NumberInput.IncrementTrigger>
|
|
178
|
+
<ChevronUpIcon />
|
|
179
|
+
</NumberInput.IncrementTrigger>
|
|
180
|
+
<NumberInput.DecrementTrigger>
|
|
181
|
+
<ChevronDownIcon />
|
|
182
|
+
</NumberInput.DecrementTrigger>
|
|
183
|
+
</NumberInput.Control>
|
|
184
|
+
</NumberInput.Root>
|
|
185
|
+
<Field.ErrorText>
|
|
186
|
+
{(_a = form.formState.errors.amount) === null || _a === void 0 ? void 0 : _a.message}
|
|
187
|
+
</Field.ErrorText>
|
|
188
|
+
</Field.Root>);
|
|
189
|
+
}}/>
|
|
190
|
+
|
|
191
|
+
<AmountChoices value={parseDecimal(form.watch('amount'), 0)} onChange={function (value) {
|
|
192
|
+
form.setValue('amount', value.toString(), {
|
|
193
|
+
shouldTouch: true,
|
|
194
|
+
shouldDirty: true,
|
|
195
|
+
shouldValidate: true,
|
|
196
|
+
});
|
|
197
|
+
}} min={minimumAmount} max={maximumAmount} className="mt-xl"/>
|
|
198
|
+
|
|
199
|
+
<Controller control={form.control} name="promo" render={function (o) { return (<AvailablePromos className="mt-4xl" value={o.field.value} onChange={o.field.onChange}/>); }}/>
|
|
200
|
+
|
|
201
|
+
<p className="mt-4xl text-xs">
|
|
202
|
+
Upon clicking the deposit button, you agree to the{' '}
|
|
203
|
+
<button type="button" className="underline underline-offset-2">
|
|
204
|
+
Terms of Use and Privacy Policy
|
|
205
|
+
</button>
|
|
206
|
+
.
|
|
207
|
+
</p>
|
|
208
|
+
<Button type="submit" className="mt-4.5" disabled={createDepositMutation.isPending} onClick={function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
+
var ok;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0: return [4 /*yield*/, form.trigger('amount')];
|
|
213
|
+
case 1:
|
|
214
|
+
ok = _a.sent();
|
|
215
|
+
if (!ok)
|
|
216
|
+
return [2 /*return*/];
|
|
217
|
+
if (promos.length <= 0)
|
|
218
|
+
return [2 /*return*/];
|
|
219
|
+
if (form.getValues('promo'))
|
|
220
|
+
return [2 /*return*/];
|
|
221
|
+
e.preventDefault();
|
|
222
|
+
disclosure.setOpen(true);
|
|
223
|
+
return [2 /*return*/];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}); }}>
|
|
227
|
+
{createDepositMutation.isPending ? (<>
|
|
228
|
+
<SpinnerIcon />
|
|
229
|
+
Processing...
|
|
230
|
+
</>) : ('Deposit')}
|
|
231
|
+
</Button>
|
|
232
|
+
|
|
233
|
+
<AlertDialog.Root role="alertdialog" open={disclosure.open} onOpenChange={function (details) {
|
|
234
|
+
disclosure.setOpen(details.open);
|
|
235
|
+
}} lazyMount unmountOnExit closeOnEscape={false} closeOnInteractOutside={false}>
|
|
236
|
+
<Portal>
|
|
237
|
+
<AlertDialog.Backdrop className="!z-[calc(var(--z-dialog)+10)]"/>
|
|
238
|
+
<AlertDialog.Positioner className="!z-[calc(var(--z-dialog)+25)]">
|
|
239
|
+
<AlertDialog.Content>
|
|
240
|
+
<AlertDialog.Header>
|
|
241
|
+
<div className="flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]">
|
|
242
|
+
<AlertCircleIcon />
|
|
243
|
+
</div>
|
|
244
|
+
<AlertDialog.CloseTrigger>
|
|
245
|
+
<XIcon />
|
|
246
|
+
</AlertDialog.CloseTrigger>
|
|
247
|
+
</AlertDialog.Header>
|
|
248
|
+
<AlertDialog.Body>
|
|
249
|
+
<AlertDialog.Title>
|
|
250
|
+
Submit deposit request without promo?
|
|
251
|
+
</AlertDialog.Title>
|
|
252
|
+
<AlertDialog.Description>
|
|
253
|
+
You haven’t selected a promo. Are you sure you want to
|
|
254
|
+
proceed without one?
|
|
255
|
+
</AlertDialog.Description>
|
|
256
|
+
</AlertDialog.Body>
|
|
257
|
+
<AlertDialog.Footer>
|
|
258
|
+
<Button variant="outline" colorScheme="gray" onClick={function () {
|
|
259
|
+
disclosure.setOpen(false);
|
|
260
|
+
}}>
|
|
261
|
+
Cancel
|
|
262
|
+
</Button>
|
|
263
|
+
<Button onClick={function () {
|
|
264
|
+
handleSubmit();
|
|
265
|
+
disclosure.setOpen(false);
|
|
266
|
+
}}>
|
|
267
|
+
Proceed
|
|
268
|
+
</Button>
|
|
269
|
+
</AlertDialog.Footer>
|
|
270
|
+
</AlertDialog.Content>
|
|
271
|
+
</AlertDialog.Positioner>
|
|
272
|
+
</Portal>
|
|
273
|
+
</AlertDialog.Root>
|
|
274
|
+
</form>);
|
|
275
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MayaAppDeposit(): import("react").JSX.Element;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { Portal } from '@ark-ui/react';
|
|
38
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
39
|
+
import { useEffect } from 'react';
|
|
40
|
+
import { Controller, useForm } from 'react-hook-form';
|
|
41
|
+
import { z } from 'zod';
|
|
42
|
+
import { useShallow } from 'zustand/shallow';
|
|
43
|
+
import { useAvailablePromosQuery } from '../../../../hooks/useAvailablePromosQuery/useAvailablePromosQuery.js';
|
|
44
|
+
import { useCreateMayaAppDepositMutation } from '../../../../hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.js';
|
|
45
|
+
import { useDepositsCountQuery } from '../../../../hooks/useDepositsCountQuery/useDepositsCountQuery.js';
|
|
46
|
+
import { useDisclosure } from '../../../../hooks/useDisclosure.js';
|
|
47
|
+
import { useGlobalStore } from '../../../../hooks/useGlobalStore.js';
|
|
48
|
+
import { useIsMayaSessionValidQuery } from '../../../../hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.js';
|
|
49
|
+
import { usePaymentSettingsQuery } from '../../../../hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js';
|
|
50
|
+
import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.jsx';
|
|
51
|
+
import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon.jsx';
|
|
52
|
+
import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon.jsx';
|
|
53
|
+
import { SpinnerIcon } from '../../../../icons/SpinnerIcon.jsx';
|
|
54
|
+
import { XIcon } from '../../../../icons/XIcon.jsx';
|
|
55
|
+
import { AlertDialog, Button, Field, NumberInput, } from '../../../../ui/index.js';
|
|
56
|
+
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
57
|
+
import { toaster } from '../../../../utils/toaster.js';
|
|
58
|
+
import { AmountChoices } from '../../AmountChoices.jsx';
|
|
59
|
+
import { AvailablePromos } from '../../AvailablePromos.jsx';
|
|
60
|
+
import { SessionExpired } from './SessionExpired.jsx';
|
|
61
|
+
export function MayaAppDeposit() {
|
|
62
|
+
var _this = this;
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
var disclosure = useDisclosure();
|
|
65
|
+
var globalStore = useGlobalStore(useShallow(function (ctx) { return ({
|
|
66
|
+
depositWithdrawal: ctx.depositWithdrawal,
|
|
67
|
+
}); }));
|
|
68
|
+
var createDepositMutation = useCreateMayaAppDepositMutation({
|
|
69
|
+
onSuccess: function () {
|
|
70
|
+
form.reset();
|
|
71
|
+
globalStore.depositWithdrawal.setOpen(false);
|
|
72
|
+
toaster.success({
|
|
73
|
+
description: 'Deposit success!',
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
onError: function (error) {
|
|
77
|
+
toaster.error({
|
|
78
|
+
description: error.message,
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
var isMayaSessionValidQuery = useIsMayaSessionValidQuery();
|
|
83
|
+
var isMayaSessionValid = (_a = isMayaSessionValidQuery.data) !== null && _a !== void 0 ? _a : true;
|
|
84
|
+
var depositsCountQuery = useDepositsCountQuery();
|
|
85
|
+
var depositsCount = (_b = depositsCountQuery.data) !== null && _b !== void 0 ? _b : 0;
|
|
86
|
+
var paymentSettingsQuery = usePaymentSettingsQuery();
|
|
87
|
+
var paymentSettings = paymentSettingsQuery.data;
|
|
88
|
+
var gatewaySettings = paymentSettings === null || paymentSettings === void 0 ? void 0 : paymentSettings.mayaAppDepositGatewaySettings;
|
|
89
|
+
var maximumAmount = parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.maximumAmount, 0);
|
|
90
|
+
var minimumAmount = depositsCount <= 0
|
|
91
|
+
? parseDecimal((_c = paymentSettingsQuery.data) === null || _c === void 0 ? void 0 : _c.minimumFirstDepositAmount, 0)
|
|
92
|
+
: parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.minimumAmount, 0);
|
|
93
|
+
var promosQuery = useAvailablePromosQuery();
|
|
94
|
+
var promos = (_d = promosQuery.data) !== null && _d !== void 0 ? _d : [];
|
|
95
|
+
var definition = z
|
|
96
|
+
.object({
|
|
97
|
+
amount: z.string().superRefine(function (val, ctx) {
|
|
98
|
+
var n = parseDecimal(val, 0);
|
|
99
|
+
if (n < minimumAmount) {
|
|
100
|
+
ctx.addIssue({
|
|
101
|
+
type: 'number',
|
|
102
|
+
code: z.ZodIssueCode.too_small,
|
|
103
|
+
inclusive: true,
|
|
104
|
+
minimum: minimumAmount,
|
|
105
|
+
message: "Minimum amount is ".concat(minimumAmount.toLocaleString()),
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (n > maximumAmount) {
|
|
109
|
+
ctx.addIssue({
|
|
110
|
+
type: 'number',
|
|
111
|
+
code: z.ZodIssueCode.too_big,
|
|
112
|
+
inclusive: true,
|
|
113
|
+
maximum: maximumAmount,
|
|
114
|
+
message: "Maximum amount is ".concat(maximumAmount.toLocaleString()),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}),
|
|
118
|
+
promo: z.string().optional().nullable(),
|
|
119
|
+
})
|
|
120
|
+
.superRefine(function (value, ctx) {
|
|
121
|
+
var promo = promos.find(function (o) { return o.id === value.promo; });
|
|
122
|
+
var promoMinAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.minimumDepositAmount, 0);
|
|
123
|
+
var promoMaxAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.maximumDepositAmount, 0);
|
|
124
|
+
var amount = parseDecimal(value.amount, 0);
|
|
125
|
+
if (promo && amount < promoMinAmount) {
|
|
126
|
+
ctx.addIssue({
|
|
127
|
+
path: ['amount'],
|
|
128
|
+
code: z.ZodIssueCode.custom,
|
|
129
|
+
message: "Minimum amount for this promo is ".concat(promoMinAmount.toLocaleString()),
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (promo && amount > promoMaxAmount) {
|
|
133
|
+
ctx.addIssue({
|
|
134
|
+
path: ['amount'],
|
|
135
|
+
code: z.ZodIssueCode.custom,
|
|
136
|
+
message: "Maximum amount for this promo is ".concat(promoMaxAmount),
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
var form = useForm({
|
|
141
|
+
mode: 'all',
|
|
142
|
+
resolver: zodResolver(definition),
|
|
143
|
+
defaultValues: {
|
|
144
|
+
amount: '0',
|
|
145
|
+
promo: null,
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
useEffect(function () {
|
|
149
|
+
if (minimumAmount) {
|
|
150
|
+
form.reset({
|
|
151
|
+
amount: minimumAmount.toString(),
|
|
152
|
+
promo: null,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}, [form, minimumAmount]);
|
|
156
|
+
var handleSubmit = form.handleSubmit(function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
157
|
+
var _a;
|
|
158
|
+
return __generator(this, function (_b) {
|
|
159
|
+
createDepositMutation.mutate({
|
|
160
|
+
amount: data.amount.toString(),
|
|
161
|
+
promo: (_a = data.promo) !== null && _a !== void 0 ? _a : undefined,
|
|
162
|
+
});
|
|
163
|
+
return [2 /*return*/];
|
|
164
|
+
});
|
|
165
|
+
}); });
|
|
166
|
+
if (!isMayaSessionValid) {
|
|
167
|
+
return <SessionExpired />;
|
|
168
|
+
}
|
|
169
|
+
return (<form onSubmit={handleSubmit} noValidate>
|
|
170
|
+
<Controller control={form.control} name="amount" render={function (o) {
|
|
171
|
+
var _a;
|
|
172
|
+
return (<Field.Root invalid={!!form.formState.errors.amount}>
|
|
173
|
+
<NumberInput.Root min={0} step={1} value={o.field.value} onValueChange={function (details) {
|
|
174
|
+
o.field.onChange(details.value);
|
|
175
|
+
}} formatOptions={{
|
|
176
|
+
maximumFractionDigits: 2,
|
|
177
|
+
minimumFractionDigits: 0,
|
|
178
|
+
}} allowMouseWheel>
|
|
179
|
+
<NumberInput.Label>
|
|
180
|
+
Enter amount you want to deposit
|
|
181
|
+
</NumberInput.Label>
|
|
182
|
+
<NumberInput.Control>
|
|
183
|
+
<NumberInput.Input />
|
|
184
|
+
<NumberInput.IncrementTrigger>
|
|
185
|
+
<ChevronUpIcon />
|
|
186
|
+
</NumberInput.IncrementTrigger>
|
|
187
|
+
<NumberInput.DecrementTrigger>
|
|
188
|
+
<ChevronDownIcon />
|
|
189
|
+
</NumberInput.DecrementTrigger>
|
|
190
|
+
</NumberInput.Control>
|
|
191
|
+
</NumberInput.Root>
|
|
192
|
+
<Field.ErrorText>
|
|
193
|
+
{(_a = form.formState.errors.amount) === null || _a === void 0 ? void 0 : _a.message}
|
|
194
|
+
</Field.ErrorText>
|
|
195
|
+
</Field.Root>);
|
|
196
|
+
}}/>
|
|
197
|
+
|
|
198
|
+
<AmountChoices value={parseDecimal(form.watch('amount'), 0)} onChange={function (value) {
|
|
199
|
+
form.setValue('amount', value.toString(), {
|
|
200
|
+
shouldTouch: true,
|
|
201
|
+
shouldDirty: true,
|
|
202
|
+
shouldValidate: true,
|
|
203
|
+
});
|
|
204
|
+
}} min={minimumAmount} max={maximumAmount} className="mt-xl"/>
|
|
205
|
+
|
|
206
|
+
<Controller control={form.control} name="promo" render={function (o) { return (<AvailablePromos className="mt-4xl" value={o.field.value} onChange={o.field.onChange}/>); }}/>
|
|
207
|
+
|
|
208
|
+
<p className="mt-4xl text-xs">
|
|
209
|
+
Upon clicking the deposit button, you agree to the{' '}
|
|
210
|
+
<button type="button" className="underline underline-offset-2">
|
|
211
|
+
Terms of Use and Privacy Policy
|
|
212
|
+
</button>
|
|
213
|
+
.
|
|
214
|
+
</p>
|
|
215
|
+
<Button type="submit" className="mt-4.5" disabled={createDepositMutation.isPending} onClick={function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
216
|
+
var ok;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
switch (_a.label) {
|
|
219
|
+
case 0: return [4 /*yield*/, form.trigger('amount')];
|
|
220
|
+
case 1:
|
|
221
|
+
ok = _a.sent();
|
|
222
|
+
if (!ok)
|
|
223
|
+
return [2 /*return*/];
|
|
224
|
+
if (promos.length <= 0)
|
|
225
|
+
return [2 /*return*/];
|
|
226
|
+
if (form.getValues('promo'))
|
|
227
|
+
return [2 /*return*/];
|
|
228
|
+
e.preventDefault();
|
|
229
|
+
disclosure.setOpen(true);
|
|
230
|
+
return [2 /*return*/];
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}); }}>
|
|
234
|
+
{createDepositMutation.isPending ? (<>
|
|
235
|
+
<SpinnerIcon />
|
|
236
|
+
Processing...
|
|
237
|
+
</>) : ('Deposit')}
|
|
238
|
+
</Button>
|
|
239
|
+
|
|
240
|
+
<AlertDialog.Root role="alertdialog" open={disclosure.open} onOpenChange={function (details) {
|
|
241
|
+
disclosure.setOpen(details.open);
|
|
242
|
+
}} lazyMount unmountOnExit closeOnEscape={false} closeOnInteractOutside={false}>
|
|
243
|
+
<Portal>
|
|
244
|
+
<AlertDialog.Backdrop className="!z-[calc(var(--z-dialog)+10)]"/>
|
|
245
|
+
<AlertDialog.Positioner className="!z-[calc(var(--z-dialog)+25)]">
|
|
246
|
+
<AlertDialog.Content>
|
|
247
|
+
<AlertDialog.Header>
|
|
248
|
+
<div className="flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]">
|
|
249
|
+
<AlertCircleIcon />
|
|
250
|
+
</div>
|
|
251
|
+
<AlertDialog.CloseTrigger>
|
|
252
|
+
<XIcon />
|
|
253
|
+
</AlertDialog.CloseTrigger>
|
|
254
|
+
</AlertDialog.Header>
|
|
255
|
+
<AlertDialog.Body>
|
|
256
|
+
<AlertDialog.Title>
|
|
257
|
+
Submit deposit request without promo?
|
|
258
|
+
</AlertDialog.Title>
|
|
259
|
+
<AlertDialog.Description>
|
|
260
|
+
You haven’t selected a promo. Are you sure you want to
|
|
261
|
+
proceed without one?
|
|
262
|
+
</AlertDialog.Description>
|
|
263
|
+
</AlertDialog.Body>
|
|
264
|
+
<AlertDialog.Footer>
|
|
265
|
+
<Button variant="outline" colorScheme="gray" onClick={function () {
|
|
266
|
+
disclosure.setOpen(false);
|
|
267
|
+
}}>
|
|
268
|
+
Cancel
|
|
269
|
+
</Button>
|
|
270
|
+
<Button onClick={function () {
|
|
271
|
+
handleSubmit();
|
|
272
|
+
disclosure.setOpen(false);
|
|
273
|
+
}}>
|
|
274
|
+
Proceed
|
|
275
|
+
</Button>
|
|
276
|
+
</AlertDialog.Footer>
|
|
277
|
+
</AlertDialog.Content>
|
|
278
|
+
</AlertDialog.Positioner>
|
|
279
|
+
</Portal>
|
|
280
|
+
</AlertDialog.Root>
|
|
281
|
+
</form>);
|
|
282
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SessionExpired(): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AlertTriangleIcon } from '../../../../icons/AlertTriangle.jsx';
|
|
2
|
+
export function SessionExpired() {
|
|
3
|
+
return (<div className="bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl">
|
|
4
|
+
<AlertTriangleIcon className="text-amber-500 mx-auto size-10"/>
|
|
5
|
+
<h2 className="mt-3 text-center text-lg font-semibold">
|
|
6
|
+
Session Expired
|
|
7
|
+
</h2>
|
|
8
|
+
<p className="text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm">
|
|
9
|
+
Your session has timed out. To continue with deposits or withdrawals,
|
|
10
|
+
Please try reloading the app.
|
|
11
|
+
</p>
|
|
12
|
+
</div>);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MayaDeposit(): import("react").JSX.Element;
|