@opexa/portal-components 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.d.ts +6 -3
- package/dist/client/hooks/useAuthenticateMutation.js +1 -1
- package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
- package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
- package/dist/client/hooks/useBonusesQuery.js +1 -0
- package/dist/client/hooks/useBonusesQuery.mjs +38 -0
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
- package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
- package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
- package/dist/client/hooks/useGlobalStore.d.ts +30 -20
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +39 -6
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -5
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -1
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +18 -18
- package/dist/client/hooks/useSignInMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.mjs +3 -2
- package/dist/client/hooks/useSignOutMutation.js +1 -1
- package/dist/client/hooks/useSignOutMutation.mjs +11 -10
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/services/getSession.js +1 -1
- package/dist/client/services/getSession.mjs +4 -3
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +90 -84
- package/dist/components/Account/Account.d.ts +17 -10
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +204 -148
- package/dist/components/Account/account.recipe.d.ts +61 -0
- package/dist/components/Account/account.recipe.js +1 -0
- package/dist/components/Account/account.recipe.mjs +35 -0
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +174 -150
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonuses/Bonuses.js +1 -1
- package/dist/components/Bonuses/Bonuses.mjs +6 -5
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +25 -23
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +15 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +36 -34
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +7 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +12 -10
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +7 -6
- package/dist/components/Empty.js +1 -0
- package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
- package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
- package/dist/components/FavoriteGames/index.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +147 -123
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
- package/dist/components/GameProviders/GameProviders.d.ts +7 -10
- package/dist/components/GameProviders/GameProviders.js +1 -0
- package/dist/components/GameProviders/GameProviders.mjs +122 -0
- package/dist/components/GameProviders/index.d.ts +1 -0
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +91 -66
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +4 -2
- package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -0
- package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
- package/dist/components/GamesSearch/index.d.ts +2 -0
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +1 -0
- package/dist/components/InfiniteScroll.mjs +30 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -114
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +206 -119
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -9
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
- package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
- package/dist/components/Jackpots/JackpotRules.js +1 -0
- package/dist/components/Jackpots/JackpotRules.mjs +78 -0
- package/dist/components/Jackpots/Jackpots.d.ts +2 -2
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/KYC/KYC.d.ts +5 -0
- package/dist/components/KYC/KYC.js +1 -0
- package/dist/components/KYC/KYC.mjs +84 -0
- package/dist/components/KYC/KYCContext.d.ts +3 -0
- package/dist/components/KYC/KYCContext.js +1 -0
- package/dist/components/KYC/KYCContext.mjs +11 -0
- package/dist/components/KYC/KYCTrigger.d.ts +5 -0
- package/dist/components/KYC/KYCTrigger.js +1 -0
- package/dist/components/KYC/KYCTrigger.mjs +42 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +1 -0
- package/dist/components/KYC/Step1.mjs +67 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +1 -0
- package/dist/components/KYC/Step2.mjs +126 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +1 -0
- package/dist/components/KYC/Step3.mjs +98 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -0
- package/dist/components/KYC/StepIndicator.js +1 -0
- package/dist/components/KYC/StepIndicator.mjs +42 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -0
- package/dist/components/KYC/UploadDocument.js +1 -0
- package/dist/components/KYC/UploadDocument.mjs +69 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -0
- package/dist/components/KYC/UploadSelfie.js +1 -0
- package/dist/components/KYC/UploadSelfie.mjs +65 -0
- package/dist/components/KYC/index.d.ts +2 -0
- package/dist/components/KYC/useKYC.d.ts +14 -0
- package/dist/components/KYC/useKYC.js +1 -0
- package/dist/components/KYC/useKYC.mjs +43 -0
- package/dist/components/KYC/utils.d.ts +1 -0
- package/dist/components/Messages/MessageItem.js +1 -1
- package/dist/components/Messages/MessageItem.mjs +37 -28
- package/dist/components/Messages/MessagePopup.js +1 -1
- package/dist/components/Messages/MessagePopup.mjs +35 -29
- package/dist/components/Messages/Messages.js +1 -1
- package/dist/components/Messages/Messages.mjs +80 -61
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
- package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
- package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
- package/dist/components/Promo/Promo.d.ts +4 -1
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promo/Promo.mjs +2 -2
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +75 -22
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +5 -3
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -6
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +3 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
- package/dist/components/Quests/Quests.d.ts +1 -0
- package/dist/components/Quests/Quests.js +1 -0
- package/dist/components/Quests/Quests.mjs +15 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
- package/dist/components/Quests/index.d.ts +1 -0
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +4 -2
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +4 -2
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +4 -2
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +4 -2
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +3 -2
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -111
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +47 -38
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +236 -194
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +3 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +62 -53
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +61 -52
- package/dist/components/index.d.ts +8 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -36
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.js +1 -0
- package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
- package/dist/icons/Award01Icon.d.ts +2 -0
- package/dist/icons/Award01Icon.js +1 -0
- package/dist/icons/Award01Icon.mjs +22 -0
- package/dist/icons/CalendarIcon.d.ts +2 -0
- package/dist/icons/CalendarIcon.js +1 -0
- package/dist/icons/CalendarIcon.mjs +26 -0
- package/dist/icons/Camera01Icon.d.ts +2 -0
- package/dist/icons/Camera01Icon.js +1 -0
- package/dist/icons/Camera01Icon.mjs +25 -0
- package/dist/icons/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/CheckCircleIcon.js +1 -0
- package/dist/icons/CheckCircleIcon.mjs +22 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
- package/dist/icons/ClockStopWatchIcon.js +1 -0
- package/dist/icons/ClockStopWatchIcon.mjs +26 -0
- package/dist/icons/CoinsHandIcon.d.ts +2 -0
- package/dist/icons/CoinsHandIcon.js +1 -0
- package/dist/icons/CoinsHandIcon.mjs +22 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
- package/dist/icons/CoinsStacked02Icon.js +1 -0
- package/dist/icons/CoinsStacked02Icon.mjs +22 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
- package/dist/icons/CoinsSwap02Icon.js +1 -0
- package/dist/icons/CoinsSwap02Icon.mjs +22 -0
- package/dist/icons/Flag06Icon.d.ts +2 -0
- package/dist/icons/Flag06Icon.js +1 -0
- package/dist/icons/Flag06Icon.mjs +22 -0
- package/dist/icons/HelpCircleIcon.d.ts +2 -0
- package/dist/icons/HelpCircleIcon.js +1 -0
- package/dist/icons/HelpCircleIcon.mjs +22 -0
- package/dist/icons/InfoCircleIcon.d.ts +2 -0
- package/dist/icons/InfoCircleIcon.js +1 -0
- package/dist/icons/InfoCircleIcon.mjs +27 -0
- package/dist/icons/Menu01Icon.d.ts +2 -0
- package/dist/icons/Menu01Icon.js +1 -0
- package/dist/icons/Menu01Icon.mjs +22 -0
- package/dist/icons/Menu03Icon.d.ts +2 -0
- package/dist/icons/Menu03Icon.js +1 -0
- package/dist/icons/Menu03Icon.mjs +22 -0
- package/dist/icons/SearchLgIcon.d.ts +2 -0
- package/dist/icons/SearchLgIcon.js +1 -0
- package/dist/icons/SearchLgIcon.mjs +22 -0
- package/dist/icons/Settings02Icon.d.ts +2 -0
- package/dist/icons/Settings02Icon.js +1 -0
- package/dist/icons/Settings02Icon.mjs +25 -0
- package/dist/icons/Star01Icon.d.ts +2 -0
- package/dist/icons/Star01Icon.js +1 -0
- package/dist/icons/Star01Icon.mjs +22 -0
- package/dist/icons/StarIcon.js +1 -1
- package/dist/icons/StarIcon.mjs +1 -2
- package/dist/icons/UploadCloud02Icon.d.ts +2 -0
- package/dist/icons/UploadCloud02Icon.js +1 -0
- package/dist/icons/UploadCloud02Icon.mjs +22 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +80 -48
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/hacksaw-gaming.png.js +1 -0
- package/dist/images/hacksaw-gaming.png.mjs +4 -0
- package/dist/images/trophy-two.png.js +1 -0
- package/dist/images/trophy-two.png.mjs +4 -0
- package/dist/portal-components.css +1 -1
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/getSession.mjs +6 -5
- package/dist/server/utils/index.d.ts +2 -1
- package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchBonusesQuery.js +1 -0
- package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +9 -2
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Combobox/Combobox.d.ts +815 -1
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/Combobox.mjs +27 -2
- package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +1 -1
- package/dist/ui/IconButton/iconButton.recipe.d.ts +1 -0
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +3 -2
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +2 -1
- package/dist/utils/queryKeys.d.ts +7 -3
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +53 -43
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +43 -39
- package/package.json +16 -11
- package/dist/client/hooks/useSiteQuery.d.ts +0 -3
- package/dist/client/hooks/useSiteQuery.js +0 -1
- package/dist/client/hooks/useSiteQuery.mjs +0 -23
- package/dist/components/Empty/CloudIcon.d.ts +0 -2
- package/dist/components/Empty/CloudIcon.js +0 -1
- package/dist/components/Empty/Empty.js +0 -1
- package/dist/components/Empty/Empty.mjs +0 -20
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/images/ball.png.js +0 -1
- package/dist/images/ball.png.mjs +0 -4
- package/dist/images/card.png.js +0 -1
- package/dist/images/card.png.mjs +0 -4
- package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
- package/dist/server/utils/prefetchSiteQuery.js +0 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
- /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
|
@@ -15,6 +15,7 @@ import "../../ui/Button/button.recipe.mjs";
|
|
|
15
15
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
16
16
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
17
17
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
18
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
18
19
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
19
20
|
import "../../ui/Dialog/Dialog.mjs";
|
|
20
21
|
import "../../ui/Drawer/Drawer.mjs";
|
|
@@ -32,7 +33,7 @@ import { Root as m, List as s, Trigger as i, Indicator as l, Content as o } from
|
|
|
32
33
|
import { DepositRecordsTable as n } from "./DepositRecordsTable.mjs";
|
|
33
34
|
import { TransactionRecordsTable as p } from "./TransactionRecordsTable.mjs";
|
|
34
35
|
import { WithdrawalRecordsTable as c } from "./WithdrawalRecordsTable.mjs";
|
|
35
|
-
function
|
|
36
|
+
function Q(e) {
|
|
36
37
|
return /* @__PURE__ */ r("div", { className: a("px-4 pb-3xl pt-4", e.className), children: [
|
|
37
38
|
/* @__PURE__ */ t("h2", { className: "text-text-secondary-700 text-sm font-semibold leading-tight", children: "Transaction Records" }),
|
|
38
39
|
/* @__PURE__ */ t("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "View your transaction records" }),
|
|
@@ -60,5 +61,5 @@ function P(e) {
|
|
|
60
61
|
] });
|
|
61
62
|
}
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
Q as TransactionRecords
|
|
64
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),l=require("@date-fns/tz"),a=require("date-fns"),S=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const m=require("../../utils/capitalize.js"),h=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const q=require("../../client/hooks/useInfiniteQueryHelper.js"),w=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const R=require("../../client/hooks/useTransactionRecordsQuery.js"),P=require("../../icons/CheckIcon.js"),H=require("../../icons/ChevronDownIcon.js"),D=require("../../icons/ChevronLeftIcon.js"),F=require("../../icons/ChevronRightIcon.js"),O=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");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const g=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");const t=require("../../ui/Select/Select.js"),r=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const B=require("../Empty.js"),E=require("./TableFilters.js");function M(){const[i,j]=S.useState(),s=w.useLocaleInfo(),{page:p,pageSize:y,hasNextPage:b,hasPrevPage:N,next:f,prev:I,rows:c,setPageSize:C,totalPages:T,loading:o,firstPage:v}=q.useInfiniteQueryHelper(R.useTransactionRecordsQuery,{filter:{...i&&{dateTimeCreated:{...i.start&&{greaterThanOrEqual:new l.TZDateMini(a.startOfDay(i.start),s.timezone).toISOString()},...i.end&&{lesserThanOrEqual:new l.TZDateMini(a.endOfDay(i.end),s.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(E.TableFilters,{value:{timestamp:i},onChange:n=>{j(n.timestamp),v()},enabledFilters:{transactionType:!0}}),c.length<=0&&e.jsx(B.Empty,{icon:o?k.SpinnerIcon:O.File02Icon,title:o?"Just a moment":"No data",message:o?"Fetching latest transaction records...":"No data is currently available.",className:"mt-5xl"}),c.length>=1&&e.jsxs("div",{className:"border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x",children:[e.jsx("div",{className:"border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none 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:"Transaction Type"}),e.jsx(r.Heading,{children:"Transaction Time"}),e.jsx(r.Heading,{children:"Amount"}),e.jsx(r.Heading,{children:"Current Balance"}),e.jsx(r.Heading,{children:"Reference Number"}),e.jsx(r.Heading,{children:"Content"})]})}),e.jsx(r.Body,{children:c.map(n=>e.jsxs(r.Row,{children:[e.jsx(r.Cell,{className:"!py-1",children:m.capitalize(n.type,{delimiter:m.capitalize.delimiters.UNDERSCORE})}),e.jsxs(r.Cell,{className:"!py-1",children:[e.jsx("div",{className:"leading-tight",children:a.format(n.dateTimeCreated,"MM/dd/yyyy",{in:l.tz(s.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:a.format(n.dateTimeCreated,"hh:mm a",{in:l.tz(s.timezone)})})]}),e.jsx(r.Cell,{className:"!py-1",children:h.formatNumber(n.amount,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:h.formatNumber(n.currentBalance,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsx(r.Cell,{className:"!py-1",children:n.referenceNumber}),e.jsx(r.Cell,{className:"!py-1",children:n.content||"/"})]},n.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{className:"text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0",children:["Page ",p," of ",T]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsx(t.Root,{size:"sm",value:[y.toString()],onValueChange:n=>{const d=parseInt(n.value[0]),z=isNaN(d)?10:d;C(z)},collection:u,lazyMount:!0,className:"hidden lg:block",positioning:{sameWidth:!0},children:e.jsxs(t.Trigger,{children:[e.jsx(t.ValueText,{}),e.jsx(t.Indicator,{asChild:!0,children:e.jsx(H.ChevronDownIcon,{})}),e.jsx(x.Portal,{children:e.jsx(t.Positioner,{children:e.jsx(t.Content,{children:u.items.map(n=>e.jsxs(t.Item,{item:n,children:[e.jsx(t.ItemText,{children:u.stringifyItem(n)}),e.jsx(t.ItemIndicator,{asChild:!0,children:e.jsx(P.CheckIcon,{})})]},n))})})})]})}),e.jsxs("div",{className:"contents lg:flex",children:[e.jsx(g.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-1 lg:order-none lg:rounded-r-none lg:border-r-0",disabled:!N||o,onClick:()=>I(),children:e.jsx(D.ChevronLeftIcon,{className:"size-5"})}),e.jsx(g.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-3 lg:order-none lg:rounded-l-none",disabled:!b||o,onClick:()=>f(),children:e.jsx(F.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const u=x.createListCollection({items:q.useInfiniteQueryHelper.config.pageSizes,itemToValue:i=>i.toString(),itemToString:i=>`${i} items per page`});exports.TransactionRecordsTable=M;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, Fragment as D, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createListCollection as O, Portal as k } from "@ark-ui/react";
|
|
3
3
|
import { TZDateMini as d, tz as p } from "@date-fns/tz";
|
|
4
4
|
import { endOfDay as E, startOfDay as F, format as h } from "date-fns";
|
|
@@ -13,6 +13,7 @@ import "../../utils/getLocaleInfo.mjs";
|
|
|
13
13
|
import "../../utils/getQueryClient.mjs";
|
|
14
14
|
import "../../utils/isMobile.mjs";
|
|
15
15
|
import "../../utils/parseDecimal.mjs";
|
|
16
|
+
import "../../client/services/getSession.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
19
|
import "../../client/hooks/useGlobalStore.mjs";
|
|
@@ -20,11 +21,12 @@ import { useInfiniteQueryHelper as b } from "../../client/hooks/useInfiniteQuery
|
|
|
20
21
|
import { useLocaleInfo as M } from "../../client/hooks/useLocaleInfo.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
23
|
import { useTransactionRecordsQuery as q } from "../../client/hooks/useTransactionRecordsQuery.mjs";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
24
|
+
import { CheckIcon as H } from "../../icons/CheckIcon.mjs";
|
|
25
|
+
import { ChevronDownIcon as L } from "../../icons/ChevronDownIcon.mjs";
|
|
26
|
+
import { ChevronLeftIcon as V } from "../../icons/ChevronLeftIcon.mjs";
|
|
27
|
+
import { ChevronRightIcon as j } from "../../icons/ChevronRightIcon.mjs";
|
|
28
|
+
import { File02Icon as Q } from "../../icons/File02Icon.mjs";
|
|
29
|
+
import { SpinnerIcon as $ } from "../../icons/SpinnerIcon.mjs";
|
|
28
30
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
31
|
import "../../ui/Avatar/Avatar.mjs";
|
|
30
32
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -32,6 +34,7 @@ import "../../ui/Button/button.recipe.mjs";
|
|
|
32
34
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
33
35
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
34
36
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
37
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
35
38
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
36
39
|
import "../../ui/Dialog/Dialog.mjs";
|
|
37
40
|
import "../../ui/Drawer/Drawer.mjs";
|
|
@@ -44,37 +47,37 @@ import "../../ui/Popover/Popover.mjs";
|
|
|
44
47
|
import "tailwind-merge";
|
|
45
48
|
import "../../ui/Progress/Progress.mjs";
|
|
46
49
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
47
|
-
import { Root as
|
|
48
|
-
import { Root as
|
|
50
|
+
import { Root as A, Trigger as J, ValueText as U, Indicator as W, Positioner as Z, Content as G, Item as K, ItemText as X, ItemIndicator as Y } from "../../ui/Select/Select.mjs";
|
|
51
|
+
import { Root as _, Header as ee, Row as y, Heading as n, Body as re, Cell as l } from "../../ui/Table/Table.mjs";
|
|
49
52
|
import "../../ui/Tabs/Tabs.mjs";
|
|
50
|
-
import { Empty as
|
|
51
|
-
import { TableFilters as
|
|
52
|
-
function
|
|
53
|
-
const [
|
|
53
|
+
import { Empty as oe } from "../Empty.mjs";
|
|
54
|
+
import { TableFilters as te } from "./TableFilters.mjs";
|
|
55
|
+
function ir() {
|
|
56
|
+
const [t, N] = B(), i = M(), {
|
|
54
57
|
page: v,
|
|
55
58
|
pageSize: x,
|
|
56
59
|
hasNextPage: T,
|
|
57
60
|
hasPrevPage: C,
|
|
58
|
-
next:
|
|
59
|
-
prev:
|
|
60
|
-
rows:
|
|
61
|
-
setPageSize:
|
|
61
|
+
next: I,
|
|
62
|
+
prev: z,
|
|
63
|
+
rows: a,
|
|
64
|
+
setPageSize: S,
|
|
62
65
|
totalPages: w,
|
|
63
|
-
loading:
|
|
66
|
+
loading: m,
|
|
64
67
|
firstPage: P
|
|
65
68
|
} = b(q, {
|
|
66
69
|
filter: {
|
|
67
|
-
...
|
|
70
|
+
...t && {
|
|
68
71
|
dateTimeCreated: {
|
|
69
|
-
...
|
|
72
|
+
...t.start && {
|
|
70
73
|
greaterThanOrEqual: new d(
|
|
71
|
-
F(
|
|
74
|
+
F(t.start),
|
|
72
75
|
i.timezone
|
|
73
76
|
).toISOString()
|
|
74
77
|
},
|
|
75
|
-
...
|
|
78
|
+
...t.end && {
|
|
76
79
|
lesserThanOrEqual: new d(
|
|
77
|
-
E(
|
|
80
|
+
E(t.end),
|
|
78
81
|
i.timezone
|
|
79
82
|
).toISOString()
|
|
80
83
|
}
|
|
@@ -82,12 +85,12 @@ function Ye() {
|
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
});
|
|
85
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ o(D, { children: [
|
|
86
89
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
90
|
+
te,
|
|
88
91
|
{
|
|
89
92
|
value: {
|
|
90
|
-
timestamp:
|
|
93
|
+
timestamp: t
|
|
91
94
|
},
|
|
92
95
|
onChange: (r) => {
|
|
93
96
|
N(r.timestamp), P();
|
|
@@ -97,18 +100,18 @@ function Ye() {
|
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
),
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
a.length <= 0 && /* @__PURE__ */ e(
|
|
104
|
+
oe,
|
|
102
105
|
{
|
|
103
|
-
icon:
|
|
104
|
-
title:
|
|
105
|
-
message:
|
|
106
|
+
icon: m ? $ : Q,
|
|
107
|
+
title: m ? "Just a moment" : "No data",
|
|
108
|
+
message: m ? "Fetching latest transaction records..." : "No data is currently available.",
|
|
106
109
|
className: "mt-5xl"
|
|
107
110
|
}
|
|
108
111
|
),
|
|
109
|
-
|
|
110
|
-
/* @__PURE__ */ e("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: /* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
+
a.length >= 1 && /* @__PURE__ */ o("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [
|
|
113
|
+
/* @__PURE__ */ e("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: /* @__PURE__ */ o(_, { className: "border-0", children: [
|
|
114
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ o(y, { children: [
|
|
112
115
|
/* @__PURE__ */ e(n, { children: "Transaction Type" }),
|
|
113
116
|
/* @__PURE__ */ e(n, { children: "Transaction Time" }),
|
|
114
117
|
/* @__PURE__ */ e(n, { children: "Amount" }),
|
|
@@ -116,11 +119,11 @@ function Ye() {
|
|
|
116
119
|
/* @__PURE__ */ e(n, { children: "Reference Number" }),
|
|
117
120
|
/* @__PURE__ */ e(n, { children: "Content" })
|
|
118
121
|
] }) }),
|
|
119
|
-
/* @__PURE__ */ e(
|
|
122
|
+
/* @__PURE__ */ e(re, { children: a.map((r) => /* @__PURE__ */ o(y, { children: [
|
|
120
123
|
/* @__PURE__ */ e(l, { className: "!py-1", children: g(r.type, {
|
|
121
124
|
delimiter: g.delimiters.UNDERSCORE
|
|
122
125
|
}) }),
|
|
123
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ o(l, { className: "!py-1", children: [
|
|
124
127
|
/* @__PURE__ */ e("div", { className: "leading-tight", children: h(r.dateTimeCreated, "MM/dd/yyyy", {
|
|
125
128
|
in: p(i.timezone)
|
|
126
129
|
}) }),
|
|
@@ -140,8 +143,8 @@ function Ye() {
|
|
|
140
143
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.content || "/" })
|
|
141
144
|
] }, r.id)) })
|
|
142
145
|
] }) }),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-lg px-4 py-3", children: [
|
|
147
|
+
/* @__PURE__ */ o("p", { className: "text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0", children: [
|
|
145
148
|
"Page ",
|
|
146
149
|
v,
|
|
147
150
|
" of ",
|
|
@@ -149,25 +152,31 @@ function Ye() {
|
|
|
149
152
|
] }),
|
|
150
153
|
/* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
|
|
151
154
|
/* @__PURE__ */ e(
|
|
152
|
-
|
|
155
|
+
A,
|
|
153
156
|
{
|
|
154
157
|
size: "sm",
|
|
155
158
|
value: [x.toString()],
|
|
156
159
|
onValueChange: (r) => {
|
|
157
160
|
const s = parseInt(r.value[0]), R = isNaN(s) ? 10 : s;
|
|
158
|
-
|
|
161
|
+
S(R);
|
|
159
162
|
},
|
|
160
163
|
collection: c,
|
|
161
164
|
lazyMount: !0,
|
|
162
165
|
className: "hidden lg:block",
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
positioning: {
|
|
167
|
+
sameWidth: !0
|
|
168
|
+
},
|
|
169
|
+
children: /* @__PURE__ */ o(J, { children: [
|
|
170
|
+
/* @__PURE__ */ e(U, {}),
|
|
171
|
+
/* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e(L, {}) }),
|
|
172
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(G, { children: c.items.map((r) => /* @__PURE__ */ o(K, { item: r, children: [
|
|
173
|
+
/* @__PURE__ */ e(X, { children: c.stringifyItem(r) }),
|
|
174
|
+
/* @__PURE__ */ e(Y, { asChild: !0, children: /* @__PURE__ */ e(H, {}) })
|
|
175
|
+
] }, r)) }) }) })
|
|
167
176
|
] })
|
|
168
177
|
}
|
|
169
178
|
),
|
|
170
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ o("div", { className: "contents lg:flex", children: [
|
|
171
180
|
/* @__PURE__ */ e(
|
|
172
181
|
f,
|
|
173
182
|
{
|
|
@@ -175,9 +184,9 @@ function Ye() {
|
|
|
175
184
|
variant: "outline",
|
|
176
185
|
colorScheme: "gray",
|
|
177
186
|
className: "order-1 lg:order-none lg:rounded-r-none lg:border-r-0",
|
|
178
|
-
disabled: !C ||
|
|
179
|
-
onClick: () =>
|
|
180
|
-
children: /* @__PURE__ */ e(
|
|
187
|
+
disabled: !C || m,
|
|
188
|
+
onClick: () => z(),
|
|
189
|
+
children: /* @__PURE__ */ e(V, { className: "size-5" })
|
|
181
190
|
}
|
|
182
191
|
),
|
|
183
192
|
/* @__PURE__ */ e(
|
|
@@ -187,9 +196,9 @@ function Ye() {
|
|
|
187
196
|
variant: "outline",
|
|
188
197
|
colorScheme: "gray",
|
|
189
198
|
className: "order-3 lg:order-none lg:rounded-l-none",
|
|
190
|
-
disabled: !T ||
|
|
191
|
-
onClick: () =>
|
|
192
|
-
children: /* @__PURE__ */ e(
|
|
199
|
+
disabled: !T || m,
|
|
200
|
+
onClick: () => I(),
|
|
201
|
+
children: /* @__PURE__ */ e(j, { className: "size-5" })
|
|
193
202
|
}
|
|
194
203
|
)
|
|
195
204
|
] })
|
|
@@ -199,9 +208,9 @@ function Ye() {
|
|
|
199
208
|
}
|
|
200
209
|
const c = O({
|
|
201
210
|
items: b.config.pageSizes,
|
|
202
|
-
itemToValue: (
|
|
203
|
-
itemToString: (
|
|
211
|
+
itemToValue: (t) => t.toString(),
|
|
212
|
+
itemToString: (t) => `${t} items per page`
|
|
204
213
|
});
|
|
205
214
|
export {
|
|
206
|
-
|
|
215
|
+
ir as TransactionRecordsTable
|
|
207
216
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("@ark-ui/react"),a=require("@date-fns/tz"),c=require("date-fns"),x=require("react");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const o=require("../../utils/capitalize.js"),m=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");const b=require("../../client/hooks/useInfiniteQueryHelper.js"),E=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const H=require("../../client/hooks/useWithdrawalRecordsQuery.js"),P=require("../../icons/CheckIcon.js"),F=require("../../icons/ChevronDownIcon.js"),W=require("../../icons/ChevronLeftIcon.js"),k=require("../../icons/ChevronRightIcon.js"),L=require("../../icons/File02Icon.js"),M=require("../../icons/SpinnerIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const q=require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const j=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");const n=require("../../ui/Select/Select.js"),i=require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const O=require("../Empty.js"),B=require("./TableFilters.js");function A(){const[s,y]=x.useState(),[d,N]=x.useState(),t=E.useLocaleInfo(),{page:w,pageSize:C,hasNextPage:f,hasPrevPage:I,next:S,prev:v,rows:u,setPageSize:z,totalPages:T,loading:l,firstPage:R}=b.useInfiniteQueryHelper(H.useWithdrawalRecordsQuery,{filter:{...d&&{status:{equal:d}},...s&&{dateTimeCreated:{...s.start&&{greaterThanOrEqual:new a.TZDateMini(c.startOfDay(s.start),t.timezone).toISOString()},...s.end&&{lesserThanOrEqual:new a.TZDateMini(c.endOfDay(s.end),t.timezone).toISOString()}}}}});return e.jsxs(e.Fragment,{children:[e.jsx(B.TableFilters,{enabledFilters:{withdrawalStatus:!0},value:{timestamp:s,withdrawalStatus:d},onChange:r=>{R(),y(r.timestamp),N(r.withdrawalStatus)}}),u.length<=0&&e.jsx(O.Empty,{icon:l?M.SpinnerIcon:L.File02Icon,title:l?"Just a moment":"No data",message:l?"Fetching latest withdrawal records...":"No data is currently available.",className:"mt-5xl"}),u.length>=1&&e.jsxs("div",{className:"border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x",children:[e.jsx("div",{className:"border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b",children:e.jsxs(i.Root,{className:"border-0",children:[e.jsx(i.Header,{children:e.jsxs(i.Row,{children:[e.jsx(i.Heading,{children:"Withdrawal No."}),e.jsx(i.Heading,{children:"Reference"}),e.jsx(i.Heading,{children:"Withdrawal Method"}),e.jsx(i.Heading,{children:"Mobile Number"}),e.jsx(i.Heading,{children:"Withdrawal Amount"}),e.jsx(i.Heading,{children:"Net Amount"}),e.jsx(i.Heading,{children:"Transaction Fee"}),e.jsx(i.Heading,{children:"Bank Name"}),e.jsx(i.Heading,{children:"Withdrawal Time"}),e.jsx(i.Heading,{children:"Status"})]})}),e.jsx(i.Body,{children:u.map(r=>e.jsxs(i.Row,{children:[e.jsx(i.Cell,{className:"!py-1",children:r.withdrawalNumber}),e.jsx(i.Cell,{className:"!py-1",children:r.reference}),e.jsx(i.Cell,{className:"!py-1",children:o.capitalize(r.type,{delimiter:o.capitalize.delimiters.UNDERSCORE})}),e.jsx(i.Cell,{className:"!py-1",children:r.recipientMobileNumber}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.amount,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.netAmount,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:m.formatNumber(r.fee,{currency:t.currency.code,minDecimalPlaces:2})}),e.jsx(i.Cell,{className:"!py-1",children:r.bank}),e.jsxs(i.Cell,{className:"!py-1",children:[e.jsx("div",{className:"leading-tight",children:c.format(r.dateTimeCreated,"MM/dd/yyyy",{in:a.tz(t.timezone)})}),e.jsx("div",{className:"text-text-tertiary-600 leading-tight",children:c.format(r.dateTimeCreated,"hh:mm a",{in:a.tz(t.timezone)})})]}),e.jsx(i.Cell,{className:"!py-1",children:e.jsx(q.Root,{variant:"subtle",colorScheme:r.status==="FAILED"||r.status==="REJECTED"||r.status==="CANCELLED"?"danger":r.status==="PENDING"?"warning":"success",children:e.jsx(q.Label,{children:o.capitalize(r.status,{delimiter:o.capitalize.delimiters.UNDERSCORE})})})})]},r.id))})]})}),e.jsxs("div",{className:"flex items-center gap-lg px-4 py-3",children:[e.jsxs("p",{className:"text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0",children:["Page ",w," of ",T]}),e.jsx("div",{className:"hidden grow lg:block"}),e.jsx(n.Root,{size:"sm",value:[C.toString()],onValueChange:r=>{const g=parseInt(r.value[0]),D=isNaN(g)?10:g;z(D)},collection:h,lazyMount:!0,className:"hidden lg:block",positioning:{sameWidth:!0},children:e.jsxs(n.Trigger,{children:[e.jsx(n.ValueText,{}),e.jsx(n.Indicator,{asChild:!0,children:e.jsx(F.ChevronDownIcon,{})}),e.jsx(p.Portal,{children:e.jsx(n.Positioner,{children:e.jsx(n.Content,{children:h.items.map(r=>e.jsxs(n.Item,{item:r,children:[e.jsx(n.ItemText,{children:h.stringifyItem(r)}),e.jsx(n.ItemIndicator,{asChild:!0,children:e.jsx(P.CheckIcon,{})})]},r))})})})]})}),e.jsxs("div",{className:"contents lg:flex",children:[e.jsx(j.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-1 lg:order-none lg:rounded-r-none lg:border-r-0",disabled:!I||l,onClick:()=>v(),children:e.jsx(W.ChevronLeftIcon,{className:"size-5"})}),e.jsx(j.IconButton,{size:"sm",variant:"outline",colorScheme:"gray",className:"order-3 lg:order-none lg:rounded-l-none",disabled:!f||l,onClick:()=>S(),children:e.jsx(k.ChevronRightIcon,{className:"size-5"})})]})]})]})]})}const h=p.createListCollection({items:b.useInfiniteQueryHelper.config.pageSizes,itemToValue:s=>s.toString(),itemToString:s=>`${s} items per page`});exports.WithdrawalRecordsTable=A;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { createListCollection as
|
|
1
|
+
import { jsxs as t, Fragment as O, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createListCollection as W, Portal as F } from "@ark-ui/react";
|
|
3
3
|
import { TZDateMini as u, tz as g } from "@date-fns/tz";
|
|
4
|
-
import { endOfDay as
|
|
4
|
+
import { endOfDay as L, startOfDay as M, format as f } from "date-fns";
|
|
5
5
|
import { useState as N } from "react";
|
|
6
6
|
import "@opexa/portal-sdk-core";
|
|
7
7
|
import "@tanstack/react-query";
|
|
@@ -13,6 +13,7 @@ import "../../utils/getLocaleInfo.mjs";
|
|
|
13
13
|
import "../../utils/getQueryClient.mjs";
|
|
14
14
|
import "../../utils/isMobile.mjs";
|
|
15
15
|
import "../../utils/parseDecimal.mjs";
|
|
16
|
+
import "../../client/services/getSession.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
19
|
import "../../client/hooks/useGlobalStore.mjs";
|
|
@@ -20,18 +21,20 @@ import { useInfiniteQueryHelper as w } from "../../client/hooks/useInfiniteQuery
|
|
|
20
21
|
import { useLocaleInfo as A } from "../../client/hooks/useLocaleInfo.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
23
|
import { useWithdrawalRecordsQuery as q } from "../../client/hooks/useWithdrawalRecordsQuery.mjs";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
24
|
+
import { CheckIcon as B } from "../../icons/CheckIcon.mjs";
|
|
25
|
+
import { ChevronDownIcon as H } from "../../icons/ChevronDownIcon.mjs";
|
|
26
|
+
import { ChevronLeftIcon as V } from "../../icons/ChevronLeftIcon.mjs";
|
|
27
|
+
import { ChevronRightIcon as $ } from "../../icons/ChevronRightIcon.mjs";
|
|
28
|
+
import { File02Icon as j } from "../../icons/File02Icon.mjs";
|
|
29
|
+
import { SpinnerIcon as J } from "../../icons/SpinnerIcon.mjs";
|
|
28
30
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
31
|
import "../../ui/Avatar/Avatar.mjs";
|
|
30
|
-
import { Root as
|
|
32
|
+
import { Root as Q, Label as U } from "../../ui/Badge/Badge.mjs";
|
|
31
33
|
import "../../ui/Button/button.recipe.mjs";
|
|
32
34
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
33
35
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
34
36
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
37
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
35
38
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
36
39
|
import "../../ui/Dialog/Dialog.mjs";
|
|
37
40
|
import "../../ui/Drawer/Drawer.mjs";
|
|
@@ -44,18 +47,18 @@ import "../../ui/Popover/Popover.mjs";
|
|
|
44
47
|
import "tailwind-merge";
|
|
45
48
|
import "../../ui/Progress/Progress.mjs";
|
|
46
49
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
47
|
-
import { Root as
|
|
48
|
-
import { Root as
|
|
50
|
+
import { Root as G, Trigger as Z, ValueText as K, Indicator as X, Positioner as Y, Content as _, Item as ee, ItemText as re, ItemIndicator as te } from "../../ui/Select/Select.mjs";
|
|
51
|
+
import { Root as ie, Header as oe, Row as b, Heading as o, Body as le, Cell as l } from "../../ui/Table/Table.mjs";
|
|
49
52
|
import "../../ui/Tabs/Tabs.mjs";
|
|
50
|
-
import { Empty as
|
|
51
|
-
import { TableFilters as
|
|
52
|
-
function
|
|
53
|
-
const [
|
|
53
|
+
import { Empty as ne } from "../Empty.mjs";
|
|
54
|
+
import { TableFilters as ae } from "./TableFilters.mjs";
|
|
55
|
+
function mr() {
|
|
56
|
+
const [i, S] = N(), [s, v] = N(), n = A(), {
|
|
54
57
|
page: x,
|
|
55
58
|
pageSize: C,
|
|
56
59
|
hasNextPage: I,
|
|
57
|
-
hasPrevPage:
|
|
58
|
-
next:
|
|
60
|
+
hasPrevPage: T,
|
|
61
|
+
next: z,
|
|
59
62
|
prev: R,
|
|
60
63
|
rows: c,
|
|
61
64
|
setPageSize: E,
|
|
@@ -69,17 +72,17 @@ function tr() {
|
|
|
69
72
|
equal: s
|
|
70
73
|
}
|
|
71
74
|
},
|
|
72
|
-
...
|
|
75
|
+
...i && {
|
|
73
76
|
dateTimeCreated: {
|
|
74
|
-
...
|
|
77
|
+
...i.start && {
|
|
75
78
|
greaterThanOrEqual: new u(
|
|
76
|
-
|
|
79
|
+
M(i.start),
|
|
77
80
|
n.timezone
|
|
78
81
|
).toISOString()
|
|
79
82
|
},
|
|
80
|
-
...
|
|
83
|
+
...i.end && {
|
|
81
84
|
lesserThanOrEqual: new u(
|
|
82
|
-
|
|
85
|
+
L(i.end),
|
|
83
86
|
n.timezone
|
|
84
87
|
).toISOString()
|
|
85
88
|
}
|
|
@@ -87,15 +90,15 @@ function tr() {
|
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
});
|
|
90
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ t(O, { children: [
|
|
91
94
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
95
|
+
ae,
|
|
93
96
|
{
|
|
94
97
|
enabledFilters: {
|
|
95
98
|
withdrawalStatus: !0
|
|
96
99
|
},
|
|
97
100
|
value: {
|
|
98
|
-
timestamp:
|
|
101
|
+
timestamp: i,
|
|
99
102
|
withdrawalStatus: s
|
|
100
103
|
},
|
|
101
104
|
onChange: (r) => {
|
|
@@ -104,17 +107,17 @@ function tr() {
|
|
|
104
107
|
}
|
|
105
108
|
),
|
|
106
109
|
c.length <= 0 && /* @__PURE__ */ e(
|
|
107
|
-
|
|
110
|
+
ne,
|
|
108
111
|
{
|
|
109
|
-
icon: a ?
|
|
112
|
+
icon: a ? J : j,
|
|
110
113
|
title: a ? "Just a moment" : "No data",
|
|
111
114
|
message: a ? "Fetching latest withdrawal records..." : "No data is currently available.",
|
|
112
115
|
className: "mt-5xl"
|
|
113
116
|
}
|
|
114
117
|
),
|
|
115
|
-
c.length >= 1 && /* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */ e("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: /* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
+
c.length >= 1 && /* @__PURE__ */ t("div", { className: "border-border-primary -ml-4 mt-3xl w-dvw border-y lg:-ml-0 lg:w-full lg:rounded-xl lg:border-x", children: [
|
|
119
|
+
/* @__PURE__ */ e("div", { className: "border-border-primary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-xl rounded-b-none border-b", children: /* @__PURE__ */ t(ie, { className: "border-0", children: [
|
|
120
|
+
/* @__PURE__ */ e(oe, { children: /* @__PURE__ */ t(b, { children: [
|
|
118
121
|
/* @__PURE__ */ e(o, { children: "Withdrawal No." }),
|
|
119
122
|
/* @__PURE__ */ e(o, { children: "Reference" }),
|
|
120
123
|
/* @__PURE__ */ e(o, { children: "Withdrawal Method" }),
|
|
@@ -126,7 +129,7 @@ function tr() {
|
|
|
126
129
|
/* @__PURE__ */ e(o, { children: "Withdrawal Time" }),
|
|
127
130
|
/* @__PURE__ */ e(o, { children: "Status" })
|
|
128
131
|
] }) }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
132
|
+
/* @__PURE__ */ e(le, { children: c.map((r) => /* @__PURE__ */ t(b, { children: [
|
|
130
133
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.withdrawalNumber }),
|
|
131
134
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.reference }),
|
|
132
135
|
/* @__PURE__ */ e(l, { className: "!py-1", children: m(r.type, {
|
|
@@ -146,7 +149,7 @@ function tr() {
|
|
|
146
149
|
minDecimalPlaces: 2
|
|
147
150
|
}) }),
|
|
148
151
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.bank }),
|
|
149
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ t(l, { className: "!py-1", children: [
|
|
150
153
|
/* @__PURE__ */ e("div", { className: "leading-tight", children: f(r.dateTimeCreated, "MM/dd/yyyy", {
|
|
151
154
|
in: g(n.timezone)
|
|
152
155
|
}) }),
|
|
@@ -155,19 +158,19 @@ function tr() {
|
|
|
155
158
|
}) })
|
|
156
159
|
] }),
|
|
157
160
|
/* @__PURE__ */ e(l, { className: "!py-1", children: /* @__PURE__ */ e(
|
|
158
|
-
|
|
161
|
+
Q,
|
|
159
162
|
{
|
|
160
163
|
variant: "subtle",
|
|
161
164
|
colorScheme: r.status === "FAILED" || r.status === "REJECTED" || r.status === "CANCELLED" ? "danger" : r.status === "PENDING" ? "warning" : "success",
|
|
162
|
-
children: /* @__PURE__ */ e(
|
|
165
|
+
children: /* @__PURE__ */ e(U, { children: m(r.status, {
|
|
163
166
|
delimiter: m.delimiters.UNDERSCORE
|
|
164
167
|
}) })
|
|
165
168
|
}
|
|
166
169
|
) })
|
|
167
170
|
] }, r.id)) })
|
|
168
171
|
] }) }),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-lg px-4 py-3", children: [
|
|
173
|
+
/* @__PURE__ */ t("p", { className: "text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0", children: [
|
|
171
174
|
"Page ",
|
|
172
175
|
x,
|
|
173
176
|
" of ",
|
|
@@ -175,25 +178,31 @@ function tr() {
|
|
|
175
178
|
] }),
|
|
176
179
|
/* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
|
|
177
180
|
/* @__PURE__ */ e(
|
|
178
|
-
|
|
181
|
+
G,
|
|
179
182
|
{
|
|
180
183
|
size: "sm",
|
|
181
184
|
value: [C.toString()],
|
|
182
185
|
onValueChange: (r) => {
|
|
183
|
-
const h = parseInt(r.value[0]),
|
|
184
|
-
E(
|
|
186
|
+
const h = parseInt(r.value[0]), k = isNaN(h) ? 10 : h;
|
|
187
|
+
E(k);
|
|
185
188
|
},
|
|
186
189
|
collection: p,
|
|
187
190
|
lazyMount: !0,
|
|
188
191
|
className: "hidden lg:block",
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
positioning: {
|
|
193
|
+
sameWidth: !0
|
|
194
|
+
},
|
|
195
|
+
children: /* @__PURE__ */ t(Z, { children: [
|
|
196
|
+
/* @__PURE__ */ e(K, {}),
|
|
197
|
+
/* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(H, {}) }),
|
|
198
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(_, { children: p.items.map((r) => /* @__PURE__ */ t(ee, { item: r, children: [
|
|
199
|
+
/* @__PURE__ */ e(re, { children: p.stringifyItem(r) }),
|
|
200
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(B, {}) })
|
|
201
|
+
] }, r)) }) }) })
|
|
193
202
|
] })
|
|
194
203
|
}
|
|
195
204
|
),
|
|
196
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ t("div", { className: "contents lg:flex", children: [
|
|
197
206
|
/* @__PURE__ */ e(
|
|
198
207
|
y,
|
|
199
208
|
{
|
|
@@ -201,9 +210,9 @@ function tr() {
|
|
|
201
210
|
variant: "outline",
|
|
202
211
|
colorScheme: "gray",
|
|
203
212
|
className: "order-1 lg:order-none lg:rounded-r-none lg:border-r-0",
|
|
204
|
-
disabled: !
|
|
213
|
+
disabled: !T || a,
|
|
205
214
|
onClick: () => R(),
|
|
206
|
-
children: /* @__PURE__ */ e(
|
|
215
|
+
children: /* @__PURE__ */ e(V, { className: "size-5" })
|
|
207
216
|
}
|
|
208
217
|
),
|
|
209
218
|
/* @__PURE__ */ e(
|
|
@@ -214,8 +223,8 @@ function tr() {
|
|
|
214
223
|
colorScheme: "gray",
|
|
215
224
|
className: "order-3 lg:order-none lg:rounded-l-none",
|
|
216
225
|
disabled: !I || a,
|
|
217
|
-
onClick: () =>
|
|
218
|
-
children: /* @__PURE__ */ e(
|
|
226
|
+
onClick: () => z(),
|
|
227
|
+
children: /* @__PURE__ */ e($, { className: "size-5" })
|
|
219
228
|
}
|
|
220
229
|
)
|
|
221
230
|
] })
|
|
@@ -223,11 +232,11 @@ function tr() {
|
|
|
223
232
|
] })
|
|
224
233
|
] });
|
|
225
234
|
}
|
|
226
|
-
const p =
|
|
235
|
+
const p = W({
|
|
227
236
|
items: w.config.pageSizes,
|
|
228
|
-
itemToValue: (
|
|
229
|
-
itemToString: (
|
|
237
|
+
itemToValue: (i) => i.toString(),
|
|
238
|
+
itemToString: (i) => `${i} items per page`
|
|
230
239
|
});
|
|
231
240
|
export {
|
|
232
|
-
|
|
241
|
+
mr as WithdrawalRecordsTable
|
|
233
242
|
};
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
export * from './Account';
|
|
2
2
|
export * from './Banner';
|
|
3
3
|
export * from './BetRecords';
|
|
4
|
+
export * from './Bonus';
|
|
4
5
|
export * from './Bonuses';
|
|
5
6
|
export * from './DepositWithdrawal';
|
|
6
7
|
export * from './Disclaimer';
|
|
8
|
+
export * from './FavoriteGames';
|
|
7
9
|
export * from './GameLaunch';
|
|
10
|
+
export * from './GameProviders';
|
|
8
11
|
export * from './Games';
|
|
12
|
+
export * from './GamesSearch';
|
|
9
13
|
export * from './JackpotCounter';
|
|
14
|
+
export * from './Jackpots';
|
|
15
|
+
export * from './KYC';
|
|
10
16
|
export * from './Marquee';
|
|
11
17
|
export * from './Messages';
|
|
12
18
|
export * from './PortalProvider';
|
|
13
19
|
export * from './Promo';
|
|
14
20
|
export * from './Promos';
|
|
15
21
|
export * from './Protected';
|
|
22
|
+
export * from './Quests';
|
|
16
23
|
export * from './SignIn';
|
|
17
24
|
export * from './SignUp';
|
|
18
25
|
export * from './TopWins';
|
|
19
26
|
export * from './TournamentCounter';
|
|
27
|
+
export * from './Tournaments';
|
|
20
28
|
export * from './TransactionRecords';
|