@tap-payments/auth-jsconnect 1.0.69 → 1.0.72
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 +9 -1
- package/build/@types/form.d.ts +1 -1
- package/build/assets/locales/ar.json +10 -5
- package/build/assets/locales/en.json +15 -4
- package/build/components/SimpleList/SimpleList.js +5 -2
- package/build/constants/api.js +1 -1
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/features/app/business/businessStore.js +32 -23
- package/build/features/app/connect/connectStore.js +3 -1
- package/build/features/app/individual/individualStore.d.ts +7 -1
- package/build/features/app/individual/individualStore.js +41 -2
- package/build/features/bank/screens/BankDetails/BankName.js +18 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -8
- package/build/features/bank/screens/BankDetails/validation.d.ts +3 -3
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/Success/Success.js +1 -1
- package/build/features/bank/screens/Verify/Verify.js +3 -4
- package/build/features/business/screens/Activities/Activities.js +2 -3
- package/build/features/business/screens/Activities/ActivitiesList.js +2 -3
- package/build/features/business/screens/Activities/SalesChannels.js +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -3
- package/build/features/business/screens/BusinessType/LicenseList.js +2 -3
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.js +2 -3
- package/build/features/business/screens/Customers/Customers.js +6 -7
- package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -3
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +43 -35
- package/build/features/business/screens/IDBOD/DOB.js +6 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +3 -8
- package/build/features/business/screens/OTP/OTP.js +3 -4
- package/build/features/business/screens/OTP/OTPInput.js +2 -3
- package/build/features/business/screens/Success/Success.js +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +10 -14
- package/build/features/business/screens/Verify/Verify.js +3 -4
- package/build/features/connect/screens/Individual/Individual.js +2 -3
- package/build/features/connect/screens/Individual/MobileNumber.js +22 -8
- package/build/features/connect/screens/Merchant/BrandName.js +2 -3
- package/build/features/connect/screens/Merchant/Merchant.js +2 -3
- package/build/features/connect/screens/Mobile/Mobile.js +3 -4
- package/build/features/connect/screens/Mobile/MobileNumber.js +25 -9
- package/build/features/connect/screens/NID/DOB.js +2 -3
- package/build/features/connect/screens/NID/NID.js +3 -4
- package/build/features/connect/screens/OTP/OTP.js +2 -3
- package/build/features/connect/screens/OTP/OTPInput.js +2 -3
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/individual/Individual.js +4 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +5 -8
- package/build/features/individual/screens/Success/Success.js +1 -1
- package/build/features/individual/screens/Verify/Verify.js +3 -4
- package/build/features/password/screens/Success/Success.js +1 -1
- package/build/features/password/screens/Verify/Verify.js +3 -4
- package/build/features/shared/Footer/Footer.js +2 -3
- package/build/features/shared/Search/Search.d.ts +7 -0
- package/build/features/shared/Search/Search.js +25 -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 +2 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +9 -20
- package/build/features/tax/screens/Success/Success.js +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -3
- package/build/features/tax/screens/Verify/Verify.js +3 -4
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useSelector } from 'react-redux';
|
|
15
14
|
import Box from '@mui/material/Box';
|
|
16
15
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
17
16
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
@@ -20,7 +19,7 @@ import { styled, alpha } from '@mui/material/styles';
|
|
|
20
19
|
import Collapse from '../../../../components/Collapse';
|
|
21
20
|
import Form from '../../../../components/Form';
|
|
22
21
|
import Button, { AbsherButton } from '../../../shared/Button';
|
|
23
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
22
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
24
23
|
import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
|
|
25
24
|
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
26
25
|
import { clearError, connectSelector, createMobileAuth } from '../../../app/connect/connectStore';
|
|
@@ -73,8 +72,8 @@ var ListType;
|
|
|
73
72
|
ListType["CountryCodeList"] = "CountryCodeList";
|
|
74
73
|
})(ListType || (ListType = {}));
|
|
75
74
|
var Mobile = function (_a) {
|
|
76
|
-
var settingsStore =
|
|
77
|
-
var _b =
|
|
75
|
+
var settingsStore = useAppSelector(settingsSelector);
|
|
76
|
+
var _b = useAppSelector(connectSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
78
77
|
var _c = React.useState(), listType = _c[0], setListType = _c[1];
|
|
79
78
|
var dispatch = useAppDispatch();
|
|
80
79
|
var methods = useForm({
|
|
@@ -31,11 +31,13 @@ import Collapse from '../../../../components/Collapse';
|
|
|
31
31
|
import ClearIcon from '../../../shared/ClearIcon';
|
|
32
32
|
import CheckIcon from '../../../shared/CheckIcon';
|
|
33
33
|
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
34
|
+
import { connectSelector } from '../../../app/connect/connectStore';
|
|
34
35
|
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
35
36
|
import Input from '../../../shared/Input';
|
|
36
37
|
import SimpleList from '../../../../components/SimpleList';
|
|
37
38
|
import { removeAllCharsFromNumber } from '../../../../utils';
|
|
38
|
-
import { useLanguage } from '../../../../hooks';
|
|
39
|
+
import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
40
|
+
import Search from '../../../shared/Search';
|
|
39
41
|
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
40
42
|
var theme = _a.theme;
|
|
41
43
|
return ({
|
|
@@ -74,11 +76,12 @@ var ExpandIconStyled = styled(ExpandIcon)(function (_a) {
|
|
|
74
76
|
var MobileNumber = React.forwardRef(function (_a, ref) {
|
|
75
77
|
var _b, _c, _d;
|
|
76
78
|
var countries = _a.countries, rest = __rest(_a, ["countries"]);
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
+
var _e = React.useState(countries || []), countriesCode = _e[0], setCountries = _e[1];
|
|
80
|
+
var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
|
|
79
81
|
var t = useTranslation().t;
|
|
80
82
|
var isAr = useLanguage().isAr;
|
|
81
|
-
var
|
|
83
|
+
var _g = useFormContext(), control = _g.control, setValue = _g.setValue;
|
|
84
|
+
var loading = useAppSelector(connectSelector).loading;
|
|
82
85
|
var phoneControl = useController({ name: 'mobile', control: control });
|
|
83
86
|
var countryCodeControl = useController({ name: 'countryCode', control: control });
|
|
84
87
|
var countryCodeValue = countryCodeControl.field.value;
|
|
@@ -108,16 +111,29 @@ var MobileNumber = React.forwardRef(function (_a, ref) {
|
|
|
108
111
|
};
|
|
109
112
|
var toggleCountryList = function () {
|
|
110
113
|
var _a, _b;
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
if (anchorEl) {
|
|
115
|
+
setAnchorEl(null);
|
|
116
|
+
(_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
(_b = rest.onListOpen) === null || _b === void 0 ? void 0 : _b.call(rest);
|
|
120
|
+
setAnchorEl(true);
|
|
121
|
+
}
|
|
113
122
|
};
|
|
114
123
|
var onSelectItem = function (country) {
|
|
115
124
|
onCloseCountryList();
|
|
116
125
|
setValue('mobile', '');
|
|
117
126
|
countryCodeControl.field.onChange(country);
|
|
118
127
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
var handleSearch = function (value) {
|
|
129
|
+
var filteredCountries = countries.filter(function (country) {
|
|
130
|
+
return country.name.arabic.toLowerCase().startsWith(value.toLowerCase()) ||
|
|
131
|
+
country.name.english.toLowerCase().startsWith(value.toLowerCase());
|
|
132
|
+
});
|
|
133
|
+
setCountries(filteredCountries);
|
|
134
|
+
};
|
|
135
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('signup_enter_mobile') }) }), _jsx(Input, { sx: { direction: 'ltr' }, inputProps: { maxLength: requiredLen }, type: 'tel', required: true, onChange: onPhoneNumberChange, onEnterPressed: function (e) { return loading && e.preventDefault(); }, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: function () { return toggleCountryList(); } }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { onClick: function () { return toggleCountryList(); }, anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat(isSA ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: !anchorEl ? error && t(error, { length: requiredLen, number: '05|5' }) : undefined }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleList, { list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
136
|
+
return (_jsxs(_Fragment, { children: [_jsxs(CountryItemContainer, { children: [_jsxs(CountryCodeText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: ["+", item.idd_prefix] })), _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english }))] }), item.idd_prefix === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) && _jsx(CheckIcon, {})] }));
|
|
137
|
+
} })] }))] })) })));
|
|
122
138
|
});
|
|
123
139
|
export default React.memo(MobileNumber);
|
|
@@ -10,10 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useSelector } from 'react-redux';
|
|
14
13
|
import { useTranslation } from 'react-i18next';
|
|
15
14
|
import { useController, useFormContext } from 'react-hook-form';
|
|
16
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
15
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
17
16
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
18
17
|
import DatePicker from '../../../../components/DatePicker';
|
|
19
18
|
import { alpha, styled } from '@mui/material/styles';
|
|
@@ -30,7 +29,7 @@ var DOB = function (_a) {
|
|
|
30
29
|
var control = useFormContext().control;
|
|
31
30
|
var dispatch = useAppDispatch();
|
|
32
31
|
var dobControl = useController({ control: control, name: 'dob' });
|
|
33
|
-
var error =
|
|
32
|
+
var error = useAppSelector(connectSelector).error;
|
|
34
33
|
var handleBirthDateChange = function (data) {
|
|
35
34
|
dobControl.field.onChange(data);
|
|
36
35
|
handleClearError();
|
|
@@ -11,13 +11,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useSelector } from 'react-redux';
|
|
15
14
|
import { useTranslation } from 'react-i18next';
|
|
16
15
|
import { alpha, styled } from '@mui/material/styles';
|
|
17
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
18
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
19
18
|
import { NIDValidationSchema } from './validation';
|
|
20
|
-
import { useAppDispatch, useLanguage } from '../../../../hooks';
|
|
19
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
|
|
21
20
|
import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
|
|
22
21
|
import { clearError, connectSelector, createNIDAuth } from '../../../app/connect/connectStore';
|
|
23
22
|
import Form from '../../../../components/Form';
|
|
@@ -62,8 +61,8 @@ var NID = function (_a) {
|
|
|
62
61
|
var isAr = useLanguage().isAr;
|
|
63
62
|
var dispatch = useAppDispatch();
|
|
64
63
|
var t = useTranslation().t;
|
|
65
|
-
var _c =
|
|
66
|
-
var settingsStore =
|
|
64
|
+
var _c = useAppSelector(connectSelector), data = _c.data, loading = _c.loading, error = _c.error;
|
|
65
|
+
var settingsStore = useAppSelector(settingsSelector);
|
|
67
66
|
var methods = useForm({
|
|
68
67
|
resolver: yupResolver(NIDValidationSchema),
|
|
69
68
|
defaultValues: data.nidData,
|
|
@@ -10,7 +10,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useSelector } from 'react-redux';
|
|
14
13
|
import Box from '@mui/material/Box/Box';
|
|
15
14
|
import { styled } from '@mui/material/styles';
|
|
16
15
|
import * as React from 'react';
|
|
@@ -19,7 +18,7 @@ import Text from '../../../../components/Text';
|
|
|
19
18
|
import { clearError, connectSelector, resetOTPScreen, verifyAuth } from '../../../app/connect/connectStore';
|
|
20
19
|
import Button from '../../../shared/Button';
|
|
21
20
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
22
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
21
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
23
22
|
import { handlePrevScreenStep } from '../../../../app/settings';
|
|
24
23
|
import { useLanguage } from '../../../../hooks';
|
|
25
24
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
@@ -50,7 +49,7 @@ var FormStyled = styled(Form)(function () { return ({
|
|
|
50
49
|
var OTP = function () {
|
|
51
50
|
var _a;
|
|
52
51
|
var dispatch = useAppDispatch();
|
|
53
|
-
var _b =
|
|
52
|
+
var _b = useAppSelector(connectSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
54
53
|
var methods = useForm({
|
|
55
54
|
resolver: yupResolver(OTPValidation),
|
|
56
55
|
defaultValues: data.otpData,
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useSelector } from 'react-redux';
|
|
15
14
|
import { useController, useFormContext } from 'react-hook-form';
|
|
16
15
|
import { useTranslation } from 'react-i18next';
|
|
17
16
|
import Box from '@mui/material/Box/Box';
|
|
@@ -19,7 +18,7 @@ import { styled } from '@mui/material/styles';
|
|
|
19
18
|
import OTPField from '../../../shared/OTP';
|
|
20
19
|
import { DEFAULT_TIMER_VALUE } from '../../../../constants';
|
|
21
20
|
import { connectSelector, createMobileAuth, createNIDAuth } from '../../../app/connect/connectStore';
|
|
22
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
21
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
23
22
|
var BoxStyled = styled(Box)(function (_a) {
|
|
24
23
|
var theme = _a.theme;
|
|
25
24
|
return ({
|
|
@@ -33,7 +32,7 @@ var OTPInput = function (_a) {
|
|
|
33
32
|
var t = useTranslation().t;
|
|
34
33
|
var dispatch = useAppDispatch();
|
|
35
34
|
var otpControl = useController({ name: 'otp', control: control });
|
|
36
|
-
var data =
|
|
35
|
+
var data = useAppSelector(connectSelector).data;
|
|
37
36
|
var mobileData = data.mobileData;
|
|
38
37
|
var nidData = data.nidData;
|
|
39
38
|
var isAbsher = data.otpData.isAbsher;
|
|
@@ -10,6 +10,6 @@ var ThankYou = function (_a) {
|
|
|
10
10
|
React.useEffect(function () {
|
|
11
11
|
dispatch(updateLeadSuccess());
|
|
12
12
|
}, []);
|
|
13
|
-
return _jsx(SuccessScreen, { title: t(
|
|
13
|
+
return (_jsx(SuccessScreen, { title: t("connect_completed_title"), description: t("connect_completed_description"), showEmailProviders: true }));
|
|
14
14
|
};
|
|
15
15
|
export default React.memo(ThankYou);
|
|
@@ -21,7 +21,7 @@ import { getParameterByName, reactElement } from '../../utils';
|
|
|
21
21
|
import { FeatureContainer } from '../shared/Containers';
|
|
22
22
|
import { INDIVIDUAL_SCREENS_NAVIGATION } from '../../constants';
|
|
23
23
|
import { individualFeatureScreens } from '../featuresScreens';
|
|
24
|
-
import { individualSelector, verifyLeadToken } from '../app/individual/individualStore';
|
|
24
|
+
import { getCountries, individualSelector, verifyLeadToken } from '../app/individual/individualStore';
|
|
25
25
|
import CustomFooter from '../shared/Footer';
|
|
26
26
|
var Individual = memo(function (props) {
|
|
27
27
|
var open = React.useState(true)[0];
|
|
@@ -42,6 +42,9 @@ var Individual = memo(function (props) {
|
|
|
42
42
|
if (!loading)
|
|
43
43
|
verifyToken();
|
|
44
44
|
}, [loading]);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
dispatch(getCountries());
|
|
47
|
+
}, []);
|
|
45
48
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ loading: settingLoading || customLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: individualFeatureScreens.map(function (_a, index) {
|
|
46
49
|
var Element = _a.element, name = _a.name;
|
|
47
50
|
var isActive = activeScreen.name === name;
|
package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js
CHANGED
|
@@ -15,7 +15,7 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
15
15
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
16
16
|
import Box from '@mui/material/Box';
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
18
|
+
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
19
19
|
import { handlePrevScreenStep } from '../../../../app/settings';
|
|
20
20
|
import { styled } from '@mui/material/styles';
|
|
21
21
|
import Form from '../../../../components/Form';
|
|
@@ -30,8 +30,6 @@ import MonthlyIncome from './MonthlyIncome';
|
|
|
30
30
|
import EmployerName from './EmployerName';
|
|
31
31
|
import EmployerLocation from './EmployerLocation';
|
|
32
32
|
import SourceOfIncome from './SourceOfIncome';
|
|
33
|
-
import { countriesCode } from '../../../../constants';
|
|
34
|
-
import { useSelector } from 'react-redux';
|
|
35
33
|
import { individualSelector, updateIndividualInfo } from '../../../app/individual/individualStore';
|
|
36
34
|
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
37
35
|
var _b;
|
|
@@ -59,7 +57,7 @@ var AdditionalIndividualInfo = function (_a) {
|
|
|
59
57
|
var t = useTranslation().t;
|
|
60
58
|
var isAr = useLanguage().isAr;
|
|
61
59
|
var dispatch = useAppDispatch();
|
|
62
|
-
var _b =
|
|
60
|
+
var _b = useAppSelector(individualSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
63
61
|
var methods = useForm({
|
|
64
62
|
resolver: yupResolver(IndividualInfoValidationSchema),
|
|
65
63
|
defaultValues: data.individualData,
|
|
@@ -75,13 +73,18 @@ var AdditionalIndividualInfo = function (_a) {
|
|
|
75
73
|
setEmployerFieldsActive(false);
|
|
76
74
|
}
|
|
77
75
|
}, [methods.watch('sourceIncome')]);
|
|
76
|
+
React.useEffect(function () {
|
|
77
|
+
if (data.individualData.employerLocation) {
|
|
78
|
+
methods.setValue('employerLocation', data.individualData.employerLocation);
|
|
79
|
+
}
|
|
80
|
+
}, [data.individualData.employerLocation]);
|
|
78
81
|
var onSubmit = function (data) {
|
|
79
82
|
dispatch(updateIndividualInfo(data));
|
|
80
83
|
};
|
|
81
84
|
var onBack = function () {
|
|
82
85
|
dispatch(handlePrevScreenStep());
|
|
83
86
|
};
|
|
84
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(InputsContainerStyled, __assign({ listActive: listActive }, { children: [_jsx(SourceOfIncome, { show: !listActive }), _jsx(MonthlyIncome, { show: !listActive }), _jsx(EmployerName, { show: !listActive && employerFieldsActive }), _jsx(EmployerLocation, { show: employerFieldsActive, countries:
|
|
87
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(InputsContainerStyled, __assign({ listActive: listActive }, { children: [_jsx(SourceOfIncome, { show: !listActive }), _jsx(MonthlyIncome, { show: !listActive }), _jsx(EmployerName, { show: !listActive && employerFieldsActive }), _jsx(EmployerLocation, { show: employerFieldsActive, countries: data.countries, onListOpen: function () { return setListActive(true); }, onListClose: function () { return setListActive(false); } }), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] })), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(ButtonStyled, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
|
|
85
88
|
};
|
|
86
89
|
export default React.memo(AdditionalIndividualInfo);
|
|
87
90
|
AdditionalIndividualInfo.defaultProps = {};
|
|
@@ -20,14 +20,11 @@ import CheckIcon from '../../../shared/CheckIcon';
|
|
|
20
20
|
import Collapse from '../../../../components/Collapse';
|
|
21
21
|
import ClearIcon from '../../../shared/ClearIcon';
|
|
22
22
|
import { styled } from '@mui/material/styles';
|
|
23
|
-
var InputStyled = styled(Input)(function (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
23
|
+
var InputStyled = styled(Input)(function () { return ({
|
|
24
|
+
input: {
|
|
25
|
+
textTransform: 'capitalize'
|
|
26
|
+
}
|
|
27
|
+
}); });
|
|
31
28
|
var EmployerName = function (_a) {
|
|
32
29
|
var _b;
|
|
33
30
|
var show = _a.show;
|
|
@@ -11,6 +11,6 @@ var Success = function (_a) {
|
|
|
11
11
|
dispatch(updateLeadSuccess());
|
|
12
12
|
}, []);
|
|
13
13
|
var onSuccess = function () { };
|
|
14
|
-
return _jsx(SuccessScreen, { title: t('
|
|
14
|
+
return _jsx(SuccessScreen, { title: t('individual_success_title'), onSuccess: onSuccess, successTitle: t('continue') });
|
|
15
15
|
};
|
|
16
16
|
export default React.memo(Success);
|
|
@@ -13,13 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useAppDispatch } from '../../../../hooks';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
|
-
import { useSelector } from 'react-redux';
|
|
17
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
18
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
19
18
|
import Box from '@mui/material/Box/Box';
|
|
20
19
|
import { styled } from '@mui/material/styles';
|
|
21
20
|
import { handlePrevScreenStep } from '../../../../app/settings';
|
|
22
|
-
import { useLanguage } from '../../../../hooks';
|
|
21
|
+
import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
23
22
|
import { maskPhone } from '../../../../utils';
|
|
24
23
|
import Form from '../../../../components/Form';
|
|
25
24
|
import Text from '../../../../components/Text';
|
|
@@ -50,7 +49,7 @@ var FormStyled = styled(Form)(function () { return ({
|
|
|
50
49
|
var VerifyNumber = function (_a) {
|
|
51
50
|
var _b, _c, _d;
|
|
52
51
|
var dispatch = useAppDispatch();
|
|
53
|
-
var _e =
|
|
52
|
+
var _e = useAppSelector(individualSelector), data = _e.data, loading = _e.loading, error = _e.error;
|
|
54
53
|
var methods = useForm({
|
|
55
54
|
resolver: yupResolver(OTPValidation),
|
|
56
55
|
defaultValues: data.otpData,
|
|
@@ -73,6 +72,6 @@ var VerifyNumber = function (_a) {
|
|
|
73
72
|
};
|
|
74
73
|
var phone = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.contact) === null || _c === void 0 ? void 0 : _c.phone) === null || _d === void 0 ? void 0 : _d.number;
|
|
75
74
|
var disabled = !methods.formState.isValid || !!error || !phone;
|
|
76
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled,
|
|
75
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
|
|
77
76
|
};
|
|
78
77
|
export default React.memo(VerifyNumber);
|
|
@@ -5,6 +5,6 @@ import SuccessScreen from '../../../shared/SuccessScreen';
|
|
|
5
5
|
var Success = function (_a) {
|
|
6
6
|
var t = useTranslation().t;
|
|
7
7
|
var onSuccess = function () { };
|
|
8
|
-
return _jsx(SuccessScreen, { title: t('
|
|
8
|
+
return _jsx(SuccessScreen, { title: t('password_success_title'), onSuccess: onSuccess, successTitle: t('continue') });
|
|
9
9
|
};
|
|
10
10
|
export default React.memo(Success);
|
|
@@ -13,13 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useAppDispatch } from '../../../../hooks';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
|
-
import { useSelector } from 'react-redux';
|
|
17
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
18
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
19
18
|
import Box from '@mui/material/Box/Box';
|
|
20
19
|
import { styled } from '@mui/material/styles';
|
|
21
20
|
import { handlePrevScreenStep } from '../../../../app/settings';
|
|
22
|
-
import { useLanguage } from '../../../../hooks';
|
|
21
|
+
import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
23
22
|
import { maskPhone } from '../../../../utils';
|
|
24
23
|
import Form from '../../../../components/Form';
|
|
25
24
|
import Text from '../../../../components/Text';
|
|
@@ -50,7 +49,7 @@ var FormStyled = styled(Form)(function () { return ({
|
|
|
50
49
|
var VerifyNumber = function (_a) {
|
|
51
50
|
var _b, _c, _d;
|
|
52
51
|
var dispatch = useAppDispatch();
|
|
53
|
-
var _e =
|
|
52
|
+
var _e = useAppSelector(passwordSelector), data = _e.data, loading = _e.loading, error = _e.error;
|
|
54
53
|
var methods = useForm({
|
|
55
54
|
resolver: yupResolver(OTPValidation),
|
|
56
55
|
defaultValues: data.otpData,
|
|
@@ -73,6 +72,6 @@ var VerifyNumber = function (_a) {
|
|
|
73
72
|
};
|
|
74
73
|
var phone = (_d = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.contact) === null || _c === void 0 ? void 0 : _c.phone) === null || _d === void 0 ? void 0 : _d.number;
|
|
75
74
|
var disabled = !methods.formState.isValid || !!error || !phone;
|
|
76
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled,
|
|
75
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(Button, __assign({ disableBack: true, onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
|
|
77
76
|
};
|
|
78
77
|
export default React.memo(VerifyNumber);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { LanguageMode } from '../../../@types';
|
|
3
|
-
import { useAppDispatch, useLanguage } from '../../../hooks';
|
|
3
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '../../../hooks';
|
|
4
4
|
import { handleLanguage } from '../../../app/settings';
|
|
5
5
|
import Footer from '../../../components/Footer';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useSelector } from 'react-redux';
|
|
8
7
|
import { connectSelector } from '../../app/connect/connectStore';
|
|
9
8
|
export default function CustomFooter() {
|
|
10
9
|
var isEn = useLanguage().isEn;
|
|
11
10
|
var t = useTranslation().t;
|
|
12
11
|
var dispatch = useAppDispatch();
|
|
13
|
-
var _a =
|
|
12
|
+
var _a = useAppSelector(connectSelector), data = _a.data, loading = _a.loading, error = _a.error;
|
|
14
13
|
var handleChangeLanguage = function () {
|
|
15
14
|
var language = isEn ? LanguageMode.AR : LanguageMode.EN;
|
|
16
15
|
dispatch(handleLanguage(language));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import Input from '../../shared/Input';
|
|
16
|
+
import Collapse from '../../../components/Collapse';
|
|
17
|
+
var Search = function (_a) {
|
|
18
|
+
var onSearchValue = _a.onSearchValue, showSearch = _a.showSearch;
|
|
19
|
+
var t = useTranslation().t;
|
|
20
|
+
var handleOnChange = function (event) {
|
|
21
|
+
onSearchValue === null || onSearchValue === void 0 ? void 0 : onSearchValue(event.target.value);
|
|
22
|
+
};
|
|
23
|
+
return (_jsx(React.Fragment, { children: _jsx(Collapse, __assign({ in: showSearch }, { children: _jsx(Input, { placeholder: t('search_placeholder'), onChange: handleOnChange }) })) }));
|
|
24
|
+
};
|
|
25
|
+
export default Search;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Icon from '../../../components/Icon';
|
|
14
|
+
import { styled } from '@mui/material/styles';
|
|
15
|
+
import { ICONS_NAMES } from '../../../constants';
|
|
16
|
+
var SearchIcon = styled(Icon)(function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return ({
|
|
19
|
+
width: theme.spacing(2),
|
|
20
|
+
height: theme.spacing(2),
|
|
21
|
+
cursor: 'pointer'
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export default function CustomSearchIcon(props) {
|
|
25
|
+
return _jsx(SearchIcon, __assign({ src: ICONS_NAMES.SEARCH_ICON }, props));
|
|
26
|
+
}
|
|
@@ -5,6 +5,7 @@ export interface ThankYouProps {
|
|
|
5
5
|
showEmailProviders?: boolean;
|
|
6
6
|
successTitle?: string;
|
|
7
7
|
disabledSuccessButton?: boolean;
|
|
8
|
+
description?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ title, showEmailProviders, onSuccess, successTitle, disabledSuccessButton }: ThankYouProps) => JSX.Element>;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ title, description, showEmailProviders, onSuccess, successTitle, disabledSuccessButton }: ThankYouProps) => JSX.Element>;
|
|
10
11
|
export default _default;
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import Box from '@mui/material/Box/Box';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import * as React from 'react';
|
|
@@ -23,24 +23,13 @@ import { useLanguage } from '../../../hooks';
|
|
|
23
23
|
var MailBoxStyled = styled(Box)(function () { return ({
|
|
24
24
|
width: '100%'
|
|
25
25
|
}); });
|
|
26
|
-
var
|
|
27
|
-
var _b;
|
|
26
|
+
var TitleStyled = styled(Text)(function (_a) {
|
|
28
27
|
var theme = _a.theme;
|
|
29
|
-
return (
|
|
30
|
-
background: theme.palette.common.white,
|
|
31
|
-
border: '1px solid',
|
|
32
|
-
width: '100%',
|
|
33
|
-
borderColor: theme.palette.divider,
|
|
34
|
-
borderRadius: theme.spacing(0, 0, 1.25, 1.25)
|
|
35
|
-
},
|
|
36
|
-
_b[theme.breakpoints.up('sm')] = {
|
|
37
|
-
marginBottom: theme.spacing(7.5)
|
|
38
|
-
},
|
|
39
|
-
_b);
|
|
28
|
+
return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightBold, color: theme.palette.text.primary, marginBlockEnd: theme.spacing(2.375), lineHeight: 1.75, padding: '0px 20px' }));
|
|
40
29
|
});
|
|
41
|
-
var
|
|
30
|
+
var DescriptionStyled = styled(Text)(function (_a) {
|
|
42
31
|
var theme = _a.theme;
|
|
43
|
-
return (__assign({ fontWeight: theme.typography.
|
|
32
|
+
return (__assign(__assign({}, theme.typography.subtitle2), { fontWeight: theme.typography.fontWeightMedium, textAlign: 'center', color: theme.palette.text.primary, marginBlockEnd: theme.spacing(3.75), lineHeight: theme.spacing(2.125), padding: theme.spacing(0, 3.75) }));
|
|
44
33
|
});
|
|
45
34
|
var ContainerStyled = styled(Container)(function (_a) {
|
|
46
35
|
var theme = _a.theme;
|
|
@@ -56,17 +45,17 @@ var IconStyled = styled(Icon)(function (_a) {
|
|
|
56
45
|
return (_b = {
|
|
57
46
|
width: theme.spacing(10),
|
|
58
47
|
height: theme.spacing(10),
|
|
59
|
-
marginBlockEnd: theme.spacing(
|
|
48
|
+
marginBlockEnd: theme.spacing(3.25)
|
|
60
49
|
},
|
|
61
50
|
_b[theme.breakpoints.down('sm')] = {
|
|
62
|
-
marginBlock: theme.spacing(
|
|
51
|
+
marginBlock: theme.spacing(3.25)
|
|
63
52
|
},
|
|
64
53
|
_b);
|
|
65
54
|
});
|
|
66
55
|
var ThankYou = function (_a) {
|
|
67
|
-
var title = _a.title, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, disabledSuccessButton = _a.disabledSuccessButton;
|
|
56
|
+
var title = _a.title, description = _a.description, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, disabledSuccessButton = _a.disabledSuccessButton;
|
|
68
57
|
var t = useTranslation().t;
|
|
69
58
|
var isAr = useLanguage().isAr;
|
|
70
|
-
return (_jsxs(ContainerStyled, { children: [
|
|
59
|
+
return (_jsxs(ContainerStyled, { children: [_jsx(IconStyled, { src: ICONS_NAMES.SUCCESS_GIF, alt: 'loading...' }), _jsxs(TitleStyled, { children: [title, " "] }), _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'https://www.icloud.com/mail/' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ disabled: disabledSuccessButton, hideIcon: true, isAr: isAr, onClick: onSuccess }, { children: t(successTitle || 'open_mail_box') })) }))] }));
|
|
71
60
|
};
|
|
72
61
|
export default React.memo(ThankYou);
|
|
@@ -11,6 +11,6 @@ var Success = function (_a) {
|
|
|
11
11
|
dispatch(updateLeadSuccess());
|
|
12
12
|
}, []);
|
|
13
13
|
var onSuccess = function () { };
|
|
14
|
-
return _jsx(SuccessScreen, { title: t('
|
|
14
|
+
return _jsx(SuccessScreen, { title: t('tax_success_title'), onSuccess: onSuccess, successTitle: t('continue') });
|
|
15
15
|
};
|
|
16
16
|
export default React.memo(Success);
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
14
14
|
import Button from '../../../shared/Button';
|
|
15
|
-
import { useAppDispatch, useLanguage } from '../../../../hooks';
|
|
15
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
17
|
import { styled } from '@mui/material/styles';
|
|
18
18
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
@@ -21,14 +21,13 @@ import { Validation } from './validation';
|
|
|
21
21
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
22
22
|
import { taxSelector, updateTaxInfo } from '../../../app/tax/taxStore';
|
|
23
23
|
import VATId from './VATId';
|
|
24
|
-
import { useSelector } from 'react-redux';
|
|
25
24
|
var FormStyled = styled(Form)(function () { return ({
|
|
26
25
|
display: 'flex',
|
|
27
26
|
flexDirection: 'column'
|
|
28
27
|
}); });
|
|
29
28
|
var TaxDetails = function () {
|
|
30
29
|
var dispatch = useAppDispatch();
|
|
31
|
-
var _a =
|
|
30
|
+
var _a = useAppSelector(taxSelector), data = _a.data, loading = _a.loading, error = _a.error;
|
|
32
31
|
var methods = useForm({
|
|
33
32
|
resolver: yupResolver(Validation),
|
|
34
33
|
defaultValues: data.taxData,
|