@opexa/portal-components 0.0.63 → 0.0.65
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/components/Bonuses/Bonuses.client.js +4 -4
- package/dist/components/Bonuses/BonusesTrigger.d.ts +5 -0
- package/dist/components/Bonuses/BonusesTrigger.js +19 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/Bonuses/index.js +2 -1
- package/package.json +1 -1
- package/dist/components/Account/Account.d.ts +0 -23
- package/dist/components/Account/Account.js +0 -107
- package/dist/components/Account/AccountTrigger.d.ts +0 -6
- package/dist/components/Account/AccountTrigger.js +0 -13
- package/dist/components/Account/account.recipe.d.ts +0 -61
- package/dist/components/Account/account.recipe.js +0 -32
- package/dist/components/Account/index.d.ts +0 -2
- package/dist/components/Account/index.js +0 -2
- package/dist/components/AccountInfo/AccountInfo.d.ts +0 -4
- package/dist/components/AccountInfo/AccountInfo.js +0 -143
- package/dist/components/AccountInfo/index.d.ts +0 -1
- package/dist/components/AccountInfo/index.js +0 -1
- package/dist/components/AccountSecurity/AccountSecurity.d.ts +0 -4
- package/dist/components/AccountSecurity/AccountSecurity.js +0 -171
- package/dist/components/AccountSecurity/index.d.ts +0 -1
- package/dist/components/AccountSecurity/index.js +0 -1
- package/dist/components/AccountVerification/AccountVerification.d.ts +0 -4
- package/dist/components/AccountVerification/AccountVerification.js +0 -37
- package/dist/components/AccountVerification/index.d.ts +0 -1
- package/dist/components/AccountVerification/index.js +0 -1
- package/dist/components/Banner/Banner.d.ts +0 -11
- package/dist/components/Banner/Banner.js +0 -38
- package/dist/components/Banner/index.d.ts +0 -1
- package/dist/components/Banner/index.js +0 -1
- package/dist/components/BetRecords/BetRecords.d.ts +0 -7
- package/dist/components/BetRecords/BetRecords.js +0 -181
- package/dist/components/BetRecords/index.d.ts +0 -1
- package/dist/components/BetRecords/index.js +0 -1
- package/dist/components/Bonus/Bonus.client.d.ts +0 -2
- package/dist/components/Bonus/Bonus.client.js +0 -9
- package/dist/components/Bonus/Bonus.d.ts +0 -10
- package/dist/components/Bonus/Bonus.js +0 -5
- package/dist/components/Bonus/index.d.ts +0 -1
- package/dist/components/Bonus/index.js +0 -1
- package/dist/components/Bonuses/Bonuses.d.ts +0 -15
- package/dist/components/Bonuses/Bonuses.js +0 -7
- package/dist/components/Cashback/Cashback.client.d.ts +0 -2
- package/dist/components/Cashback/Cashback.client.js +0 -27
- package/dist/components/Cashback/Cashback.d.ts +0 -7
- package/dist/components/Cashback/Cashback.js +0 -15
- package/dist/components/Cashback/index.d.ts +0 -1
- package/dist/components/Cashback/index.js +0 -1
- package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
- package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
- package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
- package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
- package/dist/components/CashbackBonus/index.d.ts +0 -1
- package/dist/components/CashbackBonus/index.js +0 -1
- package/dist/components/DepositWithdrawal/AmountChoices.d.ts +0 -11
- package/dist/components/DepositWithdrawal/AmountChoices.js +0 -25
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.d.ts +0 -8
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +0 -31
- package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +0 -75
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +0 -129
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +0 -126
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +0 -129
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +0 -96
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +0 -21
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +0 -16
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +0 -102
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +0 -60
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +0 -96
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +0 -21
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +0 -16
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +0 -101
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +0 -60
- package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +0 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +0 -39
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +0 -5
- package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +0 -21
- package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +0 -10
- package/dist/components/DepositWithdrawal/PaymentMethods.js +0 -60
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +0 -109
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +0 -131
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +0 -101
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +0 -109
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +0 -91
- package/dist/components/DepositWithdrawal/index.d.ts +0 -1
- package/dist/components/DepositWithdrawal/index.js +0 -1
- package/dist/components/DepositWithdrawal/utils.d.ts +0 -3
- package/dist/components/DepositWithdrawal/utils.js +0 -9
- package/dist/components/Disclaimer/Disclaimer.d.ts +0 -5
- package/dist/components/Disclaimer/Disclaimer.js +0 -14
- package/dist/components/Disclaimer/index.d.ts +0 -1
- package/dist/components/Disclaimer/index.js +0 -1
- package/dist/components/Disclaimer/useDisclaimer.d.ts +0 -4
- package/dist/components/Disclaimer/useDisclaimer.js +0 -37
- package/dist/components/Empty.d.ts +0 -10
- package/dist/components/Empty.js +0 -7
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +0 -2
- package/dist/components/FavoriteGames/FavoriteGames.client.js +0 -31
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +0 -6
- package/dist/components/FavoriteGames/FavoriteGames.js +0 -7
- package/dist/components/FavoriteGames/index.d.ts +0 -1
- package/dist/components/FavoriteGames/index.js +0 -1
- package/dist/components/GameLaunch/GameLaunch.d.ts +0 -1
- package/dist/components/GameLaunch/GameLaunch.js +0 -75
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +0 -7
- package/dist/components/GameLaunch/GameLaunchTrigger.js +0 -57
- package/dist/components/GameLaunch/index.d.ts +0 -2
- package/dist/components/GameLaunch/index.js +0 -2
- package/dist/components/GameProviders/GameProviders.d.ts +0 -11
- package/dist/components/GameProviders/GameProviders.js +0 -32
- package/dist/components/GameProviders/index.d.ts +0 -1
- package/dist/components/GameProviders/index.js +0 -1
- package/dist/components/Games/BadgeNew.d.ts +0 -2
- package/dist/components/Games/BadgeNew.js +0 -4
- package/dist/components/Games/BadgePopular.d.ts +0 -2
- package/dist/components/Games/BadgePopular.js +0 -4
- package/dist/components/Games/BadgeTop.d.ts +0 -2
- package/dist/components/Games/BadgeTop.js +0 -4
- package/dist/components/Games/Game.d.ts +0 -4
- package/dist/components/Games/Game.js +0 -37
- package/dist/components/Games/GameContext.d.ts +0 -2
- package/dist/components/Games/GameContext.js +0 -2
- package/dist/components/Games/Games.d.ts +0 -8
- package/dist/components/Games/Games.js +0 -6
- package/dist/components/Games/GamesCarousel.client.d.ts +0 -2
- package/dist/components/Games/GamesCarousel.client.js +0 -58
- package/dist/components/Games/GamesCarousel.d.ts +0 -16
- package/dist/components/Games/GamesCarousel.js +0 -11
- package/dist/components/Games/GamesList.client.d.ts +0 -2
- package/dist/components/Games/GamesList.client.js +0 -14
- package/dist/components/Games/GamesList.d.ts +0 -11
- package/dist/components/Games/GamesList.js +0 -10
- package/dist/components/Games/index.d.ts +0 -1
- package/dist/components/Games/index.js +0 -1
- package/dist/components/GamesSearch/GamesSearch.d.ts +0 -8
- package/dist/components/GamesSearch/GamesSearch.js +0 -45
- package/dist/components/GamesSearch/index.d.ts +0 -1
- package/dist/components/GamesSearch/index.js +0 -1
- package/dist/components/InfiniteScroll.d.ts +0 -10
- package/dist/components/InfiniteScroll.js +0 -25
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -57
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -8
- package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -8
- package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -103
- package/dist/components/JackpotCounter/index.d.ts +0 -1
- package/dist/components/JackpotCounter/index.js +0 -1
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
- package/dist/components/Jackpots/JackpotGameProviders.js +0 -38
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
- package/dist/components/Jackpots/JackpotRules.d.ts +0 -6
- package/dist/components/Jackpots/JackpotRules.js +0 -9
- package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
- package/dist/components/Jackpots/Jackpots.client.js +0 -28
- package/dist/components/Jackpots/Jackpots.d.ts +0 -10
- package/dist/components/Jackpots/Jackpots.js +0 -21
- package/dist/components/Jackpots/index.d.ts +0 -1
- package/dist/components/Jackpots/index.js +0 -1
- package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
- package/dist/components/Jackpots/useJackpotItemData.js +0 -87
- package/dist/components/KYC/Header.d.ts +0 -1
- package/dist/components/KYC/Header.js +0 -6
- package/dist/components/KYC/Indicator.d.ts +0 -1
- package/dist/components/KYC/Indicator.js +0 -9
- package/dist/components/KYC/KYC.d.ts +0 -1
- package/dist/components/KYC/KYC.js +0 -26
- package/dist/components/KYC/KYCContext.d.ts +0 -2
- package/dist/components/KYC/KYCContext.js +0 -2
- package/dist/components/KYC/KYCTrigger.d.ts +0 -5
- package/dist/components/KYC/KYCTrigger.js +0 -14
- package/dist/components/KYC/Step1.d.ts +0 -1
- package/dist/components/KYC/Step1.js +0 -12
- package/dist/components/KYC/Step2.d.ts +0 -1
- package/dist/components/KYC/Step2.js +0 -12
- package/dist/components/KYC/Step3.d.ts +0 -1
- package/dist/components/KYC/Step3.js +0 -11
- package/dist/components/KYC/Step4.d.ts +0 -1
- package/dist/components/KYC/Step4.js +0 -6
- package/dist/components/KYC/index.d.ts +0 -2
- package/dist/components/KYC/index.js +0 -2
- package/dist/components/KYC/useKYC.d.ts +0 -10
- package/dist/components/KYC/useKYC.js +0 -8
- package/dist/components/Marquee/Marquee.d.ts +0 -5
- package/dist/components/Marquee/Marquee.js +0 -5
- package/dist/components/Marquee/index.d.ts +0 -1
- package/dist/components/Marquee/index.js +0 -1
- package/dist/components/Messages/MessageItem.d.ts +0 -4
- package/dist/components/Messages/MessageItem.js +0 -34
- package/dist/components/Messages/MessagePopup.d.ts +0 -1
- package/dist/components/Messages/MessagePopup.js +0 -20
- package/dist/components/Messages/MessageTrigger.d.ts +0 -8
- package/dist/components/Messages/MessageTrigger.js +0 -18
- package/dist/components/Messages/Messages.d.ts +0 -14
- package/dist/components/Messages/Messages.js +0 -38
- package/dist/components/Messages/MessagesTrigger.d.ts +0 -6
- package/dist/components/Messages/MessagesTrigger.js +0 -14
- package/dist/components/Messages/index.d.ts +0 -4
- package/dist/components/Messages/index.js +0 -4
- package/dist/components/Messages/utils.d.ts +0 -3
- package/dist/components/Messages/utils.js +0 -27
- package/dist/components/PortalProvider/PortalProvider.d.ts +0 -9
- package/dist/components/PortalProvider/PortalProvider.js +0 -18
- package/dist/components/PortalProvider/Providers.d.ts +0 -4
- package/dist/components/PortalProvider/Providers.js +0 -12
- package/dist/components/PortalProvider/Snackbar.d.ts +0 -1
- package/dist/components/PortalProvider/Snackbar.js +0 -21
- package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
- package/dist/components/PortalProvider/WebVitals.js +0 -8
- package/dist/components/PortalProvider/index.d.ts +0 -1
- package/dist/components/PortalProvider/index.js +0 -1
- package/dist/components/Promo/Promo.client.d.ts +0 -2
- package/dist/components/Promo/Promo.client.js +0 -27
- package/dist/components/Promo/Promo.d.ts +0 -7
- package/dist/components/Promo/Promo.js +0 -15
- package/dist/components/Promo/index.d.ts +0 -1
- package/dist/components/Promo/index.js +0 -1
- package/dist/components/Promos/Cashback.d.ts +0 -7
- package/dist/components/Promos/Cashback.js +0 -17
- package/dist/components/Promos/Promo.d.ts +0 -7
- package/dist/components/Promos/Promo.js +0 -17
- package/dist/components/Promos/Promos.d.ts +0 -15
- package/dist/components/Promos/Promos.js +0 -13
- package/dist/components/Promos/PromosCarousel.d.ts +0 -2
- package/dist/components/Promos/PromosCarousel.js +0 -45
- package/dist/components/Promos/PromosGrid.d.ts +0 -2
- package/dist/components/Promos/PromosGrid.js +0 -16
- package/dist/components/Promos/index.d.ts +0 -1
- package/dist/components/Promos/index.js +0 -1
- package/dist/components/Protected/Protected.d.ts +0 -6
- package/dist/components/Protected/Protected.js +0 -8
- package/dist/components/Protected/index.d.ts +0 -1
- package/dist/components/Protected/index.js +0 -1
- package/dist/components/Quests/CountdownTimer.d.ts +0 -15
- package/dist/components/Quests/CountdownTimer.js +0 -33
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -73
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -8
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
- package/dist/components/Quests/Quests.client.d.ts +0 -2
- package/dist/components/Quests/Quests.client.js +0 -27
- package/dist/components/Quests/Quests.d.ts +0 -6
- package/dist/components/Quests/Quests.js +0 -7
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -19
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -8
- package/dist/components/Quests/index.d.ts +0 -1
- package/dist/components/Quests/index.js +0 -1
- package/dist/components/Search/Search.d.ts +0 -6
- package/dist/components/Search/Search.js +0 -38
- package/dist/components/Search/SearchTrigger.d.ts +0 -5
- package/dist/components/Search/SearchTrigger.js +0 -14
- package/dist/components/Search/index.d.ts +0 -2
- package/dist/components/Search/index.js +0 -2
- package/dist/components/SignIn/MobileNumberSignIn.d.ts +0 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +0 -121
- package/dist/components/SignIn/NameAndPasswordSignIn.d.ts +0 -1
- package/dist/components/SignIn/NameAndPasswordSignIn.js +0 -116
- package/dist/components/SignIn/SignIn.d.ts +0 -7
- package/dist/components/SignIn/SignIn.js +0 -18
- package/dist/components/SignIn/SignInContext.d.ts +0 -2
- package/dist/components/SignIn/SignInContext.js +0 -2
- package/dist/components/SignIn/SignInForm.d.ts +0 -1
- package/dist/components/SignIn/SignInForm.js +0 -10
- package/dist/components/SignIn/SignInMethod.d.ts +0 -1
- package/dist/components/SignIn/SignInMethod.js +0 -19
- package/dist/components/SignIn/SignInTrigger.d.ts +0 -6
- package/dist/components/SignIn/SignInTrigger.js +0 -14
- package/dist/components/SignIn/index.d.ts +0 -2
- package/dist/components/SignIn/index.js +0 -2
- package/dist/components/SignIn/useSignIn.d.ts +0 -10
- package/dist/components/SignIn/useSignIn.js +0 -11
- package/dist/components/SignUp/SignUp.d.ts +0 -7
- package/dist/components/SignUp/SignUp.js +0 -16
- package/dist/components/SignUp/SignUpForm.d.ts +0 -1
- package/dist/components/SignUp/SignUpForm.js +0 -133
- package/dist/components/SignUp/SignUpTrigger.d.ts +0 -6
- package/dist/components/SignUp/SignUpTrigger.js +0 -14
- package/dist/components/SignUp/index.d.ts +0 -2
- package/dist/components/SignUp/index.js +0 -2
- package/dist/components/TopWins/TopWins.client.d.ts +0 -2
- package/dist/components/TopWins/TopWins.client.js +0 -23
- package/dist/components/TopWins/TopWins.d.ts +0 -6
- package/dist/components/TopWins/TopWins.js +0 -7
- package/dist/components/TopWins/index.d.ts +0 -1
- package/dist/components/TopWins/index.js +0 -1
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
- package/dist/components/TournamentCounter/index.d.ts +0 -1
- package/dist/components/TournamentCounter/index.js +0 -1
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
- package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
- package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
- package/dist/components/Tournaments/TournamentRules.d.ts +0 -6
- package/dist/components/Tournaments/TournamentRules.js +0 -9
- package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
- package/dist/components/Tournaments/Tournaments.client.js +0 -19
- package/dist/components/Tournaments/Tournaments.d.ts +0 -10
- package/dist/components/Tournaments/Tournaments.js +0 -14
- package/dist/components/Tournaments/index.d.ts +0 -1
- package/dist/components/Tournaments/index.js +0 -1
- package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
- package/dist/components/Tournaments/useTournamentItemData.js +0 -64
- package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +0 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.js +0 -76
- package/dist/components/TransactionRecords/TableFilters.d.ts +0 -28
- package/dist/components/TransactionRecords/TableFilters.js +0 -212
- package/dist/components/TransactionRecords/TransactionRecords.d.ts +0 -7
- package/dist/components/TransactionRecords/TransactionRecords.js +0 -9
- package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +0 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +0 -51
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +0 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +0 -70
- package/dist/components/TransactionRecords/index.d.ts +0 -1
- package/dist/components/TransactionRecords/index.js +0 -1
- package/dist/components/index.js +0 -34
- /package/dist/{components/Bonuses → images}/money-on-hand.png +0 -0
- /package/dist/{components/Bonuses → images}/piggy-bank.png +0 -0
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ark, createListCollection, Portal } from '@ark-ui/react';
|
|
4
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
5
|
-
import { useForm } from 'react-hook-form';
|
|
6
|
-
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { useProfileCompletionQuery, useUpdateAccountMutation, } from '../../client/hooks/index.js';
|
|
9
|
-
import { toaster } from '../../client/utils/index.js';
|
|
10
|
-
import { AlertCircleIcon, CheckIcon, CheckVerified02Icon, ChevronDownIcon, EyeIcon, EyeOffIcon, } from '../../icons/index.js';
|
|
11
|
-
import { Button, Field, PasswordInput, Select } from '../../ui/index.js';
|
|
12
|
-
export function AccountSecurity(props) {
|
|
13
|
-
return (_jsxs("div", { className: twMerge('space-y-3xl', props.className), children: [_jsx(LoginPassword, {}), _jsx(TransactionPassword, {})] }));
|
|
14
|
-
}
|
|
15
|
-
function LoginPassword() {
|
|
16
|
-
const profileCompletionQuery = useProfileCompletionQuery();
|
|
17
|
-
const profileCompletion = profileCompletionQuery.data;
|
|
18
|
-
const updateAccountMutation = useUpdateAccountMutation({
|
|
19
|
-
onSuccess() {
|
|
20
|
-
form.reset();
|
|
21
|
-
toaster.success({
|
|
22
|
-
description: 'Changes saved!',
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
onError(error) {
|
|
26
|
-
toaster.error({
|
|
27
|
-
description: error.message,
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
const schema = z
|
|
32
|
-
.object({
|
|
33
|
-
password: z.string().min(8).max(150).optional().or(z.literal('')),
|
|
34
|
-
confirmPassword: z.string().optional(),
|
|
35
|
-
secretQuestion: z.enum(SECRET_QUESTIONS).nullable().optional(),
|
|
36
|
-
secretAnswer: z
|
|
37
|
-
.string()
|
|
38
|
-
.min(2, 'Answer is too short')
|
|
39
|
-
.optional()
|
|
40
|
-
.or(z.literal('')),
|
|
41
|
-
})
|
|
42
|
-
.superRefine((data, ctx) => {
|
|
43
|
-
if (data.password && data.password !== data.confirmPassword) {
|
|
44
|
-
ctx.addIssue({
|
|
45
|
-
path: ['confirmPassword'],
|
|
46
|
-
code: z.ZodIssueCode.custom,
|
|
47
|
-
message: 'Passwords do not match',
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if (data.secretAnswer && !data.secretQuestion) {
|
|
51
|
-
ctx.addIssue({
|
|
52
|
-
path: ['secretQuestion'],
|
|
53
|
-
code: z.ZodIssueCode.custom,
|
|
54
|
-
message: 'Please select a security question',
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
if (data.secretQuestion && !data.secretAnswer) {
|
|
58
|
-
ctx.addIssue({
|
|
59
|
-
path: ['secretAnswer'],
|
|
60
|
-
code: z.ZodIssueCode.custom,
|
|
61
|
-
message: 'Please provide an answer to the security question',
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
const form = useForm({
|
|
66
|
-
mode: 'all',
|
|
67
|
-
resolver: zodResolver(schema),
|
|
68
|
-
defaultValues: {
|
|
69
|
-
password: '',
|
|
70
|
-
confirmPassword: '',
|
|
71
|
-
secretAnswer: '',
|
|
72
|
-
secretQuestion: null,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
const secretQuestion = form.watch('secretQuestion');
|
|
76
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "flex items-start gap-8", children: [_jsxs("div", { className: "grow", children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Log in password" }), _jsx("p", { className: "text-text-tertiary-600 text-sm", children: "Access your account by logging in with your name and password." })] }), _jsx(ark.svg, { asChild: true, className: twMerge('size-6', profileCompletion?.accountPassword
|
|
77
|
-
? 'text-text-success-primary'
|
|
78
|
-
: 'text-text-warning-primary'), children: profileCompletion?.accountPassword ? (_jsx(CheckVerified02Icon, {})) : (_jsx(AlertCircleIcon, {})) })] }), _jsxs("form", { className: "shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border", onSubmit: form.handleSubmit((data) => {
|
|
79
|
-
updateAccountMutation.mutate({
|
|
80
|
-
password: data.password ? data.password : undefined,
|
|
81
|
-
secretAnswer: data.secretAnswer ? data.secretAnswer : undefined,
|
|
82
|
-
secretQuestion: data.secretQuestion
|
|
83
|
-
? data.secretQuestion
|
|
84
|
-
: undefined,
|
|
85
|
-
});
|
|
86
|
-
}), children: [_jsxs("div", { className: "px-xl py-5 lg:px-3xl lg:py-5", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs(Field.Root, { className: "mt-6", invalid: !!form.formState.errors.confirmPassword, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Confirm Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('confirmPassword') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.confirmPassword?.message })] }), _jsxs(Field.Root, { className: "mt-6", invalid: !!form.formState.errors.secretQuestion, children: [_jsxs(Select.Root, { deselectable: true, collection: secretQuestionCollection, lazyMount: true, positioning: {
|
|
87
|
-
sameWidth: true,
|
|
88
|
-
}, value: secretQuestion ? [secretQuestion] : [], onValueChange: (details) => {
|
|
89
|
-
form.setValue('secretQuestion', z.enum(SECRET_QUESTIONS).safeParse(details.value.at(0))
|
|
90
|
-
.data ?? null, {
|
|
91
|
-
shouldDirty: true,
|
|
92
|
-
shouldTouch: true,
|
|
93
|
-
shouldValidate: true,
|
|
94
|
-
});
|
|
95
|
-
}, children: [_jsx(Select.Label, { children: "Security Question" }), _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }), _jsx(Portal, { children: _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: secretQuestionCollection.items.map((provider) => (_jsxs(Select.Item, { item: provider, children: [_jsx(Select.ItemText, { children: secretQuestionCollection.stringifyItem(provider) }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, provider))) }) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.secretQuestion?.message })] }), _jsxs(Field.Root, { className: "mt-6", invalid: !!form.formState.errors.secretAnswer, children: [_jsx(Field.Label, { children: "Answer" }), _jsx(Field.Input, { ...form.register('secretAnswer') }), _jsx(Field.ErrorText, { children: form.formState.errors.secretAnswer?.message })] })] }), form.formState.isDirty && (_jsxs("div", { className: "border-border-secondary flex justify-end gap-lg border-t px-xl py-lg lg:px-3xl lg:py-xl", children: [_jsx(Button, { size: "sm", variant: "outline", fullWidth: false, disabled: updateAccountMutation.isPending, onClick: () => form.reset(), children: "Cancel" }), _jsx(Button, { type: "submit", size: "sm", fullWidth: false, disabled: updateAccountMutation.isPending || !form.formState.isValid, children: "Save Changes" })] }))] })] }));
|
|
96
|
-
}
|
|
97
|
-
function TransactionPassword() {
|
|
98
|
-
const profileCompletionQuery = useProfileCompletionQuery();
|
|
99
|
-
const profileCompletion = profileCompletionQuery.data;
|
|
100
|
-
const updateAccountMutation = useUpdateAccountMutation({
|
|
101
|
-
onSuccess() {
|
|
102
|
-
form.reset();
|
|
103
|
-
toaster.success({
|
|
104
|
-
description: 'Changes saved!',
|
|
105
|
-
});
|
|
106
|
-
},
|
|
107
|
-
onError(error) {
|
|
108
|
-
toaster.error({
|
|
109
|
-
description: error.message,
|
|
110
|
-
});
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
const schema = z
|
|
114
|
-
.object({
|
|
115
|
-
password: z.string().min(8).max(150).optional().or(z.literal('')),
|
|
116
|
-
confirmPassword: z.string().optional(),
|
|
117
|
-
})
|
|
118
|
-
.superRefine((data, ctx) => {
|
|
119
|
-
if (data.password && data.password !== data.confirmPassword) {
|
|
120
|
-
ctx.addIssue({
|
|
121
|
-
path: ['confirmPassword'],
|
|
122
|
-
code: z.ZodIssueCode.custom,
|
|
123
|
-
message: 'Passwords do not match',
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
const form = useForm({
|
|
128
|
-
mode: 'all',
|
|
129
|
-
resolver: zodResolver(schema),
|
|
130
|
-
defaultValues: {
|
|
131
|
-
password: '',
|
|
132
|
-
confirmPassword: '',
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "flex items-start gap-8", children: [_jsxs("div", { className: "grow", children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Transaction password" }), _jsx("p", { className: "text-text-tertiary-600 text-sm", children: "The transaction password secures and confirms your wallet withdrawals." })] }), _jsx(ark.svg, { asChild: true, className: twMerge('size-6', profileCompletion?.accountPassword
|
|
136
|
-
? 'text-text-success-primary'
|
|
137
|
-
: 'text-text-warning-primary'), children: profileCompletion?.accountPassword ? (_jsx(CheckVerified02Icon, {})) : (_jsx(AlertCircleIcon, {})) })] }), _jsxs("form", { className: "shadow-xs bg-bg-primary-alt border-border-secondary mt-5 rounded-xl border", onSubmit: form.handleSubmit((data) => {
|
|
138
|
-
updateAccountMutation.mutate({
|
|
139
|
-
password: data.password ? data.password : undefined,
|
|
140
|
-
});
|
|
141
|
-
}), children: [_jsxs("div", { className: "px-xl py-5 lg:px-3xl lg:py-5", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.password, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsxs(Field.Root, { className: "mt-6", invalid: !!form.formState.errors.confirmPassword, children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Confirm Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { ...form.register('confirmPassword') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.confirmPassword?.message })] })] }), form.formState.isDirty && (_jsxs("div", { className: "border-border-secondary flex justify-end gap-lg border-t px-xl py-lg lg:px-3xl lg:py-xl", children: [_jsx(Button, { size: "sm", variant: "outline", fullWidth: false, disabled: updateAccountMutation.isPending, onClick: () => form.reset(), children: "Cancel" }), _jsx(Button, { type: "submit", size: "sm", fullWidth: false, disabled: !form.formState.isValid || updateAccountMutation.isPending, children: "Save Changes" })] }))] })] }));
|
|
142
|
-
}
|
|
143
|
-
const SECRET_QUESTIONS = [
|
|
144
|
-
'BEST_CHILDHOOD_FRIEND',
|
|
145
|
-
'BIRTH_PLACE',
|
|
146
|
-
'FAVORITE_BOOK',
|
|
147
|
-
'FAVORITE_MOVIE',
|
|
148
|
-
'FAVORITE_TEACHER',
|
|
149
|
-
'FIRST_CAR',
|
|
150
|
-
'FIRST_PET',
|
|
151
|
-
'FIRST_SCHOOL',
|
|
152
|
-
'MOTHERS_MAIDEN_NAME',
|
|
153
|
-
'PARENTS_MET_CITY',
|
|
154
|
-
];
|
|
155
|
-
const SECRET_QUESIONS_MAP = {
|
|
156
|
-
BEST_CHILDHOOD_FRIEND: 'Who is your best childhood friend?',
|
|
157
|
-
BIRTH_PLACE: 'Where were you born?',
|
|
158
|
-
FAVORITE_BOOK: 'What is your favorite book?',
|
|
159
|
-
FAVORITE_MOVIE: 'What is your favorite movie?',
|
|
160
|
-
FAVORITE_TEACHER: 'Who was your favorite teacher?',
|
|
161
|
-
FIRST_CAR: 'What was your first car?',
|
|
162
|
-
FIRST_PET: 'What was your first pet?',
|
|
163
|
-
FIRST_SCHOOL: 'What was the name of your first school?',
|
|
164
|
-
MOTHERS_MAIDEN_NAME: "What is your mother's maiden name?",
|
|
165
|
-
PARENTS_MET_CITY: 'In which city did your parents meet?',
|
|
166
|
-
};
|
|
167
|
-
const secretQuestionCollection = createListCollection({
|
|
168
|
-
items: SECRET_QUESTIONS,
|
|
169
|
-
itemToValue: (item) => item,
|
|
170
|
-
itemToString: (item) => SECRET_QUESIONS_MAP[item],
|
|
171
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AccountSecurity';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AccountSecurity.js';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ark } from '@ark-ui/react';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useGlobalStore, useMemberVerificationQuery, useProfileCompletionQuery, } from '../../client/hooks/index.js';
|
|
7
|
-
import { AlertCircleIcon, CheckVerified02Icon, CreditCard02Icon, FaceIdIcon, FileCheck02Icon, FileSearch02Icon, FileX02Icon, Globe05Icon, } from '../../icons/index.js';
|
|
8
|
-
import { Button } from '../../ui/index.js';
|
|
9
|
-
export function AccountVerification(props) {
|
|
10
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
11
|
-
kyc: ctx.kyc,
|
|
12
|
-
})));
|
|
13
|
-
const profileCompletionQuery = useProfileCompletionQuery();
|
|
14
|
-
const profileCompletion = profileCompletionQuery.data;
|
|
15
|
-
const verificationQuery = useMemberVerificationQuery();
|
|
16
|
-
const verification = verificationQuery.data;
|
|
17
|
-
const empty = verification == null;
|
|
18
|
-
const pending = verification?.status === 'PENDING';
|
|
19
|
-
const success = verification?.status === 'VERIFIED' || verification?.status === 'APPROVED';
|
|
20
|
-
const failed = verification?.status === 'REJECTED' ||
|
|
21
|
-
verification?.status === 'UNVERIFIED';
|
|
22
|
-
return (_jsxs("div", { className: props.className, children: [_jsxs("div", { className: "flex items-start gap-8", children: [_jsxs("div", { className: "grow", children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verify your identity" }), _jsx("p", { className: "text-text-tertiary-600 text-sm", children: "Complete personal verification to unlock all features and enhance account security." })] }), _jsx(ark.svg, { asChild: true, className: twMerge('size-6', profileCompletion?.accountVerification
|
|
23
|
-
? 'text-text-success-primary'
|
|
24
|
-
: 'text-text-warning-primary'), children: profileCompletion?.accountVerification ? (_jsx(CheckVerified02Icon, {})) : (_jsx(AlertCircleIcon, {})) })] }), _jsxs("div", { className: "shadow-xs border-border-secondary bg-bg-primary-alt mt-5 rounded-xl border", children: [_jsx("div", { className: "px-4 py-5", children: _jsxs("ul", { className: "space-y-lg", children: [_jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FileCheck02Icon, {}), "Basic Information"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(Globe05Icon, {}), "Proof of address"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(CreditCard02Icon, {}), "Government ID"] }), _jsxs("li", { className: "text-text-secondary-700 icon:size-6 icon:text-text-nav-item-button-icon flex items-center gap-lg", children: [_jsx(FaceIdIcon, {}), "Facial Verification"] })] }) }), _jsx("div", { className: "border-border-secondary flex justify-end border-t px-4 py-3 lg:py-xl", children: _jsx(Button, { size: "sm", className: "w-full lg:w-fit", onClick: () => globalStore.kyc.setOpen(true), children: "Verify Now" }) })] }), success && _jsx(VerificationSuccess, {}), pending && _jsx(VerificationInProgress, {}), failed && _jsx(VerificationFailed, {}), empty && _jsx(VerificationNotSubmitted, {})] }));
|
|
25
|
-
}
|
|
26
|
-
function VerificationNotSubmitted() {
|
|
27
|
-
return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(AlertCircleIcon, { className: "text-text-warning-primary size-5" }) }) }), _jsx("p", { className: "text-text-tertiary-600 max-w-[800px] text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] }));
|
|
28
|
-
}
|
|
29
|
-
function VerificationInProgress() {
|
|
30
|
-
return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-warning-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-warning-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileSearch02Icon, { className: "text-text-warning-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Under review" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "To serve you better and unlock all features, please provide valid identification documents. This helps protect your account and makes recovery easier if ever needed." })] })] }));
|
|
31
|
-
}
|
|
32
|
-
function VerificationSuccess() {
|
|
33
|
-
return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-success-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-success-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileCheck02Icon, { className: "text-text-success-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification successful" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "Your account has been successfully verified. You now have full access to all features and improved account security." })] })] }));
|
|
34
|
-
}
|
|
35
|
-
function VerificationFailed() {
|
|
36
|
-
return (_jsxs("div", { className: "shadow-xs border-border-primary bg-bg-primary-alt mt-6 flex flex-col gap-2 rounded-xl border p-xl lg:flex-row", children: [_jsx("div", { className: "border-text-error-primary/10 flex size-[2.1875rem] items-center justify-center rounded-full border-2", children: _jsx("div", { className: "border-text-error-primary/30 flex size-[1.666625rem] items-center justify-center rounded-full border-2", children: _jsx(FileX02Icon, { className: "text-text-error-primary size-5" }) }) }), _jsxs("div", { children: [_jsx("h2", { className: "text-text-secondary-700 text-sm font-semibold", children: "Verification failed" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm", children: "There was an issue with the verification process. Please try again or contact support for assistance." })] })] }));
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AccountVerification';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AccountVerification.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ImageProps } from 'next/image';
|
|
2
|
-
interface Banner {
|
|
3
|
-
src: ImageProps['src'];
|
|
4
|
-
redirectUrl?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BannerProps {
|
|
7
|
-
banners: Banner[];
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function Banner(props: BannerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import emblaCarouselAutoplay from 'embla-carousel-autoplay';
|
|
4
|
-
import useEmblaCarousel, {} from 'embla-carousel-react';
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
import { Fragment, useEffect, useState } from 'react';
|
|
8
|
-
import { twMerge } from 'tailwind-merge';
|
|
9
|
-
import { dataAttr } from '../../utils/index.js';
|
|
10
|
-
export function Banner(props) {
|
|
11
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
12
|
-
loop: true,
|
|
13
|
-
align: 'start',
|
|
14
|
-
}, [
|
|
15
|
-
emblaCarouselAutoplay({
|
|
16
|
-
playOnInit: true,
|
|
17
|
-
delay: 5000,
|
|
18
|
-
}),
|
|
19
|
-
]);
|
|
20
|
-
const [currentIndex, setCurrentIndex] = useState(0);
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
function handler(detail) {
|
|
23
|
-
setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
|
|
24
|
-
}
|
|
25
|
-
emblaApi?.on('scroll', handler);
|
|
26
|
-
emblaApi?.on('init', handler);
|
|
27
|
-
return () => {
|
|
28
|
-
emblaApi?.on('init', handler);
|
|
29
|
-
emblaApi?.off('scroll', handler);
|
|
30
|
-
};
|
|
31
|
-
}, [emblaApi]);
|
|
32
|
-
return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
|
|
33
|
-
const img = (_jsx(Image, { src: banner.src, alt: "", width: 1200, height: 300, className: "block h-auto w-full rounded-xl", priority: index === 0 }));
|
|
34
|
-
return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", children: img })) }, index));
|
|
35
|
-
}) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
|
|
36
|
-
emblaApi?.scrollTo(index);
|
|
37
|
-
}, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
|
|
38
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Banner';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Banner.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { GameProvider, GameType } from '@opexa/portal-sdk-core';
|
|
2
|
-
export interface BetRecordsProps {
|
|
3
|
-
gameTypes: GameType[];
|
|
4
|
-
gameProviders: GameProvider[];
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function BetRecords(props: BetRecordsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { createListCollection, parseDate, Portal } from '@ark-ui/react';
|
|
4
|
-
import { tz, TZDateMini } from '@date-fns/tz';
|
|
5
|
-
import { endOfDay, format, startOfDay } from 'date-fns';
|
|
6
|
-
import { useReducer, useState } from 'react';
|
|
7
|
-
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
-
import { useBetRecordsQuery, useInfiniteQueryHelper, useLocaleInfo, } from '../../client/hooks/index.js';
|
|
10
|
-
import { CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, File02Icon, SpinnerIcon, } from '../../icons/index.js';
|
|
11
|
-
import { Badge, DatePicker, IconButton, SegmentGroup, Select, Table, } from '../../ui/index.js';
|
|
12
|
-
import { capitalize, formatNumber } from '../../utils/index.js';
|
|
13
|
-
import { Empty } from '../Empty.js';
|
|
14
|
-
export function BetRecords(props) {
|
|
15
|
-
const [tab, setTab] = useState('all');
|
|
16
|
-
const [state, setState] = useReducer((prev, next) => ({
|
|
17
|
-
...prev,
|
|
18
|
-
...next,
|
|
19
|
-
}), {
|
|
20
|
-
page: 1,
|
|
21
|
-
pageSize: 10,
|
|
22
|
-
type: props.gameTypes[0],
|
|
23
|
-
});
|
|
24
|
-
const localeInfo = useLocaleInfo();
|
|
25
|
-
const providerCollection = createListCollection({
|
|
26
|
-
items: props.gameProviders,
|
|
27
|
-
itemToValue: (item) => item,
|
|
28
|
-
itemToString: (item) => capitalize(item, {
|
|
29
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
|
-
const { page, hasNextPage, hasPrevPage, next, prev, rows, totalPages, loading, firstPage, } = useInfiniteQueryHelper(useBetRecordsQuery, {
|
|
33
|
-
filter: {
|
|
34
|
-
...(state.type && {
|
|
35
|
-
game__type: {
|
|
36
|
-
equal: state.type,
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
...(state.provider && {
|
|
40
|
-
game__provider: {
|
|
41
|
-
equal: state.provider,
|
|
42
|
-
},
|
|
43
|
-
}),
|
|
44
|
-
...(state.status && {
|
|
45
|
-
status: {
|
|
46
|
-
equal: state.status,
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
...(state.timestamp && {
|
|
50
|
-
dateTimeCreated: {
|
|
51
|
-
...(state.timestamp.start && {
|
|
52
|
-
greaterThanOrEqual: new TZDateMini(startOfDay(state.timestamp.start), localeInfo.timezone).toISOString(),
|
|
53
|
-
}),
|
|
54
|
-
...(state.timestamp.end && {
|
|
55
|
-
lesserThanOrEqual: new TZDateMini(endOfDay(state.timestamp.end), localeInfo.timezone).toISOString(),
|
|
56
|
-
}),
|
|
57
|
-
},
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
return (_jsxs("div", { className: props.className, children: [_jsx("h2", { className: "text-sm font-semibold leading-tight lg:text-lg", children: "Bet Records" }), _jsx("p", { className: "text-text-tertiary-600 mt-xs text-sm leading-tight", children: "Review your betting history" }), _jsx("div", { className: "mt-lg lg:mt-2xl", children: _jsxs(SegmentGroup.Root, { value: state.type, onValueChange: (details) => {
|
|
62
|
-
firstPage();
|
|
63
|
-
setState({
|
|
64
|
-
type: z
|
|
65
|
-
.enum((props.gameTypes ?? []))
|
|
66
|
-
.safeParse(details.value).data ?? null,
|
|
67
|
-
});
|
|
68
|
-
}, children: [props.gameTypes.map((type) => (_jsxs(SegmentGroup.Item, { value: type, children: [_jsx(SegmentGroup.ItemText, { children: capitalize(type, {
|
|
69
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
70
|
-
}) }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }, type))), _jsx(SegmentGroup.Indicator, {})] }) }), _jsx("div", { className: "border-border-secondary mt-2xl hidden border-t lg:block" }), _jsx("h3", { className: "text-text-secondary-700 mt-3xl text-sm font-semibold", children: "Table" }), _jsxs("div", { className: "mt-xl flex flex-col gap-lg lg:flex-row lg:items-center", children: [_jsxs(DatePicker.Root, { lazyMount: true, unmountOnExit: true, value: [state.timestamp?.start, state.timestamp?.end]
|
|
71
|
-
.filter(Boolean)
|
|
72
|
-
.map((d) => parseDate(d)), onValueChange: (details) => {
|
|
73
|
-
firstPage();
|
|
74
|
-
setState({
|
|
75
|
-
timestamp: {
|
|
76
|
-
start: details.value.at(0)?.toDate(DEVICE_TIMEZONE),
|
|
77
|
-
end: details.value.at(1)?.toDate(DEVICE_TIMEZONE),
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
}, onOpenChange: (details) => {
|
|
81
|
-
if (details.open)
|
|
82
|
-
return;
|
|
83
|
-
if (state.timestamp)
|
|
84
|
-
return;
|
|
85
|
-
setTab('all');
|
|
86
|
-
}, selectionMode: "range", closeOnSelect: false, positioning: {
|
|
87
|
-
gutter: 20,
|
|
88
|
-
placement: 'bottom',
|
|
89
|
-
}, children: [_jsxs(SegmentGroup.Root, { value: tab, onValueChange: (details) => {
|
|
90
|
-
const value = TabDefinition.parse(details.value);
|
|
91
|
-
if (value === 'today') {
|
|
92
|
-
const now = new Date();
|
|
93
|
-
setState({
|
|
94
|
-
timestamp: {
|
|
95
|
-
start: startOfDay(now),
|
|
96
|
-
end: endOfDay(now),
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
setState({
|
|
102
|
-
timestamp: null,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
firstPage();
|
|
106
|
-
setTab(value);
|
|
107
|
-
}, className: "w-full lg:w-fit", children: [_jsxs(SegmentGroup.Item, { value: "all", className: "w-full lg:w-auto", children: [_jsx(SegmentGroup.ItemText, { children: "All" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), _jsxs(SegmentGroup.Item, { value: "today", className: "w-full lg:w-auto", children: [_jsx(SegmentGroup.ItemText, { children: "Today" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }), _jsx(DatePicker.Context, { children: (api) => (_jsx(SegmentGroup.Item, { value: "custom", onClick: () => api.setOpen(true), className: "w-full lg:w-auto", children: _jsxs(DatePicker.Control, { children: [_jsx(SegmentGroup.ItemText, { children: "Custom" }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }) })) }), _jsx(SegmentGroup.Indicator, {})] }), _jsx(Portal, { children: _jsx(DatePicker.Positioner, { children: _jsx(DatePicker.Content, { children: _jsx(DatePicker.View, { view: "day", children: _jsx(DatePicker.Context, { children: (api) => (_jsxs(_Fragment, { children: [_jsxs(DatePicker.ViewControl, { children: [_jsx(DatePicker.PrevTrigger, { children: _jsx(ChevronLeftIcon, {}) }), _jsx(DatePicker.ViewTrigger, { children: _jsx(DatePicker.RangeText, {}) }), _jsx(DatePicker.NextTrigger, { children: _jsx(ChevronRightIcon, {}) })] }), _jsxs(DatePicker.Table, { children: [_jsx(DatePicker.TableHead, { children: _jsx(DatePicker.TableRow, { children: api.weekDays.map((weekDay, id) => (_jsx(DatePicker.TableHeader, { children: weekDay.short.substring(0, 2) }, id))) }) }), _jsx(DatePicker.TableBody, { children: api.weeks.map((week, id) => (_jsx(DatePicker.TableRow, { children: week.map((day, id) => (_jsx(DatePicker.TableCell, { value: day, children: _jsx(DatePicker.TableCellTrigger, { children: day.day }) }, id))) }, id))) })] })] })) }) }) }) }) })] }), _jsx("div", { className: "hidden grow lg:block" }), _jsxs(Select.Root, { collection: providerCollection, value: state.provider ? [state.provider] : [], onValueChange: (details) => {
|
|
108
|
-
const value = z
|
|
109
|
-
.enum((props.gameProviders ?? []))
|
|
110
|
-
.safeParse(details.value.at(0)).data;
|
|
111
|
-
firstPage();
|
|
112
|
-
setState({
|
|
113
|
-
provider: value ?? null,
|
|
114
|
-
});
|
|
115
|
-
}, lazyMount: true, deselectable: true, positioning: {
|
|
116
|
-
sameWidth: true,
|
|
117
|
-
}, children: [_jsxs(Select.Trigger, { className: "w-full lg:w-[14rem]", children: [_jsx(Select.ValueText, { placeholder: "Game Vendor" }), _jsx(Select.Context, { children: (api) => (_jsx(_Fragment, { children: api.value.length ? (_jsx(Select.ClearTrigger, { asChild: true, children: _jsx("span", { onClick: (e) => {
|
|
118
|
-
e.stopPropagation();
|
|
119
|
-
}, children: "Clear" }) })) : (_jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })) })) })] }), _jsx(Portal, { children: _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: providerCollection.items.map((provider) => (_jsxs(Select.Item, { item: provider, children: [_jsx(Select.ItemText, { children: capitalize(provider, {
|
|
120
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
121
|
-
}) }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, provider))) }) }) }) })] }), _jsxs(Select.Root, { collection: statusCollection, value: state.status ? [state.status] : [], onValueChange: (details) => {
|
|
122
|
-
const value = z
|
|
123
|
-
.enum(BET_RECORD_STATUSES)
|
|
124
|
-
.safeParse(details.value.at(0)).data;
|
|
125
|
-
firstPage();
|
|
126
|
-
setState({
|
|
127
|
-
status: value ?? null,
|
|
128
|
-
});
|
|
129
|
-
}, lazyMount: true, deselectable: true, positioning: {
|
|
130
|
-
sameWidth: true,
|
|
131
|
-
}, children: [_jsxs(Select.Trigger, { className: "w-full lg:w-[14rem]", children: [_jsx(Select.ValueText, { placeholder: "Status" }), _jsx(Select.Context, { children: (api) => (_jsx(_Fragment, { children: api.value.length ? (_jsx(Select.ClearTrigger, { asChild: true, children: _jsx("span", { onClick: (e) => {
|
|
132
|
-
e.stopPropagation();
|
|
133
|
-
}, children: "Clear" }) })) : (_jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })) })) })] }), _jsx(Portal, { children: _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: statusCollection.items.map((status) => (_jsxs(Select.Item, { item: status, children: [_jsx(Select.ItemText, { children: capitalize(status, {
|
|
134
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
135
|
-
}) }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, status))) }) }) }) })] })] }), rows.length <= 0 && (_jsx(Empty, { icon: loading ? SpinnerIcon : File02Icon, title: loading ? 'Just a moment' : 'No data', message: loading
|
|
136
|
-
? 'Fetching latest bet records...'
|
|
137
|
-
: 'No data is currently available.', className: "mt-5xl" })), rows.length >= 1 && (_jsxs("div", { className: twMerge('mt-xl', 'border-y', 'border-border-secondary', 'bleed', 'lg:not-bleed', 'lg:mt-3xl', 'lg:w-full', 'lg:rounded-xl', 'lg:border-x'), children: [_jsx("div", { className: "border-border-secondary scrollbar-thumb:bg-bg-quaternary scrollbar-track:bg-transparent scrollbar:h-2 scrollbar-thumb:rounded-full overflow-hidden overflow-x-auto rounded-none border-b lg:rounded-t-xl", children: _jsxs(Table.Root, { className: "border-0", children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.Heading, { children: "Bet Time" }), _jsx(Table.Heading, { children: "Settlement Time" }), _jsx(Table.Heading, { children: "Bet Content" }), _jsx(Table.Heading, { children: "Odds" }), _jsx(Table.Heading, { children: "Bet Amount" }), _jsx(Table.Heading, { children: "Valid Bet" }), _jsx(Table.Heading, { children: "Settled Amount" }), _jsx(Table.Heading, { children: "Jackpot Contribution" }), _jsx(Table.Heading, { children: "Jackpot Payout" }), _jsx(Table.Heading, { children: "Bet Status" }), _jsx(Table.Heading, { children: "Game Name" }), _jsx(Table.Heading, { children: "Vendor Round ID" })] }) }), _jsx(Table.Body, { children: rows.map((data) => (_jsxs(Table.Row, { children: [_jsxs(Table.Cell, { className: "!py-1", children: [_jsx("div", { className: "leading-tight", children: format(data.dateTimeCreated, 'MM/dd/yyyy', {
|
|
138
|
-
in: tz(localeInfo.timezone),
|
|
139
|
-
}) }), _jsx("div", { className: "text-text-tertiary-600 leading-tight", children: format(data.dateTimeCreated, 'hh:mm a', {
|
|
140
|
-
in: tz(localeInfo.timezone),
|
|
141
|
-
}) })] }), _jsx(Table.Cell, { className: "!py-1", children: !!data.dateTimeSettled && (_jsxs(_Fragment, { children: [_jsx("div", { className: "leading-tight", children: format(data.dateTimeSettled, 'MM/dd/yyyy', {
|
|
142
|
-
in: tz(localeInfo.timezone),
|
|
143
|
-
}) }), _jsx("div", { className: "text-text-tertiary-600 leading-tight", children: format(data.dateTimeSettled, 'hh:mm a', {
|
|
144
|
-
in: tz(localeInfo.timezone),
|
|
145
|
-
}) })] })) }), _jsx(Table.Cell, { className: "!py-1", children: data?.betContent || '/' }), _jsx(Table.Cell, { className: "!py-1", children: data.metadata?.odds || '/' }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.bet, {
|
|
146
|
-
currency: localeInfo.currency.code,
|
|
147
|
-
minDecimalPlaces: 2,
|
|
148
|
-
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.validBet, {
|
|
149
|
-
currency: localeInfo.currency.code,
|
|
150
|
-
minDecimalPlaces: 2,
|
|
151
|
-
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.payout, {
|
|
152
|
-
currency: localeInfo.currency.code,
|
|
153
|
-
minDecimalPlaces: 2,
|
|
154
|
-
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.jackpotContribution, {
|
|
155
|
-
currency: localeInfo.currency.code,
|
|
156
|
-
minDecimalPlaces: 2,
|
|
157
|
-
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.jackpotPayout, {
|
|
158
|
-
currency: localeInfo.currency.code,
|
|
159
|
-
minDecimalPlaces: 2,
|
|
160
|
-
}) }), _jsx(Table.Cell, { className: "!py-1", children: _jsx(Badge.Root, { colorScheme: data.status === 'SETTLED'
|
|
161
|
-
? 'success'
|
|
162
|
-
: data.status === 'STARTED'
|
|
163
|
-
? 'blue'
|
|
164
|
-
: 'danger', children: _jsx(Badge.Label, { children: capitalize(data.status, {
|
|
165
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
166
|
-
}) }) }) }), _jsx(Table.Cell, { className: "!py-1", children: data.game.name }), _jsx(Table.Cell, { className: "!py-1", children: data.vendorRoundId })] }, data.id))) })] }) }), _jsxs("div", { className: "flex items-center justify-between gap-lg px-4 py-3", children: [_jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasPrevPage || loading, onClick: () => prev(), children: _jsx(ChevronLeftIcon, { className: "size-5" }) }), _jsxs("p", { className: "text-text-secondary-700 text-sm font-medium", children: ["Page ", page, " of ", totalPages] }), _jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasNextPage || loading, onClick: () => next(), children: _jsx(ChevronRightIcon, { className: "size-5" }) })] })] }))] }));
|
|
167
|
-
}
|
|
168
|
-
const BET_RECORD_STATUSES = [
|
|
169
|
-
'CANCELLED',
|
|
170
|
-
'SETTLED',
|
|
171
|
-
'STARTED',
|
|
172
|
-
];
|
|
173
|
-
const statusCollection = createListCollection({
|
|
174
|
-
items: BET_RECORD_STATUSES,
|
|
175
|
-
itemToValue: (item) => item,
|
|
176
|
-
itemToString: (item) => capitalize(item, {
|
|
177
|
-
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
178
|
-
}),
|
|
179
|
-
});
|
|
180
|
-
const TabDefinition = z.enum(['all', 'today', 'custom']);
|
|
181
|
-
const DEVICE_TIMEZONE = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BetRecords';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BetRecords.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { ChevronLeftIcon, ChevronRightIcon, StopWatchIcon } from '../../icons/index.js';
|
|
6
|
-
import { Badge, Collapsible, Progress, Prose } from '../../ui/index.js';
|
|
7
|
-
export function Bonus__client(props) {
|
|
8
|
-
return (_jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllUrl ?? '/rewards', className: "text-button-tertiary-fg flex items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to Rewards"] }), _jsx(Image, { 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-3xl h-auto w-full rounded-xl" }), _jsxs(Badge.Root, { size: "lg", round: false, colorScheme: "brand", className: "mt-xl lg:mt-6", children: [_jsx(Badge.Icon, { children: _jsx(StopWatchIcon, {}) }), _jsx(Badge.Label, { children: "9d:10h:11m" })] }), _jsx("h1", { className: "text-text-primary-900 mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: "50 PHP First Deposit Bonus" }), _jsx("p", { className: "text-text-primary-brand mt-xl text-base lg:mt-6 lg:text-lg", children: "Complete the wagering before time runs out to convert your bonus balance into real money!" }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl flex items-center justify-between rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsx("p", { children: "Your bonus" }), _jsxs("p", { children: [_jsx("span", { className: "text-text-primary-900", children: "20.00" }), " / 50.00 PHP"] })] }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl flex items-center justify-between rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsx("p", { children: "Required Turnover" }), _jsx("p", { children: "5x" })] }), _jsxs("div", { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { children: "Wagering" }), _jsx("p", { children: "400/1000" })] }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] }), _jsxs(Collapsible.Root, { className: "mt-xl lg:mt-6", children: [_jsxs(Collapsible.Trigger, { className: "text-button-tertiary-fg flex w-fit items-center justify-center gap-sm text-sm font-semibold lg:mx-auto", children: ["Game Provider Contribution", _jsx(Collapsible.Indicator, { asChild: true, children: _jsx(ChevronRightIcon, { className: "size-5" }) })] }), _jsxs(Collapsible.Content, { className: "border-border-primary bg-bg-tertiary text-text-secondary-700 mt-xl space-y-1.5 rounded-md border px-3.5 py-xl lg:mt-6", children: [_jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Playson" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "25%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Betsoft Gaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "13%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Microgaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "50%" })] }), _jsxs("div", { className: "flex items-center justify-between gap-md", children: [_jsx("p", { className: "w-[11.25rem] shrink-0", children: "Realtime Gaming" }), _jsx(Progress.Root, { defaultValue: 42, className: "mt-2 grow", children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx("p", { children: "10%" })] })] })] }), _jsxs(Prose, { className: "mt-xl lg:mt-6", children: [_jsx("h3", { children: "How to get bonus" }), _jsxs("ol", { children: [_jsx("li", { children: "All OFWin members are eligible for this program." }), _jsx("li", { children: "50 PHP of game credit will be automatically credited to the new member account upon completion of first deposit Auctor vel in vitae placerat." }), _jsx("li", { children: "Member must reach a 5x turnover requirement before a withdrawal can be made. Attempting to make a withdrawal before this turnover requirement is completed could cause your bonus to be voided." }), _jsx("li", { children: "Players will have 10 days from the date the bonus is awarded to complete the rollover requirement." }), _jsx("li", { children: "Bets used to meet other bonus rollover requirements will not count toward this promotion." })] }), _jsx("h3", { children: "Terms and Conditions" }), _jsxs("ul", { children: [_jsx("li", { children: "Only one account per player is allowed. No same IP address/bank account name allowed. Players who have multiple or fraudulent accounts will not be qualified for the promotion." }), _jsx("li", { children: "Players that are found to have any duplicate accounts or those who participate in fraudulent activities may have their funds forfeited and their accounts closed." }), _jsx("li", { children: "OFWin reserves the right to amend or cancel this Referral Program at any time. OFWin General Terms and Conditions apply." })] })] })] }));
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface BonusProps {
|
|
2
|
-
id: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
/**
|
|
5
|
-
* @description URL for the bonuses details page
|
|
6
|
-
* @default "/rewards"
|
|
7
|
-
*/
|
|
8
|
-
viewAllUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function Bonus(props: BonusProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Bonus';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Bonus.js';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface BonusesProps {
|
|
2
|
-
heading?: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
/**
|
|
5
|
-
* @description base URL for the bonus details page
|
|
6
|
-
* @default "/rewards/bonus"
|
|
7
|
-
*/
|
|
8
|
-
viewBonusDetailsUrl?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @description base URL for the cashback details page
|
|
11
|
-
* @default "/rewards/cashback"
|
|
12
|
-
*/
|
|
13
|
-
viewCashbackDetailsUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function Bonuses(props: BonusesProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { prefetchBonusesQuery, prefetchCashbacksQuery, } from '../../server/utils/index.js';
|
|
3
|
-
import { Bonuses__client } from './Bonuses.client.js';
|
|
4
|
-
export async function Bonuses(props) {
|
|
5
|
-
await Promise.all([prefetchBonusesQuery(), prefetchCashbacksQuery()]);
|
|
6
|
-
return _jsx(Bonuses__client, { ...props });
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { tz } from '@date-fns/tz';
|
|
4
|
-
import { format } from 'date-fns';
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
import { useShallow } from 'zustand/shallow';
|
|
8
|
-
import { useGlobalStore, useLocaleInfo, usePromoQuery, } from '../../client/hooks/index.js';
|
|
9
|
-
import { ChevronLeftIcon } from '../../icons/index.js';
|
|
10
|
-
import { Button, Prose } from '../../ui/index.js';
|
|
11
|
-
export function Cashback__client(props) {
|
|
12
|
-
const localeInfo = useLocaleInfo();
|
|
13
|
-
const promoQuery = usePromoQuery(props.id);
|
|
14
|
-
const promo = promoQuery.data;
|
|
15
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
16
|
-
depositWithdrawal: ctx.depositWithdrawal,
|
|
17
|
-
})));
|
|
18
|
-
if (!promo)
|
|
19
|
-
return null;
|
|
20
|
-
return (_jsxs("div", { className: props.className, children: [_jsxs(Link, { href: props.viewAllPromosUrl ?? '/promos', className: "text-button-tertiary-fg flex w-fit items-center gap-lg text-lg font-semibold", children: [_jsx(ChevronLeftIcon, { className: "size-6" }), "Back to all Promotions"] }), promo.banner.url && (_jsx(Image, { src: promo.banner.url, alt: "", width: 1024, height: 600, className: "mt-xl h-auto w-full rounded-xl lg:mt-6" })), _jsx(Button, { className: "mt-xl lg:mt-6", onClick: () => {
|
|
21
|
-
globalStore.depositWithdrawal.setOpen(true);
|
|
22
|
-
}, children: "Deposit Now" }), _jsx("h1", { className: "mt-xl text-2xl font-semibold lg:mt-6 lg:text-3xl", children: promo.name }), _jsxs("p", { className: "text-text-secondary-700 mt-xl lg:mt-6", children: ["Ends", ' ', format(promo.activationEndDateTime, 'MM/dd/yyy hh:mm:ss A', {
|
|
23
|
-
in: tz(localeInfo.timezone),
|
|
24
|
-
})] }), _jsx(Prose, { className: "mt-2xl lg:mt-6", dangerouslySetInnerHTML: {
|
|
25
|
-
__html: promo.description,
|
|
26
|
-
} }), _jsxs(Prose, { className: "bg-bg-secondary mt-xl rounded-2xl p-2xl lg:mt-16 lg:p-4xl", children: [_jsx("h2", { children: "Conclusion" }), _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." }), _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." }), _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." })] })] }));
|
|
27
|
-
}
|