@opexa/portal-components 0.0.933 → 0.0.935
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/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/client/hooks/useAiOGCashDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useAiOGCashDepositMutation.js +90 -0
- package/dist/client/hooks/useAiOGrabPayDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useAiOGrabPayDepositMutation.js +80 -0
- package/dist/client/hooks/useAiOPalawanPayDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useAiOPalawanPayDepositMutation.js +80 -0
- package/dist/client/hooks/useAiOPayMayaDepositMutation.d.ts +4 -0
- package/dist/client/hooks/useAiOPayMayaDepositMutation.js +80 -0
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.d.ts +11 -0
- package/dist/components/DepositWithdrawal/AiOPaymentMethods.js +55 -0
- package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js +21 -2
- 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/QRPHDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +99 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +17 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +116 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.d.ts +3 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHQRCode.js +69 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDeposit.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositAlert.js +99 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +25 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositDetails.js +17 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositForm.js +116 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.d.ts +3 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHQRCode.js +69 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +13 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.js +85 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Confirmed.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Failed.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/Form.js +126 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/GeneratingQrCode.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDeposit.js +12 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.d.ts +17 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QrCodeGenerated.js +41 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.d.ts +13 -0
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.js +91 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGCashDeposit/AiOGCashDeposit.js +173 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOGrabPayDeposit/AiOGrabPayDeposit.js +171 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPalawanPayDeposit/AiOPalawanPayDeposit.js +171 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AiOPayMayaDeposit/AiOPayMayaDeposit.js +171 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.d.ts +8 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/AvailablePromos.js +33 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/Deposit.js +120 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashDeposit/GCashDeposit.js +163 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/GCashWebpayDeposit/GCashWebpayDeposit.js +165 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/LibanganDeposit/LibanganDeposit.js +186 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaAppDeposit/MayaAppDeposit.js +157 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaDeposit/MayaDeposit.js +163 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/MayaWebpayDeposit/MayaWebpayDeposit.js +166 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDeposit.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositAlert.js +99 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +25 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositDetails.js +19 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositForm.js +115 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +13 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.js +81 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/PisoPayDeposit/PisoPayDeposit.js +180 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDeposit.js +10 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositAlert.js +99 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +25 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.js +2 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositDetails.js +17 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositForm.js +116 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.d.ts +3 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHQRCode.js +69 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +13 -0
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.js +85 -0
- package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
- package/dist/components/DigitainLauncher/Loading.js +5 -0
- package/dist/components/Disclaimer/DisclaimerV3.js +5 -5
- package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
- package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
- package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
- package/dist/components/Disclaimer/TermsOfUse.js +13 -0
- package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
- package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
- package/dist/components/FeatureFlag/index.d.ts +1 -0
- package/dist/components/FeatureFlag/index.js +1 -0
- package/dist/components/ForgotPassword/Crazywin/ForgotPassword.module.css +42 -42
- package/dist/components/Games/Game.js +2 -2
- package/dist/components/GamesSearch/GamesSearch.js +5 -3
- package/dist/components/Jackpots/Jackpots.module.css +288 -288
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
- package/dist/components/KYC/AutoOpen.d.ts +1 -0
- package/dist/components/KYC/AutoOpen.js +40 -0
- package/dist/components/KYC/BasicInformation.d.ts +1 -0
- package/dist/components/KYC/BasicInformation.js +101 -0
- package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/KYC/CaptureIdDocument.js +219 -0
- package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/KYC/CaptureSelfie.js +285 -0
- package/dist/components/KYC/DisplayImage.d.ts +5 -0
- package/dist/components/KYC/DisplayImage.js +8 -0
- package/dist/components/KYC/FileUpload.d.ts +10 -0
- package/dist/components/KYC/FileUpload.js +72 -0
- package/dist/components/KYC/IdentityVerification.d.ts +1 -0
- package/dist/components/KYC/IdentityVerification.js +120 -0
- package/dist/components/KYC/Indicator.d.ts +1 -0
- package/dist/components/KYC/Indicator.js +8 -0
- package/dist/components/KYC/KYC.lazy.d.ts +6 -0
- package/dist/components/KYC/KYC.lazy.js +45 -0
- package/dist/components/KYC/KYCContext.d.ts +6 -0
- package/dist/components/KYC/KYCContext.js +2 -0
- package/dist/components/KYC/KYCDefault/BasicInformation.d.ts +1 -0
- package/dist/components/KYC/KYCDefault/BasicInformation.js +101 -0
- package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
- package/dist/components/KYC/KYCNonPagCor/KYCVerificationStatus.lazy.js +2 -2
- package/dist/components/KYC/KYCVerificationStatus.d.ts +1 -0
- package/dist/components/KYC/KYCVerificationStatus.js +10 -0
- package/dist/components/KYC/KYCVerificationStatus.lazy.d.ts +1 -0
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +39 -0
- package/dist/components/KYC/NoCameraError.d.ts +7 -0
- package/dist/components/KYC/NoCameraError.js +6 -0
- package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
- package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
- package/dist/components/KYC/PersonalInformation.d.ts +1 -0
- package/dist/components/KYC/PersonalInformation.js +122 -0
- package/dist/components/KYC/backup/Header.d.ts +1 -0
- package/dist/components/KYC/backup/Header.js +8 -0
- package/dist/components/KYC/backup/Indicator.d.ts +1 -0
- package/dist/components/KYC/backup/Indicator.js +9 -0
- package/dist/components/KYC/backup/KYC.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.js +14 -0
- package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.lazy.js +26 -0
- package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
- package/dist/components/KYC/backup/KYCContext.js +2 -0
- package/dist/components/KYC/backup/Step1.d.ts +1 -0
- package/dist/components/KYC/backup/Step1.js +13 -0
- package/dist/components/KYC/backup/Step2.d.ts +1 -0
- package/dist/components/KYC/backup/Step2.js +13 -0
- package/dist/components/KYC/backup/Step3.d.ts +1 -0
- package/dist/components/KYC/backup/Step3.js +13 -0
- package/dist/components/KYC/backup/Step4.d.ts +1 -0
- package/dist/components/KYC/backup/Step4.js +7 -0
- package/dist/components/KYC/backup/useKYC.d.ts +10 -0
- package/dist/components/KYC/backup/useKYC.js +8 -0
- package/dist/components/KYC/loadModels.d.ts +1 -0
- package/dist/components/KYC/loadModels.js +9 -0
- package/dist/components/KYC/useKYC.d.ts +25 -0
- package/dist/components/KYC/useKYC.js +38 -0
- package/dist/components/KYC/utils.d.ts +9 -0
- package/dist/components/KYC/utils.js +79 -0
- package/dist/components/KYCNotRequired/KYCNotRequired.d.ts +0 -0
- package/dist/components/KYCNotRequired/KYCNotRequired.js +1 -0
- package/dist/components/Messages/Message.d.ts +1 -0
- package/dist/components/Messages/Message.js +35 -0
- package/dist/components/Messages/MessageContext.d.ts +6 -0
- package/dist/components/Messages/MessageContext.js +2 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +20 -0
- package/dist/components/Messages/MessageTrigger.d.ts +8 -0
- package/dist/components/Messages/MessageTrigger.js +19 -0
- package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
- package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
- package/dist/components/Quests/CountdownTimer.d.ts +15 -0
- package/dist/components/Quests/CountdownTimer.js +33 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
- package/dist/components/Quests/MultiWageringQuest.d.ts +1 -0
- package/dist/components/Quests/MultiWageringQuest.js +111 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
- package/dist/components/ResponsibleGaming/ResponsibleGaming.d.ts +1 -1
- package/dist/components/ResponsibleGaming/ResponsibleGaming.js +7 -0
- package/dist/components/ResponsibleGaming/ResponsibleGamingV3.lazy.d.ts +8 -0
- package/dist/components/ResponsibleGaming/ResponsibleGamingV3.lazy.js +71 -0
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
- package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
- package/dist/components/SessionWatcher/index.d.ts +1 -0
- package/dist/components/SessionWatcher/index.js +1 -0
- package/dist/components/SignIn/utils.d.ts +8 -0
- package/dist/components/SignIn/utils.js +26 -0
- package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
- package/dist/components/SignUp/SignUp.lazy.js +18 -0
- package/dist/components/SignUp/SignUpContext.d.ts +6 -0
- package/dist/components/SignUp/SignUpContext.js +2 -0
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
- package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
- package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
- package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpForm.js +284 -0
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
- package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
- package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
- package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
- package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
- package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
- package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
- package/dist/components/SingleSignOn/SingleSignOn.d.ts +1 -1
- package/dist/components/SingleSignOn/SingleSignOn.js +7 -15
- package/dist/components/TermsOfUse/TermsOfUse.d.ts +1 -1
- package/dist/components/TermsOfUse/TermsOfUse.js +7 -0
- package/dist/components/TermsOfUse/TermsOfUseV3.lazy.d.ts +9 -0
- package/dist/components/TermsOfUse/TermsOfUseV3.lazy.js +69 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
- package/dist/components/shared/IdDocumentField.client.js +204 -0
- package/dist/components/shared/IdDocumentField.d.ts +2 -0
- package/dist/components/shared/IdDocumentField.js +11 -0
- package/dist/components/shared/SelfieField.client.d.ts +20 -0
- package/dist/components/shared/SelfieField.client.js +327 -0
- package/dist/components/shared/SelfieField.d.ts +2 -0
- package/dist/components/shared/SelfieField.js +11 -0
- package/dist/constants/BranchCode.d.ts +4 -0
- package/dist/constants/BranchCode.js +42 -0
- package/dist/constants/Branches.d.ts +2 -0
- package/dist/constants/Branches.js +42 -0
- package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
- package/dist/handlers/postTransformIdFrontImage.js +67 -0
- package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
- package/dist/handlers/postTransformSelfieImage.js +71 -0
- package/dist/handlers.d.ts +43 -0
- package/dist/handlers.js +297 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +4 -0
- package/dist/images/game-providers/ALPHACHINKO.png +0 -0
- package/dist/images/phone-icon.svg +10 -10
- package/dist/images/responsible-gaming-new.png +0 -0
- package/dist/images/responsible-gaming-yellow.png +0 -0
- package/dist/services/queries.js +3369 -3369
- package/dist/styles/theme.css +776 -776
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/third-parties/index.js +2 -0
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/utils/dataUrlToBlob.d.ts +1 -0
- package/dist/utils/dataUrlToBlob.js +11 -0
- package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
- package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
- package/dist/utils/getGameName.d.ts +1 -0
- package/dist/utils/getGameName.js +6 -0
- package/dist/utils/getLocaleInfo.d.ts +79 -0
- package/dist/utils/getLocaleInfo.js +175 -0
- package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
- package/dist/utils/isBetween3amAnd3pm.js +5 -0
- package/dist/utils/resizeImageSize.d.ts +2 -0
- package/dist/utils/resizeImageSize.js +11 -0
- package/package.json +179 -179
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SetOptional } from 'type-fest';
|
|
2
|
+
import { type CreateAiOGCashDepositInput } from '../../services/wallet';
|
|
3
|
+
import type { Deposit, Mutation } from '../../types';
|
|
4
|
+
export declare const useCreateAiOGCashDepositMutation: Mutation<Deposit, SetOptional<CreateAiOGCashDepositInput, 'id'>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { clamp } from 'lodash-es';
|
|
4
|
+
import invariant from 'tiny-invariant';
|
|
5
|
+
import { explainError } from '../../components/DepositWithdrawal/utils.js';
|
|
6
|
+
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
7
|
+
import { ObjectType } from '../../services/ObjectType.js';
|
|
8
|
+
import { createAiOGCashDeposit, getDeposit, } from '../../services/wallet.js';
|
|
9
|
+
import { capitalize } from '../../utils/capitalize.js';
|
|
10
|
+
import { createPoll } from '../../utils/createPoll.js';
|
|
11
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
12
|
+
import { getCreateAiOGCashDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
13
|
+
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
14
|
+
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
15
|
+
import { getSession } from '../services/getSession.js';
|
|
16
|
+
export const useCreateAiOGCashDepositMutation = (config) => {
|
|
17
|
+
const queryClient = getQueryClient();
|
|
18
|
+
const mutation = useMutation({
|
|
19
|
+
...config,
|
|
20
|
+
mutationKey: getCreateAiOGCashDepositMutationKey(),
|
|
21
|
+
mutationFn: async (input) => {
|
|
22
|
+
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
23
|
+
const session = await getSession();
|
|
24
|
+
invariant(session.status === 'authenticated');
|
|
25
|
+
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
26
|
+
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
27
|
+
successRedirectUrl.searchParams.set('id', id);
|
|
28
|
+
await createAiOGCashDeposit({
|
|
29
|
+
...input,
|
|
30
|
+
id,
|
|
31
|
+
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
32
|
+
}, {
|
|
33
|
+
headers: {
|
|
34
|
+
Authorization: `Bearer ${session.token}`,
|
|
35
|
+
...(session.domain && {
|
|
36
|
+
Domain: session.domain,
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
const poll = createPoll(async () => {
|
|
41
|
+
const session = await getSession();
|
|
42
|
+
invariant(session.status === 'authenticated');
|
|
43
|
+
return await getDeposit(id, {
|
|
44
|
+
headers: {
|
|
45
|
+
Authorization: `Bearer ${session.token}`,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}, {
|
|
49
|
+
until(res) {
|
|
50
|
+
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
51
|
+
},
|
|
52
|
+
interval: 1000,
|
|
53
|
+
maxAttempt: 20,
|
|
54
|
+
});
|
|
55
|
+
const res = await poll();
|
|
56
|
+
if (res?.error) {
|
|
57
|
+
const error = new Error();
|
|
58
|
+
error.name = capitalize(res.error, {
|
|
59
|
+
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
60
|
+
});
|
|
61
|
+
error.message = explainError(res.error);
|
|
62
|
+
throw error;
|
|
63
|
+
}
|
|
64
|
+
if (!res?.checkoutUrl) {
|
|
65
|
+
const error = new Error();
|
|
66
|
+
error.name = 'AiOGCashDepositError';
|
|
67
|
+
error.message = 'Failed to process GCash deposit';
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
71
|
+
if (depositsCount <= 0) {
|
|
72
|
+
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
73
|
+
return prev?.map((quest) => {
|
|
74
|
+
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
75
|
+
if (quest.type === 'ONBOARDING') {
|
|
76
|
+
return {
|
|
77
|
+
...quest,
|
|
78
|
+
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
79
|
+
progressPercentage: progressPercentage.toFixed(2),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return quest;
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return res;
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
return mutation;
|
|
90
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SetOptional } from 'type-fest';
|
|
2
|
+
import { type CreateAiOGrabPayDepositInput } from '../../services/wallet';
|
|
3
|
+
import type { Deposit, Mutation } from '../../types';
|
|
4
|
+
export declare const useCreateAiOGrabPayDepositMutation: Mutation<Deposit, SetOptional<CreateAiOGrabPayDepositInput, 'id'>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { clamp } from 'lodash-es';
|
|
4
|
+
import invariant from 'tiny-invariant';
|
|
5
|
+
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
6
|
+
import { ObjectType } from '../../services/ObjectType.js';
|
|
7
|
+
import { createAiOGrabPayDeposit, getDeposit, } from '../../services/wallet.js';
|
|
8
|
+
import { createPoll } from '../../utils/createPoll.js';
|
|
9
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
10
|
+
import { getCreateAiOGrabPayDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
11
|
+
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
12
|
+
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
13
|
+
import { getSession } from '../services/getSession.js';
|
|
14
|
+
export const useCreateAiOGrabPayDepositMutation = (config) => {
|
|
15
|
+
const queryClient = getQueryClient();
|
|
16
|
+
const mutation = useMutation({
|
|
17
|
+
...config,
|
|
18
|
+
mutationKey: getCreateAiOGrabPayDepositMutationKey(),
|
|
19
|
+
mutationFn: async (input) => {
|
|
20
|
+
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
21
|
+
const session = await getSession();
|
|
22
|
+
invariant(session.status === 'authenticated');
|
|
23
|
+
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
24
|
+
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
25
|
+
successRedirectUrl.searchParams.set('id', id);
|
|
26
|
+
await createAiOGrabPayDeposit({
|
|
27
|
+
...input,
|
|
28
|
+
id,
|
|
29
|
+
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
30
|
+
}, {
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${session.token}`,
|
|
33
|
+
...(session.domain && {
|
|
34
|
+
Domain: session.domain,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const poll = createPoll(async () => {
|
|
39
|
+
const session = await getSession();
|
|
40
|
+
invariant(session.status === 'authenticated');
|
|
41
|
+
return await getDeposit(id, {
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: `Bearer ${session.token}`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}, {
|
|
47
|
+
until(res) {
|
|
48
|
+
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
49
|
+
},
|
|
50
|
+
interval: 1000,
|
|
51
|
+
maxAttempt: 20,
|
|
52
|
+
});
|
|
53
|
+
const res = await poll();
|
|
54
|
+
if (!res?.checkoutUrl) {
|
|
55
|
+
const error = new Error();
|
|
56
|
+
error.name = 'AiOGrabPayDepositError';
|
|
57
|
+
error.message = 'Failed to process Grab Pay deposit';
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
61
|
+
if (depositsCount <= 0) {
|
|
62
|
+
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
63
|
+
return prev?.map((quest) => {
|
|
64
|
+
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
65
|
+
if (quest.type === 'ONBOARDING') {
|
|
66
|
+
return {
|
|
67
|
+
...quest,
|
|
68
|
+
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
69
|
+
progressPercentage: progressPercentage.toFixed(2),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return quest;
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return res;
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
return mutation;
|
|
80
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SetOptional } from 'type-fest';
|
|
2
|
+
import { type CreateAiOPalawanPayDepositInput } from '../../services/wallet';
|
|
3
|
+
import type { Deposit, Mutation } from '../../types';
|
|
4
|
+
export declare const useCreateAiOPalawanPayDepositMutation: Mutation<Deposit, SetOptional<CreateAiOPalawanPayDepositInput, 'id'>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { clamp } from 'lodash-es';
|
|
4
|
+
import invariant from 'tiny-invariant';
|
|
5
|
+
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
6
|
+
import { ObjectType } from '../../services/ObjectType.js';
|
|
7
|
+
import { createAiOPalawanPayDeposit, getDeposit, } from '../../services/wallet.js';
|
|
8
|
+
import { createPoll } from '../../utils/createPoll.js';
|
|
9
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
10
|
+
import { getCreateAiOPalawanPayDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
11
|
+
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
12
|
+
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
13
|
+
import { getSession } from '../services/getSession.js';
|
|
14
|
+
export const useCreateAiOPalawanPayDepositMutation = (config) => {
|
|
15
|
+
const queryClient = getQueryClient();
|
|
16
|
+
const mutation = useMutation({
|
|
17
|
+
...config,
|
|
18
|
+
mutationKey: getCreateAiOPalawanPayDepositMutationKey(),
|
|
19
|
+
mutationFn: async (input) => {
|
|
20
|
+
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
21
|
+
const session = await getSession();
|
|
22
|
+
invariant(session.status === 'authenticated');
|
|
23
|
+
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
24
|
+
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
25
|
+
successRedirectUrl.searchParams.set('id', id);
|
|
26
|
+
await createAiOPalawanPayDeposit({
|
|
27
|
+
...input,
|
|
28
|
+
id,
|
|
29
|
+
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
30
|
+
}, {
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${session.token}`,
|
|
33
|
+
...(session.domain && {
|
|
34
|
+
Domain: session.domain,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const poll = createPoll(async () => {
|
|
39
|
+
const session = await getSession();
|
|
40
|
+
invariant(session.status === 'authenticated');
|
|
41
|
+
return await getDeposit(id, {
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: `Bearer ${session.token}`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}, {
|
|
47
|
+
until(res) {
|
|
48
|
+
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
49
|
+
},
|
|
50
|
+
interval: 1000,
|
|
51
|
+
maxAttempt: 20,
|
|
52
|
+
});
|
|
53
|
+
const res = await poll();
|
|
54
|
+
if (!res?.checkoutUrl) {
|
|
55
|
+
const error = new Error();
|
|
56
|
+
error.name = 'AiOPalawanPayDepositError';
|
|
57
|
+
error.message = 'Failed to process Palawan Pay deposit';
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
61
|
+
if (depositsCount <= 0) {
|
|
62
|
+
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
63
|
+
return prev?.map((quest) => {
|
|
64
|
+
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
65
|
+
if (quest.type === 'ONBOARDING') {
|
|
66
|
+
return {
|
|
67
|
+
...quest,
|
|
68
|
+
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
69
|
+
progressPercentage: progressPercentage.toFixed(2),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return quest;
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return res;
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
return mutation;
|
|
80
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SetOptional } from 'type-fest';
|
|
2
|
+
import { type CreateAiOPayMayaDepositInput } from '../../services/wallet';
|
|
3
|
+
import type { Deposit, Mutation } from '../../types';
|
|
4
|
+
export declare const useCreateAiOPayMayaDepositMutation: Mutation<Deposit, SetOptional<CreateAiOPayMayaDepositInput, 'id'>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { clamp } from 'lodash-es';
|
|
4
|
+
import invariant from 'tiny-invariant';
|
|
5
|
+
import { OPEXAPAY_ENDPOINT } from '../../constants/index.js';
|
|
6
|
+
import { ObjectType } from '../../services/ObjectType.js';
|
|
7
|
+
import { createAiOPayMayaDeposit, getDeposit, } from '../../services/wallet.js';
|
|
8
|
+
import { createPoll } from '../../utils/createPoll.js';
|
|
9
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
10
|
+
import { getCreateAiOPayMayaDepositMutationKey } from '../../utils/mutationKeys.js';
|
|
11
|
+
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
12
|
+
import { getAvailableQuestsQueryKey, getDepositsCountQueryKey, } from '../../utils/queryKeys.js';
|
|
13
|
+
import { getSession } from '../services/getSession.js';
|
|
14
|
+
export const useCreateAiOPayMayaDepositMutation = (config) => {
|
|
15
|
+
const queryClient = getQueryClient();
|
|
16
|
+
const mutation = useMutation({
|
|
17
|
+
...config,
|
|
18
|
+
mutationKey: getCreateAiOPayMayaDepositMutationKey(),
|
|
19
|
+
mutationFn: async (input) => {
|
|
20
|
+
const id = input.id ?? ObjectId.generate(ObjectType.Deposit).toString();
|
|
21
|
+
const session = await getSession();
|
|
22
|
+
invariant(session.status === 'authenticated');
|
|
23
|
+
const successRedirectUrl = new URL('/transactions', input.redirectUrl);
|
|
24
|
+
successRedirectUrl.searchParams.set('tab', 'deposits');
|
|
25
|
+
successRedirectUrl.searchParams.set('id', id);
|
|
26
|
+
await createAiOPayMayaDeposit({
|
|
27
|
+
...input,
|
|
28
|
+
id,
|
|
29
|
+
redirectUrl: `${OPEXAPAY_ENDPOINT}/aio/success?redirectUrl=${encodeURIComponent(successRedirectUrl.toString())}`,
|
|
30
|
+
}, {
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${session.token}`,
|
|
33
|
+
...(session.domain && {
|
|
34
|
+
Domain: session.domain,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const poll = createPoll(async () => {
|
|
39
|
+
const session = await getSession();
|
|
40
|
+
invariant(session.status === 'authenticated');
|
|
41
|
+
return await getDeposit(id, {
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: `Bearer ${session.token}`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}, {
|
|
47
|
+
until(res) {
|
|
48
|
+
return (!!res?.checkoutUrl || !!res?.error || res?.status === 'FAILED');
|
|
49
|
+
},
|
|
50
|
+
interval: 1000,
|
|
51
|
+
maxAttempt: 20,
|
|
52
|
+
});
|
|
53
|
+
const res = await poll();
|
|
54
|
+
if (!res?.checkoutUrl) {
|
|
55
|
+
const error = new Error();
|
|
56
|
+
error.name = 'AiOPayMayaDepositError';
|
|
57
|
+
error.message = 'Failed to process Pay Maya deposit';
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
const depositsCount = queryClient.getQueryData(getDepositsCountQueryKey()) ?? 0;
|
|
61
|
+
if (depositsCount <= 0) {
|
|
62
|
+
queryClient.setQueryData(getAvailableQuestsQueryKey(), (prev) => {
|
|
63
|
+
return prev?.map((quest) => {
|
|
64
|
+
const progressPercentage = clamp(parseDecimal(quest.progressPercentage, 0) + 50, 100);
|
|
65
|
+
if (quest.type === 'ONBOARDING') {
|
|
66
|
+
return {
|
|
67
|
+
...quest,
|
|
68
|
+
status: progressPercentage >= 100 ? 'COMPLETED' : quest.status,
|
|
69
|
+
progressPercentage: progressPercentage.toFixed(2),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return quest;
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return res;
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
return mutation;
|
|
80
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AiOeWalletPaymentMethod } from './utils';
|
|
2
|
+
interface AiOPaymentMethodsProps {
|
|
3
|
+
value?: AiOeWalletPaymentMethod;
|
|
4
|
+
onChange?: (value: AiOeWalletPaymentMethod) => void;
|
|
5
|
+
defaultValue?: AiOeWalletPaymentMethod;
|
|
6
|
+
options?: AiOeWalletPaymentMethod[];
|
|
7
|
+
className?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function AiOPaymentMethods(props: AiOPaymentMethodsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import { useControllableState } from '../../client/hooks/useControllableState.js';
|
|
5
|
+
import { CheckIcon } from '../../icons/CheckIcon.js';
|
|
6
|
+
import gcash from '../../images/gcash.png';
|
|
7
|
+
import grabPay from '../../images/grabpay.png';
|
|
8
|
+
import maya from '../../images/maya.png';
|
|
9
|
+
import palawanPay from '../../images/palawanpay.png';
|
|
10
|
+
import { Checkbox } from '../../ui/Checkbox/index.js';
|
|
11
|
+
import { Field } from '../../ui/Field/index.js';
|
|
12
|
+
import { AiOeWalletPaymentMethodDefinition, } from './utils.js';
|
|
13
|
+
const AIO_EWALLET_OPTIONS = [
|
|
14
|
+
{
|
|
15
|
+
value: 'AIO_GCASH',
|
|
16
|
+
label: 'GCash',
|
|
17
|
+
image: gcash,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: 'AIO_PAY_MAYA',
|
|
21
|
+
label: 'Maya',
|
|
22
|
+
image: maya,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: 'AIO_GRAB_PAY',
|
|
26
|
+
label: 'GrabPay',
|
|
27
|
+
image: grabPay,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: 'AIO_PALAWAN_PAY',
|
|
31
|
+
label: 'Palawan Pay',
|
|
32
|
+
image: palawanPay,
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
export function AiOPaymentMethods(props) {
|
|
36
|
+
const options = props.options && props.options.length > 0
|
|
37
|
+
? AIO_EWALLET_OPTIONS.filter((option) => props.options?.includes(option.value))
|
|
38
|
+
: AIO_EWALLET_OPTIONS;
|
|
39
|
+
const [value, setValue] = useControllableState({
|
|
40
|
+
value: props.value,
|
|
41
|
+
defaultValue: props.defaultValue ?? options[0]?.value,
|
|
42
|
+
onChange: props.onChange,
|
|
43
|
+
});
|
|
44
|
+
const parseValue = (val) => {
|
|
45
|
+
return AiOeWalletPaymentMethodDefinition.parse(val);
|
|
46
|
+
};
|
|
47
|
+
return (_jsxs("div", { className: props.className, children: [_jsx(Field.Label, { asChild: true, children: _jsx("div", { children: props.label || 'AIO eWallet payment methods' }) }), _jsx(Checkbox.Group, { value: [value], onValueChange: (newValue) => {
|
|
48
|
+
const lastValue = newValue.at(-1);
|
|
49
|
+
if (!lastValue)
|
|
50
|
+
return;
|
|
51
|
+
setValue(parseValue(lastValue));
|
|
52
|
+
}, className: "grid grid-cols-2 gap-x-4 gap-y-3", children: options.map((option) => (_jsxs(Checkbox.Root, { value: option.value, className: "flex cursor-pointer items-center justify-between rounded-xl border border-border-secondary ui-checked:border-border-brand-solid p-lg", children: [_jsx("div", { className: twMerge('rounded-xs', option.value === 'AIO_GRAB_PAY'
|
|
53
|
+
? 'bg-transparent px-0 py-0'
|
|
54
|
+
: 'bg-white px-sm py-[0.688rem]', option.value === 'AIO_GCASH' && 'bg-[#017EFF]', option.value === 'AIO_PALAWAN_PAY' && 'bg-[#026308]', option.value === 'AIO_PAY_MAYA' && 'bg-black'), children: _jsx(Image, { src: option.image, alt: "", width: 200, height: 40, className: twMerge('h-[1.063rem] w-auto', option.value === 'AIO_GRAB_PAY' && 'h-[3rem] rounded-[4px]', option.value === 'AIO_PALAWAN_PAY' && 'h-[2rem]'), draggable: false }) }), _jsx(Checkbox.Control, { className: "shrink-0", children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.HiddenInput, {})] }, option.value))) })] }));
|
|
55
|
+
}
|
package/dist/components/DepositWithdrawal/Deposit/AurixPayPayMayaDeposit/AurixPayGrabPayDeposit.js
CHANGED
|
@@ -97,7 +97,7 @@ export function AurixPayGrabPayDeposit() {
|
|
|
97
97
|
const depositsCount = depositsCountQuery.data ?? 0;
|
|
98
98
|
const paymentSettingsQuery = usePaymentSettingsQuery();
|
|
99
99
|
const paymentSettings = paymentSettingsQuery.data;
|
|
100
|
-
const gatewaySettings = paymentSettings?.
|
|
100
|
+
const gatewaySettings = paymentSettings?.aurixPayGrabPayDepositGatewaySettings;
|
|
101
101
|
const maximumAmount = parseDecimal(gatewaySettings?.maximumAmount, 0);
|
|
102
102
|
const minimumAmount = depositsCount <= 0
|
|
103
103
|
? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
|
|
@@ -200,7 +200,26 @@ export function AurixPayGrabPayDeposit() {
|
|
|
200
200
|
accountNumber: data.accountNumber,
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
}), noValidate: true, children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { ...form.register('accountNumber'
|
|
203
|
+
}), noValidate: true, children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { ...form.register('accountNumber', {
|
|
204
|
+
onChange: (e) => {
|
|
205
|
+
// Allow only digits and leading +
|
|
206
|
+
let value = e.target.value;
|
|
207
|
+
// Remove all non-digit except leading +
|
|
208
|
+
value = value.replace(/(?!^)\D/g, '');
|
|
209
|
+
if (value.startsWith('+')) {
|
|
210
|
+
// keep leading +
|
|
211
|
+
value = '+' + value.slice(1).replace(/\D/g, '');
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
// remove all non-digits
|
|
215
|
+
value = value.replace(/\D/g, '');
|
|
216
|
+
}
|
|
217
|
+
e.target.value = value;
|
|
218
|
+
form.setValue('accountNumber', value, {
|
|
219
|
+
shouldValidate: true,
|
|
220
|
+
});
|
|
221
|
+
},
|
|
222
|
+
}), inputMode: "tel", pattern: "^\\+?[0-9]*$", autoComplete: "tel" }), _jsx(Field.ErrorText, { children: form.formState.errors.accountNumber?.message })] }), _jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, className: "mt-lg", children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
|
|
204
223
|
o.field.onChange(details.value);
|
|
205
224
|
}, allowMouseWheel: true, children: [_jsx(NumberInput.Label, { children: "Enter amount you want to deposit" }), _jsxs(NumberInput.Control, { children: [_jsx(NumberInput.Input, {}), _jsx(NumberInput.IncrementTrigger, { children: _jsx(ChevronUpIcon, {}) }), _jsx(NumberInput.DecrementTrigger, { children: _jsx(ChevronDownIcon, {}) })] })] }), _jsx(Field.ErrorText, { children: form.formState.errors.amount?.message })] })) }), _jsx(AmountChoices, { value: parseDecimal(form.watch('amount'), 0), onChange: (value) => {
|
|
206
225
|
form.setValue('amount', value.toString(), {
|
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: "
|
|
4
|
+
status: "failed" | "waiting" | "processing" | "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: "
|
|
17
|
+
status: "failed" | "waiting" | "processing" | "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: "
|
|
5
|
+
status: "failed" | "waiting" | "processing" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
deposit: Deposit | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function QRPHDepositAlert(): import("react/jsx-runtime").JSX.Element;
|