@opexa/portal-components 0.0.18 → 0.0.20
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 +227 -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
|
@@ -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 { useDepositRecordsQuery as q } from "../../client/hooks/useDepositRecordsQuery.mjs";
|
|
@@ -20,18 +21,20 @@ import "../../client/hooks/useGlobalStore.mjs";
|
|
|
20
21
|
import { useInfiniteQueryHelper as x } from "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
21
22
|
import { useLocaleInfo as U } from "../../client/hooks/useLocaleInfo.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
24
|
+
import { CheckIcon as V } from "../../icons/CheckIcon.mjs";
|
|
25
|
+
import { ChevronDownIcon as H } from "../../icons/ChevronDownIcon.mjs";
|
|
26
|
+
import { ChevronLeftIcon as $ } from "../../icons/ChevronLeftIcon.mjs";
|
|
27
|
+
import { ChevronRightIcon as j } from "../../icons/ChevronRightIcon.mjs";
|
|
28
|
+
import { File02Icon as B } 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 G } 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 W, 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 v, Heading as n, Body as ne, 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 [i,
|
|
54
|
-
page:
|
|
55
|
-
pageSize:
|
|
53
|
+
import { Empty as le } from "../Empty.mjs";
|
|
54
|
+
import { TableFilters as me } from "./TableFilters.mjs";
|
|
55
|
+
function sr() {
|
|
56
|
+
const [i, C] = N(), [d, S] = N(), o = U(), {
|
|
57
|
+
page: I,
|
|
58
|
+
pageSize: D,
|
|
56
59
|
hasNextPage: T,
|
|
57
|
-
hasPrevPage:
|
|
58
|
-
next:
|
|
60
|
+
hasPrevPage: R,
|
|
61
|
+
next: z,
|
|
59
62
|
prev: E,
|
|
60
63
|
rows: p,
|
|
61
64
|
setPageSize: P,
|
|
@@ -89,7 +92,7 @@ function tr() {
|
|
|
89
92
|
});
|
|
90
93
|
return /* @__PURE__ */ t(f, { children: [
|
|
91
94
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
95
|
+
me,
|
|
93
96
|
{
|
|
94
97
|
enabledFilters: {
|
|
95
98
|
depositStatus: !0
|
|
@@ -99,22 +102,22 @@ function tr() {
|
|
|
99
102
|
depositStatus: d
|
|
100
103
|
},
|
|
101
104
|
onChange: (r) => {
|
|
102
|
-
O(),
|
|
105
|
+
O(), C(r.timestamp), S(r.depositStatus);
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
),
|
|
106
109
|
p.length <= 0 && /* @__PURE__ */ e(
|
|
107
|
-
|
|
110
|
+
le,
|
|
108
111
|
{
|
|
109
|
-
icon: m ?
|
|
112
|
+
icon: m ? J : B,
|
|
110
113
|
title: m ? "Just a moment" : "No data",
|
|
111
114
|
message: m ? "Fetching latest deposit records..." : "No data is currently available.",
|
|
112
115
|
className: "mt-5xl"
|
|
113
116
|
}
|
|
114
117
|
),
|
|
115
118
|
p.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: [
|
|
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__ */ t(
|
|
117
|
-
/* @__PURE__ */ e(
|
|
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(v, { children: [
|
|
118
121
|
/* @__PURE__ */ e(n, { children: "Deposit No." }),
|
|
119
122
|
/* @__PURE__ */ e(n, { children: "Reference" }),
|
|
120
123
|
/* @__PURE__ */ e(n, { children: "Deposit Method" }),
|
|
@@ -125,7 +128,7 @@ function tr() {
|
|
|
125
128
|
/* @__PURE__ */ e(n, { children: "Recieved Time" }),
|
|
126
129
|
/* @__PURE__ */ e(n, { children: "Status" })
|
|
127
130
|
] }) }),
|
|
128
|
-
/* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e(ne, { children: p.map((r) => /* @__PURE__ */ t(v, { children: [
|
|
129
132
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.depositNumber }),
|
|
130
133
|
/* @__PURE__ */ e(l, { className: "!py-1", children: r.reference }),
|
|
131
134
|
/* @__PURE__ */ e(l, { className: "!py-1", children: c(r.type, {
|
|
@@ -160,11 +163,11 @@ function tr() {
|
|
|
160
163
|
}) })
|
|
161
164
|
] }) }),
|
|
162
165
|
/* @__PURE__ */ e(l, { className: "!py-1", children: /* @__PURE__ */ e(
|
|
163
|
-
|
|
166
|
+
Q,
|
|
164
167
|
{
|
|
165
168
|
variant: "subtle",
|
|
166
169
|
colorScheme: r.status === "FAILED" || r.status === "REJECTED" || r.status === "CANCELLED" ? "danger" : r.status === "PENDING" ? "warning" : "success",
|
|
167
|
-
children: /* @__PURE__ */ e(
|
|
170
|
+
children: /* @__PURE__ */ e(G, { children: c(r.status, {
|
|
168
171
|
delimiter: c.delimiters.UNDERSCORE
|
|
169
172
|
}) })
|
|
170
173
|
}
|
|
@@ -174,27 +177,33 @@ function tr() {
|
|
|
174
177
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-lg px-4 py-3", children: [
|
|
175
178
|
/* @__PURE__ */ t("p", { className: "text-text-secondary-700 order-2 grow text-center text-sm font-medium lg:order-none lg:grow-0", children: [
|
|
176
179
|
"Page ",
|
|
177
|
-
|
|
180
|
+
I,
|
|
178
181
|
" of ",
|
|
179
182
|
w
|
|
180
183
|
] }),
|
|
181
184
|
/* @__PURE__ */ e("div", { className: "hidden grow lg:block" }),
|
|
182
185
|
/* @__PURE__ */ e(
|
|
183
|
-
|
|
186
|
+
W,
|
|
184
187
|
{
|
|
185
188
|
size: "sm",
|
|
186
|
-
value: [
|
|
189
|
+
value: [D.toString()],
|
|
187
190
|
onValueChange: (r) => {
|
|
188
|
-
const
|
|
191
|
+
const g = parseInt(r.value[0]), L = isNaN(g) ? 10 : g;
|
|
189
192
|
P(L);
|
|
190
193
|
},
|
|
191
|
-
collection:
|
|
194
|
+
collection: u,
|
|
192
195
|
lazyMount: !0,
|
|
193
196
|
className: "hidden lg:block",
|
|
197
|
+
positioning: {
|
|
198
|
+
sameWidth: !0
|
|
199
|
+
},
|
|
194
200
|
children: /* @__PURE__ */ t(Z, { children: [
|
|
195
201
|
/* @__PURE__ */ e(K, {}),
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
202
|
+
/* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(H, {}) }),
|
|
203
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(_, { children: u.items.map((r) => /* @__PURE__ */ t(ee, { item: r, children: [
|
|
204
|
+
/* @__PURE__ */ e(re, { children: u.stringifyItem(r) }),
|
|
205
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(V, {}) })
|
|
206
|
+
] }, r)) }) }) })
|
|
198
207
|
] })
|
|
199
208
|
}
|
|
200
209
|
),
|
|
@@ -206,9 +215,9 @@ function tr() {
|
|
|
206
215
|
variant: "outline",
|
|
207
216
|
colorScheme: "gray",
|
|
208
217
|
className: "order-1 lg:order-none lg:rounded-r-none lg:border-r-0",
|
|
209
|
-
disabled: !
|
|
218
|
+
disabled: !R || m,
|
|
210
219
|
onClick: () => E(),
|
|
211
|
-
children: /* @__PURE__ */ e(
|
|
220
|
+
children: /* @__PURE__ */ e($, { className: "size-5" })
|
|
212
221
|
}
|
|
213
222
|
),
|
|
214
223
|
/* @__PURE__ */ e(
|
|
@@ -219,8 +228,8 @@ function tr() {
|
|
|
219
228
|
colorScheme: "gray",
|
|
220
229
|
className: "order-3 lg:order-none lg:rounded-l-none",
|
|
221
230
|
disabled: !T || m,
|
|
222
|
-
onClick: () =>
|
|
223
|
-
children: /* @__PURE__ */ e(
|
|
231
|
+
onClick: () => z(),
|
|
232
|
+
children: /* @__PURE__ */ e(j, { className: "size-5" })
|
|
224
233
|
}
|
|
225
234
|
)
|
|
226
235
|
] })
|
|
@@ -228,11 +237,11 @@ function tr() {
|
|
|
228
237
|
] })
|
|
229
238
|
] });
|
|
230
239
|
}
|
|
231
|
-
const
|
|
240
|
+
const u = F({
|
|
232
241
|
items: x.config.pageSizes,
|
|
233
242
|
itemToValue: (i) => i.toString(),
|
|
234
243
|
itemToString: (i) => `${i} items per page`
|
|
235
244
|
});
|
|
236
245
|
export {
|
|
237
|
-
|
|
246
|
+
sr as DepositRecordsTable
|
|
238
247
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@ark-ui/react"),_=require("date-fns"),ae=require("react"),h=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const r=require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const m=require("../../client/hooks/useControllableState.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const x=require("../../icons/CheckIcon.js"),j=require("../../icons/ChevronDownIcon.js"),re=require("../../icons/ChevronLeftIcon.js"),ne=require("../../icons/ChevronRightIcon.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");const n=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.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");const s=require("../../ui/SegmentGroup/SegmentGroup.js"),l=require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const se=h.z.enum(["all","today","custom"]).catch("all"),J=["ACCEPTED","APPROVED","CANCELLED","CONFIRMED","FAILED","PENDING","REJECTED"],Y=["ACCEPTED","APPROVED","CANCELLED","CONFIRMED","FAILED","PENDING","REJECTED"],Z=["DEPOSIT","WITHDRAWAL","BET"],K=Intl.DateTimeFormat().resolvedOptions().timeZone;function oe(i){var P,b,z,V,p,N,y,O,A,L,F,G,U,k,M,W,H;const S=c.createListCollection({items:i.gameTypeOptions??[],itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),w=c.createListCollection({items:i.gameProviderOptions??[],itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),E=c.createListCollection({items:J,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),q=c.createListCollection({items:Y,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),D=c.createListCollection({items:Z,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),[Q,R]=ae.useState("all"),d=t=>{var o;const a={timestamp:u,gameType:g,gameProvider:T,depositStatus:I,withdrawalStatus:v};(o=i.onChange)==null||o.call(i,{...a,...t})},[u,C]=m.useControllableState({value:(P=i.value)==null?void 0:P.timestamp,defaultValue:((b=i.defaultValue)==null?void 0:b.timestamp)??null,onChange(t){d({timestamp:t})}}),[g,X]=m.useControllableState({value:(z=i.value)==null?void 0:z.gameType,defaultValue:((V=i.defaultValue)==null?void 0:V.gameType)??null,onChange(t){d({gameType:t})}}),[T,$]=m.useControllableState({value:(p=i.value)==null?void 0:p.gameProvider,defaultValue:((N=i.defaultValue)==null?void 0:N.gameProvider)??null,onChange(t){d({gameProvider:t})}}),[I,ee]=m.useControllableState({value:(y=i.value)==null?void 0:y.depositStatus,defaultValue:((O=i.defaultValue)==null?void 0:O.depositStatus)??null,onChange(t){d({depositStatus:t})}}),[v,te]=m.useControllableState({value:(A=i.value)==null?void 0:A.withdrawalStatus,defaultValue:((L=i.defaultValue)==null?void 0:L.withdrawalStatus)??null,onChange(t){d({withdrawalStatus:t})}}),[f,le]=m.useControllableState({value:(F=i.value)==null?void 0:F.transactionType,defaultValue:((G=i.defaultValue)==null?void 0:G.transactionType)??null,onChange(t){d({transactionType:t})}});return e.jsxs("div",{className:"flex flex-col gap-lg lg:flex-row lg:items-center",children:[e.jsxs(n.Root,{lazyMount:!0,unmountOnExit:!0,value:[u==null?void 0:u.start,u==null?void 0:u.end].filter(Boolean).map(t=>c.parseDate(t)),onValueChange:t=>{var a,o;C({start:(a=t.value.at(0))==null?void 0:a.toDate(K),end:(o=t.value.at(1))==null?void 0:o.toDate(K)})},onOpenChange:t=>{t.open||u||R("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(s.Root,{value:Q,onValueChange:t=>{const a=se.parse(t.value);if(a==="today"){const o=new Date;C({start:_.startOfDay(o),end:_.endOfDay(o)})}else C(null);R(a)},className:"w-full lg:w-fit",children:[e.jsxs(s.Item,{value:"all",className:"w-full lg:w-auto",children:[e.jsx(s.ItemText,{children:"All"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]}),e.jsxs(s.Item,{value:"today",className:"w-full lg:w-auto",children:[e.jsx(s.ItemText,{children:"Today"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]}),e.jsx(n.Context,{children:t=>e.jsx(s.Item,{value:"custom",onClick:()=>t.setOpen(!0),className:"w-full lg:w-auto",children:e.jsxs(n.Control,{children:[e.jsx(s.ItemText,{children:"Custom"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]})})}),e.jsx(s.Indicator,{})]}),e.jsx(c.Portal,{children:e.jsx(n.Positioner,{children:e.jsx(n.Content,{children:e.jsx(n.View,{view:"day",children:e.jsx(n.Context,{children:t=>e.jsxs(e.Fragment,{children:[e.jsxs(n.ViewControl,{children:[e.jsx(n.PrevTrigger,{children:e.jsx(re.ChevronLeftIcon,{})}),e.jsx(n.ViewTrigger,{children:e.jsx(n.RangeText,{})}),e.jsx(n.NextTrigger,{children:e.jsx(ne.ChevronRightIcon,{})})]}),e.jsxs(n.Table,{children:[e.jsx(n.TableHead,{children:e.jsx(n.TableRow,{children:t.weekDays.map((a,o)=>e.jsx(n.TableHeader,{children:a.short.substring(0,2)},o))})}),e.jsx(n.TableBody,{children:t.weeks.map((a,o)=>e.jsx(n.TableRow,{children:a.map((B,ie)=>e.jsx(n.TableCell,{value:B,children:e.jsx(n.TableCellTrigger,{children:B.day})},ie))},o))})]})]})})})})})})]}),e.jsx("div",{className:"hidden grow lg:block"}),((U=i.enabledFilters)==null?void 0:U.gameType)&&e.jsxs(l.Root,{collection:S,value:g?[g]:[],onValueChange:t=>{const a=h.z.enum(i.gameTypeOptions??[]).safeParse(t.value.at(0)).data;X(a??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Game Type"}),e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:S.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((k=i.enabledFilters)==null?void 0:k.gameProvider)&&e.jsxs(l.Root,{collection:w,value:T?[T]:[],onValueChange:t=>{const a=h.z.enum(i.gameProviderOptions??[]).safeParse(t.value.at(0)).data;$(a??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Game Vendor"}),e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:w.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((M=i.enabledFilters)==null?void 0:M.depositStatus)&&e.jsxs(l.Root,{collection:E,value:I?[I]:[],onValueChange:t=>{const a=h.z.enum(J).safeParse(t.value.at(0)).data;ee(a??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Status"}),e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:q.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((W=i.enabledFilters)==null?void 0:W.withdrawalStatus)&&e.jsxs(l.Root,{collection:q,value:v?[v]:[],onValueChange:t=>{const a=h.z.enum(Y).safeParse(t.value.at(0)).data;te(a??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Status"}),e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:E.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((H=i.enabledFilters)==null?void 0:H.transactionType)&&e.jsxs(l.Root,{collection:D,value:f?[f]:[],onValueChange:t=>{const a=h.z.enum(Z).safeParse(t.value.at(0)).data;le(a??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Type"}),e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:D.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]})]})}exports.TableFilters=oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@ark-ui/react"),_=require("date-fns"),ae=require("react"),m=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");const r=require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");const h=require("../../client/hooks/useControllableState.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const x=require("../../icons/CheckIcon.js"),j=require("../../icons/ChevronDownIcon.js"),re=require("../../icons/ChevronLeftIcon.js"),ne=require("../../icons/ChevronRightIcon.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");const n=require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.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");const s=require("../../ui/SegmentGroup/SegmentGroup.js"),l=require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const se=m.z.enum(["all","today","custom"]).catch("all"),J=["ACCEPTED","APPROVED","CANCELLED","CONFIRMED","FAILED","PENDING","REJECTED"],Y=["ACCEPTED","APPROVED","CANCELLED","CONFIRMED","FAILED","PENDING","REJECTED"],Z=["DEPOSIT","WITHDRAWAL","BET"],K=Intl.DateTimeFormat().resolvedOptions().timeZone;function oe(a){var R,f,b,z,V,N,y,O,F,A,k,L,G,U,M,W,H;const S=c.createListCollection({items:a.gameTypeOptions??[],itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),w=c.createListCollection({items:a.gameProviderOptions??[],itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),E=c.createListCollection({items:J,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),p=c.createListCollection({items:Y,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),q=c.createListCollection({items:Z,itemToValue:t=>t,itemToString:t=>r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),[Q,D]=ae.useState("all"),d=t=>{var o;const i={timestamp:u,gameType:g,gameProvider:T,depositStatus:I,withdrawalStatus:v};(o=a.onChange)==null||o.call(a,{...i,...t})},[u,C]=h.useControllableState({value:(R=a.value)==null?void 0:R.timestamp,defaultValue:((f=a.defaultValue)==null?void 0:f.timestamp)??null,onChange(t){d({timestamp:t})}}),[g,X]=h.useControllableState({value:(b=a.value)==null?void 0:b.gameType,defaultValue:((z=a.defaultValue)==null?void 0:z.gameType)??null,onChange(t){d({gameType:t})}}),[T,$]=h.useControllableState({value:(V=a.value)==null?void 0:V.gameProvider,defaultValue:((N=a.defaultValue)==null?void 0:N.gameProvider)??null,onChange(t){d({gameProvider:t})}}),[I,ee]=h.useControllableState({value:(y=a.value)==null?void 0:y.depositStatus,defaultValue:((O=a.defaultValue)==null?void 0:O.depositStatus)??null,onChange(t){d({depositStatus:t})}}),[v,te]=h.useControllableState({value:(F=a.value)==null?void 0:F.withdrawalStatus,defaultValue:((A=a.defaultValue)==null?void 0:A.withdrawalStatus)??null,onChange(t){d({withdrawalStatus:t})}}),[P,le]=h.useControllableState({value:(k=a.value)==null?void 0:k.transactionType,defaultValue:((L=a.defaultValue)==null?void 0:L.transactionType)??null,onChange(t){d({transactionType:t})}});return e.jsxs("div",{className:"flex flex-col gap-lg lg:flex-row lg:items-center",children:[e.jsxs(n.Root,{lazyMount:!0,unmountOnExit:!0,value:[u==null?void 0:u.start,u==null?void 0:u.end].filter(Boolean).map(t=>c.parseDate(t)),onValueChange:t=>{var i,o;C({start:(i=t.value.at(0))==null?void 0:i.toDate(K),end:(o=t.value.at(1))==null?void 0:o.toDate(K)})},onOpenChange:t=>{t.open||u||D("all")},selectionMode:"range",closeOnSelect:!1,positioning:{gutter:20,placement:"bottom"},children:[e.jsxs(s.Root,{value:Q,onValueChange:t=>{const i=se.parse(t.value);if(i==="today"){const o=new Date;C({start:_.startOfDay(o),end:_.endOfDay(o)})}else C(null);D(i)},className:"w-full lg:w-fit",children:[e.jsxs(s.Item,{value:"all",className:"w-full lg:w-auto",children:[e.jsx(s.ItemText,{children:"All"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]}),e.jsxs(s.Item,{value:"today",className:"w-full lg:w-auto",children:[e.jsx(s.ItemText,{children:"Today"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]}),e.jsx(n.Context,{children:t=>e.jsx(s.Item,{value:"custom",onClick:()=>t.setOpen(!0),className:"w-full lg:w-auto",children:e.jsxs(n.Control,{children:[e.jsx(s.ItemText,{children:"Custom"}),e.jsx(s.ItemControl,{}),e.jsx(s.ItemHiddenInput,{})]})})}),e.jsx(s.Indicator,{})]}),e.jsx(c.Portal,{children:e.jsx(n.Positioner,{children:e.jsx(n.Content,{children:e.jsx(n.View,{view:"day",children:e.jsx(n.Context,{children:t=>e.jsxs(e.Fragment,{children:[e.jsxs(n.ViewControl,{children:[e.jsx(n.PrevTrigger,{children:e.jsx(re.ChevronLeftIcon,{})}),e.jsx(n.ViewTrigger,{children:e.jsx(n.RangeText,{})}),e.jsx(n.NextTrigger,{children:e.jsx(ne.ChevronRightIcon,{})})]}),e.jsxs(n.Table,{children:[e.jsx(n.TableHead,{children:e.jsx(n.TableRow,{children:t.weekDays.map((i,o)=>e.jsx(n.TableHeader,{children:i.short.substring(0,2)},o))})}),e.jsx(n.TableBody,{children:t.weeks.map((i,o)=>e.jsx(n.TableRow,{children:i.map((B,ie)=>e.jsx(n.TableCell,{value:B,children:e.jsx(n.TableCellTrigger,{children:B.day})},ie))},o))})]})]})})})})})})]}),e.jsx("div",{className:"hidden grow lg:block"}),((G=a.enabledFilters)==null?void 0:G.gameType)&&e.jsxs(l.Root,{collection:S,value:g?[g]:[],onValueChange:t=>{const i=m.z.enum(a.gameTypeOptions??[]).safeParse(t.value.at(0)).data;X(i??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Game Type"}),e.jsx(l.Context,{children:t=>e.jsx(e.Fragment,{children:t.value.length?e.jsx(l.ClearTrigger,{asChild:!0,children:e.jsx("span",{onClick:i=>{i.stopPropagation()},children:"Clear"})}):e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:S.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((U=a.enabledFilters)==null?void 0:U.gameProvider)&&e.jsxs(l.Root,{collection:w,value:T?[T]:[],onValueChange:t=>{const i=m.z.enum(a.gameProviderOptions??[]).safeParse(t.value.at(0)).data;$(i??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Game Vendor"}),e.jsx(l.Context,{children:t=>e.jsx(e.Fragment,{children:t.value.length?e.jsx(l.ClearTrigger,{asChild:!0,children:e.jsx("span",{onClick:i=>{i.stopPropagation()},children:"Clear"})}):e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:w.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((M=a.enabledFilters)==null?void 0:M.depositStatus)&&e.jsxs(l.Root,{collection:E,value:I?[I]:[],onValueChange:t=>{const i=m.z.enum(J).safeParse(t.value.at(0)).data;ee(i??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Status"}),e.jsx(l.Context,{children:t=>e.jsx(e.Fragment,{children:t.value.length?e.jsx(l.ClearTrigger,{asChild:!0,children:e.jsx("span",{onClick:i=>{i.stopPropagation()},children:"Clear"})}):e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:p.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((W=a.enabledFilters)==null?void 0:W.withdrawalStatus)&&e.jsxs(l.Root,{collection:p,value:v?[v]:[],onValueChange:t=>{const i=m.z.enum(Y).safeParse(t.value.at(0)).data;te(i??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Status"}),e.jsx(l.Context,{children:t=>e.jsx(e.Fragment,{children:t.value.length?e.jsx(l.ClearTrigger,{asChild:!0,children:e.jsx("span",{onClick:i=>{i.stopPropagation()},children:"Clear"})}):e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:E.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]}),((H=a.enabledFilters)==null?void 0:H.transactionType)&&e.jsxs(l.Root,{collection:q,value:P?[P]:[],onValueChange:t=>{const i=m.z.enum(Z).safeParse(t.value.at(0)).data;le(i??null)},lazyMount:!0,deselectable:!0,positioning:{sameWidth:!0},children:[e.jsxs(l.Trigger,{className:"w-full lg:w-[14rem]",children:[e.jsx(l.ValueText,{placeholder:"Type"}),e.jsx(l.Context,{children:t=>e.jsx(e.Fragment,{children:t.value.length?e.jsx(l.ClearTrigger,{asChild:!0,children:e.jsx("span",{onClick:i=>{i.stopPropagation()},children:"Clear"})}):e.jsx(l.Indicator,{asChild:!0,children:e.jsx(j.ChevronDownIcon,{})})})})]}),e.jsx(c.Portal,{children:e.jsx(l.Positioner,{children:e.jsx(l.Content,{children:e.jsx(l.ItemGroup,{children:q.items.map(t=>e.jsxs(l.Item,{item:t,children:[e.jsx(l.ItemText,{children:r.capitalize(t,{delimiter:r.capitalize.delimiters.UNDERSCORE})}),e.jsx(l.ItemIndicator,{asChild:!0,children:e.jsx(x.CheckIcon,{})})]},t))})})})})]})]})}exports.TableFilters=oe;
|