@crystaldesign/diva-backoffice 26.11.0-beta.13 → 26.11.0-beta.15

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 (24) hide show
  1. package/build/esm/index.js +1734 -494
  2. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts +2 -0
  3. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts.map +1 -0
  4. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts +2 -0
  5. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts.map +1 -0
  6. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +1 -2
  7. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +5 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts +129 -0
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts.map +1 -0
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts +10 -0
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts.map +1 -0
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts +36 -0
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts.map +1 -0
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts +21 -0
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts.map +1 -0
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts +9 -0
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts.map +1 -0
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/utils/ApiHandler.d.ts +1 -1
  23. package/build/types/backoffice/src/utils/ApiHandler.d.ts.map +1 -1
  24. package/package.json +10 -10
@@ -203,8 +203,8 @@ import DivaWebPlanner from '@crystaldesign/web-planner-logic';
203
203
  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; } } }; }
204
204
  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; } }
205
205
  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; }
206
- 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; }
207
- 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; }
206
+ 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; }
207
+ 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; }
208
208
  var LOG$r = getLogger('Backoffice', 'ApplyMapping');
209
209
  function applyMapping (_ref) {
210
210
  var mappable = _ref.mappable,
@@ -225,10 +225,10 @@ function applyMapping (_ref) {
225
225
  var newValue = {};
226
226
  newValue[newKey] = valueToAdd;
227
227
  if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
228
- if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1W(_objectSpread$1W({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
228
+ if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1Z(_objectSpread$1Z({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
229
229
  return startValue;
230
230
  }
231
- if (newIdx == 1) return _objectSpread$1W(_objectSpread$1W({}, startValue), newValue);
231
+ if (newIdx == 1) return _objectSpread$1Z(_objectSpread$1Z({}, startValue), newValue);
232
232
  return _getTarget(idx + 1, keys, startValue, newValue);
233
233
  };
234
234
  returnValue = _getTarget(0, key.split('.'), returnValue, value);
@@ -531,8 +531,8 @@ function getLeafColumns(columns) {
531
531
  });
532
532
  }
533
533
 
534
- 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; }
535
- 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; }
534
+ 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; }
535
+ 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; }
536
536
  var LOG$q = getLogger('Backoffice', 'ApiHandler');
537
537
  var jp = require('jsonpath');
538
538
  var _default$c = /*#__PURE__*/function () {
@@ -711,7 +711,7 @@ var _default$c = /*#__PURE__*/function () {
711
711
  _context2.next = 20;
712
712
  return fetch(finalUrl, {
713
713
  method: this._updateMethod,
714
- headers: _objectSpread$1V(_objectSpread$1V({}, jwt ? {
714
+ headers: _objectSpread$1Y(_objectSpread$1Y({}, jwt ? {
715
715
  Authorization: 'Bearer ' + jwt
716
716
  } : {}), {}, {
717
717
  'Content-Type': 'application/json'
@@ -804,7 +804,7 @@ var _default$c = /*#__PURE__*/function () {
804
804
  rootStore: this._rootStore,
805
805
  fallBackToParams: true
806
806
  });
807
- if (data) createData = _objectSpread$1V({}, data);
807
+ if (data) createData = _objectSpread$1Y({}, data);
808
808
  } else if (data !== undefined) {
809
809
  createData = applyMapping({
810
810
  mappable: data,
@@ -1066,7 +1066,7 @@ var _default$c = /*#__PURE__*/function () {
1066
1066
  throw new Error('Read List endpoint is missing in configuration.');
1067
1067
  case 2:
1068
1068
  jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
1069
- url = filterServerSide ? parseServersideFilters(_objectSpread$1V(_objectSpread$1V({}, filterServerSide), {}, {
1069
+ url = filterServerSide ? parseServersideFilters(_objectSpread$1Y(_objectSpread$1Y({}, filterServerSide), {}, {
1070
1070
  columns: this._filterFields ? filterServerSide.columns : undefined,
1071
1071
  baseUrl: this._readListUrl,
1072
1072
  prefilter: prefilter
@@ -1086,7 +1086,7 @@ var _default$c = /*#__PURE__*/function () {
1086
1086
  });
1087
1087
  case 6:
1088
1088
  response = _context8.sent;
1089
- return _context8.abrupt("return", _objectSpread$1V(_objectSpread$1V({}, response), {}, {
1089
+ return _context8.abrupt("return", _objectSpread$1Y(_objectSpread$1Y({}, response), {}, {
1090
1090
  data: response.data.map(function (d) {
1091
1091
  return _this2.aplyJsonPath(d, _this2._readJsonPath);
1092
1092
  })
@@ -1110,7 +1110,7 @@ var _default$c = /*#__PURE__*/function () {
1110
1110
  throw new Error('Read List endpoint is missing in configuration.');
1111
1111
  }
1112
1112
  (_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
1113
- var url = filterServerSide ? parseServersideFilters(_objectSpread$1V(_objectSpread$1V({}, filterServerSide), {}, {
1113
+ var url = filterServerSide ? parseServersideFilters(_objectSpread$1Y(_objectSpread$1Y({}, filterServerSide), {}, {
1114
1114
  columns: this._filterFields ? filterServerSide.columns : undefined,
1115
1115
  baseUrl: this._readListUrl,
1116
1116
  prefilter: prefilter
@@ -2025,8 +2025,8 @@ function buildContentTranslationItems(content, t) {
2025
2025
  return translationItems;
2026
2026
  }
2027
2027
 
2028
- 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; }
2029
- 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; }
2028
+ 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; }
2029
+ 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; }
2030
2030
  var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
2031
2031
  return o.apiValue;
2032
2032
  });
@@ -2068,7 +2068,7 @@ var _default$7 = /*#__PURE__*/function () {
2068
2068
  var _i$permission;
2069
2069
  return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
2070
2070
  });
2071
- config = _objectSpread$1U(_objectSpread$1U({}, config), {}, {
2071
+ config = _objectSpread$1X(_objectSpread$1X({}, config), {}, {
2072
2072
  items: filteredItems
2073
2073
  });
2074
2074
  }
@@ -14862,8 +14862,8 @@ var navMinified = "nav-minified-tSt-a";
14862
14862
  var navOverlay = "nav-overlay-rKJNC";
14863
14863
  var navSettings = "nav-settings-82cjv";
14864
14864
  var menuLabel = "menu-label-4dXQk";
14865
- 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";
14866
- styleInject(css_248z$X);
14865
+ var css_248z$Y = ".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";
14866
+ styleInject(css_248z$Y);
14867
14867
 
14868
14868
  function MenuLabel (_ref) {
14869
14869
  var disabled = _ref.disabled,
@@ -15105,8 +15105,8 @@ function getIcon(icon) {
15105
15105
  return undefined;
15106
15106
  }
15107
15107
 
15108
- 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; }
15109
- 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; }
15108
+ 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; }
15109
+ 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; }
15110
15110
  /**
15111
15111
  * Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
15112
15112
  * Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
@@ -15152,7 +15152,7 @@ function readToolPreferences(toolId) {
15152
15152
  /** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
15153
15153
  function updateToolPreferences(toolId, patch) {
15154
15154
  try {
15155
- localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1T(_objectSpread$1T({}, readToolPreferences(toolId)), patch)));
15155
+ localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$1W(_objectSpread$1W({}, readToolPreferences(toolId)), patch)));
15156
15156
  } catch (_unused2) {
15157
15157
  // storage unavailable / quota exceeded
15158
15158
  }
@@ -15758,8 +15758,8 @@ var ToolBarStore = /*#__PURE__*/function () {
15758
15758
  }]);
15759
15759
  }();
15760
15760
 
15761
- 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; }
15762
- 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; }
15761
+ 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; }
15762
+ 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; }
15763
15763
  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; } } }; }
15764
15764
  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; } }
15765
15765
  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; }
@@ -15905,7 +15905,7 @@ var _default$6 = /*#__PURE__*/function () {
15905
15905
  if (index >= 0) {
15906
15906
  this._additionalMenuElements[index] = {
15907
15907
  key: key,
15908
- element: _objectSpread$1S(_objectSpread$1S({}, this._additionalMenuElements[index].element), {}, {
15908
+ element: _objectSpread$1V(_objectSpread$1V({}, this._additionalMenuElements[index].element), {}, {
15909
15909
  items: items,
15910
15910
  selected: selected
15911
15911
  })
@@ -15978,7 +15978,7 @@ var _default$6 = /*#__PURE__*/function () {
15978
15978
  var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
15979
15979
  this.root.navigate('/' + path);
15980
15980
  }
15981
- this._menuElement1 = _objectSpread$1S(_objectSpread$1S({}, this.menuElement1), {}, {
15981
+ this._menuElement1 = _objectSpread$1V(_objectSpread$1V({}, this.menuElement1), {}, {
15982
15982
  selected: this._selectedMenuKeys[0]
15983
15983
  });
15984
15984
  var menu2 = (_this$_menu$find = this._menu.find(function (element) {
@@ -16272,7 +16272,7 @@ var _default$6 = /*#__PURE__*/function () {
16272
16272
  }
16273
16273
  return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
16274
16274
  }).map(function (item) {
16275
- return _objectSpread$1S(_objectSpread$1S({}, item), {}, {
16275
+ return _objectSpread$1V(_objectSpread$1V({}, item), {}, {
16276
16276
  items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
16277
16277
  subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
16278
16278
  });
@@ -17671,8 +17671,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
17671
17671
  return _createClass(_default);
17672
17672
  }(_default$c);
17673
17673
 
17674
- 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; }
17675
- 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; }
17674
+ 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; }
17675
+ 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; }
17676
17676
  var LOG$o = getLogger('Backoffice', 'ContextStore');
17677
17677
 
17678
17678
  /**
@@ -17707,7 +17707,7 @@ var ContextStore = /*#__PURE__*/function () {
17707
17707
  key: "updateContext",
17708
17708
  value: function updateContext(contextId, updates) {
17709
17709
  var currentState = this.contexts.get(contextId) || {};
17710
- var updatedState = _objectSpread$1R(_objectSpread$1R({}, currentState), updates);
17710
+ var updatedState = _objectSpread$1U(_objectSpread$1U({}, currentState), updates);
17711
17711
  this.contexts.set(contextId, updatedState);
17712
17712
  LOG$o.debug("Updated context ".concat(contextId), {
17713
17713
  updatedState: updatedState
@@ -18004,8 +18004,8 @@ function webplannerInstanceKey(parts) {
18004
18004
  return "".concat((_ref = (_parts$catalogId = parts.catalogId) !== null && _parts$catalogId !== void 0 ? _parts$catalogId : parts.packageId) !== null && _ref !== void 0 ? _ref : '', "|").concat((_parts$serieNo = parts.serieNo) !== null && _parts$serieNo !== void 0 ? _parts$serieNo : '', "|").concat((_parts$itemTypeNo = parts.itemTypeNo) !== null && _parts$itemTypeNo !== void 0 ? _parts$itemTypeNo : '', "|").concat((_parts$language = parts.language) !== null && _parts$language !== void 0 ? _parts$language : '');
18005
18005
  }
18006
18006
 
18007
- 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; }
18008
- 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; }
18007
+ 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; }
18008
+ 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; }
18009
18009
  /**
18010
18010
  * Registry of the AG Grid tables currently on screen. Every SpreadsheetWrapper
18011
18011
  * registers itself on mount so tools (DIVA agent) can drive the visible grids
@@ -18024,7 +18024,7 @@ var GridRegistry = /*#__PURE__*/function () {
18024
18024
  key: "register",
18025
18025
  value: function register(entry) {
18026
18026
  var id = ++this._seq;
18027
- this._entries = [].concat(_toConsumableArray(this._entries), [_objectSpread$1Q({
18027
+ this._entries = [].concat(_toConsumableArray(this._entries), [_objectSpread$1T({
18028
18028
  id: id
18029
18029
  }, entry)]);
18030
18030
  return id;
@@ -18272,8 +18272,8 @@ function removeEmpty(data) {
18272
18272
  return undefined;
18273
18273
  }
18274
18274
 
18275
- 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; }
18276
- 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; }
18275
+ 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; }
18276
+ 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; }
18277
18277
  function fetchFileData(_x) {
18278
18278
  return _fetchFileData.apply(this, arguments);
18279
18279
  }
@@ -18433,7 +18433,7 @@ function _uploadMediaItem() {
18433
18433
  _context4.next = 4;
18434
18434
  return fetch("".concat(root, "/v1/assets/uploads"), {
18435
18435
  method: 'POST',
18436
- headers: _objectSpread$1P({
18436
+ headers: _objectSpread$1S({
18437
18437
  'Content-Type': 'application/json'
18438
18438
  }, auth),
18439
18439
  body: JSON.stringify({
@@ -18499,7 +18499,7 @@ function _uploadMediaItem() {
18499
18499
  _context4.next = 31;
18500
18500
  return fetch("".concat(root, "/v1/assets/uploads/complete"), {
18501
18501
  method: 'POST',
18502
- headers: _objectSpread$1P({
18502
+ headers: _objectSpread$1S({
18503
18503
  'Content-Type': 'application/json'
18504
18504
  }, auth),
18505
18505
  body: JSON.stringify({
@@ -18544,7 +18544,7 @@ function _uploadMediaItem() {
18544
18544
  refUrl = (_ref$url = ref.url) !== null && _ref$url !== void 0 ? _ref$url : ref.cdnUrl;
18545
18545
  return _context4.abrupt("return", {
18546
18546
  _id: mediaItem._id,
18547
- ref: _objectSpread$1P(_objectSpread$1P({}, ref), {}, {
18547
+ ref: _objectSpread$1S(_objectSpread$1S({}, ref), {}, {
18548
18548
  _id: ref._id,
18549
18549
  url: refUrl
18550
18550
  })
@@ -18992,8 +18992,8 @@ function getData$1(id, data) {
18992
18992
  function _createForOfIteratorHelper$D(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$D(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; } } }; }
18993
18993
  function _unsupportedIterableToArray$D(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$D(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$D(r, a) : void 0; } }
18994
18994
  function _arrayLikeToArray$D(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; }
18995
- 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; }
18996
- 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; }
18995
+ 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; }
18996
+ 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; }
18997
18997
  function toNamePath$2(name) {
18998
18998
  if (name === undefined || name === '') return [];
18999
18999
  return Array.isArray(name) ? name : [name];
@@ -19063,7 +19063,7 @@ function useFormData (_ref) {
19063
19063
  var _useMemo = useMemo(function () {
19064
19064
  setCanSave === null || setCanSave === void 0 || setCanSave(true);
19065
19065
  var baseConfiguration = configurationOverride !== null && configurationOverride !== void 0 ? configurationOverride : root.configurationStore.getConfiguration(id, 'Form');
19066
- var configuration = _objectSpread$1O(_objectSpread$1O({}, baseConfiguration), {}, {
19066
+ var configuration = _objectSpread$1R(_objectSpread$1R({}, baseConfiguration), {}, {
19067
19067
  apiInterface: apiInterface !== null && apiInterface !== void 0 ? apiInterface : baseConfiguration.apiInterface
19068
19068
  });
19069
19069
  var c = {
@@ -19163,7 +19163,7 @@ function useFormData (_ref) {
19163
19163
  multipleEditingData = inboundData;
19164
19164
  }
19165
19165
  return {
19166
- loadedData: _onLoadFields(_objectSpread$1O({}, dt)),
19166
+ loadedData: _onLoadFields(_objectSpread$1R({}, dt)),
19167
19167
  multipleEditingData: multipleEditingData
19168
19168
  };
19169
19169
  }, [inboundData]),
@@ -19190,7 +19190,7 @@ function useFormData (_ref) {
19190
19190
  setFieldErrors = _useState20[1];
19191
19191
  useEffect(function () {
19192
19192
  var _loadedData$_id2;
19193
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19193
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19194
19194
  data: loadedData,
19195
19195
  origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
19196
19196
  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),
@@ -19303,7 +19303,7 @@ function useFormData (_ref) {
19303
19303
  root.actions.toggleLoading('saving_form');
19304
19304
  _context2.prev = 4;
19305
19305
  _context2.next = 7;
19306
- return setDynamicFields(_objectSpread$1O({}, state.data), newData);
19306
+ return setDynamicFields(_objectSpread$1R({}, state.data), newData);
19307
19307
  case 7:
19308
19308
  newData = _context2.sent;
19309
19309
  _context2.next = 10;
@@ -19318,7 +19318,7 @@ function useFormData (_ref) {
19318
19318
  root.actions.toggleLoading('saving_form');
19319
19319
  throw _context2.t0;
19320
19320
  case 17:
19321
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19321
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19322
19322
  loading: true
19323
19323
  }));
19324
19324
  finalData = state.data;
@@ -19371,14 +19371,14 @@ function useFormData (_ref) {
19371
19371
  _context2.next = 47;
19372
19372
  break;
19373
19373
  }
19374
- setFieldErrors(_objectSpread$1O(_objectSpread$1O({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
19374
+ setFieldErrors(_objectSpread$1R(_objectSpread$1R({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
19375
19375
  return _context2.abrupt("return", undefined);
19376
19376
  case 47:
19377
19377
  throw _context2.t1;
19378
19378
  case 48:
19379
19379
  _context2.prev = 48;
19380
19380
  root.actions.toggleLoading('saving_form');
19381
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19381
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19382
19382
  data: finalData,
19383
19383
  loading: false
19384
19384
  }));
@@ -19434,11 +19434,11 @@ function useFormData (_ref) {
19434
19434
  var data = d !== null && d !== void 0 ? d : mergeWith(cloneDeep(state.data), formValues, mergeFormWithCustomizer);
19435
19435
  if (id) {
19436
19436
  setFieldInObject(id, data, value);
19437
- var newFieldErrors = _objectSpread$1O({}, fieldErrors);
19437
+ var newFieldErrors = _objectSpread$1R({}, fieldErrors);
19438
19438
  delete newFieldErrors[id.toString()];
19439
19439
  setFieldErrors(newFieldErrors);
19440
19440
  }
19441
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19441
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19442
19442
  data: data
19443
19443
  }));
19444
19444
  return data;
@@ -19494,10 +19494,10 @@ function useFormData (_ref) {
19494
19494
  } else {
19495
19495
  data[name] = val;
19496
19496
  }
19497
- if (configuration.itemSelectorReset) setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19497
+ if (configuration.itemSelectorReset) setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19498
19498
  data: data
19499
- }));else setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19500
- data: _objectSpread$1O(_objectSpread$1O({}, state.data), data)
19499
+ }));else setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19500
+ data: _objectSpread$1R(_objectSpread$1R({}, state.data), data)
19501
19501
  }));
19502
19502
  if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
19503
19503
  setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
@@ -19530,12 +19530,12 @@ function useFormData (_ref) {
19530
19530
  var val = _ref6.value;
19531
19531
  if (value === val) {
19532
19532
  if (configuration.itemSelectorReset) {
19533
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19533
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19534
19534
  data: _defineProperty({}, name, val)
19535
19535
  }));
19536
19536
  } else {
19537
- setState(_objectSpread$1O(_objectSpread$1O({}, state), {}, {
19538
- data: _objectSpread$1O(_objectSpread$1O({}, state.data), {}, _defineProperty({}, name, val))
19537
+ setState(_objectSpread$1R(_objectSpread$1R({}, state), {}, {
19538
+ data: _objectSpread$1R(_objectSpread$1R({}, state.data), {}, _defineProperty({}, name, val))
19539
19539
  }));
19540
19540
  }
19541
19541
  setSelectedItemsIndex([selectedItemsIndex[0], idx]);
@@ -19710,7 +19710,7 @@ function useFormData (_ref) {
19710
19710
  for (var i = 0; i < configuration.tools.length; i++) {
19711
19711
  var _tool$defaultOpen;
19712
19712
  var tool = configuration.tools[i];
19713
- tools.push(_objectSpread$1O(_objectSpread$1O({}, tool), {}, {
19713
+ tools.push(_objectSpread$1R(_objectSpread$1R({}, tool), {}, {
19714
19714
  parameters: {
19715
19715
  data: state.data,
19716
19716
  formInstance: form,
@@ -19863,7 +19863,7 @@ function useFormData (_ref) {
19863
19863
  }
19864
19864
  });
19865
19865
  }
19866
- return _objectSpread$1O(_objectSpread$1O({}, state), {}, {
19866
+ return _objectSpread$1R(_objectSpread$1R({}, state), {}, {
19867
19867
  getIsHidden: getIsHidden,
19868
19868
  setUsedPreset: setUsedPreset,
19869
19869
  configuration: configuration,
@@ -19981,8 +19981,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
19981
19981
  };
19982
19982
 
19983
19983
  var _excluded$c = ["key", "name"];
19984
- 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; }
19985
- 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; }
19984
+ 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; }
19985
+ 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; }
19986
19986
  var FormList$2 = function FormList(_ref) {
19987
19987
  var value = _ref.value,
19988
19988
  item = _ref.item,
@@ -20047,7 +20047,7 @@ var FormList$2 = function FormList(_ref) {
20047
20047
  var n = [name].concat(_toConsumableArray(Array.isArray(i.name) ? i.name : [i.name]), _toConsumableArray(i.doTranslate && postFixName ? Array.isArray(postFixName) ? postFixName : [postFixName] : []));
20048
20048
  var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
20049
20049
  var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
20050
- return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1N(_objectSpread$1N({}, restField), {}, {
20050
+ return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1Q(_objectSpread$1Q({}, restField), {}, {
20051
20051
  id: n.join(),
20052
20052
  key: n.join(),
20053
20053
  name: n,
@@ -20059,7 +20059,7 @@ var FormList$2 = function FormList(_ref) {
20059
20059
  validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
20060
20060
  help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
20061
20061
  hidden: hidden
20062
- }), getElement(_objectSpread$1N(_objectSpread$1N({}, i), {}, {
20062
+ }), getElement(_objectSpread$1Q(_objectSpread$1Q({}, i), {}, {
20063
20063
  name: n
20064
20064
  }), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
20065
20065
  })
@@ -20225,8 +20225,8 @@ var Result = function Result(_ref) {
20225
20225
 
20226
20226
  var success = "success-tRJ7j";
20227
20227
  var error = "error-MtAFB";
20228
- 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";
20229
- styleInject(css_248z$W);
20228
+ var css_248z$X = ".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";
20229
+ styleInject(css_248z$X);
20230
20230
 
20231
20231
  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";
20232
20232
 
@@ -20290,11 +20290,11 @@ var CustomButton$1 = observer(CustomButton);
20290
20290
 
20291
20291
  var wrapper$8 = "wrapper-GVe2h";
20292
20292
  var buttonGroup = "button-group-GYt-T";
20293
- 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";
20294
- styleInject(css_248z$V);
20293
+ var css_248z$W = ".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";
20294
+ styleInject(css_248z$W);
20295
20295
 
20296
- 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; }
20297
- 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; }
20296
+ 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; }
20297
+ 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; }
20298
20298
  var SubTitle = function SubTitle(_ref) {
20299
20299
  var _item$label, _item$orientation, _item$buttonIds;
20300
20300
  var item = _ref.item,
@@ -20304,7 +20304,7 @@ var SubTitle = function SubTitle(_ref) {
20304
20304
  var title = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : Array.isArray(item.name) ? item.name[0].toString() : item.name;
20305
20305
  return /*#__PURE__*/jsx(Divider, {
20306
20306
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
20307
- style: _objectSpread$1M({}, item.style),
20307
+ style: _objectSpread$1P({}, item.style),
20308
20308
  children: /*#__PURE__*/jsxs("div", {
20309
20309
  className: wrapper$8,
20310
20310
  children: [t(title, title), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
@@ -20594,12 +20594,12 @@ function parseReturnData(options, selectMapping) {
20594
20594
  }
20595
20595
 
20596
20596
  var wrapper$7 = "wrapper-4xyke";
20597
- 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";
20598
- styleInject(css_248z$U);
20597
+ var css_248z$V = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
20598
+ styleInject(css_248z$V);
20599
20599
 
20600
20600
  var _excluded$b = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
20601
- 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; }
20602
- 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; }
20601
+ 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; }
20602
+ 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; }
20603
20603
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
20604
20604
  var apiInterface = _ref.apiInterface,
20605
20605
  selectMapping = _ref.selectMapping,
@@ -20626,7 +20626,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
20626
20626
  return /*#__PURE__*/jsxs("div", {
20627
20627
  ref: ref,
20628
20628
  className: classNames(title ? wrapper$7 : undefined),
20629
- children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1L(_objectSpread$1L({}, selectProps), {}, {
20629
+ children: [title, /*#__PURE__*/jsx(Select, _objectSpread$1O(_objectSpread$1O({}, selectProps), {}, {
20630
20630
  showSearch: search,
20631
20631
  loading: state.loading,
20632
20632
  options: state.options,
@@ -21243,8 +21243,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
21243
21243
  }]);
21244
21244
  }(_default$c);
21245
21245
 
21246
- 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; }
21247
- 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; }
21246
+ 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; }
21247
+ 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; }
21248
21248
  getLogger('Backoffice', 'SelectClientRelationCatalog');
21249
21249
  function useSelectClientRelationCatalog (_ref) {
21250
21250
  var onSelectedCatalog = _ref.onSelectedCatalog,
@@ -21413,7 +21413,7 @@ function useSelectClientRelationCatalog (_ref) {
21413
21413
  case 22:
21414
21414
  supplierData = _context2.sent;
21415
21415
  case 23:
21416
- onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1K(_objectSpread$1K({}, _selectedSupplier), {}, {
21416
+ onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1N(_objectSpread$1N({}, _selectedSupplier), {}, {
21417
21417
  supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
21418
21418
  }), supplierData);
21419
21419
  if (catalogId && catalogList.find(function (c) {
@@ -21481,8 +21481,8 @@ var customSelectContentWrapper = "custom-select-content-wrapper-v98Ms";
21481
21481
  var customSelectOptionContent = "custom-select-option-content-LIbzl";
21482
21482
  var customSelectAvatar = "custom-select-avatar-DPCn1";
21483
21483
  var customSelectOptionText = "custom-select-option-text-crPF-";
21484
- 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";
21485
- styleInject(css_248z$T);
21484
+ var css_248z$U = ".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";
21485
+ styleInject(css_248z$U);
21486
21486
 
21487
21487
  var Selector$1 = function Selector(_ref) {
21488
21488
  var items = _ref.items,
@@ -21646,8 +21646,8 @@ function SelectClientRelationCatalog (_ref) {
21646
21646
  function _createForOfIteratorHelper$B(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$B(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; } } }; }
21647
21647
  function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(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$B(r, a) : void 0; } }
21648
21648
  function _arrayLikeToArray$B(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; }
21649
- 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; }
21650
- 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; }
21649
+ 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; }
21650
+ 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; }
21651
21651
  function useSelectData (_ref) {
21652
21652
  var data = _ref.data,
21653
21653
  onChange = _ref.onChange,
@@ -22119,7 +22119,7 @@ function useSelectData (_ref) {
22119
22119
  setFetching(true);
22120
22120
  serverSideParams = {
22121
22121
  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) {
22122
- return _objectSpread$1J(_objectSpread$1J({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
22122
+ return _objectSpread$1M(_objectSpread$1M({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
22123
22123
  }, {}) : {
22124
22124
  _id: [value, 'contains']
22125
22125
  },
@@ -22425,8 +22425,8 @@ function useSelectData (_ref) {
22425
22425
 
22426
22426
  var selectWithCopy = "select-with-copy-r6iEI";
22427
22427
  var selectGrow = "select-grow-Zr2r9";
22428
- 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";
22429
- styleInject(css_248z$S);
22428
+ var css_248z$T = ".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";
22429
+ styleInject(css_248z$T);
22430
22430
 
22431
22431
  function selectedToClipboardText(selected) {
22432
22432
  if (!(selected !== null && selected !== void 0 && selected.length)) return '';
@@ -22593,11 +22593,11 @@ var Selector = observer(SelectWrapper);
22593
22593
  var wrapper$6 = "wrapper-WStAk";
22594
22594
  var headerWrapper = "header-wrapper-gWQuH";
22595
22595
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
22596
- 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";
22597
- styleInject(css_248z$R);
22596
+ var css_248z$S = ".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";
22597
+ styleInject(css_248z$S);
22598
22598
 
22599
- 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; }
22600
- 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; }
22599
+ 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; }
22600
+ 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; }
22601
22601
  var LOG$l = getLogger('Backoffice', 'Translation Form');
22602
22602
  function useTranslationHook (item, state) {
22603
22603
  var root = useStore();
@@ -22730,7 +22730,7 @@ function useTranslationHook (item, state) {
22730
22730
  case 0:
22731
22731
  _context2.next = 2;
22732
22732
  return apiHandler.create({
22733
- locales: _objectSpread$1I({
22733
+ locales: _objectSpread$1L({
22734
22734
  de: {},
22735
22735
  it: {},
22736
22736
  fr: {},
@@ -22779,8 +22779,8 @@ function useTranslationHook (item, state) {
22779
22779
  };
22780
22780
  }
22781
22781
 
22782
- 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; }
22783
- 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; }
22782
+ 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; }
22783
+ 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; }
22784
22784
  var HiddenFormField = function HiddenFormField() {
22785
22785
  return null;
22786
22786
  };
@@ -22846,7 +22846,7 @@ var Translation = function Translation(_ref) {
22846
22846
  }, key);
22847
22847
  }
22848
22848
  return /*#__PURE__*/jsx(React.Fragment, {
22849
- children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1H(_objectSpread$1H({}, i), {}, {
22849
+ children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$1K(_objectSpread$1K({}, i), {}, {
22850
22850
  name: n
22851
22851
  }), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang, newFormName) : /*#__PURE__*/jsx(Form$2.Item, {
22852
22852
  id: idx.toString(),
@@ -22859,7 +22859,7 @@ var Translation = function Translation(_ref) {
22859
22859
  validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
22860
22860
  help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
22861
22861
  hidden: hidden,
22862
- children: getElement(_objectSpread$1H(_objectSpread$1H({}, i), {}, {
22862
+ children: getElement(_objectSpread$1K(_objectSpread$1K({}, i), {}, {
22863
22863
  name: n
22864
22864
  }), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
22865
22865
  })
@@ -23215,8 +23215,8 @@ var Text$9 = observer(Text$8);
23215
23215
 
23216
23216
  var root$e = "root-Eiuo1";
23217
23217
  var popoverContent = "popoverContent-uExP4";
23218
- 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";
23219
- styleInject(css_248z$Q);
23218
+ var css_248z$R = ".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";
23219
+ styleInject(css_248z$R);
23220
23220
 
23221
23221
  var CustomColorPicker = function CustomColorPicker(_ref) {
23222
23222
  var item = _ref.item,
@@ -23346,8 +23346,8 @@ function deltaFromColors(mainHex, valueHex) {
23346
23346
  return avg;
23347
23347
  }
23348
23348
 
23349
- 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; }
23350
- 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; }
23349
+ 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; }
23350
+ 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; }
23351
23351
  function FormSlider(_ref) {
23352
23352
  var item = _ref.item,
23353
23353
  disabled = _ref.disabled,
@@ -23381,7 +23381,7 @@ function FormSlider(_ref) {
23381
23381
  children: t('backoffice.form.slider.apiDefaultHint', {
23382
23382
  defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
23383
23383
  })
23384
- }) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1G(_objectSpread$1G({
23384
+ }) : null, /*#__PURE__*/jsx(Slider, _objectSpread$1J(_objectSpread$1J({
23385
23385
  min: item.min,
23386
23386
  max: item.max,
23387
23387
  step: item.step
@@ -23412,8 +23412,8 @@ function FormSlider(_ref) {
23412
23412
  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; } } }; }
23413
23413
  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; } }
23414
23414
  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; }
23415
- 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; }
23416
- 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; }
23415
+ 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; }
23416
+ 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; }
23417
23417
  function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
23418
23418
  var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
23419
23419
  if (hidden) return /*#__PURE__*/jsx(Fragment, {});
@@ -23450,7 +23450,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23450
23450
  }
23451
23451
  });
23452
23452
  case 'selectSimple':
23453
- return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1F(_objectSpread$1F({}, item), {}, {
23453
+ return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1I(_objectSpread$1I({}, item), {}, {
23454
23454
  disabled: disabled,
23455
23455
  onChange: function onChange(value) {
23456
23456
  _onChange(absoluteName, value);
@@ -23696,7 +23696,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23696
23696
  value: item.value,
23697
23697
  options: item.options.map(function (o) {
23698
23698
  var _o$disabled;
23699
- return _objectSpread$1F(_objectSpread$1F({}, o), {}, {
23699
+ return _objectSpread$1I(_objectSpread$1I({}, o), {}, {
23700
23700
  disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
23701
23701
  });
23702
23702
  }),
@@ -23717,7 +23717,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23717
23717
  },
23718
23718
  icon: item.icon,
23719
23719
  callback: function callback(data) {
23720
- return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1F(_objectSpread$1F({}, state.data), data));
23720
+ return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$1I(_objectSpread$1I({}, state.data), data));
23721
23721
  }
23722
23722
  });
23723
23723
  case 'media':
@@ -23755,7 +23755,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23755
23755
  var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
23756
23756
  var _useTranslation = useTranslation(),
23757
23757
  t = _useTranslation.t;
23758
- return /*#__PURE__*/jsx(Input$1, _objectSpread$1F(_objectSpread$1F({}, props), {}, {
23758
+ return /*#__PURE__*/jsx(Input$1, _objectSpread$1I(_objectSpread$1I({}, props), {}, {
23759
23759
  ref: ref,
23760
23760
  disabled: true,
23761
23761
  value: t(props.translationPrefix + '.' + props.value)
@@ -23774,8 +23774,8 @@ function isReadonly(item, data) {
23774
23774
  return false;
23775
23775
  }
23776
23776
 
23777
- 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; }
23778
- 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; }
23777
+ 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; }
23778
+ 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; }
23779
23779
  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; } } }; }
23780
23780
  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; } }
23781
23781
  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; }
@@ -23825,13 +23825,13 @@ var Presets = function Presets(_ref) {
23825
23825
  } finally {
23826
23826
  _iterator.f();
23827
23827
  }
23828
- var data = _objectSpread$1E(_objectSpread$1E({}, form.getFieldsValue(names)), {}, {
23828
+ var data = _objectSpread$1H(_objectSpread$1H({}, form.getFieldsValue(names)), {}, {
23829
23829
  newPresetName: newPresetName
23830
23830
  });
23831
23831
  data.dpi = parseInt(data.dpi);
23832
23832
  data.organization = root.getGlobalValue('organizationId');
23833
23833
  apiHandler.create({}, state.configuration.createPresetMapping, data);
23834
- var dt = _objectSpread$1E(_objectSpread$1E({}, form.getFieldsValue(names)), {}, {
23834
+ var dt = _objectSpread$1H(_objectSpread$1H({}, form.getFieldsValue(names)), {}, {
23835
23835
  name: newPresetName
23836
23836
  });
23837
23837
  setPresets({
@@ -23965,8 +23965,8 @@ function ModalProgressBar(_ref) {
23965
23965
  });
23966
23966
  }
23967
23967
 
23968
- 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; }
23969
- 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; }
23968
+ 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; }
23969
+ 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; }
23970
23970
  function ItemSelector(_ref) {
23971
23971
  var state = _ref.state,
23972
23972
  setCanSave = _ref.setCanSave,
@@ -23983,7 +23983,7 @@ function ItemSelector(_ref) {
23983
23983
  rules: state.getRules(itemSelector, state.data),
23984
23984
  label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
23985
23985
  valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
23986
- children: getElement(_objectSpread$1D(_objectSpread$1D({}, itemSelector), {}, {
23986
+ children: getElement(_objectSpread$1G(_objectSpread$1G({}, itemSelector), {}, {
23987
23987
  value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
23988
23988
  }), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
23989
23989
  }, itemSelector.name.toString());
@@ -24369,8 +24369,8 @@ function getLabel(item, t) {
24369
24369
  }
24370
24370
  var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
24371
24371
 
24372
- 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; }
24373
- 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; }
24372
+ 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; }
24373
+ 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; }
24374
24374
  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; } } }; }
24375
24375
  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; } }
24376
24376
  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; }
@@ -24572,7 +24572,7 @@ function useRoleSelectorData (_ref) {
24572
24572
  roles.forEach(function (r) {
24573
24573
  //check if after the changes the role is selected
24574
24574
  if (value.includes(r._id)) {
24575
- var newValue = _objectSpread$1C(_objectSpread$1C({}, r), {}, {
24575
+ var newValue = _objectSpread$1F(_objectSpread$1F({}, r), {}, {
24576
24576
  selected: true
24577
24577
  });
24578
24578
  //add it to the new list as selected role
@@ -24608,7 +24608,7 @@ function useRoleSelectorData (_ref) {
24608
24608
  }
24609
24609
  }
24610
24610
  } else {
24611
- var _newValue = _objectSpread$1C(_objectSpread$1C({}, r), {}, {
24611
+ var _newValue = _objectSpread$1F(_objectSpread$1F({}, r), {}, {
24612
24612
  selected: false
24613
24613
  });
24614
24614
  //add it to the new list as unselected role
@@ -24812,7 +24812,7 @@ function _updateRoles() {
24812
24812
  userRole = userRoles.find(function (r) {
24813
24813
  return r._id == role._id;
24814
24814
  });
24815
- newRole = _objectSpread$1C({}, role);
24815
+ newRole = _objectSpread$1F({}, role);
24816
24816
  if (userRole) {
24817
24817
  newRole.selected = true;
24818
24818
  newRole.inherited = userRole.inherited;
@@ -25032,7 +25032,7 @@ function _fetchOptions() {
25032
25032
  case 4:
25033
25033
  result = _context11.sent;
25034
25034
  options = result.data.map(function (d) {
25035
- return _objectSpread$1C(_objectSpread$1C({}, d), {}, {
25035
+ return _objectSpread$1F(_objectSpread$1F({}, d), {}, {
25036
25036
  label: d.displayName,
25037
25037
  value: d._id,
25038
25038
  isLeaf: !d.hasChildren
@@ -25133,11 +25133,11 @@ var parentScroll = "parent-scroll-GmaL9";
25133
25133
  var parent = "parent-NZJ3S";
25134
25134
  var container$8 = "container--O28P";
25135
25135
  var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
25136
- 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";
25137
- styleInject(css_248z$P);
25136
+ var css_248z$Q = ".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";
25137
+ styleInject(css_248z$Q);
25138
25138
 
25139
- 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; }
25140
- 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; }
25139
+ 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; }
25140
+ 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; }
25141
25141
  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; } } }; }
25142
25142
  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; } }
25143
25143
  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; }
@@ -25197,8 +25197,8 @@ function _generateCSV() {
25197
25197
  break;
25198
25198
  }
25199
25199
  _context2.next = 21;
25200
- return generateCSV(_objectSpread$1B(_objectSpread$1B({}, exportParams.children), {}, {
25201
- mappingData: _objectSpread$1B(_objectSpread$1B({}, parent), {}, {
25200
+ return generateCSV(_objectSpread$1E(_objectSpread$1E({}, exportParams.children), {}, {
25201
+ mappingData: _objectSpread$1E(_objectSpread$1E({}, parent), {}, {
25202
25202
  parentId: exportParams.mappingData._id
25203
25203
  })
25204
25204
  }), csvData);
@@ -25321,8 +25321,8 @@ function _downloadFile() {
25321
25321
  return _downloadFile.apply(this, arguments);
25322
25322
  }
25323
25323
 
25324
- 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; }
25325
- 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; }
25324
+ 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; }
25325
+ 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; }
25326
25326
  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; } } }; }
25327
25327
  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; } }
25328
25328
  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; }
@@ -25741,7 +25741,7 @@ function useRelationSelectorData (_ref) {
25741
25741
  var activeItem = _step.value;
25742
25742
  if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
25743
25743
  addedObjects.push(addedData);
25744
- getSplittedItems(_objectSpread$1A(_objectSpread$1A({}, activeItem), {}, {
25744
+ getSplittedItems(_objectSpread$1D(_objectSpread$1D({}, activeItem), {}, {
25745
25745
  userId: data === null || data === void 0 ? void 0 : data._id
25746
25746
  }));
25747
25747
  ret = true;
@@ -25946,8 +25946,8 @@ function useRelationSelectorData (_ref) {
25946
25946
  };
25947
25947
  }
25948
25948
 
25949
- 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; }
25950
- 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; }
25949
+ 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; }
25950
+ 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; }
25951
25951
  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; } } }; }
25952
25952
  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; } }
25953
25953
  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; }
@@ -26095,7 +26095,7 @@ function ActionButton (_ref) {
26095
26095
  _iterator2.f();
26096
26096
  }
26097
26097
  _context.next = 19;
26098
- return apiInterface.update(_objectSpread$1z(_objectSpread$1z({}, data), {}, {
26098
+ return apiInterface.update(_objectSpread$1C(_objectSpread$1C({}, data), {}, {
26099
26099
  state: toSwitch
26100
26100
  }), data);
26101
26101
  case 19:
@@ -26231,14 +26231,14 @@ function _simpleChangeValue() {
26231
26231
  break;
26232
26232
  }
26233
26233
  for (i = 0; i < action.newValues.length; i++) {
26234
- fieldsToUpdate = _objectSpread$1z(_objectSpread$1z({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
26234
+ fieldsToUpdate = _objectSpread$1C(_objectSpread$1C({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
26235
26235
  }
26236
26236
  if (!apiInterface.canUpdate) {
26237
26237
  _context2.next = 9;
26238
26238
  break;
26239
26239
  }
26240
26240
  _context2.next = 7;
26241
- return apiInterface.update(_objectSpread$1z({}, fieldsToUpdate), data);
26241
+ return apiInterface.update(_objectSpread$1C({}, fieldsToUpdate), data);
26242
26242
  case 7:
26243
26243
  response = _context2.sent;
26244
26244
  return _context2.abrupt("return", response);
@@ -26253,7 +26253,7 @@ function _simpleChangeValue() {
26253
26253
  return _simpleChangeValue.apply(this, arguments);
26254
26254
  }
26255
26255
  function A(props) {
26256
- return /*#__PURE__*/jsx("a", _objectSpread$1z({}, props));
26256
+ return /*#__PURE__*/jsx("a", _objectSpread$1C({}, props));
26257
26257
  }
26258
26258
 
26259
26259
  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; } } }; }
@@ -26388,11 +26388,11 @@ var newscroller = "newscroller-INKeD";
26388
26388
  var antCollapseHeader = "ant-collapse-header--6FgU";
26389
26389
  var itemTitle = "item-title--BTvC";
26390
26390
  var itemDesc = "item-desc-DBiiF";
26391
- 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";
26392
- styleInject(css_248z$O);
26391
+ var css_248z$P = ".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";
26392
+ styleInject(css_248z$P);
26393
26393
 
26394
- 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; }
26395
- 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; }
26394
+ 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; }
26395
+ 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; }
26396
26396
  var DropDown = function DropDown(_ref) {
26397
26397
  var _curItem$data$length;
26398
26398
  var split = _ref.split,
@@ -26424,7 +26424,7 @@ var DropDown = function DropDown(_ref) {
26424
26424
  });
26425
26425
  return /*#__PURE__*/jsx(Collapse, {
26426
26426
  onChange: function onChange() {
26427
- return getSplittedItems(_objectSpread$1y(_objectSpread$1y({}, item.item), {}, {
26427
+ return getSplittedItems(_objectSpread$1B(_objectSpread$1B({}, item.item), {}, {
26428
26428
  parentId: item.parentId
26429
26429
  }), 0);
26430
26430
  },
@@ -26684,8 +26684,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
26684
26684
  };
26685
26685
  var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
26686
26686
 
26687
- 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; }
26688
- 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; }
26687
+ 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; }
26688
+ 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; }
26689
26689
  function useFormListData (_ref) {
26690
26690
  var _configuration$defaul;
26691
26691
  var id = _ref.id,
@@ -26765,7 +26765,7 @@ function useFormListData (_ref) {
26765
26765
  if (updated.length == state.length) {
26766
26766
  newState = state.map(function (s, i) {
26767
26767
  var _updated$find;
26768
- return _objectSpread$1x(_objectSpread$1x({}, s), {}, {
26768
+ return _objectSpread$1A(_objectSpread$1A({}, s), {}, {
26769
26769
  data: (_updated$find = updated.find(function (u) {
26770
26770
  return u.index == i;
26771
26771
  })) === null || _updated$find === void 0 ? void 0 : _updated$find.data
@@ -26902,8 +26902,8 @@ var FormList = function FormList(_ref, ref) {
26902
26902
  };
26903
26903
  var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
26904
26904
 
26905
- 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; }
26906
- 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; }
26905
+ 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; }
26906
+ 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; }
26907
26907
  var LOG$i = getLogger('Backoffice', 'SelectOrCreate');
26908
26908
  function useSelectOrCreateData (_ref) {
26909
26909
  var id = _ref.id,
@@ -27000,7 +27000,7 @@ function useSelectOrCreateData (_ref) {
27000
27000
  _context.next = 7;
27001
27001
  return apiHandler.readList(configuration.readMapping, mappingData, {
27002
27002
  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) {
27003
- return _objectSpread$1w(_objectSpread$1w({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
27003
+ return _objectSpread$1z(_objectSpread$1z({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
27004
27004
  }, {}) : {
27005
27005
  _id: [value, 'contains']
27006
27006
  },
@@ -27311,8 +27311,8 @@ var Multiple = function Multiple(_ref3) {
27311
27311
  });
27312
27312
  };
27313
27313
 
27314
- 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; }
27315
- 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; }
27314
+ 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; }
27315
+ 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; }
27316
27316
  function useListData (_ref) {
27317
27317
  var id = _ref.id,
27318
27318
  data = _ref.data;
@@ -27355,7 +27355,7 @@ function useListData (_ref) {
27355
27355
  case 3:
27356
27356
  result = _context.sent;
27357
27357
  setListData(result.data.map(parseField));
27358
- initData = _objectSpread$1v({}, data);
27358
+ initData = _objectSpread$1y({}, data);
27359
27359
  setUpdatedObject(initData);
27360
27360
  setLoading(false);
27361
27361
  case 8:
@@ -27396,7 +27396,7 @@ function useListData (_ref) {
27396
27396
  });
27397
27397
  (_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
27398
27398
  var parsedField = field.field.split('.');
27399
- item.itemUpdate = _objectSpread$1v(_objectSpread$1v({}, field), {}, {
27399
+ item.itemUpdate = _objectSpread$1y(_objectSpread$1y({}, field), {}, {
27400
27400
  value: dataEntry[parsedField[parsedField.length - 1]]
27401
27401
  });
27402
27402
  });
@@ -27427,16 +27427,16 @@ function useListData (_ref) {
27427
27427
  console.error('field with more than 2 parts not allowed');
27428
27428
  return;
27429
27429
  }
27430
- var updObj = _objectSpread$1v({}, updatedObject);
27430
+ var updObj = _objectSpread$1y({}, updatedObject);
27431
27431
  if (fields.length === 1) {
27432
- updObj = _objectSpread$1v(_objectSpread$1v({}, updObj), {}, _defineProperty({}, fields[0], value));
27432
+ updObj = _objectSpread$1y(_objectSpread$1y({}, updObj), {}, _defineProperty({}, fields[0], value));
27433
27433
  } else if (fields.length === 2) {
27434
27434
  var updatedField = updObj[fields[0]].find(function (v) {
27435
27435
  return v.id === item.id.trim();
27436
27436
  });
27437
27437
  if (updatedField) {
27438
- var updatedFieldCopy = _objectSpread$1v(_objectSpread$1v({}, updatedField), {}, _defineProperty({}, fields[1], value));
27439
- updObj = _objectSpread$1v(_objectSpread$1v({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
27438
+ var updatedFieldCopy = _objectSpread$1y(_objectSpread$1y({}, updatedField), {}, _defineProperty({}, fields[1], value));
27439
+ updObj = _objectSpread$1y(_objectSpread$1y({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
27440
27440
  return v.id === item.id.trim() ? updatedFieldCopy : v;
27441
27441
  })));
27442
27442
  }
@@ -27445,11 +27445,11 @@ function useListData (_ref) {
27445
27445
  var acItems = listData;
27446
27446
  for (var i = 0; i < acItems.length; i++) {
27447
27447
  if (i == index) {
27448
- acItems[i].itemUpdate = _objectSpread$1v(_objectSpread$1v({}, acItems[i].itemUpdate), {}, {
27448
+ acItems[i].itemUpdate = _objectSpread$1y(_objectSpread$1y({}, acItems[i].itemUpdate), {}, {
27449
27449
  value: value
27450
27450
  });
27451
27451
  } else if (!acItems[i].itemUpdate.multiselect) {
27452
- acItems[i].itemUpdate = _objectSpread$1v(_objectSpread$1v({}, acItems[i].itemUpdate), {}, {
27452
+ acItems[i].itemUpdate = _objectSpread$1y(_objectSpread$1y({}, acItems[i].itemUpdate), {}, {
27453
27453
  value: !value
27454
27454
  });
27455
27455
  }
@@ -27803,8 +27803,8 @@ var jsoneditor = "jsoneditor-WMs15";
27803
27803
  var preview = "preview-9wK81";
27804
27804
  var previewButton = "preview-button-vupuG";
27805
27805
  var editButton = "edit-button-m6r3M";
27806
- 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";
27807
- styleInject(css_248z$N);
27806
+ var css_248z$O = ".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";
27807
+ styleInject(css_248z$O);
27808
27808
 
27809
27809
  var JsonEditor = function JsonEditor(_ref, ref) {
27810
27810
  var id = _ref.id,
@@ -27963,8 +27963,8 @@ function calcNaturalCanvasSize(image, crop) {
27963
27963
  };
27964
27964
  }
27965
27965
 
27966
- 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; }
27967
- 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; }
27966
+ 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; }
27967
+ 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; }
27968
27968
  var ImageCropper = function ImageCropper(_ref, ref) {
27969
27969
  var id = _ref.id,
27970
27970
  data = _ref.data,
@@ -28072,12 +28072,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
28072
28072
  }
28073
28073
  function onEnter(e) {
28074
28074
  if (e.key != 'Enter') return;
28075
- setCrop(_objectSpread$1u(_objectSpread$1u({}, crop), {}, {
28075
+ setCrop(_objectSpread$1x(_objectSpread$1x({}, crop), {}, {
28076
28076
  unit: 'px',
28077
28077
  width: Number(widthInputElement.current.value),
28078
28078
  height: Number(heightInputElement.current.value)
28079
28079
  }));
28080
- setCompletedCrop(_objectSpread$1u(_objectSpread$1u({}, crop), {}, {
28080
+ setCompletedCrop(_objectSpread$1x(_objectSpread$1x({}, crop), {}, {
28081
28081
  unit: 'px',
28082
28082
  width: Number(widthInputElement.current.value),
28083
28083
  height: Number(heightInputElement.current.value)
@@ -28155,8 +28155,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
28155
28155
  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; } } }; }
28156
28156
  function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(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$t(r, a) : void 0; } }
28157
28157
  function _arrayLikeToArray$t(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; }
28158
- 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; }
28159
- 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; }
28158
+ 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; }
28159
+ 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; }
28160
28160
  function useDescriptions (_ref) {
28161
28161
  var id = _ref.id;
28162
28162
  var root = useStore();
@@ -28249,7 +28249,7 @@ function _getDisplayData() {
28249
28249
  return _regeneratorRuntime.wrap(function _callee3$(_context4) {
28250
28250
  while (1) switch (_context4.prev = _context4.next) {
28251
28251
  case 0:
28252
- displayData = _objectSpread$1t({}, data);
28252
+ displayData = _objectSpread$1w({}, data);
28253
28253
  _iterator = _createForOfIteratorHelper$t(items);
28254
28254
  _context4.prev = 2;
28255
28255
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
@@ -28525,8 +28525,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
28525
28525
  };
28526
28526
  var FileUploadBeta = observer(FileUploadWrapper$1);
28527
28527
 
28528
- 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; }
28529
- 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; }
28528
+ 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; }
28529
+ 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; }
28530
28530
  function useGridData (_ref) {
28531
28531
  var id = _ref.id,
28532
28532
  data = _ref.data;
@@ -28569,11 +28569,11 @@ function useGridData (_ref) {
28569
28569
  function reducer(state, action) {
28570
28570
  switch (action.type) {
28571
28571
  case 'update':
28572
- return _objectSpread$1s(_objectSpread$1s({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1s(_objectSpread$1s({}, action.data), {}, {
28572
+ return _objectSpread$1v(_objectSpread$1v({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$1v(_objectSpread$1v({}, action.data), {}, {
28573
28573
  buffer: Buffer.from(action.data.buffer)
28574
28574
  })));
28575
28575
  case 'delete':
28576
- var newState = _objectSpread$1s({}, state);
28576
+ var newState = _objectSpread$1v({}, state);
28577
28577
  delete newState[action.data.divaNr];
28578
28578
  return newState;
28579
28579
  default:
@@ -28583,13 +28583,13 @@ function reducer(state, action) {
28583
28583
 
28584
28584
  var grid$1 = "grid-sGemi";
28585
28585
  var textWrapper = "text-wrapper-xsPXE";
28586
- 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";
28587
- styleInject(css_248z$M);
28586
+ var css_248z$N = ".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";
28587
+ styleInject(css_248z$N);
28588
28588
 
28589
28589
  var wrapper$5 = "wrapper-p-gR3";
28590
28590
  var container$7 = "container-DoZqe";
28591
- 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";
28592
- styleInject(css_248z$L);
28591
+ var css_248z$M = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
28592
+ styleInject(css_248z$M);
28593
28593
 
28594
28594
  var ToolTipInfo = function ToolTipInfo(props) {
28595
28595
  var _useTranslation = useTranslation(),
@@ -28660,8 +28660,8 @@ var Grid = function Grid(_ref) {
28660
28660
  });
28661
28661
  };
28662
28662
 
28663
- 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; }
28664
- 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; }
28663
+ 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; }
28664
+ 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; }
28665
28665
  var useMediaUpload = function useMediaUpload(_ref) {
28666
28666
  var id = _ref.id;
28667
28667
  var root = useStore();
@@ -28870,7 +28870,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
28870
28870
  onRemove: onRemove,
28871
28871
  customRequest: customRequest,
28872
28872
  fileList: fileList.map(function (f) {
28873
- return _objectSpread$1r(_objectSpread$1r({}, f), {}, {
28873
+ return _objectSpread$1u(_objectSpread$1u({}, f), {}, {
28874
28874
  url: f.url
28875
28875
  });
28876
28876
  }),
@@ -28884,8 +28884,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
28884
28884
  var small = "small-NY1-k";
28885
28885
  var medium = "medium---QcO";
28886
28886
  var big = "big--E39S";
28887
- 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";
28888
- styleInject(css_248z$K);
28887
+ var css_248z$L = ".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";
28888
+ styleInject(css_248z$L);
28889
28889
 
28890
28890
  var MediaUpload = observer(function (_ref) {
28891
28891
  var id = _ref.id;
@@ -28974,8 +28974,8 @@ var TableSummary = function TableSummary(_ref) {
28974
28974
  });
28975
28975
  };
28976
28976
 
28977
- 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; }
28978
- 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; }
28977
+ 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; }
28978
+ 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; }
28979
28979
  function getExpandedRowRenderer (config, root) {
28980
28980
  return function (record) {
28981
28981
  var data = record;
@@ -28997,7 +28997,7 @@ function customSubTable(columns, datasource) {
28997
28997
  // map custom columns to antd columns
28998
28998
  var antcols = columns.map(function (col) {
28999
28999
  var _col$width;
29000
- return _objectSpread$1q(_objectSpread$1q({}, col), {}, {
29000
+ return _objectSpread$1t(_objectSpread$1t({}, col), {}, {
29001
29001
  title: col.title,
29002
29002
  dataIndex: col.field,
29003
29003
  key: col.field,
@@ -29026,8 +29026,8 @@ var checkbox = "checkbox-H7R-w";
29026
29026
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
29027
29027
  var contentWidth = "content-width-hGyVI";
29028
29028
  var tableLoadingSpin = "table-loading-spin-QjnC-";
29029
- 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";
29030
- styleInject(css_248z$J);
29029
+ var css_248z$K = ".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";
29030
+ styleInject(css_248z$K);
29031
29031
 
29032
29032
  function BooleanCell (_ref) {
29033
29033
  var children = _ref.children,
@@ -29860,8 +29860,8 @@ function ArrayCell (_ref) {
29860
29860
 
29861
29861
  var _excluded$a = ["index"],
29862
29862
  _excluded2$1 = ["children", "dataIndex", "record", "handleSave", "column"];
29863
- 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; }
29864
- 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; }
29863
+ 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; }
29864
+ 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; }
29865
29865
  var LOG$g = getLogger('Backoffice', 'CellRenderer');
29866
29866
  var EditableContext = /*#__PURE__*/React.createContext(null);
29867
29867
  var CustomRow = function CustomRow(_ref) {
@@ -29875,7 +29875,7 @@ var CustomRow = function CustomRow(_ref) {
29875
29875
  component: false,
29876
29876
  children: /*#__PURE__*/jsx(EditableContext.Provider, {
29877
29877
  value: form,
29878
- children: /*#__PURE__*/jsx("tr", _objectSpread$1p({}, props))
29878
+ children: /*#__PURE__*/jsx("tr", _objectSpread$1s({}, props))
29879
29879
  })
29880
29880
  });
29881
29881
  };
@@ -29928,7 +29928,7 @@ var CustomCell = function CustomCell(_ref2) {
29928
29928
  if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
29929
29929
  longDescriptionType = 'text';
29930
29930
  }
29931
- var modifiedColumn = _objectSpread$1p(_objectSpread$1p({}, column), {}, {
29931
+ var modifiedColumn = _objectSpread$1s(_objectSpread$1s({}, column), {}, {
29932
29932
  type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
29933
29933
  });
29934
29934
  if (column) {
@@ -29941,43 +29941,43 @@ var CustomCell = function CustomCell(_ref2) {
29941
29941
  };
29942
29942
  switch (modifiedColumn.type) {
29943
29943
  case 'boolean':
29944
- childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1p({}, cellProps));
29944
+ childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$1s({}, cellProps));
29945
29945
  break;
29946
29946
  case 'text':
29947
- childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1p({}, cellProps));
29947
+ childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$1s({}, cellProps));
29948
29948
  break;
29949
29949
  case 'select':
29950
- childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1p({}, cellProps));
29950
+ childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$1s({}, cellProps));
29951
29951
  case 'media':
29952
- childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1p({}, cellProps));
29952
+ childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$1s({}, cellProps));
29953
29953
  break;
29954
29954
  case 'mediaItem':
29955
- childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1p({}, cellProps));
29955
+ childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$1s({}, cellProps));
29956
29956
  break;
29957
29957
  case 'unixTimeStamp':
29958
- childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1p({}, cellProps));
29958
+ childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$1s({}, cellProps));
29959
29959
  break;
29960
29960
  case 'unixTimeStampCheck':
29961
- childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1p({}, cellProps));
29961
+ childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$1s({}, cellProps));
29962
29962
  break;
29963
29963
  case 'icon':
29964
- childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1p({}, cellProps));
29964
+ childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$1s({}, cellProps));
29965
29965
  break;
29966
29966
  case 'progress':
29967
- childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1p({}, cellProps));
29967
+ childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$1s({}, cellProps));
29968
29968
  break;
29969
29969
  case 'link':
29970
- childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1p({}, cellProps));
29970
+ childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$1s({}, cellProps));
29971
29971
  break;
29972
29972
  case 'array':
29973
- childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1p({}, cellProps));
29973
+ childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$1s({}, cellProps));
29974
29974
  break;
29975
29975
  default:
29976
- childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1p({}, cellProps));
29976
+ childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$1s({}, cellProps));
29977
29977
  break;
29978
29978
  }
29979
29979
  }
29980
- return /*#__PURE__*/jsx("td", _objectSpread$1p(_objectSpread$1p({}, restProps), {}, {
29980
+ return /*#__PURE__*/jsx("td", _objectSpread$1s(_objectSpread$1s({}, restProps), {}, {
29981
29981
  children: childNode
29982
29982
  }));
29983
29983
  };
@@ -30169,8 +30169,8 @@ function useAGHistogram (_ref) {
30169
30169
  var container$6 = "container-2r-OJ";
30170
30170
  var column1 = "column1-9viTK";
30171
30171
  var spinner = "spinner-00VcK";
30172
- 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";
30173
- styleInject(css_248z$I);
30172
+ var css_248z$J = ".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";
30173
+ styleInject(css_248z$J);
30174
30174
 
30175
30175
  var Panel$1 = Collapse.Panel;
30176
30176
  function AGHistogram (_ref) {
@@ -30332,8 +30332,8 @@ var SMChart = function SMChart(props) {
30332
30332
  function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(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; } } }; }
30333
30333
  function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(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$o(r, a) : void 0; } }
30334
30334
  function _arrayLikeToArray$o(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; }
30335
- 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; }
30336
- 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; }
30335
+ 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; }
30336
+ 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; }
30337
30337
 
30338
30338
  /**
30339
30339
  * Props for the useTools hook
@@ -30374,7 +30374,7 @@ var useTools = function useTools(_ref) {
30374
30374
  var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
30375
30375
  var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
30376
30376
  var createTool = function createTool(tool) {
30377
- return _objectSpread$1o({
30377
+ return _objectSpread$1r({
30378
30378
  startWidth: 600,
30379
30379
  defaultPinned: true,
30380
30380
  defaultOpen: false
@@ -30405,7 +30405,7 @@ var useTools = function useTools(_ref) {
30405
30405
  name: 'Konfigurator',
30406
30406
  type: 'Configurator',
30407
30407
  where: 'right',
30408
- parameters: _objectSpread$1o({
30408
+ parameters: _objectSpread$1r({
30409
30409
  catalogId: catalogId,
30410
30410
  packageId: packageId,
30411
30411
  isIDMData: !isApi2 ? '1' : undefined
@@ -30549,8 +30549,8 @@ function InformationButton(_ref) {
30549
30549
  });
30550
30550
  }
30551
30551
 
30552
- 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; }
30553
- 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; }
30552
+ 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; }
30553
+ 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; }
30554
30554
  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; } } }; }
30555
30555
  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; } }
30556
30556
  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; }
@@ -30672,7 +30672,7 @@ var TableWrapper = function TableWrapper(_ref) {
30672
30672
  if (data && data.length > 0) {
30673
30673
  data = data.map(function (dt) {
30674
30674
  var _ref2, _dt$catalogItem;
30675
- return _objectSpread$1n(_objectSpread$1n({}, dt), {}, {
30675
+ return _objectSpread$1q(_objectSpread$1q({}, dt), {}, {
30676
30676
  catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
30677
30677
  });
30678
30678
  });
@@ -30828,13 +30828,13 @@ var TableWrapper = function TableWrapper(_ref) {
30828
30828
  // Convert to Dayjs
30829
30829
  (_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
30830
30830
  ]
30831
- }), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1n(_objectSpread$1n({}, selectFilter.settings), {}, {
30831
+ }), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(Selector, _objectSpread$1q(_objectSpread$1q({}, selectFilter.settings), {}, {
30832
30832
  minWidth: "200px",
30833
30833
  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],
30834
30834
  onChange: function onChange(selected) {
30835
30835
  state.onGlobalFilterSelect(normalizeTableFilterSelectValue(selected, selectFilter.filterField));
30836
30836
  }
30837
- })) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1n(_objectSpread$1n({}, selectFilter.settings), {}, {
30837
+ })) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$1q(_objectSpread$1q({}, selectFilter.settings), {}, {
30838
30838
  style: {
30839
30839
  minWidth: '200px'
30840
30840
  },
@@ -30944,7 +30944,7 @@ var TableWrapper = function TableWrapper(_ref) {
30944
30944
  root: tableLoadingSpin
30945
30945
  }
30946
30946
  },
30947
- pagination: _objectSpread$1n(_objectSpread$1n({}, state.pagination), {}, {
30947
+ pagination: _objectSpread$1q(_objectSpread$1q({}, state.pagination), {}, {
30948
30948
  showTotal: function showTotal(total, range) {
30949
30949
  return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
30950
30950
  },
@@ -31278,7 +31278,7 @@ function BulkAction(_ref8) {
31278
31278
  }
31279
31279
  _context5.t0 = data;
31280
31280
  _context5.next = 14;
31281
- return apiInterface.update(_objectSpread$1n(_objectSpread$1n({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
31281
+ return apiInterface.update(_objectSpread$1q(_objectSpread$1q({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
31282
31282
  case 14:
31283
31283
  _context5.t1 = _context5.sent;
31284
31284
  _context5.t0.push.call(_context5.t0, _context5.t1);
@@ -31399,8 +31399,8 @@ function SelectionText(_ref10) {
31399
31399
  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; } } }; }
31400
31400
  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; } }
31401
31401
  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; }
31402
- 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; }
31403
- 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; }
31402
+ 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; }
31403
+ 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; }
31404
31404
  function getColumnFilterProps (_ref) {
31405
31405
  var filter = _ref.filter,
31406
31406
  title = _ref.title;
@@ -31772,7 +31772,7 @@ var selectProps = function selectProps(title, filter) {
31772
31772
  });
31773
31773
  },
31774
31774
  options: filter.map(function (f) {
31775
- return _objectSpread$1m(_objectSpread$1m({}, f), {}, {
31775
+ return _objectSpread$1p(_objectSpread$1p({}, f), {}, {
31776
31776
  label: t(f.label)
31777
31777
  });
31778
31778
  })
@@ -31851,7 +31851,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31851
31851
  t = _useTranslation3.t;
31852
31852
  var options = [];
31853
31853
  options = filter.map(function (f) {
31854
- return _objectSpread$1m(_objectSpread$1m({}, f), {}, {
31854
+ return _objectSpread$1p(_objectSpread$1p({}, f), {}, {
31855
31855
  label: t(f.label)
31856
31856
  });
31857
31857
  });
@@ -31922,8 +31922,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31922
31922
  };
31923
31923
  };
31924
31924
 
31925
- 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; }
31926
- 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; }
31925
+ 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; }
31926
+ 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; }
31927
31927
  function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter, filterState) {
31928
31928
  var columns = configuration.columns.filter(function (c) {
31929
31929
  if (typeof c.hidden == 'boolean' && c.hidden) {
@@ -31981,7 +31981,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
31981
31981
  function mapColumn(column, onUpdate, filterState) {
31982
31982
  var _column$field, _filterState$filters$, _filterState$filters, _column$children;
31983
31983
  var key = column.field || column.title;
31984
- return _objectSpread$1l(_objectSpread$1l(_objectSpread$1l(_objectSpread$1l({}, column), {}, {
31984
+ return _objectSpread$1o(_objectSpread$1o(_objectSpread$1o(_objectSpread$1o({}, column), {}, {
31985
31985
  hidden: false,
31986
31986
  width: column.width || 100,
31987
31987
  dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
@@ -32042,8 +32042,8 @@ function updateData (_ref) {
32042
32042
  };
32043
32043
  }
32044
32044
 
32045
- 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; }
32046
- 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; }
32045
+ 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; }
32046
+ 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; }
32047
32047
  function applyFilterAndSortation (_ref) {
32048
32048
  var data = _ref.data,
32049
32049
  filters = _ref.filters,
@@ -32058,7 +32058,7 @@ function applyFilterAndSortation (_ref) {
32058
32058
  processedData = sort(sorter || [], processedData);
32059
32059
  return {
32060
32060
  data: processedData,
32061
- pagination: _objectSpread$1k(_objectSpread$1k({}, pagination), {}, {
32061
+ pagination: _objectSpread$1n(_objectSpread$1n({}, pagination), {}, {
32062
32062
  total: processedData.length
32063
32063
  })
32064
32064
  };
@@ -32143,8 +32143,8 @@ function filter(f, data) {
32143
32143
  }
32144
32144
 
32145
32145
  var _excluded$9 = ["_id"];
32146
- 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; }
32147
- 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; }
32146
+ 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; }
32147
+ 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; }
32148
32148
  function useTableData$1 (_ref) {
32149
32149
  var _configuration$apiInt;
32150
32150
  var id = _ref.id;
@@ -32199,7 +32199,7 @@ function useTableData$1 (_ref) {
32199
32199
  var _configuration$create;
32200
32200
  if (!dataRow) return;
32201
32201
  var id = v4();
32202
- var processedDataRow = unflatten(_objectSpread$1j({
32202
+ var processedDataRow = unflatten(_objectSpread$1m({
32203
32203
  _id: id,
32204
32204
  ID: id
32205
32205
  }, dataRow));
@@ -32211,11 +32211,11 @@ function useTableData$1 (_ref) {
32211
32211
  newData = _updateData.data;
32212
32212
  _updateData.prevDataRow;
32213
32213
  _updateData.index;
32214
- var newState = _objectSpread$1j(_objectSpread$1j({}, state), {}, {
32214
+ var newState = _objectSpread$1m(_objectSpread$1m({}, state), {}, {
32215
32215
  data: newData
32216
32216
  });
32217
32217
  if (!filterServerSide) {
32218
- var res = applyFilterAndSortation(_objectSpread$1j(_objectSpread$1j({}, filterData), {}, {
32218
+ var res = applyFilterAndSortation(_objectSpread$1m(_objectSpread$1m({}, filterData), {}, {
32219
32219
  data: newData
32220
32220
  }));
32221
32221
  newState.data = res.data;
@@ -32227,33 +32227,33 @@ function useTableData$1 (_ref) {
32227
32227
  var formData = new FormData();
32228
32228
  processedDataRow._id;
32229
32229
  var value = _objectWithoutProperties(processedDataRow, _excluded$9);
32230
- apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1j(_objectSpread$1j({}, catalogItem), {}, {
32230
+ apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$1m(_objectSpread$1m({}, catalogItem), {}, {
32231
32231
  filterContex: filterContex,
32232
32232
  value: JSON.stringify([value])
32233
32233
  }), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
32234
32234
  if (d && d.Result && d.Result == 'Success') return;
32235
- setState(_objectSpread$1j({}, oldState));
32235
+ setState(_objectSpread$1m({}, oldState));
32236
32236
  });
32237
32237
  }, [state, catalogItem, filterData]);
32238
32238
  useEffect(function () {
32239
32239
  if (!catalogItem) return;
32240
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32240
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32241
32241
  loading: true,
32242
- mappingData: _objectSpread$1j(_objectSpread$1j({}, catalogItem), {}, {
32242
+ mappingData: _objectSpread$1m(_objectSpread$1m({}, catalogItem), {}, {
32243
32243
  filterContex: filterContex
32244
32244
  })
32245
32245
  }));
32246
32246
  if (!filterServerSide) {
32247
- apiHandler.readList(configuration.mapping, _objectSpread$1j(_objectSpread$1j({}, catalogItem), {}, {
32247
+ apiHandler.readList(configuration.mapping, _objectSpread$1m(_objectSpread$1m({}, catalogItem), {}, {
32248
32248
  filterContex: filterContex
32249
32249
  }), undefined, catalogItem.sessionGuid).then(function (data) {
32250
32250
  var newData = data.data.map(function (d) {
32251
- return _objectSpread$1j(_objectSpread$1j({}, d), {}, {
32251
+ return _objectSpread$1m(_objectSpread$1m({}, d), {}, {
32252
32252
  _id: d._id || d.ID || nanoid()
32253
32253
  });
32254
32254
  });
32255
32255
  onChange({
32256
- pagination: _objectSpread$1j({}, state.pagination),
32256
+ pagination: _objectSpread$1m({}, state.pagination),
32257
32257
  filters: {},
32258
32258
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
32259
32259
  return c.defaultSortOrder;
@@ -32269,7 +32269,7 @@ function useTableData$1 (_ref) {
32269
32269
  });
32270
32270
  } else {
32271
32271
  onChange({
32272
- pagination: _objectSpread$1j({}, state.pagination),
32272
+ pagination: _objectSpread$1m({}, state.pagination),
32273
32273
  filters: {},
32274
32274
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
32275
32275
  return c.defaultSortOrder;
@@ -32285,17 +32285,17 @@ function useTableData$1 (_ref) {
32285
32285
  }
32286
32286
  }, [filterContex, catalogItem]);
32287
32287
  var onChange = function onChange(p, dataParam) {
32288
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32288
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32289
32289
  loading: true
32290
32290
  }));
32291
32291
  if (!filterServerSide) {
32292
32292
  var unfilteredData = dataParam ? dataParam : state.unfilteredData;
32293
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1j(_objectSpread$1j({}, p), {}, {
32293
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1m(_objectSpread$1m({}, p), {}, {
32294
32294
  data: unfilteredData
32295
32295
  })),
32296
32296
  data = _applyFilterAndSortat.data,
32297
32297
  pagination = _applyFilterAndSortat.pagination;
32298
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32298
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32299
32299
  data: data,
32300
32300
  pagination: pagination,
32301
32301
  loading: false,
@@ -32306,20 +32306,20 @@ function useTableData$1 (_ref) {
32306
32306
  sorter: p.sorter
32307
32307
  });
32308
32308
  } else {
32309
- apiHandler.readList(configuration.mapping, _objectSpread$1j(_objectSpread$1j({}, catalogItem), {}, {
32309
+ apiHandler.readList(configuration.mapping, _objectSpread$1m(_objectSpread$1m({}, catalogItem), {}, {
32310
32310
  filterContex: filterContex
32311
32311
  }), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
32312
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32312
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32313
32313
  data: data.data.map(function (dt) {
32314
- return _objectSpread$1j(_objectSpread$1j({}, dt), {}, {
32314
+ return _objectSpread$1m(_objectSpread$1m({}, dt), {}, {
32315
32315
  _id: dt._id || dt.ID || nanoid()
32316
32316
  });
32317
32317
  }),
32318
- pagination: _objectSpread$1j(_objectSpread$1j({}, p.pagination), {}, {
32318
+ pagination: _objectSpread$1m(_objectSpread$1m({}, p.pagination), {}, {
32319
32319
  total: data.total
32320
32320
  }),
32321
32321
  loading: false,
32322
- mappingData: _objectSpread$1j(_objectSpread$1j({}, catalogItem), {}, {
32322
+ mappingData: _objectSpread$1m(_objectSpread$1m({}, catalogItem), {}, {
32323
32323
  filterContex: filterContex
32324
32324
  })
32325
32325
  }));
@@ -32340,7 +32340,7 @@ function useTableData$1 (_ref) {
32340
32340
  filters['_id'] = [id, 'eq', false];
32341
32341
  _context.next = 4;
32342
32342
  return apiHandler.readList(configuration.mapping, {
32343
- pagination: _objectSpread$1j({}, state.pagination),
32343
+ pagination: _objectSpread$1m({}, state.pagination),
32344
32344
  columns: configuration.columns,
32345
32345
  filters: filters,
32346
32346
  sorter: filterData.sorter
@@ -32359,7 +32359,7 @@ function useTableData$1 (_ref) {
32359
32359
  };
32360
32360
  }();
32361
32361
  var onSelect = function onSelect(keys) {
32362
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32362
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32363
32363
  selected: keys
32364
32364
  }));
32365
32365
  };
@@ -32369,7 +32369,7 @@ function useTableData$1 (_ref) {
32369
32369
  return _regeneratorRuntime.wrap(function _callee2$(_context3) {
32370
32370
  while (1) switch (_context3.prev = _context3.next) {
32371
32371
  case 0:
32372
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32372
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32373
32373
  deleting: true
32374
32374
  }));
32375
32375
  newData = _toConsumableArray(state.data);
@@ -32384,7 +32384,7 @@ function useTableData$1 (_ref) {
32384
32384
  mappingData = (_newData$filter = newData.filter(function (nd) {
32385
32385
  return nd._id === state.selected[index];
32386
32386
  })) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
32387
- mappingData = _objectSpread$1j(_objectSpread$1j({}, mappingData), state.mappingData);
32387
+ mappingData = _objectSpread$1m(_objectSpread$1m({}, mappingData), state.mappingData);
32388
32388
  _context2.next = 5;
32389
32389
  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);
32390
32390
  case 5:
@@ -32434,7 +32434,7 @@ function useTableData$1 (_ref) {
32434
32434
  }
32435
32435
  _context3.next = 18;
32436
32436
  return apiHandler.readList(configuration.mapping, {
32437
- pagination: _objectSpread$1j(_objectSpread$1j({}, state.pagination), {}, {
32437
+ pagination: _objectSpread$1m(_objectSpread$1m({}, state.pagination), {}, {
32438
32438
  current: current
32439
32439
  }),
32440
32440
  columns: configuration.columns,
@@ -32446,11 +32446,11 @@ function useTableData$1 (_ref) {
32446
32446
  newData = data.data;
32447
32447
  total = data.total;
32448
32448
  case 21:
32449
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32449
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32450
32450
  selected: [],
32451
32451
  deleting: false,
32452
32452
  data: newData,
32453
- pagination: _objectSpread$1j(_objectSpread$1j({}, state.pagination), {}, {
32453
+ pagination: _objectSpread$1m(_objectSpread$1m({}, state.pagination), {}, {
32454
32454
  current: current,
32455
32455
  total: total
32456
32456
  })
@@ -32466,12 +32466,12 @@ function useTableData$1 (_ref) {
32466
32466
  };
32467
32467
  }();
32468
32468
  function setLoading() {
32469
- setState(_objectSpread$1j(_objectSpread$1j({}, state), {}, {
32469
+ setState(_objectSpread$1m(_objectSpread$1m({}, state), {}, {
32470
32470
  loading: true
32471
32471
  }));
32472
32472
  }
32473
- return _objectSpread$1j(_objectSpread$1j({}, state), {}, {
32474
- configuration: _objectSpread$1j(_objectSpread$1j({}, configuration), {}, {
32473
+ return _objectSpread$1m(_objectSpread$1m({}, state), {}, {
32474
+ configuration: _objectSpread$1m(_objectSpread$1m({}, configuration), {}, {
32475
32475
  title: undefined
32476
32476
  }),
32477
32477
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
@@ -32567,8 +32567,8 @@ var translation = {
32567
32567
  SUPPLIER: 'backoffice.translation.supplier'
32568
32568
  };
32569
32569
 
32570
- 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; }
32571
- 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; }
32570
+ 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; }
32571
+ 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; }
32572
32572
  /**
32573
32573
  * Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
32574
32574
  */
@@ -32576,10 +32576,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
32576
32576
  if (!readListUrl && !genericType) {
32577
32577
  return base;
32578
32578
  }
32579
- var next = _objectSpread$1i({}, base);
32579
+ var next = _objectSpread$1l({}, base);
32580
32580
  if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
32581
- next.apiInterface = _objectSpread$1i(_objectSpread$1i({}, next.apiInterface), {}, {
32582
- read: _objectSpread$1i(_objectSpread$1i({}, next.apiInterface.read), {}, {
32581
+ next.apiInterface = _objectSpread$1l(_objectSpread$1l({}, next.apiInterface), {}, {
32582
+ read: _objectSpread$1l(_objectSpread$1l({}, next.apiInterface.read), {}, {
32583
32583
  list: readListUrl
32584
32584
  })
32585
32585
  });
@@ -32612,8 +32612,8 @@ function objectHash (obj) {
32612
32612
  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; } } }; }
32613
32613
  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; } }
32614
32614
  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; }
32615
- 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; }
32616
- 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; }
32615
+ 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; }
32616
+ 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; }
32617
32617
  var LOG$e = getLogger('Backoffice', 'TableData');
32618
32618
  function useTableData (_ref) {
32619
32619
  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;
@@ -32634,8 +32634,8 @@ function useTableData (_ref) {
32634
32634
  var apiHandler = useMemo(function () {
32635
32635
  if (configProp) {
32636
32636
  // Store entry is minimal (type+title only); pass the full apiInterface directly
32637
- var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1h(_objectSpread$1h({}, configProp.apiInterface), {}, {
32638
- read: _objectSpread$1h(_objectSpread$1h({}, configProp.apiInterface.read), {}, {
32637
+ var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$1k(_objectSpread$1k({}, configProp.apiInterface), {}, {
32638
+ read: _objectSpread$1k(_objectSpread$1k({}, configProp.apiInterface.read), {}, {
32639
32639
  list: readListUrlOverride
32640
32640
  })
32641
32641
  }) : configProp.apiInterface;
@@ -32646,8 +32646,8 @@ function useTableData (_ref) {
32646
32646
  }
32647
32647
  var base = baseConfiguration;
32648
32648
  if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
32649
- return root.getApiHandler(id, _objectSpread$1h(_objectSpread$1h({}, base.apiInterface), {}, {
32650
- read: _objectSpread$1h(_objectSpread$1h({}, base.apiInterface.read), {}, {
32649
+ return root.getApiHandler(id, _objectSpread$1k(_objectSpread$1k({}, base.apiInterface), {}, {
32650
+ read: _objectSpread$1k(_objectSpread$1k({}, base.apiInterface.read), {}, {
32651
32651
  list: readListUrlOverride
32652
32652
  })
32653
32653
  }));
@@ -32701,7 +32701,7 @@ function useTableData (_ref) {
32701
32701
  var _useState13 = useState({
32702
32702
  loading: true,
32703
32703
  deleting: false,
32704
- pagination: _objectSpread$1h(_objectSpread$1h({
32704
+ pagination: _objectSpread$1k(_objectSpread$1k({
32705
32705
  current: 1,
32706
32706
  pageSize: 20,
32707
32707
  total: 0,
@@ -32710,7 +32710,7 @@ function useTableData (_ref) {
32710
32710
  selected: (_persistedTableState$3 = persistedTableState === null || persistedTableState === void 0 ? void 0 : persistedTableState.selected) !== null && _persistedTableState$3 !== void 0 ? _persistedTableState$3 : [],
32711
32711
  canDelete: !!apiHandler.canDelete,
32712
32712
  canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
32713
- mappingData: _objectSpread$1h(_objectSpread$1h({}, parentData), {}, {
32713
+ mappingData: _objectSpread$1k(_objectSpread$1k({}, parentData), {}, {
32714
32714
  prefilter: {
32715
32715
  select: globalFilter.select
32716
32716
  },
@@ -32721,7 +32721,7 @@ function useTableData (_ref) {
32721
32721
  _useState14 = _slicedToArray(_useState13, 2),
32722
32722
  state = _useState14[0],
32723
32723
  setState = _useState14[1];
32724
- var mappingData = _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, parentData), state.data), {}, {
32724
+ var mappingData = _objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, parentData), state.data), {}, {
32725
32725
  catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
32726
32726
  sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
32727
32727
  });
@@ -32761,7 +32761,7 @@ function useTableData (_ref) {
32761
32761
  }
32762
32762
  var dataArray = Array.isArray(data) ? data : [data];
32763
32763
  var newInitData = initData;
32764
- var newState = _objectSpread$1h({}, state);
32764
+ var newState = _objectSpread$1k({}, state);
32765
32765
  var selected = [];
32766
32766
  if (configuration.deselectOnUpdate == false) {
32767
32767
  selected = state.selected;
@@ -32778,7 +32778,7 @@ function useTableData (_ref) {
32778
32778
  dataRow: dataRow
32779
32779
  }),
32780
32780
  _data = _updateData.data;
32781
- newState = _objectSpread$1h(_objectSpread$1h({}, newState), {}, {
32781
+ newState = _objectSpread$1k(_objectSpread$1k({}, newState), {}, {
32782
32782
  data: _data,
32783
32783
  selected: selected
32784
32784
  });
@@ -32790,8 +32790,8 @@ function useTableData (_ref) {
32790
32790
  dataRow: dataRow
32791
32791
  }),
32792
32792
  nextInitData = _updateData2.data;
32793
- var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, filterData), {}, {
32794
- filters: _objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, 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"])
32793
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, filterData), {}, {
32794
+ filters: _objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, 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"])
32795
32795
  }, 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 ? {
32796
32796
  genericProps: globalFilter.toggle
32797
32797
  } : undefined), {}, {
@@ -32801,7 +32801,7 @@ function useTableData (_ref) {
32801
32801
  _data2 = _applyFilterAndSortat.data,
32802
32802
  pagination = _applyFilterAndSortat.pagination;
32803
32803
  newInitData = nextInitData;
32804
- newState = _objectSpread$1h(_objectSpread$1h({}, newState), {}, {
32804
+ newState = _objectSpread$1k(_objectSpread$1k({}, newState), {}, {
32805
32805
  pagination: pagination,
32806
32806
  data: _data2,
32807
32807
  selected: selected
@@ -32811,8 +32811,8 @@ function useTableData (_ref) {
32811
32811
  if (apiHandler.canCreate) {
32812
32812
  apiCreate(data).then(function (res) {
32813
32813
  if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
32814
- initData && setInitData(_objectSpread$1h({}, initData));
32815
- setState(_objectSpread$1h({}, state));
32814
+ initData && setInitData(_objectSpread$1k({}, initData));
32815
+ setState(_objectSpread$1k({}, state));
32816
32816
  }
32817
32817
  });
32818
32818
  }
@@ -32825,7 +32825,7 @@ function useTableData (_ref) {
32825
32825
  var triggerRefresh = function triggerRefresh() {
32826
32826
  var _configuration$filter14;
32827
32827
  setError(undefined);
32828
- var newGlobalFilter = _objectSpread$1h({}, globalFilter);
32828
+ var newGlobalFilter = _objectSpread$1k({}, globalFilter);
32829
32829
  //on refresh update default filter, since global value can change
32830
32830
  if ((_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && _configuration$filter14["default"]) {
32831
32831
  var _configuration$filter15;
@@ -32836,7 +32836,7 @@ function useTableData (_ref) {
32836
32836
  newGlobalFilter["default"] = _defaultFilter;
32837
32837
  setGlobaFilter(newGlobalFilter);
32838
32838
  }
32839
- onChange(_objectSpread$1h({
32839
+ onChange(_objectSpread$1k({
32840
32840
  pagination: state.pagination
32841
32841
  }, filterData), newGlobalFilter, true);
32842
32842
  };
@@ -32854,7 +32854,7 @@ function useTableData (_ref) {
32854
32854
  order: c.defaultSortOrder
32855
32855
  };
32856
32856
  });
32857
- if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
32857
+ if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
32858
32858
  loading: false
32859
32859
  }));else {
32860
32860
  var _persistedTableState$4, _persistedTableState$5, _persistedTableState$6, _persistedTableState$7;
@@ -32909,7 +32909,7 @@ function useTableData (_ref) {
32909
32909
  case 0:
32910
32910
  filters = {};
32911
32911
  filters['_id'] = [id, 'eq', false];
32912
- ssf = _objectSpread$1h({
32912
+ ssf = _objectSpread$1k({
32913
32913
  pagination: {
32914
32914
  current: 1,
32915
32915
  pageSize: 1
@@ -32920,7 +32920,7 @@ function useTableData (_ref) {
32920
32920
  genericProps: globalFilter.toggle
32921
32921
  } : undefined);
32922
32922
  _context2.next = 5;
32923
- return apiHandler.readList(readMapping, _objectSpread$1h(_objectSpread$1h({}, mappingData), state.mappingData), ssf);
32923
+ return apiHandler.readList(readMapping, _objectSpread$1k(_objectSpread$1k({}, mappingData), state.mappingData), ssf);
32924
32924
  case 5:
32925
32925
  data = _context2.sent;
32926
32926
  return _context2.abrupt("return", data);
@@ -32964,12 +32964,12 @@ function useTableData (_ref) {
32964
32964
  refresh = _args3.length > 2 ? _args3[2] : undefined;
32965
32965
  clearSelection = _args3.length > 3 ? _args3[3] : undefined;
32966
32966
  overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
32967
- setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
32967
+ setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
32968
32968
  mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
32969
32969
  loading: true
32970
32970
  }));
32971
32971
  currentData = initData;
32972
- filterData = _objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, 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
32972
+ filterData = _objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, 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
32973
32973
  filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref9) {
32974
32974
  var _ref10 = _slicedToArray(_ref9, 2);
32975
32975
  _ref10[0];
@@ -32977,7 +32977,7 @@ function useTableData (_ref) {
32977
32977
  return v != null;
32978
32978
  }));
32979
32979
  currentFilterHash = objectHash(filterData);
32980
- currentPagination = _objectSpread$1h(_objectSpread$1h({}, p.pagination), {}, {
32980
+ currentPagination = _objectSpread$1k(_objectSpread$1k({}, p.pagination), {}, {
32981
32981
  current: currentFilterHash == filterHash.current ? p.pagination.current : 1
32982
32982
  });
32983
32983
  filterHash.current = currentFilterHash;
@@ -32985,7 +32985,7 @@ function useTableData (_ref) {
32985
32985
  _context3.next = 21;
32986
32986
  break;
32987
32987
  }
32988
- ssf = _objectSpread$1h({
32988
+ ssf = _objectSpread$1k({
32989
32989
  pagination: currentPagination,
32990
32990
  columns: configuration.columns,
32991
32991
  filters: filterData,
@@ -32994,12 +32994,12 @@ function useTableData (_ref) {
32994
32994
  genericProps: prefilter.toggle
32995
32995
  } : undefined);
32996
32996
  _context3.next = 15;
32997
- return apiHandler.readList(readMapping, _objectSpread$1h(_objectSpread$1h({}, 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)));
32997
+ return apiHandler.readList(readMapping, _objectSpread$1k(_objectSpread$1k({}, 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)));
32998
32998
  case 15:
32999
32999
  data = _context3.sent;
33000
- currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1h(_objectSpread$1h({}, mappingData), state.mappingData), ssf);
33000
+ currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$1k(_objectSpread$1k({}, mappingData), state.mappingData), ssf);
33001
33001
  currentData = data.data;
33002
- currentPagination = _objectSpread$1h(_objectSpread$1h({}, currentPagination), {}, {
33002
+ currentPagination = _objectSpread$1k(_objectSpread$1k({}, currentPagination), {}, {
33003
33003
  total: data.total
33004
33004
  });
33005
33005
  _context3.next = 30;
@@ -33016,7 +33016,7 @@ function useTableData (_ref) {
33016
33016
  currentData = _data3.data;
33017
33017
  setInitData(currentData);
33018
33018
  case 27:
33019
- _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1h(_objectSpread$1h({}, p), {}, {
33019
+ _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$1k(_objectSpread$1k({}, p), {}, {
33020
33020
  pagination: currentPagination,
33021
33021
  filters: filterData,
33022
33022
  data: currentData,
@@ -33025,11 +33025,11 @@ function useTableData (_ref) {
33025
33025
  currentData = _data4;
33026
33026
  currentPagination = pagination;
33027
33027
  case 30:
33028
- setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
33028
+ setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
33029
33029
  loading: false,
33030
33030
  data: currentData,
33031
33031
  pagination: currentPagination,
33032
- mappingData: _objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, parentData), state.mappingData), overwriteMappingData), {}, {
33032
+ mappingData: _objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, parentData), state.mappingData), overwriteMappingData), {}, {
33033
33033
  prefilter: prefilter
33034
33034
  }),
33035
33035
  currentFetchUrl: currentUrl
@@ -33051,7 +33051,7 @@ function useTableData (_ref) {
33051
33051
  };
33052
33052
  }();
33053
33053
  var onSelect = function onSelect(keys) {
33054
- setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
33054
+ setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
33055
33055
  selected: keys
33056
33056
  }));
33057
33057
  };
@@ -33062,7 +33062,7 @@ function useTableData (_ref) {
33062
33062
  return _regeneratorRuntime.wrap(function _callee4$(_context5) {
33063
33063
  while (1) switch (_context5.prev = _context5.next) {
33064
33064
  case 0:
33065
- setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
33065
+ setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
33066
33066
  deleting: true
33067
33067
  }));
33068
33068
  newData = _toConsumableArray(state.data);
@@ -33102,7 +33102,7 @@ function useTableData (_ref) {
33102
33102
  } finally {
33103
33103
  _iterator.f();
33104
33104
  }
33105
- mappingData = _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, mappingData), state.mappingData), mapToggle);
33105
+ mappingData = _objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, mappingData), state.mappingData), mapToggle);
33106
33106
  deleteResult = undefined;
33107
33107
  _context4.prev = 7;
33108
33108
  if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
@@ -33192,12 +33192,12 @@ function useTableData (_ref) {
33192
33192
  break;
33193
33193
  }
33194
33194
  _context5.next = 25;
33195
- return apiHandler.readList(readMapping, _objectSpread$1h(_objectSpread$1h({}, mappingData), state.mappingData), _objectSpread$1h({
33196
- pagination: _objectSpread$1h(_objectSpread$1h({}, state.pagination), {}, {
33195
+ return apiHandler.readList(readMapping, _objectSpread$1k(_objectSpread$1k({}, mappingData), state.mappingData), _objectSpread$1k({
33196
+ pagination: _objectSpread$1k(_objectSpread$1k({}, state.pagination), {}, {
33197
33197
  current: current
33198
33198
  }),
33199
33199
  columns: configuration.columns,
33200
- filters: _objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h(_objectSpread$1h({}, 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"]),
33200
+ filters: _objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k(_objectSpread$1k({}, 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"]),
33201
33201
  sorter: filterData.sorter
33202
33202
  }, 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 ? {
33203
33203
  genericProps: globalFilter.toggle
@@ -33208,11 +33208,11 @@ function useTableData (_ref) {
33208
33208
  total = data.total;
33209
33209
  case 28:
33210
33210
  setInitData(newInitData);
33211
- setState(_objectSpread$1h(_objectSpread$1h({}, state), {}, {
33211
+ setState(_objectSpread$1k(_objectSpread$1k({}, state), {}, {
33212
33212
  selected: [],
33213
33213
  deleting: false,
33214
33214
  data: newData,
33215
- pagination: _objectSpread$1h(_objectSpread$1h({}, state.pagination), {}, {
33215
+ pagination: _objectSpread$1k(_objectSpread$1k({}, state.pagination), {}, {
33216
33216
  current: current === 0 ? 1 : current,
33217
33217
  total: total
33218
33218
  })
@@ -33233,7 +33233,7 @@ function useTableData (_ref) {
33233
33233
  LOG$e.error(new DivaError('No global select filter defiend'));
33234
33234
  return;
33235
33235
  }
33236
- var newGlobalFilter = _objectSpread$1h({}, globalFilter);
33236
+ var newGlobalFilter = _objectSpread$1k({}, globalFilter);
33237
33237
  if (value !== null && value !== void 0 && value.length) {
33238
33238
  var selectValue = Array.isArray(value) ? value : [value];
33239
33239
  newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, selectValue.length > 1 ? [].concat(_toConsumableArray(selectValue), ['in']) : [selectValue[0], selectFilterOperation]);
@@ -33241,7 +33241,7 @@ function useTableData (_ref) {
33241
33241
  newGlobalFilter.select = {};
33242
33242
  }
33243
33243
  setGlobaFilter(newGlobalFilter);
33244
- onChange(_objectSpread$1h({
33244
+ onChange(_objectSpread$1k({
33245
33245
  pagination: state.pagination
33246
33246
  }, filterData), newGlobalFilter);
33247
33247
  };
@@ -33252,16 +33252,16 @@ function useTableData (_ref) {
33252
33252
  return;
33253
33253
  }
33254
33254
  var toggleFilter = {};
33255
- var mappingData = _objectSpread$1h({}, state.mappingData);
33255
+ var mappingData = _objectSpread$1k({}, state.mappingData);
33256
33256
  configuration.filter.toggle.fields.forEach(function (f) {
33257
33257
  mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
33258
33258
  toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
33259
33259
  });
33260
- var newGlobalFilter = _objectSpread$1h(_objectSpread$1h({}, globalFilter), {}, {
33260
+ var newGlobalFilter = _objectSpread$1k(_objectSpread$1k({}, globalFilter), {}, {
33261
33261
  toggle: globalFilter.toggle ? undefined : toggleFilter
33262
33262
  });
33263
33263
  setGlobaFilter(newGlobalFilter);
33264
- onChange(_objectSpread$1h({
33264
+ onChange(_objectSpread$1k({
33265
33265
  pagination: state.pagination
33266
33266
  }, filterData), newGlobalFilter, true, true, mappingData);
33267
33267
  };
@@ -33274,7 +33274,7 @@ function useTableData (_ref) {
33274
33274
  LOG$e.error(new DivaError('No global search filter defiend'));
33275
33275
  return;
33276
33276
  }
33277
- var newGlobalFilter = _objectSpread$1h(_objectSpread$1h({}, globalFilter), {}, {
33277
+ var newGlobalFilter = _objectSpread$1k(_objectSpread$1k({}, globalFilter), {}, {
33278
33278
  search: {}
33279
33279
  });
33280
33280
  if (value) {
@@ -33288,7 +33288,7 @@ function useTableData (_ref) {
33288
33288
  });
33289
33289
  }
33290
33290
  setGlobaFilter(newGlobalFilter);
33291
- onChange(_objectSpread$1h({
33291
+ onChange(_objectSpread$1k({
33292
33292
  pagination: state.pagination
33293
33293
  }, filterData), newGlobalFilter);
33294
33294
  };
@@ -33298,20 +33298,20 @@ function useTableData (_ref) {
33298
33298
  LOG$e.error(new DivaError('No global period filter defiend'));
33299
33299
  return;
33300
33300
  }
33301
- var newGlobalFilter = _objectSpread$1h({}, globalFilter);
33301
+ var newGlobalFilter = _objectSpread$1k({}, globalFilter);
33302
33302
  newGlobalFilter.timeStamp = {
33303
33303
  fromTimeStamp: [from],
33304
33304
  toTimeStamp: [to]
33305
33305
  };
33306
33306
  if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
33307
- onChange(_objectSpread$1h({
33307
+ onChange(_objectSpread$1k({
33308
33308
  pagination: state.pagination
33309
- }, filterData), undefined, true, undefined, _objectSpread$1h(_objectSpread$1h({}, state.mappingData), {}, {
33309
+ }, filterData), undefined, true, undefined, _objectSpread$1k(_objectSpread$1k({}, state.mappingData), {}, {
33310
33310
  from: from,
33311
33311
  to: to
33312
33312
  }));
33313
33313
  };
33314
- return _objectSpread$1h(_objectSpread$1h({}, state), {}, {
33314
+ return _objectSpread$1k(_objectSpread$1k({}, state), {}, {
33315
33315
  title: title,
33316
33316
  configuration: configuration,
33317
33317
  columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter, persistFilters ? filterData : undefined),
@@ -33357,8 +33357,8 @@ function StandardTable (_ref) {
33357
33357
  });
33358
33358
  }
33359
33359
 
33360
- 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; }
33361
- 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; }
33360
+ 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; }
33361
+ 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; }
33362
33362
  function Table (props) {
33363
33363
  var root = useStore();
33364
33364
  var variant = useMemo(function () {
@@ -33366,15 +33366,15 @@ function Table (props) {
33366
33366
  return config.variant;
33367
33367
  }, [props.id]);
33368
33368
  return /*#__PURE__*/jsxs(Fragment, {
33369
- children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1g({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1g({}, props))]
33369
+ children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$1j({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$1j({}, props))]
33370
33370
  });
33371
33371
  }
33372
33372
 
33373
33373
  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; } } }; }
33374
33374
  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; } }
33375
33375
  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; }
33376
- 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; }
33377
- 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; }
33376
+ 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; }
33377
+ 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; }
33378
33378
  function useAGGrid (_ref) {
33379
33379
  var id = _ref.id,
33380
33380
  filter = _ref.filter,
@@ -33468,7 +33468,7 @@ function useAGGrid (_ref) {
33468
33468
  value = _ref3[1];
33469
33469
  if (_idx == 0) {
33470
33470
  var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
33471
- rdat.push(_objectSpread$1f(_objectSpread$1f({}, rd), {}, {
33471
+ rdat.push(_objectSpread$1i(_objectSpread$1i({}, rd), {}, {
33472
33472
  grouping: [idx.toString()]
33473
33473
  }));
33474
33474
  var sp = key.split(':');
@@ -33608,11 +33608,11 @@ var loader = "loader-LaXZy";
33608
33608
  var flex = "flex-yQdda";
33609
33609
  var bar = "bar-Y663f";
33610
33610
  var value = "value-FCA-6";
33611
- 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";
33612
- styleInject(css_248z$H);
33611
+ var css_248z$I = ".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";
33612
+ styleInject(css_248z$I);
33613
33613
 
33614
- 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; }
33615
- 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; }
33614
+ 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; }
33615
+ 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; }
33616
33616
  var AGChart = function AGChart(_ref) {
33617
33617
  var data = _ref.data;
33618
33618
  var groupedData = [];
@@ -33620,11 +33620,11 @@ var AGChart = function AGChart(_ref) {
33620
33620
  data.forEach(function (dt) {
33621
33621
  if (dt.count == 0) return;
33622
33622
  if (groupedData.length > dt.grouping[0]) {
33623
- groupedData[dt.grouping[0]].push(_objectSpread$1e(_objectSpread$1e({}, dt), {}, {
33623
+ groupedData[dt.grouping[0]].push(_objectSpread$1h(_objectSpread$1h({}, dt), {}, {
33624
33624
  count: Number(dt.count)
33625
33625
  }));
33626
33626
  } else {
33627
- groupedData.push([_objectSpread$1e(_objectSpread$1e({}, dt), {}, {
33627
+ groupedData.push([_objectSpread$1h(_objectSpread$1h({}, dt), {}, {
33628
33628
  count: Number(dt.count)
33629
33629
  })]);
33630
33630
  }
@@ -33665,8 +33665,8 @@ var AGChart = function AGChart(_ref) {
33665
33665
  });
33666
33666
  };
33667
33667
 
33668
- 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; }
33669
- 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; }
33668
+ 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; }
33669
+ 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; }
33670
33670
  var AGGrid = /*#__PURE__*/memo(function (_ref) {
33671
33671
  var id = _ref.id,
33672
33672
  filter = _ref.filter,
@@ -33759,7 +33759,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
33759
33759
  });
33760
33760
  });
33761
33761
  }
33762
- return _objectSpread$1d(_objectSpread$1d({}, column), {}, {
33762
+ return _objectSpread$1g(_objectSpread$1g({}, column), {}, {
33763
33763
  cellRenderer: renderer
33764
33764
  });
33765
33765
  });
@@ -34029,8 +34029,8 @@ var CustomText = function CustomText(_ref) {
34029
34029
  };
34030
34030
  var CustomText$1 = observer(CustomText);
34031
34031
 
34032
- 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; }
34033
- 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; }
34032
+ 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; }
34033
+ 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; }
34034
34034
  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; } } }; }
34035
34035
  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; } }
34036
34036
  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; }
@@ -34093,7 +34093,7 @@ function useFilterBoxData (id) {
34093
34093
  } finally {
34094
34094
  _iterator.f();
34095
34095
  }
34096
- return _objectSpread$1c(_objectSpread$1c({}, state), ob);
34096
+ return _objectSpread$1f(_objectSpread$1f({}, state), ob);
34097
34097
  }
34098
34098
  return {
34099
34099
  configuration: configuration,
@@ -34107,8 +34107,8 @@ function useFilterBoxData (id) {
34107
34107
  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; } } }; }
34108
34108
  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; } }
34109
34109
  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; }
34110
- 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; }
34111
- 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; }
34110
+ 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; }
34111
+ 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; }
34112
34112
  var FilterBox = /*#__PURE__*/memo(function (_ref) {
34113
34113
  var id = _ref.id,
34114
34114
  onChangeFilter = _ref.onChangeFilter,
@@ -34136,7 +34136,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
34136
34136
  }), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Selector, {
34137
34137
  mode: "single",
34138
34138
  apiInterface: filter.requestOptions,
34139
- wholeData: _objectSpread$1b(_objectSpread$1b({}, state.filter), {}, {
34139
+ wholeData: _objectSpread$1e(_objectSpread$1e({}, state.filter), {}, {
34140
34140
  tab: tab
34141
34141
  }),
34142
34142
  mapping: filter.requestMapping,
@@ -34368,8 +34368,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
34368
34368
  return false;
34369
34369
  });
34370
34370
 
34371
- 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; }
34372
- 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; }
34371
+ 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; }
34372
+ 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; }
34373
34373
  function useUIBuilderData (id) {
34374
34374
  var save = undefined;
34375
34375
  var root = useStore();
@@ -34401,7 +34401,7 @@ function useUIBuilderData (id) {
34401
34401
  var configuration = _useMemo.configuration;
34402
34402
  useEffect(function () {
34403
34403
  root.dataStore.getApi2SessionGuid().then(function (res) {
34404
- return setFilter(_objectSpread$1a(_objectSpread$1a({}, filter), {}, {
34404
+ return setFilter(_objectSpread$1d(_objectSpread$1d({}, filter), {}, {
34405
34405
  sessionGuid: res
34406
34406
  }));
34407
34407
  });
@@ -34424,8 +34424,8 @@ function useUIBuilderData (id) {
34424
34424
  };
34425
34425
  }
34426
34426
 
34427
- 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; }
34428
- 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; }
34427
+ 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; }
34428
+ 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; }
34429
34429
  function UIBuilder(_ref) {
34430
34430
  var id = _ref.id;
34431
34431
  var state = useUIBuilderData(id);
@@ -34452,7 +34452,7 @@ function UIBuilder(_ref) {
34452
34452
  override = {
34453
34453
  value: newFilter[item.field],
34454
34454
  setValue: function setValue(newVal) {
34455
- var newFilter = _objectSpread$19({}, state.filter);
34455
+ var newFilter = _objectSpread$1c({}, state.filter);
34456
34456
  newFilter[item.field] = newVal;
34457
34457
  state.setFilter(newFilter);
34458
34458
  }
@@ -34500,7 +34500,7 @@ function UIBuilder(_ref) {
34500
34500
  case 'AGGrid':
34501
34501
  return /*#__PURE__*/jsx(AGGrid, {
34502
34502
  id: item.id,
34503
- filter: _objectSpread$19({
34503
+ filter: _objectSpread$1c({
34504
34504
  optionCodices: JSON.stringify(state.data)
34505
34505
  }, state.filter),
34506
34506
  override: item.id == 'AGGridTopOptionValues' ? {
@@ -34545,7 +34545,7 @@ function UIBuilder(_ref) {
34545
34545
  });
34546
34546
  }
34547
34547
 
34548
- var label$2 = "label-rYNbb";
34548
+ var label$3 = "label-rYNbb";
34549
34549
  var notClickable = "not-clickable-wHc5V";
34550
34550
  var selected$1 = "selected-34dYg";
34551
34551
  var description = "description-iFui2";
@@ -34555,8 +34555,8 @@ var supplier = "supplier-8sm0I";
34555
34555
  var dealer = "dealer-xgnku";
34556
34556
  var association = "association-b8uVW";
34557
34557
  var campaign = "campaign-zlrTx";
34558
- 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";
34559
- styleInject(css_248z$G);
34558
+ var css_248z$H = ".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";
34559
+ styleInject(css_248z$H);
34560
34560
 
34561
34561
  function getColorClass(data) {
34562
34562
  switch (data.type) {
@@ -34591,7 +34591,7 @@ var OrgItem = function OrgItem(_ref) {
34591
34591
  var root = useStore();
34592
34592
  return /*#__PURE__*/jsxs("div", {
34593
34593
  id: data.id,
34594
- className: classNames(label$2, itemChain.find(function (i) {
34594
+ className: classNames(label$3, itemChain.find(function (i) {
34595
34595
  return i.id === data.id;
34596
34596
  }) ? selected$1 : undefined, !data.readPermission ? notClickable : undefined, getColorClass(data)),
34597
34597
  onClick: function onClick() {
@@ -34664,8 +34664,8 @@ var OrgItem = function OrgItem(_ref) {
34664
34664
  };
34665
34665
  var OrgItem$1 = observer(OrgItem);
34666
34666
 
34667
- 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; }
34668
- 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; }
34667
+ 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; }
34668
+ 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; }
34669
34669
  function useTransformJson (_ref) {
34670
34670
  var id = _ref.id;
34671
34671
  var _useState = useState(),
@@ -34731,7 +34731,7 @@ function useTransformJson (_ref) {
34731
34731
  }();
34732
34732
  var _transformData = function transformData(data, itemChain, parentOrgId) {
34733
34733
  var _data$children;
34734
- return _objectSpread$18(_objectSpread$18({}, data), {}, {
34734
+ return _objectSpread$1b(_objectSpread$1b({}, data), {}, {
34735
34735
  label: /*#__PURE__*/jsx(OrgItem$1, {
34736
34736
  data: data,
34737
34737
  configuration: configuration,
@@ -34791,8 +34791,8 @@ var arrow = "arrow-Rd0hp";
34791
34791
  var openClass = "open-class--gGXs";
34792
34792
  var breadcrumb = "breadcrumb-Z0VvH";
34793
34793
  var selected = "selected-w-sfW";
34794
- 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";
34795
- styleInject(css_248z$F);
34794
+ var css_248z$G = ".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";
34795
+ styleInject(css_248z$G);
34796
34796
 
34797
34797
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
34798
34798
  var open = _ref.open,
@@ -34825,8 +34825,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
34825
34825
 
34826
34826
  var collapsibleInner = "collapsible-inner-rI8kI";
34827
34827
  var toolbarLeft = "toolbar-left-X9WRo";
34828
- 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";
34829
- styleInject(css_248z$E);
34828
+ var css_248z$F = ".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";
34829
+ styleInject(css_248z$F);
34830
34830
 
34831
34831
  var Legend = function Legend(props) {
34832
34832
  return /*#__PURE__*/jsx(List$1, {
@@ -34880,8 +34880,8 @@ var Legend = function Legend(props) {
34880
34880
  var buttonsWrapper = "buttons-wrapper-Bubkr";
34881
34881
  var mask = "mask-ssagp";
34882
34882
  var transformWrapper = "transform-wrapper--8t0v";
34883
- 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";
34884
- styleInject(css_248z$D);
34883
+ var css_248z$E = ".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";
34884
+ styleInject(css_248z$E);
34885
34885
 
34886
34886
  var ZoomWrapper = function ZoomWrapper(_ref) {
34887
34887
  var _children = _ref.children,
@@ -35391,8 +35391,8 @@ function useCatalogEditor (id) {
35391
35391
  };
35392
35392
  }
35393
35393
 
35394
- 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; }
35395
- 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; }
35394
+ 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; }
35395
+ 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; }
35396
35396
  function DragDropUpload(_ref) {
35397
35397
  var api2Params = _ref.api2Params,
35398
35398
  catalogId = _ref.catalogId,
@@ -35500,7 +35500,7 @@ function DragDropUpload(_ref) {
35500
35500
  children: [importStarted && /*#__PURE__*/jsx("p", {
35501
35501
  children: t('backoffice.catalogeditor.classimportstarted')
35502
35502
  }), !importStarted && /*#__PURE__*/jsxs(Fragment, {
35503
- children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$17(_objectSpread$17({}, props), {}, {
35503
+ children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$1a(_objectSpread$1a({}, props), {}, {
35504
35504
  children: [/*#__PURE__*/jsx("p", {
35505
35505
  className: "ant-upload-drag-icon",
35506
35506
  children: /*#__PURE__*/jsx(InboxOutlined, {})
@@ -35717,8 +35717,8 @@ function CatalogEditor(_ref) {
35717
35717
  }
35718
35718
  var CatalogEditor$1 = observer(CatalogEditor);
35719
35719
 
35720
- 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; }
35721
- 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; }
35720
+ 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; }
35721
+ 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; }
35722
35722
  /**
35723
35723
  * Wrapper component for the Spreadsheet that adds common props
35724
35724
  *
@@ -35768,7 +35768,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
35768
35768
  style: {
35769
35769
  display: 'contents'
35770
35770
  },
35771
- children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$16(_objectSpread$16({}, props), {}, {
35771
+ children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$19(_objectSpread$19({}, props), {}, {
35772
35772
  ref: setRefs,
35773
35773
  darkMode: root.contentStore.theme == 'darkmode',
35774
35774
  jwt: root.dataStore.jwt,
@@ -37031,8 +37031,8 @@ var getItemTypeKeyInfo = function getItemTypeKeyInfo(t) {
37031
37031
  }];
37032
37032
  };
37033
37033
 
37034
- 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; }
37035
- 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; }
37034
+ 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; }
37035
+ 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; }
37036
37036
  /** PackageIds currently being resolved (the hook is instantiated several times per view). */
37037
37037
  var resolvingPlaceholder = new Set();
37038
37038
 
@@ -37057,14 +37057,14 @@ var useEnricherContext = function useEnricherContext() {
37057
37057
  loading: loading,
37058
37058
  setOptions: function setOptions(options) {
37059
37059
  var state = root.contextStore.getContext('enricher');
37060
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$15(_objectSpread$15({}, state[stateKey]), {}, {
37060
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$18(_objectSpread$18({}, state[stateKey]), {}, {
37061
37061
  options: options,
37062
37062
  loading: false
37063
37063
  })));
37064
37064
  },
37065
37065
  setLoading: function setLoading(loading) {
37066
37066
  var state = root.contextStore.getContext('enricher');
37067
- root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$15(_objectSpread$15({}, state[stateKey]), {}, {
37067
+ root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$18(_objectSpread$18({}, state[stateKey]), {}, {
37068
37068
  loading: loading
37069
37069
  })));
37070
37070
  }
@@ -37226,7 +37226,7 @@ var useEnricherContext = function useEnricherContext() {
37226
37226
  }, [placeholderId, root.dataStore.jwt]);
37227
37227
 
37228
37228
  // Return context + handlers
37229
- return _objectSpread$15(_objectSpread$15({}, getContext()), {}, {
37229
+ return _objectSpread$18(_objectSpread$18({}, getContext()), {}, {
37230
37230
  setSelectedSerie: setSelectedSerie,
37231
37231
  setSelectedItem: setSelectedItem,
37232
37232
  setSelectedFeature: setSelectedFeature,
@@ -37402,8 +37402,8 @@ var useCatalogVersionDialog = function useCatalogVersionDialog() {
37402
37402
  };
37403
37403
  };
37404
37404
 
37405
- 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; }
37406
- 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; }
37405
+ 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; }
37406
+ 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; }
37407
37407
 
37408
37408
  /**
37409
37409
  * The facts the filter rewrite needs about the user's organization. They mirror the inputs of
@@ -37450,7 +37450,7 @@ function transformFilterNode$1(node, context) {
37450
37450
  if (conditions.length === 0) {
37451
37451
  return undefined;
37452
37452
  }
37453
- return _objectSpread$14(_objectSpread$14({}, joinNode), {}, {
37453
+ return _objectSpread$17(_objectSpread$17({}, joinNode), {}, {
37454
37454
  conditions: conditions
37455
37455
  });
37456
37456
  }
@@ -38474,8 +38474,8 @@ function useModule$1 (currentModules) {
38474
38474
  };
38475
38475
  }
38476
38476
 
38477
- 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; }
38478
- 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; }
38477
+ 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; }
38478
+ 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; }
38479
38479
  /**
38480
38480
  * Creates a column configuration for translated fields in a spreadsheet
38481
38481
  *
@@ -38503,7 +38503,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
38503
38503
  acc[key] = "".concat(customParams[key], ".").concat(language);
38504
38504
  return acc;
38505
38505
  }, {}) : undefined;
38506
- return maxLength !== undefined ? _objectSpread$13(_objectSpread$13({}, translatedCustomParams), {}, {
38506
+ return maxLength !== undefined ? _objectSpread$16(_objectSpread$16({}, translatedCustomParams), {}, {
38507
38507
  maxLength: maxLength
38508
38508
  }) : translatedCustomParams;
38509
38509
  };
@@ -38542,8 +38542,8 @@ function createTranslatedColumnConfig(field, headerName, languages) {
38542
38542
  }
38543
38543
 
38544
38544
  var rowInherited = "rowInherited-Mszxm";
38545
- var css_248z$C = ".rowInherited-Mszxm {\n opacity: 0.6;\n}\n";
38546
- styleInject(css_248z$C);
38545
+ var css_248z$D = ".rowInherited-Mszxm {\n opacity: 0.6;\n}\n";
38546
+ styleInject(css_248z$D);
38547
38547
 
38548
38548
  var TableTabGroups = observer(function () {
38549
38549
  var _useTranslation = useTranslation(),
@@ -38689,8 +38689,8 @@ var TableTabGroups = observer(function () {
38689
38689
  });
38690
38690
  });
38691
38691
 
38692
- 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; }
38693
- 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; }
38692
+ 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; }
38693
+ 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; }
38694
38694
  /**
38695
38695
  * Column for overriding entity assets in the enricher: the cell edits the translated field and shows the
38696
38696
  * synced orig snapshot as inherited placeholder (the spreadsheet asset cell's placeHolderField semantics -
@@ -38712,7 +38712,7 @@ function createAssetOverrideColumn(headerName, field, placeHolderField, apiConfi
38712
38712
  editable: !viewOnly,
38713
38713
  excludeFromExcelExport: true,
38714
38714
  additionalFields: [placeHolderField, combinedField],
38715
- customParams: _objectSpread$12(_objectSpread$12(_objectSpread$12({
38715
+ customParams: _objectSpread$15(_objectSpread$15(_objectSpread$15({
38716
38716
  isObject: true,
38717
38717
  urlField: 'url',
38718
38718
  fileNameField: 'name',
@@ -39601,15 +39601,15 @@ function PropertyObjectExpandedEditor(_ref) {
39601
39601
  });
39602
39602
  }
39603
39603
 
39604
- 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; }
39605
- 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; }
39604
+ 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; }
39605
+ 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; }
39606
39606
  var collapseSecondaryLanguages = function collapseSecondaryLanguages(columnConfig) {
39607
39607
  if (!('children' in columnConfig)) {
39608
39608
  return columnConfig;
39609
39609
  }
39610
- return _objectSpread$11(_objectSpread$11({}, columnConfig), {}, {
39610
+ return _objectSpread$14(_objectSpread$14({}, columnConfig), {}, {
39611
39611
  children: columnConfig.children.map(function (child, index) {
39612
- return index === 0 ? child : _objectSpread$11(_objectSpread$11({}, child), {}, {
39612
+ return index === 0 ? child : _objectSpread$14(_objectSpread$14({}, child), {}, {
39613
39613
  columnGroupShow: 'open'
39614
39614
  });
39615
39615
  })
@@ -39701,7 +39701,7 @@ var EnrichmentTable = observer(function (_ref) {
39701
39701
  return _toConsumableArray(new Set([].concat(_toConsumableArray(p), [v.addProperty])));
39702
39702
  });
39703
39703
  setPropertyMeta(function (p) {
39704
- return _objectSpread$11(_objectSpread$11({}, p), {}, _defineProperty({}, v.addProperty, {
39704
+ return _objectSpread$14(_objectSpread$14({}, p), {}, _defineProperty({}, v.addProperty, {
39705
39705
  codexKey: v.codexKey,
39706
39706
  description: v.description,
39707
39707
  type: v.type
@@ -39793,7 +39793,7 @@ var EnrichmentTable = observer(function (_ref) {
39793
39793
  if (type !== 'detailInfos') {
39794
39794
  var keys = event.updates.flatMap(function (u) {
39795
39795
  var _u$data, _u$data2, _u$data3;
39796
- return Object.keys(_objectSpread$11(_objectSpread$11(_objectSpread$11({}, (_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));
39796
+ return Object.keys(_objectSpread$14(_objectSpread$14(_objectSpread$14({}, (_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));
39797
39797
  });
39798
39798
  if (keys.length) {
39799
39799
  setShownProps(function (prev) {
@@ -39834,7 +39834,7 @@ var EnrichmentTable = observer(function (_ref) {
39834
39834
  if (type === 'items' && !selectedSerie) {
39835
39835
  return oldDataRef.current;
39836
39836
  }
39837
- var newData = _objectSpread$11(_objectSpread$11({}, baseApplicationData), {}, {
39837
+ var newData = _objectSpread$14(_objectSpread$14({}, baseApplicationData), {}, {
39838
39838
  subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
39839
39839
  });
39840
39840
  oldDataRef.current = newData;
@@ -39872,7 +39872,7 @@ var EnrichmentTable = observer(function (_ref) {
39872
39872
  return;
39873
39873
  }
39874
39874
  setPropertyMeta(function (prev) {
39875
- var next = _objectSpread$11({}, prev);
39875
+ var next = _objectSpread$14({}, prev);
39876
39876
  usage.forEach(function (_ref4) {
39877
39877
  var _next$key, _next$key2, _next$key3;
39878
39878
  var key = _ref4.key,
@@ -39990,9 +39990,9 @@ var EnrichmentTable = observer(function (_ref) {
39990
39990
  };
39991
39991
 
39992
39992
  // a text property with more than one language is a column group, whose buttons belong on the group header
39993
- return 'children' in columnConfig ? _objectSpread$11(_objectSpread$11({}, columnConfig), {}, {
39993
+ return 'children' in columnConfig ? _objectSpread$14(_objectSpread$14({}, columnConfig), {}, {
39994
39994
  headerGroupComponentParams: headerParams
39995
- }) : _objectSpread$11(_objectSpread$11({}, columnConfig), {}, {
39995
+ }) : _objectSpread$14(_objectSpread$14({}, columnConfig), {}, {
39996
39996
  headerComponentParams: headerParams
39997
39997
  });
39998
39998
  })), _toConsumableArray(viewOnly ? [] : [{
@@ -40559,8 +40559,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
40559
40559
  return value === getDefaultValue(type);
40560
40560
  };
40561
40561
 
40562
- 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; }
40563
- 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; }
40562
+ 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; }
40563
+ 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; }
40564
40564
  /**
40565
40565
  * Custom hook to manage price factor state and logic
40566
40566
  * @param props - Hook configuration
@@ -40597,7 +40597,7 @@ function usePriceFactor(_ref) {
40597
40597
  var updateEntries = function updateEntries(newTypeEntries) {
40598
40598
  setHasChangedCurrentType(true);
40599
40599
  setEntries(function (prev) {
40600
- return _objectSpread$10(_objectSpread$10({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
40600
+ return _objectSpread$13(_objectSpread$13({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
40601
40601
  });
40602
40602
  };
40603
40603
  var handleModalOpen = useCallback(function () {
@@ -40634,7 +40634,7 @@ function usePriceFactor(_ref) {
40634
40634
  // Always ensure at least one entry when switching types
40635
40635
  var newEntries = hasChangedCurrentType ? [] : entries[newType];
40636
40636
  setEntries(function (prev) {
40637
- return _objectSpread$10(_objectSpread$10({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
40637
+ return _objectSpread$13(_objectSpread$13({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
40638
40638
  value: getDefaultValue(newType),
40639
40639
  isValid: true
40640
40640
  }]));
@@ -40738,8 +40738,8 @@ var space = "space-T5Mkd";
40738
40738
  var input$1 = "input-SK-Fo";
40739
40739
  var addButton$1 = "addButton-AVN8Y";
40740
40740
  var helpText = "helpText-QYQQF";
40741
- 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";
40742
- styleInject(css_248z$B);
40741
+ var css_248z$C = ".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";
40742
+ styleInject(css_248z$C);
40743
40743
 
40744
40744
  function PriceFactorCellRenderer(props) {
40745
40745
  var data = props.data,
@@ -40955,8 +40955,8 @@ var difference = "difference-xT9ZP";
40955
40955
  var differencePositive = "differencePositive-hGhZO";
40956
40956
  var differenceNegative = "differenceNegative-3CEZA";
40957
40957
  var differenceNeutral = "differenceNeutral-wx8oE";
40958
- 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";
40959
- styleInject(css_248z$A);
40958
+ var css_248z$B = ".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";
40959
+ styleInject(css_248z$B);
40960
40960
 
40961
40961
  function PriceDisplayCellRenderer(props) {
40962
40962
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -41066,12 +41066,12 @@ function getPriceFeatureGroups(selectedSerie, language) {
41066
41066
 
41067
41067
  var input = "input-leHam";
41068
41068
  var disabled$1 = "disabled-Llkqu";
41069
- 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";
41070
- styleInject(css_248z$z);
41069
+ var css_248z$A = ".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";
41070
+ styleInject(css_248z$A);
41071
41071
 
41072
41072
  var _excluded$8 = ["onSave", "value"];
41073
- 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; }
41074
- 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; }
41073
+ 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; }
41074
+ 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; }
41075
41075
  function PriceFactorInput(_ref) {
41076
41076
  var _onSave = _ref.onSave,
41077
41077
  value = _ref.value,
@@ -41087,7 +41087,7 @@ function PriceFactorInput(_ref) {
41087
41087
  title: props.tooltip,
41088
41088
  children: /*#__PURE__*/jsx("div", {
41089
41089
  className: classNames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
41090
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$$(_objectSpread$$({}, props), {}, {
41090
+ children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$12(_objectSpread$12({}, props), {}, {
41091
41091
  isNotInAGGrid: true,
41092
41092
  value: innerValue,
41093
41093
  onSave: function onSave(data, value) {
@@ -41101,8 +41101,8 @@ function PriceFactorInput(_ref) {
41101
41101
 
41102
41102
  var inputHeader = "input-header--4KDP";
41103
41103
  var factorInput = "factor-input-MX85Z";
41104
- 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";
41105
- styleInject(css_248z$y);
41104
+ var css_248z$z = ".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";
41105
+ styleInject(css_248z$z);
41106
41106
 
41107
41107
  function PriceFactorHeaderComponent(_ref) {
41108
41108
  var onSave = _ref.onSave,
@@ -41143,8 +41143,8 @@ function PriceFactorHeaderComponent(_ref) {
41143
41143
 
41144
41144
  var root$d = "root-SA2Dd";
41145
41145
  var contentWrapper$1 = "content-wrapper-KSvuc";
41146
- 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";
41147
- styleInject(css_248z$x);
41146
+ var css_248z$y = ".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";
41147
+ styleInject(css_248z$y);
41148
41148
 
41149
41149
  function Setting(_ref) {
41150
41150
  var title = _ref.title,
@@ -41163,8 +41163,8 @@ function Setting(_ref) {
41163
41163
  });
41164
41164
  }
41165
41165
 
41166
- 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; }
41167
- 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; }
41166
+ 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; }
41167
+ 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; }
41168
41168
  /**
41169
41169
  * Custom hook for managing modal open/close state
41170
41170
  *
@@ -41180,12 +41180,12 @@ function useModalOpenState() {
41180
41180
  setOpenStates = _useState2[1];
41181
41181
  var openModal = function openModal(key) {
41182
41182
  setOpenStates(function (prev) {
41183
- return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty({}, key, true));
41183
+ return _objectSpread$11(_objectSpread$11({}, prev), {}, _defineProperty({}, key, true));
41184
41184
  });
41185
41185
  };
41186
41186
  var closeModal = function closeModal(key) {
41187
41187
  setOpenStates(function (prev) {
41188
- return _objectSpread$_(_objectSpread$_({}, prev), {}, _defineProperty({}, key, false));
41188
+ return _objectSpread$11(_objectSpread$11({}, prev), {}, _defineProperty({}, key, false));
41189
41189
  });
41190
41190
  };
41191
41191
  return {
@@ -41253,12 +41253,12 @@ function getFormItemProps(props) {
41253
41253
  }
41254
41254
 
41255
41255
  var _excluded$6 = ["disabled"];
41256
- 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; }
41257
- 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; }
41256
+ 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; }
41257
+ 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; }
41258
41258
  function Checkbox(_ref) {
41259
41259
  var disabled = _ref.disabled,
41260
41260
  props = _objectWithoutProperties(_ref, _excluded$6);
41261
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$Z(_objectSpread$Z({}, getFormItemProps(props)), {}, {
41261
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$10(_objectSpread$10({}, getFormItemProps(props)), {}, {
41262
41262
  valuePropName: "checked",
41263
41263
  children: /*#__PURE__*/jsx(Checkbox$1, {
41264
41264
  disabled: disabled
@@ -41267,13 +41267,13 @@ function Checkbox(_ref) {
41267
41267
  }
41268
41268
 
41269
41269
  var _excluded$5 = ["disabled", "placeholder"];
41270
- 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; }
41271
- 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; }
41270
+ 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; }
41271
+ 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; }
41272
41272
  function Input(_ref) {
41273
41273
  var disabled = _ref.disabled,
41274
41274
  placeholder = _ref.placeholder,
41275
41275
  props = _objectWithoutProperties(_ref, _excluded$5);
41276
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$Y(_objectSpread$Y({}, getFormItemProps(props)), {}, {
41276
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$$(_objectSpread$$({}, getFormItemProps(props)), {}, {
41277
41277
  children: /*#__PURE__*/jsx(Input$1, {
41278
41278
  disabled: disabled,
41279
41279
  placeholder: placeholder
@@ -41282,11 +41282,11 @@ function Input(_ref) {
41282
41282
  }
41283
41283
 
41284
41284
  var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
41285
- var css_248z$w = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
41286
- styleInject(css_248z$w);
41285
+ var css_248z$x = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
41286
+ styleInject(css_248z$x);
41287
41287
 
41288
- 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; }
41289
- 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; }
41288
+ 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; }
41289
+ 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; }
41290
41290
  /**
41291
41291
  * Handles file selection and optional auto-zipping
41292
41292
  *
@@ -41390,7 +41390,7 @@ function _validateFile() {
41390
41390
  return _validateFile.apply(this, arguments);
41391
41391
  }
41392
41392
  function toUploadFile(file) {
41393
- return _objectSpread$X(_objectSpread$X({}, file), {}, {
41393
+ return _objectSpread$_(_objectSpread$_({}, file), {}, {
41394
41394
  uid: file.name,
41395
41395
  name: file.name,
41396
41396
  status: 'done',
@@ -41462,8 +41462,8 @@ var DraggerComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41462
41462
  });
41463
41463
 
41464
41464
  var _excluded$4 = ["acceptedFileTypes", "disabled", "autoZip", "required", "hint"];
41465
- 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; }
41466
- 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; }
41465
+ 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; }
41466
+ 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; }
41467
41467
  function Dragger(_ref) {
41468
41468
  var _props$rules;
41469
41469
  var acceptedFileTypes = _ref.acceptedFileTypes,
@@ -41474,7 +41474,7 @@ function Dragger(_ref) {
41474
41474
  props = _objectWithoutProperties(_ref, _excluded$4);
41475
41475
  var _useTranslation = useTranslation(),
41476
41476
  t = _useTranslation.t;
41477
- return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$W(_objectSpread$W({}, getFormItemProps(props)), {}, {
41477
+ return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$Z(_objectSpread$Z({}, getFormItemProps(props)), {}, {
41478
41478
  rules: [].concat(_toConsumableArray((_props$rules = props.rules) !== null && _props$rules !== void 0 ? _props$rules : []), [{
41479
41479
  validator: function validator(_, value) {
41480
41480
  return validateFile(acceptedFileTypes, t, value);
@@ -41548,8 +41548,8 @@ function useForm(_ref) {
41548
41548
  };
41549
41549
  }
41550
41550
 
41551
- 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; }
41552
- 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; }
41551
+ 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; }
41552
+ 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; }
41553
41553
  /**
41554
41554
  * Form component that renders form fields based on configuration
41555
41555
  *
@@ -41605,15 +41605,15 @@ function FormItem(_ref2) {
41605
41605
  var field = _ref2.field;
41606
41606
  switch (field.type) {
41607
41607
  case 'dragger':
41608
- return /*#__PURE__*/createElement(Dragger, _objectSpread$V(_objectSpread$V({}, field), {}, {
41608
+ return /*#__PURE__*/createElement(Dragger, _objectSpread$Y(_objectSpread$Y({}, field), {}, {
41609
41609
  key: field.name
41610
41610
  }));
41611
41611
  case 'checkbox':
41612
- return /*#__PURE__*/createElement(Checkbox, _objectSpread$V(_objectSpread$V({}, field), {}, {
41612
+ return /*#__PURE__*/createElement(Checkbox, _objectSpread$Y(_objectSpread$Y({}, field), {}, {
41613
41613
  key: field.name
41614
41614
  }));
41615
41615
  case 'input':
41616
- return /*#__PURE__*/createElement(Input, _objectSpread$V(_objectSpread$V({}, field), {}, {
41616
+ return /*#__PURE__*/createElement(Input, _objectSpread$Y(_objectSpread$Y({}, field), {}, {
41617
41617
  key: field.name
41618
41618
  }));
41619
41619
  default:
@@ -41625,8 +41625,8 @@ var uploadModalFooter = "upload-modal-footer-W5737";
41625
41625
  var uploadButton = "upload-button-QkWYP";
41626
41626
  var errorGroup = "error-group-lmQSx";
41627
41627
  var errorItem = "error-item-kyNLD";
41628
- 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";
41629
- styleInject(css_248z$v);
41628
+ var css_248z$w = ".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";
41629
+ styleInject(css_248z$w);
41630
41630
 
41631
41631
  /**
41632
41632
  * Custom hook for managing upload modal state and functionality
@@ -41971,8 +41971,8 @@ function useUploadModal(_ref) {
41971
41971
  };
41972
41972
  }
41973
41973
 
41974
- 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; }
41975
- 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; }
41974
+ 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; }
41975
+ 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; }
41976
41976
  var Panel = Collapse.Panel;
41977
41977
  var Text$7 = Typography.Text;
41978
41978
  /**
@@ -42038,7 +42038,7 @@ function ErrorDisplay(_ref) {
42038
42038
  }
42039
42039
  allFieldGroups.get(fieldName).push({
42040
42040
  operationType: label,
42041
- errors: [_objectSpread$U(_objectSpread$U({}, error), {}, {
42041
+ errors: [_objectSpread$X(_objectSpread$X({}, error), {}, {
42042
42042
  errorTexts: fieldError.errorTexts
42043
42043
  })]
42044
42044
  });
@@ -42051,7 +42051,7 @@ function ErrorDisplay(_ref) {
42051
42051
  }
42052
42052
  allFieldGroups.get(fieldName).push({
42053
42053
  operationType: label,
42054
- errors: [_objectSpread$U(_objectSpread$U({}, error), {}, {
42054
+ errors: [_objectSpread$X(_objectSpread$X({}, error), {}, {
42055
42055
  errorTexts: [error.error]
42056
42056
  })]
42057
42057
  });
@@ -42270,8 +42270,8 @@ function ExportModal(_ref) {
42270
42270
  });
42271
42271
  }
42272
42272
 
42273
- 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; }
42274
- 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; }
42273
+ 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; }
42274
+ 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; }
42275
42275
  function Modals(_ref) {
42276
42276
  var openStates = _ref.openStates,
42277
42277
  closeModal = _ref.closeModal,
@@ -42280,7 +42280,7 @@ function Modals(_ref) {
42280
42280
  children: [items.filter(function (item) {
42281
42281
  return item.type === 'uploadModal';
42282
42282
  }).map(function (item) {
42283
- return /*#__PURE__*/createElement(UploadModal, _objectSpread$T(_objectSpread$T({}, item), {}, {
42283
+ return /*#__PURE__*/createElement(UploadModal, _objectSpread$W(_objectSpread$W({}, item), {}, {
42284
42284
  key: item.key,
42285
42285
  isOpen: openStates[item.key],
42286
42286
  onClose: function onClose() {
@@ -42327,8 +42327,8 @@ function ActionMenu(_ref) {
42327
42327
  });
42328
42328
  }
42329
42329
 
42330
- 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; }
42331
- 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; }
42330
+ 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; }
42331
+ 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; }
42332
42332
  var Prices = observer(function (_ref) {
42333
42333
  var _pricelist$seriePrice;
42334
42334
  var organizationId = _ref.organizationId,
@@ -42388,8 +42388,8 @@ var Prices = observer(function (_ref) {
42388
42388
  if (!selectedSerie) return;
42389
42389
 
42390
42390
  // Create copies of the objects to modify
42391
- var newFactors = _objectSpread$S({}, pricelist.pfgPricefactors);
42392
- var serieFactors = _objectSpread$S({}, newFactors[selectedSerie.serieNo]);
42391
+ var newFactors = _objectSpread$V({}, pricelist.pfgPricefactors);
42392
+ var serieFactors = _objectSpread$V({}, newFactors[selectedSerie.serieNo]);
42393
42393
  if (value.length === 0) {
42394
42394
  // Remove the empty price feature group
42395
42395
  delete serieFactors[priceFeatureGroupItem];
@@ -42420,7 +42420,7 @@ var Prices = observer(function (_ref) {
42420
42420
  var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
42421
42421
  var _newPriority$selected;
42422
42422
  if (!selectedSerie) return;
42423
- var newPriority = _objectSpread$S({}, pricelist.pfgPricefactorsPriority);
42423
+ var newPriority = _objectSpread$V({}, pricelist.pfgPricefactorsPriority);
42424
42424
  var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
42425
42425
  if (value === true) {
42426
42426
  seriesPriority.add(priceFeatureGroupItem);
@@ -42439,7 +42439,7 @@ var Prices = observer(function (_ref) {
42439
42439
  var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
42440
42440
  var _newPriority$selected2;
42441
42441
  if (!selectedSerie) return;
42442
- var newPriority = _objectSpread$S({}, pricelist.pgPricefactorsPriority);
42442
+ var newPriority = _objectSpread$V({}, pricelist.pgPricefactorsPriority);
42443
42443
  var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
42444
42444
  if (value === true) {
42445
42445
  seriesPriority.add(priceFeatureGroupItem);
@@ -42459,8 +42459,8 @@ var Prices = observer(function (_ref) {
42459
42459
  if (!selectedSerie) return;
42460
42460
 
42461
42461
  // Create copies of the objects to modify
42462
- var newFactors = _objectSpread$S({}, pricelist.pgPricefactors);
42463
- var serieFactors = _objectSpread$S({}, newFactors[selectedSerie.serieNo]);
42462
+ var newFactors = _objectSpread$V({}, pricelist.pgPricefactors);
42463
+ var serieFactors = _objectSpread$V({}, newFactors[selectedSerie.serieNo]);
42464
42464
  if (value.length === 0) {
42465
42465
  // Remove the empty price feature group
42466
42466
  delete serieFactors[priceFeatureGroupItem];
@@ -42492,8 +42492,8 @@ var Prices = observer(function (_ref) {
42492
42492
  if (!selectedSerie) return;
42493
42493
 
42494
42494
  // Create copies of the objects to modify
42495
- var newFactors = _objectSpread$S({}, pricelist.articlePricefactors);
42496
- var serieFactors = _objectSpread$S({}, newFactors[selectedSerie.serieNo]);
42495
+ var newFactors = _objectSpread$V({}, pricelist.articlePricefactors);
42496
+ var serieFactors = _objectSpread$V({}, newFactors[selectedSerie.serieNo]);
42497
42497
  if (value.length === 0) {
42498
42498
  // Remove the empty article price factor
42499
42499
  delete serieFactors[typeNo];
@@ -42525,8 +42525,8 @@ var Prices = observer(function (_ref) {
42525
42525
  if (!selectedSerie) return;
42526
42526
 
42527
42527
  // Create copies of the objects to modify
42528
- var newFactors = _objectSpread$S({}, pricelist.typeKeyPricefactors);
42529
- var serieFactors = _objectSpread$S({}, newFactors[selectedSerie.serieNo]);
42528
+ var newFactors = _objectSpread$V({}, pricelist.typeKeyPricefactors);
42529
+ var serieFactors = _objectSpread$V({}, newFactors[selectedSerie.serieNo]);
42530
42530
  if (value.length === 0) {
42531
42531
  // Remove the empty article price factor
42532
42532
  delete serieFactors[typeKey];
@@ -42558,7 +42558,7 @@ var Prices = observer(function (_ref) {
42558
42558
  if (!selectedSerie) return;
42559
42559
 
42560
42560
  // Create a copy of the object to modify
42561
- var newFactors = _objectSpread$S({}, pricelist.seriePricefactors);
42561
+ var newFactors = _objectSpread$V({}, pricelist.seriePricefactors);
42562
42562
  if (value.length === 0) {
42563
42563
  // Remove the empty serie price factor
42564
42564
  delete newFactors[selectedSerie.serieNo];
@@ -43397,8 +43397,8 @@ function Content$9() {
43397
43397
  }
43398
43398
 
43399
43399
  var _excluded$3 = ["buttonText", "onClose"];
43400
- 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; }
43401
- 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; }
43400
+ 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; }
43401
+ 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; }
43402
43402
  /**
43403
43403
  * Button component that opens an upload modal when clicked
43404
43404
  *
@@ -43427,15 +43427,15 @@ function UploadModalButton(_ref) {
43427
43427
  return setIsModalOpen(true);
43428
43428
  },
43429
43429
  children: buttonText
43430
- }), /*#__PURE__*/jsx(UploadModal, _objectSpread$R(_objectSpread$R({}, props), {}, {
43430
+ }), /*#__PURE__*/jsx(UploadModal, _objectSpread$U(_objectSpread$U({}, props), {}, {
43431
43431
  isOpen: isModalOpen,
43432
43432
  onClose: handleClose
43433
43433
  }))]
43434
43434
  });
43435
43435
  }
43436
43436
 
43437
- 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; }
43438
- 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; }
43437
+ 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; }
43438
+ 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; }
43439
43439
 
43440
43440
  // Type definition for the context state
43441
43441
 
@@ -43457,14 +43457,14 @@ var useCatalogContext = function useCatalogContext() {
43457
43457
  loading: loading,
43458
43458
  setOptions: function setOptions(options) {
43459
43459
  var state = root.contextStore.getContext('catalog');
43460
- root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$Q(_objectSpread$Q({}, state[stateKey]), {}, {
43460
+ root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$T(_objectSpread$T({}, state[stateKey]), {}, {
43461
43461
  options: options,
43462
43462
  loading: false
43463
43463
  })));
43464
43464
  },
43465
43465
  setLoading: function setLoading(loading) {
43466
43466
  var state = root.contextStore.getContext('catalog');
43467
- root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$Q(_objectSpread$Q({}, state[stateKey]), {}, {
43467
+ root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$T(_objectSpread$T({}, state[stateKey]), {}, {
43468
43468
  loading: loading
43469
43469
  })));
43470
43470
  }
@@ -43583,7 +43583,7 @@ var useCatalogContext = function useCatalogContext() {
43583
43583
  // (backoffice crash on agent/deep-link navigation into a catalog that was never
43584
43584
  // row-clicked). Mirror setSelectedCatalog's catalog-change reset; the effect persists it.
43585
43585
  var state = getContext();
43586
- var urlSynced = urlCatalogId && state.catalogId !== urlCatalogId ? _objectSpread$Q(_objectSpread$Q({}, state), {}, {
43586
+ var urlSynced = urlCatalogId && state.catalogId !== urlCatalogId ? _objectSpread$T(_objectSpread$T({}, state), {}, {
43587
43587
  catalogId: urlCatalogId,
43588
43588
  selectedCatalog: {
43589
43589
  _id: urlCatalogId
@@ -43592,7 +43592,7 @@ var useCatalogContext = function useCatalogContext() {
43592
43592
  selectedItem: undefined,
43593
43593
  selectedFeature: undefined
43594
43594
  }) : state;
43595
- return _objectSpread$Q(_objectSpread$Q({}, urlSynced), {}, {
43595
+ return _objectSpread$T(_objectSpread$T({}, urlSynced), {}, {
43596
43596
  setSelectedSerie: setSelectedSerie,
43597
43597
  setSelectedItem: setSelectedItem,
43598
43598
  setSelectedFeature: setSelectedFeature,
@@ -43602,8 +43602,8 @@ var useCatalogContext = function useCatalogContext() {
43602
43602
  });
43603
43603
  };
43604
43604
 
43605
- 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; }
43606
- 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; }
43605
+ 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; }
43606
+ 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; }
43607
43607
  var IDM_VERSIONS = [{
43608
43608
  name: '3.0.0',
43609
43609
  value: '3.0.0'
@@ -43645,7 +43645,7 @@ function transformFilterNode(node, versionColId) {
43645
43645
  return c !== undefined;
43646
43646
  });
43647
43647
  if (conditions.length === 0) return undefined;
43648
- return _objectSpread$P(_objectSpread$P({}, joinNode), {}, {
43648
+ return _objectSpread$S(_objectSpread$S({}, joinNode), {}, {
43649
43649
  conditions: conditions
43650
43650
  });
43651
43651
  }
@@ -45503,15 +45503,625 @@ function useModule (currentModules) {
45503
45503
  };
45504
45504
  }
45505
45505
 
45506
- var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45506
+ 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; }
45507
+ 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; }
45508
+ /**
45509
+ * Types and access helpers for the goods-group vocabulary (Warengruppen-Programme / Wohnwelten) that idm-service
45510
+ * joins onto a serie under `goodsGroup` when the `goodsGroup` field is requested.
45511
+ */
45512
+
45513
+ /** One vocabulary entry (a program/catalog group, a living world, or a product group) with its translated name. */
45514
+
45515
+ /** A living world, nesting the catalog groups (programs) that belong to it. */
45516
+
45517
+ /** The full goods-group vocabulary, as returned by idm-service. */
45518
+
45519
+ /** The `goodsGroup` join idm-service attaches to a serie row when the AI enrichment has classified it. */
45520
+
45521
+ /** The `goodsGroup` join idm-service attaches to an item row when the AI enrichment has classified it. */
45522
+
45523
+ /** Language name entries fall back to when the requested language, and 'de', are both missing. */
45524
+ var FALLBACK_LANGUAGE = 'de';
45525
+
45526
+ /**
45527
+ * Resolves the translated display label of a vocabulary entry. Accepts a raw code instead of an entry (e.g. while
45528
+ * the vocabulary has not loaded yet, or the code is not one it lists) and returns it unchanged, so callers can
45529
+ * pass either without a separate lookup step.
45530
+ */
45531
+ function vocabularyLabel(entry, language) {
45532
+ var _ref, _ref2, _entry$name$lang;
45533
+ if (!entry) return '';
45534
+ if (typeof entry === 'string') return entry;
45535
+ var lang = language === null || language === void 0 ? void 0 : language.toLowerCase();
45536
+ return (_ref = (_ref2 = (_entry$name$lang = entry.name[lang]) !== null && _entry$name$lang !== void 0 ? _entry$name$lang : entry.name[FALLBACK_LANGUAGE]) !== null && _ref2 !== void 0 ? _ref2 : Object.values(entry.name)[0]) !== null && _ref !== void 0 ? _ref : entry.code;
45537
+ }
45538
+
45539
+ /**
45540
+ * Flattens the vocabulary's catalog groups (programs) into one list - the ones nested under a living world plus
45541
+ * the ones without one - for use as the enum editor's option list and for code-to-entry lookups.
45542
+ */
45543
+ function flattenCatalogGroups(vocabulary) {
45544
+ var _vocabulary$livingWor, _vocabulary$livingWor2, _vocabulary$catalogGr;
45545
+ if (!vocabulary) return [];
45546
+ var nested = (_vocabulary$livingWor = (_vocabulary$livingWor2 = vocabulary.livingWorlds) === null || _vocabulary$livingWor2 === void 0 ? void 0 : _vocabulary$livingWor2.flatMap(function (world) {
45547
+ var _world$catalogGroups;
45548
+ return (_world$catalogGroups = world.catalogGroups) !== null && _world$catalogGroups !== void 0 ? _world$catalogGroups : [];
45549
+ })) !== null && _vocabulary$livingWor !== void 0 ? _vocabulary$livingWor : [];
45550
+ return [].concat(_toConsumableArray(nested), _toConsumableArray((_vocabulary$catalogGr = vocabulary.catalogGroupsWithoutWorld) !== null && _vocabulary$catalogGr !== void 0 ? _vocabulary$catalogGr : []));
45551
+ }
45552
+
45553
+ /** Identifies the idm-service instance (and, optionally, the caller's auth) to fetch the vocabulary from. */
45554
+
45555
+ /** The goods-group classification of one serie, as persisted by idm-service - the AI run plus an optional manual correction. */
45556
+ /** Reads the response's message (JSON body, falling back to its status text) and throws it as an Error. */
45557
+ function throwResponseError(_x) {
45558
+ return _throwResponseError.apply(this, arguments);
45559
+ }
45560
+ function _throwResponseError() {
45561
+ _throwResponseError = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(response) {
45562
+ var message, _ref3, _ref4, _body$message, body;
45563
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
45564
+ while (1) switch (_context.prev = _context.next) {
45565
+ case 0:
45566
+ message = response.statusText || "Request failed (".concat(response.status, ")");
45567
+ _context.prev = 1;
45568
+ _context.next = 4;
45569
+ return response.clone().json();
45570
+ case 4:
45571
+ body = _context.sent;
45572
+ message = (_ref3 = (_ref4 = (_body$message = body === null || body === void 0 ? void 0 : body.message) !== null && _body$message !== void 0 ? _body$message : body === null || body === void 0 ? void 0 : body.Error) !== null && _ref4 !== void 0 ? _ref4 : body === null || body === void 0 ? void 0 : body.error) !== null && _ref3 !== void 0 ? _ref3 : message;
45573
+ _context.next = 10;
45574
+ break;
45575
+ case 8:
45576
+ _context.prev = 8;
45577
+ _context.t0 = _context["catch"](1);
45578
+ case 10:
45579
+ throw new Error(message);
45580
+ case 11:
45581
+ case "end":
45582
+ return _context.stop();
45583
+ }
45584
+ }, _callee, null, [[1, 8]]);
45585
+ }));
45586
+ return _throwResponseError.apply(this, arguments);
45587
+ }
45588
+ function authHeader(ctx) {
45589
+ return ctx.jwt ? {
45590
+ Authorization: "Bearer ".concat(ctx.jwt)
45591
+ } : undefined;
45592
+ }
45593
+
45594
+ /** Clears the manual correction, reverting the serie's goods-group classification back to the AI value. */
45595
+ function deleteGoodsGroupManual(_x2, _x3) {
45596
+ return _deleteGoodsGroupManual.apply(this, arguments);
45597
+ }
45598
+
45599
+ /** Fetches a serie's current goods-group classification document. */
45600
+ function _deleteGoodsGroupManual() {
45601
+ _deleteGoodsGroupManual = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(ctx, id) {
45602
+ var response;
45603
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
45604
+ while (1) switch (_context2.prev = _context2.next) {
45605
+ case 0:
45606
+ _context2.next = 2;
45607
+ return fetch("".concat(ctx.idmService, "/goodsgroups/").concat(id, "/manual"), {
45608
+ method: 'DELETE',
45609
+ headers: authHeader(ctx)
45610
+ });
45611
+ case 2:
45612
+ response = _context2.sent;
45613
+ if (response.ok) {
45614
+ _context2.next = 6;
45615
+ break;
45616
+ }
45617
+ _context2.next = 6;
45618
+ return throwResponseError(response);
45619
+ case 6:
45620
+ case "end":
45621
+ return _context2.stop();
45622
+ }
45623
+ }, _callee2);
45624
+ }));
45625
+ return _deleteGoodsGroupManual.apply(this, arguments);
45626
+ }
45627
+ function getGoodsGroup(_x4, _x5) {
45628
+ return _getGoodsGroup.apply(this, arguments);
45629
+ }
45630
+
45631
+ /**
45632
+ * Derives the serie-row summary (effective codes, source, review flag) from a goods-group document -
45633
+ * the same shape idm-service joins onto a serie row under `goodsGroup`. `previous` carries forward
45634
+ * `runningRunId`, which is not part of the document itself and would otherwise be lost on a writeback.
45635
+ */
45636
+ function _getGoodsGroup() {
45637
+ _getGoodsGroup = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(ctx, id) {
45638
+ var response;
45639
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
45640
+ while (1) switch (_context3.prev = _context3.next) {
45641
+ case 0:
45642
+ _context3.next = 2;
45643
+ return fetch("".concat(ctx.idmService, "/goodsgroups/").concat(id), {
45644
+ headers: authHeader(ctx)
45645
+ });
45646
+ case 2:
45647
+ response = _context3.sent;
45648
+ if (response.ok) {
45649
+ _context3.next = 6;
45650
+ break;
45651
+ }
45652
+ _context3.next = 6;
45653
+ return throwResponseError(response);
45654
+ case 6:
45655
+ return _context3.abrupt("return", response.json());
45656
+ case 7:
45657
+ case "end":
45658
+ return _context3.stop();
45659
+ }
45660
+ }, _callee3);
45661
+ }));
45662
+ return _getGoodsGroup.apply(this, arguments);
45663
+ }
45664
+ function toSerieGoodsGroupSummary(doc, previous) {
45665
+ var _doc$manualCatalogGro, _doc$manualLivingWorl;
45666
+ return {
45667
+ id: doc.id,
45668
+ effectiveCatalogGroupCode: (_doc$manualCatalogGro = doc.manualCatalogGroupCode) !== null && _doc$manualCatalogGro !== void 0 ? _doc$manualCatalogGro : doc.aiCatalogGroupCode,
45669
+ effectiveLivingWorldCode: (_doc$manualLivingWorl = doc.manualLivingWorldCode) !== null && _doc$manualLivingWorl !== void 0 ? _doc$manualLivingWorl : doc.aiLivingWorldCode,
45670
+ source: doc.manualCatalogGroupCode !== undefined ? 'manual' : 'ai',
45671
+ needsReview: doc.needsReview,
45672
+ runningRunId: previous === null || previous === void 0 ? void 0 : previous.runningRunId
45673
+ };
45674
+ }
45675
+
45676
+ /**
45677
+ * Derives the item-row summary (effective code, source, review flag) from a goods-group document - the same
45678
+ * shape idm-service joins onto an item row under `goodsGroup`. The document has no notion of the item's own
45679
+ * change date, so `changedSinceClassified` cannot be derived from it; it is carried forward from `previous`
45680
+ * instead, and defaults to false when there is no previous summary to carry it from.
45681
+ */
45682
+ function toItemGoodsGroupSummary(doc, previous) {
45683
+ var _doc$manualGoodsGroup, _previous$changedSinc;
45684
+ return {
45685
+ id: doc.id,
45686
+ effectiveCode: (_doc$manualGoodsGroup = doc.manualGoodsGroupCode) !== null && _doc$manualGoodsGroup !== void 0 ? _doc$manualGoodsGroup : doc.aiGoodsGroupCode,
45687
+ source: doc.manualGoodsGroupCode !== undefined ? 'manual' : 'ai',
45688
+ needsReview: doc.needsReview,
45689
+ changedSinceClassified: (_previous$changedSinc = previous === null || previous === void 0 ? void 0 : previous.changedSinceClassified) !== null && _previous$changedSinc !== void 0 ? _previous$changedSinc : false
45690
+ };
45691
+ }
45692
+
45693
+ /**
45694
+ * Sets the manual correction by business key (catalog/serie/optional item) instead of the goods-group
45695
+ * document id, so it also works for a serie or item that has never been classified yet and therefore has
45696
+ * no document (and no id) to address.
45697
+ */
45698
+ function putGoodsGroupManualByKey(_x6, _x7) {
45699
+ return _putGoodsGroupManualByKey.apply(this, arguments);
45700
+ }
45701
+
45702
+ /** The status idm-service reports for a goods-group classification run. */
45703
+ function _putGoodsGroupManualByKey() {
45704
+ _putGoodsGroupManualByKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(ctx, body) {
45705
+ var response;
45706
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
45707
+ while (1) switch (_context4.prev = _context4.next) {
45708
+ case 0:
45709
+ _context4.next = 2;
45710
+ return fetch("".concat(ctx.idmService, "/goodsgroups/manual"), {
45711
+ method: 'PUT',
45712
+ headers: _objectSpread$R({
45713
+ 'Content-Type': 'application/json'
45714
+ }, authHeader(ctx)),
45715
+ body: JSON.stringify(body)
45716
+ });
45717
+ case 2:
45718
+ response = _context4.sent;
45719
+ if (response.ok) {
45720
+ _context4.next = 6;
45721
+ break;
45722
+ }
45723
+ _context4.next = 6;
45724
+ return throwResponseError(response);
45725
+ case 6:
45726
+ return _context4.abrupt("return", response.json());
45727
+ case 7:
45728
+ case "end":
45729
+ return _context4.stop();
45730
+ }
45731
+ }, _callee4);
45732
+ }));
45733
+ return _putGoodsGroupManualByKey.apply(this, arguments);
45734
+ }
45735
+ /** A goods-group classification run for a whole serie, as tracked by idm-service. */
45736
+ /**
45737
+ * Starts a goods-group classification run for a serie. If a run for this serie is already in progress,
45738
+ * idm-service returns that run's id instead of starting a second one - depending on how idm-service signals
45739
+ * it, either as a normal response or as a non-2xx response that still carries the runId in its body. Both
45740
+ * are treated the same here: either way there is now a run for the returned id, ready to poll.
45741
+ */
45742
+ function startGoodsGroupRun(_x8, _x9) {
45743
+ return _startGoodsGroupRun.apply(this, arguments);
45744
+ }
45745
+
45746
+ /** Fetches a classification run's current status. */
45747
+ function _startGoodsGroupRun() {
45748
+ _startGoodsGroupRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(ctx, body) {
45749
+ var _payload;
45750
+ var response, payload;
45751
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
45752
+ while (1) switch (_context5.prev = _context5.next) {
45753
+ case 0:
45754
+ _context5.next = 2;
45755
+ return fetch("".concat(ctx.idmService, "/goodsgroups/runs"), {
45756
+ method: 'POST',
45757
+ headers: _objectSpread$R({
45758
+ 'Content-Type': 'application/json'
45759
+ }, authHeader(ctx)),
45760
+ body: JSON.stringify(body)
45761
+ });
45762
+ case 2:
45763
+ response = _context5.sent;
45764
+ _context5.prev = 3;
45765
+ _context5.next = 6;
45766
+ return response.clone().json();
45767
+ case 6:
45768
+ payload = _context5.sent;
45769
+ _context5.next = 12;
45770
+ break;
45771
+ case 9:
45772
+ _context5.prev = 9;
45773
+ _context5.t0 = _context5["catch"](3);
45774
+ payload = undefined;
45775
+ case 12:
45776
+ if (!((_payload = payload) !== null && _payload !== void 0 && _payload.runId)) {
45777
+ _context5.next = 14;
45778
+ break;
45779
+ }
45780
+ return _context5.abrupt("return", {
45781
+ runId: payload.runId
45782
+ });
45783
+ case 14:
45784
+ if (response.ok) {
45785
+ _context5.next = 17;
45786
+ break;
45787
+ }
45788
+ _context5.next = 17;
45789
+ return throwResponseError(response);
45790
+ case 17:
45791
+ throw new Error('goods-group run response is missing runId');
45792
+ case 18:
45793
+ case "end":
45794
+ return _context5.stop();
45795
+ }
45796
+ }, _callee5, null, [[3, 9]]);
45797
+ }));
45798
+ return _startGoodsGroupRun.apply(this, arguments);
45799
+ }
45800
+ function getGoodsGroupRun(_x10, _x11) {
45801
+ return _getGoodsGroupRun.apply(this, arguments);
45802
+ }
45803
+
45804
+ /** Synchronously classifies a single item and returns its resulting goods-group document. */
45805
+ function _getGoodsGroupRun() {
45806
+ _getGoodsGroupRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(ctx, runId) {
45807
+ var response;
45808
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
45809
+ while (1) switch (_context6.prev = _context6.next) {
45810
+ case 0:
45811
+ _context6.next = 2;
45812
+ return fetch("".concat(ctx.idmService, "/goodsgroups/runs/").concat(runId), {
45813
+ headers: authHeader(ctx)
45814
+ });
45815
+ case 2:
45816
+ response = _context6.sent;
45817
+ if (response.ok) {
45818
+ _context6.next = 6;
45819
+ break;
45820
+ }
45821
+ _context6.next = 6;
45822
+ return throwResponseError(response);
45823
+ case 6:
45824
+ return _context6.abrupt("return", response.json());
45825
+ case 7:
45826
+ case "end":
45827
+ return _context6.stop();
45828
+ }
45829
+ }, _callee6);
45830
+ }));
45831
+ return _getGoodsGroupRun.apply(this, arguments);
45832
+ }
45833
+ function classifyGoodsGroupItem(_x12, _x13) {
45834
+ return _classifyGoodsGroupItem.apply(this, arguments);
45835
+ }
45836
+ function _classifyGoodsGroupItem() {
45837
+ _classifyGoodsGroupItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(ctx, body) {
45838
+ var response;
45839
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
45840
+ while (1) switch (_context7.prev = _context7.next) {
45841
+ case 0:
45842
+ _context7.next = 2;
45843
+ return fetch("".concat(ctx.idmService, "/goodsgroups/classify-item"), {
45844
+ method: 'POST',
45845
+ headers: _objectSpread$R({
45846
+ 'Content-Type': 'application/json'
45847
+ }, authHeader(ctx)),
45848
+ body: JSON.stringify(body)
45849
+ });
45850
+ case 2:
45851
+ response = _context7.sent;
45852
+ if (response.ok) {
45853
+ _context7.next = 6;
45854
+ break;
45855
+ }
45856
+ _context7.next = 6;
45857
+ return throwResponseError(response);
45858
+ case 6:
45859
+ return _context7.abrupt("return", response.json());
45860
+ case 7:
45861
+ case "end":
45862
+ return _context7.stop();
45863
+ }
45864
+ }, _callee7);
45865
+ }));
45866
+ return _classifyGoodsGroupItem.apply(this, arguments);
45867
+ }
45868
+
45869
+ var placeholder = "placeholder-ixWml";
45870
+ var cellContent = "cell-content--LnOb";
45871
+ var label$2 = "label-swbVm";
45872
+ var trigger = "trigger-4ycgM";
45873
+ var css_248z$v = "/* Mirrors the spreadsheet package's withPlaceholder cell styling, so AI-sourced values read as unconfirmed the\n same way a placeholder value does. */\n.placeholder-ixWml {\n color: #cacaca;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n\n/* Cell layout: the value on the left, the classify trigger pinned to the end. The full cell height keeps\n the trigger vertically centered even when the label is empty (otherwise the flex box collapses to the\n icon's own height and sits off-center on the text baseline). */\n.cell-content--LnOb {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.label-swbVm {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.trigger-4ycgM {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n color: #8c8c8c;\n}\n";
45874
+ styleInject(css_248z$v);
45875
+
45876
+ /**
45877
+ * Sparkle "classify with AI" glyph. No sparkle/magic icon exists yet in the ant-design set this repo uses
45878
+ * (checked AiPromptImageTester, the only other AI feature, and the rest of packages/backoffice), so it is
45879
+ * drawn inline instead of adding a new icon dependency.
45880
+ */
45881
+ function SparkleIcon() {
45882
+ return /*#__PURE__*/jsx("svg", {
45883
+ width: "12",
45884
+ height: "12",
45885
+ viewBox: "0 0 24 24",
45886
+ fill: "currentColor",
45887
+ xmlns: "http://www.w3.org/2000/svg",
45888
+ "aria-hidden": "true",
45889
+ children: /*#__PURE__*/jsx("path", {
45890
+ d: "M12 2 L15 9 L22 12 L15 15 L12 22 L9 15 L2 12 L9 9 Z"
45891
+ })
45892
+ });
45893
+ }
45894
+
45895
+ /** The AI classification trigger shown at the end of a goods-group cell - see GoodsGroupCellRenderer. */
45896
+ function ClassifyTrigger(_ref) {
45897
+ var running = _ref.running,
45898
+ onClick = _ref.onClick;
45899
+ var _useTranslation = useTranslation(),
45900
+ t = _useTranslation.t;
45901
+ // Guards the gap between a click and `running` actually turning true: that only happens once the parent's
45902
+ // state update from onClick's request has landed and re-rendered, so two clicks fired faster than that would
45903
+ // otherwise both go through as separate requests.
45904
+ var pendingRef = useRef(false);
45905
+ // Visible counterpart of pendingRef: `running` comes from the grid (isRunning(data)) and depends on the row
45906
+ // repainting, which can lag behind the click - this local state shows the spinner the instant the click is
45907
+ // handled, independent of the grid's repaint timing.
45908
+ var _useState = useState(false),
45909
+ _useState2 = _slicedToArray(_useState, 2),
45910
+ busy = _useState2[0],
45911
+ setBusy = _useState2[1];
45912
+ var isRunning = running || busy;
45913
+ var activate = function activate() {
45914
+ if (running || pendingRef.current) return;
45915
+ pendingRef.current = true;
45916
+ setBusy(true);
45917
+ Promise.resolve(onClick())["finally"](function () {
45918
+ pendingRef.current = false;
45919
+ setBusy(false);
45920
+ });
45921
+ };
45922
+ return /*#__PURE__*/jsx(Tooltip, {
45923
+ title: isRunning ? t('backoffice.idmCatalog.goodsGroups.label.classifying', {
45924
+ defaultValue: 'Classification running'
45925
+ }) : t('backoffice.idmCatalog.goodsGroups.label.classifyWithAi', {
45926
+ defaultValue: 'Classify with AI'
45927
+ }),
45928
+ children: /*#__PURE__*/jsx("span", {
45929
+ className: trigger,
45930
+ role: "button",
45931
+ tabIndex: 0,
45932
+ onClick: function onClick(event) {
45933
+ // Otherwise the click would also start editing the cell underneath it.
45934
+ event.stopPropagation();
45935
+ activate();
45936
+ },
45937
+ onDoubleClick: function onDoubleClick(event) {
45938
+ // ag-grid opens the cell editor on a double-click of the cell - without this, a double-click landing
45939
+ // on the icon would both fire two classify clicks (handled above) and start editing the cell under it.
45940
+ event.stopPropagation();
45941
+ },
45942
+ onKeyDown: function onKeyDown(event) {
45943
+ // role="button" on a <span> needs its own Enter/Space handling - a real <button> would get this for free.
45944
+ if (event.key !== 'Enter' && event.key !== ' ') return;
45945
+ event.preventDefault();
45946
+ event.stopPropagation();
45947
+ activate();
45948
+ },
45949
+ children: isRunning ? /*#__PURE__*/jsx(LoadingOutlined, {
45950
+ spin: true
45951
+ }) : /*#__PURE__*/jsx(SparkleIcon, {})
45952
+ })
45953
+ });
45954
+ }
45955
+
45956
+ /** The vocabulary entries a given field's codes are looked up against. */
45957
+ function vocabularyEntries(field, vocabulary) {
45958
+ var _vocabulary$livingWor, _vocabulary$productGr;
45959
+ if (field === 'catalogGroup') return flattenCatalogGroups(vocabulary);
45960
+ // An incomplete vocabulary (e.g. a response missing one of these lists) must not crash the renderer.
45961
+ if (field === 'livingWorld') return (_vocabulary$livingWor = vocabulary.livingWorlds) !== null && _vocabulary$livingWor !== void 0 ? _vocabulary$livingWor : [];
45962
+ return (_vocabulary$productGr = vocabulary.productGroups) !== null && _vocabulary$productGr !== void 0 ? _vocabulary$productGr : [];
45963
+ }
45964
+
45965
+ /**
45966
+ * Renders a serie's or item's goods-group vocabulary value (catalog group/program, living world, or product
45967
+ * group) as its translated name, plus - on the columns that pass `onClassify` - an AI classify trigger pinned
45968
+ * to the cell's end. Values the AI enrichment run set (`goodsGroup.source === 'ai'`) render greyed out - in the
45969
+ * same style as the spreadsheet package's withPlaceholder cells - to mark them as unconfirmed; manually set
45970
+ * values render as normal text. The vocabulary is passed in via props rather than fetched here, so the cell
45971
+ * shows the raw code until the owner's fetch resolves.
45972
+ */
45973
+ function GoodsGroupCellRenderer(props) {
45974
+ var _data$goodsGroup, _isRunning;
45975
+ var value = props.value,
45976
+ data = props.data,
45977
+ field = props.field,
45978
+ vocabulary = props.vocabulary,
45979
+ onClassify = props.onClassify,
45980
+ isRunning = props.isRunning,
45981
+ node = props.node,
45982
+ api = props.api,
45983
+ column = props.column;
45984
+ var _useTranslation = useTranslation(),
45985
+ i18n = _useTranslation.i18n;
45986
+ useEffect(function () {
45987
+ // isRunning(data) can flip (run start via node.updateData, run settle via the app's refresh()) without this
45988
+ // cell's own value changing, so ag-grid would not otherwise repaint it - both paths always fire 'dataChanged'
45989
+ // on the node, so listen for it and force a repaint (mirrors PriceDisplayCellRenderer's identical fix).
45990
+ var listener = function listener(_event) {
45991
+ api.refreshCells({
45992
+ force: true,
45993
+ suppressFlash: true,
45994
+ rowNodes: [node],
45995
+ columns: [column !== null && column !== void 0 ? column : '']
45996
+ });
45997
+ };
45998
+ node.addEventListener('dataChanged', listener);
45999
+ return function () {
46000
+ node.removeEventListener('dataChanged', listener);
46001
+ };
46002
+ }, []);
46003
+ var entry = value && vocabulary ? vocabularyEntries(field, vocabulary).find(function (candidate) {
46004
+ return candidate.code === value;
46005
+ }) : undefined;
46006
+ var label = value ? vocabularyLabel(entry !== null && entry !== void 0 ? entry : value, i18n.language) : '';
46007
+ var isAiSourced = (data === null || data === void 0 || (_data$goodsGroup = data.goodsGroup) === null || _data$goodsGroup === void 0 ? void 0 : _data$goodsGroup.source) === 'ai';
46008
+ return /*#__PURE__*/jsxs("span", {
46009
+ className: cellContent,
46010
+ children: [/*#__PURE__*/jsx("span", {
46011
+ className: isAiSourced ? placeholder : label$2,
46012
+ children: label
46013
+ }), onClassify && (data === null || data === void 0 ? void 0 : data._id) && /*#__PURE__*/jsx(ClassifyTrigger, {
46014
+ running: (_isRunning = isRunning === null || isRunning === void 0 ? void 0 : isRunning(data)) !== null && _isRunning !== void 0 ? _isRunning : false,
46015
+ onClick: function onClick() {
46016
+ return onClassify(data, node);
46017
+ }
46018
+ })]
46019
+ });
46020
+ }
46021
+
46022
+ /**
46023
+ * Fetches the goods-group vocabulary once per mount (re-fetching only if the service URL or JWT changes), and
46024
+ * returns it - or undefined while loading, or after a failed fetch. TableSeries calls this once and passes the
46025
+ * result down to the Programm/Wohnwelt columns and their shared cell renderer, so the vocabulary is fetched once
46026
+ * instead of once per consumer.
46027
+ */
46028
+ function useGoodsGroupVocabulary(ctx) {
46029
+ var _useState = useState(),
46030
+ _useState2 = _slicedToArray(_useState, 2),
46031
+ vocabulary = _useState2[0],
46032
+ setVocabulary = _useState2[1];
46033
+ useEffect(function () {
46034
+ var cancelled = false;
46035
+ // Otherwise a service/context switch would keep showing the previous service's vocabulary until the new
46036
+ // fetch resolves - stale enum options and labels from the wrong service in the meantime.
46037
+ setVocabulary(undefined);
46038
+ fetch("".concat(ctx.idmService, "/goodsgroups/vocabulary"), {
46039
+ headers: ctx.jwt ? {
46040
+ Authorization: "Bearer ".concat(ctx.jwt)
46041
+ } : undefined
46042
+ }).then(function (response) {
46043
+ if (!response.ok) throw new Error("Failed to load goods group vocabulary (".concat(response.status, ")"));
46044
+ return response.json();
46045
+ }).then(function (result) {
46046
+ if (!cancelled) setVocabulary(result);
46047
+ })["catch"](function () {
46048
+ // Vocabulary failed to load - callers keep working with undefined (raw codes / empty option lists).
46049
+ });
46050
+ return function () {
46051
+ cancelled = true;
46052
+ };
46053
+ }, [ctx.idmService, ctx.jwt]);
46054
+ return vocabulary;
46055
+ }
46056
+
46057
+ 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; }
46058
+ 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; }
46059
+ var ItemsTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
45507
46060
  var organizationId = _ref.organizationId,
45508
46061
  selectedCatalog = _ref.selectedCatalog,
45509
46062
  apiConfig = _ref.apiConfig,
45510
46063
  selectedSerie = _ref.selectedSerie,
45511
- hooks = _ref.hooks;
46064
+ hooks = _ref.hooks,
46065
+ serieRunActive = _ref.serieRunActive,
46066
+ refreshToken = _ref.refreshToken;
46067
+ var root = useStore();
45512
46068
  var _useTranslation = useTranslation(),
45513
46069
  t = _useTranslation.t,
45514
46070
  i18n = _useTranslation.i18n;
46071
+ // Fetched once here and passed down to the Warengruppe column and its cell renderer, mirroring TableSeries.
46072
+ var goodsGroupVocabulary = useGoodsGroupVocabulary({
46073
+ idmService: apiConfig.idmService,
46074
+ jwt: root.dataStore.jwt
46075
+ });
46076
+ // Mirrors serieRunActive so the grid's isRunning cellRendererParams callback (below) can read its current
46077
+ // value without closing over the prop directly - keeps that callback, and in turn the configuration it is
46078
+ // part of, stable across a serie-run status change instead of forcing a full grid reload every time.
46079
+ var serieRunActiveRef = useRef(serieRunActive);
46080
+ serieRunActiveRef.current = serieRunActive;
46081
+ var onClassifyItem = useCallback(/*#__PURE__*/function () {
46082
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, node) {
46083
+ var typeNo, doc, errorMessage;
46084
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
46085
+ while (1) switch (_context.prev = _context.next) {
46086
+ case 0:
46087
+ typeNo = data.typeNo; // The in-flight spinner for this click is entirely ClassifyTrigger's own local state (see its `busy`) -
46088
+ // it shows and clears itself regardless of whether this row's cell ever repaints, so no pending-set/
46089
+ // node.updateData round trip is needed here just to drive it.
46090
+ _context.prev = 1;
46091
+ _context.next = 4;
46092
+ return classifyGoodsGroupItem({
46093
+ idmService: apiConfig.idmService,
46094
+ jwt: root.dataStore.jwt
46095
+ }, {
46096
+ catalogId: selectedCatalog._id,
46097
+ serieId: selectedSerie._id,
46098
+ typeNo: typeNo
46099
+ });
46100
+ case 4:
46101
+ doc = _context.sent;
46102
+ node === null || node === void 0 || node.updateData(_objectSpread$Q(_objectSpread$Q({}, data), {}, {
46103
+ goodsGroup: toItemGoodsGroupSummary(doc, data.goodsGroup)
46104
+ }));
46105
+ _context.next = 12;
46106
+ break;
46107
+ case 8:
46108
+ _context.prev = 8;
46109
+ _context.t0 = _context["catch"](1);
46110
+ errorMessage = _context.t0 instanceof Error ? _context.t0.message : String(_context.t0);
46111
+ message$1.error(t('backoffice.idmCatalog.goodsGroups.message.runError', {
46112
+ message: errorMessage,
46113
+ defaultValue: 'Classification failed: {{message}}'
46114
+ }));
46115
+ case 12:
46116
+ case "end":
46117
+ return _context.stop();
46118
+ }
46119
+ }, _callee, null, [[1, 8]]);
46120
+ }));
46121
+ return function (_x, _x2) {
46122
+ return _ref2.apply(this, arguments);
46123
+ };
46124
+ }(), [apiConfig.idmService, root.dataStore.jwt, selectedCatalog._id, selectedSerie._id, t]);
45515
46125
  var applicationData = useMemo(function () {
45516
46126
  var _selectedCatalog$isoL;
45517
46127
  return {
@@ -45524,6 +46134,7 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45524
46134
  };
45525
46135
  }, [organizationId, selectedCatalog, selectedSerie]);
45526
46136
  var configuration = useMemo(function () {
46137
+ var _goodsGroupVocabulary;
45527
46138
  var itemIdentification = [{
45528
46139
  name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
45529
46140
  value: 'K'
@@ -45534,6 +46145,12 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45534
46145
  name: t('backoffice.idmCatalogEditor.items.label.combination'),
45535
46146
  value: '2'
45536
46147
  }];
46148
+ var goodsGroupEnumData = ((_goodsGroupVocabulary = goodsGroupVocabulary === null || goodsGroupVocabulary === void 0 ? void 0 : goodsGroupVocabulary.productGroups) !== null && _goodsGroupVocabulary !== void 0 ? _goodsGroupVocabulary : []).map(function (entry) {
46149
+ return {
46150
+ name: vocabularyLabel(entry, i18n.language),
46151
+ value: entry.code
46152
+ };
46153
+ });
45537
46154
  return {
45538
46155
  type: 'dotnetSSM',
45539
46156
  apiInterface: {
@@ -45544,6 +46161,103 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45544
46161
  update: apiConfig.idmService + '/catalogs/${catalogId}/series/${selectedSerieId}/items/${_id}',
45545
46162
  bulk: apiConfig.idmService + '/catalogs/${catalogId}/series/${selectedSerieId}/items/bulk'
45546
46163
  },
46164
+ // The Warengruppe column's correction has its own idm-service endpoint (goodsgroups/manual), not the
46165
+ // items bulk/PATCH request the rest of the row goes through - see cellEditToRowUpdate on that column.
46166
+ persistFieldOverrides: {
46167
+ goodsGroup: function () {
46168
+ var _goodsGroup = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
46169
+ var newValue, oldData, goodsGroupCtx, effectiveCode, isReset, doc, _oldData$goodsGroup, id, readBackMessage, errorMessage;
46170
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
46171
+ while (1) switch (_context2.prev = _context2.next) {
46172
+ case 0:
46173
+ newValue = _ref3.newValue, oldData = _ref3.oldData;
46174
+ goodsGroupCtx = {
46175
+ idmService: apiConfig.idmService,
46176
+ jwt: root.dataStore.jwt
46177
+ };
46178
+ effectiveCode = newValue === null || newValue === void 0 ? void 0 : newValue.effectiveCode;
46179
+ isReset = effectiveCode == null;
46180
+ _context2.prev = 4;
46181
+ if (!isReset) {
46182
+ _context2.next = 24;
46183
+ break;
46184
+ }
46185
+ // An item only ever pending-edited in this session (never actually classified) has no document
46186
+ // to clear - nothing was persisted. cellEditToRowUpdate already staged the cleared value on the
46187
+ // row though, so it must be handed back here (instead of void) to overwrite that phantom value.
46188
+ id = oldData === null || oldData === void 0 || (_oldData$goodsGroup = oldData.goodsGroup) === null || _oldData$goodsGroup === void 0 ? void 0 : _oldData$goodsGroup.id;
46189
+ if (id) {
46190
+ _context2.next = 9;
46191
+ break;
46192
+ }
46193
+ return _context2.abrupt("return", {
46194
+ goodsGroup: oldData === null || oldData === void 0 ? void 0 : oldData.goodsGroup
46195
+ });
46196
+ case 9:
46197
+ _context2.next = 11;
46198
+ return deleteGoodsGroupManual(goodsGroupCtx, id);
46199
+ case 11:
46200
+ _context2.prev = 11;
46201
+ _context2.next = 14;
46202
+ return getGoodsGroup(goodsGroupCtx, id);
46203
+ case 14:
46204
+ doc = _context2.sent;
46205
+ _context2.next = 22;
46206
+ break;
46207
+ case 17:
46208
+ _context2.prev = 17;
46209
+ _context2.t0 = _context2["catch"](11);
46210
+ // The reset itself already succeeded server-side (the DELETE above) - a failure to read the
46211
+ // resulting document back must not mark the row as a persistence error. Warn instead and keep
46212
+ // the row on its already-staged value (a `void` return, per FieldRoutingPersistencePort); the
46213
+ // next grid refresh picks up the real one.
46214
+ readBackMessage = _context2.t0 instanceof Error ? _context2.t0.message : String(_context2.t0);
46215
+ message$1.warning(t('backoffice.idmCatalog.goodsGroups.message.resetReadBackWarning', {
46216
+ message: readBackMessage,
46217
+ defaultValue: 'Correction was reset, but the row could not be refreshed: {{message}}'
46218
+ }));
46219
+ return _context2.abrupt("return", undefined);
46220
+ case 22:
46221
+ _context2.next = 27;
46222
+ break;
46223
+ case 24:
46224
+ _context2.next = 26;
46225
+ return putGoodsGroupManualByKey(goodsGroupCtx, {
46226
+ catalogId: selectedCatalog._id,
46227
+ serieId: selectedSerie._id,
46228
+ typeNo: oldData.typeNo,
46229
+ manualGoodsGroupCode: effectiveCode
46230
+ });
46231
+ case 26:
46232
+ doc = _context2.sent;
46233
+ case 27:
46234
+ return _context2.abrupt("return", {
46235
+ goodsGroup: toItemGoodsGroupSummary(doc, oldData === null || oldData === void 0 ? void 0 : oldData.goodsGroup)
46236
+ });
46237
+ case 30:
46238
+ _context2.prev = 30;
46239
+ _context2.t1 = _context2["catch"](4);
46240
+ errorMessage = _context2.t1 instanceof Error ? _context2.t1.message : String(_context2.t1);
46241
+ message$1.error(isReset ? t('backoffice.idmCatalog.goodsGroups.message.resetError', {
46242
+ message: errorMessage,
46243
+ defaultValue: 'Failed to reset the correction: {{message}}'
46244
+ }) : t('backoffice.idmCatalog.goodsGroups.message.saveError', {
46245
+ message: errorMessage,
46246
+ defaultValue: 'Failed to save the correction: {{message}}'
46247
+ }));
46248
+ throw _context2.t1;
46249
+ case 35:
46250
+ case "end":
46251
+ return _context2.stop();
46252
+ }
46253
+ }, _callee2, null, [[4, 30], [11, 17]]);
46254
+ }));
46255
+ function goodsGroup(_x3) {
46256
+ return _goodsGroup.apply(this, arguments);
46257
+ }
46258
+ return goodsGroup;
46259
+ }()
46260
+ },
45547
46261
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
45548
46262
  floatingFilter: true,
45549
46263
  colDef: [{
@@ -45554,6 +46268,68 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45554
46268
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
45555
46269
  field: 'sequenceNo',
45556
46270
  cellDataType: 'number'
46271
+ }, {
46272
+ // Computed column: it has no field of its own (the correction is persisted through
46273
+ // persistFieldOverrides.goodsGroup, not the regular bulk/PATCH request), so it requests the
46274
+ // goodsGroup join via additionalFields and translates edits via cellEditToRowUpdate instead.
46275
+ colId: 'goodsGroupCode',
46276
+ additionalFields: ['goodsGroup'],
46277
+ headerName: 'backoffice.idmCatalogEditor.items.label.goodsGroupCode',
46278
+ // An add-pending row has no _id (business key) yet - its edit would not be routed by the
46279
+ // FieldRoutingPersistencePort and would be dropped from the create payload, so block it until saved.
46280
+ editable: function editable(_ref4) {
46281
+ var data = _ref4.data;
46282
+ return !!(data !== null && data !== void 0 && data._id);
46283
+ },
46284
+ sortable: false,
46285
+ filter: false,
46286
+ excludeFromExcelExport: true,
46287
+ cellDataType: 'enum',
46288
+ customParams: {
46289
+ enumData: goodsGroupEnumData,
46290
+ displayLabelTemplate: '${name}'
46291
+ },
46292
+ valueGetter: function valueGetter(_ref5) {
46293
+ var _data$goodsGroup;
46294
+ var data = _ref5.data;
46295
+ return data === null || data === void 0 || (_data$goodsGroup = data.goodsGroup) === null || _data$goodsGroup === void 0 ? void 0 : _data$goodsGroup.effectiveCode;
46296
+ },
46297
+ cellRenderer: GoodsGroupCellRenderer,
46298
+ cellRendererParams: {
46299
+ field: 'goodsGroup',
46300
+ vocabulary: goodsGroupVocabulary,
46301
+ onClassify: onClassifyItem,
46302
+ isRunning: function isRunning() {
46303
+ return !!serieRunActiveRef.current;
46304
+ }
46305
+ },
46306
+ cellEditToRowUpdate: function cellEditToRowUpdate(_ref6) {
46307
+ var newValue = _ref6.newValue,
46308
+ data = _ref6.data;
46309
+ if (newValue !== undefined && !goodsGroupEnumData.some(function (entry) {
46310
+ return entry.value === newValue;
46311
+ })) return undefined;
46312
+ // Nothing to clear - the cell was already empty, so this edit is a no-op rather than a queued change.
46313
+ if (newValue === undefined && !(data !== null && data !== void 0 && data.goodsGroup)) return undefined;
46314
+ if (newValue === undefined) {
46315
+ return {
46316
+ goodsGroup: _objectSpread$Q(_objectSpread$Q({}, data.goodsGroup), {}, {
46317
+ effectiveCode: null
46318
+ })
46319
+ };
46320
+ }
46321
+ // An item that was never classified has no goodsGroup document yet - build a minimal one instead of
46322
+ // spreading a document that does not exist.
46323
+ return {
46324
+ goodsGroup: data !== null && data !== void 0 && data.goodsGroup ? _objectSpread$Q(_objectSpread$Q({}, data.goodsGroup), {}, {
46325
+ effectiveCode: newValue,
46326
+ source: 'manual'
46327
+ }) : {
46328
+ effectiveCode: newValue,
46329
+ source: 'manual'
46330
+ }
46331
+ };
46332
+ }
45557
46333
  }, {
45558
46334
  headerName: 'backoffice.idmCatalog.common.label.texts',
45559
46335
  children: [createTranslatedColumnConfig('shortText', 'backoffice.idmCatalog.general.label.shortText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true, undefined, undefined, undefined, true,
@@ -45896,9 +46672,9 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45896
46672
  },
45897
46673
  additionalFields: ['itemRefTypeNoDisplayText'],
45898
46674
  isDictionary: true,
45899
- editable: function editable(_ref2) {
45900
- var data = _ref2.data,
45901
- context = _ref2.context;
46675
+ editable: function editable(_ref7) {
46676
+ var data = _ref7.data,
46677
+ context = _ref7.context;
45902
46678
  return (context === null || context === void 0 ? void 0 : context.isPasting) || !!data.itemRefSerieId;
45903
46679
  }
45904
46680
  }, {
@@ -45933,19 +46709,174 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
45933
46709
  cellDataType: 'objectId'
45934
46710
  }]
45935
46711
  };
45936
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language]);
46712
+ // serieRunActive is intentionally not a dep: isRunning above reads it from serieRunActiveRef instead, so a
46713
+ // serie-run status change doesn't force a full grid reload. The per-click classify spinner does not go
46714
+ // through configuration/isRunning at all - see ClassifyTrigger's own busy state.
46715
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language, goodsGroupVocabulary, onClassifyItem]);
45937
46716
  return /*#__PURE__*/jsx(Spreadsheet, {
45938
- ref: ref,
46717
+ ref: ref
46718
+ // refreshToken is appended so a settled serie run (which can reclassify every item) forces a remount
46719
+ // and refetch instead of leaving stale rows in place.
46720
+ ,
46721
+
45939
46722
  gridId: 'crud-grid_items',
45940
46723
  applicationData: applicationData,
45941
46724
  configuration: configuration,
45942
46725
  hooks: hooks
45943
- }, selectedSerie._id);
46726
+ }, "".concat(selectedSerie._id, "_").concat(refreshToken !== null && refreshToken !== void 0 ? refreshToken : ''));
45944
46727
  });
45945
- Items$1.displayName = 'Items';
46728
+ ItemsTable.displayName = 'Items';
46729
+
46730
+ // Wrapped in observer because it reads root.dataStore.jwt for the goods-group vocabulary fetch, mirroring TableSeries.
46731
+ var Items$1 = observer(ItemsTable);
46732
+
46733
+ var POLL_INTERVAL_MS = 2000;
46734
+
46735
+ /** The result a run settles with - 'running' is excluded, since that is what keeps it being polled. */
46736
+
46737
+ /**
46738
+ * Starts and polls goods-group classification runs - several at once, one per serie. Each tracked run is
46739
+ * polled every 2s until it leaves the 'running' status, then onSettled fires once and polling for that run
46740
+ * stops; all intervals are cleared on unmount. `ctx` and `onSettled` are read from refs kept current on every
46741
+ * render, so `start` and `resume` stay referentially stable and never see stale values.
46742
+ */
46743
+ function useGoodsGroupRun(ctx, onSettled) {
46744
+ var ctxRef = useRef(ctx);
46745
+ ctxRef.current = ctx;
46746
+ var onSettledRef = useRef(onSettled);
46747
+ onSettledRef.current = onSettled;
46748
+
46749
+ // One interval per in-flight run, keyed by runId - so a resume() for a run that start() (or an earlier
46750
+ // resume()) already began polling this session is a no-op instead of a second, redundant poll.
46751
+ var pollsRef = useRef(new Map());
46752
+
46753
+ // RunIds that have already settled - a resume() (e.g. from onRowDataLoaded) can arrive for one whose row data
46754
+ // still shows it running (a slower, parallel fetch started before the settle) and would otherwise start a
46755
+ // pointless poll. RunIds are unique per run, so this set is only ever added to and never needs clearing.
46756
+ var settledRunIdsRef = useRef(new Set());
46757
+
46758
+ // RunIds with a getGoodsGroupRun fetch currently in flight - guards against a tick firing again (every
46759
+ // POLL_INTERVAL_MS) while the previous tick's fetch for the same run is still outstanding, which could
46760
+ // otherwise resolve after the run already settled and fire onSettled a second time for it.
46761
+ var inFlightRunIdsRef = useRef(new Set());
46762
+ useEffect(function () {
46763
+ return function () {
46764
+ pollsRef.current.forEach(function (interval) {
46765
+ return clearInterval(interval);
46766
+ });
46767
+ pollsRef.current.clear();
46768
+ };
46769
+ }, []);
46770
+ var poll = useCallback(function (runId) {
46771
+ if (pollsRef.current.has(runId) || settledRunIdsRef.current.has(runId)) return;
46772
+ var tick = /*#__PURE__*/function () {
46773
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
46774
+ var settle, run;
46775
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
46776
+ while (1) switch (_context.prev = _context.next) {
46777
+ case 0:
46778
+ if (!inFlightRunIdsRef.current.has(runId)) {
46779
+ _context.next = 2;
46780
+ break;
46781
+ }
46782
+ return _context.abrupt("return");
46783
+ case 2:
46784
+ inFlightRunIdsRef.current.add(runId);
46785
+ settle = function settle(result) {
46786
+ // The run may have settled (or stopped being tracked) while this tick's fetch was in flight -
46787
+ // guard against firing onSettled a second time for it.
46788
+ if (!pollsRef.current.has(runId) || settledRunIdsRef.current.has(runId)) return;
46789
+ clearInterval(pollsRef.current.get(runId));
46790
+ pollsRef.current["delete"](runId);
46791
+ settledRunIdsRef.current.add(runId);
46792
+ onSettledRef.current(runId, result);
46793
+ };
46794
+ _context.prev = 4;
46795
+ _context.next = 7;
46796
+ return getGoodsGroupRun(ctxRef.current, runId);
46797
+ case 7:
46798
+ run = _context.sent;
46799
+ if (run.status !== 'running') settle({
46800
+ status: run.status,
46801
+ error: run.error
46802
+ });
46803
+ _context.next = 14;
46804
+ break;
46805
+ case 11:
46806
+ _context.prev = 11;
46807
+ _context.t0 = _context["catch"](4);
46808
+ settle({
46809
+ status: 'error',
46810
+ error: _context.t0 instanceof Error ? _context.t0.message : String(_context.t0)
46811
+ });
46812
+ case 14:
46813
+ _context.prev = 14;
46814
+ inFlightRunIdsRef.current["delete"](runId);
46815
+ return _context.finish(14);
46816
+ case 17:
46817
+ case "end":
46818
+ return _context.stop();
46819
+ }
46820
+ }, _callee, null, [[4, 11, 14, 17]]);
46821
+ }));
46822
+ return function tick() {
46823
+ return _ref.apply(this, arguments);
46824
+ };
46825
+ }();
46826
+ pollsRef.current.set(runId, setInterval(tick, POLL_INTERVAL_MS));
46827
+ }, []);
46828
+
46829
+ /** Starts a new run for the serie (or picks up its already-running one) and starts polling it. */
46830
+ var start = useCallback(/*#__PURE__*/function () {
46831
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(params) {
46832
+ var _yield$startGoodsGrou, runId;
46833
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
46834
+ while (1) switch (_context2.prev = _context2.next) {
46835
+ case 0:
46836
+ _context2.next = 2;
46837
+ return startGoodsGroupRun(ctxRef.current, params);
46838
+ case 2:
46839
+ _yield$startGoodsGrou = _context2.sent;
46840
+ runId = _yield$startGoodsGrou.runId;
46841
+ poll(runId);
46842
+ return _context2.abrupt("return", runId);
46843
+ case 6:
46844
+ case "end":
46845
+ return _context2.stop();
46846
+ }
46847
+ }, _callee2);
46848
+ }));
46849
+ return function (_x) {
46850
+ return _ref2.apply(this, arguments);
46851
+ };
46852
+ }(), [poll]);
46853
+
46854
+ /** Resumes polling a run that is already known to be in progress (e.g. loaded from row data). */
46855
+ var resume = useCallback(function (runId) {
46856
+ poll(runId);
46857
+ }, [poll]);
46858
+
46859
+ /** Whether a run has already settled - lets a caller (e.g. onRowDataLoaded) skip stale row data for it. */
46860
+ var isSettled = useCallback(function (runId) {
46861
+ return settledRunIdsRef.current.has(runId);
46862
+ }, []);
46863
+
46864
+ // start/resume/isSettled are already referentially stable (see above), but returning a fresh object on every
46865
+ // render would still hand callers (e.g. onClassifySerie's useCallback deps) a new reference each time - memoize
46866
+ // it so it stays stable too, and doesn't chain into unnecessary recomputation further up.
46867
+ return useMemo(function () {
46868
+ return {
46869
+ start: start,
46870
+ resume: resume,
46871
+ isSettled: isSettled
46872
+ };
46873
+ }, [start, resume, isSettled]);
46874
+ }
45946
46875
 
46876
+ 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; }
46877
+ 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; }
45947
46878
  var TableSeries = observer(function () {
45948
- var _selectedCatalog$majo;
46879
+ var _selectedSerie$goodsG;
45949
46880
  var root = useStore();
45950
46881
  var _useDivaCore = useDivaCore(),
45951
46882
  onEvent = _useDivaCore.actions.onEvent;
@@ -45966,32 +46897,136 @@ var TableSeries = observer(function () {
45966
46897
  _React$useState2 = _slicedToArray(_React$useState, 2),
45967
46898
  selectedSerie = _React$useState2[0],
45968
46899
  setSelectedSerie = _React$useState2[1];
45969
- var _useState = useState(undefined),
46900
+ // Fetched once here and passed down to the Programm/Wohnwelt columns and their shared cell renderer, so they
46901
+ // don't each fetch it independently.
46902
+ var goodsGroupVocabulary = useGoodsGroupVocabulary({
46903
+ idmService: apiConfig.idmService,
46904
+ jwt: root.dataStore.jwt
46905
+ });
46906
+ var gridRef = useRef(null);
46907
+ // Series currently running a classification, keyed by their run id - a serie's own row already carries its
46908
+ // runningRunId once the server reflects it, but this fills the gap between starting/resuming a run and that
46909
+ // becoming visible in row data, and is what drives serieRunActive for the embedded Items panel below.
46910
+ var _useState = useState(new Map()),
45970
46911
  _useState2 = _slicedToArray(_useState, 2),
45971
- catalogMajorFetched = _useState2[0],
45972
- setCatalogMajorFetched = _useState2[1];
45973
- useEffect(function () {
45974
- if (!catalogId || (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) != null) {
45975
- if ((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) == null) setCatalogMajorFetched(undefined);
45976
- return;
46912
+ runningRuns = _useState2[0],
46913
+ setRunningRuns = _useState2[1];
46914
+ var runningSerieIds = useMemo(function () {
46915
+ return new Set(runningRuns.values());
46916
+ }, [runningRuns]);
46917
+ // Mirrors runningSerieIds so the grid's isRunning cellRendererParams callback (below) can read the current
46918
+ // set without closing over the state value itself - keeps that callback, and in turn the configuration it is
46919
+ // part of, stable across run start/settle instead of forcing a full grid reload on every run state change.
46920
+ var runningSerieIdsRef = useRef(runningSerieIds);
46921
+ runningSerieIdsRef.current = runningSerieIds;
46922
+ // Mirrors selectedSerie for the same reason - onCellSelectionChanged (below) needs the latest selection to
46923
+ // compare against, but reading it from state would make the hooks object (and its onCellSelectionChanged
46924
+ // closure) change identity on every selection.
46925
+ var selectedSerieRef = useRef(selectedSerie);
46926
+ selectedSerieRef.current = selectedSerie;
46927
+ // Bumped whenever a serie run settles, so the embedded Items panel (which has no other way to know its
46928
+ // items just got reclassified) remounts and refetches - see Items' `refreshToken` prop.
46929
+ var _useState3 = useState(0),
46930
+ _useState4 = _slicedToArray(_useState3, 2),
46931
+ panelRefreshToken = _useState4[0],
46932
+ setPanelRefreshToken = _useState4[1];
46933
+ var handleRunSettled = useCallback(function (runId, result) {
46934
+ var _gridRef$current;
46935
+ setRunningRuns(function (prev) {
46936
+ if (!prev.has(runId)) return prev;
46937
+ var next = new Map(prev);
46938
+ next["delete"](runId);
46939
+ return next;
46940
+ });
46941
+ if (result.status === 'error') {
46942
+ message$1.error(t('backoffice.idmCatalog.goodsGroups.message.runError', {
46943
+ message: result.error,
46944
+ defaultValue: 'Classification failed: {{message}}'
46945
+ }));
46946
+ } else if (result.status === 'stopped') {
46947
+ message$1.error(t('backoffice.idmCatalog.goodsGroups.message.runStopped', {
46948
+ defaultValue: 'Classification stopped'
46949
+ }));
45977
46950
  }
45978
- setCatalogMajorFetched(undefined);
45979
- var cancelled = false;
45980
- var jwt = root.dataStore.jwt;
45981
- if (!jwt) return;
45982
- fetch("".concat(apiConfig.idmService, "/catalogs/").concat(catalogId, "?fields=major"), {
45983
- headers: {
45984
- Authorization: "Bearer ".concat(jwt)
45985
- }
45986
- }).then(function (res) {
45987
- return res.ok ? res.json() : null;
45988
- }).then(function (data) {
45989
- if (!cancelled && (data === null || data === void 0 ? void 0 : data.major) != null) setCatalogMajorFetched(data.major);
45990
- })["catch"](function () {});
45991
- return function () {
45992
- cancelled = true;
46951
+ (_gridRef$current = gridRef.current) === null || _gridRef$current === void 0 || _gridRef$current.refresh();
46952
+ setPanelRefreshToken(function (token) {
46953
+ return token + 1;
46954
+ });
46955
+ }, [t]);
46956
+ var goodsGroupRun = useGoodsGroupRun({
46957
+ idmService: apiConfig.idmService,
46958
+ jwt: root.dataStore.jwt
46959
+ }, handleRunSettled);
46960
+ var onClassifySerie = useCallback(/*#__PURE__*/function () {
46961
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, node) {
46962
+ var serieId, _data$goodsGroup, runId, errorMessage;
46963
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
46964
+ while (1) switch (_context.prev = _context.next) {
46965
+ case 0:
46966
+ serieId = data._id; // The classify trigger only fires for a row that already has an _id (see GoodsGroupCellRenderer),
46967
+ // so this is unreachable in practice - the check just satisfies the type for the start() call below.
46968
+ if (serieId) {
46969
+ _context.next = 3;
46970
+ break;
46971
+ }
46972
+ return _context.abrupt("return");
46973
+ case 3:
46974
+ _context.prev = 3;
46975
+ _context.next = 6;
46976
+ return goodsGroupRun.start({
46977
+ catalogId: catalogId,
46978
+ serieId: serieId
46979
+ });
46980
+ case 6:
46981
+ runId = _context.sent;
46982
+ setRunningRuns(function (prev) {
46983
+ return new Map(prev).set(runId, serieId);
46984
+ });
46985
+ node === null || node === void 0 || node.updateData(_objectSpread$P(_objectSpread$P({}, data), {}, {
46986
+ // Optimistic partial update - only runningRunId is known yet; a full document follows once the run
46987
+ // settles (see handleRunSettled -> gridRef.refresh()) and overwrites this placeholder with real values.
46988
+ goodsGroup: _objectSpread$P(_objectSpread$P({}, (_data$goodsGroup = data.goodsGroup) !== null && _data$goodsGroup !== void 0 ? _data$goodsGroup : {}), {}, {
46989
+ runningRunId: runId
46990
+ })
46991
+ }));
46992
+ _context.next = 15;
46993
+ break;
46994
+ case 11:
46995
+ _context.prev = 11;
46996
+ _context.t0 = _context["catch"](3);
46997
+ errorMessage = _context.t0 instanceof Error ? _context.t0.message : String(_context.t0);
46998
+ message$1.error(t('backoffice.idmCatalog.goodsGroups.message.runError', {
46999
+ message: errorMessage,
47000
+ defaultValue: 'Classification failed: {{message}}'
47001
+ }));
47002
+ case 15:
47003
+ case "end":
47004
+ return _context.stop();
47005
+ }
47006
+ }, _callee, null, [[3, 11]]);
47007
+ }));
47008
+ return function (_x, _x2) {
47009
+ return _ref.apply(this, arguments);
45993
47010
  };
45994
- }, [catalogId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, apiConfig.idmService]);
47011
+ }(), [goodsGroupRun, catalogId, t]);
47012
+
47013
+ // Resumes tracking runs a previous session already started, so their eventual result still shows up
47014
+ // (error/stopped toast, grid + panel refresh) instead of silently going nowhere after a reload.
47015
+ var onRowDataLoaded = useCallback(function (rows) {
47016
+ rows.forEach(function (row) {
47017
+ var _row$goodsGroup;
47018
+ var runId = (_row$goodsGroup = row.goodsGroup) === null || _row$goodsGroup === void 0 ? void 0 : _row$goodsGroup.runningRunId;
47019
+ var rowId = row._id;
47020
+ // A slower, parallel fetch can carry a runningRunId that already settled elsewhere in this session -
47021
+ // skip it, or it would be marked running again with no poll left to clear it. A row with a
47022
+ // runningRunId is always persisted, so it always has an _id too - the check just satisfies the type.
47023
+ if (!runId || !rowId || goodsGroupRun.isSettled(runId)) return;
47024
+ setRunningRuns(function (prev) {
47025
+ return prev.has(runId) ? prev : new Map(prev).set(runId, rowId);
47026
+ });
47027
+ goodsGroupRun.resume(runId);
47028
+ });
47029
+ }, [goodsGroupRun]);
45995
47030
  useTools({
45996
47031
  mainInformationWindowCodex: 'IDM_SERIES_TABLE_INFO',
45997
47032
  catalog: selectedCatalog,
@@ -46007,7 +47042,9 @@ var TableSeries = observer(function () {
46007
47042
  organizationId: organizationId,
46008
47043
  selectedCatalog: selectedCatalog,
46009
47044
  selectedSerie: selectedSerie,
46010
- apiConfig: apiConfig
47045
+ apiConfig: apiConfig,
47046
+ serieRunActive: runningSerieIds.has(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) || !!(selectedSerie !== null && selectedSerie !== void 0 && (_selectedSerie$goodsG = selectedSerie.goodsGroup) !== null && _selectedSerie$goodsG !== void 0 && _selectedSerie$goodsG.runningRunId),
47047
+ refreshToken: panelRefreshToken
46011
47048
  },
46012
47049
  condition: function condition() {
46013
47050
  return (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id) !== undefined;
@@ -46022,16 +47059,17 @@ var TableSeries = observer(function () {
46022
47059
  defaultLanguage: (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage) || (selectedCatalog === null || selectedCatalog === void 0 || (_selectedCatalog$isoL = selectedCatalog.isoLanguageIds) === null || _selectedCatalog$isoL === void 0 ? void 0 : _selectedCatalog$isoL[0]) || 'DE'
46023
47060
  };
46024
47061
  }, [catalogId, organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.fallBackLanguage, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
46025
- var catalogMajor = (_selectedCatalog$majo = selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) !== null && _selectedCatalog$majo !== void 0 ? _selectedCatalog$majo : catalogMajorFetched;
47062
+ var catalogMajor = selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major;
46026
47063
  var hooks = useMemo(function () {
46027
47064
  return {
46028
47065
  onCellSelectionChanged: function onCellSelectionChanged(event) {
46029
47066
  if (event.nodes.length == 1) {
46030
- var _event$nodes$;
46031
- var _selectedSerie = (_event$nodes$ = event.nodes[0]) === null || _event$nodes$ === void 0 ? void 0 : _event$nodes$.data;
46032
- if (_selectedSerie !== null && _selectedSerie !== void 0 && _selectedSerie._id) {
46033
- setGlobalSelectedSerie(_selectedSerie);
46034
- setSelectedSerie(_selectedSerie);
47067
+ var _event$nodes$, _selectedSerieRef$cur;
47068
+ var newSelectedSerie = (_event$nodes$ = event.nodes[0]) === null || _event$nodes$ === void 0 ? void 0 : _event$nodes$.data;
47069
+ if (((_selectedSerieRef$cur = selectedSerieRef.current) === null || _selectedSerieRef$cur === void 0 ? void 0 : _selectedSerieRef$cur._id) == (newSelectedSerie === null || newSelectedSerie === void 0 ? void 0 : newSelectedSerie._id)) return;
47070
+ if (newSelectedSerie !== null && newSelectedSerie !== void 0 && newSelectedSerie._id) {
47071
+ setGlobalSelectedSerie(newSelectedSerie);
47072
+ setSelectedSerie(newSelectedSerie);
46035
47073
  } else {
46036
47074
  setSelectedSerie(null);
46037
47075
  }
@@ -46057,9 +47095,10 @@ var TableSeries = observer(function () {
46057
47095
  type: 'series'
46058
47096
  }
46059
47097
  });
46060
- }
47098
+ },
47099
+ onRowDataLoaded: onRowDataLoaded
46061
47100
  };
46062
- }, [setGlobalSelectedSerie, setSelectedSerie, resetSeriesSelector, catalogMajor]);
47101
+ }, [setGlobalSelectedSerie, setSelectedSerie, resetSeriesSelector, catalogMajor, onRowDataLoaded]);
46063
47102
  var configuration = useMemo(function () {
46064
47103
  var purchaseRetailId = [{
46065
47104
  name: t('backoffice.idmCatalog.series.label.purchaseRetail.p0'),
@@ -46074,6 +47113,12 @@ var TableSeries = observer(function () {
46074
47113
  name: t('backoffice.idmCatalog.series.label.purchaseRetail.p3'),
46075
47114
  value: 3
46076
47115
  }];
47116
+ var catalogGroupEnumData = flattenCatalogGroups(goodsGroupVocabulary).map(function (entry) {
47117
+ return {
47118
+ name: vocabularyLabel(entry, i18n.language),
47119
+ value: entry.code
47120
+ };
47121
+ });
46077
47122
  return {
46078
47123
  type: 'dotnetSSM',
46079
47124
  apiInterface: {
@@ -46084,6 +47129,110 @@ var TableSeries = observer(function () {
46084
47129
  update: apiConfig.idmService + '/catalogs/${catalogId}/series/${_id}',
46085
47130
  bulk: apiConfig.idmService + '/catalogs/${catalogId}/series/bulk'
46086
47131
  },
47132
+ // The Programm column's correction has its own idm-service endpoint (goodsgroups/manual), not the
47133
+ // series bulk/PATCH request the rest of the row goes through - see cellEditToRowUpdate on that column.
47134
+ persistFieldOverrides: {
47135
+ goodsGroup: function () {
47136
+ var _goodsGroup = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
47137
+ var newValue, oldData, goodsGroupCtx, effectiveCatalogGroupCode, isReset, doc, _oldData$goodsGroup, id, readBackMessage, errorMessage;
47138
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
47139
+ while (1) switch (_context2.prev = _context2.next) {
47140
+ case 0:
47141
+ newValue = _ref2.newValue, oldData = _ref2.oldData;
47142
+ goodsGroupCtx = {
47143
+ idmService: apiConfig.idmService,
47144
+ jwt: root.dataStore.jwt
47145
+ };
47146
+ effectiveCatalogGroupCode = newValue === null || newValue === void 0 ? void 0 : newValue.effectiveCatalogGroupCode;
47147
+ isReset = effectiveCatalogGroupCode == null;
47148
+ _context2.prev = 4;
47149
+ if (!isReset) {
47150
+ _context2.next = 24;
47151
+ break;
47152
+ }
47153
+ // A serie only ever pending-edited in this session (never actually classified) has no document
47154
+ // to clear - nothing was persisted. cellEditToRowUpdate already staged the cleared value on the
47155
+ // row though, so it must be handed back here (instead of void) to overwrite that phantom value.
47156
+ id = oldData === null || oldData === void 0 || (_oldData$goodsGroup = oldData.goodsGroup) === null || _oldData$goodsGroup === void 0 ? void 0 : _oldData$goodsGroup.id;
47157
+ if (id) {
47158
+ _context2.next = 9;
47159
+ break;
47160
+ }
47161
+ return _context2.abrupt("return", {
47162
+ goodsGroup: oldData === null || oldData === void 0 ? void 0 : oldData.goodsGroup
47163
+ });
47164
+ case 9:
47165
+ _context2.next = 11;
47166
+ return deleteGoodsGroupManual(goodsGroupCtx, id);
47167
+ case 11:
47168
+ _context2.prev = 11;
47169
+ _context2.next = 14;
47170
+ return getGoodsGroup(goodsGroupCtx, id);
47171
+ case 14:
47172
+ doc = _context2.sent;
47173
+ _context2.next = 22;
47174
+ break;
47175
+ case 17:
47176
+ _context2.prev = 17;
47177
+ _context2.t0 = _context2["catch"](11);
47178
+ // The reset itself already succeeded server-side (the DELETE above) - a failure to read the
47179
+ // resulting document back must not mark the row as a persistence error. Warn instead and keep
47180
+ // the row on its already-staged value (a `void` return, per FieldRoutingPersistencePort); the
47181
+ // next grid refresh picks up the real one.
47182
+ readBackMessage = _context2.t0 instanceof Error ? _context2.t0.message : String(_context2.t0);
47183
+ message$1.warning(t('backoffice.idmCatalog.goodsGroups.message.resetReadBackWarning', {
47184
+ message: readBackMessage,
47185
+ defaultValue: 'Correction was reset, but the row could not be refreshed: {{message}}'
47186
+ }));
47187
+ return _context2.abrupt("return", undefined);
47188
+ case 22:
47189
+ _context2.next = 29;
47190
+ break;
47191
+ case 24:
47192
+ if (oldData._id) {
47193
+ _context2.next = 26;
47194
+ break;
47195
+ }
47196
+ return _context2.abrupt("return", {
47197
+ goodsGroup: oldData === null || oldData === void 0 ? void 0 : oldData.goodsGroup
47198
+ });
47199
+ case 26:
47200
+ _context2.next = 28;
47201
+ return putGoodsGroupManualByKey(goodsGroupCtx, {
47202
+ catalogId: catalogId,
47203
+ serieId: oldData._id,
47204
+ manualCatalogGroupCode: effectiveCatalogGroupCode
47205
+ });
47206
+ case 28:
47207
+ doc = _context2.sent;
47208
+ case 29:
47209
+ return _context2.abrupt("return", {
47210
+ goodsGroup: toSerieGoodsGroupSummary(doc, oldData === null || oldData === void 0 ? void 0 : oldData.goodsGroup)
47211
+ });
47212
+ case 32:
47213
+ _context2.prev = 32;
47214
+ _context2.t1 = _context2["catch"](4);
47215
+ errorMessage = _context2.t1 instanceof Error ? _context2.t1.message : String(_context2.t1);
47216
+ message$1.error(isReset ? t('backoffice.idmCatalog.goodsGroups.message.resetError', {
47217
+ message: errorMessage,
47218
+ defaultValue: 'Failed to reset the correction: {{message}}'
47219
+ }) : t('backoffice.idmCatalog.goodsGroups.message.saveError', {
47220
+ message: errorMessage,
47221
+ defaultValue: 'Failed to save the correction: {{message}}'
47222
+ }));
47223
+ throw _context2.t1;
47224
+ case 37:
47225
+ case "end":
47226
+ return _context2.stop();
47227
+ }
47228
+ }, _callee2, null, [[4, 32], [11, 17]]);
47229
+ }));
47230
+ function goodsGroup(_x3) {
47231
+ return _goodsGroup.apply(this, arguments);
47232
+ }
47233
+ return goodsGroup;
47234
+ }()
47235
+ },
46087
47236
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
46088
47237
  colDef: [].concat(_toConsumableArray(catalogMajor === 4 ? [{
46089
47238
  field: 'serieNo',
@@ -46112,6 +47261,88 @@ var TableSeries = observer(function () {
46112
47261
  enumData: purchaseRetailId,
46113
47262
  displayLabelTemplate: '${name} (${value})'
46114
47263
  }
47264
+ }, {
47265
+ // Computed column: it has no field of its own (the correction is persisted through
47266
+ // persistFieldOverrides.goodsGroup, not the regular bulk/PATCH request), so it requests the
47267
+ // goodsGroup join via additionalFields and translates edits via cellEditToRowUpdate instead.
47268
+ colId: 'catalogGroupCode',
47269
+ additionalFields: ['goodsGroup'],
47270
+ headerName: 'backoffice.idmCatalog.series.label.catalogGroupCode',
47271
+ // An add-pending row has no _id (business key) yet - its edit would not be routed by the
47272
+ // FieldRoutingPersistencePort and would be dropped from the create payload, so block it until saved.
47273
+ editable: function editable(_ref3) {
47274
+ var data = _ref3.data;
47275
+ return !!(data !== null && data !== void 0 && data._id);
47276
+ },
47277
+ sortable: false,
47278
+ filter: false,
47279
+ excludeFromExcelExport: true,
47280
+ cellDataType: 'enum',
47281
+ customParams: {
47282
+ enumData: catalogGroupEnumData,
47283
+ displayLabelTemplate: '${name}'
47284
+ },
47285
+ valueGetter: function valueGetter(_ref4) {
47286
+ var _data$goodsGroup2;
47287
+ var data = _ref4.data;
47288
+ return data === null || data === void 0 || (_data$goodsGroup2 = data.goodsGroup) === null || _data$goodsGroup2 === void 0 ? void 0 : _data$goodsGroup2.effectiveCatalogGroupCode;
47289
+ },
47290
+ cellRenderer: GoodsGroupCellRenderer,
47291
+ cellRendererParams: {
47292
+ field: 'catalogGroup',
47293
+ vocabulary: goodsGroupVocabulary,
47294
+ onClassify: onClassifySerie,
47295
+ isRunning: function isRunning(data) {
47296
+ var _data$goodsGroup3;
47297
+ return !!(data !== null && data !== void 0 && (_data$goodsGroup3 = data.goodsGroup) !== null && _data$goodsGroup3 !== void 0 && _data$goodsGroup3.runningRunId) || !!(data !== null && data !== void 0 && data._id) && runningSerieIdsRef.current.has(data._id);
47298
+ }
47299
+ },
47300
+ cellEditToRowUpdate: function cellEditToRowUpdate(_ref5) {
47301
+ var newValue = _ref5.newValue,
47302
+ data = _ref5.data;
47303
+ if (newValue !== undefined && !flattenCatalogGroups(goodsGroupVocabulary).some(function (entry) {
47304
+ return entry.code === newValue;
47305
+ })) return undefined;
47306
+ // Nothing to clear - the cell was already empty, so this edit is a no-op rather than a queued change.
47307
+ if (newValue === undefined && !(data !== null && data !== void 0 && data.goodsGroup)) return undefined;
47308
+ if (newValue === undefined) {
47309
+ return {
47310
+ goodsGroup: _objectSpread$P(_objectSpread$P({}, data.goodsGroup), {}, {
47311
+ effectiveCatalogGroupCode: null
47312
+ })
47313
+ };
47314
+ }
47315
+ // A serie that was never classified has no goodsGroup document yet - build a minimal one instead of
47316
+ // spreading a document that does not exist.
47317
+ return {
47318
+ goodsGroup: data !== null && data !== void 0 && data.goodsGroup ? _objectSpread$P(_objectSpread$P({}, data.goodsGroup), {}, {
47319
+ effectiveCatalogGroupCode: newValue,
47320
+ source: 'manual'
47321
+ }) : {
47322
+ effectiveCatalogGroupCode: newValue,
47323
+ source: 'manual'
47324
+ }
47325
+ };
47326
+ }
47327
+ }, {
47328
+ // Readonly, so it needs neither a server field of its own nor an editor - it rides along on the
47329
+ // goodsGroup join the Programm column above already requests.
47330
+ colId: 'livingWorldCode',
47331
+ headerName: 'backoffice.idmCatalog.series.label.livingWorldCode',
47332
+ editable: false,
47333
+ sortable: false,
47334
+ filter: false,
47335
+ excludeFromExcelExport: true,
47336
+ valueGetter: function valueGetter(_ref6) {
47337
+ var _data$goodsGroup4;
47338
+ var data = _ref6.data;
47339
+ return data === null || data === void 0 || (_data$goodsGroup4 = data.goodsGroup) === null || _data$goodsGroup4 === void 0 ? void 0 : _data$goodsGroup4.effectiveLivingWorldCode;
47340
+ },
47341
+ cellRenderer: GoodsGroupCellRenderer,
47342
+ cellRendererParams: {
47343
+ field: 'livingWorld',
47344
+ vocabulary: goodsGroupVocabulary
47345
+ }
46115
47346
  }, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)], _toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [createTranslatedColumnConfig('planningAdvice', 'backoffice.idmCatalog.series.label.planningAdvice', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds)] : []), [{
46116
47347
  headerName: 'backoffice.idmCatalog.series.label.mainImage',
46117
47348
  field: 'mainImage',
@@ -46279,7 +47510,10 @@ var TableSeries = observer(function () {
46279
47510
  defaultValue: '${catalogId}'
46280
47511
  }])
46281
47512
  };
46282
- }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language]);
47513
+ // runningSerieIds is intentionally not a dep: isRunning above reads it from runningSerieIdsRef instead, so a
47514
+ // run starting/settling doesn't force a full grid reload - node.updateData (on start) and gridRef.refresh()
47515
+ // (on settle, see handleRunSettled) already repaint the affected cell(s) without needing a new configuration.
47516
+ }, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language, goodsGroupVocabulary, onClassifySerie]);
46283
47517
  return /*#__PURE__*/jsxs(Fragment, {
46284
47518
  children: [/*#__PURE__*/jsx(Descriptions$1, {
46285
47519
  title: /*#__PURE__*/jsxs("div", {
@@ -46296,7 +47530,8 @@ var TableSeries = observer(function () {
46296
47530
  })
46297
47531
  })]
46298
47532
  })
46299
- }), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
47533
+ }), (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) !== undefined && /*#__PURE__*/jsx(Spreadsheet, {
47534
+ ref: gridRef,
46300
47535
  gridId: 'crud-grid_series',
46301
47536
  applicationData: applicationData,
46302
47537
  hooks: hooks,
@@ -46441,7 +47676,7 @@ var useSeriesSelector = function useSeriesSelector(modules) {
46441
47676
  };
46442
47677
 
46443
47678
  var TableItems = observer(function () {
46444
- var _selectedCatalog$name;
47679
+ var _selectedCatalog$name, _selectedSerie$goodsG;
46445
47680
  var _useDivaCore = useDivaCore(),
46446
47681
  jwt = _useDivaCore.state.jwt;
46447
47682
  var ref = useRef(null);
@@ -46527,6 +47762,11 @@ var TableItems = observer(function () {
46527
47762
  selectedSerie: selectedSerie,
46528
47763
  apiConfig: apiConfig,
46529
47764
  hooks: hooks
47765
+ // Known gap: the series selector's fields list (see SeriesSelector/useSeriesSelector) omits
47766
+ // goodsGroup, so right after a reload this is always false even if a run is in progress - it only
47767
+ // reflects one started earlier in this session (TableSeries carries it through the shared state).
47768
+ ,
47769
+ serieRunActive: !!(selectedSerie !== null && selectedSerie !== void 0 && (_selectedSerie$goodsG = selectedSerie.goodsGroup) !== null && _selectedSerie$goodsG !== void 0 && _selectedSerie$goodsG.runningRunId)
46530
47770
  })]
46531
47771
  });
46532
47772
  });