@commercetools-frontend-extensions/export-resources-modal 4.10.2 → 4.10.4

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.
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
6
+ var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
6
7
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
7
8
  var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
8
9
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
@@ -48,7 +49,6 @@ var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
48
49
  var actionsGlobal = require('@commercetools-frontend/actions-global');
49
50
  var constants = require('@commercetools-frontend/constants');
50
51
  var sdk = require('@commercetools-frontend/sdk');
51
- var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
52
52
  var l10n = require('@commercetools-frontend/l10n');
53
53
  var sortBy = require('lodash/sortBy');
54
54
  var _styled = require('@emotion/styled/base');
@@ -108,299 +108,241 @@ function getNewLine() {
108
108
 
109
109
  var messages = reactIntl.defineMessages({
110
110
  'modalTitle.category': {
111
- id: 'ExportResourcesModal.modalTitle.category',
112
- description: 'Label for the categories modal title',
113
- defaultMessage: 'Export categories'
111
+ id: "ExportResourcesModal.modalTitle.category",
112
+ defaultMessage: "Export categories"
114
113
  },
115
114
  'modalTitle.product': {
116
- id: 'ExportResourcesModal.modalTitle.product',
117
- description: 'Label for the products modal title',
118
- defaultMessage: 'Export products'
115
+ id: "ExportResourcesModal.modalTitle.product",
116
+ defaultMessage: "Export products"
119
117
  },
120
118
  'modalTitle.inventory-entry': {
121
- id: 'ExportResourcesModal.modalTitle.inventoryEntry',
122
- description: 'Label for the inventories modal title',
123
- defaultMessage: 'Export inventories'
119
+ id: "ExportResourcesModal.modalTitle.inventoryEntry",
120
+ defaultMessage: "Export inventories"
124
121
  },
125
122
  'modalTitle.discount-code': {
126
- id: 'ExportResourcesModal.modalTitle.discountCode',
127
- description: 'Label for the discount codes modal title',
128
- defaultMessage: 'Export discount codes'
123
+ id: "ExportResourcesModal.modalTitle.discountCode",
124
+ defaultMessage: "Export discount codes"
129
125
  },
130
126
  'modalTitle.customer': {
131
- id: 'ExportResourcesModal.modalTitle.customer',
132
- description: 'Label for the customers modal title',
133
- defaultMessage: 'Export customers'
127
+ id: "ExportResourcesModal.modalTitle.customer",
128
+ defaultMessage: "Export customers"
134
129
  },
135
130
  'modalTitle.order': {
136
- id: 'ExportResourcesModal.modalTitle.order',
137
- description: 'Label for the orders modal title',
138
- defaultMessage: 'Export orders'
131
+ id: "ExportResourcesModal.modalTitle.order",
132
+ defaultMessage: "Export orders"
139
133
  },
140
134
  'modalTitle.product-type': {
141
- id: 'ExportResourcesModal.modalTitle.productType',
142
- description: 'Label for the product types modal title',
143
- defaultMessage: 'Export product types'
135
+ id: "ExportResourcesModal.modalTitle.productType",
136
+ defaultMessage: "Export product types"
144
137
  },
145
138
  outputFormat: {
146
- id: 'ExportResourcesModal.outputFormat',
147
- description: 'File format like (csv, xls, ...etc)',
148
- defaultMessage: 'File format'
139
+ id: "ExportResourcesModal.outputFormat",
140
+ defaultMessage: "File format"
149
141
  },
150
142
  fileName: {
151
- id: 'ExportResourcesModal.fileName',
152
- description: 'exported file name',
153
- defaultMessage: 'File name'
143
+ id: "ExportResourcesModal.fileName",
144
+ defaultMessage: "File name"
154
145
  },
155
146
  locale: {
156
- id: 'ExportResourcesModal.locale',
157
- description: 'Locale',
158
- defaultMessage: 'Locale'
147
+ id: "ExportResourcesModal.locale",
148
+ defaultMessage: "Locale"
159
149
  },
160
150
  exportBasedOnMyViewsMessage: {
161
- id: 'ExportResourcesModal.exportBasedOnMyViewsMessage',
162
- description: 'Select Export setttings based on my views',
163
- defaultMessage: 'Select export settings based on:'
151
+ id: "ExportResourcesModal.exportBasedOnMyViewsMessage",
152
+ defaultMessage: "Select export settings based on:"
164
153
  },
165
154
  propertiesPanelLabel: {
166
- id: 'ExportResourcesModal.propertiesPanelLabel',
167
- description: 'properties panel label',
168
- defaultMessage: 'Properties'
155
+ id: "ExportResourcesModal.propertiesPanelLabel",
156
+ defaultMessage: "Properties"
169
157
  },
170
158
  exportOperationSuccessMessage: {
171
- id: 'ExportResourcesModal.exportOperationSuccessMessage',
172
- description: 'Success message',
173
- defaultMessage: '<b>Your export has started.</b> <newline></newline><logsLink>Go to Export logs</logsLink> to view the progress and download the file.'
159
+ id: "ExportResourcesModal.exportOperationSuccessMessage",
160
+ defaultMessage: "<b>Your export has started.</b> <newline></newline><logsLink>Go to Export logs</logsLink> to view the progress and download the file."
174
161
  },
175
162
  nothingApplied: {
176
- id: 'ExportResourcesModal.nothingApplied',
177
- description: 'Shown when there is no filter applied',
178
- defaultMessage: 'nothing applied'
163
+ id: "ExportResourcesModal.nothingApplied",
164
+ defaultMessage: "nothing applied"
179
165
  },
180
166
  includeAllLocales: {
181
- id: 'ExportResourcesModal.includeAllLocales',
182
- description: 'label for "Include all locales" checkbox',
183
- defaultMessage: 'Include all locales'
167
+ id: "ExportResourcesModal.includeAllLocales",
168
+ defaultMessage: "Include all locales"
184
169
  },
185
170
  missingFileNameError: {
186
- id: 'ExportResourcesModal.missingFileNameError',
187
- description: 'Error when file name field is missing',
188
- defaultMessage: 'Please enter a file name'
171
+ id: "ExportResourcesModal.missingFileNameError",
172
+ defaultMessage: "Please enter a file name"
189
173
  },
190
174
  invalidFileNameError: {
191
- id: 'ExportResourcesModal.invalidFileNameError',
192
- description: 'Error when file name field is not valid',
193
- defaultMessage: 'File name may only contain alphanumeric characters, hyphens and underscores'
175
+ id: "ExportResourcesModal.invalidFileNameError",
176
+ defaultMessage: "File name may only contain alphanumeric characters, hyphens and underscores"
194
177
  },
195
178
  missingLocaleError: {
196
- id: 'ExportResourcesModal.missingLocaleError',
197
- description: 'Error when no locale is selected',
198
- defaultMessage: 'Please select at least one locale'
179
+ id: "ExportResourcesModal.missingLocaleError",
180
+ defaultMessage: "Please select at least one locale"
199
181
  },
200
182
  myViews: {
201
- id: 'ExportResourcesModal.myViews',
202
- description: 'Label for "My Views" Select Field',
203
- defaultMessage: 'My Views'
183
+ id: "ExportResourcesModal.myViews",
184
+ defaultMessage: "My Views"
204
185
  },
205
186
  selectFieldsToExport: {
206
- id: 'ExportResourcesModal.selectFieldsToExport',
207
- defaultMessage: 'Select fields to export'
187
+ id: "ExportResourcesModal.selectFieldsToExport",
188
+ defaultMessage: "Select fields to export"
208
189
  },
209
190
  back: {
210
- id: 'ExportResourcesModal.back',
211
- description: 'Label for "Back" button',
212
- defaultMessage: 'Back'
191
+ id: "ExportResourcesModal.back",
192
+ defaultMessage: "Back"
213
193
  },
214
194
  startExport: {
215
- id: 'ExportResourcesModal.startExport',
216
- description: 'Label for "Start export" button',
217
- defaultMessage: 'Start export'
195
+ id: "ExportResourcesModal.startExport",
196
+ defaultMessage: "Start export"
218
197
  },
219
198
  continue: {
220
- id: 'ExportResourcesModal.continue',
221
- description: 'Label for "Continue" button',
222
- defaultMessage: 'Continue'
199
+ id: "ExportResourcesModal.continue",
200
+ defaultMessage: "Continue"
223
201
  },
224
202
  fieldDefinitions: {
225
- id: 'ExportResourcesModal.fieldDefinitions',
226
- description: 'Label for "Field definitions" link',
227
- defaultMessage: 'Field definitions'
203
+ id: "ExportResourcesModal.fieldDefinitions",
204
+ defaultMessage: "Field definitions"
228
205
  },
229
206
  unexpectedError: {
230
- id: 'ExportResourcesModal.unexpectedError',
231
- description: 'Generic notification message when starting export process fails',
232
- defaultMessage: 'An error occurred while starting the export process. Please try again or contact support if the problem persists.'
207
+ id: "ExportResourcesModal.unexpectedError",
208
+ defaultMessage: "An error occurred while starting the export process. Please try again or contact support if the problem persists."
233
209
  },
234
210
  searchForFields: {
235
- id: 'ExportResourcesModal.searchForFields',
236
- description: 'Placeholder for "Search for fields" search input',
237
- defaultMessage: 'Search for fields'
211
+ id: "ExportResourcesModal.searchForFields",
212
+ defaultMessage: "Search for fields"
238
213
  },
239
214
  thereAreNoResults: {
240
- id: 'ExportResourcesModal.thereAreNoResults',
241
- description: 'No search results message',
242
- defaultMessage: 'There are no results that match your search.'
215
+ id: "ExportResourcesModal.thereAreNoResults",
216
+ defaultMessage: "There are no results that match your search."
243
217
  },
244
218
  suggestions: {
245
- id: 'ExportResourcesModal.suggestions',
246
- description: 'In Export fields selection - Suggestions message',
247
- defaultMessage: 'Suggestions:'
219
+ id: "ExportResourcesModal.suggestions",
220
+ defaultMessage: "Suggestions:"
248
221
  },
249
222
  checkTheSpelling: {
250
- id: 'ExportResourcesModal.checkTheSpelling',
251
- description: 'In Export fields selection - Check the spelling message',
252
- defaultMessage: 'Check the spelling.'
223
+ id: "ExportResourcesModal.checkTheSpelling",
224
+ defaultMessage: "Check the spelling."
253
225
  },
254
226
  searchByEnteringTheExactFieldName: {
255
- id: 'ExportResourcesModal.searchByEnteringTheExactFieldName',
256
- description: 'In Export fields selection - Search by entering the exact field name message',
257
- defaultMessage: 'Try searching by entering the exact field name.'
227
+ id: "ExportResourcesModal.searchByEnteringTheExactFieldName",
228
+ defaultMessage: "Try searching by entering the exact field name."
258
229
  },
259
230
  exportScope: {
260
- id: 'ExportResourcesModal.exportScope',
261
- description: 'Label for Export Scope',
262
- defaultMessage: 'Scope'
231
+ id: "ExportResourcesModal.exportScope",
232
+ defaultMessage: "Scope"
263
233
  },
264
234
  exportScopeAllCategories: {
265
- id: 'ExportResourcesModal.exportScopeAllCategories',
266
- description: 'Label for Export All categories',
267
- defaultMessage: 'Export all: {total, plural, one {# category} other {# categories}}'
235
+ id: "ExportResourcesModal.exportScopeAllCategories",
236
+ defaultMessage: "Export all: {total, plural, one {# category} other {# categories}}"
268
237
  },
269
238
  exportScopeSelectedCategories: {
270
- id: 'ExportResourcesModal.exportScopeSelectedCategories',
271
- description: 'Label for Export Selected categories',
272
- defaultMessage: 'Export selected: {total, plural, one {# category} other {# categories}}'
239
+ id: "ExportResourcesModal.exportScopeSelectedCategories",
240
+ defaultMessage: "Export selected: {total, plural, one {# category} other {# categories}}"
273
241
  },
274
242
  exportScopeFilteredCategories: {
275
- id: 'ExportResourcesModal.exportScopeFilteredCategories',
276
- description: 'Label for Export Filtered categories',
277
- defaultMessage: 'Export filtered: {total, plural, one {# category} other {# categories}}'
243
+ id: "ExportResourcesModal.exportScopeFilteredCategories",
244
+ defaultMessage: "Export filtered: {total, plural, one {# category} other {# categories}}"
278
245
  },
279
246
  exportScopeAllProducts: {
280
- id: 'ExportResourcesModal.exportScopeAllProducts',
281
- description: 'Label for Export All products',
282
- defaultMessage: 'Export all: {total, plural, one {# product} other {# products}}'
247
+ id: "ExportResourcesModal.exportScopeAllProducts",
248
+ defaultMessage: "Export all: {total, plural, one {# product} other {# products}}"
283
249
  },
284
250
  exportScopeSelectedProducts: {
285
- id: 'ExportResourcesModal.exportScopeSelectedProducts',
286
- description: 'Label for Export Selected products',
287
- defaultMessage: 'Export selected: {total, plural, one {# product} other {# products}}'
251
+ id: "ExportResourcesModal.exportScopeSelectedProducts",
252
+ defaultMessage: "Export selected: {total, plural, one {# product} other {# products}}"
288
253
  },
289
254
  exportScopeFilteredProducts: {
290
- id: 'ExportResourcesModal.exportScopeFilteredProducts',
291
- description: 'Label for Export Filtered products',
292
- defaultMessage: 'Export filtered: {total, plural, one {# product} other {# products}}'
255
+ id: "ExportResourcesModal.exportScopeFilteredProducts",
256
+ defaultMessage: "Export filtered: {total, plural, one {# product} other {# products}}"
293
257
  },
294
258
  exportScopeAllProductTypes: {
295
- id: 'ExportResourcesModal.exportScopeAllProductTypes',
296
- description: 'Label for Export All product types',
297
- defaultMessage: 'Export all: {total, plural, one {# product type} other {# product types}}'
259
+ id: "ExportResourcesModal.exportScopeAllProductTypes",
260
+ defaultMessage: "Export all: {total, plural, one {# product type} other {# product types}}"
298
261
  },
299
262
  exportScopeSelectedProductTypes: {
300
- id: 'ExportResourcesModal.exportScopeSelectedProductTypes',
301
- description: 'Label for Export Selected product types',
302
- defaultMessage: 'Export selected: {total, plural, one {# product type} other {# product types}}'
263
+ id: "ExportResourcesModal.exportScopeSelectedProductTypes",
264
+ defaultMessage: "Export selected: {total, plural, one {# product type} other {# product types}}"
303
265
  },
304
266
  exportScopeFilteredProductTypes: {
305
- id: 'ExportResourcesModal.exportScopeFilteredProductTypes',
306
- description: 'Label for Export Filtered product types',
307
- defaultMessage: 'Export filtered: {total, plural, one {# product type} other {# product types}}'
267
+ id: "ExportResourcesModal.exportScopeFilteredProductTypes",
268
+ defaultMessage: "Export filtered: {total, plural, one {# product type} other {# product types}}"
308
269
  },
309
270
  exportInventoriesForAllProducts: {
310
- id: 'ExportResourcesModal.exportInventoriesForAllProducts',
311
- description: 'Label for Export All inventories',
312
- defaultMessage: 'Export inventories for all {total, plural, one {# product} other {# products}}'
271
+ id: "ExportResourcesModal.exportInventoriesForAllProducts",
272
+ defaultMessage: "Export inventories for all {total, plural, one {# product} other {# products}}"
313
273
  },
314
274
  exportInventoriesForSelectedProducts: {
315
- id: 'ExportResourcesModal.exportInventoriesForSelectedProducts',
316
- description: 'Label for Export Selected inventories',
317
- defaultMessage: 'Export inventories for the {total, plural, one {# selected product} other {# selected products}}'
275
+ id: "ExportResourcesModal.exportInventoriesForSelectedProducts",
276
+ defaultMessage: "Export inventories for the {total, plural, one {# selected product} other {# selected products}}"
318
277
  },
319
278
  exportInventoriesForFilteredProducts: {
320
- id: 'ExportResourcesModal.exportInventoriesForFilteredProducts',
321
- description: 'Label for Export Filtered inventories',
322
- defaultMessage: 'Export inventories for the {total, plural, one {# filtered product} other {# filtered products}}'
279
+ id: "ExportResourcesModal.exportInventoriesForFilteredProducts",
280
+ defaultMessage: "Export inventories for the {total, plural, one {# filtered product} other {# filtered products}}"
323
281
  },
324
282
  exportScopeAllDiscountCodes: {
325
- id: 'ExportResourcesModal.exportScopeAllDiscountCodes',
326
- description: 'Label for Export All discount codes',
327
- defaultMessage: 'Export all: {total, plural, one {# discount code} other {# discount codes}}'
283
+ id: "ExportResourcesModal.exportScopeAllDiscountCodes",
284
+ defaultMessage: "Export all: {total, plural, one {# discount code} other {# discount codes}}"
328
285
  },
329
286
  exportScopeSelectedDiscountCodes: {
330
- id: 'ExportResourcesModal.exportScopeSelectedDiscountCodes',
331
- description: 'Label for Export Selected discount codes',
332
- defaultMessage: 'Export selected: {total, plural, one {# discount code} other {# discount codes}}'
287
+ id: "ExportResourcesModal.exportScopeSelectedDiscountCodes",
288
+ defaultMessage: "Export selected: {total, plural, one {# discount code} other {# discount codes}}"
333
289
  },
334
290
  exportScopeFilteredDiscountCodes: {
335
- id: 'ExportResourcesModal.exportScopeFilteredDiscountCodes',
336
- description: 'Label for Export Filtered discount codes',
337
- defaultMessage: 'Export filtered: {total, plural, one {# discount code} other {# discount codes}}'
291
+ id: "ExportResourcesModal.exportScopeFilteredDiscountCodes",
292
+ defaultMessage: "Export filtered: {total, plural, one {# discount code} other {# discount codes}}"
338
293
  },
339
294
  exportScopeAllOrders: {
340
- id: 'ExportResourcesModal.exportScopeAllOrders',
341
- description: 'Label for Export All orders',
342
- defaultMessage: 'Export all: {total, plural, one {# order} other {# orders}}'
295
+ id: "ExportResourcesModal.exportScopeAllOrders",
296
+ defaultMessage: "Export all: {total, plural, one {# order} other {# orders}}"
343
297
  },
344
298
  exportScopeSelectedOrders: {
345
- id: 'ExportResourcesModal.exportScopeSelectedOrders',
346
- description: 'Label for Export Selected orders',
347
- defaultMessage: 'Export selected: {total, plural, one {# order} other {# orders}}'
299
+ id: "ExportResourcesModal.exportScopeSelectedOrders",
300
+ defaultMessage: "Export selected: {total, plural, one {# order} other {# orders}}"
348
301
  },
349
302
  exportScopeFilteredOrders: {
350
- id: 'ExportResourcesModal.exportScopeFilteredOrders',
351
- description: 'Label for Export Filtered orders',
352
- defaultMessage: 'Export filtered: {total, plural, one {# order} other {# orders}}'
303
+ id: "ExportResourcesModal.exportScopeFilteredOrders",
304
+ defaultMessage: "Export filtered: {total, plural, one {# order} other {# orders}}"
353
305
  },
354
306
  exportScopeAllCustomers: {
355
- id: 'ExportResourcesModal.exportScopeAllCustomers',
356
- description: 'Label for Export All customers',
357
- defaultMessage: 'Export all: {total, plural, one {# customer} other {# customers}}'
307
+ id: "ExportResourcesModal.exportScopeAllCustomers",
308
+ defaultMessage: "Export all: {total, plural, one {# customer} other {# customers}}"
358
309
  },
359
310
  exportScopeSelectedCustomers: {
360
- id: 'ExportResourcesModal.exportScopeSelectedCustomers',
361
- description: 'Label for Export Selected customers',
362
- defaultMessage: 'Export selected: {total, plural, one {# customer} other {# customers}}'
311
+ id: "ExportResourcesModal.exportScopeSelectedCustomers",
312
+ defaultMessage: "Export selected: {total, plural, one {# customer} other {# customers}}"
363
313
  },
364
314
  exportScopeFilteredCustomers: {
365
- id: 'ExportResourcesModal.exportScopeFilteredCustomers',
366
- description: 'Label for Export Filtered customers',
367
- defaultMessage: 'Export filtered: {total, plural, one {# customer} other {# customers}}'
315
+ id: "ExportResourcesModal.exportScopeFilteredCustomers",
316
+ defaultMessage: "Export filtered: {total, plural, one {# customer} other {# customers}}"
368
317
  },
369
318
  exportScopeSelectedWithoutCount: {
370
- id: 'ExportResourcesModal.exportScopeSelectedWithoutCount',
371
- description: 'Label for Export Selected without count',
372
- defaultMessage: 'Export selected'
319
+ id: "ExportResourcesModal.exportScopeSelectedWithoutCount",
320
+ defaultMessage: "Export selected"
373
321
  },
374
322
  exportScopeFilteredWithoutCount: {
375
- id: 'ExportResourcesModal.exportScopeFilteredWithoutCount',
376
- description: 'Label for Export Filtered without count',
377
- defaultMessage: 'Export filtered'
323
+ id: "ExportResourcesModal.exportScopeFilteredWithoutCount",
324
+ defaultMessage: "Export filtered"
378
325
  },
379
326
  exportSettings: {
380
- id: 'ExportResourcesModal.exportSettings',
381
- description: 'Label for Export Settings',
382
- defaultMessage: 'Settings'
327
+ id: "ExportResourcesModal.exportSettings",
328
+ defaultMessage: "Settings"
383
329
  },
384
330
  selected: {
385
- id: 'ExportResourcesModal.selected',
386
- description: 'Label for total Selected',
387
- defaultMessage: '{total} selected'
331
+ id: "ExportResourcesModal.selected",
332
+ defaultMessage: "{total} selected"
388
333
  },
389
334
  // Preferences
390
335
  exportPreferences: {
391
- id: 'ExportResourcesModal.exportPreferences',
392
- description: 'Label for preferences',
393
- defaultMessage: 'Preferences'
336
+ id: "ExportResourcesModal.exportPreferences",
337
+ defaultMessage: "Preferences"
394
338
  },
395
339
  fillRowsForOrderExport: {
396
- id: 'ExportResourcesModal.fillRowsForOrderExport',
397
- description: 'A checkbox label for filling rows for order export',
398
- defaultMessage: 'Include Order number, id, and states in every row'
340
+ id: "ExportResourcesModal.fillRowsForOrderExport",
341
+ defaultMessage: "Include Order number, id, and states in every row"
399
342
  },
400
343
  fillRowsForProductExport: {
401
- id: 'ExportResourcesModal.fillRowsForProductExport',
402
- description: 'A checkbox label for filling rows for product export',
403
- defaultMessage: 'Include Product- and Variant-level information in every row'
344
+ id: "ExportResourcesModal.fillRowsForProductExport",
345
+ defaultMessage: "Include Product- and Variant-level information in every row"
404
346
  }
405
347
  });
406
348
 
@@ -1119,7 +1061,7 @@ const useStartExportOperation = props => {
1119
1061
  };
1120
1062
  };
1121
1063
 
1122
- const _excluded$1 = ["fields"];
1064
+ const _excluded$2 = ["fields"];
1123
1065
  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; }
1124
1066
  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; }
1125
1067
  const getFieldFullName = _ref => {
@@ -1132,7 +1074,7 @@ const localizeTypeDefinitionLabels = function () {
1132
1074
  let fieldDefinitions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1133
1075
  return _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, _ref2 => {
1134
1076
  let fields = _ref2.fields,
1135
- fieldsType = _objectWithoutProperties(_ref2, _excluded$1);
1077
+ fieldsType = _objectWithoutProperties(_ref2, _excluded$2);
1136
1078
  const isFieldTypeLabelLocalized = _Array$isArray__default["default"](fieldsType.label);
1137
1079
  return {
1138
1080
  name: fieldsType.name,
@@ -1912,10 +1854,10 @@ const ExportFieldsSelectionStep = () => {
1912
1854
 
1913
1855
  const ExportResourcesContext = /*#__PURE__*/React.createContext();
1914
1856
 
1915
- const _excluded = ["children"];
1857
+ const _excluded$1 = ["children"];
1916
1858
  const ExportResourcesProvider = _ref => {
1917
1859
  let children = _ref.children,
1918
- props = _objectWithoutProperties(_ref, _excluded);
1860
+ props = _objectWithoutProperties(_ref, _excluded$1);
1919
1861
  const initialValues = useInitialValues(props);
1920
1862
  const _React$useState = React__default["default"].useState(Step.FileSettings),
1921
1863
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -2043,6 +1985,7 @@ const useAsyncIntlMessages = (locale, loader) => {
2043
1985
  return state;
2044
1986
  };
2045
1987
 
1988
+ const _excluded = ["isOpen", "selectedResourceIds", "outputFormat", "fieldGroups", "fieldOrder"];
2046
1989
  function ownKeys(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; }
2047
1990
  function _objectSpread(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(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(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2048
1991
  function invalidateLaunchDarklyCachedFeatureFlag(flagName) {
@@ -2062,13 +2005,24 @@ function invalidateLaunchDarklyCachedFeatureFlag(flagName) {
2062
2005
  }
2063
2006
  }
2064
2007
  invalidateLaunchDarklyCachedFeatureFlag('enableOperationsExport');
2065
- const ExportResourcesModal = props => {
2008
+ const ExportResourcesModal = _ref3 => {
2009
+ let _ref3$isOpen = _ref3.isOpen,
2010
+ isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen,
2011
+ _ref3$selectedResourc = _ref3.selectedResourceIds,
2012
+ selectedResourceIds = _ref3$selectedResourc === void 0 ? [] : _ref3$selectedResourc,
2013
+ _ref3$outputFormat = _ref3.outputFormat,
2014
+ outputFormat = _ref3$outputFormat === void 0 ? OUTPUT_FORMATS.CSV : _ref3$outputFormat,
2015
+ _ref3$fieldGroups = _ref3.fieldGroups,
2016
+ fieldGroups = _ref3$fieldGroups === void 0 ? [] : _ref3$fieldGroups,
2017
+ _ref3$fieldOrder = _ref3.fieldOrder,
2018
+ fieldOrder = _ref3$fieldOrder === void 0 ? [] : _ref3$fieldOrder,
2019
+ props = _objectWithoutProperties(_ref3, _excluded);
2066
2020
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
2067
2021
  locale: context.user && context.user.locale
2068
2022
  })),
2069
2023
  locale = _useApplicationContex.locale;
2070
2024
  const messages = useAsyncIntlMessages(locale, loadMessages);
2071
- if (!props.isOpen || messages.isLoading) return null;
2025
+ if (!isOpen || messages.isLoading) return null;
2072
2026
  if (props.filters && !validateFilters(props.filters)) {
2073
2027
  console.error('Invalid filters prop:', props.filters, 'Filters must contain one of these values: `filters` or `where`');
2074
2028
  return null;
@@ -2076,19 +2030,18 @@ const ExportResourcesModal = props => {
2076
2030
  return jsxRuntime.jsx(reactIntl.IntlProvider, {
2077
2031
  locale: locale,
2078
2032
  messages: messages.messages,
2079
- children: jsxRuntime.jsx(ExportResourcesProvider, _objectSpread(_objectSpread({}, props), {}, {
2033
+ children: jsxRuntime.jsx(ExportResourcesProvider, _objectSpread(_objectSpread({
2034
+ fieldGroups: fieldGroups,
2035
+ fieldOrder: fieldOrder,
2036
+ isOpen: isOpen,
2037
+ outputFormat: outputFormat,
2038
+ selectedResourceIds: selectedResourceIds
2039
+ }, props), {}, {
2080
2040
  children: jsxRuntime.jsx(CurrentStep, {})
2081
2041
  }))
2082
2042
  });
2083
2043
  };
2084
2044
  ExportResourcesModal.displayName = 'ExportResourcesModal';
2085
- ExportResourcesModal.defaultProps = {
2086
- isOpen: false,
2087
- selectedResourceIds: [],
2088
- outputFormat: OUTPUT_FORMATS.CSV,
2089
- fieldGroups: [],
2090
- fieldOrder: []
2091
- };
2092
2045
 
2093
2046
  exports.EXPORTABLE_RESOURCES = EXPORTABLE_RESOURCES;
2094
2047
  exports.EXPORT_TYPES = EXPORT_TYPES;