@opexa/portal-components 0.0.64 → 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 +0,0 @@
|
|
|
1
|
-
export declare function NameAndPasswordSignIn(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useDialogContext } from '@ark-ui/react';
|
|
3
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
4
|
-
import { Controller, useForm } from 'react-hook-form';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import { useShallow } from 'zustand/shallow';
|
|
7
|
-
import { useAuthenticateMutation, useGlobalStore, useSignInMutation, } from '../../client/hooks/index.js';
|
|
8
|
-
import { toaster } from '../../client/utils/index.js';
|
|
9
|
-
import { SECRET_QUESTIONS, SECRET_QUESTIONS_MAP } from '../../constants/index.js';
|
|
10
|
-
import { CheckIcon, EyeIcon, EyeOffIcon, FacebookIcon, GoogleIcon, } from '../../icons/index.js';
|
|
11
|
-
import { Button, Checkbox, Field, PasswordInput } from '../../ui/index.js';
|
|
12
|
-
import { useSignInContext } from './SignInContext.js';
|
|
13
|
-
export function NameAndPasswordSignIn() {
|
|
14
|
-
const context = useSignInContext();
|
|
15
|
-
const dialog = useDialogContext();
|
|
16
|
-
const globalStore = useGlobalStore(useShallow((popups) => ({
|
|
17
|
-
signIn: popups.signIn,
|
|
18
|
-
signUp: popups.signUp,
|
|
19
|
-
})));
|
|
20
|
-
const signInMutation = useSignInMutation({
|
|
21
|
-
onSuccess(authenticator) {
|
|
22
|
-
if (authenticator) {
|
|
23
|
-
context.setStep(2);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
globalStore.signIn.setOpen(false);
|
|
27
|
-
authenticateMutation.reset();
|
|
28
|
-
signInMutation.reset();
|
|
29
|
-
context.setStep(0);
|
|
30
|
-
form.reset();
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
onError() {
|
|
34
|
-
toaster.error({
|
|
35
|
-
description: 'Invalid username or password',
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
const authenticateMutation = useAuthenticateMutation({
|
|
40
|
-
onSuccess() {
|
|
41
|
-
globalStore.signIn.setOpen(false);
|
|
42
|
-
authenticateMutation.reset();
|
|
43
|
-
signInMutation.reset();
|
|
44
|
-
context.setStep(0);
|
|
45
|
-
form.reset();
|
|
46
|
-
},
|
|
47
|
-
onError() {
|
|
48
|
-
toaster.error({
|
|
49
|
-
description: 'Incorrect secret answer',
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
const Definition = z.object({
|
|
54
|
-
name: z.string().min(1, 'Username is required').trim(),
|
|
55
|
-
password: z.string().min(1, 'Password is required'),
|
|
56
|
-
secretAnswer: z.string().superRefine((val, ctx) => {
|
|
57
|
-
if (signInMutation.data && val.trim().length === 0) {
|
|
58
|
-
ctx.addIssue({
|
|
59
|
-
code: z.ZodIssueCode.custom,
|
|
60
|
-
message: 'Secret answer is required',
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}),
|
|
64
|
-
termsAccepted: z.boolean().refine((val) => val, {
|
|
65
|
-
message: 'You must accept the terms and conditions',
|
|
66
|
-
}),
|
|
67
|
-
});
|
|
68
|
-
const form = useForm({
|
|
69
|
-
resolver: zodResolver(Definition),
|
|
70
|
-
defaultValues: {
|
|
71
|
-
name: '',
|
|
72
|
-
password: '',
|
|
73
|
-
secretAnswer: '',
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
const secretQuestion = signInMutation.data
|
|
77
|
-
? z
|
|
78
|
-
.union([
|
|
79
|
-
z.enum(SECRET_QUESTIONS).transform((v) => {
|
|
80
|
-
return SECRET_QUESTIONS_MAP[v];
|
|
81
|
-
}),
|
|
82
|
-
z.string(),
|
|
83
|
-
])
|
|
84
|
-
.parse(signInMutation.data.secretQuestion)
|
|
85
|
-
: null;
|
|
86
|
-
return (_jsxs(_Fragment, { children: [_jsxs("form", { className: "mt-3xl", onSubmit: form.handleSubmit((data) => {
|
|
87
|
-
if (!signInMutation.data) {
|
|
88
|
-
signInMutation.mutate({
|
|
89
|
-
type: 'NAME_AND_PASSWORD',
|
|
90
|
-
name: data.name,
|
|
91
|
-
password: data.password,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
authenticateMutation.mutate({
|
|
96
|
-
type: 'SECURITY_QUESTION',
|
|
97
|
-
token: signInMutation.data.token,
|
|
98
|
-
secretAnswer: data.secretAnswer,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.name, children: [_jsx(Field.Label, { children: "Name" }), _jsx(Field.Input, { placeholder: "Enter your name", ...form.register('name', {
|
|
102
|
-
onChange() {
|
|
103
|
-
signInMutation.reset();
|
|
104
|
-
form.setValue('secretAnswer', '');
|
|
105
|
-
},
|
|
106
|
-
}) }), _jsx(Field.ErrorText, { children: form.formState.errors.name?.message })] }), _jsxs(Field.Root, { disabled: !!signInMutation.data, invalid: !!form.formState.errors.name, className: "mt-xl", children: [_jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter your password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] }), _jsx("div", { className: "mt-2 flex justify-end", children: _jsx("button", { type: "button", tabIndex: -1, className: "text-button-tertiary-fg text-sm font-semibold", children: "Forgot Password" }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), signInMutation.data && (_jsxs(Field.Root, { invalid: !!form.formState.errors.secretAnswer, className: "mt-xl", children: [_jsx(Field.Label, { children: secretQuestion }), _jsx(Field.Input, { placeholder: "Answer the security question", ...form.register('secretAnswer') }), _jsx(Field.ErrorText, { children: form.formState.errors.secretAnswer?.message })] })), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: signInMutation.isPending || authenticateMutation.isPending, children: "Log In" }), _jsx(Controller, { control: form.control, name: "termsAccepted", render: (o) => (_jsxs(Checkbox.Root, { className: "mt-xl", invalid: o.fieldState.invalid, checked: o.field.value, onCheckedChange: (details) => {
|
|
107
|
-
o.field.onChange(details.checked);
|
|
108
|
-
}, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I am at least 21 years of age and I accept the", ' ', _jsx("span", { className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })] }), _jsx(Checkbox.HiddenInput, {})] })) })] }), _jsxs("div", { className: "relative mt-6 text-center", children: [_jsx("hr", { className: "-translte-y-1/2 text-text-tertiary-600/50 absolute top-1/2 w-full" }), _jsx("span", { className: "text-text-tertiary-600 bg-bg-primary-alt relative px-md text-center text-sm font-semibold", children: "Log in directly with" })] }), _jsxs("div", { className: "mt-6", children: [_jsxs(Button, { variant: "outline", colorScheme: "gray", onClick: () => {
|
|
109
|
-
dialog.setOpen(false);
|
|
110
|
-
}, className: "border-border-primary bg-bg-primary text-text-secondary-700", children: [_jsx(GoogleIcon, { className: "size-6" }), "Continue with Google"] }), _jsxs(Button, { variant: "outline", colorScheme: "gray", onClick: () => {
|
|
111
|
-
dialog.setOpen(false);
|
|
112
|
-
}, className: "border-border-primary bg-bg-primary text-text-secondary-700 mt-lg", children: [_jsx(FacebookIcon, { className: "size-6" }), "Continue with Facebook"] })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
113
|
-
dialog.setOpen(false);
|
|
114
|
-
globalStore.signUp.setOpen(true);
|
|
115
|
-
}, children: "Sign up" })] })] }));
|
|
116
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ImageProps } from 'next/image';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export interface SignInProps {
|
|
4
|
-
logo: ImageProps['src'];
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function SignIn(props: SignInProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Portal } from '@ark-ui/react';
|
|
4
|
-
import Image, {} from 'next/image';
|
|
5
|
-
import { useShallow } from 'zustand/shallow';
|
|
6
|
-
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
7
|
-
import { XIcon } from '../../icons/index.js';
|
|
8
|
-
import { Dialog } from '../../ui/index.js';
|
|
9
|
-
import { SignInContext } from './SignInContext.js';
|
|
10
|
-
import { SignInForm } from './SignInForm.js';
|
|
11
|
-
import { useSignIn } from './useSignIn.js';
|
|
12
|
-
export function SignIn(props) {
|
|
13
|
-
const signIn = useSignIn();
|
|
14
|
-
const signInStore = useGlobalStore(useShallow((popups) => popups.signIn));
|
|
15
|
-
return (_jsx(SignInContext, { value: signIn, children: _jsx(Dialog.Root, { open: signInStore.open, onOpenChange: (details) => {
|
|
16
|
-
signInStore.setOpen(details.open);
|
|
17
|
-
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-7.5 w-auto", draggable: false }), _jsx(SignInForm, {})] }) })] }) }) }));
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function SignInForm(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { MobileNumberSignIn } from './MobileNumberSignIn.js';
|
|
4
|
-
import { NameAndPasswordSignIn } from './NameAndPasswordSignIn.js';
|
|
5
|
-
import { useSignInContext } from './SignInContext.js';
|
|
6
|
-
import { SignInMethod } from './SignInMethod.js';
|
|
7
|
-
export function SignInForm() {
|
|
8
|
-
const context = useSignInContext();
|
|
9
|
-
return (_jsxs(_Fragment, { children: [context.step === 1 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Log in to your account" }), _jsx("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Welcome back! Please enter your details." })] })), _jsx(SignInMethod, {}), context.type === 'MOBILE_NUMBER' && _jsx(MobileNumberSignIn, {}), context.type === 'NAME_AND_PASSWORD' && _jsx(NameAndPasswordSignIn, {})] }));
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function SignInMethod(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { SegmentGroup } from '../../ui/index.js';
|
|
4
|
-
import { useSignInContext } from './SignInContext.js';
|
|
5
|
-
const METHODS = [
|
|
6
|
-
'MOBILE_NUMBER',
|
|
7
|
-
'NAME_AND_PASSWORD',
|
|
8
|
-
];
|
|
9
|
-
const METHOD_LABEL_MAP = {
|
|
10
|
-
MOBILE_NUMBER: 'Mobile',
|
|
11
|
-
NAME_AND_PASSWORD: 'Username',
|
|
12
|
-
};
|
|
13
|
-
export function SignInMethod() {
|
|
14
|
-
const context = useSignInContext();
|
|
15
|
-
return (_jsxs(SegmentGroup.Root, { value: context.type, onValueChange: (details) => {
|
|
16
|
-
context.setStep(1);
|
|
17
|
-
context.setType(z.enum(METHODS).parse(details.value));
|
|
18
|
-
}, className: "mt-5 w-full", children: [_jsx(SegmentGroup.Indicator, {}), METHODS.map((method) => (_jsxs(SegmentGroup.Item, { value: method, className: "w-full", children: [_jsx(SegmentGroup.ItemText, { children: METHOD_LABEL_MAP[method] }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }, method)))] }));
|
|
19
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
interface SignInTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function SignInTrigger(props: SignInTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { ark } from '@ark-ui/react';
|
|
4
|
-
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
6
|
-
export function SignInTrigger(props) {
|
|
7
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
8
|
-
signIn: ctx.signIn,
|
|
9
|
-
})));
|
|
10
|
-
return (_jsx(ark.button, { type: "button", "aria-label": "Sign in", "data-state": globalStore.signIn.open ? 'open' : 'closed', ...props, onClick: (e) => {
|
|
11
|
-
globalStore.signIn.setOpen(!globalStore.signIn.open);
|
|
12
|
-
return props.onClick?.(e);
|
|
13
|
-
} }));
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type SignInStep = 1 | 2 | (number & {});
|
|
2
|
-
type SignInType = 'NAME_AND_PASSWORD' | 'MOBILE_NUMBER';
|
|
3
|
-
export interface UseSignInReturn {
|
|
4
|
-
step: SignInStep;
|
|
5
|
-
setStep: (step: SignInStep) => void;
|
|
6
|
-
type: SignInType;
|
|
7
|
-
setType: (type: SignInType) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function useSignIn(): UseSignInReturn;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ImageProps } from 'next/image';
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
export interface SignUpProps {
|
|
4
|
-
logo: ImageProps['src'];
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function SignUp(props: SignUpProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Portal } from '@ark-ui/react';
|
|
4
|
-
import Image, {} from 'next/image';
|
|
5
|
-
import { Suspense } from 'react';
|
|
6
|
-
import { useShallow } from 'zustand/shallow';
|
|
7
|
-
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
8
|
-
import { XIcon } from '../../icons/index.js';
|
|
9
|
-
import { Dialog } from '../../ui/index.js';
|
|
10
|
-
import { SignUpForm } from './SignUpForm.js';
|
|
11
|
-
export function SignUp(props) {
|
|
12
|
-
const signUpStore = useGlobalStore(useShallow((popups) => popups.signUp));
|
|
13
|
-
return (_jsx(Dialog.Root, { open: signUpStore.open, onOpenChange: (details) => {
|
|
14
|
-
signUpStore.setOpen(details.open);
|
|
15
|
-
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsx(Suspense, { children: _jsx(SignUpForm, {}) })] }) })] }) }));
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function SignUpForm(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { useDialogContext } from '@ark-ui/react';
|
|
4
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
5
|
-
import { ObjectId, ObjectType } from '@opexa/portal-sdk-core/object-id';
|
|
6
|
-
import { useSearchParams } from 'next/navigation';
|
|
7
|
-
import { useState } from 'react';
|
|
8
|
-
import { Controller, useForm } from 'react-hook-form';
|
|
9
|
-
import { z } from 'zod';
|
|
10
|
-
import { useShallow } from 'zustand/shallow';
|
|
11
|
-
import { useCooldown, useGlobalStore, useLocaleInfo, useMobileNumberParser, useSendVerificationCodeMutation, useSignInMutation, useSignUpMutation, } from '../../client/hooks/index.js';
|
|
12
|
-
import { toaster } from '../../client/utils/index.js';
|
|
13
|
-
import { ArrowLeftIcon, CheckIcon } from '../../icons/index.js';
|
|
14
|
-
import { Button, Checkbox, Field, PinInput } from '../../ui/index.js';
|
|
15
|
-
export function SignUpForm() {
|
|
16
|
-
const [step, setStep] = useState(1);
|
|
17
|
-
const dialog = useDialogContext();
|
|
18
|
-
const search = useSearchParams();
|
|
19
|
-
const signInStore = useGlobalStore(useShallow((popups) => popups.signIn));
|
|
20
|
-
const signUpMutation = useSignUpMutation();
|
|
21
|
-
const signInMutation = useSignInMutation();
|
|
22
|
-
const sendVerificationCodeMutation = useSendVerificationCodeMutation();
|
|
23
|
-
const localeInfo = useLocaleInfo();
|
|
24
|
-
const mobileNumberParser = useMobileNumberParser();
|
|
25
|
-
const Step1Definition = z.object({
|
|
26
|
-
mobileNumber: z.string().superRefine((v, ctx) => {
|
|
27
|
-
if (!mobileNumberParser.validate(v)) {
|
|
28
|
-
ctx.addIssue({
|
|
29
|
-
code: z.ZodIssueCode.custom,
|
|
30
|
-
message: 'Invalid mobile number',
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
termsAccepted: z.boolean().superRefine((v, ctx) => {
|
|
35
|
-
if (!v) {
|
|
36
|
-
ctx.addIssue({
|
|
37
|
-
code: z.ZodIssueCode.custom,
|
|
38
|
-
message: 'You must accept the terms and conditions',
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}),
|
|
42
|
-
});
|
|
43
|
-
const Step2Definition = z.object({
|
|
44
|
-
verificationCode: z.array(z.string().min(1).max(1).trim()).min(6).max(6),
|
|
45
|
-
});
|
|
46
|
-
const step1Form = useForm({
|
|
47
|
-
resolver: zodResolver(Step1Definition),
|
|
48
|
-
defaultValues: {
|
|
49
|
-
mobileNumber: '',
|
|
50
|
-
termsAccepted: false,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
const step2Form = useForm({
|
|
54
|
-
resolver: zodResolver(Step2Definition),
|
|
55
|
-
defaultValues: {
|
|
56
|
-
verificationCode: Array.from({ length: 6 }).fill(''),
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
const cooldown = useCooldown({
|
|
60
|
-
max: 60,
|
|
61
|
-
duration: 1000 * 60,
|
|
62
|
-
});
|
|
63
|
-
return (_jsxs(_Fragment, { children: [step === 1 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Create an account" }), _jsx("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Register instantly and start playing!" }), _jsxs("form", { className: "mt-3xl", onSubmit: step1Form.handleSubmit(async (data) => {
|
|
64
|
-
try {
|
|
65
|
-
await sendVerificationCodeMutation.mutateAsync({
|
|
66
|
-
channel: 'SMS',
|
|
67
|
-
recipient: mobileNumberParser.format(data.mobileNumber),
|
|
68
|
-
});
|
|
69
|
-
setStep(2);
|
|
70
|
-
cooldown.start();
|
|
71
|
-
}
|
|
72
|
-
catch (e) {
|
|
73
|
-
toaster.error({
|
|
74
|
-
description: e instanceof Error
|
|
75
|
-
? e.message
|
|
76
|
-
: 'Failed to send verification code',
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsx(localeInfo.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }), _jsx(Field.Input, { className: "pl-11", placeholder: `${localeInfo.mobileNumber.areaCode}${localeInfo.mobileNumber.example}`, ...step1Form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.mobileNumber?.message })] }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Create Account" }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Checkbox.Root, { className: "mt-xl", invalid: o.fieldState.invalid, checked: o.field.value, onCheckedChange: (details) => {
|
|
80
|
-
o.field.onChange(details.checked);
|
|
81
|
-
}, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { children: ["I am at least 21 years of age and I accept the", ' ', _jsx("span", { className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })] }), _jsx(Checkbox.HiddenInput, {})] })) })] }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }), _jsx("button", { type: "submit", className: "text-button-tertiary-fg font-semibold", onClick: () => {
|
|
82
|
-
dialog.setOpen(false);
|
|
83
|
-
signInStore.setOpen(true);
|
|
84
|
-
}, children: "Log In" })] })] })), step === 2 && (_jsxs(_Fragment, { children: [_jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }), _jsxs("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: ["We\u2019ve sent a verification code to your mobile number", ' ', _jsx("span", { className: "font-semibold", children: mobileNumberParser.format(step1Form.getValues('mobileNumber')) }), ' ', "via text"] }), _jsxs("form", { className: "mt-5", onSubmit: step2Form.handleSubmit(async ({ verificationCode }) => {
|
|
85
|
-
const id = ObjectId.generate(ObjectType.MemberAccount).toString();
|
|
86
|
-
const { mobileNumber } = step1Form.getValues();
|
|
87
|
-
try {
|
|
88
|
-
await signUpMutation.mutateAsync({
|
|
89
|
-
id,
|
|
90
|
-
mobileNumber: mobileNumberParser.format(mobileNumber),
|
|
91
|
-
verificationCode: verificationCode.join(''),
|
|
92
|
-
referralCode: search.get('referralCode') ?? undefined,
|
|
93
|
-
domain: search.get('domain') ?? undefined,
|
|
94
|
-
btag: search.get('btag') ?? undefined,
|
|
95
|
-
});
|
|
96
|
-
const name = mobileNumberParser.format(mobileNumber);
|
|
97
|
-
const password = `${name}${id}`;
|
|
98
|
-
try {
|
|
99
|
-
await signInMutation.mutateAsync({
|
|
100
|
-
type: 'NAME_AND_PASSWORD',
|
|
101
|
-
name: mobileNumberParser.format(mobileNumber),
|
|
102
|
-
password,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
catch {
|
|
106
|
-
signInStore.setOpen(true);
|
|
107
|
-
}
|
|
108
|
-
dialog.setOpen(false);
|
|
109
|
-
step1Form.reset();
|
|
110
|
-
step2Form.reset();
|
|
111
|
-
setStep(1);
|
|
112
|
-
}
|
|
113
|
-
catch {
|
|
114
|
-
toaster.error({
|
|
115
|
-
title: 'Invalid Verification Code',
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}), children: [_jsx(Controller, { name: "verificationCode", control: step2Form.control, render: (o) => (_jsxs(PinInput.Root, { placeholder: "0", invalid: o.fieldState.invalid, value: o.field.value, onValueChange: (details) => {
|
|
119
|
-
o.field.onChange(details.value);
|
|
120
|
-
}, children: [_jsxs(PinInput.Control, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md", children: [_jsx(PinInput.Input, { index: 0 }), _jsx(PinInput.Input, { index: 1 }), _jsx(PinInput.Input, { index: 2 }), _jsx("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "\u2013" }), _jsx(PinInput.Input, { index: 3 }), _jsx(PinInput.Input, { index: 4 }), _jsx(PinInput.Input, { index: 5 })] }), _jsx(PinInput.HiddenInput, {})] })) }), _jsx(Button, { type: "submit", className: "mt-4xl", disabled: step2Form.formState.isSubmitting, children: "Verify" }), _jsxs("div", { className: "mt-3 flex w-full items-center justify-center gap-xs text-sm", children: [_jsx("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }), _jsx("button", { type: "button", className: "text-button-secondary-fg font-semibold disabled:cursor-not-allowed disabled:opacity-75", disabled: cooldown.cooling, onClick: async () => {
|
|
121
|
-
await sendVerificationCodeMutation.mutateAsync({
|
|
122
|
-
channel: 'SMS',
|
|
123
|
-
recipient: mobileNumberParser.format(step1Form.getValues('mobileNumber')),
|
|
124
|
-
});
|
|
125
|
-
cooldown.start();
|
|
126
|
-
}, children: cooldown.cooling
|
|
127
|
-
? `Resend in ${cooldown.countdown}s`
|
|
128
|
-
: 'Resend' })] }), _jsxs("button", { type: "button", className: "text-text-tertiary-600 mx-auto mt-3xl flex w-fit items-center gap-1 text-sm font-semibold", onClick: () => {
|
|
129
|
-
setStep(1);
|
|
130
|
-
step2Form.reset();
|
|
131
|
-
cooldown.stop();
|
|
132
|
-
}, children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] })] })] }))] }));
|
|
133
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
interface SignUpTriggerProps extends ComponentPropsWithRef<'button'> {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function SignUpTrigger(props: SignUpTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { ark } from '@ark-ui/react';
|
|
4
|
-
import { useShallow } from 'zustand/shallow';
|
|
5
|
-
import { useGlobalStore } from '../../client/hooks/index.js';
|
|
6
|
-
export function SignUpTrigger(props) {
|
|
7
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
8
|
-
signUp: ctx.signUp,
|
|
9
|
-
})));
|
|
10
|
-
return (_jsx(ark.button, { type: "button", "aria-label": "Sign up", "data-state": globalStore.signUp.open ? 'open' : 'closed', ...props, onClick: (e) => {
|
|
11
|
-
globalStore.signUp.setOpen(!globalStore.signUp.open);
|
|
12
|
-
return props.onClick?.(e);
|
|
13
|
-
} }));
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import useEmblaCarousel from 'embla-carousel-react';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import { useLocaleInfo, useTopWinsQuery } from '../../client/hooks/index.js';
|
|
6
|
-
import { formatNumber, getGameImageUrl } from '../../utils/index.js';
|
|
7
|
-
export function TopWins__client(props) {
|
|
8
|
-
const localeInfo = useLocaleInfo();
|
|
9
|
-
const topWinsQuery = useTopWinsQuery();
|
|
10
|
-
const topWins = topWinsQuery.data ?? [];
|
|
11
|
-
const [emblaRef] = useEmblaCarousel({
|
|
12
|
-
align: 'start',
|
|
13
|
-
slidesToScroll: 1,
|
|
14
|
-
});
|
|
15
|
-
if (!topWins?.length)
|
|
16
|
-
return null;
|
|
17
|
-
return (_jsxs("div", { className: props.className, children: [_jsx("div", { className: "mb-3 text-lg font-semibold md:mb-4", children: props.heading ?? 'Recent Big Wins' }), _jsx("div", { ref: emblaRef, className: "relative lg:overflow-hidden", children: _jsx("div", { className: "flex gap-sm lg:gap-md", children: topWins.map((topWin) => (_jsxs("div", { className: "bg-bg-tertiary border-border-primary flex w-[calc((100%-(0.375rem*2))/3)] shrink-0 flex-col space-y-2 rounded-sm border p-2 text-center lg:w-[calc((100%-(0.5rem*5))/6)] xl:w-[calc((100%-(0.5rem*9))/10)]", children: [_jsx("div", { className: "mx-auto aspect-square w-full", children: topWin.game && (_jsx(Image, { width: 100, height: 100, src: getGameImageUrl(topWin.game), alt: "", className: "size-full rounded-sm object-cover" })) }), _jsxs("div", { className: "space-y-0.5", children: [_jsx("div", { className: "text-text-secondary-700 text-xs", children: topWin.member.name }), _jsx("div", { className: "text-text-primary-brand text-sm font-semibold", children: formatNumber(topWin.payout, {
|
|
18
|
-
currency: localeInfo.currency.code,
|
|
19
|
-
minDecimalPlaces: 2,
|
|
20
|
-
}) }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: formatNumber(topWin.multiplier, {
|
|
21
|
-
minDecimalPlaces: 2,
|
|
22
|
-
}) })] })] }, topWin.id))) }) })] }));
|
|
23
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { prefetchTopWinsQuery } from '../../server/utils/index.js';
|
|
3
|
-
import { TopWins__client } from './TopWins.client.js';
|
|
4
|
-
export async function TopWins(props) {
|
|
5
|
-
await prefetchTopWinsQuery();
|
|
6
|
-
return _jsx(TopWins__client, { ...props });
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TopWins';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TopWins.js';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import useEmblaCarousel from 'embla-carousel-react';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { useTournamentsQuery } from '../../client/hooks/index.js';
|
|
7
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons/index.js';
|
|
8
|
-
import { Button } from '../../ui/index.js';
|
|
9
|
-
import { TournamentCounterItem } from './TournamentCounterItem.js';
|
|
10
|
-
export function TournamentCounter__client(props) {
|
|
11
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
12
|
-
align: 'start',
|
|
13
|
-
slidesToScroll: 1,
|
|
14
|
-
});
|
|
15
|
-
const scrollPrev = useCallback(() => {
|
|
16
|
-
if (emblaApi)
|
|
17
|
-
emblaApi.scrollPrev();
|
|
18
|
-
}, [emblaApi]);
|
|
19
|
-
const scrollNext = useCallback(() => {
|
|
20
|
-
if (emblaApi)
|
|
21
|
-
emblaApi.scrollNext();
|
|
22
|
-
}, [emblaApi]);
|
|
23
|
-
const [canScrollPrev, setCanScrollPrev] = useState(false);
|
|
24
|
-
const [canScrollNext, setCanScrollNext] = useState(false);
|
|
25
|
-
const onSelect = useCallback(() => {
|
|
26
|
-
if (!emblaApi)
|
|
27
|
-
return;
|
|
28
|
-
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
29
|
-
setCanScrollNext(emblaApi.canScrollNext());
|
|
30
|
-
}, [emblaApi]);
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (!emblaApi)
|
|
33
|
-
return;
|
|
34
|
-
onSelect();
|
|
35
|
-
emblaApi.on('select', onSelect);
|
|
36
|
-
emblaApi.on('reInit', onSelect);
|
|
37
|
-
}, [emblaApi, onSelect]);
|
|
38
|
-
const tournamentsQuery = useTournamentsQuery({
|
|
39
|
-
first: 100,
|
|
40
|
-
filter: {
|
|
41
|
-
status: {
|
|
42
|
-
equal: 'ACTIVE',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
const tournaments = tournamentsQuery.data?.pages[0].edges.map((edge) => edge.node) ?? [];
|
|
47
|
-
if (tournaments.length <= 0)
|
|
48
|
-
return null;
|
|
49
|
-
return (_jsxs("div", { className: props.className, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "text-lg font-semibold", children: props.heading ?? 'Tournaments' }), _jsxs("div", { className: "flex items-center md:gap-3xl", children: [_jsxs(Link, { href: props.viewAllUrl ?? '/tournaments', className: "text-button-tertiary-fg flex gap-sm text-sm font-semibold", children: ["See All", _jsx(ChevronRightIcon, { className: "size-5 lg:hidden" })] }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: "rounded-l-none", "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] })] }), _jsx("div", { className: "relative mt-lg lg:overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-2.5", children: tournaments.map((tournament, i) => (_jsx(TournamentCounterItem, { tournament: tournament, viewAllUrl: props.viewAllUrl, className: "w-full" }, i))) }) })] }));
|
|
50
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface TournamentCounterProps {
|
|
2
|
-
/** @default "Tournaments" */
|
|
3
|
-
heading?: string;
|
|
4
|
-
/** @default "/tournaments" */
|
|
5
|
-
viewAllUrl?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function TournamentCounter(props: TournamentCounterProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { prefetchJackpotsQuery } from '../../server/utils/index.js';
|
|
3
|
-
import { TournamentCounter__client } from './TournamentCounter.client.js';
|
|
4
|
-
export async function TournamentCounter(props) {
|
|
5
|
-
await prefetchJackpotsQuery({
|
|
6
|
-
first: 100,
|
|
7
|
-
filter: {
|
|
8
|
-
status: {
|
|
9
|
-
equal: 'ACTIVE',
|
|
10
|
-
},
|
|
11
|
-
deleted: {
|
|
12
|
-
equal: false,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
sort: {
|
|
16
|
-
cursor: 'POOL',
|
|
17
|
-
order: 'DESC',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
return _jsx(TournamentCounter__client, { ...props });
|
|
21
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Tournament } from '@opexa/portal-sdk-core';
|
|
2
|
-
export interface TournamentCounterItemProps {
|
|
3
|
-
tournament: Tournament;
|
|
4
|
-
className?: string;
|
|
5
|
-
/** @default "/tournaments" */
|
|
6
|
-
viewAllUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function TournamentCounterItem({ tournament, className, viewAllUrl, }: TournamentCounterItemProps): import("react/jsx-runtime").JSX.Element;
|