@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.
@@ -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, Fragment as _Fragment } from "react/jsx-runtime";
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 InfoIcon from '@mui/icons-material/Info';
28
- import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
29
- import CheckIcon from '@mui/icons-material/Check';
30
- import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
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 { clearError, entitySelector } from '../../../app/entity/entityStore';
41
- export var InputLabelStyled = styled(Text)(function (_a) {
42
- var theme = _a.theme;
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 InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
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 InfoIconStyled = styled(InfoIcon)(function (_a) {
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 LabelContainerStyled = styled(Box)(function (_a) {
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
- justifyContent: 'space-between',
77
- margin: theme.spacing(2.5, 2.5, 1.5, 2.5)
61
+ alignItems: 'flex-end'
78
62
  });
79
63
  });
80
- var SimpleListStyled = styled((SimpleList))(function () { return ({}); });
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
- alignItems: 'flex-end'
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
- export var NameContainer = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
90
- var theme = _a.theme, isSelected = _a.isSelected;
91
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
92
- });
93
- var ActivitiesList = function (props) {
94
- var _a;
95
- var _b = React.useState([]), activitiesMenuList = _b[0], setActivitiesMenuList = _b[1];
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 _e = React.useState(false), isHovered = _e[0], setIsHovered = _e[1];
105
- var verify = data.verify;
106
- var _f = verify.responseBody || {}, activityList = _f.activityList, entity = _f.entity;
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
- if ((controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) > ((_a = entity === null || entity === void 0 ? void 0 : entity.activities) === null || _a === void 0 ? void 0 : _a.length)) {
127
- var list = __spreadArray([], activitiesMenuList, true);
128
- setSelectedActivitiesBeginning(list);
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
- (_b = props.onListOpen) === null || _b === void 0 ? void 0 : _b.call(props);
113
+ onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
132
114
  };
133
- var onCloseList = function () {
134
- var _a;
115
+ var handleCloseMainMenu = function () {
135
116
  setAnchorEl(null);
136
- (_a = props.onListClose) === null || _a === void 0 ? void 0 : _a.call(props);
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 onSelectItem = function (item) {
139
- var _a;
140
- if (error)
141
- dispatch(clearError());
142
- var isActivityExistInBackend = (_a = entity === null || entity === void 0 ? void 0 : entity.activities) === null || _a === void 0 ? void 0 : _a.find(function (activity) { return activity.id === item.id; });
143
- if (isActivityExistInBackend)
144
- return;
145
- var isActivityExists = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (activity) { return activity.id === item.id; });
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 (activity) { return activity.id !== (item === null || item === void 0 ? void 0 : item.id); });
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
- activitiesControl.field.onChange(__spreadArray(__spreadArray([], controlValue, true), [item], false));
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
- return 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;
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 getSelectedActivityFlag = function (item) {
163
- return controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (activity) { return activity.id === item.id; });
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
- return (_jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: t(isCR ? 'activities' : 'category') }), _jsx(Tooltip, __assign({ title: t('activities_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsxs(Box, { children: [_jsx(InputStyled, { readOnly: props.readOnly, disabled: disabled, value: getSelectedActivities() || '', placeholder: isCR ? t('choose_activities') : t('category_name'), onClick: disabled ? undefined : !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: disabled ? _jsx(_Fragment, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name.en', searchValuePath: ['name.ar', 'name.en'], list: activitiesMenuList, onSelectItem: onSelectItem, renderItem: function (item) {
166
- var _a, _b, _c;
167
- return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: item.id === ((_a = getSelectedActivityFlag(item)) === null || _a === void 0 ? void 0 : _a.id) }, { children: isAr ? (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.ar : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en })) })), getSelectedActivityFlag(item) && _jsx(CheckIconStyled, {})] }));
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 ActivitiesList;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
11
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
14
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- 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>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- 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>;
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
- 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>;
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
- 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>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
48
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
51
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
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>;