@tap-payments/auth-jsconnect 2.1.12-test → 2.1.14-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +236 -0
- package/build/@types/app.js +35 -0
- package/build/@types/form.d.ts +94 -0
- package/build/@types/form.js +1 -0
- package/build/@types/index.d.ts +4 -0
- package/build/@types/index.js +4 -0
- package/build/@types/redux.d.ts +14 -0
- package/build/@types/redux.js +1 -0
- package/build/@types/theme.d.ts +14 -0
- package/build/@types/theme.js +15 -0
- package/build/api/account.d.ts +14 -0
- package/build/api/account.js +13 -0
- package/build/api/auth.d.ts +87 -0
- package/build/api/auth.js +56 -0
- package/build/api/availabilityServices.d.ts +20 -0
- package/build/api/availabilityServices.js +17 -0
- package/build/api/axios.d.ts +7 -0
- package/build/api/axios.js +110 -0
- package/build/api/board.d.ts +27 -0
- package/build/api/board.js +63 -0
- package/build/api/brand.d.ts +8 -0
- package/build/api/brand.js +49 -0
- package/build/api/country.d.ts +6 -0
- package/build/api/country.js +14 -0
- package/build/api/data.d.ts +41 -0
- package/build/api/data.js +76 -0
- package/build/api/entity.d.ts +103 -0
- package/build/api/entity.js +89 -0
- package/build/api/firebase.d.ts +4 -0
- package/build/api/firebase.js +14 -0
- package/build/api/index.d.ts +114 -0
- package/build/api/index.js +33 -0
- package/build/api/individual.d.ts +89 -0
- package/build/api/individual.js +39 -0
- package/build/api/ip.d.ts +4 -0
- package/build/api/ip.js +12 -0
- package/build/api/lead.d.ts +96 -0
- package/build/api/lead.js +52 -0
- package/build/api/operator.d.ts +12 -0
- package/build/api/operator.js +65 -0
- package/build/api/user.d.ts +8 -0
- package/build/api/user.js +12 -0
- package/build/app/rootReducer.d.ts +13 -0
- package/build/app/rootReducer.js +23 -0
- package/build/app/settings.d.ts +44 -0
- package/build/app/settings.js +257 -0
- package/build/app/store.d.ts +27 -0
- package/build/app/store.js +11 -0
- package/build/assets/locales/ar.json +336 -0
- package/build/assets/locales/en.json +363 -0
- package/build/components/AnimationFlow/AnimationFlow.d.ts +17 -0
- package/build/components/AnimationFlow/AnimationFlow.js +34 -0
- package/build/components/AnimationFlow/BottomSheet.d.ts +11 -0
- package/build/components/AnimationFlow/BottomSheet.js +86 -0
- package/build/components/AnimationFlow/Dialog.d.ts +15 -0
- package/build/components/AnimationFlow/Dialog.js +111 -0
- package/build/components/AnimationFlow/Error.d.ts +6 -0
- package/build/components/AnimationFlow/Error.js +32 -0
- package/build/components/AnimationFlow/Loader.d.ts +2 -0
- package/build/components/AnimationFlow/Loader.js +24 -0
- package/build/components/AnimationFlow/index.d.ts +2 -0
- package/build/components/AnimationFlow/index.js +2 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
- package/build/components/ArabicDatePicker/index.d.ts +2 -0
- package/build/components/ArabicDatePicker/index.js +2 -0
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/Button/Button.d.ts +14 -0
- package/build/components/Button/Button.js +101 -0
- package/build/components/Button/index.d.ts +4 -0
- package/build/components/Button/index.js +2 -0
- package/build/components/CheckBox/CheckBox.d.ts +5 -0
- package/build/components/CheckBox/CheckBox.js +39 -0
- package/build/components/CheckBox/index.d.ts +4 -0
- package/build/components/CheckBox/index.js +2 -0
- package/build/components/Collapse/Collapse.d.ts +5 -0
- package/build/components/Collapse/Collapse.js +28 -0
- package/build/components/Collapse/index.d.ts +3 -0
- package/build/components/Collapse/index.js +2 -0
- package/build/components/DatePicker/DatePicker.d.ts +14 -0
- package/build/components/DatePicker/DatePicker.js +101 -0
- package/build/components/DatePicker/customStyle.css +86 -0
- package/build/components/DatePicker/index.d.ts +3 -0
- package/build/components/DatePicker/index.js +2 -0
- package/build/components/ExpandIcon/ExpandIcon.d.ts +7 -0
- package/build/components/ExpandIcon/ExpandIcon.js +24 -0
- package/build/components/ExpandIcon/index.d.ts +2 -0
- package/build/components/ExpandIcon/index.js +2 -0
- package/build/components/FileInput/DragAndDrop.d.ts +17 -0
- package/build/components/FileInput/DragAndDrop.js +136 -0
- package/build/components/FileInput/UploadInput.d.ts +7 -0
- package/build/components/FileInput/UploadInput.js +38 -0
- package/build/components/FileInput/index.d.ts +3 -0
- package/build/components/FileInput/index.js +3 -0
- package/build/components/Footer/Footer.d.ts +15 -0
- package/build/components/Footer/Footer.js +62 -0
- package/build/components/Footer/index.d.ts +4 -0
- package/build/components/Footer/index.js +2 -0
- package/build/components/Form/Form.d.ts +11 -0
- package/build/components/Form/Form.js +38 -0
- package/build/components/Form/index.d.ts +3 -0
- package/build/components/Form/index.js +2 -0
- package/build/components/Icon/Icon.d.ts +11 -0
- package/build/components/Icon/Icon.js +26 -0
- package/build/components/Icon/index.d.ts +3 -0
- package/build/components/Icon/index.js +2 -0
- package/build/components/Input/Input.d.ts +19 -0
- package/build/components/Input/Input.js +84 -0
- package/build/components/Input/index.d.ts +3 -0
- package/build/components/Input/index.js +2 -0
- package/build/components/InputAdornment/InputAdornment.d.ts +10 -0
- package/build/components/InputAdornment/InputAdornment.js +46 -0
- package/build/components/InputAdornment/index.d.ts +3 -0
- package/build/components/InputAdornment/index.js +2 -0
- package/build/components/List/List.d.ts +5 -0
- package/build/components/List/List.js +52 -0
- package/build/components/List/index.d.ts +3 -0
- package/build/components/List/index.js +2 -0
- package/build/components/ListItem/ListItem.d.ts +5 -0
- package/build/components/ListItem/ListItem.js +35 -0
- package/build/components/ListItem/index.d.ts +3 -0
- package/build/components/ListItem/index.js +2 -0
- package/build/components/Loader/Loader.d.ts +24 -0
- package/build/components/Loader/Loader.js +41 -0
- package/build/components/Loader/index.d.ts +4 -0
- package/build/components/Loader/index.js +2 -0
- package/build/components/LogoBadge/LogoBadge.d.ts +7 -0
- package/build/components/LogoBadge/LogoBadge.js +61 -0
- package/build/components/LogoBadge/index.d.ts +3 -0
- package/build/components/LogoBadge/index.js +2 -0
- package/build/components/Lottie/Lottie.d.ts +3675 -0
- package/build/components/Lottie/Lottie.js +62 -0
- package/build/components/Lottie/files/error.json +692 -0
- package/build/components/Lottie/files/start_loading.json +1140 -0
- package/build/components/Lottie/files/still_loading.json +1140 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPField/OTPField.d.ts +18 -0
- package/build/components/OTPField/OTPField.js +45 -0
- package/build/components/OTPField/index.d.ts +4 -0
- package/build/components/OTPField/index.js +2 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +14 -0
- package/build/components/OTPTimer/OTPTimer.js +70 -0
- package/build/components/OTPTimer/index.d.ts +4 -0
- package/build/components/OTPTimer/index.js +2 -0
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/ProgressBar.d.ts +6 -0
- package/build/components/ProgressBar/ProgressBar.js +45 -0
- package/build/components/ProgressBar/index.d.ts +6 -0
- package/build/components/ProgressBar/index.js +4 -0
- package/build/components/Providers/ReduxProvider.d.ts +7 -0
- package/build/components/Providers/ReduxProvider.js +17 -0
- package/build/components/Providers/ThemeProvider.d.ts +8 -0
- package/build/components/Providers/ThemeProvider.js +22 -0
- package/build/components/Providers/index.d.ts +3 -0
- package/build/components/Providers/index.js +3 -0
- package/build/components/Radio/Radio.d.ts +5 -0
- package/build/components/Radio/Radio.js +31 -0
- package/build/components/Radio/index.d.ts +3 -0
- package/build/components/Radio/index.js +2 -0
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/build/components/RadioGroup/RadioGroup.js +41 -0
- package/build/components/RadioGroup/index.d.ts +3 -0
- package/build/components/RadioGroup/index.js +2 -0
- package/build/components/RadioLabel/RadioLabel.d.ts +10 -0
- package/build/components/RadioLabel/RadioLabel.js +34 -0
- package/build/components/RadioLabel/index.d.ts +3 -0
- package/build/components/RadioLabel/index.js +2 -0
- package/build/components/SimpleList/SimpleList.d.ts +18 -0
- package/build/components/SimpleList/SimpleList.js +104 -0
- package/build/components/SimpleList/index.d.ts +3 -0
- package/build/components/SimpleList/index.js +2 -0
- package/build/components/Slide/Slide.d.ts +6 -0
- package/build/components/Slide/Slide.js +30 -0
- package/build/components/Slide/index.d.ts +3 -0
- package/build/components/Slide/index.js +2 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +11 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +34 -0
- package/build/components/SocialMediaGroup/index.d.ts +3 -0
- package/build/components/SocialMediaGroup/index.js +2 -0
- package/build/components/Text/Text.d.ts +5 -0
- package/build/components/Text/Text.js +35 -0
- package/build/components/Text/index.d.ts +3 -0
- package/build/components/Text/index.js +2 -0
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
- package/build/components/ToggleButton/ToggleButton.js +44 -0
- package/build/components/ToggleButton/index.d.ts +3 -0
- package/build/components/ToggleButton/index.js +2 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
- package/build/components/ToggleButtonGroup/index.d.ts +3 -0
- package/build/components/ToggleButtonGroup/index.js +2 -0
- package/build/components/Tooltip/Tooltip.d.ts +10 -0
- package/build/components/Tooltip/Tooltip.js +44 -0
- package/build/components/Tooltip/index.d.ts +3 -0
- package/build/components/Tooltip/index.js +2 -0
- package/build/components/Warning/Warning.d.ts +13 -0
- package/build/components/Warning/Warning.js +53 -0
- package/build/components/Warning/index.d.ts +4 -0
- package/build/components/Warning/index.js +2 -0
- package/build/constants/api.d.ts +40 -0
- package/build/constants/api.js +79 -0
- package/build/constants/app.d.ts +171 -0
- package/build/constants/app.js +502 -0
- package/build/constants/assets.d.ts +92 -0
- package/build/constants/assets.js +92 -0
- package/build/constants/dummy.d.ts +328 -0
- package/build/constants/dummy.js +6436 -0
- package/build/constants/index.d.ts +5 -0
- package/build/constants/index.js +5 -0
- package/build/constants/validation.d.ts +25 -0
- package/build/constants/validation.js +25 -0
- package/build/features/app/auth/authStore.d.ts +46 -0
- package/build/features/app/auth/authStore.js +261 -0
- package/build/features/app/bank/bankStore.d.ts +76 -0
- package/build/features/app/bank/bankStore.js +472 -0
- package/build/features/app/business/businessStore.d.ts +128 -0
- package/build/features/app/business/businessStore.js +1183 -0
- package/build/features/app/connect/connectStore.d.ts +104 -0
- package/build/features/app/connect/connectStore.js +966 -0
- package/build/features/app/entity/entityStore.d.ts +85 -0
- package/build/features/app/entity/entityStore.js +690 -0
- package/build/features/app/individual/individualStore.d.ts +86 -0
- package/build/features/app/individual/individualStore.js +540 -0
- package/build/features/app/password/passwordStore.d.ts +84 -0
- package/build/features/app/password/passwordStore.js +532 -0
- package/build/features/app/signIn/signInStore.d.ts +33 -0
- package/build/features/app/signIn/signInStore.js +390 -0
- package/build/features/app/tax/taxStore.d.ts +46 -0
- package/build/features/app/tax/taxStore.js +385 -0
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/NID/DOB.d.ts +7 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +3 -0
- package/build/features/auth/screens/NID/IDNumber.js +64 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +68 -0
- package/build/features/auth/screens/NID/TAC.d.ts +3 -0
- package/build/features/auth/screens/NID/TAC.js +87 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +27 -0
- package/build/features/auth/screens/NID/validation.js +19 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +76 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +51 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +7 -0
- package/build/features/bank/Bank.js +69 -0
- package/build/features/bank/index.d.ts +1 -0
- package/build/features/bank/index.js +1 -0
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/BankDetails.js +86 -0
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/BankName.js +60 -0
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +6 -0
- package/build/features/bank/screens/BankDetails/BankStatement.js +67 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.js +50 -0
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +67 -0
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +7 -0
- package/build/features/bank/screens/BankDetails/IBAN.js +100 -0
- package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/index.js +2 -0
- package/build/features/bank/screens/BankDetails/validation.d.ts +45 -0
- package/build/features/bank/screens/BankDetails/validation.js +56 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/bank/screens/Success/Success.d.ts +5 -0
- package/build/features/bank/screens/Success/Success.js +20 -0
- package/build/features/bank/screens/Success/index.d.ts +3 -0
- package/build/features/bank/screens/Success/index.js +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/bank/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/bank/screens/Verify/OTPInput.js +47 -0
- package/build/features/bank/screens/Verify/Verify.d.ts +5 -0
- package/build/features/bank/screens/Verify/Verify.js +78 -0
- package/build/features/bank/screens/Verify/index.d.ts +2 -0
- package/build/features/bank/screens/Verify/index.js +2 -0
- package/build/features/bank/screens/Verify/validation.d.ts +8 -0
- package/build/features/bank/screens/Verify/validation.js +4 -0
- package/build/features/business/Business.d.ts +7 -0
- package/build/features/business/Business.js +70 -0
- package/build/features/business/index.d.ts +1 -0
- package/build/features/business/index.js +1 -0
- package/build/features/business/screens/Activities/Activities.d.ts +5 -0
- package/build/features/business/screens/Activities/Activities.js +77 -0
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +90 -0
- package/build/features/business/screens/Activities/ActivitiesList.js +170 -0
- package/build/features/business/screens/Activities/LicenseName.d.ts +5 -0
- package/build/features/business/screens/Activities/LicenseName.js +30 -0
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +20 -0
- package/build/features/business/screens/Activities/OperationStartDate.js +45 -0
- package/build/features/business/screens/Activities/index.d.ts +3 -0
- package/build/features/business/screens/Activities/index.js +2 -0
- package/build/features/business/screens/Activities/validation.d.ts +56 -0
- package/build/features/business/screens/Activities/validation.js +11 -0
- package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
- package/build/features/business/screens/BusinessType/Article.js +89 -0
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +5 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +79 -0
- package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
- package/build/features/business/screens/BusinessType/EntityName.js +56 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +81 -0
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +8 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +148 -0
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +7 -0
- package/build/features/business/screens/BusinessType/LicenseNumber.js +52 -0
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -0
- package/build/features/business/screens/BusinessType/LicenseType.js +107 -0
- package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
- package/build/features/business/screens/BusinessType/SelectType.js +106 -0
- package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
- package/build/features/business/screens/BusinessType/Switch.js +35 -0
- package/build/features/business/screens/BusinessType/index.d.ts +3 -0
- package/build/features/business/screens/BusinessType/index.js +2 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +30 -0
- package/build/features/business/screens/BusinessType/validation.js +90 -0
- package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/business/screens/CivilID/CivilID.js +67 -0
- package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/business/screens/CivilID/IDNumber.js +59 -0
- package/build/features/business/screens/CivilID/index.d.ts +3 -0
- package/build/features/business/screens/CivilID/index.js +2 -0
- package/build/features/business/screens/CivilID/validation.d.ts +8 -0
- package/build/features/business/screens/CivilID/validation.js +4 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +82 -0
- package/build/features/business/screens/Customers/CustomerLocations.js +144 -0
- package/build/features/business/screens/Customers/Customers.d.ts +5 -0
- package/build/features/business/screens/Customers/Customers.js +90 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +8 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.js +98 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +8 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +127 -0
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +36 -0
- package/build/features/business/screens/Customers/RefundPolicy.js +84 -0
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/business/screens/Customers/TransactionPolicy.js +44 -0
- package/build/features/business/screens/Customers/index.d.ts +3 -0
- package/build/features/business/screens/Customers/index.js +2 -0
- package/build/features/business/screens/Customers/validation.d.ts +20 -0
- package/build/features/business/screens/Customers/validation.js +13 -0
- package/build/features/business/screens/IDBOD/DOB.d.ts +6 -0
- package/build/features/business/screens/IDBOD/DOB.js +45 -0
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
- package/build/features/business/screens/IDBOD/ID.js +28 -0
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +68 -0
- package/build/features/business/screens/IDBOD/index.d.ts +3 -0
- package/build/features/business/screens/IDBOD/index.js +2 -0
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
- package/build/features/business/screens/IDBOD/validation.js +9 -0
- package/build/features/business/screens/OTP/OTP.d.ts +8 -0
- package/build/features/business/screens/OTP/OTP.js +90 -0
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/business/screens/OTP/OTPInput.js +46 -0
- package/build/features/business/screens/OTP/index.d.ts +3 -0
- package/build/features/business/screens/OTP/index.js +2 -0
- package/build/features/business/screens/OTP/validation.d.ts +8 -0
- package/build/features/business/screens/OTP/validation.js +4 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/business/screens/Success/Success.d.ts +5 -0
- package/build/features/business/screens/Success/Success.js +23 -0
- package/build/features/business/screens/Success/index.d.ts +3 -0
- package/build/features/business/screens/Success/index.js +2 -0
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +113 -0
- package/build/features/business/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/business/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/business/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/business/screens/Verify/OTPInput.js +47 -0
- package/build/features/business/screens/Verify/Verify.d.ts +5 -0
- package/build/features/business/screens/Verify/Verify.js +78 -0
- package/build/features/business/screens/Verify/index.d.ts +2 -0
- package/build/features/business/screens/Verify/index.js +2 -0
- package/build/features/business/screens/Verify/validation.d.ts +8 -0
- package/build/features/business/screens/Verify/validation.js +4 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/business/screens/VerifyPACI/index.js +2 -0
- package/build/features/connect/Connect.d.ts +8 -0
- package/build/features/connect/Connect.js +84 -0
- package/build/features/connect/index.d.ts +1 -0
- package/build/features/connect/index.js +1 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +102 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.d.ts +8 -0
- package/build/features/connect/screens/Individual/Email.js +116 -0
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
- package/build/features/connect/screens/Individual/Individual.js +104 -0
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +10 -0
- package/build/features/connect/screens/Individual/MobileNumber.js +152 -0
- package/build/features/connect/screens/Individual/Name.d.ts +6 -0
- package/build/features/connect/screens/Individual/Name.js +48 -0
- package/build/features/connect/screens/Individual/index.d.ts +3 -0
- package/build/features/connect/screens/Individual/index.js +2 -0
- package/build/features/connect/screens/Individual/validation.d.ts +24 -0
- package/build/features/connect/screens/Individual/validation.js +41 -0
- package/build/features/connect/screens/Merchant/BrandList.d.ts +10 -0
- package/build/features/connect/screens/Merchant/BrandList.js +93 -0
- package/build/features/connect/screens/Merchant/BrandName.d.ts +8 -0
- package/build/features/connect/screens/Merchant/BrandName.js +142 -0
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
- package/build/features/connect/screens/Merchant/Merchant.js +92 -0
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +41 -0
- package/build/features/connect/screens/Merchant/TAC.d.ts +6 -0
- package/build/features/connect/screens/Merchant/TAC.js +86 -0
- package/build/features/connect/screens/Merchant/index.d.ts +3 -0
- package/build/features/connect/screens/Merchant/index.js +2 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +32 -0
- package/build/features/connect/screens/Merchant/validation.js +130 -0
- package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connect/screens/Mobile/Mobile.js +133 -0
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +12 -0
- package/build/features/connect/screens/Mobile/MobileNumber.js +154 -0
- package/build/features/connect/screens/Mobile/Title.d.ts +8 -0
- package/build/features/connect/screens/Mobile/Title.js +29 -0
- package/build/features/connect/screens/Mobile/index.d.ts +3 -0
- package/build/features/connect/screens/Mobile/index.js +2 -0
- package/build/features/connect/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connect/screens/Mobile/validation.js +28 -0
- package/build/features/connect/screens/NID/DOB.d.ts +6 -0
- package/build/features/connect/screens/NID/DOB.js +47 -0
- package/build/features/connect/screens/NID/IDNumber.d.ts +6 -0
- package/build/features/connect/screens/NID/IDNumber.js +60 -0
- package/build/features/connect/screens/NID/NID.d.ts +5 -0
- package/build/features/connect/screens/NID/NID.js +94 -0
- package/build/features/connect/screens/NID/index.d.ts +3 -0
- package/build/features/connect/screens/NID/index.js +2 -0
- package/build/features/connect/screens/NID/validation.d.ts +11 -0
- package/build/features/connect/screens/NID/validation.js +9 -0
- package/build/features/connect/screens/OTP/OTP.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTP.js +94 -0
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTPInput.js +54 -0
- package/build/features/connect/screens/OTP/index.d.ts +3 -0
- package/build/features/connect/screens/OTP/index.js +2 -0
- package/build/features/connect/screens/OTP/validation.d.ts +8 -0
- package/build/features/connect/screens/OTP/validation.js +4 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +16 -0
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
- package/build/features/connect/screens/ThankYou/index.js +2 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/Customers/CustomerLocations.d.ts +118 -0
- package/build/features/entity/screens/Customers/CustomerLocations.js +171 -0
- package/build/features/entity/screens/Customers/Customers.d.ts +5 -0
- package/build/features/entity/screens/Customers/Customers.js +90 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.js +98 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.js +127 -0
- package/build/features/entity/screens/Customers/RefundPolicy.d.ts +36 -0
- package/build/features/entity/screens/Customers/RefundPolicy.js +84 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.js +44 -0
- package/build/features/entity/screens/Customers/index.d.ts +3 -0
- package/build/features/entity/screens/Customers/index.js +2 -0
- package/build/features/entity/screens/Customers/validation.d.ts +20 -0
- package/build/features/entity/screens/Customers/validation.js +13 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +55 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +149 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +3 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.js +76 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +84 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +32 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +57 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +33 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +141 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +83 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +20 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +116 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +91 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +10 -0
- package/build/features/featuresScreens.js +254 -0
- package/build/features/individual/Individual.d.ts +7 -0
- package/build/features/individual/Individual.js +70 -0
- package/build/features/individual/index.d.ts +1 -0
- package/build/features/individual/index.js +1 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +8 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +94 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +92 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +46 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +49 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +107 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +97 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +34 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +68 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +89 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +25 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +24 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +19 -0
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +52 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +3 -0
- package/build/features/individual/screens/ShowIndividualInfo/index.js +2 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +7 -0
- package/build/features/individual/screens/ShowIndividualInfo/info.js +28 -0
- package/build/features/individual/screens/Success/Success.d.ts +5 -0
- package/build/features/individual/screens/Success/Success.js +20 -0
- package/build/features/individual/screens/Success/index.d.ts +3 -0
- package/build/features/individual/screens/Success/index.js +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/individual/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/individual/screens/Verify/OTPInput.js +47 -0
- package/build/features/individual/screens/Verify/Verify.d.ts +5 -0
- package/build/features/individual/screens/Verify/Verify.js +91 -0
- package/build/features/individual/screens/Verify/index.d.ts +2 -0
- package/build/features/individual/screens/Verify/index.js +2 -0
- package/build/features/individual/screens/Verify/validation.d.ts +8 -0
- package/build/features/individual/screens/Verify/validation.js +4 -0
- package/build/features/password/Password.d.ts +7 -0
- package/build/features/password/Password.js +77 -0
- package/build/features/password/index.d.ts +1 -0
- package/build/features/password/index.js +1 -0
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +8 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +22 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.js +73 -0
- package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/Password.js +76 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
- package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
- package/build/features/password/screens/CreatePassword/index.js +2 -0
- package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
- package/build/features/password/screens/CreatePassword/validation.js +8 -0
- package/build/features/password/screens/OTP/OTP.d.ts +8 -0
- package/build/features/password/screens/OTP/OTP.js +91 -0
- package/build/features/password/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/password/screens/OTP/OTPInput.js +46 -0
- package/build/features/password/screens/OTP/index.d.ts +3 -0
- package/build/features/password/screens/OTP/index.js +2 -0
- package/build/features/password/screens/OTP/validation.d.ts +8 -0
- package/build/features/password/screens/OTP/validation.js +4 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/password/screens/Success/Success.d.ts +5 -0
- package/build/features/password/screens/Success/Success.js +26 -0
- package/build/features/password/screens/Success/index.d.ts +3 -0
- package/build/features/password/screens/Success/index.js +2 -0
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/password/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/password/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/password/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/password/screens/Verify/OTPInput.js +47 -0
- package/build/features/password/screens/Verify/Verify.d.ts +5 -0
- package/build/features/password/screens/Verify/Verify.js +91 -0
- package/build/features/password/screens/Verify/index.d.ts +2 -0
- package/build/features/password/screens/Verify/index.js +2 -0
- package/build/features/password/screens/Verify/validation.d.ts +8 -0
- package/build/features/password/screens/Verify/validation.js +4 -0
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +7 -0
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +65 -0
- package/build/features/shared/AcceptancePayouts/index.d.ts +2 -0
- package/build/features/shared/AcceptancePayouts/index.js +2 -0
- package/build/features/shared/Background/Background.d.ts +12 -0
- package/build/features/shared/Background/Background.js +41 -0
- package/build/features/shared/Background/LogoBackground.d.ts +3 -0
- package/build/features/shared/Background/LogoBackground.js +42 -0
- package/build/features/shared/Background/index.d.ts +2 -0
- package/build/features/shared/Background/index.js +2 -0
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +3 -0
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.js +31 -0
- package/build/features/shared/BouncingDotsLoader/index.d.ts +2 -0
- package/build/features/shared/BouncingDotsLoader/index.js +2 -0
- package/build/features/shared/Button/AbsherButton.d.ts +8 -0
- package/build/features/shared/Button/AbsherButton.js +46 -0
- package/build/features/shared/Button/Button.d.ts +12 -0
- package/build/features/shared/Button/Button.js +102 -0
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +14 -0
- package/build/features/shared/Button/EmailProvidersButtons.js +67 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +25 -0
- package/build/features/shared/Button/FlowsButtons.js +219 -0
- package/build/features/shared/Button/MobileButton.d.ts +9 -0
- package/build/features/shared/Button/MobileButton.js +44 -0
- package/build/features/shared/Button/SuccessButton.d.ts +9 -0
- package/build/features/shared/Button/SuccessButton.js +86 -0
- package/build/features/shared/Button/index.d.ts +8 -0
- package/build/features/shared/Button/index.js +8 -0
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
- package/build/features/shared/CheckIcon/index.d.ts +2 -0
- package/build/features/shared/CheckIcon/index.js +2 -0
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
- package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
- package/build/features/shared/ClearIcon/index.d.ts +2 -0
- package/build/features/shared/ClearIcon/index.js +2 -0
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
- package/build/features/shared/Containers/FeatureContainer.js +36 -0
- package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
- package/build/features/shared/Containers/ScreenContainer.js +29 -0
- package/build/features/shared/Containers/index.d.ts +3 -0
- package/build/features/shared/Containers/index.js +3 -0
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +71 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.d.ts +2 -0
- package/build/features/shared/Footer/Footer.js +20 -0
- package/build/features/shared/Footer/index.d.ts +2 -0
- package/build/features/shared/Footer/index.js +2 -0
- package/build/features/shared/Input/Input.d.ts +26 -0
- package/build/features/shared/Input/Input.js +56 -0
- package/build/features/shared/Input/index.d.ts +2 -0
- package/build/features/shared/Input/index.js +2 -0
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -0
- package/build/features/shared/Mandatory/Mandatory.js +20 -0
- package/build/features/shared/Mandatory/index.d.ts +2 -0
- package/build/features/shared/Mandatory/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +10 -0
- package/build/features/shared/OTP/OTP.js +93 -0
- package/build/features/shared/OTP/index.d.ts +2 -0
- package/build/features/shared/OTP/index.js +2 -0
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
- package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +13 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -0
- package/build/features/shared/PaciVerification/index.d.ts +2 -0
- package/build/features/shared/PaciVerification/index.js +2 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
- package/build/features/shared/PasswordIcon/index.d.ts +2 -0
- package/build/features/shared/PasswordIcon/index.js +2 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +10 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +132 -0
- package/build/features/shared/SalesChannels/index.d.ts +2 -0
- package/build/features/shared/SalesChannels/index.js +2 -0
- package/build/features/shared/Search/Search.d.ts +7 -0
- package/build/features/shared/Search/Search.js +13 -0
- package/build/features/shared/Search/index.d.ts +2 -0
- package/build/features/shared/Search/index.js +2 -0
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +6 -0
- package/build/features/shared/SearchIcon/SearchIcon.js +26 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +12 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.js +62 -0
- package/build/features/shared/SuccessScreen/index.d.ts +2 -0
- package/build/features/shared/SuccessScreen/index.js +2 -0
- package/build/features/shared/UploadFile/UploadFile.d.ts +29 -0
- package/build/features/shared/UploadFile/UploadFile.js +91 -0
- package/build/features/shared/UploadFile/index.d.ts +2 -0
- package/build/features/shared/UploadFile/index.js +2 -0
- package/build/features/signIn/SignIn.d.ts +7 -0
- package/build/features/signIn/SignIn.js +57 -0
- package/build/features/signIn/index.d.ts +1 -0
- package/build/features/signIn/index.js +1 -0
- package/build/features/signIn/screens/Email/Email.d.ts +5 -0
- package/build/features/signIn/screens/Email/Email.js +97 -0
- package/build/features/signIn/screens/Email/EmailField.d.ts +5 -0
- package/build/features/signIn/screens/Email/EmailField.js +55 -0
- package/build/features/signIn/screens/Email/index.d.ts +3 -0
- package/build/features/signIn/screens/Email/index.js +2 -0
- package/build/features/signIn/screens/Email/validation.d.ts +8 -0
- package/build/features/signIn/screens/Email/validation.js +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.js +110 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +11 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.js +151 -0
- package/build/features/signIn/screens/Mobile/index.d.ts +3 -0
- package/build/features/signIn/screens/Mobile/index.js +2 -0
- package/build/features/signIn/screens/Mobile/validation.d.ts +8 -0
- package/build/features/signIn/screens/Mobile/validation.js +28 -0
- package/build/features/signIn/screens/OTP/OTP.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTP.js +93 -0
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTPInput.js +53 -0
- package/build/features/signIn/screens/OTP/index.d.ts +3 -0
- package/build/features/signIn/screens/OTP/index.js +2 -0
- package/build/features/signIn/screens/OTP/validation.d.ts +8 -0
- package/build/features/signIn/screens/OTP/validation.js +4 -0
- package/build/features/signIn/screens/Password/Password.d.ts +5 -0
- package/build/features/signIn/screens/Password/Password.js +67 -0
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +5 -0
- package/build/features/signIn/screens/Password/PasswordInput.js +28 -0
- package/build/features/signIn/screens/Password/index.d.ts +3 -0
- package/build/features/signIn/screens/Password/index.js +2 -0
- package/build/features/signIn/screens/Password/validation.d.ts +8 -0
- package/build/features/signIn/screens/Password/validation.js +4 -0
- package/build/features/tax/Tax.d.ts +7 -0
- package/build/features/tax/Tax.js +71 -0
- package/build/features/tax/index.d.ts +1 -0
- package/build/features/tax/index.js +1 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/tax/screens/Success/Success.d.ts +5 -0
- package/build/features/tax/screens/Success/Success.js +22 -0
- package/build/features/tax/screens/Success/index.d.ts +3 -0
- package/build/features/tax/screens/Success/index.js +2 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +114 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +66 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +63 -0
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +37 -0
- package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/validation.d.ts +11 -0
- package/build/features/tax/screens/TaxDetails/validation.js +5 -0
- package/build/features/tax/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/tax/screens/Verify/OTPInput.js +47 -0
- package/build/features/tax/screens/Verify/Verify.d.ts +5 -0
- package/build/features/tax/screens/Verify/Verify.js +91 -0
- package/build/features/tax/screens/Verify/index.d.ts +2 -0
- package/build/features/tax/screens/Verify/index.js +2 -0
- package/build/features/tax/screens/Verify/validation.d.ts +8 -0
- package/build/features/tax/screens/Verify/validation.js +4 -0
- package/build/hooks/index.d.ts +15 -0
- package/build/hooks/index.js +15 -0
- package/build/hooks/useAppConfig.d.ts +8 -0
- package/build/hooks/useAppConfig.js +61 -0
- package/build/hooks/useAppDispatch.d.ts +12 -0
- package/build/hooks/useAppDispatch.js +2 -0
- package/build/hooks/useAppSelector.d.ts +3 -0
- package/build/hooks/useAppSelector.js +2 -0
- package/build/hooks/useAppTheme.d.ts +4 -0
- package/build/hooks/useAppTheme.js +15 -0
- package/build/hooks/useContainerDimensions.d.ts +4 -0
- package/build/hooks/useContainerDimensions.js +21 -0
- package/build/hooks/useCountUp.d.ts +9 -0
- package/build/hooks/useCountUp.js +17 -0
- package/build/hooks/useErrorListener.d.ts +1 -0
- package/build/hooks/useErrorListener.js +12 -0
- package/build/hooks/useEventListener.d.ts +5 -0
- package/build/hooks/useEventListener.js +20 -0
- package/build/hooks/useLanguage.d.ts +4 -0
- package/build/hooks/useLanguage.js +8 -0
- package/build/hooks/useRedirectionListener.d.ts +4 -0
- package/build/hooks/useRedirectionListener.js +12 -0
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
- package/build/hooks/useSetFromDefaultValues.js +24 -0
- package/build/hooks/useStepStartedListener.d.ts +1 -0
- package/build/hooks/useStepStartedListener.js +10 -0
- package/build/hooks/useThemeMode.d.ts +4 -0
- package/build/hooks/useThemeMode.js +7 -0
- package/build/hooks/useWindowSize.d.ts +6 -0
- package/build/hooks/useWindowSize.js +19 -0
- package/build/i18n.d.ts +2 -0
- package/build/i18n.js +34 -0
- package/build/index.css +140 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +33 -0
- package/build/theme/components.d.ts +2 -0
- package/build/theme/components.js +19 -0
- package/build/theme/index.d.ts +1 -0
- package/build/theme/index.js +1 -0
- package/build/theme/palette.d.ts +3 -0
- package/build/theme/palette.js +68 -0
- package/build/theme/shadows.d.ts +2 -0
- package/build/theme/shadows.js +27 -0
- package/build/theme/theme.d.ts +2 -0
- package/build/theme/theme.js +43 -0
- package/build/theme/typography.d.ts +2 -0
- package/build/theme/typography.js +31 -0
- package/build/utils/array.d.ts +63 -0
- package/build/utils/array.js +140 -0
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +3 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +5 -0
- package/build/utils/device.d.ts +5 -0
- package/build/utils/device.js +26 -0
- package/build/utils/html.d.ts +5 -0
- package/build/utils/html.js +32 -0
- package/build/utils/index.d.ts +11 -0
- package/build/utils/index.js +11 -0
- package/build/utils/locale.d.ts +2 -0
- package/build/utils/locale.js +22 -0
- package/build/utils/object.d.ts +5 -0
- package/build/utils/object.js +35 -0
- package/build/utils/rsa.d.ts +2 -0
- package/build/utils/rsa.js +19 -0
- package/build/utils/storage.d.ts +5 -0
- package/build/utils/storage.js +21 -0
- package/build/utils/string.d.ts +58 -0
- package/build/utils/string.js +260 -0
- package/build/utils/style.d.ts +1 -0
- package/build/utils/style.js +1 -0
- package/build/utils/validation.d.ts +17 -0
- package/build/utils/validation.js +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CountryCode, SaleChannel } from '../@types';
|
|
2
|
+
export declare const isArray: (value: any) => value is any[];
|
|
3
|
+
export declare const joinArray: (items: Array<any>, joiner?: string) => string;
|
|
4
|
+
export declare const replaceStringArrayItems: (items: Array<string>, include: string, withThis: string) => string[];
|
|
5
|
+
export declare const uniqueArray: (items: Array<string>) => string[];
|
|
6
|
+
export declare const removeArrayItem: (items: Array<string>, item: string) => string[];
|
|
7
|
+
export declare const splitString: (string: string, splitter?: string) => string[];
|
|
8
|
+
export declare const isInclude: (items: Array<string | number>, item: any) => boolean;
|
|
9
|
+
export declare const findItem: (items: Array<string | number>, key: any) => string | number | undefined;
|
|
10
|
+
export declare const isExist: (items: Array<any>, id: string) => any;
|
|
11
|
+
export declare const allAreTruthy: (items: Array<any>, condition: boolean | string, key: string, exclude?: string) => boolean;
|
|
12
|
+
export declare const sortCountries: (countries: Array<CountryCode>) => CountryCode[];
|
|
13
|
+
export declare const findCountryByIso2: (countries: Array<CountryCode>, iso2: string) => CountryCode | undefined;
|
|
14
|
+
export declare const findCurrencyByIso2: (code: string) => "" | "SAR" | "KD";
|
|
15
|
+
export declare const findCountryByIddPrefix: (countries: Array<CountryCode>, iddPrefix: string) => CountryCode | undefined;
|
|
16
|
+
export declare const mapSalesChannel: (salesChannel: Array<SaleChannel>) => {
|
|
17
|
+
sub?: import("../@types").SubSaleChannel[] | undefined;
|
|
18
|
+
address: string;
|
|
19
|
+
id: string;
|
|
20
|
+
code: string;
|
|
21
|
+
name?: {
|
|
22
|
+
ar: string;
|
|
23
|
+
en: string;
|
|
24
|
+
} | undefined;
|
|
25
|
+
logo?: string | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
export declare const mapBrandSalesChannel: (salesChannel: Array<SaleChannel>, brandSalesChannel: Array<SaleChannel>) => ({
|
|
28
|
+
sub: ({
|
|
29
|
+
id: string;
|
|
30
|
+
code: string;
|
|
31
|
+
name?: {
|
|
32
|
+
ar: string;
|
|
33
|
+
en: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
address?: string | undefined;
|
|
36
|
+
logo?: string | undefined;
|
|
37
|
+
} | undefined)[] | undefined;
|
|
38
|
+
id: string;
|
|
39
|
+
code: string;
|
|
40
|
+
name?: {
|
|
41
|
+
ar: string;
|
|
42
|
+
en: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
address?: string | undefined;
|
|
45
|
+
logo?: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
sub?: import("../@types").SubSaleChannel[] | undefined;
|
|
48
|
+
id: string;
|
|
49
|
+
code: string;
|
|
50
|
+
name?: {
|
|
51
|
+
ar: string;
|
|
52
|
+
en: string;
|
|
53
|
+
} | undefined;
|
|
54
|
+
address?: string | undefined;
|
|
55
|
+
logo?: string | undefined;
|
|
56
|
+
} | undefined)[];
|
|
57
|
+
export declare const removeDuplicationById: (items: Array<any>) => any[];
|
|
58
|
+
export declare const fixBrandList: (items: Array<{
|
|
59
|
+
channel_services: Array<SaleChannel>;
|
|
60
|
+
}>, salesChannel: Array<SaleChannel>) => {
|
|
61
|
+
channel_services: any[];
|
|
62
|
+
}[];
|
|
63
|
+
export declare const findFirstId: (items: Array<SaleChannel>) => string;
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
export var isArray = function (value) { return Array.isArray(value); };
|
|
13
|
+
export var joinArray = function (items, joiner) {
|
|
14
|
+
if (joiner === void 0) { joiner = '__'; }
|
|
15
|
+
if (!items)
|
|
16
|
+
return '';
|
|
17
|
+
return items.join(joiner);
|
|
18
|
+
};
|
|
19
|
+
export var replaceStringArrayItems = function (items, include, withThis) {
|
|
20
|
+
if (!items)
|
|
21
|
+
return [];
|
|
22
|
+
return items.map(function (item) {
|
|
23
|
+
if (item.includes(include))
|
|
24
|
+
return withThis;
|
|
25
|
+
return item;
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export var uniqueArray = function (items) {
|
|
29
|
+
if (!items)
|
|
30
|
+
return [];
|
|
31
|
+
return items.filter(function (path, i) { return items.indexOf(path) === i; });
|
|
32
|
+
};
|
|
33
|
+
export var removeArrayItem = function (items, item) {
|
|
34
|
+
if (!items)
|
|
35
|
+
return [];
|
|
36
|
+
return items.filter(function (path) { return path !== item; });
|
|
37
|
+
};
|
|
38
|
+
export var splitString = function (string, splitter) {
|
|
39
|
+
if (splitter === void 0) { splitter = '&&&'; }
|
|
40
|
+
if (!string)
|
|
41
|
+
return [];
|
|
42
|
+
return string.split(splitter);
|
|
43
|
+
};
|
|
44
|
+
export var isInclude = function (items, item) {
|
|
45
|
+
return items.includes(item);
|
|
46
|
+
};
|
|
47
|
+
export var findItem = function (items, key) {
|
|
48
|
+
return items.find(function (item) { return item === key; });
|
|
49
|
+
};
|
|
50
|
+
export var isExist = function (items, id) {
|
|
51
|
+
return items.find(function (_a) {
|
|
52
|
+
var sub = _a.sub, itemID = _a.id;
|
|
53
|
+
if (!sub)
|
|
54
|
+
return itemID === id;
|
|
55
|
+
return sub.some(function (item) {
|
|
56
|
+
return item.id === id;
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
export var allAreTruthy = function (items, condition, key, exclude) {
|
|
61
|
+
return items.every(function (item) {
|
|
62
|
+
if (exclude && item['name'] === exclude)
|
|
63
|
+
return true;
|
|
64
|
+
return item[key] === condition;
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export var sortCountries = function (countries) {
|
|
68
|
+
return (countries || []).sort(function (cOne, cTwo) {
|
|
69
|
+
return cOne.name.english.localeCompare(cTwo.name.english);
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
export var findCountryByIso2 = function (countries, iso2) {
|
|
73
|
+
if (!iso2)
|
|
74
|
+
throw new Error('iso2 is required');
|
|
75
|
+
return countries.find(function (country) { return country.iso2.toLowerCase() === iso2.toLowerCase(); });
|
|
76
|
+
};
|
|
77
|
+
export var findCurrencyByIso2 = function (code) {
|
|
78
|
+
if (!code)
|
|
79
|
+
return '';
|
|
80
|
+
if (code.toLowerCase() === 'sa')
|
|
81
|
+
return 'SAR';
|
|
82
|
+
if (code.toLowerCase() === 'kw')
|
|
83
|
+
return 'KD';
|
|
84
|
+
return '';
|
|
85
|
+
};
|
|
86
|
+
export var findCountryByIddPrefix = function (countries, iddPrefix) {
|
|
87
|
+
if (!iddPrefix)
|
|
88
|
+
throw new Error('idd_prefix is required');
|
|
89
|
+
return countries.find(function (country) { return country.idd_prefix.toString() === iddPrefix; });
|
|
90
|
+
};
|
|
91
|
+
export var mapSalesChannel = function (salesChannel) {
|
|
92
|
+
return salesChannel.map(function (item) {
|
|
93
|
+
var hasSub = item.sub && item.sub.length > 0;
|
|
94
|
+
return __assign(__assign(__assign({}, item), { address: (item.address || '').replaceAll('https://', '').replaceAll('@', '') }), (hasSub && {
|
|
95
|
+
sub: item.sub.map(function (subItem) {
|
|
96
|
+
return __assign(__assign({}, subItem), { address: (subItem.address || '').replaceAll('https://', '').replaceAll('@', '') });
|
|
97
|
+
})
|
|
98
|
+
}));
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
export var mapBrandSalesChannel = function (salesChannel, brandSalesChannel) {
|
|
102
|
+
var findSalesChannel = function (id) { return salesChannel.find(function (item) { return item.id === id; }); };
|
|
103
|
+
var mapped = brandSalesChannel
|
|
104
|
+
.map(function (item) {
|
|
105
|
+
var _a;
|
|
106
|
+
var originalSalasChannel = findSalesChannel(item.id);
|
|
107
|
+
if (!originalSalasChannel)
|
|
108
|
+
return undefined;
|
|
109
|
+
var hasSub = item.sub && item.sub.length > 0;
|
|
110
|
+
if (hasSub)
|
|
111
|
+
return __assign(__assign({}, item), { sub: (_a = originalSalasChannel.sub) === null || _a === void 0 ? void 0 : _a.map(function (subItem) {
|
|
112
|
+
var _a;
|
|
113
|
+
var brandSubItem = (_a = item.sub) === null || _a === void 0 ? void 0 : _a.find(function (brandSub) { return brandSub.id === subItem.id; });
|
|
114
|
+
if (!brandSubItem)
|
|
115
|
+
return undefined;
|
|
116
|
+
return __assign(__assign({}, subItem), brandSubItem);
|
|
117
|
+
}).filter(Boolean) });
|
|
118
|
+
return __assign({}, item);
|
|
119
|
+
})
|
|
120
|
+
.filter(Boolean);
|
|
121
|
+
return mapped;
|
|
122
|
+
};
|
|
123
|
+
export var removeDuplicationById = function (items) {
|
|
124
|
+
return items.filter(function (item, index) {
|
|
125
|
+
return items.findIndex(function (i) { return i.id === item.id; }) === index;
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
export var fixBrandList = function (items, salesChannel) {
|
|
129
|
+
return items.map(function (item) {
|
|
130
|
+
return __assign(__assign({}, item), { channel_services: removeDuplicationById(mapBrandSalesChannel(salesChannel, item.channel_services || [])) });
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
export var findFirstId = function (items) {
|
|
134
|
+
var first = items[0];
|
|
135
|
+
if (!first)
|
|
136
|
+
return '';
|
|
137
|
+
if (first.sub && first.sub.length > 0)
|
|
138
|
+
return first.sub[0].id;
|
|
139
|
+
return first.id;
|
|
140
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sleep: (milliseconds: number) => Promise<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dateFormat: (date: Date, fmt?: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeviceDetectorResult } from 'device-detector-js';
|
|
2
|
+
import { GetResult } from '@fingerprintjs/fingerprintjs';
|
|
3
|
+
export declare const getBrowserInfo: () => DeviceDetectorResult;
|
|
4
|
+
export declare const getFingerPrint: () => Promise<GetResult>;
|
|
5
|
+
export declare const mobileOS: () => 'Windows Phone' | 'Android' | 'iOS' | 'unknown';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import DeviceDetector from 'device-detector-js';
|
|
2
|
+
import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
|
3
|
+
export var getBrowserInfo = function () {
|
|
4
|
+
var deviceDetector = new DeviceDetector();
|
|
5
|
+
return deviceDetector.parse(window.navigator.userAgent);
|
|
6
|
+
};
|
|
7
|
+
export var getFingerPrint = function () {
|
|
8
|
+
return FingerprintJS.load().then(function (fp) {
|
|
9
|
+
return fp.get().then(function (result) {
|
|
10
|
+
return result;
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export var mobileOS = function () {
|
|
15
|
+
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
16
|
+
if (/windows phone/i.test(userAgent)) {
|
|
17
|
+
return 'Windows Phone';
|
|
18
|
+
}
|
|
19
|
+
if (/android/i.test(userAgent)) {
|
|
20
|
+
return 'Android';
|
|
21
|
+
}
|
|
22
|
+
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
|
|
23
|
+
return 'iOS';
|
|
24
|
+
}
|
|
25
|
+
return 'unknown';
|
|
26
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const createElementAndInject: (id: string) => HTMLDivElement;
|
|
2
|
+
export declare const reactElement: (elementId: string) => import("react-dom/client").Root;
|
|
3
|
+
export declare const scrollUp: (elementId: string, top?: number) => void;
|
|
4
|
+
export declare const scrollDown: (elementId: string) => void;
|
|
5
|
+
export declare const removeElement: (elementId: string) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRoot } from 'react-dom/client';
|
|
2
|
+
export var createElementAndInject = function (id) {
|
|
3
|
+
var element = document.createElement('div');
|
|
4
|
+
element.setAttribute('id', id);
|
|
5
|
+
document.body.appendChild(element);
|
|
6
|
+
return element;
|
|
7
|
+
};
|
|
8
|
+
export var reactElement = function (elementId) {
|
|
9
|
+
var element = document.getElementById(elementId);
|
|
10
|
+
if (!element) {
|
|
11
|
+
element = createElementAndInject('tap-payments-sdk-element');
|
|
12
|
+
}
|
|
13
|
+
return createRoot(element);
|
|
14
|
+
};
|
|
15
|
+
export var scrollUp = function (elementId, top) {
|
|
16
|
+
var el = document.getElementById(elementId);
|
|
17
|
+
if (!el)
|
|
18
|
+
return;
|
|
19
|
+
el.scrollTop = top || 300;
|
|
20
|
+
};
|
|
21
|
+
export var scrollDown = function (elementId) {
|
|
22
|
+
var el = document.getElementById(elementId);
|
|
23
|
+
if (!el)
|
|
24
|
+
return;
|
|
25
|
+
el.scrollTop = 0;
|
|
26
|
+
};
|
|
27
|
+
export var removeElement = function (elementId) {
|
|
28
|
+
var el = document.getElementById(elementId);
|
|
29
|
+
if (!el)
|
|
30
|
+
return;
|
|
31
|
+
el.remove();
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './storage';
|
|
2
|
+
export * from './array';
|
|
3
|
+
export * from './style';
|
|
4
|
+
export * from './object';
|
|
5
|
+
export * from './html';
|
|
6
|
+
export * from './validation';
|
|
7
|
+
export * from './string';
|
|
8
|
+
export * from './device';
|
|
9
|
+
export * from './rsa';
|
|
10
|
+
export * from './common';
|
|
11
|
+
export * from './date';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './storage';
|
|
2
|
+
export * from './array';
|
|
3
|
+
export * from './style';
|
|
4
|
+
export * from './object';
|
|
5
|
+
export * from './html';
|
|
6
|
+
export * from './validation';
|
|
7
|
+
export * from './string';
|
|
8
|
+
export * from './device';
|
|
9
|
+
export * from './rsa';
|
|
10
|
+
export * from './common';
|
|
11
|
+
export * from './date';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { initReactI18next } from 'react-i18next';
|
|
2
|
+
import i18n from '../i18n';
|
|
3
|
+
export var updateLocale = function (locale, country) {
|
|
4
|
+
var data = locale['SA'] || locale[country.toUpperCase()] || locale['default'];
|
|
5
|
+
if (i18n.isInitialized) {
|
|
6
|
+
i18n.removeResourceBundle('*', 'translation');
|
|
7
|
+
i18n.addResourceBundle('en', 'translation', data.en.translation);
|
|
8
|
+
i18n.addResourceBundle('ar', 'translation', data.ar.translation);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
i18n.use(initReactI18next).init({
|
|
12
|
+
resources: data,
|
|
13
|
+
fallbackLng: 'en',
|
|
14
|
+
initImmediate: false,
|
|
15
|
+
preload: ['ar', 'en'],
|
|
16
|
+
debug: false,
|
|
17
|
+
interpolation: {
|
|
18
|
+
escapeValue: false
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const compareTwoObjects: (obj1: any, obj2: any) => boolean;
|
|
2
|
+
export declare const encodeObjectBase64: (obj: any) => string;
|
|
3
|
+
export declare const decodeObjectBase64: (str: string) => any;
|
|
4
|
+
export declare const hasKey: (obj: any, key: string) => boolean;
|
|
5
|
+
export declare const concatenateObjectValues: (data: Record<string, any>, keys: Array<string>) => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export var compareTwoObjects = function (obj1, obj2) {
|
|
2
|
+
if (obj1 === obj2)
|
|
3
|
+
return true;
|
|
4
|
+
if (!obj1 || !obj2)
|
|
5
|
+
return false;
|
|
6
|
+
return JSON.stringify(obj1) === JSON.stringify(obj2);
|
|
7
|
+
};
|
|
8
|
+
export var encodeObjectBase64 = function (obj) {
|
|
9
|
+
return Buffer.from(JSON.stringify(obj)).toString('base64');
|
|
10
|
+
};
|
|
11
|
+
export var decodeObjectBase64 = function (str) {
|
|
12
|
+
try {
|
|
13
|
+
return JSON.parse(Buffer.from(str, 'base64').toString('ascii'));
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
throw new Error('Invalid base64 string or invalid json format. try to check [decodeObjectBase64]');
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export var hasKey = function (obj, key) {
|
|
20
|
+
if (!obj)
|
|
21
|
+
return false;
|
|
22
|
+
return Object.keys(obj).includes(key);
|
|
23
|
+
};
|
|
24
|
+
export var concatenateObjectValues = function (data, keys) {
|
|
25
|
+
if (!data)
|
|
26
|
+
return '';
|
|
27
|
+
var result = '';
|
|
28
|
+
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
29
|
+
var key = keys_1[_i];
|
|
30
|
+
if (data[key]) {
|
|
31
|
+
result += data[key].trim() + ' ';
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return result.trim();
|
|
35
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RSA_FRONTEND_MW_PUBLIC_KEY } from '../constants';
|
|
2
|
+
var JSEncrypt = require('jsencrypt').JSEncrypt;
|
|
3
|
+
var rsa = new JSEncrypt();
|
|
4
|
+
rsa.setPublicKey(RSA_FRONTEND_MW_PUBLIC_KEY);
|
|
5
|
+
export var encryptObject = function (data) {
|
|
6
|
+
if (typeof data !== 'object')
|
|
7
|
+
throw new Error('data should be from type object');
|
|
8
|
+
var obj2Str = JSON.stringify(data);
|
|
9
|
+
var encrypted = rsa.encrypt(obj2Str);
|
|
10
|
+
return encrypted;
|
|
11
|
+
};
|
|
12
|
+
export var encryptString = function (string) {
|
|
13
|
+
if (typeof string !== 'string')
|
|
14
|
+
throw new Error('string should be from type string');
|
|
15
|
+
var encrypted = rsa.encrypt(string);
|
|
16
|
+
if (!encrypted)
|
|
17
|
+
throw new Error('encryption data reached max allowed length');
|
|
18
|
+
return encrypted;
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const storeData: (key: string, value: string | number | object) => void;
|
|
2
|
+
export declare const getStoredData: (key: string) => any;
|
|
3
|
+
export declare const removeStoredData: (key: string) => void;
|
|
4
|
+
export declare const clearStoredData: () => void;
|
|
5
|
+
export declare const getStoredDataKeys: () => string[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var storeData = function (key, value) {
|
|
2
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
3
|
+
};
|
|
4
|
+
export var getStoredData = function (key) {
|
|
5
|
+
try {
|
|
6
|
+
var value = localStorage.getItem(key);
|
|
7
|
+
return value ? JSON.parse(value) : null;
|
|
8
|
+
}
|
|
9
|
+
catch (error) {
|
|
10
|
+
throw new Error(error);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export var removeStoredData = function (key) {
|
|
14
|
+
localStorage.removeItem(key);
|
|
15
|
+
};
|
|
16
|
+
export var clearStoredData = function () {
|
|
17
|
+
localStorage.clear();
|
|
18
|
+
};
|
|
19
|
+
export var getStoredDataKeys = function () {
|
|
20
|
+
return Object.keys(localStorage);
|
|
21
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DeviceInfo } from '../@types';
|
|
2
|
+
export declare const maskPhone: (str?: string) => string;
|
|
3
|
+
export declare const shortenString: (str: string, length: number) => string;
|
|
4
|
+
export declare const maskID: (str: string) => string;
|
|
5
|
+
export declare const maskEmail: (str: string) => string;
|
|
6
|
+
export declare const shortenBrand: (str: string) => string;
|
|
7
|
+
export declare const showLastFour: (str: string) => string;
|
|
8
|
+
export declare const maskFileName: (str: string) => string;
|
|
9
|
+
export declare const getIndividualName: (name: string) => {
|
|
10
|
+
first: string;
|
|
11
|
+
middle: string;
|
|
12
|
+
last: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
export declare const convertNumbers2English: (str: string) => string;
|
|
15
|
+
export declare const getParameterByName: (name: string) => string | null;
|
|
16
|
+
export declare const getClientEmailUrl: () => string;
|
|
17
|
+
export declare const getFlowUrl: (path: string, lang: string) => string;
|
|
18
|
+
export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string) => string;
|
|
19
|
+
export declare const capitalizeTheFirstLetterOfEachWord: (words: string) => string;
|
|
20
|
+
export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
|
|
21
|
+
al: any;
|
|
22
|
+
at: any;
|
|
23
|
+
aid: any;
|
|
24
|
+
an: any;
|
|
25
|
+
av: any;
|
|
26
|
+
acv: any;
|
|
27
|
+
asv: any;
|
|
28
|
+
rn: any;
|
|
29
|
+
rt: any;
|
|
30
|
+
rb: any;
|
|
31
|
+
rm: any;
|
|
32
|
+
ro: any;
|
|
33
|
+
rov: any;
|
|
34
|
+
bn: any;
|
|
35
|
+
bb: any;
|
|
36
|
+
bv: any;
|
|
37
|
+
bua: any;
|
|
38
|
+
bi: string;
|
|
39
|
+
ci: any;
|
|
40
|
+
cm: any;
|
|
41
|
+
l: any;
|
|
42
|
+
};
|
|
43
|
+
export declare const removeRequestHeaders: () => void;
|
|
44
|
+
export declare const getBaseUrl: () => string;
|
|
45
|
+
export declare const getScreenNameBasedOnFlow: (flow: string) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP" | "BANK_BANK_DETAILS_STEP" | "TAX_TAX_DETAILS_STEP";
|
|
46
|
+
export declare const getEighteenYearsAgo: () => string;
|
|
47
|
+
export declare const isKW: (flag: string) => boolean;
|
|
48
|
+
export declare const isSA: (flag: string) => boolean;
|
|
49
|
+
export declare const isLinkedIn: (flag: string) => boolean;
|
|
50
|
+
export declare const isTwitter: (flag: string) => boolean;
|
|
51
|
+
export declare const isWebsite: (flag: string) => boolean;
|
|
52
|
+
export declare const isIos: (flag: string) => boolean;
|
|
53
|
+
export declare const isAndroid: (flag: string) => boolean;
|
|
54
|
+
export declare const isFacebook: (flag: string) => boolean;
|
|
55
|
+
export declare const isInstagram: (flag: string) => boolean;
|
|
56
|
+
export declare const isPhysicalStore: (flag: string) => boolean;
|
|
57
|
+
export declare const isCallCenter: (flag: string) => boolean;
|
|
58
|
+
export declare const getChannelIcon: (channel: string) => string;
|