@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,47 @@
|
|
|
1
|
+
import { getWithdrawalRecords as m } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useInfiniteQuery as y } from "@tanstack/react-query";
|
|
3
|
+
import u from "tiny-invariant";
|
|
4
|
+
import { PLATFORM_CODE as d, ENVIRONMENT as p } from "../../constants/index.mjs";
|
|
5
|
+
import "../../utils/capitalize.mjs";
|
|
6
|
+
import "../../utils/parseDecimal.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import { getQueryClient as f } from "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
import { getWithdrawalRecordsQueryKey as h, getSessionQueryKey as c } from "../../utils/queryKeys.mjs";
|
|
11
|
+
import { getSession as Q } from "../services/getSession.mjs";
|
|
12
|
+
import { useSessionQuery as q } from "./useSessionQuery.mjs";
|
|
13
|
+
const b = (i, t) => {
|
|
14
|
+
var n;
|
|
15
|
+
const a = f(), s = q();
|
|
16
|
+
return y({
|
|
17
|
+
...t,
|
|
18
|
+
enabled: (t == null ? void 0 : t.enabled) === !1 ? !1 : ((n = s.data) == null ? void 0 : n.status) === "authenticated",
|
|
19
|
+
queryKey: h(i),
|
|
20
|
+
queryFn: async ({ pageParam: e, signal: o }) => {
|
|
21
|
+
const r = await a.fetchQuery({
|
|
22
|
+
queryKey: c(),
|
|
23
|
+
queryFn: () => Q()
|
|
24
|
+
});
|
|
25
|
+
return u(r.status === "authenticated"), u(r.status === "authenticated"), await m(
|
|
26
|
+
{ ...i, after: e },
|
|
27
|
+
{
|
|
28
|
+
signal: o,
|
|
29
|
+
environment: p,
|
|
30
|
+
headers: {
|
|
31
|
+
"Platform-Code": d,
|
|
32
|
+
Authorization: `Bearer ${r.token}`
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
initialPageParam: void 0,
|
|
38
|
+
getNextPageParam(e) {
|
|
39
|
+
var o, r;
|
|
40
|
+
if ((o = e == null ? void 0 : e.pageInfo) != null && o.hasNextPage)
|
|
41
|
+
return (r = e == null ? void 0 : e.pageInfo) == null ? void 0 : r.endCursor;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
b as useWithdrawalRecordsQuery
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../constants/index.js");async function o(e){if(!(await(await fetch("/api/authenticate",{body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n.BYPASS_RECAPTCHA&&{"Test-Pass":""}}})).json()).ok){const t=new Error;throw t.name="SignInError",t.message="Failed to sign in",t}}exports.authenticate=o;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Session } from '
|
|
1
|
+
import { Session } from '../../types';
|
|
2
2
|
export declare function getSession(): Promise<Session>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../constants/index.js");async function o(s){const e=await(await fetch("/api/sessions",{body:JSON.stringify(s),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...t.BYPASS_RECAPTCHA&&{"Test-Pass":""}}})).json();if(!e.ok){const n=new Error;throw n.name="SignInError",n.message="Failed to sign in",n}return e.data??null}exports.signIn=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),v=require("react");require("../../utils/capitalize.js");const f=require("../../utils/createSplitProps.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");function g(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const m=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,m.get?m:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const x=g(v);function j(e){const n=x.createContext(null);function a(){return x.useContext(n)}function m(t){return r=>{const[i,o]=f.createSplitProps(e.variantKeys)(r),s=e(i);return p.jsx(n.Provider,{value:s,children:p.jsx(t,{...o})})}}function P(t,d){const r=i=>{const[o,s]=f.createSplitProps(e.variantKeys)(i),c=e(o),l=c[d],u="className"in s&&typeof s.className=="string"?s.className:void 0,N=l?l({...o,className:u}):u;return p.jsx(n.Provider,{value:c,children:p.jsx(t,{...s,className:N})})};return r.displayName=t.displayName||t.name,r}function S(t,d){const r=i=>{const o=a(),[s,c]=f.createSplitProps(e.variantKeys)(i),y=d,l=o?o[y]:e(s)[y],u="className"in c&&typeof c.className=="string"?c.className:void 0,N=l?l({...s,className:u}):u;return p.jsx(t,{...c,className:N})};return r.displayName=t.displayName||t.name,r}return{withRootProvider:m,withProvider:P,withContext:S}}exports.createRecipeContext=j;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as y from "react";
|
|
3
|
+
import "../../utils/capitalize.mjs";
|
|
4
|
+
import { createSplitProps as d } from "../../utils/createSplitProps.mjs";
|
|
5
|
+
import "../../utils/parseDecimal.mjs";
|
|
6
|
+
import "../../constants/index.mjs";
|
|
7
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
8
|
+
import "../../utils/getQueryClient.mjs";
|
|
9
|
+
import "../../utils/isMobile.mjs";
|
|
10
|
+
function j(r) {
|
|
11
|
+
const p = y.createContext(null);
|
|
12
|
+
function x() {
|
|
13
|
+
return y.useContext(p);
|
|
14
|
+
}
|
|
15
|
+
function f(t) {
|
|
16
|
+
return (o) => {
|
|
17
|
+
const [a, s] = d(r.variantKeys)(
|
|
18
|
+
o
|
|
19
|
+
), e = r(a);
|
|
20
|
+
return /* @__PURE__ */ l(p.Provider, { value: e, children: /* @__PURE__ */ l(t, { ...s }) });
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function v(t, m) {
|
|
24
|
+
const o = (a) => {
|
|
25
|
+
const [s, e] = d(r.variantKeys)(
|
|
26
|
+
a
|
|
27
|
+
), n = r(s), c = n[m], i = "className" in e && typeof e.className == "string" ? e.className : void 0, N = c ? c({
|
|
28
|
+
...s,
|
|
29
|
+
className: i
|
|
30
|
+
}) : i;
|
|
31
|
+
return /* @__PURE__ */ l(p.Provider, { value: n, children: /* @__PURE__ */ l(t, { ...e, className: N }) });
|
|
32
|
+
};
|
|
33
|
+
return o.displayName = t.displayName || t.name, o;
|
|
34
|
+
}
|
|
35
|
+
function P(t, m) {
|
|
36
|
+
const o = (a) => {
|
|
37
|
+
const s = x(), [e, n] = d(r.variantKeys)(
|
|
38
|
+
a
|
|
39
|
+
), u = m, c = s ? s[u] : r(e)[u], i = "className" in n && typeof n.className == "string" ? n.className : void 0, N = c ? c({
|
|
40
|
+
...e,
|
|
41
|
+
className: i
|
|
42
|
+
}) : i;
|
|
43
|
+
return /* @__PURE__ */ l(t, { ...n, className: N });
|
|
44
|
+
};
|
|
45
|
+
return o.displayName = t.displayName || t.name, o;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
withRootProvider: f,
|
|
49
|
+
withProvider: v,
|
|
50
|
+
withContext: P
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
j as createRecipeContext
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),t=e.createToaster({placement:"top",duration:5e3,max:5,overlap:!0,gap:8});exports.toaster=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./client/hooks/useAccountQuery.js"),u=require("./client/hooks/useAuthenticateMutation.js"),s=require("./client/hooks/useAvailablePromosQuery.js"),r=require("./client/hooks/useBetRecordsQuery.js"),t=require("./client/hooks/useCashbacksQuery.js"),o=require("./client/hooks/useControllableState.js"),i=require("./client/hooks/useCooldown.js"),n=require("./client/hooks/useCreateGameSessionMutation.js"),a=require("./client/hooks/useCreateGCashDepositMutation.js"),y=require("./client/hooks/useCreateMayaAppDepositMutation.js"),c=require("./client/hooks/useCreateMayaDepositMutation.js"),Q=require("./client/hooks/useCreateOnlineBankDepositMutation.js"),M=require("./client/hooks/useCreateQRPHDepositMutation.js"),l=require("./client/hooks/useDepositQuery.js"),p=require("./client/hooks/useDepositRecordsQuery.js"),q=require("./client/hooks/useDepositsCountQuery.js"),S=require("./client/hooks/useDisclosure.js"),C=require("./client/hooks/useEndGameSessionMutation.js"),m=require("./client/hooks/useGamesQuery.js"),d=require("./client/hooks/useGlobalStore.js"),D=require("./client/hooks/useInfiniteQueryHelper.js"),b=require("./client/hooks/useInstapayBankListQuery.js"),P=require("./client/hooks/useIsMayaSessionValidQuery.js"),f=require("./client/hooks/useJackpotsQuery.js"),A=require("./client/hooks/useLocaleInfo.js"),G=require("./client/hooks/useMemberVerificationQuery.js"),I=require("./client/hooks/useMobileNumberParser.js"),R=require("./client/hooks/useOnMMA.js"),g=require("./client/hooks/usePaymentSettingsQuery.js"),h=require("./client/hooks/usePlatformQuery.js"),k=require("./client/hooks/usePromoQuery.js"),O=require("./client/hooks/usePromosQuery.js"),T=require("./client/hooks/useSendVerificationCodeMutation.js"),B=require("./client/hooks/useSessionQuery.js"),V=require("./client/hooks/useSignInMutation.js"),W=require("./client/hooks/useSignOutMutation.js"),w=require("./client/hooks/useSignUpMutation.js"),H=require("./client/hooks/useSiteQuery.js"),L=require("./client/hooks/useTopWinsQuery.js"),v=require("./client/hooks/useTournamentsQuery.js"),E=require("./client/hooks/useTransactionRecordsQuery.js"),J=require("./client/hooks/useWalletQuery.js"),N=require("./client/hooks/useWithdrawalRecordsQuery.js");exports.useAccountQuery=e.useAccountQuery;exports.useAuthenticateMutation=u.useAuthenticateMutation;exports.useAvailablePromosQuery=s.useAvailablePromosQuery;exports.useBetRecordsQuery=r.useBetRecordsQuery;exports.useCashbacksQuery=t.useCashbacksQuery;exports.useControllableState=o.useControllableState;exports.useCooldown=i.useCooldown;exports.useCreateGameSessionMutation=n.useCreateGameSessionMutation;exports.useCreateGCashDepositMutation=a.useCreateGCashDepositMutation;exports.useCreateMayaAppDepositMutation=y.useCreateMayaAppDepositMutation;exports.useCreateMayaDepositMutation=c.useCreateMayaDepositMutation;exports.useCreateOnlineBankDepositMutation=Q.useCreateOnlineBankDepositMutation;exports.useCreateQRPHDepositMutation=M.useCreateQRPHDepositMutation;exports.useDepositQuery=l.useDepositQuery;exports.useDepositRecordsQuery=p.useDepositRecordsQuery;exports.useDepositsCountQuery=q.useDepositsCountQuery;exports.useDisclosure=S.useDisclosure;exports.useEndGameSessionMutation=C.useEndGameSessionMutation;exports.useGamesQuery=m.useGamesQuery;exports.useGlobalStore=d.useGlobalStore;exports.useInfiniteQueryHelper=D.useInfiniteQueryHelper;exports.useInstapayBankListQuery=b.useInstapayBankListQuery;exports.useIsMayaSessionValidQuery=P.useIsMayaSessionValidQuery;exports.useJackpotsQuery=f.useJackpotsQuery;exports.useLocaleInfo=A.useLocaleInfo;exports.useMemberVerificationQuery=G.useMemberVerificationQuery;exports.useMobileNumberParser=I.useMobileNumberParser;exports.useOnMMA=R.useOnMMA;exports.usePaymentSettingsQuery=g.usePaymentSettingsQuery;exports.usePlatformQuery=h.usePlatformQuery;exports.usePromoQuery=k.usePromoQuery;exports.usePromosQuery=O.usePromosQuery;exports.useSendVerificationCodeMutation=T.useSendVerificationCodeMutation;exports.useSessionQuery=B.useSessionQuery;exports.useSignInMutation=V.useSignInMutation;exports.useSignOutMutation=W.useSignOutMutation;exports.useSignUpMutation=w.useSignUpMutation;exports.useSiteQuery=H.useSiteQuery;exports.useTopWinsQuery=L.useTopWinsQuery;exports.useTournamentsQuery=v.useTournamentsQuery;exports.useTransactionRecordsQuery=E.useTransactionRecordsQuery;exports.useWalletQuery=J.useWalletQuery;exports.useWithdrawalRecordsQuery=N.useWithdrawalRecordsQuery;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useAccountQuery as r } from "./client/hooks/useAccountQuery.mjs";
|
|
2
|
+
import { useAuthenticateMutation as u } from "./client/hooks/useAuthenticateMutation.mjs";
|
|
3
|
+
import { useAvailablePromosQuery as p } from "./client/hooks/useAvailablePromosQuery.mjs";
|
|
4
|
+
import { useBetRecordsQuery as m } from "./client/hooks/useBetRecordsQuery.mjs";
|
|
5
|
+
import { useCashbacksQuery as i } from "./client/hooks/useCashbacksQuery.mjs";
|
|
6
|
+
import { useControllableState as x } from "./client/hooks/useControllableState.mjs";
|
|
7
|
+
import { useCooldown as Q } from "./client/hooks/useCooldown.mjs";
|
|
8
|
+
import { useCreateGameSessionMutation as l } from "./client/hooks/useCreateGameSessionMutation.mjs";
|
|
9
|
+
import { useCreateGCashDepositMutation as C } from "./client/hooks/useCreateGCashDepositMutation.mjs";
|
|
10
|
+
import { useCreateMayaAppDepositMutation as d } from "./client/hooks/useCreateMayaAppDepositMutation.mjs";
|
|
11
|
+
import { useCreateMayaDepositMutation as b } from "./client/hooks/useCreateMayaDepositMutation.mjs";
|
|
12
|
+
import { useCreateOnlineBankDepositMutation as A } from "./client/hooks/useCreateOnlineBankDepositMutation.mjs";
|
|
13
|
+
import { useCreateQRPHDepositMutation as I } from "./client/hooks/useCreateQRPHDepositMutation.mjs";
|
|
14
|
+
import { useDepositQuery as g } from "./client/hooks/useDepositQuery.mjs";
|
|
15
|
+
import { useDepositRecordsQuery as k } from "./client/hooks/useDepositRecordsQuery.mjs";
|
|
16
|
+
import { useDepositsCountQuery as O } from "./client/hooks/useDepositsCountQuery.mjs";
|
|
17
|
+
import { useDisclosure as V } from "./client/hooks/useDisclosure.mjs";
|
|
18
|
+
import { useEndGameSessionMutation as w } from "./client/hooks/useEndGameSessionMutation.mjs";
|
|
19
|
+
import { useGamesQuery as L } from "./client/hooks/useGamesQuery.mjs";
|
|
20
|
+
import { useGlobalStore as E } from "./client/hooks/useGlobalStore.mjs";
|
|
21
|
+
import { useInfiniteQueryHelper as N } from "./client/hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
+
import { useInstapayBankListQuery as j } from "./client/hooks/useInstapayBankListQuery.mjs";
|
|
23
|
+
import { useIsMayaSessionValidQuery as z } from "./client/hooks/useIsMayaSessionValidQuery.mjs";
|
|
24
|
+
import { useJackpotsQuery as K } from "./client/hooks/useJackpotsQuery.mjs";
|
|
25
|
+
import { useLocaleInfo as Y } from "./client/hooks/useLocaleInfo.mjs";
|
|
26
|
+
import { useMemberVerificationQuery as _ } from "./client/hooks/useMemberVerificationQuery.mjs";
|
|
27
|
+
import { useMobileNumberParser as ee } from "./client/hooks/useMobileNumberParser.mjs";
|
|
28
|
+
import { useOnMMA as re } from "./client/hooks/useOnMMA.mjs";
|
|
29
|
+
import { usePaymentSettingsQuery as ue } from "./client/hooks/usePaymentSettingsQuery.mjs";
|
|
30
|
+
import { usePlatformQuery as pe } from "./client/hooks/usePlatformQuery.mjs";
|
|
31
|
+
import { usePromoQuery as me } from "./client/hooks/usePromoQuery.mjs";
|
|
32
|
+
import { usePromosQuery as ie } from "./client/hooks/usePromosQuery.mjs";
|
|
33
|
+
import { useSendVerificationCodeMutation as xe } from "./client/hooks/useSendVerificationCodeMutation.mjs";
|
|
34
|
+
import { useSessionQuery as Qe } from "./client/hooks/useSessionQuery.mjs";
|
|
35
|
+
import { useSignInMutation as le } from "./client/hooks/useSignInMutation.mjs";
|
|
36
|
+
import { useSignOutMutation as Ce } from "./client/hooks/useSignOutMutation.mjs";
|
|
37
|
+
import { useSignUpMutation as de } from "./client/hooks/useSignUpMutation.mjs";
|
|
38
|
+
import { useSiteQuery as be } from "./client/hooks/useSiteQuery.mjs";
|
|
39
|
+
import { useTopWinsQuery as Ae } from "./client/hooks/useTopWinsQuery.mjs";
|
|
40
|
+
import { useTournamentsQuery as Ie } from "./client/hooks/useTournamentsQuery.mjs";
|
|
41
|
+
import { useTransactionRecordsQuery as ge } from "./client/hooks/useTransactionRecordsQuery.mjs";
|
|
42
|
+
import { useWalletQuery as ke } from "./client/hooks/useWalletQuery.mjs";
|
|
43
|
+
import { useWithdrawalRecordsQuery as Oe } from "./client/hooks/useWithdrawalRecordsQuery.mjs";
|
|
44
|
+
export {
|
|
45
|
+
r as useAccountQuery,
|
|
46
|
+
u as useAuthenticateMutation,
|
|
47
|
+
p as useAvailablePromosQuery,
|
|
48
|
+
m as useBetRecordsQuery,
|
|
49
|
+
i as useCashbacksQuery,
|
|
50
|
+
x as useControllableState,
|
|
51
|
+
Q as useCooldown,
|
|
52
|
+
C as useCreateGCashDepositMutation,
|
|
53
|
+
l as useCreateGameSessionMutation,
|
|
54
|
+
d as useCreateMayaAppDepositMutation,
|
|
55
|
+
b as useCreateMayaDepositMutation,
|
|
56
|
+
A as useCreateOnlineBankDepositMutation,
|
|
57
|
+
I as useCreateQRPHDepositMutation,
|
|
58
|
+
g as useDepositQuery,
|
|
59
|
+
k as useDepositRecordsQuery,
|
|
60
|
+
O as useDepositsCountQuery,
|
|
61
|
+
V as useDisclosure,
|
|
62
|
+
w as useEndGameSessionMutation,
|
|
63
|
+
L as useGamesQuery,
|
|
64
|
+
E as useGlobalStore,
|
|
65
|
+
N as useInfiniteQueryHelper,
|
|
66
|
+
j as useInstapayBankListQuery,
|
|
67
|
+
z as useIsMayaSessionValidQuery,
|
|
68
|
+
K as useJackpotsQuery,
|
|
69
|
+
Y as useLocaleInfo,
|
|
70
|
+
_ as useMemberVerificationQuery,
|
|
71
|
+
ee as useMobileNumberParser,
|
|
72
|
+
re as useOnMMA,
|
|
73
|
+
ue as usePaymentSettingsQuery,
|
|
74
|
+
pe as usePlatformQuery,
|
|
75
|
+
me as usePromoQuery,
|
|
76
|
+
ie as usePromosQuery,
|
|
77
|
+
xe as useSendVerificationCodeMutation,
|
|
78
|
+
Qe as useSessionQuery,
|
|
79
|
+
le as useSignInMutation,
|
|
80
|
+
Ce as useSignOutMutation,
|
|
81
|
+
de as useSignUpMutation,
|
|
82
|
+
be as useSiteQuery,
|
|
83
|
+
Ae as useTopWinsQuery,
|
|
84
|
+
Ie as useTournamentsQuery,
|
|
85
|
+
ge as useTransactionRecordsQuery,
|
|
86
|
+
ke as useWalletQuery,
|
|
87
|
+
Oe as useWithdrawalRecordsQuery
|
|
88
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./client/services/authenticate.js"),t=require("./client/services/getSession.js"),n=require("./client/services/signIn.js"),i=require("./client/services/signOut.js");exports.authenticate=e.authenticate;exports.getSession=t.getSession;exports.signIn=n.signIn;exports.signOut=i.signOut;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { authenticate as e } from "./client/services/authenticate.mjs";
|
|
2
|
+
import { getSession as n } from "./client/services/getSession.mjs";
|
|
3
|
+
import { signIn as i } from "./client/services/signIn.mjs";
|
|
4
|
+
import { signOut as p } from "./client/services/signOut.mjs";
|
|
5
|
+
export {
|
|
6
|
+
e as authenticate,
|
|
7
|
+
n as getSession,
|
|
8
|
+
i as signIn,
|
|
9
|
+
p as signOut
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./client/utils/createRecipeContext.js"),t=require("./client/utils/toaster.js");exports.createRecipeContext=e.createRecipeContext;exports.toaster=t.toaster;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),g=require("next/link"),q=require("../../hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),g=require("next/link"),u=require("zustand/shallow"),q=require("../../client/hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../utils/capitalize.js");const y=require("../../utils/formatNumber.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const d=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const N=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const w=require("../../client/hooks/useSignOutMutation.js"),O=require("../../client/hooks/useWalletQuery.js"),m=require("../../icons/ChevronRightIcon.js"),P=require("../../icons/Logout01Icon.js"),c=require("../../icons/User01Icon.js");require("../../ui/AlertDialog/AlertDialog.js");const o=require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const h=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");const n=require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");const a=require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function v(s){const i=d.useGlobalStore(u.useShallow(r=>({profile:r.profile,mobileProfile:r.mobileProfile})));return e.jsxs(e.Fragment,{children:[e.jsxs(n.Root,{open:i.profile.open,onOpenChange:r=>{i.profile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,children:[e.jsx(n.Trigger,{asChild:!0,className:"lg:hidden",children:s.children??e.jsx("button",{type:"button",children:e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})})})}),e.jsxs(x.Portal,{children:[e.jsx(n.Backdrop,{}),e.jsx(n.Positioner,{children:e.jsxs(n.Content,{className:"bg-gray-50 flex w-[316px] flex-col px-xl py-6",children:[e.jsx(f,{}),e.jsx(j,{}),e.jsx(b,{links:s.links??[]}),e.jsx("div",{className:"grow"}),e.jsx(p,{})]})})]})]}),e.jsxs(a.Root,{open:i.mobileProfile.open,onOpenChange:r=>{i.mobileProfile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,positioning:{placement:"bottom"},children:[e.jsx(a.Trigger,{className:"hidden lg:flex",asChild:!0,children:s.children??e.jsx("button",{type:"button",children:e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})})})}),e.jsx(x.Portal,{children:e.jsx(a.Positioner,{children:e.jsxs(a.Content,{className:"border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsx(f,{}),e.jsx(j,{}),e.jsx(b,{links:s.links??[]}),e.jsx(p,{})]})})})]})]})}function p(){return e.jsx("div",{className:"text-gray-400 mt-xl text-center text-2xs",children:"© 2025 HappyBingo All rights reserved"})}function f(){var i,r,l,t;const s=q.useAccountQuery();return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:(i=s.data)==null?void 0:i.name}),e.jsx("p",{className:"text-gray-400 text-xs",children:((r=s.data)==null?void 0:r.nickName)??((l=s.data)==null?void 0:l.emailAddress)??((t=s.data)==null?void 0:t.realName)})]})]})}function b(s){const i=w.useSignOutMutation(),r=d.useGlobalStore(u.useShallow(l=>({profile:l.profile,mobileProfile:l.mobileProfile})));return e.jsxs("nav",{className:"mt-xl space-y-xl",children:[e.jsx("ul",{children:s.links.map((l,t)=>e.jsx("li",{className:"border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",children:e.jsxs(g,{href:l.href,onClick:()=>{r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",children:[e.jsx(l.icon,{className:"size-5"}),e.jsx("span",{className:"grow",children:l.label}),e.jsx(m.ChevronRightIcon,{className:"text-gray-400 size-5"})]})},l.href+t))}),e.jsx("ul",{children:e.jsx("li",{className:"border-gray-200 block rounded-xl border bg-white",children:e.jsxs("button",{type:"button",className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",disabled:i.isPending,onClick:()=>{i.mutate(),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:[e.jsx(P.Logout01Icon,{className:"size-5"}),e.jsx("span",{className:"grow",children:"Log Out"}),e.jsx(m.ChevronRightIcon,{className:"text-gray-400 size-5"})]})})})]})}function j(){var l;const s=N.useLocaleInfo(),i=O.useWalletQuery({refetchInterval:1e3}),r=d.useGlobalStore(u.useShallow(t=>({profile:t.profile,mobileProfile:t.mobileProfile,depositWithdrawal:t.depositWithdrawal})));return e.jsxs("div",{className:"border-gray-200 mt-3 rounded-lg border bg-white p-xl",children:[e.jsx("div",{className:"border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium",children:"Available Balance"}),e.jsx("div",{className:"mt-2 text-3xl font-semibold",children:y.formatNumber((l=i.data)==null?void 0:l.balance,{currency:s==null?void 0:s.currency.code,minDecimalPlaces:2})}),e.jsxs("div",{className:"mt-3 flex gap-lg",children:[e.jsx(h.Button,{size:"xs",variant:"outline",colorScheme:"gray",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("WITHDRAWAL"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Withdraw"}),e.jsx(h.Button,{size:"xs",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("DEPOSIT"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Deposit"})]})]})}exports.Account=v;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, Fragment as y, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Portal as
|
|
3
|
+
import { Portal as p } from "@ark-ui/react";
|
|
4
4
|
import N from "next/link";
|
|
5
|
-
import {
|
|
5
|
+
import { useShallow as d } from "zustand/shallow";
|
|
6
|
+
import { useAccountQuery as w } from "../../client/hooks/useAccountQuery.mjs";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
|
-
import "../../constants/index.mjs";
|
|
8
8
|
import "../../utils/capitalize.mjs";
|
|
9
|
-
import "react";
|
|
10
9
|
import { formatNumber as O } from "../../utils/formatNumber.mjs";
|
|
10
|
+
import "../../constants/index.mjs";
|
|
11
11
|
import "../../utils/getLocaleInfo.mjs";
|
|
12
12
|
import "../../utils/getQueryClient.mjs";
|
|
13
13
|
import "../../utils/isMobile.mjs";
|
|
14
14
|
import "../../utils/parseDecimal.mjs";
|
|
15
|
-
import "../../utils/toaster.mjs";
|
|
16
15
|
import "@opexa/portal-sdk-core";
|
|
17
16
|
import "tiny-invariant";
|
|
17
|
+
import "react";
|
|
18
18
|
import "lodash-es";
|
|
19
|
-
import "
|
|
20
|
-
import { useGlobalStore as
|
|
21
|
-
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
-
import { useLocaleInfo as P } from "../../hooks/useLocaleInfo.mjs";
|
|
19
|
+
import "@opexa/portal-sdk-core/object-id";
|
|
20
|
+
import { useGlobalStore as c } from "../../client/hooks/useGlobalStore.mjs";
|
|
21
|
+
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
+
import { useLocaleInfo as P } from "../../client/hooks/useLocaleInfo.mjs";
|
|
23
23
|
import "usehooks-ts";
|
|
24
|
-
import { useSignOutMutation as v } from "../../hooks/useSignOutMutation.mjs";
|
|
25
|
-
import { useWalletQuery as k } from "../../hooks/useWalletQuery.mjs";
|
|
24
|
+
import { useSignOutMutation as v } from "../../client/hooks/useSignOutMutation.mjs";
|
|
25
|
+
import { useWalletQuery as k } from "../../client/hooks/useWalletQuery.mjs";
|
|
26
26
|
import { ChevronRightIcon as f } from "../../icons/ChevronRightIcon.mjs";
|
|
27
27
|
import { Logout01Icon as C } from "../../icons/Logout01Icon.mjs";
|
|
28
28
|
import { User01Icon as a } from "../../icons/User01Icon.mjs";
|
|
@@ -45,10 +45,9 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
45
45
|
import "../../ui/Select/Select.mjs";
|
|
46
46
|
import "../../ui/Table/Table.mjs";
|
|
47
47
|
import "../../ui/Tabs/Tabs.mjs";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
p((r) => ({
|
|
48
|
+
function ze(t) {
|
|
49
|
+
const l = c(
|
|
50
|
+
d((r) => ({
|
|
52
51
|
profile: r.profile,
|
|
53
52
|
mobileProfile: r.mobileProfile
|
|
54
53
|
}))
|
|
@@ -65,7 +64,7 @@ function Se(t) {
|
|
|
65
64
|
unmountOnExit: !0,
|
|
66
65
|
children: [
|
|
67
66
|
/* @__PURE__ */ e(z, { asChild: !0, className: "lg:hidden", children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
|
|
68
|
-
/* @__PURE__ */ i(
|
|
67
|
+
/* @__PURE__ */ i(p, { children: [
|
|
69
68
|
/* @__PURE__ */ e(S, {}),
|
|
70
69
|
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ i(A, { className: "bg-gray-50 flex w-[316px] flex-col px-xl py-6", children: [
|
|
71
70
|
/* @__PURE__ */ e(b, {}),
|
|
@@ -92,7 +91,7 @@ function Se(t) {
|
|
|
92
91
|
},
|
|
93
92
|
children: [
|
|
94
93
|
/* @__PURE__ */ e(I, { className: "hidden lg:flex", asChild: !0, children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
94
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ i(M, { className: "border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
|
|
96
95
|
/* @__PURE__ */ e(b, {}),
|
|
97
96
|
/* @__PURE__ */ e(x, {}),
|
|
98
97
|
/* @__PURE__ */ e(g, { links: t.links ?? [] }),
|
|
@@ -118,8 +117,8 @@ function b() {
|
|
|
118
117
|
] });
|
|
119
118
|
}
|
|
120
119
|
function g(t) {
|
|
121
|
-
const l = v(), r =
|
|
122
|
-
|
|
120
|
+
const l = v(), r = c(
|
|
121
|
+
d((o) => ({
|
|
123
122
|
profile: o.profile,
|
|
124
123
|
mobileProfile: o.mobileProfile
|
|
125
124
|
}))
|
|
@@ -169,8 +168,8 @@ function x() {
|
|
|
169
168
|
var o;
|
|
170
169
|
const t = P(), l = k({
|
|
171
170
|
refetchInterval: 1e3
|
|
172
|
-
}), r =
|
|
173
|
-
|
|
171
|
+
}), r = c(
|
|
172
|
+
d((n) => ({
|
|
174
173
|
profile: n.profile,
|
|
175
174
|
mobileProfile: n.mobileProfile,
|
|
176
175
|
depositWithdrawal: n.depositWithdrawal
|
|
@@ -209,5 +208,5 @@ function x() {
|
|
|
209
208
|
] });
|
|
210
209
|
}
|
|
211
210
|
export {
|
|
212
|
-
|
|
211
|
+
ze as Account
|
|
213
212
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("embla-carousel-autoplay"),d=require("embla-carousel-react"),f=require("next/image"),g=require("next/link"),l=require("react"),h=require("tailwind-merge");require("../../utils/capitalize.js");const q=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("embla-carousel-autoplay"),d=require("embla-carousel-react"),f=require("next/image"),g=require("next/link"),l=require("react"),h=require("tailwind-merge");require("../../utils/capitalize.js");const q=require("../../utils/dataAttr.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");function x(n){const[c,e]=d({loop:!0,align:"start"},[u({playOnInit:!0,delay:5e3})]),[i,o]=l.useState(0);return l.useEffect(()=>{function t(r){o((r==null?void 0:r.selectedScrollSnap())??0)}return e==null||e.on("scroll",t),e==null||e.on("init",t),()=>{e==null||e.on("init",t),e==null||e.off("scroll",t)}},[e]),s.jsxs("div",{className:h.twMerge("relative",n.className),children:[s.jsx("div",{ref:c,className:"overflow-hidden",children:s.jsx("div",{className:"flex gap-2",children:n.banners.map((t,r)=>{const a=s.jsx(f,{src:t.src,alt:"",width:1200,height:300,className:"block h-auto w-full rounded-xl",priority:r===0});return s.jsx(l.Fragment,{children:t.redirectUrl?s.jsx(g,{href:t.redirectUrl,className:"block w-full shrink-0",children:a}):s.jsx("div",{className:"w-full shrink-0",children:a})},r)})})}),s.jsx("div",{className:"absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2",children:n.banners.map((t,r)=>s.jsx("button",{type:"button",className:"border-gray-200 ui-active:bg-gray-800 bg-gray-400 size-3 shrink-0 rounded-full border transition-all duration-300 ui-active:w-9",onClick:()=>{e==null||e.scrollTo(r)},"aria-label":`Go to slide ${r+1}`,"data-active":q.dataAttr(r===i)},r))})]})}exports.Banner=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, jsx as
|
|
2
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import m from "embla-carousel-autoplay";
|
|
4
4
|
import u from "embla-carousel-react";
|
|
5
5
|
import f from "next/image";
|
|
@@ -13,8 +13,7 @@ import "../../constants/index.mjs";
|
|
|
13
13
|
import "../../utils/getLocaleInfo.mjs";
|
|
14
14
|
import "../../utils/getQueryClient.mjs";
|
|
15
15
|
import "../../utils/isMobile.mjs";
|
|
16
|
-
|
|
17
|
-
function L(l) {
|
|
16
|
+
function G(l) {
|
|
18
17
|
const [s, r] = u(
|
|
19
18
|
{
|
|
20
19
|
loop: !0,
|
|
@@ -26,20 +25,20 @@ function L(l) {
|
|
|
26
25
|
delay: 5e3
|
|
27
26
|
})
|
|
28
27
|
]
|
|
29
|
-
), [
|
|
28
|
+
), [n, i] = h(0);
|
|
30
29
|
return g(() => {
|
|
31
|
-
function
|
|
32
|
-
|
|
30
|
+
function e(t) {
|
|
31
|
+
i((t == null ? void 0 : t.selectedScrollSnap()) ?? 0);
|
|
33
32
|
}
|
|
34
|
-
return r == null || r.on("scroll",
|
|
35
|
-
r == null || r.on("init",
|
|
33
|
+
return r == null || r.on("scroll", e), r == null || r.on("init", e), () => {
|
|
34
|
+
r == null || r.on("init", e), r == null || r.off("scroll", e);
|
|
36
35
|
};
|
|
37
36
|
}, [r]), /* @__PURE__ */ c("div", { className: v("relative", l.className), children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
const a = /* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ o("div", { ref: s, className: "overflow-hidden", children: /* @__PURE__ */ o("div", { className: "flex gap-2", children: l.banners.map((e, t) => {
|
|
38
|
+
const a = /* @__PURE__ */ o(
|
|
40
39
|
f,
|
|
41
40
|
{
|
|
42
|
-
src:
|
|
41
|
+
src: e.src,
|
|
43
42
|
alt: "",
|
|
44
43
|
width: 1200,
|
|
45
44
|
height: 300,
|
|
@@ -47,16 +46,16 @@ function L(l) {
|
|
|
47
46
|
priority: t === 0
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ o(p, { children: e.redirectUrl ? /* @__PURE__ */ o(
|
|
51
50
|
d,
|
|
52
51
|
{
|
|
53
|
-
href:
|
|
52
|
+
href: e.redirectUrl,
|
|
54
53
|
className: "block w-full shrink-0",
|
|
55
54
|
children: a
|
|
56
55
|
}
|
|
57
|
-
) : /* @__PURE__ */
|
|
56
|
+
) : /* @__PURE__ */ o("div", { className: "w-full shrink-0", children: a }) }, t);
|
|
58
57
|
}) }) }),
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ o("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: l.banners.map((e, t) => /* @__PURE__ */ o(
|
|
60
59
|
"button",
|
|
61
60
|
{
|
|
62
61
|
type: "button",
|
|
@@ -65,12 +64,12 @@ function L(l) {
|
|
|
65
64
|
r == null || r.scrollTo(t);
|
|
66
65
|
},
|
|
67
66
|
"aria-label": `Go to slide ${t + 1}`,
|
|
68
|
-
"data-active": N(t ===
|
|
67
|
+
"data-active": N(t === n)
|
|
69
68
|
},
|
|
70
69
|
t
|
|
71
70
|
)) })
|
|
72
71
|
] });
|
|
73
72
|
}
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
G as Banner
|
|
76
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("@ark-ui/react"),p=require("@date-fns/tz"),h=require("date-fns"),z=require("react"),I=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const d=require("../../utils/capitalize.js"),C=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../utils/toaster.js");const Z=require("../../hooks/useBetRecordsQuery.js");require("lodash-es");require("../../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.js");require("../../hooks/useGlobalStore.js");const O=require("../../hooks/useInfiniteQueryHelper.js"),J=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const N=require("../../icons/CheckIcon.js"),y=require("../../icons/ChevronDownIcon.js"),D=require("../../icons/ChevronLeftIcon.js"),P=require("../../icons/ChevronRightIcon.js"),$=require("../../icons/File02Icon.js"),K=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");const s=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const E=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");const l=require("../../ui/SegmentGroup/SegmentGroup.js"),i=require("../../ui/Select/Select.js"),t=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const W=require("../Empty/Empty.js");function X(o){var f,S;const[B,q]=z.useState("all"),[a,x]=z.useReducer((r,n)=>({...r,...n}),{page:1,pageSize:10,type:o.gameTypes[0]}),u=J.useLocaleInfo(),b=m.createListCollection({items:o.gameProviders,itemToValue:r=>r,itemToString:r=>d.capitalize(r,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),{page:M,pageSize:k,hasNextPage:L,hasPrevPage:_,next:A,prev:F,rows:v,setPageSize:U,totalPages:G,loading:j,firstPage:g}=O.useInfiniteQueryHelper(Z.useBetRecordsQuery,{filter:{...a.type&&{game__type:{equal:a.type}},...a.provider&&{game__provider:{equal:a.provider}},...a.status&&{status:{equal:a.status}},...a.timestamp&&{dateTimeCreated:{...a.timestamp.start&&{greaterThanOrEqual:new p.TZDateMini(h.startOfDay(a.timestamp.start),u.timezone).toISOString()},...a.timestamp.end&&{lesserThanOrEqual:new p.TZDateMini(h.endOfDay(a.timestamp.end),u.timezone).toISOString()}}}}});return e.jsxs("div",{className:o.className,children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Bet Records"}),e.jsx("p",{className:"text-gray-600 mt-xs text-xs",children:"View your bet records"}),e.jsx("div",{className:"mt-2xl pb-2xl",children:e.jsxs(l.Root,{value:a.type,onValueChange:r=>{g(),x({type:I.z.enum(o.gameTypes??[]).safeParse(r.value).data??null})},children:[o.gameTypes.map(r=>e.jsxs(l.Item,{value:r,children:[e.jsx(l.ItemText,{children:d.capitalize(r,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]},r)),e.jsx(l.Indicator,{})]})}),e.jsxs("div",{className:"mt-4xl",children:[e.jsxs("div",{className:"flex items-center gap-lg",children:[e.jsxs(s.Root,{lazyMount:!0,unmountOnExit:!0,value:[(f=a.timestamp)==null?void 0:f.start,(S=a.timestamp)==null?void 0:S.end].filter(Boolean).map(r=>m.parseDate(r)),onValueChange:r=>{var n,c;g(),x({timestamp:{start:(n=r.value.at(0))==null?void 0:n.toDate(H),end:(c=r.value.at(1))==null?void 0:c.toDate(H)}})},onOpenChange:r=>{r.open||a.timestamp||q("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(l.Root,{value:B,onValueChange:r=>{const n=Y.parse(r.value);if(n==="today"){const c=new Date;x({timestamp:{start:h.startOfDay(c),end:h.endOfDay(c)}})}else x({timestamp:null});g(),q(n)},children:[e.jsxs(l.Item,{value:"all",children:[e.jsx(l.ItemText,{children:"All"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsxs(l.Item,{value:"today",children:[e.jsx(l.ItemText,{children:"Today"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsx(s.Context,{children:r=>e.jsx(l.Item,{value:"custom",onClick:()=>r.setOpen(!0),children:e.jsxs(s.Control,{children:[e.jsx(l.ItemText,{children:"Custom"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]})})}),e.jsx(l.Indicator,{})]}),e.jsx(m.Portal,{children:e.jsx(s.Positioner,{children:e.jsx(s.Content,{children:e.jsx(s.View,{view:"day",children:e.jsx(s.Context,{children:r=>e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewControl,{children:[e.jsx(s.PrevTrigger,{children:e.jsx(D.ChevronLeftIcon,{})}),e.jsx(s.ViewTrigger,{children:e.jsx(s.RangeText,{})}),e.jsx(s.NextTrigger,{children:e.jsx(P.ChevronRightIcon,{})})]}),e.jsxs(s.Table,{children:[e.jsx(s.TableHead,{children:e.jsx(s.TableRow,{children:r.weekDays.map((n,c)=>e.jsx(s.TableHeader,{children:n.short.substring(0,2)},c))})}),e.jsx(s.TableBody,{children:r.weeks.map((n,c)=>e.jsx(s.TableRow,{children:n.map((R,Q)=>e.jsx(s.TableCell,{value:R,children:e.jsx(s.TableCellTrigger,{children:R.day})},Q))},c))})]})]})})})})})})]}),e.jsx("div",{className:"grow"}),e.jsxs(i.Root,{collection:b,value:a.provider?[a.provider]:[],onValueChange:r=>{const n=I.z.enum(o.gameProviders??[]).safeParse(r.value.at(0)).data;g(),x({provider:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Game Vendor"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:b.items.map(r=>e.jsxs(i.Item,{item:r,children:[e.jsx(i.ItemText,{children:d.capitalize(r,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},r))})})})})]}),e.jsxs(i.Root,{collection:w,value:a.status?[a.status]:[],onValueChange:r=>{const n=I.z.enum(V).safeParse(r.value.at(0)).data;g(),x({status:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Status"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:w.items.map(r=>e.jsxs(i.Item,{item:r,children:[e.jsx(i.ItemText,{children:d.capitalize(r,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},r))})})})})]})]}),v.length<=0&&e.jsx(W.Empty,{icon:j?K.SpinnerIcon:$.File02Icon,title:j?"Just a moment":"No data",message:j?"Fetching latest bet records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),v.length>=1&&e.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxs(t.Root,{className:"border-0",children:[e.jsx(t.Header,{children:e.jsxs(t.Row,{children:[e.jsx(t.Heading,{children:"Bet Time"}),e.jsx(t.Heading,{children:"Settlement Time"}),e.jsx(t.Heading,{children:"Bet Content"}),e.jsx(t.Heading,{children:"Odds"}),e.jsx(t.Heading,{children:"Bet Amount"}),e.jsx(t.Heading,{children:"Valid Bet"}),e.jsx(t.Heading,{children:"Settled Amount"}),e.jsx(t.Heading,{children:"Jackpot Contribution"}),e.jsx(t.Heading,{children:"Jackpot Payout"}),e.jsx(t.Heading,{children:"Bet Status"}),e.jsx(t.Heading,{children:"Game Name"}),e.jsx(t.Heading,{children:"Vendor Round ID"})]})}),e.jsx(t.Body,{children:v.map(r=>{var n;return e.jsxs(t.Row,{children:[e.jsx(t.Cell,{children:h.format(r.dateTimeCreated,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(t.Cell,{children:!!r.dateTimeSettled&&h.format(r.dateTimeSettled,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(t.Cell,{children:r==null?void 0:r.betContent}),e.jsx(t.Cell,{children:(n=r.metadata)==null?void 0:n.odds}),e.jsx(t.Cell,{children:C.formatNumber(r.bet,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(t.Cell,{children:r.validBet}),e.jsx(t.Cell,{children:C.formatNumber(r.payout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(t.Cell,{children:C.formatNumber(r.jackpotContribution,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(t.Cell,{children:C.formatNumber(r.jackpotPayout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(t.Cell,{children:r.status}),e.jsx(t.Cell,{children:r.game.name}),e.jsx(t.Cell,{children:r.vendorRoundId})]},r.id)})})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{children:["Page ",M," of ",G]}),e.jsx("div",{className:"grow"}),e.jsx(i.Root,{size:"sm",value:[k.toString()],onValueChange:r=>{const n=parseInt(r.value[0]),c=isNaN(n)?10:n;U(c)},collection:T,lazyMount:!0,children:e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:T.items.map(r=>e.jsx(i.Item,{item:r,children:T.stringifyItem(r)},r))})})})]})}),e.jsxs("div",{children:[e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!_||j,onClick:()=>F(),children:e.jsx(D.ChevronLeftIcon,{className:"size-5"})}),e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!L||j,onClick:()=>A(),children:e.jsx(P.ChevronRightIcon,{className:"size-5"})})]})]})]})]})]})}const V=["CANCELLED","SETTLED","STARTED"],T=m.createListCollection({items:O.useInfiniteQueryHelper.config.pageSizes,itemToValue:o=>o.toString(),itemToString:o=>`${o} items per page`}),w=m.createListCollection({items:V,itemToValue:o=>o,itemToString:o=>d.capitalize(o,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),Y=I.z.enum(["all","today","custom"]),H=Intl.DateTimeFormat().resolvedOptions().timeZone;exports.BetRecords=X;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("@ark-ui/react"),p=require("@date-fns/tz"),h=require("date-fns"),z=require("react"),I=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const d=require("../../utils/capitalize.js"),C=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");const Z=require("../../client/hooks/useBetRecordsQuery.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const O=require("../../client/hooks/useInfiniteQueryHelper.js"),J=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const N=require("../../icons/CheckIcon.js"),y=require("../../icons/ChevronDownIcon.js"),D=require("../../icons/ChevronLeftIcon.js"),P=require("../../icons/ChevronRightIcon.js"),$=require("../../icons/File02Icon.js"),K=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");const s=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const E=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");const l=require("../../ui/SegmentGroup/SegmentGroup.js"),i=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const W=require("../Empty/Empty.js");function X(o){var f,S;const[B,q]=z.useState("all"),[a,x]=z.useReducer((t,n)=>({...t,...n}),{page:1,pageSize:10,type:o.gameTypes[0]}),u=J.useLocaleInfo(),b=m.createListCollection({items:o.gameProviders,itemToValue:t=>t,itemToString:t=>d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),{page:M,pageSize:k,hasNextPage:L,hasPrevPage:_,next:A,prev:F,rows:v,setPageSize:U,totalPages:G,loading:j,firstPage:g}=O.useInfiniteQueryHelper(Z.useBetRecordsQuery,{filter:{...a.type&&{game__type:{equal:a.type}},...a.provider&&{game__provider:{equal:a.provider}},...a.status&&{status:{equal:a.status}},...a.timestamp&&{dateTimeCreated:{...a.timestamp.start&&{greaterThanOrEqual:new p.TZDateMini(h.startOfDay(a.timestamp.start),u.timezone).toISOString()},...a.timestamp.end&&{lesserThanOrEqual:new p.TZDateMini(h.endOfDay(a.timestamp.end),u.timezone).toISOString()}}}}});return e.jsxs("div",{className:o.className,children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Bet Records"}),e.jsx("p",{className:"text-gray-600 mt-xs text-xs",children:"View your bet records"}),e.jsx("div",{className:"mt-2xl pb-2xl",children:e.jsxs(l.Root,{value:a.type,onValueChange:t=>{g(),x({type:I.z.enum(o.gameTypes??[]).safeParse(t.value).data??null})},children:[o.gameTypes.map(t=>e.jsxs(l.Item,{value:t,children:[e.jsx(l.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]},t)),e.jsx(l.Indicator,{})]})}),e.jsxs("div",{className:"mt-4xl",children:[e.jsxs("div",{className:"flex items-center gap-lg",children:[e.jsxs(s.Root,{lazyMount:!0,unmountOnExit:!0,value:[(f=a.timestamp)==null?void 0:f.start,(S=a.timestamp)==null?void 0:S.end].filter(Boolean).map(t=>m.parseDate(t)),onValueChange:t=>{var n,c;g(),x({timestamp:{start:(n=t.value.at(0))==null?void 0:n.toDate(H),end:(c=t.value.at(1))==null?void 0:c.toDate(H)}})},onOpenChange:t=>{t.open||a.timestamp||q("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(l.Root,{value:B,onValueChange:t=>{const n=Y.parse(t.value);if(n==="today"){const c=new Date;x({timestamp:{start:h.startOfDay(c),end:h.endOfDay(c)}})}else x({timestamp:null});g(),q(n)},children:[e.jsxs(l.Item,{value:"all",children:[e.jsx(l.ItemText,{children:"All"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsxs(l.Item,{value:"today",children:[e.jsx(l.ItemText,{children:"Today"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]}),e.jsx(s.Context,{children:t=>e.jsx(l.Item,{value:"custom",onClick:()=>t.setOpen(!0),children:e.jsxs(s.Control,{children:[e.jsx(l.ItemText,{children:"Custom"}),e.jsx(l.ItemControl,{}),e.jsx(l.ItemHiddenInput,{})]})})}),e.jsx(l.Indicator,{})]}),e.jsx(m.Portal,{children:e.jsx(s.Positioner,{children:e.jsx(s.Content,{children:e.jsx(s.View,{view:"day",children:e.jsx(s.Context,{children:t=>e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewControl,{children:[e.jsx(s.PrevTrigger,{children:e.jsx(D.ChevronLeftIcon,{})}),e.jsx(s.ViewTrigger,{children:e.jsx(s.RangeText,{})}),e.jsx(s.NextTrigger,{children:e.jsx(P.ChevronRightIcon,{})})]}),e.jsxs(s.Table,{children:[e.jsx(s.TableHead,{children:e.jsx(s.TableRow,{children:t.weekDays.map((n,c)=>e.jsx(s.TableHeader,{children:n.short.substring(0,2)},c))})}),e.jsx(s.TableBody,{children:t.weeks.map((n,c)=>e.jsx(s.TableRow,{children:n.map((R,Q)=>e.jsx(s.TableCell,{value:R,children:e.jsx(s.TableCellTrigger,{children:R.day})},Q))},c))})]})]})})})})})})]}),e.jsx("div",{className:"grow"}),e.jsxs(i.Root,{collection:b,value:a.provider?[a.provider]:[],onValueChange:t=>{const n=I.z.enum(o.gameProviders??[]).safeParse(t.value.at(0)).data;g(),x({provider:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Game Vendor"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:b.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},t))})})})})]}),e.jsxs(i.Root,{collection:w,value:a.status?[a.status]:[],onValueChange:t=>{const n=I.z.enum(V).safeParse(t.value.at(0)).data;g(),x({status:n??null})},lazyMount:!0,deselectable:!0,children:[e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{placeholder:"Status"}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})})]}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:e.jsx(i.ItemGroup,{children:w.items.map(t=>e.jsxs(i.Item,{item:t,children:[e.jsx(i.ItemText,{children:d.capitalize(t,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.ItemIndicator,{asChild:!0,children:e.jsx(N.CheckIcon,{})})]},t))})})})})]})]}),v.length<=0&&e.jsx(W.Empty,{icon:j?K.SpinnerIcon:$.File02Icon,title:j?"Just a moment":"No data",message:j?"Fetching latest bet records...":"No data is currently available.",className:"mt-8 lg:mt-16"}),v.length>=1&&e.jsxs("div",{className:"border-gray-200 mt-lg rounded-xl border",children:[e.jsx("div",{className:"border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b",children:e.jsxs(r.Root,{className:"border-0",children:[e.jsx(r.Header,{children:e.jsxs(r.Row,{children:[e.jsx(r.Heading,{children:"Bet Time"}),e.jsx(r.Heading,{children:"Settlement Time"}),e.jsx(r.Heading,{children:"Bet Content"}),e.jsx(r.Heading,{children:"Odds"}),e.jsx(r.Heading,{children:"Bet Amount"}),e.jsx(r.Heading,{children:"Valid Bet"}),e.jsx(r.Heading,{children:"Settled Amount"}),e.jsx(r.Heading,{children:"Jackpot Contribution"}),e.jsx(r.Heading,{children:"Jackpot Payout"}),e.jsx(r.Heading,{children:"Bet Status"}),e.jsx(r.Heading,{children:"Game Name"}),e.jsx(r.Heading,{children:"Vendor Round ID"})]})}),e.jsx(r.Body,{children:v.map(t=>{var n;return e.jsxs(r.Row,{children:[e.jsx(r.Cell,{children:h.format(t.dateTimeCreated,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(r.Cell,{children:!!t.dateTimeSettled&&h.format(t.dateTimeSettled,"yyyy MMM dd hh:mma",{in:p.tz(u.timezone)})}),e.jsx(r.Cell,{children:t==null?void 0:t.betContent}),e.jsx(r.Cell,{children:(n=t.metadata)==null?void 0:n.odds}),e.jsx(r.Cell,{children:C.formatNumber(t.bet,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:t.validBet}),e.jsx(r.Cell,{children:C.formatNumber(t.payout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:C.formatNumber(t.jackpotContribution,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:C.formatNumber(t.jackpotPayout,{currency:u.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{children:t.status}),e.jsx(r.Cell,{children:t.game.name}),e.jsx(r.Cell,{children:t.vendorRoundId})]},t.id)})})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{children:["Page ",M," of ",G]}),e.jsx("div",{className:"grow"}),e.jsx(i.Root,{size:"sm",value:[k.toString()],onValueChange:t=>{const n=parseInt(t.value[0]),c=isNaN(n)?10:n;U(c)},collection:T,lazyMount:!0,children:e.jsxs(i.Trigger,{children:[e.jsx(i.ValueText,{}),e.jsx(i.Indicator,{asChild:!0,children:e.jsx(y.ChevronDownIcon,{})}),e.jsx(m.Portal,{children:e.jsx(i.Positioner,{children:e.jsx(i.Content,{children:T.items.map(t=>e.jsx(i.Item,{item:t,children:T.stringifyItem(t)},t))})})})]})}),e.jsxs("div",{children:[e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",disabled:!_||j,onClick:()=>F(),children:e.jsx(D.ChevronLeftIcon,{className:"size-5"})}),e.jsx(E.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"rounded-l-none",disabled:!L||j,onClick:()=>A(),children:e.jsx(P.ChevronRightIcon,{className:"size-5"})})]})]})]})]})]})}const V=["CANCELLED","SETTLED","STARTED"],T=m.createListCollection({items:O.useInfiniteQueryHelper.config.pageSizes,itemToValue:o=>o.toString(),itemToString:o=>`${o} items per page`}),w=m.createListCollection({items:V,itemToValue:o=>o,itemToString:o=>d.capitalize(o,{delimiter:d.capitalize.delimiters.UNDERSCORE})}),Y=I.z.enum(["all","today","custom"]),H=Intl.DateTimeFormat().resolvedOptions().timeZone;exports.BetRecords=X;
|