@opexa/portal-components 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/index.d.ts +7 -1
- package/dist/client/hooks/useAuthenticateMutation.js +1 -1
- package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
- package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
- package/dist/client/hooks/useBonusesQuery.js +1 -0
- package/dist/client/hooks/useBonusesQuery.mjs +38 -0
- package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
- package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
- package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
- package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
- package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
- package/dist/client/hooks/useGlobalStore.d.ts +34 -14
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +113 -34
- package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
- package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- package/dist/client/hooks/useSignInMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.mjs +3 -2
- package/dist/client/hooks/useSignOutMutation.js +1 -1
- package/dist/client/hooks/useSignOutMutation.mjs +11 -10
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
- package/dist/client/services/getSession.d.ts +1 -1
- package/dist/client/services/getSession.js +1 -1
- package/dist/client/services/getSession.mjs +4 -3
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +92 -80
- package/dist/components/Account/Account.d.ts +17 -8
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +253 -130
- package/dist/components/Account/account.recipe.d.ts +61 -0
- package/dist/components/Account/account.recipe.js +1 -0
- package/dist/components/Account/account.recipe.mjs +35 -0
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +375 -319
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.client.js +1 -0
- package/dist/components/Bonus/Bonus.client.mjs +143 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/Bonus.js +1 -0
- package/dist/components/Bonus/Bonus.mjs +8 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +126 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
- package/dist/components/Empty.js +1 -0
- package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
- package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
- package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
- package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
- package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
- package/dist/components/FavoriteGames/index.d.ts +1 -0
- package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
- package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
- package/dist/components/GameProviders/GameProviders.d.ts +7 -10
- package/dist/components/GameProviders/GameProviders.js +1 -0
- package/dist/components/GameProviders/GameProviders.mjs +122 -0
- package/dist/components/GameProviders/index.d.ts +1 -0
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +96 -68
- package/dist/components/Games/Games.d.ts +7 -2
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +4 -2
- package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
- package/dist/components/GamesSearch/GamesSearch.js +1 -0
- package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
- package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
- package/dist/components/GamesSearch/index.d.ts +2 -0
- package/dist/components/InfiniteScroll.d.ts +10 -0
- package/dist/components/InfiniteScroll.js +1 -0
- package/dist/components/InfiniteScroll.mjs +30 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
- package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
- package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItem.js +1 -0
- package/dist/components/Jackpots/JackpotItem.mjs +408 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
- package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
- package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
- package/dist/components/Jackpots/JackpotRules.js +1 -0
- package/dist/components/Jackpots/JackpotRules.mjs +78 -0
- package/dist/components/Jackpots/Jackpots.d.ts +8 -0
- package/dist/components/Jackpots/Jackpots.js +1 -0
- package/dist/components/Jackpots/Jackpots.mjs +61 -0
- package/dist/components/Jackpots/index.d.ts +1 -0
- package/dist/components/KYC/KYC.d.ts +5 -0
- package/dist/components/KYC/KYC.js +1 -0
- package/dist/components/KYC/KYC.mjs +84 -0
- package/dist/components/KYC/KYCContext.d.ts +3 -0
- package/dist/components/KYC/KYCContext.js +1 -0
- package/dist/components/KYC/KYCContext.mjs +11 -0
- package/dist/components/KYC/KYCTrigger.d.ts +5 -0
- package/dist/components/KYC/KYCTrigger.js +1 -0
- package/dist/components/KYC/KYCTrigger.mjs +42 -0
- package/dist/components/KYC/Step1.d.ts +1 -0
- package/dist/components/KYC/Step1.js +1 -0
- package/dist/components/KYC/Step1.mjs +67 -0
- package/dist/components/KYC/Step2.d.ts +1 -0
- package/dist/components/KYC/Step2.js +1 -0
- package/dist/components/KYC/Step2.mjs +126 -0
- package/dist/components/KYC/Step3.d.ts +1 -0
- package/dist/components/KYC/Step3.js +1 -0
- package/dist/components/KYC/Step3.mjs +98 -0
- package/dist/components/KYC/StepIndicator.d.ts +1 -0
- package/dist/components/KYC/StepIndicator.js +1 -0
- package/dist/components/KYC/StepIndicator.mjs +42 -0
- package/dist/components/KYC/UploadDocument.d.ts +1 -0
- package/dist/components/KYC/UploadDocument.js +1 -0
- package/dist/components/KYC/UploadDocument.mjs +69 -0
- package/dist/components/KYC/UploadSelfie.d.ts +1 -0
- package/dist/components/KYC/UploadSelfie.js +1 -0
- package/dist/components/KYC/UploadSelfie.mjs +65 -0
- package/dist/components/KYC/index.d.ts +2 -0
- package/dist/components/KYC/useKYC.d.ts +14 -0
- package/dist/components/KYC/useKYC.js +1 -0
- package/dist/components/KYC/useKYC.mjs +43 -0
- package/dist/components/KYC/utils.d.ts +1 -0
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +7 -7
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +75 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +95 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +166 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
- package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
- package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
- package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
- package/dist/components/Promo/Promo.d.ts +4 -1
- package/dist/components/Promo/Promo.js +1 -1
- package/dist/components/Promo/Promo.mjs +2 -2
- package/dist/components/Promo/PromoContent.js +1 -1
- package/dist/components/Promo/PromoContent.mjs +75 -22
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +30 -25
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +14 -13
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +11 -7
- package/dist/components/Promos/Promos.d.ts +4 -2
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
- package/dist/components/Quests/Quests.d.ts +1 -0
- package/dist/components/Quests/Quests.js +1 -0
- package/dist/components/Quests/Quests.mjs +15 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
- package/dist/components/Quests/index.d.ts +1 -0
- package/dist/components/SignIn/SignIn.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +34 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +169 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +34 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +125 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +15 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
- package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
- package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
- package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
- package/dist/components/Tournaments/TournamentItem.js +2 -0
- package/dist/components/Tournaments/TournamentItem.mjs +262 -0
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
- package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
- package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
- package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
- package/dist/components/Tournaments/TournamentRules.js +1 -0
- package/dist/components/Tournaments/TournamentRules.mjs +78 -0
- package/dist/components/Tournaments/Tournaments.d.ts +8 -0
- package/dist/components/Tournaments/Tournaments.js +1 -0
- package/dist/components/Tournaments/Tournaments.mjs +47 -0
- package/dist/components/Tournaments/index.d.ts +1 -0
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
- package/dist/components/index.d.ts +10 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +56 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowDownIcon.js +1 -0
- package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpIcon.js +1 -0
- package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
- package/dist/icons/Award01Icon.d.ts +2 -0
- package/dist/icons/Award01Icon.js +1 -0
- package/dist/icons/Award01Icon.mjs +22 -0
- package/dist/icons/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -0
- package/dist/icons/CalendarIcon.d.ts +2 -0
- package/dist/icons/CalendarIcon.js +1 -0
- package/dist/icons/CalendarIcon.mjs +26 -0
- package/dist/icons/Camera01Icon.d.ts +2 -0
- package/dist/icons/Camera01Icon.js +1 -0
- package/dist/icons/Camera01Icon.mjs +25 -0
- package/dist/icons/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/CheckCircleIcon.js +1 -0
- package/dist/icons/CheckCircleIcon.mjs +22 -0
- package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
- package/dist/icons/ClockStopWatchIcon.js +1 -0
- package/dist/icons/ClockStopWatchIcon.mjs +26 -0
- package/dist/icons/CoinsHandIcon.d.ts +2 -0
- package/dist/icons/CoinsHandIcon.js +1 -0
- package/dist/icons/CoinsHandIcon.mjs +22 -0
- package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
- package/dist/icons/CoinsStacked02Icon.js +1 -0
- package/dist/icons/CoinsStacked02Icon.mjs +22 -0
- package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
- package/dist/icons/CoinsSwap02Icon.js +1 -0
- package/dist/icons/CoinsSwap02Icon.mjs +22 -0
- package/dist/icons/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.mjs +22 -0
- package/dist/icons/Flag06Icon.d.ts +2 -0
- package/dist/icons/Flag06Icon.js +1 -0
- package/dist/icons/Flag06Icon.mjs +22 -0
- package/dist/icons/HelpCircleIcon.d.ts +2 -0
- package/dist/icons/HelpCircleIcon.js +1 -0
- package/dist/icons/HelpCircleIcon.mjs +22 -0
- package/dist/icons/InfoCircleIcon.d.ts +2 -0
- package/dist/icons/InfoCircleIcon.js +1 -0
- package/dist/icons/InfoCircleIcon.mjs +27 -0
- package/dist/icons/Menu01Icon.d.ts +2 -0
- package/dist/icons/Menu01Icon.js +1 -0
- package/dist/icons/Menu01Icon.mjs +22 -0
- package/dist/icons/Menu03Icon.d.ts +2 -0
- package/dist/icons/Menu03Icon.js +1 -0
- package/dist/icons/Menu03Icon.mjs +22 -0
- package/dist/icons/SearchLgIcon.d.ts +2 -0
- package/dist/icons/SearchLgIcon.js +1 -0
- package/dist/icons/SearchLgIcon.mjs +22 -0
- package/dist/icons/Settings02Icon.d.ts +2 -0
- package/dist/icons/Settings02Icon.js +1 -0
- package/dist/icons/Settings02Icon.mjs +25 -0
- package/dist/icons/Star01Icon.d.ts +2 -0
- package/dist/icons/Star01Icon.js +1 -0
- package/dist/icons/Star01Icon.mjs +22 -0
- package/dist/icons/StarIcon.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +18 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- package/dist/icons/UploadCloud02Icon.d.ts +2 -0
- package/dist/icons/UploadCloud02Icon.js +1 -0
- package/dist/icons/UploadCloud02Icon.mjs +22 -0
- package/dist/icons/index.d.ts +22 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +94 -0
- package/dist/images/fantasma-games.png.js +1 -0
- package/dist/images/fantasma-games.png.mjs +4 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.png.mjs +4 -0
- package/dist/images/hacksaw-gaming.png.js +1 -0
- package/dist/images/hacksaw-gaming.png.mjs +4 -0
- package/dist/images/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- package/dist/images/trophy-two.png.js +1 -0
- package/dist/images/trophy-two.png.mjs +4 -0
- package/dist/portal-components.css +1 -1
- package/dist/server/services/getSession.d.ts +1 -1
- package/dist/server/services/getSession.js +1 -1
- package/dist/server/services/getSession.mjs +6 -5
- package/dist/server/utils/index.d.ts +2 -1
- package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchBonusesQuery.js +1 -0
- package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
- package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/server-utils.js +1 -1
- package/dist/server-utils.mjs +38 -36
- package/dist/theme.css +131 -5
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- package/dist/ui/Combobox/Combobox.d.ts +815 -1
- package/dist/ui/Combobox/Combobox.js +1 -1
- package/dist/ui/Combobox/Combobox.mjs +27 -2
- package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
- package/dist/ui/Combobox/combobox.recipe.js +1 -0
- package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
- package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- package/dist/ui/Dialog/Dialog.d.ts +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +7 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +9 -2
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +56 -38
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +48 -41
- package/package.json +24 -12
- package/dist/client/hooks/useSiteQuery.d.ts +0 -3
- package/dist/client/hooks/useSiteQuery.js +0 -1
- package/dist/client/hooks/useSiteQuery.mjs +0 -23
- package/dist/components/Empty/CloudIcon.d.ts +0 -2
- package/dist/components/Empty/CloudIcon.js +0 -1
- package/dist/components/Empty/Empty.js +0 -1
- package/dist/components/Empty/Empty.mjs +0 -16
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/PortalProvider/Providers.d.ts +0 -2
- package/dist/components/Promos/PromosContent.d.ts +0 -2
- package/dist/images/ball.png.js +0 -1
- package/dist/images/ball.png.mjs +0 -4
- package/dist/images/card.png.js +0 -1
- package/dist/images/card.png.mjs +0 -4
- package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
- package/dist/server/utils/prefetchSiteQuery.js +0 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
- /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Portal as
|
|
4
|
-
import
|
|
5
|
-
import { useShallow as
|
|
2
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Portal as p } from "@ark-ui/react";
|
|
4
|
+
import e from "next/image";
|
|
5
|
+
import { useShallow as n } from "zustand/shallow";
|
|
6
6
|
import "@opexa/portal-sdk-core";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "tiny-invariant";
|
|
@@ -12,76 +12,69 @@ import "../../utils/parseDecimal.mjs";
|
|
|
12
12
|
import "../../utils/getLocaleInfo.mjs";
|
|
13
13
|
import "../../utils/getQueryClient.mjs";
|
|
14
14
|
import "../../utils/isMobile.mjs";
|
|
15
|
+
import "../../client/services/getSession.mjs";
|
|
15
16
|
import "react";
|
|
16
17
|
import "lodash-es";
|
|
17
18
|
import "@opexa/portal-sdk-core/object-id";
|
|
18
|
-
import { useGlobalStore as
|
|
19
|
+
import { useGlobalStore as l } from "../../client/hooks/useGlobalStore.mjs";
|
|
19
20
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
20
21
|
import "usehooks-ts";
|
|
21
|
-
import { XIcon as
|
|
22
|
+
import { XIcon as a } from "../../icons/XIcon.mjs";
|
|
22
23
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
23
24
|
import "../../ui/Avatar/Avatar.mjs";
|
|
24
25
|
import "../../ui/Badge/Badge.mjs";
|
|
25
26
|
import "../../ui/Button/button.recipe.mjs";
|
|
26
27
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
27
28
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
29
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
30
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
28
31
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
29
|
-
import { Root as
|
|
32
|
+
import { Root as s, Trigger as c, Backdrop as u, Positioner as g, Content as h, CloseTrigger as d } from "../../ui/Dialog/Dialog.mjs";
|
|
30
33
|
import "../../ui/Drawer/Drawer.mjs";
|
|
31
34
|
import "../../ui/Field/Field.mjs";
|
|
32
35
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
33
36
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
37
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
34
38
|
import "../../ui/PinInput/PinInput.mjs";
|
|
35
39
|
import "../../ui/Popover/Popover.mjs";
|
|
36
40
|
import "tailwind-merge";
|
|
41
|
+
import "../../ui/Progress/Progress.mjs";
|
|
37
42
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
38
43
|
import "../../ui/Select/Select.mjs";
|
|
39
44
|
import "../../ui/Table/Table.mjs";
|
|
40
45
|
import "../../ui/Tabs/Tabs.mjs";
|
|
41
46
|
import { SignInForm as f } from "./SignInForm.mjs";
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
47
|
+
function lo(i) {
|
|
48
|
+
const m = l(n((t) => t.signIn));
|
|
49
|
+
return /* @__PURE__ */ r(
|
|
50
|
+
s,
|
|
46
51
|
{
|
|
47
|
-
open:
|
|
48
|
-
onOpenChange: (
|
|
49
|
-
|
|
52
|
+
open: m.open,
|
|
53
|
+
onOpenChange: (t) => {
|
|
54
|
+
m.setOpen(t.open);
|
|
50
55
|
},
|
|
51
56
|
lazyMount: !0,
|
|
52
57
|
unmountOnExit: !0,
|
|
53
58
|
closeOnEscape: !1,
|
|
54
59
|
closeOnInteractOutside: !1,
|
|
55
60
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
61
|
+
/* @__PURE__ */ o(c, { asChild: !0, children: i.children ?? /* @__PURE__ */ o("button", { type: "button", className: "px-3.5 font-semibold", children: "Login" }) }),
|
|
62
|
+
/* @__PURE__ */ r(p, { children: [
|
|
63
|
+
/* @__PURE__ */ o(u, {}),
|
|
64
|
+
/* @__PURE__ */ o(g, { children: /* @__PURE__ */ r(h, { 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: [
|
|
65
|
+
/* @__PURE__ */ o(d, { children: /* @__PURE__ */ o(a, {}) }),
|
|
66
|
+
/* @__PURE__ */ o(
|
|
67
|
+
e,
|
|
62
68
|
{
|
|
63
|
-
src:
|
|
64
|
-
alt: "
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
className: "
|
|
69
|
+
src: i.logo,
|
|
70
|
+
alt: "",
|
|
71
|
+
width: 200,
|
|
72
|
+
height: 100,
|
|
73
|
+
className: "mx-auto h-auto w-[120px]",
|
|
74
|
+
draggable: !1
|
|
68
75
|
}
|
|
69
76
|
),
|
|
70
|
-
/* @__PURE__ */ o(
|
|
71
|
-
/* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(s, {}) }),
|
|
72
|
-
/* @__PURE__ */ t(
|
|
73
|
-
m,
|
|
74
|
-
{
|
|
75
|
-
src: r.logo,
|
|
76
|
-
alt: "",
|
|
77
|
-
width: 200,
|
|
78
|
-
height: 100,
|
|
79
|
-
className: "mx-auto h-auto w-[120px]",
|
|
80
|
-
draggable: !1
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ t(f, {})
|
|
84
|
-
] })
|
|
77
|
+
/* @__PURE__ */ o(f, {})
|
|
85
78
|
] }) })
|
|
86
79
|
] })
|
|
87
80
|
]
|
|
@@ -89,5 +82,5 @@ function it(r) {
|
|
|
89
82
|
);
|
|
90
83
|
}
|
|
91
84
|
export {
|
|
92
|
-
|
|
85
|
+
lo as SignIn
|
|
93
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("@ark-ui/react"),j=require("@hookform/resolvers/zod"),S=require("react"),m=require("react-hook-form"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("@ark-ui/react"),j=require("@hookform/resolvers/zod"),S=require("react"),m=require("react-hook-form"),n=require("zod"),w=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../client/services/getSession.js");const k=require("../../client/hooks/useCooldown.js");require("@opexa/portal-sdk-core/object-id");const z=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const F=require("../../client/hooks/useLocaleInfo.js"),M=require("../../client/hooks/useMobileNumberParser.js");require("usehooks-ts");const R=require("../../client/hooks/useSendVerificationCodeMutation.js"),V=require("../../client/hooks/useSignInMutation.js"),q=require("../../client/utils/toaster.js"),L=require("../../icons/ArrowLeftIcon.js"),A=require("../../icons/CheckIcon.js"),B=require("../../icons/FacebookIcon.js"),O=require("../../icons/GoogleIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const d=require("../../ui/Button/Button.js"),c=require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");const x=require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");const i=require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function P(){var g;const[h,b]=S.useState(1),u=C.useDialogContext(),N=z.useGlobalStore(w.useShallow(t=>t.signUp)),y=V.useSignInMutation(),p=R.useSendVerificationCodeMutation(),f=F.useLocaleInfo(),a=M.useMobileNumberParser(),v=n.z.object({mobileNumber:n.z.string().superRefine((t,r)=>{a.validate(t)||r.addIssue({code:n.z.ZodIssueCode.custom,message:"Invalid mobile number"})}),termsAccepted:n.z.boolean().superRefine((t,r)=>{t||r.addIssue({code:n.z.ZodIssueCode.custom,message:"You must accept the terms and conditions"})})}),I=n.z.object({verificationCode:n.z.array(n.z.string().min(1).max(1).trim()).min(6).max(6)}),s=m.useForm({resolver:j.zodResolver(v),defaultValues:{mobileNumber:"",termsAccepted:!1}}),l=m.useForm({resolver:j.zodResolver(I),defaultValues:{verificationCode:Array.from({length:6}).fill("")}}),o=k.useCooldown({max:60,duration:1e3*60});return e.jsxs(e.Fragment,{children:[h===1&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Log in to your account"}),e.jsx("p",{className:"text-text-secondary-700 mt-xs text-center text-sm",children:"Welcome back! Please enter your details."}),e.jsxs("form",{className:"mt-3xl",onSubmit:s.handleSubmit(async t=>{try{await p.mutateAsync({channel:"SMS",recipient:a.format(t.mobileNumber),strict:!0}),b(2),o.start()}catch(r){q.toaster.error({description:r instanceof Error?r.message:"Failed to send verification code"})}}),children:[e.jsxs(x.Root,{invalid:!!s.formState.errors.mobileNumber,children:[e.jsx(x.Label,{children:"Mobile Number"}),e.jsxs("div",{className:"relative",children:[e.jsx(f.country.flag,{className:"absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2"}),e.jsx(x.Input,{className:"pl-11",placeholder:`${f.mobileNumber.areaCode}${f.mobileNumber.example}`,...s.register("mobileNumber")})]}),e.jsx(x.ErrorText,{children:(g=s.formState.errors.mobileNumber)==null?void 0:g.message})]}),e.jsx(d.Button,{type:"submit",className:"mt-3xl",disabled:s.formState.isSubmitting,children:"Log In"}),e.jsx(m.Controller,{control:s.control,name:"termsAccepted",render:t=>e.jsxs(c.Root,{className:"mt-xl",invalid:t.fieldState.invalid,checked:t.field.value,onCheckedChange:r=>{t.field.onChange(r.checked)},children:[e.jsx(c.Control,{children:e.jsx(c.Indicator,{asChild:!0,children:e.jsx(A.CheckIcon,{})})}),e.jsxs(c.Label,{children:["I am at least 21 years of age and I accept the"," ",e.jsx("span",{className:"text-brand-400 whitespace-nowrap underline underline-offset-2",children:"Terms and Conditions."})]}),e.jsx(c.HiddenInput,{})]})})]}),e.jsxs("div",{className:"relative mt-6 text-center",children:[e.jsx("hr",{className:"-translte-y-1/2 text-text-tertiary-600/50 absolute top-1/2 w-full"}),e.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"})]}),e.jsxs("div",{className:"mt-6",children:[e.jsxs(d.Button,{variant:"outline",colorScheme:"gray",onClick:()=>{u.setOpen(!1)},className:"border-border-primary bg-bg-primary text-text-secondary-700",children:[e.jsx(O.GoogleIcon,{className:"size-6"}),"Continue with Google"]}),e.jsxs(d.Button,{variant:"outline",colorScheme:"gray",onClick:()=>{u.setOpen(!1)},className:"border-border-primary bg-bg-primary text-text-secondary-700 mt-lg",children:[e.jsx(B.FacebookIcon,{className:"size-6"}),"Continue with Facebook"]})]}),e.jsxs("div",{className:"mt-6 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-text-tertiary-600",children:"Don't have an account?"}),e.jsx("button",{type:"submit",className:"text-button-tertiary-fg font-semibold",onClick:()=>{u.setOpen(!1),N.setOpen(!0)},children:"Sign up"})]})]}),h===2&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Check your Phone"}),e.jsxs("p",{className:"text-text-secondary-700 mt-xs text-center text-sm",children:["We’ve sent a verification code to your mobile number"," ",e.jsx("span",{className:"font-semibold",children:a.format(s.getValues("mobileNumber"))})," ","via text"]}),e.jsxs("form",{className:"mt-5",onSubmit:l.handleSubmit(async({verificationCode:t})=>{const{mobileNumber:r}=s.getValues();try{await y.mutateAsync({type:"MOBILE_NUMBER",mobileNumber:a.format(r),verificationCode:t.join("")}),u.setOpen(!1),s.reset(),l.reset(),b(1)}catch{q.toaster.error({description:"Invalid Verification Code"})}}),children:[e.jsx(m.Controller,{name:"verificationCode",control:l.control,render:t=>e.jsxs(i.Root,{placeholder:"0",invalid:t.fieldState.invalid,value:t.field.value,onValueChange:r=>{t.field.onChange(r.value)},children:[e.jsxs(i.Control,{className:"grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md",children:[e.jsx(i.Input,{index:0}),e.jsx(i.Input,{index:1}),e.jsx(i.Input,{index:2}),e.jsx("span",{className:"text-text-placeholder-subtle text-2xl font-medium",children:"–"}),e.jsx(i.Input,{index:3}),e.jsx(i.Input,{index:4}),e.jsx(i.Input,{index:5})]}),e.jsx(i.HiddenInput,{})]})}),e.jsx(d.Button,{type:"submit",className:"mt-4xl",disabled:l.formState.isSubmitting,children:"Verify"}),e.jsxs("div",{className:"mt-3 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsx("span",{className:"text-text-secondary-700",children:"Didn't recieve the code?"}),e.jsx("button",{type:"button",className:"text-button-secondary-fg font-semibold",disabled:o.cooling,onClick:async()=>{await p.mutateAsync({channel:"SMS",recipient:a.format(s.getValues("mobileNumber"))}),o.start()},children:o.cooling?`Resend in ${o.countdown}s`:"Resend"})]}),e.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:()=>{b(1),l.reset(),o.stop()},children:[e.jsx(L.ArrowLeftIcon,{className:"size-5"}),"Back"]})]})]})]})}exports.SignInForm=P;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as t, Fragment as
|
|
2
|
+
import { jsxs as t, Fragment as f, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useDialogContext as k } from "@ark-ui/react";
|
|
4
|
-
import { zodResolver as
|
|
4
|
+
import { zodResolver as g } from "@hookform/resolvers/zod";
|
|
5
5
|
import { useState as R } from "react";
|
|
6
|
-
import { useForm as N, Controller as
|
|
6
|
+
import { useForm as N, Controller as y } from "react-hook-form";
|
|
7
7
|
import { z as n } from "zod";
|
|
8
|
-
import { useShallow as
|
|
8
|
+
import { useShallow as M } from "zustand/shallow";
|
|
9
9
|
import "@opexa/portal-sdk-core";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "tiny-invariant";
|
|
@@ -15,187 +15,195 @@ import "../../utils/parseDecimal.mjs";
|
|
|
15
15
|
import "../../utils/getLocaleInfo.mjs";
|
|
16
16
|
import "../../utils/getQueryClient.mjs";
|
|
17
17
|
import "../../utils/isMobile.mjs";
|
|
18
|
-
import
|
|
18
|
+
import "../../client/services/getSession.mjs";
|
|
19
|
+
import { useCooldown as V } from "../../client/hooks/useCooldown.mjs";
|
|
19
20
|
import "@opexa/portal-sdk-core/object-id";
|
|
20
|
-
import { useGlobalStore as
|
|
21
|
+
import { useGlobalStore as L } from "../../client/hooks/useGlobalStore.mjs";
|
|
21
22
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
-
import { useLocaleInfo as
|
|
23
|
-
import { useMobileNumberParser as
|
|
23
|
+
import { useLocaleInfo as $ } from "../../client/hooks/useLocaleInfo.mjs";
|
|
24
|
+
import { useMobileNumberParser as A } from "../../client/hooks/useMobileNumberParser.mjs";
|
|
24
25
|
import "usehooks-ts";
|
|
25
|
-
import { useSendVerificationCodeMutation as
|
|
26
|
-
import { useSignInMutation as
|
|
27
|
-
import { toaster as
|
|
28
|
-
import { ArrowLeftIcon as
|
|
29
|
-
import { CheckIcon as
|
|
30
|
-
import { FacebookIcon as
|
|
26
|
+
import { useSendVerificationCodeMutation as F } from "../../client/hooks/useSendVerificationCodeMutation.mjs";
|
|
27
|
+
import { useSignInMutation as j } from "../../client/hooks/useSignInMutation.mjs";
|
|
28
|
+
import { toaster as v } from "../../client/utils/toaster.mjs";
|
|
29
|
+
import { ArrowLeftIcon as _ } from "../../icons/ArrowLeftIcon.mjs";
|
|
30
|
+
import { CheckIcon as z } from "../../icons/CheckIcon.mjs";
|
|
31
|
+
import { FacebookIcon as O } from "../../icons/FacebookIcon.mjs";
|
|
31
32
|
import { GoogleIcon as D } from "../../icons/GoogleIcon.mjs";
|
|
32
33
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
33
34
|
import "../../ui/Avatar/Avatar.mjs";
|
|
34
35
|
import "../../ui/Badge/Badge.mjs";
|
|
35
36
|
import { Button as d } from "../../ui/Button/Button.mjs";
|
|
36
|
-
import { Root as
|
|
37
|
+
import { Root as B, Control as E, Indicator as P, Label as G, HiddenInput as H } from "../../ui/Checkbox/Checkbox.mjs";
|
|
37
38
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
39
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
40
|
+
import "../../ui/Combobox/Combobox.mjs";
|
|
38
41
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
39
42
|
import "../../ui/Dialog/Dialog.mjs";
|
|
40
43
|
import "../../ui/Drawer/Drawer.mjs";
|
|
41
|
-
import { Root as
|
|
44
|
+
import { Root as U, Label as T, Input as W, ErrorText as Z } from "../../ui/Field/Field.mjs";
|
|
42
45
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
43
46
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
44
|
-
import
|
|
47
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
48
|
+
import { Root as Y, Control as q, Input as s, HiddenInput as J } from "../../ui/PinInput/PinInput.mjs";
|
|
45
49
|
import "../../ui/Popover/Popover.mjs";
|
|
46
50
|
import "tailwind-merge";
|
|
51
|
+
import "../../ui/Progress/Progress.mjs";
|
|
47
52
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
48
53
|
import "../../ui/Select/Select.mjs";
|
|
49
54
|
import "../../ui/Table/Table.mjs";
|
|
50
55
|
import "../../ui/Tabs/Tabs.mjs";
|
|
51
|
-
function
|
|
52
|
-
var
|
|
53
|
-
const [
|
|
54
|
-
mobileNumber: n.string().superRefine((o,
|
|
55
|
-
|
|
56
|
+
function Ke() {
|
|
57
|
+
var x;
|
|
58
|
+
const [b, p] = R(1), c = k(), C = L(M((o) => o.signUp)), S = j(), h = F(), u = $(), m = A(), I = n.object({
|
|
59
|
+
mobileNumber: n.string().superRefine((o, r) => {
|
|
60
|
+
m.validate(o) || r.addIssue({
|
|
56
61
|
code: n.ZodIssueCode.custom,
|
|
57
62
|
message: "Invalid mobile number"
|
|
58
63
|
});
|
|
59
64
|
}),
|
|
60
|
-
termsAccepted: n.boolean().superRefine((o,
|
|
61
|
-
o ||
|
|
65
|
+
termsAccepted: n.boolean().superRefine((o, r) => {
|
|
66
|
+
o || r.addIssue({
|
|
62
67
|
code: n.ZodIssueCode.custom,
|
|
63
68
|
message: "You must accept the terms and conditions"
|
|
64
69
|
});
|
|
65
70
|
})
|
|
66
71
|
}), w = n.object({
|
|
67
72
|
verificationCode: n.array(n.string().min(1).max(1).trim()).min(6).max(6)
|
|
68
|
-
}),
|
|
69
|
-
resolver:
|
|
73
|
+
}), i = N({
|
|
74
|
+
resolver: g(I),
|
|
70
75
|
defaultValues: {
|
|
71
76
|
mobileNumber: "",
|
|
72
77
|
termsAccepted: !1
|
|
73
78
|
}
|
|
74
|
-
}),
|
|
75
|
-
resolver:
|
|
79
|
+
}), l = N({
|
|
80
|
+
resolver: g(w),
|
|
76
81
|
defaultValues: {
|
|
77
82
|
verificationCode: Array.from({ length: 6 }).fill("")
|
|
78
83
|
}
|
|
79
|
-
}), a =
|
|
84
|
+
}), a = V({
|
|
80
85
|
max: 60,
|
|
81
86
|
duration: 1e3 * 60
|
|
82
87
|
});
|
|
83
|
-
return /* @__PURE__ */ t(
|
|
84
|
-
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
return /* @__PURE__ */ t(f, { children: [
|
|
89
|
+
b === 1 && /* @__PURE__ */ t(f, { children: [
|
|
90
|
+
/* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Log in to your account" }),
|
|
91
|
+
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Welcome back! Please enter your details." }),
|
|
92
|
+
/* @__PURE__ */ t(
|
|
93
|
+
"form",
|
|
94
|
+
{
|
|
95
|
+
className: "mt-3xl",
|
|
96
|
+
onSubmit: i.handleSubmit(async (o) => {
|
|
97
|
+
try {
|
|
98
|
+
await h.mutateAsync({
|
|
99
|
+
channel: "SMS",
|
|
100
|
+
recipient: m.format(o.mobileNumber),
|
|
101
|
+
strict: !0
|
|
102
|
+
}), p(2), a.start();
|
|
103
|
+
} catch (r) {
|
|
104
|
+
v.error({
|
|
105
|
+
description: r instanceof Error ? r.message : "Failed to send verification code"
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ t(U, { invalid: !!i.formState.errors.mobileNumber, children: [
|
|
111
|
+
/* @__PURE__ */ e(T, { children: "Mobile Number" }),
|
|
112
|
+
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
113
|
+
/* @__PURE__ */ e(u.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
|
|
114
|
+
/* @__PURE__ */ e(
|
|
115
|
+
W,
|
|
116
|
+
{
|
|
117
|
+
className: "pl-11",
|
|
118
|
+
placeholder: `${u.mobileNumber.areaCode}${u.mobileNumber.example}`,
|
|
119
|
+
...i.register("mobileNumber")
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ e(Z, { children: (x = i.formState.errors.mobileNumber) == null ? void 0 : x.message })
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ e(
|
|
126
|
+
d,
|
|
127
|
+
{
|
|
128
|
+
type: "submit",
|
|
129
|
+
className: "mt-3xl",
|
|
130
|
+
disabled: i.formState.isSubmitting,
|
|
131
|
+
children: "Log In"
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ e(
|
|
135
|
+
y,
|
|
136
|
+
{
|
|
137
|
+
control: i.control,
|
|
138
|
+
name: "termsAccepted",
|
|
139
|
+
render: (o) => /* @__PURE__ */ t(
|
|
140
|
+
B,
|
|
141
|
+
{
|
|
142
|
+
className: "mt-xl",
|
|
143
|
+
invalid: o.fieldState.invalid,
|
|
144
|
+
checked: o.field.value,
|
|
145
|
+
onCheckedChange: (r) => {
|
|
146
|
+
o.field.onChange(r.checked);
|
|
147
|
+
},
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(z, {}) }) }),
|
|
150
|
+
/* @__PURE__ */ t(G, { children: [
|
|
151
|
+
"I am at least 21 years of age and I accept the",
|
|
152
|
+
" ",
|
|
153
|
+
/* @__PURE__ */ e("span", { className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ e(H, {})
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ t("div", { className: "relative mt-6 text-center", children: [
|
|
165
|
+
/* @__PURE__ */ e("hr", { className: "-translte-y-1/2 text-text-tertiary-600/50 absolute top-1/2 w-full" }),
|
|
166
|
+
/* @__PURE__ */ e("span", { className: "text-text-tertiary-600 bg-bg-primary-alt relative px-md text-center text-sm font-semibold", children: "Log in directly with" })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ t("div", { className: "mt-6", children: [
|
|
88
169
|
/* @__PURE__ */ t(
|
|
89
|
-
|
|
170
|
+
d,
|
|
90
171
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
strict: !0
|
|
98
|
-
}), u(2), a.start();
|
|
99
|
-
} catch (i) {
|
|
100
|
-
y.error({
|
|
101
|
-
description: i instanceof Error ? i.message : "Failed to send verification code"
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
172
|
+
variant: "outline",
|
|
173
|
+
colorScheme: "gray",
|
|
174
|
+
onClick: () => {
|
|
175
|
+
c.setOpen(!1);
|
|
176
|
+
},
|
|
177
|
+
className: "border-border-primary bg-bg-primary text-text-secondary-700",
|
|
105
178
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
|
|
108
|
-
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
109
|
-
/* @__PURE__ */ e(p.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
Z,
|
|
112
|
-
{
|
|
113
|
-
className: "pl-11",
|
|
114
|
-
placeholder: `${p.mobileNumber.areaCode}${p.mobileNumber.example}`,
|
|
115
|
-
...r.register("mobileNumber")
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ e(Y, { children: (b = r.formState.errors.mobileNumber) == null ? void 0 : b.message })
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
d,
|
|
123
|
-
{
|
|
124
|
-
type: "submit",
|
|
125
|
-
className: "mt-xl",
|
|
126
|
-
disabled: r.formState.isSubmitting,
|
|
127
|
-
children: "Log In"
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
v,
|
|
132
|
-
{
|
|
133
|
-
control: r.control,
|
|
134
|
-
name: "termsAccepted",
|
|
135
|
-
render: (o) => /* @__PURE__ */ t(
|
|
136
|
-
E,
|
|
137
|
-
{
|
|
138
|
-
className: "mt-xl",
|
|
139
|
-
invalid: o.fieldState.invalid,
|
|
140
|
-
checked: o.field.value,
|
|
141
|
-
onCheckedChange: (i) => {
|
|
142
|
-
o.field.onChange(i.checked);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(j, {}) }) }),
|
|
146
|
-
/* @__PURE__ */ e(U, { children: "I confirm that I am at least 21 years old, not listed in the PAGCOR NDRP, not a GEL license holder, government employee, or member of the Armed Forces of the Philippines. I am not playing in a public space and agree to the Terms of Use and Privacy Policy. Ineligible accounts will have their funds forfeited to the government." }),
|
|
147
|
-
/* @__PURE__ */ e(H, {})
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
)
|
|
179
|
+
/* @__PURE__ */ e(D, { className: "size-6" }),
|
|
180
|
+
"Continue with Google"
|
|
153
181
|
]
|
|
154
182
|
}
|
|
155
183
|
),
|
|
156
|
-
/* @__PURE__ */ t(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"Continue with Google"
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
/* @__PURE__ */ t(
|
|
176
|
-
d,
|
|
177
|
-
{
|
|
178
|
-
variant: "outline",
|
|
179
|
-
colorScheme: "gray",
|
|
180
|
-
className: "mt-lg",
|
|
181
|
-
onClick: () => {
|
|
182
|
-
c.setOpen(!1);
|
|
183
|
-
},
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ e(z, { className: "size-6" }),
|
|
186
|
-
"Continue with Facebook"
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] })
|
|
184
|
+
/* @__PURE__ */ t(
|
|
185
|
+
d,
|
|
186
|
+
{
|
|
187
|
+
variant: "outline",
|
|
188
|
+
colorScheme: "gray",
|
|
189
|
+
onClick: () => {
|
|
190
|
+
c.setOpen(!1);
|
|
191
|
+
},
|
|
192
|
+
className: "border-border-primary bg-bg-primary text-text-secondary-700 mt-lg",
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ e(O, { className: "size-6" }),
|
|
195
|
+
"Continue with Facebook"
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
)
|
|
191
199
|
] }),
|
|
192
|
-
/* @__PURE__ */ t("div", { className: "flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
193
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
200
|
+
/* @__PURE__ */ t("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
201
|
+
/* @__PURE__ */ e("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }),
|
|
194
202
|
/* @__PURE__ */ e(
|
|
195
203
|
"button",
|
|
196
204
|
{
|
|
197
205
|
type: "submit",
|
|
198
|
-
className: "text-
|
|
206
|
+
className: "text-button-tertiary-fg font-semibold",
|
|
199
207
|
onClick: () => {
|
|
200
208
|
c.setOpen(!1), C.setOpen(!0);
|
|
201
209
|
},
|
|
@@ -204,12 +212,12 @@ function Ze() {
|
|
|
204
212
|
)
|
|
205
213
|
] })
|
|
206
214
|
] }),
|
|
207
|
-
|
|
215
|
+
b === 2 && /* @__PURE__ */ t(f, { children: [
|
|
208
216
|
/* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }),
|
|
209
|
-
/* @__PURE__ */ t("p", { className: "text-
|
|
217
|
+
/* @__PURE__ */ t("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: [
|
|
210
218
|
"We’ve sent a verification code to your mobile number",
|
|
211
219
|
" ",
|
|
212
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children:
|
|
220
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: m.format(i.getValues("mobileNumber")) }),
|
|
213
221
|
" ",
|
|
214
222
|
"via text"
|
|
215
223
|
] }),
|
|
@@ -217,40 +225,41 @@ function Ze() {
|
|
|
217
225
|
"form",
|
|
218
226
|
{
|
|
219
227
|
className: "mt-5",
|
|
220
|
-
onSubmit:
|
|
221
|
-
const { mobileNumber:
|
|
228
|
+
onSubmit: l.handleSubmit(async ({ verificationCode: o }) => {
|
|
229
|
+
const { mobileNumber: r } = i.getValues();
|
|
222
230
|
try {
|
|
223
231
|
await S.mutateAsync({
|
|
224
232
|
type: "MOBILE_NUMBER",
|
|
225
|
-
mobileNumber:
|
|
233
|
+
mobileNumber: m.format(r),
|
|
226
234
|
verificationCode: o.join("")
|
|
227
|
-
}), c.setOpen(!1),
|
|
235
|
+
}), c.setOpen(!1), i.reset(), l.reset(), p(1);
|
|
228
236
|
} catch {
|
|
229
|
-
|
|
237
|
+
v.error({
|
|
230
238
|
description: "Invalid Verification Code"
|
|
231
239
|
});
|
|
232
240
|
}
|
|
233
241
|
}),
|
|
234
242
|
children: [
|
|
235
243
|
/* @__PURE__ */ e(
|
|
236
|
-
|
|
244
|
+
y,
|
|
237
245
|
{
|
|
238
246
|
name: "verificationCode",
|
|
239
|
-
control:
|
|
247
|
+
control: l.control,
|
|
240
248
|
render: (o) => /* @__PURE__ */ t(
|
|
241
|
-
|
|
249
|
+
Y,
|
|
242
250
|
{
|
|
243
251
|
placeholder: "0",
|
|
244
252
|
invalid: o.fieldState.invalid,
|
|
245
253
|
value: o.field.value,
|
|
246
|
-
onValueChange: (
|
|
247
|
-
o.field.onChange(
|
|
254
|
+
onValueChange: (r) => {
|
|
255
|
+
o.field.onChange(r.value);
|
|
248
256
|
},
|
|
249
257
|
children: [
|
|
250
|
-
/* @__PURE__ */ t(q, { children: [
|
|
258
|
+
/* @__PURE__ */ t(q, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md", children: [
|
|
251
259
|
/* @__PURE__ */ e(s, { index: 0 }),
|
|
252
260
|
/* @__PURE__ */ e(s, { index: 1 }),
|
|
253
261
|
/* @__PURE__ */ e(s, { index: 2 }),
|
|
262
|
+
/* @__PURE__ */ e("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "–" }),
|
|
254
263
|
/* @__PURE__ */ e(s, { index: 3 }),
|
|
255
264
|
/* @__PURE__ */ e(s, { index: 4 }),
|
|
256
265
|
/* @__PURE__ */ e(s, { index: 5 })
|
|
@@ -265,24 +274,24 @@ function Ze() {
|
|
|
265
274
|
d,
|
|
266
275
|
{
|
|
267
276
|
type: "submit",
|
|
268
|
-
className: "mt-
|
|
269
|
-
disabled:
|
|
270
|
-
children: "Verify
|
|
277
|
+
className: "mt-4xl",
|
|
278
|
+
disabled: l.formState.isSubmitting,
|
|
279
|
+
children: "Verify"
|
|
271
280
|
}
|
|
272
281
|
),
|
|
273
|
-
/* @__PURE__ */ t("div", { className: "mt-
|
|
274
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
282
|
+
/* @__PURE__ */ t("div", { className: "mt-3 flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
283
|
+
/* @__PURE__ */ e("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }),
|
|
275
284
|
/* @__PURE__ */ e(
|
|
276
285
|
"button",
|
|
277
286
|
{
|
|
278
287
|
type: "button",
|
|
279
|
-
className: "text-
|
|
288
|
+
className: "text-button-secondary-fg font-semibold",
|
|
280
289
|
disabled: a.cooling,
|
|
281
290
|
onClick: async () => {
|
|
282
291
|
await h.mutateAsync({
|
|
283
292
|
channel: "SMS",
|
|
284
|
-
recipient:
|
|
285
|
-
|
|
293
|
+
recipient: m.format(
|
|
294
|
+
i.getValues("mobileNumber")
|
|
286
295
|
)
|
|
287
296
|
}), a.start();
|
|
288
297
|
},
|
|
@@ -294,12 +303,12 @@ function Ze() {
|
|
|
294
303
|
"button",
|
|
295
304
|
{
|
|
296
305
|
type: "button",
|
|
297
|
-
className: "text-
|
|
306
|
+
className: "text-text-tertiary-600 mx-auto mt-3xl flex w-fit items-center gap-1 text-sm font-semibold",
|
|
298
307
|
onClick: () => {
|
|
299
|
-
|
|
308
|
+
p(1), l.reset(), a.stop();
|
|
300
309
|
},
|
|
301
310
|
children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
311
|
+
/* @__PURE__ */ e(_, { className: "size-5" }),
|
|
303
312
|
"Back"
|
|
304
313
|
]
|
|
305
314
|
}
|
|
@@ -311,5 +320,5 @@ function Ze() {
|
|
|
311
320
|
] });
|
|
312
321
|
}
|
|
313
322
|
export {
|
|
314
|
-
|
|
323
|
+
Ke as SignInForm
|
|
315
324
|
};
|