@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test
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/build/@types/app.d.ts +39 -14
- package/build/@types/app.js +9 -0
- package/build/@types/form.d.ts +11 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +15 -2
- package/build/api/auth.js +25 -2
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +4 -4
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.d.ts +33 -7
- package/build/api/data.js +42 -17
- package/build/api/entity.d.ts +2 -0
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -7
- package/build/app/rootReducer.js +14 -8
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +11 -5
- package/build/app/store.d.ts +6 -0
- package/build/assets/locales/ar.json +14 -4
- package/build/assets/locales/en.json +14 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -7
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +10 -5
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +115 -10
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -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/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -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/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +10 -7
- package/build/constants/app.d.ts +16 -1
- package/build/constants/app.js +76 -4
- package/build/constants/assets.d.ts +17 -1
- package/build/constants/assets.js +22 -6
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +35 -0
- package/build/features/app/auth/authStore.js +148 -0
- package/build/features/app/bank/bankStore.d.ts +6 -2
- package/build/features/app/bank/bankStore.js +46 -26
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +58 -48
- package/build/features/app/connect/connectStore.d.ts +14 -2
- package/build/features/app/connect/connectStore.js +170 -10
- package/build/features/app/entity/entityStore.d.ts +53 -0
- package/build/features/app/entity/entityStore.js +461 -0
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +28 -0
- package/build/features/app/otp/otpStore.js +153 -0
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +6 -6
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +72 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +44 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +18 -12
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +2 -2
- package/build/features/business/Business.js +20 -13
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +8 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +46 -16
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -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 +7 -7
- package/build/features/connect/screens/Individual/Individual.js +14 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +42 -18
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
- package/build/features/connect/screens/Merchant/validation.js +69 -3
- package/build/features/connect/screens/Mobile/Mobile.js +16 -13
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -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/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +16 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +78 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +4 -1
- package/build/features/featuresScreens.js +88 -40
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +20 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +7 -0
- package/build/features/otp/OTP.js +58 -0
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +1 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
- package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
- package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
- package/build/features/otp/screens/OTPVerify/index.js +2 -0
- package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
- package/build/features/otp/screens/OTPVerify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -13
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.d.ts +7 -5
- package/build/features/shared/Background/Background.js +16 -5
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +62 -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 +4 -4
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/Input/Input.js +4 -4
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +27 -12
- package/build/features/signIn/SignIn.d.ts +2 -2
- package/build/features/signIn/SignIn.js +21 -13
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +21 -13
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +3 -0
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +4 -3
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +12 -9
- package/build/index.js +18 -9
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +1 -0
- package/build/utils/html.js +6 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +2 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +2 -2
- package/build/utils/string.d.ts +23 -21
- package/build/utils/string.js +13 -4
- package/package.json +1 -1
- package/build/api/index.d.ts +0 -83
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
|
@@ -1,48 +1,61 @@
|
|
|
1
|
-
import MobileScreen from '
|
|
2
|
-
import NIDScreen from '
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
1
|
+
import MobileScreen from '@features/connect/screens/Mobile';
|
|
2
|
+
import NIDScreen from '@features/connect/screens/NID';
|
|
3
|
+
import CivilIDScreen from '@src/features/connect/screens/CivilID';
|
|
4
|
+
import VerifyPACIScreen from '@features/connect/screens/VerifyPACI';
|
|
5
|
+
import IndividualScreen from '@features/connect/screens/Individual';
|
|
6
|
+
import MerchantInfoScreen from '@features/connect/screens/Merchant';
|
|
7
|
+
import ConnectOTPScreen from '@features/connect/screens/OTP';
|
|
8
|
+
import ThankYouScreen from '@features/connect/screens/ThankYou';
|
|
9
|
+
import CustomersPage from '@features/business/screens/Customers';
|
|
10
|
+
import IDBODPage from '@features/business/screens/IDBOD';
|
|
11
|
+
import BusinessVerifyPage from '@features/business/screens/Verify';
|
|
12
|
+
import BusinessOTPPage from '@features/business/screens/OTP';
|
|
13
|
+
import BusinessTypePage from '@features/business/screens/BusinessType';
|
|
14
|
+
import ActivitiesPage from '@features/business/screens/Activities';
|
|
15
|
+
import SuccessPage from '@features/business/screens/Success';
|
|
16
|
+
import SuccessWithFlowButtonsPage from '@features/business/screens/SuccessWithFlowButtons';
|
|
17
|
+
import ResetPasswordSuccessPage from '@features/business/screens/ResetPasswordSuccess';
|
|
18
|
+
import PasswordVerifyPage from '@features/password/screens/Verify';
|
|
19
|
+
import CreatePasswordPage from '@features/password/screens/CreatePassword';
|
|
20
|
+
import PasswordOTPPage from '@features/password/screens/OTP';
|
|
21
|
+
import SuccessPasswordPage from '@features/password/screens/Success';
|
|
22
|
+
import PasswordSuccessWithFlowPage from '@features/password/screens/SuccessWithFlowButtons';
|
|
23
|
+
import PasswordResetPasswordSuccessPage from '@features/password/screens/ResetPasswordSuccess';
|
|
24
|
+
import IndividualVerifyPage from '@features/individual/screens/Verify';
|
|
25
|
+
import AdditionalIndividualInfoPage from '@features/individual/screens/AdditionalIndividualInfo';
|
|
26
|
+
import SuccessOwnerPage from '@features/individual/screens/Success';
|
|
27
|
+
import IndividualSuccessWithFlowPage from '@features/individual/screens/SuccessWithFlowButtons';
|
|
28
|
+
import IndividualResetPasswordSuccessPage from '@features/individual/screens/ResetPasswordSuccess';
|
|
29
|
+
import BankVerifyPage from '@features/bank/screens/Verify';
|
|
30
|
+
import BankDetailsPage from '@features/bank/screens/BankDetails';
|
|
31
|
+
import BankSuccessPage from '@features/bank/screens/Success';
|
|
32
|
+
import BankSuccessWithFlowPage from '@features/bank/screens/SuccessWithFlowButtons';
|
|
33
|
+
import BankResetPasswordSuccessPage from '@features/bank/screens/ResetPasswordSuccess';
|
|
34
|
+
import TaxVerifyPage from '@features/tax/screens/Verify';
|
|
35
|
+
import TaxDetailsPage from '@features/tax/screens/TaxDetails';
|
|
36
|
+
import TaxSuccessPage from '@features/tax/screens/Success';
|
|
37
|
+
import TaxSuccessWithFlowPage from '@features/tax/screens/SuccessWithFlowButtons';
|
|
38
|
+
import TaxResetPasswordSuccessPage from '@features/tax/screens/ResetPasswordSuccess';
|
|
39
|
+
import SignInMobilePage from '@features/signIn/screens/Mobile';
|
|
40
|
+
import SignInEmailPage from '@features/signIn/screens/Email';
|
|
41
|
+
import SignInOTPPage from '@features/signIn/screens/OTP';
|
|
42
|
+
import SignInPasswordPage from '@features/signIn/screens/Password';
|
|
43
|
+
import EntityVerifyPage from '@features/entity/screens/Verify';
|
|
44
|
+
import EntityInfoConfirmPage from '@features/entity/screens/EntityInfoConfirm';
|
|
45
|
+
import EntitySuccessPage from '@features/entity/screens/Success';
|
|
46
|
+
import EntitySuccessWithFlowPage from '@features/entity/screens/SuccessWithFlowButtons';
|
|
47
|
+
import EntityResetPasswordSuccessPage from '@features/entity/screens/ResetPasswordSuccess';
|
|
48
|
+
import OtpVerifyPage from '@src/features/otp/screens/OTPVerify';
|
|
49
|
+
import AuthVerifyPage from '@features/auth/screens/OTP';
|
|
41
50
|
export var connectFeatureScreens = [
|
|
42
51
|
{
|
|
43
52
|
name: 'CONNECT_NID_STEP',
|
|
44
53
|
element: NIDScreen
|
|
45
54
|
},
|
|
55
|
+
{
|
|
56
|
+
name: 'CONNECT_CIVIL_ID_STEP',
|
|
57
|
+
element: CivilIDScreen
|
|
58
|
+
},
|
|
46
59
|
{
|
|
47
60
|
name: 'CONNECT_MOBILE_STEP',
|
|
48
61
|
element: MobileScreen
|
|
@@ -51,6 +64,10 @@ export var connectFeatureScreens = [
|
|
|
51
64
|
name: 'CONNECT_OTP_STEP',
|
|
52
65
|
element: ConnectOTPScreen
|
|
53
66
|
},
|
|
67
|
+
{
|
|
68
|
+
name: 'CONNECT_VERIFY_PACI_STEP',
|
|
69
|
+
element: VerifyPACIScreen
|
|
70
|
+
},
|
|
54
71
|
{
|
|
55
72
|
name: 'CONNECT_INDIVIDUAL_STEP',
|
|
56
73
|
element: IndividualScreen
|
|
@@ -191,3 +208,34 @@ export var signInFeatureScreens = [
|
|
|
191
208
|
element: SignInPasswordPage
|
|
192
209
|
}
|
|
193
210
|
];
|
|
211
|
+
export var entityFeatureScreens = [
|
|
212
|
+
{
|
|
213
|
+
name: 'ENTITY_VERIFY_STEP',
|
|
214
|
+
element: EntityVerifyPage
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'ENTITY_INFO_STEP',
|
|
218
|
+
element: EntityInfoConfirmPage
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'ENTITY_DETAILS_SUCCESS_STEP',
|
|
222
|
+
element: EntitySuccessPage
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
226
|
+
element: EntitySuccessWithFlowPage
|
|
227
|
+
},
|
|
228
|
+
{ name: 'ENTITY_RESET_PASSWORD_SUCCESS', element: EntityResetPasswordSuccessPage }
|
|
229
|
+
];
|
|
230
|
+
export var otpFeatureScreens = [
|
|
231
|
+
{
|
|
232
|
+
name: 'OTP_VERIFY_STEP',
|
|
233
|
+
element: OtpVerifyPage
|
|
234
|
+
}
|
|
235
|
+
];
|
|
236
|
+
export var authFeatureScreens = [
|
|
237
|
+
{
|
|
238
|
+
name: 'AUTH_VERIFY_STEP',
|
|
239
|
+
element: AuthVerifyPage
|
|
240
|
+
}
|
|
241
|
+
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LibConfig } from '
|
|
2
|
+
import { LibConfig } from '@types';
|
|
3
3
|
export interface IndividualLibProps extends LibConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function IndividualLib(props: IndividualLibProps): JSX.Element;
|
|
6
6
|
export declare function renderIndividualLib(config: IndividualLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountIndividualLib(elementId: string): void;
|
|
7
|
+
export declare function unmountIndividualLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -11,17 +11,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo, useEffect } from 'react';
|
|
14
|
-
import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '
|
|
15
|
-
import { handleLanguage, settingsSelector } from '
|
|
16
|
-
import AnimationFlow from '
|
|
17
|
-
import { store } from '
|
|
18
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import { getParameterByName, reactElement } from '
|
|
21
|
-
import { FeatureContainer } from '
|
|
22
|
-
import { INDIVIDUAL_SCREENS_NAVIGATION } from '
|
|
14
|
+
import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '@hooks';
|
|
15
|
+
import { handleLanguage, settingsSelector } from '@app/settings';
|
|
16
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
17
|
+
import { store } from '@app/store';
|
|
18
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import { getParameterByName, reactElement, removeElement } from '@utils';
|
|
21
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
22
|
+
import { DIALOG_ID, INDIVIDUAL_SCREENS_NAVIGATION } from '@constants';
|
|
23
23
|
import { individualFeatureScreens } from '../featuresScreens';
|
|
24
|
-
import { individualSelector, verifyLeadToken } from '
|
|
24
|
+
import { individualSelector, verifyLeadToken } from '@features/app/individual/individualStore';
|
|
25
25
|
import CustomFooter from '../shared/Footer';
|
|
26
26
|
import Background from '../shared/Background';
|
|
27
27
|
var Individual = memo(function (props) {
|
|
@@ -46,7 +46,7 @@ var Individual = memo(function (props) {
|
|
|
46
46
|
if (!settingLoading)
|
|
47
47
|
verifyToken();
|
|
48
48
|
}, [settingLoading]);
|
|
49
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ 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) {
|
|
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) {
|
|
50
50
|
var Element = _a.element, name = _a.name;
|
|
51
51
|
var isActive = activeScreen.name === name;
|
|
52
52
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
@@ -58,6 +58,13 @@ export function IndividualLib(props) {
|
|
|
58
58
|
export function renderIndividualLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(IndividualLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountIndividualLib(elementId) {
|
|
62
|
-
|
|
61
|
+
export function unmountIndividualLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
63
|
+
var element = document.getElementById(elementId);
|
|
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);
|
|
63
70
|
}
|
package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js
CHANGED
|
@@ -15,13 +15,13 @@ 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 '
|
|
19
|
-
import { handleCurrentActiveScreen, settingsSelector } from '
|
|
20
|
-
import Form from '
|
|
21
|
-
import Collapse from '
|
|
22
|
-
import Button from '
|
|
23
|
-
import ScreenContainer from '
|
|
24
|
-
import { useLanguage } from '
|
|
18
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
19
|
+
import { handleCurrentActiveScreen, settingsSelector } from '@app/settings';
|
|
20
|
+
import Form from '@components/Form';
|
|
21
|
+
import Collapse from '@components/Collapse';
|
|
22
|
+
import Button from '@features/shared/Button';
|
|
23
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
24
|
+
import { useLanguage } from '@hooks';
|
|
25
25
|
import PEPSwitch from './PEPSwitch';
|
|
26
26
|
import { IndividualInfoValidationSchema } from './validation';
|
|
27
27
|
import InfluencerSwitch from './InfluencerSwitch';
|
|
@@ -29,7 +29,7 @@ import MonthlyIncome from './MonthlyIncome';
|
|
|
29
29
|
import EmployerName from './EmployerName';
|
|
30
30
|
import EmployerLocation from './EmployerLocation';
|
|
31
31
|
import SourceOfIncome from './SourceOfIncome';
|
|
32
|
-
import { individualSelector, updateIndividualInfo } from '
|
|
32
|
+
import { individualSelector, updateIndividualInfo } from '@features/app/individual/individualStore';
|
|
33
33
|
import Occupation from './Occupation';
|
|
34
34
|
var ListType;
|
|
35
35
|
(function (ListType) {
|
|
@@ -55,7 +55,7 @@ var AdditionalIndividualInfo = function (_a) {
|
|
|
55
55
|
var _e = React.useState(false), employerFieldsActive = _e[0], setEmployerFieldsActive = _e[1];
|
|
56
56
|
React.useEffect(function () {
|
|
57
57
|
var _a, _b;
|
|
58
|
-
if (((_b = (_a = methods.getValues('sourceIncome')) === null || _a === void 0 ? void 0 : _a.
|
|
58
|
+
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
59
|
setEmployerFieldsActive(true);
|
|
60
60
|
else {
|
|
61
61
|
setEmployerFieldsActive(false);
|
|
@@ -26,15 +26,15 @@ import Box from '@mui/material/Box';
|
|
|
26
26
|
import { styled } from '@mui/material/styles';
|
|
27
27
|
import { useTranslation } from 'react-i18next';
|
|
28
28
|
import { useController, useFormContext } from 'react-hook-form';
|
|
29
|
-
import Text from '
|
|
30
|
-
import Collapse from '
|
|
31
|
-
import ExpandIcon from '
|
|
29
|
+
import Text from '@components/Text';
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
32
32
|
import CheckIcon from '@mui/icons-material/Check';
|
|
33
|
-
import ScreenContainer from '
|
|
34
|
-
import Input from '
|
|
35
|
-
import SimpleList from '
|
|
36
|
-
import { useLanguage } from '
|
|
37
|
-
import Search from '
|
|
33
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
34
|
+
import Input from '@features/shared/Input';
|
|
35
|
+
import SimpleList from '@components/SimpleList';
|
|
36
|
+
import { useLanguage } from '@hooks';
|
|
37
|
+
import Search from '@features/shared/Search';
|
|
38
38
|
var CountryItemContainer = styled(Box)(function () { return ({
|
|
39
39
|
display: 'flex'
|
|
40
40
|
}); });
|
|
@@ -13,12 +13,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useController, useFormContext } from 'react-hook-form';
|
|
16
|
-
import { removeOnlyNumbers } from '
|
|
17
|
-
import { ScreenContainer } from '
|
|
18
|
-
import Input from '
|
|
19
|
-
import CheckIcon from '
|
|
20
|
-
import Collapse from '
|
|
21
|
-
import ClearIcon from '
|
|
16
|
+
import { removeOnlyNumbers } from '@utils';
|
|
17
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
18
|
+
import Input from '@features/shared/Input';
|
|
19
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
20
|
+
import Collapse from '@components/Collapse';
|
|
21
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
22
22
|
import { styled } from '@mui/material/styles';
|
|
23
23
|
var InputStyled = styled(Input)(function () { return ({
|
|
24
24
|
input: {
|
|
@@ -13,13 +13,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useFormContext, useController } from 'react-hook-form';
|
|
16
|
-
import { ScreenContainer } from '
|
|
17
|
-
import Collapse from '
|
|
16
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
17
|
+
import Collapse from '@components/Collapse';
|
|
18
18
|
import { styled, alpha } from '@mui/material/styles';
|
|
19
|
-
import Mandatory from '
|
|
20
|
-
import Text from '
|
|
21
|
-
import RadioGroup from '
|
|
22
|
-
import RadioLabel from '
|
|
19
|
+
import Mandatory from '@features/shared/Mandatory';
|
|
20
|
+
import Text from '@components/Text';
|
|
21
|
+
import RadioGroup from '@components/RadioGroup';
|
|
22
|
+
import RadioLabel from '@components/RadioLabel';
|
|
23
23
|
var LabelTextStyled = styled(Text)(function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
25
25
|
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), marginBlockEnd: theme.spacing(0.625) }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { MonthlyIncome as MonthlyIncomeType } from '
|
|
2
|
+
import { MonthlyIncome as MonthlyIncomeType } from '@types';
|
|
3
3
|
interface MonthlyIncomeProps {
|
|
4
4
|
show: boolean;
|
|
5
5
|
onSelectSource?: (country: MonthlyIncomeType) => void;
|
|
@@ -26,15 +26,16 @@ import { useTranslation } from 'react-i18next';
|
|
|
26
26
|
import { useController, useFormContext } from 'react-hook-form';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
|
-
import { ScreenContainer } from '
|
|
30
|
-
import Input from '
|
|
31
|
-
import CheckIcon from '
|
|
32
|
-
import Collapse from '
|
|
33
|
-
import { useAppSelector, useLanguage } from '
|
|
34
|
-
import { individualSelector } from '
|
|
35
|
-
import Text from '
|
|
36
|
-
import ExpandIcon from '
|
|
37
|
-
import SimpleList from '
|
|
29
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
30
|
+
import Input from '@features/shared/Input';
|
|
31
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
32
|
+
import Collapse from '@components/Collapse';
|
|
33
|
+
import { useAppSelector, useLanguage } from '@hooks';
|
|
34
|
+
import { individualSelector } from '@features/app/individual/individualStore';
|
|
35
|
+
import Text from '@components/Text';
|
|
36
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
37
|
+
import SimpleList from '@components/SimpleList';
|
|
38
|
+
import Search from '@src/features/shared/Search';
|
|
38
39
|
var Container = styled(Box)(function () { return ({
|
|
39
40
|
display: 'flex'
|
|
40
41
|
}); });
|
|
@@ -75,15 +76,25 @@ var MonthlyIncome = function (_a) {
|
|
|
75
76
|
var _a;
|
|
76
77
|
setAnchorEl(null);
|
|
77
78
|
(_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
79
|
+
if ((monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.length) > 0) {
|
|
80
|
+
setIncomeList(monthlyIncomeList);
|
|
81
|
+
}
|
|
78
82
|
};
|
|
79
83
|
var onSelectItem = function (source) {
|
|
80
84
|
onCloseList();
|
|
81
85
|
monthlyIncomeControl.field.onChange(source);
|
|
82
86
|
};
|
|
87
|
+
var handleSearch = function (value) {
|
|
88
|
+
var filteredList = monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.filter(function (income) {
|
|
89
|
+
return income.name.en.toLowerCase().startsWith(value.toLowerCase()) ||
|
|
90
|
+
income.name.ar.toLowerCase().startsWith(value.toLowerCase());
|
|
91
|
+
});
|
|
92
|
+
setIncomeList(filteredList);
|
|
93
|
+
};
|
|
83
94
|
var income = monthlyIncomeControl.field.value;
|
|
84
95
|
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'), 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.
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(Input, { label: t('please_enter_actual_income'), 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) {
|
|
97
|
+
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, {})] }));
|
|
98
|
+
} })] }))] })) })));
|
|
88
99
|
};
|
|
89
100
|
export default React.memo(MonthlyIncome);
|
|
@@ -26,15 +26,16 @@ import Box from '@mui/material/Box';
|
|
|
26
26
|
import { styled } from '@mui/material/styles';
|
|
27
27
|
import { useTranslation } from 'react-i18next';
|
|
28
28
|
import { useController, useFormContext } from 'react-hook-form';
|
|
29
|
-
import { useAppSelector, useLanguage } from '
|
|
30
|
-
import { individualSelector } from '
|
|
31
|
-
import Text from '
|
|
32
|
-
import Collapse from '
|
|
29
|
+
import { useAppSelector, useLanguage } from '@hooks';
|
|
30
|
+
import { individualSelector } from '@features/app/individual/individualStore';
|
|
31
|
+
import Text from '@components/Text';
|
|
32
|
+
import Collapse from '@components/Collapse';
|
|
33
33
|
import CheckIcon from '@mui/icons-material/Check';
|
|
34
|
-
import ScreenContainer from '
|
|
35
|
-
import Input from '
|
|
36
|
-
import ExpandIcon from '
|
|
37
|
-
import SimpleList from '
|
|
34
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
35
|
+
import Input from '@features/shared/Input';
|
|
36
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
37
|
+
import SimpleList from '@components/SimpleList';
|
|
38
|
+
import Search from '@src/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().startsWith(value.toLowerCase()) ||
|
|
87
|
+
occupation.name.ar.toLowerCase().startsWith(value.toLowerCase());
|
|
88
|
+
});
|
|
89
|
+
setOccupationList(filteredList);
|
|
90
|
+
};
|
|
83
91
|
var occupation = occupationControl.field.value;
|
|
84
92
|
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
|
-
|
|
93
|
+
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) {
|
|
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 ? item.name.ar : item === null || item === void 0 ? void 0 : item.name.en })) }), item.id === (occupation === null || occupation === void 0 ? void 0 : occupation.id) && _jsx(CheckIconStyled, {})] }));
|
|
95
|
+
} })] }))] })) })));
|
|
88
96
|
};
|
|
89
97
|
export default Occupation;
|
|
@@ -14,12 +14,12 @@ import * as React from 'react';
|
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useFormContext, useController } from 'react-hook-form';
|
|
16
16
|
import { styled, alpha } from '@mui/material/styles';
|
|
17
|
-
import { ScreenContainer } from '
|
|
18
|
-
import Collapse from '
|
|
19
|
-
import Mandatory from '
|
|
20
|
-
import Text from '
|
|
21
|
-
import RadioGroup from '
|
|
22
|
-
import RadioLabel from '
|
|
17
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
18
|
+
import Collapse from '@components/Collapse';
|
|
19
|
+
import Mandatory from '@features/shared/Mandatory';
|
|
20
|
+
import Text from '@components/Text';
|
|
21
|
+
import RadioGroup from '@components/RadioGroup';
|
|
22
|
+
import RadioLabel from '@components/RadioLabel';
|
|
23
23
|
var LabelTextStyled = styled(Text)(function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
25
25
|
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), marginBlockEnd: theme.spacing(0.625) }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SourceOfIncome as SourceOfIncomeType } from '
|
|
2
|
+
import { SourceOfIncome as SourceOfIncomeType } from '@types';
|
|
3
3
|
interface SourceOfIncomeProps {
|
|
4
4
|
show: boolean;
|
|
5
5
|
onSelectSource?: (source: SourceOfIncomeType) => void;
|
|
@@ -26,15 +26,15 @@ import Box from '@mui/material/Box';
|
|
|
26
26
|
import { styled } from '@mui/material/styles';
|
|
27
27
|
import { useTranslation } from 'react-i18next';
|
|
28
28
|
import { useController, useFormContext } from 'react-hook-form';
|
|
29
|
-
import { useAppSelector, useLanguage } from '
|
|
30
|
-
import { individualSelector } from '
|
|
31
|
-
import Text from '
|
|
32
|
-
import Collapse from '
|
|
29
|
+
import { useAppSelector, useLanguage } from '@hooks';
|
|
30
|
+
import { individualSelector } from '@features/app/individual/individualStore';
|
|
31
|
+
import Text from '@components/Text';
|
|
32
|
+
import Collapse from '@components/Collapse';
|
|
33
33
|
import CheckIcon from '@mui/icons-material/Check';
|
|
34
|
-
import ScreenContainer from '
|
|
35
|
-
import Input from '
|
|
36
|
-
import ExpandIcon from '
|
|
37
|
-
import SimpleList from '
|
|
34
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
35
|
+
import Input from '@features/shared/Input';
|
|
36
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
37
|
+
import SimpleList from '@components/SimpleList';
|
|
38
38
|
var Container = styled(Box)(function () { return ({
|
|
39
39
|
display: 'flex'
|
|
40
40
|
}); });
|
|
@@ -82,8 +82,8 @@ var SourceOfIncome = function (_a) {
|
|
|
82
82
|
};
|
|
83
83
|
var source = sourceIncomeControl.field.value;
|
|
84
84
|
var error = (_c = sourceIncomeControl.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('tap_js_source_of_income'), readOnly: true, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_any_source_of_income'), value: (isAr ? source === null || source === void 0 ? void 0 : source.
|
|
86
|
-
return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (source === null || source === void 0 ? void 0 : source.id) }, { children: isAr ? item.
|
|
85
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 2.5 } }, { children: [_jsx(Input, { required: true, label: t('tap_js_source_of_income'), readOnly: true, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_any_source_of_income'), value: (isAr ? source === null || source === void 0 ? void 0 : source.name.ar : source === null || source === void 0 ? void 0 : source.name.en) || '', warningMessage: error && t(error) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.en', list: sourceList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
86
|
+
return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (source === null || source === void 0 ? void 0 : source.id) }, { children: isAr ? item.name.ar : item === null || item === void 0 ? void 0 : item.name.en })) }), item.id === (source === null || source === void 0 ? void 0 : source.id) && _jsx(CheckIconStyled, {})] }));
|
|
87
87
|
} }) }))] })) })));
|
|
88
88
|
};
|
|
89
89
|
export default React.memo(SourceOfIncome);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { ObjectShape } from 'yup/lib/object';
|
|
3
|
-
import { CountryCode } from '
|
|
3
|
+
import { CountryCode } from '@types';
|
|
4
4
|
export declare const IndividualInfoValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<ObjectShape, {
|
|
5
5
|
occupation: import("yup/lib/object").RequiredObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
6
6
|
sourceIncome: import("yup/lib/object").RequiredObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import SuccessScreen from '
|
|
4
|
+
import SuccessScreen from '@features/shared/SuccessScreen';
|
|
5
5
|
var ResetPasswordSuccess = function (_a) {
|
|
6
6
|
var t = useTranslation().t;
|
|
7
7
|
return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: t("reset_password_success_description"), showEmailProviders: true }));
|
|
@@ -13,13 +13,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import Box from '@mui/material/Box';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
|
-
import { useAppDispatch } from '
|
|
17
|
-
import { handleNextScreenStep } from '
|
|
16
|
+
import { useAppDispatch } from '@hooks';
|
|
17
|
+
import { handleNextScreenStep } from '@app/settings';
|
|
18
18
|
import { styled } from '@mui/material/styles';
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import Button from '
|
|
21
|
-
import ScreenContainer from '
|
|
22
|
-
import { useLanguage } from '
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import Button from '@features/shared/Button';
|
|
21
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
22
|
+
import { useLanguage } from '@hooks';
|
|
23
23
|
import Info from './info';
|
|
24
24
|
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
25
25
|
var _b;
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import { styled, alpha } from '@mui/material/styles';
|
|
15
|
-
import Text from '
|
|
15
|
+
import Text from '@components/Text';
|
|
16
16
|
var LabelTextStyled = styled(Text)(function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), paddingInlineStart: theme.spacing(2.5), marginBlockStart: theme.spacing(3.5), marginBlockEnd: theme.spacing(1.25) }));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { useAppDispatch, useAppSelector } from '
|
|
5
|
-
import { individualSelector, updateBoardSuccess } from '
|
|
6
|
-
import SuccessScreen from '
|
|
4
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
5
|
+
import { individualSelector, updateBoardSuccess } from '@features/app/individual/individualStore';
|
|
6
|
+
import SuccessScreen from '@features/shared/SuccessScreen';
|
|
7
7
|
var Success = function (_a) {
|
|
8
8
|
var t = useTranslation().t;
|
|
9
9
|
var dispatch = useAppDispatch();
|