@tap-payments/auth-jsconnect 2.6.60-test → 2.6.82-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +21 -20
- package/build/@types/form.d.ts +21 -21
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +31 -12
- package/build/api/auth.js +9 -1
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +11 -11
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +14 -9
- package/build/api/entity.js +2 -5
- package/build/api/file.d.ts +1 -1
- package/build/api/index.d.ts +6 -5
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +19 -12
- package/build/api/lead.js +3 -6
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +3 -21
- package/build/app/settings.js +4 -4
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +5 -1
- package/build/assets/locales/en.json +5 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +7 -2
- package/build/components/AnimationFlow/AnimationFlow.js +16 -5
- package/build/components/AnimationFlow/BottomSheet.d.ts +3 -1
- package/build/components/AnimationFlow/BottomSheet.js +4 -4
- package/build/components/AnimationFlow/Dialog.d.ts +7 -1
- package/build/components/AnimationFlow/Dialog.js +5 -9
- package/build/components/AnimationFlow/Error.d.ts +2 -1
- package/build/components/AnimationFlow/Loader.d.ts +7 -1
- 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 +2 -1
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/build/components/FileInput/DragAndDrop.d.ts +2 -1
- package/build/components/FileInput/UploadInput.d.ts +2 -1
- package/build/components/Footer/Footer.d.ts +1 -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 +2 -1
- 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/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/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/Warning/Warning.d.ts +1 -1
- package/build/constants/app.d.ts +1 -2
- package/build/constants/app.js +14 -3
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +2 -1
- package/build/features/app/auth/authStore.d.ts +16 -131
- package/build/features/app/auth/authStore.js +175 -110
- package/build/features/app/bank/bankStore.d.ts +11 -92
- package/build/features/app/bank/bankStore.js +1 -1
- package/build/features/app/board/boardStore.d.ts +5 -41
- package/build/features/app/board/boardStore.js +9 -3
- package/build/features/app/brand/brandStore.d.ts +16 -142
- package/build/features/app/brand/brandStore.js +1 -1
- package/build/features/app/business/businessStore.d.ts +18 -162
- package/build/features/app/business/businessStore.js +1 -1
- package/build/features/app/connect/connectStore.d.ts +16 -151
- package/build/features/app/connect/connectStore.js +1 -1
- package/build/features/app/connectExpress/connectExpressStore.d.ts +27 -261
- package/build/features/app/connectExpress/connectExpressStore.js +19 -6
- package/build/features/app/entity/entityStore.d.ts +11 -92
- package/build/features/app/entity/entityStore.js +1 -1
- package/build/features/app/individual/individualStore.d.ts +23 -185
- package/build/features/app/individual/individualStore.js +1 -1
- package/build/features/app/password/passwordStore.d.ts +13 -112
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +7 -61
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +10 -82
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/auth/Auth.d.ts +7 -1
- package/build/features/auth/Auth.js +65 -14
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +74 -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/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/auth/screens/Mobile/Mobile.js +6 -0
- package/build/features/auth/screens/NID/DOB.d.ts +2 -1
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.js +2 -3
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
- package/build/features/auth/screens/PreparingData/PreparingData.js +41 -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/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +3 -1
- package/build/features/bank/Bank.js +5 -4
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/board/Board.d.ts +3 -1
- package/build/features/board/Board.js +7 -5
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +3 -1
- package/build/features/brand/Brand.js +5 -4
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +58 -15
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +37 -13
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +31 -10
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +8 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -2
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/Business.d.ts +2 -1
- package/build/features/business/screens/Activities/Activities.d.ts +2 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +25 -9
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -5
- 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 +13 -5
- package/build/features/business/screens/BusinessType/Article.d.ts +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +2 -1
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +2 -1
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +28 -6
- 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/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +70 -19
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +2 -1
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +30 -9
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -1
- 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/IDBOD.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +2 -1
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +4 -2
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -1
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.d.ts +2 -1
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
- 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 +2 -1
- package/build/features/connectExpress/ConnectExpress.js +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +28 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +8 -3
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +4 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +2 -1
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +8 -3
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +2 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +3 -1
- package/build/features/entity/Entity.js +5 -4
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +25 -9
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- 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/EntityCapital.d.ts +2 -1
- package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
- package/build/features/entity/screens/EntityName/EntityName.d.ts +2 -1
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +58 -15
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +13 -5
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +13 -5
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/Individual.d.ts +3 -1
- package/build/features/individual/Individual.js +5 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +27 -5
- 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/SignatureFile.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- 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/Email.js +4 -3
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +25 -9
- package/build/features/individual/screens/IndividualList/UserList.d.ts +2 -1
- 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/Email.js +4 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +28 -6
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +13 -5
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/Password.d.ts +3 -1
- package/build/features/password/Password.js +5 -5
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +2 -1
- 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/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +2 -1
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- 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/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +2 -1
- package/build/features/shared/Address/Address.d.ts +2 -1
- package/build/features/shared/Address/CountryList.d.ts +46 -14
- package/build/features/shared/Address/InputSelect.d.ts +46 -14
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +2 -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 +2 -1
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +2 -1
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/AbsherButton.d.ts +2 -1
- package/build/features/shared/Button/Button.d.ts +2 -1
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/MobileButton.d.ts +2 -1
- package/build/features/shared/Button/SuccessButton.d.ts +2 -1
- package/build/features/shared/Calender/Calender.d.ts +2 -1
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +3 -2
- package/build/features/shared/Chip/Chip.d.ts +2 -1
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -1
- 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 +2 -1
- package/build/features/shared/DataLoading/DataLoading.js +2 -2
- package/build/features/shared/Dialog/CloseDialog.d.ts +2 -1
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +2 -1
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -1
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
- package/build/features/shared/Footer/Footer.d.ts +2 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +3 -2
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +14 -6
- package/build/features/shared/InputSelect/InputSelect.d.ts +2 -1
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
- 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 +2 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +2 -1
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +2 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +9 -4
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +8 -3
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -3
- package/build/features/signIn/SignIn.d.ts +2 -1
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +3 -1
- package/build/features/tax/Tax.js +5 -4
- 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/TaxDetails/ConfirmPolicy.d.ts +3 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +2 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +2 -1
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/hooks/useAppConfig.js +2 -2
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
- package/build/hooks/useFormReadOnly.d.ts +2 -2
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/hooks/useVerifyToken.d.ts +2 -1
- package/build/hooks/useVerifyToken.js +2 -2
- package/build/theme/palette.js +2 -1
- package/build/utils/array.js +1 -1
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +7 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -3,72 +3,18 @@ import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormVa
|
|
|
3
3
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
formData: MobileFormValues;
|
|
6
|
-
}, MobileFormValues, {
|
|
7
|
-
|
|
8
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
9
|
-
extra?: unknown;
|
|
10
|
-
rejectValue?: unknown;
|
|
11
|
-
serializedErrorType?: unknown;
|
|
12
|
-
pendingMeta?: unknown;
|
|
13
|
-
fulfilledMeta?: unknown;
|
|
14
|
-
rejectedMeta?: unknown;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
17
|
-
state?: unknown;
|
|
18
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
19
|
-
extra?: unknown;
|
|
20
|
-
rejectValue?: unknown;
|
|
21
|
-
serializedErrorType?: unknown;
|
|
22
|
-
pendingMeta?: unknown;
|
|
23
|
-
fulfilledMeta?: unknown;
|
|
24
|
-
rejectedMeta?: unknown;
|
|
25
|
-
}>;
|
|
6
|
+
}, MobileFormValues, {}>;
|
|
7
|
+
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
26
8
|
export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
27
9
|
data: any;
|
|
28
10
|
formData: EmailFormValues;
|
|
29
|
-
}, EmailFormValues, {
|
|
30
|
-
|
|
31
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
32
|
-
extra?: unknown;
|
|
33
|
-
rejectValue?: unknown;
|
|
34
|
-
serializedErrorType?: unknown;
|
|
35
|
-
pendingMeta?: unknown;
|
|
36
|
-
fulfilledMeta?: unknown;
|
|
37
|
-
rejectedMeta?: unknown;
|
|
38
|
-
}>;
|
|
39
|
-
export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
40
|
-
state?: unknown;
|
|
41
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
42
|
-
extra?: unknown;
|
|
43
|
-
rejectValue?: unknown;
|
|
44
|
-
serializedErrorType?: unknown;
|
|
45
|
-
pendingMeta?: unknown;
|
|
46
|
-
fulfilledMeta?: unknown;
|
|
47
|
-
rejectedMeta?: unknown;
|
|
48
|
-
}>;
|
|
11
|
+
}, EmailFormValues, {}>;
|
|
12
|
+
export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
49
13
|
export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
50
14
|
data: any;
|
|
51
15
|
formData: OTPFormValues;
|
|
52
|
-
}, OTPFormValues, {
|
|
53
|
-
|
|
54
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
55
|
-
extra?: unknown;
|
|
56
|
-
rejectValue?: unknown;
|
|
57
|
-
serializedErrorType?: unknown;
|
|
58
|
-
pendingMeta?: unknown;
|
|
59
|
-
fulfilledMeta?: unknown;
|
|
60
|
-
rejectedMeta?: unknown;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
|
|
63
|
-
state?: unknown;
|
|
64
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
65
|
-
extra?: unknown;
|
|
66
|
-
rejectValue?: unknown;
|
|
67
|
-
serializedErrorType?: unknown;
|
|
68
|
-
pendingMeta?: unknown;
|
|
69
|
-
fulfilledMeta?: unknown;
|
|
70
|
-
rejectedMeta?: unknown;
|
|
71
|
-
}>;
|
|
16
|
+
}, OTPFormValues, {}>;
|
|
17
|
+
export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {}>;
|
|
72
18
|
export interface SignInData {
|
|
73
19
|
auth: Partial<MobileFormValues & EmailFormValues> & ResponseData;
|
|
74
20
|
otpData: OTPFormValues & ResponseData;
|
|
@@ -81,7 +27,7 @@ export declare const signInSlice: import("@reduxjs/toolkit").Slice<SignInState,
|
|
|
81
27
|
stopLoader: (state: SignInState) => void;
|
|
82
28
|
resetOTPScreen: (state: SignInState) => void;
|
|
83
29
|
}, "signIsn/store">;
|
|
84
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
30
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
85
31
|
declare const _default: import("redux").Reducer<SignInState, import("redux").AnyAction>;
|
|
86
32
|
export default _default;
|
|
87
33
|
export declare const signInSelector: (state: RootState) => SignInState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -9,102 +9,30 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
9
9
|
individualData: any;
|
|
10
10
|
boardResponse: any;
|
|
11
11
|
token: string;
|
|
12
|
-
}, VerifyLeadTokenProps, {
|
|
13
|
-
state?: unknown;
|
|
14
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
15
|
-
extra?: unknown;
|
|
16
|
-
rejectValue?: unknown;
|
|
17
|
-
serializedErrorType?: unknown;
|
|
18
|
-
pendingMeta?: unknown;
|
|
19
|
-
fulfilledMeta?: unknown;
|
|
20
|
-
rejectedMeta?: unknown;
|
|
21
|
-
}>;
|
|
12
|
+
}, VerifyLeadTokenProps, {}>;
|
|
22
13
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
23
14
|
data: any;
|
|
24
|
-
}, void, {
|
|
25
|
-
state?: unknown;
|
|
26
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
27
|
-
extra?: unknown;
|
|
28
|
-
rejectValue?: unknown;
|
|
29
|
-
serializedErrorType?: unknown;
|
|
30
|
-
pendingMeta?: unknown;
|
|
31
|
-
fulfilledMeta?: unknown;
|
|
32
|
-
rejectedMeta?: unknown;
|
|
33
|
-
}>;
|
|
15
|
+
}, void, {}>;
|
|
34
16
|
export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
|
|
35
17
|
flows: any;
|
|
36
|
-
}, void, {
|
|
37
|
-
state?: unknown;
|
|
38
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
39
|
-
extra?: unknown;
|
|
40
|
-
rejectValue?: unknown;
|
|
41
|
-
serializedErrorType?: unknown;
|
|
42
|
-
pendingMeta?: unknown;
|
|
43
|
-
fulfilledMeta?: unknown;
|
|
44
|
-
rejectedMeta?: unknown;
|
|
45
|
-
}>;
|
|
18
|
+
}, void, {}>;
|
|
46
19
|
export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
47
20
|
data: any;
|
|
48
|
-
}, string, {
|
|
49
|
-
state?: unknown;
|
|
50
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
51
|
-
extra?: unknown;
|
|
52
|
-
rejectValue?: unknown;
|
|
53
|
-
serializedErrorType?: unknown;
|
|
54
|
-
pendingMeta?: unknown;
|
|
55
|
-
fulfilledMeta?: unknown;
|
|
56
|
-
rejectedMeta?: unknown;
|
|
57
|
-
}>;
|
|
21
|
+
}, string, {}>;
|
|
58
22
|
export declare const verifyTaxLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
59
23
|
data: any;
|
|
60
24
|
formData: OTPFormValues;
|
|
61
|
-
}, OTPFormValues, {
|
|
62
|
-
state?: unknown;
|
|
63
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
64
|
-
extra?: unknown;
|
|
65
|
-
rejectValue?: unknown;
|
|
66
|
-
serializedErrorType?: unknown;
|
|
67
|
-
pendingMeta?: unknown;
|
|
68
|
-
fulfilledMeta?: unknown;
|
|
69
|
-
rejectedMeta?: unknown;
|
|
70
|
-
}>;
|
|
25
|
+
}, OTPFormValues, {}>;
|
|
71
26
|
export declare const updateTaxInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
72
27
|
data: any;
|
|
73
28
|
formData: TaxFormValues;
|
|
74
|
-
}, AsyncThunkParams<TaxFormValues>, {
|
|
75
|
-
state?: unknown;
|
|
76
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
77
|
-
extra?: unknown;
|
|
78
|
-
rejectValue?: unknown;
|
|
79
|
-
serializedErrorType?: unknown;
|
|
80
|
-
pendingMeta?: unknown;
|
|
81
|
-
fulfilledMeta?: unknown;
|
|
82
|
-
rejectedMeta?: unknown;
|
|
83
|
-
}>;
|
|
29
|
+
}, AsyncThunkParams<TaxFormValues>, {}>;
|
|
84
30
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
85
31
|
response: any;
|
|
86
32
|
formData: void;
|
|
87
|
-
} | undefined, void, {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
extra?: unknown;
|
|
91
|
-
rejectValue?: unknown;
|
|
92
|
-
serializedErrorType?: unknown;
|
|
93
|
-
pendingMeta?: unknown;
|
|
94
|
-
fulfilledMeta?: unknown;
|
|
95
|
-
rejectedMeta?: unknown;
|
|
96
|
-
}>;
|
|
97
|
-
export declare const onCloseCompleteTax: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
98
|
-
state?: unknown;
|
|
99
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
100
|
-
extra?: unknown;
|
|
101
|
-
rejectValue?: unknown;
|
|
102
|
-
serializedErrorType?: unknown;
|
|
103
|
-
pendingMeta?: unknown;
|
|
104
|
-
fulfilledMeta?: unknown;
|
|
105
|
-
rejectedMeta?: unknown;
|
|
106
|
-
}>;
|
|
107
|
-
type VerifyData = {
|
|
33
|
+
} | undefined, void, {}>;
|
|
34
|
+
export declare const onCloseCompleteTax: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
35
|
+
declare type VerifyData = {
|
|
108
36
|
token: string;
|
|
109
37
|
};
|
|
110
38
|
export interface TaxData {
|
|
@@ -123,7 +51,7 @@ export declare const taxSlice: import("@reduxjs/toolkit").Slice<TaxState, {
|
|
|
123
51
|
resetOTPScreen: (state: TaxState) => void;
|
|
124
52
|
uploadingStatus: (state: TaxState, action: ActionState<boolean>) => void;
|
|
125
53
|
}, "tax/store">;
|
|
126
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
54
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, uploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
127
55
|
declare const _default: import("redux").Reducer<TaxState, import("redux").AnyAction>;
|
|
128
56
|
export default _default;
|
|
129
57
|
export declare const taxSelector: (state: RootState) => TaxState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { LibConfig } from '../../@types';
|
|
2
3
|
export interface AuthLibProps extends Pick<LibConfig, 'open' | 'mode' | 'scope' | 'merchantDomain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'appInfo' | 'businessCountryCode' | 'language' | 'onFlowCompleted' | 'onError' | 'onStepCompleted' | 'onReady' | 'onClose' | 'onStepStarted'> {
|
|
3
4
|
leadId?: string;
|
|
4
5
|
hideOverlay?: boolean;
|
|
6
|
+
configToken?: string;
|
|
7
|
+
hideMerchantLogo?: boolean;
|
|
8
|
+
hideLoaderOverlay?: boolean;
|
|
9
|
+
openAnimationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
10
|
+
closeAnimationDirection?: 'left' | 'right' | 'up' | 'down';
|
|
5
11
|
}
|
|
6
|
-
export declare function AuthElement(props: AuthLibProps):
|
|
12
|
+
export declare function AuthElement(props: AuthLibProps): JSX.Element;
|
|
7
13
|
export declare function renderAuthLib(config: AuthLibProps, elementId: string): {
|
|
8
14
|
unmount: () => void;
|
|
9
15
|
};
|
|
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (_) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
12
48
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
49
|
var t = {};
|
|
14
50
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -24,43 +60,58 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
60
|
import React, { memo } from 'react';
|
|
25
61
|
import { createRoot } from 'react-dom/client';
|
|
26
62
|
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
|
|
27
|
-
import { handleCurrentActiveScreen, settingsSelector } from '../../app/settings';
|
|
63
|
+
import { handleCurrentActiveScreen, handleSetCountryByIso2, settingsSelector } from '../../app/settings';
|
|
28
64
|
import AnimationFlow from '../../components/AnimationFlow';
|
|
29
65
|
import { store } from '../../app/store';
|
|
30
66
|
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
31
67
|
import Collapse from '../../components/Collapse';
|
|
32
|
-
import { findOrCreateElementAndInject, sendPageView, isSA } from '../../utils';
|
|
68
|
+
import { findOrCreateElementAndInject, sendPageView, isSA, isTapDomain } from '../../utils';
|
|
33
69
|
import { AUTH_SCREENS_NAVIGATION } from '../../constants';
|
|
34
70
|
import Background from '../shared/Background';
|
|
35
71
|
import { FeatureContainer } from '../shared/Containers';
|
|
36
72
|
import { authSelector, setMobileCountryCode, setLeadId, retrieveLeadIdentityByIdAsync } from '../app/auth/authStore';
|
|
37
73
|
import { authFeatureScreens } from '../featuresScreens';
|
|
38
74
|
var Auth = memo(function (_a) {
|
|
39
|
-
var
|
|
75
|
+
var postURL = _a.postURL, hideOverlay = _a.hideOverlay, configToken = _a.configToken, hideMerchantLogo = _a.hideMerchantLogo, hideLoaderOverlay = _a.hideLoaderOverlay, openAnimationDirection = _a.openAnimationDirection, closeAnimationDirection = _a.closeAnimationDirection, props = __rest(_a, ["postURL", "hideOverlay", "configToken", "hideMerchantLogo", "hideLoaderOverlay", "openAnimationDirection", "closeAnimationDirection"]);
|
|
40
76
|
var theme = useAppTheme().theme;
|
|
41
77
|
var dispatch = useAppDispatch();
|
|
42
78
|
var _b = useAppSelector(settingsSelector), settingData = _b.data, error = _b.error, settingLoading = _b.loading;
|
|
43
|
-
var _c = useAppSelector(authSelector), authError = _c.error, loading = _c.loading, customLoading = _c.customLoading;
|
|
44
|
-
|
|
79
|
+
var _c = useAppSelector(authSelector), authError = _c.error, loading = _c.loading, customLoading = _c.customLoading, data = _c.data;
|
|
80
|
+
var leadId = data.leadId;
|
|
81
|
+
var onVerifyConfigTokenSuccess = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
+
var lead_id;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
lead_id = (data || {}).lead_id;
|
|
85
|
+
if (lead_id) {
|
|
86
|
+
dispatch(setLeadId(lead_id));
|
|
87
|
+
}
|
|
88
|
+
return [2];
|
|
89
|
+
});
|
|
90
|
+
}); };
|
|
91
|
+
useAppConfig(__assign(__assign(__assign({ postURL: postURL, navigation: AUTH_SCREENS_NAVIGATION }, props), { configToken: configToken }), (configToken && { onVerifyConfigTokenSuccess: onVerifyConfigTokenSuccess })));
|
|
45
92
|
useErrorListener(authError || error);
|
|
46
93
|
useStepStartedListener();
|
|
47
94
|
var activeScreen = settingData.activeScreen, isTapOrigin = settingData.isTapOrigin, open = settingData.open, merchant = settingData.merchant;
|
|
95
|
+
var animationDirection = open ? openAnimationDirection : closeAnimationDirection;
|
|
48
96
|
React.useEffect(function () {
|
|
97
|
+
var _a;
|
|
49
98
|
sendPageView({ title: 'Auth' });
|
|
50
|
-
dispatch(setLeadId(leadId !== null &&
|
|
99
|
+
dispatch(setLeadId((_a = props.leadId) !== null && _a !== void 0 ? _a : ''));
|
|
51
100
|
}, []);
|
|
52
101
|
React.useEffect(function () {
|
|
53
|
-
|
|
54
|
-
dispatch(retrieveLeadIdentityByIdAsync(leadId));
|
|
55
|
-
}
|
|
56
|
-
}, [leadId]);
|
|
57
|
-
React.useEffect(function () {
|
|
58
|
-
var _a;
|
|
102
|
+
var _a, _b;
|
|
59
103
|
if (settingLoading || !props.open || !settingData.isValidOperator)
|
|
60
104
|
return;
|
|
61
|
-
if (leadId)
|
|
105
|
+
if (leadId) {
|
|
106
|
+
dispatch(retrieveLeadIdentityByIdAsync(leadId));
|
|
62
107
|
return;
|
|
108
|
+
}
|
|
63
109
|
var iso2 = (_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
|
|
110
|
+
var ipIso2 = (_b = settingData.ipCountry) === null || _b === void 0 ? void 0 : _b.iso2;
|
|
111
|
+
if (!iso2 && ipIso2 && settingData.appConfig.scope === 'auth') {
|
|
112
|
+
dispatch(handleSetCountryByIso2(ipIso2));
|
|
113
|
+
iso2 = ipIso2;
|
|
114
|
+
}
|
|
64
115
|
if (!iso2) {
|
|
65
116
|
dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
|
|
66
117
|
return;
|
|
@@ -75,7 +126,7 @@ var Auth = memo(function (_a) {
|
|
|
75
126
|
dispatch(setMobileCountryCode(settingData.businessCountry));
|
|
76
127
|
}
|
|
77
128
|
}, [settingData.businessCountry]);
|
|
78
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ hideOverlay: hideOverlay, open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: !
|
|
129
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ hideOverlay: hideOverlay, open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, hideLoaderOverlay: hideLoaderOverlay, screenId: activeScreen.name, hideFooter: true, hideMerchantLogo: hideMerchantLogo, merchantInfo: merchant, isMaturityExpress: !isTapDomain(props.merchantDomain), animationDirection: animationDirection }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: !isTapDomain(props.merchantDomain) }, { children: authFeatureScreens.map(function (_a, index) {
|
|
79
130
|
var Element = _a.element, name = _a.name;
|
|
80
131
|
var isActive = activeScreen.name === name;
|
|
81
132
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import Box from '@mui/material/Box/Box';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
import { useTranslation } from 'react-i18next';
|
|
17
|
+
import Text from '../../../../components/Text';
|
|
18
|
+
import Icon from '../../../../components/Icon';
|
|
19
|
+
import Collapse from '../../../../components/Collapse';
|
|
20
|
+
import { ICONS_NAMES } from '../../../../constants';
|
|
21
|
+
import Button from '../../../shared/Button';
|
|
22
|
+
import FlatButton from '../../../../components/Button';
|
|
23
|
+
import Warning from '../../../../components/Warning';
|
|
24
|
+
import { handleCurrentActiveScreen } from '../../../../app/settings';
|
|
25
|
+
import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
|
|
26
|
+
import { AuthForType } from '../../../../@types';
|
|
27
|
+
import { authSelector, onSignUp } from '../../../app/auth/authStore';
|
|
28
|
+
var Container = styled(Box)(function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return ({
|
|
31
|
+
paddingBottom: theme.spacing(2.5),
|
|
32
|
+
paddingTop: theme.spacing(0)
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
var SubContainer = styled(Box)(function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return ({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
width: '100%',
|
|
42
|
+
flexDirection: 'column',
|
|
43
|
+
padding: theme.spacing(0, 3.75),
|
|
44
|
+
paddingTop: theme.spacing(0)
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
var TitleStyled = styled(Text)(function (_a) {
|
|
48
|
+
var theme = _a.theme;
|
|
49
|
+
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.info.dark, fontWeight: 700, marginTop: theme.spacing(2.5), marginBottom: theme.spacing(2), textAlign: 'center' }));
|
|
50
|
+
});
|
|
51
|
+
var SubTitleStyled = styled(Text)(function (_a) {
|
|
52
|
+
var theme = _a.theme;
|
|
53
|
+
return (__assign(__assign({}, theme.typography.body2), { color: 'rgba(63, 66, 77, 0.60)', fontWeight: 500, textAlign: 'center' }));
|
|
54
|
+
});
|
|
55
|
+
var IconStyled = styled(Icon)(function () { return ({
|
|
56
|
+
width: 66,
|
|
57
|
+
height: 66
|
|
58
|
+
}); });
|
|
59
|
+
var AccountNotFound = function (_a) {
|
|
60
|
+
var t = useTranslation().t;
|
|
61
|
+
var dispatch = useAppDispatch();
|
|
62
|
+
var isAr = useLanguage().isAr;
|
|
63
|
+
var _b = useAppSelector(authSelector), authData = _b.data, loading = _b.loading, error = _b.error;
|
|
64
|
+
var isNidAuth = authData.otpData.authFor === AuthForType.NATIONAL_ID;
|
|
65
|
+
var onSignIn = function () {
|
|
66
|
+
var screen = isNidAuth ? 'AUTH_NID_STEP' : 'AUTH_MOBILE_STEP';
|
|
67
|
+
dispatch(handleCurrentActiveScreen(screen));
|
|
68
|
+
};
|
|
69
|
+
var handleOnSignUp = function () {
|
|
70
|
+
dispatch(onSignUp());
|
|
71
|
+
};
|
|
72
|
+
return (_jsxs(Container, __assign({ dir: isAr ? 'rtl' : 'ltr' }, { children: [_jsxs(SubContainer, { children: [_jsx(IconStyled, { src: ICONS_NAMES.account_not_found }), _jsx(TitleStyled, { children: t('account_not_found') }), _jsx(SubTitleStyled, { children: t('account_not_found_desc') }), _jsx(SubTitleStyled, { children: t('account_not_found_desc_sub') })] }), _jsx(Collapse, __assign({ in: !!error }, { children: _jsx(Warning, __assign({ sx: { mb: 1, mt: 7.4 }, warningType: 'error' }, { children: t(error || '') })) })), _jsxs(SubContainer, { children: [_jsx(FlatButton, __assign({ sx: { mb: 1.5, mt: !!error ? 0 : 7.4 }, onClick: onSignIn, variant: 'text' }, { children: t('try_sign_in') })), _jsx(Button, __assign({ loading: loading, sx: { margin: 0, width: '100%' }, disableBack: true, onClick: handleOnSignUp, isAr: isAr }, { children: t('sign_up') }))] })] })));
|
|
73
|
+
};
|
|
74
|
+
export default React.memo(AccountNotFound);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface AuthenticationListProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: AuthenticationListProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: AuthenticationListProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -6,5 +6,5 @@ interface BrandListProps {
|
|
|
6
6
|
onListOpen?: () => void;
|
|
7
7
|
onListClose?: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ show, list, ...rest }: BrandListProps) =>
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ show, list, ...rest }: BrandListProps) => JSX.Element>;
|
|
10
10
|
export default _default;
|
|
@@ -7,5 +7,5 @@ interface EntityListProps {
|
|
|
7
7
|
onListOpen?: () => void;
|
|
8
8
|
onListClose?: () => void;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.MemoExoticComponent<({ show, list, countryList, ...rest }: EntityListProps) =>
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ show, list, countryList, ...rest }: EntityListProps) => JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface BusinessCountryScreenProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: BusinessCountryScreenProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: BusinessCountryScreenProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface CivilIDProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: CivilIDProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: CivilIDProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface MobileProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: MobileProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: MobileProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -74,11 +74,17 @@ var Mobile = function (_a) {
|
|
|
74
74
|
var isAr = useLanguage().isAr;
|
|
75
75
|
var dispatch = useAppDispatch();
|
|
76
76
|
var _d = useCountry(settingData.businessCountry.iso2), isKuwait = _d.isKuwait, isOther = _d.isOther;
|
|
77
|
+
var mobileCountryCode = data.mobileData.countryCode;
|
|
77
78
|
var methods = useForm({
|
|
78
79
|
resolver: yupResolver(PhoneValidationSchema()),
|
|
79
80
|
defaultValues: data.mobileData,
|
|
80
81
|
mode: 'onChange'
|
|
81
82
|
});
|
|
83
|
+
React.useEffect(function () {
|
|
84
|
+
var _a;
|
|
85
|
+
if (((_a = methods.getValues('countryCode')) === null || _a === void 0 ? void 0 : _a.iso2) !== (mobileCountryCode === null || mobileCountryCode === void 0 ? void 0 : mobileCountryCode.iso2))
|
|
86
|
+
methods.setValue('countryCode', mobileCountryCode, { shouldValidate: true });
|
|
87
|
+
}, [mobileCountryCode]);
|
|
82
88
|
React.useEffect(function () {
|
|
83
89
|
if (error)
|
|
84
90
|
dispatch(clearError());
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface DOBProps {
|
|
2
3
|
onDateClicked?: (flag: boolean) => void;
|
|
3
4
|
readOnly?: boolean;
|
|
4
5
|
}
|
|
5
|
-
declare const DOB: ({ onDateClicked, readOnly }: DOBProps) =>
|
|
6
|
+
declare const DOB: ({ onDateClicked, readOnly }: DOBProps) => JSX.Element;
|
|
6
7
|
export default DOB;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface NIDProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: NIDProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: NIDProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -25,7 +25,6 @@ import { AuthForType } from '../../../../@types';
|
|
|
25
25
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
26
26
|
import Form from '../../../../components/Form';
|
|
27
27
|
import { maskPhone, maskID, deepCopy } from '../../../../utils';
|
|
28
|
-
import { ACCOUNT_NOT_AVAILABLE } from '../../../../constants';
|
|
29
28
|
import { OTPValidation } from './validation';
|
|
30
29
|
import OTPInput from './OTPInput';
|
|
31
30
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
|
@@ -60,7 +59,7 @@ var OTP = function () {
|
|
|
60
59
|
});
|
|
61
60
|
var isNidAuth = data.otpData.authFor === AuthForType.NATIONAL_ID;
|
|
62
61
|
React.useEffect(function () {
|
|
63
|
-
if (error
|
|
62
|
+
if (error)
|
|
64
63
|
dispatch(clearError());
|
|
65
64
|
}, [methods.formState.isValid]);
|
|
66
65
|
React.useEffect(function () {
|
|
@@ -79,7 +78,7 @@ var OTP = function () {
|
|
|
79
78
|
var screen = isNidAuth ? 'AUTH_NID_STEP' : 'AUTH_MOBILE_STEP';
|
|
80
79
|
dispatch(handlePrevScreenStep(screen));
|
|
81
80
|
};
|
|
82
|
-
var disabled = !methods.formState.isValid
|
|
81
|
+
var disabled = !methods.formState.isValid;
|
|
83
82
|
var phone = ((_a = data.mobileData.countryCode) === null || _a === void 0 ? void 0 : _a.idd_prefix) + (data.mobileData.mobile || '');
|
|
84
83
|
var idNumber = data.nidData.nid;
|
|
85
84
|
var title = isNidAuth ? t('opt_nid_sent_title', { provider: 'ABSHER' }) : t('ide_opt_sent_title');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface OTPProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({}: OTPProps) =>
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|