@opexa/portal-components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Account/Account.d.ts +12 -0
- package/dist/components/Account/Account.jsx +172 -0
- package/dist/components/Account/index.d.ts +1 -0
- package/dist/components/Account/index.js +1 -0
- package/dist/components/Banner/Banner.d.ts +11 -0
- package/dist/components/Banner/Banner.jsx +52 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/BetRecords/BetRecords.d.ts +7 -0
- package/dist/components/BetRecords/BetRecords.jsx +4 -0
- package/dist/components/BetRecords/BetRecordsContent.d.ts +2 -0
- package/dist/components/BetRecords/BetRecordsContent.jsx +413 -0
- package/dist/components/BetRecords/index.d.ts +1 -0
- package/dist/components/BetRecords/index.js +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.d.ts +11 -0
- package/dist/components/DepositWithdrawal/AmountChoices.jsx +31 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.d.ts +8 -0
- package/dist/components/DepositWithdrawal/AvailablePromos.jsx +78 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.jsx +82 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.jsx +282 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.jsx +275 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +22 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +286 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +13 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +92 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +14 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.jsx +77 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +24 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.jsx +8 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +256 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +14 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +107 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +19 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +15 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.jsx +81 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +6 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +101 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +4 -0
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.jsx +63 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +10 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.jsx +70 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.d.ts +0 -0
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.jsx +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.jsx +3 -0
- package/dist/components/DepositWithdrawal/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/index.js +1 -0
- package/dist/components/DepositWithdrawal/utils.d.ts +3 -0
- package/dist/components/DepositWithdrawal/utils.js +8 -0
- package/dist/components/Disclaimer/Disclaimer.d.ts +5 -0
- package/dist/components/Disclaimer/Disclaimer.jsx +45 -0
- package/dist/components/Disclaimer/index.d.ts +1 -0
- package/dist/components/Disclaimer/index.js +1 -0
- package/dist/components/Disclaimer/useDisclaimer.d.ts +4 -0
- package/dist/components/Disclaimer/useDisclaimer.jsx +39 -0
- package/dist/components/Empty/CloudIcon.d.ts +2 -0
- package/dist/components/Empty/CloudIcon.jsx +42 -0
- package/dist/components/Empty/Empty.d.ts +9 -0
- package/dist/components/Empty/Empty.jsx +16 -0
- package/dist/components/Empty/index.d.ts +1 -0
- package/dist/components/Empty/index.js +1 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +3 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.jsx +8 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +6 -0
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.jsx +19 -0
- package/dist/components/FeatureFlagProvider/index.d.ts +2 -0
- package/dist/components/FeatureFlagProvider/index.js +3 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +8 -0
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +66 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +5 -0
- package/dist/components/GameLaunch/GameLaunch.jsx +225 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +6 -0
- package/dist/components/GameLaunch/GameLaunchTrigger.jsx +107 -0
- package/dist/components/GameLaunch/index.d.ts +2 -0
- package/dist/components/GameLaunch/index.js +2 -0
- package/dist/components/GameProviders/GameProviders.d.ts +14 -0
- package/dist/components/GameProviders/GameProviders.jsx +3 -0
- package/dist/components/Games/Games.d.ts +10 -0
- package/dist/components/Games/Games.jsx +57 -0
- package/dist/components/Games/GamesContent.d.ts +2 -0
- package/dist/components/Games/GamesContent.jsx +138 -0
- package/dist/components/Games/index.d.ts +1 -0
- package/dist/components/Games/index.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounter.jsx +61 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounterContent.jsx +87 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +6 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.jsx +108 -0
- package/dist/components/JackpotCounter/index.d.ts +1 -0
- package/dist/components/JackpotCounter/index.js +1 -0
- package/dist/components/Marquee/Marquee.d.ts +5 -0
- package/dist/components/Marquee/Marquee.jsx +14 -0
- package/dist/components/Marquee/index.d.ts +1 -0
- package/dist/components/Marquee/index.js +1 -0
- package/dist/components/PortalProvider/PortalProvider.d.ts +2 -0
- package/dist/components/PortalProvider/PortalProvider.jsx +67 -0
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.jsx +49 -0
- package/dist/components/PortalProvider/index.d.ts +1 -0
- package/dist/components/PortalProvider/index.js +1 -0
- package/dist/components/Promo/Promo.d.ts +4 -0
- package/dist/components/Promo/Promo.jsx +50 -0
- package/dist/components/Promo/PromoContent.d.ts +2 -0
- package/dist/components/Promo/PromoContent.jsx +18 -0
- package/dist/components/Promo/index.d.ts +1 -0
- package/dist/components/Promo/index.js +1 -0
- package/dist/components/Promos/PromoCarousel.d.ts +2 -0
- package/dist/components/Promos/PromoCarousel.jsx +110 -0
- package/dist/components/Promos/PromoGrid.d.ts +2 -0
- package/dist/components/Promos/PromoGrid.jsx +24 -0
- package/dist/components/Promos/PromoItem.d.ts +7 -0
- package/dist/components/Promos/PromoItem.jsx +24 -0
- package/dist/components/Promos/Promos.d.ts +11 -0
- package/dist/components/Promos/Promos.jsx +57 -0
- package/dist/components/Promos/PromosContent.d.ts +2 -0
- package/dist/components/Promos/PromosContent.jsx +110 -0
- package/dist/components/Promos/index.d.ts +1 -0
- package/dist/components/Promos/index.js +1 -0
- package/dist/components/Protected/Protected.d.ts +6 -0
- package/dist/components/Protected/Protected.jsx +9 -0
- package/dist/components/Protected/index.d.ts +1 -0
- package/dist/components/Protected/index.js +1 -0
- package/dist/components/SignIn/SignIn.d.ts +8 -0
- package/dist/components/SignIn/SignIn.jsx +39 -0
- package/dist/components/SignIn/SignInForm.d.ts +1 -0
- package/dist/components/SignIn/SignInForm.jsx +308 -0
- package/dist/components/SignIn/index.d.ts +1 -0
- package/dist/components/SignIn/index.js +1 -0
- package/dist/components/SignUp/SignUp.d.ts +8 -0
- package/dist/components/SignUp/SignUp.jsx +37 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpForm.jsx +312 -0
- package/dist/components/SignUp/index.d.ts +1 -0
- package/dist/components/SignUp/index.js +1 -0
- package/dist/components/TopWins/TopWins.d.ts +5 -0
- package/dist/components/TopWins/TopWins.jsx +45 -0
- package/dist/components/TopWins/TopWinsContent.d.ts +2 -0
- package/dist/components/TopWins/TopWinsContent.jsx +51 -0
- package/dist/components/TopWins/index.d.ts +1 -0
- package/dist/components/TopWins/index.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +6 -0
- package/dist/components/TournamentCounter/TournamentCounter.jsx +54 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounterContent.jsx +79 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
- package/dist/components/TournamentCounter/TournamentCounterItem.jsx +111 -0
- package/dist/components/TournamentCounter/index.d.ts +1 -0
- package/dist/components/TournamentCounter/index.js +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.jsx +181 -0
- package/dist/components/TransactionRecords/TableFilters.d.ts +26 -0
- package/dist/components/TransactionRecords/TableFilters.jsx +359 -0
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +7 -0
- package/dist/components/TransactionRecords/TransactionRecords.jsx +33 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +141 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -0
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +177 -0
- package/dist/components/TransactionRecords/index.d.ts +1 -0
- package/dist/components/TransactionRecords/index.js +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.js +18 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/constants/index.js +64 -0
- package/dist/handlers.d.ts +4 -6
- package/dist/handlers.js +291 -312
- package/dist/hooks/useAccountQuery/getAccountQueryKey.d.ts +2 -0
- package/dist/hooks/useAccountQuery/getAccountQueryKey.js +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.d.ts +1 -0
- package/dist/hooks/useAccountQuery/prefetchAccountQuery.js +75 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.d.ts +3 -0
- package/dist/hooks/useAccountQuery/useAccountQuery.js +88 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.d.ts +2 -0
- package/dist/hooks/useAuthenticateMutation/getAuthenticateMutationKey.js +1 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.d.ts +3 -0
- package/dist/hooks/useAuthenticateMutation/useAuthenticateMutation.js +70 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/getAvailablePromosQueryKey.js +4 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.d.ts +2 -0
- package/dist/hooks/useAvailablePromosQuery/prefetchAvailablePromosQuery.js +75 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.d.ts +3 -0
- package/dist/hooks/useAvailablePromosQuery/useAvailablePromosQuery.js +88 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/getBetRecordsQueryKey.js +4 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.d.ts +2 -0
- package/dist/hooks/useBetRecordsQuery/prefetchBetRecordsQuery.js +75 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.d.ts +3 -0
- package/dist/hooks/useBetRecordsQuery/useBetRecordsQuery.js +91 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.d.ts +2 -0
- package/dist/hooks/useCashbacksQuery/getCashbacksQueryKey.js +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.d.ts +1 -0
- package/dist/hooks/useCashbacksQuery/prefetchCashbacksQuery.js +67 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.d.ts +3 -0
- package/dist/hooks/useCashbacksQuery/useCashbacksQuery.js +68 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useControllableState.js +47 -0
- package/dist/hooks/useCooldown.d.ts +43 -0
- package/dist/hooks/useCooldown.js +101 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGCashDepositMutation/getCreateGCashDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateGCashDepositMutation/useCreateGCashDepositMutation.js +125 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateGameSessionMutation/getCreateGameSessionMutationKey.js +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.d.ts +3 -0
- package/dist/hooks/useCreateGameSessionMutation/useCreateGameSessionMutation.js +171 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/getCreateMayaAppDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaAppDepositMutation/useCreateMayaAppDepositMutation.js +125 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateMayaDepositMutation/getCreateMayaDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateMayaDepositMutation/useCreateMayaDepositMutation.js +125 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/getCreateOnlineBankDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateOnlineBankDepositMutation/useCreateOnlineBankDepositMutation.js +125 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.d.ts +2 -0
- package/dist/hooks/useCreateQRPHDepositMutation/getCreateQRPHDepositMutationKey.js +3 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.d.ts +4 -0
- package/dist/hooks/useCreateQRPHDepositMutation/useCreateQRPHDepositMutation.js +125 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositQuery/getDepositQueryKey.js +4 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.d.ts +1 -0
- package/dist/hooks/useDepositQuery/prefetchDepositQuery.js +75 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.d.ts +3 -0
- package/dist/hooks/useDepositQuery/useDepositQuery.js +88 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/getDepositRecordsQueryKey.js +4 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.d.ts +2 -0
- package/dist/hooks/useDepositRecordsQuery/prefetchDepositRecordsQuery.js +75 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.d.ts +3 -0
- package/dist/hooks/useDepositRecordsQuery/useDepositRecordsQuery.js +93 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/getDepositsCountQueryKey.js +3 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.d.ts +1 -0
- package/dist/hooks/useDepositsCountQuery/prefetchDepositsCountQuery.js +75 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.d.ts +2 -0
- package/dist/hooks/useDepositsCountQuery/useDepositsCountQuery.js +88 -0
- package/dist/hooks/useDisclosure.d.ts +11 -0
- package/dist/hooks/useDisclosure.js +13 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.d.ts +2 -0
- package/dist/hooks/useEndGameSessionMutation/getEndGameSessionMutationKey.js +3 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.d.ts +6 -0
- package/dist/hooks/useEndGameSessionMutation/useEndGameSessionMutation.js +95 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.d.ts +3 -0
- package/dist/hooks/useGamesQuery/getGamesQueryKey.js +1 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.d.ts +2 -0
- package/dist/hooks/useGamesQuery/prefetchGamesQuery.js +80 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.d.ts +3 -0
- package/dist/hooks/useGamesQuery/useGamesQuery.js +33 -0
- package/dist/hooks/useGlobalStore.d.ts +42 -0
- package/dist/hooks/useGlobalStore.js +76 -0
- package/dist/hooks/useInfiniteQueryHelper.d.ts +31 -0
- package/dist/hooks/useInfiniteQueryHelper.js +121 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.d.ts +2 -0
- package/dist/hooks/useInstapayBankListQuery/getInstapayBankListQueryKey.js +3 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.d.ts +1 -0
- package/dist/hooks/useInstapayBankListQuery/prefetchInstapayBankListQuery.js +75 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.d.ts +3 -0
- package/dist/hooks/useInstapayBankListQuery/useInstapayBankListQuery.js +88 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/getIsMayaSessionValidQueryKey.js +3 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.d.ts +1 -0
- package/dist/hooks/useIsMayaSessionValidQuery/prefetchIsMayaSessionValidQuery.js +84 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.d.ts +2 -0
- package/dist/hooks/useIsMayaSessionValidQuery/useIsMayaSessionValidQuery.js +97 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/getJackpotsQueryKey.js +1 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.d.ts +2 -0
- package/dist/hooks/useJackpotsQuery/prefetchJackpotsQuery.js +68 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.d.ts +3 -0
- package/dist/hooks/useJackpotsQuery/useJackpotsQuery.js +32 -0
- package/dist/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/hooks/useLocaleInfo.js +7 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.d.ts +2 -0
- package/dist/hooks/useMemberVerificationQuery/getMemberVerificationQueryKey.js +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.d.ts +1 -0
- package/dist/hooks/useMemberVerificationQuery/prefetchMemberVerificationQuery.js +75 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.d.ts +3 -0
- package/dist/hooks/useMemberVerificationQuery/useMemberVerificationQuery.js +87 -0
- package/dist/hooks/useMobileNumberParser.d.ts +8 -0
- package/dist/hooks/useMobileNumberParser.js +63 -0
- package/dist/hooks/useOnMMA.d.ts +2 -0
- package/dist/hooks/useOnMMA.js +5 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.d.ts +2 -0
- package/dist/hooks/usePaymentSettingsQuery/getPaymentSettingsQueryKey.js +3 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.d.ts +1 -0
- package/dist/hooks/usePaymentSettingsQuery/prefetchPaymentSettingsQuery.js +75 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.d.ts +3 -0
- package/dist/hooks/usePaymentSettingsQuery/usePaymentSettingsQuery.js +88 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.d.ts +2 -0
- package/dist/hooks/usePlatformQuery/getPlatformQueryKey.js +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.d.ts +1 -0
- package/dist/hooks/usePlatformQuery/prefetchPlatformQuery.js +70 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.d.ts +3 -0
- package/dist/hooks/usePlatformQuery/usePlatformQuery.js +65 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.d.ts +2 -0
- package/dist/hooks/usePromoQuery/getPromoQueryKey.js +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.d.ts +1 -0
- package/dist/hooks/usePromoQuery/prefetchPromoQuery.js +67 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.d.ts +3 -0
- package/dist/hooks/usePromoQuery/usePromoQuery.js +68 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.d.ts +2 -0
- package/dist/hooks/usePromosQuery/getPromosQueryKey.js +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.d.ts +1 -0
- package/dist/hooks/usePromosQuery/prefetchPromosQuery.js +67 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.d.ts +3 -0
- package/dist/hooks/usePromosQuery/usePromosQuery.js +68 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.d.ts +2 -0
- package/dist/hooks/useSendVerificationCodeMutation/getSendVerificationCodeMutationKey.js +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.d.ts +3 -0
- package/dist/hooks/useSendVerificationCodeMutation/useSendVerificationCodeMutation.js +68 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.d.ts +2 -0
- package/dist/hooks/useSessionQuery/getSessionQueryKey.js +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.d.ts +1 -0
- package/dist/hooks/useSessionQuery/prefetchSessionQuery.js +53 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.d.ts +2 -0
- package/dist/hooks/useSessionQuery/useSessionQuery.js +60 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/getSignOutMutationKey.js +1 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.d.ts +2 -0
- package/dist/hooks/useSignOutMutation/useSignOutMutation.js +69 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.d.ts +2 -0
- package/dist/hooks/useSignUpMutation/getSignUpMutationKey.js +1 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.d.ts +5 -0
- package/dist/hooks/useSignUpMutation/useSignUpMutation.js +65 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.d.ts +2 -0
- package/dist/hooks/useSigninMutation/getSignInMutationKey.js +1 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.d.ts +4 -0
- package/dist/hooks/useSigninMutation/useSignInMutation.js +73 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.d.ts +2 -0
- package/dist/hooks/useSiteQuery/getSiteQueryKey.js +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.d.ts +1 -0
- package/dist/hooks/useSiteQuery/prefetchSiteQuery.js +70 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.d.ts +3 -0
- package/dist/hooks/useSiteQuery/useSiteQuery.js +68 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.d.ts +2 -0
- package/dist/hooks/useTopWinsQuery/getTopWinsQueryKey.js +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.d.ts +1 -0
- package/dist/hooks/useTopWinsQuery/prefetchTopWinsQuery.js +67 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.d.ts +3 -0
- package/dist/hooks/useTopWinsQuery/useTopWinsQuery.js +66 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/getTournamentsQueryKey.js +4 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.d.ts +2 -0
- package/dist/hooks/useTournamentsQuery/prefetchTournamentsQuery.js +68 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.d.ts +3 -0
- package/dist/hooks/useTournamentsQuery/useTournamentsQuery.js +33 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/getTransactionRecordsQueryKey.js +4 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.d.ts +2 -0
- package/dist/hooks/useTransactionRecordsQuery/prefetchTransactionRecordsQuery.js +75 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.d.ts +3 -0
- package/dist/hooks/useTransactionRecordsQuery/useTransactionRecordsQuery.js +93 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.d.ts +2 -0
- package/dist/hooks/useWalletQuery/getWalletQueryKey.js +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.d.ts +1 -0
- package/dist/hooks/useWalletQuery/prefetchWalletQuery.js +75 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.d.ts +3 -0
- package/dist/hooks/useWalletQuery/useWalletQuery.js +87 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/getWithdrawalRecordsQueryKey.js +4 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.d.ts +2 -0
- package/dist/hooks/useWithdrawalRecordsQuery/prefetchWithdrawalRecordsQuery.js +75 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.d.ts +3 -0
- package/dist/hooks/useWithdrawalRecordsQuery/useWithdrawalRecordsQuery.js +94 -0
- package/dist/icons/AlertCircleIcon.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.jsx +5 -0
- package/dist/icons/AlertTriangle.d.ts +2 -0
- package/dist/icons/AlertTriangle.jsx +5 -0
- package/dist/icons/ArrowLeftIcon.d.ts +2 -0
- package/dist/icons/ArrowLeftIcon.jsx +5 -0
- package/dist/icons/ArrowNarrowUpRightIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpRightIcon.jsx +5 -0
- package/dist/icons/ArrowRightIcon.d.ts +2 -0
- package/dist/icons/ArrowRightIcon.jsx +5 -0
- package/dist/icons/Award02Icon.d.ts +2 -0
- package/dist/icons/Award02Icon.jsx +5 -0
- package/dist/icons/BankIcon.d.ts +2 -0
- package/dist/icons/BankIcon.jsx +5 -0
- package/dist/icons/CheckCircleBrokenIcon.d.ts +2 -0
- package/dist/icons/CheckCircleBrokenIcon.jsx +5 -0
- package/dist/icons/CheckIcon.d.ts +2 -0
- package/dist/icons/CheckIcon.jsx +5 -0
- package/dist/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/icons/ChevronDownIcon.jsx +5 -0
- package/dist/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/icons/ChevronLeftIcon.jsx +5 -0
- package/dist/icons/ChevronRightIcon.d.ts +2 -0
- package/dist/icons/ChevronRightIcon.jsx +5 -0
- package/dist/icons/ChevronUpIcon.d.ts +2 -0
- package/dist/icons/ChevronUpIcon.jsx +5 -0
- package/dist/icons/Expand03Icon.d.ts +2 -0
- package/dist/icons/Expand03Icon.jsx +5 -0
- package/dist/icons/FacebookIcon.d.ts +2 -0
- package/dist/icons/FacebookIcon.jsx +6 -0
- package/dist/icons/File02Icon.d.ts +2 -0
- package/dist/icons/File02Icon.jsx +5 -0
- package/dist/icons/Gift01Icon.d.ts +2 -0
- package/dist/icons/Gift01Icon.jsx +5 -0
- package/dist/icons/GoogleIcon.d.ts +2 -0
- package/dist/icons/GoogleIcon.jsx +9 -0
- package/dist/icons/Logout01Icon.d.ts +2 -0
- package/dist/icons/Logout01Icon.jsx +5 -0
- package/dist/icons/QrCode02Icon.d.ts +2 -0
- package/dist/icons/QrCode02Icon.jsx +5 -0
- package/dist/icons/SpinnerIcon.d.ts +2 -0
- package/dist/icons/SpinnerIcon.jsx +9 -0
- package/dist/icons/User01Icon.d.ts +2 -0
- package/dist/icons/User01Icon.jsx +5 -0
- package/dist/icons/Wallet02Icon.d.ts +2 -0
- package/dist/icons/Wallet02Icon.jsx +5 -0
- package/dist/icons/XIcon.d.ts +1 -0
- package/dist/icons/XIcon.jsx +5 -0
- package/dist/index.d.ts +1 -33
- package/dist/index.js +1 -8260
- package/dist/middleware.d.ts +2 -5
- package/dist/middleware.js +90 -105
- package/dist/services/client/authenticate.d.ts +2 -0
- package/dist/services/client/authenticate.js +76 -0
- package/dist/services/client/getSession.d.ts +2 -0
- package/dist/services/client/getSession.js +59 -0
- package/dist/services/client/signIn.d.ts +3 -0
- package/dist/services/client/signIn.js +77 -0
- package/dist/services/client/signOut.d.ts +1 -0
- package/dist/services/client/signOut.js +61 -0
- package/dist/services/server/authenticate.d.ts +2 -0
- package/dist/services/server/authenticate.js +69 -0
- package/dist/services/server/getSession.d.ts +2 -0
- package/dist/services/server/getSession.js +55 -0
- package/dist/services/server/signIn.d.ts +2 -0
- package/dist/services/server/signIn.js +74 -0
- package/dist/services/server/signOut.d.ts +1 -0
- package/dist/services/server/signOut.js +67 -0
- package/dist/theme.css +231 -50
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/index.js +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +508 -0
- package/dist/ui/AlertDialog/AlertDialog.jsx +17 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +46 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +17 -0
- package/dist/ui/AlertDialog/index.d.ts +1 -0
- package/dist/ui/AlertDialog/index.js +1 -0
- package/dist/ui/Avatar/Avatar.d.ts +68 -0
- package/dist/ui/Avatar/Avatar.jsx +9 -0
- package/dist/ui/Avatar/avatar.recipe.d.ts +22 -0
- package/dist/ui/Avatar/avatar.recipe.js +21 -0
- package/dist/ui/Avatar/index.d.ts +1 -0
- package/dist/ui/Avatar/index.js +1 -0
- package/dist/ui/Badge/Badge.d.ts +167 -0
- package/dist/ui/Badge/Badge.jsx +10 -0
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -0
- package/dist/ui/Badge/badge.anatomy.js +2 -0
- package/dist/ui/Badge/badge.recipe.d.ts +52 -0
- package/dist/ui/Badge/badge.recipe.js +67 -0
- package/dist/ui/Badge/index.d.ts +1 -0
- package/dist/ui/Badge/index.js +1 -0
- package/dist/ui/Button/Button.d.ts +7 -0
- package/dist/ui/Button/Button.jsx +20 -0
- package/dist/ui/Button/button.recipe.d.ts +57 -0
- package/dist/ui/Button/button.recipe.js +46 -0
- package/dist/ui/Button/index.d.ts +1 -0
- package/dist/ui/Button/index.js +1 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +286 -0
- package/dist/ui/Checkbox/Checkbox.jsx +13 -0
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +40 -0
- package/dist/ui/Checkbox/checkbox.recipe.js +40 -0
- package/dist/ui/Checkbox/index.d.ts +1 -0
- package/dist/ui/Checkbox/index.js +1 -0
- package/dist/ui/Clipboard/Clipboard.d.ts +224 -0
- package/dist/ui/Clipboard/Clipboard.jsx +12 -0
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +37 -0
- package/dist/ui/Clipboard/clipboard.recipe.js +38 -0
- package/dist/ui/Clipboard/index.d.ts +1 -0
- package/dist/ui/Clipboard/index.js +1 -0
- package/dist/ui/Combobox/Combobox.d.ts +1 -0
- package/dist/ui/Combobox/Combobox.jsx +2 -0
- package/dist/ui/Combobox/combobox.recipe.d.ts +0 -0
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/index.d.ts +1 -0
- package/dist/ui/Combobox/index.js +1 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +2114 -0
- package/dist/ui/DatePicker/DatePicker.jsx +30 -0
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +88 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +15 -0
- package/dist/ui/DatePicker/index.d.ts +1 -0
- package/dist/ui/DatePicker/index.js +1 -0
- package/dist/ui/Dialog/Dialog.d.ts +508 -0
- package/dist/ui/Dialog/Dialog.jsx +17 -0
- package/dist/ui/Dialog/dialog.recipe.d.ts +46 -0
- package/dist/ui/Dialog/dialog.recipe.js +12 -0
- package/dist/ui/Dialog/index.d.ts +1 -0
- package/dist/ui/Dialog/index.js +1 -0
- package/dist/ui/Drawer/Drawer.d.ts +310 -0
- package/dist/ui/Drawer/Drawer.jsx +17 -0
- package/dist/ui/Drawer/drawer.recipe.d.ts +28 -0
- package/dist/ui/Drawer/drawer.recipe.js +24 -0
- package/dist/ui/Drawer/index.d.ts +1 -0
- package/dist/ui/Drawer/index.js +1 -0
- package/dist/ui/Field/Field.d.ts +303 -0
- package/dist/ui/Field/Field.jsx +13 -0
- package/dist/ui/Field/field.recipe.d.ts +43 -0
- package/dist/ui/Field/field.recipe.js +47 -0
- package/dist/ui/Field/index.d.ts +1 -0
- package/dist/ui/Field/index.js +1 -0
- package/dist/ui/IconButton/IconButton.d.ts +7 -0
- package/dist/ui/IconButton/IconButton.jsx +20 -0
- package/dist/ui/IconButton/iconButton.recipe.d.ts +80 -0
- package/dist/ui/IconButton/iconButton.recipe.js +17 -0
- package/dist/ui/IconButton/index.d.ts +1 -0
- package/dist/ui/IconButton/index.js +1 -0
- package/dist/ui/Menu/Menu.d.ts +2 -0
- package/dist/ui/Menu/Menu.jsx +3 -0
- package/dist/ui/Menu/index.d.ts +1 -0
- package/dist/ui/Menu/index.js +1 -0
- package/dist/ui/Menu/menu.recipe.d.ts +0 -0
- package/dist/ui/Menu/menu.recipe.js +1 -0
- package/dist/ui/NumberInput/NumberInput.d.ts +202 -0
- package/dist/ui/NumberInput/NumberInput.jsx +14 -0
- package/dist/ui/NumberInput/index.d.ts +1 -0
- package/dist/ui/NumberInput/index.js +1 -0
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +25 -0
- package/dist/ui/NumberInput/numberInput.recipe.js +24 -0
- package/dist/ui/PinInput/PinInput.d.ts +163 -0
- package/dist/ui/PinInput/PinInput.jsx +11 -0
- package/dist/ui/PinInput/index.d.ts +1 -0
- package/dist/ui/PinInput/index.js +1 -0
- package/dist/ui/PinInput/pinInput.recipe.d.ts +40 -0
- package/dist/ui/PinInput/pinInput.recipe.js +38 -0
- package/dist/ui/Popover/Popover.d.ts +508 -0
- package/dist/ui/Popover/Popover.jsx +17 -0
- package/dist/ui/Popover/index.d.ts +1 -0
- package/dist/ui/Popover/index.js +1 -0
- package/dist/ui/Popover/popover.recipe.d.ts +46 -0
- package/dist/ui/Popover/popover.recipe.js +9 -0
- package/dist/ui/Presence.d.ts +2 -0
- package/dist/ui/Presence.jsx +5 -0
- package/dist/ui/Progress/Progress.d.ts +1 -0
- package/dist/ui/Progress/Progress.jsx +2 -0
- package/dist/ui/Progress/index.d.ts +1 -0
- package/dist/ui/Progress/index.js +1 -0
- package/dist/ui/Progress/progress.recipe.d.ts +0 -0
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +226 -0
- package/dist/ui/SegmentGroup/SegmentGroup.jsx +14 -0
- package/dist/ui/SegmentGroup/index.d.ts +1 -0
- package/dist/ui/SegmentGroup/index.js +1 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +37 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +33 -0
- package/dist/ui/Select/Select.d.ts +739 -0
- package/dist/ui/Select/Select.jsx +24 -0
- package/dist/ui/Select/index.d.ts +1 -0
- package/dist/ui/Select/index.js +1 -0
- package/dist/ui/Select/select.recipe.d.ts +49 -0
- package/dist/ui/Select/select.recipe.js +37 -0
- package/dist/ui/Table/Table.d.ts +301 -0
- package/dist/ui/Table/Table.jsx +12 -0
- package/dist/ui/Table/index.d.ts +1 -0
- package/dist/ui/Table/index.js +1 -0
- package/dist/ui/Table/table.anatomy.d.ts +1 -0
- package/dist/ui/Table/table.anatomy.js +2 -0
- package/dist/ui/Table/table.recipe.d.ts +43 -0
- package/dist/ui/Table/table.recipe.js +27 -0
- package/dist/ui/Tabs/Tabs.d.ts +187 -0
- package/dist/ui/Tabs/Tabs.jsx +11 -0
- package/dist/ui/Tabs/index.d.ts +1 -0
- package/dist/ui/Tabs/index.js +1 -0
- package/dist/ui/Tabs/tabs.recipe.d.ts +37 -0
- package/dist/ui/Tabs/tabs.recipe.js +33 -0
- package/dist/ui/Tooltip/Tooltip.d.ts +1 -0
- package/dist/ui/Tooltip/Tooltip.jsx +2 -0
- package/dist/ui/Tooltip/index.d.ts +1 -0
- package/dist/ui/Tooltip/index.js +1 -0
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +0 -0
- package/dist/ui/Tooltip/tooltip.recipe.js +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.js +23 -0
- package/dist/utils/anatomyToRecipeSlots.d.ts +6 -0
- package/dist/utils/anatomyToRecipeSlots.js +13 -0
- package/dist/utils/capitalize.d.ts +40 -0
- package/dist/utils/capitalize.js +47 -0
- package/dist/utils/createPoll.d.ts +28 -0
- package/dist/utils/createPoll.js +104 -0
- package/dist/utils/createRecipeContext.d.ts +15 -0
- package/dist/utils/createRecipeContext.jsx +71 -0
- package/dist/utils/createSplitProps.d.ts +3 -0
- package/dist/utils/createSplitProps.js +19 -0
- package/dist/utils/dataAttr.d.ts +1 -0
- package/dist/utils/dataAttr.js +3 -0
- package/dist/utils/formatNumber.d.ts +21 -0
- package/dist/utils/formatNumber.js +45 -0
- package/dist/utils/getGameImageUrl.d.ts +12 -0
- package/dist/utils/getGameImageUrl.js +10 -0
- package/dist/utils/getLocaleInfo.d.ts +79 -0
- package/dist/utils/getLocaleInfo.jsx +237 -0
- package/dist/utils/getQueryClient.d.ts +2 -0
- package/dist/utils/getQueryClient.js +26 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isMobile.js +16 -0
- package/dist/utils/parseDecimal.d.ts +2 -0
- package/dist/utils/parseDecimal.js +18 -0
- package/dist/utils/toaster.d.ts +2 -0
- package/dist/utils/toaster.js +8 -0
- package/package.json +252 -95
- package/dist/chunk-HP26SZP3.mjs +0 -84
- package/dist/chunk-HP26SZP3.mjs.map +0 -1
- package/dist/handlers.d.mts +0 -43
- package/dist/handlers.js.map +0 -1
- package/dist/handlers.mjs +0 -261
- package/dist/handlers.mjs.map +0 -1
- package/dist/index.d.mts +0 -33
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -8187
- package/dist/index.mjs.map +0 -1
- package/dist/middleware.d.mts +0 -8
- package/dist/middleware.js.map +0 -1
- package/dist/middleware.mjs +0 -42
- package/dist/middleware.mjs.map +0 -1
- package/dist/pagcor-AFUY5PSY.png +0 -0
- package/dist/responsible-gaming-MQQBK5RV.png +0 -0
package/dist/handlers.js
CHANGED
|
@@ -1,319 +1,298 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/lib/handlers.ts
|
|
21
|
-
var handlers_exports = {};
|
|
22
|
-
__export(handlers_exports, {
|
|
23
|
-
DELETE: () => DELETE,
|
|
24
|
-
GET: () => GET,
|
|
25
|
-
POST: () => POST
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(handlers_exports);
|
|
28
|
-
var import_portal_sdk_core = require("@opexa/portal-sdk-core");
|
|
29
|
-
|
|
30
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js
|
|
31
|
-
var daysInYear = 365.2425;
|
|
32
|
-
var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
|
|
33
|
-
var minTime = -maxTime;
|
|
34
|
-
var millisecondsInMinute = 6e4;
|
|
35
|
-
var secondsInHour = 3600;
|
|
36
|
-
var secondsInDay = secondsInHour * 24;
|
|
37
|
-
var secondsInWeek = secondsInDay * 7;
|
|
38
|
-
var secondsInYear = secondsInDay * daysInYear;
|
|
39
|
-
var secondsInMonth = secondsInYear / 12;
|
|
40
|
-
var secondsInQuarter = secondsInMonth * 3;
|
|
41
|
-
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
42
|
-
|
|
43
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
|
|
44
|
-
function constructFrom(date, value) {
|
|
45
|
-
if (typeof date === "function") return date(value);
|
|
46
|
-
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
47
|
-
return date[constructFromSymbol](value);
|
|
48
|
-
if (date instanceof Date) return new date.constructor(value);
|
|
49
|
-
return new Date(value);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js
|
|
53
|
-
function toDate(argument, context) {
|
|
54
|
-
return constructFrom(context || argument, argument);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js
|
|
58
|
-
function addDays(date, amount, options) {
|
|
59
|
-
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
60
|
-
if (isNaN(amount)) return constructFrom((options == null ? void 0 : options.in) || date, NaN);
|
|
61
|
-
if (!amount) return _date;
|
|
62
|
-
_date.setDate(_date.getDate() + amount);
|
|
63
|
-
return _date;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMinutes.js
|
|
67
|
-
function addMinutes(date, amount, options) {
|
|
68
|
-
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
69
|
-
_date.setTime(_date.getTime() + amount * millisecondsInMinute);
|
|
70
|
-
return _date;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMinutes.js
|
|
74
|
-
function subMinutes(date, amount, options) {
|
|
75
|
-
return addMinutes(date, -amount, options);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// src/lib/handlers.ts
|
|
79
|
-
var import_server = require("next/server");
|
|
80
|
-
var import_zod2 = require("zod");
|
|
81
|
-
|
|
82
|
-
// src/lib/constants/index.ts
|
|
83
|
-
var import_zod = require("zod");
|
|
84
|
-
var SITE_ID = import_zod.z.string().min(1, 'Environment variable "NEXT_PUBLIC_SITE_ID" must be 1 or more characters').max(32, 'Environment variable "NEXT_PUBLIC_SITE_ID" must not be more than 32 characters').trim().parse(process.env.NEXT_PUBLIC_SITE_ID);
|
|
85
|
-
var PLATFORM_ID = import_zod.z.string().min(1, 'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must be 1 or more characters').max(32, 'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must not be more than 32 characters').trim().parse(process.env.NEXT_PUBLIC_PLATFORM_ID);
|
|
86
|
-
var PLATFORM_CODE = import_zod.z.string().min(4, 'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must be at least 4 characters').max(8, 'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must not be more than 8 characters').trim().parse(process.env.NEXT_PUBLIC_PLATFORM_CODE);
|
|
87
|
-
var ENVIRONMENT = import_zod.z.enum(["production", "development"]).catch("development").parse(process.env.NEXT_PUBLIC_ENVIRONMENT);
|
|
88
|
-
var BYPASS_RECAPTCHA = import_zod.z.any().transform(Boolean).catch(false).parse(process.env.NEXT_PUBLIC_BYPASS_RECAPTCHA);
|
|
89
|
-
var ACCESS_TOKEN_COOKIE_NAME = "WebPortalAuthAccessToken";
|
|
90
|
-
var REFRESH_TOKEN_COOKIE_NAME = "WebPortalAuthRefreshToken";
|
|
91
|
-
|
|
92
|
-
// src/lib/handlers.ts
|
|
93
|
-
var CreateSessionDefinition = import_zod2.z.union([
|
|
94
|
-
import_zod2.z.object({
|
|
95
|
-
type: import_zod2.z.literal("NAME_AND_PASSWORD"),
|
|
96
|
-
name: import_zod2.z.string(),
|
|
97
|
-
password: import_zod2.z.string()
|
|
98
|
-
}),
|
|
99
|
-
import_zod2.z.object({
|
|
100
|
-
type: import_zod2.z.literal("MOBILE_NUMBER"),
|
|
101
|
-
mobileNumber: import_zod2.z.string(),
|
|
102
|
-
verificationCode: import_zod2.z.string()
|
|
103
|
-
}),
|
|
104
|
-
import_zod2.z.object({
|
|
105
|
-
type: import_zod2.z.literal("MAYA"),
|
|
106
|
-
session: import_zod2.z.string()
|
|
107
|
-
}),
|
|
108
|
-
import_zod2.z.object({
|
|
109
|
-
type: import_zod2.z.union([import_zod2.z.literal("SOCIALS"), import_zod2.z.literal("CABINET"), import_zod2.z.literal("SINGLE_USE_TOKEN")]),
|
|
110
|
-
token: import_zod2.z.string()
|
|
111
|
-
})
|
|
112
|
-
]);
|
|
113
|
-
var AuthenticateDefinition = import_zod2.z.object({
|
|
114
|
-
type: import_zod2.z.literal("SECURITY_QUESTION"),
|
|
115
|
-
token: import_zod2.z.string(),
|
|
116
|
-
secretAnswer: import_zod2.z.string()
|
|
117
|
-
});
|
|
118
|
-
var GET = async (request, { params }) => {
|
|
119
|
-
var _a, _b;
|
|
120
|
-
const { auth } = await params;
|
|
121
|
-
const path = auth[0];
|
|
122
|
-
if (path === "sessions") {
|
|
123
|
-
const accessToken = (_a = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)) == null ? void 0 : _a.value;
|
|
124
|
-
const refreshToken = (_b = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)) == null ? void 0 : _b.value;
|
|
125
|
-
if (!refreshToken) {
|
|
126
|
-
const response = import_server.NextResponse.json({
|
|
127
|
-
ok: true,
|
|
128
|
-
data: {
|
|
129
|
-
status: "unauthenticated"
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
130
7
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return response;
|
|
135
|
-
}
|
|
136
|
-
if (!accessToken) {
|
|
137
|
-
try {
|
|
138
|
-
const data = await (0, import_portal_sdk_core.refreshSession)({
|
|
139
|
-
headers: {
|
|
140
|
-
Authorization: `Bearer ${refreshToken}`
|
|
141
|
-
},
|
|
142
|
-
environment: ENVIRONMENT
|
|
143
|
-
});
|
|
144
|
-
const response = import_server.NextResponse.json({
|
|
145
|
-
ok: true,
|
|
146
|
-
data: {
|
|
147
|
-
status: "authenticated",
|
|
148
|
-
token: data.accessToken
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, data.accessToken, {
|
|
152
|
-
expires: addMinutes(/* @__PURE__ */ new Date(), 9),
|
|
153
|
-
httpOnly: true,
|
|
154
|
-
sameSite: "strict"
|
|
155
|
-
});
|
|
156
|
-
return response;
|
|
157
|
-
} catch {
|
|
158
|
-
const response = import_server.NextResponse.json({
|
|
159
|
-
ok: true,
|
|
160
|
-
data: {
|
|
161
|
-
status: "unauthenticated"
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
165
|
-
return response;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return import_server.NextResponse.json({
|
|
169
|
-
ok: true,
|
|
170
|
-
data: {
|
|
171
|
-
status: "authenticated",
|
|
172
|
-
token: accessToken
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
return import_server.NextResponse.json(
|
|
177
|
-
{
|
|
178
|
-
ok: false,
|
|
179
|
-
message: "Not found"
|
|
180
|
-
},
|
|
181
|
-
{ status: 404 }
|
|
182
|
-
);
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
183
11
|
};
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
await (0, import_portal_sdk_core.destroySession)({
|
|
192
|
-
headers: {
|
|
193
|
-
Authorization: `Bearer ${accessToken}`
|
|
194
|
-
},
|
|
195
|
-
environment: ENVIRONMENT
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
const response = import_server.NextResponse.json({
|
|
199
|
-
ok: true
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
200
19
|
});
|
|
201
|
-
response.cookies.delete(ACCESS_TOKEN_COOKIE_NAME);
|
|
202
|
-
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
203
|
-
return response;
|
|
204
|
-
}
|
|
205
|
-
return import_server.NextResponse.json(
|
|
206
|
-
{
|
|
207
|
-
ok: false,
|
|
208
|
-
message: "Not found"
|
|
209
|
-
},
|
|
210
|
-
{ status: 404 }
|
|
211
|
-
);
|
|
212
20
|
};
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
data: res.authenticator
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
const response = import_server.NextResponse.json(
|
|
242
|
-
{ ok: true, data: null },
|
|
243
|
-
{ status: 201 }
|
|
244
|
-
);
|
|
245
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
246
|
-
expires: addMinutes(/* @__PURE__ */ new Date(), 9),
|
|
247
|
-
httpOnly: true,
|
|
248
|
-
sameSite: "strict"
|
|
249
|
-
});
|
|
250
|
-
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
251
|
-
expires: subMinutes(addDays(/* @__PURE__ */ new Date(), 30), 1),
|
|
252
|
-
httpOnly: true,
|
|
253
|
-
sameSite: "strict"
|
|
254
|
-
});
|
|
255
|
-
return response;
|
|
256
|
-
} catch {
|
|
257
|
-
return import_server.NextResponse.json(
|
|
258
|
-
{
|
|
259
|
-
ok: false,
|
|
260
|
-
message: "Unauthorized"
|
|
261
|
-
},
|
|
262
|
-
{ status: 401 }
|
|
263
|
-
);
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
264
46
|
}
|
|
265
|
-
}
|
|
266
|
-
if (path === "authenticate") {
|
|
267
|
-
const body = await request.json();
|
|
268
|
-
const parsed = AuthenticateDefinition.safeParse(body);
|
|
269
|
-
if (!parsed.success) {
|
|
270
|
-
return import_server.NextResponse.json(
|
|
271
|
-
{
|
|
272
|
-
ok: false,
|
|
273
|
-
message: parsed.error.issues[0].message
|
|
274
|
-
},
|
|
275
|
-
{ status: 400 }
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
try {
|
|
279
|
-
const res = await (0, import_portal_sdk_core.authenticate)(parsed.data, {
|
|
280
|
-
headers: {
|
|
281
|
-
"Platform-Code": PLATFORM_CODE
|
|
282
|
-
},
|
|
283
|
-
environment: ENVIRONMENT
|
|
284
|
-
});
|
|
285
|
-
const response = import_server.NextResponse.json({ ok: true }, { status: 201 });
|
|
286
|
-
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
287
|
-
expires: addMinutes(/* @__PURE__ */ new Date(), 9),
|
|
288
|
-
httpOnly: true
|
|
289
|
-
});
|
|
290
|
-
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
291
|
-
expires: subMinutes(addDays(/* @__PURE__ */ new Date(), 30), 1),
|
|
292
|
-
httpOnly: true
|
|
293
|
-
});
|
|
294
|
-
return response;
|
|
295
|
-
} catch {
|
|
296
|
-
return import_server.NextResponse.json(
|
|
297
|
-
{
|
|
298
|
-
ok: false,
|
|
299
|
-
message: "Unauthorized"
|
|
300
|
-
},
|
|
301
|
-
{ status: 401 }
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return import_server.NextResponse.json(
|
|
306
|
-
{
|
|
307
|
-
ok: false,
|
|
308
|
-
message: "Not found"
|
|
309
|
-
},
|
|
310
|
-
{ status: 404 }
|
|
311
|
-
);
|
|
312
47
|
};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
48
|
+
import { authenticate, createSession, destroySession, refreshSession, } from '@opexa/portal-sdk-core';
|
|
49
|
+
import { addDays, addMinutes, subMinutes } from 'date-fns';
|
|
50
|
+
import { NextResponse } from 'next/server';
|
|
51
|
+
import { z } from 'zod';
|
|
52
|
+
import { ACCESS_TOKEN_COOKIE_NAME, BYPASS_RECAPTCHA, ENVIRONMENT, PLATFORM_CODE, RECAPTCHA_HEADER_KEY, REFRESH_TOKEN_COOKIE_NAME, } from './constants';
|
|
53
|
+
var CreateSessionDefinition = z.union([
|
|
54
|
+
z.object({
|
|
55
|
+
type: z.literal('NAME_AND_PASSWORD'),
|
|
56
|
+
name: z.string(),
|
|
57
|
+
password: z.string(),
|
|
58
|
+
}),
|
|
59
|
+
z.object({
|
|
60
|
+
type: z.literal('MOBILE_NUMBER'),
|
|
61
|
+
mobileNumber: z.string(),
|
|
62
|
+
verificationCode: z.string(),
|
|
63
|
+
}),
|
|
64
|
+
z.object({
|
|
65
|
+
type: z.literal('MAYA'),
|
|
66
|
+
session: z.string(),
|
|
67
|
+
}),
|
|
68
|
+
z.object({
|
|
69
|
+
type: z.union([
|
|
70
|
+
z.literal('SOCIALS'),
|
|
71
|
+
z.literal('CABINET'),
|
|
72
|
+
z.literal('SINGLE_USE_TOKEN'),
|
|
73
|
+
]),
|
|
74
|
+
token: z.string(),
|
|
75
|
+
}),
|
|
76
|
+
]);
|
|
77
|
+
var AuthenticateDefinition = z.object({
|
|
78
|
+
type: z.literal('SECURITY_QUESTION'),
|
|
79
|
+
token: z.string(),
|
|
80
|
+
secretAnswer: z.string(),
|
|
318
81
|
});
|
|
319
|
-
|
|
82
|
+
export var GET = function (request_1, _a) { return __awaiter(void 0, [request_1, _a], void 0, function (request, _b) {
|
|
83
|
+
var auth, path, accessToken, refreshToken, response, data, response, _c, response;
|
|
84
|
+
var _d, _e;
|
|
85
|
+
var params = _b.params;
|
|
86
|
+
return __generator(this, function (_f) {
|
|
87
|
+
switch (_f.label) {
|
|
88
|
+
case 0: return [4 /*yield*/, params];
|
|
89
|
+
case 1:
|
|
90
|
+
auth = (_f.sent()).auth;
|
|
91
|
+
path = auth[0];
|
|
92
|
+
if (!(path === 'sessions')) return [3 /*break*/, 6];
|
|
93
|
+
accessToken = (_d = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)) === null || _d === void 0 ? void 0 : _d.value;
|
|
94
|
+
refreshToken = (_e = request.cookies.get(REFRESH_TOKEN_COOKIE_NAME)) === null || _e === void 0 ? void 0 : _e.value;
|
|
95
|
+
if (!refreshToken) {
|
|
96
|
+
response = NextResponse.json({
|
|
97
|
+
ok: true,
|
|
98
|
+
data: {
|
|
99
|
+
status: 'unauthenticated',
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
response.cookies.delete(ACCESS_TOKEN_COOKIE_NAME);
|
|
103
|
+
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
104
|
+
return [2 /*return*/, response];
|
|
105
|
+
}
|
|
106
|
+
if (!!accessToken) return [3 /*break*/, 5];
|
|
107
|
+
_f.label = 2;
|
|
108
|
+
case 2:
|
|
109
|
+
_f.trys.push([2, 4, , 5]);
|
|
110
|
+
return [4 /*yield*/, refreshSession({
|
|
111
|
+
headers: {
|
|
112
|
+
Authorization: "Bearer ".concat(refreshToken),
|
|
113
|
+
},
|
|
114
|
+
environment: ENVIRONMENT,
|
|
115
|
+
})];
|
|
116
|
+
case 3:
|
|
117
|
+
data = _f.sent();
|
|
118
|
+
response = NextResponse.json({
|
|
119
|
+
ok: true,
|
|
120
|
+
data: {
|
|
121
|
+
status: 'authenticated',
|
|
122
|
+
token: data.accessToken,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, data.accessToken, {
|
|
126
|
+
expires: addMinutes(new Date(), 9),
|
|
127
|
+
httpOnly: true,
|
|
128
|
+
sameSite: 'strict',
|
|
129
|
+
});
|
|
130
|
+
return [2 /*return*/, response];
|
|
131
|
+
case 4:
|
|
132
|
+
_c = _f.sent();
|
|
133
|
+
response = NextResponse.json({
|
|
134
|
+
ok: true,
|
|
135
|
+
data: {
|
|
136
|
+
status: 'unauthenticated',
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
140
|
+
return [2 /*return*/, response];
|
|
141
|
+
case 5: return [2 /*return*/, NextResponse.json({
|
|
142
|
+
ok: true,
|
|
143
|
+
data: {
|
|
144
|
+
status: 'authenticated',
|
|
145
|
+
token: accessToken,
|
|
146
|
+
},
|
|
147
|
+
})];
|
|
148
|
+
case 6: return [2 /*return*/, NextResponse.json({
|
|
149
|
+
ok: false,
|
|
150
|
+
message: 'Not found',
|
|
151
|
+
}, { status: 404 })];
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}); };
|
|
155
|
+
export var DELETE = function (request_1, _a) { return __awaiter(void 0, [request_1, _a], void 0, function (request, _b) {
|
|
156
|
+
var auth, path, accessToken, response;
|
|
157
|
+
var _c;
|
|
158
|
+
var params = _b.params;
|
|
159
|
+
return __generator(this, function (_d) {
|
|
160
|
+
switch (_d.label) {
|
|
161
|
+
case 0: return [4 /*yield*/, params];
|
|
162
|
+
case 1:
|
|
163
|
+
auth = (_d.sent()).auth;
|
|
164
|
+
path = auth[0];
|
|
165
|
+
if (!(path === 'sessions')) return [3 /*break*/, 4];
|
|
166
|
+
accessToken = (_c = request.cookies.get(ACCESS_TOKEN_COOKIE_NAME)) === null || _c === void 0 ? void 0 : _c.value;
|
|
167
|
+
if (!accessToken) return [3 /*break*/, 3];
|
|
168
|
+
return [4 /*yield*/, destroySession({
|
|
169
|
+
headers: {
|
|
170
|
+
Authorization: "Bearer ".concat(accessToken),
|
|
171
|
+
},
|
|
172
|
+
environment: ENVIRONMENT,
|
|
173
|
+
})];
|
|
174
|
+
case 2:
|
|
175
|
+
_d.sent();
|
|
176
|
+
_d.label = 3;
|
|
177
|
+
case 3:
|
|
178
|
+
response = NextResponse.json({
|
|
179
|
+
ok: true,
|
|
180
|
+
});
|
|
181
|
+
response.cookies.delete(ACCESS_TOKEN_COOKIE_NAME);
|
|
182
|
+
response.cookies.delete(REFRESH_TOKEN_COOKIE_NAME);
|
|
183
|
+
return [2 /*return*/, response];
|
|
184
|
+
case 4: return [2 /*return*/, NextResponse.json({
|
|
185
|
+
ok: false,
|
|
186
|
+
message: 'Not found',
|
|
187
|
+
}, { status: 404 })];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}); };
|
|
191
|
+
export var POST = function (request_1, _a) { return __awaiter(void 0, [request_1, _a], void 0, function (request, _b) {
|
|
192
|
+
var auth, path, body, parsed, recaptcha, res, response, _c, body, parsed, recaptcha, res, response, _d;
|
|
193
|
+
var _e, _f;
|
|
194
|
+
var params = _b.params;
|
|
195
|
+
return __generator(this, function (_g) {
|
|
196
|
+
switch (_g.label) {
|
|
197
|
+
case 0: return [4 /*yield*/, params];
|
|
198
|
+
case 1:
|
|
199
|
+
auth = (_g.sent()).auth;
|
|
200
|
+
path = auth[0];
|
|
201
|
+
if (!(path === 'sessions')) return [3 /*break*/, 6];
|
|
202
|
+
return [4 /*yield*/, request.json()];
|
|
203
|
+
case 2:
|
|
204
|
+
body = _g.sent();
|
|
205
|
+
parsed = CreateSessionDefinition.safeParse(body);
|
|
206
|
+
recaptcha = request.headers.get(RECAPTCHA_HEADER_KEY);
|
|
207
|
+
if (!parsed.success) {
|
|
208
|
+
return [2 /*return*/, NextResponse.json({
|
|
209
|
+
ok: false,
|
|
210
|
+
message: parsed.error.issues[0].message,
|
|
211
|
+
}, { status: 400 })];
|
|
212
|
+
}
|
|
213
|
+
_g.label = 3;
|
|
214
|
+
case 3:
|
|
215
|
+
_g.trys.push([3, 5, , 6]);
|
|
216
|
+
return [4 /*yield*/, createSession(parsed.data, {
|
|
217
|
+
headers: __assign(__assign({ 'Platform-Code': PLATFORM_CODE }, (recaptcha && (_e = {},
|
|
218
|
+
_e[RECAPTCHA_HEADER_KEY] = recaptcha,
|
|
219
|
+
_e))), (BYPASS_RECAPTCHA && {
|
|
220
|
+
'Test-Pass': '',
|
|
221
|
+
})),
|
|
222
|
+
environment: ENVIRONMENT,
|
|
223
|
+
})];
|
|
224
|
+
case 4:
|
|
225
|
+
res = _g.sent();
|
|
226
|
+
if (res.authenticator) {
|
|
227
|
+
return [2 /*return*/, NextResponse.json({
|
|
228
|
+
ok: true,
|
|
229
|
+
data: res.authenticator,
|
|
230
|
+
})];
|
|
231
|
+
}
|
|
232
|
+
response = NextResponse.json({ ok: true, data: null }, { status: 201 });
|
|
233
|
+
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
234
|
+
expires: addMinutes(new Date(), 9),
|
|
235
|
+
httpOnly: true,
|
|
236
|
+
sameSite: 'strict',
|
|
237
|
+
});
|
|
238
|
+
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
239
|
+
expires: subMinutes(addDays(new Date(), 30), 1),
|
|
240
|
+
httpOnly: true,
|
|
241
|
+
sameSite: 'strict',
|
|
242
|
+
});
|
|
243
|
+
return [2 /*return*/, response];
|
|
244
|
+
case 5:
|
|
245
|
+
_c = _g.sent();
|
|
246
|
+
return [2 /*return*/, NextResponse.json({
|
|
247
|
+
ok: false,
|
|
248
|
+
message: 'Unauthorized',
|
|
249
|
+
}, { status: 401 })];
|
|
250
|
+
case 6:
|
|
251
|
+
if (!(path === 'authenticate')) return [3 /*break*/, 11];
|
|
252
|
+
return [4 /*yield*/, request.json()];
|
|
253
|
+
case 7:
|
|
254
|
+
body = _g.sent();
|
|
255
|
+
parsed = AuthenticateDefinition.safeParse(body);
|
|
256
|
+
recaptcha = request.headers.get(RECAPTCHA_HEADER_KEY);
|
|
257
|
+
if (!parsed.success) {
|
|
258
|
+
return [2 /*return*/, NextResponse.json({
|
|
259
|
+
ok: false,
|
|
260
|
+
message: parsed.error.issues[0].message,
|
|
261
|
+
}, { status: 400 })];
|
|
262
|
+
}
|
|
263
|
+
_g.label = 8;
|
|
264
|
+
case 8:
|
|
265
|
+
_g.trys.push([8, 10, , 11]);
|
|
266
|
+
return [4 /*yield*/, authenticate(parsed.data, {
|
|
267
|
+
headers: __assign(__assign({ 'Platform-Code': PLATFORM_CODE }, (recaptcha && (_f = {},
|
|
268
|
+
_f[RECAPTCHA_HEADER_KEY] = recaptcha,
|
|
269
|
+
_f))), (BYPASS_RECAPTCHA && {
|
|
270
|
+
'Test-Pass': '',
|
|
271
|
+
})),
|
|
272
|
+
environment: ENVIRONMENT,
|
|
273
|
+
})];
|
|
274
|
+
case 9:
|
|
275
|
+
res = _g.sent();
|
|
276
|
+
response = NextResponse.json({ ok: true }, { status: 201 });
|
|
277
|
+
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, res.accessToken, {
|
|
278
|
+
expires: addMinutes(new Date(), 9),
|
|
279
|
+
httpOnly: true,
|
|
280
|
+
});
|
|
281
|
+
response.cookies.set(REFRESH_TOKEN_COOKIE_NAME, res.refreshToken, {
|
|
282
|
+
expires: subMinutes(addDays(new Date(), 30), 1),
|
|
283
|
+
httpOnly: true,
|
|
284
|
+
});
|
|
285
|
+
return [2 /*return*/, response];
|
|
286
|
+
case 10:
|
|
287
|
+
_d = _g.sent();
|
|
288
|
+
return [2 /*return*/, NextResponse.json({
|
|
289
|
+
ok: false,
|
|
290
|
+
message: 'Unauthorized',
|
|
291
|
+
}, { status: 401 })];
|
|
292
|
+
case 11: return [2 /*return*/, NextResponse.json({
|
|
293
|
+
ok: false,
|
|
294
|
+
message: 'Not found',
|
|
295
|
+
}, { status: 404 })];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}); };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var getAccountQueryKey = function () { return ['queries/account']; };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const prefetchAccountQuery: () => Promise<void>;
|