@tap-payments/auth-jsconnect 1.0.80 → 1.0.85
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/LICENSE +21 -21
- package/build/@types/app.d.ts +175 -173
- package/build/@types/app.js +11 -11
- package/build/@types/form.d.ts +67 -67
- package/build/@types/form.js +1 -1
- package/build/@types/index.d.ts +4 -4
- package/build/@types/index.js +4 -4
- package/build/@types/redux.d.ts +15 -15
- package/build/@types/redux.js +1 -1
- package/build/@types/theme.d.ts +14 -14
- package/build/@types/theme.js +15 -15
- package/build/api/account.d.ts +15 -15
- package/build/api/account.js +9 -9
- package/build/api/auth.d.ts +45 -45
- package/build/api/auth.js +17 -17
- package/build/api/availabilityServices.d.ts +17 -17
- package/build/api/availabilityServices.js +17 -17
- package/build/api/axios.d.ts +4 -4
- package/build/api/axios.js +44 -44
- package/build/api/country.d.ts +5 -5
- package/build/api/country.js +13 -13
- package/build/api/data.d.ts +9 -9
- package/build/api/data.js +29 -29
- package/build/api/entity.d.ts +42 -43
- package/build/api/entity.js +34 -34
- package/build/api/firebase.d.ts +4 -4
- package/build/api/firebase.js +9 -9
- package/build/api/index.d.ts +65 -65
- package/build/api/index.js +27 -27
- package/build/api/individual.d.ts +8 -8
- package/build/api/individual.js +9 -9
- package/build/api/ip.d.ts +4 -4
- package/build/api/ip.js +9 -9
- package/build/api/lead.d.ts +94 -94
- package/build/api/lead.js +33 -33
- package/build/api/operator.d.ts +12 -12
- package/build/api/operator.js +9 -9
- package/build/app/rootReducer.d.ts +11 -11
- package/build/app/rootReducer.js +19 -19
- package/build/app/settings.d.ts +40 -36
- package/build/app/settings.js +264 -252
- package/build/app/store.d.ts +23 -23
- package/build/app/store.js +11 -11
- package/build/assets/locales/ar.json +244 -243
- package/build/assets/locales/en.json +264 -263
- package/build/components/AnimationFlow/AnimationFlow.d.ts +12 -11
- package/build/components/AnimationFlow/AnimationFlow.js +36 -36
- package/build/components/AnimationFlow/BottomSheet.d.ts +9 -9
- package/build/components/AnimationFlow/BottomSheet.js +71 -68
- package/build/components/AnimationFlow/Dialog.d.ts +11 -10
- package/build/components/AnimationFlow/Dialog.js +105 -103
- package/build/components/AnimationFlow/Error.d.ts +6 -6
- package/build/components/AnimationFlow/Error.js +32 -32
- package/build/components/AnimationFlow/Loader.d.ts +2 -2
- package/build/components/AnimationFlow/Loader.js +16 -16
- package/build/components/AnimationFlow/index.d.ts +2 -2
- package/build/components/AnimationFlow/index.js +2 -2
- package/build/components/Button/Button.d.ts +9 -9
- package/build/components/Button/Button.js +63 -63
- package/build/components/Button/index.d.ts +4 -4
- package/build/components/Button/index.js +2 -2
- package/build/components/CheckBox/CheckBox.d.ts +5 -5
- package/build/components/CheckBox/CheckBox.js +39 -39
- package/build/components/CheckBox/index.d.ts +4 -4
- package/build/components/CheckBox/index.js +2 -2
- package/build/components/Collapse/Collapse.d.ts +5 -5
- package/build/components/Collapse/Collapse.js +28 -28
- package/build/components/Collapse/index.d.ts +3 -3
- package/build/components/Collapse/index.js +2 -2
- package/build/components/DatePicker/DatePicker.d.ts +14 -14
- package/build/components/DatePicker/DatePicker.js +101 -101
- package/build/components/DatePicker/index.d.ts +3 -3
- package/build/components/DatePicker/index.js +2 -2
- package/build/components/ExpandIcon/ExpandIcon.d.ts +7 -7
- package/build/components/ExpandIcon/ExpandIcon.js +24 -24
- package/build/components/ExpandIcon/index.d.ts +2 -2
- package/build/components/ExpandIcon/index.js +2 -2
- package/build/components/Footer/Footer.d.ts +17 -17
- package/build/components/Footer/Footer.js +63 -63
- package/build/components/Footer/index.d.ts +4 -4
- package/build/components/Footer/index.js +2 -2
- package/build/components/Form/Form.d.ts +11 -11
- package/build/components/Form/Form.js +38 -38
- package/build/components/Form/index.d.ts +3 -3
- package/build/components/Form/index.js +2 -2
- package/build/components/Icon/Icon.d.ts +11 -11
- package/build/components/Icon/Icon.js +26 -26
- package/build/components/Icon/index.d.ts +3 -3
- package/build/components/Icon/index.js +2 -2
- package/build/components/Input/Input.d.ts +19 -19
- package/build/components/Input/Input.js +84 -84
- package/build/components/Input/index.d.ts +3 -3
- package/build/components/Input/index.js +2 -2
- package/build/components/InputAdornment/InputAdornment.d.ts +10 -10
- package/build/components/InputAdornment/InputAdornment.js +46 -46
- package/build/components/InputAdornment/index.d.ts +3 -3
- package/build/components/InputAdornment/index.js +2 -2
- package/build/components/List/List.d.ts +5 -5
- package/build/components/List/List.js +52 -52
- package/build/components/List/index.d.ts +3 -3
- package/build/components/List/index.js +2 -2
- package/build/components/ListItem/ListItem.d.ts +5 -5
- package/build/components/ListItem/ListItem.js +35 -35
- package/build/components/ListItem/index.d.ts +3 -3
- package/build/components/ListItem/index.js +2 -2
- package/build/components/Loader/Loader.d.ts +24 -24
- package/build/components/Loader/Loader.js +41 -41
- package/build/components/Loader/index.d.ts +4 -4
- package/build/components/Loader/index.js +2 -2
- package/build/components/LogoBadge/LogoBadge.d.ts +7 -7
- package/build/components/LogoBadge/LogoBadge.js +61 -61
- package/build/components/LogoBadge/index.d.ts +3 -3
- package/build/components/LogoBadge/index.js +2 -2
- package/build/components/OTPField/OTPField.d.ts +17 -17
- package/build/components/OTPField/OTPField.js +45 -45
- package/build/components/OTPField/index.d.ts +4 -4
- package/build/components/OTPField/index.js +2 -2
- package/build/components/OTPTimer/OTPTimer.d.ts +14 -14
- package/build/components/OTPTimer/OTPTimer.js +70 -70
- package/build/components/OTPTimer/index.d.ts +4 -4
- package/build/components/OTPTimer/index.js +2 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +6 -6
- package/build/components/ProgressBar/ProgressBar.js +45 -45
- package/build/components/ProgressBar/index.d.ts +4 -4
- package/build/components/ProgressBar/index.js +2 -2
- package/build/components/Providers/ReduxProvider.d.ts +7 -7
- package/build/components/Providers/ReduxProvider.js +17 -17
- package/build/components/Providers/ThemeProvider.d.ts +8 -8
- package/build/components/Providers/ThemeProvider.js +22 -22
- package/build/components/Providers/index.d.ts +3 -3
- package/build/components/Providers/index.js +3 -3
- package/build/components/Radio/Radio.d.ts +5 -5
- package/build/components/Radio/Radio.js +31 -31
- package/build/components/Radio/index.d.ts +3 -3
- package/build/components/Radio/index.js +2 -2
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -5
- package/build/components/RadioGroup/RadioGroup.js +41 -41
- package/build/components/RadioGroup/index.d.ts +3 -3
- package/build/components/RadioGroup/index.js +2 -2
- package/build/components/RadioLabel/RadioLabel.d.ts +7 -7
- package/build/components/RadioLabel/RadioLabel.js +34 -34
- package/build/components/RadioLabel/index.d.ts +3 -3
- package/build/components/RadioLabel/index.js +2 -2
- package/build/components/SimpleList/SimpleList.d.ts +18 -18
- package/build/components/SimpleList/SimpleList.js +104 -104
- package/build/components/SimpleList/index.d.ts +3 -3
- package/build/components/SimpleList/index.js +2 -2
- package/build/components/Slide/Slide.d.ts +6 -6
- package/build/components/Slide/Slide.js +30 -30
- package/build/components/Slide/index.d.ts +3 -3
- package/build/components/Slide/index.js +2 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -14
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -86
- package/build/components/SocialMediaGroup/index.d.ts +3 -3
- package/build/components/SocialMediaGroup/index.js +2 -2
- package/build/components/Text/Text.d.ts +5 -5
- package/build/components/Text/Text.js +35 -35
- package/build/components/Text/index.d.ts +3 -3
- package/build/components/Text/index.js +2 -2
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -5
- package/build/components/ToggleButton/ToggleButton.js +44 -44
- package/build/components/ToggleButton/index.d.ts +3 -3
- package/build/components/ToggleButton/index.js +2 -2
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -5
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -37
- package/build/components/ToggleButtonGroup/index.d.ts +3 -3
- package/build/components/ToggleButtonGroup/index.js +2 -2
- package/build/components/Tooltip/Tooltip.d.ts +10 -10
- package/build/components/Tooltip/Tooltip.js +44 -44
- package/build/components/Tooltip/index.d.ts +3 -3
- package/build/components/Tooltip/index.js +2 -2
- package/build/components/Warning/Warning.d.ts +13 -13
- package/build/components/Warning/Warning.js +53 -53
- package/build/components/Warning/index.d.ts +4 -4
- package/build/components/Warning/index.js +2 -2
- package/build/constants/api.d.ts +27 -27
- package/build/constants/api.js +52 -52
- package/build/constants/app.d.ts +141 -141
- package/build/constants/app.js +340 -344
- package/build/constants/assets.d.ts +66 -64
- package/build/constants/assets.js +66 -64
- package/build/constants/dummy.d.ts +328 -328
- package/build/constants/dummy.js +6436 -6436
- package/build/constants/index.d.ts +5 -5
- package/build/constants/index.js +5 -5
- package/build/constants/validation.d.ts +10 -10
- package/build/constants/validation.js +10 -10
- package/build/features/Landing/Landing.d.ts +7 -7
- package/build/features/Landing/Landing.js +55 -55
- package/build/features/Landing/index.d.ts +1 -1
- package/build/features/Landing/index.js +1 -1
- package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.d.ts +5 -5
- package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +41 -41
- package/build/features/Landing/screens/VerifyAndRedirect/index.d.ts +2 -2
- package/build/features/Landing/screens/VerifyAndRedirect/index.js +2 -2
- package/build/features/app/bank/bankStore.d.ts +49 -49
- package/build/features/app/bank/bankStore.js +358 -359
- package/build/features/app/business/businessStore.d.ts +95 -95
- package/build/features/app/business/businessStore.js +789 -787
- package/build/features/app/connect/connectStore.d.ts +109 -109
- package/build/features/app/connect/connectStore.js +679 -677
- package/build/features/app/individual/individualStore.d.ts +53 -53
- package/build/features/app/individual/individualStore.js +410 -410
- package/build/features/app/landing/landingStore.d.ts +22 -22
- package/build/features/app/landing/landingStore.js +103 -103
- package/build/features/app/password/passwordStore.d.ts +43 -43
- package/build/features/app/password/passwordStore.js +317 -319
- package/build/features/app/tax/taxStore.d.ts +41 -41
- package/build/features/app/tax/taxStore.js +315 -316
- package/build/features/bank/Bank.d.ts +7 -7
- package/build/features/bank/Bank.js +59 -58
- package/build/features/bank/index.d.ts +1 -1
- package/build/features/bank/index.js +1 -1
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -5
- package/build/features/bank/screens/BankDetails/BankDetails.js +56 -56
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -3
- package/build/features/bank/screens/BankDetails/BankName.js +59 -59
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -5
- package/build/features/bank/screens/BankDetails/Beneficiary.js +51 -51
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +7 -7
- package/build/features/bank/screens/BankDetails/IBAN.js +97 -97
- package/build/features/bank/screens/BankDetails/index.d.ts +3 -3
- package/build/features/bank/screens/BankDetails/index.js +2 -2
- package/build/features/bank/screens/BankDetails/validation.d.ts +14 -14
- package/build/features/bank/screens/BankDetails/validation.js +15 -15
- package/build/features/bank/screens/Success/Success.d.ts +5 -5
- package/build/features/bank/screens/Success/Success.js +16 -16
- package/build/features/bank/screens/Success/index.d.ts +3 -3
- package/build/features/bank/screens/Success/index.js +2 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +101 -89
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -2
- package/build/features/bank/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/bank/screens/Verify/OTPInput.js +42 -42
- package/build/features/bank/screens/Verify/Verify.d.ts +5 -5
- package/build/features/bank/screens/Verify/Verify.js +77 -77
- package/build/features/bank/screens/Verify/index.d.ts +2 -2
- package/build/features/bank/screens/Verify/index.js +2 -2
- package/build/features/bank/screens/Verify/validation.d.ts +8 -8
- package/build/features/bank/screens/Verify/validation.js +4 -4
- package/build/features/business/Business.d.ts +7 -7
- package/build/features/business/Business.js +62 -62
- package/build/features/business/index.d.ts +1 -1
- package/build/features/business/index.js +1 -1
- package/build/features/business/screens/Activities/Activities.d.ts +5 -5
- package/build/features/business/screens/Activities/Activities.js +77 -77
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +54 -54
- package/build/features/business/screens/Activities/ActivitiesList.js +131 -131
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +20 -20
- package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -5
- package/build/features/business/screens/Activities/SalesChannels.js +108 -108
- package/build/features/business/screens/Activities/index.d.ts +3 -3
- package/build/features/business/screens/Activities/index.js +2 -2
- package/build/features/business/screens/Activities/validation.d.ts +107 -107
- package/build/features/business/screens/Activities/validation.js +17 -17
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +5 -5
- package/build/features/business/screens/BusinessType/BusinessType.js +60 -60
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +128 -128
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +7 -7
- package/build/features/business/screens/BusinessType/LicenseNumber.js +46 -46
- package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +106 -106
- package/build/features/business/screens/BusinessType/Switch.d.ts +7 -7
- package/build/features/business/screens/BusinessType/Switch.js +35 -35
- package/build/features/business/screens/BusinessType/index.d.ts +3 -3
- package/build/features/business/screens/BusinessType/index.js +2 -2
- package/build/features/business/screens/BusinessType/validation.d.ts +11 -11
- package/build/features/business/screens/BusinessType/validation.js +32 -32
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +69 -69
- package/build/features/business/screens/Customers/CustomerLocations.js +117 -117
- package/build/features/business/screens/Customers/Customers.d.ts +5 -5
- package/build/features/business/screens/Customers/Customers.js +84 -84
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +83 -83
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +8 -8
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +106 -106
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +36 -36
- package/build/features/business/screens/Customers/RefundPolicy.js +78 -78
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -3
- package/build/features/business/screens/Customers/TransactionPolicy.js +38 -38
- package/build/features/business/screens/Customers/index.d.ts +3 -3
- package/build/features/business/screens/Customers/index.js +2 -2
- package/build/features/business/screens/Customers/validation.d.ts +20 -20
- package/build/features/business/screens/Customers/validation.js +13 -13
- package/build/features/business/screens/IDBOD/DOB.d.ts +6 -6
- package/build/features/business/screens/IDBOD/DOB.js +45 -45
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -5
- package/build/features/business/screens/IDBOD/ID.js +28 -28
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +55 -55
- package/build/features/business/screens/IDBOD/index.d.ts +3 -3
- package/build/features/business/screens/IDBOD/index.js +2 -2
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -11
- package/build/features/business/screens/IDBOD/validation.js +9 -9
- package/build/features/business/screens/OTP/OTP.d.ts +8 -8
- package/build/features/business/screens/OTP/OTP.js +77 -77
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/business/screens/OTP/OTPInput.js +52 -52
- package/build/features/business/screens/OTP/index.d.ts +3 -3
- package/build/features/business/screens/OTP/index.js +2 -2
- package/build/features/business/screens/OTP/validation.d.ts +8 -8
- package/build/features/business/screens/OTP/validation.js +4 -4
- package/build/features/business/screens/Success/Success.d.ts +5 -5
- package/build/features/business/screens/Success/Success.js +16 -16
- package/build/features/business/screens/Success/index.d.ts +3 -3
- package/build/features/business/screens/Success/index.js +2 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +100 -89
- package/build/features/business/screens/SuccessWithFlowButtons/index.d.ts +2 -2
- package/build/features/business/screens/SuccessWithFlowButtons/index.js +2 -2
- package/build/features/business/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/business/screens/Verify/OTPInput.js +42 -42
- package/build/features/business/screens/Verify/Verify.d.ts +5 -5
- package/build/features/business/screens/Verify/Verify.js +77 -77
- package/build/features/business/screens/Verify/index.d.ts +2 -2
- package/build/features/business/screens/Verify/index.js +2 -2
- package/build/features/business/screens/Verify/validation.d.ts +8 -8
- package/build/features/business/screens/Verify/validation.js +4 -4
- package/build/features/connect/Connect.d.ts +7 -7
- package/build/features/connect/Connect.js +51 -51
- package/build/features/connect/index.d.ts +1 -1
- package/build/features/connect/index.js +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +8 -8
- package/build/features/connect/screens/Individual/Email.js +108 -108
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -5
- package/build/features/connect/screens/Individual/Individual.js +84 -84
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +10 -10
- package/build/features/connect/screens/Individual/MobileNumber.js +152 -146
- package/build/features/connect/screens/Individual/Name.d.ts +6 -6
- package/build/features/connect/screens/Individual/Name.js +48 -48
- package/build/features/connect/screens/Individual/index.d.ts +3 -3
- package/build/features/connect/screens/Individual/index.js +2 -2
- package/build/features/connect/screens/Individual/validation.d.ts +24 -24
- package/build/features/connect/screens/Individual/validation.js +41 -41
- package/build/features/connect/screens/Merchant/BrandList.d.ts +10 -10
- package/build/features/connect/screens/Merchant/BrandList.js +89 -89
- package/build/features/connect/screens/Merchant/BrandName.d.ts +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +142 -142
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -5
- package/build/features/connect/screens/Merchant/Merchant.js +106 -104
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +9 -9
- package/build/features/connect/screens/Merchant/SocialMedia.js +117 -113
- package/build/features/connect/screens/Merchant/TAC.d.ts +6 -6
- package/build/features/connect/screens/Merchant/TAC.js +80 -80
- package/build/features/connect/screens/Merchant/index.d.ts +3 -3
- package/build/features/connect/screens/Merchant/index.js +2 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +55 -55
- package/build/features/connect/screens/Merchant/validation.js +129 -123
- package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -5
- package/build/features/connect/screens/Mobile/Mobile.js +112 -112
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +12 -12
- package/build/features/connect/screens/Mobile/MobileNumber.js +154 -148
- package/build/features/connect/screens/Mobile/Title.d.ts +8 -8
- package/build/features/connect/screens/Mobile/Title.js +29 -29
- package/build/features/connect/screens/Mobile/index.d.ts +3 -3
- package/build/features/connect/screens/Mobile/index.js +2 -2
- package/build/features/connect/screens/Mobile/validation.d.ts +8 -8
- package/build/features/connect/screens/Mobile/validation.js +28 -28
- package/build/features/connect/screens/NID/DOB.d.ts +6 -6
- package/build/features/connect/screens/NID/DOB.js +47 -47
- package/build/features/connect/screens/NID/IDNumber.d.ts +6 -6
- package/build/features/connect/screens/NID/IDNumber.js +60 -60
- package/build/features/connect/screens/NID/NID.d.ts +5 -5
- package/build/features/connect/screens/NID/NID.js +90 -90
- package/build/features/connect/screens/NID/index.d.ts +3 -3
- package/build/features/connect/screens/NID/index.js +2 -2
- package/build/features/connect/screens/NID/validation.d.ts +11 -11
- package/build/features/connect/screens/NID/validation.js +9 -9
- package/build/features/connect/screens/OTP/OTP.d.ts +5 -5
- package/build/features/connect/screens/OTP/OTP.js +80 -80
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/connect/screens/OTP/OTPInput.js +63 -63
- package/build/features/connect/screens/OTP/index.d.ts +3 -3
- package/build/features/connect/screens/OTP/index.js +2 -2
- package/build/features/connect/screens/OTP/validation.d.ts +8 -8
- package/build/features/connect/screens/OTP/validation.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +15 -15
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -3
- package/build/features/connect/screens/ThankYou/index.js +2 -2
- package/build/features/featuresScreens.d.ts +8 -8
- package/build/features/featuresScreens.js +163 -163
- package/build/features/individual/Individual.d.ts +7 -7
- package/build/features/individual/Individual.js +62 -62
- package/build/features/individual/index.d.ts +1 -1
- package/build/features/individual/index.js +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +79 -79
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +92 -81
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +46 -46
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +45 -45
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +89 -89
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +45 -45
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +89 -89
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +22 -22
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +23 -23
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +19 -19
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +52 -52
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +3 -3
- package/build/features/individual/screens/ShowIndividualInfo/index.js +2 -2
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +7 -7
- package/build/features/individual/screens/ShowIndividualInfo/info.js +28 -28
- package/build/features/individual/screens/Success/Success.d.ts +5 -5
- package/build/features/individual/screens/Success/Success.js +16 -16
- package/build/features/individual/screens/Success/index.d.ts +3 -3
- package/build/features/individual/screens/Success/index.js +2 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +101 -89
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -2
- package/build/features/individual/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/individual/screens/Verify/OTPInput.js +42 -42
- package/build/features/individual/screens/Verify/Verify.d.ts +5 -5
- package/build/features/individual/screens/Verify/Verify.js +77 -77
- package/build/features/individual/screens/Verify/index.d.ts +2 -2
- package/build/features/individual/screens/Verify/index.js +2 -2
- package/build/features/individual/screens/Verify/validation.d.ts +8 -8
- package/build/features/individual/screens/Verify/validation.js +4 -4
- package/build/features/password/Password.d.ts +7 -7
- package/build/features/password/Password.js +59 -58
- package/build/features/password/index.d.ts +1 -1
- package/build/features/password/index.js +1 -1
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -7
- package/build/features/password/screens/CreatePassword/ConditionText.js +23 -23
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +8 -8
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +22 -22
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -5
- package/build/features/password/screens/CreatePassword/CreatePassword.js +49 -49
- package/build/features/password/screens/CreatePassword/Password.d.ts +5 -5
- package/build/features/password/screens/CreatePassword/Password.js +76 -76
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -7
- package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -29
- package/build/features/password/screens/CreatePassword/index.d.ts +3 -3
- package/build/features/password/screens/CreatePassword/index.js +2 -2
- package/build/features/password/screens/CreatePassword/validation.d.ts +11 -11
- package/build/features/password/screens/CreatePassword/validation.js +8 -8
- package/build/features/password/screens/Success/Success.d.ts +5 -5
- package/build/features/password/screens/Success/Success.js +16 -16
- package/build/features/password/screens/Success/index.d.ts +3 -3
- package/build/features/password/screens/Success/index.js +2 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +101 -89
- package/build/features/password/screens/SuccessWithFlowButtons/index.d.ts +2 -2
- package/build/features/password/screens/SuccessWithFlowButtons/index.js +2 -2
- package/build/features/password/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/password/screens/Verify/OTPInput.js +42 -42
- package/build/features/password/screens/Verify/Verify.d.ts +5 -5
- package/build/features/password/screens/Verify/Verify.js +77 -77
- package/build/features/password/screens/Verify/index.d.ts +2 -2
- package/build/features/password/screens/Verify/index.js +2 -2
- package/build/features/password/screens/Verify/validation.d.ts +8 -8
- package/build/features/password/screens/Verify/validation.js +4 -4
- 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 +10 -0
- package/build/features/shared/Background/Background.js +29 -0
- package/build/features/shared/Background/LogoBackground.d.ts +6 -0
- package/build/features/shared/Background/LogoBackground.js +47 -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 -3
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.js +31 -31
- package/build/features/shared/BouncingDotsLoader/index.d.ts +2 -2
- package/build/features/shared/BouncingDotsLoader/index.js +2 -2
- package/build/features/shared/Button/AbsherButton.d.ts +9 -9
- package/build/features/shared/Button/AbsherButton.js +73 -73
- package/build/features/shared/Button/Button.d.ts +11 -11
- package/build/features/shared/Button/Button.js +101 -99
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +13 -13
- package/build/features/shared/Button/EmailProvidersButtons.js +97 -97
- package/build/features/shared/Button/FlowsButtons.d.ts +15 -15
- package/build/features/shared/Button/FlowsButtons.js +89 -88
- package/build/features/shared/Button/MobileButton.d.ts +9 -9
- package/build/features/shared/Button/MobileButton.js +70 -70
- package/build/features/shared/Button/SuccessButton.d.ts +9 -9
- package/build/features/shared/Button/SuccessButton.js +66 -71
- package/build/features/shared/Button/index.d.ts +8 -8
- package/build/features/shared/Button/index.js +8 -8
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -2
- package/build/features/shared/CheckIcon/CheckIcon.js +14 -14
- package/build/features/shared/CheckIcon/index.d.ts +2 -2
- package/build/features/shared/CheckIcon/index.js +2 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -6
- package/build/features/shared/ClearIcon/ClearIcon.js +26 -26
- package/build/features/shared/ClearIcon/index.d.ts +2 -2
- package/build/features/shared/ClearIcon/index.js +2 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -4
- package/build/features/shared/Containers/FeatureContainer.js +33 -33
- package/build/features/shared/Containers/ScreenContainer.d.ts +4 -4
- package/build/features/shared/Containers/ScreenContainer.js +29 -29
- package/build/features/shared/Containers/index.d.ts +3 -3
- package/build/features/shared/Containers/index.js +3 -3
- package/build/features/shared/Footer/Footer.d.ts +2 -2
- package/build/features/shared/Footer/Footer.js +21 -21
- package/build/features/shared/Footer/index.d.ts +2 -2
- package/build/features/shared/Footer/index.js +2 -2
- package/build/features/shared/Input/Input.d.ts +26 -26
- package/build/features/shared/Input/Input.js +56 -56
- package/build/features/shared/Input/index.d.ts +2 -2
- package/build/features/shared/Input/index.js +2 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -2
- package/build/features/shared/Mandatory/Mandatory.js +20 -20
- package/build/features/shared/Mandatory/index.d.ts +2 -2
- package/build/features/shared/Mandatory/index.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +9 -9
- package/build/features/shared/OTP/OTP.js +85 -85
- package/build/features/shared/OTP/index.d.ts +2 -2
- package/build/features/shared/OTP/index.js +2 -2
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -8
- package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -37
- package/build/features/shared/PasswordIcon/index.d.ts +2 -2
- package/build/features/shared/PasswordIcon/index.js +2 -2
- package/build/features/shared/Search/Search.d.ts +7 -7
- package/build/features/shared/Search/Search.js +13 -13
- package/build/features/shared/Search/index.d.ts +2 -2
- package/build/features/shared/Search/index.js +2 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +6 -6
- package/build/features/shared/SearchIcon/SearchIcon.js +26 -26
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +12 -11
- package/build/features/shared/SuccessScreen/SuccessScreen.js +61 -61
- package/build/features/shared/SuccessScreen/index.d.ts +2 -2
- package/build/features/shared/SuccessScreen/index.js +2 -2
- package/build/features/tax/Tax.d.ts +7 -7
- package/build/features/tax/Tax.js +59 -58
- package/build/features/tax/index.d.ts +1 -1
- package/build/features/tax/index.js +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +5 -5
- package/build/features/tax/screens/Success/Success.js +16 -16
- package/build/features/tax/screens/Success/index.d.ts +3 -3
- package/build/features/tax/screens/Success/index.js +2 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +101 -89
- package/build/features/tax/screens/SuccessWithFlowButtons/index.d.ts +2 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/index.js +2 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +43 -43
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/VATId.js +26 -26
- package/build/features/tax/screens/TaxDetails/index.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/index.js +2 -2
- package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -8
- package/build/features/tax/screens/TaxDetails/validation.js +4 -4
- package/build/features/tax/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +42 -42
- package/build/features/tax/screens/Verify/Verify.d.ts +5 -5
- package/build/features/tax/screens/Verify/Verify.js +77 -77
- package/build/features/tax/screens/Verify/index.d.ts +2 -2
- package/build/features/tax/screens/Verify/index.js +2 -2
- package/build/features/tax/screens/Verify/validation.d.ts +8 -8
- package/build/features/tax/screens/Verify/validation.js +4 -4
- package/build/hooks/index.d.ts +11 -11
- package/build/hooks/index.js +11 -11
- package/build/hooks/useAppConfig.d.ts +9 -9
- package/build/hooks/useAppConfig.js +146 -137
- package/build/hooks/useAppDispatch.d.ts +10 -10
- package/build/hooks/useAppDispatch.js +2 -2
- package/build/hooks/useAppSelector.d.ts +3 -3
- package/build/hooks/useAppSelector.js +2 -2
- package/build/hooks/useAppTheme.d.ts +4 -4
- package/build/hooks/useAppTheme.js +14 -14
- package/build/hooks/useContainerDimensions.d.ts +4 -4
- package/build/hooks/useContainerDimensions.js +21 -21
- package/build/hooks/useErrorListener.d.ts +1 -1
- package/build/hooks/useErrorListener.js +19 -19
- package/build/hooks/useEventListener.d.ts +5 -5
- package/build/hooks/useEventListener.js +20 -20
- package/build/hooks/useLanguage.d.ts +4 -4
- package/build/hooks/useLanguage.js +8 -8
- package/build/hooks/useRedirectionListener.d.ts +4 -4
- package/build/hooks/useRedirectionListener.js +12 -12
- package/build/hooks/useThemeMode.d.ts +4 -4
- package/build/hooks/useThemeMode.js +7 -7
- package/build/hooks/useWindowSize.d.ts +6 -6
- package/build/hooks/useWindowSize.js +19 -19
- package/build/i18n.d.ts +2 -2
- package/build/i18n.js +34 -34
- package/build/index.d.ts +11 -11
- package/build/index.js +26 -26
- package/build/theme/components.d.ts +2 -2
- package/build/theme/components.js +19 -10
- package/build/theme/index.d.ts +1 -1
- package/build/theme/index.js +1 -1
- package/build/theme/palette.d.ts +3 -3
- package/build/theme/palette.js +68 -68
- package/build/theme/shadows.d.ts +2 -2
- package/build/theme/shadows.js +27 -27
- package/build/theme/theme.d.ts +2 -2
- package/build/theme/theme.js +34 -34
- package/build/theme/typography.d.ts +2 -2
- package/build/theme/typography.js +31 -31
- package/build/utils/array.d.ts +10 -9
- package/build/utils/array.js +51 -44
- package/build/utils/device.d.ts +4 -4
- package/build/utils/device.js +13 -13
- package/build/utils/html.d.ts +4 -4
- package/build/utils/html.js +26 -26
- package/build/utils/index.d.ts +9 -9
- package/build/utils/index.js +9 -9
- package/build/utils/locale.d.ts +2 -2
- package/build/utils/locale.js +21 -21
- package/build/utils/object.d.ts +3 -3
- package/build/utils/object.js +18 -18
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +19 -19
- package/build/utils/storage.d.ts +5 -5
- package/build/utils/storage.js +21 -21
- package/build/utils/string.d.ts +38 -38
- package/build/utils/string.js +122 -122
- package/build/utils/style.d.ts +1 -1
- package/build/utils/style.js +1 -1
- package/build/utils/validation.d.ts +15 -14
- package/build/utils/validation.js +45 -42
- package/package.json +1 -1
package/build/app/settings.js
CHANGED
|
@@ -1,252 +1,264 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
17
|
-
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;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var _a;
|
|
38
|
-
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '../utils';
|
|
40
|
-
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
41
|
-
import i18n from '../i18n';
|
|
42
|
-
import { updateLocale } from '../utils/locale';
|
|
43
|
-
import API from '../api';
|
|
44
|
-
export var getClientIp = createAsyncThunk('getClientIp', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
-
var data;
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
switch (_a.label) {
|
|
48
|
-
case 0: return [4, API.ipService.getIP()];
|
|
49
|
-
case 1:
|
|
50
|
-
data = (_a.sent()).data;
|
|
51
|
-
return [2, data];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}); });
|
|
55
|
-
export var getBrowserFingerPrint = createAsyncThunk('getBrowserFingerPrint', function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var _a, client, device, os, fingerPrint;
|
|
57
|
-
return __generator(this, function (_b) {
|
|
58
|
-
switch (_b.label) {
|
|
59
|
-
case 0:
|
|
60
|
-
_a = getBrowserInfo(), client = _a.client, device = _a.device, os = _a.os;
|
|
61
|
-
return [4, getFingerPrint()];
|
|
62
|
-
case 1:
|
|
63
|
-
fingerPrint = _b.sent();
|
|
64
|
-
return [2, { fingerPrint: fingerPrint, client: client, device: device, os: os, appInfo: params }];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}); });
|
|
68
|
-
export var getOperator = createAsyncThunk('getOperator', function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var data;
|
|
70
|
-
return __generator(this, function (_a) {
|
|
71
|
-
switch (_a.label) {
|
|
72
|
-
case 0: return [4, API.operatorService.validateOperator(params)];
|
|
73
|
-
case 1:
|
|
74
|
-
data = (_a.sent()).data;
|
|
75
|
-
return [2, data];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}); });
|
|
79
|
-
export var getLocale = createAsyncThunk('getLocale', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
var data;
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0: return [4, API.firebaseService.getLocale()];
|
|
84
|
-
case 1:
|
|
85
|
-
data = (_a.sent()).data;
|
|
86
|
-
return [2, data];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}); });
|
|
90
|
-
var initialState = {
|
|
91
|
-
error: null,
|
|
92
|
-
loading: false,
|
|
93
|
-
data: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (!
|
|
170
|
-
throw new Error('
|
|
171
|
-
if (!
|
|
172
|
-
throw new Error('
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
.addCase(getClientIp.
|
|
191
|
-
state.error =
|
|
192
|
-
state.loading =
|
|
193
|
-
})
|
|
194
|
-
.addCase(
|
|
195
|
-
state.
|
|
196
|
-
state.
|
|
197
|
-
|
|
198
|
-
.
|
|
199
|
-
state.
|
|
200
|
-
state.
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
state.
|
|
204
|
-
state.
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
state.
|
|
208
|
-
state.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
state.
|
|
212
|
-
state.
|
|
213
|
-
|
|
214
|
-
state.data.deviceInfo.
|
|
215
|
-
|
|
216
|
-
.
|
|
217
|
-
state.
|
|
218
|
-
state.
|
|
219
|
-
state.
|
|
220
|
-
|
|
221
|
-
.
|
|
222
|
-
state.
|
|
223
|
-
state.
|
|
224
|
-
|
|
225
|
-
.
|
|
226
|
-
state.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
.
|
|
245
|
-
state.loading = false;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (_) try {
|
|
17
|
+
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;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var _a;
|
|
38
|
+
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '../utils';
|
|
40
|
+
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
41
|
+
import i18n from '../i18n';
|
|
42
|
+
import { updateLocale } from '../utils/locale';
|
|
43
|
+
import API from '../api';
|
|
44
|
+
export var getClientIp = createAsyncThunk('getClientIp', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
+
var data;
|
|
46
|
+
return __generator(this, function (_a) {
|
|
47
|
+
switch (_a.label) {
|
|
48
|
+
case 0: return [4, API.ipService.getIP()];
|
|
49
|
+
case 1:
|
|
50
|
+
data = (_a.sent()).data;
|
|
51
|
+
return [2, data];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}); });
|
|
55
|
+
export var getBrowserFingerPrint = createAsyncThunk('getBrowserFingerPrint', function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
+
var _a, client, device, os, fingerPrint;
|
|
57
|
+
return __generator(this, function (_b) {
|
|
58
|
+
switch (_b.label) {
|
|
59
|
+
case 0:
|
|
60
|
+
_a = getBrowserInfo(), client = _a.client, device = _a.device, os = _a.os;
|
|
61
|
+
return [4, getFingerPrint()];
|
|
62
|
+
case 1:
|
|
63
|
+
fingerPrint = _b.sent();
|
|
64
|
+
return [2, { fingerPrint: fingerPrint, client: client, device: device, os: os, appInfo: params }];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}); });
|
|
68
|
+
export var getOperator = createAsyncThunk('getOperator', function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
+
var data;
|
|
70
|
+
return __generator(this, function (_a) {
|
|
71
|
+
switch (_a.label) {
|
|
72
|
+
case 0: return [4, API.operatorService.validateOperator(params)];
|
|
73
|
+
case 1:
|
|
74
|
+
data = (_a.sent()).data;
|
|
75
|
+
return [2, data];
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}); });
|
|
79
|
+
export var getLocale = createAsyncThunk('getLocale', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
+
var data;
|
|
81
|
+
return __generator(this, function (_a) {
|
|
82
|
+
switch (_a.label) {
|
|
83
|
+
case 0: return [4, API.firebaseService.getLocale()];
|
|
84
|
+
case 1:
|
|
85
|
+
data = (_a.sent()).data;
|
|
86
|
+
return [2, data];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}); });
|
|
90
|
+
var initialState = {
|
|
91
|
+
error: null,
|
|
92
|
+
loading: false,
|
|
93
|
+
data: {
|
|
94
|
+
open: true,
|
|
95
|
+
isTapOrigin: true,
|
|
96
|
+
skin: getStoredData(LOCAL_STORAGE_KEYS.themeMode) || 'light',
|
|
97
|
+
language: getStoredData(LOCAL_STORAGE_KEYS.languageMode) || 'en',
|
|
98
|
+
featureScreensNavigation: [],
|
|
99
|
+
activeScreen: {},
|
|
100
|
+
deviceInfo: DefaultDeviceInfo,
|
|
101
|
+
appConfig: {}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export var settingsSlice = createSlice({
|
|
105
|
+
name: 'settings',
|
|
106
|
+
initialState: initialState,
|
|
107
|
+
reducers: {
|
|
108
|
+
handleIsTapOrigin: function (state, action) {
|
|
109
|
+
state.data.isTapOrigin = action.payload;
|
|
110
|
+
},
|
|
111
|
+
handleOpen: function (state, action) {
|
|
112
|
+
state.data.open = action.payload;
|
|
113
|
+
},
|
|
114
|
+
handleSkin: function (state, action) {
|
|
115
|
+
state.data.skin = action.payload;
|
|
116
|
+
storeData(LOCAL_STORAGE_KEYS.themeMode, action.payload);
|
|
117
|
+
},
|
|
118
|
+
handleLanguage: function (state, action) {
|
|
119
|
+
state.data.language = action.payload;
|
|
120
|
+
i18n.changeLanguage(action.payload);
|
|
121
|
+
storeData(LOCAL_STORAGE_KEYS.languageMode, action.payload);
|
|
122
|
+
},
|
|
123
|
+
handleNextScreenStep: function (state, action) {
|
|
124
|
+
var next = state.data.activeScreen.next;
|
|
125
|
+
if (isArray(next)) {
|
|
126
|
+
if (!action.payload)
|
|
127
|
+
return alert('next screen is an array, but no payload was provided');
|
|
128
|
+
var nextName_1 = findItem(next, action.payload);
|
|
129
|
+
var nextScreen_1 = state.data.featureScreensNavigation.find(function (item) { return item.name === nextName_1; });
|
|
130
|
+
if (!nextScreen_1)
|
|
131
|
+
return alert('Next screen step not found');
|
|
132
|
+
state.data.activeScreen = nextScreen_1;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
var nextScreen = state.data.featureScreensNavigation.find(function (item) { return item.name === next; });
|
|
136
|
+
if (!nextScreen)
|
|
137
|
+
return alert('Next screen step not found');
|
|
138
|
+
state.data.activeScreen = nextScreen;
|
|
139
|
+
},
|
|
140
|
+
handleCurrentActiveScreen: function (state, action) {
|
|
141
|
+
var activeScreen = state.data.featureScreensNavigation.find(function (item) { return item.name === action.payload; });
|
|
142
|
+
if (!activeScreen)
|
|
143
|
+
return alert('Active screen not found');
|
|
144
|
+
state.data.activeScreen = activeScreen;
|
|
145
|
+
},
|
|
146
|
+
handlePrevScreenStep: function (state, action) {
|
|
147
|
+
var prev = state.data.activeScreen.prev;
|
|
148
|
+
if (isArray(prev)) {
|
|
149
|
+
if (!action.payload)
|
|
150
|
+
return alert('Previous screen is an array, but no payload was provided');
|
|
151
|
+
var prevName_1 = findItem(prev, action.payload);
|
|
152
|
+
var prevScreen_1 = state.data.featureScreensNavigation.find(function (item) { return item.name === prevName_1; });
|
|
153
|
+
if (!prevScreen_1)
|
|
154
|
+
return alert('Previous screen step not found');
|
|
155
|
+
state.data.activeScreen = prevScreen_1;
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
var prevScreen = state.data.featureScreensNavigation.find(function (item) { return item.name === prev; });
|
|
159
|
+
if (!prevScreen)
|
|
160
|
+
return alert('Previous screen step not found');
|
|
161
|
+
state.data.activeScreen = prevScreen;
|
|
162
|
+
},
|
|
163
|
+
handleActiveFlowScreens: function (state, action) {
|
|
164
|
+
state.data.featureScreensNavigation = action.payload;
|
|
165
|
+
state.data.activeScreen = action.payload[0];
|
|
166
|
+
},
|
|
167
|
+
handleSetAppConfig: function (state, action) {
|
|
168
|
+
var _a = action.payload, appInfo = _a.appInfo, businessCountryCode = _a.businessCountryCode, language = _a.language, onError = _a.onError, onFlowCompleted = _a.onFlowCompleted, publicKey = _a.publicKey, merchantDomain = _a.merchantDomain, open = _a.open;
|
|
169
|
+
if (!appInfo.name)
|
|
170
|
+
throw new Error('App name is required');
|
|
171
|
+
if (!businessCountryCode)
|
|
172
|
+
throw new Error('Business country is required');
|
|
173
|
+
if (!language)
|
|
174
|
+
throw new Error('Language is required');
|
|
175
|
+
if (!publicKey)
|
|
176
|
+
throw new Error('Public key is required');
|
|
177
|
+
if (!onError)
|
|
178
|
+
throw new Error('On error function is required');
|
|
179
|
+
if (!onFlowCompleted)
|
|
180
|
+
throw new Error('On flow completed function is required');
|
|
181
|
+
if (!merchantDomain)
|
|
182
|
+
throw new Error('Merchant domain is required');
|
|
183
|
+
if (typeof open !== 'boolean')
|
|
184
|
+
throw new Error('Open is required');
|
|
185
|
+
state.data.appConfig = action.payload;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
extraReducers: function (builder) {
|
|
189
|
+
builder
|
|
190
|
+
.addCase(getClientIp.pending, function (state) {
|
|
191
|
+
state.error = null;
|
|
192
|
+
state.loading = true;
|
|
193
|
+
})
|
|
194
|
+
.addCase(getClientIp.fulfilled, function (state, action) {
|
|
195
|
+
state.error = null;
|
|
196
|
+
state.loading = false;
|
|
197
|
+
var _a = action.payload, ip = _a.ip, latitude = _a.latitude, longitude = _a.longitude;
|
|
198
|
+
state.data.deviceInfo.connection.ip = ip;
|
|
199
|
+
state.data.deviceInfo.connection.latitude = latitude;
|
|
200
|
+
state.data.deviceInfo.connection.longitude = longitude;
|
|
201
|
+
})
|
|
202
|
+
.addCase(getClientIp.rejected, function (state, action) {
|
|
203
|
+
state.error = action.error.message;
|
|
204
|
+
state.loading = false;
|
|
205
|
+
})
|
|
206
|
+
.addCase(getBrowserFingerPrint.pending, function (state) {
|
|
207
|
+
state.loading = true;
|
|
208
|
+
state.error = null;
|
|
209
|
+
})
|
|
210
|
+
.addCase(getBrowserFingerPrint.fulfilled, function (state, action) {
|
|
211
|
+
state.loading = false;
|
|
212
|
+
state.error = null;
|
|
213
|
+
var _a = action.payload, appInfo = _a.appInfo, client = _a.client, device = _a.device, fingerPrint = _a.fingerPrint, os = _a.os;
|
|
214
|
+
state.data.deviceInfo.app.language = state.data.appConfig.language || 'en';
|
|
215
|
+
state.data.deviceInfo.app.name = appInfo.name;
|
|
216
|
+
state.data.deviceInfo.app.version = appInfo.version || '2.0.0';
|
|
217
|
+
state.data.deviceInfo.app.identifier = appInfo.identifier || 'auth-connect-demo';
|
|
218
|
+
state.data.deviceInfo.browser.browser_id = fingerPrint === null || fingerPrint === void 0 ? void 0 : fingerPrint.visitorId;
|
|
219
|
+
state.data.deviceInfo.browser.name = (client === null || client === void 0 ? void 0 : client.name) || '';
|
|
220
|
+
state.data.deviceInfo.browser.user_agent = window.navigator.userAgent;
|
|
221
|
+
state.data.deviceInfo.browser.version = (client === null || client === void 0 ? void 0 : client.version) || '';
|
|
222
|
+
state.data.deviceInfo.device.brand = (device === null || device === void 0 ? void 0 : device.brand) || '';
|
|
223
|
+
state.data.deviceInfo.device.model = (device === null || device === void 0 ? void 0 : device.model) || '';
|
|
224
|
+
state.data.deviceInfo.device.os.name = (os === null || os === void 0 ? void 0 : os.name) || '';
|
|
225
|
+
state.data.deviceInfo.device.os.version = (os === null || os === void 0 ? void 0 : os.version) || '';
|
|
226
|
+
state.data.deviceInfo.device.type = (device === null || device === void 0 ? void 0 : device.type) || '';
|
|
227
|
+
})
|
|
228
|
+
.addCase(getBrowserFingerPrint.rejected, function (state, action) {
|
|
229
|
+
state.loading = false;
|
|
230
|
+
state.loading = false;
|
|
231
|
+
state.error = action.error.message;
|
|
232
|
+
})
|
|
233
|
+
.addCase(getOperator.pending, function (state) {
|
|
234
|
+
state.error = null;
|
|
235
|
+
state.loading = true;
|
|
236
|
+
})
|
|
237
|
+
.addCase(getOperator.fulfilled, function (state, action) {
|
|
238
|
+
state.loading = false;
|
|
239
|
+
if (action.payload === 'valid') {
|
|
240
|
+
state.error = null;
|
|
241
|
+
}
|
|
242
|
+
})
|
|
243
|
+
.addCase(getOperator.rejected, function (state, action) {
|
|
244
|
+
state.error = action.error.message;
|
|
245
|
+
state.loading = false;
|
|
246
|
+
})
|
|
247
|
+
.addCase(getLocale.pending, function (state) {
|
|
248
|
+
state.error = null;
|
|
249
|
+
state.loading = true;
|
|
250
|
+
})
|
|
251
|
+
.addCase(getLocale.fulfilled, function (state, action) {
|
|
252
|
+
state.loading = false;
|
|
253
|
+
state.error = null;
|
|
254
|
+
updateLocale(action.payload);
|
|
255
|
+
})
|
|
256
|
+
.addCase(getLocale.rejected, function (state, action) {
|
|
257
|
+
state.loading = false;
|
|
258
|
+
state.error = action.error.message;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
export var handleSkin = (_a = settingsSlice.actions, _a.handleSkin), handleLanguage = _a.handleLanguage, handleActiveFlowScreens = _a.handleActiveFlowScreens, handleNextScreenStep = _a.handleNextScreenStep, handlePrevScreenStep = _a.handlePrevScreenStep, handleCurrentActiveScreen = _a.handleCurrentActiveScreen, handleSetAppConfig = _a.handleSetAppConfig, handleOpen = _a.handleOpen, handleIsTapOrigin = _a.handleIsTapOrigin;
|
|
263
|
+
export default settingsSlice.reducer;
|
|
264
|
+
export var settingsSelector = function (state) { return state.settings; };
|
package/build/app/store.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ThunkAction, Action } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
3
|
-
settings: import("./settings").SettingsState;
|
|
4
|
-
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
5
|
-
business: import("../features/app/business/businessStore").BusinessState;
|
|
6
|
-
bank: import("../features/app/bank/bankStore").BankState;
|
|
7
|
-
tax: import("../features/app/tax/taxStore").TaxState;
|
|
8
|
-
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
9
|
-
password: import("../features/app/password/passwordStore").PasswordState;
|
|
10
|
-
landing: import("../features/app/landing/landingStore").LandingState;
|
|
11
|
-
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
|
|
12
|
-
settings: import("./settings").SettingsState;
|
|
13
|
-
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
14
|
-
business: import("../features/app/business/businessStore").BusinessState;
|
|
15
|
-
bank: import("../features/app/bank/bankStore").BankState;
|
|
16
|
-
tax: import("../features/app/tax/taxStore").TaxState;
|
|
17
|
-
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
18
|
-
password: import("../features/app/password/passwordStore").PasswordState;
|
|
19
|
-
landing: import("../features/app/landing/landingStore").LandingState;
|
|
20
|
-
}, import("redux").AnyAction, undefined>]>>;
|
|
21
|
-
export declare type AppDispatch = typeof store.dispatch;
|
|
22
|
-
export declare type RootState = ReturnType<typeof store.getState>;
|
|
23
|
-
export declare type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
1
|
+
import { ThunkAction, Action } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
3
|
+
settings: import("./settings").SettingsState;
|
|
4
|
+
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
5
|
+
business: import("../features/app/business/businessStore").BusinessState;
|
|
6
|
+
bank: import("../features/app/bank/bankStore").BankState;
|
|
7
|
+
tax: import("../features/app/tax/taxStore").TaxState;
|
|
8
|
+
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
9
|
+
password: import("../features/app/password/passwordStore").PasswordState;
|
|
10
|
+
landing: import("../features/app/landing/landingStore").LandingState;
|
|
11
|
+
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
|
|
12
|
+
settings: import("./settings").SettingsState;
|
|
13
|
+
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
14
|
+
business: import("../features/app/business/businessStore").BusinessState;
|
|
15
|
+
bank: import("../features/app/bank/bankStore").BankState;
|
|
16
|
+
tax: import("../features/app/tax/taxStore").TaxState;
|
|
17
|
+
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
18
|
+
password: import("../features/app/password/passwordStore").PasswordState;
|
|
19
|
+
landing: import("../features/app/landing/landingStore").LandingState;
|
|
20
|
+
}, import("redux").AnyAction, undefined>]>>;
|
|
21
|
+
export declare type AppDispatch = typeof store.dispatch;
|
|
22
|
+
export declare type RootState = ReturnType<typeof store.getState>;
|
|
23
|
+
export declare type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
package/build/app/store.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import rootReducer from './rootReducer';
|
|
3
|
-
export var store = configureStore({
|
|
4
|
-
reducer: rootReducer,
|
|
5
|
-
devTools: process.env.NODE_ENV !== 'production',
|
|
6
|
-
middleware: function (getDefaultMiddleware) {
|
|
7
|
-
return getDefaultMiddleware({
|
|
8
|
-
serializableCheck: false
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
});
|
|
1
|
+
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
+
import rootReducer from './rootReducer';
|
|
3
|
+
export var store = configureStore({
|
|
4
|
+
reducer: rootReducer,
|
|
5
|
+
devTools: process.env.NODE_ENV !== 'production',
|
|
6
|
+
middleware: function (getDefaultMiddleware) {
|
|
7
|
+
return getDefaultMiddleware({
|
|
8
|
+
serializableCheck: false
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
});
|