@crystaldesign/diva-backoffice 26.11.0-beta.1 → 26.11.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/esm/index.js +1189 -686
  2. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
  3. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
  4. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts +2 -0
  5. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts.map +1 -0
  6. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
  7. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts +3 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts +28 -0
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts.map +1 -0
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +2 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +15 -8
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts +5 -0
  24. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts +2 -1
  26. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  30. package/package.json +11 -10
  31. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
  32. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
@@ -127,7 +127,7 @@ import QuestionOutlined from '@ant-design/icons/QuestionOutlined';
127
127
  import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
128
128
  import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
129
129
  import Descriptions$1 from 'antd/es/descriptions';
130
- import { Spreadsheet as Spreadsheet$1, applyFilterToAddtionalColumn } from '@crystaldesign/spreadsheet';
130
+ import { Spreadsheet as Spreadsheet$1, applyFilterToAddtionalColumn, SelectAllOption } from '@crystaldesign/spreadsheet';
131
131
  import Modal$3 from 'antd/es/modal';
132
132
  import Spin$1 from 'antd/es/spin';
133
133
  import Flex from 'antd/es/flex';
@@ -149,8 +149,6 @@ import JSZip from 'jszip';
149
149
  import UploadOutlined$1 from '@ant-design/icons/lib/icons/UploadOutlined';
150
150
  import { GridError } from '@crystaldesign/spreadsheet/errors';
151
151
  import { MediaDetailCard } from '@crystaldesign/assetmanager';
152
- import Checkbox$3 from 'antd/es/checkbox';
153
- import InputNumber$1 from 'antd/es/input-number';
154
152
  import Select$1 from 'antd/es/select';
155
153
  import Form$3 from 'antd/es/form';
156
154
  import ArrowLeftOutlined from '@ant-design/icons/ArrowLeftOutlined';
@@ -203,8 +201,8 @@ import { GoogleGenAI } from '@google/genai';
203
201
  function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(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; } } }; }
204
202
  function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(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$H(r, a) : void 0; } }
205
203
  function _arrayLikeToArray$H(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; }
206
- function ownKeys$1Q(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; }
207
- function _objectSpread$1Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
204
+ function ownKeys$1S(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; }
205
+ function _objectSpread$1S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
208
206
  var LOG$q = getLogger('Backoffice', 'ApplyMapping');
209
207
  function applyMapping (_ref) {
210
208
  var mappable = _ref.mappable,
@@ -225,10 +223,10 @@ function applyMapping (_ref) {
225
223
  var newValue = {};
226
224
  newValue[newKey] = valueToAdd;
227
225
  if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
228
- if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1Q(_objectSpread$1Q({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
226
+ if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1S(_objectSpread$1S({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
229
227
  return startValue;
230
228
  }
231
- if (newIdx == 1) return _objectSpread$1Q(_objectSpread$1Q({}, startValue), newValue);
229
+ if (newIdx == 1) return _objectSpread$1S(_objectSpread$1S({}, startValue), newValue);
232
230
  return _getTarget(idx + 1, keys, startValue, newValue);
233
231
  };
234
232
  returnValue = _getTarget(0, key.split('.'), returnValue, value);
@@ -531,8 +529,8 @@ function getLeafColumns(columns) {
531
529
  });
532
530
  }
533
531
 
534
- function ownKeys$1P(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; }
535
- function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
532
+ function ownKeys$1R(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; }
533
+ function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
536
534
  var LOG$p = getLogger('Backoffice', 'ApiHandler');
537
535
  var jp = require('jsonpath');
538
536
  var _default$c = /*#__PURE__*/function () {
@@ -711,7 +709,7 @@ var _default$c = /*#__PURE__*/function () {
711
709
  _context2.next = 20;
712
710
  return fetch(finalUrl, {
713
711
  method: this._updateMethod,
714
- headers: _objectSpread$1P(_objectSpread$1P({}, jwt ? {
712
+ headers: _objectSpread$1R(_objectSpread$1R({}, jwt ? {
715
713
  Authorization: 'Bearer ' + jwt
716
714
  } : {}), {}, {
717
715
  'Content-Type': 'application/json'
@@ -804,7 +802,7 @@ var _default$c = /*#__PURE__*/function () {
804
802
  rootStore: this._rootStore,
805
803
  fallBackToParams: true
806
804
  });
807
- if (data) createData = _objectSpread$1P({}, data);
805
+ if (data) createData = _objectSpread$1R({}, data);
808
806
  } else if (data !== undefined) {
809
807
  createData = applyMapping({
810
808
  mappable: data,
@@ -1066,7 +1064,7 @@ var _default$c = /*#__PURE__*/function () {
1066
1064
  throw new Error('Read List endpoint is missing in configuration.');
1067
1065
  case 2:
1068
1066
  jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
1069
- url = filterServerSide ? parseServersideFilters(_objectSpread$1P(_objectSpread$1P({}, filterServerSide), {}, {
1067
+ url = filterServerSide ? parseServersideFilters(_objectSpread$1R(_objectSpread$1R({}, filterServerSide), {}, {
1070
1068
  columns: this._filterFields ? filterServerSide.columns : undefined,
1071
1069
  baseUrl: this._readListUrl,
1072
1070
  prefilter: prefilter
@@ -1086,7 +1084,7 @@ var _default$c = /*#__PURE__*/function () {
1086
1084
  });
1087
1085
  case 6:
1088
1086
  response = _context8.sent;
1089
- return _context8.abrupt("return", _objectSpread$1P(_objectSpread$1P({}, response), {}, {
1087
+ return _context8.abrupt("return", _objectSpread$1R(_objectSpread$1R({}, response), {}, {
1090
1088
  data: response.data.map(function (d) {
1091
1089
  return _this2.aplyJsonPath(d, _this2._readJsonPath);
1092
1090
  })
@@ -1110,7 +1108,7 @@ var _default$c = /*#__PURE__*/function () {
1110
1108
  throw new Error('Read List endpoint is missing in configuration.');
1111
1109
  }
1112
1110
  (_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
1113
- var url = filterServerSide ? parseServersideFilters(_objectSpread$1P(_objectSpread$1P({}, filterServerSide), {}, {
1111
+ var url = filterServerSide ? parseServersideFilters(_objectSpread$1R(_objectSpread$1R({}, filterServerSide), {}, {
1114
1112
  columns: this._filterFields ? filterServerSide.columns : undefined,
1115
1113
  baseUrl: this._readListUrl,
1116
1114
  prefilter: prefilter
@@ -2025,8 +2023,8 @@ function buildContentTranslationItems(content, t) {
2025
2023
  return translationItems;
2026
2024
  }
2027
2025
 
2028
- function ownKeys$1O(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; }
2029
- function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2026
+ function ownKeys$1Q(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; }
2027
+ function _objectSpread$1Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2030
2028
  var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
2031
2029
  return o.apiValue;
2032
2030
  });
@@ -2067,7 +2065,7 @@ var _default$7 = /*#__PURE__*/function () {
2067
2065
  var _i$permission;
2068
2066
  return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
2069
2067
  });
2070
- config = _objectSpread$1O(_objectSpread$1O({}, config), {}, {
2068
+ config = _objectSpread$1Q(_objectSpread$1Q({}, config), {}, {
2071
2069
  items: filteredItems
2072
2070
  });
2073
2071
  }
@@ -14855,8 +14853,8 @@ var navMinified = "nav-minified-tSt-a";
14855
14853
  var navOverlay = "nav-overlay-rKJNC";
14856
14854
  var navSettings = "nav-settings-82cjv";
14857
14855
  var menuLabel = "menu-label-4dXQk";
14858
- var css_248z$X = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
14859
- styleInject(css_248z$X);
14856
+ var css_248z$W = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
14857
+ styleInject(css_248z$W);
14860
14858
 
14861
14859
  function MenuLabel (_ref) {
14862
14860
  var disabled = _ref.disabled,
@@ -15098,8 +15096,8 @@ function getIcon(icon) {
15098
15096
  return undefined;
15099
15097
  }
15100
15098
 
15101
- function ownKeys$1N(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; }
15102
- function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15099
+ function ownKeys$1P(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; }
15100
+ function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15103
15101
  /**
15104
15102
  * Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
15105
15103
  * Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
@@ -15145,7 +15143,7 @@ function readToolPreferences(toolId) {
15145
15143
  /** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
15146
15144
  function updateToolPreferences(toolId, patch) {
15147
15145
  try {
15148
- localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1N(_objectSpread$1N({}, readToolPreferences(toolId)), patch)));
15146
+ localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1P(_objectSpread$1P({}, readToolPreferences(toolId)), patch)));
15149
15147
  } catch (_unused2) {
15150
15148
  // storage unavailable / quota exceeded
15151
15149
  }
@@ -15751,8 +15749,8 @@ var ToolBarStore = /*#__PURE__*/function () {
15751
15749
  }]);
15752
15750
  }();
15753
15751
 
15754
- function ownKeys$1M(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; }
15755
- function _objectSpread$1M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15752
+ function ownKeys$1O(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; }
15753
+ function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15756
15754
  function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(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; } } }; }
15757
15755
  function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(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$F(r, a) : void 0; } }
15758
15756
  function _arrayLikeToArray$F(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; }
@@ -15898,7 +15896,7 @@ var _default$6 = /*#__PURE__*/function () {
15898
15896
  if (index >= 0) {
15899
15897
  this._additionalMenuElements[index] = {
15900
15898
  key: key,
15901
- element: _objectSpread$1M(_objectSpread$1M({}, this._additionalMenuElements[index].element), {}, {
15899
+ element: _objectSpread$1O(_objectSpread$1O({}, this._additionalMenuElements[index].element), {}, {
15902
15900
  items: items,
15903
15901
  selected: selected
15904
15902
  })
@@ -15971,7 +15969,7 @@ var _default$6 = /*#__PURE__*/function () {
15971
15969
  var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
15972
15970
  this.root.navigate('/' + path);
15973
15971
  }
15974
- this._menuElement1 = _objectSpread$1M(_objectSpread$1M({}, this.menuElement1), {}, {
15972
+ this._menuElement1 = _objectSpread$1O(_objectSpread$1O({}, this.menuElement1), {}, {
15975
15973
  selected: this._selectedMenuKeys[0]
15976
15974
  });
15977
15975
  var menu2 = (_this$_menu$find = this._menu.find(function (element) {
@@ -16247,7 +16245,7 @@ var _default$6 = /*#__PURE__*/function () {
16247
16245
  }
16248
16246
  return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
16249
16247
  }).map(function (item) {
16250
- return _objectSpread$1M(_objectSpread$1M({}, item), {}, {
16248
+ return _objectSpread$1O(_objectSpread$1O({}, item), {}, {
16251
16249
  items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
16252
16250
  subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
16253
16251
  });
@@ -17646,8 +17644,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
17646
17644
  return _createClass(_default);
17647
17645
  }(_default$c);
17648
17646
 
17649
- function ownKeys$1L(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; }
17650
- function _objectSpread$1L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17647
+ function ownKeys$1N(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; }
17648
+ function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17651
17649
  var LOG$n = getLogger('Backoffice', 'ContextStore');
17652
17650
 
17653
17651
  /**
@@ -17682,7 +17680,7 @@ var ContextStore = /*#__PURE__*/function () {
17682
17680
  key: "updateContext",
17683
17681
  value: function updateContext(contextId, updates) {
17684
17682
  var currentState = this.contexts.get(contextId) || {};
17685
- var updatedState = _objectSpread$1L(_objectSpread$1L({}, currentState), updates);
17683
+ var updatedState = _objectSpread$1N(_objectSpread$1N({}, currentState), updates);
17686
17684
  this.contexts.set(contextId, updatedState);
17687
17685
  LOG$n.debug("Updated context ".concat(contextId), {
17688
17686
  updatedState: updatedState
@@ -17920,8 +17918,8 @@ function removeEmpty(data) {
17920
17918
  return undefined;
17921
17919
  }
17922
17920
 
17923
- function ownKeys$1K(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; }
17924
- function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17921
+ function ownKeys$1M(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; }
17922
+ function _objectSpread$1M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17925
17923
  function fetchFileData(_x) {
17926
17924
  return _fetchFileData.apply(this, arguments);
17927
17925
  }
@@ -18081,7 +18079,7 @@ function _uploadMediaItem() {
18081
18079
  _context4.next = 4;
18082
18080
  return fetch("".concat(root, "/v1/assets/uploads"), {
18083
18081
  method: 'POST',
18084
- headers: _objectSpread$1K({
18082
+ headers: _objectSpread$1M({
18085
18083
  'Content-Type': 'application/json'
18086
18084
  }, auth),
18087
18085
  body: JSON.stringify({
@@ -18147,7 +18145,7 @@ function _uploadMediaItem() {
18147
18145
  _context4.next = 31;
18148
18146
  return fetch("".concat(root, "/v1/assets/uploads/complete"), {
18149
18147
  method: 'POST',
18150
- headers: _objectSpread$1K({
18148
+ headers: _objectSpread$1M({
18151
18149
  'Content-Type': 'application/json'
18152
18150
  }, auth),
18153
18151
  body: JSON.stringify({
@@ -18192,7 +18190,7 @@ function _uploadMediaItem() {
18192
18190
  refUrl = (_ref$url = ref.url) !== null && _ref$url !== void 0 ? _ref$url : ref.cdnUrl;
18193
18191
  return _context4.abrupt("return", {
18194
18192
  _id: mediaItem._id,
18195
- ref: _objectSpread$1K(_objectSpread$1K({}, ref), {}, {
18193
+ ref: _objectSpread$1M(_objectSpread$1M({}, ref), {}, {
18196
18194
  _id: ref._id,
18197
18195
  url: refUrl
18198
18196
  })
@@ -18640,8 +18638,8 @@ function getData$1(id, data) {
18640
18638
  function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(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; } } }; }
18641
18639
  function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(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$C(r, a) : void 0; } }
18642
18640
  function _arrayLikeToArray$C(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; }
18643
- function ownKeys$1J(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; }
18644
- function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18641
+ function ownKeys$1L(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; }
18642
+ function _objectSpread$1L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18645
18643
  function toNamePath$2(name) {
18646
18644
  if (name === undefined || name === '') return [];
18647
18645
  return Array.isArray(name) ? name : [name];
@@ -18711,7 +18709,7 @@ function useFormData (_ref) {
18711
18709
  var _useMemo = useMemo(function () {
18712
18710
  setCanSave === null || setCanSave === void 0 || setCanSave(true);
18713
18711
  var baseConfiguration = configurationOverride !== null && configurationOverride !== void 0 ? configurationOverride : root.configurationStore.getConfiguration(id, 'Form');
18714
- var configuration = _objectSpread$1J(_objectSpread$1J({}, baseConfiguration), {}, {
18712
+ var configuration = _objectSpread$1L(_objectSpread$1L({}, baseConfiguration), {}, {
18715
18713
  apiInterface: apiInterface !== null && apiInterface !== void 0 ? apiInterface : baseConfiguration.apiInterface
18716
18714
  });
18717
18715
  var c = {
@@ -18811,7 +18809,7 @@ function useFormData (_ref) {
18811
18809
  multipleEditingData = inboundData;
18812
18810
  }
18813
18811
  return {
18814
- loadedData: _onLoadFields(_objectSpread$1J({}, dt)),
18812
+ loadedData: _onLoadFields(_objectSpread$1L({}, dt)),
18815
18813
  multipleEditingData: multipleEditingData
18816
18814
  };
18817
18815
  }, [inboundData]),
@@ -18838,7 +18836,7 @@ function useFormData (_ref) {
18838
18836
  setFieldErrors = _useState20[1];
18839
18837
  useEffect(function () {
18840
18838
  var _loadedData$_id2;
18841
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
18839
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
18842
18840
  data: loadedData,
18843
18841
  origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
18844
18842
  update: !!((_loadedData$_id2 = loadedData === null || loadedData === void 0 ? void 0 : loadedData._id) !== null && _loadedData$_id2 !== void 0 ? _loadedData$_id2 : loadedData === null || loadedData === void 0 ? void 0 : loadedData.ID),
@@ -18951,7 +18949,7 @@ function useFormData (_ref) {
18951
18949
  root.actions.toggleLoading('saving_form');
18952
18950
  _context2.prev = 4;
18953
18951
  _context2.next = 7;
18954
- return setDynamicFields(_objectSpread$1J({}, state.data), newData);
18952
+ return setDynamicFields(_objectSpread$1L({}, state.data), newData);
18955
18953
  case 7:
18956
18954
  newData = _context2.sent;
18957
18955
  _context2.next = 10;
@@ -18966,7 +18964,7 @@ function useFormData (_ref) {
18966
18964
  root.actions.toggleLoading('saving_form');
18967
18965
  throw _context2.t0;
18968
18966
  case 17:
18969
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
18967
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
18970
18968
  loading: true
18971
18969
  }));
18972
18970
  finalData = state.data;
@@ -19019,14 +19017,14 @@ function useFormData (_ref) {
19019
19017
  _context2.next = 47;
19020
19018
  break;
19021
19019
  }
19022
- setFieldErrors(_objectSpread$1J(_objectSpread$1J({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
19020
+ setFieldErrors(_objectSpread$1L(_objectSpread$1L({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
19023
19021
  return _context2.abrupt("return", undefined);
19024
19022
  case 47:
19025
19023
  throw _context2.t1;
19026
19024
  case 48:
19027
19025
  _context2.prev = 48;
19028
19026
  root.actions.toggleLoading('saving_form');
19029
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19027
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19030
19028
  data: finalData,
19031
19029
  loading: false
19032
19030
  }));
@@ -19082,11 +19080,11 @@ function useFormData (_ref) {
19082
19080
  var data = d !== null && d !== void 0 ? d : mergeWith(cloneDeep(state.data), formValues, mergeFormWithCustomizer);
19083
19081
  if (id) {
19084
19082
  setFieldInObject(id, data, value);
19085
- var newFieldErrors = _objectSpread$1J({}, fieldErrors);
19083
+ var newFieldErrors = _objectSpread$1L({}, fieldErrors);
19086
19084
  delete newFieldErrors[id.toString()];
19087
19085
  setFieldErrors(newFieldErrors);
19088
19086
  }
19089
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19087
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19090
19088
  data: data
19091
19089
  }));
19092
19090
  return data;
@@ -19142,10 +19140,10 @@ function useFormData (_ref) {
19142
19140
  } else {
19143
19141
  data[name] = val;
19144
19142
  }
19145
- if (configuration.itemSelectorReset) setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19143
+ if (configuration.itemSelectorReset) setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19146
19144
  data: data
19147
- }));else setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19148
- data: _objectSpread$1J(_objectSpread$1J({}, state.data), data)
19145
+ }));else setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19146
+ data: _objectSpread$1L(_objectSpread$1L({}, state.data), data)
19149
19147
  }));
19150
19148
  if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
19151
19149
  setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
@@ -19178,12 +19176,12 @@ function useFormData (_ref) {
19178
19176
  var val = _ref6.value;
19179
19177
  if (value === val) {
19180
19178
  if (configuration.itemSelectorReset) {
19181
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19179
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19182
19180
  data: _defineProperty({}, name, val)
19183
19181
  }));
19184
19182
  } else {
19185
- setState(_objectSpread$1J(_objectSpread$1J({}, state), {}, {
19186
- data: _objectSpread$1J(_objectSpread$1J({}, state.data), {}, _defineProperty({}, name, val))
19183
+ setState(_objectSpread$1L(_objectSpread$1L({}, state), {}, {
19184
+ data: _objectSpread$1L(_objectSpread$1L({}, state.data), {}, _defineProperty({}, name, val))
19187
19185
  }));
19188
19186
  }
19189
19187
  setSelectedItemsIndex([selectedItemsIndex[0], idx]);
@@ -19358,7 +19356,7 @@ function useFormData (_ref) {
19358
19356
  for (var i = 0; i < configuration.tools.length; i++) {
19359
19357
  var _tool$defaultOpen;
19360
19358
  var tool = configuration.tools[i];
19361
- tools.push(_objectSpread$1J(_objectSpread$1J({}, tool), {}, {
19359
+ tools.push(_objectSpread$1L(_objectSpread$1L({}, tool), {}, {
19362
19360
  parameters: {
19363
19361
  data: state.data,
19364
19362
  formInstance: form,
@@ -19511,7 +19509,7 @@ function useFormData (_ref) {
19511
19509
  }
19512
19510
  });
19513
19511
  }
19514
- return _objectSpread$1J(_objectSpread$1J({}, state), {}, {
19512
+ return _objectSpread$1L(_objectSpread$1L({}, state), {}, {
19515
19513
  getIsHidden: getIsHidden,
19516
19514
  setUsedPreset: setUsedPreset,
19517
19515
  configuration: configuration,
@@ -19629,8 +19627,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
19629
19627
  };
19630
19628
 
19631
19629
  var _excluded$c = ["key", "name"];
19632
- function ownKeys$1I(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; }
19633
- function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19630
+ function ownKeys$1K(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; }
19631
+ function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19634
19632
  var FormList$2 = function FormList(_ref) {
19635
19633
  var value = _ref.value,
19636
19634
  item = _ref.item,
@@ -19695,7 +19693,7 @@ var FormList$2 = function FormList(_ref) {
19695
19693
  var n = [name].concat(_toConsumableArray(Array.isArray(i.name) ? i.name : [i.name]), _toConsumableArray(i.doTranslate && postFixName ? Array.isArray(postFixName) ? postFixName : [postFixName] : []));
19696
19694
  var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
19697
19695
  var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
19698
- return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1I(_objectSpread$1I({}, restField), {}, {
19696
+ return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1K(_objectSpread$1K({}, restField), {}, {
19699
19697
  id: n.join(),
19700
19698
  key: n.join(),
19701
19699
  name: n,
@@ -19707,7 +19705,7 @@ var FormList$2 = function FormList(_ref) {
19707
19705
  validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
19708
19706
  help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
19709
19707
  hidden: hidden
19710
- }), getElement(_objectSpread$1I(_objectSpread$1I({}, i), {}, {
19708
+ }), getElement(_objectSpread$1K(_objectSpread$1K({}, i), {}, {
19711
19709
  name: n
19712
19710
  }), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
19713
19711
  })
@@ -19873,8 +19871,8 @@ var Result = function Result(_ref) {
19873
19871
 
19874
19872
  var success = "success-tRJ7j";
19875
19873
  var error = "error-MtAFB";
19876
- var css_248z$W = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
19877
- styleInject(css_248z$W);
19874
+ var css_248z$V = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
19875
+ styleInject(css_248z$V);
19878
19876
 
19879
19877
  var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
19880
19878
 
@@ -19938,11 +19936,11 @@ var CustomButton$1 = observer(CustomButton);
19938
19936
 
19939
19937
  var wrapper$7 = "wrapper-GVe2h";
19940
19938
  var buttonGroup = "button-group-GYt-T";
19941
- var css_248z$V = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
19942
- styleInject(css_248z$V);
19939
+ var css_248z$U = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
19940
+ styleInject(css_248z$U);
19943
19941
 
19944
- function ownKeys$1H(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; }
19945
- function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19942
+ function ownKeys$1J(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; }
19943
+ function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19946
19944
  var SubTitle = function SubTitle(_ref) {
19947
19945
  var _item$label, _item$orientation, _item$buttonIds;
19948
19946
  var item = _ref.item,
@@ -19952,7 +19950,7 @@ var SubTitle = function SubTitle(_ref) {
19952
19950
  var title = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : Array.isArray(item.name) ? item.name[0].toString() : item.name;
19953
19951
  return /*#__PURE__*/jsx(Divider, {
19954
19952
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
19955
- style: _objectSpread$1H({}, item.style),
19953
+ style: _objectSpread$1J({}, item.style),
19956
19954
  children: /*#__PURE__*/jsxs("div", {
19957
19955
  className: wrapper$7,
19958
19956
  children: [t(title, title), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
@@ -20242,12 +20240,12 @@ function parseReturnData(options, selectMapping) {
20242
20240
  }
20243
20241
 
20244
20242
  var wrapper$6 = "wrapper-4xyke";
20245
- var css_248z$U = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
20246
- styleInject(css_248z$U);
20243
+ var css_248z$T = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
20244
+ styleInject(css_248z$T);
20247
20245
 
20248
20246
  var _excluded$b = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
20249
- function ownKeys$1G(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; }
20250
- function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20247
+ function ownKeys$1I(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; }
20248
+ function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20251
20249
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
20252
20250
  var apiInterface = _ref.apiInterface,
20253
20251
  selectMapping = _ref.selectMapping,
@@ -20274,7 +20272,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
20274
20272
  return /*#__PURE__*/jsxs("div", {
20275
20273
  ref: ref,
20276
20274
  className: classNames(title ? wrapper$6 : undefined),
20277
- children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1G(_objectSpread$1G({}, selectProps), {}, {
20275
+ children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1I(_objectSpread$1I({}, selectProps), {}, {
20278
20276
  showSearch: search,
20279
20277
  loading: state.loading,
20280
20278
  options: state.options,
@@ -20891,8 +20889,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
20891
20889
  }]);
20892
20890
  }(_default$c);
20893
20891
 
20894
- function ownKeys$1F(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; }
20895
- function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20892
+ function ownKeys$1H(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; }
20893
+ function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20896
20894
  getLogger('Backoffice', 'SelectClientRelationCatalog');
20897
20895
  function useSelectClientRelationCatalog (_ref) {
20898
20896
  var onSelectedCatalog = _ref.onSelectedCatalog,
@@ -21061,7 +21059,7 @@ function useSelectClientRelationCatalog (_ref) {
21061
21059
  case 22:
21062
21060
  supplierData = _context2.sent;
21063
21061
  case 23:
21064
- onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1F(_objectSpread$1F({}, _selectedSupplier), {}, {
21062
+ onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1H(_objectSpread$1H({}, _selectedSupplier), {}, {
21065
21063
  supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
21066
21064
  }), supplierData);
21067
21065
  if (catalogId && catalogList.find(function (c) {
@@ -21129,8 +21127,8 @@ var customSelectContentWrapper = "custom-select-content-wrapper-v98Ms";
21129
21127
  var customSelectOptionContent = "custom-select-option-content-LIbzl";
21130
21128
  var customSelectAvatar = "custom-select-avatar-DPCn1";
21131
21129
  var customSelectOptionText = "custom-select-option-text-crPF-";
21132
- var css_248z$T = ".custom-select-container-rPcLx {\n display: flex;\n gap: 8px;\n height: 32px;\n}\n\n.custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-content-wrapper-v98Ms {\n display: flex;\n align-items: center;\n height: 22px;\n}\n\n.custom-select-option-content-LIbzl {\n display: flex;\n align-items: center;\n gap: 8px;\n max-width: 100%;\n height: 100%;\n}\n\n.custom-select-option-content-LIbzl .custom-select-avatar-DPCn1 {\n flex-shrink: 0;\n}\n\n.custom-select-option-content-LIbzl .custom-select-option-text-crPF- {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
21133
- styleInject(css_248z$T);
21130
+ var css_248z$S = ".custom-select-container-rPcLx {\n display: flex;\n gap: 8px;\n height: 32px;\n}\n\n.custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-content-wrapper-v98Ms {\n display: flex;\n align-items: center;\n height: 22px;\n}\n\n.custom-select-option-content-LIbzl {\n display: flex;\n align-items: center;\n gap: 8px;\n max-width: 100%;\n height: 100%;\n}\n\n.custom-select-option-content-LIbzl .custom-select-avatar-DPCn1 {\n flex-shrink: 0;\n}\n\n.custom-select-option-content-LIbzl .custom-select-option-text-crPF- {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
21131
+ styleInject(css_248z$S);
21134
21132
 
21135
21133
  var Selector$1 = function Selector(_ref) {
21136
21134
  var items = _ref.items,
@@ -21294,8 +21292,8 @@ function SelectClientRelationCatalog (_ref) {
21294
21292
  function _createForOfIteratorHelper$A(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$A(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; } } }; }
21295
21293
  function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(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$A(r, a) : void 0; } }
21296
21294
  function _arrayLikeToArray$A(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; }
21297
- function ownKeys$1E(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; }
21298
- function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21295
+ function ownKeys$1G(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; }
21296
+ function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21299
21297
  function useSelectData (_ref) {
21300
21298
  var data = _ref.data,
21301
21299
  onChange = _ref.onChange,
@@ -21767,7 +21765,7 @@ function useSelectData (_ref) {
21767
21765
  setFetching(true);
21768
21766
  serverSideParams = {
21769
21767
  filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? (_selectMapping$search = selectMapping.searchField) === null || _selectMapping$search === void 0 ? void 0 : _selectMapping$search.reduce(function (filter, field) {
21770
- return _objectSpread$1E(_objectSpread$1E({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
21768
+ return _objectSpread$1G(_objectSpread$1G({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
21771
21769
  }, {}) : {
21772
21770
  _id: [value, 'contains']
21773
21771
  },
@@ -22073,8 +22071,8 @@ function useSelectData (_ref) {
22073
22071
 
22074
22072
  var selectWithCopy = "select-with-copy-r6iEI";
22075
22073
  var selectGrow = "select-grow-Zr2r9";
22076
- var css_248z$S = ".select-with-copy-r6iEI {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n\n.select-with-copy-r6iEI > .select-grow-Zr2r9 {\n flex: 1;\n min-width: 0;\n}\n\n.darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
22077
- styleInject(css_248z$S);
22074
+ var css_248z$R = ".select-with-copy-r6iEI {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n\n.select-with-copy-r6iEI > .select-grow-Zr2r9 {\n flex: 1;\n min-width: 0;\n}\n\n.darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
22075
+ styleInject(css_248z$R);
22078
22076
 
22079
22077
  function selectedToClipboardText(selected) {
22080
22078
  if (!(selected !== null && selected !== void 0 && selected.length)) return '';
@@ -22241,11 +22239,11 @@ var Selector = observer(SelectWrapper);
22241
22239
  var wrapper$5 = "wrapper-WStAk";
22242
22240
  var headerWrapper = "header-wrapper-gWQuH";
22243
22241
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
22244
- var css_248z$R = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
22245
- styleInject(css_248z$R);
22242
+ var css_248z$Q = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
22243
+ styleInject(css_248z$Q);
22246
22244
 
22247
- function ownKeys$1D(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; }
22248
- function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22245
+ function ownKeys$1F(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; }
22246
+ function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22249
22247
  var LOG$k = getLogger('Backoffice', 'Translation Form');
22250
22248
  function useTranslationHook (item, state) {
22251
22249
  var root = useStore();
@@ -22378,7 +22376,7 @@ function useTranslationHook (item, state) {
22378
22376
  case 0:
22379
22377
  _context2.next = 2;
22380
22378
  return apiHandler.create({
22381
- locales: _objectSpread$1D({
22379
+ locales: _objectSpread$1F({
22382
22380
  de: {},
22383
22381
  it: {},
22384
22382
  fr: {},
@@ -22427,8 +22425,8 @@ function useTranslationHook (item, state) {
22427
22425
  };
22428
22426
  }
22429
22427
 
22430
- function ownKeys$1C(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; }
22431
- function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22428
+ function ownKeys$1E(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; }
22429
+ function _objectSpread$1E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22432
22430
  var HiddenFormField = function HiddenFormField() {
22433
22431
  return null;
22434
22432
  };
@@ -22494,7 +22492,7 @@ var Translation = function Translation(_ref) {
22494
22492
  }, key);
22495
22493
  }
22496
22494
  return /*#__PURE__*/jsx(React.Fragment, {
22497
- children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1C(_objectSpread$1C({}, i), {}, {
22495
+ children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1E(_objectSpread$1E({}, i), {}, {
22498
22496
  name: n
22499
22497
  }), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang, newFormName) : /*#__PURE__*/jsx(Form$2.Item, {
22500
22498
  id: idx.toString(),
@@ -22507,7 +22505,7 @@ var Translation = function Translation(_ref) {
22507
22505
  validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
22508
22506
  help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
22509
22507
  hidden: hidden,
22510
- children: getElement(_objectSpread$1C(_objectSpread$1C({}, i), {}, {
22508
+ children: getElement(_objectSpread$1E(_objectSpread$1E({}, i), {}, {
22511
22509
  name: n
22512
22510
  }), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
22513
22511
  })
@@ -22863,8 +22861,8 @@ var Text$9 = observer(Text$8);
22863
22861
 
22864
22862
  var root$e = "root-Eiuo1";
22865
22863
  var popoverContent = "popoverContent-uExP4";
22866
- var css_248z$Q = ".root-Eiuo1 {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.popoverContent-uExP4 {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 140px;\n}\n";
22867
- styleInject(css_248z$Q);
22864
+ var css_248z$P = ".root-Eiuo1 {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.popoverContent-uExP4 {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 140px;\n}\n";
22865
+ styleInject(css_248z$P);
22868
22866
 
22869
22867
  var CustomColorPicker = function CustomColorPicker(_ref) {
22870
22868
  var item = _ref.item,
@@ -22994,8 +22992,8 @@ function deltaFromColors(mainHex, valueHex) {
22994
22992
  return avg;
22995
22993
  }
22996
22994
 
22997
- function ownKeys$1B(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; }
22998
- function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22995
+ function ownKeys$1D(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; }
22996
+ function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22999
22997
  function FormSlider(_ref) {
23000
22998
  var item = _ref.item,
23001
22999
  disabled = _ref.disabled,
@@ -23029,7 +23027,7 @@ function FormSlider(_ref) {
23029
23027
  children: t('backoffice.form.slider.apiDefaultHint', {
23030
23028
  defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
23031
23029
  })
23032
- }) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1B(_objectSpread$1B({
23030
+ }) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1D(_objectSpread$1D({
23033
23031
  min: item.min,
23034
23032
  max: item.max,
23035
23033
  step: item.step
@@ -23060,8 +23058,8 @@ function FormSlider(_ref) {
23060
23058
  function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(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; } } }; }
23061
23059
  function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(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$z(r, a) : void 0; } }
23062
23060
  function _arrayLikeToArray$z(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; }
23063
- function ownKeys$1A(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; }
23064
- function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23061
+ function ownKeys$1C(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; }
23062
+ function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23065
23063
  function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
23066
23064
  var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
23067
23065
  if (hidden) return /*#__PURE__*/jsx(Fragment, {});
@@ -23098,7 +23096,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23098
23096
  }
23099
23097
  });
23100
23098
  case 'selectSimple':
23101
- return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1A(_objectSpread$1A({}, item), {}, {
23099
+ return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1C(_objectSpread$1C({}, item), {}, {
23102
23100
  disabled: disabled,
23103
23101
  onChange: function onChange(value) {
23104
23102
  _onChange(absoluteName, value);
@@ -23344,7 +23342,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23344
23342
  value: item.value,
23345
23343
  options: item.options.map(function (o) {
23346
23344
  var _o$disabled;
23347
- return _objectSpread$1A(_objectSpread$1A({}, o), {}, {
23345
+ return _objectSpread$1C(_objectSpread$1C({}, o), {}, {
23348
23346
  disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
23349
23347
  });
23350
23348
  }),
@@ -23365,7 +23363,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23365
23363
  },
23366
23364
  icon: item.icon,
23367
23365
  callback: function callback(data) {
23368
- return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1A(_objectSpread$1A({}, state.data), data));
23366
+ return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1C(_objectSpread$1C({}, state.data), data));
23369
23367
  }
23370
23368
  });
23371
23369
  case 'media':
@@ -23403,7 +23401,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23403
23401
  var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
23404
23402
  var _useTranslation = useTranslation(),
23405
23403
  t = _useTranslation.t;
23406
- return /*#__PURE__*/jsx(Input$1, _objectSpread$1A(_objectSpread$1A({}, props), {}, {
23404
+ return /*#__PURE__*/jsx(Input$1, _objectSpread$1C(_objectSpread$1C({}, props), {}, {
23407
23405
  ref: ref,
23408
23406
  disabled: true,
23409
23407
  value: t(props.translationPrefix + '.' + props.value)
@@ -23422,8 +23420,8 @@ function isReadonly(item, data) {
23422
23420
  return false;
23423
23421
  }
23424
23422
 
23425
- function ownKeys$1z(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; }
23426
- function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23423
+ function ownKeys$1B(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; }
23424
+ function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23427
23425
  function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(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; } } }; }
23428
23426
  function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(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$y(r, a) : void 0; } }
23429
23427
  function _arrayLikeToArray$y(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; }
@@ -23473,13 +23471,13 @@ var Presets = function Presets(_ref) {
23473
23471
  } finally {
23474
23472
  _iterator.f();
23475
23473
  }
23476
- var data = _objectSpread$1z(_objectSpread$1z({}, form.getFieldsValue(names)), {}, {
23474
+ var data = _objectSpread$1B(_objectSpread$1B({}, form.getFieldsValue(names)), {}, {
23477
23475
  newPresetName: newPresetName
23478
23476
  });
23479
23477
  data.dpi = parseInt(data.dpi);
23480
23478
  data.organization = root.getGlobalValue('organizationId');
23481
23479
  apiHandler.create({}, state.configuration.createPresetMapping, data);
23482
- var dt = _objectSpread$1z(_objectSpread$1z({}, form.getFieldsValue(names)), {}, {
23480
+ var dt = _objectSpread$1B(_objectSpread$1B({}, form.getFieldsValue(names)), {}, {
23483
23481
  name: newPresetName
23484
23482
  });
23485
23483
  setPresets({
@@ -23613,8 +23611,8 @@ function ModalProgressBar(_ref) {
23613
23611
  });
23614
23612
  }
23615
23613
 
23616
- function ownKeys$1y(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; }
23617
- function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23614
+ function ownKeys$1A(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; }
23615
+ function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23618
23616
  function ItemSelector(_ref) {
23619
23617
  var state = _ref.state,
23620
23618
  setCanSave = _ref.setCanSave,
@@ -23631,7 +23629,7 @@ function ItemSelector(_ref) {
23631
23629
  rules: state.getRules(itemSelector, state.data),
23632
23630
  label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
23633
23631
  valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
23634
- children: getElement(_objectSpread$1y(_objectSpread$1y({}, itemSelector), {}, {
23632
+ children: getElement(_objectSpread$1A(_objectSpread$1A({}, itemSelector), {}, {
23635
23633
  value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
23636
23634
  }), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
23637
23635
  }, itemSelector.name.toString());
@@ -24017,8 +24015,8 @@ function getLabel(item, t) {
24017
24015
  }
24018
24016
  var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
24019
24017
 
24020
- function ownKeys$1x(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; }
24021
- function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24018
+ function ownKeys$1z(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; }
24019
+ function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24022
24020
  function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(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; } } }; }
24023
24021
  function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(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$x(r, a) : void 0; } }
24024
24022
  function _arrayLikeToArray$x(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; }
@@ -24220,7 +24218,7 @@ function useRoleSelectorData (_ref) {
24220
24218
  roles.forEach(function (r) {
24221
24219
  //check if after the changes the role is selected
24222
24220
  if (value.includes(r._id)) {
24223
- var newValue = _objectSpread$1x(_objectSpread$1x({}, r), {}, {
24221
+ var newValue = _objectSpread$1z(_objectSpread$1z({}, r), {}, {
24224
24222
  selected: true
24225
24223
  });
24226
24224
  //add it to the new list as selected role
@@ -24256,7 +24254,7 @@ function useRoleSelectorData (_ref) {
24256
24254
  }
24257
24255
  }
24258
24256
  } else {
24259
- var _newValue = _objectSpread$1x(_objectSpread$1x({}, r), {}, {
24257
+ var _newValue = _objectSpread$1z(_objectSpread$1z({}, r), {}, {
24260
24258
  selected: false
24261
24259
  });
24262
24260
  //add it to the new list as unselected role
@@ -24460,7 +24458,7 @@ function _updateRoles() {
24460
24458
  userRole = userRoles.find(function (r) {
24461
24459
  return r._id == role._id;
24462
24460
  });
24463
- newRole = _objectSpread$1x({}, role);
24461
+ newRole = _objectSpread$1z({}, role);
24464
24462
  if (userRole) {
24465
24463
  newRole.selected = true;
24466
24464
  newRole.inherited = userRole.inherited;
@@ -24680,7 +24678,7 @@ function _fetchOptions() {
24680
24678
  case 4:
24681
24679
  result = _context11.sent;
24682
24680
  options = result.data.map(function (d) {
24683
- return _objectSpread$1x(_objectSpread$1x({}, d), {}, {
24681
+ return _objectSpread$1z(_objectSpread$1z({}, d), {}, {
24684
24682
  label: d.displayName,
24685
24683
  value: d._id,
24686
24684
  isLeaf: !d.hasChildren
@@ -24776,16 +24774,16 @@ var select$3 = "select-lzft-";
24776
24774
  var loadingOption = "loadingOption-qCkRw";
24777
24775
  var scroller = "scroller-lrdk9";
24778
24776
  var skeleton = "skeleton--xCI0";
24779
- var filterField = "filterField-1kU1O";
24777
+ var filterField$1 = "filterField-1kU1O";
24780
24778
  var parentScroll = "parent-scroll-GmaL9";
24781
24779
  var parent = "parent-NZJ3S";
24782
24780
  var container$8 = "container--O28P";
24783
24781
  var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
24784
- var css_248z$P = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n flex: 1;\n min-height: 0;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: hidden;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
24785
- styleInject(css_248z$P);
24782
+ var css_248z$O = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n flex: 1;\n min-height: 0;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: hidden;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
24783
+ styleInject(css_248z$O);
24786
24784
 
24787
- function ownKeys$1w(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; }
24788
- function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24785
+ function ownKeys$1y(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; }
24786
+ function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24789
24787
  function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(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; } } }; }
24790
24788
  function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(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$w(r, a) : void 0; } }
24791
24789
  function _arrayLikeToArray$w(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; }
@@ -24845,8 +24843,8 @@ function _generateCSV() {
24845
24843
  break;
24846
24844
  }
24847
24845
  _context2.next = 21;
24848
- return generateCSV(_objectSpread$1w(_objectSpread$1w({}, exportParams.children), {}, {
24849
- mappingData: _objectSpread$1w(_objectSpread$1w({}, parent), {}, {
24846
+ return generateCSV(_objectSpread$1y(_objectSpread$1y({}, exportParams.children), {}, {
24847
+ mappingData: _objectSpread$1y(_objectSpread$1y({}, parent), {}, {
24850
24848
  parentId: exportParams.mappingData._id
24851
24849
  })
24852
24850
  }), csvData);
@@ -24969,8 +24967,8 @@ function _downloadFile() {
24969
24967
  return _downloadFile.apply(this, arguments);
24970
24968
  }
24971
24969
 
24972
- function ownKeys$1v(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; }
24973
- function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24970
+ function ownKeys$1x(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; }
24971
+ function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24974
24972
  function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(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; } } }; }
24975
24973
  function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(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$v(r, a) : void 0; } }
24976
24974
  function _arrayLikeToArray$v(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; }
@@ -25389,7 +25387,7 @@ function useRelationSelectorData (_ref) {
25389
25387
  var activeItem = _step.value;
25390
25388
  if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
25391
25389
  addedObjects.push(addedData);
25392
- getSplittedItems(_objectSpread$1v(_objectSpread$1v({}, activeItem), {}, {
25390
+ getSplittedItems(_objectSpread$1x(_objectSpread$1x({}, activeItem), {}, {
25393
25391
  userId: data === null || data === void 0 ? void 0 : data._id
25394
25392
  }));
25395
25393
  ret = true;
@@ -25594,8 +25592,8 @@ function useRelationSelectorData (_ref) {
25594
25592
  };
25595
25593
  }
25596
25594
 
25597
- function ownKeys$1u(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; }
25598
- function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25595
+ function ownKeys$1w(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; }
25596
+ function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25599
25597
  function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(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; } } }; }
25600
25598
  function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(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$u(r, a) : void 0; } }
25601
25599
  function _arrayLikeToArray$u(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; }
@@ -25743,7 +25741,7 @@ function ActionButton (_ref) {
25743
25741
  _iterator2.f();
25744
25742
  }
25745
25743
  _context.next = 19;
25746
- return apiInterface.update(_objectSpread$1u(_objectSpread$1u({}, data), {}, {
25744
+ return apiInterface.update(_objectSpread$1w(_objectSpread$1w({}, data), {}, {
25747
25745
  state: toSwitch
25748
25746
  }), data);
25749
25747
  case 19:
@@ -25879,14 +25877,14 @@ function _simpleChangeValue() {
25879
25877
  break;
25880
25878
  }
25881
25879
  for (i = 0; i < action.newValues.length; i++) {
25882
- fieldsToUpdate = _objectSpread$1u(_objectSpread$1u({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
25880
+ fieldsToUpdate = _objectSpread$1w(_objectSpread$1w({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
25883
25881
  }
25884
25882
  if (!apiInterface.canUpdate) {
25885
25883
  _context2.next = 9;
25886
25884
  break;
25887
25885
  }
25888
25886
  _context2.next = 7;
25889
- return apiInterface.update(_objectSpread$1u({}, fieldsToUpdate), data);
25887
+ return apiInterface.update(_objectSpread$1w({}, fieldsToUpdate), data);
25890
25888
  case 7:
25891
25889
  response = _context2.sent;
25892
25890
  return _context2.abrupt("return", response);
@@ -25901,7 +25899,7 @@ function _simpleChangeValue() {
25901
25899
  return _simpleChangeValue.apply(this, arguments);
25902
25900
  }
25903
25901
  function A(props) {
25904
- return /*#__PURE__*/jsx("a", _objectSpread$1u({}, props));
25902
+ return /*#__PURE__*/jsx("a", _objectSpread$1w({}, props));
25905
25903
  }
25906
25904
 
25907
25905
  function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(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; } } }; }
@@ -25947,7 +25945,7 @@ var Filter = function Filter(_ref) {
25947
25945
  style: {
25948
25946
  paddingTop: 8
25949
25947
  },
25950
- className: filterField,
25948
+ className: filterField$1,
25951
25949
  children: [/*#__PURE__*/jsx(Input$1, {
25952
25950
  placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t("backoffice.relationsector.fitler"),
25953
25951
  value: selectedKeys.input,
@@ -26036,11 +26034,11 @@ var newscroller = "newscroller-INKeD";
26036
26034
  var antCollapseHeader = "ant-collapse-header--6FgU";
26037
26035
  var itemTitle = "item-title--BTvC";
26038
26036
  var itemDesc = "item-desc-DBiiF";
26039
- var css_248z$O = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
26040
- styleInject(css_248z$O);
26037
+ var css_248z$N = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
26038
+ styleInject(css_248z$N);
26041
26039
 
26042
- function ownKeys$1t(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; }
26043
- function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26040
+ function ownKeys$1v(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; }
26041
+ function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26044
26042
  var DropDown = function DropDown(_ref) {
26045
26043
  var _curItem$data$length;
26046
26044
  var split = _ref.split,
@@ -26072,7 +26070,7 @@ var DropDown = function DropDown(_ref) {
26072
26070
  });
26073
26071
  return /*#__PURE__*/jsx(Collapse, {
26074
26072
  onChange: function onChange() {
26075
- return getSplittedItems(_objectSpread$1t(_objectSpread$1t({}, item.item), {}, {
26073
+ return getSplittedItems(_objectSpread$1v(_objectSpread$1v({}, item.item), {}, {
26076
26074
  parentId: item.parentId
26077
26075
  }), 0);
26078
26076
  },
@@ -26332,8 +26330,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
26332
26330
  };
26333
26331
  var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
26334
26332
 
26335
- function ownKeys$1s(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; }
26336
- function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26333
+ function ownKeys$1u(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; }
26334
+ function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26337
26335
  function useFormListData (_ref) {
26338
26336
  var _configuration$defaul;
26339
26337
  var id = _ref.id,
@@ -26413,7 +26411,7 @@ function useFormListData (_ref) {
26413
26411
  if (updated.length == state.length) {
26414
26412
  newState = state.map(function (s, i) {
26415
26413
  var _updated$find;
26416
- return _objectSpread$1s(_objectSpread$1s({}, s), {}, {
26414
+ return _objectSpread$1u(_objectSpread$1u({}, s), {}, {
26417
26415
  data: (_updated$find = updated.find(function (u) {
26418
26416
  return u.index == i;
26419
26417
  })) === null || _updated$find === void 0 ? void 0 : _updated$find.data
@@ -26550,8 +26548,8 @@ var FormList = function FormList(_ref, ref) {
26550
26548
  };
26551
26549
  var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
26552
26550
 
26553
- function ownKeys$1r(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; }
26554
- function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26551
+ function ownKeys$1t(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; }
26552
+ function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26555
26553
  var LOG$h = getLogger('Backoffice', 'SelectOrCreate');
26556
26554
  function useSelectOrCreateData (_ref) {
26557
26555
  var id = _ref.id,
@@ -26648,7 +26646,7 @@ function useSelectOrCreateData (_ref) {
26648
26646
  _context.next = 7;
26649
26647
  return apiHandler.readList(configuration.readMapping, mappingData, {
26650
26648
  filters: (_configuration$select3 = configuration.selectMapping) !== null && _configuration$select3 !== void 0 && _configuration$select3.searchField ? (_configuration$select4 = configuration.selectMapping) === null || _configuration$select4 === void 0 ? void 0 : _configuration$select4.searchField.reduce(function (filter, field) {
26651
- return _objectSpread$1r(_objectSpread$1r({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
26649
+ return _objectSpread$1t(_objectSpread$1t({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
26652
26650
  }, {}) : {
26653
26651
  _id: [value, 'contains']
26654
26652
  },
@@ -26959,8 +26957,8 @@ var Multiple = function Multiple(_ref3) {
26959
26957
  });
26960
26958
  };
26961
26959
 
26962
- function ownKeys$1q(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; }
26963
- function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26960
+ function ownKeys$1s(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; }
26961
+ function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26964
26962
  function useListData (_ref) {
26965
26963
  var id = _ref.id,
26966
26964
  data = _ref.data;
@@ -27003,7 +27001,7 @@ function useListData (_ref) {
27003
27001
  case 3:
27004
27002
  result = _context.sent;
27005
27003
  setListData(result.data.map(parseField));
27006
- initData = _objectSpread$1q({}, data);
27004
+ initData = _objectSpread$1s({}, data);
27007
27005
  setUpdatedObject(initData);
27008
27006
  setLoading(false);
27009
27007
  case 8:
@@ -27044,7 +27042,7 @@ function useListData (_ref) {
27044
27042
  });
27045
27043
  (_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
27046
27044
  var parsedField = field.field.split('.');
27047
- item.itemUpdate = _objectSpread$1q(_objectSpread$1q({}, field), {}, {
27045
+ item.itemUpdate = _objectSpread$1s(_objectSpread$1s({}, field), {}, {
27048
27046
  value: dataEntry[parsedField[parsedField.length - 1]]
27049
27047
  });
27050
27048
  });
@@ -27075,16 +27073,16 @@ function useListData (_ref) {
27075
27073
  console.error('field with more than 2 parts not allowed');
27076
27074
  return;
27077
27075
  }
27078
- var updObj = _objectSpread$1q({}, updatedObject);
27076
+ var updObj = _objectSpread$1s({}, updatedObject);
27079
27077
  if (fields.length === 1) {
27080
- updObj = _objectSpread$1q(_objectSpread$1q({}, updObj), {}, _defineProperty({}, fields[0], value));
27078
+ updObj = _objectSpread$1s(_objectSpread$1s({}, updObj), {}, _defineProperty({}, fields[0], value));
27081
27079
  } else if (fields.length === 2) {
27082
27080
  var updatedField = updObj[fields[0]].find(function (v) {
27083
27081
  return v.id === item.id.trim();
27084
27082
  });
27085
27083
  if (updatedField) {
27086
- var updatedFieldCopy = _objectSpread$1q(_objectSpread$1q({}, updatedField), {}, _defineProperty({}, fields[1], value));
27087
- updObj = _objectSpread$1q(_objectSpread$1q({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
27084
+ var updatedFieldCopy = _objectSpread$1s(_objectSpread$1s({}, updatedField), {}, _defineProperty({}, fields[1], value));
27085
+ updObj = _objectSpread$1s(_objectSpread$1s({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
27088
27086
  return v.id === item.id.trim() ? updatedFieldCopy : v;
27089
27087
  })));
27090
27088
  }
@@ -27093,11 +27091,11 @@ function useListData (_ref) {
27093
27091
  var acItems = listData;
27094
27092
  for (var i = 0; i < acItems.length; i++) {
27095
27093
  if (i == index) {
27096
- acItems[i].itemUpdate = _objectSpread$1q(_objectSpread$1q({}, acItems[i].itemUpdate), {}, {
27094
+ acItems[i].itemUpdate = _objectSpread$1s(_objectSpread$1s({}, acItems[i].itemUpdate), {}, {
27097
27095
  value: value
27098
27096
  });
27099
27097
  } else if (!acItems[i].itemUpdate.multiselect) {
27100
- acItems[i].itemUpdate = _objectSpread$1q(_objectSpread$1q({}, acItems[i].itemUpdate), {}, {
27098
+ acItems[i].itemUpdate = _objectSpread$1s(_objectSpread$1s({}, acItems[i].itemUpdate), {}, {
27101
27099
  value: !value
27102
27100
  });
27103
27101
  }
@@ -27451,8 +27449,8 @@ var jsoneditor = "jsoneditor-WMs15";
27451
27449
  var preview = "preview-9wK81";
27452
27450
  var previewButton = "preview-button-vupuG";
27453
27451
  var editButton = "edit-button-m6r3M";
27454
- var css_248z$N = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
27455
- styleInject(css_248z$N);
27452
+ var css_248z$M = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
27453
+ styleInject(css_248z$M);
27456
27454
 
27457
27455
  var JsonEditor = function JsonEditor(_ref, ref) {
27458
27456
  var id = _ref.id,
@@ -27611,8 +27609,8 @@ function calcNaturalCanvasSize(image, crop) {
27611
27609
  };
27612
27610
  }
27613
27611
 
27614
- function ownKeys$1p(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; }
27615
- function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27612
+ function ownKeys$1r(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; }
27613
+ function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27616
27614
  var ImageCropper = function ImageCropper(_ref, ref) {
27617
27615
  var id = _ref.id,
27618
27616
  data = _ref.data,
@@ -27720,12 +27718,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
27720
27718
  }
27721
27719
  function onEnter(e) {
27722
27720
  if (e.key != 'Enter') return;
27723
- setCrop(_objectSpread$1p(_objectSpread$1p({}, crop), {}, {
27721
+ setCrop(_objectSpread$1r(_objectSpread$1r({}, crop), {}, {
27724
27722
  unit: 'px',
27725
27723
  width: Number(widthInputElement.current.value),
27726
27724
  height: Number(heightInputElement.current.value)
27727
27725
  }));
27728
- setCompletedCrop(_objectSpread$1p(_objectSpread$1p({}, crop), {}, {
27726
+ setCompletedCrop(_objectSpread$1r(_objectSpread$1r({}, crop), {}, {
27729
27727
  unit: 'px',
27730
27728
  width: Number(widthInputElement.current.value),
27731
27729
  height: Number(heightInputElement.current.value)
@@ -27803,8 +27801,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
27803
27801
  function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(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; } } }; }
27804
27802
  function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(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$s(r, a) : void 0; } }
27805
27803
  function _arrayLikeToArray$s(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; }
27806
- function ownKeys$1o(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; }
27807
- function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27804
+ function ownKeys$1q(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; }
27805
+ function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27808
27806
  function useDescriptions (_ref) {
27809
27807
  var id = _ref.id;
27810
27808
  var root = useStore();
@@ -27897,7 +27895,7 @@ function _getDisplayData() {
27897
27895
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
27898
27896
  while (1) switch (_context4.prev = _context4.next) {
27899
27897
  case 0:
27900
- displayData = _objectSpread$1o({}, data);
27898
+ displayData = _objectSpread$1q({}, data);
27901
27899
  _iterator = _createForOfIteratorHelper$s(items);
27902
27900
  _context4.prev = 2;
27903
27901
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
@@ -28173,8 +28171,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
28173
28171
  };
28174
28172
  var FileUploadBeta = observer(FileUploadWrapper$1);
28175
28173
 
28176
- function ownKeys$1n(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; }
28177
- function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28174
+ function ownKeys$1p(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; }
28175
+ function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28178
28176
  function useGridData (_ref) {
28179
28177
  var id = _ref.id,
28180
28178
  data = _ref.data;
@@ -28217,11 +28215,11 @@ function useGridData (_ref) {
28217
28215
  function reducer(state, action) {
28218
28216
  switch (action.type) {
28219
28217
  case 'update':
28220
- return _objectSpread$1n(_objectSpread$1n({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1n(_objectSpread$1n({}, action.data), {}, {
28218
+ return _objectSpread$1p(_objectSpread$1p({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1p(_objectSpread$1p({}, action.data), {}, {
28221
28219
  buffer: Buffer.from(action.data.buffer)
28222
28220
  })));
28223
28221
  case 'delete':
28224
- var newState = _objectSpread$1n({}, state);
28222
+ var newState = _objectSpread$1p({}, state);
28225
28223
  delete newState[action.data.divaNr];
28226
28224
  return newState;
28227
28225
  default:
@@ -28231,13 +28229,13 @@ function reducer(state, action) {
28231
28229
 
28232
28230
  var grid$1 = "grid-sGemi";
28233
28231
  var textWrapper = "text-wrapper-xsPXE";
28234
- var css_248z$M = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
28235
- styleInject(css_248z$M);
28232
+ var css_248z$L = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
28233
+ styleInject(css_248z$L);
28236
28234
 
28237
28235
  var wrapper$4 = "wrapper-p-gR3";
28238
28236
  var container$7 = "container-DoZqe";
28239
- var css_248z$L = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
28240
- styleInject(css_248z$L);
28237
+ var css_248z$K = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
28238
+ styleInject(css_248z$K);
28241
28239
 
28242
28240
  var ToolTipInfo = function ToolTipInfo(props) {
28243
28241
  var _useTranslation = useTranslation(),
@@ -28308,8 +28306,8 @@ var Grid = function Grid(_ref) {
28308
28306
  });
28309
28307
  };
28310
28308
 
28311
- function ownKeys$1m(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; }
28312
- function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28309
+ function ownKeys$1o(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; }
28310
+ function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28313
28311
  var useMediaUpload = function useMediaUpload(_ref) {
28314
28312
  var id = _ref.id;
28315
28313
  var root = useStore();
@@ -28518,7 +28516,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
28518
28516
  onRemove: onRemove,
28519
28517
  customRequest: customRequest,
28520
28518
  fileList: fileList.map(function (f) {
28521
- return _objectSpread$1m(_objectSpread$1m({}, f), {}, {
28519
+ return _objectSpread$1o(_objectSpread$1o({}, f), {}, {
28522
28520
  url: f.url
28523
28521
  });
28524
28522
  }),
@@ -28532,8 +28530,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
28532
28530
  var small = "small-NY1-k";
28533
28531
  var medium = "medium---QcO";
28534
28532
  var big = "big--E39S";
28535
- var css_248z$K = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
28536
- styleInject(css_248z$K);
28533
+ var css_248z$J = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
28534
+ styleInject(css_248z$J);
28537
28535
 
28538
28536
  var MediaUpload = observer(function (_ref) {
28539
28537
  var id = _ref.id;
@@ -28622,8 +28620,8 @@ var TableSummary = function TableSummary(_ref) {
28622
28620
  });
28623
28621
  };
28624
28622
 
28625
- function ownKeys$1l(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; }
28626
- function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28623
+ function ownKeys$1n(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; }
28624
+ function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28627
28625
  function getExpandedRowRenderer (config, root) {
28628
28626
  return function (record) {
28629
28627
  var data = record;
@@ -28645,7 +28643,7 @@ function customSubTable(columns, datasource) {
28645
28643
  // map custom columns to antd columns
28646
28644
  var antcols = columns.map(function (col) {
28647
28645
  var _col$width;
28648
- return _objectSpread$1l(_objectSpread$1l({}, col), {}, {
28646
+ return _objectSpread$1n(_objectSpread$1n({}, col), {}, {
28649
28647
  title: col.title,
28650
28648
  dataIndex: col.field,
28651
28649
  key: col.field,
@@ -28674,8 +28672,8 @@ var checkbox = "checkbox-H7R-w";
28674
28672
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
28675
28673
  var contentWidth = "content-width-hGyVI";
28676
28674
  var tableLoadingSpin = "table-loading-spin-QjnC-";
28677
- var css_248z$J = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n\n.ant-select {\n display: inline-flex !important;\n}\n\n/* Fix for antd Table extra column on Windows */\n/* workarround for https://github.com/ant-design/ant-design/issues/55633, if resolved try to remove this */\n.ant-table-cell-scrollbar:not(.ant-table-cell-fix-right) {\n display: none !important;\n}\n\n.table-loading-spin-QjnC- {\n overflow: auto;\n height: 100%;\n}\n";
28678
- styleInject(css_248z$J);
28675
+ var css_248z$I = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n\n.ant-select {\n display: inline-flex !important;\n}\n\n/* Fix for antd Table extra column on Windows */\n/* workarround for https://github.com/ant-design/ant-design/issues/55633, if resolved try to remove this */\n.ant-table-cell-scrollbar:not(.ant-table-cell-fix-right) {\n display: none !important;\n}\n\n.table-loading-spin-QjnC- {\n overflow: auto;\n height: 100%;\n}\n";
28676
+ styleInject(css_248z$I);
28679
28677
 
28680
28678
  function BooleanCell (_ref) {
28681
28679
  var children = _ref.children,
@@ -29508,8 +29506,8 @@ function ArrayCell (_ref) {
29508
29506
 
29509
29507
  var _excluded$a = ["index"],
29510
29508
  _excluded2$1 = ["children", "dataIndex", "record", "handleSave", "column"];
29511
- function ownKeys$1k(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; }
29512
- function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29509
+ function ownKeys$1m(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; }
29510
+ function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29513
29511
  var LOG$f = getLogger('Backoffice', 'CellRenderer');
29514
29512
  var EditableContext = /*#__PURE__*/React.createContext(null);
29515
29513
  var CustomRow = function CustomRow(_ref) {
@@ -29523,7 +29521,7 @@ var CustomRow = function CustomRow(_ref) {
29523
29521
  component: false,
29524
29522
  children: /*#__PURE__*/jsx(EditableContext.Provider, {
29525
29523
  value: form,
29526
- children: /*#__PURE__*/jsx("tr", _objectSpread$1k({}, props))
29524
+ children: /*#__PURE__*/jsx("tr", _objectSpread$1m({}, props))
29527
29525
  })
29528
29526
  });
29529
29527
  };
@@ -29576,7 +29574,7 @@ var CustomCell = function CustomCell(_ref2) {
29576
29574
  if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
29577
29575
  longDescriptionType = 'text';
29578
29576
  }
29579
- var modifiedColumn = _objectSpread$1k(_objectSpread$1k({}, column), {}, {
29577
+ var modifiedColumn = _objectSpread$1m(_objectSpread$1m({}, column), {}, {
29580
29578
  type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
29581
29579
  });
29582
29580
  if (column) {
@@ -29589,43 +29587,43 @@ var CustomCell = function CustomCell(_ref2) {
29589
29587
  };
29590
29588
  switch (modifiedColumn.type) {
29591
29589
  case 'boolean':
29592
- childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1k({}, cellProps));
29590
+ childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1m({}, cellProps));
29593
29591
  break;
29594
29592
  case 'text':
29595
- childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1k({}, cellProps));
29593
+ childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1m({}, cellProps));
29596
29594
  break;
29597
29595
  case 'select':
29598
- childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1k({}, cellProps));
29596
+ childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1m({}, cellProps));
29599
29597
  case 'media':
29600
- childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1k({}, cellProps));
29598
+ childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1m({}, cellProps));
29601
29599
  break;
29602
29600
  case 'mediaItem':
29603
- childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1k({}, cellProps));
29601
+ childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1m({}, cellProps));
29604
29602
  break;
29605
29603
  case 'unixTimeStamp':
29606
- childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1k({}, cellProps));
29604
+ childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1m({}, cellProps));
29607
29605
  break;
29608
29606
  case 'unixTimeStampCheck':
29609
- childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1k({}, cellProps));
29607
+ childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1m({}, cellProps));
29610
29608
  break;
29611
29609
  case 'icon':
29612
- childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1k({}, cellProps));
29610
+ childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1m({}, cellProps));
29613
29611
  break;
29614
29612
  case 'progress':
29615
- childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1k({}, cellProps));
29613
+ childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1m({}, cellProps));
29616
29614
  break;
29617
29615
  case 'link':
29618
- childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1k({}, cellProps));
29616
+ childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1m({}, cellProps));
29619
29617
  break;
29620
29618
  case 'array':
29621
- childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1k({}, cellProps));
29619
+ childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1m({}, cellProps));
29622
29620
  break;
29623
29621
  default:
29624
- childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1k({}, cellProps));
29622
+ childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1m({}, cellProps));
29625
29623
  break;
29626
29624
  }
29627
29625
  }
29628
- return /*#__PURE__*/jsx("td", _objectSpread$1k(_objectSpread$1k({}, restProps), {}, {
29626
+ return /*#__PURE__*/jsx("td", _objectSpread$1m(_objectSpread$1m({}, restProps), {}, {
29629
29627
  children: childNode
29630
29628
  }));
29631
29629
  };
@@ -29817,8 +29815,8 @@ function useAGHistogram (_ref) {
29817
29815
  var container$6 = "container-2r-OJ";
29818
29816
  var column1 = "column1-9viTK";
29819
29817
  var spinner = "spinner-00VcK";
29820
- var css_248z$I = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
29821
- styleInject(css_248z$I);
29818
+ var css_248z$H = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
29819
+ styleInject(css_248z$H);
29822
29820
 
29823
29821
  var Panel$1 = Collapse.Panel;
29824
29822
  function AGHistogram (_ref) {
@@ -29980,8 +29978,8 @@ var SMChart = function SMChart(props) {
29980
29978
  function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(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; } } }; }
29981
29979
  function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(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$n(r, a) : void 0; } }
29982
29980
  function _arrayLikeToArray$n(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; }
29983
- function ownKeys$1j(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; }
29984
- function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29981
+ function ownKeys$1l(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; }
29982
+ function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29985
29983
 
29986
29984
  /**
29987
29985
  * Props for the useTools hook
@@ -30021,7 +30019,7 @@ var useTools = function useTools(_ref) {
30021
30019
  var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
30022
30020
  var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
30023
30021
  var createTool = function createTool(tool) {
30024
- return _objectSpread$1j({
30022
+ return _objectSpread$1l({
30025
30023
  startWidth: 600,
30026
30024
  defaultPinned: true,
30027
30025
  defaultOpen: false
@@ -30052,7 +30050,7 @@ var useTools = function useTools(_ref) {
30052
30050
  name: 'Konfigurator',
30053
30051
  type: 'Configurator',
30054
30052
  where: 'right',
30055
- parameters: _objectSpread$1j({
30053
+ parameters: _objectSpread$1l({
30056
30054
  catalogId: catalogId,
30057
30055
  packageId: packageId,
30058
30056
  isIDMData: !isApi2 ? '1' : undefined
@@ -30148,8 +30146,8 @@ function InformationButton(_ref) {
30148
30146
  });
30149
30147
  }
30150
30148
 
30151
- function ownKeys$1i(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; }
30152
- function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30149
+ function ownKeys$1k(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; }
30150
+ function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30153
30151
  function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(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; } } }; }
30154
30152
  function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(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$m(r, a) : void 0; } }
30155
30153
  function _arrayLikeToArray$m(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; }
@@ -30271,7 +30269,7 @@ var TableWrapper = function TableWrapper(_ref) {
30271
30269
  if (data && data.length > 0) {
30272
30270
  data = data.map(function (dt) {
30273
30271
  var _ref2, _dt$catalogItem;
30274
- return _objectSpread$1i(_objectSpread$1i({}, dt), {}, {
30272
+ return _objectSpread$1k(_objectSpread$1k({}, dt), {}, {
30275
30273
  catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
30276
30274
  });
30277
30275
  });
@@ -30427,13 +30425,13 @@ var TableWrapper = function TableWrapper(_ref) {
30427
30425
  // Convert to Dayjs
30428
30426
  (_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
30429
30427
  ]
30430
- }), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1i(_objectSpread$1i({}, selectFilter.settings), {}, {
30428
+ }), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1k(_objectSpread$1k({}, selectFilter.settings), {}, {
30431
30429
  minWidth: "200px",
30432
30430
  value: (_state$globalFilter$s = state.globalFilter.select) === null || _state$globalFilter$s === void 0 || (_state$globalFilter$s = _state$globalFilter$s[selectFilter.filterField]) === null || _state$globalFilter$s === void 0 ? void 0 : _state$globalFilter$s[0],
30433
30431
  onChange: function onChange(selected) {
30434
30432
  state.onGlobalFilterSelect(normalizeTableFilterSelectValue(selected, selectFilter.filterField));
30435
30433
  }
30436
- })) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1i(_objectSpread$1i({}, selectFilter.settings), {}, {
30434
+ })) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1k(_objectSpread$1k({}, selectFilter.settings), {}, {
30437
30435
  style: {
30438
30436
  minWidth: '200px'
30439
30437
  },
@@ -30543,7 +30541,7 @@ var TableWrapper = function TableWrapper(_ref) {
30543
30541
  root: tableLoadingSpin
30544
30542
  }
30545
30543
  },
30546
- pagination: _objectSpread$1i(_objectSpread$1i({}, state.pagination), {}, {
30544
+ pagination: _objectSpread$1k(_objectSpread$1k({}, state.pagination), {}, {
30547
30545
  showTotal: function showTotal(total, range) {
30548
30546
  return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
30549
30547
  },
@@ -30877,7 +30875,7 @@ function BulkAction(_ref8) {
30877
30875
  }
30878
30876
  _context5.t0 = data;
30879
30877
  _context5.next = 14;
30880
- return apiInterface.update(_objectSpread$1i(_objectSpread$1i({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
30878
+ return apiInterface.update(_objectSpread$1k(_objectSpread$1k({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
30881
30879
  case 14:
30882
30880
  _context5.t1 = _context5.sent;
30883
30881
  _context5.t0.push.call(_context5.t0, _context5.t1);
@@ -30998,8 +30996,8 @@ function SelectionText(_ref10) {
30998
30996
  function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(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; } } }; }
30999
30997
  function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(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$l(r, a) : void 0; } }
31000
30998
  function _arrayLikeToArray$l(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; }
31001
- function ownKeys$1h(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; }
31002
- function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30999
+ function ownKeys$1j(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; }
31000
+ function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31003
31001
  function getColumnFilterProps (_ref) {
31004
31002
  var filter = _ref.filter,
31005
31003
  title = _ref.title;
@@ -31371,7 +31369,7 @@ var selectProps = function selectProps(title, filter) {
31371
31369
  });
31372
31370
  },
31373
31371
  options: filter.map(function (f) {
31374
- return _objectSpread$1h(_objectSpread$1h({}, f), {}, {
31372
+ return _objectSpread$1j(_objectSpread$1j({}, f), {}, {
31375
31373
  label: t(f.label)
31376
31374
  });
31377
31375
  })
@@ -31450,7 +31448,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31450
31448
  t = _useTranslation3.t;
31451
31449
  var options = [];
31452
31450
  options = filter.map(function (f) {
31453
- return _objectSpread$1h(_objectSpread$1h({}, f), {}, {
31451
+ return _objectSpread$1j(_objectSpread$1j({}, f), {}, {
31454
31452
  label: t(f.label)
31455
31453
  });
31456
31454
  });
@@ -31521,8 +31519,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31521
31519
  };
31522
31520
  };
31523
31521
 
31524
- function ownKeys$1g(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; }
31525
- function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31522
+ function ownKeys$1i(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; }
31523
+ function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31526
31524
  function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter, filterState) {
31527
31525
  var columns = configuration.columns.filter(function (c) {
31528
31526
  if (typeof c.hidden == 'boolean' && c.hidden) {
@@ -31580,7 +31578,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
31580
31578
  function mapColumn(column, onUpdate, filterState) {
31581
31579
  var _column$field, _filterState$filters$, _filterState$filters, _column$children;
31582
31580
  var key = column.field || column.title;
31583
- return _objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g({}, column), {}, {
31581
+ return _objectSpread$1i(_objectSpread$1i(_objectSpread$1i(_objectSpread$1i({}, column), {}, {
31584
31582
  hidden: false,
31585
31583
  width: column.width || 100,
31586
31584
  dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
@@ -31641,8 +31639,8 @@ function updateData (_ref) {
31641
31639
  };
31642
31640
  }
31643
31641
 
31644
- function ownKeys$1f(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; }
31645
- function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31642
+ function ownKeys$1h(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; }
31643
+ function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31646
31644
  function applyFilterAndSortation (_ref) {
31647
31645
  var data = _ref.data,
31648
31646
  filters = _ref.filters,
@@ -31657,7 +31655,7 @@ function applyFilterAndSortation (_ref) {
31657
31655
  processedData = sort(sorter || [], processedData);
31658
31656
  return {
31659
31657
  data: processedData,
31660
- pagination: _objectSpread$1f(_objectSpread$1f({}, pagination), {}, {
31658
+ pagination: _objectSpread$1h(_objectSpread$1h({}, pagination), {}, {
31661
31659
  total: processedData.length
31662
31660
  })
31663
31661
  };
@@ -31742,8 +31740,8 @@ function filter(f, data) {
31742
31740
  }
31743
31741
 
31744
31742
  var _excluded$9 = ["_id"];
31745
- function ownKeys$1e(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; }
31746
- function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31743
+ function ownKeys$1g(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; }
31744
+ function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31747
31745
  function useTableData$1 (_ref) {
31748
31746
  var _configuration$apiInt;
31749
31747
  var id = _ref.id;
@@ -31798,7 +31796,7 @@ function useTableData$1 (_ref) {
31798
31796
  var _configuration$create;
31799
31797
  if (!dataRow) return;
31800
31798
  var id = v4();
31801
- var processedDataRow = unflatten(_objectSpread$1e({
31799
+ var processedDataRow = unflatten(_objectSpread$1g({
31802
31800
  _id: id,
31803
31801
  ID: id
31804
31802
  }, dataRow));
@@ -31810,11 +31808,11 @@ function useTableData$1 (_ref) {
31810
31808
  newData = _updateData.data;
31811
31809
  _updateData.prevDataRow;
31812
31810
  _updateData.index;
31813
- var newState = _objectSpread$1e(_objectSpread$1e({}, state), {}, {
31811
+ var newState = _objectSpread$1g(_objectSpread$1g({}, state), {}, {
31814
31812
  data: newData
31815
31813
  });
31816
31814
  if (!filterServerSide) {
31817
- var res = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e({}, filterData), {}, {
31815
+ var res = applyFilterAndSortation(_objectSpread$1g(_objectSpread$1g({}, filterData), {}, {
31818
31816
  data: newData
31819
31817
  }));
31820
31818
  newState.data = res.data;
@@ -31826,33 +31824,33 @@ function useTableData$1 (_ref) {
31826
31824
  var formData = new FormData();
31827
31825
  processedDataRow._id;
31828
31826
  var value = _objectWithoutProperties(processedDataRow, _excluded$9);
31829
- apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1e(_objectSpread$1e({}, catalogItem), {}, {
31827
+ apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
31830
31828
  filterContex: filterContex,
31831
31829
  value: JSON.stringify([value])
31832
31830
  }), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
31833
31831
  if (d && d.Result && d.Result == 'Success') return;
31834
- setState(_objectSpread$1e({}, oldState));
31832
+ setState(_objectSpread$1g({}, oldState));
31835
31833
  });
31836
31834
  }, [state, catalogItem, filterData]);
31837
31835
  useEffect(function () {
31838
31836
  if (!catalogItem) return;
31839
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31837
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31840
31838
  loading: true,
31841
- mappingData: _objectSpread$1e(_objectSpread$1e({}, catalogItem), {}, {
31839
+ mappingData: _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
31842
31840
  filterContex: filterContex
31843
31841
  })
31844
31842
  }));
31845
31843
  if (!filterServerSide) {
31846
- apiHandler.readList(configuration.mapping, _objectSpread$1e(_objectSpread$1e({}, catalogItem), {}, {
31844
+ apiHandler.readList(configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
31847
31845
  filterContex: filterContex
31848
31846
  }), undefined, catalogItem.sessionGuid).then(function (data) {
31849
31847
  var newData = data.data.map(function (d) {
31850
- return _objectSpread$1e(_objectSpread$1e({}, d), {}, {
31848
+ return _objectSpread$1g(_objectSpread$1g({}, d), {}, {
31851
31849
  _id: d._id || d.ID || nanoid()
31852
31850
  });
31853
31851
  });
31854
31852
  onChange({
31855
- pagination: _objectSpread$1e({}, state.pagination),
31853
+ pagination: _objectSpread$1g({}, state.pagination),
31856
31854
  filters: {},
31857
31855
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
31858
31856
  return c.defaultSortOrder;
@@ -31868,7 +31866,7 @@ function useTableData$1 (_ref) {
31868
31866
  });
31869
31867
  } else {
31870
31868
  onChange({
31871
- pagination: _objectSpread$1e({}, state.pagination),
31869
+ pagination: _objectSpread$1g({}, state.pagination),
31872
31870
  filters: {},
31873
31871
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
31874
31872
  return c.defaultSortOrder;
@@ -31884,17 +31882,17 @@ function useTableData$1 (_ref) {
31884
31882
  }
31885
31883
  }, [filterContex, catalogItem]);
31886
31884
  var onChange = function onChange(p, dataParam) {
31887
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31885
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31888
31886
  loading: true
31889
31887
  }));
31890
31888
  if (!filterServerSide) {
31891
31889
  var unfilteredData = dataParam ? dataParam : state.unfilteredData;
31892
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e({}, p), {}, {
31890
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1g(_objectSpread$1g({}, p), {}, {
31893
31891
  data: unfilteredData
31894
31892
  })),
31895
31893
  data = _applyFilterAndSortat.data,
31896
31894
  pagination = _applyFilterAndSortat.pagination;
31897
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31895
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31898
31896
  data: data,
31899
31897
  pagination: pagination,
31900
31898
  loading: false,
@@ -31905,20 +31903,20 @@ function useTableData$1 (_ref) {
31905
31903
  sorter: p.sorter
31906
31904
  });
31907
31905
  } else {
31908
- apiHandler.readList(configuration.mapping, _objectSpread$1e(_objectSpread$1e({}, catalogItem), {}, {
31906
+ apiHandler.readList(configuration.mapping, _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
31909
31907
  filterContex: filterContex
31910
31908
  }), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
31911
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31909
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31912
31910
  data: data.data.map(function (dt) {
31913
- return _objectSpread$1e(_objectSpread$1e({}, dt), {}, {
31911
+ return _objectSpread$1g(_objectSpread$1g({}, dt), {}, {
31914
31912
  _id: dt._id || dt.ID || nanoid()
31915
31913
  });
31916
31914
  }),
31917
- pagination: _objectSpread$1e(_objectSpread$1e({}, p.pagination), {}, {
31915
+ pagination: _objectSpread$1g(_objectSpread$1g({}, p.pagination), {}, {
31918
31916
  total: data.total
31919
31917
  }),
31920
31918
  loading: false,
31921
- mappingData: _objectSpread$1e(_objectSpread$1e({}, catalogItem), {}, {
31919
+ mappingData: _objectSpread$1g(_objectSpread$1g({}, catalogItem), {}, {
31922
31920
  filterContex: filterContex
31923
31921
  })
31924
31922
  }));
@@ -31939,7 +31937,7 @@ function useTableData$1 (_ref) {
31939
31937
  filters['_id'] = [id, 'eq', false];
31940
31938
  _context.next = 4;
31941
31939
  return apiHandler.readList(configuration.mapping, {
31942
- pagination: _objectSpread$1e({}, state.pagination),
31940
+ pagination: _objectSpread$1g({}, state.pagination),
31943
31941
  columns: configuration.columns,
31944
31942
  filters: filters,
31945
31943
  sorter: filterData.sorter
@@ -31958,7 +31956,7 @@ function useTableData$1 (_ref) {
31958
31956
  };
31959
31957
  }();
31960
31958
  var onSelect = function onSelect(keys) {
31961
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31959
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31962
31960
  selected: keys
31963
31961
  }));
31964
31962
  };
@@ -31968,7 +31966,7 @@ function useTableData$1 (_ref) {
31968
31966
  return _regeneratorRuntime.wrap(function _callee2$(_context3) {
31969
31967
  while (1) switch (_context3.prev = _context3.next) {
31970
31968
  case 0:
31971
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
31969
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
31972
31970
  deleting: true
31973
31971
  }));
31974
31972
  newData = _toConsumableArray(state.data);
@@ -31983,7 +31981,7 @@ function useTableData$1 (_ref) {
31983
31981
  mappingData = (_newData$filter = newData.filter(function (nd) {
31984
31982
  return nd._id === state.selected[index];
31985
31983
  })) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
31986
- mappingData = _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData);
31984
+ mappingData = _objectSpread$1g(_objectSpread$1g({}, mappingData), state.mappingData);
31987
31985
  _context2.next = 5;
31988
31986
  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);
31989
31987
  case 5:
@@ -32033,7 +32031,7 @@ function useTableData$1 (_ref) {
32033
32031
  }
32034
32032
  _context3.next = 18;
32035
32033
  return apiHandler.readList(configuration.mapping, {
32036
- pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
32034
+ pagination: _objectSpread$1g(_objectSpread$1g({}, state.pagination), {}, {
32037
32035
  current: current
32038
32036
  }),
32039
32037
  columns: configuration.columns,
@@ -32045,11 +32043,11 @@ function useTableData$1 (_ref) {
32045
32043
  newData = data.data;
32046
32044
  total = data.total;
32047
32045
  case 21:
32048
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32046
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
32049
32047
  selected: [],
32050
32048
  deleting: false,
32051
32049
  data: newData,
32052
- pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
32050
+ pagination: _objectSpread$1g(_objectSpread$1g({}, state.pagination), {}, {
32053
32051
  current: current,
32054
32052
  total: total
32055
32053
  })
@@ -32065,12 +32063,12 @@ function useTableData$1 (_ref) {
32065
32063
  };
32066
32064
  }();
32067
32065
  function setLoading() {
32068
- setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32066
+ setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
32069
32067
  loading: true
32070
32068
  }));
32071
32069
  }
32072
- return _objectSpread$1e(_objectSpread$1e({}, state), {}, {
32073
- configuration: _objectSpread$1e(_objectSpread$1e({}, configuration), {}, {
32070
+ return _objectSpread$1g(_objectSpread$1g({}, state), {}, {
32071
+ configuration: _objectSpread$1g(_objectSpread$1g({}, configuration), {}, {
32074
32072
  title: undefined
32075
32073
  }),
32076
32074
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
@@ -32166,8 +32164,8 @@ var translation = {
32166
32164
  SUPPLIER: 'backoffice.translation.supplier'
32167
32165
  };
32168
32166
 
32169
- function ownKeys$1d(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; }
32170
- function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32167
+ function ownKeys$1f(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; }
32168
+ function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32171
32169
  /**
32172
32170
  * Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
32173
32171
  */
@@ -32175,10 +32173,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
32175
32173
  if (!readListUrl && !genericType) {
32176
32174
  return base;
32177
32175
  }
32178
- var next = _objectSpread$1d({}, base);
32176
+ var next = _objectSpread$1f({}, base);
32179
32177
  if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
32180
- next.apiInterface = _objectSpread$1d(_objectSpread$1d({}, next.apiInterface), {}, {
32181
- read: _objectSpread$1d(_objectSpread$1d({}, next.apiInterface.read), {}, {
32178
+ next.apiInterface = _objectSpread$1f(_objectSpread$1f({}, next.apiInterface), {}, {
32179
+ read: _objectSpread$1f(_objectSpread$1f({}, next.apiInterface.read), {}, {
32182
32180
  list: readListUrl
32183
32181
  })
32184
32182
  });
@@ -32211,8 +32209,8 @@ function objectHash (obj) {
32211
32209
  function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(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; } } }; }
32212
32210
  function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(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$k(r, a) : void 0; } }
32213
32211
  function _arrayLikeToArray$k(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; }
32214
- function ownKeys$1c(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; }
32215
- function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32212
+ function ownKeys$1e(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; }
32213
+ function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32216
32214
  var LOG$d = getLogger('Backoffice', 'TableData');
32217
32215
  function useTableData (_ref) {
32218
32216
  var _persistedTableState$, _configuration$filter, _configuration$filter2, _ref2, _configuration$filter3, _configuration$filter4, _configuration$filter5, _ref3, _configuration$filter6, _configuration$filter7, _configuration$filter8, _persistedTableState$2, _configuration$filter9, _configuration$filter10, _persistedTableState$3, _configuration$bulkAc, _configuration$apiInt, _ref5, _configuration$readMa;
@@ -32233,8 +32231,8 @@ function useTableData (_ref) {
32233
32231
  var apiHandler = useMemo(function () {
32234
32232
  if (configProp) {
32235
32233
  // Store entry is minimal (type+title only); pass the full apiInterface directly
32236
- var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1c(_objectSpread$1c({}, configProp.apiInterface), {}, {
32237
- read: _objectSpread$1c(_objectSpread$1c({}, configProp.apiInterface.read), {}, {
32234
+ var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1e(_objectSpread$1e({}, configProp.apiInterface), {}, {
32235
+ read: _objectSpread$1e(_objectSpread$1e({}, configProp.apiInterface.read), {}, {
32238
32236
  list: readListUrlOverride
32239
32237
  })
32240
32238
  }) : configProp.apiInterface;
@@ -32245,8 +32243,8 @@ function useTableData (_ref) {
32245
32243
  }
32246
32244
  var base = baseConfiguration;
32247
32245
  if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
32248
- return root.getApiHandler(id, _objectSpread$1c(_objectSpread$1c({}, base.apiInterface), {}, {
32249
- read: _objectSpread$1c(_objectSpread$1c({}, base.apiInterface.read), {}, {
32246
+ return root.getApiHandler(id, _objectSpread$1e(_objectSpread$1e({}, base.apiInterface), {}, {
32247
+ read: _objectSpread$1e(_objectSpread$1e({}, base.apiInterface.read), {}, {
32250
32248
  list: readListUrlOverride
32251
32249
  })
32252
32250
  }));
@@ -32300,7 +32298,7 @@ function useTableData (_ref) {
32300
32298
  var _useState13 = useState({
32301
32299
  loading: true,
32302
32300
  deleting: false,
32303
- pagination: _objectSpread$1c(_objectSpread$1c({
32301
+ pagination: _objectSpread$1e(_objectSpread$1e({
32304
32302
  current: 1,
32305
32303
  pageSize: 20,
32306
32304
  total: 0,
@@ -32309,7 +32307,7 @@ function useTableData (_ref) {
32309
32307
  selected: (_persistedTableState$3 = persistedTableState === null || persistedTableState === void 0 ? void 0 : persistedTableState.selected) !== null && _persistedTableState$3 !== void 0 ? _persistedTableState$3 : [],
32310
32308
  canDelete: !!apiHandler.canDelete,
32311
32309
  canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
32312
- mappingData: _objectSpread$1c(_objectSpread$1c({}, parentData), {}, {
32310
+ mappingData: _objectSpread$1e(_objectSpread$1e({}, parentData), {}, {
32313
32311
  prefilter: {
32314
32312
  select: globalFilter.select
32315
32313
  },
@@ -32320,7 +32318,7 @@ function useTableData (_ref) {
32320
32318
  _useState14 = _slicedToArray(_useState13, 2),
32321
32319
  state = _useState14[0],
32322
32320
  setState = _useState14[1];
32323
- var mappingData = _objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, parentData), state.data), {}, {
32321
+ var mappingData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, parentData), state.data), {}, {
32324
32322
  catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
32325
32323
  sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
32326
32324
  });
@@ -32360,7 +32358,7 @@ function useTableData (_ref) {
32360
32358
  }
32361
32359
  var dataArray = Array.isArray(data) ? data : [data];
32362
32360
  var newInitData = initData;
32363
- var newState = _objectSpread$1c({}, state);
32361
+ var newState = _objectSpread$1e({}, state);
32364
32362
  var selected = [];
32365
32363
  if (configuration.deselectOnUpdate == false) {
32366
32364
  selected = state.selected;
@@ -32377,7 +32375,7 @@ function useTableData (_ref) {
32377
32375
  dataRow: dataRow
32378
32376
  }),
32379
32377
  _data = _updateData.data;
32380
- newState = _objectSpread$1c(_objectSpread$1c({}, newState), {}, {
32378
+ newState = _objectSpread$1e(_objectSpread$1e({}, newState), {}, {
32381
32379
  data: _data,
32382
32380
  selected: selected
32383
32381
  });
@@ -32389,8 +32387,8 @@ function useTableData (_ref) {
32389
32387
  dataRow: dataRow
32390
32388
  }),
32391
32389
  nextInitData = _updateData2.data;
32392
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, filterData), {}, {
32393
- filters: _objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter12 = configuration.filter) !== null && _configuration$filter12 !== void 0 && (_configuration$filter12 = _configuration$filter12.toggle) !== null && _configuration$filter12 !== void 0 && _configuration$filter12.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
32390
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData), {}, {
32391
+ filters: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter12 = configuration.filter) !== null && _configuration$filter12 !== void 0 && (_configuration$filter12 = _configuration$filter12.toggle) !== null && _configuration$filter12 !== void 0 && _configuration$filter12.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
32394
32392
  }, configuration !== null && configuration !== void 0 && (_configuration$filter13 = configuration.filter) !== null && _configuration$filter13 !== void 0 && (_configuration$filter13 = _configuration$filter13.toggle) !== null && _configuration$filter13 !== void 0 && _configuration$filter13.inQuery ? {
32395
32393
  genericProps: globalFilter.toggle
32396
32394
  } : undefined), {}, {
@@ -32400,7 +32398,7 @@ function useTableData (_ref) {
32400
32398
  _data2 = _applyFilterAndSortat.data,
32401
32399
  pagination = _applyFilterAndSortat.pagination;
32402
32400
  newInitData = nextInitData;
32403
- newState = _objectSpread$1c(_objectSpread$1c({}, newState), {}, {
32401
+ newState = _objectSpread$1e(_objectSpread$1e({}, newState), {}, {
32404
32402
  pagination: pagination,
32405
32403
  data: _data2,
32406
32404
  selected: selected
@@ -32410,8 +32408,8 @@ function useTableData (_ref) {
32410
32408
  if (apiHandler.canCreate) {
32411
32409
  apiCreate(data).then(function (res) {
32412
32410
  if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
32413
- initData && setInitData(_objectSpread$1c({}, initData));
32414
- setState(_objectSpread$1c({}, state));
32411
+ initData && setInitData(_objectSpread$1e({}, initData));
32412
+ setState(_objectSpread$1e({}, state));
32415
32413
  }
32416
32414
  });
32417
32415
  }
@@ -32424,7 +32422,7 @@ function useTableData (_ref) {
32424
32422
  var triggerRefresh = function triggerRefresh() {
32425
32423
  var _configuration$filter14;
32426
32424
  setError(undefined);
32427
- var newGlobalFilter = _objectSpread$1c({}, globalFilter);
32425
+ var newGlobalFilter = _objectSpread$1e({}, globalFilter);
32428
32426
  //on refresh update default filter, since global value can change
32429
32427
  if ((_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && _configuration$filter14["default"]) {
32430
32428
  var _configuration$filter15;
@@ -32435,7 +32433,7 @@ function useTableData (_ref) {
32435
32433
  newGlobalFilter["default"] = _defaultFilter;
32436
32434
  setGlobaFilter(newGlobalFilter);
32437
32435
  }
32438
- onChange(_objectSpread$1c({
32436
+ onChange(_objectSpread$1e({
32439
32437
  pagination: state.pagination
32440
32438
  }, filterData), newGlobalFilter, true);
32441
32439
  };
@@ -32453,7 +32451,7 @@ function useTableData (_ref) {
32453
32451
  order: c.defaultSortOrder
32454
32452
  };
32455
32453
  });
32456
- if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32454
+ if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32457
32455
  loading: false
32458
32456
  }));else {
32459
32457
  var _persistedTableState$4, _persistedTableState$5, _persistedTableState$6, _persistedTableState$7;
@@ -32508,7 +32506,7 @@ function useTableData (_ref) {
32508
32506
  case 0:
32509
32507
  filters = {};
32510
32508
  filters['_id'] = [id, 'eq', false];
32511
- ssf = _objectSpread$1c({
32509
+ ssf = _objectSpread$1e({
32512
32510
  pagination: {
32513
32511
  current: 1,
32514
32512
  pageSize: 1
@@ -32519,7 +32517,7 @@ function useTableData (_ref) {
32519
32517
  genericProps: globalFilter.toggle
32520
32518
  } : undefined);
32521
32519
  _context2.next = 5;
32522
- return apiHandler.readList(readMapping, _objectSpread$1c(_objectSpread$1c({}, mappingData), state.mappingData), ssf);
32520
+ return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), ssf);
32523
32521
  case 5:
32524
32522
  data = _context2.sent;
32525
32523
  return _context2.abrupt("return", data);
@@ -32563,12 +32561,12 @@ function useTableData (_ref) {
32563
32561
  refresh = _args3.length > 2 ? _args3[2] : undefined;
32564
32562
  clearSelection = _args3.length > 3 ? _args3[3] : undefined;
32565
32563
  overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
32566
- setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32564
+ setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32567
32565
  mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
32568
32566
  loading: true
32569
32567
  }));
32570
32568
  currentData = initData;
32571
- filterData = _objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, prefilter.search), ((_configuration$filter17 = configuration.filter) === null || _configuration$filter17 === void 0 || (_configuration$filter17 = _configuration$filter17.select) === null || _configuration$filter17 === void 0 ? void 0 : _configuration$filter17.applyDefaultValue) !== false || ((_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.select) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.select) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.filterField) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
32569
+ filterData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, prefilter.search), ((_configuration$filter17 = configuration.filter) === null || _configuration$filter17 === void 0 || (_configuration$filter17 = _configuration$filter17.select) === null || _configuration$filter17 === void 0 ? void 0 : _configuration$filter17.applyDefaultValue) !== false || ((_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.select) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.select) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.filterField) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
32572
32570
  filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref9) {
32573
32571
  var _ref10 = _slicedToArray(_ref9, 2);
32574
32572
  _ref10[0];
@@ -32576,7 +32574,7 @@ function useTableData (_ref) {
32576
32574
  return v != null;
32577
32575
  }));
32578
32576
  currentFilterHash = objectHash(filterData);
32579
- currentPagination = _objectSpread$1c(_objectSpread$1c({}, p.pagination), {}, {
32577
+ currentPagination = _objectSpread$1e(_objectSpread$1e({}, p.pagination), {}, {
32580
32578
  current: currentFilterHash == filterHash.current ? p.pagination.current : 1
32581
32579
  });
32582
32580
  filterHash.current = currentFilterHash;
@@ -32584,7 +32582,7 @@ function useTableData (_ref) {
32584
32582
  _context3.next = 21;
32585
32583
  break;
32586
32584
  }
32587
- ssf = _objectSpread$1c({
32585
+ ssf = _objectSpread$1e({
32588
32586
  pagination: currentPagination,
32589
32587
  columns: configuration.columns,
32590
32588
  filters: filterData,
@@ -32593,12 +32591,12 @@ function useTableData (_ref) {
32593
32591
  genericProps: prefilter.toggle
32594
32592
  } : undefined);
32595
32593
  _context3.next = 15;
32596
- return apiHandler.readList(readMapping, _objectSpread$1c(_objectSpread$1c({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && (_configuration$filter22 = _configuration$filter22.toggle) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.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)));
32594
+ return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && (_configuration$filter22 = _configuration$filter22.toggle) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.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)));
32597
32595
  case 15:
32598
32596
  data = _context3.sent;
32599
- currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1c(_objectSpread$1c({}, mappingData), state.mappingData), ssf);
32597
+ currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), ssf);
32600
32598
  currentData = data.data;
32601
- currentPagination = _objectSpread$1c(_objectSpread$1c({}, currentPagination), {}, {
32599
+ currentPagination = _objectSpread$1e(_objectSpread$1e({}, currentPagination), {}, {
32602
32600
  total: data.total
32603
32601
  });
32604
32602
  _context3.next = 30;
@@ -32615,7 +32613,7 @@ function useTableData (_ref) {
32615
32613
  currentData = _data3.data;
32616
32614
  setInitData(currentData);
32617
32615
  case 27:
32618
- _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1c(_objectSpread$1c({}, p), {}, {
32616
+ _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1e(_objectSpread$1e({}, p), {}, {
32619
32617
  pagination: currentPagination,
32620
32618
  filters: filterData,
32621
32619
  data: currentData,
@@ -32624,11 +32622,11 @@ function useTableData (_ref) {
32624
32622
  currentData = _data4;
32625
32623
  currentPagination = pagination;
32626
32624
  case 30:
32627
- setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32625
+ setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32628
32626
  loading: false,
32629
32627
  data: currentData,
32630
32628
  pagination: currentPagination,
32631
- mappingData: _objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, parentData), state.mappingData), overwriteMappingData), {}, {
32629
+ mappingData: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, parentData), state.mappingData), overwriteMappingData), {}, {
32632
32630
  prefilter: prefilter
32633
32631
  }),
32634
32632
  currentFetchUrl: currentUrl
@@ -32650,7 +32648,7 @@ function useTableData (_ref) {
32650
32648
  };
32651
32649
  }();
32652
32650
  var onSelect = function onSelect(keys) {
32653
- setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32651
+ setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32654
32652
  selected: keys
32655
32653
  }));
32656
32654
  };
@@ -32661,7 +32659,7 @@ function useTableData (_ref) {
32661
32659
  return _regeneratorRuntime.wrap(function _callee4$(_context5) {
32662
32660
  while (1) switch (_context5.prev = _context5.next) {
32663
32661
  case 0:
32664
- setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32662
+ setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32665
32663
  deleting: true
32666
32664
  }));
32667
32665
  newData = _toConsumableArray(state.data);
@@ -32701,7 +32699,7 @@ function useTableData (_ref) {
32701
32699
  } finally {
32702
32700
  _iterator.f();
32703
32701
  }
32704
- mappingData = _objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, mappingData), state.mappingData), mapToggle);
32702
+ mappingData = _objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), mapToggle);
32705
32703
  deleteResult = undefined;
32706
32704
  _context4.prev = 7;
32707
32705
  if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
@@ -32791,12 +32789,12 @@ function useTableData (_ref) {
32791
32789
  break;
32792
32790
  }
32793
32791
  _context5.next = 25;
32794
- return apiHandler.readList(readMapping, _objectSpread$1c(_objectSpread$1c({}, mappingData), state.mappingData), _objectSpread$1c({
32795
- pagination: _objectSpread$1c(_objectSpread$1c({}, state.pagination), {}, {
32792
+ return apiHandler.readList(readMapping, _objectSpread$1e(_objectSpread$1e({}, mappingData), state.mappingData), _objectSpread$1e({
32793
+ pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
32796
32794
  current: current
32797
32795
  }),
32798
32796
  columns: configuration.columns,
32799
- filters: _objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && (_configuration$filter23 = _configuration$filter23.toggle) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
32797
+ filters: _objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e(_objectSpread$1e({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && (_configuration$filter23 = _configuration$filter23.toggle) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
32800
32798
  sorter: filterData.sorter
32801
32799
  }, configuration !== null && configuration !== void 0 && (_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && (_configuration$filter24 = _configuration$filter24.toggle) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.inQuery ? {
32802
32800
  genericProps: globalFilter.toggle
@@ -32807,11 +32805,11 @@ function useTableData (_ref) {
32807
32805
  total = data.total;
32808
32806
  case 28:
32809
32807
  setInitData(newInitData);
32810
- setState(_objectSpread$1c(_objectSpread$1c({}, state), {}, {
32808
+ setState(_objectSpread$1e(_objectSpread$1e({}, state), {}, {
32811
32809
  selected: [],
32812
32810
  deleting: false,
32813
32811
  data: newData,
32814
- pagination: _objectSpread$1c(_objectSpread$1c({}, state.pagination), {}, {
32812
+ pagination: _objectSpread$1e(_objectSpread$1e({}, state.pagination), {}, {
32815
32813
  current: current === 0 ? 1 : current,
32816
32814
  total: total
32817
32815
  })
@@ -32832,7 +32830,7 @@ function useTableData (_ref) {
32832
32830
  LOG$d.error(new DivaError('No global select filter defiend'));
32833
32831
  return;
32834
32832
  }
32835
- var newGlobalFilter = _objectSpread$1c({}, globalFilter);
32833
+ var newGlobalFilter = _objectSpread$1e({}, globalFilter);
32836
32834
  if (value !== null && value !== void 0 && value.length) {
32837
32835
  var selectValue = Array.isArray(value) ? value : [value];
32838
32836
  newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, selectValue.length > 1 ? [].concat(_toConsumableArray(selectValue), ['in']) : [selectValue[0], selectFilterOperation]);
@@ -32840,7 +32838,7 @@ function useTableData (_ref) {
32840
32838
  newGlobalFilter.select = {};
32841
32839
  }
32842
32840
  setGlobaFilter(newGlobalFilter);
32843
- onChange(_objectSpread$1c({
32841
+ onChange(_objectSpread$1e({
32844
32842
  pagination: state.pagination
32845
32843
  }, filterData), newGlobalFilter);
32846
32844
  };
@@ -32851,16 +32849,16 @@ function useTableData (_ref) {
32851
32849
  return;
32852
32850
  }
32853
32851
  var toggleFilter = {};
32854
- var mappingData = _objectSpread$1c({}, state.mappingData);
32852
+ var mappingData = _objectSpread$1e({}, state.mappingData);
32855
32853
  configuration.filter.toggle.fields.forEach(function (f) {
32856
32854
  mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
32857
32855
  toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
32858
32856
  });
32859
- var newGlobalFilter = _objectSpread$1c(_objectSpread$1c({}, globalFilter), {}, {
32857
+ var newGlobalFilter = _objectSpread$1e(_objectSpread$1e({}, globalFilter), {}, {
32860
32858
  toggle: globalFilter.toggle ? undefined : toggleFilter
32861
32859
  });
32862
32860
  setGlobaFilter(newGlobalFilter);
32863
- onChange(_objectSpread$1c({
32861
+ onChange(_objectSpread$1e({
32864
32862
  pagination: state.pagination
32865
32863
  }, filterData), newGlobalFilter, true, true, mappingData);
32866
32864
  };
@@ -32873,7 +32871,7 @@ function useTableData (_ref) {
32873
32871
  LOG$d.error(new DivaError('No global search filter defiend'));
32874
32872
  return;
32875
32873
  }
32876
- var newGlobalFilter = _objectSpread$1c(_objectSpread$1c({}, globalFilter), {}, {
32874
+ var newGlobalFilter = _objectSpread$1e(_objectSpread$1e({}, globalFilter), {}, {
32877
32875
  search: {}
32878
32876
  });
32879
32877
  if (value) {
@@ -32887,7 +32885,7 @@ function useTableData (_ref) {
32887
32885
  });
32888
32886
  }
32889
32887
  setGlobaFilter(newGlobalFilter);
32890
- onChange(_objectSpread$1c({
32888
+ onChange(_objectSpread$1e({
32891
32889
  pagination: state.pagination
32892
32890
  }, filterData), newGlobalFilter);
32893
32891
  };
@@ -32897,20 +32895,20 @@ function useTableData (_ref) {
32897
32895
  LOG$d.error(new DivaError('No global period filter defiend'));
32898
32896
  return;
32899
32897
  }
32900
- var newGlobalFilter = _objectSpread$1c({}, globalFilter);
32898
+ var newGlobalFilter = _objectSpread$1e({}, globalFilter);
32901
32899
  newGlobalFilter.timeStamp = {
32902
32900
  fromTimeStamp: [from],
32903
32901
  toTimeStamp: [to]
32904
32902
  };
32905
32903
  if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
32906
- onChange(_objectSpread$1c({
32904
+ onChange(_objectSpread$1e({
32907
32905
  pagination: state.pagination
32908
- }, filterData), undefined, true, undefined, _objectSpread$1c(_objectSpread$1c({}, state.mappingData), {}, {
32906
+ }, filterData), undefined, true, undefined, _objectSpread$1e(_objectSpread$1e({}, state.mappingData), {}, {
32909
32907
  from: from,
32910
32908
  to: to
32911
32909
  }));
32912
32910
  };
32913
- return _objectSpread$1c(_objectSpread$1c({}, state), {}, {
32911
+ return _objectSpread$1e(_objectSpread$1e({}, state), {}, {
32914
32912
  title: title,
32915
32913
  configuration: configuration,
32916
32914
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter, persistFilters ? filterData : undefined),
@@ -32956,8 +32954,8 @@ function StandardTable (_ref) {
32956
32954
  });
32957
32955
  }
32958
32956
 
32959
- function ownKeys$1b(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; }
32960
- function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32957
+ function ownKeys$1d(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; }
32958
+ function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32961
32959
  function Table (props) {
32962
32960
  var root = useStore();
32963
32961
  var variant = useMemo(function () {
@@ -32965,15 +32963,15 @@ function Table (props) {
32965
32963
  return config.variant;
32966
32964
  }, [props.id]);
32967
32965
  return /*#__PURE__*/jsxs(Fragment, {
32968
- children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1b({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1b({}, props))]
32966
+ children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1d({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1d({}, props))]
32969
32967
  });
32970
32968
  }
32971
32969
 
32972
32970
  function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(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; } } }; }
32973
32971
  function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(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$j(r, a) : void 0; } }
32974
32972
  function _arrayLikeToArray$j(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; }
32975
- function ownKeys$1a(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; }
32976
- function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32973
+ function ownKeys$1c(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; }
32974
+ function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32977
32975
  function useAGGrid (_ref) {
32978
32976
  var id = _ref.id,
32979
32977
  filter = _ref.filter,
@@ -33067,7 +33065,7 @@ function useAGGrid (_ref) {
33067
33065
  value = _ref3[1];
33068
33066
  if (_idx == 0) {
33069
33067
  var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
33070
- rdat.push(_objectSpread$1a(_objectSpread$1a({}, rd), {}, {
33068
+ rdat.push(_objectSpread$1c(_objectSpread$1c({}, rd), {}, {
33071
33069
  grouping: [idx.toString()]
33072
33070
  }));
33073
33071
  var sp = key.split(':');
@@ -33207,11 +33205,11 @@ var loader = "loader-LaXZy";
33207
33205
  var flex = "flex-yQdda";
33208
33206
  var bar = "bar-Y663f";
33209
33207
  var value = "value-FCA-6";
33210
- var css_248z$H = ".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";
33211
- styleInject(css_248z$H);
33208
+ var css_248z$G = ".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";
33209
+ styleInject(css_248z$G);
33212
33210
 
33213
- function ownKeys$19(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; }
33214
- function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33211
+ function ownKeys$1b(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; }
33212
+ function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33215
33213
  var AGChart = function AGChart(_ref) {
33216
33214
  var data = _ref.data;
33217
33215
  var groupedData = [];
@@ -33219,11 +33217,11 @@ var AGChart = function AGChart(_ref) {
33219
33217
  data.forEach(function (dt) {
33220
33218
  if (dt.count == 0) return;
33221
33219
  if (groupedData.length > dt.grouping[0]) {
33222
- groupedData[dt.grouping[0]].push(_objectSpread$19(_objectSpread$19({}, dt), {}, {
33220
+ groupedData[dt.grouping[0]].push(_objectSpread$1b(_objectSpread$1b({}, dt), {}, {
33223
33221
  count: Number(dt.count)
33224
33222
  }));
33225
33223
  } else {
33226
- groupedData.push([_objectSpread$19(_objectSpread$19({}, dt), {}, {
33224
+ groupedData.push([_objectSpread$1b(_objectSpread$1b({}, dt), {}, {
33227
33225
  count: Number(dt.count)
33228
33226
  })]);
33229
33227
  }
@@ -33264,8 +33262,8 @@ var AGChart = function AGChart(_ref) {
33264
33262
  });
33265
33263
  };
33266
33264
 
33267
- function ownKeys$18(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; }
33268
- function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33265
+ function ownKeys$1a(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; }
33266
+ function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33269
33267
  var AGGrid = /*#__PURE__*/memo(function (_ref) {
33270
33268
  var id = _ref.id,
33271
33269
  filter = _ref.filter,
@@ -33358,7 +33356,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
33358
33356
  });
33359
33357
  });
33360
33358
  }
33361
- return _objectSpread$18(_objectSpread$18({}, column), {}, {
33359
+ return _objectSpread$1a(_objectSpread$1a({}, column), {}, {
33362
33360
  cellRenderer: renderer
33363
33361
  });
33364
33362
  });
@@ -33628,8 +33626,8 @@ var CustomText = function CustomText(_ref) {
33628
33626
  };
33629
33627
  var CustomText$1 = observer(CustomText);
33630
33628
 
33631
- function ownKeys$17(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; }
33632
- function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33629
+ function ownKeys$19(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; }
33630
+ function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33633
33631
  function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(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; } } }; }
33634
33632
  function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(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$i(r, a) : void 0; } }
33635
33633
  function _arrayLikeToArray$i(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; }
@@ -33692,7 +33690,7 @@ function useFilterBoxData (id) {
33692
33690
  } finally {
33693
33691
  _iterator.f();
33694
33692
  }
33695
- return _objectSpread$17(_objectSpread$17({}, state), ob);
33693
+ return _objectSpread$19(_objectSpread$19({}, state), ob);
33696
33694
  }
33697
33695
  return {
33698
33696
  configuration: configuration,
@@ -33706,8 +33704,8 @@ function useFilterBoxData (id) {
33706
33704
  function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(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; } } }; }
33707
33705
  function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(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$h(r, a) : void 0; } }
33708
33706
  function _arrayLikeToArray$h(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; }
33709
- function ownKeys$16(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; }
33710
- function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33707
+ function ownKeys$18(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; }
33708
+ function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33711
33709
  var FilterBox = /*#__PURE__*/memo(function (_ref) {
33712
33710
  var id = _ref.id,
33713
33711
  onChangeFilter = _ref.onChangeFilter,
@@ -33735,7 +33733,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
33735
33733
  }), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Selector, {
33736
33734
  mode: "single",
33737
33735
  apiInterface: filter.requestOptions,
33738
- wholeData: _objectSpread$16(_objectSpread$16({}, state.filter), {}, {
33736
+ wholeData: _objectSpread$18(_objectSpread$18({}, state.filter), {}, {
33739
33737
  tab: tab
33740
33738
  }),
33741
33739
  mapping: filter.requestMapping,
@@ -33967,8 +33965,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
33967
33965
  return false;
33968
33966
  });
33969
33967
 
33970
- function ownKeys$15(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; }
33971
- function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33968
+ function ownKeys$17(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; }
33969
+ function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33972
33970
  function useUIBuilderData (id) {
33973
33971
  var save = undefined;
33974
33972
  var root = useStore();
@@ -34000,7 +33998,7 @@ function useUIBuilderData (id) {
34000
33998
  var configuration = _useMemo.configuration;
34001
33999
  useEffect(function () {
34002
34000
  root.dataStore.getApi2SessionGuid().then(function (res) {
34003
- return setFilter(_objectSpread$15(_objectSpread$15({}, filter), {}, {
34001
+ return setFilter(_objectSpread$17(_objectSpread$17({}, filter), {}, {
34004
34002
  sessionGuid: res
34005
34003
  }));
34006
34004
  });
@@ -34023,8 +34021,8 @@ function useUIBuilderData (id) {
34023
34021
  };
34024
34022
  }
34025
34023
 
34026
- function ownKeys$14(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; }
34027
- function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34024
+ function ownKeys$16(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; }
34025
+ function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34028
34026
  function UIBuilder(_ref) {
34029
34027
  var id = _ref.id;
34030
34028
  var state = useUIBuilderData(id);
@@ -34051,7 +34049,7 @@ function UIBuilder(_ref) {
34051
34049
  override = {
34052
34050
  value: newFilter[item.field],
34053
34051
  setValue: function setValue(newVal) {
34054
- var newFilter = _objectSpread$14({}, state.filter);
34052
+ var newFilter = _objectSpread$16({}, state.filter);
34055
34053
  newFilter[item.field] = newVal;
34056
34054
  state.setFilter(newFilter);
34057
34055
  }
@@ -34099,7 +34097,7 @@ function UIBuilder(_ref) {
34099
34097
  case 'AGGrid':
34100
34098
  return /*#__PURE__*/jsx(AGGrid, {
34101
34099
  id: item.id,
34102
- filter: _objectSpread$14({
34100
+ filter: _objectSpread$16({
34103
34101
  optionCodices: JSON.stringify(state.data)
34104
34102
  }, state.filter),
34105
34103
  override: item.id == 'AGGridTopOptionValues' ? {
@@ -34154,8 +34152,8 @@ var supplier = "supplier-8sm0I";
34154
34152
  var dealer = "dealer-xgnku";
34155
34153
  var association = "association-b8uVW";
34156
34154
  var campaign = "campaign-zlrTx";
34157
- var css_248z$G = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n\n.campaign-zlrTx {\n border-bottom: #64b5f6 solid 5px;\n}\n";
34158
- styleInject(css_248z$G);
34155
+ var css_248z$F = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n\n.campaign-zlrTx {\n border-bottom: #64b5f6 solid 5px;\n}\n";
34156
+ styleInject(css_248z$F);
34159
34157
 
34160
34158
  function getColorClass(data) {
34161
34159
  switch (data.type) {
@@ -34263,8 +34261,8 @@ var OrgItem = function OrgItem(_ref) {
34263
34261
  };
34264
34262
  var OrgItem$1 = observer(OrgItem);
34265
34263
 
34266
- function ownKeys$13(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; }
34267
- function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34264
+ function ownKeys$15(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; }
34265
+ function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34268
34266
  function useTransformJson (_ref) {
34269
34267
  var id = _ref.id;
34270
34268
  var _useState = useState(),
@@ -34330,7 +34328,7 @@ function useTransformJson (_ref) {
34330
34328
  }();
34331
34329
  var _transformData = function transformData(data, itemChain, parentOrgId) {
34332
34330
  var _data$children;
34333
- return _objectSpread$13(_objectSpread$13({}, data), {}, {
34331
+ return _objectSpread$15(_objectSpread$15({}, data), {}, {
34334
34332
  label: /*#__PURE__*/jsx(OrgItem$1, {
34335
34333
  data: data,
34336
34334
  configuration: configuration,
@@ -34390,8 +34388,8 @@ var arrow = "arrow-Rd0hp";
34390
34388
  var openClass = "open-class--gGXs";
34391
34389
  var breadcrumb = "breadcrumb-Z0VvH";
34392
34390
  var selected = "selected-w-sfW";
34393
- var css_248z$F = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
34394
- styleInject(css_248z$F);
34391
+ var css_248z$E = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
34392
+ styleInject(css_248z$E);
34395
34393
 
34396
34394
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
34397
34395
  var open = _ref.open,
@@ -34424,8 +34422,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
34424
34422
 
34425
34423
  var collapsibleInner = "collapsible-inner-rI8kI";
34426
34424
  var toolbarLeft = "toolbar-left-X9WRo";
34427
- var css_248z$E = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
34428
- styleInject(css_248z$E);
34425
+ var css_248z$D = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
34426
+ styleInject(css_248z$D);
34429
34427
 
34430
34428
  var Legend = function Legend(props) {
34431
34429
  return /*#__PURE__*/jsx(List$1, {
@@ -34479,8 +34477,8 @@ var Legend = function Legend(props) {
34479
34477
  var buttonsWrapper = "buttons-wrapper-Bubkr";
34480
34478
  var mask = "mask-ssagp";
34481
34479
  var transformWrapper = "transform-wrapper--8t0v";
34482
- var css_248z$D = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
34483
- styleInject(css_248z$D);
34480
+ var css_248z$C = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
34481
+ styleInject(css_248z$C);
34484
34482
 
34485
34483
  var ZoomWrapper = function ZoomWrapper(_ref) {
34486
34484
  var _children = _ref.children,
@@ -34990,8 +34988,8 @@ function useCatalogEditor (id) {
34990
34988
  };
34991
34989
  }
34992
34990
 
34993
- function ownKeys$12(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; }
34994
- function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34991
+ function ownKeys$14(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; }
34992
+ function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34995
34993
  function DragDropUpload(_ref) {
34996
34994
  var api2Params = _ref.api2Params,
34997
34995
  catalogId = _ref.catalogId,
@@ -35099,7 +35097,7 @@ function DragDropUpload(_ref) {
35099
35097
  children: [importStarted && /*#__PURE__*/jsx("p", {
35100
35098
  children: t('backoffice.catalogeditor.classimportstarted')
35101
35099
  }), !importStarted && /*#__PURE__*/jsxs(Fragment, {
35102
- children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$12(_objectSpread$12({}, props), {}, {
35100
+ children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$14(_objectSpread$14({}, props), {}, {
35103
35101
  children: [/*#__PURE__*/jsx("p", {
35104
35102
  className: "ant-upload-drag-icon",
35105
35103
  children: /*#__PURE__*/jsx(InboxOutlined, {})
@@ -35316,8 +35314,8 @@ function CatalogEditor(_ref) {
35316
35314
  }
35317
35315
  var CatalogEditor$1 = observer(CatalogEditor);
35318
35316
 
35319
- function ownKeys$11(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; }
35320
- function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35317
+ function ownKeys$13(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; }
35318
+ function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35321
35319
  var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
35322
35320
  var _root$contentStore$bo, _root$contentStore$ri;
35323
35321
  var root = useStore();
@@ -35332,7 +35330,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
35332
35330
  style: {
35333
35331
  display: 'contents'
35334
35332
  },
35335
- children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$11(_objectSpread$11({}, props), {}, {
35333
+ children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$13(_objectSpread$13({}, props), {}, {
35336
35334
  ref: ref,
35337
35335
  darkMode: root.contentStore.theme == 'darkmode',
35338
35336
  jwt: root.dataStore.jwt,
@@ -35342,8 +35340,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
35342
35340
  });
35343
35341
  var Spreadsheet = observer(SpreadsheetWrapper);
35344
35342
 
35345
- function ownKeys$10(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; }
35346
- function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35343
+ function ownKeys$12(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; }
35344
+ function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35347
35345
 
35348
35346
  // Type definition for the context state
35349
35347
 
@@ -35365,14 +35363,14 @@ var useEnricherContext = function useEnricherContext() {
35365
35363
  loading: loading,
35366
35364
  setOptions: function setOptions(options) {
35367
35365
  var state = root.contextStore.getContext('enricher');
35368
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$10(_objectSpread$10({}, state[stateKey]), {}, {
35366
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$12(_objectSpread$12({}, state[stateKey]), {}, {
35369
35367
  options: options,
35370
35368
  loading: false
35371
35369
  })));
35372
35370
  },
35373
35371
  setLoading: function setLoading(loading) {
35374
35372
  var state = root.contextStore.getContext('enricher');
35375
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$10(_objectSpread$10({}, state[stateKey]), {}, {
35373
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$12(_objectSpread$12({}, state[stateKey]), {}, {
35376
35374
  loading: loading
35377
35375
  })));
35378
35376
  }
@@ -35496,7 +35494,7 @@ var useEnricherContext = function useEnricherContext() {
35496
35494
  }, [urlPackageId, getContext().packageId, setSelectedPackage]);
35497
35495
 
35498
35496
  // Return context + handlers
35499
- return _objectSpread$10(_objectSpread$10({}, getContext()), {}, {
35497
+ return _objectSpread$12(_objectSpread$12({}, getContext()), {}, {
35500
35498
  setSelectedSerie: setSelectedSerie,
35501
35499
  setSelectedItem: setSelectedItem,
35502
35500
  setSelectedFeature: setSelectedFeature,
@@ -36425,8 +36423,8 @@ function useModule$1 (currentModules) {
36425
36423
  };
36426
36424
  }
36427
36425
 
36428
- function ownKeys$$(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; }
36429
- function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36426
+ function ownKeys$11(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; }
36427
+ function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36430
36428
  /**
36431
36429
  * Creates a column configuration for translated fields in a spreadsheet
36432
36430
  *
@@ -36454,7 +36452,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
36454
36452
  acc[key] = "".concat(customParams[key], ".").concat(language);
36455
36453
  return acc;
36456
36454
  }, {}) : undefined;
36457
- return maxLength !== undefined ? _objectSpread$$(_objectSpread$$({}, translatedCustomParams), {}, {
36455
+ return maxLength !== undefined ? _objectSpread$11(_objectSpread$11({}, translatedCustomParams), {}, {
36458
36456
  maxLength: maxLength
36459
36457
  }) : translatedCustomParams;
36460
36458
  };
@@ -37565,6 +37563,196 @@ var useCatalogVersionDialog = function useCatalogVersionDialog() {
37565
37563
  };
37566
37564
  };
37567
37565
 
37566
+ function ownKeys$10(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; }
37567
+ function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
37568
+
37569
+ /**
37570
+ * The facts the filter rewrite needs about the user's organization. They mirror the inputs of
37571
+ * `automaticPublishingCheck` in ./index.tsx, which derives the displayed cell value - keep the two in sync.
37572
+ */
37573
+
37574
+ /**
37575
+ * Rewrites a filter on the automatic publishing column so it matches the value the column displays instead of the
37576
+ * raw database field. The displayed value is derived (see `automaticPublishingCheck` in ./index.tsx):
37577
+ *
37578
+ * - a package created in the current organization that is not based on another package always shows false
37579
+ * - with automatic publishing enabled on organization level, the value is whether NO package of the user's
37580
+ * organizations depends on it - the stored setting is ignored
37581
+ * - otherwise the stored setting decides, where a missing value means false
37582
+ *
37583
+ * The organization-level facts are constant for every row of one request, so the filter can be rewritten into
37584
+ * conditions on the fields that drive the displayed value.
37585
+ *
37586
+ * @param filterModel the full diva filter model
37587
+ * @param context the organization facts the rewrite needs
37588
+ * @returns the filter model with every condition on the column replaced, or undefined if nothing remains
37589
+ */
37590
+ function parseAutomaticPublishingFilterModel(filterModel, context) {
37591
+ if (!filterModel) {
37592
+ return filterModel;
37593
+ }
37594
+ return transformFilterNode$1(filterModel, context);
37595
+ }
37596
+ function transformFilterNode$1(node, context) {
37597
+ if (node.filterType === 'join') {
37598
+ var joinNode = node;
37599
+ var transformed = joinNode.conditions.map(function (condition) {
37600
+ return transformFilterNode$1(condition, context);
37601
+ });
37602
+ //a removed condition matches every row: an AND just drops it, while it satisfies an OR entirely
37603
+ if (joinNode.type === 'OR' && transformed.some(function (condition) {
37604
+ return condition === undefined;
37605
+ })) {
37606
+ return undefined;
37607
+ }
37608
+ var conditions = transformed.filter(function (condition) {
37609
+ return condition !== undefined;
37610
+ });
37611
+ if (conditions.length === 0) {
37612
+ return undefined;
37613
+ }
37614
+ return _objectSpread$10(_objectSpread$10({}, joinNode), {}, {
37615
+ conditions: conditions
37616
+ });
37617
+ }
37618
+ if (node.colId !== context.colId) {
37619
+ return node;
37620
+ }
37621
+ var selected = readSelectedValues(node);
37622
+ if (!selected) {
37623
+ return node;
37624
+ }
37625
+ //deselecting every value matches nothing - kept as is, the adapter suppresses the request for an empty set filter
37626
+ if (!selected.trueSelected && !selected.falseSelected) {
37627
+ return node;
37628
+ }
37629
+ //selecting both values matches every row, so the condition disappears
37630
+ if (selected.trueSelected && selected.falseSelected) {
37631
+ return undefined;
37632
+ }
37633
+ return selected.trueSelected ? displayedTrueFilter(context) : displayedFalseFilter(context);
37634
+ }
37635
+
37636
+ /**
37637
+ * Reads which boolean values a condition on the column selects - from the set filter the grid uses, or from a
37638
+ * boolean advanced filter condition. Returns undefined for any other condition shape, which is then kept as is.
37639
+ */
37640
+ function readSelectedValues(node) {
37641
+ var filterType = node.filterType;
37642
+ if (filterType === 'set' && 'values' in node) {
37643
+ var values = node.values.map(function (value) {
37644
+ return String(value);
37645
+ });
37646
+ return {
37647
+ trueSelected: values.includes('true'),
37648
+ falseSelected: values.includes('false')
37649
+ };
37650
+ }
37651
+ if (filterType === 'boolean') {
37652
+ return {
37653
+ trueSelected: node.type === 'true',
37654
+ falseSelected: node.type === 'false'
37655
+ };
37656
+ }
37657
+ return undefined;
37658
+ }
37659
+
37660
+ /** The package was created in the current organization and is not based on another package - always displayed false. */
37661
+ function createdHereAndNotBased(context) {
37662
+ return {
37663
+ filterType: 'join',
37664
+ type: 'AND',
37665
+ conditions: [{
37666
+ colId: 'organizationId',
37667
+ filterType: 'text',
37668
+ type: 'equals',
37669
+ filter: context.organizationId
37670
+ }, {
37671
+ colId: 'basedPackageId',
37672
+ filterType: 'text',
37673
+ type: 'blank'
37674
+ }]
37675
+ };
37676
+ }
37677
+ function notCreatedHereOrBased(context) {
37678
+ return {
37679
+ filterType: 'join',
37680
+ type: 'OR',
37681
+ conditions: [{
37682
+ colId: 'organizationId',
37683
+ filterType: 'text',
37684
+ type: 'notEqual',
37685
+ filter: context.organizationId
37686
+ }, {
37687
+ colId: 'basedPackageId',
37688
+ filterType: 'text',
37689
+ type: 'notBlank'
37690
+ }]
37691
+ };
37692
+ }
37693
+
37694
+ /** The organizations whose depending packages the displayed value considers. */
37695
+ function relevantOrganizationIds(context) {
37696
+ return [context.organizationId].concat(_toConsumableArray(context.parentOrganizationIds));
37697
+ }
37698
+ function displayedTrueFilter(context) {
37699
+ return {
37700
+ filterType: 'join',
37701
+ type: 'AND',
37702
+ conditions: [notCreatedHereOrBased(context)].concat(_toConsumableArray(context.automaticPublishingEnabled ?
37703
+ //enabled on organization level: displayed true when no package of the user's organizations depends on it
37704
+ relevantOrganizationIds(context).map(function (organizationId) {
37705
+ return {
37706
+ colId: 'noDependingPackagesInOrganization',
37707
+ filterType: 'text',
37708
+ type: 'equals',
37709
+ filter: organizationId
37710
+ };
37711
+ }) :
37712
+ //otherwise the stored setting decides
37713
+ [{
37714
+ colId: context.colId,
37715
+ filterType: 'set',
37716
+ values: ['true']
37717
+ }]))
37718
+ };
37719
+ }
37720
+ function displayedFalseFilter(context) {
37721
+ return {
37722
+ filterType: 'join',
37723
+ type: 'OR',
37724
+ conditions: [createdHereAndNotBased(context)].concat(_toConsumableArray(context.automaticPublishingEnabled ?
37725
+ //wrapped in single-condition ANDs so the server adapter does not group the equals conditions of this OR
37726
+ //into one set filter, which the filter-only field on the server cannot translate
37727
+ relevantOrganizationIds(context).map(function (organizationId) {
37728
+ return {
37729
+ filterType: 'join',
37730
+ type: 'AND',
37731
+ conditions: [{
37732
+ colId: 'dependingPackagesInOrganization',
37733
+ filterType: 'text',
37734
+ type: 'equals',
37735
+ filter: organizationId
37736
+ }]
37737
+ };
37738
+ }) :
37739
+ //a boolean that was never stored is displayed as false, so the missing value is matched explicitly
37740
+ [{
37741
+ filterType: 'join',
37742
+ type: 'OR',
37743
+ conditions: [{
37744
+ colId: context.colId,
37745
+ filterType: 'set',
37746
+ values: ['false']
37747
+ }, {
37748
+ colId: context.colId,
37749
+ filterType: 'text',
37750
+ type: 'blank'
37751
+ }]
37752
+ }]))
37753
+ };
37754
+ }
37755
+
37568
37756
  var TablePackages = observer(function () {
37569
37757
  var _root$dataStore$curre;
37570
37758
  var root = useStore();
@@ -37942,7 +38130,21 @@ var TablePackages = observer(function () {
37942
38130
  var data = _ref10.data;
37943
38131
  return automaticPublishingCheck(data).tooltip;
37944
38132
  },
37945
- isDictionary: true,
38133
+ //the displayed value is derived by automaticPublishingCheck above, so a filter on the raw field would not
38134
+ //match what the user sees - the parser rewrites it onto the fields that drive the displayed value
38135
+ filterModelParser: function filterModelParser(_ref11) {
38136
+ var _root$dataStore$curre4, _root$dataStore$curre5, _root$dataStore$curre6;
38137
+ var filterModel = _ref11.filterModel;
38138
+ return parseAutomaticPublishingFilterModel(filterModel, {
38139
+ colId: "settings.".concat(organizationId, ".automaticPublishing"),
38140
+ organizationId: organizationId,
38141
+ automaticPublishingEnabled: !!((_root$dataStore$curre4 = root.dataStore.currentOrganization) !== null && _root$dataStore$curre4 !== void 0 && (_root$dataStore$curre4 = _root$dataStore$curre4.settings) !== null && _root$dataStore$curre4 !== void 0 && _root$dataStore$curre4.automaticPublishing),
38142
+ parentOrganizationIds: ((_root$dataStore$curre5 = (_root$dataStore$curre6 = root.dataStore.currentOrganization) === null || _root$dataStore$curre6 === void 0 ? void 0 : _root$dataStore$curre6.parentOrganizations) !== null && _root$dataStore$curre5 !== void 0 ? _root$dataStore$curre5 : []).map(function (parentOrg) {
38143
+ return parentOrg._id;
38144
+ })
38145
+ });
38146
+ },
38147
+ isDictionary: 1,
37946
38148
  defaultValue: false,
37947
38149
  additionalFields: ['dependingPackages']
37948
38150
  }, {
@@ -37967,7 +38169,7 @@ var TablePackages = observer(function () {
37967
38169
  field: "published.".concat(organizationId, ".publishDate"),
37968
38170
  cellDataType: 'dateString',
37969
38171
  editable: false,
37970
- isDictionary: true
38172
+ isDictionary: 1
37971
38173
  }, {
37972
38174
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
37973
38175
  field: 'createdByDisplayText',
@@ -37980,7 +38182,7 @@ var TablePackages = observer(function () {
37980
38182
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
37981
38183
  field: "published.".concat(organizationId, ".publishedByDisplayText"),
37982
38184
  editable: false,
37983
- isDictionary: true
38185
+ isDictionary: 1
37984
38186
  }, {
37985
38187
  headerName: 'backoffice.idmEnricher.general.label._id',
37986
38188
  field: '_id',
@@ -38893,15 +39095,15 @@ function PropertyObjectExpandedEditor(_ref) {
38893
39095
  });
38894
39096
  }
38895
39097
 
38896
- function ownKeys$_(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; }
38897
- function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39098
+ function ownKeys$$(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; }
39099
+ function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
38898
39100
  var collapseSecondaryLanguages = function collapseSecondaryLanguages(columnConfig) {
38899
39101
  if (!('children' in columnConfig)) {
38900
39102
  return columnConfig;
38901
39103
  }
38902
- return _objectSpread$_(_objectSpread$_({}, columnConfig), {}, {
39104
+ return _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
38903
39105
  children: columnConfig.children.map(function (child, index) {
38904
- return index === 0 ? child : _objectSpread$_(_objectSpread$_({}, child), {}, {
39106
+ return index === 0 ? child : _objectSpread$$(_objectSpread$$({}, child), {}, {
38905
39107
  columnGroupShow: 'open'
38906
39108
  });
38907
39109
  })
@@ -38993,7 +39195,7 @@ var EnrichmentTable = observer(function (_ref) {
38993
39195
  return _toConsumableArray(new Set([].concat(_toConsumableArray(p), [v.addProperty])));
38994
39196
  });
38995
39197
  setPropertyMeta(function (p) {
38996
- return _objectSpread$_(_objectSpread$_({}, p), {}, _defineProperty({}, v.addProperty, {
39198
+ return _objectSpread$$(_objectSpread$$({}, p), {}, _defineProperty({}, v.addProperty, {
38997
39199
  codexKey: v.codexKey,
38998
39200
  description: v.description,
38999
39201
  type: v.type
@@ -39085,7 +39287,7 @@ var EnrichmentTable = observer(function (_ref) {
39085
39287
  if (type !== 'detailInfos') {
39086
39288
  var keys = event.updates.flatMap(function (u) {
39087
39289
  var _u$data, _u$data2, _u$data3;
39088
- return Object.keys(_objectSpread$_(_objectSpread$_(_objectSpread$_({}, (_u$data = u.data) === null || _u$data === void 0 ? void 0 : _u$data.prop), (_u$data2 = u.data) === null || _u$data2 === void 0 ? void 0 : _u$data2.origProp), (_u$data3 = u.data) === null || _u$data3 === void 0 ? void 0 : _u$data3.translatedProp));
39290
+ return Object.keys(_objectSpread$$(_objectSpread$$(_objectSpread$$({}, (_u$data = u.data) === null || _u$data === void 0 ? void 0 : _u$data.prop), (_u$data2 = u.data) === null || _u$data2 === void 0 ? void 0 : _u$data2.origProp), (_u$data3 = u.data) === null || _u$data3 === void 0 ? void 0 : _u$data3.translatedProp));
39089
39291
  });
39090
39292
  if (keys.length) {
39091
39293
  setShownProps(function (prev) {
@@ -39126,7 +39328,7 @@ var EnrichmentTable = observer(function (_ref) {
39126
39328
  if (type === 'items' && !selectedSerie) {
39127
39329
  return oldDataRef.current;
39128
39330
  }
39129
- var newData = _objectSpread$_(_objectSpread$_({}, baseApplicationData), {}, {
39331
+ var newData = _objectSpread$$(_objectSpread$$({}, baseApplicationData), {}, {
39130
39332
  subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
39131
39333
  });
39132
39334
  oldDataRef.current = newData;
@@ -39164,7 +39366,7 @@ var EnrichmentTable = observer(function (_ref) {
39164
39366
  return;
39165
39367
  }
39166
39368
  setPropertyMeta(function (prev) {
39167
- var next = _objectSpread$_({}, prev);
39369
+ var next = _objectSpread$$({}, prev);
39168
39370
  usage.forEach(function (_ref4) {
39169
39371
  var _next$key, _next$key2, _next$key3;
39170
39372
  var key = _ref4.key,
@@ -39282,9 +39484,9 @@ var EnrichmentTable = observer(function (_ref) {
39282
39484
  };
39283
39485
 
39284
39486
  // a text property with more than one language is a column group, whose buttons belong on the group header
39285
- return 'children' in columnConfig ? _objectSpread$_(_objectSpread$_({}, columnConfig), {}, {
39487
+ return 'children' in columnConfig ? _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
39286
39488
  headerGroupComponentParams: headerParams
39287
- }) : _objectSpread$_(_objectSpread$_({}, columnConfig), {}, {
39489
+ }) : _objectSpread$$(_objectSpread$$({}, columnConfig), {}, {
39288
39490
  headerComponentParams: headerParams
39289
39491
  });
39290
39492
  })), _toConsumableArray(viewOnly ? [] : [{
@@ -39361,8 +39563,8 @@ var EnrichmentTable = observer(function (_ref) {
39361
39563
  });
39362
39564
 
39363
39565
  var rowInherited = "rowInherited-Mszxm";
39364
- var css_248z$C = ".rowInherited-Mszxm {\n opacity: 0.6;\n}\n";
39365
- styleInject(css_248z$C);
39566
+ var css_248z$B = ".rowInherited-Mszxm {\n opacity: 0.6;\n}\n";
39567
+ styleInject(css_248z$B);
39366
39568
 
39367
39569
  var TableTabGroups = observer(function () {
39368
39570
  var _useTranslation = useTranslation(),
@@ -39808,8 +40010,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
39808
40010
  return value === getDefaultValue(type);
39809
40011
  };
39810
40012
 
39811
- 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; }
39812
- 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; }
40013
+ function ownKeys$_(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; }
40014
+ function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39813
40015
  /**
39814
40016
  * Custom hook to manage price factor state and logic
39815
40017
  * @param props - Hook configuration
@@ -39846,7 +40048,7 @@ function usePriceFactor(_ref) {
39846
40048
  var updateEntries = function updateEntries(newTypeEntries) {
39847
40049
  setHasChangedCurrentType(true);
39848
40050
  setEntries(function (prev) {
39849
- return _objectSpread$Z(_objectSpread$Z({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
40051
+ return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
39850
40052
  });
39851
40053
  };
39852
40054
  var handleModalOpen = useCallback(function () {
@@ -39883,7 +40085,7 @@ function usePriceFactor(_ref) {
39883
40085
  // Always ensure at least one entry when switching types
39884
40086
  var newEntries = hasChangedCurrentType ? [] : entries[newType];
39885
40087
  setEntries(function (prev) {
39886
- return _objectSpread$Z(_objectSpread$Z({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
40088
+ return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
39887
40089
  value: getDefaultValue(newType),
39888
40090
  isValid: true
39889
40091
  }]));
@@ -39981,14 +40183,14 @@ function usePriceFactor(_ref) {
39981
40183
  };
39982
40184
  }
39983
40185
 
39984
- var cell$1 = "cell-Noc7s";
40186
+ var cell = "cell-Noc7s";
39985
40187
  var typeSelector = "typeSelector-Y8Yly";
39986
40188
  var space = "space-T5Mkd";
39987
40189
  var input$1 = "input-SK-Fo";
39988
40190
  var addButton$1 = "addButton-AVN8Y";
39989
40191
  var helpText = "helpText-QYQQF";
39990
- var css_248z$B = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
39991
- styleInject(css_248z$B);
40192
+ var css_248z$A = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
40193
+ styleInject(css_248z$A);
39992
40194
 
39993
40195
  function PriceFactorCellRenderer(props) {
39994
40196
  var data = props.data,
@@ -40115,7 +40317,7 @@ function PriceFactorCellRenderer(props) {
40115
40317
  });
40116
40318
  return /*#__PURE__*/jsxs(Fragment, {
40117
40319
  children: [/*#__PURE__*/jsx("div", {
40118
- className: cell$1,
40320
+ className: cell,
40119
40321
  onClick: onClick,
40120
40322
  onDoubleClick: onDoubleClick,
40121
40323
  children: formatListValue(value || [], type, i18n.language)
@@ -40204,8 +40406,8 @@ var difference = "difference-xT9ZP";
40204
40406
  var differencePositive = "differencePositive-hGhZO";
40205
40407
  var differenceNegative = "differenceNegative-3CEZA";
40206
40408
  var differenceNeutral = "differenceNeutral-wx8oE";
40207
- var css_248z$A = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
40208
- styleInject(css_248z$A);
40409
+ var css_248z$z = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
40410
+ styleInject(css_248z$z);
40209
40411
 
40210
40412
  function PriceDisplayCellRenderer(props) {
40211
40413
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -40315,12 +40517,12 @@ function getPriceFeatureGroups(selectedSerie, language) {
40315
40517
 
40316
40518
  var input = "input-leHam";
40317
40519
  var disabled$1 = "disabled-Llkqu";
40318
- var css_248z$z = ".input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
40319
- styleInject(css_248z$z);
40520
+ var css_248z$y = ".input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
40521
+ styleInject(css_248z$y);
40320
40522
 
40321
40523
  var _excluded$8 = ["onSave", "value"];
40322
- 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; }
40323
- 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; }
40524
+ 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; }
40525
+ 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; }
40324
40526
  function PriceFactorInput(_ref) {
40325
40527
  var _onSave = _ref.onSave,
40326
40528
  value = _ref.value,
@@ -40336,7 +40538,7 @@ function PriceFactorInput(_ref) {
40336
40538
  title: props.tooltip,
40337
40539
  children: /*#__PURE__*/jsx("div", {
40338
40540
  className: classNames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
40339
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$Y(_objectSpread$Y({}, props), {}, {
40541
+ children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$Z(_objectSpread$Z({}, props), {}, {
40340
40542
  isNotInAGGrid: true,
40341
40543
  value: innerValue,
40342
40544
  onSave: function onSave(data, value) {
@@ -40350,8 +40552,8 @@ function PriceFactorInput(_ref) {
40350
40552
 
40351
40553
  var inputHeader = "input-header--4KDP";
40352
40554
  var factorInput = "factor-input-MX85Z";
40353
- var css_248z$y = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
40354
- styleInject(css_248z$y);
40555
+ var css_248z$x = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
40556
+ styleInject(css_248z$x);
40355
40557
 
40356
40558
  function PriceFactorHeaderComponent(_ref) {
40357
40559
  var onSave = _ref.onSave,
@@ -40392,8 +40594,8 @@ function PriceFactorHeaderComponent(_ref) {
40392
40594
 
40393
40595
  var root$d = "root-SA2Dd";
40394
40596
  var contentWrapper$1 = "content-wrapper-KSvuc";
40395
- var css_248z$x = ".root-SA2Dd {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-KSvuc {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
40396
- styleInject(css_248z$x);
40597
+ var css_248z$w = ".root-SA2Dd {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-KSvuc {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
40598
+ styleInject(css_248z$w);
40397
40599
 
40398
40600
  function Setting(_ref) {
40399
40601
  var title = _ref.title,
@@ -40412,8 +40614,8 @@ function Setting(_ref) {
40412
40614
  });
40413
40615
  }
40414
40616
 
40415
- 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; }
40416
- 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; }
40617
+ 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; }
40618
+ 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; }
40417
40619
  /**
40418
40620
  * Custom hook for managing modal open/close state
40419
40621
  *
@@ -40429,12 +40631,12 @@ function useModalOpenState() {
40429
40631
  setOpenStates = _useState2[1];
40430
40632
  var openModal = function openModal(key) {
40431
40633
  setOpenStates(function (prev) {
40432
- return _objectSpread$X(_objectSpread$X({}, prev), {}, _defineProperty({}, key, true));
40634
+ return _objectSpread$Y(_objectSpread$Y({}, prev), {}, _defineProperty({}, key, true));
40433
40635
  });
40434
40636
  };
40435
40637
  var closeModal = function closeModal(key) {
40436
40638
  setOpenStates(function (prev) {
40437
- return _objectSpread$X(_objectSpread$X({}, prev), {}, _defineProperty({}, key, false));
40639
+ return _objectSpread$Y(_objectSpread$Y({}, prev), {}, _defineProperty({}, key, false));
40438
40640
  });
40439
40641
  };
40440
40642
  return {
@@ -40502,12 +40704,12 @@ function getFormItemProps(props) {
40502
40704
  }
40503
40705
 
40504
40706
  var _excluded$6 = ["disabled"];
40505
- 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; }
40506
- 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; }
40707
+ 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; }
40708
+ 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; }
40507
40709
  function Checkbox(_ref) {
40508
40710
  var disabled = _ref.disabled,
40509
40711
  props = _objectWithoutProperties(_ref, _excluded$6);
40510
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$W(_objectSpread$W({}, getFormItemProps(props)), {}, {
40712
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$X(_objectSpread$X({}, getFormItemProps(props)), {}, {
40511
40713
  valuePropName: "checked",
40512
40714
  children: /*#__PURE__*/jsx(Checkbox$1, {
40513
40715
  disabled: disabled
@@ -40516,13 +40718,13 @@ function Checkbox(_ref) {
40516
40718
  }
40517
40719
 
40518
40720
  var _excluded$5 = ["disabled", "placeholder"];
40519
- 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; }
40520
- 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; }
40721
+ 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; }
40722
+ 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; }
40521
40723
  function Input(_ref) {
40522
40724
  var disabled = _ref.disabled,
40523
40725
  placeholder = _ref.placeholder,
40524
40726
  props = _objectWithoutProperties(_ref, _excluded$5);
40525
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$V(_objectSpread$V({}, getFormItemProps(props)), {}, {
40727
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$W(_objectSpread$W({}, getFormItemProps(props)), {}, {
40526
40728
  children: /*#__PURE__*/jsx(Input$1, {
40527
40729
  disabled: disabled,
40528
40730
  placeholder: placeholder
@@ -40531,11 +40733,11 @@ function Input(_ref) {
40531
40733
  }
40532
40734
 
40533
40735
  var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
40534
- var css_248z$w = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
40535
- styleInject(css_248z$w);
40736
+ var css_248z$v = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
40737
+ styleInject(css_248z$v);
40536
40738
 
40537
- 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; }
40538
- 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; }
40739
+ 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; }
40740
+ 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; }
40539
40741
  /**
40540
40742
  * Handles file selection and optional auto-zipping
40541
40743
  *
@@ -40639,7 +40841,7 @@ function _validateFile() {
40639
40841
  return _validateFile.apply(this, arguments);
40640
40842
  }
40641
40843
  function toUploadFile(file) {
40642
- return _objectSpread$U(_objectSpread$U({}, file), {}, {
40844
+ return _objectSpread$V(_objectSpread$V({}, file), {}, {
40643
40845
  uid: file.name,
40644
40846
  name: file.name,
40645
40847
  status: 'done',
@@ -40711,8 +40913,8 @@ var DraggerComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
40711
40913
  });
40712
40914
 
40713
40915
  var _excluded$4 = ["acceptedFileTypes", "disabled", "autoZip", "required", "hint"];
40714
- 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; }
40715
- 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; }
40916
+ 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; }
40917
+ 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; }
40716
40918
  function Dragger(_ref) {
40717
40919
  var _props$rules;
40718
40920
  var acceptedFileTypes = _ref.acceptedFileTypes,
@@ -40723,7 +40925,7 @@ function Dragger(_ref) {
40723
40925
  props = _objectWithoutProperties(_ref, _excluded$4);
40724
40926
  var _useTranslation = useTranslation(),
40725
40927
  t = _useTranslation.t;
40726
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$T(_objectSpread$T({}, getFormItemProps(props)), {}, {
40928
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$U(_objectSpread$U({}, getFormItemProps(props)), {}, {
40727
40929
  rules: [].concat(_toConsumableArray((_props$rules = props.rules) !== null && _props$rules !== void 0 ? _props$rules : []), [{
40728
40930
  validator: function validator(_, value) {
40729
40931
  return validateFile(acceptedFileTypes, t, value);
@@ -40797,8 +40999,8 @@ function useForm(_ref) {
40797
40999
  };
40798
41000
  }
40799
41001
 
40800
- 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; }
40801
- 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; }
41002
+ 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; }
41003
+ 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; }
40802
41004
  /**
40803
41005
  * Form component that renders form fields based on configuration
40804
41006
  *
@@ -40854,15 +41056,15 @@ function FormItem(_ref2) {
40854
41056
  var field = _ref2.field;
40855
41057
  switch (field.type) {
40856
41058
  case 'dragger':
40857
- return /*#__PURE__*/createElement(Dragger, _objectSpread$S(_objectSpread$S({}, field), {}, {
41059
+ return /*#__PURE__*/createElement(Dragger, _objectSpread$T(_objectSpread$T({}, field), {}, {
40858
41060
  key: field.name
40859
41061
  }));
40860
41062
  case 'checkbox':
40861
- return /*#__PURE__*/createElement(Checkbox, _objectSpread$S(_objectSpread$S({}, field), {}, {
41063
+ return /*#__PURE__*/createElement(Checkbox, _objectSpread$T(_objectSpread$T({}, field), {}, {
40862
41064
  key: field.name
40863
41065
  }));
40864
41066
  case 'input':
40865
- return /*#__PURE__*/createElement(Input, _objectSpread$S(_objectSpread$S({}, field), {}, {
41067
+ return /*#__PURE__*/createElement(Input, _objectSpread$T(_objectSpread$T({}, field), {}, {
40866
41068
  key: field.name
40867
41069
  }));
40868
41070
  default:
@@ -40874,8 +41076,8 @@ var uploadModalFooter = "upload-modal-footer-W5737";
40874
41076
  var uploadButton = "upload-button-QkWYP";
40875
41077
  var errorGroup = "error-group-lmQSx";
40876
41078
  var errorItem = "error-item-kyNLD";
40877
- var css_248z$v = ".upload-modal-footer-W5737 {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 10px;\n}\n\n.upload-modal-footer-W5737 > .upload-button-QkWYP {\n width: 300px;\n}\n\n.error-group-lmQSx {\n margin-bottom: 8px;\n}\n\n.error-item-kyNLD {\n padding: 4px 0;\n display: flex;\n align-items: flex-start;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.row-index-jmU3D {\n font-weight: 600;\n margin-right: 8px;\n}\n";
40878
- styleInject(css_248z$v);
41079
+ var css_248z$u = ".upload-modal-footer-W5737 {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 10px;\n}\n\n.upload-modal-footer-W5737 > .upload-button-QkWYP {\n width: 300px;\n}\n\n.error-group-lmQSx {\n margin-bottom: 8px;\n}\n\n.error-item-kyNLD {\n padding: 4px 0;\n display: flex;\n align-items: flex-start;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.row-index-jmU3D {\n font-weight: 600;\n margin-right: 8px;\n}\n";
41080
+ styleInject(css_248z$u);
40879
41081
 
40880
41082
  /**
40881
41083
  * Custom hook for managing upload modal state and functionality
@@ -41220,8 +41422,8 @@ function useUploadModal(_ref) {
41220
41422
  };
41221
41423
  }
41222
41424
 
41223
- 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; }
41224
- 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; }
41425
+ 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; }
41426
+ 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; }
41225
41427
  var Panel = Collapse.Panel;
41226
41428
  var Text$7 = Typography.Text;
41227
41429
  /**
@@ -41287,7 +41489,7 @@ function ErrorDisplay(_ref) {
41287
41489
  }
41288
41490
  allFieldGroups.get(fieldName).push({
41289
41491
  operationType: label,
41290
- errors: [_objectSpread$R(_objectSpread$R({}, error), {}, {
41492
+ errors: [_objectSpread$S(_objectSpread$S({}, error), {}, {
41291
41493
  errorTexts: fieldError.errorTexts
41292
41494
  })]
41293
41495
  });
@@ -41300,7 +41502,7 @@ function ErrorDisplay(_ref) {
41300
41502
  }
41301
41503
  allFieldGroups.get(fieldName).push({
41302
41504
  operationType: label,
41303
- errors: [_objectSpread$R(_objectSpread$R({}, error), {}, {
41505
+ errors: [_objectSpread$S(_objectSpread$S({}, error), {}, {
41304
41506
  errorTexts: [error.error]
41305
41507
  })]
41306
41508
  });
@@ -41519,8 +41721,8 @@ function ExportModal(_ref) {
41519
41721
  });
41520
41722
  }
41521
41723
 
41522
- 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; }
41523
- 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; }
41724
+ 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; }
41725
+ 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; }
41524
41726
  function Modals(_ref) {
41525
41727
  var openStates = _ref.openStates,
41526
41728
  closeModal = _ref.closeModal,
@@ -41529,7 +41731,7 @@ function Modals(_ref) {
41529
41731
  children: [items.filter(function (item) {
41530
41732
  return item.type === 'uploadModal';
41531
41733
  }).map(function (item) {
41532
- return /*#__PURE__*/createElement(UploadModal, _objectSpread$Q(_objectSpread$Q({}, item), {}, {
41734
+ return /*#__PURE__*/createElement(UploadModal, _objectSpread$R(_objectSpread$R({}, item), {}, {
41533
41735
  key: item.key,
41534
41736
  isOpen: openStates[item.key],
41535
41737
  onClose: function onClose() {
@@ -41576,8 +41778,8 @@ function ActionMenu(_ref) {
41576
41778
  });
41577
41779
  }
41578
41780
 
41579
- 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; }
41580
- 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; }
41781
+ 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; }
41782
+ 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; }
41581
41783
  var Prices = observer(function (_ref) {
41582
41784
  var _pricelist$seriePrice;
41583
41785
  var organizationId = _ref.organizationId,
@@ -41637,8 +41839,8 @@ var Prices = observer(function (_ref) {
41637
41839
  if (!selectedSerie) return;
41638
41840
 
41639
41841
  // Create copies of the objects to modify
41640
- var newFactors = _objectSpread$P({}, pricelist.pfgPricefactors);
41641
- var serieFactors = _objectSpread$P({}, newFactors[selectedSerie.serieNo]);
41842
+ var newFactors = _objectSpread$Q({}, pricelist.pfgPricefactors);
41843
+ var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
41642
41844
  if (value.length === 0) {
41643
41845
  // Remove the empty price feature group
41644
41846
  delete serieFactors[priceFeatureGroupItem];
@@ -41669,7 +41871,7 @@ var Prices = observer(function (_ref) {
41669
41871
  var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
41670
41872
  var _newPriority$selected;
41671
41873
  if (!selectedSerie) return;
41672
- var newPriority = _objectSpread$P({}, pricelist.pfgPricefactorsPriority);
41874
+ var newPriority = _objectSpread$Q({}, pricelist.pfgPricefactorsPriority);
41673
41875
  var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
41674
41876
  if (value === true) {
41675
41877
  seriesPriority.add(priceFeatureGroupItem);
@@ -41688,7 +41890,7 @@ var Prices = observer(function (_ref) {
41688
41890
  var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
41689
41891
  var _newPriority$selected2;
41690
41892
  if (!selectedSerie) return;
41691
- var newPriority = _objectSpread$P({}, pricelist.pgPricefactorsPriority);
41893
+ var newPriority = _objectSpread$Q({}, pricelist.pgPricefactorsPriority);
41692
41894
  var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
41693
41895
  if (value === true) {
41694
41896
  seriesPriority.add(priceFeatureGroupItem);
@@ -41708,8 +41910,8 @@ var Prices = observer(function (_ref) {
41708
41910
  if (!selectedSerie) return;
41709
41911
 
41710
41912
  // Create copies of the objects to modify
41711
- var newFactors = _objectSpread$P({}, pricelist.pgPricefactors);
41712
- var serieFactors = _objectSpread$P({}, newFactors[selectedSerie.serieNo]);
41913
+ var newFactors = _objectSpread$Q({}, pricelist.pgPricefactors);
41914
+ var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
41713
41915
  if (value.length === 0) {
41714
41916
  // Remove the empty price feature group
41715
41917
  delete serieFactors[priceFeatureGroupItem];
@@ -41741,8 +41943,8 @@ var Prices = observer(function (_ref) {
41741
41943
  if (!selectedSerie) return;
41742
41944
 
41743
41945
  // Create copies of the objects to modify
41744
- var newFactors = _objectSpread$P({}, pricelist.articlePricefactors);
41745
- var serieFactors = _objectSpread$P({}, newFactors[selectedSerie.serieNo]);
41946
+ var newFactors = _objectSpread$Q({}, pricelist.articlePricefactors);
41947
+ var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
41746
41948
  if (value.length === 0) {
41747
41949
  // Remove the empty article price factor
41748
41950
  delete serieFactors[typeNo];
@@ -41774,8 +41976,8 @@ var Prices = observer(function (_ref) {
41774
41976
  if (!selectedSerie) return;
41775
41977
 
41776
41978
  // Create copies of the objects to modify
41777
- var newFactors = _objectSpread$P({}, pricelist.typeKeyPricefactors);
41778
- var serieFactors = _objectSpread$P({}, newFactors[selectedSerie.serieNo]);
41979
+ var newFactors = _objectSpread$Q({}, pricelist.typeKeyPricefactors);
41980
+ var serieFactors = _objectSpread$Q({}, newFactors[selectedSerie.serieNo]);
41779
41981
  if (value.length === 0) {
41780
41982
  // Remove the empty article price factor
41781
41983
  delete serieFactors[typeKey];
@@ -41807,7 +42009,7 @@ var Prices = observer(function (_ref) {
41807
42009
  if (!selectedSerie) return;
41808
42010
 
41809
42011
  // Create a copy of the object to modify
41810
- var newFactors = _objectSpread$P({}, pricelist.seriePricefactors);
42012
+ var newFactors = _objectSpread$Q({}, pricelist.seriePricefactors);
41811
42013
  if (value.length === 0) {
41812
42014
  // Remove the empty serie price factor
41813
42015
  delete newFactors[selectedSerie.serieNo];
@@ -42578,8 +42780,8 @@ function Content$9() {
42578
42780
  }
42579
42781
 
42580
42782
  var _excluded$3 = ["buttonText", "onClose"];
42581
- 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; }
42582
- 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; }
42783
+ 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; }
42784
+ 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; }
42583
42785
  /**
42584
42786
  * Button component that opens an upload modal when clicked
42585
42787
  *
@@ -42608,15 +42810,15 @@ function UploadModalButton(_ref) {
42608
42810
  return setIsModalOpen(true);
42609
42811
  },
42610
42812
  children: buttonText
42611
- }), /*#__PURE__*/jsx(UploadModal, _objectSpread$O(_objectSpread$O({}, props), {}, {
42813
+ }), /*#__PURE__*/jsx(UploadModal, _objectSpread$P(_objectSpread$P({}, props), {}, {
42612
42814
  isOpen: isModalOpen,
42613
42815
  onClose: handleClose
42614
42816
  }))]
42615
42817
  });
42616
42818
  }
42617
42819
 
42618
- 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; }
42619
- 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; }
42820
+ 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; }
42821
+ 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; }
42620
42822
 
42621
42823
  // Type definition for the context state
42622
42824
 
@@ -42638,14 +42840,14 @@ var useCatalogContext = function useCatalogContext() {
42638
42840
  loading: loading,
42639
42841
  setOptions: function setOptions(options) {
42640
42842
  var state = root.contextStore.getContext('catalog');
42641
- root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$N(_objectSpread$N({}, state[stateKey]), {}, {
42843
+ root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$O(_objectSpread$O({}, state[stateKey]), {}, {
42642
42844
  options: options,
42643
42845
  loading: false
42644
42846
  })));
42645
42847
  },
42646
42848
  setLoading: function setLoading(loading) {
42647
42849
  var state = root.contextStore.getContext('catalog');
42648
- root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$N(_objectSpread$N({}, state[stateKey]), {}, {
42850
+ root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$O(_objectSpread$O({}, state[stateKey]), {}, {
42649
42851
  loading: loading
42650
42852
  })));
42651
42853
  }
@@ -42759,7 +42961,7 @@ var useCatalogContext = function useCatalogContext() {
42759
42961
  }, [urlCatalogId, getContext().catalogId, setSelectedCatalog]);
42760
42962
 
42761
42963
  // Return context + handlers
42762
- return _objectSpread$N(_objectSpread$N({}, getContext()), {}, {
42964
+ return _objectSpread$O(_objectSpread$O({}, getContext()), {}, {
42763
42965
  setSelectedSerie: setSelectedSerie,
42764
42966
  setSelectedItem: setSelectedItem,
42765
42967
  setSelectedFeature: setSelectedFeature,
@@ -42769,8 +42971,8 @@ var useCatalogContext = function useCatalogContext() {
42769
42971
  });
42770
42972
  };
42771
42973
 
42772
- function ownKeys$M(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; }
42773
- function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42974
+ 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; }
42975
+ 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; }
42774
42976
  var IDM_VERSIONS = [{
42775
42977
  name: '3.0.0',
42776
42978
  value: '3.0.0'
@@ -42812,7 +43014,7 @@ function transformFilterNode(node, versionColId) {
42812
43014
  return c !== undefined;
42813
43015
  });
42814
43016
  if (conditions.length === 0) return undefined;
42815
- return _objectSpread$M(_objectSpread$M({}, joinNode), {}, {
43017
+ return _objectSpread$N(_objectSpread$N({}, joinNode), {}, {
42816
43018
  conditions: conditions
42817
43019
  });
42818
43020
  }
@@ -43168,6 +43370,10 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
43168
43370
  field: 'actual',
43169
43371
  cellDataType: 'boolean',
43170
43372
  defaultValue: true,
43373
+ //a catalog without a stored value counts as the actual version, so the filter has to match it like the display
43374
+ customParams: {
43375
+ missingValue: true
43376
+ },
43171
43377
  valueGetter: function valueGetter(params) {
43172
43378
  var _params$data$actual, _params$data;
43173
43379
  return (_params$data$actual = (_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.actual) !== null && _params$data$actual !== void 0 ? _params$data$actual : true;
@@ -44092,6 +44298,10 @@ var IdmCatalogs = /*#__PURE__*/forwardRef(function IdmCatalogs(_ref, ref) {
44092
44298
  field: 'actual',
44093
44299
  cellDataType: 'boolean',
44094
44300
  defaultValue: true,
44301
+ //a catalog without a stored value counts as the actual version, so the filter has to match it like the display
44302
+ customParams: {
44303
+ missingValue: true
44304
+ },
44095
44305
  valueGetter: function valueGetter(params) {
44096
44306
  var _params$data$actual, _params$data;
44097
44307
  return (_params$data$actual = (_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.actual) !== null && _params$data$actual !== void 0 ? _params$data$actual : true;
@@ -45004,11 +45214,11 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45004
45214
  },
45005
45215
  additionalFields: ['featureClassRefNoDisplayText'],
45006
45216
  required: true
45007
- }, {
45217
+ }], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [] : [{
45008
45218
  headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
45009
45219
  field: 'eClassNo',
45010
45220
  cellDataType: 'number'
45011
- }, {
45221
+ }]), [{
45012
45222
  headerName: 'backoffice.idmCatalogEditor.items.label.catalogPage',
45013
45223
  field: 'catalogPage'
45014
45224
  }, {
@@ -46732,11 +46942,11 @@ var formContent = "form-content-H-AkE";
46732
46942
  var footerButtons = "footer-buttons-4cwcu";
46733
46943
  var addButton = "add-button-w-6Lk";
46734
46944
  var footerContent = "footer-content-sOrT1";
46735
- var css_248z$u = ".container-wGptw {\n display: flex;\n flex-direction: column;\n height: 500px;\n}\n\n.scrollable-content-zRBJy {\n flex-grow: 1;\n overflow: auto;\n margin-bottom: 16px;\n}\n\n.section-title-s2qIs {\n margin-bottom: 16px;\n}\n\n.action-item-LjQVf {\n width: 100%;\n}\n\n.action-item-highlighted-pjO7e {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n\n.form-container-gF94J {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.form-layout-Ykach {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.form-content-H-AkE {\n flex-grow: 1;\n overflow: auto;\n}\n\n.footer-buttons-4cwcu {\n margin-top: auto;\n}\n\n.add-button-w-6Lk {\n width: 100%;\n}\n\n.footer-content-sOrT1 {\n text-align: center;\n padding: 8px 0;\n}\n";
46736
- styleInject(css_248z$u);
46945
+ var css_248z$t = ".container-wGptw {\n display: flex;\n flex-direction: column;\n height: 500px;\n}\n\n.scrollable-content-zRBJy {\n flex-grow: 1;\n overflow: auto;\n margin-bottom: 16px;\n}\n\n.section-title-s2qIs {\n margin-bottom: 16px;\n}\n\n.action-item-LjQVf {\n width: 100%;\n}\n\n.action-item-highlighted-pjO7e {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n\n.form-container-gF94J {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.form-layout-Ykach {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.form-content-H-AkE {\n flex-grow: 1;\n overflow: auto;\n}\n\n.footer-buttons-4cwcu {\n margin-top: auto;\n}\n\n.add-button-w-6Lk {\n width: 100%;\n}\n\n.footer-content-sOrT1 {\n text-align: center;\n padding: 8px 0;\n}\n";
46946
+ styleInject(css_248z$t);
46737
46947
 
46738
- function ownKeys$L(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; }
46739
- function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
46948
+ function ownKeys$M(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; }
46949
+ function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
46740
46950
  function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(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; } } }; }
46741
46951
  function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(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$g(r, a) : void 0; } }
46742
46952
  function _arrayLikeToArray$g(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; }
@@ -46961,7 +47171,7 @@ function parseActionsCellValue(values) {
46961
47171
  }
46962
47172
  /** Validate and serialize; used by the form and list display. */
46963
47173
  function serializeAction(action) {
46964
- var a = _objectSpread$L({}, action);
47174
+ var a = _objectSpread$M({}, action);
46965
47175
  if (!isActionType(a.actionType)) {
46966
47176
  return {
46967
47177
  ok: false,
@@ -46975,7 +47185,7 @@ function serializeAction(action) {
46975
47185
  ok: false,
46976
47186
  reason: 'invalid_main_value'
46977
47187
  };
46978
- var base = _objectSpread$L(_objectSpread$L({}, a), {}, {
47188
+ var base = _objectSpread$M(_objectSpread$M({}, a), {}, {
46979
47189
  decisionNo: d,
46980
47190
  featureNo: undefined,
46981
47191
  messageNo: undefined
@@ -47082,8 +47292,8 @@ function actionDisplayString(action) {
47082
47292
  return r.ok ? r.value : '';
47083
47293
  }
47084
47294
 
47085
- function ownKeys$K(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; }
47086
- function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
47295
+ function ownKeys$L(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; }
47296
+ function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
47087
47297
  var ACTIONS_FORM_I18N = 'backoffice.idmCatalog.optionCombinations.actions';
47088
47298
  function toLookupScalar(v) {
47089
47299
  if (v === undefined || v === null || v === '') return undefined;
@@ -47304,9 +47514,9 @@ function ActionsForm(_ref) {
47304
47514
  }, [referenceTypeChoiceOptions]);
47305
47515
  var defaultValues = useMemo(function () {
47306
47516
  if (value != null) {
47307
- return _objectSpread$K(_objectSpread$K({}, DEFAULT_ACTION), value);
47517
+ return _objectSpread$L(_objectSpread$L({}, DEFAULT_ACTION), value);
47308
47518
  }
47309
- return _objectSpread$K({}, DEFAULT_ACTION);
47519
+ return _objectSpread$L({}, DEFAULT_ACTION);
47310
47520
  }, [value]);
47311
47521
  useEffect(function () {
47312
47522
  form.resetFields();
@@ -47847,8 +48057,8 @@ function ActionsExpandedEditor(_ref) {
47847
48057
  });
47848
48058
  }
47849
48059
 
47850
- function ownKeys$J(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; }
47851
- function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48060
+ function ownKeys$K(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; }
48061
+ function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
47852
48062
  /**
47853
48063
  * Serialize / parse optionsSetRefs cell strings to match idm-model Util/Converter.cs
47854
48064
  * (ConvertOptionsSetRef + ConvertOptionsSetRefFromDto).
@@ -47940,7 +48150,7 @@ function parseOptionsSetRefString(contentOSR) {
47940
48150
  var content = contentFull;
47941
48151
  var attachRef = function attachRef(v) {
47942
48152
  if (refLevel !== undefined && refLevel !== 3) {
47943
- return _objectSpread$J(_objectSpread$J({}, v), {}, {
48153
+ return _objectSpread$K(_objectSpread$K({}, v), {}, {
47944
48154
  refLevel: refLevel
47945
48155
  });
47946
48156
  }
@@ -48175,8 +48385,8 @@ function serializeOptionsSetRef(model) {
48175
48385
  return base;
48176
48386
  }
48177
48387
 
48178
- function ownKeys$I(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; }
48179
- function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48388
+ function ownKeys$J(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; }
48389
+ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48180
48390
  var DEFAULT_FORM = {
48181
48391
  conditionKind: 'optionRefOp',
48182
48392
  operator: 'eq',
@@ -48196,7 +48406,7 @@ function mapParsedToFormValues(p) {
48196
48406
  var refLevel = (_p$refLevel = p.refLevel) !== null && _p$refLevel !== void 0 ? _p$refLevel : 3;
48197
48407
  switch (p.kind) {
48198
48408
  case 'optionInterval':
48199
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48409
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48200
48410
  conditionKind: 'optionInterval',
48201
48411
  operator: p.operator,
48202
48412
  optionKeyMin: p.optionKeyMin,
@@ -48204,42 +48414,42 @@ function mapParsedToFormValues(p) {
48204
48414
  refLevel: refLevel
48205
48415
  });
48206
48416
  case 'optionList':
48207
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48417
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48208
48418
  conditionKind: 'optionList',
48209
48419
  operator: p.operator,
48210
48420
  optionKeysSelected: _toConsumableArray(p.optionKeys),
48211
48421
  refLevel: refLevel
48212
48422
  });
48213
48423
  case 'optionGroupRefOp':
48214
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48424
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48215
48425
  conditionKind: 'optionGroupRefOp',
48216
48426
  operator: p.operator,
48217
48427
  optionGroupKey: p.optionGroupKey,
48218
48428
  refLevel: refLevel
48219
48429
  });
48220
48430
  case 'optionRefOp':
48221
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48431
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48222
48432
  conditionKind: 'optionRefOp',
48223
48433
  operator: p.operator,
48224
48434
  optionKey: p.optionKey,
48225
48435
  refLevel: refLevel
48226
48436
  });
48227
48437
  case 'featureRefOp':
48228
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48438
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48229
48439
  conditionKind: 'featureRefOp',
48230
48440
  operator: p.operator,
48231
48441
  featureNo: p.featureNo,
48232
48442
  refLevel: refLevel
48233
48443
  });
48234
48444
  case 'measureValueOp':
48235
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48445
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48236
48446
  conditionKind: 'measureValueOp',
48237
48447
  operator: p.operator,
48238
48448
  measureValue: p.measureValue,
48239
48449
  refLevel: refLevel
48240
48450
  });
48241
48451
  case 'measureInterval':
48242
- return _objectSpread$I(_objectSpread$I({}, DEFAULT_FORM), {}, {
48452
+ return _objectSpread$J(_objectSpread$J({}, DEFAULT_FORM), {}, {
48243
48453
  conditionKind: 'measureInterval',
48244
48454
  operator: p.operator,
48245
48455
  measureMin: p.measureMin,
@@ -48247,13 +48457,13 @@ function mapParsedToFormValues(p) {
48247
48457
  refLevel: refLevel
48248
48458
  });
48249
48459
  default:
48250
- return _objectSpread$I({}, DEFAULT_FORM);
48460
+ return _objectSpread$J({}, DEFAULT_FORM);
48251
48461
  }
48252
48462
  }
48253
48463
  function addRefLevel(m, refLevel) {
48254
48464
  var rl = refLevel === null || refLevel === undefined || refLevel === 3 ? undefined : refLevel;
48255
48465
  if (rl !== undefined) {
48256
- return _objectSpread$I(_objectSpread$I({}, m), {}, {
48466
+ return _objectSpread$J(_objectSpread$J({}, m), {}, {
48257
48467
  refLevel: rl
48258
48468
  });
48259
48469
  }
@@ -50200,8 +50410,8 @@ var TablePartlists = observer(function () {
50200
50410
  });
50201
50411
  });
50202
50412
 
50203
- function ownKeys$H(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; }
50204
- function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50413
+ function ownKeys$I(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; }
50414
+ function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50205
50415
  function PriceFeatureGroupPercentageSurcharge(_ref) {
50206
50416
  var priceFeatureGroup = _ref.priceFeatureGroup,
50207
50417
  catalogId = _ref.catalogId,
@@ -50229,7 +50439,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
50229
50439
  var newRefsDisplayTexts = _toConsumableArray(priceFeatureGroup.featureNosDisplayTexts);
50230
50440
  newRefs.splice(index, 1);
50231
50441
  newRefsDisplayTexts.splice(index, 1);
50232
- var updatedPriceFeatureGroup = _objectSpread$H(_objectSpread$H({}, priceFeatureGroup), {}, {
50442
+ var updatedPriceFeatureGroup = _objectSpread$I(_objectSpread$I({}, priceFeatureGroup), {}, {
50233
50443
  featureNos: newRefs,
50234
50444
  featureNosDisplayTexts: newRefsDisplayTexts
50235
50445
  });
@@ -50338,6 +50548,8 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
50338
50548
  field: 'pricefeaturegroups',
50339
50549
  cellDataType: 'lookup',
50340
50550
  customParams: {
50551
+ //the field holds the numeric group numbers, so a text filter must only run against the display texts
50552
+ filterCellType: 'number',
50341
50553
  nameField: 'pricefeaturegroupsDisplayTexts',
50342
50554
  apiInterface: {
50343
50555
  read: apiConfig.idmService + '/catalogs/${catalogId}/pricefeaturegroups'
@@ -50479,9 +50691,18 @@ function PriceFeatureGroupFinishes(_ref) {
50479
50691
  return {
50480
50692
  headerName: (_priceFeatureGroup$fe5 = (_priceFeatureGroup$fe6 = priceFeatureGroup.featureNosDisplayTexts) === null || _priceFeatureGroup$fe6 === void 0 || (_priceFeatureGroup$fe6 = _priceFeatureGroup$fe6[i]) === null || _priceFeatureGroup$fe6 === void 0 ? void 0 : _priceFeatureGroup$fe6[i18n.language.toUpperCase()]) !== null && _priceFeatureGroup$fe5 !== void 0 ? _priceFeatureGroup$fe5 : featureNos,
50481
50693
  field: "optionsSetRefs.".concat(featureNos),
50694
+ cellDataType: 'text',
50482
50695
  editable: true,
50483
50696
  required: true,
50484
50697
  isDictionary: true,
50698
+ customParams: {
50699
+ expandedEditor: OptionSetRefExpandedEditor,
50700
+ expandedEditorProps: {
50701
+ catalogId: catalogId,
50702
+ idmService: apiConfig.idmService,
50703
+ rowFeatureRef: featureNos
50704
+ }
50705
+ },
50485
50706
  lockPosition: 'left',
50486
50707
  headerComponentParams: {
50487
50708
  additionalElement: /*#__PURE__*/jsx(Button, {
@@ -50591,7 +50812,7 @@ function PriceFeatureGroupFinishes(_ref) {
50591
50812
  suppressColumnsToolPanel: true
50592
50813
  }])
50593
50814
  };
50594
- }, [priceFeatureGroup, addFeature, removeFeature]);
50815
+ }, [priceFeatureGroup, addFeature, removeFeature, catalogId, apiConfig.idmService, i18n.language]);
50595
50816
  return /*#__PURE__*/jsx(Spreadsheet, {
50596
50817
  gridId: 'crud-grid_priceGroupFinishes',
50597
50818
  applicationData: applicationData,
@@ -50600,8 +50821,8 @@ function PriceFeatureGroupFinishes(_ref) {
50600
50821
  }, priceFeatureGroup._id);
50601
50822
  }
50602
50823
 
50603
- function ownKeys$G(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; }
50604
- function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50824
+ function ownKeys$H(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; }
50825
+ function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50605
50826
  var TablePriceFeatureGroups = observer(function () {
50606
50827
  var _selectedCatalog$isoL, _selectedCatalog$isoL2;
50607
50828
  var _useTranslation = useTranslation(),
@@ -50708,7 +50929,7 @@ var TablePriceFeatureGroups = observer(function () {
50708
50929
  return ((_update$node = update.node) === null || _update$node === void 0 ? void 0 : _update$node.id) == selectedNodeId;
50709
50930
  });
50710
50931
  if (current) {
50711
- setSelectedPriceFeatureGroup(_objectSpread$G({}, current.data));
50932
+ setSelectedPriceFeatureGroup(_objectSpread$H({}, current.data));
50712
50933
  }
50713
50934
  if (updates.length == 0 || updates.some(function (update) {
50714
50935
  var _update$oldData;
@@ -51274,91 +51495,122 @@ var TableFormulas = observer(function () {
51274
51495
  });
51275
51496
  });
51276
51497
 
51277
- var cell = "cell-sUiJG";
51278
- var css_248z$t = ".cell-sUiJG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.cell-sUiJG .ant-input-number {\n width: 100%;\n}\n\n.cell-sUiJG .ant-select {\n width: 100%;\n}\n\n.cell-sUiJG .ant-input-number-input {\n text-align: right;\n padding: 0;\n}\n";
51279
- styleInject(css_248z$t);
51280
-
51498
+ function ownKeys$G(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; }
51499
+ function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
51281
51500
  /**
51282
- * Renders one cell of the Zusatzartikel matrix and stages its own changes.
51501
+ * Rewrites the filters of the Zusatzartikel matrix onto the fields the item endpoint can answer.
51283
51502
  *
51284
- * The matrix cells have no row field of their own - they are computed from the item's ADDITIONAL_ITEMS groups - so
51285
- * they cannot use the grid's normal editing path: it keys every commit on `colDef.field` and drops an edit without
51286
- * one. Writing through the transaction handler of the grid context is the route the lookup and asset cells take;
51287
- * unlike the grid api's setNodeDataValue it does not force an immediate commit, so the changes of a row are sent
51288
- * together when the selection leaves it.
51503
+ * The matrix columns are computed from the nested ADDITIONAL_ITEMS groups and have no field of their own, so the
51504
+ * server cannot be asked for them directly. It addresses one accessory by the serie and the type no of its
51505
+ * reference instead - the two keys of the filter fields below - and compares the value inside the very reference it
51506
+ * found, so a filter can never mix two accessories.
51289
51507
  */
51290
- function AccessoryCellRenderer(props) {
51291
- var _isDisabled;
51292
- var value = props.value,
51293
- node = props.node,
51294
- kind = props.kind,
51295
- min = props.min,
51296
- max = props.max,
51297
- options = props.options,
51298
- disabled = props.disabled,
51299
- isDisabled = props.isDisabled,
51300
- onSave = props.onSave,
51301
- context = props.context;
51302
- var transactionHandler = context === null || context === void 0 ? void 0 : context.transactionHandler;
51303
51508
 
51304
- // Rows still loading have no data to write to
51305
- if (!(node !== null && node !== void 0 && node.data)) return null;
51306
- var cellDisabled = disabled || ((_isDisabled = isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(node)) !== null && _isDisabled !== void 0 ? _isDisabled : false);
51307
- if (kind === 'boolean') {
51308
- return /*#__PURE__*/jsx("span", {
51309
- className: cell,
51310
- children: /*#__PURE__*/jsx(Checkbox$3, {
51311
- checked: value === true,
51312
- disabled: cellDisabled,
51313
- onChange: function onChange(event) {
51314
- return onSave(node, event.target.checked, transactionHandler);
51315
- }
51316
- })
51509
+ /** The two keys the item endpoint identifies one accessory reference by. */
51510
+ function filterField(property, accessory) {
51511
+ return "".concat(property, "[\"").concat(accessory.serieNo, "\"][\"").concat(accessory.typeNo, "\"]");
51512
+ }
51513
+
51514
+ /** The IDM keeps the mandatory and the optional relations in their own groups, each with its own filter field. */
51515
+ var MANDATORY_QUANTITY = 'additionalItemMandatoryQuantity';
51516
+ var OPTIONAL_QUANTITY = 'additionalItemOptionalQuantity';
51517
+ var MANDATORY_SET_NO = 'additionalItemMandatorySetNo';
51518
+ var OPTIONAL_SET_NO = 'additionalItemOptionalSetNo';
51519
+
51520
+ /**
51521
+ * Walks the filter model and hands every condition of the given column to `rewrite`. Conditions of other columns
51522
+ * stay untouched - the grid applies the parsers of all filtered columns to the same model.
51523
+ */
51524
+ function rewriteConditions(filterModel, colId, rewrite) {
51525
+ if (!filterModel) return undefined;
51526
+ if (filterModel.filterType === 'join') {
51527
+ var join = filterModel;
51528
+ // Dropping a child whose parser found nothing to narrow down is safe here: the grid hands its column filters
51529
+ // over as one AND, and a nested OR only ever holds the conditions of a single column (see prepareFilter)
51530
+ var conditions = join.conditions.map(function (condition) {
51531
+ return rewriteConditions(condition, colId, rewrite);
51532
+ }).filter(function (condition) {
51533
+ return condition !== undefined;
51317
51534
  });
51318
- }
51319
- if (kind === 'select') {
51320
- return /*#__PURE__*/jsx("span", {
51321
- className: cell,
51322
- children: /*#__PURE__*/jsx(Select$1, {
51323
- value: value !== null && value !== void 0 ? value : undefined,
51324
- options: options,
51325
- disabled: cellDisabled,
51326
- variant: "borderless",
51327
- size: "small",
51328
- popupMatchSelectWidth: false,
51329
- onChange: function onChange(next) {
51330
- return onSave(node, next, transactionHandler);
51331
- }
51332
- })
51535
+ if (conditions.length === 0) return undefined;
51536
+ return _objectSpread$G(_objectSpread$G({}, join), {}, {
51537
+ conditions: conditions
51333
51538
  });
51334
51539
  }
51335
- return /*#__PURE__*/jsx("span", {
51336
- className: cell,
51337
- children: /*#__PURE__*/jsx(InputNumber$1, {
51338
- value: value !== null && value !== void 0 ? value : null,
51339
- min: min,
51340
- max: max,
51341
- precision: 0,
51342
- disabled: cellDisabled,
51343
- variant: "borderless",
51344
- size: "small",
51345
- controls: false
51346
- // Committing on blur and on Enter keeps one staged change per finished entry instead of one per keystroke
51347
- ,
51348
- onBlur: function onBlur(event) {
51349
- return save(event.currentTarget.value);
51350
- },
51351
- onPressEnter: function onPressEnter(event) {
51352
- return save(event.currentTarget.value);
51353
- }
51354
- })
51355
- });
51356
- function save(raw) {
51357
- var parsed = raw === '' ? undefined : Number(raw);
51358
- var next = parsed != null && Number.isNaN(parsed) ? undefined : parsed;
51359
- if ((value !== null && value !== void 0 ? value : undefined) === next) return;
51360
- onSave(node, next, transactionHandler);
51361
- }
51540
+ if (filterModel.colId !== colId) return filterModel;
51541
+ return rewrite(filterModel);
51542
+ }
51543
+
51544
+ /** Joins conditions that have to hold for either the mandatory or the optional side of an accessory. */
51545
+ function eitherSide(conditions, type) {
51546
+ return {
51547
+ filterType: 'join',
51548
+ type: type,
51549
+ conditions: conditions
51550
+ };
51551
+ }
51552
+
51553
+ /**
51554
+ * Filter of a quantity column: the same condition, asked of the group the quantity belongs to.
51555
+ */
51556
+ function quantityFilterParser(colId, accessory, side) {
51557
+ var property = side === 'mandatory' ? MANDATORY_QUANTITY : OPTIONAL_QUANTITY;
51558
+ return function (_ref) {
51559
+ var filterModel = _ref.filterModel;
51560
+ return rewriteConditions(filterModel, colId, function (condition) {
51561
+ return _objectSpread$G(_objectSpread$G({}, condition), {}, {
51562
+ colId: filterField(property, accessory)
51563
+ });
51564
+ });
51565
+ };
51566
+ }
51567
+
51568
+ /**
51569
+ * Filter of the Set No column: the grid shows one set per accessory although the IDM numbers both sides on their
51570
+ * own, so a set matches as soon as one of the two groups carries it.
51571
+ *
51572
+ * OR holds for a negated condition too: the item endpoint answers each side as an existence check over its groups,
51573
+ * so the side an accessory does not sit on is false rather than "no value". AND would drop every accessory that
51574
+ * only exists on one side, whatever its set.
51575
+ */
51576
+ function setNoFilterParser(colId, accessory) {
51577
+ return function (_ref2) {
51578
+ var filterModel = _ref2.filterModel;
51579
+ return rewriteConditions(filterModel, colId, function (condition) {
51580
+ return eitherSide([_objectSpread$G(_objectSpread$G({}, condition), {}, {
51581
+ colId: filterField(MANDATORY_SET_NO, accessory)
51582
+ }), _objectSpread$G(_objectSpread$G({}, condition), {}, {
51583
+ colId: filterField(OPTIONAL_SET_NO, accessory)
51584
+ })], 'OR');
51585
+ });
51586
+ };
51587
+ }
51588
+
51589
+ /**
51590
+ * Filter of the Aktiv column: a checked cell means the article references the accessory at all, which the catalog
51591
+ * only holds as a quantity on one of the two sides. Unchecked is the absence of both, so the conditions have to
51592
+ * hold together.
51593
+ */
51594
+ function activeFilterParser(colId, accessory) {
51595
+ return function (_ref3) {
51596
+ var filterModel = _ref3.filterModel;
51597
+ return rewriteConditions(filterModel, colId, function (condition) {
51598
+ var _condition$values;
51599
+ var values = (_condition$values = condition.values) !== null && _condition$values !== void 0 ? _condition$values : [];
51600
+ var checked = values.includes('true') || values.includes(true);
51601
+ var unchecked = values.includes('false') || values.includes(false);
51602
+
51603
+ // Both or neither narrows nothing down
51604
+ if (checked === unchecked) return undefined;
51605
+ return eitherSide([MANDATORY_QUANTITY, OPTIONAL_QUANTITY].map(function (property) {
51606
+ return {
51607
+ colId: filterField(property, accessory),
51608
+ filterType: 'text',
51609
+ type: checked ? 'notBlank' : 'blank'
51610
+ };
51611
+ }), checked ? 'OR' : 'AND');
51612
+ });
51613
+ };
51362
51614
  }
51363
51615
 
51364
51616
  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; }
@@ -51459,10 +51711,11 @@ function readCells(item, isV4) {
51459
51711
 
51460
51712
  /**
51461
51713
  * Applies one cell edit to the matrix, in place. Filling a quantity on a new accessory also activates it; an
51462
- * existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it.
51714
+ * existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it -
51715
+ * to the set the other side already uses, because the grid edits one set no per accessory.
51463
51716
  */
51464
51717
  function applyCellChange(cells, accessory, property, value) {
51465
- var _cell$mandatorySetNo, _cell$optionalSetNo;
51718
+ var _ref3, _cell$mandatorySetNo, _cell$mandatorySetNo2, _cell$optionalSetNo;
51466
51719
  var key = accessoryKey(accessory.serieNo, accessory.typeNo);
51467
51720
  var existing = cells[key];
51468
51721
  var cell = existing ? _objectSpread$F(_objectSpread$F({}, existing), {}, _defineProperty({}, property, value)) : _defineProperty({
@@ -51470,8 +51723,11 @@ function applyCellChange(cells, accessory, property, value) {
51470
51723
  typeNo: accessory.typeNo,
51471
51724
  active: property !== 'active'
51472
51725
  }, property, value);
51473
- cell.mandatorySetNo = cell.mandatoryQuantity != null ? (_cell$mandatorySetNo = cell.mandatorySetNo) !== null && _cell$mandatorySetNo !== void 0 ? _cell$mandatorySetNo : DEFAULT_SET_NO : undefined;
51474
- cell.optionalSetNo = cell.optionalQuantity != null ? (_cell$optionalSetNo = cell.optionalSetNo) !== null && _cell$optionalSetNo !== void 0 ? _cell$optionalSetNo : DEFAULT_SET_NO : undefined;
51726
+
51727
+ // One set no per accessory in the grid: a quantity filled later joins the set the other side already uses
51728
+ var sharedSetNo = (_ref3 = (_cell$mandatorySetNo = cell.mandatorySetNo) !== null && _cell$mandatorySetNo !== void 0 ? _cell$mandatorySetNo : cell.optionalSetNo) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_SET_NO;
51729
+ cell.mandatorySetNo = cell.mandatoryQuantity != null ? (_cell$mandatorySetNo2 = cell.mandatorySetNo) !== null && _cell$mandatorySetNo2 !== void 0 ? _cell$mandatorySetNo2 : sharedSetNo : undefined;
51730
+ cell.optionalSetNo = cell.optionalQuantity != null ? (_cell$optionalSetNo = cell.optionalSetNo) !== null && _cell$optionalSetNo !== void 0 ? _cell$optionalSetNo : sharedSetNo : undefined;
51475
51731
  cells[key] = cell;
51476
51732
  return cells;
51477
51733
  }
@@ -51559,44 +51815,118 @@ function additionalItemFields(isV4) {
51559
51815
  return [mandatory, optional];
51560
51816
  }
51561
51817
 
51818
+ /**
51819
+ * Translates one edited cell of the accessory matrix into the two group fields of the row. The matrix cells are
51820
+ * computed and have no field of their own, so every write the grid hands over - the cell editor, the clipboard and
51821
+ * the fill handle alike - goes through here. Only a value the cell could hold is applied; anything else returns
51822
+ * undefined and leaves the row untouched, so a stray paste cannot corrupt a relation.
51823
+ */
51824
+
51825
+ var REJECTED$1 = {
51826
+ ok: false
51827
+ };
51828
+
51829
+ /** A plain non-negative integer, from the editor (number) or the clipboard (text). */
51830
+ function parsedInteger(raw) {
51831
+ var value = typeof raw === 'string' && /^\d+$/.test(raw.trim()) ? Number(raw.trim()) : raw;
51832
+ return typeof value === 'number' && Number.isSafeInteger(value) && value >= 0 ? value : undefined;
51833
+ }
51834
+ function parsedValue(kind, raw) {
51835
+ // An emptied cell clears a quantity - the other kinds have nothing an empty value could mean
51836
+ if (raw === undefined || raw === null || raw === '') {
51837
+ return kind === 'mandatoryQuantity' || kind === 'optionalQuantity' ? {
51838
+ ok: true,
51839
+ value: undefined
51840
+ } : REJECTED$1;
51841
+ }
51842
+ if (kind === 'active') {
51843
+ if (typeof raw === 'boolean') return {
51844
+ ok: true,
51845
+ value: raw
51846
+ };
51847
+ var text = String(raw).trim().toLowerCase();
51848
+ return text === 'true' || text === 'false' ? {
51849
+ ok: true,
51850
+ value: text === 'true'
51851
+ } : REJECTED$1;
51852
+ }
51853
+ var value = parsedInteger(raw);
51854
+ if (value === undefined) return REJECTED$1;
51855
+ if (kind === 'setNo' && (value < DEFAULT_SET_NO || value > MAX_SET_NO)) return REJECTED$1;
51856
+ return {
51857
+ ok: true,
51858
+ value: value
51859
+ };
51860
+ }
51861
+
51862
+ /**
51863
+ * Applies one cell value to the row's matrix and returns the rebuilt group fields, or undefined when the value is
51864
+ * nothing the cell could hold. Both fields go together because a quantity can move a reference from the mandatory
51865
+ * into the optional group and back.
51866
+ */
51867
+ function accessoryRowUpdate(data, isV4, accessory, kind, raw) {
51868
+ var parsed = parsedValue(kind, raw);
51869
+ if (!parsed.ok) return undefined;
51870
+ var cells = readCells(data, isV4);
51871
+ var setMeta = readSetMeta(data, isV4);
51872
+ if (kind === 'setNo') {
51873
+ // The grid shows one set per accessory, so the set goes to both IDM sides - each keeps it only with a quantity
51874
+ applyCellChange(cells, accessory, 'mandatorySetNo', parsed.value);
51875
+ applyCellChange(cells, accessory, 'optionalSetNo', parsed.value);
51876
+ } else {
51877
+ applyCellChange(cells, accessory, kind, parsed.value);
51878
+ }
51879
+ var groups = {};
51880
+ writeCells(groups, isV4, cells, setMeta);
51881
+ var _additionalItemFields = additionalItemFields(isV4),
51882
+ _additionalItemFields2 = _slicedToArray(_additionalItemFields, 2),
51883
+ mandatoryField = _additionalItemFields2[0],
51884
+ optionalField = _additionalItemFields2[1];
51885
+ return _defineProperty(_defineProperty({}, mandatoryField, groups[mandatoryField]), optionalField, groups[optionalField]);
51886
+ }
51887
+
51562
51888
  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; }
51563
51889
  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; }
51564
51890
  /** The IDM sets a reference can belong to - SET_NO is restricted to 1-9. */
51565
- var SET_NO_OPTIONS = Array.from({
51891
+ var SET_NO_VALUES = Array.from({
51566
51892
  length: MAX_SET_NO - DEFAULT_SET_NO + 1
51567
51893
  }, function (_, i) {
51568
- return {
51569
- value: DEFAULT_SET_NO + i,
51570
- label: String(DEFAULT_SET_NO + i)
51571
- };
51894
+ return DEFAULT_SET_NO + i;
51572
51895
  });
51573
51896
 
51574
51897
  /**
51575
51898
  * Zusatzartikel of a serie: rows are its articles, the dynamic columns their accessories. A checked cell makes the
51576
51899
  * relation active, the two quantities become the IDM MANDATORY_QUANTITY (minimum) and OPTIONAL_QUANTITY (maximum).
51577
- * Each quantity carries its own IDM set (SET_NO 1-9): mandatory and optional groups are numbered independently, so
51578
- * both sides have their own dropdown - filled as soon as the quantity is (defaulting to set 1) and empty and
51579
- * disabled without one, because a set without a quantity has nothing to publish.
51900
+ * The IDM numbers the mandatory and the optional groups independently (SET_NO 1-9), but a relation belongs to one
51901
+ * set here: the grid has a single Set No dropdown per accessory and writes it to both sides, each keeping it only
51902
+ * while it has a quantity. It is filled as soon as a quantity is (defaulting to set 1) and empty and disabled
51903
+ * without any, because a set without a quantity has nothing to publish.
51580
51904
  *
51581
51905
  * The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
51582
51906
  * through the normal item endpoints.
51583
51907
  *
51584
- * A matrix cell has no row field of its own - it is computed from the nested groups - so the cells render their own
51585
- * input and stage the rebuilt groups through the grid's transaction handler. The grid's normal editing path is not
51586
- * usable here: it keys each commit on `colDef.field` and drops an edit that has none. Staging keeps the save on the
51587
- * row: the grid commits the pending changes when the selection leaves it.
51908
+ * A matrix cell has no row field of its own - it is computed from the nested groups - so each column carries a
51909
+ * cellEditToRowUpdate that turns its edited value back into the two group fields. Everything else is the grid's
51910
+ * normal editing: the standard editors, clipboard and fill handle all funnel their writes through that one hook,
51911
+ * and the transaction handler commits the staged changes when the row is left.
51588
51912
  */
51589
- var ArticleRelations = observer(function (_ref) {
51590
- var idmService = _ref.idmService,
51591
- catalogId = _ref.catalogId,
51592
- serieId = _ref.serieId,
51593
- isV4 = _ref.isV4,
51594
- languages = _ref.languages,
51595
- accessories = _ref.accessories,
51596
- viewOnly = _ref.viewOnly;
51913
+ var ArticleRelations = observer(function (props) {
51914
+ var idmService = props.idmService,
51915
+ catalogId = props.catalogId,
51916
+ serieId = props.serieId,
51917
+ serieNo = props.serieNo,
51918
+ isV4 = props.isV4,
51919
+ languages = props.languages,
51920
+ accessories = props.accessories,
51921
+ onlyWithRelations = props.onlyWithRelations,
51922
+ onRemoved = props.onRemoved,
51923
+ viewOnly = props.viewOnly;
51597
51924
  var _useTranslation = useTranslation(),
51925
+ t = _useTranslation.t,
51598
51926
  i18n = _useTranslation.i18n;
51927
+ var root = useStore();
51599
51928
  var language = ((languages === null || languages === void 0 ? void 0 : languages[0]) || i18n.language || 'DE').toUpperCase();
51929
+ var spreadsheetRef = useRef(null);
51600
51930
  var applicationData = useMemo(function () {
51601
51931
  return {
51602
51932
  catalogId: catalogId,
@@ -51612,130 +51942,204 @@ var ArticleRelations = observer(function (_ref) {
51612
51942
  }, [idmService, viewOnly]);
51613
51943
 
51614
51944
  /**
51615
- * Rebuilds both group arrays of the row from its matrix and stages them as one update. Staging instead of
51616
- * committing is what makes the row save when it is left: the grid commits the pending changes as soon as the
51617
- * selection moves to another row. Both arrays go together because a quantity can move a reference from the
51618
- * mandatory into the optional group and back.
51945
+ * Only the articles that have at least one relation. The groups are properties of the item, so the server can
51946
+ * answer this as a null check on the pair - an article without any Zusatzartikel has neither of them.
51619
51947
  */
51620
- var save = useCallback(function (node, transactionHandler, change) {
51621
- var data = node === null || node === void 0 ? void 0 : node.data;
51622
- if (!data || !transactionHandler) return;
51623
- var cells = readCells(data, isV4);
51624
- var setMeta = readSetMeta(data, isV4);
51625
- change(cells, setMeta);
51626
- var groups = {};
51627
- writeCells(groups, isV4, cells, setMeta);
51948
+ var preFilter = useMemo(function () {
51949
+ if (!onlyWithRelations) return undefined;
51628
51950
  var _additionalItemFields = additionalItemFields(isV4),
51629
51951
  _additionalItemFields2 = _slicedToArray(_additionalItemFields, 2),
51630
51952
  mandatoryField = _additionalItemFields2[0],
51631
51953
  optionalField = _additionalItemFields2[1];
51632
- transactionHandler.updateRow(node.id, _defineProperty(_defineProperty({}, mandatoryField, groups[mandatoryField]), optionalField, groups[optionalField]), true);
51954
+ return {
51955
+ filterType: 'join',
51956
+ type: 'OR',
51957
+ conditions: [{
51958
+ colId: mandatoryField,
51959
+ filterType: 'text',
51960
+ type: 'notBlank'
51961
+ }, {
51962
+ colId: optionalField,
51963
+ filterType: 'text',
51964
+ type: 'notBlank'
51965
+ }]
51966
+ };
51967
+ }, [onlyWithRelations, isV4]);
51968
+
51969
+ /**
51970
+ * Rebuilds both group arrays of the row from its matrix and stages them as one update. Staging instead of
51971
+ * committing is what makes the row save when it is left: the grid commits the pending changes as soon as the
51972
+ * selection moves to another row. Both arrays go together because a quantity can move a reference from the
51973
+ * mandatory into the optional group and back.
51974
+ */
51975
+ /**
51976
+ * The one write path of a matrix cell: the grid hands every edit here - editor, clipboard and fill handle alike -
51977
+ * and gets back the rebuilt group fields to stage, or undefined for a value the cell cannot hold.
51978
+ */
51979
+ var edit = useCallback(function (accessory, kind) {
51980
+ return function (params) {
51981
+ return accessoryRowUpdate(params.data, isV4, accessory, kind, params.newValue);
51982
+ };
51633
51983
  }, [isV4]);
51634
- var saveCell = useCallback(function (accessory, property) {
51635
- return function (node, value, transactionHandler) {
51636
- return save(node, transactionHandler, function (cells) {
51637
- return applyCellChange(cells, accessory, property, value);
51638
- });
51984
+
51985
+ /**
51986
+ * Deletes every relation of one accessory in this serie - the whole column. The relations are spread over the
51987
+ * items, so the server does the removal and the grid reloads the rows it just changed.
51988
+ */
51989
+ var removeAccessory = useCallback(/*#__PURE__*/function () {
51990
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(accessory) {
51991
+ var _spreadsheetRef$curre;
51992
+ var path, response;
51993
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
51994
+ while (1) switch (_context.prev = _context.next) {
51995
+ case 0:
51996
+ path = "".concat(idmService, "/catalogs/").concat(catalogId, "/series/").concat(serieId, "/items/additionalitemrefs");
51997
+ _context.next = 3;
51998
+ return fetch("".concat(path, "/").concat(encodeURIComponent(accessory.serieNo), "/").concat(encodeURIComponent(accessory.typeNo)), {
51999
+ method: 'DELETE',
52000
+ headers: {
52001
+ Authorization: "Bearer ".concat(root.dataStore.jwt)
52002
+ }
52003
+ })["catch"](function () {
52004
+ return undefined;
52005
+ });
52006
+ case 3:
52007
+ response = _context.sent;
52008
+ if (response !== null && response !== void 0 && response.ok) {
52009
+ _context.next = 7;
52010
+ break;
52011
+ }
52012
+ message$1.error(t('backoffice.idmCatalog.articlerelations.label.removeAccessoryError', {
52013
+ defaultValue: 'Failed to remove the accessory'
52014
+ }));
52015
+ return _context.abrupt("return");
52016
+ case 7:
52017
+ onRemoved === null || onRemoved === void 0 || onRemoved(accessory.key);
52018
+ (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh(true);
52019
+ case 9:
52020
+ case "end":
52021
+ return _context.stop();
52022
+ }
52023
+ }, _callee);
52024
+ }));
52025
+ return function (_x) {
52026
+ return _ref.apply(this, arguments);
51639
52027
  };
51640
- }, [save]);
52028
+ }(), [idmService, catalogId, serieId, root.dataStore.jwt, onRemoved, t]);
52029
+
52030
+ // A reference carries its serie as a string, the selected serie may carry its number as one
52031
+ var ownSerieNo = serieNo == null ? undefined : String(serieNo);
51641
52032
  var accessoryColumnDefs = useMemo(function () {
51642
52033
  return accessories.map(function (accessory) {
51643
- var _accessory$shortText$, _accessory$shortText;
51644
- // Computed from nested groups: no field to filter, sort or key an edit on
52034
+ var _accessory$serieName, _accessory$shortText;
52035
+ // Computed from nested groups: no field to sort on, edits go through cellEditToRowUpdate. The filters
52036
+ // reach the server through the parsers below, which rewrite them onto the fields the item endpoint
52037
+ // answers for one accessory. The data type also picks the matching editor and filter operations.
51645
52038
  var matrixCell = {
51646
- editable: false,
51647
- filter: false,
51648
- sortable: false,
51649
- cellRenderer: AccessoryCellRenderer
52039
+ editable: !viewOnly,
52040
+ sortable: false
51650
52041
  };
52042
+ var numberCell = _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
52043
+ cellDataType: 'number'
52044
+ });
51651
52045
  var cellOf = function cellOf(data) {
51652
52046
  return readCells(data, isV4)[accessory.key];
51653
52047
  };
52048
+
52049
+ // An accessory of another serie names where it comes from. The serie is compared rather than the presence
52050
+ // of its name, so one whose name cannot be resolved does not pass as an accessory of the own serie.
52051
+ var origin = accessory.serieNo === ownSerieNo ? undefined : "(".concat([accessory.serieNo, (_accessory$serieName = accessory.serieName) === null || _accessory$serieName === void 0 ? void 0 : _accessory$serieName[language]].filter(Boolean).join(' '), ")");
52052
+ var article = [accessory.typeNo, (_accessory$shortText = accessory.shortText) === null || _accessory$shortText === void 0 ? void 0 : _accessory$shortText[language]].filter(Boolean).join(' - ');
51654
52053
  return {
51655
- headerName: "".concat((_accessory$shortText$ = (_accessory$shortText = accessory.shortText) === null || _accessory$shortText === void 0 ? void 0 : _accessory$shortText[language]) !== null && _accessory$shortText$ !== void 0 ? _accessory$shortText$ : accessory.typeNo, " (").concat(accessory.serieNo, "/").concat(accessory.typeNo, ")"),
52054
+ headerName: [article, origin].filter(Boolean).join(' '),
51656
52055
  marryChildren: true,
51657
- children: [_objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
51658
- headerName: 'backoffice.idmCatalog.articlerelations.label.active',
51659
- colId: "".concat(accessory.key, ".active"),
52056
+ headerGroupComponentParams: viewOnly ? undefined : {
52057
+ additionalElement: /*#__PURE__*/jsx(Popconfirm$1, {
52058
+ rootClassName: "ag-custom-component-popup",
52059
+ title: t('backoffice.idmCatalog.articlerelations.label.removeAccessoryConfirmTitle', {
52060
+ defaultValue: 'Remove accessory?'
52061
+ }),
52062
+ description: t('backoffice.idmCatalog.articlerelations.label.removeAccessoryConfirmDescription', {
52063
+ defaultValue: 'This deletes the relation to this accessory on every article of the serie, not just the ones shown.'
52064
+ }),
52065
+ onConfirm: function onConfirm(e) {
52066
+ e === null || e === void 0 || e.stopPropagation();
52067
+ removeAccessory(accessory);
52068
+ },
52069
+ onCancel: function onCancel(e) {
52070
+ return e === null || e === void 0 ? void 0 : e.stopPropagation();
52071
+ },
52072
+ okText: t('backoffice.common.button.delete', {
52073
+ defaultValue: 'Delete'
52074
+ }),
52075
+ cancelText: t('backoffice.common.button.cancel'),
52076
+ children: /*#__PURE__*/jsx(Button$1, {
52077
+ icon: /*#__PURE__*/jsx(DeleteOutlined$1, {}),
52078
+ type: "text",
52079
+ size: "small",
52080
+ onClick: function onClick(e) {
52081
+ return e.stopPropagation();
52082
+ }
52083
+ })
52084
+ })
52085
+ },
52086
+ children: [_objectSpread$E(_objectSpread$E({}, numberCell), {}, {
52087
+ headerName: 'backoffice.idmCatalog.articlerelations.label.mandatoryQuantity',
52088
+ colId: "".concat(accessory.key, ".mandatoryQuantity"),
52089
+ filterModelParser: quantityFilterParser("".concat(accessory.key, ".mandatoryQuantity"), accessory, 'mandatory'),
51660
52090
  valueGetter: function valueGetter(_ref2) {
51661
- var _cellOf$active, _cellOf;
52091
+ var _cellOf;
51662
52092
  var data = _ref2.data;
51663
- return data ? (_cellOf$active = (_cellOf = cellOf(data)) === null || _cellOf === void 0 ? void 0 : _cellOf.active) !== null && _cellOf$active !== void 0 ? _cellOf$active : false : undefined;
52093
+ return data ? (_cellOf = cellOf(data)) === null || _cellOf === void 0 ? void 0 : _cellOf.mandatoryQuantity : undefined;
51664
52094
  },
51665
- cellRendererParams: {
51666
- kind: 'boolean',
51667
- disabled: viewOnly,
51668
- onSave: saveCell(accessory, 'active')
51669
- }
51670
- }), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
51671
- headerName: 'backoffice.idmCatalog.articlerelations.label.mandatoryQuantity',
51672
- colId: "".concat(accessory.key, ".mandatoryQuantity"),
52095
+ cellEditToRowUpdate: edit(accessory, 'mandatoryQuantity')
52096
+ }), _objectSpread$E(_objectSpread$E({}, numberCell), {}, {
52097
+ headerName: 'backoffice.idmCatalog.articlerelations.label.optionalQuantity',
52098
+ colId: "".concat(accessory.key, ".optionalQuantity"),
52099
+ filterModelParser: quantityFilterParser("".concat(accessory.key, ".optionalQuantity"), accessory, 'optional'),
51673
52100
  valueGetter: function valueGetter(_ref3) {
51674
52101
  var _cellOf2;
51675
52102
  var data = _ref3.data;
51676
- return data ? (_cellOf2 = cellOf(data)) === null || _cellOf2 === void 0 ? void 0 : _cellOf2.mandatoryQuantity : undefined;
52103
+ return data ? (_cellOf2 = cellOf(data)) === null || _cellOf2 === void 0 ? void 0 : _cellOf2.optionalQuantity : undefined;
51677
52104
  },
51678
- cellRendererParams: {
51679
- kind: 'number',
51680
- min: 0,
51681
- disabled: viewOnly,
51682
- onSave: saveCell(accessory, 'mandatoryQuantity')
51683
- }
51684
- }), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
51685
- headerName: 'backoffice.idmCatalog.articlerelations.label.mandatorySetNo',
51686
- colId: "".concat(accessory.key, ".mandatorySetNo"),
52105
+ cellEditToRowUpdate: edit(accessory, 'optionalQuantity')
52106
+ }), _objectSpread$E(_objectSpread$E({}, numberCell), {}, {
52107
+ headerName: 'backoffice.idmCatalog.articlerelations.label.setNo',
52108
+ colId: "".concat(accessory.key, ".setNo"),
52109
+ // Editable exactly while a quantity is set - without one there is nothing the set could publish
52110
+ editable: function editable(params) {
52111
+ if (viewOnly) return false;
52112
+ var cell = cellOf(params.data);
52113
+ return (cell === null || cell === void 0 ? void 0 : cell.mandatoryQuantity) != null || (cell === null || cell === void 0 ? void 0 : cell.optionalQuantity) != null;
52114
+ },
52115
+ cellEditor: 'agSelectCellEditor',
52116
+ cellEditorParams: {
52117
+ values: SET_NO_VALUES
52118
+ },
52119
+ filterModelParser: setNoFilterParser("".concat(accessory.key, ".setNo"), accessory),
52120
+ // Both sides are always written together, so either one carries the set of the relation
51687
52121
  valueGetter: function valueGetter(_ref4) {
51688
- var _cellOf3;
52122
+ var _cell$mandatorySetNo;
51689
52123
  var data = _ref4.data;
51690
- return data ? (_cellOf3 = cellOf(data)) === null || _cellOf3 === void 0 ? void 0 : _cellOf3.mandatorySetNo : undefined;
52124
+ var cell = data ? cellOf(data) : undefined;
52125
+ return (_cell$mandatorySetNo = cell === null || cell === void 0 ? void 0 : cell.mandatorySetNo) !== null && _cell$mandatorySetNo !== void 0 ? _cell$mandatorySetNo : cell === null || cell === void 0 ? void 0 : cell.optionalSetNo;
51691
52126
  },
51692
- cellRendererParams: {
51693
- kind: 'select',
51694
- options: SET_NO_OPTIONS,
51695
- disabled: viewOnly,
51696
- // Required exactly while its quantity is set - without one there is nothing the set could publish
51697
- isDisabled: function isDisabled(node) {
51698
- var _cellOf4;
51699
- return ((_cellOf4 = cellOf(node.data)) === null || _cellOf4 === void 0 ? void 0 : _cellOf4.mandatoryQuantity) == null;
51700
- },
51701
- onSave: saveCell(accessory, 'mandatorySetNo')
51702
- }
52127
+ cellEditToRowUpdate: edit(accessory, 'setNo')
51703
52128
  }), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
51704
- headerName: 'backoffice.idmCatalog.articlerelations.label.optionalQuantity',
51705
- colId: "".concat(accessory.key, ".optionalQuantity"),
52129
+ headerName: 'backoffice.idmCatalog.articlerelations.label.active',
52130
+ colId: "".concat(accessory.key, ".active"),
52131
+ cellDataType: 'boolean',
52132
+ filterModelParser: activeFilterParser("".concat(accessory.key, ".active"), accessory),
51706
52133
  valueGetter: function valueGetter(_ref5) {
51707
- var _cellOf5;
52134
+ var _cellOf$active, _cellOf3;
51708
52135
  var data = _ref5.data;
51709
- return data ? (_cellOf5 = cellOf(data)) === null || _cellOf5 === void 0 ? void 0 : _cellOf5.optionalQuantity : undefined;
52136
+ return data ? (_cellOf$active = (_cellOf3 = cellOf(data)) === null || _cellOf3 === void 0 ? void 0 : _cellOf3.active) !== null && _cellOf$active !== void 0 ? _cellOf$active : false : undefined;
51710
52137
  },
51711
- cellRendererParams: {
51712
- kind: 'number',
51713
- min: 0,
51714
- disabled: viewOnly,
51715
- onSave: saveCell(accessory, 'optionalQuantity')
51716
- }
51717
- }), _objectSpread$E(_objectSpread$E({}, matrixCell), {}, {
51718
- headerName: 'backoffice.idmCatalog.articlerelations.label.optionalSetNo',
51719
- colId: "".concat(accessory.key, ".optionalSetNo"),
51720
- valueGetter: function valueGetter(_ref6) {
51721
- var _cellOf6;
51722
- var data = _ref6.data;
51723
- return data ? (_cellOf6 = cellOf(data)) === null || _cellOf6 === void 0 ? void 0 : _cellOf6.optionalSetNo : undefined;
51724
- },
51725
- cellRendererParams: {
51726
- kind: 'select',
51727
- options: SET_NO_OPTIONS,
51728
- disabled: viewOnly,
51729
- isDisabled: function isDisabled(node) {
51730
- var _cellOf7;
51731
- return ((_cellOf7 = cellOf(node.data)) === null || _cellOf7 === void 0 ? void 0 : _cellOf7.optionalQuantity) == null;
51732
- },
51733
- onSave: saveCell(accessory, 'optionalSetNo')
51734
- }
52138
+ cellEditToRowUpdate: edit(accessory, 'active')
51735
52139
  })]
51736
52140
  };
51737
52141
  });
51738
- }, [accessories, language, isV4, viewOnly, saveCell]);
52142
+ }, [accessories, language, ownSerieNo, isV4, viewOnly, edit, removeAccessory, t]);
51739
52143
  var configuration = useMemo(function () {
51740
52144
  return {
51741
52145
  type: 'dotnetSSM',
@@ -51772,9 +52176,11 @@ var ArticleRelations = observer(function (_ref) {
51772
52176
  }, [apiInterface, accessoryColumnDefs, isV4]);
51773
52177
  if (!catalogId || !serieId) return null;
51774
52178
  return /*#__PURE__*/jsx(Spreadsheet, {
52179
+ ref: spreadsheetRef,
51775
52180
  gridId: "crud-grid_articlerelations",
51776
52181
  applicationData: applicationData,
51777
- configuration: configuration
52182
+ configuration: configuration,
52183
+ preFilter: preFilter
51778
52184
  });
51779
52185
  });
51780
52186
 
@@ -51785,6 +52191,7 @@ var ArticleRelations = observer(function (_ref) {
51785
52191
  function AddAccessoryModal(_ref) {
51786
52192
  var open = _ref.open,
51787
52193
  catalogId = _ref.catalogId,
52194
+ serieId = _ref.serieId,
51788
52195
  language = _ref.language,
51789
52196
  onCancel = _ref.onCancel,
51790
52197
  onAdd = _ref.onAdd;
@@ -51807,6 +52214,10 @@ function AddAccessoryModal(_ref) {
51807
52214
  _useState8 = _slicedToArray(_useState7, 2),
51808
52215
  typeNos = _useState8[0],
51809
52216
  setTypeNos = _useState8[1];
52217
+ var _useState9 = useState(''),
52218
+ _useState10 = _slicedToArray(_useState9, 2),
52219
+ search = _useState10[0],
52220
+ setSearch = _useState10[1];
51810
52221
  var read = useMemo(function () {
51811
52222
  return function (path) {
51812
52223
  return new _default$c({
@@ -51829,13 +52240,38 @@ function AddAccessoryModal(_ref) {
51829
52240
  setItems([]);
51830
52241
  return;
51831
52242
  }
52243
+ var cancelled = false;
51832
52244
 
51833
52245
  // Project to what the picker shows - without it the endpoint resolves detail infos, partlist and prices per item
51834
52246
  read("/catalogs/".concat(catalogId, "/series/").concat(serie._id, "/items?fields=").concat(encodeURIComponent('typeNo;shortText'))).readList().then(function (r) {
51835
52247
  var _r$data2;
51836
- return setItems((_r$data2 = r.data) !== null && _r$data2 !== void 0 ? _r$data2 : []);
52248
+ // The serie may have been switched again while this was on its way - a late answer must not win
52249
+ if (cancelled) return;
52250
+ setItems((_r$data2 = r.data) !== null && _r$data2 !== void 0 ? _r$data2 : []);
51837
52251
  });
52252
+ return function () {
52253
+ cancelled = true;
52254
+ };
51838
52255
  }, [serie, catalogId, read]);
52256
+
52257
+ // Every opening starts over
52258
+ useEffect(function () {
52259
+ if (!open) return;
52260
+ setSerie(undefined);
52261
+ setTypeNos([]);
52262
+ setSearch('');
52263
+ }, [open]);
52264
+
52265
+ // ... at the serie being edited, which is where an accessory comes from in most cases. Only fills in what is not
52266
+ // chosen yet, because the serie list is fetched per opening and would otherwise undo a pick made while it loads
52267
+ useEffect(function () {
52268
+ if (!open) return;
52269
+ setSerie(function (current) {
52270
+ return current !== null && current !== void 0 ? current : series.find(function (s) {
52271
+ return s._id === serieId;
52272
+ });
52273
+ });
52274
+ }, [open, series, serieId]);
51839
52275
  var itemOptions = useMemo(function () {
51840
52276
  return items.map(function (i) {
51841
52277
  var _i$shortText$language, _i$shortText;
@@ -51846,6 +52282,23 @@ function AddAccessoryModal(_ref) {
51846
52282
  };
51847
52283
  });
51848
52284
  }, [items, language]);
52285
+
52286
+ /** The articles the list currently offers - the same match the select filters its options by. */
52287
+ var offeredOptions = useMemo(function () {
52288
+ var needle = search.trim().toLowerCase();
52289
+ return needle ? itemOptions.filter(function (option) {
52290
+ return option.label.toLowerCase().includes(needle);
52291
+ }) : itemOptions;
52292
+ }, [itemOptions, search]);
52293
+
52294
+ // Adds to the picked articles instead of replacing them, so searching twice keeps the first result
52295
+ var selectAll = useCallback(function () {
52296
+ setTypeNos(function (current) {
52297
+ return _toConsumableArray(new Set([].concat(_toConsumableArray(current), _toConsumableArray(offeredOptions.map(function (option) {
52298
+ return option.value;
52299
+ })))));
52300
+ });
52301
+ }, [offeredOptions]);
51849
52302
  return /*#__PURE__*/jsx(Modal$3, {
51850
52303
  open: open,
51851
52304
  title: t('backoffice.idmCatalog.articlerelations.label.addAccessory'),
@@ -51867,7 +52320,9 @@ function AddAccessoryModal(_ref) {
51867
52320
  key: accessoryKey(serieNo, option.value),
51868
52321
  serieNo: serieNo,
51869
52322
  typeNo: option.value,
51870
- shortText: (_option$item = option.item) === null || _option$item === void 0 ? void 0 : _option$item.shortText
52323
+ shortText: (_option$item = option.item) === null || _option$item === void 0 ? void 0 : _option$item.shortText,
52324
+ // Names the origin of a foreign accessory right away, the way the item endpoint does for the columns it serves
52325
+ serieName: serie._id === serieId ? undefined : serie.seriesName
51871
52326
  };
51872
52327
  }));
51873
52328
  setTypeNos([]);
@@ -51898,14 +52353,32 @@ function AddAccessoryModal(_ref) {
51898
52353
  }), /*#__PURE__*/jsx(Form$3.Item, {
51899
52354
  label: t('backoffice.idmCatalog.articlerelations.label.accessoryTypeNos'),
51900
52355
  children: /*#__PURE__*/jsx(Select$1, {
51901
- mode: "multiple",
51902
- showSearch: true,
51903
- optionFilterProp: "label",
52356
+ mode: "multiple"
52357
+ // The search survives a pick - without it every selection empties it and the list has to be searched again
52358
+ ,
52359
+ showSearch: {
52360
+ optionFilterProp: 'label',
52361
+ autoClearSearchValue: false,
52362
+ onSearch: setSearch
52363
+ }
52364
+ // Controlled, so what the list shows and what "select all" takes can never drift apart
52365
+ ,
52366
+ searchValue: search,
51904
52367
  maxTagCount: "responsive",
51905
52368
  value: typeNos,
51906
52369
  onChange: setTypeNos,
51907
52370
  options: itemOptions,
51908
52371
  disabled: !serie
52372
+ // The same select all the decision table picker of the item grid offers
52373
+ ,
52374
+ popupRender: function popupRender(menu) {
52375
+ return /*#__PURE__*/jsxs(Fragment, {
52376
+ children: [/*#__PURE__*/jsx(SelectAllOption, {
52377
+ onClick: selectAll,
52378
+ disabled: offeredOptions.length === 0
52379
+ }), menu]
52380
+ });
52381
+ }
51909
52382
  })
51910
52383
  })]
51911
52384
  })
@@ -51978,18 +52451,30 @@ function useAdditionalItemRefs(catalogId, serieId) {
51978
52451
  return fresh.length ? [].concat(_toConsumableArray(current), fresh) : current;
51979
52452
  });
51980
52453
  }, []);
52454
+
52455
+ /** Drops a column the editor removed. The relations behind it are deleted by the caller, on the server. */
52456
+ var removeColumn = useCallback(function (key) {
52457
+ setColumns(function (current) {
52458
+ return current.filter(function (column) {
52459
+ return column.key !== key;
52460
+ });
52461
+ });
52462
+ }, []);
51981
52463
  return {
51982
52464
  columns: columns,
51983
- addColumns: addColumns
52465
+ addColumns: addColumns,
52466
+ removeColumn: removeColumn
51984
52467
  };
51985
52468
  }
51986
52469
 
52470
+ var INFO_CODEX = 'IDM_ARTICLE_RELATIONS_TABLE_INFO';
51987
52471
  var MODULES = ['articlerelations'];
51988
52472
 
51989
52473
  /**
51990
52474
  * Zusatzartikel of the selected serie. The relations are catalog data on the articles themselves
51991
52475
  * (ITEM.ADDITIONAL_ITEMS), so a row is an item of the serie and the accessories are its dynamic columns - each with
51992
- * its own IDM set no per mandatory/optional side.
52476
+ * a mandatory and an optional quantity and one IDM set no. The checkbox of the title bar reduces the rows to the
52477
+ * articles that have at least one relation.
51993
52478
  */
51994
52479
  var TableArticleRelations = observer(function () {
51995
52480
  var _selectedCatalog$isoL;
@@ -52008,10 +52493,16 @@ var TableArticleRelations = observer(function () {
52008
52493
  _useState2 = _slicedToArray(_useState, 2),
52009
52494
  addAccessoryOpen = _useState2[0],
52010
52495
  setAddAccessoryOpen = _useState2[1];
52496
+ var _useState3 = useState(false),
52497
+ _useState4 = _slicedToArray(_useState3, 2),
52498
+ onlyWithRelations = _useState4[0],
52499
+ setOnlyWithRelations = _useState4[1];
52011
52500
  var _useAdditionalItemRef = useAdditionalItemRefs(catalogId, selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id),
52012
52501
  accessories = _useAdditionalItemRef.columns,
52013
- addColumns = _useAdditionalItemRef.addColumns;
52502
+ addColumns = _useAdditionalItemRef.addColumns,
52503
+ removeColumn = _useAdditionalItemRef.removeColumn;
52014
52504
  useTools({
52505
+ mainInformationWindowCodex: INFO_CODEX,
52015
52506
  catalog: selectedCatalog,
52016
52507
  setSerie: setSelectedSerie,
52017
52508
  setArticle: setSelectedItem,
@@ -52022,14 +52513,22 @@ var TableArticleRelations = observer(function () {
52022
52513
  return /*#__PURE__*/jsxs(Fragment, {
52023
52514
  children: [/*#__PURE__*/jsx(Descriptions$1, {
52024
52515
  title: /*#__PURE__*/jsxs("div", {
52025
- children: [/*#__PURE__*/jsx(Space$1, {
52026
- children: t('backoffice.menu.items.label.IDMCatalogEditorTableArticleRelations')
52516
+ children: [/*#__PURE__*/jsxs(Space$1, {
52517
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableArticleRelations'), /*#__PURE__*/jsx(InformationButton, {
52518
+ codex: INFO_CODEX
52519
+ })]
52027
52520
  }), /*#__PURE__*/jsxs(Space$1, {
52028
52521
  style: {
52029
52522
  "float": 'right'
52030
52523
  },
52031
52524
  align: "end",
52032
- children: [/*#__PURE__*/jsx(Button$1, {
52525
+ children: [/*#__PURE__*/jsx(Checkbox$2, {
52526
+ checked: onlyWithRelations,
52527
+ onChange: function onChange(event) {
52528
+ return setOnlyWithRelations(event.target.checked);
52529
+ },
52530
+ children: t('backoffice.idmCatalog.articlerelations.label.onlyWithRelations')
52531
+ }), /*#__PURE__*/jsx(Button$1, {
52033
52532
  icon: /*#__PURE__*/jsx(PlusOutlined$1, {}),
52034
52533
  disabled: !catalogId || !(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie._id),
52035
52534
  onClick: function onClick() {
@@ -52047,12 +52546,16 @@ var TableArticleRelations = observer(function () {
52047
52546
  idmService: apiConfig.idmService,
52048
52547
  catalogId: catalogId,
52049
52548
  serieId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
52549
+ serieNo: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo,
52050
52550
  isV4: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4,
52051
52551
  languages: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds,
52052
- accessories: accessories
52552
+ accessories: accessories,
52553
+ onlyWithRelations: onlyWithRelations,
52554
+ onRemoved: removeColumn
52053
52555
  }), /*#__PURE__*/jsx(AddAccessoryModal, {
52054
52556
  open: addAccessoryOpen,
52055
52557
  catalogId: catalogId,
52558
+ serieId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id,
52056
52559
  language: language,
52057
52560
  onCancel: function onCancel() {
52058
52561
  return setAddAccessoryOpen(false);