@opexa/portal-components 0.0.207 → 0.0.209
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.d.ts +65 -0
- package/dist/client/hooks/index.js +65 -0
- package/dist/client/services/index.d.ts +4 -0
- package/dist/client/services/index.js +4 -0
- package/dist/client/utils/index.d.ts +3 -0
- package/dist/client/utils/index.js +3 -0
- package/dist/components/Bonus/Bonus.client.js +1 -1
- package/dist/components/Cashback/Cashback.client.js +1 -1
- package/dist/components/CustomPromo/CustomPromo.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +2 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/PisoPayWithdrawal/PisoPayWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/TransactionPasswordNotSet.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/TransactionPasswordNotSet.js +23 -0
- package/dist/components/DepositWithdrawal/Withdrawal/VentajaWithdrawal/VentajaWithdrawal.js +2 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -11
- package/dist/components/Empty.d.ts +10 -0
- package/dist/components/Empty.js +7 -0
- package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
- package/dist/components/Games/Game.js +2 -1
- package/dist/components/Games/GameContext.d.ts +2 -0
- package/dist/components/Games/GameContext.js +2 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -1
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +25 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +66 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +17 -0
- package/dist/components/JackpotCounter/JackpotCounter.js +21 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +18 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +109 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -0
- package/dist/components/JackpotCounter/index.d.ts +1 -0
- package/dist/components/JackpotCounter/index.js +1 -0
- package/dist/components/Jackpots/JackpotDesktop.d.ts +1 -0
- package/dist/components/Jackpots/JackpotDesktop.js +45 -0
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +5 -0
- package/dist/components/Jackpots/JackpotGameProviders.js +41 -0
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
- package/dist/components/Jackpots/JackpotItemDesktop.js +43 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +9 -0
- package/dist/components/Jackpots/JackpotItemMobile.js +44 -0
- package/dist/components/Jackpots/JackpotMobile.d.ts +1 -0
- package/dist/components/Jackpots/JackpotMobile.js +46 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +5 -0
- package/dist/components/Jackpots/JackpotRules.js +11 -0
- package/dist/components/Jackpots/Jackpots.client.d.ts +2 -0
- package/dist/components/Jackpots/Jackpots.client.js +29 -0
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsContext.d.ts +4 -0
- package/dist/components/Jackpots/JackpotsContext.js +3 -0
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
- package/dist/components/Jackpots/useJackpotData.d.ts +14 -0
- package/dist/components/Jackpots/useJackpotData.js +93 -0
- package/dist/components/Jackpots/useJackpotItemData.d.ts +20 -0
- package/dist/components/Jackpots/useJackpotItemData.js +87 -0
- package/dist/components/KYC/AutoOpen.js +8 -3
- package/dist/components/KYC/Header.d.ts +1 -0
- package/dist/components/KYC/Header.js +6 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +12 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +12 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +11 -0
- package/dist/components/KYC/Step4.d.ts +1 -0
- package/dist/components/KYC/Step4.js +6 -0
- package/dist/components/KYC/backup/KYCContext.d.ts +1 -5
- package/dist/components/KYC/utils.js +23 -22
- package/dist/components/Messages/MessageContext.d.ts +1 -5
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +34 -0
- package/dist/components/News/News.js +1 -1
- package/dist/components/Promo/Promo.client.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +5 -10
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
- package/dist/components/Quests/WageringQuest/WageringQuest.js +2 -3
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -4
- package/dist/components/Search/Search.lazy.js +1 -1
- package/dist/components/SignUp/SignUpForm.js +1 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +50 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounter.js +21 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.js +106 -0
- package/dist/components/TournamentCounter/index.d.ts +1 -0
- package/dist/components/TournamentCounter/index.js +1 -0
- package/dist/components/Tournaments/TournamentDesktop.d.ts +1 -0
- package/dist/components/Tournaments/TournamentDesktop.js +57 -0
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +5 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +38 -0
- package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
- package/dist/components/Tournaments/TournamentItemDesktop.js +56 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +7 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +54 -0
- package/dist/components/Tournaments/TournamentMobile.d.ts +1 -0
- package/dist/components/Tournaments/TournamentMobile.js +55 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +5 -0
- package/dist/components/Tournaments/TournamentRules.js +11 -0
- package/dist/components/Tournaments/Tournaments.client.d.ts +2 -0
- package/dist/components/Tournaments/Tournaments.client.js +20 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsContext.d.ts +4 -0
- package/dist/components/Tournaments/TournamentsContext.js +3 -0
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/components/Tournaments/useTournamentData.d.ts +10 -0
- package/dist/components/Tournaments/useTournamentData.js +72 -0
- package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
- package/dist/components/Tournaments/useTournamentItemData.js +64 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +33 -0
- package/dist/constants/envVars.d.ts +5 -0
- package/dist/constants/envVars.js +28 -0
- package/dist/constants/gameProviders.d.ts +5 -0
- package/dist/constants/gameProviders.js +362 -0
- package/dist/constants/gameTypes.d.ts +4 -0
- package/dist/constants/gameTypes.js +64 -0
- package/dist/constants/headerKeys.d.ts +1 -0
- package/dist/constants/headerKeys.js +1 -0
- package/dist/constants/secretQuestions.d.ts +3 -0
- package/dist/constants/secretQuestions.js +24 -0
- package/dist/constants/storageKeys.d.ts +2 -0
- package/dist/constants/storageKeys.js +2 -0
- package/dist/icons/PasscodeLockIcon.d.ts +2 -0
- package/dist/icons/PasscodeLockIcon.js +4 -0
- package/dist/icons/index.d.ts +65 -0
- package/dist/icons/index.js +65 -0
- package/dist/images/hacksaw-gaming.png +0 -0
- package/dist/server/services/index.d.ts +4 -0
- package/dist/server/services/index.js +4 -0
- package/dist/server/utils/index.d.ts +29 -0
- package/dist/server/utils/index.js +29 -0
- package/dist/services/queries.js +2504 -2504
- package/dist/styles/theme.css +694 -693
- package/dist/ui/Presence.d.ts +2 -0
- package/dist/ui/Presence.js +7 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +5 -0
- package/dist/ui/index.d.ts +26 -0
- package/dist/ui/index.js +26 -0
- package/dist/utils/getGameImageUrl.d.ts +1 -1
- package/dist/utils/getGameImageUrl.js +16 -1
- package/dist/utils/getGameName.d.ts +1 -0
- package/dist/utils/getGameName.js +6 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isMobile.js +9 -0
- package/dist/utils/resizeImageSize.d.ts +0 -1
- package/dist/utils/resizeImageSize.js +0 -5
- package/package.json +164 -164
- package/dist/components/KYC/loadModels.d.ts +0 -1
- package/dist/components/KYC/loadModels.js +0 -9
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
- package/dist/constants/BranchCode.d.ts +0 -4
- package/dist/constants/BranchCode.js +0 -42
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export * from './useAccountQuery';
|
|
2
|
+
export * from './useAuthenticateMutation';
|
|
3
|
+
export * from './useAvailablePromosQuery';
|
|
4
|
+
export * from './useAvailableQuestsQuery';
|
|
5
|
+
export * from './useBetRecordsQuery';
|
|
6
|
+
export * from './useBonusesQuery';
|
|
7
|
+
export * from './useBonusQuery';
|
|
8
|
+
export * from './useCashbackBonusesQuery';
|
|
9
|
+
export * from './useCashbackBonusQuery';
|
|
10
|
+
export * from './useCashbackQuery';
|
|
11
|
+
export * from './useCashbacksQuery';
|
|
12
|
+
export * from './useCheckInDailyCheckInQuestMutation';
|
|
13
|
+
export * from './useChunk';
|
|
14
|
+
export * from './useClaimCashbackBonusMutation';
|
|
15
|
+
export * from './useClaimSpotBonusMutation';
|
|
16
|
+
export * from './useControllableState';
|
|
17
|
+
export * from './useCooldown';
|
|
18
|
+
export * from './useCreateGameSessionMutation';
|
|
19
|
+
export * from './useCreateGCashDepositMutation';
|
|
20
|
+
export * from './useCreateGCashWithdrawalMutation';
|
|
21
|
+
export * from './useCreateInstapayWithdrawalMutation';
|
|
22
|
+
export * from './useCreateMayaAppDepositMutation';
|
|
23
|
+
export * from './useCreateMayaAppWithdrawalMutation';
|
|
24
|
+
export * from './useCreateMayaDepositMutation';
|
|
25
|
+
export * from './useCreateMayaWithdrawalMutation';
|
|
26
|
+
export * from './useCreateOnlineBankDepositMutation';
|
|
27
|
+
export * from './useCreateQRPHDepositMutation';
|
|
28
|
+
export * from './useDepositQuery';
|
|
29
|
+
export * from './useDepositRecordsQuery';
|
|
30
|
+
export * from './useDepositsCountQuery';
|
|
31
|
+
export * from './useDisclosure';
|
|
32
|
+
export * from './useEndGameSessionMutation';
|
|
33
|
+
export * from './useFavoriteGamesQuery';
|
|
34
|
+
export * from './useGamesQuery';
|
|
35
|
+
export * from './useGlobalStore';
|
|
36
|
+
export * from './useInfiniteQueryHelper';
|
|
37
|
+
export * from './useInstapayBankListQuery';
|
|
38
|
+
export * from './useIsMayaSessionValidQuery';
|
|
39
|
+
export * from './useJackpotsQuery';
|
|
40
|
+
export * from './useLocaleInfo';
|
|
41
|
+
export * from './useMarkGameAsFavoriteMutation';
|
|
42
|
+
export * from './useMarkMessageAsReadMutation';
|
|
43
|
+
export * from './useMemberVerificationQuery';
|
|
44
|
+
export * from './useMessagesQuery';
|
|
45
|
+
export * from './useMobileNumberParser';
|
|
46
|
+
export * from './useOnMMA';
|
|
47
|
+
export * from './usePaymentSettingsQuery';
|
|
48
|
+
export * from './usePlatformQuery';
|
|
49
|
+
export * from './useProfileCompletionQuery';
|
|
50
|
+
export * from './usePromoQuery';
|
|
51
|
+
export * from './usePromosQuery';
|
|
52
|
+
export * from './useRemainingTime';
|
|
53
|
+
export * from './useSendVerificationCodeMutation';
|
|
54
|
+
export * from './useSessionQuery';
|
|
55
|
+
export * from './useSignInMutation';
|
|
56
|
+
export * from './useSignOutMutation';
|
|
57
|
+
export * from './useSignUpMutation';
|
|
58
|
+
export * from './useTopWinsQuery';
|
|
59
|
+
export * from './useTournamentsQuery';
|
|
60
|
+
export * from './useTransactionRecordsQuery';
|
|
61
|
+
export * from './useUnmarkGameAsFavoriteMutation';
|
|
62
|
+
export * from './useUnreadMessagesCountQuery';
|
|
63
|
+
export * from './useUpdateAccountMutation';
|
|
64
|
+
export * from './useWalletQuery';
|
|
65
|
+
export * from './useWithdrawalRecordsQuery';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export * from './useAccountQuery.js';
|
|
2
|
+
export * from './useAuthenticateMutation.js';
|
|
3
|
+
export * from './useAvailablePromosQuery.js';
|
|
4
|
+
export * from './useAvailableQuestsQuery.js';
|
|
5
|
+
export * from './useBetRecordsQuery.js';
|
|
6
|
+
export * from './useBonusesQuery.js';
|
|
7
|
+
export * from './useBonusQuery.js';
|
|
8
|
+
export * from './useCashbackBonusesQuery.js';
|
|
9
|
+
export * from './useCashbackBonusQuery.js';
|
|
10
|
+
export * from './useCashbackQuery.js';
|
|
11
|
+
export * from './useCashbacksQuery.js';
|
|
12
|
+
export * from './useCheckInDailyCheckInQuestMutation.js';
|
|
13
|
+
export * from './useChunk.js';
|
|
14
|
+
export * from './useClaimCashbackBonusMutation.js';
|
|
15
|
+
export * from './useClaimSpotBonusMutation.js';
|
|
16
|
+
export * from './useControllableState.js';
|
|
17
|
+
export * from './useCooldown.js';
|
|
18
|
+
export * from './useCreateGameSessionMutation.js';
|
|
19
|
+
export * from './useCreateGCashDepositMutation.js';
|
|
20
|
+
export * from './useCreateGCashWithdrawalMutation.js';
|
|
21
|
+
export * from './useCreateInstapayWithdrawalMutation.js';
|
|
22
|
+
export * from './useCreateMayaAppDepositMutation.js';
|
|
23
|
+
export * from './useCreateMayaAppWithdrawalMutation.js';
|
|
24
|
+
export * from './useCreateMayaDepositMutation.js';
|
|
25
|
+
export * from './useCreateMayaWithdrawalMutation.js';
|
|
26
|
+
export * from './useCreateOnlineBankDepositMutation.js';
|
|
27
|
+
export * from './useCreateQRPHDepositMutation.js';
|
|
28
|
+
export * from './useDepositQuery.js';
|
|
29
|
+
export * from './useDepositRecordsQuery.js';
|
|
30
|
+
export * from './useDepositsCountQuery.js';
|
|
31
|
+
export * from './useDisclosure.js';
|
|
32
|
+
export * from './useEndGameSessionMutation.js';
|
|
33
|
+
export * from './useFavoriteGamesQuery.js';
|
|
34
|
+
export * from './useGamesQuery.js';
|
|
35
|
+
export * from './useGlobalStore.js';
|
|
36
|
+
export * from './useInfiniteQueryHelper.js';
|
|
37
|
+
export * from './useInstapayBankListQuery.js';
|
|
38
|
+
export * from './useIsMayaSessionValidQuery.js';
|
|
39
|
+
export * from './useJackpotsQuery.js';
|
|
40
|
+
export * from './useLocaleInfo.js';
|
|
41
|
+
export * from './useMarkGameAsFavoriteMutation.js';
|
|
42
|
+
export * from './useMarkMessageAsReadMutation.js';
|
|
43
|
+
export * from './useMemberVerificationQuery.js';
|
|
44
|
+
export * from './useMessagesQuery.js';
|
|
45
|
+
export * from './useMobileNumberParser.js';
|
|
46
|
+
export * from './useOnMMA.js';
|
|
47
|
+
export * from './usePaymentSettingsQuery.js';
|
|
48
|
+
export * from './usePlatformQuery.js';
|
|
49
|
+
export * from './useProfileCompletionQuery.js';
|
|
50
|
+
export * from './usePromoQuery.js';
|
|
51
|
+
export * from './usePromosQuery.js';
|
|
52
|
+
export * from './useRemainingTime.js';
|
|
53
|
+
export * from './useSendVerificationCodeMutation.js';
|
|
54
|
+
export * from './useSessionQuery.js';
|
|
55
|
+
export * from './useSignInMutation.js';
|
|
56
|
+
export * from './useSignOutMutation.js';
|
|
57
|
+
export * from './useSignUpMutation.js';
|
|
58
|
+
export * from './useTopWinsQuery.js';
|
|
59
|
+
export * from './useTournamentsQuery.js';
|
|
60
|
+
export * from './useTransactionRecordsQuery.js';
|
|
61
|
+
export * from './useUnmarkGameAsFavoriteMutation.js';
|
|
62
|
+
export * from './useUnreadMessagesCountQuery.js';
|
|
63
|
+
export * from './useUpdateAccountMutation.js';
|
|
64
|
+
export * from './useWalletQuery.js';
|
|
65
|
+
export * from './useWithdrawalRecordsQuery.js';
|
|
@@ -13,7 +13,7 @@ import piggyBank from '../../images/piggy-bank.png';
|
|
|
13
13
|
import { Badge } from '../../ui/Badge/index.js';
|
|
14
14
|
import { Collapsible } from '../../ui/Collapsible/index.js';
|
|
15
15
|
import { Progress } from '../../ui/Progress/index.js';
|
|
16
|
-
import { Prose } from '../../ui/Prose
|
|
16
|
+
import { Prose } from '../../ui/Prose.js';
|
|
17
17
|
import { capitalize } from '../../utils/capitalize.js';
|
|
18
18
|
import { formatNumber } from '../../utils/formatNumber.js';
|
|
19
19
|
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
@@ -11,7 +11,7 @@ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
|
11
11
|
import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
|
|
12
12
|
import { ChevronLeftIcon } from '../../icons/ChevronLeftIcon.js';
|
|
13
13
|
import { Button } from '../../ui/Button/index.js';
|
|
14
|
-
import { Prose } from '../../ui/Prose
|
|
14
|
+
import { Prose } from '../../ui/Prose.js';
|
|
15
15
|
export function Cashback__client(props) {
|
|
16
16
|
const availablePromosQuery = useAvailablePromosQuery();
|
|
17
17
|
const cashbackQuery = useCashbackQuery(props.id);
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import Link from 'next/link';
|
|
5
5
|
import { ChevronLeftIcon } from '../../icons/ChevronLeftIcon.js';
|
|
6
|
-
import { Prose } from '../../ui/Prose
|
|
6
|
+
import { Prose } from '../../ui/Prose.js';
|
|
7
7
|
import { stripTags } from '../../utils/stripTags.js';
|
|
8
8
|
export function CustomPromo(props) {
|
|
9
9
|
return (_jsxs(_Fragment, { children: [_jsx("meta", { name: "description", content: stripTags(props.promo.description) }), _jsx("meta", { name: "og:title", content: props.promo.name }), _jsx("meta", { name: "og:description", content: stripTags(props.promo.description) }), _jsx("meta", { name: "og:image", content: props.promo.banner }), _jsx("meta", { name: "twitter:title", content: props.promo.name }), _jsx("meta", { name: "twitter:description", content: stripTags(props.promo.description) }), _jsx("meta", { name: "twitter:image", content: props.promo.banner }), _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), _jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllPromosUrl ?? '/promos', className: "text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to all Promotions"] }), _jsx(Image, { src: props.promo.banner, alt: "", width: 1024, height: 600, priority: true, unoptimized: true, className: "mt-xl h-auto w-full rounded-xl lg:mt-6" }), _jsx("h1", { className: "mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: props.promo.name }), _jsx(Prose, { className: "mt-2xl lg:mt-6", dangerouslySetInnerHTML: {
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const OnlineBankDepositContext: (props: {
|
|
2
2
|
value: {
|
|
3
|
-
view: "
|
|
3
|
+
view: "form" | "vca";
|
|
4
4
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
5
5
|
verify: () => void;
|
|
6
6
|
reset: () => void;
|
|
@@ -13,7 +13,7 @@ export declare const OnlineBankDepositContext: (props: {
|
|
|
13
13
|
} & {
|
|
14
14
|
children?: import("react").ReactNode | undefined;
|
|
15
15
|
}) => React.ReactNode, useOnlineBankDepositContext: () => {
|
|
16
|
-
view: "
|
|
16
|
+
view: "form" | "vca";
|
|
17
17
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
18
18
|
verify: () => void;
|
|
19
19
|
reset: () => void;
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Deposit } from '../../../../types';
|
|
2
2
|
export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
|
|
3
3
|
export declare function useOnlineBankDeposit(): {
|
|
4
|
-
view: "
|
|
4
|
+
view: "form" | "vca";
|
|
5
5
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const QRPHDepositContext: (props: {
|
|
2
2
|
value: {
|
|
3
|
-
view: "
|
|
3
|
+
view: "form" | "qrCode";
|
|
4
4
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
5
5
|
verify: () => void;
|
|
6
6
|
reset: () => void;
|
|
@@ -13,7 +13,7 @@ export declare const QRPHDepositContext: (props: {
|
|
|
13
13
|
} & {
|
|
14
14
|
children?: import("react").ReactNode | undefined;
|
|
15
15
|
}) => React.ReactNode, useQRPHDepositContext: () => {
|
|
16
|
-
view: "
|
|
16
|
+
view: "form" | "qrCode";
|
|
17
17
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
18
18
|
verify: () => void;
|
|
19
19
|
reset: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Deposit } from '../../../../types';
|
|
2
2
|
export type UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
|
|
3
3
|
export declare function useQRPHDeposit(): {
|
|
4
|
-
view: "
|
|
4
|
+
view: "form" | "qrCode";
|
|
5
5
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
@@ -3,5 +3,7 @@ export interface DepositWithdrawalProps {
|
|
|
3
3
|
termsOfUseUrl?: string;
|
|
4
4
|
/** @default "/privacy-policy" */
|
|
5
5
|
privacyPolicyUrl?: string;
|
|
6
|
+
/** @default "/account/security" */
|
|
7
|
+
accountSecurityUrl?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare function DepositWithdrawal(props: DepositWithdrawalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,6 +26,7 @@ import { Portal } from '../../../../ui/Portal/index.js';
|
|
|
26
26
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
27
27
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
28
28
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
29
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
29
30
|
export function GCashWithdrawal() {
|
|
30
31
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
31
32
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -117,7 +118,7 @@ export function GCashWithdrawal() {
|
|
|
117
118
|
shouldDirty: true,
|
|
118
119
|
shouldValidate: true,
|
|
119
120
|
});
|
|
120
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
121
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
121
122
|
if (!details.open) {
|
|
122
123
|
setStatus('waiting');
|
|
123
124
|
}
|
package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js
CHANGED
|
@@ -28,6 +28,7 @@ import { Select } from '../../../../ui/Select/index.js';
|
|
|
28
28
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
29
29
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
30
30
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
31
32
|
export function InstapayWithdrawal() {
|
|
32
33
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
33
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -141,7 +142,7 @@ export function InstapayWithdrawal() {
|
|
|
141
142
|
shouldDirty: true,
|
|
142
143
|
shouldValidate: true,
|
|
143
144
|
});
|
|
144
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
145
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
145
146
|
if (!details.open) {
|
|
146
147
|
setStatus('waiting');
|
|
147
148
|
}
|
|
@@ -24,6 +24,7 @@ import { Portal } from '../../../../ui/Portal/index.js';
|
|
|
24
24
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
25
25
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
26
26
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
27
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
27
28
|
export function MayaAppWithdrawal() {
|
|
28
29
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
29
30
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -107,7 +108,7 @@ export function MayaAppWithdrawal() {
|
|
|
107
108
|
shouldDirty: true,
|
|
108
109
|
shouldValidate: true,
|
|
109
110
|
});
|
|
110
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
111
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
111
112
|
if (!details.open) {
|
|
112
113
|
setStatus('waiting');
|
|
113
114
|
}
|
|
@@ -26,6 +26,7 @@ import { Portal } from '../../../../ui/Portal/index.js';
|
|
|
26
26
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
27
27
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
28
28
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
29
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
29
30
|
export function MayaWithdrawal() {
|
|
30
31
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
31
32
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -117,7 +118,7 @@ export function MayaWithdrawal() {
|
|
|
117
118
|
shouldDirty: true,
|
|
118
119
|
shouldValidate: true,
|
|
119
120
|
});
|
|
120
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
121
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
121
122
|
if (!details.open) {
|
|
122
123
|
setStatus('waiting');
|
|
123
124
|
}
|
|
@@ -28,6 +28,7 @@ import { Select } from '../../../../ui/Select/index.js';
|
|
|
28
28
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
29
29
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
30
30
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
31
32
|
export function PisoPayWithdrawal() {
|
|
32
33
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
33
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -138,7 +139,7 @@ export function PisoPayWithdrawal() {
|
|
|
138
139
|
shouldDirty: true,
|
|
139
140
|
shouldValidate: true,
|
|
140
141
|
});
|
|
141
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
142
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
142
143
|
if (!details.open) {
|
|
143
144
|
setStatus('waiting');
|
|
144
145
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TransactionPasswordNotSet(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import { useShallow } from 'zustand/shallow';
|
|
4
|
+
import { useAccountQuery } from '../../../client/hooks/useAccountQuery.js';
|
|
5
|
+
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
6
|
+
import { ArrowRightIcon } from '../../../icons/ArrowRightIcon.js';
|
|
7
|
+
import { PasscodeLockIcon } from '../../../icons/PasscodeLockIcon.js';
|
|
8
|
+
import { useDepositWithdrawalPropsContext } from '../DepositWithdrawalContext.js';
|
|
9
|
+
export function TransactionPasswordNotSet() {
|
|
10
|
+
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
11
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
12
|
+
depositWithdrawal: ctx.depositWithdrawal,
|
|
13
|
+
})));
|
|
14
|
+
const accountQuery = useAccountQuery();
|
|
15
|
+
const account = accountQuery.data;
|
|
16
|
+
if (!account)
|
|
17
|
+
return null;
|
|
18
|
+
if (account.transactionPassword)
|
|
19
|
+
return null;
|
|
20
|
+
return (_jsxs("div", { className: "border-border-primary bg-bg-primary-alt mt-lg rounded-xl border p-xl", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-8.5 items-center justify-center rounded-full border-[1.667px]", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-6.5 items-center justify-center rounded-full border-[1.667px]", children: _jsx(PasscodeLockIcon, { className: "text-text-warning-primary size-5" }) }) }), _jsx("p", { className: "text-text-tertiary-600 mt-lg text-sm", children: "It looks like you haven\u2019t set up your transaction password yet. You can do it now." }), _jsxs(Link, { href: depositWithdrawalProps.accountSecurityUrl ?? '/account/security', className: "text-brand- text-brand-400 mt-lg flex items-center gap-sm text-sm font-semibold", onClick: () => {
|
|
21
|
+
globalStore.depositWithdrawal.setOpen(false);
|
|
22
|
+
}, children: ["Set transaction password", _jsx(ArrowRightIcon, { className: "text-text-brand-700 size-5" })] })] }));
|
|
23
|
+
}
|
|
@@ -28,6 +28,7 @@ import { Select } from '../../../../ui/Select/index.js';
|
|
|
28
28
|
import { parseDecimal } from '../../../../utils/parseDecimal.js';
|
|
29
29
|
import { AmountChoices } from '../../AmountChoices.js';
|
|
30
30
|
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
31
|
+
import { TransactionPasswordNotSet } from '../TransactionPasswordNotSet.js';
|
|
31
32
|
export function VentajaWithdrawal() {
|
|
32
33
|
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
33
34
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
@@ -141,7 +142,7 @@ export function VentajaWithdrawal() {
|
|
|
141
142
|
shouldDirty: true,
|
|
142
143
|
shouldValidate: true,
|
|
143
144
|
});
|
|
144
|
-
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs("p", { className: "mt-
|
|
145
|
+
}, min: minimumAmount, max: maximumAmount, className: "mt-xl" }), _jsxs(Field.Root, { className: "mt-3xl", invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Transaction Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx(TransactionPasswordNotSet, {}), _jsx(Button, { type: "submit", className: "mt-6", disabled: createWithdrawalMutation.isPending, children: "Withdraw" }), _jsxs("p", { className: "text-text-tertiary-600 mt-lg text-xs", children: ["Upon withdrawing, you agree to our", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/terms-of-use', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Terms of Use" }), ' ', "and", ' ', _jsx(Link, { href: depositWithdrawalProps.termsOfUseUrl ?? '/privacy-policy', onClick: () => globalStore.depositWithdrawal.setOpen(false), className: "text-text-warning-primary-600 underline underline-offset-2", children: "Privacy Policy" }), "."] }), _jsx(AlertDialog.Root, { open: status !== 'waiting', onOpenChange: (details) => {
|
|
145
146
|
if (!details.open) {
|
|
146
147
|
setStatus('waiting');
|
|
147
148
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { useShallow } from 'zustand/shallow';
|
|
4
|
-
import { useAccountQuery } from '../../../client/hooks/useAccountQuery.js';
|
|
5
4
|
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
6
5
|
import { useIsMayaSessionValidQuery } from '../../../client/hooks/useIsMayaSessionValidQuery.js';
|
|
7
6
|
import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
|
|
@@ -24,8 +23,6 @@ export function Withdrawal() {
|
|
|
24
23
|
const [onMMA] = useOnMMA();
|
|
25
24
|
const walletQuery = useWalletQuery();
|
|
26
25
|
const wallet = walletQuery.data;
|
|
27
|
-
const accountQuery = useAccountQuery();
|
|
28
|
-
const account = accountQuery.data;
|
|
29
26
|
const paymentSettingsQuery = usePaymentSettingsQuery();
|
|
30
27
|
const paymentSettings = paymentSettingsQuery.data;
|
|
31
28
|
const isMayaSessionValidQuery = useIsMayaSessionValidQuery();
|
|
@@ -79,8 +76,7 @@ export function Withdrawal() {
|
|
|
79
76
|
setPaymentMethod(enabledPaymentMethods[0]);
|
|
80
77
|
}
|
|
81
78
|
}, [enabledPaymentMethods, paymentMethod]);
|
|
82
|
-
if (
|
|
83
|
-
walletQuery.isLoading ||
|
|
79
|
+
if (walletQuery.isLoading ||
|
|
84
80
|
paymentSettingsQuery.isLoading ||
|
|
85
81
|
isMayaSessionValidQuery.isLoading ||
|
|
86
82
|
memberVerificationQuery.isLoading) {
|
|
@@ -92,9 +88,6 @@ export function Withdrawal() {
|
|
|
92
88
|
if (parseDecimal(wallet?.balance, 0) < 1) {
|
|
93
89
|
return _jsx(InsufficientBalance, {});
|
|
94
90
|
}
|
|
95
|
-
if (!account?.transactionPassword) {
|
|
96
|
-
return _jsx(TransactionPasswordNotSet, {});
|
|
97
|
-
}
|
|
98
91
|
if (!memberVerification ||
|
|
99
92
|
memberVerification.status === 'REJECTED' ||
|
|
100
93
|
memberVerification.status === 'UNVERIFIED') {
|
|
@@ -105,9 +98,6 @@ export function Withdrawal() {
|
|
|
105
98
|
}
|
|
106
99
|
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: setPaymentMethod, options: enabledPaymentMethods }), paymentMethod === 'GCASH' && _jsx(GCashWithdrawal, {}), paymentMethod === 'MAYA' && _jsx(MayaWithdrawal, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppWithdrawal, {}), paymentMethod === 'INSTAPAY' && _jsx(InstapayWithdrawal, {}), paymentMethod === 'VENTAJA' && _jsx(VentajaWithdrawal, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayWithdrawal, {})] }));
|
|
107
100
|
}
|
|
108
|
-
function TransactionPasswordNotSet() {
|
|
109
|
-
return (_jsxs("div", { className: "pt-xl", children: [_jsx("div", { className: "bg-bg-warning-secondary mx-auto flex size-12 items-center justify-center rounded-full", children: _jsx(AlertCircleIcon, { className: "text-text-featured-icon-light-warning size-6" }) }), _jsx("h2", { className: "mt-lg text-center text-lg font-semibold", children: "Transaction Password Not Set" }), _jsx("p", { className: "text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: "To proceed with withdrawals, you must first set up a transaction password. This ensures the security of your account and transactions." })] }));
|
|
110
|
-
}
|
|
111
101
|
function AccountVerificationRequired() {
|
|
112
102
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
113
103
|
kyc: ctx.kyc,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentType } from 'react';
|
|
2
|
+
interface EmptyProps {
|
|
3
|
+
icon: ComponentType<ComponentProps<'svg'>>;
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Empty(props: EmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function Empty(props) {
|
|
3
|
+
return (_jsxs("div", { role: "alert", "aria-live": "polite", style: props.style, className: props.className, children: [_jsxs("div", { className: "relative mx-auto w-[9.5rem] pt-4", children: [_jsx("div", { className: "bg-utility-gray-200 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full" }), _jsx(CloudIcon, { className: "relative h-auto w-full shrink-0" }), _jsx("div", { className: "bg-utility-gray-200/40 absolute bottom-2 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm", children: _jsx(props.icon, { className: "size-6 text-white" }) }), _jsx("div", { className: "bg-utility-gray-200 absolute left-4 top-3.5 size-2.5 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute bottom-0.5 left-3 size-3.5 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute right-3.5 top-1 size-2 rounded-full" }), _jsx("div", { className: "bg-utility-gray-200 absolute right-0 top-6.5 size-3.5 rounded-full" })] }), _jsx("h2", { className: "mt-xl text-center font-semibold", children: props.title }), _jsx("p", { className: "text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: props.message })] }));
|
|
4
|
+
}
|
|
5
|
+
function CloudIcon(props) {
|
|
6
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 152 104", fill: "none", ...props, children: [_jsxs("g", { filter: "url(#filter0_dd_2719_19242)", children: [_jsx("path", { d: "M77.6 0C66.8273 0 57.2978 5.32329 51.4987 13.4829C49.605 13.0363 47.6301 12.8 45.6 12.8C31.4615 12.8 20 24.2615 20 38.4C20 52.5385 31.4615 64 45.6 64L109.6 64C121.971 64 132 53.9712 132 41.6C132 29.2288 121.971 19.2 109.6 19.2C108.721 19.2 107.854 19.2506 107.002 19.349C102.098 7.9677 90.7797 0 77.6 0Z", fill: "#F9FAFB" }), _jsx("ellipse", { cx: "45.6", cy: "38.4008", rx: "25.6", ry: "25.6", fill: "url(#paint0_linear_2719_19242)" }), _jsx("circle", { cx: "77.6", cy: "32", r: "32", fill: "url(#paint1_linear_2719_19242)" }), _jsx("ellipse", { cx: "109.6", cy: "41.5992", rx: "22.4", ry: "22.4", fill: "url(#paint2_linear_2719_19242)" })] }), _jsxs("defs", { children: [_jsxs("filter", { id: "filter0_dd_2719_19242", x: "0", y: "0", width: "152", height: "104", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect1_dropShadow_2719_19242" }), _jsx("feOffset", { dy: "8" }), _jsx("feGaussianBlur", { stdDeviation: "4" }), _jsx("feComposite", { in2: "hardAlpha", operator: "out" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0" }), _jsx("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_2719_19242" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect2_dropShadow_2719_19242" }), _jsx("feOffset", { dy: "20" }), _jsx("feGaussianBlur", { stdDeviation: "12" }), _jsx("feComposite", { in2: "hardAlpha", operator: "out" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0" }), _jsx("feBlend", { mode: "normal", in2: "effect1_dropShadow_2719_19242", result: "effect2_dropShadow_2719_19242" }), _jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect2_dropShadow_2719_19242", result: "shape" })] }), _jsxs("linearGradient", { id: "paint0_linear_2719_19242", x1: "25.9429", y1: "21.4865", x2: "71.2", y2: "64.0007", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "paint1_linear_2719_19242", x1: "53.0286", y1: "10.8571", x2: "109.6", y2: "64", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "paint2_linear_2719_19242", x1: "92.4", y1: "26.7992", x2: "132", y2: "63.9992", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#D0D5DD" }), _jsx("stop", { offset: "0.350715", stopColor: "white", stopOpacity: "0" })] })] })] }));
|
|
7
|
+
}
|
|
@@ -22,7 +22,7 @@ import { AlertDialog } from '../../ui/AlertDialog/index.js';
|
|
|
22
22
|
import { Button } from '../../ui/Button/index.js';
|
|
23
23
|
import { IconButton } from '../../ui/IconButton/index.js';
|
|
24
24
|
import { Portal } from '../../ui/Portal/index.js';
|
|
25
|
-
import { Presence } from '../../ui/Presence
|
|
25
|
+
import { Presence } from '../../ui/Presence.js';
|
|
26
26
|
export function GameLaunch() {
|
|
27
27
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
28
28
|
gameLaunch: ctx.gameLaunch,
|
|
@@ -9,6 +9,7 @@ import { useUnmarkGameAsFavoriteMutation } from '../../client/hooks/useUnmarkGam
|
|
|
9
9
|
import { toaster } from '../../client/utils/toaster.js';
|
|
10
10
|
import { Star01Icon } from '../../icons/Star01Icon.js';
|
|
11
11
|
import { getGameImageUrl } from '../../utils/getGameImageUrl.js';
|
|
12
|
+
import { getGameName } from '../../utils/getGameName.js';
|
|
12
13
|
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
13
14
|
import { BadgeNew } from './BadgeNew.js';
|
|
14
15
|
import { BadgePopular } from './BadgePopular.js';
|
|
@@ -69,5 +70,5 @@ export function Game(props) {
|
|
|
69
70
|
: 'text-white') }) })), _jsx(Image, { src: getGameImageUrl({
|
|
70
71
|
reference: game.reference,
|
|
71
72
|
provider: game.provider,
|
|
72
|
-
}), alt: "", width: 200, height: 200, loading: "lazy", unoptimized: true, className: "aspect-square w-full rounded-t-md object-cover" }), _jsx("span", { className: twMerge('bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-3.5 text-center text-xs font-semibold', classNames.title), children: game.name })] }));
|
|
73
|
+
}), alt: "", width: 200, height: 200, loading: "lazy", unoptimized: true, className: "aspect-square w-full rounded-t-md object-cover" }), _jsx("span", { className: twMerge('bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-3.5 text-center text-xs font-semibold', classNames.title), children: getGameName(game.reference, game.name) })] }));
|
|
73
74
|
}
|
|
@@ -8,7 +8,7 @@ import { SearchLgIcon } from '../../icons/SearchLgIcon.js';
|
|
|
8
8
|
import { Button } from '../../ui/Button/index.js';
|
|
9
9
|
import { Combobox } from '../../ui/Combobox/index.js';
|
|
10
10
|
import { Portal } from '../../ui/Portal/index.js';
|
|
11
|
-
import { Presence } from '../../ui/Presence
|
|
11
|
+
import { Presence } from '../../ui/Presence.js';
|
|
12
12
|
import { getGameImageUrl } from '../../utils/getGameImageUrl.js';
|
|
13
13
|
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
14
14
|
export function GamesSearch(props) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface InfiniteScrollProps {
|
|
3
|
+
loader?: ReactNode;
|
|
4
|
+
hasMore?: boolean;
|
|
5
|
+
loadMore: () => Promise<void> | void;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function InfiniteScroll(props: InfiniteScrollProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Fragment } from 'react';
|
|
4
|
+
import { useBoolean, useDebounceCallback, useIntersectionObserver, } from 'usehooks-ts';
|
|
5
|
+
export function InfiniteScroll(props) {
|
|
6
|
+
const { value: loading, setValue: setLoading } = useBoolean(false);
|
|
7
|
+
const loader = props.loader ?? null;
|
|
8
|
+
const hasMore = props.hasMore ?? false;
|
|
9
|
+
const loadMore = useDebounceCallback(async () => {
|
|
10
|
+
if (loading)
|
|
11
|
+
return;
|
|
12
|
+
if (!hasMore)
|
|
13
|
+
return;
|
|
14
|
+
setLoading(true);
|
|
15
|
+
await props.loadMore();
|
|
16
|
+
setLoading(false);
|
|
17
|
+
}, 300);
|
|
18
|
+
const [ref] = useIntersectionObserver({
|
|
19
|
+
onChange(isIntersecting) {
|
|
20
|
+
if (isIntersecting)
|
|
21
|
+
loadMore();
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
return (_jsxs(Fragment, { children: [props.children, _jsx("div", { ref: ref, role: "presentation", style: props.style, className: props.className, hidden: !hasMore, children: !!hasMore && _jsx(Fragment, { children: loader }) })] }));
|
|
25
|
+
}
|