@tap-payments/auth-jsconnect 2.3.86-test → 2.3.88-test

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.
@@ -464,4 +464,37 @@ export interface MerchantInfo {
464
464
  pci_dss: boolean;
465
465
  };
466
466
  }
467
+ export interface ActivityParams {
468
+ id: string;
469
+ code: string;
470
+ name: {
471
+ ar: string;
472
+ en: string;
473
+ };
474
+ created: string;
475
+ isic_code: string;
476
+ branch_code: string;
477
+ old_activity_id: string;
478
+ }
479
+ export interface ActivityDivision {
480
+ id: string;
481
+ code: string;
482
+ name: {
483
+ ar: string;
484
+ en: string;
485
+ };
486
+ created: string;
487
+ section_code: string;
488
+ activities?: Array<ActivityParams>;
489
+ }
490
+ export interface ActivitiesIsIc {
491
+ id: string;
492
+ code: string;
493
+ name: {
494
+ ar: string;
495
+ en: string;
496
+ };
497
+ created: string;
498
+ divisions?: Array<ActivityDivision>;
499
+ }
467
500
  export {};
@@ -45,5 +45,6 @@ declare const dataService: {
45
45
  getSegments: (data: GetSegmentsBody) => Promise<any>;
46
46
  getTeamSize: (data: GetTeamSizeBody) => Promise<any>;
47
47
  getActivities: (config?: AxiosRequestConfig) => Promise<any>;
48
+ getActivitiesIsIc: () => Promise<any>;
48
49
  };
49
50
  export { dataService };
package/build/api/data.js CHANGED
@@ -63,6 +63,13 @@ var getOccupation = function (data) {
63
63
  var getActivities = function (config) {
64
64
  return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.RETRIEVE_ACTIVITIES_LIST_PATH) }, config));
65
65
  };
66
+ var getActivitiesIsIc = function () {
67
+ return httpClient({
68
+ method: 'post',
69
+ url: "".concat(ENDPOINT_PATHS.RETRIEVE_ACTIVITIES_ISIC),
70
+ data: {}
71
+ });
72
+ };
66
73
  var getSegments = function (data) {
67
74
  return httpClient({
68
75
  method: 'post',
@@ -87,6 +94,7 @@ var dataService = {
87
94
  getOccupation: getOccupation,
88
95
  getSegments: getSegments,
89
96
  getTeamSize: getTeamSize,
90
- getActivities: getActivities
97
+ getActivities: getActivities,
98
+ getActivitiesIsIc: getActivitiesIsIc
91
99
  };
92
100
  export { dataService };
@@ -106,6 +106,12 @@ export declare type UpdateEntityAOAFileBody = {
106
106
  id: string;
107
107
  AOA_file_id: string;
108
108
  };
109
+ export declare type RemoveEntityActivity = {
110
+ id: string;
111
+ activities?: Array<{
112
+ id: string;
113
+ }>;
114
+ };
109
115
  declare const entityService: {
110
116
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
111
117
  updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -120,5 +126,6 @@ declare const entityService: {
120
126
  updateEntityCapital: ({ id, ...data }: UpdateEntityCapitalBody) => Promise<any>;
121
127
  updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
122
128
  retrieveAllEntities: (id: string) => Promise<any>;
129
+ removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
123
130
  };
124
131
  export { entityService };
@@ -89,6 +89,14 @@ var retrieveAllEntities = function (id) {
89
89
  url: "".concat(ENDPOINT_PATHS.BUSINESS, "/").concat(id)
90
90
  });
91
91
  };
92
+ var removeEntityActivities = function (_a) {
93
+ var id = _a.id, data = __rest(_a, ["id"]);
94
+ return httpClient({
95
+ method: 'put',
96
+ url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/activities/remove"),
97
+ data: data
98
+ });
99
+ };
92
100
  var entityService = {
93
101
  createEntityInfo: createEntityInfo,
94
102
  updateEntityInfo: updateEntityInfo,
@@ -102,6 +110,7 @@ var entityService = {
102
110
  retrieveEntityType: retrieveEntityType,
103
111
  updateEntityCapital: updateEntityCapital,
104
112
  updateEntityAOAFile: updateEntityAOAFile,
105
- retrieveAllEntities: retrieveAllEntities
113
+ retrieveAllEntities: retrieveAllEntities,
114
+ removeEntityActivities: removeEntityActivities
106
115
  };
107
116
  export { entityService };
@@ -3,7 +3,7 @@ import { ValidateOperatorBody } from './operator';
3
3
  import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
4
4
  import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
- import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody } from './entity';
6
+ import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity } from './entity';
7
7
  import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
9
  import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody } from './individual';
@@ -64,6 +64,7 @@ declare const API: {
64
64
  updateEntityCapital: ({ id, ...data }: UpdateEntityCapitalBody) => Promise<any>;
65
65
  updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
66
66
  retrieveAllEntities: (id: string) => Promise<any>;
67
+ removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
67
68
  };
68
69
  availabilityServices: {
69
70
  checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -107,6 +108,7 @@ declare const API: {
107
108
  page: number;
108
109
  }) => Promise<any>;
109
110
  getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
111
+ getActivitiesIsIc: () => Promise<any>;
110
112
  };
111
113
  individualService: {
112
114
  retrieveIndividualInfo: (id: string) => Promise<any>;
@@ -149,6 +151,6 @@ declare const API: {
149
151
  getInitialData: (body: InitBody) => Promise<any>;
150
152
  };
151
153
  };
152
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity };
154
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity };
153
155
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
154
156
  export default API;
@@ -6,7 +6,7 @@ export interface SimpleListProps<T> extends ListProps {
6
6
  list: Array<T>;
7
7
  selectedItems?: Array<T>;
8
8
  listItemProps?: ListItemProps;
9
- onSelectItem: (item: T) => void;
9
+ onSelectItem: (item: T, e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
10
10
  renderItem: (item: T, idx: number) => React.ReactElement;
11
11
  searchKeyPath?: string;
12
12
  searchValuePath?: string[];
@@ -121,8 +121,8 @@ function SimpleList(_a) {
121
121
  };
122
122
  return (_jsxs(_Fragment, { children: [(searchValuePath === null || searchValuePath === void 0 ? void 0 : searchValuePath.length) && _jsx(Search, { onSearchValue: onSearch }), _jsx(ListStyled, __assign({}, rest, { children: children ||
123
123
  mapSelectedItemBeginning.map(function (item, idx) {
124
- return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
125
- onSelectItem(item);
124
+ return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function (e) {
125
+ onSelectItem(item, e);
126
126
  }, disableGutters: true, key: idx }), renderItem(item, idx)));
127
127
  }) }))] }));
128
128
  }
@@ -48,4 +48,5 @@ export declare const ENDPOINT_PATHS: {
48
48
  CITIES: string;
49
49
  INIT: string;
50
50
  BUSINESS: string;
51
+ RETRIEVE_ACTIVITIES_ISIC: string;
51
52
  };
@@ -10,6 +10,7 @@ var AUTH_PATH = '/auth';
10
10
  var LEAD_PATH = '/lead';
11
11
  var RETRIEVE_ENTITY_LIST_PATH = '/lead/entity/list';
12
12
  var RETRIEVE_ACTIVITIES_LIST_PATH = '/entity/activities/list';
13
+ var RETRIEVE_ACTIVITIES_ISIC_PATH = '/isic/list';
13
14
  var ENTITY_PATH = '/entity';
14
15
  var INDIVIDUAL_PATH = '/individual';
15
16
  var USER_PATH = '/user';
@@ -97,5 +98,6 @@ export var ENDPOINT_PATHS = {
97
98
  TEAM_SIZE_PATH: TEAM_SIZE_PATH,
98
99
  CITIES: CITIES_PATH,
99
100
  INIT: INIT_PATH,
100
- BUSINESS: BUSINESS_PATH
101
+ BUSINESS: BUSINESS_PATH,
102
+ RETRIEVE_ACTIVITIES_ISIC: RETRIEVE_ACTIVITIES_ISIC_PATH
101
103
  };
@@ -321,7 +321,7 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
321
321
  data = _g.sent();
322
322
  data.documentData = documentResponse;
323
323
  _g.label = 7;
324
- case 7: return [4, API.dataService.getActivities()];
324
+ case 7: return [4, API.dataService.getActivitiesIsIc()];
325
325
  case 8:
326
326
  list = (_g.sent()).list;
327
327
  data.activityList = list;
@@ -335,13 +335,13 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
335
335
  export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', function (_a, thunkApi) {
336
336
  var formData = _a.formData, originalFormData = _a.originalFormData;
337
337
  return __awaiter(void 0, void 0, void 0, function () {
338
- var _b, settings, entity, _c, id, data_status, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, activityIds, payload, data;
339
- var _d, _e, _f, _g;
340
- return __generator(this, function (_h) {
341
- switch (_h.label) {
338
+ var _b, settings, entity, _c, id, data_status, entityActivities, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, removedActivities, payload_1, activityIds, payload, data;
339
+ var _d, _e, _f;
340
+ return __generator(this, function (_g) {
341
+ switch (_g.label) {
342
342
  case 0:
343
343
  _b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
344
- _c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status;
344
+ _c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, entityActivities = _c.activities;
345
345
  isCapitalPaidNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'paid');
346
346
  isCapitalShareCountNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.count');
347
347
  isCapitalShareValueNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.value');
@@ -349,7 +349,19 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
349
349
  capitalShareCount = formData.capitalShareCount, capitalShareValue = formData.capitalShareValue, activities = formData.activities, capitalPaid = formData.capitalPaid;
350
350
  hasCapitalShares = capitalShareCount || capitalShareValue;
351
351
  isCapitalNonEditable = (isCapitalPaidNonEditable && isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || (!capitalPaid && !hasCapitalShares);
352
- activityIds = (_e = (activities || [])) === null || _e === void 0 ? void 0 : _e.map(function (_a) {
352
+ removedActivities = (activities === null || activities === void 0 ? void 0 : activities.length) > 0 &&
353
+ (entityActivities || []).filter(function (entityActivity) { return !(activities || []).some(function (activity) { return activity.id === entityActivity.id; }); });
354
+ if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0)) return [3, 2];
355
+ payload_1 = {
356
+ id: id,
357
+ activities: removedActivities
358
+ };
359
+ return [4, API.entityService.removeEntityActivities(payload_1)];
360
+ case 1:
361
+ _g.sent();
362
+ _g.label = 2;
363
+ case 2:
364
+ activityIds = (activities || []).map(function (_a) {
353
365
  var id = _a.id;
354
366
  return ({ id: id, action: 'add' });
355
367
  });
@@ -362,10 +374,10 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
362
374
  }))
363
375
  }));
364
376
  return [4, API.entityService.updateEntity(payload)];
365
- case 1:
366
- data = _h.sent();
377
+ case 3:
378
+ data = _g.sent();
367
379
  thunkApi.dispatch(handleNextScreenStep());
368
- (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, id);
380
+ (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
369
381
  return [2, { data: data, formData: originalFormData }];
370
382
  }
371
383
  });
@@ -508,7 +520,7 @@ export var entitySlice = createSlice({
508
520
  state.data.entityNameData.entityType = entityType;
509
521
  state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
510
522
  state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
511
- if (activities)
523
+ if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
512
524
  state.data.entityCapitalData.activities = activities;
513
525
  if (paid)
514
526
  state.data.entityCapitalData.capitalPaid = paid;
@@ -589,7 +601,7 @@ export var entitySlice = createSlice({
589
601
  state.data.entityNameData.entityType = entityType;
590
602
  state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
591
603
  state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
592
- if (activities)
604
+ if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
593
605
  state.data.entityCapitalData.activities = activities;
594
606
  if (paid)
595
607
  state.data.entityCapitalData.capitalPaid = paid;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
2
+ export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
3
  align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
@@ -11,43 +11,23 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
11
11
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
16
- children?: React.ReactNode;
17
- classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
18
- color?: "inherit" | "disabled" | "error" | "info" | "success" | "primary" | "secondary" | "action" | "warning" | undefined;
19
- fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
20
- htmlColor?: string | undefined;
21
- inheritViewBox?: boolean | undefined;
22
- shapeRendering?: string | undefined;
23
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
24
- titleAccess?: string | undefined;
25
- viewBox?: string | undefined;
26
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
27
- ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
28
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
29
- export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
30
- children?: React.ReactNode;
31
- classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
32
- color?: "inherit" | "disabled" | "error" | "info" | "success" | "primary" | "secondary" | "action" | "warning" | undefined;
33
- fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
34
- htmlColor?: string | undefined;
35
- inheritViewBox?: boolean | undefined;
36
- shapeRendering?: string | undefined;
37
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
38
- titleAccess?: string | undefined;
39
- viewBox?: string | undefined;
40
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
41
- ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
42
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
43
- export declare const LabelContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
15
+ isSelected?: boolean | undefined;
16
+ isAr?: boolean | undefined;
17
+ }, {}, {}>;
18
+ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
19
+ align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
44
20
  children?: React.ReactNode;
45
- component?: React.ElementType<any> | undefined;
46
- ref?: React.Ref<unknown> | undefined;
21
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
22
+ gutterBottom?: boolean | undefined;
23
+ noWrap?: boolean | undefined;
24
+ paragraph?: boolean | undefined;
47
25
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
48
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
49
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
50
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
26
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
27
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
28
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
29
+ ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
30
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
51
31
  export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<{
52
32
  children?: React.ReactNode;
53
33
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
@@ -62,25 +42,10 @@ export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<
62
42
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
63
43
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
64
44
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
65
- export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
66
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
67
- children?: React.ReactNode;
68
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
69
- gutterBottom?: boolean | undefined;
70
- noWrap?: boolean | undefined;
71
- paragraph?: boolean | undefined;
72
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
73
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
74
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
75
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
76
- ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
77
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
78
- isSelected: boolean;
79
- }, {}, {}>;
80
- export interface ActivitiesListProps {
45
+ interface ActivityListProps {
81
46
  onListOpen?: () => void;
82
47
  onListClose?: () => void;
83
48
  readOnly?: boolean;
84
49
  }
85
- declare const ActivitiesList: (props: ActivitiesListProps) => JSX.Element;
86
- export default ActivitiesList;
50
+ declare const ActivityList: ({ onListClose, onListOpen, readOnly }: ActivityListProps) => JSX.Element;
51
+ export default ActivityList;
@@ -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 } 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,215 @@ 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);
129
- }
130
108
  setAnchorEl(event.currentTarget);
131
- (_b = props.onListOpen) === null || _b === void 0 ? void 0 : _b.call(props);
109
+ onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
132
110
  };
133
- var onCloseList = function () {
134
- var _a;
111
+ var handleCloseMainMenu = function () {
135
112
  setAnchorEl(null);
136
- (_a = props.onListClose) === null || _a === void 0 ? void 0 : _a.call(props);
113
+ onListClose === null || onListClose === void 0 ? void 0 : onListClose();
114
+ handleCloseSubMenu();
115
+ handleCloseSubItem();
116
+ if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
117
+ setActivities(activityList);
118
+ }
137
119
  };
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; });
120
+ var handleOpenSubMenu = function (index) {
121
+ if (subIndex === index)
122
+ setSubIndex('');
123
+ else
124
+ setSubIndex(index);
125
+ };
126
+ var handleCloseSubMenu = function () {
127
+ setSubIndex('');
128
+ };
129
+ var handleOpenSubItem = function (index) {
130
+ if (subItemIndex === index)
131
+ setSubItemIndex('');
132
+ else
133
+ setSubItemIndex(index);
134
+ };
135
+ var handleCloseSubItem = function () {
136
+ setSubItemIndex('');
137
+ };
138
+ React.useEffect(function () {
139
+ if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
140
+ setActivities(activityList);
141
+ }
142
+ }, [activityList]);
143
+ var onSelectItem = function (activity) {
144
+ var isActivityExists = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (ac) { return ac.id === activity.id; });
146
145
  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); });
146
+ var updatedIdList = controlValue === null || controlValue === void 0 ? void 0 : controlValue.filter(function (ac) { return ac.id !== activity.id; });
148
147
  if (updatedIdList.length >= 1)
149
148
  activitiesControl.field.onChange(updatedIdList);
150
149
  return;
151
150
  }
152
- activitiesControl.field.onChange(__spreadArray(__spreadArray([], controlValue, true), [item], false));
151
+ var activities = controlValue ? __spreadArray(__spreadArray([], controlValue, true), [activity], false) : [activity];
152
+ activitiesControl.field.onChange(activities);
153
153
  };
154
154
  var getSelectedActivities = function () {
155
- var _a, _b;
155
+ var _a, _b, _c;
156
156
  if ((controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) > 1) {
157
157
  return (controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) + ' ' + t('activities_selected');
158
158
  }
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;
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) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
161
+ };
162
+ var getSelectedActivityName = function (item) {
163
+ var _a, _b, _c;
164
+ 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) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
161
165
  };
162
- var getSelectedActivityFlag = function (item) {
163
- return controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (activity) { return activity.id === item.id; });
166
+ var getSelectedActivitySectionFlag = function (section) {
167
+ var findSection = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
168
+ var id = _a.id;
169
+ return id === section.id;
170
+ });
171
+ var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
172
+ var _b;
173
+ var id = _a.id;
174
+ return (_b = section.divisions) === null || _b === void 0 ? void 0 : _b.find(function (division) { return division.id === id; });
175
+ });
176
+ var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
177
+ var _b;
178
+ var id = _a.id;
179
+ 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; }); });
180
+ });
181
+ if (findSection || findDivision || findActivity)
182
+ return section.id;
183
+ return '';
164
184
  };
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
- } }) }))] })] }));
185
+ var getSelectedActivityDivisionFlag = function (division) {
186
+ var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
187
+ var id = _a.id;
188
+ return division.id === id;
189
+ });
190
+ var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
191
+ var _b;
192
+ var id = _a.id;
193
+ return (_b = division.activities) === null || _b === void 0 ? void 0 : _b.find(function (activity) { return activity.id === id; });
194
+ });
195
+ if (findDivision || findActivity)
196
+ return division.id;
197
+ return '';
198
+ };
199
+ var getSelectedActivityFlag = function (activity) {
200
+ var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (_a) {
201
+ var id = _a.id;
202
+ return id === activity.id;
203
+ });
204
+ if (findActivity)
205
+ return activity.id;
206
+ return '';
207
+ };
208
+ var handleSearch = function (value) {
209
+ if (!value) {
210
+ setActivities(activityList);
211
+ return;
212
+ }
213
+ var filteredList = (activityList || [])
214
+ .flatMap(function (s) { return s.divisions; })
215
+ .flatMap(function (d) { return d.activities; })
216
+ .filter(function (a) {
217
+ var _a, _b, _c, _d;
218
+ 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()));
219
+ });
220
+ setActivities(filteredList);
221
+ };
222
+ React.useEffect(function () {
223
+ var item = isExist(activityList || [], controlValue === null || controlValue === void 0 ? void 0 : controlValue.id);
224
+ if (item)
225
+ setSubIndex(item.id);
226
+ }, [anchorEl, controlValue]);
227
+ return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_monthly', {
228
+ currency: t(findCurrencyByIso2(countryCode.iso2))
229
+ }) }), _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 }), _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: activities, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (section) {
230
+ var isDivisionNotAvailable = !section.divisions || section.divisions.length === 0;
231
+ if (isDivisionNotAvailable)
232
+ onSelectItem(section);
233
+ else
234
+ handleOpenSubMenu(section.id);
235
+ }, renderItem: function (section) {
236
+ var _a;
237
+ var isDivisionNotAvailable = !section.divisions || ((_a = section.divisions) === null || _a === void 0 ? void 0 : _a.length) === 0;
238
+ var showCheck = section.id === getSelectedActivitySectionFlag(section) && isDivisionNotAvailable;
239
+ 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) {
240
+ e.stopPropagation();
241
+ var isOnlyOneItem = !division.activities || division.activities.length === 1;
242
+ if (isOnlyOneItem)
243
+ onSelectItem(division);
244
+ else
245
+ handleOpenSubItem(division.id);
246
+ }, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (division, idx) {
247
+ var _a;
248
+ var isOnlyOneItem = !division.activities || ((_a = division.activities) === null || _a === void 0 ? void 0 : _a.length) === 1;
249
+ var showCheck = division.id === getSelectedActivityDivisionFlag(division) && isOnlyOneItem;
250
+ 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) {
251
+ e.stopPropagation();
252
+ onSelectItem(activity);
253
+ }, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (activity, idx) {
254
+ 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, {})] })));
255
+ } }) }))] }, idx));
256
+ } }) }))] }));
257
+ } })] }))] }));
169
258
  };
170
- export default ActivitiesList;
259
+ 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>;
@@ -5,8 +5,11 @@ export var EntityCapitalValidationSchema = function () {
5
5
  .array()
6
6
  .min(1, 'activities_list_alert')
7
7
  .of(yup.object().shape({
8
- ar: yup.string(),
9
- en: yup.string()
8
+ id: yup.string(),
9
+ name: yup.object().shape({
10
+ ar: yup.string(),
11
+ en: yup.string()
12
+ })
10
13
  })),
11
14
  capitalPaid: yup.string().required('capital_paid_required'),
12
15
  capitalShareCount: yup.string().required('capital_share_count_required'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.3.86-test",
3
+ "version": "2.3.88-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",