@commercetools-frontend-extensions/export-resources-modal 5.15.0 → 5.15.2

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.
@@ -22,6 +22,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
22
22
  var uiKit = require('@commercetools-frontend/ui-kit');
23
23
  var jsxRuntime = require('@emotion/react/jsx-runtime');
24
24
  var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
25
+ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
25
26
  var applicationComponents = require('@commercetools-frontend/application-components');
26
27
  var fullstory = require('@commercetools-frontend/fullstory');
27
28
  var operations = require('@commercetools-frontend-extensions/operations');
@@ -38,7 +39,6 @@ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
38
39
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
39
40
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
40
41
  var sentry = require('@commercetools-frontend/sentry');
41
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
42
42
  var omitEmpty = require('omit-empty-es');
43
43
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
44
44
  var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/every');
@@ -47,7 +47,6 @@ var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
47
47
  var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
48
48
  var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
49
49
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
50
- var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
51
50
  var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
52
51
  var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
53
52
  var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
@@ -79,13 +78,13 @@ var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_O
79
78
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
80
79
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
81
80
  var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
81
+ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
82
82
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
83
83
  var React__default = /*#__PURE__*/_interopDefault(React);
84
84
  var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
85
85
  var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInstanceProperty);
86
86
  var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
87
87
  var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
88
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
89
88
  var omitEmpty__default = /*#__PURE__*/_interopDefault(omitEmpty);
90
89
  var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
91
90
  var _everyInstanceProperty__default = /*#__PURE__*/_interopDefault(_everyInstanceProperty);
@@ -94,7 +93,6 @@ var _Set__default = /*#__PURE__*/_interopDefault(_Set);
94
93
  var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
95
94
  var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
96
95
  var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
97
- var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
98
96
  var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
99
97
  var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
100
98
  var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
@@ -1002,7 +1000,7 @@ let UnexpectedExportOperationStateError = /*#__PURE__*/function (_Error) {
1002
1000
  function UnexpectedExportOperationStateError(state) {
1003
1001
  var _this;
1004
1002
  _classCallCheck(this, UnexpectedExportOperationStateError);
1005
- _this = _callSuper$3(this, UnexpectedExportOperationStateError, [`Unexpected export operation state "${state}"`]);
1003
+ _this = _callSuper$3(this, UnexpectedExportOperationStateError, ["Unexpected export operation state \"".concat(state, "\"")]);
1006
1004
  _this.name = 'UnexpectedExportOperationStateError';
1007
1005
  return _this;
1008
1006
  }
@@ -1016,7 +1014,7 @@ let UnexpectedResourceTypeError = /*#__PURE__*/function (_Error) {
1016
1014
  function UnexpectedResourceTypeError(resourceType) {
1017
1015
  var _this;
1018
1016
  _classCallCheck(this, UnexpectedResourceTypeError);
1019
- _this = _callSuper$2(this, UnexpectedResourceTypeError, [`Unexpected resource type "${resourceType}"`]);
1017
+ _this = _callSuper$2(this, UnexpectedResourceTypeError, ["Unexpected resource type \"".concat(resourceType, "\"")]);
1020
1018
  _this.name = 'UnexpectedResourceTypeError';
1021
1019
  return _this;
1022
1020
  }
@@ -1063,7 +1061,7 @@ function useExportResourcesModalContext() {
1063
1061
  }
1064
1062
 
1065
1063
  function ownKeys$e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1066
- function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$e(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$e(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1064
+ function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$e(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$e(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1067
1065
  const defaultOptions = {
1068
1066
  storageType: 'local',
1069
1067
  segregateByUser: true
@@ -1073,7 +1071,7 @@ const safeParse = value => {
1073
1071
  if (value === null) return value;
1074
1072
  try {
1075
1073
  return JSON.parse(value);
1076
- } catch {
1074
+ } catch (_unused) {
1077
1075
  return value;
1078
1076
  }
1079
1077
  };
@@ -1097,7 +1095,10 @@ const clearStaleExportModalEntries = (storage, currentKey) => {
1097
1095
  const useStorage = (storageKey, initialStorageValue, options) => {
1098
1096
  var _context;
1099
1097
  const mergedOptions = _objectSpread$e(_objectSpread$e({}, defaultOptions), options);
1100
- const userId = applicationShellConnectors.useApplicationContext(context => context.user?.id);
1098
+ const userId = applicationShellConnectors.useApplicationContext(context => {
1099
+ var _context$user;
1100
+ return (_context$user = context.user) === null || _context$user === void 0 ? void 0 : _context$user.id;
1101
+ });
1101
1102
  const scopedStorageKey = _filterInstanceProperty__default["default"](_context = [mergedOptions.segregateByUser && userId, storageKey]).call(_context, Boolean).join('/');
1102
1103
  const readFromStorage = React.useCallback(() => {
1103
1104
  const rawStorageValue = getStorage(mergedOptions.storageType).getItem(scopedStorageKey);
@@ -1116,8 +1117,9 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1116
1117
  return parsedStorageValue;
1117
1118
  }, [mergedOptions.storageType, scopedStorageKey]);
1118
1119
  const initializeStorageValue = () => {
1120
+ var _ref, _readFromStorage;
1119
1121
  // default the storage value to the initial provided value when provided
1120
- return readFromStorage() ?? initialStorageValue ?? null;
1122
+ return (_ref = (_readFromStorage = readFromStorage()) !== null && _readFromStorage !== void 0 ? _readFromStorage : initialStorageValue) !== null && _ref !== void 0 ? _ref : null;
1121
1123
  };
1122
1124
  const _useState = React.useState(initializeStorageValue),
1123
1125
  _useState2 = _slicedToArray(_useState, 2),
@@ -1137,14 +1139,16 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1137
1139
  storage.setItem(scopedStorageKey, serializedValue);
1138
1140
  writeSucceeded = true;
1139
1141
  } catch (retryError) {
1140
- sentry.reportErrorToSentry(new Error(`Failed to persist "${scopedStorageKey}" to ${mergedOptions.storageType}Storage after cleanup. The selection will not be remembered for future sessions.`), {
1142
+ var _context2;
1143
+ sentry.reportErrorToSentry(new Error(_concatInstanceProperty__default["default"](_context2 = "Failed to persist \"".concat(scopedStorageKey, "\" to ")).call(_context2, mergedOptions.storageType, "Storage after cleanup. The selection will not be remembered for future sessions.")), {
1141
1144
  extra: {
1142
1145
  error: retryError
1143
1146
  }
1144
1147
  });
1145
1148
  }
1146
1149
  } else {
1147
- sentry.reportErrorToSentry(new Error(`Failed to persist "${scopedStorageKey}" to ${mergedOptions.storageType}Storage. The selection will not be remembered for future sessions.`), {
1150
+ var _context3;
1151
+ sentry.reportErrorToSentry(new Error(_concatInstanceProperty__default["default"](_context3 = "Failed to persist \"".concat(scopedStorageKey, "\" to ")).call(_context3, mergedOptions.storageType, "Storage. The selection will not be remembered for future sessions.")), {
1148
1152
  extra: {
1149
1153
  error
1150
1154
  }
@@ -1169,7 +1173,7 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1169
1173
  };
1170
1174
 
1171
1175
  function resourceTypeToFileName(resourceType, locale) {
1172
- var _context;
1176
+ var _context, _context2, _context3, _context4;
1173
1177
  const date = new Date();
1174
1178
  const dateFormatter = new Intl.DateTimeFormat(locale, {
1175
1179
  year: '2-digit',
@@ -1187,7 +1191,7 @@ function resourceTypeToFileName(resourceType, locale) {
1187
1191
  return acc;
1188
1192
  }, {});
1189
1193
  const orderedDateParts = _mapInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](parts).call(parts, part => part.type === 'day' || part.type === 'month' || part.type === 'year')).call(_context, part => dateParts[part.type]).join('-');
1190
- const formattedDate = `${orderedDateParts}_${dateParts.hour}-${dateParts.minute}`;
1194
+ const formattedDate = _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(orderedDateParts, "_")).call(_context3, dateParts.hour, "-")).call(_context2, dateParts.minute);
1191
1195
  const resourceTypeMap = {
1192
1196
  [EXPORTABLE_RESOURCES.CATEGORY]: 'Categories',
1193
1197
  [EXPORTABLE_RESOURCES.PRODUCT]: 'Products',
@@ -1204,7 +1208,7 @@ function resourceTypeToFileName(resourceType, locale) {
1204
1208
  if (!displayName) {
1205
1209
  throw new UnexpectedResourceTypeError(resourceType);
1206
1210
  }
1207
- return `${displayName}_Export_${formattedDate}`;
1211
+ return _concatInstanceProperty__default["default"](_context4 = "".concat(displayName, "_Export_")).call(_context4, formattedDate);
1208
1212
  }
1209
1213
  function mapLocalesToOptions(locales) {
1210
1214
  return _mapInstanceProperty__default["default"](locales).call(locales, locale => ({
@@ -1241,9 +1245,9 @@ function sortFieldsByFieldOrder(_ref) {
1241
1245
  return fieldNames;
1242
1246
  }
1243
1247
  function buildSelectedExportFilters(selectedResourceIds) {
1244
- if (!selectedResourceIds || selectedResourceIds?.length === 0) return undefined;
1245
- const formattedIds = _mapInstanceProperty__default["default"](selectedResourceIds).call(selectedResourceIds, id => `"${id}"`).join(', ');
1246
- return `id in (${formattedIds})`;
1248
+ if (!selectedResourceIds || (selectedResourceIds === null || selectedResourceIds === void 0 ? void 0 : selectedResourceIds.length) === 0) return undefined;
1249
+ const formattedIds = _mapInstanceProperty__default["default"](selectedResourceIds).call(selectedResourceIds, id => "\"".concat(id, "\"")).join(', ');
1250
+ return "id in (".concat(formattedIds, ")");
1247
1251
  }
1248
1252
  function isQueryFilter(filters) {
1249
1253
  if (!filters) return false;
@@ -1264,28 +1268,29 @@ function validateFilters(filtersObject) {
1264
1268
  return Boolean(isQueryFilter(filtersObject.filters) || isSearchFilter(filtersObject.filters) || isPredicateFilter(filtersObject));
1265
1269
  }
1266
1270
  function areFiltersApplied(filtersObject) {
1267
- var _context2;
1271
+ var _context5;
1268
1272
  if (!filtersObject) {
1269
1273
  return false;
1270
1274
  }
1271
- if (filtersObject.where && _trimInstanceProperty__default["default"](_context2 = filtersObject.where).call(_context2) !== '') {
1275
+ if (filtersObject.where && _trimInstanceProperty__default["default"](_context5 = filtersObject.where).call(_context5) !== '') {
1272
1276
  return true;
1273
1277
  }
1274
1278
  if (isQueryFilter(filtersObject.filters)) {
1275
1279
  return Boolean(filtersObject.filters.query);
1276
1280
  }
1277
1281
  if (isSearchFilter(filtersObject.filters)) {
1278
- var _context3, _context4;
1282
+ var _filters$filters, _filters$fullText;
1279
1283
  const _filters = filtersObject.filters;
1280
- return Boolean(_filters.filters?.length || ((_context3 = _filters.fullText?.text) == null ? void 0 : _bindInstanceProperty__default["default"](_context4 = Function.call).call(_context4, _trimInstanceProperty__default["default"](_context3), _context3))?.());
1284
+ return Boolean(((_filters$filters = _filters.filters) === null || _filters$filters === void 0 ? void 0 : _filters$filters.length) || ((_filters$fullText = _filters.fullText) === null || _filters$fullText === void 0 || (_filters$fullText = _filters$fullText.text) === null || _filters$fullText === void 0 ? void 0 : _trimInstanceProperty__default["default"](_filters$fullText).call(_filters$fullText)));
1281
1285
  }
1282
1286
  return false;
1283
1287
  }
1284
1288
  function getInitialExportType(args) {
1285
- if (args.selectedResourceIds?.length) {
1289
+ var _args$selectedResourc, _args$filters;
1290
+ if ((_args$selectedResourc = args.selectedResourceIds) !== null && _args$selectedResourc !== void 0 && _args$selectedResourc.length) {
1286
1291
  return EXPORT_TYPES.SELECTED;
1287
1292
  }
1288
- if (args.filters?.total && areFiltersApplied(args.filters)) {
1293
+ if ((_args$filters = args.filters) !== null && _args$filters !== void 0 && _args$filters.total && areFiltersApplied(args.filters)) {
1289
1294
  return EXPORT_TYPES.FILTERED;
1290
1295
  }
1291
1296
  return EXPORT_TYPES.ALL;
@@ -1299,7 +1304,7 @@ const isAnyFieldChecked = fields => {
1299
1304
  };
1300
1305
  const hasDependentFields = field => {
1301
1306
  var _context;
1302
- return Boolean(field?.dependentGroupNames && field.dependentGroupNames.length > 0 || field?.dependentFieldNames && field.dependentFieldNames.length > 0 || field?.fields && _someInstanceProperty__default["default"](_context = field.fields).call(_context, nestedField => hasDependentFields(nestedField)));
1307
+ return Boolean((field === null || field === void 0 ? void 0 : field.dependentGroupNames) && field.dependentGroupNames.length > 0 || (field === null || field === void 0 ? void 0 : field.dependentFieldNames) && field.dependentFieldNames.length > 0 || (field === null || field === void 0 ? void 0 : field.fields) && _someInstanceProperty__default["default"](_context = field.fields).call(_context, nestedField => hasDependentFields(nestedField)));
1303
1308
  };
1304
1309
  const isFieldOrNestedFieldChecked = (field, fieldName) => {
1305
1310
  if (field.name === fieldName && field.isChecked) {
@@ -1317,7 +1322,8 @@ const getIndependentFields = group => {
1317
1322
  const independentFields = [];
1318
1323
  const findIndependentFields = fields => {
1319
1324
  _forEachInstanceProperty__default["default"](fields).call(fields, field => {
1320
- if (!field.dependentGroupNames?.length && !field.dependentFieldNames?.length) {
1325
+ var _field$dependentGroup, _field$dependentField;
1326
+ if (!((_field$dependentGroup = field.dependentGroupNames) !== null && _field$dependentGroup !== void 0 && _field$dependentGroup.length) && !((_field$dependentField = field.dependentFieldNames) !== null && _field$dependentField !== void 0 && _field$dependentField.length)) {
1321
1327
  independentFields.push(field);
1322
1328
  }
1323
1329
  if (field.fields) {
@@ -1411,11 +1417,12 @@ const extractFieldNamesFromGroups = (groups, fieldOrder) => {
1411
1417
  let checkedFields = [];
1412
1418
  const getCheckedFields = fields => {
1413
1419
  return _filterInstanceProperty__default["default"](fields).call(fields, field => {
1420
+ var _field$isChecked;
1414
1421
  if (field.fields) {
1415
1422
  return getCheckedFields(field.fields);
1416
1423
  }
1417
1424
  if (field.isChecked) checkedFields.push(field);
1418
- return field.isChecked ?? false;
1425
+ return (_field$isChecked = field.isChecked) !== null && _field$isChecked !== void 0 ? _field$isChecked : false;
1419
1426
  });
1420
1427
  };
1421
1428
  _forEachInstanceProperty__default["default"](groups).call(groups, group => {
@@ -1497,7 +1504,7 @@ function isFieldNameValid(header) {
1497
1504
  }
1498
1505
 
1499
1506
  function ownKeys$d(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1500
- function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$d(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1507
+ function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$d(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$d(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1501
1508
  const updateFieldGroupsWithIsCheckedValue = (groups, cachedSelectedGroups) => {
1502
1509
  const updateFields = (fields, isParentChecked, parentFieldPath) => {
1503
1510
  return _mapInstanceProperty__default["default"](fields).call(fields, field => {
@@ -1505,8 +1512,10 @@ const updateFieldGroupsWithIsCheckedValue = (groups, cachedSelectedGroups) => {
1505
1512
  if (field.isRequired) {
1506
1513
  isChecked = true;
1507
1514
  } else {
1508
- if (cachedSelectedGroups[`${parentFieldPath}.${field.name}`] !== undefined) {
1509
- isChecked = cachedSelectedGroups[`${parentFieldPath}.${field.name}`];
1515
+ var _context;
1516
+ if (cachedSelectedGroups[_concatInstanceProperty__default["default"](_context = "".concat(parentFieldPath, ".")).call(_context, field.name)] !== undefined) {
1517
+ var _context2;
1518
+ isChecked = cachedSelectedGroups[_concatInstanceProperty__default["default"](_context2 = "".concat(parentFieldPath, ".")).call(_context2, field.name)];
1510
1519
  } else if (!hasDependentFields(field) && field.isSelectedByDefault) {
1511
1520
  isChecked = true;
1512
1521
  } else if (isParentChecked) {
@@ -1515,7 +1524,8 @@ const updateFieldGroupsWithIsCheckedValue = (groups, cachedSelectedGroups) => {
1515
1524
  }
1516
1525
  let updatedFields = field.fields;
1517
1526
  if (field.fields) {
1518
- updatedFields = updateFields(field.fields, isChecked, `${parentFieldPath}.${field.name}`);
1527
+ var _context3;
1528
+ updatedFields = updateFields(field.fields, isChecked, _concatInstanceProperty__default["default"](_context3 = "".concat(parentFieldPath, ".")).call(_context3, field.name));
1519
1529
  isChecked = false;
1520
1530
  }
1521
1531
  return _objectSpread$d(_objectSpread$d({}, field), {}, {
@@ -1562,14 +1572,15 @@ const updateFieldGroupWithAdditionalFieldExtensions = groups => {
1562
1572
  });
1563
1573
  };
1564
1574
  const getIsExpanded = (field, groupName, cachedExpandedGroups) => {
1575
+ var _context4, _ref, _cachedExpandedGroups;
1565
1576
  if (!field.isExpandable) {
1566
1577
  return false;
1567
1578
  }
1568
1579
  if (field.fields && field.maxVisibleChildren && field.fields.length > field.maxVisibleChildren) {
1569
1580
  return false;
1570
1581
  }
1571
- const cacheKey = `${groupName}.${field.name}`;
1572
- return cachedExpandedGroups[cacheKey] ?? field.isExpanded ?? false;
1582
+ const cacheKey = _concatInstanceProperty__default["default"](_context4 = "".concat(groupName, ".")).call(_context4, field.name);
1583
+ return (_ref = (_cachedExpandedGroups = cachedExpandedGroups[cacheKey]) !== null && _cachedExpandedGroups !== void 0 ? _cachedExpandedGroups : field.isExpanded) !== null && _ref !== void 0 ? _ref : false;
1573
1584
  };
1574
1585
  const updateFieldGroupsWithIsExpandedValue = (groups, cachedExpandedGroups) => {
1575
1586
  function updateFields(fields, groupName) {
@@ -1590,28 +1601,33 @@ const updateFieldGroupsWithIsExpandedValue = (groups, cachedExpandedGroups) => {
1590
1601
  });
1591
1602
  }
1592
1603
  return _mapInstanceProperty__default["default"](groups).call(groups, group => {
1604
+ var _ref2, _cachedExpandedGroups2;
1593
1605
  const updatedFields = updateFields(group.fields, group.groupName);
1594
1606
  return _objectSpread$d(_objectSpread$d({}, group), {}, {
1595
- isExpanded: cachedExpandedGroups[group.groupName] ?? group.isExpanded ?? false,
1607
+ isExpanded: (_ref2 = (_cachedExpandedGroups2 = cachedExpandedGroups[group.groupName]) !== null && _cachedExpandedGroups2 !== void 0 ? _cachedExpandedGroups2 : group.isExpanded) !== null && _ref2 !== void 0 ? _ref2 : false,
1596
1608
  fields: updatedFields
1597
1609
  });
1598
1610
  });
1599
1611
  };
1600
1612
  const updateFieldDependenciesStatus = formik => {
1601
- var _context;
1613
+ var _context6;
1602
1614
  const updateFields = (fields, path) => {
1603
1615
  _forEachInstanceProperty__default["default"](fields).call(fields, (field, index) => {
1604
- const currentPath = `${path}.fields[${index}]`;
1616
+ var _context5;
1617
+ const currentPath = _concatInstanceProperty__default["default"](_context5 = "".concat(path, ".fields[")).call(_context5, index, "]");
1605
1618
  if (hasDependentFields(field)) {
1606
- formik.setFieldValue(`${currentPath}.isChecked`, isAnyDependentChecked(_valuesInstanceProperty__default["default"](formik).groups, field.dependentGroupNames, field.dependentFieldNames), false);
1619
+ const nextIsChecked = isAnyDependentChecked(_valuesInstanceProperty__default["default"](formik).groups, field.dependentGroupNames, field.dependentFieldNames);
1620
+ if (field.isChecked !== nextIsChecked) {
1621
+ formik.setFieldValue("".concat(currentPath, ".isChecked"), nextIsChecked, false);
1622
+ }
1607
1623
  }
1608
1624
  if (field.fields) {
1609
1625
  updateFields(field.fields, currentPath);
1610
1626
  }
1611
1627
  });
1612
1628
  };
1613
- _forEachInstanceProperty__default["default"](_context = _valuesInstanceProperty__default["default"](formik).groups).call(_context, (group, index) => {
1614
- updateFields(group.fields, `groups[${index}]`);
1629
+ _forEachInstanceProperty__default["default"](_context6 = _valuesInstanceProperty__default["default"](formik).groups).call(_context6, (group, index) => {
1630
+ updateFields(group.fields, "groups[".concat(index, "]"));
1615
1631
  });
1616
1632
  };
1617
1633
 
@@ -1631,8 +1647,8 @@ const getCsvHeaders = file => {
1631
1647
  };
1632
1648
  reader.onload = e => {
1633
1649
  try {
1634
- var _context, _context2;
1635
- const text = e.target?.result;
1650
+ var _e$target, _context, _context2;
1651
+ const text = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
1636
1652
  entireFile += text;
1637
1653
  const firstLineEnd = _indexOfInstanceProperty__default["default"](entireFile).call(entireFile, '\n');
1638
1654
  if (firstLineEnd === -1 && offset < file.size) {
@@ -1655,29 +1671,30 @@ const getCsvHeaders = file => {
1655
1671
  };
1656
1672
 
1657
1673
  function ownKeys$c(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1658
- function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$c(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$c(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1674
+ function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$c(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$c(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1659
1675
  function groupFieldValidationErrors(errors, intl) {
1660
- var _context2, _context4;
1676
+ var _context3, _context5;
1661
1677
  const errorsByCode = _reduceInstanceProperty__default["default"](errors).call(errors, (groups, error) => {
1662
- var _context;
1663
- const groupKey = error.code === 'AttributeLevelMismatch' && error.actualLevel ? `${error.code}-${error.actualLevel}` : error.code;
1678
+ var _context, _context2;
1679
+ const groupKey = error.code === 'AttributeLevelMismatch' && error.actualLevel ? _concatInstanceProperty__default["default"](_context = "".concat(error.code, "-")).call(_context, error.actualLevel) : error.code;
1664
1680
  const group = groups[groupKey] || {
1665
1681
  code: error.code,
1666
1682
  originalErrors: [],
1667
1683
  fieldNames: []
1668
1684
  };
1669
- if (error.field && !_includesInstanceProperty__default["default"](_context = group.fieldNames).call(_context, error.field)) {
1685
+ if (error.field && !_includesInstanceProperty__default["default"](_context2 = group.fieldNames).call(_context2, error.field)) {
1670
1686
  group.fieldNames.push(error.field);
1671
1687
  }
1672
1688
  group.originalErrors.push(error);
1673
1689
  groups[groupKey] = group;
1674
1690
  return groups;
1675
1691
  }, {});
1676
- _forEachInstanceProperty__default["default"](_context2 = _Object$values__default["default"](errorsByCode)).call(_context2, group => {
1677
- var _context3;
1678
- _sortInstanceProperty__default["default"](_context3 = group.fieldNames).call(_context3);
1692
+ _forEachInstanceProperty__default["default"](_context3 = _Object$values__default["default"](errorsByCode)).call(_context3, group => {
1693
+ var _context4;
1694
+ _sortInstanceProperty__default["default"](_context4 = group.fieldNames).call(_context4);
1679
1695
  });
1680
- return _mapInstanceProperty__default["default"](_context4 = _Object$values__default["default"](errorsByCode)).call(_context4, group => {
1696
+ return _mapInstanceProperty__default["default"](_context5 = _Object$values__default["default"](errorsByCode)).call(_context5, group => {
1697
+ var _group$originalErrors;
1681
1698
  let messageTitle;
1682
1699
  switch (group.code) {
1683
1700
  case 'NotSupportedField':
@@ -1701,21 +1718,21 @@ function groupFieldValidationErrors(errors, intl) {
1701
1718
  case 'AttributeLevelMismatch':
1702
1719
  {
1703
1720
  const referenceError = group.originalErrors[0];
1704
- if (referenceError?.actualLevel === 'Product') {
1721
+ if ((referenceError === null || referenceError === void 0 ? void 0 : referenceError.actualLevel) === 'Product') {
1705
1722
  messageTitle = intl.formatMessage(messages.attributeLevelMismatchProductLevelTitle, {
1706
1723
  b: getSmallBold
1707
1724
  });
1708
- } else if (referenceError?.actualLevel === 'Variant') {
1725
+ } else if ((referenceError === null || referenceError === void 0 ? void 0 : referenceError.actualLevel) === 'Variant') {
1709
1726
  messageTitle = intl.formatMessage(messages.attributeLevelMismatchVariantLevelTitle, {
1710
1727
  b: getSmallBold
1711
1728
  });
1712
1729
  } else {
1713
- messageTitle = referenceError?.message || intl.formatMessage(messages.unknownError);
1730
+ messageTitle = (referenceError === null || referenceError === void 0 ? void 0 : referenceError.message) || intl.formatMessage(messages.unknownError);
1714
1731
  }
1715
1732
  break;
1716
1733
  }
1717
1734
  default:
1718
- messageTitle = group.originalErrors[0]?.message || intl.formatMessage(messages.unknownError);
1735
+ messageTitle = ((_group$originalErrors = group.originalErrors[0]) === null || _group$originalErrors === void 0 ? void 0 : _group$originalErrors.message) || intl.formatMessage(messages.unknownError);
1719
1736
  }
1720
1737
  return _objectSpread$c(_objectSpread$c({}, group), {}, {
1721
1738
  messageTitle
@@ -1735,22 +1752,28 @@ function isExportApiErrorResponse(error) {
1735
1752
  }
1736
1753
 
1737
1754
  const useInitialValues = props => {
1738
- var _context;
1739
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
1740
- locale: applicationContext.dataLocale,
1741
- userLocale: applicationContext.user?.locale
1742
- })),
1755
+ var _context, _context2, _context3;
1756
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
1757
+ var _applicationContext$u;
1758
+ return {
1759
+ locale: applicationContext.dataLocale,
1760
+ userLocale: (_applicationContext$u = applicationContext.user) === null || _applicationContext$u === void 0 ? void 0 : _applicationContext$u.locale
1761
+ };
1762
+ }),
1743
1763
  locale = _useApplicationContex.locale,
1744
1764
  userLocale = _useApplicationContex.userLocale;
1745
- const _useApplicationContex2 = applicationShellConnectors.useApplicationContext(context => ({
1746
- projectKey: context.project?.key
1747
- })),
1765
+ const _useApplicationContex2 = applicationShellConnectors.useApplicationContext(context => {
1766
+ var _context$project;
1767
+ return {
1768
+ projectKey: (_context$project = context.project) === null || _context$project === void 0 ? void 0 : _context$project.key
1769
+ };
1770
+ }),
1748
1771
  projectKey = _useApplicationContex2.projectKey;
1749
- const _useStorage = useStorage(`${projectKey}/${OPERATIONS_EXPORT_RESOURCES_MODAL_SELECTION}`, {}),
1772
+ const _useStorage = useStorage(_concatInstanceProperty__default["default"](_context = "".concat(projectKey, "/")).call(_context, OPERATIONS_EXPORT_RESOURCES_MODAL_SELECTION), {}),
1750
1773
  _useStorage2 = _slicedToArray(_useStorage, 1),
1751
1774
  cachedSelectedGroups = _useStorage2[0];
1752
- const _useStorage3 = useStorage(`${projectKey}/${OPERATIONS_EXPORT_RESOURCES_MODAL_EXPANDED_GROUP}`, {
1753
- [props.resourceType]: _reduceInstanceProperty__default["default"](_context = props.fieldGroups).call(_context, (acc, group) => {
1775
+ const _useStorage3 = useStorage(_concatInstanceProperty__default["default"](_context2 = "".concat(projectKey, "/")).call(_context2, OPERATIONS_EXPORT_RESOURCES_MODAL_EXPANDED_GROUP), {
1776
+ [props.resourceType]: _reduceInstanceProperty__default["default"](_context3 = props.fieldGroups).call(_context3, (acc, group) => {
1754
1777
  acc[group.groupName] = group.isExpanded;
1755
1778
  return acc;
1756
1779
  }, {})
@@ -1759,10 +1782,10 @@ const useInitialValues = props => {
1759
1782
  cachedExpandedGroups = _useStorage4[0];
1760
1783
  return React__default["default"].useMemo(() => {
1761
1784
  let groups = removeEmptyGroups(props.fieldGroups);
1762
- groups = updateFieldGroupsWithIsCheckedValue(groups, cachedSelectedGroups?.[props.resourceType] || {});
1763
- groups = updateFieldGroupsWithIsExpandedValue(groups, cachedExpandedGroups?.[props.resourceType] || {});
1785
+ groups = updateFieldGroupsWithIsCheckedValue(groups, (cachedSelectedGroups === null || cachedSelectedGroups === void 0 ? void 0 : cachedSelectedGroups[props.resourceType]) || {});
1786
+ groups = updateFieldGroupsWithIsExpandedValue(groups, (cachedExpandedGroups === null || cachedExpandedGroups === void 0 ? void 0 : cachedExpandedGroups[props.resourceType]) || {});
1764
1787
  return {
1765
- fileName: `${resourceTypeToFileName(props.resourceType, userLocale)}`,
1788
+ fileName: "".concat(resourceTypeToFileName(props.resourceType, userLocale)),
1766
1789
  locales: [locale],
1767
1790
  groups: updateFieldGroupWithAdditionalFieldExtensions(groups),
1768
1791
  queryPredicate: '',
@@ -1782,7 +1805,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _
1782
1805
  async function makeExportRequest(params, asyncDispatchFn) {
1783
1806
  const projectKey = params.projectKey,
1784
1807
  requestData = _objectWithoutProperties(params, _excluded$3);
1785
- const uri = `/${projectKey}/export-operations`;
1808
+ const uri = "/".concat(projectKey, "/export-operations");
1786
1809
  const requestAction = sdk.actions.post({
1787
1810
  mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.EXPORT,
1788
1811
  uri,
@@ -1813,22 +1836,27 @@ function validateExportOperation(params, asyncDispatchFn) {
1813
1836
  }
1814
1837
 
1815
1838
  const mergeWhereClause = (base, user) => {
1839
+ var _context;
1816
1840
  if (!base && !user) return undefined;
1817
1841
  if (base && !user) return base;
1818
1842
  if (!base && user) return user;
1819
- return `(${base}) and (${user})`;
1843
+ return _concatInstanceProperty__default["default"](_context = "(".concat(base, ") and (")).call(_context, user, ")");
1820
1844
  };
1821
1845
  const useStartExportOperation = props => {
1822
1846
  const intl = reactIntl.useIntl();
1823
1847
  const asyncDispatch = sdk.useAsyncDispatch();
1824
1848
  const showNotification = actionsGlobal.useShowNotification();
1825
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
1826
- locale: applicationContext.dataLocale,
1827
- projectKey: applicationContext.project?.key
1828
- })),
1849
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
1850
+ var _applicationContext$p;
1851
+ return {
1852
+ locale: applicationContext.dataLocale,
1853
+ projectKey: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.key
1854
+ };
1855
+ }),
1829
1856
  projectKey = _useApplicationContex.projectKey;
1830
1857
  const startExportOperation = async (values, exportType, fieldSelectionMode, localeOption, importedHeaders, selectedStoreKey) => {
1831
1858
  try {
1859
+ var _props$selectedResour, _props$baseFilters;
1832
1860
  if (!projectKey) throw new Error('Project key is missing');
1833
1861
  let fields = [];
1834
1862
  if (fieldSelectionMode === 'imported-csv-template' && values.importedCsvTemplateFile) {
@@ -1838,7 +1866,7 @@ const useStartExportOperation = props => {
1838
1866
  }
1839
1867
  let where = undefined;
1840
1868
  let filters = undefined;
1841
- if (exportType === EXPORT_TYPES.SELECTED && props.selectedResourceIds?.length) {
1869
+ if (exportType === EXPORT_TYPES.SELECTED && (_props$selectedResour = props.selectedResourceIds) !== null && _props$selectedResour !== void 0 && _props$selectedResour.length) {
1842
1870
  where = props.selectedScopeQueryPredicateBuilder ? props.selectedScopeQueryPredicateBuilder(props.selectedResourceIds) : buildSelectedExportFilters(props.selectedResourceIds);
1843
1871
  } else if (exportType === EXPORT_TYPES.FILTERED && props.filters) {
1844
1872
  where = props.filters.where;
@@ -1848,12 +1876,12 @@ const useStartExportOperation = props => {
1848
1876
  filters = props.filters.filters;
1849
1877
  }
1850
1878
  } else if (exportType === EXPORT_TYPES.QUERY_PREDICATE) {
1851
- var _context;
1852
- where = _trimInstanceProperty__default["default"](_context = values.queryPredicate).call(_context);
1879
+ var _context2;
1880
+ where = _trimInstanceProperty__default["default"](_context2 = values.queryPredicate).call(_context2);
1853
1881
  } else if (exportType === EXPORT_TYPES.SPECIFIC_STORE) {
1854
- where = `store(key="${selectedStoreKey}")`;
1882
+ where = "store(key=\"".concat(selectedStoreKey, "\")");
1855
1883
  }
1856
- where = mergeWhereClause(props.baseFilters?.where, where);
1884
+ where = mergeWhereClause((_props$baseFilters = props.baseFilters) === null || _props$baseFilters === void 0 ? void 0 : _props$baseFilters.where, where);
1857
1885
  let locales = undefined;
1858
1886
  if (localeOption !== 'onlyLocalesFoundInCsvFile') {
1859
1887
  locales = values.locales;
@@ -1930,7 +1958,7 @@ const useStartExportOperation = props => {
1930
1958
 
1931
1959
  const _excluded$2 = ["fields"];
1932
1960
  function ownKeys$a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1933
- function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$a(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$a(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1961
+ function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$a(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$a(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1934
1962
  const getFieldFullName = _ref => {
1935
1963
  var _context;
1936
1964
  let fieldPrefix = _ref.fieldPrefix,
@@ -1940,7 +1968,6 @@ const getFieldFullName = _ref => {
1940
1968
  const localizeTypeDefinitionLabels = function () {
1941
1969
  let fieldDefinitions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1942
1970
  return _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, _ref2 => {
1943
- var _context2, _context3;
1944
1971
  let fields = _ref2.fields,
1945
1972
  fieldsType = _objectWithoutProperties(_ref2, _excluded$2);
1946
1973
  const isFieldTypeLabelLocalized = _Array$isArray__default["default"](fieldsType.label);
@@ -1950,7 +1977,7 @@ const localizeTypeDefinitionLabels = function () {
1950
1977
  from: 'label',
1951
1978
  to: 'label'
1952
1979
  }]).label : fieldsType.label,
1953
- fields: ((_context2 = fields) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _mapInstanceProperty__default["default"](_context2), _context2))?.(field => {
1980
+ fields: (fields === null || fields === void 0 ? void 0 : _mapInstanceProperty__default["default"](fields).call(fields, field => {
1954
1981
  const isFieldLabelLocalized = _Array$isArray__default["default"](field.label);
1955
1982
  if (!isFieldLabelLocalized) {
1956
1983
  return field;
@@ -1959,22 +1986,26 @@ const localizeTypeDefinitionLabels = function () {
1959
1986
  from: 'label',
1960
1987
  to: 'label'
1961
1988
  }]));
1962
- }) || []
1989
+ })) || []
1963
1990
  };
1964
1991
  });
1965
1992
  };
1966
1993
  const useConvertFieldDefinitionsForExport = () => {
1967
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
1968
- language: applicationContext.dataLocale,
1969
- languages: applicationContext.project?.languages
1970
- })),
1994
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
1995
+ var _applicationContext$p;
1996
+ return {
1997
+ language: applicationContext.dataLocale,
1998
+ languages: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.languages
1999
+ };
2000
+ }),
1971
2001
  language = _useApplicationContex.language,
1972
2002
  languages = _useApplicationContex.languages;
1973
2003
  const sortByField = (fields, fieldName) => {
1974
2004
  if (!fields) return [];
1975
2005
  if (fieldName) {
1976
2006
  return sortBy__default["default"](fields, field => {
1977
- return field[fieldName]?.toLowerCase();
2007
+ var _field$fieldName;
2008
+ return (_field$fieldName = field[fieldName]) === null || _field$fieldName === void 0 ? void 0 : _field$fieldName.toLowerCase();
1978
2009
  });
1979
2010
  }
1980
2011
  return fields;
@@ -1988,7 +2019,7 @@ const useConvertFieldDefinitionsForExport = () => {
1988
2019
  if (!fieldDefinitions) return [];
1989
2020
  const localizedTypeDefinitions = localizeTypeDefinitionLabels(fieldDefinitions);
1990
2021
  const results = _mapInstanceProperty__default["default"](localizedTypeDefinitions).call(localizedTypeDefinitions, transformedType => {
1991
- var _context4, _context5;
2022
+ var _transformedType$fiel;
1992
2023
  const isTypeLabelLocalized = typeof transformedType.label !== 'string';
1993
2024
  return {
1994
2025
  isExpandable: true,
@@ -2002,7 +2033,7 @@ const useConvertFieldDefinitionsForExport = () => {
2002
2033
  fallbackOrder: languages,
2003
2034
  fallback: transformedType.name
2004
2035
  }) : transformedType.label,
2005
- fields: sortByField(((_context4 = transformedType.fields) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _mapInstanceProperty__default["default"](_context4), _context4))?.(fieldDefinition => {
2036
+ fields: sortByField((_transformedType$fiel = transformedType.fields) === null || _transformedType$fiel === void 0 ? void 0 : _mapInstanceProperty__default["default"](_transformedType$fiel).call(_transformedType$fiel, fieldDefinition => {
2006
2037
  const isFieldLabelLocalized = typeof fieldDefinition.label !== 'string';
2007
2038
  return {
2008
2039
  name: getFieldFullName({
@@ -2033,13 +2064,16 @@ const useValidateExportOperation = () => {
2033
2064
  const intl = reactIntl.useIntl();
2034
2065
  const asyncDispatch = sdk.useAsyncDispatch();
2035
2066
  const showNotification = actionsGlobal.useShowNotification();
2036
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
2037
- projectKey: context.project?.key
2038
- })),
2067
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => {
2068
+ var _context$project;
2069
+ return {
2070
+ projectKey: (_context$project = context.project) === null || _context$project === void 0 ? void 0 : _context$project.key
2071
+ };
2072
+ }),
2039
2073
  projectKey = _useApplicationContex.projectKey;
2040
2074
  const validateExport = async params => {
2041
2075
  try {
2042
- var _context, _context2, _context3;
2076
+ var _context, _params$queryPredicat;
2043
2077
  if (!projectKey) return;
2044
2078
  const invalidFields = _filterInstanceProperty__default["default"](_context = params.fields).call(_context, field => !isFieldNameValid(field));
2045
2079
  if (invalidFields.length > 0) {
@@ -2058,7 +2092,7 @@ const useValidateExportOperation = () => {
2058
2092
  fileFormat: params.outputFormat,
2059
2093
  fields: params.fields,
2060
2094
  locales: params.locales,
2061
- where: ((_context2 = params.queryPredicate) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _trimInstanceProperty__default["default"](_context2), _context2))?.() || undefined
2095
+ where: ((_params$queryPredicat = params.queryPredicate) === null || _params$queryPredicat === void 0 ? void 0 : _trimInstanceProperty__default["default"](_params$queryPredicat).call(_params$queryPredicat)) || undefined
2062
2096
  }, asyncDispatch);
2063
2097
  if (isExportApiSuccessResponse(response) && response.resourceCount === 0) {
2064
2098
  return {
@@ -2071,11 +2105,12 @@ const useValidateExportOperation = () => {
2071
2105
  };
2072
2106
  } catch (error) {
2073
2107
  if (isExportApiErrorResponse(error)) {
2074
- if (error.body.errors?.length) {
2075
- var _context4;
2076
- const whereError = _findInstanceProperty__default["default"](_context4 = error.body.errors).call(_context4, error => {
2077
- var _context5;
2078
- return error.message && _includesInstanceProperty__default["default"](_context5 = error.message).call(_context5, 'Malformed parameter: where');
2108
+ var _error$body$errors, _error$body$validatio;
2109
+ if ((_error$body$errors = error.body.errors) !== null && _error$body$errors !== void 0 && _error$body$errors.length) {
2110
+ var _context2;
2111
+ const whereError = _findInstanceProperty__default["default"](_context2 = error.body.errors).call(_context2, error => {
2112
+ var _context3;
2113
+ return error.message && _includesInstanceProperty__default["default"](_context3 = error.message).call(_context3, 'Malformed parameter: where');
2079
2114
  });
2080
2115
  if (whereError) {
2081
2116
  return {
@@ -2084,7 +2119,7 @@ const useValidateExportOperation = () => {
2084
2119
  };
2085
2120
  }
2086
2121
  }
2087
- if (error.body.validationErrors?.length) {
2122
+ if ((_error$body$validatio = error.body.validationErrors) !== null && _error$body$validatio !== void 0 && _error$body$validatio.length) {
2088
2123
  return {
2089
2124
  success: false,
2090
2125
  validationErrors: error.body.validationErrors
@@ -2262,10 +2297,10 @@ function ExportScopeSection() {
2262
2297
  })
2263
2298
  }), !hideExportSelectedResourcesOption && jsxRuntime.jsx(uiKit.RadioInput.Option, {
2264
2299
  value: EXPORT_TYPES.SELECTED,
2265
- isDisabled: !selectedResourceIds?.length,
2300
+ isDisabled: !(selectedResourceIds !== null && selectedResourceIds !== void 0 && selectedResourceIds.length),
2266
2301
  children: jsxRuntime.jsx(uiKit.Text.Body, {
2267
- tone: !selectedResourceIds?.length ? 'tertiary' : undefined,
2268
- intlMessage: selectedResourceIds?.length ? _objectSpread$8(_objectSpread$8({}, resourceTypeMessages[resourceType].exportScopeSelected), {}, {
2302
+ tone: !(selectedResourceIds !== null && selectedResourceIds !== void 0 && selectedResourceIds.length) ? 'tertiary' : undefined,
2303
+ intlMessage: selectedResourceIds !== null && selectedResourceIds !== void 0 && selectedResourceIds.length ? _objectSpread$8(_objectSpread$8({}, resourceTypeMessages[resourceType].exportScopeSelected), {}, {
2269
2304
  values: {
2270
2305
  total: selectedResourceIds.length
2271
2306
  }
@@ -2310,6 +2345,7 @@ function ExportScopeSection() {
2310
2345
  }
2311
2346
 
2312
2347
  const ExportFileSettingsStep = () => {
2348
+ var _context, _context2, _context3;
2313
2349
  const intl = reactIntl.useIntl();
2314
2350
  const _useExportResourcesMo = useExportResourcesModalContext(),
2315
2351
  formik = _useExportResourcesMo.formik,
@@ -2330,13 +2366,13 @@ const ExportFileSettingsStep = () => {
2330
2366
  const shouldShowPreferences = _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
2331
2367
  return jsxRuntime.jsx(applicationComponents.FormDialog, {
2332
2368
  isOpen: true,
2333
- title: `${intl.formatMessage(messages.stepCount, {
2369
+ title: _concatInstanceProperty__default["default"](_context = "".concat(intl.formatMessage(messages.stepCount, {
2334
2370
  currentStep: 1,
2335
2371
  totalSteps: TOTAL_STEPS
2336
- })}: ${intl.formatMessage(messages[`modalTitle.${resourceType}`])}`,
2337
- labelPrimary: `${intl.formatMessage(messages.stepNumber, {
2372
+ }), ": ")).call(_context, intl.formatMessage(messages["modalTitle.".concat(resourceType)])),
2373
+ labelPrimary: _concatInstanceProperty__default["default"](_context2 = "".concat(intl.formatMessage(messages.stepNumber, {
2338
2374
  stepNumber: 2
2339
- })}: ${intl.formatMessage(messages.selectContentToExport)}`,
2375
+ }), ": ")).call(_context2, intl.formatMessage(messages.selectContentToExport)),
2340
2376
  iconLeftPrimaryButton: jsxRuntime.jsx(uiKit.AngleRightIcon, {}),
2341
2377
  onPrimaryButtonClick: formik.submitForm,
2342
2378
  isPrimaryButtonDisabled: !formik.isValid || isStoreSelectionMissing,
@@ -2346,7 +2382,7 @@ const ExportFileSettingsStep = () => {
2346
2382
  children: jsxRuntime.jsx(fullstory.Masking.Unmask, {
2347
2383
  children: jsxRuntime.jsxs(uiKit.Grid, {
2348
2384
  gridRowGap: uiKit.designTokens.spacingXl,
2349
- gridTemplateColumns: `calc(${uiKit.designTokens.constraint3} + ${uiKit.designTokens.spacingL}) auto`,
2385
+ gridTemplateColumns: _concatInstanceProperty__default["default"](_context3 = "calc(".concat(uiKit.designTokens.constraint3, " + ")).call(_context3, uiKit.designTokens.spacingL, ") auto"),
2350
2386
  children: [jsxRuntime.jsx(uiKit.Grid.Item, {
2351
2387
  children: jsxRuntime.jsx(uiKit.Text.Body, {
2352
2388
  intlMessage: messages.scope
@@ -2403,10 +2439,13 @@ const ExportLocaleSelectField = () => {
2403
2439
  fieldSelectionMode = _useExportResourcesMo.fieldSelectionMode,
2404
2440
  localeOption = _useExportResourcesMo.localeOption,
2405
2441
  setLocaleOption = _useExportResourcesMo.setLocaleOption;
2406
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
2407
- locale: applicationContext.dataLocale,
2408
- locales: applicationContext.project?.languages || []
2409
- })),
2442
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
2443
+ var _applicationContext$p;
2444
+ return {
2445
+ locale: applicationContext.dataLocale,
2446
+ locales: ((_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.languages) || []
2447
+ };
2448
+ }),
2410
2449
  locales = _useApplicationContex.locales,
2411
2450
  locale = _useApplicationContex.locale;
2412
2451
  const isOnlyLocalesFoundInCsvFileOptionDisabled = React__default["default"].useMemo(() => {
@@ -2512,25 +2551,29 @@ const ImportedCsvTemplateFieldsForm = () => {
2512
2551
  };
2513
2552
 
2514
2553
  function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2515
- function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2554
+ function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$6(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2516
2555
  const exportFieldSelectionContextDefaultValues = {
2517
2556
  updateExpandedGroups: (_name, _value) => {}
2518
2557
  };
2519
2558
  const ExportFieldSelectionContext = /*#__PURE__*/React.createContext(exportFieldSelectionContextDefaultValues);
2520
2559
  const ExportFieldSelectionProvider = _ref => {
2560
+ var _context;
2521
2561
  let resourceType = _ref.resourceType,
2522
2562
  children = _ref.children;
2523
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
2524
- projectKey: context.project?.key
2525
- })),
2563
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => {
2564
+ var _context$project;
2565
+ return {
2566
+ projectKey: (_context$project = context.project) === null || _context$project === void 0 ? void 0 : _context$project.key
2567
+ };
2568
+ }),
2526
2569
  projectKey = _useApplicationContex.projectKey;
2527
- const _useStorage = useStorage(`${projectKey}/${OPERATIONS_EXPORT_RESOURCES_MODAL_EXPANDED_GROUP}`, {}),
2570
+ const _useStorage = useStorage(_concatInstanceProperty__default["default"](_context = "".concat(projectKey, "/")).call(_context, OPERATIONS_EXPORT_RESOURCES_MODAL_EXPANDED_GROUP), {}),
2528
2571
  _useStorage2 = _slicedToArray(_useStorage, 2),
2529
2572
  cachedExpandedGroups = _useStorage2[0],
2530
2573
  setCachedExpandedGroups = _useStorage2[1];
2531
2574
  const updateExpandedGroups = React.useCallback((name, value) => {
2532
2575
  setCachedExpandedGroups(_objectSpread$6(_objectSpread$6({}, cachedExpandedGroups), {}, {
2533
- [resourceType]: _objectSpread$6(_objectSpread$6({}, cachedExpandedGroups?.[resourceType] || {}), {}, {
2576
+ [resourceType]: _objectSpread$6(_objectSpread$6({}, (cachedExpandedGroups === null || cachedExpandedGroups === void 0 ? void 0 : cachedExpandedGroups[resourceType]) || {}), {}, {
2534
2577
  [name]: value
2535
2578
  })
2536
2579
  }));
@@ -2589,7 +2632,7 @@ const CollapsibleFieldWrapper = _ref => {
2589
2632
  registerContentNode
2590
2633
  });
2591
2634
  }
2592
- }, `${isForceExpanded}`);
2635
+ }, "".concat(isForceExpanded));
2593
2636
  return children({
2594
2637
  isOpen: true,
2595
2638
  toggle: () => {},
@@ -2597,7 +2640,6 @@ const CollapsibleFieldWrapper = _ref => {
2597
2640
  });
2598
2641
  };
2599
2642
  const FieldSection = _ref3 => {
2600
- var _context, _context2, _context7, _context8;
2601
2643
  let fields = _ref3.fields,
2602
2644
  parentKeys = _ref3.parentKeys,
2603
2645
  formik = _ref3.formik,
@@ -2607,11 +2649,11 @@ const FieldSection = _ref3 => {
2607
2649
  maxVisibleChildren = _ref3.maxVisibleChildren;
2608
2650
  const _useExportFieldSelect = useExportFieldSelectionContext(),
2609
2651
  updateExpandedGroups = _useExportFieldSelect.updateExpandedGroups;
2610
- const visibleFields = isSearchActive || !maxVisibleChildren ? fields : ((_context = fields) == null ? void 0 : _bindInstanceProperty__default["default"](_context2 = Function.call).call(_context2, _sliceInstanceProperty__default["default"](_context), _context))?.(0, maxVisibleChildren);
2652
+ const visibleFields = isSearchActive || !maxVisibleChildren ? fields : fields === null || fields === void 0 ? void 0 : _sliceInstanceProperty__default["default"](fields).call(fields, 0, maxVisibleChildren);
2611
2653
  const hasMoreFields = maxVisibleChildren && !isSearchActive && fields && fields.length > maxVisibleChildren;
2612
2654
  const visibleIndex = field => {
2613
- var _context3, _context4, _context5, _context6;
2614
- return ((_context3 = ((_context4 = fields) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _filterInstanceProperty__default["default"](_context4), _context4))?.(f => !f.isHidden)) == null ? void 0 : _bindInstanceProperty__default["default"](_context6 = Function.call).call(_context6, _indexOfInstanceProperty__default["default"](_context3), _context3))?.(field) || -1;
2655
+ var _context;
2656
+ return (fields === null || fields === void 0 ? void 0 : _indexOfInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](fields).call(fields, f => !f.isHidden)).call(_context, field)) || -1;
2615
2657
  };
2616
2658
  const shouldDisplayField = field => {
2617
2659
  if (field.isHidden) return false;
@@ -2623,13 +2665,15 @@ const FieldSection = _ref3 => {
2623
2665
  };
2624
2666
  return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2625
2667
  scale: "s",
2626
- children: [((_context7 = visibleFields) == null ? void 0 : _bindInstanceProperty__default["default"](_context8 = Function.call).call(_context8, _mapInstanceProperty__default["default"](_context7), _context7))?.((field, index) => {
2668
+ children: [visibleFields === null || visibleFields === void 0 ? void 0 : _mapInstanceProperty__default["default"](visibleFields).call(visibleFields, (field, index) => {
2669
+ var _field$dependentGroup, _field$dependentField, _context2;
2627
2670
  const isChildrenCountDisplayed = shouldDisplayChildrenCount(field);
2628
- const hasDependents = Boolean(field.dependentGroupNames?.length || field.dependentFieldNames?.length);
2671
+ const hasDependents = Boolean(((_field$dependentGroup = field.dependentGroupNames) === null || _field$dependentGroup === void 0 ? void 0 : _field$dependentGroup.length) || ((_field$dependentField = field.dependentFieldNames) === null || _field$dependentField === void 0 ? void 0 : _field$dependentField.length));
2629
2672
  const isAnyOfTheChildFieldsChecked = isAnyFieldChecked(field.fields || []);
2630
2673
  const allFieldsChecked = areAllFieldsChecked(field.fields || []);
2631
2674
  const getIsChecked = () => {
2632
- const isParent = Boolean(field.fields && field.fields?.length > 0);
2675
+ var _field$fields;
2676
+ const isParent = Boolean(field.fields && ((_field$fields = field.fields) === null || _field$fields === void 0 ? void 0 : _field$fields.length) > 0);
2633
2677
  if (isParent) return areAllFieldsChecked(field.fields);
2634
2678
  return field.isChecked;
2635
2679
  };
@@ -2638,6 +2682,7 @@ const FieldSection = _ref3 => {
2638
2682
  isForceExpanded: isSearchActive,
2639
2683
  field: field,
2640
2684
  children: _ref4 => {
2685
+ var _context3;
2641
2686
  let isOpen = _ref4.isOpen,
2642
2687
  toggle = _ref4.toggle,
2643
2688
  registerContentNode = _ref4.registerContentNode;
@@ -2647,11 +2692,12 @@ const FieldSection = _ref3 => {
2647
2692
  size: "20",
2648
2693
  style: {
2649
2694
  position: 'absolute',
2650
- left: `calc(-1 * ${uiKit.designTokens.spacingXl})`
2695
+ left: "calc(-1 * ".concat(uiKit.designTokens.spacingXl, ")")
2651
2696
  },
2652
2697
  onClick: () => {
2653
2698
  if (!isSearchActive) {
2654
- updateExpandedGroups(`${groupName}.${field.name}`, !isOpen);
2699
+ var _context4;
2700
+ updateExpandedGroups(_concatInstanceProperty__default["default"](_context4 = "".concat(groupName, ".")).call(_context4, field.name), !isOpen);
2655
2701
  }
2656
2702
  toggle();
2657
2703
  },
@@ -2665,17 +2711,19 @@ const FieldSection = _ref3 => {
2665
2711
  isChecked: getIsChecked(),
2666
2712
  isReadOnly: hasDependents || field.isRequired,
2667
2713
  onChange: e => {
2668
- const path = `${parentKeys.join('.')}.fields[${index}]`;
2714
+ var _context5, _field$fields3;
2715
+ const path = _concatInstanceProperty__default["default"](_context5 = "".concat(parentKeys.join('.'), ".fields[")).call(_context5, index, "]");
2669
2716
  const checked = e.target.checked;
2670
2717
  // Update all child fields
2671
2718
  const updateAllChildFieldsChecked = (path, checked) => {
2672
2719
  const item = get__default["default"](_valuesInstanceProperty__default["default"](formik), path);
2673
2720
  if (item && item.fields) {
2674
- var _context9;
2675
- _forEachInstanceProperty__default["default"](_context9 = item.fields).call(_context9, (field, i) => {
2676
- const fieldPath = `${path}.fields[${i}]`;
2677
- if (!field.fields?.length) {
2678
- formik.setFieldValue(`${fieldPath}.isChecked`, checked || field.isRequired,
2721
+ var _context6;
2722
+ _forEachInstanceProperty__default["default"](_context6 = item.fields).call(_context6, (field, i) => {
2723
+ var _context7, _field$fields2;
2724
+ const fieldPath = _concatInstanceProperty__default["default"](_context7 = "".concat(path, ".fields[")).call(_context7, i, "]");
2725
+ if (!((_field$fields2 = field.fields) !== null && _field$fields2 !== void 0 && _field$fields2.length)) {
2726
+ formik.setFieldValue("".concat(fieldPath, ".isChecked"), checked || field.isRequired,
2679
2727
  // pass `false` to avoid revalidating the form with intermediate values
2680
2728
  false);
2681
2729
  }
@@ -2683,8 +2731,8 @@ const FieldSection = _ref3 => {
2683
2731
  });
2684
2732
  }
2685
2733
  };
2686
- if (!field.fields?.length) {
2687
- formik.setFieldValue(`${path}.isChecked`, checked || field.isRequired,
2734
+ if (!((_field$fields3 = field.fields) !== null && _field$fields3 !== void 0 && _field$fields3.length)) {
2735
+ formik.setFieldValue("".concat(path, ".isChecked"), checked || field.isRequired,
2688
2736
  // pass `false` to avoid revalidating the form with intermediate values
2689
2737
  false);
2690
2738
  }
@@ -2709,16 +2757,16 @@ const FieldSection = _ref3 => {
2709
2757
  fields: field.fields,
2710
2758
  maxVisibleChildren: field.maxVisibleChildren,
2711
2759
  formik: formik,
2712
- parentKeys: [...parentKeys, `fields[${index}]`],
2760
+ parentKeys: [...parentKeys, "fields[".concat(index, "]")],
2713
2761
  isAnySiblingChecked: isAnySiblingChecked,
2714
2762
  isSearchActive: isSearchActive,
2715
2763
  groupName: groupName
2716
2764
  })]
2717
2765
  })
2718
2766
  })]
2719
- }, `${field.name}-${index}`);
2767
+ }, _concatInstanceProperty__default["default"](_context3 = "".concat(field.name, "-")).call(_context3, index));
2720
2768
  }
2721
- }, `${field.name}.${isSearchActive}`);
2769
+ }, _concatInstanceProperty__default["default"](_context2 = "".concat(field.name, ".")).call(_context2, isSearchActive));
2722
2770
  }), hasMoreFields && jsxRuntime.jsx("div", {
2723
2771
  css: /*#__PURE__*/react.css("padding-left:", uiKit.designTokens.spacingXs, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:FieldSection;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLXNlY3Rpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFQa0IiLCJmaWxlIjoiZmllbGQtc2VjdGlvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGcmFnbWVudCB9IGZyb20gJ3JlYWN0J1xuaW1wb3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BhcmVBbGxGaWVsZHNDaGVja2VkKGZpZWxkLmZpZWxkcyB8fCBbXSlcbiAgICAgICAgY29uc3QgZ2V0SXNDaGVja2VkID0gKCkgPT4ge1xuICAgICAgICAgIGNvbnN0IGlzUGFyZW50ID0gQm9vbGVhbihmaWVsZC5maWVsZHMgJiYgZmllbGQuZmllbGRzPy5sZW5ndGggPiAwKVxuXG4gICAgICAgICAgaWYgKGlzUGFyZW50KSByZXR1cm4gYXJlQWxsRmllbGRzQ2hlY2tlZChmaWVsZC5maWVsZHMhKVxuXG4gICAgICAgICAgcmV0dXJuIGZpZWxkLmlzQ2hlY2tlZFxuICAgICAgICB9XG4gICAgICAgIGlmICghc2hvdWxkRGlzcGxheUZpZWxkKGZpZWxkKSkgcmV0dXJuIG51bGxcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICA8Q29sbGFwc2libGVGaWVsZFdyYXBwZXJcbiAgICAgICAgICAgIGlzRm9yY2VFeHBhbmRlZD17aXNTZWFyY2hBY3RpdmV9XG4gICAgICAgICAgICBmaWVsZD17ZmllbGR9XG4gICAgICAgICAgICBrZXk9e2Ake2ZpZWxkLm5hbWV9LiR7aXNTZWFyY2hBY3RpdmV9YH1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7KHsgaXNPcGVuLCB0b2dnbGUsIHJlZ2lzdGVyQ29udGVudE5vZGUgfSkgPT4gKFxuICAgICAgICAgICAgICA8RnJhZ21lbnQga2V5PXtgJHtmaWVsZC5uYW1lfS0ke2luZGV4fWB9PlxuICAgICAgICAgICAgICAgIDxGaWVsZFdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICB7ZmllbGQuaXNFeHBhbmRhYmxlICYmIChcbiAgICAgICAgICAgICAgICAgICAgPEljb25CdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICBzaXplPVwiMjBcIlxuICAgICAgICAgICAgICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGBjYWxjKC0xICogJHtkZXNpZ25Ub2tlbnMuc3BhY2luZ1hsfSlgLFxuICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgICAgb25DbGljaz17KCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFpc1NlYXJjaEFjdGl2ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB1cGRhdGVFeHBhbmRlZEdyb3VwcyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBgJHtncm91cE5hbWV9LiR7ZmllbGQubmFtZX1gLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICFpc09wZW5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgdG9nZ2xlKClcbiAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgIGljb249e2lzT3BlbiA/IDxBbmdsZURvd25JY29uIC8+IDogPEFuZ2xlUmlnaHRJY29uIC8+fVxuICAgICAgICAgICAgICAgICAgICAgIGxhYmVsPVwiXCJcbiAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICA8U3BhY2luZ3MuSW5saW5lIHNjYWxlPVwic1wiIGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgPENoZWNrYm94SW5wdXRcbiAgICAgICAgICAgICAgICAgICAgICBpc0luZGV0ZXJtaW5hdGU9e1xuICAgICAgICAgICAgICAgICAgICAgICAgZmllbGQuaXNFeHBhbmRhYmxlICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAhYWxsRmllbGRzQ2hlY2tlZCAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgaXNBbnlPZlRoZUNoaWxkRmllbGRzQ2hlY2tlZFxuICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICBpc0NoZWNrZWQ9e2dldElzQ2hlY2tlZCgpfVxuICAgICAgICAgICAgICAgICAgICAgIGlzUmVhZE9ubHk9e2hhc0RlcGVuZGVudHMgfHwgZmllbGQuaXNSZXF1aXJlZH1cbiAgICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZT17KGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHBhdGggPSBgJHtwYXJlbnRLZXlzLmpvaW4oJy4nKX0uZmllbGRzWyR7aW5kZXh9XWBcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGNoZWNrZWQgPSBlLnRhcmdldC5jaGVja2VkXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBVcGRhdGUgYWxsIGNoaWxkIGZpZWxkc1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdXBkYXRlQWxsQ2hpbGRGaWVsZHNDaGVja2VkID0gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBwYXRoOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNoZWNrZWQ6IGJvb2xlYW5cbiAgICAgICAgICAgICAgICAgICAgICAgICkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpdGVtID0gZ2V0KGZvcm1pay52YWx1ZXMsIHBhdGgpIGFzIEZvcm1GaWVsZFxuICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXRlbSAmJiBpdGVtLmZpZWxkcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW0uZmllbGRzLmZvckVhY2goKGZpZWxkLCBpKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWVsZFBhdGggPSBgJHtwYXRofS5maWVsZHNbJHtpfV1gXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWZpZWxkLmZpZWxkcz8ubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1pay5zZXRGaWVsZFZhbHVlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGAke2ZpZWxkUGF0aH0uaXNDaGVja2VkYCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGVja2VkIHx8IGZpZWxkLmlzUmVxdWlyZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gcGFzcyBgZmFsc2VgIHRvIGF2b2lkIHJldmFsaWRhdGluZyB0aGUgZm9ybSB3aXRoIGludGVybWVkaWF0ZSB2YWx1ZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cGRhdGVBbGxDaGlsZEZpZWxkc0NoZWNrZWQoZmllbGRQYXRoLCBjaGVja2VkKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZmllbGQuZmllbGRzPy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWlrLnNldEZpZWxkVmFsdWUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYCR7cGF0aH0uaXNDaGVja2VkYCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGVja2VkIHx8IGZpZWxkLmlzUmVxdWlyZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gcGFzcyBgZmFsc2VgIHRvIGF2b2lkIHJldmFsaWRhdGluZyB0aGUgZm9ybSB3aXRoIGludGVybWVkaWF0ZSB2YWx1ZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB1cGRhdGVBbGxDaGlsZEZpZWxkc0NoZWNrZWQocGF0aCwgY2hlY2tlZClcbiAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAge2ZpZWxkLmxhYmVsfVxuICAgICAgICAgICAgICAgICAgICAgIHsoaGFzRGVwZW5kZW50cyB8fCBmaWVsZC5pc1JlcXVpcmVkKSAmJiAnIConfVxuICAgICAgICAgICAgICAgICAgICA8L0NoZWNrYm94SW5wdXQ+XG4gICAgICAgICAgICAgICAgICAgIHtpc0NoaWxkcmVuQ291bnREaXNwbGF5ZWQgJiZcbiAgICAgICAgICAgICAgICAgICAgICBmaWVsZC5maWVsZHMgJiZcbiAgICAgICAgICAgICAgICAgICAgICBmaWVsZC5maWVsZHMubGVuZ3RoID4gMCAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmxleDogJzAgMCBhdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgPEZpZWxkc0NvdW50U3RhbXAgY291bnQ9e2ZpZWxkLmZpZWxkcy5sZW5ndGh9IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgPC9TcGFjaW5ncy5JbmxpbmU+XG4gICAgICAgICAgICAgICAgPC9GaWVsZFdyYXBwZXI+XG4gICAgICAgICAgICAgICAge2ZpZWxkLmZpZWxkcyAmJiBmaWVsZC5maWVsZHMubGVuZ3RoID4gMCAmJiAoXG4gICAgICAgICAgICAgICAgICA8U3R5bGVkRXhwYW5kYWJsZUNvbnRlbnRcbiAgICAgICAgICAgICAgICAgICAgcmVmPXtyZWdpc3RlckNvbnRlbnROb2RlfVxuICAgICAgICAgICAgICAgICAgICBpc09wZW49e2lzT3Blbn1cbiAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAge2lzT3BlbiAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgPFNwYWNpbmdzLklubGluZSBzY2FsZT1cInhsXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8RmllbGRTZWN0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkcz17ZmllbGQuZmllbGRzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhWaXNpYmxlQ2hpbGRyZW49e2ZpZWxkLm1heFZpc2libGVDaGlsZHJlbn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWlrPXtmb3JtaWt9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHBhcmVudEtleXM9e1suLi5wYXJlbnRLZXlzLCBgZmllbGRzWyR7aW5kZXh9XWBdfVxuICAgICAgICAgICAgICAgICAgICAgICAgICBpc0FueVNpYmxpbmdDaGVja2VkPXtpc0FueVNpYmxpbmdDaGVja2VkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICBpc1NlYXJjaEFjdGl2ZT17aXNTZWFyY2hBY3RpdmV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VwTmFtZT17Z3JvdXBOYW1lfVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgIDwvU3R5bGVkRXhwYW5kYWJsZUNvbnRlbnQ+XG4gICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgPC9GcmFnbWVudD5cbiAgICAgICAgICAgICl9XG4gICAgICAgICAgPC9Db2xsYXBzaWJsZUZpZWxkV3JhcHBlcj5cbiAgICAgICAgKVxuICAgICAgfSl9XG4gICAgICB7aGFzTW9yZUZpZWxkcyAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAgIHBhZGRpbmctbGVmdDogJHtkZXNpZ25Ub2tlbnMuc3BhY2luZ1hzfTtcbiAgICAgICAgICBgfVxuICAgICAgICA+XG4gICAgICAgICAgPFRleHQuRGV0YWlsIHRvbmU9XCJ0ZXJ0aWFyeVwiIGludGxNZXNzYWdlPXttZXNzYWdlcy5sb2FkTW9yZUZpZWxkc30gLz5cbiAgICAgICAgPC9kaXY+XG4gICAgICApfVxuICAgIDwvU3BhY2luZ3MuU3RhY2s+XG4gIClcbn1cbiJdfQ== */"),
2724
2772
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
@@ -2787,7 +2835,7 @@ const FieldGroupSection = _ref2 => {
2787
2835
  const isAnyFieldInGroupChecked = React.useMemo(() => isAnyFieldChecked(group.fields), [group.fields]);
2788
2836
  const _useExportFieldSelect = useExportFieldSelectionContext(),
2789
2837
  updateExpandedGroups = _useExportFieldSelect.updateExpandedGroups;
2790
- const parentKey = `groups[${index}]`;
2838
+ const parentKey = "groups[".concat(index, "]");
2791
2839
  const handleChangeAllFields = e => {
2792
2840
  const item = get__default["default"](_valuesInstanceProperty__default["default"](formik), parentKey);
2793
2841
  function updateAllFields(fields, checked) {
@@ -2869,7 +2917,7 @@ const FieldGroupSection = _ref2 => {
2869
2917
  })]
2870
2918
  });
2871
2919
  }
2872
- }, `${isSearchActive}`);
2920
+ }, "".concat(isSearchActive));
2873
2921
  };
2874
2922
 
2875
2923
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
@@ -2908,7 +2956,7 @@ const NoSearchResults = () => {
2908
2956
  };
2909
2957
 
2910
2958
  function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2911
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$4(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$4(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2959
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys$4(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys$4(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2912
2960
  const totalSpacing = 56 +
2913
2961
  // MC header
2914
2962
  32 * 2 + (
@@ -2953,30 +3001,34 @@ const StyledGridCard = /*#__PURE__*/_styled__default["default"](uiKit.Card, proc
2953
3001
  label: "StyledGridCard"
2954
3002
  })("max-height:calc(100vh - ", totalSpacing, "px);overflow:auto;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdGVkLWZpZWxkcy1mb3JtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0Q21DIiwiZmlsZSI6InNlbGVjdGVkLWZpZWxkcy1mb3JtLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IHVzZUludGwgfSBmcm9tICdyZWFjdC1pbnRsJ1xuaW1wb3J0IHsgdXNlQXBwbGljYXRpb25Db250ZXh0IH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvYXBwbGljYXRpb24tc2hlbGwtY29ubmVjdG9ycydcbmltcG9ydCB7XG4gIENhcmQsXG4gIEdyaWQsXG4gIFNwYWNpbmdzLFxuICBTZWFyY2hUZXh0SW5wdXQsXG4gIGRlc2lnblRva2Vucyxcbn0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0J1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgZGVib3VuY2UgZnJvbSAnbG9kYXNoL2RlYm91bmNlJ1xuaW1wb3J0IEV4cG9ydEZpZWxkU2VsZWN0aW9uUHJvdmlkZXIgZnJvbSAnLi9leHBvcnQtZmllbGQtc2VsZWN0aW9uLXByb3ZpZGVyJ1xuaW1wb3J0IHsgRmllbGRHcm91cFNlY3Rpb24gfSBmcm9tICcuL2ZpZWxkLWdyb3VwLXNlY3Rpb24nXG5pbXBvcnQgeyBPUEVSQVRJT05TX0VYUE9SVF9SRVNPVVJDRVNfTU9EQUxfU0VMRUNUSU9OIH0gZnJvbSAnLi4vLi4vQGNvbnN0YW50cydcbmltcG9ydCB7IHVzZUV4cG9ydFJlc291cm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G4gICAgICAgICAgb25TdWJtaXQ9eygpID0+IHt9fVxuICAgICAgICAgIGlkPVwiZXhwb3J0LWZpZWxkcy1zZWFyY2hcIlxuICAgICAgICAvPlxuICAgICAgICB7aGFzUmVzdWx0cyA/IChcbiAgICAgICAgICA8U3R5bGVkR3JpZENhcmQgaW5zZXRTY2FsZT1cIm5vbmVcIj5cbiAgICAgICAgICAgIDxHcmlkXG4gICAgICAgICAgICAgIGdyaWRBdXRvRmxvdz1cInJvd1wiXG4gICAgICAgICAgICAgIGdyaWRUZW1wbGF0ZUNvbHVtbnM9e2BjYWxjKCR7ZGVzaWduVG9rZW5zLnNwYWNpbmdMfSArICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQ1fSArICR7ZGVzaWduVG9rZW5zLnNwYWNpbmdMfSkgYXV0b2B9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtmaWx0ZXJlZEdyb3Vwcy5tYXAoKGdyb3VwLCBpbmRleCkgPT4gKFxuICAgICAgICAgICAgICAgIDxGaWVsZEdyb3VwU2VjdGlvblxuICAgICAgICAgICAgICAgICAga2V5PXtncm91cC5ncm91cE5hbWV9XG4gICAgICAgICAgICAgICAgICBncm91cD17Z3JvdXB9XG4gICAgICAgICAgICAgICAgICBpbmRleD17aW5kZXh9XG4gICAgICAgICAgICAgICAgICBmb3JtaWs9e2Zvcm1pa31cbiAgICAgICAgICAgICAgICAgIGlzU2VhcmNoQWN0aXZlPXtpc1NlYXJjaEFjdGl2ZX1cbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgIDwvR3JpZD5cbiAgICAgICAgICA8L1N0eWxlZEdyaWRDYXJkPlxuICAgICAgICApIDogKFxuICAgICAgICAgIDxOb1NlYXJjaFJlc3VsdHMgLz5cbiAgICAgICAgKX1cbiAgICAgIDwvU3BhY2luZ3MuU3RhY2s+XG4gICAgPC9FeHBvcnRGaWVsZFNlbGVjdGlvblByb3ZpZGVyPlxuICApXG59XG4iXX0= */"));
2955
3003
  const SelectedFieldsForm = () => {
2956
- var _context, _context2;
3004
+ var _context, _fieldSearchTerm$trim, _context7, _context8;
2957
3005
  const intl = reactIntl.useIntl();
2958
3006
  const _React$useState = React__default["default"].useState(''),
2959
3007
  _React$useState2 = _slicedToArray(_React$useState, 2),
2960
3008
  fieldSearchTerm = _React$useState2[0],
2961
3009
  setFieldSearchTerm = _React$useState2[1];
2962
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
2963
- projectKey: context.project?.key
2964
- })),
3010
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => {
3011
+ var _context$project;
3012
+ return {
3013
+ projectKey: (_context$project = context.project) === null || _context$project === void 0 ? void 0 : _context$project.key
3014
+ };
3015
+ }),
2965
3016
  projectKey = _useApplicationContex.projectKey;
2966
- const _useStorage = useStorage(`${projectKey}/${OPERATIONS_EXPORT_RESOURCES_MODAL_SELECTION}`, {}),
3017
+ const _useStorage = useStorage(_concatInstanceProperty__default["default"](_context = "".concat(projectKey, "/")).call(_context, OPERATIONS_EXPORT_RESOURCES_MODAL_SELECTION), {}),
2967
3018
  _useStorage2 = _slicedToArray(_useStorage, 2),
2968
3019
  cachedSelectedGroups = _useStorage2[0],
2969
3020
  setCachedSelectedGroups = _useStorage2[1];
2970
3021
  const _useExportResourcesMo = useExportResourcesModalContext(),
2971
3022
  formik = _useExportResourcesMo.formik,
2972
3023
  resourceType = _useExportResourcesMo.resourceType;
2973
- const isSearchActive = ((_context = fieldSearchTerm) == null ? void 0 : _bindInstanceProperty__default["default"](_context2 = Function.call).call(_context2, _trimInstanceProperty__default["default"](_context), _context))?.()?.length >= MIN_SEARCH_LENGTH;
3024
+ const isSearchActive = (fieldSearchTerm === null || fieldSearchTerm === void 0 || (_fieldSearchTerm$trim = _trimInstanceProperty__default["default"](fieldSearchTerm).call(fieldSearchTerm)) === null || _fieldSearchTerm$trim === void 0 ? void 0 : _fieldSearchTerm$trim.length) >= MIN_SEARCH_LENGTH;
2974
3025
  React__default["default"].useEffect(() => {
2975
3026
  var _context4;
2976
3027
  updateFieldDependenciesStatus(formik);
2977
3028
  const checkedFields = {};
2978
3029
  function getCheckedFields(field, groupName) {
2979
- const fieldName = field.name ? `${groupName}.${field.name}` : groupName;
3030
+ var _context2;
3031
+ const fieldName = field.name ? _concatInstanceProperty__default["default"](_context2 = "".concat(groupName, ".")).call(_context2, field.name) : groupName;
2980
3032
  if (field.fields) {
2981
3033
  var _context3;
2982
3034
  _forEachInstanceProperty__default["default"](_context3 = field.fields).call(_context3, f => getCheckedFields(f, fieldName));
@@ -3056,7 +3108,7 @@ const SelectedFieldsForm = () => {
3056
3108
  insetScale: "none",
3057
3109
  children: jsxRuntime.jsx(uiKit.Grid, {
3058
3110
  gridAutoFlow: "row",
3059
- gridTemplateColumns: `calc(${uiKit.designTokens.spacingL} + ${uiKit.designTokens.constraint5} + ${uiKit.designTokens.spacingL}) auto`,
3111
+ gridTemplateColumns: _concatInstanceProperty__default["default"](_context7 = _concatInstanceProperty__default["default"](_context8 = "calc(".concat(uiKit.designTokens.spacingL, " + ")).call(_context8, uiKit.designTokens.constraint5, " + ")).call(_context7, uiKit.designTokens.spacingL, ") auto"),
3060
3112
  children: _mapInstanceProperty__default["default"](filteredGroups).call(filteredGroups, (group, index) => jsxRuntime.jsx(FieldGroupSection, {
3061
3113
  group: group,
3062
3114
  index: index,
@@ -3077,6 +3129,7 @@ const Divider = /*#__PURE__*/_styled__default["default"]("hr", process.env.NODE_
3077
3129
  })("display:block;height:1px;border:0;border-top:1px solid ", uiKit.designTokens.colorNeutral90, ";margin:0;padding:0;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRpdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdnQyIsImZpbGUiOiJkaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgRGl2aWRlciA9IHN0eWxlZC5ocmBcbiAgZGlzcGxheTogYmxvY2s7XG4gIGhlaWdodDogMXB4O1xuICBib3JkZXI6IDA7XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAke2Rlc2lnblRva2Vucy5jb2xvck5ldXRyYWw5MH07XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbmBcbiJdfQ== */"));
3078
3130
 
3079
3131
  const ExportFieldsSelectionStep = () => {
3132
+ var _context, _context2;
3080
3133
  const intl = reactIntl.useIntl();
3081
3134
  const _useExportResourcesMo = useExportResourcesModalContext(),
3082
3135
  formik = _useExportResourcesMo.formik,
@@ -3098,13 +3151,13 @@ const ExportFieldsSelectionStep = () => {
3098
3151
  };
3099
3152
  return jsxRuntime.jsx(applicationComponents.FormDialog, {
3100
3153
  isOpen: true,
3101
- title: `${intl.formatMessage(messages.stepCount, {
3154
+ title: _concatInstanceProperty__default["default"](_context = "".concat(intl.formatMessage(messages.stepCount, {
3102
3155
  currentStep: 2,
3103
3156
  totalSteps: TOTAL_STEPS
3104
- })}: ${intl.formatMessage(messages.selectFieldsToExport)}`,
3105
- labelPrimary: `${intl.formatMessage(messages.stepNumber, {
3157
+ }), ": ")).call(_context, intl.formatMessage(messages.selectFieldsToExport)),
3158
+ labelPrimary: _concatInstanceProperty__default["default"](_context2 = "".concat(intl.formatMessage(messages.stepNumber, {
3106
3159
  stepNumber: 3
3107
- })}: ${intl.formatMessage(messages.confirmSelection)}`,
3160
+ }), ": ")).call(_context2, intl.formatMessage(messages.confirmSelection)),
3108
3161
  iconLeftPrimaryButton: jsxRuntime.jsx(uiKit.AngleRightIcon, {}),
3109
3162
  onPrimaryButtonClick: formik.submitForm,
3110
3163
  isPrimaryButtonDisabled: isLoading || !formik.isValid,
@@ -3113,7 +3166,7 @@ const ExportFieldsSelectionStep = () => {
3113
3166
  onClose: onClose,
3114
3167
  size: 16,
3115
3168
  dataAttributesPrimaryButton: {
3116
- 'data-tracking-target': `${resourceType}_export-start_export_button`
3169
+ 'data-tracking-target': "".concat(resourceType, "_export-start_export_button")
3117
3170
  },
3118
3171
  children: isLoading ? jsxRuntime.jsx(uiKit.Spacings.Stack, {
3119
3172
  scale: "m",
@@ -3217,11 +3270,11 @@ const ExportResourcesProvider = _ref => {
3217
3270
  locales: values.locales,
3218
3271
  queryPredicate: values.queryPredicate
3219
3272
  });
3220
- if (validationResult?.invalidQueryPredicate) {
3273
+ if (validationResult !== null && validationResult !== void 0 && validationResult.invalidQueryPredicate) {
3221
3274
  formik$1.setFieldError('queryPredicate', 'invalidInput');
3222
3275
  return;
3223
3276
  }
3224
- if (validationResult?.noResourcesToExportForQueryPredicate) {
3277
+ if (validationResult !== null && validationResult !== void 0 && validationResult.noResourcesToExportForQueryPredicate) {
3225
3278
  formik$1.setFieldError('queryPredicate', 'noResourcesToExportForQueryPredicate');
3226
3279
  return;
3227
3280
  }
@@ -3241,10 +3294,10 @@ const ExportResourcesProvider = _ref => {
3241
3294
  locales: isUsingImportedCsvLocales ? undefined : values.locales,
3242
3295
  queryPredicate: values.queryPredicate
3243
3296
  });
3244
- if (validationResult?.success) {
3297
+ if (validationResult !== null && validationResult !== void 0 && validationResult.success) {
3245
3298
  setCurrentStep(Step.ConfirmExport);
3246
3299
  } else {
3247
- setValidationErrors(validationResult?.validationErrors);
3300
+ setValidationErrors(validationResult === null || validationResult === void 0 ? void 0 : validationResult.validationErrors);
3248
3301
  setCurrentStep(Step.ValidationErrors);
3249
3302
  }
3250
3303
  } else {
@@ -3255,23 +3308,18 @@ const ExportResourcesProvider = _ref => {
3255
3308
  React__default["default"].useEffect(() => {
3256
3309
  formik$1.validateForm();
3257
3310
  }, [currentStep, fieldSelectionMode, importedHeaders, exportType]);
3258
-
3259
- // The modal can be mounted before the data backing `fieldGroups` is ready
3260
- // (the consumer opens it immediately and passes `isLoading`). Formik snapshots
3261
- // the initial values once and does not reinitialize, so when the groups
3262
- // arrive we set just the `groups` field — leaving any file settings the user
3263
- // already changed on step 1 untouched. Guarded to run once, and only when the
3264
- // form actually mounted without groups (a no-op for consumers that pass the
3265
- // full `fieldGroups` upfront).
3311
+ const mountedWhileLoadingRef = React__default["default"].useRef(Boolean(props.isLoading));
3266
3312
  const hasPopulatedFieldGroups = React__default["default"].useRef(false);
3267
3313
  React__default["default"].useLayoutEffect(() => {
3268
- if (hasPopulatedFieldGroups.current) return;
3269
- if (_valuesInstanceProperty__default["default"](formik$1).groups.length === 0 && initialValues.groups.length > 0) {
3314
+ if (!mountedWhileLoadingRef.current || hasPopulatedFieldGroups.current) {
3315
+ return;
3316
+ }
3317
+ if (!props.isLoading && initialValues.groups.length > 0) {
3270
3318
  formik$1.setFieldValue('groups', initialValues.groups);
3271
3319
  hasPopulatedFieldGroups.current = true;
3272
3320
  }
3273
3321
  // eslint-disable-next-line react-hooks/exhaustive-deps
3274
- }, [initialValues.groups]);
3322
+ }, [props.isLoading, initialValues.groups]);
3275
3323
  return jsxRuntime.jsx(ExportResourcesContext.Provider, {
3276
3324
  value: {
3277
3325
  formik: formik$1,
@@ -3305,7 +3353,7 @@ const ExportResourcesProvider = _ref => {
3305
3353
 
3306
3354
  const ExportLogsLink = props => {
3307
3355
  return jsxRuntime.jsx(uiKit.Link, {
3308
- to: `/${props.projectKey}/operations/export/logs`,
3356
+ to: "/".concat(props.projectKey, "/operations/export/logs"),
3309
3357
  tone: props.tone,
3310
3358
  children: props.msg
3311
3359
  }, "link");
@@ -3346,12 +3394,16 @@ const FieldsPreview = _ref => {
3346
3394
  };
3347
3395
 
3348
3396
  function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3349
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3397
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$3(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$3(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3350
3398
  const ExportConfirmationStep = () => {
3399
+ var _context2;
3351
3400
  const intl = reactIntl.useIntl();
3352
- const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
3353
- projectKey: applicationContext.project?.key
3354
- })),
3401
+ const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
3402
+ var _applicationContext$p;
3403
+ return {
3404
+ projectKey: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.key
3405
+ };
3406
+ }),
3355
3407
  projectKey = _useApplicationContex.projectKey;
3356
3408
  const _useExportResourcesMo = useExportResourcesModalContext(),
3357
3409
  formik = _useExportResourcesMo.formik,
@@ -3360,17 +3412,23 @@ const ExportConfirmationStep = () => {
3360
3412
  localeOption = _useExportResourcesMo.localeOption,
3361
3413
  setCurrentStep = _useExportResourcesMo.setCurrentStep,
3362
3414
  onClose = _useExportResourcesMo.onClose;
3363
- const groupsWithSelectedFields = getGroupsWithSelectedFields(_valuesInstanceProperty__default["default"](formik).groups);
3364
3415
  const isUsingImportedCsvTemplate = fieldSelectionMode === 'imported-csv-template';
3365
3416
  const isUsingImportedCsvLocales = localeOption === 'onlyLocalesFoundInCsvFile';
3366
- const allSelectedFieldCount = isUsingImportedCsvTemplate ? importedHeaders.length : getAllSelectedFieldCount(_valuesInstanceProperty__default["default"](formik).groups);
3417
+ const selectedFieldsByGroup = React.useMemo(() => {
3418
+ var _context;
3419
+ return _mapInstanceProperty__default["default"](_context = getGroupsWithSelectedFields(_valuesInstanceProperty__default["default"](formik).groups)).call(_context, group => ({
3420
+ group,
3421
+ fields: getSelectedFieldLabels(group)
3422
+ }));
3423
+ }, [_valuesInstanceProperty__default["default"](formik).groups]);
3424
+ const allSelectedFieldCount = React.useMemo(() => isUsingImportedCsvTemplate ? importedHeaders.length : getAllSelectedFieldCount(_valuesInstanceProperty__default["default"](formik).groups), [isUsingImportedCsvTemplate, importedHeaders, _valuesInstanceProperty__default["default"](formik).groups]);
3367
3425
  const returnToFieldsSelection = () => setCurrentStep(Step.FieldsSelection);
3368
3426
  return jsxRuntime.jsx(applicationComponents.FormDialog, {
3369
3427
  isOpen: true,
3370
- title: `${intl.formatMessage(messages.stepCount, {
3428
+ title: _concatInstanceProperty__default["default"](_context2 = "".concat(intl.formatMessage(messages.stepCount, {
3371
3429
  currentStep: 3,
3372
3430
  totalSteps: TOTAL_STEPS
3373
- })}: ${intl.formatMessage(messages.exportPreview)}`,
3431
+ }), ": ")).call(_context2, intl.formatMessage(messages.exportPreview)),
3374
3432
  labelPrimary: intl.formatMessage(messages.startExport),
3375
3433
  onPrimaryButtonClick: formik.submitForm,
3376
3434
  labelSecondary: intl.formatMessage(messages.selectDifferentFields),
@@ -3410,11 +3468,12 @@ const ExportConfirmationStep = () => {
3410
3468
  })]
3411
3469
  }), isUsingImportedCsvTemplate ? jsxRuntime.jsx(FieldsPreview, {
3412
3470
  fields: importedHeaders
3413
- }) : _mapInstanceProperty__default["default"](groupsWithSelectedFields).call(groupsWithSelectedFields, group => {
3414
- const selectedFields = getSelectedFieldLabels(group);
3471
+ }) : _mapInstanceProperty__default["default"](selectedFieldsByGroup).call(selectedFieldsByGroup, _ref => {
3472
+ let group = _ref.group,
3473
+ fields = _ref.fields;
3415
3474
  return jsxRuntime.jsx(FieldsPreview, {
3416
3475
  previewGroupLabel: group.previewGroupLabel,
3417
- fields: selectedFields
3476
+ fields: fields
3418
3477
  }, group.groupName);
3419
3478
  })]
3420
3479
  })
@@ -3440,7 +3499,7 @@ const ExportConfirmationStep = () => {
3440
3499
  };
3441
3500
 
3442
3501
  function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3443
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$2(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$2(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3502
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$2(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$2(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3444
3503
  const getColumns = () => [{
3445
3504
  key: 'errorType',
3446
3505
  label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$2({}, messages.errorType)),
@@ -3453,7 +3512,8 @@ const ErrorTable = props => {
3453
3512
  var _context;
3454
3513
  const intl = reactIntl.useIntl();
3455
3514
  const rows = _mapInstanceProperty__default["default"](_context = props.errors).call(_context, row => {
3456
- const id = row.code === 'AttributeLevelMismatch' && row.originalErrors[0]?.actualLevel ? `${row.code}-${row.originalErrors[0].actualLevel}` : row.code;
3515
+ var _row$originalErrors$, _context2;
3516
+ const id = row.code === 'AttributeLevelMismatch' && (_row$originalErrors$ = row.originalErrors[0]) !== null && _row$originalErrors$ !== void 0 && _row$originalErrors$.actualLevel ? _concatInstanceProperty__default["default"](_context2 = "".concat(row.code, "-")).call(_context2, row.originalErrors[0].actualLevel) : row.code;
3457
3517
  return _objectSpread$2(_objectSpread$2({}, row), {}, {
3458
3518
  id
3459
3519
  });
@@ -3470,7 +3530,7 @@ const ErrorTable = props => {
3470
3530
  });
3471
3531
  };
3472
3532
  function itemRenderer(item, column, intl) {
3473
- var _context2;
3533
+ var _context3;
3474
3534
  switch (column.key) {
3475
3535
  case 'errorType':
3476
3536
  return jsxRuntime.jsx(uiKit.Stamp, {
@@ -3488,7 +3548,7 @@ function itemRenderer(item, column, intl) {
3488
3548
  margin: 0,
3489
3549
  paddingLeft: uiKit.designTokens.spacingL
3490
3550
  },
3491
- children: _mapInstanceProperty__default["default"](_context2 = item.fieldNames).call(_context2, (field, index) => jsxRuntime.jsx("li", {
3551
+ children: _mapInstanceProperty__default["default"](_context3 = item.fieldNames).call(_context3, (field, index) => jsxRuntime.jsx("li", {
3492
3552
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
3493
3553
  children: field
3494
3554
  })
@@ -3525,6 +3585,7 @@ function getErrorTypeLabel(errorCode, intl) {
3525
3585
  function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3526
3586
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3527
3587
  const ExportValidationErrorsStep = () => {
3588
+ var _formik$values$import;
3528
3589
  const intl = reactIntl.useIntl();
3529
3590
  const _useExportResourcesMo = useExportResourcesModalContext(),
3530
3591
  formik = _useExportResourcesMo.formik,
@@ -3567,7 +3628,7 @@ const ExportValidationErrorsStep = () => {
3567
3628
  intlMessage: _objectSpread$1(_objectSpread$1({}, messages.uploadErrorsDetected), {}, {
3568
3629
  values: {
3569
3630
  total: intl.formatNumber(validationErrors.length),
3570
- fileName: _valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile?.name,
3631
+ fileName: (_formik$values$import = _valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile) === null || _formik$values$import === void 0 ? void 0 : _formik$values$import.name,
3571
3632
  b: msg => jsxRuntime.jsx("b", {
3572
3633
  children: msg
3573
3634
  }, crypto.randomUUID()),
@@ -3675,17 +3736,20 @@ const FileDropArea = () => {
3675
3736
  'text/csv': ['.csv']
3676
3737
  },
3677
3738
  getDropAreaState: getState,
3678
- children: dropAreaState => getDropArea({
3679
- dropAreaState,
3680
- isFileDropped: Boolean(_valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile),
3681
- fileName: _valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile?.name,
3682
- messages: {
3683
- chooseFile: intl.formatMessage(messages.chooseFile),
3684
- dragAndDropCSV: intl.formatMessage(messages.dragAndDropCSV),
3685
- or: intl.formatMessage(messages.or),
3686
- browseFile: intl.formatMessage(messages.browseFile)
3687
- }
3688
- })
3739
+ children: dropAreaState => {
3740
+ var _formik$values$import;
3741
+ return getDropArea({
3742
+ dropAreaState,
3743
+ isFileDropped: Boolean(_valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile),
3744
+ fileName: (_formik$values$import = _valuesInstanceProperty__default["default"](formik).importedCsvTemplateFile) === null || _formik$values$import === void 0 ? void 0 : _formik$values$import.name,
3745
+ messages: {
3746
+ chooseFile: intl.formatMessage(messages.chooseFile),
3747
+ dragAndDropCSV: intl.formatMessage(messages.dragAndDropCSV),
3748
+ or: intl.formatMessage(messages.or),
3749
+ browseFile: intl.formatMessage(messages.browseFile)
3750
+ }
3751
+ });
3752
+ }
3689
3753
  });
3690
3754
  };
3691
3755
 
@@ -3712,8 +3776,8 @@ const loadMessages = async locale => {
3712
3776
  return i18n.parseChunkImport(chunkImport);
3713
3777
  } catch (error) {
3714
3778
  // eslint-disable-next-line no-console
3715
- console.warn(`Something went wrong while loading the export-resources-modal messages for ${locale}`, error);
3716
- sentry.reportErrorToSentry(new Error(`Something went wrong while loading the export-resources-modal messages for ${locale}`), {
3779
+ console.warn("Something went wrong while loading the export-resources-modal messages for ".concat(locale), error);
3780
+ sentry.reportErrorToSentry(new Error("Something went wrong while loading the export-resources-modal messages for ".concat(locale)), {
3717
3781
  extra: error
3718
3782
  });
3719
3783
  return {};