@opexa/portal-components 0.0.7 → 0.0.9
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/_virtual/jsx-runtime.js +1 -1
- package/dist/_virtual/jsx-runtime.mjs +3 -2
- package/dist/_virtual/jsx-runtime2.js +1 -0
- package/dist/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +159 -117
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +49 -45
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +344 -232
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +20 -19
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +98 -80
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +38 -27
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +189 -148
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +181 -140
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +187 -146
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.mjs +16 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +198 -151
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +65 -29
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +8 -7
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.mjs +14 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +179 -141
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +103 -55
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +22 -16
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +7 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +87 -59
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +57 -51
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +77 -58
- package/dist/components/Empty/CloudIcon.js +1 -1
- package/dist/components/Empty/CloudIcon.mjs +189 -168
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +13 -4
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +4 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +8 -7
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +33 -27
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +216 -170
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +20 -19
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +102 -84
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +80 -63
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +144 -114
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +19 -10
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +53 -46
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +93 -76
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +37 -29
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +51 -44
- package/dist/components/Promos/Promos.js +1 -1
- package/dist/components/Promos/Promos.mjs +5 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +49 -36
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +261 -198
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +51 -38
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +240 -189
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +39 -29
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +72 -57
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +92 -66
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +163 -115
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +252 -186
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +31 -19
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +143 -101
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +164 -114
- package/dist/components.d.ts +2 -0
- package/dist/hooks/useAccountQuery.js +1 -1
- package/dist/hooks/useAccountQuery.mjs +8 -7
- package/dist/hooks/useAuthenticateMutation.js +1 -1
- package/dist/hooks/useAuthenticateMutation.mjs +6 -5
- package/dist/hooks/useAvailablePromosQuery.js +1 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +3 -2
- package/dist/hooks/useBetRecordsQuery.js +1 -1
- package/dist/hooks/useBetRecordsQuery.mjs +3 -2
- package/dist/hooks/useCashbacksQuery.js +1 -1
- package/dist/hooks/useCashbacksQuery.mjs +3 -2
- package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
- package/dist/hooks/useCreateGCashDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/hooks/useCreateGameSessionMutation.mjs +8 -7
- package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +9 -8
- package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +4 -3
- package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
- package/dist/hooks/useCreateQRPHDepositMutation.mjs +4 -3
- package/dist/hooks/useDepositQuery.js +1 -1
- package/dist/hooks/useDepositQuery.mjs +7 -6
- package/dist/hooks/useDepositRecordsQuery.js +1 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +10 -9
- package/dist/hooks/useDepositsCountQuery.js +1 -1
- package/dist/hooks/useDepositsCountQuery.mjs +3 -2
- package/dist/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/hooks/useEndGameSessionMutation.mjs +3 -2
- package/dist/hooks/useGamesQuery.js +1 -1
- package/dist/hooks/useGamesQuery.mjs +3 -2
- package/dist/hooks/useInstapayBankListQuery.js +1 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +10 -9
- package/dist/hooks/useIsMayaSessionValidQuery.js +1 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +3 -2
- package/dist/hooks/useJackpotsQuery.js +1 -1
- package/dist/hooks/useJackpotsQuery.mjs +6 -5
- package/dist/hooks/useLocaleInfo.js +1 -1
- package/dist/hooks/useLocaleInfo.mjs +3 -2
- package/dist/hooks/useMemberVerificationQuery.js +1 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +7 -6
- package/dist/hooks/usePaymentSettingsQuery.js +1 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +7 -6
- package/dist/hooks/usePlatformQuery.js +1 -1
- package/dist/hooks/usePlatformQuery.mjs +3 -2
- package/dist/hooks/usePromoQuery.js +1 -1
- package/dist/hooks/usePromoQuery.mjs +3 -2
- package/dist/hooks/usePromosQuery.js +1 -1
- package/dist/hooks/usePromosQuery.mjs +3 -2
- package/dist/hooks/useSendVerificationCodeMutation.js +1 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +3 -2
- package/dist/hooks/useSessionQuery.js +1 -1
- package/dist/hooks/useSessionQuery.mjs +3 -2
- package/dist/hooks/useSignInMutation.js +1 -1
- package/dist/hooks/useSignInMutation.mjs +3 -2
- package/dist/hooks/useSignOutMutation.js +1 -1
- package/dist/hooks/useSignOutMutation.mjs +3 -2
- package/dist/hooks/useSignUpMutation.js +1 -1
- package/dist/hooks/useSignUpMutation.mjs +3 -2
- package/dist/hooks/useSiteQuery.js +1 -1
- package/dist/hooks/useSiteQuery.mjs +3 -2
- package/dist/hooks/useTopWinsQuery.js +1 -1
- package/dist/hooks/useTopWinsQuery.mjs +3 -2
- package/dist/hooks/useTournamentsQuery.js +1 -1
- package/dist/hooks/useTournamentsQuery.mjs +6 -5
- package/dist/hooks/useTransactionRecordsQuery.js +1 -1
- package/dist/hooks/useTransactionRecordsQuery.mjs +3 -2
- package/dist/hooks/useWalletQuery.js +1 -1
- package/dist/hooks/useWalletQuery.mjs +3 -2
- package/dist/hooks/useWithdrawalRecordsQuery.js +1 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +9 -8
- package/dist/hooks.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.js +1 -1
- package/dist/icons/AlertCircleIcon.mjs +7 -6
- package/dist/icons/AlertTriangle.js +1 -1
- package/dist/icons/AlertTriangle.mjs +7 -6
- package/dist/icons/ArrowLeftIcon.js +1 -1
- package/dist/icons/ArrowLeftIcon.mjs +7 -6
- package/dist/icons/ArrowNarrowUpRightIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpRightIcon.mjs +7 -6
- package/dist/icons/ArrowRightIcon.js +1 -1
- package/dist/icons/ArrowRightIcon.mjs +7 -6
- package/dist/icons/Award02Icon.js +1 -1
- package/dist/icons/Award02Icon.mjs +7 -6
- package/dist/icons/BankIcon.js +1 -1
- package/dist/icons/BankIcon.mjs +7 -6
- package/dist/icons/CheckCircleBrokenIcon.js +1 -1
- package/dist/icons/CheckCircleBrokenIcon.mjs +6 -5
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CheckIcon.mjs +7 -6
- package/dist/icons/ChevronDownIcon.js +1 -1
- package/dist/icons/ChevronDownIcon.mjs +6 -5
- package/dist/icons/ChevronLeftIcon.js +1 -1
- package/dist/icons/ChevronLeftIcon.mjs +7 -6
- package/dist/icons/ChevronRightIcon.js +1 -1
- package/dist/icons/ChevronRightIcon.mjs +7 -6
- package/dist/icons/ChevronUpIcon.js +1 -1
- package/dist/icons/ChevronUpIcon.mjs +7 -6
- package/dist/icons/Expand03Icon.js +1 -1
- package/dist/icons/Expand03Icon.mjs +7 -6
- package/dist/icons/FacebookIcon.js +1 -1
- package/dist/icons/FacebookIcon.mjs +22 -19
- package/dist/icons/File02Icon.js +1 -1
- package/dist/icons/File02Icon.mjs +7 -6
- package/dist/icons/Gift01Icon.js +1 -1
- package/dist/icons/Gift01Icon.mjs +7 -6
- package/dist/icons/GoogleIcon.js +1 -1
- package/dist/icons/GoogleIcon.mjs +43 -40
- package/dist/icons/Logout01Icon.js +1 -1
- package/dist/icons/Logout01Icon.mjs +7 -6
- package/dist/icons/QrCode02Icon.js +1 -1
- package/dist/icons/QrCode02Icon.mjs +7 -6
- package/dist/icons/SpinnerIcon.js +1 -1
- package/dist/icons/SpinnerIcon.mjs +33 -30
- package/dist/icons/User01Icon.js +1 -1
- package/dist/icons/User01Icon.mjs +7 -6
- package/dist/icons/Wallet02Icon.js +1 -1
- package/dist/icons/Wallet02Icon.mjs +7 -6
- package/dist/icons/XIcon.js +1 -1
- package/dist/icons/XIcon.mjs +7 -6
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +6 -0
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +953 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +1 -1
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +7 -6
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +11 -10
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +9 -8
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +9 -8
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +11 -10
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +11 -10
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +3 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +3 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +3 -2
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +5 -4
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +6 -5
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +3 -2
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +3 -2
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -6
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +6 -5
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +3 -2
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +3 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +7 -6
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +3 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +3 -2
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +10 -9
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +3 -2
- package/dist/server-services.d.ts +2 -0
- package/dist/server-utils.d.ts +2 -0
- package/dist/services.d.ts +2 -0
- package/dist/services.js +1 -0
- package/dist/services.mjs +10 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +13 -12
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +3 -2
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +14 -13
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +3 -2
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +9 -8
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +6 -5
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +8 -7
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +3 -2
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +3 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
- package/dist/ui.d.ts +2 -0
- package/dist/utils/createRecipeContext.js +1 -1
- package/dist/utils/createRecipeContext.mjs +30 -29
- package/dist/utils/getLocaleInfo.js +1 -1
- package/dist/utils/getLocaleInfo.mjs +212 -173
- package/dist/utils.d.ts +2 -0
- package/package.json +18 -36
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { createListCollection as T, Portal as D } from "@ark-ui/react";
|
|
3
|
+
import { TZDateMini as p, tz as P } from "@date-fns/tz";
|
|
3
4
|
import { endOfDay as M, startOfDay as O, format as F } from "date-fns";
|
|
4
|
-
import { useState as
|
|
5
|
+
import { useState as x } from "react";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
8
9
|
import "../../constants/index.mjs";
|
|
9
10
|
import { capitalize as m } from "../../utils/capitalize.mjs";
|
|
10
|
-
import { formatNumber as
|
|
11
|
+
import { formatNumber as c } from "../../utils/formatNumber.mjs";
|
|
11
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
12
13
|
import "../../utils/getQueryClient.mjs";
|
|
13
14
|
import "../../utils/isMobile.mjs";
|
|
@@ -20,8 +21,8 @@ import { useInfiniteQueryHelper as g } from "../../hooks/useInfiniteQueryHelper.
|
|
|
20
21
|
import { useLocaleInfo as L } from "../../hooks/useLocaleInfo.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
23
|
import { useWithdrawalRecordsQuery as W } from "../../hooks/useWithdrawalRecordsQuery.mjs";
|
|
23
|
-
import { ChevronDownIcon as
|
|
24
|
-
import { ChevronLeftIcon as
|
|
24
|
+
import { ChevronDownIcon as A } from "../../icons/ChevronDownIcon.mjs";
|
|
25
|
+
import { ChevronLeftIcon as k } from "../../icons/ChevronLeftIcon.mjs";
|
|
25
26
|
import { ChevronRightIcon as q } from "../../icons/ChevronRightIcon.mjs";
|
|
26
27
|
import { File02Icon as B } from "../../icons/File02Icon.mjs";
|
|
27
28
|
import { SpinnerIcon as H } from "../../icons/SpinnerIcon.mjs";
|
|
@@ -35,141 +36,190 @@ import "../../ui/DatePicker/DatePicker.mjs";
|
|
|
35
36
|
import "../../ui/Dialog/Dialog.mjs";
|
|
36
37
|
import "../../ui/Drawer/Drawer.mjs";
|
|
37
38
|
import "../../ui/Field/Field.mjs";
|
|
38
|
-
import { IconButton as
|
|
39
|
+
import { IconButton as u } from "../../ui/IconButton/IconButton.mjs";
|
|
39
40
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
40
41
|
import "../../ui/PinInput/PinInput.mjs";
|
|
41
42
|
import "../../ui/Popover/Popover.mjs";
|
|
42
43
|
import "tailwind-merge";
|
|
43
44
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
44
|
-
import { Root as J, Trigger as Q, ValueText as U, Indicator as G, Positioner as Z, Content as
|
|
45
|
-
import { Root as
|
|
45
|
+
import { Root as J, Trigger as Q, ValueText as U, Indicator as G, Positioner as Z, Content as K, Item as X } from "../../ui/Select/Select.mjs";
|
|
46
|
+
import { Root as Y, Header as _, Row as j, Heading as t, Body as ee, Cell as o } from "../../ui/Table/Table.mjs";
|
|
46
47
|
import "../../ui/Tabs/Tabs.mjs";
|
|
47
|
-
import { Empty as
|
|
48
|
-
import { TableFilters as
|
|
49
|
-
function
|
|
50
|
-
const [
|
|
51
|
-
page:
|
|
52
|
-
pageSize:
|
|
53
|
-
hasNextPage:
|
|
54
|
-
hasPrevPage:
|
|
55
|
-
next:
|
|
56
|
-
prev:
|
|
57
|
-
rows:
|
|
58
|
-
setPageSize:
|
|
59
|
-
totalPages:
|
|
48
|
+
import { Empty as re } from "../Empty/Empty.mjs";
|
|
49
|
+
import { TableFilters as ie } from "./TableFilters.mjs";
|
|
50
|
+
function Ye() {
|
|
51
|
+
const [i, f] = x(), [l, N] = x(), s = L(), {
|
|
52
|
+
page: w,
|
|
53
|
+
pageSize: y,
|
|
54
|
+
hasNextPage: S,
|
|
55
|
+
hasPrevPage: b,
|
|
56
|
+
next: v,
|
|
57
|
+
prev: C,
|
|
58
|
+
rows: a,
|
|
59
|
+
setPageSize: I,
|
|
60
|
+
totalPages: R,
|
|
60
61
|
loading: n,
|
|
61
62
|
firstPage: z
|
|
62
63
|
} = g(W, {
|
|
63
64
|
filter: {
|
|
64
|
-
...
|
|
65
|
+
...l && {
|
|
65
66
|
status: {
|
|
66
|
-
equal:
|
|
67
|
+
equal: l
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
|
-
...
|
|
70
|
+
...i && {
|
|
70
71
|
dateTimeCreated: {
|
|
71
|
-
...
|
|
72
|
+
...i.start && {
|
|
72
73
|
greaterThanOrEqual: new p(
|
|
73
|
-
O(
|
|
74
|
-
|
|
74
|
+
O(i.start),
|
|
75
|
+
s.timezone
|
|
75
76
|
).toISOString()
|
|
76
77
|
},
|
|
77
|
-
...
|
|
78
|
+
...i.end && {
|
|
78
79
|
lesserThanOrEqual: new p(
|
|
79
|
-
M(
|
|
80
|
-
|
|
80
|
+
M(i.end),
|
|
81
|
+
s.timezone
|
|
81
82
|
).toISOString()
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
89
|
+
/* @__PURE__ */ e.jsx(
|
|
90
|
+
ie,
|
|
91
|
+
{
|
|
92
|
+
enabledFilters: {
|
|
93
|
+
withdrawalStatus: !0
|
|
94
|
+
},
|
|
95
|
+
value: {
|
|
96
|
+
timestamp: i,
|
|
97
|
+
withdrawalStatus: l
|
|
98
|
+
},
|
|
99
|
+
onChange: (r) => {
|
|
100
|
+
z(), f(r.timestamp), N(r.withdrawalStatus);
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
103
|
+
),
|
|
104
|
+
a.length <= 0 && /* @__PURE__ */ e.jsx(
|
|
105
|
+
re,
|
|
106
|
+
{
|
|
107
|
+
icon: n ? H : B,
|
|
108
|
+
title: n ? "Just a moment" : "No data",
|
|
109
|
+
message: n ? "Fetching latest withdrawal records..." : "No data is currently available.",
|
|
110
|
+
className: "mt-8 lg:mt-16"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
a.length >= 1 && /* @__PURE__ */ e.jsxs("div", { className: "border-gray-200 mt-lg rounded-xl border", children: [
|
|
114
|
+
/* @__PURE__ */ e.jsx("div", { className: "border-gray-200 overflow-hidden overflow-x-auto rounded-xl border-b", children: /* @__PURE__ */ e.jsxs(Y, { className: "border-0", children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(_, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(t, { children: "Withdrawal No." }),
|
|
117
|
+
/* @__PURE__ */ e.jsx(t, { children: "Reference" }),
|
|
118
|
+
/* @__PURE__ */ e.jsx(t, { children: "Withdrawal Method" }),
|
|
119
|
+
/* @__PURE__ */ e.jsx(t, { children: "Mobile Number" }),
|
|
120
|
+
/* @__PURE__ */ e.jsx(t, { children: "Withdrawal Amount" }),
|
|
121
|
+
/* @__PURE__ */ e.jsx(t, { children: "Net Amount" }),
|
|
122
|
+
/* @__PURE__ */ e.jsx(t, { children: "Transaction Fee" }),
|
|
123
|
+
/* @__PURE__ */ e.jsx(t, { children: "Bank Name" }),
|
|
124
|
+
/* @__PURE__ */ e.jsx(t, { children: "Withdrawal Time" }),
|
|
125
|
+
/* @__PURE__ */ e.jsx(t, { children: "Status" })
|
|
126
|
+
] }) }),
|
|
127
|
+
/* @__PURE__ */ e.jsx(ee, { children: a.map((r) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
128
|
+
/* @__PURE__ */ e.jsx(o, { children: r.withdrawalNumber }),
|
|
129
|
+
/* @__PURE__ */ e.jsx(o, { children: r.reference }),
|
|
130
|
+
/* @__PURE__ */ e.jsx(o, { children: m(r.type, {
|
|
131
|
+
delimiter: m.delimiters.UNDERSCORE
|
|
132
|
+
}) }),
|
|
133
|
+
/* @__PURE__ */ e.jsx(o, { children: r.recipientMobileNumber }),
|
|
134
|
+
/* @__PURE__ */ e.jsx(o, { children: c(r.amount, {
|
|
135
|
+
currency: s.currency.code,
|
|
136
|
+
minDecimalPlaces: 2
|
|
137
|
+
}) }),
|
|
138
|
+
/* @__PURE__ */ e.jsx(o, { children: c(r.netAmount, {
|
|
139
|
+
currency: s.currency.code,
|
|
140
|
+
minDecimalPlaces: 2
|
|
141
|
+
}) }),
|
|
142
|
+
/* @__PURE__ */ e.jsx(o, { children: c(r.fee, {
|
|
143
|
+
currency: s.currency.code,
|
|
144
|
+
minDecimalPlaces: 2
|
|
145
|
+
}) }),
|
|
146
|
+
/* @__PURE__ */ e.jsx(o, { children: r.bank }),
|
|
147
|
+
/* @__PURE__ */ e.jsx(o, { children: F(r.dateTimeCreated, "yyyy MMM dd hh:mma", {
|
|
148
|
+
in: P(s.timezone)
|
|
149
|
+
}) }),
|
|
150
|
+
/* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
|
|
151
|
+
V,
|
|
152
|
+
{
|
|
153
|
+
variant: "subtle",
|
|
154
|
+
colorScheme: r.status === "FAILED" || r.status === "REJECTED" || r.status === "CANCELLED" ? "danger" : r.status === "PENDING" ? "warning" : "success",
|
|
155
|
+
children: /* @__PURE__ */ e.jsx($, { children: m(r.status, {
|
|
156
|
+
delimiter: m.delimiters.UNDERSCORE
|
|
157
|
+
}) })
|
|
158
|
+
}
|
|
159
|
+
) })
|
|
160
|
+
] }, r.id)) })
|
|
161
|
+
] }) }),
|
|
162
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-lg px-4 py-3", children: [
|
|
163
|
+
/* @__PURE__ */ e.jsxs("p", { children: [
|
|
164
|
+
"Page ",
|
|
165
|
+
w,
|
|
166
|
+
" of ",
|
|
167
|
+
R
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ e.jsx("div", { className: "grow" }),
|
|
170
|
+
/* @__PURE__ */ e.jsx(
|
|
171
|
+
J,
|
|
172
|
+
{
|
|
173
|
+
size: "sm",
|
|
174
|
+
value: [y.toString()],
|
|
175
|
+
onValueChange: (r) => {
|
|
176
|
+
const h = parseInt(r.value[0]), E = isNaN(h) ? 10 : h;
|
|
177
|
+
I(E);
|
|
178
|
+
},
|
|
179
|
+
collection: d,
|
|
180
|
+
lazyMount: !0,
|
|
181
|
+
children: /* @__PURE__ */ e.jsxs(Q, { children: [
|
|
182
|
+
/* @__PURE__ */ e.jsx(U, {}),
|
|
183
|
+
/* @__PURE__ */ e.jsx(G, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, {}) }),
|
|
184
|
+
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx(K, { children: d.items.map((r) => /* @__PURE__ */ e.jsx(X, { item: r, children: d.stringifyItem(r) }, r)) }) }) })
|
|
185
|
+
] })
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
189
|
+
/* @__PURE__ */ e.jsx(
|
|
190
|
+
u,
|
|
191
|
+
{
|
|
192
|
+
size: "sm",
|
|
193
|
+
variant: "outline",
|
|
194
|
+
colorScheme: "gray",
|
|
195
|
+
className: "rounded-r-none border-r-0",
|
|
196
|
+
disabled: !b || n,
|
|
197
|
+
onClick: () => C(),
|
|
198
|
+
children: /* @__PURE__ */ e.jsx(k, { className: "size-5" })
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ e.jsx(
|
|
202
|
+
u,
|
|
203
|
+
{
|
|
204
|
+
size: "sm",
|
|
205
|
+
variant: "outline",
|
|
206
|
+
colorScheme: "gray",
|
|
207
|
+
className: "rounded-l-none",
|
|
208
|
+
disabled: !S || n,
|
|
209
|
+
onClick: () => v(),
|
|
210
|
+
children: /* @__PURE__ */ e.jsx(q, { className: "size-5" })
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
] })
|
|
214
|
+
] })
|
|
215
|
+
] })
|
|
216
|
+
] });
|
|
167
217
|
}
|
|
168
|
-
const
|
|
218
|
+
const d = T({
|
|
169
219
|
items: g.config.pageSizes,
|
|
170
|
-
itemToValue: (
|
|
171
|
-
itemToString: (
|
|
220
|
+
itemToValue: (i) => i.toString(),
|
|
221
|
+
itemToString: (i) => `${i} items per page`
|
|
172
222
|
});
|
|
173
223
|
export {
|
|
174
|
-
|
|
224
|
+
Ye as WithdrawalRecordsTable
|
|
175
225
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),c=require("tiny-invariant"),u=require("../constants/index.js"),q=require("../services/getSession.js");require("../utils/capitalize.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const l=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const s=require("../utils/queryKeys.js");require("../utils/toaster.js");const Q=require("./useSessionQuery.js"),d=e=>{var r;const n=l.getQueryClient(),i=Q.useSessionQuery();return a.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=i.data)==null?void 0:r.status)==="authenticated",queryKey:s.getAccountQueryKey(),queryFn:async({signal:o})=>{const t=await n.fetchQuery({queryKey:s.getSessionQueryKey(),queryFn:()=>q.getSession()});return c(t.status==="authenticated"),await y.getMemberAccount({signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useAccountQuery=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),c=require("tiny-invariant"),u=require("../constants/index.js"),q=require("../services/getSession.js");require("../utils/capitalize.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const l=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const s=require("../utils/queryKeys.js");require("../utils/toaster.js");const Q=require("./useSessionQuery.js"),d=e=>{var r;const n=l.getQueryClient(),i=Q.useSessionQuery();return a.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((r=i.data)==null?void 0:r.status)==="authenticated",queryKey:s.getAccountQueryKey(),queryFn:async({signal:o})=>{const t=await n.fetchQuery({queryKey:s.getSessionQueryKey(),queryFn:()=>q.getSession()});return c(t.status==="authenticated"),await y.getMemberAccount({signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${t.token}`}})}})};exports.useAccountQuery=d;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { getMemberAccount as
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import
|
|
1
|
+
import { getMemberAccount as i } from "@opexa/portal-sdk-core";
|
|
2
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
+
import n from "tiny-invariant";
|
|
4
4
|
import { PLATFORM_CODE as a, ENVIRONMENT as y } from "../constants/index.mjs";
|
|
5
5
|
import { getSession as p } from "../services/getSession.mjs";
|
|
6
6
|
import "../utils/capitalize.mjs";
|
|
7
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import "../utils/parseDecimal.mjs";
|
|
9
10
|
import "../utils/getLocaleInfo.mjs";
|
|
@@ -12,10 +13,10 @@ import "../utils/isMobile.mjs";
|
|
|
12
13
|
import { getAccountQueryKey as Q, getSessionQueryKey as d } from "../utils/queryKeys.mjs";
|
|
13
14
|
import "../utils/toaster.mjs";
|
|
14
15
|
import { useSessionQuery as f } from "./useSessionQuery.mjs";
|
|
15
|
-
const
|
|
16
|
+
const R = (e) => {
|
|
16
17
|
var t;
|
|
17
18
|
const o = c(), s = f();
|
|
18
|
-
return
|
|
19
|
+
return m({
|
|
19
20
|
...e,
|
|
20
21
|
enabled: (e == null ? void 0 : e.enabled) === !1 ? !1 : ((t = s.data) == null ? void 0 : t.status) === "authenticated",
|
|
21
22
|
queryKey: Q(),
|
|
@@ -24,7 +25,7 @@ const P = (e) => {
|
|
|
24
25
|
queryKey: d(),
|
|
25
26
|
queryFn: () => p()
|
|
26
27
|
});
|
|
27
|
-
return
|
|
28
|
+
return n(r.status === "authenticated"), await i({
|
|
28
29
|
signal: u,
|
|
29
30
|
environment: y,
|
|
30
31
|
headers: {
|
|
@@ -36,5 +37,5 @@ const P = (e) => {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
R as useAccountQuery
|
|
40
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query"),n=require("../services/authenticate.js");require("../constants/index.js");require("../utils/capitalize.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const a=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const e=require("../utils/queryKeys.js");require("../utils/toaster.js");const o=t=>{const r=a.getQueryClient();return i.useMutation({...t,mutationKey:e.getAuthenticateMutationKey(),mutationFn:async u=>{await n.authenticate(u),await r.invalidateQueries({queryKey:e.getSessionQueryKey()})}})};exports.useAuthenticateMutation=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query"),n=require("../services/authenticate.js");require("../constants/index.js");require("../utils/capitalize.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const a=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const e=require("../utils/queryKeys.js");require("../utils/toaster.js");const o=t=>{const r=a.getQueryClient();return i.useMutation({...t,mutationKey:e.getAuthenticateMutationKey(),mutationFn:async u=>{await n.authenticate(u),await r.invalidateQueries({queryKey:e.getSessionQueryKey()})}})};exports.useAuthenticateMutation=o;
|
|
@@ -2,6 +2,7 @@ import { useMutation as o } from "@tanstack/react-query";
|
|
|
2
2
|
import { authenticate as r } from "../services/authenticate.mjs";
|
|
3
3
|
import "../constants/index.mjs";
|
|
4
4
|
import "../utils/capitalize.mjs";
|
|
5
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
5
6
|
import "react";
|
|
6
7
|
import "../utils/parseDecimal.mjs";
|
|
7
8
|
import "../utils/getLocaleInfo.mjs";
|
|
@@ -9,18 +10,18 @@ import { getQueryClient as m } from "../utils/getQueryClient.mjs";
|
|
|
9
10
|
import "../utils/isMobile.mjs";
|
|
10
11
|
import { getAuthenticateMutationKey as n, getSessionQueryKey as a } from "../utils/queryKeys.mjs";
|
|
11
12
|
import "../utils/toaster.mjs";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
13
|
+
const q = (t) => {
|
|
14
|
+
const i = m();
|
|
14
15
|
return o({
|
|
15
16
|
...t,
|
|
16
17
|
mutationKey: n(),
|
|
17
|
-
mutationFn: async (
|
|
18
|
-
await r(
|
|
18
|
+
mutationFn: async (e) => {
|
|
19
|
+
await r(e), await i.invalidateQueries({
|
|
19
20
|
queryKey: a()
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
q as useAuthenticateMutation
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),q=require("@tanstack/react-query"),l=require("tiny-invariant"),u=require("../constants/index.js"),c=require("../services/getSession.js");require("../utils/capitalize.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const Q=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@opexa/portal-sdk-core"),q=require("@tanstack/react-query"),l=require("tiny-invariant"),u=require("../constants/index.js"),c=require("../services/getSession.js");require("../utils/capitalize.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const Q=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const i=require("../utils/queryKeys.js");require("../utils/toaster.js");const d=require("./useSessionQuery.js"),b=(r,e)=>{var t;const n=Q.getQueryClient(),a=d.useSessionQuery();return q.useQuery({...e,enabled:(e==null?void 0:e.enabled)===!1?!1:((t=a.data)==null?void 0:t.status)==="authenticated",queryKey:i.getAvailablePromosQueryKey(r),queryFn:async({signal:o})=>{const s=await n.fetchQuery({queryKey:i.getSessionQueryKey(),queryFn:()=>c.getSession()});return l(s.status==="authenticated"),await y.getAvailablePromos(r,{signal:o,environment:u.ENVIRONMENT,headers:{"Platform-Code":u.PLATFORM_CODE,Authorization:`Bearer ${s.token}`}})}})};exports.useAvailablePromosQuery=b;
|
|
@@ -4,6 +4,7 @@ import n from "tiny-invariant";
|
|
|
4
4
|
import { PLATFORM_CODE as y, ENVIRONMENT as p } from "../constants/index.mjs";
|
|
5
5
|
import { getSession as l } from "../services/getSession.mjs";
|
|
6
6
|
import "../utils/capitalize.mjs";
|
|
7
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import "../utils/parseDecimal.mjs";
|
|
9
10
|
import "../utils/getLocaleInfo.mjs";
|
|
@@ -12,7 +13,7 @@ import "../utils/isMobile.mjs";
|
|
|
12
13
|
import { getAvailablePromosQueryKey as d, getSessionQueryKey as f } from "../utils/queryKeys.mjs";
|
|
13
14
|
import "../utils/toaster.mjs";
|
|
14
15
|
import { useSessionQuery as q } from "./useSessionQuery.mjs";
|
|
15
|
-
const
|
|
16
|
+
const T = (r, e) => {
|
|
16
17
|
var t;
|
|
17
18
|
const s = Q(), a = q();
|
|
18
19
|
return u({
|
|
@@ -36,5 +37,5 @@ const R = (r, e) => {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
T as useAvailablePromosQuery
|
|
40
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),d=require("tiny-invariant"),i=require("../constants/index.js"),Q=require("../services/getSession.js");require("../utils/capitalize.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const f=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const o=require("../utils/queryKeys.js");require("../utils/toaster.js");const S=require("./useSessionQuery.js"),C=(u,s)=>{var n;const y=f.getQueryClient(),c=S.useSessionQuery();return a.useInfiniteQuery({enabled:((n=c.data)==null?void 0:n.status)==="authenticated",...s,queryKey:o.getBetRecordsQueryKey(u),queryFn:async({pageParam:e,signal:t})=>{const r=await y.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>Q.getSession()});return d(r.status==="authenticated"),await q.getBetRecords({...u,after:e},{signal:t,environment:i.ENVIRONMENT,headers:{"Platform-Code":i.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})},initialPageParam:void 0,getNextPageParam(e){var t,r;if((t=e==null?void 0:e.pageInfo)!=null&&t.hasNextPage)return(r=e==null?void 0:e.pageInfo)==null?void 0:r.endCursor}})};exports.useBetRecordsQuery=C;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@opexa/portal-sdk-core"),a=require("@tanstack/react-query"),d=require("tiny-invariant"),i=require("../constants/index.js"),Q=require("../services/getSession.js");require("../utils/capitalize.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const f=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const o=require("../utils/queryKeys.js");require("../utils/toaster.js");const S=require("./useSessionQuery.js"),C=(u,s)=>{var n;const y=f.getQueryClient(),c=S.useSessionQuery();return a.useInfiniteQuery({enabled:((n=c.data)==null?void 0:n.status)==="authenticated",...s,queryKey:o.getBetRecordsQueryKey(u),queryFn:async({pageParam:e,signal:t})=>{const r=await y.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>Q.getSession()});return d(r.status==="authenticated"),await q.getBetRecords({...u,after:e},{signal:t,environment:i.ENVIRONMENT,headers:{"Platform-Code":i.PLATFORM_CODE,Authorization:`Bearer ${r.token}`}})},initialPageParam:void 0,getNextPageParam(e){var t,r;if((t=e==null?void 0:e.pageInfo)!=null&&t.hasNextPage)return(r=e==null?void 0:e.pageInfo)==null?void 0:r.endCursor}})};exports.useBetRecordsQuery=C;
|
|
@@ -4,6 +4,7 @@ import p from "tiny-invariant";
|
|
|
4
4
|
import { PLATFORM_CODE as f, ENVIRONMENT as a } from "../constants/index.mjs";
|
|
5
5
|
import { getSession as c } from "../services/getSession.mjs";
|
|
6
6
|
import "../utils/capitalize.mjs";
|
|
7
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import "../utils/parseDecimal.mjs";
|
|
9
10
|
import "../utils/getLocaleInfo.mjs";
|
|
@@ -12,7 +13,7 @@ import "../utils/isMobile.mjs";
|
|
|
12
13
|
import { getBetRecordsQueryKey as Q, getSessionQueryKey as q } from "../utils/queryKeys.mjs";
|
|
13
14
|
import "../utils/toaster.mjs";
|
|
14
15
|
import { useSessionQuery as h } from "./useSessionQuery.mjs";
|
|
15
|
-
const
|
|
16
|
+
const T = (o, n) => {
|
|
16
17
|
var i;
|
|
17
18
|
const m = d(), u = h();
|
|
18
19
|
return y({
|
|
@@ -45,5 +46,5 @@ const M = (o, n) => {
|
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
T as useBetRecordsQuery
|
|
49
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@opexa/portal-sdk-core"),t=require("@tanstack/react-query"),e=require("../constants/index.js");require("../utils/capitalize.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");require("../utils/getQueryClient.js");require("../utils/isMobile.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@opexa/portal-sdk-core"),t=require("@tanstack/react-query"),e=require("../constants/index.js");require("../utils/capitalize.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");require("../utils/getQueryClient.js");require("../utils/isMobile.js");const i=require("../utils/queryKeys.js");require("../utils/toaster.js");const a=r=>t.useQuery({...r,queryKey:i.getCashbacksQueryKey(),queryFn:async({signal:u})=>await s.getCashbacks({signal:u,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})});exports.useCashbacksQuery=a;
|
|
@@ -2,6 +2,7 @@ import { getCashbacks as t } from "@opexa/portal-sdk-core";
|
|
|
2
2
|
import { useQuery as e } from "@tanstack/react-query";
|
|
3
3
|
import { PLATFORM_CODE as m, ENVIRONMENT as i } from "../constants/index.mjs";
|
|
4
4
|
import "../utils/capitalize.mjs";
|
|
5
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
5
6
|
import "react";
|
|
6
7
|
import "../utils/parseDecimal.mjs";
|
|
7
8
|
import "../utils/getLocaleInfo.mjs";
|
|
@@ -9,7 +10,7 @@ import "../utils/getQueryClient.mjs";
|
|
|
9
10
|
import "../utils/isMobile.mjs";
|
|
10
11
|
import { getCashbacksQueryKey as p } from "../utils/queryKeys.mjs";
|
|
11
12
|
import "../utils/toaster.mjs";
|
|
12
|
-
const
|
|
13
|
+
const N = (r) => e({
|
|
13
14
|
...r,
|
|
14
15
|
queryKey: p(),
|
|
15
16
|
queryFn: async ({ signal: o }) => await t({
|
|
@@ -21,5 +22,5 @@ const E = (r) => e({
|
|
|
21
22
|
})
|
|
22
23
|
});
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
N as useCashbacksQuery
|
|
25
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@opexa/portal-sdk-core"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@opexa/portal-sdk-core"),l=require("../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.21/node_modules/@opexa/portal-sdk-core/dist/object-id.js"),d=require("@tanstack/react-query"),c=require("tiny-invariant"),r=require("../constants/index.js"),y=require("../services/getSession.js");require("../utils/capitalize.js");const h=require("../utils/createPoll.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const C=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const o=require("../utils/queryKeys.js");require("../utils/toaster.js");const p=require("../_virtual/index.cjs.js"),g=q=>{const i=C.getQueryClient();return d.useMutation({...q,mutationKey:o.getCreateGCashDepositMutationKey(),mutationFn:async n=>{const s=n.id??p.index_cjsExports.ObjectId.generate(l.ObjectType.Deposit).toString(),a=await i.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>y.getSession()});c(a.status==="authenticated"),await u.createGCashDeposit({...n,id:s},{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${a.token}`}});const t=await h.createPoll(async()=>{const e=await i.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>y.getSession()});return c(e.status==="authenticated"),await u.getDeposit(s,{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})},{until(e){return!!(e!=null&&e.checkoutUrl)},interval:1e3,maxAttempt:5})();if(!(t!=null&&t.checkoutUrl)){const e=new Error;throw e.name="GCashDepositError",e.message="Failed to process GCash deposit",e}return t}})};exports.useCreateGCashDepositMutation=g;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { createGCashDeposit as y, getDeposit as h } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { ObjectType as f } from "../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.
|
|
2
|
+
import { ObjectType as f } from "../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.21/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs";
|
|
3
3
|
import { useMutation as l } from "@tanstack/react-query";
|
|
4
4
|
import n from "tiny-invariant";
|
|
5
5
|
import { PLATFORM_CODE as s, ENVIRONMENT as m } from "../constants/index.mjs";
|
|
6
|
-
import { getSession as
|
|
6
|
+
import { getSession as p } from "../services/getSession.mjs";
|
|
7
7
|
import "../utils/capitalize.mjs";
|
|
8
8
|
import { createPoll as d } from "../utils/createPoll.mjs";
|
|
9
|
+
import "../_virtual/jsx-runtime.mjs";
|
|
9
10
|
import "react";
|
|
10
11
|
import "../utils/parseDecimal.mjs";
|
|
11
12
|
import "../utils/getLocaleInfo.mjs";
|
|
12
13
|
import { getQueryClient as C } from "../utils/getQueryClient.mjs";
|
|
13
14
|
import "../utils/isMobile.mjs";
|
|
14
|
-
import { getCreateGCashDepositMutationKey as g, getSessionQueryKey as
|
|
15
|
+
import { getCreateGCashDepositMutationKey as g, getSessionQueryKey as u } from "../utils/queryKeys.mjs";
|
|
15
16
|
import "../utils/toaster.mjs";
|
|
16
17
|
import { i as w } from "../_virtual/index.cjs.mjs";
|
|
17
|
-
const
|
|
18
|
+
const z = (c) => {
|
|
18
19
|
const o = C();
|
|
19
20
|
return l({
|
|
20
21
|
...c,
|
|
21
22
|
mutationKey: g(),
|
|
22
23
|
mutationFn: async (r) => {
|
|
23
24
|
const i = r.id ?? w.ObjectId.generate(f.Deposit).toString(), a = await o.fetchQuery({
|
|
24
|
-
queryKey:
|
|
25
|
-
queryFn: () =>
|
|
25
|
+
queryKey: u(),
|
|
26
|
+
queryFn: () => p()
|
|
26
27
|
});
|
|
27
28
|
n(a.status === "authenticated"), await y(
|
|
28
29
|
{ ...r, id: i },
|
|
@@ -37,8 +38,8 @@ const b = (c) => {
|
|
|
37
38
|
const e = await d(
|
|
38
39
|
async () => {
|
|
39
40
|
const t = await o.fetchQuery({
|
|
40
|
-
queryKey:
|
|
41
|
-
queryFn: () =>
|
|
41
|
+
queryKey: u(),
|
|
42
|
+
queryFn: () => p()
|
|
42
43
|
});
|
|
43
44
|
return n(t.status === "authenticated"), await h(i, {
|
|
44
45
|
environment: m,
|
|
@@ -65,5 +66,5 @@ const b = (c) => {
|
|
|
65
66
|
});
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
z as useCreateGCashDepositMutation
|
|
69
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@opexa/portal-sdk-core"),q=require("../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@opexa/portal-sdk-core"),q=require("../node_modules/.pnpm/@opexa_portal-sdk-core@0.0.21/node_modules/@opexa/portal-sdk-core/dist/object-id.js"),d=require("@tanstack/react-query"),c=require("tiny-invariant"),r=require("../constants/index.js"),l=require("../services/getSession.js");require("../utils/capitalize.js");const y=require("../utils/createPoll.js");require("../_virtual/jsx-runtime.js");require("react");require("../utils/parseDecimal.js");require("../utils/getLocaleInfo.js");const g=require("../utils/getQueryClient.js");require("../utils/isMobile.js");const o=require("../utils/queryKeys.js");require("../utils/toaster.js");const h=require("../_virtual/index.cjs.js"),S=m=>{const i=g.getQueryClient();return d.useMutation({...m,mutationKey:o.getCreateGameSessionMutationKey(),mutationFn:async s=>{const n=h.index_cjsExports.ObjectId.generate(q.ObjectType.GameSession).toString(),u=await i.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>l.getSession()});if(c(u.status==="authenticated"),r.LEGACY_GAME_PROVIDERS.includes(s.provider)){await a.createGameSession__legacy({id:n,game:s.reference},{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${u.token}`}});const t=await y.createPoll(async()=>{const e=await i.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>l.getSession()});return c(e.status==="authenticated"),await a.getGameSession__legacy(n,{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})},{until:e=>!!(e!=null&&e.launchUrl),interval:1e3,maxAttempt:5})();if(!(t!=null&&t.launchUrl)){const e=new Error;throw e.name="GameSessionError",e.message="Failed to launch game",e}return t}else{await a.createGameSession({id:n,game:s.reference},{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${u.token}`}});const t=await y.createPoll(async()=>{const e=await i.fetchQuery({queryKey:o.getSessionQueryKey(),queryFn:()=>l.getSession()});return c(e.status==="authenticated"),await a.getGameSession(n,{environment:r.ENVIRONMENT,headers:{"Platform-Code":r.PLATFORM_CODE,Authorization:`Bearer ${e.token}`}})},{until:e=>!!(e!=null&&e.launchUrl),interval:1e3,maxAttempt:5})();if(!(t!=null&&t.launchUrl)){const e=new Error;throw e.name="GameSessionError",e.message="Failed to launch game",e}return t}}})};exports.useCreateGameSessionMutation=S;
|