@tap-payments/auth-jsconnect 2.5.4-test → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/@types/app.d.ts +143 -12
- package/build/@types/app.js +18 -1
- package/build/@types/config.d.ts +45 -0
- package/build/@types/config.js +1 -0
- package/build/@types/form.d.ts +15 -1
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/theme.d.ts +4 -0
- package/build/@types/theme.js +5 -0
- package/build/api/account.d.ts +5 -0
- package/build/api/account.js +16 -2
- package/build/api/auth.d.ts +12 -1
- package/build/api/auth.js +18 -1
- package/build/api/availabilityServices.d.ts +1 -0
- package/build/api/country.d.ts +1 -0
- package/build/api/country.js +8 -1
- package/build/api/entity.d.ts +27 -0
- package/build/api/entity.js +37 -1
- package/build/api/firebase.js +68 -8
- package/build/api/index.d.ts +16 -4
- package/build/api/lead.d.ts +11 -0
- package/build/api/lead.js +47 -1
- package/build/api/operator.d.ts +10 -0
- package/build/api/operator.js +9 -1
- package/build/app/rootReducer.d.ts +2 -0
- package/build/app/rootReducer.js +5 -1
- package/build/app/settings.d.ts +23 -3
- package/build/app/settings.js +133 -43
- package/build/app/store.d.ts +4 -0
- package/build/assets/locales/ar.json +324 -131
- package/build/assets/locales/en.json +322 -132
- package/build/components/AnimationFlow/AnimationFlow.d.ts +14 -3
- package/build/components/AnimationFlow/AnimationFlow.js +16 -5
- package/build/components/AnimationFlow/BottomSheet.d.ts +7 -2
- package/build/components/AnimationFlow/BottomSheet.js +37 -12
- package/build/components/AnimationFlow/Dialog.d.ts +11 -2
- package/build/components/AnimationFlow/Dialog.js +7 -11
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +6 -2
- package/build/components/AnimationFlow/Loader.js +17 -5
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +3 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Footer/Footer.js +2 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/Providers/ReduxProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.js +3 -3
- package/build/components/Radio/Radio.d.ts +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/api.d.ts +9 -0
- package/build/constants/api.js +19 -1
- package/build/constants/app.d.ts +40 -0
- package/build/constants/app.js +315 -10
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +3 -1
- package/build/constants/dummy.d.ts +43 -196
- package/build/constants/dummy.js +610 -6141
- package/build/constants/validation.d.ts +5 -0
- package/build/constants/validation.js +6 -1
- package/build/features/app/auth/authStore.d.ts +278 -0
- package/build/features/app/auth/authStore.js +1166 -0
- package/build/features/app/bank/bankStore.d.ts +11 -0
- package/build/features/app/bank/bankStore.js +66 -24
- package/build/features/app/board/boardStore.d.ts +69 -0
- package/build/features/app/board/boardStore.js +263 -0
- package/build/features/app/brand/brandStore.d.ts +10 -0
- package/build/features/app/brand/brandStore.js +83 -39
- package/build/features/app/business/businessStore.d.ts +4 -7
- package/build/features/app/business/businessStore.js +217 -150
- package/build/features/app/connect/connectStore.d.ts +22 -19
- package/build/features/app/connect/connectStore.js +113 -134
- package/build/features/app/connectExpress/connectExpressStore.d.ts +97 -10
- package/build/features/app/connectExpress/connectExpressStore.js +706 -125
- package/build/features/app/entity/entityStore.d.ts +10 -0
- package/build/features/app/entity/entityStore.js +106 -59
- package/build/features/app/individual/individualStore.d.ts +19 -0
- package/build/features/app/individual/individualStore.js +241 -137
- package/build/features/app/password/passwordStore.d.ts +39 -1
- package/build/features/app/password/passwordStore.js +192 -108
- package/build/features/app/tax/taxStore.d.ts +10 -0
- package/build/features/app/tax/taxStore.js +61 -21
- package/build/features/auth/Auth.d.ts +15 -0
- package/build/features/auth/Auth.js +160 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
- package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -0
- package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -0
- package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
- package/build/features/auth/screens/AccountNotFound/index.js +2 -0
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -0
- package/build/features/auth/screens/AuthMerchant/MerchantList.d.ts +11 -0
- package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -0
- package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -0
- package/build/features/auth/screens/AuthMerchant/index.js +2 -0
- package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -0
- package/build/features/auth/screens/AuthMerchant/validation.js +4 -0
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +57 -0
- package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
- package/build/features/auth/screens/AuthSwitch/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -0
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -0
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -0
- package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -0
- package/build/features/auth/screens/AuthenticationList/validation.js +68 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -0
- package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/auth/screens/BusinessCountry/index.js +2 -0
- package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/auth/screens/CivilID/CivilID.js +57 -0
- package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
- package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
- package/build/features/auth/screens/CivilID/index.d.ts +3 -0
- package/build/features/auth/screens/CivilID/index.js +2 -0
- package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
- package/build/features/auth/screens/CivilID/validation.js +4 -0
- package/build/features/auth/screens/Email/Email.d.ts +5 -0
- package/build/features/auth/screens/Email/Email.js +57 -0
- package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
- package/build/features/auth/screens/Email/EmailField.js +52 -0
- package/build/features/auth/screens/Email/index.d.ts +3 -0
- package/build/features/auth/screens/Email/index.js +2 -0
- package/build/features/auth/screens/Email/validation.d.ts +8 -0
- package/build/features/auth/screens/Email/validation.js +4 -0
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
- package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
- package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
- package/build/features/auth/screens/EmailSent/index.js +2 -0
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
- package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
- package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
- package/build/features/auth/screens/MigratingData/index.js +2 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/auth/screens/Mobile/Mobile.js +82 -0
- package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
- package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
- package/build/features/auth/screens/Mobile/index.d.ts +3 -0
- package/build/features/auth/screens/Mobile/index.js +2 -0
- package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
- package/build/features/auth/screens/Mobile/validation.js +35 -0
- package/build/features/auth/screens/NID/DOB.d.ts +6 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
- package/build/features/auth/screens/NID/IDNumber.js +55 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +62 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +11 -0
- package/build/features/auth/screens/NID/validation.js +11 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +121 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +85 -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/auth/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
- package/build/features/auth/screens/OperatorError/index.js +2 -0
- package/build/features/auth/screens/Password/Password.d.ts +5 -0
- package/build/features/auth/screens/Password/Password.js +61 -0
- package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
- package/build/features/auth/screens/Password/PasswordField.js +28 -0
- package/build/features/auth/screens/Password/index.d.ts +3 -0
- package/build/features/auth/screens/Password/index.js +2 -0
- package/build/features/auth/screens/Password/validation.d.ts +8 -0
- package/build/features/auth/screens/Password/validation.js +4 -0
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
- package/build/features/auth/screens/PreparingData/PreparingData.js +44 -0
- package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
- package/build/features/auth/screens/PreparingData/index.js +2 -0
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyPACI/index.js +2 -0
- package/build/features/bank/Bank.d.ts +3 -2
- package/build/features/bank/Bank.js +11 -7
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +6 -5
- package/build/features/bank/screens/BankDetails/BankName.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
- package/build/features/bank/screens/OperatorError/index.js +2 -0
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/bank/screens/Success/Success.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/OTPInput.js +3 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.js +7 -7
- package/build/features/board/Board.d.ts +10 -0
- package/build/features/board/Board.js +81 -0
- package/build/features/board/index.d.ts +1 -0
- package/build/features/board/index.js +1 -0
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/board/screens/OperatorError/index.d.ts +3 -0
- package/build/features/board/screens/OperatorError/index.js +2 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +34 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/board/screens/Verify/OTPInput.js +51 -0
- package/build/features/board/screens/Verify/Verify.d.ts +5 -0
- package/build/features/board/screens/Verify/Verify.js +74 -0
- package/build/features/board/screens/Verify/index.d.ts +2 -0
- package/build/features/board/screens/Verify/index.js +2 -0
- package/build/features/board/screens/Verify/validation.d.ts +8 -0
- package/build/features/board/screens/Verify/validation.js +4 -0
- package/build/features/brand/Brand.d.ts +3 -2
- package/build/features/brand/Brand.js +11 -7
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +3 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +5 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +9 -30
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
- package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +7 -5
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -0
- package/build/features/brand/screens/BrandInfo/validation.js +5 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +3 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
- package/build/features/brand/screens/OperatorError/index.js +2 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/brand/screens/Success/Success.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/OTPInput.js +3 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.js +3 -3
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/Business.js +16 -10
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.js +19 -9
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +7 -13
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -2
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +23 -7
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/EntityName.js +3 -3
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +3 -3
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +5 -27
- package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
- package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
- package/build/features/business/screens/BusinessType/validation.js +16 -0
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.js +3 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +21 -70
- package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/Customers.js +43 -10
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +10 -4
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +16 -30
- package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
- package/build/features/business/screens/Customers/validation.d.ts +6 -6
- package/build/features/business/screens/Customers/validation.js +3 -8
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.js +6 -2
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +18 -18
- package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
- package/build/features/business/screens/IDBOD/validation.js +4 -0
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.js +3 -3
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.js +5 -2
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/business/screens/OperatorError/index.d.ts +3 -0
- package/build/features/business/screens/OperatorError/index.js +2 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.js +3 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.js +14 -4
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +5 -2
- package/build/features/connect/Connect.js +47 -31
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +6 -28
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BrandSegment/TeamSize.js +1 -1
- package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -9
- package/build/features/connect/screens/BrandSegment/validation.js +0 -3
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +107 -0
- package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connect/screens/BusinessCountry/index.js +2 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/CivilID/CivilID.js +13 -4
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Individual.js +4 -5
- package/build/features/connect/screens/Individual/MobileNumber.js +6 -3
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Individual/validation.js +8 -3
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +3 -3
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +5 -2
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +3 -3
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Merchant/validation.js +2 -2
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +14 -7
- package/build/features/connect/screens/Mobile/MobileNumber.js +14 -8
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/Mobile/validation.js +8 -3
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.js +13 -6
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.js +4 -4
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.js +4 -2
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
- package/build/features/connect/screens/OperatorError/index.js +2 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +5 -4
- package/build/features/connectExpress/ConnectExpress.js +69 -40
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +104 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +138 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +20 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +68 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.js +17 -5
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +7 -2
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +4 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +21 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +6 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +5 -27
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +68 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +15 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +7 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +8 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +11 -10
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +11 -7
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +2 -2
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.js +17 -6
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +17 -11
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/validation.js +16 -6
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.js +13 -4
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/NID/TAC.js +2 -2
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +6 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +8 -5
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +10 -5
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +15 -3
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
- package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +16 -7
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +3 -2
- package/build/features/entity/Entity.js +11 -7
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +5 -3
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +6 -4
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +3 -3
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityName.js +15 -7
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
- package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -7
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -7
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LegalName.js +1 -13
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +9 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
- package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
- package/build/features/entity/screens/EntityName/validation.js +38 -9
- package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
- package/build/features/entity/screens/OperatorError/index.js +2 -0
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/entity/screens/Success/Success.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/OTPInput.js +3 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.js +3 -3
- package/build/features/featuresScreens.d.ts +2 -0
- package/build/features/featuresScreens.js +208 -9
- package/build/features/individual/Individual.d.ts +3 -2
- package/build/features/individual/Individual.js +11 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +15 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +14 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +4 -3
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/IndividualList.js +14 -6
- package/build/features/individual/screens/IndividualList/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualList/UserList.js +11 -7
- package/build/features/individual/screens/IndividualList/validation.js +8 -3
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -27
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +8 -5
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +72 -63
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +7 -4
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +3 -2
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +8 -3
- package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
- package/build/features/individual/screens/OperatorError/index.js +2 -0
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/individual/screens/Success/Success.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/OTPInput.js +3 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.js +3 -3
- package/build/features/password/Password.d.ts +3 -2
- package/build/features/password/Password.js +92 -32
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.js +13 -6
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTP.js +3 -3
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.js +5 -2
- package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/password/screens/OperatorError/index.d.ts +3 -0
- package/build/features/password/screens/OperatorError/index.js +2 -0
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/password/screens/Success/Success.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/OTPInput.js +3 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.js +7 -7
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.d.ts +14 -46
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +3 -1
- package/build/features/shared/Background/Background.js +9 -11
- package/build/features/shared/Background/LogoBackground.d.ts +1 -1
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +14 -0
- package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
- package/build/features/shared/BusinessCountry/index.d.ts +2 -0
- package/build/features/shared/BusinessCountry/index.js +2 -0
- package/build/features/shared/Button/AbsherButton.d.ts +1 -2
- package/build/features/shared/Button/Button.d.ts +1 -2
- package/build/features/shared/Button/Button.js +11 -5
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -2
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
- package/build/features/shared/Button/FlowsButtons.js +21 -14
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Calender/Calender.d.ts +1 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +1 -2
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
- package/build/features/shared/Containers/FeatureContainer.js +3 -3
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +4 -1
- package/build/features/shared/DataLoading/DataLoading.js +2 -2
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/Footer.js +2 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -2
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -14
- package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +8 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +11 -14
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +3 -8
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/SignIn.js +4 -3
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Email/Email.js +2 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +6 -3
- package/build/features/signIn/screens/Mobile/validation.js +8 -3
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.js +3 -3
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
- package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
- package/build/features/signIn/screens/OperatorError/index.js +2 -0
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.js +2 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +3 -2
- package/build/features/tax/Tax.js +11 -7
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
- package/build/features/tax/screens/OperatorError/index.js +2 -0
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +4 -3
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +1 -2
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/OTPInput.js +3 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.js +7 -7
- package/build/hooks/useAppConfig.d.ts +3 -3
- package/build/hooks/useAppConfig.js +10 -17
- package/build/hooks/useAppDispatch.d.ts +2 -0
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +4 -3
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
- package/build/hooks/useFormReadOnly.d.ts +1 -1
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/hooks/useVerifyToken.d.ts +5 -2
- package/build/hooks/useVerifyToken.js +10 -5
- package/build/index.css +360 -120
- package/build/index.d.ts +4 -2
- package/build/index.js +6 -2
- package/build/theme/components.js +7 -0
- package/build/theme/palette.js +2 -1
- package/build/utils/array.js +2 -2
- package/build/utils/common.d.ts +3 -0
- package/build/utils/common.js +33 -0
- package/build/utils/device.d.ts +2 -0
- package/build/utils/device.js +6 -0
- package/build/utils/locale.js +2 -1
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +14 -0
- package/build/utils/string.d.ts +5 -2
- package/build/utils/string.js +24 -5
- package/build/utils/validation.d.ts +4 -0
- package/build/utils/validation.js +13 -0
- package/package.json +2 -2
- package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentLocations.js +0 -66
- package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentProfits.js +0 -66
- package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentTechs.js +0 -66
|
@@ -56,39 +56,79 @@ 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, handleSetCountryByIso2 } from '../../../app/settings';
|
|
59
|
+
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen, handleSetCountryByIso2, onCloseComplete, storeAuthId } from '../../../app/settings';
|
|
60
60
|
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '../../../@types';
|
|
61
61
|
import API from '../../../api';
|
|
62
|
-
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
62
|
+
import { ADD_NEW_ENTITY, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
|
|
63
63
|
import { defaultCountry } from '../../../constants';
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension } from '../../../utils';
|
|
65
|
+
export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
+
var connectExpress, payload, data;
|
|
67
|
+
return __generator(this, function (_a) {
|
|
68
|
+
switch (_a.label) {
|
|
69
|
+
case 0:
|
|
70
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
71
|
+
payload = {
|
|
72
|
+
id: connectExpress.data.leadId || '',
|
|
73
|
+
country_code: countryCode,
|
|
74
|
+
encryption_contract: []
|
|
75
|
+
};
|
|
76
|
+
return [4, API.leadService.updateLeadExpress(payload)];
|
|
77
|
+
case 1:
|
|
78
|
+
data = _a.sent();
|
|
79
|
+
return [2, data];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}); });
|
|
65
83
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
-
var
|
|
67
|
-
var _d, _e;
|
|
68
|
-
return __generator(this, function (
|
|
69
|
-
switch (
|
|
84
|
+
var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, isRegistered, screen_1, _b, boardInfo, boardData, error_1;
|
|
85
|
+
var _c, _d, _e, _f, _g;
|
|
86
|
+
return __generator(this, function (_h) {
|
|
87
|
+
switch (_h.label) {
|
|
70
88
|
case 0:
|
|
71
|
-
|
|
89
|
+
settings = thunkApi.getState().settings;
|
|
72
90
|
countryCode = settings.data.businessCountry;
|
|
73
|
-
showBoard =
|
|
91
|
+
showBoard = settings.data.appConfig.showBoard;
|
|
74
92
|
return [4, API.leadService.retrieveLeadIdentity(leadId)];
|
|
75
93
|
case 1:
|
|
76
|
-
data =
|
|
77
|
-
|
|
94
|
+
data = _h.sent();
|
|
95
|
+
_a = data || {}, country_code = _a.country_code, contact = _a.contact;
|
|
78
96
|
if (country_code)
|
|
79
97
|
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
80
98
|
phone = (contact || {}).phone;
|
|
81
99
|
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
82
100
|
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
83
101
|
status = data.status, board_id = data.board_id, board_info_id = data.board_info_id;
|
|
102
|
+
if (!country_code && !((_c = settings.data.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2)) {
|
|
103
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP'));
|
|
104
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
105
|
+
}
|
|
84
106
|
isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
|
|
85
|
-
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) &&
|
|
107
|
+
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
|
|
86
108
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
87
109
|
return [2, { data: data, countryCode: countryCode }];
|
|
88
110
|
}
|
|
111
|
+
if (!isRegistered && country_code) {
|
|
112
|
+
screen_1 = 'CONNECT_EXPRESS_NID_STEP';
|
|
113
|
+
if (!isSA(data.country_code))
|
|
114
|
+
screen_1 = 'CONNECT_EXPRESS_MOBILE_STEP';
|
|
115
|
+
thunkApi.dispatch(handleCurrentActiveScreen(screen_1));
|
|
116
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
117
|
+
}
|
|
118
|
+
if (!isRegistered && !isSA(settings.data.businessCountry.iso2)) {
|
|
119
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
120
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
121
|
+
}
|
|
122
|
+
if (!isRegistered && isSA(settings.data.businessCountry.iso2)) {
|
|
123
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_NID_STEP'));
|
|
124
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
125
|
+
}
|
|
126
|
+
if ((_d = data === null || data === void 0 ? void 0 : data.identification) === null || _d === void 0 ? void 0 : _d.authentication_id) {
|
|
127
|
+
thunkApi.dispatch(storeAuthId((_e = data === null || data === void 0 ? void 0 : data.identification) === null || _e === void 0 ? void 0 : _e.authentication_id));
|
|
128
|
+
}
|
|
89
129
|
if (isRegistered && !showBoard) {
|
|
90
|
-
(
|
|
91
|
-
thunkApi.dispatch(
|
|
130
|
+
(_g = (_f = settings.data.appConfig).onFlowCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, data);
|
|
131
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
92
132
|
return [2, { data: data, countryCode: countryCode }];
|
|
93
133
|
}
|
|
94
134
|
if (isRegistered && !(board_id && board_info_id)) {
|
|
@@ -96,19 +136,19 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
96
136
|
return [2, { data: data, countryCode: countryCode }];
|
|
97
137
|
}
|
|
98
138
|
if (!(isRegistered && board_id && board_info_id)) return [3, 5];
|
|
99
|
-
|
|
139
|
+
_h.label = 2;
|
|
100
140
|
case 2:
|
|
101
|
-
|
|
141
|
+
_h.trys.push([2, 4, , 5]);
|
|
102
142
|
return [4, Promise.all([
|
|
103
143
|
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
104
144
|
API.boardService.retrieveBoardDetails(board_id)
|
|
105
145
|
])];
|
|
106
146
|
case 3:
|
|
107
|
-
|
|
147
|
+
_b = _h.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
108
148
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
109
149
|
return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
|
|
110
150
|
case 4:
|
|
111
|
-
error_1 =
|
|
151
|
+
error_1 = _h.sent();
|
|
112
152
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
113
153
|
return [2, { data: data, countryCode: countryCode }];
|
|
114
154
|
case 5: return [2, { data: data, countryCode: countryCode }];
|
|
@@ -143,6 +183,73 @@ export var retrieveEntityListAsync = createAsyncThunk('connectExpress/retrieveEn
|
|
|
143
183
|
}
|
|
144
184
|
});
|
|
145
185
|
}); });
|
|
186
|
+
export var retrieveAuthenticationListAsync = createAsyncThunk('connectExpress/retrieveAuthenticationListAsync', function (_a) {
|
|
187
|
+
var individualId = _a.individualId;
|
|
188
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
+
var brandList, entityList, brands, err_1, list, err_2;
|
|
190
|
+
return __generator(this, function (_b) {
|
|
191
|
+
switch (_b.label) {
|
|
192
|
+
case 0:
|
|
193
|
+
brandList = undefined;
|
|
194
|
+
entityList = undefined;
|
|
195
|
+
_b.label = 1;
|
|
196
|
+
case 1:
|
|
197
|
+
_b.trys.push([1, 3, , 4]);
|
|
198
|
+
return [4, API.brandService.getBrandList({ individual_id: individualId })];
|
|
199
|
+
case 2:
|
|
200
|
+
brands = (_b.sent()).brands;
|
|
201
|
+
brandList = brands;
|
|
202
|
+
return [3, 4];
|
|
203
|
+
case 3:
|
|
204
|
+
err_1 = _b.sent();
|
|
205
|
+
return [3, 4];
|
|
206
|
+
case 4:
|
|
207
|
+
_b.trys.push([4, 6, , 7]);
|
|
208
|
+
return [4, API.entityService.getEntityListUsingIndividualId(individualId)];
|
|
209
|
+
case 5:
|
|
210
|
+
list = (_b.sent()).list;
|
|
211
|
+
entityList = list;
|
|
212
|
+
return [3, 7];
|
|
213
|
+
case 6:
|
|
214
|
+
err_2 = _b.sent();
|
|
215
|
+
return [3, 7];
|
|
216
|
+
case 7: return [2, { brandList: brandList || [], entityList: entityList || [] }];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
export var getMerchantListAsync = createAsyncThunk('connectExpress/getMerchantListAsync', function (_a, thunkApi) {
|
|
222
|
+
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
|
|
223
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
224
|
+
var _b, settings, connectExpress, platforms, payment_provider, payload, merchants, list;
|
|
225
|
+
var _c, _d, _e, _f, _g, _h;
|
|
226
|
+
return __generator(this, function (_j) {
|
|
227
|
+
switch (_j.label) {
|
|
228
|
+
case 0:
|
|
229
|
+
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
230
|
+
platforms = (_e = (_d = (_c = connectExpress.data.responseData) === null || _c === void 0 ? void 0 : _c.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
|
|
231
|
+
payment_provider = (_h = (_g = (_f = connectExpress.data.responseData) === null || _f === void 0 ? void 0 : _f.leadData) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
|
|
232
|
+
payload = {
|
|
233
|
+
business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
234
|
+
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
235
|
+
create_if_not_present: true,
|
|
236
|
+
platforms: platforms,
|
|
237
|
+
payment_provider: payment_provider
|
|
238
|
+
};
|
|
239
|
+
return [4, API.entityService.getMerchantListUsingEntityId(payload)];
|
|
240
|
+
case 1:
|
|
241
|
+
merchants = (_j.sent()).merchants;
|
|
242
|
+
list = merchants || [];
|
|
243
|
+
if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
|
|
244
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTH_MERCHANT_LIST_STEP'));
|
|
245
|
+
return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
|
|
246
|
+
}
|
|
247
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTH_ACCOUNT_CREATED_STEP')); });
|
|
248
|
+
return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
});
|
|
146
253
|
export var createMobileAuthAsync = createAsyncThunk('connectExpress/createMobileAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
147
254
|
var _a, settings, connectExpress, requestBody, data;
|
|
148
255
|
var _b, _c;
|
|
@@ -300,7 +407,7 @@ export var createCivilIdAuthAsync = createAsyncThunk('connectExpress/createCivil
|
|
|
300
407
|
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
|
|
301
408
|
encryption_contract: ['user_credentail.identification_id']
|
|
302
409
|
};
|
|
303
|
-
return [4, API.authService.
|
|
410
|
+
return [4, API.authService.createExpressAuth(requestBody)];
|
|
304
411
|
case 1:
|
|
305
412
|
data = _d.sent();
|
|
306
413
|
thunkApi.dispatch(handleNextScreenStep());
|
|
@@ -310,16 +417,21 @@ export var createCivilIdAuthAsync = createAsyncThunk('connectExpress/createCivil
|
|
|
310
417
|
});
|
|
311
418
|
}); });
|
|
312
419
|
export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, mobileData, _c, auth_token, device_token, service_name, payload, data,
|
|
314
|
-
var
|
|
315
|
-
return __generator(this, function (
|
|
316
|
-
switch (
|
|
420
|
+
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, mobileData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList, isKuwait, next;
|
|
421
|
+
var _f, _g;
|
|
422
|
+
return __generator(this, function (_h) {
|
|
423
|
+
switch (_h.label) {
|
|
317
424
|
case 0:
|
|
318
425
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
319
426
|
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, mobileData = _b.mobileData;
|
|
320
427
|
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
321
428
|
throw new Error('Auth data is missing');
|
|
322
429
|
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
430
|
+
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
431
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
432
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
433
|
+
isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
|
|
434
|
+
authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
|
|
323
435
|
payload = {
|
|
324
436
|
auth_token: auth_token,
|
|
325
437
|
lead_id: leadId,
|
|
@@ -334,29 +446,64 @@ export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileO
|
|
|
334
446
|
};
|
|
335
447
|
return [4, API.authService.verifyExpressAuth(payload)];
|
|
336
448
|
case 1:
|
|
337
|
-
data =
|
|
338
|
-
|
|
449
|
+
data = _h.sent();
|
|
450
|
+
sendCustomEventToGTM({
|
|
451
|
+
event: 'Send Event',
|
|
452
|
+
event_category: 'User Registration Flow',
|
|
453
|
+
event_action: 'First OTP Success'
|
|
454
|
+
});
|
|
455
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
456
|
+
authId = data.auth.id;
|
|
457
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
458
|
+
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
459
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
460
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
461
|
+
thunkApi.dispatch(handleOpen(false));
|
|
462
|
+
return [2, data];
|
|
463
|
+
}
|
|
464
|
+
if (redirectUrl) {
|
|
465
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
466
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
467
|
+
return [2, data];
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
|
|
471
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
339
472
|
case 2:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
473
|
+
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
474
|
+
if (brandList.length && entityList.length) {
|
|
475
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
476
|
+
return [2, data];
|
|
477
|
+
}
|
|
478
|
+
_h.label = 3;
|
|
479
|
+
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead_id)).unwrap()];
|
|
480
|
+
case 4:
|
|
481
|
+
_h.sent();
|
|
482
|
+
isKuwait = isKW(settings.data.businessCountry.iso2);
|
|
483
|
+
next = 'CONNECT_EXPRESS_NID_MISSED_STEP';
|
|
484
|
+
if (isKuwait)
|
|
485
|
+
next = 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP';
|
|
344
486
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(next)); });
|
|
345
487
|
return [2, data];
|
|
346
488
|
}
|
|
347
489
|
});
|
|
348
490
|
}); });
|
|
349
491
|
export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
350
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, payload, data, stepName, needToCollectMoreInfo, creatingAccount;
|
|
351
|
-
var
|
|
352
|
-
return __generator(this, function (
|
|
353
|
-
switch (
|
|
492
|
+
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
493
|
+
var _f, _g;
|
|
494
|
+
return __generator(this, function (_h) {
|
|
495
|
+
switch (_h.label) {
|
|
354
496
|
case 0:
|
|
355
497
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
356
498
|
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, nidData = _b.nidData;
|
|
357
499
|
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
358
500
|
throw new Error('Auth data is missing');
|
|
359
501
|
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
502
|
+
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
503
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
504
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
505
|
+
isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
|
|
506
|
+
authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
|
|
360
507
|
payload = {
|
|
361
508
|
auth_token: auth_token,
|
|
362
509
|
lead_id: leadId,
|
|
@@ -371,11 +518,39 @@ export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsyn
|
|
|
371
518
|
};
|
|
372
519
|
return [4, API.authService.verifyExpressAuth(payload)];
|
|
373
520
|
case 1:
|
|
374
|
-
data =
|
|
375
|
-
(
|
|
376
|
-
|
|
521
|
+
data = _h.sent();
|
|
522
|
+
sendCustomEventToGTM({
|
|
523
|
+
event: 'Send Event',
|
|
524
|
+
event_category: 'User Registration Flow',
|
|
525
|
+
event_action: 'First OTP Success'
|
|
526
|
+
});
|
|
527
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
528
|
+
authId = data.auth.id;
|
|
529
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
530
|
+
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
531
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
532
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
533
|
+
thunkApi.dispatch(handleOpen(false));
|
|
534
|
+
return [2, data];
|
|
535
|
+
}
|
|
536
|
+
if (redirectUrl) {
|
|
537
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
538
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
539
|
+
return [2, data];
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
|
|
543
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
377
544
|
case 2:
|
|
378
|
-
|
|
545
|
+
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
546
|
+
if (brandList.length && entityList.length) {
|
|
547
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
548
|
+
return [2, data];
|
|
549
|
+
}
|
|
550
|
+
_h.label = 3;
|
|
551
|
+
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
552
|
+
case 4:
|
|
553
|
+
_h.sent();
|
|
379
554
|
stepName = data.step_name;
|
|
380
555
|
needToCollectMoreInfo = stepName === 'collect_info';
|
|
381
556
|
creatingAccount = stepName === 'create_account';
|
|
@@ -389,12 +564,82 @@ export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsyn
|
|
|
389
564
|
}
|
|
390
565
|
});
|
|
391
566
|
}); });
|
|
392
|
-
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
567
|
+
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
568
|
+
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
569
|
+
var _d, _e, _f;
|
|
570
|
+
return __generator(this, function (_g) {
|
|
571
|
+
switch (_g.label) {
|
|
572
|
+
case 0:
|
|
573
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
574
|
+
authData = (connectExpress.data.responseData || {}).authData;
|
|
575
|
+
_b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
|
|
576
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
577
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
578
|
+
isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
|
|
579
|
+
authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
|
|
580
|
+
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
581
|
+
interval = 3;
|
|
582
|
+
maxCalls = Math.floor(expiry / interval);
|
|
583
|
+
count = 1;
|
|
584
|
+
_g.label = 1;
|
|
585
|
+
case 1:
|
|
586
|
+
if (!(count <= maxCalls)) return [3, 9];
|
|
587
|
+
if (thunkApi.signal.aborted) {
|
|
588
|
+
return [3, 9];
|
|
589
|
+
}
|
|
590
|
+
return [4, API.authService.getVerifyExpressAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token)];
|
|
591
|
+
case 2:
|
|
592
|
+
data = _g.sent();
|
|
593
|
+
isSuccess = ((_e = (_d = data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'success';
|
|
594
|
+
if (!isSuccess) return [3, 6];
|
|
595
|
+
authId = data.auth.id;
|
|
596
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
597
|
+
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
598
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
599
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
600
|
+
thunkApi.dispatch(handleOpen(false));
|
|
601
|
+
return [2, data];
|
|
602
|
+
}
|
|
603
|
+
if (redirectUrl) {
|
|
604
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
605
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
606
|
+
return [2, data];
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 4];
|
|
610
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
611
|
+
case 3:
|
|
612
|
+
_c = _g.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
613
|
+
if (brandList.length && entityList.length) {
|
|
614
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
615
|
+
return [2, data];
|
|
616
|
+
}
|
|
617
|
+
_g.label = 4;
|
|
618
|
+
case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
619
|
+
case 5:
|
|
620
|
+
_g.sent();
|
|
621
|
+
stepName = data.step_name;
|
|
622
|
+
needToCollectMoreInfo = stepName === 'collect_info';
|
|
623
|
+
creatingAccount = stepName === 'create_account';
|
|
624
|
+
(_f = params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
|
|
625
|
+
if (creatingAccount) {
|
|
626
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
627
|
+
}
|
|
628
|
+
if (needToCollectMoreInfo) {
|
|
629
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
630
|
+
}
|
|
631
|
+
return [2, data];
|
|
632
|
+
case 6: return [4, sleep(interval * 1000)];
|
|
633
|
+
case 7:
|
|
634
|
+
_g.sent();
|
|
635
|
+
_g.label = 8;
|
|
636
|
+
case 8:
|
|
637
|
+
count++;
|
|
638
|
+
return [3, 1];
|
|
639
|
+
case 9: throw new Error('paci_verification_failed');
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
}); });
|
|
398
643
|
export var createCivilIDAuthIdentityAsync = createAsyncThunk('connectExpress/createCivilIDAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
399
644
|
var _a, settings, connectExpress, civilId, countryCode, requestBody, data;
|
|
400
645
|
var _b, _c, _d;
|
|
@@ -433,6 +678,9 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
433
678
|
dob = params.dob, nid = params.nid;
|
|
434
679
|
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
435
680
|
countryCode = settings.data.businessCountry.iso2;
|
|
681
|
+
if (isOtherThanKWOrSA(countryCode)) {
|
|
682
|
+
nidType = IDENTIFICATION_TYPE.NID;
|
|
683
|
+
}
|
|
436
684
|
requestBody = {
|
|
437
685
|
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
438
686
|
identification: {
|
|
@@ -448,7 +696,17 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
448
696
|
return [4, API.leadService.updateLead(requestBody)];
|
|
449
697
|
case 1:
|
|
450
698
|
data = _e.sent();
|
|
451
|
-
|
|
699
|
+
if (!((data === null || data === void 0 ? void 0 : data.verify_token) !== 'null')) return [3, 2];
|
|
700
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_OTP_IDENTITY_STEP'));
|
|
701
|
+
return [3, 4];
|
|
702
|
+
case 2:
|
|
703
|
+
if (!isOtherThanKWOrSA(countryCode)) return [3, 4];
|
|
704
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(data.id)).unwrap()];
|
|
705
|
+
case 3:
|
|
706
|
+
_e.sent();
|
|
707
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'));
|
|
708
|
+
_e.label = 4;
|
|
709
|
+
case 4:
|
|
452
710
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.identification);
|
|
453
711
|
return [2, { response: { verify_token: data.verify_token }, formData: params }];
|
|
454
712
|
}
|
|
@@ -464,6 +722,9 @@ export var resendNIDAuthIdentityOTP = createAsyncThunk('connectExpress/resendNID
|
|
|
464
722
|
dob = params.dob, nid = params.nid;
|
|
465
723
|
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
466
724
|
countryCode = settings.data.businessCountry.iso2;
|
|
725
|
+
if (isOtherThanKWOrSA(countryCode)) {
|
|
726
|
+
nidType = IDENTIFICATION_TYPE.NID;
|
|
727
|
+
}
|
|
467
728
|
requestBody = {
|
|
468
729
|
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
469
730
|
identification: {
|
|
@@ -506,6 +767,11 @@ export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/veri
|
|
|
506
767
|
return [4, API.authService.verifyExpressLeadIdentity(payload)];
|
|
507
768
|
case 1:
|
|
508
769
|
data = _e.sent();
|
|
770
|
+
sendCustomEventToGTM({
|
|
771
|
+
event: 'Send Event',
|
|
772
|
+
event_category: 'User Registration Flow',
|
|
773
|
+
event_action: 'Absher OTP Success'
|
|
774
|
+
});
|
|
509
775
|
return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
510
776
|
case 2:
|
|
511
777
|
_e.sent();
|
|
@@ -522,35 +788,35 @@ export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/veri
|
|
|
522
788
|
}
|
|
523
789
|
});
|
|
524
790
|
}); });
|
|
525
|
-
export var
|
|
526
|
-
var
|
|
527
|
-
var
|
|
528
|
-
return __generator(this, function (
|
|
529
|
-
switch (
|
|
791
|
+
export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verifyPaciOtpLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
792
|
+
var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, needToCollectMoreInfo, creatingAccount;
|
|
793
|
+
var _a, _b, _c;
|
|
794
|
+
return __generator(this, function (_d) {
|
|
795
|
+
switch (_d.label) {
|
|
530
796
|
case 0:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
lead_id: leadId,
|
|
539
|
-
data: params.otp,
|
|
540
|
-
service_name: 'ABSHER',
|
|
541
|
-
step_name: '',
|
|
542
|
-
sign_in: false,
|
|
543
|
-
encryption_contract: ['data']
|
|
544
|
-
};
|
|
545
|
-
return [4, API.authService.verifyExpressLeadIdentity(payload)];
|
|
797
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
798
|
+
authData = (connectExpress.data.responseData || {}).authData;
|
|
799
|
+
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
800
|
+
interval = 3;
|
|
801
|
+
maxCalls = Math.floor(expiry / interval);
|
|
802
|
+
count = 1;
|
|
803
|
+
_d.label = 1;
|
|
546
804
|
case 1:
|
|
547
|
-
|
|
548
|
-
|
|
805
|
+
if (!(count <= maxCalls)) return [3, 7];
|
|
806
|
+
if (thunkApi.signal.aborted) {
|
|
807
|
+
return [3, 7];
|
|
808
|
+
}
|
|
809
|
+
return [4, API.authService.getExpressTokenVerify({ token: authData === null || authData === void 0 ? void 0 : authData.verify_token, leadId: authData === null || authData === void 0 ? void 0 : authData.lead_id })];
|
|
549
810
|
case 2:
|
|
550
|
-
|
|
551
|
-
(
|
|
811
|
+
data = _d.sent();
|
|
812
|
+
isSuccess = ((_b = (_a = data.auth) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
813
|
+
if (!isSuccess) return [3, 4];
|
|
814
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
815
|
+
case 3:
|
|
816
|
+
_d.sent();
|
|
552
817
|
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
553
818
|
creatingAccount = data.step_name === 'create_account';
|
|
819
|
+
(_c = params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params);
|
|
554
820
|
if (creatingAccount) {
|
|
555
821
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
556
822
|
}
|
|
@@ -558,23 +824,34 @@ export var verifyPaciOtpLeadIdentityAsync = createAsyncThunk('connectExpress/ver
|
|
|
558
824
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
559
825
|
}
|
|
560
826
|
return [2, data];
|
|
827
|
+
case 4: return [4, sleep(interval * 1000)];
|
|
828
|
+
case 5:
|
|
829
|
+
_d.sent();
|
|
830
|
+
_d.label = 6;
|
|
831
|
+
case 6:
|
|
832
|
+
count++;
|
|
833
|
+
return [3, 1];
|
|
834
|
+
case 7: throw new Error('paci_verification_failed');
|
|
561
835
|
}
|
|
562
836
|
});
|
|
563
837
|
}); });
|
|
564
|
-
export var checkEmailAvailabilityAsync = createAsyncThunk('connectExpress/CheckEmailAvailabilityAsync', function (_a) {
|
|
838
|
+
export var checkEmailAvailabilityAsync = createAsyncThunk('connectExpress/CheckEmailAvailabilityAsync', function (_a, thunkApi) {
|
|
565
839
|
var email = _a.email, cancelToken = _a.cancelToken, onSuccess = _a.onSuccess;
|
|
566
840
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
567
|
-
var requestBody, data;
|
|
568
|
-
|
|
569
|
-
|
|
841
|
+
var connectExpress, requestBody, data;
|
|
842
|
+
var _b, _c;
|
|
843
|
+
return __generator(this, function (_d) {
|
|
844
|
+
switch (_d.label) {
|
|
570
845
|
case 0:
|
|
846
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
571
847
|
requestBody = {
|
|
572
848
|
email: email,
|
|
849
|
+
country: (_c = (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) === null || _c === void 0 ? void 0 : _c.country_code,
|
|
573
850
|
encryption_contract: ['email']
|
|
574
851
|
};
|
|
575
852
|
return [4, API.availabilityServices.checkEmail(requestBody, { cancelToken: cancelToken })];
|
|
576
853
|
case 1:
|
|
577
|
-
data = (
|
|
854
|
+
data = (_d.sent()).data;
|
|
578
855
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
579
856
|
if (!data.errors)
|
|
580
857
|
return [2, { response: data, formData: email }];
|
|
@@ -595,7 +872,7 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
|
|
|
595
872
|
requestBody = {
|
|
596
873
|
profile_name: name,
|
|
597
874
|
country_code: (_b = settings.data.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2,
|
|
598
|
-
encryption_contract: [
|
|
875
|
+
encryption_contract: []
|
|
599
876
|
};
|
|
600
877
|
return [4, API.availabilityServices.checkBrand(requestBody, { cancelToken: cancelToken })];
|
|
601
878
|
case 1:
|
|
@@ -608,37 +885,141 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
|
|
|
608
885
|
});
|
|
609
886
|
});
|
|
610
887
|
});
|
|
611
|
-
export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (
|
|
612
|
-
var
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
888
|
+
export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_a, thunkApi) {
|
|
889
|
+
var isRetry = _a.isRetry;
|
|
890
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
891
|
+
var _b, connectExpress, settings, responseData, _c, postURL, scope, redirectUrl, mode, showBoard, platforms, payment_provider, leadId, authId, bi, leadData, accountData, data, body, data, urlQueryStart;
|
|
892
|
+
var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
893
|
+
return __generator(this, function (_v) {
|
|
894
|
+
switch (_v.label) {
|
|
895
|
+
case 0:
|
|
896
|
+
_b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
|
|
897
|
+
responseData = connectExpress.data.responseData;
|
|
898
|
+
_c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode, showBoard = _c.showBoard;
|
|
899
|
+
platforms = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
|
|
900
|
+
payment_provider = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _f === void 0 ? void 0 : _f.payment_provider) !== null && _g !== void 0 ? _g : settings.data.appConfig.paymentProvider;
|
|
901
|
+
leadId = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _h === void 0 ? void 0 : _h.id;
|
|
902
|
+
authId = (_k = (_j = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _j === void 0 ? void 0 : _j.auth) === null || _k === void 0 ? void 0 : _k.id;
|
|
903
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
904
|
+
accountData = undefined;
|
|
905
|
+
if (!isRetry) return [3, 2];
|
|
906
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
907
|
+
case 1:
|
|
908
|
+
data = (_v.sent()).data;
|
|
909
|
+
if (data === null || data === void 0 ? void 0 : data.board_id) {
|
|
910
|
+
leadData = data;
|
|
911
|
+
accountData = data;
|
|
912
|
+
}
|
|
913
|
+
_v.label = 2;
|
|
914
|
+
case 2:
|
|
915
|
+
body = {
|
|
916
|
+
lead_id: leadId,
|
|
917
|
+
post_url: scope === SCOPE_AUTH ? '' : postURL || '',
|
|
918
|
+
platforms: platforms,
|
|
919
|
+
payment_provider: payment_provider
|
|
920
|
+
};
|
|
921
|
+
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 4];
|
|
922
|
+
return [4, API.accountService.expressCreateAccount(body)];
|
|
923
|
+
case 3:
|
|
924
|
+
accountData = _v.sent();
|
|
925
|
+
_v.label = 4;
|
|
926
|
+
case 4:
|
|
927
|
+
sendCustomEventToGTM({
|
|
928
|
+
event: 'Send Event',
|
|
929
|
+
event_category: 'User Registration Flow',
|
|
930
|
+
event_action: 'Registration Completed',
|
|
931
|
+
event_label: 'Product Type',
|
|
932
|
+
event_value: leadId
|
|
933
|
+
});
|
|
934
|
+
sendCustomDimension({
|
|
935
|
+
event: 'PageView',
|
|
936
|
+
lead_ID: leadId
|
|
937
|
+
});
|
|
938
|
+
(_m = (_l = settings.data.appConfig).onCreated) === null || _m === void 0 ? void 0 : _m.call(_l, accountData);
|
|
939
|
+
(_p = (_o = settings.data.appConfig).onFlowCompleted) === null || _p === void 0 ? void 0 : _p.call(_o, accountData);
|
|
940
|
+
(_r = (_q = settings.data.appConfig).onStepCompleted) === null || _r === void 0 ? void 0 : _r.call(_q, settings.data.activeScreen.name, accountData);
|
|
941
|
+
if (showBoard) {
|
|
942
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
943
|
+
return [2, { accountData: accountData }];
|
|
944
|
+
}
|
|
945
|
+
if (!(scope === SCOPE_AUTH)) return [3, 8];
|
|
946
|
+
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 6];
|
|
947
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
948
|
+
case 5:
|
|
949
|
+
data = (_v.sent()).data;
|
|
950
|
+
leadData = data;
|
|
951
|
+
_v.label = 6;
|
|
952
|
+
case 6: return [4, thunkApi.dispatch(onCloseComplete({ merchantId: (_s = leadData === null || leadData === void 0 ? void 0 : leadData.merchant) === null || _s === void 0 ? void 0 : _s.id, brandId: (_t = leadData === null || leadData === void 0 ? void 0 : leadData.brand) === null || _t === void 0 ? void 0 : _t.id, entityId: (_u = leadData === null || leadData === void 0 ? void 0 : leadData.entity) === null || _u === void 0 ? void 0 : _u.id }))];
|
|
953
|
+
case 7:
|
|
954
|
+
_v.sent();
|
|
955
|
+
return [2, { accountData: accountData }];
|
|
956
|
+
case 8:
|
|
957
|
+
if (redirectUrl && mode === 'page') {
|
|
958
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
959
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
960
|
+
return [2, { accountData: accountData }];
|
|
961
|
+
}
|
|
962
|
+
thunkApi.dispatch(handleOpen(false));
|
|
963
|
+
return [2];
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
});
|
|
967
|
+
});
|
|
968
|
+
export var retrieveDetailsAfterCreateAccountAsync = createAsyncThunk('connectExpress/retrieveDetailsAfterCreateAccountAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
969
|
+
var connectExpress, _a, accountData, leadData, leadResData, data, board_id, board_info_id, _b, boardInfo, boardData;
|
|
970
|
+
var _c, _d;
|
|
971
|
+
return __generator(this, function (_e) {
|
|
972
|
+
switch (_e.label) {
|
|
616
973
|
case 0:
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
};
|
|
623
|
-
return [4, API.accountService.expressCreateAccount(body)];
|
|
974
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
975
|
+
_a = connectExpress.data.responseData || {}, accountData = _a.accountData, leadData = _a.leadData;
|
|
976
|
+
leadResData = undefined;
|
|
977
|
+
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 2];
|
|
978
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(leadData === null || leadData === void 0 ? void 0 : leadData.id)).unwrap()];
|
|
624
979
|
case 1:
|
|
625
|
-
data =
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
980
|
+
data = (_e.sent()).data;
|
|
981
|
+
leadResData = data;
|
|
982
|
+
_e.label = 2;
|
|
983
|
+
case 2:
|
|
984
|
+
board_id = (_c = accountData === null || accountData === void 0 ? void 0 : accountData.board_id) !== null && _c !== void 0 ? _c : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_id;
|
|
985
|
+
board_info_id = (_d = accountData === null || accountData === void 0 ? void 0 : accountData.board_info_id) !== null && _d !== void 0 ? _d : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_info_id;
|
|
630
986
|
return [4, Promise.all([
|
|
631
|
-
API.boardService.retrieveBoardInfo({ id:
|
|
632
|
-
API.boardService.retrieveBoardDetails(
|
|
633
|
-
thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()
|
|
987
|
+
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
988
|
+
API.boardService.retrieveBoardDetails(board_id)
|
|
634
989
|
])];
|
|
635
|
-
case 2:
|
|
636
|
-
_c = _k.sent(), boardInfo = _c[0], boardData = _c[1];
|
|
637
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
638
|
-
return [2, { boardInfo: boardInfo, boardData: boardData, account: data }];
|
|
639
990
|
case 3:
|
|
640
|
-
|
|
641
|
-
return
|
|
991
|
+
_b = _e.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
992
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
993
|
+
return [2, { boardInfo: boardInfo, boardData: boardData }];
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
}); });
|
|
997
|
+
export var createEntity = createAsyncThunk('connectExpress/createEntity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
998
|
+
var settings, brandInfo, legalName, licenseNumber, licenseType, body, data;
|
|
999
|
+
var _a;
|
|
1000
|
+
return __generator(this, function (_b) {
|
|
1001
|
+
switch (_b.label) {
|
|
1002
|
+
case 0:
|
|
1003
|
+
settings = thunkApi.getState().settings;
|
|
1004
|
+
brandInfo = params.brandInfo, legalName = params.legalName, licenseNumber = params.licenseNumber, licenseType = params.licenseType;
|
|
1005
|
+
body = {
|
|
1006
|
+
business_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.business_id) || '',
|
|
1007
|
+
entity: {
|
|
1008
|
+
legal_name: {
|
|
1009
|
+
en: legalName || '',
|
|
1010
|
+
ar: legalName || ''
|
|
1011
|
+
},
|
|
1012
|
+
license: {
|
|
1013
|
+
number: licenseNumber || '',
|
|
1014
|
+
type: licenseType || ''
|
|
1015
|
+
},
|
|
1016
|
+
country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
return [4, API.entityService.createEntity(body)];
|
|
1020
|
+
case 1:
|
|
1021
|
+
data = _b.sent();
|
|
1022
|
+
return [2, { data: data, formData: params }];
|
|
642
1023
|
}
|
|
643
1024
|
});
|
|
644
1025
|
}); });
|
|
@@ -685,14 +1066,14 @@ export var updateLeadIndividualAsync = createAsyncThunk('connectExpress/updateLe
|
|
|
685
1066
|
export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDataAsync ', function (_a, thunkApi) {
|
|
686
1067
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
687
1068
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
688
|
-
var _b, settings, connectExpress, selectedLicense, brandName, licenseNumber, termAndConditionChecked,
|
|
1069
|
+
var _b, settings, connectExpress, selectedLicense, brandName, licenseNumber, termAndConditionChecked, isKWCountry, isFL, _c, responseData, isLeadIdPassed, id, brandNameBody, payload, data;
|
|
689
1070
|
var _d, _e;
|
|
690
1071
|
return __generator(this, function (_f) {
|
|
691
1072
|
switch (_f.label) {
|
|
692
1073
|
case 0:
|
|
693
1074
|
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
694
1075
|
selectedLicense = formData.selectedLicense, brandName = formData.brandName, licenseNumber = formData.licenseNumber, termAndConditionChecked = formData.termAndConditionChecked;
|
|
695
|
-
|
|
1076
|
+
isKWCountry = isKW(settings.data.businessCountry.iso2);
|
|
696
1077
|
isFL = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.FL;
|
|
697
1078
|
_c = connectExpress.data, responseData = _c.responseData, isLeadIdPassed = _c.isLeadIdPassed;
|
|
698
1079
|
id = ((responseData === null || responseData === void 0 ? void 0 : responseData.leadData) || {}).id;
|
|
@@ -705,13 +1086,13 @@ export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDat
|
|
|
705
1086
|
payload = {
|
|
706
1087
|
id: id || '',
|
|
707
1088
|
brand: brandNameBody,
|
|
708
|
-
license_number:
|
|
1089
|
+
license_number: isKWCountry && isFL ? '' : licenseNumber,
|
|
709
1090
|
license_type: (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) ? (isFL ? LicenseType.FL : LicenseType.CR) : undefined,
|
|
710
1091
|
business_type: selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type,
|
|
711
1092
|
is_acknowledged: true,
|
|
712
1093
|
terms_conditions_accepted: !isLeadIdPassed ? termAndConditionChecked : undefined,
|
|
713
1094
|
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_BRAND_BUSINESS,
|
|
714
|
-
encryption_contract: [
|
|
1095
|
+
encryption_contract: []
|
|
715
1096
|
};
|
|
716
1097
|
return [4, API.leadService.updateLeadExpress(payload)];
|
|
717
1098
|
case 1:
|
|
@@ -723,14 +1104,70 @@ export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDat
|
|
|
723
1104
|
});
|
|
724
1105
|
});
|
|
725
1106
|
});
|
|
1107
|
+
export var confirmInfo = createAsyncThunk('connectExpress/confirmInfo', function (_a, thunkApi) {
|
|
1108
|
+
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo, merchantInfo = _a.merchantInfo;
|
|
1109
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
1110
|
+
var _b, connectExpress, settings, responseData, _c, postURL, redirectUrl, bi, authId, body, data, urlQueryStart;
|
|
1111
|
+
var _d, _e, _f, _g;
|
|
1112
|
+
return __generator(this, function (_h) {
|
|
1113
|
+
switch (_h.label) {
|
|
1114
|
+
case 0:
|
|
1115
|
+
_b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
|
|
1116
|
+
responseData = connectExpress.data.responseData;
|
|
1117
|
+
_c = settings.data.appConfig, postURL = _c.postURL, redirectUrl = _c.redirectUrl;
|
|
1118
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
1119
|
+
authId = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _d === void 0 ? void 0 : _d.auth) === null || _e === void 0 ? void 0 : _e.id;
|
|
1120
|
+
body = {
|
|
1121
|
+
post_url: postURL || '',
|
|
1122
|
+
authentication_id: authId,
|
|
1123
|
+
bi: bi,
|
|
1124
|
+
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
1125
|
+
merchant_id: (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.id) || '',
|
|
1126
|
+
entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
1127
|
+
data: settings.data.appConfig.data || []
|
|
1128
|
+
};
|
|
1129
|
+
return [4, API.operatorService.confirm(body)];
|
|
1130
|
+
case 1:
|
|
1131
|
+
data = _h.sent();
|
|
1132
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, data);
|
|
1133
|
+
if (authId) {
|
|
1134
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
1135
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
1136
|
+
thunkApi.dispatch(handleOpen(false));
|
|
1137
|
+
return [2];
|
|
1138
|
+
}
|
|
1139
|
+
if (redirectUrl) {
|
|
1140
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
1141
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return [2];
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
});
|
|
1148
|
+
});
|
|
1149
|
+
export var onCloseCompleteAsync = createAsyncThunk('connectExpress/onCloseCompleteAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
+
var connectExpress, _a, merchant, brand, entity;
|
|
1151
|
+
var _b;
|
|
1152
|
+
return __generator(this, function (_c) {
|
|
1153
|
+
switch (_c.label) {
|
|
1154
|
+
case 0:
|
|
1155
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
1156
|
+
_a = ((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.boardData) || {}, merchant = _a.merchant, brand = _a.brand, entity = _a.entity;
|
|
1157
|
+
return [4, thunkApi.dispatch(onCloseComplete({ merchantId: merchant === null || merchant === void 0 ? void 0 : merchant.id, brandId: brand === null || brand === void 0 ? void 0 : brand.id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
1158
|
+
case 1:
|
|
1159
|
+
_c.sent();
|
|
1160
|
+
return [2];
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
}); });
|
|
726
1164
|
var initialState = {
|
|
727
1165
|
error: null,
|
|
728
1166
|
loading: false,
|
|
729
1167
|
customLoading: false,
|
|
730
1168
|
data: {
|
|
731
|
-
showBoard: true,
|
|
732
1169
|
isLeadIdPassed: false,
|
|
733
|
-
|
|
1170
|
+
isStartFromBusinessCountry: false,
|
|
734
1171
|
flowName: FlowsTypes.CONNECT_EXPRESS,
|
|
735
1172
|
mobileData: {
|
|
736
1173
|
countryCode: defaultCountry,
|
|
@@ -759,6 +1196,13 @@ var initialState = {
|
|
|
759
1196
|
brandName: '',
|
|
760
1197
|
licenseNumber: '',
|
|
761
1198
|
termAndConditionChecked: false
|
|
1199
|
+
},
|
|
1200
|
+
authenticationData: {
|
|
1201
|
+
brandInfo: undefined,
|
|
1202
|
+
entityInfo: undefined
|
|
1203
|
+
},
|
|
1204
|
+
authMerchantData: {
|
|
1205
|
+
merchantInfo: undefined
|
|
762
1206
|
}
|
|
763
1207
|
}
|
|
764
1208
|
};
|
|
@@ -769,8 +1213,8 @@ export var connectSlice = createSlice({
|
|
|
769
1213
|
setLeadId: function (state, action) {
|
|
770
1214
|
state.data.leadId = action.payload;
|
|
771
1215
|
},
|
|
772
|
-
|
|
773
|
-
state.data.
|
|
1216
|
+
storeIsStartFromBusinessCountry: function (state, action) {
|
|
1217
|
+
state.data.isStartFromBusinessCountry = action.payload;
|
|
774
1218
|
},
|
|
775
1219
|
setIsLeadIdPassed: function (state, action) {
|
|
776
1220
|
state.data.isLeadIdPassed = action.payload;
|
|
@@ -790,17 +1234,22 @@ export var connectSlice = createSlice({
|
|
|
790
1234
|
resetNIDScreen: function (state) {
|
|
791
1235
|
state.data.nidData = __assign(__assign({}, state.data.nidData), initialState.data.nidData);
|
|
792
1236
|
},
|
|
1237
|
+
setDefaultCountryCode: function (state, action) {
|
|
1238
|
+
state.data.mobileData.countryCode = action.payload;
|
|
1239
|
+
state.data.individualData.countryCode = action.payload;
|
|
1240
|
+
},
|
|
793
1241
|
resetCivilScreen: function (state) {
|
|
794
1242
|
state.data.civilIdData = __assign(__assign({}, state.data.civilIdData), initialState.data.civilIdData);
|
|
795
1243
|
},
|
|
1244
|
+
resetAuthenticationScreen: function (state) {
|
|
1245
|
+
state.data.authenticationData = __assign(__assign({}, state.data.authenticationData), initialState.data.authenticationData);
|
|
1246
|
+
},
|
|
796
1247
|
resetOTPValue: function (state) {
|
|
797
1248
|
state.data.otpData.otp = '';
|
|
798
1249
|
},
|
|
799
|
-
setPostUrl: function (state, action) {
|
|
800
|
-
state.data.postURL = action.payload;
|
|
801
|
-
},
|
|
802
1250
|
resetStore: function (state) {
|
|
803
|
-
|
|
1251
|
+
var _a;
|
|
1252
|
+
state.data = __assign(__assign({}, state.data), { responseData: { leadData: (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadData } });
|
|
804
1253
|
},
|
|
805
1254
|
resetIndividualScreen: function (state) {
|
|
806
1255
|
state.data.individualData = initialState.data.individualData;
|
|
@@ -942,7 +1391,7 @@ export var connectSlice = createSlice({
|
|
|
942
1391
|
var _a;
|
|
943
1392
|
state.loading = false;
|
|
944
1393
|
state.data.civilIdData = action.payload.formData;
|
|
945
|
-
state.data.otpData.authFor = AuthForType.
|
|
1394
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
946
1395
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
947
1396
|
})
|
|
948
1397
|
.addCase(createCivilIDAuthIdentityAsync.rejected, function (state, action) {
|
|
@@ -957,7 +1406,7 @@ export var connectSlice = createSlice({
|
|
|
957
1406
|
var _a;
|
|
958
1407
|
state.loading = false;
|
|
959
1408
|
state.data.nidData = action.payload.formData;
|
|
960
|
-
state.data.otpData.authFor = AuthForType.
|
|
1409
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
961
1410
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
962
1411
|
})
|
|
963
1412
|
.addCase(createNIDAuthIdentityAsync.rejected, function (state, action) {
|
|
@@ -970,7 +1419,7 @@ export var connectSlice = createSlice({
|
|
|
970
1419
|
.addCase(resendNIDAuthIdentityOTP.fulfilled, function (state, action) {
|
|
971
1420
|
var _a;
|
|
972
1421
|
state.data.nidData = action.payload.formData;
|
|
973
|
-
state.data.otpData.authFor = AuthForType.
|
|
1422
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
974
1423
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
975
1424
|
})
|
|
976
1425
|
.addCase(resendNIDAuthIdentityOTP.rejected, function (state, action) {
|
|
@@ -1002,31 +1451,52 @@ export var connectSlice = createSlice({
|
|
|
1002
1451
|
state.loading = false;
|
|
1003
1452
|
state.error = action.error.message;
|
|
1004
1453
|
})
|
|
1005
|
-
.addCase(
|
|
1454
|
+
.addCase(verifyPACIAsync.pending, function (state) {
|
|
1006
1455
|
state.loading = true;
|
|
1007
1456
|
state.error = null;
|
|
1008
1457
|
})
|
|
1009
|
-
.addCase(
|
|
1458
|
+
.addCase(verifyPACIAsync.fulfilled, function (state, action) {
|
|
1010
1459
|
var _a;
|
|
1011
1460
|
state.loading = false;
|
|
1012
1461
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
|
|
1462
|
+
})
|
|
1463
|
+
.addCase(verifyPACIAsync.rejected, function (state, action) {
|
|
1464
|
+
state.loading = false;
|
|
1465
|
+
var error = action.error.message;
|
|
1466
|
+
if (error !== 'Aborted') {
|
|
1467
|
+
state.error = error;
|
|
1468
|
+
}
|
|
1469
|
+
})
|
|
1470
|
+
.addCase(verifyNIDOtpLeadIdentityAsync.pending, function (state) {
|
|
1471
|
+
state.loading = true;
|
|
1472
|
+
state.error = null;
|
|
1473
|
+
})
|
|
1474
|
+
.addCase(verifyNIDOtpLeadIdentityAsync.fulfilled, function (state, action) {
|
|
1475
|
+
var _a, _b, _c;
|
|
1476
|
+
state.loading = false;
|
|
1477
|
+
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1478
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1013
1479
|
})
|
|
1014
1480
|
.addCase(verifyNIDOtpLeadIdentityAsync.rejected, function (state, action) {
|
|
1015
1481
|
state.loading = false;
|
|
1016
1482
|
state.error = action.error.message;
|
|
1017
1483
|
})
|
|
1018
|
-
.addCase(
|
|
1484
|
+
.addCase(verifyPaciLeadIdentityAsync.pending, function (state) {
|
|
1019
1485
|
state.loading = true;
|
|
1020
1486
|
state.error = null;
|
|
1021
1487
|
})
|
|
1022
|
-
.addCase(
|
|
1023
|
-
var _a;
|
|
1488
|
+
.addCase(verifyPaciLeadIdentityAsync.fulfilled, function (state, action) {
|
|
1489
|
+
var _a, _b, _c;
|
|
1024
1490
|
state.loading = false;
|
|
1025
|
-
|
|
1491
|
+
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1492
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1026
1493
|
})
|
|
1027
|
-
.addCase(
|
|
1494
|
+
.addCase(verifyPaciLeadIdentityAsync.rejected, function (state, action) {
|
|
1028
1495
|
state.loading = false;
|
|
1029
|
-
|
|
1496
|
+
var error = action.error.message;
|
|
1497
|
+
if (error !== 'Aborted') {
|
|
1498
|
+
state.error = error;
|
|
1499
|
+
}
|
|
1030
1500
|
})
|
|
1031
1501
|
.addCase(retrieveEntityListAsync.pending, function (state) {
|
|
1032
1502
|
state.loading = true;
|
|
@@ -1075,6 +1545,23 @@ export var connectSlice = createSlice({
|
|
|
1075
1545
|
.addCase(retrieveEntityListAsync.rejected, function (state, action) {
|
|
1076
1546
|
state.loading = false;
|
|
1077
1547
|
state.error = action.error.message;
|
|
1548
|
+
})
|
|
1549
|
+
.addCase(retrieveAuthenticationListAsync.fulfilled, function (state, action) {
|
|
1550
|
+
state.error = null;
|
|
1551
|
+
state.loading = false;
|
|
1552
|
+
var _a = action.payload, brandList = _a.brandList, entityList = _a.entityList;
|
|
1553
|
+
var eList = __spreadArray(__spreadArray([], entityList, true), [ADD_NEW_ENTITY], false);
|
|
1554
|
+
if (brandList === null || brandList === void 0 ? void 0 : brandList.length)
|
|
1555
|
+
state.data.authenticationData.brandInfo = brandList[0];
|
|
1556
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authenticationData: { brandList: brandList, entityList: eList } });
|
|
1557
|
+
})
|
|
1558
|
+
.addCase(retrieveAuthenticationListAsync.pending, function (state) {
|
|
1559
|
+
state.loading = true;
|
|
1560
|
+
state.error = null;
|
|
1561
|
+
})
|
|
1562
|
+
.addCase(retrieveAuthenticationListAsync.rejected, function (state, action) {
|
|
1563
|
+
state.loading = false;
|
|
1564
|
+
state.error = action.error.message;
|
|
1078
1565
|
})
|
|
1079
1566
|
.addCase(checkEmailAvailabilityAsync.fulfilled, function (state, action) {
|
|
1080
1567
|
var _a;
|
|
@@ -1105,10 +1592,12 @@ export var connectSlice = createSlice({
|
|
|
1105
1592
|
state.error = action.error.message;
|
|
1106
1593
|
})
|
|
1107
1594
|
.addCase(updateLeadIndividualAsync.fulfilled, function (state, action) {
|
|
1595
|
+
var _a, _b;
|
|
1108
1596
|
state.loading = false;
|
|
1109
1597
|
state.error = null;
|
|
1598
|
+
var licenseList = [OTHER_CR_LICENSE, OTHER_FL_LICENSE];
|
|
1110
1599
|
state.data.individualData = action.payload.formData;
|
|
1111
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { individualData: action.payload.response });
|
|
1600
|
+
state.data.responseData = __assign(__assign(__assign({}, state.data.responseData), { individualData: action.payload.response }), (!((_b = (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.licenseList) === null || _b === void 0 ? void 0 : _b.length) && { licenseList: licenseList }));
|
|
1112
1601
|
})
|
|
1113
1602
|
.addCase(updateLeadIndividualAsync.pending, function (state) {
|
|
1114
1603
|
state.loading = true;
|
|
@@ -1143,9 +1632,101 @@ export var connectSlice = createSlice({
|
|
|
1143
1632
|
.addCase(createAccountAsync.rejected, function (state, action) {
|
|
1144
1633
|
state.loading = false;
|
|
1145
1634
|
state.error = action.error.message;
|
|
1635
|
+
})
|
|
1636
|
+
.addCase(retrieveDetailsAfterCreateAccountAsync.pending, function (state) {
|
|
1637
|
+
state.loading = true;
|
|
1638
|
+
state.error = null;
|
|
1639
|
+
})
|
|
1640
|
+
.addCase(retrieveDetailsAfterCreateAccountAsync.fulfilled, function (state, action) {
|
|
1641
|
+
state.loading = false;
|
|
1642
|
+
state.error = null;
|
|
1643
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), action.payload);
|
|
1644
|
+
})
|
|
1645
|
+
.addCase(retrieveDetailsAfterCreateAccountAsync.rejected, function (state, action) {
|
|
1646
|
+
state.loading = false;
|
|
1647
|
+
state.error = action.error.message;
|
|
1648
|
+
})
|
|
1649
|
+
.addCase(getMerchantListAsync.pending, function (state) {
|
|
1650
|
+
state.loading = true;
|
|
1651
|
+
state.error = null;
|
|
1652
|
+
})
|
|
1653
|
+
.addCase(getMerchantListAsync.fulfilled, function (state, action) {
|
|
1654
|
+
state.loading = false;
|
|
1655
|
+
state.error = null;
|
|
1656
|
+
var data = state.data.responseData;
|
|
1657
|
+
var _a = action.payload, list = _a.list, brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
|
|
1658
|
+
state.data.authenticationData.brandInfo = brandInfo;
|
|
1659
|
+
state.data.authenticationData.entityInfo = entityInfo;
|
|
1660
|
+
if (list === null || list === void 0 ? void 0 : list.length) {
|
|
1661
|
+
state.data.authMerchantData.merchantInfo = list[0];
|
|
1662
|
+
}
|
|
1663
|
+
state.data.responseData = __assign(__assign({}, data), { authMerchantData: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.authMerchantData), { merchantList: list }) });
|
|
1664
|
+
})
|
|
1665
|
+
.addCase(getMerchantListAsync.rejected, function (state, action) {
|
|
1666
|
+
state.loading = false;
|
|
1667
|
+
state.error = action.error.message;
|
|
1668
|
+
})
|
|
1669
|
+
.addCase(confirmInfo.pending, function (state) {
|
|
1670
|
+
state.loading = true;
|
|
1671
|
+
state.error = null;
|
|
1672
|
+
})
|
|
1673
|
+
.addCase(confirmInfo.fulfilled, function (state) {
|
|
1674
|
+
state.loading = false;
|
|
1675
|
+
state.error = null;
|
|
1676
|
+
state.data.responseData = __assign({}, state.data.responseData);
|
|
1677
|
+
})
|
|
1678
|
+
.addCase(confirmInfo.rejected, function (state, action) {
|
|
1679
|
+
state.loading = false;
|
|
1680
|
+
state.error = action.error.message;
|
|
1681
|
+
})
|
|
1682
|
+
.addCase(onCloseCompleteAsync.pending, function (state) {
|
|
1683
|
+
state.loading = true;
|
|
1684
|
+
state.error = null;
|
|
1685
|
+
})
|
|
1686
|
+
.addCase(onCloseCompleteAsync.fulfilled, function (state) {
|
|
1687
|
+
state.loading = false;
|
|
1688
|
+
state.error = null;
|
|
1689
|
+
state.data.responseData = __assign({}, state.data.responseData);
|
|
1690
|
+
})
|
|
1691
|
+
.addCase(onCloseCompleteAsync.rejected, function (state, action) {
|
|
1692
|
+
state.loading = false;
|
|
1693
|
+
state.error = action.error.message;
|
|
1694
|
+
})
|
|
1695
|
+
.addCase(updateBusinessCountryAsync.pending, function (state) {
|
|
1696
|
+
state.loading = true;
|
|
1697
|
+
state.error = null;
|
|
1698
|
+
})
|
|
1699
|
+
.addCase(updateBusinessCountryAsync.rejected, function (state, action) {
|
|
1700
|
+
state.loading = false;
|
|
1701
|
+
state.error = action.error.message;
|
|
1702
|
+
})
|
|
1703
|
+
.addCase(updateBusinessCountryAsync.fulfilled, function (state) {
|
|
1704
|
+
state.loading = false;
|
|
1705
|
+
state.error = null;
|
|
1706
|
+
})
|
|
1707
|
+
.addCase(createEntity.pending, function (state) {
|
|
1708
|
+
state.loading = true;
|
|
1709
|
+
state.error = null;
|
|
1710
|
+
})
|
|
1711
|
+
.addCase(createEntity.rejected, function (state, action) {
|
|
1712
|
+
state.loading = false;
|
|
1713
|
+
state.error = action.error.message;
|
|
1714
|
+
})
|
|
1715
|
+
.addCase(createEntity.fulfilled, function (state, action) {
|
|
1716
|
+
state.loading = false;
|
|
1717
|
+
state.error = null;
|
|
1718
|
+
var data = action.payload.data;
|
|
1719
|
+
var authenticationData = (state.data.responseData || {}).authenticationData;
|
|
1720
|
+
var entityList = (authenticationData || {}).entityList;
|
|
1721
|
+
if (data === null || data === void 0 ? void 0 : data.entity) {
|
|
1722
|
+
var entity = __assign(__assign({}, data.entity), { business_id: data === null || data === void 0 ? void 0 : data.business_id });
|
|
1723
|
+
var list = __spreadArray([entity], entityList, true);
|
|
1724
|
+
state.data.authenticationData.entityInfo = list[0];
|
|
1725
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { entityData: data, authenticationData: __assign(__assign({}, authenticationData), { entityList: list }) });
|
|
1726
|
+
}
|
|
1146
1727
|
});
|
|
1147
1728
|
}
|
|
1148
1729
|
});
|
|
1149
|
-
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, setIsLeadIdPassed = _a.setIsLeadIdPassed, resetMobileScreen = _a.resetMobileScreen, resetOTPValue = _a.resetOTPValue, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setError = _a.setError,
|
|
1730
|
+
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, setIsLeadIdPassed = _a.setIsLeadIdPassed, resetMobileScreen = _a.resetMobileScreen, resetOTPValue = _a.resetOTPValue, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setError = _a.setError, setLeadId = _a.setLeadId, resetIndividualScreen = _a.resetIndividualScreen, setDefaultCountryCode = _a.setDefaultCountryCode, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen;
|
|
1150
1731
|
export default connectSlice.reducer;
|
|
1151
1732
|
export var connectExpressSelector = function (state) { return state.connectExpress; };
|