@tap-payments/auth-jsconnect 1.0.71 → 1.0.76
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 +16 -7
- package/build/@types/form.d.ts +3 -3
- package/build/api/auth.d.ts +7 -0
- package/build/api/auth.js +5 -1
- package/build/api/data.d.ts +1 -0
- package/build/api/data.js +5 -1
- package/build/api/entity.d.ts +1 -0
- package/build/api/entity.js +5 -1
- package/build/api/index.d.ts +9 -2
- package/build/api/index.js +3 -1
- package/build/api/individual.d.ts +8 -0
- package/build/api/individual.js +9 -0
- package/build/assets/locales/ar.json +9 -5
- package/build/assets/locales/en.json +14 -4
- package/build/components/SimpleList/SimpleList.js +4 -4
- package/build/constants/api.d.ts +3 -0
- package/build/constants/api.js +11 -5
- package/build/constants/app.js +18 -6
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/features/app/bank/bankStore.d.ts +3 -0
- package/build/features/app/bank/bankStore.js +45 -9
- package/build/features/app/business/businessStore.d.ts +4 -5
- package/build/features/app/business/businessStore.js +106 -66
- package/build/features/app/connect/connectStore.d.ts +1 -0
- package/build/features/app/connect/connectStore.js +19 -10
- package/build/features/app/individual/individualStore.d.ts +7 -1
- package/build/features/app/individual/individualStore.js +79 -30
- package/build/features/app/password/passwordStore.d.ts +4 -0
- package/build/features/app/password/passwordStore.js +71 -15
- package/build/features/bank/screens/Success/Success.js +5 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +87 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +1 -1
- package/build/features/business/screens/Activities/validation.d.ts +24 -24
- package/build/features/business/screens/Activities/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.js +2 -2
- package/build/features/business/screens/Customers/Customers.js +4 -4
- package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +60 -33
- package/build/features/business/screens/Customers/validation.js +2 -2
- package/build/features/business/screens/Success/Success.js +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +24 -20
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -2
- package/build/features/connect/screens/Merchant/Merchant.js +9 -2
- package/build/features/connect/screens/Mobile/MobileNumber.js +11 -2
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +5 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +62 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +3 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +5 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +3 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -11
- package/build/features/individual/screens/Success/Success.js +5 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +87 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.js +9 -10
- package/build/features/password/screens/Success/Success.js +7 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -0
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -1
- package/build/features/shared/Search/Search.js +2 -14
- 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/utils/array.d.ts +1 -0
- package/build/utils/array.js +6 -0
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +7 -0
- package/package.json +1 -1
|
@@ -3,22 +3,19 @@ import { ObjectShape } from 'yup/lib/object';
|
|
|
3
3
|
import { CountryCode } from '../../../../@types';
|
|
4
4
|
export declare const IndividualInfoValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<ObjectShape, {
|
|
5
5
|
sourceIncome: import("yup/lib/object").RequiredObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
6
|
-
monthlyIncome: yup.
|
|
7
|
-
employerName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
6
|
+
monthlyIncome: import("yup/lib/object").OptionalObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
8
7
|
employerLocation: import("yup/lib/object").OptionalObjectSchema<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>>>;
|
|
9
8
|
isPEP: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
10
9
|
isInfluencer: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
11
10
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<ObjectShape, {
|
|
12
11
|
sourceIncome: import("yup/lib/object").RequiredObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
13
|
-
monthlyIncome: yup.
|
|
14
|
-
employerName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
12
|
+
monthlyIncome: import("yup/lib/object").OptionalObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
15
13
|
employerLocation: import("yup/lib/object").OptionalObjectSchema<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>>>;
|
|
16
14
|
isPEP: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
17
15
|
isInfluencer: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
18
16
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<ObjectShape, {
|
|
19
17
|
sourceIncome: import("yup/lib/object").RequiredObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
20
|
-
monthlyIncome: yup.
|
|
21
|
-
employerName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
18
|
+
monthlyIncome: import("yup/lib/object").OptionalObjectSchema<ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<ObjectShape>>;
|
|
22
19
|
employerLocation: import("yup/lib/object").OptionalObjectSchema<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<Partial<Record<keyof CountryCode, yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>>>>>;
|
|
23
20
|
isPEP: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
24
21
|
isInfluencer: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
import { REGEX_FULL_NAME } from '../../../../constants';
|
|
3
2
|
export var IndividualInfoValidationSchema = yup.object().shape({
|
|
4
3
|
sourceIncome: yup.object().required('choose_any_source_of_income'),
|
|
5
|
-
monthlyIncome: yup.
|
|
6
|
-
employerName: yup.string().when('sourceIncome', function (sourceIncomeValue) {
|
|
7
|
-
var _a;
|
|
8
|
-
if (((_a = sourceIncomeValue === null || sourceIncomeValue === void 0 ? void 0 : sourceIncomeValue.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'salary') {
|
|
9
|
-
return yup.string().matches(REGEX_FULL_NAME, 'employer_name_invalid').required('please_enter_employer_name');
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
return yup.string().optional();
|
|
13
|
-
}
|
|
14
|
-
}),
|
|
4
|
+
monthlyIncome: yup.object().optional(),
|
|
15
5
|
employerLocation: yup.object().when('sourceIncome', function (sourceIncome) {
|
|
16
6
|
var _a;
|
|
17
7
|
if (((_a = sourceIncome === null || sourceIncome === void 0 ? void 0 : sourceIncome.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'salary') {
|
|
@@ -4,13 +4,16 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { useAppDispatch } from '../../../../hooks';
|
|
5
5
|
import { updateLeadSuccess } from '../../../app/individual/individualStore';
|
|
6
6
|
import SuccessScreen from '../../../shared/SuccessScreen';
|
|
7
|
+
import { handleNextScreenStep } from '../../../../app/settings';
|
|
7
8
|
var Success = function (_a) {
|
|
8
9
|
var t = useTranslation().t;
|
|
9
10
|
var dispatch = useAppDispatch();
|
|
10
11
|
React.useEffect(function () {
|
|
11
12
|
dispatch(updateLeadSuccess());
|
|
12
13
|
}, []);
|
|
13
|
-
var onSuccess = function () {
|
|
14
|
-
|
|
14
|
+
var onSuccess = function () {
|
|
15
|
+
dispatch(handleNextScreenStep());
|
|
16
|
+
};
|
|
17
|
+
return _jsx(SuccessScreen, { title: t('individual_success_title'), onSuccess: onSuccess, successTitle: t('continue') });
|
|
15
18
|
};
|
|
16
19
|
export default React.memo(Success);
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { memo, useEffect, useState } from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
import { FlowsButtons } from '../../../shared/Button';
|
|
17
|
+
import { ICONS_NAMES } from '../../../../constants';
|
|
18
|
+
import { useAppSelector, useLanguage } from '../../../../hooks';
|
|
19
|
+
import { showLastFour } from '../../../../utils';
|
|
20
|
+
import { individualSelector } from '../../../app/individual/individualStore';
|
|
21
|
+
import Box from '@mui/material/Box';
|
|
22
|
+
import Text from '../../../../components/Text';
|
|
23
|
+
import Container from '../../../shared/Containers/ScreenContainer';
|
|
24
|
+
var TitleStyled = styled(Text)(function (_a) {
|
|
25
|
+
var theme = _a.theme;
|
|
26
|
+
return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightBold, color: theme.palette.text.primary, marginBlockEnd: theme.spacing(2.375), marginBlockStart: theme.spacing(2.875), lineHeight: 1.75, padding: '0px 20px' }));
|
|
27
|
+
});
|
|
28
|
+
var ContainerStyled = styled(Container)(function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return ({
|
|
31
|
+
justifyContent: 'space-between',
|
|
32
|
+
minHeight: theme.spacing(30),
|
|
33
|
+
alignItems: 'center'
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
var ButtonGroupStyled = styled(Box)(function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return ({
|
|
39
|
+
width: '100%'
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
var SuccessWithFlowButtons = function () {
|
|
43
|
+
var _a;
|
|
44
|
+
var t = useTranslation().t;
|
|
45
|
+
var isAr = useLanguage().isAr;
|
|
46
|
+
var data = useAppSelector(individualSelector).data;
|
|
47
|
+
var _b = data.verify.responseBody || {}, flows = _b.flows, nameObj = _b.name, entity = _b.entity, businessType = _b.business_type, bank = _b.bank, tax = _b.tax_id;
|
|
48
|
+
var _c = useState([]), buttons = _c[0], setButtons = _c[1];
|
|
49
|
+
var username = ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.first) || '') + ' ' + ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.last) || '');
|
|
50
|
+
var licenseNumber = ((_a = entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
|
|
51
|
+
var bankName = (bank === null || bank === void 0 ? void 0 : bank.name) || '';
|
|
52
|
+
var iban = (bank === null || bank === void 0 ? void 0 : bank.name) || '';
|
|
53
|
+
var taxID = tax || '';
|
|
54
|
+
var reMapFlowData = function (flows) {
|
|
55
|
+
if (flows === void 0) { flows = []; }
|
|
56
|
+
var images = ICONS_NAMES;
|
|
57
|
+
var mappedFlows = flows.map(function (_a) {
|
|
58
|
+
var name = _a.name, url = _a.url, status = _a.status;
|
|
59
|
+
var type = status === 'initiated' ? 'pending' : 'completed';
|
|
60
|
+
var title = t("".concat(name, "_flow_").concat(type), {
|
|
61
|
+
individual_name: username,
|
|
62
|
+
business_type: businessType,
|
|
63
|
+
license_number: t('masking_symbols') + showLastFour(licenseNumber),
|
|
64
|
+
bank_name: bankName,
|
|
65
|
+
iban: t('masking_symbols') + iban,
|
|
66
|
+
tax_id: t('masking_symbols') + taxID
|
|
67
|
+
});
|
|
68
|
+
var isCompleted = status === 'completed' && name !== 'password';
|
|
69
|
+
var src = isCompleted ? "".concat(name, "_green_icon") : "".concat(name, "_filled_icon");
|
|
70
|
+
var hoverSrc = "".concat(name, "_white_icon");
|
|
71
|
+
return {
|
|
72
|
+
title: title,
|
|
73
|
+
href: url,
|
|
74
|
+
src: images[src],
|
|
75
|
+
hoverSrc: images[hoverSrc],
|
|
76
|
+
isCompleted: isCompleted
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
setButtons(mappedFlows);
|
|
80
|
+
};
|
|
81
|
+
useEffect(function () {
|
|
82
|
+
if ((flows === null || flows === void 0 ? void 0 : flows.length) > 0)
|
|
83
|
+
reMapFlowData(flows);
|
|
84
|
+
}, [flows, isAr]);
|
|
85
|
+
return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons }) })] }));
|
|
86
|
+
};
|
|
87
|
+
export default memo(SuccessWithFlowButtons);
|
|
@@ -17,13 +17,14 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
17
17
|
import Box from '@mui/material/Box';
|
|
18
18
|
import { styled } from '@mui/material/styles';
|
|
19
19
|
import { useAppDispatch } from '../../../../hooks';
|
|
20
|
-
import { handleNextScreenStep } from '../../../../app/settings';
|
|
21
20
|
import Form from '../../../../components/Form';
|
|
22
21
|
import { useLanguage } from '../../../../hooks';
|
|
23
22
|
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
24
23
|
import Button from '../../../shared/Button';
|
|
25
24
|
import { PasswordValidation } from './validation';
|
|
26
25
|
import Password from './Password';
|
|
26
|
+
import { createPassword, passwordSelector } from '../../../app/password/passwordStore';
|
|
27
|
+
import { useSelector } from 'react-redux';
|
|
27
28
|
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
28
29
|
var theme = _a.theme;
|
|
29
30
|
return ({
|
|
@@ -31,20 +32,18 @@ var InputsContainerStyled = styled(Box)(function (_a) {
|
|
|
31
32
|
});
|
|
32
33
|
});
|
|
33
34
|
var CreatePassword = function (_a) {
|
|
35
|
+
var t = useTranslation().t;
|
|
36
|
+
var isAr = useLanguage().isAr;
|
|
37
|
+
var dispatch = useAppDispatch();
|
|
38
|
+
var _b = useSelector(passwordSelector), data = _b.data, loading = _b.loading, error = _b.error;
|
|
34
39
|
var methods = useForm({
|
|
35
40
|
resolver: yupResolver(PasswordValidation),
|
|
36
|
-
defaultValues:
|
|
37
|
-
password: '',
|
|
38
|
-
confirmPassword: ''
|
|
39
|
-
},
|
|
41
|
+
defaultValues: data.passwordData,
|
|
40
42
|
mode: 'onChange'
|
|
41
43
|
});
|
|
42
|
-
var t = useTranslation().t;
|
|
43
|
-
var isAr = useLanguage().isAr;
|
|
44
|
-
var dispatch = useAppDispatch();
|
|
45
44
|
var onSubmit = function (data) {
|
|
46
|
-
dispatch(
|
|
45
|
+
dispatch(createPassword(data));
|
|
47
46
|
};
|
|
48
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(InputsContainerStyled, { children: _jsx(Password, {}) }), _jsx(Button, __assign({ disableBack: true, isAr: isAr, disabled: !methods.formState.isValid, loading:
|
|
47
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(InputsContainerStyled, { children: _jsx(Password, {}) }), _jsx(Button, __assign({ disableBack: true, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) }));
|
|
49
48
|
};
|
|
50
49
|
export default React.memo(CreatePassword);
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { useAppDispatch } from '../../../../hooks';
|
|
5
|
+
import { updateLeadSuccess } from '../../../app/password/passwordStore';
|
|
4
6
|
import SuccessScreen from '../../../shared/SuccessScreen';
|
|
5
7
|
var Success = function (_a) {
|
|
6
8
|
var t = useTranslation().t;
|
|
9
|
+
var dispatch = useAppDispatch();
|
|
10
|
+
React.useEffect(function () {
|
|
11
|
+
dispatch(updateLeadSuccess());
|
|
12
|
+
}, []);
|
|
7
13
|
var onSuccess = function () { };
|
|
8
|
-
return _jsx(SuccessScreen, { title: t('
|
|
14
|
+
return _jsx(SuccessScreen, { title: t('password_success_title'), onSuccess: onSuccess, successTitle: t('continue') });
|
|
9
15
|
};
|
|
10
16
|
export default React.memo(Success);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from '../../../components/Button';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
4
|
export declare type ButtonItemProps = {
|
|
4
5
|
title: string;
|
|
5
6
|
href: string;
|
|
6
7
|
src: string;
|
|
7
8
|
hoverSrc: string;
|
|
8
9
|
isCompleted: boolean;
|
|
10
|
+
sx?: SxProps<Theme> | undefined;
|
|
9
11
|
};
|
|
10
12
|
export interface EmailProvidersButtonsProps extends ButtonProps {
|
|
11
13
|
buttons: ButtonItemProps[];
|
|
@@ -62,13 +62,13 @@ export default function FlowsButtons(_a) {
|
|
|
62
62
|
var buttons = _a.buttons;
|
|
63
63
|
var _b = React.useState(), index = _b[0], setIndex = _b[1];
|
|
64
64
|
return (_jsx(ButtonBoxStyled, { children: buttons.map(function (_a, idx) {
|
|
65
|
-
var title = _a.title, href = _a.href, src = _a.src, hoverSrc = _a.hoverSrc, isCompleted = _a.isCompleted;
|
|
65
|
+
var title = _a.title, href = _a.href, src = _a.src, hoverSrc = _a.hoverSrc, isCompleted = _a.isCompleted, sx = _a.sx;
|
|
66
66
|
var isLast = idx === buttons.length - 1;
|
|
67
67
|
var linkProps = {
|
|
68
68
|
href: href,
|
|
69
69
|
target: '_blank'
|
|
70
70
|
};
|
|
71
71
|
return (_createElement(Link, __assign({}, (!isCompleted && linkProps), { underline: 'none', key: idx, onMouseEnter: function () { return !isCompleted && setIndex(idx); }, onMouseLeave: function () { return setIndex(undefined); } }),
|
|
72
|
-
_jsx(ButtonStyled, __assign({ isCompleted: isCompleted, sx: { mb: isLast ? 0 : 1.8 }, endIcon: isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsx(Image, { sx: { height: 15 }, src: index === idx ? ICONS_NAMES.Arrow_white_right_icon : ICONS_NAMES.Arrow_filled_right_icon })), startIcon: _jsx(Image, { src: index === idx ? hoverSrc : src, alt: title }), type: 'button' }, { children: title }))));
|
|
72
|
+
_jsx(ButtonStyled, __assign({ isCompleted: isCompleted, sx: __assign({ mb: isLast ? 0 : 1.8 }, sx), endIcon: isCompleted ? (_jsx(CheckIconStyled, {})) : (_jsx(Image, { sx: { height: 15 }, src: index === idx ? ICONS_NAMES.Arrow_white_right_icon : ICONS_NAMES.Arrow_filled_right_icon })), startIcon: _jsx(Image, { src: index === idx ? hoverSrc : src, alt: title }), type: 'button' }, { children: title }))));
|
|
73
73
|
}) }));
|
|
74
74
|
}
|
|
@@ -13,7 +13,7 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
|
|
|
13
13
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
14
14
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
15
15
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
16
|
-
export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "
|
|
16
|
+
export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
|
|
17
17
|
placeholder?: string | undefined;
|
|
18
18
|
hide?: boolean | undefined;
|
|
19
19
|
warningType?: "alert" | "error" | "hint" | undefined;
|
|
@@ -3,5 +3,5 @@ interface SearchProps {
|
|
|
3
3
|
showSearch?: boolean;
|
|
4
4
|
onSearchValue?: (value: string) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const Search: ({ onSearchValue
|
|
6
|
+
declare const Search: ({ onSearchValue }: SearchProps) => JSX.Element;
|
|
7
7
|
export default Search;
|
|
@@ -1,25 +1,13 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import * as React from 'react';
|
|
14
3
|
import { useTranslation } from 'react-i18next';
|
|
15
4
|
import Input from '../../shared/Input';
|
|
16
|
-
import Collapse from '../../../components/Collapse';
|
|
17
5
|
var Search = function (_a) {
|
|
18
|
-
var onSearchValue = _a.onSearchValue
|
|
6
|
+
var onSearchValue = _a.onSearchValue;
|
|
19
7
|
var t = useTranslation().t;
|
|
20
8
|
var handleOnChange = function (event) {
|
|
21
9
|
onSearchValue === null || onSearchValue === void 0 ? void 0 : onSearchValue(event.target.value);
|
|
22
10
|
};
|
|
23
|
-
return (_jsx(React.Fragment, { children: _jsx(
|
|
11
|
+
return (_jsx(React.Fragment, { children: _jsx(Input, { placeholder: t('search_placeholder'), onChange: handleOnChange }) }));
|
|
24
12
|
};
|
|
25
13
|
export default Search;
|
|
@@ -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);
|
package/build/utils/array.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare const removeArrayItem: (items: Array<string>, item: string) => st
|
|
|
6
6
|
export declare const splitString: (string: string, splitter?: string) => string[];
|
|
7
7
|
export declare const isInclude: (items: Array<string | number>, item: any) => boolean;
|
|
8
8
|
export declare const findItem: (items: Array<string | number>, key: any) => string | number | undefined;
|
|
9
|
+
export declare const isExist: (items: Array<any>, id: string) => any;
|
package/build/utils/array.js
CHANGED
|
@@ -36,3 +36,9 @@ export var isInclude = function (items, item) {
|
|
|
36
36
|
export var findItem = function (items, key) {
|
|
37
37
|
return items.find(function (item) { return item === key; });
|
|
38
38
|
};
|
|
39
|
+
export var isExist = function (items, id) {
|
|
40
|
+
return items.find(function (_a) {
|
|
41
|
+
var sub = _a.sub;
|
|
42
|
+
return sub === null || sub === void 0 ? void 0 : sub.some(function (item) { return item.id === id; });
|
|
43
|
+
});
|
|
44
|
+
};
|
package/build/utils/string.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DeviceInfo } from '../@types';
|
|
2
2
|
export declare const maskPhone: (str?: string) => string;
|
|
3
3
|
export declare const maskID: (str: string) => string;
|
|
4
|
+
export declare const showLastFour: (str: string) => string;
|
|
4
5
|
export declare const getIndividualName: (name: string) => {
|
|
5
6
|
first: string;
|
|
6
7
|
middle: string;
|
package/build/utils/string.js
CHANGED
|
@@ -9,6 +9,13 @@ export var maskID = function (str) {
|
|
|
9
9
|
var lastTwo = str.substring(str.length - 2, str.length);
|
|
10
10
|
return ' ••••' + lastTwo;
|
|
11
11
|
};
|
|
12
|
+
export var showLastFour = function (str) {
|
|
13
|
+
if (str && str.length >= 4) {
|
|
14
|
+
var lastFour = str.substring(str.length - 4, str.length);
|
|
15
|
+
return lastFour;
|
|
16
|
+
}
|
|
17
|
+
return str;
|
|
18
|
+
};
|
|
12
19
|
export var getIndividualName = function (name) {
|
|
13
20
|
var _a;
|
|
14
21
|
var nameArray = (name === null || name === void 0 ? void 0 : name.split(' ')) || [];
|