@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
|
@@ -3,11 +3,11 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { Controller, useForm } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useCreateGCashWithdrawalMutation, useGlobalStore, useLocaleInfo, useMobileNumberParser, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
7
|
-
import { toaster } from '../../../../client/utils';
|
|
8
|
-
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons';
|
|
9
|
-
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui';
|
|
10
|
-
import { parseDecimal } from '../../../../utils';
|
|
6
|
+
import { useCreateGCashWithdrawalMutation, useGlobalStore, useLocaleInfo, useMobileNumberParser, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
7
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
8
|
+
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
9
|
+
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui/index.js';
|
|
10
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
11
|
import { AmountChoices } from '../../AmountChoices';
|
|
12
12
|
export function GCashWithdrawal() {
|
|
13
13
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx
CHANGED
|
@@ -4,11 +4,11 @@ import { useEffect, useMemo } 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 { useCreateInstapayWithdrawalMutation, useGlobalStore, useInstapayBankListQuery, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
8
|
-
import { toaster } from '../../../../client/utils';
|
|
9
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons';
|
|
10
|
-
import { Button, Field, NumberInput, PasswordInput, Select } from '../../../../ui';
|
|
11
|
-
import { parseDecimal } from '../../../../utils';
|
|
7
|
+
import { useCreateInstapayWithdrawalMutation, useGlobalStore, useInstapayBankListQuery, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
8
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
9
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
10
|
+
import { Button, Field, NumberInput, PasswordInput, Select } from '../../../../ui/index.js';
|
|
11
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
12
12
|
import { AmountChoices } from '../../AmountChoices';
|
|
13
13
|
export function InstapayWithdrawal() {
|
|
14
14
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.jsx
CHANGED
|
@@ -3,11 +3,11 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { Controller, useForm } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useCreateMayaAppWithdrawalMutation, useGlobalStore, useIsMayaSessionValidQuery, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
7
|
-
import { toaster } from '../../../../client/utils';
|
|
8
|
-
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons';
|
|
9
|
-
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui';
|
|
10
|
-
import { parseDecimal } from '../../../../utils';
|
|
6
|
+
import { useCreateMayaAppWithdrawalMutation, useGlobalStore, useIsMayaSessionValidQuery, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
7
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
8
|
+
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
9
|
+
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui/index.js';
|
|
10
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
11
|
import { AmountChoices } from '../../AmountChoices';
|
|
12
12
|
import { MayaSessionExpired } from '../../MayaSessionExpired';
|
|
13
13
|
export function MayaAppWithdrawal() {
|
|
@@ -3,11 +3,11 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { Controller, useForm } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useCreateMayaWithdrawalMutation, useGlobalStore, useLocaleInfo, useMobileNumberParser, usePaymentSettingsQuery, } from '../../../../client/hooks';
|
|
7
|
-
import { toaster } from '../../../../client/utils';
|
|
8
|
-
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons';
|
|
9
|
-
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui';
|
|
10
|
-
import { parseDecimal } from '../../../../utils';
|
|
6
|
+
import { useCreateMayaWithdrawalMutation, useGlobalStore, useLocaleInfo, useMobileNumberParser, usePaymentSettingsQuery, } from '../../../../client/hooks/index.js';
|
|
7
|
+
import { toaster } from '../../../../client/utils/index.js';
|
|
8
|
+
import { ChevronDownIcon, ChevronUpIcon, EyeIcon, EyeOffIcon, SpinnerIcon, } from '../../../../icons/index.js';
|
|
9
|
+
import { Button, Field, NumberInput, PasswordInput } from '../../../../ui/index.js';
|
|
10
|
+
import { parseDecimal } from '../../../../utils/index.js';
|
|
11
11
|
import { AmountChoices } from '../../AmountChoices';
|
|
12
12
|
export function MayaWithdrawal() {
|
|
13
13
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Link from 'next/link';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useAccountQuery, useGlobalStore, useOnMMA, usePaymentSettingsQuery, } from '../../../client/hooks';
|
|
5
|
-
import { AlertCircleIcon, AlertTriangleIcon, ArrowRightIcon, SpinnerIcon, } from '../../../icons';
|
|
6
|
-
import { onMobileDevice } from '../../../utils';
|
|
4
|
+
import { useAccountQuery, useGlobalStore, useOnMMA, usePaymentSettingsQuery, } from '../../../client/hooks/index.js';
|
|
5
|
+
import { AlertCircleIcon, AlertTriangleIcon, ArrowRightIcon, SpinnerIcon, } from '../../../icons/index.js';
|
|
6
|
+
import { onMobileDevice } from '../../../utils/index.js';
|
|
7
7
|
import { PaymentMethods } from '../PaymentMethods';
|
|
8
8
|
import { GCashWithdrawal } from './GCashWithdrawal/GCashWithdrawal';
|
|
9
9
|
import { InstapayWithdrawal } from './InstapayWithdrawal/InstapayWithdrawal';
|
|
@@ -4,7 +4,7 @@ import Image from 'next/image';
|
|
|
4
4
|
import { useRef } from 'react';
|
|
5
5
|
import pagcorLogo from '../../images/pagcor.png';
|
|
6
6
|
import responsibleGamingLogo from '../../images/responsible-gaming.png';
|
|
7
|
-
import { Button, Dialog } from '../../ui';
|
|
7
|
+
import { Button, Dialog } from '../../ui/index.js';
|
|
8
8
|
import { useDisclaimer } from './useDisclaimer';
|
|
9
9
|
export function Disclaimer(props) {
|
|
10
10
|
const disclaimer = useDisclaimer();
|
|
@@ -2,8 +2,8 @@ import { addMinutes } from 'date-fns';
|
|
|
2
2
|
import { clamp } from 'lodash-es';
|
|
3
3
|
import { useLocalStorage, useTimeout } from 'usehooks-ts';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore } from '../../client/hooks/useGlobalStore';
|
|
6
|
-
import { useSessionQuery } from '../../client/hooks/useSessionQuery';
|
|
5
|
+
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
6
|
+
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
7
7
|
export function useDisclaimer() {
|
|
8
8
|
'use no memo';
|
|
9
9
|
const sessionQuery = useSessionQuery();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
import { useFavoriteGamesQuery, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks';
|
|
5
|
-
import { ArrowLeftIcon, ArrowRightIcon, Star01Icon } from '../../icons';
|
|
6
|
-
import { Button } from '../../ui';
|
|
7
|
-
import { getGameImageUrl } from '../../utils';
|
|
8
|
-
import { GameLaunchTrigger } from '../GameLaunch';
|
|
4
|
+
import { useFavoriteGamesQuery, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
|
|
5
|
+
import { ArrowLeftIcon, ArrowRightIcon, Star01Icon } from '../../icons/index.js';
|
|
6
|
+
import { Button } from '../../ui/index.js';
|
|
7
|
+
import { getGameImageUrl } from '../../utils/index.js';
|
|
8
|
+
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
9
9
|
export function FavoriteGames__client(props) {
|
|
10
10
|
const gamesQuery = useFavoriteGamesQuery();
|
|
11
11
|
const games = gamesQuery.data ?? [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { prefetchFavoriteGamesQuery } from '../../server/utils';
|
|
1
|
+
import { prefetchFavoriteGamesQuery } from '../../server/utils/index.js';
|
|
2
2
|
import { FavoriteGames__client } from './FavoriteGames.client';
|
|
3
3
|
export async function FavoriteGames(props) {
|
|
4
4
|
await prefetchFavoriteGamesQuery();
|
|
@@ -3,9 +3,9 @@ import { Dialog, Portal, Presence } from '@ark-ui/react';
|
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useDisclosure, useEndGameSessionMutation, useFavoriteGamesQuery, useGlobalStore, useMarkGameAsFavoriteMutation, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks';
|
|
7
|
-
import { AlertCircleIcon, ChevronLeftIcon, CoinsHandIcon, Expand03Icon, SpinnerIcon, Star01Icon, XIcon, } from '../../icons';
|
|
8
|
-
import { AlertDialog, Button, IconButton } from '../../ui';
|
|
6
|
+
import { useDisclosure, useEndGameSessionMutation, useFavoriteGamesQuery, useGlobalStore, useMarkGameAsFavoriteMutation, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
|
|
7
|
+
import { AlertCircleIcon, ChevronLeftIcon, CoinsHandIcon, Expand03Icon, SpinnerIcon, Star01Icon, XIcon, } from '../../icons/index.js';
|
|
8
|
+
import { AlertDialog, Button, IconButton } from '../../ui/index.js';
|
|
9
9
|
export function GameLaunch() {
|
|
10
10
|
const ref = useRef(null);
|
|
11
11
|
const maximizeDisclosure = useDisclosure({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ark } from '@ark-ui/react';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useCreateGameSessionMutation, useGlobalStore, useSessionQuery, } from '../../client/hooks';
|
|
5
|
-
import { toaster } from '../../client/utils';
|
|
4
|
+
import { useCreateGameSessionMutation, useGlobalStore, useSessionQuery, } from '../../client/hooks/index.js';
|
|
5
|
+
import { toaster } from '../../client/utils/index.js';
|
|
6
6
|
export function GameLaunchTrigger(props) {
|
|
7
7
|
const sessionQuery = useSessionQuery();
|
|
8
8
|
const createGameSessionMutation = useCreateGameSessionMutation();
|
|
@@ -3,8 +3,8 @@ import useEmblaCarousel from 'embla-carousel-react';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons';
|
|
7
|
-
import { Button } from '../../ui';
|
|
6
|
+
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons/index.js';
|
|
7
|
+
import { Button } from '../../ui/index.js';
|
|
8
8
|
export function GameProviders(props) {
|
|
9
9
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
10
10
|
align: 'start',
|
|
@@ -4,10 +4,10 @@ import Image from 'next/image';
|
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useCallback, useEffect, useState } from 'react';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { useFavoriteGamesQuery, useGamesQuery, useMarkGameAsFavoriteMutation, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks';
|
|
8
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon, SpinnerIcon, Star01Icon, } from '../../icons';
|
|
9
|
-
import { Button } from '../../ui';
|
|
10
|
-
import { GameLaunchTrigger } from '../GameLaunch';
|
|
7
|
+
import { useFavoriteGamesQuery, useGamesQuery, useMarkGameAsFavoriteMutation, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
|
|
8
|
+
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon, SpinnerIcon, Star01Icon, } from '../../icons/index.js';
|
|
9
|
+
import { Button } from '../../ui/index.js';
|
|
10
|
+
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
11
11
|
export function Games__client(props) {
|
|
12
12
|
const numOfRows = props.numOfRows ?? 1;
|
|
13
13
|
const gamesQuery = useGamesQuery({
|
|
@@ -3,11 +3,11 @@ import { Portal } from '@ark-ui/react';
|
|
|
3
3
|
import Image, {} from 'next/image';
|
|
4
4
|
import { useRef, useState } from 'react';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useGamesQuery, useGlobalStore } from '../../client/hooks';
|
|
7
|
-
import { SearchLgIcon, XIcon } from '../../icons';
|
|
6
|
+
import { useGamesQuery, useGlobalStore } from '../../client/hooks/index.js';
|
|
7
|
+
import { SearchLgIcon, XIcon } from '../../icons/index.js';
|
|
8
8
|
import providerHacksaw from '../../images/hacksaw-gaming.png';
|
|
9
|
-
import { Button, Dialog, Field, IconButton, Presence } from '../../ui';
|
|
10
|
-
import { GameLaunchTrigger } from '../GameLaunch';
|
|
9
|
+
import { Button, Dialog, Field, IconButton, Presence } from '../../ui/index.js';
|
|
10
|
+
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
11
11
|
export function GamesSearch(props) {
|
|
12
12
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
13
13
|
gamesSearch: ctx.gamesSearch,
|
|
@@ -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 } from '../../client/hooks';
|
|
4
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
5
5
|
export function GamesSearchTrigger(props) {
|
|
6
6
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
7
7
|
gamesSearch: ctx.gamesSearch,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { useCallback, useEffect, useState } from 'react';
|
|
5
|
-
import { useJackpotsQuery } from '../../client/hooks';
|
|
6
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons';
|
|
7
|
-
import { Button } from '../../ui';
|
|
5
|
+
import { useJackpotsQuery } from '../../client/hooks/index.js';
|
|
6
|
+
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons/index.js';
|
|
7
|
+
import { Button } from '../../ui/index.js';
|
|
8
8
|
import { JackpotCounterItem } from './JackpotCounterItem';
|
|
9
9
|
export function JackpotCounter__client(props) {
|
|
10
10
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { prefetchJackpotsQuery } from '../../server/utils';
|
|
1
|
+
import { prefetchJackpotsQuery } from '../../server/utils/index.js';
|
|
2
2
|
import { JackpotCounter__client } from './JackpotCounter.client';
|
|
3
3
|
export async function JackpotCounter(props) {
|
|
4
4
|
await prefetchJackpotsQuery({
|
|
@@ -4,15 +4,15 @@ import Image from 'next/image';
|
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useCallback, useMemo } from 'react';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { useLocaleInfo } from '../../client/hooks';
|
|
8
|
-
import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery';
|
|
9
|
-
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons';
|
|
7
|
+
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
8
|
+
import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery.js';
|
|
9
|
+
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
|
|
10
10
|
import { StarIcon } from '../../icons/StarIcon';
|
|
11
11
|
import closeChest from '../../images/close-chest.png';
|
|
12
12
|
import firstPlace from '../../images/first-place.png';
|
|
13
13
|
import leaderboard from '../../images/leaderboard.png';
|
|
14
14
|
import openChest from '../../images/open-chest.png';
|
|
15
|
-
import { formatNumber } from '../../utils';
|
|
15
|
+
import { formatNumber } from '../../utils/index.js';
|
|
16
16
|
import styles from './JackpotCounterItem.module.css';
|
|
17
17
|
export function JackpotCounterItem({ jackpot, className, viewAllUrl, }) {
|
|
18
18
|
const jackpotPayoutsQuery = useJackpotPayoutsQuery({
|
|
@@ -3,8 +3,8 @@ import useEmblaCarousel from 'embla-carousel-react';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { ArrowLeftIcon, ArrowRightIcon } from '../../icons';
|
|
7
|
-
import { Button } from '../../ui';
|
|
6
|
+
import { ArrowLeftIcon, ArrowRightIcon } from '../../icons/index.js';
|
|
7
|
+
import { Button } from '../../ui/index.js';
|
|
8
8
|
export function JackpotGameProviders({ gameProviders, }) {
|
|
9
9
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
10
10
|
align: 'start',
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { Progress } from '@ark-ui/react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons';
|
|
5
|
+
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
|
|
6
6
|
import { StarIcon } from '../../icons/StarIcon';
|
|
7
7
|
import closeChest from '../../images/close-chest.png';
|
|
8
8
|
import firstPlace from '../../images/first-place.png';
|
|
9
9
|
import leaderboard from '../../images/leaderboard.png';
|
|
10
10
|
import openChest from '../../images/open-chest.png';
|
|
11
|
-
import { formatNumber } from '../../utils';
|
|
11
|
+
import { formatNumber } from '../../utils/index.js';
|
|
12
12
|
import { maskName } from '../JackpotCounter/JackpotCounterItem';
|
|
13
13
|
import styles from '../JackpotCounter/JackpotCounterItem.module.css';
|
|
14
14
|
import { JackpotGameProviders } from './JackpotGameProviders';
|
|
@@ -3,15 +3,15 @@ import { Progress } from '@ark-ui/react';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons';
|
|
6
|
+
import { ArrowNarrowUpRightIcon, ChevronLeftIcon, ChevronRightIcon, Trophy01Icon, } from '../../icons/index.js';
|
|
7
7
|
import { ArrowNarrowDownIcon } from '../../icons/ArrowNarrowDownIcon';
|
|
8
8
|
import { ArrowNarrowUpIcon } from '../../icons/ArrowNarrowUpIcon';
|
|
9
9
|
import { StarIcon } from '../../icons/StarIcon';
|
|
10
10
|
import closeChest from '../../images/close-chest.png';
|
|
11
11
|
import firstPlace from '../../images/first-place.png';
|
|
12
12
|
import openChest from '../../images/open-chest.png';
|
|
13
|
-
import { Button } from '../../ui';
|
|
14
|
-
import { formatNumber } from '../../utils';
|
|
13
|
+
import { Button } from '../../ui/index.js';
|
|
14
|
+
import { formatNumber } from '../../utils/index.js';
|
|
15
15
|
import { maskName } from '../JackpotCounter/JackpotCounterItem';
|
|
16
16
|
import styles from '../JackpotCounter/JackpotCounterItem.module.css';
|
|
17
17
|
import { JackpotGameProviders } from './JackpotGameProviders';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Portal } from '@ark-ui/react';
|
|
3
|
-
import { XIcon } from '../../icons';
|
|
3
|
+
import { XIcon } from '../../icons/index.js';
|
|
4
4
|
import { Flag06Icon } from '../../icons/Flag06Icon';
|
|
5
|
-
import { Dialog } from '../../ui';
|
|
5
|
+
import { Dialog } from '../../ui/index.js';
|
|
6
6
|
export function JackpotRules(props) {
|
|
7
7
|
return (<Dialog.Root lazyMount unmountOnExit closeOnEscape={false} closeOnInteractOutside={false}>
|
|
8
8
|
<Dialog.Trigger asChild>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useJackpotsQuery } from '../../client/hooks';
|
|
2
|
+
import { useJackpotsQuery } from '../../client/hooks/index.js';
|
|
3
3
|
import { JackpotItemDesktop } from './JackpotItemDesktop';
|
|
4
4
|
import { JackpotItemMobile } from './JackpotItemMobile';
|
|
5
5
|
export function Jackpots(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
import { useLocaleInfo } from '../../client/hooks';
|
|
4
|
-
import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery';
|
|
5
|
-
import { ChevronLeftIcon, ChevronRightIcon } from '../../icons';
|
|
3
|
+
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
4
|
+
import { useJackpotPayoutsQuery } from '../../client/hooks/useJackpotPayoutsQuery.js';
|
|
5
|
+
import { ChevronLeftIcon, ChevronRightIcon } from '../../icons/index.js';
|
|
6
6
|
import styles from '../JackpotCounter/JackpotCounterItem.module.css';
|
|
7
7
|
export function useJackpotItemData({ jackpot, gameProviders, }) {
|
|
8
8
|
const jackpotPayoutsQuery = useJackpotPayoutsQuery({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Portal } from '@ark-ui/react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
|
-
import { Dialog } from '../../ui';
|
|
4
|
+
import { Dialog } from '../../ui/index.js';
|
|
5
5
|
import { KYCContext } from './KYCContext';
|
|
6
6
|
import { Step1 } from './Step1';
|
|
7
7
|
import { Step2 } from './Step2';
|
|
@@ -9,7 +9,7 @@ import { Step3 } from './Step3';
|
|
|
9
9
|
import { StepIndicator } from './StepIndicator';
|
|
10
10
|
import { UploadDocument } from './UploadDocument';
|
|
11
11
|
import { UploadSelfie } from './UploadSelfie';
|
|
12
|
-
import { useKYC } from './useKYC';
|
|
12
|
+
import { useKYC } from './useKYC.js';
|
|
13
13
|
export function KYC(props) {
|
|
14
14
|
const context = useKYC();
|
|
15
15
|
return (<KYCContext value={context}>
|
|
@@ -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 } from '../../client/hooks';
|
|
4
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
5
5
|
export function KYCTrigger(props) {
|
|
6
6
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
7
7
|
kyc: ctx.kyc,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HelpCircleIcon, UploadCloud02Icon } from '../../icons';
|
|
2
|
-
import { Button, Field } from '../../ui';
|
|
1
|
+
import { HelpCircleIcon, UploadCloud02Icon } from '../../icons/index.js';
|
|
2
|
+
import { Button, Field } from '../../ui/index.js';
|
|
3
3
|
import { useKYCContext } from './KYCContext';
|
|
4
4
|
export function Step2() {
|
|
5
5
|
const context = useKYCContext();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckIcon } from '../../icons';
|
|
2
|
-
import { Button, Checkbox, Field } from '../../ui';
|
|
1
|
+
import { CheckIcon } from '../../icons/index.js';
|
|
2
|
+
import { Button, Checkbox, Field } from '../../ui/index.js';
|
|
3
3
|
import { useKYCContext } from './KYCContext';
|
|
4
4
|
export function Step3() {
|
|
5
5
|
const context = useKYCContext();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons';
|
|
2
|
-
import { Button } from '../../ui';
|
|
1
|
+
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons/index.js';
|
|
2
|
+
import { Button } from '../../ui/index.js';
|
|
3
3
|
import { useKYCContext } from './KYCContext';
|
|
4
4
|
export function UploadDocument() {
|
|
5
5
|
const context = useKYCContext();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons';
|
|
2
|
-
import { Button } from '../../ui';
|
|
1
|
+
import { Camera01Icon, CheckCircleIcon, XIcon } from '../../icons/index.js';
|
|
2
|
+
import { Button } from '../../ui/index.js';
|
|
3
3
|
import { useKYCContext } from './KYCContext';
|
|
4
4
|
export function UploadSelfie() {
|
|
5
5
|
const context = useKYCContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useShallow } from 'zustand/shallow';
|
|
3
|
-
import { useGlobalStore } from '../../client/hooks';
|
|
3
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
4
4
|
export function useKYC() {
|
|
5
5
|
const [step, setStep_] = useState(1);
|
|
6
6
|
const [open, setOpen_] = useGlobalStore(useShallow((ctx) => [ctx.kyc.open, ctx.kyc.setOpen]));
|
|
@@ -2,8 +2,8 @@ import { tz } from '@date-fns/tz';
|
|
|
2
2
|
import { format } from 'date-fns';
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore, useLocaleInfo, useMarkMessageAsReadMutation, } from '../../client/hooks';
|
|
6
|
-
import { getMessageIcon } from '../../components/Messages/utils';
|
|
5
|
+
import { useGlobalStore, useLocaleInfo, useMarkMessageAsReadMutation, } from '../../client/hooks/index.js';
|
|
6
|
+
import { getMessageIcon } from '../../components/Messages/utils.js';
|
|
7
7
|
export function MessageItem({ message }) {
|
|
8
8
|
const { id, title, dateTimeCreated, content, markedAsRead, icon, actions } = message;
|
|
9
9
|
const localeInfo = useLocaleInfo();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Portal } from '@ark-ui/react';
|
|
2
2
|
import Link from 'next/link';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useGlobalStore } from '../../client/hooks';
|
|
5
|
-
import { XIcon } from '../../icons';
|
|
6
|
-
import { Dialog } from '../../ui';
|
|
7
|
-
import { getMessageIcon } from './utils';
|
|
4
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
5
|
+
import { XIcon } from '../../icons/index.js';
|
|
6
|
+
import { Dialog } from '../../ui/index.js';
|
|
7
|
+
import { getMessageIcon } from './utils.js';
|
|
8
8
|
export const MessagePopup = () => {
|
|
9
9
|
const { messages: messagesStore } = useGlobalStore(useShallow((ctx) => ({ messages: ctx.messages })));
|
|
10
10
|
const message = messagesStore.message.data;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Portal } from '@ark-ui/react';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore, useMessagesQuery, useUnreadMessagesCountQuery, } from '../../client/hooks';
|
|
6
|
-
import { Bell01Icon, SpinnerIcon, XIcon } from '../../icons';
|
|
7
|
-
import { Drawer, IconButton, Tabs } from '../../ui';
|
|
5
|
+
import { useGlobalStore, useMessagesQuery, useUnreadMessagesCountQuery, } from '../../client/hooks/index.js';
|
|
6
|
+
import { Bell01Icon, SpinnerIcon, XIcon } from '../../icons/index.js';
|
|
7
|
+
import { Drawer, IconButton, Tabs } from '../../ui/index.js';
|
|
8
8
|
import { InfiniteScroll } from '../InfiniteScroll';
|
|
9
9
|
import { MessageItem } from './MessageItem';
|
|
10
10
|
import { MessagePopup } from './MessagePopup';
|
|
@@ -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 } from '../../client/hooks';
|
|
4
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
5
5
|
export function MessagesTrigger(props) {
|
|
6
6
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
7
7
|
messages: ctx.messages,
|
|
@@ -3,10 +3,10 @@ import { Toast, Toaster } from '@ark-ui/react';
|
|
|
3
3
|
import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google';
|
|
4
4
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { toaster } from '../../client/utils';
|
|
7
|
-
import { AlertCircleIcon, XIcon } from '../../icons';
|
|
8
|
-
import { FacebookPixel, GoogleRecaptcha } from '../../third-parties';
|
|
9
|
-
import { getQueryClient } from '../../utils';
|
|
6
|
+
import { toaster } from '../../client/utils/index.js';
|
|
7
|
+
import { AlertCircleIcon, XIcon } from '../../icons/index.js';
|
|
8
|
+
import { FacebookPixel, GoogleRecaptcha } from '../../third-parties/index.js';
|
|
9
|
+
import { getQueryClient } from '../../utils/index.js';
|
|
10
10
|
export function PortalProvider__client({ googleAnalyticsId, googleTagManagerId, googleRecaptchaSiteKey, facebookPixelId, children, }) {
|
|
11
11
|
const queryClient = getQueryClient();
|
|
12
12
|
return (<QueryClientProvider client={queryClient}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dehydrate, HydrationBoundary } from '@tanstack/react-query';
|
|
2
2
|
import {} from 'react';
|
|
3
|
-
import { prefetchAccountQuery, prefetchSessionQuery, prefetchWalletQuery, } from '../../server/utils';
|
|
4
|
-
import { getQueryClient } from '../../utils';
|
|
3
|
+
import { prefetchAccountQuery, prefetchSessionQuery, prefetchWalletQuery, } from '../../server/utils/index.js';
|
|
4
|
+
import { getQueryClient } from '../../utils/index.js';
|
|
5
5
|
import { PortalProvider__client } from './PortalProvider.client';
|
|
6
6
|
export async function PortalProvider({ children, ...props }) {
|
|
7
7
|
const queryClient = getQueryClient();
|
|
@@ -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 } from '../../icons';
|
|
5
|
-
import { Button, Prose } from '../../ui';
|
|
4
|
+
import { ChevronLeftIcon } from '../../icons/index.js';
|
|
5
|
+
import { Button, Prose } from '../../ui/index.js';
|
|
6
6
|
export function PromoContent(props) {
|
|
7
7
|
return (<div className={props.className}>
|
|
8
8
|
<Link href={props.viewAllPromosUrl ?? '/promos'} className="text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold">
|
|
@@ -3,9 +3,9 @@ import useEmblaCarousel, {} from 'embla-carousel-react';
|
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { usePromosQuery } from '../../client/hooks';
|
|
7
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon, Gift01Icon, } from '../../icons';
|
|
8
|
-
import { Button } from '../../ui';
|
|
6
|
+
import { usePromosQuery } from '../../client/hooks/index.js';
|
|
7
|
+
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon, Gift01Icon, } from '../../icons/index.js';
|
|
8
|
+
import { Button } from '../../ui/index.js';
|
|
9
9
|
import { Empty } from '../Empty';
|
|
10
10
|
import { PromosItem } from './PromoItem';
|
|
11
11
|
export function PromoCarousel(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
import { usePromosQuery } from '../../client/hooks';
|
|
4
|
-
import { Gift01Icon } from '../../icons';
|
|
3
|
+
import { usePromosQuery } from '../../client/hooks/index.js';
|
|
4
|
+
import { Gift01Icon } from '../../icons/index.js';
|
|
5
5
|
import { Empty } from '../Empty';
|
|
6
6
|
import { PromosItem } from './PromoItem';
|
|
7
7
|
export function PromoGrid(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Image from 'next/image';
|
|
2
2
|
import { useRouter } from 'next/navigation';
|
|
3
3
|
import { twJoin } from 'tailwind-merge';
|
|
4
|
-
import { Button } from '../../ui';
|
|
4
|
+
import { Button } from '../../ui/index.js';
|
|
5
5
|
export function PromosItem(props) {
|
|
6
6
|
const { promo } = props;
|
|
7
7
|
const router = useRouter();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { CalendarIcon, ClockStopWatchIcon, InfoCircleIcon } from '../../../icons';
|
|
2
|
+
import { CalendarIcon, ClockStopWatchIcon, InfoCircleIcon } from '../../../icons/index.js';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
import { Button } from '../../../ui';
|
|
4
|
+
import { Button } from '../../../ui/index.js';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { DailyCheckInQuestModal } from './DailyCheckInQuestModal';
|
|
7
7
|
export default function DailyCheckInQuest() {
|