@crystaldesign/diva-backoffice 26.8.0-beta.49 → 26.8.0-beta.50

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.
@@ -160,6 +160,9 @@ import Layout$1 from 'antd/es/layout';
160
160
  import Menu from 'antd/es/menu';
161
161
  import { DoubleLeftOutlined, PushpinFilled } from '@ant-design/icons/lib/icons';
162
162
  import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
163
+ import ExportOutlined from '@ant-design/icons/lib/icons/ExportOutlined';
164
+ import ConfigProvider$1 from 'antd/es/config-provider';
165
+ import { createPortal } from 'react-dom';
163
166
  import { ContentItemComponent } from '@crystaldesign/content-item';
164
167
  import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
165
168
  import { WebPlannerReact } from '@crystaldesign/diva-web-planner-react';
@@ -186,11 +189,11 @@ import { GoogleGenAI } from '@google/genai';
186
189
  globalThis.process = { env:env };
187
190
  })();
188
191
 
189
- 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; } } }; }
190
- 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; } }
191
- 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; }
192
- 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; }
193
- 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; }
192
+ function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
193
+ function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
194
+ function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
195
+ 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; }
196
+ 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; }
194
197
  var LOG$l = getLogger('Backoffice', 'ApplyMapping');
195
198
  function applyMapping (_ref) {
196
199
  var mappable = _ref.mappable,
@@ -211,10 +214,10 @@ function applyMapping (_ref) {
211
214
  var newValue = {};
212
215
  newValue[newKey] = valueToAdd;
213
216
  if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
214
- if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1C(_objectSpread$1C({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
217
+ if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$1D(_objectSpread$1D({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
215
218
  return startValue;
216
219
  }
217
- if (newIdx == 1) return _objectSpread$1C(_objectSpread$1C({}, startValue), newValue);
220
+ if (newIdx == 1) return _objectSpread$1D(_objectSpread$1D({}, startValue), newValue);
218
221
  return _getTarget(idx + 1, keys, startValue, newValue);
219
222
  };
220
223
  returnValue = _getTarget(0, key.split('.'), returnValue, value);
@@ -223,7 +226,7 @@ function applyMapping (_ref) {
223
226
  function meetsCondition(map) {
224
227
  if (!map.condition) return true;
225
228
  var value = mappingData[map.condition.field];
226
- var _iterator = _createForOfIteratorHelper$B(map.condition.values),
229
+ var _iterator = _createForOfIteratorHelper$C(map.condition.values),
227
230
  _step;
228
231
  try {
229
232
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -302,7 +305,7 @@ function applyMapping (_ref) {
302
305
  _url.href = _url.href.replace('&' + m.targetField + '=${' + m.targetField + '}', '');
303
306
  }
304
307
  }
305
- var _iterator2 = _createForOfIteratorHelper$B(_url.searchParams.entries()),
308
+ var _iterator2 = _createForOfIteratorHelper$C(_url.searchParams.entries()),
306
309
  _step2;
307
310
  try {
308
311
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -517,8 +520,8 @@ function getLeafColumns(columns) {
517
520
  });
518
521
  }
519
522
 
520
- 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; }
521
- 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; }
523
+ 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; }
524
+ 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; }
522
525
  var LOG$k = getLogger('Backoffice', 'ApiHandler');
523
526
  var jp = require('jsonpath');
524
527
  var _default$c = /*#__PURE__*/function () {
@@ -697,7 +700,7 @@ var _default$c = /*#__PURE__*/function () {
697
700
  _context2.next = 20;
698
701
  return fetch(finalUrl, {
699
702
  method: this._updateMethod,
700
- headers: _objectSpread$1B(_objectSpread$1B({}, jwt ? {
703
+ headers: _objectSpread$1C(_objectSpread$1C({}, jwt ? {
701
704
  Authorization: 'Bearer ' + jwt
702
705
  } : {}), {}, {
703
706
  'Content-Type': 'application/json'
@@ -790,7 +793,7 @@ var _default$c = /*#__PURE__*/function () {
790
793
  rootStore: this._rootStore,
791
794
  fallBackToParams: true
792
795
  });
793
- if (data) createData = _objectSpread$1B({}, data);
796
+ if (data) createData = _objectSpread$1C({}, data);
794
797
  } else if (data !== undefined) {
795
798
  createData = applyMapping({
796
799
  mappable: data,
@@ -1052,7 +1055,7 @@ var _default$c = /*#__PURE__*/function () {
1052
1055
  throw new Error('Read List endpoint is missing in configuration.');
1053
1056
  case 2:
1054
1057
  jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
1055
- url = filterServerSide ? parseServersideFilters(_objectSpread$1B(_objectSpread$1B({}, filterServerSide), {}, {
1058
+ url = filterServerSide ? parseServersideFilters(_objectSpread$1C(_objectSpread$1C({}, filterServerSide), {}, {
1056
1059
  columns: this._filterFields ? filterServerSide.columns : undefined,
1057
1060
  baseUrl: this._readListUrl,
1058
1061
  prefilter: prefilter
@@ -1072,7 +1075,7 @@ var _default$c = /*#__PURE__*/function () {
1072
1075
  });
1073
1076
  case 6:
1074
1077
  response = _context8.sent;
1075
- return _context8.abrupt("return", _objectSpread$1B(_objectSpread$1B({}, response), {}, {
1078
+ return _context8.abrupt("return", _objectSpread$1C(_objectSpread$1C({}, response), {}, {
1076
1079
  data: response.data.map(function (d) {
1077
1080
  return _this2.aplyJsonPath(d, _this2._readJsonPath);
1078
1081
  })
@@ -1096,7 +1099,7 @@ var _default$c = /*#__PURE__*/function () {
1096
1099
  throw new Error('Read List endpoint is missing in configuration.');
1097
1100
  }
1098
1101
  (_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
1099
- var url = filterServerSide ? parseServersideFilters(_objectSpread$1B(_objectSpread$1B({}, filterServerSide), {}, {
1102
+ var url = filterServerSide ? parseServersideFilters(_objectSpread$1C(_objectSpread$1C({}, filterServerSide), {}, {
1100
1103
  columns: this._filterFields ? filterServerSide.columns : undefined,
1101
1104
  baseUrl: this._readListUrl,
1102
1105
  prefilter: prefilter
@@ -2011,8 +2014,8 @@ function buildContentTranslationItems(content, t) {
2011
2014
  return translationItems;
2012
2015
  }
2013
2016
 
2014
- 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; }
2015
- 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; }
2017
+ 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; }
2018
+ 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; }
2016
2019
  var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
2017
2020
  return o.apiValue;
2018
2021
  });
@@ -2053,7 +2056,7 @@ var _default$7 = /*#__PURE__*/function () {
2053
2056
  var _i$permission;
2054
2057
  return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
2055
2058
  });
2056
- config = _objectSpread$1A(_objectSpread$1A({}, config), {}, {
2059
+ config = _objectSpread$1B(_objectSpread$1B({}, config), {}, {
2057
2060
  items: filteredItems
2058
2061
  });
2059
2062
  }
@@ -14851,9 +14854,9 @@ function MenuLabel (_ref) {
14851
14854
  });
14852
14855
  }
14853
14856
 
14854
- 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; } } }; }
14855
- 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; } }
14856
- 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; }
14857
+ 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; } } }; }
14858
+ 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; } }
14859
+ 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; }
14857
14860
  function applyRule(_ref) {
14858
14861
  var rules = _ref.rules,
14859
14862
  data = _ref.data,
@@ -14862,7 +14865,7 @@ function applyRule(_ref) {
14862
14865
  //if or we start with false until the first time some result is true
14863
14866
  //if and we start with true until the frist time some result is false
14864
14867
  var result = !or;
14865
- var _iterator = _createForOfIteratorHelper$A(rules),
14868
+ var _iterator = _createForOfIteratorHelper$B(rules),
14866
14869
  _step;
14867
14870
  try {
14868
14871
  var _loop = function _loop() {
@@ -14934,7 +14937,7 @@ function aplyRules(_ref2) {
14934
14937
  if (!data || data.length == 0) return {
14935
14938
  applied: false
14936
14939
  };
14937
- var _iterator2 = _createForOfIteratorHelper$A(data),
14940
+ var _iterator2 = _createForOfIteratorHelper$B(data),
14938
14941
  _step2;
14939
14942
  try {
14940
14943
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -15069,8 +15072,69 @@ function getIcon(icon) {
15069
15072
  return undefined;
15070
15073
  }
15071
15074
 
15075
+ 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; }
15076
+ 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; }
15077
+ /**
15078
+ * Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
15079
+ * Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
15080
+ * scoped toolbars. Configured defaults stay on the `Tool`; stored preferences win.
15081
+ */
15082
+
15083
+ var STORAGE_PREFIX = 'divaTool:preferences:';
15084
+
15085
+ /** Last known size + on-screen position of a tool's popout window. */
15086
+
15087
+ function isFiniteNumber(value) {
15088
+ return typeof value === 'number' && Number.isFinite(value);
15089
+ }
15090
+
15091
+ /** Drops fields with unexpected types so corrupt storage can never break the toolbar. */
15092
+ function sanitize(raw) {
15093
+ var prefs = {};
15094
+ if (isFiniteNumber(raw === null || raw === void 0 ? void 0 : raw.width)) prefs.width = raw.width;
15095
+ if (typeof (raw === null || raw === void 0 ? void 0 : raw.pinned) === 'boolean') prefs.pinned = raw.pinned;
15096
+ if (typeof (raw === null || raw === void 0 ? void 0 : raw.open) === 'boolean') prefs.open = raw.open;
15097
+ var bounds = raw === null || raw === void 0 ? void 0 : raw.popoutBounds;
15098
+ if (bounds && ['width', 'height', 'left', 'top'].every(function (k) {
15099
+ return isFiniteNumber(bounds[k]);
15100
+ })) {
15101
+ prefs.popoutBounds = {
15102
+ width: bounds.width,
15103
+ height: bounds.height,
15104
+ left: bounds.left,
15105
+ top: bounds.top
15106
+ };
15107
+ }
15108
+ return prefs;
15109
+ }
15110
+ function readToolPreferences(toolId) {
15111
+ try {
15112
+ var raw = localStorage.getItem(STORAGE_PREFIX + toolId);
15113
+ return raw ? sanitize(JSON.parse(raw)) : {};
15114
+ } catch (_unused) {
15115
+ return {};
15116
+ }
15117
+ }
15118
+
15119
+ /** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
15120
+ function updateToolPreferences(toolId, patch) {
15121
+ try {
15122
+ localStorage.setItem(STORAGE_PREFIX + toolId, JSON.stringify(_objectSpread$1A(_objectSpread$1A({}, readToolPreferences(toolId)), patch)));
15123
+ } catch (_unused2) {
15124
+ // storage unavailable / quota exceeded
15125
+ }
15126
+ }
15127
+
15072
15128
  var DEFAULT_WIDTH = 500;
15073
15129
 
15130
+ /**
15131
+ * Grace period before an orphaned detached tool's window is closed — long enough to
15132
+ * bridge the remove→re-add churn of view switches and selection changes (an adopting
15133
+ * re-add cancels the close), short enough that a context that is really gone (e.g.
15134
+ * main-table selection cleared) visibly closes the window, like the docked panel does.
15135
+ */
15136
+ var ORPHAN_CLOSE_DELAY_MS = 1500;
15137
+
15074
15138
  /**
15075
15139
  * Store for managing the toolbar state and tools in the application.
15076
15140
  * Handles tool selection, visibility, loading states, and toolbar dimensions.
@@ -15079,21 +15143,36 @@ var ToolBarStore = /*#__PURE__*/function () {
15079
15143
  /**
15080
15144
  * Creates a new ToolBarStore instance.
15081
15145
  * @param defaultLanguage - The default language to use for tools
15146
+ * @param preferenceScope - When set, this toolbar is ONE slot: its tools share the user
15147
+ * preferences under this key and the detached state survives across tool ids.
15082
15148
  */
15083
- function ToolBarStore(defaultLanguage) {
15149
+ function ToolBarStore(defaultLanguage, preferenceScope) {
15084
15150
  _classCallCheck(this, ToolBarStore);
15085
15151
  this.defaultLanguage = defaultLanguage;
15152
+ this.preferenceScope = preferenceScope;
15086
15153
  _defineProperty(this, "_tools", []);
15087
15154
  _defineProperty(this, "_hidden", true);
15088
15155
  _defineProperty(this, "_pinned", false);
15089
15156
  _defineProperty(this, "_selectedToolId", void 0);
15157
+ _defineProperty(this, "_mountedToolIds", new Set());
15158
+ _defineProperty(this, "_detachedToolIds", new Set());
15159
+ /** Detached tools whose owning view is gone — kept alive in their window until a view re-adds (adopts) them or the grace timer closes them. */
15160
+ _defineProperty(this, "_orphanedDetachedIds", new Set());
15161
+ /** Pending grace-period close timers for orphaned detached tools — plain handles, deliberately not observable. */
15162
+ _defineProperty(this, "_orphanCloseTimers", new Map());
15163
+ /** Live child windows of detached tools — DOM handles, deliberately not observable. */
15164
+ _defineProperty(this, "_popoutWindows", new Map());
15090
15165
  _defineProperty(this, "_loadingTools", new Map());
15091
15166
  _defineProperty(this, "_currentLanguage", void 0);
15092
15167
  _defineProperty(this, "_width", 0);
15093
15168
  _defineProperty(this, "_toolbarElement", null);
15169
+ /** Set when the system (not the user) closed an orphaned detached window — the next tool filling this slot reopens detached. */
15170
+ _defineProperty(this, "_reopenDetached", false);
15094
15171
  this._currentLanguage = defaultLanguage;
15095
15172
  makeAutoObservable(this, {
15096
- _toolbarElement: observable.ref
15173
+ _toolbarElement: observable.ref,
15174
+ _popoutWindows: false,
15175
+ _orphanCloseTimers: false
15097
15176
  });
15098
15177
  }
15099
15178
 
@@ -15106,8 +15185,45 @@ var ToolBarStore = /*#__PURE__*/function () {
15106
15185
  return this._tools;
15107
15186
  },
15108
15187
  set: function set(tools) {
15109
- this._tools = tools;
15188
+ var _this = this;
15189
+ var addedIds = tools.filter(function (t) {
15190
+ return !_this._tools.some(function (p) {
15191
+ return p.id === t.id;
15192
+ });
15193
+ }).map(function (t) {
15194
+ return t.id;
15195
+ });
15196
+ // Detached tools outlive their view briefly: kept as orphans so a view re-adding the
15197
+ // same tool id adopts them in place (same as addTools); otherwise the grace timer closes them.
15198
+ tools.forEach(function (t) {
15199
+ _this._orphanedDetachedIds["delete"](t.id);
15200
+ _this.cancelOrphanClose(t.id);
15201
+ });
15202
+ var orphans = this._tools.filter(function (t) {
15203
+ return _this._detachedToolIds.has(t.id) && !tools.some(function (n) {
15204
+ return n.id === t.id;
15205
+ });
15206
+ });
15207
+ orphans.forEach(function (t) {
15208
+ _this._orphanedDetachedIds.add(t.id);
15209
+ _this.scheduleOrphanClose(t.id);
15210
+ });
15211
+ this._tools = [].concat(_toConsumableArray(tools), _toConsumableArray(orphans));
15212
+ this._mountedToolIds.forEach(function (id) {
15213
+ if (!_this._tools.some(function (t) {
15214
+ return t.id === id;
15215
+ })) _this._mountedToolIds["delete"](id);
15216
+ });
15217
+ this._detachedToolIds.forEach(function (id) {
15218
+ if (!_this._tools.some(function (t) {
15219
+ return t.id === id;
15220
+ })) {
15221
+ _this._detachedToolIds["delete"](id);
15222
+ _this._orphanedDetachedIds["delete"](id);
15223
+ }
15224
+ });
15110
15225
  this.updateToolState();
15226
+ this.reopenDetachedIfPending(addedIds);
15111
15227
  }
15112
15228
 
15113
15229
  /**
@@ -15119,21 +15235,28 @@ var ToolBarStore = /*#__PURE__*/function () {
15119
15235
  }, {
15120
15236
  key: "addTools",
15121
15237
  value: function addTools() {
15122
- var _this = this;
15238
+ var _this2 = this;
15239
+ var addedIds = [];
15123
15240
  for (var _len = arguments.length, tools = new Array(_len), _key = 0; _key < _len; _key++) {
15124
15241
  tools[_key] = arguments[_key];
15125
15242
  }
15126
15243
  tools.forEach(function (tool) {
15127
- var index = _this._tools.findIndex(function (t) {
15244
+ var index = _this2._tools.findIndex(function (t) {
15128
15245
  return t.id === tool.id;
15129
15246
  });
15130
15247
  if (index === -1) {
15131
- _this._tools.push(tool);
15248
+ _this2._tools.push(tool);
15249
+ addedIds.push(tool.id);
15132
15250
  } else {
15133
- _this._tools[index] = tool;
15251
+ _this2._tools[index] = tool;
15134
15252
  }
15253
+ // A view (re-)registered this tool — a detached orphan is adopted in place:
15254
+ // fresh props flow into the open window without a remount.
15255
+ _this2._orphanedDetachedIds["delete"](tool.id);
15256
+ _this2.cancelOrphanClose(tool.id);
15135
15257
  });
15136
15258
  this.updateToolState();
15259
+ this.reopenDetachedIfPending(addedIds);
15137
15260
  }
15138
15261
 
15139
15262
  /**
@@ -15143,15 +15266,217 @@ var ToolBarStore = /*#__PURE__*/function () {
15143
15266
  }, {
15144
15267
  key: "removeTools",
15145
15268
  value: function removeTools() {
15269
+ var _this3 = this;
15146
15270
  for (var _len2 = arguments.length, toolIds = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
15147
15271
  toolIds[_key2] = arguments[_key2];
15148
15272
  }
15273
+ // Detached tools survive their view's removal (see tools setter) — they become
15274
+ // orphans living in their window until adopted or grace-closed; everything else is removed as before.
15275
+ var detached = toolIds.filter(function (id) {
15276
+ return _this3._detachedToolIds.has(id);
15277
+ });
15278
+ detached.forEach(function (id) {
15279
+ _this3._orphanedDetachedIds.add(id);
15280
+ _this3.scheduleOrphanClose(id);
15281
+ });
15282
+ var remove = toolIds.filter(function (id) {
15283
+ return !_this3._detachedToolIds.has(id);
15284
+ });
15149
15285
  this._tools = this._tools.filter(function (t) {
15150
- return !toolIds.includes(t.id);
15286
+ return !remove.includes(t.id);
15287
+ });
15288
+ remove.forEach(function (id) {
15289
+ _this3._mountedToolIds["delete"](id);
15290
+ _this3._loadingTools["delete"](id);
15151
15291
  });
15152
15292
  this.updateToolState();
15153
15293
  }
15154
15294
 
15295
+ /**
15296
+ * Marks a tool as mounted: once mounted, it stays rendered (hidden via CSS when inactive)
15297
+ * so its state survives tool switches. Reset only when the tool is removed.
15298
+ */
15299
+ }, {
15300
+ key: "markMounted",
15301
+ value: function markMounted(toolId) {
15302
+ if (this._mountedToolIds.has(toolId)) return;
15303
+ this._mountedToolIds.add(toolId);
15304
+ }
15305
+
15306
+ /**
15307
+ * The tools that have been opened at least once and are still in the toolbar
15308
+ */
15309
+ }, {
15310
+ key: "mountedTools",
15311
+ get: function get() {
15312
+ var _this4 = this;
15313
+ return this._tools.filter(function (t) {
15314
+ return _this4._mountedToolIds.has(t.id);
15315
+ });
15316
+ }
15317
+
15318
+ /** Whether a tool is detached into its own browser window. */
15319
+ }, {
15320
+ key: "isDetached",
15321
+ value: function isDetached(toolId) {
15322
+ return this._detachedToolIds.has(toolId);
15323
+ }
15324
+
15325
+ /**
15326
+ * Detaches a tool into its own window (rendered via PopoutWindow). The inline slot
15327
+ * no longer shows it, so the selection moves to the next dockable tool.
15328
+ */
15329
+ }, {
15330
+ key: "detach",
15331
+ value: function detach(toolId) {
15332
+ var _this5 = this;
15333
+ var tool = this._tools.find(function (t) {
15334
+ return t.id === toolId;
15335
+ });
15336
+ if (!tool || tool.disabled) return;
15337
+ this.markMounted(toolId);
15338
+ this._detachedToolIds.add(toolId);
15339
+ if (this._selectedToolId === toolId) {
15340
+ var next = this._tools.find(function (t) {
15341
+ return t.id !== toolId && !t.disabled && !_this5._detachedToolIds.has(t.id);
15342
+ });
15343
+ if (next) this.selectTool(next.id);else this._hidden = true;
15344
+ }
15345
+ }
15346
+
15347
+ /** Returns a detached tool to the toolbar (also called when its window is closed). */
15348
+ }, {
15349
+ key: "redock",
15350
+ value: function redock(toolId) {
15351
+ if (!this._detachedToolIds["delete"](toolId)) return;
15352
+ // User choice (close/redock) or blocked open — don't auto-reopen.
15353
+ this._reopenDetached = false;
15354
+ this.cancelOrphanClose(toolId);
15355
+ if (this._orphanedDetachedIds["delete"](toolId)) {
15356
+ // The view that owned this tool is gone — nothing to dock back into; remove it.
15357
+ this._tools = this._tools.filter(function (t) {
15358
+ return t.id !== toolId;
15359
+ });
15360
+ this._mountedToolIds["delete"](toolId);
15361
+ this.updateToolState();
15362
+ return;
15363
+ }
15364
+ // Only take focus when no other tool is currently open — closing a background popout
15365
+ // (or a blocked open) must not interrupt the tool the user is using.
15366
+ var hasOpenTool = !this._hidden && !!this._selectedToolId && !this._detachedToolIds.has(this._selectedToolId);
15367
+ if (!hasOpenTool) {
15368
+ this.selectTool(toolId);
15369
+ this._hidden = false;
15370
+ }
15371
+ }
15372
+
15373
+ /** Dragging the handle open while the content lives in a detached window pulls it back
15374
+ * into the toolbar. No-op while a docked tool is visible (that drag is a plain resize). */
15375
+ }, {
15376
+ key: "redockDetachedForDrag",
15377
+ value: function redockDetachedForDrag() {
15378
+ var _this$currentOpenTool,
15379
+ _this$_tools$find,
15380
+ _this6 = this;
15381
+ var currentId = (_this$currentOpenTool = this.currentOpenTool) === null || _this$currentOpenTool === void 0 ? void 0 : _this$currentOpenTool.id;
15382
+ if (currentId && !this._detachedToolIds.has(currentId)) return;
15383
+ var targetId = currentId !== null && currentId !== void 0 ? currentId : (_this$_tools$find = this._tools.find(function (t) {
15384
+ return _this6._detachedToolIds.has(t.id);
15385
+ })) === null || _this$_tools$find === void 0 ? void 0 : _this$_tools$find.id;
15386
+ if (!targetId) return;
15387
+ this.redock(targetId);
15388
+ }
15389
+
15390
+ /**
15391
+ * Hard-closes detached tools whose owning view is gone (orphans): their windows close
15392
+ * and the tools are removed entirely. Without `toolId` it closes all orphans — used when
15393
+ * the user leaves the section the tools belong to (e.g. the catalog editor); with a
15394
+ * `toolId` it closes just that orphan — used by the grace timer.
15395
+ */
15396
+ }, {
15397
+ key: "closeOrphanedDetached",
15398
+ value: function closeOrphanedDetached(toolId) {
15399
+ var _this7 = this;
15400
+ var orphans = _toConsumableArray(this._detachedToolIds).filter(function (id) {
15401
+ return _this7._orphanedDetachedIds.has(id) && (!toolId || id === toolId);
15402
+ });
15403
+ if (!orphans.length) return;
15404
+ orphans.forEach(function (id) {
15405
+ _this7.cancelOrphanClose(id);
15406
+ _this7._detachedToolIds["delete"](id);
15407
+ _this7._orphanedDetachedIds["delete"](id);
15408
+ _this7._mountedToolIds["delete"](id);
15409
+ _this7._loadingTools["delete"](id);
15410
+ });
15411
+ this._tools = this._tools.filter(function (t) {
15412
+ return !orphans.includes(t.id);
15413
+ });
15414
+ // System-closed, not user-closed — a scoped slot reopens detached with the next tool.
15415
+ if (this.preferenceScope) this._reopenDetached = true;
15416
+ this.updateToolState();
15417
+ }
15418
+
15419
+ /** Detaches the first usable newly added tool when the slot's previous window was
15420
+ * system-closed. Runs right after a user click, so the popup open isn't blocked. */
15421
+ }, {
15422
+ key: "reopenDetachedIfPending",
15423
+ value: function reopenDetachedIfPending(addedIds) {
15424
+ if (!this._reopenDetached) return;
15425
+ var tool = this._tools.find(function (t) {
15426
+ return addedIds.includes(t.id) && !t.disabled;
15427
+ });
15428
+ if (!tool) return;
15429
+ this._reopenDetached = false;
15430
+ this.detach(tool.id);
15431
+ }
15432
+
15433
+ /** Storage key for a tool's user preferences — the shared slot key when this toolbar is scoped, else the tool id. */
15434
+ }, {
15435
+ key: "preferenceKey",
15436
+ value: function preferenceKey(toolId) {
15437
+ var _this$preferenceScope;
15438
+ return (_this$preferenceScope = this.preferenceScope) !== null && _this$preferenceScope !== void 0 ? _this$preferenceScope : toolId;
15439
+ }
15440
+
15441
+ /**
15442
+ * Starts the grace timer that closes an orphaned detached tool unless a view adopts it first.
15443
+ * Idempotent: repeated removals (effect-cleanup churn re-removes the id on every re-render)
15444
+ * must not extend the grace period — it counts from when the tool became orphaned.
15445
+ */
15446
+ }, {
15447
+ key: "scheduleOrphanClose",
15448
+ value: function scheduleOrphanClose(toolId) {
15449
+ var _this8 = this;
15450
+ if (this._orphanCloseTimers.has(toolId)) return;
15451
+ this._orphanCloseTimers.set(toolId, setTimeout(function () {
15452
+ _this8._orphanCloseTimers["delete"](toolId);
15453
+ _this8.closeOrphanedDetached(toolId);
15454
+ }, ORPHAN_CLOSE_DELAY_MS));
15455
+ }
15456
+ }, {
15457
+ key: "cancelOrphanClose",
15458
+ value: function cancelOrphanClose(toolId) {
15459
+ var timer = this._orphanCloseTimers.get(toolId);
15460
+ if (timer === undefined) return;
15461
+ clearTimeout(timer);
15462
+ this._orphanCloseTimers["delete"](toolId);
15463
+ }
15464
+
15465
+ /** Reported by PopoutWindow — the live child window handle (undefined on teardown). */
15466
+ }, {
15467
+ key: "setPopoutWindow",
15468
+ value: function setPopoutWindow(toolId, win) {
15469
+ if (win) this._popoutWindows.set(toolId, win);else this._popoutWindows["delete"](toolId);
15470
+ }
15471
+
15472
+ /** Brings a detached tool's window to the front. */
15473
+ }, {
15474
+ key: "focusPopout",
15475
+ value: function focusPopout(toolId) {
15476
+ var _this$_popoutWindows$;
15477
+ (_this$_popoutWindows$ = this._popoutWindows.get(toolId)) === null || _this$_popoutWindows$ === void 0 || _this$_popoutWindows$.focus();
15478
+ }
15479
+
15155
15480
  /**
15156
15481
  * Updates the internal tool state based on available tools.
15157
15482
  * Sets default values for selected tool, pinned state, visibility and width.
@@ -15159,25 +15484,30 @@ var ToolBarStore = /*#__PURE__*/function () {
15159
15484
  }, {
15160
15485
  key: "updateToolState",
15161
15486
  value: function updateToolState() {
15162
- var _this2 = this,
15487
+ var _this9 = this,
15163
15488
  _this$_tools$,
15164
- _this$_tools$0$defaul,
15489
+ _ref,
15490
+ _prefs$pinned,
15165
15491
  _this$_tools$2,
15166
15492
  _this$_tools$3,
15167
- _this$_tools$0$startW,
15493
+ _ref2,
15494
+ _prefs$width,
15168
15495
  _this$_tools$4;
15169
15496
  if (this._tools.length === 0) return;
15170
15497
  var newToolState = this._tools.find(function (t) {
15171
- return t.id === _this2._selectedToolId;
15498
+ return t.id === _this9._selectedToolId;
15172
15499
  });
15173
15500
  if (newToolState || this._tools.length === 0) {
15174
15501
  //if current tool is in the new list or the list is empty, don't change the current state
15175
15502
  return;
15176
15503
  }
15177
15504
  this._selectedToolId = (_this$_tools$ = this._tools[0]) === null || _this$_tools$ === void 0 ? void 0 : _this$_tools$.id;
15178
- this._pinned = (_this$_tools$0$defaul = (_this$_tools$2 = this._tools[0]) === null || _this$_tools$2 === void 0 ? void 0 : _this$_tools$2.defaultPinned) !== null && _this$_tools$0$defaul !== void 0 ? _this$_tools$0$defaul : this._pinned;
15179
- this._hidden = ((_this$_tools$3 = this._tools[0]) === null || _this$_tools$3 === void 0 ? void 0 : _this$_tools$3.defaultOpen) !== undefined ? !this._tools[0].defaultOpen : this._hidden;
15180
- this._width = (_this$_tools$0$startW = (_this$_tools$4 = this._tools[0]) === null || _this$_tools$4 === void 0 ? void 0 : _this$_tools$4.startWidth) !== null && _this$_tools$0$startW !== void 0 ? _this$_tools$0$startW : this._width;
15505
+ var prefs = readToolPreferences(this.preferenceKey(this._tools[0].id));
15506
+ this._pinned = (_ref = (_prefs$pinned = prefs.pinned) !== null && _prefs$pinned !== void 0 ? _prefs$pinned : (_this$_tools$2 = this._tools[0]) === null || _this$_tools$2 === void 0 ? void 0 : _this$_tools$2.defaultPinned) !== null && _ref !== void 0 ? _ref : this._pinned;
15507
+ var defaultHidden = ((_this$_tools$3 = this._tools[0]) === null || _this$_tools$3 === void 0 ? void 0 : _this$_tools$3.defaultOpen) !== undefined ? !this._tools[0].defaultOpen : this._hidden;
15508
+ // Scoped slots also remember their open state.
15509
+ this._hidden = this.preferenceScope && prefs.open !== undefined ? !prefs.open : defaultHidden;
15510
+ this._width = (_ref2 = (_prefs$width = prefs.width) !== null && _prefs$width !== void 0 ? _prefs$width : (_this$_tools$4 = this._tools[0]) === null || _this$_tools$4 === void 0 ? void 0 : _this$_tools$4.startWidth) !== null && _ref2 !== void 0 ? _ref2 : this._width;
15181
15511
  }
15182
15512
 
15183
15513
  /**
@@ -15193,9 +15523,13 @@ var ToolBarStore = /*#__PURE__*/function () {
15193
15523
  set: function set(hidden) {
15194
15524
  this._hidden = hidden;
15195
15525
  if (!hidden && this._width === 0) {
15196
- var _this$currentOpenTool, _this$currentOpenTool2;
15197
- this._width = (_this$currentOpenTool = (_this$currentOpenTool2 = this.currentOpenTool) === null || _this$currentOpenTool2 === void 0 ? void 0 : _this$currentOpenTool2.startWidth) !== null && _this$currentOpenTool !== void 0 ? _this$currentOpenTool : DEFAULT_WIDTH;
15526
+ var _ref3, _ref4;
15527
+ var tool = this.currentOpenTool;
15528
+ this._width = (_ref3 = (_ref4 = tool && readToolPreferences(this.preferenceKey(tool.id)).width) !== null && _ref4 !== void 0 ? _ref4 : tool === null || tool === void 0 ? void 0 : tool.startWidth) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_WIDTH;
15198
15529
  }
15530
+ if (this.preferenceScope) updateToolPreferences(this.preferenceScope, {
15531
+ open: !hidden
15532
+ });
15199
15533
  }
15200
15534
 
15201
15535
  /**
@@ -15208,6 +15542,10 @@ var ToolBarStore = /*#__PURE__*/function () {
15208
15542
  },
15209
15543
  set: function set(pinned) {
15210
15544
  this._pinned = pinned;
15545
+ // A user choice (pushpin toggle) — remember it for the open tool.
15546
+ if (this._selectedToolId) updateToolPreferences(this.preferenceKey(this._selectedToolId), {
15547
+ pinned: pinned
15548
+ });
15211
15549
  }
15212
15550
 
15213
15551
  /**
@@ -15228,9 +15566,9 @@ var ToolBarStore = /*#__PURE__*/function () {
15228
15566
  }, {
15229
15567
  key: "currentOpenTool",
15230
15568
  get: function get() {
15231
- var _this3 = this;
15569
+ var _this10 = this;
15232
15570
  return this._tools.find(function (t) {
15233
- return t.id === _this3._selectedToolId;
15571
+ return t.id === _this10._selectedToolId;
15234
15572
  });
15235
15573
  }
15236
15574
 
@@ -15252,6 +15590,18 @@ var ToolBarStore = /*#__PURE__*/function () {
15252
15590
  if (width < 50) {
15253
15591
  this._width = 0;
15254
15592
  this._hidden = true;
15593
+ // Scoped slots remember drag-shut as closed.
15594
+ if (this.preferenceScope) updateToolPreferences(this.preferenceScope, {
15595
+ open: false
15596
+ });
15597
+ } else if (this._selectedToolId) {
15598
+ // Remember the drag-resize; a resized scoped slot is an open slot.
15599
+ updateToolPreferences(this.preferenceKey(this._selectedToolId), this.preferenceScope ? {
15600
+ width: width,
15601
+ open: true
15602
+ } : {
15603
+ width: width
15604
+ });
15255
15605
  }
15256
15606
  }
15257
15607
 
@@ -15289,10 +15639,13 @@ var ToolBarStore = /*#__PURE__*/function () {
15289
15639
  this._selectedToolId = toolId;
15290
15640
  this._currentLanguage = this.defaultLanguage;
15291
15641
  if (tool) {
15292
- var _tool$startWidth, _tool$defaultPinned;
15293
- this._width = Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
15294
- this._hidden = tool.defaultOpen !== undefined ? !tool.defaultOpen : this._hidden;
15295
- this._pinned = (_tool$defaultPinned = tool.defaultPinned) !== null && _tool$defaultPinned !== void 0 ? _tool$defaultPinned : this._pinned;
15642
+ var _prefs$width2, _tool$startWidth, _ref5, _prefs$pinned2;
15643
+ // Stored user preferences win over the tool's configured defaults.
15644
+ var prefs = readToolPreferences(this.preferenceKey(tool.id));
15645
+ this._width = (_prefs$width2 = prefs.width) !== null && _prefs$width2 !== void 0 ? _prefs$width2 : Math.max((_tool$startWidth = tool.startWidth) !== null && _tool$startWidth !== void 0 ? _tool$startWidth : DEFAULT_WIDTH, this._width);
15646
+ var defaultHidden = tool.defaultOpen !== undefined ? !tool.defaultOpen : this._hidden;
15647
+ this._hidden = this.preferenceScope && prefs.open !== undefined ? !prefs.open : defaultHidden;
15648
+ this._pinned = (_ref5 = (_prefs$pinned2 = prefs.pinned) !== null && _prefs$pinned2 !== void 0 ? _prefs$pinned2 : tool.defaultPinned) !== null && _ref5 !== void 0 ? _ref5 : this._pinned;
15296
15649
  }
15297
15650
  }
15298
15651
 
@@ -15374,9 +15727,9 @@ var ToolBarStore = /*#__PURE__*/function () {
15374
15727
 
15375
15728
  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; }
15376
15729
  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; }
15377
- 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; } } }; }
15378
- 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; } }
15379
- 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; }
15730
+ 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; } } }; }
15731
+ 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; } }
15732
+ 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; }
15380
15733
  var _default$6 = /*#__PURE__*/function () {
15381
15734
  function _default(root) {
15382
15735
  _classCallCheck(this, _default);
@@ -15399,7 +15752,8 @@ var _default$6 = /*#__PURE__*/function () {
15399
15752
  this._theme = theme;
15400
15753
  }
15401
15754
  this.rightToolBar = new ToolBarStore(this.root.i18n.language);
15402
- this.bottomToolBar = new ToolBarStore(this.root.i18n.language);
15755
+ // The bottom toolbar is ONE slot: all subtables share preferences and detached state.
15756
+ this.bottomToolBar = new ToolBarStore(this.root.i18n.language, 'bottomToolbar');
15403
15757
  }
15404
15758
  return _createClass(_default, [{
15405
15759
  key: "initMenu",
@@ -15412,7 +15766,7 @@ var _default$6 = /*#__PURE__*/function () {
15412
15766
  var initKeys = this.root.navigationState.path == '' ? [] : this.keysFormPath(this._menu, this.root.navigationState.path);
15413
15767
  var checkedKeys = [];
15414
15768
  var currentMenu = this._menu;
15415
- var _iterator = _createForOfIteratorHelper$z(initKeys),
15769
+ var _iterator = _createForOfIteratorHelper$A(initKeys),
15416
15770
  _step;
15417
15771
  try {
15418
15772
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -15421,7 +15775,7 @@ var _default$6 = /*#__PURE__*/function () {
15421
15775
  var level = currentMenu;
15422
15776
  var lastResolved = void 0;
15423
15777
  var chainOk = true;
15424
- var _iterator2 = _createForOfIteratorHelper$z(key),
15778
+ var _iterator2 = _createForOfIteratorHelper$A(key),
15425
15779
  _step2;
15426
15780
  try {
15427
15781
  var _loop = function _loop() {
@@ -16645,9 +16999,9 @@ var _default$3 = /*#__PURE__*/function () {
16645
16999
  }]);
16646
17000
  }();
16647
17001
 
16648
- 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; } } }; }
16649
- 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; } }
16650
- 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; }
17002
+ 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; } } }; }
17003
+ 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; } }
17004
+ 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; }
16651
17005
  var LOG$j = getLogger('Backoffice', 'DownloadStore');
16652
17006
  var DownloadStore = /*#__PURE__*/function () {
16653
17007
  function DownloadStore(_rootStore) {
@@ -16675,7 +17029,7 @@ var DownloadStore = /*#__PURE__*/function () {
16675
17029
  _context2.next = 23;
16676
17030
  break;
16677
17031
  }
16678
- _iterator = _createForOfIteratorHelper$y(action.download);
17032
+ _iterator = _createForOfIteratorHelper$z(action.download);
16679
17033
  _context2.prev = 8;
16680
17034
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
16681
17035
  var _download$params, _data$fileFormat, _data$fileUrl;
@@ -17071,7 +17425,7 @@ var DownloadStore = /*#__PURE__*/function () {
17071
17425
  successCount = 0;
17072
17426
  failedCount = 0;
17073
17427
  promises = [];
17074
- _iterator2 = _createForOfIteratorHelper$y(props.data);
17428
+ _iterator2 = _createForOfIteratorHelper$z(props.data);
17075
17429
  _context7.prev = 5;
17076
17430
  _iterator2.s();
17077
17431
  case 7:
@@ -17991,9 +18345,9 @@ var MediaItem = /*#__PURE__*/function () {
17991
18345
  }]);
17992
18346
  }();
17993
18347
 
17994
- 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; } } }; }
17995
- 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; } }
17996
- 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; }
18348
+ 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; } } }; }
18349
+ 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; } }
18350
+ 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; }
17997
18351
  function processFormMediaBeforeSave(_x, _x2, _x3) {
17998
18352
  return _processFormMediaBeforeSave.apply(this, arguments);
17999
18353
  }
@@ -18011,7 +18365,7 @@ function _processFormMediaBeforeSave() {
18011
18365
  _context.next = 3;
18012
18366
  return processItems(data, items, root);
18013
18367
  case 3:
18014
- _iterator = _createForOfIteratorHelper$x(removedMedias);
18368
+ _iterator = _createForOfIteratorHelper$y(removedMedias);
18015
18369
  _context.prev = 4;
18016
18370
  _iterator.s();
18017
18371
  case 6:
@@ -18053,7 +18407,7 @@ function _processItems() {
18053
18407
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
18054
18408
  while (1) switch (_context2.prev = _context2.next) {
18055
18409
  case 0:
18056
- _iterator2 = _createForOfIteratorHelper$x(items);
18410
+ _iterator2 = _createForOfIteratorHelper$y(items);
18057
18411
  _context2.prev = 1;
18058
18412
  _iterator2.s();
18059
18413
  case 3:
@@ -18175,9 +18529,9 @@ function getData$1(id, data) {
18175
18529
  }
18176
18530
  }
18177
18531
 
18178
- 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; } } }; }
18179
- 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; } }
18180
- 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; }
18532
+ 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; } } }; }
18533
+ 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; } }
18534
+ 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; }
18181
18535
  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; }
18182
18536
  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; }
18183
18537
  function toNamePath$2(name) {
@@ -18308,7 +18662,7 @@ function useFormData (_ref) {
18308
18662
  setSelectedItems = _useState14[1];
18309
18663
  var _onLoadFields = function onLoadFields(data) {
18310
18664
  var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
18311
- var _iterator = _createForOfIteratorHelper$w(items),
18665
+ var _iterator = _createForOfIteratorHelper$x(items),
18312
18666
  _step;
18313
18667
  try {
18314
18668
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -18631,7 +18985,7 @@ function useFormData (_ref) {
18631
18985
  };
18632
18986
  var getItem = function getItem(id) {
18633
18987
  var items = selectedItems;
18634
- var _iterator2 = _createForOfIteratorHelper$w(items),
18988
+ var _iterator2 = _createForOfIteratorHelper$x(items),
18635
18989
  _step2;
18636
18990
  try {
18637
18991
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -18807,7 +19161,7 @@ function useFormData (_ref) {
18807
19161
  return _getDynamicValue.apply(this, arguments);
18808
19162
  };
18809
19163
  items = selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
18810
- _iterator4 = _createForOfIteratorHelper$w(items);
19164
+ _iterator4 = _createForOfIteratorHelper$x(items);
18811
19165
  _context6.prev = 4;
18812
19166
  _iterator4.s();
18813
19167
  case 6:
@@ -18923,7 +19277,7 @@ function useFormData (_ref) {
18923
19277
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
18924
19278
  while (1) switch (_context3.prev = _context3.next) {
18925
19279
  case 0:
18926
- _iterator3 = _createForOfIteratorHelper$w(items);
19280
+ _iterator3 = _createForOfIteratorHelper$x(items);
18927
19281
  _context3.prev = 1;
18928
19282
  _iterator3.s();
18929
19283
  case 3:
@@ -19581,15 +19935,15 @@ var InputComponent = function InputComponent(_ref, ref) {
19581
19935
  };
19582
19936
  var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
19583
19937
 
19584
- 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; } } }; }
19585
- 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; } }
19586
- 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; }
19938
+ 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; } } }; }
19939
+ 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; } }
19940
+ 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; }
19587
19941
  function getCombinedValues(data, pattern) {
19588
19942
  if (!pattern || !data) {
19589
19943
  return data;
19590
19944
  }
19591
19945
  var value = pattern;
19592
- var _iterator = _createForOfIteratorHelper$v(pattern.matchAll(/\$\{(.*?)\}/g)),
19946
+ var _iterator = _createForOfIteratorHelper$w(pattern.matchAll(/\$\{(.*?)\}/g)),
19593
19947
  _step;
19594
19948
  try {
19595
19949
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -20829,9 +21183,9 @@ function SelectClientRelationCatalog (_ref) {
20829
21183
  });
20830
21184
  }
20831
21185
 
20832
- 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; } } }; }
20833
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
20834
- function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21186
+ 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; } } }; }
21187
+ 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; } }
21188
+ 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; }
20835
21189
  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; }
20836
21190
  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; }
20837
21191
  function useSelectData (_ref) {
@@ -21087,7 +21441,7 @@ function useSelectData (_ref) {
21087
21441
  }
21088
21442
  emails = initData;
21089
21443
  optionByValue = new Map();
21090
- _iterator2 = _createForOfIteratorHelper$u(emails);
21444
+ _iterator2 = _createForOfIteratorHelper$v(emails);
21091
21445
  _context4.prev = 12;
21092
21446
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
21093
21447
  var email, list, opt;
@@ -21154,7 +21508,7 @@ function useSelectData (_ref) {
21154
21508
  }
21155
21509
  keys = initData;
21156
21510
  _optionByValue = new Map();
21157
- _iterator3 = _createForOfIteratorHelper$u(keys);
21511
+ _iterator3 = _createForOfIteratorHelper$v(keys);
21158
21512
  _context4.prev = 35;
21159
21513
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
21160
21514
  var key, list, opt;
@@ -21382,7 +21736,7 @@ function useSelectData (_ref) {
21382
21736
  var verifySelection = function verifySelection(opt) {
21383
21737
  if (disabledConfig == undefined) return [];
21384
21738
  var _missingFields = [];
21385
- var _iterator = _createForOfIteratorHelper$u(disabledConfig),
21739
+ var _iterator = _createForOfIteratorHelper$v(disabledConfig),
21386
21740
  _step;
21387
21741
  try {
21388
21742
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -22595,9 +22949,9 @@ function FormSlider(_ref) {
22595
22949
  });
22596
22950
  }
22597
22951
 
22598
- 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; } } }; }
22599
- 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; } }
22600
- 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; }
22952
+ 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; } } }; }
22953
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
22954
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22601
22955
  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; }
22602
22956
  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; }
22603
22957
  function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
@@ -22712,7 +23066,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
22712
23066
  mappingData: state.data,
22713
23067
  callback: function callback(data) {
22714
23068
  if (!item.callbackMapping) return;
22715
- var _iterator = _createForOfIteratorHelper$t(item.callbackMapping),
23069
+ var _iterator = _createForOfIteratorHelper$u(item.callbackMapping),
22716
23070
  _step;
22717
23071
  try {
22718
23072
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -22962,9 +23316,9 @@ function isReadonly(item, data) {
22962
23316
 
22963
23317
  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; }
22964
23318
  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; }
22965
- function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
22966
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
22967
- function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23319
+ 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; } } }; }
23320
+ 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; } }
23321
+ 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; }
22968
23322
  var Presets = function Presets(_ref) {
22969
23323
  var state = _ref.state,
22970
23324
  apiHandler = _ref.apiHandler,
@@ -22999,7 +23353,7 @@ var Presets = function Presets(_ref) {
22999
23353
  if (state.selectedItems == undefined) return;
23000
23354
  setIsModalVisible(false);
23001
23355
  var names = [];
23002
- var _iterator = _createForOfIteratorHelper$s(state.selectedItems),
23356
+ var _iterator = _createForOfIteratorHelper$t(state.selectedItems),
23003
23357
  _step;
23004
23358
  try {
23005
23359
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -23557,9 +23911,9 @@ var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
23557
23911
 
23558
23912
  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; }
23559
23913
  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; }
23560
- function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(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; } } }; }
23561
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
23562
- function _arrayLikeToArray$r(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; }
23914
+ function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
23915
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
23916
+ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23563
23917
  function useRoleSelectorData (_ref) {
23564
23918
  var userId = _ref.userId,
23565
23919
  id = _ref.id;
@@ -23716,7 +24070,7 @@ function useRoleSelectorData (_ref) {
23716
24070
  } else {
23717
24071
  var internalOptions = options;
23718
24072
  var organizationList = [];
23719
- var _iterator = _createForOfIteratorHelper$r(selected),
24073
+ var _iterator = _createForOfIteratorHelper$s(selected),
23720
24074
  _step;
23721
24075
  try {
23722
24076
  var _loop = function _loop() {
@@ -23851,7 +24205,7 @@ function useRoleSelectorData (_ref) {
23851
24205
  while (1) switch (_context5.prev = _context5.next) {
23852
24206
  case 0:
23853
24207
  setLoading(true);
23854
- _iterator2 = _createForOfIteratorHelper$r(addedRoles);
24208
+ _iterator2 = _createForOfIteratorHelper$s(addedRoles);
23855
24209
  _context5.prev = 2;
23856
24210
  _iterator2.s();
23857
24211
  case 4:
@@ -23860,7 +24214,7 @@ function useRoleSelectorData (_ref) {
23860
24214
  break;
23861
24215
  }
23862
24216
  role = _step2.value;
23863
- _iterator4 = _createForOfIteratorHelper$r(role.organizations);
24217
+ _iterator4 = _createForOfIteratorHelper$s(role.organizations);
23864
24218
  _context5.prev = 7;
23865
24219
  _iterator4.s();
23866
24220
  case 9:
@@ -23900,7 +24254,7 @@ function useRoleSelectorData (_ref) {
23900
24254
  _iterator2.f();
23901
24255
  return _context5.finish(30);
23902
24256
  case 33:
23903
- _iterator3 = _createForOfIteratorHelper$r(removedRoles);
24257
+ _iterator3 = _createForOfIteratorHelper$s(removedRoles);
23904
24258
  _context5.prev = 34;
23905
24259
  _iterator3.s();
23906
24260
  case 36:
@@ -23909,7 +24263,7 @@ function useRoleSelectorData (_ref) {
23909
24263
  break;
23910
24264
  }
23911
24265
  _role = _step3.value;
23912
- _iterator5 = _createForOfIteratorHelper$r(_role.organizations);
24266
+ _iterator5 = _createForOfIteratorHelper$s(_role.organizations);
23913
24267
  _context5.prev = 39;
23914
24268
  _iterator5.s();
23915
24269
  case 41:
@@ -23986,7 +24340,7 @@ function _updateRoles() {
23986
24340
  return fetchUserRoles(apiHandler, userId, currentOrganization);
23987
24341
  case 3:
23988
24342
  userRoles = _context7.sent;
23989
- _iterator6 = _createForOfIteratorHelper$r(roles);
24343
+ _iterator6 = _createForOfIteratorHelper$s(roles);
23990
24344
  _context7.prev = 5;
23991
24345
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
23992
24346
  var _removedRole$organiza3;
@@ -24324,9 +24678,9 @@ styleInject(css_248z$I);
24324
24678
 
24325
24679
  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; }
24326
24680
  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; }
24327
- function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(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; } } }; }
24328
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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$q(r, a) : void 0; } }
24329
- function _arrayLikeToArray$q(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; }
24681
+ function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(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; } } }; }
24682
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
24683
+ function _arrayLikeToArray$r(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; }
24330
24684
  function generateCSV(_x, _x2) {
24331
24685
  return _generateCSV.apply(this, arguments);
24332
24686
  }
@@ -24356,7 +24710,7 @@ function _generateCSV() {
24356
24710
  data = res.data;
24357
24711
  count += res.data.length;
24358
24712
  total = res.total;
24359
- _iterator = _createForOfIteratorHelper$q(data);
24713
+ _iterator = _createForOfIteratorHelper$r(data);
24360
24714
  _context2.prev = 10;
24361
24715
  _iterator.s();
24362
24716
  case 12:
@@ -24366,7 +24720,7 @@ function _generateCSV() {
24366
24720
  }
24367
24721
  parent = _step.value;
24368
24722
  line = [];
24369
- _iterator2 = _createForOfIteratorHelper$q(exportParams.fields);
24723
+ _iterator2 = _createForOfIteratorHelper$r(exportParams.fields);
24370
24724
  try {
24371
24725
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
24372
24726
  field = _step2.value;
@@ -24509,9 +24863,9 @@ function _downloadFile() {
24509
24863
 
24510
24864
  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; }
24511
24865
  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; }
24512
- function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(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; } } }; }
24513
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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$p(r, a) : void 0; } }
24514
- function _arrayLikeToArray$p(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; }
24866
+ function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(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; } } }; }
24867
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(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$q(r, a) : void 0; } }
24868
+ function _arrayLikeToArray$q(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; }
24515
24869
  var deletedObjects = [];
24516
24870
  var addedObjects = [];
24517
24871
 
@@ -24636,7 +24990,7 @@ function useRelationSelectorData (_ref) {
24636
24990
  });
24637
24991
  roles = [];
24638
24992
  filter = {};
24639
- _iterator3 = _createForOfIteratorHelper$p(configuration.search.fields);
24993
+ _iterator3 = _createForOfIteratorHelper$q(configuration.search.fields);
24640
24994
  try {
24641
24995
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
24642
24996
  searchField = _step3.value;
@@ -24783,7 +25137,7 @@ function useRelationSelectorData (_ref) {
24783
25137
  filteredItems.push(data === null || data === void 0 ? void 0 : data._id);
24784
25138
  }
24785
25139
  }
24786
- _iterator4 = _createForOfIteratorHelper$p(addedObjects);
25140
+ _iterator4 = _createForOfIteratorHelper$q(addedObjects);
24787
25141
  _context3.prev = 7;
24788
25142
  _iterator4.s();
24789
25143
  case 9:
@@ -24920,7 +25274,7 @@ function useRelationSelectorData (_ref) {
24920
25274
  return;
24921
25275
  }
24922
25276
  });
24923
- var _iterator = _createForOfIteratorHelper$p(activeItems),
25277
+ var _iterator = _createForOfIteratorHelper$q(activeItems),
24924
25278
  _step;
24925
25279
  try {
24926
25280
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -25050,7 +25404,7 @@ function useRelationSelectorData (_ref) {
25050
25404
  function mapToCascaderData(data) {
25051
25405
  var options = [];
25052
25406
  var tempCascaderData = [];
25053
- var _iterator2 = _createForOfIteratorHelper$p(data),
25407
+ var _iterator2 = _createForOfIteratorHelper$q(data),
25054
25408
  _step2;
25055
25409
  try {
25056
25410
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -25134,9 +25488,9 @@ function useRelationSelectorData (_ref) {
25134
25488
 
25135
25489
  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; }
25136
25490
  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; }
25137
- 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; } } }; }
25138
- 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; } }
25139
- 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; }
25491
+ function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(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; } } }; }
25492
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(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$p(r, a) : void 0; } }
25493
+ function _arrayLikeToArray$p(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; }
25140
25494
  function resolveActionErrorText(action, t) {
25141
25495
  if (!action.errorText) return undefined;
25142
25496
  return t(action.errorText);
@@ -25161,7 +25515,7 @@ function ActionButton (_ref) {
25161
25515
  var ButtonType = type == 'Button' ? Button : A;
25162
25516
  var disable = false;
25163
25517
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
25164
- var _iterator = _createForOfIteratorHelper$o(ruleData !== null && ruleData !== void 0 ? ruleData : data),
25518
+ var _iterator = _createForOfIteratorHelper$p(ruleData !== null && ruleData !== void 0 ? ruleData : data),
25165
25519
  _step;
25166
25520
  try {
25167
25521
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -25258,7 +25612,7 @@ function ActionButton (_ref) {
25258
25612
  _context.next = 20;
25259
25613
  break;
25260
25614
  }
25261
- _iterator2 = _createForOfIteratorHelper$o(action.switchValues);
25615
+ _iterator2 = _createForOfIteratorHelper$p(action.switchValues);
25262
25616
  try {
25263
25617
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
25264
25618
  element = _step2.value;
@@ -25321,7 +25675,7 @@ function ActionButton (_ref) {
25321
25675
  switch (action.actionType) {
25322
25676
  case 'SwitchButton':
25323
25677
  var switchLabel;
25324
- var _iterator3 = _createForOfIteratorHelper$o(action.switchLable),
25678
+ var _iterator3 = _createForOfIteratorHelper$p(action.switchLable),
25325
25679
  _step3;
25326
25680
  try {
25327
25681
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -25452,12 +25806,12 @@ function A(props) {
25452
25806
  return /*#__PURE__*/jsx("a", _objectSpread$1h({}, props));
25453
25807
  }
25454
25808
 
25455
- 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; } } }; }
25456
- 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; } }
25457
- 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; }
25809
+ 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; } } }; }
25810
+ 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; } }
25811
+ 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; }
25458
25812
  function filter$1(input, getActiveItem, filterFields) {
25459
25813
  var filter = {};
25460
- var _iterator = _createForOfIteratorHelper$n(filterFields),
25814
+ var _iterator = _createForOfIteratorHelper$o(filterFields),
25461
25815
  _step;
25462
25816
  try {
25463
25817
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -27348,9 +27702,9 @@ var ImageCropper = function ImageCropper(_ref, ref) {
27348
27702
  };
27349
27703
  var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
27350
27704
 
27351
- 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; } } }; }
27352
- 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; } }
27353
- 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; }
27705
+ 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; } } }; }
27706
+ 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; } }
27707
+ 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; }
27354
27708
  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; }
27355
27709
  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; }
27356
27710
  function useDescriptions (_ref) {
@@ -27446,7 +27800,7 @@ function _getDisplayData() {
27446
27800
  while (1) switch (_context4.prev = _context4.next) {
27447
27801
  case 0:
27448
27802
  displayData = _objectSpread$1b({}, data);
27449
- _iterator = _createForOfIteratorHelper$m(items);
27803
+ _iterator = _createForOfIteratorHelper$n(items);
27450
27804
  _context4.prev = 2;
27451
27805
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
27452
27806
  var item, itemWithMappingData, apiHandler, response, mappingData;
@@ -27562,9 +27916,9 @@ var DescriptionWrapper = function DescriptionWrapper(_ref) {
27562
27916
  };
27563
27917
  var Description = observer(DescriptionWrapper);
27564
27918
 
27565
- 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; } } }; }
27566
- 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; } }
27567
- 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; }
27919
+ 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; } } }; }
27920
+ 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; } }
27921
+ 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; }
27568
27922
  var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
27569
27923
  var id = _ref.id;
27570
27924
  var _useDivaCore = useDivaCore(),
@@ -27625,7 +27979,7 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
27625
27979
  case 0:
27626
27980
  setLoading(true);
27627
27981
  _context.prev = 1;
27628
- _iterator = _createForOfIteratorHelper$l(organizations);
27982
+ _iterator = _createForOfIteratorHelper$m(organizations);
27629
27983
  _context.prev = 3;
27630
27984
  _iterator.s();
27631
27985
  case 5:
@@ -28259,9 +28613,9 @@ function BooleanCell (_ref) {
28259
28613
  }
28260
28614
  }
28261
28615
 
28262
- 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; } } }; }
28263
- 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; } }
28264
- 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; }
28616
+ 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; } } }; }
28617
+ 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; } }
28618
+ 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; }
28265
28619
  function StringCell (_ref) {
28266
28620
  var children = _ref.children,
28267
28621
  column = _ref.column,
@@ -28379,7 +28733,7 @@ function matchesColorCondition(record, value, operation, field, onValue) {
28379
28733
  }
28380
28734
  function getColor(column, record, value) {
28381
28735
  if (column.color && record) {
28382
- var _iterator = _createForOfIteratorHelper$k(column.color),
28736
+ var _iterator = _createForOfIteratorHelper$l(column.color),
28383
28737
  _step;
28384
28738
  try {
28385
28739
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -28574,9 +28928,9 @@ function DropdownCell (_ref) {
28574
28928
  }
28575
28929
  }
28576
28930
 
28577
- 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; } } }; }
28578
- 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; } }
28579
- 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; }
28931
+ 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; } } }; }
28932
+ 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; } }
28933
+ 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; }
28580
28934
  function MediaViewerCell (_ref) {
28581
28935
  var children = _ref.children,
28582
28936
  column = _ref.column;
@@ -28600,7 +28954,7 @@ function MediaViewerCell (_ref) {
28600
28954
  if (column.imageEnding && !url.endsWith('glb')) previewUrl = url.endsWith('.jpg') ? url.replace('.jpg', '') + column.imageEnding + '.jpg' : url.replace('.png', '') + column.imageEnding + '.png';
28601
28955
  if (column.includedFileEndings) {
28602
28956
  var supported = false;
28603
- var _iterator = _createForOfIteratorHelper$j(column.includedFileEndings),
28957
+ var _iterator = _createForOfIteratorHelper$k(column.includedFileEndings),
28604
28958
  _step;
28605
28959
  try {
28606
28960
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -28945,15 +29299,15 @@ function MediaItemViewerCell (_ref) {
28945
29299
  });
28946
29300
  }
28947
29301
 
28948
- 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; } } }; }
28949
- 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; } }
28950
- 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; }
29302
+ 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; } } }; }
29303
+ 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; } }
29304
+ 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; }
28951
29305
  function IconCell (_ref) {
28952
29306
  var children = _ref.children,
28953
29307
  column = _ref.column;
28954
29308
  if (!column) throw new Error('icon column doesnt support editing');
28955
29309
  function resolveIconMapping(value) {
28956
- var _iterator = _createForOfIteratorHelper$i(column.iconMapping),
29310
+ var _iterator = _createForOfIteratorHelper$j(column.iconMapping),
28957
29311
  _step;
28958
29312
  try {
28959
29313
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -29525,9 +29879,9 @@ var SMChart = function SMChart(props) {
29525
29879
  }) : /*#__PURE__*/jsx(Fragment, {});
29526
29880
  };
29527
29881
 
29528
- function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
29529
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
29530
- function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29882
+ 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; } } }; }
29883
+ 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; } }
29884
+ 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; }
29531
29885
  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; }
29532
29886
  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; }
29533
29887
 
@@ -29609,11 +29963,17 @@ var useTools = function useTools(_ref) {
29609
29963
  });
29610
29964
  };
29611
29965
  var updateInformationWindow = function updateInformationWindow(codex, open) {
29612
- root.contentStore.rightToolBar.addTools(createInformationWindow(codex, open));
29613
- if (open) {
29614
- root.contentStore.rightToolBar.selectTool('info');
29615
- root.contentStore.rightToolBar.hidden = false;
29966
+ var toolbar = root.contentStore.rightToolBar;
29967
+ toolbar.addTools(createInformationWindow(codex, open));
29968
+ if (!open) return;
29969
+ // A detached info window lives in its own browser window — bring it to front
29970
+ // (same as clicking its rail item) instead of opening the empty docked panel.
29971
+ if (toolbar.isDetached('info')) {
29972
+ toolbar.focusPopout('info');
29973
+ return;
29616
29974
  }
29975
+ toolbar.selectTool('info');
29976
+ toolbar.hidden = false;
29617
29977
  };
29618
29978
  var updateConfigurator = function updateConfigurator(parameters) {
29619
29979
  root.contentStore.rightToolBar.addTools(createConfigurator(parameters));
@@ -29632,7 +29992,7 @@ var useTools = function useTools(_ref) {
29632
29992
  if (mainInformationWindowCodex) {
29633
29993
  tools.push(createInformationWindow(mainInformationWindowCodex, false));
29634
29994
  }
29635
- var _iterator = _createForOfIteratorHelper$h(conditionalTools || []),
29995
+ var _iterator = _createForOfIteratorHelper$i(conditionalTools || []),
29636
29996
  _step;
29637
29997
  try {
29638
29998
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -29692,9 +30052,9 @@ function InformationButton(_ref) {
29692
30052
 
29693
30053
  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; }
29694
30054
  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; }
29695
- 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; } } }; }
29696
- 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; } }
29697
- 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; }
30055
+ function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30056
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
30057
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29698
30058
  dayjs.extend(customParseFormat);
29699
30059
  dayjs.extend(advancedFormat);
29700
30060
  dayjs.extend(weekday);
@@ -29758,12 +30118,12 @@ var TableWrapper = function TableWrapper(_ref) {
29758
30118
  if (state.configuration.mergeFields && state.data) {
29759
30119
  for (var i = 0; i < data.length; i++) {
29760
30120
  var dt = flatten(data[i]);
29761
- var _iterator = _createForOfIteratorHelper$g(state.configuration.mergeFields),
30121
+ var _iterator = _createForOfIteratorHelper$h(state.configuration.mergeFields),
29762
30122
  _step;
29763
30123
  try {
29764
30124
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
29765
30125
  var merge = _step.value;
29766
- var _iterator2 = _createForOfIteratorHelper$g(merge.valueKeys),
30126
+ var _iterator2 = _createForOfIteratorHelper$h(merge.valueKeys),
29767
30127
  _step2;
29768
30128
  try {
29769
30129
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -30183,7 +30543,7 @@ function CopyButton(_ref5) {
30183
30543
  case 0:
30184
30544
  copyAction = state.configuration.copyAction;
30185
30545
  if (((_state$configuration$20 = state.configuration.copyAction) === null || _state$configuration$20 === void 0 ? void 0 : _state$configuration$20.apiInterface) != undefined) {
30186
- _iterator3 = _createForOfIteratorHelper$g(state.selected);
30546
+ _iterator3 = _createForOfIteratorHelper$h(state.selected);
30187
30547
  try {
30188
30548
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
30189
30549
  selectedRow = _step3.value;
@@ -30314,7 +30674,7 @@ function BulkAction(_ref8) {
30314
30674
  var allowed = useMemo(function () {
30315
30675
  // if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
30316
30676
  if (!action.rule) return true;
30317
- var _iterator4 = _createForOfIteratorHelper$g(action.rule),
30677
+ var _iterator4 = _createForOfIteratorHelper$h(action.rule),
30318
30678
  _step4;
30319
30679
  try {
30320
30680
  var _loop = function _loop() {
@@ -31695,9 +32055,9 @@ function objectHash (obj) {
31695
32055
  return hash(hashable);
31696
32056
  }
31697
32057
 
31698
- function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31699
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
31700
- function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
32058
+ 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; } } }; }
32059
+ 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; } }
32060
+ 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; }
31701
32061
  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; }
31702
32062
  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; }
31703
32063
  var LOG$8 = getLogger('Backoffice', 'TableData');
@@ -32160,7 +32520,7 @@ function useTableData (_ref) {
32160
32520
  })) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
32161
32521
  }
32162
32522
  mapToggle = {};
32163
- _iterator = _createForOfIteratorHelper$f((_configuration$filter25 = (_configuration$filter26 = configuration.filter) === null || _configuration$filter26 === void 0 || (_configuration$filter26 = _configuration$filter26.toggle) === null || _configuration$filter26 === void 0 ? void 0 : _configuration$filter26.fields) !== null && _configuration$filter25 !== void 0 ? _configuration$filter25 : []);
32523
+ _iterator = _createForOfIteratorHelper$g((_configuration$filter25 = (_configuration$filter26 = configuration.filter) === null || _configuration$filter26 === void 0 || (_configuration$filter26 = _configuration$filter26.toggle) === null || _configuration$filter26 === void 0 ? void 0 : _configuration$filter26.fields) !== null && _configuration$filter25 !== void 0 ? _configuration$filter25 : []);
32164
32524
  try {
32165
32525
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
32166
32526
  field = _step.value;
@@ -32441,9 +32801,9 @@ function Table (props) {
32441
32801
  });
32442
32802
  }
32443
32803
 
32444
- function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(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; } } }; }
32445
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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$e(r, a) : void 0; } }
32446
- function _arrayLikeToArray$e(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; }
32804
+ function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
32805
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
32806
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
32447
32807
  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; }
32448
32808
  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; }
32449
32809
  function useAGGrid (_ref) {
@@ -32567,7 +32927,7 @@ function useAGGrid (_ref) {
32567
32927
  _context.next = 51;
32568
32928
  break;
32569
32929
  }
32570
- _iterator = _createForOfIteratorHelper$e(configuration.mergerFields);
32930
+ _iterator = _createForOfIteratorHelper$f(configuration.mergerFields);
32571
32931
  _context.prev = 9;
32572
32932
  _iterator.s();
32573
32933
  case 11:
@@ -32584,7 +32944,7 @@ function useAGGrid (_ref) {
32584
32944
  }
32585
32945
  merged = '';
32586
32946
  first = true;
32587
- _iterator2 = _createForOfIteratorHelper$e(mergeEntry.fieldId);
32947
+ _iterator2 = _createForOfIteratorHelper$f(mergeEntry.fieldId);
32588
32948
  _context.prev = 18;
32589
32949
  _iterator2.s();
32590
32950
  case 20:
@@ -33102,9 +33462,9 @@ var CustomText$1 = observer(CustomText);
33102
33462
 
33103
33463
  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; }
33104
33464
  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; }
33105
- 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; } } }; }
33106
- 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; } }
33107
- 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; }
33465
+ function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(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; } } }; }
33466
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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$e(r, a) : void 0; } }
33467
+ function _arrayLikeToArray$e(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; }
33108
33468
  function useFilterBoxData (id) {
33109
33469
  var root = useStore();
33110
33470
  var _useMemo = useMemo(function () {
@@ -33152,7 +33512,7 @@ function useFilterBoxData (id) {
33152
33512
  }
33153
33513
  function reducer(state, actions) {
33154
33514
  var ob = {};
33155
- var _iterator = _createForOfIteratorHelper$d(actions),
33515
+ var _iterator = _createForOfIteratorHelper$e(actions),
33156
33516
  _step;
33157
33517
  try {
33158
33518
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -33175,9 +33535,9 @@ function useFilterBoxData (id) {
33175
33535
  };
33176
33536
  }
33177
33537
 
33178
- function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
33179
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
33180
- function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33538
+ 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; } } }; }
33539
+ 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; } }
33540
+ 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; }
33181
33541
  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; }
33182
33542
  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; }
33183
33543
  var FilterBox = /*#__PURE__*/memo(function (_ref) {
@@ -33315,7 +33675,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
33315
33675
  }
33316
33676
  function getLabelByValue(targetValue, data) {
33317
33677
  if (!data) return;
33318
- var _iterator = _createForOfIteratorHelper$c(data),
33678
+ var _iterator = _createForOfIteratorHelper$d(data),
33319
33679
  _step;
33320
33680
  try {
33321
33681
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -45894,9 +46254,9 @@ styleInject(css_248z$o);
45894
46254
 
45895
46255
  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; }
45896
46256
  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; }
45897
- 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; } } }; }
45898
- 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; } }
45899
- 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; }
46257
+ function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
46258
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
46259
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
45900
46260
  /**
45901
46261
  * Parse / serialize option-combination "actions" cell strings (decisionType 2).
45902
46262
  * Format: ACTION_TYPE:body with optional suffix =REFERENCE_TYPE#tail
@@ -46089,7 +46449,7 @@ function parseActionsCellValue(values) {
46089
46449
  var list = values !== null && values !== void 0 ? values : [];
46090
46450
  var actions = [];
46091
46451
  var dropped = [];
46092
- var _iterator = _createForOfIteratorHelper$b(list),
46452
+ var _iterator = _createForOfIteratorHelper$c(list),
46093
46453
  _step;
46094
46454
  try {
46095
46455
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -46218,7 +46578,7 @@ function serializeAction(action) {
46218
46578
  }
46219
46579
  function serializeActions(actions) {
46220
46580
  var out = [];
46221
- var _iterator2 = _createForOfIteratorHelper$b(actions),
46581
+ var _iterator2 = _createForOfIteratorHelper$c(actions),
46222
46582
  _step2;
46223
46583
  try {
46224
46584
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -54121,9 +54481,9 @@ styleInject(css_248z$f);
54121
54481
 
54122
54482
  function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
54123
54483
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
54124
- 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; } } }; }
54125
- 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; } }
54126
- 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; }
54484
+ 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; } } }; }
54485
+ 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; } }
54486
+ 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; }
54127
54487
  /**
54128
54488
  * Builds the initial item list. When `selectedUrls` (the persisted
54129
54489
  * `renderImages`) are present, the matching slides are selected and ordered
@@ -54146,7 +54506,7 @@ function buildItems(slides, selectedUrls) {
54146
54506
  }));
54147
54507
  var selected = [];
54148
54508
  var rest = [];
54149
- var _iterator = _createForOfIteratorHelper$a(withMeta),
54509
+ var _iterator = _createForOfIteratorHelper$b(withMeta),
54150
54510
  _step;
54151
54511
  try {
54152
54512
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -54257,7 +54617,7 @@ function AIImageSelector(_ref2) {
54257
54617
  // Running order number among the selected items, in list order.
54258
54618
  var counter = 0;
54259
54619
  var orderByKey = new Map();
54260
- var _iterator2 = _createForOfIteratorHelper$a(items),
54620
+ var _iterator2 = _createForOfIteratorHelper$b(items),
54261
54621
  _step2;
54262
54622
  try {
54263
54623
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -56532,9 +56892,9 @@ function useRenderApproveSession(_ref) {
56532
56892
 
56533
56893
  function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
56534
56894
  function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
56535
- function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(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; } } }; }
56536
- function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(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$9(r, a) : void 0; } }
56537
- function _arrayLikeToArray$9(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; }
56895
+ 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; } } }; }
56896
+ 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; } }
56897
+ 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; }
56538
56898
  var LOG$4 = getLogger('Backoffice', 'RenderApprove');
56539
56899
  function getMediaItemId(job) {
56540
56900
  var list = job === null || job === void 0 ? void 0 : job.mediaItems;
@@ -56640,7 +57000,7 @@ function _fetchProductMedia() {
56640
57000
  seen = new Set();
56641
57001
  if (excludeUrl) seen.add(excludeUrl);
56642
57002
  result = [];
56643
- _iterator2 = _createForOfIteratorHelper$9(sorted);
57003
+ _iterator2 = _createForOfIteratorHelper$a(sorted);
56644
57004
  _context5.prev = 12;
56645
57005
  _iterator2.s();
56646
57006
  case 14:
@@ -56934,7 +57294,7 @@ function useRenderJobData(id, refreshKey) {
56934
57294
  return typeof (image === null || image === void 0 ? void 0 : image.url) === 'string' && image.url.length > 0;
56935
57295
  }) : [];
56936
57296
  productByUrl = new Map();
56937
- _iterator = _createForOfIteratorHelper$9(productMedia);
57297
+ _iterator = _createForOfIteratorHelper$a(productMedia);
56938
57298
  try {
56939
57299
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
56940
57300
  m = _step.value;
@@ -59021,9 +59381,9 @@ function RichContentItemField(_ref) {
59021
59381
 
59022
59382
  function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
59023
59383
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
59024
- function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(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; } } }; }
59025
- function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(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$8(r, a) : void 0; } }
59026
- function _arrayLikeToArray$8(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; }
59384
+ function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(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; } } }; }
59385
+ function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(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$9(r, a) : void 0; } }
59386
+ function _arrayLikeToArray$9(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; }
59027
59387
  var NotificationDetails = observer(/*#__PURE__*/React.forwardRef(NotificationDetails$1));
59028
59388
  var CONTENT_ITEM_TOOL_ID = 'WYSIWYG_ContentItem';
59029
59389
  function NotificationDetails$1(_ref, ref) {
@@ -59147,7 +59507,7 @@ function NotificationDetails$1(_ref, ref) {
59147
59507
  case 0:
59148
59508
  setIsAutoTranslating(true);
59149
59509
  _context.prev = 1;
59150
- _iterator = _createForOfIteratorHelper$8(getTranslatableFieldPaths());
59510
+ _iterator = _createForOfIteratorHelper$9(getTranslatableFieldPaths());
59151
59511
  _context.prev = 3;
59152
59512
  _iterator.s();
59153
59513
  case 5:
@@ -59907,9 +60267,297 @@ var toolbarLayout = "toolbar-layout-DUuBn";
59907
60267
  var toolbarContent = "toolbar-content-GxyU6";
59908
60268
  var spinnerRoot = "spinner-root-4UgwL";
59909
60269
  var spinnerContainer = "spinner-container-4jAGD";
59910
- var css_248z$7 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n\n.spinner-root-4UgwL {\n flex: 1;\n}\n\n.spinner-container-4jAGD {\n display: flex;\n}\n";
60270
+ var css_248z$7 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n\n.spinner-root-4UgwL {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.spinner-container-4jAGD {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n";
59911
60271
  styleInject(css_248z$7);
59912
60272
 
60273
+ function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(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; } } }; }
60274
+ function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(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$8(r, a) : void 0; } }
60275
+ function _arrayLikeToArray$8(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; }
60276
+ /** Windows parked briefly on cleanup so a StrictMode remount can reclaim them (re-opening would be popup-blocked). */
60277
+ var parkedWindows = new Map();
60278
+
60279
+ /** Id on the innermost carrier so the injected style can target the tool root under it. */
60280
+ var SCROLL_HOST_ID = 'diva-popout-scroll-host';
60281
+
60282
+ /** Identifies THIS page load: a child's watchdog self-closes when the opener is gone or carries a different token (main window reloaded). */
60283
+ var HOST_SESSION_TOKEN = Math.random().toString(36).slice(2);
60284
+ window.__divaPopoutSession = HOST_SESSION_TOKEN;
60285
+ function acquireWindow(key, features) {
60286
+ var parked = parkedWindows.get(key);
60287
+ if (parked) {
60288
+ window.clearTimeout(parked.timer);
60289
+ parkedWindows["delete"](key);
60290
+ if (!parked.win.closed) {
60291
+ // Reused window — reset the document so the effect can prepare it from scratch.
60292
+ parked.win.document.head.innerHTML = '';
60293
+ parked.win.document.body.innerHTML = '';
60294
+ return parked.win;
60295
+ }
60296
+ }
60297
+ return window.open('', '', features);
60298
+ }
60299
+
60300
+ /** Last bounds written per key — polled geometry rarely changes, so unchanged bounds skip the synchronous localStorage write. */
60301
+ var lastPersistedBounds = new Map();
60302
+
60303
+ /** Best-effort: records the live window geometry. Ignores the bogus tiny sizes a window can report mid-open. */
60304
+ function persistBounds(key, win) {
60305
+ try {
60306
+ if (win.closed) return;
60307
+ var bounds = {
60308
+ width: win.outerWidth,
60309
+ height: win.outerHeight,
60310
+ left: win.screenX,
60311
+ top: win.screenY
60312
+ };
60313
+ if (bounds.width < 100 || bounds.height < 100) return;
60314
+ var last = lastPersistedBounds.get(key);
60315
+ if (last && last.width === bounds.width && last.height === bounds.height && last.left === bounds.left && last.top === bounds.top) return;
60316
+ lastPersistedBounds.set(key, bounds);
60317
+ updateToolPreferences(key, {
60318
+ popoutBounds: bounds
60319
+ });
60320
+ } catch (_unused) {
60321
+ // reading geometry off a dying window can throw — position memory is non-essential.
60322
+ }
60323
+ }
60324
+ function parkWindow(key, win) {
60325
+ if (win.closed) return;
60326
+ var timer = window.setTimeout(function () {
60327
+ parkedWindows["delete"](key);
60328
+ win.close();
60329
+ }, 200);
60330
+ parkedWindows.set(key, {
60331
+ win: win,
60332
+ timer: timer
60333
+ });
60334
+ }
60335
+
60336
+ /**
60337
+ * Copies the parent's styles into the child document and keeps them synced: antd
60338
+ * (cssinjs) and lazy chunks INSERT <style> tags at runtime, and AG Grid's theming
60339
+ * API REWRITES existing style tags in place — both must reach the child.
60340
+ */
60341
+ function syncHeadStyles(sourceDoc, targetDoc) {
60342
+ var clones = new Map();
60343
+ var copy = function copy(node) {
60344
+ if (!(node instanceof Element) || clones.has(node)) return;
60345
+ var isStyle = node.tagName === 'STYLE';
60346
+ var isStylesheetLink = node.tagName === 'LINK' && node.rel === 'stylesheet';
60347
+ if (!isStyle && !isStylesheetLink) return;
60348
+ var clone = node.cloneNode(true);
60349
+ clones.set(node, clone);
60350
+ targetDoc.head.appendChild(clone);
60351
+ };
60352
+ sourceDoc.head.querySelectorAll('style, link[rel="stylesheet"]').forEach(copy);
60353
+ var observer = new MutationObserver(function (mutations) {
60354
+ var _iterator = _createForOfIteratorHelper$8(mutations),
60355
+ _step;
60356
+ try {
60357
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
60358
+ var _mutation$target$pare;
60359
+ var mutation = _step.value;
60360
+ mutation.addedNodes.forEach(copy);
60361
+ mutation.removedNodes.forEach(function (node) {
60362
+ var _clones$get;
60363
+ if (!(node instanceof Element)) return;
60364
+ (_clones$get = clones.get(node)) === null || _clones$get === void 0 || _clones$get.remove();
60365
+ clones["delete"](node);
60366
+ });
60367
+ // In-place rewrites (AG Grid theming): mirror the owning <style>'s full content.
60368
+ var owner = mutation.target instanceof Element ? mutation.target.closest('style') : (_mutation$target$pare = mutation.target.parentElement) === null || _mutation$target$pare === void 0 ? void 0 : _mutation$target$pare.closest('style');
60369
+ if (owner) {
60370
+ var clone = clones.get(owner);
60371
+ if (clone) clone.textContent = owner.textContent;
60372
+ }
60373
+ }
60374
+ } catch (err) {
60375
+ _iterator.e(err);
60376
+ } finally {
60377
+ _iterator.f();
60378
+ }
60379
+ });
60380
+ observer.observe(sourceDoc.head, {
60381
+ childList: true,
60382
+ subtree: true,
60383
+ characterData: true
60384
+ });
60385
+ return function () {
60386
+ return observer.disconnect();
60387
+ };
60388
+ }
60389
+
60390
+ /**
60391
+ * Minimal ancestor-scope carriers for the popout content, carrying ONLY the class
60392
+ * tokens that ancestor-scoped CSS in this app is known to key on: the diva-core
60393
+ * component wrapper class (`diva-component-*`) and the theme class
60394
+ * (`darkmode`/`lightmode`, mirrored from body). Deliberately NOT a clone of the full
60395
+ * ancestor chain — copying arbitrary wrapper classes (ant-layout, content containers, …)
60396
+ * imports their side-effect styling into the popout.
60397
+ *
60398
+ * Full-height boxes (not `display:contents`) so the tool's `height:100%` resolves and it
60399
+ * fills the window; a scoped style (see SCROLL_HOST_ID) makes the tool root scroll.
60400
+ */
60401
+ function buildScopeCarriers(anchor, targetParent) {
60402
+ var _anchor$closest$class, _anchor$closest;
60403
+ var doc = targetParent.ownerDocument;
60404
+ var componentClass = Array.from((_anchor$closest$class = anchor === null || anchor === void 0 || (_anchor$closest = anchor.closest('[class*="diva-component-"]')) === null || _anchor$closest === void 0 ? void 0 : _anchor$closest.classList) !== null && _anchor$closest$class !== void 0 ? _anchor$closest$class : []).filter(function (cls) {
60405
+ return cls.startsWith('diva-component-');
60406
+ });
60407
+ var componentCarrier = doc.createElement('div');
60408
+ componentCarrier.className = componentClass.join(' ');
60409
+ componentCarrier.style.cssText = 'height:100%;width:100%;';
60410
+ targetParent.appendChild(componentCarrier);
60411
+ var themeCarrier = doc.createElement('div');
60412
+ // Fixed-height frame in the height:100% chain; the tool root inside is the scroll container.
60413
+ themeCarrier.id = SCROLL_HOST_ID;
60414
+ themeCarrier.style.cssText = 'height:100%;width:100%;position:relative;overflow:hidden;';
60415
+ var syncTheme = function syncTheme() {
60416
+ themeCarrier.className = document.body.classList.contains('darkmode') ? 'darkmode' : 'lightmode';
60417
+ };
60418
+ syncTheme();
60419
+ componentCarrier.appendChild(themeCarrier);
60420
+ return {
60421
+ innermost: themeCarrier,
60422
+ syncTheme: syncTheme
60423
+ };
60424
+ }
60425
+
60426
+ /**
60427
+ * Renders its children into a REAL browser window (`window.open`) via a React portal.
60428
+ * The JavaScript (React tree, contexts, stores) keeps running in the MAIN window —
60429
+ * the child is only a rendering surface, so nothing re-initializes there. The parent
60430
+ * document's styles and the body class (darkmode) are mirrored into the child.
60431
+ */
60432
+ var PopoutWindow = function PopoutWindow(_ref) {
60433
+ var windowKey = _ref.windowKey,
60434
+ _ref$boundsKey = _ref.boundsKey,
60435
+ boundsKey = _ref$boundsKey === void 0 ? windowKey : _ref$boundsKey,
60436
+ title = _ref.title,
60437
+ _ref$width = _ref.width,
60438
+ width = _ref$width === void 0 ? 1000 : _ref$width,
60439
+ _ref$height = _ref.height,
60440
+ height = _ref$height === void 0 ? 750 : _ref$height,
60441
+ anchor = _ref.anchor,
60442
+ onClose = _ref.onClose,
60443
+ onWindow = _ref.onWindow,
60444
+ children = _ref.children;
60445
+ var _useState = useState(null),
60446
+ _useState2 = _slicedToArray(_useState, 2),
60447
+ container = _useState2[0],
60448
+ setContainer = _useState2[1];
60449
+ var winRef = useRef(null);
60450
+ // Latest-callback refs so the one-shot open effect never re-runs on prop identity changes.
60451
+ var onCloseRef = useRef(onClose);
60452
+ onCloseRef.current = onClose;
60453
+ var onWindowRef = useRef(onWindow);
60454
+ onWindowRef.current = onWindow;
60455
+ var anchorRef = useRef(anchor);
60456
+ anchorRef.current = anchor;
60457
+ useEffect(function () {
60458
+ var _anchorRef$current, _onWindowRef$current;
60459
+ // Restore the last size + position for this tool (or its slot) if we have one, else fall back to the props.
60460
+ var stored = readToolPreferences(boundsKey).popoutBounds;
60461
+ var features = stored ? "popup=yes,width=".concat(stored.width, ",height=").concat(stored.height, ",left=").concat(stored.left, ",top=").concat(stored.top) : "popup=yes,width=".concat(width, ",height=").concat(height);
60462
+ var win = acquireWindow(windowKey, features);
60463
+ if (!win) {
60464
+ // Popup blocked — fall back to staying docked.
60465
+ onCloseRef.current();
60466
+ return undefined;
60467
+ }
60468
+ winRef.current = win;
60469
+ var doc = win.document;
60470
+ // Relative asset URLs in copied CSS must resolve against the parent's origin.
60471
+ var base = doc.createElement('base');
60472
+ base.href = document.baseURI;
60473
+ doc.head.appendChild(base);
60474
+ // Watchdog running IN the child: self-close when the opener is closed or is a
60475
+ // DIFFERENT page load (main window reloaded → new session token).
60476
+ var watchdog = doc.createElement('script');
60477
+ watchdog.textContent = "(function(){var t='".concat(HOST_SESSION_TOKEN, "';setInterval(function(){") + "try{if(!window.opener||window.opener.closed||window.opener.__divaPopoutSession!==t){window.close();}}" + "catch(e){window.close();}},800);})();";
60478
+ doc.head.appendChild(watchdog);
60479
+ var stopStyleSync = syncHeadStyles(document, doc);
60480
+ // The tool root (antd Layout) fills the window and scrolls if it overflows — the popout's
60481
+ // fallback scroll, mirroring the docked `.container`. Popout doc only; docked untouched.
60482
+ var scrollStyle = doc.createElement('style');
60483
+ scrollStyle.textContent = "#".concat(SCROLL_HOST_ID, " > .ant-layout{height:100%;overflow:auto;}");
60484
+ doc.head.appendChild(scrollStyle);
60485
+ doc.body.style.margin = '0';
60486
+ doc.body.style.overflow = 'hidden';
60487
+ var mount = doc.createElement('div');
60488
+ // Fixed-height root of the height:100% chain; the scroll lives on the tool root inside.
60489
+ mount.style.cssText = 'height:100vh;overflow:hidden;';
60490
+ doc.body.appendChild(mount);
60491
+ // Scope carriers: the diva-component wrapper class + theme class — the ancestors
60492
+ // that scoped CSS (`.diva-component-X .darkmode …`) needs to keep matching.
60493
+ var carriers = buildScopeCarriers((_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.call(anchorRef), mount);
60494
+ // Mirror the body class list (body.darkmode selectors) + the theme carrier.
60495
+ var syncBody = function syncBody() {
60496
+ doc.body.className = document.body.className;
60497
+ carriers.syncTheme();
60498
+ };
60499
+ syncBody();
60500
+ var bodyClassObserver = new MutationObserver(syncBody);
60501
+ bodyClassObserver.observe(document.body, {
60502
+ attributes: true,
60503
+ attributeFilter: ['class']
60504
+ });
60505
+ (_onWindowRef$current = onWindowRef.current) === null || _onWindowRef$current === void 0 || _onWindowRef$current.call(onWindowRef, win);
60506
+ // Popouts are limbs of the main window's JS context — close them when it unloads
60507
+ // (reload or close), otherwise they linger as dead, frozen windows.
60508
+ var closeOnParentUnload = function closeOnParentUnload() {
60509
+ return win.close();
60510
+ };
60511
+ window.addEventListener('pagehide', closeOnParentUnload);
60512
+ // 'pagehide' is unreliable for window.close — poll instead. A child RELOAD wipes the
60513
+ // portaled DOM (the child has no JS to rebuild it) — treat that as closed too.
60514
+ var closePoll = window.setInterval(function () {
60515
+ var gone = win.closed;
60516
+ if (!gone) {
60517
+ try {
60518
+ var _win$document;
60519
+ gone = !((_win$document = win.document) !== null && _win$document !== void 0 && (_win$document = _win$document.body) !== null && _win$document !== void 0 && _win$document.contains(mount));
60520
+ } catch (_unused2) {
60521
+ gone = true;
60522
+ }
60523
+ }
60524
+ if (gone) onCloseRef.current();
60525
+ // Keep geometry current so it survives a native OS close (handle unreadable by then).
60526
+ else persistBounds(boundsKey, win);
60527
+ }, 400);
60528
+ setContainer(carriers.innermost);
60529
+ return function () {
60530
+ var _onWindowRef$current2;
60531
+ window.clearInterval(closePoll);
60532
+ // Capture geometry on redock (window still open here).
60533
+ persistBounds(boundsKey, win);
60534
+ window.removeEventListener('pagehide', closeOnParentUnload);
60535
+ bodyClassObserver.disconnect();
60536
+ stopStyleSync();
60537
+ (_onWindowRef$current2 = onWindowRef.current) === null || _onWindowRef$current2 === void 0 || _onWindowRef$current2.call(onWindowRef, undefined);
60538
+ winRef.current = null;
60539
+ // Parked (not closed): a StrictMode remount reclaims it; a real unmount lets
60540
+ // the park timer close it a moment later.
60541
+ parkWindow(windowKey, win);
60542
+ };
60543
+ // eslint-disable-next-line react-hooks/exhaustive-deps
60544
+ }, []);
60545
+ useEffect(function () {
60546
+ if (winRef.current && !winRef.current.closed) winRef.current.document.title = title;
60547
+ }, [title, container]);
60548
+ if (!container) return null;
60549
+ return /*#__PURE__*/createPortal(
60550
+ /*#__PURE__*/
60551
+ // antd portals (dropdowns, modals, tooltips) must anchor in the window they open in, not the main document.
60552
+ jsx(ConfigProvider$1, {
60553
+ getPopupContainer: function getPopupContainer(node) {
60554
+ var _node$ownerDocument$b, _node$ownerDocument;
60555
+ return (_node$ownerDocument$b = node === null || node === void 0 || (_node$ownerDocument = node.ownerDocument) === null || _node$ownerDocument === void 0 ? void 0 : _node$ownerDocument.body) !== null && _node$ownerDocument$b !== void 0 ? _node$ownerDocument$b : document.body;
60556
+ },
60557
+ children: children
60558
+ }), container);
60559
+ };
60560
+
59913
60561
  var LOG$2 = getLogger('Backoffice', 'ErrorBoundary');
59914
60562
  var ErrorBoundary = function ErrorBoundary(_ref) {
59915
60563
  var children = _ref.children,
@@ -65790,9 +66438,31 @@ var AiPromptImageTester = observer(function (_ref) {
65790
66438
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
65791
66439
  function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
65792
66440
  var Toolbar = function Toolbar(_ref) {
66441
+ var _toolBar$currentOpenT;
65793
66442
  var position = _ref.position;
66443
+ // Aliased: the tool-rail map below already binds `t` to the iterated tool.
66444
+ var _useTranslation = useTranslation(),
66445
+ translate = _useTranslation.t;
65794
66446
  var root = useStore();
65795
66447
  var toolBar = useDeferredValue(position === 'bottom' ? root.contentStore.bottomToolBar : root.contentStore.rightToolBar);
66448
+
66449
+ // Lazy keep-alive: a tool mounts on its first visible activation and then stays mounted
66450
+ // (hidden via CSS when inactive) until it is removed from the toolbar. Runs on every
66451
+ // render (guarded in the store) — tools can be replaced/re-added outside of selection
66452
+ // changes and must keep their mounted flag.
66453
+ var currentOpenToolId = (_toolBar$currentOpenT = toolBar.currentOpenTool) === null || _toolBar$currentOpenT === void 0 ? void 0 : _toolBar$currentOpenT.id;
66454
+ useEffect(function () {
66455
+ if (!toolBar.hidden && currentOpenToolId) toolBar.markMounted(currentOpenToolId);
66456
+ });
66457
+
66458
+ // Detached tools are scoped to the catalog section: navigating OUT of it closes their
66459
+ // windows immediately (orphaned detached tools are removed entirely). Within the section
66460
+ // they survive navigation as long as the next view re-registers the same tool id
66461
+ // (orphan adoption); otherwise the store's grace timer closes them.
66462
+ var navPath = root.navigationState.path;
66463
+ useEffect(function () {
66464
+ if (navPath && !navPath.startsWith('/catalogs')) toolBar.closeOrphanedDetached();
66465
+ }, [navPath, toolBar]);
65796
66466
  var onMouseDown = function onMouseDown(mouseDownEvent) {
65797
66467
  mouseDownEvent.preventDefault();
65798
66468
  var startWidth = toolBar.width;
@@ -65800,13 +66470,16 @@ var Toolbar = function Toolbar(_ref) {
65800
66470
  x: mouseDownEvent.pageX,
65801
66471
  y: mouseDownEvent.pageY
65802
66472
  };
66473
+ // First opening movement of a drag pulls detached content back into the toolbar.
66474
+ var redockChecked = false;
65803
66475
  function onMouseMove(mouseMoveEvent) {
65804
66476
  mouseMoveEvent.preventDefault();
65805
- if (position === 'bottom') {
65806
- toolBar.width = startWidth + startPosition.y - mouseMoveEvent.pageY;
65807
- } else {
65808
- toolBar.width = startWidth + startPosition.x - mouseMoveEvent.pageX;
66477
+ var newWidth = position === 'bottom' ? startWidth + startPosition.y - mouseMoveEvent.pageY : startWidth + startPosition.x - mouseMoveEvent.pageX;
66478
+ if (!redockChecked && newWidth > startWidth) {
66479
+ redockChecked = true;
66480
+ toolBar.redockDetachedForDrag();
65809
66481
  }
66482
+ toolBar.width = newWidth;
65810
66483
  }
65811
66484
  function onMouseUp() {
65812
66485
  document.body.removeEventListener('mousemove', onMouseMove);
@@ -65837,20 +66510,49 @@ var Toolbar = function Toolbar(_ref) {
65837
66510
  children: /*#__PURE__*/jsx("div", {
65838
66511
  className: midHandle
65839
66512
  })
65840
- }), !toolBar.hidden && toolBar.currentOpenTool && /*#__PURE__*/jsx("div", {
65841
- className: classNames(container$2, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
65842
- style: {
65843
- width: position === 'right' ? 'var(--toolbar-width)' : undefined,
65844
- minWidth: position === 'right' ? 'var(--toolbar-width)' : undefined,
65845
- height: position === 'bottom' ? 'var(--toolbar-width)' : undefined,
65846
- minHeight: position === 'bottom' ? 'var(--toolbar-width)' : undefined
65847
- },
65848
- children: /*#__PURE__*/jsx(ToolElement, {
65849
- tool: toolBar.currentOpenTool,
65850
- toolbar: toolBar,
65851
- loading: toolBar.isLoading(toolBar.currentOpenTool.id)
65852
- })
65853
- }, toolBar.currentOpenTool.id), /*#__PURE__*/jsxs("div", {
66513
+ }), (toolBar.mountedTools.some(function (t) {
66514
+ return t.id === currentOpenToolId;
66515
+ }) || toolBar.hidden || !toolBar.currentOpenTool ? toolBar.mountedTools : [].concat(_toConsumableArray(toolBar.mountedTools), [toolBar.currentOpenTool])).map(function (t) {
66516
+ var _toolBar$currentOpenT2;
66517
+ // Detached tools render into their own browser window; the inline slot stays empty.
66518
+ if (toolBar.isDetached(t.id)) {
66519
+ return /*#__PURE__*/jsx(PopoutWindow, {
66520
+ windowKey: t.id,
66521
+ boundsKey: toolBar.preferenceKey(t.id),
66522
+ title: t.name,
66523
+ anchor: function anchor() {
66524
+ return toolBar.toolbarElement;
66525
+ },
66526
+ onClose: function onClose() {
66527
+ return toolBar.redock(t.id);
66528
+ },
66529
+ onWindow: function onWindow(win) {
66530
+ return toolBar.setPopoutWindow(t.id, win);
66531
+ },
66532
+ children: /*#__PURE__*/jsx(ToolElement, {
66533
+ tool: t,
66534
+ toolbar: toolBar,
66535
+ loading: toolBar.isLoading(t.id)
66536
+ })
66537
+ }, t.id);
66538
+ }
66539
+ var isActive = !toolBar.hidden && t.id === ((_toolBar$currentOpenT2 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT2 === void 0 ? void 0 : _toolBar$currentOpenT2.id);
66540
+ return /*#__PURE__*/jsx("div", {
66541
+ className: classNames(container$2, _defineProperty({}, unpinnedRight, !toolBar.pinned && position === 'right')),
66542
+ style: {
66543
+ display: isActive ? undefined : 'none',
66544
+ width: position === 'right' ? 'var(--toolbar-width)' : undefined,
66545
+ minWidth: position === 'right' ? 'var(--toolbar-width)' : undefined,
66546
+ height: position === 'bottom' ? 'var(--toolbar-width)' : undefined,
66547
+ minHeight: position === 'bottom' ? 'var(--toolbar-width)' : undefined
66548
+ },
66549
+ children: /*#__PURE__*/jsx(ToolElement, {
66550
+ tool: t,
66551
+ toolbar: toolBar,
66552
+ loading: toolBar.isLoading(t.id)
66553
+ })
66554
+ }, t.id);
66555
+ }), /*#__PURE__*/jsxs("div", {
65854
66556
  className: classNames(toolsSelector),
65855
66557
  children: [/*#__PURE__*/jsxs("div", {
65856
66558
  children: [!toolBar.pinned && /*#__PURE__*/jsx(PushpinOutlined, {
@@ -65866,20 +66568,40 @@ var Toolbar = function Toolbar(_ref) {
65866
66568
  rotate: 315
65867
66569
  })]
65868
66570
  }), toolBar.tools.map(function (t) {
65869
- var _toolBar$currentOpenT;
65870
- return /*#__PURE__*/jsx("div", {
65871
- className: classNames(toolItem, _defineProperty(_defineProperty({}, sel, t.id === ((_toolBar$currentOpenT = toolBar.currentOpenTool) === null || _toolBar$currentOpenT === void 0 ? void 0 : _toolBar$currentOpenT.id)), disabled, t.disabled)),
66571
+ var _toolBar$currentOpenT3;
66572
+ return /*#__PURE__*/jsxs("div", {
66573
+ className: classNames(toolItem, _defineProperty(_defineProperty({}, sel, !toolBar.isDetached(t.id) && t.id === ((_toolBar$currentOpenT3 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT3 === void 0 ? void 0 : _toolBar$currentOpenT3.id)), disabled, t.disabled)),
65872
66574
  onClick: function onClick() {
65873
- var _toolBar$currentOpenT2;
66575
+ var _toolBar$currentOpenT4;
65874
66576
  if (t.disabled) return;
65875
- if (((_toolBar$currentOpenT2 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT2 === void 0 ? void 0 : _toolBar$currentOpenT2.id) != t.id) {
66577
+ // A detached tool lives in its own window clicking its rail item focuses it.
66578
+ if (toolBar.isDetached(t.id)) {
66579
+ toolBar.focusPopout(t.id);
66580
+ return;
66581
+ }
66582
+ if (((_toolBar$currentOpenT4 = toolBar.currentOpenTool) === null || _toolBar$currentOpenT4 === void 0 ? void 0 : _toolBar$currentOpenT4.id) != t.id) {
65876
66583
  toolBar.selectTool(t.id);
65877
66584
  toolBar.hidden = false;
65878
66585
  } else {
65879
66586
  toolBar.hidden = !toolBar.hidden;
65880
66587
  }
65881
66588
  },
65882
- children: t.name
66589
+ children: [t.name, !t.disabled && /*#__PURE__*/jsx(ExportOutlined, {
66590
+ title: toolBar.isDetached(t.id) ? translate('backoffice.toolbar.redockTool', {
66591
+ defaultValue: 'Wieder andocken'
66592
+ }) : translate('backoffice.toolbar.detachTool', {
66593
+ defaultValue: 'In eigenem Fenster öffnen'
66594
+ }),
66595
+ style: {
66596
+ fontSize: 11,
66597
+ opacity: toolBar.isDetached(t.id) ? 1 : 0.55,
66598
+ transform: toolBar.isDetached(t.id) ? 'rotate(180deg)' : undefined
66599
+ },
66600
+ onClick: function onClick(e) {
66601
+ e.stopPropagation();
66602
+ if (toolBar.isDetached(t.id)) toolBar.redock(t.id);else toolBar.detach(t.id);
66603
+ }
66604
+ })]
65883
66605
  }, t.id);
65884
66606
  })]
65885
66607
  })]