@tap-payments/auth-jsconnect 1.0.10 → 1.0.14
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 +5 -0
- package/build/assets/locales/ar.json +190 -72
- package/build/assets/locales/en.json +207 -75
- package/build/components/AnimationFlow/Dialog.js +12 -1
- package/build/components/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +8 -5
- package/build/components/Loader/Loader.js +2 -2
- package/build/components/Radio/Radio.d.ts +5 -0
- package/build/components/Radio/Radio.js +31 -0
- package/build/components/Radio/index.d.ts +3 -0
- package/build/components/Radio/index.js +2 -0
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/build/components/RadioGroup/RadioGroup.js +41 -0
- package/build/components/RadioGroup/index.d.ts +3 -0
- package/build/components/RadioGroup/index.js +2 -0
- package/build/components/RadioLabel/RadioLabel.d.ts +7 -0
- package/build/components/RadioLabel/RadioLabel.js +34 -0
- package/build/components/RadioLabel/index.d.ts +3 -0
- package/build/components/RadioLabel/index.js +2 -0
- package/build/constants/app.js +19 -7
- package/build/constants/dummy.d.ts +5 -0
- package/build/constants/dummy.js +8 -0
- package/build/features/bank/Bank.js +1 -1
- package/build/features/bank/screens/BankDetails/BankName.js +1 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.js +3 -3
- package/build/features/bank/screens/BankDetails/IBAN.js +3 -3
- package/build/features/bank/screens/BankDetails/validation.js +8 -3
- package/build/features/bank/screens/Success/Success.d.ts +5 -0
- package/build/features/bank/screens/Success/Success.js +14 -0
- package/build/features/bank/screens/Success/index.d.ts +3 -0
- package/build/features/bank/screens/Success/index.js +2 -0
- package/build/features/business/Business.js +1 -1
- package/build/features/business/screens/Activities/Activities.js +14 -40
- package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +6 -0
- package/build/features/business/screens/Activities/OperationStartDate.js +31 -0
- package/build/features/business/screens/Activities/SalesChannels.js +3 -10
- package/build/features/business/screens/Activities/validation.d.ts +3 -0
- package/build/features/business/screens/Activities/validation.js +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -2
- package/build/features/business/screens/BusinessType/CRNumber.js +1 -1
- package/build/features/business/screens/BusinessType/CompanyLicense.js +1 -1
- package/build/features/business/screens/BusinessType/FLNumber.js +1 -1
- package/build/features/business/screens/BusinessType/FreelanceLicense.js +1 -1
- package/build/features/business/screens/BusinessType/SelectType.js +1 -1
- package/build/features/business/screens/Confirm/Confirm.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.js +1 -1
- package/build/features/business/screens/Customers/Customers.js +5 -41
- package/build/features/business/screens/Customers/ExpectedCustomers.js +4 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +5 -6
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +0 -8
- package/build/features/business/screens/Customers/RefundPolicy.js +2 -10
- package/build/features/business/screens/Customers/TransactionPolicy.js +3 -2
- package/build/features/business/screens/Customers/validation.d.ts +6 -6
- package/build/features/business/screens/Customers/validation.js +10 -5
- package/build/features/business/screens/IDBOD/DOB.d.ts +2 -1
- package/build/features/business/screens/IDBOD/DOB.js +4 -1
- package/build/features/business/screens/IDBOD/ID.js +7 -48
- package/build/features/business/screens/IDBOD/IDBOD.js +9 -41
- package/build/features/business/screens/IDBOD/validation.js +6 -2
- package/build/features/business/screens/OTP/OTP.js +18 -58
- package/build/features/business/screens/OTP/OTPInput.js +8 -21
- package/build/features/business/screens/Success/Success.js +1 -2
- package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +1 -2
- package/build/features/business/screens/VerifyNumber/OTPInput.js +12 -42
- package/build/features/business/screens/VerifyNumber/VerifyNumber.js +20 -66
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/Individual/Email.js +7 -1
- package/build/features/connect/screens/Individual/Individual.js +0 -28
- package/build/features/connect/screens/Individual/Name.js +9 -3
- package/build/features/connect/screens/Individual/validation.js +5 -2
- package/build/features/connect/screens/MID/BusinessCountry.js +4 -4
- package/build/features/connect/screens/MID/IDNumber.js +9 -6
- package/build/features/connect/screens/MID/MID.js +2 -2
- package/build/features/connect/screens/MID/MobileNumber.js +13 -15
- package/build/features/connect/screens/MID/validation.d.ts +1 -1
- package/build/features/connect/screens/MID/validation.js +11 -5
- package/build/features/connect/screens/Merchant/BrandName.js +5 -3
- package/build/features/connect/screens/Merchant/SocialMedia.js +6 -1
- package/build/features/connect/screens/Merchant/TAC.js +2 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +9 -9
- package/build/features/connect/screens/Merchant/validation.js +42 -11
- package/build/features/connect/screens/OTP/OTP.js +4 -3
- package/build/features/connect/screens/OTP/OTPInput.js +1 -1
- package/build/features/connect/screens/OTP/validation.js +1 -1
- package/build/features/connect/screens/Password/PasswordInput.js +2 -1
- package/build/features/connect/screens/Password/validation.js +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -2
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +32 -7
- package/build/features/owner/Owner.js +1 -1
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.d.ts +8 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.js +77 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.d.ts +10 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.js +80 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.js +40 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.js +45 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.js +35 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.js +45 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.d.ts +9 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.js +85 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/index.d.ts +3 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/index.js +2 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.d.ts +25 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.js +35 -0
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +2 -2
- package/build/features/owner/screens/Success/Success.d.ts +5 -0
- package/build/features/owner/screens/Success/Success.js +14 -0
- package/build/features/owner/screens/Success/index.d.ts +3 -0
- package/build/features/owner/screens/Success/index.js +2 -0
- package/build/features/password/Password.js +3 -3
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +2 -1
- package/build/features/password/screens/CreatePassword/Password.js +2 -1
- package/build/features/password/screens/CreatePassword/validation.js +3 -3
- package/build/features/password/screens/Success/Success.d.ts +5 -0
- package/build/features/password/screens/Success/Success.js +14 -0
- package/build/features/password/screens/Success/index.d.ts +3 -0
- package/build/features/password/screens/Success/index.js +2 -0
- package/build/features/shared/Button/Button.js +7 -1
- package/build/features/shared/ExpandIcon/ExpandIcon.js +1 -1
- package/build/features/shared/Input/Input.d.ts +0 -1
- package/build/features/shared/Input/Input.js +2 -5
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -0
- package/build/features/shared/Mandatory/Mandatory.js +20 -0
- package/build/features/shared/Mandatory/index.d.ts +2 -0
- package/build/features/shared/Mandatory/index.js +2 -0
- package/build/features/shared/OTP/OTP.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +5 -0
- package/build/features/tax/screens/Success/Success.js +14 -0
- package/build/features/tax/screens/Success/index.d.ts +3 -0
- package/build/features/tax/screens/Success/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +3 -4
- package/build/features/tax/screens/TaxDetails/validation.js +1 -1
- package/build/index.css +105 -3
- package/build/theme/typography.js +2 -2
- package/build/utils/string.js +2 -2
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +6 -0
- package/package.json +1 -1
- package/build/features/business/screens/OTP/OTPTimer.d.ts +0 -5
- package/build/features/business/screens/OTP/OTPTimer.js +0 -20
- package/build/features/business/screens/VerifyNumber/OTPTimer.d.ts +0 -5
- package/build/features/business/screens/VerifyNumber/OTPTimer.js +0 -20
|
@@ -33,19 +33,19 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
|
33
33
|
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
34
34
|
import { scrollDown, scrollUp } from '../../utils';
|
|
35
35
|
import Input from '../Input';
|
|
36
|
-
import './customStyle.css';
|
|
37
36
|
import Text from '../Text';
|
|
37
|
+
import './customStyle.css';
|
|
38
38
|
var ContainerIcon = styled(CalendarTodayOutlined)(function (_a) {
|
|
39
39
|
var theme = _a.theme;
|
|
40
|
-
return (__assign(__assign({
|
|
40
|
+
return (__assign(__assign({ marginInlineStart: theme.spacing(2.5) }, theme.typography.h6), { cursor: 'pointer', width: theme.spacing(2.5), height: theme.spacing(2.5) }));
|
|
41
41
|
});
|
|
42
42
|
var ExpandMore = styled(ExpandMoreIcon)(function (_a) {
|
|
43
43
|
var theme = _a.theme;
|
|
44
|
-
return (__assign(__assign({
|
|
44
|
+
return (__assign(__assign({ marginInlineEnd: theme.spacing(2) }, theme.typography.h6), { display: 'flex', width: theme.spacing(2.5), height: theme.spacing(2.5) }));
|
|
45
45
|
});
|
|
46
46
|
var ExpandLess = styled(ExpandLessIcon)(function (_a) {
|
|
47
47
|
var theme = _a.theme;
|
|
48
|
-
return (__assign(__assign({
|
|
48
|
+
return (__assign(__assign({ marginInlineEnd: theme.spacing(2) }, theme.typography.h6), { display: 'flex', width: theme.spacing(2.5), height: theme.spacing(2.5) }));
|
|
49
49
|
});
|
|
50
50
|
var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
|
|
51
51
|
var theme = _a.theme, disabled = _a.disabled;
|
|
@@ -71,7 +71,7 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
|
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
var DatePicker = function (_a) {
|
|
74
|
-
var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, dir = _a.dir, defaultValue = _a.defaultValue, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "dir", "defaultValue"]);
|
|
74
|
+
var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue"]);
|
|
75
75
|
var _b = useState(), date = _b[0], setDate = _b[1];
|
|
76
76
|
var _c = React.useState(null), anchor = _c[0], setAnchor = _c[1];
|
|
77
77
|
useEffect(function () {
|
|
@@ -87,11 +87,13 @@ var DatePicker = function (_a) {
|
|
|
87
87
|
var toggleCalender = function (event) {
|
|
88
88
|
var elementId = 'animation-flow-template-content';
|
|
89
89
|
if (anchor) {
|
|
90
|
+
onDatePicked === null || onDatePicked === void 0 ? void 0 : onDatePicked();
|
|
90
91
|
setTimeout(function () { return scrollDown(elementId); }, 500);
|
|
91
92
|
return setAnchor(null);
|
|
92
93
|
}
|
|
93
94
|
setAnchor(event.currentTarget);
|
|
94
95
|
setTimeout(function () { return scrollUp(elementId); }, 550);
|
|
96
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
95
97
|
};
|
|
96
98
|
var formattedDate = function (date) {
|
|
97
99
|
return new Date(date).toLocaleDateString('en-CA');
|
|
@@ -100,6 +102,7 @@ var DatePicker = function (_a) {
|
|
|
100
102
|
setDate(date);
|
|
101
103
|
onDateChange === null || onDateChange === void 0 ? void 0 : onDateChange(formattedDate(date));
|
|
102
104
|
setAnchor(null);
|
|
105
|
+
onDatePicked === null || onDatePicked === void 0 ? void 0 : onDatePicked();
|
|
103
106
|
};
|
|
104
107
|
return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: disabled ? '' : arrowIcon })), value: date ? formattedDate(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
|
|
105
108
|
if (!disabled)
|
|
@@ -20,8 +20,8 @@ var RootStyled = styled('div')(function () { return ({
|
|
|
20
20
|
},
|
|
21
21
|
position: 'relative',
|
|
22
22
|
margin: '0px auto',
|
|
23
|
-
width: '
|
|
24
|
-
height: '
|
|
23
|
+
width: '38px',
|
|
24
|
+
height: '38px'
|
|
25
25
|
}); });
|
|
26
26
|
var LoaderBoxStyled = styled('svg')(function (_a) {
|
|
27
27
|
var size = _a.size;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { styled } from '@mui/material/styles';
|
|
15
|
+
import Radio from '@mui/material/Radio';
|
|
16
|
+
var RadioStyled = styled(Radio)(function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return (__assign(__assign({ padding: theme.spacing(0), height: theme.spacing(4.375), width: theme.spacing(4.375) }, theme.typography.caption), { fontWeight: theme.typography.fontWeightMedium, fontStretch: 'normal', fontStyle: 'normal', letterSpacing: 'normal', color: theme.palette.secondary.dark, '& .MuiSvgIcon-root': {
|
|
19
|
+
fontSize: theme.spacing(3),
|
|
20
|
+
width: theme.spacing(3),
|
|
21
|
+
height: theme.spacing(3)
|
|
22
|
+
}, '&.MuiRadio-colorPrimary': {
|
|
23
|
+
'&.Mui-checked': {
|
|
24
|
+
color: theme.palette.success.dark
|
|
25
|
+
}
|
|
26
|
+
} }));
|
|
27
|
+
});
|
|
28
|
+
var RadioComponent = function (props) {
|
|
29
|
+
return (_jsx(RadioStyled, __assign({ color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }, props)));
|
|
30
|
+
};
|
|
31
|
+
export default React.memo(RadioComponent);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import * as React from 'react';
|
|
25
|
+
import { styled } from '@mui/material/styles';
|
|
26
|
+
import RadioGroup from '@mui/material/RadioGroup';
|
|
27
|
+
var RadioGroupStyled = styled(RadioGroup)(function (_a) {
|
|
28
|
+
var theme = _a.theme;
|
|
29
|
+
return ({
|
|
30
|
+
width: '100%',
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
display: 'flex',
|
|
33
|
+
direction: theme.direction,
|
|
34
|
+
marginInlineStart: theme.spacing(0.25)
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
var RadioGroupComponent = function (_a) {
|
|
38
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
39
|
+
return _jsx(RadioGroupStyled, __assign({}, props, { children: children }));
|
|
40
|
+
};
|
|
41
|
+
export default React.memo(RadioGroupComponent);
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { styled, alpha } from '@mui/material/styles';
|
|
16
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
17
|
+
import Radio from '../Radio';
|
|
18
|
+
var RadioLabelStyled = styled(FormControlLabel)(function (_a) {
|
|
19
|
+
var theme = _a.theme;
|
|
20
|
+
return ({
|
|
21
|
+
width: 'unset',
|
|
22
|
+
direction: theme.direction,
|
|
23
|
+
paddingInlineEnd: theme.spacing(0.625),
|
|
24
|
+
marginLeft: theme.direction === 'rtl' ? theme.spacing(2) : theme.spacing(-1.375),
|
|
25
|
+
marginRight: theme.direction === 'rtl' ? theme.spacing(-1.375) : theme.spacing(2),
|
|
26
|
+
'& .MuiFormControlLabel-label': __assign({ color: alpha(theme.palette.text.primary, 0.8) }, theme.typography.body2)
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
var RadioLabel = function (_a) {
|
|
30
|
+
var label = _a.label, value = _a.value;
|
|
31
|
+
var t = useTranslation().t;
|
|
32
|
+
return (_jsx(RadioLabelStyled, { value: value, control: _jsx(Radio, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }), label: t(label) }));
|
|
33
|
+
};
|
|
34
|
+
export default React.memo(RadioLabel);
|
package/build/constants/app.js
CHANGED
|
@@ -107,22 +107,34 @@ export var OWNER_SCREENS_NAVIGATION = [
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
name: 'OWNER_ADDITIONAL_OWNER_INFO_STEP',
|
|
110
|
-
next: '',
|
|
110
|
+
next: 'OWNER_SUCCESS_STEP',
|
|
111
111
|
prev: 'OWNER_SHOW_OWNER_INFO_STEP',
|
|
112
112
|
order: 2
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'OWNER_SUCCESS_STEP',
|
|
116
|
+
next: '',
|
|
117
|
+
prev: 'OWNER_ADDITIONAL_OWNER_INFO_STEP',
|
|
118
|
+
order: 2
|
|
113
119
|
}
|
|
114
120
|
];
|
|
115
121
|
export var PASSWORD_SCREENS_NAVIGATION = [
|
|
116
122
|
{
|
|
117
|
-
name: '
|
|
118
|
-
next: '',
|
|
123
|
+
name: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
124
|
+
next: 'PASSWORD_SUCCESS_STEP',
|
|
119
125
|
prev: '',
|
|
120
126
|
order: 1
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'PASSWORD_SUCCESS_STEP',
|
|
130
|
+
next: '',
|
|
131
|
+
prev: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
132
|
+
order: 2
|
|
121
133
|
}
|
|
122
134
|
];
|
|
123
135
|
export var BANK_SCREENS_NAVIGATION = [
|
|
124
136
|
{
|
|
125
|
-
name: '
|
|
137
|
+
name: 'BANK_BANK_DETAILS_STEP',
|
|
126
138
|
next: 'BANK_DETAILS_SUCCESS_STEP',
|
|
127
139
|
prev: '',
|
|
128
140
|
order: 1
|
|
@@ -130,13 +142,13 @@ export var BANK_SCREENS_NAVIGATION = [
|
|
|
130
142
|
{
|
|
131
143
|
name: 'BANK_DETAILS_SUCCESS_STEP',
|
|
132
144
|
next: '',
|
|
133
|
-
prev: '
|
|
145
|
+
prev: 'BANK_BANK_DETAILS_STEP',
|
|
134
146
|
order: 2
|
|
135
147
|
}
|
|
136
148
|
];
|
|
137
149
|
export var TAX_SCREENS_NAVIGATION = [
|
|
138
150
|
{
|
|
139
|
-
name: '
|
|
151
|
+
name: 'TAX_TAX_DETAILS_STEP',
|
|
140
152
|
next: 'TAX_DETAILS_SUCCESS_STEP',
|
|
141
153
|
prev: '',
|
|
142
154
|
order: 1
|
|
@@ -144,7 +156,7 @@ export var TAX_SCREENS_NAVIGATION = [
|
|
|
144
156
|
{
|
|
145
157
|
name: 'TAX_DETAILS_SUCCESS_STEP',
|
|
146
158
|
next: '',
|
|
147
|
-
prev: '
|
|
159
|
+
prev: 'TAX_TAX_DETAILS_STEP',
|
|
148
160
|
order: 2
|
|
149
161
|
}
|
|
150
162
|
];
|
package/build/constants/dummy.js
CHANGED
|
@@ -6424,3 +6424,11 @@ export var SALES_CHANNELS = [
|
|
|
6424
6424
|
{ id: 4, nameEn: 'Social Media', name: 'مواقع تواصل اجتماعي' },
|
|
6425
6425
|
{ id: 5, nameEn: 'Call Center', name: 'مركز اتصال' }
|
|
6426
6426
|
];
|
|
6427
|
+
export var SOURCE_OF_INCOME = [
|
|
6428
|
+
{ id: 1, name: 'راتب', nameEn: 'Salary' },
|
|
6429
|
+
{ id: 2, name: 'تمويل', nameEn: 'Investment' },
|
|
6430
|
+
{ id: 3, name: 'ورث', nameEn: 'Inheritance / inherit' },
|
|
6431
|
+
{ id: 4, name: 'اسهم', nameEn: 'Stocks' },
|
|
6432
|
+
{ id: 5, name: 'تجارة', nameEn: 'Trading' },
|
|
6433
|
+
{ id: 6, name: 'غير ذلك', nameEn: 'Other' }
|
|
6434
|
+
];
|
|
@@ -34,7 +34,7 @@ var Bank = memo(function (props) {
|
|
|
34
34
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: bankFeatureScreens.map(function (_a, index) {
|
|
35
35
|
var Element = _a.element, name = _a.name;
|
|
36
36
|
var isActive = activeScreen.name === name;
|
|
37
|
-
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter:
|
|
37
|
+
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
38
38
|
}) }) })) })));
|
|
39
39
|
});
|
|
40
40
|
export function BankLib(props) {
|
|
@@ -22,6 +22,6 @@ var BankName = function () {
|
|
|
22
22
|
var clearValue = function () {
|
|
23
23
|
bankNameControl.field.onChange('');
|
|
24
24
|
};
|
|
25
|
-
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('
|
|
25
|
+
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('enter_bank_name'), placeholder: t('enter_bank_name_placeholder'), value: bankNameValue, required: true, endAdornment: !hasError && bankNameValue ? _jsx(CheckIcon, {}) : bankNameValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
|
|
26
26
|
};
|
|
27
27
|
export default BankName;
|
|
@@ -14,13 +14,13 @@ var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
var Beneficiary = function () {
|
|
17
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
18
18
|
var t = useTranslation().t;
|
|
19
19
|
var control = useFormContext().control;
|
|
20
20
|
var beneficiaryControl = useController({ name: 'beneficiaryName', control: control });
|
|
21
21
|
var beneficiaryValue = beneficiaryControl.field.value;
|
|
22
22
|
var hasError = (_a = beneficiaryControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
|
|
23
|
-
var
|
|
23
|
+
var error = (_b = beneficiaryControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
24
24
|
var handleBeneficiaryChange = function (_a) {
|
|
25
25
|
var target = _a.target;
|
|
26
26
|
var value = keepLettersAndSpace(target.value);
|
|
@@ -29,6 +29,6 @@ var Beneficiary = function () {
|
|
|
29
29
|
var clearValue = function () {
|
|
30
30
|
beneficiaryControl.field.onChange('');
|
|
31
31
|
};
|
|
32
|
-
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('
|
|
32
|
+
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('beneficiary_name'), onChange: handleBeneficiaryChange, value: beneficiaryValue, placeholder: t('beneficiary_name'), warningType: 'alert', warningMessage: error && t(error), required: true, endAdornment: !hasError && beneficiaryValue ? _jsx(CheckIcon, {}) : beneficiaryValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
|
|
33
33
|
};
|
|
34
34
|
export default Beneficiary;
|
|
@@ -15,13 +15,13 @@ var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
var IBAN = function () {
|
|
18
|
-
var _a;
|
|
18
|
+
var _a, _b;
|
|
19
19
|
var t = useTranslation().t;
|
|
20
20
|
var control = useFormContext().control;
|
|
21
21
|
var ibanControl = useController({ name: 'iban', control: control });
|
|
22
22
|
var ibanValue = ibanControl.field.value;
|
|
23
23
|
var hasError = !!((_a = ibanControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message);
|
|
24
|
-
var
|
|
24
|
+
var error = (_b = ibanControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
25
25
|
var handleIbanChange = function (_a) {
|
|
26
26
|
var target = _a.target;
|
|
27
27
|
var value = removeAllOtherThanCharsAndNumber(target.value);
|
|
@@ -30,6 +30,6 @@ var IBAN = function () {
|
|
|
30
30
|
var clearValue = function () {
|
|
31
31
|
ibanControl.field.onChange('');
|
|
32
32
|
};
|
|
33
|
-
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('
|
|
33
|
+
return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('enter_iban'), inputProps: { maxLength: MAX_IBAN_VALUE }, onChange: handleIbanChange, value: ibanValue, placeholder: t('enter_iban_placeholder'), warningType: 'alert', warningMessage: error && t(error), required: true, endAdornment: !hasError && ibanValue ? _jsx(CheckIcon, {}) : ibanValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
|
|
34
34
|
};
|
|
35
35
|
export default IBAN;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
export var BankValidation = yup.object().shape({
|
|
3
|
-
iban: yup
|
|
4
|
-
|
|
3
|
+
iban: yup
|
|
4
|
+
.string()
|
|
5
|
+
.matches(/^[a-zA-Z]{2}\d{14,}$/g)
|
|
6
|
+
.min(16)
|
|
7
|
+
.max(34)
|
|
8
|
+
.required('alert_iban'),
|
|
9
|
+
bankName: yup.string().required('bank_name_required'),
|
|
5
10
|
beneficiaryName: yup
|
|
6
11
|
.string()
|
|
7
12
|
.matches(/^([a-zA-Z0-9]+\s{1}[a-zA-Z0-9]{2,}|[a-zA-Z0-9]+\s{1}[a-zA-Z0-9]{1,}\s{1}[a-zA-Z0-9]{2,})$/g)
|
|
8
|
-
.required('')
|
|
13
|
+
.required('beneficiary_name_required')
|
|
9
14
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import SuccessScreen from '../../../shared/SuccessScreen';
|
|
5
|
+
var Success = function (_a) {
|
|
6
|
+
var t = useTranslation().t;
|
|
7
|
+
var onSuccess = function () {
|
|
8
|
+
console.log('success');
|
|
9
|
+
alert('Account created successfully, please check your email');
|
|
10
|
+
alert("It's a fake message, plz wait us to integrate with the backend. <A.Sharkawy>");
|
|
11
|
+
};
|
|
12
|
+
return _jsx(SuccessScreen, { title: t('ide_successfully_updated_message'), onSuccess: onSuccess });
|
|
13
|
+
};
|
|
14
|
+
export default React.memo(Success);
|
|
@@ -47,7 +47,7 @@ var Business = memo(function (props) {
|
|
|
47
47
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(Container, { children: businessFeatureScreens.map(function (_a, index) {
|
|
48
48
|
var Element = _a.element, name = _a.name;
|
|
49
49
|
var isActive = activeScreen.name === name;
|
|
50
|
-
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter:
|
|
50
|
+
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
51
51
|
}) }) })) })));
|
|
52
52
|
});
|
|
53
53
|
export function BusinessLib(props) {
|
|
@@ -10,7 +10,7 @@ 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
|
|
13
|
+
import * as React from 'react';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import ActivitiesList from './ActivitiesList';
|
|
16
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
@@ -20,49 +20,18 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
20
20
|
import { useTranslation } from 'react-i18next';
|
|
21
21
|
import { ActivitiesValidationSchema } from './validation';
|
|
22
22
|
import { handleNextScreenStep } from '../../../../app/settings';
|
|
23
|
-
import { ACTIVITIES,
|
|
24
|
-
import Button from '
|
|
25
|
-
import Loader from '../../../../components/Loader';
|
|
26
|
-
import Icon from '../../../../components/Icon';
|
|
23
|
+
import { ACTIVITIES, SALES_CHANNELS } from '../../../../constants';
|
|
24
|
+
import Button from '../../../shared/Button';
|
|
27
25
|
import SalesChannels from './SalesChannels';
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
display: 'flex',
|
|
32
|
-
flexDirection: 'column',
|
|
33
|
-
direction: theme.direction
|
|
34
|
-
});
|
|
35
|
-
});
|
|
26
|
+
import { ScreenContainer } from '../../../shared/Containers';
|
|
27
|
+
import Collapse from '../../../../components/Collapse';
|
|
28
|
+
import OperationStartDate from './OperationStartDate';
|
|
36
29
|
var FormStyled = styled(Form)(function () { return ({
|
|
37
30
|
display: 'flex',
|
|
38
31
|
flexDirection: 'column'
|
|
39
32
|
}); });
|
|
40
|
-
var ButtonContainer = styled(Box)(function (_a) {
|
|
41
|
-
var theme = _a.theme;
|
|
42
|
-
return ({
|
|
43
|
-
margin: theme.spacing(5, 2.5, 2.5, 2.5)
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
var LoaderStyled = styled(Loader)(function (_a) {
|
|
47
|
-
var theme = _a.theme;
|
|
48
|
-
return ({
|
|
49
|
-
marginInlineStart: theme.spacing(-6.25),
|
|
50
|
-
'& .loader-box-container': {
|
|
51
|
-
marginInlineStart: theme.spacing(2.5)
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
|
56
|
-
var theme = _a.theme, isAr = _a.isAr;
|
|
57
|
-
return ({
|
|
58
|
-
width: theme.spacing(3),
|
|
59
|
-
height: theme.spacing(3),
|
|
60
|
-
paddingInlineStart: theme.spacing(1.5),
|
|
61
|
-
paddingInlineEnd: theme.spacing(0.5),
|
|
62
|
-
transform: isAr ? 'scaleX(-1)' : 'scaleX(1)'
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
33
|
var Activities = function () {
|
|
34
|
+
var _a = React.useState(false), collapse = _a[0], setCollapse = _a[1];
|
|
66
35
|
var dispatch = useAppDispatch();
|
|
67
36
|
var isAr = useLanguage().isAr;
|
|
68
37
|
var t = useTranslation().t;
|
|
@@ -70,7 +39,8 @@ var Activities = function () {
|
|
|
70
39
|
resolver: yupResolver(ActivitiesValidationSchema),
|
|
71
40
|
defaultValues: {
|
|
72
41
|
activities: [ACTIVITIES[0]],
|
|
73
|
-
salesChannels: [SALES_CHANNELS[0]]
|
|
42
|
+
salesChannels: [SALES_CHANNELS[0]],
|
|
43
|
+
operationStartDate: '2000-01-01'
|
|
74
44
|
},
|
|
75
45
|
mode: 'onChange'
|
|
76
46
|
});
|
|
@@ -78,6 +48,10 @@ var Activities = function () {
|
|
|
78
48
|
console.log('data', data);
|
|
79
49
|
dispatch(handleNextScreenStep());
|
|
80
50
|
};
|
|
81
|
-
|
|
51
|
+
var handleCollapseOpenClose = function (flag) {
|
|
52
|
+
console.log('flag', flag);
|
|
53
|
+
setCollapse(flag);
|
|
54
|
+
};
|
|
55
|
+
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Collapse, __assign({ in: !collapse }, { children: [!!ACTIVITIES && _jsx(ActivitiesList, {}), _jsx(SalesChannels, {})] })), _jsx(OperationStartDate, { onDateClicked: handleCollapseOpenClose }), _jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(Button, __assign({ isAr: isAr, disabled: !methods.formState.isValid }, { children: t('next') })) }))] })) })) }));
|
|
82
56
|
};
|
|
83
57
|
export default Activities;
|
|
@@ -129,7 +129,7 @@ var ActivitiesList = function (_a) {
|
|
|
129
129
|
var getSelectedActivityFlag = function (item) {
|
|
130
130
|
return controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (activity) { return activity.id === (item === null || item === void 0 ? void 0 : item.id); });
|
|
131
131
|
};
|
|
132
|
-
return (_jsxs(BoxStyled, { children: [_jsxs(InputLabelStyled, { children: [t(isCR ? 'activities' : 'category'), " ", _jsx(MandatoryStyled, { children: "*" })] }), _jsxs(Box, { children: [_jsx(InputStyled, { readOnly: true, value: getSelectedActivities(), onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: activitiesMenuList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
132
|
+
return (_jsxs(BoxStyled, { children: [_jsxs(InputLabelStyled, { children: [t(isCR ? 'activities' : 'category'), " ", _jsx(MandatoryStyled, { children: "*" })] }), _jsxs(Box, { children: [_jsx(InputStyled, { readOnly: true, value: getSelectedActivities(), placeholder: isCR ? t('choose_activities') : t('category_name'), onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: activitiesMenuList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
133
133
|
return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === getSelectedActivityFlag(item) }, { children: isAr ? item === null || item === void 0 ? void 0 : item.name : item === null || item === void 0 ? void 0 : item.nameEn })) })), getSelectedActivityFlag(item) && _jsx(CheckIconStyled, {})] }));
|
|
134
134
|
} }) }))] })] }));
|
|
135
135
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { InputLabelStyled } from './ActivitiesList';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
16
|
+
import DatePicker from '../../../../components/DatePicker';
|
|
17
|
+
import { ScreenContainer } from '../../../../features/shared/Containers';
|
|
18
|
+
import { MandatoryStyled } from './SalesChannels';
|
|
19
|
+
var OperationStartDate = function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var onDateClicked = _a.onDateClicked;
|
|
22
|
+
var t = useTranslation().t;
|
|
23
|
+
var control = useFormContext().control;
|
|
24
|
+
var oDateControl = useController({ control: control, name: 'operationStartDate' });
|
|
25
|
+
var handleOperationStartDateChange = function (data) {
|
|
26
|
+
oDateControl.field.onChange(data);
|
|
27
|
+
};
|
|
28
|
+
var dateValue = (_b = oDateControl === null || oDateControl === void 0 ? void 0 : oDateControl.field) === null || _b === void 0 ? void 0 : _b.value;
|
|
29
|
+
return (_jsxs(ScreenContainer, __assign({ sx: { mb: 5 } }, { children: [_jsxs(InputLabelStyled, { children: [t('business_start_date'), _jsx(MandatoryStyled, { children: "*" })] }), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleOperationStartDateChange })] })));
|
|
30
|
+
};
|
|
31
|
+
export default OperationStartDate;
|
|
@@ -30,14 +30,7 @@ import { SALES_CHANNELS } from '../../../../constants';
|
|
|
30
30
|
import CheckBox from '../../../../components/CheckBox';
|
|
31
31
|
import Warning from '../../../../components/Warning';
|
|
32
32
|
import Collapse from '../../../../components/Collapse';
|
|
33
|
-
|
|
34
|
-
var theme = _a.theme;
|
|
35
|
-
return ({
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flexDirection: 'column',
|
|
38
|
-
direction: theme.direction
|
|
39
|
-
});
|
|
40
|
-
});
|
|
33
|
+
import { ScreenContainer } from '../../../shared/Containers';
|
|
41
34
|
var InputLabelStyled = styled(Text)(function (_a) {
|
|
42
35
|
var theme = _a.theme;
|
|
43
36
|
return (__assign({ margin: theme.spacing(2.5, 2.5, 0.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
|
|
@@ -76,7 +69,7 @@ export var MandatoryStyled = styled('span')(function (_a) {
|
|
|
76
69
|
export var CollapseStyled = styled(Collapse)(function (_a) {
|
|
77
70
|
var theme = _a.theme;
|
|
78
71
|
return ({
|
|
79
|
-
marginBlockStart: theme.spacing(
|
|
72
|
+
marginBlockStart: theme.spacing(2)
|
|
80
73
|
});
|
|
81
74
|
});
|
|
82
75
|
var SalesChannels = function () {
|
|
@@ -102,6 +95,6 @@ var SalesChannels = function () {
|
|
|
102
95
|
if (channelsChecked)
|
|
103
96
|
return !!(channelsChecked === null || channelsChecked === void 0 ? void 0 : channelsChecked.find(function (channel) { return channel.id === (item === null || item === void 0 ? void 0 : item.id); }));
|
|
104
97
|
};
|
|
105
|
-
return (_jsxs(
|
|
98
|
+
return (_jsxs(ScreenContainer, { children: [_jsxs(InputLabelStyled, { children: [t('channel_of_service'), " ", _jsx(MandatoryStyled, { children: "*" })] }), channelsMenuList.map(function (channel) { return (_jsxs(ContainerStyled, { children: [_jsx(CheckBoxStyled, { id: channel.id.toString(), disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: getSelectedChannelsFlag(channel), onChange: handleSalesChannelChange }), _jsxs(TextStyled, { children: [isAr ? channel.name : channel.nameEn, " "] })] }, channel.id)); }), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: t(warningMessage) })) }))] }));
|
|
106
99
|
};
|
|
107
100
|
export default SalesChannels;
|