@tap-payments/auth-jsconnect 2.0.45-test → 2.0.45
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/README.md +34 -34
- package/build/@types/app.d.ts +120 -27
- package/build/@types/app.js +22 -3
- package/build/@types/form.d.ts +70 -32
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +6 -1
- package/build/api/account.js +9 -1
- package/build/api/auth.d.ts +45 -16
- package/build/api/auth.js +57 -2
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +3 -3
- package/build/api/board.d.ts +4 -3
- package/build/api/board.js +8 -1
- package/build/api/brand.d.ts +3 -1
- package/build/api/brand.js +18 -1
- package/build/api/country.d.ts +3 -1
- package/build/api/country.js +3 -1
- package/build/api/data.d.ts +46 -7
- package/build/api/data.js +73 -17
- package/build/api/entity.d.ts +88 -12
- package/build/api/entity.js +50 -10
- package/build/api/file.d.ts +13 -0
- package/build/api/file.js +24 -0
- package/build/api/firebase.d.ts +1 -1
- package/build/api/firebase.js +3 -1
- package/build/api/index.d.ts +69 -17
- package/build/api/index.js +5 -3
- package/build/api/individual.d.ts +84 -21
- package/build/api/individual.js +29 -2
- package/build/api/lead.d.ts +25 -16
- package/build/api/lead.js +24 -1
- package/build/api/location.d.ts +5 -0
- package/build/api/location.js +19 -0
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +1 -1
- package/build/app/rootReducer.d.ts +2 -2
- package/build/app/rootReducer.js +4 -4
- package/build/app/settings.d.ts +20 -2
- package/build/app/settings.js +41 -26
- package/build/app/store.d.ts +8 -8
- package/build/assets/locales/ar.json +297 -183
- package/build/assets/locales/en.json +231 -108
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +6 -8
- package/build/components/AnimationFlow/BottomSheet.d.ts +2 -1
- package/build/components/AnimationFlow/BottomSheet.js +4 -3
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +5 -3
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
- package/build/components/ArabicDatePicker/index.d.ts +2 -0
- package/build/components/ArabicDatePicker/index.js +2 -0
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/Button/Button.js +1 -5
- package/build/components/FileInput/DragAndDrop.d.ts +12 -2
- package/build/components/FileInput/DragAndDrop.js +109 -11
- package/build/components/Lottie/Lottie.d.ts +4204 -0
- package/build/components/Lottie/Lottie.js +66 -0
- package/build/components/Lottie/files/account_creating.json +732 -0
- package/build/components/Lottie/files/error.json +692 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/start_loading.json +1140 -0
- package/build/components/Lottie/files/still_loading.json +1140 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPField/OTPField.d.ts +2 -1
- package/build/components/OTPField/OTPField.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +16 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/Radio/Radio.js +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +5 -2
- package/build/components/RadioLabel/RadioLabel.js +2 -2
- package/build/components/SimpleList/SimpleList.d.ts +2 -1
- package/build/components/SimpleList/SimpleList.js +22 -10
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +2 -6
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +4 -49
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +12 -3
- package/build/constants/api.d.ts +14 -0
- package/build/constants/api.js +30 -1
- package/build/constants/app.d.ts +26 -4
- package/build/constants/app.js +229 -33
- package/build/constants/assets.d.ts +17 -0
- package/build/constants/assets.js +19 -2
- package/build/constants/dummy.d.ts +1 -1
- package/build/constants/dummy.js +2 -2
- package/build/constants/validation.d.ts +13 -0
- package/build/constants/validation.js +14 -1
- package/build/features/app/bank/bankStore.d.ts +87 -15
- package/build/features/app/bank/bankStore.js +99 -78
- package/build/features/app/brand/brandStore.d.ts +191 -0
- package/build/features/app/brand/brandStore.js +654 -0
- package/build/features/app/business/businessStore.d.ts +200 -20
- package/build/features/app/business/businessStore.js +513 -362
- package/build/features/app/connect/connectStore.d.ts +148 -40
- package/build/features/app/connect/connectStore.js +465 -374
- package/build/features/app/connectExpress/connectExpressStore.d.ts +282 -0
- package/build/features/app/connectExpress/connectExpressStore.js +1013 -0
- package/build/features/app/entity/entityStore.d.ts +127 -18
- package/build/features/app/entity/entityStore.js +436 -192
- package/build/features/app/individual/individualStore.d.ts +96 -15
- package/build/features/app/individual/individualStore.js +258 -134
- package/build/features/app/password/passwordStore.d.ts +107 -24
- package/build/features/app/password/passwordStore.js +50 -34
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +24 -47
- package/build/features/app/tax/taxStore.d.ts +69 -9
- package/build/features/app/tax/taxStore.js +112 -94
- package/build/features/bank/Bank.d.ts +5 -3
- package/build/features/bank/Bank.js +39 -36
- package/build/features/bank/screens/BankDetails/BankDetails.js +27 -10
- package/build/features/bank/screens/BankDetails/BankName.js +2 -1
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +4 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +12 -12
- package/build/features/bank/screens/BankDetails/Beneficiary.js +10 -11
- package/build/features/bank/screens/BankDetails/IBAN.js +5 -2
- package/build/features/bank/screens/BankDetails/validation.d.ts +22 -6
- package/build/features/bank/screens/BankDetails/validation.js +11 -24
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/bank/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/bank/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/bank/screens/Success/Success.js +7 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/brand/Brand.d.ts +9 -0
- package/build/features/brand/Brand.js +72 -0
- package/build/features/brand/index.d.ts +1 -0
- package/build/features/brand/index.js +1 -0
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +91 -0
- package/build/features/{entity/screens/EntityInfoConfirm → brand/screens/BrandActivities}/ActivitiesList.js +58 -35
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -0
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +72 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +82 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +143 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +8 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +97 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +8 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +130 -0
- package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +20 -0
- package/build/features/brand/screens/BrandActivities/OperationStartDate.js +45 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +36 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +82 -0
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +6 -0
- package/build/features/brand/screens/BrandActivities/TAC.js +84 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +42 -0
- package/build/features/brand/screens/BrandActivities/index.d.ts +2 -0
- package/build/features/brand/screens/BrandActivities/index.js +2 -0
- package/build/features/brand/screens/BrandActivities/validation.d.ts +71 -0
- package/build/features/brand/screens/BrandActivities/validation.js +21 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +72 -0
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/BrandName.js +142 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +5 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +30 -0
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/Segments.js +74 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.js +74 -0
- package/build/features/brand/screens/BrandInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandInfo/index.js +2 -0
- package/build/features/brand/screens/BrandInfo/validation.d.ts +41 -0
- package/build/features/brand/screens/BrandInfo/validation.js +106 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/brand/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/brand/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +16 -0
- package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/brand/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/brand/screens/Success/Success.d.ts +5 -0
- package/build/features/brand/screens/Success/Success.js +20 -0
- package/build/features/brand/screens/Success/index.d.ts +3 -0
- package/build/features/brand/screens/Success/index.js +2 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +22 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/brand/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/OTPInput.js +2 -2
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/Verify.d.ts +0 -0
- package/build/features/brand/screens/Verify/Verify.js +91 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.d.ts +0 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.js +0 -0
- package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.d.ts +0 -0
- package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.js +0 -0
- package/build/features/business/Business.d.ts +4 -3
- package/build/features/business/Business.js +12 -17
- package/build/features/business/screens/Activities/Activities.js +8 -17
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +44 -8
- package/build/features/business/screens/Activities/ActivitiesList.js +49 -16
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +15 -1
- package/build/features/business/screens/Activities/OperationStartDate.js +21 -2
- package/build/features/business/screens/Activities/validation.d.ts +0 -51
- package/build/features/business/screens/Activities/validation.js +4 -10
- package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
- package/build/features/business/screens/BusinessType/Article.js +87 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +23 -9
- package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
- package/build/features/business/screens/BusinessType/EntityName.js +56 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +42 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +27 -7
- package/build/features/business/screens/BusinessType/LicenseNumber.js +12 -6
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -0
- package/build/features/business/screens/BusinessType/LicenseType.js +103 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +22 -0
- package/build/features/business/screens/BusinessType/validation.js +60 -3
- package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/business/screens/CivilID/CivilID.js +67 -0
- package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/business/screens/CivilID/IDNumber.js +59 -0
- package/build/features/business/screens/CivilID/index.d.ts +3 -0
- package/build/features/business/screens/CivilID/index.js +2 -0
- package/build/features/business/screens/CivilID/validation.d.ts +8 -0
- package/build/features/business/screens/CivilID/validation.js +4 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +24 -11
- package/build/features/business/screens/Customers/CustomerLocations.js +31 -8
- package/build/features/business/screens/Customers/Customers.js +15 -9
- package/build/features/business/screens/Customers/ExpectedCustomers.js +15 -4
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +36 -15
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
- package/build/features/business/screens/Customers/RefundPolicy.js +6 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +6 -2
- package/build/features/business/screens/IDBOD/IDBOD.js +15 -2
- package/build/features/business/screens/OTP/OTP.js +15 -2
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/business/screens/Success/Success.js +10 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/business/screens/Verify/Verify.js +4 -4
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/business/screens/VerifyPACI/index.js +2 -0
- package/build/features/connect/Connect.d.ts +4 -3
- package/build/features/connect/Connect.js +32 -21
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +102 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +12 -4
- package/build/features/connect/screens/Individual/Individual.js +46 -29
- package/build/features/connect/screens/Individual/validation.js +2 -8
- package/build/features/connect/screens/Merchant/BrandList.js +29 -8
- package/build/features/connect/screens/Merchant/BrandName.js +8 -5
- package/build/features/connect/screens/Merchant/Merchant.js +46 -73
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +4 -4
- package/build/features/connect/screens/Merchant/SalesChannels.js +26 -102
- package/build/features/connect/screens/Merchant/Segments.d.ts +8 -0
- package/build/features/connect/screens/Merchant/Segments.js +74 -0
- package/build/features/connect/screens/Merchant/TAC.js +6 -2
- package/build/features/connect/screens/Merchant/TeamSize.d.ts +8 -0
- package/build/features/connect/screens/Merchant/TeamSize.js +74 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +19 -123
- package/build/features/connect/screens/Merchant/validation.js +110 -173
- package/build/features/connect/screens/Mobile/Mobile.js +33 -12
- package/build/features/connect/screens/NID/NID.js +5 -1
- package/build/features/connect/screens/OTP/OTP.js +20 -6
- package/build/features/connect/screens/OTP/OTPInput.js +3 -2
- package/build/features/connect/screens/ThankYou/ThankYou.js +9 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/connectExpress/ConnectExpress.d.ts +11 -0
- package/build/features/connectExpress/ConnectExpress.js +84 -0
- package/build/features/connectExpress/index.d.ts +1 -0
- package/build/features/connectExpress/index.js +1 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +5 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +15 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +2 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +5 -0
- package/build/features/connectExpress/screens/Brand/Brand.js +71 -0
- package/build/features/connectExpress/screens/Brand/index.d.ts +2 -0
- package/build/features/connectExpress/screens/Brand/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.js +84 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +55 -0
- package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CivilID/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/CivilID/validation.js +4 -0
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +5 -0
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +53 -0
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +55 -0
- package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CivilIDMissed/index.js +2 -0
- package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/CivilIDMissed/validation.js +4 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +142 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +80 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +144 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +52 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +34 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +94 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +83 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +2 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +27 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +155 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +5 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +89 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +113 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +10 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +149 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +6 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +45 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +2 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +14 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +31 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +5 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +2 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/index.js +2 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.js +26 -11
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.js +10 -2
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.js +0 -0
- package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.d.ts +0 -0
- package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.js +0 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +34 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +3 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +2 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.js +110 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +12 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +151 -0
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/Mobile/TAC.js +83 -0
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/Title.js +29 -0
- package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -0
- package/build/features/connectExpress/screens/Mobile/index.js +2 -0
- package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/validation.js +60 -0
- package/build/features/connectExpress/screens/NID/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/DOB.js +47 -0
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +61 -0
- package/build/features/connectExpress/screens/NID/NID.d.ts +5 -0
- package/build/features/connectExpress/screens/NID/NID.js +92 -0
- package/build/features/connectExpress/screens/NID/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/TAC.js +83 -0
- package/build/features/connectExpress/screens/NID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/NID/index.js +2 -0
- package/build/features/connectExpress/screens/NID/validation.d.ts +11 -0
- package/build/features/connectExpress/screens/NID/validation.js +22 -0
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +47 -0
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +6 -0
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +56 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.js +59 -0
- package/build/features/connectExpress/screens/NIDMissed/index.d.ts +3 -0
- package/build/features/connectExpress/screens/NIDMissed/index.js +2 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +11 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +9 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTP.js +88 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.js +55 -0
- package/build/features/connectExpress/screens/OTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/OTP/index.js +2 -0
- package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/OTP/validation.js +4 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +5 -3
- package/build/features/entity/Entity.js +39 -37
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +90 -0
- package/build/features/entity/screens/EntityCapital/ActivityList.js +175 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +47 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +42 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +47 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +75 -0
- package/build/features/entity/screens/EntityCapital/index.d.ts +2 -0
- package/build/features/entity/screens/EntityCapital/index.js +2 -0
- package/build/features/entity/screens/EntityCapital/validation.d.ts +62 -0
- package/build/features/entity/screens/EntityCapital/validation.js +21 -0
- package/build/features/entity/screens/EntityName/Article.d.ts +6 -0
- package/build/features/entity/screens/EntityName/Article.js +87 -0
- package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -0
- package/build/features/entity/screens/EntityName/EntityName.js +93 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +90 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.js +151 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +19 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.js +46 -0
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +19 -0
- package/build/features/entity/screens/EntityName/IssuingDate.js +46 -0
- package/build/features/entity/screens/EntityName/LegalName.d.ts +5 -0
- package/build/features/entity/screens/EntityName/LegalName.js +48 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +6 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +42 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.js +51 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +43 -0
- package/build/features/entity/screens/EntityName/index.d.ts +2 -0
- package/build/features/entity/screens/EntityName/index.js +2 -0
- package/build/features/entity/screens/EntityName/validation.d.ts +60 -0
- package/build/features/entity/screens/EntityName/validation.js +116 -0
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/entity/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/entity/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/entity/screens/Success/Success.js +7 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/entity/screens/Verify/Verify.js +18 -5
- package/build/features/featuresScreens.d.ts +2 -2
- package/build/features/featuresScreens.js +151 -14
- package/build/features/individual/Individual.d.ts +5 -3
- package/build/features/individual/Individual.js +39 -37
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +23 -28
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +30 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +5 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +21 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +11 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +28 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +24 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +42 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -0
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/individual/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/individual/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/individual/screens/Success/Success.js +7 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/individual/screens/Verify/Verify.js +18 -5
- package/build/features/password/Password.d.ts +5 -3
- package/build/features/password/Password.js +12 -17
- package/build/features/password/screens/CreatePassword/CreatePassword.js +16 -3
- package/build/features/password/screens/OTP/OTP.js +15 -2
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/password/screens/Success/Success.js +7 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -94
- package/build/features/password/screens/Verify/Verify.js +16 -3
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +1 -1
- package/build/features/shared/Address/Address.d.ts +11 -0
- package/build/features/shared/Address/Address.js +63 -0
- package/build/features/shared/Address/CountryList.d.ts +72 -0
- package/build/features/shared/Address/CountryList.js +89 -0
- package/build/features/shared/Address/InputSelect.d.ts +71 -0
- package/build/features/shared/Address/InputSelect.js +172 -0
- package/build/features/shared/Address/InputText.d.ts +11 -0
- package/build/features/shared/Address/InputText.js +12 -0
- package/build/features/shared/Address/index.d.ts +2 -0
- package/build/features/shared/Address/index.js +2 -0
- package/build/features/shared/Background/Background.d.ts +2 -5
- package/build/features/shared/Background/Background.js +7 -9
- package/build/features/shared/Button/Button.js +2 -3
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
- package/build/features/shared/Button/EmailProvidersButtons.js +7 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
- package/build/features/shared/Button/FlowsButtons.js +39 -7
- package/build/features/shared/Button/MobileButton.d.ts +2 -1
- package/build/features/shared/Button/MobileButton.js +2 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +6 -0
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -0
- package/build/features/shared/CreateAccountLoading/index.d.ts +2 -0
- package/build/features/shared/CreateAccountLoading/index.js +2 -0
- package/build/features/shared/DataLoading/DataLoading.d.ts +6 -0
- package/build/features/shared/DataLoading/DataLoading.js +58 -0
- package/build/features/shared/DataLoading/index.d.ts +2 -0
- package/build/features/shared/DataLoading/index.js +2 -0
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +71 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.js +1 -1
- package/build/features/shared/GenericError/GenericError.d.ts +7 -0
- package/build/features/shared/GenericError/GenericError.js +55 -0
- package/build/features/shared/GenericError/index.d.ts +2 -0
- package/build/features/shared/GenericError/index.js +2 -0
- package/build/features/shared/Input/Input.d.ts +9 -7
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
- package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -0
- package/build/features/shared/PaciVerification/index.d.ts +2 -0
- package/build/features/shared/PaciVerification/index.js +2 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +11 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +149 -0
- package/build/features/shared/SalesChannels/index.d.ts +2 -0
- package/build/features/shared/SalesChannels/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +16 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +113 -0
- package/build/features/shared/SuccessFlowButtons/index.d.ts +2 -0
- package/build/features/shared/SuccessFlowButtons/index.js +2 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +3 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +14 -6
- package/build/features/shared/UploadFile/UploadFile.js +32 -17
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +38 -0
- package/build/features/shared/UploadMultipleFile/UploadFile.js +184 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +27 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +149 -0
- package/build/features/shared/UploadMultipleFile/index.d.ts +2 -0
- package/build/features/shared/UploadMultipleFile/index.js +2 -0
- package/build/features/signIn/SignIn.d.ts +4 -3
- package/build/features/signIn/SignIn.js +12 -18
- package/build/features/signIn/screens/Email/Email.js +4 -2
- package/build/features/signIn/screens/Mobile/Mobile.js +5 -1
- package/build/features/signIn/screens/OTP/OTP.js +14 -1
- package/build/features/signIn/screens/Password/Password.js +15 -2
- package/build/features/tax/Tax.d.ts +5 -3
- package/build/features/tax/Tax.js +39 -38
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/tax/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/tax/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/tax/screens/Success/Success.js +9 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +21 -10
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +6 -0
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +42 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
- package/build/features/tax/screens/TaxDetails/validation.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/validation.js +2 -1
- package/build/features/tax/screens/Verify/Verify.js +16 -3
- package/build/hooks/index.d.ts +5 -0
- package/build/hooks/index.js +5 -0
- package/build/hooks/useAppConfig.d.ts +5 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +2 -2
- package/build/hooks/useCountUp.d.ts +9 -0
- package/build/hooks/useCountUp.js +17 -0
- package/build/hooks/useCountry.d.ts +4 -0
- package/build/hooks/useCountry.js +7 -0
- package/build/hooks/useErrorListener.js +0 -6
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
- package/build/hooks/useSetFromDefaultValues.js +26 -0
- package/build/hooks/useVerifyToken.d.ts +15 -0
- package/build/hooks/useVerifyToken.js +25 -0
- package/build/index.d.ts +12 -12
- package/build/index.js +13 -24
- package/build/theme/typography.js +1 -1
- package/build/utils/array.d.ts +52 -1
- package/build/utils/array.js +82 -3
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +4 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +5 -0
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +0 -1
- package/build/utils/html.js +2 -10
- package/build/utils/index.d.ts +2 -0
- package/build/utils/index.js +2 -0
- package/build/utils/locale.js +1 -1
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +12 -0
- package/build/utils/string.d.ts +15 -0
- package/build/utils/string.js +94 -3
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +6 -0
- package/package.json +4 -3
- package/build/api/ip.d.ts +0 -4
- package/build/api/ip.js +0 -12
- package/build/features/app/auth/authStore.d.ts +0 -20
- package/build/features/app/auth/authStore.js +0 -99
- package/build/features/app/otp/otpStore.d.ts +0 -28
- package/build/features/app/otp/otpStore.js +0 -153
- package/build/features/auth/Auth.d.ts +0 -9
- package/build/features/auth/Auth.js +0 -59
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/business/screens/Activities/SalesChannels.d.ts +0 -5
- package/build/features/business/screens/Activities/SalesChannels.js +0 -112
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -9
- package/build/features/connect/screens/Merchant/SocialMedia.js +0 -162
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -54
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -56
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -17
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -28
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -38
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -107
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -17
- package/build/features/otp/OTP.d.ts +0 -7
- package/build/features/otp/OTP.js +0 -58
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +0 -1
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
- package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import MobileScreen from './connect/screens/Mobile';
|
|
2
2
|
import NIDScreen from './connect/screens/NID';
|
|
3
|
+
import ConnectCivilIDScreen from '../features/connect/screens/CivilID';
|
|
4
|
+
import ConnectVerifyPACIScreen from './connect/screens/VerifyPACI';
|
|
3
5
|
import IndividualScreen from './connect/screens/Individual';
|
|
4
6
|
import MerchantInfoScreen from './connect/screens/Merchant';
|
|
5
7
|
import ConnectOTPScreen from './connect/screens/OTP';
|
|
6
8
|
import ThankYouScreen from './connect/screens/ThankYou';
|
|
9
|
+
import ConnectExpressMobileScreen from './connectExpress/screens/Mobile';
|
|
10
|
+
import ConnectExpressNIDScreen from './connectExpress/screens/NID';
|
|
11
|
+
import ConnectExpressCivilIDScreen from './connectExpress/screens/CivilID';
|
|
12
|
+
import ConnectExpressVerifyPACIScreen from './connectExpress/screens/VerifyPACI';
|
|
13
|
+
import ConnectExpressOTPScreen from './connectExpress/screens/OTP';
|
|
14
|
+
import ConnectExpressNIDMissedScreen from './connectExpress/screens/NIDMissed';
|
|
15
|
+
import ConnectExpressCivilIDMissedScreen from './connectExpress/screens/CivilIDMissed';
|
|
16
|
+
import ConnectExpressIdentityVerifyPACIScreen from './connectExpress/screens/IdentityVerifyPACI';
|
|
17
|
+
import ConnectExpressIdentityVerifyOTPScreen from './connectExpress/screens/IdentityOTP';
|
|
18
|
+
import ConnectExpressCollectIndividualScreen from './connectExpress/screens/CollectIndividualInfo';
|
|
19
|
+
import ConnectExpressCollectBusinessScreen from './connectExpress/screens/CollectBusinessInfo';
|
|
20
|
+
import ConnectExpressCreateAccountLoaderScreen from './connectExpress/screens/CreateAccountLoader';
|
|
21
|
+
import ConnectExpressSuccessFlowButtonsScreen from '../features/connectExpress/screens/SuccessWithFlowButtons';
|
|
22
|
+
import ConnectExpressAccountAlreadyCreatedScreen from '../features/connectExpress/screens/AccountAlreadyCreated';
|
|
7
23
|
import CustomersPage from './business/screens/Customers';
|
|
8
24
|
import IDBODPage from './business/screens/IDBOD';
|
|
9
25
|
import BusinessVerifyPage from './business/screens/Verify';
|
|
@@ -13,6 +29,8 @@ import ActivitiesPage from './business/screens/Activities';
|
|
|
13
29
|
import SuccessPage from './business/screens/Success';
|
|
14
30
|
import SuccessWithFlowButtonsPage from './business/screens/SuccessWithFlowButtons';
|
|
15
31
|
import ResetPasswordSuccessPage from './business/screens/ResetPasswordSuccess';
|
|
32
|
+
import BusCivilIDscreen from './business/screens/CivilID';
|
|
33
|
+
import BusVerifyPACIScreen from './business/screens/VerifyPACI';
|
|
16
34
|
import PasswordVerifyPage from './password/screens/Verify';
|
|
17
35
|
import CreatePasswordPage from './password/screens/CreatePassword';
|
|
18
36
|
import PasswordOTPPage from './password/screens/OTP';
|
|
@@ -24,32 +42,46 @@ import AdditionalIndividualInfoPage from './individual/screens/AdditionalIndivid
|
|
|
24
42
|
import SuccessOwnerPage from './individual/screens/Success';
|
|
25
43
|
import IndividualSuccessWithFlowPage from './individual/screens/SuccessWithFlowButtons';
|
|
26
44
|
import IndividualResetPasswordSuccessPage from './individual/screens/ResetPasswordSuccess';
|
|
45
|
+
import IndividualDataLoadingPage from './individual/screens/PrepareDataLoading';
|
|
27
46
|
import BankVerifyPage from './bank/screens/Verify';
|
|
28
47
|
import BankDetailsPage from './bank/screens/BankDetails';
|
|
29
48
|
import BankSuccessPage from './bank/screens/Success';
|
|
30
49
|
import BankSuccessWithFlowPage from './bank/screens/SuccessWithFlowButtons';
|
|
31
50
|
import BankResetPasswordSuccessPage from './bank/screens/ResetPasswordSuccess';
|
|
51
|
+
import BankDataLoadingPage from './bank/screens/PrepareDataLoading';
|
|
32
52
|
import TaxVerifyPage from './tax/screens/Verify';
|
|
33
53
|
import TaxDetailsPage from './tax/screens/TaxDetails';
|
|
34
54
|
import TaxSuccessPage from './tax/screens/Success';
|
|
35
55
|
import TaxSuccessWithFlowPage from './tax/screens/SuccessWithFlowButtons';
|
|
36
56
|
import TaxResetPasswordSuccessPage from './tax/screens/ResetPasswordSuccess';
|
|
57
|
+
import TaxDataLoadingPage from './tax/screens/PrepareDataLoading';
|
|
37
58
|
import SignInMobilePage from './signIn/screens/Mobile';
|
|
38
59
|
import SignInEmailPage from './signIn/screens/Email';
|
|
39
60
|
import SignInOTPPage from './signIn/screens/OTP';
|
|
40
61
|
import SignInPasswordPage from './signIn/screens/Password';
|
|
41
62
|
import EntityVerifyPage from './entity/screens/Verify';
|
|
42
|
-
import
|
|
63
|
+
import EntityNamePage from './entity/screens/EntityName';
|
|
64
|
+
import EntityCapitalPage from './entity/screens/EntityCapital';
|
|
43
65
|
import EntitySuccessPage from './entity/screens/Success';
|
|
44
66
|
import EntitySuccessWithFlowPage from './entity/screens/SuccessWithFlowButtons';
|
|
45
67
|
import EntityResetPasswordSuccessPage from './entity/screens/ResetPasswordSuccess';
|
|
46
|
-
import
|
|
47
|
-
import
|
|
68
|
+
import EntityDataLoadingPage from './entity/screens/PrepareDataLoading';
|
|
69
|
+
import BrandVerifyPage from './brand/screens/Verify';
|
|
70
|
+
import BrandInfoPage from './brand/screens/BrandInfo';
|
|
71
|
+
import BrandActivitiesPage from './brand/screens/BrandActivities';
|
|
72
|
+
import BrandSuccessPage from './brand/screens/Success';
|
|
73
|
+
import BrandSuccessWithFlowPage from './brand/screens/SuccessWithFlowButtons';
|
|
74
|
+
import BrandResetPasswordSuccessPage from './brand/screens/ResetPasswordSuccess';
|
|
75
|
+
import BrandDataLoadingPage from './brand/screens/PrepareDataLoading';
|
|
48
76
|
export var connectFeatureScreens = [
|
|
49
77
|
{
|
|
50
78
|
name: 'CONNECT_NID_STEP',
|
|
51
79
|
element: NIDScreen
|
|
52
80
|
},
|
|
81
|
+
{
|
|
82
|
+
name: 'CONNECT_CIVIL_ID_STEP',
|
|
83
|
+
element: ConnectCivilIDScreen
|
|
84
|
+
},
|
|
53
85
|
{
|
|
54
86
|
name: 'CONNECT_MOBILE_STEP',
|
|
55
87
|
element: MobileScreen
|
|
@@ -58,6 +90,10 @@ export var connectFeatureScreens = [
|
|
|
58
90
|
name: 'CONNECT_OTP_STEP',
|
|
59
91
|
element: ConnectOTPScreen
|
|
60
92
|
},
|
|
93
|
+
{
|
|
94
|
+
name: 'CONNECT_VERIFY_PACI_STEP',
|
|
95
|
+
element: ConnectVerifyPACIScreen
|
|
96
|
+
},
|
|
61
97
|
{
|
|
62
98
|
name: 'CONNECT_INDIVIDUAL_STEP',
|
|
63
99
|
element: IndividualScreen
|
|
@@ -71,6 +107,64 @@ export var connectFeatureScreens = [
|
|
|
71
107
|
element: ThankYouScreen
|
|
72
108
|
}
|
|
73
109
|
];
|
|
110
|
+
export var connectExpressFeatureScreens = [
|
|
111
|
+
{
|
|
112
|
+
name: 'CONNECT_EXPRESS_NID_STEP',
|
|
113
|
+
element: ConnectExpressNIDScreen
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'CONNECT_EXPRESS_CIVIL_ID_STEP',
|
|
117
|
+
element: ConnectExpressCivilIDScreen
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
121
|
+
element: ConnectExpressMobileScreen
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'CONNECT_EXPRESS_OTP_STEP',
|
|
125
|
+
element: ConnectExpressOTPScreen
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'CONNECT_EXPRESS_VERIFY_PACI_STEP',
|
|
129
|
+
element: ConnectExpressVerifyPACIScreen
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'CONNECT_EXPRESS_NID_MISSED_STEP',
|
|
133
|
+
element: ConnectExpressNIDMissedScreen
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
|
|
137
|
+
element: ConnectExpressCivilIDMissedScreen
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'CONNECT_EXPRESS_VERIFY_PACI_IDENTITY_STEP',
|
|
141
|
+
element: ConnectExpressIdentityVerifyPACIScreen
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'CONNECT_EXPRESS_OTP_IDENTITY_STEP',
|
|
145
|
+
element: ConnectExpressIdentityVerifyOTPScreen
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
149
|
+
element: ConnectExpressCreateAccountLoaderScreen
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
153
|
+
element: ConnectExpressCollectIndividualScreen
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP',
|
|
157
|
+
element: ConnectExpressCollectBusinessScreen
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: 'CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP',
|
|
161
|
+
element: ConnectExpressAccountAlreadyCreatedScreen
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP',
|
|
165
|
+
element: ConnectExpressSuccessFlowButtonsScreen
|
|
166
|
+
}
|
|
167
|
+
];
|
|
74
168
|
export var businessFeatureScreens = [
|
|
75
169
|
{
|
|
76
170
|
name: 'BUSINESS_VERIFY_STEP',
|
|
@@ -80,6 +174,14 @@ export var businessFeatureScreens = [
|
|
|
80
174
|
name: 'BUSINESS_IDBOD_STEP',
|
|
81
175
|
element: IDBODPage
|
|
82
176
|
},
|
|
177
|
+
{
|
|
178
|
+
name: 'BUSINESS_CIVIL_ID_STEP',
|
|
179
|
+
element: BusCivilIDscreen
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'BUSINESS_VERIFY_PACI_STEP',
|
|
183
|
+
element: BusVerifyPACIScreen
|
|
184
|
+
},
|
|
83
185
|
{
|
|
84
186
|
name: 'BUSINESS_OTP_STEP',
|
|
85
187
|
element: BusinessOTPPage
|
|
@@ -128,6 +230,10 @@ export var individualFeatureScreens = [
|
|
|
128
230
|
name: 'INDIVIDUAL_VERIFY_STEP',
|
|
129
231
|
element: IndividualVerifyPage
|
|
130
232
|
},
|
|
233
|
+
{
|
|
234
|
+
name: 'INDIVIDUAL_LOADING_DATA_STEP',
|
|
235
|
+
element: IndividualDataLoadingPage
|
|
236
|
+
},
|
|
131
237
|
{
|
|
132
238
|
name: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
|
|
133
239
|
element: AdditionalIndividualInfoPage
|
|
@@ -147,6 +253,10 @@ export var bankFeatureScreens = [
|
|
|
147
253
|
name: 'BANK_VERIFY_STEP',
|
|
148
254
|
element: BankVerifyPage
|
|
149
255
|
},
|
|
256
|
+
{
|
|
257
|
+
name: 'BANK_LOADING_DATA_STEP',
|
|
258
|
+
element: BankDataLoadingPage
|
|
259
|
+
},
|
|
150
260
|
{
|
|
151
261
|
name: 'BANK_BANK_DETAILS_STEP',
|
|
152
262
|
element: BankDetailsPage
|
|
@@ -166,6 +276,10 @@ export var taxFeatureScreens = [
|
|
|
166
276
|
name: 'TAX_VERIFY_STEP',
|
|
167
277
|
element: TaxVerifyPage
|
|
168
278
|
},
|
|
279
|
+
{
|
|
280
|
+
name: 'TAX_LOADING_DATA_STEP',
|
|
281
|
+
element: TaxDataLoadingPage
|
|
282
|
+
},
|
|
169
283
|
{
|
|
170
284
|
name: 'TAX_TAX_DETAILS_STEP',
|
|
171
285
|
element: TaxDetailsPage
|
|
@@ -204,8 +318,16 @@ export var entityFeatureScreens = [
|
|
|
204
318
|
element: EntityVerifyPage
|
|
205
319
|
},
|
|
206
320
|
{
|
|
207
|
-
name: '
|
|
208
|
-
element:
|
|
321
|
+
name: 'ENTITY_LOADING_DATA_STEP',
|
|
322
|
+
element: EntityDataLoadingPage
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: 'ENTITY_NAME_STEP',
|
|
326
|
+
element: EntityNamePage
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: 'ENTITY_CAPITAL_STEP',
|
|
330
|
+
element: EntityCapitalPage
|
|
209
331
|
},
|
|
210
332
|
{
|
|
211
333
|
name: 'ENTITY_DETAILS_SUCCESS_STEP',
|
|
@@ -217,15 +339,30 @@ export var entityFeatureScreens = [
|
|
|
217
339
|
},
|
|
218
340
|
{ name: 'ENTITY_RESET_PASSWORD_SUCCESS', element: EntityResetPasswordSuccessPage }
|
|
219
341
|
];
|
|
220
|
-
export var
|
|
342
|
+
export var brandFeatureScreens = [
|
|
221
343
|
{
|
|
222
|
-
name: '
|
|
223
|
-
element:
|
|
224
|
-
}
|
|
225
|
-
];
|
|
226
|
-
export var authFeatureScreens = [
|
|
344
|
+
name: 'BRAND_VERIFY_STEP',
|
|
345
|
+
element: BrandVerifyPage
|
|
346
|
+
},
|
|
227
347
|
{
|
|
228
|
-
name: '
|
|
229
|
-
element:
|
|
230
|
-
}
|
|
348
|
+
name: 'BRAND_LOADING_DATA_STEP',
|
|
349
|
+
element: BrandDataLoadingPage
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: 'BRAND_INFO_STEP',
|
|
353
|
+
element: BrandInfoPage
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: 'BRAND_ACTIVITIES_STEP',
|
|
357
|
+
element: BrandActivitiesPage
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: 'BRAND_DETAILS_SUCCESS_STEP',
|
|
361
|
+
element: BrandSuccessPage
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
365
|
+
element: BrandSuccessWithFlowPage
|
|
366
|
+
},
|
|
367
|
+
{ name: 'BRAND_RESET_PASSWORD_SUCCESS', element: BrandResetPasswordSuccessPage }
|
|
231
368
|
];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LibConfig } from '../../@types';
|
|
3
3
|
export interface IndividualLibProps extends LibConfig {
|
|
4
|
+
verifyToken?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function renderIndividualLib(config: IndividualLibProps, elementId: string):
|
|
7
|
-
|
|
6
|
+
export declare function IndividualElement(props: IndividualLibProps): JSX.Element;
|
|
7
|
+
export declare function renderIndividualLib(config: IndividualLibProps, elementId: string): {
|
|
8
|
+
unmount: () => void;
|
|
9
|
+
};
|
|
@@ -9,62 +9,64 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
12
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { memo
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
24
|
+
import { memo } from 'react';
|
|
25
|
+
import { createRoot } from 'react-dom/client';
|
|
26
|
+
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useVerifyToken } from '../../hooks';
|
|
27
|
+
import { settingsSelector } from '../../app/settings';
|
|
16
28
|
import AnimationFlow from '../../components/AnimationFlow';
|
|
17
29
|
import { store } from '../../app/store';
|
|
18
30
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
19
31
|
import Collapse from '../../components/Collapse';
|
|
20
|
-
import {
|
|
32
|
+
import { createElementAndInject } from '../../utils';
|
|
21
33
|
import { FeatureContainer } from '../shared/Containers';
|
|
22
|
-
import {
|
|
34
|
+
import { INDIVIDUAL_SCREENS_NAVIGATION } from '../../constants';
|
|
23
35
|
import { individualFeatureScreens } from '../featuresScreens';
|
|
24
36
|
import { individualSelector, verifyLeadToken } from '../app/individual/individualStore';
|
|
25
37
|
import CustomFooter from '../shared/Footer';
|
|
26
38
|
import Background from '../shared/Background';
|
|
27
|
-
var Individual = memo(function (
|
|
39
|
+
var Individual = memo(function (_a) {
|
|
40
|
+
var verifyToken = _a.verifyToken, props = __rest(_a, ["verifyToken"]);
|
|
28
41
|
var theme = useAppTheme().theme;
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
useAppConfig(__assign({ navigation: INDIVIDUAL_SCREENS_NAVIGATION }, props));
|
|
42
|
+
var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
|
|
43
|
+
var _c = useAppSelector(individualSelector), customLoading = _c.customLoading, individualError = _c.error, loading = _c.loading;
|
|
44
|
+
useAppConfig(__assign(__assign({ navigation: INDIVIDUAL_SCREENS_NAVIGATION }, props), { disableSettingFetching: !!verifyToken }));
|
|
33
45
|
useErrorListener(individualError || error);
|
|
34
46
|
useStepStartedListener();
|
|
35
|
-
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (!settingLoading)
|
|
47
|
-
verifyToken();
|
|
48
|
-
}, [settingLoading]);
|
|
49
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: individualFeatureScreens.map(function (_a, index) {
|
|
47
|
+
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open, featureScreensNavigation = data.featureScreensNavigation;
|
|
48
|
+
useVerifyToken({
|
|
49
|
+
verify: verifyLeadToken,
|
|
50
|
+
loadingScreenName: 'INDIVIDUAL_LOADING_DATA_STEP',
|
|
51
|
+
navigation: featureScreensNavigation,
|
|
52
|
+
open: open,
|
|
53
|
+
internalToken: verifyToken,
|
|
54
|
+
settingLoading: settingLoading
|
|
55
|
+
});
|
|
56
|
+
var initialLoading = verifyToken ? settingLoading : settingLoading || customLoading;
|
|
57
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: individualFeatureScreens.map(function (_a, index) {
|
|
50
58
|
var Element = _a.element, name = _a.name;
|
|
51
59
|
var isActive = activeScreen.name === name;
|
|
52
60
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
53
61
|
}) }) })) })) })));
|
|
54
62
|
});
|
|
55
|
-
export function
|
|
63
|
+
export function IndividualElement(props) {
|
|
56
64
|
return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Individual, __assign({}, props)) })));
|
|
57
65
|
}
|
|
58
66
|
export function renderIndividualLib(config, elementId) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
setTimeout(function () {
|
|
65
|
-
var _a;
|
|
66
|
-
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
67
|
-
removeElement(DIALOG_ID);
|
|
68
|
-
reactElement(elementId).unmount();
|
|
69
|
-
}, unmountTimeout);
|
|
67
|
+
var element = createElementAndInject(elementId);
|
|
68
|
+
var root = createRoot(element);
|
|
69
|
+
root.render(_jsx(IndividualElement, __assign({}, config)));
|
|
70
|
+
var unmount = function () { return root.unmount(); };
|
|
71
|
+
return { unmount: unmount };
|
|
70
72
|
}
|
package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js
CHANGED
|
@@ -15,7 +15,7 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
15
15
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
16
16
|
import Box from '@mui/material/Box';
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
|
-
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
18
|
+
import { useAppDispatch, useAppSelector, useSetFromDefaultValues } from '../../../../hooks';
|
|
19
19
|
import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
|
|
20
20
|
import Form from '../../../../components/Form';
|
|
21
21
|
import Collapse from '../../../../components/Collapse';
|
|
@@ -31,6 +31,8 @@ import EmployerLocation from './EmployerLocation';
|
|
|
31
31
|
import SourceOfIncome from './SourceOfIncome';
|
|
32
32
|
import { individualSelector, updateIndividualInfo } from '../../../app/individual/individualStore';
|
|
33
33
|
import Occupation from './Occupation';
|
|
34
|
+
import CivilIDFile from './CivilIDFile';
|
|
35
|
+
import SignatureFile from './SignatureFile';
|
|
34
36
|
var ListType;
|
|
35
37
|
(function (ListType) {
|
|
36
38
|
ListType["SourceOfIncomeList"] = "SourceOfIncomeList";
|
|
@@ -45,40 +47,35 @@ var AdditionalIndividualInfo = function (_a) {
|
|
|
45
47
|
var _b = useAppSelector(individualSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
46
48
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
47
49
|
var countries = settingsData.countries;
|
|
48
|
-
var
|
|
50
|
+
var user = (data.verify.responseBody || {}).user;
|
|
51
|
+
var _c = data.individualData, occupation = _c.occupation, sourceIncome = _c.sourceIncome, monthlyIncome = _c.monthlyIncome, employerName = _c.employerName, employerLocation = _c.employerLocation, isPEP = _c.isPEP, isInfluencer = _c.isInfluencer, civilID = _c.civilID, signatureFileId = _c.signatureFileId, civilIDUploading = _c.civilIDUploading, signatureFileUploading = _c.signatureFileUploading;
|
|
49
52
|
var methods = useForm({
|
|
50
53
|
resolver: yupResolver(IndividualInfoValidationSchema),
|
|
51
|
-
defaultValues:
|
|
54
|
+
defaultValues: {
|
|
55
|
+
occupation: occupation,
|
|
56
|
+
sourceIncome: sourceIncome,
|
|
57
|
+
monthlyIncome: monthlyIncome,
|
|
58
|
+
employerName: employerName,
|
|
59
|
+
employerLocation: employerLocation,
|
|
60
|
+
isPEP: isPEP,
|
|
61
|
+
isInfluencer: isInfluencer,
|
|
62
|
+
civilID: civilID,
|
|
63
|
+
signatureFileId: signatureFileId,
|
|
64
|
+
civilIDUploading: civilIDUploading,
|
|
65
|
+
signatureFileUploading: signatureFileUploading
|
|
66
|
+
},
|
|
52
67
|
mode: 'onChange'
|
|
53
68
|
});
|
|
69
|
+
useSetFromDefaultValues(methods, data.individualData, true);
|
|
54
70
|
var _d = React.useState(), listActive = _d[0], setListActive = _d[1];
|
|
55
71
|
var _e = React.useState(false), employerFieldsActive = _e[0], setEmployerFieldsActive = _e[1];
|
|
56
72
|
React.useEffect(function () {
|
|
57
73
|
var _a, _b;
|
|
58
|
-
if (((_b = (_a = methods.getValues('sourceIncome')) === null || _a === void 0 ? void 0 : _a.
|
|
74
|
+
if (((_b = (_a = methods.getValues('sourceIncome')) === null || _a === void 0 ? void 0 : _a.name.en) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'salary')
|
|
59
75
|
setEmployerFieldsActive(true);
|
|
60
|
-
else
|
|
76
|
+
else
|
|
61
77
|
setEmployerFieldsActive(false);
|
|
62
|
-
}
|
|
63
78
|
}, [methods.watch('sourceIncome')]);
|
|
64
|
-
React.useEffect(function () {
|
|
65
|
-
if (!!sourceIncome) {
|
|
66
|
-
methods.setValue('sourceIncome', sourceIncome);
|
|
67
|
-
}
|
|
68
|
-
if (!!monthlyIncome) {
|
|
69
|
-
methods.setValue('monthlyIncome', monthlyIncome);
|
|
70
|
-
}
|
|
71
|
-
if (!!employerLocation) {
|
|
72
|
-
methods.setValue('employerLocation', employerLocation);
|
|
73
|
-
}
|
|
74
|
-
if (!!occupation) {
|
|
75
|
-
methods.setValue('occupation', occupation);
|
|
76
|
-
}
|
|
77
|
-
if (isPEP !== undefined)
|
|
78
|
-
methods.setValue('isPEP', isPEP);
|
|
79
|
-
if (isInfluencer !== undefined)
|
|
80
|
-
methods.setValue('isInfluencer', isInfluencer);
|
|
81
|
-
}, [data.individualData]);
|
|
82
79
|
var onSubmit = function (data) {
|
|
83
80
|
dispatch(updateIndividualInfo(data));
|
|
84
81
|
};
|
|
@@ -92,10 +89,8 @@ var AdditionalIndividualInfo = function (_a) {
|
|
|
92
89
|
var isEmployerLocationListActive = listActive === ListType.EmployerLocationList;
|
|
93
90
|
var isMonthlyIncomeListActive = listActive === ListType.MonthlyIncomeList;
|
|
94
91
|
var isOccupationListActive = listActive === ListType.OccupationList;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
!isMonthlyIncomeListActive &&
|
|
98
|
-
!isOccupationListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.EmployerLocationList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
|
|
92
|
+
var disabled = !methods.formState.isValid || civilIDUploading || signatureFileUploading;
|
|
93
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(Occupation, { onListOpen: function () { return handleMenuClick(ListType.OccupationList); }, onListClose: function () { return handleMenuClick(); }, show: !isEmployerLocationListActive && !isMonthlyIncomeListActive && !isSourceOfIncomeListActive }), _jsx(SourceOfIncome, { onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: !isEmployerLocationListActive && !isMonthlyIncomeListActive && !isOccupationListActive }), _jsx(MonthlyIncome, { show: !isEmployerLocationListActive && !isSourceOfIncomeListActive && !isOccupationListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EmployerName, { show: false }), _jsx(EmployerLocation, { show: !isSourceOfIncomeListActive && employerFieldsActive && !isMonthlyIncomeListActive && !isOccupationListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.EmployerLocationList); }, onListClose: function () { return handleMenuClick(); } }), _jsxs(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: [_jsx(CivilIDFile, {}), _jsx(SignatureFile, { show: user === null || user === void 0 ? void 0 : user.is_authorized })] })), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disableBack: true, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
|
|
99
94
|
};
|
|
100
95
|
export default React.memo(AdditionalIndividualInfo);
|
|
101
96
|
AdditionalIndividualInfo.defaultProps = {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ScreenContainer } from '../../../../features/shared/Containers';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
6
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
7
|
+
import { civilIDUploadingStatus, individualSelector } from '../../../app/individual/individualStore';
|
|
8
|
+
import UploadMultipleFile from '../../../shared/UploadMultipleFile';
|
|
9
|
+
var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
10
|
+
var theme = _a.theme;
|
|
11
|
+
return ({
|
|
12
|
+
marginBlockStart: theme.spacing(3)
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
var CivilIDFile = function () {
|
|
16
|
+
var _a;
|
|
17
|
+
var t = useTranslation().t;
|
|
18
|
+
var dispatch = useAppDispatch();
|
|
19
|
+
var control = useFormContext().control;
|
|
20
|
+
var civilIDFileIdControl = useController({ name: 'civilID', control: control });
|
|
21
|
+
var _b = useAppSelector(individualSelector), loading = _b.loading, data = _b.data;
|
|
22
|
+
var handleCivilIDChange = function (ids) {
|
|
23
|
+
civilIDFileIdControl.field.onChange(ids);
|
|
24
|
+
};
|
|
25
|
+
var handleReset = function (ids) {
|
|
26
|
+
civilIDFileIdControl.field.onChange(ids);
|
|
27
|
+
};
|
|
28
|
+
return (_jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { label: t('title_civil_id'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop_civilID'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_civil_id'), onFileUploaded: handleCivilIDChange, isSubmitting: loading, onDeleteFile: handleReset, maxLimit: 4, fileTitle: (_a = data.verify.responseBody) === null || _a === void 0 ? void 0 : _a.merchant_id, purpose: 'identity_document', fileUploadingStatus: function (uploading) { return dispatch(civilIDUploadingStatus(uploading)); } }) }));
|
|
29
|
+
};
|
|
30
|
+
export default CivilIDFile;
|
|
@@ -20,6 +20,9 @@ import Mandatory from '../../../shared/Mandatory';
|
|
|
20
20
|
import Text from '../../../../components/Text';
|
|
21
21
|
import RadioGroup from '../../../../components/RadioGroup';
|
|
22
22
|
import RadioLabel from '../../../../components/RadioLabel';
|
|
23
|
+
import { InfoIconStyled, InfoOutlinedIconStyled } from './PEPSwitch';
|
|
24
|
+
import Box from '@mui/material/Box';
|
|
25
|
+
import Tooltip from '../../../../components/Tooltip';
|
|
23
26
|
var LabelTextStyled = styled(Text)(function (_a) {
|
|
24
27
|
var theme = _a.theme;
|
|
25
28
|
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), marginBlockEnd: theme.spacing(0.625) }));
|
|
@@ -32,6 +35,7 @@ var RadioGroupStyled = styled(RadioGroup)(function (_a) {
|
|
|
32
35
|
});
|
|
33
36
|
var InfluencerSwitch = function (_a) {
|
|
34
37
|
var show = _a.show;
|
|
38
|
+
var _b = React.useState(false), isHovered = _b[0], setIsHovered = _b[1];
|
|
35
39
|
var control = useFormContext().control;
|
|
36
40
|
var t = useTranslation().t;
|
|
37
41
|
var influencerControl = useController({ name: 'isInfluencer', control: control });
|
|
@@ -40,6 +44,6 @@ var InfluencerSwitch = function (_a) {
|
|
|
40
44
|
influencerControl.field.onChange(target.value === 'yes');
|
|
41
45
|
};
|
|
42
46
|
var influencerValue = influencerControl.field.value;
|
|
43
|
-
return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pt: 2.5, pl: 2.5, pr: 2.5 } }, { children: [_jsxs(LabelTextStyled, { children: [t('tap_js_are_you_an_influencer'), _jsx(Mandatory, {})] }), _jsxs(RadioGroupStyled, __assign({ value: influencerValue != null ? (influencerValue ? 'yes' : 'no') : false, onChange: handleOnChange }, { children: [_jsx(RadioLabel, { value: 'yes', label: t('yes') }), _jsx(RadioLabel, { value: 'no', label: t('no') })] }))] })) })));
|
|
47
|
+
return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pt: 2.5, pl: 2.5, pr: 2.5 } }, { children: [_jsxs(Box, __assign({ style: { display: 'flex', justifyContent: 'space-between' } }, { children: [_jsxs(LabelTextStyled, { children: [t('tap_js_are_you_an_influencer'), _jsx(Mandatory, {})] }), _jsx(Tooltip, __assign({ title: t('influencer_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] })), _jsxs(RadioGroupStyled, __assign({ value: influencerValue != null ? (influencerValue ? 'yes' : 'no') : false, onChange: handleOnChange }, { children: [_jsx(RadioLabel, { value: 'yes', label: t('yes') }), _jsx(RadioLabel, { value: 'no', label: t('no') })] }))] })) })));
|
|
44
48
|
};
|
|
45
49
|
export default React.memo(InfluencerSwitch);
|
|
@@ -35,6 +35,9 @@ import { individualSelector } from '../../../app/individual/individualStore';
|
|
|
35
35
|
import Text from '../../../../components/Text';
|
|
36
36
|
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
37
37
|
import SimpleList from '../../../../components/SimpleList';
|
|
38
|
+
import Search from '../../../../features/shared/Search';
|
|
39
|
+
import { findCurrencyByIso2 } from '../../../../utils';
|
|
40
|
+
import { settingsSelector } from '../../../../app/settings';
|
|
38
41
|
var Container = styled(Box)(function () { return ({
|
|
39
42
|
display: 'flex'
|
|
40
43
|
}); });
|
|
@@ -59,8 +62,10 @@ var MonthlyIncome = function (_a) {
|
|
|
59
62
|
var isAr = useLanguage().isAr;
|
|
60
63
|
var data = useAppSelector(individualSelector).data;
|
|
61
64
|
var control = useFormContext().control;
|
|
65
|
+
var settingsData = useAppSelector(settingsSelector).data;
|
|
62
66
|
var monthlyIncomeList = (data.individualData.responseBody || {}).monthlyIncomeList;
|
|
63
67
|
var monthlyIncomeControl = useController({ control: control, name: 'monthlyIncome' });
|
|
68
|
+
var countryCode = settingsData.businessCountry;
|
|
64
69
|
React.useEffect(function () {
|
|
65
70
|
if ((monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.length) > 0) {
|
|
66
71
|
setIncomeList(monthlyIncomeList);
|
|
@@ -75,15 +80,28 @@ var MonthlyIncome = function (_a) {
|
|
|
75
80
|
var _a;
|
|
76
81
|
setAnchorEl(null);
|
|
77
82
|
(_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
83
|
+
if ((monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.length) > 0) {
|
|
84
|
+
setIncomeList(monthlyIncomeList);
|
|
85
|
+
}
|
|
78
86
|
};
|
|
79
87
|
var onSelectItem = function (source) {
|
|
80
88
|
onCloseList();
|
|
81
89
|
monthlyIncomeControl.field.onChange(source);
|
|
82
90
|
};
|
|
91
|
+
var handleSearch = function (value) {
|
|
92
|
+
var filteredList = monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.filter(function (income) {
|
|
93
|
+
var _a, _b, _c, _d;
|
|
94
|
+
return ((_b = (_a = income === null || income === void 0 ? void 0 : income.range) === null || _a === void 0 ? void 0 : _a.en) === null || _b === void 0 ? void 0 : _b.replace(',', '').toLowerCase().includes(value.toLowerCase())) ||
|
|
95
|
+
((_d = (_c = income === null || income === void 0 ? void 0 : income.range) === null || _c === void 0 ? void 0 : _c.ar) === null || _d === void 0 ? void 0 : _d.replace(',', '').toLowerCase().includes(value.toLowerCase()));
|
|
96
|
+
});
|
|
97
|
+
setIncomeList(filteredList);
|
|
98
|
+
};
|
|
83
99
|
var income = monthlyIncomeControl.field.value;
|
|
84
100
|
var error = (_b = monthlyIncomeControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
85
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(Input, { label: t('please_enter_actual_income'
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(Input, { label: t('please_enter_actual_income', {
|
|
102
|
+
currency: t(findCurrencyByIso2(countryCode.iso2))
|
|
103
|
+
}), readOnly: true, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleList, { searchKeyPath: 'range.en', list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
104
|
+
return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (income === null || income === void 0 ? void 0 : income.id) }, { children: isAr ? item.range.ar : item === null || item === void 0 ? void 0 : item.range.en })) }), item.id === (income === null || income === void 0 ? void 0 : income.id) && _jsx(CheckIconStyled, {})] }));
|
|
105
|
+
} })] }))] })) })));
|
|
88
106
|
};
|
|
89
107
|
export default React.memo(MonthlyIncome);
|
|
@@ -35,6 +35,7 @@ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
|
35
35
|
import Input from '../../../shared/Input';
|
|
36
36
|
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
37
37
|
import SimpleList from '../../../../components/SimpleList';
|
|
38
|
+
import Search from '../../../../features/shared/Search';
|
|
38
39
|
var Container = styled(Box)(function () { return ({
|
|
39
40
|
display: 'flex'
|
|
40
41
|
}); });
|
|
@@ -80,10 +81,17 @@ var Occupation = function (_a) {
|
|
|
80
81
|
onCloseList();
|
|
81
82
|
occupationControl.field.onChange(occupation);
|
|
82
83
|
};
|
|
84
|
+
var handleSearch = function (value) {
|
|
85
|
+
var filteredList = occupationsList === null || occupationsList === void 0 ? void 0 : occupationsList.filter(function (occupation) {
|
|
86
|
+
return occupation.name.en.toLowerCase().includes(value.toLowerCase()) || occupation.name.ar.toLowerCase().includes(value.toLowerCase());
|
|
87
|
+
});
|
|
88
|
+
setOccupationList(filteredList);
|
|
89
|
+
};
|
|
83
90
|
var occupation = occupationControl.field.value;
|
|
84
91
|
var error = (_c = occupationControl.fieldState.error) === null || _c === void 0 ? void 0 : _c.message;
|
|
85
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 2.5 } }, { children: [_jsx(Input, { required: true, label: t('occupation_title'), readOnly: true, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_any_occupation'), value: (isAr ? occupation === null || occupation === void 0 ? void 0 : occupation.
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 2.5 } }, { children: [_jsx(Input, { required: true, label: t('occupation_title'), readOnly: true, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_any_occupation'), value: (isAr ? occupation === null || occupation === void 0 ? void 0 : occupation.name.ar : occupation === null || occupation === void 0 ? void 0 : occupation.name.en) || '', warningMessage: error && t(error) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleList, { searchKeyPath: 'name.en', list: occupationList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (occupation === null || occupation === void 0 ? void 0 : occupation.id) }, { children: isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en })) }), item.id === (occupation === null || occupation === void 0 ? void 0 : occupation.id) && _jsx(CheckIconStyled, {})] }));
|
|
95
|
+
} })] }))] })) })));
|
|
88
96
|
};
|
|
89
97
|
export default Occupation;
|