@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,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { Button, Dialog } from '../../../ui';
|
|
2
|
+
import { Button, Dialog } from '../../../ui/index.js';
|
|
3
3
|
import { Portal } from '@ark-ui/react';
|
|
4
|
-
import { XIcon } from '../../../icons';
|
|
4
|
+
import { XIcon } from '../../../icons/index.js';
|
|
5
5
|
export function DailyCheckInQuestModal(props) {
|
|
6
6
|
return (<Dialog.Root lazyMount unmountOnExit open={props.modalState.isOpen} onOpenChange={({ open }) => props.modalState.setIsOpen(open)} closeOnEscape={false} closeOnInteractOutside={false}>
|
|
7
7
|
<Portal>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { ClockStopWatchIcon, InfoCircleIcon } from '../../../icons';
|
|
3
|
-
import { Button } from '../../../ui';
|
|
2
|
+
import { ClockStopWatchIcon, InfoCircleIcon } from '../../../icons/index.js';
|
|
3
|
+
import { Button } from '../../../ui/index.js';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { WageringQuestModal } from './WageringQuestModal';
|
|
6
6
|
export default function WageringQuest() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { Button, Dialog } from '../../../ui';
|
|
2
|
+
import { Button, Dialog } from '../../../ui/index.js';
|
|
3
3
|
import { Portal } from '@ark-ui/react';
|
|
4
|
-
import { XIcon } from '../../../icons';
|
|
4
|
+
import { XIcon } from '../../../icons/index.js';
|
|
5
5
|
export function WageringQuestModal(props) {
|
|
6
6
|
return (<Dialog.Root lazyMount unmountOnExit open={props.modalState.isOpen} onOpenChange={({ open }) => props.modalState.setIsOpen(open)} closeOnEscape={false} closeOnInteractOutside={false}>
|
|
7
7
|
<Portal>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Portal } from '@ark-ui/react';
|
|
3
3
|
import Image, {} from 'next/image';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore } from '../../client/hooks';
|
|
6
|
-
import { XIcon } from '../../icons';
|
|
7
|
-
import { Dialog } from '../../ui';
|
|
5
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
6
|
+
import { XIcon } from '../../icons/index.js';
|
|
7
|
+
import { Dialog } from '../../ui/index.js';
|
|
8
8
|
import { SignInForm } from './SignInForm';
|
|
9
9
|
export function SignIn(props) {
|
|
10
10
|
const signInStore = useGlobalStore(useShallow((popups) => popups.signIn));
|
|
@@ -5,10 +5,10 @@ import { useState } from 'react';
|
|
|
5
5
|
import { Controller, useForm } from 'react-hook-form';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { useShallow } from 'zustand/shallow';
|
|
8
|
-
import { useCooldown, useGlobalStore, useLocaleInfo, useMobileNumberParser, useSendVerificationCodeMutation, useSignInMutation, } from '../../client/hooks';
|
|
9
|
-
import { toaster } from '../../client/utils';
|
|
10
|
-
import { ArrowLeftIcon, CheckIcon, FacebookIcon, GoogleIcon } from '../../icons';
|
|
11
|
-
import { Button, Checkbox, Field, PinInput } from '../../ui';
|
|
8
|
+
import { useCooldown, useGlobalStore, useLocaleInfo, useMobileNumberParser, useSendVerificationCodeMutation, useSignInMutation, } from '../../client/hooks/index.js';
|
|
9
|
+
import { toaster } from '../../client/utils/index.js';
|
|
10
|
+
import { ArrowLeftIcon, CheckIcon, FacebookIcon, GoogleIcon } from '../../icons/index.js';
|
|
11
|
+
import { Button, Checkbox, Field, PinInput } from '../../ui/index.js';
|
|
12
12
|
export function SignInForm() {
|
|
13
13
|
const [step, setStep] = useState(1);
|
|
14
14
|
const dialog = useDialogContext();
|
|
@@ -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 SignInTrigger(props) {
|
|
6
6
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
7
7
|
signIn: ctx.signIn,
|
|
@@ -3,9 +3,9 @@ import { Portal } from '@ark-ui/react';
|
|
|
3
3
|
import Image, {} from 'next/image';
|
|
4
4
|
import { Suspense } from 'react';
|
|
5
5
|
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useGlobalStore } from '../../client/hooks';
|
|
7
|
-
import { XIcon } from '../../icons';
|
|
8
|
-
import { Dialog } from '../../ui';
|
|
6
|
+
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
7
|
+
import { XIcon } from '../../icons/index.js';
|
|
8
|
+
import { Dialog } from '../../ui/index.js';
|
|
9
9
|
import { SignUpForm } from './SignUpForm';
|
|
10
10
|
export function SignUp(props) {
|
|
11
11
|
const signUpStore = useGlobalStore(useShallow((popups) => popups.signUp));
|
|
@@ -7,10 +7,10 @@ import { useState } from 'react';
|
|
|
7
7
|
import { Controller, useForm } from 'react-hook-form';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { useShallow } from 'zustand/shallow';
|
|
10
|
-
import { useCooldown, useGlobalStore, useLocaleInfo, useMobileNumberParser, useSendVerificationCodeMutation, useSignInMutation, useSignUpMutation, } from '../../client/hooks';
|
|
11
|
-
import { toaster } from '../../client/utils';
|
|
12
|
-
import { ArrowLeftIcon, CheckIcon } from '../../icons';
|
|
13
|
-
import { Button, Checkbox, Field, PinInput } from '../../ui';
|
|
10
|
+
import { useCooldown, useGlobalStore, useLocaleInfo, useMobileNumberParser, useSendVerificationCodeMutation, useSignInMutation, useSignUpMutation, } from '../../client/hooks/index.js';
|
|
11
|
+
import { toaster } from '../../client/utils/index.js';
|
|
12
|
+
import { ArrowLeftIcon, CheckIcon } from '../../icons/index.js';
|
|
13
|
+
import { Button, Checkbox, Field, PinInput } from '../../ui/index.js';
|
|
14
14
|
export function SignUpForm() {
|
|
15
15
|
const [step, setStep] = useState(1);
|
|
16
16
|
const dialog = useDialogContext();
|
|
@@ -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 SignUpTrigger(props) {
|
|
6
6
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
7
7
|
signUp: ctx.signUp,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
|
-
import { useLocaleInfo, useTopWinsQuery } from '../../client/hooks';
|
|
5
|
-
import { formatNumber, getGameImageUrl } from '../../utils';
|
|
4
|
+
import { useLocaleInfo, useTopWinsQuery } from '../../client/hooks/index.js';
|
|
5
|
+
import { formatNumber, getGameImageUrl } from '../../utils/index.js';
|
|
6
6
|
export function TopWins__client(props) {
|
|
7
7
|
const localeInfo = useLocaleInfo();
|
|
8
8
|
const topWinsQuery = useTopWinsQuery();
|
|
@@ -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 { TournamentCounterItem } from './TournamentCounterItem';
|
|
9
9
|
export function TournamentCounter__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 { TournamentCounter__client } from './TournamentCounter.client';
|
|
3
3
|
export async function TournamentCounter(props) {
|
|
4
4
|
await prefetchJackpotsQuery({
|
|
@@ -3,15 +3,15 @@ import { pick } from 'lodash-es';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { useLocaleInfo } from '../../client/hooks';
|
|
7
|
-
import { ChevronRightIcon, Trophy01Icon } from '../../icons';
|
|
6
|
+
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
7
|
+
import { ChevronRightIcon, Trophy01Icon } from '../../icons/index.js';
|
|
8
8
|
import { Award01Icon } from '../../icons/Award01Icon';
|
|
9
9
|
import { StarIcon } from '../../icons/StarIcon';
|
|
10
10
|
import firstPlace from '../../images/first-place.png';
|
|
11
11
|
import trophyTwo from '../../images/trophy-two.png';
|
|
12
12
|
import trophy from '../../images/trophy.png';
|
|
13
13
|
import Link from 'next/link';
|
|
14
|
-
import { formatNumber } from '../../utils';
|
|
14
|
+
import { formatNumber } from '../../utils/index.js';
|
|
15
15
|
import styles from '../JackpotCounter/JackpotCounterItem.module.css';
|
|
16
16
|
export function TournamentCounterItem({ jackpot, className, viewAllUrl, }) {
|
|
17
17
|
const localeInfo = useLocaleInfo();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { useCallback, useEffect, useState } from 'react';
|
|
5
|
-
import { ArrowLeftIcon, ArrowRightIcon } from '../../icons';
|
|
5
|
+
import { ArrowLeftIcon, ArrowRightIcon } from '../../icons/index.js';
|
|
6
6
|
import fantasmaGames from '../../images/fantasma-games.png';
|
|
7
7
|
import hackSaw from '../../images/hacksaw-gaming.png';
|
|
8
|
-
import { Button } from '../../ui';
|
|
8
|
+
import { Button } from '../../ui/index.js';
|
|
9
9
|
export function TournamentGameProviders() {
|
|
10
10
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
11
11
|
align: 'start',
|
|
@@ -3,14 +3,14 @@ import { pick } from 'lodash-es';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { useLocaleInfo } from '../../client/hooks';
|
|
7
|
-
import { Trophy01Icon } from '../../icons';
|
|
6
|
+
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
7
|
+
import { Trophy01Icon } from '../../icons/index.js';
|
|
8
8
|
import { Award01Icon } from '../../icons/Award01Icon';
|
|
9
9
|
import { StarIcon } from '../../icons/StarIcon';
|
|
10
10
|
import firstPlace from '../../images/first-place.png';
|
|
11
11
|
import trophyTwo from '../../images/trophy-two.png';
|
|
12
12
|
import trophy from '../../images/trophy.png';
|
|
13
|
-
import { formatNumber } from '../../utils';
|
|
13
|
+
import { formatNumber } from '../../utils/index.js';
|
|
14
14
|
import styles from '../JackpotCounter/JackpotCounterItem.module.css';
|
|
15
15
|
import { TournamentGameProviders } from './TournamentGameProviders';
|
|
16
16
|
import { TournamentRules } from './TournamentRules';
|
|
@@ -3,16 +3,16 @@ import { pick } from 'lodash-es';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { useLocaleInfo } from '../../client/hooks';
|
|
7
|
-
import { Trophy01Icon } from '../../icons';
|
|
6
|
+
import { useLocaleInfo } from '../../client/hooks/index.js';
|
|
7
|
+
import { Trophy01Icon } from '../../icons/index.js';
|
|
8
8
|
import { ArrowNarrowDownIcon } from '../../icons/ArrowNarrowDownIcon';
|
|
9
9
|
import { ArrowNarrowUpIcon } from '../../icons/ArrowNarrowUpIcon';
|
|
10
10
|
import { Award01Icon } from '../../icons/Award01Icon';
|
|
11
11
|
import { StarIcon } from '../../icons/StarIcon';
|
|
12
12
|
import firstPlace from '../../images/first-place.png';
|
|
13
13
|
import trophy from '../../images/trophy.png';
|
|
14
|
-
import { Button } from '../../ui';
|
|
15
|
-
import { formatNumber } from '../../utils';
|
|
14
|
+
import { Button } from '../../ui/index.js';
|
|
15
|
+
import { formatNumber } from '../../utils/index.js';
|
|
16
16
|
import { TournamentGameProviders } from './TournamentGameProviders';
|
|
17
17
|
import { TournamentRules } from './TournamentRules';
|
|
18
18
|
export function TournamentItemMobile({ jackpot }) {
|
|
@@ -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 TournamentRules(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 { TournamentItem } from './TournamentItem';
|
|
4
4
|
import { TournamentItemMobile } from './TournamentItemMobile';
|
|
5
5
|
export function Tournaments(props) {
|
|
@@ -3,10 +3,10 @@ import { tz, TZDateMini } from '@date-fns/tz';
|
|
|
3
3
|
import {} from '@opexa/portal-sdk-core';
|
|
4
4
|
import { endOfDay, format, startOfDay } from 'date-fns';
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { useDepositRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks';
|
|
7
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons';
|
|
8
|
-
import { Badge, IconButton, Select, Table } from '../../ui';
|
|
9
|
-
import { capitalize, formatNumber } from '../../utils';
|
|
6
|
+
import { useDepositRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks/index.js';
|
|
7
|
+
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
|
|
8
|
+
import { Badge, IconButton, Select, Table } from '../../ui/index.js';
|
|
9
|
+
import { capitalize, formatNumber } from '../../utils/index.js';
|
|
10
10
|
import { Empty } from '../Empty';
|
|
11
11
|
import { TableFilters } from './TableFilters';
|
|
12
12
|
export function DepositRecordsTable() {
|
|
@@ -2,10 +2,10 @@ import { createListCollection, parseDate, Portal } from '@ark-ui/react';
|
|
|
2
2
|
import { endOfDay, startOfDay } from 'date-fns';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { useControllableState } from '../../client/hooks';
|
|
6
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from '../../icons';
|
|
7
|
-
import { DatePicker, SegmentGroup, Select } from '../../ui';
|
|
8
|
-
import { capitalize } from '../../utils';
|
|
5
|
+
import { useControllableState } from '../../client/hooks/index.js';
|
|
6
|
+
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from '../../icons/index.js';
|
|
7
|
+
import { DatePicker, SegmentGroup, Select } from '../../ui/index.js';
|
|
8
|
+
import { capitalize } from '../../utils/index.js';
|
|
9
9
|
const TabDefinition = z.enum(['all', 'today', 'custom']).catch('all');
|
|
10
10
|
const DEPOSIT_STATUSES = [
|
|
11
11
|
'ACCEPTED',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
import { Tabs } from '../../ui';
|
|
3
|
+
import { Tabs } from '../../ui/index.js';
|
|
4
4
|
import { DepositRecordsTable } from './DepositRecordsTable';
|
|
5
5
|
import { TransactionRecordsTable } from './TransactionRecordsTable';
|
|
6
6
|
import { WithdrawalRecordsTable } from './WithdrawalRecordsTable';
|
|
@@ -2,10 +2,10 @@ import { createListCollection, Portal } from '@ark-ui/react';
|
|
|
2
2
|
import { tz, TZDateMini } from '@date-fns/tz';
|
|
3
3
|
import { endOfDay, format, startOfDay } from 'date-fns';
|
|
4
4
|
import { useState } from 'react';
|
|
5
|
-
import { useInfiniteQueryHelper, useLocaleInfo, useTransactionRecordsQuery, } from '../../client/hooks';
|
|
6
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons';
|
|
7
|
-
import { IconButton, Select, Table } from '../../ui';
|
|
8
|
-
import { capitalize, formatNumber } from '../../utils';
|
|
5
|
+
import { useInfiniteQueryHelper, useLocaleInfo, useTransactionRecordsQuery, } from '../../client/hooks/index.js';
|
|
6
|
+
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
|
|
7
|
+
import { IconButton, Select, Table } from '../../ui/index.js';
|
|
8
|
+
import { capitalize, formatNumber } from '../../utils/index.js';
|
|
9
9
|
import { Empty } from '../Empty';
|
|
10
10
|
import { TableFilters } from './TableFilters';
|
|
11
11
|
export function TransactionRecordsTable() {
|
|
@@ -2,10 +2,10 @@ import { createListCollection, Portal } from '@ark-ui/react';
|
|
|
2
2
|
import { tz, TZDateMini } from '@date-fns/tz';
|
|
3
3
|
import { endOfDay, format, startOfDay } from 'date-fns';
|
|
4
4
|
import { useState } from 'react';
|
|
5
|
-
import { useInfiniteQueryHelper, useLocaleInfo, useWithdrawalRecordsQuery, } from '../../client/hooks';
|
|
6
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons';
|
|
7
|
-
import { Badge, IconButton, Select, Table } from '../../ui';
|
|
8
|
-
import { capitalize, formatNumber } from '../../utils';
|
|
5
|
+
import { useInfiniteQueryHelper, useLocaleInfo, useWithdrawalRecordsQuery, } from '../../client/hooks/index.js';
|
|
6
|
+
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
|
|
7
|
+
import { Badge, IconButton, Select, Table } from '../../ui/index.js';
|
|
8
|
+
import { capitalize, formatNumber } from '../../utils/index.js';
|
|
9
9
|
import { Empty } from '../Empty';
|
|
10
10
|
import { TableFilters } from './TableFilters';
|
|
11
11
|
export function WithdrawalRecordsTable() {
|
package/dist/components/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export * from './Account';
|
|
2
|
-
export * from './AccountInfo';
|
|
3
|
-
export * from './AccountPaymentMethods';
|
|
4
|
-
export * from './AccountSecurity';
|
|
5
|
-
export * from './AccountVerification';
|
|
6
|
-
export * from './Banner';
|
|
7
|
-
export * from './BetRecords';
|
|
8
|
-
export * from './Bonus';
|
|
9
|
-
export * from './Bonuses';
|
|
10
|
-
export * from './DepositWithdrawal';
|
|
11
|
-
export * from './Disclaimer';
|
|
12
|
-
export * from './FavoriteGames';
|
|
13
|
-
export * from './GameLaunch';
|
|
14
|
-
export * from './GameProviders';
|
|
15
|
-
export * from './Games';
|
|
16
|
-
export * from './GamesSearch';
|
|
17
|
-
export * from './JackpotCounter';
|
|
18
|
-
export * from './Jackpots';
|
|
19
|
-
export * from './KYC';
|
|
20
|
-
export * from './Marquee';
|
|
21
|
-
export * from './Messages';
|
|
22
|
-
export * from './PortalProvider';
|
|
23
|
-
export * from './Promo';
|
|
24
|
-
export * from './Promos';
|
|
25
|
-
export * from './Protected';
|
|
26
|
-
export * from './Quests';
|
|
27
|
-
export * from './SignIn';
|
|
28
|
-
export * from './SignUp';
|
|
29
|
-
export * from './TopWins';
|
|
30
|
-
export * from './TournamentCounter';
|
|
31
|
-
export * from './Tournaments';
|
|
32
|
-
export * from './TransactionRecords';
|
|
1
|
+
export * from './Account/index.js';
|
|
2
|
+
export * from './AccountInfo/index.js';
|
|
3
|
+
export * from './AccountPaymentMethods/index.js';
|
|
4
|
+
export * from './AccountSecurity/index.js';
|
|
5
|
+
export * from './AccountVerification/index.js';
|
|
6
|
+
export * from './Banner/index.js';
|
|
7
|
+
export * from './BetRecords/index.js';
|
|
8
|
+
export * from './Bonus/index.js';
|
|
9
|
+
export * from './Bonuses/index.js';
|
|
10
|
+
export * from './DepositWithdrawal/index.js';
|
|
11
|
+
export * from './Disclaimer/index.js';
|
|
12
|
+
export * from './FavoriteGames/index.js';
|
|
13
|
+
export * from './GameLaunch/index.js';
|
|
14
|
+
export * from './GameProviders/index.js';
|
|
15
|
+
export * from './Games/index.js';
|
|
16
|
+
export * from './GamesSearch/index.js';
|
|
17
|
+
export * from './JackpotCounter/index.js';
|
|
18
|
+
export * from './Jackpots/index.js';
|
|
19
|
+
export * from './KYC/index.js';
|
|
20
|
+
export * from './Marquee/index.js';
|
|
21
|
+
export * from './Messages/index.js';
|
|
22
|
+
export * from './PortalProvider/index.js';
|
|
23
|
+
export * from './Promo/index.js';
|
|
24
|
+
export * from './Promos/index.js';
|
|
25
|
+
export * from './Protected/index.js';
|
|
26
|
+
export * from './Quests/index.js';
|
|
27
|
+
export * from './SignIn/index.js';
|
|
28
|
+
export * from './SignUp/index.js';
|
|
29
|
+
export * from './TopWins/index.js';
|
|
30
|
+
export * from './TournamentCounter/index.js';
|
|
31
|
+
export * from './Tournaments/index.js';
|
|
32
|
+
export * from './TransactionRecords/index.js';
|
package/dist/handlers.js
CHANGED
|
@@ -2,7 +2,7 @@ import { authenticate, createSession, destroySession, refreshSession, } from '@o
|
|
|
2
2
|
import { addDays, addMinutes, subMinutes } from 'date-fns';
|
|
3
3
|
import { NextResponse } from 'next/server';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { ACCESS_TOKEN_COOKIE_NAME, BYPASS_RECAPTCHA, ENVIRONMENT, PLATFORM_CODE, RECAPTCHA_HEADER_KEY, REFRESH_TOKEN_COOKIE_NAME, } from './constants';
|
|
5
|
+
import { ACCESS_TOKEN_COOKIE_NAME, BYPASS_RECAPTCHA, ENVIRONMENT, PLATFORM_CODE, RECAPTCHA_HEADER_KEY, REFRESH_TOKEN_COOKIE_NAME, } from './constants/index.js';
|
|
6
6
|
const CreateSessionDefinition = z.union([
|
|
7
7
|
z.object({
|
|
8
8
|
type: z.literal('NAME_AND_PASSWORD'),
|
package/dist/middleware.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { refreshSession } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { addMinutes } from 'date-fns';
|
|
3
3
|
import { NextResponse } from 'next/server';
|
|
4
|
-
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, REFRESH_TOKEN_COOKIE_NAME, } from './constants';
|
|
4
|
+
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, REFRESH_TOKEN_COOKIE_NAME, } from './constants/index.js';
|
|
5
5
|
export const config = {
|
|
6
6
|
matcher: [
|
|
7
7
|
'/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { authenticate as sdkAuthenticate, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { addDays, addMinutes, subMinutes } from 'date-fns';
|
|
3
3
|
import { cookies } from 'next/headers';
|
|
4
|
-
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, PLATFORM_CODE, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants';
|
|
4
|
+
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, PLATFORM_CODE, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants/index.js';
|
|
5
5
|
export async function authenticate(input) {
|
|
6
6
|
const Cookies = await cookies();
|
|
7
7
|
const res = await sdkAuthenticate(input, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cookies } from 'next/headers';
|
|
2
2
|
import { cache } from 'react';
|
|
3
|
-
import { ACCESS_TOKEN_COOKIE_NAME } from '../../constants';
|
|
3
|
+
import { ACCESS_TOKEN_COOKIE_NAME } from '../../constants/index.js';
|
|
4
4
|
export const getSession = cache(async () => {
|
|
5
5
|
const Cookies = await cookies();
|
|
6
6
|
const accessToken = Cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { createSession, } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { addDays, addMinutes, subMinutes } from 'date-fns';
|
|
3
3
|
import { cookies } from 'next/headers';
|
|
4
|
-
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, PLATFORM_CODE, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants';
|
|
4
|
+
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, PLATFORM_CODE, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants/index.js';
|
|
5
5
|
export async function signIn(input) {
|
|
6
6
|
const Cookies = await cookies();
|
|
7
7
|
const res = await createSession(input, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { destroySession } from '@opexa/portal-sdk-core';
|
|
2
2
|
import { cookies } from 'next/headers';
|
|
3
|
-
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants';
|
|
3
|
+
import { ACCESS_TOKEN_COOKIE_NAME, ENVIRONMENT, REFRESH_TOKEN_COOKIE_NAME, } from '../../constants/index.js';
|
|
4
4
|
export async function signOut() {
|
|
5
5
|
const Cookies = await cookies();
|
|
6
6
|
const accessToken = Cookies.get(ACCESS_TOKEN_COOKIE_NAME)?.value;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from './prefetchAccountQuery';
|
|
2
|
-
export * from './prefetchAvailablePromosQuery';
|
|
3
|
-
export * from './prefetchBetRecordsQuery';
|
|
4
|
-
export * from './prefetchBonusesQuery';
|
|
5
|
-
export * from './prefetchCashbacksQuery';
|
|
6
|
-
export * from './prefetchDepositQuery';
|
|
7
|
-
export * from './prefetchDepositRecordsQuery';
|
|
8
|
-
export * from './prefetchFavoriteGamesQuery';
|
|
9
|
-
export * from './prefetchGamesQuery';
|
|
10
|
-
export * from './prefetchInstapayBankListQuery';
|
|
11
|
-
export * from './prefetchIsMayaSessionValidQuery';
|
|
12
|
-
export * from './prefetchJackpotsQuery';
|
|
13
|
-
export * from './prefetchMemberVerificationQuery';
|
|
14
|
-
export * from './prefetchPaymentSettingsQuery';
|
|
15
|
-
export * from './prefetchPlatformQuery';
|
|
16
|
-
export * from './prefetchProfileCompletionQuery';
|
|
17
|
-
export * from './prefetchPromoQuery';
|
|
18
|
-
export * from './prefetchPromosQuery';
|
|
19
|
-
export * from './prefetchSessionQuery';
|
|
20
|
-
export * from './prefetchTopWinsQuery';
|
|
21
|
-
export * from './prefetchTournamentsQuery';
|
|
22
|
-
export * from './prefetchTransactionRecordsQuery';
|
|
23
|
-
export * from './prefetchWalletQuery';
|
|
24
|
-
export * from './prefetchWithdrawalRecordsQuery';
|
|
1
|
+
export * from './prefetchAccountQuery.js';
|
|
2
|
+
export * from './prefetchAvailablePromosQuery.js';
|
|
3
|
+
export * from './prefetchBetRecordsQuery.js';
|
|
4
|
+
export * from './prefetchBonusesQuery.js';
|
|
5
|
+
export * from './prefetchCashbacksQuery.js';
|
|
6
|
+
export * from './prefetchDepositQuery.js';
|
|
7
|
+
export * from './prefetchDepositRecordsQuery.js';
|
|
8
|
+
export * from './prefetchFavoriteGamesQuery.js';
|
|
9
|
+
export * from './prefetchGamesQuery.js';
|
|
10
|
+
export * from './prefetchInstapayBankListQuery.js';
|
|
11
|
+
export * from './prefetchIsMayaSessionValidQuery.js';
|
|
12
|
+
export * from './prefetchJackpotsQuery.js';
|
|
13
|
+
export * from './prefetchMemberVerificationQuery.js';
|
|
14
|
+
export * from './prefetchPaymentSettingsQuery.js';
|
|
15
|
+
export * from './prefetchPlatformQuery.js';
|
|
16
|
+
export * from './prefetchProfileCompletionQuery.js';
|
|
17
|
+
export * from './prefetchPromoQuery.js';
|
|
18
|
+
export * from './prefetchPromosQuery.js';
|
|
19
|
+
export * from './prefetchSessionQuery.js';
|
|
20
|
+
export * from './prefetchTopWinsQuery.js';
|
|
21
|
+
export * from './prefetchTournamentsQuery.js';
|
|
22
|
+
export * from './prefetchTransactionRecordsQuery.js';
|
|
23
|
+
export * from './prefetchWalletQuery.js';
|
|
24
|
+
export * from './prefetchWithdrawalRecordsQuery.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMemberAccount } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getAccountQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getAccountQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchAccountQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAvailablePromos, } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getAvailablePromosQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getAvailablePromosQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchAvailablePromosQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getBetRecords } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getBetRecordsQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getBetRecordsQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchBetRecordsQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getBonuses } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getBonusesQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getBonusesQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchBonusesQuery = async () => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCashbacks } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getCashbacksQueryKey, getQueryClient } from '../../utils';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getCashbacksQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
4
|
export const prefetchCashbacksQuery = async () => {
|
|
5
5
|
await getQueryClient().prefetchQuery({
|
|
6
6
|
queryKey: getCashbacksQueryKey(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDeposit } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getDepositQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getDepositQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchDepositQuery = async (id) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDepositRecords, } from '@opexa/portal-sdk-core';
|
|
2
|
-
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants';
|
|
3
|
-
import { getDepositRecordsQueryKey, getQueryClient } from '../../utils';
|
|
4
|
-
import { getSession } from '../services/getSession';
|
|
2
|
+
import { ENVIRONMENT, PLATFORM_CODE } from '../../constants/index.js';
|
|
3
|
+
import { getDepositRecordsQueryKey, getQueryClient } from '../../utils/index.js';
|
|
4
|
+
import { getSession } from '../services/getSession.js';
|
|
5
5
|
export const prefetchDepositRecordsQuery = async (input) => {
|
|
6
6
|
const session = await getSession();
|
|
7
7
|
if (session.status === 'unauthenticated')
|