@opexa/portal-components 0.0.8 → 0.0.9
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/_virtual/jsx-runtime.js +1 -1
- package/dist/_virtual/jsx-runtime.mjs +3 -2
- package/dist/_virtual/jsx-runtime2.js +1 -0
- package/dist/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +159 -117
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +49 -45
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +344 -232
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +20 -19
- package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/AvailablePromos.mjs +98 -80
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +38 -27
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +189 -148
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +181 -140
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +187 -146
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.mjs +16 -10
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +198 -151
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +65 -29
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +8 -7
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.mjs +14 -8
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +179 -141
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.mjs +9 -4
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +103 -55
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +22 -16
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +7 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +87 -59
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +57 -51
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +77 -58
- package/dist/components/Empty/CloudIcon.js +1 -1
- package/dist/components/Empty/CloudIcon.mjs +189 -168
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +13 -4
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +4 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +8 -7
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +1 -1
- package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +33 -27
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +216 -170
- package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
- package/dist/components/GameLaunch/GameLaunchTrigger.mjs +20 -19
- package/dist/components/Games/Games.js +1 -1
- package/dist/components/Games/Games.mjs +102 -84
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +80 -63
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +144 -114
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +19 -10
- package/dist/components/PortalProvider/PortalProvider.js +1 -1
- package/dist/components/PortalProvider/PortalProvider.mjs +53 -46
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +93 -76
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +37 -29
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +51 -44
- package/dist/components/Promos/Promos.js +1 -1
- package/dist/components/Promos/Promos.mjs +5 -4
- package/dist/components/Protected/Protected.js +1 -1
- package/dist/components/Protected/Protected.mjs +3 -2
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +49 -36
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +261 -198
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +51 -38
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +240 -189
- package/dist/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +39 -29
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +72 -57
- package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounterItem.mjs +92 -66
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +163 -115
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +252 -186
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +31 -19
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +143 -101
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +164 -114
- package/dist/components.d.ts +2 -0
- package/dist/hooks/useAccountQuery.js +1 -1
- package/dist/hooks/useAccountQuery.mjs +8 -7
- package/dist/hooks/useAuthenticateMutation.js +1 -1
- package/dist/hooks/useAuthenticateMutation.mjs +6 -5
- package/dist/hooks/useAvailablePromosQuery.js +1 -1
- package/dist/hooks/useAvailablePromosQuery.mjs +3 -2
- package/dist/hooks/useBetRecordsQuery.js +1 -1
- package/dist/hooks/useBetRecordsQuery.mjs +3 -2
- package/dist/hooks/useCashbacksQuery.js +1 -1
- package/dist/hooks/useCashbacksQuery.mjs +3 -2
- package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
- package/dist/hooks/useCreateGCashDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/hooks/useCreateGameSessionMutation.mjs +8 -7
- package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaAppDepositMutation.mjs +9 -8
- package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
- package/dist/hooks/useCreateMayaDepositMutation.mjs +10 -9
- package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
- package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +4 -3
- package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
- package/dist/hooks/useCreateQRPHDepositMutation.mjs +4 -3
- package/dist/hooks/useDepositQuery.js +1 -1
- package/dist/hooks/useDepositQuery.mjs +7 -6
- package/dist/hooks/useDepositRecordsQuery.js +1 -1
- package/dist/hooks/useDepositRecordsQuery.mjs +10 -9
- package/dist/hooks/useDepositsCountQuery.js +1 -1
- package/dist/hooks/useDepositsCountQuery.mjs +3 -2
- package/dist/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/hooks/useEndGameSessionMutation.mjs +3 -2
- package/dist/hooks/useGamesQuery.js +1 -1
- package/dist/hooks/useGamesQuery.mjs +3 -2
- package/dist/hooks/useInstapayBankListQuery.js +1 -1
- package/dist/hooks/useInstapayBankListQuery.mjs +10 -9
- package/dist/hooks/useIsMayaSessionValidQuery.js +1 -1
- package/dist/hooks/useIsMayaSessionValidQuery.mjs +3 -2
- package/dist/hooks/useJackpotsQuery.js +1 -1
- package/dist/hooks/useJackpotsQuery.mjs +6 -5
- package/dist/hooks/useLocaleInfo.js +1 -1
- package/dist/hooks/useLocaleInfo.mjs +3 -2
- package/dist/hooks/useMemberVerificationQuery.js +1 -1
- package/dist/hooks/useMemberVerificationQuery.mjs +7 -6
- package/dist/hooks/usePaymentSettingsQuery.js +1 -1
- package/dist/hooks/usePaymentSettingsQuery.mjs +7 -6
- package/dist/hooks/usePlatformQuery.js +1 -1
- package/dist/hooks/usePlatformQuery.mjs +3 -2
- package/dist/hooks/usePromoQuery.js +1 -1
- package/dist/hooks/usePromoQuery.mjs +3 -2
- package/dist/hooks/usePromosQuery.js +1 -1
- package/dist/hooks/usePromosQuery.mjs +3 -2
- package/dist/hooks/useSendVerificationCodeMutation.js +1 -1
- package/dist/hooks/useSendVerificationCodeMutation.mjs +3 -2
- package/dist/hooks/useSessionQuery.js +1 -1
- package/dist/hooks/useSessionQuery.mjs +3 -2
- package/dist/hooks/useSignInMutation.js +1 -1
- package/dist/hooks/useSignInMutation.mjs +3 -2
- package/dist/hooks/useSignOutMutation.js +1 -1
- package/dist/hooks/useSignOutMutation.mjs +3 -2
- package/dist/hooks/useSignUpMutation.js +1 -1
- package/dist/hooks/useSignUpMutation.mjs +3 -2
- package/dist/hooks/useSiteQuery.js +1 -1
- package/dist/hooks/useSiteQuery.mjs +3 -2
- package/dist/hooks/useTopWinsQuery.js +1 -1
- package/dist/hooks/useTopWinsQuery.mjs +3 -2
- package/dist/hooks/useTournamentsQuery.js +1 -1
- package/dist/hooks/useTournamentsQuery.mjs +6 -5
- package/dist/hooks/useTransactionRecordsQuery.js +1 -1
- package/dist/hooks/useTransactionRecordsQuery.mjs +3 -2
- package/dist/hooks/useWalletQuery.js +1 -1
- package/dist/hooks/useWalletQuery.mjs +3 -2
- package/dist/hooks/useWithdrawalRecordsQuery.js +1 -1
- package/dist/hooks/useWithdrawalRecordsQuery.mjs +9 -8
- package/dist/hooks.d.ts +2 -0
- package/dist/icons/AlertCircleIcon.js +1 -1
- package/dist/icons/AlertCircleIcon.mjs +7 -6
- package/dist/icons/AlertTriangle.js +1 -1
- package/dist/icons/AlertTriangle.mjs +7 -6
- package/dist/icons/ArrowLeftIcon.js +1 -1
- package/dist/icons/ArrowLeftIcon.mjs +7 -6
- package/dist/icons/ArrowNarrowUpRightIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpRightIcon.mjs +7 -6
- package/dist/icons/ArrowRightIcon.js +1 -1
- package/dist/icons/ArrowRightIcon.mjs +7 -6
- package/dist/icons/Award02Icon.js +1 -1
- package/dist/icons/Award02Icon.mjs +7 -6
- package/dist/icons/BankIcon.js +1 -1
- package/dist/icons/BankIcon.mjs +7 -6
- package/dist/icons/CheckCircleBrokenIcon.js +1 -1
- package/dist/icons/CheckCircleBrokenIcon.mjs +6 -5
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CheckIcon.mjs +7 -6
- package/dist/icons/ChevronDownIcon.js +1 -1
- package/dist/icons/ChevronDownIcon.mjs +6 -5
- package/dist/icons/ChevronLeftIcon.js +1 -1
- package/dist/icons/ChevronLeftIcon.mjs +7 -6
- package/dist/icons/ChevronRightIcon.js +1 -1
- package/dist/icons/ChevronRightIcon.mjs +7 -6
- package/dist/icons/ChevronUpIcon.js +1 -1
- package/dist/icons/ChevronUpIcon.mjs +7 -6
- package/dist/icons/Expand03Icon.js +1 -1
- package/dist/icons/Expand03Icon.mjs +7 -6
- package/dist/icons/FacebookIcon.js +1 -1
- package/dist/icons/FacebookIcon.mjs +22 -19
- package/dist/icons/File02Icon.js +1 -1
- package/dist/icons/File02Icon.mjs +7 -6
- package/dist/icons/Gift01Icon.js +1 -1
- package/dist/icons/Gift01Icon.mjs +7 -6
- package/dist/icons/GoogleIcon.js +1 -1
- package/dist/icons/GoogleIcon.mjs +43 -40
- package/dist/icons/Logout01Icon.js +1 -1
- package/dist/icons/Logout01Icon.mjs +7 -6
- package/dist/icons/QrCode02Icon.js +1 -1
- package/dist/icons/QrCode02Icon.mjs +7 -6
- package/dist/icons/SpinnerIcon.js +1 -1
- package/dist/icons/SpinnerIcon.mjs +33 -30
- package/dist/icons/User01Icon.js +1 -1
- package/dist/icons/User01Icon.mjs +7 -6
- package/dist/icons/Wallet02Icon.js +1 -1
- package/dist/icons/Wallet02Icon.mjs +7 -6
- package/dist/icons/XIcon.js +1 -1
- package/dist/icons/XIcon.mjs +7 -6
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +6 -0
- package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +953 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +1 -1
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -1
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +1 -1
- package/dist/server/utils/prefetchAccountQuery.js +1 -1
- package/dist/server/utils/prefetchAccountQuery.mjs +7 -6
- package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
- package/dist/server/utils/prefetchAvailablePromosQuery.mjs +11 -10
- package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchBetRecordsQuery.mjs +9 -8
- package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
- package/dist/server/utils/prefetchCashbacksQuery.mjs +9 -8
- package/dist/server/utils/prefetchDepositQuery.js +1 -1
- package/dist/server/utils/prefetchDepositQuery.mjs +11 -10
- package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchDepositRecordsQuery.mjs +11 -10
- package/dist/server/utils/prefetchGamesQuery.js +1 -1
- package/dist/server/utils/prefetchGamesQuery.mjs +3 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
- package/dist/server/utils/prefetchInstapayBankListQuery.mjs +3 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +3 -2
- package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
- package/dist/server/utils/prefetchJackpotsQuery.mjs +5 -4
- package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
- package/dist/server/utils/prefetchMemberVerificationQuery.mjs +6 -5
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
- package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +3 -2
- package/dist/server/utils/prefetchPlatformQuery.js +1 -1
- package/dist/server/utils/prefetchPlatformQuery.mjs +3 -2
- package/dist/server/utils/prefetchPromoQuery.js +1 -1
- package/dist/server/utils/prefetchPromoQuery.mjs +7 -6
- package/dist/server/utils/prefetchPromosQuery.js +1 -1
- package/dist/server/utils/prefetchPromosQuery.mjs +6 -5
- package/dist/server/utils/prefetchSessionQuery.js +1 -1
- package/dist/server/utils/prefetchSessionQuery.mjs +3 -2
- package/dist/server/utils/prefetchSiteQuery.js +1 -1
- package/dist/server/utils/prefetchSiteQuery.mjs +3 -2
- package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
- package/dist/server/utils/prefetchTopWinsQuery.mjs +7 -6
- package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
- package/dist/server/utils/prefetchTournamentsQuery.mjs +3 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +3 -2
- package/dist/server/utils/prefetchWalletQuery.js +1 -1
- package/dist/server/utils/prefetchWalletQuery.mjs +10 -9
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +3 -2
- package/dist/server-services.d.ts +2 -0
- package/dist/server-utils.d.ts +2 -0
- package/dist/services.d.ts +2 -0
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +3 -2
- package/dist/ui/Avatar/avatar.recipe.js +1 -1
- package/dist/ui/Avatar/avatar.recipe.mjs +6 -5
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +13 -12
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +3 -2
- package/dist/ui/Button/Button.js +1 -1
- package/dist/ui/Button/Button.mjs +14 -13
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +3 -2
- package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
- package/dist/ui/Clipboard/clipboard.recipe.mjs +3 -2
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +3 -2
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -2
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +3 -2
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +3 -2
- package/dist/ui/IconButton/IconButton.js +1 -1
- package/dist/ui/IconButton/IconButton.mjs +9 -8
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +3 -2
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -2
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +6 -5
- package/dist/ui/Presence.js +1 -1
- package/dist/ui/Presence.mjs +8 -7
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -2
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +3 -2
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +3 -2
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -2
- package/dist/ui.d.ts +2 -0
- package/dist/utils/createRecipeContext.js +1 -1
- package/dist/utils/createRecipeContext.mjs +30 -29
- package/dist/utils/getLocaleInfo.js +1 -1
- package/dist/utils/getLocaleInfo.mjs +212 -173
- package/dist/utils.d.ts +2 -0
- package/package.json +6 -6
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.js +0 -6
- package/dist/node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.mjs +0 -790
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -0
- /package/dist/node_modules/.pnpm/{@opexa_portal-sdk-core@0.0.19 → @opexa_portal-sdk-core@0.0.21}/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@ark-ui/react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),y=require("@ark-ui/react"),R=require("../../node_modules/.pnpm/@hookform_resolvers@5.0.1_react-hook-form@7.56.4_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.js"),I=require("react"),m=require("react-hook-form"),o=require("zod");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");const g=require("../../utils/toaster.js"),C=require("../../hooks/useCooldown.js");require("../../_virtual/index.cjs.js");const S=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const w=require("../../hooks/useLocaleInfo.js"),k=require("../../hooks/useMobileNumberParser.js");require("usehooks-ts");const z=require("../../hooks/useSendVerificationCodeMutation.js"),F=require("../../hooks/useSignInMutation.js"),M=require("../../icons/ArrowLeftIcon.js"),P=require("../../icons/CheckIcon.js"),A=require("../../icons/FacebookIcon.js"),V=require("../../icons/GoogleIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const x=require("../../ui/Button/Button.js"),u=require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");const d=require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");const n=require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const L=require("../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js");function O(){var f;const[h,p]=I.useState(1),c=y.useDialogContext(),E=S.useGlobalStore(L.useShallow(t=>t.signUp)),q=F.useSignInMutation(),b=z.useSendVerificationCodeMutation(),j=w.useLocaleInfo(),a=k.useMobileNumberParser(),N=o.z.object({mobileNumber:o.z.string().superRefine((t,s)=>{a.validate(t)||s.addIssue({code:o.z.ZodIssueCode.custom,message:"Invalid mobile number"})}),termsAccepted:o.z.boolean().superRefine((t,s)=>{t||s.addIssue({code:o.z.ZodIssueCode.custom,message:"You must accept the terms and conditions"})})}),v=o.z.object({verificationCode:o.z.array(o.z.string().min(1).max(1).trim()).min(6).max(6)}),r=m.useForm({resolver:R.zodResolver(N),defaultValues:{mobileNumber:"",termsAccepted:!1}}),l=m.useForm({resolver:R.zodResolver(v),defaultValues:{verificationCode:Array.from({length:6}).fill("")}}),i=C.useCooldown({max:60,duration:1e3*60});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[h===1&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"w-full grow",children:[e.jsxRuntimeExports.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Log in to your account"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-600 mt-xs text-center text-sm",children:"Welcome back! Please enter your details."}),e.jsxRuntimeExports.jsxs("form",{className:"mt-5",onSubmit:r.handleSubmit(async t=>{try{await b.mutateAsync({channel:"SMS",recipient:a.format(t.mobileNumber),strict:!0}),p(2),i.start()}catch(s){g.toaster.error({description:s instanceof Error?s.message:"Failed to send verification code"})}}),children:[e.jsxRuntimeExports.jsxs(d.Root,{invalid:!!r.formState.errors.mobileNumber,children:[e.jsxRuntimeExports.jsx(d.Label,{children:"Mobile Number"}),e.jsxRuntimeExports.jsxs("div",{className:"relative",children:[e.jsxRuntimeExports.jsx(j.country.flag,{className:"absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2"}),e.jsxRuntimeExports.jsx(d.Input,{className:"pl-11",placeholder:`${j.mobileNumber.areaCode}${j.mobileNumber.example}`,...r.register("mobileNumber")})]}),e.jsxRuntimeExports.jsx(d.ErrorText,{children:(f=r.formState.errors.mobileNumber)==null?void 0:f.message})]}),e.jsxRuntimeExports.jsx(x.Button,{type:"submit",className:"mt-xl",disabled:r.formState.isSubmitting,children:"Log In"}),e.jsxRuntimeExports.jsx(m.Controller,{control:r.control,name:"termsAccepted",render:t=>e.jsxRuntimeExports.jsxs(u.Root,{className:"mt-xl",invalid:t.fieldState.invalid,checked:t.field.value,onCheckedChange:s=>{t.field.onChange(s.checked)},children:[e.jsxRuntimeExports.jsx(u.Control,{children:e.jsxRuntimeExports.jsx(u.Indicator,{asChild:!0,children:e.jsxRuntimeExports.jsx(P.CheckIcon,{})})}),e.jsxRuntimeExports.jsx(u.Label,{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."}),e.jsxRuntimeExports.jsx(u.HiddenInput,{})]})})]}),e.jsxRuntimeExports.jsxs("div",{className:"relative mt-5 text-center",children:[e.jsxRuntimeExports.jsx("hr",{className:"-translte-y-1/2 text-gray-200 absolute top-1/2 w-full"}),e.jsxRuntimeExports.jsx("span",{className:"text-gray-500 relative bg-white px-md text-center text-sm font-semibold",children:"OR"})]}),e.jsxRuntimeExports.jsxs("div",{className:"mt-5",children:[e.jsxRuntimeExports.jsxs(x.Button,{variant:"outline",colorScheme:"gray",onClick:()=>{c.setOpen(!1)},children:[e.jsxRuntimeExports.jsx(V.GoogleIcon,{className:"size-6"}),"Continue with Google"]}),e.jsxRuntimeExports.jsxs(x.Button,{variant:"outline",colorScheme:"gray",className:"mt-lg",onClick:()=>{c.setOpen(!1)},children:[e.jsxRuntimeExports.jsx(A.FacebookIcon,{className:"size-6"}),"Continue with Facebook"]})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center justify-center gap-xs text-sm",children:[e.jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Don't have an account?"}),e.jsxRuntimeExports.jsx("button",{type:"submit",className:"text-accent-700 font-semibold",onClick:()=>{c.setOpen(!1),E.setOpen(!0)},children:"Sign up"})]})]}),h===2&&e.jsxRuntimeExports.jsxs("div",{className:"w-full grow",children:[e.jsxRuntimeExports.jsx("h2",{className:"mt-xl text-center text-lg font-semibold",children:"Check your Phone"}),e.jsxRuntimeExports.jsxs("p",{className:"text-gray-600 mt-xs text-center text-sm",children:["We’ve sent a verification code to your mobile number"," ",e.jsxRuntimeExports.jsx("span",{className:"font-semibold",children:a.format(r.getValues("mobileNumber"))})," ","via text"]}),e.jsxRuntimeExports.jsxs("form",{className:"mt-5",onSubmit:l.handleSubmit(async({verificationCode:t})=>{const{mobileNumber:s}=r.getValues();try{await q.mutateAsync({type:"MOBILE_NUMBER",mobileNumber:a.format(s),verificationCode:t.join("")}),c.setOpen(!1),r.reset(),l.reset(),p(1)}catch{g.toaster.error({description:"Invalid Verification Code"})}}),children:[e.jsxRuntimeExports.jsx(m.Controller,{name:"verificationCode",control:l.control,render:t=>e.jsxRuntimeExports.jsxs(n.Root,{placeholder:"0",invalid:t.fieldState.invalid,value:t.field.value,onValueChange:s=>{t.field.onChange(s.value)},children:[e.jsxRuntimeExports.jsxs(n.Control,{children:[e.jsxRuntimeExports.jsx(n.Input,{index:0}),e.jsxRuntimeExports.jsx(n.Input,{index:1}),e.jsxRuntimeExports.jsx(n.Input,{index:2}),e.jsxRuntimeExports.jsx(n.Input,{index:3}),e.jsxRuntimeExports.jsx(n.Input,{index:4}),e.jsxRuntimeExports.jsx(n.Input,{index:5})]}),e.jsxRuntimeExports.jsx(n.HiddenInput,{})]})}),e.jsxRuntimeExports.jsx(x.Button,{type:"submit",className:"mt-5",disabled:l.formState.isSubmitting,children:"Verify and Play"}),e.jsxRuntimeExports.jsxs("div",{className:"mt-5 flex w-full items-center justify-center gap-xs text-sm",children:[e.jsxRuntimeExports.jsx("span",{className:"text-gray-500",children:"Didn't recieve the code?"}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"text-accent-700 font-semibold",disabled:i.cooling,onClick:async()=>{await b.mutateAsync({channel:"SMS",recipient:a.format(r.getValues("mobileNumber"))}),i.start()},children:i.cooling?`Resend in ${i.countdown}s`:"Resend"})]}),e.jsxRuntimeExports.jsxs("button",{type:"button",className:"text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",onClick:()=>{p(1),l.reset(),i.stop()},children:[e.jsxRuntimeExports.jsx(M.ArrowLeftIcon,{className:"size-5"}),"Back"]})]})]})]})}exports.SignInForm=O;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { useDialogContext as S } from "@ark-ui/react";
|
|
4
|
+
import { zodResolver as h } from "../../node_modules/.pnpm/@hookform_resolvers@5.0.1_react-hook-form@7.56.4_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
|
|
5
|
+
import { useState as I } from "react";
|
|
6
|
+
import { useForm as b, Controller as j } from "react-hook-form";
|
|
7
|
+
import { z as i } from "zod";
|
|
7
8
|
import "@opexa/portal-sdk-core";
|
|
8
9
|
import "@tanstack/react-query";
|
|
9
10
|
import "tiny-invariant";
|
|
@@ -13,240 +14,302 @@ import "../../utils/parseDecimal.mjs";
|
|
|
13
14
|
import "../../utils/getLocaleInfo.mjs";
|
|
14
15
|
import "../../utils/getQueryClient.mjs";
|
|
15
16
|
import "../../utils/isMobile.mjs";
|
|
16
|
-
import { toaster as
|
|
17
|
-
import { useCooldown as
|
|
17
|
+
import { toaster as g } from "../../utils/toaster.mjs";
|
|
18
|
+
import { useCooldown as w } from "../../hooks/useCooldown.mjs";
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useGlobalStore as
|
|
20
|
+
import { useGlobalStore as k } from "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
-
import { useMobileNumberParser as
|
|
22
|
+
import { useLocaleInfo as R } from "../../hooks/useLocaleInfo.mjs";
|
|
23
|
+
import { useMobileNumberParser as A } from "../../hooks/useMobileNumberParser.mjs";
|
|
23
24
|
import "usehooks-ts";
|
|
24
|
-
import { useSendVerificationCodeMutation as
|
|
25
|
-
import { useSignInMutation as
|
|
26
|
-
import { ArrowLeftIcon as
|
|
27
|
-
import { CheckIcon as
|
|
28
|
-
import { FacebookIcon as
|
|
29
|
-
import { GoogleIcon as
|
|
25
|
+
import { useSendVerificationCodeMutation as F } from "../../hooks/useSendVerificationCodeMutation.mjs";
|
|
26
|
+
import { useSignInMutation as M } from "../../hooks/useSignInMutation.mjs";
|
|
27
|
+
import { ArrowLeftIcon as P } from "../../icons/ArrowLeftIcon.mjs";
|
|
28
|
+
import { CheckIcon as V } from "../../icons/CheckIcon.mjs";
|
|
29
|
+
import { FacebookIcon as L } from "../../icons/FacebookIcon.mjs";
|
|
30
|
+
import { GoogleIcon as $ } from "../../icons/GoogleIcon.mjs";
|
|
30
31
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
31
32
|
import "../../ui/Avatar/Avatar.mjs";
|
|
32
33
|
import "../../ui/Badge/Badge.mjs";
|
|
33
|
-
import { Button as
|
|
34
|
-
import { Root as
|
|
34
|
+
import { Button as c } from "../../ui/Button/Button.mjs";
|
|
35
|
+
import { Root as O, Control as z, Indicator as D, Label as E, HiddenInput as G } from "../../ui/Checkbox/Checkbox.mjs";
|
|
35
36
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
36
37
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
37
38
|
import "../../ui/Dialog/Dialog.mjs";
|
|
38
39
|
import "../../ui/Drawer/Drawer.mjs";
|
|
39
|
-
import { Root as
|
|
40
|
+
import { Root as B, Label as U, Input as H, ErrorText as T } from "../../ui/Field/Field.mjs";
|
|
40
41
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
41
42
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
42
|
-
import { Root as
|
|
43
|
+
import { Root as W, Control as Z, Input as n, HiddenInput as Y } from "../../ui/PinInput/PinInput.mjs";
|
|
43
44
|
import "../../ui/Popover/Popover.mjs";
|
|
44
45
|
import "tailwind-merge";
|
|
45
46
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
46
47
|
import "../../ui/Select/Select.mjs";
|
|
47
48
|
import "../../ui/Table/Table.mjs";
|
|
48
49
|
import "../../ui/Tabs/Tabs.mjs";
|
|
49
|
-
import { useShallow as
|
|
50
|
-
function
|
|
50
|
+
import { useShallow as _ } from "../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs";
|
|
51
|
+
function Te() {
|
|
51
52
|
var f;
|
|
52
|
-
const [
|
|
53
|
-
mobileNumber:
|
|
54
|
-
|
|
55
|
-
code:
|
|
53
|
+
const [p, d] = I(1), l = S(), N = k(_((t) => t.signUp)), v = M(), x = F(), u = R(), a = A(), y = i.object({
|
|
54
|
+
mobileNumber: i.string().superRefine((t, o) => {
|
|
55
|
+
a.validate(t) || o.addIssue({
|
|
56
|
+
code: i.ZodIssueCode.custom,
|
|
56
57
|
message: "Invalid mobile number"
|
|
57
58
|
});
|
|
58
59
|
}),
|
|
59
|
-
termsAccepted:
|
|
60
|
-
|
|
61
|
-
code:
|
|
60
|
+
termsAccepted: i.boolean().superRefine((t, o) => {
|
|
61
|
+
t || o.addIssue({
|
|
62
|
+
code: i.ZodIssueCode.custom,
|
|
62
63
|
message: "You must accept the terms and conditions"
|
|
63
64
|
});
|
|
64
65
|
})
|
|
65
|
-
}),
|
|
66
|
-
verificationCode:
|
|
67
|
-
}),
|
|
68
|
-
resolver:
|
|
66
|
+
}), C = i.object({
|
|
67
|
+
verificationCode: i.array(i.string().min(1).max(1).trim()).min(6).max(6)
|
|
68
|
+
}), s = b({
|
|
69
|
+
resolver: h(y),
|
|
69
70
|
defaultValues: {
|
|
70
71
|
mobileNumber: "",
|
|
71
72
|
termsAccepted: !1
|
|
72
73
|
}
|
|
73
|
-
}),
|
|
74
|
-
resolver:
|
|
74
|
+
}), m = b({
|
|
75
|
+
resolver: h(C),
|
|
75
76
|
defaultValues: {
|
|
76
77
|
verificationCode: Array.from({ length: 6 }).fill("")
|
|
77
78
|
}
|
|
78
|
-
}), r =
|
|
79
|
+
}), r = w({
|
|
79
80
|
max: 60,
|
|
80
81
|
duration: 1e3 * 60
|
|
81
82
|
});
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
channel: "SMS",
|
|
90
|
-
recipient: m.format(e.mobileNumber),
|
|
91
|
-
strict: !0
|
|
92
|
-
}), s(2), r.start();
|
|
93
|
-
} catch (t) {
|
|
94
|
-
E.error({
|
|
95
|
-
description: t instanceof Error ? t.message : "Failed to send verification code"
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
})
|
|
99
|
-
},
|
|
100
|
-
/* @__PURE__ */ React.createElement(G, { invalid: !!a.formState.errors.mobileNumber }, /* @__PURE__ */ React.createElement(B, null, "Mobile Number"), /* @__PURE__ */ React.createElement("div", { className: "relative" }, /* @__PURE__ */ React.createElement(u.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }), /* @__PURE__ */ React.createElement(
|
|
101
|
-
U,
|
|
102
|
-
{
|
|
103
|
-
className: "pl-11",
|
|
104
|
-
placeholder: `${u.mobileNumber.areaCode}${u.mobileNumber.example}`,
|
|
105
|
-
...a.register("mobileNumber")
|
|
106
|
-
}
|
|
107
|
-
)), /* @__PURE__ */ React.createElement(H, null, (f = a.formState.errors.mobileNumber) == null ? void 0 : f.message)),
|
|
108
|
-
/* @__PURE__ */ React.createElement(
|
|
109
|
-
i,
|
|
110
|
-
{
|
|
111
|
-
type: "submit",
|
|
112
|
-
className: "mt-xl",
|
|
113
|
-
disabled: a.formState.isSubmitting
|
|
114
|
-
},
|
|
115
|
-
"Log In"
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ React.createElement(
|
|
118
|
-
g,
|
|
119
|
-
{
|
|
120
|
-
control: a.control,
|
|
121
|
-
name: "termsAccepted",
|
|
122
|
-
render: (e) => /* @__PURE__ */ React.createElement(
|
|
123
|
-
$,
|
|
83
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
84
|
+
p === 1 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
85
|
+
/* @__PURE__ */ e.jsxs("div", { className: "w-full grow", children: [
|
|
86
|
+
/* @__PURE__ */ e.jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Log in to your account" }),
|
|
87
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 mt-xs text-center text-sm", children: "Welcome back! Please enter your details." }),
|
|
88
|
+
/* @__PURE__ */ e.jsxs(
|
|
89
|
+
"form",
|
|
124
90
|
{
|
|
125
|
-
className: "mt-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
91
|
+
className: "mt-5",
|
|
92
|
+
onSubmit: s.handleSubmit(async (t) => {
|
|
93
|
+
try {
|
|
94
|
+
await x.mutateAsync({
|
|
95
|
+
channel: "SMS",
|
|
96
|
+
recipient: a.format(t.mobileNumber),
|
|
97
|
+
strict: !0
|
|
98
|
+
}), d(2), r.start();
|
|
99
|
+
} catch (o) {
|
|
100
|
+
g.error({
|
|
101
|
+
description: o instanceof Error ? o.message : "Failed to send verification code"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}),
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ e.jsxs(B, { invalid: !!s.formState.errors.mobileNumber, children: [
|
|
107
|
+
/* @__PURE__ */ e.jsx(U, { children: "Mobile Number" }),
|
|
108
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
109
|
+
/* @__PURE__ */ e.jsx(u.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
|
|
110
|
+
/* @__PURE__ */ e.jsx(
|
|
111
|
+
H,
|
|
112
|
+
{
|
|
113
|
+
className: "pl-11",
|
|
114
|
+
placeholder: `${u.mobileNumber.areaCode}${u.mobileNumber.example}`,
|
|
115
|
+
...s.register("mobileNumber")
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] }),
|
|
119
|
+
/* @__PURE__ */ e.jsx(T, { children: (f = s.formState.errors.mobileNumber) == null ? void 0 : f.message })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ e.jsx(
|
|
122
|
+
c,
|
|
123
|
+
{
|
|
124
|
+
type: "submit",
|
|
125
|
+
className: "mt-xl",
|
|
126
|
+
disabled: s.formState.isSubmitting,
|
|
127
|
+
children: "Log In"
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ e.jsx(
|
|
131
|
+
j,
|
|
132
|
+
{
|
|
133
|
+
control: s.control,
|
|
134
|
+
name: "termsAccepted",
|
|
135
|
+
render: (t) => /* @__PURE__ */ e.jsxs(
|
|
136
|
+
O,
|
|
137
|
+
{
|
|
138
|
+
className: "mt-xl",
|
|
139
|
+
invalid: t.fieldState.invalid,
|
|
140
|
+
checked: t.field.value,
|
|
141
|
+
onCheckedChange: (o) => {
|
|
142
|
+
t.field.onChange(o.checked);
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ e.jsx(z, { children: /* @__PURE__ */ e.jsx(D, { asChild: !0, children: /* @__PURE__ */ e.jsx(V, {}) }) }),
|
|
146
|
+
/* @__PURE__ */ e.jsx(E, { 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.jsx(G, {})
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative mt-5 text-center", children: [
|
|
157
|
+
/* @__PURE__ */ e.jsx("hr", { className: "-translte-y-1/2 text-gray-200 absolute top-1/2 w-full" }),
|
|
158
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-gray-500 relative bg-white px-md text-center text-sm font-semibold", children: "OR" })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ e.jsxs("div", { className: "mt-5", children: [
|
|
161
|
+
/* @__PURE__ */ e.jsxs(
|
|
162
|
+
c,
|
|
163
|
+
{
|
|
164
|
+
variant: "outline",
|
|
165
|
+
colorScheme: "gray",
|
|
166
|
+
onClick: () => {
|
|
167
|
+
l.setOpen(!1);
|
|
168
|
+
},
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ e.jsx($, { className: "size-6" }),
|
|
171
|
+
"Continue with Google"
|
|
172
|
+
]
|
|
130
173
|
}
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
/* @__PURE__ */ React.createElement(L, { className: "size-6" }),
|
|
148
|
-
"Continue with Google"
|
|
149
|
-
), /* @__PURE__ */ React.createElement(
|
|
150
|
-
i,
|
|
151
|
-
{
|
|
152
|
-
variant: "outline",
|
|
153
|
-
colorScheme: "gray",
|
|
154
|
-
className: "mt-lg",
|
|
155
|
-
onClick: () => {
|
|
156
|
-
l.setOpen(!1);
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
/* @__PURE__ */ React.createElement(V, { className: "size-6" }),
|
|
160
|
-
"Continue with Facebook"
|
|
161
|
-
))), /* @__PURE__ */ React.createElement("div", { className: "flex w-full items-center justify-center gap-xs text-sm" }, /* @__PURE__ */ React.createElement("span", { className: "text-gray-500" }, "Don't have an account?"), /* @__PURE__ */ React.createElement(
|
|
162
|
-
"button",
|
|
163
|
-
{
|
|
164
|
-
type: "submit",
|
|
165
|
-
className: "text-accent-700 font-semibold",
|
|
166
|
-
onClick: () => {
|
|
167
|
-
l.setOpen(!1), x.setOpen(!0);
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"Sign up"
|
|
171
|
-
))), d === 2 && /* @__PURE__ */ React.createElement("div", { className: "w-full grow" }, /* @__PURE__ */ React.createElement("h2", { className: "mt-xl text-center text-lg font-semibold" }, "Check your Phone"), /* @__PURE__ */ React.createElement("p", { className: "text-gray-600 mt-xs text-center text-sm" }, "We’ve sent a verification code to your mobile number", " ", /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, m.format(a.getValues("mobileNumber"))), " ", "via text"), /* @__PURE__ */ React.createElement(
|
|
172
|
-
"form",
|
|
173
|
-
{
|
|
174
|
-
className: "mt-5",
|
|
175
|
-
onSubmit: c.handleSubmit(async ({ verificationCode: e }) => {
|
|
176
|
-
const { mobileNumber: t } = a.getValues();
|
|
177
|
-
try {
|
|
178
|
-
await N.mutateAsync({
|
|
179
|
-
type: "MOBILE_NUMBER",
|
|
180
|
-
mobileNumber: m.format(t),
|
|
181
|
-
verificationCode: e.join("")
|
|
182
|
-
}), l.setOpen(!1), a.reset(), c.reset(), s(1);
|
|
183
|
-
} catch {
|
|
184
|
-
E.error({
|
|
185
|
-
description: "Invalid Verification Code"
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
},
|
|
190
|
-
/* @__PURE__ */ React.createElement(
|
|
191
|
-
g,
|
|
192
|
-
{
|
|
193
|
-
name: "verificationCode",
|
|
194
|
-
control: c.control,
|
|
195
|
-
render: (e) => /* @__PURE__ */ React.createElement(
|
|
196
|
-
T,
|
|
197
|
-
{
|
|
198
|
-
placeholder: "0",
|
|
199
|
-
invalid: e.fieldState.invalid,
|
|
200
|
-
value: e.field.value,
|
|
201
|
-
onValueChange: (t) => {
|
|
202
|
-
e.field.onChange(t.value);
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ e.jsxs(
|
|
176
|
+
c,
|
|
177
|
+
{
|
|
178
|
+
variant: "outline",
|
|
179
|
+
colorScheme: "gray",
|
|
180
|
+
className: "mt-lg",
|
|
181
|
+
onClick: () => {
|
|
182
|
+
l.setOpen(!1);
|
|
183
|
+
},
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ e.jsx(L, { className: "size-6" }),
|
|
186
|
+
"Continue with Facebook"
|
|
187
|
+
]
|
|
203
188
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
189
|
+
)
|
|
190
|
+
] })
|
|
191
|
+
] }),
|
|
192
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
193
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-gray-500", children: "Don't have an account?" }),
|
|
194
|
+
/* @__PURE__ */ e.jsx(
|
|
195
|
+
"button",
|
|
196
|
+
{
|
|
197
|
+
type: "submit",
|
|
198
|
+
className: "text-accent-700 font-semibold",
|
|
199
|
+
onClick: () => {
|
|
200
|
+
l.setOpen(!1), N.setOpen(!0);
|
|
201
|
+
},
|
|
202
|
+
children: "Sign up"
|
|
203
|
+
}
|
|
207
204
|
)
|
|
208
|
-
}
|
|
209
|
-
),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
212
|
-
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
205
|
+
] })
|
|
206
|
+
] }),
|
|
207
|
+
p === 2 && /* @__PURE__ */ e.jsxs("div", { className: "w-full grow", children: [
|
|
208
|
+
/* @__PURE__ */ e.jsx("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }),
|
|
209
|
+
/* @__PURE__ */ e.jsxs("p", { className: "text-gray-600 mt-xs text-center text-sm", children: [
|
|
210
|
+
"We’ve sent a verification code to your mobile number",
|
|
211
|
+
" ",
|
|
212
|
+
/* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: a.format(s.getValues("mobileNumber")) }),
|
|
213
|
+
" ",
|
|
214
|
+
"via text"
|
|
215
|
+
] }),
|
|
216
|
+
/* @__PURE__ */ e.jsxs(
|
|
217
|
+
"form",
|
|
218
|
+
{
|
|
219
|
+
className: "mt-5",
|
|
220
|
+
onSubmit: m.handleSubmit(async ({ verificationCode: t }) => {
|
|
221
|
+
const { mobileNumber: o } = s.getValues();
|
|
222
|
+
try {
|
|
223
|
+
await v.mutateAsync({
|
|
224
|
+
type: "MOBILE_NUMBER",
|
|
225
|
+
mobileNumber: a.format(o),
|
|
226
|
+
verificationCode: t.join("")
|
|
227
|
+
}), l.setOpen(!1), s.reset(), m.reset(), d(1);
|
|
228
|
+
} catch {
|
|
229
|
+
g.error({
|
|
230
|
+
description: "Invalid Verification Code"
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}),
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ e.jsx(
|
|
236
|
+
j,
|
|
237
|
+
{
|
|
238
|
+
name: "verificationCode",
|
|
239
|
+
control: m.control,
|
|
240
|
+
render: (t) => /* @__PURE__ */ e.jsxs(
|
|
241
|
+
W,
|
|
242
|
+
{
|
|
243
|
+
placeholder: "0",
|
|
244
|
+
invalid: t.fieldState.invalid,
|
|
245
|
+
value: t.field.value,
|
|
246
|
+
onValueChange: (o) => {
|
|
247
|
+
t.field.onChange(o.value);
|
|
248
|
+
},
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ e.jsxs(Z, { children: [
|
|
251
|
+
/* @__PURE__ */ e.jsx(n, { index: 0 }),
|
|
252
|
+
/* @__PURE__ */ e.jsx(n, { index: 1 }),
|
|
253
|
+
/* @__PURE__ */ e.jsx(n, { index: 2 }),
|
|
254
|
+
/* @__PURE__ */ e.jsx(n, { index: 3 }),
|
|
255
|
+
/* @__PURE__ */ e.jsx(n, { index: 4 }),
|
|
256
|
+
/* @__PURE__ */ e.jsx(n, { index: 5 })
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ e.jsx(Y, {})
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ e.jsx(
|
|
265
|
+
c,
|
|
266
|
+
{
|
|
267
|
+
type: "submit",
|
|
268
|
+
className: "mt-5",
|
|
269
|
+
disabled: m.formState.isSubmitting,
|
|
270
|
+
children: "Verify and Play"
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
/* @__PURE__ */ e.jsxs("div", { className: "mt-5 flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
274
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-gray-500", children: "Didn't recieve the code?" }),
|
|
275
|
+
/* @__PURE__ */ e.jsx(
|
|
276
|
+
"button",
|
|
277
|
+
{
|
|
278
|
+
type: "button",
|
|
279
|
+
className: "text-accent-700 font-semibold",
|
|
280
|
+
disabled: r.cooling,
|
|
281
|
+
onClick: async () => {
|
|
282
|
+
await x.mutateAsync({
|
|
283
|
+
channel: "SMS",
|
|
284
|
+
recipient: a.format(
|
|
285
|
+
s.getValues("mobileNumber")
|
|
286
|
+
)
|
|
287
|
+
}), r.start();
|
|
288
|
+
},
|
|
289
|
+
children: r.cooling ? `Resend in ${r.countdown}s` : "Resend"
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
] }),
|
|
293
|
+
/* @__PURE__ */ e.jsxs(
|
|
294
|
+
"button",
|
|
295
|
+
{
|
|
296
|
+
type: "button",
|
|
297
|
+
className: "text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",
|
|
298
|
+
onClick: () => {
|
|
299
|
+
d(1), m.reset(), r.stop();
|
|
300
|
+
},
|
|
301
|
+
children: [
|
|
302
|
+
/* @__PURE__ */ e.jsx(P, { className: "size-5" }),
|
|
303
|
+
"Back"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
230
306
|
)
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
r.cooling ? `Resend in ${r.countdown}s` : "Resend"
|
|
235
|
-
)),
|
|
236
|
-
/* @__PURE__ */ React.createElement(
|
|
237
|
-
"button",
|
|
238
|
-
{
|
|
239
|
-
type: "button",
|
|
240
|
-
className: "text-gray-600 mx-auto mt-5 flex w-fit items-center gap-1 text-sm font-semibold",
|
|
241
|
-
onClick: () => {
|
|
242
|
-
s(1), c.reset(), r.stop();
|
|
307
|
+
]
|
|
243
308
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
)
|
|
248
|
-
)));
|
|
309
|
+
)
|
|
310
|
+
] })
|
|
311
|
+
] });
|
|
249
312
|
}
|
|
250
313
|
export {
|
|
251
|
-
|
|
314
|
+
Te as SignInForm
|
|
252
315
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),n=require("@ark-ui/react"),u=require("../../_virtual/image.js");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");const o=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const l=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const x=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const q=require("./SignUpForm.js"),a=require("../../node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js");function c(i){const s=o.useGlobalStore(a.useShallow(t=>t.signUp));return e.jsxRuntimeExports.jsxs(r.Root,{open:s.open,onOpenChange:t=>{s.setOpen(t.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsxRuntimeExports.jsx(r.Trigger,{asChild:!0,children:i.children??e.jsxRuntimeExports.jsx(x.Button,{children:"Sign up"})}),e.jsxRuntimeExports.jsxs(n.Portal,{children:[e.jsxRuntimeExports.jsx(r.Backdrop,{}),e.jsxRuntimeExports.jsx(r.Positioner,{children:e.jsxRuntimeExports.jsxs(r.Content,{className:"mx-auto flex h-full w-full items-start lg:h-auto lg:w-fit",children:[e.jsxRuntimeExports.jsx(u,{src:i.banner,alt:"h-auto w-[400px]",width:400,height:800,className:"hidden rounded-l-xl lg:block"}),e.jsxRuntimeExports.jsxs("div",{className:"relative flex w-full flex-col items-start self-stretch bg-white p-3xl lg:w-[400px] lg:rounded-r-xl",children:[e.jsxRuntimeExports.jsx(r.CloseTrigger,{children:e.jsxRuntimeExports.jsx(l.XIcon,{})}),e.jsxRuntimeExports.jsx(u,{src:i.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsxRuntimeExports.jsx(q.SignUpForm,{})]})]})})]})]})}exports.SignUp=c;
|