@opexa/portal-components 0.0.2 → 0.0.3
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 +4 -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/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 +20 -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 +20 -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 +2 -0
- package/dist/ui/Menu/Menu.jsx +3 -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 +71 -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/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 +156 -13
- package/dist/JackpotCounter.module-5D2TMSET.module.css +0 -46
- package/dist/QRPh-LURVHEVK.png +0 -0
- package/dist/ball-TSKR3KCL.png +0 -0
- package/dist/card-DTJVRZI7.png +0 -0
- 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/close-chest-T4YK5KYS.png +0 -0
- package/dist/gcash-3TV2ZD5Z.png +0 -0
- 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/maya-2LESMCYJ.png +0 -0
- 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/online-bank-ZRRABICE.png +0 -0
- package/dist/open-chest-XMGW5QZE.png +0 -0
- package/dist/pagcor-AFUY5PSY.png +0 -0
- package/dist/responsible-gaming-MQQBK5RV.png +0 -0
- package/dist/trophy-QC26LEAT.png +0 -0
- 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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Portal } from '@ark-ui/react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import { BankIcon } from '../../../../icons/BankIcon';
|
|
4
|
+
import { XIcon } from '../../../../icons/XIcon';
|
|
5
|
+
import { Button, Clipboard, Dialog } from '../../../../ui';
|
|
6
|
+
import { useOnlineBankDepositContext } from './OnlineBankDepositContext';
|
|
7
|
+
import bankIcon from './bank.png';
|
|
8
|
+
export function OnlineBankDepositVCA() {
|
|
9
|
+
var _a;
|
|
10
|
+
var context = useOnlineBankDepositContext();
|
|
11
|
+
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
12
|
+
<Image src={bankIcon} alt="" width={52} height={44.2} className="mx-auto h-auto w-[3.25rem]"/>
|
|
13
|
+
|
|
14
|
+
<p className="mt-8 text-center font-semibold">
|
|
15
|
+
Your unique Virtual Collection Account (VCA) is:
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<Clipboard.Root value={(_a = context.vca) !== null && _a !== void 0 ? _a : ''} className="mx-auto mt-6 max-w-[22.5rem]">
|
|
19
|
+
<Clipboard.Control className="flex flex-col gap-4 lg:flex-row">
|
|
20
|
+
<Clipboard.Input className="lg:grow"/>
|
|
21
|
+
<Clipboard.Context>
|
|
22
|
+
{function (ctx) { return (<Clipboard.Trigger asChild>
|
|
23
|
+
<Button fullWidth={false} className="w-full shrink-0 lg:w-28">
|
|
24
|
+
{ctx.copied ? 'Copied' : 'Copy VCA'}
|
|
25
|
+
</Button>
|
|
26
|
+
</Clipboard.Trigger>); }}
|
|
27
|
+
</Clipboard.Context>
|
|
28
|
+
</Clipboard.Control>
|
|
29
|
+
</Clipboard.Root>
|
|
30
|
+
|
|
31
|
+
<Instruction />
|
|
32
|
+
</div>);
|
|
33
|
+
}
|
|
34
|
+
function Instruction() {
|
|
35
|
+
return (<p className="text-gray-500 mt-6 text-center text-xs">
|
|
36
|
+
Need help using the online bank for payment?{' '}
|
|
37
|
+
<Dialog.Root lazyMount unmountOnExit>
|
|
38
|
+
<Dialog.Trigger className="text-blue-500">
|
|
39
|
+
See instructions
|
|
40
|
+
</Dialog.Trigger>
|
|
41
|
+
<Portal>
|
|
42
|
+
<Dialog.Backdrop className="!z-[calc(var(--z-dialog)+2)]"/>
|
|
43
|
+
<Dialog.Positioner className="!z-[calc(var(--z-dialog)+3)] flex items-center justify-center">
|
|
44
|
+
<Dialog.Content className="mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]">
|
|
45
|
+
<Dialog.CloseTrigger>
|
|
46
|
+
<XIcon />
|
|
47
|
+
</Dialog.CloseTrigger>
|
|
48
|
+
|
|
49
|
+
<Dialog.Body>
|
|
50
|
+
<div className="flex items-center gap-xl">
|
|
51
|
+
<div className="border-gray-200 flex size-11 items-center justify-center rounded-lg border">
|
|
52
|
+
<BankIcon className="text-gray-600 size-6"/>
|
|
53
|
+
</div>
|
|
54
|
+
<Dialog.Title className="text-lg font-semibold">
|
|
55
|
+
How to Use Online Bank for Payment
|
|
56
|
+
</Dialog.Title>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<Dialog.Description className="mt-5">
|
|
60
|
+
Follow these simple steps to complete your transaction:
|
|
61
|
+
</Dialog.Description>
|
|
62
|
+
|
|
63
|
+
<ol className="mt-3 list-inside list-decimal space-y-3">
|
|
64
|
+
<li>
|
|
65
|
+
Click the 'Copy VCA' button to save your unique
|
|
66
|
+
account number.
|
|
67
|
+
</li>
|
|
68
|
+
<li>
|
|
69
|
+
Log in to your Online Banking: Open your bank's app or
|
|
70
|
+
website.
|
|
71
|
+
</li>
|
|
72
|
+
<li>
|
|
73
|
+
Initiate a Deposit: Choose the option to make a deposit.
|
|
74
|
+
</li>
|
|
75
|
+
<li>Enter VCA: Paste your VCA in the designated field.</li>
|
|
76
|
+
<li>
|
|
77
|
+
Complete Transaction: Follow your bank's prompts to
|
|
78
|
+
finalize the deposit.
|
|
79
|
+
</li>
|
|
80
|
+
</ol>
|
|
81
|
+
|
|
82
|
+
<p className="mt-3">
|
|
83
|
+
Note: Please ensure that the deposit amount you enter matches
|
|
84
|
+
exactly.
|
|
85
|
+
</p>
|
|
86
|
+
</Dialog.Body>
|
|
87
|
+
</Dialog.Content>
|
|
88
|
+
</Dialog.Positioner>
|
|
89
|
+
</Portal>
|
|
90
|
+
</Dialog.Root>
|
|
91
|
+
</p>);
|
|
92
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type View = 'FORM' | 'LOADING' | 'SUCCESS' | 'VCA';
|
|
2
|
+
export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
|
|
3
|
+
export declare function useOnlineBankDeposit(): {
|
|
4
|
+
vca: string | null;
|
|
5
|
+
view: View;
|
|
6
|
+
generateVca: import("@tanstack/react-query").UseMutateFunction<import("@opexa/portal-sdk-core").Deposit, Error, {
|
|
7
|
+
amount: string;
|
|
8
|
+
promo?: string | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
regenerateVca: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
import { useCreateOnlineBankDepositMutation } from '../../../../hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation';
|
|
4
|
+
import { useDepositQuery } from '../../../../hooks/useDepositQuery/useDepositQuery';
|
|
5
|
+
import { toaster } from '../../../../utils/toaster';
|
|
6
|
+
export function useOnlineBankDeposit() {
|
|
7
|
+
var _a;
|
|
8
|
+
var _b = useState('FORM'), view = _b[0], setView = _b[1];
|
|
9
|
+
var _c = useState(null), id = _c[0], setId = _c[1];
|
|
10
|
+
var _d = useState(null), vca = _d[0], setVca = _d[1];
|
|
11
|
+
var _e = useState(null), promo = _e[0], setPromo = _e[1];
|
|
12
|
+
var _f = useState(null), amount = _f[0], setAmount = _f[1];
|
|
13
|
+
var mutation = useCreateOnlineBankDepositMutation({
|
|
14
|
+
onSuccess: function (data) {
|
|
15
|
+
invariant(data.vca);
|
|
16
|
+
setId(data.id);
|
|
17
|
+
setVca(data.vca);
|
|
18
|
+
setView('VCA');
|
|
19
|
+
},
|
|
20
|
+
onError: function (error) {
|
|
21
|
+
setView('FORM');
|
|
22
|
+
toaster.error({
|
|
23
|
+
description: error.message,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
onMutate: function (data) {
|
|
27
|
+
var _a;
|
|
28
|
+
setId(null);
|
|
29
|
+
setVca(null);
|
|
30
|
+
setPromo((_a = data.promo) !== null && _a !== void 0 ? _a : null);
|
|
31
|
+
setAmount(data.amount);
|
|
32
|
+
setView('LOADING');
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
var query = useDepositQuery(id !== null && id !== void 0 ? id : undefined, {
|
|
36
|
+
enabled: !!id,
|
|
37
|
+
refetchInterval: 5000,
|
|
38
|
+
});
|
|
39
|
+
useEffect(function () {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
if (((_a = query.data) === null || _a === void 0 ? void 0 : _a.status) === 'CONFIRMED' ||
|
|
42
|
+
((_b = query.data) === null || _b === void 0 ? void 0 : _b.status) === 'APPROVED') {
|
|
43
|
+
setView('SUCCESS');
|
|
44
|
+
}
|
|
45
|
+
}, [(_a = query.data) === null || _a === void 0 ? void 0 : _a.status]);
|
|
46
|
+
var generateVca = mutation.mutate;
|
|
47
|
+
var regenerateVca = function () {
|
|
48
|
+
invariant(amount);
|
|
49
|
+
mutation.mutate({
|
|
50
|
+
amount: amount.toString(),
|
|
51
|
+
promo: promo !== null && promo !== void 0 ? promo : undefined,
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var reset = function () {
|
|
55
|
+
setId(null);
|
|
56
|
+
setVca(null);
|
|
57
|
+
setPromo(null);
|
|
58
|
+
setAmount(null);
|
|
59
|
+
setView('FORM');
|
|
60
|
+
};
|
|
61
|
+
useEffect(function () {
|
|
62
|
+
return function () {
|
|
63
|
+
setId(null);
|
|
64
|
+
setVca(null);
|
|
65
|
+
setPromo(null);
|
|
66
|
+
setAmount(null);
|
|
67
|
+
setView('FORM');
|
|
68
|
+
};
|
|
69
|
+
}, []);
|
|
70
|
+
return {
|
|
71
|
+
vca: vca,
|
|
72
|
+
view: view,
|
|
73
|
+
generateVca: generateVca,
|
|
74
|
+
regenerateVca: regenerateVca,
|
|
75
|
+
reset: reset,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDeposit(): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QRPHDepositContext } from './QRPHDepositContext';
|
|
2
|
+
import { QRPHDepositForm } from './QRPHDepositForm';
|
|
3
|
+
import { QRPHDepositLoading } from './QRPHDepositLoading';
|
|
4
|
+
import { QRPHDepositQrCode } from './QRPHDepositQrCode';
|
|
5
|
+
import { QRPHDepositSuccess } from './QRPHDepositSuccess';
|
|
6
|
+
import { useQRPHDeposit } from './useQRPHDeposit';
|
|
7
|
+
export function QRPHDeposit() {
|
|
8
|
+
var context = useQRPHDeposit();
|
|
9
|
+
return (<QRPHDepositContext value={context}>
|
|
10
|
+
{context.view === 'FORM' && <QRPHDepositForm />}
|
|
11
|
+
{context.view === 'LOADING' && <QRPHDepositLoading />}
|
|
12
|
+
{context.view === 'SUCCESS' && <QRPHDepositSuccess />}
|
|
13
|
+
{(context.view === 'QR_CODE' || context.view === 'VERIFYING') && (<QRPHDepositQrCode />)}
|
|
14
|
+
</QRPHDepositContext>);
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const QRPHDepositContext: import("react").Context<{
|
|
2
|
+
view: "LOADING" | "FORM" | "SUCCESS" | "QR_CODE" | "VERIFYING";
|
|
3
|
+
qrCode: string | null;
|
|
4
|
+
verify: () => void;
|
|
5
|
+
generateQrCode: import("@tanstack/react-query").UseMutateFunction<import("@opexa/portal-sdk-core").Deposit, Error, {
|
|
6
|
+
amount: string;
|
|
7
|
+
promo?: string | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
}, unknown>;
|
|
10
|
+
regenerateQrCode: () => void;
|
|
11
|
+
reset: () => void;
|
|
12
|
+
} | null>;
|
|
13
|
+
export declare const useQRPHDepositContext: () => {
|
|
14
|
+
view: "LOADING" | "FORM" | "SUCCESS" | "QR_CODE" | "VERIFYING";
|
|
15
|
+
qrCode: string | null;
|
|
16
|
+
verify: () => void;
|
|
17
|
+
generateQrCode: import("@tanstack/react-query").UseMutateFunction<import("@opexa/portal-sdk-core").Deposit, Error, {
|
|
18
|
+
amount: string;
|
|
19
|
+
promo?: string | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
}, unknown>;
|
|
22
|
+
regenerateQrCode: () => void;
|
|
23
|
+
reset: () => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
export var QRPHDepositContext = createContext(null);
|
|
4
|
+
export var useQRPHDepositContext = function () {
|
|
5
|
+
var context = useContext(QRPHDepositContext);
|
|
6
|
+
invariant(context);
|
|
7
|
+
return context;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDepositForm(): import("react").JSX.Element;
|
|
@@ -0,0 +1,256 @@
|
|
|
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 { useAvailablePromosQuery } from '../../../../hooks/useAvailablePromosQuery/useAvailablePromosQuery';
|
|
43
|
+
import { useDepositsCountQuery } from '../../../../hooks/useDepositsCountQuery/useDepositsCountQuery';
|
|
44
|
+
import { useDisclosure } from '../../../../hooks/useDisclosure';
|
|
45
|
+
import { usePaymentSettingsQuery } from '../../../../hooks/usePaymentSettingsQuery/usePaymentSettingsQuery';
|
|
46
|
+
import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon';
|
|
47
|
+
import { ChevronDownIcon } from '../../../../icons/ChevronDownIcon';
|
|
48
|
+
import { ChevronUpIcon } from '../../../../icons/ChevronUpIcon';
|
|
49
|
+
import { XIcon } from '../../../../icons/XIcon';
|
|
50
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
51
|
+
import { parseDecimal } from '../../../../utils/parseDecimal';
|
|
52
|
+
import { AmountChoices } from '../../AmountChoices';
|
|
53
|
+
import { AvailablePromos } from '../../AvailablePromos';
|
|
54
|
+
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
55
|
+
export function QRPHDepositForm() {
|
|
56
|
+
var _this = this;
|
|
57
|
+
var _a, _b, _c;
|
|
58
|
+
var context = useQRPHDepositContext();
|
|
59
|
+
var disclosure = useDisclosure();
|
|
60
|
+
var depositsCountQuery = useDepositsCountQuery();
|
|
61
|
+
var depositsCount = (_a = depositsCountQuery.data) !== null && _a !== void 0 ? _a : 0;
|
|
62
|
+
var paymentSettingsQuery = usePaymentSettingsQuery();
|
|
63
|
+
var paymentSettings = paymentSettingsQuery.data;
|
|
64
|
+
var gatewaySettings = paymentSettings === null || paymentSettings === void 0 ? void 0 : paymentSettings.qrphDepositGatewaySettings;
|
|
65
|
+
var maximumAmount = parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.maximumAmount, 0);
|
|
66
|
+
var minimumAmount = depositsCount <= 0
|
|
67
|
+
? parseDecimal((_b = paymentSettingsQuery.data) === null || _b === void 0 ? void 0 : _b.minimumFirstDepositAmount, 0)
|
|
68
|
+
: parseDecimal(gatewaySettings === null || gatewaySettings === void 0 ? void 0 : gatewaySettings.minimumAmount, 0);
|
|
69
|
+
var promosQuery = useAvailablePromosQuery();
|
|
70
|
+
var promos = (_c = promosQuery.data) !== null && _c !== void 0 ? _c : [];
|
|
71
|
+
var definition = z
|
|
72
|
+
.object({
|
|
73
|
+
amount: z.string().superRefine(function (val, ctx) {
|
|
74
|
+
var n = parseDecimal(val, 0);
|
|
75
|
+
if (n < minimumAmount) {
|
|
76
|
+
ctx.addIssue({
|
|
77
|
+
type: 'number',
|
|
78
|
+
code: z.ZodIssueCode.too_small,
|
|
79
|
+
inclusive: true,
|
|
80
|
+
minimum: minimumAmount,
|
|
81
|
+
message: "Minimum amount is ".concat(minimumAmount.toLocaleString()),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (n > maximumAmount) {
|
|
85
|
+
ctx.addIssue({
|
|
86
|
+
type: 'number',
|
|
87
|
+
code: z.ZodIssueCode.too_big,
|
|
88
|
+
inclusive: true,
|
|
89
|
+
maximum: maximumAmount,
|
|
90
|
+
message: "Maximum amount is ".concat(maximumAmount.toLocaleString()),
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
94
|
+
promo: z.string().optional().nullable(),
|
|
95
|
+
})
|
|
96
|
+
.superRefine(function (value, ctx) {
|
|
97
|
+
var promo = promos.find(function (o) { return o.id === value.promo; });
|
|
98
|
+
var promoMinAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.minimumDepositAmount, 0);
|
|
99
|
+
var promoMaxAmount = parseDecimal(promo === null || promo === void 0 ? void 0 : promo.maximumDepositAmount, 0);
|
|
100
|
+
var amount = parseDecimal(value.amount, 0);
|
|
101
|
+
if (promo && amount < promoMinAmount) {
|
|
102
|
+
ctx.addIssue({
|
|
103
|
+
path: ['amount'],
|
|
104
|
+
code: z.ZodIssueCode.custom,
|
|
105
|
+
message: "Minimum amount for this promo is ".concat(promoMinAmount.toLocaleString()),
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (promo && amount > promoMaxAmount) {
|
|
109
|
+
ctx.addIssue({
|
|
110
|
+
path: ['amount'],
|
|
111
|
+
code: z.ZodIssueCode.custom,
|
|
112
|
+
message: "Maximum amount for this promo is ".concat(promoMaxAmount),
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
var form = useForm({
|
|
117
|
+
mode: 'all',
|
|
118
|
+
resolver: zodResolver(definition),
|
|
119
|
+
defaultValues: {
|
|
120
|
+
amount: '0',
|
|
121
|
+
promo: null,
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
useEffect(function () {
|
|
125
|
+
if (minimumAmount) {
|
|
126
|
+
form.reset({
|
|
127
|
+
amount: minimumAmount.toString(),
|
|
128
|
+
promo: null,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}, [form, minimumAmount]);
|
|
132
|
+
var handleSubmit = form.handleSubmit(function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
133
|
+
var _a;
|
|
134
|
+
return __generator(this, function (_b) {
|
|
135
|
+
context.generateQrCode({
|
|
136
|
+
amount: data.amount.toString(),
|
|
137
|
+
promo: (_a = data.promo) !== null && _a !== void 0 ? _a : undefined,
|
|
138
|
+
}, {
|
|
139
|
+
onSuccess: function () {
|
|
140
|
+
form.reset();
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
return [2 /*return*/];
|
|
144
|
+
});
|
|
145
|
+
}); });
|
|
146
|
+
return (<form onSubmit={handleSubmit} noValidate>
|
|
147
|
+
<Controller control={form.control} name="amount" render={function (o) {
|
|
148
|
+
var _a;
|
|
149
|
+
return (<Field.Root invalid={!!form.formState.errors.amount}>
|
|
150
|
+
<NumberInput.Root min={0} step={1} value={o.field.value} onValueChange={function (details) {
|
|
151
|
+
o.field.onChange(details.value);
|
|
152
|
+
}} formatOptions={{
|
|
153
|
+
maximumFractionDigits: 2,
|
|
154
|
+
minimumFractionDigits: 0,
|
|
155
|
+
}} allowMouseWheel>
|
|
156
|
+
<NumberInput.Label>
|
|
157
|
+
Enter amount you want to deposit
|
|
158
|
+
</NumberInput.Label>
|
|
159
|
+
<NumberInput.Control>
|
|
160
|
+
<NumberInput.Input />
|
|
161
|
+
<NumberInput.IncrementTrigger>
|
|
162
|
+
<ChevronUpIcon />
|
|
163
|
+
</NumberInput.IncrementTrigger>
|
|
164
|
+
<NumberInput.DecrementTrigger>
|
|
165
|
+
<ChevronDownIcon />
|
|
166
|
+
</NumberInput.DecrementTrigger>
|
|
167
|
+
</NumberInput.Control>
|
|
168
|
+
</NumberInput.Root>
|
|
169
|
+
<Field.ErrorText>
|
|
170
|
+
{(_a = form.formState.errors.amount) === null || _a === void 0 ? void 0 : _a.message}
|
|
171
|
+
</Field.ErrorText>
|
|
172
|
+
</Field.Root>);
|
|
173
|
+
}}/>
|
|
174
|
+
|
|
175
|
+
<AmountChoices value={parseDecimal(form.watch('amount'), 0)} onChange={function (value) {
|
|
176
|
+
form.setValue('amount', value.toString(), {
|
|
177
|
+
shouldTouch: true,
|
|
178
|
+
shouldDirty: true,
|
|
179
|
+
shouldValidate: true,
|
|
180
|
+
});
|
|
181
|
+
}} min={minimumAmount} max={maximumAmount} className="mt-xl"/>
|
|
182
|
+
|
|
183
|
+
<Controller control={form.control} name="promo" render={function (o) { return (<AvailablePromos className="mt-4xl" value={o.field.value} onChange={o.field.onChange}/>); }}/>
|
|
184
|
+
|
|
185
|
+
<p className="mt-4xl text-xs">
|
|
186
|
+
Upon clicking the deposit button, you agree to the{' '}
|
|
187
|
+
<button type="button" className="underline underline-offset-2">
|
|
188
|
+
Terms of Use and Privacy Policy
|
|
189
|
+
</button>
|
|
190
|
+
.
|
|
191
|
+
</p>
|
|
192
|
+
<Button type="submit" className="mt-4.5" onClick={function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
193
|
+
var ok;
|
|
194
|
+
return __generator(this, function (_a) {
|
|
195
|
+
switch (_a.label) {
|
|
196
|
+
case 0: return [4 /*yield*/, form.trigger('amount')];
|
|
197
|
+
case 1:
|
|
198
|
+
ok = _a.sent();
|
|
199
|
+
if (!ok)
|
|
200
|
+
return [2 /*return*/];
|
|
201
|
+
if (promos.length <= 0)
|
|
202
|
+
return [2 /*return*/];
|
|
203
|
+
if (form.getValues('promo'))
|
|
204
|
+
return [2 /*return*/];
|
|
205
|
+
e.preventDefault();
|
|
206
|
+
disclosure.setOpen(true);
|
|
207
|
+
return [2 /*return*/];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}); }}>
|
|
211
|
+
Deposit
|
|
212
|
+
</Button>
|
|
213
|
+
|
|
214
|
+
<AlertDialog.Root role="alertdialog" open={disclosure.open} onOpenChange={function (details) {
|
|
215
|
+
disclosure.setOpen(details.open);
|
|
216
|
+
}} lazyMount unmountOnExit closeOnEscape={false} closeOnInteractOutside={false}>
|
|
217
|
+
<Portal>
|
|
218
|
+
<AlertDialog.Backdrop className="!z-[calc(var(--z-dialog)+10)]"/>
|
|
219
|
+
<AlertDialog.Positioner className="!z-[calc(var(--z-dialog)+25)]">
|
|
220
|
+
<AlertDialog.Content>
|
|
221
|
+
<AlertDialog.Header>
|
|
222
|
+
<div className="flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]">
|
|
223
|
+
<AlertCircleIcon />
|
|
224
|
+
</div>
|
|
225
|
+
<AlertDialog.CloseTrigger>
|
|
226
|
+
<XIcon />
|
|
227
|
+
</AlertDialog.CloseTrigger>
|
|
228
|
+
</AlertDialog.Header>
|
|
229
|
+
<AlertDialog.Body>
|
|
230
|
+
<AlertDialog.Title>
|
|
231
|
+
Submit deposit request without promo?
|
|
232
|
+
</AlertDialog.Title>
|
|
233
|
+
<AlertDialog.Description>
|
|
234
|
+
You haven’t selected a promo. Are you sure you want to
|
|
235
|
+
proceed without one?
|
|
236
|
+
</AlertDialog.Description>
|
|
237
|
+
</AlertDialog.Body>
|
|
238
|
+
<AlertDialog.Footer>
|
|
239
|
+
<Button variant="outline" colorScheme="gray" onClick={function () {
|
|
240
|
+
disclosure.setOpen(false);
|
|
241
|
+
}}>
|
|
242
|
+
Cancel
|
|
243
|
+
</Button>
|
|
244
|
+
<Button onClick={function () {
|
|
245
|
+
handleSubmit();
|
|
246
|
+
disclosure.setOpen(false);
|
|
247
|
+
}}>
|
|
248
|
+
Proceed
|
|
249
|
+
</Button>
|
|
250
|
+
</AlertDialog.Footer>
|
|
251
|
+
</AlertDialog.Content>
|
|
252
|
+
</AlertDialog.Positioner>
|
|
253
|
+
</Portal>
|
|
254
|
+
</AlertDialog.Root>
|
|
255
|
+
</form>);
|
|
256
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDepositLoading(): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpinnerIcon } from '../../../../icons/SpinnerIcon';
|
|
2
|
+
export function QRPHDepositLoading() {
|
|
3
|
+
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
4
|
+
<SpinnerIcon className="mx-auto size-8 lg:size-10"/>
|
|
5
|
+
<p className="mt-5 text-center text-lg font-semibold lg:text-xl">
|
|
6
|
+
Generating QR Code
|
|
7
|
+
</p>
|
|
8
|
+
<p className="text-gray-700 mt-3 text-center text-sm lg:text-base">
|
|
9
|
+
Please hold tight as we verify the account details and amount. Once
|
|
10
|
+
verified, a QRPH code will be displayed for you to scan and complete the
|
|
11
|
+
transaction.
|
|
12
|
+
</p>
|
|
13
|
+
</div>);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDepositQrCode(): import("react").JSX.Element;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Portal, QrCode } from '@ark-ui/react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import { QrCode02Icon } from '../../../../icons/QrCode02Icon';
|
|
4
|
+
import { SpinnerIcon } from '../../../../icons/SpinnerIcon';
|
|
5
|
+
import { XIcon } from '../../../../icons/XIcon';
|
|
6
|
+
import qrphIcon from '../../../../images/qrph-icon.png';
|
|
7
|
+
import { Button, Dialog } from '../../../../ui';
|
|
8
|
+
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
9
|
+
export function QRPHDepositQrCode() {
|
|
10
|
+
var _a;
|
|
11
|
+
var context = useQRPHDepositContext();
|
|
12
|
+
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
13
|
+
<p className="mt-5 text-center text-lg font-semibold lg:text-xl">
|
|
14
|
+
QR Code
|
|
15
|
+
</p>
|
|
16
|
+
<p className="text-gray-700 mt-3 text-center text-sm lg:text-base">
|
|
17
|
+
Scan the QR code below with your banking app, or upload it to complete
|
|
18
|
+
your deposit.
|
|
19
|
+
</p>
|
|
20
|
+
<QrCode.Root value={(_a = context.qrCode) !== null && _a !== void 0 ? _a : ''} className="border-gray-200 mx-auto mt-6 w-[12.5rem] rounded-lg border bg-white p-5 lg:w-[13rem] lg:p-6">
|
|
21
|
+
<div className="relative">
|
|
22
|
+
<QrCode.Frame className="border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border">
|
|
23
|
+
<QrCode.Pattern />
|
|
24
|
+
</QrCode.Frame>
|
|
25
|
+
<QrCode.Overlay className="bg-white p-0.5">
|
|
26
|
+
<Image src={qrphIcon} alt="" className="size-8" width={40} height={40}/>
|
|
27
|
+
</QrCode.Overlay>
|
|
28
|
+
</div>
|
|
29
|
+
<QrCode.DownloadTrigger fileName={"qrcode-".concat(new Date().getTime())} mimeType="image/png" className="text-gray-900 mt-5 block w-full text-center text-sm font-semibold">
|
|
30
|
+
Download QR Code
|
|
31
|
+
</QrCode.DownloadTrigger>
|
|
32
|
+
</QrCode.Root>
|
|
33
|
+
|
|
34
|
+
{context.view === 'QR_CODE' && (<div className="mt-6 flex flex-col gap-4 lg:flex-row">
|
|
35
|
+
<Button size="sm" variant="outline" colorScheme="gray" onClick={function () {
|
|
36
|
+
context.reset();
|
|
37
|
+
}}>
|
|
38
|
+
Generate New QR Code
|
|
39
|
+
</Button>
|
|
40
|
+
<Button size="sm" onClick={function () {
|
|
41
|
+
context.verify();
|
|
42
|
+
}}>
|
|
43
|
+
Confirm Deposit
|
|
44
|
+
</Button>
|
|
45
|
+
</div>)}
|
|
46
|
+
|
|
47
|
+
{context.view === 'VERIFYING' && (<div className="border-gray-200 mt-6 rounded-lg border bg-white p-4 lg:p-6">
|
|
48
|
+
<SpinnerIcon className="mx-auto size-6 lg:size-8"/>
|
|
49
|
+
<p className="mt-5 text-center font-semibold lg:text-lg">
|
|
50
|
+
Processing your deposit
|
|
51
|
+
</p>
|
|
52
|
+
<p className="text-gray-700 mx-auto mt-2 text-center text-xs lg:text-sm">
|
|
53
|
+
Your deposit is being processed. <br />
|
|
54
|
+
Please hold tight as we verify the account details and amount.
|
|
55
|
+
</p>
|
|
56
|
+
</div>)}
|
|
57
|
+
|
|
58
|
+
<Instruction />
|
|
59
|
+
</div>);
|
|
60
|
+
}
|
|
61
|
+
function Instruction() {
|
|
62
|
+
return (<p className="text-gray-500 mt-6 text-center text-xs">
|
|
63
|
+
Need help using the QR Code?{' '}
|
|
64
|
+
<Dialog.Root lazyMount unmountOnExit>
|
|
65
|
+
<Dialog.Trigger className="text-blue-500">
|
|
66
|
+
See instructions
|
|
67
|
+
</Dialog.Trigger>
|
|
68
|
+
<Portal>
|
|
69
|
+
<Dialog.Backdrop className="!z-[calc(var(--z-dialog)+2)]"/>
|
|
70
|
+
<Dialog.Positioner className="!z-[calc(var(--z-dialog)+3)] flex items-center justify-center">
|
|
71
|
+
<Dialog.Content className="mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]">
|
|
72
|
+
<Dialog.CloseTrigger>
|
|
73
|
+
<XIcon />
|
|
74
|
+
</Dialog.CloseTrigger>
|
|
75
|
+
|
|
76
|
+
<Dialog.Body>
|
|
77
|
+
<div className="flex items-center gap-xl">
|
|
78
|
+
<div className="border-gray-200 flex size-11 items-center justify-center rounded-lg border">
|
|
79
|
+
<QrCode02Icon className="text-gray-600 size-6"/>
|
|
80
|
+
</div>
|
|
81
|
+
<Dialog.Title className="text-lg font-semibold">
|
|
82
|
+
How to Use the QR Code for Payment
|
|
83
|
+
</Dialog.Title>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<Dialog.Description className="mt-5">
|
|
87
|
+
Follow these simple steps to complete your transaction:
|
|
88
|
+
</Dialog.Description>
|
|
89
|
+
|
|
90
|
+
<ol className="mt-3 list-inside list-decimal space-y-3">
|
|
91
|
+
<li>
|
|
92
|
+
Open your preferred banking or EMI mobile app and select
|
|
93
|
+
'Transfer Money' or 'Pay via QR'
|
|
94
|
+
</li>
|
|
95
|
+
<li>
|
|
96
|
+
Scan or upload the generated QR Ph code. If prompted by the
|
|
97
|
+
app, enter the amount to be sent.
|
|
98
|
+
</li>
|
|
99
|
+
<li>Proceed with the transfer or payment.</li>
|
|
100
|
+
</ol>
|
|
101
|
+
</Dialog.Body>
|
|
102
|
+
</Dialog.Content>
|
|
103
|
+
</Dialog.Positioner>
|
|
104
|
+
</Portal>
|
|
105
|
+
</Dialog.Root>
|
|
106
|
+
</p>);
|
|
107
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDepositSuccess(): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CheckCircleBrokenIcon } from '../../../../icons/CheckCircleBrokenIcon';
|
|
2
|
+
import { Button } from '../../../../ui';
|
|
3
|
+
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
4
|
+
export function QRPHDepositSuccess() {
|
|
5
|
+
var context = useQRPHDepositContext();
|
|
6
|
+
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
7
|
+
<CheckCircleBrokenIcon className="text-green-600 mx-auto size-8 lg:size-10"/>
|
|
8
|
+
<p className="mt-5 text-center text-lg font-semibold lg:text-xl">
|
|
9
|
+
Deposit Successful!
|
|
10
|
+
</p>
|
|
11
|
+
<p className="text-gray-700 mt-3 text-center text-sm lg:text-base">
|
|
12
|
+
Your funds have been successfully added and are now ready to use in your
|
|
13
|
+
account.
|
|
14
|
+
</p>
|
|
15
|
+
<Button size="sm" variant="outline" colorScheme="gray" className="mx-auto mt-6 w-fit" onClick={function () { return context.reset(); }}>
|
|
16
|
+
Generate New QR Code
|
|
17
|
+
</Button>
|
|
18
|
+
</div>);
|
|
19
|
+
}
|