@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
|
@@ -1,108 +1,219 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Portal as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useShallow as
|
|
7
|
-
import { useAccountQuery as
|
|
2
|
+
import { jsxs as a, jsx as e, Fragment as C } from "react/jsx-runtime";
|
|
3
|
+
import { Portal as I } from "@ark-ui/react";
|
|
4
|
+
import f from "next/image";
|
|
5
|
+
import d from "next/link";
|
|
6
|
+
import { useShallow as P } from "zustand/shallow";
|
|
7
|
+
import { useAccountQuery as k } from "../../client/hooks/useAccountQuery.mjs";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "../../utils/capitalize.mjs";
|
|
10
|
-
import { formatNumber as
|
|
10
|
+
import { formatNumber as p } from "../../utils/formatNumber.mjs";
|
|
11
11
|
import "../../constants/index.mjs";
|
|
12
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
13
|
import "../../utils/getQueryClient.mjs";
|
|
14
14
|
import "../../utils/isMobile.mjs";
|
|
15
|
-
import "../../utils/parseDecimal.mjs";
|
|
15
|
+
import { parseDecimal as b } from "../../utils/parseDecimal.mjs";
|
|
16
|
+
import "../../client/services/getSession.mjs";
|
|
16
17
|
import "@opexa/portal-sdk-core";
|
|
17
18
|
import "tiny-invariant";
|
|
18
19
|
import "react";
|
|
19
20
|
import "lodash-es";
|
|
20
21
|
import "@opexa/portal-sdk-core/object-id";
|
|
21
|
-
import { useGlobalStore as
|
|
22
|
+
import { useGlobalStore as w } from "../../client/hooks/useGlobalStore.mjs";
|
|
22
23
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
23
|
-
import { useLocaleInfo as
|
|
24
|
+
import { useLocaleInfo as L } from "../../client/hooks/useLocaleInfo.mjs";
|
|
24
25
|
import "usehooks-ts";
|
|
25
|
-
import { useSignOutMutation as
|
|
26
|
-
import { useUnreadMessagesCountQuery as
|
|
27
|
-
import { useWalletQuery as
|
|
26
|
+
import { useSignOutMutation as R } from "../../client/hooks/useSignOutMutation.mjs";
|
|
27
|
+
import { useUnreadMessagesCountQuery as B } from "../../client/hooks/useUnreadMessagesCountQuery.mjs";
|
|
28
|
+
import { useWalletQuery as S } from "../../client/hooks/useWalletQuery.mjs";
|
|
28
29
|
import { AlertCircleIcon as W } from "../../icons/AlertCircleIcon.mjs";
|
|
29
|
-
import { ChevronRightIcon as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
30
|
+
import { ChevronRightIcon as l } from "../../icons/ChevronRightIcon.mjs";
|
|
31
|
+
import { CoinsStacked02Icon as z } from "../../icons/CoinsStacked02Icon.mjs";
|
|
32
|
+
import { CoinsSwap02Icon as T } from "../../icons/CoinsSwap02Icon.mjs";
|
|
33
|
+
import { Gift01Icon as D } from "../../icons/Gift01Icon.mjs";
|
|
34
|
+
import { Logout01Icon as v } from "../../icons/Logout01Icon.mjs";
|
|
35
|
+
import { Settings02Icon as Q } from "../../icons/Settings02Icon.mjs";
|
|
36
|
+
import { XIcon as A } from "../../icons/XIcon.mjs";
|
|
37
|
+
import h from "../../images/placeholder-avatar.png.mjs";
|
|
33
38
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
34
39
|
import "../../ui/Avatar/Avatar.mjs";
|
|
35
|
-
import { Root as
|
|
36
|
-
import { Button as
|
|
40
|
+
import { Root as M, Indicator as U, Label as $ } from "../../ui/Badge/Badge.mjs";
|
|
41
|
+
import { Button as g } from "../../ui/Button/Button.mjs";
|
|
37
42
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
38
43
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
39
44
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
45
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
40
46
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
41
47
|
import "../../ui/Dialog/Dialog.mjs";
|
|
42
|
-
import { Root as
|
|
48
|
+
import { Root as E, Trigger as j, Positioner as G, Content as F } from "../../ui/Drawer/Drawer.mjs";
|
|
43
49
|
import "../../ui/Field/Field.mjs";
|
|
44
|
-
import { IconButton as
|
|
50
|
+
import { IconButton as x } from "../../ui/IconButton/IconButton.mjs";
|
|
45
51
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
46
52
|
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
47
53
|
import "../../ui/PinInput/PinInput.mjs";
|
|
48
|
-
import { Root as
|
|
54
|
+
import { Root as H, Trigger as V, Positioner as X, Content as q } from "../../ui/Popover/Popover.mjs";
|
|
49
55
|
import "tailwind-merge";
|
|
50
56
|
import "../../ui/Progress/Progress.mjs";
|
|
51
57
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
52
58
|
import "../../ui/Select/Select.mjs";
|
|
53
59
|
import "../../ui/Table/Table.mjs";
|
|
54
60
|
import "../../ui/Tabs/Tabs.mjs";
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
import { accountRecipe as J } from "./account.recipe.mjs";
|
|
62
|
+
const r = J();
|
|
63
|
+
function rt(i) {
|
|
64
|
+
const t = w(
|
|
65
|
+
P((n) => ({
|
|
66
|
+
profile: n.profile,
|
|
67
|
+
mobileProfile: n.mobileProfile,
|
|
68
|
+
messages: n.messages
|
|
60
69
|
}))
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
), o = R(), m = B(
|
|
71
|
+
{},
|
|
72
|
+
{ refetchInterval: 5e3 }
|
|
73
|
+
), s = /* @__PURE__ */ a("nav", { className: r.nav(), children: [
|
|
74
|
+
/* @__PURE__ */ a("ul", { children: [
|
|
75
|
+
/* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
76
|
+
"button",
|
|
77
|
+
{
|
|
78
|
+
type: "button",
|
|
79
|
+
className: r.navItemLink(),
|
|
80
|
+
onClick: () => {
|
|
81
|
+
t.profile.setOpen(!1), t.mobileProfile.setOpen(!1), t.messages.setOpen(!0);
|
|
82
|
+
},
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ e(v, { className: r.navItemIcon() }),
|
|
85
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Notifications" }),
|
|
86
|
+
/* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "warning", children: m.data ?? 0 }),
|
|
87
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
) }),
|
|
91
|
+
/* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
92
|
+
d,
|
|
93
|
+
{
|
|
94
|
+
href: i.rewardsUrl ?? "/rewards",
|
|
95
|
+
className: r.navItemLink(),
|
|
96
|
+
onClick: () => {
|
|
97
|
+
t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
|
|
98
|
+
},
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ e(D, { className: r.navItemIcon() }),
|
|
101
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Rewards" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "warning", children: "0" }),
|
|
103
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
109
|
+
"button",
|
|
110
|
+
{
|
|
111
|
+
type: "button",
|
|
112
|
+
className: r.navItemLink(),
|
|
113
|
+
onClick: () => {
|
|
114
|
+
t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ e(Q, { className: r.navItemIcon() }),
|
|
118
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Settings" }),
|
|
119
|
+
/* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "error", children: /* @__PURE__ */ e(W, {}) }),
|
|
120
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
) }) }),
|
|
124
|
+
/* @__PURE__ */ a("ul", { children: [
|
|
125
|
+
/* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
126
|
+
d,
|
|
127
|
+
{
|
|
128
|
+
href: i.betRecordsUrl ?? "/bet-records",
|
|
129
|
+
className: r.navItemLink(),
|
|
130
|
+
onClick: () => {
|
|
131
|
+
t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
|
|
132
|
+
},
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ e(z, { className: r.navItemIcon() }),
|
|
135
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Bet Records" }),
|
|
136
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
) }),
|
|
140
|
+
/* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
141
|
+
d,
|
|
142
|
+
{
|
|
143
|
+
href: i.transactionsUrl ?? "/transactions",
|
|
144
|
+
className: r.navItemLink(),
|
|
145
|
+
onClick: () => {
|
|
146
|
+
t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
|
|
147
|
+
},
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ e(T, { className: r.navItemIcon() }),
|
|
150
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Transactions" }),
|
|
151
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
) })
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
|
|
157
|
+
"button",
|
|
158
|
+
{
|
|
159
|
+
type: "button",
|
|
160
|
+
className: r.navItemLink(),
|
|
161
|
+
disabled: o.isPending,
|
|
162
|
+
onClick: () => {
|
|
163
|
+
o.mutate(), t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
|
|
164
|
+
},
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ e(v, { className: r.navItemIcon() }),
|
|
167
|
+
/* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Log Out" }),
|
|
168
|
+
/* @__PURE__ */ e(l, { className: r.navItemIndicator() })
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
) }) })
|
|
172
|
+
] });
|
|
173
|
+
return /* @__PURE__ */ a(C, { children: [
|
|
174
|
+
/* @__PURE__ */ a(
|
|
175
|
+
E,
|
|
65
176
|
{
|
|
66
177
|
open: t.mobileProfile.open,
|
|
67
|
-
onOpenChange: (
|
|
68
|
-
t.mobileProfile.setOpen(
|
|
178
|
+
onOpenChange: (n) => {
|
|
179
|
+
t.mobileProfile.setOpen(n.open);
|
|
69
180
|
},
|
|
70
181
|
lazyMount: !0,
|
|
71
182
|
unmountOnExit: !0,
|
|
72
183
|
children: [
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
|
|
184
|
+
/* @__PURE__ */ e(j, { asChild: !0, className: "lg:hidden", children: i.children ?? /* @__PURE__ */ e(x, { size: "sm", colorScheme: "gray", children: t.mobileProfile.open ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ e(
|
|
185
|
+
f,
|
|
75
186
|
{
|
|
76
|
-
src:
|
|
187
|
+
src: h,
|
|
77
188
|
alt: "",
|
|
78
189
|
width: 100,
|
|
79
190
|
height: 100,
|
|
80
191
|
className: "size-10"
|
|
81
192
|
}
|
|
82
193
|
) }) }),
|
|
83
|
-
/* @__PURE__ */ e(
|
|
84
|
-
|
|
194
|
+
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(G, { children: /* @__PURE__ */ a(
|
|
195
|
+
F,
|
|
85
196
|
{
|
|
86
197
|
className: "top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6",
|
|
87
198
|
style: {
|
|
88
|
-
"--top":
|
|
199
|
+
"--top": i.offsetTop ?? "0px"
|
|
89
200
|
},
|
|
90
201
|
children: [
|
|
91
|
-
/* @__PURE__ */ e(
|
|
92
|
-
/* @__PURE__ */ e(
|
|
93
|
-
|
|
202
|
+
/* @__PURE__ */ e(y, {}),
|
|
203
|
+
/* @__PURE__ */ e(O, {}),
|
|
204
|
+
s
|
|
94
205
|
]
|
|
95
206
|
}
|
|
96
207
|
) }) })
|
|
97
208
|
]
|
|
98
209
|
}
|
|
99
210
|
),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
211
|
+
/* @__PURE__ */ a(
|
|
212
|
+
H,
|
|
102
213
|
{
|
|
103
214
|
open: t.profile.open,
|
|
104
|
-
onOpenChange: (
|
|
105
|
-
t.profile.setOpen(
|
|
215
|
+
onOpenChange: (n) => {
|
|
216
|
+
t.profile.setOpen(n.open);
|
|
106
217
|
},
|
|
107
218
|
lazyMount: !0,
|
|
108
219
|
unmountOnExit: !0,
|
|
@@ -111,162 +222,107 @@ function $e(l) {
|
|
|
111
222
|
strategy: "fixed"
|
|
112
223
|
},
|
|
113
224
|
children: [
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
|
|
225
|
+
/* @__PURE__ */ e(V, { className: "hidden lg:flex", asChild: !0, children: i.children ?? /* @__PURE__ */ e(x, { size: "sm", colorScheme: "gray", children: /* @__PURE__ */ e(
|
|
226
|
+
f,
|
|
116
227
|
{
|
|
117
|
-
src:
|
|
228
|
+
src: h,
|
|
118
229
|
alt: "",
|
|
119
230
|
width: 48,
|
|
120
231
|
height: 48,
|
|
121
232
|
className: "size-10"
|
|
122
233
|
}
|
|
123
234
|
) }) }),
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
-
|
|
235
|
+
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(q, { className: "border-border-primary bg-bg-primary z-popover w-[23.438rem] rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
|
|
236
|
+
/* @__PURE__ */ e(y, {}),
|
|
237
|
+
/* @__PURE__ */ e(O, {}),
|
|
238
|
+
s
|
|
128
239
|
] }) }) })
|
|
129
240
|
]
|
|
130
241
|
}
|
|
131
242
|
)
|
|
132
243
|
] });
|
|
133
244
|
}
|
|
134
|
-
function
|
|
135
|
-
const t =
|
|
136
|
-
return /* @__PURE__ */
|
|
245
|
+
function y() {
|
|
246
|
+
const t = k().data;
|
|
247
|
+
return /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-lg", children: [
|
|
137
248
|
/* @__PURE__ */ e(
|
|
138
|
-
|
|
249
|
+
f,
|
|
139
250
|
{
|
|
140
|
-
src:
|
|
251
|
+
src: h,
|
|
141
252
|
alt: "",
|
|
142
253
|
width: 48,
|
|
143
254
|
height: 48,
|
|
144
255
|
className: "size-12"
|
|
145
256
|
}
|
|
146
257
|
),
|
|
147
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ a("div", { className: "grow", children: [
|
|
148
259
|
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: t == null ? void 0 : t.name }),
|
|
149
260
|
/* @__PURE__ */ e("p", { className: "text-text-tertiary-600 leading-tight", children: (t == null ? void 0 : t.nickName) ?? (t == null ? void 0 : t.emailAddress) ?? (t == null ? void 0 : t.realName) })
|
|
150
261
|
] }),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
262
|
+
/* @__PURE__ */ a(
|
|
263
|
+
M,
|
|
153
264
|
{
|
|
154
265
|
colorScheme: t != null && t.verified ? "success" : "danger",
|
|
155
266
|
className: "self-start",
|
|
156
267
|
children: [
|
|
157
|
-
/* @__PURE__ */ e(
|
|
158
|
-
/* @__PURE__ */ e(
|
|
268
|
+
/* @__PURE__ */ e(U, {}),
|
|
269
|
+
/* @__PURE__ */ e($, { children: t != null && t.verified ? "Verified" : "Unverified" })
|
|
159
270
|
]
|
|
160
271
|
}
|
|
161
272
|
)
|
|
162
273
|
] });
|
|
163
274
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
profile: n.profile,
|
|
168
|
-
mobileProfile: n.mobileProfile
|
|
169
|
-
}))
|
|
170
|
-
), s = Array.isArray(l.links[0]) ? l.links : [l.links], a = T(
|
|
171
|
-
{},
|
|
172
|
-
{
|
|
173
|
-
enabled: l.links.flat().some((n) => n.badge === "UNREAD_NOTIFICATIONS_COUNT"),
|
|
174
|
-
refetchInterval: 5e3
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
return /* @__PURE__ */ i("nav", { className: "mt-xl space-y-xl", children: [
|
|
178
|
-
s.map((n, O) => /* @__PURE__ */ e("ul", { children: n.map((o, w) => /* @__PURE__ */ e(
|
|
179
|
-
"li",
|
|
180
|
-
{
|
|
181
|
-
className: "bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl",
|
|
182
|
-
children: /* @__PURE__ */ i(
|
|
183
|
-
v,
|
|
184
|
-
{
|
|
185
|
-
href: o.href,
|
|
186
|
-
onClick: () => {
|
|
187
|
-
r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
188
|
-
},
|
|
189
|
-
className: "flex w-full items-center px-xl py-xl text-left text-sm font-semibold",
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ e(o.icon, { className: "text-text-quarterary-500 size-5" }),
|
|
192
|
-
/* @__PURE__ */ e("span", { className: "ml-lg grow", children: o.label }),
|
|
193
|
-
o.badge === "UNREAD_NOTIFICATIONS_COUNT" && /* @__PURE__ */ e("span", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 mr-md flex h-5.5 min-w-6 items-center justify-center rounded-full border text-xs font-medium leading-tight", children: d(a.data, {
|
|
194
|
-
compact: !0
|
|
195
|
-
}) }),
|
|
196
|
-
o.badge === "REWARDS_COUNT" && /* @__PURE__ */ e("span", { className: "border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 mr-md flex h-5.5 min-w-6 items-center justify-center rounded-full border text-xs font-medium leading-tight", children: d(a.data, {
|
|
197
|
-
compact: !0
|
|
198
|
-
}) }),
|
|
199
|
-
o.badge === "WARNING" && /* @__PURE__ */ e("span", { className: "border-utility-warning-200 bg-utility-warning-50 text-utility-warning-500 mr-md flex size-5.5 items-center justify-center rounded-full border", children: /* @__PURE__ */ e(W, { className: "size-3" }) }),
|
|
200
|
-
/* @__PURE__ */ e(h, { className: "text-text-quarterary-500 size-5" })
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
},
|
|
205
|
-
o.href + w
|
|
206
|
-
)) }, O)),
|
|
207
|
-
/* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: "bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl", children: /* @__PURE__ */ i(
|
|
208
|
-
"button",
|
|
209
|
-
{
|
|
210
|
-
type: "button",
|
|
211
|
-
className: "flex w-full items-center px-xl py-xl text-left text-sm font-semibold",
|
|
212
|
-
disabled: t.isPending,
|
|
213
|
-
onClick: () => {
|
|
214
|
-
t.mutate(), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
|
|
215
|
-
},
|
|
216
|
-
children: [
|
|
217
|
-
/* @__PURE__ */ e(S, { className: "text-text-quarterary-500 size-5" }),
|
|
218
|
-
/* @__PURE__ */ e("span", { className: "ml-lg grow", children: "Log Out" }),
|
|
219
|
-
/* @__PURE__ */ e(h, { className: "text-gray-400 text-text-quarterary-500 size-5" })
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
) }) })
|
|
223
|
-
] });
|
|
224
|
-
}
|
|
225
|
-
function N() {
|
|
226
|
-
var s;
|
|
227
|
-
const l = I(), t = A({
|
|
275
|
+
function O() {
|
|
276
|
+
var u, N;
|
|
277
|
+
const i = L(), t = S({
|
|
228
278
|
refetchInterval: 1e3
|
|
229
|
-
}),
|
|
230
|
-
|
|
231
|
-
profile:
|
|
232
|
-
mobileProfile:
|
|
233
|
-
depositWithdrawal:
|
|
279
|
+
}), o = w(
|
|
280
|
+
P((c) => ({
|
|
281
|
+
profile: c.profile,
|
|
282
|
+
mobileProfile: c.mobileProfile,
|
|
283
|
+
depositWithdrawal: c.depositWithdrawal
|
|
234
284
|
}))
|
|
235
|
-
);
|
|
236
|
-
return /* @__PURE__ */
|
|
285
|
+
), m = b((u = t.data) == null ? void 0 : u.balance, 0), s = b((N = t.data) == null ? void 0 : N.bonus, 0), n = m + s;
|
|
286
|
+
return /* @__PURE__ */ a("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [
|
|
237
287
|
/* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }),
|
|
238
|
-
/* @__PURE__ */ e("div", { className: "text-3xl font-bold", children:
|
|
239
|
-
currency:
|
|
288
|
+
/* @__PURE__ */ e("div", { className: "text-3xl font-bold", children: p(n, {
|
|
289
|
+
currency: i == null ? void 0 : i.currency.code,
|
|
240
290
|
minDecimalPlaces: 2
|
|
241
291
|
}) }),
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ a("div", { className: "mt-1.5 flex gap-7xl", children: [
|
|
293
|
+
/* @__PURE__ */ a("div", { children: [
|
|
244
294
|
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }),
|
|
245
|
-
/* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children:
|
|
295
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: p(m, {
|
|
296
|
+
currency: i == null ? void 0 : i.currency.code,
|
|
297
|
+
minDecimalPlaces: 2
|
|
298
|
+
}) })
|
|
246
299
|
] }),
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "
|
|
249
|
-
/* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children:
|
|
300
|
+
/* @__PURE__ */ a("div", { children: [
|
|
301
|
+
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Bonus Balance" }),
|
|
302
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: p(s, {
|
|
303
|
+
currency: i == null ? void 0 : i.currency.code,
|
|
304
|
+
minDecimalPlaces: 2
|
|
305
|
+
}) })
|
|
250
306
|
] })
|
|
251
307
|
] }),
|
|
252
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ a("div", { className: "mt-3 flex gap-lg", children: [
|
|
253
309
|
/* @__PURE__ */ e(
|
|
254
|
-
|
|
310
|
+
g,
|
|
255
311
|
{
|
|
256
312
|
size: "xs",
|
|
257
313
|
variant: "outline",
|
|
258
314
|
onClick: () => {
|
|
259
|
-
|
|
315
|
+
o.depositWithdrawal.setOpen(!0), o.depositWithdrawal.setTab("WITHDRAWAL"), o.profile.setOpen(!1), o.mobileProfile.setOpen(!1);
|
|
260
316
|
},
|
|
261
317
|
children: "Withdraw"
|
|
262
318
|
}
|
|
263
319
|
),
|
|
264
320
|
/* @__PURE__ */ e(
|
|
265
|
-
|
|
321
|
+
g,
|
|
266
322
|
{
|
|
267
323
|
size: "xs",
|
|
268
324
|
onClick: () => {
|
|
269
|
-
|
|
325
|
+
o.depositWithdrawal.setOpen(!0), o.depositWithdrawal.setTab("DEPOSIT"), o.profile.setOpen(!1), o.mobileProfile.setOpen(!1);
|
|
270
326
|
},
|
|
271
327
|
children: "Deposit"
|
|
272
328
|
}
|
|
@@ -275,5 +331,5 @@ function N() {
|
|
|
275
331
|
] });
|
|
276
332
|
}
|
|
277
333
|
export {
|
|
278
|
-
|
|
334
|
+
rt as Account
|
|
279
335
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const accountRecipe: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
4
|
+
nav?: import('tailwind-variants').ClassValue;
|
|
5
|
+
navItemRoot?: import('tailwind-variants').ClassValue;
|
|
6
|
+
navItemLink?: import('tailwind-variants').ClassValue;
|
|
7
|
+
navItemIcon?: import('tailwind-variants').ClassValue;
|
|
8
|
+
navItemLabel?: import('tailwind-variants').ClassValue;
|
|
9
|
+
navItemIndicator?: import('tailwind-variants').ClassValue;
|
|
10
|
+
navItemBadge?: import('tailwind-variants').ClassValue;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
[x: string]: {
|
|
15
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
16
|
+
nav?: import('tailwind-variants').ClassValue;
|
|
17
|
+
navItemRoot?: import('tailwind-variants').ClassValue;
|
|
18
|
+
navItemLink?: import('tailwind-variants').ClassValue;
|
|
19
|
+
navItemIcon?: import('tailwind-variants').ClassValue;
|
|
20
|
+
navItemLabel?: import('tailwind-variants').ClassValue;
|
|
21
|
+
navItemIndicator?: import('tailwind-variants').ClassValue;
|
|
22
|
+
navItemBadge?: import('tailwind-variants').ClassValue;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
} | {}, {
|
|
26
|
+
nav: string;
|
|
27
|
+
navItemRoot: string;
|
|
28
|
+
navItemLink: string;
|
|
29
|
+
navItemIcon: string;
|
|
30
|
+
navItemLabel: string;
|
|
31
|
+
navItemIndicator: string;
|
|
32
|
+
navItemBadge: string[];
|
|
33
|
+
}, undefined, {
|
|
34
|
+
[key: string]: {
|
|
35
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
36
|
+
nav?: import('tailwind-variants').ClassValue;
|
|
37
|
+
navItemRoot?: import('tailwind-variants').ClassValue;
|
|
38
|
+
navItemLink?: import('tailwind-variants').ClassValue;
|
|
39
|
+
navItemIcon?: import('tailwind-variants').ClassValue;
|
|
40
|
+
navItemLabel?: import('tailwind-variants').ClassValue;
|
|
41
|
+
navItemIndicator?: import('tailwind-variants').ClassValue;
|
|
42
|
+
navItemBadge?: import('tailwind-variants').ClassValue;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
} | {}, {
|
|
46
|
+
nav: string;
|
|
47
|
+
navItemRoot: string;
|
|
48
|
+
navItemLink: string;
|
|
49
|
+
navItemIcon: string;
|
|
50
|
+
navItemLabel: string;
|
|
51
|
+
navItemIndicator: string;
|
|
52
|
+
navItemBadge: string[];
|
|
53
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
54
|
+
nav: string;
|
|
55
|
+
navItemRoot: string;
|
|
56
|
+
navItemLink: string;
|
|
57
|
+
navItemIcon: string;
|
|
58
|
+
navItemLabel: string;
|
|
59
|
+
navItemIndicator: string;
|
|
60
|
+
navItemBadge: string[];
|
|
61
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("tailwind-variants"),e=t.tv({slots:{nav:"mt-xl space-y-xl",navItemRoot:"bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl",navItemLink:"flex w-full items-center px-xl py-xl text-left text-sm font-semibold",navItemIcon:"text-text-quarterary-500 size-5",navItemLabel:"ml-lg grow",navItemIndicator:"text-gray-400 text-text-quarterary-500 size-5",navItemBadge:["mr-md","flex","items-center","justify-center","border","rounded-full","h-5.5","ui-type-[warning]:min-w-6","ui-type-[warning]:text-xs","ui-type-[warning]:font-medium","ui-type-[warning]:leading-tight","ui-type-[warning]:border-utility-brand-200","ui-type-[warning]:bg-utility-brand-50","ui-type-[warning]:text-utility-brand-700","ui-type-[error]:w-5.5","ui-type-[error]:icon:size-3","ui-type-[error]:border-utility-warning-200","ui-type-[error]:bg-utility-warning-50","ui-type-[error]:text-utility-warning-500"]}});exports.accountRecipe=e;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { tv as t } from "tailwind-variants";
|
|
2
|
+
const r = t({
|
|
3
|
+
slots: {
|
|
4
|
+
nav: "mt-xl space-y-xl",
|
|
5
|
+
navItemRoot: "bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl",
|
|
6
|
+
navItemLink: "flex w-full items-center px-xl py-xl text-left text-sm font-semibold",
|
|
7
|
+
navItemIcon: "text-text-quarterary-500 size-5",
|
|
8
|
+
navItemLabel: "ml-lg grow",
|
|
9
|
+
navItemIndicator: "text-gray-400 text-text-quarterary-500 size-5",
|
|
10
|
+
navItemBadge: [
|
|
11
|
+
"mr-md",
|
|
12
|
+
"flex",
|
|
13
|
+
"items-center",
|
|
14
|
+
"justify-center",
|
|
15
|
+
"border",
|
|
16
|
+
"rounded-full",
|
|
17
|
+
"h-5.5",
|
|
18
|
+
"ui-type-[warning]:min-w-6",
|
|
19
|
+
"ui-type-[warning]:text-xs",
|
|
20
|
+
"ui-type-[warning]:font-medium",
|
|
21
|
+
"ui-type-[warning]:leading-tight",
|
|
22
|
+
"ui-type-[warning]:border-utility-brand-200",
|
|
23
|
+
"ui-type-[warning]:bg-utility-brand-50",
|
|
24
|
+
"ui-type-[warning]:text-utility-brand-700",
|
|
25
|
+
"ui-type-[error]:w-5.5",
|
|
26
|
+
"ui-type-[error]:icon:size-3",
|
|
27
|
+
"ui-type-[error]:border-utility-warning-200",
|
|
28
|
+
"ui-type-[error]:bg-utility-warning-50",
|
|
29
|
+
"ui-type-[error]:text-utility-warning-500"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
r as accountRecipe
|
|
35
|
+
};
|