@tap-payments/auth-jsconnect 2.0.56 → 2.0.57
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 +33 -0
- package/build/api/data.d.ts +1 -0
- package/build/api/data.js +9 -1
- package/build/api/entity.d.ts +7 -0
- package/build/api/entity.js +10 -1
- package/build/api/index.d.ts +4 -2
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +3 -1
- package/build/features/app/entity/entityStore.js +24 -12
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +19 -54
- package/build/features/entity/screens/EntityCapital/ActivityList.js +199 -97
- package/build/features/entity/screens/EntityCapital/validation.d.ts +165 -30
- package/build/features/entity/screens/EntityCapital/validation.js +5 -2
- package/build/features/shared/Search/Search.d.ts +2 -1
- package/build/features/shared/Search/Search.js +2 -2
- package/build/utils/array.d.ts +2 -1
- package/build/utils/array.js +72 -0
- package/package.json +1 -1
|
@@ -18,30 +18,24 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
import * as React from 'react';
|
|
23
|
-
import { useTranslation } from 'react-i18next';
|
|
24
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
25
23
|
import Box from '@mui/material/Box';
|
|
26
24
|
import { alpha, styled } from '@mui/material/styles';
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { useLanguage, useAppSelector
|
|
31
|
-
import { BusinessType } from '../../../../@types';
|
|
32
|
-
import { sortActivitiesByName } from '../../../../utils';
|
|
33
|
-
import Text from '../../../../components/Text';
|
|
34
|
-
import Input from '../../../shared/Input';
|
|
35
|
-
import Tooltip from '../../../../components/Tooltip';
|
|
36
|
-
import Collapse from '../../../../components/Collapse';
|
|
25
|
+
import { useTranslation } from 'react-i18next';
|
|
26
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
27
|
+
import { settingsSelector } from '../../../../app/settings';
|
|
28
|
+
import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
37
29
|
import SimpleList from '../../../../components/SimpleList';
|
|
30
|
+
import Collapse from '../../../../components/Collapse';
|
|
38
31
|
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
32
|
+
import CheckIcon from '@mui/icons-material/Check';
|
|
33
|
+
import Text from '../../../../components/Text';
|
|
34
|
+
import { findCurrencyByIso2, isExist, groupSectionWithSelectedActivitiesAtBeginning } from '../../../../utils';
|
|
39
35
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
40
|
-
import
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return (__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
|
|
44
|
-
});
|
|
36
|
+
import Search from '../../../shared/Search';
|
|
37
|
+
import Input from '../../../shared/Input';
|
|
38
|
+
import { entitySelector } from '../../../app/entity/entityStore';
|
|
45
39
|
var InputStyled = styled(Input)(function (_a) {
|
|
46
40
|
var theme = _a.theme, readOnly = _a.readOnly;
|
|
47
41
|
return ({
|
|
@@ -51,120 +45,228 @@ var InputStyled = styled(Input)(function (_a) {
|
|
|
51
45
|
}
|
|
52
46
|
});
|
|
53
47
|
});
|
|
54
|
-
export var
|
|
55
|
-
var theme = _a.theme;
|
|
56
|
-
return ({
|
|
57
|
-
width: theme.spacing(2.75),
|
|
58
|
-
height: theme.spacing(2.125),
|
|
59
|
-
cursor: 'pointer',
|
|
60
|
-
color: alpha(theme.palette.text.primary, 0.4)
|
|
61
|
-
});
|
|
48
|
+
export var NameContainer = styled(Text, { shouldForwardProp: function (prop) { return !['isSelected', 'isAr'].includes(prop.toString()); } })(function (_a) {
|
|
49
|
+
var theme = _a.theme, isSelected = _a.isSelected, isAr = _a.isAr;
|
|
50
|
+
return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { textAlign: isAr ? 'right' : 'left', fontWeight: isSelected ? theme.typography.fontWeightRegular : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
|
|
62
51
|
});
|
|
63
|
-
export var
|
|
52
|
+
export var InputLabelStyled = styled(Text)(function (_a) {
|
|
64
53
|
var theme = _a.theme;
|
|
65
|
-
return ({
|
|
66
|
-
width: theme.spacing(2.75),
|
|
67
|
-
height: theme.spacing(2.125),
|
|
68
|
-
cursor: 'pointer',
|
|
69
|
-
color: alpha(theme.palette.text.primary, 0.4)
|
|
70
|
-
});
|
|
54
|
+
return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
|
|
71
55
|
});
|
|
72
|
-
export var
|
|
56
|
+
export var CheckIconStyled = styled(CheckIcon)(function (_a) {
|
|
73
57
|
var theme = _a.theme;
|
|
74
58
|
return ({
|
|
59
|
+
color: theme.palette.success.main,
|
|
75
60
|
display: 'flex',
|
|
76
|
-
|
|
77
|
-
margin: theme.spacing(2.5, 2.5, 1.5, 2.5)
|
|
61
|
+
alignItems: 'flex-end'
|
|
78
62
|
});
|
|
79
63
|
});
|
|
80
|
-
var
|
|
81
|
-
export var CheckIconStyled = styled(CheckIcon)(function (_a) {
|
|
64
|
+
var ListItem = styled(Box)(function (_a) {
|
|
82
65
|
var theme = _a.theme;
|
|
83
66
|
return ({
|
|
84
|
-
color: theme.palette.primary.main,
|
|
85
67
|
display: 'flex',
|
|
86
|
-
|
|
68
|
+
justifyContent: 'space-between',
|
|
69
|
+
width: '100%',
|
|
70
|
+
paddingInlineStart: theme.spacing(2.5),
|
|
71
|
+
paddingInlineEnd: theme.spacing(2.5),
|
|
72
|
+
paddingTop: theme.spacing(1.5),
|
|
73
|
+
paddingBottom: theme.spacing(1.5)
|
|
87
74
|
});
|
|
88
75
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
var ListItemContainer = styled(Box)(function () { return ({
|
|
77
|
+
display: 'flex',
|
|
78
|
+
flexDirection: 'column',
|
|
79
|
+
width: '100%'
|
|
80
|
+
}); });
|
|
81
|
+
var SimpleListStyled = styled((SimpleList))(function () { return ({
|
|
82
|
+
height: 'fit-content'
|
|
83
|
+
}); });
|
|
84
|
+
var DivisionListStyled = styled((SimpleList))(function () { return ({
|
|
85
|
+
height: 'fit-content'
|
|
86
|
+
}); });
|
|
87
|
+
var ActivityListStyled = styled((SimpleList))(function () { return ({
|
|
88
|
+
height: 'fit-content'
|
|
89
|
+
}); });
|
|
90
|
+
var ActivityList = function (_a) {
|
|
91
|
+
var onListClose = _a.onListClose, onListOpen = _a.onListOpen, readOnly = _a.readOnly;
|
|
92
|
+
var _b = React.useState([]), activities = _b[0], setActivities = _b[1];
|
|
96
93
|
var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
|
|
94
|
+
var _d = React.useState(''), subIndex = _d[0], setSubIndex = _d[1];
|
|
95
|
+
var _e = React.useState(''), subItemIndex = _e[0], setSubItemIndex = _e[1];
|
|
97
96
|
var t = useTranslation().t;
|
|
98
97
|
var isAr = useLanguage().isAr;
|
|
99
98
|
var control = useFormContext().control;
|
|
100
|
-
var dispatch = useAppDispatch();
|
|
101
|
-
var _d = useAppSelector(entitySelector), data = _d.data, error = _d.error;
|
|
102
99
|
var activitiesControl = useController({ name: 'activities', control: control });
|
|
100
|
+
var data = useAppSelector(entitySelector).data;
|
|
101
|
+
var settingsData = useAppSelector(settingsSelector).data;
|
|
102
|
+
var activityList = (data.verify.responseBody || {}).activityList;
|
|
103
103
|
var controlValue = activitiesControl.field.value;
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
var licenseType = (_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.type;
|
|
108
|
-
var type = licenseType === 'freelance' ? BusinessType.FL : BusinessType.CR;
|
|
109
|
-
var isCR = type === BusinessType.CR;
|
|
110
|
-
var disabled = false;
|
|
111
|
-
var setSelectedActivitiesBeginning = function (list) {
|
|
112
|
-
var mapSelectedListFirst = __spreadArray(__spreadArray([], list.filter(function (a) { return (controlValue || []).some(function (c) { return a.id === c.id; }); }), true), list.filter(function (a) { return !(controlValue || []).some(function (c) { return a.id === c.id; }); }), true);
|
|
113
|
-
setActivitiesMenuList(mapSelectedListFirst);
|
|
114
|
-
};
|
|
115
|
-
React.useEffect(function () {
|
|
116
|
-
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
117
|
-
var list = __spreadArray([], activityList, true);
|
|
118
|
-
var sortedList = sortActivitiesByName(list, isAr ? 'name.ar' : 'name.en');
|
|
119
|
-
setSelectedActivitiesBeginning(sortedList);
|
|
120
|
-
}
|
|
121
|
-
}, [activityList]);
|
|
122
|
-
var onOpenList = function (event) {
|
|
123
|
-
var _a, _b;
|
|
124
|
-
if (props.readOnly)
|
|
104
|
+
var countryCode = settingsData.businessCountry;
|
|
105
|
+
var handleOpenMainMenu = function (event) {
|
|
106
|
+
if (readOnly)
|
|
125
107
|
return;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
108
|
+
var list = groupSectionWithSelectedActivitiesAtBeginning(activityList, controlValue);
|
|
109
|
+
if ((list === null || list === void 0 ? void 0 : list.length) > 0) {
|
|
110
|
+
setActivities(list);
|
|
129
111
|
}
|
|
130
112
|
setAnchorEl(event.currentTarget);
|
|
131
|
-
|
|
113
|
+
onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
|
|
132
114
|
};
|
|
133
|
-
var
|
|
134
|
-
var _a;
|
|
115
|
+
var handleCloseMainMenu = function () {
|
|
135
116
|
setAnchorEl(null);
|
|
136
|
-
|
|
117
|
+
onListClose === null || onListClose === void 0 ? void 0 : onListClose();
|
|
118
|
+
handleCloseSubMenu();
|
|
119
|
+
handleCloseSubItem();
|
|
120
|
+
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
121
|
+
setActivities(activityList);
|
|
122
|
+
}
|
|
137
123
|
};
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
124
|
+
var handleOpenSubMenu = function (index) {
|
|
125
|
+
if (subIndex === index)
|
|
126
|
+
setSubIndex('');
|
|
127
|
+
else
|
|
128
|
+
setSubIndex(index);
|
|
129
|
+
};
|
|
130
|
+
var handleCloseSubMenu = function () {
|
|
131
|
+
setSubIndex('');
|
|
132
|
+
};
|
|
133
|
+
var handleOpenSubItem = function (index) {
|
|
134
|
+
if (subItemIndex === index)
|
|
135
|
+
setSubItemIndex('');
|
|
136
|
+
else
|
|
137
|
+
setSubItemIndex(index);
|
|
138
|
+
};
|
|
139
|
+
var handleCloseSubItem = function () {
|
|
140
|
+
setSubItemIndex('');
|
|
141
|
+
};
|
|
142
|
+
React.useEffect(function () {
|
|
143
|
+
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
144
|
+
setActivities(activityList);
|
|
145
|
+
}
|
|
146
|
+
}, [activityList]);
|
|
147
|
+
var onSelectItem = function (activity) {
|
|
148
|
+
var isActivityExists = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (ac) { return ac.id === activity.id; });
|
|
146
149
|
if (isActivityExists) {
|
|
147
|
-
var updatedIdList = controlValue === null || controlValue === void 0 ? void 0 : controlValue.filter(function (
|
|
150
|
+
var updatedIdList = controlValue === null || controlValue === void 0 ? void 0 : controlValue.filter(function (ac) { return ac.id !== activity.id; });
|
|
148
151
|
if (updatedIdList.length >= 1)
|
|
149
152
|
activitiesControl.field.onChange(updatedIdList);
|
|
150
153
|
return;
|
|
151
154
|
}
|
|
152
|
-
|
|
155
|
+
var activities = controlValue ? __spreadArray(__spreadArray([], controlValue, true), [activity], false) : [activity];
|
|
156
|
+
activitiesControl.field.onChange(activities);
|
|
153
157
|
};
|
|
154
158
|
var getSelectedActivities = function () {
|
|
155
|
-
var _a, _b;
|
|
159
|
+
var _a, _b, _c;
|
|
156
160
|
if ((controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) > 1) {
|
|
157
161
|
return (controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) + ' ' + t('activities_selected');
|
|
158
162
|
}
|
|
159
|
-
var item = controlValue[0];
|
|
160
|
-
|
|
163
|
+
var item = (controlValue || [])[0];
|
|
164
|
+
var code = item === null || item === void 0 ? void 0 : item.isic_code;
|
|
165
|
+
var name = isAr ? ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar) || ((_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
166
|
+
return code ? "".concat(code, " - ").concat(name) : name;
|
|
167
|
+
};
|
|
168
|
+
var getSelectedActivityName = function (item) {
|
|
169
|
+
var _a, _b, _c;
|
|
170
|
+
var code = item === null || item === void 0 ? void 0 : item.isic_code;
|
|
171
|
+
var name = isAr ? ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar) || ((_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
172
|
+
return code ? "".concat(code, " - ").concat(name) : name;
|
|
161
173
|
};
|
|
162
|
-
var
|
|
163
|
-
|
|
174
|
+
var getSelectedActivitySectionFlag = function (section) {
|
|
175
|
+
var findSection = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
176
|
+
var id = _a.id;
|
|
177
|
+
return id === section.id;
|
|
178
|
+
});
|
|
179
|
+
var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
180
|
+
var _b;
|
|
181
|
+
var id = _a.id;
|
|
182
|
+
return (_b = section.divisions) === null || _b === void 0 ? void 0 : _b.find(function (division) { return division.id === id; });
|
|
183
|
+
});
|
|
184
|
+
var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
185
|
+
var _b;
|
|
186
|
+
var id = _a.id;
|
|
187
|
+
return (_b = section.divisions) === null || _b === void 0 ? void 0 : _b.find(function (division) { var _a; return (_a = division === null || division === void 0 ? void 0 : division.activities) === null || _a === void 0 ? void 0 : _a.find(function (activity) { return activity.id === id; }); });
|
|
188
|
+
});
|
|
189
|
+
if (findSection || findDivision || findActivity)
|
|
190
|
+
return section.id;
|
|
191
|
+
return '';
|
|
164
192
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
193
|
+
var getSelectedActivityDivisionFlag = function (division) {
|
|
194
|
+
var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
195
|
+
var id = _a.id;
|
|
196
|
+
return division.id === id;
|
|
197
|
+
});
|
|
198
|
+
var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
199
|
+
var _b;
|
|
200
|
+
var id = _a.id;
|
|
201
|
+
return (_b = division.activities) === null || _b === void 0 ? void 0 : _b.find(function (activity) { return activity.id === id; });
|
|
202
|
+
});
|
|
203
|
+
if (findDivision || findActivity)
|
|
204
|
+
return division.id;
|
|
205
|
+
return '';
|
|
206
|
+
};
|
|
207
|
+
var getSelectedActivityFlag = function (activity) {
|
|
208
|
+
var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
|
|
209
|
+
var id = _a.id;
|
|
210
|
+
return id === activity.id;
|
|
211
|
+
});
|
|
212
|
+
if (findActivity)
|
|
213
|
+
return activity.id;
|
|
214
|
+
return '';
|
|
215
|
+
};
|
|
216
|
+
var handleSearch = function (value) {
|
|
217
|
+
if (!value) {
|
|
218
|
+
var list = groupSectionWithSelectedActivitiesAtBeginning(activityList, controlValue);
|
|
219
|
+
if ((list === null || list === void 0 ? void 0 : list.length) > 0) {
|
|
220
|
+
setActivities(list);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
setActivities(activityList);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
var filteredList = (activityList || [])
|
|
227
|
+
.flatMap(function (s) { return s.divisions; })
|
|
228
|
+
.flatMap(function (d) { return d.activities; })
|
|
229
|
+
.filter(function (a) {
|
|
230
|
+
var _a, _b, _c, _d;
|
|
231
|
+
return ((_b = (_a = a === null || a === void 0 ? void 0 : a.name) === null || _a === void 0 ? void 0 : _a.en) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(value.toLowerCase())) || ((_d = (_c = a === null || a === void 0 ? void 0 : a.name) === null || _c === void 0 ? void 0 : _c.ar) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes(value.toLowerCase()));
|
|
232
|
+
});
|
|
233
|
+
setActivities(filteredList);
|
|
234
|
+
};
|
|
235
|
+
React.useEffect(function () {
|
|
236
|
+
var item = isExist(activityList || [], controlValue === null || controlValue === void 0 ? void 0 : controlValue.id);
|
|
237
|
+
if (item)
|
|
238
|
+
setSubIndex(item.id);
|
|
239
|
+
}, [anchorEl, controlValue]);
|
|
240
|
+
return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_monthly', {
|
|
241
|
+
currency: t(findCurrencyByIso2(countryCode.iso2))
|
|
242
|
+
}) }), _jsx(InputStyled, { readOnly: readOnly, value: getSelectedActivities() || '', onClick: !!anchorEl ? handleCloseMainMenu : handleOpenMainMenu, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch, placeholder: 'search_activities_placeholder' }), _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: activities, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (section) {
|
|
243
|
+
var isDivisionNotAvailable = !section.divisions || section.divisions.length === 0;
|
|
244
|
+
if (isDivisionNotAvailable)
|
|
245
|
+
onSelectItem(section);
|
|
246
|
+
else
|
|
247
|
+
handleOpenSubMenu(section.id);
|
|
248
|
+
}, renderItem: function (section) {
|
|
249
|
+
var _a;
|
|
250
|
+
var isDivisionNotAvailable = !section.divisions || ((_a = section.divisions) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
251
|
+
var showCheck = section.id === getSelectedActivitySectionFlag(section) && isDivisionNotAvailable;
|
|
252
|
+
return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 20%)', borderBottom: '1px solid rgba(227, 232, 238, 1)' }, (isDivisionNotAvailable && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: section.id === getSelectedActivitySectionFlag(section), sx: __assign({}, (isDivisionNotAvailable && { paddingInlineStart: '5px' })) }, { children: getSelectedActivityName(section) })), showCheck ? _jsx(CheckIconStyled, {}) : !isDivisionNotAvailable && _jsx(ExpandIcon, { anchorEl: subIndex === section.id })] })), _jsx(Collapse, __assign({ in: section.id === subIndex && !isDivisionNotAvailable }, { children: _jsx(DivisionListStyled, { sx: { pt: 0, pb: 0 }, list: (!isDivisionNotAvailable && section.divisions) || [], onSelectItem: function (division, e) {
|
|
253
|
+
e.stopPropagation();
|
|
254
|
+
var isOnlyOneItem = !division.activities || division.activities.length <= 1;
|
|
255
|
+
if (isOnlyOneItem)
|
|
256
|
+
onSelectItem(division);
|
|
257
|
+
else
|
|
258
|
+
handleOpenSubItem(division.id);
|
|
259
|
+
}, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (division, idx) {
|
|
260
|
+
var _a;
|
|
261
|
+
var isOnlyOneItem = !division.activities || ((_a = division.activities) === null || _a === void 0 ? void 0 : _a.length) <= 1;
|
|
262
|
+
var showCheck = division.id === getSelectedActivityDivisionFlag(division) && isOnlyOneItem;
|
|
263
|
+
return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 6%)', borderBottom: '1px solid rgba(227, 232, 238, 0.6)' }, (isOnlyOneItem && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: division.id === getSelectedActivityDivisionFlag(division), sx: __assign({}, (isOnlyOneItem && { paddingInlineStart: '5px' })) }, { children: getSelectedActivityName(division) })), showCheck ? _jsx(CheckIconStyled, {}) : !isOnlyOneItem && _jsx(ExpandIcon, { anchorEl: subItemIndex === division.id })] })), _jsx(Collapse, __assign({ in: division.id === subItemIndex && !isOnlyOneItem }, { children: _jsx(ActivityListStyled, { sx: { pt: 0, pb: 0 }, list: (!isOnlyOneItem && division.activities) || [], onSelectItem: function (activity, e) {
|
|
264
|
+
e.stopPropagation();
|
|
265
|
+
onSelectItem(activity);
|
|
266
|
+
}, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (activity, idx) {
|
|
267
|
+
return (_jsxs(ListItem, __assign({ sx: { mt: idx === 0 ? 1 : 0 } }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: activity.id === getSelectedActivityFlag(activity) }, { children: getSelectedActivityName(activity) })), activity.id === getSelectedActivityFlag(activity) && _jsx(CheckIconStyled, {})] })));
|
|
268
|
+
} }) }))] }, idx));
|
|
269
|
+
} }) }))] }));
|
|
270
|
+
} })] }))] }));
|
|
169
271
|
};
|
|
170
|
-
export default
|
|
272
|
+
export default ActivityList;
|
|
@@ -1,60 +1,195 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
export declare const EntityCapitalValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
3
3
|
activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
5
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
6
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
7
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
8
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
9
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
10
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
11
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
12
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
13
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
14
|
+
}>>>;
|
|
6
15
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
7
|
-
|
|
8
|
-
|
|
16
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
17
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
18
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
19
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
20
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
21
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
22
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
23
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
24
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
25
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
26
|
+
}>>>;
|
|
9
27
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
10
|
-
|
|
11
|
-
|
|
28
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
29
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
30
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
31
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
32
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
33
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
34
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
35
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
36
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
37
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
38
|
+
}>>>;
|
|
12
39
|
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
13
|
-
|
|
14
|
-
|
|
40
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
41
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
42
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
43
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
44
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
45
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
46
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
47
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
48
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
49
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
50
|
+
}>>>;
|
|
15
51
|
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
16
|
-
|
|
17
|
-
|
|
52
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
53
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
54
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
55
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
56
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
57
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
58
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
59
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
60
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
61
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
62
|
+
}>>>;
|
|
18
63
|
}>>[] | undefined>;
|
|
19
64
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
20
65
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
21
66
|
capitalShareValue: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
22
67
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
23
68
|
activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
24
|
-
|
|
25
|
-
|
|
69
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
70
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
71
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
72
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
73
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
74
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
75
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
76
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
77
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
78
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
79
|
+
}>>>;
|
|
26
80
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
27
|
-
|
|
28
|
-
|
|
81
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
82
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
83
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
84
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
85
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
86
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
87
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
88
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
89
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
90
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
91
|
+
}>>>;
|
|
29
92
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
30
|
-
|
|
31
|
-
|
|
93
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
94
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
95
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
96
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
97
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
98
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
99
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
100
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
101
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
102
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
103
|
+
}>>>;
|
|
32
104
|
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
33
|
-
|
|
34
|
-
|
|
105
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
106
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
107
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
108
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
109
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
110
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
111
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
112
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
113
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
114
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
115
|
+
}>>>;
|
|
35
116
|
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
36
|
-
|
|
37
|
-
|
|
117
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
118
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
119
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
120
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
121
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
122
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
123
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
124
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
125
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
126
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
127
|
+
}>>>;
|
|
38
128
|
}>>[] | undefined>;
|
|
39
129
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
40
130
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
41
131
|
capitalShareValue: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
42
132
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
43
133
|
activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
44
|
-
|
|
45
|
-
|
|
134
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
135
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
136
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
137
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
138
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
139
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
140
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
141
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
142
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
143
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
144
|
+
}>>>;
|
|
46
145
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
47
|
-
|
|
48
|
-
|
|
146
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
147
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
148
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
149
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
150
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
151
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
152
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
153
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
154
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
155
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
156
|
+
}>>>;
|
|
49
157
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
50
|
-
|
|
51
|
-
|
|
158
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
159
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
160
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
161
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
162
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
163
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
164
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
165
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
166
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
167
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
168
|
+
}>>>;
|
|
52
169
|
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
53
|
-
|
|
54
|
-
|
|
170
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
171
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
172
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
173
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
174
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
175
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
176
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
177
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
178
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
179
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
180
|
+
}>>>;
|
|
55
181
|
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
56
|
-
|
|
57
|
-
|
|
182
|
+
id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
183
|
+
name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
184
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
185
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
186
|
+
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
187
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
188
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
189
|
+
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
190
|
+
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
191
|
+
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
192
|
+
}>>>;
|
|
58
193
|
}>>[] | undefined>;
|
|
59
194
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
60
195
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|