@opexa/portal-components 0.0.11 → 0.0.13
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/{hooks → client/hooks}/useAccountQuery.d.ts +1 -1
- package/dist/client/hooks/useAccountQuery.js +1 -0
- package/dist/client/hooks/useAccountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useAuthenticateMutation.d.ts +1 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -0
- package/dist/client/hooks/useAuthenticateMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useAvailablePromosQuery.d.ts +1 -1
- package/dist/client/hooks/useAvailablePromosQuery.js +1 -0
- package/dist/client/hooks/useAvailablePromosQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useBetRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useBetRecordsQuery.js +1 -0
- package/dist/client/hooks/useBetRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useCashbacksQuery.d.ts +1 -1
- package/dist/client/hooks/useCashbacksQuery.js +1 -0
- package/dist/client/hooks/useCashbacksQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGCashDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.mjs +16 -19
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.mjs +21 -24
- package/dist/{hooks → client/hooks}/useCreateMayaAppDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +1 -0
- package/dist/client/hooks/useCreateMayaAppDepositMutation.mjs +66 -0
- package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +1 -0
- package/dist/client/hooks/useCreateMayaDepositMutation.mjs +66 -0
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.mjs +15 -18
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.d.ts +1 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.mjs +15 -18
- package/dist/{hooks → client/hooks}/useDepositQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositQuery.js +1 -0
- package/dist/client/hooks/useDepositQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useDepositRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositRecordsQuery.js +1 -0
- package/dist/client/hooks/useDepositRecordsQuery.mjs +47 -0
- package/dist/{hooks → client/hooks}/useDepositsCountQuery.d.ts +1 -1
- package/dist/client/hooks/useDepositsCountQuery.js +1 -0
- package/dist/client/hooks/useDepositsCountQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.d.ts +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -0
- package/dist/{hooks → client/hooks}/useEndGameSessionMutation.mjs +12 -15
- package/dist/{hooks → client/hooks}/useGamesQuery.d.ts +1 -1
- package/dist/client/hooks/useGamesQuery.js +1 -0
- package/dist/client/hooks/useGamesQuery.mjs +39 -0
- package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.d.ts +1 -1
- package/dist/{hooks → client/hooks}/useInstapayBankListQuery.d.ts +1 -1
- package/dist/client/hooks/useInstapayBankListQuery.js +1 -0
- package/dist/client/hooks/useInstapayBankListQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useIsMayaSessionValidQuery.d.ts +1 -1
- package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -0
- package/dist/client/hooks/useIsMayaSessionValidQuery.mjs +48 -0
- package/dist/{hooks → client/hooks}/useJackpotsQuery.d.ts +1 -1
- package/dist/client/hooks/useJackpotsQuery.js +1 -0
- package/dist/client/hooks/useJackpotsQuery.mjs +31 -0
- package/dist/client/hooks/useLocaleInfo.d.ts +1 -0
- package/dist/client/hooks/useLocaleInfo.js +1 -0
- package/dist/client/hooks/useLocaleInfo.mjs +15 -0
- package/dist/{hooks → client/hooks}/useMemberVerificationQuery.d.ts +1 -1
- package/dist/client/hooks/useMemberVerificationQuery.js +1 -0
- package/dist/client/hooks/useMemberVerificationQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePaymentSettingsQuery.d.ts +1 -1
- package/dist/client/hooks/usePaymentSettingsQuery.js +1 -0
- package/dist/client/hooks/usePaymentSettingsQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/usePlatformQuery.d.ts +1 -1
- package/dist/client/hooks/usePlatformQuery.js +1 -0
- package/dist/client/hooks/usePlatformQuery.mjs +21 -0
- package/dist/{hooks → client/hooks}/usePromoQuery.d.ts +1 -1
- package/dist/client/hooks/usePromoQuery.js +1 -0
- package/dist/client/hooks/usePromoQuery.mjs +24 -0
- package/dist/{hooks → client/hooks}/usePromosQuery.d.ts +1 -1
- package/dist/client/hooks/usePromosQuery.js +1 -0
- package/dist/client/hooks/usePromosQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useSendVerificationCodeMutation.d.ts +1 -1
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -0
- package/dist/client/hooks/useSendVerificationCodeMutation.mjs +24 -0
- package/dist/{hooks → client/hooks}/useSessionQuery.d.ts +1 -1
- package/dist/client/hooks/useSessionQuery.js +1 -0
- package/dist/client/hooks/useSessionQuery.mjs +19 -0
- package/dist/{hooks → client/hooks}/useSignInMutation.d.ts +1 -1
- package/dist/client/hooks/useSignInMutation.js +1 -0
- package/dist/client/hooks/useSignInMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSignOutMutation.d.ts +1 -1
- package/dist/client/hooks/useSignOutMutation.js +1 -0
- package/dist/client/hooks/useSignOutMutation.mjs +22 -0
- package/dist/{hooks → client/hooks}/useSignUpMutation.d.ts +1 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -0
- package/dist/client/hooks/useSignUpMutation.mjs +25 -0
- package/dist/{hooks → client/hooks}/useSiteQuery.d.ts +1 -1
- package/dist/client/hooks/useSiteQuery.js +1 -0
- package/dist/client/hooks/useSiteQuery.mjs +23 -0
- package/dist/{hooks → client/hooks}/useTopWinsQuery.d.ts +1 -1
- package/dist/client/hooks/useTopWinsQuery.js +1 -0
- package/dist/client/hooks/useTopWinsQuery.mjs +22 -0
- package/dist/{hooks → client/hooks}/useTournamentsQuery.d.ts +1 -1
- package/dist/client/hooks/useTournamentsQuery.js +1 -0
- package/dist/client/hooks/useTournamentsQuery.mjs +32 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useTransactionRecordsQuery.js +1 -0
- package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.mjs +17 -20
- package/dist/{hooks → client/hooks}/useWalletQuery.d.ts +1 -1
- package/dist/client/hooks/useWalletQuery.js +1 -0
- package/dist/client/hooks/useWalletQuery.mjs +38 -0
- package/dist/{hooks → client/hooks}/useWithdrawalRecordsQuery.d.ts +1 -1
- package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -0
- package/dist/client/hooks/useWithdrawalRecordsQuery.mjs +47 -0
- package/dist/client/services/authenticate.js +1 -0
- package/dist/{services → client/services}/authenticate.mjs +1 -1
- package/dist/{services → client/services}/getSession.d.ts +1 -1
- package/dist/client/services/signIn.js +1 -0
- package/dist/{services → client/services}/signIn.mjs +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -0
- package/dist/client/utils/createRecipeContext.mjs +55 -0
- package/dist/client/utils/index.d.ts +2 -0
- package/dist/client/utils/toaster.d.ts +2 -0
- package/dist/client/utils/toaster.js +1 -0
- package/dist/client/utils/toaster.mjs +11 -0
- package/dist/client-hooks.d.ts +2 -0
- package/dist/client-hooks.js +1 -0
- package/dist/client-hooks.mjs +88 -0
- package/dist/client-services.d.ts +2 -0
- package/dist/client-services.js +1 -0
- package/dist/client-services.mjs +10 -0
- package/dist/client-utils.d.ts +2 -0
- package/dist/client-utils.js +1 -0
- package/dist/client-utils.mjs +6 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +21 -22
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +16 -17
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +7 -8
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -12
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +21 -22
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +31 -55
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +43 -43
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +48 -48
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +43 -43
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +10 -11
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +10 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +9 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +6 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +10 -10
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +29 -30
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +11 -12
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +2 -3
- package/dist/components/Disclaimer/useDisclaimer.js +1 -1
- package/dist/components/Disclaimer/useDisclaimer.mjs +5 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +34 -35
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +12 -12
- package/dist/components/Games/Games.client.d.ts +2 -0
- package/dist/components/Games/Games.client.js +1 -0
- package/dist/components/Games/Games.client.mjs +150 -0
- package/dist/components/Games/Games.d.ts +1 -1
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +11 -140
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +6 -7
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +15 -16
- package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +18 -58
- package/dist/components/PortalProvider/Providers.d.ts +2 -0
- package/dist/components/PortalProvider/Providers.js +1 -0
- package/dist/components/PortalProvider/Providers.mjs +65 -0
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +7 -8
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +17 -18
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +11 -12
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +2 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +7 -9
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +17 -18
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +33 -33
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +27 -28
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +30 -30
- package/dist/components/TopWins/TopWins.client.d.ts +2 -0
- package/dist/components/TopWins/TopWins.client.js +1 -0
- package/dist/components/TopWins/TopWins.client.mjs +64 -0
- package/dist/components/TopWins/TopWins.d.ts +1 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +12 -61
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +6 -7
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +6 -7
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +7 -8
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +6 -7
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +4 -6
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +7 -8
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +7 -8
- package/dist/components/index.d.ts +0 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +34 -39
- package/dist/dist/constants/index.js +1 -0
- package/dist/dist/constants/index.mjs +27 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.js +1 -0
- package/dist/dist/server/utils/prefetchTopWinsQuery.mjs +22 -0
- package/dist/dist/utils/getLocaleInfo.js +1 -0
- package/dist/dist/utils/getLocaleInfo.mjs +397 -0
- package/dist/dist/utils/getQueryClient.js +1 -0
- package/dist/dist/utils/getQueryClient.mjs +23 -0
- package/dist/dist/utils/isMobile.js +1 -0
- package/dist/dist/utils/isMobile.mjs +7 -0
- package/dist/dist/utils/parseDecimal.js +1 -0
- package/dist/dist/utils/parseDecimal.mjs +8 -0
- package/dist/dist/utils/queryKeys.js +1 -0
- package/dist/dist/utils/queryKeys.mjs +4 -0
- package/dist/handlers.d.ts +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +9 -12
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +10 -13
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +8 -11
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +10 -13
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +13 -16
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +13 -16
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +9 -12
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +8 -11
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +12 -15
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +9 -12
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +8 -11
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +2 -5
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +2 -5
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -10
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +7 -10
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +2 -5
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +6 -9
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +6 -9
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +2 -5
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +6 -9
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +11 -14
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +2 -5
- package/dist/ui/AlertDialog/AlertDialog.js +1 -1
- package/dist/ui/AlertDialog/AlertDialog.mjs +15 -21
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +2 -5
- package/dist/ui/Avatar/Avatar.js +1 -1
- package/dist/ui/Avatar/Avatar.mjs +8 -14
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +5 -8
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +10 -16
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +2 -5
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +2 -4
- package/dist/ui/Checkbox/Checkbox.js +1 -1
- package/dist/ui/Checkbox/Checkbox.mjs +12 -18
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +5 -8
- package/dist/ui/Clipboard/Clipboard.js +1 -1
- package/dist/ui/Clipboard/Clipboard.mjs +11 -17
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +2 -5
- package/dist/ui/DatePicker/DatePicker.js +1 -1
- package/dist/ui/DatePicker/DatePicker.mjs +31 -37
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +2 -5
- package/dist/ui/Dialog/Dialog.js +1 -1
- package/dist/ui/Dialog/Dialog.mjs +15 -21
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +2 -5
- package/dist/ui/Drawer/Drawer.js +1 -1
- package/dist/ui/Drawer/Drawer.mjs +15 -21
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +5 -8
- package/dist/ui/Field/Field.js +1 -1
- package/dist/ui/Field/Field.mjs +11 -17
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +2 -5
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +2 -4
- package/dist/ui/NumberInput/NumberInput.js +1 -1
- package/dist/ui/NumberInput/NumberInput.mjs +17 -23
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +2 -5
- package/dist/ui/PinInput/PinInput.js +1 -1
- package/dist/ui/PinInput/PinInput.mjs +10 -16
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +2 -5
- package/dist/ui/Popover/Popover.js +1 -1
- package/dist/ui/Popover/Popover.mjs +15 -21
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +5 -8
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +7 -6
- package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
- package/dist/ui/SegmentGroup/SegmentGroup.mjs +12 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +4 -7
- package/dist/ui/Select/Select.js +1 -1
- package/dist/ui/Select/Select.mjs +23 -29
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +5 -8
- package/dist/ui/Table/Table.js +1 -1
- package/dist/ui/Table/Table.mjs +10 -16
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +2 -5
- package/dist/ui/Tabs/Tabs.js +1 -1
- package/dist/ui/Tabs/Tabs.mjs +10 -16
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +4 -7
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +54 -58
- package/package.json +143 -128
- package/dist/_virtual/_commonjsHelpers.js +0 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/_virtual/browser.js +0 -1
- package/dist/_virtual/browser.mjs +0 -5
- package/dist/_virtual/browser2.js +0 -1
- package/dist/_virtual/browser2.mjs +0 -7
- package/dist/_virtual/browser3.js +0 -1
- package/dist/_virtual/browser3.mjs +0 -4
- package/dist/_virtual/browser4.js +0 -1
- package/dist/_virtual/browser4.mjs +0 -4
- package/dist/_virtual/index.js +0 -1
- package/dist/_virtual/index.mjs +0 -7
- package/dist/_virtual/index2.js +0 -1
- package/dist/_virtual/index2.mjs +0 -4
- package/dist/_virtual/index3.js +0 -1
- package/dist/_virtual/index3.mjs +0 -4
- package/dist/_virtual/index4.js +0 -1
- package/dist/_virtual/index4.mjs +0 -4
- package/dist/_virtual/index5.js +0 -1
- package/dist/_virtual/index5.mjs +0 -4
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +0 -13
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +0 -6
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +0 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +0 -64
- package/dist/components/FeatureFlagProvider/index.d.ts +0 -2
- package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +0 -8
- package/dist/components/FeatureFlagProvider/useFeatureFlag.js +0 -1
- package/dist/components/FeatureFlagProvider/useFeatureFlag.mjs +0 -22
- package/dist/hooks/useAccountQuery.js +0 -1
- package/dist/hooks/useAccountQuery.mjs +0 -41
- package/dist/hooks/useAuthenticateMutation.js +0 -1
- package/dist/hooks/useAuthenticateMutation.mjs +0 -27
- package/dist/hooks/useAvailablePromosQuery.js +0 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +0 -41
- package/dist/hooks/useBetRecordsQuery.js +0 -1
- package/dist/hooks/useBetRecordsQuery.mjs +0 -50
- package/dist/hooks/useCashbacksQuery.js +0 -1
- package/dist/hooks/useCashbacksQuery.mjs +0 -26
- package/dist/hooks/useCreateGCashDepositMutation.js +0 -1
- package/dist/hooks/useCreateGameSessionMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.js +0 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +0 -69
- package/dist/hooks/useCreateMayaDepositMutation.js +0 -1
- package/dist/hooks/useCreateMayaDepositMutation.mjs +0 -69
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +0 -1
- package/dist/hooks/useCreateQRPHDepositMutation.js +0 -1
- package/dist/hooks/useDepositQuery.js +0 -1
- package/dist/hooks/useDepositQuery.mjs +0 -42
- package/dist/hooks/useDepositRecordsQuery.js +0 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +0 -50
- package/dist/hooks/useDepositsCountQuery.js +0 -1
- package/dist/hooks/useDepositsCountQuery.mjs +0 -41
- package/dist/hooks/useEndGameSessionMutation.js +0 -1
- package/dist/hooks/useGamesQuery.js +0 -1
- package/dist/hooks/useGamesQuery.mjs +0 -42
- package/dist/hooks/useInstapayBankListQuery.js +0 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +0 -41
- package/dist/hooks/useIsMayaSessionValidQuery.js +0 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +0 -51
- package/dist/hooks/useJackpotsQuery.js +0 -1
- package/dist/hooks/useJackpotsQuery.mjs +0 -34
- package/dist/hooks/useLocaleInfo.d.ts +0 -1
- package/dist/hooks/useLocaleInfo.js +0 -1
- package/dist/hooks/useLocaleInfo.mjs +0 -18
- package/dist/hooks/useMemberVerificationQuery.js +0 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +0 -41
- package/dist/hooks/usePaymentSettingsQuery.js +0 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +0 -41
- package/dist/hooks/usePlatformQuery.js +0 -1
- package/dist/hooks/usePlatformQuery.mjs +0 -24
- package/dist/hooks/usePromoQuery.js +0 -1
- package/dist/hooks/usePromoQuery.mjs +0 -27
- package/dist/hooks/usePromosQuery.js +0 -1
- package/dist/hooks/usePromosQuery.mjs +0 -26
- package/dist/hooks/useSendVerificationCodeMutation.js +0 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +0 -27
- package/dist/hooks/useSessionQuery.js +0 -1
- package/dist/hooks/useSessionQuery.mjs +0 -22
- package/dist/hooks/useSignInMutation.js +0 -1
- package/dist/hooks/useSignInMutation.mjs +0 -28
- package/dist/hooks/useSignOutMutation.js +0 -1
- package/dist/hooks/useSignOutMutation.mjs +0 -25
- package/dist/hooks/useSignUpMutation.js +0 -1
- package/dist/hooks/useSignUpMutation.mjs +0 -28
- package/dist/hooks/useSiteQuery.js +0 -1
- package/dist/hooks/useSiteQuery.mjs +0 -26
- package/dist/hooks/useTopWinsQuery.js +0 -1
- package/dist/hooks/useTopWinsQuery.mjs +0 -25
- package/dist/hooks/useTournamentsQuery.js +0 -1
- package/dist/hooks/useTournamentsQuery.mjs +0 -35
- package/dist/hooks/useTransactionRecordsQuery.js +0 -1
- package/dist/hooks/useWalletQuery.js +0 -1
- package/dist/hooks/useWalletQuery.mjs +0 -41
- package/dist/hooks/useWithdrawalRecordsQuery.js +0 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +0 -50
- package/dist/hooks.d.ts +0 -2
- package/dist/hooks.js +0 -1
- package/dist/hooks.mjs +0 -88
- package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +0 -1
- package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.mjs +0 -6
- package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -1
- package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -66
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.mjs +0 -25
- package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.mjs +0 -123
- package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.mjs +0 -21
- package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.js +0 -1
- package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.mjs +0 -76
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -1
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs +0 -52
- package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.js +0 -1
- package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.mjs +0 -8
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +0 -6
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +0 -953
- package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.js +0 -1
- package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.mjs +0 -34
- package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -1
- package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.mjs +0 -30
- package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js +0 -2
- package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.mjs +0 -32
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +0 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +0 -38
- package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js +0 -1
- package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs +0 -12
- package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.js +0 -1
- package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.mjs +0 -30
- package/dist/services/authenticate.js +0 -1
- package/dist/services/signIn.js +0 -1
- package/dist/services.d.ts +0 -2
- package/dist/services.js +0 -1
- package/dist/services.mjs +0 -10
- package/dist/utils/createRecipeContext.js +0 -1
- package/dist/utils/createRecipeContext.mjs +0 -49
- package/dist/utils/toaster.d.ts +0 -2
- package/dist/utils/toaster.js +0 -1
- package/dist/utils/toaster.mjs +0 -11
- /package/dist/{hooks → client/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.js +0 -0
- /package/dist/{hooks → client/hooks}/useControllableState.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.js +0 -0
- /package/dist/{hooks → client/hooks}/useCooldown.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.js +0 -0
- /package/dist/{hooks → client/hooks}/useDisclosure.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.js +0 -0
- /package/dist/{hooks → client/hooks}/useGlobalStore.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.js +0 -0
- /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.js +0 -0
- /package/dist/{hooks → client/hooks}/useMobileNumberParser.mjs +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.d.ts +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.js +0 -0
- /package/dist/{hooks → client/hooks}/useOnMMA.mjs +0 -0
- /package/dist/{services → client/services}/authenticate.d.ts +0 -0
- /package/dist/{services → client/services}/getSession.js +0 -0
- /package/dist/{services → client/services}/getSession.mjs +0 -0
- /package/dist/{services → client/services}/index.d.ts +0 -0
- /package/dist/{services → client/services}/signIn.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.d.ts +0 -0
- /package/dist/{services → client/services}/signOut.js +0 -0
- /package/dist/{services → client/services}/signOut.mjs +0 -0
- /package/dist/{utils → client/utils}/createRecipeContext.d.ts +0 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cache as t } from "react";
|
|
3
|
+
t((a) => {
|
|
4
|
+
switch (a.toLowerCase()) {
|
|
5
|
+
case "asia/jakarta":
|
|
6
|
+
return {
|
|
7
|
+
locale: "id-ID",
|
|
8
|
+
timezone: "Asia/Jakarta",
|
|
9
|
+
country: {
|
|
10
|
+
name: "Indonesia",
|
|
11
|
+
code: "IDN",
|
|
12
|
+
flag: l
|
|
13
|
+
},
|
|
14
|
+
currency: {
|
|
15
|
+
code: "IDR",
|
|
16
|
+
name: "Indonesian Rupiah",
|
|
17
|
+
symbol: "Rp",
|
|
18
|
+
externalCode: "IDR"
|
|
19
|
+
},
|
|
20
|
+
mobileNumber: {
|
|
21
|
+
areaCode: "+62",
|
|
22
|
+
numOfDigits: 10,
|
|
23
|
+
example: "81" + "".padStart(8, "0"),
|
|
24
|
+
pattern: /^(\+?62|0)?8\d{9}$/
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
case "asia/jayapura":
|
|
28
|
+
return {
|
|
29
|
+
locale: "id-ID",
|
|
30
|
+
timezone: "Asia/Jayapura",
|
|
31
|
+
country: {
|
|
32
|
+
code: "IDN",
|
|
33
|
+
name: "Indonesia",
|
|
34
|
+
flag: l
|
|
35
|
+
},
|
|
36
|
+
currency: {
|
|
37
|
+
code: "IDR",
|
|
38
|
+
name: "Indonesian Rupiah",
|
|
39
|
+
symbol: "Rp",
|
|
40
|
+
externalCode: "IDR"
|
|
41
|
+
},
|
|
42
|
+
mobileNumber: {
|
|
43
|
+
areaCode: "+62",
|
|
44
|
+
numOfDigits: 10,
|
|
45
|
+
example: "81" + "".padStart(8, "0"),
|
|
46
|
+
pattern: /^(\+?62|0)?8\d{9}$/
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
case "asia/makassar":
|
|
50
|
+
return {
|
|
51
|
+
locale: "id-ID",
|
|
52
|
+
timezone: "Asia/Makassar",
|
|
53
|
+
country: {
|
|
54
|
+
code: "IDN",
|
|
55
|
+
name: "Indonesia",
|
|
56
|
+
flag: l
|
|
57
|
+
},
|
|
58
|
+
currency: {
|
|
59
|
+
code: "IDR",
|
|
60
|
+
name: "Indonesian Rupiah",
|
|
61
|
+
symbol: "Rp",
|
|
62
|
+
externalCode: "IDR"
|
|
63
|
+
},
|
|
64
|
+
mobileNumber: {
|
|
65
|
+
areaCode: "+62",
|
|
66
|
+
numOfDigits: 10,
|
|
67
|
+
example: "81" + "".padStart(8, "0"),
|
|
68
|
+
pattern: /^(\+?62|0)?8\d{9}$/
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
case "asia/kuala_lumpur":
|
|
72
|
+
return {
|
|
73
|
+
locale: "ms-MY",
|
|
74
|
+
timezone: "Asia/Kuala_Lumpur",
|
|
75
|
+
country: {
|
|
76
|
+
name: "Malaysia",
|
|
77
|
+
code: "MYS",
|
|
78
|
+
flag: r
|
|
79
|
+
},
|
|
80
|
+
currency: {
|
|
81
|
+
code: "MYR",
|
|
82
|
+
name: "Malaysian Ringgit",
|
|
83
|
+
symbol: "RM",
|
|
84
|
+
externalCode: "MYR"
|
|
85
|
+
},
|
|
86
|
+
mobileNumber: {
|
|
87
|
+
areaCode: "+60",
|
|
88
|
+
numOfDigits: 9,
|
|
89
|
+
example: "12" + "".padStart(7, "0"),
|
|
90
|
+
pattern: /^(\+?60|0)?1[0-9]{1}\d{7}$/
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
case "asia/kolkata":
|
|
94
|
+
return {
|
|
95
|
+
locale: "en-IN",
|
|
96
|
+
timezone: "Asia/Kolkata",
|
|
97
|
+
country: {
|
|
98
|
+
code: "IND",
|
|
99
|
+
name: "India",
|
|
100
|
+
flag: d
|
|
101
|
+
},
|
|
102
|
+
currency: {
|
|
103
|
+
code: "INR",
|
|
104
|
+
name: "Indian Rupee",
|
|
105
|
+
symbol: "₹",
|
|
106
|
+
externalCode: "INR"
|
|
107
|
+
},
|
|
108
|
+
mobileNumber: {
|
|
109
|
+
areaCode: "+91",
|
|
110
|
+
numOfDigits: 10,
|
|
111
|
+
example: "919" + "".padStart(7, "0"),
|
|
112
|
+
pattern: /^(\+?91|0)?[789]\d{9}$/
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
case "asia/ho_chi_minh":
|
|
116
|
+
return {
|
|
117
|
+
locale: "vi-VN",
|
|
118
|
+
timezone: "Asia/Ho_Chi_Minh",
|
|
119
|
+
country: {
|
|
120
|
+
code: "VNM",
|
|
121
|
+
name: "Vietnam",
|
|
122
|
+
flag: h
|
|
123
|
+
},
|
|
124
|
+
currency: {
|
|
125
|
+
code: "VND",
|
|
126
|
+
name: "Vietnamese Dong",
|
|
127
|
+
symbol: "₫",
|
|
128
|
+
externalCode: "VIRTUAL"
|
|
129
|
+
},
|
|
130
|
+
mobileNumber: {
|
|
131
|
+
areaCode: "+84",
|
|
132
|
+
numOfDigits: 9,
|
|
133
|
+
example: "849" + "".padStart(7, "0"),
|
|
134
|
+
pattern: /^(\+?84|0)?(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-6|8|9]|9[0-9])\d{7}$/
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
default:
|
|
138
|
+
return {
|
|
139
|
+
locale: "en-PH",
|
|
140
|
+
timezone: "Asia/Manila",
|
|
141
|
+
country: {
|
|
142
|
+
code: "PHL",
|
|
143
|
+
name: "Philippines",
|
|
144
|
+
flag: n
|
|
145
|
+
},
|
|
146
|
+
currency: {
|
|
147
|
+
code: "PHP",
|
|
148
|
+
name: "Philippine Peso",
|
|
149
|
+
symbol: "₱",
|
|
150
|
+
externalCode: "PHP"
|
|
151
|
+
},
|
|
152
|
+
mobileNumber: {
|
|
153
|
+
areaCode: "+63",
|
|
154
|
+
numOfDigits: 10,
|
|
155
|
+
example: "919" + "".padStart(7, "0"),
|
|
156
|
+
pattern: /^(\+?63|0)?9\d{9}$/
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
const n = (a) => /* @__PURE__ */ i(
|
|
162
|
+
"svg",
|
|
163
|
+
{
|
|
164
|
+
width: "24",
|
|
165
|
+
height: "24",
|
|
166
|
+
viewBox: "0 0 24 24",
|
|
167
|
+
fill: "none",
|
|
168
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
+
...a,
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27540)", children: [
|
|
172
|
+
/* @__PURE__ */ e(
|
|
173
|
+
"path",
|
|
174
|
+
{
|
|
175
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
176
|
+
fill: "#F0F0F0"
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ e(
|
|
180
|
+
"path",
|
|
181
|
+
{
|
|
182
|
+
d: "M12.0004 0V12L3.51514 20.4853C5.68671 22.6568 8.68671 24 12.0004 24C18.6278 24 24.0004 18.6274 24.0004 12C24.0004 5.37262 12.0004 0 12.0004 0Z",
|
|
183
|
+
fill: "#D80027"
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ e(
|
|
187
|
+
"path",
|
|
188
|
+
{
|
|
189
|
+
d: "M12.0004 0C8.68671 0 5.68671 1.34316 3.51514 3.51469C6.45936 6.45891 7.50453 7.50412 12.0004 12H24.0004C24.0004 5.37262 18.6278 0 12.0004 0Z",
|
|
190
|
+
fill: "#0052B4"
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ e(
|
|
194
|
+
"path",
|
|
195
|
+
{
|
|
196
|
+
d: "M8.21723 11.9998L6.75173 11.3104L7.53215 9.89111L5.94074 10.1956L5.73909 8.58789L4.63059 9.77027L3.52213 8.58789L3.32043 10.1956L1.72907 9.89106L2.50949 11.3104L1.04395 11.9998L2.50949 12.6891L1.72907 14.1085L3.32057 13.8041L3.52209 15.4117L4.63059 14.2293L5.73909 15.4117L5.94074 13.8041L7.53205 14.1085L6.75168 12.6892L8.21723 11.9998Z",
|
|
197
|
+
fill: "#FFDA44"
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ e(
|
|
201
|
+
"path",
|
|
202
|
+
{
|
|
203
|
+
d: "M3.20082 4.69519L3.68851 5.37689L4.48749 5.12382L3.98977 5.79825L4.47746 6.47996L3.68218 6.21507L3.18451 6.88946L3.19074 6.05133L2.39551 5.78639L3.19463 5.53332L3.20082 4.69519Z",
|
|
204
|
+
fill: "#FFDA44"
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ e(
|
|
208
|
+
"path",
|
|
209
|
+
{
|
|
210
|
+
d: "M3.20082 17.1095L3.68851 17.7912L4.48749 17.5381L3.98977 18.2126L4.47746 18.8943L3.68218 18.6294L3.18451 19.3038L3.19074 18.4656L2.39551 18.2007L3.19463 17.9476L3.20082 17.1095Z",
|
|
211
|
+
fill: "#FFDA44"
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
/* @__PURE__ */ e(
|
|
215
|
+
"path",
|
|
216
|
+
{
|
|
217
|
+
d: "M10.1563 10.9032L9.66866 11.5849L8.86963 11.3317L9.36735 12.0062L8.87966 12.688L9.67494 12.423L10.1727 13.0974L10.1664 12.2593L10.9616 11.9944L10.1625 11.7413L10.1563 10.9032Z",
|
|
218
|
+
fill: "#FFDA44"
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
] }),
|
|
222
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27540", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
), r = (a) => /* @__PURE__ */ i(
|
|
226
|
+
"svg",
|
|
227
|
+
{
|
|
228
|
+
width: "24",
|
|
229
|
+
height: "24",
|
|
230
|
+
viewBox: "0 0 24 24",
|
|
231
|
+
fill: "none",
|
|
232
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
233
|
+
...a,
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27547)", children: [
|
|
236
|
+
/* @__PURE__ */ e(
|
|
237
|
+
"path",
|
|
238
|
+
{
|
|
239
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
240
|
+
fill: "#F0F0F0"
|
|
241
|
+
}
|
|
242
|
+
),
|
|
243
|
+
/* @__PURE__ */ e(
|
|
244
|
+
"path",
|
|
245
|
+
{
|
|
246
|
+
d: "M11.4783 12.0002H24C24 10.9171 23.8556 9.86791 23.5866 8.86975H11.4783V12.0002Z",
|
|
247
|
+
fill: "#D80027"
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
/* @__PURE__ */ e(
|
|
251
|
+
"path",
|
|
252
|
+
{
|
|
253
|
+
d: "M11.4783 5.73873H22.2387C21.5041 4.54004 20.565 3.48053 19.4698 2.60828H11.4783V5.73873Z",
|
|
254
|
+
fill: "#D80027"
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ e(
|
|
258
|
+
"path",
|
|
259
|
+
{
|
|
260
|
+
d: "M12.0001 24.0002C14.8243 24.0002 17.4201 23.024 19.47 21.3915H4.53027C6.58016 23.024 9.17596 24.0002 12.0001 24.0002Z",
|
|
261
|
+
fill: "#D80027"
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ e(
|
|
265
|
+
"path",
|
|
266
|
+
{
|
|
267
|
+
d: "M1.76146 18.2601H22.2389C22.8286 17.2978 23.2859 16.2459 23.5868 15.1296H0.413574C0.714371 16.2459 1.17173 17.2978 1.76146 18.2601Z",
|
|
268
|
+
fill: "#D80027"
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ e(
|
|
272
|
+
"path",
|
|
273
|
+
{
|
|
274
|
+
d: "M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z",
|
|
275
|
+
fill: "#0052B4"
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ e(
|
|
279
|
+
"path",
|
|
280
|
+
{
|
|
281
|
+
d: "M7.98001 10.2709C6.34117 10.2709 5.01263 8.94229 5.01263 7.30349C5.01263 5.6647 6.34121 4.33612 7.98001 4.33612C8.491 4.33612 8.97179 4.46535 9.39156 4.69279C8.73306 4.04887 7.8325 3.65137 6.8387 3.65137C4.82171 3.65137 3.18652 5.28651 3.18652 7.30354C3.18652 9.32057 4.82171 10.9557 6.8387 10.9557C7.8325 10.9557 8.73306 10.5582 9.39156 9.91429C8.97179 10.1416 8.49104 10.2709 7.98001 10.2709Z",
|
|
282
|
+
fill: "#FFDA44"
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ e(
|
|
286
|
+
"path",
|
|
287
|
+
{
|
|
288
|
+
d: "M8.81671 5.21729L9.34354 6.31894L10.5333 6.04407L10.0005 7.14277L10.9573 7.90153L9.76602 8.17008L9.76935 9.39122L8.81671 8.62725L7.86402 9.39122L7.86731 8.17008L6.67603 7.90153L7.63284 7.14277L7.10001 6.04407L8.28984 6.31894L8.81671 5.21729Z",
|
|
289
|
+
fill: "#FFDA44"
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
] }),
|
|
293
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27547", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
), d = (a) => /* @__PURE__ */ i(
|
|
297
|
+
"svg",
|
|
298
|
+
{
|
|
299
|
+
width: "24",
|
|
300
|
+
height: "24",
|
|
301
|
+
viewBox: "0 0 24 24",
|
|
302
|
+
fill: "none",
|
|
303
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
304
|
+
...a,
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27553)", children: [
|
|
307
|
+
/* @__PURE__ */ e(
|
|
308
|
+
"path",
|
|
309
|
+
{
|
|
310
|
+
d: "M1.19023 6.78213C0.427387 8.35976 -0.000488281 10.1296 -0.000488281 11.9995C-0.000488281 13.8694 0.427387 15.6393 1.19023 17.2169L11.9995 18.2604L22.8088 17.2169C23.5716 15.6393 23.9995 13.8694 23.9995 11.9995C23.9995 10.1296 23.5716 8.35976 22.8088 6.78213L11.9995 5.73865L1.19023 6.78213Z",
|
|
311
|
+
fill: "#F0F0F0"
|
|
312
|
+
}
|
|
313
|
+
),
|
|
314
|
+
/* @__PURE__ */ e(
|
|
315
|
+
"path",
|
|
316
|
+
{
|
|
317
|
+
d: "M1.19092 17.2183C3.13182 21.2322 7.24225 24.0009 11.9998 24.0009C16.7573 24.0009 20.8677 21.2322 22.8086 17.2183H1.19092Z",
|
|
318
|
+
fill: "#6DA544"
|
|
319
|
+
}
|
|
320
|
+
),
|
|
321
|
+
/* @__PURE__ */ e(
|
|
322
|
+
"path",
|
|
323
|
+
{
|
|
324
|
+
d: "M1.19092 6.78238H22.8086C20.8677 2.76843 16.7573 -0.000244141 11.9998 -0.000244141C7.24229 -0.000244141 3.13182 2.76843 1.19092 6.78238Z",
|
|
325
|
+
fill: "#FF9811"
|
|
326
|
+
}
|
|
327
|
+
),
|
|
328
|
+
/* @__PURE__ */ e(
|
|
329
|
+
"path",
|
|
330
|
+
{
|
|
331
|
+
d: "M12.0001 16.1742C14.3052 16.1742 16.174 14.3055 16.174 12.0003C16.174 9.69513 14.3052 7.82642 12.0001 7.82642C9.69489 7.82642 7.82617 9.69513 7.82617 12.0003C7.82617 14.3055 9.69489 16.1742 12.0001 16.1742Z",
|
|
332
|
+
fill: "#FF9811"
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27553", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
), l = (a) => /* @__PURE__ */ i(
|
|
340
|
+
"svg",
|
|
341
|
+
{
|
|
342
|
+
width: "24",
|
|
343
|
+
height: "24",
|
|
344
|
+
viewBox: "0 0 24 24",
|
|
345
|
+
fill: "none",
|
|
346
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
347
|
+
...a,
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27559)", children: [
|
|
350
|
+
/* @__PURE__ */ e(
|
|
351
|
+
"path",
|
|
352
|
+
{
|
|
353
|
+
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
354
|
+
fill: "#F0F0F0"
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
/* @__PURE__ */ e(
|
|
358
|
+
"path",
|
|
359
|
+
{
|
|
360
|
+
d: "M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12",
|
|
361
|
+
fill: "#A2001D"
|
|
362
|
+
}
|
|
363
|
+
)
|
|
364
|
+
] }),
|
|
365
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27559", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
), h = (a) => /* @__PURE__ */ i(
|
|
369
|
+
"svg",
|
|
370
|
+
{
|
|
371
|
+
width: "24",
|
|
372
|
+
height: "24",
|
|
373
|
+
viewBox: "0 0 20 20",
|
|
374
|
+
fill: "none",
|
|
375
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
376
|
+
...a,
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_10544_106556)", children: [
|
|
379
|
+
/* @__PURE__ */ e(
|
|
380
|
+
"path",
|
|
381
|
+
{
|
|
382
|
+
d: "M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",
|
|
383
|
+
fill: "#D80027"
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
/* @__PURE__ */ e(
|
|
387
|
+
"path",
|
|
388
|
+
{
|
|
389
|
+
d: "M10.0003 5.2168L11.0795 8.53825H14.5719L11.7464 10.591L12.8257 13.9125L10.0003 11.8597L7.17488 13.9125L8.2541 10.591L5.42871 8.53825H8.92105L10.0003 5.2168Z",
|
|
390
|
+
fill: "#FFDA44"
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
] }),
|
|
394
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_10544_106556", children: /* @__PURE__ */ e("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@tanstack/react-query"),n=require("react");function t(){return new r.QueryClient({defaultOptions:{queries:{staleTime:1e3*60*10,gcTime:1e3*60*60*12,refetchOnMount:!0,refetchOnReconnect:!0,refetchOnWindowFocus:!0,networkMode:"always"}}})}let e;const c=n.cache(()=>r.isServer?t():(e||(e=t()),e));exports.getQueryClient=c;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isServer as r, QueryClient as n } from "@tanstack/react-query";
|
|
2
|
+
import { cache as o } from "react";
|
|
3
|
+
function t() {
|
|
4
|
+
return new n({
|
|
5
|
+
defaultOptions: {
|
|
6
|
+
queries: {
|
|
7
|
+
staleTime: 1e3 * 60 * 10,
|
|
8
|
+
// 10mins
|
|
9
|
+
gcTime: 1e3 * 60 * 60 * 12,
|
|
10
|
+
// 12hr
|
|
11
|
+
refetchOnMount: !0,
|
|
12
|
+
refetchOnReconnect: !0,
|
|
13
|
+
refetchOnWindowFocus: !0,
|
|
14
|
+
networkMode: "always"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
let e;
|
|
20
|
+
const u = o(() => r ? t() : (e || (e = t()), e));
|
|
21
|
+
export {
|
|
22
|
+
u as getQueryClient
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("is-mobile"),i=require("react");i.cache(e=>t.isMobile({tablet:!0,featureDetect:typeof window<"u",...e}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("zod");n.z.union([n.z.number(),n.z.string().transform(t=>{const l=parseFloat(t);return isNaN(l)?null:l})]).nullable().optional().default(null).catch(null);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>["queries/topWins"];exports.getTopWinsQueryKey=e;
|
package/dist/handlers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),r=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const i=require("../../utils/queryKeys.js"),o=require("../services/getSession.js"),c=async()=>{const e=await o.getSession();e.status!=="unauthenticated"&&await u.getQueryClient().prefetchQuery({queryKey:i.getAccountQueryKey(),queryFn:async({signal:t})=>await n.getMemberAccount({signal:t,environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})})};exports.prefetchAccountQuery=c;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { getMemberAccount as
|
|
1
|
+
import { getMemberAccount as r } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as o, ENVIRONMENT as i } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import { getQueryClient as
|
|
6
|
+
import { getQueryClient as n } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
|
-
import { getAccountQueryKey as
|
|
11
|
-
import "../../utils/toaster.mjs";
|
|
8
|
+
import { getAccountQueryKey as m } from "../../utils/queryKeys.mjs";
|
|
12
9
|
import { getSession as a } from "../services/getSession.mjs";
|
|
13
|
-
const
|
|
10
|
+
const Q = async () => {
|
|
14
11
|
const t = await a();
|
|
15
|
-
t.status !== "unauthenticated" && await
|
|
16
|
-
queryKey:
|
|
17
|
-
queryFn: async ({ signal:
|
|
18
|
-
signal:
|
|
12
|
+
t.status !== "unauthenticated" && await n().prefetchQuery({
|
|
13
|
+
queryKey: m(),
|
|
14
|
+
queryFn: async ({ signal: e }) => await r({
|
|
15
|
+
signal: e,
|
|
19
16
|
environment: i,
|
|
20
17
|
headers: {
|
|
21
18
|
"Platform-Code": o,
|
|
@@ -25,5 +22,5 @@ const C = async () => {
|
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
Q as prefetchAccountQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@opexa/portal-sdk-core"),t=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const a=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const n=require("../../utils/queryKeys.js"),s=require("../services/getSession.js"),u=async e=>{const r=await s.getSession();r.status!=="unauthenticated"&&await a.getQueryClient().prefetchQuery({queryKey:n.getAvailablePromosQueryKey(e),queryFn:async({signal:o})=>await i.getAvailablePromos(e,{signal:o,environment:t.ENVIRONMENT,headers:{"Platform-Code":t.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})})};exports.prefetchAvailablePromosQuery=u;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { getAvailablePromos as o } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { PLATFORM_CODE as i, ENVIRONMENT as
|
|
2
|
+
import { PLATFORM_CODE as i, ENVIRONMENT as a } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import { getQueryClient as
|
|
6
|
+
import { getQueryClient as m } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getAvailablePromosQueryKey as n } from "../../utils/queryKeys.mjs";
|
|
11
|
-
import "../../utils/toaster.mjs";
|
|
12
9
|
import { getSession as s } from "../services/getSession.mjs";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
10
|
+
const g = async (r) => {
|
|
11
|
+
const e = await s();
|
|
12
|
+
e.status !== "unauthenticated" && await m().prefetchQuery({
|
|
16
13
|
queryKey: n(r),
|
|
17
|
-
queryFn: async ({ signal:
|
|
18
|
-
signal:
|
|
19
|
-
environment:
|
|
14
|
+
queryFn: async ({ signal: t }) => await o(r, {
|
|
15
|
+
signal: t,
|
|
16
|
+
environment: a,
|
|
20
17
|
headers: {
|
|
21
18
|
"Platform-Code": i,
|
|
22
|
-
Authorization: `Bearer ${
|
|
19
|
+
Authorization: `Bearer ${e.token}`
|
|
23
20
|
}
|
|
24
21
|
})
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
g as prefetchAvailablePromosQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@opexa/portal-sdk-core"),t=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const s=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const u=require("../../utils/queryKeys.js"),i=require("../services/getSession.js"),c=async e=>{const r=await i.getSession();r.status!=="unauthenticated"&&await s.getQueryClient().prefetchQuery({queryKey:u.getBetRecordsQueryKey(e),queryFn:async({signal:n})=>await o.getBetRecords(e,{signal:n,environment:t.ENVIRONMENT,headers:{"Platform-Code":t.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})})};exports.prefetchBetRecordsQuery=c;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { getBetRecords as o } from "@opexa/portal-sdk-core";
|
|
2
2
|
import { PLATFORM_CODE as i, ENVIRONMENT as m } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
6
|
import { getQueryClient as n } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
8
|
import { getBetRecordsQueryKey as a } from "../../utils/queryKeys.mjs";
|
|
11
|
-
import "../../utils/toaster.mjs";
|
|
12
9
|
import { getSession as s } from "../services/getSession.mjs";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
queryKey: a(
|
|
17
|
-
queryFn: async ({ signal:
|
|
18
|
-
signal:
|
|
10
|
+
const B = async (e) => {
|
|
11
|
+
const r = await s();
|
|
12
|
+
r.status !== "unauthenticated" && await n().prefetchQuery({
|
|
13
|
+
queryKey: a(e),
|
|
14
|
+
queryFn: async ({ signal: t }) => await o(e, {
|
|
15
|
+
signal: t,
|
|
19
16
|
environment: m,
|
|
20
17
|
headers: {
|
|
21
18
|
"Platform-Code": i,
|
|
22
|
-
Authorization: `Bearer ${
|
|
19
|
+
Authorization: `Bearer ${r.token}`
|
|
23
20
|
}
|
|
24
21
|
})
|
|
25
22
|
});
|
|
26
23
|
};
|
|
27
24
|
export {
|
|
28
|
-
|
|
25
|
+
B as prefetchBetRecordsQuery
|
|
29
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const a=require("../../utils/queryKeys.js"),s=async()=>{await u.getQueryClient().prefetchQuery({queryKey:a.getCashbacksQueryKey(),queryFn:async({signal:r})=>await t.getCashbacks({signal:r,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})})};exports.prefetchCashbacksQuery=s;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { getCashbacks as
|
|
2
|
-
import { PLATFORM_CODE as
|
|
1
|
+
import { getCashbacks as e } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { PLATFORM_CODE as t, ENVIRONMENT as o } from "../../constants/index.mjs";
|
|
3
3
|
import "../../utils/capitalize.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react";
|
|
6
4
|
import "../../utils/parseDecimal.mjs";
|
|
7
5
|
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
-
import { getQueryClient as
|
|
6
|
+
import { getQueryClient as a } from "../../utils/getQueryClient.mjs";
|
|
9
7
|
import "../../utils/isMobile.mjs";
|
|
10
|
-
import { getCashbacksQueryKey as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
queryFn: async ({ signal: r }) => await t({
|
|
8
|
+
import { getCashbacksQueryKey as m } from "../../utils/queryKeys.mjs";
|
|
9
|
+
const h = async () => {
|
|
10
|
+
await a().prefetchQuery({
|
|
11
|
+
queryKey: m(),
|
|
12
|
+
queryFn: async ({ signal: r }) => await e({
|
|
16
13
|
signal: r,
|
|
17
14
|
environment: o,
|
|
18
15
|
headers: {
|
|
19
|
-
"Platform-Code":
|
|
16
|
+
"Platform-Code": t
|
|
20
17
|
}
|
|
21
18
|
})
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
h as prefetchCashbacksQuery
|
|
26
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@opexa/portal-sdk-core"),t=require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const u=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const o=require("../../utils/queryKeys.js"),s=require("../services/getSession.js"),a=async e=>{const r=await s.getSession();r.status!=="unauthenticated"&&await u.getQueryClient().prefetchQuery({queryKey:o.getDepositQueryKey(e),queryFn:async({signal:i})=>await n.getDeposit(e,{signal:i,environment:t.ENVIRONMENT,headers:{"Platform-Code":t.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})})};exports.prefetchDepositQuery=a;
|