@crystaldesign/diva-backoffice 26.10.0-beta.13 → 26.10.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/build/esm/index.js +606 -448
  2. package/build/types/backoffice/src/store/RootStore.d.ts +4 -1
  3. package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
  4. package/build/types/backoffice/src/ui/Maintenance/components/StatsRow.d.ts.map +1 -1
  5. package/build/types/backoffice/src/ui/Maintenance/components/StatusBadges.d.ts.map +1 -1
  6. package/build/types/backoffice/src/ui/Maintenance/types.d.ts +11 -1
  7. package/build/types/backoffice/src/ui/Maintenance/types.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/Table/utils/getColumnFilterProps.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts +1 -2
  10. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/FullscreenViewer/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts +2 -2
  13. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts +1 -2
  15. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts +1 -2
  17. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts +1 -2
  19. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts +1 -2
  21. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts +1 -2
  23. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts.map +1 -1
  24. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts +6 -0
  25. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts.map +1 -1
  26. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts +2 -0
  28. package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts +14 -0
  30. package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts.map +1 -0
  31. package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts +8 -0
  32. package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts.map +1 -0
  33. package/package.json +9 -9
@@ -86,7 +86,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
86
86
  import JSONEditor from 'jsoneditor';
87
87
  import 'jsoneditor/dist/jsoneditor.css';
88
88
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
89
- import { MinusCircleOutlined, PlusOutlined, CheckOutlined, CopyOutlined, CalculatorOutlined, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, InfoCircleOutlined as InfoCircleOutlined$1, DownloadOutlined as DownloadOutlined$1, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined as EditOutlined$1, EyeOutlined, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, SendOutlined as SendOutlined$1, CheckCircleOutlined as CheckCircleOutlined$1, CloseCircleOutlined, HeartOutlined, RightOutlined as RightOutlined$1, ReloadOutlined as ReloadOutlined$1, CloudSyncOutlined, HolderOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, PaperClipOutlined, SettingOutlined as SettingOutlined$1, KeyOutlined as KeyOutlined$1, RedoOutlined, MenuUnfoldOutlined, MenuFoldOutlined } from '@ant-design/icons';
89
+ import { MinusCircleOutlined, PlusOutlined, CheckOutlined, CopyOutlined, CalculatorOutlined, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, InfoCircleOutlined as InfoCircleOutlined$1, DownloadOutlined as DownloadOutlined$1, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined as EditOutlined$1, EyeOutlined, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, SendOutlined as SendOutlined$1, CheckCircleOutlined as CheckCircleOutlined$1, CloseCircleOutlined, PauseCircleOutlined, HeartOutlined, RightOutlined as RightOutlined$1, ReloadOutlined as ReloadOutlined$1, CloudSyncOutlined, HolderOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, PaperClipOutlined, SettingOutlined as SettingOutlined$1, KeyOutlined as KeyOutlined$1, RedoOutlined, MenuUnfoldOutlined, MenuFoldOutlined } from '@ant-design/icons';
90
90
  import classNames from 'classnames';
91
91
  import RTFEditor from '@crystaldesign/rtf-editor';
92
92
  import debounce from 'lodash/debounce';
@@ -196,9 +196,9 @@ import { GoogleGenAI } from '@google/genai';
196
196
  globalThis.process = { env:env };
197
197
  })();
198
198
 
199
- 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; } } }; }
200
- 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; } }
201
- 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; }
199
+ 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; } } }; }
200
+ 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; } }
201
+ 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; }
202
202
  function ownKeys$1G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
203
203
  function _objectSpread$1G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
204
204
  var LOG$o = getLogger('Backoffice', 'ApplyMapping');
@@ -233,7 +233,7 @@ function applyMapping (_ref) {
233
233
  function meetsCondition(map) {
234
234
  if (!map.condition) return true;
235
235
  var value = mappingData[map.condition.field];
236
- var _iterator = _createForOfIteratorHelper$D(map.condition.values),
236
+ var _iterator = _createForOfIteratorHelper$E(map.condition.values),
237
237
  _step;
238
238
  try {
239
239
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -312,7 +312,7 @@ function applyMapping (_ref) {
312
312
  _url.href = _url.href.replace('&' + m.targetField + '=${' + m.targetField + '}', '');
313
313
  }
314
314
  }
315
- var _iterator2 = _createForOfIteratorHelper$D(_url.searchParams.entries()),
315
+ var _iterator2 = _createForOfIteratorHelper$E(_url.searchParams.entries()),
316
316
  _step2;
317
317
  try {
318
318
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -14864,9 +14864,9 @@ function MenuLabel (_ref) {
14864
14864
  });
14865
14865
  }
14866
14866
 
14867
- 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; } } }; }
14868
- 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; } }
14869
- 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; }
14867
+ 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; } } }; }
14868
+ 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; } }
14869
+ 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; }
14870
14870
  function applyRule(_ref) {
14871
14871
  var rules = _ref.rules,
14872
14872
  data = _ref.data,
@@ -14875,7 +14875,7 @@ function applyRule(_ref) {
14875
14875
  //if or we start with false until the first time some result is true
14876
14876
  //if and we start with true until the frist time some result is false
14877
14877
  var result = !or;
14878
- var _iterator = _createForOfIteratorHelper$C(rules),
14878
+ var _iterator = _createForOfIteratorHelper$D(rules),
14879
14879
  _step;
14880
14880
  try {
14881
14881
  var _loop = function _loop() {
@@ -14947,7 +14947,7 @@ function aplyRules(_ref2) {
14947
14947
  if (!data || data.length == 0) return {
14948
14948
  applied: false
14949
14949
  };
14950
- var _iterator2 = _createForOfIteratorHelper$C(data),
14950
+ var _iterator2 = _createForOfIteratorHelper$D(data),
14951
14951
  _step2;
14952
14952
  try {
14953
14953
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -15741,9 +15741,9 @@ var ToolBarStore = /*#__PURE__*/function () {
15741
15741
 
15742
15742
  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; }
15743
15743
  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; }
15744
- 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; } } }; }
15745
- 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; } }
15746
- 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; }
15744
+ 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; } } }; }
15745
+ 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; } }
15746
+ 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; }
15747
15747
  var _default$6 = /*#__PURE__*/function () {
15748
15748
  function _default(root) {
15749
15749
  _classCallCheck(this, _default);
@@ -15780,7 +15780,7 @@ var _default$6 = /*#__PURE__*/function () {
15780
15780
  var initKeys = this.root.navigationState.path == '' ? [] : this.keysFormPath(this._menu, this.root.navigationState.path);
15781
15781
  var checkedKeys = [];
15782
15782
  var currentMenu = this._menu;
15783
- var _iterator = _createForOfIteratorHelper$B(initKeys),
15783
+ var _iterator = _createForOfIteratorHelper$C(initKeys),
15784
15784
  _step;
15785
15785
  try {
15786
15786
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -15789,7 +15789,7 @@ var _default$6 = /*#__PURE__*/function () {
15789
15789
  var level = currentMenu;
15790
15790
  var lastResolved = void 0;
15791
15791
  var chainOk = true;
15792
- var _iterator2 = _createForOfIteratorHelper$B(key),
15792
+ var _iterator2 = _createForOfIteratorHelper$C(key),
15793
15793
  _step2;
15794
15794
  try {
15795
15795
  var _loop = function _loop() {
@@ -17020,9 +17020,9 @@ var _default$3 = /*#__PURE__*/function () {
17020
17020
  }]);
17021
17021
  }();
17022
17022
 
17023
- 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; } } }; }
17024
- 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; } }
17025
- 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; }
17023
+ 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; } } }; }
17024
+ 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; } }
17025
+ 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; }
17026
17026
  var LOG$m = getLogger('Backoffice', 'DownloadStore');
17027
17027
  var DownloadStore = /*#__PURE__*/function () {
17028
17028
  function DownloadStore(_rootStore) {
@@ -17050,7 +17050,7 @@ var DownloadStore = /*#__PURE__*/function () {
17050
17050
  _context2.next = 23;
17051
17051
  break;
17052
17052
  }
17053
- _iterator = _createForOfIteratorHelper$A(action.download);
17053
+ _iterator = _createForOfIteratorHelper$B(action.download);
17054
17054
  _context2.prev = 8;
17055
17055
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
17056
17056
  var _download$params, _data$fileFormat, _data$fileUrl;
@@ -17446,7 +17446,7 @@ var DownloadStore = /*#__PURE__*/function () {
17446
17446
  successCount = 0;
17447
17447
  failedCount = 0;
17448
17448
  promises = [];
17449
- _iterator2 = _createForOfIteratorHelper$A(props.data);
17449
+ _iterator2 = _createForOfIteratorHelper$B(props.data);
17450
17450
  _context7.prev = 5;
17451
17451
  _iterator2.s();
17452
17452
  case 7:
@@ -17641,6 +17641,16 @@ var ContextStore = /*#__PURE__*/function () {
17641
17641
  }]);
17642
17642
  }();
17643
17643
 
17644
+ /**
17645
+ * Whether two router paths belong to the same route branch, i.e. they are equal or one is a sub route of the other
17646
+ * (e.g. `/admin/renderjobs` and its `/admin/renderjobs/renderapprove` sub route).
17647
+ *
17648
+ * Used to decide whether view state may survive a navigation.
17649
+ */
17650
+ function isRelatedRoutePath(from, to) {
17651
+ return from === to || from.startsWith("".concat(to, "/")) || to.startsWith("".concat(from, "/"));
17652
+ }
17653
+
17644
17654
  var _default$1 = /*#__PURE__*/function () {
17645
17655
  function _default(actions, handler, i18n, navigate, navigationState) {
17646
17656
  _classCallCheck(this, _default);
@@ -17658,7 +17668,10 @@ var _default$1 = /*#__PURE__*/function () {
17658
17668
  _defineProperty(this, "showSnow", void 0);
17659
17669
  _defineProperty(this, "translationService", undefined);
17660
17670
  _defineProperty(this, "navigationState", void 0);
17661
- /** In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`); lives for the SPA session. */
17671
+ /**
17672
+ * In-memory, per-table filter/sort/pagination/selection state (opt-in via `persistFilters`);
17673
+ * dropped as soon as the user navigates outside the table's own route branch.
17674
+ */
17662
17675
  _defineProperty(this, "_tableFilterStates", new Map());
17663
17676
  _defineProperty(this, "error", void 0);
17664
17677
  _defineProperty(this, "resetErrorBoundary", undefined);
@@ -17681,6 +17694,11 @@ var _default$1 = /*#__PURE__*/function () {
17681
17694
  }, {
17682
17695
  key: "updateNavigationState",
17683
17696
  value: function updateNavigationState(navigationState) {
17697
+ // Persisted table state may only survive a trip into a sub route (renderjobs table ↔ RenderApprove);
17698
+ // navigating anywhere else resets filter, sortation, pagination and selection.
17699
+ if (!isRelatedRoutePath(this.navigationState.path, navigationState.path)) {
17700
+ this._tableFilterStates.clear();
17701
+ }
17684
17702
  this.navigationState = navigationState;
17685
17703
  }
17686
17704
  }, {
@@ -18378,9 +18396,9 @@ var MediaItem = /*#__PURE__*/function () {
18378
18396
  }]);
18379
18397
  }();
18380
18398
 
18381
- 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; } } }; }
18382
- 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; } }
18383
- 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; }
18399
+ 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; } } }; }
18400
+ 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; } }
18401
+ 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; }
18384
18402
  function processFormMediaBeforeSave(_x, _x2, _x3) {
18385
18403
  return _processFormMediaBeforeSave.apply(this, arguments);
18386
18404
  }
@@ -18398,7 +18416,7 @@ function _processFormMediaBeforeSave() {
18398
18416
  _context.next = 3;
18399
18417
  return processItems(data, items, root);
18400
18418
  case 3:
18401
- _iterator = _createForOfIteratorHelper$z(removedMedias);
18419
+ _iterator = _createForOfIteratorHelper$A(removedMedias);
18402
18420
  _context.prev = 4;
18403
18421
  _iterator.s();
18404
18422
  case 6:
@@ -18440,7 +18458,7 @@ function _processItems() {
18440
18458
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
18441
18459
  while (1) switch (_context2.prev = _context2.next) {
18442
18460
  case 0:
18443
- _iterator2 = _createForOfIteratorHelper$z(items);
18461
+ _iterator2 = _createForOfIteratorHelper$A(items);
18444
18462
  _context2.prev = 1;
18445
18463
  _iterator2.s();
18446
18464
  case 3:
@@ -18562,9 +18580,9 @@ function getData$1(id, data) {
18562
18580
  }
18563
18581
  }
18564
18582
 
18565
- 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; } } }; }
18566
- 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; } }
18567
- 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; }
18583
+ 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; } } }; }
18584
+ 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; } }
18585
+ 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; }
18568
18586
  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; }
18569
18587
  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; }
18570
18588
  function toNamePath$2(name) {
@@ -18695,7 +18713,7 @@ function useFormData (_ref) {
18695
18713
  setSelectedItems = _useState14[1];
18696
18714
  var _onLoadFields = function onLoadFields(data) {
18697
18715
  var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems;
18698
- var _iterator = _createForOfIteratorHelper$y(items),
18716
+ var _iterator = _createForOfIteratorHelper$z(items),
18699
18717
  _step;
18700
18718
  try {
18701
18719
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -19018,7 +19036,7 @@ function useFormData (_ref) {
19018
19036
  };
19019
19037
  var getItem = function getItem(id) {
19020
19038
  var items = selectedItems;
19021
- var _iterator2 = _createForOfIteratorHelper$y(items),
19039
+ var _iterator2 = _createForOfIteratorHelper$z(items),
19022
19040
  _step2;
19023
19041
  try {
19024
19042
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -19194,7 +19212,7 @@ function useFormData (_ref) {
19194
19212
  return _getDynamicValue.apply(this, arguments);
19195
19213
  };
19196
19214
  items = selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
19197
- _iterator4 = _createForOfIteratorHelper$y(items);
19215
+ _iterator4 = _createForOfIteratorHelper$z(items);
19198
19216
  _context6.prev = 4;
19199
19217
  _iterator4.s();
19200
19218
  case 6:
@@ -19310,7 +19328,7 @@ function useFormData (_ref) {
19310
19328
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
19311
19329
  while (1) switch (_context3.prev = _context3.next) {
19312
19330
  case 0:
19313
- _iterator3 = _createForOfIteratorHelper$y(items);
19331
+ _iterator3 = _createForOfIteratorHelper$z(items);
19314
19332
  _context3.prev = 1;
19315
19333
  _iterator3.s();
19316
19334
  case 3:
@@ -19968,15 +19986,15 @@ var InputComponent = function InputComponent(_ref, ref) {
19968
19986
  };
19969
19987
  var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
19970
19988
 
19971
- 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; } } }; }
19972
- 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; } }
19973
- 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; }
19989
+ 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; } } }; }
19990
+ 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; } }
19991
+ 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; }
19974
19992
  function getCombinedValues(data, pattern) {
19975
19993
  if (!pattern || !data) {
19976
19994
  return data;
19977
19995
  }
19978
19996
  var value = pattern;
19979
- var _iterator = _createForOfIteratorHelper$x(pattern.matchAll(/\$\{(.*?)\}/g)),
19997
+ var _iterator = _createForOfIteratorHelper$y(pattern.matchAll(/\$\{(.*?)\}/g)),
19980
19998
  _step;
19981
19999
  try {
19982
20000
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -21216,9 +21234,9 @@ function SelectClientRelationCatalog (_ref) {
21216
21234
  });
21217
21235
  }
21218
21236
 
21219
- 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; } } }; }
21220
- 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; } }
21221
- 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; }
21237
+ 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; } } }; }
21238
+ 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; } }
21239
+ 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; }
21222
21240
  function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21223
21241
  function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21224
21242
  function useSelectData (_ref) {
@@ -21474,7 +21492,7 @@ function useSelectData (_ref) {
21474
21492
  }
21475
21493
  emails = initData;
21476
21494
  optionByValue = new Map();
21477
- _iterator2 = _createForOfIteratorHelper$w(emails);
21495
+ _iterator2 = _createForOfIteratorHelper$x(emails);
21478
21496
  _context4.prev = 12;
21479
21497
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
21480
21498
  var email, list, opt;
@@ -21541,7 +21559,7 @@ function useSelectData (_ref) {
21541
21559
  }
21542
21560
  keys = initData;
21543
21561
  _optionByValue = new Map();
21544
- _iterator3 = _createForOfIteratorHelper$w(keys);
21562
+ _iterator3 = _createForOfIteratorHelper$x(keys);
21545
21563
  _context4.prev = 35;
21546
21564
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
21547
21565
  var key, list, opt;
@@ -21769,7 +21787,7 @@ function useSelectData (_ref) {
21769
21787
  var verifySelection = function verifySelection(opt) {
21770
21788
  if (disabledConfig == undefined) return [];
21771
21789
  var _missingFields = [];
21772
- var _iterator = _createForOfIteratorHelper$w(disabledConfig),
21790
+ var _iterator = _createForOfIteratorHelper$x(disabledConfig),
21773
21791
  _step;
21774
21792
  try {
21775
21793
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -22982,9 +23000,9 @@ function FormSlider(_ref) {
22982
23000
  });
22983
23001
  }
22984
23002
 
22985
- 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; } } }; }
22986
- 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; } }
22987
- 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; }
23003
+ 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; } } }; }
23004
+ 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; } }
23005
+ 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; }
22988
23006
  function ownKeys$1q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22989
23007
  function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22990
23008
  function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
@@ -23099,7 +23117,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
23099
23117
  mappingData: state.data,
23100
23118
  callback: function callback(data) {
23101
23119
  if (!item.callbackMapping) return;
23102
- var _iterator = _createForOfIteratorHelper$v(item.callbackMapping),
23120
+ var _iterator = _createForOfIteratorHelper$w(item.callbackMapping),
23103
23121
  _step;
23104
23122
  try {
23105
23123
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -23349,9 +23367,9 @@ function isReadonly(item, data) {
23349
23367
 
23350
23368
  function ownKeys$1p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23351
23369
  function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23352
- 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; } } }; }
23353
- 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; } }
23354
- 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; }
23370
+ 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; } } }; }
23371
+ 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; } }
23372
+ 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; }
23355
23373
  var Presets = function Presets(_ref) {
23356
23374
  var state = _ref.state,
23357
23375
  apiHandler = _ref.apiHandler,
@@ -23386,7 +23404,7 @@ var Presets = function Presets(_ref) {
23386
23404
  if (state.selectedItems == undefined) return;
23387
23405
  setIsModalVisible(false);
23388
23406
  var names = [];
23389
- var _iterator = _createForOfIteratorHelper$u(state.selectedItems),
23407
+ var _iterator = _createForOfIteratorHelper$v(state.selectedItems),
23390
23408
  _step;
23391
23409
  try {
23392
23410
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -23944,9 +23962,9 @@ var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
23944
23962
 
23945
23963
  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; }
23946
23964
  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; }
23947
- 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; } } }; }
23948
- 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; } }
23949
- 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; }
23965
+ 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; } } }; }
23966
+ 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; } }
23967
+ 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; }
23950
23968
  function useRoleSelectorData (_ref) {
23951
23969
  var userId = _ref.userId,
23952
23970
  id = _ref.id;
@@ -24103,7 +24121,7 @@ function useRoleSelectorData (_ref) {
24103
24121
  } else {
24104
24122
  var internalOptions = options;
24105
24123
  var organizationList = [];
24106
- var _iterator = _createForOfIteratorHelper$t(selected),
24124
+ var _iterator = _createForOfIteratorHelper$u(selected),
24107
24125
  _step;
24108
24126
  try {
24109
24127
  var _loop = function _loop() {
@@ -24238,7 +24256,7 @@ function useRoleSelectorData (_ref) {
24238
24256
  while (1) switch (_context5.prev = _context5.next) {
24239
24257
  case 0:
24240
24258
  setLoading(true);
24241
- _iterator2 = _createForOfIteratorHelper$t(addedRoles);
24259
+ _iterator2 = _createForOfIteratorHelper$u(addedRoles);
24242
24260
  _context5.prev = 2;
24243
24261
  _iterator2.s();
24244
24262
  case 4:
@@ -24247,7 +24265,7 @@ function useRoleSelectorData (_ref) {
24247
24265
  break;
24248
24266
  }
24249
24267
  role = _step2.value;
24250
- _iterator4 = _createForOfIteratorHelper$t(role.organizations);
24268
+ _iterator4 = _createForOfIteratorHelper$u(role.organizations);
24251
24269
  _context5.prev = 7;
24252
24270
  _iterator4.s();
24253
24271
  case 9:
@@ -24287,7 +24305,7 @@ function useRoleSelectorData (_ref) {
24287
24305
  _iterator2.f();
24288
24306
  return _context5.finish(30);
24289
24307
  case 33:
24290
- _iterator3 = _createForOfIteratorHelper$t(removedRoles);
24308
+ _iterator3 = _createForOfIteratorHelper$u(removedRoles);
24291
24309
  _context5.prev = 34;
24292
24310
  _iterator3.s();
24293
24311
  case 36:
@@ -24296,7 +24314,7 @@ function useRoleSelectorData (_ref) {
24296
24314
  break;
24297
24315
  }
24298
24316
  _role = _step3.value;
24299
- _iterator5 = _createForOfIteratorHelper$t(_role.organizations);
24317
+ _iterator5 = _createForOfIteratorHelper$u(_role.organizations);
24300
24318
  _context5.prev = 39;
24301
24319
  _iterator5.s();
24302
24320
  case 41:
@@ -24373,7 +24391,7 @@ function _updateRoles() {
24373
24391
  return fetchUserRoles(apiHandler, userId, currentOrganization);
24374
24392
  case 3:
24375
24393
  userRoles = _context7.sent;
24376
- _iterator6 = _createForOfIteratorHelper$t(roles);
24394
+ _iterator6 = _createForOfIteratorHelper$u(roles);
24377
24395
  _context7.prev = 5;
24378
24396
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
24379
24397
  var _removedRole$organiza3;
@@ -24711,9 +24729,9 @@ styleInject(css_248z$N);
24711
24729
 
24712
24730
  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; }
24713
24731
  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; }
24714
- 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; } } }; }
24715
- 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; } }
24716
- 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; }
24732
+ 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; } } }; }
24733
+ 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; } }
24734
+ 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; }
24717
24735
  function generateCSV(_x, _x2) {
24718
24736
  return _generateCSV.apply(this, arguments);
24719
24737
  }
@@ -24743,7 +24761,7 @@ function _generateCSV() {
24743
24761
  data = res.data;
24744
24762
  count += res.data.length;
24745
24763
  total = res.total;
24746
- _iterator = _createForOfIteratorHelper$s(data);
24764
+ _iterator = _createForOfIteratorHelper$t(data);
24747
24765
  _context2.prev = 10;
24748
24766
  _iterator.s();
24749
24767
  case 12:
@@ -24753,7 +24771,7 @@ function _generateCSV() {
24753
24771
  }
24754
24772
  parent = _step.value;
24755
24773
  line = [];
24756
- _iterator2 = _createForOfIteratorHelper$s(exportParams.fields);
24774
+ _iterator2 = _createForOfIteratorHelper$t(exportParams.fields);
24757
24775
  try {
24758
24776
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
24759
24777
  field = _step2.value;
@@ -24896,9 +24914,9 @@ function _downloadFile() {
24896
24914
 
24897
24915
  function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24898
24916
  function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24899
- 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; } } }; }
24900
- 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; } }
24901
- 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; }
24917
+ 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; } } }; }
24918
+ 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; } }
24919
+ 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; }
24902
24920
  var deletedObjects = [];
24903
24921
  var addedObjects = [];
24904
24922
 
@@ -25023,7 +25041,7 @@ function useRelationSelectorData (_ref) {
25023
25041
  });
25024
25042
  roles = [];
25025
25043
  filter = {};
25026
- _iterator3 = _createForOfIteratorHelper$r(configuration.search.fields);
25044
+ _iterator3 = _createForOfIteratorHelper$s(configuration.search.fields);
25027
25045
  try {
25028
25046
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
25029
25047
  searchField = _step3.value;
@@ -25170,7 +25188,7 @@ function useRelationSelectorData (_ref) {
25170
25188
  filteredItems.push(data === null || data === void 0 ? void 0 : data._id);
25171
25189
  }
25172
25190
  }
25173
- _iterator4 = _createForOfIteratorHelper$r(addedObjects);
25191
+ _iterator4 = _createForOfIteratorHelper$s(addedObjects);
25174
25192
  _context3.prev = 7;
25175
25193
  _iterator4.s();
25176
25194
  case 9:
@@ -25307,7 +25325,7 @@ function useRelationSelectorData (_ref) {
25307
25325
  return;
25308
25326
  }
25309
25327
  });
25310
- var _iterator = _createForOfIteratorHelper$r(activeItems),
25328
+ var _iterator = _createForOfIteratorHelper$s(activeItems),
25311
25329
  _step;
25312
25330
  try {
25313
25331
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -25437,7 +25455,7 @@ function useRelationSelectorData (_ref) {
25437
25455
  function mapToCascaderData(data) {
25438
25456
  var options = [];
25439
25457
  var tempCascaderData = [];
25440
- var _iterator2 = _createForOfIteratorHelper$r(data),
25458
+ var _iterator2 = _createForOfIteratorHelper$s(data),
25441
25459
  _step2;
25442
25460
  try {
25443
25461
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -25521,9 +25539,9 @@ function useRelationSelectorData (_ref) {
25521
25539
 
25522
25540
  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; }
25523
25541
  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; }
25524
- 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; } } }; }
25525
- 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; } }
25526
- 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; }
25542
+ 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; } } }; }
25543
+ 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; } }
25544
+ 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; }
25527
25545
  function resolveActionErrorText(action, t) {
25528
25546
  if (!action.errorText) return undefined;
25529
25547
  return t(action.errorText);
@@ -25559,7 +25577,7 @@ function ActionButton (_ref) {
25559
25577
  };
25560
25578
  var disable = false;
25561
25579
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
25562
- var _iterator = _createForOfIteratorHelper$q(ruleData !== null && ruleData !== void 0 ? ruleData : data),
25580
+ var _iterator = _createForOfIteratorHelper$r(ruleData !== null && ruleData !== void 0 ? ruleData : data),
25563
25581
  _step;
25564
25582
  try {
25565
25583
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -25656,7 +25674,7 @@ function ActionButton (_ref) {
25656
25674
  _context.next = 20;
25657
25675
  break;
25658
25676
  }
25659
- _iterator2 = _createForOfIteratorHelper$q(action.switchValues);
25677
+ _iterator2 = _createForOfIteratorHelper$r(action.switchValues);
25660
25678
  try {
25661
25679
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
25662
25680
  element = _step2.value;
@@ -25719,7 +25737,7 @@ function ActionButton (_ref) {
25719
25737
  switch (action.actionType) {
25720
25738
  case 'SwitchButton':
25721
25739
  var switchLabel;
25722
- var _iterator3 = _createForOfIteratorHelper$q(action.switchLable),
25740
+ var _iterator3 = _createForOfIteratorHelper$r(action.switchLable),
25723
25741
  _step3;
25724
25742
  try {
25725
25743
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -25829,12 +25847,12 @@ function A(props) {
25829
25847
  return /*#__PURE__*/jsx("a", _objectSpread$1k({}, props));
25830
25848
  }
25831
25849
 
25832
- 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; } } }; }
25833
- 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; } }
25834
- 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; }
25850
+ 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; } } }; }
25851
+ 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; } }
25852
+ 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; }
25835
25853
  function filter$1(input, getActiveItem, filterFields) {
25836
25854
  var filter = {};
25837
- var _iterator = _createForOfIteratorHelper$p(filterFields),
25855
+ var _iterator = _createForOfIteratorHelper$q(filterFields),
25838
25856
  _step;
25839
25857
  try {
25840
25858
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -27725,9 +27743,9 @@ var ImageCropper = function ImageCropper(_ref, ref) {
27725
27743
  };
27726
27744
  var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
27727
27745
 
27728
- 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; } } }; }
27729
- 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; } }
27730
- 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; }
27746
+ 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; } } }; }
27747
+ 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; } }
27748
+ 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; }
27731
27749
  function ownKeys$1e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27732
27750
  function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27733
27751
  function useDescriptions (_ref) {
@@ -27823,7 +27841,7 @@ function _getDisplayData() {
27823
27841
  while (1) switch (_context4.prev = _context4.next) {
27824
27842
  case 0:
27825
27843
  displayData = _objectSpread$1e({}, data);
27826
- _iterator = _createForOfIteratorHelper$o(items);
27844
+ _iterator = _createForOfIteratorHelper$p(items);
27827
27845
  _context4.prev = 2;
27828
27846
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
27829
27847
  var item, itemWithMappingData, apiHandler, response, mappingData;
@@ -27939,9 +27957,9 @@ var DescriptionWrapper = function DescriptionWrapper(_ref) {
27939
27957
  };
27940
27958
  var Description = observer(DescriptionWrapper);
27941
27959
 
27942
- 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; } } }; }
27943
- 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; } }
27944
- 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; }
27960
+ 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; } } }; }
27961
+ 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; } }
27962
+ 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; }
27945
27963
  var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
27946
27964
  var id = _ref.id;
27947
27965
  var _useDivaCore = useDivaCore(),
@@ -28002,7 +28020,7 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
28002
28020
  case 0:
28003
28021
  setLoading(true);
28004
28022
  _context.prev = 1;
28005
- _iterator = _createForOfIteratorHelper$n(organizations);
28023
+ _iterator = _createForOfIteratorHelper$o(organizations);
28006
28024
  _context.prev = 3;
28007
28025
  _iterator.s();
28008
28026
  case 5:
@@ -28636,9 +28654,9 @@ function BooleanCell (_ref) {
28636
28654
  }
28637
28655
  }
28638
28656
 
28639
- 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; } } }; }
28640
- 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; } }
28641
- 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; }
28657
+ 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; } } }; }
28658
+ 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; } }
28659
+ 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; }
28642
28660
  function StringCell (_ref) {
28643
28661
  var children = _ref.children,
28644
28662
  column = _ref.column,
@@ -28756,7 +28774,7 @@ function matchesColorCondition(record, value, operation, field, onValue) {
28756
28774
  }
28757
28775
  function getColor(column, record, value) {
28758
28776
  if (column.color && record) {
28759
- var _iterator = _createForOfIteratorHelper$m(column.color),
28777
+ var _iterator = _createForOfIteratorHelper$n(column.color),
28760
28778
  _step;
28761
28779
  try {
28762
28780
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -28951,9 +28969,9 @@ function DropdownCell (_ref) {
28951
28969
  }
28952
28970
  }
28953
28971
 
28954
- 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; } } }; }
28955
- 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; } }
28956
- 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; }
28972
+ 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; } } }; }
28973
+ 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; } }
28974
+ 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; }
28957
28975
  function MediaViewerCell (_ref) {
28958
28976
  var children = _ref.children,
28959
28977
  column = _ref.column;
@@ -28977,7 +28995,7 @@ function MediaViewerCell (_ref) {
28977
28995
  if (column.imageEnding && !url.endsWith('glb')) previewUrl = url.endsWith('.jpg') ? url.replace('.jpg', '') + column.imageEnding + '.jpg' : url.replace('.png', '') + column.imageEnding + '.png';
28978
28996
  if (column.includedFileEndings) {
28979
28997
  var supported = false;
28980
- var _iterator = _createForOfIteratorHelper$l(column.includedFileEndings),
28998
+ var _iterator = _createForOfIteratorHelper$m(column.includedFileEndings),
28981
28999
  _step;
28982
29000
  try {
28983
29001
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -29322,15 +29340,15 @@ function MediaItemViewerCell (_ref) {
29322
29340
  });
29323
29341
  }
29324
29342
 
29325
- 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; } } }; }
29326
- 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; } }
29327
- 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; }
29343
+ 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; } } }; }
29344
+ 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; } }
29345
+ 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; }
29328
29346
  function IconCell (_ref) {
29329
29347
  var children = _ref.children,
29330
29348
  column = _ref.column;
29331
29349
  if (!column) throw new Error('icon column doesnt support editing');
29332
29350
  function resolveIconMapping(value) {
29333
- var _iterator = _createForOfIteratorHelper$k(column.iconMapping),
29351
+ var _iterator = _createForOfIteratorHelper$l(column.iconMapping),
29334
29352
  _step;
29335
29353
  try {
29336
29354
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -29902,9 +29920,9 @@ var SMChart = function SMChart(props) {
29902
29920
  }) : /*#__PURE__*/jsx(Fragment, {});
29903
29921
  };
29904
29922
 
29905
- 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; } } }; }
29906
- 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; } }
29907
- 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; }
29923
+ 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; } } }; }
29924
+ 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; } }
29925
+ 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; }
29908
29926
  function ownKeys$19(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29909
29927
  function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29910
29928
 
@@ -30015,7 +30033,7 @@ var useTools = function useTools(_ref) {
30015
30033
  if (mainInformationWindowCodex) {
30016
30034
  tools.push(createInformationWindow(mainInformationWindowCodex, false));
30017
30035
  }
30018
- var _iterator = _createForOfIteratorHelper$j(conditionalTools || []),
30036
+ var _iterator = _createForOfIteratorHelper$k(conditionalTools || []),
30019
30037
  _step;
30020
30038
  try {
30021
30039
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30075,9 +30093,9 @@ function InformationButton(_ref) {
30075
30093
 
30076
30094
  function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30077
30095
  function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30078
- 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; } } }; }
30079
- 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; } }
30080
- 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; }
30096
+ 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; } } }; }
30097
+ 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; } }
30098
+ 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; }
30081
30099
  dayjs.extend(customParseFormat);
30082
30100
  dayjs.extend(advancedFormat);
30083
30101
  dayjs.extend(weekday);
@@ -30141,12 +30159,12 @@ var TableWrapper = function TableWrapper(_ref) {
30141
30159
  if (state.configuration.mergeFields && state.data) {
30142
30160
  for (var i = 0; i < data.length; i++) {
30143
30161
  var dt = flatten(data[i]);
30144
- var _iterator = _createForOfIteratorHelper$i(state.configuration.mergeFields),
30162
+ var _iterator = _createForOfIteratorHelper$j(state.configuration.mergeFields),
30145
30163
  _step;
30146
30164
  try {
30147
30165
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
30148
30166
  var merge = _step.value;
30149
- var _iterator2 = _createForOfIteratorHelper$i(merge.valueKeys),
30167
+ var _iterator2 = _createForOfIteratorHelper$j(merge.valueKeys),
30150
30168
  _step2;
30151
30169
  try {
30152
30170
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -30566,7 +30584,7 @@ function CopyButton(_ref5) {
30566
30584
  case 0:
30567
30585
  copyAction = state.configuration.copyAction;
30568
30586
  if (((_state$configuration$20 = state.configuration.copyAction) === null || _state$configuration$20 === void 0 ? void 0 : _state$configuration$20.apiInterface) != undefined) {
30569
- _iterator3 = _createForOfIteratorHelper$i(state.selected);
30587
+ _iterator3 = _createForOfIteratorHelper$j(state.selected);
30570
30588
  try {
30571
30589
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
30572
30590
  selectedRow = _step3.value;
@@ -30697,7 +30715,7 @@ function BulkAction(_ref8) {
30697
30715
  var allowed = useMemo(function () {
30698
30716
  // if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
30699
30717
  if (!action.rule) return true;
30700
- var _iterator4 = _createForOfIteratorHelper$i(action.rule),
30718
+ var _iterator4 = _createForOfIteratorHelper$j(action.rule),
30701
30719
  _step4;
30702
30720
  try {
30703
30721
  var _loop = function _loop() {
@@ -30920,6 +30938,9 @@ function SelectionText(_ref10) {
30920
30938
  });
30921
30939
  }
30922
30940
 
30941
+ 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; } } }; }
30942
+ 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; } }
30943
+ 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; }
30923
30944
  function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30924
30945
  function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30925
30946
  function getColumnFilterProps (_ref) {
@@ -30948,16 +30969,26 @@ function getColumnFilterProps (_ref) {
30948
30969
  throw Error("".concat(filter, " is not a valid filter type."));
30949
30970
  }
30950
30971
  }
30972
+
30973
+ /** Rebuilds the picker values from the confirmed filter keys (`[from, 'gte', to, 'lte']`) so a restored filter is displayed. */
30974
+ var getIntervalFromSelectedKeys = function getIntervalFromSelectedKeys(selectedKeys) {
30975
+ var interval = {};
30976
+ for (var i = 0; i < selectedKeys.length; i += 2) {
30977
+ if (selectedKeys[i + 1] === 'gte') interval.from = Number(selectedKeys[i]);
30978
+ if (selectedKeys[i + 1] === 'lte') interval.to = Number(selectedKeys[i]);
30979
+ }
30980
+ return interval;
30981
+ };
30951
30982
  var intervalProps = function intervalProps(title) {
30952
30983
  return {
30953
30984
  filterDropdown: function filterDropdown(_ref2) {
30954
30985
  var setSelectedKeys = _ref2.setSelectedKeys,
30986
+ selectedKeys = _ref2.selectedKeys,
30955
30987
  confirm = _ref2.confirm,
30956
30988
  clearFilters = _ref2.clearFilters,
30957
30989
  visible = _ref2.visible;
30958
- var _useState = useState({
30959
- from: undefined,
30960
- to: undefined
30990
+ var _useState = useState(function () {
30991
+ return getIntervalFromSelectedKeys(selectedKeys);
30961
30992
  }),
30962
30993
  _useState2 = _slicedToArray(_useState, 2),
30963
30994
  interval = _useState2[0],
@@ -31002,13 +31033,12 @@ var intervalProps = function intervalProps(title) {
31002
31033
  children: [/*#__PURE__*/jsxs("span", {
31003
31034
  children: [t('filter.date.from'), ":"]
31004
31035
  }), /*#__PURE__*/jsx(DatePicker, {
31036
+ value: interval.from ? dayjs(interval.from) : null,
31005
31037
  onChange: function onChange(value) {
31006
- if (value) {
31007
- setInterval({
31008
- from: Math.floor(value.valueOf()),
31009
- to: interval.to
31010
- });
31011
- }
31038
+ return setInterval({
31039
+ from: value ? Math.floor(value.valueOf()) : undefined,
31040
+ to: interval.to
31041
+ });
31012
31042
  },
31013
31043
  style: {
31014
31044
  flexGrow: 1,
@@ -31025,13 +31055,12 @@ var intervalProps = function intervalProps(title) {
31025
31055
  children: [/*#__PURE__*/jsxs("span", {
31026
31056
  children: [t('filter.date.to2'), ":"]
31027
31057
  }), /*#__PURE__*/jsx(DatePicker, {
31058
+ value: interval.to ? dayjs(interval.to) : null,
31028
31059
  onChange: function onChange(value) {
31029
- if (value) {
31030
- setInterval({
31031
- to: Math.floor(value.valueOf()),
31032
- from: interval.from
31033
- });
31034
- }
31060
+ return setInterval({
31061
+ to: value ? Math.floor(value.valueOf()) : undefined,
31062
+ from: interval.from
31063
+ });
31035
31064
  },
31036
31065
  style: {
31037
31066
  flexGrow: 1,
@@ -31057,6 +31086,7 @@ var intervalProps = function intervalProps(title) {
31057
31086
  children: "Filter"
31058
31087
  }), /*#__PURE__*/jsx(Button, {
31059
31088
  onClick: function onClick() {
31089
+ setInterval({});
31060
31090
  clearFilters === null || clearFilters === void 0 || clearFilters();
31061
31091
  confirm();
31062
31092
  },
@@ -31094,7 +31124,7 @@ var advancedProps = function advancedProps(title) {
31094
31124
  children: /*#__PURE__*/jsxs(Space, {
31095
31125
  direction: "vertical",
31096
31126
  children: [/*#__PURE__*/jsxs(Select, {
31097
- defaultValue: "contains",
31127
+ value: selectedKeys[1] === undefined ? 'contains' : String(selectedKeys[1]),
31098
31128
  style: {
31099
31129
  width: 188,
31100
31130
  display: 'block'
@@ -31317,20 +31347,50 @@ var selectProps = function selectProps(title, filter) {
31317
31347
  }
31318
31348
  };
31319
31349
  };
31350
+
31351
+ /**
31352
+ * Rebuilds the values shown in the Select from the confirmed filter keys (`[...values, 'in']`) so a restored filter is
31353
+ * displayed. Values of a grouped option are collapsed back into that option.
31354
+ */
31355
+ var getMultiSelectDisplayValues = function getMultiSelectDisplayValues(selectedKeys, filter) {
31356
+ var values = selectedKeys[selectedKeys.length - 1] === 'in' ? selectedKeys.slice(0, -1) : selectedKeys;
31357
+ var displayValues = [];
31358
+ var _iterator = _createForOfIteratorHelper$i(values),
31359
+ _step;
31360
+ try {
31361
+ var _loop = function _loop() {
31362
+ var _filter$find;
31363
+ var value = _step.value;
31364
+ var option = (_filter$find = filter.find(function (f) {
31365
+ return f.value == value;
31366
+ })) !== null && _filter$find !== void 0 ? _filter$find : filter.find(function (f) {
31367
+ var _f$groupedValues;
31368
+ return (_f$groupedValues = f.groupedValues) === null || _f$groupedValues === void 0 ? void 0 : _f$groupedValues.some(function (g) {
31369
+ return g == value;
31370
+ });
31371
+ });
31372
+ if (option && !displayValues.includes(option.value)) displayValues.push(option.value);
31373
+ };
31374
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
31375
+ _loop();
31376
+ }
31377
+ } catch (err) {
31378
+ _iterator.e(err);
31379
+ } finally {
31380
+ _iterator.f();
31381
+ }
31382
+ return displayValues;
31383
+ };
31320
31384
  var multiSelectProps = function multiSelectProps(title, filter) {
31321
31385
  return {
31322
31386
  filterDropdown: function filterDropdown(_ref6) {
31323
- var setSelectedKeys = _ref6.setSelectedKeys;
31324
- _ref6.selectedKeys;
31325
- var confirm = _ref6.confirm,
31387
+ var setSelectedKeys = _ref6.setSelectedKeys,
31388
+ selectedKeys = _ref6.selectedKeys,
31389
+ confirm = _ref6.confirm,
31326
31390
  clearFilters = _ref6.clearFilters;
31327
31391
  _ref6.visible;
31328
31392
  var _useTranslation3 = useTranslation(),
31329
31393
  t = _useTranslation3.t;
31330
- var _useState3 = useState([]),
31331
- _useState4 = _slicedToArray(_useState3, 2),
31332
- displayselectedValues = _useState4[0],
31333
- setDisplaySelectedvalues = _useState4[1];
31334
31394
  var options = [];
31335
31395
  options = filter.map(function (f) {
31336
31396
  return _objectSpread$17(_objectSpread$17({}, f), {}, {
@@ -31338,9 +31398,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31338
31398
  });
31339
31399
  });
31340
31400
  var handleChange = function handleChange(value) {
31341
- setDisplaySelectedvalues(value);
31342
31401
  var filterValues = [];
31343
- var _loop = function _loop(i) {
31402
+ var _loop2 = function _loop2(i) {
31344
31403
  var filterVal = filter.find(function (f) {
31345
31404
  return f.value == value[i] && f.groupedValues;
31346
31405
  });
@@ -31351,7 +31410,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31351
31410
  }
31352
31411
  };
31353
31412
  for (var i = 0; i < value.length; i++) {
31354
- _loop(i);
31413
+ _loop2(i);
31355
31414
  }
31356
31415
  var selKeys = [].concat(filterValues, ['in']);
31357
31416
  setSelectedKeys(selKeys.length ? selKeys : []);
@@ -31368,11 +31427,10 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31368
31427
  children: /*#__PURE__*/jsx(Select, {
31369
31428
  mode: "multiple",
31370
31429
  allowClear: true,
31371
- value: displayselectedValues,
31430
+ value: getMultiSelectDisplayValues(selectedKeys, filter),
31372
31431
  style: {
31373
31432
  width: 188
31374
31433
  },
31375
- defaultValue: [],
31376
31434
  onChange: handleChange,
31377
31435
  options: options
31378
31436
  })
@@ -31390,7 +31448,6 @@ var multiSelectProps = function multiSelectProps(title, filter) {
31390
31448
  }
31391
31449
  }), /*#__PURE__*/jsx(Button, {
31392
31450
  onClick: function onClick() {
31393
- setDisplaySelectedvalues([]);
31394
31451
  clearFilters === null || clearFilters === void 0 || clearFilters();
31395
31452
  confirm();
31396
31453
  },
@@ -53109,7 +53166,7 @@ function InstancesBadge(_ref) {
53109
53166
  function StatusTag(_ref2) {
53110
53167
  var label = _ref2.label,
53111
53168
  status = _ref2.status;
53112
- var icon = status === 'ok' ? /*#__PURE__*/jsx(CheckCircleOutlined$1, {}) : status === 'failed' ? /*#__PURE__*/jsx(CloseCircleOutlined, {}) : /*#__PURE__*/jsx(MinusCircleOutlined, {});
53169
+ var icon = status === 'ok' ? /*#__PURE__*/jsx(CheckCircleOutlined$1, {}) : status === 'failed' ? /*#__PURE__*/jsx(CloseCircleOutlined, {}) : status === 'disabled' ? /*#__PURE__*/jsx(PauseCircleOutlined, {}) : /*#__PURE__*/jsx(MinusCircleOutlined, {});
53113
53170
  var color = status === 'ok' ? 'success' : status === 'failed' ? 'error' : 'default';
53114
53171
  return /*#__PURE__*/jsx(Tag$1, {
53115
53172
  icon: icon,
@@ -53336,6 +53393,27 @@ function StatsDescriptions(_ref) {
53336
53393
  label: t('backoffice.maintenance.stats.transformerTempFiles'),
53337
53394
  span: 2,
53338
53395
  children: data.transformerTempFiles
53396
+ }), data.cronJobs && /*#__PURE__*/jsx(Descriptions.Item, {
53397
+ label: "".concat(t('backoffice.maintenance.stats.cronJobs'), " (").concat(data.cronJobs.scheduled, ")"),
53398
+ span: 2,
53399
+ children: data.cronJobs.scheduled === 0 ? /*#__PURE__*/jsx(Text$3, {
53400
+ type: "secondary",
53401
+ children: t('backoffice.maintenance.stats.noCronJobs')
53402
+ }) : /*#__PURE__*/jsx("div", {
53403
+ style: {
53404
+ display: 'flex',
53405
+ flexDirection: 'column',
53406
+ gap: 2
53407
+ },
53408
+ children: data.cronJobs.jobs.map(function (job, index) {
53409
+ return /*#__PURE__*/jsxs(Text$3, {
53410
+ style: {
53411
+ fontSize: 12
53412
+ },
53413
+ children: [job.name, " (", job.status, ") \u2014 ", t('backoffice.maintenance.stats.nextRun'), ": ", formatDateTime(job.nextRun)]
53414
+ }, "".concat(job.name, "-").concat(index));
53415
+ })
53416
+ })
53339
53417
  })]
53340
53418
  });
53341
53419
  }
@@ -53501,7 +53579,7 @@ function RefreshRow(_ref4) {
53501
53579
  var isMulti = state.status === 'done' && Object.keys(state.instances).length > 1;
53502
53580
  var summary = state.status === 'done' ? getInstanceSummary(state.instances, function (v) {
53503
53581
  return Object.values(v).every(function (s) {
53504
- return s === 'ok';
53582
+ return s !== 'failed';
53505
53583
  });
53506
53584
  }) : null;
53507
53585
  return /*#__PURE__*/jsxs("div", {
@@ -54311,6 +54389,30 @@ function SessionHeader(_ref) {
54311
54389
  });
54312
54390
  }
54313
54391
 
54392
+ /** Mime types of images a browser cannot render in an `<img>` element. */
54393
+ var NON_RENDERABLE_MIME_TYPES = new Set(['image/tiff', 'image/tif']);
54394
+
54395
+ /**
54396
+ * Resolves the url a browser can actually display for a media entry.
54397
+ *
54398
+ * Render jobs with `fileFormat: 'tif'` produce TIFF results, which no browser
54399
+ * renders natively. The storage generates PNG variants for them, so the `big`
54400
+ * variant (falling back to `gal`, then the thumbnail) is displayed instead of
54401
+ * the raw `cdnUrl`. Mirrors the handling in the media item table cells.
54402
+ *
54403
+ * @param media the media entry to resolve, may be undefined while loading
54404
+ * @returns the displayable url, or `null` when no renderable source exists
54405
+ */
54406
+ function getViewerUrl(media) {
54407
+ var _media$url;
54408
+ if (!media) return null;
54409
+ if (media.mimeType && NON_RENDERABLE_MIME_TYPES.has(media.mimeType.toLowerCase())) {
54410
+ var _ref, _ref2, _ref3, _media$variants$big, _media$variants, _media$variants2, _media$variants3;
54411
+ return (_ref = (_ref2 = (_ref3 = (_media$variants$big = (_media$variants = media.variants) === null || _media$variants === void 0 ? void 0 : _media$variants.big) !== null && _media$variants$big !== void 0 ? _media$variants$big : (_media$variants2 = media.variants) === null || _media$variants2 === void 0 ? void 0 : _media$variants2.gal) !== null && _ref3 !== void 0 ? _ref3 : (_media$variants3 = media.variants) === null || _media$variants3 === void 0 ? void 0 : _media$variants3.std) !== null && _ref2 !== void 0 ? _ref2 : media.thumbnailUrl) !== null && _ref !== void 0 ? _ref : null;
54412
+ }
54413
+ return (_media$url = media.url) !== null && _media$url !== void 0 ? _media$url : null;
54414
+ }
54415
+
54314
54416
  var root$b = "root-bbDdW";
54315
54417
  var header$1 = "header--owh8";
54316
54418
  var content$1 = "content-q2m1c";
@@ -54326,10 +54428,8 @@ function isAr$1(media) {
54326
54428
  return (media === null || media === void 0 ? void 0 : media.mediaType) === 'AR';
54327
54429
  }
54328
54430
  function ImagePanel(_ref) {
54329
- var _media$url;
54330
54431
  var title = _ref.title,
54331
54432
  media = _ref.media,
54332
- loading = _ref.loading,
54333
54433
  alt = _ref.alt,
54334
54434
  onOpenFullscreen = _ref.onOpenFullscreen;
54335
54435
  var _useDivaCore = useDivaCore(),
@@ -54340,20 +54440,22 @@ function ImagePanel(_ref) {
54340
54440
  _useState2 = _slicedToArray(_useState, 2),
54341
54441
  status = _useState2[0],
54342
54442
  setStatus = _useState2[1];
54443
+ // TIFF results are not renderable in an <img>, so a PNG variant is shown instead.
54444
+ var viewerUrl = getViewerUrl(media);
54343
54445
  useEffect(function () {
54344
54446
  if (isAr$1(media)) {
54345
54447
  void actions.loadModelViewer();
54346
54448
  }
54347
- }, [actions, media === null || media === void 0 ? void 0 : media.url, media === null || media === void 0 ? void 0 : media.mediaType]);
54449
+ }, [actions, viewerUrl, media === null || media === void 0 ? void 0 : media.mediaType]);
54348
54450
  useEffect(function () {
54349
- if (typeof (media === null || media === void 0 ? void 0 : media.url) === 'string' && media.url.length > 0) {
54451
+ if (typeof viewerUrl === 'string' && viewerUrl.length > 0) {
54350
54452
  setStatus('loading');
54351
54453
  } else {
54352
54454
  setStatus('idle');
54353
54455
  }
54354
- }, [media === null || media === void 0 ? void 0 : media.url]);
54355
- var isResolving = loading || media === undefined;
54356
- var hasNoSource = !isResolving && ((media === null || media === void 0 ? void 0 : media.url) === null || (media === null || media === void 0 ? void 0 : media.url) === '' || (media === null || media === void 0 ? void 0 : media.url) === undefined);
54456
+ }, [viewerUrl]);
54457
+ var isResolving = media === undefined;
54458
+ var hasNoSource = !isResolving && (viewerUrl === null || viewerUrl === '');
54357
54459
  var showAr = !isResolving && !hasNoSource && isAr$1(media);
54358
54460
  var showImage = !isResolving && !hasNoSource && !showAr;
54359
54461
  var showPlaceholder = hasNoSource || showImage && status === 'error';
@@ -54382,13 +54484,13 @@ function ImagePanel(_ref) {
54382
54484
  })
54383
54485
  }), /*#__PURE__*/jsxs("div", {
54384
54486
  className: classNames(content$1, showAr ? contentAr : contentImage),
54385
- children: [showAr && (media === null || media === void 0 ? void 0 : media.url) &&
54487
+ children: [showAr && viewerUrl &&
54386
54488
  /*#__PURE__*/
54387
54489
  // Size is applied inline because model-viewer is a custom element
54388
54490
  // and className forwarding can be inconsistent with CSS modules in
54389
54491
  // some React/web-component integrations.
54390
54492
  jsx("model-viewer", {
54391
- src: media.url,
54493
+ src: viewerUrl,
54392
54494
  alt: alt !== null && alt !== void 0 ? alt : title,
54393
54495
  "camera-controls": true,
54394
54496
  "touch-action": "pan-y",
@@ -54402,8 +54504,8 @@ function ImagePanel(_ref) {
54402
54504
  minHeight: 320,
54403
54505
  display: 'block'
54404
54506
  }
54405
- }, media.url), showImage && /*#__PURE__*/jsx("img", {
54406
- src: (_media$url = media === null || media === void 0 ? void 0 : media.url) !== null && _media$url !== void 0 ? _media$url : undefined,
54507
+ }, viewerUrl), showImage && /*#__PURE__*/jsx("img", {
54508
+ src: viewerUrl !== null && viewerUrl !== void 0 ? viewerUrl : undefined,
54407
54509
  alt: alt !== null && alt !== void 0 ? alt : title,
54408
54510
  onLoad: function onLoad() {
54409
54511
  return setStatus('loaded');
@@ -54440,7 +54542,6 @@ styleInject(css_248z$o);
54440
54542
  */
54441
54543
  function LeftSlider(_ref) {
54442
54544
  var slides = _ref.slides,
54443
- loading = _ref.loading,
54444
54545
  onOpenFullscreenFirst = _ref.onOpenFullscreenFirst,
54445
54546
  onSwiperInit = _ref.onSwiperInit;
54446
54547
  var _useTranslation = useTranslation(),
@@ -54479,7 +54580,6 @@ function LeftSlider(_ref) {
54479
54580
  children: /*#__PURE__*/jsx(ImagePanel, {
54480
54581
  title: title,
54481
54582
  media: media,
54482
- loading: loading,
54483
54583
  alt: alt,
54484
54584
  onOpenFullscreen: isPreview ? onOpenFullscreenFirst : undefined
54485
54585
  })
@@ -54501,7 +54601,6 @@ styleInject(css_248z$n);
54501
54601
  function VariantPanel(_ref) {
54502
54602
  var variant = _ref.variant,
54503
54603
  total = _ref.total,
54504
- loading = _ref.loading,
54505
54604
  disabled = _ref.disabled,
54506
54605
  busy = _ref.busy,
54507
54606
  onSelect = _ref.onSelect,
@@ -54516,7 +54615,6 @@ function VariantPanel(_ref) {
54516
54615
  children: [/*#__PURE__*/jsx(ImagePanel, {
54517
54616
  title: "".concat(label, " ").concat(variant.index + 1, "/").concat(total),
54518
54617
  media: variant,
54519
- loading: loading,
54520
54618
  alt: "".concat(label, " ").concat(variant.index + 1),
54521
54619
  onOpenFullscreen: onOpenFullscreen ? function () {
54522
54620
  return onOpenFullscreen(variant);
@@ -54561,7 +54659,6 @@ styleInject(css_248z$m);
54561
54659
  */
54562
54660
  function VariantCompareView(_ref) {
54563
54661
  var variants = _ref.variants,
54564
- loading = _ref.loading,
54565
54662
  disabled = _ref.disabled,
54566
54663
  busy = _ref.busy,
54567
54664
  onSelect = _ref.onSelect,
@@ -54574,7 +54671,6 @@ function VariantCompareView(_ref) {
54574
54671
  return /*#__PURE__*/jsx(VariantPanel, {
54575
54672
  variant: variant,
54576
54673
  total: variants.length,
54577
- loading: loading,
54578
54674
  disabled: disabled,
54579
54675
  busy: busy,
54580
54676
  onSelect: onSelect,
@@ -54605,7 +54701,6 @@ styleInject(css_248z$l);
54605
54701
  */
54606
54702
  function VariantSlider(_ref) {
54607
54703
  var variants = _ref.variants,
54608
- loading = _ref.loading,
54609
54704
  disabled = _ref.disabled,
54610
54705
  busy = _ref.busy,
54611
54706
  onSelect = _ref.onSelect,
@@ -54636,7 +54731,6 @@ function VariantSlider(_ref) {
54636
54731
  children: /*#__PURE__*/jsx(VariantPanel, {
54637
54732
  variant: variant,
54638
54733
  total: variants.length,
54639
- loading: loading,
54640
54734
  disabled: disabled,
54641
54735
  busy: busy,
54642
54736
  onSelect: onSelect,
@@ -54665,7 +54759,6 @@ styleInject(css_248z$k);
54665
54759
  function SideBySideViewer(_ref) {
54666
54760
  var _images$leftSlides, _images$rightSlides;
54667
54761
  var images = _ref.images,
54668
- loading = _ref.loading,
54669
54762
  readonlyDecision = _ref.readonlyDecision,
54670
54763
  onOpenFullscreenLeft = _ref.onOpenFullscreenLeft,
54671
54764
  onOpenFullscreenRight = _ref.onOpenFullscreenRight,
@@ -54761,7 +54854,6 @@ function SideBySideViewer(_ref) {
54761
54854
  className: viewerPanels,
54762
54855
  children: showCompare ? /*#__PURE__*/jsx(VariantCompareView, {
54763
54856
  variants: variants,
54764
- loading: loading,
54765
54857
  disabled: variantSelectDisabled,
54766
54858
  busy: variantSelecting,
54767
54859
  onSelect: onSelectVariant,
@@ -54769,18 +54861,15 @@ function SideBySideViewer(_ref) {
54769
54861
  }) : /*#__PURE__*/jsxs(Fragment, {
54770
54862
  children: [useSwiper ? /*#__PURE__*/jsx(LeftSlider, {
54771
54863
  slides: slides,
54772
- loading: loading,
54773
54864
  onOpenFullscreenFirst: showOverlay ? undefined : onOpenFullscreenLeft,
54774
54865
  onSwiperInit: onLeftSwiperInit
54775
54866
  }) : /*#__PURE__*/jsx(ImagePanel, {
54776
54867
  title: t('backoffice.renderapprove.viewer.previewTitle'),
54777
54868
  media: images.left,
54778
- loading: loading,
54779
54869
  alt: t('backoffice.renderapprove.viewer.previewAlt'),
54780
54870
  onOpenFullscreen: showOverlay ? undefined : onOpenFullscreenLeft
54781
54871
  }), hasVariants && resultIsVariant ? /*#__PURE__*/jsx(VariantSlider, {
54782
54872
  variants: variants,
54783
- loading: loading,
54784
54873
  disabled: variantSelectDisabled,
54785
54874
  busy: variantSelecting,
54786
54875
  onSelect: onSelectVariant,
@@ -54789,7 +54878,6 @@ function SideBySideViewer(_ref) {
54789
54878
  }) : /*#__PURE__*/jsx(ImagePanel, {
54790
54879
  title: t('backoffice.renderapprove.viewer.resultTitle'),
54791
54880
  media: images.right,
54792
- loading: loading,
54793
54881
  alt: t('backoffice.renderapprove.viewer.resultAlt'),
54794
54882
  onOpenFullscreen: showOverlay ? undefined : onOpenFullscreenRight
54795
54883
  })]
@@ -54978,7 +55066,6 @@ function ActionBar(_ref) {
54978
55066
  */
54979
55067
  function ApprovalWorkspace(_ref) {
54980
55068
  var images = _ref.images,
54981
- loading = _ref.loading,
54982
55069
  readonlyDecision = _ref.readonlyDecision,
54983
55070
  onOpenFullscreenLeft = _ref.onOpenFullscreenLeft,
54984
55071
  onOpenFullscreenRight = _ref.onOpenFullscreenRight,
@@ -55003,7 +55090,6 @@ function ApprovalWorkspace(_ref) {
55003
55090
  return /*#__PURE__*/jsxs(Fragment, {
55004
55091
  children: [/*#__PURE__*/jsx(SideBySideViewer, {
55005
55092
  images: images,
55006
- loading: loading,
55007
55093
  readonlyDecision: readonlyDecision,
55008
55094
  onOpenFullscreenLeft: onOpenFullscreenLeft,
55009
55095
  onOpenFullscreenRight: onOpenFullscreenRight,
@@ -57138,7 +57224,6 @@ function isAr(media) {
57138
57224
  return (media === null || media === void 0 ? void 0 : media.mediaType) === 'AR';
57139
57225
  }
57140
57226
  function FullscreenViewer(_ref) {
57141
- var _media$url;
57142
57227
  var open = _ref.open,
57143
57228
  media = _ref.media,
57144
57229
  title = _ref.title,
@@ -57148,12 +57233,21 @@ function FullscreenViewer(_ref) {
57148
57233
  var _useTranslation = useTranslation(),
57149
57234
  t = _useTranslation.t;
57150
57235
  var ar = isAr(media);
57236
+ // TIFF results are not renderable in an <img>, so a PNG variant is shown instead.
57237
+ var viewerUrl = getViewerUrl(media);
57238
+ var _useState = useState(false),
57239
+ _useState2 = _slicedToArray(_useState, 2),
57240
+ failed = _useState2[0],
57241
+ setFailed = _useState2[1];
57151
57242
  useEffect(function () {
57152
57243
  if (open && ar) {
57153
57244
  void actions.loadModelViewer();
57154
57245
  }
57155
57246
  }, [actions, ar, open]);
57156
- var hasSource = typeof (media === null || media === void 0 ? void 0 : media.url) === 'string' && media.url.length > 0;
57247
+ useEffect(function () {
57248
+ setFailed(false);
57249
+ }, [viewerUrl]);
57250
+ var hasSource = typeof viewerUrl === 'string' && viewerUrl.length > 0;
57157
57251
  return /*#__PURE__*/jsxs(Modal$2, {
57158
57252
  open: open,
57159
57253
  onCancel: onClose,
@@ -57166,15 +57260,15 @@ function FullscreenViewer(_ref) {
57166
57260
  destroyOnHidden: true,
57167
57261
  centered: true,
57168
57262
  wrapClassName: fullscreenModal,
57169
- children: [!hasSource && /*#__PURE__*/jsx(Empty, {
57263
+ children: [(!hasSource || failed) && /*#__PURE__*/jsx(Empty, {
57170
57264
  description: t('backoffice.renderapprove.errors.imageNotAvailable'),
57171
57265
  image: Empty.PRESENTED_IMAGE_SIMPLE
57172
- }), hasSource && ar && (media === null || media === void 0 ? void 0 : media.url) &&
57266
+ }), hasSource && ar && viewerUrl &&
57173
57267
  /*#__PURE__*/
57174
57268
  // model-viewer is a custom element. Inline sizing keeps rendering
57175
57269
  // stable even when className forwarding to web components varies.
57176
57270
  jsx("model-viewer", {
57177
- src: media.url,
57271
+ src: viewerUrl,
57178
57272
  alt: title !== null && title !== void 0 ? title : t('backoffice.renderapprove.viewer.fullscreenModelAlt'),
57179
57273
  "camera-controls": true,
57180
57274
  "touch-action": "pan-y",
@@ -57187,10 +57281,13 @@ function FullscreenViewer(_ref) {
57187
57281
  height: '100%',
57188
57282
  display: 'block'
57189
57283
  }
57190
- }, media.url), hasSource && !ar && /*#__PURE__*/jsx("img", {
57191
- src: (_media$url = media === null || media === void 0 ? void 0 : media.url) !== null && _media$url !== void 0 ? _media$url : undefined,
57284
+ }, viewerUrl), hasSource && !ar && !failed && /*#__PURE__*/jsx("img", {
57285
+ src: viewerUrl !== null && viewerUrl !== void 0 ? viewerUrl : undefined,
57192
57286
  alt: title !== null && title !== void 0 ? title : t('backoffice.renderapprove.viewer.fullscreenPreviewAlt'),
57193
- className: image
57287
+ className: image,
57288
+ onError: function onError() {
57289
+ return setFailed(true);
57290
+ }
57194
57291
  })]
57195
57292
  });
57196
57293
  }
@@ -58598,12 +58695,12 @@ function fetchJson(_x, _x2) {
58598
58695
  return _fetchJson.apply(this, arguments);
58599
58696
  }
58600
58697
  function _fetchJson() {
58601
- _fetchJson = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, jwt) {
58698
+ _fetchJson = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url, jwt) {
58602
58699
  var response;
58603
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
58604
- while (1) switch (_context3.prev = _context3.next) {
58700
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
58701
+ while (1) switch (_context2.prev = _context2.next) {
58605
58702
  case 0:
58606
- _context3.next = 2;
58703
+ _context2.next = 2;
58607
58704
  return fetch(url, {
58608
58705
  headers: _objectSpread$i({
58609
58706
  'Content-Type': 'application/json'
@@ -58612,24 +58709,24 @@ function _fetchJson() {
58612
58709
  } : {})
58613
58710
  });
58614
58711
  case 2:
58615
- response = _context3.sent;
58712
+ response = _context2.sent;
58616
58713
  if (response.ok) {
58617
- _context3.next = 5;
58714
+ _context2.next = 5;
58618
58715
  break;
58619
58716
  }
58620
58717
  throw new DivaError("Request failed: ".concat(response.status, " ").concat(response.statusText), {
58621
58718
  code: 'RENDERAPPROVE_FETCH_FAILED'
58622
58719
  });
58623
58720
  case 5:
58624
- _context3.next = 7;
58721
+ _context2.next = 7;
58625
58722
  return response.json();
58626
58723
  case 7:
58627
- return _context3.abrupt("return", _context3.sent);
58724
+ return _context2.abrupt("return", _context2.sent);
58628
58725
  case 8:
58629
58726
  case "end":
58630
- return _context3.stop();
58727
+ return _context2.stop();
58631
58728
  }
58632
- }, _callee3);
58729
+ }, _callee2);
58633
58730
  }));
58634
58731
  return _fetchJson.apply(this, arguments);
58635
58732
  }
@@ -58646,7 +58743,8 @@ function toMedia(item) {
58646
58743
  fileSize: typeof item.fileSize === 'number' ? item.fileSize : undefined,
58647
58744
  id: (_item$_id = item._id) !== null && _item$_id !== void 0 ? _item$_id : item.id,
58648
58745
  name: typeof item.name === 'string' ? item.name : undefined,
58649
- metadata: item.metadata && _typeof(item.metadata) === 'object' ? item.metadata : undefined
58746
+ metadata: item.metadata && _typeof(item.metadata) === 'object' ? item.metadata : undefined,
58747
+ variants: item.variants && _typeof(item.variants) === 'object' ? item.variants : undefined
58650
58748
  };
58651
58749
  }
58652
58750
  var EXCLUDED_FUNCTION_TYPES = new Set(['LOG', 'OPV']);
@@ -58666,22 +58764,22 @@ function fetchProductMedia(_x3, _x4, _x5, _x6, _x7) {
58666
58764
  return _fetchProductMedia.apply(this, arguments);
58667
58765
  }
58668
58766
  function _fetchProductMedia() {
58669
- _fetchProductMedia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(catalogService, baseUrl, jwt, productId, excludeUrl) {
58767
+ _fetchProductMedia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(catalogService, baseUrl, jwt, productId, excludeUrl) {
58670
58768
  var data, product, media, sorted, seen, result, _iterator2, _step2, _mapped$metadata, item, mapped, ref;
58671
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
58672
- while (1) switch (_context5.prev = _context5.next) {
58769
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
58770
+ while (1) switch (_context4.prev = _context4.next) {
58673
58771
  case 0:
58674
- _context5.next = 2;
58772
+ _context4.next = 2;
58675
58773
  return fetchJson("".concat(catalogService, "/v1/products/").concat(encodeURIComponent(productId), "/list"), jwt);
58676
58774
  case 2:
58677
- data = _context5.sent;
58775
+ data = _context4.sent;
58678
58776
  product = Array.isArray(data) ? data[0] : undefined;
58679
58777
  media = product === null || product === void 0 ? void 0 : product.media;
58680
58778
  if (!(!Array.isArray(media) || media.length === 0)) {
58681
- _context5.next = 7;
58779
+ _context4.next = 7;
58682
58780
  break;
58683
58781
  }
58684
- return _context5.abrupt("return", []);
58782
+ return _context4.abrupt("return", []);
58685
58783
  case 7:
58686
58784
  sorted = _toConsumableArray(media).sort(function (a, b) {
58687
58785
  var pa = typeof (a === null || a === void 0 ? void 0 : a.position) === 'number' ? a.position : Number.MAX_SAFE_INTEGER;
@@ -58692,38 +58790,38 @@ function _fetchProductMedia() {
58692
58790
  if (excludeUrl) seen.add(excludeUrl);
58693
58791
  result = [];
58694
58792
  _iterator2 = _createForOfIteratorHelper$b(sorted);
58695
- _context5.prev = 12;
58793
+ _context4.prev = 12;
58696
58794
  _iterator2.s();
58697
58795
  case 14:
58698
58796
  if ((_step2 = _iterator2.n()).done) {
58699
- _context5.next = 32;
58797
+ _context4.next = 32;
58700
58798
  break;
58701
58799
  }
58702
58800
  item = _step2.value;
58703
58801
  if (!(item !== null && item !== void 0 && item.functionType && EXCLUDED_FUNCTION_TYPES.has(item.functionType))) {
58704
- _context5.next = 18;
58802
+ _context4.next = 18;
58705
58803
  break;
58706
58804
  }
58707
- return _context5.abrupt("continue", 30);
58805
+ return _context4.abrupt("continue", 30);
58708
58806
  case 18:
58709
58807
  if (!(item !== null && item !== void 0 && item.mediaType && !ALLOWED_MEDIA_TYPES.has(item.mediaType))) {
58710
- _context5.next = 20;
58808
+ _context4.next = 20;
58711
58809
  break;
58712
58810
  }
58713
- return _context5.abrupt("continue", 30);
58811
+ return _context4.abrupt("continue", 30);
58714
58812
  case 20:
58715
58813
  mapped = toMedia(item);
58716
58814
  if (!(!mapped || !mapped.url)) {
58717
- _context5.next = 23;
58815
+ _context4.next = 23;
58718
58816
  break;
58719
58817
  }
58720
- return _context5.abrupt("continue", 30);
58818
+ return _context4.abrupt("continue", 30);
58721
58819
  case 23:
58722
58820
  if (!seen.has(mapped.url)) {
58723
- _context5.next = 25;
58821
+ _context4.next = 25;
58724
58822
  break;
58725
58823
  }
58726
- return _context5.abrupt("continue", 30);
58824
+ return _context4.abrupt("continue", 30);
58727
58825
  case 25:
58728
58826
  seen.add(mapped.url);
58729
58827
  ref = typeof (item === null || item === void 0 ? void 0 : item.ref) === 'string' ? item.ref : undefined;
@@ -58740,47 +58838,53 @@ function _fetchProductMedia() {
58740
58838
  ref: ref
58741
58839
  });
58742
58840
  case 30:
58743
- _context5.next = 14;
58841
+ _context4.next = 14;
58744
58842
  break;
58745
58843
  case 32:
58746
- _context5.next = 37;
58844
+ _context4.next = 37;
58747
58845
  break;
58748
58846
  case 34:
58749
- _context5.prev = 34;
58750
- _context5.t0 = _context5["catch"](12);
58751
- _iterator2.e(_context5.t0);
58847
+ _context4.prev = 34;
58848
+ _context4.t0 = _context4["catch"](12);
58849
+ _iterator2.e(_context4.t0);
58752
58850
  case 37:
58753
- _context5.prev = 37;
58851
+ _context4.prev = 37;
58754
58852
  _iterator2.f();
58755
- return _context5.finish(37);
58853
+ return _context4.finish(37);
58756
58854
  case 40:
58757
- _context5.next = 42;
58855
+ _context4.next = 42;
58758
58856
  return Promise.all(result.map(/*#__PURE__*/function () {
58759
- var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_ref8) {
58760
- var media, ref, _yield$Promise$allSet3, _yield$Promise$allSet4, mediaItemRes, refRes, item, _media$metadata, payload, refDoc, _media$metadata2;
58761
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
58762
- while (1) switch (_context4.prev = _context4.next) {
58857
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref7) {
58858
+ var media, ref, _yield$Promise$allSet, _yield$Promise$allSet2, mediaItemRes, refRes, _media$variants, _ref9, _item$thumbnailUrl2, _item$variants2, item, _media$metadata, payload, refDoc, _media$metadata2;
58859
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
58860
+ while (1) switch (_context3.prev = _context3.next) {
58763
58861
  case 0:
58764
- media = _ref8.media, ref = _ref8.ref;
58862
+ media = _ref7.media, ref = _ref7.ref;
58765
58863
  if (ref) {
58766
- _context4.next = 3;
58864
+ _context3.next = 3;
58767
58865
  break;
58768
58866
  }
58769
- return _context4.abrupt("return");
58867
+ return _context3.abrupt("return");
58770
58868
  case 3:
58771
- _context4.next = 5;
58869
+ _context3.next = 5;
58772
58870
  return Promise.allSettled([fetchJson("".concat(baseUrl, "/v1/mediaitemref/").concat(encodeURIComponent(ref), "/mediaitem"), jwt), fetchJson("".concat(baseUrl, "/v1/mediaitems/refs?filter=").concat(encodeURIComponent("{_id,eq,'".concat(ref, "'}"))), jwt)]);
58773
58871
  case 5:
58774
- _yield$Promise$allSet3 = _context4.sent;
58775
- _yield$Promise$allSet4 = _slicedToArray(_yield$Promise$allSet3, 2);
58776
- mediaItemRes = _yield$Promise$allSet4[0];
58777
- refRes = _yield$Promise$allSet4[1];
58872
+ _yield$Promise$allSet = _context3.sent;
58873
+ _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 2);
58874
+ mediaItemRes = _yield$Promise$allSet2[0];
58875
+ refRes = _yield$Promise$allSet2[1];
58778
58876
  if (mediaItemRes.status === 'fulfilled') {
58779
58877
  item = mediaItemRes.value;
58780
58878
  if (item !== null && item !== void 0 && item.metadata && _typeof(item.metadata) === 'object') {
58781
58879
  media.metadata = _objectSpread$i(_objectSpread$i({}, (_media$metadata = media.metadata) !== null && _media$metadata !== void 0 ? _media$metadata : {}), item.metadata);
58782
58880
  }
58783
58881
  if ((!media.name || media.name.length === 0) && typeof (item === null || item === void 0 ? void 0 : item.name) === 'string') media.name = item.name;
58882
+ // The catalog entry carries no file information, so mime type, variants and
58883
+ // thumbnail come from the MediaItem - `getViewerUrl` needs mime type and
58884
+ // variants to show the PNG stand-in for a TIFF.
58885
+ if (!media.mimeType && typeof (item === null || item === void 0 ? void 0 : item.mimeType) === 'string') media.mimeType = item.mimeType;
58886
+ if (item !== null && item !== void 0 && item.variants && _typeof(item.variants) === 'object') media.variants = _objectSpread$i(_objectSpread$i({}, (_media$variants = media.variants) !== null && _media$variants !== void 0 ? _media$variants : {}), item.variants);
58887
+ if (!media.thumbnailUrl) media.thumbnailUrl = (_ref9 = (_item$thumbnailUrl2 = item === null || item === void 0 ? void 0 : item.thumbnailUrl) !== null && _item$thumbnailUrl2 !== void 0 ? _item$thumbnailUrl2 : item === null || item === void 0 || (_item$variants2 = item.variants) === null || _item$variants2 === void 0 ? void 0 : _item$variants2.gal) !== null && _ref9 !== void 0 ? _ref9 : null;
58784
58888
  }
58785
58889
  if (refRes.status === 'fulfilled') {
58786
58890
  payload = refRes.value;
@@ -58791,23 +58895,23 @@ function _fetchProductMedia() {
58791
58895
  }
58792
58896
  case 11:
58793
58897
  case "end":
58794
- return _context4.stop();
58898
+ return _context3.stop();
58795
58899
  }
58796
- }, _callee4);
58900
+ }, _callee3);
58797
58901
  }));
58798
- return function (_x17) {
58799
- return _ref9.apply(this, arguments);
58902
+ return function (_x19) {
58903
+ return _ref8.apply(this, arguments);
58800
58904
  };
58801
58905
  }()));
58802
58906
  case 42:
58803
- return _context5.abrupt("return", result.map(function (r) {
58907
+ return _context4.abrupt("return", result.map(function (r) {
58804
58908
  return r.media;
58805
58909
  }));
58806
58910
  case 43:
58807
58911
  case "end":
58808
- return _context5.stop();
58912
+ return _context4.stop();
58809
58913
  }
58810
- }, _callee5, null, [[12, 34, 37, 40]]);
58914
+ }, _callee4, null, [[12, 34, 37, 40]]);
58811
58915
  }));
58812
58916
  return _fetchProductMedia.apply(this, arguments);
58813
58917
  }
@@ -58816,60 +58920,180 @@ function resolveMediaItem(_x8, _x9, _x10, _x11) {
58816
58920
  }
58817
58921
 
58818
58922
  /**
58819
- * Resolves the generated variants of an AI job to displayable slides, ordered by
58820
- * `index`. Each lookup is best-effort: a variant whose MediaItem cannot be read
58821
- * falls back to the url stored on the job, so one failing request never hides a
58822
- * variant from the comparison.
58923
+ * Assembles the left swiper slides. The render job's `renderImages` (AI input
58924
+ * images, ordered) drive the order: each is resolved to the rich product media
58925
+ * when the url matches, to the preview, or to a minimal media otherwise (which
58926
+ * carries the stored MediaItemRef id so uploaded images keep their ref when
58927
+ * re-selected). Product media already represented by a renderImage is not shown
58928
+ * again (dedup by url). The realtime preview leads only when there are no
58929
+ * renderImages; once they exist it comes right after them, and only if it is
58930
+ * not already one of them.
58823
58931
  *
58824
- * Variants without a `mediaItemId` are dropped - they could be displayed but not
58825
- * taken over, and a variant that cannot be chosen has no purpose in this view.
58932
+ * Called with an empty `productMedia` it yields exactly the prefix of the final
58933
+ * list, so slides are only ever appended - never reordered - once the product
58934
+ * media arrives.
58826
58935
  */
58827
58936
  function _resolveMediaItem() {
58828
- _resolveMediaItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(baseUrl, jwt, mediaItemId, mediaItemRef) {
58937
+ _resolveMediaItem = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(baseUrl, jwt, mediaItemId, mediaItemRef) {
58829
58938
  var item, media, _item, _media;
58830
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
58831
- while (1) switch (_context6.prev = _context6.next) {
58939
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
58940
+ while (1) switch (_context5.prev = _context5.next) {
58832
58941
  case 0:
58833
58942
  if (!mediaItemRef) {
58834
- _context6.next = 7;
58943
+ _context5.next = 7;
58835
58944
  break;
58836
58945
  }
58837
- _context6.next = 3;
58946
+ _context5.next = 3;
58838
58947
  return fetchJson("".concat(baseUrl, "/v1/mediaitemref/").concat(encodeURIComponent(mediaItemRef), "/mediaitem"), jwt);
58839
58948
  case 3:
58840
- item = _context6.sent;
58949
+ item = _context5.sent;
58841
58950
  media = toMedia(item);
58842
58951
  if (!media) {
58843
- _context6.next = 7;
58952
+ _context5.next = 7;
58844
58953
  break;
58845
58954
  }
58846
- return _context6.abrupt("return", media);
58955
+ return _context5.abrupt("return", media);
58847
58956
  case 7:
58848
58957
  if (!mediaItemId) {
58849
- _context6.next = 14;
58958
+ _context5.next = 14;
58850
58959
  break;
58851
58960
  }
58852
- _context6.next = 10;
58961
+ _context5.next = 10;
58853
58962
  return fetchJson("".concat(baseUrl, "/v1/mediaitems/").concat(encodeURIComponent(mediaItemId)), jwt);
58854
58963
  case 10:
58855
- _item = _context6.sent;
58964
+ _item = _context5.sent;
58856
58965
  _media = toMedia(_item);
58857
58966
  if (!_media) {
58858
- _context6.next = 14;
58967
+ _context5.next = 14;
58859
58968
  break;
58860
58969
  }
58861
- return _context6.abrupt("return", _media);
58970
+ return _context5.abrupt("return", _media);
58862
58971
  case 14:
58863
- return _context6.abrupt("return", null);
58972
+ return _context5.abrupt("return", null);
58864
58973
  case 15:
58865
58974
  case "end":
58866
- return _context6.stop();
58975
+ return _context5.stop();
58867
58976
  }
58868
- }, _callee6);
58977
+ }, _callee5);
58869
58978
  }));
58870
58979
  return _resolveMediaItem.apply(this, arguments);
58871
58980
  }
58872
- function resolveVariants(_x12, _x13, _x14, _x15) {
58981
+ function buildLeftSlides(left, renderImages, productMedia) {
58982
+ var renderImageUrls = new Set(renderImages.map(function (image) {
58983
+ return image.url;
58984
+ }));
58985
+ var remainingProduct = productMedia.filter(function (media) {
58986
+ return !(media.url && renderImageUrls.has(media.url));
58987
+ });
58988
+ if (renderImages.length === 0) return [left].concat(_toConsumableArray(remainingProduct));
58989
+ var productByUrl = new Map();
58990
+ var _iterator = _createForOfIteratorHelper$b(productMedia),
58991
+ _step;
58992
+ try {
58993
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
58994
+ var media = _step.value;
58995
+ if (media.url) productByUrl.set(media.url, media);
58996
+ }
58997
+ } catch (err) {
58998
+ _iterator.e(err);
58999
+ } finally {
59000
+ _iterator.f();
59001
+ }
59002
+ var renderImageSlides = renderImages.map(function (_ref5) {
59003
+ var _productByUrl$get;
59004
+ var url = _ref5.url,
59005
+ mediaItemRefId = _ref5.mediaItemRefId;
59006
+ return url === left.url ? left : (_productByUrl$get = productByUrl.get(url)) !== null && _productByUrl$get !== void 0 ? _productByUrl$get : {
59007
+ url: url,
59008
+ mediaType: 'PCT',
59009
+ mediaItemRefId: mediaItemRefId
59010
+ };
59011
+ });
59012
+ var previewAfter = left.url != null && !renderImageUrls.has(left.url) ? [left] : [];
59013
+ return [].concat(_toConsumableArray(renderImageSlides), previewAfter, _toConsumableArray(remainingProduct));
59014
+ }
59015
+
59016
+ /**
59017
+ * Uploaded AI input images are not part of the product media, so their display
59018
+ * name (filename) is resolved from the MediaItemRef (best-effort, per slide).
59019
+ * Returns the input array unchanged when there is nothing to resolve.
59020
+ */
59021
+ function withResolvedSlideNames(_x12, _x13, _x14) {
59022
+ return _withResolvedSlideNames.apply(this, arguments);
59023
+ }
59024
+ /**
59025
+ * Resolves the generated variants of an AI job to displayable slides, ordered by
59026
+ * `index`. Each lookup is best-effort: a variant whose MediaItem cannot be read
59027
+ * falls back to the url stored on the job, so one failing request never hides a
59028
+ * variant from the comparison.
59029
+ *
59030
+ * Variants without a `mediaItemId` are dropped - they could be displayed but not
59031
+ * taken over, and a variant that cannot be chosen has no purpose in this view.
59032
+ */
59033
+ function _withResolvedSlideNames() {
59034
+ _withResolvedSlideNames = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(baseUrl, jwt, slides) {
59035
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
59036
+ while (1) switch (_context7.prev = _context7.next) {
59037
+ case 0:
59038
+ if (slides.some(function (slide) {
59039
+ return !slide.name && slide.mediaItemRefId;
59040
+ })) {
59041
+ _context7.next = 2;
59042
+ break;
59043
+ }
59044
+ return _context7.abrupt("return", slides);
59045
+ case 2:
59046
+ return _context7.abrupt("return", Promise.all(slides.map(/*#__PURE__*/function () {
59047
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(slide) {
59048
+ var item;
59049
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
59050
+ while (1) switch (_context6.prev = _context6.next) {
59051
+ case 0:
59052
+ if (!(slide.name || !slide.mediaItemRefId)) {
59053
+ _context6.next = 2;
59054
+ break;
59055
+ }
59056
+ return _context6.abrupt("return", slide);
59057
+ case 2:
59058
+ _context6.prev = 2;
59059
+ _context6.next = 5;
59060
+ return fetchJson("".concat(baseUrl, "/v1/mediaitemref/").concat(encodeURIComponent(slide.mediaItemRefId), "/mediaitem"), jwt);
59061
+ case 5:
59062
+ item = _context6.sent;
59063
+ if (!(typeof (item === null || item === void 0 ? void 0 : item.name) === 'string' && item.name.length > 0)) {
59064
+ _context6.next = 8;
59065
+ break;
59066
+ }
59067
+ return _context6.abrupt("return", _objectSpread$i(_objectSpread$i({}, slide), {}, {
59068
+ name: item.name
59069
+ }));
59070
+ case 8:
59071
+ _context6.next = 12;
59072
+ break;
59073
+ case 10:
59074
+ _context6.prev = 10;
59075
+ _context6.t0 = _context6["catch"](2);
59076
+ case 12:
59077
+ return _context6.abrupt("return", slide);
59078
+ case 13:
59079
+ case "end":
59080
+ return _context6.stop();
59081
+ }
59082
+ }, _callee6, null, [[2, 10]]);
59083
+ }));
59084
+ return function (_x20) {
59085
+ return _ref10.apply(this, arguments);
59086
+ };
59087
+ }())));
59088
+ case 3:
59089
+ case "end":
59090
+ return _context7.stop();
59091
+ }
59092
+ }, _callee7);
59093
+ }));
59094
+ return _withResolvedSlideNames.apply(this, arguments);
59095
+ }
59096
+ function resolveVariants(_x15, _x16, _x17, _x18) {
58873
59097
  return _resolveVariants.apply(this, arguments);
58874
59098
  }
58875
59099
  /**
@@ -58877,47 +59101,53 @@ function resolveVariants(_x12, _x13, _x14, _x15) {
58877
59101
  * right (resolved media item) images. Each id change cancels the previous
58878
59102
  * fetch via an abort flag so stale responses cannot overwrite newer state.
58879
59103
  *
59104
+ * Everything is revealed in stages, because a job switch otherwise shows
59105
+ * nothing until the slowest request of the whole chain is done: the preview and
59106
+ * the `renderImages` slides come straight from the job document, the result
59107
+ * image is one further request away, and only the product media (one catalog
59108
+ * call plus two media calls per image) and the slide names arrive late.
59109
+ *
58880
59110
  * State mutations (approve/reject) live in `useUpdateRenderJobState` so the
58881
59111
  * session hook can call them without depending on the currently-loaded job.
58882
59112
  */
58883
59113
  function _resolveVariants() {
58884
- _resolveVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(baseUrl, jwt, job, selectedMediaItemId) {
59114
+ _resolveVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(baseUrl, jwt, job, selectedMediaItemId) {
58885
59115
  var variants, resolved;
58886
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
58887
- while (1) switch (_context8.prev = _context8.next) {
59116
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
59117
+ while (1) switch (_context9.prev = _context9.next) {
58888
59118
  case 0:
58889
59119
  variants = Array.isArray(job === null || job === void 0 ? void 0 : job.imageVariants) ? job.imageVariants.filter(function (variant) {
58890
59120
  return typeof (variant === null || variant === void 0 ? void 0 : variant.mediaItemId) === 'string';
58891
59121
  }) : [];
58892
59122
  if (!(variants.length === 0)) {
58893
- _context8.next = 3;
59123
+ _context9.next = 3;
58894
59124
  break;
58895
59125
  }
58896
- return _context8.abrupt("return", []);
59126
+ return _context9.abrupt("return", []);
58897
59127
  case 3:
58898
- _context8.next = 5;
59128
+ _context9.next = 5;
58899
59129
  return Promise.all(variants.map(/*#__PURE__*/function () {
58900
- var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(variant, position) {
59130
+ var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(variant, position) {
58901
59131
  var _media2, _variant$url;
58902
59132
  var mediaItemId, media;
58903
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
58904
- while (1) switch (_context7.prev = _context7.next) {
59133
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
59134
+ while (1) switch (_context8.prev = _context8.next) {
58905
59135
  case 0:
58906
59136
  mediaItemId = variant.mediaItemId;
58907
59137
  media = null;
58908
- _context7.prev = 2;
58909
- _context7.next = 5;
59138
+ _context8.prev = 2;
59139
+ _context8.next = 5;
58910
59140
  return resolveMediaItem(baseUrl, jwt, mediaItemId, variant.mediaItemRefId);
58911
59141
  case 5:
58912
- media = _context7.sent;
58913
- _context7.next = 11;
59142
+ media = _context8.sent;
59143
+ _context8.next = 11;
58914
59144
  break;
58915
59145
  case 8:
58916
- _context7.prev = 8;
58917
- _context7.t0 = _context7["catch"](2);
58918
- LOG$6.warn("Could not resolve image variant ".concat(mediaItemId, ": ").concat(_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.message));
59146
+ _context8.prev = 8;
59147
+ _context8.t0 = _context8["catch"](2);
59148
+ LOG$6.warn("Could not resolve image variant ".concat(mediaItemId, ": ").concat(_context8.t0 === null || _context8.t0 === void 0 ? void 0 : _context8.t0.message));
58919
59149
  case 11:
58920
- return _context7.abrupt("return", _objectSpread$i(_objectSpread$i({}, (_media2 = media) !== null && _media2 !== void 0 ? _media2 : {
59150
+ return _context8.abrupt("return", _objectSpread$i(_objectSpread$i({}, (_media2 = media) !== null && _media2 !== void 0 ? _media2 : {
58921
59151
  url: (_variant$url = variant.url) !== null && _variant$url !== void 0 ? _variant$url : null,
58922
59152
  mediaType: 'PCT'
58923
59153
  }), {}, {
@@ -58927,24 +59157,24 @@ function _resolveVariants() {
58927
59157
  }));
58928
59158
  case 12:
58929
59159
  case "end":
58930
- return _context7.stop();
59160
+ return _context8.stop();
58931
59161
  }
58932
- }, _callee7, null, [[2, 8]]);
59162
+ }, _callee8, null, [[2, 8]]);
58933
59163
  }));
58934
- return function (_x18, _x19) {
58935
- return _ref10.apply(this, arguments);
59164
+ return function (_x21, _x22) {
59165
+ return _ref11.apply(this, arguments);
58936
59166
  };
58937
59167
  }()));
58938
59168
  case 5:
58939
- resolved = _context8.sent;
58940
- return _context8.abrupt("return", resolved.sort(function (a, b) {
59169
+ resolved = _context9.sent;
59170
+ return _context9.abrupt("return", resolved.sort(function (a, b) {
58941
59171
  return a.index - b.index;
58942
59172
  }));
58943
59173
  case 7:
58944
59174
  case "end":
58945
- return _context8.stop();
59175
+ return _context9.stop();
58946
59176
  }
58947
- }, _callee8);
59177
+ }, _callee9);
58948
59178
  }));
58949
59179
  return _resolveVariants.apply(this, arguments);
58950
59180
  }
@@ -58989,21 +59219,21 @@ function useRenderJobData(id, refreshKey) {
58989
59219
  setError(undefined);
58990
59220
  setJob(undefined);
58991
59221
  setImages({});
58992
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
58993
- var _fetchedJob$realTimeR, fetchedJob, left, initialSlides, mediaItemId, mediaItemRef, productId, rightPromise, productPromise, variantsPromise, _yield$Promise$allSet, _yield$Promise$allSet2, rightResult, productResult, variantsResult, rightSlides, _variantsResult$reaso, right, _rightResult$value, _rightResult$reason, productMedia, _productResult$reason, renderImages, productByUrl, _iterator, _step, m, renderImageSet, remainingProduct, leftSlides, renderImageSlides, previewAfter, _message, message;
58994
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
58995
- while (1) switch (_context2.prev = _context2.next) {
59222
+ _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
59223
+ var _fetchedJob$realTimeR, fetchedJob, left, renderImages, leftSlides, mediaItemId, mediaItemRef, productId, rightTask, productTask, variantsTask, named, _message, message;
59224
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
59225
+ while (1) switch (_context.prev = _context.next) {
58996
59226
  case 0:
58997
- _context2.prev = 0;
58998
- _context2.next = 3;
59227
+ _context.prev = 0;
59228
+ _context.next = 3;
58999
59229
  return fetchJson("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id)), jwt);
59000
59230
  case 3:
59001
- fetchedJob = _context2.sent;
59231
+ fetchedJob = _context.sent;
59002
59232
  if (!cancelled) {
59003
- _context2.next = 6;
59233
+ _context.next = 6;
59004
59234
  break;
59005
59235
  }
59006
- return _context2.abrupt("return");
59236
+ return _context.abrupt("return");
59007
59237
  case 6:
59008
59238
  setJob(fetchedJob);
59009
59239
 
@@ -59013,178 +59243,108 @@ function useRenderJobData(id, refreshKey) {
59013
59243
  mediaType: 'PCT',
59014
59244
  isPreview: true
59015
59245
  };
59016
- initialSlides = [left];
59246
+ renderImages = Array.isArray(fetchedJob === null || fetchedJob === void 0 ? void 0 : fetchedJob.renderImages) ? fetchedJob.renderImages.filter(function (image) {
59247
+ return typeof (image === null || image === void 0 ? void 0 : image.url) === 'string' && image.url.length > 0;
59248
+ }) : []; // Stage 1: preview and AI input images are known from the job document.
59249
+ leftSlides = buildLeftSlides(left, renderImages, []);
59017
59250
  setImages({
59018
59251
  left: left,
59019
- leftSlides: initialSlides,
59252
+ leftSlides: leftSlides,
59020
59253
  right: undefined
59021
59254
  });
59022
59255
  mediaItemId = getMediaItemId(fetchedJob);
59023
59256
  mediaItemRef = fetchedJob === null || fetchedJob === void 0 ? void 0 : fetchedJob.mediaItemRef;
59024
59257
  productId = fetchedJob === null || fetchedJob === void 0 ? void 0 : fetchedJob.product; // Load right image, product media and image variants in parallel so a
59025
- // failure in one cannot block the others.
59026
- rightPromise = mediaItemId || mediaItemRef ? resolveMediaItem(baseUrl, jwt, mediaItemId, mediaItemRef) : Promise.resolve(null);
59027
- productPromise = catalogService && typeof productId === 'string' && productId.length > 0 ? fetchProductMedia(catalogService, baseUrl, jwt, productId, left.url) : Promise.resolve([]);
59028
- variantsPromise = resolveVariants(baseUrl, jwt, fetchedJob, mediaItemId);
59029
- _context2.next = 18;
59030
- return Promise.allSettled([rightPromise, productPromise, variantsPromise]);
59031
- case 18:
59032
- _yield$Promise$allSet = _context2.sent;
59033
- _yield$Promise$allSet2 = _slicedToArray(_yield$Promise$allSet, 3);
59034
- rightResult = _yield$Promise$allSet2[0];
59035
- productResult = _yield$Promise$allSet2[1];
59036
- variantsResult = _yield$Promise$allSet2[2];
59037
- if (!cancelled) {
59038
- _context2.next = 25;
59039
- break;
59040
- }
59041
- return _context2.abrupt("return");
59042
- case 25:
59043
- rightSlides = [];
59044
- if (variantsResult.status === 'fulfilled') {
59045
- rightSlides = variantsResult.value;
59046
- } else {
59047
- LOG$6.warn("Could not load image variants for job ".concat(id, ": ").concat((_variantsResult$reaso = variantsResult.reason) === null || _variantsResult$reaso === void 0 ? void 0 : _variantsResult$reaso.message));
59048
- }
59049
- if (rightResult.status === 'fulfilled') {
59050
- right = (_rightResult$value = rightResult.value) !== null && _rightResult$value !== void 0 ? _rightResult$value : {
59051
- url: null
59052
- };
59053
- } else {
59054
- LOG$6.warn("Could not resolve right image for job ".concat(id, ": ").concat((_rightResult$reason = rightResult.reason) === null || _rightResult$reason === void 0 ? void 0 : _rightResult$reason.message));
59055
- right = {
59056
- url: null
59057
- };
59058
- }
59059
- productMedia = [];
59060
- if (productResult.status === 'fulfilled') {
59061
- productMedia = productResult.value;
59062
- } else {
59063
- LOG$6.warn("Could not load product media for job ".concat(id, ": ").concat((_productResult$reason = productResult.reason) === null || _productResult$reason === void 0 ? void 0 : _productResult$reason.message));
59064
- }
59065
-
59066
- // The render job's `renderImages` (AI input images, ordered) drive the
59067
- // slide order: each is resolved to the rich product media when the url
59068
- // matches, to the preview, or a minimal media otherwise. Product media
59069
- // already represented by a renderImage is not shown again (dedup by url).
59070
- // The realtime preview is shown first only when there are no renderImages;
59071
- // once renderImages exist it comes right after them, and only if it is
59072
- // not already one of them.
59073
- renderImages = Array.isArray(fetchedJob === null || fetchedJob === void 0 ? void 0 : fetchedJob.renderImages) ? fetchedJob.renderImages.filter(function (image) {
59074
- return typeof (image === null || image === void 0 ? void 0 : image.url) === 'string' && image.url.length > 0;
59075
- }) : [];
59076
- productByUrl = new Map();
59077
- _iterator = _createForOfIteratorHelper$b(productMedia);
59078
- try {
59079
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
59080
- m = _step.value;
59081
- if (m.url) productByUrl.set(m.url, m);
59082
- }
59083
- } catch (err) {
59084
- _iterator.e(err);
59085
- } finally {
59086
- _iterator.f();
59087
- }
59088
- renderImageSet = new Set(renderImages.map(function (image) {
59089
- return image.url;
59090
- }));
59091
- remainingProduct = productMedia.filter(function (m) {
59092
- return !(m.url && renderImageSet.has(m.url));
59258
+ // failure in one cannot block the others - and publish each of them on
59259
+ // its own, so the result image is never held back by the (much slower)
59260
+ // product media fan-out.
59261
+ rightTask = (mediaItemId || mediaItemRef ? resolveMediaItem(baseUrl, jwt, mediaItemId, mediaItemRef) : Promise.resolve(null))["catch"](function (reason) {
59262
+ LOG$6.warn("Could not resolve right image for job ".concat(id, ": ").concat(reason === null || reason === void 0 ? void 0 : reason.message));
59263
+ return null;
59264
+ }).then(function (right) {
59265
+ if (cancelled) return;
59266
+ // The result image is on screen, so the decision actions are released here.
59267
+ setImages(function (prev) {
59268
+ return _objectSpread$i(_objectSpread$i({}, prev), {}, {
59269
+ right: right !== null && right !== void 0 ? right : {
59270
+ url: null
59271
+ }
59272
+ });
59273
+ });
59274
+ setLoading(false);
59093
59275
  });
59094
- if (renderImages.length > 0) {
59095
- // Product media (rich metadata) wins on url match; otherwise build a
59096
- // minimal slide that carries the stored MediaItemRef id so uploaded
59097
- // images keep their ref when re-selected.
59098
- renderImageSlides = renderImages.map(function (_ref6) {
59099
- var _productByUrl$get;
59100
- var url = _ref6.url,
59101
- mediaItemRefId = _ref6.mediaItemRefId;
59102
- return url === left.url ? left : (_productByUrl$get = productByUrl.get(url)) !== null && _productByUrl$get !== void 0 ? _productByUrl$get : {
59103
- url: url,
59104
- mediaType: 'PCT',
59105
- mediaItemRefId: mediaItemRefId
59106
- };
59276
+ productTask = (catalogService && typeof productId === 'string' && productId.length > 0 ? fetchProductMedia(catalogService, baseUrl, jwt, productId, left.url) : Promise.resolve([]))["catch"](function (reason) {
59277
+ LOG$6.warn("Could not load product media for job ".concat(id, ": ").concat(reason === null || reason === void 0 ? void 0 : reason.message));
59278
+ return [];
59279
+ }).then(function (productMedia) {
59280
+ if (cancelled || productMedia.length === 0) return;
59281
+ leftSlides = buildLeftSlides(left, renderImages, productMedia);
59282
+ setImages(function (prev) {
59283
+ return _objectSpread$i(_objectSpread$i({}, prev), {}, {
59284
+ leftSlides: leftSlides
59285
+ });
59107
59286
  });
59108
- previewAfter = left.url != null && !renderImageSet.has(left.url) ? [left] : [];
59109
- leftSlides = [].concat(_toConsumableArray(renderImageSlides), previewAfter, _toConsumableArray(remainingProduct));
59110
- } else {
59111
- leftSlides = [left].concat(_toConsumableArray(remainingProduct));
59112
- }
59113
-
59114
- // Uploaded AI input images are not part of the product media, so their
59115
- // display name (filename) is resolved from the MediaItemRef (best-effort).
59116
- _context2.next = 39;
59117
- return Promise.all(leftSlides.map(/*#__PURE__*/function () {
59118
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(slide) {
59119
- var item;
59120
- return _regeneratorRuntime.wrap(function _callee$(_context) {
59121
- while (1) switch (_context.prev = _context.next) {
59122
- case 0:
59123
- if (!(slide.name || !slide.mediaItemRefId)) {
59124
- _context.next = 2;
59125
- break;
59126
- }
59127
- return _context.abrupt("return");
59128
- case 2:
59129
- _context.prev = 2;
59130
- _context.next = 5;
59131
- return fetchJson("".concat(baseUrl, "/v1/mediaitemref/").concat(encodeURIComponent(slide.mediaItemRefId), "/mediaitem"), jwt);
59132
- case 5:
59133
- item = _context.sent;
59134
- if (typeof (item === null || item === void 0 ? void 0 : item.name) === 'string' && item.name.length > 0) slide.name = item.name;
59135
- _context.next = 11;
59136
- break;
59137
- case 9:
59138
- _context.prev = 9;
59139
- _context.t0 = _context["catch"](2);
59140
- case 11:
59141
- case "end":
59142
- return _context.stop();
59143
- }
59144
- }, _callee, null, [[2, 9]]);
59145
- }));
59146
- return function (_x16) {
59147
- return _ref7.apply(this, arguments);
59148
- };
59149
- }()));
59150
- case 39:
59287
+ });
59288
+ variantsTask = resolveVariants(baseUrl, jwt, fetchedJob, mediaItemId)["catch"](function (reason) {
59289
+ LOG$6.warn("Could not load image variants for job ".concat(id, ": ").concat(reason === null || reason === void 0 ? void 0 : reason.message));
59290
+ return [];
59291
+ }).then(function (rightSlides) {
59292
+ if (cancelled) return;
59293
+ setImages(function (prev) {
59294
+ return _objectSpread$i(_objectSpread$i({}, prev), {}, {
59295
+ rightSlides: rightSlides
59296
+ });
59297
+ });
59298
+ });
59299
+ _context.next = 19;
59300
+ return Promise.all([rightTask, productTask, variantsTask]);
59301
+ case 19:
59151
59302
  if (!cancelled) {
59152
- _context2.next = 41;
59303
+ _context.next = 21;
59153
59304
  break;
59154
59305
  }
59155
- return _context2.abrupt("return");
59156
- case 41:
59157
- setImages({
59158
- left: left,
59159
- leftSlides: leftSlides,
59160
- right: right,
59161
- rightSlides: rightSlides
59306
+ return _context.abrupt("return");
59307
+ case 21:
59308
+ _context.next = 23;
59309
+ return withResolvedSlideNames(baseUrl, jwt, leftSlides);
59310
+ case 23:
59311
+ named = _context.sent;
59312
+ if (!(cancelled || named === leftSlides)) {
59313
+ _context.next = 26;
59314
+ break;
59315
+ }
59316
+ return _context.abrupt("return");
59317
+ case 26:
59318
+ setImages(function (prev) {
59319
+ return _objectSpread$i(_objectSpread$i({}, prev), {}, {
59320
+ leftSlides: named
59321
+ });
59162
59322
  });
59163
- _context2.next = 51;
59323
+ _context.next = 36;
59164
59324
  break;
59165
- case 44:
59166
- _context2.prev = 44;
59167
- _context2.t0 = _context2["catch"](0);
59325
+ case 29:
59326
+ _context.prev = 29;
59327
+ _context.t0 = _context["catch"](0);
59168
59328
  if (!cancelled) {
59169
- _context2.next = 48;
59329
+ _context.next = 33;
59170
59330
  break;
59171
59331
  }
59172
- return _context2.abrupt("return");
59173
- case 48:
59174
- message = (_message = _context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.message) !== null && _message !== void 0 ? _message : 'Unknown error';
59332
+ return _context.abrupt("return");
59333
+ case 33:
59334
+ message = (_message = _context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) !== null && _message !== void 0 ? _message : 'Unknown error';
59175
59335
  LOG$6.error(new DivaError("Failed to load render job ".concat(id, ": ").concat(message), {
59176
59336
  code: 'RENDERAPPROVE_LOAD_JOB'
59177
59337
  }));
59178
59338
  setError(message);
59179
- case 51:
59180
- _context2.prev = 51;
59339
+ case 36:
59340
+ _context.prev = 36;
59181
59341
  if (!cancelled) setLoading(false);
59182
- return _context2.finish(51);
59183
- case 54:
59342
+ return _context.finish(36);
59343
+ case 39:
59184
59344
  case "end":
59185
- return _context2.stop();
59345
+ return _context.stop();
59186
59346
  }
59187
- }, _callee2, null, [[0, 44, 51, 54]]);
59347
+ }, _callee, null, [[0, 29, 36, 39]]);
59188
59348
  }))();
59189
59349
  return function () {
59190
59350
  cancelled = true;
@@ -59931,7 +60091,7 @@ function focusBackConfirmButton(button) {
59931
60091
  ok === null || ok === void 0 || ok.focus();
59932
60092
  }
59933
60093
  function RenderApprove() {
59934
- var _data$job, _data$images$rightSli, _data$images$rightSli2, _data$job2, _data$images$right2, _data$images$right3, _data$images$leftSlid, _data$job3, _data$job4, _data$job5, _data$job6, _imageFullscreen$name;
60094
+ var _data$job, _data$images$rightSli, _data$images$rightSli2, _data$job2, _data$images$right, _data$images$right2, _data$images$leftSlid, _data$job3, _data$job4, _data$job5, _data$job6, _imageFullscreen$name;
59935
60095
  var store = useStore();
59936
60096
  var navigate = useNavigate();
59937
60097
  var _useTranslation = useTranslation(),
@@ -60070,7 +60230,7 @@ function RenderApprove() {
60070
60230
  var fullscreenMedia = fullscreenSide === 'left' ? data.images.left : fullscreenSide === 'right' ? data.images.right : undefined;
60071
60231
  var openFullscreen = function openFullscreen(side) {
60072
60232
  var media = side === 'left' ? data.images.left : data.images.right;
60073
- if (!media || typeof media.url !== 'string' || media.url.length === 0) return;
60233
+ if (!getViewerUrl(media)) return;
60074
60234
  setFullscreenSide(side);
60075
60235
  };
60076
60236
  var closeFullscreen = function closeFullscreen() {
@@ -60080,16 +60240,15 @@ function RenderApprove() {
60080
60240
  // Space toggle: prefers the result image (right), falls back to the
60081
60241
  // preview otherwise. When nothing is available the action is a no-op.
60082
60242
  var toggleFullscreen = function toggleFullscreen() {
60083
- var _data$images$right, _data$images$left;
60084
60243
  if (fullscreenSide) {
60085
60244
  closeFullscreen();
60086
60245
  return;
60087
60246
  }
60088
- if ((_data$images$right = data.images.right) !== null && _data$images$right !== void 0 && _data$images$right.url) {
60247
+ if (getViewerUrl(data.images.right)) {
60089
60248
  openFullscreen('right');
60090
60249
  return;
60091
60250
  }
60092
- if ((_data$images$left = data.images.left) !== null && _data$images$left !== void 0 && _data$images$left.url) {
60251
+ if (getViewerUrl(data.images.left)) {
60093
60252
  openFullscreen('left');
60094
60253
  }
60095
60254
  };
@@ -60780,8 +60939,8 @@ function RenderApprove() {
60780
60939
  })
60781
60940
  }), /*#__PURE__*/jsx(MetadataPanel, {
60782
60941
  job: data.job,
60783
- fileSize: (_data$images$right2 = data.images.right) === null || _data$images$right2 === void 0 ? void 0 : _data$images$right2.fileSize,
60784
- mediaType: (_data$images$right3 = data.images.right) === null || _data$images$right3 === void 0 ? void 0 : _data$images$right3.mediaType,
60942
+ fileSize: (_data$images$right = data.images.right) === null || _data$images$right === void 0 ? void 0 : _data$images$right.fileSize,
60943
+ mediaType: (_data$images$right2 = data.images.right) === null || _data$images$right2 === void 0 ? void 0 : _data$images$right2.mediaType,
60785
60944
  detailsOpen: detailsOpen,
60786
60945
  onDetailsOpenChange: setDetailsOpen,
60787
60946
  promptOpen: promptOpen,
@@ -60810,7 +60969,6 @@ function RenderApprove() {
60810
60969
  onNext: session.goNext
60811
60970
  }) : /*#__PURE__*/jsx(ApprovalWorkspace, {
60812
60971
  images: data.images,
60813
- loading: data.loading,
60814
60972
  readonlyDecision: !session.skipProcessedJobs ? session.currentDecision : undefined,
60815
60973
  onOpenFullscreenLeft: function onOpenFullscreenLeft() {
60816
60974
  return openFullscreen('left');