@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,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { j as o } from "../../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Portal as A } from "@ark-ui/react";
|
|
3
|
+
import { zodResolver as S } 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";
|
|
4
|
+
import { useEffect as Q } from "react";
|
|
5
|
+
import { useForm as R, Controller as y } from "react-hook-form";
|
|
6
|
+
import { z as m } from "zod";
|
|
6
7
|
import "@opexa/portal-sdk-core";
|
|
7
8
|
import "@tanstack/react-query";
|
|
8
9
|
import "tiny-invariant";
|
|
9
10
|
import "../../../../constants/index.mjs";
|
|
10
11
|
import "../../../../utils/capitalize.mjs";
|
|
11
|
-
import { parseDecimal as
|
|
12
|
+
import { parseDecimal as n } from "../../../../utils/parseDecimal.mjs";
|
|
12
13
|
import "../../../../utils/getLocaleInfo.mjs";
|
|
13
14
|
import "../../../../utils/getQueryClient.mjs";
|
|
14
15
|
import "../../../../utils/isMobile.mjs";
|
|
15
16
|
import "../../../../utils/toaster.mjs";
|
|
16
|
-
import { useAvailablePromosQuery as
|
|
17
|
+
import { useAvailablePromosQuery as O } from "../../../../hooks/useAvailablePromosQuery.mjs";
|
|
17
18
|
import "lodash-es";
|
|
18
19
|
import "../../../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useDepositsCountQuery as
|
|
20
|
-
import { useDisclosure as
|
|
20
|
+
import { useDepositsCountQuery as P } from "../../../../hooks/useDepositsCountQuery.mjs";
|
|
21
|
+
import { useDisclosure as E } from "../../../../hooks/useDisclosure.mjs";
|
|
21
22
|
import "../../../../hooks/useGlobalStore.mjs";
|
|
22
23
|
import "../../../../hooks/useInfiniteQueryHelper.mjs";
|
|
23
24
|
import "usehooks-ts";
|
|
@@ -26,18 +27,18 @@ import { AlertCircleIcon as M } from "../../../../icons/AlertCircleIcon.mjs";
|
|
|
26
27
|
import { ChevronDownIcon as N } from "../../../../icons/ChevronDownIcon.mjs";
|
|
27
28
|
import { ChevronUpIcon as k } from "../../../../icons/ChevronUpIcon.mjs";
|
|
28
29
|
import { XIcon as F } from "../../../../icons/XIcon.mjs";
|
|
29
|
-
import { Root as T, Backdrop as w, Positioner as V, Content as $, Header as L, CloseTrigger as Z, Body as B, Title as H, Description as U, Footer as
|
|
30
|
+
import { Root as T, Backdrop as w, Positioner as V, Content as $, Header as L, CloseTrigger as Z, Body as B, Title as H, Description as U, Footer as q } from "../../../../ui/AlertDialog/AlertDialog.mjs";
|
|
30
31
|
import "../../../../ui/Avatar/Avatar.mjs";
|
|
31
32
|
import "../../../../ui/Badge/Badge.mjs";
|
|
32
|
-
import { Button as
|
|
33
|
+
import { Button as p } from "../../../../ui/Button/Button.mjs";
|
|
33
34
|
import "../../../../ui/Checkbox/Checkbox.mjs";
|
|
34
35
|
import "../../../../ui/Clipboard/Clipboard.mjs";
|
|
35
36
|
import "../../../../ui/DatePicker/DatePicker.mjs";
|
|
36
37
|
import "../../../../ui/Dialog/Dialog.mjs";
|
|
37
38
|
import "../../../../ui/Drawer/Drawer.mjs";
|
|
38
|
-
import { Root as
|
|
39
|
+
import { Root as _, ErrorText as G } from "../../../../ui/Field/Field.mjs";
|
|
39
40
|
import "../../../../ui/IconButton/iconButton.recipe.mjs";
|
|
40
|
-
import { Root as
|
|
41
|
+
import { Root as W, Label as X, Control as Y, Input as J, IncrementTrigger as K, DecrementTrigger as oo } from "../../../../ui/NumberInput/NumberInput.mjs";
|
|
41
42
|
import "../../../../ui/PinInput/PinInput.mjs";
|
|
42
43
|
import "../../../../ui/Popover/Popover.mjs";
|
|
43
44
|
import "tailwind-merge";
|
|
@@ -45,167 +46,204 @@ import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
45
46
|
import "../../../../ui/Select/Select.mjs";
|
|
46
47
|
import "../../../../ui/Table/Table.mjs";
|
|
47
48
|
import "../../../../ui/Tabs/Tabs.mjs";
|
|
48
|
-
import { AmountChoices as
|
|
49
|
-
import { AvailablePromos as
|
|
50
|
-
import { useQRPHDepositContext as
|
|
51
|
-
function
|
|
52
|
-
var
|
|
53
|
-
const
|
|
54
|
-
amount:
|
|
55
|
-
const t =
|
|
56
|
-
t <
|
|
49
|
+
import { AmountChoices as eo } from "../../AmountChoices.mjs";
|
|
50
|
+
import { AvailablePromos as to } from "../../AvailablePromos.mjs";
|
|
51
|
+
import { useQRPHDepositContext as ro } from "./QRPHDepositContext.mjs";
|
|
52
|
+
function ie() {
|
|
53
|
+
var h;
|
|
54
|
+
const v = ro(), a = E(), D = P().data ?? 0, d = z(), c = d.data, u = c == null ? void 0 : c.qrphDepositGatewaySettings, l = n(u == null ? void 0 : u.maximumAmount, 0), s = D <= 0 ? n((h = d.data) == null ? void 0 : h.minimumFirstDepositAmount, 0) : n(u == null ? void 0 : u.minimumAmount, 0), f = O().data ?? [], b = m.object({
|
|
55
|
+
amount: m.string().superRefine((e, i) => {
|
|
56
|
+
const t = n(e, 0);
|
|
57
|
+
t < s && i.addIssue({
|
|
57
58
|
type: "number",
|
|
58
|
-
code:
|
|
59
|
+
code: m.ZodIssueCode.too_small,
|
|
59
60
|
inclusive: !0,
|
|
60
|
-
minimum:
|
|
61
|
-
message: `Minimum amount is ${
|
|
62
|
-
}), t >
|
|
61
|
+
minimum: s,
|
|
62
|
+
message: `Minimum amount is ${s.toLocaleString()}`
|
|
63
|
+
}), t > l && i.addIssue({
|
|
63
64
|
type: "number",
|
|
64
|
-
code:
|
|
65
|
+
code: m.ZodIssueCode.too_big,
|
|
65
66
|
inclusive: !0,
|
|
66
|
-
maximum:
|
|
67
|
-
message: `Maximum amount is ${
|
|
67
|
+
maximum: l,
|
|
68
|
+
message: `Maximum amount is ${l.toLocaleString()}`
|
|
68
69
|
});
|
|
69
70
|
}),
|
|
70
|
-
promo:
|
|
71
|
-
}).superRefine((e,
|
|
72
|
-
const t =
|
|
73
|
-
t &&
|
|
71
|
+
promo: m.string().optional().nullable()
|
|
72
|
+
}).superRefine((e, i) => {
|
|
73
|
+
const t = f.find((I) => I.id === e.promo), j = n(t == null ? void 0 : t.minimumDepositAmount, 0), g = n(t == null ? void 0 : t.maximumDepositAmount, 0), C = n(e.amount, 0);
|
|
74
|
+
t && C < j && i.addIssue({
|
|
74
75
|
path: ["amount"],
|
|
75
|
-
code:
|
|
76
|
-
message: `Minimum amount for this promo is ${
|
|
77
|
-
}), t &&
|
|
76
|
+
code: m.ZodIssueCode.custom,
|
|
77
|
+
message: `Minimum amount for this promo is ${j.toLocaleString()}`
|
|
78
|
+
}), t && C > g && i.addIssue({
|
|
78
79
|
path: ["amount"],
|
|
79
|
-
code:
|
|
80
|
+
code: m.ZodIssueCode.custom,
|
|
80
81
|
message: `Maximum amount for this promo is ${g}`
|
|
81
82
|
});
|
|
82
|
-
}),
|
|
83
|
+
}), r = R({
|
|
83
84
|
mode: "all",
|
|
84
|
-
resolver:
|
|
85
|
+
resolver: S(b),
|
|
85
86
|
defaultValues: {
|
|
86
87
|
amount: "0",
|
|
87
88
|
promo: null
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
amount:
|
|
91
|
+
Q(() => {
|
|
92
|
+
s && r.reset({
|
|
93
|
+
amount: s.toString(),
|
|
93
94
|
promo: null
|
|
94
95
|
});
|
|
95
|
-
}, [
|
|
96
|
-
const
|
|
97
|
-
|
|
96
|
+
}, [r, s]);
|
|
97
|
+
const x = r.handleSubmit(async (e) => {
|
|
98
|
+
v.generateQrCode(
|
|
98
99
|
{
|
|
99
100
|
amount: e.amount.toString(),
|
|
100
101
|
promo: e.promo ?? void 0
|
|
101
102
|
},
|
|
102
103
|
{
|
|
103
104
|
onSuccess() {
|
|
104
|
-
|
|
105
|
+
r.reset();
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
);
|
|
108
109
|
});
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
return /* @__PURE__ */ o.jsxs("form", { onSubmit: x, noValidate: !0, children: [
|
|
111
|
+
/* @__PURE__ */ o.jsx(
|
|
112
|
+
y,
|
|
113
|
+
{
|
|
114
|
+
control: r.control,
|
|
115
|
+
name: "amount",
|
|
116
|
+
render: (e) => {
|
|
117
|
+
var i;
|
|
118
|
+
return /* @__PURE__ */ o.jsxs(_, { invalid: !!r.formState.errors.amount, children: [
|
|
119
|
+
/* @__PURE__ */ o.jsxs(
|
|
120
|
+
W,
|
|
121
|
+
{
|
|
122
|
+
min: 0,
|
|
123
|
+
step: 1,
|
|
124
|
+
value: e.field.value,
|
|
125
|
+
onValueChange: (t) => {
|
|
126
|
+
e.field.onChange(t.value);
|
|
127
|
+
},
|
|
128
|
+
formatOptions: {
|
|
129
|
+
maximumFractionDigits: 2,
|
|
130
|
+
minimumFractionDigits: 0
|
|
131
|
+
},
|
|
132
|
+
allowMouseWheel: !0,
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ o.jsx(X, { children: "Enter amount you want to deposit" }),
|
|
135
|
+
/* @__PURE__ */ o.jsxs(Y, { children: [
|
|
136
|
+
/* @__PURE__ */ o.jsx(J, {}),
|
|
137
|
+
/* @__PURE__ */ o.jsx(K, { children: /* @__PURE__ */ o.jsx(k, {}) }),
|
|
138
|
+
/* @__PURE__ */ o.jsx(oo, { children: /* @__PURE__ */ o.jsx(N, {}) })
|
|
139
|
+
] })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ o.jsx(G, { children: (i = r.formState.errors.amount) == null ? void 0 : i.message })
|
|
144
|
+
] });
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ o.jsx(
|
|
149
|
+
eo,
|
|
150
|
+
{
|
|
151
|
+
value: n(r.watch("amount"), 0),
|
|
152
|
+
onChange: (e) => {
|
|
153
|
+
r.setValue("amount", e.toString(), {
|
|
154
|
+
shouldTouch: !0,
|
|
155
|
+
shouldDirty: !0,
|
|
156
|
+
shouldValidate: !0
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
min: s,
|
|
160
|
+
max: l,
|
|
161
|
+
className: "mt-xl"
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ o.jsx(
|
|
165
|
+
y,
|
|
166
|
+
{
|
|
167
|
+
control: r.control,
|
|
168
|
+
name: "promo",
|
|
169
|
+
render: (e) => /* @__PURE__ */ o.jsx(
|
|
170
|
+
to,
|
|
118
171
|
{
|
|
119
|
-
|
|
120
|
-
step: 1,
|
|
172
|
+
className: "mt-4xl",
|
|
121
173
|
value: e.field.value,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
formatOptions: {
|
|
126
|
-
maximumFractionDigits: 2,
|
|
127
|
-
minimumFractionDigits: 0
|
|
128
|
-
},
|
|
129
|
-
allowMouseWheel: !0
|
|
130
|
-
},
|
|
131
|
-
/* @__PURE__ */ React.createElement(W, null, "Enter amount you want to deposit"),
|
|
132
|
-
/* @__PURE__ */ React.createElement(X, null, /* @__PURE__ */ React.createElement(Y, null), /* @__PURE__ */ React.createElement(J, null, /* @__PURE__ */ React.createElement(k, null)), /* @__PURE__ */ React.createElement(K, null, /* @__PURE__ */ React.createElement(N, null)))
|
|
133
|
-
), /* @__PURE__ */ React.createElement(_, null, (r = o.formState.errors.amount) == null ? void 0 : r.message));
|
|
174
|
+
onChange: e.field.onChange
|
|
175
|
+
}
|
|
176
|
+
)
|
|
134
177
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
shouldValidate: !0
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
min: n,
|
|
148
|
-
max: s,
|
|
149
|
-
className: "mt-xl"
|
|
150
|
-
}
|
|
151
|
-
), /* @__PURE__ */ React.createElement(
|
|
152
|
-
C,
|
|
153
|
-
{
|
|
154
|
-
control: o.control,
|
|
155
|
-
name: "promo",
|
|
156
|
-
render: (e) => /* @__PURE__ */ React.createElement(
|
|
157
|
-
te,
|
|
158
|
-
{
|
|
159
|
-
className: "mt-4xl",
|
|
160
|
-
value: e.field.value,
|
|
161
|
-
onChange: e.field.onChange
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
), /* @__PURE__ */ React.createElement("p", { className: "mt-4xl text-xs" }, "Upon clicking the deposit button, you agree to the", " ", /* @__PURE__ */ React.createElement("button", { type: "button", className: "underline underline-offset-2" }, "Terms of Use and Privacy Policy"), "."), /* @__PURE__ */ React.createElement(
|
|
166
|
-
c,
|
|
167
|
-
{
|
|
168
|
-
type: "submit",
|
|
169
|
-
className: "mt-4.5",
|
|
170
|
-
onClick: async (e) => {
|
|
171
|
-
await o.trigger("amount") && (d.length <= 0 || o.getValues("promo") || (e.preventDefault(), l.setOpen(!0)));
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"Deposit"
|
|
175
|
-
), /* @__PURE__ */ React.createElement(
|
|
176
|
-
T,
|
|
177
|
-
{
|
|
178
|
-
role: "alertdialog",
|
|
179
|
-
open: l.open,
|
|
180
|
-
onOpenChange: (e) => {
|
|
181
|
-
l.setOpen(e.open);
|
|
182
|
-
},
|
|
183
|
-
lazyMount: !0,
|
|
184
|
-
unmountOnExit: !0,
|
|
185
|
-
closeOnEscape: !1,
|
|
186
|
-
closeOnInteractOutside: !1
|
|
187
|
-
},
|
|
188
|
-
/* @__PURE__ */ React.createElement(b, null, /* @__PURE__ */ React.createElement(w, { className: "!z-[calc(var(--z-dialog)+10)]" }), /* @__PURE__ */ React.createElement(V, { className: "!z-[calc(var(--z-dialog)+25)]" }, /* @__PURE__ */ React.createElement($, null, /* @__PURE__ */ React.createElement(L, null, /* @__PURE__ */ React.createElement("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]" }, /* @__PURE__ */ React.createElement(M, null)), /* @__PURE__ */ React.createElement(Z, null, /* @__PURE__ */ React.createElement(F, null))), /* @__PURE__ */ React.createElement(B, null, /* @__PURE__ */ React.createElement(H, null, "Submit deposit request without promo?"), /* @__PURE__ */ React.createElement(U, null, "You haven’t selected a promo. Are you sure you want to proceed without one?")), /* @__PURE__ */ React.createElement(j, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
c,
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ o.jsxs("p", { className: "mt-4xl text-xs", children: [
|
|
180
|
+
"Upon clicking the deposit button, you agree to the",
|
|
181
|
+
" ",
|
|
182
|
+
/* @__PURE__ */ o.jsx("button", { type: "button", className: "underline underline-offset-2", children: "Terms of Use and Privacy Policy" }),
|
|
183
|
+
"."
|
|
184
|
+
] }),
|
|
185
|
+
/* @__PURE__ */ o.jsx(
|
|
186
|
+
p,
|
|
190
187
|
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
onClick: () => {
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
199
|
-
|
|
188
|
+
type: "submit",
|
|
189
|
+
className: "mt-4.5",
|
|
190
|
+
onClick: async (e) => {
|
|
191
|
+
await r.trigger("amount") && (f.length <= 0 || r.getValues("promo") || (e.preventDefault(), a.setOpen(!0)));
|
|
192
|
+
},
|
|
193
|
+
children: "Deposit"
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
/* @__PURE__ */ o.jsx(
|
|
197
|
+
T,
|
|
200
198
|
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
role: "alertdialog",
|
|
200
|
+
open: a.open,
|
|
201
|
+
onOpenChange: (e) => {
|
|
202
|
+
a.setOpen(e.open);
|
|
203
|
+
},
|
|
204
|
+
lazyMount: !0,
|
|
205
|
+
unmountOnExit: !0,
|
|
206
|
+
closeOnEscape: !1,
|
|
207
|
+
closeOnInteractOutside: !1,
|
|
208
|
+
children: /* @__PURE__ */ o.jsxs(A, { children: [
|
|
209
|
+
/* @__PURE__ */ o.jsx(w, { className: "!z-[calc(var(--z-dialog)+10)]" }),
|
|
210
|
+
/* @__PURE__ */ o.jsx(V, { className: "!z-[calc(var(--z-dialog)+25)]", children: /* @__PURE__ */ o.jsxs($, { children: [
|
|
211
|
+
/* @__PURE__ */ o.jsxs(L, { children: [
|
|
212
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-[#FEE4E2] text-[#D92D20]", children: /* @__PURE__ */ o.jsx(M, {}) }),
|
|
213
|
+
/* @__PURE__ */ o.jsx(Z, { children: /* @__PURE__ */ o.jsx(F, {}) })
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ o.jsxs(B, { children: [
|
|
216
|
+
/* @__PURE__ */ o.jsx(H, { children: "Submit deposit request without promo?" }),
|
|
217
|
+
/* @__PURE__ */ o.jsx(U, { children: "You haven’t selected a promo. Are you sure you want to proceed without one?" })
|
|
218
|
+
] }),
|
|
219
|
+
/* @__PURE__ */ o.jsxs(q, { children: [
|
|
220
|
+
/* @__PURE__ */ o.jsx(
|
|
221
|
+
p,
|
|
222
|
+
{
|
|
223
|
+
variant: "outline",
|
|
224
|
+
colorScheme: "gray",
|
|
225
|
+
onClick: () => {
|
|
226
|
+
a.setOpen(!1);
|
|
227
|
+
},
|
|
228
|
+
children: "Cancel"
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ o.jsx(
|
|
232
|
+
p,
|
|
233
|
+
{
|
|
234
|
+
onClick: () => {
|
|
235
|
+
x(), a.setOpen(!1);
|
|
236
|
+
},
|
|
237
|
+
children: "Proceed"
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
] })
|
|
241
|
+
] }) })
|
|
242
|
+
] })
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
] });
|
|
208
246
|
}
|
|
209
247
|
export {
|
|
210
|
-
|
|
248
|
+
ie as QRPHDepositForm
|
|
211
249
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../icons/SpinnerIcon.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),t=require("../../../../icons/SpinnerIcon.js");function s(){return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16",children:[e.jsxRuntimeExports.jsx(t.SpinnerIcon,{className:"mx-auto size-8 lg:size-10"}),e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl",children:"Generating QR Code"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base",children:"Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction."})]})}exports.QRPHDepositLoading=s;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { j as e } from "../../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { SpinnerIcon as t } from "../../../../icons/SpinnerIcon.mjs";
|
|
3
|
+
function n() {
|
|
4
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 rounded-lg px-10 py-12 lg:p-16", children: [
|
|
5
|
+
/* @__PURE__ */ e.jsx(t, { className: "mx-auto size-8 lg:size-10" }),
|
|
6
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-5 text-center text-lg font-semibold lg:text-xl", children: "Generating QR Code" }),
|
|
7
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-700 mt-3 text-center text-sm lg:text-base", children: "Please hold tight as we verify the account details and amount. Once verified, a QRPH code will be displayed for you to scan and complete the transaction." })
|
|
8
|
+
] });
|
|
4
9
|
}
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
n as QRPHDepositLoading
|
|
7
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.js"),r=require("@ark-ui/react"),o=require("../../../../_virtual/image.js"),n=require("../../../../icons/QrCode02Icon.js"),x=require("../../../../icons/SpinnerIcon.js"),l=require("../../../../icons/XIcon.js"),a=require("../../../../images/qrph-icon.png.js");require("../../../../ui/AlertDialog/AlertDialog.js");require("../../../../ui/Avatar/Avatar.js");require("../../../../ui/Badge/Badge.js");const i=require("../../../../ui/Button/Button.js");require("../../../../ui/Checkbox/Checkbox.js");require("../../../../ui/Clipboard/Clipboard.js");require("../../../../ui/DatePicker/DatePicker.js");const t=require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");require("../../../../ui/Field/Field.js");require("../../../../utils/capitalize.js");require("react");require("../../../../utils/parseDecimal.js");require("../../../../constants/index.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");require("../../../../utils/toaster.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 c=require("./QRPHDepositContext.js");function u(){const s=c.useQRPHDepositContext();return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16",children:[e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl",children:"QR Code"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base",children:"Scan the QR code below with your banking app, or upload it to complete your deposit."}),e.jsxRuntimeExports.jsxs(r.QrCode.Root,{value:s.qrCode??"",className:"border-gray-200 mx-auto mt-6 w-[12.5rem] rounded-lg border bg-white p-5 lg:w-[13rem] lg:p-6",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative",children:[e.jsxRuntimeExports.jsx(r.QrCode.Frame,{className:"border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border",children:e.jsxRuntimeExports.jsx(r.QrCode.Pattern,{})}),e.jsxRuntimeExports.jsx(r.QrCode.Overlay,{className:"bg-white p-0.5",children:e.jsxRuntimeExports.jsx(o,{src:a,alt:"",className:"size-8",width:40,height:40})})]}),e.jsxRuntimeExports.jsx(r.QrCode.DownloadTrigger,{fileName:`qrcode-${new Date().getTime()}`,mimeType:"image/png",className:"text-gray-900 mt-5 block w-full text-center text-sm font-semibold",children:"Download QR Code"})]}),s.view==="QR_CODE"&&e.jsxRuntimeExports.jsxs("div",{className:"mt-6 flex flex-col gap-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx(i.Button,{size:"sm",variant:"outline",colorScheme:"gray",onClick:()=>{s.reset()},children:"Generate New QR Code"}),e.jsxRuntimeExports.jsx(i.Button,{size:"sm",onClick:()=>{s.verify()},children:"Confirm Deposit"})]}),s.view==="VERIFYING"&&e.jsxRuntimeExports.jsxs("div",{className:"border-gray-200 mt-6 rounded-lg border bg-white p-4 lg:p-6",children:[e.jsxRuntimeExports.jsx(x.SpinnerIcon,{className:"mx-auto size-6 lg:size-8"}),e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center font-semibold lg:text-lg",children:"Processing your deposit"}),e.jsxRuntimeExports.jsxs("p",{className:"text-gray-700 mx-auto mt-2 text-center text-xs lg:text-sm",children:["Your deposit is being processed. ",e.jsxRuntimeExports.jsx("br",{}),"Please hold tight as we verify the account details and amount."]})]}),e.jsxRuntimeExports.jsx(m,{})]})}function m(){return e.jsxRuntimeExports.jsxs("p",{className:"text-gray-500 mt-6 text-center text-xs",children:["Need help using the QR Code?"," ",e.jsxRuntimeExports.jsxs(t.Root,{lazyMount:!0,unmountOnExit:!0,children:[e.jsxRuntimeExports.jsx(t.Trigger,{className:"text-blue-500",children:"See instructions"}),e.jsxRuntimeExports.jsxs(r.Portal,{children:[e.jsxRuntimeExports.jsx(t.Backdrop,{className:"!z-[calc(var(--z-dialog)+2)]"}),e.jsxRuntimeExports.jsx(t.Positioner,{className:"!z-[calc(var(--z-dialog)+3)] flex items-center justify-center",children:e.jsxRuntimeExports.jsxs(t.Content,{className:"mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]",children:[e.jsxRuntimeExports.jsx(t.CloseTrigger,{children:e.jsxRuntimeExports.jsx(l.XIcon,{})}),e.jsxRuntimeExports.jsxs(t.Body,{children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-xl",children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 flex size-11 items-center justify-center rounded-lg border",children:e.jsxRuntimeExports.jsx(n.QrCode02Icon,{className:"text-gray-600 size-6"})}),e.jsxRuntimeExports.jsx(t.Title,{className:"text-lg font-semibold",children:"How to Use the QR Code for Payment"})]}),e.jsxRuntimeExports.jsx(t.Description,{className:"mt-5",children:"Follow these simple steps to complete your transaction:"}),e.jsxRuntimeExports.jsxs("ol",{className:"mt-3 list-inside list-decimal space-y-3",children:[e.jsxRuntimeExports.jsx("li",{children:"Open your preferred banking or EMI mobile app and select 'Transfer Money' or 'Pay via QR'"}),e.jsxRuntimeExports.jsx("li",{children:"Scan or upload the generated QR Ph code. If prompted by the app, enter the amount to be sent."}),e.jsxRuntimeExports.jsx("li",{children:"Proceed with the transfer or payment."})]})]})]})})]})]})]})}exports.QRPHDepositQrCode=u;
|