@crystaldesign/diva-backoffice 26.1.0-beta.21 → 26.1.0-beta.22

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.
@@ -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';
@@ -4200,6 +4200,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
4200
4200
  pagination: {
4201
4201
  pageSize: 50
4202
4202
  },
4203
+ mainInformationWindowCodex: 'CONTENT_ITEMS_TABLE_INFO',
4203
4204
  filter: {
4204
4205
  toggle: {
4205
4206
  fields: ['onlyTemplates'],
@@ -27418,11 +27419,176 @@ var SMChart = function SMChart(props) {
27418
27419
  }) : /*#__PURE__*/jsx(Fragment, {});
27419
27420
  };
27420
27421
 
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
27422
  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
27423
  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
27424
  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; }
27425
+ 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; }
27426
+ 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; }
27427
+
27428
+ /**
27429
+ * Props for the useTools hook
27430
+ */
27431
+
27432
+ /**
27433
+ * Custom hook for managing tools and configurator functionality
27434
+ *
27435
+ * @param props - The hook props
27436
+ * @param props.catalog - Catalog object for configurator tools
27437
+ * @param props.enricherPackage - Enricher package object for configurator tools
27438
+ * @param props.isApi2 - Whether to use API2 mode
27439
+ * @param props.mainInformationWindowCodex - Main information window codex
27440
+ * @param props.serie - Serie object for configurator tools
27441
+ * @param props.item - Item object with type number
27442
+ * @param props.setSerie - Function to set serie
27443
+ * @param props.setArticle - Function to set article
27444
+ * @returns Object containing tool management functions
27445
+ * @returns {Function} updateConfigurator - Function to update configurator parameters
27446
+ * @returns {Function} openInformationWindow - Function to open information window
27447
+ * @returns {Function} addSecondaryTables - Function to add secondary tables
27448
+ * @returns {Function} removeSecondaryTables - Function to remove secondary tables
27449
+ */
27450
+ var useTools = function useTools(_ref) {
27451
+ var catalog = _ref.catalog,
27452
+ enricherPackage = _ref.enricherPackage,
27453
+ isApi2 = _ref.isApi2,
27454
+ onlyPlaceholder = _ref.onlyPlaceholder,
27455
+ mainInformationWindowCodex = _ref.mainInformationWindowCodex,
27456
+ serie = _ref.serie,
27457
+ item = _ref.item,
27458
+ setSerie = _ref.setSerie,
27459
+ setArticle = _ref.setArticle,
27460
+ conditionalTools = _ref.conditionalTools;
27461
+ var root = useStore();
27462
+ var catalogId = catalog === null || catalog === void 0 ? void 0 : catalog._id;
27463
+ var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
27464
+ var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
27465
+ var createTool = function createTool(tool) {
27466
+ return _objectSpread$F({
27467
+ startWidth: 600,
27468
+ defaultPinned: true,
27469
+ defaultOpen: false
27470
+ }, tool);
27471
+ };
27472
+ var createInformationWindow = function createInformationWindow(codex, open) {
27473
+ return createTool({
27474
+ id: 'info',
27475
+ name: 'Information',
27476
+ type: 'InformationWindow',
27477
+ where: 'right',
27478
+ parameters: {
27479
+ contentItemCodex: codex
27480
+ },
27481
+ defaultOpen: open
27482
+ });
27483
+ };
27484
+ var createConfigurator = function createConfigurator(parameters) {
27485
+ var elementProps = {
27486
+ isoLanguageIds: isoLanguageIds,
27487
+ item: item,
27488
+ serie: serie,
27489
+ onSerieChange: setSerie,
27490
+ onItemChange: setArticle
27491
+ };
27492
+ return createTool({
27493
+ id: 'WYSIWYG',
27494
+ name: 'Konfigurator',
27495
+ type: 'Configurator',
27496
+ where: 'right',
27497
+ parameters: _objectSpread$F({
27498
+ catalogId: catalogId,
27499
+ packageId: packageId,
27500
+ isIDMData: !isApi2 ? '1' : undefined
27501
+ }, parameters),
27502
+ elementProps: elementProps
27503
+ });
27504
+ };
27505
+ var updateInformationWindow = function updateInformationWindow(codex, open) {
27506
+ root.contentStore.rightToolBar.addTools(createInformationWindow(codex, open));
27507
+ if (open) {
27508
+ root.contentStore.rightToolBar.selectTool('info');
27509
+ root.contentStore.rightToolBar.hidden = false;
27510
+ }
27511
+ };
27512
+ var updateConfigurator = function updateConfigurator(parameters) {
27513
+ root.contentStore.rightToolBar.addTools(createConfigurator(parameters));
27514
+ };
27515
+
27516
+ /*
27517
+ * Elements need to be added/removed all at once
27518
+ * This makes sure the store remebers the last open tool and reopens it if it is used by the next component
27519
+ */
27520
+ useEffect(function () {
27521
+ var _root$contentStore$ri, _root$contentStore$bo;
27522
+ var tools = [];
27523
+ if ((catalogId || packageId) && !onlyPlaceholder) {
27524
+ tools.push(createConfigurator());
27525
+ }
27526
+ if (mainInformationWindowCodex) {
27527
+ tools.push(createInformationWindow(mainInformationWindowCodex, false));
27528
+ }
27529
+ var _iterator = _createForOfIteratorHelper$5(conditionalTools || []),
27530
+ _step;
27531
+ try {
27532
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
27533
+ var _tool$condition;
27534
+ var tool = _step.value;
27535
+ if ((_tool$condition = tool.condition) !== null && _tool$condition !== void 0 && _tool$condition.call(tool)) {
27536
+ tools.push(createTool(tool));
27537
+ }
27538
+ }
27539
+ } catch (err) {
27540
+ _iterator.e(err);
27541
+ } finally {
27542
+ _iterator.f();
27543
+ }
27544
+ (_root$contentStore$ri = root.contentStore.rightToolBar).addTools.apply(_root$contentStore$ri, _toConsumableArray(tools.filter(function (tool) {
27545
+ return tool.where === 'right';
27546
+ })));
27547
+ (_root$contentStore$bo = root.contentStore.bottomToolBar).addTools.apply(_root$contentStore$bo, _toConsumableArray(tools.filter(function (tool) {
27548
+ return !tool.where || tool.where === 'bottom';
27549
+ })));
27550
+ return function () {
27551
+ var _root$contentStore$ri2, _root$contentStore$bo2;
27552
+ var toRemove = [];
27553
+ if (mainInformationWindowCodex) {
27554
+ toRemove.push('info');
27555
+ }
27556
+ if ((catalogId || packageId) && !onlyPlaceholder) {
27557
+ toRemove.push('WYSIWYG');
27558
+ }
27559
+ (_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) {
27560
+ return tool.id;
27561
+ })) || [])));
27562
+ (_root$contentStore$bo2 = root.contentStore.bottomToolBar).removeTools.apply(_root$contentStore$bo2, _toConsumableArray((conditionalTools === null || conditionalTools === void 0 ? void 0 : conditionalTools.map(function (tool) {
27563
+ return tool.id;
27564
+ })) || []));
27565
+ };
27566
+ }, [mainInformationWindowCodex, catalogId, packageId, conditionalTools, onlyPlaceholder, item, serie]);
27567
+ return {
27568
+ updateConfigurator: updateConfigurator,
27569
+ updateInformationWindow: updateInformationWindow
27570
+ };
27571
+ };
27572
+
27573
+ function InformationButton(_ref) {
27574
+ var codex = _ref.codex;
27575
+ var _useTools = useTools({}),
27576
+ updateInformationWindow = _useTools.updateInformationWindow;
27577
+ return /*#__PURE__*/jsx(Button, {
27578
+ type: "text",
27579
+ icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
27580
+ onClick: function onClick(e) {
27581
+ e.stopPropagation();
27582
+ updateInformationWindow(codex, true);
27583
+ }
27584
+ });
27585
+ }
27586
+
27587
+ 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; }
27588
+ 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; }
27589
+ 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; } } }; }
27590
+ 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; } }
27591
+ 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
27592
  dayjs.extend(customParseFormat);
27427
27593
  dayjs.extend(advancedFormat);
27428
27594
  dayjs.extend(weekday);
@@ -27460,12 +27626,12 @@ var TableWrapper = function TableWrapper(_ref) {
27460
27626
  if (state.configuration.mergeFields && state.data) {
27461
27627
  for (var i = 0; i < data.length; i++) {
27462
27628
  var dt = flatten(data[i]);
27463
- var _iterator = _createForOfIteratorHelper$5(state.configuration.mergeFields),
27629
+ var _iterator = _createForOfIteratorHelper$4(state.configuration.mergeFields),
27464
27630
  _step;
27465
27631
  try {
27466
27632
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
27467
27633
  var merge = _step.value;
27468
- var _iterator2 = _createForOfIteratorHelper$5(merge.valueKeys),
27634
+ var _iterator2 = _createForOfIteratorHelper$4(merge.valueKeys),
27469
27635
  _step2;
27470
27636
  try {
27471
27637
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -27515,7 +27681,7 @@ var TableWrapper = function TableWrapper(_ref) {
27515
27681
  if (data && data.length > 0) {
27516
27682
  data = data.map(function (dt) {
27517
27683
  var _ref2, _dt$catalogItem;
27518
- return _objectSpread$F(_objectSpread$F({}, dt), {}, {
27684
+ return _objectSpread$E(_objectSpread$E({}, dt), {}, {
27519
27685
  catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
27520
27686
  });
27521
27687
  });
@@ -27542,7 +27708,11 @@ var TableWrapper = function TableWrapper(_ref) {
27542
27708
  children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
27543
27709
  children: /*#__PURE__*/jsx(Descriptions, {
27544
27710
  title: /*#__PURE__*/jsxs("div", {
27545
- children: [state.title, /*#__PURE__*/jsxs(Space, {
27711
+ children: [/*#__PURE__*/jsxs(Space, {
27712
+ children: [state.title, state.configuration.mainInformationWindowCodex && /*#__PURE__*/jsx(InformationButton, {
27713
+ codex: state.configuration.mainInformationWindowCodex
27714
+ })]
27715
+ }), /*#__PURE__*/jsxs(Space, {
27546
27716
  style: {
27547
27717
  "float": 'right'
27548
27718
  },
@@ -27628,7 +27798,7 @@ var TableWrapper = function TableWrapper(_ref) {
27628
27798
  // Convert to Dayjs
27629
27799
  (_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
27800
  ]
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), {}, {
27801
+ }), ((_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
27802
  style: {
27633
27803
  minWidth: '200px'
27634
27804
  },
@@ -27733,7 +27903,7 @@ var TableWrapper = function TableWrapper(_ref) {
27733
27903
  },
27734
27904
  dataSource: data,
27735
27905
  loading: state.loading,
27736
- pagination: _objectSpread$F(_objectSpread$F({}, state.pagination), {}, {
27906
+ pagination: _objectSpread$E(_objectSpread$E({}, state.pagination), {}, {
27737
27907
  showTotal: function showTotal(total, range) {
27738
27908
  return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
27739
27909
  },
@@ -27830,7 +28000,7 @@ function CopyButton(_ref4) {
27830
28000
  case 0:
27831
28001
  copyAction = state.configuration.copyAction;
27832
28002
  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);
28003
+ _iterator3 = _createForOfIteratorHelper$4(state.selected);
27834
28004
  try {
27835
28005
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
27836
28006
  selectedRow = _step3.value;
@@ -27958,7 +28128,7 @@ function BulkAction(_ref7) {
27958
28128
  var allowed = useMemo(function () {
27959
28129
  // if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
27960
28130
  if (!action.rule) return true;
27961
- var _iterator4 = _createForOfIteratorHelper$5(action.rule),
28131
+ var _iterator4 = _createForOfIteratorHelper$4(action.rule),
27962
28132
  _step4;
27963
28133
  try {
27964
28134
  var _loop = function _loop() {
@@ -28053,7 +28223,7 @@ function BulkAction(_ref7) {
28053
28223
  }
28054
28224
  _context4.t0 = data;
28055
28225
  _context4.next = 11;
28056
- return apiInterface.update(_objectSpread$F(_objectSpread$F({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
28226
+ return apiInterface.update(_objectSpread$E(_objectSpread$E({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
28057
28227
  case 11:
28058
28228
  _context4.t1 = _context4.sent;
28059
28229
  _context4.t0.push.call(_context4.t0, _context4.t1);
@@ -28166,8 +28336,8 @@ function SelectionText(_ref9) {
28166
28336
  });
28167
28337
  }
28168
28338
 
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; }
28339
+ 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; }
28340
+ 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
28341
  function getColumnFilterProps (_ref) {
28172
28342
  var filter = _ref.filter,
28173
28343
  title = _ref.title;
@@ -28530,7 +28700,7 @@ var selectProps = function selectProps(title, filter) {
28530
28700
  });
28531
28701
  },
28532
28702
  options: filter.map(function (f) {
28533
- return _objectSpread$E(_objectSpread$E({}, f), {}, {
28703
+ return _objectSpread$D(_objectSpread$D({}, f), {}, {
28534
28704
  label: t(f.label)
28535
28705
  });
28536
28706
  })
@@ -28579,7 +28749,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
28579
28749
  setDisplaySelectedvalues = _useState4[1];
28580
28750
  var options = [];
28581
28751
  options = filter.map(function (f) {
28582
- return _objectSpread$E(_objectSpread$E({}, f), {}, {
28752
+ return _objectSpread$D(_objectSpread$D({}, f), {}, {
28583
28753
  label: t(f.label)
28584
28754
  });
28585
28755
  });
@@ -28653,8 +28823,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
28653
28823
  };
28654
28824
  };
28655
28825
 
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; }
28826
+ 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; }
28827
+ 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
28828
  function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
28659
28829
  var columns = configuration.columns.filter(function (c) {
28660
28830
  if (typeof c.hidden == 'boolean' && c.hidden) {
@@ -28707,7 +28877,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
28707
28877
  }
28708
28878
  function mapColumn(column, onUpdate) {
28709
28879
  var _column$field, _column$children;
28710
- return _objectSpread$D(_objectSpread$D(_objectSpread$D({}, column), {}, {
28880
+ return _objectSpread$C(_objectSpread$C(_objectSpread$C({}, column), {}, {
28711
28881
  hidden: false,
28712
28882
  width: column.width || 100,
28713
28883
  dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
@@ -28757,8 +28927,8 @@ function updateData (_ref) {
28757
28927
  };
28758
28928
  }
28759
28929
 
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; }
28930
+ 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; }
28931
+ 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
28932
  function applyFilterAndSortation (_ref) {
28763
28933
  var data = _ref.data,
28764
28934
  filters = _ref.filters,
@@ -28773,7 +28943,7 @@ function applyFilterAndSortation (_ref) {
28773
28943
  processedData = sort(sorter || [], processedData);
28774
28944
  return {
28775
28945
  data: processedData,
28776
- pagination: _objectSpread$C(_objectSpread$C({}, pagination), {}, {
28946
+ pagination: _objectSpread$B(_objectSpread$B({}, pagination), {}, {
28777
28947
  total: processedData.length
28778
28948
  })
28779
28949
  };
@@ -28858,8 +29028,8 @@ function filter(f, data) {
28858
29028
  }
28859
29029
 
28860
29030
  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; }
29031
+ 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; }
29032
+ 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
29033
  function useTableData$1 (_ref) {
28864
29034
  var _configuration$apiInt;
28865
29035
  var id = _ref.id;
@@ -28914,7 +29084,7 @@ function useTableData$1 (_ref) {
28914
29084
  var _configuration$create;
28915
29085
  if (!dataRow) return;
28916
29086
  var id = v4();
28917
- var processedDataRow = unflatten(_objectSpread$B({
29087
+ var processedDataRow = unflatten(_objectSpread$A({
28918
29088
  _id: id,
28919
29089
  ID: id
28920
29090
  }, dataRow));
@@ -28926,11 +29096,11 @@ function useTableData$1 (_ref) {
28926
29096
  newData = _updateData.data;
28927
29097
  _updateData.prevDataRow;
28928
29098
  _updateData.index;
28929
- var newState = _objectSpread$B(_objectSpread$B({}, state), {}, {
29099
+ var newState = _objectSpread$A(_objectSpread$A({}, state), {}, {
28930
29100
  data: newData
28931
29101
  });
28932
29102
  if (!filterServerSide) {
28933
- var res = applyFilterAndSortation(_objectSpread$B(_objectSpread$B({}, filterData), {}, {
29103
+ var res = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, filterData), {}, {
28934
29104
  data: newData
28935
29105
  }));
28936
29106
  newState.data = res.data;
@@ -28942,33 +29112,33 @@ function useTableData$1 (_ref) {
28942
29112
  var formData = new FormData();
28943
29113
  processedDataRow._id;
28944
29114
  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), {}, {
29115
+ apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28946
29116
  filterContex: filterContex,
28947
29117
  value: JSON.stringify([value])
28948
29118
  }), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
28949
29119
  if (d && d.Result && d.Result == 'Success') return;
28950
- setState(_objectSpread$B({}, oldState));
29120
+ setState(_objectSpread$A({}, oldState));
28951
29121
  });
28952
29122
  }, [state, catalogItem, filterData]);
28953
29123
  useEffect(function () {
28954
29124
  if (!catalogItem) return;
28955
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29125
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
28956
29126
  loading: true,
28957
- mappingData: _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29127
+ mappingData: _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28958
29128
  filterContex: filterContex
28959
29129
  })
28960
29130
  }));
28961
29131
  if (!filterServerSide) {
28962
- apiHandler.readList(configuration.mapping, _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29132
+ apiHandler.readList(configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
28963
29133
  filterContex: filterContex
28964
29134
  }), undefined, catalogItem.sessionGuid).then(function (data) {
28965
29135
  var newData = data.data.map(function (d) {
28966
- return _objectSpread$B(_objectSpread$B({}, d), {}, {
29136
+ return _objectSpread$A(_objectSpread$A({}, d), {}, {
28967
29137
  _id: d._id || d.ID || nanoid()
28968
29138
  });
28969
29139
  });
28970
29140
  onChange({
28971
- pagination: _objectSpread$B({}, state.pagination),
29141
+ pagination: _objectSpread$A({}, state.pagination),
28972
29142
  filters: {},
28973
29143
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
28974
29144
  return c.defaultSortOrder;
@@ -28984,7 +29154,7 @@ function useTableData$1 (_ref) {
28984
29154
  });
28985
29155
  } else {
28986
29156
  onChange({
28987
- pagination: _objectSpread$B({}, state.pagination),
29157
+ pagination: _objectSpread$A({}, state.pagination),
28988
29158
  filters: {},
28989
29159
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
28990
29160
  return c.defaultSortOrder;
@@ -29000,17 +29170,17 @@ function useTableData$1 (_ref) {
29000
29170
  }
29001
29171
  }, [filterContex, catalogItem]);
29002
29172
  var onChange = function onChange(p, dataParam) {
29003
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29173
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29004
29174
  loading: true
29005
29175
  }));
29006
29176
  if (!filterServerSide) {
29007
29177
  var unfilteredData = dataParam ? dataParam : state.unfilteredData;
29008
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$B(_objectSpread$B({}, p), {}, {
29178
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, p), {}, {
29009
29179
  data: unfilteredData
29010
29180
  })),
29011
29181
  data = _applyFilterAndSortat.data,
29012
29182
  pagination = _applyFilterAndSortat.pagination;
29013
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29183
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29014
29184
  data: data,
29015
29185
  pagination: pagination,
29016
29186
  loading: false,
@@ -29021,20 +29191,20 @@ function useTableData$1 (_ref) {
29021
29191
  sorter: p.sorter
29022
29192
  });
29023
29193
  } else {
29024
- apiHandler.readList(configuration.mapping, _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29194
+ apiHandler.readList(configuration.mapping, _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
29025
29195
  filterContex: filterContex
29026
29196
  }), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
29027
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29197
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29028
29198
  data: data.data.map(function (dt) {
29029
- return _objectSpread$B(_objectSpread$B({}, dt), {}, {
29199
+ return _objectSpread$A(_objectSpread$A({}, dt), {}, {
29030
29200
  _id: dt._id || dt.ID || nanoid()
29031
29201
  });
29032
29202
  }),
29033
- pagination: _objectSpread$B(_objectSpread$B({}, p.pagination), {}, {
29203
+ pagination: _objectSpread$A(_objectSpread$A({}, p.pagination), {}, {
29034
29204
  total: data.total
29035
29205
  }),
29036
29206
  loading: false,
29037
- mappingData: _objectSpread$B(_objectSpread$B({}, catalogItem), {}, {
29207
+ mappingData: _objectSpread$A(_objectSpread$A({}, catalogItem), {}, {
29038
29208
  filterContex: filterContex
29039
29209
  })
29040
29210
  }));
@@ -29055,7 +29225,7 @@ function useTableData$1 (_ref) {
29055
29225
  filters['_id'] = [id, 'eq', false];
29056
29226
  _context.next = 4;
29057
29227
  return apiHandler.readList(configuration.mapping, {
29058
- pagination: _objectSpread$B({}, state.pagination),
29228
+ pagination: _objectSpread$A({}, state.pagination),
29059
29229
  columns: configuration.columns,
29060
29230
  filters: filters,
29061
29231
  sorter: filterData.sorter
@@ -29074,7 +29244,7 @@ function useTableData$1 (_ref) {
29074
29244
  };
29075
29245
  }();
29076
29246
  var onSelect = function onSelect(keys) {
29077
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29247
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29078
29248
  selected: keys
29079
29249
  }));
29080
29250
  };
@@ -29084,7 +29254,7 @@ function useTableData$1 (_ref) {
29084
29254
  return _regeneratorRuntime.wrap(function _callee2$(_context3) {
29085
29255
  while (1) switch (_context3.prev = _context3.next) {
29086
29256
  case 0:
29087
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29257
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29088
29258
  deleting: true
29089
29259
  }));
29090
29260
  newData = _toConsumableArray(state.data);
@@ -29099,7 +29269,7 @@ function useTableData$1 (_ref) {
29099
29269
  mappingData = (_newData$filter = newData.filter(function (nd) {
29100
29270
  return nd._id === state.selected[index];
29101
29271
  })) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
29102
- mappingData = _objectSpread$B(_objectSpread$B({}, mappingData), state.mappingData);
29272
+ mappingData = _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData);
29103
29273
  _context2.next = 5;
29104
29274
  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
29275
  case 5:
@@ -29149,7 +29319,7 @@ function useTableData$1 (_ref) {
29149
29319
  }
29150
29320
  _context3.next = 18;
29151
29321
  return apiHandler.readList(configuration.mapping, {
29152
- pagination: _objectSpread$B(_objectSpread$B({}, state.pagination), {}, {
29322
+ pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
29153
29323
  current: current
29154
29324
  }),
29155
29325
  columns: configuration.columns,
@@ -29161,11 +29331,11 @@ function useTableData$1 (_ref) {
29161
29331
  newData = data.data;
29162
29332
  total = data.total;
29163
29333
  case 21:
29164
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29334
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29165
29335
  selected: [],
29166
29336
  deleting: false,
29167
29337
  data: newData,
29168
- pagination: _objectSpread$B(_objectSpread$B({}, state.pagination), {}, {
29338
+ pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
29169
29339
  current: current,
29170
29340
  total: total
29171
29341
  })
@@ -29181,12 +29351,12 @@ function useTableData$1 (_ref) {
29181
29351
  };
29182
29352
  }();
29183
29353
  function setLoading() {
29184
- setState(_objectSpread$B(_objectSpread$B({}, state), {}, {
29354
+ setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29185
29355
  loading: true
29186
29356
  }));
29187
29357
  }
29188
- return _objectSpread$B(_objectSpread$B({}, state), {}, {
29189
- configuration: _objectSpread$B(_objectSpread$B({}, configuration), {}, {
29358
+ return _objectSpread$A(_objectSpread$A({}, state), {}, {
29359
+ configuration: _objectSpread$A(_objectSpread$A({}, configuration), {}, {
29190
29360
  title: undefined
29191
29361
  }),
29192
29362
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
@@ -29295,11 +29465,11 @@ function objectHash (obj) {
29295
29465
  return hash(hashable);
29296
29466
  }
29297
29467
 
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; }
29468
+ 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; } } }; }
29469
+ 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; } }
29470
+ 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; }
29471
+ 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; }
29472
+ 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
29473
  var LOG$3 = getLogger('Backoffice', 'TableData');
29304
29474
  function useTableData (_ref) {
29305
29475
  var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
@@ -29358,7 +29528,7 @@ function useTableData (_ref) {
29358
29528
  var _useState13 = useState({
29359
29529
  loading: true,
29360
29530
  deleting: false,
29361
- pagination: _objectSpread$A({
29531
+ pagination: _objectSpread$z({
29362
29532
  current: 1,
29363
29533
  pageSize: 20,
29364
29534
  total: 0,
@@ -29367,7 +29537,7 @@ function useTableData (_ref) {
29367
29537
  selected: [],
29368
29538
  canDelete: !!apiHandler.canDelete,
29369
29539
  canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
29370
- mappingData: _objectSpread$A(_objectSpread$A({}, parentData), {}, {
29540
+ mappingData: _objectSpread$z(_objectSpread$z({}, parentData), {}, {
29371
29541
  prefilter: {
29372
29542
  select: globalFilter.select
29373
29543
  },
@@ -29378,7 +29548,7 @@ function useTableData (_ref) {
29378
29548
  _useState14 = _slicedToArray(_useState13, 2),
29379
29549
  state = _useState14[0],
29380
29550
  setState = _useState14[1];
29381
- var mappingData = _objectSpread$A(_objectSpread$A(_objectSpread$A({}, parentData), state.data), {}, {
29551
+ var mappingData = _objectSpread$z(_objectSpread$z(_objectSpread$z({}, parentData), state.data), {}, {
29382
29552
  catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
29383
29553
  sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
29384
29554
  });
@@ -29417,7 +29587,7 @@ function useTableData (_ref) {
29417
29587
  }
29418
29588
  var dataArray = Array.isArray(data) ? data : [data];
29419
29589
  var newInitData = initData;
29420
- var newState = _objectSpread$A({}, state);
29590
+ var newState = _objectSpread$z({}, state);
29421
29591
  var selected = [];
29422
29592
  if (configuration.deselectOnUpdate == false) {
29423
29593
  selected = state.selected;
@@ -29434,7 +29604,7 @@ function useTableData (_ref) {
29434
29604
  dataRow: dataRow
29435
29605
  }),
29436
29606
  _data = _updateData.data;
29437
- newState = _objectSpread$A(_objectSpread$A({}, newState), {}, {
29607
+ newState = _objectSpread$z(_objectSpread$z({}, newState), {}, {
29438
29608
  data: _data,
29439
29609
  selected: selected
29440
29610
  });
@@ -29446,8 +29616,8 @@ function useTableData (_ref) {
29446
29616
  dataRow: dataRow
29447
29617
  }),
29448
29618
  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"])
29619
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, filterData), {}, {
29620
+ 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
29621
  }, 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
29622
  genericProps: globalFilter.toggle
29453
29623
  } : undefined), {}, {
@@ -29457,7 +29627,7 @@ function useTableData (_ref) {
29457
29627
  _data2 = _applyFilterAndSortat.data,
29458
29628
  pagination = _applyFilterAndSortat.pagination;
29459
29629
  newInitData = nextInitData;
29460
- newState = _objectSpread$A(_objectSpread$A({}, newState), {}, {
29630
+ newState = _objectSpread$z(_objectSpread$z({}, newState), {}, {
29461
29631
  pagination: pagination,
29462
29632
  data: _data2,
29463
29633
  selected: selected
@@ -29467,8 +29637,8 @@ function useTableData (_ref) {
29467
29637
  if (apiHandler.canCreate) {
29468
29638
  apiCreate(data).then(function (res) {
29469
29639
  if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
29470
- initData && setInitData(_objectSpread$A({}, initData));
29471
- setState(_objectSpread$A({}, state));
29640
+ initData && setInitData(_objectSpread$z({}, initData));
29641
+ setState(_objectSpread$z({}, state));
29472
29642
  }
29473
29643
  });
29474
29644
  }
@@ -29481,7 +29651,7 @@ function useTableData (_ref) {
29481
29651
  var triggerRefresh = function triggerRefresh() {
29482
29652
  var _configuration$filter8;
29483
29653
  setError(undefined);
29484
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
29654
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29485
29655
  //on refresh update default filter, since global value can change
29486
29656
  if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
29487
29657
  var _configuration$filter9;
@@ -29492,7 +29662,7 @@ function useTableData (_ref) {
29492
29662
  newGlobalFilter["default"] = _defaultFilter;
29493
29663
  setGlobaFilter(newGlobalFilter);
29494
29664
  }
29495
- onChange(_objectSpread$A({
29665
+ onChange(_objectSpread$z({
29496
29666
  pagination: state.pagination
29497
29667
  }, filterData), newGlobalFilter, true);
29498
29668
  };
@@ -29510,7 +29680,7 @@ function useTableData (_ref) {
29510
29680
  order: c.defaultSortOrder
29511
29681
  };
29512
29682
  });
29513
- if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29683
+ if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29514
29684
  loading: false
29515
29685
  }));else {
29516
29686
  onChange({
@@ -29553,7 +29723,7 @@ function useTableData (_ref) {
29553
29723
  case 0:
29554
29724
  filters = {};
29555
29725
  filters['_id'] = [id, 'eq', false];
29556
- ssf = _objectSpread$A({
29726
+ ssf = _objectSpread$z({
29557
29727
  pagination: {
29558
29728
  current: 1,
29559
29729
  pageSize: 1
@@ -29564,7 +29734,7 @@ function useTableData (_ref) {
29564
29734
  genericProps: globalFilter.toggle
29565
29735
  } : undefined);
29566
29736
  _context2.next = 5;
29567
- return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), ssf);
29737
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), ssf);
29568
29738
  case 5:
29569
29739
  data = _context2.sent;
29570
29740
  return _context2.abrupt("return", data);
@@ -29608,12 +29778,12 @@ function useTableData (_ref) {
29608
29778
  refresh = _args3.length > 2 ? _args3[2] : undefined;
29609
29779
  clearSelection = _args3.length > 3 ? _args3[3] : undefined;
29610
29780
  overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
29611
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29781
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29612
29782
  mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
29613
29783
  loading: true
29614
29784
  }));
29615
29785
  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
29786
+ 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
29787
  filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
29618
29788
  var _ref7 = _slicedToArray(_ref6, 2);
29619
29789
  _ref7[0];
@@ -29621,7 +29791,7 @@ function useTableData (_ref) {
29621
29791
  return v != null;
29622
29792
  }));
29623
29793
  currentFilterHash = objectHash(filterData);
29624
- currentPagination = _objectSpread$A(_objectSpread$A({}, p.pagination), {}, {
29794
+ currentPagination = _objectSpread$z(_objectSpread$z({}, p.pagination), {}, {
29625
29795
  current: currentFilterHash == filterHash.current ? p.pagination.current : 1
29626
29796
  });
29627
29797
  filterHash.current = currentFilterHash;
@@ -29629,7 +29799,7 @@ function useTableData (_ref) {
29629
29799
  _context3.next = 21;
29630
29800
  break;
29631
29801
  }
29632
- ssf = _objectSpread$A({
29802
+ ssf = _objectSpread$z({
29633
29803
  pagination: currentPagination,
29634
29804
  columns: configuration.columns,
29635
29805
  filters: filterData,
@@ -29638,12 +29808,12 @@ function useTableData (_ref) {
29638
29808
  genericProps: prefilter.toggle
29639
29809
  } : undefined);
29640
29810
  _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)));
29811
+ 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
29812
  case 15:
29643
29813
  data = _context3.sent;
29644
- currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), ssf);
29814
+ currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), ssf);
29645
29815
  currentData = data.data;
29646
- currentPagination = _objectSpread$A(_objectSpread$A({}, currentPagination), {}, {
29816
+ currentPagination = _objectSpread$z(_objectSpread$z({}, currentPagination), {}, {
29647
29817
  total: data.total
29648
29818
  });
29649
29819
  _context3.next = 30;
@@ -29660,7 +29830,7 @@ function useTableData (_ref) {
29660
29830
  currentData = _data3.data;
29661
29831
  setInitData(currentData);
29662
29832
  case 27:
29663
- _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$A(_objectSpread$A({}, p), {}, {
29833
+ _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$z(_objectSpread$z({}, p), {}, {
29664
29834
  pagination: currentPagination,
29665
29835
  filters: filterData,
29666
29836
  data: currentData,
@@ -29669,11 +29839,11 @@ function useTableData (_ref) {
29669
29839
  currentData = _data4;
29670
29840
  currentPagination = pagination;
29671
29841
  case 30:
29672
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29842
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29673
29843
  loading: false,
29674
29844
  data: currentData,
29675
29845
  pagination: currentPagination,
29676
- mappingData: _objectSpread$A(_objectSpread$A(_objectSpread$A(_objectSpread$A({}, parentData), state.mappingData), overwriteMappingData), {}, {
29846
+ mappingData: _objectSpread$z(_objectSpread$z(_objectSpread$z(_objectSpread$z({}, parentData), state.mappingData), overwriteMappingData), {}, {
29677
29847
  prefilter: prefilter
29678
29848
  }),
29679
29849
  currentFetchUrl: currentUrl
@@ -29695,7 +29865,7 @@ function useTableData (_ref) {
29695
29865
  };
29696
29866
  }();
29697
29867
  var onSelect = function onSelect(keys) {
29698
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29868
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29699
29869
  selected: keys
29700
29870
  }));
29701
29871
  };
@@ -29706,7 +29876,7 @@ function useTableData (_ref) {
29706
29876
  return _regeneratorRuntime.wrap(function _callee4$(_context5) {
29707
29877
  while (1) switch (_context5.prev = _context5.next) {
29708
29878
  case 0:
29709
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
29879
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29710
29880
  deleting: true
29711
29881
  }));
29712
29882
  newData = _toConsumableArray(state.data);
@@ -29733,7 +29903,7 @@ function useTableData (_ref) {
29733
29903
  })) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
29734
29904
  }
29735
29905
  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 : []);
29906
+ _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
29907
  try {
29738
29908
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
29739
29909
  field = _step.value;
@@ -29746,7 +29916,7 @@ function useTableData (_ref) {
29746
29916
  } finally {
29747
29917
  _iterator.f();
29748
29918
  }
29749
- mappingData = _objectSpread$A(_objectSpread$A(_objectSpread$A({}, mappingData), state.mappingData), mapToggle);
29919
+ mappingData = _objectSpread$z(_objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), mapToggle);
29750
29920
  deleteResult = undefined;
29751
29921
  _context4.prev = 7;
29752
29922
  if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
@@ -29836,12 +30006,12 @@ function useTableData (_ref) {
29836
30006
  break;
29837
30007
  }
29838
30008
  _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), {}, {
30009
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$z(_objectSpread$z({}, mappingData), state.mappingData), _objectSpread$z({
30010
+ pagination: _objectSpread$z(_objectSpread$z({}, state.pagination), {}, {
29841
30011
  current: current
29842
30012
  }),
29843
30013
  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"]),
30014
+ 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
30015
  sorter: filterData.sorter
29846
30016
  }, 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
30017
  genericProps: globalFilter.toggle
@@ -29852,11 +30022,11 @@ function useTableData (_ref) {
29852
30022
  total = data.total;
29853
30023
  case 28:
29854
30024
  setInitData(newInitData);
29855
- setState(_objectSpread$A(_objectSpread$A({}, state), {}, {
30025
+ setState(_objectSpread$z(_objectSpread$z({}, state), {}, {
29856
30026
  selected: [],
29857
30027
  deleting: false,
29858
30028
  data: newData,
29859
- pagination: _objectSpread$A(_objectSpread$A({}, state.pagination), {}, {
30029
+ pagination: _objectSpread$z(_objectSpread$z({}, state.pagination), {}, {
29860
30030
  current: current === 0 ? 1 : current,
29861
30031
  total: total
29862
30032
  })
@@ -29877,14 +30047,14 @@ function useTableData (_ref) {
29877
30047
  LOG$3.error(new DivaError('No global select filter defiend'));
29878
30048
  return;
29879
30049
  }
29880
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
30050
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29881
30051
  if (value !== null && value !== void 0 && value.length) {
29882
30052
  newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
29883
30053
  } else {
29884
30054
  newGlobalFilter.select = {};
29885
30055
  }
29886
30056
  setGlobaFilter(newGlobalFilter);
29887
- onChange(_objectSpread$A({
30057
+ onChange(_objectSpread$z({
29888
30058
  pagination: state.pagination
29889
30059
  }, filterData), newGlobalFilter);
29890
30060
  };
@@ -29895,16 +30065,16 @@ function useTableData (_ref) {
29895
30065
  return;
29896
30066
  }
29897
30067
  var toggleFilter = {};
29898
- var mappingData = _objectSpread$A({}, state.mappingData);
30068
+ var mappingData = _objectSpread$z({}, state.mappingData);
29899
30069
  configuration.filter.toggle.fields.forEach(function (f) {
29900
30070
  mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
29901
30071
  toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
29902
30072
  });
29903
- var newGlobalFilter = _objectSpread$A(_objectSpread$A({}, globalFilter), {}, {
30073
+ var newGlobalFilter = _objectSpread$z(_objectSpread$z({}, globalFilter), {}, {
29904
30074
  toggle: globalFilter.toggle ? undefined : toggleFilter
29905
30075
  });
29906
30076
  setGlobaFilter(newGlobalFilter);
29907
- onChange(_objectSpread$A({
30077
+ onChange(_objectSpread$z({
29908
30078
  pagination: state.pagination
29909
30079
  }, filterData), newGlobalFilter, true, true, mappingData);
29910
30080
  };
@@ -29917,7 +30087,7 @@ function useTableData (_ref) {
29917
30087
  LOG$3.error(new DivaError('No global search filter defiend'));
29918
30088
  return;
29919
30089
  }
29920
- var newGlobalFilter = _objectSpread$A(_objectSpread$A({}, globalFilter), {}, {
30090
+ var newGlobalFilter = _objectSpread$z(_objectSpread$z({}, globalFilter), {}, {
29921
30091
  search: {}
29922
30092
  });
29923
30093
  if (value) {
@@ -29931,7 +30101,7 @@ function useTableData (_ref) {
29931
30101
  });
29932
30102
  }
29933
30103
  setGlobaFilter(newGlobalFilter);
29934
- onChange(_objectSpread$A({
30104
+ onChange(_objectSpread$z({
29935
30105
  pagination: state.pagination
29936
30106
  }, filterData), newGlobalFilter);
29937
30107
  };
@@ -29941,20 +30111,20 @@ function useTableData (_ref) {
29941
30111
  LOG$3.error(new DivaError('No global period filter defiend'));
29942
30112
  return;
29943
30113
  }
29944
- var newGlobalFilter = _objectSpread$A({}, globalFilter);
30114
+ var newGlobalFilter = _objectSpread$z({}, globalFilter);
29945
30115
  newGlobalFilter.timeStamp = {
29946
30116
  fromTimeStamp: [from],
29947
30117
  toTimeStamp: [to]
29948
30118
  };
29949
30119
  if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
29950
- onChange(_objectSpread$A({
30120
+ onChange(_objectSpread$z({
29951
30121
  pagination: state.pagination
29952
- }, filterData), undefined, true, undefined, _objectSpread$A(_objectSpread$A({}, state.mappingData), {}, {
30122
+ }, filterData), undefined, true, undefined, _objectSpread$z(_objectSpread$z({}, state.mappingData), {}, {
29953
30123
  from: from,
29954
30124
  to: to
29955
30125
  }));
29956
30126
  };
29957
- return _objectSpread$A(_objectSpread$A({}, state), {}, {
30127
+ return _objectSpread$z(_objectSpread$z({}, state), {}, {
29958
30128
  title: title,
29959
30129
  configuration: configuration,
29960
30130
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
@@ -29996,8 +30166,8 @@ function StandardTable (_ref) {
29996
30166
  });
29997
30167
  }
29998
30168
 
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; }
30169
+ 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; }
30170
+ 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
30171
  function Table (props) {
30002
30172
  var root = useStore();
30003
30173
  var variant = useMemo(function () {
@@ -30005,15 +30175,15 @@ function Table (props) {
30005
30175
  return config.variant;
30006
30176
  }, [props.id]);
30007
30177
  return /*#__PURE__*/jsxs(Fragment, {
30008
- children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$z({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$z({}, props))]
30178
+ children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$y({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$y({}, props))]
30009
30179
  });
30010
30180
  }
30011
30181
 
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; }
30182
+ 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; } } }; }
30183
+ 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; } }
30184
+ 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; }
30185
+ 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; }
30186
+ 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
30187
  function useAGGrid (_ref) {
30018
30188
  var id = _ref.id,
30019
30189
  filter = _ref.filter,
@@ -30107,7 +30277,7 @@ function useAGGrid (_ref) {
30107
30277
  value = _ref3[1];
30108
30278
  if (_idx == 0) {
30109
30279
  var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
30110
- rdat.push(_objectSpread$y(_objectSpread$y({}, rd), {}, {
30280
+ rdat.push(_objectSpread$x(_objectSpread$x({}, rd), {}, {
30111
30281
  grouping: [idx.toString()]
30112
30282
  }));
30113
30283
  var sp = key.split(':');
@@ -30135,7 +30305,7 @@ function useAGGrid (_ref) {
30135
30305
  _context.next = 51;
30136
30306
  break;
30137
30307
  }
30138
- _iterator = _createForOfIteratorHelper$3(configuration.mergerFields);
30308
+ _iterator = _createForOfIteratorHelper$2(configuration.mergerFields);
30139
30309
  _context.prev = 9;
30140
30310
  _iterator.s();
30141
30311
  case 11:
@@ -30152,7 +30322,7 @@ function useAGGrid (_ref) {
30152
30322
  }
30153
30323
  merged = '';
30154
30324
  first = true;
30155
- _iterator2 = _createForOfIteratorHelper$3(mergeEntry.fieldId);
30325
+ _iterator2 = _createForOfIteratorHelper$2(mergeEntry.fieldId);
30156
30326
  _context.prev = 18;
30157
30327
  _iterator2.s();
30158
30328
  case 20:
@@ -30250,8 +30420,8 @@ var value = "value-FCA-6";
30250
30420
  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
30421
  styleInject(css_248z$l);
30252
30422
 
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; }
30423
+ 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; }
30424
+ 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
30425
  var AGChart = function AGChart(_ref) {
30256
30426
  var data = _ref.data;
30257
30427
  var groupedData = [];
@@ -30259,11 +30429,11 @@ var AGChart = function AGChart(_ref) {
30259
30429
  data.forEach(function (dt) {
30260
30430
  if (dt.count == 0) return;
30261
30431
  if (groupedData.length > dt.grouping[0]) {
30262
- groupedData[dt.grouping[0]].push(_objectSpread$x(_objectSpread$x({}, dt), {}, {
30432
+ groupedData[dt.grouping[0]].push(_objectSpread$w(_objectSpread$w({}, dt), {}, {
30263
30433
  count: Number(dt.count)
30264
30434
  }));
30265
30435
  } else {
30266
- groupedData.push([_objectSpread$x(_objectSpread$x({}, dt), {}, {
30436
+ groupedData.push([_objectSpread$w(_objectSpread$w({}, dt), {}, {
30267
30437
  count: Number(dt.count)
30268
30438
  })]);
30269
30439
  }
@@ -30304,8 +30474,8 @@ var AGChart = function AGChart(_ref) {
30304
30474
  });
30305
30475
  };
30306
30476
 
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; }
30477
+ 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; }
30478
+ 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
30479
  var AGGrid = /*#__PURE__*/memo(function (_ref) {
30310
30480
  var id = _ref.id,
30311
30481
  filter = _ref.filter,
@@ -30398,7 +30568,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
30398
30568
  });
30399
30569
  });
30400
30570
  }
30401
- return _objectSpread$w(_objectSpread$w({}, column), {}, {
30571
+ return _objectSpread$v(_objectSpread$v({}, column), {}, {
30402
30572
  cellRenderer: renderer
30403
30573
  });
30404
30574
  });
@@ -30668,11 +30838,11 @@ var CustomText = function CustomText(_ref) {
30668
30838
  };
30669
30839
  var CustomText$1 = observer(CustomText);
30670
30840
 
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; }
30841
+ 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; }
30842
+ 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; }
30843
+ 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; } } }; }
30844
+ 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; } }
30845
+ 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
30846
  function useFilterBoxData (id) {
30677
30847
  var root = useStore();
30678
30848
  var _useMemo = useMemo(function () {
@@ -30720,7 +30890,7 @@ function useFilterBoxData (id) {
30720
30890
  }
30721
30891
  function reducer(state, actions) {
30722
30892
  var ob = {};
30723
- var _iterator = _createForOfIteratorHelper$2(actions),
30893
+ var _iterator = _createForOfIteratorHelper$1(actions),
30724
30894
  _step;
30725
30895
  try {
30726
30896
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30732,7 +30902,7 @@ function useFilterBoxData (id) {
30732
30902
  } finally {
30733
30903
  _iterator.f();
30734
30904
  }
30735
- return _objectSpread$v(_objectSpread$v({}, state), ob);
30905
+ return _objectSpread$u(_objectSpread$u({}, state), ob);
30736
30906
  }
30737
30907
  return {
30738
30908
  configuration: configuration,
@@ -30743,11 +30913,11 @@ function useFilterBoxData (id) {
30743
30913
  };
30744
30914
  }
30745
30915
 
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; }
30916
+ 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; } } }; }
30917
+ 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; } }
30918
+ 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; }
30919
+ 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; }
30920
+ 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
30921
  var FilterBox = /*#__PURE__*/memo(function (_ref) {
30752
30922
  var id = _ref.id,
30753
30923
  onChangeFilter = _ref.onChangeFilter,
@@ -30775,7 +30945,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
30775
30945
  }), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
30776
30946
  mode: "single",
30777
30947
  apiInterface: filter.requestOptions,
30778
- wholeData: _objectSpread$u(_objectSpread$u({}, state.filter), {}, {
30948
+ wholeData: _objectSpread$t(_objectSpread$t({}, state.filter), {}, {
30779
30949
  tab: tab
30780
30950
  }),
30781
30951
  mapping: filter.requestMapping,
@@ -30883,7 +31053,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
30883
31053
  }
30884
31054
  function getLabelByValue(targetValue, data) {
30885
31055
  if (!data) return;
30886
- var _iterator = _createForOfIteratorHelper$1(data),
31056
+ var _iterator = _createForOfIteratorHelper(data),
30887
31057
  _step;
30888
31058
  try {
30889
31059
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -31007,8 +31177,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
31007
31177
  return false;
31008
31178
  });
31009
31179
 
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; }
31180
+ 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; }
31181
+ 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
31182
  function useUIBuilderData (id) {
31013
31183
  var save = undefined;
31014
31184
  var root = useStore();
@@ -31040,7 +31210,7 @@ function useUIBuilderData (id) {
31040
31210
  var configuration = _useMemo.configuration;
31041
31211
  useEffect(function () {
31042
31212
  root.dataStore.getApi2SessionGuid().then(function (res) {
31043
- return setFilter(_objectSpread$t(_objectSpread$t({}, filter), {}, {
31213
+ return setFilter(_objectSpread$s(_objectSpread$s({}, filter), {}, {
31044
31214
  sessionGuid: res
31045
31215
  }));
31046
31216
  });
@@ -31063,8 +31233,8 @@ function useUIBuilderData (id) {
31063
31233
  };
31064
31234
  }
31065
31235
 
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; }
31236
+ 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; }
31237
+ 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
31238
  function UIBuilder(_ref) {
31069
31239
  var id = _ref.id;
31070
31240
  var state = useUIBuilderData(id);
@@ -31091,7 +31261,7 @@ function UIBuilder(_ref) {
31091
31261
  override = {
31092
31262
  value: newFilter[item.field],
31093
31263
  setValue: function setValue(newVal) {
31094
- var newFilter = _objectSpread$s({}, state.filter);
31264
+ var newFilter = _objectSpread$r({}, state.filter);
31095
31265
  newFilter[item.field] = newVal;
31096
31266
  state.setFilter(newFilter);
31097
31267
  }
@@ -31139,7 +31309,7 @@ function UIBuilder(_ref) {
31139
31309
  case 'AGGrid':
31140
31310
  return /*#__PURE__*/jsx(AGGrid, {
31141
31311
  id: item.id,
31142
- filter: _objectSpread$s({
31312
+ filter: _objectSpread$r({
31143
31313
  optionCodices: JSON.stringify(state.data)
31144
31314
  }, state.filter),
31145
31315
  override: item.id == 'AGGridTopOptionValues' ? {
@@ -31299,8 +31469,8 @@ var OrgItem = function OrgItem(_ref) {
31299
31469
  };
31300
31470
  var OrgItem$1 = observer(OrgItem);
31301
31471
 
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; }
31472
+ 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; }
31473
+ 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
31474
  function useTransformJson (_ref) {
31305
31475
  var id = _ref.id;
31306
31476
  var _useState = useState(),
@@ -31366,7 +31536,7 @@ function useTransformJson (_ref) {
31366
31536
  }();
31367
31537
  var _transformData = function transformData(data, itemChain, parentOrgId) {
31368
31538
  var _data$children;
31369
- return _objectSpread$r(_objectSpread$r({}, data), {}, {
31539
+ return _objectSpread$q(_objectSpread$q({}, data), {}, {
31370
31540
  label: /*#__PURE__*/jsx(OrgItem$1, {
31371
31541
  data: data,
31372
31542
  configuration: configuration,
@@ -32027,8 +32197,8 @@ function useCatalogEditor (id) {
32027
32197
  };
32028
32198
  }
32029
32199
 
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; }
32200
+ 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; }
32201
+ 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
32202
  function DragDropUpload(_ref) {
32033
32203
  var api2Params = _ref.api2Params,
32034
32204
  catalogId = _ref.catalogId,
@@ -32136,7 +32306,7 @@ function DragDropUpload(_ref) {
32136
32306
  children: [importStarted && /*#__PURE__*/jsx("p", {
32137
32307
  children: t('backoffice.catalogeditor.classimportstarted')
32138
32308
  }), !importStarted && /*#__PURE__*/jsxs(Fragment, {
32139
- children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$q(_objectSpread$q({}, props), {}, {
32309
+ children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$p(_objectSpread$p({}, props), {}, {
32140
32310
  children: [/*#__PURE__*/jsx("p", {
32141
32311
  className: "ant-upload-drag-icon",
32142
32312
  children: /*#__PURE__*/jsx(InboxOutlined, {})
@@ -32353,12 +32523,12 @@ function CatalogEditor(_ref) {
32353
32523
  }
32354
32524
  var CatalogEditor$1 = observer(CatalogEditor);
32355
32525
 
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; }
32526
+ 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; }
32527
+ 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
32528
  var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
32359
32529
  var _root$contentStore$bo, _root$contentStore$ri;
32360
32530
  var root = useStore();
32361
- return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$p(_objectSpread$p({}, props), {}, {
32531
+ return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$o(_objectSpread$o({}, props), {}, {
32362
32532
  ref: ref,
32363
32533
  darkMode: root.contentStore.theme == 'darkmode',
32364
32534
  jwt: root.dataStore.jwt,
@@ -32369,8 +32539,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
32369
32539
  });
32370
32540
  var Spreadsheet = observer(SpreadsheetWrapper);
32371
32541
 
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; }
32542
+ 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; }
32543
+ 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
32544
 
32375
32545
  // Type definition for the context state
32376
32546
 
@@ -32392,14 +32562,14 @@ var useEnricherContext = function useEnricherContext() {
32392
32562
  loading: loading,
32393
32563
  setOptions: function setOptions(options) {
32394
32564
  var state = root.contextStore.getContext('enricher');
32395
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$o(_objectSpread$o({}, state[stateKey]), {}, {
32565
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
32396
32566
  options: options,
32397
32567
  loading: false
32398
32568
  })));
32399
32569
  },
32400
32570
  setLoading: function setLoading(loading) {
32401
32571
  var state = root.contextStore.getContext('enricher');
32402
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$o(_objectSpread$o({}, state[stateKey]), {}, {
32572
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
32403
32573
  loading: loading
32404
32574
  })));
32405
32575
  }
@@ -32510,7 +32680,7 @@ var useEnricherContext = function useEnricherContext() {
32510
32680
  }, [urlPackageId, getContext().packageId, setSelectedPackage]);
32511
32681
 
32512
32682
  // Return context + handlers
32513
- return _objectSpread$o(_objectSpread$o({}, getContext()), {}, {
32683
+ return _objectSpread$n(_objectSpread$n({}, getContext()), {}, {
32514
32684
  setSelectedSerie: setSelectedSerie,
32515
32685
  setSelectedItem: setSelectedItem,
32516
32686
  setSelectedFeature: setSelectedFeature,
@@ -32856,157 +33026,6 @@ function createTranslatedColumnConfig(field, headerName, languages) {
32856
33026
  };
32857
33027
  }
32858
33028
 
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
33029
  var TableGroups = observer(function () {
33011
33030
  var _useTranslation = useTranslation(),
33012
33031
  t = _useTranslation.t;
@@ -34288,6 +34307,7 @@ var TableProperties = observer(function () {
34288
34307
  setSelectedItem = _useModule.setSelectedItem,
34289
34308
  selectedItem = _useModule.selectedItem;
34290
34309
  useTools({
34310
+ mainInformationWindowCodex: 'IDM_ENRICHER_PROPERTIES_TABLE_INFO',
34291
34311
  enricherPackage: selectedPackage,
34292
34312
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
34293
34313
  onlyPlaceholder: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.onlyPlaceholder,
@@ -34458,7 +34478,11 @@ var TableProperties = observer(function () {
34458
34478
  return /*#__PURE__*/jsxs(Fragment, {
34459
34479
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34460
34480
  title: /*#__PURE__*/jsxs("div", {
34461
- children: [t('backoffice.menu.items.label.IDMEnricherEditorTableProperties'), /*#__PURE__*/jsx(Space$1, {
34481
+ children: [/*#__PURE__*/jsxs(Space$1, {
34482
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTableProperties'), /*#__PURE__*/jsx(InformationButton, {
34483
+ codex: "IDM_ENRICHER_PROPERTIES_TABLE_INFO"
34484
+ })]
34485
+ }), /*#__PURE__*/jsx(Space$1, {
34462
34486
  style: {
34463
34487
  "float": 'right'
34464
34488
  },
@@ -35902,6 +35926,7 @@ var TableTabGroups = observer(function () {
35902
35926
  setSelectedItem = _useModule.setSelectedItem,
35903
35927
  selectedItem = _useModule.selectedItem;
35904
35928
  useTools({
35929
+ mainInformationWindowCodex: 'IDM_ENRICHER_TAB_GROUPS_TABLE_INFO',
35905
35930
  enricherPackage: selectedPackage,
35906
35931
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
35907
35932
  onlyPlaceholder: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.onlyPlaceholder,
@@ -35985,7 +36010,11 @@ var TableTabGroups = observer(function () {
35985
36010
  return /*#__PURE__*/jsxs(Fragment, {
35986
36011
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35987
36012
  title: /*#__PURE__*/jsxs("div", {
35988
- children: [t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups'), /*#__PURE__*/jsx(Space$1, {
36013
+ children: [/*#__PURE__*/jsxs(Space$1, {
36014
+ children: [t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups'), /*#__PURE__*/jsx(InformationButton, {
36015
+ codex: "IDM_ENRICHER_TAB_GROUPS_TABLE_INFO"
36016
+ })]
36017
+ }), /*#__PURE__*/jsx(Space$1, {
35989
36018
  style: {
35990
36019
  "float": 'right'
35991
36020
  },
@@ -38906,20 +38935,6 @@ var useCatalogContext = function useCatalogContext() {
38906
38935
  });
38907
38936
  };
38908
38937
 
38909
- function InformationButton(_ref) {
38910
- var codex = _ref.codex;
38911
- var _useTools = useTools({}),
38912
- updateInformationWindow = _useTools.updateInformationWindow;
38913
- return /*#__PURE__*/jsx(Button, {
38914
- type: "text",
38915
- icon: /*#__PURE__*/jsx(InfoCircleOutlined$1, {}),
38916
- onClick: function onClick(e) {
38917
- e.stopPropagation();
38918
- updateInformationWindow(codex, true);
38919
- }
38920
- });
38921
- }
38922
-
38923
38938
  var TableCatalogs = observer(function () {
38924
38939
  var root = useStore();
38925
38940
  var _useTranslation = useTranslation(),
@@ -40559,6 +40574,7 @@ var TableItems = observer(function () {
40559
40574
  apiConfig = _useModule.apiConfig,
40560
40575
  organizationId = _useModule.organizationId;
40561
40576
  useTools({
40577
+ mainInformationWindowCodex: 'IDM_ITEMS_TABLE_INFO',
40562
40578
  catalog: selectedCatalog,
40563
40579
  setSerie: setSelectedSerie,
40564
40580
  setArticle: setSelectedItem,
@@ -40579,7 +40595,11 @@ var TableItems = observer(function () {
40579
40595
  return /*#__PURE__*/jsxs(Fragment, {
40580
40596
  children: [/*#__PURE__*/jsx(Descriptions$1, {
40581
40597
  title: /*#__PURE__*/jsxs("div", {
40582
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableItems'), /*#__PURE__*/jsxs(Space$1, {
40598
+ children: [/*#__PURE__*/jsxs(Space$1, {
40599
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableItems'), /*#__PURE__*/jsx(InformationButton, {
40600
+ codex: "IDM_ITEMS_TABLE_INFO"
40601
+ })]
40602
+ }), /*#__PURE__*/jsxs(Space$1, {
40583
40603
  style: {
40584
40604
  "float": 'right'
40585
40605
  },
@@ -41090,6 +41110,7 @@ var TableFeatures$2 = observer(function () {
41090
41110
  selectedItem = _useModule.selectedItem,
41091
41111
  selectedSerie = _useModule.selectedSerie;
41092
41112
  useTools({
41113
+ mainInformationWindowCodex: 'IDM_FEATURES_TABLE_INFO',
41093
41114
  catalog: selectedCatalog,
41094
41115
  setSerie: setSelectedSerie,
41095
41116
  setArticle: setSelectedItem,
@@ -41112,7 +41133,11 @@ var TableFeatures$2 = observer(function () {
41112
41133
  return /*#__PURE__*/jsxs(Fragment, {
41113
41134
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41114
41135
  title: /*#__PURE__*/jsxs("div", {
41115
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsxs(Space$1, {
41136
+ children: [/*#__PURE__*/jsxs(Space$1, {
41137
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsx(InformationButton, {
41138
+ codex: "IDM_FEATURES_TABLE_INFO"
41139
+ })]
41140
+ }), /*#__PURE__*/jsxs(Space$1, {
41116
41141
  style: {
41117
41142
  "float": 'right'
41118
41143
  },
@@ -41354,6 +41379,7 @@ var TableOptions$1 = observer(function () {
41354
41379
  selectedItem = _useModule.selectedItem,
41355
41380
  selectedSerie = _useModule.selectedSerie;
41356
41381
  useTools({
41382
+ mainInformationWindowCodex: 'IDM_OPTIONS_TABLE_INFO',
41357
41383
  catalog: selectedCatalog,
41358
41384
  setSerie: setSelectedSerie,
41359
41385
  setArticle: setSelectedItem,
@@ -41364,7 +41390,11 @@ var TableOptions$1 = observer(function () {
41364
41390
  return /*#__PURE__*/jsxs(Fragment, {
41365
41391
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41366
41392
  title: /*#__PURE__*/jsxs("div", {
41367
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
41393
+ children: [/*#__PURE__*/jsxs(Space$1, {
41394
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsx(InformationButton, {
41395
+ codex: "IDM_OPTIONS_TABLE_INFO"
41396
+ })]
41397
+ }), /*#__PURE__*/jsxs(Space$1, {
41368
41398
  style: {
41369
41399
  "float": 'right'
41370
41400
  },
@@ -41582,6 +41612,7 @@ var TableFeatureClasses = observer(function () {
41582
41612
  selectedFeatureClass = _React$useState2[0],
41583
41613
  setSelectedFeatureClass = _React$useState2[1];
41584
41614
  useTools({
41615
+ mainInformationWindowCodex: 'IDM_FEATURE_CLASSES_TABLE_INFO',
41585
41616
  catalog: selectedCatalog,
41586
41617
  setSerie: setSelectedSerie,
41587
41618
  setArticle: setSelectedItem,
@@ -41686,7 +41717,11 @@ var TableFeatureClasses = observer(function () {
41686
41717
  return /*#__PURE__*/jsxs(Fragment, {
41687
41718
  children: [/*#__PURE__*/jsx(Descriptions$1, {
41688
41719
  title: /*#__PURE__*/jsxs("div", {
41689
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(Space$1, {
41720
+ children: [/*#__PURE__*/jsxs(Space$1, {
41721
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(InformationButton, {
41722
+ codex: "IDM_FEATURE_CLASSES_TABLE_INFO"
41723
+ })]
41724
+ }), /*#__PURE__*/jsx(Space$1, {
41690
41725
  style: {
41691
41726
  "float": 'right'
41692
41727
  },
@@ -42402,6 +42437,7 @@ var TableDecisions = observer(function () {
42402
42437
  spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
42403
42438
  }, [selectedNodeId]);
42404
42439
  useTools({
42440
+ mainInformationWindowCodex: 'IDM_DECISIONS_TABLE_INFO',
42405
42441
  catalog: selectedCatalog,
42406
42442
  setSerie: setSelectedSerie,
42407
42443
  setArticle: setSelectedItem,
@@ -42583,7 +42619,11 @@ var TableDecisions = observer(function () {
42583
42619
  return /*#__PURE__*/jsxs(Fragment, {
42584
42620
  children: [/*#__PURE__*/jsx(Descriptions$1, {
42585
42621
  title: /*#__PURE__*/jsxs("div", {
42586
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(Space$1, {
42622
+ children: [/*#__PURE__*/jsxs(Space$1, {
42623
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions'), /*#__PURE__*/jsx(InformationButton, {
42624
+ codex: "IDM_DECISIONS_TABLE_INFO"
42625
+ })]
42626
+ }), /*#__PURE__*/jsx(Space$1, {
42587
42627
  style: {
42588
42628
  "float": 'right'
42589
42629
  },
@@ -42620,6 +42660,7 @@ var TableDetailInfos = observer(function () {
42620
42660
  selectedMedia = _React$useState2[0],
42621
42661
  setSelectedMedia = _React$useState2[1];
42622
42662
  useTools({
42663
+ mainInformationWindowCodex: 'IDM_DETAIL_INFOS_TABLE_INFO',
42623
42664
  catalog: selectedCatalog,
42624
42665
  setSerie: setSelectedSerie,
42625
42666
  setArticle: setSelectedItem,
@@ -42776,7 +42817,11 @@ var TableDetailInfos = observer(function () {
42776
42817
  return /*#__PURE__*/jsxs(Fragment, {
42777
42818
  children: [/*#__PURE__*/jsx(Descriptions$1, {
42778
42819
  title: /*#__PURE__*/jsxs("div", {
42779
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos'), /*#__PURE__*/jsx(Space$1, {
42820
+ children: [/*#__PURE__*/jsxs(Space$1, {
42821
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos'), /*#__PURE__*/jsx(InformationButton, {
42822
+ codex: "IDM_DETAIL_INFOS_TABLE_INFO"
42823
+ })]
42824
+ }), /*#__PURE__*/jsx(Space$1, {
42780
42825
  style: {
42781
42826
  "float": 'right'
42782
42827
  },
@@ -43060,6 +43105,7 @@ var TablePartlists = observer(function () {
43060
43105
  selectedPartlist = _React$useState2[0],
43061
43106
  setSelectedPartlist = _React$useState2[1];
43062
43107
  useTools({
43108
+ mainInformationWindowCodex: 'IDM_PARTLISTS_TABLE_INFO',
43063
43109
  catalog: selectedCatalog,
43064
43110
  setSerie: setSelectedSerie,
43065
43111
  setArticle: setSelectedItem,
@@ -43162,7 +43208,11 @@ var TablePartlists = observer(function () {
43162
43208
  return /*#__PURE__*/jsxs(Fragment, {
43163
43209
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43164
43210
  title: /*#__PURE__*/jsxs("div", {
43165
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists'), /*#__PURE__*/jsx(Space$1, {
43211
+ children: [/*#__PURE__*/jsxs(Space$1, {
43212
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists'), /*#__PURE__*/jsx(InformationButton, {
43213
+ codex: "IDM_PARTLISTS_TABLE_INFO"
43214
+ })]
43215
+ }), /*#__PURE__*/jsx(Space$1, {
43166
43216
  style: {
43167
43217
  "float": 'right'
43168
43218
  },
@@ -43607,6 +43657,7 @@ var TablePriceFeatureGroups = observer(function () {
43607
43657
  return (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.setNodeDataValue(selectedNodeId, data);
43608
43658
  }, [selectedNodeId]);
43609
43659
  useTools({
43660
+ mainInformationWindowCodex: 'IDM_PRICE_FEATURE_GROUPS_TABLE_INFO',
43610
43661
  catalog: selectedCatalog,
43611
43662
  setSerie: setSelectedSerie,
43612
43663
  setArticle: setSelectedItem,
@@ -43770,7 +43821,11 @@ var TablePriceFeatureGroups = observer(function () {
43770
43821
  return /*#__PURE__*/jsxs(Fragment, {
43771
43822
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43772
43823
  title: /*#__PURE__*/jsxs("div", {
43773
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups'), /*#__PURE__*/jsx(Space$1, {
43824
+ children: [/*#__PURE__*/jsxs(Space$1, {
43825
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups'), /*#__PURE__*/jsx(InformationButton, {
43826
+ codex: "IDM_PRICE_FEATURE_GROUPS_TABLE_INFO"
43827
+ })]
43828
+ }), /*#__PURE__*/jsx(Space$1, {
43774
43829
  style: {
43775
43830
  "float": 'right'
43776
43831
  },
@@ -43905,7 +43960,11 @@ var TablePrices = observer(function () {
43905
43960
  return /*#__PURE__*/jsxs(Fragment, {
43906
43961
  children: [/*#__PURE__*/jsx(Descriptions$1, {
43907
43962
  title: /*#__PURE__*/jsxs("div", {
43908
- children: [t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices'), /*#__PURE__*/jsxs(Space$1, {
43963
+ children: [/*#__PURE__*/jsxs(Space$1, {
43964
+ children: [t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices'), /*#__PURE__*/jsx(InformationButton, {
43965
+ codex: "IDM_PRICES_TABLE_INFO"
43966
+ })]
43967
+ }), /*#__PURE__*/jsxs(Space$1, {
43909
43968
  style: {
43910
43969
  "float": 'right'
43911
43970
  },
@@ -44030,6 +44089,7 @@ var TableOptionGroups = observer(function () {
44030
44089
  selectedOptionGroup = _React$useState2[0],
44031
44090
  setSelectedOptionGroup = _React$useState2[1];
44032
44091
  useTools({
44092
+ mainInformationWindowCodex: 'IDM_OPTION_GROUPS_TABLE_INFO',
44033
44093
  catalog: selectedCatalog,
44034
44094
  setSerie: setSelectedSerie,
44035
44095
  setArticle: setSelectedItem,
@@ -44109,7 +44169,11 @@ var TableOptionGroups = observer(function () {
44109
44169
  return /*#__PURE__*/jsxs(Fragment, {
44110
44170
  children: [/*#__PURE__*/jsx(Descriptions$1, {
44111
44171
  title: /*#__PURE__*/jsxs("div", {
44112
- children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups'), /*#__PURE__*/jsx(Space$1, {
44172
+ children: [/*#__PURE__*/jsxs(Space$1, {
44173
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups'), /*#__PURE__*/jsx(InformationButton, {
44174
+ codex: "IDM_OPTION_GROUPS_TABLE_INFO"
44175
+ })]
44176
+ }), /*#__PURE__*/jsx(Space$1, {
44113
44177
  style: {
44114
44178
  "float": 'right'
44115
44179
  },