@opexa/portal-components 0.0.889 → 0.0.890
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/hooks/useCreateAurixPayGCashDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateAurixPayGCashDepositMutation.js +82 -0
- package/dist/client/hooks/useCreateAurixPayGrabPayDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateAurixPayGrabPayDepositMutation.js +88 -0
- package/dist/client/hooks/useCreateAurixPayPayMayaDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateAurixPayPayMayaDepositMutation.js +88 -0
- package/dist/client/hooks/useCreateAurixPayQrphDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateAurixPayQrphDepositMutation.js +88 -0
- package/dist/components/DepositWithdrawal/Deposit/AiOGCashDeposit/AiOGCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AiOGrabPayDeposit/AiOGrabPayDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AiOPayMayaDeposit/AiOPayMayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AurixPayGCashDeposit/AurixPayGCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/{Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.js → Deposit/AurixPayGCashDeposit/AurixPayGCashDeposit.js} +90 -22
- package/dist/components/DepositWithdrawal/Deposit/AurixPayGrabPayDeposit/AurixPayGrabPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/{Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js → Deposit/AurixPayGrabPayDeposit/AurixPayGrabPayDeposit.js} +94 -24
- package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/{Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.js → Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js} +94 -24
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDeposit.js +12 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDepositContext.d.ts +25 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/AurixPayQRPHDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Confirmed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Confirmed.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Failed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Failed.js +13 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Form.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/{QRPHDeposit__legacy/QRPHDepositForm.js → AurixPayQRPHDeposit/Form.js} +17 -7
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/GeneratingQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/GeneratingQrCode.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/QrCodeGenerated.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/QrCodeGenerated.js +41 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.d.ts +17 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.js +117 -0
- package/dist/components/DepositWithdrawal/Deposit/Deposit.js +23 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QrCodeGenerated.js +37 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +6 -0
- package/dist/components/DepositWithdrawal/PaymentMethods.js +20 -0
- package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
- package/dist/components/DepositWithdrawal/utils.js +4 -0
- package/dist/components/ForgotPassword/ForgotPassword.lazy.d.ts +2 -2
- package/dist/components/ForgotPassword/ForgotPassword.lazy.js +14 -3
- package/dist/components/ForgotPassword/ForgotPasswordForm.d.ts +5 -1
- package/dist/components/ForgotPassword/ForgotPasswordForm.js +68 -33
- package/dist/components/SignUp/SignUpDefault/SignUpDefaultFormInternational.js +4 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.d.ts +1 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +3 -2
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.HappyBingo.d.ts +1 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.HappyBingo.js +54 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +2 -2
- package/dist/components/TransactionRecords/DepositRecordsTable.js +6 -21
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/schemas/forgotPasswordSchema.d.ts +8 -8
- package/dist/services/queries.d.ts +6 -2
- package/dist/services/queries.js +177 -1
- package/dist/services/wallet.d.ts +55 -0
- package/dist/services/wallet.js +44 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/utils/capitalize.d.ts +11 -0
- package/dist/utils/capitalize.js +48 -5
- package/dist/utils/countries/types.d.ts +1 -1
- package/dist/utils/downloadImage.d.ts +4 -0
- package/dist/utils/downloadImage.js +47 -0
- package/dist/utils/mutationKeys.d.ts +4 -0
- package/dist/utils/mutationKeys.js +16 -0
- package/package.json +1 -1
- package/dist/assets/providers/alize.png +0 -0
- package/dist/assets/providers/bigtime-gaming.png +0 -0
- package/dist/assets/providers/bng.png +0 -0
- package/dist/assets/providers/boongo.png +0 -0
- package/dist/assets/providers/btg.png +0 -0
- package/dist/assets/providers/cq9.png +0 -0
- package/dist/assets/providers/darwin.png +0 -0
- package/dist/assets/providers/digitain.png +0 -0
- package/dist/assets/providers/evolution.png +0 -0
- package/dist/assets/providers/fantasma-games.png +0 -0
- package/dist/assets/providers/fc.png +0 -0
- package/dist/assets/providers/fp.png +0 -0
- package/dist/assets/providers/habanero.png +0 -0
- package/dist/assets/providers/hacksaw.png +0 -0
- package/dist/assets/providers/jdb.png +0 -0
- package/dist/assets/providers/jili.png +0 -0
- package/dist/assets/providers/leap.png +0 -0
- package/dist/assets/providers/live-22-metaverse.png +0 -0
- package/dist/assets/providers/netent.png +0 -0
- package/dist/assets/providers/no-limit.png +0 -0
- package/dist/assets/providers/pg.png +0 -0
- package/dist/assets/providers/pgsoft.png +0 -0
- package/dist/assets/providers/pragmatic-play.png +0 -0
- package/dist/assets/providers/realtime-gaming.png +0 -0
- package/dist/assets/providers/redtiger.png +0 -0
- package/dist/assets/providers/rtg.png +0 -0
- package/dist/assets/providers/sagaming.png +0 -0
- package/dist/components/Banner/Banner.client.d.ts +0 -12
- package/dist/components/Banner/Banner.client.js +0 -49
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +0 -11
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +0 -55
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +0 -116
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.js +0 -85
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.js +0 -171
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.d.ts +0 -8
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.js +0 -33
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.js +0 -120
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.js +0 -163
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.js +0 -165
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.js +0 -186
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.js +0 -157
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.js +0 -163
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.js +0 -166
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.js +0 -19
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.js +0 -115
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.js +0 -81
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.js +0 -180
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.js +0 -10
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.js +0 -99
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +0 -25
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.js +0 -17
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.d.ts +0 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.js +0 -116
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.d.ts +0 -3
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.js +0 -69
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +0 -13
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.js +0 -85
- package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
- package/dist/components/DigitainLauncher/Loading.js +0 -5
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +0 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +0 -184
- package/dist/components/KYC/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/BasicInformation.js +0 -101
- package/dist/components/KYC/IdentityVerification.d.ts +0 -1
- package/dist/components/KYC/IdentityVerification.js +0 -120
- package/dist/components/KYC/Indicator.d.ts +0 -1
- package/dist/components/KYC/Indicator.js +0 -8
- package/dist/components/KYC/KYC.lazy.d.ts +0 -6
- package/dist/components/KYC/KYC.lazy.js +0 -45
- package/dist/components/KYC/KYCContext.d.ts +0 -6
- package/dist/components/KYC/KYCContext.js +0 -2
- package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/KYCDefault/BasicInformation.js +0 -101
- package/dist/components/KYC/KYCVerificationStatus.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.js +0 -10
- package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +0 -1
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +0 -36
- package/dist/components/KYC/PersonalInformation.d.ts +0 -1
- package/dist/components/KYC/PersonalInformation.js +0 -122
- package/dist/components/KYC/useKYC.d.ts +0 -25
- package/dist/components/KYC/useKYC.js +0 -38
- package/dist/components/KYCNotRequired/KYCNotRequired.d.ts +0 -0
- package/dist/components/KYCNotRequired/KYCNotRequired.js +0 -1
- package/dist/components/PortalProvider/AndroidOnlyComponents.d.ts +0 -1
- package/dist/components/PortalProvider/AndroidOnlyComponents.js +0 -12
- package/dist/components/PortalProvider/CXDTokenObserver.d.ts +0 -1
- package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +0 -1
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +0 -29
- package/dist/components/Quests/MultiWageringQuest.d.ts +0 -1
- package/dist/components/Quests/MultiWageringQuest.js +0 -111
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +0 -1
- package/dist/components/SessionWatcher/SessionWatcher.js +0 -20
- package/dist/components/SessionWatcher/index.d.ts +0 -1
- package/dist/components/SessionWatcher/index.js +0 -1
- package/dist/components/SignIn/utils.d.ts +0 -8
- package/dist/components/SignIn/utils.js +0 -26
- package/dist/constants/Branches.d.ts +0 -2
- package/dist/constants/Branches.js +0 -42
- package/dist/images/game-providers/ALPHACHINKO.png +0 -0
- package/dist/images/responsible-gaming-yellow.png +0 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
- package/dist/utils/getLocaleInfo.d.ts +0 -79
- package/dist/utils/getLocaleInfo.js +0 -175
- /package/dist/client/hooks/{useAiOGCashDepositMutation.d.ts → useCreateAiOGCashDepositMutation.d.ts} +0 -0
- /package/dist/client/hooks/{useAiOGCashDepositMutation.js → useCreateAiOGCashDepositMutation.js} +0 -0
- /package/dist/client/hooks/{useAiOGrabPayDepositMutation.d.ts → useCreateAiOGrabPayDepositMutation.d.ts} +0 -0
- /package/dist/client/hooks/{useAiOGrabPayDepositMutation.js → useCreateAiOGrabPayDepositMutation.js} +0 -0
- /package/dist/client/hooks/{useAiOPalawanPayDepositMutation.d.ts → useCreateAiOPalawanPayDepositMutation.d.ts} +0 -0
- /package/dist/client/hooks/{useAiOPalawanPayDepositMutation.js → useCreateAiOPalawanPayDepositMutation.js} +0 -0
- /package/dist/client/hooks/{useAiOPayMayaDepositMutation.d.ts → useCreateAiOPayMayaDepositMutation.d.ts} +0 -0
- /package/dist/client/hooks/{useAiOPayMayaDepositMutation.js → useCreateAiOPayMayaDepositMutation.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Spinner02Icon } from '../../../../icons/Spinner02Icon.js';
|
|
3
|
+
import { XIcon } from '../../../../icons/XIcon.js';
|
|
4
|
+
import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
|
|
5
|
+
import { Portal } from '../../../../ui/Portal/index.js';
|
|
6
|
+
import { useAurixPayQRPHDepositContext } from './AurixPayQRPHDepositContext.js';
|
|
7
|
+
export function GeneratingQrCode() {
|
|
8
|
+
const context = useAurixPayQRPHDepositContext();
|
|
9
|
+
return (_jsx(AlertDialog.Root, { open: context.status === 'generating-qr-code', lazyMount: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+2)]" }), _jsx(AlertDialog.Positioner, { className: "!z-[calc(var(--z-dialog)+3)]", children: _jsxs(AlertDialog.Content, { children: [_jsx(AlertDialog.CloseTrigger, { disabled: true, children: _jsx(XIcon, {}) }), _jsx(Spinner02Icon, { className: "mx-auto size-12 text-text-featured-icon-light-brand" }), _jsx(AlertDialog.Title, { className: "mt-xl", children: "Generating Single Use QR Code" }), _jsxs(AlertDialog.Description, { className: "mt-xs px-3", children: [_jsx("span", { className: "block", 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." }), _jsxs("span", { className: "mt-3 block", children: ["Please wait ", _jsx("span", { className: "font-bold", children: "60" }), " seconds..."] })] })] }) })] }) }));
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QrCodeGenerated(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import { useBoolean } from 'usehooks-ts';
|
|
4
|
+
import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
|
|
5
|
+
import { ArrowCircleDownIcon } from '../../../../icons/ArrowCircleDownIcon.js';
|
|
6
|
+
import { QrCode02Icon } from '../../../../icons/QrCode02Icon.js';
|
|
7
|
+
import { XIcon } from '../../../../icons/XIcon.js';
|
|
8
|
+
import qrphIcon from '../../../../images/qrph-icon.png';
|
|
9
|
+
import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
|
|
10
|
+
import { Button } from '../../../../ui/Button/index.js';
|
|
11
|
+
import { Portal } from '../../../../ui/Portal/index.js';
|
|
12
|
+
import { QrCode } from '../../../../ui/QrCode/index.js';
|
|
13
|
+
import { useAurixPayQRPHDepositContext } from './AurixPayQRPHDepositContext.js';
|
|
14
|
+
export function QrCodeGenerated() {
|
|
15
|
+
const context = useAurixPayQRPHDepositContext();
|
|
16
|
+
const confirm = useBoolean(false);
|
|
17
|
+
return (_jsx(AlertDialog.Root, { open: context.status === 'qr-code-generated', lazyMount: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+2)]" }), _jsx(AlertDialog.Positioner, { className: "!z-[calc(var(--z-dialog)+3)]", children: _jsxs(AlertDialog.Content, { children: [_jsx("button", { type: "button", className: "absolute top-4 right-4 icon:size-6 p-md text-text-quinary disabled:cursor-not-allowed disabled:opacity-50", onClick: () => {
|
|
18
|
+
if (!confirm.value) {
|
|
19
|
+
confirm.setTrue();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
confirm.setFalse();
|
|
23
|
+
}, children: _jsx(XIcon, {}) }), !confirm.value ? (_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary", children: _jsx(QrCode02Icon, { className: "size-6 text-text-featured-icon-light-brand" }) })) : (_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-error-secondary", children: _jsx(AlertCircleIcon, { className: "size-6 text-text-featured-icon-light-error" }) })), _jsx(AlertDialog.Title, { className: "mt-xl", dangerouslySetInnerHTML: {
|
|
24
|
+
__html: confirm.value
|
|
25
|
+
? 'Are you sure you want to close this window?'
|
|
26
|
+
: 'Single Use QR Code',
|
|
27
|
+
} }), _jsx(AlertDialog.Description, { className: "mt-xs px-3", children: confirm.value
|
|
28
|
+
? 'Closing this window will cancel your current deposit. Do you want to continue?'
|
|
29
|
+
: 'Scan the QR code below with your banking app, or upload it to complete your deposit.' }), !confirm.value && (_jsx("div", { className: "mx-auto mt-xl w-[14.125rem] rounded-xl bg-bg-primary-alt p-6", children: _jsxs(QrCode.Root, { value: context.deposit?.qrCode ?? '', encoding: {
|
|
30
|
+
ecc: 'H',
|
|
31
|
+
boostEcc: true,
|
|
32
|
+
}, children: [_jsxs("div", { className: "relative", children: [_jsx(QrCode.Frame, { className: "mx-auto size-[10rem] rounded-[0.25rem] border border-border-primary bg-white", children: _jsx(QrCode.Pattern, {}) }), _jsx(QrCode.Overlay, { className: "bg-white p-0.5", children: _jsx(Image, { src: qrphIcon, alt: "", className: "size-8", width: 40, height: 40 }) })] }), _jsxs(QrCode.DownloadTrigger, { type: "button", fileName: `QRPH-${Date.now()}.jpg`, mimeType: "image/jpeg", className: "mx-auto mt-5 flex w-fit items-center gap-1 font-semibold text-button-tertiary-fg", children: [_jsx(ArrowCircleDownIcon, { className: "size-5" }), "Download QR Code"] })] }) })), confirm.value && (_jsxs("div", { className: "mt-4xl flex gap-lg", children: [_jsx(Button, { variant: "outline", onClick: confirm.setFalse, children: "Go back" }), _jsx(Button, { onClick: () => {
|
|
33
|
+
context.reset();
|
|
34
|
+
setTimeout(() => {
|
|
35
|
+
confirm.setFalse();
|
|
36
|
+
}, 2);
|
|
37
|
+
}, children: "Continue" })] })), !confirm.value && _jsx(Instruction, {})] }) })] }) }));
|
|
38
|
+
}
|
|
39
|
+
function Instruction() {
|
|
40
|
+
return (_jsxs(AlertDialog.Root, { lazyMount: true, closeOnEscape: false, closeOnInteractOutside: false, children: [_jsxs("p", { className: "mt-lg text-center text-text-tertiary-600 text-xs", children: ["Need help using the QR Code?", ' ', _jsx(AlertDialog.Trigger, { className: "text-text-brand", children: "See instructions" })] }), _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(AlertDialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)]", children: _jsxs(AlertDialog.Content, { children: [_jsx(AlertDialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary", children: _jsx(QrCode02Icon, { className: "size-6 text-text-featured-icon-light-brand" }) }), _jsx(AlertDialog.Title, { className: "mt-xl", children: "How to Use the QR Code for Payment" }), _jsx(AlertDialog.Description, { className: "mt-xl px-3", children: "Follow these simple steps to complete your\u00A0transaction:" }), _jsx("div", { className: "mt-4 text-sm text-text-tertiary-600", children: _jsxs("ol", { className: "list-decimal pl-4", children: [_jsx("li", { className: "marker:font-mono marker:text-sm", children: "Open your preferred banking or EMI mobile app and select 'Transfer Money' or 'Pay via QR.'" }), _jsx("li", { className: "marker:font-mono marker:text-sm", children: "Scan or upload the generated QR Ph code. If prompted by the app, enter the amount to be sent." }), _jsx("li", { className: "marker:font-mono marker:text-sm", children: "Proceed with the transfer or payment." })] }) })] }) })] })] }));
|
|
41
|
+
}
|
package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Deposit } from '../../../../types';
|
|
2
|
+
export type UseAurixPayQRPHDepositReturn = ReturnType<typeof useAurixPayQRPHDeposit>;
|
|
3
|
+
export interface GenerateQRCodeInput {
|
|
4
|
+
amount: string;
|
|
5
|
+
promo?: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function useAurixPayQRPHDeposit(): {
|
|
8
|
+
status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
|
|
9
|
+
deposit: Deposit | null;
|
|
10
|
+
errorMessage: {
|
|
11
|
+
name: string;
|
|
12
|
+
message: string;
|
|
13
|
+
} | null;
|
|
14
|
+
generateQRCode: (input: GenerateQRCodeInput) => Promise<void>;
|
|
15
|
+
regenerateQRCode: () => Promise<void>;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
};
|
package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/useAurixPayQRPHDeposit.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import invariant from 'tiny-invariant';
|
|
4
|
+
import { useShallow } from 'zustand/shallow';
|
|
5
|
+
import { useCreateAurixPayQrphDepositMutation } from '../../../../client/hooks/useCreateAurixPayQrphDepositMutation.js';
|
|
6
|
+
import { useDepositQuery } from '../../../../client/hooks/useDepositQuery.js';
|
|
7
|
+
import { useGlobalStore } from '../../../../client/hooks/useGlobalStore.js';
|
|
8
|
+
import { useMemberVerificationQuery } from '../../../../client/hooks/useMemberVerificationQuery.js';
|
|
9
|
+
import { ObjectType } from '../../../../services/ObjectType.js';
|
|
10
|
+
import { useDepositWithdrawalPropsContext } from '../../DepositWithdrawalContext.js';
|
|
11
|
+
export function useAurixPayQRPHDeposit() {
|
|
12
|
+
const depositWithdrawalProps = useDepositWithdrawalPropsContext();
|
|
13
|
+
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
14
|
+
kycVerificationStatus: ctx.kycVerificationStatus,
|
|
15
|
+
})));
|
|
16
|
+
const inputRef = useRef(null);
|
|
17
|
+
const [deposit, setDeposit] = useState(null);
|
|
18
|
+
const [status, setStatus] = useState('idle');
|
|
19
|
+
const [errorMessage, setErrorMessage] = useState(null);
|
|
20
|
+
const verificationQuery = useMemberVerificationQuery();
|
|
21
|
+
const verificationStatus = verificationQuery.data?.status ?? 'UNVERIFIED';
|
|
22
|
+
const mutation = useCreateAurixPayQrphDepositMutation({
|
|
23
|
+
onMutate() {
|
|
24
|
+
setStatus('generating-qr-code');
|
|
25
|
+
},
|
|
26
|
+
onSuccess(data) {
|
|
27
|
+
invariant(data.qrCode);
|
|
28
|
+
setStatus('qr-code-generated');
|
|
29
|
+
setDeposit(data);
|
|
30
|
+
},
|
|
31
|
+
onError(data) {
|
|
32
|
+
setStatus('failed');
|
|
33
|
+
setErrorMessage({
|
|
34
|
+
name: data.name,
|
|
35
|
+
message: data.message,
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const query = useDepositQuery(deposit?.id, {
|
|
40
|
+
enabled: !!deposit && status === 'qr-code-generated',
|
|
41
|
+
refetchInterval: (ctx) => {
|
|
42
|
+
if (ctx.state.data?.status === 'APPROVED' ||
|
|
43
|
+
ctx.state.data?.status === 'CONFIRMED' ||
|
|
44
|
+
ctx.state.data?.status === 'CANCELLED' ||
|
|
45
|
+
ctx.state.data?.status === 'REJECTED' ||
|
|
46
|
+
ctx.state.data?.status === 'FAILED') {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return 2000;
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (query.data?.status === 'APPROVED' ||
|
|
54
|
+
query.data?.status === 'CONFIRMED') {
|
|
55
|
+
setStatus('confirmed');
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (query.data?.status === 'CANCELLED' ||
|
|
59
|
+
query.data?.status === 'REJECTED' ||
|
|
60
|
+
query.data?.status === 'FAILED') {
|
|
61
|
+
setStatus('failed');
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}, [query.data?.status]);
|
|
65
|
+
const redirectUrl = (() => {
|
|
66
|
+
const path = depositWithdrawalProps.depositSuccessPageUrl ?? '/deposits/:id/status';
|
|
67
|
+
const origin = window.location.origin.includes('localhost')
|
|
68
|
+
? 'https://uat.powerplay.ph/deposit-success' +
|
|
69
|
+
depositWithdrawalProps.depositSuccessPageUrl
|
|
70
|
+
: window.location.origin;
|
|
71
|
+
return `${origin}${path}`;
|
|
72
|
+
})();
|
|
73
|
+
const generateQRCode = async (input) => {
|
|
74
|
+
if (!depositWithdrawalProps.bypassDepositKycCheck &&
|
|
75
|
+
(verificationStatus === 'PENDING' ||
|
|
76
|
+
verificationStatus === 'UNVERIFIED' ||
|
|
77
|
+
verificationStatus === 'REJECTED' ||
|
|
78
|
+
verificationStatus === 'CREATED')) {
|
|
79
|
+
globalStore.kycVerificationStatus.setOpen(true);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const id = ObjectId.generate(ObjectType.Deposit).toString();
|
|
83
|
+
inputRef.current = input;
|
|
84
|
+
mutation.mutate({
|
|
85
|
+
id,
|
|
86
|
+
amount: input.amount,
|
|
87
|
+
promo: input.promo ?? undefined,
|
|
88
|
+
redirectUrl: redirectUrl.replace(':id', id),
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
const regenerateQRCode = async () => {
|
|
92
|
+
invariant(inputRef.current);
|
|
93
|
+
mutation.reset();
|
|
94
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
95
|
+
const id = ObjectId.generate(ObjectType.Deposit).toString();
|
|
96
|
+
mutation.mutate({
|
|
97
|
+
id,
|
|
98
|
+
amount: inputRef.current.amount,
|
|
99
|
+
promo: inputRef.current.promo ?? undefined,
|
|
100
|
+
redirectUrl: redirectUrl.replace(':id', id),
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const reset = () => {
|
|
104
|
+
setStatus('idle');
|
|
105
|
+
setDeposit(null);
|
|
106
|
+
setErrorMessage(null);
|
|
107
|
+
inputRef.current = null;
|
|
108
|
+
};
|
|
109
|
+
return {
|
|
110
|
+
status,
|
|
111
|
+
deposit,
|
|
112
|
+
errorMessage,
|
|
113
|
+
generateQRCode,
|
|
114
|
+
regenerateQRCode,
|
|
115
|
+
reset,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -8,6 +8,10 @@ import { AlertCircleIcon } from '../../../icons/AlertCircleIcon.js';
|
|
|
8
8
|
import { SpinnerIcon } from '../../../icons/SpinnerIcon.js';
|
|
9
9
|
import { onMobileDevice } from '../../../utils/onMobileDevice.js';
|
|
10
10
|
import { PaymentMethods } from '../PaymentMethods.js';
|
|
11
|
+
import { AurixPayGCashDeposit } from './AurixPayGCashDeposit/AurixPayGCashDeposit.js';
|
|
12
|
+
import { AurixPayPayMayaDeposit } from './AurixPayGrabPayDeposit/AurixPayGrabPayDeposit.js';
|
|
13
|
+
import { AurixPayGrabPayDeposit } from './AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js';
|
|
14
|
+
import { AurixPayQRPHDeposit } from './AurixPayQRPHDeposit/AurixPayQRPHDeposit.js';
|
|
11
15
|
const QRPHDeposit = lazy(() => import('./QRPHDeposit/QRPHDeposit.js').then((m) => ({ default: m.QRPHDeposit })));
|
|
12
16
|
const GCashDeposit = lazy(() => import('./GCashDeposit/GCashDeposit.js').then((m) => ({
|
|
13
17
|
default: m.GCashDeposit,
|
|
@@ -107,6 +111,24 @@ export function Deposit() {
|
|
|
107
111
|
enabled: paymentSettings?.mayaWebpayDepositGatewaySettings?.[enabledKey] &&
|
|
108
112
|
featureFlag.enabled,
|
|
109
113
|
},
|
|
114
|
+
{
|
|
115
|
+
method: 'AURIX_PAY_GCASH',
|
|
116
|
+
enabled: paymentSettings?.aurixPayGCashDepositGatewaySettings?.[enabledKey] &&
|
|
117
|
+
featureFlag.enabled,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
method: 'AURIX_PAY_GRAB_PAY',
|
|
121
|
+
enabled: paymentSettings?.aurixPayGrabPayDepositGatewaySettings?.[enabledKey] && featureFlag.enabled,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
method: 'AURIX_PAY_PAYMAYA',
|
|
125
|
+
enabled: paymentSettings?.aurixPayPayMayaDepositGatewaySettings?.[enabledKey] && featureFlag.enabled,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
method: 'AURIX_PAY_QRPH',
|
|
129
|
+
enabled: paymentSettings?.aurixPayQrphDepositGatewaySettings?.[enabledKey] &&
|
|
130
|
+
featureFlag.enabled,
|
|
131
|
+
},
|
|
110
132
|
];
|
|
111
133
|
paymentMethods.forEach((o) => {
|
|
112
134
|
if (o.enabled) {
|
|
@@ -135,7 +157,7 @@ export function Deposit() {
|
|
|
135
157
|
if (enabledPaymentMethods.length <= 0) {
|
|
136
158
|
return _jsx(NoAvailablePaymentMethods, {});
|
|
137
159
|
}
|
|
138
|
-
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: handlePaymentMethodChange, options: enabledPaymentMethods }), _jsxs(Suspense, { fallback: _jsx(SpinnerIcon, { className: "mx-auto size-6" }), children: [paymentMethod === 'QRPH' && _jsx(QRPHDeposit, {}), paymentMethod === 'GCASH' && _jsx(GCashDeposit, {}), paymentMethod === 'MAYA' && _jsx(MayaDeposit, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppDeposit, {}), paymentMethod === 'ONLINE_BANK' && _jsx(OnlineBankDeposit, {}), paymentMethod === 'LIBANGAN_PAY_IN' && _jsx(LibanganDeposit, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayDeposit, {}), paymentMethod === 'AIO_GCASH' && _jsx(AiOGCashDeposit, {}), paymentMethod === 'AIO_PAY_MAYA' && _jsx(AiOPayMayaDeposit, {}), paymentMethod === 'AIO_GRAB_PAY' && _jsx(AiOGrabPayDeposit, {}), paymentMethod === 'AIO_PALAWAN_PAY' && _jsx(AiOPalawanPayDeposit, {}), paymentMethod === 'GCASH_WEBPAY' && _jsx(GCashWebpayDeposit, {}), paymentMethod === 'MAYA_WEBPAY' && _jsx(MayaWebpayDeposit, {})] })] }));
|
|
160
|
+
return (_jsxs(_Fragment, { children: [_jsx(PaymentMethods, { value: paymentMethod, onChange: handlePaymentMethodChange, options: enabledPaymentMethods }), _jsxs(Suspense, { fallback: _jsx(SpinnerIcon, { className: "mx-auto size-6" }), children: [paymentMethod === 'QRPH' && _jsx(QRPHDeposit, {}), paymentMethod === 'GCASH' && _jsx(GCashDeposit, {}), paymentMethod === 'MAYA' && _jsx(MayaDeposit, {}), paymentMethod === 'MAYA_APP' && _jsx(MayaAppDeposit, {}), paymentMethod === 'ONLINE_BANK' && _jsx(OnlineBankDeposit, {}), paymentMethod === 'LIBANGAN_PAY_IN' && _jsx(LibanganDeposit, {}), paymentMethod === 'PISO_PAY' && _jsx(PisoPayDeposit, {}), paymentMethod === 'AIO_GCASH' && _jsx(AiOGCashDeposit, {}), paymentMethod === 'AIO_PAY_MAYA' && _jsx(AiOPayMayaDeposit, {}), paymentMethod === 'AIO_GRAB_PAY' && _jsx(AiOGrabPayDeposit, {}), paymentMethod === 'AIO_PALAWAN_PAY' && _jsx(AiOPalawanPayDeposit, {}), paymentMethod === 'GCASH_WEBPAY' && _jsx(GCashWebpayDeposit, {}), paymentMethod === 'MAYA_WEBPAY' && _jsx(MayaWebpayDeposit, {}), paymentMethod === 'AURIX_PAY_GCASH' && _jsx(AurixPayGCashDeposit, {}), paymentMethod === 'AURIX_PAY_PAYMAYA' && _jsx(AurixPayPayMayaDeposit, {}), paymentMethod === 'AURIX_PAY_GRAB_PAY' && _jsx(AurixPayGrabPayDeposit, {}), paymentMethod === 'AURIX_PAY_QRPH' && _jsx(AurixPayQRPHDeposit, {})] })] }));
|
|
139
161
|
}
|
|
140
162
|
function MayaSessionSessionExpired() {
|
|
141
163
|
return (_jsxs("div", { className: "py-xl", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-warning-secondary", children: _jsx(AlertCircleIcon, { className: "size-6 text-text-featured-icon-light-warning" }) }), _jsx("h2", { className: "mt-lg text-center font-semibold text-lg", children: "Session Expired" }), _jsx("p", { className: "mx-auto mt-xs max-w-[25rem] text-center text-sm text-text-tertiary-600", children: "Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app." })] }));
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const OnlineBankDepositContext: (props: {
|
|
2
2
|
value: {
|
|
3
3
|
view: "form" | "vca";
|
|
4
|
-
status: "waiting" | "
|
|
4
|
+
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
5
5
|
verify: () => void;
|
|
6
6
|
reset: () => void;
|
|
7
7
|
deposit: import("../../../../types").Deposit | null;
|
|
@@ -14,7 +14,7 @@ export declare const OnlineBankDepositContext: (props: {
|
|
|
14
14
|
children?: import("react").ReactNode | undefined;
|
|
15
15
|
}) => React.ReactNode, useOnlineBankDepositContext: () => {
|
|
16
16
|
view: "form" | "vca";
|
|
17
|
-
status: "waiting" | "
|
|
17
|
+
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
18
18
|
verify: () => void;
|
|
19
19
|
reset: () => void;
|
|
20
20
|
deposit: import("../../../../types").Deposit | null;
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Deposit } from '../../../../types';
|
|
|
2
2
|
export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
|
|
3
3
|
export declare function useOnlineBankDeposit(): {
|
|
4
4
|
view: "form" | "vca";
|
|
5
|
-
status: "waiting" | "
|
|
5
|
+
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
deposit: Deposit | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const QRPHDepositContext: (props: {
|
|
2
2
|
value: {
|
|
3
|
-
status: "idle" | "generating-qr-code" | "qr-code-generated"
|
|
3
|
+
status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
|
|
4
4
|
deposit: import("../../../../types").Deposit | null;
|
|
5
5
|
errorMessage: {
|
|
6
6
|
name: string;
|
|
@@ -13,7 +13,7 @@ export declare const QRPHDepositContext: (props: {
|
|
|
13
13
|
} & {
|
|
14
14
|
children?: import("react").ReactNode | undefined;
|
|
15
15
|
}) => React.ReactNode, useQRPHDepositContext: () => {
|
|
16
|
-
status: "idle" | "generating-qr-code" | "qr-code-generated"
|
|
16
|
+
status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
|
|
17
17
|
deposit: import("../../../../types").Deposit | null;
|
|
18
18
|
errorMessage: {
|
|
19
19
|
name: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Capacitor } from '@capacitor/core';
|
|
2
3
|
import Image from 'next/image';
|
|
4
|
+
import { useState } from 'react';
|
|
3
5
|
import { useBoolean } from 'usehooks-ts';
|
|
6
|
+
import { toaster } from '../../../../client/utils/toaster.js';
|
|
4
7
|
import { AlertCircleIcon } from '../../../../icons/AlertCircleIcon.js';
|
|
5
8
|
import { ArrowCircleDownIcon } from '../../../../icons/ArrowCircleDownIcon.js';
|
|
6
9
|
import { QrCode02Icon } from '../../../../icons/QrCode02Icon.js';
|
|
@@ -10,10 +13,13 @@ import { AlertDialog } from '../../../../ui/AlertDialog/index.js';
|
|
|
10
13
|
import { Button } from '../../../../ui/Button/index.js';
|
|
11
14
|
import { Portal } from '../../../../ui/Portal/index.js';
|
|
12
15
|
import { QrCode } from '../../../../ui/QrCode/index.js';
|
|
16
|
+
import { downloadImage } from '../../../../utils/downloadImage.js';
|
|
13
17
|
import { useQRPHDepositContext } from './QRPHDepositContext.js';
|
|
14
18
|
export function QrCodeGenerated() {
|
|
15
19
|
const context = useQRPHDepositContext();
|
|
16
20
|
const confirm = useBoolean(false);
|
|
21
|
+
const [isDownloading, setIsDownloading] = useState(false);
|
|
22
|
+
const isNative = Capacitor.isNativePlatform();
|
|
17
23
|
return (_jsx(AlertDialog.Root, { open: context.status === 'qr-code-generated', lazyMount: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+2)]" }), _jsx(AlertDialog.Positioner, { className: "!z-[calc(var(--z-dialog)+3)]", children: _jsxs(AlertDialog.Content, { children: [_jsx("button", { type: "button", className: "absolute top-4 right-4 icon:size-6 p-md text-text-quinary disabled:cursor-not-allowed disabled:opacity-50", onClick: () => {
|
|
18
24
|
if (!confirm.value) {
|
|
19
25
|
confirm.setTrue();
|
|
@@ -29,7 +35,37 @@ export function QrCodeGenerated() {
|
|
|
29
35
|
: 'Scan the QR code below with your banking app, or upload it to complete your deposit.' }), !confirm.value && (_jsx("div", { className: "mx-auto mt-xl w-[14.125rem] rounded-xl bg-bg-primary-alt p-6", children: _jsxs(QrCode.Root, { value: context.deposit?.qrCode ?? '', encoding: {
|
|
30
36
|
ecc: 'H',
|
|
31
37
|
boostEcc: true,
|
|
32
|
-
}, children: [_jsxs("div", { className: "relative", children: [_jsx(QrCode.Frame, { className: "mx-auto size-[10rem] rounded-[0.25rem] border border-border-primary bg-white", children: _jsx(QrCode.Pattern, {}) }), _jsx(QrCode.Overlay, { className: "bg-white p-0.5", children: _jsx(Image, { src: qrphIcon, alt: "", className: "size-8", width: 40, height: 40 }) })] }),
|
|
38
|
+
}, children: [_jsxs("div", { className: "relative", children: [_jsx(QrCode.Frame, { className: "mx-auto size-[10rem] rounded-[0.25rem] border border-border-primary bg-white", children: _jsx(QrCode.Pattern, {}) }), _jsx(QrCode.Overlay, { className: "bg-white p-0.5", children: _jsx(Image, { src: qrphIcon, alt: "", className: "size-8", width: 40, height: 40 }) })] }), isNative ? (_jsx(QrCode.Context, { children: (qrCode) => (_jsxs("button", { type: "button", disabled: isDownloading, onClick: async () => {
|
|
39
|
+
try {
|
|
40
|
+
setIsDownloading(true);
|
|
41
|
+
const dataUrl = await qrCode.getDataUrl('image/jpeg');
|
|
42
|
+
const result = await downloadImage(dataUrl, `QRPH-${Date.now()}.jpg`);
|
|
43
|
+
if (result.success) {
|
|
44
|
+
toaster.success({
|
|
45
|
+
title: 'Success',
|
|
46
|
+
description: result.message,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
toaster.error({
|
|
51
|
+
title: 'Error',
|
|
52
|
+
description: result.message,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
console.error('Failed to download QR code:', error);
|
|
58
|
+
toaster.error({
|
|
59
|
+
title: 'Error',
|
|
60
|
+
description: 'An unexpected error occurred while downloading the QR code.',
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
finally {
|
|
64
|
+
setIsDownloading(false);
|
|
65
|
+
}
|
|
66
|
+
}, className: "mx-auto mt-5 flex w-fit items-center gap-1 font-semibold text-button-tertiary-fg disabled:cursor-not-allowed disabled:opacity-50", children: [_jsx(ArrowCircleDownIcon, { className: "size-5" }), isDownloading
|
|
67
|
+
? 'Downloading...'
|
|
68
|
+
: 'Download QR Code'] })) })) : (_jsxs(QrCode.DownloadTrigger, { type: "button", fileName: `QRPH-${Date.now()}.jpg`, mimeType: "image/jpeg", className: "mx-auto mt-5 flex w-fit items-center gap-1 font-semibold text-button-tertiary-fg", children: [_jsx(ArrowCircleDownIcon, { className: "size-5" }), "Download QR Code"] }))] }) })), confirm.value && (_jsxs("div", { className: "mt-4xl flex gap-lg", children: [_jsx(Button, { variant: "outline", onClick: confirm.setFalse, children: "Go back" }), _jsx(Button, { onClick: () => {
|
|
33
69
|
context.reset();
|
|
34
70
|
setTimeout(() => {
|
|
35
71
|
confirm.setFalse();
|
|
@@ -5,7 +5,7 @@ export interface GenerateQRCodeInput {
|
|
|
5
5
|
promo?: string | null;
|
|
6
6
|
}
|
|
7
7
|
export declare function useQRPHDeposit(): {
|
|
8
|
-
status: "idle" | "generating-qr-code" | "qr-code-generated"
|
|
8
|
+
status: "idle" | "confirmed" | "failed" | "generating-qr-code" | "qr-code-generated";
|
|
9
9
|
deposit: Deposit | null;
|
|
10
10
|
errorMessage: {
|
|
11
11
|
name: string;
|
|
@@ -11,5 +11,11 @@ export interface DepositWithdrawalProps {
|
|
|
11
11
|
hasPrivacyPolicyAndTermsOfUse?: boolean;
|
|
12
12
|
bypassDomains?: BypassDomainConfig[];
|
|
13
13
|
bypassDepositKycCheck?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @default "/deposits/<id>/status"
|
|
16
|
+
* @example
|
|
17
|
+
* "/hello/:id/world"
|
|
18
|
+
*/
|
|
19
|
+
depositSuccessPageUrl?: string;
|
|
14
20
|
}
|
|
15
21
|
export declare function DepositWithdrawal(props: DepositWithdrawalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -107,6 +107,26 @@ const OPTIONS = [
|
|
|
107
107
|
label: 'Maya Webpay',
|
|
108
108
|
image: maya,
|
|
109
109
|
},
|
|
110
|
+
{
|
|
111
|
+
value: 'AURIX_PAY_GCASH',
|
|
112
|
+
label: 'GCash',
|
|
113
|
+
image: gcash,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
value: 'AURIX_PAY_GRAB_PAY',
|
|
117
|
+
label: 'GrabPay',
|
|
118
|
+
image: grabPay,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
value: 'AURIX_PAY_PAYMAYA',
|
|
122
|
+
label: 'Maya',
|
|
123
|
+
image: maya,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
value: 'AURIX_PAY_QRPH',
|
|
127
|
+
label: 'QRPH',
|
|
128
|
+
image: qrph,
|
|
129
|
+
},
|
|
110
130
|
];
|
|
111
131
|
export function PaymentMethods(props) {
|
|
112
132
|
const options = useMemo(() => props.options?.length
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { KnownDepositError, KnownWithdrawalError, WithdrawalError } from '../../types';
|
|
3
|
-
export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "GCASH_STANDARD_CASH_IN", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN_PAY_IN", "VENTAJA_DISBURSEMENT", "PISO_PAY", "AIO_GCASH", "AIO_PAY_MAYA", "AIO_GRAB_PAY", "AIO_PALAWAN_PAY", "GCASH_WEBPAY", "MAYA_WEBPAY", "INSTAPAY_GCASH", "INSTAPAY_PAYMAYA"]>;
|
|
3
|
+
export declare const PaymentMethodDefinition: z.ZodEnum<["GCASH", "GCASH_STANDARD_CASH_IN", "MAYA_APP", "MAYA", "ONLINE_BANK", "QRPH", "INSTAPAY", "LIBANGAN_PAY_IN", "VENTAJA_DISBURSEMENT", "PISO_PAY", "AIO_GCASH", "AIO_PAY_MAYA", "AIO_GRAB_PAY", "AIO_PALAWAN_PAY", "GCASH_WEBPAY", "MAYA_WEBPAY", "INSTAPAY_GCASH", "INSTAPAY_PAYMAYA", "AURIX_PAY_GCASH", "AURIX_PAY_PAYMAYA", "AURIX_PAY_GRAB_PAY", "AURIX_PAY_QRPH"]>;
|
|
4
4
|
export type PaymentMethod = z.infer<typeof PaymentMethodDefinition>;
|
|
5
5
|
export type DepositWithdrawalErrors = KnownDepositError | KnownWithdrawalError | WithdrawalError | string;
|
|
6
6
|
export declare function explainError(error?: DepositWithdrawalErrors): string;
|
|
@@ -18,6 +18,10 @@ export const PaymentMethodDefinition = z.enum([
|
|
|
18
18
|
'MAYA_WEBPAY',
|
|
19
19
|
'INSTAPAY_GCASH',
|
|
20
20
|
'INSTAPAY_PAYMAYA',
|
|
21
|
+
'AURIX_PAY_GCASH',
|
|
22
|
+
'AURIX_PAY_PAYMAYA',
|
|
23
|
+
'AURIX_PAY_GRAB_PAY',
|
|
24
|
+
'AURIX_PAY_QRPH',
|
|
21
25
|
]);
|
|
22
26
|
const errorMap = {
|
|
23
27
|
DAILY_PURCHASE_OR_DEPOSIT_LIMIT_EXCEEDED: 'You have exceeded your daily purchase or deposit limit. Please try again tomorrow.',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ImageProps } from 'next/image';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
type ForgotPasswordLayout = 'crazywin';
|
|
3
|
+
type ForgotPasswordLayout = 'crazywin' | 'default';
|
|
4
4
|
export interface ForgotPasswordProps {
|
|
5
5
|
logo: ImageProps['src'];
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
|
-
layout?: ForgotPasswordLayout;
|
|
8
|
+
layout?: ForgotPasswordLayout | 'happybingo';
|
|
9
9
|
}
|
|
10
10
|
export declare function ForgotPassword(props: ForgotPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Image, {} from 'next/image';
|
|
4
|
-
import { Suspense } from 'react';
|
|
4
|
+
import { Suspense, useEffect, useState } from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { useShallow } from 'zustand/shallow';
|
|
7
7
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
@@ -14,11 +14,22 @@ export function ForgotPassword(props) {
|
|
|
14
14
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
15
15
|
forgotPassword: ctx.forgotPassword,
|
|
16
16
|
})));
|
|
17
|
+
const [layout, setLayout] = useState('default');
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setLayout(() => {
|
|
20
|
+
switch (props.layout) {
|
|
21
|
+
case 'crazywin':
|
|
22
|
+
return 'crazywin';
|
|
23
|
+
default:
|
|
24
|
+
return 'default';
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}, [props.layout]);
|
|
17
28
|
const Body = {
|
|
18
29
|
crazywin: (_jsx(CrazywinForgotPassword, { logo: props.logo })),
|
|
19
|
-
default: (_jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start
|
|
30
|
+
default: (_jsxs(Dialog.Content, { className: twMerge('mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl', props.layout === 'happybingo' ? 'bg-white dark:bg-[#0C111D]' : 'bg-bg-primary-alt', props.className), children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsx(Suspense, { children: _jsx(ForgotPasswordForm, { layout: props.layout }) })] }))
|
|
20
31
|
};
|
|
21
32
|
return (_jsx(Dialog.Root, { open: globalStore.forgotPassword.open, onOpenChange: (details) => {
|
|
22
33
|
globalStore.forgotPassword.setOpen(details.open);
|
|
23
|
-
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: Body[
|
|
34
|
+
}, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: Body[layout] })] }) }));
|
|
24
35
|
}
|