@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +39 -14
- package/build/@types/app.js +9 -0
- package/build/@types/form.d.ts +11 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +15 -2
- package/build/api/auth.js +25 -2
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +4 -4
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.d.ts +33 -7
- package/build/api/data.js +42 -17
- package/build/api/entity.d.ts +2 -0
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -7
- package/build/app/rootReducer.js +14 -8
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +11 -5
- package/build/app/store.d.ts +6 -0
- package/build/assets/locales/ar.json +14 -4
- package/build/assets/locales/en.json +14 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -7
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +10 -5
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +115 -10
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +10 -7
- package/build/constants/app.d.ts +16 -1
- package/build/constants/app.js +76 -4
- package/build/constants/assets.d.ts +17 -1
- package/build/constants/assets.js +22 -6
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +35 -0
- package/build/features/app/auth/authStore.js +148 -0
- package/build/features/app/bank/bankStore.d.ts +6 -2
- package/build/features/app/bank/bankStore.js +46 -26
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +58 -48
- package/build/features/app/connect/connectStore.d.ts +14 -2
- package/build/features/app/connect/connectStore.js +170 -10
- package/build/features/app/entity/entityStore.d.ts +53 -0
- package/build/features/app/entity/entityStore.js +461 -0
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +28 -0
- package/build/features/app/otp/otpStore.js +153 -0
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +6 -6
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +72 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +44 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +18 -12
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +2 -2
- package/build/features/business/Business.js +20 -13
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +8 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +46 -16
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +14 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +42 -18
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
- package/build/features/connect/screens/Merchant/validation.js +69 -3
- package/build/features/connect/screens/Mobile/Mobile.js +16 -13
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +16 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +78 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +4 -1
- package/build/features/featuresScreens.js +88 -40
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +20 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +7 -0
- package/build/features/otp/OTP.js +58 -0
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +1 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
- package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
- package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
- package/build/features/otp/screens/OTPVerify/index.js +2 -0
- package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
- package/build/features/otp/screens/OTPVerify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -13
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.d.ts +7 -5
- package/build/features/shared/Background/Background.js +16 -5
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +62 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/Input/Input.js +4 -4
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +27 -12
- package/build/features/signIn/SignIn.d.ts +2 -2
- package/build/features/signIn/SignIn.js +21 -13
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +21 -13
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +3 -0
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +4 -3
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +12 -9
- package/build/index.js +18 -9
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +1 -0
- package/build/utils/html.js +6 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +2 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +2 -2
- package/build/utils/string.d.ts +23 -21
- package/build/utils/string.js +13 -4
- package/package.json +1 -1
- package/build/api/index.d.ts +0 -83
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
|
@@ -13,16 +13,16 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { memo, useEffect, useState } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { styled } from '@mui/material/styles';
|
|
16
|
-
import { FlowsButtons } from '
|
|
17
|
-
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '
|
|
18
|
-
import { useAppSelector, useLanguage } from '
|
|
19
|
-
import { businessSelector } from '
|
|
20
|
-
import { getResetFlowUrl, showLastFour } from '
|
|
16
|
+
import { FlowsButtons } from '@features/shared/Button';
|
|
17
|
+
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '@constants';
|
|
18
|
+
import { useAppSelector, useLanguage } from '@hooks';
|
|
19
|
+
import { businessSelector } from '@features/app/business/businessStore';
|
|
20
|
+
import { getResetFlowUrl, showLastFour } from '@utils';
|
|
21
21
|
import Box from '@mui/material/Box';
|
|
22
|
-
import Text from '
|
|
23
|
-
import Container from '
|
|
24
|
-
import AcceptancePayouts from '
|
|
25
|
-
import { settingsSelector } from '
|
|
22
|
+
import Text from '@components/Text';
|
|
23
|
+
import Container from '@features/shared/Containers/ScreenContainer';
|
|
24
|
+
import AcceptancePayouts from '@features/shared/AcceptancePayouts';
|
|
25
|
+
import { settingsSelector } from '@app/settings';
|
|
26
26
|
var TitleStyled = styled(Text)(function (_a) {
|
|
27
27
|
var _b;
|
|
28
28
|
var theme = _a.theme;
|
|
@@ -11,14 +11,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useAppDispatch } from '
|
|
14
|
+
import { useAppDispatch } from '@hooks';
|
|
15
15
|
import Box from '@mui/material/Box/Box';
|
|
16
16
|
import { styled } from '@mui/material/styles';
|
|
17
|
-
import OTPField from '
|
|
17
|
+
import OTPField from '@features/shared/OTP';
|
|
18
18
|
import { useController, useFormContext } from 'react-hook-form';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
|
-
import { DEFAULT_TIMER_VALUE } from '
|
|
21
|
-
import { resendOTP } from '
|
|
20
|
+
import { DEFAULT_TIMER_VALUE } from '@constants';
|
|
21
|
+
import { resendOTP } from '@features/app/business/businessStore';
|
|
22
22
|
var BoxStyled = styled(Box)(function (_a) {
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return ({
|
|
@@ -11,20 +11,20 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useAppDispatch, useAppSelector } from '
|
|
14
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
17
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
18
18
|
import Box from '@mui/material/Box/Box';
|
|
19
19
|
import { styled } from '@mui/material/styles';
|
|
20
|
-
import { handlePrevScreenStep } from '
|
|
21
|
-
import { useLanguage } from '
|
|
22
|
-
import { maskPhone } from '
|
|
23
|
-
import Form from '
|
|
24
|
-
import Text from '
|
|
25
|
-
import { ScreenContainer } from '
|
|
26
|
-
import { businessSelector, clearError, resetOTPScreen, verifyLeadOTP } from '
|
|
27
|
-
import Button from '
|
|
20
|
+
import { handlePrevScreenStep } from '@app/settings';
|
|
21
|
+
import { useLanguage } from '@hooks';
|
|
22
|
+
import { maskPhone } from '@utils';
|
|
23
|
+
import Form from '@components/Form';
|
|
24
|
+
import Text from '@components/Text';
|
|
25
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
26
|
+
import { businessSelector, clearError, resetOTPScreen, verifyLeadOTP } from '@features/app/business/businessStore';
|
|
27
|
+
import Button from '@features/shared/Button';
|
|
28
28
|
import { OTPValidation } from './validation';
|
|
29
29
|
import OTPInput from './OTPInput';
|
|
30
30
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LibConfig } from '
|
|
2
|
+
import { LibConfig } from '@types';
|
|
3
3
|
export interface ConnectLibProps extends LibConfig {
|
|
4
|
+
onClose?: () => void;
|
|
4
5
|
}
|
|
5
6
|
export declare function ConnectLib(props: ConnectLibProps): JSX.Element;
|
|
6
7
|
export declare function renderConnectLib(config: ConnectLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountConnectLib(elementId: string): void;
|
|
8
|
+
export declare function unmountConnectLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -9,30 +9,53 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
12
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { memo } from 'react';
|
|
14
|
-
import { FeatureContainer } from '
|
|
15
|
-
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '
|
|
16
|
-
import { settingsSelector } from '
|
|
17
|
-
import AnimationFlow from '
|
|
18
|
-
import { store } from '
|
|
19
|
-
import { connectSelector } from '
|
|
20
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
21
|
-
import Collapse from '
|
|
22
|
-
import { reactElement } from '
|
|
23
|
-
import { CONNECT_SCREENS_NAVIGATION } from '
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
26
|
+
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '@hooks';
|
|
27
|
+
import { handleCurrentActiveScreen, settingsSelector, handleOpen } from '@app/settings';
|
|
28
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
29
|
+
import { store } from '@app/store';
|
|
30
|
+
import { connectSelector } from '@features/app/connect/connectStore';
|
|
31
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
32
|
+
import Collapse from '@components/Collapse';
|
|
33
|
+
import { reactElement, removeElement, isKW } from '@utils';
|
|
34
|
+
import { CONNECT_SCREENS_NAVIGATION, DIALOG_ID } from '@constants';
|
|
24
35
|
import { connectFeatureScreens } from '../featuresScreens';
|
|
25
36
|
import CustomFooter from '../shared/Footer';
|
|
26
37
|
import Background from '../shared/Background';
|
|
27
|
-
var Connect = memo(function (
|
|
38
|
+
var Connect = memo(function (_a) {
|
|
39
|
+
var onClose = _a.onClose, props = __rest(_a, ["onClose"]);
|
|
28
40
|
var theme = useAppTheme().theme;
|
|
29
|
-
var
|
|
41
|
+
var dispatch = useAppDispatch();
|
|
42
|
+
var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
|
|
30
43
|
var connectError = useAppSelector(connectSelector).error;
|
|
31
44
|
useAppConfig(__assign({ navigation: CONNECT_SCREENS_NAVIGATION }, props));
|
|
32
45
|
useErrorListener(connectError || error);
|
|
33
46
|
useStepStartedListener();
|
|
34
47
|
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
|
|
35
|
-
|
|
48
|
+
React.useEffect(function () {
|
|
49
|
+
var _a;
|
|
50
|
+
if (!settingLoading) {
|
|
51
|
+
if (isKW((_a = data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2))
|
|
52
|
+
dispatch(handleCurrentActiveScreen('CONNECT_CIVIL_ID_STEP'));
|
|
53
|
+
}
|
|
54
|
+
}, [settingLoading]);
|
|
55
|
+
var handleDialogClose = function () {
|
|
56
|
+
dispatch(handleOpen(false));
|
|
57
|
+
};
|
|
58
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ onClose: onClose, onConfirm: handleDialogClose, isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: connectFeatureScreens.map(function (_a, index) {
|
|
36
59
|
var Element = _a.element, name = _a.name;
|
|
37
60
|
var isActive = activeScreen.name === name;
|
|
38
61
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
@@ -44,6 +67,13 @@ export function ConnectLib(props) {
|
|
|
44
67
|
export function renderConnectLib(config, elementId) {
|
|
45
68
|
reactElement(elementId).render(_jsx(ConnectLib, __assign({}, config)));
|
|
46
69
|
}
|
|
47
|
-
export function unmountConnectLib(elementId) {
|
|
48
|
-
|
|
70
|
+
export function unmountConnectLib(elementId, unmountTimeout) {
|
|
71
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
72
|
+
var element = document.getElementById(elementId);
|
|
73
|
+
setTimeout(function () {
|
|
74
|
+
var _a;
|
|
75
|
+
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
76
|
+
removeElement(DIALOG_ID);
|
|
77
|
+
reactElement(elementId).unmount();
|
|
78
|
+
}, unmountTimeout);
|
|
49
79
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { useTranslation } from 'react-i18next';
|
|
15
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
16
|
+
import { useForm, FormProvider } from 'react-hook-form';
|
|
17
|
+
import { yupResolver } from '@hookform/resolvers/yup';
|
|
18
|
+
import { civilIDValidationSchema } from './validation';
|
|
19
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
|
|
20
|
+
import { handlePrevScreenStep, settingsSelector } from '@app/settings';
|
|
21
|
+
import { clearError, connectSelector, createCivilIdAuth } from '@features/app/connect/connectStore';
|
|
22
|
+
import Form from '@components/Form';
|
|
23
|
+
import Button, { MobileButton } from '@features/shared/Button';
|
|
24
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
25
|
+
import Collapse from '@components/Collapse';
|
|
26
|
+
import Box from '@mui/material/Box';
|
|
27
|
+
import Divider from '@mui/material/Divider';
|
|
28
|
+
import Text from '@components/Text';
|
|
29
|
+
import IDNumber from './IDNumber';
|
|
30
|
+
var FormStyled = styled(Form)(function () { return ({
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'column'
|
|
33
|
+
}); });
|
|
34
|
+
var TextStyled = styled(Text)(function (_a) {
|
|
35
|
+
var theme = _a.theme;
|
|
36
|
+
return ({
|
|
37
|
+
color: alpha(theme.palette.primary.dark, 0.4)
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
var DividerStyled = styled(Divider)(function (_a) {
|
|
41
|
+
var theme = _a.theme;
|
|
42
|
+
return ({
|
|
43
|
+
width: '45%',
|
|
44
|
+
borderColor: alpha(theme.palette.primary.dark, 0.4),
|
|
45
|
+
marginBlockEnd: theme.spacing(0.62)
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
var OrBoxStyled = styled(Box)(function (_a) {
|
|
49
|
+
var theme = _a.theme;
|
|
50
|
+
return ({
|
|
51
|
+
display: 'flex',
|
|
52
|
+
justifyContent: 'space-between',
|
|
53
|
+
marginBlockEnd: theme.spacing(1.62),
|
|
54
|
+
marginBlockStart: theme.spacing(-1.25),
|
|
55
|
+
marginInline: theme.spacing(2.5)
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var CivilID = function (_a) {
|
|
59
|
+
var isAr = useLanguage().isAr;
|
|
60
|
+
var dispatch = useAppDispatch();
|
|
61
|
+
var t = useTranslation().t;
|
|
62
|
+
var _b = useAppSelector(connectSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
63
|
+
var settingsStore = useAppSelector(settingsSelector);
|
|
64
|
+
var methods = useForm({
|
|
65
|
+
resolver: yupResolver(civilIDValidationSchema),
|
|
66
|
+
defaultValues: data.civilIdData,
|
|
67
|
+
mode: 'onChange'
|
|
68
|
+
});
|
|
69
|
+
React.useEffect(function () {
|
|
70
|
+
handleClearError();
|
|
71
|
+
}, [methods.formState.isValid]);
|
|
72
|
+
var onSubmit = function (data) {
|
|
73
|
+
dispatch(createCivilIdAuth(data));
|
|
74
|
+
};
|
|
75
|
+
var handleClearError = function () {
|
|
76
|
+
if (error)
|
|
77
|
+
dispatch(clearError());
|
|
78
|
+
};
|
|
79
|
+
var onBack = function () {
|
|
80
|
+
dispatch(handlePrevScreenStep('CONNECT_MOBILE_STEP'));
|
|
81
|
+
};
|
|
82
|
+
var disabled = !methods.formState.isValid || !!error;
|
|
83
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(IDNumber, { sx: { mb: methods.formState.isValid ? 7.5 : 0, transition: 'mb 0.3s' } }), _jsx(Button, __assign({ loading: loading, isAr: isAr, disableBack: true, disabled: disabled || settingsStore.loading, error: t(error || '') }, { children: t('next') })), _jsxs(Collapse, __assign({ in: !methods.formState.isValid }, { children: [_jsxs(OrBoxStyled, { children: [_jsx(DividerStyled, {}), _jsx(TextStyled, { children: t('or') }), _jsx(DividerStyled, {})] }), _jsx(MobileButton, __assign({ onClick: function () { return onBack(); }, disabled: loading || settingsStore.loading }, { children: t('mobile_button_label') }))] }))] })) })) }));
|
|
84
|
+
};
|
|
85
|
+
export default React.memo(CivilID);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
interface IDNumberProps {
|
|
4
|
+
sx: SxProps<Theme> | undefined;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<IDNumberProps & React.RefAttributes<unknown>>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
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';
|
|
15
|
+
import { useTranslation } from 'react-i18next';
|
|
16
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
17
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
18
|
+
import Text from '@components/Text';
|
|
19
|
+
import Input from '@features/shared/Input';
|
|
20
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
21
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
22
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
23
|
+
import { removeAllOtherThanCharsAndNumber } from '@utils';
|
|
24
|
+
import { CIVIL_ID_NUMBER_LENGTH } from '@constants';
|
|
25
|
+
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
26
|
+
var theme = _a.theme;
|
|
27
|
+
return ({
|
|
28
|
+
display: 'flex',
|
|
29
|
+
justifyContent: 'space-between',
|
|
30
|
+
padding: theme.spacing(0, 2.5, 1.25, 2.5)
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
var InputLabelStyled = styled(Text)(function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
|
|
36
|
+
});
|
|
37
|
+
var IDNumber = React.forwardRef(function (_a, ref) {
|
|
38
|
+
var _b;
|
|
39
|
+
var sx = _a.sx;
|
|
40
|
+
var t = useTranslation().t;
|
|
41
|
+
var _c = useFormContext(), control = _c.control, setValue = _c.setValue;
|
|
42
|
+
var civilIdControl = useController({ control: control, name: 'civilId' });
|
|
43
|
+
React.useEffect(function () {
|
|
44
|
+
if (civilIdControl.field.value)
|
|
45
|
+
setValue('civilId', civilIdControl.field.value, { shouldValidate: true });
|
|
46
|
+
}, []);
|
|
47
|
+
var handleIdChange = function (_a) {
|
|
48
|
+
var target = _a.target;
|
|
49
|
+
var value = removeAllOtherThanCharsAndNumber(target.value);
|
|
50
|
+
civilIdControl.field.onChange(value);
|
|
51
|
+
};
|
|
52
|
+
var clearIdNumber = function () {
|
|
53
|
+
civilIdControl.field.onChange('');
|
|
54
|
+
};
|
|
55
|
+
var idValue = civilIdControl.field.value;
|
|
56
|
+
var error = (_b = civilIdControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
57
|
+
return (_jsxs(ScreenContainer, __assign({ ref: ref, sx: sx }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('enter_civil_id') }) }), _jsx(Input, { dir: 'ltr', type: 'text', inputProps: { maxLength: CIVIL_ID_NUMBER_LENGTH }, onChange: handleIdChange, value: idValue, endAdornment: !error && idValue ? _jsx(CheckIcon, {}) : idValue && _jsx(ClearIcon, { onClick: clearIdNumber }), placeholder: t('civil_id_placeholder'), warningType: 'alert', warningMessage: error && t(error), required: true })] })));
|
|
58
|
+
});
|
|
59
|
+
export default React.memo(IDNumber);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
export declare const civilIDValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
3
|
+
civilId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
4
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
5
|
+
civilId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
6
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
7
|
+
civilId: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
8
|
+
}>>>;
|
|
@@ -49,15 +49,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
49
49
|
import * as React from 'react';
|
|
50
50
|
import { useTranslation } from 'react-i18next';
|
|
51
51
|
import axios from 'axios';
|
|
52
|
-
import { ScreenContainer } from '
|
|
53
|
-
import Input from '
|
|
52
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
53
|
+
import Input from '@features/shared/Input';
|
|
54
54
|
import { useController, useFormContext } from 'react-hook-form';
|
|
55
|
-
import ClearIcon from '
|
|
56
|
-
import CheckIcon from '
|
|
57
|
-
import { checkEmailAvailability } from '
|
|
58
|
-
import { useAppDispatch } from '
|
|
55
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
56
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
57
|
+
import { checkEmailAvailability } from '@features/app/connect/connectStore';
|
|
58
|
+
import { useAppDispatch } from '@hooks';
|
|
59
59
|
import { debounce } from 'lodash-es';
|
|
60
|
-
import Collapse from '
|
|
60
|
+
import Collapse from '@components/Collapse';
|
|
61
61
|
import { styled } from '@mui/material/styles';
|
|
62
62
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
63
63
|
var InputStyled = styled(Input)(function (_a) {
|
|
@@ -17,17 +17,18 @@ import * as React from 'react';
|
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
18
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
19
19
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
20
|
-
import { useAppDispatch, useAppSelector } from '
|
|
21
|
-
import { handlePrevScreenStep } from '
|
|
20
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
21
|
+
import { handlePrevScreenStep, settingsSelector } from '@app/settings';
|
|
22
22
|
import { IndividualValidation, IndividualMobileValidation } from './validation';
|
|
23
|
-
import Form from '
|
|
24
|
-
import Button from '
|
|
25
|
-
import { ScreenContainer } from '
|
|
26
|
-
import { clearError, connectSelector, resetIndividualScreen, updateLeadIndividual } from '
|
|
27
|
-
import { useLanguage } from '
|
|
23
|
+
import Form from '@components/Form';
|
|
24
|
+
import Button from '@features/shared/Button';
|
|
25
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
26
|
+
import { clearError, connectSelector, resetIndividualScreen, updateLeadIndividual } from '@features/app/connect/connectStore';
|
|
27
|
+
import { useLanguage } from '@hooks';
|
|
28
28
|
import MobileNumber from './MobileNumber';
|
|
29
|
-
import { countriesCode } from '
|
|
30
|
-
import Collapse from '
|
|
29
|
+
import { countriesCode } from '@constants';
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import { isKW } from '@utils';
|
|
31
32
|
var FormStyled = styled(Form)(function () { return ({
|
|
32
33
|
display: 'flex',
|
|
33
34
|
flexDirection: 'column'
|
|
@@ -36,6 +37,7 @@ var Individual = function (_a) {
|
|
|
36
37
|
var _b, _c, _d;
|
|
37
38
|
var _e = React.useState(false), listActive = _e[0], setListActive = _e[1];
|
|
38
39
|
var _f = React.useState(false), emailChecking = _f[0], setEmailChecking = _f[1];
|
|
40
|
+
var settingsData = useAppSelector(settingsSelector).data;
|
|
39
41
|
var _g = useAppSelector(connectSelector), data = _g.data, loading = _g.loading, error = _g.error;
|
|
40
42
|
var dispatch = useAppDispatch();
|
|
41
43
|
var t = useTranslation().t;
|
|
@@ -51,8 +53,10 @@ var Individual = function (_a) {
|
|
|
51
53
|
dispatch(updateLeadIndividual(formData));
|
|
52
54
|
};
|
|
53
55
|
var onBack = function () {
|
|
56
|
+
var _a;
|
|
54
57
|
dispatch(resetIndividualScreen());
|
|
55
|
-
|
|
58
|
+
var code = (_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
|
|
59
|
+
dispatch(handlePrevScreenStep(isKW(code) ? 'CONNECT_CIVIL_ID_STEP' : isAbsher ? 'CONNECT_NID_STEP' : 'CONNECT_MOBILE_STEP'));
|
|
56
60
|
};
|
|
57
61
|
React.useEffect(function () {
|
|
58
62
|
if (error)
|
|
@@ -26,17 +26,17 @@ import Box from '@mui/material/Box';
|
|
|
26
26
|
import { useTranslation } from 'react-i18next';
|
|
27
27
|
import { useController, useFormContext } from 'react-hook-form';
|
|
28
28
|
import { styled, alpha } from '@mui/material/styles';
|
|
29
|
-
import Text from '
|
|
30
|
-
import Collapse from '
|
|
31
|
-
import ClearIcon from '
|
|
32
|
-
import CheckIcon from '
|
|
33
|
-
import ScreenContainer from '
|
|
34
|
-
import ExpandIcon from '
|
|
35
|
-
import Input from '
|
|
36
|
-
import SimpleList from '
|
|
37
|
-
import { removeAllCharsFromNumber } from '
|
|
38
|
-
import { useLanguage } from '
|
|
39
|
-
import Search from '
|
|
29
|
+
import Text from '@components/Text';
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
32
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
33
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
34
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
35
|
+
import Input from '@features/shared/Input';
|
|
36
|
+
import SimpleList from '@components/SimpleList';
|
|
37
|
+
import { removeAllCharsFromNumber } from '@utils';
|
|
38
|
+
import { useLanguage } from '@hooks';
|
|
39
|
+
import Search from '@features/shared/Search';
|
|
40
40
|
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
41
41
|
var theme = _a.theme;
|
|
42
42
|
return ({
|
|
@@ -12,13 +12,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { ScreenContainer } from '
|
|
16
|
-
import Input from '
|
|
17
|
-
import { removeAllOtherThanAlphabetAndSpace } from '
|
|
15
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
16
|
+
import Input from '@features/shared/Input';
|
|
17
|
+
import { removeAllOtherThanAlphabetAndSpace } from '@utils';
|
|
18
18
|
import { useController, useFormContext } from 'react-hook-form';
|
|
19
|
-
import ClearIcon from '
|
|
20
|
-
import CheckIcon from '
|
|
21
|
-
import Collapse from '
|
|
19
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
20
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
21
|
+
import Collapse from '@components/Collapse';
|
|
22
22
|
import { styled } from '@mui/material/styles';
|
|
23
23
|
var InputStyled = styled(Input)(function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
@@ -26,14 +26,14 @@ import { useTranslation } from 'react-i18next';
|
|
|
26
26
|
import { useFormContext, useController } from 'react-hook-form';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
|
-
import { useLanguage } from '
|
|
30
|
-
import ScreenContainer from '
|
|
31
|
-
import Input from '
|
|
32
|
-
import CheckIcon from '
|
|
33
|
-
import SimpleList from '
|
|
34
|
-
import Text from '
|
|
35
|
-
import ExpandIcon from '
|
|
36
|
-
import Collapse from '
|
|
29
|
+
import { useLanguage } from '@hooks';
|
|
30
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
31
|
+
import Input from '@features/shared/Input';
|
|
32
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
33
|
+
import SimpleList from '@components/SimpleList';
|
|
34
|
+
import Text from '@components/Text';
|
|
35
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
36
|
+
import Collapse from '@components/Collapse';
|
|
37
37
|
var InputStyled = styled(Input)(function () { return ({
|
|
38
38
|
'& .MuiInputBase-input': {
|
|
39
39
|
cursor: 'pointer'
|
|
@@ -54,17 +54,17 @@ import axios from 'axios';
|
|
|
54
54
|
import { styled, alpha } from '@mui/material/styles';
|
|
55
55
|
import InfoIcon from '@mui/icons-material/Info';
|
|
56
56
|
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
|
|
57
|
-
import { ScreenContainer } from '
|
|
57
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
58
58
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
59
|
-
import Text from '
|
|
60
|
-
import Input from '
|
|
61
|
-
import ClearIcon from '
|
|
62
|
-
import Tooltip from '
|
|
63
|
-
import Collapse from '
|
|
64
|
-
import { removeAllOtherThanCharsNumbersAndSpace } from '
|
|
65
|
-
import CheckIcon from '
|
|
66
|
-
import { checkBrandNameAvailability } from '
|
|
67
|
-
import { useAppDispatch } from '
|
|
59
|
+
import Text from '@components/Text';
|
|
60
|
+
import Input from '@features/shared/Input';
|
|
61
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
62
|
+
import Tooltip from '@components/Tooltip';
|
|
63
|
+
import Collapse from '@components/Collapse';
|
|
64
|
+
import { removeAllOtherThanCharsNumbersAndSpace } from '@utils';
|
|
65
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
66
|
+
import { checkBrandNameAvailability } from '@features/app/connect/connectStore';
|
|
67
|
+
import { useAppDispatch } from '@hooks';
|
|
68
68
|
import { debounce } from 'lodash-es';
|
|
69
69
|
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
70
70
|
var theme = _a.theme;
|