@tap-payments/auth-jsconnect 2.1.12-test → 2.1.14-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 +236 -0
- package/build/@types/app.js +35 -0
- package/build/@types/form.d.ts +94 -0
- package/build/@types/form.js +1 -0
- package/build/@types/index.d.ts +4 -0
- package/build/@types/index.js +4 -0
- package/build/@types/redux.d.ts +14 -0
- package/build/@types/redux.js +1 -0
- package/build/@types/theme.d.ts +14 -0
- package/build/@types/theme.js +15 -0
- package/build/api/account.d.ts +14 -0
- package/build/api/account.js +13 -0
- package/build/api/auth.d.ts +87 -0
- package/build/api/auth.js +56 -0
- package/build/api/availabilityServices.d.ts +20 -0
- package/build/api/availabilityServices.js +17 -0
- package/build/api/axios.d.ts +7 -0
- package/build/api/axios.js +110 -0
- package/build/api/board.d.ts +27 -0
- package/build/api/board.js +63 -0
- package/build/api/brand.d.ts +8 -0
- package/build/api/brand.js +49 -0
- package/build/api/country.d.ts +6 -0
- package/build/api/country.js +14 -0
- package/build/api/data.d.ts +41 -0
- package/build/api/data.js +76 -0
- package/build/api/entity.d.ts +103 -0
- package/build/api/entity.js +89 -0
- package/build/api/firebase.d.ts +4 -0
- package/build/api/firebase.js +14 -0
- package/build/api/index.d.ts +114 -0
- package/build/api/index.js +33 -0
- package/build/api/individual.d.ts +89 -0
- package/build/api/individual.js +39 -0
- package/build/api/ip.d.ts +4 -0
- package/build/api/ip.js +12 -0
- package/build/api/lead.d.ts +96 -0
- package/build/api/lead.js +52 -0
- package/build/api/operator.d.ts +12 -0
- package/build/api/operator.js +65 -0
- package/build/api/user.d.ts +8 -0
- package/build/api/user.js +12 -0
- package/build/app/rootReducer.d.ts +13 -0
- package/build/app/rootReducer.js +23 -0
- package/build/app/settings.d.ts +44 -0
- package/build/app/settings.js +257 -0
- package/build/app/store.d.ts +27 -0
- package/build/app/store.js +11 -0
- package/build/assets/locales/ar.json +336 -0
- package/build/assets/locales/en.json +363 -0
- package/build/components/AnimationFlow/AnimationFlow.d.ts +17 -0
- package/build/components/AnimationFlow/AnimationFlow.js +34 -0
- package/build/components/AnimationFlow/BottomSheet.d.ts +11 -0
- package/build/components/AnimationFlow/BottomSheet.js +86 -0
- package/build/components/AnimationFlow/Dialog.d.ts +15 -0
- package/build/components/AnimationFlow/Dialog.js +111 -0
- package/build/components/AnimationFlow/Error.d.ts +6 -0
- package/build/components/AnimationFlow/Error.js +32 -0
- package/build/components/AnimationFlow/Loader.d.ts +2 -0
- package/build/components/AnimationFlow/Loader.js +24 -0
- package/build/components/AnimationFlow/index.d.ts +2 -0
- package/build/components/AnimationFlow/index.js +2 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
- package/build/components/ArabicDatePicker/index.d.ts +2 -0
- package/build/components/ArabicDatePicker/index.js +2 -0
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/Button/Button.d.ts +14 -0
- package/build/components/Button/Button.js +101 -0
- package/build/components/Button/index.d.ts +4 -0
- package/build/components/Button/index.js +2 -0
- package/build/components/CheckBox/CheckBox.d.ts +5 -0
- package/build/components/CheckBox/CheckBox.js +39 -0
- package/build/components/CheckBox/index.d.ts +4 -0
- package/build/components/CheckBox/index.js +2 -0
- package/build/components/Collapse/Collapse.d.ts +5 -0
- package/build/components/Collapse/Collapse.js +28 -0
- package/build/components/Collapse/index.d.ts +3 -0
- package/build/components/Collapse/index.js +2 -0
- package/build/components/DatePicker/DatePicker.d.ts +14 -0
- package/build/components/DatePicker/DatePicker.js +101 -0
- package/build/components/DatePicker/customStyle.css +86 -0
- package/build/components/DatePicker/index.d.ts +3 -0
- package/build/components/DatePicker/index.js +2 -0
- package/build/components/ExpandIcon/ExpandIcon.d.ts +7 -0
- package/build/components/ExpandIcon/ExpandIcon.js +24 -0
- package/build/components/ExpandIcon/index.d.ts +2 -0
- package/build/components/ExpandIcon/index.js +2 -0
- package/build/components/FileInput/DragAndDrop.d.ts +17 -0
- package/build/components/FileInput/DragAndDrop.js +136 -0
- package/build/components/FileInput/UploadInput.d.ts +7 -0
- package/build/components/FileInput/UploadInput.js +38 -0
- package/build/components/FileInput/index.d.ts +3 -0
- package/build/components/FileInput/index.js +3 -0
- package/build/components/Footer/Footer.d.ts +15 -0
- package/build/components/Footer/Footer.js +62 -0
- package/build/components/Footer/index.d.ts +4 -0
- package/build/components/Footer/index.js +2 -0
- package/build/components/Form/Form.d.ts +11 -0
- package/build/components/Form/Form.js +38 -0
- package/build/components/Form/index.d.ts +3 -0
- package/build/components/Form/index.js +2 -0
- package/build/components/Icon/Icon.d.ts +11 -0
- package/build/components/Icon/Icon.js +26 -0
- package/build/components/Icon/index.d.ts +3 -0
- package/build/components/Icon/index.js +2 -0
- package/build/components/Input/Input.d.ts +19 -0
- package/build/components/Input/Input.js +84 -0
- package/build/components/Input/index.d.ts +3 -0
- package/build/components/Input/index.js +2 -0
- package/build/components/InputAdornment/InputAdornment.d.ts +10 -0
- package/build/components/InputAdornment/InputAdornment.js +46 -0
- package/build/components/InputAdornment/index.d.ts +3 -0
- package/build/components/InputAdornment/index.js +2 -0
- package/build/components/List/List.d.ts +5 -0
- package/build/components/List/List.js +52 -0
- package/build/components/List/index.d.ts +3 -0
- package/build/components/List/index.js +2 -0
- package/build/components/ListItem/ListItem.d.ts +5 -0
- package/build/components/ListItem/ListItem.js +35 -0
- package/build/components/ListItem/index.d.ts +3 -0
- package/build/components/ListItem/index.js +2 -0
- package/build/components/Loader/Loader.d.ts +24 -0
- package/build/components/Loader/Loader.js +41 -0
- package/build/components/Loader/index.d.ts +4 -0
- package/build/components/Loader/index.js +2 -0
- package/build/components/LogoBadge/LogoBadge.d.ts +7 -0
- package/build/components/LogoBadge/LogoBadge.js +61 -0
- package/build/components/LogoBadge/index.d.ts +3 -0
- package/build/components/LogoBadge/index.js +2 -0
- package/build/components/Lottie/Lottie.d.ts +3675 -0
- package/build/components/Lottie/Lottie.js +62 -0
- package/build/components/Lottie/files/error.json +692 -0
- package/build/components/Lottie/files/start_loading.json +1140 -0
- package/build/components/Lottie/files/still_loading.json +1140 -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/OTPField/OTPField.d.ts +18 -0
- package/build/components/OTPField/OTPField.js +45 -0
- package/build/components/OTPField/index.d.ts +4 -0
- package/build/components/OTPField/index.js +2 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +14 -0
- package/build/components/OTPTimer/OTPTimer.js +70 -0
- package/build/components/OTPTimer/index.d.ts +4 -0
- package/build/components/OTPTimer/index.js +2 -0
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/ProgressBar.d.ts +6 -0
- package/build/components/ProgressBar/ProgressBar.js +45 -0
- package/build/components/ProgressBar/index.d.ts +6 -0
- package/build/components/ProgressBar/index.js +4 -0
- package/build/components/Providers/ReduxProvider.d.ts +7 -0
- package/build/components/Providers/ReduxProvider.js +17 -0
- package/build/components/Providers/ThemeProvider.d.ts +8 -0
- package/build/components/Providers/ThemeProvider.js +22 -0
- package/build/components/Providers/index.d.ts +3 -0
- package/build/components/Providers/index.js +3 -0
- package/build/components/Radio/Radio.d.ts +5 -0
- package/build/components/Radio/Radio.js +31 -0
- package/build/components/Radio/index.d.ts +3 -0
- package/build/components/Radio/index.js +2 -0
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/build/components/RadioGroup/RadioGroup.js +41 -0
- package/build/components/RadioGroup/index.d.ts +3 -0
- package/build/components/RadioGroup/index.js +2 -0
- package/build/components/RadioLabel/RadioLabel.d.ts +10 -0
- package/build/components/RadioLabel/RadioLabel.js +34 -0
- package/build/components/RadioLabel/index.d.ts +3 -0
- package/build/components/RadioLabel/index.js +2 -0
- package/build/components/SimpleList/SimpleList.d.ts +18 -0
- package/build/components/SimpleList/SimpleList.js +104 -0
- package/build/components/SimpleList/index.d.ts +3 -0
- package/build/components/SimpleList/index.js +2 -0
- package/build/components/Slide/Slide.d.ts +6 -0
- package/build/components/Slide/Slide.js +30 -0
- package/build/components/Slide/index.d.ts +3 -0
- package/build/components/Slide/index.js +2 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +11 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +34 -0
- package/build/components/SocialMediaGroup/index.d.ts +3 -0
- package/build/components/SocialMediaGroup/index.js +2 -0
- package/build/components/Text/Text.d.ts +5 -0
- package/build/components/Text/Text.js +35 -0
- package/build/components/Text/index.d.ts +3 -0
- package/build/components/Text/index.js +2 -0
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
- package/build/components/ToggleButton/ToggleButton.js +44 -0
- package/build/components/ToggleButton/index.d.ts +3 -0
- package/build/components/ToggleButton/index.js +2 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
- package/build/components/ToggleButtonGroup/index.d.ts +3 -0
- package/build/components/ToggleButtonGroup/index.js +2 -0
- package/build/components/Tooltip/Tooltip.d.ts +10 -0
- package/build/components/Tooltip/Tooltip.js +44 -0
- package/build/components/Tooltip/index.d.ts +3 -0
- package/build/components/Tooltip/index.js +2 -0
- package/build/components/Warning/Warning.d.ts +13 -0
- package/build/components/Warning/Warning.js +53 -0
- package/build/components/Warning/index.d.ts +4 -0
- package/build/components/Warning/index.js +2 -0
- package/build/constants/api.d.ts +40 -0
- package/build/constants/api.js +79 -0
- package/build/constants/app.d.ts +171 -0
- package/build/constants/app.js +502 -0
- package/build/constants/assets.d.ts +92 -0
- package/build/constants/assets.js +92 -0
- package/build/constants/dummy.d.ts +328 -0
- package/build/constants/dummy.js +6436 -0
- package/build/constants/index.d.ts +5 -0
- package/build/constants/index.js +5 -0
- package/build/constants/validation.d.ts +25 -0
- package/build/constants/validation.js +25 -0
- package/build/features/app/auth/authStore.d.ts +46 -0
- package/build/features/app/auth/authStore.js +261 -0
- package/build/features/app/bank/bankStore.d.ts +76 -0
- package/build/features/app/bank/bankStore.js +472 -0
- package/build/features/app/business/businessStore.d.ts +128 -0
- package/build/features/app/business/businessStore.js +1183 -0
- package/build/features/app/connect/connectStore.d.ts +104 -0
- package/build/features/app/connect/connectStore.js +966 -0
- package/build/features/app/entity/entityStore.d.ts +85 -0
- package/build/features/app/entity/entityStore.js +690 -0
- package/build/features/app/individual/individualStore.d.ts +86 -0
- package/build/features/app/individual/individualStore.js +540 -0
- package/build/features/app/password/passwordStore.d.ts +84 -0
- package/build/features/app/password/passwordStore.js +532 -0
- package/build/features/app/signIn/signInStore.d.ts +33 -0
- package/build/features/app/signIn/signInStore.js +390 -0
- package/build/features/app/tax/taxStore.d.ts +46 -0
- package/build/features/app/tax/taxStore.js +385 -0
- 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/NID/DOB.d.ts +7 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +3 -0
- package/build/features/auth/screens/NID/IDNumber.js +64 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +68 -0
- package/build/features/auth/screens/NID/TAC.d.ts +3 -0
- package/build/features/auth/screens/NID/TAC.js +87 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +27 -0
- package/build/features/auth/screens/NID/validation.js +19 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +76 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +51 -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 +7 -0
- package/build/features/bank/Bank.js +69 -0
- package/build/features/bank/index.d.ts +1 -0
- package/build/features/bank/index.js +1 -0
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/BankDetails.js +86 -0
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/BankName.js +60 -0
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +6 -0
- package/build/features/bank/screens/BankDetails/BankStatement.js +67 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.js +50 -0
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +67 -0
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +7 -0
- package/build/features/bank/screens/BankDetails/IBAN.js +100 -0
- package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/index.js +2 -0
- package/build/features/bank/screens/BankDetails/validation.d.ts +45 -0
- package/build/features/bank/screens/BankDetails/validation.js +56 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/bank/screens/Success/Success.d.ts +5 -0
- package/build/features/bank/screens/Success/Success.js +20 -0
- package/build/features/bank/screens/Success/index.d.ts +3 -0
- package/build/features/bank/screens/Success/index.js +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/bank/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/bank/screens/Verify/OTPInput.js +47 -0
- package/build/features/bank/screens/Verify/Verify.d.ts +5 -0
- package/build/features/bank/screens/Verify/Verify.js +78 -0
- package/build/features/bank/screens/Verify/index.d.ts +2 -0
- package/build/features/bank/screens/Verify/index.js +2 -0
- package/build/features/bank/screens/Verify/validation.d.ts +8 -0
- package/build/features/bank/screens/Verify/validation.js +4 -0
- package/build/features/business/Business.d.ts +7 -0
- package/build/features/business/Business.js +70 -0
- package/build/features/business/index.d.ts +1 -0
- package/build/features/business/index.js +1 -0
- package/build/features/business/screens/Activities/Activities.d.ts +5 -0
- package/build/features/business/screens/Activities/Activities.js +77 -0
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +90 -0
- package/build/features/business/screens/Activities/ActivitiesList.js +170 -0
- package/build/features/business/screens/Activities/LicenseName.d.ts +5 -0
- package/build/features/business/screens/Activities/LicenseName.js +30 -0
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +20 -0
- package/build/features/business/screens/Activities/OperationStartDate.js +45 -0
- package/build/features/business/screens/Activities/index.d.ts +3 -0
- package/build/features/business/screens/Activities/index.js +2 -0
- package/build/features/business/screens/Activities/validation.d.ts +56 -0
- package/build/features/business/screens/Activities/validation.js +11 -0
- package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
- package/build/features/business/screens/BusinessType/Article.js +89 -0
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +5 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +79 -0
- package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
- package/build/features/business/screens/BusinessType/EntityName.js +56 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +81 -0
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +8 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +148 -0
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +7 -0
- package/build/features/business/screens/BusinessType/LicenseNumber.js +52 -0
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -0
- package/build/features/business/screens/BusinessType/LicenseType.js +107 -0
- package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
- package/build/features/business/screens/BusinessType/SelectType.js +106 -0
- package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
- package/build/features/business/screens/BusinessType/Switch.js +35 -0
- package/build/features/business/screens/BusinessType/index.d.ts +3 -0
- package/build/features/business/screens/BusinessType/index.js +2 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +30 -0
- package/build/features/business/screens/BusinessType/validation.js +90 -0
- package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/business/screens/CivilID/CivilID.js +67 -0
- package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/business/screens/CivilID/IDNumber.js +59 -0
- package/build/features/business/screens/CivilID/index.d.ts +3 -0
- package/build/features/business/screens/CivilID/index.js +2 -0
- package/build/features/business/screens/CivilID/validation.d.ts +8 -0
- package/build/features/business/screens/CivilID/validation.js +4 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +82 -0
- package/build/features/business/screens/Customers/CustomerLocations.js +144 -0
- package/build/features/business/screens/Customers/Customers.d.ts +5 -0
- package/build/features/business/screens/Customers/Customers.js +90 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +8 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.js +98 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +8 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +127 -0
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +36 -0
- package/build/features/business/screens/Customers/RefundPolicy.js +84 -0
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/business/screens/Customers/TransactionPolicy.js +44 -0
- package/build/features/business/screens/Customers/index.d.ts +3 -0
- package/build/features/business/screens/Customers/index.js +2 -0
- package/build/features/business/screens/Customers/validation.d.ts +20 -0
- package/build/features/business/screens/Customers/validation.js +13 -0
- package/build/features/business/screens/IDBOD/DOB.d.ts +6 -0
- package/build/features/business/screens/IDBOD/DOB.js +45 -0
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
- package/build/features/business/screens/IDBOD/ID.js +28 -0
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +68 -0
- package/build/features/business/screens/IDBOD/index.d.ts +3 -0
- package/build/features/business/screens/IDBOD/index.js +2 -0
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
- package/build/features/business/screens/IDBOD/validation.js +9 -0
- package/build/features/business/screens/OTP/OTP.d.ts +8 -0
- package/build/features/business/screens/OTP/OTP.js +90 -0
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/business/screens/OTP/OTPInput.js +46 -0
- package/build/features/business/screens/OTP/index.d.ts +3 -0
- package/build/features/business/screens/OTP/index.js +2 -0
- package/build/features/business/screens/OTP/validation.d.ts +8 -0
- package/build/features/business/screens/OTP/validation.js +4 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/business/screens/Success/Success.d.ts +5 -0
- package/build/features/business/screens/Success/Success.js +23 -0
- package/build/features/business/screens/Success/index.d.ts +3 -0
- package/build/features/business/screens/Success/index.js +2 -0
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +113 -0
- package/build/features/business/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/business/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/business/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/business/screens/Verify/OTPInput.js +47 -0
- package/build/features/business/screens/Verify/Verify.d.ts +5 -0
- package/build/features/business/screens/Verify/Verify.js +78 -0
- package/build/features/business/screens/Verify/index.d.ts +2 -0
- package/build/features/business/screens/Verify/index.js +2 -0
- package/build/features/business/screens/Verify/validation.d.ts +8 -0
- package/build/features/business/screens/Verify/validation.js +4 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/business/screens/VerifyPACI/index.js +2 -0
- package/build/features/connect/Connect.d.ts +8 -0
- package/build/features/connect/Connect.js +84 -0
- package/build/features/connect/index.d.ts +1 -0
- package/build/features/connect/index.js +1 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +102 -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.d.ts +8 -0
- package/build/features/connect/screens/Individual/Email.js +116 -0
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
- package/build/features/connect/screens/Individual/Individual.js +104 -0
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +10 -0
- package/build/features/connect/screens/Individual/MobileNumber.js +152 -0
- package/build/features/connect/screens/Individual/Name.d.ts +6 -0
- package/build/features/connect/screens/Individual/Name.js +48 -0
- package/build/features/connect/screens/Individual/index.d.ts +3 -0
- package/build/features/connect/screens/Individual/index.js +2 -0
- package/build/features/connect/screens/Individual/validation.d.ts +24 -0
- package/build/features/connect/screens/Individual/validation.js +41 -0
- package/build/features/connect/screens/Merchant/BrandList.d.ts +10 -0
- package/build/features/connect/screens/Merchant/BrandList.js +93 -0
- package/build/features/connect/screens/Merchant/BrandName.d.ts +8 -0
- package/build/features/connect/screens/Merchant/BrandName.js +142 -0
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
- package/build/features/connect/screens/Merchant/Merchant.js +92 -0
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +41 -0
- package/build/features/connect/screens/Merchant/TAC.d.ts +6 -0
- package/build/features/connect/screens/Merchant/TAC.js +86 -0
- package/build/features/connect/screens/Merchant/index.d.ts +3 -0
- package/build/features/connect/screens/Merchant/index.js +2 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +32 -0
- package/build/features/connect/screens/Merchant/validation.js +130 -0
- package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connect/screens/Mobile/Mobile.js +133 -0
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +12 -0
- package/build/features/connect/screens/Mobile/MobileNumber.js +154 -0
- package/build/features/connect/screens/Mobile/Title.d.ts +8 -0
- package/build/features/connect/screens/Mobile/Title.js +29 -0
- package/build/features/connect/screens/Mobile/index.d.ts +3 -0
- package/build/features/connect/screens/Mobile/index.js +2 -0
- package/build/features/connect/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connect/screens/Mobile/validation.js +28 -0
- package/build/features/connect/screens/NID/DOB.d.ts +6 -0
- package/build/features/connect/screens/NID/DOB.js +47 -0
- package/build/features/connect/screens/NID/IDNumber.d.ts +6 -0
- package/build/features/connect/screens/NID/IDNumber.js +60 -0
- package/build/features/connect/screens/NID/NID.d.ts +5 -0
- package/build/features/connect/screens/NID/NID.js +94 -0
- package/build/features/connect/screens/NID/index.d.ts +3 -0
- package/build/features/connect/screens/NID/index.js +2 -0
- package/build/features/connect/screens/NID/validation.d.ts +11 -0
- package/build/features/connect/screens/NID/validation.js +9 -0
- package/build/features/connect/screens/OTP/OTP.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTP.js +94 -0
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTPInput.js +54 -0
- package/build/features/connect/screens/OTP/index.d.ts +3 -0
- package/build/features/connect/screens/OTP/index.js +2 -0
- package/build/features/connect/screens/OTP/validation.d.ts +8 -0
- package/build/features/connect/screens/OTP/validation.js +4 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +16 -0
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
- package/build/features/connect/screens/ThankYou/index.js +2 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -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/Customers/CustomerLocations.d.ts +118 -0
- package/build/features/entity/screens/Customers/CustomerLocations.js +171 -0
- package/build/features/entity/screens/Customers/Customers.d.ts +5 -0
- package/build/features/entity/screens/Customers/Customers.js +90 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.js +98 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.js +127 -0
- package/build/features/entity/screens/Customers/RefundPolicy.d.ts +36 -0
- package/build/features/entity/screens/Customers/RefundPolicy.js +84 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.js +44 -0
- package/build/features/entity/screens/Customers/index.d.ts +3 -0
- package/build/features/entity/screens/Customers/index.js +2 -0
- package/build/features/entity/screens/Customers/validation.d.ts +20 -0
- package/build/features/entity/screens/Customers/validation.js +13 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +55 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +149 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +3 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.js +76 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +84 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +32 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +57 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +33 -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 +141 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +83 -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 +20 -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 +116 -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 +91 -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 +10 -0
- package/build/features/featuresScreens.js +254 -0
- package/build/features/individual/Individual.d.ts +7 -0
- package/build/features/individual/Individual.js +70 -0
- package/build/features/individual/index.d.ts +1 -0
- package/build/features/individual/index.js +1 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +8 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +94 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +92 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +46 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +49 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +107 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +97 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +34 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +68 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +89 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +25 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +24 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +19 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +52 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +7 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.js +28 -0
- package/build/features/individual/screens/Success/Success.d.ts +5 -0
- package/build/features/individual/screens/Success/Success.js +20 -0
- package/build/features/individual/screens/Success/index.d.ts +3 -0
- package/build/features/individual/screens/Success/index.js +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/individual/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/individual/screens/Verify/OTPInput.js +47 -0
- package/build/features/individual/screens/Verify/Verify.d.ts +5 -0
- package/build/features/individual/screens/Verify/Verify.js +91 -0
- package/build/features/individual/screens/Verify/index.d.ts +2 -0
- package/build/features/individual/screens/Verify/index.js +2 -0
- package/build/features/individual/screens/Verify/validation.d.ts +8 -0
- package/build/features/individual/screens/Verify/validation.js +4 -0
- package/build/features/password/Password.d.ts +7 -0
- package/build/features/password/Password.js +77 -0
- package/build/features/password/index.d.ts +1 -0
- package/build/features/password/index.js +1 -0
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +8 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +22 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.js +73 -0
- package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/Password.js +76 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
- package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
- package/build/features/password/screens/CreatePassword/index.js +2 -0
- package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
- package/build/features/password/screens/CreatePassword/validation.js +8 -0
- package/build/features/password/screens/OTP/OTP.d.ts +8 -0
- package/build/features/password/screens/OTP/OTP.js +91 -0
- package/build/features/password/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/password/screens/OTP/OTPInput.js +46 -0
- package/build/features/password/screens/OTP/index.d.ts +3 -0
- package/build/features/password/screens/OTP/index.js +2 -0
- package/build/features/password/screens/OTP/validation.d.ts +8 -0
- package/build/features/password/screens/OTP/validation.js +4 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/password/screens/Success/Success.d.ts +5 -0
- package/build/features/password/screens/Success/Success.js +26 -0
- package/build/features/password/screens/Success/index.d.ts +3 -0
- package/build/features/password/screens/Success/index.js +2 -0
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/password/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/password/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/password/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/password/screens/Verify/OTPInput.js +47 -0
- package/build/features/password/screens/Verify/Verify.d.ts +5 -0
- package/build/features/password/screens/Verify/Verify.js +91 -0
- package/build/features/password/screens/Verify/index.d.ts +2 -0
- package/build/features/password/screens/Verify/index.js +2 -0
- package/build/features/password/screens/Verify/validation.d.ts +8 -0
- package/build/features/password/screens/Verify/validation.js +4 -0
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +7 -0
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +65 -0
- package/build/features/shared/AcceptancePayouts/index.d.ts +2 -0
- package/build/features/shared/AcceptancePayouts/index.js +2 -0
- package/build/features/shared/Background/Background.d.ts +12 -0
- package/build/features/shared/Background/Background.js +41 -0
- package/build/features/shared/Background/LogoBackground.d.ts +3 -0
- package/build/features/shared/Background/LogoBackground.js +42 -0
- package/build/features/shared/Background/index.d.ts +2 -0
- package/build/features/shared/Background/index.js +2 -0
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +3 -0
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.js +31 -0
- package/build/features/shared/BouncingDotsLoader/index.d.ts +2 -0
- package/build/features/shared/BouncingDotsLoader/index.js +2 -0
- package/build/features/shared/Button/AbsherButton.d.ts +8 -0
- package/build/features/shared/Button/AbsherButton.js +46 -0
- package/build/features/shared/Button/Button.d.ts +12 -0
- package/build/features/shared/Button/Button.js +102 -0
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +14 -0
- package/build/features/shared/Button/EmailProvidersButtons.js +67 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +25 -0
- package/build/features/shared/Button/FlowsButtons.js +219 -0
- package/build/features/shared/Button/MobileButton.d.ts +9 -0
- package/build/features/shared/Button/MobileButton.js +44 -0
- package/build/features/shared/Button/SuccessButton.d.ts +9 -0
- package/build/features/shared/Button/SuccessButton.js +86 -0
- package/build/features/shared/Button/index.d.ts +8 -0
- package/build/features/shared/Button/index.js +8 -0
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
- package/build/features/shared/CheckIcon/index.d.ts +2 -0
- package/build/features/shared/CheckIcon/index.js +2 -0
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
- package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
- package/build/features/shared/ClearIcon/index.d.ts +2 -0
- package/build/features/shared/ClearIcon/index.js +2 -0
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
- package/build/features/shared/Containers/FeatureContainer.js +36 -0
- package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
- package/build/features/shared/Containers/ScreenContainer.js +29 -0
- package/build/features/shared/Containers/index.d.ts +3 -0
- package/build/features/shared/Containers/index.js +3 -0
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +71 -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.d.ts +2 -0
- package/build/features/shared/Footer/Footer.js +20 -0
- package/build/features/shared/Footer/index.d.ts +2 -0
- package/build/features/shared/Footer/index.js +2 -0
- package/build/features/shared/Input/Input.d.ts +26 -0
- package/build/features/shared/Input/Input.js +56 -0
- package/build/features/shared/Input/index.d.ts +2 -0
- package/build/features/shared/Input/index.js +2 -0
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -0
- package/build/features/shared/Mandatory/Mandatory.js +20 -0
- package/build/features/shared/Mandatory/index.d.ts +2 -0
- package/build/features/shared/Mandatory/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +10 -0
- package/build/features/shared/OTP/OTP.js +93 -0
- package/build/features/shared/OTP/index.d.ts +2 -0
- package/build/features/shared/OTP/index.js +2 -0
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
- package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +13 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -0
- package/build/features/shared/PaciVerification/index.d.ts +2 -0
- package/build/features/shared/PaciVerification/index.js +2 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
- package/build/features/shared/PasswordIcon/index.d.ts +2 -0
- package/build/features/shared/PasswordIcon/index.js +2 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +10 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +132 -0
- package/build/features/shared/SalesChannels/index.d.ts +2 -0
- package/build/features/shared/SalesChannels/index.js +2 -0
- package/build/features/shared/Search/Search.d.ts +7 -0
- package/build/features/shared/Search/Search.js +13 -0
- package/build/features/shared/Search/index.d.ts +2 -0
- package/build/features/shared/Search/index.js +2 -0
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +6 -0
- package/build/features/shared/SearchIcon/SearchIcon.js +26 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +12 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.js +62 -0
- package/build/features/shared/SuccessScreen/index.d.ts +2 -0
- package/build/features/shared/SuccessScreen/index.js +2 -0
- package/build/features/shared/UploadFile/UploadFile.d.ts +29 -0
- package/build/features/shared/UploadFile/UploadFile.js +91 -0
- package/build/features/shared/UploadFile/index.d.ts +2 -0
- package/build/features/shared/UploadFile/index.js +2 -0
- package/build/features/signIn/SignIn.d.ts +7 -0
- package/build/features/signIn/SignIn.js +57 -0
- package/build/features/signIn/index.d.ts +1 -0
- package/build/features/signIn/index.js +1 -0
- package/build/features/signIn/screens/Email/Email.d.ts +5 -0
- package/build/features/signIn/screens/Email/Email.js +97 -0
- package/build/features/signIn/screens/Email/EmailField.d.ts +5 -0
- package/build/features/signIn/screens/Email/EmailField.js +55 -0
- package/build/features/signIn/screens/Email/index.d.ts +3 -0
- package/build/features/signIn/screens/Email/index.js +2 -0
- package/build/features/signIn/screens/Email/validation.d.ts +8 -0
- package/build/features/signIn/screens/Email/validation.js +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.js +110 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +11 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.js +151 -0
- package/build/features/signIn/screens/Mobile/index.d.ts +3 -0
- package/build/features/signIn/screens/Mobile/index.js +2 -0
- package/build/features/signIn/screens/Mobile/validation.d.ts +8 -0
- package/build/features/signIn/screens/Mobile/validation.js +28 -0
- package/build/features/signIn/screens/OTP/OTP.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTP.js +93 -0
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTPInput.js +53 -0
- package/build/features/signIn/screens/OTP/index.d.ts +3 -0
- package/build/features/signIn/screens/OTP/index.js +2 -0
- package/build/features/signIn/screens/OTP/validation.d.ts +8 -0
- package/build/features/signIn/screens/OTP/validation.js +4 -0
- package/build/features/signIn/screens/Password/Password.d.ts +5 -0
- package/build/features/signIn/screens/Password/Password.js +67 -0
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +5 -0
- package/build/features/signIn/screens/Password/PasswordInput.js +28 -0
- package/build/features/signIn/screens/Password/index.d.ts +3 -0
- package/build/features/signIn/screens/Password/index.js +2 -0
- package/build/features/signIn/screens/Password/validation.d.ts +8 -0
- package/build/features/signIn/screens/Password/validation.js +4 -0
- package/build/features/tax/Tax.d.ts +7 -0
- package/build/features/tax/Tax.js +71 -0
- package/build/features/tax/index.d.ts +1 -0
- package/build/features/tax/index.js +1 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/tax/screens/Success/Success.d.ts +5 -0
- package/build/features/tax/screens/Success/Success.js +22 -0
- package/build/features/tax/screens/Success/index.d.ts +3 -0
- package/build/features/tax/screens/Success/index.js +2 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +66 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +63 -0
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +37 -0
- package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/validation.d.ts +11 -0
- package/build/features/tax/screens/TaxDetails/validation.js +5 -0
- package/build/features/tax/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/tax/screens/Verify/OTPInput.js +47 -0
- package/build/features/tax/screens/Verify/Verify.d.ts +5 -0
- package/build/features/tax/screens/Verify/Verify.js +91 -0
- package/build/features/tax/screens/Verify/index.d.ts +2 -0
- package/build/features/tax/screens/Verify/index.js +2 -0
- package/build/features/tax/screens/Verify/validation.d.ts +8 -0
- package/build/features/tax/screens/Verify/validation.js +4 -0
- package/build/hooks/index.d.ts +15 -0
- package/build/hooks/index.js +15 -0
- package/build/hooks/useAppConfig.d.ts +8 -0
- package/build/hooks/useAppConfig.js +61 -0
- package/build/hooks/useAppDispatch.d.ts +12 -0
- package/build/hooks/useAppDispatch.js +2 -0
- package/build/hooks/useAppSelector.d.ts +3 -0
- package/build/hooks/useAppSelector.js +2 -0
- package/build/hooks/useAppTheme.d.ts +4 -0
- package/build/hooks/useAppTheme.js +15 -0
- package/build/hooks/useContainerDimensions.d.ts +4 -0
- package/build/hooks/useContainerDimensions.js +21 -0
- package/build/hooks/useCountUp.d.ts +9 -0
- package/build/hooks/useCountUp.js +17 -0
- package/build/hooks/useErrorListener.d.ts +1 -0
- package/build/hooks/useErrorListener.js +12 -0
- package/build/hooks/useEventListener.d.ts +5 -0
- package/build/hooks/useEventListener.js +20 -0
- package/build/hooks/useLanguage.d.ts +4 -0
- package/build/hooks/useLanguage.js +8 -0
- package/build/hooks/useRedirectionListener.d.ts +4 -0
- package/build/hooks/useRedirectionListener.js +12 -0
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
- package/build/hooks/useSetFromDefaultValues.js +24 -0
- package/build/hooks/useStepStartedListener.d.ts +1 -0
- package/build/hooks/useStepStartedListener.js +10 -0
- package/build/hooks/useThemeMode.d.ts +4 -0
- package/build/hooks/useThemeMode.js +7 -0
- package/build/hooks/useWindowSize.d.ts +6 -0
- package/build/hooks/useWindowSize.js +19 -0
- package/build/i18n.d.ts +2 -0
- package/build/i18n.js +34 -0
- package/build/index.css +140 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +33 -0
- package/build/theme/components.d.ts +2 -0
- package/build/theme/components.js +19 -0
- package/build/theme/index.d.ts +1 -0
- package/build/theme/index.js +1 -0
- package/build/theme/palette.d.ts +3 -0
- package/build/theme/palette.js +68 -0
- package/build/theme/shadows.d.ts +2 -0
- package/build/theme/shadows.js +27 -0
- package/build/theme/theme.d.ts +2 -0
- package/build/theme/theme.js +43 -0
- package/build/theme/typography.d.ts +2 -0
- package/build/theme/typography.js +31 -0
- package/build/utils/array.d.ts +63 -0
- package/build/utils/array.js +140 -0
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +3 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +5 -0
- package/build/utils/device.d.ts +5 -0
- package/build/utils/device.js +26 -0
- package/build/utils/html.d.ts +5 -0
- package/build/utils/html.js +32 -0
- package/build/utils/index.d.ts +11 -0
- package/build/utils/index.js +11 -0
- package/build/utils/locale.d.ts +2 -0
- package/build/utils/locale.js +22 -0
- package/build/utils/object.d.ts +5 -0
- package/build/utils/object.js +35 -0
- package/build/utils/rsa.d.ts +2 -0
- package/build/utils/rsa.js +19 -0
- package/build/utils/storage.d.ts +5 -0
- package/build/utils/storage.js +21 -0
- package/build/utils/string.d.ts +58 -0
- package/build/utils/string.js +260 -0
- package/build/utils/style.d.ts +1 -0
- package/build/utils/style.js +1 -0
- package/build/utils/validation.d.ts +17 -0
- package/build/utils/validation.js +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,690 @@
|
|
|
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
|
+
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
|
+
};
|
|
48
|
+
var _a;
|
|
49
|
+
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
+
import API from '../../../api';
|
|
51
|
+
import { BusinessType, FlowsTypes } from '../../../@types';
|
|
52
|
+
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
|
+
import { ENTITY_STEP_NAMES } from '../../../constants';
|
|
54
|
+
import moment from 'moment';
|
|
55
|
+
import { convertNumbers2English } from '../../../utils';
|
|
56
|
+
export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
+
var payload, data, boardData, entityData, boardInfoData, countryIso2, board_id, entityId, activities, data_1, info, hasEntityCompleted;
|
|
58
|
+
var _a, _b, _c, _d;
|
|
59
|
+
return __generator(this, function (_e) {
|
|
60
|
+
switch (_e.label) {
|
|
61
|
+
case 0:
|
|
62
|
+
payload = {
|
|
63
|
+
service_name: 'tap_email',
|
|
64
|
+
verify_token: token
|
|
65
|
+
};
|
|
66
|
+
return [4, API.leadService.verifyLeadToken(payload)];
|
|
67
|
+
case 1:
|
|
68
|
+
data = (_e.sent()).data;
|
|
69
|
+
countryIso2 = undefined;
|
|
70
|
+
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 8];
|
|
71
|
+
if (data === null || data === void 0 ? void 0 : data.country_code) {
|
|
72
|
+
countryIso2 = data === null || data === void 0 ? void 0 : data.country_code;
|
|
73
|
+
if (countryIso2)
|
|
74
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
75
|
+
}
|
|
76
|
+
if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 8];
|
|
77
|
+
board_id = data === null || data === void 0 ? void 0 : data.id;
|
|
78
|
+
if (!board_id) return [3, 4];
|
|
79
|
+
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
80
|
+
case 2:
|
|
81
|
+
boardInfoData = _e.sent();
|
|
82
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
83
|
+
case 3:
|
|
84
|
+
boardData = _e.sent();
|
|
85
|
+
_e.label = 4;
|
|
86
|
+
case 4:
|
|
87
|
+
entityId = (_a = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _a === void 0 ? void 0 : _a.id;
|
|
88
|
+
if (!entityId) return [3, 7];
|
|
89
|
+
return [4, API.entityService.retrieveEntity(entityId)];
|
|
90
|
+
case 5:
|
|
91
|
+
entityData = _e.sent();
|
|
92
|
+
activities = (entityData || {}).activities;
|
|
93
|
+
if (!!activities) return [3, 7];
|
|
94
|
+
return [4, API.dataService.getActivities()];
|
|
95
|
+
case 6:
|
|
96
|
+
data_1 = _e.sent();
|
|
97
|
+
entityData = __assign(__assign({}, entityData), { entity_activities: data_1.list });
|
|
98
|
+
_e.label = 7;
|
|
99
|
+
case 7:
|
|
100
|
+
if (!countryIso2) {
|
|
101
|
+
countryIso2 = entityData.country;
|
|
102
|
+
if (countryIso2)
|
|
103
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
104
|
+
}
|
|
105
|
+
info = (boardInfoData || {}).info;
|
|
106
|
+
hasEntityCompleted = ((_b = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'entity'; })) === null || _b === void 0 ? void 0 : _b.status) === 'completed';
|
|
107
|
+
if (hasEntityCompleted) {
|
|
108
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_INFO_STEP'));
|
|
112
|
+
}
|
|
113
|
+
_e.label = 8;
|
|
114
|
+
case 8: return [2, {
|
|
115
|
+
data: data,
|
|
116
|
+
boardResponse: {
|
|
117
|
+
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
118
|
+
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
119
|
+
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
120
|
+
entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
|
|
121
|
+
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
122
|
+
name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
|
|
123
|
+
contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
|
|
124
|
+
flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info,
|
|
125
|
+
entity_activities: entityData === null || entityData === void 0 ? void 0 : entityData.entity_activities
|
|
126
|
+
},
|
|
127
|
+
token: token
|
|
128
|
+
}];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}); });
|
|
132
|
+
export var resendOTP = createAsyncThunk('entityResendOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
+
var entity, payload, data;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0:
|
|
137
|
+
entity = thunkApi.getState().entity;
|
|
138
|
+
payload = {
|
|
139
|
+
service_name: 'tap_email',
|
|
140
|
+
verify_token: entity.data.verify.token
|
|
141
|
+
};
|
|
142
|
+
return [4, API.leadService.verifyLeadToken(payload)];
|
|
143
|
+
case 1:
|
|
144
|
+
data = (_a.sent()).data;
|
|
145
|
+
return [2, { data: data }];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}); });
|
|
149
|
+
export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var _a, entity, settings, responseBody, payload, data, boardData, entityData, boardInfoData, board_id, entityId, activities, data_2, info, hasEntityCompleted;
|
|
151
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
152
|
+
return __generator(this, function (_j) {
|
|
153
|
+
switch (_j.label) {
|
|
154
|
+
case 0:
|
|
155
|
+
_a = thunkApi.getState(), entity = _a.entity, settings = _a.settings;
|
|
156
|
+
responseBody = entity.data.verify.responseBody;
|
|
157
|
+
payload = {
|
|
158
|
+
data: params.otp,
|
|
159
|
+
service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
|
|
160
|
+
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
161
|
+
step_name: ENTITY_STEP_NAMES.PHONE_AUTH,
|
|
162
|
+
encryption_contract: ['data']
|
|
163
|
+
};
|
|
164
|
+
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
165
|
+
case 1:
|
|
166
|
+
data = (_j.sent()).data;
|
|
167
|
+
boardInfoData = undefined;
|
|
168
|
+
if (!!data.errors) return [3, 8];
|
|
169
|
+
board_id = responseBody === null || responseBody === void 0 ? void 0 : responseBody.id;
|
|
170
|
+
if (!board_id) return [3, 4];
|
|
171
|
+
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
172
|
+
case 2:
|
|
173
|
+
boardInfoData = _j.sent();
|
|
174
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
175
|
+
case 3:
|
|
176
|
+
boardData = _j.sent();
|
|
177
|
+
_j.label = 4;
|
|
178
|
+
case 4:
|
|
179
|
+
entityId = (_c = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _c === void 0 ? void 0 : _c.id;
|
|
180
|
+
if (!entityId) return [3, 7];
|
|
181
|
+
return [4, API.entityService.retrieveEntity(entityId)];
|
|
182
|
+
case 5:
|
|
183
|
+
entityData = _j.sent();
|
|
184
|
+
activities = (entityData || {}).activities;
|
|
185
|
+
if (!!activities) return [3, 7];
|
|
186
|
+
return [4, API.dataService.getActivities()];
|
|
187
|
+
case 6:
|
|
188
|
+
data_2 = _j.sent();
|
|
189
|
+
entityData = __assign(__assign({}, entityData), { entity_activities: data_2.list });
|
|
190
|
+
_j.label = 7;
|
|
191
|
+
case 7:
|
|
192
|
+
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, { otp: params.otp });
|
|
193
|
+
info = (boardInfoData || {}).info;
|
|
194
|
+
hasEntityCompleted = ((_f = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'entity'; })) === null || _f === void 0 ? void 0 : _f.status) === 'completed';
|
|
195
|
+
if (hasEntityCompleted) {
|
|
196
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_INFO_STEP'));
|
|
200
|
+
}
|
|
201
|
+
_j.label = 8;
|
|
202
|
+
case 8: return [2, {
|
|
203
|
+
data: data,
|
|
204
|
+
boardResponse: {
|
|
205
|
+
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
206
|
+
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
207
|
+
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
208
|
+
entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
|
|
209
|
+
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
210
|
+
name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
|
|
211
|
+
contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
|
|
212
|
+
flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info,
|
|
213
|
+
entity_activities: entityData === null || entityData === void 0 ? void 0 : entityData.entity_activities
|
|
214
|
+
},
|
|
215
|
+
formData: params
|
|
216
|
+
}];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}); });
|
|
220
|
+
export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', function (boardId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
221
|
+
var data;
|
|
222
|
+
var _a, _b;
|
|
223
|
+
return __generator(this, function (_c) {
|
|
224
|
+
switch (_c.label) {
|
|
225
|
+
case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
|
|
226
|
+
case 1:
|
|
227
|
+
data = _c.sent();
|
|
228
|
+
return [2, {
|
|
229
|
+
data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact })
|
|
230
|
+
}];
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}); });
|
|
234
|
+
export var updateEntity = createAsyncThunk('entityUpdateEntity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
235
|
+
var _a, settings, entity, id, brandId, articleId, requestBody, brandData, payload, data;
|
|
236
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
237
|
+
return __generator(this, function (_j) {
|
|
238
|
+
switch (_j.label) {
|
|
239
|
+
case 0:
|
|
240
|
+
_a = thunkApi.getState(), settings = _a.settings, entity = _a.entity;
|
|
241
|
+
id = (_c = (_b = entity.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.entity) === null || _c === void 0 ? void 0 : _c.id;
|
|
242
|
+
brandId = (_e = (_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.brand) === null || _e === void 0 ? void 0 : _e.id;
|
|
243
|
+
articleId = entity.data.entityData.articleId;
|
|
244
|
+
requestBody = {
|
|
245
|
+
id: brandId,
|
|
246
|
+
activities: (_f = (params.activities || [])) === null || _f === void 0 ? void 0 : _f.map(function (_a) {
|
|
247
|
+
var id = _a.id;
|
|
248
|
+
return ({ id: id });
|
|
249
|
+
}),
|
|
250
|
+
operations: {
|
|
251
|
+
start_date: params.operationStartDate
|
|
252
|
+
},
|
|
253
|
+
encryption_contract: ['operations.start_date']
|
|
254
|
+
};
|
|
255
|
+
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
256
|
+
case 1:
|
|
257
|
+
brandData = (_j.sent()).data;
|
|
258
|
+
payload = {
|
|
259
|
+
id: id,
|
|
260
|
+
license: {
|
|
261
|
+
number: params.licenseNumber && params.licenseNumber,
|
|
262
|
+
type: params.licenseType
|
|
263
|
+
},
|
|
264
|
+
legal_name: {
|
|
265
|
+
ar: params.licenseName,
|
|
266
|
+
en: params.licenseName
|
|
267
|
+
},
|
|
268
|
+
AOA_file_id: articleId,
|
|
269
|
+
encryption_contract: ['license.number', 'legal_name.ar', 'legal_name.en', 'license.type']
|
|
270
|
+
};
|
|
271
|
+
return [4, API.entityService.updateEntity(payload)];
|
|
272
|
+
case 2:
|
|
273
|
+
data = _j.sent();
|
|
274
|
+
thunkApi.dispatch(retrieveDataList());
|
|
275
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
276
|
+
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, id);
|
|
277
|
+
return [2, { data: __assign(__assign({}, data), brandData), formData: params }];
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}); });
|
|
281
|
+
export var uploadArticle = createAsyncThunk('entityUploadArticle', function (_a) {
|
|
282
|
+
var file = _a.file, onProgress = _a.onProgress;
|
|
283
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
284
|
+
var typeArray, type, uploadPayload, onUploadProgress, data;
|
|
285
|
+
var _b;
|
|
286
|
+
return __generator(this, function (_c) {
|
|
287
|
+
switch (_c.label) {
|
|
288
|
+
case 0:
|
|
289
|
+
typeArray = ((_b = file === null || file === void 0 ? void 0 : file.type) === null || _b === void 0 ? void 0 : _b.split('/')) || [];
|
|
290
|
+
type = typeArray[1] || '';
|
|
291
|
+
uploadPayload = {
|
|
292
|
+
file_link_create: true,
|
|
293
|
+
title: file === null || file === void 0 ? void 0 : file.name,
|
|
294
|
+
purpose: 'article_of_association',
|
|
295
|
+
type: type,
|
|
296
|
+
file: file
|
|
297
|
+
};
|
|
298
|
+
onUploadProgress = function (progressEvent) {
|
|
299
|
+
var progress = ((progressEvent === null || progressEvent === void 0 ? void 0 : progressEvent.loaded) / (progressEvent === null || progressEvent === void 0 ? void 0 : progressEvent.total)) * 100;
|
|
300
|
+
onProgress === null || onProgress === void 0 ? void 0 : onProgress(Math.floor(progress));
|
|
301
|
+
};
|
|
302
|
+
return [4, API.entityService.uploadFileInfo(uploadPayload, { onUploadProgress: onUploadProgress })];
|
|
303
|
+
case 1:
|
|
304
|
+
data = _c.sent();
|
|
305
|
+
return [2, { data: data }];
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
export var updateCustomersInfo = createAsyncThunk('entityUpdateCustomersInfo', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
311
|
+
var _a, settings, entity, id, customerLocation, customerBase, sales, requestBody, data;
|
|
312
|
+
var _b, _c, _d, _e, _f, _g;
|
|
313
|
+
return __generator(this, function (_h) {
|
|
314
|
+
switch (_h.label) {
|
|
315
|
+
case 0:
|
|
316
|
+
_a = thunkApi.getState(), settings = _a.settings, entity = _a.entity;
|
|
317
|
+
id = (_c = (_b = entity.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.brand) === null || _c === void 0 ? void 0 : _c.id;
|
|
318
|
+
customerLocation = params.customerLocations.map(function (location) { return ({
|
|
319
|
+
id: location === null || location === void 0 ? void 0 : location.id
|
|
320
|
+
}); });
|
|
321
|
+
customerBase = { id: ((_d = params.expectedCustomer) === null || _d === void 0 ? void 0 : _d.id) || '', period: 'monthly', locations: customerLocation };
|
|
322
|
+
sales = { id: ((_e = params.expectedSale) === null || _e === void 0 ? void 0 : _e.id) || '', period: 'monthly' };
|
|
323
|
+
requestBody = {
|
|
324
|
+
operations: {
|
|
325
|
+
customer_base: customerBase,
|
|
326
|
+
sales: sales,
|
|
327
|
+
start_date: entity.data.entityData.operationStartDate
|
|
328
|
+
},
|
|
329
|
+
term: ['refund', 'chargeback'],
|
|
330
|
+
id: id,
|
|
331
|
+
encryption_contract: []
|
|
332
|
+
};
|
|
333
|
+
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
334
|
+
case 1:
|
|
335
|
+
data = _h.sent();
|
|
336
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
337
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, requestBody);
|
|
338
|
+
return [2, { data: data === null || data === void 0 ? void 0 : data.brand, formData: params }];
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
}); });
|
|
342
|
+
export var retrieveDataList = createAsyncThunk('entityRetrieveDataList', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
|
+
var settings, dataBody, salesDataBody, _a, customerBases, expectedSales, expectedCustomerSales;
|
|
344
|
+
return __generator(this, function (_b) {
|
|
345
|
+
switch (_b.label) {
|
|
346
|
+
case 0:
|
|
347
|
+
settings = thunkApi.getState().settings;
|
|
348
|
+
dataBody = {
|
|
349
|
+
page: 0
|
|
350
|
+
};
|
|
351
|
+
salesDataBody = {
|
|
352
|
+
page: 0,
|
|
353
|
+
country_code: [settings.data.businessCountry.iso2]
|
|
354
|
+
};
|
|
355
|
+
return [4, Promise.all([
|
|
356
|
+
API.dataService.getCustomerBases(dataBody),
|
|
357
|
+
API.dataService.getExpectedSales(salesDataBody),
|
|
358
|
+
API.dataService.getExpectedCustomerSales(dataBody)
|
|
359
|
+
])];
|
|
360
|
+
case 1:
|
|
361
|
+
_a = _b.sent(), customerBases = _a[0], expectedSales = _a[1], expectedCustomerSales = _a[2];
|
|
362
|
+
return [2, {
|
|
363
|
+
customerBases: customerBases,
|
|
364
|
+
expectedSales: expectedSales,
|
|
365
|
+
expectedCustomerSales: expectedCustomerSales
|
|
366
|
+
}];
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}); });
|
|
370
|
+
export var updateBoardSuccess = createAsyncThunk('updateBoardEntitySuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
|
+
var _a, settings, entity, _b, id, infoId, payload, data, boardInfoData;
|
|
372
|
+
var _c, _d, _e, _f;
|
|
373
|
+
return __generator(this, function (_g) {
|
|
374
|
+
switch (_g.label) {
|
|
375
|
+
case 0:
|
|
376
|
+
_a = thunkApi.getState(), settings = _a.settings, entity = _a.entity;
|
|
377
|
+
_b = entity.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id;
|
|
378
|
+
if (!id)
|
|
379
|
+
return [2];
|
|
380
|
+
payload = {
|
|
381
|
+
lang: settings.data.language,
|
|
382
|
+
step_name: ENTITY_STEP_NAMES.ENTITY_SUCCESS,
|
|
383
|
+
id: id
|
|
384
|
+
};
|
|
385
|
+
return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
|
|
386
|
+
case 1:
|
|
387
|
+
data = _g.sent();
|
|
388
|
+
return [4, API.boardService.retrieveBoardInfoStatus(id)];
|
|
389
|
+
case 2:
|
|
390
|
+
boardInfoData = _g.sent();
|
|
391
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
392
|
+
case 3:
|
|
393
|
+
_g.sent();
|
|
394
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
395
|
+
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
396
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
397
|
+
return [2, { response: __assign(__assign({}, data), { flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info }), formData: params }];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
}); });
|
|
401
|
+
var initialState = {
|
|
402
|
+
error: null,
|
|
403
|
+
loading: false,
|
|
404
|
+
customLoading: false,
|
|
405
|
+
uploading: false,
|
|
406
|
+
data: {
|
|
407
|
+
flowName: FlowsTypes.ENTITY,
|
|
408
|
+
verify: {
|
|
409
|
+
token: ''
|
|
410
|
+
},
|
|
411
|
+
otpData: {
|
|
412
|
+
otp: ''
|
|
413
|
+
},
|
|
414
|
+
entityData: {
|
|
415
|
+
licenseName: '',
|
|
416
|
+
licenseNumber: '',
|
|
417
|
+
licenseType: BusinessType.CR,
|
|
418
|
+
activities: [],
|
|
419
|
+
operationStartDate: moment(new Date()).format('YYYY-MM-DD'),
|
|
420
|
+
uploading: false
|
|
421
|
+
},
|
|
422
|
+
customersData: {
|
|
423
|
+
customerLocations: [],
|
|
424
|
+
expectedCustomer: undefined,
|
|
425
|
+
expectedSale: undefined,
|
|
426
|
+
refundPolicy: false,
|
|
427
|
+
transactionPolicy: false
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
export var entitySlice = createSlice({
|
|
432
|
+
name: 'entity/store',
|
|
433
|
+
initialState: initialState,
|
|
434
|
+
reducers: {
|
|
435
|
+
clearError: function (state) {
|
|
436
|
+
state.error = null;
|
|
437
|
+
},
|
|
438
|
+
stopLoader: function (state) {
|
|
439
|
+
state.loading = false;
|
|
440
|
+
},
|
|
441
|
+
resetOTPScreen: function (state) {
|
|
442
|
+
state.data.otpData.otp = '';
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
extraReducers: function (builder) {
|
|
446
|
+
builder
|
|
447
|
+
.addCase(verifyLeadToken.pending, function (state) {
|
|
448
|
+
state.error = null;
|
|
449
|
+
state.customLoading = true;
|
|
450
|
+
})
|
|
451
|
+
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
452
|
+
var _a, _b, _c, _d, _e;
|
|
453
|
+
state.error = null;
|
|
454
|
+
state.customLoading = false;
|
|
455
|
+
var _f = action.payload, data = _f.data, token = _f.token, boardResponse = _f.boardResponse;
|
|
456
|
+
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
457
|
+
if (description) {
|
|
458
|
+
state.error = description;
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id });
|
|
462
|
+
state.data.verify.token = token;
|
|
463
|
+
var _g = boardResponse || {}, brand = _g.brand, entity = _g.entity, entity_activities = _g.entity_activities;
|
|
464
|
+
var licenseNumber = (_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.number;
|
|
465
|
+
var licenseType = (_c = entity === null || entity === void 0 ? void 0 : entity.type) === null || _c === void 0 ? void 0 : _c.toLowerCase();
|
|
466
|
+
var entityDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.issuing_date;
|
|
467
|
+
var startDate = (_e = brand === null || brand === void 0 ? void 0 : brand.operations) === null || _e === void 0 ? void 0 : _e.start_date;
|
|
468
|
+
var issuingDate = undefined;
|
|
469
|
+
if (entityDate) {
|
|
470
|
+
var date = new Date(entityDate);
|
|
471
|
+
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
472
|
+
issuingDate = convertNumbers2English(formattedDate);
|
|
473
|
+
}
|
|
474
|
+
if (licenseNumber)
|
|
475
|
+
state.data.entityData.licenseNumber = licenseNumber;
|
|
476
|
+
if (licenseType)
|
|
477
|
+
state.data.entityData.licenseType = licenseType;
|
|
478
|
+
var activities = (entity === null || entity === void 0 ? void 0 : entity.activities) || entity_activities || [];
|
|
479
|
+
var selectedActivity = activities === null || activities === void 0 ? void 0 : activities.filter(function (activity) {
|
|
480
|
+
var _a;
|
|
481
|
+
return (_a = brand === null || brand === void 0 ? void 0 : brand.activities) === null || _a === void 0 ? void 0 : _a.find(function (value) { return value.id === activity.id; });
|
|
482
|
+
});
|
|
483
|
+
state.data.entityData.activities = (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : [];
|
|
484
|
+
state.data.entityData.responseBody = __assign(__assign({}, state.data.entityData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id, activities: activities, operationStartDate: startDate || issuingDate, selectedActivities: (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : [] });
|
|
485
|
+
})
|
|
486
|
+
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
487
|
+
state.error = action.error.message;
|
|
488
|
+
state.customLoading = false;
|
|
489
|
+
})
|
|
490
|
+
.addCase(resendOTP.pending, function (state) {
|
|
491
|
+
state.error = null;
|
|
492
|
+
})
|
|
493
|
+
.addCase(resendOTP.fulfilled, function (state, action) {
|
|
494
|
+
var _a;
|
|
495
|
+
state.error = null;
|
|
496
|
+
var data = action.payload.data;
|
|
497
|
+
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
498
|
+
if (description) {
|
|
499
|
+
state.error = description;
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
503
|
+
})
|
|
504
|
+
.addCase(resendOTP.rejected, function (state, action) {
|
|
505
|
+
state.error = action.error.message;
|
|
506
|
+
})
|
|
507
|
+
.addCase(verifyEntityLeadOTP.pending, function (state) {
|
|
508
|
+
state.loading = true;
|
|
509
|
+
state.error = null;
|
|
510
|
+
})
|
|
511
|
+
.addCase(verifyEntityLeadOTP.fulfilled, function (state, action) {
|
|
512
|
+
var _a, _b, _c, _d, _e;
|
|
513
|
+
state.loading = false;
|
|
514
|
+
state.error = null;
|
|
515
|
+
var _f = action.payload, data = _f.data, boardResponse = _f.boardResponse, formData = _f.formData;
|
|
516
|
+
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
517
|
+
if (description) {
|
|
518
|
+
state.error = description;
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
state.data.otpData = formData;
|
|
522
|
+
state.data.otpData.responseBody = data;
|
|
523
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), boardResponse);
|
|
524
|
+
var _g = boardResponse || {}, brand = _g.brand, entity = _g.entity, entity_activities = _g.entity_activities;
|
|
525
|
+
var licenseNumber = (_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.number;
|
|
526
|
+
var licenseType = (_c = entity === null || entity === void 0 ? void 0 : entity.type) === null || _c === void 0 ? void 0 : _c.toLowerCase();
|
|
527
|
+
var entityDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.issuing_date;
|
|
528
|
+
var startDate = (_e = brand === null || brand === void 0 ? void 0 : brand.operations) === null || _e === void 0 ? void 0 : _e.start_date;
|
|
529
|
+
var issuingDate = undefined;
|
|
530
|
+
if (entityDate) {
|
|
531
|
+
var date = new Date(entityDate);
|
|
532
|
+
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
533
|
+
issuingDate = convertNumbers2English(formattedDate);
|
|
534
|
+
}
|
|
535
|
+
if (licenseNumber)
|
|
536
|
+
state.data.entityData.licenseNumber = licenseNumber;
|
|
537
|
+
if (licenseType)
|
|
538
|
+
state.data.entityData.licenseType = licenseType;
|
|
539
|
+
var activities = (entity === null || entity === void 0 ? void 0 : entity.activities) || entity_activities || [];
|
|
540
|
+
var selectedActivity = activities === null || activities === void 0 ? void 0 : activities.filter(function (activity) {
|
|
541
|
+
var _a;
|
|
542
|
+
return (_a = brand === null || brand === void 0 ? void 0 : brand.activities) === null || _a === void 0 ? void 0 : _a.find(function (value) { return value.id === activity.id; });
|
|
543
|
+
});
|
|
544
|
+
state.data.entityData.responseBody = __assign(__assign({}, state.data.entityData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id, activities: activities, selectedActivities: (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : [], operationStartDate: startDate || issuingDate });
|
|
545
|
+
})
|
|
546
|
+
.addCase(verifyEntityLeadOTP.rejected, function (state, action) {
|
|
547
|
+
state.loading = false;
|
|
548
|
+
state.error = action.error.message;
|
|
549
|
+
})
|
|
550
|
+
.addCase(updateEntity.pending, function (state) {
|
|
551
|
+
state.loading = true;
|
|
552
|
+
state.error = null;
|
|
553
|
+
})
|
|
554
|
+
.addCase(updateEntity.fulfilled, function (state, action) {
|
|
555
|
+
var _a;
|
|
556
|
+
state.loading = false;
|
|
557
|
+
state.error = null;
|
|
558
|
+
var _b = action.payload, data = _b.data, formData = _b.formData;
|
|
559
|
+
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
560
|
+
if (description) {
|
|
561
|
+
state.error = description;
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
state.data.entityData = formData;
|
|
565
|
+
state.data.entityData.responseBody = __assign(__assign({}, state.data.entityData.responseBody), { data: data });
|
|
566
|
+
})
|
|
567
|
+
.addCase(updateEntity.rejected, function (state, action) {
|
|
568
|
+
state.loading = false;
|
|
569
|
+
state.error = action.error.message;
|
|
570
|
+
})
|
|
571
|
+
.addCase(retrieveBoardDetails.pending, function (state) {
|
|
572
|
+
state.error = null;
|
|
573
|
+
state.loading = true;
|
|
574
|
+
})
|
|
575
|
+
.addCase(retrieveBoardDetails.fulfilled, function (state, action) {
|
|
576
|
+
state.error = null;
|
|
577
|
+
state.loading = false;
|
|
578
|
+
var data = (action.payload || {}).data;
|
|
579
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
580
|
+
})
|
|
581
|
+
.addCase(retrieveBoardDetails.rejected, function (state, action) {
|
|
582
|
+
state.error = action.error.message;
|
|
583
|
+
state.loading = false;
|
|
584
|
+
})
|
|
585
|
+
.addCase(retrieveDataList.pending, function (state) {
|
|
586
|
+
state.loading = true;
|
|
587
|
+
state.error = null;
|
|
588
|
+
})
|
|
589
|
+
.addCase(retrieveDataList.fulfilled, function (state, action) {
|
|
590
|
+
var _a, _b, _c, _d, _e, _f;
|
|
591
|
+
state.loading = false;
|
|
592
|
+
state.error = null;
|
|
593
|
+
var payload = action.payload;
|
|
594
|
+
state.data.customersData.responseBody = payload;
|
|
595
|
+
var brand = (state.data.verify.responseBody || {}).brand;
|
|
596
|
+
var _g = (brand === null || brand === void 0 ? void 0 : brand.operations) || {}, customer_base = _g.customer_base, sales = _g.sales;
|
|
597
|
+
var customerBases = ((_a = payload.customerBases) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
598
|
+
var customerBase = undefined;
|
|
599
|
+
if ((customerBases === null || customerBases === void 0 ? void 0 : customerBases.length) > 1)
|
|
600
|
+
customerBase = [customerBases === null || customerBases === void 0 ? void 0 : customerBases[1], customerBases[0]];
|
|
601
|
+
else if ((customerBases === null || customerBases === void 0 ? void 0 : customerBases.length) === 1)
|
|
602
|
+
customerBase = [customerBases[0]];
|
|
603
|
+
if (((_b = customer_base === null || customer_base === void 0 ? void 0 : customer_base.locations) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
604
|
+
customerBase = customerBases === null || customerBases === void 0 ? void 0 : customerBases.filter(function (base) {
|
|
605
|
+
var _a;
|
|
606
|
+
return (_a = customer_base === null || customer_base === void 0 ? void 0 : customer_base.locations) === null || _a === void 0 ? void 0 : _a.find(function (value) { return value.id === base.id; });
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
var expectedSales = ((_c = payload.expectedSales) === null || _c === void 0 ? void 0 : _c.list) || [];
|
|
610
|
+
var expectedSale = (_e = (_d = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales[0]) === null || _d === void 0 ? void 0 : _d.sub) === null || _e === void 0 ? void 0 : _e[4];
|
|
611
|
+
if ((sales === null || sales === void 0 ? void 0 : sales.length) > 0) {
|
|
612
|
+
expectedSale = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.find(function (sale) {
|
|
613
|
+
var _a;
|
|
614
|
+
return (_a = sales === null || sales === void 0 ? void 0 : sales.sub) === null || _a === void 0 ? void 0 : _a.find(function (s) { return s.id === sale.id; });
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
var expectedCustomerSales = ((_f = payload.expectedCustomerSales) === null || _f === void 0 ? void 0 : _f.list) || [];
|
|
618
|
+
var expectedCustomerSale = expectedCustomerSales === null || expectedCustomerSales === void 0 ? void 0 : expectedCustomerSales[3];
|
|
619
|
+
if ((customer_base === null || customer_base === void 0 ? void 0 : customer_base.length) > 0) {
|
|
620
|
+
expectedCustomerSale = expectedCustomerSales === null || expectedCustomerSales === void 0 ? void 0 : expectedCustomerSales.find(function (base) {
|
|
621
|
+
return customer_base.id === base.id;
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { customerBases: customerBases, expectedSales: expectedSales, expectedCustomerSales: expectedCustomerSales });
|
|
625
|
+
if (!!customerBase)
|
|
626
|
+
state.data.customersData.customerLocations = customerBase;
|
|
627
|
+
if (!!expectedSale)
|
|
628
|
+
state.data.customersData.expectedSale = expectedSale;
|
|
629
|
+
if (!!expectedCustomerSale)
|
|
630
|
+
state.data.customersData.expectedCustomer = expectedCustomerSale;
|
|
631
|
+
})
|
|
632
|
+
.addCase(retrieveDataList.rejected, function (state, action) {
|
|
633
|
+
state.loading = false;
|
|
634
|
+
state.error = action.error.message;
|
|
635
|
+
})
|
|
636
|
+
.addCase(updateCustomersInfo.pending, function (state) {
|
|
637
|
+
state.loading = true;
|
|
638
|
+
state.error = null;
|
|
639
|
+
})
|
|
640
|
+
.addCase(updateCustomersInfo.fulfilled, function (state, action) {
|
|
641
|
+
state.loading = false;
|
|
642
|
+
state.error = null;
|
|
643
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
644
|
+
state.data.customersData = formData;
|
|
645
|
+
state.data.customersData.responseBody = data;
|
|
646
|
+
})
|
|
647
|
+
.addCase(updateCustomersInfo.rejected, function (state, action) {
|
|
648
|
+
state.loading = false;
|
|
649
|
+
state.error = action.error.message;
|
|
650
|
+
})
|
|
651
|
+
.addCase(updateBoardSuccess.fulfilled, function (state, action) {
|
|
652
|
+
var _a;
|
|
653
|
+
state.loading = false;
|
|
654
|
+
state.error = null;
|
|
655
|
+
var response = (action.payload || {}).response;
|
|
656
|
+
var description = (((_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
657
|
+
if (description) {
|
|
658
|
+
state.error = description;
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
var flows = response.flows;
|
|
662
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
663
|
+
})
|
|
664
|
+
.addCase(updateBoardSuccess.pending, function (state) {
|
|
665
|
+
state.loading = true;
|
|
666
|
+
state.error = null;
|
|
667
|
+
})
|
|
668
|
+
.addCase(updateBoardSuccess.rejected, function (state, action) {
|
|
669
|
+
state.loading = false;
|
|
670
|
+
state.error = action.error.message;
|
|
671
|
+
})
|
|
672
|
+
.addCase(uploadArticle.pending, function (state) {
|
|
673
|
+
state.error = null;
|
|
674
|
+
state.uploading = true;
|
|
675
|
+
})
|
|
676
|
+
.addCase(uploadArticle.fulfilled, function (state, action) {
|
|
677
|
+
state.error = null;
|
|
678
|
+
state.uploading = false;
|
|
679
|
+
var data = action.payload.data;
|
|
680
|
+
state.data.entityData.articleId = data === null || data === void 0 ? void 0 : data.id;
|
|
681
|
+
})
|
|
682
|
+
.addCase(uploadArticle.rejected, function (state) {
|
|
683
|
+
state.uploading = false;
|
|
684
|
+
state.error = 'file_upload_error';
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
export var clearError = (_a = entitySlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen;
|
|
689
|
+
export default entitySlice.reducer;
|
|
690
|
+
export var entitySelector = function (state) { return state.entity; };
|