@tap-payments/auth-jsconnect 2.11.14-development → 2.11.15-development
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/package.json +1 -1
- package/build/@types/app.d.ts +0 -796
- package/build/@types/app.js +0 -113
- package/build/@types/config.d.ts +0 -49
- package/build/@types/config.js +0 -1
- package/build/@types/form.d.ts +0 -171
- package/build/@types/form.js +0 -1
- package/build/@types/index.d.ts +0 -7
- package/build/@types/index.js +0 -7
- package/build/@types/redux.d.ts +0 -19
- package/build/@types/redux.js +0 -1
- package/build/@types/terminal.d.ts +0 -104
- package/build/@types/terminal.js +0 -1
- package/build/@types/theme.d.ts +0 -18
- package/build/@types/theme.js +0 -20
- package/build/@types/user.d.ts +0 -177
- package/build/@types/user.js +0 -1
- package/build/api/account.d.ts +0 -26
- package/build/api/account.js +0 -42
- package/build/api/auth.d.ts +0 -150
- package/build/api/auth.js +0 -93
- package/build/api/availabilityServices.d.ts +0 -21
- package/build/api/availabilityServices.js +0 -17
- package/build/api/axios.d.ts +0 -7
- package/build/api/axios.js +0 -110
- package/build/api/board.d.ts +0 -43
- package/build/api/board.js +0 -72
- package/build/api/brand.d.ts +0 -16
- package/build/api/brand.js +0 -66
- package/build/api/country.d.ts +0 -11
- package/build/api/country.js +0 -29
- package/build/api/data.d.ts +0 -44
- package/build/api/data.js +0 -84
- package/build/api/document.d.ts +0 -25
- package/build/api/document.js +0 -38
- package/build/api/entity.d.ts +0 -164
- package/build/api/entity.js +0 -160
- package/build/api/file.d.ts +0 -14
- package/build/api/file.js +0 -37
- package/build/api/firebase.d.ts +0 -4
- package/build/api/firebase.js +0 -74
- package/build/api/index.d.ts +0 -176
- package/build/api/index.js +0 -41
- package/build/api/individual.d.ts +0 -163
- package/build/api/individual.js +0 -55
- package/build/api/init.d.ts +0 -17
- package/build/api/init.js +0 -13
- package/build/api/lead.d.ts +0 -134
- package/build/api/lead.js +0 -138
- package/build/api/location.d.ts +0 -5
- package/build/api/location.js +0 -19
- package/build/api/operator.d.ts +0 -22
- package/build/api/operator.js +0 -73
- package/build/api/terminal.d.ts +0 -25
- package/build/api/terminal.js +0 -55
- package/build/api/user.d.ts +0 -21
- package/build/api/user.js +0 -28
- package/build/app/rootReducer.d.ts +0 -18
- package/build/app/rootReducer.js +0 -33
- package/build/app/settings.d.ts +0 -61
- package/build/app/settings.js +0 -399
- package/build/app/store.d.ts +0 -37
- package/build/app/store.js +0 -11
- package/build/assets/currencies/AEDSymbol.d.ts +0 -7
- package/build/assets/currencies/AEDSymbol.js +0 -28
- package/build/assets/currencies/SARSymbol.d.ts +0 -7
- package/build/assets/currencies/SARSymbol.js +0 -28
- package/build/assets/currencies/index.d.ts +0 -2
- package/build/assets/currencies/index.js +0 -2
- package/build/assets/currencies/utils.d.ts +0 -4
- package/build/assets/currencies/utils.js +0 -6
- package/build/assets/locales/ar.json +0 -683
- package/build/assets/locales/en.json +0 -710
- package/build/components/AnimationFlow/AnimationFlow.d.ts +0 -30
- package/build/components/AnimationFlow/AnimationFlow.js +0 -45
- package/build/components/AnimationFlow/BottomSheet.d.ts +0 -19
- package/build/components/AnimationFlow/BottomSheet.js +0 -139
- package/build/components/AnimationFlow/Dialog.d.ts +0 -26
- package/build/components/AnimationFlow/Dialog.js +0 -132
- package/build/components/AnimationFlow/Error.d.ts +0 -6
- package/build/components/AnimationFlow/Error.js +0 -32
- package/build/components/AnimationFlow/Loader.d.ts +0 -7
- package/build/components/AnimationFlow/Loader.js +0 -36
- package/build/components/AnimationFlow/index.d.ts +0 -2
- package/build/components/AnimationFlow/index.js +0 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +0 -16
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +0 -116
- package/build/components/ArabicDatePicker/arabicAr.d.ts +0 -8
- package/build/components/ArabicDatePicker/arabicAr.js +0 -32
- package/build/components/ArabicDatePicker/arabicEn.d.ts +0 -8
- package/build/components/ArabicDatePicker/arabicEn.js +0 -32
- package/build/components/ArabicDatePicker/index.d.ts +0 -2
- package/build/components/ArabicDatePicker/index.js +0 -2
- package/build/components/ArabicDatePicker/style.css +0 -93
- package/build/components/Button/Button.d.ts +0 -14
- package/build/components/Button/Button.js +0 -97
- package/build/components/Button/index.d.ts +0 -4
- package/build/components/Button/index.js +0 -2
- package/build/components/CheckBox/CheckBox.d.ts +0 -5
- package/build/components/CheckBox/CheckBox.js +0 -39
- package/build/components/CheckBox/index.d.ts +0 -4
- package/build/components/CheckBox/index.js +0 -2
- package/build/components/Collapse/Collapse.d.ts +0 -5
- package/build/components/Collapse/Collapse.js +0 -28
- package/build/components/Collapse/index.d.ts +0 -3
- package/build/components/Collapse/index.js +0 -2
- package/build/components/DatePicker/DatePicker.d.ts +0 -17
- package/build/components/DatePicker/DatePicker.js +0 -111
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/components/DatePicker/index.d.ts +0 -3
- package/build/components/DatePicker/index.js +0 -2
- package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
- package/build/components/DeviceCard/DeviceCard.js +0 -102
- package/build/components/DeviceCard/index.d.ts +0 -3
- package/build/components/DeviceCard/index.js +0 -2
- package/build/components/ExpandIcon/ExpandIcon.d.ts +0 -9
- package/build/components/ExpandIcon/ExpandIcon.js +0 -24
- package/build/components/ExpandIcon/index.d.ts +0 -2
- package/build/components/ExpandIcon/index.js +0 -2
- package/build/components/FileInput/DragAndDrop.d.ts +0 -17
- package/build/components/FileInput/DragAndDrop.js +0 -136
- package/build/components/FileInput/UploadInput.d.ts +0 -7
- package/build/components/FileInput/UploadInput.js +0 -38
- package/build/components/FileInput/index.d.ts +0 -3
- package/build/components/FileInput/index.js +0 -3
- package/build/components/Footer/Footer.d.ts +0 -15
- package/build/components/Footer/Footer.js +0 -63
- package/build/components/Footer/index.d.ts +0 -4
- package/build/components/Footer/index.js +0 -2
- package/build/components/Form/Form.d.ts +0 -11
- package/build/components/Form/Form.js +0 -38
- package/build/components/Form/index.d.ts +0 -3
- package/build/components/Form/index.js +0 -2
- package/build/components/Icon/Icon.d.ts +0 -11
- package/build/components/Icon/Icon.js +0 -26
- package/build/components/Icon/index.d.ts +0 -3
- package/build/components/Icon/index.js +0 -2
- package/build/components/Input/Input.d.ts +0 -19
- package/build/components/Input/Input.js +0 -84
- package/build/components/Input/index.d.ts +0 -3
- package/build/components/Input/index.js +0 -2
- package/build/components/InputAdornment/InputAdornment.d.ts +0 -10
- package/build/components/InputAdornment/InputAdornment.js +0 -46
- package/build/components/InputAdornment/index.d.ts +0 -3
- package/build/components/InputAdornment/index.js +0 -2
- package/build/components/List/List.d.ts +0 -5
- package/build/components/List/List.js +0 -52
- package/build/components/List/index.d.ts +0 -3
- package/build/components/List/index.js +0 -2
- package/build/components/ListItem/ListItem.d.ts +0 -5
- package/build/components/ListItem/ListItem.js +0 -35
- package/build/components/ListItem/index.d.ts +0 -3
- package/build/components/ListItem/index.js +0 -2
- package/build/components/Loader/Loader.d.ts +0 -24
- package/build/components/Loader/Loader.js +0 -41
- package/build/components/Loader/index.d.ts +0 -4
- package/build/components/Loader/index.js +0 -2
- package/build/components/LogoBadge/LogoBadge.d.ts +0 -7
- package/build/components/LogoBadge/LogoBadge.js +0 -64
- package/build/components/LogoBadge/index.d.ts +0 -3
- package/build/components/LogoBadge/index.js +0 -2
- package/build/components/Lottie/Lottie.d.ts +0 -4203
- package/build/components/Lottie/Lottie.js +0 -66
- package/build/components/Lottie/files/account_creating.json +0 -732
- package/build/components/Lottie/files/error.json +0 -692
- package/build/components/Lottie/files/pulsating_circle_waves.json +0 -236
- package/build/components/Lottie/files/start_loading.json +0 -1140
- package/build/components/Lottie/files/still_loading.json +0 -1140
- package/build/components/Lottie/files/success.json +0 -425
- package/build/components/Lottie/index.d.ts +0 -3
- package/build/components/Lottie/index.js +0 -3
- package/build/components/OTPField/OTPField.d.ts +0 -18
- package/build/components/OTPField/OTPField.js +0 -45
- package/build/components/OTPField/index.d.ts +0 -4
- package/build/components/OTPField/index.js +0 -2
- package/build/components/OTPTimer/OTPTimer.d.ts +0 -15
- package/build/components/OTPTimer/OTPTimer.js +0 -70
- package/build/components/OTPTimer/index.d.ts +0 -4
- package/build/components/OTPTimer/index.js +0 -2
- package/build/components/ProgressBar/CircularProgressBar.d.ts +0 -16
- package/build/components/ProgressBar/CircularProgressBar.js +0 -48
- package/build/components/ProgressBar/ProgressBar.d.ts +0 -6
- package/build/components/ProgressBar/ProgressBar.js +0 -45
- package/build/components/ProgressBar/index.d.ts +0 -6
- package/build/components/ProgressBar/index.js +0 -4
- package/build/components/Providers/ReduxProvider.d.ts +0 -7
- package/build/components/Providers/ReduxProvider.js +0 -17
- package/build/components/Providers/ThemeProvider.d.ts +0 -8
- package/build/components/Providers/ThemeProvider.js +0 -22
- package/build/components/Providers/index.d.ts +0 -3
- package/build/components/Providers/index.js +0 -3
- package/build/components/Radio/Radio.d.ts +0 -5
- package/build/components/Radio/Radio.js +0 -31
- package/build/components/Radio/index.d.ts +0 -3
- package/build/components/Radio/index.js +0 -2
- package/build/components/RadioGroup/RadioGroup.d.ts +0 -8
- package/build/components/RadioGroup/RadioGroup.js +0 -37
- package/build/components/RadioGroup/index.d.ts +0 -3
- package/build/components/RadioGroup/index.js +0 -2
- package/build/components/RadioLabel/RadioLabel.d.ts +0 -10
- package/build/components/RadioLabel/RadioLabel.js +0 -34
- package/build/components/RadioLabel/index.d.ts +0 -3
- package/build/components/RadioLabel/index.js +0 -2
- package/build/components/SimpleList/SimpleList.d.ts +0 -24
- package/build/components/SimpleList/SimpleList.js +0 -136
- package/build/components/SimpleList/index.d.ts +0 -3
- package/build/components/SimpleList/index.js +0 -2
- package/build/components/Slide/Slide.d.ts +0 -6
- package/build/components/Slide/Slide.js +0 -30
- package/build/components/Slide/index.d.ts +0 -3
- package/build/components/Slide/index.js +0 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +0 -11
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +0 -34
- package/build/components/SocialMediaGroup/index.d.ts +0 -3
- package/build/components/SocialMediaGroup/index.js +0 -2
- package/build/components/Text/Text.d.ts +0 -5
- package/build/components/Text/Text.js +0 -35
- package/build/components/Text/index.d.ts +0 -3
- package/build/components/Text/index.js +0 -2
- package/build/components/TextWithCurrency/TextWithCurrency.d.ts +0 -7
- package/build/components/TextWithCurrency/TextWithCurrency.js +0 -14
- package/build/components/TextWithCurrency/index.d.ts +0 -2
- package/build/components/TextWithCurrency/index.js +0 -2
- package/build/components/ToggleButton/ToggleButton.d.ts +0 -5
- package/build/components/ToggleButton/ToggleButton.js +0 -44
- package/build/components/ToggleButton/index.d.ts +0 -3
- package/build/components/ToggleButton/index.js +0 -2
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -5
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +0 -37
- package/build/components/ToggleButtonGroup/index.d.ts +0 -3
- package/build/components/ToggleButtonGroup/index.js +0 -2
- package/build/components/Tooltip/Tooltip.d.ts +0 -10
- package/build/components/Tooltip/Tooltip.js +0 -53
- package/build/components/Tooltip/index.d.ts +0 -3
- package/build/components/Tooltip/index.js +0 -2
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +0 -7
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +0 -33
- package/build/components/TruncatedTooltipText/index.d.ts +0 -2
- package/build/components/TruncatedTooltipText/index.js +0 -2
- package/build/components/Warning/Warning.d.ts +0 -13
- package/build/components/Warning/Warning.js +0 -53
- package/build/components/Warning/index.d.ts +0 -4
- package/build/components/Warning/index.js +0 -2
- package/build/constants/api.d.ts +0 -61
- package/build/constants/api.js +0 -120
- package/build/constants/app.d.ts +0 -330
- package/build/constants/app.js +0 -1378
- package/build/constants/assets.d.ts +0 -120
- package/build/constants/assets.js +0 -129
- package/build/constants/dummy.d.ts +0 -175
- package/build/constants/dummy.js +0 -916
- package/build/constants/flows.d.ts +0 -41
- package/build/constants/flows.js +0 -42
- package/build/constants/index.d.ts +0 -6
- package/build/constants/index.js +0 -6
- package/build/constants/validation.d.ts +0 -36
- package/build/constants/validation.js +0 -36
- package/build/features/app/auth/authStore.d.ts +0 -122
- package/build/features/app/auth/authStore.js +0 -1281
- package/build/features/app/bank/bankStore.d.ts +0 -70
- package/build/features/app/bank/bankStore.js +0 -563
- package/build/features/app/board/boardStore.d.ts +0 -37
- package/build/features/app/board/boardStore.js +0 -274
- package/build/features/app/brand/brandStore.d.ts +0 -110
- package/build/features/app/brand/brandStore.js +0 -885
- package/build/features/app/business/businessStore.d.ts +0 -159
- package/build/features/app/business/businessStore.js +0 -1491
- package/build/features/app/connect/connectStore.d.ts +0 -147
- package/build/features/app/connect/connectStore.js +0 -1345
- package/build/features/app/connectExpress/connectExpressStore.d.ts +0 -198
- package/build/features/app/connectExpress/connectExpressStore.js +0 -2105
- package/build/features/app/entity/entityStore.d.ts +0 -77
- package/build/features/app/entity/entityStore.js +0 -749
- package/build/features/app/individual/individualStore.d.ts +0 -140
- package/build/features/app/individual/individualStore.js +0 -1381
- package/build/features/app/kyc/kycStore.d.ts +0 -67
- package/build/features/app/kyc/kycStore.js +0 -432
- package/build/features/app/password/passwordStore.d.ts +0 -103
- package/build/features/app/password/passwordStore.js +0 -661
- package/build/features/app/signIn/signInStore.d.ts +0 -33
- package/build/features/app/signIn/signInStore.js +0 -371
- package/build/features/app/tax/taxStore.d.ts +0 -63
- package/build/features/app/tax/taxStore.js +0 -510
- package/build/features/app/terminal/terminalStore.d.ts +0 -110
- package/build/features/app/terminal/terminalStore.js +0 -676
- package/build/features/auth/Auth.d.ts +0 -14
- package/build/features/auth/Auth.js +0 -168
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +0 -5
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +0 -36
- package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +0 -2
- package/build/features/auth/screens/AccountCreatedLoader/index.js +0 -2
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +0 -5
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +0 -71
- package/build/features/auth/screens/AccountNotFound/index.d.ts +0 -2
- package/build/features/auth/screens/AccountNotFound/index.js +0 -2
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +0 -5
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +0 -73
- package/build/features/auth/screens/AuthMerchant/MerchantList.d.ts +0 -11
- package/build/features/auth/screens/AuthMerchant/MerchantList.js +0 -64
- package/build/features/auth/screens/AuthMerchant/index.d.ts +0 -2
- package/build/features/auth/screens/AuthMerchant/index.js +0 -2
- package/build/features/auth/screens/AuthMerchant/validation.d.ts +0 -8
- package/build/features/auth/screens/AuthMerchant/validation.js +0 -4
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +0 -5
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +0 -58
- package/build/features/auth/screens/AuthSwitch/index.d.ts +0 -3
- package/build/features/auth/screens/AuthSwitch/index.js +0 -2
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +0 -5
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +0 -96
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +0 -10
- package/build/features/auth/screens/AuthenticationList/BrandList.js +0 -81
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +0 -3
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +0 -48
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +0 -31
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +0 -90
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +0 -11
- package/build/features/auth/screens/AuthenticationList/EntityList.js +0 -138
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +0 -3
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +0 -36
- package/build/features/auth/screens/AuthenticationList/index.d.ts +0 -3
- package/build/features/auth/screens/AuthenticationList/index.js +0 -2
- package/build/features/auth/screens/AuthenticationList/validation.d.ts +0 -20
- package/build/features/auth/screens/AuthenticationList/validation.js +0 -68
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +0 -5
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +0 -111
- package/build/features/auth/screens/BusinessCountry/index.d.ts +0 -3
- package/build/features/auth/screens/BusinessCountry/index.js +0 -2
- package/build/features/auth/screens/CivilID/CivilID.d.ts +0 -5
- package/build/features/auth/screens/CivilID/CivilID.js +0 -57
- package/build/features/auth/screens/CivilID/IDNumber.d.ts +0 -8
- package/build/features/auth/screens/CivilID/IDNumber.js +0 -54
- package/build/features/auth/screens/CivilID/index.d.ts +0 -3
- package/build/features/auth/screens/CivilID/index.js +0 -2
- package/build/features/auth/screens/CivilID/validation.d.ts +0 -8
- package/build/features/auth/screens/CivilID/validation.js +0 -4
- package/build/features/auth/screens/DOB/DOB.d.ts +0 -6
- package/build/features/auth/screens/DOB/DOB.js +0 -47
- package/build/features/auth/screens/DOB/DOBForm.d.ts +0 -5
- package/build/features/auth/screens/DOB/DOBForm.js +0 -59
- package/build/features/auth/screens/DOB/index.d.ts +0 -3
- package/build/features/auth/screens/DOB/index.js +0 -2
- package/build/features/auth/screens/DOB/validation.d.ts +0 -8
- package/build/features/auth/screens/DOB/validation.js +0 -4
- package/build/features/auth/screens/Email/Email.d.ts +0 -5
- package/build/features/auth/screens/Email/Email.js +0 -57
- package/build/features/auth/screens/Email/EmailField.d.ts +0 -8
- package/build/features/auth/screens/Email/EmailField.js +0 -52
- package/build/features/auth/screens/Email/index.d.ts +0 -3
- package/build/features/auth/screens/Email/index.js +0 -2
- package/build/features/auth/screens/Email/validation.d.ts +0 -8
- package/build/features/auth/screens/Email/validation.js +0 -4
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +0 -5
- package/build/features/auth/screens/EmailSent/EmailSent.js +0 -79
- package/build/features/auth/screens/EmailSent/index.d.ts +0 -2
- package/build/features/auth/screens/EmailSent/index.js +0 -2
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +0 -5
- package/build/features/auth/screens/MigratingData/MigratingData.js +0 -44
- package/build/features/auth/screens/MigratingData/index.d.ts +0 -2
- package/build/features/auth/screens/MigratingData/index.js +0 -2
- package/build/features/auth/screens/Mobile/Mobile.d.ts +0 -5
- package/build/features/auth/screens/Mobile/Mobile.js +0 -82
- package/build/features/auth/screens/Mobile/MobileNumber.d.ts +0 -13
- package/build/features/auth/screens/Mobile/MobileNumber.js +0 -156
- package/build/features/auth/screens/Mobile/index.d.ts +0 -3
- package/build/features/auth/screens/Mobile/index.js +0 -2
- package/build/features/auth/screens/Mobile/validation.d.ts +0 -8
- package/build/features/auth/screens/Mobile/validation.js +0 -38
- package/build/features/auth/screens/NID/IDNumber.d.ts +0 -7
- package/build/features/auth/screens/NID/IDNumber.js +0 -55
- package/build/features/auth/screens/NID/NID.d.ts +0 -5
- package/build/features/auth/screens/NID/NID.js +0 -56
- package/build/features/auth/screens/NID/index.d.ts +0 -3
- package/build/features/auth/screens/NID/index.js +0 -2
- package/build/features/auth/screens/NID/validation.d.ts +0 -8
- package/build/features/auth/screens/NID/validation.js +0 -10
- package/build/features/auth/screens/OTP/OTP.d.ts +0 -16
- package/build/features/auth/screens/OTP/OTP.js +0 -130
- package/build/features/auth/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/auth/screens/OTP/OTPInput.js +0 -74
- package/build/features/auth/screens/OTP/index.d.ts +0 -2
- package/build/features/auth/screens/OTP/index.js +0 -2
- package/build/features/auth/screens/OTP/validation.d.ts +0 -8
- package/build/features/auth/screens/OTP/validation.js +0 -4
- package/build/features/auth/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/auth/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/auth/screens/OperatorError/index.d.ts +0 -3
- package/build/features/auth/screens/OperatorError/index.js +0 -2
- package/build/features/auth/screens/Passcode/Passcode.d.ts +0 -16
- package/build/features/auth/screens/Passcode/Passcode.js +0 -82
- package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +0 -6
- package/build/features/auth/screens/Passcode/PasscodeInput.js +0 -42
- package/build/features/auth/screens/Passcode/index.d.ts +0 -2
- package/build/features/auth/screens/Passcode/index.js +0 -2
- package/build/features/auth/screens/Passcode/validation.d.ts +0 -8
- package/build/features/auth/screens/Passcode/validation.js +0 -4
- package/build/features/auth/screens/Password/Password.d.ts +0 -5
- package/build/features/auth/screens/Password/Password.js +0 -61
- package/build/features/auth/screens/Password/PasswordField.d.ts +0 -5
- package/build/features/auth/screens/Password/PasswordField.js +0 -28
- package/build/features/auth/screens/Password/index.d.ts +0 -3
- package/build/features/auth/screens/Password/index.js +0 -2
- package/build/features/auth/screens/Password/validation.d.ts +0 -8
- package/build/features/auth/screens/Password/validation.js +0 -4
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +0 -5
- package/build/features/auth/screens/PreparingData/PreparingData.js +0 -44
- package/build/features/auth/screens/PreparingData/index.d.ts +0 -2
- package/build/features/auth/screens/PreparingData/index.js +0 -2
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +0 -5
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +0 -21
- package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +0 -3
- package/build/features/auth/screens/ResetPasswordMessage/index.js +0 -2
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +0 -5
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +0 -35
- package/build/features/auth/screens/VerifyNafath/index.d.ts +0 -3
- package/build/features/auth/screens/VerifyNafath/index.js +0 -2
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +0 -34
- package/build/features/auth/screens/VerifyPACI/index.d.ts +0 -3
- package/build/features/auth/screens/VerifyPACI/index.js +0 -2
- package/build/features/bank/Bank.d.ts +0 -15
- package/build/features/bank/Bank.js +0 -90
- package/build/features/bank/index.d.ts +0 -1
- package/build/features/bank/index.js +0 -1
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +0 -5
- package/build/features/bank/screens/BankDetails/BankDetails.js +0 -124
- package/build/features/bank/screens/BankDetails/BankName.d.ts +0 -7
- package/build/features/bank/screens/BankDetails/BankName.js +0 -63
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +0 -10
- package/build/features/bank/screens/BankDetails/BankStatement.js +0 -33
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +0 -7
- package/build/features/bank/screens/BankDetails/Beneficiary.js +0 -48
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +0 -6
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +0 -66
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +0 -9
- package/build/features/bank/screens/BankDetails/IBAN.js +0 -102
- package/build/features/bank/screens/BankDetails/index.d.ts +0 -3
- package/build/features/bank/screens/BankDetails/index.js +0 -2
- package/build/features/bank/screens/BankDetails/validation.d.ts +0 -39
- package/build/features/bank/screens/BankDetails/validation.js +0 -24
- package/build/features/bank/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/bank/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/bank/screens/OperatorError/index.d.ts +0 -3
- package/build/features/bank/screens/OperatorError/index.js +0 -2
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/bank/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/bank/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/bank/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/bank/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/bank/screens/Success/Success.d.ts +0 -5
- package/build/features/bank/screens/Success/Success.js +0 -20
- package/build/features/bank/screens/Success/index.d.ts +0 -3
- package/build/features/bank/screens/Success/index.js +0 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/bank/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/bank/screens/Verify/OTPInput.js +0 -51
- package/build/features/bank/screens/Verify/Verify.d.ts +0 -5
- package/build/features/bank/screens/Verify/Verify.js +0 -75
- package/build/features/bank/screens/Verify/index.d.ts +0 -2
- package/build/features/bank/screens/Verify/index.js +0 -2
- package/build/features/bank/screens/Verify/validation.d.ts +0 -8
- package/build/features/bank/screens/Verify/validation.js +0 -4
- package/build/features/board/Board.d.ts +0 -13
- package/build/features/board/Board.js +0 -87
- package/build/features/board/index.d.ts +0 -1
- package/build/features/board/index.js +0 -1
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/board/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/board/screens/OperatorError/index.d.ts +0 -3
- package/build/features/board/screens/OperatorError/index.js +0 -2
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/board/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/board/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/board/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -44
- package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/board/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/board/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/board/screens/Verify/OTPInput.js +0 -51
- package/build/features/board/screens/Verify/Verify.d.ts +0 -5
- package/build/features/board/screens/Verify/Verify.js +0 -75
- package/build/features/board/screens/Verify/index.d.ts +0 -2
- package/build/features/board/screens/Verify/index.js +0 -2
- package/build/features/board/screens/Verify/validation.d.ts +0 -8
- package/build/features/board/screens/Verify/validation.js +0 -4
- package/build/features/brand/Brand.d.ts +0 -15
- package/build/features/brand/Brand.js +0 -90
- package/build/features/brand/index.d.ts +0 -1
- package/build/features/brand/index.js +0 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +0 -74
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +0 -180
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +0 -5
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +0 -152
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +0 -55
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +0 -135
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +0 -10
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +0 -101
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +0 -10
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +0 -141
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +0 -43
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +0 -93
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +0 -18
- package/build/features/brand/screens/BrandActivities/TAC.js +0 -93
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +0 -6
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +0 -56
- package/build/features/brand/screens/BrandActivities/index.d.ts +0 -2
- package/build/features/brand/screens/BrandActivities/index.js +0 -2
- package/build/features/brand/screens/BrandActivities/validation.d.ts +0 -71
- package/build/features/brand/screens/BrandActivities/validation.js +0 -18
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +0 -5
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +0 -106
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +0 -9
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +0 -41
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +0 -9
- package/build/features/brand/screens/BrandInfo/BrandName.js +0 -143
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +0 -6
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +0 -36
- package/build/features/brand/screens/BrandInfo/index.d.ts +0 -2
- package/build/features/brand/screens/BrandInfo/index.js +0 -2
- package/build/features/brand/screens/BrandInfo/validation.d.ts +0 -56
- package/build/features/brand/screens/BrandInfo/validation.js +0 -109
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +0 -5
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +0 -119
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +0 -10
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +0 -69
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +0 -10
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +0 -69
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +0 -10
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +0 -69
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +0 -10
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.js +0 -69
- package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +0 -2
- package/build/features/brand/screens/BrandSegmentInfo/index.js +0 -2
- package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +0 -17
- package/build/features/brand/screens/BrandSegmentInfo/validation.js +0 -9
- package/build/features/brand/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/brand/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/brand/screens/OperatorError/index.d.ts +0 -3
- package/build/features/brand/screens/OperatorError/index.js +0 -2
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/brand/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/brand/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/brand/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/brand/screens/Success/Success.d.ts +0 -5
- package/build/features/brand/screens/Success/Success.js +0 -20
- package/build/features/brand/screens/Success/index.d.ts +0 -3
- package/build/features/brand/screens/Success/index.js +0 -2
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/brand/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/brand/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/brand/screens/Verify/OTPInput.js +0 -51
- package/build/features/brand/screens/Verify/Verify.d.ts +0 -5
- package/build/features/brand/screens/Verify/Verify.js +0 -79
- package/build/features/brand/screens/Verify/index.d.ts +0 -2
- package/build/features/brand/screens/Verify/index.js +0 -2
- package/build/features/brand/screens/Verify/validation.d.ts +0 -8
- package/build/features/brand/screens/Verify/validation.js +0 -4
- package/build/features/business/Business.d.ts +0 -8
- package/build/features/business/Business.js +0 -75
- package/build/features/business/index.d.ts +0 -1
- package/build/features/business/index.js +0 -1
- package/build/features/business/screens/Activities/Activities.d.ts +0 -5
- package/build/features/business/screens/Activities/Activities.js +0 -87
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -37
- package/build/features/business/screens/Activities/ActivitiesList.js +0 -292
- package/build/features/business/screens/Activities/LicenseName.d.ts +0 -5
- package/build/features/business/screens/Activities/LicenseName.js +0 -30
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +0 -22
- package/build/features/business/screens/Activities/OperationStartDate.js +0 -45
- package/build/features/business/screens/Activities/index.d.ts +0 -3
- package/build/features/business/screens/Activities/index.js +0 -2
- package/build/features/business/screens/Activities/validation.d.ts +0 -191
- package/build/features/business/screens/Activities/validation.js +0 -14
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +0 -5
- package/build/features/business/screens/BrandDetails/BrandDetails.js +0 -39
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +0 -5
- package/build/features/business/screens/BrandDetails/BrandName.js +0 -36
- package/build/features/business/screens/BrandDetails/Header.d.ts +0 -5
- package/build/features/business/screens/BrandDetails/Header.js +0 -49
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +0 -5
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +0 -38
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +0 -18
- package/build/features/business/screens/BrandDetails/SalesChannel.js +0 -48
- package/build/features/business/screens/BrandDetails/index.d.ts +0 -3
- package/build/features/business/screens/BrandDetails/index.js +0 -2
- package/build/features/business/screens/BusinessType/Article.d.ts +0 -8
- package/build/features/business/screens/BusinessType/Article.js +0 -52
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +0 -5
- package/build/features/business/screens/BusinessType/BusinessType.js +0 -125
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +0 -9
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +0 -135
- package/build/features/business/screens/BusinessType/EntityName.d.ts +0 -6
- package/build/features/business/screens/BusinessType/EntityName.js +0 -55
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +0 -6
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +0 -44
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +0 -9
- package/build/features/business/screens/BusinessType/LicenseList.js +0 -141
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +0 -6
- package/build/features/business/screens/BusinessType/LicenseNumber.js +0 -55
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +0 -34
- package/build/features/business/screens/BusinessType/LicenseType.js +0 -103
- package/build/features/business/screens/BusinessType/SelectType.d.ts +0 -8
- package/build/features/business/screens/BusinessType/SelectType.js +0 -106
- package/build/features/business/screens/BusinessType/Switch.d.ts +0 -7
- package/build/features/business/screens/BusinessType/Switch.js +0 -35
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +0 -35
- package/build/features/business/screens/BusinessType/UnifiedNumber.js +0 -84
- package/build/features/business/screens/BusinessType/index.d.ts +0 -3
- package/build/features/business/screens/BusinessType/index.js +0 -2
- package/build/features/business/screens/BusinessType/validation.d.ts +0 -46
- package/build/features/business/screens/BusinessType/validation.js +0 -126
- package/build/features/business/screens/CivilID/CivilID.d.ts +0 -5
- package/build/features/business/screens/CivilID/CivilID.js +0 -68
- package/build/features/business/screens/CivilID/IDNumber.d.ts +0 -7
- package/build/features/business/screens/CivilID/IDNumber.js +0 -58
- package/build/features/business/screens/CivilID/index.d.ts +0 -3
- package/build/features/business/screens/CivilID/index.js +0 -2
- package/build/features/business/screens/CivilID/validation.d.ts +0 -8
- package/build/features/business/screens/CivilID/validation.js +0 -4
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +0 -91
- package/build/features/business/screens/Customers/CustomerLocations.js +0 -161
- package/build/features/business/screens/Customers/Customers.d.ts +0 -5
- package/build/features/business/screens/Customers/Customers.js +0 -142
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +0 -10
- package/build/features/business/screens/Customers/ExpectedCustomers.js +0 -107
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +0 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +0 -139
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +0 -43
- package/build/features/business/screens/Customers/RefundPolicy.js +0 -93
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +0 -6
- package/build/features/business/screens/Customers/TransactionPolicy.js +0 -55
- package/build/features/business/screens/Customers/index.d.ts +0 -3
- package/build/features/business/screens/Customers/index.js +0 -2
- package/build/features/business/screens/Customers/validation.d.ts +0 -20
- package/build/features/business/screens/Customers/validation.js +0 -8
- package/build/features/business/screens/DOB/DOB.d.ts +0 -6
- package/build/features/business/screens/DOB/DOB.js +0 -45
- package/build/features/business/screens/DOB/DOBForm.d.ts +0 -5
- package/build/features/business/screens/DOB/DOBForm.js +0 -72
- package/build/features/business/screens/DOB/index.d.ts +0 -3
- package/build/features/business/screens/DOB/index.js +0 -2
- package/build/features/business/screens/DOB/validation.d.ts +0 -8
- package/build/features/business/screens/DOB/validation.js +0 -4
- package/build/features/business/screens/IDBOD/DOB.d.ts +0 -6
- package/build/features/business/screens/IDBOD/DOB.js +0 -45
- package/build/features/business/screens/IDBOD/ID.d.ts +0 -5
- package/build/features/business/screens/IDBOD/ID.js +0 -31
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +0 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +0 -68
- package/build/features/business/screens/IDBOD/index.d.ts +0 -3
- package/build/features/business/screens/IDBOD/index.js +0 -2
- package/build/features/business/screens/IDBOD/validation.d.ts +0 -18
- package/build/features/business/screens/IDBOD/validation.js +0 -12
- package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +0 -3
- package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +0 -103
- package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +0 -3
- package/build/features/business/screens/MobileOwnership/MobileNumber.js +0 -72
- package/build/features/business/screens/MobileOwnership/index.d.ts +0 -2
- package/build/features/business/screens/MobileOwnership/index.js +0 -2
- package/build/features/business/screens/MobileOwnership/validation.d.ts +0 -8
- package/build/features/business/screens/MobileOwnership/validation.js +0 -38
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/business/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/business/screens/OperatorError/index.d.ts +0 -3
- package/build/features/business/screens/OperatorError/index.js +0 -2
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/business/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/business/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/business/screens/Success/Success.d.ts +0 -5
- package/build/features/business/screens/Success/Success.js +0 -23
- package/build/features/business/screens/Success/index.d.ts +0 -3
- package/build/features/business/screens/Success/index.js +0 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -33
- package/build/features/business/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/business/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/business/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/business/screens/Verify/OTPInput.js +0 -51
- package/build/features/business/screens/Verify/Verify.d.ts +0 -5
- package/build/features/business/screens/Verify/Verify.js +0 -89
- package/build/features/business/screens/Verify/index.d.ts +0 -2
- package/build/features/business/screens/Verify/index.js +0 -2
- package/build/features/business/screens/Verify/validation.d.ts +0 -8
- package/build/features/business/screens/Verify/validation.js +0 -4
- package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +0 -5
- package/build/features/business/screens/VerifyNafath/VerifyNafath.js +0 -35
- package/build/features/business/screens/VerifyNafath/index.d.ts +0 -3
- package/build/features/business/screens/VerifyNafath/index.js +0 -2
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +0 -34
- package/build/features/business/screens/VerifyPACI/index.d.ts +0 -3
- package/build/features/business/screens/VerifyPACI/index.js +0 -2
- package/build/features/connect/Connect.d.ts +0 -14
- package/build/features/connect/Connect.js +0 -159
- package/build/features/connect/index.d.ts +0 -1
- package/build/features/connect/index.js +0 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +0 -5
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +0 -62
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/TeamSize.js +0 -66
- package/build/features/connect/screens/BrandSegment/index.d.ts +0 -3
- package/build/features/connect/screens/BrandSegment/index.js +0 -2
- package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/validation.js +0 -6
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +0 -5
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +0 -113
- package/build/features/connect/screens/BusinessCountry/index.d.ts +0 -3
- package/build/features/connect/screens/BusinessCountry/index.js +0 -2
- package/build/features/connect/screens/CivilID/CivilID.d.ts +0 -5
- package/build/features/connect/screens/CivilID/CivilID.js +0 -103
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +0 -7
- package/build/features/connect/screens/CivilID/IDNumber.js +0 -58
- package/build/features/connect/screens/CivilID/index.d.ts +0 -3
- package/build/features/connect/screens/CivilID/index.js +0 -2
- package/build/features/connect/screens/CivilID/validation.d.ts +0 -8
- package/build/features/connect/screens/CivilID/validation.js +0 -4
- package/build/features/connect/screens/DOB/DOB.d.ts +0 -6
- package/build/features/connect/screens/DOB/DOB.js +0 -47
- package/build/features/connect/screens/DOB/DOBForm.d.ts +0 -5
- package/build/features/connect/screens/DOB/DOBForm.js +0 -59
- package/build/features/connect/screens/DOB/index.d.ts +0 -3
- package/build/features/connect/screens/DOB/index.js +0 -2
- package/build/features/connect/screens/DOB/validation.d.ts +0 -8
- package/build/features/connect/screens/DOB/validation.js +0 -4
- package/build/features/connect/screens/Individual/Email.d.ts +0 -8
- package/build/features/connect/screens/Individual/Email.js +0 -106
- package/build/features/connect/screens/Individual/Individual.d.ts +0 -5
- package/build/features/connect/screens/Individual/Individual.js +0 -114
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +0 -10
- package/build/features/connect/screens/Individual/MobileNumber.js +0 -154
- package/build/features/connect/screens/Individual/Name.d.ts +0 -6
- package/build/features/connect/screens/Individual/Name.js +0 -44
- package/build/features/connect/screens/Individual/index.d.ts +0 -3
- package/build/features/connect/screens/Individual/index.js +0 -2
- package/build/features/connect/screens/Individual/validation.d.ts +0 -24
- package/build/features/connect/screens/Individual/validation.js +0 -43
- package/build/features/connect/screens/Merchant/BrandList.d.ts +0 -10
- package/build/features/connect/screens/Merchant/BrandList.js +0 -88
- package/build/features/connect/screens/Merchant/BrandName.d.ts +0 -8
- package/build/features/connect/screens/Merchant/BrandName.js +0 -143
- package/build/features/connect/screens/Merchant/Merchant.d.ts +0 -5
- package/build/features/connect/screens/Merchant/Merchant.js +0 -100
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +0 -5
- package/build/features/connect/screens/Merchant/SalesChannels.js +0 -38
- package/build/features/connect/screens/Merchant/TAC.d.ts +0 -6
- package/build/features/connect/screens/Merchant/TAC.js +0 -84
- package/build/features/connect/screens/Merchant/index.d.ts +0 -3
- package/build/features/connect/screens/Merchant/index.js +0 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +0 -35
- package/build/features/connect/screens/Merchant/validation.js +0 -131
- package/build/features/connect/screens/Mobile/Mobile.d.ts +0 -5
- package/build/features/connect/screens/Mobile/Mobile.js +0 -137
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +0 -12
- package/build/features/connect/screens/Mobile/MobileNumber.js +0 -162
- package/build/features/connect/screens/Mobile/Title.d.ts +0 -8
- package/build/features/connect/screens/Mobile/Title.js +0 -29
- package/build/features/connect/screens/Mobile/index.d.ts +0 -3
- package/build/features/connect/screens/Mobile/index.js +0 -2
- package/build/features/connect/screens/Mobile/validation.d.ts +0 -8
- package/build/features/connect/screens/Mobile/validation.js +0 -36
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +0 -3
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +0 -104
- package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +0 -3
- package/build/features/connect/screens/MobileOwnership/MobileNumber.js +0 -72
- package/build/features/connect/screens/MobileOwnership/index.d.ts +0 -2
- package/build/features/connect/screens/MobileOwnership/index.js +0 -2
- package/build/features/connect/screens/MobileOwnership/validation.d.ts +0 -8
- package/build/features/connect/screens/MobileOwnership/validation.js +0 -38
- package/build/features/connect/screens/NID/IDNumber.d.ts +0 -7
- package/build/features/connect/screens/NID/IDNumber.js +0 -59
- package/build/features/connect/screens/NID/NID.d.ts +0 -5
- package/build/features/connect/screens/NID/NID.js +0 -101
- package/build/features/connect/screens/NID/index.d.ts +0 -3
- package/build/features/connect/screens/NID/index.js +0 -2
- package/build/features/connect/screens/NID/validation.d.ts +0 -8
- package/build/features/connect/screens/NID/validation.js +0 -8
- package/build/features/connect/screens/OTP/OTP.d.ts +0 -5
- package/build/features/connect/screens/OTP/OTP.js +0 -92
- package/build/features/connect/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/connect/screens/OTP/OTPInput.js +0 -58
- package/build/features/connect/screens/OTP/index.d.ts +0 -3
- package/build/features/connect/screens/OTP/index.js +0 -2
- package/build/features/connect/screens/OTP/validation.d.ts +0 -8
- package/build/features/connect/screens/OTP/validation.js +0 -4
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/connect/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/connect/screens/OperatorError/index.d.ts +0 -3
- package/build/features/connect/screens/OperatorError/index.js +0 -2
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +0 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +0 -31
- package/build/features/connect/screens/ThankYou/index.d.ts +0 -3
- package/build/features/connect/screens/ThankYou/index.js +0 -2
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +0 -5
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +0 -35
- package/build/features/connect/screens/VerifyNafath/index.d.ts +0 -3
- package/build/features/connect/screens/VerifyNafath/index.js +0 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -95
- package/build/features/connect/screens/VerifyPACI/index.d.ts +0 -3
- package/build/features/connect/screens/VerifyPACI/index.js +0 -2
- package/build/features/connectExpress/ConnectExpress.d.ts +0 -14
- package/build/features/connectExpress/ConnectExpress.js +0 -174
- package/build/features/connectExpress/index.d.ts +0 -1
- package/build/features/connectExpress/index.js +0 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +0 -5
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +0 -27
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +0 -3
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +0 -2
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +0 -5
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +0 -36
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +0 -2
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +0 -2
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +0 -5
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +0 -74
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +0 -11
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +0 -64
- package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +0 -2
- package/build/features/connectExpress/screens/AuthMerchant/index.js +0 -2
- package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/AuthMerchant/validation.js +0 -4
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +0 -5
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +0 -104
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +0 -10
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +0 -81
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +0 -3
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +0 -48
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +0 -31
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +0 -90
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +0 -11
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +0 -138
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +0 -3
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +0 -36
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +0 -3
- package/build/features/connectExpress/screens/AuthenticationList/index.js +0 -2
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +0 -20
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +0 -68
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +0 -5
- package/build/features/connectExpress/screens/Brand/Brand.js +0 -71
- package/build/features/connectExpress/screens/Brand/index.d.ts +0 -2
- package/build/features/connectExpress/screens/Brand/index.js +0 -2
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +0 -5
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +0 -111
- package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +0 -3
- package/build/features/connectExpress/screens/BusinessCountry/index.js +0 -2
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +0 -5
- package/build/features/connectExpress/screens/CivilID/CivilID.js +0 -96
- package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +0 -7
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +0 -59
- package/build/features/connectExpress/screens/CivilID/index.d.ts +0 -3
- package/build/features/connectExpress/screens/CivilID/index.js +0 -2
- package/build/features/connectExpress/screens/CivilID/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/CivilID/validation.js +0 -4
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +0 -5
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +0 -54
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +0 -7
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +0 -54
- package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +0 -3
- package/build/features/connectExpress/screens/CivilIDMissed/index.js +0 -2
- package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/CivilIDMissed/validation.js +0 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +0 -9
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +0 -141
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +0 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +0 -99
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +0 -9
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +0 -156
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +0 -7
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +0 -53
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +0 -35
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +0 -96
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +0 -19
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +0 -82
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +0 -36
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +0 -81
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +0 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +0 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +0 -43
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +0 -258
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +0 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +0 -121
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +0 -9
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +0 -105
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +0 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +0 -154
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +0 -7
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +0 -44
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +0 -3
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +0 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +0 -14
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +0 -39
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +0 -5
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +0 -24
- package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +0 -2
- package/build/features/connectExpress/screens/CreateAccountLoader/index.js +0 -2
- package/build/features/connectExpress/screens/DOB/DOB.d.ts +0 -6
- package/build/features/connectExpress/screens/DOB/DOB.js +0 -47
- package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +0 -5
- package/build/features/connectExpress/screens/DOB/DOBForm.js +0 -63
- package/build/features/connectExpress/screens/DOB/index.d.ts +0 -3
- package/build/features/connectExpress/screens/DOB/index.js +0 -2
- package/build/features/connectExpress/screens/DOB/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/DOB/validation.js +0 -4
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +0 -3
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +0 -9
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +0 -2
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +0 -2
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +0 -35
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +0 -3
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +0 -2
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +0 -34
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +0 -3
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +0 -2
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +0 -5
- package/build/features/connectExpress/screens/Mobile/Mobile.js +0 -122
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +0 -13
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +0 -159
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +0 -7
- package/build/features/connectExpress/screens/Mobile/TAC.js +0 -85
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +0 -8
- package/build/features/connectExpress/screens/Mobile/Title.js +0 -29
- package/build/features/connectExpress/screens/Mobile/index.d.ts +0 -3
- package/build/features/connectExpress/screens/Mobile/index.js +0 -2
- package/build/features/connectExpress/screens/Mobile/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/Mobile/validation.js +0 -75
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +0 -3
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +0 -106
- package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +0 -3
- package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +0 -72
- package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +0 -2
- package/build/features/connectExpress/screens/MobileOwnership/index.js +0 -2
- package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/MobileOwnership/validation.js +0 -38
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +0 -8
- package/build/features/connectExpress/screens/NID/IDNumber.js +0 -60
- package/build/features/connectExpress/screens/NID/NID.d.ts +0 -5
- package/build/features/connectExpress/screens/NID/NID.js +0 -98
- package/build/features/connectExpress/screens/NID/TAC.d.ts +0 -19
- package/build/features/connectExpress/screens/NID/TAC.js +0 -82
- package/build/features/connectExpress/screens/NID/index.d.ts +0 -3
- package/build/features/connectExpress/screens/NID/index.js +0 -2
- package/build/features/connectExpress/screens/NID/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/NID/validation.js +0 -20
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +0 -6
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +0 -47
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +0 -6
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +0 -59
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +0 -5
- package/build/features/connectExpress/screens/NIDMissed/NID.js +0 -62
- package/build/features/connectExpress/screens/NIDMissed/index.d.ts +0 -3
- package/build/features/connectExpress/screens/NIDMissed/index.js +0 -2
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -18
- package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -12
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +0 -5
- package/build/features/connectExpress/screens/OTP/OTP.js +0 -86
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/connectExpress/screens/OTP/OTPInput.js +0 -59
- package/build/features/connectExpress/screens/OTP/index.d.ts +0 -3
- package/build/features/connectExpress/screens/OTP/index.js +0 -2
- package/build/features/connectExpress/screens/OTP/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/OTP/validation.js +0 -4
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/connectExpress/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/connectExpress/screens/OperatorError/index.d.ts +0 -3
- package/build/features/connectExpress/screens/OperatorError/index.js +0 -2
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -5
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +0 -34
- package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/connectExpress/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -41
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +0 -5
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +0 -49
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +0 -5
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +0 -88
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +0 -3
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +0 -2
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +0 -4
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +0 -5
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +0 -41
- package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +0 -3
- package/build/features/connectExpress/screens/VerifyNafath/index.js +0 -2
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +0 -34
- package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +0 -3
- package/build/features/connectExpress/screens/VerifyPACI/index.js +0 -2
- package/build/features/entity/Entity.d.ts +0 -14
- package/build/features/entity/Entity.js +0 -90
- package/build/features/entity/index.d.ts +0 -1
- package/build/features/entity/index.js +0 -1
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -38
- package/build/features/entity/screens/EntityCapital/ActivityList.js +0 -290
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +0 -7
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +0 -43
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +0 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +0 -40
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +0 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +0 -43
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +0 -5
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +0 -110
- package/build/features/entity/screens/EntityCapital/index.d.ts +0 -2
- package/build/features/entity/screens/EntityCapital/index.js +0 -2
- package/build/features/entity/screens/EntityCapital/validation.d.ts +0 -197
- package/build/features/entity/screens/EntityCapital/validation.js +0 -18
- package/build/features/entity/screens/EntityName/Article.d.ts +0 -10
- package/build/features/entity/screens/EntityName/Article.js +0 -53
- package/build/features/entity/screens/EntityName/EntityName.d.ts +0 -5
- package/build/features/entity/screens/EntityName/EntityName.js +0 -163
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +0 -74
- package/build/features/entity/screens/EntityName/EntityTypeList.js +0 -137
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +0 -21
- package/build/features/entity/screens/EntityName/ExpiryDate.js +0 -50
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +0 -21
- package/build/features/entity/screens/EntityName/IssuingDate.js +0 -51
- package/build/features/entity/screens/EntityName/LegalName.d.ts +0 -7
- package/build/features/entity/screens/EntityName/LegalName.js +0 -37
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +0 -54
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +0 -8
- package/build/features/entity/screens/EntityName/LicenseNumber.js +0 -52
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +0 -8
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +0 -42
- package/build/features/entity/screens/EntityName/index.d.ts +0 -2
- package/build/features/entity/screens/EntityName/index.js +0 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +0 -90
- package/build/features/entity/screens/EntityName/validation.js +0 -135
- package/build/features/entity/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/entity/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/entity/screens/OperatorError/index.d.ts +0 -3
- package/build/features/entity/screens/OperatorError/index.js +0 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/entity/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/entity/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/entity/screens/Success/Success.d.ts +0 -5
- package/build/features/entity/screens/Success/Success.js +0 -20
- package/build/features/entity/screens/Success/index.d.ts +0 -3
- package/build/features/entity/screens/Success/index.js +0 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/entity/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/entity/screens/Verify/OTPInput.js +0 -51
- package/build/features/entity/screens/Verify/Verify.d.ts +0 -5
- package/build/features/entity/screens/Verify/Verify.js +0 -79
- package/build/features/entity/screens/Verify/index.d.ts +0 -2
- package/build/features/entity/screens/Verify/index.js +0 -2
- package/build/features/entity/screens/Verify/validation.d.ts +0 -8
- package/build/features/entity/screens/Verify/validation.js +0 -4
- package/build/features/featuresScreens.d.ts +0 -15
- package/build/features/featuresScreens.js +0 -774
- package/build/features/individual/Individual.d.ts +0 -14
- package/build/features/individual/Individual.js +0 -90
- package/build/features/individual/index.d.ts +0 -1
- package/build/features/individual/index.js +0 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +0 -21
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +0 -190
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +0 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +0 -54
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +0 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +0 -59
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +0 -36
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +0 -76
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +0 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +0 -87
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +0 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +0 -131
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +0 -36
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +0 -78
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +0 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +0 -42
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +0 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +0 -45
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +0 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +0 -54
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +0 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +0 -81
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +0 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +0 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +0 -36
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +0 -17
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +0 -12
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +0 -32
- package/build/features/individual/screens/IndividualList/Email.d.ts +0 -10
- package/build/features/individual/screens/IndividualList/Email.js +0 -113
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +0 -31
- package/build/features/individual/screens/IndividualList/IndividualList.js +0 -73
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +0 -12
- package/build/features/individual/screens/IndividualList/MobileNumber.js +0 -140
- package/build/features/individual/screens/IndividualList/UserList.d.ts +0 -5
- package/build/features/individual/screens/IndividualList/UserList.js +0 -211
- package/build/features/individual/screens/IndividualList/index.d.ts +0 -3
- package/build/features/individual/screens/IndividualList/index.js +0 -2
- package/build/features/individual/screens/IndividualList/validation.d.ts +0 -12
- package/build/features/individual/screens/IndividualList/validation.js +0 -47
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +0 -10
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +0 -103
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +0 -12
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +0 -76
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +0 -9
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +0 -46
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +0 -8
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +0 -42
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +0 -9
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +0 -47
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +0 -36
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +0 -84
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +0 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +0 -44
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +0 -21
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +0 -240
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +0 -12
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +0 -76
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +0 -12
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +0 -143
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +0 -8
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +0 -44
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +0 -12
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +0 -76
- package/build/features/individual/screens/IndividualPersonalInfo/index.d.ts +0 -3
- package/build/features/individual/screens/IndividualPersonalInfo/index.js +0 -2
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +0 -38
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +0 -80
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +0 -13
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +0 -144
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +0 -5
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +0 -64
- package/build/features/individual/screens/IndividualPhoneInfo/index.d.ts +0 -3
- package/build/features/individual/screens/IndividualPhoneInfo/index.js +0 -2
- package/build/features/individual/screens/IndividualPhoneInfo/validation.d.ts +0 -8
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +0 -39
- package/build/features/individual/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/individual/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/individual/screens/OperatorError/index.d.ts +0 -3
- package/build/features/individual/screens/OperatorError/index.js +0 -2
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/individual/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/individual/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/individual/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/individual/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/individual/screens/Success/Success.d.ts +0 -5
- package/build/features/individual/screens/Success/Success.js +0 -20
- package/build/features/individual/screens/Success/index.d.ts +0 -3
- package/build/features/individual/screens/Success/index.js +0 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/individual/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/individual/screens/Verify/OTPInput.js +0 -51
- package/build/features/individual/screens/Verify/Verify.d.ts +0 -5
- package/build/features/individual/screens/Verify/Verify.js +0 -81
- package/build/features/individual/screens/Verify/index.d.ts +0 -2
- package/build/features/individual/screens/Verify/index.js +0 -2
- package/build/features/individual/screens/Verify/validation.d.ts +0 -8
- package/build/features/individual/screens/Verify/validation.js +0 -4
- package/build/features/kyc/KYC.d.ts +0 -11
- package/build/features/kyc/KYC.js +0 -99
- package/build/features/kyc/index.d.ts +0 -1
- package/build/features/kyc/index.js +0 -1
- package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +0 -5
- package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +0 -19
- package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +0 -2
- package/build/features/kyc/screens/AlreadySubmitted/index.js +0 -2
- package/build/features/kyc/screens/Loading/Loading.d.ts +0 -4
- package/build/features/kyc/screens/Loading/Loading.js +0 -10
- package/build/features/kyc/screens/Loading/index.d.ts +0 -2
- package/build/features/kyc/screens/Loading/index.js +0 -2
- package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/kyc/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/kyc/screens/OperatorError/index.d.ts +0 -2
- package/build/features/kyc/screens/OperatorError/index.js +0 -2
- package/build/features/kyc/screens/Success/Success.d.ts +0 -5
- package/build/features/kyc/screens/Success/Success.js +0 -32
- package/build/features/kyc/screens/Success/index.d.ts +0 -2
- package/build/features/kyc/screens/Success/index.js +0 -2
- package/build/features/kyc/screens/Terms/Header.d.ts +0 -6
- package/build/features/kyc/screens/Terms/Header.js +0 -36
- package/build/features/kyc/screens/Terms/Terms.d.ts +0 -4
- package/build/features/kyc/screens/Terms/Terms.js +0 -87
- package/build/features/kyc/screens/Terms/index.d.ts +0 -2
- package/build/features/kyc/screens/Terms/index.js +0 -2
- package/build/features/kyc/screens/TokenError/TokenError.d.ts +0 -5
- package/build/features/kyc/screens/TokenError/TokenError.js +0 -9
- package/build/features/kyc/screens/TokenError/index.d.ts +0 -2
- package/build/features/kyc/screens/TokenError/index.js +0 -2
- package/build/features/kyc/screens/Users/Users.d.ts +0 -3
- package/build/features/kyc/screens/Users/Users.js +0 -76
- package/build/features/kyc/screens/Users/index.d.ts +0 -2
- package/build/features/kyc/screens/Users/index.js +0 -2
- package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +0 -5
- package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +0 -45
- package/build/features/kyc/screens/VerifyNafath/index.d.ts +0 -3
- package/build/features/kyc/screens/VerifyNafath/index.js +0 -2
- package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +0 -5
- package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +0 -44
- package/build/features/kyc/screens/VerifyPaci/index.d.ts +0 -3
- package/build/features/kyc/screens/VerifyPaci/index.js +0 -2
- package/build/features/password/Password.d.ts +0 -14
- package/build/features/password/Password.js +0 -143
- package/build/features/password/index.d.ts +0 -1
- package/build/features/password/index.js +0 -1
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +0 -7
- package/build/features/password/screens/CreatePassword/ConditionText.js +0 -23
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +0 -8
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +0 -22
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +0 -5
- package/build/features/password/screens/CreatePassword/CreatePassword.js +0 -73
- package/build/features/password/screens/CreatePassword/Password.d.ts +0 -5
- package/build/features/password/screens/CreatePassword/Password.js +0 -76
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +0 -7
- package/build/features/password/screens/CreatePassword/PasswordBar.js +0 -29
- package/build/features/password/screens/CreatePassword/index.d.ts +0 -3
- package/build/features/password/screens/CreatePassword/index.js +0 -2
- package/build/features/password/screens/CreatePassword/validation.d.ts +0 -11
- package/build/features/password/screens/CreatePassword/validation.js +0 -8
- package/build/features/password/screens/OTP/OTP.d.ts +0 -8
- package/build/features/password/screens/OTP/OTP.js +0 -91
- package/build/features/password/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/password/screens/OTP/OTPInput.js +0 -49
- package/build/features/password/screens/OTP/index.d.ts +0 -3
- package/build/features/password/screens/OTP/index.js +0 -2
- package/build/features/password/screens/OTP/validation.d.ts +0 -8
- package/build/features/password/screens/OTP/validation.js +0 -4
- package/build/features/password/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/password/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/password/screens/OperatorError/index.d.ts +0 -3
- package/build/features/password/screens/OperatorError/index.js +0 -2
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/password/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/password/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/password/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/password/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/password/screens/Success/Success.d.ts +0 -5
- package/build/features/password/screens/Success/Success.js +0 -26
- package/build/features/password/screens/Success/index.d.ts +0 -3
- package/build/features/password/screens/Success/index.js +0 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/password/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/password/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/password/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/password/screens/Verify/OTPInput.js +0 -51
- package/build/features/password/screens/Verify/Verify.d.ts +0 -5
- package/build/features/password/screens/Verify/Verify.js +0 -79
- package/build/features/password/screens/Verify/index.d.ts +0 -2
- package/build/features/password/screens/Verify/index.js +0 -2
- package/build/features/password/screens/Verify/validation.d.ts +0 -8
- package/build/features/password/screens/Verify/validation.js +0 -4
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +0 -7
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +0 -65
- package/build/features/shared/AcceptancePayouts/index.d.ts +0 -2
- package/build/features/shared/AcceptancePayouts/index.js +0 -2
- package/build/features/shared/Address/Address.d.ts +0 -16
- package/build/features/shared/Address/Address.js +0 -73
- package/build/features/shared/Address/CountryList.d.ts +0 -72
- package/build/features/shared/Address/CountryList.js +0 -89
- package/build/features/shared/Address/InputSelect.d.ts +0 -71
- package/build/features/shared/Address/InputSelect.js +0 -172
- package/build/features/shared/Address/InputText.d.ts +0 -12
- package/build/features/shared/Address/InputText.js +0 -12
- package/build/features/shared/Address/index.d.ts +0 -2
- package/build/features/shared/Address/index.js +0 -2
- package/build/features/shared/Background/Background.d.ts +0 -14
- package/build/features/shared/Background/Background.js +0 -35
- package/build/features/shared/Background/LogoBackground.d.ts +0 -3
- package/build/features/shared/Background/LogoBackground.js +0 -30
- package/build/features/shared/Background/index.d.ts +0 -2
- package/build/features/shared/Background/index.js +0 -2
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +0 -3
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.js +0 -31
- package/build/features/shared/BouncingDotsLoader/index.d.ts +0 -2
- package/build/features/shared/BouncingDotsLoader/index.js +0 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +0 -15
- package/build/features/shared/BusinessCountry/BusinessCountry.js +0 -179
- package/build/features/shared/BusinessCountry/index.d.ts +0 -2
- package/build/features/shared/BusinessCountry/index.js +0 -2
- package/build/features/shared/Button/Button.d.ts +0 -14
- package/build/features/shared/Button/Button.js +0 -116
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +0 -14
- package/build/features/shared/Button/EmailProvidersButtons.js +0 -76
- package/build/features/shared/Button/FlowsButtons.d.ts +0 -30
- package/build/features/shared/Button/FlowsButtons.js +0 -247
- package/build/features/shared/Button/IndividualActionButtons.d.ts +0 -21
- package/build/features/shared/Button/IndividualActionButtons.js +0 -156
- package/build/features/shared/Button/MobileButton.d.ts +0 -9
- package/build/features/shared/Button/MobileButton.js +0 -44
- package/build/features/shared/Button/NafathButton.d.ts +0 -8
- package/build/features/shared/Button/NafathButton.js +0 -55
- package/build/features/shared/Button/SuccessButton.d.ts +0 -9
- package/build/features/shared/Button/SuccessButton.js +0 -86
- package/build/features/shared/Button/index.d.ts +0 -9
- package/build/features/shared/Button/index.js +0 -9
- package/build/features/shared/Calender/Calender.d.ts +0 -14
- package/build/features/shared/Calender/Calender.js +0 -56
- package/build/features/shared/Calender/index.d.ts +0 -2
- package/build/features/shared/Calender/index.js +0 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +0 -8
- package/build/features/shared/CheckIcon/CheckIcon.js +0 -15
- package/build/features/shared/CheckIcon/index.d.ts +0 -2
- package/build/features/shared/CheckIcon/index.js +0 -2
- package/build/features/shared/Chip/Chip.d.ts +0 -3
- package/build/features/shared/Chip/Chip.js +0 -21
- package/build/features/shared/Chip/index.d.ts +0 -2
- package/build/features/shared/Chip/index.js +0 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +0 -6
- package/build/features/shared/ClearIcon/ClearIcon.js +0 -26
- package/build/features/shared/ClearIcon/index.d.ts +0 -2
- package/build/features/shared/ClearIcon/index.js +0 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +0 -9
- package/build/features/shared/Containers/FeatureContainer.js +0 -39
- package/build/features/shared/Containers/ScreenContainer.d.ts +0 -4
- package/build/features/shared/Containers/ScreenContainer.js +0 -29
- package/build/features/shared/Containers/index.d.ts +0 -3
- package/build/features/shared/Containers/index.js +0 -3
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +0 -7
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +0 -58
- package/build/features/shared/CreateAccountLoading/index.d.ts +0 -2
- package/build/features/shared/CreateAccountLoading/index.js +0 -2
- package/build/features/shared/DataLoading/DataLoading.d.ts +0 -9
- package/build/features/shared/DataLoading/DataLoading.js +0 -58
- package/build/features/shared/DataLoading/index.d.ts +0 -2
- package/build/features/shared/DataLoading/index.js +0 -2
- package/build/features/shared/Dialog/CloseDialog.d.ts +0 -11
- package/build/features/shared/Dialog/CloseDialog.js +0 -71
- package/build/features/shared/Dialog/DialogContainer.d.ts +0 -8
- package/build/features/shared/Dialog/DialogContainer.js +0 -57
- package/build/features/shared/Dialog/index.d.ts +0 -4
- package/build/features/shared/Dialog/index.js +0 -4
- package/build/features/shared/Dot/Dot.d.ts +0 -8
- package/build/features/shared/Dot/Dot.js +0 -29
- package/build/features/shared/Dot/index.d.ts +0 -2
- package/build/features/shared/Dot/index.js +0 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +0 -10
- package/build/features/shared/EndAdornment/EndAdornment.js +0 -17
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +0 -7
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +0 -13
- package/build/features/shared/EndAdornment/index.d.ts +0 -3
- package/build/features/shared/EndAdornment/index.js +0 -3
- package/build/features/shared/Footer/Footer.d.ts +0 -2
- package/build/features/shared/Footer/Footer.js +0 -29
- package/build/features/shared/Footer/PoweredByFooter.d.ts +0 -9
- package/build/features/shared/Footer/PoweredByFooter.js +0 -36
- package/build/features/shared/Footer/index.d.ts +0 -3
- package/build/features/shared/Footer/index.js +0 -3
- package/build/features/shared/GenericError/GenericError.d.ts +0 -7
- package/build/features/shared/GenericError/GenericError.js +0 -55
- package/build/features/shared/GenericError/index.d.ts +0 -2
- package/build/features/shared/GenericError/index.js +0 -2
- package/build/features/shared/Input/Input.d.ts +0 -27
- package/build/features/shared/Input/Input.js +0 -55
- package/build/features/shared/Input/index.d.ts +0 -3
- package/build/features/shared/Input/index.js +0 -2
- package/build/features/shared/InputSelect/InputSelect.d.ts +0 -4
- package/build/features/shared/InputSelect/InputSelect.js +0 -33
- package/build/features/shared/InputSelect/index.d.ts +0 -2
- package/build/features/shared/InputSelect/index.js +0 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +0 -2
- package/build/features/shared/Mandatory/Mandatory.js +0 -20
- package/build/features/shared/Mandatory/index.d.ts +0 -2
- package/build/features/shared/Mandatory/index.js +0 -2
- package/build/features/shared/NafathVerification/NafathVerification.d.ts +0 -14
- package/build/features/shared/NafathVerification/NafathVerification.js +0 -92
- package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +0 -8
- package/build/features/shared/NafathVerification/VerifyNafathLoading.js +0 -53
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +0 -5
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +0 -8
- package/build/features/shared/NafathVerification/index.d.ts +0 -2
- package/build/features/shared/NafathVerification/index.js +0 -2
- package/build/features/shared/OTP/OTP.d.ts +0 -11
- package/build/features/shared/OTP/OTP.js +0 -93
- package/build/features/shared/OTP/index.d.ts +0 -2
- package/build/features/shared/OTP/index.js +0 -2
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +0 -12
- package/build/features/shared/PaciVerification/PaciVerification.js +0 -91
- package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +0 -7
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +0 -27
- package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +0 -5
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +0 -8
- package/build/features/shared/PaciVerification/index.d.ts +0 -2
- package/build/features/shared/PaciVerification/index.js +0 -2
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +0 -8
- package/build/features/shared/PasswordIcon/PasswordIcon.js +0 -37
- package/build/features/shared/PasswordIcon/index.d.ts +0 -2
- package/build/features/shared/PasswordIcon/index.js +0 -2
- package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
- package/build/features/shared/PushNotification/PushNotification.js +0 -34
- package/build/features/shared/PushNotification/index.d.ts +0 -2
- package/build/features/shared/PushNotification/index.js +0 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +0 -13
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +0 -102
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +0 -14
- package/build/features/shared/SalesChannels/SalesChannel.js +0 -154
- package/build/features/shared/SalesChannels/index.d.ts +0 -2
- package/build/features/shared/SalesChannels/index.js +0 -2
- package/build/features/shared/Search/Search.d.ts +0 -8
- package/build/features/shared/Search/Search.js +0 -13
- package/build/features/shared/Search/index.d.ts +0 -2
- package/build/features/shared/Search/index.js +0 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +0 -6
- package/build/features/shared/SearchIcon/SearchIcon.js +0 -26
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +0 -25
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +0 -134
- package/build/features/shared/SuccessFlowButtons/index.d.ts +0 -2
- package/build/features/shared/SuccessFlowButtons/index.js +0 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +0 -16
- package/build/features/shared/SuccessScreen/SuccessScreen.js +0 -63
- package/build/features/shared/SuccessScreen/index.d.ts +0 -2
- package/build/features/shared/SuccessScreen/index.js +0 -2
- package/build/features/shared/UploadFile/FileUpload.d.ts +0 -32
- package/build/features/shared/UploadFile/FileUpload.js +0 -267
- package/build/features/shared/UploadFile/UploadFile.d.ts +0 -29
- package/build/features/shared/UploadFile/UploadFile.js +0 -91
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +0 -36
- package/build/features/shared/UploadFile/UploadWrapper.js +0 -115
- package/build/features/shared/UploadFile/index.d.ts +0 -3
- package/build/features/shared/UploadFile/index.js +0 -3
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +0 -29
- package/build/features/shared/UploadMultipleFile/UploadFile.js +0 -273
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +0 -36
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +0 -178
- package/build/features/shared/UploadMultipleFile/index.d.ts +0 -2
- package/build/features/shared/UploadMultipleFile/index.js +0 -2
- package/build/features/signIn/SignIn.d.ts +0 -8
- package/build/features/signIn/SignIn.js +0 -61
- package/build/features/signIn/index.d.ts +0 -1
- package/build/features/signIn/index.js +0 -1
- package/build/features/signIn/screens/Email/Email.d.ts +0 -5
- package/build/features/signIn/screens/Email/Email.js +0 -98
- package/build/features/signIn/screens/Email/EmailField.d.ts +0 -5
- package/build/features/signIn/screens/Email/EmailField.js +0 -55
- package/build/features/signIn/screens/Email/index.d.ts +0 -3
- package/build/features/signIn/screens/Email/index.js +0 -2
- package/build/features/signIn/screens/Email/validation.d.ts +0 -8
- package/build/features/signIn/screens/Email/validation.js +0 -5
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +0 -5
- package/build/features/signIn/screens/Mobile/Mobile.js +0 -111
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +0 -11
- package/build/features/signIn/screens/Mobile/MobileNumber.js +0 -152
- package/build/features/signIn/screens/Mobile/index.d.ts +0 -3
- package/build/features/signIn/screens/Mobile/index.js +0 -2
- package/build/features/signIn/screens/Mobile/validation.d.ts +0 -8
- package/build/features/signIn/screens/Mobile/validation.js +0 -36
- package/build/features/signIn/screens/OTP/OTP.d.ts +0 -5
- package/build/features/signIn/screens/OTP/OTP.js +0 -94
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/signIn/screens/OTP/OTPInput.js +0 -55
- package/build/features/signIn/screens/OTP/index.d.ts +0 -3
- package/build/features/signIn/screens/OTP/index.js +0 -2
- package/build/features/signIn/screens/OTP/validation.d.ts +0 -8
- package/build/features/signIn/screens/OTP/validation.js +0 -4
- package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/signIn/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/signIn/screens/OperatorError/index.d.ts +0 -3
- package/build/features/signIn/screens/OperatorError/index.js +0 -2
- package/build/features/signIn/screens/Password/Password.d.ts +0 -5
- package/build/features/signIn/screens/Password/Password.js +0 -68
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +0 -5
- package/build/features/signIn/screens/Password/PasswordInput.js +0 -28
- package/build/features/signIn/screens/Password/index.d.ts +0 -3
- package/build/features/signIn/screens/Password/index.js +0 -2
- package/build/features/signIn/screens/Password/validation.d.ts +0 -8
- package/build/features/signIn/screens/Password/validation.js +0 -4
- package/build/features/tax/Tax.d.ts +0 -14
- package/build/features/tax/Tax.js +0 -90
- package/build/features/tax/index.d.ts +0 -1
- package/build/features/tax/index.js +0 -1
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/tax/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/tax/screens/OperatorError/index.d.ts +0 -3
- package/build/features/tax/screens/OperatorError/index.js +0 -2
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/tax/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/tax/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/tax/screens/ResetPasswordSuccess/index.d.ts +0 -3
- package/build/features/tax/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/tax/screens/Success/Success.d.ts +0 -5
- package/build/features/tax/screens/Success/Success.js +0 -22
- package/build/features/tax/screens/Success/index.d.ts +0 -3
- package/build/features/tax/screens/Success/index.js +0 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -30
- package/build/features/tax/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +0 -6
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +0 -66
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +0 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +0 -81
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +0 -9
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +0 -50
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +0 -7
- package/build/features/tax/screens/TaxDetails/VATId.js +0 -42
- package/build/features/tax/screens/TaxDetails/index.d.ts +0 -3
- package/build/features/tax/screens/TaxDetails/index.js +0 -2
- package/build/features/tax/screens/TaxDetails/validation.d.ts +0 -14
- package/build/features/tax/screens/TaxDetails/validation.js +0 -8
- package/build/features/tax/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/tax/screens/Verify/OTPInput.js +0 -51
- package/build/features/tax/screens/Verify/Verify.d.ts +0 -5
- package/build/features/tax/screens/Verify/Verify.js +0 -76
- package/build/features/tax/screens/Verify/index.d.ts +0 -2
- package/build/features/tax/screens/Verify/index.js +0 -2
- package/build/features/tax/screens/Verify/validation.d.ts +0 -8
- package/build/features/tax/screens/Verify/validation.js +0 -4
- package/build/features/terminal/Terminal.d.ts +0 -14
- package/build/features/terminal/Terminal.js +0 -95
- package/build/features/terminal/index.d.ts +0 -1
- package/build/features/terminal/index.js +0 -1
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -68
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -50
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -55
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
- package/build/features/terminal/screens/Loading/Loading.js +0 -10
- package/build/features/terminal/screens/Loading/index.d.ts +0 -2
- package/build/features/terminal/screens/Loading/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +0 -3
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +0 -58
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +0 -36
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +0 -34
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
- package/build/features/terminal/screens/OperatorError/index.js +0 -2
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.d.ts +0 -3
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.js +0 -47
- package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +0 -2
- package/build/features/terminal/screens/POSDeviceListPage/index.js +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -32
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -153
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -13
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -51
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -99
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -26
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -30
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
- package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
- package/build/features/terminal/screens/Verify/Verify.js +0 -85
- package/build/features/terminal/screens/Verify/index.d.ts +0 -2
- package/build/features/terminal/screens/Verify/index.js +0 -2
- package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
- package/build/features/terminal/screens/Verify/validation.js +0 -4
- package/build/features/terminal/screens/shared/Header.d.ts +0 -10
- package/build/features/terminal/screens/shared/Header.js +0 -30
- package/build/features/terminal/screens/shared/POSDeviceList.d.ts +0 -11
- package/build/features/terminal/screens/shared/POSDeviceList.js +0 -28
- package/build/features/terminal/screens/shared/index.d.ts +0 -5
- package/build/features/terminal/screens/shared/index.js +0 -5
- package/build/features/terminal/screens/shared/styles.d.ts +0 -196
- package/build/features/terminal/screens/shared/styles.js +0 -155
- package/build/features/terminal/screens/shared/utils.d.ts +0 -7
- package/build/features/terminal/screens/shared/utils.js +0 -24
- package/build/hooks/index.d.ts +0 -25
- package/build/hooks/index.js +0 -25
- package/build/hooks/useAppConfig.d.ts +0 -12
- package/build/hooks/useAppConfig.js +0 -68
- package/build/hooks/useAppDispatch.d.ts +0 -17
- package/build/hooks/useAppDispatch.js +0 -2
- package/build/hooks/useAppSelector.d.ts +0 -3
- package/build/hooks/useAppSelector.js +0 -2
- package/build/hooks/useAppTheme.d.ts +0 -4
- package/build/hooks/useAppTheme.js +0 -16
- package/build/hooks/useContainerDimensions.d.ts +0 -4
- package/build/hooks/useContainerDimensions.js +0 -21
- package/build/hooks/useCountDown.d.ts +0 -10
- package/build/hooks/useCountDown.js +0 -17
- package/build/hooks/useCountUp.d.ts +0 -9
- package/build/hooks/useCountUp.js +0 -17
- package/build/hooks/useCountry.d.ts +0 -5
- package/build/hooks/useCountry.js +0 -8
- package/build/hooks/useDataNoneEditable.d.ts +0 -2
- package/build/hooks/useDataNoneEditable.js +0 -19
- package/build/hooks/useDataVerified.d.ts +0 -6
- package/build/hooks/useDataVerified.js +0 -19
- package/build/hooks/useErrorListener.d.ts +0 -2
- package/build/hooks/useErrorListener.js +0 -27
- package/build/hooks/useEventListener.d.ts +0 -5
- package/build/hooks/useEventListener.js +0 -20
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +0 -11
- package/build/hooks/useExcludeReadOnlyFelids.js +0 -33
- package/build/hooks/useFormDirtyCheck.d.ts +0 -10
- package/build/hooks/useFormDirtyCheck.js +0 -66
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +0 -6
- package/build/hooks/useFormErrorAndUpdateReadOnly.js +0 -48
- package/build/hooks/useFormReadOnly.d.ts +0 -6
- package/build/hooks/useFormReadOnly.js +0 -40
- package/build/hooks/useLanguage.d.ts +0 -4
- package/build/hooks/useLanguage.js +0 -8
- package/build/hooks/useRedirectionListener.d.ts +0 -4
- package/build/hooks/useRedirectionListener.js +0 -12
- package/build/hooks/useSanitizedTranslation.d.ts +0 -2
- package/build/hooks/useSanitizedTranslation.js +0 -15
- package/build/hooks/useScreen.d.ts +0 -3
- package/build/hooks/useScreen.js +0 -14
- package/build/hooks/useSetFromDefaultValues.d.ts +0 -2
- package/build/hooks/useSetFromDefaultValues.js +0 -26
- package/build/hooks/useStepStartedListener.d.ts +0 -1
- package/build/hooks/useStepStartedListener.js +0 -10
- package/build/hooks/useThemeMode.d.ts +0 -4
- package/build/hooks/useThemeMode.js +0 -7
- package/build/hooks/useVerifyToken.d.ts +0 -18
- package/build/hooks/useVerifyToken.js +0 -30
- package/build/hooks/useWindowSize.d.ts +0 -6
- package/build/hooks/useWindowSize.js +0 -19
- package/build/i18n.d.ts +0 -2
- package/build/i18n.js +0 -34
- package/build/index.css +0 -380
- package/build/index.d.ts +0 -18
- package/build/index.js +0 -34
- package/build/theme/components.d.ts +0 -2
- package/build/theme/components.js +0 -26
- package/build/theme/index.d.ts +0 -1
- package/build/theme/index.js +0 -1
- package/build/theme/palette.d.ts +0 -3
- package/build/theme/palette.js +0 -82
- package/build/theme/shadows.d.ts +0 -2
- package/build/theme/shadows.js +0 -27
- package/build/theme/theme.d.ts +0 -2
- package/build/theme/theme.js +0 -43
- package/build/theme/typography.d.ts +0 -2
- package/build/theme/typography.js +0 -35
- package/build/utils/array.d.ts +0 -79
- package/build/utils/array.js +0 -366
- package/build/utils/common.d.ts +0 -6
- package/build/utils/common.js +0 -64
- package/build/utils/date.d.ts +0 -3
- package/build/utils/date.js +0 -17
- package/build/utils/device.d.ts +0 -7
- package/build/utils/device.js +0 -32
- package/build/utils/error.d.ts +0 -4
- package/build/utils/error.js +0 -12
- package/build/utils/gtm.d.ts +0 -6
- package/build/utils/gtm.js +0 -29
- package/build/utils/html.d.ts +0 -4
- package/build/utils/html.js +0 -27
- package/build/utils/index.d.ts +0 -13
- package/build/utils/index.js +0 -13
- package/build/utils/locale.d.ts +0 -2
- package/build/utils/locale.js +0 -23
- package/build/utils/object.d.ts +0 -11
- package/build/utils/object.js +0 -69
- package/build/utils/rsa.d.ts +0 -2
- package/build/utils/rsa.js +0 -19
- package/build/utils/storage.d.ts +0 -5
- package/build/utils/storage.js +0 -21
- package/build/utils/string.d.ts +0 -82
- package/build/utils/string.js +0 -358
- package/build/utils/style.d.ts +0 -1
- package/build/utils/style.js +0 -1
- package/build/utils/validation.d.ts +0 -23
- package/build/utils/validation.js +0 -70
|
@@ -1,2105 +0,0 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
49
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
50
|
-
if (ar || !(i in from)) {
|
|
51
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
52
|
-
ar[i] = from[i];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
56
|
-
};
|
|
57
|
-
var _a;
|
|
58
|
-
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen, handleSetCountryByIso2, onCloseComplete, storeAuthId } from '../../../app/settings';
|
|
60
|
-
import { FlowsTypes, AuthForType, BusinessType, LicenseType, AuthForScreen } from '../../../@types';
|
|
61
|
-
import API from '../../../api';
|
|
62
|
-
import { ADD_NEW_ENTITY, COLLECT_DOB_INFO_NAFATH, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH, SCOPE_MERCHANT } from '../../../constants';
|
|
63
|
-
import { defaultCountry } from '../../../constants';
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData, isNetworkError, isTimeoutError, isInternalServerError } from '../../../utils';
|
|
65
|
-
export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
-
var connectExpress, payload, data;
|
|
67
|
-
return __generator(this, function (_a) {
|
|
68
|
-
switch (_a.label) {
|
|
69
|
-
case 0:
|
|
70
|
-
connectExpress = thunkApi.getState().connectExpress;
|
|
71
|
-
payload = {
|
|
72
|
-
id: connectExpress.data.leadId || '',
|
|
73
|
-
country_code: countryCode,
|
|
74
|
-
encryption_contract: []
|
|
75
|
-
};
|
|
76
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
77
|
-
case 1:
|
|
78
|
-
data = _a.sent();
|
|
79
|
-
return [2, data];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}); });
|
|
83
|
-
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
-
var settings, countryCode, showBoard, data, _a, country_code, contact, phone, status, board_id, board_info_id, isRegistered, screen_1, _b, boardInfo, boardData, error_1;
|
|
85
|
-
var _c, _d, _e, _f, _g;
|
|
86
|
-
return __generator(this, function (_h) {
|
|
87
|
-
switch (_h.label) {
|
|
88
|
-
case 0:
|
|
89
|
-
settings = thunkApi.getState().settings;
|
|
90
|
-
countryCode = settings.data.businessCountry;
|
|
91
|
-
showBoard = settings.data.appConfig.showBoard;
|
|
92
|
-
return [4, API.leadService.retrieveLeadIdentity(leadId)];
|
|
93
|
-
case 1:
|
|
94
|
-
data = _h.sent();
|
|
95
|
-
_a = data || {}, country_code = _a.country_code, contact = _a.contact;
|
|
96
|
-
if (country_code)
|
|
97
|
-
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
98
|
-
phone = (contact || {}).phone;
|
|
99
|
-
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
100
|
-
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
101
|
-
status = data.status, board_id = data.board_id, board_info_id = data.board_info_id;
|
|
102
|
-
if (!country_code && !((_c = settings.data.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2)) {
|
|
103
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP'));
|
|
104
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
105
|
-
}
|
|
106
|
-
isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
|
|
107
|
-
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
|
|
108
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
109
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
110
|
-
}
|
|
111
|
-
if (!isRegistered && country_code) {
|
|
112
|
-
screen_1 = 'CONNECT_EXPRESS_NID_STEP';
|
|
113
|
-
if (!isSA(data.country_code))
|
|
114
|
-
screen_1 = 'CONNECT_EXPRESS_MOBILE_STEP';
|
|
115
|
-
thunkApi.dispatch(handleCurrentActiveScreen(screen_1));
|
|
116
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
117
|
-
}
|
|
118
|
-
if (!isRegistered && !isSA(settings.data.businessCountry.iso2)) {
|
|
119
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
120
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
121
|
-
}
|
|
122
|
-
if (!isRegistered && isSA(settings.data.businessCountry.iso2)) {
|
|
123
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_NID_STEP'));
|
|
124
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
125
|
-
}
|
|
126
|
-
if ((_d = data === null || data === void 0 ? void 0 : data.identification) === null || _d === void 0 ? void 0 : _d.authentication_id) {
|
|
127
|
-
thunkApi.dispatch(storeAuthId((_e = data === null || data === void 0 ? void 0 : data.identification) === null || _e === void 0 ? void 0 : _e.authentication_id));
|
|
128
|
-
}
|
|
129
|
-
if (isRegistered && !showBoard) {
|
|
130
|
-
(_g = (_f = settings.data.appConfig).onFlowCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, data);
|
|
131
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
132
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
133
|
-
}
|
|
134
|
-
if (isRegistered && !(board_id && board_info_id)) {
|
|
135
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
136
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
137
|
-
}
|
|
138
|
-
if (!(isRegistered && board_id && board_info_id)) return [3, 5];
|
|
139
|
-
_h.label = 2;
|
|
140
|
-
case 2:
|
|
141
|
-
_h.trys.push([2, 4, , 5]);
|
|
142
|
-
return [4, Promise.all([
|
|
143
|
-
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
144
|
-
API.boardService.retrieveBoardDetails(board_id)
|
|
145
|
-
])];
|
|
146
|
-
case 3:
|
|
147
|
-
_b = _h.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
148
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
149
|
-
return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
|
|
150
|
-
case 4:
|
|
151
|
-
error_1 = _h.sent();
|
|
152
|
-
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
153
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
154
|
-
case 5: return [2, { data: data, countryCode: countryCode }];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}); });
|
|
158
|
-
export var getLeadByIdAsync = createAsyncThunk('expressConnect/getLeadByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
|
-
var settings, countryCode, data, phone;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
settings = thunkApi.getState().settings;
|
|
164
|
-
countryCode = settings.data.businessCountry;
|
|
165
|
-
return [4, API.leadService.getLeadById(leadId)];
|
|
166
|
-
case 1:
|
|
167
|
-
data = _a.sent();
|
|
168
|
-
phone = (data.contact || {}).phone;
|
|
169
|
-
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
170
|
-
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
171
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}); });
|
|
175
|
-
export var retrieveEntityListAsync = createAsyncThunk('connectExpress/retrieveEntityListAsync', function (leadId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
|
-
var data;
|
|
177
|
-
return __generator(this, function (_a) {
|
|
178
|
-
switch (_a.label) {
|
|
179
|
-
case 0: return [4, API.leadService.retrieveEntityList(leadId)];
|
|
180
|
-
case 1:
|
|
181
|
-
data = (_a.sent()).data;
|
|
182
|
-
return [2, data];
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}); });
|
|
186
|
-
export var retrieveAuthenticationListAsync = createAsyncThunk('connectExpress/retrieveAuthenticationListAsync', function (_a) {
|
|
187
|
-
var individualId = _a.individualId;
|
|
188
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
-
var brandList, entityList, _b, brandResponse, entityResponse, err_1;
|
|
190
|
-
return __generator(this, function (_c) {
|
|
191
|
-
switch (_c.label) {
|
|
192
|
-
case 0:
|
|
193
|
-
brandList = undefined;
|
|
194
|
-
entityList = undefined;
|
|
195
|
-
_c.label = 1;
|
|
196
|
-
case 1:
|
|
197
|
-
_c.trys.push([1, 3, , 4]);
|
|
198
|
-
return [4, Promise.all([
|
|
199
|
-
API.brandService.getBrandList({ individual_id: individualId }),
|
|
200
|
-
API.entityService.getEntityListUsingIndividualId(individualId)
|
|
201
|
-
])];
|
|
202
|
-
case 2:
|
|
203
|
-
_b = _c.sent(), brandResponse = _b[0], entityResponse = _b[1];
|
|
204
|
-
brandList = brandResponse.brands;
|
|
205
|
-
entityList = entityResponse.list;
|
|
206
|
-
return [3, 4];
|
|
207
|
-
case 3:
|
|
208
|
-
err_1 = _c.sent();
|
|
209
|
-
console.error('Error fetching data:', err_1);
|
|
210
|
-
return [3, 4];
|
|
211
|
-
case 4: return [2, { brandList: brandList || [], entityList: entityList || [] }];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
export var getMerchantListAsync = createAsyncThunk('connectExpress/getMerchantListAsync', function (_a, thunkApi) {
|
|
217
|
-
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
|
|
218
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
219
|
-
var _b, settings, connectExpress, leadId, platforms, payment_provider, payload, merchants, list;
|
|
220
|
-
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
221
|
-
return __generator(this, function (_l) {
|
|
222
|
-
switch (_l.label) {
|
|
223
|
-
case 0:
|
|
224
|
-
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
225
|
-
leadId = (_d = (_c = connectExpress.data.responseData) === null || _c === void 0 ? void 0 : _c.authData) === null || _d === void 0 ? void 0 : _d.lead_id;
|
|
226
|
-
platforms = (_g = (_f = (_e = connectExpress.data.responseData) === null || _e === void 0 ? void 0 : _e.leadData) === null || _f === void 0 ? void 0 : _f.platforms) !== null && _g !== void 0 ? _g : settings.data.appConfig.platforms;
|
|
227
|
-
payment_provider = (_k = (_j = (_h = connectExpress.data.responseData) === null || _h === void 0 ? void 0 : _h.leadData) === null || _j === void 0 ? void 0 : _j.payment_provider) !== null && _k !== void 0 ? _k : settings.data.appConfig.paymentProvider;
|
|
228
|
-
payload = {
|
|
229
|
-
business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
230
|
-
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
231
|
-
lead_id: leadId || '',
|
|
232
|
-
create_if_not_present: true,
|
|
233
|
-
platforms: platforms,
|
|
234
|
-
payment_provider: payment_provider
|
|
235
|
-
};
|
|
236
|
-
return [4, API.entityService.getMerchantListUsingEntityId(payload)];
|
|
237
|
-
case 1:
|
|
238
|
-
merchants = (_l.sent()).merchants;
|
|
239
|
-
list = merchants || [];
|
|
240
|
-
if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
|
|
241
|
-
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTH_MERCHANT_LIST_STEP'));
|
|
242
|
-
return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
|
|
243
|
-
}
|
|
244
|
-
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTH_ACCOUNT_CREATED_STEP')); });
|
|
245
|
-
return [2, { list: list, brandInfo: brandInfo, entityInfo: entityInfo }];
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
export var createMobileAuthAsync = createAsyncThunk('connectExpress/createMobileAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
251
|
-
var _a, settings, connectExpress, isStartWithZero, mobileNumber, requestBody, data;
|
|
252
|
-
var _b, _c, _d;
|
|
253
|
-
return __generator(this, function (_e) {
|
|
254
|
-
switch (_e.label) {
|
|
255
|
-
case 0:
|
|
256
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
257
|
-
isStartWithZero = (_b = params.mobile) === null || _b === void 0 ? void 0 : _b.startsWith('0');
|
|
258
|
-
mobileNumber = isStartWithZero ? params.mobile.slice(1) : params.mobile;
|
|
259
|
-
requestBody = {
|
|
260
|
-
country: settings.data.businessCountry.iso2,
|
|
261
|
-
scope: settings.data.appConfig.scope,
|
|
262
|
-
lang: settings.data.language,
|
|
263
|
-
lead_id: connectExpress.data.leadId,
|
|
264
|
-
user_credentail: {
|
|
265
|
-
phone: mobileNumber,
|
|
266
|
-
code: params.countryCode.idd_prefix.toString()
|
|
267
|
-
},
|
|
268
|
-
sign_in: false,
|
|
269
|
-
is_lead: true,
|
|
270
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_MOBILE,
|
|
271
|
-
encryption_contract: ['user_credentail.phone', 'user_credentail.code']
|
|
272
|
-
};
|
|
273
|
-
return [4, API.authService.createExpressAuth(requestBody)];
|
|
274
|
-
case 1:
|
|
275
|
-
data = _e.sent();
|
|
276
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
277
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.user_credentail);
|
|
278
|
-
return [2, { response: data, formData: params }];
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
}); });
|
|
282
|
-
export var resendMobileAuthOTP = createAsyncThunk('connectExpress/resendMobileAuthOTPExpress', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
283
|
-
var _a, settings, connectExpress, isStartWithZero, mobileNumber, requestBody, data;
|
|
284
|
-
var _b;
|
|
285
|
-
return __generator(this, function (_c) {
|
|
286
|
-
switch (_c.label) {
|
|
287
|
-
case 0:
|
|
288
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
289
|
-
isStartWithZero = (_b = params.mobile) === null || _b === void 0 ? void 0 : _b.startsWith('0');
|
|
290
|
-
mobileNumber = isStartWithZero ? params.mobile.slice(1) : params.mobile;
|
|
291
|
-
requestBody = {
|
|
292
|
-
country: settings.data.businessCountry.iso2,
|
|
293
|
-
scope: settings.data.appConfig.scope,
|
|
294
|
-
lang: settings.data.language,
|
|
295
|
-
lead_id: connectExpress.data.leadId,
|
|
296
|
-
user_credentail: {
|
|
297
|
-
phone: mobileNumber,
|
|
298
|
-
code: params.countryCode.idd_prefix.toString()
|
|
299
|
-
},
|
|
300
|
-
sign_in: false,
|
|
301
|
-
is_lead: true,
|
|
302
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_MOBILE,
|
|
303
|
-
encryption_contract: ['user_credentail.phone', 'user_credentail.code']
|
|
304
|
-
};
|
|
305
|
-
return [4, API.authService.createExpressAuth(requestBody)];
|
|
306
|
-
case 1:
|
|
307
|
-
data = _c.sent();
|
|
308
|
-
return [2, { response: data, formData: params }];
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
}); });
|
|
312
|
-
export var createNafathAuth = createAsyncThunk('connectExpress/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
-
var _a, settings, connectExpress, requestBody, data;
|
|
314
|
-
var _b, _c;
|
|
315
|
-
return __generator(this, function (_d) {
|
|
316
|
-
switch (_d.label) {
|
|
317
|
-
case 0:
|
|
318
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
319
|
-
requestBody = {
|
|
320
|
-
country: settings.data.businessCountry.iso2,
|
|
321
|
-
scope: settings.data.appConfig.scope,
|
|
322
|
-
lang: settings.data.language,
|
|
323
|
-
lead_id: connectExpress.data.leadId,
|
|
324
|
-
user_credentail: {
|
|
325
|
-
identification_id: params.nid,
|
|
326
|
-
identification_id_type: IDENTIFICATION_TYPE.NAFATH,
|
|
327
|
-
country_code: settings.data.businessCountry.iso2
|
|
328
|
-
},
|
|
329
|
-
sign_in: false,
|
|
330
|
-
is_lead: true,
|
|
331
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_NID,
|
|
332
|
-
encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
|
|
333
|
-
};
|
|
334
|
-
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
335
|
-
case 1:
|
|
336
|
-
data = _d.sent();
|
|
337
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
338
|
-
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody);
|
|
339
|
-
return [2, { response: data, formData: __assign(__assign({}, params), { type: IDENTIFICATION_TYPE.NAFATH }) }];
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
}); });
|
|
343
|
-
export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
344
|
-
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, error_2, isSuccess, isFailed, authId, leadId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount, askDobInfo;
|
|
345
|
-
var _d, _e, _f, _g, _h, _j, _k, _l;
|
|
346
|
-
return __generator(this, function (_m) {
|
|
347
|
-
switch (_m.label) {
|
|
348
|
-
case 0:
|
|
349
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
350
|
-
authData = (connectExpress.data.responseData || {}).authData;
|
|
351
|
-
_b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
|
|
352
|
-
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
353
|
-
bi = settings.data.deviceInfo.browser.browser_id;
|
|
354
|
-
isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
|
|
355
|
-
authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
|
|
356
|
-
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
357
|
-
interval = 3;
|
|
358
|
-
maxCalls = Math.floor(expiry / interval);
|
|
359
|
-
count = 1;
|
|
360
|
-
_m.label = 1;
|
|
361
|
-
case 1:
|
|
362
|
-
if (!(count <= maxCalls)) return [3, 12];
|
|
363
|
-
if (thunkApi.signal.aborted) {
|
|
364
|
-
return [3, 12];
|
|
365
|
-
}
|
|
366
|
-
data = undefined;
|
|
367
|
-
_m.label = 2;
|
|
368
|
-
case 2:
|
|
369
|
-
_m.trys.push([2, 4, , 5]);
|
|
370
|
-
return [4, API.authService.getVerifyExpressAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
371
|
-
case 3:
|
|
372
|
-
data = _m.sent();
|
|
373
|
-
return [3, 5];
|
|
374
|
-
case 4:
|
|
375
|
-
error_2 = _m.sent();
|
|
376
|
-
if (!isNetworkError(error_2.message) && !isTimeoutError(error_2.message)) {
|
|
377
|
-
throw new Error(error_2);
|
|
378
|
-
}
|
|
379
|
-
return [3, 5];
|
|
380
|
-
case 5:
|
|
381
|
-
isSuccess = ((_e = (_d = data === null || data === void 0 ? void 0 : data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'success';
|
|
382
|
-
isFailed = ((_g = (_f = data === null || data === void 0 ? void 0 : data.auth) === null || _f === void 0 ? void 0 : _f.status) === null || _g === void 0 ? void 0 : _g.toLowerCase()) === 'failed';
|
|
383
|
-
if (isFailed) {
|
|
384
|
-
(_h = params.onFailure) === null || _h === void 0 ? void 0 : _h.call(params);
|
|
385
|
-
return [2, { data: data }];
|
|
386
|
-
}
|
|
387
|
-
if (!isSuccess) return [3, 9];
|
|
388
|
-
authId = (_j = data.auth) === null || _j === void 0 ? void 0 : _j.id;
|
|
389
|
-
leadId = (_k = data.auth) === null || _k === void 0 ? void 0 : _k.lead_id;
|
|
390
|
-
thunkApi.dispatch(storeAuthId(authId));
|
|
391
|
-
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
392
|
-
if (settings.data.appConfig.mode === 'popup') {
|
|
393
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
394
|
-
thunkApi.dispatch(handleOpen(false));
|
|
395
|
-
return [2, { data: data }];
|
|
396
|
-
}
|
|
397
|
-
if (redirectUrl) {
|
|
398
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
399
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
400
|
-
return [2, { data: data }];
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
params.showLoadingScreenAfterNafathSuccess();
|
|
404
|
-
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 7];
|
|
405
|
-
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
406
|
-
case 6:
|
|
407
|
-
_c = _m.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
408
|
-
if (brandList.length && entityList.length) {
|
|
409
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
410
|
-
return [2, { data: data }];
|
|
411
|
-
}
|
|
412
|
-
_m.label = 7;
|
|
413
|
-
case 7: return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
414
|
-
case 8:
|
|
415
|
-
_m.sent();
|
|
416
|
-
stepName = data.step_name;
|
|
417
|
-
needToCollectMoreInfo = stepName === 'collect_info';
|
|
418
|
-
creatingAccount = stepName === 'create_account';
|
|
419
|
-
askDobInfo = stepName === COLLECT_DOB_INFO_NAFATH;
|
|
420
|
-
(_l = params.onSuccess) === null || _l === void 0 ? void 0 : _l.call(params);
|
|
421
|
-
if (askDobInfo) {
|
|
422
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
423
|
-
}
|
|
424
|
-
if (creatingAccount) {
|
|
425
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
426
|
-
}
|
|
427
|
-
if (needToCollectMoreInfo) {
|
|
428
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
429
|
-
}
|
|
430
|
-
return [2, { data: data, isNextScreenIsDob: askDobInfo }];
|
|
431
|
-
case 9: return [4, sleep(interval * 1000)];
|
|
432
|
-
case 10:
|
|
433
|
-
_m.sent();
|
|
434
|
-
_m.label = 11;
|
|
435
|
-
case 11:
|
|
436
|
-
count++;
|
|
437
|
-
return [3, 1];
|
|
438
|
-
case 12: throw new Error(NAFATH_VERIFICATION_FAILED);
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
}); });
|
|
442
|
-
export var createCivilIdAuthAsync = createAsyncThunk('connectExpress/createCivilAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
443
|
-
var _a, settings, connectExpress, civilId, countryCode, requestBody, data;
|
|
444
|
-
var _b, _c;
|
|
445
|
-
return __generator(this, function (_d) {
|
|
446
|
-
switch (_d.label) {
|
|
447
|
-
case 0:
|
|
448
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
449
|
-
civilId = params.civilId;
|
|
450
|
-
countryCode = settings.data.businessCountry.iso2;
|
|
451
|
-
requestBody = {
|
|
452
|
-
country: countryCode,
|
|
453
|
-
scope: settings.data.appConfig.scope,
|
|
454
|
-
lang: settings.data.language,
|
|
455
|
-
lead_id: connectExpress.data.leadId,
|
|
456
|
-
user_credentail: {
|
|
457
|
-
identification_id: civilId,
|
|
458
|
-
country_code: countryCode
|
|
459
|
-
},
|
|
460
|
-
sign_in: false,
|
|
461
|
-
is_lead: true,
|
|
462
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
|
|
463
|
-
encryption_contract: ['user_credentail.identification_id']
|
|
464
|
-
};
|
|
465
|
-
return [4, API.authService.createExpressAuth(requestBody)];
|
|
466
|
-
case 1:
|
|
467
|
-
data = _d.sent();
|
|
468
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
469
|
-
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
|
|
470
|
-
return [2, { response: data, formData: params }];
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}); });
|
|
474
|
-
export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
475
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, mobileData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList, isKuwait, next;
|
|
476
|
-
var _f, _g;
|
|
477
|
-
return __generator(this, function (_h) {
|
|
478
|
-
switch (_h.label) {
|
|
479
|
-
case 0:
|
|
480
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
481
|
-
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, mobileData = _b.mobileData;
|
|
482
|
-
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
483
|
-
throw new Error('Auth data is missing');
|
|
484
|
-
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
485
|
-
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
486
|
-
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
487
|
-
bi = settings.data.deviceInfo.browser.browser_id;
|
|
488
|
-
isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
|
|
489
|
-
authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
|
|
490
|
-
payload = {
|
|
491
|
-
auth_token: auth_token,
|
|
492
|
-
lead_id: leadId,
|
|
493
|
-
data: params.otp,
|
|
494
|
-
auth_type: 2,
|
|
495
|
-
device_token: device_token,
|
|
496
|
-
service_name: service_name,
|
|
497
|
-
sign_in: false,
|
|
498
|
-
terms: isLeadIdPassed && mobileData.termAndConditionChecked ? ['general'] : undefined,
|
|
499
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_MOBILE,
|
|
500
|
-
encryption_contract: ['data']
|
|
501
|
-
};
|
|
502
|
-
return [4, API.authService.verifyExpressAuth(payload)];
|
|
503
|
-
case 1:
|
|
504
|
-
data = _h.sent();
|
|
505
|
-
sendCustomEventToGTM({
|
|
506
|
-
event: 'Send Event',
|
|
507
|
-
event_category: 'User Registration Flow',
|
|
508
|
-
event_action: 'First OTP Success'
|
|
509
|
-
});
|
|
510
|
-
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
511
|
-
authId = data.auth.id;
|
|
512
|
-
thunkApi.dispatch(storeAuthId(authId));
|
|
513
|
-
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
514
|
-
if (settings.data.appConfig.mode === 'popup') {
|
|
515
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
516
|
-
thunkApi.dispatch(handleOpen(false));
|
|
517
|
-
return [2, data];
|
|
518
|
-
}
|
|
519
|
-
if (redirectUrl) {
|
|
520
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
521
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
522
|
-
return [2, data];
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
|
|
526
|
-
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
527
|
-
case 2:
|
|
528
|
-
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
529
|
-
if (brandList.length && entityList.length) {
|
|
530
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
531
|
-
return [2, data];
|
|
532
|
-
}
|
|
533
|
-
_h.label = 3;
|
|
534
|
-
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead_id)).unwrap()];
|
|
535
|
-
case 4:
|
|
536
|
-
_h.sent();
|
|
537
|
-
isKuwait = isKW(settings.data.businessCountry.iso2);
|
|
538
|
-
next = 'CONNECT_EXPRESS_NID_MISSED_STEP';
|
|
539
|
-
if (isKuwait)
|
|
540
|
-
next = 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP';
|
|
541
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(next)); });
|
|
542
|
-
return [2, data];
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
|
-
}); });
|
|
546
|
-
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
547
|
-
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, error_3, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
548
|
-
var _d, _e, _f;
|
|
549
|
-
return __generator(this, function (_g) {
|
|
550
|
-
switch (_g.label) {
|
|
551
|
-
case 0:
|
|
552
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
553
|
-
authData = (connectExpress.data.responseData || {}).authData;
|
|
554
|
-
_b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
|
|
555
|
-
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
556
|
-
bi = settings.data.deviceInfo.browser.browser_id;
|
|
557
|
-
isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
|
|
558
|
-
authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
|
|
559
|
-
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
560
|
-
interval = 3;
|
|
561
|
-
maxCalls = Math.floor(expiry / interval);
|
|
562
|
-
count = 1;
|
|
563
|
-
_g.label = 1;
|
|
564
|
-
case 1:
|
|
565
|
-
if (!(count <= maxCalls)) return [3, 12];
|
|
566
|
-
if (thunkApi.signal.aborted) {
|
|
567
|
-
return [3, 12];
|
|
568
|
-
}
|
|
569
|
-
data = undefined;
|
|
570
|
-
_g.label = 2;
|
|
571
|
-
case 2:
|
|
572
|
-
_g.trys.push([2, 4, , 5]);
|
|
573
|
-
return [4, API.authService.getVerifyExpressAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
574
|
-
case 3:
|
|
575
|
-
data = _g.sent();
|
|
576
|
-
return [3, 5];
|
|
577
|
-
case 4:
|
|
578
|
-
error_3 = _g.sent();
|
|
579
|
-
if (!isNetworkError(error_3.message) && !isTimeoutError(error_3.message)) {
|
|
580
|
-
throw new Error(error_3);
|
|
581
|
-
}
|
|
582
|
-
return [3, 5];
|
|
583
|
-
case 5:
|
|
584
|
-
isSuccess = ((_e = (_d = data === null || data === void 0 ? void 0 : data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'success';
|
|
585
|
-
if (!isSuccess) return [3, 9];
|
|
586
|
-
authId = data.auth.id;
|
|
587
|
-
thunkApi.dispatch(storeAuthId(authId));
|
|
588
|
-
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
589
|
-
if (settings.data.appConfig.mode === 'popup') {
|
|
590
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
591
|
-
thunkApi.dispatch(handleOpen(false));
|
|
592
|
-
return [2, data];
|
|
593
|
-
}
|
|
594
|
-
if (redirectUrl) {
|
|
595
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
596
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
597
|
-
return [2, data];
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 7];
|
|
601
|
-
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
602
|
-
case 6:
|
|
603
|
-
_c = _g.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
604
|
-
if (brandList.length && entityList.length) {
|
|
605
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
606
|
-
return [2, data];
|
|
607
|
-
}
|
|
608
|
-
_g.label = 7;
|
|
609
|
-
case 7: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
610
|
-
case 8:
|
|
611
|
-
_g.sent();
|
|
612
|
-
stepName = data.step_name;
|
|
613
|
-
needToCollectMoreInfo = stepName === 'collect_info';
|
|
614
|
-
creatingAccount = stepName === 'create_account';
|
|
615
|
-
(_f = params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
|
|
616
|
-
if (creatingAccount) {
|
|
617
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
618
|
-
}
|
|
619
|
-
if (needToCollectMoreInfo) {
|
|
620
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
621
|
-
}
|
|
622
|
-
return [2, data];
|
|
623
|
-
case 9: return [4, sleep(interval * 1000)];
|
|
624
|
-
case 10:
|
|
625
|
-
_g.sent();
|
|
626
|
-
_g.label = 11;
|
|
627
|
-
case 11:
|
|
628
|
-
count++;
|
|
629
|
-
return [3, 1];
|
|
630
|
-
case 12: throw new Error('paci_verification_failed');
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
}); });
|
|
634
|
-
export var createCivilIDAuthIdentityAsync = createAsyncThunk('connectExpress/createCivilIDAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
635
|
-
var _a, settings, connectExpress, civilId, countryCode, requestBody, data;
|
|
636
|
-
var _b, _c, _d;
|
|
637
|
-
return __generator(this, function (_e) {
|
|
638
|
-
switch (_e.label) {
|
|
639
|
-
case 0:
|
|
640
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
641
|
-
civilId = params.civilId;
|
|
642
|
-
countryCode = settings.data.businessCountry.iso2;
|
|
643
|
-
requestBody = {
|
|
644
|
-
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
645
|
-
identification: {
|
|
646
|
-
id: civilId,
|
|
647
|
-
issued_country_code: countryCode,
|
|
648
|
-
type: 'civil_id'
|
|
649
|
-
},
|
|
650
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
|
|
651
|
-
encryption_contract: ['identification.id', 'identification.issued_country_code', 'identification.type']
|
|
652
|
-
};
|
|
653
|
-
return [4, API.leadService.updateLead(requestBody)];
|
|
654
|
-
case 1:
|
|
655
|
-
data = _e.sent();
|
|
656
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
657
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.identification);
|
|
658
|
-
return [2, { response: data, formData: params }];
|
|
659
|
-
}
|
|
660
|
-
});
|
|
661
|
-
}); });
|
|
662
|
-
export var createNIDNafathAuthIdentityAsync = createAsyncThunk('connectExpress/createNIDNafathAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
663
|
-
var _a, settings, connectExpress, nid, dob, nidType, countryCode, authData, requestBody, data;
|
|
664
|
-
var _b, _c, _d;
|
|
665
|
-
return __generator(this, function (_e) {
|
|
666
|
-
switch (_e.label) {
|
|
667
|
-
case 0:
|
|
668
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
669
|
-
nid = params.nid, dob = params.dob;
|
|
670
|
-
nidType = IDENTIFICATION_TYPE.NAFATH;
|
|
671
|
-
countryCode = settings.data.businessCountry.iso2;
|
|
672
|
-
if (isOtherThanKWOrSA(countryCode)) {
|
|
673
|
-
nidType = IDENTIFICATION_TYPE.NID;
|
|
674
|
-
}
|
|
675
|
-
authData = (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData;
|
|
676
|
-
requestBody = {
|
|
677
|
-
id: authData === null || authData === void 0 ? void 0 : authData.lead_id,
|
|
678
|
-
identification: {
|
|
679
|
-
id: nid,
|
|
680
|
-
issued_country_code: countryCode,
|
|
681
|
-
type: nidType
|
|
682
|
-
},
|
|
683
|
-
date_of_birth: nidType === IDENTIFICATION_TYPE.NAFATH ? undefined : dob,
|
|
684
|
-
country_code: countryCode,
|
|
685
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.IDENTITY_AUTH,
|
|
686
|
-
encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
|
|
687
|
-
};
|
|
688
|
-
return [4, API.leadService.updateLead(requestBody)];
|
|
689
|
-
case 1:
|
|
690
|
-
data = _e.sent();
|
|
691
|
-
if (!((data === null || data === void 0 ? void 0 : data.verify_token) !== 'null')) return [3, 2];
|
|
692
|
-
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP'));
|
|
693
|
-
return [3, 4];
|
|
694
|
-
case 2:
|
|
695
|
-
if (!isOtherThanKWOrSA(countryCode)) return [3, 4];
|
|
696
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(data.id)).unwrap()];
|
|
697
|
-
case 3:
|
|
698
|
-
_e.sent();
|
|
699
|
-
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'));
|
|
700
|
-
_e.label = 4;
|
|
701
|
-
case 4:
|
|
702
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody);
|
|
703
|
-
return [2, { response: { random: data.random, expiry: data.expiry, verify_token: data.verify_token }, formData: params }];
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
}); });
|
|
707
|
-
export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNafathIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
708
|
-
var connectExpress, authData, expiry, interval, maxCalls, count, data, error_4, isSuccess, isFailed, needToCollectMoreInfo, creatingAccount, askDobInfo, collectPhoneOwnershipScreen;
|
|
709
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
710
|
-
return __generator(this, function (_h) {
|
|
711
|
-
switch (_h.label) {
|
|
712
|
-
case 0:
|
|
713
|
-
connectExpress = thunkApi.getState().connectExpress;
|
|
714
|
-
authData = (connectExpress.data.responseData || {}).authData;
|
|
715
|
-
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
716
|
-
interval = 3;
|
|
717
|
-
maxCalls = Math.floor(expiry / interval);
|
|
718
|
-
count = 1;
|
|
719
|
-
_h.label = 1;
|
|
720
|
-
case 1:
|
|
721
|
-
if (!(count <= maxCalls)) return [3, 10];
|
|
722
|
-
if (thunkApi.signal.aborted) {
|
|
723
|
-
return [3, 10];
|
|
724
|
-
}
|
|
725
|
-
data = undefined;
|
|
726
|
-
_h.label = 2;
|
|
727
|
-
case 2:
|
|
728
|
-
_h.trys.push([2, 4, , 5]);
|
|
729
|
-
return [4, API.authService.getExpressTokenVerify({ token: authData === null || authData === void 0 ? void 0 : authData.verify_token, leadId: authData === null || authData === void 0 ? void 0 : authData.lead_id }, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
730
|
-
case 3:
|
|
731
|
-
data = _h.sent();
|
|
732
|
-
return [3, 5];
|
|
733
|
-
case 4:
|
|
734
|
-
error_4 = _h.sent();
|
|
735
|
-
if (!isNetworkError(error_4.message) && !isTimeoutError(error_4.message)) {
|
|
736
|
-
throw new Error(error_4);
|
|
737
|
-
}
|
|
738
|
-
return [3, 5];
|
|
739
|
-
case 5:
|
|
740
|
-
isSuccess = ((_b = (_a = data === null || data === void 0 ? void 0 : data.auth) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
741
|
-
isFailed = ((_d = (_c = data === null || data === void 0 ? void 0 : data.auth) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.toLowerCase()) === 'failed';
|
|
742
|
-
if (isFailed) {
|
|
743
|
-
(_e = params.onFailure) === null || _e === void 0 ? void 0 : _e.call(params);
|
|
744
|
-
return [2, { data: data }];
|
|
745
|
-
}
|
|
746
|
-
if (!isSuccess) return [3, 7];
|
|
747
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync((_f = data.auth) === null || _f === void 0 ? void 0 : _f.lead_id)).unwrap()];
|
|
748
|
-
case 6:
|
|
749
|
-
_h.sent();
|
|
750
|
-
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
751
|
-
creatingAccount = data.step_name === 'create_account';
|
|
752
|
-
askDobInfo = data.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
753
|
-
collectPhoneOwnershipScreen = data.step_name === CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP;
|
|
754
|
-
(_g = params.onSuccess) === null || _g === void 0 ? void 0 : _g.call(params);
|
|
755
|
-
if (collectPhoneOwnershipScreen) {
|
|
756
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('COLLECT_MOBILE_OWNERSHIP')); });
|
|
757
|
-
}
|
|
758
|
-
if (askDobInfo) {
|
|
759
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
760
|
-
}
|
|
761
|
-
if (creatingAccount) {
|
|
762
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
763
|
-
}
|
|
764
|
-
if (needToCollectMoreInfo) {
|
|
765
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
766
|
-
}
|
|
767
|
-
return [2, { data: data, isNextScreenIsDob: askDobInfo }];
|
|
768
|
-
case 7: return [4, sleep(interval * 1000)];
|
|
769
|
-
case 8:
|
|
770
|
-
_h.sent();
|
|
771
|
-
_h.label = 9;
|
|
772
|
-
case 9:
|
|
773
|
-
count++;
|
|
774
|
-
return [3, 1];
|
|
775
|
-
case 10: throw new Error(NAFATH_VERIFICATION_FAILED);
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
}); });
|
|
779
|
-
export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verifyPaciLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
780
|
-
var connectExpress, authData, expiry, interval, maxCalls, count, data, error_5, isSuccess, needToCollectMoreInfo, creatingAccount;
|
|
781
|
-
var _a, _b, _c;
|
|
782
|
-
return __generator(this, function (_d) {
|
|
783
|
-
switch (_d.label) {
|
|
784
|
-
case 0:
|
|
785
|
-
connectExpress = thunkApi.getState().connectExpress;
|
|
786
|
-
authData = (connectExpress.data.responseData || {}).authData;
|
|
787
|
-
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
788
|
-
interval = 3;
|
|
789
|
-
maxCalls = Math.floor(expiry / interval);
|
|
790
|
-
count = 1;
|
|
791
|
-
_d.label = 1;
|
|
792
|
-
case 1:
|
|
793
|
-
if (!(count <= maxCalls)) return [3, 10];
|
|
794
|
-
if (thunkApi.signal.aborted) {
|
|
795
|
-
return [3, 10];
|
|
796
|
-
}
|
|
797
|
-
data = undefined;
|
|
798
|
-
_d.label = 2;
|
|
799
|
-
case 2:
|
|
800
|
-
_d.trys.push([2, 4, , 5]);
|
|
801
|
-
return [4, API.authService.getExpressTokenVerify({ token: authData === null || authData === void 0 ? void 0 : authData.verify_token, leadId: authData === null || authData === void 0 ? void 0 : authData.lead_id }, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
802
|
-
case 3:
|
|
803
|
-
data = _d.sent();
|
|
804
|
-
return [3, 5];
|
|
805
|
-
case 4:
|
|
806
|
-
error_5 = _d.sent();
|
|
807
|
-
if (!isNetworkError(error_5.message) && !isTimeoutError(error_5.message)) {
|
|
808
|
-
throw new Error(error_5);
|
|
809
|
-
}
|
|
810
|
-
return [3, 5];
|
|
811
|
-
case 5:
|
|
812
|
-
isSuccess = ((_b = (_a = data === null || data === void 0 ? void 0 : data.auth) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
813
|
-
if (!isSuccess) return [3, 7];
|
|
814
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
815
|
-
case 6:
|
|
816
|
-
_d.sent();
|
|
817
|
-
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
818
|
-
creatingAccount = data.step_name === 'create_account';
|
|
819
|
-
(_c = params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params);
|
|
820
|
-
if (creatingAccount) {
|
|
821
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
822
|
-
}
|
|
823
|
-
if (needToCollectMoreInfo) {
|
|
824
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
825
|
-
}
|
|
826
|
-
return [2, data];
|
|
827
|
-
case 7: return [4, sleep(interval * 1000)];
|
|
828
|
-
case 8:
|
|
829
|
-
_d.sent();
|
|
830
|
-
_d.label = 9;
|
|
831
|
-
case 9:
|
|
832
|
-
count++;
|
|
833
|
-
return [3, 1];
|
|
834
|
-
case 10: throw new Error('paci_verification_failed');
|
|
835
|
-
}
|
|
836
|
-
});
|
|
837
|
-
}); });
|
|
838
|
-
export var checkEmailAvailabilityAsync = createAsyncThunk('connectExpress/CheckEmailAvailabilityAsync', function (_a, thunkApi) {
|
|
839
|
-
var email = _a.email, cancelToken = _a.cancelToken, onSuccess = _a.onSuccess;
|
|
840
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
841
|
-
var responseData, requestBody, data, retryData;
|
|
842
|
-
var _b, _c, _d, _e, _f;
|
|
843
|
-
return __generator(this, function (_g) {
|
|
844
|
-
switch (_g.label) {
|
|
845
|
-
case 0:
|
|
846
|
-
responseData = thunkApi.getState().connectExpress.data.responseData;
|
|
847
|
-
requestBody = {
|
|
848
|
-
email: email,
|
|
849
|
-
country: (_b = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _b === void 0 ? void 0 : _b.country_code,
|
|
850
|
-
encryption_contract: ['email']
|
|
851
|
-
};
|
|
852
|
-
return [4, API.availabilityServices.checkEmail(requestBody, { cancelToken: cancelToken })];
|
|
853
|
-
case 1:
|
|
854
|
-
data = (_g.sent()).data;
|
|
855
|
-
if (!data.errors) {
|
|
856
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
857
|
-
return [2, { response: data, formData: email }];
|
|
858
|
-
}
|
|
859
|
-
if (!isInternalServerError((_d = (_c = data.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.error)) {
|
|
860
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
861
|
-
return [2];
|
|
862
|
-
}
|
|
863
|
-
return [4, API.availabilityServices.checkEmail(requestBody, { cancelToken: cancelToken })];
|
|
864
|
-
case 2:
|
|
865
|
-
retryData = (_g.sent()).data;
|
|
866
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
867
|
-
if (!retryData.errors)
|
|
868
|
-
return [2, { response: retryData, formData: email }];
|
|
869
|
-
if (isInternalServerError((_f = (_e = retryData.errors) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.error))
|
|
870
|
-
return [2, { response: { is_available: true }, formData: email }];
|
|
871
|
-
return [2];
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
});
|
|
875
|
-
});
|
|
876
|
-
export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/checkBrandNameAvailabilityAsync', function (_a, thunkApi) {
|
|
877
|
-
var cancelToken = _a.cancelToken, name = _a.name, onSuccess = _a.onSuccess;
|
|
878
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
879
|
-
var settings, requestBody, data;
|
|
880
|
-
var _b;
|
|
881
|
-
return __generator(this, function (_c) {
|
|
882
|
-
switch (_c.label) {
|
|
883
|
-
case 0:
|
|
884
|
-
settings = thunkApi.getState().settings;
|
|
885
|
-
requestBody = {
|
|
886
|
-
profile_name: name,
|
|
887
|
-
country_code: (_b = settings.data.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2,
|
|
888
|
-
encryption_contract: []
|
|
889
|
-
};
|
|
890
|
-
return [4, API.availabilityServices.checkBrand(requestBody, { cancelToken: cancelToken })];
|
|
891
|
-
case 1:
|
|
892
|
-
data = (_c.sent()).data;
|
|
893
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
894
|
-
if (!data.errors)
|
|
895
|
-
return [2, { response: data, formData: { name: name } }];
|
|
896
|
-
return [2];
|
|
897
|
-
}
|
|
898
|
-
});
|
|
899
|
-
});
|
|
900
|
-
});
|
|
901
|
-
export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_a, thunkApi) {
|
|
902
|
-
var isRetry = _a.isRetry;
|
|
903
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
904
|
-
var _b, connectExpress, settings, responseData, _c, postURL, scope, redirectUrl, mode, showBoard, notification, platforms, payment_provider, leadId, authId, bi, leadData, accountData, data, body, data, data, urlQueryStart;
|
|
905
|
-
var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
906
|
-
return __generator(this, function (_y) {
|
|
907
|
-
switch (_y.label) {
|
|
908
|
-
case 0:
|
|
909
|
-
_b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
|
|
910
|
-
responseData = connectExpress.data.responseData;
|
|
911
|
-
_c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode, showBoard = _c.showBoard, notification = _c.notification;
|
|
912
|
-
platforms = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
|
|
913
|
-
payment_provider = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _f === void 0 ? void 0 : _f.payment_provider) !== null && _g !== void 0 ? _g : settings.data.appConfig.paymentProvider;
|
|
914
|
-
leadId = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _h === void 0 ? void 0 : _h.id;
|
|
915
|
-
authId = (_k = (_j = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _j === void 0 ? void 0 : _j.auth) === null || _k === void 0 ? void 0 : _k.id;
|
|
916
|
-
bi = settings.data.deviceInfo.browser.browser_id;
|
|
917
|
-
accountData = undefined;
|
|
918
|
-
if (!isRetry) return [3, 2];
|
|
919
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
920
|
-
case 1:
|
|
921
|
-
data = (_y.sent()).data;
|
|
922
|
-
if (data === null || data === void 0 ? void 0 : data.board_id) {
|
|
923
|
-
leadData = data;
|
|
924
|
-
accountData = data;
|
|
925
|
-
}
|
|
926
|
-
_y.label = 2;
|
|
927
|
-
case 2:
|
|
928
|
-
body = {
|
|
929
|
-
lead_id: leadId,
|
|
930
|
-
post_url: scope === SCOPE_AUTH ? '' : postURL || '',
|
|
931
|
-
platforms: platforms,
|
|
932
|
-
payment_provider: payment_provider,
|
|
933
|
-
notification: notification
|
|
934
|
-
};
|
|
935
|
-
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 4];
|
|
936
|
-
return [4, API.accountService.expressCreateAccount(body)];
|
|
937
|
-
case 3:
|
|
938
|
-
accountData = _y.sent();
|
|
939
|
-
_y.label = 4;
|
|
940
|
-
case 4:
|
|
941
|
-
sendCustomEventToGTM({
|
|
942
|
-
event: 'Send Event',
|
|
943
|
-
event_category: 'User Registration Flow',
|
|
944
|
-
event_action: 'Registration Completed',
|
|
945
|
-
event_label: 'Product Type',
|
|
946
|
-
event_value: leadId
|
|
947
|
-
});
|
|
948
|
-
sendCustomDimension({
|
|
949
|
-
event: 'PageView',
|
|
950
|
-
lead_ID: leadId
|
|
951
|
-
});
|
|
952
|
-
(_m = (_l = settings.data.appConfig).onCreated) === null || _m === void 0 ? void 0 : _m.call(_l, accountData);
|
|
953
|
-
(_p = (_o = settings.data.appConfig).onFlowCompleted) === null || _p === void 0 ? void 0 : _p.call(_o, accountData);
|
|
954
|
-
(_r = (_q = settings.data.appConfig).onStepCompleted) === null || _r === void 0 ? void 0 : _r.call(_q, settings.data.activeScreen.name, accountData);
|
|
955
|
-
if (!(scope === SCOPE_MERCHANT)) return [3, 8];
|
|
956
|
-
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 6];
|
|
957
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
958
|
-
case 5:
|
|
959
|
-
data = (_y.sent()).data;
|
|
960
|
-
leadData = data;
|
|
961
|
-
_y.label = 6;
|
|
962
|
-
case 6:
|
|
963
|
-
if (!postURL) return [3, 8];
|
|
964
|
-
return [4, thunkApi.dispatch(onCloseComplete({
|
|
965
|
-
merchantId: (_s = leadData === null || leadData === void 0 ? void 0 : leadData.merchant) === null || _s === void 0 ? void 0 : _s.id,
|
|
966
|
-
brandId: (_t = leadData === null || leadData === void 0 ? void 0 : leadData.brand) === null || _t === void 0 ? void 0 : _t.id,
|
|
967
|
-
entityId: (_u = leadData === null || leadData === void 0 ? void 0 : leadData.entity) === null || _u === void 0 ? void 0 : _u.id,
|
|
968
|
-
nextScreen: showBoard ? 'CONNECT_EXPRESS_PREPARING_DATA_STEP' : ''
|
|
969
|
-
}))];
|
|
970
|
-
case 7:
|
|
971
|
-
_y.sent();
|
|
972
|
-
return [2, { accountData: accountData }];
|
|
973
|
-
case 8:
|
|
974
|
-
if (showBoard) {
|
|
975
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
976
|
-
return [2, { accountData: accountData }];
|
|
977
|
-
}
|
|
978
|
-
if (!(scope === SCOPE_AUTH)) return [3, 12];
|
|
979
|
-
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 10];
|
|
980
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
981
|
-
case 9:
|
|
982
|
-
data = (_y.sent()).data;
|
|
983
|
-
leadData = data;
|
|
984
|
-
_y.label = 10;
|
|
985
|
-
case 10: return [4, thunkApi.dispatch(onCloseComplete({ merchantId: (_v = leadData === null || leadData === void 0 ? void 0 : leadData.merchant) === null || _v === void 0 ? void 0 : _v.id, brandId: (_w = leadData === null || leadData === void 0 ? void 0 : leadData.brand) === null || _w === void 0 ? void 0 : _w.id, entityId: (_x = leadData === null || leadData === void 0 ? void 0 : leadData.entity) === null || _x === void 0 ? void 0 : _x.id }))];
|
|
986
|
-
case 11:
|
|
987
|
-
_y.sent();
|
|
988
|
-
return [2, { accountData: accountData }];
|
|
989
|
-
case 12:
|
|
990
|
-
if (redirectUrl && mode === 'page') {
|
|
991
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
992
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
993
|
-
return [2, { accountData: accountData }];
|
|
994
|
-
}
|
|
995
|
-
thunkApi.dispatch(handleOpen(false));
|
|
996
|
-
return [2];
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
});
|
|
1000
|
-
});
|
|
1001
|
-
export var retrieveDetailsAfterCreateAccountAsync = createAsyncThunk('connectExpress/retrieveDetailsAfterCreateAccountAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1002
|
-
var connectExpress, _a, accountData, leadData, leadResData, data, board_id, board_info_id, _b, boardInfo, boardData;
|
|
1003
|
-
var _c, _d;
|
|
1004
|
-
return __generator(this, function (_e) {
|
|
1005
|
-
switch (_e.label) {
|
|
1006
|
-
case 0:
|
|
1007
|
-
connectExpress = thunkApi.getState().connectExpress;
|
|
1008
|
-
_a = connectExpress.data.responseData || {}, accountData = _a.accountData, leadData = _a.leadData;
|
|
1009
|
-
leadResData = undefined;
|
|
1010
|
-
if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 2];
|
|
1011
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(leadData === null || leadData === void 0 ? void 0 : leadData.id)).unwrap()];
|
|
1012
|
-
case 1:
|
|
1013
|
-
data = (_e.sent()).data;
|
|
1014
|
-
leadResData = data;
|
|
1015
|
-
_e.label = 2;
|
|
1016
|
-
case 2:
|
|
1017
|
-
board_id = (_c = accountData === null || accountData === void 0 ? void 0 : accountData.board_id) !== null && _c !== void 0 ? _c : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_id;
|
|
1018
|
-
board_info_id = (_d = accountData === null || accountData === void 0 ? void 0 : accountData.board_info_id) !== null && _d !== void 0 ? _d : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_info_id;
|
|
1019
|
-
return [4, Promise.all([
|
|
1020
|
-
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
1021
|
-
API.boardService.retrieveBoardDetails(board_id)
|
|
1022
|
-
])];
|
|
1023
|
-
case 3:
|
|
1024
|
-
_b = _e.sent(), boardInfo = _b[0], boardData = _b[1];
|
|
1025
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
1026
|
-
return [2, { boardInfo: boardInfo, boardData: boardData }];
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
}); });
|
|
1030
|
-
export var createEntity = createAsyncThunk('connectExpress/createEntity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1031
|
-
var settings, brandInfo, legalName, licenseNumber, licenseType, body, data;
|
|
1032
|
-
var _a;
|
|
1033
|
-
return __generator(this, function (_b) {
|
|
1034
|
-
switch (_b.label) {
|
|
1035
|
-
case 0:
|
|
1036
|
-
settings = thunkApi.getState().settings;
|
|
1037
|
-
brandInfo = params.brandInfo, legalName = params.legalName, licenseNumber = params.licenseNumber, licenseType = params.licenseType;
|
|
1038
|
-
body = {
|
|
1039
|
-
business_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.business_id) || '',
|
|
1040
|
-
entity: {
|
|
1041
|
-
legal_name: {
|
|
1042
|
-
en: legalName || '',
|
|
1043
|
-
ar: legalName || ''
|
|
1044
|
-
},
|
|
1045
|
-
license: {
|
|
1046
|
-
number: licenseNumber || '',
|
|
1047
|
-
type: licenseType || ''
|
|
1048
|
-
},
|
|
1049
|
-
country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
return [4, API.entityService.createEntity(body)];
|
|
1053
|
-
case 1:
|
|
1054
|
-
data = _b.sent();
|
|
1055
|
-
return [2, { data: data, formData: params }];
|
|
1056
|
-
}
|
|
1057
|
-
});
|
|
1058
|
-
}); });
|
|
1059
|
-
export var updateLeadDOBAsync = createAsyncThunk('connectExpress/updateLeadDOBAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1060
|
-
var _a, settings, connectExpress, id, dob, payload, data, needToCollectMoreInfo, creatingAccount, verifyAuthMobile;
|
|
1061
|
-
var _b, _c, _d;
|
|
1062
|
-
return __generator(this, function (_e) {
|
|
1063
|
-
switch (_e.label) {
|
|
1064
|
-
case 0:
|
|
1065
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
1066
|
-
id = (((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}).id;
|
|
1067
|
-
dob = params.dob;
|
|
1068
|
-
payload = {
|
|
1069
|
-
id: id || '',
|
|
1070
|
-
date_of_birth: dob,
|
|
1071
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_DOB,
|
|
1072
|
-
encryption_contract: ['date_of_birth']
|
|
1073
|
-
};
|
|
1074
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1075
|
-
case 1:
|
|
1076
|
-
data = _e.sent();
|
|
1077
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
1078
|
-
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
1079
|
-
creatingAccount = data.step_name === 'create_account';
|
|
1080
|
-
verifyAuthMobile = data.step_name === 'connect_express_auth_mobile';
|
|
1081
|
-
if (verifyAuthMobile) {
|
|
1082
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP')); });
|
|
1083
|
-
}
|
|
1084
|
-
if (creatingAccount) {
|
|
1085
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
1086
|
-
}
|
|
1087
|
-
if (needToCollectMoreInfo) {
|
|
1088
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
1089
|
-
}
|
|
1090
|
-
return [2, { response: data, formData: params }];
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
}); });
|
|
1094
|
-
export var updateLeadIndividualAsync = createAsyncThunk('connectExpress/updateLeadIndividualAsync', function (_a, thunkApi) {
|
|
1095
|
-
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
1096
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
1097
|
-
var _b, settings, connectExpress, id, countryCode, name, email, mobile, phoneCountry, isContactAvailable, payload, data, needToCollectMoreInfo, creatingAccount, collectPhoneOwnershipScreen, verifyAuthMobile, isSaudi;
|
|
1098
|
-
var _c, _d, _e, _f, _g;
|
|
1099
|
-
return __generator(this, function (_h) {
|
|
1100
|
-
switch (_h.label) {
|
|
1101
|
-
case 0:
|
|
1102
|
-
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
1103
|
-
id = (((_c = connectExpress.data.responseData) === null || _c === void 0 ? void 0 : _c.leadData) || {}).id;
|
|
1104
|
-
countryCode = formData.countryCode, name = formData.name, email = formData.email, mobile = formData.mobile;
|
|
1105
|
-
phoneCountry = (_d = countryCode === null || countryCode === void 0 ? void 0 : countryCode.idd_prefix) === null || _d === void 0 ? void 0 : _d.toString();
|
|
1106
|
-
isContactAvailable = email || mobile;
|
|
1107
|
-
payload = __assign(__assign({ id: id || '', country_code: (_e = settings.data.businessCountry) === null || _e === void 0 ? void 0 : _e.iso2, name: getIndividualName(name) }, (isContactAvailable && {
|
|
1108
|
-
contact: __assign({ email: email }, (mobile && { phone: { country_code: phoneCountry, number: mobile } }))
|
|
1109
|
-
})), { metadata: getMetaData(), step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_INDIVIDUAL, encryption_contract: ['name.first', 'name.middle', 'name.last', 'contact.email', 'contact.phone.country_code', 'contact.phone.number'] });
|
|
1110
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1111
|
-
case 1:
|
|
1112
|
-
data = _h.sent();
|
|
1113
|
-
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, formData);
|
|
1114
|
-
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
1115
|
-
creatingAccount = data.step_name === 'create_account';
|
|
1116
|
-
collectPhoneOwnershipScreen = data.step_name === CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP;
|
|
1117
|
-
verifyAuthMobile = data.step_name === CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_MOBILE_OTP;
|
|
1118
|
-
if (verifyAuthMobile) {
|
|
1119
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP')); });
|
|
1120
|
-
}
|
|
1121
|
-
if (collectPhoneOwnershipScreen) {
|
|
1122
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('COLLECT_MOBILE_OWNERSHIP')); });
|
|
1123
|
-
}
|
|
1124
|
-
if (creatingAccount) {
|
|
1125
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
1126
|
-
}
|
|
1127
|
-
if (!needToCollectMoreInfo) return [3, 4];
|
|
1128
|
-
isSaudi = isSA(settings.data.businessCountry.iso2);
|
|
1129
|
-
if (!isSaudi) return [3, 3];
|
|
1130
|
-
return [4, thunkApi.dispatch(retrieveEntityListAsync(data.lead.id)).unwrap()];
|
|
1131
|
-
case 2:
|
|
1132
|
-
_h.sent();
|
|
1133
|
-
_h.label = 3;
|
|
1134
|
-
case 3:
|
|
1135
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP')); });
|
|
1136
|
-
_h.label = 4;
|
|
1137
|
-
case 4: return [2, { response: data, formData: originalFormData }];
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
});
|
|
1141
|
-
});
|
|
1142
|
-
export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDataAsync ', function (_a, thunkApi) {
|
|
1143
|
-
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
1144
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
1145
|
-
var _b, settings, connectExpress, selectedLicense, brandName, licenseNumber, termAndConditionChecked, unifiedNumber, isKWCountry, isFL, _c, responseData, isLeadIdPassed, id, brandNameBody, payload, data;
|
|
1146
|
-
var _d, _e;
|
|
1147
|
-
return __generator(this, function (_f) {
|
|
1148
|
-
switch (_f.label) {
|
|
1149
|
-
case 0:
|
|
1150
|
-
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
1151
|
-
selectedLicense = formData.selectedLicense, brandName = formData.brandName, licenseNumber = formData.licenseNumber, termAndConditionChecked = formData.termAndConditionChecked, unifiedNumber = formData.unifiedNumber;
|
|
1152
|
-
isKWCountry = isKW(settings.data.businessCountry.iso2);
|
|
1153
|
-
isFL = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.FL;
|
|
1154
|
-
_c = connectExpress.data, responseData = _c.responseData, isLeadIdPassed = _c.isLeadIdPassed;
|
|
1155
|
-
id = ((responseData === null || responseData === void 0 ? void 0 : responseData.leadData) || {}).id;
|
|
1156
|
-
brandNameBody = {
|
|
1157
|
-
name: {
|
|
1158
|
-
en: brandName,
|
|
1159
|
-
ar: brandName
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
payload = {
|
|
1163
|
-
id: id || '',
|
|
1164
|
-
brand: brandNameBody,
|
|
1165
|
-
license_number: isKWCountry && isFL ? '' : licenseNumber,
|
|
1166
|
-
license_type: (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) ? (isFL ? LicenseType.FL : LicenseType.CR) : undefined,
|
|
1167
|
-
business_type: selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type,
|
|
1168
|
-
is_acknowledged: true,
|
|
1169
|
-
unified_number: unifiedNumber,
|
|
1170
|
-
terms_conditions_accepted: !isLeadIdPassed ? termAndConditionChecked : undefined,
|
|
1171
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_BRAND_BUSINESS,
|
|
1172
|
-
encryption_contract: []
|
|
1173
|
-
};
|
|
1174
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1175
|
-
case 1:
|
|
1176
|
-
data = _f.sent();
|
|
1177
|
-
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, formData);
|
|
1178
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
1179
|
-
return [2, { response: data, formData: originalFormData }];
|
|
1180
|
-
}
|
|
1181
|
-
});
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
export var updateLeadMobile = createAsyncThunk('connectExpress/updateLeadMobile', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1185
|
-
var _a, settings, connectExpress, id, startWithNID, payload, leadResponse, needToCollectMoreInfo, creatingAccount, askDobInfo, collectPhoneOwnershipScreen, verifyAuthMobile;
|
|
1186
|
-
var _b, _c, _d;
|
|
1187
|
-
return __generator(this, function (_e) {
|
|
1188
|
-
switch (_e.label) {
|
|
1189
|
-
case 0:
|
|
1190
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
1191
|
-
id = (((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}).id;
|
|
1192
|
-
startWithNID = connectExpress.data.otpData.authFor === AuthForType.NATIONAL_ID;
|
|
1193
|
-
payload = {
|
|
1194
|
-
id: id || '',
|
|
1195
|
-
contact: {
|
|
1196
|
-
phone: {
|
|
1197
|
-
country_code: params.countryCode.idd_prefix.toString(),
|
|
1198
|
-
number: params.mobile
|
|
1199
|
-
}
|
|
1200
|
-
},
|
|
1201
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP,
|
|
1202
|
-
encryption_contract: ['contact.phone.country_code', 'contact.phone.number']
|
|
1203
|
-
};
|
|
1204
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1205
|
-
case 1:
|
|
1206
|
-
leadResponse = _e.sent();
|
|
1207
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
1208
|
-
needToCollectMoreInfo = leadResponse.step_name === 'collect_info';
|
|
1209
|
-
creatingAccount = leadResponse.step_name === 'create_account';
|
|
1210
|
-
askDobInfo = leadResponse.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
1211
|
-
collectPhoneOwnershipScreen = leadResponse.step_name === CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP;
|
|
1212
|
-
verifyAuthMobile = leadResponse.step_name === CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_MOBILE_OTP;
|
|
1213
|
-
if (collectPhoneOwnershipScreen) {
|
|
1214
|
-
throw new Error("The new mobile number doesn't match the national ID, please update the mobile to the correct one");
|
|
1215
|
-
}
|
|
1216
|
-
if (verifyAuthMobile) {
|
|
1217
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP')); });
|
|
1218
|
-
}
|
|
1219
|
-
if (askDobInfo) {
|
|
1220
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
1221
|
-
}
|
|
1222
|
-
if (creatingAccount) {
|
|
1223
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
1224
|
-
}
|
|
1225
|
-
if (!needToCollectMoreInfo) return [3, 5];
|
|
1226
|
-
if (!startWithNID) return [3, 4];
|
|
1227
|
-
if (!isSA(settings.data.businessCountry.iso2)) return [3, 3];
|
|
1228
|
-
return [4, thunkApi.dispatch(retrieveEntityListAsync(leadResponse.lead.id)).unwrap()];
|
|
1229
|
-
case 2:
|
|
1230
|
-
_e.sent();
|
|
1231
|
-
_e.label = 3;
|
|
1232
|
-
case 3:
|
|
1233
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP')); });
|
|
1234
|
-
return [3, 5];
|
|
1235
|
-
case 4:
|
|
1236
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
1237
|
-
_e.label = 5;
|
|
1238
|
-
case 5: return [2, { leadResponse: leadResponse, formData: params }];
|
|
1239
|
-
}
|
|
1240
|
-
});
|
|
1241
|
-
}); });
|
|
1242
|
-
export var skipUpdateLeadMobile = createAsyncThunk('connectExpress/skipUpdateLeadMobile', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1243
|
-
var _a, settings, connectExpress, id, startWithNID, payload, leadResponse, needToCollectMoreInfo, creatingAccount, askDobInfo, verifyAuthMobile;
|
|
1244
|
-
var _b, _c, _d;
|
|
1245
|
-
return __generator(this, function (_e) {
|
|
1246
|
-
switch (_e.label) {
|
|
1247
|
-
case 0:
|
|
1248
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
1249
|
-
id = (((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}).id;
|
|
1250
|
-
startWithNID = connectExpress.data.otpData.authFor === AuthForType.NATIONAL_ID;
|
|
1251
|
-
payload = {
|
|
1252
|
-
id: id || '',
|
|
1253
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP_SKIPPED,
|
|
1254
|
-
encryption_contract: []
|
|
1255
|
-
};
|
|
1256
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1257
|
-
case 1:
|
|
1258
|
-
leadResponse = _e.sent();
|
|
1259
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, {});
|
|
1260
|
-
needToCollectMoreInfo = leadResponse.step_name === 'collect_info';
|
|
1261
|
-
creatingAccount = leadResponse.step_name === 'create_account';
|
|
1262
|
-
askDobInfo = leadResponse.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
1263
|
-
verifyAuthMobile = leadResponse.step_name === CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_MOBILE_OTP;
|
|
1264
|
-
if (verifyAuthMobile) {
|
|
1265
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_VERIFY_AUTH_OTP_STEP')); });
|
|
1266
|
-
}
|
|
1267
|
-
if (askDobInfo) {
|
|
1268
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
1269
|
-
}
|
|
1270
|
-
if (creatingAccount) {
|
|
1271
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
1272
|
-
}
|
|
1273
|
-
if (!needToCollectMoreInfo) return [3, 5];
|
|
1274
|
-
if (!startWithNID) return [3, 4];
|
|
1275
|
-
if (!isSA(settings.data.businessCountry.iso2)) return [3, 3];
|
|
1276
|
-
return [4, thunkApi.dispatch(retrieveEntityListAsync(leadResponse.lead.id)).unwrap()];
|
|
1277
|
-
case 2:
|
|
1278
|
-
_e.sent();
|
|
1279
|
-
_e.label = 3;
|
|
1280
|
-
case 3:
|
|
1281
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP')); });
|
|
1282
|
-
return [3, 5];
|
|
1283
|
-
case 4:
|
|
1284
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
1285
|
-
_e.label = 5;
|
|
1286
|
-
case 5: return [2, { leadResponse: leadResponse }];
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
}); });
|
|
1290
|
-
export var verifyAuthMobileOtpAsync = createAsyncThunk('connectExpress/verifyAuthMobileOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1291
|
-
var _a, settings, connectExpress, responseData, _b, verify_token, verification_by, payload, data, needToCollectMoreInfo, creatingAccount, askDobInfo, collectPhoneOwnershipScreen, isSaudi;
|
|
1292
|
-
var _c, _d;
|
|
1293
|
-
return __generator(this, function (_e) {
|
|
1294
|
-
switch (_e.label) {
|
|
1295
|
-
case 0:
|
|
1296
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
1297
|
-
responseData = (connectExpress.data || {}).responseData;
|
|
1298
|
-
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.verifyAuthMobile))
|
|
1299
|
-
throw new Error('Auth data is missing');
|
|
1300
|
-
_b = responseData.verifyAuthMobile, verify_token = _b.verify_token, verification_by = _b.verification_by;
|
|
1301
|
-
payload = {
|
|
1302
|
-
verify_token: verify_token,
|
|
1303
|
-
data: params.otp,
|
|
1304
|
-
auth_type: 2,
|
|
1305
|
-
service_name: verification_by === null || verification_by === void 0 ? void 0 : verification_by.service_name,
|
|
1306
|
-
sign_in: false,
|
|
1307
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_MOBILE_OTP,
|
|
1308
|
-
encryption_contract: ['data']
|
|
1309
|
-
};
|
|
1310
|
-
return [4, API.authService.verifyExpressLeadIdentity(payload)];
|
|
1311
|
-
case 1:
|
|
1312
|
-
data = _e.sent();
|
|
1313
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
1314
|
-
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
1315
|
-
creatingAccount = data.step_name === 'create_account';
|
|
1316
|
-
askDobInfo = data.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
1317
|
-
collectPhoneOwnershipScreen = data.step_name === CONNECT_EXPRESS_STEP_NAMES.COLLECT_MOBILE_OWNERSHIP;
|
|
1318
|
-
if (askDobInfo) {
|
|
1319
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
1320
|
-
}
|
|
1321
|
-
if (creatingAccount) {
|
|
1322
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
1323
|
-
}
|
|
1324
|
-
if (collectPhoneOwnershipScreen) {
|
|
1325
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('COLLECT_MOBILE_OWNERSHIP')); });
|
|
1326
|
-
}
|
|
1327
|
-
if (!needToCollectMoreInfo) return [3, 4];
|
|
1328
|
-
isSaudi = isSA(settings.data.businessCountry.iso2);
|
|
1329
|
-
if (!isSaudi) return [3, 3];
|
|
1330
|
-
return [4, thunkApi.dispatch(retrieveEntityListAsync(data.lead.id)).unwrap()];
|
|
1331
|
-
case 2:
|
|
1332
|
-
_e.sent();
|
|
1333
|
-
_e.label = 3;
|
|
1334
|
-
case 3:
|
|
1335
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP')); });
|
|
1336
|
-
_e.label = 4;
|
|
1337
|
-
case 4: return [2, { data: data }];
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
|
-
}); });
|
|
1341
|
-
export var resendLeadMobileAuthOTP = createAsyncThunk('connectExpress/resendLeadMobileAuthOTPExpress', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1342
|
-
var connectExpress, payload, data;
|
|
1343
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1344
|
-
return __generator(this, function (_g) {
|
|
1345
|
-
switch (_g.label) {
|
|
1346
|
-
case 0:
|
|
1347
|
-
connectExpress = thunkApi.getState().connectExpress;
|
|
1348
|
-
payload = {
|
|
1349
|
-
id: ((_b = (_a = connectExpress.data.responseData) === null || _a === void 0 ? void 0 : _a.leadData) === null || _b === void 0 ? void 0 : _b.id) || '',
|
|
1350
|
-
contact: {
|
|
1351
|
-
phone: {
|
|
1352
|
-
country_code: (_e = (_d = (_c = connectExpress.data.individualData) === null || _c === void 0 ? void 0 : _c.countryCode) === null || _d === void 0 ? void 0 : _d.idd_prefix) === null || _e === void 0 ? void 0 : _e.toString(),
|
|
1353
|
-
number: ((_f = connectExpress.data.individualData) === null || _f === void 0 ? void 0 : _f.mobile) || ''
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_INDIVIDUAL,
|
|
1357
|
-
encryption_contract: ['contact.phone.country_code', 'contact.phone.number']
|
|
1358
|
-
};
|
|
1359
|
-
return [4, API.leadService.updateLeadExpress(payload)];
|
|
1360
|
-
case 1:
|
|
1361
|
-
data = _g.sent();
|
|
1362
|
-
return [2, data];
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
}); });
|
|
1366
|
-
export var confirmInfo = createAsyncThunk('connectExpress/confirmInfo', function (_a, thunkApi) {
|
|
1367
|
-
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo, merchantInfo = _a.merchantInfo;
|
|
1368
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
1369
|
-
var _b, connectExpress, settings, responseData, _c, appConfig, deviceInfo, activeScreen, postURL, redirectUrl, showBoard, bi, authId, leadId, body, data, _d, board_id, board_info_id, _e, boardInfo, boardData, urlQueryStart;
|
|
1370
|
-
var _f, _g, _h, _j, _k;
|
|
1371
|
-
return __generator(this, function (_l) {
|
|
1372
|
-
switch (_l.label) {
|
|
1373
|
-
case 0:
|
|
1374
|
-
_b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
|
|
1375
|
-
responseData = connectExpress.data.responseData;
|
|
1376
|
-
_c = settings.data, appConfig = _c.appConfig, deviceInfo = _c.deviceInfo, activeScreen = _c.activeScreen;
|
|
1377
|
-
postURL = appConfig.postURL, redirectUrl = appConfig.redirectUrl, showBoard = appConfig.showBoard;
|
|
1378
|
-
bi = deviceInfo.browser.browser_id;
|
|
1379
|
-
authId = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _f === void 0 ? void 0 : _f.auth) === null || _g === void 0 ? void 0 : _g.id;
|
|
1380
|
-
leadId = (_j = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _h === void 0 ? void 0 : _h.lead) === null || _j === void 0 ? void 0 : _j.id;
|
|
1381
|
-
body = {
|
|
1382
|
-
post_url: postURL || '',
|
|
1383
|
-
authentication_id: authId,
|
|
1384
|
-
bi: bi,
|
|
1385
|
-
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
1386
|
-
merchant_id: (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.id) || '',
|
|
1387
|
-
entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
1388
|
-
data: appConfig.data || []
|
|
1389
|
-
};
|
|
1390
|
-
return [4, API.operatorService.confirm(body)];
|
|
1391
|
-
case 1:
|
|
1392
|
-
data = _l.sent();
|
|
1393
|
-
(_k = appConfig.onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(appConfig, activeScreen.name, data);
|
|
1394
|
-
_d = merchantInfo || {}, board_id = _d.board_id, board_info_id = _d.board_info_id;
|
|
1395
|
-
if (!(showBoard && board_id && board_info_id)) return [3, 4];
|
|
1396
|
-
return [4, Promise.all([
|
|
1397
|
-
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
1398
|
-
API.boardService.retrieveBoardDetails(board_id)
|
|
1399
|
-
])];
|
|
1400
|
-
case 2:
|
|
1401
|
-
_e = _l.sent(), boardInfo = _e[0], boardData = _e[1];
|
|
1402
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(leadId))];
|
|
1403
|
-
case 3:
|
|
1404
|
-
_l.sent();
|
|
1405
|
-
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
1406
|
-
return [2, { boardInfo: boardInfo, boardData: boardData, confirmData: data }];
|
|
1407
|
-
case 4:
|
|
1408
|
-
if (authId) {
|
|
1409
|
-
if (appConfig.mode === 'popup') {
|
|
1410
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
1411
|
-
thunkApi.dispatch(handleOpen(false));
|
|
1412
|
-
return [2];
|
|
1413
|
-
}
|
|
1414
|
-
if (redirectUrl) {
|
|
1415
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
1416
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
return [2];
|
|
1420
|
-
}
|
|
1421
|
-
});
|
|
1422
|
-
});
|
|
1423
|
-
});
|
|
1424
|
-
export var onCloseCompleteAsync = createAsyncThunk('connectExpress/onCloseCompleteAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1425
|
-
var _a, connectExpress, settings, _b, boardData, authData, confirmData, _c, appConfig, deviceInfo, activeScreen, _d, merchant, brand, entity, authId, redirectUrl, bi, urlQueryStart;
|
|
1426
|
-
var _e, _f, _g;
|
|
1427
|
-
return __generator(this, function (_h) {
|
|
1428
|
-
switch (_h.label) {
|
|
1429
|
-
case 0:
|
|
1430
|
-
_a = thunkApi.getState(), connectExpress = _a.connectExpress, settings = _a.settings;
|
|
1431
|
-
_b = connectExpress.data.responseData || {}, boardData = _b.boardData, authData = _b.authData, confirmData = _b.confirmData;
|
|
1432
|
-
_c = settings.data, appConfig = _c.appConfig, deviceInfo = _c.deviceInfo, activeScreen = _c.activeScreen;
|
|
1433
|
-
_d = boardData || {}, merchant = _d.merchant, brand = _d.brand, entity = _d.entity;
|
|
1434
|
-
authId = (_e = authData === null || authData === void 0 ? void 0 : authData.auth) === null || _e === void 0 ? void 0 : _e.id;
|
|
1435
|
-
redirectUrl = appConfig.redirectUrl;
|
|
1436
|
-
bi = deviceInfo.browser.browser_id;
|
|
1437
|
-
if (confirmData && authId) {
|
|
1438
|
-
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, activeScreen.name, confirmData);
|
|
1439
|
-
if (settings.data.appConfig.mode === 'popup') {
|
|
1440
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
1441
|
-
thunkApi.dispatch(handleOpen(false));
|
|
1442
|
-
return [2];
|
|
1443
|
-
}
|
|
1444
|
-
if (redirectUrl) {
|
|
1445
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
1446
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
1447
|
-
}
|
|
1448
|
-
return [2];
|
|
1449
|
-
}
|
|
1450
|
-
return [4, thunkApi.dispatch(onCloseComplete({ merchantId: merchant === null || merchant === void 0 ? void 0 : merchant.id, brandId: brand === null || brand === void 0 ? void 0 : brand.id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
1451
|
-
case 1:
|
|
1452
|
-
_h.sent();
|
|
1453
|
-
return [2];
|
|
1454
|
-
}
|
|
1455
|
-
});
|
|
1456
|
-
}); });
|
|
1457
|
-
var initialState = {
|
|
1458
|
-
error: null,
|
|
1459
|
-
loading: false,
|
|
1460
|
-
customLoading: false,
|
|
1461
|
-
data: {
|
|
1462
|
-
isLeadIdPassed: false,
|
|
1463
|
-
isStartFromBusinessCountry: false,
|
|
1464
|
-
flowName: FlowsTypes.CONNECT_EXPRESS,
|
|
1465
|
-
mobileData: {
|
|
1466
|
-
countryCode: defaultCountry,
|
|
1467
|
-
mobile: '',
|
|
1468
|
-
termAndConditionChecked: false
|
|
1469
|
-
},
|
|
1470
|
-
nidData: {
|
|
1471
|
-
nid: '',
|
|
1472
|
-
termAndConditionChecked: false
|
|
1473
|
-
},
|
|
1474
|
-
civilIdData: {
|
|
1475
|
-
civilId: ''
|
|
1476
|
-
},
|
|
1477
|
-
otpData: {
|
|
1478
|
-
otp: '',
|
|
1479
|
-
authFor: AuthForType.MOBILE
|
|
1480
|
-
},
|
|
1481
|
-
dobData: {
|
|
1482
|
-
dob: ''
|
|
1483
|
-
},
|
|
1484
|
-
individualData: {
|
|
1485
|
-
name: '',
|
|
1486
|
-
email: '',
|
|
1487
|
-
mobile: '',
|
|
1488
|
-
countryCode: defaultCountry
|
|
1489
|
-
},
|
|
1490
|
-
verifyAuthOtpData: {
|
|
1491
|
-
otp: '',
|
|
1492
|
-
authFor: AuthForScreen.INDIVIDUAL
|
|
1493
|
-
},
|
|
1494
|
-
businessData: {
|
|
1495
|
-
brandName: '',
|
|
1496
|
-
licenseNumber: '',
|
|
1497
|
-
unifiedNumber: '',
|
|
1498
|
-
termAndConditionChecked: false
|
|
1499
|
-
},
|
|
1500
|
-
authenticationData: {
|
|
1501
|
-
brandInfo: undefined,
|
|
1502
|
-
entityInfo: undefined
|
|
1503
|
-
},
|
|
1504
|
-
authMerchantData: {
|
|
1505
|
-
merchantInfo: undefined
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
export var connectSlice = createSlice({
|
|
1510
|
-
name: 'connectExpress/store',
|
|
1511
|
-
initialState: initialState,
|
|
1512
|
-
reducers: {
|
|
1513
|
-
setLeadId: function (state, action) {
|
|
1514
|
-
state.data.leadId = action.payload;
|
|
1515
|
-
},
|
|
1516
|
-
storeIsStartFromBusinessCountry: function (state, action) {
|
|
1517
|
-
state.data.isStartFromBusinessCountry = action.payload;
|
|
1518
|
-
},
|
|
1519
|
-
setIsLeadIdPassed: function (state, action) {
|
|
1520
|
-
state.data.isLeadIdPassed = action.payload;
|
|
1521
|
-
},
|
|
1522
|
-
clearError: function (state) {
|
|
1523
|
-
state.error = null;
|
|
1524
|
-
},
|
|
1525
|
-
setError: function (state, action) {
|
|
1526
|
-
state.error = action.payload;
|
|
1527
|
-
},
|
|
1528
|
-
stopLoader: function (state) {
|
|
1529
|
-
state.loading = false;
|
|
1530
|
-
},
|
|
1531
|
-
resetMobileScreen: function (state, action) {
|
|
1532
|
-
state.data.mobileData = __assign(__assign(__assign({}, state.data.mobileData), initialState.data.mobileData), { countryCode: action.payload });
|
|
1533
|
-
},
|
|
1534
|
-
resetNIDScreen: function (state) {
|
|
1535
|
-
state.data.nidData = __assign(__assign({}, state.data.nidData), initialState.data.nidData);
|
|
1536
|
-
},
|
|
1537
|
-
setDefaultCountryCode: function (state, action) {
|
|
1538
|
-
state.data.mobileData.countryCode = action.payload;
|
|
1539
|
-
state.data.individualData.countryCode = action.payload;
|
|
1540
|
-
},
|
|
1541
|
-
resetCivilScreen: function (state) {
|
|
1542
|
-
state.data.civilIdData = __assign(__assign({}, state.data.civilIdData), initialState.data.civilIdData);
|
|
1543
|
-
},
|
|
1544
|
-
resetAuthenticationScreen: function (state) {
|
|
1545
|
-
state.data.authenticationData = __assign(__assign({}, state.data.authenticationData), initialState.data.authenticationData);
|
|
1546
|
-
},
|
|
1547
|
-
resetOTPValue: function (state) {
|
|
1548
|
-
state.data.otpData.otp = '';
|
|
1549
|
-
},
|
|
1550
|
-
resetVerifyAuthOTPValue: function (state) {
|
|
1551
|
-
state.data.verifyAuthOtpData.otp = '';
|
|
1552
|
-
},
|
|
1553
|
-
resetStore: function (state) {
|
|
1554
|
-
var _a;
|
|
1555
|
-
state.data = __assign(__assign({}, state.data), { responseData: { leadData: (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadData } });
|
|
1556
|
-
},
|
|
1557
|
-
resetIndividualScreen: function (state) {
|
|
1558
|
-
state.data.individualData = initialState.data.individualData;
|
|
1559
|
-
}
|
|
1560
|
-
},
|
|
1561
|
-
extraReducers: function (builder) {
|
|
1562
|
-
builder
|
|
1563
|
-
.addCase(retrieveLeadIdentityByIdAsync.pending, function (state) {
|
|
1564
|
-
state.error = null;
|
|
1565
|
-
state.customLoading = true;
|
|
1566
|
-
})
|
|
1567
|
-
.addCase(retrieveLeadIdentityByIdAsync.fulfilled, function (state, action) {
|
|
1568
|
-
state.customLoading = false;
|
|
1569
|
-
var _a = action.payload, data = _a.data, countryCode = _a.countryCode, boardInfo = _a.boardInfo, boardData = _a.boardData;
|
|
1570
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data, boardInfo: boardInfo, boardData: boardData });
|
|
1571
|
-
var _b = data || {}, identification = _b.identification, contact = _b.contact, terms_conditions_accepted = _b.terms_conditions_accepted;
|
|
1572
|
-
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1573
|
-
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1574
|
-
var phone = (contact || {}).phone;
|
|
1575
|
-
if (phone) {
|
|
1576
|
-
state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
|
|
1577
|
-
state.data.mobileData.countryCode = countryCode;
|
|
1578
|
-
}
|
|
1579
|
-
if (terms_conditions_accepted !== undefined && state.data.isLeadIdPassed) {
|
|
1580
|
-
state.data.mobileData.termAndConditionChecked = terms_conditions_accepted;
|
|
1581
|
-
state.data.nidData.termAndConditionChecked = terms_conditions_accepted;
|
|
1582
|
-
}
|
|
1583
|
-
})
|
|
1584
|
-
.addCase(retrieveLeadIdentityByIdAsync.rejected, function (state, action) {
|
|
1585
|
-
state.customLoading = false;
|
|
1586
|
-
state.error = action.error.message;
|
|
1587
|
-
})
|
|
1588
|
-
.addCase(getLeadByIdAsync.pending, function (state) {
|
|
1589
|
-
state.error = null;
|
|
1590
|
-
state.loading = true;
|
|
1591
|
-
})
|
|
1592
|
-
.addCase(getLeadByIdAsync.fulfilled, function (state, action) {
|
|
1593
|
-
var _a, _b;
|
|
1594
|
-
state.loading = false;
|
|
1595
|
-
var _c = action.payload, data = _c.data, countryCode = _c.countryCode;
|
|
1596
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data });
|
|
1597
|
-
var _d = data || {}, name = _d.name, contact = _d.contact, brand = _d.brand, identification = _d.identification, terms_conditions_accepted = _d.terms_conditions_accepted;
|
|
1598
|
-
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1599
|
-
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1600
|
-
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
1601
|
-
if (!!fullName) {
|
|
1602
|
-
var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
|
|
1603
|
-
state.data.individualData.name = capitalizedName;
|
|
1604
|
-
}
|
|
1605
|
-
if (contact === null || contact === void 0 ? void 0 : contact.email)
|
|
1606
|
-
state.data.individualData.email = contact === null || contact === void 0 ? void 0 : contact.email;
|
|
1607
|
-
if ((_a = contact === null || contact === void 0 ? void 0 : contact.phone) === null || _a === void 0 ? void 0 : _a.number)
|
|
1608
|
-
state.data.individualData.mobile = contact === null || contact === void 0 ? void 0 : contact.phone.number;
|
|
1609
|
-
if (countryCode)
|
|
1610
|
-
state.data.individualData.countryCode = countryCode;
|
|
1611
|
-
if ((_b = brand === null || brand === void 0 ? void 0 : brand.name) === null || _b === void 0 ? void 0 : _b.en)
|
|
1612
|
-
state.data.businessData.brandName = brand.name.en;
|
|
1613
|
-
if (terms_conditions_accepted !== undefined && !state.data.isLeadIdPassed) {
|
|
1614
|
-
state.data.businessData.termAndConditionChecked = terms_conditions_accepted;
|
|
1615
|
-
}
|
|
1616
|
-
})
|
|
1617
|
-
.addCase(getLeadByIdAsync.rejected, function (state, action) {
|
|
1618
|
-
state.loading = false;
|
|
1619
|
-
state.error = action.error.message;
|
|
1620
|
-
})
|
|
1621
|
-
.addCase(createMobileAuthAsync.pending, function (state) {
|
|
1622
|
-
state.loading = true;
|
|
1623
|
-
state.error = null;
|
|
1624
|
-
})
|
|
1625
|
-
.addCase(createMobileAuthAsync.fulfilled, function (state, action) {
|
|
1626
|
-
state.loading = false;
|
|
1627
|
-
state.data.mobileData = action.payload.formData;
|
|
1628
|
-
state.data.otpData.authFor = AuthForType.MOBILE;
|
|
1629
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1630
|
-
})
|
|
1631
|
-
.addCase(createMobileAuthAsync.rejected, function (state, action) {
|
|
1632
|
-
state.loading = false;
|
|
1633
|
-
state.error = action.error.message;
|
|
1634
|
-
})
|
|
1635
|
-
.addCase(resendMobileAuthOTP.pending, function (state) {
|
|
1636
|
-
state.error = null;
|
|
1637
|
-
})
|
|
1638
|
-
.addCase(resendMobileAuthOTP.fulfilled, function (state, action) {
|
|
1639
|
-
state.data.mobileData = action.payload.formData;
|
|
1640
|
-
state.data.otpData.authFor = AuthForType.MOBILE;
|
|
1641
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1642
|
-
})
|
|
1643
|
-
.addCase(resendMobileAuthOTP.rejected, function (state, action) {
|
|
1644
|
-
state.error = action.error.message;
|
|
1645
|
-
})
|
|
1646
|
-
.addCase(createNafathAuth.fulfilled, function (state, action) {
|
|
1647
|
-
state.loading = false;
|
|
1648
|
-
state.error = null;
|
|
1649
|
-
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
1650
|
-
state.data.nidData = formData;
|
|
1651
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: response });
|
|
1652
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
1653
|
-
})
|
|
1654
|
-
.addCase(createNafathAuth.pending, function (state) {
|
|
1655
|
-
state.loading = true;
|
|
1656
|
-
state.error = null;
|
|
1657
|
-
})
|
|
1658
|
-
.addCase(createNafathAuth.rejected, function (state, action) {
|
|
1659
|
-
state.loading = false;
|
|
1660
|
-
state.error = action.error.message;
|
|
1661
|
-
})
|
|
1662
|
-
.addCase(createCivilIdAuthAsync.pending, function (state) {
|
|
1663
|
-
state.loading = true;
|
|
1664
|
-
state.error = null;
|
|
1665
|
-
})
|
|
1666
|
-
.addCase(createCivilIdAuthAsync.fulfilled, function (state, action) {
|
|
1667
|
-
state.loading = false;
|
|
1668
|
-
state.data.civilIdData = action.payload.formData;
|
|
1669
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
1670
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1671
|
-
})
|
|
1672
|
-
.addCase(createCivilIdAuthAsync.rejected, function (state, action) {
|
|
1673
|
-
state.loading = false;
|
|
1674
|
-
state.error = action.error.message;
|
|
1675
|
-
})
|
|
1676
|
-
.addCase(createCivilIDAuthIdentityAsync.pending, function (state) {
|
|
1677
|
-
state.loading = true;
|
|
1678
|
-
state.error = null;
|
|
1679
|
-
})
|
|
1680
|
-
.addCase(createCivilIDAuthIdentityAsync.fulfilled, function (state, action) {
|
|
1681
|
-
var _a;
|
|
1682
|
-
state.loading = false;
|
|
1683
|
-
state.data.civilIdData = action.payload.formData;
|
|
1684
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
1685
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
1686
|
-
})
|
|
1687
|
-
.addCase(createCivilIDAuthIdentityAsync.rejected, function (state, action) {
|
|
1688
|
-
state.loading = false;
|
|
1689
|
-
state.error = action.error.message;
|
|
1690
|
-
})
|
|
1691
|
-
.addCase(createNIDNafathAuthIdentityAsync.pending, function (state) {
|
|
1692
|
-
state.loading = true;
|
|
1693
|
-
state.error = null;
|
|
1694
|
-
})
|
|
1695
|
-
.addCase(createNIDNafathAuthIdentityAsync.fulfilled, function (state, action) {
|
|
1696
|
-
var _a;
|
|
1697
|
-
state.loading = false;
|
|
1698
|
-
state.data.nidData = action.payload.formData;
|
|
1699
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
1700
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
1701
|
-
})
|
|
1702
|
-
.addCase(createNIDNafathAuthIdentityAsync.rejected, function (state, action) {
|
|
1703
|
-
state.loading = false;
|
|
1704
|
-
state.error = action.error.message;
|
|
1705
|
-
})
|
|
1706
|
-
.addCase(verifyMobileOtpAsync.pending, function (state) {
|
|
1707
|
-
state.loading = true;
|
|
1708
|
-
state.error = null;
|
|
1709
|
-
})
|
|
1710
|
-
.addCase(verifyMobileOtpAsync.fulfilled, function (state, action) {
|
|
1711
|
-
var _a;
|
|
1712
|
-
state.loading = false;
|
|
1713
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
|
|
1714
|
-
})
|
|
1715
|
-
.addCase(verifyMobileOtpAsync.rejected, function (state, action) {
|
|
1716
|
-
state.loading = false;
|
|
1717
|
-
state.error = action.error.message;
|
|
1718
|
-
})
|
|
1719
|
-
.addCase(verifyNafathAsync.pending, function (state) {
|
|
1720
|
-
state.loading = true;
|
|
1721
|
-
state.error = null;
|
|
1722
|
-
})
|
|
1723
|
-
.addCase(verifyNafathAsync.fulfilled, function (state, action) {
|
|
1724
|
-
var _a;
|
|
1725
|
-
state.loading = false;
|
|
1726
|
-
var _b = action.payload, data = _b.data, isNextScreenIsDob = _b.isNextScreenIsDob;
|
|
1727
|
-
state.data.individualData.isPrevDob = isNextScreenIsDob || false;
|
|
1728
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), data) });
|
|
1729
|
-
})
|
|
1730
|
-
.addCase(verifyNafathAsync.rejected, function (state, action) {
|
|
1731
|
-
state.loading = false;
|
|
1732
|
-
var error = action.error.message;
|
|
1733
|
-
if (error !== 'Aborted') {
|
|
1734
|
-
state.error = error;
|
|
1735
|
-
}
|
|
1736
|
-
})
|
|
1737
|
-
.addCase(verifyPACIAsync.pending, function (state) {
|
|
1738
|
-
state.loading = true;
|
|
1739
|
-
state.error = null;
|
|
1740
|
-
})
|
|
1741
|
-
.addCase(verifyPACIAsync.fulfilled, function (state, action) {
|
|
1742
|
-
var _a;
|
|
1743
|
-
state.loading = false;
|
|
1744
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
|
|
1745
|
-
})
|
|
1746
|
-
.addCase(verifyPACIAsync.rejected, function (state, action) {
|
|
1747
|
-
state.loading = false;
|
|
1748
|
-
var error = action.error.message;
|
|
1749
|
-
if (error !== 'Aborted') {
|
|
1750
|
-
state.error = error;
|
|
1751
|
-
}
|
|
1752
|
-
})
|
|
1753
|
-
.addCase(verifyNafathIdentityAsync.pending, function (state) {
|
|
1754
|
-
state.loading = true;
|
|
1755
|
-
state.error = null;
|
|
1756
|
-
})
|
|
1757
|
-
.addCase(verifyNafathIdentityAsync.fulfilled, function (state, action) {
|
|
1758
|
-
var _a, _b;
|
|
1759
|
-
state.loading = false;
|
|
1760
|
-
var _c = action.payload, data = _c.data, isNextScreenIsDob = _c.isNextScreenIsDob;
|
|
1761
|
-
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1762
|
-
state.data.individualData.isPrevDob = isNextScreenIsDob || false;
|
|
1763
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), data), { auth: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1764
|
-
})
|
|
1765
|
-
.addCase(verifyNafathIdentityAsync.rejected, function (state, action) {
|
|
1766
|
-
state.loading = false;
|
|
1767
|
-
var error = action.error.message;
|
|
1768
|
-
if (error !== 'Aborted') {
|
|
1769
|
-
state.error = error;
|
|
1770
|
-
}
|
|
1771
|
-
})
|
|
1772
|
-
.addCase(verifyPaciLeadIdentityAsync.pending, function (state) {
|
|
1773
|
-
state.loading = true;
|
|
1774
|
-
state.error = null;
|
|
1775
|
-
})
|
|
1776
|
-
.addCase(verifyPaciLeadIdentityAsync.fulfilled, function (state, action) {
|
|
1777
|
-
var _a, _b, _c;
|
|
1778
|
-
state.loading = false;
|
|
1779
|
-
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1780
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1781
|
-
})
|
|
1782
|
-
.addCase(verifyPaciLeadIdentityAsync.rejected, function (state, action) {
|
|
1783
|
-
state.loading = false;
|
|
1784
|
-
var error = action.error.message;
|
|
1785
|
-
if (error !== 'Aborted') {
|
|
1786
|
-
state.error = error;
|
|
1787
|
-
}
|
|
1788
|
-
})
|
|
1789
|
-
.addCase(retrieveEntityListAsync.pending, function (state) {
|
|
1790
|
-
state.loading = true;
|
|
1791
|
-
state.error = null;
|
|
1792
|
-
})
|
|
1793
|
-
.addCase(retrieveEntityListAsync.fulfilled, function (state, action) {
|
|
1794
|
-
var _a, _b, _c, _d;
|
|
1795
|
-
state.loading = false;
|
|
1796
|
-
var data = action.payload;
|
|
1797
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
1798
|
-
var licenseList = [];
|
|
1799
|
-
if (!description) {
|
|
1800
|
-
var fl = data.fl, cr = data.cr;
|
|
1801
|
-
if (Array.isArray(cr) && cr.length > 0) {
|
|
1802
|
-
licenseList = cr.map(function (item) {
|
|
1803
|
-
return __assign(__assign({}, item), { type: BusinessType.CR });
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
if (Array.isArray(fl) && fl.length > 0) {
|
|
1807
|
-
var mappedFL = fl.map(function (item) {
|
|
1808
|
-
return __assign(__assign({}, item), { type: BusinessType.FL });
|
|
1809
|
-
});
|
|
1810
|
-
licenseList = __spreadArray(__spreadArray([], licenseList, true), mappedFL, true);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
licenseList = __spreadArray(__spreadArray([], licenseList, true), [OTHER_CR_LICENSE, OTHER_FL_LICENSE], false);
|
|
1814
|
-
var _e = ((_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}, license_number = _e.license_number, license_type = _e.license_type, entity = _e.entity;
|
|
1815
|
-
var unified_number = (_d = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.additional_info) === null || _d === void 0 ? void 0 : _d.unified_number;
|
|
1816
|
-
var selectedLicense = undefined;
|
|
1817
|
-
if (license_number) {
|
|
1818
|
-
var findLicense = licenseList.find(function (_a) {
|
|
1819
|
-
var license = _a.license;
|
|
1820
|
-
return (license === null || license === void 0 ? void 0 : license.number) === license_number;
|
|
1821
|
-
});
|
|
1822
|
-
if (findLicense)
|
|
1823
|
-
selectedLicense = findLicense;
|
|
1824
|
-
else if (!findLicense && license_type === 'freelance') {
|
|
1825
|
-
selectedLicense = __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: license_number } });
|
|
1826
|
-
}
|
|
1827
|
-
else
|
|
1828
|
-
selectedLicense = __assign(__assign({}, OTHER_CR_LICENSE), { license: { number: license_number } });
|
|
1829
|
-
state.data.businessData.licenseNumber = license_number;
|
|
1830
|
-
}
|
|
1831
|
-
if (unified_number) {
|
|
1832
|
-
var findLicense = licenseList.find(function (_a) {
|
|
1833
|
-
var _b;
|
|
1834
|
-
var license = _a.license;
|
|
1835
|
-
return ((_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number) === unified_number;
|
|
1836
|
-
});
|
|
1837
|
-
if (findLicense)
|
|
1838
|
-
selectedLicense = findLicense;
|
|
1839
|
-
else
|
|
1840
|
-
selectedLicense = __assign(__assign({}, OTHER_CR_LICENSE), { license: { number: '', additional_info: { unified_number: unified_number } } });
|
|
1841
|
-
state.data.businessData.unifiedNumber = unified_number;
|
|
1842
|
-
}
|
|
1843
|
-
state.data.businessData.selectedLicense = selectedLicense;
|
|
1844
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { licenseList: licenseList });
|
|
1845
|
-
})
|
|
1846
|
-
.addCase(retrieveEntityListAsync.rejected, function (state, action) {
|
|
1847
|
-
state.loading = false;
|
|
1848
|
-
state.error = action.error.message;
|
|
1849
|
-
})
|
|
1850
|
-
.addCase(retrieveAuthenticationListAsync.fulfilled, function (state, action) {
|
|
1851
|
-
state.error = null;
|
|
1852
|
-
state.loading = false;
|
|
1853
|
-
var _a = action.payload, brandList = _a.brandList, entityList = _a.entityList;
|
|
1854
|
-
var eList = __spreadArray(__spreadArray([], entityList, true), [ADD_NEW_ENTITY], false);
|
|
1855
|
-
if (brandList === null || brandList === void 0 ? void 0 : brandList.length)
|
|
1856
|
-
state.data.authenticationData.brandInfo = brandList[0];
|
|
1857
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authenticationData: { brandList: brandList, entityList: eList } });
|
|
1858
|
-
})
|
|
1859
|
-
.addCase(retrieveAuthenticationListAsync.pending, function (state) {
|
|
1860
|
-
state.loading = true;
|
|
1861
|
-
state.error = null;
|
|
1862
|
-
})
|
|
1863
|
-
.addCase(retrieveAuthenticationListAsync.rejected, function (state, action) {
|
|
1864
|
-
state.loading = false;
|
|
1865
|
-
state.error = action.error.message;
|
|
1866
|
-
})
|
|
1867
|
-
.addCase(checkEmailAvailabilityAsync.fulfilled, function (state, action) {
|
|
1868
|
-
var _a;
|
|
1869
|
-
state.error = null;
|
|
1870
|
-
var is_available = (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.response) || {}).is_available;
|
|
1871
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { isEmailAvailable: is_available });
|
|
1872
|
-
})
|
|
1873
|
-
.addCase(checkEmailAvailabilityAsync.pending, function (state) {
|
|
1874
|
-
state.error = null;
|
|
1875
|
-
})
|
|
1876
|
-
.addCase(checkEmailAvailabilityAsync.rejected, function (state, action) {
|
|
1877
|
-
if (action.error.message === 'Aborted')
|
|
1878
|
-
return;
|
|
1879
|
-
state.error = action.error.message;
|
|
1880
|
-
})
|
|
1881
|
-
.addCase(checkBrandNameAvailabilityAsync.fulfilled, function (state, action) {
|
|
1882
|
-
var _a, _b;
|
|
1883
|
-
state.error = null;
|
|
1884
|
-
var isBrandNameAvailable = !(((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.response_code) === '5');
|
|
1885
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { isBrandNameAvailable: isBrandNameAvailable });
|
|
1886
|
-
})
|
|
1887
|
-
.addCase(checkBrandNameAvailabilityAsync.pending, function (state) {
|
|
1888
|
-
state.error = null;
|
|
1889
|
-
})
|
|
1890
|
-
.addCase(checkBrandNameAvailabilityAsync.rejected, function (state, action) {
|
|
1891
|
-
if (action.error.message === 'Aborted')
|
|
1892
|
-
return;
|
|
1893
|
-
state.error = action.error.message;
|
|
1894
|
-
})
|
|
1895
|
-
.addCase(updateLeadDOBAsync.fulfilled, function (state, action) {
|
|
1896
|
-
state.loading = false;
|
|
1897
|
-
state.error = null;
|
|
1898
|
-
state.data.dobData = action.payload.formData;
|
|
1899
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { dobData: action.payload.response, verifyAuthMobile: action.payload.response });
|
|
1900
|
-
state.data.verifyAuthOtpData.authFor = AuthForScreen.DOB;
|
|
1901
|
-
})
|
|
1902
|
-
.addCase(updateLeadDOBAsync.pending, function (state) {
|
|
1903
|
-
state.loading = true;
|
|
1904
|
-
state.error = null;
|
|
1905
|
-
})
|
|
1906
|
-
.addCase(updateLeadDOBAsync.rejected, function (state, action) {
|
|
1907
|
-
state.loading = false;
|
|
1908
|
-
state.error = action.error.message;
|
|
1909
|
-
})
|
|
1910
|
-
.addCase(updateLeadIndividualAsync.fulfilled, function (state, action) {
|
|
1911
|
-
var _a, _b;
|
|
1912
|
-
state.loading = false;
|
|
1913
|
-
state.error = null;
|
|
1914
|
-
var licenseList = [OTHER_CR_LICENSE, OTHER_FL_LICENSE];
|
|
1915
|
-
state.data.individualData = action.payload.formData;
|
|
1916
|
-
state.data.responseData = __assign(__assign(__assign(__assign({}, state.data.responseData), { individualData: action.payload.response }), (!((_b = (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.licenseList) === null || _b === void 0 ? void 0 : _b.length) && { licenseList: licenseList })), { verifyAuthMobile: action.payload.response });
|
|
1917
|
-
state.data.verifyAuthOtpData.authFor = AuthForScreen.INDIVIDUAL;
|
|
1918
|
-
})
|
|
1919
|
-
.addCase(updateLeadIndividualAsync.pending, function (state) {
|
|
1920
|
-
state.loading = true;
|
|
1921
|
-
state.error = null;
|
|
1922
|
-
})
|
|
1923
|
-
.addCase(updateLeadIndividualAsync.rejected, function (state, action) {
|
|
1924
|
-
state.loading = false;
|
|
1925
|
-
state.error = action.error.message;
|
|
1926
|
-
})
|
|
1927
|
-
.addCase(updateLeadBusinessDataAsync.fulfilled, function (state, action) {
|
|
1928
|
-
state.loading = false;
|
|
1929
|
-
state.error = null;
|
|
1930
|
-
state.data.businessData = action.payload.formData;
|
|
1931
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { businessData: action.payload.response });
|
|
1932
|
-
})
|
|
1933
|
-
.addCase(updateLeadBusinessDataAsync.pending, function (state) {
|
|
1934
|
-
state.loading = true;
|
|
1935
|
-
state.error = null;
|
|
1936
|
-
})
|
|
1937
|
-
.addCase(updateLeadBusinessDataAsync.rejected, function (state, action) {
|
|
1938
|
-
state.loading = false;
|
|
1939
|
-
state.error = action.error.message;
|
|
1940
|
-
})
|
|
1941
|
-
.addCase(updateLeadMobile.fulfilled, function (state, action) {
|
|
1942
|
-
state.loading = false;
|
|
1943
|
-
state.error = null;
|
|
1944
|
-
state.data.individualData.mobile = action.payload.formData.mobile;
|
|
1945
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { individualData: action.payload.leadResponse, verifyAuthMobile: action.payload.leadResponse });
|
|
1946
|
-
state.data.verifyAuthOtpData.authFor = AuthForScreen.MOBILE_OWNERSHIP;
|
|
1947
|
-
})
|
|
1948
|
-
.addCase(updateLeadMobile.pending, function (state) {
|
|
1949
|
-
state.loading = true;
|
|
1950
|
-
state.error = null;
|
|
1951
|
-
})
|
|
1952
|
-
.addCase(updateLeadMobile.rejected, function (state, action) {
|
|
1953
|
-
state.loading = false;
|
|
1954
|
-
state.error = action.error.message;
|
|
1955
|
-
})
|
|
1956
|
-
.addCase(skipUpdateLeadMobile.fulfilled, function (state, action) {
|
|
1957
|
-
state.loading = false;
|
|
1958
|
-
state.error = null;
|
|
1959
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { individualData: action.payload.leadResponse, verifyAuthMobile: action.payload.leadResponse });
|
|
1960
|
-
state.data.verifyAuthOtpData.authFor = AuthForScreen.MOBILE_OWNERSHIP;
|
|
1961
|
-
})
|
|
1962
|
-
.addCase(skipUpdateLeadMobile.pending, function (state) {
|
|
1963
|
-
state.loading = true;
|
|
1964
|
-
state.error = null;
|
|
1965
|
-
})
|
|
1966
|
-
.addCase(skipUpdateLeadMobile.rejected, function (state, action) {
|
|
1967
|
-
state.loading = false;
|
|
1968
|
-
state.error = action.error.message;
|
|
1969
|
-
})
|
|
1970
|
-
.addCase(verifyAuthMobileOtpAsync.fulfilled, function (state, action) {
|
|
1971
|
-
state.loading = false;
|
|
1972
|
-
state.error = null;
|
|
1973
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { verifyAuthMobileOtp: action.payload.data });
|
|
1974
|
-
state.data.verifyAuthOtpData.authFor = AuthForScreen.MOBILE_OWNERSHIP;
|
|
1975
|
-
})
|
|
1976
|
-
.addCase(verifyAuthMobileOtpAsync.pending, function (state) {
|
|
1977
|
-
state.loading = true;
|
|
1978
|
-
state.error = null;
|
|
1979
|
-
})
|
|
1980
|
-
.addCase(verifyAuthMobileOtpAsync.rejected, function (state, action) {
|
|
1981
|
-
state.loading = false;
|
|
1982
|
-
state.error = action.error.message;
|
|
1983
|
-
})
|
|
1984
|
-
.addCase(resendLeadMobileAuthOTP.pending, function (state) {
|
|
1985
|
-
state.loading = true;
|
|
1986
|
-
state.error = null;
|
|
1987
|
-
})
|
|
1988
|
-
.addCase(resendLeadMobileAuthOTP.fulfilled, function (state) {
|
|
1989
|
-
state.loading = false;
|
|
1990
|
-
state.error = null;
|
|
1991
|
-
})
|
|
1992
|
-
.addCase(resendLeadMobileAuthOTP.rejected, function (state, action) {
|
|
1993
|
-
state.loading = false;
|
|
1994
|
-
state.error = action.error.message;
|
|
1995
|
-
})
|
|
1996
|
-
.addCase(createAccountAsync.pending, function (state) {
|
|
1997
|
-
state.loading = true;
|
|
1998
|
-
})
|
|
1999
|
-
.addCase(createAccountAsync.fulfilled, function (state, action) {
|
|
2000
|
-
state.loading = false;
|
|
2001
|
-
state.error = null;
|
|
2002
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), action.payload);
|
|
2003
|
-
})
|
|
2004
|
-
.addCase(createAccountAsync.rejected, function (state, action) {
|
|
2005
|
-
state.loading = false;
|
|
2006
|
-
state.error = action.error.message;
|
|
2007
|
-
})
|
|
2008
|
-
.addCase(retrieveDetailsAfterCreateAccountAsync.pending, function (state) {
|
|
2009
|
-
state.loading = true;
|
|
2010
|
-
state.error = null;
|
|
2011
|
-
})
|
|
2012
|
-
.addCase(retrieveDetailsAfterCreateAccountAsync.fulfilled, function (state, action) {
|
|
2013
|
-
state.loading = false;
|
|
2014
|
-
state.error = null;
|
|
2015
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), action.payload);
|
|
2016
|
-
})
|
|
2017
|
-
.addCase(retrieveDetailsAfterCreateAccountAsync.rejected, function (state, action) {
|
|
2018
|
-
state.loading = false;
|
|
2019
|
-
state.error = action.error.message;
|
|
2020
|
-
})
|
|
2021
|
-
.addCase(getMerchantListAsync.pending, function (state) {
|
|
2022
|
-
state.loading = true;
|
|
2023
|
-
state.error = null;
|
|
2024
|
-
})
|
|
2025
|
-
.addCase(getMerchantListAsync.fulfilled, function (state, action) {
|
|
2026
|
-
state.loading = false;
|
|
2027
|
-
state.error = null;
|
|
2028
|
-
var data = state.data.responseData;
|
|
2029
|
-
var _a = action.payload, list = _a.list, brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
|
|
2030
|
-
state.data.authenticationData.brandInfo = brandInfo;
|
|
2031
|
-
state.data.authenticationData.entityInfo = entityInfo;
|
|
2032
|
-
if (list === null || list === void 0 ? void 0 : list.length) {
|
|
2033
|
-
state.data.authMerchantData.merchantInfo = list[0];
|
|
2034
|
-
}
|
|
2035
|
-
state.data.responseData = __assign(__assign({}, data), { authMerchantData: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.authMerchantData), { merchantList: list }) });
|
|
2036
|
-
})
|
|
2037
|
-
.addCase(getMerchantListAsync.rejected, function (state, action) {
|
|
2038
|
-
state.loading = false;
|
|
2039
|
-
state.error = action.error.message;
|
|
2040
|
-
})
|
|
2041
|
-
.addCase(confirmInfo.pending, function (state) {
|
|
2042
|
-
state.loading = true;
|
|
2043
|
-
state.error = null;
|
|
2044
|
-
})
|
|
2045
|
-
.addCase(confirmInfo.fulfilled, function (state, action) {
|
|
2046
|
-
state.loading = false;
|
|
2047
|
-
state.error = null;
|
|
2048
|
-
var _a = action.payload || {}, boardInfo = _a.boardInfo, boardData = _a.boardData, confirmData = _a.confirmData;
|
|
2049
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { boardInfo: boardInfo, boardData: boardData, confirmData: confirmData });
|
|
2050
|
-
})
|
|
2051
|
-
.addCase(confirmInfo.rejected, function (state, action) {
|
|
2052
|
-
state.loading = false;
|
|
2053
|
-
state.error = action.error.message;
|
|
2054
|
-
})
|
|
2055
|
-
.addCase(onCloseCompleteAsync.pending, function (state) {
|
|
2056
|
-
state.loading = true;
|
|
2057
|
-
state.error = null;
|
|
2058
|
-
})
|
|
2059
|
-
.addCase(onCloseCompleteAsync.fulfilled, function (state) {
|
|
2060
|
-
state.loading = false;
|
|
2061
|
-
state.error = null;
|
|
2062
|
-
state.data.responseData = __assign({}, state.data.responseData);
|
|
2063
|
-
})
|
|
2064
|
-
.addCase(onCloseCompleteAsync.rejected, function (state, action) {
|
|
2065
|
-
state.loading = false;
|
|
2066
|
-
state.error = action.error.message;
|
|
2067
|
-
})
|
|
2068
|
-
.addCase(updateBusinessCountryAsync.pending, function (state) {
|
|
2069
|
-
state.loading = true;
|
|
2070
|
-
state.error = null;
|
|
2071
|
-
})
|
|
2072
|
-
.addCase(updateBusinessCountryAsync.rejected, function (state, action) {
|
|
2073
|
-
state.loading = false;
|
|
2074
|
-
state.error = action.error.message;
|
|
2075
|
-
})
|
|
2076
|
-
.addCase(updateBusinessCountryAsync.fulfilled, function (state) {
|
|
2077
|
-
state.loading = false;
|
|
2078
|
-
state.error = null;
|
|
2079
|
-
})
|
|
2080
|
-
.addCase(createEntity.pending, function (state) {
|
|
2081
|
-
state.loading = true;
|
|
2082
|
-
state.error = null;
|
|
2083
|
-
})
|
|
2084
|
-
.addCase(createEntity.rejected, function (state, action) {
|
|
2085
|
-
state.loading = false;
|
|
2086
|
-
state.error = action.error.message;
|
|
2087
|
-
})
|
|
2088
|
-
.addCase(createEntity.fulfilled, function (state, action) {
|
|
2089
|
-
state.loading = false;
|
|
2090
|
-
state.error = null;
|
|
2091
|
-
var data = action.payload.data;
|
|
2092
|
-
var authenticationData = (state.data.responseData || {}).authenticationData;
|
|
2093
|
-
var entityList = (authenticationData || {}).entityList;
|
|
2094
|
-
if (data === null || data === void 0 ? void 0 : data.entity) {
|
|
2095
|
-
var entity = __assign(__assign({}, data.entity), { business_id: data === null || data === void 0 ? void 0 : data.business_id });
|
|
2096
|
-
var list = __spreadArray([entity], entityList, true);
|
|
2097
|
-
state.data.authenticationData.entityInfo = list[0];
|
|
2098
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { entityData: data, authenticationData: __assign(__assign({}, authenticationData), { entityList: list }) });
|
|
2099
|
-
}
|
|
2100
|
-
});
|
|
2101
|
-
}
|
|
2102
|
-
});
|
|
2103
|
-
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, setIsLeadIdPassed = _a.setIsLeadIdPassed, resetMobileScreen = _a.resetMobileScreen, resetOTPValue = _a.resetOTPValue, resetVerifyAuthOTPValue = _a.resetVerifyAuthOTPValue, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setError = _a.setError, setLeadId = _a.setLeadId, resetIndividualScreen = _a.resetIndividualScreen, setDefaultCountryCode = _a.setDefaultCountryCode, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen;
|
|
2104
|
-
export default connectSlice.reducer;
|
|
2105
|
-
export var connectExpressSelector = function (state) { return state.connectExpress; };
|