@tap-payments/auth-jsconnect 2.4.26-test → 2.4.28-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/api/account.js +1 -1
- package/build/api/auth.d.ts +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -2
- 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.js +1 -1
- package/build/api/document.js +1 -1
- package/build/api/entity.js +1 -1
- package/build/api/file.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/init.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/location.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -10
- package/build/app/rootReducer.js +10 -10
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +5 -5
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/AnimationFlow.js +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +3 -3
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.js +4 -4
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.js +6 -6
- 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/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/components/Tooltip/Tooltip.js +2 -2
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/features/app/bank/bankStore.d.ts +2 -2
- package/build/features/app/bank/bankStore.js +5 -5
- package/build/features/app/brand/brandStore.d.ts +2 -2
- package/build/features/app/brand/brandStore.js +5 -5
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +5 -5
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +5 -5
- package/build/features/app/connectExpress/connectExpressStore.d.ts +2 -2
- package/build/features/app/connectExpress/connectExpressStore.js +6 -6
- package/build/features/app/entity/entityStore.d.ts +2 -2
- package/build/features/app/entity/entityStore.js +5 -5
- package/build/features/app/individual/individualStore.js +106 -90
- 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 +3 -3
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +10 -10
- 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.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +6 -6
- package/build/features/bank/screens/BankDetails/Beneficiary.js +6 -6
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +10 -10
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/bank/screens/Verify/OTPInput.js +5 -5
- package/build/features/bank/screens/Verify/Verify.js +8 -8
- package/build/features/brand/Brand.d.ts +1 -1
- package/build/features/brand/Brand.js +10 -10
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +12 -12
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +7 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +11 -11
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +8 -8
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -12
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +10 -10
- package/build/features/brand/screens/BrandActivities/TAC.js +10 -10
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +8 -8
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +9 -9
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +7 -7
- package/build/features/brand/screens/BrandInfo/BrandName.js +9 -9
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
- package/build/features/brand/screens/BrandInfo/Segments.js +9 -9
- package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -9
- package/build/features/brand/screens/BrandInfo/validation.js +1 -1
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/brand/screens/Success/Success.js +3 -3
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/brand/screens/Verify/OTPInput.js +5 -5
- package/build/features/brand/screens/Verify/Verify.js +8 -8
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +10 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.js +12 -12
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +5 -5
- package/build/features/business/screens/BrandDetails/BrandDetails.js +7 -7
- package/build/features/business/screens/BrandDetails/BrandName.js +4 -4
- package/build/features/business/screens/BrandDetails/Header.js +5 -5
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +4 -4
- package/build/features/business/screens/BrandDetails/SalesChannel.js +5 -5
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Article.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +10 -10
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/EntityName.js +6 -6
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +7 -7
- package/build/features/business/screens/BusinessType/LicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseType.js +14 -14
- 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/CivilID/CivilID.js +6 -6
- package/build/features/business/screens/CivilID/IDNumber.js +6 -6
- package/build/features/business/screens/Customers/CustomerLocations.js +11 -11
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +9 -9
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -11
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +10 -10
- package/build/features/business/screens/Customers/TransactionPolicy.js +7 -7
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +5 -5
- 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 +5 -5
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/business/screens/Verify/OTPInput.js +5 -5
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/CivilID/CivilID.js +8 -8
- package/build/features/connect/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connect/screens/Individual/Email.js +6 -6
- package/build/features/connect/screens/Individual/Individual.js +11 -11
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +12 -12
- package/build/features/connect/screens/Individual/Name.js +5 -5
- 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 +10 -10
- package/build/features/connect/screens/Merchant/BrandName.js +8 -8
- package/build/features/connect/screens/Merchant/Merchant.js +8 -8
- package/build/features/connect/screens/Merchant/SalesChannels.js +4 -4
- package/build/features/connect/screens/Merchant/Segments.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +9 -9
- package/build/features/connect/screens/Merchant/TeamSize.js +9 -9
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +11 -11
- 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 +7 -7
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +10 -10
- package/build/features/connect/screens/OTP/OTPInput.js +5 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +4 -4
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +5 -5
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +10 -10
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +3 -3
- package/build/features/connectExpress/screens/Brand/Brand.js +9 -9
- package/build/features/connectExpress/screens/CivilID/CivilID.js +8 -8
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +13 -13
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +10 -10
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +12 -12
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -6
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +5 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +5 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -10
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connectExpress/screens/Mobile/TAC.js +8 -8
- package/build/features/connectExpress/screens/Mobile/Title.js +2 -2
- package/build/features/connectExpress/screens/NID/DOB.js +5 -5
- package/build/features/connectExpress/screens/NID/IDNumber.js +9 -9
- package/build/features/connectExpress/screens/NID/NID.js +8 -8
- package/build/features/connectExpress/screens/NID/TAC.js +8 -8
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +5 -5
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -7
- package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -7
- package/build/features/connectExpress/screens/OTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -4
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +10 -10
- package/build/features/entity/screens/EntityCapital/ActivityList.js +12 -12
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -6
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -7
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +7 -7
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
- package/build/features/entity/screens/EntityName/Article.js +7 -7
- package/build/features/entity/screens/EntityName/EntityName.js +9 -9
- package/build/features/entity/screens/EntityName/EntityTypeList.js +12 -12
- package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -6
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -5
- package/build/features/entity/screens/EntityName/LegalName.js +6 -6
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -8
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +7 -7
- package/build/features/entity/screens/EntityName/validation.js +2 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/entity/screens/Success/Success.js +3 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/entity/screens/Verify/OTPInput.js +5 -5
- package/build/features/entity/screens/Verify/Verify.js +8 -8
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +79 -79
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -8
- 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/AdditionalIndividualInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +3 -3
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +8 -8
- package/build/features/individual/screens/IndividualList/IndividualList.js +8 -8
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualList/UserList.js +11 -11
- package/build/features/individual/screens/IndividualList/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/validation.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -4
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +7 -7
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +10 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +5 -5
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +8 -8
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/individual/screens/Verify/OTPInput.js +5 -5
- package/build/features/individual/screens/Verify/Verify.js +8 -8
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +10 -10
- 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 +5 -5
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -5
- package/build/features/password/screens/Verify/Verify.js +8 -8
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Address/Address.d.ts +1 -1
- package/build/features/shared/Address/Address.js +2 -2
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/CountryList.js +7 -7
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.js +7 -7
- package/build/features/shared/Background/Background.js +2 -2
- 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 +3 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +7 -7
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/Button/IndividualActionButtons.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/CreateAccountLoading/CreateAccountLoading.js +4 -4
- package/build/features/shared/DataLoading/DataLoading.js +4 -4
- package/build/features/shared/Dialog/CloseDialog.js +2 -2
- package/build/features/shared/Dialog/DialogContainer.js +2 -2
- package/build/features/shared/Dot/Dot.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornment.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Footer/PoweredByFooter.js +3 -3
- package/build/features/shared/GenericError/GenericError.js +4 -4
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/PaciVerification/PaciVerification.js +5 -5
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +3 -3
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +9 -9
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +6 -6
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -6
- package/build/features/shared/SuccessScreen/SuccessScreen.js +6 -6
- package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.js +8 -8
- package/build/features/shared/UploadFile/UploadFile.js +10 -10
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
- package/build/features/shared/UploadFile/UploadWrapper.js +7 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.js +8 -8
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +7 -7
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +10 -10
- 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 +1 -1
- package/build/features/tax/Tax.js +10 -10
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +8 -8
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -8
- package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
- package/build/features/tax/screens/Verify/OTPInput.js +5 -5
- package/build/features/tax/screens/Verify/Verify.js +8 -8
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +4 -4
- 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/useCountry.js +1 -1
- package/build/hooks/useDataNoneEditable.d.ts +1 -1
- package/build/hooks/useDataNoneEditable.js +1 -1
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useDataVerified.js +1 -1
- package/build/hooks/useErrorListener.js +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.js +1 -1
- package/build/hooks/useFormReadOnly.js +1 -1
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.js +1 -1
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/hooks/useVerifyToken.d.ts +1 -1
- package/build/hooks/useVerifyToken.js +2 -2
- package/build/i18n.js +1 -1
- package/build/index.d.ts +10 -10
- package/build/index.js +10 -10
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +4 -3
- package/build/utils/array.js +6 -1
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +1 -1
- package/build/utils/object.js +1 -1
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +4 -4
- package/package.json +1 -1
- package/build/components/ArabicDatePicker/style.css +0 -24
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/features/app/individual/individualStore.d.ts +0 -146
- package/build/index.css +0 -140
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams } from '
|
|
1
|
+
import { RootState } from '@app/store';
|
|
2
|
+
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams } from '@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
data: any;
|
|
@@ -56,12 +56,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen } from '
|
|
60
|
-
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '
|
|
61
|
-
import API from '
|
|
62
|
-
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '
|
|
63
|
-
import { defaultCountry } from '
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '
|
|
59
|
+
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen } from '@app/settings';
|
|
60
|
+
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '@types';
|
|
61
|
+
import API from '@api';
|
|
62
|
+
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '@constants';
|
|
63
|
+
import { defaultCountry } from '@constants';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '@utils';
|
|
65
65
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
66
|
var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered, _b, boardInfo, boardData, error_1;
|
|
67
67
|
var _c, _d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, AsyncThunkParams, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { ActionState, AsyncThunkParams, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
interface VerifyLeadTokenProps {
|
|
4
4
|
token: string;
|
|
5
5
|
isInternally?: boolean;
|
|
@@ -58,12 +58,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
58
58
|
};
|
|
59
59
|
var _a;
|
|
60
60
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
61
|
-
import API from '
|
|
62
|
-
import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '
|
|
63
|
-
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '
|
|
64
|
-
import { ENTITY_STEP_NAMES } from '
|
|
61
|
+
import API from '@api';
|
|
62
|
+
import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '@types';
|
|
63
|
+
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '@app/settings';
|
|
64
|
+
import { ENTITY_STEP_NAMES } from '@constants';
|
|
65
65
|
import moment from 'moment';
|
|
66
|
-
import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber } from '
|
|
66
|
+
import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber } from '@utils';
|
|
67
67
|
export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (_a, thunkApi) {
|
|
68
68
|
var token = _a.token, isInternally = _a.isInternally;
|
|
69
69
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -67,18 +67,18 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
67
67
|
};
|
|
68
68
|
var _a;
|
|
69
69
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
70
|
-
import API from '
|
|
71
|
-
import { FlowsTypes, IndividualGender, IndividualType, DocumentPurpose } from '
|
|
72
|
-
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '
|
|
73
|
-
import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES } from '
|
|
74
|
-
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, getIndividualType } from '
|
|
70
|
+
import API from '@api';
|
|
71
|
+
import { FlowsTypes, IndividualGender, IndividualType, DocumentPurpose } from '@types';
|
|
72
|
+
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '@app/settings';
|
|
73
|
+
import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES } from '@constants';
|
|
74
|
+
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType } from '@utils';
|
|
75
75
|
export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
|
|
76
76
|
var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
|
|
77
77
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
78
|
-
var payload, settings, data, boardData, individualData, countryCode, boardInfoData, boardInfoStatus, countries, board_id, board_info_id, notification, _b, id, type, data_1, birthCountry;
|
|
79
|
-
var
|
|
80
|
-
return __generator(this, function (
|
|
81
|
-
switch (
|
|
78
|
+
var payload, settings, data, boardData, individualData, countryCode, boardInfoData, boardInfoStatus, countries, board_id, board_info_id, notification, _b, id, type, data_1, birthCountry, individuals, _c, is_authorized, data_state;
|
|
79
|
+
var _d, _e, _f, _g, _h, _j, _k;
|
|
80
|
+
return __generator(this, function (_l) {
|
|
81
|
+
switch (_l.label) {
|
|
82
82
|
case 0:
|
|
83
83
|
payload = {
|
|
84
84
|
service_name: 'tap_email',
|
|
@@ -87,10 +87,10 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
|
|
|
87
87
|
settings = thunkApi.getState().settings;
|
|
88
88
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
89
89
|
case 1:
|
|
90
|
-
data = (
|
|
90
|
+
data = (_l.sent()).data;
|
|
91
91
|
boardInfoStatus = undefined;
|
|
92
92
|
countries = settings.data.countries;
|
|
93
|
-
if (((
|
|
93
|
+
if (((_d = data.errors) === null || _d === void 0 ? void 0 : _d.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
|
|
94
94
|
throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
|
|
95
95
|
if (isInternally)
|
|
96
96
|
data.step_name = INDIVIDUAl_STEP_NAMES.INDIVIDUAl_INFO;
|
|
@@ -108,73 +108,76 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
|
|
|
108
108
|
if (!(board_id && board_info_id)) return [3, 5];
|
|
109
109
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
110
110
|
case 3:
|
|
111
|
-
boardInfoData =
|
|
111
|
+
boardInfoData = _l.sent();
|
|
112
112
|
notification = (boardInfoData || {}).notification;
|
|
113
113
|
_b = (notification === null || notification === void 0 ? void 0 : notification.recipient) || {}, id = _b.id, type = _b.type;
|
|
114
114
|
if (!(id && type)) return [3, 5];
|
|
115
115
|
return [4, thunkApi.dispatch(retrieveIndividualInfo({ id: id, type: type, countryCode: countryCode })).unwrap()];
|
|
116
116
|
case 4:
|
|
117
|
-
data_1 = (
|
|
117
|
+
data_1 = (_l.sent()).data;
|
|
118
118
|
individualData = data_1 || {};
|
|
119
|
-
|
|
119
|
+
_l.label = 5;
|
|
120
120
|
case 5:
|
|
121
121
|
if (!board_id) return [3, 7];
|
|
122
122
|
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
123
123
|
case 6:
|
|
124
|
-
boardData =
|
|
125
|
-
|
|
124
|
+
boardData = _l.sent();
|
|
125
|
+
_l.label = 7;
|
|
126
126
|
case 7:
|
|
127
127
|
if (!countryCode) {
|
|
128
|
-
countryCode = (
|
|
128
|
+
countryCode = (_e = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _e === void 0 ? void 0 : _e.country;
|
|
129
129
|
if (countryCode)
|
|
130
130
|
thunkApi.dispatch(handleSetCountryByIso2(countryCode));
|
|
131
131
|
}
|
|
132
132
|
if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 11];
|
|
133
|
-
if (!((
|
|
134
|
-
return [4, thunkApi.dispatch(getIndividualList((
|
|
133
|
+
if (!((_f = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _f === void 0 ? void 0 : _f.id)) return [3, 9];
|
|
134
|
+
return [4, thunkApi.dispatch(getIndividualList((_g = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _g === void 0 ? void 0 : _g.id))];
|
|
135
135
|
case 8:
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
_l.sent();
|
|
137
|
+
_l.label = 9;
|
|
138
138
|
case 9: return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
139
139
|
case 10:
|
|
140
|
-
boardInfoStatus =
|
|
140
|
+
boardInfoStatus = _l.sent();
|
|
141
141
|
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
|
|
142
142
|
return [3, 14];
|
|
143
143
|
case 11:
|
|
144
|
-
birthCountry = ((
|
|
144
|
+
birthCountry = ((_h = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _h === void 0 ? void 0 : _h.country) || countryCode;
|
|
145
145
|
if (!birthCountry) return [3, 13];
|
|
146
146
|
return [4, thunkApi.dispatch(getCityList(birthCountry))];
|
|
147
147
|
case 12:
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
_l.sent();
|
|
149
|
+
_l.label = 13;
|
|
150
150
|
case 13:
|
|
151
151
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
|
|
152
|
-
|
|
152
|
+
_l.label = 14;
|
|
153
153
|
case 14: return [3, 16];
|
|
154
154
|
case 15:
|
|
155
155
|
if (isUpdatePhoneInfo) {
|
|
156
156
|
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_VERIFY_STEP'));
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
case 16:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
158
|
+
_l.label = 16;
|
|
159
|
+
case 16:
|
|
160
|
+
individuals = (boardData || {}).individuals;
|
|
161
|
+
_c = individualData || {}, is_authorized = _c.is_authorized, data_state = _c.data_state;
|
|
162
|
+
return [2, {
|
|
163
|
+
data: data,
|
|
164
|
+
boardResponse: {
|
|
165
|
+
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
166
|
+
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
167
|
+
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
168
|
+
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
169
|
+
merchant_id: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.merchant_id,
|
|
170
|
+
name: (_j = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _j === void 0 ? void 0 : _j.names,
|
|
171
|
+
contact: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.contact,
|
|
172
|
+
individuals: is_authorized ? individuals : __assign(__assign({}, individuals), (!!data_state && { data_state: data_state })),
|
|
173
|
+
countries: countries,
|
|
174
|
+
countryCode: countryCode,
|
|
175
|
+
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
|
|
176
|
+
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
177
|
+
flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || []
|
|
178
|
+
},
|
|
179
|
+
token: token
|
|
180
|
+
}];
|
|
178
181
|
}
|
|
179
182
|
});
|
|
180
183
|
});
|
|
@@ -266,7 +269,7 @@ export var requestDetailsByEmail = createAsyncThunk('individual/requestDetailsBy
|
|
|
266
269
|
return [4, API.individualService.updateMultipleIndividual(requestBody)];
|
|
267
270
|
case 1:
|
|
268
271
|
data_2 = _d.sent();
|
|
269
|
-
list = mapUserList(data_2 === null || data_2 === void 0 ? void 0 : data_2.individuals);
|
|
272
|
+
list = sortUserList(mapUserList(data_2 === null || data_2 === void 0 ? void 0 : data_2.individuals)) || [];
|
|
270
273
|
individualData = (list === null || list === void 0 ? void 0 : list[0]) && __assign({}, list[0]);
|
|
271
274
|
_d.label = 2;
|
|
272
275
|
case 2:
|
|
@@ -306,7 +309,7 @@ export var getIndividualList = createAsyncThunk('individual/getIndividualList',
|
|
|
306
309
|
return [4, API.individualService.getIndividualList(payload)];
|
|
307
310
|
case 1:
|
|
308
311
|
individuals = (_a.sent()).individuals;
|
|
309
|
-
list = mapUserList(individuals) || [];
|
|
312
|
+
list = sortUserList(mapUserList(individuals)) || [];
|
|
310
313
|
return [2, __spreadArray([], list, true)];
|
|
311
314
|
}
|
|
312
315
|
});
|
|
@@ -346,7 +349,7 @@ export var retrieveIndividualInfo = createAsyncThunk('individual/retrieveIndivid
|
|
|
346
349
|
else if (type === IndividualType.CUSTOMER)
|
|
347
350
|
individualData = data === null || data === void 0 ? void 0 : data.customer;
|
|
348
351
|
return [2, {
|
|
349
|
-
data: __assign(__assign({}, (individualData || {})), { objects: [type], individual_data_state: individualData === null || individualData === void 0 ? void 0 : individualData.data_state }),
|
|
352
|
+
data: __assign(__assign({}, (individualData || {})), { objects: [type], individual_data_state: individualData === null || individualData === void 0 ? void 0 : individualData.data_state, object: type }),
|
|
350
353
|
countryCode: countryCode,
|
|
351
354
|
countries: settings.data.countries
|
|
352
355
|
}];
|
|
@@ -410,10 +413,10 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveIndividualBoardDetai
|
|
|
410
413
|
});
|
|
411
414
|
}); });
|
|
412
415
|
export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
413
|
-
var _a, individual, settings, responseBody, _b, board_id, board_info_id, countries, payload, data, boardInfoData, individualData, boardData, boardInfoStatus, countryCode, notification, _c, id, type, data_3, birthCountry;
|
|
414
|
-
var
|
|
415
|
-
return __generator(this, function (
|
|
416
|
-
switch (
|
|
416
|
+
var _a, individual, settings, responseBody, _b, board_id, board_info_id, countries, payload, data, boardInfoData, individualData, boardData, boardInfoStatus, countryCode, notification, _c, id, type, data_3, birthCountry, individuals, _d, is_authorized, data_state;
|
|
417
|
+
var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
418
|
+
return __generator(this, function (_q) {
|
|
419
|
+
switch (_q.label) {
|
|
417
420
|
case 0:
|
|
418
421
|
_a = thunkApi.getState(), individual = _a.individual, settings = _a.settings;
|
|
419
422
|
responseBody = individual.data.verify.responseBody;
|
|
@@ -421,62 +424,64 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
|
|
|
421
424
|
countries = settings.data.countries;
|
|
422
425
|
payload = {
|
|
423
426
|
data: params.otp,
|
|
424
|
-
service_name: (
|
|
427
|
+
service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
|
|
425
428
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
426
429
|
step_name: INDIVIDUAl_STEP_NAMES.PHONE_AUTH,
|
|
427
430
|
encryption_contract: ['data']
|
|
428
431
|
};
|
|
429
432
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
430
433
|
case 1:
|
|
431
|
-
data = (
|
|
434
|
+
data = (_q.sent()).data;
|
|
432
435
|
boardInfoStatus = undefined;
|
|
433
|
-
if ((
|
|
436
|
+
if ((_f = data.errors) === null || _f === void 0 ? void 0 : _f.length)
|
|
434
437
|
throw new Error(data.errors[0].description);
|
|
435
438
|
if (!board_id) return [3, 3];
|
|
436
439
|
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
437
440
|
case 2:
|
|
438
|
-
boardData =
|
|
439
|
-
|
|
441
|
+
boardData = _q.sent();
|
|
442
|
+
_q.label = 3;
|
|
440
443
|
case 3:
|
|
441
|
-
countryCode = (
|
|
444
|
+
countryCode = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.country;
|
|
442
445
|
if (!(board_id && board_info_id)) return [3, 6];
|
|
443
446
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
444
447
|
case 4:
|
|
445
|
-
boardInfoData =
|
|
448
|
+
boardInfoData = _q.sent();
|
|
446
449
|
notification = (boardInfoData || {}).notification;
|
|
447
450
|
_c = (notification === null || notification === void 0 ? void 0 : notification.recipient) || {}, id = _c.id, type = _c.type;
|
|
448
451
|
if (!(id && type)) return [3, 6];
|
|
449
452
|
return [4, thunkApi.dispatch(retrieveIndividualInfo({ id: id, type: type, countryCode: countryCode })).unwrap()];
|
|
450
453
|
case 5:
|
|
451
|
-
data_3 = (
|
|
454
|
+
data_3 = (_q.sent()).data;
|
|
452
455
|
individualData = data_3 || {};
|
|
453
|
-
|
|
456
|
+
_q.label = 6;
|
|
454
457
|
case 6:
|
|
455
458
|
if (countryCode)
|
|
456
459
|
thunkApi.dispatch(handleSetCountryByIso2(countryCode));
|
|
457
460
|
if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 10];
|
|
458
|
-
if (!((
|
|
459
|
-
return [4, thunkApi.dispatch(getIndividualList((
|
|
461
|
+
if (!((_h = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _h === void 0 ? void 0 : _h.id)) return [3, 8];
|
|
462
|
+
return [4, thunkApi.dispatch(getIndividualList((_j = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _j === void 0 ? void 0 : _j.id))];
|
|
460
463
|
case 7:
|
|
461
|
-
|
|
462
|
-
|
|
464
|
+
_q.sent();
|
|
465
|
+
_q.label = 8;
|
|
463
466
|
case 8: return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
464
467
|
case 9:
|
|
465
|
-
boardInfoStatus =
|
|
468
|
+
boardInfoStatus = _q.sent();
|
|
466
469
|
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
|
|
467
470
|
return [3, 13];
|
|
468
471
|
case 10:
|
|
469
|
-
birthCountry = ((
|
|
472
|
+
birthCountry = ((_k = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _k === void 0 ? void 0 : _k.country) || countryCode;
|
|
470
473
|
if (!birthCountry) return [3, 12];
|
|
471
474
|
return [4, thunkApi.dispatch(getCityList(birthCountry))];
|
|
472
475
|
case 11:
|
|
473
|
-
|
|
474
|
-
|
|
476
|
+
_q.sent();
|
|
477
|
+
_q.label = 12;
|
|
475
478
|
case 12:
|
|
476
479
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
|
|
477
|
-
|
|
480
|
+
_q.label = 13;
|
|
478
481
|
case 13:
|
|
479
|
-
(
|
|
482
|
+
(_m = (_l = settings.data.appConfig).onStepCompleted) === null || _m === void 0 ? void 0 : _m.call(_l, settings.data.activeScreen.name, { otp: params.otp });
|
|
483
|
+
individuals = (boardData || {}).individuals;
|
|
484
|
+
_d = individualData || {}, is_authorized = _d.is_authorized, data_state = _d.data_state;
|
|
480
485
|
return [2, {
|
|
481
486
|
data: data,
|
|
482
487
|
boardResponse: {
|
|
@@ -485,9 +490,9 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
|
|
|
485
490
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
486
491
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
487
492
|
merchant_id: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.merchant_id,
|
|
488
|
-
name: (
|
|
489
|
-
contact: (
|
|
490
|
-
individuals:
|
|
493
|
+
name: (_o = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _o === void 0 ? void 0 : _o.names,
|
|
494
|
+
contact: (_p = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _p === void 0 ? void 0 : _p.contact,
|
|
495
|
+
individuals: is_authorized ? individuals : __assign(__assign({}, individuals), (!!data_state && { data_state: data_state })),
|
|
491
496
|
countries: countries,
|
|
492
497
|
countryCode: countryCode,
|
|
493
498
|
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
|
|
@@ -728,7 +733,7 @@ export var updateIndividualInfo = createAsyncThunk('updateIndividualInfo', funct
|
|
|
728
733
|
_h.sent();
|
|
729
734
|
_h.label = 7;
|
|
730
735
|
case 7:
|
|
731
|
-
list = mapUserList(data === null || data === void 0 ? void 0 : data.individuals);
|
|
736
|
+
list = sortUserList(mapUserList(data === null || data === void 0 ? void 0 : data.individuals)) || [];
|
|
732
737
|
individualData = (list === null || list === void 0 ? void 0 : list[0]) && __assign({}, list[0]);
|
|
733
738
|
thunkApi.dispatch(handleNextScreenStep());
|
|
734
739
|
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, requestBody);
|
|
@@ -760,13 +765,13 @@ export var checkEmailAvailability = createAsyncThunk('checkEmailAvailability', f
|
|
|
760
765
|
});
|
|
761
766
|
});
|
|
762
767
|
export var updateBoardSuccess = createAsyncThunk('individualUpdateBoardSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
763
|
-
var _a, settings, individual, _b, id, infoId, payload, data, boardInfoStatus;
|
|
764
|
-
var
|
|
765
|
-
return __generator(this, function (
|
|
766
|
-
switch (
|
|
768
|
+
var _a, settings, individual, _b, id, infoId, primaryUser, payload, data, boardInfoStatus, individualDataRes, _c, is_authorized, userId, type;
|
|
769
|
+
var _d, _e, _f, _g;
|
|
770
|
+
return __generator(this, function (_h) {
|
|
771
|
+
switch (_h.label) {
|
|
767
772
|
case 0:
|
|
768
773
|
_a = thunkApi.getState(), settings = _a.settings, individual = _a.individual;
|
|
769
|
-
_b = individual.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id;
|
|
774
|
+
_b = individual.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id, primaryUser = _b.primaryUser;
|
|
770
775
|
if (!id)
|
|
771
776
|
return [2];
|
|
772
777
|
payload = {
|
|
@@ -776,17 +781,27 @@ export var updateBoardSuccess = createAsyncThunk('individualUpdateBoardSuccess',
|
|
|
776
781
|
};
|
|
777
782
|
return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
|
|
778
783
|
case 1:
|
|
779
|
-
data =
|
|
784
|
+
data = _h.sent();
|
|
780
785
|
return [4, API.boardService.retrieveBoardInfoStatus(id)];
|
|
781
786
|
case 2:
|
|
782
|
-
boardInfoStatus =
|
|
787
|
+
boardInfoStatus = _h.sent();
|
|
783
788
|
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
784
789
|
case 3:
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
790
|
+
_h.sent();
|
|
791
|
+
individualDataRes = undefined;
|
|
792
|
+
_c = primaryUser || {}, is_authorized = _c.is_authorized, userId = _c.id, type = _c.object;
|
|
793
|
+
if (!!is_authorized) return [3, 5];
|
|
794
|
+
return [4, thunkApi
|
|
795
|
+
.dispatch(retrieveIndividualInfo({ id: userId, type: type, countryCode: settings.data.businessCountry.iso2 }))
|
|
796
|
+
.unwrap()];
|
|
797
|
+
case 4:
|
|
798
|
+
individualDataRes = _h.sent();
|
|
799
|
+
_h.label = 5;
|
|
800
|
+
case 5:
|
|
801
|
+
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, {});
|
|
802
|
+
(_g = (_f = settings.data.appConfig).onFlowCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, { data: data });
|
|
788
803
|
thunkApi.dispatch(handleNextScreenStep());
|
|
789
|
-
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || [] }), formData: params }];
|
|
804
|
+
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || [] }), formData: params, individualData: individualDataRes === null || individualDataRes === void 0 ? void 0 : individualDataRes.data }];
|
|
790
805
|
}
|
|
791
806
|
});
|
|
792
807
|
}); });
|
|
@@ -1033,7 +1048,7 @@ export var individualSlice = createSlice({
|
|
|
1033
1048
|
state.error = null;
|
|
1034
1049
|
var _e = action.payload, data = _e.data, countries = _e.countries;
|
|
1035
1050
|
var user = (state.data.verify.responseBody || {}).user;
|
|
1036
|
-
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { user: __assign(__assign({}, data), { is_authorized: data.is_authorized !== undefined ? data.is_authorized : user === null || user === void 0 ? void 0 : user.is_authorized }) });
|
|
1051
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { primaryUser: data, user: __assign(__assign({}, data), { is_authorized: data.is_authorized !== undefined ? data.is_authorized : user === null || user === void 0 ? void 0 : user.is_authorized }) });
|
|
1037
1052
|
var _f = data || {}, source_income = _f.source_income, monthly_income = _f.monthly_income, occupation = _f.occupation, is_relative_PEP = _f.is_relative_PEP, is_influencer = _f.is_influencer, birth = _f.birth, contact = _f.contact, identification = _f.identification, nationality = _f.nationality, gender = _f.gender, shares = _f.shares;
|
|
1038
1053
|
var _g = state.data.individualData.responseBody || {}, sourceIncomeList = _g.sourceIncomeList, monthlyIncomeList = _g.monthlyIncomeList, occupationList = _g.occupationList;
|
|
1039
1054
|
var cityList = (state.data.verify.responseBody || {}).cityList;
|
|
@@ -1262,14 +1277,15 @@ export var individualSlice = createSlice({
|
|
|
1262
1277
|
var _a;
|
|
1263
1278
|
state.loading = false;
|
|
1264
1279
|
state.error = null;
|
|
1265
|
-
var
|
|
1280
|
+
var _b = action.payload || {}, response = _b.response, individualData = _b.individualData;
|
|
1266
1281
|
var description = (((_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
1267
1282
|
if (description) {
|
|
1268
1283
|
state.error = description;
|
|
1269
1284
|
return;
|
|
1270
1285
|
}
|
|
1271
1286
|
var flows = response.flows;
|
|
1272
|
-
|
|
1287
|
+
var individuals = (state.data.verify.responseBody || {}).individuals;
|
|
1288
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { individuals: __assign(__assign({}, individuals), { data_state: individualData === null || individualData === void 0 ? void 0 : individualData.data_state }) }));
|
|
1273
1289
|
})
|
|
1274
1290
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
1275
1291
|
state.loading = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: any;
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '
|
|
53
|
-
import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '@app/settings';
|
|
53
|
+
import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '@constants';
|
|
54
54
|
export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var payload, data, boardInfoData, boardData, board_id, countryIso2, info, hasPasswordCompleted;
|
|
56
56
|
var _a, _b, _c, _d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '@types';
|
|
3
3
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
formData: MobileFormValues;
|
|
@@ -47,9 +47,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { defaultCountry, SignIn_STEP_NAMES } from '
|
|
52
|
-
import { handleNextScreenStep, handleOpen } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { defaultCountry, SignIn_STEP_NAMES } from '@constants';
|
|
52
|
+
import { handleNextScreenStep, handleOpen } from '@app/settings';
|
|
53
53
|
var redirection = function (type) {
|
|
54
54
|
if (type === 1)
|
|
55
55
|
return handleNextScreenStep('SIGIN_PASSWORD_STEP');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, AsyncThunkParams, FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { ActionState, AsyncThunkParams, FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '@types';
|
|
3
3
|
interface VerifyLeadTokenProps {
|
|
4
4
|
token: string;
|
|
5
5
|
isInternally?: boolean;
|
|
@@ -47,11 +47,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { DocumentPurpose, FlowsTypes } from '
|
|
52
|
-
import { handleNextScreenStep, handleCurrentActiveScreen, handleSetCountryByIso2, handlePrevScreenStep } from '
|
|
53
|
-
import { TAX_STEP_NAMES } from '
|
|
54
|
-
import { getRecentDocumentBasedOnPurpose, hasNoneEditableValue, sleep } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { DocumentPurpose, FlowsTypes } from '@types';
|
|
52
|
+
import { handleNextScreenStep, handleCurrentActiveScreen, handleSetCountryByIso2, handlePrevScreenStep } from '@app/settings';
|
|
53
|
+
import { TAX_STEP_NAMES } from '@constants';
|
|
54
|
+
import { getRecentDocumentBasedOnPurpose, hasNoneEditableValue, sleep } from '@utils';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
57
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -23,17 +23,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { memo } from 'react';
|
|
25
25
|
import { createRoot } from 'react-dom/client';
|
|
26
|
-
import { useAppTheme, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener, useVerifyToken } from '
|
|
27
|
-
import { settingsSelector } from '
|
|
28
|
-
import AnimationFlow from '
|
|
29
|
-
import { store } from '
|
|
30
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
31
|
-
import Collapse from '
|
|
32
|
-
import { findOrCreateElementAndInject } from '
|
|
33
|
-
import { FeatureContainer } from '
|
|
34
|
-
import { BANK_SCREENS_NAVIGATION } from '
|
|
26
|
+
import { useAppTheme, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener, useVerifyToken } from '@hooks';
|
|
27
|
+
import { settingsSelector } from '@app/settings';
|
|
28
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
29
|
+
import { store } from '@app/store';
|
|
30
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
31
|
+
import Collapse from '@components/Collapse';
|
|
32
|
+
import { findOrCreateElementAndInject } from '@utils';
|
|
33
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
34
|
+
import { BANK_SCREENS_NAVIGATION } from '@constants';
|
|
35
35
|
import { bankFeatureScreens } from '../featuresScreens';
|
|
36
|
-
import { bankSelector, verifyLeadToken } from '
|
|
36
|
+
import { bankSelector, verifyLeadToken } from '@features/app/bank/bankStore';
|
|
37
37
|
import Background from '../shared/Background';
|
|
38
38
|
var Bank = memo(function (_a) {
|
|
39
39
|
var verifyToken = _a.verifyToken, props = __rest(_a, ["verifyToken"]);
|
|
@@ -11,25 +11,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { ScreenContainer } from '
|
|
14
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
15
15
|
import Beneficiary from './Beneficiary';
|
|
16
16
|
import IBAN from './IBAN';
|
|
17
17
|
import BankName from './BankName';
|
|
18
|
-
import Button from '
|
|
19
|
-
import { useAppDispatch, useAppSelector, useFormReadOnly, useSetFromDefaultValues, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '
|
|
18
|
+
import Button from '@features/shared/Button';
|
|
19
|
+
import { useAppDispatch, useAppSelector, useFormReadOnly, useSetFromDefaultValues, useDataNoneEditable, useFormErrorAndUpdateReadOnly, useExcludeReadOnlyFelids, useDataVerified } from '@hooks';
|
|
20
20
|
import { BankKWFLValidation, BankValidation } from './validation';
|
|
21
21
|
import { useTranslation } from 'react-i18next';
|
|
22
22
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
23
23
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
24
|
-
import { useLanguage } from '
|
|
24
|
+
import { useLanguage } from '@hooks';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import { BusinessType, DocumentPurpose } from '
|
|
27
|
-
import { bankSelector, clearError, createBankAccount, retrieveBoardStatus } from '
|
|
28
|
-
import Form from '
|
|
29
|
-
import { handlePrevScreenStep, settingsSelector } from '
|
|
26
|
+
import { BusinessType, DocumentPurpose } from '@types';
|
|
27
|
+
import { bankSelector, clearError, createBankAccount, retrieveBoardStatus } from '@features/app/bank/bankStore';
|
|
28
|
+
import Form from '@components/Form';
|
|
29
|
+
import { handlePrevScreenStep, settingsSelector } from '@app/settings';
|
|
30
30
|
import ConfirmPolicy from './ConfirmPolicy';
|
|
31
31
|
import BankStatement from './BankStatement';
|
|
32
|
-
import { getFileDetailsFromDocument, isKW, isStringHasOneAsterisk } from '
|
|
32
|
+
import { getFileDetailsFromDocument, isKW, isStringHasOneAsterisk } from '@utils';
|
|
33
33
|
var FormStyled = styled(Form)(function () { return ({
|
|
34
34
|
display: 'flex',
|
|
35
35
|
flexDirection: 'column',
|