@opexa/portal-components 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.d.ts +6 -3
- package/dist/client/hooks/useAuthenticateMutation.js +1 -1
- package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
- package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
- package/dist/client/hooks/useBonusesQuery.js +1 -0
- package/dist/client/hooks/useBonusesQuery.mjs +38 -0
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
- package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
- package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
- package/dist/client/hooks/useGlobalStore.d.ts +30 -20
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +39 -6
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -5
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -1
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +18 -18
- package/dist/client/hooks/useSignInMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.mjs +3 -2
- package/dist/client/hooks/useSignOutMutation.js +1 -1
- package/dist/client/hooks/useSignOutMutation.mjs +11 -10
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/services/getSession.js +1 -1
- package/dist/client/services/getSession.mjs +4 -3
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +90 -84
- package/dist/components/Account/Account.d.ts +17 -10
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +204 -148
- package/dist/components/Account/account.recipe.d.ts +61 -0
- package/dist/components/Account/account.recipe.js +1 -0
- package/dist/components/Account/account.recipe.mjs +35 -0
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +174 -150
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonuses/Bonuses.js +1 -1
- package/dist/components/Bonuses/Bonuses.mjs +6 -5
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +25 -23
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +15 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +4 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +36 -34
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +7 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +12 -10
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +4 -2
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +9 -7
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +7 -6
- package/dist/components/Empty.js +1 -0
- package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
- package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
- package/dist/components/FavoriteGames/index.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +147 -123
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
- package/dist/components/GameProviders/GameProviders.d.ts +7 -10
- package/dist/components/GameProviders/GameProviders.js +1 -0
- package/dist/components/GameProviders/GameProviders.mjs +122 -0
- package/dist/components/GameProviders/index.d.ts +1 -0
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +91 -66
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +4 -2
- package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -0
- package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
- package/dist/components/GamesSearch/index.d.ts +2 -0
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +1 -0
- package/dist/components/InfiniteScroll.mjs +30 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -114
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -0
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +206 -119
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -9
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
- package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
- package/dist/components/Jackpots/JackpotRules.js +1 -0
- package/dist/components/Jackpots/JackpotRules.mjs +78 -0
- package/dist/components/Jackpots/Jackpots.d.ts +2 -2
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/KYC/KYC.d.ts +5 -0
- package/dist/components/KYC/KYC.js +1 -0
- package/dist/components/KYC/KYC.mjs +84 -0
- package/dist/components/KYC/KYCContext.d.ts +3 -0
- package/dist/components/KYC/KYCContext.js +1 -0
- package/dist/components/KYC/KYCContext.mjs +11 -0
- package/dist/components/KYC/KYCTrigger.d.ts +5 -0
- package/dist/components/KYC/KYCTrigger.js +1 -0
- package/dist/components/KYC/KYCTrigger.mjs +42 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +1 -0
- package/dist/components/KYC/Step1.mjs +67 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +1 -0
- package/dist/components/KYC/Step2.mjs +126 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +1 -0
- package/dist/components/KYC/Step3.mjs +98 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -0
- package/dist/components/KYC/StepIndicator.js +1 -0
- package/dist/components/KYC/StepIndicator.mjs +42 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -0
- package/dist/components/KYC/UploadDocument.js +1 -0
- package/dist/components/KYC/UploadDocument.mjs +69 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -0
- package/dist/components/KYC/UploadSelfie.js +1 -0
- package/dist/components/KYC/UploadSelfie.mjs +65 -0
- package/dist/components/KYC/index.d.ts +2 -0
- package/dist/components/KYC/useKYC.d.ts +14 -0
- package/dist/components/KYC/useKYC.js +1 -0
- package/dist/components/KYC/useKYC.mjs +43 -0
- package/dist/components/KYC/utils.d.ts +1 -0
- package/dist/components/Messages/MessageItem.js +1 -1
- package/dist/components/Messages/MessageItem.mjs +37 -28
- package/dist/components/Messages/MessagePopup.js +1 -1
- package/dist/components/Messages/MessagePopup.mjs +35 -29
- package/dist/components/Messages/Messages.js +1 -1
- package/dist/components/Messages/Messages.mjs +80 -61
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
- package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
- package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
- package/dist/components/Promo/Promo.d.ts +4 -1
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promo/Promo.mjs +2 -2
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +75 -22
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +5 -3
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -6
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +3 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
- package/dist/components/Quests/Quests.d.ts +1 -0
- package/dist/components/Quests/Quests.js +1 -0
- package/dist/components/Quests/Quests.mjs +15 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
- package/dist/components/Quests/index.d.ts +1 -0
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +4 -2
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +4 -2
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +4 -2
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +4 -2
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +3 -2
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -111
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +47 -38
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +236 -194
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +3 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +62 -53
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +61 -52
- package/dist/components/index.d.ts +8 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -36
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.js +1 -0
- package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
- package/dist/icons/Award01Icon.d.ts +2 -0
- package/dist/icons/Award01Icon.js +1 -0
- package/dist/icons/Award01Icon.mjs +22 -0
- package/dist/icons/CalendarIcon.d.ts +2 -0
- package/dist/icons/CalendarIcon.js +1 -0
- package/dist/icons/CalendarIcon.mjs +26 -0
- package/dist/icons/Camera01Icon.d.ts +2 -0
- package/dist/icons/Camera01Icon.js +1 -0
- package/dist/icons/Camera01Icon.mjs +25 -0
- package/dist/icons/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/CheckCircleIcon.js +1 -0
- package/dist/icons/CheckCircleIcon.mjs +22 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
- package/dist/icons/ClockStopWatchIcon.js +1 -0
- package/dist/icons/ClockStopWatchIcon.mjs +26 -0
- package/dist/icons/CoinsHandIcon.d.ts +2 -0
- package/dist/icons/CoinsHandIcon.js +1 -0
- package/dist/icons/CoinsHandIcon.mjs +22 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
- package/dist/icons/CoinsStacked02Icon.js +1 -0
- package/dist/icons/CoinsStacked02Icon.mjs +22 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
- package/dist/icons/CoinsSwap02Icon.js +1 -0
- package/dist/icons/CoinsSwap02Icon.mjs +22 -0
- package/dist/icons/Flag06Icon.d.ts +2 -0
- package/dist/icons/Flag06Icon.js +1 -0
- package/dist/icons/Flag06Icon.mjs +22 -0
- package/dist/icons/HelpCircleIcon.d.ts +2 -0
- package/dist/icons/HelpCircleIcon.js +1 -0
- package/dist/icons/HelpCircleIcon.mjs +22 -0
- package/dist/icons/InfoCircleIcon.d.ts +2 -0
- package/dist/icons/InfoCircleIcon.js +1 -0
- package/dist/icons/InfoCircleIcon.mjs +27 -0
- package/dist/icons/Menu01Icon.d.ts +2 -0
- package/dist/icons/Menu01Icon.js +1 -0
- package/dist/icons/Menu01Icon.mjs +22 -0
- package/dist/icons/Menu03Icon.d.ts +2 -0
- package/dist/icons/Menu03Icon.js +1 -0
- package/dist/icons/Menu03Icon.mjs +22 -0
- package/dist/icons/SearchLgIcon.d.ts +2 -0
- package/dist/icons/SearchLgIcon.js +1 -0
- package/dist/icons/SearchLgIcon.mjs +22 -0
- package/dist/icons/Settings02Icon.d.ts +2 -0
- package/dist/icons/Settings02Icon.js +1 -0
- package/dist/icons/Settings02Icon.mjs +25 -0
- package/dist/icons/Star01Icon.d.ts +2 -0
- package/dist/icons/Star01Icon.js +1 -0
- package/dist/icons/Star01Icon.mjs +22 -0
- package/dist/icons/StarIcon.js +1 -1
- package/dist/icons/StarIcon.mjs +1 -2
- package/dist/icons/UploadCloud02Icon.d.ts +2 -0
- package/dist/icons/UploadCloud02Icon.js +1 -0
- package/dist/icons/UploadCloud02Icon.mjs +22 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/icons.js +1 -1
- package/dist/icons.mjs +80 -48
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/hacksaw-gaming.png.js +1 -0
- package/dist/images/hacksaw-gaming.png.mjs +4 -0
- package/dist/images/trophy-two.png.js +1 -0
- package/dist/images/trophy-two.png.mjs +4 -0
- package/dist/portal-components.css +1 -1
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/getSession.mjs +6 -5
- package/dist/server/utils/index.d.ts +2 -1
- package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchBonusesQuery.js +1 -0
- package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +9 -2
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Combobox/Combobox.d.ts +815 -1
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/Combobox.mjs +27 -2
- package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +1 -1
- package/dist/ui/IconButton/iconButton.recipe.d.ts +1 -0
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +3 -2
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +2 -1
- package/dist/utils/queryKeys.d.ts +7 -3
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +53 -43
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +43 -39
- package/package.json +16 -11
- package/dist/client/hooks/useSiteQuery.d.ts +0 -3
- package/dist/client/hooks/useSiteQuery.js +0 -1
- package/dist/client/hooks/useSiteQuery.mjs +0 -23
- package/dist/components/Empty/CloudIcon.d.ts +0 -2
- package/dist/components/Empty/CloudIcon.js +0 -1
- package/dist/components/Empty/Empty.js +0 -1
- package/dist/components/Empty/Empty.mjs +0 -20
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/images/ball.png.js +0 -1
- package/dist/images/ball.png.mjs +0 -4
- package/dist/images/card.png.js +0 -1
- package/dist/images/card.png.mjs +0 -4
- package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
- package/dist/server/utils/prefetchSiteQuery.js +0 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
- /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as t, Fragment as
|
|
3
|
-
import { Portal as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { useShallow as h } from "zustand/shallow";
|
|
2
|
+
import { jsxs as t, Fragment as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Portal as d } from "@ark-ui/react";
|
|
4
|
+
import { z as u } from "zod";
|
|
5
|
+
import { useShallow as g } from "zustand/shallow";
|
|
7
6
|
import "@opexa/portal-sdk-core";
|
|
8
7
|
import "@tanstack/react-query";
|
|
9
8
|
import "tiny-invariant";
|
|
@@ -13,16 +12,18 @@ import "../../utils/parseDecimal.mjs";
|
|
|
13
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
14
13
|
import "../../utils/getQueryClient.mjs";
|
|
15
14
|
import "../../utils/isMobile.mjs";
|
|
15
|
+
import "../../client/services/getSession.mjs";
|
|
16
16
|
import "react";
|
|
17
17
|
import "lodash-es";
|
|
18
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
19
|
-
import { useGlobalStore as
|
|
19
|
+
import { useGlobalStore as b } from "../../client/hooks/useGlobalStore.mjs";
|
|
20
20
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
+
import { useMessagesQuery as f } from "../../client/hooks/useMessagesQuery.mjs";
|
|
21
22
|
import "usehooks-ts";
|
|
22
|
-
import { useUnreadMessagesCountQuery as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { XIcon as
|
|
23
|
+
import { useUnreadMessagesCountQuery as x } from "../../client/hooks/useUnreadMessagesCountQuery.mjs";
|
|
24
|
+
import { Bell01Icon as h } from "../../icons/Bell01Icon.mjs";
|
|
25
|
+
import { SpinnerIcon as y } from "../../icons/SpinnerIcon.mjs";
|
|
26
|
+
import { XIcon as N } from "../../icons/XIcon.mjs";
|
|
26
27
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
27
28
|
import "../../ui/Avatar/Avatar.mjs";
|
|
28
29
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -30,11 +31,12 @@ import "../../ui/Button/button.recipe.mjs";
|
|
|
30
31
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
31
32
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
32
33
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
34
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
33
35
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
34
36
|
import "../../ui/Dialog/Dialog.mjs";
|
|
35
|
-
import { Root as
|
|
37
|
+
import { Root as v, Trigger as M, Backdrop as C, Positioner as I, Content as w, CloseTrigger as A } from "../../ui/Drawer/Drawer.mjs";
|
|
36
38
|
import "../../ui/Field/Field.mjs";
|
|
37
|
-
import { IconButton as
|
|
39
|
+
import { IconButton as R } from "../../ui/IconButton/IconButton.mjs";
|
|
38
40
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
39
41
|
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
40
42
|
import "../../ui/PinInput/PinInput.mjs";
|
|
@@ -44,52 +46,66 @@ import "../../ui/Progress/Progress.mjs";
|
|
|
44
46
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
45
47
|
import "../../ui/Select/Select.mjs";
|
|
46
48
|
import "../../ui/Table/Table.mjs";
|
|
47
|
-
import { Root as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
import { Root as S, List as T, Trigger as n, Indicator as z, Content as E } from "../../ui/Tabs/Tabs.mjs";
|
|
50
|
+
import { InfiniteScroll as L } from "../InfiniteScroll.mjs";
|
|
51
|
+
import { MessageItem as P } from "./MessageItem.mjs";
|
|
52
|
+
import { MessagePopup as Q } from "./MessagePopup.mjs";
|
|
53
|
+
const p = ["ALL", "UNREAD"];
|
|
54
|
+
function Pe() {
|
|
55
|
+
var m;
|
|
56
|
+
const o = b(
|
|
57
|
+
g((r) => ({ messages: r.messages }))
|
|
58
|
+
), a = x(
|
|
59
|
+
{},
|
|
60
|
+
{ refetchInterval: 5e3 }
|
|
61
|
+
).data ?? 0, l = f(
|
|
55
62
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
first: 10,
|
|
64
|
+
...o.messages.tab === "UNREAD" && {
|
|
65
|
+
filter: {
|
|
66
|
+
markedAsRead: {
|
|
67
|
+
equal: !0
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{ refetchInterval: 5e3 }
|
|
73
|
+
), i = ((m = l.data) == null ? void 0 : m.pages.flatMap(
|
|
74
|
+
(r) => r.edges.map((s) => s.node)
|
|
75
|
+
)) ?? [];
|
|
76
|
+
return /* @__PURE__ */ t(c, { children: [
|
|
63
77
|
/* @__PURE__ */ t(
|
|
64
|
-
|
|
78
|
+
v,
|
|
65
79
|
{
|
|
66
|
-
open: o.open,
|
|
67
|
-
onOpenChange: ({ open: r }) => o.setOpen(r),
|
|
80
|
+
open: o.messages.open,
|
|
81
|
+
onOpenChange: ({ open: r }) => o.messages.setOpen(r),
|
|
68
82
|
lazyMount: !0,
|
|
69
83
|
unmountOnExit: !0,
|
|
70
84
|
children: [
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */ e(
|
|
85
|
+
/* @__PURE__ */ e(M, { asChild: !0, children: /* @__PURE__ */ t(R, { size: "sm", colorScheme: "gray", className: "relative", children: [
|
|
86
|
+
!!a && /* @__PURE__ */ e("div", { className: "bg-brand-500 leading-4.5 text-button-primary-fg absolute -right-1.5 -top-1.5 rounded-full border px-1.5 text-2xs font-semibold", children: a }),
|
|
87
|
+
/* @__PURE__ */ e(h, {})
|
|
74
88
|
] }) }),
|
|
75
|
-
/* @__PURE__ */ t(
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
/* @__PURE__ */ e(
|
|
89
|
+
/* @__PURE__ */ t(d, { children: [
|
|
90
|
+
/* @__PURE__ */ e(C, {}),
|
|
91
|
+
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(w, { className: "bg-gray-50 bg-bg-primary flex flex-col", children: /* @__PURE__ */ t("div", { className: "flex flex-col space-y-6", children: [
|
|
78
92
|
/* @__PURE__ */ t("div", { className: "flex items-end justify-between px-4 pt-6", children: [
|
|
79
93
|
/* @__PURE__ */ e("p", { className: "text-text-primary-brand text-xl font-semibold", children: "Notifications" }),
|
|
80
|
-
/* @__PURE__ */ e(
|
|
94
|
+
/* @__PURE__ */ e(A, { className: "p-2", children: /* @__PURE__ */ e(N, {}) })
|
|
81
95
|
] }),
|
|
82
96
|
/* @__PURE__ */ t(
|
|
83
|
-
|
|
97
|
+
S,
|
|
84
98
|
{
|
|
85
|
-
value:
|
|
86
|
-
onValueChange: (
|
|
99
|
+
value: o.messages.tab,
|
|
100
|
+
onValueChange: (r) => o.messages.setTab(
|
|
101
|
+
u.enum(p).parse(r.value)
|
|
102
|
+
),
|
|
87
103
|
lazyMount: !0,
|
|
88
104
|
unmountOnExit: !0,
|
|
89
105
|
children: [
|
|
90
|
-
/* @__PURE__ */ e("div", { className: "mb-4 w-full px-4", children: /* @__PURE__ */ t(
|
|
106
|
+
/* @__PURE__ */ e("div", { className: "mb-4 w-full px-4", children: /* @__PURE__ */ t(T, { className: "border-border-secondary w-full border", children: [
|
|
91
107
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
108
|
+
n,
|
|
93
109
|
{
|
|
94
110
|
value: "ALL",
|
|
95
111
|
className: "flex-1/5 ui-selected:text-text-primary-brand text-text-tertiary-600",
|
|
@@ -97,37 +113,40 @@ function Ee() {
|
|
|
97
113
|
}
|
|
98
114
|
),
|
|
99
115
|
/* @__PURE__ */ t(
|
|
100
|
-
|
|
116
|
+
n,
|
|
101
117
|
{
|
|
102
118
|
value: "UNREAD",
|
|
103
119
|
className: "flex-1/5 ui-selected:text-text-primary-brand text-text-tertiary-600 flex items-center justify-center space-x-2",
|
|
104
120
|
children: [
|
|
105
|
-
/* @__PURE__ */ e("
|
|
106
|
-
|
|
121
|
+
/* @__PURE__ */ e("div", { children: "Unread" }),
|
|
122
|
+
!!a && /* @__PURE__ */ e("div", { className: "border-border-primary bg-bg-secondary rounded-full border px-2 py-0.5", children: a })
|
|
107
123
|
]
|
|
108
124
|
}
|
|
109
125
|
),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
126
|
+
/* @__PURE__ */ e(z, { className: "bg-bg-active" })
|
|
111
127
|
] }) }),
|
|
112
128
|
/* @__PURE__ */ e("div", { className: "border-border-secondary mb-10 w-full border-t" }),
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
p.map((r) => /* @__PURE__ */ t(
|
|
130
|
+
E,
|
|
115
131
|
{
|
|
116
132
|
id: "messages-scrollable",
|
|
117
133
|
value: r,
|
|
118
134
|
className: "scrollbar:w-2 scrollbar-track:bg-bg-primary-alt scrollbar-track:rounded-full scrollbar-thumb:bg-bg-quaternary scrollbar-thumb:rounded-full max-h-[calc(100vh-197px)] overflow-y-auto pb-4 pl-4",
|
|
119
135
|
style: { scrollbarGutter: "stable" },
|
|
120
|
-
children:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
children: [
|
|
137
|
+
i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col space-y-4", children: i.map((s) => /* @__PURE__ */ e(P, { message: s }, s.id)) }),
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
L,
|
|
140
|
+
{
|
|
141
|
+
loader: /* @__PURE__ */ e(y, { className: "mx-auto size-5" }),
|
|
142
|
+
hasMore: !!l.hasNextPage,
|
|
143
|
+
loadMore: async () => {
|
|
144
|
+
await l.fetchNextPage();
|
|
145
|
+
},
|
|
146
|
+
className: "mt-4"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
131
150
|
},
|
|
132
151
|
r
|
|
133
152
|
))
|
|
@@ -139,9 +158,9 @@ function Ee() {
|
|
|
139
158
|
]
|
|
140
159
|
}
|
|
141
160
|
),
|
|
142
|
-
/* @__PURE__ */ e(
|
|
161
|
+
/* @__PURE__ */ e(Q, {})
|
|
143
162
|
] });
|
|
144
163
|
}
|
|
145
164
|
export {
|
|
146
|
-
|
|
165
|
+
Pe as Messages
|
|
147
166
|
};
|
|
@@ -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"),c=require("@next/third-parties/google"),u=require("@tanstack/react-query"),i=require("tailwind-merge");require("react");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");const x=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const g=require("../../client/utils/toaster.js"),y=require("../../icons/AlertCircleIcon.js"),m=require("../../icons/XIcon.js"),j=require("../../third-parties/FacebookPixel/FacebookPixel.js"),p=require("../../third-parties/GoogleRecaptcha/GoogleRecaptcha.js");function q({googleAnalyticsId:s,googleTagManagerId:o,googleRecaptchaSiteKey:n,facebookPixelId:l,children:a}){const d=x.getQueryClient();return e.jsxs(u.QueryClientProvider,{client:d,children:[a,e.jsx(t.Toaster,{toaster:g.toaster,children:r=>e.jsxs(t.Toast.Root,{className:"shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]",children:[e.jsx("div",{className:i.twMerge("flex size-9.5 items-center justify-center rounded-full border-2",r.type==="error"?"border-red-500/15":"border-green-500/15"),children:e.jsx("div",{className:i.twMerge("flex size-7 items-center justify-center rounded-full border-2",r.type==="error"?"border-red-500/35":"border-green-500/35"),children:e.jsx(y.AlertCircleIcon,{className:i.twMerge("size-5",r.type==="error"?"text-red-500":"text-green-500")})})}),e.jsxs("div",{className:"grow text-sm leading-none",children:[e.jsx(t.Toast.Title,{className:"font-semibold",children:r.title?r.title:r.type==="error"?"Error":"Success"}),e.jsx(t.Toast.Description,{className:"text-gray-700 mt-1",children:r.description?r.description:r.type==="error"?"Something went wrong.":"Operation completed successfully."})]}),e.jsx(t.Toast.CloseTrigger,{className:"text-gray-400 hover:text-gray-500 self-start",children:e.jsx(m.XIcon,{className:"size-5"})})]},r.id)}),l&&e.jsx(j.FacebookPixel,{fbId:l}),s&&e.jsx(c.GoogleAnalytics,{gaId:s}),o&&e.jsx(c.GoogleTagManager,{gtmId:o}),n&&e.jsx(p.GoogleRecaptcha,{siteKey:n})]})}exports.PortalProvider__client=q;
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { Toaster as
|
|
4
|
-
import {
|
|
3
|
+
import { Toaster as a, Toast as i } from "@ark-ui/react";
|
|
4
|
+
import { GoogleAnalytics as p, GoogleTagManager as f } from "@next/third-parties/google";
|
|
5
|
+
import { QueryClientProvider as g } from "@tanstack/react-query";
|
|
5
6
|
import { twMerge as o } from "tailwind-merge";
|
|
6
7
|
import "react";
|
|
7
8
|
import "../../utils/capitalize.mjs";
|
|
8
9
|
import "../../utils/parseDecimal.mjs";
|
|
9
10
|
import "../../constants/index.mjs";
|
|
10
11
|
import "../../utils/getLocaleInfo.mjs";
|
|
11
|
-
import { getQueryClient as
|
|
12
|
+
import { getQueryClient as u } from "../../utils/getQueryClient.mjs";
|
|
12
13
|
import "../../utils/isMobile.mjs";
|
|
13
|
-
import { toaster as
|
|
14
|
-
import { AlertCircleIcon as
|
|
15
|
-
import { XIcon as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import { toaster as x } from "../../client/utils/toaster.mjs";
|
|
15
|
+
import { AlertCircleIcon as y } from "../../icons/AlertCircleIcon.mjs";
|
|
16
|
+
import { XIcon as h } from "../../icons/XIcon.mjs";
|
|
17
|
+
import { FacebookPixel as v } from "../../third-parties/FacebookPixel/FacebookPixel.mjs";
|
|
18
|
+
import { GoogleRecaptcha as b } from "../../third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs";
|
|
19
|
+
function O({
|
|
20
|
+
googleAnalyticsId: l,
|
|
21
|
+
googleTagManagerId: n,
|
|
22
|
+
googleRecaptchaSiteKey: m,
|
|
23
|
+
facebookPixelId: s,
|
|
24
|
+
children: c
|
|
25
|
+
}) {
|
|
26
|
+
const d = u();
|
|
27
|
+
return /* @__PURE__ */ t(g, { client: d, children: [
|
|
28
|
+
c,
|
|
29
|
+
/* @__PURE__ */ r(a, { toaster: x, children: (e) => /* @__PURE__ */ t(
|
|
21
30
|
i.Root,
|
|
22
31
|
{
|
|
23
32
|
className: "shadow-xs border-gray-300 group z-[var(--z-index)] flex h-[var(--height)] w-[860px] max-w-full scale-[var(--scale)] items-center gap-lg rounded-xl border bg-white p-xl opacity-[var(--opacity)] transition-all duration-300 [translate:var(--x)_var(--y)_0]",
|
|
@@ -37,7 +46,7 @@ function I({ children: l }) {
|
|
|
37
46
|
e.type === "error" ? "border-red-500/35" : "border-green-500/35"
|
|
38
47
|
),
|
|
39
48
|
children: /* @__PURE__ */ r(
|
|
40
|
-
|
|
49
|
+
y,
|
|
41
50
|
{
|
|
42
51
|
className: o(
|
|
43
52
|
"size-5",
|
|
@@ -53,13 +62,17 @@ function I({ children: l }) {
|
|
|
53
62
|
/* @__PURE__ */ r(i.Title, { className: "font-semibold", children: e.title ? e.title : e.type === "error" ? "Error" : "Success" }),
|
|
54
63
|
/* @__PURE__ */ r(i.Description, { className: "text-gray-700 mt-1", children: e.description ? e.description : e.type === "error" ? "Something went wrong." : "Operation completed successfully." })
|
|
55
64
|
] }),
|
|
56
|
-
/* @__PURE__ */ r(i.CloseTrigger, { className: "text-gray-400 hover:text-gray-500 self-start", children: /* @__PURE__ */ r(
|
|
65
|
+
/* @__PURE__ */ r(i.CloseTrigger, { className: "text-gray-400 hover:text-gray-500 self-start", children: /* @__PURE__ */ r(h, { className: "size-5" }) })
|
|
57
66
|
]
|
|
58
67
|
},
|
|
59
68
|
e.id
|
|
60
|
-
) })
|
|
69
|
+
) }),
|
|
70
|
+
s && /* @__PURE__ */ r(v, { fbId: s }),
|
|
71
|
+
l && /* @__PURE__ */ r(p, { gaId: l }),
|
|
72
|
+
n && /* @__PURE__ */ r(f, { gtmId: n }),
|
|
73
|
+
m && /* @__PURE__ */ r(b, { siteKey: m })
|
|
61
74
|
] });
|
|
62
75
|
}
|
|
63
76
|
export {
|
|
64
|
-
|
|
77
|
+
O as PortalProvider__client
|
|
65
78
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PortalProviderProps {
|
|
3
|
+
googleAnalyticsId?: string;
|
|
4
|
+
googleTagManagerId?: string;
|
|
5
|
+
googleRecaptchaSiteKey?: string;
|
|
6
|
+
facebookPixelId?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function PortalProvider({ children, ...props }: PortalProviderProps): Promise<import("react").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@tanstack/react-query")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@tanstack/react-query");require("react");const o=require("../../server/utils/prefetchAccountQuery.js");require("@opexa/portal-sdk-core");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const n=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../server/services/getSession.js");require("date-fns");require("next/headers");const c=require("../../server/utils/prefetchSessionQuery.js"),s=require("../../server/utils/prefetchWalletQuery.js"),l=require("./PortalProvider.client.js");async function q({children:t,...i}){const u=n.getQueryClient();return await Promise.all([c.prefetchSessionQuery(),o.prefetchAccountQuery(),s.prefetchWalletQuery()]),e.jsx(l.PortalProvider__client,{...i,children:e.jsx(r.HydrationBoundary,{state:r.dehydrate(u),children:t})})}exports.PortalProvider=q;
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { HydrationBoundary as e, dehydrate as
|
|
3
|
-
import
|
|
2
|
+
import { HydrationBoundary as e, dehydrate as m } from "@tanstack/react-query";
|
|
3
|
+
import "react";
|
|
4
|
+
import { prefetchAccountQuery as p } from "../../server/utils/prefetchAccountQuery.mjs";
|
|
4
5
|
import "@opexa/portal-sdk-core";
|
|
5
6
|
import "../../constants/index.mjs";
|
|
6
7
|
import "../../utils/capitalize.mjs";
|
|
7
8
|
import "../../utils/parseDecimal.mjs";
|
|
8
9
|
import "../../utils/getLocaleInfo.mjs";
|
|
9
|
-
import { getQueryClient as
|
|
10
|
+
import { getQueryClient as n } from "../../utils/getQueryClient.mjs";
|
|
10
11
|
import "../../utils/isMobile.mjs";
|
|
12
|
+
import "../../server/services/getSession.mjs";
|
|
13
|
+
import "date-fns";
|
|
11
14
|
import "next/headers";
|
|
12
|
-
import { prefetchSessionQuery as
|
|
15
|
+
import { prefetchSessionQuery as a } from "../../server/utils/prefetchSessionQuery.mjs";
|
|
13
16
|
import { prefetchWalletQuery as f } from "../../server/utils/prefetchWalletQuery.mjs";
|
|
14
|
-
import {
|
|
15
|
-
async function
|
|
16
|
-
|
|
17
|
+
import { PortalProvider__client as c } from "./PortalProvider.client.mjs";
|
|
18
|
+
async function B({
|
|
19
|
+
children: t,
|
|
20
|
+
...o
|
|
21
|
+
}) {
|
|
22
|
+
const i = n();
|
|
17
23
|
return await Promise.all([
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
a(),
|
|
25
|
+
p(),
|
|
20
26
|
f()
|
|
21
|
-
]), /* @__PURE__ */ r(
|
|
27
|
+
]), /* @__PURE__ */ r(c, { ...o, children: /* @__PURE__ */ r(e, { state: m(i), children: t }) });
|
|
22
28
|
}
|
|
23
29
|
export {
|
|
24
|
-
|
|
30
|
+
B as PortalProvider
|
|
25
31
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface PromoProps {
|
|
2
2
|
id: string;
|
|
3
|
+
/** @default '/promos' */
|
|
4
|
+
viewAllPromosUrl?: string;
|
|
5
|
+
className?: string;
|
|
3
6
|
}
|
|
4
|
-
export declare function Promo(props: PromoProps): import("react").JSX.Element
|
|
7
|
+
export declare function Promo(props: PromoProps): Promise<import("react").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./PromoContent.js");function r(o){return e.jsx(t.PromoContent,{id:o.id})}exports.Promo=r;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./PromoContent.js");async function r(o){return e.jsx(t.PromoContent,{id:o.id})}exports.Promo=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("next/image"),u=require("next/link"),r=require("../../icons/ChevronLeftIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const a=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("../../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");const t=require("../../ui/Prose.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function l(i){return e.jsxs("div",{className:i.className,children:[e.jsxs(u,{href:i.viewAllPromosUrl??"/promos",className:"text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold",children:[e.jsx(r.ChevronLeftIcon,{className:"size-6"}),"Back to all Promotions"]}),e.jsx(s,{src:"https://s3.ap-east-1.amazonaws.com/opexa-assets.opexasystem.com/assets/BSxIXEsa59_zzMAR27-ALLDAYREBATE06-STATIC-WEB-HB-1920x1080.png",alt:"",width:1024,height:600,className:"mt-xl h-auto w-full rounded-xl lg:mt-6"}),e.jsx(a.Button,{className:"mt-xl lg:mt-6",children:"Deposit Now"}),e.jsx("h1",{className:"mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl",children:"Welcome Bonus 100% up to $500 + 10 Free Spins"}),e.jsx("p",{className:"text-text-secondary-700 mt-xl lg:mt-6",children:"Ends 5/26/2025, 1:59:59 AM"}),e.jsxs(t.Prose,{className:"mt-2xl lg:mt-6",children:[e.jsx("p",{children:"Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien varius id."}),e.jsx("p",{children:"Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis fusce augue enim. Quis at habitant diam at. Suscipit tristique risus, at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet sodales id est ac volutpat."}),e.jsx("p",{children:"Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris id. Non pellentesque congue eget consectetur turpis. Sapien, dictum molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh orci."}),e.jsx("p",{children:"Dolor enim eu tortor urna sed duis nulla. Aliquam vestibulum, nulla odio nisl vitae. In aliquet pellentesque aenean hac vestibulum turpis mi bibendum diam. Tempor integer aliquam in vitae malesuada fringilla."}),e.jsx("p",{children:"Elit nisi in eleifend sed nisi. Pulvinar at orci, proin imperdiet commodo consectetur convallis risus. Sed condimentum enim dignissim adipiscing faucibus consequat, urna. Viverra purus et erat auctor aliquam. Risus, volutpat vulputate posuere purus sit congue convallis aliquet. Arcu id augue ut feugiat donec porttitor neque. Mauris, neque ultricies eu vestibulum, bibendum quam lorem id. Dolor lacus, eget nunc lectus in tellus, pharetra, porttitor."}),e.jsx("p",{children:"Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris id. Non pellentesque congue eget consectetur turpis. Sapien, dictum molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh orci."}),e.jsx("h5",{children:"General Conditions:"}),e.jsx("p",{children:"Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien varius id."}),e.jsx("p",{children:"Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis fusce augue enim. Quis at habitant diam at. Suscipit tristique risus, at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet sodales id est ac volutpat."})]}),e.jsxs(t.Prose,{className:"bg-bg-secondary mt-xl rounded-2xl p-2xl lg:mt-16 lg:p-4xl",children:[e.jsx("h2",{children:"Conclusion"}),e.jsx("p",{children:"Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at scelerisque amet nulla purus habitasse."}),e.jsx("p",{children:"Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas condimentum mi massa. In tincidunt pharetra consectetur sed duis facilisis metus. Etiam egestas in nec sed et. Quis lobortis at sit dictum eget nibh tortor commodo cursus."}),e.jsx("p",{children:"Odio felis sagittis, morbi feugiat tortor vitae feugiat fusce aliquet. Nam elementum urna nisi aliquet erat dolor enim. Ornare id morbi eget ipsum. Aliquam senectus neque ut id eget consectetur dictum. Donec posuere pharetra odio consequat scelerisque et, nunc tortor."})]})]})}exports.PromoContent=l;
|
|
@@ -1,31 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "../../
|
|
2
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import u from "next/image";
|
|
4
|
+
import a from "next/link";
|
|
5
|
+
import { ChevronLeftIcon as l } from "../../icons/ChevronLeftIcon.mjs";
|
|
6
|
+
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
7
|
+
import "../../ui/Avatar/Avatar.mjs";
|
|
8
|
+
import "../../ui/Badge/Badge.mjs";
|
|
9
|
+
import { Button as r } from "../../ui/Button/Button.mjs";
|
|
10
|
+
import "../../ui/Checkbox/Checkbox.mjs";
|
|
11
|
+
import "../../ui/Clipboard/Clipboard.mjs";
|
|
12
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
13
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
14
|
+
import "../../ui/DatePicker/DatePicker.mjs";
|
|
15
|
+
import "../../ui/Dialog/Dialog.mjs";
|
|
16
|
+
import "../../ui/Drawer/Drawer.mjs";
|
|
17
|
+
import "../../ui/Field/Field.mjs";
|
|
18
|
+
import "@ark-ui/react";
|
|
7
19
|
import "../../utils/capitalize.mjs";
|
|
8
20
|
import "../../utils/parseDecimal.mjs";
|
|
21
|
+
import "../../constants/index.mjs";
|
|
9
22
|
import "../../utils/getLocaleInfo.mjs";
|
|
10
23
|
import "../../utils/getQueryClient.mjs";
|
|
11
24
|
import "../../utils/isMobile.mjs";
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "../../
|
|
16
|
-
import "../../
|
|
17
|
-
import "
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
25
|
+
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
26
|
+
import "../../ui/NumberInput/NumberInput.mjs";
|
|
27
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
28
|
+
import "../../ui/PinInput/PinInput.mjs";
|
|
29
|
+
import "../../ui/Popover/Popover.mjs";
|
|
30
|
+
import "tailwind-merge";
|
|
31
|
+
import "../../ui/Progress/Progress.mjs";
|
|
32
|
+
import { Prose as s } from "../../ui/Prose.mjs";
|
|
33
|
+
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
34
|
+
import "../../ui/Select/Select.mjs";
|
|
35
|
+
import "../../ui/Table/Table.mjs";
|
|
36
|
+
import "../../ui/Tabs/Tabs.mjs";
|
|
37
|
+
function W(t) {
|
|
38
|
+
return /* @__PURE__ */ i("div", { className: t.className, children: [
|
|
39
|
+
/* @__PURE__ */ i(
|
|
40
|
+
a,
|
|
41
|
+
{
|
|
42
|
+
href: t.viewAllPromosUrl ?? "/promos",
|
|
43
|
+
className: "text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e(l, { className: "size-6" }),
|
|
46
|
+
"Back to all Promotions"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
u,
|
|
52
|
+
{
|
|
53
|
+
src: "https://s3.ap-east-1.amazonaws.com/opexa-assets.opexasystem.com/assets/BSxIXEsa59_zzMAR27-ALLDAYREBATE06-STATIC-WEB-HB-1920x1080.png",
|
|
54
|
+
alt: "",
|
|
55
|
+
width: 1024,
|
|
56
|
+
height: 600,
|
|
57
|
+
className: "mt-xl h-auto w-full rounded-xl lg:mt-6"
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ e(r, { className: "mt-xl lg:mt-6", children: "Deposit Now" }),
|
|
61
|
+
/* @__PURE__ */ e("h1", { className: "mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: "Welcome Bonus 100% up to $500 + 10 Free Spins" }),
|
|
62
|
+
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 mt-xl lg:mt-6", children: "Ends 5/26/2025, 1:59:59 AM" }),
|
|
63
|
+
/* @__PURE__ */ i(s, { className: "mt-2xl lg:mt-6", children: [
|
|
64
|
+
/* @__PURE__ */ e("p", { children: "Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien varius id." }),
|
|
65
|
+
/* @__PURE__ */ e("p", { children: "Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis fusce augue enim. Quis at habitant diam at. Suscipit tristique risus, at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet sodales id est ac volutpat." }),
|
|
66
|
+
/* @__PURE__ */ e("p", { children: "Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris id. Non pellentesque congue eget consectetur turpis. Sapien, dictum molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh orci." }),
|
|
67
|
+
/* @__PURE__ */ e("p", { children: "Dolor enim eu tortor urna sed duis nulla. Aliquam vestibulum, nulla odio nisl vitae. In aliquet pellentesque aenean hac vestibulum turpis mi bibendum diam. Tempor integer aliquam in vitae malesuada fringilla." }),
|
|
68
|
+
/* @__PURE__ */ e("p", { children: "Elit nisi in eleifend sed nisi. Pulvinar at orci, proin imperdiet commodo consectetur convallis risus. Sed condimentum enim dignissim adipiscing faucibus consequat, urna. Viverra purus et erat auctor aliquam. Risus, volutpat vulputate posuere purus sit congue convallis aliquet. Arcu id augue ut feugiat donec porttitor neque. Mauris, neque ultricies eu vestibulum, bibendum quam lorem id. Dolor lacus, eget nunc lectus in tellus, pharetra, porttitor." }),
|
|
69
|
+
/* @__PURE__ */ e("p", { children: "Ipsum sit mattis nulla quam nulla. Gravida id gravida ac enim mauris id. Non pellentesque congue eget consectetur turpis. Sapien, dictum molestie sem tempor. Diam elit, orci, tincidunt aenean tempus. Quis velit eget ut tortor tellus. Sed vel, congue felis elit erat nam nibh orci." }),
|
|
70
|
+
/* @__PURE__ */ e("h5", { children: "General Conditions:" }),
|
|
71
|
+
/* @__PURE__ */ e("p", { children: "Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere vulputate arcu amet, vitae nisi, tellus tincidunt. At feugiat sapien varius id." }),
|
|
72
|
+
/* @__PURE__ */ e("p", { children: "Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat mollis at volutpat lectus velit, sed auctor. Porttitor fames arcu quis fusce augue enim. Quis at habitant diam at. Suscipit tristique risus, at donec. In turpis vel et quam imperdiet. Ipsum molestie aliquet sodales id est ac volutpat." })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ i(s, { className: "bg-bg-secondary mt-xl rounded-2xl p-2xl lg:mt-16 lg:p-4xl", children: [
|
|
75
|
+
/* @__PURE__ */ e("h2", { children: "Conclusion" }),
|
|
76
|
+
/* @__PURE__ */ e("p", { children: "Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at scelerisque amet nulla purus habitasse." }),
|
|
77
|
+
/* @__PURE__ */ e("p", { children: "Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas condimentum mi massa. In tincidunt pharetra consectetur sed duis facilisis metus. Etiam egestas in nec sed et. Quis lobortis at sit dictum eget nibh tortor commodo cursus." }),
|
|
78
|
+
/* @__PURE__ */ e("p", { children: "Odio felis sagittis, morbi feugiat tortor vitae feugiat fusce aliquet. Nam elementum urna nisi aliquet erat dolor enim. Ornare id morbi eget ipsum. Aliquam senectus neque ut id eget consectetur dictum. Donec posuere pharetra odio consequat scelerisque et, nunc tortor." })
|
|
79
|
+
] })
|
|
80
|
+
] });
|
|
28
81
|
}
|
|
29
82
|
export {
|
|
30
|
-
|
|
83
|
+
W as PromoContent
|
|
31
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("embla-carousel-react"),g=require("next/link"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("embla-carousel-react"),g=require("next/link"),i=require("react"),N=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");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");require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const f=require("../../client/hooks/usePromosQuery.js"),v=require("../../icons/ArrowLeftIcon.js"),j=require("../../icons/ArrowRightIcon.js"),y=require("../../icons/ChevronRightIcon.js"),P=require("../../icons/Gift01Icon.js");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");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");const S=require("../Empty.js"),w=require("./PromoItem.js");function C(o){const n=f.usePromosQuery({}).data||[],[c,r]=h({align:"start",slidesToScroll:1,breakpoints:{"(min-width: 1024px)":{slidesToScroll:3}}}),[u,a]=i.useState(!0),[d,q]=i.useState(!0),m=i.useCallback(()=>r==null?void 0:r.scrollPrev(),[r]),x=i.useCallback(async()=>{r==null||r.scrollNext()},[r]),t=i.useCallback(s=>{a(!(s!=null&&s.canScrollPrev())),q(!(s!=null&&s.canScrollNext()))},[]);return i.useEffect(()=>{r&&(t(r),r.on("reInit",t).on("select",t))},[r,t]),e.jsxs("div",{className:o.className,children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("h2",{className:"text-lg font-semibold",children:o.heading??"Promotions"}),e.jsx("div",{className:"grow"}),e.jsxs("div",{className:"flex items-center justify-center gap-xl",children:[e.jsxs(g,{href:o.viewAllUrl??"/promos",className:"text-button-tertiary-fg flex gap-sm text-sm font-semibold",children:["See All",e.jsx(y.ChevronRightIcon,{className:"size-5 lg:hidden"})]}),e.jsxs("div",{className:"hidden lg:flex",children:[e.jsx(l.Button,{variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",onClick:m,disabled:u,"aria-label":"Previous",children:e.jsx(v.ArrowLeftIcon,{className:"size-5"})}),e.jsx(l.Button,{variant:"outline",colorScheme:"gray",className:"rounded-l-none",onClick:x,disabled:d,"aria-label":"Next",children:e.jsx(j.ArrowRightIcon,{className:"size-5"})})]})]})]}),n.length<=0&&e.jsx(S.Empty,{icon:P.Gift01Icon,title:"No Promos",message:"No promo is currently available.",className:"mt-8"}),n.length>=1&&e.jsx("div",{ref:c,className:"relative mt-lg lg:overflow-hidden",children:e.jsx("div",{className:N.twMerge("grid auto-cols-[calc((100%-(0.375rem*2))/1)] grid-flow-col gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/3)] lg:gap-md"),children:n.map(s=>e.jsx(w.PromosItem,{promo:s,shouldShowDescription:o.shouldShowDescription},s.id))})})]})}exports.PromoCarousel=C;
|
|
@@ -13,6 +13,7 @@ import "../../utils/parseDecimal.mjs";
|
|
|
13
13
|
import "../../utils/getLocaleInfo.mjs";
|
|
14
14
|
import "../../utils/getQueryClient.mjs";
|
|
15
15
|
import "../../utils/isMobile.mjs";
|
|
16
|
+
import "../../client/services/getSession.mjs";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
19
|
import "../../client/hooks/useGlobalStore.mjs";
|
|
@@ -30,6 +31,7 @@ import { Button as c } from "../../ui/Button/Button.mjs";
|
|
|
30
31
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
31
32
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
32
33
|
import "../../ui/Collapsible/Collapsible.mjs";
|
|
34
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
33
35
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
34
36
|
import "../../ui/Dialog/Dialog.mjs";
|
|
35
37
|
import "../../ui/Drawer/Drawer.mjs";
|
|
@@ -45,9 +47,9 @@ import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
45
47
|
import "../../ui/Select/Select.mjs";
|
|
46
48
|
import "../../ui/Table/Table.mjs";
|
|
47
49
|
import "../../ui/Tabs/Tabs.mjs";
|
|
48
|
-
import { Empty as B } from "../Empty
|
|
50
|
+
import { Empty as B } from "../Empty.mjs";
|
|
49
51
|
import { PromosItem as D } from "./PromoItem.mjs";
|
|
50
|
-
function
|
|
52
|
+
function Bo(i) {
|
|
51
53
|
const s = w({}).data || [], [a, o] = N({
|
|
52
54
|
align: "start",
|
|
53
55
|
slidesToScroll: 1,
|
|
@@ -138,5 +140,5 @@ function Co(i) {
|
|
|
138
140
|
] });
|
|
139
141
|
}
|
|
140
142
|
export {
|
|
141
|
-
|
|
143
|
+
Bo as PromoCarousel
|
|
142
144
|
};
|