@opexa/portal-components 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.d.ts +7 -1
- 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 +34 -14
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +113 -34
- 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 +2 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- 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/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -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 +92 -80
- package/dist/components/Account/Account.d.ts +17 -8
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +253 -130
- 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/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +375 -319
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +126 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
- 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 +18 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
- 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 +43 -38
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
- 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 +50 -48
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
- 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 +16 -12
- 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 +151 -124
- 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 +96 -68
- package/dist/components/Games/Games.d.ts +7 -2
- 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 +5 -3
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- 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 +8 -0
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/Jackpots/index.d.ts +1 -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/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +7 -7
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +75 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +95 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +166 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- 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 +30 -25
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +14 -13
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +11 -7
- package/dist/components/Promos/Promos.d.ts +4 -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.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +34 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +169 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +34 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +125 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +15 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- 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 +5 -3
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
- package/dist/components/index.d.ts +10 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -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/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -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/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.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.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +18 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- 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 +22 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +94 -0
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.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/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- 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/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +131 -5
- 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 +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- 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/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- 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 +5 -5
- 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 +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +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 +7 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +9 -2
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +56 -38
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +48 -41
- package/package.json +24 -12
- 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 -16
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/components/Promos/PromosContent.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
|
@@ -10,6 +10,7 @@ import "../../../constants/index.mjs";
|
|
|
10
10
|
import "../../../utils/getLocaleInfo.mjs";
|
|
11
11
|
import "../../../utils/getQueryClient.mjs";
|
|
12
12
|
import { onMobileDevice as M } from "../../../utils/isMobile.mjs";
|
|
13
|
+
import "../../../client/services/getSession.mjs";
|
|
13
14
|
import "@opexa/portal-sdk-core";
|
|
14
15
|
import "tiny-invariant";
|
|
15
16
|
import "lodash-es";
|
|
@@ -27,7 +28,7 @@ import { GCashWithdrawal as Y } from "./GCashWithdrawal/GCashWithdrawal.mjs";
|
|
|
27
28
|
import { InstapayWithdrawal as z } from "./InstapayWithdrawal/InstapayWithdrawal.mjs";
|
|
28
29
|
import { MayaAppWithdrawal as T } from "./MayaAppWithdrawal/MayaAppWithdrawal.mjs";
|
|
29
30
|
import { MayaWithdrawal as Q } from "./MayaWithdrawal/MayaWithdrawal.mjs";
|
|
30
|
-
function
|
|
31
|
+
function fe() {
|
|
31
32
|
const [i] = P(), l = g().data, n = G(), e = n.data, o = (() => {
|
|
32
33
|
var c, p, f, h, u, b;
|
|
33
34
|
const a = [];
|
|
@@ -80,5 +81,5 @@ function H() {
|
|
|
80
81
|
] });
|
|
81
82
|
}
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
fe as Withdrawal
|
|
84
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@ark-ui/react"),t=require("next/image"),a=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@ark-ui/react"),t=require("next/image"),a=require("react"),u=require("../../images/pagcor.png.js"),c=require("../../images/responsible-gaming.png.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const o=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.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");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const x=require("./useDisclaimer.js");function q(l){const i=x.useDisclaimer(),s=a.useRef(null);return e.jsx(r.Root,{open:i.open,lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,initialFocusEl:()=>s.current,children:e.jsxs(n.Portal,{children:[e.jsx(r.Backdrop,{}),e.jsx(r.Positioner,{children:e.jsxs(r.Content,{className:"flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl",children:[e.jsx(t,{src:l.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsxs("div",{className:"w-full grow",children:[e.jsx(r.Title,{className:"mt-3xl text-center text-lg font-semibold",children:"Age Verification"}),e.jsxs(r.Description,{className:"text-text-tertiary-600 mt-xs text-center text-sm",children:["By entering this website I acknowledge and confirmI am 21 years of age and I agree with the"," ",e.jsx("button",{type:"button",className:"text-brand-400 underline underline-offset-2",children:"Terms and Conditions."})]}),e.jsxs("div",{className:"mt-5 flex items-center justify-center gap-3xl",children:[e.jsx(t,{src:u,alt:"",className:"h-[88px] w-auto shrink-0",draggable:!1}),e.jsx(t,{src:c,alt:"",className:"h-[62px] w-auto shrink-0",draggable:!1})]})]}),e.jsx(o.Button,{ref:s,type:"button",className:"mt-4xl",onClick:i.close,children:"Accept"})]})})]})})}exports.Disclaimer=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as e } from "react/jsx-runtime";
|
|
3
|
-
import { Portal as
|
|
3
|
+
import { Portal as l } from "@ark-ui/react";
|
|
4
4
|
import r from "next/image";
|
|
5
5
|
import { useRef as a } from "react";
|
|
6
6
|
import s from "../../images/pagcor.png.mjs";
|
|
@@ -8,11 +8,13 @@ import n from "../../images/responsible-gaming.png.mjs";
|
|
|
8
8
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
9
9
|
import "../../ui/Avatar/Avatar.mjs";
|
|
10
10
|
import "../../ui/Badge/Badge.mjs";
|
|
11
|
-
import { Button as
|
|
11
|
+
import { Button as p } from "../../ui/Button/Button.mjs";
|
|
12
12
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
13
13
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
14
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
15
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
14
16
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
15
|
-
import { Root as
|
|
17
|
+
import { Root as c, Backdrop as f, Positioner as u, Content as d, Title as g, Description as x } from "../../ui/Dialog/Dialog.mjs";
|
|
16
18
|
import "../../ui/Drawer/Drawer.mjs";
|
|
17
19
|
import "../../ui/Field/Field.mjs";
|
|
18
20
|
import "../../utils/capitalize.mjs";
|
|
@@ -23,18 +25,20 @@ import "../../utils/getQueryClient.mjs";
|
|
|
23
25
|
import "../../utils/isMobile.mjs";
|
|
24
26
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
25
27
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
28
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
26
29
|
import "../../ui/PinInput/PinInput.mjs";
|
|
27
30
|
import "../../ui/Popover/Popover.mjs";
|
|
28
31
|
import "tailwind-merge";
|
|
32
|
+
import "../../ui/Progress/Progress.mjs";
|
|
29
33
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
30
34
|
import "../../ui/Select/Select.mjs";
|
|
31
35
|
import "../../ui/Table/Table.mjs";
|
|
32
36
|
import "../../ui/Tabs/Tabs.mjs";
|
|
33
37
|
import { useDisclaimer as h } from "./useDisclaimer.mjs";
|
|
34
|
-
function
|
|
38
|
+
function tt(m) {
|
|
35
39
|
const o = h(), i = a(null);
|
|
36
40
|
return /* @__PURE__ */ t(
|
|
37
|
-
|
|
41
|
+
c,
|
|
38
42
|
{
|
|
39
43
|
open: o.open,
|
|
40
44
|
lazyMount: !0,
|
|
@@ -42,13 +46,13 @@ function Y(l) {
|
|
|
42
46
|
closeOnEscape: !1,
|
|
43
47
|
closeOnInteractOutside: !1,
|
|
44
48
|
initialFocusEl: () => i.current,
|
|
45
|
-
children: /* @__PURE__ */ e(
|
|
49
|
+
children: /* @__PURE__ */ e(l, { children: [
|
|
46
50
|
/* @__PURE__ */ t(f, {}),
|
|
47
|
-
/* @__PURE__ */ t(u, { children: /* @__PURE__ */ e(d, { className: "flex h-full w-full flex-col items-start
|
|
51
|
+
/* @__PURE__ */ t(u, { children: /* @__PURE__ */ e(d, { className: "flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [
|
|
48
52
|
/* @__PURE__ */ t(
|
|
49
53
|
r,
|
|
50
54
|
{
|
|
51
|
-
src:
|
|
55
|
+
src: m.logo,
|
|
52
56
|
alt: "",
|
|
53
57
|
width: 200,
|
|
54
58
|
height: 100,
|
|
@@ -58,14 +62,14 @@ function Y(l) {
|
|
|
58
62
|
),
|
|
59
63
|
/* @__PURE__ */ e("div", { className: "w-full grow", children: [
|
|
60
64
|
/* @__PURE__ */ t(g, { className: "mt-3xl text-center text-lg font-semibold", children: "Age Verification" }),
|
|
61
|
-
/* @__PURE__ */ e(x, { className: "text-
|
|
65
|
+
/* @__PURE__ */ e(x, { className: "text-text-tertiary-600 mt-xs text-center text-sm", children: [
|
|
62
66
|
"By entering this website I acknowledge and confirmI am 21 years of age and I agree with the",
|
|
63
67
|
" ",
|
|
64
68
|
/* @__PURE__ */ t(
|
|
65
69
|
"button",
|
|
66
70
|
{
|
|
67
71
|
type: "button",
|
|
68
|
-
className: "text-
|
|
72
|
+
className: "text-brand-400 underline underline-offset-2",
|
|
69
73
|
children: "Terms and Conditions."
|
|
70
74
|
}
|
|
71
75
|
)
|
|
@@ -92,7 +96,7 @@ function Y(l) {
|
|
|
92
96
|
] })
|
|
93
97
|
] }),
|
|
94
98
|
/* @__PURE__ */ t(
|
|
95
|
-
|
|
99
|
+
p,
|
|
96
100
|
{
|
|
97
101
|
ref: i,
|
|
98
102
|
type: "button",
|
|
@@ -107,5 +111,5 @@ function Y(l) {
|
|
|
107
111
|
);
|
|
108
112
|
}
|
|
109
113
|
export {
|
|
110
|
-
|
|
114
|
+
tt as Disclaimer
|
|
111
115
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");function s(t){return e.jsxs("div",{role:"alert","aria-live":"polite",className:t.className,children:[e.jsxs("div",{className:"relative mx-auto w-[9.5rem] pt-4",children:[e.jsx("div",{className:"bg-utility-gray-200 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full"}),e.jsx(r,{className:"relative h-auto w-full shrink-0"}),e.jsx("div",{className:"bg-utility-gray-200/40 absolute bottom-2 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm",children:e.jsx(t.icon,{className:"size-6 text-white"})}),e.jsx("div",{className:"bg-utility-gray-200 absolute left-4 top-3.5 size-2.5 rounded-full"}),e.jsx("div",{className:"bg-utility-gray-200 absolute bottom-0.5 left-3 size-3.5 rounded-full"}),e.jsx("div",{className:"bg-utility-gray-200 absolute right-3.5 top-1 size-2 rounded-full"}),e.jsx("div",{className:"bg-utility-gray-200 absolute right-0 top-6.5 size-3.5 rounded-full"})]}),e.jsx("h2",{className:"mt-xl text-center font-semibold",children:t.title}),e.jsx("p",{className:"text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm",children:t.message})]})}function r(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 152 104",fill:"none",...t,children:[e.jsxs("g",{filter:"url(#filter0_dd_2719_19242)",children:[e.jsx("path",{d:"M77.6 0C66.8273 0 57.2978 5.32329 51.4987 13.4829C49.605 13.0363 47.6301 12.8 45.6 12.8C31.4615 12.8 20 24.2615 20 38.4C20 52.5385 31.4615 64 45.6 64L109.6 64C121.971 64 132 53.9712 132 41.6C132 29.2288 121.971 19.2 109.6 19.2C108.721 19.2 107.854 19.2506 107.002 19.349C102.098 7.9677 90.7797 0 77.6 0Z",fill:"#F9FAFB"}),e.jsx("ellipse",{cx:"45.6",cy:"38.4008",rx:"25.6",ry:"25.6",fill:"url(#paint0_linear_2719_19242)"}),e.jsx("circle",{cx:"77.6",cy:"32",r:"32",fill:"url(#paint1_linear_2719_19242)"}),e.jsx("ellipse",{cx:"109.6",cy:"41.5992",rx:"22.4",ry:"22.4",fill:"url(#paint2_linear_2719_19242)"})]}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"filter0_dd_2719_19242",x:"0",y:"0",width:"152",height:"104",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"4",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2719_19242"}),e.jsx("feOffset",{dy:"8"}),e.jsx("feGaussianBlur",{stdDeviation:"4"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0"}),e.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2719_19242"}),e.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feMorphology",{radius:"4",operator:"erode",in:"SourceAlpha",result:"effect2_dropShadow_2719_19242"}),e.jsx("feOffset",{dy:"20"}),e.jsx("feGaussianBlur",{stdDeviation:"12"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0"}),e.jsx("feBlend",{mode:"normal",in2:"effect1_dropShadow_2719_19242",result:"effect2_dropShadow_2719_19242"}),e.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_2719_19242",result:"shape"})]}),e.jsxs("linearGradient",{id:"paint0_linear_2719_19242",x1:"25.9429",y1:"21.4865",x2:"71.2",y2:"64.0007",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#D0D5DD"}),e.jsx("stop",{offset:"0.350715",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint1_linear_2719_19242",x1:"53.0286",y1:"10.8571",x2:"109.6",y2:"64",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#D0D5DD"}),e.jsx("stop",{offset:"0.350715",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_2719_19242",x1:"92.4",y1:"26.7992",x2:"132",y2:"63.9992",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#D0D5DD"}),e.jsx("stop",{offset:"0.350715",stopColor:"white",stopOpacity:"0"})]})]})]})}exports.Empty=s;
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
function
|
|
3
|
-
return /* @__PURE__ */ r
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function a(r) {
|
|
3
|
+
return /* @__PURE__ */ t("div", { role: "alert", "aria-live": "polite", className: r.className, children: [
|
|
4
|
+
/* @__PURE__ */ t("div", { className: "relative mx-auto w-[9.5rem] pt-4", children: [
|
|
5
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full" }),
|
|
6
|
+
/* @__PURE__ */ e(l, { className: "relative h-auto w-full shrink-0" }),
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200/40 absolute bottom-2 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm", children: /* @__PURE__ */ e(r.icon, { className: "size-6 text-white" }) }),
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200 absolute left-4 top-3.5 size-2.5 rounded-full" }),
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200 absolute bottom-0.5 left-3 size-3.5 rounded-full" }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200 absolute right-3.5 top-1 size-2 rounded-full" }),
|
|
11
|
+
/* @__PURE__ */ e("div", { className: "bg-utility-gray-200 absolute right-0 top-6.5 size-3.5 rounded-full" })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ e("h2", { className: "mt-xl text-center font-semibold", children: r.title }),
|
|
14
|
+
/* @__PURE__ */ e("p", { className: "text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm", children: r.message })
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
function l(r) {
|
|
18
|
+
return /* @__PURE__ */ t(
|
|
4
19
|
"svg",
|
|
5
20
|
{
|
|
6
21
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
22
|
viewBox: "0 0 152 104",
|
|
8
23
|
fill: "none",
|
|
9
|
-
...
|
|
24
|
+
...r,
|
|
10
25
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ t("g", { filter: "url(#filter0_dd_2719_19242)", children: [
|
|
12
27
|
/* @__PURE__ */ e(
|
|
13
28
|
"path",
|
|
14
29
|
{
|
|
@@ -46,8 +61,8 @@ function i(o) {
|
|
|
46
61
|
}
|
|
47
62
|
)
|
|
48
63
|
] }),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ t("defs", { children: [
|
|
65
|
+
/* @__PURE__ */ t(
|
|
51
66
|
"filter",
|
|
52
67
|
{
|
|
53
68
|
id: "filter0_dd_2719_19242",
|
|
@@ -143,7 +158,7 @@ function i(o) {
|
|
|
143
158
|
]
|
|
144
159
|
}
|
|
145
160
|
),
|
|
146
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ t(
|
|
147
162
|
"linearGradient",
|
|
148
163
|
{
|
|
149
164
|
id: "paint0_linear_2719_19242",
|
|
@@ -158,7 +173,7 @@ function i(o) {
|
|
|
158
173
|
]
|
|
159
174
|
}
|
|
160
175
|
),
|
|
161
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ t(
|
|
162
177
|
"linearGradient",
|
|
163
178
|
{
|
|
164
179
|
id: "paint1_linear_2719_19242",
|
|
@@ -173,7 +188,7 @@ function i(o) {
|
|
|
173
188
|
]
|
|
174
189
|
}
|
|
175
190
|
),
|
|
176
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ t(
|
|
177
192
|
"linearGradient",
|
|
178
193
|
{
|
|
179
194
|
id: "paint2_linear_2719_19242",
|
|
@@ -194,5 +209,5 @@ function i(o) {
|
|
|
194
209
|
);
|
|
195
210
|
}
|
|
196
211
|
export {
|
|
197
|
-
|
|
212
|
+
a as Empty
|
|
198
213
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("next/image"),c=require("tailwind-merge");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");const d=require("../../utils/getGameImageUrl.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");const u=require("../../client/hooks/useSessionQuery.js");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const m=require("../../client/hooks/useFavoriteGamesQuery.js");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const q=require("../../client/hooks/useUnmarkGameAsFavoriteMutation.js"),g=require("../../icons/ArrowLeftIcon.js"),x=require("../../icons/ArrowRightIcon.js"),h=require("../../icons/Star01Icon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const n=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("@ark-ui/react");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("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");require("zustand/shallow");const v=require("../GameLaunch/GameLaunchTrigger.js");function j(r){const i=u.useSessionQuery().data,s=m.useFavoriteGamesQuery().data??[];return(i==null?void 0:i.status)!=="authenticated"?null:s.length<=0?e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold",children:r.heading??"Favorite Games"}),e.jsxs("div",{className:"bg-bg-brand-secondary-alt mt-lg rounded-md p-xl",children:[e.jsx("h2",{className:"text-sm font-semibold",children:"Add your favorite games now!"}),e.jsx("p",{className:"text-text-secondary-700 text-sm",children:"Click the Star Icon in the top right to add your favorite games here."})]})]}):e.jsxs("div",{className:r.className,children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("h2",{className:"text-lg font-semibold",children:r.heading??"Favorite Games"}),e.jsx("div",{className:"grow"}),e.jsx("div",{className:"flex items-center justify-center gap-xl",children:e.jsxs("div",{className:"hidden lg:flex",children:[e.jsx(n.Button,{variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0","aria-label":"Previous",children:e.jsx(g.ArrowLeftIcon,{className:"size-5"})}),e.jsx(n.Button,{variant:"outline",colorScheme:"gray",className:"rounded-l-none",children:e.jsx(x.ArrowRightIcon,{className:"size-5"})})]})})]}),e.jsx("div",{className:"relative mt-lg lg:overflow-hidden",children:e.jsx("div",{className:c.twMerge("grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col grid-rows-1 gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md"),children:s.map(a=>e.jsx(f,{game:a},a.id))})})]})}function f({game:r}){const i=u.useSessionQuery().data,t=q.useUnmarkGameAsFavoriteMutation();return e.jsxs(v.GameLaunchTrigger,{game:r,className:"relative block w-full shadow-sm",children:[(i==null?void 0:i.status)==="authenticated"&&e.jsx("div",{role:"button",onClick:s=>{s.preventDefault(),s.stopPropagation(),!t.isPending&&t.mutate(r.id)},"aria-disabled":t.isPending,className:"rounded-xs absolute right-2 top-2 flex size-9 items-center justify-center bg-black/65 blur-[0.5px]",children:e.jsx(h.Star01Icon,{className:"fill-yellow-400 text-yellow-400 size-5"})}),e.jsx(l,{src:d.getGameImageUrl({id:r.id,provider:r.provider}),alt:"",width:200,height:200,priority:!0,className:"aspect-square w-full rounded-t-md object-cover"}),e.jsx("span",{className:"bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold",children:r.name})]})}exports.FavoriteGames__client=j;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import c from "next/image";
|
|
4
|
+
import { twMerge as d } from "tailwind-merge";
|
|
5
|
+
import "@opexa/portal-sdk-core";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "tiny-invariant";
|
|
8
|
+
import "../../constants/index.mjs";
|
|
9
|
+
import "../../utils/capitalize.mjs";
|
|
10
|
+
import "../../utils/parseDecimal.mjs";
|
|
11
|
+
import { getGameImageUrl as p } from "../../utils/getGameImageUrl.mjs";
|
|
12
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
13
|
+
import "../../utils/getQueryClient.mjs";
|
|
14
|
+
import "../../utils/isMobile.mjs";
|
|
15
|
+
import "../../client/services/getSession.mjs";
|
|
16
|
+
import { useSessionQuery as l } from "../../client/hooks/useSessionQuery.mjs";
|
|
17
|
+
import "react";
|
|
18
|
+
import "lodash-es";
|
|
19
|
+
import "@opexa/portal-sdk-core/object-id";
|
|
20
|
+
import { useFavoriteGamesQuery as u } from "../../client/hooks/useFavoriteGamesQuery.mjs";
|
|
21
|
+
import "../../client/hooks/useGlobalStore.mjs";
|
|
22
|
+
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
23
|
+
import "usehooks-ts";
|
|
24
|
+
import { useUnmarkGameAsFavoriteMutation as h } from "../../client/hooks/useUnmarkGameAsFavoriteMutation.mjs";
|
|
25
|
+
import { ArrowLeftIcon as g } from "../../icons/ArrowLeftIcon.mjs";
|
|
26
|
+
import { ArrowRightIcon as f } from "../../icons/ArrowRightIcon.mjs";
|
|
27
|
+
import { Star01Icon as v } from "../../icons/Star01Icon.mjs";
|
|
28
|
+
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
29
|
+
import "../../ui/Avatar/Avatar.mjs";
|
|
30
|
+
import "../../ui/Badge/Badge.mjs";
|
|
31
|
+
import { Button as s } from "../../ui/Button/Button.mjs";
|
|
32
|
+
import "../../ui/Checkbox/Checkbox.mjs";
|
|
33
|
+
import "../../ui/Clipboard/Clipboard.mjs";
|
|
34
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
35
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
36
|
+
import "../../ui/DatePicker/DatePicker.mjs";
|
|
37
|
+
import "../../ui/Dialog/Dialog.mjs";
|
|
38
|
+
import "../../ui/Drawer/Drawer.mjs";
|
|
39
|
+
import "../../ui/Field/Field.mjs";
|
|
40
|
+
import "@ark-ui/react";
|
|
41
|
+
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
42
|
+
import "../../ui/NumberInput/NumberInput.mjs";
|
|
43
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
44
|
+
import "../../ui/PinInput/PinInput.mjs";
|
|
45
|
+
import "../../ui/Popover/Popover.mjs";
|
|
46
|
+
import "../../ui/Progress/Progress.mjs";
|
|
47
|
+
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
48
|
+
import "../../ui/Select/Select.mjs";
|
|
49
|
+
import "../../ui/Table/Table.mjs";
|
|
50
|
+
import "../../ui/Tabs/Tabs.mjs";
|
|
51
|
+
import "zustand/shallow";
|
|
52
|
+
import { GameLaunchTrigger as x } from "../GameLaunch/GameLaunchTrigger.mjs";
|
|
53
|
+
function ve(r) {
|
|
54
|
+
const t = l().data, o = u().data ?? [];
|
|
55
|
+
return (t == null ? void 0 : t.status) !== "authenticated" ? null : o.length <= 0 ? /* @__PURE__ */ i("div", { children: [
|
|
56
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: r.heading ?? "Favorite Games" }),
|
|
57
|
+
/* @__PURE__ */ i("div", { className: "bg-bg-brand-secondary-alt mt-lg rounded-md p-xl", children: [
|
|
58
|
+
/* @__PURE__ */ e("h2", { className: "text-sm font-semibold", children: "Add your favorite games now!" }),
|
|
59
|
+
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-sm", children: "Click the Star Icon in the top right to add your favorite games here." })
|
|
60
|
+
] })
|
|
61
|
+
] }) : /* @__PURE__ */ i("div", { className: r.className, children: [
|
|
62
|
+
/* @__PURE__ */ i("div", { className: "flex items-center", children: [
|
|
63
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: r.heading ?? "Favorite Games" }),
|
|
64
|
+
/* @__PURE__ */ e("div", { className: "grow" }),
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-xl", children: /* @__PURE__ */ i("div", { className: "hidden lg:flex", children: [
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
s,
|
|
68
|
+
{
|
|
69
|
+
variant: "outline",
|
|
70
|
+
colorScheme: "gray",
|
|
71
|
+
className: "rounded-r-none border-r-0",
|
|
72
|
+
"aria-label": "Previous",
|
|
73
|
+
children: /* @__PURE__ */ e(g, { className: "size-5" })
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
/* @__PURE__ */ e(
|
|
77
|
+
s,
|
|
78
|
+
{
|
|
79
|
+
variant: "outline",
|
|
80
|
+
colorScheme: "gray",
|
|
81
|
+
className: "rounded-l-none",
|
|
82
|
+
children: /* @__PURE__ */ e(f, { className: "size-5" })
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }) })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ e("div", { className: "relative mt-lg lg:overflow-hidden", children: /* @__PURE__ */ e(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: d(
|
|
91
|
+
"grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col grid-rows-1 gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md"
|
|
92
|
+
),
|
|
93
|
+
children: o.map((m) => /* @__PURE__ */ e(b, { game: m }, m.id))
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
] });
|
|
97
|
+
}
|
|
98
|
+
function b({ game: r }) {
|
|
99
|
+
const t = l().data, a = h();
|
|
100
|
+
return /* @__PURE__ */ i(x, { game: r, className: "relative block w-full shadow-sm", children: [
|
|
101
|
+
(t == null ? void 0 : t.status) === "authenticated" && /* @__PURE__ */ e(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
role: "button",
|
|
105
|
+
onClick: (o) => {
|
|
106
|
+
o.preventDefault(), o.stopPropagation(), !a.isPending && a.mutate(r.id);
|
|
107
|
+
},
|
|
108
|
+
"aria-disabled": a.isPending,
|
|
109
|
+
className: "rounded-xs absolute right-2 top-2 flex size-9 items-center justify-center bg-black/65 blur-[0.5px]",
|
|
110
|
+
children: /* @__PURE__ */ e(v, { className: "fill-yellow-400 text-yellow-400 size-5" })
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ e(
|
|
114
|
+
c,
|
|
115
|
+
{
|
|
116
|
+
src: p({
|
|
117
|
+
id: r.id,
|
|
118
|
+
provider: r.provider
|
|
119
|
+
}),
|
|
120
|
+
alt: "",
|
|
121
|
+
width: 200,
|
|
122
|
+
height: 200,
|
|
123
|
+
priority: !0,
|
|
124
|
+
className: "aspect-square w-full rounded-t-md object-cover"
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ e("span", { className: "bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold", children: r.name })
|
|
128
|
+
] });
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
ve as FavoriteGames__client
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("@opexa/portal-sdk-core");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../server/services/getSession.js");const i=require("../../server/utils/prefetchFavoriteGamesQuery.js"),t=require("./FavoriteGames.client.js");async function u(e){return await i.prefetchFavoriteGamesQuery(),r.jsx(t.FavoriteGames__client,{...e})}exports.FavoriteGames=u;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "@opexa/portal-sdk-core";
|
|
3
|
+
import "../../constants/index.mjs";
|
|
4
|
+
import "../../utils/capitalize.mjs";
|
|
5
|
+
import "../../utils/parseDecimal.mjs";
|
|
6
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
7
|
+
import "../../utils/getQueryClient.mjs";
|
|
8
|
+
import "../../utils/isMobile.mjs";
|
|
9
|
+
import "../../server/services/getSession.mjs";
|
|
10
|
+
import { prefetchFavoriteGamesQuery as o } from "../../server/utils/prefetchFavoriteGamesQuery.mjs";
|
|
11
|
+
import { FavoriteGames__client as i } from "./FavoriteGames.client.mjs";
|
|
12
|
+
async function G(r) {
|
|
13
|
+
return await o(), /* @__PURE__ */ t(i, { ...r });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
G as FavoriteGames
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FavoriteGames';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@ark-ui/react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@ark-ui/react"),v=require("react"),g=require("tailwind-merge"),y=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");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");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const x=require("../../client/hooks/useDisclosure.js"),z=require("../../client/hooks/useEndGameSessionMutation.js"),A=require("../../client/hooks/useFavoriteGamesQuery.js"),b=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const O=require("../../client/hooks/useMarkGameAsFavoriteMutation.js");require("usehooks-ts");const M=require("../../client/hooks/useUnmarkGameAsFavoriteMutation.js"),w=require("../../icons/AlertCircleIcon.js"),C=require("../../icons/ChevronLeftIcon.js"),S=require("../../icons/CoinsHandIcon.js"),f=require("../../icons/Expand03Icon.js"),j=require("../../icons/SpinnerIcon.js"),q=require("../../icons/Star01Icon.js"),I=require("../../icons/XIcon.js"),i=require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const L=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const r=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function D(){var m;const d=v.useRef(null),n=x.useDisclosure({defaultOpen:!0,onOpenChange(a){a||setTimeout(()=>{var h;(h=d.current)==null||h.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},25)}}),l=x.useDisclosure(),u=z.useEndGameSessionMutation(),s=b.useGlobalStore(y.useShallow(a=>({gameLaunch:a.gameLaunch,depositWithdrawal:a.depositWithdrawal})));async function c(){s.gameLaunch.details.status==="PLAYING"&&await u.mutateAsync({game:s.gameLaunch.details.game,session:s.gameLaunch.details.session}),n.setOpen(!0),s.gameLaunch.setDetails({status:"WAITING",session:null,game:null})}const p=A.useFavoriteGamesQuery().data??[],N=O.useMarkGameAsFavoriteMutation(),G=M.useUnmarkGameAsFavoriteMutation(),o=p.some(a=>s.gameLaunch.details.game?"reference"in s.gameLaunch.details.game?a.id===s.gameLaunch.details.game.reference:a.id===s.gameLaunch.details.game.id:!1);return e.jsxs(e.Fragment,{children:[e.jsxs(t.Presence,{ref:d,present:s.gameLaunch.details.status!=="WAITING"&&!n.open,lazyMount:!0,unmountOnExit:s.gameLaunch.details.status==="WAITING",className:"border-border-primary bg-bg-primary-alt w-full overflow-hidden rounded-lg border ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsxs("section",{className:"aspect-[960/540] w-full",children:[s.gameLaunch.details.status==="LOADING"&&e.jsx("div",{className:"flex size-full items-center justify-center",children:e.jsx(j.SpinnerIcon,{className:"size-8"})}),s.gameLaunch.details.status==="FAILED"&&e.jsx("div",{}),s.gameLaunch.details.status==="PLAYING"&&e.jsx("iframe",{src:((m=s.gameLaunch.details.session)==null?void 0:m.launchUrl)??"",className:"size-full"})]}),e.jsxs("section",{className:"border-border-primary flex justify-end gap-2 border-t p-2",children:[e.jsx(r.IconButton,{size:"xs",variant:"outline",colorScheme:"gray",onClick:()=>{if(s.gameLaunch.details.status!=="PLAYING"){c();return}l.setOpen(!0)},disabled:s.gameLaunch.details.status==="LOADING","aria-label":"Quit Game",children:e.jsx(I.XIcon,{className:"size-5"})}),e.jsx(r.IconButton,{size:"xs",variant:"outline",colorScheme:"gray",disabled:s.gameLaunch.details.status==="LOADING","aria-label":o?"Remove from Favorites":"Add to Favorites",onClick:()=>{s.gameLaunch.details.game&&(o?G.mutate("reference"in s.gameLaunch.details.game?s.gameLaunch.details.game.reference:s.gameLaunch.details.game.id):N.mutate("reference"in s.gameLaunch.details.game?s.gameLaunch.details.game.reference:s.gameLaunch.details.game.id))},children:e.jsx(q.Star01Icon,{className:g.twMerge("size-5",o?"text-yellow-400 fill-yellow-400":"text-inherit")})}),e.jsx(r.IconButton,{size:"xs",variant:"outline",colorScheme:"gray",onClick:()=>n.setOpen(!0),title:"Maximize","aria-label":"Maximize",children:e.jsx(f.Expand03Icon,{className:"size-5"})})]})]}),e.jsx(t.Dialog.Root,{open:s.gameLaunch.details.status!=="WAITING"&&n.open&&!l.open,lazyMount:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:e.jsx(t.Portal,{children:e.jsx(t.Dialog.Positioner,{className:"z-dialog fixed inset-0",children:e.jsxs(t.Dialog.Content,{className:"ui-open:animate-dialog-in ui-closed:animate-dialog-out bg-bg-primary-alt flex size-full flex-col",children:[e.jsxs("section",{className:"flex items-center gap-2 px-4 py-2",children:[e.jsx(r.IconButton,{size:"xs",variant:"outline",onClick:()=>{if(s.gameLaunch.details.status!=="PLAYING"){c();return}l.setOpen(!0)},disabled:s.gameLaunch.details.status==="LOADING",title:"Quit","aria-label":"Quit Game",children:e.jsx(C.ChevronLeftIcon,{className:"size-5"})}),e.jsx("div",{className:"grow"}),e.jsx(r.IconButton,{size:"xs",variant:"outline",children:e.jsx(q.Star01Icon,{className:g.twMerge("size-5",o?"text-yellow-400 fill-yellow-400":"text-inherit")})}),e.jsx(r.IconButton,{size:"xs",variant:"outline",onClick:()=>n.setOpen(!1),title:"Minimize","aria-label":"Minimize",children:e.jsx(f.Expand03Icon,{className:"size-5"})}),e.jsx(r.IconButton,{size:"xs",fullWidth:!1,onClick:()=>{s.depositWithdrawal.setOpen(!0)},children:e.jsx(S.CoinsHandIcon,{className:"size-5"})})]}),e.jsxs("section",{className:"grow",children:[s.gameLaunch.details.status==="LOADING"&&e.jsx("div",{className:"flex size-full items-center justify-center",children:e.jsx(j.SpinnerIcon,{className:"size-8"})}),s.gameLaunch.details.status==="FAILED"&&e.jsx("div",{}),s.gameLaunch.details.status==="PLAYING"&&e.jsx("iframe",{src:s.gameLaunch.details.session.launchUrl??"",className:"size-full"})]})]})})})}),e.jsx(i.Root,{role:"alertdialog",open:l.open,onOpenChange:a=>{l.setOpen(a.open)},lazyMount:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:e.jsxs(t.Portal,{children:[e.jsx(i.Backdrop,{}),e.jsx(i.Positioner,{children:e.jsxs(i.Content,{children:[e.jsxs(i.Header,{children:[e.jsx("div",{className:"bg-error-700/25 text-error-200 flex size-12 items-center justify-center rounded-full",children:e.jsx(w.AlertCircleIcon,{})}),e.jsx(i.CloseTrigger,{children:e.jsx(I.XIcon,{})})]}),e.jsxs(i.Body,{children:[e.jsx(i.Title,{children:"Quit Game"}),e.jsx(i.Description,{children:"Are you sure you want to quit?"})]}),e.jsx(i.Context,{children:a=>e.jsxs(i.Footer,{children:[e.jsx(L.Button,{variant:"outline",colorScheme:"gray",disabled:u.isPending,onClick:()=>{a.setOpen(!1)},children:"Cancel"}),e.jsx(L.Button,{colorScheme:"danger",disabled:u.isPending,onClick:async()=>{await c(),a.setOpen(!1)},children:"Proceed"})]})})]})})]})})]})}exports.GameLaunch=D;
|