@opexa/portal-components 0.0.7 → 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/services.js +1 -0
- package/dist/services.mjs +10 -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 +18 -36
- 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,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { j as e } from "../../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { QrCode as r, Portal as s } from "@ark-ui/react";
|
|
3
|
+
import i from "../../../../_virtual/image.mjs";
|
|
3
4
|
import { QrCode02Icon as l } from "../../../../icons/QrCode02Icon.mjs";
|
|
4
5
|
import { SpinnerIcon as m } from "../../../../icons/SpinnerIcon.mjs";
|
|
5
|
-
import { XIcon as
|
|
6
|
+
import { XIcon as a } from "../../../../icons/XIcon.mjs";
|
|
6
7
|
import n from "../../../../images/qrph-icon.png.mjs";
|
|
7
8
|
import "../../../../ui/AlertDialog/AlertDialog.mjs";
|
|
8
9
|
import "../../../../ui/Avatar/Avatar.mjs";
|
|
9
10
|
import "../../../../ui/Badge/Badge.mjs";
|
|
10
|
-
import { Button as
|
|
11
|
+
import { Button as o } from "../../../../ui/Button/Button.mjs";
|
|
11
12
|
import "../../../../ui/Checkbox/Checkbox.mjs";
|
|
12
13
|
import "../../../../ui/Clipboard/Clipboard.mjs";
|
|
13
14
|
import "../../../../ui/DatePicker/DatePicker.mjs";
|
|
14
|
-
import { Root as
|
|
15
|
+
import { Root as c, Trigger as d, Backdrop as p, Positioner as x, Content as g, CloseTrigger as h, Body as u, Title as j, Description as f } from "../../../../ui/Dialog/Dialog.mjs";
|
|
15
16
|
import "../../../../ui/Drawer/Drawer.mjs";
|
|
16
17
|
import "../../../../ui/Field/Field.mjs";
|
|
17
18
|
import "../../../../utils/capitalize.mjs";
|
|
@@ -31,59 +32,106 @@ import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
31
32
|
import "../../../../ui/Select/Select.mjs";
|
|
32
33
|
import "../../../../ui/Table/Table.mjs";
|
|
33
34
|
import "../../../../ui/Tabs/Tabs.mjs";
|
|
34
|
-
import { useQRPHDepositContext as
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
/* @__PURE__ */ React.createElement("div", { className: "relative" }, /* @__PURE__ */ React.createElement(t.Frame, { className: "border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border" }, /* @__PURE__ */ React.createElement(t.Pattern, null)), /* @__PURE__ */ React.createElement(t.Overlay, { className: "bg-white p-0.5" }, /* @__PURE__ */ React.createElement(
|
|
44
|
-
o,
|
|
35
|
+
import { useQRPHDepositContext as y } from "./QRPHDepositContext.mjs";
|
|
36
|
+
function re() {
|
|
37
|
+
const t = y();
|
|
38
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 rounded-lg px-10 py-12 lg:p-16", children: [
|
|
39
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-5 text-center text-lg font-semibold lg:text-xl", children: "QR Code" }),
|
|
40
|
+
/* @__PURE__ */ e.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." }),
|
|
41
|
+
/* @__PURE__ */ e.jsxs(
|
|
42
|
+
r.Root,
|
|
45
43
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
value: t.qrCode ?? "",
|
|
45
|
+
className: "border-gray-200 mx-auto mt-6 w-[12.5rem] rounded-lg border bg-white p-5 lg:w-[13rem] lg:p-6",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
48
|
+
/* @__PURE__ */ e.jsx(r.Frame, { className: "border-gray-200 mx-auto size-[10rem] rounded-[0.25rem] border", children: /* @__PURE__ */ e.jsx(r.Pattern, {}) }),
|
|
49
|
+
/* @__PURE__ */ e.jsx(r.Overlay, { className: "bg-white p-0.5", children: /* @__PURE__ */ e.jsx(
|
|
50
|
+
i,
|
|
51
|
+
{
|
|
52
|
+
src: n,
|
|
53
|
+
alt: "",
|
|
54
|
+
className: "size-8",
|
|
55
|
+
width: 40,
|
|
56
|
+
height: 40
|
|
57
|
+
}
|
|
58
|
+
) })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ e.jsx(
|
|
61
|
+
r.DownloadTrigger,
|
|
62
|
+
{
|
|
63
|
+
fileName: `qrcode-${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
64
|
+
mimeType: "image/png",
|
|
65
|
+
className: "text-gray-900 mt-5 block w-full text-center text-sm font-semibold",
|
|
66
|
+
children: "Download QR Code"
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
]
|
|
51
70
|
}
|
|
52
|
-
)
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
),
|
|
72
|
+
t.view === "QR_CODE" && /* @__PURE__ */ e.jsxs("div", { className: "mt-6 flex flex-col gap-4 lg:flex-row", children: [
|
|
73
|
+
/* @__PURE__ */ e.jsx(
|
|
74
|
+
o,
|
|
75
|
+
{
|
|
76
|
+
size: "sm",
|
|
77
|
+
variant: "outline",
|
|
78
|
+
colorScheme: "gray",
|
|
79
|
+
onClick: () => {
|
|
80
|
+
t.reset();
|
|
81
|
+
},
|
|
82
|
+
children: "Generate New QR Code"
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ e.jsx(
|
|
86
|
+
o,
|
|
87
|
+
{
|
|
88
|
+
size: "sm",
|
|
89
|
+
onClick: () => {
|
|
90
|
+
t.verify();
|
|
91
|
+
},
|
|
92
|
+
children: "Confirm Deposit"
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }),
|
|
96
|
+
t.view === "VERIFYING" && /* @__PURE__ */ e.jsxs("div", { className: "border-gray-200 mt-6 rounded-lg border bg-white p-4 lg:p-6", children: [
|
|
97
|
+
/* @__PURE__ */ e.jsx(m, { className: "mx-auto size-6 lg:size-8" }),
|
|
98
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-5 text-center font-semibold lg:text-lg", children: "Processing your deposit" }),
|
|
99
|
+
/* @__PURE__ */ e.jsxs("p", { className: "text-gray-700 mx-auto mt-2 text-center text-xs lg:text-sm", children: [
|
|
100
|
+
"Your deposit is being processed. ",
|
|
101
|
+
/* @__PURE__ */ e.jsx("br", {}),
|
|
102
|
+
"Please hold tight as we verify the account details and amount."
|
|
103
|
+
] })
|
|
104
|
+
] }),
|
|
105
|
+
/* @__PURE__ */ e.jsx(N, {})
|
|
106
|
+
] });
|
|
83
107
|
}
|
|
84
|
-
function
|
|
85
|
-
return /* @__PURE__ */
|
|
108
|
+
function N() {
|
|
109
|
+
return /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mt-6 text-center text-xs", children: [
|
|
110
|
+
"Need help using the QR Code?",
|
|
111
|
+
" ",
|
|
112
|
+
/* @__PURE__ */ e.jsxs(c, { lazyMount: !0, unmountOnExit: !0, children: [
|
|
113
|
+
/* @__PURE__ */ e.jsx(d, { className: "text-blue-500", children: "See instructions" }),
|
|
114
|
+
/* @__PURE__ */ e.jsxs(s, { children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(p, { className: "!z-[calc(var(--z-dialog)+2)]" }),
|
|
116
|
+
/* @__PURE__ */ e.jsx(x, { className: "!z-[calc(var(--z-dialog)+3)] flex items-center justify-center", children: /* @__PURE__ */ e.jsxs(g, { className: "mx-auto w-[calc(100%-2rem)] rounded-lg bg-white p-4xl lg:w-[33.625rem]", children: [
|
|
117
|
+
/* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(a, {}) }),
|
|
118
|
+
/* @__PURE__ */ e.jsxs(u, { children: [
|
|
119
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-xl", children: [
|
|
120
|
+
/* @__PURE__ */ e.jsx("div", { className: "border-gray-200 flex size-11 items-center justify-center rounded-lg border", children: /* @__PURE__ */ e.jsx(l, { className: "text-gray-600 size-6" }) }),
|
|
121
|
+
/* @__PURE__ */ e.jsx(j, { className: "text-lg font-semibold", children: "How to Use the QR Code for Payment" })
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ e.jsx(f, { className: "mt-5", children: "Follow these simple steps to complete your transaction:" }),
|
|
124
|
+
/* @__PURE__ */ e.jsxs("ol", { className: "mt-3 list-inside list-decimal space-y-3", children: [
|
|
125
|
+
/* @__PURE__ */ e.jsx("li", { children: "Open your preferred banking or EMI mobile app and select 'Transfer Money' or 'Pay via QR'" }),
|
|
126
|
+
/* @__PURE__ */ e.jsx("li", { children: "Scan or upload the generated QR Ph code. If prompted by the app, enter the amount to be sent." }),
|
|
127
|
+
/* @__PURE__ */ e.jsx("li", { children: "Proceed with the transfer or payment." })
|
|
128
|
+
] })
|
|
129
|
+
] })
|
|
130
|
+
] }) })
|
|
131
|
+
] })
|
|
132
|
+
] })
|
|
133
|
+
] });
|
|
86
134
|
}
|
|
87
135
|
export {
|
|
88
|
-
|
|
136
|
+
re as QRPHDepositQrCode
|
|
89
137
|
};
|
|
@@ -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"),t=require("../../../../icons/CheckCircleBrokenIcon.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");require("../../../../ui/Dialog/Dialog.js");require("../../../../ui/Drawer/Drawer.js");require("../../../../ui/Field/Field.js");require("@ark-ui/react");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 u=require("./QRPHDepositContext.js");function s(){const r=u.useQRPHDepositContext();return e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-50 rounded-lg px-10 py-12 lg:p-16",children:[e.jsxRuntimeExports.jsx(t.CheckCircleBrokenIcon,{className:"text-green-600 mx-auto size-8 lg:size-10"}),e.jsxRuntimeExports.jsx("p",{className:"mt-5 text-center text-lg font-semibold lg:text-xl",children:"Deposit Successful!"}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-700 mt-3 text-center text-sm lg:text-base",children:"Your funds have been successfully added and are now ready to use in your account."}),e.jsxRuntimeExports.jsx(i.Button,{size:"sm",variant:"outline",colorScheme:"gray",className:"mx-auto mt-6 w-fit",onClick:()=>r.reset(),children:"Generate New QR Code"})]})}exports.QRPHDepositSuccess=s;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { j as t } from "../../../../_virtual/jsx-runtime.mjs";
|
|
1
2
|
import { CheckCircleBrokenIcon as e } from "../../../../icons/CheckCircleBrokenIcon.mjs";
|
|
2
3
|
import "../../../../ui/AlertDialog/AlertDialog.mjs";
|
|
3
4
|
import "../../../../ui/Avatar/Avatar.mjs";
|
|
4
5
|
import "../../../../ui/Badge/Badge.mjs";
|
|
5
|
-
import { Button as
|
|
6
|
+
import { Button as r } from "../../../../ui/Button/Button.mjs";
|
|
6
7
|
import "../../../../ui/Checkbox/Checkbox.mjs";
|
|
7
8
|
import "../../../../ui/Clipboard/Clipboard.mjs";
|
|
8
9
|
import "../../../../ui/DatePicker/DatePicker.mjs";
|
|
@@ -27,21 +28,26 @@ import "../../../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
|
27
28
|
import "../../../../ui/Select/Select.mjs";
|
|
28
29
|
import "../../../../ui/Table/Table.mjs";
|
|
29
30
|
import "../../../../ui/Tabs/Tabs.mjs";
|
|
30
|
-
import { useQRPHDepositContext as
|
|
31
|
-
function
|
|
32
|
-
const
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
import { useQRPHDepositContext as i } from "./QRPHDepositContext.mjs";
|
|
32
|
+
function I() {
|
|
33
|
+
const o = i();
|
|
34
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "bg-gray-50 rounded-lg px-10 py-12 lg:p-16", children: [
|
|
35
|
+
/* @__PURE__ */ t.jsx(e, { className: "text-green-600 mx-auto size-8 lg:size-10" }),
|
|
36
|
+
/* @__PURE__ */ t.jsx("p", { className: "mt-5 text-center text-lg font-semibold lg:text-xl", children: "Deposit Successful!" }),
|
|
37
|
+
/* @__PURE__ */ t.jsx("p", { className: "text-gray-700 mt-3 text-center text-sm lg:text-base", children: "Your funds have been successfully added and are now ready to use in your account." }),
|
|
38
|
+
/* @__PURE__ */ t.jsx(
|
|
39
|
+
r,
|
|
40
|
+
{
|
|
41
|
+
size: "sm",
|
|
42
|
+
variant: "outline",
|
|
43
|
+
colorScheme: "gray",
|
|
44
|
+
className: "mx-auto mt-6 w-fit",
|
|
45
|
+
onClick: () => o.reset(),
|
|
46
|
+
children: "Generate New QR Code"
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] });
|
|
44
50
|
}
|
|
45
51
|
export {
|
|
46
|
-
|
|
52
|
+
I as QRPHDepositSuccess
|
|
47
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),m=require("tiny-invariant");require("@opexa/portal-sdk-core");require("@tanstack/react-query");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 E=require("../../../../utils/toaster.js");require("lodash-es");require("../../../../_virtual/index.cjs.js");const M=require("../../../../hooks/useCreateQRPHDepositMutation.js"),O=require("../../../../hooks/useDepositQuery.js");require("../../../../hooks/useGlobalStore.js");require("../../../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function I(){var d;const[l,t]=r.useState("FORM"),[a,u]=r.useState(null),[C,s]=r.useState(null),[c,n]=r.useState(null),[S,o]=r.useState(null),q=M.useCreateQRPHDepositMutation({onSuccess(e){m(e.qrCode),u(e.id),o(e.qrCode),t("QR_CODE")},onError(e){t("FORM"),E.toaster.error({description:e.message})},onMutate(e){u(null),s(e.promo??null),n(e.amount),o(null),t("LOADING")}}),i=O.useDepositQuery(a??void 0,{enabled:!!a,refetchInterval:l==="VERIFYING"?2500:5e3});r.useEffect(()=>{var e,R;(((e=i.data)==null?void 0:e.status)==="CONFIRMED"||((R=i.data)==null?void 0:R.status)==="APPROVED")&&t("SUCCESS")},[(d=i.data)==null?void 0:d.status]);const p=q.mutate,D=()=>{m(c),q.mutate({amount:c.toString(),promo:C??void 0})},Q=()=>{t("VERIFYING")},f=()=>{u(null),s(null),n(null),o(null),t("FORM")};return r.useEffect(()=>()=>{u(null),s(null),n(null),o(null),t("FORM")},[]),{view:l,qrCode:S,verify:Q,generateQrCode:p,regenerateQrCode:D,reset:f}}exports.useQRPHDeposit=I;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),m=require("tiny-invariant");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("../../../../constants/index.js");require("../../../../utils/capitalize.js");require("../../../../_virtual/jsx-runtime.js");require("../../../../utils/parseDecimal.js");require("../../../../utils/getLocaleInfo.js");require("../../../../utils/getQueryClient.js");require("../../../../utils/isMobile.js");const E=require("../../../../utils/toaster.js");require("lodash-es");require("../../../../_virtual/index.cjs.js");const M=require("../../../../hooks/useCreateQRPHDepositMutation.js"),O=require("../../../../hooks/useDepositQuery.js");require("../../../../hooks/useGlobalStore.js");require("../../../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");function I(){var d;const[l,t]=r.useState("FORM"),[a,u]=r.useState(null),[C,s]=r.useState(null),[c,n]=r.useState(null),[S,o]=r.useState(null),q=M.useCreateQRPHDepositMutation({onSuccess(e){m(e.qrCode),u(e.id),o(e.qrCode),t("QR_CODE")},onError(e){t("FORM"),E.toaster.error({description:e.message})},onMutate(e){u(null),s(e.promo??null),n(e.amount),o(null),t("LOADING")}}),i=O.useDepositQuery(a??void 0,{enabled:!!a,refetchInterval:l==="VERIFYING"?2500:5e3});r.useEffect(()=>{var e,R;(((e=i.data)==null?void 0:e.status)==="CONFIRMED"||((R=i.data)==null?void 0:R.status)==="APPROVED")&&t("SUCCESS")},[(d=i.data)==null?void 0:d.status]);const p=q.mutate,D=()=>{m(c),q.mutate({amount:c.toString(),promo:C??void 0})},Q=()=>{t("VERIFYING")},f=()=>{u(null),s(null),n(null),o(null),t("FORM")};return r.useEffect(()=>()=>{u(null),s(null),n(null),o(null),t("FORM")},[]),{view:l,qrCode:S,verify:Q,generateQrCode:p,regenerateQrCode:D,reset:f}}exports.useQRPHDeposit=I;
|
|
@@ -4,6 +4,7 @@ import "@opexa/portal-sdk-core";
|
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
import "../../../../constants/index.mjs";
|
|
6
6
|
import "../../../../utils/capitalize.mjs";
|
|
7
|
+
import "../../../../_virtual/jsx-runtime.mjs";
|
|
7
8
|
import "../../../../utils/parseDecimal.mjs";
|
|
8
9
|
import "../../../../utils/getLocaleInfo.mjs";
|
|
9
10
|
import "../../../../utils/getQueryClient.mjs";
|
|
@@ -16,9 +17,9 @@ import { useDepositQuery as v } from "../../../../hooks/useDepositQuery.mjs";
|
|
|
16
17
|
import "../../../../hooks/useGlobalStore.mjs";
|
|
17
18
|
import "../../../../hooks/useInfiniteQueryHelper.mjs";
|
|
18
19
|
import "usehooks-ts";
|
|
19
|
-
function
|
|
20
|
+
function k() {
|
|
20
21
|
var c;
|
|
21
|
-
const [m, o] = r("FORM"), [l, e] = r(null), [R,
|
|
22
|
+
const [m, o] = r("FORM"), [l, e] = r(null), [R, i] = r(null), [p, u] = r(null), [E, n] = r(null), a = Q({
|
|
22
23
|
onSuccess(t) {
|
|
23
24
|
C(t.qrCode), e(t.id), n(t.qrCode), o("QR_CODE");
|
|
24
25
|
},
|
|
@@ -28,7 +29,7 @@ function j() {
|
|
|
28
29
|
});
|
|
29
30
|
},
|
|
30
31
|
onMutate(t) {
|
|
31
|
-
e(null),
|
|
32
|
+
e(null), i(t.promo ?? null), u(t.amount), n(null), o("LOADING");
|
|
32
33
|
}
|
|
33
34
|
}), s = v(l ?? void 0, {
|
|
34
35
|
enabled: !!l,
|
|
@@ -46,10 +47,10 @@ function j() {
|
|
|
46
47
|
}, D = () => {
|
|
47
48
|
o("VERIFYING");
|
|
48
49
|
}, F = () => {
|
|
49
|
-
e(null),
|
|
50
|
+
e(null), i(null), u(null), n(null), o("FORM");
|
|
50
51
|
};
|
|
51
52
|
return f(() => () => {
|
|
52
|
-
e(null),
|
|
53
|
+
e(null), i(null), u(null), n(null), o("FORM");
|
|
53
54
|
}, []), {
|
|
54
55
|
view: m,
|
|
55
56
|
qrCode: E,
|
|
@@ -60,5 +61,5 @@ function j() {
|
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
k as useQRPHDeposit
|
|
64
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@ark-ui/react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),d=require("@ark-ui/react"),j=require("tailwind-merge"),p=require("zod");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("react");const u=require("../../utils/formatNumber.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("../../utils/toaster.js");require("lodash-es");require("../../_virtual/index.cjs.js");const h=require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");const c=require("../../hooks/useLocaleInfo.js");require("usehooks-ts");const x=require("../../hooks/useWalletQuery.js"),m=require("../../icons/Wallet02Icon.js"),q=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.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("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");const t=require("../../ui/Tabs/Tabs.js"),g=require("./Deposit/Deposit.js"),E=require("./Withdrawal/Withdrawal.js"),R=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 f(l){var o;const s=h.useGlobalStore(R.useShallow(i=>({depositWithdrawal:i.depositWithdrawal}))),n=c.useLocaleInfo(),a=x.useWalletQuery({refetchInterval:5e3});return e.jsxRuntimeExports.jsxs(r.Root,{lazyMount:!0,unmountOnExit:!0,open:s.depositWithdrawal.open,onOpenChange:i=>{s.depositWithdrawal.setOpen(i.open)},closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsxRuntimeExports.jsx(r.Trigger,{asChild:!0,children:l.children??e.jsxRuntimeExports.jsx(w,{})}),e.jsxRuntimeExports.jsxs(d.Portal,{children:[e.jsxRuntimeExports.jsx(r.Backdrop,{className:"!z-[calc(var(--z-dialog)+1)]"}),e.jsxRuntimeExports.jsx(r.Positioner,{className:"!z-[calc(var(--z-dialog)+2)]",children:e.jsxRuntimeExports.jsxs(r.Content,{className:"lg:min-h-auto mx-auto min-h-full w-full bg-white p-2xl shadow-xl lg:w-[640px] lg:rounded-xl lg:p-3xl",children:[e.jsxRuntimeExports.jsx(r.CloseTrigger,{children:e.jsxRuntimeExports.jsx(q.XIcon,{})}),e.jsxRuntimeExports.jsxs(r.Header,{className:"flex items-center gap-xl",children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 shadow-xs text-gray-700 flex size-12 items-center justify-center rounded-lg border",children:e.jsxRuntimeExports.jsx(m.Wallet02Icon,{})}),e.jsxRuntimeExports.jsx(r.Title,{className:"grow text-lg font-semibold",children:"Wallet"})]}),e.jsxRuntimeExports.jsxs(r.Body,{className:"mt-5",children:[e.jsxRuntimeExports.jsx("p",{className:"text-gray-500 text-center text-sm font-medium leading-tight",children:"Available Balance"}),e.jsxRuntimeExports.jsx("p",{className:"mt-lg text-center text-4xl font-semibold leading-tight tracking-tight",children:u.formatNumber((o=a.data)==null?void 0:o.balance,{currency:n.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsxs(t.Root,{value:s.depositWithdrawal.tab,onValueChange:i=>{s.depositWithdrawal.setTab(p.z.enum(["DEPOSIT","WITHDRAWAL"]).parse(i.value))},lazyMount:!0,unmountOnExit:!0,className:"mt-4xl space-y-4xl",children:[e.jsxRuntimeExports.jsxs(t.List,{className:"w-full",children:[e.jsxRuntimeExports.jsx(t.Trigger,{value:"DEPOSIT",className:"grow",children:"Deposit"}),e.jsxRuntimeExports.jsx(t.Trigger,{value:"WITHDRAWAL",className:"grow",children:"Withdrawal"}),e.jsxRuntimeExports.jsx(t.Indicator,{})]}),e.jsxRuntimeExports.jsx(t.Content,{value:"DEPOSIT",className:"space-y-4xl",children:e.jsxRuntimeExports.jsx(g.Deposit,{})}),e.jsxRuntimeExports.jsx(t.Content,{value:"WITHDRAWAL",className:"space-y-4xl",children:e.jsxRuntimeExports.jsx(E.Withdrawal,{})})]})]})]})})]})]})}function w(l){var a;const s=c.useLocaleInfo(),n=x.useWalletQuery({refetchInterval:5e3});return e.jsxRuntimeExports.jsxs("button",{type:"button",...l,className:j.twMerge("flex",l.className),children:[e.jsxRuntimeExports.jsx("div",{className:"border-gray-200 flex h-11 items-center rounded-l-md border border-r-0 px-3.5 font-medium",children:u.formatNumber((a=n.data)==null?void 0:a.balance,{currency:s.currency.code,minDecimalPlaces:2})}),e.jsxRuntimeExports.jsxs("div",{className:"bg-gray-900 flex h-11 items-center gap-1.5 rounded-r-md px-3.5 font-semibold text-white",children:[e.jsxRuntimeExports.jsx(m.Wallet02Icon,{className:"size-5"}),"Wallet"]})]})}exports.DepositWithdrawal=f;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.mjs";
|
|
3
|
+
import { Portal as x } from "@ark-ui/react";
|
|
4
|
+
import { twMerge as u } from "tailwind-merge";
|
|
5
|
+
import { z as h } from "zod";
|
|
5
6
|
import "@opexa/portal-sdk-core";
|
|
6
7
|
import "@tanstack/react-query";
|
|
7
8
|
import "tiny-invariant";
|
|
@@ -16,13 +17,13 @@ import "../../utils/parseDecimal.mjs";
|
|
|
16
17
|
import "../../utils/toaster.mjs";
|
|
17
18
|
import "lodash-es";
|
|
18
19
|
import "../../_virtual/index.cjs.mjs";
|
|
19
|
-
import { useGlobalStore as
|
|
20
|
+
import { useGlobalStore as g } from "../../hooks/useGlobalStore.mjs";
|
|
20
21
|
import "../../hooks/useInfiniteQueryHelper.mjs";
|
|
21
|
-
import { useLocaleInfo as
|
|
22
|
+
import { useLocaleInfo as c } from "../../hooks/useLocaleInfo.mjs";
|
|
22
23
|
import "usehooks-ts";
|
|
23
|
-
import { useWalletQuery as
|
|
24
|
+
import { useWalletQuery as d } from "../../hooks/useWalletQuery.mjs";
|
|
24
25
|
import { Wallet02Icon as p } from "../../icons/Wallet02Icon.mjs";
|
|
25
|
-
import { XIcon as
|
|
26
|
+
import { XIcon as f } from "../../icons/XIcon.mjs";
|
|
26
27
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
27
28
|
import "../../ui/Avatar/Avatar.mjs";
|
|
28
29
|
import "../../ui/Badge/Badge.mjs";
|
|
@@ -30,7 +31,7 @@ import "../../ui/Button/button.recipe.mjs";
|
|
|
30
31
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
31
32
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
32
33
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
33
|
-
import { Root as
|
|
34
|
+
import { Root as j, Trigger as w, Backdrop as N, Positioner as b, Content as y, CloseTrigger as W, Header as I, Title as v, Body as T } from "../../ui/Dialog/Dialog.mjs";
|
|
34
35
|
import "../../ui/Drawer/Drawer.mjs";
|
|
35
36
|
import "../../ui/Field/Field.mjs";
|
|
36
37
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
@@ -40,73 +41,100 @@ import "../../ui/Popover/Popover.mjs";
|
|
|
40
41
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
41
42
|
import "../../ui/Select/Select.mjs";
|
|
42
43
|
import "../../ui/Table/Table.mjs";
|
|
43
|
-
import { Root as
|
|
44
|
-
import { Deposit as
|
|
45
|
-
import { Withdrawal as
|
|
46
|
-
import { useShallow as
|
|
47
|
-
function
|
|
48
|
-
var
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
depositWithdrawal:
|
|
44
|
+
import { Root as D, List as O, Trigger as s, Indicator as z, Content as m } from "../../ui/Tabs/Tabs.mjs";
|
|
45
|
+
import { Deposit as A } from "./Deposit/Deposit.mjs";
|
|
46
|
+
import { Withdrawal as C } from "./Withdrawal/Withdrawal.mjs";
|
|
47
|
+
import { useShallow as E } 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";
|
|
48
|
+
function Te(o) {
|
|
49
|
+
var i;
|
|
50
|
+
const t = g(
|
|
51
|
+
E((r) => ({
|
|
52
|
+
depositWithdrawal: r.depositWithdrawal
|
|
52
53
|
}))
|
|
53
|
-
),
|
|
54
|
+
), a = c(), l = d({
|
|
54
55
|
refetchInterval: 5e3
|
|
55
56
|
});
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
|
|
57
|
+
return /* @__PURE__ */ e.jsxs(
|
|
58
|
+
j,
|
|
58
59
|
{
|
|
59
60
|
lazyMount: !0,
|
|
60
61
|
unmountOnExit: !0,
|
|
61
|
-
open:
|
|
62
|
-
onOpenChange: (
|
|
63
|
-
|
|
62
|
+
open: t.depositWithdrawal.open,
|
|
63
|
+
onOpenChange: (r) => {
|
|
64
|
+
t.depositWithdrawal.setOpen(r.open);
|
|
64
65
|
},
|
|
65
66
|
closeOnEscape: !1,
|
|
66
|
-
closeOnInteractOutside: !1
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
67
|
+
closeOnInteractOutside: !1,
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ e.jsx(w, { asChild: !0, children: o.children ?? /* @__PURE__ */ e.jsx(P, {}) }),
|
|
70
|
+
/* @__PURE__ */ e.jsxs(x, { children: [
|
|
71
|
+
/* @__PURE__ */ e.jsx(N, { className: "!z-[calc(var(--z-dialog)+1)]" }),
|
|
72
|
+
/* @__PURE__ */ e.jsx(b, { className: "!z-[calc(var(--z-dialog)+2)]", children: /* @__PURE__ */ e.jsxs(y, { className: "lg:min-h-auto mx-auto min-h-full w-full bg-white p-2xl shadow-xl lg:w-[640px] lg:rounded-xl lg:p-3xl", children: [
|
|
73
|
+
/* @__PURE__ */ e.jsx(W, { children: /* @__PURE__ */ e.jsx(f, {}) }),
|
|
74
|
+
/* @__PURE__ */ e.jsxs(I, { className: "flex items-center gap-xl", children: [
|
|
75
|
+
/* @__PURE__ */ e.jsx("div", { className: "border-gray-200 shadow-xs text-gray-700 flex size-12 items-center justify-center rounded-lg border", children: /* @__PURE__ */ e.jsx(p, {}) }),
|
|
76
|
+
/* @__PURE__ */ e.jsx(v, { className: "grow text-lg font-semibold", children: "Wallet" })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ e.jsxs(T, { className: "mt-5", children: [
|
|
79
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-500 text-center text-sm font-medium leading-tight", children: "Available Balance" }),
|
|
80
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-lg text-center text-4xl font-semibold leading-tight tracking-tight", children: n((i = l.data) == null ? void 0 : i.balance, {
|
|
81
|
+
currency: a.currency.code,
|
|
82
|
+
minDecimalPlaces: 2
|
|
83
|
+
}) }),
|
|
84
|
+
/* @__PURE__ */ e.jsxs(
|
|
85
|
+
D,
|
|
86
|
+
{
|
|
87
|
+
value: t.depositWithdrawal.tab,
|
|
88
|
+
onValueChange: (r) => {
|
|
89
|
+
t.depositWithdrawal.setTab(
|
|
90
|
+
h.enum(["DEPOSIT", "WITHDRAWAL"]).parse(r.value)
|
|
91
|
+
);
|
|
92
|
+
},
|
|
93
|
+
lazyMount: !0,
|
|
94
|
+
unmountOnExit: !0,
|
|
95
|
+
className: "mt-4xl space-y-4xl",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ e.jsxs(O, { className: "w-full", children: [
|
|
98
|
+
/* @__PURE__ */ e.jsx(s, { value: "DEPOSIT", className: "grow", children: "Deposit" }),
|
|
99
|
+
/* @__PURE__ */ e.jsx(s, { value: "WITHDRAWAL", className: "grow", children: "Withdrawal" }),
|
|
100
|
+
/* @__PURE__ */ e.jsx(z, {})
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e.jsx(m, { value: "DEPOSIT", className: "space-y-4xl", children: /* @__PURE__ */ e.jsx(A, {}) }),
|
|
103
|
+
/* @__PURE__ */ e.jsx(m, { value: "WITHDRAWAL", className: "space-y-4xl", children: /* @__PURE__ */ e.jsx(C, {}) })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
] })
|
|
108
|
+
] }) })
|
|
109
|
+
] })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
89
112
|
);
|
|
90
113
|
}
|
|
91
|
-
function
|
|
92
|
-
var
|
|
93
|
-
const
|
|
114
|
+
function P(o) {
|
|
115
|
+
var l;
|
|
116
|
+
const t = c(), a = d({
|
|
94
117
|
refetchInterval: 5e3
|
|
95
118
|
});
|
|
96
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ e.jsxs(
|
|
97
120
|
"button",
|
|
98
121
|
{
|
|
99
122
|
type: "button",
|
|
100
|
-
...
|
|
101
|
-
className:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
123
|
+
...o,
|
|
124
|
+
className: u("flex", o.className),
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ e.jsx("div", { className: "border-gray-200 flex h-11 items-center rounded-l-md border border-r-0 px-3.5 font-medium", children: n((l = a.data) == null ? void 0 : l.balance, {
|
|
127
|
+
currency: t.currency.code,
|
|
128
|
+
minDecimalPlaces: 2
|
|
129
|
+
}) }),
|
|
130
|
+
/* @__PURE__ */ e.jsxs("div", { className: "bg-gray-900 flex h-11 items-center gap-1.5 rounded-r-md px-3.5 font-semibold text-white", children: [
|
|
131
|
+
/* @__PURE__ */ e.jsx(p, { className: "size-5" }),
|
|
132
|
+
"Wallet"
|
|
133
|
+
] })
|
|
134
|
+
]
|
|
135
|
+
}
|
|
108
136
|
);
|
|
109
137
|
}
|
|
110
138
|
export {
|
|
111
|
-
|
|
139
|
+
Te as DepositWithdrawal
|
|
112
140
|
};
|
|
@@ -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"),q=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");const d=require("../../hooks/useControllableState.js");require("lodash-es");require("../../_virtual/index.cjs.js");require("../../hooks/useGlobalStore.js");require("../../hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const x=require("../../icons/CheckIcon.js"),h=require("../../images/QRPh.png.js"),m=require("../../images/gcash.png.js"),l=require("../../images/maya.png.js"),g=require("../../images/online-bank.png.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("@ark-ui/react");require("../../ui/Button/button.recipe.js");const a=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 j=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 v=require("./utils.js"),n=[{value:"GCASH",label:"GCash",image:m},{value:"MAYA_APP",label:"Maya App",image:l},{value:"MAYA",label:"Maya",image:l},{value:"QRPH",label:"QRPH",image:h},{value:"ONLINE_BANK",label:"Online Bank",image:g}];function R(i){var s;const t=(s=i.options)!=null&&s.length?n.filter(r=>{var u;return(u=i.options)==null?void 0:u.includes(r.value)}):n,[o,c]=d.useControllableState({value:i.value,defaultValue:i.defaultValue??t[0].value,onChange:i.onChange});return e.jsxRuntimeExports.jsxs("div",{className:i.className,children:[e.jsxRuntimeExports.jsx(j.Label,{asChild:!0,children:e.jsxRuntimeExports.jsx("div",{children:"Select your payment method"})}),e.jsxRuntimeExports.jsx(a.Group,{value:[o],onValueChange:r=>{const u=r.at(-1);u&&c(v.PaymentMethodDefinition.parse(u))},className:"grid grid-cols-2 gap-x-4 gap-y-3",children:t.map(r=>e.jsxRuntimeExports.jsxs(a.Root,{value:r.value,className:"border-gray-200 ui-checked:border-gray-900 ui-checked:outline-solid ui-checked:outline-gray-900 flex cursor-pointer rounded-xl border p-xl ui-checked:outline",children:[e.jsxRuntimeExports.jsx("div",{className:"grow",children:e.jsxRuntimeExports.jsx(q,{src:r.image,alt:"",width:200,height:40,className:"h-5 w-auto lg:h-8",draggable:!1})}),e.jsxRuntimeExports.jsx(a.Control,{className:"shrink-0",children:e.jsxRuntimeExports.jsx(a.Indicator,{asChild:!0,children:e.jsxRuntimeExports.jsx(x.CheckIcon,{})})}),e.jsxRuntimeExports.jsx(a.HiddenInput,{})]},r.value))})]})}exports.PaymentMethods=R;
|