@tap-payments/auth-jsconnect 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +1 -1
- package/build/api/entity.d.ts +2 -1
- package/build/api/entity.js +5 -1
- package/build/api/index.d.ts +1 -0
- package/build/constants/app.d.ts +2 -0
- package/build/constants/app.js +2 -0
- package/build/features/app/business/businessStore.js +15 -14
- package/build/features/app/connect/connectStore.js +13 -11
- package/build/features/business/screens/Customers/CustomerLocations.js +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +1 -1
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
package/build/api/entity.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare type EntityInfoUpdateBody = {
|
|
|
5
5
|
channel_services?: Array<string>;
|
|
6
6
|
physical_store_available?: boolean;
|
|
7
7
|
yearly_sales_range?: string;
|
|
8
|
-
customers_served_monthly?:
|
|
8
|
+
customers_served_monthly?: number;
|
|
9
9
|
customers_base?: Array<string>;
|
|
10
10
|
vat_id?: string;
|
|
11
11
|
agree_chargeback?: boolean;
|
|
@@ -14,6 +14,7 @@ export declare type EntityInfoUpdateBody = {
|
|
|
14
14
|
encryption_contract?: Array<string>;
|
|
15
15
|
};
|
|
16
16
|
declare const entityService: {
|
|
17
|
+
createEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
18
|
updateEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
19
|
};
|
|
19
20
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ENDPOINT_PATHS } from '../constants';
|
|
2
2
|
import instance from './axios';
|
|
3
|
-
var
|
|
3
|
+
var createEntityInfo = function (data, config) {
|
|
4
4
|
return instance.post("".concat(ENDPOINT_PATHS.ENTITY), data, config);
|
|
5
5
|
};
|
|
6
|
+
var updateEntityInfo = function (data, config) {
|
|
7
|
+
return instance.put("".concat(ENDPOINT_PATHS.ENTITY), data, config);
|
|
8
|
+
};
|
|
6
9
|
var entityService = {
|
|
10
|
+
createEntityInfo: createEntityInfo,
|
|
7
11
|
updateEntityInfo: updateEntityInfo
|
|
8
12
|
};
|
|
9
13
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ declare const API: {
|
|
|
30
30
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
31
|
};
|
|
32
32
|
entityService: {
|
|
33
|
+
createEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
33
34
|
updateEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
35
|
};
|
|
35
36
|
availabilityServices: {
|
package/build/constants/app.d.ts
CHANGED
|
@@ -92,3 +92,5 @@ export declare const BUSINESS_STEP_NAMES: {
|
|
|
92
92
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
93
93
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
94
94
|
export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
|
|
95
|
+
export declare const INSTAGRAM_URL = "https://www.instagram.com";
|
|
96
|
+
export declare const TWITTER_URL = "https://twitter.com";
|
package/build/constants/app.js
CHANGED
|
@@ -241,3 +241,5 @@ export var BUSINESS_STEP_NAMES = {
|
|
|
241
241
|
export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
242
242
|
export var ENCRYPTION_FLAG = 'encryption_contract';
|
|
243
243
|
export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
|
|
244
|
+
export var INSTAGRAM_URL = 'https://www.instagram.com';
|
|
245
|
+
export var TWITTER_URL = 'https://twitter.com';
|
|
@@ -268,7 +268,7 @@ export var updateActivitiesInfo = createAsyncThunk('updateActivitiesInfo', funct
|
|
|
268
268
|
step_name: BUSINESS_STEP_NAMES.BUSINESS_CR_ACTIVITIES
|
|
269
269
|
};
|
|
270
270
|
headers = { entity_id: (_c = business.data.businessInfo.responseBody) === null || _c === void 0 ? void 0 : _c.entity_id };
|
|
271
|
-
return [4, API.entityService.
|
|
271
|
+
return [4, API.entityService.createEntityInfo(requestBody, { headers: headers })];
|
|
272
272
|
case 1:
|
|
273
273
|
data = (_f.sent()).data;
|
|
274
274
|
if (!data.errors) {
|
|
@@ -309,18 +309,18 @@ export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', functio
|
|
|
309
309
|
case 0:
|
|
310
310
|
_a = thunkApi.getState(), settings = _a.settings, business = _a.business;
|
|
311
311
|
customerBase = params.customerLocations.map(function (_a) {
|
|
312
|
-
var
|
|
313
|
-
return
|
|
312
|
+
var title = _a.title;
|
|
313
|
+
return title;
|
|
314
314
|
});
|
|
315
315
|
requestBody = {
|
|
316
316
|
customers_base: customerBase,
|
|
317
|
-
customers_served_monthly: ((_b = params.expectedCustomers) === null || _b === void 0 ? void 0 : _b.
|
|
318
|
-
yearly_sales_range: ((_c = params.
|
|
317
|
+
customers_served_monthly: parseInt(((_b = params.expectedCustomers) === null || _b === void 0 ? void 0 : _b.id) || '0'),
|
|
318
|
+
yearly_sales_range: ((_c = params.expectedSalesRange) === null || _c === void 0 ? void 0 : _c.title) || '',
|
|
319
319
|
agree_refund: params.refundPolicy,
|
|
320
320
|
agree_chargeback: params.transactionPolicy,
|
|
321
321
|
step_name: BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS
|
|
322
322
|
};
|
|
323
|
-
headers = { entity_id: (_d = business.data.
|
|
323
|
+
headers = { entity_id: (_d = business.data.activitiesData.responseBody) === null || _d === void 0 ? void 0 : _d.entity_id };
|
|
324
324
|
return [4, API.entityService.updateEntityInfo(requestBody, { headers: headers })];
|
|
325
325
|
case 1:
|
|
326
326
|
data = (_g.sent()).data;
|
|
@@ -521,10 +521,10 @@ export var businessSlice = createSlice({
|
|
|
521
521
|
state.error = null;
|
|
522
522
|
})
|
|
523
523
|
.addCase(updateLeadBusinessType.fulfilled, function (state, action) {
|
|
524
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
524
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
525
525
|
state.loading = false;
|
|
526
526
|
state.error = null;
|
|
527
|
-
var
|
|
527
|
+
var _v = action.payload, data = _v.data, formData = _v.formData;
|
|
528
528
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
529
529
|
if (description) {
|
|
530
530
|
state.error = description;
|
|
@@ -533,19 +533,20 @@ export var businessSlice = createSlice({
|
|
|
533
533
|
state.data.businessTypeData = formData;
|
|
534
534
|
var isAr = i18n.dir() === 'rtl';
|
|
535
535
|
state.data.businessInfo.brandName = isAr ? (_c = (_b = data === null || data === void 0 ? void 0 : data.brand) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.ar : (_e = (_d = data === null || data === void 0 ? void 0 : data.brand) === null || _d === void 0 ? void 0 : _d.name) === null || _e === void 0 ? void 0 : _e.en;
|
|
536
|
-
state.data.businessInfo.licenseNumber = data === null || data === void 0 ? void 0 : data.
|
|
537
|
-
state.data.businessInfo.legalName = isAr ? (
|
|
538
|
-
if (!!((
|
|
539
|
-
state.data.activitiesData.operationStartDate = convertNumbers2English(moment((
|
|
536
|
+
state.data.businessInfo.licenseNumber = (_g = (_f = data === null || data === void 0 ? void 0 : data.entity) === null || _f === void 0 ? void 0 : _f.license) === null || _g === void 0 ? void 0 : _g.number;
|
|
537
|
+
state.data.businessInfo.legalName = isAr ? (_j = (_h = data === null || data === void 0 ? void 0 : data.entity) === null || _h === void 0 ? void 0 : _h.legal_name) === null || _j === void 0 ? void 0 : _j.ar : (_l = (_k = data === null || data === void 0 ? void 0 : data.entity) === null || _k === void 0 ? void 0 : _k.legal_name) === null || _l === void 0 ? void 0 : _l.en;
|
|
538
|
+
if (!!((_o = (_m = data === null || data === void 0 ? void 0 : data.entity) === null || _m === void 0 ? void 0 : _m.license) === null || _o === void 0 ? void 0 : _o.issuing_date)) {
|
|
539
|
+
state.data.activitiesData.operationStartDate = convertNumbers2English(moment((_q = (_p = data === null || data === void 0 ? void 0 : data.entity) === null || _p === void 0 ? void 0 : _p.license) === null || _q === void 0 ? void 0 : _q.issuing_date).format('YYYY-MM-DD'));
|
|
540
|
+
}
|
|
540
541
|
if (formData.businessType === BusinessType.CR) {
|
|
541
|
-
var activities = ((
|
|
542
|
+
var activities = ((_s = (_r = data === null || data === void 0 ? void 0 : data.license) === null || _r === void 0 ? void 0 : _r.activities) === null || _s === void 0 ? void 0 : _s.isic) || [];
|
|
542
543
|
var selectedActivity = activities === null || activities === void 0 ? void 0 : activities[0];
|
|
543
544
|
if (!!selectedActivity)
|
|
544
545
|
state.data.activitiesData.activities = [selectedActivity];
|
|
545
546
|
state.data.businessTypeData.responseBody = __assign(__assign({}, data), { activities: activities });
|
|
546
547
|
return;
|
|
547
548
|
}
|
|
548
|
-
var category = (
|
|
549
|
+
var category = (_u = (_t = data === null || data === void 0 ? void 0 : data.license) === null || _t === void 0 ? void 0 : _t.License) === null || _u === void 0 ? void 0 : _u.Category;
|
|
549
550
|
if (!!category)
|
|
550
551
|
state.data.activitiesData.activities = [category];
|
|
551
552
|
state.data.businessTypeData.responseBody = __assign(__assign({}, data), { activities: !!category ? [category] : [] });
|
|
@@ -49,7 +49,7 @@ var _a;
|
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import { handleNextScreenStep } from '../../../app/settings';
|
|
51
51
|
import API from '../../../api';
|
|
52
|
-
import { BRAND_LIST, CONNECT_STEP_NAMES, IDENTIFICATION_TYPE } from '../../../constants';
|
|
52
|
+
import { BRAND_LIST, CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, TWITTER_URL } from '../../../constants';
|
|
53
53
|
import { defaultCountry } from '../../../constants';
|
|
54
54
|
import { getIndividualName, getClientEmailUrl, capitalizeTheFirstLetterOfEachWord, removeRequestHeaders } from '../../../utils';
|
|
55
55
|
export var getCountries = createAsyncThunk('getCountries', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -257,12 +257,14 @@ export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', funct
|
|
|
257
257
|
});
|
|
258
258
|
}); });
|
|
259
259
|
export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
-
var _a, settings, connect, payload, data;
|
|
261
|
-
var _b, _c, _d, _e, _f, _g;
|
|
262
|
-
return __generator(this, function (
|
|
263
|
-
switch (
|
|
260
|
+
var _a, settings, connect, instagram, twitter, payload, data;
|
|
261
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
262
|
+
return __generator(this, function (_k) {
|
|
263
|
+
switch (_k.label) {
|
|
264
264
|
case 0:
|
|
265
265
|
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
266
|
+
instagram = !!((_b = params.links) === null || _b === void 0 ? void 0 : _b.instagram) ? "".concat(INSTAGRAM_URL, "/").concat((_c = params.links) === null || _c === void 0 ? void 0 : _c.twitter) : '';
|
|
267
|
+
twitter = !!((_d = params.links) === null || _d === void 0 ? void 0 : _d.twitter) ? "".concat(TWITTER_URL, "/").concat((_e = params.links) === null || _e === void 0 ? void 0 : _e.twitter) : '';
|
|
266
268
|
payload = {
|
|
267
269
|
brand: {
|
|
268
270
|
name: {
|
|
@@ -270,20 +272,20 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
270
272
|
ar: params.brandName,
|
|
271
273
|
zh: params.brandName
|
|
272
274
|
},
|
|
273
|
-
website: (
|
|
274
|
-
social: [
|
|
275
|
+
website: (_f = params.links) === null || _f === void 0 ? void 0 : _f.website,
|
|
276
|
+
social: [twitter, instagram]
|
|
275
277
|
},
|
|
276
|
-
lead_id: ((
|
|
278
|
+
lead_id: ((_g = connect.data.otpData.responseBody) === null || _g === void 0 ? void 0 : _g.lead_id) || '',
|
|
277
279
|
terms_conditions_accepted: params.termAndConditionChecked,
|
|
278
280
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_MERCHANT,
|
|
279
|
-
encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh']
|
|
281
|
+
encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh', 'social[0]', 'social[1]']
|
|
280
282
|
};
|
|
281
283
|
return [4, API.leadService.updateLead(payload)];
|
|
282
284
|
case 1:
|
|
283
|
-
data = (
|
|
285
|
+
data = (_k.sent()).data;
|
|
284
286
|
if (!data.errors) {
|
|
285
287
|
thunkApi.dispatch(handleNextScreenStep());
|
|
286
|
-
(
|
|
288
|
+
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, params);
|
|
287
289
|
}
|
|
288
290
|
return [2, { response: data, formData: params }];
|
|
289
291
|
}
|
|
@@ -111,7 +111,7 @@ var customerLocations = function (_a) {
|
|
|
111
111
|
};
|
|
112
112
|
var customerLocationsValue = customerLocationsControl.field.value;
|
|
113
113
|
var customerLocationSelected = customerLocationsValue[customerLocationsValue.length - 1];
|
|
114
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('select_customer_base') }), _jsx(InputStyled, { readOnly: true, value: isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.
|
|
114
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('select_customer_base') }), _jsx(InputStyled, { readOnly: true, value: isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.titleAr : customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.title, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: customerLocationsList, placeholder: 'choose_customer_base', onSelectItem: onSelectItem, renderItem: function (item) {
|
|
115
115
|
return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.titleAr : item.title })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIconStyled, {}), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(RemainingCheck, {})] }));
|
|
116
116
|
} }) }))] }) })));
|
|
117
117
|
};
|
|
@@ -72,12 +72,12 @@ var ExpectedCustomers = function (_a) {
|
|
|
72
72
|
}
|
|
73
73
|
}, [response === null || response === void 0 ? void 0 : response.expectedCustomerSales]);
|
|
74
74
|
var onSelectItem = function (expectedCustomers) {
|
|
75
|
-
onCloseList();
|
|
76
75
|
expectedCustomersControl.field.onChange(expectedCustomers);
|
|
76
|
+
onCloseList();
|
|
77
77
|
};
|
|
78
78
|
var expectedCustomersValue = expectedCustomersControl.field.value;
|
|
79
79
|
var expectedCustomersSelected = expectedCustomersValue;
|
|
80
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_customers_to_serve') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.
|
|
80
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_customers_to_serve') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.titleAr : expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.title, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: expectedCustomersList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
81
81
|
return (_jsxs(_Fragment, { children: [_jsx(ListItemContainer, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (expectedCustomersValue === null || expectedCustomersValue === void 0 ? void 0 : expectedCustomersValue.id) }, { children: isAr ? item.titleAr : item.title })) }), item.id === (expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.id) && _jsx(CheckIconStyled, {})] }));
|
|
82
82
|
} }) }))] }) })));
|
|
83
83
|
};
|
|
@@ -78,7 +78,7 @@ var ExpectedSalesRange = function (_a) {
|
|
|
78
78
|
};
|
|
79
79
|
var expectedSalesRangeValue = expectedSalesRangeControl.field.value || expectedSalesRangeList;
|
|
80
80
|
var expectedSalesRangeSelected = expectedSalesRangeValue;
|
|
81
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_yearly') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedSalesRangeSelected === null || expectedSalesRangeSelected === void 0 ? void 0 : expectedSalesRangeSelected.
|
|
81
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_yearly') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedSalesRangeSelected === null || expectedSalesRangeSelected === void 0 ? void 0 : expectedSalesRangeSelected.titleAr : expectedSalesRangeSelected === null || expectedSalesRangeSelected === void 0 ? void 0 : expectedSalesRangeSelected.title, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: expectedSalesRangeList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
82
82
|
return (_jsxs(_Fragment, { children: [_jsx(ListItemContainer, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) }, { children: isAr ? item.titleAr : item.title })) }), item.id === (expectedSalesRangeSelected === null || expectedSalesRangeSelected === void 0 ? void 0 : expectedSalesRangeSelected.id) && _jsx(CheckIconStyled, {})] }));
|
|
83
83
|
} }) }))] }) })));
|
|
84
84
|
};
|