@opexa/portal-components 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.js +54 -54
- package/dist/client/hooks/useAccountQuery.js +4 -4
- package/dist/client/hooks/useAuthenticateMutation.js +2 -2
- package/dist/client/hooks/useAvailablePromosQuery.js +4 -4
- package/dist/client/hooks/useBetRecordsQuery.js +4 -4
- package/dist/client/hooks/useBonusesQuery.js +4 -4
- package/dist/client/hooks/useCashbacksQuery.js +2 -2
- package/dist/client/hooks/useCreateGCashDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateGameSessionMutation.js +3 -3
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +3 -3
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +3 -3
- package/dist/client/hooks/useDepositQuery.js +4 -4
- package/dist/client/hooks/useDepositRecordsQuery.js +4 -4
- package/dist/client/hooks/useDepositsCountQuery.js +4 -4
- package/dist/client/hooks/useDisclosure.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +3 -3
- package/dist/client/hooks/useFavoriteGamesQuery.js +4 -4
- package/dist/client/hooks/useGamesQuery.js +2 -2
- package/dist/client/hooks/useInstapayBankListQuery.js +4 -4
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +4 -4
- package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
- package/dist/client/hooks/useJackpotsQuery.js +2 -2
- package/dist/client/hooks/useLocaleInfo.js +2 -2
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +3 -3
- package/dist/client/hooks/useMemberVerificationQuery.js +4 -4
- package/dist/client/hooks/useMessagesQuery.js +4 -4
- package/dist/client/hooks/useMobileNumberParser.js +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +4 -4
- package/dist/client/hooks/usePlatformQuery.js +2 -2
- package/dist/client/hooks/useProfileCompletionQuery.js +4 -4
- package/dist/client/hooks/usePromoQuery.js +2 -2
- package/dist/client/hooks/usePromosQuery.js +2 -2
- package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
- package/dist/client/hooks/useSessionQuery.js +2 -2
- package/dist/client/hooks/useSignInMutation.js +2 -2
- package/dist/client/hooks/useSignOutMutation.js +2 -2
- package/dist/client/hooks/useSignUpMutation.js +2 -2
- package/dist/client/hooks/useTopWinsQuery.js +2 -2
- package/dist/client/hooks/useTournamentsQuery.js +2 -2
- package/dist/client/hooks/useTransactionRecordsQuery.js +4 -4
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +3 -3
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +4 -4
- package/dist/client/hooks/useWalletQuery.js +4 -4
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +4 -4
- package/dist/client/services/authenticate.js +1 -1
- package/dist/client/services/index.js +4 -4
- package/dist/client/services/signIn.js +1 -1
- package/dist/client/utils/createRecipeContext.jsx +1 -1
- package/dist/client/utils/index.js +1 -1
- package/dist/components/Account/Account.jsx +5 -5
- package/dist/components/AccountInfo/AccountInfo.jsx +3 -3
- package/dist/components/AccountSecurity/AccountSecurity.jsx +3 -3
- package/dist/components/Banner/Banner.jsx +1 -1
- package/dist/components/BetRecords/BetRecords.jsx +4 -4
- package/dist/components/Bonus/Bonus.client.jsx +2 -2
- package/dist/components/Bonuses/Bonuses.jsx +2 -2
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +3 -3
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +5 -5
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +4 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +2 -2
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +4 -4
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +1 -1
- package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +4 -4
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.jsx +5 -5
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -3
- package/dist/components/Disclaimer/Disclaimer.jsx +1 -1
- package/dist/components/Disclaimer/useDisclaimer.jsx +2 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.jsx +5 -5
- package/dist/components/FavoriteGames/FavoriteGames.jsx +1 -1
- package/dist/components/GameLaunch/GameLaunch.jsx +3 -3
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +2 -2
- package/dist/components/GameProviders/GameProviders.jsx +2 -2
- package/dist/components/Games/Games.client.jsx +4 -4
- package/dist/components/Games/Games.jsx +1 -1
- package/dist/components/GamesSearch/GamesSearch.jsx +4 -4
- package/dist/components/GamesSearch/GamesSearchTrigger.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.client.jsx +3 -3
- package/dist/components/JackpotCounter/JackpotCounter.jsx +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +4 -4
- package/dist/components/Jackpots/JackpotGameProviders.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemDesktop.jsx +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.jsx +3 -3
- package/dist/components/Jackpots/JackpotRules.jsx +2 -2
- package/dist/components/Jackpots/Jackpots.jsx +1 -1
- package/dist/components/Jackpots/useJackpotItemData.jsx +3 -3
- package/dist/components/KYC/KYC.jsx +2 -2
- package/dist/components/KYC/KYCTrigger.jsx +1 -1
- package/dist/components/KYC/Step1.jsx +1 -1
- package/dist/components/KYC/Step2.jsx +2 -2
- package/dist/components/KYC/Step3.jsx +2 -2
- package/dist/components/KYC/StepIndicator.jsx +1 -1
- package/dist/components/KYC/UploadDocument.jsx +2 -2
- package/dist/components/KYC/UploadSelfie.jsx +2 -2
- package/dist/components/KYC/useKYC.js +1 -1
- package/dist/components/Messages/MessageItem.jsx +2 -2
- package/dist/components/Messages/MessagePopup.jsx +4 -4
- package/dist/components/Messages/Messages.jsx +3 -3
- package/dist/components/Messages/MessagesTrigger.jsx +1 -1
- package/dist/components/Messages/utils.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.client.jsx +4 -4
- package/dist/components/PortalProvider/PortalProvider.jsx +2 -2
- package/dist/components/Promo/PromoContent.jsx +2 -2
- package/dist/components/Promos/PromoCarousel.jsx +3 -3
- package/dist/components/Promos/PromoGrid.jsx +2 -2
- package/dist/components/Promos/PromoItem.jsx +1 -1
- package/dist/components/Protected/Protected.jsx +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +2 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuest.jsx +2 -2
- package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +2 -2
- package/dist/components/SignIn/SignIn.jsx +3 -3
- package/dist/components/SignIn/SignInForm.jsx +4 -4
- package/dist/components/SignIn/SignInTrigger.jsx +1 -1
- package/dist/components/SignUp/SignUp.jsx +3 -3
- package/dist/components/SignUp/SignUpForm.jsx +4 -4
- package/dist/components/SignUp/SignUpTrigger.jsx +1 -1
- package/dist/components/TopWins/TopWins.client.jsx +2 -2
- package/dist/components/TopWins/TopWins.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.client.jsx +3 -3
- package/dist/components/TournamentCounter/TournamentCounter.jsx +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentGameProviders.jsx +2 -2
- package/dist/components/Tournaments/TournamentItem.jsx +3 -3
- package/dist/components/Tournaments/TournamentItemMobile.jsx +4 -4
- package/dist/components/Tournaments/TournamentRules.jsx +2 -2
- package/dist/components/Tournaments/Tournaments.jsx +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/TableFilters.jsx +4 -4
- package/dist/components/TransactionRecords/TransactionRecords.jsx +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +4 -4
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +4 -4
- package/dist/components/index.js +32 -32
- package/dist/handlers.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/server/services/authenticate.js +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/index.js +4 -4
- package/dist/server/services/signIn.js +1 -1
- package/dist/server/services/signOut.js +1 -1
- package/dist/server/utils/index.js +24 -24
- package/dist/server/utils/prefetchAccountQuery.js +3 -3
- package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -3
- package/dist/server/utils/prefetchBetRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchBonusesQuery.js +3 -3
- package/dist/server/utils/prefetchCashbacksQuery.js +2 -2
- package/dist/server/utils/prefetchDepositQuery.js +3 -3
- package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchDepositsCountQuery.js +3 -3
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +3 -3
- package/dist/server/utils/prefetchGamesQuery.js +2 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -3
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -3
- package/dist/server/utils/prefetchJackpotsQuery.js +2 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -3
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -3
- package/dist/server/utils/prefetchPlatformQuery.js +2 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -3
- package/dist/server/utils/prefetchPromoQuery.js +2 -2
- package/dist/server/utils/prefetchPromosQuery.js +2 -2
- package/dist/server/utils/prefetchSessionQuery.js +2 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +2 -2
- package/dist/server/utils/prefetchTournamentsQuery.js +2 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -3
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -3
- package/dist/server/utils/prefetchWalletQuery.js +3 -3
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -3
- package/dist/third-parties/index.js +2 -2
- package/dist/ui/AlertDialog/AlertDialog.jsx +2 -2
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/Avatar/Avatar.jsx +2 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Badge/Badge.jsx +3 -3
- package/dist/ui/Badge/badge.recipe.js +2 -2
- package/dist/ui/Button/Button.jsx +2 -2
- package/dist/ui/Checkbox/Checkbox.jsx +2 -2
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Clipboard/Clipboard.jsx +2 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Collapsible/Collapsible.jsx +2 -2
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
- package/dist/ui/Combobox/Combobox.jsx +2 -2
- package/dist/ui/Combobox/combobox.recipe.js +1 -1
- package/dist/ui/DatePicker/DatePicker.jsx +2 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/Dialog/Dialog.jsx +2 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Drawer/Drawer.jsx +2 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Field/Field.jsx +2 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/IconButton/IconButton.jsx +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/NumberInput/NumberInput.jsx +2 -2
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/PasswordInput/PasswordInput.jsx +2 -2
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
- package/dist/ui/PinInput/PinInput.jsx +2 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/Popover/Popover.jsx +2 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Progress/Progress.jsx +2 -2
- package/dist/ui/Progress/progress.recipe.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +2 -2
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/Select/Select.jsx +2 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Table/Table.jsx +2 -2
- package/dist/ui/Table/table.recipe.js +2 -2
- package/dist/ui/Tabs/Tabs.jsx +2 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/index.js +24 -24
- package/dist/utils/formatNumber.js +1 -1
- package/dist/utils/getGameImageUrl.js +1 -1
- package/dist/utils/index.js +11 -11
- package/package.json +2 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getProfileCompletion, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getProfileCompletionQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getProfileCompletionQueryKey, getQueryClient, getSessionQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useProfileCompletionQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPromo } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getPromoQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getPromoQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const usePromoQuery = (id, config) => {
|
|
6
6
|
return useQuery({
|
|
7
7
|
...config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPromos } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getPromosQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getPromosQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const usePromosQuery = (config) => {
|
|
6
6
|
return useQuery({
|
|
7
7
|
...config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sendVerificationCode, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getSendVerificationCodeMutationKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getSendVerificationCodeMutationKey } from '../../utils/index.js';
|
|
5
5
|
export const useSendVerificationCodeMutation = (config) => {
|
|
6
6
|
return useMutation({
|
|
7
7
|
...config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
|
-
import { getSessionQueryKey } from '../../utils';
|
|
3
|
-
import { getSession } from '../services';
|
|
2
|
+
import { getSessionQueryKey } from '../../utils/index.js';
|
|
3
|
+
import { getSession } from '../services/index.js';
|
|
4
4
|
export const useSessionQuery = (config) => {
|
|
5
5
|
return useQuery({
|
|
6
6
|
staleTime: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import { getQueryClient, getSessionQueryKey, getSignInMutationKey, } from '../../utils';
|
|
3
|
-
import { signIn } from '../services';
|
|
2
|
+
import { getQueryClient, getSessionQueryKey, getSignInMutationKey, } from '../../utils/index.js';
|
|
3
|
+
import { signIn } from '../services/index.js';
|
|
4
4
|
export const useSignInMutation = (config) => {
|
|
5
5
|
const queryClient = getQueryClient();
|
|
6
6
|
return useMutation({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
|
-
import { getQueryClient, getSessionQueryKey, getSignOutMutationKey, } from '../../utils';
|
|
3
|
-
import { signOut } from '../services';
|
|
2
|
+
import { getQueryClient, getSessionQueryKey, getSignOutMutationKey, } from '../../utils/index.js';
|
|
3
|
+
import { signOut } from '../services/index.js';
|
|
4
4
|
export const useSignOutMutation = (config) => {
|
|
5
5
|
const queryClient = getQueryClient();
|
|
6
6
|
return useMutation({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerMemberAccountViaMobile, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
|
-
import { BYPASS_RECAPTCHA, ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getSignUpMutationKey } from '../../utils';
|
|
3
|
+
import { BYPASS_RECAPTCHA, ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getSignUpMutationKey } from '../../utils/index.js';
|
|
5
5
|
export const useSignUpMutation = (config) => {
|
|
6
6
|
return useMutation({
|
|
7
7
|
...config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTopWins } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getTopWinsQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getTopWinsQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useTopWinsQuery = (config) => {
|
|
6
6
|
return useQuery({
|
|
7
7
|
...config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTournaments, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
4
|
-
import { getTournamentsQueryKey } from '../../utils';
|
|
3
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
4
|
+
import { getTournamentsQueryKey } from '../../utils/index.js';
|
|
5
5
|
export const useTournamentsQuery = (input, config) => {
|
|
6
6
|
const query = useInfiniteQuery({
|
|
7
7
|
...config,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getTransactionRecords, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getQueryClient, getSessionQueryKey, getTransactionRecordsQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getQueryClient, getSessionQueryKey, getTransactionRecordsQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useTransactionRecordsQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { unmarkGameAsFavorite } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useMutation } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { getSession } from '../../client/services';
|
|
5
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
6
|
-
import { getFavoriteGamesQueryKey, getGamesQueryKey, getQueryClient, getSessionQueryKey, getUnmarkGameAsFavoriteMutationKey, } from '../../utils';
|
|
4
|
+
import { getSession } from '../../client/services/index.js';
|
|
5
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
6
|
+
import { getFavoriteGamesQueryKey, getGamesQueryKey, getQueryClient, getSessionQueryKey, getUnmarkGameAsFavoriteMutationKey, } from '../../utils/index.js';
|
|
7
7
|
export const useUnmarkGameAsFavoriteMutation = (config) => {
|
|
8
8
|
const queryClient = getQueryClient();
|
|
9
9
|
const mutation = useMutation({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getUnreadMessagesCount, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getQueryClient, getSessionQueryKey, getUnreadMessagesCountQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getQueryClient, getSessionQueryKey, getUnreadMessagesCountQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useUnreadMessagesCountQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getWallet } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getQueryClient, getSessionQueryKey, getWalletQueryKey } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getQueryClient, getSessionQueryKey, getWalletQueryKey } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useWalletQuery = (config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getWithdrawalRecords, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
3
3
|
import invariant from 'tiny-invariant';
|
|
4
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
5
|
-
import { getQueryClient, getSessionQueryKey, getWithdrawalRecordsQueryKey, } from '../../utils';
|
|
6
|
-
import { getSession } from '../services';
|
|
7
|
-
import { useSessionQuery } from './useSessionQuery';
|
|
4
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
5
|
+
import { getQueryClient, getSessionQueryKey, getWithdrawalRecordsQueryKey, } from '../../utils/index.js';
|
|
6
|
+
import { getSession } from '../services/index.js';
|
|
7
|
+
import { useSessionQuery } from './useSessionQuery.js';
|
|
8
8
|
export const useWithdrawalRecordsQuery = (input, config) => {
|
|
9
9
|
const queryClient = getQueryClient();
|
|
10
10
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './authenticate';
|
|
2
|
-
export * from './getSession';
|
|
3
|
-
export * from './signIn';
|
|
4
|
-
export * from './signOut';
|
|
1
|
+
export * from './authenticate.js';
|
|
2
|
+
export * from './getSession.js';
|
|
3
|
+
export * from './signIn.js';
|
|
4
|
+
export * from './signOut.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './createRecipeContext';
|
|
2
|
-
export * from './toaster';
|
|
2
|
+
export * from './toaster.js';
|
|
@@ -3,12 +3,12 @@ import { Portal } from '@ark-ui/react';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useAccountQuery, useGlobalStore, useLocaleInfo, useSignOutMutation, useUnreadMessagesCountQuery, useWalletQuery, } from '../../client/hooks';
|
|
7
|
-
import { AlertCircleIcon, ChevronLeftIcon, ChevronRightIcon, CoinsStacked02Icon, CoinsSwap02Icon, CreditCard02Icon, FileCheck02Icon, Gift01Icon, Lock01Icon, Logout01Icon, Settings02Icon, User01Icon, XIcon, } from '../../icons';
|
|
6
|
+
import { useAccountQuery, useGlobalStore, useLocaleInfo, useSignOutMutation, useUnreadMessagesCountQuery, useWalletQuery, } from '../../client/hooks/index.js';
|
|
7
|
+
import { AlertCircleIcon, ChevronLeftIcon, ChevronRightIcon, CoinsStacked02Icon, CoinsSwap02Icon, CreditCard02Icon, FileCheck02Icon, Gift01Icon, Lock01Icon, Logout01Icon, Settings02Icon, User01Icon, XIcon, } from '../../icons/index.js';
|
|
8
8
|
import avatarPlaceholder from '../../images/placeholder-avatar.png';
|
|
9
|
-
import { Badge, Button, Drawer, IconButton, Popover, Presence } from '../../ui';
|
|
10
|
-
import { formatNumber, parseDecimal } from '../../utils';
|
|
11
|
-
import { accountRecipe } from './account.recipe';
|
|
9
|
+
import { Badge, Button, Drawer, IconButton, Popover, Presence } from '../../ui/index.js';
|
|
10
|
+
import { formatNumber, parseDecimal } from '../../utils/index.js';
|
|
11
|
+
import { accountRecipe } from './account.recipe.js';
|
|
12
12
|
const recipe = accountRecipe();
|
|
13
13
|
export function Account(props) {
|
|
14
14
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { format } from 'date-fns';
|
|
3
3
|
import { noop } from 'lodash-es';
|
|
4
4
|
import Image from 'next/image';
|
|
5
|
-
import { useAccountQuery, useLocaleInfo, useMobileNumberParser, } from '../../client/hooks';
|
|
6
|
-
import { FacebookIcon, GoogleIcon } from '../../icons';
|
|
5
|
+
import { useAccountQuery, useLocaleInfo, useMobileNumberParser, } from '../../client/hooks/index.js';
|
|
6
|
+
import { FacebookIcon, GoogleIcon } from '../../icons/index.js';
|
|
7
7
|
import avatar from '../../images/placeholder-avatar.png';
|
|
8
|
-
import { Button, Field, IconButton } from '../../ui';
|
|
8
|
+
import { Button, Field, IconButton } from '../../ui/index.js';
|
|
9
9
|
export function AccountInfo(props) {
|
|
10
10
|
const localeInfo = useLocaleInfo();
|
|
11
11
|
const accountQuery = useAccountQuery();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark, createListCollection, Portal } from '@ark-ui/react';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
import { useProfileCompletionQuery } from '../../client/hooks';
|
|
5
|
-
import { AlertCircleIcon, CheckIcon, CheckVerified02Icon, ChevronDownIcon, EyeIcon, EyeOffIcon, } from '../../icons';
|
|
6
|
-
import { Field, PasswordInput, Select } from '../../ui';
|
|
4
|
+
import { useProfileCompletionQuery } from '../../client/hooks/index.js';
|
|
5
|
+
import { AlertCircleIcon, CheckIcon, CheckVerified02Icon, ChevronDownIcon, EyeIcon, EyeOffIcon, } from '../../icons/index.js';
|
|
6
|
+
import { Field, PasswordInput, Select } from '../../ui/index.js';
|
|
7
7
|
export function AccountSecurity(props) {
|
|
8
8
|
const profileCompletionQuery = useProfileCompletionQuery();
|
|
9
9
|
const profileCompletion = profileCompletionQuery.data;
|
|
@@ -5,7 +5,7 @@ import Image from 'next/image';
|
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import { Fragment, useEffect, useState } from 'react';
|
|
7
7
|
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { dataAttr } from '../../utils';
|
|
8
|
+
import { dataAttr } from '../../utils/index.js';
|
|
9
9
|
export function Banner(props) {
|
|
10
10
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
11
11
|
loop: true,
|
|
@@ -5,10 +5,10 @@ import { endOfDay, format, startOfDay } from 'date-fns';
|
|
|
5
5
|
import { useReducer, useState } from 'react';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { useBetRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks';
|
|
9
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons';
|
|
10
|
-
import { Badge, DatePicker, IconButton, SegmentGroup, Select, Table, } from '../../ui';
|
|
11
|
-
import { capitalize, formatNumber } from '../../utils';
|
|
8
|
+
import { useBetRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks/index.js';
|
|
9
|
+
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
|
|
10
|
+
import { Badge, DatePicker, IconButton, SegmentGroup, Select, Table, } from '../../ui/index.js';
|
|
11
|
+
import { capitalize, formatNumber } from '../../utils/index.js';
|
|
12
12
|
import { Empty } from '../Empty';
|
|
13
13
|
export function BetRecords(props) {
|
|
14
14
|
const [tab, setTab] = useState('all');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import Link from 'next/link';
|
|
4
|
-
import { ChevronLeftIcon, ChevronRightIcon, StopWatchIcon } from '../../icons';
|
|
5
|
-
import { Badge, Collapsible, Progress, Prose } from '../../ui';
|
|
4
|
+
import { ChevronLeftIcon, ChevronRightIcon, StopWatchIcon } from '../../icons/index.js';
|
|
5
|
+
import { Badge, Collapsible, Progress, Prose } from '../../ui/index.js';
|
|
6
6
|
export function Bonus__client(props) {
|
|
7
7
|
return (<div className={props.className}>
|
|
8
8
|
<Link href={props.viewAllUrl ?? '/rewards'} className="text-button-tertiary-fg flex items-center gap-lg text-lg font-semibold">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import Link from 'next/link';
|
|
3
|
-
import { StopWatchIcon } from '../../icons';
|
|
4
|
-
import { Badge, Button, Progress, SegmentGroup } from '../../ui';
|
|
3
|
+
import { StopWatchIcon } from '../../icons/index.js';
|
|
4
|
+
import { Badge, Button, Progress, SegmentGroup } from '../../ui/index.js';
|
|
5
5
|
export function Bonuses(props) {
|
|
6
6
|
return (<div className={props.className}>
|
|
7
7
|
<h2 className="text-lg font-semibold">{props.heading ?? 'Rewards'}</h2>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
import { useControllableState, useLocaleInfo } from '../../client/hooks';
|
|
3
|
-
import { Button } from '../../ui';
|
|
4
|
-
import { dataAttr, formatNumber } from '../../utils';
|
|
2
|
+
import { useControllableState, useLocaleInfo } from '../../client/hooks/index.js';
|
|
3
|
+
import { Button } from '../../ui/index.js';
|
|
4
|
+
import { dataAttr, formatNumber } from '../../utils/index.js';
|
|
5
5
|
export function AmountChoices(props) {
|
|
6
6
|
const min = props.min ?? 0;
|
|
7
7
|
const max = props.max ?? 9999999;
|
|
@@ -3,9 +3,9 @@ import Image from 'next/image';
|
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useAvailablePromosQuery, useControllableState, useGlobalStore, } from '../../../client/hooks';
|
|
7
|
-
import { CheckIcon, ChevronLeftIcon, ChevronRightIcon } from '../../../icons';
|
|
8
|
-
import { Checkbox, IconButton } from '../../../ui';
|
|
6
|
+
import { useAvailablePromosQuery, useControllableState, useGlobalStore, } from '../../../client/hooks/index.js';
|
|
7
|
+
import { CheckIcon, ChevronLeftIcon, ChevronRightIcon } from '../../../icons/index.js';
|
|
8
|
+
import { Checkbox, IconButton } from '../../../ui/index.js';
|
|
9
9
|
export function AvailablePromos(props) {
|
|
10
10
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
11
11
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { useOnMMA, usePaymentSettingsQuery } from '../../../client/hooks';
|
|
3
|
-
import { AlertCircleIcon, SpinnerIcon } from '../../../icons';
|
|
4
|
-
import { onMobileDevice } from '../../../utils';
|
|
2
|
+
import { useOnMMA, usePaymentSettingsQuery } from '../../../client/hooks/index.js';
|
|
3
|
+
import { AlertCircleIcon, SpinnerIcon } from '../../../icons/index.js';
|
|
4
|
+
import { onMobileDevice } from '../../../utils/index.js';
|
|
5
5
|
import { PaymentMethods } from '../PaymentMethods';
|
|
6
6
|
import { GCashDeposit } from './GCashDeposit/GCashDeposit';
|
|
7
7
|
import { MayaAppDeposit } from './MayaAppDeposit/MayaAppDeposit';
|
|
@@ -5,11 +5,11 @@ import { Controller, useForm } from 'react-hook-form';
|
|
|
5
5
|
import invariant from 'tiny-invariant';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { useShallow } from 'zustand/shallow';
|
|
8
|
-
import { useAvailablePromosQuery, useCreateGCashDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
9
|
-
import { toaster } from '../../../../client/utils';
|
|
10
|
-
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons';
|
|
11
|
-
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
12
|
-
import { parseDecimal } from '../../../../utils';
|
|
8
|
+
import { useAvailablePromosQuery, useCreateGCashDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
9
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
10
|
+
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
|
|
11
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
|
|
12
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
13
13
|
import { AmountChoices } from '../../AmountChoices';
|
|
14
14
|
import { AvailablePromos } from '../AvailablePromos';
|
|
15
15
|
export function GCashDeposit() {
|
|
@@ -4,11 +4,11 @@ import { useEffect } from 'react';
|
|
|
4
4
|
import { Controller, useForm } from 'react-hook-form';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { useShallow } from 'zustand/shallow';
|
|
7
|
-
import { useAvailablePromosQuery, useCreateMayaAppDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, useIsMayaSessionValidQuery, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
8
|
-
import { toaster } from '../../../../client/utils';
|
|
9
|
-
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons';
|
|
10
|
-
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
11
|
-
import { parseDecimal } from '../../../../utils';
|
|
7
|
+
import { useAvailablePromosQuery, useCreateMayaAppDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, useIsMayaSessionValidQuery, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
8
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
9
|
+
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
|
|
10
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
|
|
11
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
12
12
|
import { AmountChoices } from '../../AmountChoices';
|
|
13
13
|
import { MayaSessionExpired } from '../../MayaSessionExpired';
|
|
14
14
|
import { AvailablePromos } from '../AvailablePromos';
|
|
@@ -5,11 +5,11 @@ import { Controller, useForm } from 'react-hook-form';
|
|
|
5
5
|
import invariant from 'tiny-invariant';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { useShallow } from 'zustand/shallow';
|
|
8
|
-
import { useAvailablePromosQuery, useCreateMayaDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
9
|
-
import { toaster } from '../../../../client/utils';
|
|
10
|
-
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons';
|
|
11
|
-
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
12
|
-
import { parseDecimal } from '../../../../utils';
|
|
8
|
+
import { useAvailablePromosQuery, useCreateMayaDepositMutation, useDepositsCountQuery, useDisclosure, useGlobalStore, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
9
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
10
|
+
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, SpinnerIcon, XIcon, } from '../../../../icons/index.js';
|
|
11
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
|
|
12
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
13
13
|
import { AmountChoices } from '../../AmountChoices';
|
|
14
14
|
import { AvailablePromos } from '../AvailablePromos';
|
|
15
15
|
export function MayaDeposit() {
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx
CHANGED
|
@@ -4,10 +4,10 @@ import { noop } from 'lodash-es';
|
|
|
4
4
|
import { useEffect } from 'react';
|
|
5
5
|
import { Controller, useForm } from 'react-hook-form';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { useAvailablePromosQuery, useDepositsCountQuery, useDisclosure, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
8
|
-
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, XIcon, } from '../../../../icons';
|
|
9
|
-
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
10
|
-
import { parseDecimal } from '../../../../utils';
|
|
7
|
+
import { useAvailablePromosQuery, useDepositsCountQuery, useDisclosure, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
8
|
+
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, XIcon, } from '../../../../icons/index.js';
|
|
9
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
|
|
10
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
11
|
import { AmountChoices } from '../../AmountChoices';
|
|
12
12
|
import { AvailablePromos } from '../AvailablePromos';
|
|
13
13
|
import { useOnlineBankDepositContext } from './OnlineBankDepositContext';
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpinnerIcon } from '../../../../icons';
|
|
1
|
+
import { SpinnerIcon } from '../../../../icons/index.js';
|
|
2
2
|
export function OnlineBankDepositLoading() {
|
|
3
3
|
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:py-16">
|
|
4
4
|
<SpinnerIcon className="mx-auto size-8 lg:size-10"/>
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckCircleBrokenIcon } from '../../../../icons';
|
|
1
|
+
import { CheckCircleBrokenIcon } from '../../../../icons/index.js';
|
|
2
2
|
export function OnlineBankDepositSuccess() {
|
|
3
3
|
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
4
4
|
<CheckCircleBrokenIcon className="text-green-600 mx-auto size-8 lg:size-10"/>
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Portal } from '@ark-ui/react';
|
|
2
2
|
import Image from 'next/image';
|
|
3
|
-
import { BankIcon, XIcon } from '../../../../icons';
|
|
3
|
+
import { BankIcon, XIcon } from '../../../../icons/index.js';
|
|
4
4
|
import bankIcon from '../../../../images/bank-icon.png';
|
|
5
|
-
import { Button, Clipboard, Dialog } from '../../../../ui';
|
|
5
|
+
import { Button, Clipboard, Dialog } from '../../../../ui/index.js';
|
|
6
6
|
import { useOnlineBankDepositContext } from './OnlineBankDepositContext';
|
|
7
7
|
export function OnlineBankDepositVCA() {
|
|
8
8
|
const context = useOnlineBankDepositContext();
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import invariant from 'tiny-invariant';
|
|
3
|
-
import { useCreateOnlineBankDepositMutation, useDepositQuery, } from '../../../../client/hooks';
|
|
4
|
-
import { toaster } from '../../../../client/utils';
|
|
3
|
+
import { useCreateOnlineBankDepositMutation, useDepositQuery, } from '../../../../client/hooks/index.js';
|
|
4
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
5
5
|
export function useOnlineBankDeposit() {
|
|
6
6
|
const [view, setView] = useState('FORM');
|
|
7
7
|
const [id, setId] = useState(null);
|
|
@@ -3,10 +3,10 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
import { Controller, useForm } from 'react-hook-form';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { useAvailablePromosQuery, useDepositsCountQuery, useDisclosure, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
7
|
-
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, XIcon, } from '../../../../icons';
|
|
8
|
-
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui';
|
|
9
|
-
import { parseDecimal } from '../../../../utils';
|
|
6
|
+
import { useAvailablePromosQuery, useDepositsCountQuery, useDisclosure, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
7
|
+
import { AlertCircleIcon, ChevronDownIcon, ChevronUpIcon, XIcon, } from '../../../../icons/index.js';
|
|
8
|
+
import { AlertDialog, Button, Field, NumberInput } from '../../../../ui/index.js';
|
|
9
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
10
10
|
import { AmountChoices } from '../../AmountChoices';
|
|
11
11
|
import { AvailablePromos } from '../AvailablePromos';
|
|
12
12
|
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpinnerIcon } from '../../../../icons';
|
|
1
|
+
import { SpinnerIcon } from '../../../../icons/index.js';
|
|
2
2
|
export function QRPHDepositLoading() {
|
|
3
3
|
return (<div className="bg-gray-50 rounded-lg px-10 py-12 lg:p-16">
|
|
4
4
|
<SpinnerIcon className="mx-auto size-8 lg:size-10"/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Portal, QrCode } from '@ark-ui/react';
|
|
2
2
|
import Image from 'next/image';
|
|
3
|
-
import { QrCode02Icon, SpinnerIcon, XIcon } from '../../../../icons';
|
|
3
|
+
import { QrCode02Icon, SpinnerIcon, XIcon } from '../../../../icons/index.js';
|
|
4
4
|
import qrphIcon from '../../../../images/qrph-icon.png';
|
|
5
|
-
import { Button, Dialog } from '../../../../ui';
|
|
5
|
+
import { Button, Dialog } from '../../../../ui/index.js';
|
|
6
6
|
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
7
7
|
export function QRPHDepositQrCode() {
|
|
8
8
|
const context = useQRPHDepositContext();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckCircleBrokenIcon } from '../../../../icons';
|
|
2
|
-
import { Button } from '../../../../ui';
|
|
1
|
+
import { CheckCircleBrokenIcon } from '../../../../icons/index.js';
|
|
2
|
+
import { Button } from '../../../../ui/index.js';
|
|
3
3
|
import { useQRPHDepositContext } from './QRPHDepositContext';
|
|
4
4
|
export function QRPHDepositSuccess() {
|
|
5
5
|
const context = useQRPHDepositContext();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import invariant from 'tiny-invariant';
|
|
3
|
-
import { useCreateQRPHDepositMutation, useDepositQuery } from '../../../../client/hooks';
|
|
4
|
-
import { toaster } from '../../../../client/utils';
|
|
3
|
+
import { useCreateQRPHDepositMutation, useDepositQuery } from '../../../../client/hooks/index.js';
|
|
4
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
5
5
|
export function useQRPHDeposit() {
|
|
6
6
|
const [view, setView] = useState('FORM');
|
|
7
7
|
const [id, setId] = useState(null);
|
|
@@ -3,10 +3,10 @@ import { Portal } from '@ark-ui/react';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useGlobalStore, useLocaleInfo, useWalletQuery } from '../../client/hooks';
|
|
7
|
-
import { Wallet02Icon, XIcon } from '../../icons';
|
|
8
|
-
import { Dialog, Tabs } from '../../ui';
|
|
9
|
-
import { formatNumber } from '../../utils';
|
|
6
|
+
import { useGlobalStore, useLocaleInfo, useWalletQuery } from '../../client/hooks/index.js';
|
|
7
|
+
import { Wallet02Icon, XIcon } from '../../icons/index.js';
|
|
8
|
+
import { Dialog, Tabs } from '../../ui/index.js';
|
|
9
|
+
import { formatNumber } from '../../utils/index.js';
|
|
10
10
|
import { Deposit } from './Deposit/Deposit';
|
|
11
11
|
import { Withdrawal } from './Withdrawal/Withdrawal';
|
|
12
12
|
export function DepositWithdrawal(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark } from '@ark-ui/react';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useGlobalStore, useSessionQuery } from '../../client/hooks';
|
|
4
|
+
import { useGlobalStore, useSessionQuery } from '../../client/hooks/index.js';
|
|
5
5
|
export function DepositWithdrawalTrigger(props) {
|
|
6
6
|
const sessionQuery = useSessionQuery();
|
|
7
7
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertTriangleIcon } from '../../icons';
|
|
1
|
+
import { AlertTriangleIcon } from '../../icons/index.js';
|
|
2
2
|
export function MayaSessionExpired() {
|
|
3
3
|
return (<div className="bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl">
|
|
4
4
|
<AlertTriangleIcon className="text-amber-500 mx-auto size-10"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
|
-
import { useControllableState } from '../../client/hooks';
|
|
3
|
-
import { CheckIcon } from '../../icons';
|
|
2
|
+
import { useControllableState } from '../../client/hooks/index.js';
|
|
3
|
+
import { CheckIcon } from '../../icons/index.js';
|
|
4
4
|
import qrph from '../../images/QRPh.png';
|
|
5
5
|
import gcash from '../../images/gcash.png';
|
|
6
6
|
import instapay from '../../images/instapay.png';
|
|
7
7
|
import maya from '../../images/maya.png';
|
|
8
8
|
import onlineBank from '../../images/online-bank.png';
|
|
9
|
-
import { Checkbox, Field } from '../../ui';
|
|
10
|
-
import { PaymentMethodDefinition } from './utils';
|
|
9
|
+
import { Checkbox, Field } from '../../ui/index.js';
|
|
10
|
+
import { PaymentMethodDefinition } from './utils.js';
|
|
11
11
|
const OPTIONS = [
|
|
12
12
|
{
|
|
13
13
|
value: 'GCASH',
|