@crystaldesign/diva-backoffice 26.1.0-beta.3 → 26.1.0-beta.31

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.
Files changed (37) hide show
  1. package/build/esm/index.js +1323 -717
  2. package/build/types/backoffice/src/Configuration.d.ts +1 -1
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
  5. package/build/types/backoffice/src/store/DownloadStore.d.ts +4 -1
  6. package/build/types/backoffice/src/store/DownloadStore.d.ts.map +1 -1
  7. package/build/types/backoffice/src/ui/CommonComponents/commonEnums.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +12 -0
  24. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  26. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/Tables/Options.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/MediaUpload/useMediaUpload.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaItemViewerCell/index.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/Table/types.d.ts +1 -0
  34. package/build/types/backoffice/src/ui/Table/types.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts +1 -1
  36. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts.map +1 -1
  37. package/package.json +10 -10
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import React, { createElement, createContext, useState, useEffect, useRef, useMemo, forwardRef, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo, useDeferredValue } from 'react';
3
3
  import 'antd/dist/reset.css';
4
- import { Divider, Form as Form$2, Button, Input as Input$1, Popover, Typography, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox as Checkbox$1, InputNumber, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, Switch, Popconfirm, Image, Slider, Breadcrumb, Result as Result$1, message, Tag, Layout, Drawer, ConfigProvider, theme } from 'antd';
4
+ import { Divider, Form as Form$2, Button, Input as Input$1, Popover, Typography, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox as Checkbox$1, InputNumber, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, message, Switch, Popconfirm, Image, Slider, Breadcrumb, Result as Result$1, Tag, Layout, Drawer, ConfigProvider, theme } from 'antd';
5
5
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
6
  import { observer } from 'mobx-react-lite';
7
7
  import { getLogger, DivaError, useTranslation, useDivaCore, DivaUtils } from '@crystaldesign/diva-core';
@@ -76,7 +76,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
76
76
  import JSONEditor from 'jsoneditor';
77
77
  import 'jsoneditor/dist/jsoneditor.css';
78
78
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
79
- import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, InfoCircleOutlined as InfoCircleOutlined$1, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
79
+ import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, InfoCircleOutlined as InfoCircleOutlined$1, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
80
80
  import classnames from 'classnames';
81
81
  import RTFEditor from '@crystaldesign/rtf-editor';
82
82
  import debounce from 'lodash/debounce';
@@ -3714,10 +3714,16 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
3714
3714
  sorter: 1,
3715
3715
  filter: 'search',
3716
3716
  width: 200
3717
+ }, {
3718
+ title: 'Unique Cloud Key',
3719
+ field: 'key',
3720
+ sorter: 2,
3721
+ filter: 'search',
3722
+ width: 150
3717
3723
  }, {
3718
3724
  title: 'Base URL',
3719
3725
  field: 'url',
3720
- sorter: 2,
3726
+ sorter: 3,
3721
3727
  filter: 'search',
3722
3728
  width: 200
3723
3729
  }, {
@@ -3728,7 +3734,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
3728
3734
  }],
3729
3735
  filter: {
3730
3736
  search: {
3731
- fields: ['_id', 'name', 'url', 'iln']
3737
+ fields: ['_id', 'name', 'url', 'key', 'iln']
3732
3738
  }
3733
3739
  },
3734
3740
  apiInterface: {
@@ -4200,6 +4206,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4200
4206
  pagination: {
4201
4207
  pageSize: 50
4202
4208
  },
4209
+ mainInformationWindowCodex: 'CONTENT_ITEMS_TABLE_INFO',
4203
4210
  filter: {
4204
4211
  toggle: {
4205
4212
  fields: ['onlyTemplates'],
@@ -5046,7 +5053,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5046
5053
  targetField: 'mediaItems'
5047
5054
  }]
5048
5055
  },
5049
- mediaType: 'file'
5056
+ mediaType: 'base64'
5050
5057
  }]
5051
5058
  }],
5052
5059
  expandable: {
@@ -6352,7 +6359,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
6352
6359
  }],
6353
6360
  download: [{
6354
6361
  type: 'request',
6355
- request: '${mediaService}/mediaitems/media/${mediaItems}',
6362
+ request: '${mediaService}/v1/assets/${mediaItems}/download',
6356
6363
  mediaType: 'file',
6357
6364
  mapping: {
6358
6365
  type: 'query',
@@ -8037,6 +8044,10 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8037
8044
  name: 'name',
8038
8045
  label: t('backoffice.form.externalclouddetail.items.name'),
8039
8046
  type: 'input'
8047
+ }, {
8048
+ name: 'key',
8049
+ label: 'Key',
8050
+ type: 'input'
8040
8051
  }, {
8041
8052
  label: t('backoffice.form.externalclouddetail.items.url'),
8042
8053
  name: 'url',
@@ -16274,7 +16285,7 @@ var DownloadStore = /*#__PURE__*/function () {
16274
16285
  value: function () {
16275
16286
  var _downloadRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(download, data) {
16276
16287
  var _this$_rootStore3;
16277
- var url, result, contentType, contentDisposition, fileName, fileNameMatch, blob, base64File, a, mimeType, res;
16288
+ var url, result, contentDisposition, fileName, fileNameMatch, lastDotIndex, potentialExtension, hasValidExtension, extension, blob, base64File, a, mimeType, res;
16278
16289
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
16279
16290
  while (1) switch (_context6.prev = _context6.next) {
16280
16291
  case 0:
@@ -16296,50 +16307,66 @@ var DownloadStore = /*#__PURE__*/function () {
16296
16307
  });
16297
16308
  case 3:
16298
16309
  result = _context6.sent;
16299
- contentType = result.headers.get('Content-Type');
16310
+ if (result.ok) {
16311
+ _context6.next = 7;
16312
+ break;
16313
+ }
16314
+ LOG$e.error(new DivaError("Download request failed: ".concat(result.status, " ").concat(result.statusText)));
16315
+ throw new Error("Download failed: ".concat(result.status, " ").concat(result.statusText));
16316
+ case 7:
16300
16317
  contentDisposition = result.headers.get('Content-Disposition');
16301
- fileName = 'download'; // Extract filename from Content-Disposition header if available
16302
- if (contentDisposition) {
16318
+ fileName = 'download'; // Use fileName from data if available
16319
+ if (data !== null && data !== void 0 && data['fileName']) {
16320
+ fileName = data['fileName'];
16321
+ }
16322
+
16323
+ // Fall back to Content-Disposition header if no fileName in data
16324
+ if (fileName === 'download' && contentDisposition) {
16303
16325
  fileNameMatch = contentDisposition.match(/filename="?([^"]+)"?/i);
16304
16326
  if (fileNameMatch && fileNameMatch[1]) {
16305
16327
  fileName = fileNameMatch[1];
16306
16328
  }
16307
16329
  }
16330
+
16331
+ // Get the part after the last dot
16332
+ lastDotIndex = fileName.lastIndexOf('.');
16333
+ potentialExtension = lastDotIndex > -1 ? fileName.substring(lastDotIndex + 1).toLowerCase() : ''; // Check if it looks like a valid extension (2-5 chars, alphabetic only)
16334
+ hasValidExtension = /^[a-z]{2,5}$/.test(potentialExtension); // If filename has no extension, derive it from contentType
16335
+ if (fileName && !hasValidExtension) {
16336
+ extension = data === null || data === void 0 ? void 0 : data['fileFormat'];
16337
+ if (extension) {
16338
+ fileName = "".concat(fileName, ".").concat(extension); // Add the extension
16339
+ }
16340
+ }
16308
16341
  _context6.t0 = download.mediaType;
16309
- _context6.next = _context6.t0 === 'file' ? 11 : _context6.t0 === 'json' ? 27 : 32;
16342
+ _context6.next = _context6.t0 === 'file' ? 18 : _context6.t0 === 'base64' ? 23 : _context6.t0 === 'json' ? 32 : 37;
16310
16343
  break;
16311
- case 11:
16312
- if (!(contentType === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || contentType === 'application/vnd.ms-excel')) {
16313
- _context6.next = 18;
16314
- break;
16315
- }
16316
- _context6.next = 14;
16344
+ case 18:
16345
+ _context6.next = 20;
16317
16346
  return result.blob();
16318
- case 14:
16347
+ case 20:
16319
16348
  blob = _context6.sent;
16320
16349
  DownloadStore.downloadBlob(blob, fileName);
16321
- _context6.next = 26;
16322
- break;
16323
- case 18:
16324
- _context6.next = 20;
16350
+ return _context6.abrupt("break", 37);
16351
+ case 23:
16352
+ _context6.next = 25;
16325
16353
  return result.json();
16326
- case 20:
16354
+ case 25:
16327
16355
  base64File = _context6.sent;
16328
16356
  a = document.createElement('a'); //Create <a>
16329
16357
  mimeType = (data === null || data === void 0 ? void 0 : data['fileFormat']) == 'glb' ? 'model/gltf-binary' : (data === null || data === void 0 ? void 0 : data['fileFormat']) == 'jpg' ? 'image/jpeg' : 'image/png';
16330
16358
  a.href = 'data:' + mimeType + ';base64,' + base64File; //Image Base64 Goes here
16331
- a.download = (data === null || data === void 0 ? void 0 : data['fileName']) + '.' + (data === null || data === void 0 ? void 0 : data['fileFormat']); //File name Here
16359
+ a.download = fileName;
16332
16360
  a.click();
16333
- case 26:
16334
- return _context6.abrupt("break", 32);
16335
- case 27:
16336
- _context6.next = 29;
16361
+ return _context6.abrupt("break", 37);
16362
+ case 32:
16363
+ _context6.next = 34;
16337
16364
  return result.json();
16338
- case 29:
16365
+ case 34:
16339
16366
  res = _context6.sent;
16340
16367
  DownloadStore.downloadText('hqRenderScript_' + (data === null || data === void 0 ? void 0 : data['fileName']) + '.json', JSON.stringify(res), 'application/json');
16341
- return _context6.abrupt("break", 32);
16342
- case 32:
16368
+ return _context6.abrupt("break", 37);
16369
+ case 37:
16343
16370
  case "end":
16344
16371
  return _context6.stop();
16345
16372
  }
@@ -16364,21 +16391,23 @@ var DownloadStore = /*#__PURE__*/function () {
16364
16391
  value: function () {
16365
16392
  var _openDownload = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(props) {
16366
16393
  var _props$data;
16367
- var promises, _iterator2, _step2, dt;
16394
+ var successCount, failedCount, promises, _iterator2, _step2, dt, _results, results;
16368
16395
  return _regeneratorRuntime.wrap(function _callee6$(_context7) {
16369
16396
  while (1) switch (_context7.prev = _context7.next) {
16370
16397
  case 0:
16371
16398
  if (!(((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) > 0)) {
16372
- _context7.next = 26;
16399
+ _context7.next = 34;
16373
16400
  break;
16374
16401
  }
16402
+ successCount = 0;
16403
+ failedCount = 0;
16375
16404
  promises = [];
16376
16405
  _iterator2 = _createForOfIteratorHelper$l(props.data);
16377
- _context7.prev = 3;
16406
+ _context7.prev = 5;
16378
16407
  _iterator2.s();
16379
- case 5:
16408
+ case 7:
16380
16409
  if ((_step2 = _iterator2.n()).done) {
16381
- _context7.next = 14;
16410
+ _context7.next = 18;
16382
16411
  break;
16383
16412
  }
16384
16413
  dt = _step2.value;
@@ -16390,41 +16419,69 @@ var DownloadStore = /*#__PURE__*/function () {
16390
16419
  sessionGuid: props.sessionGuid
16391
16420
  }));
16392
16421
  if (!(promises.length == 10)) {
16393
- _context7.next = 12;
16422
+ _context7.next = 16;
16394
16423
  break;
16395
16424
  }
16396
- _context7.next = 11;
16397
- return Promise.all(promises);
16398
- case 11:
16425
+ _context7.next = 13;
16426
+ return Promise.allSettled(promises);
16427
+ case 13:
16428
+ _results = _context7.sent;
16429
+ _results.forEach(function (result) {
16430
+ if (result.status === 'fulfilled') {
16431
+ successCount++;
16432
+ } else {
16433
+ failedCount++;
16434
+ }
16435
+ });
16399
16436
  promises.length = 0;
16400
- case 12:
16401
- _context7.next = 5;
16437
+ case 16:
16438
+ _context7.next = 7;
16402
16439
  break;
16403
- case 14:
16404
- _context7.next = 19;
16440
+ case 18:
16441
+ _context7.next = 23;
16405
16442
  break;
16406
- case 16:
16407
- _context7.prev = 16;
16408
- _context7.t0 = _context7["catch"](3);
16443
+ case 20:
16444
+ _context7.prev = 20;
16445
+ _context7.t0 = _context7["catch"](5);
16409
16446
  _iterator2.e(_context7.t0);
16410
- case 19:
16411
- _context7.prev = 19;
16447
+ case 23:
16448
+ _context7.prev = 23;
16412
16449
  _iterator2.f();
16413
- return _context7.finish(19);
16414
- case 22:
16415
- _context7.next = 24;
16416
- return Promise.all(promises);
16417
- case 24:
16418
- _context7.next = 28;
16419
- break;
16450
+ return _context7.finish(23);
16420
16451
  case 26:
16421
- _context7.next = 28;
16452
+ if (!(promises.length > 0)) {
16453
+ _context7.next = 31;
16454
+ break;
16455
+ }
16456
+ _context7.next = 29;
16457
+ return Promise.allSettled(promises);
16458
+ case 29:
16459
+ results = _context7.sent;
16460
+ results.forEach(function (result) {
16461
+ if (result.status === 'fulfilled') {
16462
+ successCount++;
16463
+ } else {
16464
+ failedCount++;
16465
+ }
16466
+ });
16467
+ case 31:
16468
+ return _context7.abrupt("return", {
16469
+ success: successCount,
16470
+ failed: failedCount
16471
+ });
16472
+ case 34:
16473
+ _context7.next = 36;
16422
16474
  return this.executeDownload(props);
16423
- case 28:
16475
+ case 36:
16476
+ return _context7.abrupt("return", {
16477
+ success: 1,
16478
+ failed: 0
16479
+ });
16480
+ case 37:
16424
16481
  case "end":
16425
16482
  return _context7.stop();
16426
16483
  }
16427
- }, _callee6, this, [[3, 16, 19, 22]]);
16484
+ }, _callee6, this, [[5, 20, 23, 26]]);
16428
16485
  }));
16429
16486
  function openDownload(_x13) {
16430
16487
  return _openDownload.apply(this, arguments);
@@ -26253,7 +26310,7 @@ var editableRow = "editable-row-9BEHi";
26253
26310
  var checkbox = "checkbox-H7R-w";
26254
26311
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
26255
26312
  var contentWidth = "content-width-hGyVI";
26256
- var css_248z$n = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
26313
+ var css_248z$n = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n\n.ant-select {\n display: flex !important;\n}\n\n/* Fix for antd Table extra column on Windows */\n/* workarround for https://github.com/ant-design/ant-design/issues/55633, if resolved try to remove this */\n.ant-table-cell-scrollbar:not(.ant-table-cell-fix-right) {\n display: none !important;\n}";
26257
26314
  styleInject(css_248z$n);
26258
26315
 
26259
26316
  function BooleanCell (_ref) {
@@ -26790,26 +26847,24 @@ function MediaItemViewerCell (_ref) {
26790
26847
  handler.mediaHandler.getMediaById(id).then(function (res) {
26791
26848
  var _mediaItem$variants;
26792
26849
  var mediaItem = res.data[0];
26793
- var mediaUrl;
26850
+ var thumbnailUrl = mediaItem.cdnUrl;
26794
26851
  if (mediaItem.thumbnailUrl) {
26795
- mediaUrl = mediaItem.thumbnailUrl;
26796
- } else if ((_mediaItem$variants = mediaItem.variants) !== null && _mediaItem$variants !== void 0 && _mediaItem$variants[0]) {
26797
- mediaUrl = mediaItem.variants[0];
26798
- } else if (mediaItem.url && mediaItem.mediaType !== 'AR') {
26799
- mediaUrl = mediaItem.url;
26852
+ thumbnailUrl = mediaItem.thumbnailUrl;
26853
+ } else if ((_mediaItem$variants = mediaItem.variants) !== null && _mediaItem$variants !== void 0 && _mediaItem$variants['gal']) {
26854
+ thumbnailUrl = mediaItem.variants['gal'];
26800
26855
  }
26801
- if (mediaItem.mediaType == 'AR' && mediaUrl) {
26802
- var url = new URL(mediaUrl);
26803
- url.searchParams.append('v', timeStamp.toString());
26804
- mediaUrl = url.toString();
26856
+ var originalUrl = mediaItem.cdnUrl;
26857
+ if (mediaItem.mimeType === 'image/tiff') {
26858
+ var _mediaItem$variants$b, _mediaItem$variants2, _mediaItem$variants3;
26859
+ originalUrl = (_mediaItem$variants$b = (_mediaItem$variants2 = mediaItem.variants) === null || _mediaItem$variants2 === void 0 ? void 0 : _mediaItem$variants2['big']) !== null && _mediaItem$variants$b !== void 0 ? _mediaItem$variants$b : (_mediaItem$variants3 = mediaItem.variants) === null || _mediaItem$variants3 === void 0 ? void 0 : _mediaItem$variants3['gal'];
26805
26860
  }
26806
26861
  if (mediaItem.mediaType === 'AR' && mediaItem.mimeType === 'application/octet-stream') {
26807
26862
  setMedia(undefined);
26808
26863
  return;
26809
26864
  }
26810
26865
  setMedia({
26811
- thumbnailUrl: mediaUrl,
26812
- originalUrl: mediaItem.url,
26866
+ thumbnailUrl: thumbnailUrl,
26867
+ originalUrl: originalUrl,
26813
26868
  mediaType: mediaItem.mediaType
26814
26869
  });
26815
26870
  });
@@ -27418,11 +27473,176 @@ var SMChart = function SMChart(props) {
27418
27473
  }) : /*#__PURE__*/jsx(Fragment, {});
27419
27474
  };
27420
27475
 
27421
- function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27422
- function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27423
27476
  function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
27424
27477
  function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0; } }
27425
27478
  function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
27479
+ function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27480
+ function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27481
+
27482
+ /**
27483
+ * Props for the useTools hook
27484
+ */
27485
+
27486
+ /**
27487
+ * Custom hook for managing tools and configurator functionality
27488
+ *
27489
+ * @param props - The hook props
27490
+ * @param props.catalog - Catalog object for configurator tools
27491
+ * @param props.enricherPackage - Enricher package object for configurator tools
27492
+ * @param props.isApi2 - Whether to use API2 mode
27493
+ * @param props.mainInformationWindowCodex - Main information window codex
27494
+ * @param props.serie - Serie object for configurator tools
27495
+ * @param props.item - Item object with type number
27496
+ * @param props.setSerie - Function to set serie
27497
+ * @param props.setArticle - Function to set article
27498
+ * @returns Object containing tool management functions
27499
+ * @returns {Function} updateConfigurator - Function to update configurator parameters
27500
+ * @returns {Function} openInformationWindow - Function to open information window
27501
+ * @returns {Function} addSecondaryTables - Function to add secondary tables
27502
+ * @returns {Function} removeSecondaryTables - Function to remove secondary tables
27503
+ */
27504
+ var useTools = function useTools(_ref) {
27505
+ var catalog = _ref.catalog,
27506
+ enricherPackage = _ref.enricherPackage,
27507
+ isApi2 = _ref.isApi2,
27508
+ onlyPlaceholder = _ref.onlyPlaceholder,
27509
+ mainInformationWindowCodex = _ref.mainInformationWindowCodex,
27510
+ serie = _ref.serie,
27511
+ item = _ref.item,
27512
+ setSerie = _ref.setSerie,
27513
+ setArticle = _ref.setArticle,
27514
+ conditionalTools = _ref.conditionalTools;
27515
+ var root = useStore();
27516
+ var catalogId = catalog === null || catalog === void 0 ? void 0 : catalog._id;
27517
+ var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
27518
+ var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
27519
+ var createTool = function createTool(tool) {
27520
+ return _objectSpread$F({
27521
+ startWidth: 600,
27522
+ defaultPinned: true,
27523
+ defaultOpen: false
27524
+ }, tool);
27525
+ };
27526
+ var createInformationWindow = function createInformationWindow(codex, open) {
27527
+ return createTool({
27528
+ id: 'info',
27529
+ name: 'Information',
27530
+ type: 'InformationWindow',
27531
+ where: 'right',
27532
+ parameters: {
27533
+ contentItemCodex: codex
27534
+ },
27535
+ defaultOpen: open
27536
+ });
27537
+ };
27538
+ var createConfigurator = function createConfigurator(parameters) {
27539
+ var elementProps = {
27540
+ isoLanguageIds: isoLanguageIds,
27541
+ item: item,
27542
+ serie: serie,
27543
+ onSerieChange: setSerie,
27544
+ onItemChange: setArticle
27545
+ };
27546
+ return createTool({
27547
+ id: 'WYSIWYG',
27548
+ name: 'Konfigurator',
27549
+ type: 'Configurator',
27550
+ where: 'right',
27551
+ parameters: _objectSpread$F({
27552
+ catalogId: catalogId,
27553
+ packageId: packageId,
27554
+ isIDMData: !isApi2 ? '1' : undefined
27555
+ }, parameters),
27556
+ elementProps: elementProps
27557
+ });
27558
+ };
27559
+ var updateInformationWindow = function updateInformationWindow(codex, open) {
27560
+ root.contentStore.rightToolBar.addTools(createInformationWindow(codex, open));
27561
+ if (open) {
27562
+ root.contentStore.rightToolBar.selectTool('info');
27563
+ root.contentStore.rightToolBar.hidden = false;
27564
+ }
27565
+ };
27566
+ var updateConfigurator = function updateConfigurator(parameters) {
27567
+ root.contentStore.rightToolBar.addTools(createConfigurator(parameters));
27568
+ };
27569
+
27570
+ /*
27571
+ * Elements need to be added/removed all at once
27572
+ * This makes sure the store remebers the last open tool and reopens it if it is used by the next component
27573
+ */
27574
+ useEffect(function () {
27575
+ var _root$contentStore$ri, _root$contentStore$bo;
27576
+ var tools = [];
27577
+ if ((catalogId || packageId) && !onlyPlaceholder) {
27578
+ tools.push(createConfigurator());
27579
+ }
27580
+ if (mainInformationWindowCodex) {
27581
+ tools.push(createInformationWindow(mainInformationWindowCodex, false));
27582
+ }
27583
+ var _iterator = _createForOfIteratorHelper$5(conditionalTools || []),
27584
+ _step;
27585
+ try {
27586
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
27587
+ var _tool$condition;
27588
+ var tool = _step.value;
27589
+ if ((_tool$condition = tool.condition) !== null && _tool$condition !== void 0 && _tool$condition.call(tool)) {
27590
+ tools.push(createTool(tool));
27591
+ }
27592
+ }
27593
+ } catch (err) {
27594
+ _iterator.e(err);
27595
+ } finally {
27596
+ _iterator.f();
27597
+ }
27598
+ (_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(tools.filter(function (tool) {
27599
+ return tool.where === 'right';
27600
+ })));
27601
+ (_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(tools.filter(function (tool) {
27602
+ return !tool.where || tool.where === 'bottom';
27603
+ })));
27604
+ return function () {
27605
+ var _root$contentStore$ri2, _root$contentStore$bo2;
27606
+ var toRemove = [];
27607
+ if (mainInformationWindowCodex) {
27608
+ toRemove.push('info');
27609
+ }
27610
+ if ((catalogId || packageId) && !onlyPlaceholder) {
27611
+ toRemove.push('WYSIWYG');
27612
+ }
27613
+ (_root$contentStore$ri2 = root.contentStore.rightToolBar).removeTools.apply(_root$contentStore$ri2, toRemove.concat(_toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
27614
+ return tool.id;
27615
+ })) || [])));
27616
+ (_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, _toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
27617
+ return tool.id;
27618
+ })) || []));
27619
+ };
27620
+ }, [mainInformationWindowCodex, catalogId, packageId, conditionalTools, onlyPlaceholder, item, serie]);
27621
+ return {
27622
+ updateConfigurator: updateConfigurator,
27623
+ updateInformationWindow: updateInformationWindow
27624
+ };
27625
+ };
27626
+
27627
+ function InformationButton(_ref) {
27628
+ var codex = _ref.codex;
27629
+ var _useTools = useTools({}),
27630
+ updateInformationWindow = _useTools.updateInformationWindow;
27631
+ return /*#__PURE__*/jsx(Button, {
27632
+ type: "text",
27633
+ icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
27634
+ onClick: function onClick(e) {
27635
+ e.stopPropagation();
27636
+ updateInformationWindow(codex, true);
27637
+ }
27638
+ });
27639
+ }
27640
+
27641
+ function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27642
+ function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27643
+ function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
27644
+ function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
27645
+ function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
27426
27646
  dayjs.extend(customParseFormat);
27427
27647
  dayjs.extend(advancedFormat);
27428
27648
  dayjs.extend(weekday);
@@ -27453,6 +27673,10 @@ var TableWrapper = function TableWrapper(_ref) {
27453
27673
  _useState8 = _slicedToArray(_useState7, 2),
27454
27674
  progressBarPercentage = _useState8[0],
27455
27675
  setProgressBarPercentage = _useState8[1];
27676
+ var _useState9 = useState(null),
27677
+ _useState10 = _slicedToArray(_useState9, 2),
27678
+ downloadingIndex = _useState10[0],
27679
+ setDownloadingIndex = _useState10[1];
27456
27680
  useEffect(function () {
27457
27681
  if (!state.loading && state.configuration.canRefresh) state.triggerRefresh();
27458
27682
  }, [root.dataStore.selectedOrganizationId]);
@@ -27460,12 +27684,12 @@ var TableWrapper = function TableWrapper(_ref) {
27460
27684
  if (state.configuration.mergeFields && state.data) {
27461
27685
  for (var i = 0; i < data.length; i++) {
27462
27686
  var dt = flatten(data[i]);
27463
- var _iterator = _createForOfIteratorHelper$5(state.configuration.mergeFields),
27687
+ var _iterator = _createForOfIteratorHelper$4(state.configuration.mergeFields),
27464
27688
  _step;
27465
27689
  try {
27466
27690
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
27467
27691
  var merge = _step.value;
27468
- var _iterator2 = _createForOfIteratorHelper$5(merge.valueKeys),
27692
+ var _iterator2 = _createForOfIteratorHelper$4(merge.valueKeys),
27469
27693
  _step2;
27470
27694
  try {
27471
27695
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -27515,7 +27739,7 @@ var TableWrapper = function TableWrapper(_ref) {
27515
27739
  if (data && data.length > 0) {
27516
27740
  data = data.map(function (dt) {
27517
27741
  var _ref2, _dt$catalogItem;
27518
- return _objectSpread$F(_objectSpread$F({}, dt), {}, {
27742
+ return _objectSpread$E(_objectSpread$E({}, dt), {}, {
27519
27743
  catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
27520
27744
  });
27521
27745
  });
@@ -27542,7 +27766,11 @@ var TableWrapper = function TableWrapper(_ref) {
27542
27766
  children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
27543
27767
  children: /*#__PURE__*/jsx(Descriptions, {
27544
27768
  title: /*#__PURE__*/jsxs("div", {
27545
- children: [state.title, /*#__PURE__*/jsxs(Space, {
27769
+ children: [/*#__PURE__*/jsxs(Space, {
27770
+ children: [state.title, state.configuration.mainInformationWindowCodex && /*#__PURE__*/jsx(InformationButton, {
27771
+ codex: state.configuration.mainInformationWindowCodex
27772
+ })]
27773
+ }), /*#__PURE__*/jsxs(Space, {
27546
27774
  style: {
27547
27775
  "float": 'right'
27548
27776
  },
@@ -27575,23 +27803,61 @@ var TableWrapper = function TableWrapper(_ref) {
27575
27803
  var _action$label;
27576
27804
  return /*#__PURE__*/jsx(Button, {
27577
27805
  type: "primary",
27578
- disabled: isDownloadActionDisabled(action),
27806
+ disabled: isDownloadActionDisabled(action) || downloadingIndex !== null,
27579
27807
  icon: /*#__PURE__*/jsx(DownloadOutlined$1, {}),
27580
27808
  size: "middle",
27581
- onClick: function onClick() {
27582
- var _state$catalogItem2, _state$catalogItem3, _state$catalogItem4;
27583
- var selectedData = state.data.filter(function (dt) {
27584
- return state.selected.includes(dt._id);
27585
- });
27586
- root.downloadStore.openDownload({
27587
- data: selectedData.length ? selectedData : state.mappingData,
27588
- action: action,
27589
- catalogCodex: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.codex,
27590
- dealerId: (_state$catalogItem3 = state.catalogItem) === null || _state$catalogItem3 === void 0 ? void 0 : _state$catalogItem3.dealerId,
27591
- currentUrl: state.currentFetchUrl,
27592
- sessionGuid: (_state$catalogItem4 = state.catalogItem) === null || _state$catalogItem4 === void 0 ? void 0 : _state$catalogItem4.sessionGuid
27593
- });
27594
- },
27809
+ loading: downloadingIndex === index,
27810
+ onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
27811
+ var selectedData, _state$catalogItem2, _state$catalogItem3, _state$catalogItem4, result;
27812
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
27813
+ while (1) switch (_context.prev = _context.next) {
27814
+ case 0:
27815
+ selectedData = state.data.filter(function (dt) {
27816
+ return state.selected.includes(dt._id);
27817
+ });
27818
+ setDownloadingIndex(index);
27819
+ _context.prev = 2;
27820
+ _context.next = 5;
27821
+ return root.downloadStore.openDownload({
27822
+ data: selectedData.length ? selectedData : state.mappingData,
27823
+ action: action,
27824
+ catalogCodex: (_state$catalogItem2 = state.catalogItem) === null || _state$catalogItem2 === void 0 ? void 0 : _state$catalogItem2.codex,
27825
+ dealerId: (_state$catalogItem3 = state.catalogItem) === null || _state$catalogItem3 === void 0 ? void 0 : _state$catalogItem3.dealerId,
27826
+ currentUrl: state.currentFetchUrl,
27827
+ sessionGuid: (_state$catalogItem4 = state.catalogItem) === null || _state$catalogItem4 === void 0 ? void 0 : _state$catalogItem4.sessionGuid
27828
+ });
27829
+ case 5:
27830
+ result = _context.sent;
27831
+ if (result.failed > 0 && result.success > 0) {
27832
+ message.warning(t('backoffice.download.partial', {
27833
+ success: result.success,
27834
+ failed: result.failed
27835
+ }));
27836
+ } else if (result.failed > 0) {
27837
+ message.error(t('backoffice.download.allFailed', {
27838
+ failed: result.failed
27839
+ }));
27840
+ } else if (result.success > 0) {
27841
+ message.success(t('backoffice.download.success', {
27842
+ success: result.success
27843
+ }));
27844
+ }
27845
+ _context.next = 12;
27846
+ break;
27847
+ case 9:
27848
+ _context.prev = 9;
27849
+ _context.t0 = _context["catch"](2);
27850
+ message.error(t('backoffice.download.error'));
27851
+ case 12:
27852
+ _context.prev = 12;
27853
+ setDownloadingIndex(null);
27854
+ return _context.finish(12);
27855
+ case 15:
27856
+ case "end":
27857
+ return _context.stop();
27858
+ }
27859
+ }, _callee, null, [[2, 9, 12, 15]]);
27860
+ })),
27595
27861
  children: (_action$label = action.label) !== null && _action$label !== void 0 ? _action$label : t('backoffice.basetable.download')
27596
27862
  }, index);
27597
27863
  }), state.configuration.canRefresh && /*#__PURE__*/jsx(Button, {
@@ -27628,7 +27894,7 @@ var TableWrapper = function TableWrapper(_ref) {
27628
27894
  // Convert to Dayjs
27629
27895
  (_state$globalFilter4 = state.globalFilter) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4.timeStamp) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) !== null && _state$globalFilter4 !== void 0 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
27630
27896
  ]
27631
- }), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$F(_objectSpread$F({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
27897
+ }), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$E(_objectSpread$E({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
27632
27898
  style: {
27633
27899
  minWidth: '200px'
27634
27900
  },
@@ -27733,7 +27999,7 @@ var TableWrapper = function TableWrapper(_ref) {
27733
27999
  },
27734
28000
  dataSource: data,
27735
28001
  loading: state.loading,
27736
- pagination: _objectSpread$F(_objectSpread$F({}, state.pagination), {}, {
28002
+ pagination: _objectSpread$E(_objectSpread$E({}, state.pagination), {}, {
27737
28003
  showTotal: function showTotal(total, range) {
27738
28004
  return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
27739
28005
  },
@@ -27775,17 +28041,17 @@ var TableWrapper = function TableWrapper(_ref) {
27775
28041
  });
27776
28042
  };
27777
28043
  var BaseTable = observer(TableWrapper);
27778
- function DeleteButton(_ref3) {
27779
- var _ref3$selected = _ref3.selected,
27780
- selected = _ref3$selected === void 0 ? [] : _ref3$selected,
27781
- total = _ref3.total,
27782
- _ref3$min = _ref3.min,
27783
- min = _ref3$min === void 0 ? 0 : _ref3$min,
27784
- deleting = _ref3.deleting,
27785
- onDelete = _ref3.onDelete,
27786
- disabled = _ref3.disabled,
27787
- label = _ref3.label,
27788
- labelDialog = _ref3.labelDialog;
28044
+ function DeleteButton(_ref4) {
28045
+ var _ref4$selected = _ref4.selected,
28046
+ selected = _ref4$selected === void 0 ? [] : _ref4$selected,
28047
+ total = _ref4.total,
28048
+ _ref4$min = _ref4.min,
28049
+ min = _ref4$min === void 0 ? 0 : _ref4$min,
28050
+ deleting = _ref4.deleting,
28051
+ onDelete = _ref4.onDelete,
28052
+ disabled = _ref4.disabled,
28053
+ label = _ref4.label,
28054
+ labelDialog = _ref4.labelDialog;
27789
28055
  var _useTranslation2 = useTranslation(),
27790
28056
  t = _useTranslation2.t;
27791
28057
  var hasSelected = (selected === null || selected === void 0 ? void 0 : selected.length) > 0;
@@ -27813,24 +28079,24 @@ function DeleteButton(_ref3) {
27813
28079
  })
27814
28080
  });
27815
28081
  }
27816
- function CopyButton(_ref4) {
28082
+ function CopyButton(_ref5) {
27817
28083
  var _state$configuration$24;
27818
- var state = _ref4.state;
28084
+ var state = _ref5.state;
27819
28085
  var root = useStore();
27820
28086
  new _default$d({
27821
28087
  apiInterface: state.configuration.apiInterface,
27822
28088
  type: 'Table'
27823
28089
  }, root);
27824
28090
  var onCopy = /*#__PURE__*/function () {
27825
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
28091
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
27826
28092
  var _state$configuration$21;
27827
28093
  var copyAction, _iterator3, _step3, selectedRow;
27828
- return _regeneratorRuntime.wrap(function _callee$(_context) {
27829
- while (1) switch (_context.prev = _context.next) {
28094
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
28095
+ while (1) switch (_context2.prev = _context2.next) {
27830
28096
  case 0:
27831
28097
  copyAction = state.configuration.copyAction;
27832
28098
  if (((_state$configuration$21 = state.configuration.copyAction) === null || _state$configuration$21 === void 0 ? void 0 : _state$configuration$21.apiInterface) != undefined) {
27833
- _iterator3 = _createForOfIteratorHelper$5(state.selected);
28099
+ _iterator3 = _createForOfIteratorHelper$4(state.selected);
27834
28100
  try {
27835
28101
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
27836
28102
  selectedRow = _step3.value;
@@ -27854,33 +28120,33 @@ function CopyButton(_ref4) {
27854
28120
  }
27855
28121
  case 2:
27856
28122
  case "end":
27857
- return _context.stop();
28123
+ return _context2.stop();
27858
28124
  }
27859
- }, _callee);
28125
+ }, _callee2);
27860
28126
  }));
27861
28127
  return function onCopy() {
27862
- return _ref5.apply(this, arguments);
28128
+ return _ref6.apply(this, arguments);
27863
28129
  };
27864
28130
  }();
27865
28131
  var onCopyAction = /*#__PURE__*/function () {
27866
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
28132
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
27867
28133
  var _state$configuration$22, _state$configuration$23;
27868
28134
  var copyAction, id, data;
27869
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
27870
- while (1) switch (_context3.prev = _context3.next) {
28135
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
28136
+ while (1) switch (_context4.prev = _context4.next) {
27871
28137
  case 0:
27872
28138
  copyAction = state.configuration.copyAction;
27873
28139
  if (!(copyAction.id == undefined || copyAction.actionType != 'Detail' || ((_state$configuration$22 = state.configuration.createAction) === null || _state$configuration$22 === void 0 ? void 0 : _state$configuration$22.actionType) != 'Detail')) {
27874
- _context3.next = 3;
28140
+ _context4.next = 3;
27875
28141
  break;
27876
28142
  }
27877
28143
  throw new Error('configuration needs to be of type Detail');
27878
28144
  case 3:
27879
28145
  id = state.selected[0];
27880
- _context3.next = 6;
28146
+ _context4.next = 6;
27881
28147
  return state.getDataById(id);
27882
28148
  case 6:
27883
- data = _context3.sent;
28149
+ data = _context4.sent;
27884
28150
  data.data[0] = applyMapping({
27885
28151
  mappable: {},
27886
28152
  mappingData: data.data[0],
@@ -27897,19 +28163,19 @@ function CopyButton(_ref4) {
27897
28163
  mapping: (_state$configuration$23 = state.configuration.createAction) === null || _state$configuration$23 === void 0 ? void 0 : _state$configuration$23.mapping,
27898
28164
  mappingData: data.data[0],
27899
28165
  callback: function () {
27900
- var _callback = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(e) {
27901
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
27902
- while (1) switch (_context2.prev = _context2.next) {
28166
+ var _callback = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(e) {
28167
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
28168
+ while (1) switch (_context3.prev = _context3.next) {
27903
28169
  case 0:
27904
- _context2.next = 2;
28170
+ _context3.next = 2;
27905
28171
  return state.onUpdate(e);
27906
28172
  case 2:
27907
28173
  if (copyAction.resetToggleAfter) state.resetToggle();
27908
28174
  case 3:
27909
28175
  case "end":
27910
- return _context2.stop();
28176
+ return _context3.stop();
27911
28177
  }
27912
- }, _callee2);
28178
+ }, _callee3);
27913
28179
  }));
27914
28180
  function callback(_x) {
27915
28181
  return _callback.apply(this, arguments);
@@ -27919,12 +28185,12 @@ function CopyButton(_ref4) {
27919
28185
  });
27920
28186
  case 9:
27921
28187
  case "end":
27922
- return _context3.stop();
28188
+ return _context4.stop();
27923
28189
  }
27924
- }, _callee3);
28190
+ }, _callee4);
27925
28191
  }));
27926
28192
  return function onCopyAction() {
27927
- return _ref6.apply(this, arguments);
28193
+ return _ref7.apply(this, arguments);
27928
28194
  };
27929
28195
  }();
27930
28196
  var _useTranslation3 = useTranslation(),
@@ -27936,11 +28202,11 @@ function CopyButton(_ref4) {
27936
28202
  children: t('backoffice.basetable.copy')
27937
28203
  });
27938
28204
  }
27939
- function BulkAction(_ref7) {
28205
+ function BulkAction(_ref8) {
27940
28206
  var _state$selected3;
27941
- var action = _ref7.action,
27942
- state = _ref7.state,
27943
- progressBar = _ref7.progressBar;
28207
+ var action = _ref8.action,
28208
+ state = _ref8.state,
28209
+ progressBar = _ref8.progressBar;
27944
28210
  var root = useStore();
27945
28211
  var _useTranslation4 = useTranslation(),
27946
28212
  t = _useTranslation4.t;
@@ -27951,14 +28217,14 @@ function BulkAction(_ref7) {
27951
28217
  return state.selected.includes(d._id);
27952
28218
  })) || [];
27953
28219
  }, [state.selected, state.data]);
27954
- var _useState9 = useState(),
27955
- _useState10 = _slicedToArray(_useState9, 2),
27956
- showPopover = _useState10[0],
27957
- setShowPopover = _useState10[1];
28220
+ var _useState11 = useState(),
28221
+ _useState12 = _slicedToArray(_useState11, 2),
28222
+ showPopover = _useState12[0],
28223
+ setShowPopover = _useState12[1];
27958
28224
  var allowed = useMemo(function () {
27959
28225
  // if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
27960
28226
  if (!action.rule) return true;
27961
- var _iterator4 = _createForOfIteratorHelper$5(action.rule),
28227
+ var _iterator4 = _createForOfIteratorHelper$4(action.rule),
27962
28228
  _step4;
27963
28229
  try {
27964
28230
  var _loop = function _loop() {
@@ -28025,22 +28291,22 @@ function BulkAction(_ref7) {
28025
28291
  return true;
28026
28292
  };
28027
28293
  var callback = /*#__PURE__*/function () {
28028
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(updatedData) {
28294
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(updatedData) {
28029
28295
  var _action$callback;
28030
28296
  var apiInterface, data, i, dataEntry;
28031
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
28032
- while (1) switch (_context4.prev = _context4.next) {
28297
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
28298
+ while (1) switch (_context5.prev = _context5.next) {
28033
28299
  case 0:
28034
28300
  apiInterface = new _default$d({
28035
28301
  apiInterface: action.apiInterface,
28036
28302
  type: 'Form'
28037
28303
  }, root);
28038
28304
  data = [];
28039
- _context4.prev = 2;
28305
+ _context5.prev = 2;
28040
28306
  i = 0;
28041
28307
  case 4:
28042
28308
  if (!(i < selectedData.length)) {
28043
- _context4.next = 33;
28309
+ _context5.next = 33;
28044
28310
  break;
28045
28311
  }
28046
28312
  if (progressBar) {
@@ -28048,46 +28314,46 @@ function BulkAction(_ref7) {
28048
28314
  }
28049
28315
  dataEntry = selectedData[i];
28050
28316
  if (!apiInterface.canUpdate) {
28051
- _context4.next = 15;
28317
+ _context5.next = 15;
28052
28318
  break;
28053
28319
  }
28054
- _context4.t0 = data;
28055
- _context4.next = 11;
28056
- return apiInterface.update(_objectSpread$F(_objectSpread$F({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
28320
+ _context5.t0 = data;
28321
+ _context5.next = 11;
28322
+ return apiInterface.update(_objectSpread$E(_objectSpread$E({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
28057
28323
  case 11:
28058
- _context4.t1 = _context4.sent;
28059
- _context4.t0.push.call(_context4.t0, _context4.t1);
28060
- _context4.next = 29;
28324
+ _context5.t1 = _context5.sent;
28325
+ _context5.t0.push.call(_context5.t0, _context5.t1);
28326
+ _context5.next = 29;
28061
28327
  break;
28062
28328
  case 15:
28063
28329
  if (!apiInterface.canCreate) {
28064
- _context4.next = 23;
28330
+ _context5.next = 23;
28065
28331
  break;
28066
28332
  }
28067
- _context4.t2 = data;
28068
- _context4.next = 19;
28333
+ _context5.t2 = data;
28334
+ _context5.next = 19;
28069
28335
  return apiInterface.create(dataEntry, updatedData);
28070
28336
  case 19:
28071
- _context4.t3 = _context4.sent;
28072
- _context4.t2.push.call(_context4.t2, _context4.t3);
28073
- _context4.next = 29;
28337
+ _context5.t3 = _context5.sent;
28338
+ _context5.t2.push.call(_context5.t2, _context5.t3);
28339
+ _context5.next = 29;
28074
28340
  break;
28075
28341
  case 23:
28076
28342
  if (!apiInterface.canDelete) {
28077
- _context4.next = 29;
28343
+ _context5.next = 29;
28078
28344
  break;
28079
28345
  }
28080
- _context4.t4 = data;
28081
- _context4.next = 27;
28346
+ _context5.t4 = data;
28347
+ _context5.next = 27;
28082
28348
  return apiInterface["delete"](state.selected[i], updatedData);
28083
28349
  case 27:
28084
- _context4.t5 = _context4.sent;
28085
- _context4.t4.push.call(_context4.t4, _context4.t5);
28350
+ _context5.t5 = _context5.sent;
28351
+ _context5.t4.push.call(_context5.t4, _context5.t5);
28086
28352
  case 29:
28087
28353
  if (progressBar) progressBar.setProgressBarPercentage(Math.floor(i / selectedData.length * 100));
28088
28354
  case 30:
28089
28355
  i++;
28090
- _context4.next = 4;
28356
+ _context5.next = 4;
28091
28357
  break;
28092
28358
  case 33:
28093
28359
  state.onUpdate(data);
@@ -28096,17 +28362,17 @@ function BulkAction(_ref7) {
28096
28362
  progressBar.setProgressBarOpen(false);
28097
28363
  progressBar.setProgressBarPercentage(0);
28098
28364
  }
28099
- _context4.next = 42;
28365
+ _context5.next = 42;
28100
28366
  break;
28101
28367
  case 37:
28102
- _context4.prev = 37;
28103
- _context4.t6 = _context4["catch"](2);
28368
+ _context5.prev = 37;
28369
+ _context5.t6 = _context5["catch"](2);
28104
28370
  if (progressBar) {
28105
28371
  progressBar.setProgressBarOpen(false);
28106
28372
  progressBar.setProgressBarPercentage(0);
28107
28373
  }
28108
28374
  LOG$4.error(new DivaError('Error changing data', {
28109
- cause: _context4.t6,
28375
+ cause: _context5.t6,
28110
28376
  code: 'BACKO_0002'
28111
28377
  }));
28112
28378
  setShowPopover(t('errorcodes._source.labels.error.BACKO_0002'));
@@ -28114,12 +28380,12 @@ function BulkAction(_ref7) {
28114
28380
  (_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, updatedData);
28115
28381
  case 43:
28116
28382
  case "end":
28117
- return _context4.stop();
28383
+ return _context5.stop();
28118
28384
  }
28119
- }, _callee4, null, [[2, 37]]);
28385
+ }, _callee5, null, [[2, 37]]);
28120
28386
  }));
28121
28387
  return function callback(_x2) {
28122
- return _ref8.apply(this, arguments);
28388
+ return _ref9.apply(this, arguments);
28123
28389
  };
28124
28390
  }();
28125
28391
  return /*#__PURE__*/jsx(Popover, {
@@ -28149,8 +28415,8 @@ function BulkAction(_ref7) {
28149
28415
  }, 'edit')
28150
28416
  });
28151
28417
  }
28152
- function SelectionText(_ref9) {
28153
- var selected = _ref9.selected;
28418
+ function SelectionText(_ref10) {
28419
+ var selected = _ref10.selected;
28154
28420
  var _useTranslation5 = useTranslation(),
28155
28421
  t = _useTranslation5.t;
28156
28422
  if (!(selected !== null && selected !== void 0 && selected.length)) {
@@ -28166,8 +28432,8 @@ function SelectionText(_ref9) {
28166
28432
  });
28167
28433
  }
28168
28434
 
28169
- function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28170
- function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28435
+ function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28436
+ function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28171
28437
  function getColumnFilterProps (_ref) {
28172
28438
  var filter = _ref.filter,
28173
28439
  title = _ref.title;
@@ -28530,7 +28796,7 @@ var selectProps = function selectProps(title, filter) {
28530
28796
  });
28531
28797
  },
28532
28798
  options: filter.map(function (f) {
28533
- return _objectSpread$E(_objectSpread$E({}, f), {}, {
28799
+ return _objectSpread$D(_objectSpread$D({}, f), {}, {
28534
28800
  label: t(f.label)
28535
28801
  });
28536
28802
  })
@@ -28579,7 +28845,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
28579
28845
  setDisplaySelectedvalues = _useState4[1];
28580
28846
  var options = [];
28581
28847
  options = filter.map(function (f) {
28582
- return _objectSpread$E(_objectSpread$E({}, f), {}, {
28848
+ return _objectSpread$D(_objectSpread$D({}, f), {}, {
28583
28849
  label: t(f.label)
28584
28850
  });
28585
28851
  });
@@ -28653,8 +28919,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
28653
28919
  };
28654
28920
  };
28655
28921
 
28656
- function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28657
- function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28922
+ function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28923
+ function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28658
28924
  function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
28659
28925
  var columns = configuration.columns.filter(function (c) {
28660
28926
  if (typeof c.hidden == 'boolean' && c.hidden) {
@@ -28707,7 +28973,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
28707
28973
  }
28708
28974
  function mapColumn(column, onUpdate) {
28709
28975
  var _column$field, _column$children;
28710
- return _objectSpread$D(_objectSpread$D(_objectSpread$D({}, column), {}, {
28976
+ return _objectSpread$C(_objectSpread$C(_objectSpread$C({}, column), {}, {
28711
28977
  hidden: false,
28712
28978
  width: column.width || 100,
28713
28979
  dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
@@ -28757,8 +29023,8 @@ function updateData (_ref) {
28757
29023
  };
28758
29024
  }
28759
29025
 
28760
- function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28761
- function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29026
+ function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29027
+ function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28762
29028
  function applyFilterAndSortation (_ref) {
28763
29029
  var data = _ref.data,
28764
29030
  filters = _ref.filters,
@@ -28773,7 +29039,7 @@ function applyFilterAndSortation (_ref) {
28773
29039
  processedData = sort(sorter || [], processedData);
28774
29040
  return {
28775
29041
  data: processedData,
28776
- pagination: _objectSpread$C(_objectSpread$C({}, pagination), {}, {
29042
+ pagination: _objectSpread$B(_objectSpread$B({}, pagination), {}, {
28777
29043
  total: processedData.length
28778
29044
  })
28779
29045
  };
@@ -28858,8 +29124,8 @@ function filter(f, data) {
28858
29124
  }
28859
29125
 
28860
29126
  var _excluded$6 = ["_id"];
28861
- function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28862
- function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29127
+ function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29128
+ function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28863
29129
  function useTableData$1 (_ref) {
28864
29130
  var _configuration$apiInt;
28865
29131
  var id = _ref.id;
@@ -28914,7 +29180,7 @@ function useTableData$1 (_ref) {
28914
29180
  var _configuration$create;
28915
29181
  if (!dataRow) return;
28916
29182
  var id = v4();
28917
- var processedDataRow = unflatten(_objectSpread$B({
29183
+ var processedDataRow = unflatten(_objectSpread$A({
28918
29184
  _id: id,
28919
29185
  ID: id
28920
29186
  }, dataRow));
@@ -28926,11 +29192,11 @@ function useTableData$1 (_ref) {
28926
29192
  newData = _updateData.data;
28927
29193
  _updateData.prevDataRow;
28928
29194
  _updateData.index;
28929
- var newState = _objectSpread$B(_objectSpread$B({}, state), {}, {
29195
+ var newState = _objectSpread$A(_objectSpread$A({}, state), {}, {
28930
29196
  data: newData
28931
29197
  });
28932
29198
  if (!filterServerSide) {
28933
- var res = applyFilterAndSortation(_objectSpread$B(_objectSpread$B({}, filterData), {}, {
29199
+ var res = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, filterData), {}, {
28934
29200
  data: newData
28935
29201
  }));
28936
29202
  newState.data = res.data;
@@ -28942,33 +29208,33 @@ function useTableData$1 (_ref) {
28942
29208
  var formData = new FormData();
28943
29209
  processedDataRow._id;
28944
29210
  var value = _objectWithoutProperties(processedDataRow, _excluded$6);
28945
- apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29211
+ apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28946
29212
  filterContex: filterContex,
28947
29213
  value: JSON.stringify([value])
28948
29214
  }), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
28949
29215
  if (d && d.Result && d.Result == 'Success') return;
28950
- setState(_objectSpread$B({}, oldState));
29216
+ setState(_objectSpread$A({}, oldState));
28951
29217
  });
28952
29218
  }, [state, catalogItem, filterData]);
28953
29219
  useEffect(function () {
28954
29220
  if (!catalogItem) return;
28955
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29221
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
28956
29222
  loading: true,
28957
- mappingData: _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29223
+ mappingData: _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28958
29224
  filterContex: filterContex
28959
29225
  })
28960
29226
  }));
28961
29227
  if (!filterServerSide) {
28962
- apiHandler.readList(configuration.mapping, _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29228
+ apiHandler.readList(configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28963
29229
  filterContex: filterContex
28964
29230
  }), undefined, catalogItem.sessionGuid).then(function (data) {
28965
29231
  var newData = data.data.map(function (d) {
28966
- return _objectSpread$B(_objectSpread$B({}, d), {}, {
29232
+ return _objectSpread$A(_objectSpread$A({}, d), {}, {
28967
29233
  _id: d._id || d.ID || nanoid()
28968
29234
  });
28969
29235
  });
28970
29236
  onChange({
28971
- pagination: _objectSpread$B({}, state.pagination),
29237
+ pagination: _objectSpread$A({}, state.pagination),
28972
29238
  filters: {},
28973
29239
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
28974
29240
  return c.defaultSortOrder;
@@ -28984,7 +29250,7 @@ function useTableData$1 (_ref) {
28984
29250
  });
28985
29251
  } else {
28986
29252
  onChange({
28987
- pagination: _objectSpread$B({}, state.pagination),
29253
+ pagination: _objectSpread$A({}, state.pagination),
28988
29254
  filters: {},
28989
29255
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
28990
29256
  return c.defaultSortOrder;
@@ -29000,17 +29266,17 @@ function useTableData$1 (_ref) {
29000
29266
  }
29001
29267
  }, [filterContex, catalogItem]);
29002
29268
  var onChange = function onChange(p, dataParam) {
29003
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29269
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29004
29270
  loading: true
29005
29271
  }));
29006
29272
  if (!filterServerSide) {
29007
29273
  var unfilteredData = dataParam ? dataParam : state.unfilteredData;
29008
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$B(_objectSpread$B({}, p), {}, {
29274
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, p), {}, {
29009
29275
  data: unfilteredData
29010
29276
  })),
29011
29277
  data = _applyFilterAndSortat.data,
29012
29278
  pagination = _applyFilterAndSortat.pagination;
29013
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29279
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29014
29280
  data: data,
29015
29281
  pagination: pagination,
29016
29282
  loading: false,
@@ -29021,20 +29287,20 @@ function useTableData$1 (_ref) {
29021
29287
  sorter: p.sorter
29022
29288
  });
29023
29289
  } else {
29024
- apiHandler.readList(configuration.mapping, _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29290
+ apiHandler.readList(configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
29025
29291
  filterContex: filterContex
29026
29292
  }), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
29027
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29293
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29028
29294
  data: data.data.map(function (dt) {
29029
- return _objectSpread$B(_objectSpread$B({}, dt), {}, {
29295
+ return _objectSpread$A(_objectSpread$A({}, dt), {}, {
29030
29296
  _id: dt._id || dt.ID || nanoid()
29031
29297
  });
29032
29298
  }),
29033
- pagination: _objectSpread$B(_objectSpread$B({}, p.pagination), {}, {
29299
+ pagination: _objectSpread$A(_objectSpread$A({}, p.pagination), {}, {
29034
29300
  total: data.total
29035
29301
  }),
29036
29302
  loading: false,
29037
- mappingData: _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29303
+ mappingData: _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
29038
29304
  filterContex: filterContex
29039
29305
  })
29040
29306
  }));
@@ -29055,7 +29321,7 @@ function useTableData$1 (_ref) {
29055
29321
  filters['_id'] = [id, 'eq', false];
29056
29322
  _context.next = 4;
29057
29323
  return apiHandler.readList(configuration.mapping, {
29058
- pagination: _objectSpread$B({}, state.pagination),
29324
+ pagination: _objectSpread$A({}, state.pagination),
29059
29325
  columns: configuration.columns,
29060
29326
  filters: filters,
29061
29327
  sorter: filterData.sorter
@@ -29074,7 +29340,7 @@ function useTableData$1 (_ref) {
29074
29340
  };
29075
29341
  }();
29076
29342
  var onSelect = function onSelect(keys) {
29077
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29343
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29078
29344
  selected: keys
29079
29345
  }));
29080
29346
  };
@@ -29084,7 +29350,7 @@ function useTableData$1 (_ref) {
29084
29350
  return _regeneratorRuntime.wrap(function _callee2$(_context3) {
29085
29351
  while (1) switch (_context3.prev = _context3.next) {
29086
29352
  case 0:
29087
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29353
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29088
29354
  deleting: true
29089
29355
  }));
29090
29356
  newData = _toConsumableArray(state.data);
@@ -29099,7 +29365,7 @@ function useTableData$1 (_ref) {
29099
29365
  mappingData = (_newData$filter = newData.filter(function (nd) {
29100
29366
  return nd._id === state.selected[index];
29101
29367
  })) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
29102
- mappingData = _objectSpread$B(_objectSpread$B({}, mappingData), state.mappingData);
29368
+ mappingData = _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData);
29103
29369
  _context2.next = 5;
29104
29370
  return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
29105
29371
  case 5:
@@ -29149,7 +29415,7 @@ function useTableData$1 (_ref) {
29149
29415
  }
29150
29416
  _context3.next = 18;
29151
29417
  return apiHandler.readList(configuration.mapping, {
29152
- pagination: _objectSpread$B(_objectSpread$B({}, state.pagination), {}, {
29418
+ pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
29153
29419
  current: current
29154
29420
  }),
29155
29421
  columns: configuration.columns,
@@ -29161,11 +29427,11 @@ function useTableData$1 (_ref) {
29161
29427
  newData = data.data;
29162
29428
  total = data.total;
29163
29429
  case 21:
29164
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29430
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29165
29431
  selected: [],
29166
29432
  deleting: false,
29167
29433
  data: newData,
29168
- pagination: _objectSpread$B(_objectSpread$B({}, state.pagination), {}, {
29434
+ pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
29169
29435
  current: current,
29170
29436
  total: total
29171
29437
  })
@@ -29181,12 +29447,12 @@ function useTableData$1 (_ref) {
29181
29447
  };
29182
29448
  }();
29183
29449
  function setLoading() {
29184
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29450
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29185
29451
  loading: true
29186
29452
  }));
29187
29453
  }
29188
- return _objectSpread$B(_objectSpread$B({}, state), {}, {
29189
- configuration: _objectSpread$B(_objectSpread$B({}, configuration), {}, {
29454
+ return _objectSpread$A(_objectSpread$A({}, state), {}, {
29455
+ configuration: _objectSpread$A(_objectSpread$A({}, configuration), {}, {
29190
29456
  title: undefined
29191
29457
  }),
29192
29458
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
@@ -29295,11 +29561,11 @@ function objectHash (obj) {
29295
29561
  return hash(hashable);
29296
29562
  }
29297
29563
 
29298
- function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
29299
- function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0; } }
29300
- function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29301
- function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29302
- function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29564
+ function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
29565
+ function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
29566
+ function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29567
+ function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29568
+ function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29303
29569
  var LOG$3 = getLogger('Backoffice', 'TableData');
29304
29570
  function useTableData (_ref) {
29305
29571
  var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
@@ -29358,7 +29624,7 @@ function useTableData (_ref) {
29358
29624
  var _useState13 = useState({
29359
29625
  loading: true,
29360
29626
  deleting: false,
29361
- pagination: _objectSpread$A({
29627
+ pagination: _objectSpread$z({
29362
29628
  current: 1,
29363
29629
  pageSize: 20,
29364
29630
  total: 0,
@@ -29367,7 +29633,7 @@ function useTableData (_ref) {
29367
29633
  selected: [],
29368
29634
  canDelete: !!apiHandler.canDelete,
29369
29635
  canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
29370
- mappingData: _objectSpread$A(_objectSpread$A({}, parentData), {}, {
29636
+ mappingData: _objectSpread$z(_objectSpread$z({}, parentData), {}, {
29371
29637
  prefilter: {
29372
29638
  select: globalFilter.select
29373
29639
  },
@@ -29378,7 +29644,7 @@ function useTableData (_ref) {
29378
29644
  _useState14 = _slicedToArray(_useState13, 2),
29379
29645
  state = _useState14[0],
29380
29646
  setState = _useState14[1];
29381
- var mappingData = _objectSpread$A(_objectSpread$A(_objectSpread$A({}, parentData), state.data), {}, {
29647
+ var mappingData = _objectSpread$z(_objectSpread$z(_objectSpread$z({}, parentData), state.data), {}, {
29382
29648
  catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
29383
29649
  sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
29384
29650
  });
@@ -29417,7 +29683,7 @@ function useTableData (_ref) {
29417
29683
  }
29418
29684
  var dataArray = Array.isArray(data) ? data : [data];
29419
29685
  var newInitData = initData;
29420
- var newState = _objectSpread$A({}, state);
29686
+ var newState = _objectSpread$z({}, state);
29421
29687
  var selected = [];
29422
29688
  if (configuration.deselectOnUpdate == false) {
29423
29689
  selected = state.selected;
@@ -29434,7 +29700,7 @@ function useTableData (_ref) {
29434
29700
  dataRow: dataRow
29435
29701
  }),
29436
29702
  _data = _updateData.data;
29437
- newState = _objectSpread$A(_objectSpread$A({}, newState), {}, {
29703
+ newState = _objectSpread$z(_objectSpread$z({}, newState), {}, {
29438
29704
  data: _data,
29439
29705
  selected: selected
29440
29706
  });
@@ -29446,8 +29712,8 @@ function useTableData (_ref) {
29446
29712
  dataRow: dataRow
29447
29713
  }),
29448
29714
  nextInitData = _updateData2.data;
29449
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, filterData), {}, {
29450
- filters: _objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
29715
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, filterData), {}, {
29716
+ filters: _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
29451
29717
  }, configuration !== null && configuration !== void 0 && (_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && (_configuration$filter7 = _configuration$filter7.toggle) !== null && _configuration$filter7 !== void 0 && _configuration$filter7.inQuery ? {
29452
29718
  genericProps: globalFilter.toggle
29453
29719
  } : undefined), {}, {
@@ -29457,7 +29723,7 @@ function useTableData (_ref) {
29457
29723
  _data2 = _applyFilterAndSortat.data,
29458
29724
  pagination = _applyFilterAndSortat.pagination;
29459
29725
  newInitData = nextInitData;
29460
- newState = _objectSpread$A(_objectSpread$A({}, newState), {}, {
29726
+ newState = _objectSpread$z(_objectSpread$z({}, newState), {}, {
29461
29727
  pagination: pagination,
29462
29728
  data: _data2,
29463
29729
  selected: selected
@@ -29467,8 +29733,8 @@ function useTableData (_ref) {
29467
29733
  if (apiHandler.canCreate) {
29468
29734
  apiCreate(data).then(function (res) {
29469
29735
  if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
29470
- initData && setInitData(_objectSpread$A({}, initData));
29471
- setState(_objectSpread$A({}, state));
29736
+ initData && setInitData(_objectSpread$z({}, initData));
29737
+ setState(_objectSpread$z({}, state));
29472
29738
  }
29473
29739
  });
29474
29740
  }
@@ -29481,7 +29747,7 @@ function useTableData (_ref) {
29481
29747
  var triggerRefresh = function triggerRefresh() {
29482
29748
  var _configuration$filter8;
29483
29749
  setError(undefined);
29484
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
29750
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29485
29751
  //on refresh update default filter, since global value can change
29486
29752
  if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
29487
29753
  var _configuration$filter9;
@@ -29492,7 +29758,7 @@ function useTableData (_ref) {
29492
29758
  newGlobalFilter["default"] = _defaultFilter;
29493
29759
  setGlobaFilter(newGlobalFilter);
29494
29760
  }
29495
- onChange(_objectSpread$A({
29761
+ onChange(_objectSpread$z({
29496
29762
  pagination: state.pagination
29497
29763
  }, filterData), newGlobalFilter, true);
29498
29764
  };
@@ -29510,7 +29776,7 @@ function useTableData (_ref) {
29510
29776
  order: c.defaultSortOrder
29511
29777
  };
29512
29778
  });
29513
- if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29779
+ if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29514
29780
  loading: false
29515
29781
  }));else {
29516
29782
  onChange({
@@ -29553,7 +29819,7 @@ function useTableData (_ref) {
29553
29819
  case 0:
29554
29820
  filters = {};
29555
29821
  filters['_id'] = [id, 'eq', false];
29556
- ssf = _objectSpread$A({
29822
+ ssf = _objectSpread$z({
29557
29823
  pagination: {
29558
29824
  current: 1,
29559
29825
  pageSize: 1
@@ -29564,7 +29830,7 @@ function useTableData (_ref) {
29564
29830
  genericProps: globalFilter.toggle
29565
29831
  } : undefined);
29566
29832
  _context2.next = 5;
29567
- return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), ssf);
29833
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), ssf);
29568
29834
  case 5:
29569
29835
  data = _context2.sent;
29570
29836
  return _context2.abrupt("return", data);
@@ -29608,12 +29874,12 @@ function useTableData (_ref) {
29608
29874
  refresh = _args3.length > 2 ? _args3[2] : undefined;
29609
29875
  clearSelection = _args3.length > 3 ? _args3[3] : undefined;
29610
29876
  overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
29611
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29877
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29612
29878
  mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
29613
29879
  loading: true
29614
29880
  }));
29615
29881
  currentData = initData;
29616
- filterData = _objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, prefilter.search), ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.applyDefaultValue) !== false || ((_configuration$filter12 = configuration.filter) === null || _configuration$filter12 === void 0 || (_configuration$filter12 = _configuration$filter12.select) === null || _configuration$filter12 === void 0 ? void 0 : _configuration$filter12.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter13 = (_configuration$filter14 = configuration.filter) === null || _configuration$filter14 === void 0 || (_configuration$filter14 = _configuration$filter14.select) === null || _configuration$filter14 === void 0 ? void 0 : _configuration$filter14.filterField) !== null && _configuration$filter13 !== void 0 ? _configuration$filter13 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
29882
+ filterData = _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, prefilter.search), ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.applyDefaultValue) !== false || ((_configuration$filter12 = configuration.filter) === null || _configuration$filter12 === void 0 || (_configuration$filter12 = _configuration$filter12.select) === null || _configuration$filter12 === void 0 ? void 0 : _configuration$filter12.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter13 = (_configuration$filter14 = configuration.filter) === null || _configuration$filter14 === void 0 || (_configuration$filter14 = _configuration$filter14.select) === null || _configuration$filter14 === void 0 ? void 0 : _configuration$filter14.filterField) !== null && _configuration$filter13 !== void 0 ? _configuration$filter13 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
29617
29883
  filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
29618
29884
  var _ref7 = _slicedToArray(_ref6, 2);
29619
29885
  _ref7[0];
@@ -29621,7 +29887,7 @@ function useTableData (_ref) {
29621
29887
  return v != null;
29622
29888
  }));
29623
29889
  currentFilterHash = objectHash(filterData);
29624
- currentPagination = _objectSpread$A(_objectSpread$A({}, p.pagination), {}, {
29890
+ currentPagination = _objectSpread$z(_objectSpread$z({}, p.pagination), {}, {
29625
29891
  current: currentFilterHash == filterHash.current ? p.pagination.current : 1
29626
29892
  });
29627
29893
  filterHash.current = currentFilterHash;
@@ -29629,7 +29895,7 @@ function useTableData (_ref) {
29629
29895
  _context3.next = 21;
29630
29896
  break;
29631
29897
  }
29632
- ssf = _objectSpread$A({
29898
+ ssf = _objectSpread$z({
29633
29899
  pagination: currentPagination,
29634
29900
  columns: configuration.columns,
29635
29901
  filters: filterData,
@@ -29638,12 +29904,12 @@ function useTableData (_ref) {
29638
29904
  genericProps: prefilter.toggle
29639
29905
  } : undefined);
29640
29906
  _context3.next = 15;
29641
- return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
29907
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
29642
29908
  case 15:
29643
29909
  data = _context3.sent;
29644
- currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), ssf);
29910
+ currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), ssf);
29645
29911
  currentData = data.data;
29646
- currentPagination = _objectSpread$A(_objectSpread$A({}, currentPagination), {}, {
29912
+ currentPagination = _objectSpread$z(_objectSpread$z({}, currentPagination), {}, {
29647
29913
  total: data.total
29648
29914
  });
29649
29915
  _context3.next = 30;
@@ -29660,7 +29926,7 @@ function useTableData (_ref) {
29660
29926
  currentData = _data3.data;
29661
29927
  setInitData(currentData);
29662
29928
  case 27:
29663
- _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, p), {}, {
29929
+ _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$z(_objectSpread$z({}, p), {}, {
29664
29930
  pagination: currentPagination,
29665
29931
  filters: filterData,
29666
29932
  data: currentData,
@@ -29669,11 +29935,11 @@ function useTableData (_ref) {
29669
29935
  currentData = _data4;
29670
29936
  currentPagination = pagination;
29671
29937
  case 30:
29672
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29938
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29673
29939
  loading: false,
29674
29940
  data: currentData,
29675
29941
  pagination: currentPagination,
29676
- mappingData: _objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, parentData), state.mappingData), overwriteMappingData), {}, {
29942
+ mappingData: _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, parentData), state.mappingData), overwriteMappingData), {}, {
29677
29943
  prefilter: prefilter
29678
29944
  }),
29679
29945
  currentFetchUrl: currentUrl
@@ -29695,7 +29961,7 @@ function useTableData (_ref) {
29695
29961
  };
29696
29962
  }();
29697
29963
  var onSelect = function onSelect(keys) {
29698
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29964
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29699
29965
  selected: keys
29700
29966
  }));
29701
29967
  };
@@ -29706,7 +29972,7 @@ function useTableData (_ref) {
29706
29972
  return _regeneratorRuntime.wrap(function _callee4$(_context5) {
29707
29973
  while (1) switch (_context5.prev = _context5.next) {
29708
29974
  case 0:
29709
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29975
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29710
29976
  deleting: true
29711
29977
  }));
29712
29978
  newData = _toConsumableArray(state.data);
@@ -29733,7 +29999,7 @@ function useTableData (_ref) {
29733
29999
  })) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
29734
30000
  }
29735
30001
  mapToggle = {};
29736
- _iterator = _createForOfIteratorHelper$4((_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.toggle) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.fields) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : []);
30002
+ _iterator = _createForOfIteratorHelper$3((_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.toggle) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.fields) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : []);
29737
30003
  try {
29738
30004
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
29739
30005
  field = _step.value;
@@ -29746,7 +30012,7 @@ function useTableData (_ref) {
29746
30012
  } finally {
29747
30013
  _iterator.f();
29748
30014
  }
29749
- mappingData = _objectSpread$A(_objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), mapToggle);
30015
+ mappingData = _objectSpread$z(_objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), mapToggle);
29750
30016
  deleteResult = undefined;
29751
30017
  _context4.prev = 7;
29752
30018
  if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
@@ -29836,12 +30102,12 @@ function useTableData (_ref) {
29836
30102
  break;
29837
30103
  }
29838
30104
  _context5.next = 25;
29839
- return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), _objectSpread$A({
29840
- pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
30105
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), _objectSpread$z({
30106
+ pagination: _objectSpread$z(_objectSpread$z({}, state.pagination), {}, {
29841
30107
  current: current
29842
30108
  }),
29843
30109
  columns: configuration.columns,
29844
- filters: _objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
30110
+ filters: _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
29845
30111
  sorter: filterData.sorter
29846
30112
  }, configuration !== null && configuration !== void 0 && (_configuration$filter18 = configuration.filter) !== null && _configuration$filter18 !== void 0 && (_configuration$filter18 = _configuration$filter18.toggle) !== null && _configuration$filter18 !== void 0 && _configuration$filter18.inQuery ? {
29847
30113
  genericProps: globalFilter.toggle
@@ -29852,11 +30118,11 @@ function useTableData (_ref) {
29852
30118
  total = data.total;
29853
30119
  case 28:
29854
30120
  setInitData(newInitData);
29855
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
30121
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29856
30122
  selected: [],
29857
30123
  deleting: false,
29858
30124
  data: newData,
29859
- pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
30125
+ pagination: _objectSpread$z(_objectSpread$z({}, state.pagination), {}, {
29860
30126
  current: current === 0 ? 1 : current,
29861
30127
  total: total
29862
30128
  })
@@ -29877,14 +30143,14 @@ function useTableData (_ref) {
29877
30143
  LOG$3.error(new DivaError('No global select filter defiend'));
29878
30144
  return;
29879
30145
  }
29880
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
30146
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29881
30147
  if (value !== null && value !== void 0 && value.length) {
29882
30148
  newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
29883
30149
  } else {
29884
30150
  newGlobalFilter.select = {};
29885
30151
  }
29886
30152
  setGlobaFilter(newGlobalFilter);
29887
- onChange(_objectSpread$A({
30153
+ onChange(_objectSpread$z({
29888
30154
  pagination: state.pagination
29889
30155
  }, filterData), newGlobalFilter);
29890
30156
  };
@@ -29895,16 +30161,16 @@ function useTableData (_ref) {
29895
30161
  return;
29896
30162
  }
29897
30163
  var toggleFilter = {};
29898
- var mappingData = _objectSpread$A({}, state.mappingData);
30164
+ var mappingData = _objectSpread$z({}, state.mappingData);
29899
30165
  configuration.filter.toggle.fields.forEach(function (f) {
29900
30166
  mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
29901
30167
  toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
29902
30168
  });
29903
- var newGlobalFilter = _objectSpread$A(_objectSpread$A({}, globalFilter), {}, {
30169
+ var newGlobalFilter = _objectSpread$z(_objectSpread$z({}, globalFilter), {}, {
29904
30170
  toggle: globalFilter.toggle ? undefined : toggleFilter
29905
30171
  });
29906
30172
  setGlobaFilter(newGlobalFilter);
29907
- onChange(_objectSpread$A({
30173
+ onChange(_objectSpread$z({
29908
30174
  pagination: state.pagination
29909
30175
  }, filterData), newGlobalFilter, true, true, mappingData);
29910
30176
  };
@@ -29917,7 +30183,7 @@ function useTableData (_ref) {
29917
30183
  LOG$3.error(new DivaError('No global search filter defiend'));
29918
30184
  return;
29919
30185
  }
29920
- var newGlobalFilter = _objectSpread$A(_objectSpread$A({}, globalFilter), {}, {
30186
+ var newGlobalFilter = _objectSpread$z(_objectSpread$z({}, globalFilter), {}, {
29921
30187
  search: {}
29922
30188
  });
29923
30189
  if (value) {
@@ -29931,7 +30197,7 @@ function useTableData (_ref) {
29931
30197
  });
29932
30198
  }
29933
30199
  setGlobaFilter(newGlobalFilter);
29934
- onChange(_objectSpread$A({
30200
+ onChange(_objectSpread$z({
29935
30201
  pagination: state.pagination
29936
30202
  }, filterData), newGlobalFilter);
29937
30203
  };
@@ -29941,20 +30207,20 @@ function useTableData (_ref) {
29941
30207
  LOG$3.error(new DivaError('No global period filter defiend'));
29942
30208
  return;
29943
30209
  }
29944
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
30210
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29945
30211
  newGlobalFilter.timeStamp = {
29946
30212
  fromTimeStamp: [from],
29947
30213
  toTimeStamp: [to]
29948
30214
  };
29949
30215
  if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
29950
- onChange(_objectSpread$A({
30216
+ onChange(_objectSpread$z({
29951
30217
  pagination: state.pagination
29952
- }, filterData), undefined, true, undefined, _objectSpread$A(_objectSpread$A({}, state.mappingData), {}, {
30218
+ }, filterData), undefined, true, undefined, _objectSpread$z(_objectSpread$z({}, state.mappingData), {}, {
29953
30219
  from: from,
29954
30220
  to: to
29955
30221
  }));
29956
30222
  };
29957
- return _objectSpread$A(_objectSpread$A({}, state), {}, {
30223
+ return _objectSpread$z(_objectSpread$z({}, state), {}, {
29958
30224
  title: title,
29959
30225
  configuration: configuration,
29960
30226
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
@@ -29996,8 +30262,8 @@ function StandardTable (_ref) {
29996
30262
  });
29997
30263
  }
29998
30264
 
29999
- function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30000
- function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30265
+ function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30266
+ function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30001
30267
  function Table (props) {
30002
30268
  var root = useStore();
30003
30269
  var variant = useMemo(function () {
@@ -30005,15 +30271,15 @@ function Table (props) {
30005
30271
  return config.variant;
30006
30272
  }, [props.id]);
30007
30273
  return /*#__PURE__*/jsxs(Fragment, {
30008
- children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$z({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$z({}, props))]
30274
+ children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$y({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$y({}, props))]
30009
30275
  });
30010
30276
  }
30011
30277
 
30012
- function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30013
- function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
30014
- function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30015
- function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30016
- function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30278
+ function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30279
+ function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
30280
+ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30281
+ function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30282
+ function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30017
30283
  function useAGGrid (_ref) {
30018
30284
  var id = _ref.id,
30019
30285
  filter = _ref.filter,
@@ -30107,7 +30373,7 @@ function useAGGrid (_ref) {
30107
30373
  value = _ref3[1];
30108
30374
  if (_idx == 0) {
30109
30375
  var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
30110
- rdat.push(_objectSpread$y(_objectSpread$y({}, rd), {}, {
30376
+ rdat.push(_objectSpread$x(_objectSpread$x({}, rd), {}, {
30111
30377
  grouping: [idx.toString()]
30112
30378
  }));
30113
30379
  var sp = key.split(':');
@@ -30135,7 +30401,7 @@ function useAGGrid (_ref) {
30135
30401
  _context.next = 51;
30136
30402
  break;
30137
30403
  }
30138
- _iterator = _createForOfIteratorHelper$3(configuration.mergerFields);
30404
+ _iterator = _createForOfIteratorHelper$2(configuration.mergerFields);
30139
30405
  _context.prev = 9;
30140
30406
  _iterator.s();
30141
30407
  case 11:
@@ -30152,7 +30418,7 @@ function useAGGrid (_ref) {
30152
30418
  }
30153
30419
  merged = '';
30154
30420
  first = true;
30155
- _iterator2 = _createForOfIteratorHelper$3(mergeEntry.fieldId);
30421
+ _iterator2 = _createForOfIteratorHelper$2(mergeEntry.fieldId);
30156
30422
  _context.prev = 18;
30157
30423
  _iterator2.s();
30158
30424
  case 20:
@@ -30250,8 +30516,8 @@ var value = "value-FCA-6";
30250
30516
  var css_248z$l = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
30251
30517
  styleInject(css_248z$l);
30252
30518
 
30253
- function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30254
- function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30519
+ function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30520
+ function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30255
30521
  var AGChart = function AGChart(_ref) {
30256
30522
  var data = _ref.data;
30257
30523
  var groupedData = [];
@@ -30259,11 +30525,11 @@ var AGChart = function AGChart(_ref) {
30259
30525
  data.forEach(function (dt) {
30260
30526
  if (dt.count == 0) return;
30261
30527
  if (groupedData.length > dt.grouping[0]) {
30262
- groupedData[dt.grouping[0]].push(_objectSpread$x(_objectSpread$x({}, dt), {}, {
30528
+ groupedData[dt.grouping[0]].push(_objectSpread$w(_objectSpread$w({}, dt), {}, {
30263
30529
  count: Number(dt.count)
30264
30530
  }));
30265
30531
  } else {
30266
- groupedData.push([_objectSpread$x(_objectSpread$x({}, dt), {}, {
30532
+ groupedData.push([_objectSpread$w(_objectSpread$w({}, dt), {}, {
30267
30533
  count: Number(dt.count)
30268
30534
  })]);
30269
30535
  }
@@ -30304,8 +30570,8 @@ var AGChart = function AGChart(_ref) {
30304
30570
  });
30305
30571
  };
30306
30572
 
30307
- function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30308
- function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30573
+ function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30574
+ function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30309
30575
  var AGGrid = /*#__PURE__*/memo(function (_ref) {
30310
30576
  var id = _ref.id,
30311
30577
  filter = _ref.filter,
@@ -30398,7 +30664,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
30398
30664
  });
30399
30665
  });
30400
30666
  }
30401
- return _objectSpread$w(_objectSpread$w({}, column), {}, {
30667
+ return _objectSpread$v(_objectSpread$v({}, column), {}, {
30402
30668
  cellRenderer: renderer
30403
30669
  });
30404
30670
  });
@@ -30668,11 +30934,11 @@ var CustomText = function CustomText(_ref) {
30668
30934
  };
30669
30935
  var CustomText$1 = observer(CustomText);
30670
30936
 
30671
- function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30672
- function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30673
- function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30674
- function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
30675
- function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30937
+ function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30938
+ function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30939
+ function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30940
+ function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
30941
+ function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30676
30942
  function useFilterBoxData (id) {
30677
30943
  var root = useStore();
30678
30944
  var _useMemo = useMemo(function () {
@@ -30720,7 +30986,7 @@ function useFilterBoxData (id) {
30720
30986
  }
30721
30987
  function reducer(state, actions) {
30722
30988
  var ob = {};
30723
- var _iterator = _createForOfIteratorHelper$2(actions),
30989
+ var _iterator = _createForOfIteratorHelper$1(actions),
30724
30990
  _step;
30725
30991
  try {
30726
30992
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30732,7 +30998,7 @@ function useFilterBoxData (id) {
30732
30998
  } finally {
30733
30999
  _iterator.f();
30734
31000
  }
30735
- return _objectSpread$v(_objectSpread$v({}, state), ob);
31001
+ return _objectSpread$u(_objectSpread$u({}, state), ob);
30736
31002
  }
30737
31003
  return {
30738
31004
  configuration: configuration,
@@ -30743,11 +31009,11 @@ function useFilterBoxData (id) {
30743
31009
  };
30744
31010
  }
30745
31011
 
30746
- function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30747
- function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
30748
- function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30749
- function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30750
- function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31012
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31013
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
31014
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31015
+ function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31016
+ function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30751
31017
  var FilterBox = /*#__PURE__*/memo(function (_ref) {
30752
31018
  var id = _ref.id,
30753
31019
  onChangeFilter = _ref.onChangeFilter,
@@ -30775,7 +31041,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
30775
31041
  }), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
30776
31042
  mode: "single",
30777
31043
  apiInterface: filter.requestOptions,
30778
- wholeData: _objectSpread$u(_objectSpread$u({}, state.filter), {}, {
31044
+ wholeData: _objectSpread$t(_objectSpread$t({}, state.filter), {}, {
30779
31045
  tab: tab
30780
31046
  }),
30781
31047
  mapping: filter.requestMapping,
@@ -30883,7 +31149,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
30883
31149
  }
30884
31150
  function getLabelByValue(targetValue, data) {
30885
31151
  if (!data) return;
30886
- var _iterator = _createForOfIteratorHelper$1(data),
31152
+ var _iterator = _createForOfIteratorHelper(data),
30887
31153
  _step;
30888
31154
  try {
30889
31155
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -31007,8 +31273,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
31007
31273
  return false;
31008
31274
  });
31009
31275
 
31010
- function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31011
- function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31276
+ function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31277
+ function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31012
31278
  function useUIBuilderData (id) {
31013
31279
  var save = undefined;
31014
31280
  var root = useStore();
@@ -31040,7 +31306,7 @@ function useUIBuilderData (id) {
31040
31306
  var configuration = _useMemo.configuration;
31041
31307
  useEffect(function () {
31042
31308
  root.dataStore.getApi2SessionGuid().then(function (res) {
31043
- return setFilter(_objectSpread$t(_objectSpread$t({}, filter), {}, {
31309
+ return setFilter(_objectSpread$s(_objectSpread$s({}, filter), {}, {
31044
31310
  sessionGuid: res
31045
31311
  }));
31046
31312
  });
@@ -31063,8 +31329,8 @@ function useUIBuilderData (id) {
31063
31329
  };
31064
31330
  }
31065
31331
 
31066
- function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31067
- function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31332
+ function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31333
+ function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31068
31334
  function UIBuilder(_ref) {
31069
31335
  var id = _ref.id;
31070
31336
  var state = useUIBuilderData(id);
@@ -31091,7 +31357,7 @@ function UIBuilder(_ref) {
31091
31357
  override = {
31092
31358
  value: newFilter[item.field],
31093
31359
  setValue: function setValue(newVal) {
31094
- var newFilter = _objectSpread$s({}, state.filter);
31360
+ var newFilter = _objectSpread$r({}, state.filter);
31095
31361
  newFilter[item.field] = newVal;
31096
31362
  state.setFilter(newFilter);
31097
31363
  }
@@ -31139,7 +31405,7 @@ function UIBuilder(_ref) {
31139
31405
  case 'AGGrid':
31140
31406
  return /*#__PURE__*/jsx(AGGrid, {
31141
31407
  id: item.id,
31142
- filter: _objectSpread$s({
31408
+ filter: _objectSpread$r({
31143
31409
  optionCodices: JSON.stringify(state.data)
31144
31410
  }, state.filter),
31145
31411
  override: item.id == 'AGGridTopOptionValues' ? {
@@ -31299,8 +31565,8 @@ var OrgItem = function OrgItem(_ref) {
31299
31565
  };
31300
31566
  var OrgItem$1 = observer(OrgItem);
31301
31567
 
31302
- function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31303
- function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31568
+ function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31569
+ function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31304
31570
  function useTransformJson (_ref) {
31305
31571
  var id = _ref.id;
31306
31572
  var _useState = useState(),
@@ -31366,7 +31632,7 @@ function useTransformJson (_ref) {
31366
31632
  }();
31367
31633
  var _transformData = function transformData(data, itemChain, parentOrgId) {
31368
31634
  var _data$children;
31369
- return _objectSpread$r(_objectSpread$r({}, data), {}, {
31635
+ return _objectSpread$q(_objectSpread$q({}, data), {}, {
31370
31636
  label: /*#__PURE__*/jsx(OrgItem$1, {
31371
31637
  data: data,
31372
31638
  configuration: configuration,
@@ -32027,8 +32293,8 @@ function useCatalogEditor (id) {
32027
32293
  };
32028
32294
  }
32029
32295
 
32030
- function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32031
- function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32296
+ function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32297
+ function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32032
32298
  function DragDropUpload(_ref) {
32033
32299
  var api2Params = _ref.api2Params,
32034
32300
  catalogId = _ref.catalogId,
@@ -32136,7 +32402,7 @@ function DragDropUpload(_ref) {
32136
32402
  children: [importStarted && /*#__PURE__*/jsx("p", {
32137
32403
  children: t('backoffice.catalogeditor.classimportstarted')
32138
32404
  }), !importStarted && /*#__PURE__*/jsxs(Fragment, {
32139
- children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$q(_objectSpread$q({}, props), {}, {
32405
+ children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$p(_objectSpread$p({}, props), {}, {
32140
32406
  children: [/*#__PURE__*/jsx("p", {
32141
32407
  className: "ant-upload-drag-icon",
32142
32408
  children: /*#__PURE__*/jsx(InboxOutlined, {})
@@ -32353,12 +32619,12 @@ function CatalogEditor(_ref) {
32353
32619
  }
32354
32620
  var CatalogEditor$1 = observer(CatalogEditor);
32355
32621
 
32356
- function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32357
- function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32622
+ function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32623
+ function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32358
32624
  var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
32359
32625
  var _root$contentStore$bo, _root$contentStore$ri;
32360
32626
  var root = useStore();
32361
- return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$p(_objectSpread$p({}, props), {}, {
32627
+ return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$o(_objectSpread$o({}, props), {}, {
32362
32628
  ref: ref,
32363
32629
  darkMode: root.contentStore.theme == 'darkmode',
32364
32630
  jwt: root.dataStore.jwt,
@@ -32369,8 +32635,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
32369
32635
  });
32370
32636
  var Spreadsheet = observer(SpreadsheetWrapper);
32371
32637
 
32372
- function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32373
- function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32638
+ function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32639
+ function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32374
32640
 
32375
32641
  // Type definition for the context state
32376
32642
 
@@ -32392,14 +32658,14 @@ var useEnricherContext = function useEnricherContext() {
32392
32658
  loading: loading,
32393
32659
  setOptions: function setOptions(options) {
32394
32660
  var state = root.contextStore.getContext('enricher');
32395
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$o(_objectSpread$o({}, state[stateKey]), {}, {
32661
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
32396
32662
  options: options,
32397
32663
  loading: false
32398
32664
  })));
32399
32665
  },
32400
32666
  setLoading: function setLoading(loading) {
32401
32667
  var state = root.contextStore.getContext('enricher');
32402
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$o(_objectSpread$o({}, state[stateKey]), {}, {
32668
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
32403
32669
  loading: loading
32404
32670
  })));
32405
32671
  }
@@ -32510,7 +32776,7 @@ var useEnricherContext = function useEnricherContext() {
32510
32776
  }, [urlPackageId, getContext().packageId, setSelectedPackage]);
32511
32777
 
32512
32778
  // Return context + handlers
32513
- return _objectSpread$o(_objectSpread$o({}, getContext()), {}, {
32779
+ return _objectSpread$n(_objectSpread$n({}, getContext()), {}, {
32514
32780
  setSelectedSerie: setSelectedSerie,
32515
32781
  setSelectedItem: setSelectedItem,
32516
32782
  setSelectedFeature: setSelectedFeature,
@@ -32856,157 +33122,6 @@ function createTranslatedColumnConfig(field, headerName, languages) {
32856
33122
  };
32857
33123
  }
32858
33124
 
32859
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
32860
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
32861
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
32862
- function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32863
- function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32864
-
32865
- /**
32866
- * Props for the useTools hook
32867
- */
32868
-
32869
- /**
32870
- * Custom hook for managing tools and configurator functionality
32871
- *
32872
- * @param props - The hook props
32873
- * @param props.catalog - Catalog object for configurator tools
32874
- * @param props.enricherPackage - Enricher package object for configurator tools
32875
- * @param props.isApi2 - Whether to use API2 mode
32876
- * @param props.mainInformationWindowCodex - Main information window codex
32877
- * @param props.serie - Serie object for configurator tools
32878
- * @param props.item - Item object with type number
32879
- * @param props.setSerie - Function to set serie
32880
- * @param props.setArticle - Function to set article
32881
- * @returns Object containing tool management functions
32882
- * @returns {Function} updateConfigurator - Function to update configurator parameters
32883
- * @returns {Function} openInformationWindow - Function to open information window
32884
- * @returns {Function} addSecondaryTables - Function to add secondary tables
32885
- * @returns {Function} removeSecondaryTables - Function to remove secondary tables
32886
- */
32887
- var useTools = function useTools(_ref) {
32888
- var catalog = _ref.catalog,
32889
- enricherPackage = _ref.enricherPackage,
32890
- isApi2 = _ref.isApi2,
32891
- onlyPlaceholder = _ref.onlyPlaceholder,
32892
- mainInformationWindowCodex = _ref.mainInformationWindowCodex,
32893
- serie = _ref.serie,
32894
- item = _ref.item,
32895
- setSerie = _ref.setSerie,
32896
- setArticle = _ref.setArticle,
32897
- conditionalTools = _ref.conditionalTools;
32898
- var root = useStore();
32899
- var catalogId = catalog === null || catalog === void 0 ? void 0 : catalog._id;
32900
- var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
32901
- var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
32902
- var createTool = function createTool(tool) {
32903
- return _objectSpread$n({
32904
- startWidth: 600,
32905
- defaultPinned: true,
32906
- defaultOpen: false
32907
- }, tool);
32908
- };
32909
- var createInformationWindow = function createInformationWindow(codex, open) {
32910
- return createTool({
32911
- id: 'info',
32912
- name: 'Information',
32913
- type: 'InformationWindow',
32914
- where: 'right',
32915
- parameters: {
32916
- contentItemCodex: codex
32917
- },
32918
- defaultOpen: open
32919
- });
32920
- };
32921
- var createConfigurator = function createConfigurator(parameters) {
32922
- var elementProps = {
32923
- isoLanguageIds: isoLanguageIds,
32924
- item: item,
32925
- serie: serie,
32926
- onSerieChange: setSerie,
32927
- onItemChange: setArticle
32928
- };
32929
- return createTool({
32930
- id: 'WYSIWYG',
32931
- name: 'Konfigurator',
32932
- type: 'Configurator',
32933
- where: 'right',
32934
- parameters: _objectSpread$n({
32935
- catalogId: catalogId,
32936
- packageId: packageId,
32937
- isIDMData: !isApi2 ? '1' : undefined
32938
- }, parameters),
32939
- elementProps: elementProps
32940
- });
32941
- };
32942
- var updateInformationWindow = function updateInformationWindow(codex, open) {
32943
- root.contentStore.rightToolBar.addTools(createInformationWindow(codex, open));
32944
- if (open) {
32945
- root.contentStore.rightToolBar.selectTool('info');
32946
- root.contentStore.rightToolBar.hidden = false;
32947
- }
32948
- };
32949
- var updateConfigurator = function updateConfigurator(parameters) {
32950
- root.contentStore.rightToolBar.addTools(createConfigurator(parameters));
32951
- };
32952
-
32953
- /*
32954
- * Elements need to be added/removed all at once
32955
- * This makes sure the store remebers the last open tool and reopens it if it is used by the next component
32956
- */
32957
- useEffect(function () {
32958
- var _root$contentStore$ri, _root$contentStore$bo;
32959
- var tools = [];
32960
- if ((catalogId || packageId) && !onlyPlaceholder) {
32961
- tools.push(createConfigurator());
32962
- }
32963
- if (mainInformationWindowCodex) {
32964
- tools.push(createInformationWindow(mainInformationWindowCodex, false));
32965
- }
32966
- var _iterator = _createForOfIteratorHelper(conditionalTools || []),
32967
- _step;
32968
- try {
32969
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
32970
- var _tool$condition;
32971
- var tool = _step.value;
32972
- if ((_tool$condition = tool.condition) !== null && _tool$condition !== void 0 && _tool$condition.call(tool)) {
32973
- tools.push(createTool(tool));
32974
- }
32975
- }
32976
- } catch (err) {
32977
- _iterator.e(err);
32978
- } finally {
32979
- _iterator.f();
32980
- }
32981
- (_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(tools.filter(function (tool) {
32982
- return tool.where === 'right';
32983
- })));
32984
- (_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(tools.filter(function (tool) {
32985
- return !tool.where || tool.where === 'bottom';
32986
- })));
32987
- return function () {
32988
- var _root$contentStore$ri2, _root$contentStore$bo2;
32989
- var toRemove = [];
32990
- if (mainInformationWindowCodex) {
32991
- toRemove.push('info');
32992
- }
32993
- if ((catalogId || packageId) && !onlyPlaceholder) {
32994
- toRemove.push('WYSIWYG');
32995
- }
32996
- (_root$contentStore$ri2 = root.contentStore.rightToolBar).removeTools.apply(_root$contentStore$ri2, toRemove.concat(_toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
32997
- return tool.id;
32998
- })) || [])));
32999
- (_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, _toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
33000
- return tool.id;
33001
- })) || []));
33002
- };
33003
- }, [mainInformationWindowCodex, catalogId, packageId, conditionalTools, onlyPlaceholder, item, serie]);
33004
- return {
33005
- updateConfigurator: updateConfigurator,
33006
- updateInformationWindow: updateInformationWindow
33007
- };
33008
- };
33009
-
33010
33125
  var TableGroups = observer(function () {
33011
33126
  var _useTranslation = useTranslation(),
33012
33127
  t = _useTranslation.t;
@@ -33716,6 +33831,15 @@ var getInfoTypeKey = function getInfoTypeKey(t) {
33716
33831
  }, {
33717
33832
  name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
33718
33833
  value: 14
33834
+ }, {
33835
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i15'),
33836
+ value: 15
33837
+ }, {
33838
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i16'),
33839
+ value: 16
33840
+ }, {
33841
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i17'),
33842
+ value: 17
33719
33843
  }];
33720
33844
  };
33721
33845
 
@@ -34193,12 +34317,14 @@ var TablePackages = observer(function () {
34193
34317
  field: "settings.".concat(organizationId, ".automaticPublishing"),
34194
34318
  cellDataType: 'boolean',
34195
34319
  editable: true,
34196
- isDictionary: true
34320
+ isDictionary: true,
34321
+ defaultValue: false
34197
34322
  }, {
34198
34323
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
34199
34324
  field: 'isApi',
34200
34325
  cellDataType: 'boolean',
34201
- editable: false
34326
+ editable: false,
34327
+ defaultValue: false
34202
34328
  }, {
34203
34329
  headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
34204
34330
  field: 'lastUpdatedDate',
@@ -34288,6 +34414,7 @@ var TableProperties = observer(function () {
34288
34414
  setSelectedItem = _useModule.setSelectedItem,
34289
34415
  selectedItem = _useModule.selectedItem;
34290
34416
  useTools({
34417
+ mainInformationWindowCodex: 'IDM_ENRICHER_PROPERTIES_TABLE_INFO',
34291
34418
  enricherPackage: selectedPackage,
34292
34419
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
34293
34420
  onlyPlaceholder: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.onlyPlaceholder,
@@ -34341,7 +34468,7 @@ var TableProperties = observer(function () {
34341
34468
  additionalFields: ['featureNosDisplayTexts'],
34342
34469
  isDictionary: true
34343
34470
  }, {
34344
- field: 'optionIds',
34471
+ field: 'optionKeys',
34345
34472
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
34346
34473
  cellDataType: 'lookup',
34347
34474
  editable: !viewOnly,
@@ -34353,10 +34480,10 @@ var TableProperties = observer(function () {
34353
34480
  read: apiConfig.enricherService + '/packages/${packageId}/lookup/options'
34354
34481
  },
34355
34482
  lookupValue: 'optionText',
34356
- lookupKey: '_id',
34483
+ lookupKey: 'optionKey',
34357
34484
  additionalMappings: [{
34358
- lookupField: 'optionKey',
34359
- targetField: 'optionKeys'
34485
+ lookupField: '_id',
34486
+ targetField: 'optionIds'
34360
34487
  }, {
34361
34488
  lookupField: 'featureNos',
34362
34489
  targetField: 'optionFeatureNos'
@@ -34370,7 +34497,7 @@ var TableProperties = observer(function () {
34370
34497
  filter: '${featureNos}'
34371
34498
  }
34372
34499
  },
34373
- additionalFields: ['optionKeysDisplayTexts', 'optionKeys', 'optionFeatureNos'],
34500
+ additionalFields: ['optionKeysDisplayTexts', 'optionIds', 'optionFeatureNos'],
34374
34501
  isDictionary: true
34375
34502
  }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.properties.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), createTranslatedColumnConfig('value', 'backoffice.idmEnricher.properties.label.value', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
34376
34503
  field: 'serieNos',
@@ -34458,7 +34585,11 @@ var TableProperties = observer(function () {
34458
34585
  return /*#__PURE__*/jsxs(Fragment, {
34459
34586
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34460
34587
  title: /*#__PURE__*/jsxs("div", {
34461
- children: [t('backoffice.menu.items.label.IDMEnricherEditorTableProperties'), /*#__PURE__*/jsx(Space$1, {
34588
+ children: [/*#__PURE__*/jsxs(Space$1, {
34589
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTableProperties'), /*#__PURE__*/jsx(InformationButton, {
34590
+ codex: "IDM_ENRICHER_PROPERTIES_TABLE_INFO"
34591
+ })]
34592
+ }), /*#__PURE__*/jsx(Space$1, {
34462
34593
  style: {
34463
34594
  "float": 'right'
34464
34595
  },
@@ -35137,6 +35268,8 @@ var RenamingTable = observer(function (_ref) {
35137
35268
  var _useTranslation = useTranslation(),
35138
35269
  t = _useTranslation.t,
35139
35270
  i18n = _useTranslation.i18n;
35271
+ var _useDivaCore = useDivaCore(),
35272
+ onEvent = _useDivaCore.actions.onEvent;
35140
35273
  var _useModule = useModule$1(['renaming', type]),
35141
35274
  packageId = _useModule.packageId,
35142
35275
  apiConfig = _useModule.apiConfig,
@@ -35175,6 +35308,18 @@ var RenamingTable = observer(function (_ref) {
35175
35308
  setSelectedSerie((_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.data);
35176
35309
  break;
35177
35310
  }
35311
+ },
35312
+ onDataUpdated: function onDataUpdated(event) {
35313
+ switch (type) {
35314
+ case 'series':
35315
+ onEvent({
35316
+ type: 'invalidateCache',
35317
+ data: {
35318
+ type: 'series'
35319
+ }
35320
+ });
35321
+ break;
35322
+ }
35178
35323
  }
35179
35324
  };
35180
35325
  }, [type]);
@@ -35526,7 +35671,8 @@ function getConfig(t) {
35526
35671
  field: 'partListExclusive',
35527
35672
  headerName: 'backoffice.idmEnricher.exclusivity.label.partListExclusive',
35528
35673
  editable: false,
35529
- cellDataType: 'boolean'
35674
+ cellDataType: 'boolean',
35675
+ defaultValue: false
35530
35676
  }, {
35531
35677
  field: 'sequenceNo',
35532
35678
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -35593,10 +35739,6 @@ function getConfig(t) {
35593
35739
  editable: false,
35594
35740
  cellDataType: 'translated',
35595
35741
  isDictionary: true
35596
- }, {
35597
- headerName: 'backoffice.idmEnricher.exclusivity.label.optionFreeText',
35598
- field: 'optionFreeText',
35599
- editable: false
35600
35742
  }, {
35601
35743
  headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
35602
35744
  field: 'validFromDate',
@@ -35727,6 +35869,8 @@ var ExclusivityTable = observer(function (_ref) {
35727
35869
  config = _ref.config;
35728
35870
  var _useTranslation6 = useTranslation(),
35729
35871
  t = _useTranslation6.t;
35872
+ var _useDivaCore = useDivaCore(),
35873
+ onEvent = _useDivaCore.actions.onEvent;
35730
35874
  var _useModule = useModule$1(['exclusivity', type]),
35731
35875
  packageId = _useModule.packageId,
35732
35876
  apiConfig = _useModule.apiConfig,
@@ -35769,9 +35913,21 @@ var ExclusivityTable = observer(function (_ref) {
35769
35913
  setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
35770
35914
  break;
35771
35915
  }
35916
+ },
35917
+ onDataUpdated: function onDataUpdated(event) {
35918
+ switch (type) {
35919
+ case 'eseries':
35920
+ onEvent({
35921
+ type: 'invalidateCache',
35922
+ data: {
35923
+ type: 'series'
35924
+ }
35925
+ });
35926
+ break;
35927
+ }
35772
35928
  }
35773
35929
  };
35774
- }, [updateConfigurator, type]);
35930
+ }, [updateConfigurator, type, onEvent]);
35775
35931
  var apiInterface = useMemo(function () {
35776
35932
  var patchId = '${_id}';
35777
35933
  if (type === 'eitems') patchId = '${typeNo}';
@@ -35822,7 +35978,8 @@ var ExclusivityTable = observer(function (_ref) {
35822
35978
  editable: !viewOnly,
35823
35979
  cellDataType: 'boolean',
35824
35980
  pinned: 'left',
35825
- lockPinned: true
35981
+ lockPinned: true,
35982
+ defaultValue: false
35826
35983
  }].concat(_toConsumableArray(config.colDef), [{
35827
35984
  headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
35828
35985
  field: 'lastUpdatedDate',
@@ -35878,6 +36035,7 @@ var TableTabGroups = observer(function () {
35878
36035
  setSelectedItem = _useModule.setSelectedItem,
35879
36036
  selectedItem = _useModule.selectedItem;
35880
36037
  useTools({
36038
+ mainInformationWindowCodex: 'IDM_ENRICHER_TAB_GROUPS_TABLE_INFO',
35881
36039
  enricherPackage: selectedPackage,
35882
36040
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
35883
36041
  onlyPlaceholder: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.onlyPlaceholder,
@@ -35961,7 +36119,11 @@ var TableTabGroups = observer(function () {
35961
36119
  return /*#__PURE__*/jsxs(Fragment, {
35962
36120
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35963
36121
  title: /*#__PURE__*/jsxs("div", {
35964
- children: [t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups'), /*#__PURE__*/jsx(Space$1, {
36122
+ children: [/*#__PURE__*/jsxs(Space$1, {
36123
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups'), /*#__PURE__*/jsx(InformationButton, {
36124
+ codex: "IDM_ENRICHER_TAB_GROUPS_TABLE_INFO"
36125
+ })]
36126
+ }), /*#__PURE__*/jsx(Space$1, {
35965
36127
  style: {
35966
36128
  "float": 'right'
35967
36129
  },
@@ -37649,7 +37811,8 @@ var TablePriceList = observer(function () {
37649
37811
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
37650
37812
  field: 'forPublishing',
37651
37813
  editable: !viewOnly,
37652
- cellDataType: 'boolean'
37814
+ cellDataType: 'boolean',
37815
+ defaultValue: false
37653
37816
  }, {
37654
37817
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
37655
37818
  field: 'validFrom',
@@ -38882,20 +39045,6 @@ var useCatalogContext = function useCatalogContext() {
38882
39045
  });
38883
39046
  };
38884
39047
 
38885
- function InformationButton(_ref) {
38886
- var codex = _ref.codex;
38887
- var _useTools = useTools({}),
38888
- updateInformationWindow = _useTools.updateInformationWindow;
38889
- return /*#__PURE__*/jsx(Button, {
38890
- type: "text",
38891
- icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
38892
- onClick: function onClick(e) {
38893
- e.stopPropagation();
38894
- updateInformationWindow(codex, true);
38895
- }
38896
- });
38897
- }
38898
-
38899
39048
  var TableCatalogs = observer(function () {
38900
39049
  var root = useStore();
38901
39050
  var _useTranslation = useTranslation(),
@@ -39155,6 +39304,42 @@ var TableCatalogs = observer(function () {
39155
39304
  field: 'size',
39156
39305
  cellDataType: 'number',
39157
39306
  editable: false
39307
+ }, {
39308
+ headerName: 'backoffice.idmCatalog.catalogs.label.logo',
39309
+ field: 'logo',
39310
+ cellDataType: 'asset',
39311
+ customParams: {
39312
+ isObject: true,
39313
+ urlField: 'url',
39314
+ fileNameField: 'name',
39315
+ mediaItemIdField: 'mediaitemId',
39316
+ apiInterface: {
39317
+ create: {
39318
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
39319
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
39320
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
39321
+ }
39322
+ },
39323
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp', 'image/svg+xml']
39324
+ }
39325
+ }, {
39326
+ headerName: 'backoffice.idmCatalog.catalogs.label.catalogImage',
39327
+ field: 'catalogImage',
39328
+ cellDataType: 'asset',
39329
+ customParams: {
39330
+ isObject: true,
39331
+ urlField: 'url',
39332
+ fileNameField: 'name',
39333
+ mediaItemIdField: 'mediaitemId',
39334
+ apiInterface: {
39335
+ create: {
39336
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
39337
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
39338
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
39339
+ }
39340
+ },
39341
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp', 'image/svg+xml']
39342
+ }
39158
39343
  }, {
39159
39344
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
39160
39345
  field: 'lastUpdatedDate',
@@ -39260,7 +39445,8 @@ var TableCatalogs = observer(function () {
39260
39445
  }, {
39261
39446
  headerName: 'backoffice.idmCatalog.general.label.catalogMergeType',
39262
39447
  field: 'catalogMergeType',
39263
- cellDataType: 'boolean'
39448
+ cellDataType: 'boolean',
39449
+ defaultValue: false
39264
39450
  }, {
39265
39451
  headerName: 'backoffice.idmCatalog.general.label.catalogDataVersion',
39266
39452
  field: 'catalogDataVersion',
@@ -39576,7 +39762,8 @@ var TableCatalogs = observer(function () {
39576
39762
  headerName: 'backoffice.idmCatalog.general.label.basicPriceDependent',
39577
39763
  field: 'basicPriceDependent',
39578
39764
  cellDataType: 'boolean',
39579
- required: true
39765
+ required: true,
39766
+ defaultValue: false
39580
39767
  }, {
39581
39768
  headerName: 'backoffice.idmCatalog.general.label.priceTypeFormula',
39582
39769
  field: 'priceTypeFormula'
@@ -40146,6 +40333,80 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
40146
40333
  },
40147
40334
  required: true
40148
40335
  }]
40336
+ }, {
40337
+ headerName: 'backoffice.idmCatalog.items.label.images',
40338
+ field: 'images',
40339
+ cellDataType: 'asset',
40340
+ customParams: {
40341
+ multiple: true,
40342
+ isObject: true,
40343
+ urlField: 'url',
40344
+ fileNameField: 'name',
40345
+ mediaItemIdField: 'mediaitemId',
40346
+ additionalFields: [{
40347
+ type: 'lookup',
40348
+ field: 'decisionNo',
40349
+ label: 'backoffice.idmCatalogEditor.items.label.decisionRefs',
40350
+ lookupLabelTemplate: '${name} (${value})',
40351
+ apiInterface: {
40352
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
40353
+ },
40354
+ lookupValue: 'decisionText',
40355
+ lookupKey: 'decisionNo',
40356
+ translated: true,
40357
+ filter: function filter(_, lookupData) {
40358
+ return lookupData.decisionType === 0 || lookupData.decisionType === 1;
40359
+ },
40360
+ additionalMappings: [{
40361
+ lookupField: 'decisionType'
40362
+ }]
40363
+ }],
40364
+ apiInterface: {
40365
+ create: {
40366
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
40367
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
40368
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
40369
+ }
40370
+ },
40371
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp']
40372
+ }
40373
+ }, {
40374
+ headerName: 'backoffice.idmCatalog.items.label.svgs',
40375
+ field: 'svgs',
40376
+ cellDataType: 'asset',
40377
+ customParams: {
40378
+ multiple: true,
40379
+ isObject: true,
40380
+ urlField: 'url',
40381
+ fileNameField: 'name',
40382
+ mediaItemIdField: 'mediaitemId',
40383
+ apiInterface: {
40384
+ create: {
40385
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
40386
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
40387
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
40388
+ }
40389
+ },
40390
+ allowedTypes: ['image/svg+xml'],
40391
+ additionalFields: [{
40392
+ type: 'lookup',
40393
+ field: 'decisionNo',
40394
+ label: 'backoffice.idmCatalogEditor.items.label.decisionRefs',
40395
+ lookupLabelTemplate: '${name} (${value})',
40396
+ apiInterface: {
40397
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
40398
+ },
40399
+ lookupValue: 'decisionText',
40400
+ lookupKey: 'decisionNo',
40401
+ translated: true,
40402
+ filter: function filter(_, lookupData) {
40403
+ return lookupData.decisionType === 0 || lookupData.decisionType === 1;
40404
+ },
40405
+ additionalMappings: [{
40406
+ lookupField: 'decisionType'
40407
+ }]
40408
+ }]
40409
+ }
40149
40410
  }, {
40150
40411
  headerName: 'backoffice.idmCatalog.items.label.common',
40151
40412
  children: [{
@@ -40196,7 +40457,8 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
40196
40457
  children: [{
40197
40458
  headerName: 'backoffice.idmCatalogEditor.items.label.partListExclusive',
40198
40459
  field: 'partListExclusive',
40199
- cellDataType: 'boolean'
40460
+ cellDataType: 'boolean',
40461
+ defaultValue: false
40200
40462
  }, {
40201
40463
  headerName: 'backoffice.idmCatalogEditor.items.label.partlist',
40202
40464
  field: 'partListRef',
@@ -40535,6 +40797,7 @@ var TableItems = observer(function () {
40535
40797
  apiConfig = _useModule.apiConfig,
40536
40798
  organizationId = _useModule.organizationId;
40537
40799
  useTools({
40800
+ mainInformationWindowCodex: 'IDM_ITEMS_TABLE_INFO',
40538
40801
  catalog: selectedCatalog,
40539
40802
  setSerie: setSelectedSerie,
40540
40803
  setArticle: setSelectedItem,
@@ -40555,7 +40818,11 @@ var TableItems = observer(function () {
40555
40818
  return /*#__PURE__*/jsxs(Fragment, {
40556
40819
  children: [/*#__PURE__*/jsx(Descriptions$1, {
40557
40820
  title: /*#__PURE__*/jsxs("div", {
40558
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableItems'), /*#__PURE__*/jsxs(Space$1, {
40821
+ children: [/*#__PURE__*/jsxs(Space$1, {
40822
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableItems'), /*#__PURE__*/jsx(InformationButton, {
40823
+ codex: "IDM_ITEMS_TABLE_INFO"
40824
+ })]
40825
+ }), /*#__PURE__*/jsxs(Space$1, {
40559
40826
  style: {
40560
40827
  "float": 'right'
40561
40828
  },
@@ -40604,8 +40871,11 @@ var TableItems = observer(function () {
40604
40871
  });
40605
40872
 
40606
40873
  var TableSeries = observer(function () {
40874
+ var _useDivaCore = useDivaCore(),
40875
+ onEvent = _useDivaCore.actions.onEvent;
40607
40876
  var _useTranslation = useTranslation(),
40608
- t = _useTranslation.t;
40877
+ t = _useTranslation.t,
40878
+ i18n = _useTranslation.i18n;
40609
40879
  var _useModule = useModule(['series']),
40610
40880
  selectedCatalog = _useModule.selectedCatalog,
40611
40881
  selectedGlobalSerie = _useModule.selectedSerie,
@@ -40675,6 +40945,12 @@ var TableSeries = observer(function () {
40675
40945
  if (event.updates.length == 0) {
40676
40946
  setGlobalSelectedSerie(null);
40677
40947
  }
40948
+ onEvent({
40949
+ type: 'invalidateCache',
40950
+ data: {
40951
+ type: 'series'
40952
+ }
40953
+ });
40678
40954
  }
40679
40955
  };
40680
40956
  }, [setGlobalSelectedSerie, setSelectedSerie, resetSeriesSelector]);
@@ -40723,6 +40999,80 @@ var TableSeries = observer(function () {
40723
40999
  displayLabelTemplate: '${name} (${value})'
40724
41000
  }
40725
41001
  }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), {
41002
+ headerName: 'backoffice.idmCatalog.series.label.mainImage',
41003
+ field: 'mainImage',
41004
+ cellDataType: 'asset',
41005
+ customParams: {
41006
+ isObject: true,
41007
+ urlField: 'url',
41008
+ fileNameField: 'name',
41009
+ mediaItemIdField: 'mediaitemId',
41010
+ apiInterface: {
41011
+ create: {
41012
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41013
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41014
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41015
+ }
41016
+ },
41017
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp']
41018
+ }
41019
+ }, {
41020
+ headerName: 'backoffice.idmCatalog.series.label.showroomImages',
41021
+ field: 'showroomImages',
41022
+ cellDataType: 'asset',
41023
+ customParams: {
41024
+ multiple: true,
41025
+ isObject: true,
41026
+ urlField: 'url',
41027
+ fileNameField: 'name',
41028
+ mediaItemIdField: 'mediaitemId',
41029
+ apiInterface: {
41030
+ create: {
41031
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41032
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41033
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41034
+ }
41035
+ },
41036
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp']
41037
+ }
41038
+ }, {
41039
+ headerName: 'backoffice.idmCatalog.series.label.documents',
41040
+ field: 'documents',
41041
+ cellDataType: 'asset',
41042
+ customParams: {
41043
+ multiple: true,
41044
+ isObject: true,
41045
+ urlField: 'url',
41046
+ fileNameField: 'name',
41047
+ mediaItemIdField: 'mediaitemId',
41048
+ additionalFields: [{
41049
+ type: 'enum',
41050
+ field: 'infoType',
41051
+ label: 'backoffice.idmCatalog.detailinfos.label.infoType',
41052
+ enumData: [{
41053
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
41054
+ value: 9
41055
+ }, {
41056
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
41057
+ value: 10
41058
+ }, {
41059
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
41060
+ value: 11
41061
+ }, {
41062
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
41063
+ value: 12
41064
+ }]
41065
+ }],
41066
+ apiInterface: {
41067
+ create: {
41068
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41069
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41070
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41071
+ }
41072
+ },
41073
+ allowedTypes: ['application/pdf']
41074
+ }
41075
+ }, {
40726
41076
  field: 'decisionRefs',
40727
41077
  headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
40728
41078
  cellDataType: 'lookup',
@@ -40798,7 +41148,7 @@ var TableSeries = observer(function () {
40798
41148
  defaultValue: '${catalogId}'
40799
41149
  }]
40800
41150
  };
40801
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
41151
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
40802
41152
  return /*#__PURE__*/jsxs(Fragment, {
40803
41153
  children: [/*#__PURE__*/jsx(Descriptions$1, {
40804
41154
  title: /*#__PURE__*/jsxs("div", {
@@ -41058,6 +41408,7 @@ var TableFeatures$2 = observer(function () {
41058
41408
  selectedItem = _useModule.selectedItem,
41059
41409
  selectedSerie = _useModule.selectedSerie;
41060
41410
  useTools({
41411
+ mainInformationWindowCodex: 'IDM_FEATURES_TABLE_INFO',
41061
41412
  catalog: selectedCatalog,
41062
41413
  setSerie: setSelectedSerie,
41063
41414
  setArticle: setSelectedItem,
@@ -41080,7 +41431,11 @@ var TableFeatures$2 = observer(function () {
41080
41431
  return /*#__PURE__*/jsxs(Fragment, {
41081
41432
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41082
41433
  title: /*#__PURE__*/jsxs("div", {
41083
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsxs(Space$1, {
41434
+ children: [/*#__PURE__*/jsxs(Space$1, {
41435
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsx(InformationButton, {
41436
+ codex: "IDM_FEATURES_TABLE_INFO"
41437
+ })]
41438
+ }), /*#__PURE__*/jsxs(Space$1, {
41084
41439
  style: {
41085
41440
  "float": 'right'
41086
41441
  },
@@ -41147,6 +41502,9 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
41147
41502
  selectedCatalog = _ref.selectedCatalog,
41148
41503
  apiConfig = _ref.apiConfig,
41149
41504
  hooks = _ref.hooks;
41505
+ var _useTranslation = useTranslation(),
41506
+ t = _useTranslation.t,
41507
+ i18n = _useTranslation.i18n;
41150
41508
  var applicationData = useMemo(function () {
41151
41509
  return {
41152
41510
  organizationId: organizationId,
@@ -41177,7 +41535,8 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
41177
41535
  }, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), {
41178
41536
  headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
41179
41537
  field: 'optionFreeText',
41180
- cellDataType: 'boolean'
41538
+ cellDataType: 'boolean',
41539
+ defaultValue: false
41181
41540
  }, {
41182
41541
  field: 'featureNos',
41183
41542
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
@@ -41206,6 +41565,137 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
41206
41565
  },
41207
41566
  additionalFields: ['featureIdsDisplayTexts', 'featureIds'],
41208
41567
  isDictionary: true
41568
+ }, {
41569
+ headerName: 'backoffice.idmCatalog.items.label.optionImages',
41570
+ field: 'optionImages',
41571
+ cellDataType: 'asset',
41572
+ customParams: {
41573
+ multiple: true,
41574
+ isObject: true,
41575
+ urlField: 'url',
41576
+ fileNameField: 'name',
41577
+ mediaItemIdField: 'mediaitemId',
41578
+ apiInterface: {
41579
+ create: {
41580
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41581
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41582
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41583
+ }
41584
+ },
41585
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp'],
41586
+ additionalFields: [{
41587
+ type: 'lookup',
41588
+ field: 'serieNo',
41589
+ label: 'backoffice.idmCatalog.series.label.serieNo',
41590
+ lookupLabelTemplate: '${name} (${value})',
41591
+ apiInterface: {
41592
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series'
41593
+ },
41594
+ lookupValue: 'seriesName',
41595
+ lookupKey: 'serieNo',
41596
+ translated: true,
41597
+ additionalMappings: [{
41598
+ lookupField: '_id',
41599
+ targetField: 'serieId'
41600
+ }]
41601
+ }, {
41602
+ type: 'lookup',
41603
+ field: 'itemTypeNo',
41604
+ label: 'backoffice.idmCatalog.prices.label.typeNo',
41605
+ lookupLabelTemplate: '${name} (${value})',
41606
+ apiInterface: {
41607
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items'
41608
+ },
41609
+ lookupValue: 'shortText',
41610
+ lookupKey: 'typeNo',
41611
+ translated: true,
41612
+ dependsOn: ['serieId']
41613
+ }]
41614
+ }
41615
+ }, {
41616
+ headerName: 'backoffice.idmCatalog.items.label.textures',
41617
+ field: 'textures',
41618
+ cellDataType: 'asset',
41619
+ customParams: {
41620
+ multiple: true,
41621
+ isObject: true,
41622
+ urlField: 'url',
41623
+ fileNameField: 'name',
41624
+ mediaItemIdField: 'mediaitemId',
41625
+ apiInterface: {
41626
+ create: {
41627
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41628
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41629
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41630
+ }
41631
+ },
41632
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp'],
41633
+ additionalFields: [{
41634
+ type: 'lookup',
41635
+ field: 'serieNo',
41636
+ label: 'backoffice.idmCatalog.series.label.serieNo',
41637
+ lookupLabelTemplate: '${name} (${value})',
41638
+ apiInterface: {
41639
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series'
41640
+ },
41641
+ lookupValue: 'seriesName',
41642
+ lookupKey: 'serieNo',
41643
+ translated: true,
41644
+ additionalMappings: [{
41645
+ lookupField: '_id',
41646
+ targetField: 'serieId'
41647
+ }]
41648
+ }, {
41649
+ type: 'lookup',
41650
+ field: 'itemTypeNo',
41651
+ label: 'backoffice.idmCatalog.prices.label.typeNo',
41652
+ lookupLabelTemplate: '${name} (${value})',
41653
+ apiInterface: {
41654
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${serieId}/items'
41655
+ },
41656
+ lookupValue: 'shortText',
41657
+ lookupKey: 'typeNo',
41658
+ translated: true,
41659
+ dependsOn: ['serieId']
41660
+ }]
41661
+ }
41662
+ }, {
41663
+ headerName: 'backoffice.idmCatalog.items.label.documents',
41664
+ field: 'documents',
41665
+ cellDataType: 'asset',
41666
+ customParams: {
41667
+ multiple: true,
41668
+ isObject: true,
41669
+ urlField: 'url',
41670
+ fileNameField: 'name',
41671
+ mediaItemIdField: 'mediaitemId',
41672
+ additionalFields: [{
41673
+ type: 'enum',
41674
+ field: 'infoType',
41675
+ label: 'backoffice.idmCatalog.detailinfos.label.infoType',
41676
+ enumData: [{
41677
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
41678
+ value: 8
41679
+ }, {
41680
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i15'),
41681
+ value: 15
41682
+ }, {
41683
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i16'),
41684
+ value: 16
41685
+ }, {
41686
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
41687
+ value: 12
41688
+ }]
41689
+ }],
41690
+ apiInterface: {
41691
+ create: {
41692
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
41693
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
41694
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
41695
+ }
41696
+ },
41697
+ allowedTypes: ['application/pdf']
41698
+ }
41209
41699
  }, {
41210
41700
  headerName: 'backoffice.idmCatalog.items.label.validation',
41211
41701
  children: [{
@@ -41296,7 +41786,7 @@ var Options$1 = /*#__PURE__*/forwardRef(function Options(_ref, ref) {
41296
41786
  defaultValue: '${catalogId}'
41297
41787
  }]
41298
41788
  };
41299
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
41789
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
41300
41790
  return /*#__PURE__*/jsx(Spreadsheet, {
41301
41791
  ref: ref,
41302
41792
  gridId: 'crud-grid_catalogoptions',
@@ -41322,6 +41812,7 @@ var TableOptions$1 = observer(function () {
41322
41812
  selectedItem = _useModule.selectedItem,
41323
41813
  selectedSerie = _useModule.selectedSerie;
41324
41814
  useTools({
41815
+ mainInformationWindowCodex: 'IDM_OPTIONS_TABLE_INFO',
41325
41816
  catalog: selectedCatalog,
41326
41817
  setSerie: setSelectedSerie,
41327
41818
  setArticle: setSelectedItem,
@@ -41332,7 +41823,11 @@ var TableOptions$1 = observer(function () {
41332
41823
  return /*#__PURE__*/jsxs(Fragment, {
41333
41824
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41334
41825
  title: /*#__PURE__*/jsxs("div", {
41335
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
41826
+ children: [/*#__PURE__*/jsxs(Space$1, {
41827
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsx(InformationButton, {
41828
+ codex: "IDM_OPTIONS_TABLE_INFO"
41829
+ })]
41830
+ }), /*#__PURE__*/jsxs(Space$1, {
41336
41831
  style: {
41337
41832
  "float": 'right'
41338
41833
  },
@@ -41550,6 +42045,7 @@ var TableFeatureClasses = observer(function () {
41550
42045
  selectedFeatureClass = _React$useState2[0],
41551
42046
  setSelectedFeatureClass = _React$useState2[1];
41552
42047
  useTools({
42048
+ mainInformationWindowCodex: 'IDM_FEATURE_CLASSES_TABLE_INFO',
41553
42049
  catalog: selectedCatalog,
41554
42050
  setSerie: setSelectedSerie,
41555
42051
  setArticle: setSelectedItem,
@@ -41654,7 +42150,11 @@ var TableFeatureClasses = observer(function () {
41654
42150
  return /*#__PURE__*/jsxs(Fragment, {
41655
42151
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41656
42152
  title: /*#__PURE__*/jsxs("div", {
41657
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(Space$1, {
42153
+ children: [/*#__PURE__*/jsxs(Space$1, {
42154
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(InformationButton, {
42155
+ codex: "IDM_FEATURE_CLASSES_TABLE_INFO"
42156
+ })]
42157
+ }), /*#__PURE__*/jsx(Space$1, {
41658
42158
  style: {
41659
42159
  "float": 'right'
41660
42160
  },
@@ -42370,6 +42870,7 @@ var TableDecisions = observer(function () {
42370
42870
  spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
42371
42871
  }, [selectedNodeId]);
42372
42872
  useTools({
42873
+ mainInformationWindowCodex: 'IDM_DECISIONS_TABLE_INFO',
42373
42874
  catalog: selectedCatalog,
42374
42875
  setSerie: setSelectedSerie,
42375
42876
  setArticle: setSelectedItem,
@@ -42532,198 +43033,198 @@ var TableDecisions = observer(function () {
42532
43033
  editable: false,
42533
43034
  cellDataType: 'objectId'
42534
43035
  }, {
42535
- field: 'organizationId',
42536
- editable: false,
42537
- hide: true,
42538
- lockVisible: true,
42539
- suppressColumnsToolPanel: true,
42540
- defaultValue: '${organizationId}'
42541
- }, {
42542
- field: 'catalogId',
42543
- editable: false,
42544
- hide: true,
42545
- lockVisible: true,
42546
- suppressColumnsToolPanel: true,
42547
- defaultValue: '${catalogId}'
42548
- }]
42549
- };
42550
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
42551
- return /*#__PURE__*/jsxs(Fragment, {
42552
- children: [/*#__PURE__*/jsx(Descriptions$1, {
42553
- title: /*#__PURE__*/jsxs("div", {
42554
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(Space$1, {
42555
- style: {
42556
- "float": 'right'
42557
- },
42558
- children: /*#__PURE__*/jsx(CatalogSelector$1, {
42559
- modules: ['decisions']
42560
- })
42561
- })]
42562
- })
42563
- }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
42564
- gridId: 'crud-grid_decisions',
42565
- ref: spreadsheetRef,
42566
- applicationData: applicationData,
42567
- hooks: hooks,
42568
- configuration: configuration
42569
- })]
42570
- });
42571
- });
42572
-
42573
- var TableDetailInfos = observer(function () {
42574
- var _useTranslation = useTranslation(),
42575
- t = _useTranslation.t,
42576
- i18n = _useTranslation.i18n;
42577
- var _useModule = useModule(['detailinfos']),
42578
- selectedCatalog = _useModule.selectedCatalog,
42579
- catalogId = _useModule.catalogId,
42580
- organizationId = _useModule.organizationId,
42581
- apiConfig = _useModule.apiConfig,
42582
- setSelectedSerie = _useModule.setSelectedSerie,
42583
- setSelectedItem = _useModule.setSelectedItem,
42584
- selectedItem = _useModule.selectedItem,
42585
- selectedSerie = _useModule.selectedSerie;
42586
- var _React$useState = React.useState(),
42587
- _React$useState2 = _slicedToArray(_React$useState, 2),
42588
- selectedMedia = _React$useState2[0],
42589
- setSelectedMedia = _React$useState2[1];
42590
- useTools({
42591
- catalog: selectedCatalog,
42592
- setSerie: setSelectedSerie,
42593
- setArticle: setSelectedItem,
42594
- item: selectedItem,
42595
- serie: selectedSerie,
42596
- conditionalTools: [{
42597
- id: 'mediaDetail',
42598
- name: t('backoffice.menu.items.label.MediaDetailCard'),
42599
- elementComponent: MediaDetailCard,
42600
- startWidth: 900,
42601
- elementProps: {
42602
- mediaItemId: selectedMedia
42603
- },
42604
- where: 'right',
42605
- condition: function condition() {
42606
- return selectedMedia !== undefined;
42607
- }
42608
- }]
42609
- });
42610
- var hooks = useMemo(function () {
42611
- return {
42612
- onCellSelectionChanged: function onCellSelectionChanged(event) {
42613
- if (event.selection.length == 1) {
42614
- setSelectedMedia(event.selection[0].node.data.mediaItemId);
42615
- } else {
42616
- setSelectedMedia(undefined);
42617
- }
42618
- }
42619
- };
42620
- }, []);
42621
- var applicationData = useMemo(function () {
42622
- return {
42623
- catalogId: catalogId,
42624
- organizationId: organizationId
42625
- };
42626
- }, [catalogId, organizationId]);
42627
- var configuration = useMemo(function () {
42628
- return {
42629
- type: 'dotnetSSM',
42630
- apiInterface: {
42631
- read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
42632
- update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
42633
- bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/bulk'
42634
- },
42635
- dateFormat: 'DD.MM.YYYY, HH:mm:ss',
42636
- colDef: [{
42637
- field: 'detailInfoNo',
42638
- headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
42639
- required: true,
42640
- cellDataType: 'number'
42641
- }, createTranslatedColumnConfig('externalName', 'backoffice.idmCatalog.detailinfos.label.externalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('internalName', 'backoffice.idmCatalog.detailinfos.label.internalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('toolTip', 'backoffice.idmCatalog.detailinfos.label.toolTip', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), {
43036
+ field: 'organizationId',
43037
+ editable: false,
43038
+ hide: true,
43039
+ lockVisible: true,
43040
+ suppressColumnsToolPanel: true,
43041
+ defaultValue: '${organizationId}'
43042
+ }, {
43043
+ field: 'catalogId',
43044
+ editable: false,
43045
+ hide: true,
43046
+ lockVisible: true,
43047
+ suppressColumnsToolPanel: true,
43048
+ defaultValue: '${catalogId}'
43049
+ }]
43050
+ };
43051
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
43052
+ return /*#__PURE__*/jsxs(Fragment, {
43053
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
43054
+ title: /*#__PURE__*/jsxs("div", {
43055
+ children: [/*#__PURE__*/jsxs(Space$1, {
43056
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(InformationButton, {
43057
+ codex: "IDM_DECISIONS_TABLE_INFO"
43058
+ })]
43059
+ }), /*#__PURE__*/jsx(Space$1, {
43060
+ style: {
43061
+ "float": 'right'
43062
+ },
43063
+ children: /*#__PURE__*/jsx(CatalogSelector$1, {
43064
+ modules: ['decisions']
43065
+ })
43066
+ })]
43067
+ })
43068
+ }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
43069
+ gridId: 'crud-grid_decisions',
43070
+ ref: spreadsheetRef,
43071
+ applicationData: applicationData,
43072
+ hooks: hooks,
43073
+ configuration: configuration
43074
+ })]
43075
+ });
43076
+ });
43077
+
43078
+ var TableDetailInfos = observer(function () {
43079
+ var _useTranslation = useTranslation(),
43080
+ t = _useTranslation.t,
43081
+ i18n = _useTranslation.i18n;
43082
+ var _useModule = useModule(['detailinfos']),
43083
+ selectedCatalog = _useModule.selectedCatalog,
43084
+ catalogId = _useModule.catalogId,
43085
+ organizationId = _useModule.organizationId,
43086
+ apiConfig = _useModule.apiConfig,
43087
+ setSelectedSerie = _useModule.setSelectedSerie,
43088
+ setSelectedItem = _useModule.setSelectedItem,
43089
+ selectedItem = _useModule.selectedItem,
43090
+ selectedSerie = _useModule.selectedSerie;
43091
+ var _React$useState = React.useState(),
43092
+ _React$useState2 = _slicedToArray(_React$useState, 2),
43093
+ selectedMedia = _React$useState2[0],
43094
+ setSelectedMedia = _React$useState2[1];
43095
+ useTools({
43096
+ mainInformationWindowCodex: 'IDM_DETAIL_INFOS_TABLE_INFO',
43097
+ catalog: selectedCatalog,
43098
+ setSerie: setSelectedSerie,
43099
+ setArticle: setSelectedItem,
43100
+ item: selectedItem,
43101
+ serie: selectedSerie,
43102
+ conditionalTools: [{
43103
+ id: 'mediaDetail',
43104
+ name: t('backoffice.menu.items.label.MediaDetailCard'),
43105
+ elementComponent: MediaDetailCard,
43106
+ startWidth: 900,
43107
+ elementProps: {
43108
+ mediaItemId: selectedMedia
43109
+ },
43110
+ where: 'right',
43111
+ condition: function condition() {
43112
+ return selectedMedia !== undefined;
43113
+ }
43114
+ }]
43115
+ });
43116
+ var hooks = useMemo(function () {
43117
+ return {
43118
+ onCellSelectionChanged: function onCellSelectionChanged(event) {
43119
+ if (event.selection.length == 1) {
43120
+ setSelectedMedia(event.selection[0].node.data.mediaItemId);
43121
+ } else {
43122
+ setSelectedMedia(undefined);
43123
+ }
43124
+ }
43125
+ };
43126
+ }, []);
43127
+ var applicationData = useMemo(function () {
43128
+ return {
43129
+ catalogId: catalogId,
43130
+ organizationId: organizationId
43131
+ };
43132
+ }, [catalogId, organizationId]);
43133
+ var configuration = useMemo(function () {
43134
+ return {
43135
+ type: 'dotnetSSM',
43136
+ apiInterface: {
43137
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
43138
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
43139
+ bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/bulk'
43140
+ },
43141
+ dateFormat: 'DD.MM.YYYY, HH:mm:ss',
43142
+ colDef: [{
43143
+ field: 'detailInfoNo',
43144
+ headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
43145
+ required: true,
43146
+ cellDataType: 'number',
43147
+ editable: false
43148
+ }, createTranslatedColumnConfig('externalName', 'backoffice.idmCatalog.detailinfos.label.externalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('internalName', 'backoffice.idmCatalog.detailinfos.label.internalName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), createTranslatedColumnConfig('toolTip', 'backoffice.idmCatalog.detailinfos.label.toolTip', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, false), {
43149
+ field: 'url',
43150
+ headerName: 'backoffice.idmCatalog.detailinfos.label.asset',
43151
+ required: true,
43152
+ cellDataType: 'mediaUrl',
43153
+ editable: false
43154
+ }, {
43155
+ field: 'classification',
43156
+ headerName: 'backoffice.idmCatalog.detailinfos.label.classification',
43157
+ required: true,
43158
+ editable: false
43159
+ }, {
43160
+ field: 'mediaType',
43161
+ headerName: 'backoffice.idmCatalog.detailinfos.label.mediaType',
43162
+ editable: false
43163
+ }, {
43164
+ field: 'infoType',
43165
+ headerName: 'backoffice.idmCatalog.detailinfos.label.infoType',
43166
+ required: true,
43167
+ cellDataType: 'enum',
43168
+ customParams: {
43169
+ enumData: getInfoTypeKey(t),
43170
+ displayLabelTemplate: '${name} (${value})'
43171
+ },
43172
+ editable: false
43173
+ }, {
43174
+ field: 'layer',
43175
+ headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
43176
+ cellDataType: 'enum',
43177
+ customParams: {
43178
+ enumData: getLayerIdKey(t),
43179
+ displayLabelTemplate: '${name} (${value})'
43180
+ }
43181
+ }, {
43182
+ field: 'isoLanguageId',
43183
+ headerName: 'backoffice.idmCatalog.detailinfos.label.isoLanguageId',
43184
+ cellDataType: 'enum',
43185
+ editable: true,
43186
+ required: true,
43187
+ customParams: {
43188
+ enumData: getLanguageKey(t),
43189
+ multiple: false
43190
+ },
43191
+ defaultValue: 'DE'
43192
+ }, {
43193
+ field: 'hashValue',
43194
+ headerName: 'backoffice.idmCatalog.detailinfos.label.hashValue',
43195
+ required: true,
43196
+ editable: false
43197
+ }, {
43198
+ field: 'error',
43199
+ headerName: 'backoffice.idmCatalog.detailinfos.label.error',
43200
+ editable: false
43201
+ }, {
43202
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
43203
+ field: 'lastUpdatedDate',
43204
+ cellDataType: 'dateString',
43205
+ editable: false
43206
+ }, {
43207
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
43208
+ field: 'createdDate',
43209
+ cellDataType: 'dateString',
43210
+ editable: false
43211
+ }, {
43212
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
43213
+ field: 'createdByDisplayText',
43214
+ editable: false
43215
+ }, {
43216
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
43217
+ field: 'lastUpdatedByDisplayText',
43218
+ editable: false
43219
+ }, {
43220
+ headerName: 'backoffice.idmCatalog.general.label._id',
43221
+ field: '_id',
43222
+ editable: false,
43223
+ cellDataType: 'objectId'
43224
+ }, {
43225
+ headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemId',
42642
43226
  field: 'mediaItemId',
42643
- colId: 'url-asset',
42644
- headerName: 'backoffice.idmCatalog.detailinfos.label.asset',
42645
- required: true,
42646
- cellDataType: 'asset',
42647
- customParams: {
42648
- urlField: 'url',
42649
- apiInterface: {
42650
- create: {
42651
- upload: apiConfig.mediaService + '/v1/assets/uploads',
42652
- externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
42653
- completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
42654
- }
42655
- },
42656
- allowedTypes: ['image/png', 'image/jpeg', 'image/gif', 'image/bmp', 'image/webp', 'image/svg+xml', 'application/pdf']
42657
- },
42658
- additionalFields: ['url']
42659
- }, {
42660
- field: 'classification',
42661
- headerName: 'backoffice.idmCatalog.detailinfos.label.classification',
42662
- required: true
42663
- }, {
42664
- field: 'mediaType',
42665
- headerName: 'backoffice.idmCatalog.detailinfos.label.mediaType'
42666
- }, {
42667
- field: 'infoType',
42668
- headerName: 'backoffice.idmCatalog.detailinfos.label.infoType',
42669
- required: true,
42670
- cellDataType: 'enum',
42671
- customParams: {
42672
- enumData: getInfoTypeKey(t),
42673
- displayLabelTemplate: '${name} (${value})'
42674
- }
42675
- }, {
42676
- field: 'layer',
42677
- headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
42678
- cellDataType: 'enum',
42679
- customParams: {
42680
- enumData: getLayerIdKey(t),
42681
- displayLabelTemplate: '${name} (${value})'
42682
- }
42683
- }, {
42684
- field: 'isoLanguageId',
42685
- headerName: 'backoffice.idmCatalog.detailinfos.label.isoLanguageId',
42686
- cellDataType: 'enum',
42687
- editable: true,
42688
- required: true,
42689
- customParams: {
42690
- enumData: getLanguageKey(t),
42691
- multiple: false
42692
- },
42693
- defaultValue: 'DE'
42694
- }, {
42695
- field: 'hashValue',
42696
- headerName: 'backoffice.idmCatalog.detailinfos.label.hashValue',
42697
- required: true
42698
- }, {
42699
- field: 'error',
42700
- headerName: 'backoffice.idmCatalog.detailinfos.label.error'
42701
- }, {
42702
- headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
42703
- field: 'lastUpdatedDate',
42704
- cellDataType: 'dateString',
42705
43227
  editable: false
42706
- }, {
42707
- headerName: 'backoffice.idmCatalog.general.label.createdDate',
42708
- field: 'createdDate',
42709
- cellDataType: 'dateString',
42710
- editable: false
42711
- }, {
42712
- headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
42713
- field: 'createdByDisplayText',
42714
- editable: false
42715
- }, {
42716
- headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
42717
- field: 'lastUpdatedByDisplayText',
42718
- editable: false
42719
- }, {
42720
- headerName: 'backoffice.idmCatalog.general.label._id',
42721
- field: '_id',
42722
- editable: false,
42723
- cellDataType: 'objectId'
42724
- }, {
42725
- headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemId',
42726
- field: 'mediaItemId'
42727
43228
  }, {
42728
43229
  field: 'organizationId',
42729
43230
  editable: false,
@@ -42744,7 +43245,11 @@ var TableDetailInfos = observer(function () {
42744
43245
  return /*#__PURE__*/jsxs(Fragment, {
42745
43246
  children: [/*#__PURE__*/jsx(Descriptions$1, {
42746
43247
  title: /*#__PURE__*/jsxs("div", {
42747
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos'), /*#__PURE__*/jsx(Space$1, {
43248
+ children: [/*#__PURE__*/jsxs(Space$1, {
43249
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos'), /*#__PURE__*/jsx(InformationButton, {
43250
+ codex: "IDM_DETAIL_INFOS_TABLE_INFO"
43251
+ })]
43252
+ }), /*#__PURE__*/jsx(Space$1, {
42748
43253
  style: {
42749
43254
  "float": 'right'
42750
43255
  },
@@ -43028,6 +43533,7 @@ var TablePartlists = observer(function () {
43028
43533
  selectedPartlist = _React$useState2[0],
43029
43534
  setSelectedPartlist = _React$useState2[1];
43030
43535
  useTools({
43536
+ mainInformationWindowCodex: 'IDM_PARTLISTS_TABLE_INFO',
43031
43537
  catalog: selectedCatalog,
43032
43538
  setSerie: setSelectedSerie,
43033
43539
  setArticle: setSelectedItem,
@@ -43130,7 +43636,11 @@ var TablePartlists = observer(function () {
43130
43636
  return /*#__PURE__*/jsxs(Fragment, {
43131
43637
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43132
43638
  title: /*#__PURE__*/jsxs("div", {
43133
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists'), /*#__PURE__*/jsx(Space$1, {
43639
+ children: [/*#__PURE__*/jsxs(Space$1, {
43640
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists'), /*#__PURE__*/jsx(InformationButton, {
43641
+ codex: "IDM_PARTLISTS_TABLE_INFO"
43642
+ })]
43643
+ }), /*#__PURE__*/jsx(Space$1, {
43134
43644
  style: {
43135
43645
  "float": 'right'
43136
43646
  },
@@ -43575,6 +44085,7 @@ var TablePriceFeatureGroups = observer(function () {
43575
44085
  return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
43576
44086
  }, [selectedNodeId]);
43577
44087
  useTools({
44088
+ mainInformationWindowCodex: 'IDM_PRICE_FEATURE_GROUPS_TABLE_INFO',
43578
44089
  catalog: selectedCatalog,
43579
44090
  setSerie: setSelectedSerie,
43580
44091
  setArticle: setSelectedItem,
@@ -43738,7 +44249,11 @@ var TablePriceFeatureGroups = observer(function () {
43738
44249
  return /*#__PURE__*/jsxs(Fragment, {
43739
44250
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43740
44251
  title: /*#__PURE__*/jsxs("div", {
43741
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups'), /*#__PURE__*/jsx(Space$1, {
44252
+ children: [/*#__PURE__*/jsxs(Space$1, {
44253
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups'), /*#__PURE__*/jsx(InformationButton, {
44254
+ codex: "IDM_PRICE_FEATURE_GROUPS_TABLE_INFO"
44255
+ })]
44256
+ }), /*#__PURE__*/jsx(Space$1, {
43742
44257
  style: {
43743
44258
  "float": 'right'
43744
44259
  },
@@ -43825,7 +44340,8 @@ var TablePrices = observer(function () {
43825
44340
  field: 'partListExclusive',
43826
44341
  headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
43827
44342
  editable: false,
43828
- cellDataType: 'boolean'
44343
+ cellDataType: 'boolean',
44344
+ defaultValue: false
43829
44345
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
43830
44346
  var _priceFeatureGroup$ke;
43831
44347
  return {
@@ -43873,7 +44389,11 @@ var TablePrices = observer(function () {
43873
44389
  return /*#__PURE__*/jsxs(Fragment, {
43874
44390
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43875
44391
  title: /*#__PURE__*/jsxs("div", {
43876
- children: [t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices'), /*#__PURE__*/jsxs(Space$1, {
44392
+ children: [/*#__PURE__*/jsxs(Space$1, {
44393
+ children: [t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices'), /*#__PURE__*/jsx(InformationButton, {
44394
+ codex: "IDM_PRICES_TABLE_INFO"
44395
+ })]
44396
+ }), /*#__PURE__*/jsxs(Space$1, {
43877
44397
  style: {
43878
44398
  "float": 'right'
43879
44399
  },
@@ -43998,6 +44518,7 @@ var TableOptionGroups = observer(function () {
43998
44518
  selectedOptionGroup = _React$useState2[0],
43999
44519
  setSelectedOptionGroup = _React$useState2[1];
44000
44520
  useTools({
44521
+ mainInformationWindowCodex: 'IDM_OPTION_GROUPS_TABLE_INFO',
44001
44522
  catalog: selectedCatalog,
44002
44523
  setSerie: setSelectedSerie,
44003
44524
  setArticle: setSelectedItem,
@@ -44077,7 +44598,11 @@ var TableOptionGroups = observer(function () {
44077
44598
  return /*#__PURE__*/jsxs(Fragment, {
44078
44599
  children: [/*#__PURE__*/jsx(Descriptions$1, {
44079
44600
  title: /*#__PURE__*/jsxs("div", {
44080
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups'), /*#__PURE__*/jsx(Space$1, {
44601
+ children: [/*#__PURE__*/jsxs(Space$1, {
44602
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups'), /*#__PURE__*/jsx(InformationButton, {
44603
+ codex: "IDM_OPTION_GROUPS_TABLE_INFO"
44604
+ })]
44605
+ }), /*#__PURE__*/jsx(Space$1, {
44081
44606
  style: {
44082
44607
  "float": 'right'
44083
44608
  },
@@ -44195,15 +44720,13 @@ function CollectionMembers(_ref) {
44195
44720
  lookupKey: '_id',
44196
44721
  multiple: false,
44197
44722
  translated: false,
44198
- //add it to the row context, so it can be used for filtering but will not be saved to the server
44199
- additionalMappings: [{
44200
- lookupField: 'published',
44201
- targetField: '__diva_context.additionalData.published'
44202
- }],
44203
44723
  filter: function filter(_, lookupData) {
44204
44724
  var _lookupData$published;
44205
44725
  return (_lookupData$published = lookupData.published) === null || _lookupData$published === void 0 ? void 0 : _lookupData$published[organizationId];
44206
- }
44726
+ },
44727
+ additionalMappings: [{
44728
+ lookupField: 'published'
44729
+ }]
44207
44730
  },
44208
44731
  additionalFields: ['enricherPackageName'],
44209
44732
  isDictionary: false
@@ -44221,7 +44744,7 @@ function CollectionMembers(_ref) {
44221
44744
  filterCellType: 'number',
44222
44745
  displayLabelTemplate: '${name} (${value})',
44223
44746
  apiInterface: {
44224
- read: apiConfig.enricherService + '/live/v3.0/catalogs/${__diva_context.additionalData.published.' + organizationId + '.liveCatalogId}/series'
44747
+ read: apiConfig.enricherService + '/packages/${enricherPackageId}/lookup/series'
44225
44748
  },
44226
44749
  lookupValue: 'seriesName',
44227
44750
  lookupKey: 'serieNo',
@@ -44658,8 +45181,8 @@ function Options(_ref) {
44658
45181
  organizationId: organizationId
44659
45182
  };
44660
45183
  }, [organizationId]);
44661
- var _useTranslation = useTranslation();
44662
- _useTranslation.t;
45184
+ var _useTranslation = useTranslation(),
45185
+ t = _useTranslation.t;
44663
45186
  var configuration = useMemo(function () {
44664
45187
  return {
44665
45188
  type: 'dotnetSSM',
@@ -44682,7 +45205,8 @@ function Options(_ref) {
44682
45205
  }, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', languages, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', languages), {
44683
45206
  headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
44684
45207
  field: 'optionFreeText',
44685
- cellDataType: 'boolean'
45208
+ cellDataType: 'boolean',
45209
+ defaultValue: false
44686
45210
  }, {
44687
45211
  field: 'featureNos',
44688
45212
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
@@ -44711,6 +45235,81 @@ function Options(_ref) {
44711
45235
  },
44712
45236
  additionalFields: ['featureIdsDisplayTexts', 'featureIds'],
44713
45237
  isDictionary: true
45238
+ }, {
45239
+ headerName: 'backoffice.idmCatalog.items.label.optionImages',
45240
+ field: 'optionImages',
45241
+ cellDataType: 'asset',
45242
+ customParams: {
45243
+ multiple: true,
45244
+ isObject: true,
45245
+ urlField: 'url',
45246
+ fileNameField: 'name',
45247
+ mediaItemIdField: 'mediaitemId',
45248
+ apiInterface: {
45249
+ create: {
45250
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
45251
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
45252
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
45253
+ }
45254
+ },
45255
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp']
45256
+ }
45257
+ }, {
45258
+ headerName: 'backoffice.idmCatalog.items.label.textures',
45259
+ field: 'textures',
45260
+ cellDataType: 'asset',
45261
+ customParams: {
45262
+ multiple: true,
45263
+ isObject: true,
45264
+ urlField: 'url',
45265
+ fileNameField: 'name',
45266
+ mediaItemIdField: 'mediaitemId',
45267
+ apiInterface: {
45268
+ create: {
45269
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
45270
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
45271
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
45272
+ }
45273
+ },
45274
+ allowedTypes: ['image/png', 'image/jpeg', 'image/webp']
45275
+ }
45276
+ }, {
45277
+ headerName: 'backoffice.idmCatalog.items.label.documents',
45278
+ field: 'documents',
45279
+ cellDataType: 'asset',
45280
+ customParams: {
45281
+ multiple: true,
45282
+ isObject: true,
45283
+ urlField: 'url',
45284
+ fileNameField: 'name',
45285
+ mediaItemIdField: 'mediaitemId',
45286
+ additionalFields: [{
45287
+ type: 'enum',
45288
+ field: 'infoType',
45289
+ label: 'backoffice.idmCatalog.detailinfos.label.infoType',
45290
+ enumData: [{
45291
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
45292
+ value: 8
45293
+ }, {
45294
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i15'),
45295
+ value: 15
45296
+ }, {
45297
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i16'),
45298
+ value: 16
45299
+ }, {
45300
+ name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
45301
+ value: 12
45302
+ }]
45303
+ }],
45304
+ apiInterface: {
45305
+ create: {
45306
+ upload: apiConfig.mediaService + '/v1/assets/uploads',
45307
+ externalUpload: apiConfig.mediaService + '/v1/assets/uploads/externals',
45308
+ completeUpload: apiConfig.mediaService + '/v1/assets/uploads/complete'
45309
+ }
45310
+ },
45311
+ allowedTypes: ['application/pdf']
45312
+ }
44714
45313
  }, {
44715
45314
  headerName: 'backoffice.idmCatalog.items.label.validation',
44716
45315
  children: [{
@@ -46649,7 +47248,8 @@ function useWysiwyg$1(_ref) {
46649
47248
  }, [(_tool$parameters18 = tool.parameters) === null || _tool$parameters18 === void 0 ? void 0 : _tool$parameters18.catalogId, (_tool$parameters19 = tool.parameters) === null || _tool$parameters19 === void 0 ? void 0 : _tool$parameters19.packageId]);
46650
47249
  var onEventCalled = /*#__PURE__*/function () {
46651
47250
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
46652
- var _tool$elementProps10, _articles$find, _tool$elementProps11, catalogData, articles, key, _mask$articles, _article$groupName, article, initialTypeNo, _tool$elementProps13;
47251
+ var _e$data;
47252
+ var _tool$elementProps10, _articles$find, _tool$elementProps11, catalogData, articles, key, _mask$articles, _article$groupName, article, initialTypeNo, _tool$elementProps13, _e$data2;
46653
47253
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
46654
47254
  while (1) switch (_context4.prev = _context4.next) {
46655
47255
  case 0:
@@ -46722,7 +47322,13 @@ function useWysiwyg$1(_ref) {
46722
47322
  });
46723
47323
  setCurrentNav(e.data.optionCodex);
46724
47324
  }
46725
- case 21:
47325
+ if (e.type === 'invalidateCache' && ((_e$data = e.data) === null || _e$data === void 0 ? void 0 : _e$data.type) === 'series') {
47326
+ LOG$2.debug('Invalidate cache', {
47327
+ type: (_e$data2 = e.data) === null || _e$data2 === void 0 ? void 0 : _e$data2.type
47328
+ });
47329
+ setDoReset(true);
47330
+ }
47331
+ case 22:
46726
47332
  case "end":
46727
47333
  return _context4.stop();
46728
47334
  }