@crystaldesign/diva-backoffice 26.14.0-beta.17 → 26.14.0-beta.18
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.
- package/build/esm/index.js +936 -745
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/priceTypeColumns.d.ts +21 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/priceTypeColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePriceTypesOfCatalog.d.ts +27 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePriceTypesOfCatalog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceTypes/index.d.ts +9 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceTypes/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -1
- package/package.json +12 -12
package/build/esm/index.js
CHANGED
|
@@ -931,8 +931,8 @@ function staleBasesOf(message) {
|
|
|
931
931
|
function _createForOfIteratorHelper$19(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$19(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; } } }; }
|
|
932
932
|
function _unsupportedIterableToArray$19(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$19(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$19(r, a) : void 0; } }
|
|
933
933
|
function _arrayLikeToArray$19(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; }
|
|
934
|
-
function ownKeys$
|
|
935
|
-
function _objectSpread$
|
|
934
|
+
function ownKeys$2K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
935
|
+
function _objectSpread$2K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
936
936
|
var LOG$w = getLogger('Backoffice', 'ApplyMapping');
|
|
937
937
|
function applyMapping (_ref) {
|
|
938
938
|
var mappable = _ref.mappable,
|
|
@@ -953,10 +953,10 @@ function applyMapping (_ref) {
|
|
|
953
953
|
var newValue = {};
|
|
954
954
|
newValue[newKey] = valueToAdd;
|
|
955
955
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
956
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
|
956
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$2K(_objectSpread$2K({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
957
957
|
return startValue;
|
|
958
958
|
}
|
|
959
|
-
if (newIdx == 1) return _objectSpread$
|
|
959
|
+
if (newIdx == 1) return _objectSpread$2K(_objectSpread$2K({}, startValue), newValue);
|
|
960
960
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
961
961
|
};
|
|
962
962
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -1084,8 +1084,8 @@ function applyMapping (_ref) {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
|
-
function ownKeys$
|
|
1088
|
-
function _objectSpread$
|
|
1087
|
+
function ownKeys$2J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1088
|
+
function _objectSpread$2J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1089
1089
|
function parseServersideFilters (_ref) {
|
|
1090
1090
|
var baseUrl = _ref.baseUrl,
|
|
1091
1091
|
columns = _ref.columns,
|
|
@@ -1241,7 +1241,7 @@ var ALL_FIELDS_OPERATORS = ['ne', 'doesnotcontain', 'isnull'];
|
|
|
1241
1241
|
* has to check both fields. Expands such column filters (keyed by `column.field`) into one entry per field.
|
|
1242
1242
|
*/
|
|
1243
1243
|
function expandFallbackFieldFilters(filters, columns) {
|
|
1244
|
-
var expanded = _objectSpread$
|
|
1244
|
+
var expanded = _objectSpread$2J({}, filters);
|
|
1245
1245
|
// parseFilter treats group index 0 as "no OR group", so numbering starts at 1.
|
|
1246
1246
|
var orGroup = 1;
|
|
1247
1247
|
for (var _i = 0, _getLeafColumns = getLeafColumns(columns); _i < _getLeafColumns.length; _i++) {
|
|
@@ -1291,8 +1291,8 @@ function getLeafColumns(columns) {
|
|
|
1291
1291
|
});
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
function ownKeys$
|
|
1295
|
-
function _objectSpread$
|
|
1294
|
+
function ownKeys$2I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1295
|
+
function _objectSpread$2I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1296
1296
|
var LOG$v = getLogger('Backoffice', 'ApiHandler');
|
|
1297
1297
|
var jp = require('jsonpath');
|
|
1298
1298
|
var _default$c = /*#__PURE__*/function () {
|
|
@@ -1473,7 +1473,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1473
1473
|
_context2.next = 21;
|
|
1474
1474
|
return fetch(finalUrl, {
|
|
1475
1475
|
method: this._updateMethod,
|
|
1476
|
-
headers: _objectSpread$
|
|
1476
|
+
headers: _objectSpread$2I(_objectSpread$2I({}, jwt ? {
|
|
1477
1477
|
Authorization: 'Bearer ' + jwt
|
|
1478
1478
|
} : {}), {}, {
|
|
1479
1479
|
'Content-Type': 'application/json'
|
|
@@ -1568,7 +1568,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1568
1568
|
rootStore: this._rootStore,
|
|
1569
1569
|
fallBackToParams: true
|
|
1570
1570
|
});
|
|
1571
|
-
if (data) createData = _objectSpread$
|
|
1571
|
+
if (data) createData = _objectSpread$2I({}, data);
|
|
1572
1572
|
} else if (data !== undefined) {
|
|
1573
1573
|
createData = applyMapping({
|
|
1574
1574
|
mappable: data,
|
|
@@ -1833,7 +1833,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1833
1833
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1834
1834
|
case 2:
|
|
1835
1835
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1836
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1836
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$2I(_objectSpread$2I({}, filterServerSide), {}, {
|
|
1837
1837
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1838
1838
|
baseUrl: this._readListUrl,
|
|
1839
1839
|
prefilter: prefilter
|
|
@@ -1853,7 +1853,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1853
1853
|
});
|
|
1854
1854
|
case 6:
|
|
1855
1855
|
response = _context8.sent;
|
|
1856
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1856
|
+
return _context8.abrupt("return", _objectSpread$2I(_objectSpread$2I({}, response), {}, {
|
|
1857
1857
|
data: response.data.map(function (d) {
|
|
1858
1858
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1859
1859
|
})
|
|
@@ -1877,7 +1877,7 @@ var _default$c = /*#__PURE__*/function () {
|
|
|
1877
1877
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1878
1878
|
}
|
|
1879
1879
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1880
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1880
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$2I(_objectSpread$2I({}, filterServerSide), {}, {
|
|
1881
1881
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1882
1882
|
baseUrl: this._readListUrl,
|
|
1883
1883
|
prefilter: prefilter
|
|
@@ -2703,8 +2703,8 @@ var ASPECT_RATIOS_FULL = ['1:1', '2:3', '3:2', '3:4', '4:3', '4:5', '5:4', '9:16
|
|
|
2703
2703
|
/** All four image sizes — only `gemini-3.1-flash-image-preview` supports `512`. */
|
|
2704
2704
|
var IMAGE_SIZES_FULL = ['512', '1K', '2K', '4K'];
|
|
2705
2705
|
|
|
2706
|
-
function ownKeys$
|
|
2707
|
-
function _objectSpread$
|
|
2706
|
+
function ownKeys$2H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2707
|
+
function _objectSpread$2H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2708
2708
|
|
|
2709
2709
|
/** The types of an AI service prompt: TEXT is a text template for /v2/text, every other type an image template. */
|
|
2710
2710
|
var PROMPT_TYPES = ['ROOM_RENDERING', 'SOCIAL_ADD', 'PRODUCT', 'HERO_IMAGE', 'UPSCALE', 'TEXT'];
|
|
@@ -2770,7 +2770,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
2770
2770
|
var _i$permission;
|
|
2771
2771
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
2772
2772
|
});
|
|
2773
|
-
config = _objectSpread$
|
|
2773
|
+
config = _objectSpread$2H(_objectSpread$2H({}, config), {}, {
|
|
2774
2774
|
items: filteredItems
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
@@ -15864,19 +15864,19 @@ function aplyRules(_ref2) {
|
|
|
15864
15864
|
};
|
|
15865
15865
|
}
|
|
15866
15866
|
|
|
15867
|
-
function ownKeys$
|
|
15868
|
-
function _objectSpread$
|
|
15867
|
+
function ownKeys$2G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15868
|
+
function _objectSpread$2G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15869
15869
|
/**
|
|
15870
15870
|
* Wraps 16x16 path data from Bootstrap Icons (MIT) in the antd `Icon`, so it sizes like the antd icons and takes the
|
|
15871
15871
|
* surrounding text color (`currentColor`) in the light and the dark theme.
|
|
15872
15872
|
*/
|
|
15873
15873
|
function svgIcon(paths) {
|
|
15874
15874
|
var Svg = function Svg(props) {
|
|
15875
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$
|
|
15875
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$2G(_objectSpread$2G({
|
|
15876
15876
|
viewBox: "0 0 16 16"
|
|
15877
15877
|
}, props), {}, {
|
|
15878
15878
|
children: paths.map(function (path) {
|
|
15879
|
-
return /*#__PURE__*/jsx("path", _objectSpread$
|
|
15879
|
+
return /*#__PURE__*/jsx("path", _objectSpread$2G({}, path), path.d);
|
|
15880
15880
|
})
|
|
15881
15881
|
}));
|
|
15882
15882
|
};
|
|
@@ -16117,8 +16117,8 @@ function getIcon(icon) {
|
|
|
16117
16117
|
return undefined;
|
|
16118
16118
|
}
|
|
16119
16119
|
|
|
16120
|
-
function ownKeys$
|
|
16121
|
-
function _objectSpread$
|
|
16120
|
+
function ownKeys$2F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16121
|
+
function _objectSpread$2F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16122
16122
|
/**
|
|
16123
16123
|
* Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
|
|
16124
16124
|
* Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
|
|
@@ -16164,14 +16164,14 @@ function readToolPreferences(toolId) {
|
|
|
16164
16164
|
/** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
|
|
16165
16165
|
function updateToolPreferences(toolId, patch) {
|
|
16166
16166
|
try {
|
|
16167
|
-
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$
|
|
16167
|
+
localStorage.setItem(STORAGE_PREFIX$1 + toolId, JSON.stringify(_objectSpread$2F(_objectSpread$2F({}, readToolPreferences(toolId)), patch)));
|
|
16168
16168
|
} catch (_unused2) {
|
|
16169
16169
|
// storage unavailable / quota exceeded
|
|
16170
16170
|
}
|
|
16171
16171
|
}
|
|
16172
16172
|
|
|
16173
|
-
function ownKeys$
|
|
16174
|
-
function _objectSpread$
|
|
16173
|
+
function ownKeys$2E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16174
|
+
function _objectSpread$2E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16175
16175
|
var DEFAULT_WIDTH = 500;
|
|
16176
16176
|
|
|
16177
16177
|
/** The toolbar lent to a temporary owner, see ToolBarStore.borrowTools. */
|
|
@@ -16298,7 +16298,7 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
16298
16298
|
// The page updates a tool it has lent out: this version comes back at the end of the loan, until then the
|
|
16299
16299
|
// tool keeps showing the borrower's data
|
|
16300
16300
|
loan.own = tool;
|
|
16301
|
-
return _objectSpread$
|
|
16301
|
+
return _objectSpread$2E(_objectSpread$2E({}, tool), {}, {
|
|
16302
16302
|
parameters: loan.parameters
|
|
16303
16303
|
});
|
|
16304
16304
|
}));
|
|
@@ -16366,7 +16366,7 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
16366
16366
|
var loan = _this4._loans.get(tool.id);
|
|
16367
16367
|
if (!loan) return tool;
|
|
16368
16368
|
loan.parameters = tool.parameters;
|
|
16369
|
-
return _objectSpread$
|
|
16369
|
+
return _objectSpread$2E(_objectSpread$2E({}, loan.own), {}, {
|
|
16370
16370
|
parameters: tool.parameters
|
|
16371
16371
|
});
|
|
16372
16372
|
}));
|
|
@@ -16904,8 +16904,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
16904
16904
|
}]);
|
|
16905
16905
|
}();
|
|
16906
16906
|
|
|
16907
|
-
function ownKeys$
|
|
16908
|
-
function _objectSpread$
|
|
16907
|
+
function ownKeys$2D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16908
|
+
function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16909
16909
|
function _createForOfIteratorHelper$17(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$17(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; } } }; }
|
|
16910
16910
|
function _unsupportedIterableToArray$17(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$17(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$17(r, a) : void 0; } }
|
|
16911
16911
|
function _arrayLikeToArray$17(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; }
|
|
@@ -17054,7 +17054,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
17054
17054
|
if (index >= 0) {
|
|
17055
17055
|
this._additionalMenuElements[index] = {
|
|
17056
17056
|
key: key,
|
|
17057
|
-
element: _objectSpread$
|
|
17057
|
+
element: _objectSpread$2D(_objectSpread$2D({}, this._additionalMenuElements[index].element), {}, {
|
|
17058
17058
|
items: items,
|
|
17059
17059
|
selected: selected
|
|
17060
17060
|
})
|
|
@@ -17143,7 +17143,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
17143
17143
|
// A host with its own navigation has no menu columns to keep in sync (see `RootStore.menu`).
|
|
17144
17144
|
if (this._menuElement1) {
|
|
17145
17145
|
var _this$_menu$find;
|
|
17146
|
-
this._menuElement1 = _objectSpread$
|
|
17146
|
+
this._menuElement1 = _objectSpread$2D(_objectSpread$2D({}, this._menuElement1), {}, {
|
|
17147
17147
|
selected: this._selectedMenuKeys[0]
|
|
17148
17148
|
});
|
|
17149
17149
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -17433,7 +17433,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
17433
17433
|
}
|
|
17434
17434
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
17435
17435
|
}).map(function (item) {
|
|
17436
|
-
return _objectSpread$
|
|
17436
|
+
return _objectSpread$2D(_objectSpread$2D({}, item), {}, {
|
|
17437
17437
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
17438
17438
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
17439
17439
|
});
|
|
@@ -18813,8 +18813,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
18813
18813
|
return _createClass(_default);
|
|
18814
18814
|
}(_default$c);
|
|
18815
18815
|
|
|
18816
|
-
function ownKeys$
|
|
18817
|
-
function _objectSpread$
|
|
18816
|
+
function ownKeys$2C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18817
|
+
function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18818
18818
|
var LOG$t = getLogger('Backoffice', 'ContextStore');
|
|
18819
18819
|
|
|
18820
18820
|
/**
|
|
@@ -18856,7 +18856,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
18856
18856
|
key: "updateContext",
|
|
18857
18857
|
value: function updateContext(contextId, updates) {
|
|
18858
18858
|
var currentState = this.contexts.get(contextId) || {};
|
|
18859
|
-
var updatedState = _objectSpread$
|
|
18859
|
+
var updatedState = _objectSpread$2C(_objectSpread$2C({}, currentState), updates);
|
|
18860
18860
|
this.contexts.set(contextId, updatedState);
|
|
18861
18861
|
LOG$t.debug("Updated context ".concat(contextId), {
|
|
18862
18862
|
updatedState: updatedState
|
|
@@ -18872,8 +18872,8 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
18872
18872
|
}]);
|
|
18873
18873
|
}();
|
|
18874
18874
|
|
|
18875
|
-
function ownKeys$
|
|
18876
|
-
function _objectSpread$
|
|
18875
|
+
function ownKeys$2B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18876
|
+
function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18877
18877
|
|
|
18878
18878
|
/**
|
|
18879
18879
|
* An operation a table offers beyond cell edits - adding a matrix column, a server-side bulk removal. The VIEW
|
|
@@ -18963,7 +18963,7 @@ var GridRegistry = /*#__PURE__*/function () {
|
|
|
18963
18963
|
key: "register",
|
|
18964
18964
|
value: function register(entry) {
|
|
18965
18965
|
var id = ++this._seq;
|
|
18966
|
-
this._entries = [].concat(_toConsumableArray(this._entries), [_objectSpread$
|
|
18966
|
+
this._entries = [].concat(_toConsumableArray(this._entries), [_objectSpread$2B({
|
|
18967
18967
|
id: id
|
|
18968
18968
|
}, entry)]);
|
|
18969
18969
|
return id;
|
|
@@ -19262,8 +19262,8 @@ function useBorrowedTools(tools) {
|
|
|
19262
19262
|
}, []);
|
|
19263
19263
|
}
|
|
19264
19264
|
|
|
19265
|
-
function ownKeys$
|
|
19266
|
-
function _objectSpread$
|
|
19265
|
+
function ownKeys$2A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19266
|
+
function _objectSpread$2A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19267
19267
|
function fetchFileData(_x) {
|
|
19268
19268
|
return _fetchFileData.apply(this, arguments);
|
|
19269
19269
|
}
|
|
@@ -19423,7 +19423,7 @@ function _uploadMediaItem() {
|
|
|
19423
19423
|
_context4.next = 4;
|
|
19424
19424
|
return fetch("".concat(root, "/v1/assets/uploads"), {
|
|
19425
19425
|
method: 'POST',
|
|
19426
|
-
headers: _objectSpread$
|
|
19426
|
+
headers: _objectSpread$2A({
|
|
19427
19427
|
'Content-Type': 'application/json'
|
|
19428
19428
|
}, auth),
|
|
19429
19429
|
body: JSON.stringify({
|
|
@@ -19489,7 +19489,7 @@ function _uploadMediaItem() {
|
|
|
19489
19489
|
_context4.next = 31;
|
|
19490
19490
|
return fetch("".concat(root, "/v1/assets/uploads/complete"), {
|
|
19491
19491
|
method: 'POST',
|
|
19492
|
-
headers: _objectSpread$
|
|
19492
|
+
headers: _objectSpread$2A({
|
|
19493
19493
|
'Content-Type': 'application/json'
|
|
19494
19494
|
}, auth),
|
|
19495
19495
|
body: JSON.stringify({
|
|
@@ -19534,7 +19534,7 @@ function _uploadMediaItem() {
|
|
|
19534
19534
|
refUrl = (_ref$url = ref.url) !== null && _ref$url !== void 0 ? _ref$url : ref.cdnUrl;
|
|
19535
19535
|
return _context4.abrupt("return", {
|
|
19536
19536
|
_id: mediaItem._id,
|
|
19537
|
-
ref: _objectSpread$
|
|
19537
|
+
ref: _objectSpread$2A(_objectSpread$2A({}, ref), {}, {
|
|
19538
19538
|
_id: ref._id,
|
|
19539
19539
|
url: refUrl
|
|
19540
19540
|
})
|
|
@@ -19982,8 +19982,8 @@ function getData$1(id, data) {
|
|
|
19982
19982
|
function _createForOfIteratorHelper$14(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$14(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; } } }; }
|
|
19983
19983
|
function _unsupportedIterableToArray$14(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$14(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$14(r, a) : void 0; } }
|
|
19984
19984
|
function _arrayLikeToArray$14(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; }
|
|
19985
|
-
function ownKeys$
|
|
19986
|
-
function _objectSpread$
|
|
19985
|
+
function ownKeys$2z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19986
|
+
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19987
19987
|
function toNamePath$2(name) {
|
|
19988
19988
|
if (name === undefined || name === '') return [];
|
|
19989
19989
|
return Array.isArray(name) ? name : [name];
|
|
@@ -20054,7 +20054,7 @@ function useFormData (_ref) {
|
|
|
20054
20054
|
var _useMemo = useMemo(function () {
|
|
20055
20055
|
setCanSave === null || setCanSave === void 0 || setCanSave(true);
|
|
20056
20056
|
var baseConfiguration = configurationOverride !== null && configurationOverride !== void 0 ? configurationOverride : root.configurationStore.getConfiguration(id, 'Form');
|
|
20057
|
-
var configuration = _objectSpread$
|
|
20057
|
+
var configuration = _objectSpread$2z(_objectSpread$2z({}, baseConfiguration), {}, {
|
|
20058
20058
|
apiInterface: apiInterface !== null && apiInterface !== void 0 ? apiInterface : baseConfiguration.apiInterface
|
|
20059
20059
|
});
|
|
20060
20060
|
var c = {
|
|
@@ -20154,7 +20154,7 @@ function useFormData (_ref) {
|
|
|
20154
20154
|
multipleEditingData = inboundData;
|
|
20155
20155
|
}
|
|
20156
20156
|
return {
|
|
20157
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
20157
|
+
loadedData: _onLoadFields(_objectSpread$2z({}, dt)),
|
|
20158
20158
|
multipleEditingData: multipleEditingData
|
|
20159
20159
|
};
|
|
20160
20160
|
}, [inboundData]),
|
|
@@ -20181,7 +20181,7 @@ function useFormData (_ref) {
|
|
|
20181
20181
|
setFieldErrors = _useState20[1];
|
|
20182
20182
|
useEffect(function () {
|
|
20183
20183
|
var _ref3, _loadedData$_id2;
|
|
20184
|
-
setState(_objectSpread$
|
|
20184
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20185
20185
|
data: loadedData,
|
|
20186
20186
|
origData: JSON.parse(JSON.stringify((_ref3 = storedData !== null && storedData !== void 0 ? storedData : inboundData) !== null && _ref3 !== void 0 ? _ref3 : {})),
|
|
20187
20187
|
update: !!((_loadedData$_id2 = loadedData === null || loadedData === void 0 ? void 0 : loadedData._id) !== null && _loadedData$_id2 !== void 0 ? _loadedData$_id2 : loadedData === null || loadedData === void 0 ? void 0 : loadedData.ID),
|
|
@@ -20294,7 +20294,7 @@ function useFormData (_ref) {
|
|
|
20294
20294
|
root.actions.toggleLoading('saving_form');
|
|
20295
20295
|
_context2.prev = 4;
|
|
20296
20296
|
_context2.next = 7;
|
|
20297
|
-
return setDynamicFields(_objectSpread$
|
|
20297
|
+
return setDynamicFields(_objectSpread$2z({}, state.data), newData);
|
|
20298
20298
|
case 7:
|
|
20299
20299
|
newData = _context2.sent;
|
|
20300
20300
|
_context2.next = 10;
|
|
@@ -20309,7 +20309,7 @@ function useFormData (_ref) {
|
|
|
20309
20309
|
root.actions.toggleLoading('saving_form');
|
|
20310
20310
|
throw _context2.t0;
|
|
20311
20311
|
case 17:
|
|
20312
|
-
setState(_objectSpread$
|
|
20312
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20313
20313
|
loading: true
|
|
20314
20314
|
}));
|
|
20315
20315
|
finalData = state.data;
|
|
@@ -20362,14 +20362,14 @@ function useFormData (_ref) {
|
|
|
20362
20362
|
_context2.next = 47;
|
|
20363
20363
|
break;
|
|
20364
20364
|
}
|
|
20365
|
-
setFieldErrors(_objectSpread$
|
|
20365
|
+
setFieldErrors(_objectSpread$2z(_objectSpread$2z({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
20366
20366
|
return _context2.abrupt("return", undefined);
|
|
20367
20367
|
case 47:
|
|
20368
20368
|
throw _context2.t1;
|
|
20369
20369
|
case 48:
|
|
20370
20370
|
_context2.prev = 48;
|
|
20371
20371
|
root.actions.toggleLoading('saving_form');
|
|
20372
|
-
setState(_objectSpread$
|
|
20372
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20373
20373
|
data: finalData,
|
|
20374
20374
|
loading: false
|
|
20375
20375
|
}));
|
|
@@ -20425,11 +20425,11 @@ function useFormData (_ref) {
|
|
|
20425
20425
|
var data = d !== null && d !== void 0 ? d : mergeWith(cloneDeep(state.data), formValues, mergeFormWithCustomizer);
|
|
20426
20426
|
if (id) {
|
|
20427
20427
|
setFieldInObject(id, data, value);
|
|
20428
|
-
var newFieldErrors = _objectSpread$
|
|
20428
|
+
var newFieldErrors = _objectSpread$2z({}, fieldErrors);
|
|
20429
20429
|
delete newFieldErrors[id.toString()];
|
|
20430
20430
|
setFieldErrors(newFieldErrors);
|
|
20431
20431
|
}
|
|
20432
|
-
setState(_objectSpread$
|
|
20432
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20433
20433
|
data: data
|
|
20434
20434
|
}));
|
|
20435
20435
|
return data;
|
|
@@ -20485,10 +20485,10 @@ function useFormData (_ref) {
|
|
|
20485
20485
|
} else {
|
|
20486
20486
|
data[name] = val;
|
|
20487
20487
|
}
|
|
20488
|
-
if (configuration.itemSelectorReset) setState(_objectSpread$
|
|
20488
|
+
if (configuration.itemSelectorReset) setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20489
20489
|
data: data
|
|
20490
|
-
}));else setState(_objectSpread$
|
|
20491
|
-
data: _objectSpread$
|
|
20490
|
+
}));else setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20491
|
+
data: _objectSpread$2z(_objectSpread$2z({}, state.data), data)
|
|
20492
20492
|
}));
|
|
20493
20493
|
if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
|
|
20494
20494
|
setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
|
|
@@ -20521,12 +20521,12 @@ function useFormData (_ref) {
|
|
|
20521
20521
|
var val = _ref8.value;
|
|
20522
20522
|
if (value === val) {
|
|
20523
20523
|
if (configuration.itemSelectorReset) {
|
|
20524
|
-
setState(_objectSpread$
|
|
20524
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20525
20525
|
data: _defineProperty({}, name, val)
|
|
20526
20526
|
}));
|
|
20527
20527
|
} else {
|
|
20528
|
-
setState(_objectSpread$
|
|
20529
|
-
data: _objectSpread$
|
|
20528
|
+
setState(_objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20529
|
+
data: _objectSpread$2z(_objectSpread$2z({}, state.data), {}, _defineProperty({}, name, val))
|
|
20530
20530
|
}));
|
|
20531
20531
|
}
|
|
20532
20532
|
setSelectedItemsIndex([selectedItemsIndex[0], idx]);
|
|
@@ -20698,7 +20698,7 @@ function useFormData (_ref) {
|
|
|
20698
20698
|
var _configuration$tools;
|
|
20699
20699
|
return (_configuration$tools = configuration.tools) === null || _configuration$tools === void 0 ? void 0 : _configuration$tools.map(function (tool) {
|
|
20700
20700
|
var _tool$defaultOpen;
|
|
20701
|
-
return _objectSpread$
|
|
20701
|
+
return _objectSpread$2z(_objectSpread$2z({}, tool), {}, {
|
|
20702
20702
|
parameters: {
|
|
20703
20703
|
data: state.data,
|
|
20704
20704
|
formInstance: form,
|
|
@@ -20846,7 +20846,7 @@ function useFormData (_ref) {
|
|
|
20846
20846
|
}
|
|
20847
20847
|
});
|
|
20848
20848
|
}
|
|
20849
|
-
return _objectSpread$
|
|
20849
|
+
return _objectSpread$2z(_objectSpread$2z({}, state), {}, {
|
|
20850
20850
|
getIsHidden: getIsHidden,
|
|
20851
20851
|
setUsedPreset: setUsedPreset,
|
|
20852
20852
|
configuration: configuration,
|
|
@@ -20964,8 +20964,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
20964
20964
|
};
|
|
20965
20965
|
|
|
20966
20966
|
var _excluded$h = ["key", "name"];
|
|
20967
|
-
function ownKeys$
|
|
20968
|
-
function _objectSpread$
|
|
20967
|
+
function ownKeys$2y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20968
|
+
function _objectSpread$2y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20969
20969
|
var FormList$2 = function FormList(_ref) {
|
|
20970
20970
|
var value = _ref.value,
|
|
20971
20971
|
item = _ref.item,
|
|
@@ -21030,7 +21030,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
21030
21030
|
var n = [name].concat(_toConsumableArray(Array.isArray(i.name) ? i.name : [i.name]), _toConsumableArray(i.doTranslate && postFixName ? Array.isArray(postFixName) ? postFixName : [postFixName] : []));
|
|
21031
21031
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
21032
21032
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
21033
|
-
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$
|
|
21033
|
+
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$2y(_objectSpread$2y({}, restField), {}, {
|
|
21034
21034
|
id: n.join(),
|
|
21035
21035
|
key: n.join(),
|
|
21036
21036
|
name: n,
|
|
@@ -21042,7 +21042,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
21042
21042
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
21043
21043
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
21044
21044
|
hidden: hidden
|
|
21045
|
-
}), getElement(_objectSpread$
|
|
21045
|
+
}), getElement(_objectSpread$2y(_objectSpread$2y({}, i), {}, {
|
|
21046
21046
|
name: n
|
|
21047
21047
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
21048
21048
|
})
|
|
@@ -21276,8 +21276,8 @@ var buttonGroup = "button-group-GYt-T";
|
|
|
21276
21276
|
var css_248z$1k = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
|
21277
21277
|
styleInject(css_248z$1k);
|
|
21278
21278
|
|
|
21279
|
-
function ownKeys$
|
|
21280
|
-
function _objectSpread$
|
|
21279
|
+
function ownKeys$2x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21280
|
+
function _objectSpread$2x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21281
21281
|
var SubTitle = function SubTitle(_ref) {
|
|
21282
21282
|
var _item$label, _item$orientation, _item$buttonIds;
|
|
21283
21283
|
var item = _ref.item,
|
|
@@ -21287,7 +21287,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
21287
21287
|
var title = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : Array.isArray(item.name) ? item.name[0].toString() : item.name;
|
|
21288
21288
|
return /*#__PURE__*/jsx(Divider, {
|
|
21289
21289
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
|
|
21290
|
-
style: _objectSpread$
|
|
21290
|
+
style: _objectSpread$2x({}, item.style),
|
|
21291
21291
|
children: /*#__PURE__*/jsxs("div", {
|
|
21292
21292
|
className: wrapper$a,
|
|
21293
21293
|
children: [t(title, title), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
|
@@ -21581,8 +21581,8 @@ var css_248z$1j = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;
|
|
|
21581
21581
|
styleInject(css_248z$1j);
|
|
21582
21582
|
|
|
21583
21583
|
var _excluded$g = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
|
21584
|
-
function ownKeys$
|
|
21585
|
-
function _objectSpread$
|
|
21584
|
+
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21585
|
+
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21586
21586
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
21587
21587
|
var apiInterface = _ref.apiInterface,
|
|
21588
21588
|
selectMapping = _ref.selectMapping,
|
|
@@ -21609,7 +21609,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
21609
21609
|
return /*#__PURE__*/jsxs("div", {
|
|
21610
21610
|
ref: ref,
|
|
21611
21611
|
className: classNames(title ? wrapper$9 : undefined),
|
|
21612
|
-
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$
|
|
21612
|
+
children: [title, /*#__PURE__*/jsx(Select, _objectSpread$2w(_objectSpread$2w({}, selectProps), {}, {
|
|
21613
21613
|
showSearch: search,
|
|
21614
21614
|
loading: state.loading,
|
|
21615
21615
|
options: state.options,
|
|
@@ -22226,8 +22226,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
22226
22226
|
}]);
|
|
22227
22227
|
}(_default$c);
|
|
22228
22228
|
|
|
22229
|
-
function ownKeys$
|
|
22230
|
-
function _objectSpread$
|
|
22229
|
+
function ownKeys$2v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22230
|
+
function _objectSpread$2v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22231
22231
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
22232
22232
|
function useSelectClientRelationCatalog (_ref) {
|
|
22233
22233
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -22396,7 +22396,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
22396
22396
|
case 22:
|
|
22397
22397
|
supplierData = _context2.sent;
|
|
22398
22398
|
case 23:
|
|
22399
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
22399
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$2v(_objectSpread$2v({}, _selectedSupplier), {}, {
|
|
22400
22400
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
22401
22401
|
}), supplierData);
|
|
22402
22402
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -22629,8 +22629,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
22629
22629
|
function _createForOfIteratorHelper$12(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$12(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; } } }; }
|
|
22630
22630
|
function _unsupportedIterableToArray$12(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$12(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$12(r, a) : void 0; } }
|
|
22631
22631
|
function _arrayLikeToArray$12(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; }
|
|
22632
|
-
function ownKeys$
|
|
22633
|
-
function _objectSpread$
|
|
22632
|
+
function ownKeys$2u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22633
|
+
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22634
22634
|
function useSelectData (_ref) {
|
|
22635
22635
|
var data = _ref.data,
|
|
22636
22636
|
onChange = _ref.onChange,
|
|
@@ -23102,7 +23102,7 @@ function useSelectData (_ref) {
|
|
|
23102
23102
|
setFetching(true);
|
|
23103
23103
|
serverSideParams = {
|
|
23104
23104
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? (_selectMapping$search = selectMapping.searchField) === null || _selectMapping$search === void 0 ? void 0 : _selectMapping$search.reduce(function (filter, field) {
|
|
23105
|
-
return _objectSpread$
|
|
23105
|
+
return _objectSpread$2u(_objectSpread$2u({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
23106
23106
|
}, {}) : {
|
|
23107
23107
|
_id: [value, 'contains']
|
|
23108
23108
|
},
|
|
@@ -23579,8 +23579,8 @@ var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
|
23579
23579
|
var css_248z$1g = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
|
23580
23580
|
styleInject(css_248z$1g);
|
|
23581
23581
|
|
|
23582
|
-
function ownKeys$
|
|
23583
|
-
function _objectSpread$
|
|
23582
|
+
function ownKeys$2t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23583
|
+
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23584
23584
|
var LOG$q = getLogger('Backoffice', 'Translation Form');
|
|
23585
23585
|
|
|
23586
23586
|
/** The languages a translation field edits - also the ones the content item preview offers. */
|
|
@@ -23722,7 +23722,7 @@ function useTranslationHook (item, state) {
|
|
|
23722
23722
|
case 0:
|
|
23723
23723
|
_context2.next = 2;
|
|
23724
23724
|
return apiHandler.create({
|
|
23725
|
-
locales: _objectSpread$
|
|
23725
|
+
locales: _objectSpread$2t({
|
|
23726
23726
|
de: {},
|
|
23727
23727
|
it: {},
|
|
23728
23728
|
fr: {},
|
|
@@ -23771,8 +23771,8 @@ function useTranslationHook (item, state) {
|
|
|
23771
23771
|
};
|
|
23772
23772
|
}
|
|
23773
23773
|
|
|
23774
|
-
function ownKeys$
|
|
23775
|
-
function _objectSpread$
|
|
23774
|
+
function ownKeys$2s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23775
|
+
function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23776
23776
|
var HiddenFormField = function HiddenFormField() {
|
|
23777
23777
|
return null;
|
|
23778
23778
|
};
|
|
@@ -23838,7 +23838,7 @@ var Translation = function Translation(_ref) {
|
|
|
23838
23838
|
}, key);
|
|
23839
23839
|
}
|
|
23840
23840
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
23841
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
23841
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$2s(_objectSpread$2s({}, i), {}, {
|
|
23842
23842
|
name: n
|
|
23843
23843
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang, newFormName) : /*#__PURE__*/jsx(Form$2.Item, {
|
|
23844
23844
|
id: idx.toString(),
|
|
@@ -23851,7 +23851,7 @@ var Translation = function Translation(_ref) {
|
|
|
23851
23851
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
23852
23852
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
23853
23853
|
hidden: hidden,
|
|
23854
|
-
children: getElement(_objectSpread$
|
|
23854
|
+
children: getElement(_objectSpread$2s(_objectSpread$2s({}, i), {}, {
|
|
23855
23855
|
name: n
|
|
23856
23856
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
23857
23857
|
})
|
|
@@ -24338,8 +24338,8 @@ function deltaFromColors(mainHex, valueHex) {
|
|
|
24338
24338
|
return avg;
|
|
24339
24339
|
}
|
|
24340
24340
|
|
|
24341
|
-
function ownKeys$
|
|
24342
|
-
function _objectSpread$
|
|
24341
|
+
function ownKeys$2r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24342
|
+
function _objectSpread$2r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24343
24343
|
function FormSlider(_ref) {
|
|
24344
24344
|
var item = _ref.item,
|
|
24345
24345
|
disabled = _ref.disabled,
|
|
@@ -24373,7 +24373,7 @@ function FormSlider(_ref) {
|
|
|
24373
24373
|
children: t('backoffice.form.slider.apiDefaultHint', {
|
|
24374
24374
|
defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
|
|
24375
24375
|
})
|
|
24376
|
-
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$
|
|
24376
|
+
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$2r(_objectSpread$2r({
|
|
24377
24377
|
min: item.min,
|
|
24378
24378
|
max: item.max,
|
|
24379
24379
|
step: item.step
|
|
@@ -24404,8 +24404,8 @@ function FormSlider(_ref) {
|
|
|
24404
24404
|
function _createForOfIteratorHelper$11(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$11(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; } } }; }
|
|
24405
24405
|
function _unsupportedIterableToArray$11(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$11(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$11(r, a) : void 0; } }
|
|
24406
24406
|
function _arrayLikeToArray$11(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; }
|
|
24407
|
-
function ownKeys$
|
|
24408
|
-
function _objectSpread$
|
|
24407
|
+
function ownKeys$2q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24408
|
+
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24409
24409
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName, formName) {
|
|
24410
24410
|
var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
|
|
24411
24411
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -24442,7 +24442,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
24442
24442
|
}
|
|
24443
24443
|
});
|
|
24444
24444
|
case 'selectSimple':
|
|
24445
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
24445
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$2q(_objectSpread$2q({}, item), {}, {
|
|
24446
24446
|
disabled: disabled,
|
|
24447
24447
|
onChange: function onChange(value) {
|
|
24448
24448
|
_onChange(absoluteName, value);
|
|
@@ -24717,7 +24717,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
24717
24717
|
},
|
|
24718
24718
|
icon: item.icon,
|
|
24719
24719
|
callback: function callback(data) {
|
|
24720
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
24720
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$2q(_objectSpread$2q({}, state.data), data));
|
|
24721
24721
|
}
|
|
24722
24722
|
});
|
|
24723
24723
|
case 'media':
|
|
@@ -24755,7 +24755,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
24755
24755
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24756
24756
|
var _useTranslation = useTranslation(),
|
|
24757
24757
|
t = _useTranslation.t;
|
|
24758
|
-
return /*#__PURE__*/jsx(Input$1, _objectSpread$
|
|
24758
|
+
return /*#__PURE__*/jsx(Input$1, _objectSpread$2q(_objectSpread$2q({}, props), {}, {
|
|
24759
24759
|
ref: ref,
|
|
24760
24760
|
disabled: true,
|
|
24761
24761
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -24774,8 +24774,8 @@ function isReadonly(item, data) {
|
|
|
24774
24774
|
return false;
|
|
24775
24775
|
}
|
|
24776
24776
|
|
|
24777
|
-
function ownKeys$
|
|
24778
|
-
function _objectSpread$
|
|
24777
|
+
function ownKeys$2p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24778
|
+
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24779
24779
|
function _createForOfIteratorHelper$10(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$10(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; } } }; }
|
|
24780
24780
|
function _unsupportedIterableToArray$10(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$10(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$10(r, a) : void 0; } }
|
|
24781
24781
|
function _arrayLikeToArray$10(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; }
|
|
@@ -24825,13 +24825,13 @@ var Presets = function Presets(_ref) {
|
|
|
24825
24825
|
} finally {
|
|
24826
24826
|
_iterator.f();
|
|
24827
24827
|
}
|
|
24828
|
-
var data = _objectSpread$
|
|
24828
|
+
var data = _objectSpread$2p(_objectSpread$2p({}, form.getFieldsValue(names)), {}, {
|
|
24829
24829
|
newPresetName: newPresetName
|
|
24830
24830
|
});
|
|
24831
24831
|
data.dpi = parseInt(data.dpi);
|
|
24832
24832
|
data.organization = root.getGlobalValue('organizationId');
|
|
24833
24833
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
24834
|
-
var dt = _objectSpread$
|
|
24834
|
+
var dt = _objectSpread$2p(_objectSpread$2p({}, form.getFieldsValue(names)), {}, {
|
|
24835
24835
|
name: newPresetName
|
|
24836
24836
|
});
|
|
24837
24837
|
setPresets({
|
|
@@ -24965,8 +24965,8 @@ function ModalProgressBar(_ref) {
|
|
|
24965
24965
|
});
|
|
24966
24966
|
}
|
|
24967
24967
|
|
|
24968
|
-
function ownKeys$
|
|
24969
|
-
function _objectSpread$
|
|
24968
|
+
function ownKeys$2o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24969
|
+
function _objectSpread$2o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24970
24970
|
function ItemSelector(_ref) {
|
|
24971
24971
|
var state = _ref.state,
|
|
24972
24972
|
setCanSave = _ref.setCanSave,
|
|
@@ -24983,7 +24983,7 @@ function ItemSelector(_ref) {
|
|
|
24983
24983
|
rules: state.getRules(itemSelector, state.data),
|
|
24984
24984
|
label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
|
|
24985
24985
|
valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
|
|
24986
|
-
children: getElement(_objectSpread$
|
|
24986
|
+
children: getElement(_objectSpread$2o(_objectSpread$2o({}, itemSelector), {}, {
|
|
24987
24987
|
value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
|
|
24988
24988
|
}), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
|
|
24989
24989
|
}, itemSelector.name.toString());
|
|
@@ -25386,8 +25386,8 @@ function getLabel(item, t) {
|
|
|
25386
25386
|
}
|
|
25387
25387
|
var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
25388
25388
|
|
|
25389
|
-
function ownKeys$
|
|
25390
|
-
function _objectSpread$
|
|
25389
|
+
function ownKeys$2n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25390
|
+
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25391
25391
|
function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
25392
25392
|
function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
|
|
25393
25393
|
function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -25589,7 +25589,7 @@ function useRoleSelectorData (_ref) {
|
|
|
25589
25589
|
roles.forEach(function (r) {
|
|
25590
25590
|
//check if after the changes the role is selected
|
|
25591
25591
|
if (value.includes(r._id)) {
|
|
25592
|
-
var newValue = _objectSpread$
|
|
25592
|
+
var newValue = _objectSpread$2n(_objectSpread$2n({}, r), {}, {
|
|
25593
25593
|
selected: true
|
|
25594
25594
|
});
|
|
25595
25595
|
//add it to the new list as selected role
|
|
@@ -25625,7 +25625,7 @@ function useRoleSelectorData (_ref) {
|
|
|
25625
25625
|
}
|
|
25626
25626
|
}
|
|
25627
25627
|
} else {
|
|
25628
|
-
var _newValue = _objectSpread$
|
|
25628
|
+
var _newValue = _objectSpread$2n(_objectSpread$2n({}, r), {}, {
|
|
25629
25629
|
selected: false
|
|
25630
25630
|
});
|
|
25631
25631
|
//add it to the new list as unselected role
|
|
@@ -25829,7 +25829,7 @@ function _updateRoles() {
|
|
|
25829
25829
|
userRole = userRoles.find(function (r) {
|
|
25830
25830
|
return r._id == role._id;
|
|
25831
25831
|
});
|
|
25832
|
-
newRole = _objectSpread$
|
|
25832
|
+
newRole = _objectSpread$2n({}, role);
|
|
25833
25833
|
if (userRole) {
|
|
25834
25834
|
newRole.selected = true;
|
|
25835
25835
|
newRole.inherited = userRole.inherited;
|
|
@@ -26049,7 +26049,7 @@ function _fetchOptions() {
|
|
|
26049
26049
|
case 4:
|
|
26050
26050
|
result = _context11.sent;
|
|
26051
26051
|
options = result.data.map(function (d) {
|
|
26052
|
-
return _objectSpread$
|
|
26052
|
+
return _objectSpread$2n(_objectSpread$2n({}, d), {}, {
|
|
26053
26053
|
label: d.displayName,
|
|
26054
26054
|
value: d._id,
|
|
26055
26055
|
isLeaf: !d.hasChildren
|
|
@@ -26153,8 +26153,8 @@ var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
|
|
|
26153
26153
|
var css_248z$1e = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n flex: 1;\n min-height: 0;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: hidden;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
|
|
26154
26154
|
styleInject(css_248z$1e);
|
|
26155
26155
|
|
|
26156
|
-
function ownKeys$
|
|
26157
|
-
function _objectSpread$
|
|
26156
|
+
function ownKeys$2m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26157
|
+
function _objectSpread$2m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26158
26158
|
function _createForOfIteratorHelper$_(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$_(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
26159
26159
|
function _unsupportedIterableToArray$_(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$_(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$_(r, a) : void 0; } }
|
|
26160
26160
|
function _arrayLikeToArray$_(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -26214,8 +26214,8 @@ function _generateCSV() {
|
|
|
26214
26214
|
break;
|
|
26215
26215
|
}
|
|
26216
26216
|
_context2.next = 21;
|
|
26217
|
-
return generateCSV(_objectSpread$
|
|
26218
|
-
mappingData: _objectSpread$
|
|
26217
|
+
return generateCSV(_objectSpread$2m(_objectSpread$2m({}, exportParams.children), {}, {
|
|
26218
|
+
mappingData: _objectSpread$2m(_objectSpread$2m({}, parent), {}, {
|
|
26219
26219
|
parentId: exportParams.mappingData._id
|
|
26220
26220
|
})
|
|
26221
26221
|
}), csvData);
|
|
@@ -26338,8 +26338,8 @@ function _downloadFile() {
|
|
|
26338
26338
|
return _downloadFile.apply(this, arguments);
|
|
26339
26339
|
}
|
|
26340
26340
|
|
|
26341
|
-
function ownKeys$
|
|
26342
|
-
function _objectSpread$
|
|
26341
|
+
function ownKeys$2l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26342
|
+
function _objectSpread$2l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26343
26343
|
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; } } }; }
|
|
26344
26344
|
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; } }
|
|
26345
26345
|
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; }
|
|
@@ -26758,7 +26758,7 @@ function useRelationSelectorData (_ref) {
|
|
|
26758
26758
|
var activeItem = _step.value;
|
|
26759
26759
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
26760
26760
|
addedObjects.push(addedData);
|
|
26761
|
-
getSplittedItems(_objectSpread$
|
|
26761
|
+
getSplittedItems(_objectSpread$2l(_objectSpread$2l({}, activeItem), {}, {
|
|
26762
26762
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
26763
26763
|
}));
|
|
26764
26764
|
ret = true;
|
|
@@ -26963,8 +26963,8 @@ function useRelationSelectorData (_ref) {
|
|
|
26963
26963
|
};
|
|
26964
26964
|
}
|
|
26965
26965
|
|
|
26966
|
-
function ownKeys$
|
|
26967
|
-
function _objectSpread$
|
|
26966
|
+
function ownKeys$2k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26967
|
+
function _objectSpread$2k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26968
26968
|
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; } } }; }
|
|
26969
26969
|
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; } }
|
|
26970
26970
|
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; }
|
|
@@ -27112,7 +27112,7 @@ function ActionButton (_ref) {
|
|
|
27112
27112
|
_iterator2.f();
|
|
27113
27113
|
}
|
|
27114
27114
|
_context.next = 19;
|
|
27115
|
-
return apiInterface.update(_objectSpread$
|
|
27115
|
+
return apiInterface.update(_objectSpread$2k(_objectSpread$2k({}, data), {}, {
|
|
27116
27116
|
state: toSwitch
|
|
27117
27117
|
}), data);
|
|
27118
27118
|
case 19:
|
|
@@ -27248,14 +27248,14 @@ function _simpleChangeValue() {
|
|
|
27248
27248
|
break;
|
|
27249
27249
|
}
|
|
27250
27250
|
for (i = 0; i < action.newValues.length; i++) {
|
|
27251
|
-
fieldsToUpdate = _objectSpread$
|
|
27251
|
+
fieldsToUpdate = _objectSpread$2k(_objectSpread$2k({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
27252
27252
|
}
|
|
27253
27253
|
if (!apiInterface.canUpdate) {
|
|
27254
27254
|
_context2.next = 9;
|
|
27255
27255
|
break;
|
|
27256
27256
|
}
|
|
27257
27257
|
_context2.next = 7;
|
|
27258
|
-
return apiInterface.update(_objectSpread$
|
|
27258
|
+
return apiInterface.update(_objectSpread$2k({}, fieldsToUpdate), data);
|
|
27259
27259
|
case 7:
|
|
27260
27260
|
response = _context2.sent;
|
|
27261
27261
|
return _context2.abrupt("return", response);
|
|
@@ -27270,7 +27270,7 @@ function _simpleChangeValue() {
|
|
|
27270
27270
|
return _simpleChangeValue.apply(this, arguments);
|
|
27271
27271
|
}
|
|
27272
27272
|
function A(props) {
|
|
27273
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
27273
|
+
return /*#__PURE__*/jsx("a", _objectSpread$2k({}, props));
|
|
27274
27274
|
}
|
|
27275
27275
|
|
|
27276
27276
|
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; } } }; }
|
|
@@ -27408,8 +27408,8 @@ var itemDesc = "item-desc-DBiiF";
|
|
|
27408
27408
|
var css_248z$1d = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
|
27409
27409
|
styleInject(css_248z$1d);
|
|
27410
27410
|
|
|
27411
|
-
function ownKeys$
|
|
27412
|
-
function _objectSpread$
|
|
27411
|
+
function ownKeys$2j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27412
|
+
function _objectSpread$2j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27413
27413
|
var DropDown = function DropDown(_ref) {
|
|
27414
27414
|
var _curItem$data$length;
|
|
27415
27415
|
var split = _ref.split,
|
|
@@ -27441,7 +27441,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
27441
27441
|
});
|
|
27442
27442
|
return /*#__PURE__*/jsx(Collapse, {
|
|
27443
27443
|
onChange: function onChange() {
|
|
27444
|
-
return getSplittedItems(_objectSpread$
|
|
27444
|
+
return getSplittedItems(_objectSpread$2j(_objectSpread$2j({}, item.item), {}, {
|
|
27445
27445
|
parentId: item.parentId
|
|
27446
27446
|
}), 0);
|
|
27447
27447
|
},
|
|
@@ -27701,8 +27701,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
27701
27701
|
};
|
|
27702
27702
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
27703
27703
|
|
|
27704
|
-
function ownKeys$
|
|
27705
|
-
function _objectSpread$
|
|
27704
|
+
function ownKeys$2i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27705
|
+
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27706
27706
|
function useFormListData (_ref) {
|
|
27707
27707
|
var _configuration$defaul;
|
|
27708
27708
|
var id = _ref.id,
|
|
@@ -27782,7 +27782,7 @@ function useFormListData (_ref) {
|
|
|
27782
27782
|
if (updated.length == state.length) {
|
|
27783
27783
|
newState = state.map(function (s, i) {
|
|
27784
27784
|
var _updated$find;
|
|
27785
|
-
return _objectSpread$
|
|
27785
|
+
return _objectSpread$2i(_objectSpread$2i({}, s), {}, {
|
|
27786
27786
|
data: (_updated$find = updated.find(function (u) {
|
|
27787
27787
|
return u.index == i;
|
|
27788
27788
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -27919,8 +27919,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
27919
27919
|
};
|
|
27920
27920
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
27921
27921
|
|
|
27922
|
-
function ownKeys$
|
|
27923
|
-
function _objectSpread$
|
|
27922
|
+
function ownKeys$2h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27923
|
+
function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27924
27924
|
var LOG$n = getLogger('Backoffice', 'SelectOrCreate');
|
|
27925
27925
|
function useSelectOrCreateData (_ref) {
|
|
27926
27926
|
var id = _ref.id,
|
|
@@ -28017,7 +28017,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
28017
28017
|
_context.next = 7;
|
|
28018
28018
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
28019
28019
|
filters: (_configuration$select3 = configuration.selectMapping) !== null && _configuration$select3 !== void 0 && _configuration$select3.searchField ? (_configuration$select4 = configuration.selectMapping) === null || _configuration$select4 === void 0 ? void 0 : _configuration$select4.searchField.reduce(function (filter, field) {
|
|
28020
|
-
return _objectSpread$
|
|
28020
|
+
return _objectSpread$2h(_objectSpread$2h({}, filter), {}, _defineProperty({}, field.field, [value, field.filter]));
|
|
28021
28021
|
}, {}) : {
|
|
28022
28022
|
_id: [value, 'contains']
|
|
28023
28023
|
},
|
|
@@ -28328,8 +28328,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
28328
28328
|
});
|
|
28329
28329
|
};
|
|
28330
28330
|
|
|
28331
|
-
function ownKeys$
|
|
28332
|
-
function _objectSpread$
|
|
28331
|
+
function ownKeys$2g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28332
|
+
function _objectSpread$2g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28333
28333
|
function useListData (_ref) {
|
|
28334
28334
|
var id = _ref.id,
|
|
28335
28335
|
data = _ref.data;
|
|
@@ -28372,7 +28372,7 @@ function useListData (_ref) {
|
|
|
28372
28372
|
case 3:
|
|
28373
28373
|
result = _context.sent;
|
|
28374
28374
|
setListData(result.data.map(parseField));
|
|
28375
|
-
initData = _objectSpread$
|
|
28375
|
+
initData = _objectSpread$2g({}, data);
|
|
28376
28376
|
setUpdatedObject(initData);
|
|
28377
28377
|
setLoading(false);
|
|
28378
28378
|
case 8:
|
|
@@ -28413,7 +28413,7 @@ function useListData (_ref) {
|
|
|
28413
28413
|
});
|
|
28414
28414
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
28415
28415
|
var parsedField = field.field.split('.');
|
|
28416
|
-
item.itemUpdate = _objectSpread$
|
|
28416
|
+
item.itemUpdate = _objectSpread$2g(_objectSpread$2g({}, field), {}, {
|
|
28417
28417
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
28418
28418
|
});
|
|
28419
28419
|
});
|
|
@@ -28444,16 +28444,16 @@ function useListData (_ref) {
|
|
|
28444
28444
|
console.error('field with more than 2 parts not allowed');
|
|
28445
28445
|
return;
|
|
28446
28446
|
}
|
|
28447
|
-
var updObj = _objectSpread$
|
|
28447
|
+
var updObj = _objectSpread$2g({}, updatedObject);
|
|
28448
28448
|
if (fields.length === 1) {
|
|
28449
|
-
updObj = _objectSpread$
|
|
28449
|
+
updObj = _objectSpread$2g(_objectSpread$2g({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
28450
28450
|
} else if (fields.length === 2) {
|
|
28451
28451
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
28452
28452
|
return v.id === item.id.trim();
|
|
28453
28453
|
});
|
|
28454
28454
|
if (updatedField) {
|
|
28455
|
-
var updatedFieldCopy = _objectSpread$
|
|
28456
|
-
updObj = _objectSpread$
|
|
28455
|
+
var updatedFieldCopy = _objectSpread$2g(_objectSpread$2g({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
28456
|
+
updObj = _objectSpread$2g(_objectSpread$2g({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
28457
28457
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
28458
28458
|
})));
|
|
28459
28459
|
}
|
|
@@ -28462,11 +28462,11 @@ function useListData (_ref) {
|
|
|
28462
28462
|
var acItems = listData;
|
|
28463
28463
|
for (var i = 0; i < acItems.length; i++) {
|
|
28464
28464
|
if (i == index) {
|
|
28465
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
28465
|
+
acItems[i].itemUpdate = _objectSpread$2g(_objectSpread$2g({}, acItems[i].itemUpdate), {}, {
|
|
28466
28466
|
value: value
|
|
28467
28467
|
});
|
|
28468
28468
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
28469
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
28469
|
+
acItems[i].itemUpdate = _objectSpread$2g(_objectSpread$2g({}, acItems[i].itemUpdate), {}, {
|
|
28470
28470
|
value: !value
|
|
28471
28471
|
});
|
|
28472
28472
|
}
|
|
@@ -28834,8 +28834,8 @@ var editButton = "edit-button-m6r3M";
|
|
|
28834
28834
|
var css_248z$1c = ".jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n\n/* The orange menu while the JSON preview shows (see useJsonEditorData.previewMode) wins over both themes */\n.jsoneditor-WMs15 .jsoneditor-menu.preview-9wK81,\n.darkmode .jsoneditor-WMs15 .jsoneditor-menu.preview-9wK81 {\n background-color: #f19e34;\n}\n";
|
|
28835
28835
|
styleInject(css_248z$1c);
|
|
28836
28836
|
|
|
28837
|
-
function ownKeys$
|
|
28838
|
-
function _objectSpread$
|
|
28837
|
+
function ownKeys$2f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28838
|
+
function _objectSpread$2f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28839
28839
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
|
28840
28840
|
var id = _ref.id,
|
|
28841
28841
|
value = _ref.value,
|
|
@@ -28864,7 +28864,7 @@ var JsonEditor = function JsonEditor(_ref, ref) {
|
|
|
28864
28864
|
var _state$configuration$;
|
|
28865
28865
|
return (_state$configuration$ = state.configuration.tools) === null || _state$configuration$ === void 0 ? void 0 : _state$configuration$.map(function (tool) {
|
|
28866
28866
|
var _tool$defaultOpen;
|
|
28867
|
-
return _objectSpread$
|
|
28867
|
+
return _objectSpread$2f(_objectSpread$2f({}, tool), {}, {
|
|
28868
28868
|
parameters: {
|
|
28869
28869
|
data: state.curData,
|
|
28870
28870
|
submit: function submit() {
|
|
@@ -29022,8 +29022,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
29022
29022
|
};
|
|
29023
29023
|
}
|
|
29024
29024
|
|
|
29025
|
-
function ownKeys$
|
|
29026
|
-
function _objectSpread$
|
|
29025
|
+
function ownKeys$2e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29026
|
+
function _objectSpread$2e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29027
29027
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
29028
29028
|
var id = _ref.id,
|
|
29029
29029
|
data = _ref.data,
|
|
@@ -29131,12 +29131,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
29131
29131
|
}
|
|
29132
29132
|
function onEnter(e) {
|
|
29133
29133
|
if (e.key != 'Enter') return;
|
|
29134
|
-
setCrop(_objectSpread$
|
|
29134
|
+
setCrop(_objectSpread$2e(_objectSpread$2e({}, crop), {}, {
|
|
29135
29135
|
unit: 'px',
|
|
29136
29136
|
width: Number(widthInputElement.current.value),
|
|
29137
29137
|
height: Number(heightInputElement.current.value)
|
|
29138
29138
|
}));
|
|
29139
|
-
setCompletedCrop(_objectSpread$
|
|
29139
|
+
setCompletedCrop(_objectSpread$2e(_objectSpread$2e({}, crop), {}, {
|
|
29140
29140
|
unit: 'px',
|
|
29141
29141
|
width: Number(widthInputElement.current.value),
|
|
29142
29142
|
height: Number(heightInputElement.current.value)
|
|
@@ -29214,8 +29214,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
29214
29214
|
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; } } }; }
|
|
29215
29215
|
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; } }
|
|
29216
29216
|
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; }
|
|
29217
|
-
function ownKeys$
|
|
29218
|
-
function _objectSpread$
|
|
29217
|
+
function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29218
|
+
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29219
29219
|
function useDescriptions (_ref) {
|
|
29220
29220
|
var id = _ref.id;
|
|
29221
29221
|
var root = useStore();
|
|
@@ -29308,7 +29308,7 @@ function _getDisplayData() {
|
|
|
29308
29308
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
29309
29309
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29310
29310
|
case 0:
|
|
29311
|
-
displayData = _objectSpread$
|
|
29311
|
+
displayData = _objectSpread$2d({}, data);
|
|
29312
29312
|
_iterator = _createForOfIteratorHelper$W(items);
|
|
29313
29313
|
_context4.prev = 2;
|
|
29314
29314
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -29584,8 +29584,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
29584
29584
|
};
|
|
29585
29585
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
|
29586
29586
|
|
|
29587
|
-
function ownKeys$
|
|
29588
|
-
function _objectSpread$
|
|
29587
|
+
function ownKeys$2c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29588
|
+
function _objectSpread$2c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29589
29589
|
function useGridData (_ref) {
|
|
29590
29590
|
var id = _ref.id,
|
|
29591
29591
|
data = _ref.data;
|
|
@@ -29628,11 +29628,11 @@ function useGridData (_ref) {
|
|
|
29628
29628
|
function reducer(state, action) {
|
|
29629
29629
|
switch (action.type) {
|
|
29630
29630
|
case 'update':
|
|
29631
|
-
return _objectSpread$
|
|
29631
|
+
return _objectSpread$2c(_objectSpread$2c({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$2c(_objectSpread$2c({}, action.data), {}, {
|
|
29632
29632
|
buffer: Buffer.from(action.data.buffer)
|
|
29633
29633
|
})));
|
|
29634
29634
|
case 'delete':
|
|
29635
|
-
var newState = _objectSpread$
|
|
29635
|
+
var newState = _objectSpread$2c({}, state);
|
|
29636
29636
|
delete newState[action.data.divaNr];
|
|
29637
29637
|
return newState;
|
|
29638
29638
|
default:
|
|
@@ -29719,8 +29719,8 @@ var Grid = function Grid(_ref) {
|
|
|
29719
29719
|
});
|
|
29720
29720
|
};
|
|
29721
29721
|
|
|
29722
|
-
function ownKeys$
|
|
29723
|
-
function _objectSpread$
|
|
29722
|
+
function ownKeys$2b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29723
|
+
function _objectSpread$2b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29724
29724
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
29725
29725
|
var id = _ref.id;
|
|
29726
29726
|
var root = useStore();
|
|
@@ -29929,7 +29929,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
29929
29929
|
onRemove: onRemove,
|
|
29930
29930
|
customRequest: customRequest,
|
|
29931
29931
|
fileList: fileList.map(function (f) {
|
|
29932
|
-
return _objectSpread$
|
|
29932
|
+
return _objectSpread$2b(_objectSpread$2b({}, f), {}, {
|
|
29933
29933
|
url: f.url
|
|
29934
29934
|
});
|
|
29935
29935
|
}),
|
|
@@ -30033,8 +30033,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
|
30033
30033
|
});
|
|
30034
30034
|
};
|
|
30035
30035
|
|
|
30036
|
-
function ownKeys$
|
|
30037
|
-
function _objectSpread$
|
|
30036
|
+
function ownKeys$2a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30037
|
+
function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30038
30038
|
function getExpandedRowRenderer (config, root) {
|
|
30039
30039
|
return function (record) {
|
|
30040
30040
|
var data = record;
|
|
@@ -30056,7 +30056,7 @@ function customSubTable(columns, datasource) {
|
|
|
30056
30056
|
// map custom columns to antd columns
|
|
30057
30057
|
var antcols = columns.map(function (col) {
|
|
30058
30058
|
var _col$width;
|
|
30059
|
-
return _objectSpread$
|
|
30059
|
+
return _objectSpread$2a(_objectSpread$2a({}, col), {}, {
|
|
30060
30060
|
title: col.title,
|
|
30061
30061
|
dataIndex: col.field,
|
|
30062
30062
|
key: col.field,
|
|
@@ -30919,8 +30919,8 @@ function ArrayCell (_ref) {
|
|
|
30919
30919
|
|
|
30920
30920
|
var _excluded$f = ["index"],
|
|
30921
30921
|
_excluded2$2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
30922
|
-
function ownKeys$
|
|
30923
|
-
function _objectSpread$
|
|
30922
|
+
function ownKeys$29(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30923
|
+
function _objectSpread$29(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$29(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$29(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30924
30924
|
var LOG$l = getLogger('Backoffice', 'CellRenderer');
|
|
30925
30925
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
30926
30926
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -30934,7 +30934,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
30934
30934
|
component: false,
|
|
30935
30935
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
30936
30936
|
value: form,
|
|
30937
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
30937
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$29({}, props))
|
|
30938
30938
|
})
|
|
30939
30939
|
});
|
|
30940
30940
|
};
|
|
@@ -30987,7 +30987,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
30987
30987
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
30988
30988
|
longDescriptionType = 'text';
|
|
30989
30989
|
}
|
|
30990
|
-
var modifiedColumn = _objectSpread$
|
|
30990
|
+
var modifiedColumn = _objectSpread$29(_objectSpread$29({}, column), {}, {
|
|
30991
30991
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
30992
30992
|
});
|
|
30993
30993
|
if (column) {
|
|
@@ -31000,43 +31000,43 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
31000
31000
|
};
|
|
31001
31001
|
switch (modifiedColumn.type) {
|
|
31002
31002
|
case 'boolean':
|
|
31003
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
31003
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$29({}, cellProps));
|
|
31004
31004
|
break;
|
|
31005
31005
|
case 'text':
|
|
31006
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
31006
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$29({}, cellProps));
|
|
31007
31007
|
break;
|
|
31008
31008
|
case 'select':
|
|
31009
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
31009
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$29({}, cellProps));
|
|
31010
31010
|
case 'media':
|
|
31011
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
31011
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$29({}, cellProps));
|
|
31012
31012
|
break;
|
|
31013
31013
|
case 'mediaItem':
|
|
31014
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
31014
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$29({}, cellProps));
|
|
31015
31015
|
break;
|
|
31016
31016
|
case 'unixTimeStamp':
|
|
31017
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
31017
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$29({}, cellProps));
|
|
31018
31018
|
break;
|
|
31019
31019
|
case 'unixTimeStampCheck':
|
|
31020
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
31020
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$29({}, cellProps));
|
|
31021
31021
|
break;
|
|
31022
31022
|
case 'icon':
|
|
31023
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
31023
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$29({}, cellProps));
|
|
31024
31024
|
break;
|
|
31025
31025
|
case 'progress':
|
|
31026
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
31026
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$29({}, cellProps));
|
|
31027
31027
|
break;
|
|
31028
31028
|
case 'link':
|
|
31029
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
31029
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$29({}, cellProps));
|
|
31030
31030
|
break;
|
|
31031
31031
|
case 'array':
|
|
31032
|
-
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$
|
|
31032
|
+
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$29({}, cellProps));
|
|
31033
31033
|
break;
|
|
31034
31034
|
default:
|
|
31035
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
31035
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$29({}, cellProps));
|
|
31036
31036
|
break;
|
|
31037
31037
|
}
|
|
31038
31038
|
}
|
|
31039
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
31039
|
+
return /*#__PURE__*/jsx("td", _objectSpread$29(_objectSpread$29({}, restProps), {}, {
|
|
31040
31040
|
children: childNode
|
|
31041
31041
|
}));
|
|
31042
31042
|
};
|
|
@@ -31451,8 +31451,8 @@ function shouldMountAgentTool(_ref2) {
|
|
|
31451
31451
|
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; } } }; }
|
|
31452
31452
|
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; } }
|
|
31453
31453
|
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; }
|
|
31454
|
-
function ownKeys$
|
|
31455
|
-
function _objectSpread$
|
|
31454
|
+
function ownKeys$28(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31455
|
+
function _objectSpread$28(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$28(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$28(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31456
31456
|
|
|
31457
31457
|
/**
|
|
31458
31458
|
* Props for the useTools hook
|
|
@@ -31496,7 +31496,7 @@ var useTools = function useTools(_ref) {
|
|
|
31496
31496
|
var routeCatalogId = routeCatalogIdOf(root.navigationState.path);
|
|
31497
31497
|
var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
|
|
31498
31498
|
var createTool = function createTool(tool) {
|
|
31499
|
-
return _objectSpread$
|
|
31499
|
+
return _objectSpread$28({
|
|
31500
31500
|
startWidth: 600,
|
|
31501
31501
|
defaultPinned: true,
|
|
31502
31502
|
defaultOpen: false
|
|
@@ -31527,7 +31527,7 @@ var useTools = function useTools(_ref) {
|
|
|
31527
31527
|
name: 'Konfigurator',
|
|
31528
31528
|
type: 'Configurator',
|
|
31529
31529
|
where: 'right',
|
|
31530
|
-
parameters: _objectSpread$
|
|
31530
|
+
parameters: _objectSpread$28({
|
|
31531
31531
|
catalogId: catalogId,
|
|
31532
31532
|
packageId: packageId,
|
|
31533
31533
|
isIDMData: !isApi2 ? '1' : undefined
|
|
@@ -31682,8 +31682,8 @@ function InformationButton(_ref) {
|
|
|
31682
31682
|
});
|
|
31683
31683
|
}
|
|
31684
31684
|
|
|
31685
|
-
function ownKeys$
|
|
31686
|
-
function _objectSpread$
|
|
31685
|
+
function ownKeys$27(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31686
|
+
function _objectSpread$27(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$27(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$27(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31687
31687
|
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; } } }; }
|
|
31688
31688
|
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; } }
|
|
31689
31689
|
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; }
|
|
@@ -31805,7 +31805,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
31805
31805
|
if (data && data.length > 0) {
|
|
31806
31806
|
data = data.map(function (dt) {
|
|
31807
31807
|
var _ref2, _dt$catalogItem;
|
|
31808
|
-
return _objectSpread$
|
|
31808
|
+
return _objectSpread$27(_objectSpread$27({}, dt), {}, {
|
|
31809
31809
|
catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
|
|
31810
31810
|
});
|
|
31811
31811
|
});
|
|
@@ -31961,13 +31961,13 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
31961
31961
|
// Convert to Dayjs
|
|
31962
31962
|
(_state$globalFilter4 = state.globalFilter) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4.timeStamp) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) !== null && _state$globalFilter4 !== void 0 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
|
|
31963
31963
|
]
|
|
31964
|
-
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(LookupSelect, _objectSpread$
|
|
31964
|
+
}), selectFilter && (selectFilter.selectVariant === 'select' ? /*#__PURE__*/jsx(LookupSelect, _objectSpread$27(_objectSpread$27({}, selectFilter.settings), {}, {
|
|
31965
31965
|
minWidth: "200px",
|
|
31966
31966
|
value: (_state$globalFilter$s = state.globalFilter.select) === null || _state$globalFilter$s === void 0 || (_state$globalFilter$s = _state$globalFilter$s[selectFilter.filterField]) === null || _state$globalFilter$s === void 0 ? void 0 : _state$globalFilter$s[0],
|
|
31967
31967
|
onChange: function onChange(selected) {
|
|
31968
31968
|
state.onGlobalFilterSelect(normalizeTableFilterSelectValue(selected, selectFilter.filterField));
|
|
31969
31969
|
}
|
|
31970
|
-
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
31970
|
+
})) : /*#__PURE__*/jsx(SimpleSelect, _objectSpread$27(_objectSpread$27({}, selectFilter.settings), {}, {
|
|
31971
31971
|
style: {
|
|
31972
31972
|
minWidth: '200px'
|
|
31973
31973
|
},
|
|
@@ -32077,7 +32077,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
32077
32077
|
root: tableLoadingSpin
|
|
32078
32078
|
}
|
|
32079
32079
|
},
|
|
32080
|
-
pagination: _objectSpread$
|
|
32080
|
+
pagination: _objectSpread$27(_objectSpread$27({}, state.pagination), {}, {
|
|
32081
32081
|
showTotal: function showTotal(total, range) {
|
|
32082
32082
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
32083
32083
|
},
|
|
@@ -32419,7 +32419,7 @@ function BulkAction(_ref8) {
|
|
|
32419
32419
|
// if form/updatedData only contianed certain fields
|
|
32420
32420
|
_context5.t0 = data;
|
|
32421
32421
|
_context5.next = 16;
|
|
32422
|
-
return apiInterface.update(_objectSpread$
|
|
32422
|
+
return apiInterface.update(_objectSpread$27(_objectSpread$27({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
32423
32423
|
case 16:
|
|
32424
32424
|
_context5.t1 = _context5.sent;
|
|
32425
32425
|
_context5.t0.push.call(_context5.t0, _context5.t1);
|
|
@@ -32549,8 +32549,8 @@ function SelectionText(_ref10) {
|
|
|
32549
32549
|
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; } } }; }
|
|
32550
32550
|
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; } }
|
|
32551
32551
|
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; }
|
|
32552
|
-
function ownKeys$
|
|
32553
|
-
function _objectSpread$
|
|
32552
|
+
function ownKeys$26(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32553
|
+
function _objectSpread$26(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$26(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$26(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32554
32554
|
function getColumnFilterProps (_ref) {
|
|
32555
32555
|
var filter = _ref.filter,
|
|
32556
32556
|
title = _ref.title;
|
|
@@ -32933,7 +32933,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
32933
32933
|
});
|
|
32934
32934
|
},
|
|
32935
32935
|
options: filter.map(function (f) {
|
|
32936
|
-
return _objectSpread$
|
|
32936
|
+
return _objectSpread$26(_objectSpread$26({}, f), {}, {
|
|
32937
32937
|
label: t(f.label)
|
|
32938
32938
|
});
|
|
32939
32939
|
})
|
|
@@ -33012,7 +33012,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
33012
33012
|
t = _useTranslation3.t;
|
|
33013
33013
|
var options = [];
|
|
33014
33014
|
options = filter.map(function (f) {
|
|
33015
|
-
return _objectSpread$
|
|
33015
|
+
return _objectSpread$26(_objectSpread$26({}, f), {}, {
|
|
33016
33016
|
label: t(f.label)
|
|
33017
33017
|
});
|
|
33018
33018
|
});
|
|
@@ -33083,8 +33083,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
33083
33083
|
};
|
|
33084
33084
|
};
|
|
33085
33085
|
|
|
33086
|
-
function ownKeys$
|
|
33087
|
-
function _objectSpread$
|
|
33086
|
+
function ownKeys$25(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33087
|
+
function _objectSpread$25(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$25(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$25(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33088
33088
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter, filterState) {
|
|
33089
33089
|
var columns = configuration.columns.filter(function (c) {
|
|
33090
33090
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -33142,7 +33142,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
33142
33142
|
function mapColumn(column, onUpdate, filterState) {
|
|
33143
33143
|
var _column$field, _filterState$filters$, _filterState$filters, _column$children;
|
|
33144
33144
|
var key = column.field || column.title;
|
|
33145
|
-
return _objectSpread$
|
|
33145
|
+
return _objectSpread$25(_objectSpread$25(_objectSpread$25(_objectSpread$25({}, column), {}, {
|
|
33146
33146
|
hidden: false,
|
|
33147
33147
|
width: column.width || 100,
|
|
33148
33148
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -33203,8 +33203,8 @@ function updateData (_ref) {
|
|
|
33203
33203
|
};
|
|
33204
33204
|
}
|
|
33205
33205
|
|
|
33206
|
-
function ownKeys$
|
|
33207
|
-
function _objectSpread$
|
|
33206
|
+
function ownKeys$24(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33207
|
+
function _objectSpread$24(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$24(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$24(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33208
33208
|
function applyFilterAndSortation (_ref) {
|
|
33209
33209
|
var data = _ref.data,
|
|
33210
33210
|
filters = _ref.filters,
|
|
@@ -33219,7 +33219,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
33219
33219
|
processedData = sort(sorter || [], processedData);
|
|
33220
33220
|
return {
|
|
33221
33221
|
data: processedData,
|
|
33222
|
-
pagination: _objectSpread$
|
|
33222
|
+
pagination: _objectSpread$24(_objectSpread$24({}, pagination), {}, {
|
|
33223
33223
|
total: processedData.length
|
|
33224
33224
|
})
|
|
33225
33225
|
};
|
|
@@ -33304,8 +33304,8 @@ function filter(f, data) {
|
|
|
33304
33304
|
}
|
|
33305
33305
|
|
|
33306
33306
|
var _excluded$e = ["_id"];
|
|
33307
|
-
function ownKeys$
|
|
33308
|
-
function _objectSpread$
|
|
33307
|
+
function ownKeys$23(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33308
|
+
function _objectSpread$23(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$23(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$23(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33309
33309
|
function useTableData$1 (_ref) {
|
|
33310
33310
|
var _configuration$apiInt;
|
|
33311
33311
|
var id = _ref.id;
|
|
@@ -33360,7 +33360,7 @@ function useTableData$1 (_ref) {
|
|
|
33360
33360
|
var _configuration$create;
|
|
33361
33361
|
if (!dataRow) return;
|
|
33362
33362
|
var id = v4();
|
|
33363
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
33363
|
+
var processedDataRow = unflatten(_objectSpread$23({
|
|
33364
33364
|
_id: id,
|
|
33365
33365
|
ID: id
|
|
33366
33366
|
}, dataRow));
|
|
@@ -33372,11 +33372,11 @@ function useTableData$1 (_ref) {
|
|
|
33372
33372
|
newData = _updateData.data;
|
|
33373
33373
|
_updateData.prevDataRow;
|
|
33374
33374
|
_updateData.index;
|
|
33375
|
-
var newState = _objectSpread$
|
|
33375
|
+
var newState = _objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33376
33376
|
data: newData
|
|
33377
33377
|
});
|
|
33378
33378
|
if (!filterServerSide) {
|
|
33379
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
33379
|
+
var res = applyFilterAndSortation(_objectSpread$23(_objectSpread$23({}, filterData), {}, {
|
|
33380
33380
|
data: newData
|
|
33381
33381
|
}));
|
|
33382
33382
|
newState.data = res.data;
|
|
@@ -33388,33 +33388,33 @@ function useTableData$1 (_ref) {
|
|
|
33388
33388
|
var formData = new FormData();
|
|
33389
33389
|
processedDataRow._id;
|
|
33390
33390
|
var value = _objectWithoutProperties(processedDataRow, _excluded$e);
|
|
33391
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
33391
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$23(_objectSpread$23({}, catalogItem), {}, {
|
|
33392
33392
|
filterContex: filterContex,
|
|
33393
33393
|
value: JSON.stringify([value])
|
|
33394
33394
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
33395
33395
|
if (d && d.Result && d.Result == 'Success') return;
|
|
33396
|
-
setState(_objectSpread$
|
|
33396
|
+
setState(_objectSpread$23({}, oldState));
|
|
33397
33397
|
});
|
|
33398
33398
|
}, [state, catalogItem, filterData]);
|
|
33399
33399
|
useEffect(function () {
|
|
33400
33400
|
if (!catalogItem) return;
|
|
33401
|
-
setState(_objectSpread$
|
|
33401
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33402
33402
|
loading: true,
|
|
33403
|
-
mappingData: _objectSpread$
|
|
33403
|
+
mappingData: _objectSpread$23(_objectSpread$23({}, catalogItem), {}, {
|
|
33404
33404
|
filterContex: filterContex
|
|
33405
33405
|
})
|
|
33406
33406
|
}));
|
|
33407
33407
|
if (!filterServerSide) {
|
|
33408
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
33408
|
+
apiHandler.readList(configuration.mapping, _objectSpread$23(_objectSpread$23({}, catalogItem), {}, {
|
|
33409
33409
|
filterContex: filterContex
|
|
33410
33410
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
33411
33411
|
var newData = data.data.map(function (d) {
|
|
33412
|
-
return _objectSpread$
|
|
33412
|
+
return _objectSpread$23(_objectSpread$23({}, d), {}, {
|
|
33413
33413
|
_id: d._id || d.ID || nanoid()
|
|
33414
33414
|
});
|
|
33415
33415
|
});
|
|
33416
33416
|
onChange({
|
|
33417
|
-
pagination: _objectSpread$
|
|
33417
|
+
pagination: _objectSpread$23({}, state.pagination),
|
|
33418
33418
|
filters: {},
|
|
33419
33419
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
33420
33420
|
return c.defaultSortOrder;
|
|
@@ -33430,7 +33430,7 @@ function useTableData$1 (_ref) {
|
|
|
33430
33430
|
});
|
|
33431
33431
|
} else {
|
|
33432
33432
|
onChange({
|
|
33433
|
-
pagination: _objectSpread$
|
|
33433
|
+
pagination: _objectSpread$23({}, state.pagination),
|
|
33434
33434
|
filters: {},
|
|
33435
33435
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
33436
33436
|
return c.defaultSortOrder;
|
|
@@ -33446,17 +33446,17 @@ function useTableData$1 (_ref) {
|
|
|
33446
33446
|
}
|
|
33447
33447
|
}, [filterContex, catalogItem]);
|
|
33448
33448
|
var onChange = function onChange(p, dataParam) {
|
|
33449
|
-
setState(_objectSpread$
|
|
33449
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33450
33450
|
loading: true
|
|
33451
33451
|
}));
|
|
33452
33452
|
if (!filterServerSide) {
|
|
33453
33453
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
33454
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
33454
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$23(_objectSpread$23({}, p), {}, {
|
|
33455
33455
|
data: unfilteredData
|
|
33456
33456
|
})),
|
|
33457
33457
|
data = _applyFilterAndSortat.data,
|
|
33458
33458
|
pagination = _applyFilterAndSortat.pagination;
|
|
33459
|
-
setState(_objectSpread$
|
|
33459
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33460
33460
|
data: data,
|
|
33461
33461
|
pagination: pagination,
|
|
33462
33462
|
loading: false,
|
|
@@ -33467,20 +33467,20 @@ function useTableData$1 (_ref) {
|
|
|
33467
33467
|
sorter: p.sorter
|
|
33468
33468
|
});
|
|
33469
33469
|
} else {
|
|
33470
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
33470
|
+
apiHandler.readList(configuration.mapping, _objectSpread$23(_objectSpread$23({}, catalogItem), {}, {
|
|
33471
33471
|
filterContex: filterContex
|
|
33472
33472
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
33473
|
-
setState(_objectSpread$
|
|
33473
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33474
33474
|
data: data.data.map(function (dt) {
|
|
33475
|
-
return _objectSpread$
|
|
33475
|
+
return _objectSpread$23(_objectSpread$23({}, dt), {}, {
|
|
33476
33476
|
_id: dt._id || dt.ID || nanoid()
|
|
33477
33477
|
});
|
|
33478
33478
|
}),
|
|
33479
|
-
pagination: _objectSpread$
|
|
33479
|
+
pagination: _objectSpread$23(_objectSpread$23({}, p.pagination), {}, {
|
|
33480
33480
|
total: data.total
|
|
33481
33481
|
}),
|
|
33482
33482
|
loading: false,
|
|
33483
|
-
mappingData: _objectSpread$
|
|
33483
|
+
mappingData: _objectSpread$23(_objectSpread$23({}, catalogItem), {}, {
|
|
33484
33484
|
filterContex: filterContex
|
|
33485
33485
|
})
|
|
33486
33486
|
}));
|
|
@@ -33501,7 +33501,7 @@ function useTableData$1 (_ref) {
|
|
|
33501
33501
|
filters['_id'] = [id, 'eq', false];
|
|
33502
33502
|
_context.next = 4;
|
|
33503
33503
|
return apiHandler.readList(configuration.mapping, {
|
|
33504
|
-
pagination: _objectSpread$
|
|
33504
|
+
pagination: _objectSpread$23({}, state.pagination),
|
|
33505
33505
|
columns: configuration.columns,
|
|
33506
33506
|
filters: filters,
|
|
33507
33507
|
sorter: filterData.sorter
|
|
@@ -33520,7 +33520,7 @@ function useTableData$1 (_ref) {
|
|
|
33520
33520
|
};
|
|
33521
33521
|
}();
|
|
33522
33522
|
var onSelect = function onSelect(keys) {
|
|
33523
|
-
setState(_objectSpread$
|
|
33523
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33524
33524
|
selected: keys
|
|
33525
33525
|
}));
|
|
33526
33526
|
};
|
|
@@ -33530,7 +33530,7 @@ function useTableData$1 (_ref) {
|
|
|
33530
33530
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
33531
33531
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33532
33532
|
case 0:
|
|
33533
|
-
setState(_objectSpread$
|
|
33533
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33534
33534
|
deleting: true
|
|
33535
33535
|
}));
|
|
33536
33536
|
newData = _toConsumableArray(state.data);
|
|
@@ -33545,7 +33545,7 @@ function useTableData$1 (_ref) {
|
|
|
33545
33545
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
33546
33546
|
return nd._id === state.selected[index];
|
|
33547
33547
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
33548
|
-
mappingData = _objectSpread$
|
|
33548
|
+
mappingData = _objectSpread$23(_objectSpread$23({}, mappingData), state.mappingData);
|
|
33549
33549
|
_context2.next = 5;
|
|
33550
33550
|
return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid);
|
|
33551
33551
|
case 5:
|
|
@@ -33595,7 +33595,7 @@ function useTableData$1 (_ref) {
|
|
|
33595
33595
|
}
|
|
33596
33596
|
_context3.next = 18;
|
|
33597
33597
|
return apiHandler.readList(configuration.mapping, {
|
|
33598
|
-
pagination: _objectSpread$
|
|
33598
|
+
pagination: _objectSpread$23(_objectSpread$23({}, state.pagination), {}, {
|
|
33599
33599
|
current: current
|
|
33600
33600
|
}),
|
|
33601
33601
|
columns: configuration.columns,
|
|
@@ -33607,11 +33607,11 @@ function useTableData$1 (_ref) {
|
|
|
33607
33607
|
newData = data.data;
|
|
33608
33608
|
total = data.total;
|
|
33609
33609
|
case 21:
|
|
33610
|
-
setState(_objectSpread$
|
|
33610
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33611
33611
|
selected: [],
|
|
33612
33612
|
deleting: false,
|
|
33613
33613
|
data: newData,
|
|
33614
|
-
pagination: _objectSpread$
|
|
33614
|
+
pagination: _objectSpread$23(_objectSpread$23({}, state.pagination), {}, {
|
|
33615
33615
|
current: current,
|
|
33616
33616
|
total: total
|
|
33617
33617
|
})
|
|
@@ -33627,12 +33627,12 @@ function useTableData$1 (_ref) {
|
|
|
33627
33627
|
};
|
|
33628
33628
|
}();
|
|
33629
33629
|
function setLoading() {
|
|
33630
|
-
setState(_objectSpread$
|
|
33630
|
+
setState(_objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33631
33631
|
loading: true
|
|
33632
33632
|
}));
|
|
33633
33633
|
}
|
|
33634
|
-
return _objectSpread$
|
|
33635
|
-
configuration: _objectSpread$
|
|
33634
|
+
return _objectSpread$23(_objectSpread$23({}, state), {}, {
|
|
33635
|
+
configuration: _objectSpread$23(_objectSpread$23({}, configuration), {}, {
|
|
33636
33636
|
title: undefined
|
|
33637
33637
|
}),
|
|
33638
33638
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -33728,8 +33728,8 @@ var translation = {
|
|
|
33728
33728
|
SUPPLIER: 'backoffice.translation.supplier'
|
|
33729
33729
|
};
|
|
33730
33730
|
|
|
33731
|
-
function ownKeys$
|
|
33732
|
-
function _objectSpread$
|
|
33731
|
+
function ownKeys$22(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33732
|
+
function _objectSpread$22(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$22(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$22(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33733
33733
|
/**
|
|
33734
33734
|
* Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
|
|
33735
33735
|
*/
|
|
@@ -33737,10 +33737,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
|
|
|
33737
33737
|
if (!readListUrl && !genericType) {
|
|
33738
33738
|
return base;
|
|
33739
33739
|
}
|
|
33740
|
-
var next = _objectSpread$
|
|
33740
|
+
var next = _objectSpread$22({}, base);
|
|
33741
33741
|
if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
|
|
33742
|
-
next.apiInterface = _objectSpread$
|
|
33743
|
-
read: _objectSpread$
|
|
33742
|
+
next.apiInterface = _objectSpread$22(_objectSpread$22({}, next.apiInterface), {}, {
|
|
33743
|
+
read: _objectSpread$22(_objectSpread$22({}, next.apiInterface.read), {}, {
|
|
33744
33744
|
list: readListUrl
|
|
33745
33745
|
})
|
|
33746
33746
|
});
|
|
@@ -33773,8 +33773,8 @@ function objectHash (obj) {
|
|
|
33773
33773
|
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; } } }; }
|
|
33774
33774
|
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; } }
|
|
33775
33775
|
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; }
|
|
33776
|
-
function ownKeys$
|
|
33777
|
-
function _objectSpread$
|
|
33776
|
+
function ownKeys$21(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33777
|
+
function _objectSpread$21(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$21(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$21(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33778
33778
|
var LOG$j = getLogger('Backoffice', 'TableData');
|
|
33779
33779
|
function useTableData (_ref) {
|
|
33780
33780
|
var _persistedTableState$, _configuration$filter, _configuration$filter2, _ref2, _configuration$filter3, _configuration$filter4, _configuration$filter5, _ref3, _configuration$filter6, _configuration$filter7, _configuration$filter8, _persistedTableState$2, _configuration$filter9, _configuration$filter10, _persistedTableState$3, _configuration$bulkAc, _configuration$apiInt, _ref5, _configuration$readMa;
|
|
@@ -33795,8 +33795,8 @@ function useTableData (_ref) {
|
|
|
33795
33795
|
var apiHandler = useMemo(function () {
|
|
33796
33796
|
if (configProp) {
|
|
33797
33797
|
// Store entry is minimal (type+title only); pass the full apiInterface directly
|
|
33798
|
-
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$
|
|
33799
|
-
read: _objectSpread$
|
|
33798
|
+
var apiInterface = readListUrlOverride && _typeof(configProp.apiInterface) === 'object' && configProp.apiInterface.read ? _objectSpread$21(_objectSpread$21({}, configProp.apiInterface), {}, {
|
|
33799
|
+
read: _objectSpread$21(_objectSpread$21({}, configProp.apiInterface.read), {}, {
|
|
33800
33800
|
list: readListUrlOverride
|
|
33801
33801
|
})
|
|
33802
33802
|
}) : configProp.apiInterface;
|
|
@@ -33807,8 +33807,8 @@ function useTableData (_ref) {
|
|
|
33807
33807
|
}
|
|
33808
33808
|
var base = baseConfiguration;
|
|
33809
33809
|
if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
|
|
33810
|
-
return root.getApiHandler(id, _objectSpread$
|
|
33811
|
-
read: _objectSpread$
|
|
33810
|
+
return root.getApiHandler(id, _objectSpread$21(_objectSpread$21({}, base.apiInterface), {}, {
|
|
33811
|
+
read: _objectSpread$21(_objectSpread$21({}, base.apiInterface.read), {}, {
|
|
33812
33812
|
list: readListUrlOverride
|
|
33813
33813
|
})
|
|
33814
33814
|
}));
|
|
@@ -33862,7 +33862,7 @@ function useTableData (_ref) {
|
|
|
33862
33862
|
var _useState13 = useState({
|
|
33863
33863
|
loading: true,
|
|
33864
33864
|
deleting: false,
|
|
33865
|
-
pagination: _objectSpread$
|
|
33865
|
+
pagination: _objectSpread$21(_objectSpread$21({
|
|
33866
33866
|
current: 1,
|
|
33867
33867
|
pageSize: 20,
|
|
33868
33868
|
total: 0,
|
|
@@ -33871,7 +33871,7 @@ function useTableData (_ref) {
|
|
|
33871
33871
|
selected: (_persistedTableState$3 = persistedTableState === null || persistedTableState === void 0 ? void 0 : persistedTableState.selected) !== null && _persistedTableState$3 !== void 0 ? _persistedTableState$3 : [],
|
|
33872
33872
|
canDelete: !!apiHandler.canDelete,
|
|
33873
33873
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
33874
|
-
mappingData: _objectSpread$
|
|
33874
|
+
mappingData: _objectSpread$21(_objectSpread$21({}, parentData), {}, {
|
|
33875
33875
|
prefilter: {
|
|
33876
33876
|
select: globalFilter.select
|
|
33877
33877
|
},
|
|
@@ -33882,7 +33882,7 @@ function useTableData (_ref) {
|
|
|
33882
33882
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
33883
33883
|
state = _useState14[0],
|
|
33884
33884
|
setState = _useState14[1];
|
|
33885
|
-
var mappingData = _objectSpread$
|
|
33885
|
+
var mappingData = _objectSpread$21(_objectSpread$21(_objectSpread$21({}, parentData), state.data), {}, {
|
|
33886
33886
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
33887
33887
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
33888
33888
|
});
|
|
@@ -33922,7 +33922,7 @@ function useTableData (_ref) {
|
|
|
33922
33922
|
}
|
|
33923
33923
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
33924
33924
|
var newInitData = initData;
|
|
33925
|
-
var newState = _objectSpread$
|
|
33925
|
+
var newState = _objectSpread$21({}, state);
|
|
33926
33926
|
var selected = [];
|
|
33927
33927
|
if (configuration.deselectOnUpdate == false) {
|
|
33928
33928
|
selected = state.selected;
|
|
@@ -33939,7 +33939,7 @@ function useTableData (_ref) {
|
|
|
33939
33939
|
dataRow: dataRow
|
|
33940
33940
|
}),
|
|
33941
33941
|
_data = _updateData.data;
|
|
33942
|
-
newState = _objectSpread$
|
|
33942
|
+
newState = _objectSpread$21(_objectSpread$21({}, newState), {}, {
|
|
33943
33943
|
data: _data,
|
|
33944
33944
|
selected: selected
|
|
33945
33945
|
});
|
|
@@ -33951,8 +33951,8 @@ function useTableData (_ref) {
|
|
|
33951
33951
|
dataRow: dataRow
|
|
33952
33952
|
}),
|
|
33953
33953
|
nextInitData = _updateData2.data;
|
|
33954
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
33955
|
-
filters: _objectSpread$
|
|
33954
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$21(_objectSpread$21(_objectSpread$21({}, filterData), {}, {
|
|
33955
|
+
filters: _objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter12 = configuration.filter) !== null && _configuration$filter12 !== void 0 && (_configuration$filter12 = _configuration$filter12.toggle) !== null && _configuration$filter12 !== void 0 && _configuration$filter12.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
|
33956
33956
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter13 = configuration.filter) !== null && _configuration$filter13 !== void 0 && (_configuration$filter13 = _configuration$filter13.toggle) !== null && _configuration$filter13 !== void 0 && _configuration$filter13.inQuery ? {
|
|
33957
33957
|
genericProps: globalFilter.toggle
|
|
33958
33958
|
} : undefined), {}, {
|
|
@@ -33962,7 +33962,7 @@ function useTableData (_ref) {
|
|
|
33962
33962
|
_data2 = _applyFilterAndSortat.data,
|
|
33963
33963
|
pagination = _applyFilterAndSortat.pagination;
|
|
33964
33964
|
newInitData = nextInitData;
|
|
33965
|
-
newState = _objectSpread$
|
|
33965
|
+
newState = _objectSpread$21(_objectSpread$21({}, newState), {}, {
|
|
33966
33966
|
pagination: pagination,
|
|
33967
33967
|
data: _data2,
|
|
33968
33968
|
selected: selected
|
|
@@ -33972,8 +33972,8 @@ function useTableData (_ref) {
|
|
|
33972
33972
|
if (apiHandler.canCreate) {
|
|
33973
33973
|
apiCreate(data).then(function (res) {
|
|
33974
33974
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
33975
|
-
initData && setInitData(_objectSpread$
|
|
33976
|
-
setState(_objectSpread$
|
|
33975
|
+
initData && setInitData(_objectSpread$21({}, initData));
|
|
33976
|
+
setState(_objectSpread$21({}, state));
|
|
33977
33977
|
}
|
|
33978
33978
|
});
|
|
33979
33979
|
}
|
|
@@ -33986,7 +33986,7 @@ function useTableData (_ref) {
|
|
|
33986
33986
|
var triggerRefresh = function triggerRefresh() {
|
|
33987
33987
|
var _configuration$filter14;
|
|
33988
33988
|
setError(undefined);
|
|
33989
|
-
var newGlobalFilter = _objectSpread$
|
|
33989
|
+
var newGlobalFilter = _objectSpread$21({}, globalFilter);
|
|
33990
33990
|
//on refresh update default filter, since global value can change
|
|
33991
33991
|
if ((_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && _configuration$filter14["default"]) {
|
|
33992
33992
|
var _configuration$filter15;
|
|
@@ -33997,7 +33997,7 @@ function useTableData (_ref) {
|
|
|
33997
33997
|
newGlobalFilter["default"] = _defaultFilter;
|
|
33998
33998
|
setGlobaFilter(newGlobalFilter);
|
|
33999
33999
|
}
|
|
34000
|
-
onChange(_objectSpread$
|
|
34000
|
+
onChange(_objectSpread$21({
|
|
34001
34001
|
pagination: state.pagination
|
|
34002
34002
|
}, filterData), newGlobalFilter, true);
|
|
34003
34003
|
};
|
|
@@ -34015,7 +34015,7 @@ function useTableData (_ref) {
|
|
|
34015
34015
|
order: c.defaultSortOrder
|
|
34016
34016
|
};
|
|
34017
34017
|
});
|
|
34018
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
34018
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34019
34019
|
loading: false
|
|
34020
34020
|
}));else {
|
|
34021
34021
|
var _persistedTableState$4, _persistedTableState$5, _persistedTableState$6, _persistedTableState$7;
|
|
@@ -34070,7 +34070,7 @@ function useTableData (_ref) {
|
|
|
34070
34070
|
case 0:
|
|
34071
34071
|
filters = {};
|
|
34072
34072
|
filters['_id'] = [id, 'eq', false];
|
|
34073
|
-
ssf = _objectSpread$
|
|
34073
|
+
ssf = _objectSpread$21({
|
|
34074
34074
|
pagination: {
|
|
34075
34075
|
current: 1,
|
|
34076
34076
|
pageSize: 1
|
|
@@ -34081,7 +34081,7 @@ function useTableData (_ref) {
|
|
|
34081
34081
|
genericProps: globalFilter.toggle
|
|
34082
34082
|
} : undefined);
|
|
34083
34083
|
_context2.next = 5;
|
|
34084
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
34084
|
+
return apiHandler.readList(readMapping, _objectSpread$21(_objectSpread$21({}, mappingData), state.mappingData), ssf);
|
|
34085
34085
|
case 5:
|
|
34086
34086
|
data = _context2.sent;
|
|
34087
34087
|
return _context2.abrupt("return", data);
|
|
@@ -34125,12 +34125,12 @@ function useTableData (_ref) {
|
|
|
34125
34125
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
34126
34126
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
34127
34127
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
|
34128
|
-
setState(_objectSpread$
|
|
34128
|
+
setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34129
34129
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
|
34130
34130
|
loading: true
|
|
34131
34131
|
}));
|
|
34132
34132
|
currentData = initData;
|
|
34133
|
-
filterData = _objectSpread$
|
|
34133
|
+
filterData = _objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21({}, prefilter.search), ((_configuration$filter17 = configuration.filter) === null || _configuration$filter17 === void 0 || (_configuration$filter17 = _configuration$filter17.select) === null || _configuration$filter17 === void 0 ? void 0 : _configuration$filter17.applyDefaultValue) !== false || ((_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.select) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.select) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.filterField) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
|
34134
34134
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref9) {
|
|
34135
34135
|
var _ref10 = _slicedToArray(_ref9, 2);
|
|
34136
34136
|
_ref10[0];
|
|
@@ -34138,7 +34138,7 @@ function useTableData (_ref) {
|
|
|
34138
34138
|
return v != null;
|
|
34139
34139
|
}));
|
|
34140
34140
|
currentFilterHash = objectHash(filterData);
|
|
34141
|
-
currentPagination = _objectSpread$
|
|
34141
|
+
currentPagination = _objectSpread$21(_objectSpread$21({}, p.pagination), {}, {
|
|
34142
34142
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
34143
34143
|
});
|
|
34144
34144
|
filterHash.current = currentFilterHash;
|
|
@@ -34146,7 +34146,7 @@ function useTableData (_ref) {
|
|
|
34146
34146
|
_context3.next = 21;
|
|
34147
34147
|
break;
|
|
34148
34148
|
}
|
|
34149
|
-
ssf = _objectSpread$
|
|
34149
|
+
ssf = _objectSpread$21({
|
|
34150
34150
|
pagination: currentPagination,
|
|
34151
34151
|
columns: configuration.columns,
|
|
34152
34152
|
filters: filterData,
|
|
@@ -34155,12 +34155,12 @@ function useTableData (_ref) {
|
|
|
34155
34155
|
genericProps: prefilter.toggle
|
|
34156
34156
|
} : undefined);
|
|
34157
34157
|
_context3.next = 15;
|
|
34158
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
34158
|
+
return apiHandler.readList(readMapping, _objectSpread$21(_objectSpread$21({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && (_configuration$filter22 = _configuration$filter22.toggle) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(expandFallbackFieldFilters(p.filters, configuration.columns), undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
|
|
34159
34159
|
case 15:
|
|
34160
34160
|
data = _context3.sent;
|
|
34161
|
-
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$
|
|
34161
|
+
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$21(_objectSpread$21({}, mappingData), state.mappingData), ssf);
|
|
34162
34162
|
currentData = data.data;
|
|
34163
|
-
currentPagination = _objectSpread$
|
|
34163
|
+
currentPagination = _objectSpread$21(_objectSpread$21({}, currentPagination), {}, {
|
|
34164
34164
|
total: data.total
|
|
34165
34165
|
});
|
|
34166
34166
|
_context3.next = 30;
|
|
@@ -34177,7 +34177,7 @@ function useTableData (_ref) {
|
|
|
34177
34177
|
currentData = _data3.data;
|
|
34178
34178
|
setInitData(currentData);
|
|
34179
34179
|
case 27:
|
|
34180
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
34180
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$21(_objectSpread$21({}, p), {}, {
|
|
34181
34181
|
pagination: currentPagination,
|
|
34182
34182
|
filters: filterData,
|
|
34183
34183
|
data: currentData,
|
|
@@ -34186,11 +34186,11 @@ function useTableData (_ref) {
|
|
|
34186
34186
|
currentData = _data4;
|
|
34187
34187
|
currentPagination = pagination;
|
|
34188
34188
|
case 30:
|
|
34189
|
-
setState(_objectSpread$
|
|
34189
|
+
setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34190
34190
|
loading: false,
|
|
34191
34191
|
data: currentData,
|
|
34192
34192
|
pagination: currentPagination,
|
|
34193
|
-
mappingData: _objectSpread$
|
|
34193
|
+
mappingData: _objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
|
34194
34194
|
prefilter: prefilter
|
|
34195
34195
|
}),
|
|
34196
34196
|
currentFetchUrl: currentUrl
|
|
@@ -34212,7 +34212,7 @@ function useTableData (_ref) {
|
|
|
34212
34212
|
};
|
|
34213
34213
|
}();
|
|
34214
34214
|
var onSelect = function onSelect(keys) {
|
|
34215
|
-
setState(_objectSpread$
|
|
34215
|
+
setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34216
34216
|
selected: keys
|
|
34217
34217
|
}));
|
|
34218
34218
|
};
|
|
@@ -34223,7 +34223,7 @@ function useTableData (_ref) {
|
|
|
34223
34223
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
34224
34224
|
while (1) switch (_context5.prev = _context5.next) {
|
|
34225
34225
|
case 0:
|
|
34226
|
-
setState(_objectSpread$
|
|
34226
|
+
setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34227
34227
|
deleting: true
|
|
34228
34228
|
}));
|
|
34229
34229
|
newData = _toConsumableArray(state.data);
|
|
@@ -34263,7 +34263,7 @@ function useTableData (_ref) {
|
|
|
34263
34263
|
} finally {
|
|
34264
34264
|
_iterator.f();
|
|
34265
34265
|
}
|
|
34266
|
-
mappingData = _objectSpread$
|
|
34266
|
+
mappingData = _objectSpread$21(_objectSpread$21(_objectSpread$21({}, mappingData), state.mappingData), mapToggle);
|
|
34267
34267
|
deleteResult = undefined;
|
|
34268
34268
|
_context4.prev = 7;
|
|
34269
34269
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -34353,12 +34353,12 @@ function useTableData (_ref) {
|
|
|
34353
34353
|
break;
|
|
34354
34354
|
}
|
|
34355
34355
|
_context5.next = 25;
|
|
34356
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
34357
|
-
pagination: _objectSpread$
|
|
34356
|
+
return apiHandler.readList(readMapping, _objectSpread$21(_objectSpread$21({}, mappingData), state.mappingData), _objectSpread$21({
|
|
34357
|
+
pagination: _objectSpread$21(_objectSpread$21({}, state.pagination), {}, {
|
|
34358
34358
|
current: current
|
|
34359
34359
|
}),
|
|
34360
34360
|
columns: configuration.columns,
|
|
34361
|
-
filters: _objectSpread$
|
|
34361
|
+
filters: _objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21(_objectSpread$21({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && (_configuration$filter23 = _configuration$filter23.toggle) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
|
34362
34362
|
sorter: filterData.sorter
|
|
34363
34363
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && (_configuration$filter24 = _configuration$filter24.toggle) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.inQuery ? {
|
|
34364
34364
|
genericProps: globalFilter.toggle
|
|
@@ -34369,11 +34369,11 @@ function useTableData (_ref) {
|
|
|
34369
34369
|
total = data.total;
|
|
34370
34370
|
case 28:
|
|
34371
34371
|
setInitData(newInitData);
|
|
34372
|
-
setState(_objectSpread$
|
|
34372
|
+
setState(_objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34373
34373
|
selected: [],
|
|
34374
34374
|
deleting: false,
|
|
34375
34375
|
data: newData,
|
|
34376
|
-
pagination: _objectSpread$
|
|
34376
|
+
pagination: _objectSpread$21(_objectSpread$21({}, state.pagination), {}, {
|
|
34377
34377
|
current: current === 0 ? 1 : current,
|
|
34378
34378
|
total: total
|
|
34379
34379
|
})
|
|
@@ -34394,7 +34394,7 @@ function useTableData (_ref) {
|
|
|
34394
34394
|
LOG$j.error(new DivaError('No global select filter defiend'));
|
|
34395
34395
|
return;
|
|
34396
34396
|
}
|
|
34397
|
-
var newGlobalFilter = _objectSpread$
|
|
34397
|
+
var newGlobalFilter = _objectSpread$21({}, globalFilter);
|
|
34398
34398
|
if (value !== null && value !== void 0 && value.length) {
|
|
34399
34399
|
var selectValue = Array.isArray(value) ? value : [value];
|
|
34400
34400
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, selectValue.length > 1 ? [].concat(_toConsumableArray(selectValue), ['in']) : [selectValue[0], selectFilterOperation]);
|
|
@@ -34402,7 +34402,7 @@ function useTableData (_ref) {
|
|
|
34402
34402
|
newGlobalFilter.select = {};
|
|
34403
34403
|
}
|
|
34404
34404
|
setGlobaFilter(newGlobalFilter);
|
|
34405
|
-
onChange(_objectSpread$
|
|
34405
|
+
onChange(_objectSpread$21({
|
|
34406
34406
|
pagination: state.pagination
|
|
34407
34407
|
}, filterData), newGlobalFilter);
|
|
34408
34408
|
};
|
|
@@ -34413,16 +34413,16 @@ function useTableData (_ref) {
|
|
|
34413
34413
|
return;
|
|
34414
34414
|
}
|
|
34415
34415
|
var toggleFilter = {};
|
|
34416
|
-
var mappingData = _objectSpread$
|
|
34416
|
+
var mappingData = _objectSpread$21({}, state.mappingData);
|
|
34417
34417
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
34418
34418
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
|
34419
34419
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
34420
34420
|
});
|
|
34421
|
-
var newGlobalFilter = _objectSpread$
|
|
34421
|
+
var newGlobalFilter = _objectSpread$21(_objectSpread$21({}, globalFilter), {}, {
|
|
34422
34422
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
34423
34423
|
});
|
|
34424
34424
|
setGlobaFilter(newGlobalFilter);
|
|
34425
|
-
onChange(_objectSpread$
|
|
34425
|
+
onChange(_objectSpread$21({
|
|
34426
34426
|
pagination: state.pagination
|
|
34427
34427
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
|
34428
34428
|
};
|
|
@@ -34435,7 +34435,7 @@ function useTableData (_ref) {
|
|
|
34435
34435
|
LOG$j.error(new DivaError('No global search filter defiend'));
|
|
34436
34436
|
return;
|
|
34437
34437
|
}
|
|
34438
|
-
var newGlobalFilter = _objectSpread$
|
|
34438
|
+
var newGlobalFilter = _objectSpread$21(_objectSpread$21({}, globalFilter), {}, {
|
|
34439
34439
|
search: {}
|
|
34440
34440
|
});
|
|
34441
34441
|
if (value) {
|
|
@@ -34449,7 +34449,7 @@ function useTableData (_ref) {
|
|
|
34449
34449
|
});
|
|
34450
34450
|
}
|
|
34451
34451
|
setGlobaFilter(newGlobalFilter);
|
|
34452
|
-
onChange(_objectSpread$
|
|
34452
|
+
onChange(_objectSpread$21({
|
|
34453
34453
|
pagination: state.pagination
|
|
34454
34454
|
}, filterData), newGlobalFilter);
|
|
34455
34455
|
};
|
|
@@ -34459,20 +34459,20 @@ function useTableData (_ref) {
|
|
|
34459
34459
|
LOG$j.error(new DivaError('No global period filter defiend'));
|
|
34460
34460
|
return;
|
|
34461
34461
|
}
|
|
34462
|
-
var newGlobalFilter = _objectSpread$
|
|
34462
|
+
var newGlobalFilter = _objectSpread$21({}, globalFilter);
|
|
34463
34463
|
newGlobalFilter.timeStamp = {
|
|
34464
34464
|
fromTimeStamp: [from],
|
|
34465
34465
|
toTimeStamp: [to]
|
|
34466
34466
|
};
|
|
34467
34467
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
|
34468
|
-
onChange(_objectSpread$
|
|
34468
|
+
onChange(_objectSpread$21({
|
|
34469
34469
|
pagination: state.pagination
|
|
34470
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
|
34470
|
+
}, filterData), undefined, true, undefined, _objectSpread$21(_objectSpread$21({}, state.mappingData), {}, {
|
|
34471
34471
|
from: from,
|
|
34472
34472
|
to: to
|
|
34473
34473
|
}));
|
|
34474
34474
|
};
|
|
34475
|
-
return _objectSpread$
|
|
34475
|
+
return _objectSpread$21(_objectSpread$21({}, state), {}, {
|
|
34476
34476
|
title: title,
|
|
34477
34477
|
configuration: configuration,
|
|
34478
34478
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter, persistFilters ? filterData : undefined),
|
|
@@ -34518,8 +34518,8 @@ function StandardTable (_ref) {
|
|
|
34518
34518
|
});
|
|
34519
34519
|
}
|
|
34520
34520
|
|
|
34521
|
-
function ownKeys$
|
|
34522
|
-
function _objectSpread$
|
|
34521
|
+
function ownKeys$20(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34522
|
+
function _objectSpread$20(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$20(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$20(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34523
34523
|
function Table (props) {
|
|
34524
34524
|
var root = useStore();
|
|
34525
34525
|
var variant = useMemo(function () {
|
|
@@ -34527,15 +34527,15 @@ function Table (props) {
|
|
|
34527
34527
|
return config.variant;
|
|
34528
34528
|
}, [props.id]);
|
|
34529
34529
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
34530
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
34530
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$20({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$20({}, props))]
|
|
34531
34531
|
});
|
|
34532
34532
|
}
|
|
34533
34533
|
|
|
34534
34534
|
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; } } }; }
|
|
34535
34535
|
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; } }
|
|
34536
34536
|
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; }
|
|
34537
|
-
function ownKeys$
|
|
34538
|
-
function _objectSpread$
|
|
34537
|
+
function ownKeys$1$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34538
|
+
function _objectSpread$1$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34539
34539
|
function useAGGrid (_ref) {
|
|
34540
34540
|
var id = _ref.id,
|
|
34541
34541
|
filter = _ref.filter,
|
|
@@ -34629,7 +34629,7 @@ function useAGGrid (_ref) {
|
|
|
34629
34629
|
value = _ref3[1];
|
|
34630
34630
|
if (_idx == 0) {
|
|
34631
34631
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
34632
|
-
rdat.push(_objectSpread$
|
|
34632
|
+
rdat.push(_objectSpread$1$(_objectSpread$1$({}, rd), {}, {
|
|
34633
34633
|
grouping: [idx.toString()]
|
|
34634
34634
|
}));
|
|
34635
34635
|
var sp = key.split(':');
|
|
@@ -34772,8 +34772,8 @@ var value = "value-FCA-6";
|
|
|
34772
34772
|
var css_248z$16 = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
|
34773
34773
|
styleInject(css_248z$16);
|
|
34774
34774
|
|
|
34775
|
-
function ownKeys$
|
|
34776
|
-
function _objectSpread$
|
|
34775
|
+
function ownKeys$1_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34776
|
+
function _objectSpread$1_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34777
34777
|
var AGChart = function AGChart(_ref) {
|
|
34778
34778
|
var data = _ref.data;
|
|
34779
34779
|
var groupedData = [];
|
|
@@ -34781,11 +34781,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
34781
34781
|
data.forEach(function (dt) {
|
|
34782
34782
|
if (dt.count == 0) return;
|
|
34783
34783
|
if (groupedData.length > dt.grouping[0]) {
|
|
34784
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
34784
|
+
groupedData[dt.grouping[0]].push(_objectSpread$1_(_objectSpread$1_({}, dt), {}, {
|
|
34785
34785
|
count: Number(dt.count)
|
|
34786
34786
|
}));
|
|
34787
34787
|
} else {
|
|
34788
|
-
groupedData.push([_objectSpread$
|
|
34788
|
+
groupedData.push([_objectSpread$1_(_objectSpread$1_({}, dt), {}, {
|
|
34789
34789
|
count: Number(dt.count)
|
|
34790
34790
|
})]);
|
|
34791
34791
|
}
|
|
@@ -34826,8 +34826,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
34826
34826
|
});
|
|
34827
34827
|
};
|
|
34828
34828
|
|
|
34829
|
-
function ownKeys$
|
|
34830
|
-
function _objectSpread$
|
|
34829
|
+
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; }
|
|
34830
|
+
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; }
|
|
34831
34831
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
34832
34832
|
var id = _ref.id,
|
|
34833
34833
|
filter = _ref.filter,
|
|
@@ -34920,7 +34920,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
34920
34920
|
});
|
|
34921
34921
|
});
|
|
34922
34922
|
}
|
|
34923
|
-
return _objectSpread$
|
|
34923
|
+
return _objectSpread$1Z(_objectSpread$1Z({}, column), {}, {
|
|
34924
34924
|
cellRenderer: renderer
|
|
34925
34925
|
});
|
|
34926
34926
|
});
|
|
@@ -35190,8 +35190,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
35190
35190
|
};
|
|
35191
35191
|
var CustomText$1 = observer(CustomText);
|
|
35192
35192
|
|
|
35193
|
-
function ownKeys$
|
|
35194
|
-
function _objectSpread$
|
|
35193
|
+
function ownKeys$1Y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35194
|
+
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35195
35195
|
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; } } }; }
|
|
35196
35196
|
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; } }
|
|
35197
35197
|
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; }
|
|
@@ -35254,7 +35254,7 @@ function useFilterBoxData (id) {
|
|
|
35254
35254
|
} finally {
|
|
35255
35255
|
_iterator.f();
|
|
35256
35256
|
}
|
|
35257
|
-
return _objectSpread$
|
|
35257
|
+
return _objectSpread$1Y(_objectSpread$1Y({}, state), ob);
|
|
35258
35258
|
}
|
|
35259
35259
|
return {
|
|
35260
35260
|
configuration: configuration,
|
|
@@ -35268,8 +35268,8 @@ function useFilterBoxData (id) {
|
|
|
35268
35268
|
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; } } }; }
|
|
35269
35269
|
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; } }
|
|
35270
35270
|
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; }
|
|
35271
|
-
function ownKeys$
|
|
35272
|
-
function _objectSpread$
|
|
35271
|
+
function ownKeys$1X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35272
|
+
function _objectSpread$1X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35273
35273
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
35274
35274
|
var id = _ref.id,
|
|
35275
35275
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -35297,7 +35297,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
35297
35297
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(LookupSelect, {
|
|
35298
35298
|
mode: "single",
|
|
35299
35299
|
apiInterface: filter.requestOptions,
|
|
35300
|
-
wholeData: _objectSpread$
|
|
35300
|
+
wholeData: _objectSpread$1X(_objectSpread$1X({}, state.filter), {}, {
|
|
35301
35301
|
tab: tab
|
|
35302
35302
|
}),
|
|
35303
35303
|
mapping: filter.requestMapping,
|
|
@@ -35529,8 +35529,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
35529
35529
|
return false;
|
|
35530
35530
|
});
|
|
35531
35531
|
|
|
35532
|
-
function ownKeys$
|
|
35533
|
-
function _objectSpread$
|
|
35532
|
+
function ownKeys$1W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35533
|
+
function _objectSpread$1W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35534
35534
|
function useUIBuilderData (id) {
|
|
35535
35535
|
var save = undefined;
|
|
35536
35536
|
var root = useStore();
|
|
@@ -35562,7 +35562,7 @@ function useUIBuilderData (id) {
|
|
|
35562
35562
|
var configuration = _useMemo.configuration;
|
|
35563
35563
|
useEffect(function () {
|
|
35564
35564
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
35565
|
-
return setFilter(_objectSpread$
|
|
35565
|
+
return setFilter(_objectSpread$1W(_objectSpread$1W({}, filter), {}, {
|
|
35566
35566
|
sessionGuid: res
|
|
35567
35567
|
}));
|
|
35568
35568
|
});
|
|
@@ -35585,8 +35585,8 @@ function useUIBuilderData (id) {
|
|
|
35585
35585
|
};
|
|
35586
35586
|
}
|
|
35587
35587
|
|
|
35588
|
-
function ownKeys$
|
|
35589
|
-
function _objectSpread$
|
|
35588
|
+
function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35589
|
+
function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35590
35590
|
function UIBuilder(_ref) {
|
|
35591
35591
|
var id = _ref.id;
|
|
35592
35592
|
var state = useUIBuilderData(id);
|
|
@@ -35613,7 +35613,7 @@ function UIBuilder(_ref) {
|
|
|
35613
35613
|
override = {
|
|
35614
35614
|
value: newFilter[item.field],
|
|
35615
35615
|
setValue: function setValue(newVal) {
|
|
35616
|
-
var newFilter = _objectSpread$
|
|
35616
|
+
var newFilter = _objectSpread$1V({}, state.filter);
|
|
35617
35617
|
newFilter[item.field] = newVal;
|
|
35618
35618
|
state.setFilter(newFilter);
|
|
35619
35619
|
}
|
|
@@ -35661,7 +35661,7 @@ function UIBuilder(_ref) {
|
|
|
35661
35661
|
case 'AGGrid':
|
|
35662
35662
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
35663
35663
|
id: item.id,
|
|
35664
|
-
filter: _objectSpread$
|
|
35664
|
+
filter: _objectSpread$1V({
|
|
35665
35665
|
optionCodices: JSON.stringify(state.data)
|
|
35666
35666
|
}, state.filter),
|
|
35667
35667
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -35758,8 +35758,8 @@ function canHaveChildOfType(type, parent, parentType) {
|
|
|
35758
35758
|
return true;
|
|
35759
35759
|
}
|
|
35760
35760
|
|
|
35761
|
-
function ownKeys$
|
|
35762
|
-
function _objectSpread$
|
|
35761
|
+
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; }
|
|
35762
|
+
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; }
|
|
35763
35763
|
var SOURCE_MAPPING = {
|
|
35764
35764
|
type: 'query',
|
|
35765
35765
|
map: [{
|
|
@@ -35918,7 +35918,7 @@ var DuplicateOrganization = function DuplicateOrganization(_ref) {
|
|
|
35918
35918
|
}));
|
|
35919
35919
|
var campaignSettings = (_sourceData$settings = sourceData.settings) === null || _sourceData$settings === void 0 ? void 0 : _sourceData$settings.campaignSettings;
|
|
35920
35920
|
if (campaignSettings) {
|
|
35921
|
-
values.settings = _objectSpread$
|
|
35921
|
+
values.settings = _objectSpread$1U(_objectSpread$1U({}, sourceData.settings), {}, {
|
|
35922
35922
|
campaignSettings: Object.fromEntries(Object.entries(campaignSettings).filter(function (_ref7) {
|
|
35923
35923
|
var _ref8 = _slicedToArray(_ref7, 1),
|
|
35924
35924
|
key = _ref8[0];
|
|
@@ -35937,7 +35937,7 @@ var DuplicateOrganization = function DuplicateOrganization(_ref) {
|
|
|
35937
35937
|
mappingData: {
|
|
35938
35938
|
id: target.id
|
|
35939
35939
|
},
|
|
35940
|
-
data: _objectSpread$
|
|
35940
|
+
data: _objectSpread$1U(_objectSpread$1U({}, values), {}, {
|
|
35941
35941
|
displayName: t('backoffice.orgtree.duplicateAction.copyName', {
|
|
35942
35942
|
defaultValue: '{{name}} (Kopie)',
|
|
35943
35943
|
name: sourceData.displayName
|
|
@@ -36140,8 +36140,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
36140
36140
|
};
|
|
36141
36141
|
var OrgItem$1 = observer(OrgItem);
|
|
36142
36142
|
|
|
36143
|
-
function ownKeys$
|
|
36144
|
-
function _objectSpread$
|
|
36143
|
+
function ownKeys$1T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36144
|
+
function _objectSpread$1T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36145
36145
|
function useTransformJson (_ref) {
|
|
36146
36146
|
var id = _ref.id;
|
|
36147
36147
|
var _useState = useState(),
|
|
@@ -36207,7 +36207,7 @@ function useTransformJson (_ref) {
|
|
|
36207
36207
|
}();
|
|
36208
36208
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
36209
36209
|
var _data$children;
|
|
36210
|
-
return _objectSpread$
|
|
36210
|
+
return _objectSpread$1T(_objectSpread$1T({}, data), {}, {
|
|
36211
36211
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
36212
36212
|
data: data,
|
|
36213
36213
|
configuration: configuration,
|
|
@@ -36871,8 +36871,8 @@ function useCatalogEditor (id) {
|
|
|
36871
36871
|
};
|
|
36872
36872
|
}
|
|
36873
36873
|
|
|
36874
|
-
function ownKeys$
|
|
36875
|
-
function _objectSpread$
|
|
36874
|
+
function ownKeys$1S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36875
|
+
function _objectSpread$1S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36876
36876
|
function DragDropUpload(_ref) {
|
|
36877
36877
|
var api2Params = _ref.api2Params,
|
|
36878
36878
|
catalogId = _ref.catalogId,
|
|
@@ -36980,7 +36980,7 @@ function DragDropUpload(_ref) {
|
|
|
36980
36980
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
36981
36981
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
36982
36982
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
36983
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
36983
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$1S(_objectSpread$1S({}, props), {}, {
|
|
36984
36984
|
children: [/*#__PURE__*/jsx("p", {
|
|
36985
36985
|
className: "ant-upload-drag-icon",
|
|
36986
36986
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -37542,8 +37542,8 @@ var inUseKind = "in-use-kind-8MLky";
|
|
|
37542
37542
|
var css_248z$11 = ".container-fszxW {\n display: contents;\n}\n\n.approval-bar-nVCIH {\n position: sticky;\n top: 0;\n z-index: 20;\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 14px;\n background: #fffbea;\n color: #744210;\n border: 1px solid #d69e2e;\n border-radius: 6px;\n margin: 0 0 6px 0;\n font-size: 13px;\n}\n\n.darkmode .approval-bar-nVCIH {\n background: #3b3416;\n color: #fbd38d;\n border-color: #b7791f;\n}\n\n.label-BDsm4 {\n font-weight: 600;\n}\n\n.apply-button-OCoIX {\n background: #2f855a;\n color: #fff;\n border: none;\n border-radius: 5px;\n padding: 5px 16px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.discard-button-oUFPg {\n background: transparent;\n border: 1px solid #a0aec0;\n border-radius: 5px;\n padding: 5px 16px;\n font-weight: 600;\n cursor: pointer;\n color: inherit;\n}\n\n.in-use-list-wml4r {\n max-height: 240px;\n margin: 4px 0 8px;\n padding-left: 18px;\n overflow-y: auto;\n}\n\n.in-use-kind-8MLky {\n font-weight: 600;\n}\n";
|
|
37543
37543
|
styleInject(css_248z$11);
|
|
37544
37544
|
|
|
37545
|
-
function ownKeys$
|
|
37546
|
-
function _objectSpread$
|
|
37545
|
+
function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37546
|
+
function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37547
37547
|
/** Headings of the holder kinds the services report, for tables that name none of their own. */
|
|
37548
37548
|
var USAGE_TYPE_HEADINGS = {
|
|
37549
37549
|
decision: 'Entscheidungstabellen',
|
|
@@ -37867,7 +37867,7 @@ function createInUseDeleteReview(deps) {
|
|
|
37867
37867
|
var _deps$options$usageTy;
|
|
37868
37868
|
var t = deps.t,
|
|
37869
37869
|
modal = deps.modal;
|
|
37870
|
-
var options = _objectSpread$
|
|
37870
|
+
var options = _objectSpread$1R(_objectSpread$1R({}, deps.options), {}, {
|
|
37871
37871
|
usageTypeLabel: (_deps$options$usageTy = deps.options.usageTypeLabel) !== null && _deps$options$usageTy !== void 0 ? _deps$options$usageTy : function (type) {
|
|
37872
37872
|
return defaultUsageTypeLabel(type, t);
|
|
37873
37873
|
}
|
|
@@ -38069,21 +38069,21 @@ function createInUseDeleteReview(deps) {
|
|
|
38069
38069
|
byError = new Map(entries.map(function (entry) {
|
|
38070
38070
|
return [entry.error, entry];
|
|
38071
38071
|
}));
|
|
38072
|
-
return _context5.abrupt("return", _objectSpread$
|
|
38073
|
-
errors: _objectSpread$
|
|
38072
|
+
return _context5.abrupt("return", _objectSpread$1R(_objectSpread$1R({}, response), {}, {
|
|
38073
|
+
errors: _objectSpread$1R(_objectSpread$1R({}, response.errors), {}, {
|
|
38074
38074
|
remove: removeErrors.map(function (error) {
|
|
38075
38075
|
// Marked, not dropped: an all-or-nothing answer would book a row without an entry as not saved
|
|
38076
|
-
if (deleted.has(error)) return _objectSpread$
|
|
38076
|
+
if (deleted.has(error)) return _objectSpread$1R(_objectSpread$1R({}, error), {}, {
|
|
38077
38077
|
resolved: true
|
|
38078
38078
|
});
|
|
38079
38079
|
var entry = byError.get(error);
|
|
38080
38080
|
if (!entry) return error;
|
|
38081
38081
|
var retryError = retryErrors.get(entry);
|
|
38082
|
-
if (retryError) return _objectSpread$
|
|
38082
|
+
if (retryError) return _objectSpread$1R(_objectSpread$1R({}, retryError), {}, {
|
|
38083
38083
|
index: entry.error.index
|
|
38084
38084
|
});
|
|
38085
38085
|
// Kept, not failed: the row goes back to normal instead of staying pending for the next commit
|
|
38086
|
-
return _objectSpread$
|
|
38086
|
+
return _objectSpread$1R(_objectSpread$1R({}, error), {}, {
|
|
38087
38087
|
declined: true
|
|
38088
38088
|
});
|
|
38089
38089
|
})
|
|
@@ -38253,8 +38253,8 @@ function createPublishedKeyChangeCheck(deps) {
|
|
|
38253
38253
|
}();
|
|
38254
38254
|
}
|
|
38255
38255
|
|
|
38256
|
-
function ownKeys$
|
|
38257
|
-
function _objectSpread$
|
|
38256
|
+
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; }
|
|
38257
|
+
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; }
|
|
38258
38258
|
/** The warning for a key change in a published catalog: baskets and products saved with the old key cannot find it any more. */
|
|
38259
38259
|
var publishedCatalogKeyChangeWarning = function publishedCatalogKeyChangeWarning(t) {
|
|
38260
38260
|
return t('backoffice.inUse.keyChange.publishedWarning', {
|
|
@@ -38481,7 +38481,7 @@ function createUpdateConfirmationReview(deps) {
|
|
|
38481
38481
|
var retryError = ownErrors.find(function (candidate) {
|
|
38482
38482
|
return candidate.index === i;
|
|
38483
38483
|
});
|
|
38484
|
-
if (retryError) retryErrors.set(error, _objectSpread$
|
|
38484
|
+
if (retryError) retryErrors.set(error, _objectSpread$1Q(_objectSpread$1Q({}, retryError), {}, {
|
|
38485
38485
|
index: error.index
|
|
38486
38486
|
}));
|
|
38487
38487
|
// An endpoint that saves all or nothing names only the row that failed - the others were not saved either
|
|
@@ -38514,16 +38514,16 @@ function createUpdateConfirmationReview(deps) {
|
|
|
38514
38514
|
agentWrite === null || agentWrite === void 0 || agentWrite.notes.push(retryError ? "Not changed: ".concat(placesOf(entry), " - ").concat((_retryError$error = retryError.error) !== null && _retryError$error !== void 0 ? _retryError$error : "status ".concat(retryError.statusCode), ".") : "Changed together with every place that uses it: ".concat(placesOf(entry), "."));
|
|
38515
38515
|
});
|
|
38516
38516
|
case 42:
|
|
38517
|
-
return _context2.abrupt("return", _objectSpread$
|
|
38518
|
-
errors: _objectSpread$
|
|
38517
|
+
return _context2.abrupt("return", _objectSpread$1Q(_objectSpread$1Q({}, response), {}, {
|
|
38518
|
+
errors: _objectSpread$1Q(_objectSpread$1Q({}, response.errors), {}, {
|
|
38519
38519
|
update: updateErrors.map(function (error) {
|
|
38520
38520
|
var _retryErrors$get;
|
|
38521
38521
|
if (!isRefused(error)) return error;
|
|
38522
38522
|
// Kept, not failed: the row goes back to its saved state instead of staying pending for the next commit
|
|
38523
|
-
if (!confirmed) return _objectSpread$
|
|
38523
|
+
if (!confirmed) return _objectSpread$1Q(_objectSpread$1Q({}, error), {}, {
|
|
38524
38524
|
declined: true
|
|
38525
38525
|
});
|
|
38526
|
-
return (_retryErrors$get = retryErrors.get(error)) !== null && _retryErrors$get !== void 0 ? _retryErrors$get : _objectSpread$
|
|
38526
|
+
return (_retryErrors$get = retryErrors.get(error)) !== null && _retryErrors$get !== void 0 ? _retryErrors$get : _objectSpread$1Q(_objectSpread$1Q({}, error), {}, {
|
|
38527
38527
|
resolved: true
|
|
38528
38528
|
});
|
|
38529
38529
|
})
|
|
@@ -38600,8 +38600,8 @@ var _excluded$d = ["toolbarToolId", "agentBoundParent"];
|
|
|
38600
38600
|
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; } } }; }
|
|
38601
38601
|
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; } }
|
|
38602
38602
|
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; }
|
|
38603
|
-
function ownKeys$
|
|
38604
|
-
function _objectSpread$
|
|
38603
|
+
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; }
|
|
38604
|
+
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; }
|
|
38605
38605
|
/**
|
|
38606
38606
|
* Wrapper component for the Spreadsheet that adds common props
|
|
38607
38607
|
*
|
|
@@ -38743,8 +38743,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(_re
|
|
|
38743
38743
|
if (!(viewConfiguration !== null && viewConfiguration !== void 0 && viewConfiguration.inUseReview) && !(viewConfiguration !== null && viewConfiguration !== void 0 && viewConfiguration.updateConfirmation) && !(viewConfiguration !== null && viewConfiguration !== void 0 && (_viewConfiguration$ke = viewConfiguration.keyFields) !== null && _viewConfiguration$ke !== void 0 && _viewConfiguration$ke.length) || !('apiInterface' in viewConfiguration)) return viewConfiguration;
|
|
38744
38744
|
if (!((_viewConfiguration$ap = viewConfiguration.apiInterface) !== null && _viewConfiguration$ap !== void 0 && _viewConfiguration$ap.bulk) && !((_viewConfiguration$ap2 = viewConfiguration.apiInterface) !== null && _viewConfiguration$ap2 !== void 0 && _viewConfiguration$ap2["delete"])) return viewConfiguration;
|
|
38745
38745
|
var ownReview = viewConfiguration.apiInterface.reviewBulkResponse;
|
|
38746
|
-
return _objectSpread$
|
|
38747
|
-
apiInterface: _objectSpread$
|
|
38746
|
+
return _objectSpread$1P(_objectSpread$1P({}, viewConfiguration), {}, {
|
|
38747
|
+
apiInterface: _objectSpread$1P(_objectSpread$1P({}, viewConfiguration.apiInterface), {}, {
|
|
38748
38748
|
bulkQueryParams: function () {
|
|
38749
38749
|
var _bulkQueryParams = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(request) {
|
|
38750
38750
|
var _viewConfiguration$ap3, _viewConfiguration$ap4, _publishedKeyChangeRe;
|
|
@@ -38760,7 +38760,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(_re
|
|
|
38760
38760
|
return (_publishedKeyChangeRe = publishedKeyChangeRef.current) === null || _publishedKeyChangeRe === void 0 ? void 0 : _publishedKeyChangeRe.call(publishedKeyChangeRef, request);
|
|
38761
38761
|
case 5:
|
|
38762
38762
|
keyChangeParams = _context.sent;
|
|
38763
|
-
return _context.abrupt("return", ownParams || keyChangeParams ? _objectSpread$
|
|
38763
|
+
return _context.abrupt("return", ownParams || keyChangeParams ? _objectSpread$1P(_objectSpread$1P({}, ownParams), keyChangeParams) : undefined);
|
|
38764
38764
|
case 7:
|
|
38765
38765
|
case "end":
|
|
38766
38766
|
return _context.stop();
|
|
@@ -38859,7 +38859,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(_re
|
|
|
38859
38859
|
var gridDescription = (_props$configuration6 = props.configuration) === null || _props$configuration6 === void 0 ? void 0 : _props$configuration6.agentDescription;
|
|
38860
38860
|
useEffect(function () {
|
|
38861
38861
|
var _props$configuration7;
|
|
38862
|
-
var id = root.gridRegistry.register(_objectSpread$
|
|
38862
|
+
var id = root.gridRegistry.register(_objectSpread$1P(_objectSpread$1P({
|
|
38863
38863
|
label: gridLabel,
|
|
38864
38864
|
gridId: props.gridId,
|
|
38865
38865
|
readUrl: String(readUrl),
|
|
@@ -38930,7 +38930,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(_re
|
|
|
38930
38930
|
var markOnSave = useRef();
|
|
38931
38931
|
var viewHooks = props.hooks;
|
|
38932
38932
|
var hooks = useMemo(function () {
|
|
38933
|
-
return _objectSpread$
|
|
38933
|
+
return _objectSpread$1P(_objectSpread$1P({}, viewHooks), {}, {
|
|
38934
38934
|
onPendingChangesChanged: function onPendingChangesChanged(event) {
|
|
38935
38935
|
var _viewHooks$onPendingC;
|
|
38936
38936
|
viewHooks === null || viewHooks === void 0 || (_viewHooks$onPendingC = viewHooks.onPendingChangesChanged) === null || _viewHooks$onPendingC === void 0 || _viewHooks$onPendingC.call(viewHooks, event);
|
|
@@ -38990,7 +38990,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(_re
|
|
|
38990
38990
|
defaultValue: 'Discard'
|
|
38991
38991
|
})
|
|
38992
38992
|
})]
|
|
38993
|
-
}), /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
|
38993
|
+
}), /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$1P(_objectSpread$1P({}, props), {}, {
|
|
38994
38994
|
configuration: configuration,
|
|
38995
38995
|
hooks: hooks,
|
|
38996
38996
|
ref: setRefs,
|
|
@@ -39324,8 +39324,8 @@ var STATS_SERVICES = SERVICES.filter(function (service) {
|
|
|
39324
39324
|
return !service.noStats;
|
|
39325
39325
|
});
|
|
39326
39326
|
|
|
39327
|
-
function ownKeys$
|
|
39328
|
-
function _objectSpread$
|
|
39327
|
+
function ownKeys$1O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
39328
|
+
function _objectSpread$1O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39329
39329
|
function useServiceAction(apiConfig, jwt) {
|
|
39330
39330
|
var getBaseUrl = useCallback(function (service) {
|
|
39331
39331
|
return apiConfig[service.urlKey];
|
|
@@ -39351,7 +39351,7 @@ function useServiceAction(apiConfig, jwt) {
|
|
|
39351
39351
|
_context.next = 6;
|
|
39352
39352
|
return fetch("".concat(baseUrl).concat(path), {
|
|
39353
39353
|
method: method,
|
|
39354
|
-
headers: _objectSpread$
|
|
39354
|
+
headers: _objectSpread$1O({
|
|
39355
39355
|
'Content-Type': 'application/json'
|
|
39356
39356
|
}, jwt ? {
|
|
39357
39357
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -39388,8 +39388,8 @@ function useServiceAction(apiConfig, jwt) {
|
|
|
39388
39388
|
};
|
|
39389
39389
|
}
|
|
39390
39390
|
|
|
39391
|
-
function ownKeys$
|
|
39392
|
-
function _objectSpread$
|
|
39391
|
+
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; }
|
|
39392
|
+
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; }
|
|
39393
39393
|
function useMaintenanceState(apiConfig, jwt) {
|
|
39394
39394
|
var _useServiceAction = useServiceAction(apiConfig, jwt),
|
|
39395
39395
|
callEndpoint = _useServiceAction.callEndpoint;
|
|
@@ -39564,7 +39564,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39564
39564
|
while (1) switch (_context4.prev = _context4.next) {
|
|
39565
39565
|
case 0:
|
|
39566
39566
|
setRefreshStates(function (prev) {
|
|
39567
|
-
return _objectSpread$
|
|
39567
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, {
|
|
39568
39568
|
status: 'loading'
|
|
39569
39569
|
}));
|
|
39570
39570
|
});
|
|
@@ -39573,14 +39573,14 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39573
39573
|
case 3:
|
|
39574
39574
|
result = _context4.sent;
|
|
39575
39575
|
setRefreshStates(function (prev) {
|
|
39576
|
-
return _objectSpread$
|
|
39576
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, result));
|
|
39577
39577
|
});
|
|
39578
39578
|
if (!(!service.noStats && ((_statsStates$service$ = statsStates[service.key]) === null || _statsStates$service$ === void 0 ? void 0 : _statsStates$service$.status) === 'done')) {
|
|
39579
39579
|
_context4.next = 11;
|
|
39580
39580
|
break;
|
|
39581
39581
|
}
|
|
39582
39582
|
setStatsStates(function (prev) {
|
|
39583
|
-
return _objectSpread$
|
|
39583
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, {
|
|
39584
39584
|
status: 'loading'
|
|
39585
39585
|
}));
|
|
39586
39586
|
});
|
|
@@ -39589,7 +39589,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39589
39589
|
case 9:
|
|
39590
39590
|
stats = _context4.sent;
|
|
39591
39591
|
setStatsStates(function (prev) {
|
|
39592
|
-
return _objectSpread$
|
|
39592
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, stats));
|
|
39593
39593
|
});
|
|
39594
39594
|
case 11:
|
|
39595
39595
|
case "end":
|
|
@@ -39608,7 +39608,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39608
39608
|
while (1) switch (_context5.prev = _context5.next) {
|
|
39609
39609
|
case 0:
|
|
39610
39610
|
setPingStates(function (prev) {
|
|
39611
|
-
return _objectSpread$
|
|
39611
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, {
|
|
39612
39612
|
status: 'loading'
|
|
39613
39613
|
}));
|
|
39614
39614
|
});
|
|
@@ -39617,7 +39617,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39617
39617
|
case 3:
|
|
39618
39618
|
result = _context5.sent;
|
|
39619
39619
|
setPingStates(function (prev) {
|
|
39620
|
-
return _objectSpread$
|
|
39620
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, result));
|
|
39621
39621
|
});
|
|
39622
39622
|
case 5:
|
|
39623
39623
|
case "end":
|
|
@@ -39636,7 +39636,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39636
39636
|
while (1) switch (_context6.prev = _context6.next) {
|
|
39637
39637
|
case 0:
|
|
39638
39638
|
setStatsStates(function (prev) {
|
|
39639
|
-
return _objectSpread$
|
|
39639
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, {
|
|
39640
39640
|
status: 'loading'
|
|
39641
39641
|
}));
|
|
39642
39642
|
});
|
|
@@ -39645,7 +39645,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39645
39645
|
case 3:
|
|
39646
39646
|
result = _context6.sent;
|
|
39647
39647
|
setStatsStates(function (prev) {
|
|
39648
|
-
return _objectSpread$
|
|
39648
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, service.key, result));
|
|
39649
39649
|
});
|
|
39650
39650
|
case 5:
|
|
39651
39651
|
case "end":
|
|
@@ -39679,7 +39679,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39679
39679
|
case 2:
|
|
39680
39680
|
result = _context7.sent;
|
|
39681
39681
|
setRefreshStates(function (prev) {
|
|
39682
|
-
return _objectSpread$
|
|
39682
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, s.key, result));
|
|
39683
39683
|
});
|
|
39684
39684
|
case 4:
|
|
39685
39685
|
case "end":
|
|
@@ -39721,7 +39721,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39721
39721
|
case 2:
|
|
39722
39722
|
result = _context9.sent;
|
|
39723
39723
|
setPingStates(function (prev) {
|
|
39724
|
-
return _objectSpread$
|
|
39724
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, s.key, result));
|
|
39725
39725
|
});
|
|
39726
39726
|
case 4:
|
|
39727
39727
|
case "end":
|
|
@@ -39763,7 +39763,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
39763
39763
|
case 2:
|
|
39764
39764
|
result = _context11.sent;
|
|
39765
39765
|
setStatsStates(function (prev) {
|
|
39766
|
-
return _objectSpread$
|
|
39766
|
+
return _objectSpread$1N(_objectSpread$1N({}, prev), {}, _defineProperty({}, s.key, result));
|
|
39767
39767
|
});
|
|
39768
39768
|
case 4:
|
|
39769
39769
|
case "end":
|
|
@@ -39912,8 +39912,8 @@ function StatusTag(_ref2) {
|
|
|
39912
39912
|
});
|
|
39913
39913
|
}
|
|
39914
39914
|
|
|
39915
|
-
function ownKeys$
|
|
39916
|
-
function _objectSpread$
|
|
39915
|
+
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; }
|
|
39916
|
+
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; }
|
|
39917
39917
|
var Text$7 = Typography.Text;
|
|
39918
39918
|
function PingCard(_ref) {
|
|
39919
39919
|
var service = _ref.service,
|
|
@@ -40005,7 +40005,7 @@ function PingCard(_ref) {
|
|
|
40005
40005
|
alignItems: 'center',
|
|
40006
40006
|
gap: 8
|
|
40007
40007
|
},
|
|
40008
|
-
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
40008
|
+
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$1M({}, summary)), /*#__PURE__*/jsx(Button, {
|
|
40009
40009
|
size: "small",
|
|
40010
40010
|
type: "text",
|
|
40011
40011
|
icon: expanded ? /*#__PURE__*/jsx(DownOutlined$1, {}) : /*#__PURE__*/jsx(RightOutlined$1, {}),
|
|
@@ -40076,8 +40076,8 @@ function PingCard(_ref) {
|
|
|
40076
40076
|
});
|
|
40077
40077
|
}
|
|
40078
40078
|
|
|
40079
|
-
function ownKeys$
|
|
40080
|
-
function _objectSpread$
|
|
40079
|
+
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; }
|
|
40080
|
+
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; }
|
|
40081
40081
|
var Text$6 = Typography.Text;
|
|
40082
40082
|
function StatsDescriptions(_ref) {
|
|
40083
40083
|
var data = _ref.data,
|
|
@@ -40189,7 +40189,7 @@ function StatsRow(_ref2) {
|
|
|
40189
40189
|
children: service.label
|
|
40190
40190
|
}), /*#__PURE__*/jsx(RuntimeBadge, {
|
|
40191
40191
|
runtime: service.runtime
|
|
40192
|
-
}), state.status === 'done' && isMulti && /*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
40192
|
+
}), state.status === 'done' && isMulti && /*#__PURE__*/jsx(InstancesBadge, _objectSpread$1L({}, getInstanceSummary(state.instances, function () {
|
|
40193
40193
|
return true;
|
|
40194
40194
|
})))]
|
|
40195
40195
|
}), /*#__PURE__*/jsx(Button, {
|
|
@@ -40282,8 +40282,8 @@ function StatsRow(_ref2) {
|
|
|
40282
40282
|
});
|
|
40283
40283
|
}
|
|
40284
40284
|
|
|
40285
|
-
function ownKeys$
|
|
40286
|
-
function _objectSpread$
|
|
40285
|
+
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; }
|
|
40286
|
+
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; }
|
|
40287
40287
|
var Text$5 = Typography.Text;
|
|
40288
40288
|
function RefreshResultTags(_ref) {
|
|
40289
40289
|
var result = _ref.result;
|
|
@@ -40384,7 +40384,7 @@ function RefreshRow(_ref4) {
|
|
|
40384
40384
|
gap: 8,
|
|
40385
40385
|
marginBottom: 4
|
|
40386
40386
|
},
|
|
40387
|
-
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
40387
|
+
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$1K({}, summary)), summary.partial && /*#__PURE__*/jsx(Text$5, {
|
|
40388
40388
|
type: "warning",
|
|
40389
40389
|
style: {
|
|
40390
40390
|
fontSize: 12
|
|
@@ -40630,8 +40630,8 @@ var editorHost = "editorHost-9538u";
|
|
|
40630
40630
|
var css_248z$10 = "/* Scoped jsoneditor theming; light uses stock colors via fallbacks, dark uses CSS vars from inline style + .shellDark. */\n\n.shell-2U8ER {\n width: 100%;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.shell-2U8ER .jsoneditor {\n border-color: #3883fa;\n border-color: var(--je-border, #3883fa);\n color: #1a1a1a;\n color: var(--je-text, #1a1a1a);\n}\n\n.shell-2U8ER div.jsoneditor-tree {\n background: #fff;\n background: var(--je-tree-bg, #fff);\n}\n\n.shell-2U8ER .jsoneditor td,\n.shell-2U8ER .jsoneditor th,\n.shell-2U8ER .jsoneditor tr,\n.shell-2U8ER div.jsoneditor-field,\n.shell-2U8ER div.jsoneditor-value,\n.shell-2U8ER pre.jsoneditor-preview {\n color: #1a1a1a;\n color: var(--je-text, #1a1a1a);\n}\n\n.shell-2U8ER div.jsoneditor td.jsoneditor-separator {\n color: grey;\n color: var(--je-separator, grey);\n}\n\n.shell-2U8ER div.jsoneditor-default {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-readonly {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-string,\n.shell-2U8ER a.jsoneditor-value.jsoneditor-url {\n color: #006000;\n color: var(--je-string, #006000);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-number {\n color: #ee422e;\n color: var(--je-number, #ee422e);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-boolean {\n color: #ff8c00;\n color: var(--je-boolean, #ff8c00);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-null {\n color: #004ed0;\n color: var(--je-null, #004ed0);\n}\n\n.shell-2U8ER tr.jsoneditor-highlight,\n.shell-2U8ER tr.jsoneditor-selected {\n background-color: #d3d3d3;\n background-color: var(--je-row-bg, #d3d3d3);\n}\n\n.shell-2U8ER div.jsoneditor-tree button.jsoneditor-button:focus {\n background-color: #f5f5f5;\n background-color: var(--je-btn-focus, #f5f5f5);\n outline: 1px solid #e5e5e5;\n outline: 1px solid var(--je-btn-outline, #e5e5e5);\n}\n\n.shell-2U8ER div.jsoneditor-tree div.jsoneditor-show-more {\n background-color: #e5e5e5;\n background-color: var(--je-show-more-bg, #e5e5e5);\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-tree div.jsoneditor-show-more a {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n/* Dark: syntax + tree chrome (vars set inline from Ant token where possible) */\n.shellDark-Xzi3I {\n --je-string: #89d185;\n --je-number: #b5cea8;\n --je-boolean: #dcdcaa;\n --je-null: #569cd6;\n --je-url: #4ec9b0;\n --je-row-bg: rgba(255, 255, 255, 0.08);\n --je-btn-focus: rgba(255, 255, 255, 0.12);\n --je-btn-outline: rgba(255, 255, 255, 0.2);\n --je-show-more-bg: rgba(255, 255, 255, 0.12);\n}\n\n.shellDark-Xzi3I div.jsoneditor-tree button.jsoneditor-button {\n filter: invert(1);\n}\n\n.shellDark-Xzi3I div.jsoneditor-tree button.jsoneditor-button:focus {\n filter: invert(1);\n}\n\n.editorHost-9538u {\n height: 100%;\n width: 100%;\n min-height: 200px;\n}\n";
|
|
40631
40631
|
styleInject(css_248z$10);
|
|
40632
40632
|
|
|
40633
|
-
function ownKeys$
|
|
40634
|
-
function _objectSpread$
|
|
40633
|
+
function ownKeys$1J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40634
|
+
function _objectSpread$1J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40635
40635
|
/**
|
|
40636
40636
|
* Read-only tree viewer for Jotform API payloads (uses jsoneditor `view` mode).
|
|
40637
40637
|
*/
|
|
@@ -40644,7 +40644,7 @@ function JotformRawJsonReader(_ref) {
|
|
|
40644
40644
|
token = _theme$useToken.token;
|
|
40645
40645
|
var containerRef = useRef(null);
|
|
40646
40646
|
var editorRef = useRef(null);
|
|
40647
|
-
var shellStyle = _objectSpread$
|
|
40647
|
+
var shellStyle = _objectSpread$1J({
|
|
40648
40648
|
height: height,
|
|
40649
40649
|
minHeight: 200,
|
|
40650
40650
|
width: '100%'
|
|
@@ -40684,8 +40684,8 @@ function JotformRawJsonReader(_ref) {
|
|
|
40684
40684
|
});
|
|
40685
40685
|
}
|
|
40686
40686
|
|
|
40687
|
-
function ownKeys$
|
|
40688
|
-
function _objectSpread$
|
|
40687
|
+
function ownKeys$1I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40688
|
+
function _objectSpread$1I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40689
40689
|
var Title = Typography.Title,
|
|
40690
40690
|
Text$3 = Typography.Text;
|
|
40691
40691
|
function MetaCampaignJotformSync() {
|
|
@@ -40745,7 +40745,7 @@ function MetaCampaignJotformSync() {
|
|
|
40745
40745
|
_context.next = 16;
|
|
40746
40746
|
return fetch(url, {
|
|
40747
40747
|
method: 'POST',
|
|
40748
|
-
headers: _objectSpread$
|
|
40748
|
+
headers: _objectSpread$1I({
|
|
40749
40749
|
'Content-Type': 'application/json'
|
|
40750
40750
|
}, jwt ? {
|
|
40751
40751
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -42063,8 +42063,8 @@ var meta = "meta-Ihuqr";
|
|
|
42063
42063
|
var css_248z$S = ".root-7OUrP {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n border: 1px solid #d9d9d9;\n border: 1px solid var(--ant-color-border, #d9d9d9);\n border-radius: 8px;\n background: #fff;\n background: var(--ant-color-bg-container, #fff);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.root-7OUrP:active {\n cursor: grabbing;\n}\n\n.rootSelected-Z8LGb {\n border-color: #1677ff;\n border-color: var(--ant-color-primary, #1677ff);\n background: #e6f4ff;\n background: var(--ant-color-primary-bg, #e6f4ff);\n}\n\n.dragHandle-xo0vD {\n display: inline-flex;\n align-items: center;\n cursor: grab;\n color: #999;\n color: var(--ant-color-text-tertiary, #999);\n touch-action: none;\n}\n\n.dragHandle-xo0vD:active {\n cursor: grabbing;\n}\n\n.badge-7hZ6T {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n border-radius: 10px;\n font-size: 12px;\n font-weight: 600;\n color: #fff;\n background: #1677ff;\n background: var(--ant-color-primary, #1677ff);\n}\n\n.thumb-ePFWB {\n width: 88px;\n height: 88px;\n -o-object-fit: cover;\n object-fit: cover;\n border-radius: 6px;\n flex: 0 0 auto;\n background: #f0f0f0;\n background: var(--ant-color-fill-secondary, #f0f0f0);\n cursor: pointer;\n}\n\n.thumbPlaceholder-zX1-S {\n width: 88px;\n height: 88px;\n border-radius: 6px;\n background: #f0f0f0;\n background: var(--ant-color-fill-secondary, #f0f0f0);\n flex: 0 0 auto;\n}\n\n.info-8ZlUD {\n display: flex;\n flex-direction: column;\n min-width: 0;\n flex: 1 1 auto;\n}\n\n.label-y-wTq {\n font-size: 14px;\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.meta-Ihuqr {\n font-size: 12px;\n color: #888;\n color: var(--ant-color-text-secondary, #888);\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n\n.referenceTag-gyKQR {\n align-self: flex-start;\n margin-top: 4px;\n padding: 1px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n color: #1677ff;\n color: var(--ant-color-primary, #1677ff);\n background: #e6f4ff;\n background: var(--ant-color-primary-bg, #e6f4ff);\n border: 1px solid #91caff;\n border: 1px solid var(--ant-color-primary-border, #91caff);\n white-space: nowrap;\n}\n";
|
|
42064
42064
|
styleInject(css_248z$S);
|
|
42065
42065
|
|
|
42066
|
-
function ownKeys$
|
|
42067
|
-
function _objectSpread$
|
|
42066
|
+
function ownKeys$1H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42067
|
+
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42068
42068
|
/** Joins all present metadata entries to `key: value, ...`; returns '' when empty. */
|
|
42069
42069
|
function formatMetadata(metadata) {
|
|
42070
42070
|
if (!metadata || _typeof(metadata) !== 'object') return '';
|
|
@@ -42114,7 +42114,7 @@ function SortableImageRow(_ref) {
|
|
|
42114
42114
|
// The whole row is the drag handle so it can be grabbed anywhere. The
|
|
42115
42115
|
// PointerSensor's small activation distance keeps plain clicks working;
|
|
42116
42116
|
// interactive children stop propagation so they never start a drag.
|
|
42117
|
-
jsxs("div", _objectSpread$
|
|
42117
|
+
jsxs("div", _objectSpread$1H(_objectSpread$1H(_objectSpread$1H({
|
|
42118
42118
|
ref: setNodeRef,
|
|
42119
42119
|
style: style,
|
|
42120
42120
|
className: selected ? "".concat(root$4, " ").concat(rootSelected) : root$4
|
|
@@ -42173,8 +42173,8 @@ var list$3 = "list-qqATK";
|
|
|
42173
42173
|
var css_248z$R = ".root-II5c9 {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n border: 1px solid #d9d9d9;\n border: 1px solid var(--ant-color-border, #d9d9d9);\n border-radius: 8px;\n background: #fff;\n background: var(--ant-color-bg-container, #fff);\n flex: 1 1 auto;\n min-height: 0;\n overflow: hidden;\n}\n\n.title-2FZl4 {\n font-size: 14px;\n font-weight: 600;\n}\n\n.hint-AnZcz {\n font-size: 12px;\n color: #888;\n color: var(--ant-color-text-secondary, #888);\n}\n\n.list-qqATK {\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n padding-right: 4px;\n}\n";
|
|
42174
42174
|
styleInject(css_248z$R);
|
|
42175
42175
|
|
|
42176
|
-
function ownKeys$
|
|
42177
|
-
function _objectSpread$
|
|
42176
|
+
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; }
|
|
42177
|
+
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; }
|
|
42178
42178
|
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; } } }; }
|
|
42179
42179
|
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; } }
|
|
42180
42180
|
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; }
|
|
@@ -42220,17 +42220,17 @@ function buildItems(slides, selectedUrls) {
|
|
|
42220
42220
|
return a.pos - b.pos;
|
|
42221
42221
|
});
|
|
42222
42222
|
return [].concat(_toConsumableArray(selected.map(function (s) {
|
|
42223
|
-
return _objectSpread$
|
|
42223
|
+
return _objectSpread$1G(_objectSpread$1G({}, s.item), {}, {
|
|
42224
42224
|
selected: true
|
|
42225
42225
|
});
|
|
42226
42226
|
})), _toConsumableArray(rest.map(function (r) {
|
|
42227
|
-
return _objectSpread$
|
|
42227
|
+
return _objectSpread$1G(_objectSpread$1G({}, r), {}, {
|
|
42228
42228
|
selected: false
|
|
42229
42229
|
});
|
|
42230
42230
|
})));
|
|
42231
42231
|
}
|
|
42232
42232
|
return withMeta.map(function (it) {
|
|
42233
|
-
return _objectSpread$
|
|
42233
|
+
return _objectSpread$1G(_objectSpread$1G({}, it), {}, {
|
|
42234
42234
|
selected: it.media.isPreview === true
|
|
42235
42235
|
});
|
|
42236
42236
|
});
|
|
@@ -42289,7 +42289,7 @@ function AIImageSelector(_ref2) {
|
|
|
42289
42289
|
};
|
|
42290
42290
|
var toggle = function toggle(key) {
|
|
42291
42291
|
commit(items.map(function (it) {
|
|
42292
|
-
return it.key === key ? _objectSpread$
|
|
42292
|
+
return it.key === key ? _objectSpread$1G(_objectSpread$1G({}, it), {}, {
|
|
42293
42293
|
selected: !it.selected
|
|
42294
42294
|
}) : it;
|
|
42295
42295
|
}));
|
|
@@ -42538,8 +42538,8 @@ function InputImagesModal(_ref) {
|
|
|
42538
42538
|
});
|
|
42539
42539
|
}
|
|
42540
42540
|
|
|
42541
|
-
function ownKeys$
|
|
42542
|
-
function _objectSpread$
|
|
42541
|
+
function ownKeys$1F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42542
|
+
function _objectSpread$1F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42543
42543
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
42544
42544
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
42545
42545
|
var LOG$i = getLogger('Backoffice', 'RenderApprove');
|
|
@@ -42602,14 +42602,14 @@ function useUpdateRenderJobState() {
|
|
|
42602
42602
|
});
|
|
42603
42603
|
case 2:
|
|
42604
42604
|
_context.next = 4;
|
|
42605
|
-
return fetch("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id), "/state"), _objectSpread$
|
|
42605
|
+
return fetch("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id), "/state"), _objectSpread$1F({
|
|
42606
42606
|
method: 'PATCH',
|
|
42607
|
-
headers: _objectSpread$
|
|
42607
|
+
headers: _objectSpread$1F({
|
|
42608
42608
|
'Content-Type': 'application/json'
|
|
42609
42609
|
}, jwt ? {
|
|
42610
42610
|
Authorization: "Bearer ".concat(jwt)
|
|
42611
42611
|
} : {}),
|
|
42612
|
-
body: JSON.stringify(_objectSpread$
|
|
42612
|
+
body: JSON.stringify(_objectSpread$1F(_objectSpread$1F({
|
|
42613
42613
|
state: state
|
|
42614
42614
|
}, message ? {
|
|
42615
42615
|
message: message
|
|
@@ -42673,8 +42673,8 @@ var thumb$1 = "thumb-6gdgJ";
|
|
|
42673
42673
|
var css_248z$P = ".conflict-U1lxo {\n margin-top: 16px;\n}\n\n.slot-pMffO {\n margin-left: 4px;\n}\n\n.options-s6vHt {\n display: block;\n margin-top: 8px;\n}\n\n.thumb-6gdgJ {\n width: 40px;\n height: 40px;\n -o-object-fit: cover;\n object-fit: cover;\n border-radius: 4px;\n}\n";
|
|
42674
42674
|
styleInject(css_248z$P);
|
|
42675
42675
|
|
|
42676
|
-
function ownKeys$
|
|
42677
|
-
function _objectSpread$
|
|
42676
|
+
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; }
|
|
42677
|
+
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; }
|
|
42678
42678
|
var KEEP = 'keep';
|
|
42679
42679
|
/**
|
|
42680
42680
|
* Asks which image a job may replace when its slot on the product is taken. Not replacing is preselected:
|
|
@@ -42753,7 +42753,7 @@ function SlotConflictModal(_ref) {
|
|
|
42753
42753
|
value: (_choices$conflict$ren = choices[conflict$1.renderJob]) !== null && _choices$conflict$ren !== void 0 ? _choices$conflict$ren : KEEP,
|
|
42754
42754
|
onChange: function onChange(e) {
|
|
42755
42755
|
return setChoices(function (prev) {
|
|
42756
|
-
return _objectSpread$
|
|
42756
|
+
return _objectSpread$1E(_objectSpread$1E({}, prev), {}, _defineProperty({}, conflict$1.renderJob, e.target.value));
|
|
42757
42757
|
});
|
|
42758
42758
|
},
|
|
42759
42759
|
children: /*#__PURE__*/jsxs(Space, {
|
|
@@ -44103,8 +44103,8 @@ var promptStickyActions = "promptStickyActions-arA6B";
|
|
|
44103
44103
|
var css_248z$M = ".panelRoot-gfLcR {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.toolbar-Y7oCe {\n display: flex;\n align-items: center;\n gap: 24px;\n padding: 6px 16px;\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n min-height: 36px;\n flex-wrap: wrap;\n flex-shrink: 0;\n}\n\n.toolbarActions-L-u0R {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.workspace-4rfzU {\n display: flex;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n}\n\n.workspaceSplitter-CVUsN {\n width: 100%;\n height: 100%;\n}\n\n.workspaceSplitterMain-TGqq- {\n height: 100%;\n}\n\n.workspaceSplitterSide-y-OCr {\n width: 100%;\n height: 100%;\n}\n\n.main-OZ7rC {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n min-height: 0;\n}\n\n.primaryFields-6QkPL {\n display: flex;\n flex-wrap: wrap;\n gap: 16px;\n align-items: center;\n flex: 1;\n min-width: 0;\n}\n\n.primaryFieldItem-6-wLB {\n display: inline-flex;\n gap: 4px;\n align-items: baseline;\n min-width: 0;\n}\n\n.primaryFieldLabel-xmQ2Q {\n font-size: 12px;\n white-space: nowrap;\n}\n\n.primaryFieldValue-CY9eJ {\n font-size: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 260px;\n}\n\n.sidebar-3A7Z2 {\n width: 100%;\n height: 100%;\n background: #fff;\n border-left: 1px solid #f0f0f0;\n overflow: hidden;\n}\n\n.sidebarInner-MpQjT {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n padding: 16px;\n box-sizing: border-box;\n}\n\n.panelColumns-aYOq4 {\n display: block;\n height: 100%;\n}\n\n.sidebarSplitter-LlocD {\n width: 100%;\n height: 100%;\n}\n\n.sidebarSplitterPanel-y71Yq {\n height: 100%;\n overflow-y: auto;\n padding-right: 8px;\n}\n\n.sidebarTitle-dIltG {\n margin: 0 0 16px;\n}\n\n.promptHeader-QHTrj {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n margin-bottom: 16px;\n}\n\n.promptHeaderSticky-HadEs {\n position: sticky;\n top: 0;\n z-index: 2;\n background: inherit;\n padding-bottom: 8px;\n}\n\n.promptTitle-qlInu {\n margin: 0;\n}\n\n.section-895Lv {\n margin-bottom: 16px;\n}\n\n/* A bordered Descriptions sizes its columns from the content - antd overrides its\n own base `table-layout: fixed` with `auto`. An unbreakable value (a scene path)\n then inflates the cell, and the edit controls in it, `width: 100%` of that cell,\n render past the panel. Out-specifying antd's rule needs its three classes. */\n.section-895Lv.ant-descriptions.ant-descriptions-bordered > .ant-descriptions-view > table {\n table-layout: fixed;\n}\n\n/* A fixed layout takes the column widths from the first row, so they have to be\n stated: enough for the longest label (\"Renderszene / Stilwelt\"). */\n.section-895Lv .ant-descriptions-item-label {\n width: 40%;\n}\n\n.detailsEditControl-q2lEh {\n width: 100%;\n}\n\n.panelSection-cniRE {\n margin-bottom: 20px;\n}\n\n.promptPanel-NHVXj {\n display: flex;\n flex-direction: column;\n min-height: 0;\n height: 100%;\n overflow: hidden;\n}\n\n.panelSection-cniRE:last-child {\n margin-bottom: 0;\n}\n\n.promptText-2-Sjb {\n white-space: pre-wrap;\n word-break: break-word;\n margin-bottom: 0;\n}\n\n.promptReadOnlyLayout-CtTQN {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.promptReadOnlyScroll-N1kdM {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n\n.promptVariantField-wfK6m {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 12px;\n flex-shrink: 0;\n}\n\n.promptVariantSelect-0bD6o {\n width: 80px;\n}\n\n.promptEditor-0tZzL {\n margin-bottom: 0;\n}\n\n.promptEditorWrap-CJT9J {\n display: flex;\n flex: 1;\n min-height: 0;\n margin-bottom: 12px;\n}\n\n.promptEditorWrap-CJT9J textarea.ant-input {\n height: 100%;\n min-height: 160px;\n}\n\n.promptEditLayout-SCkMM {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding-bottom: 56px;\n}\n\n.promptWarning-OGH7p {\n margin-bottom: 12px;\n}\n\n.promptEditActions-bYvcD {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n}\n\n.promptStickyActions-arA6B {\n position: sticky;\n bottom: 0;\n padding-top: 12px;\n margin-top: auto;\n background: inherit;\n z-index: 1;\n}\n\n/* Dark mode */\n.darkmode .toolbar-Y7oCe {\n background: #141414;\n border-bottom-color: #303030;\n}\n\n.darkmode .sidebar-3A7Z2 {\n background: #141414;\n border-left-color: #303030;\n}\n";
|
|
44104
44104
|
styleInject(css_248z$M);
|
|
44105
44105
|
|
|
44106
|
-
function ownKeys$
|
|
44107
|
-
function _objectSpread$
|
|
44106
|
+
function ownKeys$1D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44107
|
+
function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
44108
44108
|
function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
44109
44109
|
function _unsupportedIterableToArray$G(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$G(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$G(r, a) : void 0; } }
|
|
44110
44110
|
function _arrayLikeToArray$G(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -44559,7 +44559,7 @@ function MetadataPanel(_ref) {
|
|
|
44559
44559
|
}();
|
|
44560
44560
|
var updateDetailsDraft = function updateDetailsDraft(change) {
|
|
44561
44561
|
return setDetailsDraft(function (draft) {
|
|
44562
|
-
return _objectSpread$
|
|
44562
|
+
return _objectSpread$1D(_objectSpread$1D({}, draft), change);
|
|
44563
44563
|
});
|
|
44564
44564
|
};
|
|
44565
44565
|
var renderDetailFieldValue = function renderDetailFieldValue(_ref4) {
|
|
@@ -45042,8 +45042,8 @@ function UndoNotification(_ref) {
|
|
|
45042
45042
|
});
|
|
45043
45043
|
}
|
|
45044
45044
|
|
|
45045
|
-
function ownKeys$
|
|
45046
|
-
function _objectSpread$
|
|
45045
|
+
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; }
|
|
45046
|
+
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; }
|
|
45047
45047
|
var LOG$h = getLogger('Backoffice', 'RenderApprove');
|
|
45048
45048
|
|
|
45049
45049
|
/**
|
|
@@ -45075,7 +45075,7 @@ function useAddRenderJobImageVariant() {
|
|
|
45075
45075
|
_context.next = 4;
|
|
45076
45076
|
return fetch("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id), "/variants"), {
|
|
45077
45077
|
method: 'POST',
|
|
45078
|
-
headers: _objectSpread$
|
|
45078
|
+
headers: _objectSpread$1C({
|
|
45079
45079
|
'Content-Type': 'application/json'
|
|
45080
45080
|
}, jwt ? {
|
|
45081
45081
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -45125,8 +45125,8 @@ function useAddRenderJobImageVariant() {
|
|
|
45125
45125
|
}(), [baseUrl, jwt]);
|
|
45126
45126
|
}
|
|
45127
45127
|
|
|
45128
|
-
function ownKeys$
|
|
45129
|
-
function _objectSpread$
|
|
45128
|
+
function ownKeys$1B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45129
|
+
function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45130
45130
|
var LOG$g = getLogger('Backoffice', 'RenderApprove');
|
|
45131
45131
|
/** The media service answers failures with `{ error: '...' }` - surface that text instead of the raw body. */
|
|
45132
45132
|
function extractResponseError(body) {
|
|
@@ -45173,7 +45173,7 @@ function useUpdateRenderJobPatch() {
|
|
|
45173
45173
|
_context.next = 6;
|
|
45174
45174
|
return fetch(url.toString(), {
|
|
45175
45175
|
method: 'PATCH',
|
|
45176
|
-
headers: _objectSpread$
|
|
45176
|
+
headers: _objectSpread$1B({
|
|
45177
45177
|
'Content-Type': 'application/json'
|
|
45178
45178
|
}, jwt ? {
|
|
45179
45179
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -45675,8 +45675,8 @@ function UploadImageModal(_ref) {
|
|
|
45675
45675
|
});
|
|
45676
45676
|
}
|
|
45677
45677
|
|
|
45678
|
-
function ownKeys$
|
|
45679
|
-
function _objectSpread$
|
|
45678
|
+
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45679
|
+
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45680
45680
|
var LOG$f = getLogger('Backoffice', 'RenderApprove');
|
|
45681
45681
|
function isProcessedDecision(decision) {
|
|
45682
45682
|
return decision === 'approve' || decision === 'reject' || decision === 'changedReadyForRenderer';
|
|
@@ -45756,7 +45756,7 @@ function _fetchRenderJobStates() {
|
|
|
45756
45756
|
chunk = ids.slice(i, i + VALIDATION_CHUNK_SIZE);
|
|
45757
45757
|
_context6.next = 6;
|
|
45758
45758
|
return fetch(buildRenderJobsValidationUrl(baseUrl, chunk), {
|
|
45759
|
-
headers: _objectSpread$
|
|
45759
|
+
headers: _objectSpread$1A({
|
|
45760
45760
|
'Content-Type': 'application/json'
|
|
45761
45761
|
}, jwt ? {
|
|
45762
45762
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -46120,7 +46120,7 @@ function useRenderApproveSession(_ref) {
|
|
|
46120
46120
|
return _context3.abrupt("return");
|
|
46121
46121
|
case 2:
|
|
46122
46122
|
previousDecision = decisions[currentId];
|
|
46123
|
-
nextDecisions = _objectSpread$
|
|
46123
|
+
nextDecisions = _objectSpread$1A(_objectSpread$1A({}, decisions), {}, _defineProperty({}, currentId, 'approve'));
|
|
46124
46124
|
enqueuePending({
|
|
46125
46125
|
jobId: currentId,
|
|
46126
46126
|
action: 'approve',
|
|
@@ -46152,7 +46152,7 @@ function useRenderApproveSession(_ref) {
|
|
|
46152
46152
|
return _context4.abrupt("return");
|
|
46153
46153
|
case 2:
|
|
46154
46154
|
previousDecision = decisions[currentId];
|
|
46155
|
-
nextDecisions = _objectSpread$
|
|
46155
|
+
nextDecisions = _objectSpread$1A(_objectSpread$1A({}, decisions), {}, _defineProperty({}, currentId, 'reject'));
|
|
46156
46156
|
enqueuePending({
|
|
46157
46157
|
jobId: currentId,
|
|
46158
46158
|
action: 'reject',
|
|
@@ -46178,7 +46178,7 @@ function useRenderApproveSession(_ref) {
|
|
|
46178
46178
|
}(), [currentId, decisions, enqueuePending, ids, isCurrentReadOnly, safeIndex, skipProcessedJobs, t, total]);
|
|
46179
46179
|
var skip = useCallback(function () {
|
|
46180
46180
|
if (isEmpty || !currentId || isCurrentReadOnly) return;
|
|
46181
|
-
var nextDecisions = _objectSpread$
|
|
46181
|
+
var nextDecisions = _objectSpread$1A(_objectSpread$1A({}, decisions), {}, _defineProperty({}, currentId, 'skip'));
|
|
46182
46182
|
setDecisions(nextDecisions);
|
|
46183
46183
|
message.info(t('backoffice.renderapprove.messages.jobSkipped'));
|
|
46184
46184
|
var next = findNextNavigableIndex(ids, safeIndex + 1, nextDecisions, skipProcessedJobs);
|
|
@@ -46186,7 +46186,7 @@ function useRenderApproveSession(_ref) {
|
|
|
46186
46186
|
}, [currentId, decisions, ids, isCurrentReadOnly, isEmpty, safeIndex, skipProcessedJobs, t, total]);
|
|
46187
46187
|
var markChangedReadyForRenderer = useCallback(function () {
|
|
46188
46188
|
if (isEmpty || !currentId || isCurrentReadOnly) return;
|
|
46189
|
-
var nextDecisions = _objectSpread$
|
|
46189
|
+
var nextDecisions = _objectSpread$1A(_objectSpread$1A({}, decisions), {}, _defineProperty({}, currentId, 'changedReadyForRenderer'));
|
|
46190
46190
|
setDecisions(nextDecisions);
|
|
46191
46191
|
var next = findNextNavigableIndex(ids, safeIndex + 1, nextDecisions, skipProcessedJobs);
|
|
46192
46192
|
setCurrentIndex(next !== null && next !== void 0 ? next : total);
|
|
@@ -46201,11 +46201,11 @@ function useRenderApproveSession(_ref) {
|
|
|
46201
46201
|
setDecisions(function (prev) {
|
|
46202
46202
|
if (decision === undefined) {
|
|
46203
46203
|
if (!(id in prev)) return prev;
|
|
46204
|
-
var next = _objectSpread$
|
|
46204
|
+
var next = _objectSpread$1A({}, prev);
|
|
46205
46205
|
delete next[id];
|
|
46206
46206
|
return next;
|
|
46207
46207
|
}
|
|
46208
|
-
return _objectSpread$
|
|
46208
|
+
return _objectSpread$1A(_objectSpread$1A({}, prev), {}, _defineProperty({}, id, decision));
|
|
46209
46209
|
});
|
|
46210
46210
|
}, []);
|
|
46211
46211
|
var resumeOpenItems = useCallback(function () {
|
|
@@ -46220,11 +46220,11 @@ function useRenderApproveSession(_ref) {
|
|
|
46220
46220
|
setPendingAction(null);
|
|
46221
46221
|
setDecisions(function (prev) {
|
|
46222
46222
|
if (!pending.previousDecision) {
|
|
46223
|
-
var next = _objectSpread$
|
|
46223
|
+
var next = _objectSpread$1A({}, prev);
|
|
46224
46224
|
delete next[pending.jobId];
|
|
46225
46225
|
return next;
|
|
46226
46226
|
}
|
|
46227
|
-
return _objectSpread$
|
|
46227
|
+
return _objectSpread$1A(_objectSpread$1A({}, prev), {}, _defineProperty({}, pending.jobId, pending.previousDecision));
|
|
46228
46228
|
});
|
|
46229
46229
|
setCurrentIndex(pending.indexAtAction);
|
|
46230
46230
|
message.info(t('backoffice.renderapprove.messages.actionUndone'));
|
|
@@ -46305,8 +46305,8 @@ function useRenderApproveSession(_ref) {
|
|
|
46305
46305
|
};
|
|
46306
46306
|
}
|
|
46307
46307
|
|
|
46308
|
-
function ownKeys$
|
|
46309
|
-
function _objectSpread$
|
|
46308
|
+
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; }
|
|
46309
|
+
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; }
|
|
46310
46310
|
function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
46311
46311
|
function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
|
|
46312
46312
|
function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -46329,7 +46329,7 @@ function _fetchJson() {
|
|
|
46329
46329
|
case 0:
|
|
46330
46330
|
_context2.next = 2;
|
|
46331
46331
|
return fetch(url, {
|
|
46332
|
-
headers: _objectSpread$
|
|
46332
|
+
headers: _objectSpread$1z({
|
|
46333
46333
|
'Content-Type': 'application/json'
|
|
46334
46334
|
}, jwt ? {
|
|
46335
46335
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -46483,7 +46483,7 @@ function _fetchProductMedia() {
|
|
|
46483
46483
|
mapped.mediaItemRefId = ref;
|
|
46484
46484
|
}
|
|
46485
46485
|
// Base metadata already available from the product list.
|
|
46486
|
-
mapped.metadata = _objectSpread$
|
|
46486
|
+
mapped.metadata = _objectSpread$1z(_objectSpread$1z({}, item !== null && item !== void 0 && item.functionType ? {
|
|
46487
46487
|
functionType: item.functionType
|
|
46488
46488
|
} : {}), (_mapped$metadata = mapped.metadata) !== null && _mapped$metadata !== void 0 ? _mapped$metadata : {});
|
|
46489
46489
|
result.push({
|
|
@@ -46530,24 +46530,24 @@ function _fetchProductMedia() {
|
|
|
46530
46530
|
if (mediaItemRes.status === 'fulfilled') {
|
|
46531
46531
|
item = mediaItemRes.value;
|
|
46532
46532
|
if (item !== null && item !== void 0 && item.metadata && _typeof(item.metadata) === 'object') {
|
|
46533
|
-
media.metadata = _objectSpread$
|
|
46533
|
+
media.metadata = _objectSpread$1z(_objectSpread$1z({}, (_media$metadata = media.metadata) !== null && _media$metadata !== void 0 ? _media$metadata : {}), item.metadata);
|
|
46534
46534
|
}
|
|
46535
46535
|
if ((!media.name || media.name.length === 0) && typeof (item === null || item === void 0 ? void 0 : item.name) === 'string') media.name = item.name;
|
|
46536
46536
|
// The catalog entry carries no file information, so mime type, variants and
|
|
46537
46537
|
// thumbnail come from the MediaItem - `getViewerUrl` needs mime type and
|
|
46538
46538
|
// variants to show the PNG stand-in for a TIFF.
|
|
46539
46539
|
if (!media.mimeType && typeof (item === null || item === void 0 ? void 0 : item.mimeType) === 'string') media.mimeType = item.mimeType;
|
|
46540
|
-
if (item !== null && item !== void 0 && item.variants && _typeof(item.variants) === 'object') media.variants = _objectSpread$
|
|
46540
|
+
if (item !== null && item !== void 0 && item.variants && _typeof(item.variants) === 'object') media.variants = _objectSpread$1z(_objectSpread$1z({}, (_media$variants = media.variants) !== null && _media$variants !== void 0 ? _media$variants : {}), item.variants);
|
|
46541
46541
|
if (!media.thumbnailUrl) media.thumbnailUrl = (_ref10 = (_item$thumbnailUrl2 = item === null || item === void 0 ? void 0 : item.thumbnailUrl) !== null && _item$thumbnailUrl2 !== void 0 ? _item$thumbnailUrl2 : getImageVariantUrl(media.variants, 'gal')) !== null && _ref10 !== void 0 ? _ref10 : null;
|
|
46542
46542
|
}
|
|
46543
46543
|
if (refRes.status === 'fulfilled') {
|
|
46544
46544
|
payload = refRes.value;
|
|
46545
46545
|
refDoc = Array.isArray(payload) ? payload[0] : Array.isArray(payload === null || payload === void 0 ? void 0 : payload.data) ? payload.data[0] : payload;
|
|
46546
46546
|
if (refDoc !== null && refDoc !== void 0 && refDoc.metadata && _typeof(refDoc.metadata) === 'object') {
|
|
46547
|
-
media.metadata = _objectSpread$
|
|
46547
|
+
media.metadata = _objectSpread$1z(_objectSpread$1z({}, (_media$metadata2 = media.metadata) !== null && _media$metadata2 !== void 0 ? _media$metadata2 : {}), refDoc.metadata);
|
|
46548
46548
|
}
|
|
46549
46549
|
if (refDoc !== null && refDoc !== void 0 && refDoc.variants && _typeof(refDoc.variants) === 'object') {
|
|
46550
|
-
media.variants = _objectSpread$
|
|
46550
|
+
media.variants = _objectSpread$1z(_objectSpread$1z({}, (_media$variants2 = media.variants) !== null && _media$variants2 !== void 0 ? _media$variants2 : {}), refDoc.variants);
|
|
46551
46551
|
if (!media.thumbnailUrl) media.thumbnailUrl = (_getImageVariantUrl2 = getImageVariantUrl(media.variants, 'gal')) !== null && _getImageVariantUrl2 !== void 0 ? _getImageVariantUrl2 : null;
|
|
46552
46552
|
}
|
|
46553
46553
|
}
|
|
@@ -46668,7 +46668,7 @@ function buildLeftSlides(left, renderImages, productMedia) {
|
|
|
46668
46668
|
mediaItemRefId: mediaItemRefId
|
|
46669
46669
|
};
|
|
46670
46670
|
// The first input image is the one the AI works from - flagged so the slider can label it.
|
|
46671
|
-
return index === 0 ? _objectSpread$
|
|
46671
|
+
return index === 0 ? _objectSpread$1z(_objectSpread$1z({}, slide), {}, {
|
|
46672
46672
|
isReference: true
|
|
46673
46673
|
}) : slide;
|
|
46674
46674
|
});
|
|
@@ -46727,7 +46727,7 @@ function _withResolvedSlideNames() {
|
|
|
46727
46727
|
_context6.next = 8;
|
|
46728
46728
|
break;
|
|
46729
46729
|
}
|
|
46730
|
-
return _context6.abrupt("return", _objectSpread$
|
|
46730
|
+
return _context6.abrupt("return", _objectSpread$1z(_objectSpread$1z({}, slide), {}, {
|
|
46731
46731
|
name: item.name
|
|
46732
46732
|
}));
|
|
46733
46733
|
case 8:
|
|
@@ -46810,7 +46810,7 @@ function _resolveVariants() {
|
|
|
46810
46810
|
_context8.t0 = _context8["catch"](2);
|
|
46811
46811
|
LOG$e.warn("Could not resolve image variant ".concat(mediaItemId, ": ").concat(_context8.t0 === null || _context8.t0 === void 0 ? void 0 : _context8.t0.message));
|
|
46812
46812
|
case 11:
|
|
46813
|
-
return _context8.abrupt("return", _objectSpread$
|
|
46813
|
+
return _context8.abrupt("return", _objectSpread$1z(_objectSpread$1z({}, (_media2 = media) !== null && _media2 !== void 0 ? _media2 : {
|
|
46814
46814
|
url: (_variant$url = variant.url) !== null && _variant$url !== void 0 ? _variant$url : null,
|
|
46815
46815
|
mediaType: 'PCT'
|
|
46816
46816
|
}), {}, {
|
|
@@ -46933,7 +46933,7 @@ function useRenderJobData(id, refreshKey) {
|
|
|
46933
46933
|
if (cancelled) return;
|
|
46934
46934
|
// The result image is on screen, so the decision actions are released here.
|
|
46935
46935
|
setImages(function (prev) {
|
|
46936
|
-
return _objectSpread$
|
|
46936
|
+
return _objectSpread$1z(_objectSpread$1z({}, prev), {}, {
|
|
46937
46937
|
right: right !== null && right !== void 0 ? right : {
|
|
46938
46938
|
url: null
|
|
46939
46939
|
}
|
|
@@ -46948,7 +46948,7 @@ function useRenderJobData(id, refreshKey) {
|
|
|
46948
46948
|
if (cancelled || productMedia.length === 0) return;
|
|
46949
46949
|
leftSlides = buildLeftSlides(left, renderImages, productMedia);
|
|
46950
46950
|
setImages(function (prev) {
|
|
46951
|
-
return _objectSpread$
|
|
46951
|
+
return _objectSpread$1z(_objectSpread$1z({}, prev), {}, {
|
|
46952
46952
|
leftSlides: leftSlides
|
|
46953
46953
|
});
|
|
46954
46954
|
});
|
|
@@ -46959,7 +46959,7 @@ function useRenderJobData(id, refreshKey) {
|
|
|
46959
46959
|
}).then(function (rightSlides) {
|
|
46960
46960
|
if (cancelled) return;
|
|
46961
46961
|
setImages(function (prev) {
|
|
46962
|
-
return _objectSpread$
|
|
46962
|
+
return _objectSpread$1z(_objectSpread$1z({}, prev), {}, {
|
|
46963
46963
|
rightSlides: rightSlides
|
|
46964
46964
|
});
|
|
46965
46965
|
});
|
|
@@ -46984,7 +46984,7 @@ function useRenderJobData(id, refreshKey) {
|
|
|
46984
46984
|
return _context.abrupt("return");
|
|
46985
46985
|
case 28:
|
|
46986
46986
|
setImages(function (prev) {
|
|
46987
|
-
return _objectSpread$
|
|
46987
|
+
return _objectSpread$1z(_objectSpread$1z({}, prev), {}, {
|
|
46988
46988
|
leftSlides: named
|
|
46989
46989
|
});
|
|
46990
46990
|
});
|
|
@@ -47020,7 +47020,7 @@ function useRenderJobData(id, refreshKey) {
|
|
|
47020
47020
|
}, [id, baseUrl, catalogService, jwt, t, refreshKey]);
|
|
47021
47021
|
var applyRenderImages = useCallback(function (renderImages) {
|
|
47022
47022
|
setJob(function (prev) {
|
|
47023
|
-
return prev ? _objectSpread$
|
|
47023
|
+
return prev ? _objectSpread$1z(_objectSpread$1z({}, prev), {}, {
|
|
47024
47024
|
renderImages: renderImages
|
|
47025
47025
|
}) : prev;
|
|
47026
47026
|
});
|
|
@@ -47036,8 +47036,8 @@ function useRenderJobData(id, refreshKey) {
|
|
|
47036
47036
|
}, [job, images, loading, error, applyRenderImages]);
|
|
47037
47037
|
}
|
|
47038
47038
|
|
|
47039
|
-
function ownKeys$
|
|
47040
|
-
function _objectSpread$
|
|
47039
|
+
function ownKeys$1y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47040
|
+
function _objectSpread$1y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47041
47041
|
var LOG$d = getLogger('Backoffice', 'RenderApprove');
|
|
47042
47042
|
var METADATA_CHUNK_SIZE = 100;
|
|
47043
47043
|
var RESULT_CONCURRENCY = 6;
|
|
@@ -47076,7 +47076,7 @@ function _fetchMetadata() {
|
|
|
47076
47076
|
chunk = ids.slice(i, i + METADATA_CHUNK_SIZE);
|
|
47077
47077
|
_context5.next = 6;
|
|
47078
47078
|
return fetch(buildOverviewUrl(baseUrl, chunk), {
|
|
47079
|
-
headers: _objectSpread$
|
|
47079
|
+
headers: _objectSpread$1y({
|
|
47080
47080
|
'Content-Type': 'application/json'
|
|
47081
47081
|
}, jwt ? {
|
|
47082
47082
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -47307,7 +47307,7 @@ function useSessionOverviewData(ids, enabled) {
|
|
|
47307
47307
|
setItems(function (prev) {
|
|
47308
47308
|
return prev.map(function (it) {
|
|
47309
47309
|
var _media;
|
|
47310
|
-
return it.id === id ? _objectSpread$
|
|
47310
|
+
return it.id === id ? _objectSpread$1y(_objectSpread$1y({}, it), {}, {
|
|
47311
47311
|
result: (_media = media) !== null && _media !== void 0 ? _media : undefined,
|
|
47312
47312
|
resultLoading: false
|
|
47313
47313
|
}) : it;
|
|
@@ -47366,7 +47366,7 @@ function useSessionOverviewData(ids, enabled) {
|
|
|
47366
47366
|
// reject message follows the status: kept/updated on reject, cleared otherwise.
|
|
47367
47367
|
setItems(function (prev) {
|
|
47368
47368
|
return prev.map(function (it) {
|
|
47369
|
-
return it.id === id ? _objectSpread$
|
|
47369
|
+
return it.id === id ? _objectSpread$1y(_objectSpread$1y({}, it), {}, {
|
|
47370
47370
|
state: targetState,
|
|
47371
47371
|
rejectMessage: targetState === RENDER_JOB_STATE.rejected ? message !== null && message !== void 0 ? message : it.rejectMessage : undefined
|
|
47372
47372
|
}) : it;
|
|
@@ -47384,7 +47384,7 @@ function useSessionOverviewData(ids, enabled) {
|
|
|
47384
47384
|
// Roll back so the UI keeps showing the real (unchanged) state.
|
|
47385
47385
|
setItems(function (prev) {
|
|
47386
47386
|
return prev.map(function (it) {
|
|
47387
|
-
return it.id === id ? _objectSpread$
|
|
47387
|
+
return it.id === id ? _objectSpread$1y(_objectSpread$1y({}, it), {}, {
|
|
47388
47388
|
state: previousState !== null && previousState !== void 0 ? previousState : it.state,
|
|
47389
47389
|
rejectMessage: previousReject
|
|
47390
47390
|
}) : it;
|
|
@@ -47422,7 +47422,7 @@ function useSessionOverviewData(ids, enabled) {
|
|
|
47422
47422
|
case 2:
|
|
47423
47423
|
_context4.next = 4;
|
|
47424
47424
|
return fetch("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id)), {
|
|
47425
|
-
headers: _objectSpread$
|
|
47425
|
+
headers: _objectSpread$1y({
|
|
47426
47426
|
'Content-Type': 'application/json'
|
|
47427
47427
|
}, jwt ? {
|
|
47428
47428
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -47461,8 +47461,8 @@ function useSessionOverviewData(ids, enabled) {
|
|
|
47461
47461
|
};
|
|
47462
47462
|
}
|
|
47463
47463
|
|
|
47464
|
-
function ownKeys$
|
|
47465
|
-
function _objectSpread$
|
|
47464
|
+
function ownKeys$1x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47465
|
+
function _objectSpread$1x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47466
47466
|
var LOG$c = getLogger('Backoffice', 'RenderApprove');
|
|
47467
47467
|
|
|
47468
47468
|
/**
|
|
@@ -47495,7 +47495,7 @@ function useSelectRenderJobVariant() {
|
|
|
47495
47495
|
_context.next = 4;
|
|
47496
47496
|
return fetch("".concat(baseUrl, "/renderjobs/").concat(encodeURIComponent(id), "/variants/select"), {
|
|
47497
47497
|
method: 'POST',
|
|
47498
|
-
headers: _objectSpread$
|
|
47498
|
+
headers: _objectSpread$1x({
|
|
47499
47499
|
'Content-Type': 'application/json'
|
|
47500
47500
|
}, jwt ? {
|
|
47501
47501
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -49473,8 +49473,8 @@ var TableRenderJobs = observer(function TableRenderJobs() {
|
|
|
49473
49473
|
});
|
|
49474
49474
|
});
|
|
49475
49475
|
|
|
49476
|
-
function ownKeys$
|
|
49477
|
-
function _objectSpread$
|
|
49476
|
+
function ownKeys$1w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
49477
|
+
function _objectSpread$1w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49478
49478
|
var ContentWrapper = function ContentWrapper(_ref) {
|
|
49479
49479
|
var _menuRoute$configurat;
|
|
49480
49480
|
var menuRoute = _ref.menuRoute;
|
|
@@ -49557,7 +49557,7 @@ var ContentCard = observer(function (_ref3) {
|
|
|
49557
49557
|
var root = useStore();
|
|
49558
49558
|
var configuration = root.configurationStore.getConfiguration(configId);
|
|
49559
49559
|
return /*#__PURE__*/jsxs("div", {
|
|
49560
|
-
style: _objectSpread$
|
|
49560
|
+
style: _objectSpread$1w(_objectSpread$1w({}, !inGroup ? {
|
|
49561
49561
|
height: '100%'
|
|
49562
49562
|
} : {
|
|
49563
49563
|
maxHeight: '60vh'
|
|
@@ -49609,8 +49609,8 @@ var detail = "detail-WeK8Q";
|
|
|
49609
49609
|
var css_248z$I = ".layout-gqKsp {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n\n.content-wrapper-mQSc0 {\n overflow: auto;\n height: 100%;\n}\n\n.detail-WeK8Q .ant-drawer-content-wrapper {\n max-width: 100%;\n}\n\n.darkmode .ant-layout {\n background-color: rgb(20, 20, 20);\n}\n\n.lightmode .ant-layout {\n background-color: rgb(255, 255, 255);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode .arrows, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode .arrows, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode .arrows {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%2225%22 height%3D%2224%22 viewBox%3D%220 0 25 24%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M10.5 7L15.5 12L10.5 17%22 stroke%3D%22%23fff%22 stroke-width%3D%221.5%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(270deg, rgba(0, 21, 41, 1) 0%, rgba(0, 21, 41, 1) 72%, rgba(0, 21, 41, 0) 100%) !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile > div, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode #Profile > div, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode #Profile > div {\n border-left: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #welcomeText, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode #welcomeText, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode #welcomeText {\n border-right: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode #Profile, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode #Profile {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.lightmode, .diva-component-DIVA_DATA_ENGINE #diva-header.lightmode {\n background-color: #fff !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode *, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.darkmode *, .diva-component-DIVA_DATA_ENGINE #diva-header.darkmode * {\n color: rgb(255, 255, 255);\n}\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode *, .diva-component-DIVA_PRODUCT_ONBOARDING #diva-header.lightmode *, .diva-component-DIVA_DATA_ENGINE #diva-header.lightmode * {\n color: rgb(0, 0, 0);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW ::-webkit-scrollbar, .diva-component-DIVA_PRODUCT_ONBOARDING ::-webkit-scrollbar, .diva-component-DIVA_DATA_ENGINE ::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-track, .diva-component-DIVA_PRODUCT_ONBOARDING .darkmode ::-webkit-scrollbar-track, .diva-component-DIVA_DATA_ENGINE .darkmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #021129;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode ::-webkit-scrollbar-thumb, .diva-component-DIVA_PRODUCT_ONBOARDING .darkmode ::-webkit-scrollbar-thumb, .diva-component-DIVA_DATA_ENGINE .darkmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px rgb(130, 130, 130);\n border: solid 3px transparent;\n border-radius: 10px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-track, .diva-component-DIVA_PRODUCT_ONBOARDING .lightmode ::-webkit-scrollbar-track, .diva-component-DIVA_DATA_ENGINE .lightmode ::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #ffffff;\n border: solid 3px transparent;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .lightmode ::-webkit-scrollbar-thumb, .diva-component-DIVA_PRODUCT_ONBOARDING .lightmode ::-webkit-scrollbar-thumb, .diva-component-DIVA_DATA_ENGINE .lightmode ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px #bdbdbd;\n border: solid 3px transparent;\n border-radius: 10px;\n}\n";
|
|
49610
49610
|
styleInject(css_248z$I);
|
|
49611
49611
|
|
|
49612
|
-
function ownKeys$
|
|
49613
|
-
function _objectSpread$
|
|
49612
|
+
function ownKeys$1v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
49613
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49614
49614
|
var LOG$b = getLogger('Backoffice', 'NotificationDetails');
|
|
49615
49615
|
function useNotificationDetails(configurationId) {
|
|
49616
49616
|
var root = useStore();
|
|
@@ -49695,7 +49695,7 @@ function useNotificationDetails(configurationId) {
|
|
|
49695
49695
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
49696
49696
|
while (1) switch (_context2.prev = _context2.next) {
|
|
49697
49697
|
case 0:
|
|
49698
|
-
mergedData = removeEmpty(_objectSpread$
|
|
49698
|
+
mergedData = removeEmpty(_objectSpread$1v(_objectSpread$1v({}, currentData), values));
|
|
49699
49699
|
root.actions.toggleLoading('saving_form');
|
|
49700
49700
|
_context2.prev = 2;
|
|
49701
49701
|
isUpdate = (currentData === null || currentData === void 0 ? void 0 : currentData._id) && apiHandler.canUpdate;
|
|
@@ -49838,11 +49838,11 @@ function getOrganizationSelectConfig(scope, apiConfig) {
|
|
|
49838
49838
|
};
|
|
49839
49839
|
}
|
|
49840
49840
|
|
|
49841
|
-
function ownKeys$
|
|
49842
|
-
function _objectSpread$
|
|
49841
|
+
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; }
|
|
49842
|
+
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; }
|
|
49843
49843
|
function localizeFormItems(items, language) {
|
|
49844
49844
|
return items.map(function (item) {
|
|
49845
|
-
var nextItem = _objectSpread$
|
|
49845
|
+
var nextItem = _objectSpread$1u({}, item);
|
|
49846
49846
|
if (nextItem.doTranslate) {
|
|
49847
49847
|
nextItem.name = [].concat(_toConsumableArray(toNamePath(nextItem.name)), [language]);
|
|
49848
49848
|
nextItem.doTranslate = false;
|
|
@@ -49978,8 +49978,8 @@ function RichContentItemField(_ref) {
|
|
|
49978
49978
|
}, activeLanguage);
|
|
49979
49979
|
}
|
|
49980
49980
|
|
|
49981
|
-
function ownKeys$
|
|
49982
|
-
function _objectSpread$
|
|
49981
|
+
function ownKeys$1t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
49982
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49983
49983
|
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; } } }; }
|
|
49984
49984
|
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; } }
|
|
49985
49985
|
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; }
|
|
@@ -50179,11 +50179,11 @@ function NotificationDetails$1(_ref, ref) {
|
|
|
50179
50179
|
case 0:
|
|
50180
50180
|
setIsSubmitting(true);
|
|
50181
50181
|
formValues = form.getFieldsValue(true);
|
|
50182
|
-
submitValues = _objectSpread$
|
|
50182
|
+
submitValues = _objectSpread$1t({}, formValues);
|
|
50183
50183
|
delete submitValues.contentMode;
|
|
50184
|
-
normalizedValues = formValues.contentMode === 'rich' ? _objectSpread$
|
|
50184
|
+
normalizedValues = formValues.contentMode === 'rich' ? _objectSpread$1t(_objectSpread$1t({}, submitValues), {}, {
|
|
50185
50185
|
content: undefined
|
|
50186
|
-
}) : _objectSpread$
|
|
50186
|
+
}) : _objectSpread$1t(_objectSpread$1t({}, submitValues), {}, {
|
|
50187
50187
|
contentItem: undefined
|
|
50188
50188
|
});
|
|
50189
50189
|
_context2.prev = 5;
|
|
@@ -50199,7 +50199,7 @@ function NotificationDetails$1(_ref, ref) {
|
|
|
50199
50199
|
_context2.next = 10;
|
|
50200
50200
|
return processFormMediaBeforeSave(normalizedValues.contentItem, richContentItems, root);
|
|
50201
50201
|
case 10:
|
|
50202
|
-
currentData = _objectSpread$
|
|
50202
|
+
currentData = _objectSpread$1t({}, data);
|
|
50203
50203
|
delete currentData.contentMode;
|
|
50204
50204
|
_context2.next = 14;
|
|
50205
50205
|
return onSave(normalizedValues, currentData);
|
|
@@ -50279,7 +50279,7 @@ function NotificationDetails$1(_ref, ref) {
|
|
|
50279
50279
|
}), /*#__PURE__*/jsx(Form$2.Item, {
|
|
50280
50280
|
name: "organizationIds",
|
|
50281
50281
|
label: t('backoffice.notifications.form.organizationIds'),
|
|
50282
|
-
rules: [_objectSpread$
|
|
50282
|
+
rules: [_objectSpread$1t(_objectSpread$1t({}, requiredRule), {}, {
|
|
50283
50283
|
required: scope === 'organization' ? true : false
|
|
50284
50284
|
})],
|
|
50285
50285
|
children: /*#__PURE__*/jsx(LookupSelect, {
|
|
@@ -51434,8 +51434,8 @@ var select$2 = "select-jVMz-";
|
|
|
51434
51434
|
var css_248z$C = ".wrapper-IcNC5 {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-jVMz- {\n z-index: 1000;\n flex: 1;\n max-width: calc(100% - 48px);\n}\n";
|
|
51435
51435
|
styleInject(css_248z$C);
|
|
51436
51436
|
|
|
51437
|
-
function ownKeys$
|
|
51438
|
-
function _objectSpread$
|
|
51437
|
+
function ownKeys$1s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
51438
|
+
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51439
51439
|
var ArticleSelection = function ArticleSelection(_ref) {
|
|
51440
51440
|
var _ref$state = _ref.state,
|
|
51441
51441
|
itemList = _ref$state.itemList,
|
|
@@ -51478,7 +51478,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
|
51478
51478
|
if (_loop()) continue;
|
|
51479
51479
|
}
|
|
51480
51480
|
return groups.map(function (g) {
|
|
51481
|
-
return _objectSpread$
|
|
51481
|
+
return _objectSpread$1s(_objectSpread$1s({}, g), {}, {
|
|
51482
51482
|
label: t('configuration.group.' + g.label, g.label)
|
|
51483
51483
|
});
|
|
51484
51484
|
});
|
|
@@ -52657,8 +52657,8 @@ var StaleNotice = function StaleNotice(_ref) {
|
|
|
52657
52657
|
};
|
|
52658
52658
|
var StaleNotice$1 = observer(StaleNotice);
|
|
52659
52659
|
|
|
52660
|
-
function ownKeys$
|
|
52661
|
-
function _objectSpread$
|
|
52660
|
+
function ownKeys$1r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52661
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52662
52662
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
52663
52663
|
var _state$item, _tool$parameters, _state$serie, _state$serie2, _state$item2, _tool$parameters2, _state$mask$accountId, _state$mask2, _state$item$typeNo$to, _state$item3, _state$mask$catalogCo, _state$mask3;
|
|
52664
52664
|
var tool = _ref.tool,
|
|
@@ -52756,7 +52756,7 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
52756
52756
|
}), /*#__PURE__*/jsx(WebPlannerReact, {
|
|
52757
52757
|
analyzerComponents: analyzerComponents,
|
|
52758
52758
|
settings: state.settings,
|
|
52759
|
-
parameters: _objectSpread$
|
|
52759
|
+
parameters: _objectSpread$1r(_objectSpread$1r(_objectSpread$1r(_objectSpread$1r({}, !!state.doNavigate ? {
|
|
52760
52760
|
initMode: 'OPENCONFIGTABGROUP',
|
|
52761
52761
|
opt: state.doNavigate
|
|
52762
52762
|
} : {}), (_tool$parameters2 = tool.parameters) !== null && _tool$parameters2 !== void 0 ? _tool$parameters2 : {}), {}, {
|
|
@@ -53030,8 +53030,8 @@ function ensurePersistentStorage() {
|
|
|
53030
53030
|
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; } } }; }
|
|
53031
53031
|
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; } }
|
|
53032
53032
|
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; }
|
|
53033
|
-
function ownKeys$
|
|
53034
|
-
function _objectSpread$
|
|
53033
|
+
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; }
|
|
53034
|
+
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; }
|
|
53035
53035
|
function putImageBlob(_x, _x2, _x3) {
|
|
53036
53036
|
return _putImageBlob.apply(this, arguments);
|
|
53037
53037
|
}
|
|
@@ -53043,7 +53043,7 @@ function _putImageBlob() {
|
|
|
53043
53043
|
while (1) switch (_context.prev = _context.next) {
|
|
53044
53044
|
case 0:
|
|
53045
53045
|
id = newId('img');
|
|
53046
|
-
record = _objectSpread$
|
|
53046
|
+
record = _objectSpread$1q({
|
|
53047
53047
|
id: id,
|
|
53048
53048
|
blob: blob,
|
|
53049
53049
|
mime: (_ref = mime !== null && mime !== void 0 ? mime : blob.type) !== null && _ref !== void 0 ? _ref : 'image/png',
|
|
@@ -53159,8 +53159,8 @@ function blobToDataUrl(blob) {
|
|
|
53159
53159
|
});
|
|
53160
53160
|
}
|
|
53161
53161
|
|
|
53162
|
-
function ownKeys$
|
|
53163
|
-
function _objectSpread$
|
|
53162
|
+
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; }
|
|
53163
|
+
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; }
|
|
53164
53164
|
var DEFAULT_ASPECT_RATIO$2 = '1:1';
|
|
53165
53165
|
var DEFAULT_IMAGE_SIZE$1 = '1K';
|
|
53166
53166
|
|
|
@@ -53181,7 +53181,7 @@ function coerceSettings(raw, fallbackModel) {
|
|
|
53181
53181
|
};
|
|
53182
53182
|
}
|
|
53183
53183
|
function coerceRecord(raw, fallbackModel) {
|
|
53184
|
-
return _objectSpread$
|
|
53184
|
+
return _objectSpread$1p(_objectSpread$1p({}, raw), {}, {
|
|
53185
53185
|
settings: coerceSettings(raw.settings, fallbackModel)
|
|
53186
53186
|
});
|
|
53187
53187
|
}
|
|
@@ -53271,7 +53271,7 @@ function _updateConversation() {
|
|
|
53271
53271
|
}
|
|
53272
53272
|
return _context3.abrupt("return", undefined);
|
|
53273
53273
|
case 6:
|
|
53274
|
-
next = _objectSpread$
|
|
53274
|
+
next = _objectSpread$1p(_objectSpread$1p(_objectSpread$1p({}, existing), patch), {}, {
|
|
53275
53275
|
settings: (_patch$settings = patch.settings) !== null && _patch$settings !== void 0 ? _patch$settings : existing.settings,
|
|
53276
53276
|
updatedAt: Date.now()
|
|
53277
53277
|
});
|
|
@@ -53321,8 +53321,8 @@ function _deleteConversation() {
|
|
|
53321
53321
|
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; } } }; }
|
|
53322
53322
|
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; } }
|
|
53323
53323
|
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; }
|
|
53324
|
-
function ownKeys$
|
|
53325
|
-
function _objectSpread$
|
|
53324
|
+
function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
53325
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53326
53326
|
function listMessages(_x) {
|
|
53327
53327
|
return _listMessages.apply(this, arguments);
|
|
53328
53328
|
}
|
|
@@ -53409,7 +53409,7 @@ function _putModelMessage() {
|
|
|
53409
53409
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
53410
53410
|
while (1) switch (_context4.prev = _context4.next) {
|
|
53411
53411
|
case 0:
|
|
53412
|
-
record = _objectSpread$
|
|
53412
|
+
record = _objectSpread$1o({
|
|
53413
53413
|
kind: 'model',
|
|
53414
53414
|
id: (_input$id2 = input.id) !== null && _input$id2 !== void 0 ? _input$id2 : newId('msg'),
|
|
53415
53415
|
conversationId: input.conversationId,
|
|
@@ -53462,7 +53462,7 @@ function _patchModelMessage() {
|
|
|
53462
53462
|
}
|
|
53463
53463
|
return _context5.abrupt("return", undefined);
|
|
53464
53464
|
case 6:
|
|
53465
|
-
next = _objectSpread$
|
|
53465
|
+
next = _objectSpread$1o(_objectSpread$1o({}, existing), patch);
|
|
53466
53466
|
_context5.next = 9;
|
|
53467
53467
|
return reqAsPromise(store.put(next));
|
|
53468
53468
|
case 9:
|
|
@@ -53716,8 +53716,8 @@ var messagesRepo = /*#__PURE__*/Object.freeze({
|
|
|
53716
53716
|
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; } } }; }
|
|
53717
53717
|
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; } }
|
|
53718
53718
|
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; }
|
|
53719
|
-
function ownKeys$
|
|
53720
|
-
function _objectSpread$
|
|
53719
|
+
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; }
|
|
53720
|
+
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; }
|
|
53721
53721
|
/** Upper bound for the recent-references picker; mirrors the previous localStorage cap. */
|
|
53722
53722
|
var MAX_REFERENCE_RECORDS = 5;
|
|
53723
53723
|
function listReferences() {
|
|
@@ -53771,7 +53771,7 @@ function _addReference() {
|
|
|
53771
53771
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
53772
53772
|
while (1) switch (_context3.prev = _context3.next) {
|
|
53773
53773
|
case 0:
|
|
53774
|
-
record = _objectSpread$
|
|
53774
|
+
record = _objectSpread$1n({
|
|
53775
53775
|
id: (_input$id = input.id) !== null && _input$id !== void 0 ? _input$id : newId('ref'),
|
|
53776
53776
|
imageId: input.imageId,
|
|
53777
53777
|
createdAt: (_input$createdAt = input.createdAt) !== null && _input$createdAt !== void 0 ? _input$createdAt : Date.now()
|
|
@@ -53974,8 +53974,8 @@ function evictDownToCapacity() {
|
|
|
53974
53974
|
}
|
|
53975
53975
|
}
|
|
53976
53976
|
|
|
53977
|
-
function ownKeys$
|
|
53978
|
-
function _objectSpread$
|
|
53977
|
+
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; }
|
|
53978
|
+
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; }
|
|
53979
53979
|
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; } } }; }
|
|
53980
53980
|
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; } }
|
|
53981
53981
|
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; }
|
|
@@ -54214,7 +54214,7 @@ function _generateImage() {
|
|
|
54214
54214
|
Authorization: "Bearer ".concat(access.jwt),
|
|
54215
54215
|
'Content-Type': 'application/json'
|
|
54216
54216
|
},
|
|
54217
|
-
body: JSON.stringify(_objectSpread$
|
|
54217
|
+
body: JSON.stringify(_objectSpread$1m({
|
|
54218
54218
|
useCase: PROMPT_TESTER_USE_CASE,
|
|
54219
54219
|
prompt: prompt,
|
|
54220
54220
|
images: images,
|
|
@@ -55658,8 +55658,8 @@ function usePreservePromptTemplate() {
|
|
|
55658
55658
|
};
|
|
55659
55659
|
}
|
|
55660
55660
|
|
|
55661
|
-
function ownKeys$
|
|
55662
|
-
function _objectSpread$
|
|
55661
|
+
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; }
|
|
55662
|
+
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; }
|
|
55663
55663
|
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; } } }; }
|
|
55664
55664
|
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; } }
|
|
55665
55665
|
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; }
|
|
@@ -56087,7 +56087,7 @@ function useAiChat(openFullscreen) {
|
|
|
56087
56087
|
}
|
|
56088
56088
|
return _context8.abrupt("return");
|
|
56089
56089
|
case 2:
|
|
56090
|
-
next = _objectSpread$
|
|
56090
|
+
next = _objectSpread$1l(_objectSpread$1l({}, activeConversation.settings), patch);
|
|
56091
56091
|
_context8.next = 5;
|
|
56092
56092
|
return updateConversation(activeConversation.id, {
|
|
56093
56093
|
settings: next
|
|
@@ -56849,7 +56849,7 @@ function _toMessageView() {
|
|
|
56849
56849
|
}));
|
|
56850
56850
|
case 3:
|
|
56851
56851
|
urls = _context19.sent;
|
|
56852
|
-
return _context19.abrupt("return", _objectSpread$
|
|
56852
|
+
return _context19.abrupt("return", _objectSpread$1l(_objectSpread$1l({}, record), {}, {
|
|
56853
56853
|
uploadedImageUrls: urls.filter(function (u) {
|
|
56854
56854
|
return !!u;
|
|
56855
56855
|
})
|
|
@@ -56896,7 +56896,7 @@ function _toMessageView() {
|
|
|
56896
56896
|
present = resolved.filter(function (r) {
|
|
56897
56897
|
return !!r;
|
|
56898
56898
|
});
|
|
56899
|
-
return _context19.abrupt("return", _objectSpread$
|
|
56899
|
+
return _context19.abrupt("return", _objectSpread$1l(_objectSpread$1l({}, record), {}, {
|
|
56900
56900
|
imageUrls: present.map(function (r) {
|
|
56901
56901
|
return r.url;
|
|
56902
56902
|
}),
|
|
@@ -57134,8 +57134,8 @@ var empty$3 = "empty-ehsiR";
|
|
|
57134
57134
|
var css_248z$x = ".wrapper-mF80Z {\n height: 100%;\n min-height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n\n.empty-ehsiR {\n padding: 16px;\n}\n";
|
|
57135
57135
|
styleInject(css_248z$x);
|
|
57136
57136
|
|
|
57137
|
-
function ownKeys$
|
|
57138
|
-
function _objectSpread$
|
|
57137
|
+
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; }
|
|
57138
|
+
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; }
|
|
57139
57139
|
|
|
57140
57140
|
/** What the toolset acts on: the catalog or package a view is bound to, and that view's serie/item selection and setters. */
|
|
57141
57141
|
|
|
@@ -57428,7 +57428,7 @@ function createBackofficeToolset(ctx) {
|
|
|
57428
57428
|
series = _context2.sent;
|
|
57429
57429
|
// An empty list is ambiguous — a catalog without series looks like an instance with no binding to ask.
|
|
57430
57430
|
unbound = !(bound !== null && bound !== void 0 && bound.parameters.catalogId) && !(bound !== null && bound !== void 0 && bound.parameters.packageId);
|
|
57431
|
-
return _context2.abrupt("return", _objectSpread$
|
|
57431
|
+
return _context2.abrupt("return", _objectSpread$1k({
|
|
57432
57432
|
selectedSerieNo: (_bound$elementProps$s3 = bound === null || bound === void 0 || (_bound$elementProps$s4 = bound.elementProps.serie) === null || _bound$elementProps$s4 === void 0 ? void 0 : _bound$elementProps$s4.serieNo) !== null && _bound$elementProps$s3 !== void 0 ? _bound$elementProps$s3 : null,
|
|
57433
57433
|
selectedItemTypeNo: (_bound$elementProps$i3 = bound === null || bound === void 0 || (_bound$elementProps$i4 = bound.elementProps.item) === null || _bound$elementProps$i4 === void 0 ? void 0 : _bound$elementProps$i4.typeNo) !== null && _bound$elementProps$i3 !== void 0 ? _bound$elementProps$i3 : null,
|
|
57434
57434
|
series: series.map(function (serie) {
|
|
@@ -57466,7 +57466,7 @@ function createBackofficeToolset(ctx) {
|
|
|
57466
57466
|
}).join(', ')));
|
|
57467
57467
|
case 20:
|
|
57468
57468
|
// Pass the FULL serie record: editor views read `_id`, the planner reads `serieId`.
|
|
57469
|
-
onSerieChange(_objectSpread$
|
|
57469
|
+
onSerieChange(_objectSpread$1k(_objectSpread$1k({}, target), {}, {
|
|
57470
57470
|
serieId: target._id
|
|
57471
57471
|
}));
|
|
57472
57472
|
// The setter's effect is not observable from here — this call can only report what it REQUESTED.
|
|
@@ -57583,8 +57583,8 @@ var ContentItemPreview = observer(function () {
|
|
|
57583
57583
|
});
|
|
57584
57584
|
});
|
|
57585
57585
|
|
|
57586
|
-
function ownKeys$
|
|
57587
|
-
function _objectSpread$
|
|
57586
|
+
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
57587
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57588
57588
|
|
|
57589
57589
|
/**
|
|
57590
57590
|
* Content-item toolset: CRUD over the catalog service's /contentItems — the CMS records that
|
|
@@ -57951,7 +57951,7 @@ function createContentToolset(ctx) {
|
|
|
57951
57951
|
var _item$codex3, _item$description2;
|
|
57952
57952
|
return "".concat((_item$codex3 = item === null || item === void 0 ? void 0 : item.codex) !== null && _item$codex3 !== void 0 ? _item$codex3 : '', " ").concat((_item$description2 = item === null || item === void 0 ? void 0 : item.description) !== null && _item$description2 !== void 0 ? _item$description2 : '').toLowerCase().includes(q);
|
|
57953
57953
|
}) : items;
|
|
57954
|
-
return _context5.abrupt("return", _objectSpread$
|
|
57954
|
+
return _context5.abrupt("return", _objectSpread$1j(_objectSpread$1j({
|
|
57955
57955
|
total: items.length
|
|
57956
57956
|
}, q ? {
|
|
57957
57957
|
query: q,
|
|
@@ -57984,7 +57984,7 @@ function createContentToolset(ctx) {
|
|
|
57984
57984
|
error: "No content item '".concat(idOrCodex, "' \u2014 listContentItems shows what exists.")
|
|
57985
57985
|
});
|
|
57986
57986
|
case 19:
|
|
57987
|
-
return _context5.abrupt("return", _objectSpread$
|
|
57987
|
+
return _context5.abrupt("return", _objectSpread$1j(_objectSpread$1j({}, summarize(item)), {}, {
|
|
57988
57988
|
content: (_item$content = item.content) !== null && _item$content !== void 0 ? _item$content : []
|
|
57989
57989
|
}));
|
|
57990
57990
|
case 20:
|
|
@@ -58038,7 +58038,7 @@ function createContentToolset(ctx) {
|
|
|
58038
58038
|
created = _context5.sent;
|
|
58039
58039
|
refreshLibraryGrid();
|
|
58040
58040
|
previewNote = created !== null && created !== void 0 && created._id ? showItemInPreview(String(created._id)) : '';
|
|
58041
|
-
return _context5.abrupt("return", _objectSpread$
|
|
58041
|
+
return _context5.abrupt("return", _objectSpread$1j(_objectSpread$1j({}, summarize(created)), {}, {
|
|
58042
58042
|
note: "Content item created and shown to the user \u2014 ".concat(previewNote, " It is UNUSED until a property references it: set a CONTENT_ITEM / GROUP_CONTENT_ITEM property value to the codex (or _id), or a CONTENT_ITEM_TEASER JSON with id = this contentItemId (stageTableEdits on the properties view; the user approves there).")
|
|
58043
58043
|
}));
|
|
58044
58044
|
case 40:
|
|
@@ -58187,7 +58187,7 @@ function createContentToolset(ctx) {
|
|
|
58187
58187
|
// The item is usually the one already on screen, so selecting it changes nothing the preview keys on.
|
|
58188
58188
|
refreshContentItemPreview(root);
|
|
58189
58189
|
_previewNote2 = showItemInPreview(String(_existing._id));
|
|
58190
|
-
return _context5.abrupt("return", _objectSpread$
|
|
58190
|
+
return _context5.abrupt("return", _objectSpread$1j(_objectSpread$1j({}, summarize(updated !== null && updated !== void 0 ? updated : _existing)), {}, {
|
|
58191
58191
|
applied: true,
|
|
58192
58192
|
note: "Content item updated and shown to the user \u2014 ".concat(_previewNote2, " Referencing properties render the new content on their next load; if the codex changed, update every property value that used the old codex.")
|
|
58193
58193
|
}));
|
|
@@ -58560,8 +58560,8 @@ function symbolMarkup(name, cxCm, cyCm, sizeCm, paint, rotateDeg) {
|
|
|
58560
58560
|
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; } } }; }
|
|
58561
58561
|
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; } }
|
|
58562
58562
|
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; }
|
|
58563
|
-
function ownKeys$
|
|
58564
|
-
function _objectSpread$
|
|
58563
|
+
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
58564
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58565
58565
|
var PART_ROLES = ['body', 'arm', 'back', 'seatCushion', 'backCushion', 'seam', 'headboard', 'bedDetail', 'functionFootprint', 'label'];
|
|
58566
58566
|
|
|
58567
58567
|
/** Derived from PART_ROLES so the list and the union cannot drift apart. */
|
|
@@ -58822,8 +58822,8 @@ var mergePart = function mergePart(target, patch) {
|
|
|
58822
58822
|
/** Merge a stored style config with inline overrides: top-level fields are replaced, `parts` is merged by role (an inline role replaces the stored one). */
|
|
58823
58823
|
function mergeArticleSvgStyles(stored, inline) {
|
|
58824
58824
|
if (!inline) return stored;
|
|
58825
|
-
var merged = _objectSpread$
|
|
58826
|
-
if (stored.parts || inline.parts) merged.parts = _objectSpread$
|
|
58825
|
+
var merged = _objectSpread$1i(_objectSpread$1i({}, stored), inline);
|
|
58826
|
+
if (stored.parts || inline.parts) merged.parts = _objectSpread$1i(_objectSpread$1i({}, stored.parts), inline.parts);
|
|
58827
58827
|
return merged;
|
|
58828
58828
|
}
|
|
58829
58829
|
|
|
@@ -58837,7 +58837,7 @@ function resolveArticleSvgStyle(styleInput, legacy) {
|
|
|
58837
58837
|
if (styleInput !== undefined && styleInput !== null && typeof styleInput !== 'string' && (_typeof(styleInput) !== 'object' || Array.isArray(styleInput))) {
|
|
58838
58838
|
throw new Error("style must be a preset name (".concat(STYLE_PRESETS.join(', '), ") or a style config object."));
|
|
58839
58839
|
}
|
|
58840
|
-
var style = typeof styleInput === 'string' ? {} : _objectSpread$
|
|
58840
|
+
var style = typeof styleInput === 'string' ? {} : _objectSpread$1i({}, styleInput !== null && styleInput !== void 0 ? styleInput : {});
|
|
58841
58841
|
var presetInput = typeof styleInput === 'string' ? styleInput : style.preset;
|
|
58842
58842
|
var presetName = (_canonOption = canonOption(presetInput, STYLE_PRESETS, 'style preset')) !== null && _canonOption !== void 0 ? _canonOption : 'classic';
|
|
58843
58843
|
var preset = PRESETS[presetName];
|
|
@@ -58966,7 +58966,7 @@ function resolveArticleSvgStyle(styleInput, legacy) {
|
|
|
58966
58966
|
['x', 'y', 'sizeCm', 'rotateDeg', 'strokeWidthCm'].forEach(function (field) {
|
|
58967
58967
|
return numberField(placement[field], "symbols[".concat(index, "].").concat(field));
|
|
58968
58968
|
});
|
|
58969
|
-
return _objectSpread$
|
|
58969
|
+
return _objectSpread$1i(_objectSpread$1i({}, placement), {}, {
|
|
58970
58970
|
symbol: symbol
|
|
58971
58971
|
});
|
|
58972
58972
|
});
|
|
@@ -58986,7 +58986,7 @@ function resolveArticleSvgStyle(styleInput, legacy) {
|
|
|
58986
58986
|
if (typeof stop.color !== 'string' || !stop.color) throw new Error("Gradient '".concat(id, "' stop ").concat(index, " needs a 'color' string."));
|
|
58987
58987
|
numberField(stop.offset, "gradients['".concat(id, "'].stops[").concat(index, "].offset"));
|
|
58988
58988
|
});
|
|
58989
|
-
return _objectSpread$
|
|
58989
|
+
return _objectSpread$1i(_objectSpread$1i({}, gradient), {}, {
|
|
58990
58990
|
id: id,
|
|
58991
58991
|
stops: stops
|
|
58992
58992
|
});
|
|
@@ -59205,8 +59205,8 @@ var clampedHalfSpan = function clampedHalfSpan(span, inset) {
|
|
|
59205
59205
|
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; } } }; }
|
|
59206
59206
|
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; } }
|
|
59207
59207
|
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; }
|
|
59208
|
-
function ownKeys$
|
|
59209
|
-
function _objectSpread$
|
|
59208
|
+
function ownKeys$1h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59209
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59210
59210
|
function requirePositive(name, value, fallback) {
|
|
59211
59211
|
var resolved = value === undefined ? fallback : Number(value);
|
|
59212
59212
|
if (resolved === undefined || !Number.isFinite(resolved) || resolved <= 0) {
|
|
@@ -59477,7 +59477,7 @@ function buildSofa(state) {
|
|
|
59477
59477
|
state.warnings.push("".concat(connector.type, ": expanded to ").concat(seats, " connectors (one per ").concat(per === 'front' ? 'seat-cushion FRONT edge' : "".concat(per, " cushion"), ", numbered 1..").concat(seats, ")."));
|
|
59478
59478
|
}
|
|
59479
59479
|
return cushionCenters.map(function (center, i) {
|
|
59480
|
-
return _objectSpread$
|
|
59480
|
+
return _objectSpread$1h(_objectSpread$1h({}, connector), {}, {
|
|
59481
59481
|
position: center / widthCm,
|
|
59482
59482
|
positionY: positionY,
|
|
59483
59483
|
number: i + 1
|
|
@@ -59668,14 +59668,14 @@ function buildLongchair(state) {
|
|
|
59668
59668
|
state.warnings.push("".concat(connector.type, ": expanded to ").concat(seats, " connectors (one per back cushion, numbered 1..").concat(seats, ")."));
|
|
59669
59669
|
}
|
|
59670
59670
|
return backCenters.map(function (center, i) {
|
|
59671
|
-
return _objectSpread$
|
|
59671
|
+
return _objectSpread$1h(_objectSpread$1h({}, connector), {}, {
|
|
59672
59672
|
position: center / widthCm,
|
|
59673
59673
|
positionY: backDepth / 2 / depthCm,
|
|
59674
59674
|
number: i + 1
|
|
59675
59675
|
});
|
|
59676
59676
|
});
|
|
59677
59677
|
}
|
|
59678
|
-
return [_objectSpread$
|
|
59678
|
+
return [_objectSpread$1h(_objectSpread$1h({}, connector), {}, {
|
|
59679
59679
|
position: (innerX + innerR) / 2 / widthCm,
|
|
59680
59680
|
positionY: (backDepth + depthCm) / 2 / depthCm,
|
|
59681
59681
|
number: 1
|
|
@@ -59841,7 +59841,7 @@ function buildCornerElement(state) {
|
|
|
59841
59841
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
59842
59842
|
x = _ref2[0],
|
|
59843
59843
|
y = _ref2[1];
|
|
59844
|
-
return _objectSpread$
|
|
59844
|
+
return _objectSpread$1h(_objectSpread$1h({}, connector), {}, {
|
|
59845
59845
|
position: x / widthCm,
|
|
59846
59846
|
positionY: y / depthCm,
|
|
59847
59847
|
number: i + 1,
|
|
@@ -59854,7 +59854,7 @@ function buildCornerElement(state) {
|
|
|
59854
59854
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
59855
59855
|
x = _ref4[0],
|
|
59856
59856
|
y = _ref4[1];
|
|
59857
|
-
return _objectSpread$
|
|
59857
|
+
return _objectSpread$1h(_objectSpread$1h({}, connector), {}, {
|
|
59858
59858
|
position: x / widthCm,
|
|
59859
59859
|
positionY: y / depthCm,
|
|
59860
59860
|
number: i + 1
|
|
@@ -60091,8 +60091,8 @@ function buildBed(state) {
|
|
|
60091
60091
|
}
|
|
60092
60092
|
}
|
|
60093
60093
|
|
|
60094
|
-
function ownKeys$
|
|
60095
|
-
function _objectSpread$
|
|
60094
|
+
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; }
|
|
60095
|
+
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; }
|
|
60096
60096
|
|
|
60097
60097
|
/**
|
|
60098
60098
|
* A named, reusable parameter set over a base template (Daybed, portrait Abschluss, …).
|
|
@@ -60114,7 +60114,7 @@ var BUILT_IN_RECIPES = {
|
|
|
60114
60114
|
|
|
60115
60115
|
/** Recipe defaults under the caller's fields — the call always wins, field by field. */
|
|
60116
60116
|
function applyRecipeToSpec(recipe, spec) {
|
|
60117
|
-
return _objectSpread$
|
|
60117
|
+
return _objectSpread$1g(_objectSpread$1g({}, recipe.spec), spec);
|
|
60118
60118
|
}
|
|
60119
60119
|
|
|
60120
60120
|
/** Shape check for inline/fetched recipes — a bare spec object without `spec` is rejected loudly. */
|
|
@@ -60440,8 +60440,8 @@ function defsMarkup(state) {
|
|
|
60440
60440
|
return "<defs>".concat(defs, "</defs>");
|
|
60441
60441
|
}
|
|
60442
60442
|
|
|
60443
|
-
function ownKeys$
|
|
60444
|
-
function _objectSpread$
|
|
60443
|
+
function ownKeys$1f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
60444
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
60445
60445
|
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; } } }; }
|
|
60446
60446
|
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; } }
|
|
60447
60447
|
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; }
|
|
@@ -60666,7 +60666,7 @@ function parseActionsCellValue(values) {
|
|
|
60666
60666
|
}
|
|
60667
60667
|
/** Validate and serialize; used by the form and list display. */
|
|
60668
60668
|
function serializeAction(action) {
|
|
60669
|
-
var a = _objectSpread$
|
|
60669
|
+
var a = _objectSpread$1f({}, action);
|
|
60670
60670
|
if (!isActionType(a.actionType)) {
|
|
60671
60671
|
return {
|
|
60672
60672
|
ok: false,
|
|
@@ -60680,7 +60680,7 @@ function serializeAction(action) {
|
|
|
60680
60680
|
ok: false,
|
|
60681
60681
|
reason: 'invalid_main_value'
|
|
60682
60682
|
};
|
|
60683
|
-
var base = _objectSpread$
|
|
60683
|
+
var base = _objectSpread$1f(_objectSpread$1f({}, a), {}, {
|
|
60684
60684
|
decisionNo: d,
|
|
60685
60685
|
featureNo: undefined,
|
|
60686
60686
|
messageNo: undefined
|
|
@@ -60787,8 +60787,8 @@ function actionDisplayString(action) {
|
|
|
60787
60787
|
return r.ok ? r.value : '';
|
|
60788
60788
|
}
|
|
60789
60789
|
|
|
60790
|
-
function ownKeys$
|
|
60791
|
-
function _objectSpread$
|
|
60790
|
+
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; }
|
|
60791
|
+
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; }
|
|
60792
60792
|
/**
|
|
60793
60793
|
* Serialize / parse optionsSetRefs cell strings to match idm-model Util/Converter.cs
|
|
60794
60794
|
* (ConvertOptionsSetRef + ConvertOptionsSetRefFromDto).
|
|
@@ -60905,7 +60905,7 @@ function parseOptionsSetRefString(contentOSR) {
|
|
|
60905
60905
|
refLevel = leveled.refLevel;
|
|
60906
60906
|
var attachRef = function attachRef(v) {
|
|
60907
60907
|
if (refLevel !== undefined && refLevel !== 3) {
|
|
60908
|
-
return _objectSpread$
|
|
60908
|
+
return _objectSpread$1e(_objectSpread$1e({}, v), {}, {
|
|
60909
60909
|
refLevel: refLevel
|
|
60910
60910
|
});
|
|
60911
60911
|
}
|
|
@@ -61196,8 +61196,8 @@ function describeOptionsSetRef(feature, contentOSR) {
|
|
|
61196
61196
|
}
|
|
61197
61197
|
}
|
|
61198
61198
|
|
|
61199
|
-
function ownKeys$
|
|
61200
|
-
function _objectSpread$
|
|
61199
|
+
function ownKeys$1d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
61200
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61201
61201
|
/**
|
|
61202
61202
|
* Pure mutation helpers for the serie-scoped price-factor maps on a pricelist record, shared by the
|
|
61203
61203
|
* PriceFactor modal and the agent's table actions so both prune the same way: an empty value drops
|
|
@@ -61241,13 +61241,13 @@ function applyPriceFactor(pricelist, serieNo, scope, key, value) {
|
|
|
61241
61241
|
var discountField = PRICE_FACTOR_DISCOUNT_FIELDS[scope];
|
|
61242
61242
|
// A pricelist that never had flags gets none, so a plain factor change stays a single-field patch
|
|
61243
61243
|
if (isDiscount.length === 0 && pricelist[discountField] === undefined) return patch;
|
|
61244
|
-
return _objectSpread$
|
|
61244
|
+
return _objectSpread$1d(_objectSpread$1d({}, patch), applyToFactorMap(pricelist, discountField, serieNo, scope, key, isDiscount));
|
|
61245
61245
|
}
|
|
61246
61246
|
|
|
61247
61247
|
/** Sets or, with an empty `value`, prunes the entry of a scope/key on a serie in one serie-scoped map field. */
|
|
61248
61248
|
function applyToFactorMap(pricelist, field, serieNo, scope, key, value) {
|
|
61249
61249
|
if (scope === 'serie') {
|
|
61250
|
-
var _newFactors = _objectSpread$
|
|
61250
|
+
var _newFactors = _objectSpread$1d({}, pricelist[field]);
|
|
61251
61251
|
if (value.length === 0) {
|
|
61252
61252
|
delete _newFactors[serieNo];
|
|
61253
61253
|
if (Object.keys(_newFactors).length === 0) {
|
|
@@ -61261,8 +61261,8 @@ function applyToFactorMap(pricelist, field, serieNo, scope, key, value) {
|
|
|
61261
61261
|
if (!key) {
|
|
61262
61262
|
throw new Error("Price factor scope '".concat(scope, "' requires a key."));
|
|
61263
61263
|
}
|
|
61264
|
-
var newFactors = _objectSpread$
|
|
61265
|
-
var serieFactors = _objectSpread$
|
|
61264
|
+
var newFactors = _objectSpread$1d({}, pricelist[field]);
|
|
61265
|
+
var serieFactors = _objectSpread$1d({}, newFactors[serieNo]);
|
|
61266
61266
|
if (value.length === 0) {
|
|
61267
61267
|
delete serieFactors[key];
|
|
61268
61268
|
if (Object.keys(serieFactors).length === 0) {
|
|
@@ -61287,7 +61287,7 @@ function applyPriceFactorPriority(pricelist, serieNo, scope, key, priority) {
|
|
|
61287
61287
|
if (!field) {
|
|
61288
61288
|
throw new Error("Price factor scope '".concat(scope, "' has no priority flag (only priceFeatureGroup and priceGroup do)."));
|
|
61289
61289
|
}
|
|
61290
|
-
var newPriority = _objectSpread$
|
|
61290
|
+
var newPriority = _objectSpread$1d({}, pricelist[field]);
|
|
61291
61291
|
var seriesPriority = new Set((_newPriority$serieNo = newPriority[serieNo]) !== null && _newPriority$serieNo !== void 0 ? _newPriority$serieNo : []);
|
|
61292
61292
|
if (priority) {
|
|
61293
61293
|
seriesPriority.add(key);
|
|
@@ -61304,8 +61304,8 @@ function applyPriceFactorPriority(pricelist, serieNo, scope, key, priority) {
|
|
|
61304
61304
|
return _defineProperty({}, field, newPriority);
|
|
61305
61305
|
}
|
|
61306
61306
|
|
|
61307
|
-
function ownKeys$
|
|
61308
|
-
function _objectSpread$
|
|
61307
|
+
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; }
|
|
61308
|
+
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; }
|
|
61309
61309
|
/**
|
|
61310
61310
|
* Whether the tables may be built for this catalog: the IDM version (`major`) decides which fields they read and
|
|
61311
61311
|
* write, so a catalog record without it must not be edited yet.
|
|
@@ -61319,7 +61319,7 @@ function catalogVersionKnown(catalog) {
|
|
|
61319
61319
|
* (idm-service `CatalogController.Get`), so a loaded record without a version is a 3.0 catalog.
|
|
61320
61320
|
*/
|
|
61321
61321
|
function withIdmVersion(record) {
|
|
61322
|
-
return catalogVersionKnown(record) ? record : _objectSpread$
|
|
61322
|
+
return catalogVersionKnown(record) ? record : _objectSpread$1c(_objectSpread$1c({}, record), {}, {
|
|
61323
61323
|
major: 3
|
|
61324
61324
|
});
|
|
61325
61325
|
}
|
|
@@ -61334,8 +61334,8 @@ function shouldReplaceCatalogRecord(current, incoming) {
|
|
|
61334
61334
|
return (current === null || current === void 0 ? void 0 : current.name) !== incoming.name || JSON.stringify(current === null || current === void 0 ? void 0 : current.isoLanguageIds) !== JSON.stringify(incoming.isoLanguageIds) || (current === null || current === void 0 ? void 0 : current.major) !== incoming.major;
|
|
61335
61335
|
}
|
|
61336
61336
|
|
|
61337
|
-
function ownKeys$
|
|
61338
|
-
function _objectSpread$
|
|
61337
|
+
function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
61338
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61339
61339
|
var LOG$7 = getLogger('Backoffice', 'IDMCatalogContext');
|
|
61340
61340
|
|
|
61341
61341
|
/** Pending catalog record loads by id: every consumer of the context runs the load effect, one request serves them all. */
|
|
@@ -61389,14 +61389,14 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
61389
61389
|
loading: loading,
|
|
61390
61390
|
setOptions: function setOptions(options) {
|
|
61391
61391
|
var state = root.contextStore.getContext('catalog');
|
|
61392
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
61392
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$1b(_objectSpread$1b({}, state[stateKey]), {}, {
|
|
61393
61393
|
options: options,
|
|
61394
61394
|
loading: false
|
|
61395
61395
|
})));
|
|
61396
61396
|
},
|
|
61397
61397
|
setLoading: function setLoading(loading) {
|
|
61398
61398
|
var state = root.contextStore.getContext('catalog');
|
|
61399
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
61399
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$1b(_objectSpread$1b({}, state[stateKey]), {}, {
|
|
61400
61400
|
loading: loading
|
|
61401
61401
|
})));
|
|
61402
61402
|
}
|
|
@@ -61531,7 +61531,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
61531
61531
|
var current = getContext().selectedCatalog;
|
|
61532
61532
|
if ((current === null || current === void 0 ? void 0 : current._id) !== id || catalogVersionKnown(current)) return;
|
|
61533
61533
|
root.contextStore.updateContext('catalog', {
|
|
61534
|
-
selectedCatalog: withIdmVersion(_objectSpread$
|
|
61534
|
+
selectedCatalog: withIdmVersion(_objectSpread$1b(_objectSpread$1b({}, current), record))
|
|
61535
61535
|
});
|
|
61536
61536
|
})["catch"](function (error) {
|
|
61537
61537
|
return LOG$7.warn("Loading catalog '".concat(id, "' failed, its tables stay hidden"), error);
|
|
@@ -61544,7 +61544,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
61544
61544
|
// (backoffice crash on agent/deep-link navigation into a catalog that was never
|
|
61545
61545
|
// row-clicked). Mirror setSelectedCatalog's catalog-change reset; the effect persists it.
|
|
61546
61546
|
var state = getContext();
|
|
61547
|
-
var urlSynced = urlCatalogId && state.catalogId !== urlCatalogId ? _objectSpread$
|
|
61547
|
+
var urlSynced = urlCatalogId && state.catalogId !== urlCatalogId ? _objectSpread$1b(_objectSpread$1b({}, state), {}, {
|
|
61548
61548
|
catalogId: urlCatalogId,
|
|
61549
61549
|
selectedCatalog: {
|
|
61550
61550
|
_id: urlCatalogId
|
|
@@ -61553,7 +61553,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
61553
61553
|
selectedItem: undefined,
|
|
61554
61554
|
selectedFeature: undefined
|
|
61555
61555
|
}) : state;
|
|
61556
|
-
return _objectSpread$
|
|
61556
|
+
return _objectSpread$1b(_objectSpread$1b({}, urlSynced), {}, {
|
|
61557
61557
|
setSelectedSerie: setSelectedSerie,
|
|
61558
61558
|
setSelectedItem: setSelectedItem,
|
|
61559
61559
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -61776,7 +61776,22 @@ function useModule$1 (currentModules) {
|
|
|
61776
61776
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
|
61777
61777
|
}),
|
|
61778
61778
|
title: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
|
61779
|
-
}
|
|
61779
|
+
}].concat(_toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 3 ? [] : [{
|
|
61780
|
+
key: 'pricetypes',
|
|
61781
|
+
style: {
|
|
61782
|
+
margin: 0
|
|
61783
|
+
},
|
|
61784
|
+
icon: /*#__PURE__*/jsx(CashIcon, {}),
|
|
61785
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
61786
|
+
to: 'catalogs/' + catalogId + '/pricetypes' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
61787
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceTypes', {
|
|
61788
|
+
defaultValue: 'Preisarten'
|
|
61789
|
+
})
|
|
61790
|
+
}),
|
|
61791
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceTypes', {
|
|
61792
|
+
defaultValue: 'Preisarten'
|
|
61793
|
+
})
|
|
61794
|
+
}]), [{
|
|
61780
61795
|
key: 'pricefeaturegroups',
|
|
61781
61796
|
style: {
|
|
61782
61797
|
margin: 0
|
|
@@ -61798,8 +61813,8 @@ function useModule$1 (currentModules) {
|
|
|
61798
61813
|
children: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
|
61799
61814
|
}),
|
|
61800
61815
|
title: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
|
61801
|
-
}];
|
|
61802
|
-
}, [catalogId]);
|
|
61816
|
+
}]);
|
|
61817
|
+
}, [catalogId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major]);
|
|
61803
61818
|
if (!catalogId) throw new Error('catalogId is required');
|
|
61804
61819
|
useEffect(function () {
|
|
61805
61820
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
|
@@ -61819,8 +61834,8 @@ function useModule$1 (currentModules) {
|
|
|
61819
61834
|
};
|
|
61820
61835
|
}
|
|
61821
61836
|
|
|
61822
|
-
function ownKeys$
|
|
61823
|
-
function _objectSpread$
|
|
61837
|
+
function ownKeys$1a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
61838
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61824
61839
|
/**
|
|
61825
61840
|
* Creates a column configuration for translated fields in a spreadsheet
|
|
61826
61841
|
*
|
|
@@ -61848,7 +61863,7 @@ function createTranslatedColumnConfig(field, headerName, languages) {
|
|
|
61848
61863
|
acc[key] = "".concat(customParams[key], ".").concat(language);
|
|
61849
61864
|
return acc;
|
|
61850
61865
|
}, {}) : undefined;
|
|
61851
|
-
return maxLength !== undefined ? _objectSpread$
|
|
61866
|
+
return maxLength !== undefined ? _objectSpread$1a(_objectSpread$1a({}, translatedCustomParams), {}, {
|
|
61852
61867
|
maxLength: maxLength
|
|
61853
61868
|
}) : translatedCustomParams;
|
|
61854
61869
|
};
|
|
@@ -62619,8 +62634,8 @@ var getItemTypeKeyInfo = function getItemTypeKeyInfo(t) {
|
|
|
62619
62634
|
}];
|
|
62620
62635
|
};
|
|
62621
62636
|
|
|
62622
|
-
function ownKeys$
|
|
62623
|
-
function _objectSpread$
|
|
62637
|
+
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; }
|
|
62638
|
+
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; }
|
|
62624
62639
|
/**
|
|
62625
62640
|
* Types and access helpers for the goods-group vocabulary (Warengruppen-Programme / Wohnwelten) that idm-service
|
|
62626
62641
|
* joins onto a serie under `goodsGroup` when the `goodsGroup` field is requested.
|
|
@@ -62825,7 +62840,7 @@ function _putGoodsGroupManualByKey() {
|
|
|
62825
62840
|
_context4.next = 2;
|
|
62826
62841
|
return fetch("".concat(ctx.idmService, "/goodsgroups/manual"), {
|
|
62827
62842
|
method: 'PUT',
|
|
62828
|
-
headers: _objectSpread$
|
|
62843
|
+
headers: _objectSpread$19({
|
|
62829
62844
|
'Content-Type': 'application/json'
|
|
62830
62845
|
}, authHeader(ctx)),
|
|
62831
62846
|
body: JSON.stringify(body)
|
|
@@ -62870,7 +62885,7 @@ function _startGoodsGroupRun() {
|
|
|
62870
62885
|
_context5.next = 2;
|
|
62871
62886
|
return fetch("".concat(ctx.idmService, "/goodsgroups/runs"), {
|
|
62872
62887
|
method: 'POST',
|
|
62873
|
-
headers: _objectSpread$
|
|
62888
|
+
headers: _objectSpread$19({
|
|
62874
62889
|
'Content-Type': 'application/json'
|
|
62875
62890
|
}, authHeader(ctx)),
|
|
62876
62891
|
body: JSON.stringify(body)
|
|
@@ -62958,7 +62973,7 @@ function _classifyGoodsGroupItem() {
|
|
|
62958
62973
|
_context7.next = 2;
|
|
62959
62974
|
return fetch("".concat(ctx.idmService, "/goodsgroups/classify-item"), {
|
|
62960
62975
|
method: 'POST',
|
|
62961
|
-
headers: _objectSpread$
|
|
62976
|
+
headers: _objectSpread$19({
|
|
62962
62977
|
'Content-Type': 'application/json'
|
|
62963
62978
|
}, authHeader(ctx)),
|
|
62964
62979
|
body: JSON.stringify(body)
|
|
@@ -63170,9 +63185,96 @@ function useGoodsGroupVocabulary(ctx) {
|
|
|
63170
63185
|
return vocabulary;
|
|
63171
63186
|
}
|
|
63172
63187
|
|
|
63188
|
+
/**
|
|
63189
|
+
* Loads the given fields of every `resource` of the catalog — again when the catalog or the resource changes, or on
|
|
63190
|
+
* reload(). A failed load is reported as `error`, not as an empty list: the flat tables build their condition columns
|
|
63191
|
+
* and cell locks from these rows, and an empty list would render a table that looks complete but is not.
|
|
63192
|
+
*
|
|
63193
|
+
* The JWT is read through a ref and is NOT a reason to load again: it is renewed a few minutes before it expires, and
|
|
63194
|
+
* a reload would take the rows away for as long as it runs — which unmounts the table the rows configure, together
|
|
63195
|
+
* with the edits staged in it and the agent approval waiting on it.
|
|
63196
|
+
*/
|
|
63197
|
+
function useCatalogRows(ctx, resource, fields) {
|
|
63198
|
+
var _useState = useState(),
|
|
63199
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
63200
|
+
rows = _useState2[0],
|
|
63201
|
+
setRows = _useState2[1];
|
|
63202
|
+
var _useState3 = useState(),
|
|
63203
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
63204
|
+
error = _useState4[0],
|
|
63205
|
+
setError = _useState4[1];
|
|
63206
|
+
var _useState5 = useState(0),
|
|
63207
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
63208
|
+
attempt = _useState6[0],
|
|
63209
|
+
setAttempt = _useState6[1];
|
|
63210
|
+
var reload = useCallback(function () {
|
|
63211
|
+
return setAttempt(function (count) {
|
|
63212
|
+
return count + 1;
|
|
63213
|
+
});
|
|
63214
|
+
}, []);
|
|
63215
|
+
var jwtRef = useRef(ctx.jwt);
|
|
63216
|
+
jwtRef.current = ctx.jwt;
|
|
63217
|
+
useEffect(function () {
|
|
63218
|
+
var cancelled = false;
|
|
63219
|
+
setRows(undefined);
|
|
63220
|
+
setError(undefined);
|
|
63221
|
+
if (!ctx.catalogId) return undefined;
|
|
63222
|
+
fetch("".concat(ctx.idmService, "/catalogs/").concat(ctx.catalogId, "/").concat(resource, "?").concat(new URLSearchParams({
|
|
63223
|
+
fields: fields
|
|
63224
|
+
})), {
|
|
63225
|
+
headers: jwtRef.current ? {
|
|
63226
|
+
Authorization: "Bearer ".concat(jwtRef.current)
|
|
63227
|
+
} : undefined
|
|
63228
|
+
}).then(function (response) {
|
|
63229
|
+
if (!response.ok) throw new Error("Failed to load ".concat(resource, " (").concat(response.status, ")"));
|
|
63230
|
+
return response.json();
|
|
63231
|
+
}).then(function (result) {
|
|
63232
|
+
var _result$data;
|
|
63233
|
+
if (!cancelled) setRows((_result$data = result.data) !== null && _result$data !== void 0 ? _result$data : []);
|
|
63234
|
+
})["catch"](function (e) {
|
|
63235
|
+
if (!cancelled) setError(e instanceof Error ? e.message : String(e));
|
|
63236
|
+
});
|
|
63237
|
+
return function () {
|
|
63238
|
+
cancelled = true;
|
|
63239
|
+
};
|
|
63240
|
+
}, [ctx.idmService, ctx.catalogId, resource, fields, attempt]);
|
|
63241
|
+
return {
|
|
63242
|
+
rows: rows,
|
|
63243
|
+
error: error,
|
|
63244
|
+
reload: reload
|
|
63245
|
+
};
|
|
63246
|
+
}
|
|
63247
|
+
|
|
63248
|
+
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; }
|
|
63249
|
+
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; }
|
|
63250
|
+
/**
|
|
63251
|
+
* The price types of an IDM 4 catalog as choices for a price type reference, named in the given language and else by
|
|
63252
|
+
* their number. A catalog of another version has none to choose from: its items keep price type 1.
|
|
63253
|
+
*/
|
|
63254
|
+
function usePriceTypesOfCatalog(ctx) {
|
|
63255
|
+
var _useCatalogRows = useCatalogRows(_objectSpread$18(_objectSpread$18({}, ctx), {}, {
|
|
63256
|
+
catalogId: ctx.major === 4 ? ctx.catalogId : undefined
|
|
63257
|
+
}), 'pricetypes', 'priceTypeNo;priceTypeName;widthX;depthY;heightZ;basicUnit;basicPriceDependent'),
|
|
63258
|
+
rows = _useCatalogRows.rows;
|
|
63259
|
+
var options = useMemo(function () {
|
|
63260
|
+
return (rows !== null && rows !== void 0 ? rows : []).map(function (row) {
|
|
63261
|
+
var _ref, _row$priceTypeName$ct, _row$priceTypeName, _row$priceTypeName2;
|
|
63262
|
+
return {
|
|
63263
|
+
name: (_ref = (_row$priceTypeName$ct = (_row$priceTypeName = row.priceTypeName) === null || _row$priceTypeName === void 0 ? void 0 : _row$priceTypeName[ctx.language.toUpperCase()]) !== null && _row$priceTypeName$ct !== void 0 ? _row$priceTypeName$ct : Object.values((_row$priceTypeName2 = row.priceTypeName) !== null && _row$priceTypeName2 !== void 0 ? _row$priceTypeName2 : {})[0]) !== null && _ref !== void 0 ? _ref : String(row.priceTypeNo),
|
|
63264
|
+
value: row.priceTypeNo
|
|
63265
|
+
};
|
|
63266
|
+
});
|
|
63267
|
+
}, [rows, ctx.language]);
|
|
63268
|
+
return {
|
|
63269
|
+
priceTypes: rows,
|
|
63270
|
+
options: options
|
|
63271
|
+
};
|
|
63272
|
+
}
|
|
63273
|
+
|
|
63173
63274
|
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; }
|
|
63174
63275
|
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; }
|
|
63175
63276
|
var ItemsTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
63277
|
+
var _root$dataStore$jwt;
|
|
63176
63278
|
var organizationId = _ref.organizationId,
|
|
63177
63279
|
selectedCatalog = _ref.selectedCatalog,
|
|
63178
63280
|
apiConfig = _ref.apiConfig,
|
|
@@ -63190,6 +63292,14 @@ var ItemsTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63190
63292
|
idmService: apiConfig.idmService,
|
|
63191
63293
|
jwt: root.dataStore.jwt
|
|
63192
63294
|
});
|
|
63295
|
+
var _usePriceTypesOfCatal = usePriceTypesOfCatalog({
|
|
63296
|
+
idmService: apiConfig.idmService,
|
|
63297
|
+
catalogId: selectedCatalog._id,
|
|
63298
|
+
jwt: (_root$dataStore$jwt = root.dataStore.jwt) !== null && _root$dataStore$jwt !== void 0 ? _root$dataStore$jwt : undefined,
|
|
63299
|
+
major: selectedCatalog.major,
|
|
63300
|
+
language: i18n.language
|
|
63301
|
+
}),
|
|
63302
|
+
priceTypeOptions = _usePriceTypesOfCatal.options;
|
|
63193
63303
|
// Mirrors serieRunActive so the grid's isRunning cellRendererParams callback (below) can read its current
|
|
63194
63304
|
// value without closing over the prop directly - keeps that callback, and in turn the configuration it is
|
|
63195
63305
|
// part of, stable across a serie-run status change instead of forcing a full grid reload every time.
|
|
@@ -63638,6 +63748,17 @@ var ItemsTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63638
63748
|
headerName: 'backoffice.idmCatalogEditor.items.label.minimumPrice',
|
|
63639
63749
|
field: 'minimumPrice',
|
|
63640
63750
|
cellDataType: 'number'
|
|
63751
|
+
}, {
|
|
63752
|
+
// per piece, per metre, per m² ... - the price types are maintained in their own view
|
|
63753
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
63754
|
+
field: 'priceTypeRef',
|
|
63755
|
+
cellDataType: 'enum',
|
|
63756
|
+
required: true,
|
|
63757
|
+
defaultValue: 1,
|
|
63758
|
+
customParams: {
|
|
63759
|
+
enumData: priceTypeOptions,
|
|
63760
|
+
displayLabelTemplate: '${name} (${value})'
|
|
63761
|
+
}
|
|
63641
63762
|
}] : []))
|
|
63642
63763
|
}, {
|
|
63643
63764
|
headerName: 'backoffice.idmCatalog.items.label.configurator',
|
|
@@ -63830,24 +63951,24 @@ var ItemsTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63830
63951
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
63831
63952
|
field: 'lastUpdatedByDisplayText',
|
|
63832
63953
|
editable: false
|
|
63833
|
-
}
|
|
63954
|
+
}].concat(_toConsumableArray((selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4 ? [] : [{
|
|
63834
63955
|
field: 'priceTypeRef',
|
|
63835
63956
|
defaultValue: 1,
|
|
63836
63957
|
editable: false,
|
|
63837
63958
|
hide: true,
|
|
63838
63959
|
lockVisible: true,
|
|
63839
63960
|
suppressColumnsToolPanel: true
|
|
63840
|
-
}, {
|
|
63961
|
+
}]), [{
|
|
63841
63962
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
63842
63963
|
field: '_id',
|
|
63843
63964
|
editable: false,
|
|
63844
63965
|
cellDataType: 'objectId'
|
|
63845
|
-
}]
|
|
63966
|
+
}])
|
|
63846
63967
|
};
|
|
63847
63968
|
// serieRunActive is intentionally not a dep: isRunning above reads it from serieRunActiveRef instead, so a
|
|
63848
63969
|
// serie-run status change doesn't force a full grid reload. The per-click classify spinner does not go
|
|
63849
63970
|
// through configuration/isRunning at all - see ClassifyTrigger's own busy state.
|
|
63850
|
-
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language, goodsGroupVocabulary, onClassifyItem]);
|
|
63971
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major, i18n.language, goodsGroupVocabulary, onClassifyItem, priceTypeOptions]);
|
|
63851
63972
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
63852
63973
|
ref: ref
|
|
63853
63974
|
// refreshToken is appended so a settled serie run (which can reclassify every item) forces a remount
|
|
@@ -73424,66 +73545,6 @@ var TablePartlists = observer(function () {
|
|
|
73424
73545
|
});
|
|
73425
73546
|
});
|
|
73426
73547
|
|
|
73427
|
-
/**
|
|
73428
|
-
* Loads the given fields of every `resource` of the catalog — again when the catalog or the resource changes, or on
|
|
73429
|
-
* reload(). A failed load is reported as `error`, not as an empty list: the flat tables build their condition columns
|
|
73430
|
-
* and cell locks from these rows, and an empty list would render a table that looks complete but is not.
|
|
73431
|
-
*
|
|
73432
|
-
* The JWT is read through a ref and is NOT a reason to load again: it is renewed a few minutes before it expires, and
|
|
73433
|
-
* a reload would take the rows away for as long as it runs — which unmounts the table the rows configure, together
|
|
73434
|
-
* with the edits staged in it and the agent approval waiting on it.
|
|
73435
|
-
*/
|
|
73436
|
-
function useCatalogRows(ctx, resource, fields) {
|
|
73437
|
-
var _useState = useState(),
|
|
73438
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
73439
|
-
rows = _useState2[0],
|
|
73440
|
-
setRows = _useState2[1];
|
|
73441
|
-
var _useState3 = useState(),
|
|
73442
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
73443
|
-
error = _useState4[0],
|
|
73444
|
-
setError = _useState4[1];
|
|
73445
|
-
var _useState5 = useState(0),
|
|
73446
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
73447
|
-
attempt = _useState6[0],
|
|
73448
|
-
setAttempt = _useState6[1];
|
|
73449
|
-
var reload = useCallback(function () {
|
|
73450
|
-
return setAttempt(function (count) {
|
|
73451
|
-
return count + 1;
|
|
73452
|
-
});
|
|
73453
|
-
}, []);
|
|
73454
|
-
var jwtRef = useRef(ctx.jwt);
|
|
73455
|
-
jwtRef.current = ctx.jwt;
|
|
73456
|
-
useEffect(function () {
|
|
73457
|
-
var cancelled = false;
|
|
73458
|
-
setRows(undefined);
|
|
73459
|
-
setError(undefined);
|
|
73460
|
-
if (!ctx.catalogId) return undefined;
|
|
73461
|
-
fetch("".concat(ctx.idmService, "/catalogs/").concat(ctx.catalogId, "/").concat(resource, "?").concat(new URLSearchParams({
|
|
73462
|
-
fields: fields
|
|
73463
|
-
})), {
|
|
73464
|
-
headers: jwtRef.current ? {
|
|
73465
|
-
Authorization: "Bearer ".concat(jwtRef.current)
|
|
73466
|
-
} : undefined
|
|
73467
|
-
}).then(function (response) {
|
|
73468
|
-
if (!response.ok) throw new Error("Failed to load ".concat(resource, " (").concat(response.status, ")"));
|
|
73469
|
-
return response.json();
|
|
73470
|
-
}).then(function (result) {
|
|
73471
|
-
var _result$data;
|
|
73472
|
-
if (!cancelled) setRows((_result$data = result.data) !== null && _result$data !== void 0 ? _result$data : []);
|
|
73473
|
-
})["catch"](function (e) {
|
|
73474
|
-
if (!cancelled) setError(e instanceof Error ? e.message : String(e));
|
|
73475
|
-
});
|
|
73476
|
-
return function () {
|
|
73477
|
-
cancelled = true;
|
|
73478
|
-
};
|
|
73479
|
-
}, [ctx.idmService, ctx.catalogId, resource, fields, attempt]);
|
|
73480
|
-
return {
|
|
73481
|
-
rows: rows,
|
|
73482
|
-
error: error,
|
|
73483
|
-
reload: reload
|
|
73484
|
-
};
|
|
73485
|
-
}
|
|
73486
|
-
|
|
73487
73548
|
/**
|
|
73488
73549
|
* Loads id, key and feature columns of every partlist of the catalog. The flat position table needs them for its
|
|
73489
73550
|
* partlist lookup, its feature columns and the per-row editability of those columns.
|
|
@@ -76744,10 +76805,111 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
|
76744
76805
|
return priceFeatureGroups;
|
|
76745
76806
|
}
|
|
76746
76807
|
|
|
76808
|
+
/** The measures a basic unit or rounding unit is given in: mm, mm² or mm³, depending on the flagged dimensions. */
|
|
76809
|
+
var PRICE_TYPE_UNITS = [0, 1, 10, 100, 1000, 1000000, 1000000000];
|
|
76810
|
+
function enums(t) {
|
|
76811
|
+
return {
|
|
76812
|
+
unit: PRICE_TYPE_UNITS.map(function (value) {
|
|
76813
|
+
return {
|
|
76814
|
+
name: t('backoffice.idmCatalog.general.label.unit.u' + value),
|
|
76815
|
+
value: value
|
|
76816
|
+
};
|
|
76817
|
+
}),
|
|
76818
|
+
roundingType: [1, 2, 3].map(function (value) {
|
|
76819
|
+
return {
|
|
76820
|
+
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r' + value),
|
|
76821
|
+
value: value
|
|
76822
|
+
};
|
|
76823
|
+
})
|
|
76824
|
+
};
|
|
76825
|
+
}
|
|
76826
|
+
|
|
76827
|
+
/**
|
|
76828
|
+
* The columns of an IDM price type (PRICE_TYPE). The catalog's versions grid shows them for the one price type of an
|
|
76829
|
+
* IDM 3 catalog, the price types grid for each price type of an IDM 4 catalog: both name the fields the same way.
|
|
76830
|
+
*
|
|
76831
|
+
* @param nameColumn the column of the translated price type name, which each grid builds for its languages
|
|
76832
|
+
* @param uniqueNo the number names one row of the grid; in the versions grid every version repeats it
|
|
76833
|
+
*/
|
|
76834
|
+
function priceTypeColumns(t, nameColumn, uniqueNo) {
|
|
76835
|
+
var _enums = enums(t),
|
|
76836
|
+
unit = _enums.unit,
|
|
76837
|
+
roundingType = _enums.roundingType;
|
|
76838
|
+
// whether the price depends on the dimension
|
|
76839
|
+
var flag = function flag(field) {
|
|
76840
|
+
return {
|
|
76841
|
+
headerName: 'backoffice.idmCatalog.general.label.' + field,
|
|
76842
|
+
field: field,
|
|
76843
|
+
cellDataType: 'boolean',
|
|
76844
|
+
required: true,
|
|
76845
|
+
defaultValue: false
|
|
76846
|
+
};
|
|
76847
|
+
};
|
|
76848
|
+
var units = function units(field) {
|
|
76849
|
+
return {
|
|
76850
|
+
headerName: 'backoffice.idmCatalog.general.label.' + field,
|
|
76851
|
+
field: field,
|
|
76852
|
+
cellDataType: 'enum',
|
|
76853
|
+
required: true,
|
|
76854
|
+
defaultValue: 0,
|
|
76855
|
+
customParams: {
|
|
76856
|
+
enumData: unit,
|
|
76857
|
+
displayLabelTemplate: '${name} (${value})'
|
|
76858
|
+
}
|
|
76859
|
+
};
|
|
76860
|
+
};
|
|
76861
|
+
return [{
|
|
76862
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeNo',
|
|
76863
|
+
field: 'priceTypeNo',
|
|
76864
|
+
cellDataType: 'number',
|
|
76865
|
+
required: true,
|
|
76866
|
+
unique: uniqueNo
|
|
76867
|
+
}, nameColumn, flag('widthX'), flag('depthY'), flag('heightZ'), units('basicUnit'), {
|
|
76868
|
+
// any step the measure is rounded to, in mm, mm² or mm³ like the measure: the unit names would mislead (100 on a length is 10 cm)
|
|
76869
|
+
headerName: 'backoffice.idmCatalog.general.label.roundingUnit',
|
|
76870
|
+
field: 'roundingUnit',
|
|
76871
|
+
cellDataType: 'number',
|
|
76872
|
+
required: true,
|
|
76873
|
+
defaultValue: 0
|
|
76874
|
+
}, {
|
|
76875
|
+
// the price types grid stores none for a piece price: the server rounds a measure up unless told otherwise
|
|
76876
|
+
headerName: 'backoffice.idmCatalog.general.label.roundingType',
|
|
76877
|
+
field: 'roundingType',
|
|
76878
|
+
cellDataType: 'enum',
|
|
76879
|
+
required: !uniqueNo,
|
|
76880
|
+
defaultValue: uniqueNo ? undefined : 1,
|
|
76881
|
+
customParams: {
|
|
76882
|
+
enumData: roundingType,
|
|
76883
|
+
displayLabelTemplate: '${name} (${value})'
|
|
76884
|
+
}
|
|
76885
|
+
}, {
|
|
76886
|
+
headerName: 'backoffice.idmCatalog.general.label.basicPriceDependent',
|
|
76887
|
+
field: 'basicPriceDependent',
|
|
76888
|
+
cellDataType: 'boolean',
|
|
76889
|
+
required: true,
|
|
76890
|
+
defaultValue: false
|
|
76891
|
+
}, {
|
|
76892
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeFormula',
|
|
76893
|
+
field: 'priceTypeFormula',
|
|
76894
|
+
regex: '^[\\+\\-\\*/\\(\\)bhtBHT]*$'
|
|
76895
|
+
}, {
|
|
76896
|
+
headerName: 'backoffice.idmCatalog.general.label.priceTypeRules',
|
|
76897
|
+
field: 'priceTypeRules',
|
|
76898
|
+
cellDataType: 'array'
|
|
76899
|
+
}];
|
|
76900
|
+
}
|
|
76901
|
+
|
|
76902
|
+
/** A price type prices per length, area or volume when a dimension is flagged and it has a basic unit. */
|
|
76903
|
+
function isMeasurePriceType(priceType) {
|
|
76904
|
+
var _priceType$basicUnit;
|
|
76905
|
+
return ((_priceType$basicUnit = priceType.basicUnit) !== null && _priceType$basicUnit !== void 0 ? _priceType$basicUnit : 0) > 0 && !!(priceType.widthX || priceType.depthY || priceType.heightZ);
|
|
76906
|
+
}
|
|
76907
|
+
|
|
76747
76908
|
var TablePrices = observer(function () {
|
|
76748
76909
|
var _selectedCatalog$name;
|
|
76749
76910
|
var _useTranslation = useTranslation(),
|
|
76750
|
-
t = _useTranslation.t
|
|
76911
|
+
t = _useTranslation.t,
|
|
76912
|
+
i18n = _useTranslation.i18n;
|
|
76751
76913
|
var _useDivaCore = useDivaCore(),
|
|
76752
76914
|
jwt = _useDivaCore.state.jwt;
|
|
76753
76915
|
var _useModule = useModule$1(['prices']),
|
|
@@ -76775,6 +76937,30 @@ var TablePrices = observer(function () {
|
|
|
76775
76937
|
};
|
|
76776
76938
|
}, [organizationId, catalogId, selectedSerie]);
|
|
76777
76939
|
var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
|
|
76940
|
+
var isV4 = (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major) === 4;
|
|
76941
|
+
var _usePriceTypesOfCatal = usePriceTypesOfCatalog({
|
|
76942
|
+
idmService: apiConfig.idmService,
|
|
76943
|
+
catalogId: catalogId,
|
|
76944
|
+
jwt: jwt !== null && jwt !== void 0 ? jwt : undefined,
|
|
76945
|
+
major: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.major,
|
|
76946
|
+
language: i18n.language
|
|
76947
|
+
}),
|
|
76948
|
+
priceTypes = _usePriceTypesOfCatal.priceTypes,
|
|
76949
|
+
priceTypeOptions = _usePriceTypesOfCatal.options;
|
|
76950
|
+
var _useCatalogRows = useCatalogRows({
|
|
76951
|
+
idmService: apiConfig.idmService,
|
|
76952
|
+
catalogId: isV4 ? catalogId : undefined,
|
|
76953
|
+
jwt: jwt !== null && jwt !== void 0 ? jwt : undefined
|
|
76954
|
+
}, 'pricefeaturegroups', 'priceFeatureGroupNo;additionalPrice'),
|
|
76955
|
+
groupKinds = _useCatalogRows.rows;
|
|
76956
|
+
// the measure price columns only matter once the catalog prices something per length, area or volume
|
|
76957
|
+
var measurePriced = !!(priceTypes !== null && priceTypes !== void 0 && priceTypes.some(isMeasurePriceType));
|
|
76958
|
+
var isSurcharge = function isSurcharge(groupId) {
|
|
76959
|
+
var _groupKinds$find;
|
|
76960
|
+
return !!(groupKinds !== null && groupKinds !== void 0 && (_groupKinds$find = groupKinds.find(function (group) {
|
|
76961
|
+
return 'PRFG' + group.priceFeatureGroupNo == groupId;
|
|
76962
|
+
})) !== null && _groupKinds$find !== void 0 && _groupKinds$find.additionalPrice);
|
|
76963
|
+
};
|
|
76778
76964
|
var apiInterface = useMemo(function () {
|
|
76779
76965
|
return {
|
|
76780
76966
|
read: apiConfig.idmService + '/catalogs/${catalogId}/series/${serieId}/prices',
|
|
@@ -76805,12 +76991,28 @@ var TablePrices = observer(function () {
|
|
|
76805
76991
|
editable: false,
|
|
76806
76992
|
cellDataType: 'boolean',
|
|
76807
76993
|
defaultValue: false
|
|
76808
|
-
}].concat(_toConsumableArray(
|
|
76994
|
+
}].concat(_toConsumableArray(measurePriced ? [{
|
|
76995
|
+
// mm, mm² or mm³ of the article's price type, e.g. 1500 for a base price covering the first 1.5 m
|
|
76996
|
+
headerName: t('backoffice.idmCatalog.prices.label.basicPriceUnit', {
|
|
76997
|
+
defaultValue: 'Grundpreiseinheit'
|
|
76998
|
+
}),
|
|
76999
|
+
field: 'basicPriceUnit',
|
|
77000
|
+
editable: true,
|
|
77001
|
+
cellDataType: 'number',
|
|
77002
|
+
// a cleared cell has to reach the server as 0: a missing value keeps the stored unit
|
|
77003
|
+
valueParser: function valueParser(_ref) {
|
|
77004
|
+
var newValue = _ref.newValue,
|
|
77005
|
+
oldValue = _ref.oldValue;
|
|
77006
|
+
if (newValue === undefined || newValue === '') return 0;
|
|
77007
|
+
var unit = Number(newValue);
|
|
77008
|
+
return Number.isFinite(unit) ? unit : oldValue;
|
|
77009
|
+
}
|
|
77010
|
+
}] : []), _toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
76809
77011
|
var _priceFeatureGroup$ke;
|
|
76810
77012
|
return {
|
|
76811
77013
|
headerName: priceFeatureGroup.displayText,
|
|
76812
77014
|
marryChildren: true,
|
|
76813
|
-
children: _toConsumableArray((_priceFeatureGroup$ke = priceFeatureGroup.keys.map(function (key, i) {
|
|
77015
|
+
children: [].concat(_toConsumableArray((_priceFeatureGroup$ke = priceFeatureGroup.keys.map(function (key, i) {
|
|
76814
77016
|
var _priceFeatureGroup$ke2;
|
|
76815
77017
|
return {
|
|
76816
77018
|
headerName: key,
|
|
@@ -76820,7 +77022,31 @@ var TablePrices = observer(function () {
|
|
|
76820
77022
|
cellDataType: 'number',
|
|
76821
77023
|
headerTooltip: (_priceFeatureGroup$ke2 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2[i]
|
|
76822
77024
|
};
|
|
76823
|
-
})) !== null && _priceFeatureGroup$ke !== void 0 ? _priceFeatureGroup$ke : [])
|
|
77025
|
+
})) !== null && _priceFeatureGroup$ke !== void 0 ? _priceFeatureGroup$ke : []), _toConsumableArray(measurePriced && !isSurcharge(priceFeatureGroup.id) ? priceFeatureGroup.keys.map(function (key, i) {
|
|
77026
|
+
var _priceFeatureGroup$ke3;
|
|
77027
|
+
return {
|
|
77028
|
+
// with a basic price dependent price type the base price, otherwise the minimum price
|
|
77029
|
+
headerName: key + ' · ' + t('backoffice.idmCatalog.prices.label.basicPrice', {
|
|
77030
|
+
defaultValue: 'Grund-/Mindestpreis'
|
|
77031
|
+
}),
|
|
77032
|
+
field: "basicPrices.".concat(key),
|
|
77033
|
+
editable: true,
|
|
77034
|
+
isDictionary: true,
|
|
77035
|
+
cellDataType: 'number',
|
|
77036
|
+
headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[i]
|
|
77037
|
+
};
|
|
77038
|
+
}) : []), _toConsumableArray(measurePriced && isSurcharge(priceFeatureGroup.id) ? [{
|
|
77039
|
+
// a surcharge prices like its article unless it is given a price type of its own
|
|
77040
|
+
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
77041
|
+
field: "priceTypeRefs.".concat(priceFeatureGroup.id),
|
|
77042
|
+
editable: true,
|
|
77043
|
+
isDictionary: true,
|
|
77044
|
+
cellDataType: 'enum',
|
|
77045
|
+
customParams: {
|
|
77046
|
+
enumData: priceTypeOptions,
|
|
77047
|
+
displayLabelTemplate: '${name} (${value})'
|
|
77048
|
+
}
|
|
77049
|
+
}] : []))
|
|
76824
77050
|
};
|
|
76825
77051
|
})) !== null && _priceFeatureGroups$m !== void 0 ? _priceFeatureGroups$m : []), [{
|
|
76826
77052
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
@@ -76846,9 +77072,17 @@ var TablePrices = observer(function () {
|
|
|
76846
77072
|
hide: true,
|
|
76847
77073
|
lockVisible: true,
|
|
76848
77074
|
suppressColumnsToolPanel: true
|
|
76849
|
-
}])
|
|
77075
|
+
}], _toConsumableArray(isV4 ? ['basicPrices', 'priceTypeRefs'].map(function (field) {
|
|
77076
|
+
return {
|
|
77077
|
+
field: field,
|
|
77078
|
+
editable: false,
|
|
77079
|
+
hide: true,
|
|
77080
|
+
lockVisible: true,
|
|
77081
|
+
suppressColumnsToolPanel: true
|
|
77082
|
+
};
|
|
77083
|
+
}) : []))
|
|
76850
77084
|
};
|
|
76851
|
-
}, [apiInterface, priceFeatureGroups]);
|
|
77085
|
+
}, [apiInterface, priceFeatureGroups, measurePriced, groupKinds, priceTypeOptions, isV4, t]);
|
|
76852
77086
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
76853
77087
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
76854
77088
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -76902,6 +77136,75 @@ var TablePrices = observer(function () {
|
|
|
76902
77136
|
});
|
|
76903
77137
|
});
|
|
76904
77138
|
|
|
77139
|
+
var TablePriceTypes = observer(function () {
|
|
77140
|
+
var _useTranslation = useTranslation(),
|
|
77141
|
+
t = _useTranslation.t;
|
|
77142
|
+
var _useModule = useModule$1(['pricetypes']),
|
|
77143
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
77144
|
+
catalogId = _useModule.catalogId,
|
|
77145
|
+
organizationId = _useModule.organizationId,
|
|
77146
|
+
apiConfig = _useModule.apiConfig,
|
|
77147
|
+
setSelectedSerie = _useModule.setSelectedSerie,
|
|
77148
|
+
setSelectedItem = _useModule.setSelectedItem,
|
|
77149
|
+
selectedItem = _useModule.selectedItem,
|
|
77150
|
+
selectedSerie = _useModule.selectedSerie;
|
|
77151
|
+
useTools({
|
|
77152
|
+
mainInformationWindowCodex: 'IDM_PRICE_TYPES_TABLE_INFO',
|
|
77153
|
+
catalog: selectedCatalog,
|
|
77154
|
+
setSerie: setSelectedSerie,
|
|
77155
|
+
setArticle: setSelectedItem,
|
|
77156
|
+
item: selectedItem,
|
|
77157
|
+
serie: selectedSerie
|
|
77158
|
+
});
|
|
77159
|
+
var applicationData = useMemo(function () {
|
|
77160
|
+
return {
|
|
77161
|
+
catalogId: catalogId,
|
|
77162
|
+
organizationId: organizationId
|
|
77163
|
+
};
|
|
77164
|
+
}, [catalogId, organizationId]);
|
|
77165
|
+
var configuration = useMemo(function () {
|
|
77166
|
+
return {
|
|
77167
|
+
type: 'dotnetSSM',
|
|
77168
|
+
idCol: 'priceTypeNo',
|
|
77169
|
+
keyFields: ['priceTypeNo'],
|
|
77170
|
+
inUseReview: true,
|
|
77171
|
+
// the grid writes through bulk; create, update and delete only declare the row operations it offers
|
|
77172
|
+
apiInterface: {
|
|
77173
|
+
read: apiConfig.idmService + '/catalogs/${catalogId}/pricetypes',
|
|
77174
|
+
create: apiConfig.idmService + '/catalogs/${catalogId}/pricetypes',
|
|
77175
|
+
update: apiConfig.idmService + '/catalogs/${catalogId}/pricetypes/${priceTypeNo}',
|
|
77176
|
+
"delete": apiConfig.idmService + '/catalogs/${catalogId}/pricetypes/${priceTypeNo}',
|
|
77177
|
+
bulk: apiConfig.idmService + '/catalogs/${catalogId}/pricetypes/bulk'
|
|
77178
|
+
},
|
|
77179
|
+
colDef: priceTypeColumns(t, createTranslatedColumnConfig('priceTypeName', 'backoffice.idmCatalog.general.label.priceTypeName', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), true)
|
|
77180
|
+
};
|
|
77181
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, t]);
|
|
77182
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
77183
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
77184
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
77185
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
|
77186
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTablePriceTypes', {
|
|
77187
|
+
defaultValue: 'Preisarten'
|
|
77188
|
+
}), /*#__PURE__*/jsx(InformationButton, {
|
|
77189
|
+
codex: "IDM_PRICE_TYPES_TABLE_INFO"
|
|
77190
|
+
})]
|
|
77191
|
+
}), /*#__PURE__*/jsx(Space$1, {
|
|
77192
|
+
style: {
|
|
77193
|
+
"float": 'right'
|
|
77194
|
+
},
|
|
77195
|
+
children: /*#__PURE__*/jsx(CatalogSelector$1, {
|
|
77196
|
+
modules: ['pricetypes']
|
|
77197
|
+
})
|
|
77198
|
+
})]
|
|
77199
|
+
})
|
|
77200
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
77201
|
+
gridId: 'crud-grid_pricetypes',
|
|
77202
|
+
applicationData: applicationData,
|
|
77203
|
+
configuration: configuration
|
|
77204
|
+
})]
|
|
77205
|
+
});
|
|
77206
|
+
});
|
|
77207
|
+
|
|
76905
77208
|
/** Sub-views of the IDM catalog editor (routes under catalogs/:catalogId). */
|
|
76906
77209
|
var IDM_CATALOG_EDITOR_VIEWS = [{
|
|
76907
77210
|
path: 'series',
|
|
@@ -77038,6 +77341,15 @@ var IDM_CATALOG_EDITOR_VIEWS = [{
|
|
|
77038
77341
|
grid: 'detailinfos',
|
|
77039
77342
|
keyColumn: 'detailInfoNo'
|
|
77040
77343
|
}
|
|
77344
|
+
}, {
|
|
77345
|
+
path: 'pricetypes',
|
|
77346
|
+
component: TablePriceTypes,
|
|
77347
|
+
agent: {
|
|
77348
|
+
entity: 'Price type (Preisart)',
|
|
77349
|
+
grid: 'pricetypes',
|
|
77350
|
+
keyColumn: 'priceTypeNo',
|
|
77351
|
+
note: 'IDM 4 only: piece, length, area or volume prices; articles and surcharge groups refer to one by number'
|
|
77352
|
+
}
|
|
77041
77353
|
}, {
|
|
77042
77354
|
path: 'pricefeaturegroups',
|
|
77043
77355
|
component: TablePriceFeatureGroups,
|
|
@@ -96915,45 +97227,6 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
96915
97227
|
name: t('backoffice.idmCatalog.general.label.bi.Z'),
|
|
96916
97228
|
value: 'Z'
|
|
96917
97229
|
}];
|
|
96918
|
-
var priceDependent = [{
|
|
96919
|
-
name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
96920
|
-
value: false
|
|
96921
|
-
}, {
|
|
96922
|
-
name: t('backoffice.idmCatalog.general.label.priceDependent.p1'),
|
|
96923
|
-
value: true
|
|
96924
|
-
}];
|
|
96925
|
-
var unit = [{
|
|
96926
|
-
name: t('backoffice.idmCatalog.general.label.unit.u0'),
|
|
96927
|
-
value: 0
|
|
96928
|
-
}, {
|
|
96929
|
-
name: t('backoffice.idmCatalog.general.label.unit.u1'),
|
|
96930
|
-
value: 1
|
|
96931
|
-
}, {
|
|
96932
|
-
name: t('backoffice.idmCatalog.general.label.unit.u10'),
|
|
96933
|
-
value: 10
|
|
96934
|
-
}, {
|
|
96935
|
-
name: t('backoffice.idmCatalog.general.label.unit.u100'),
|
|
96936
|
-
value: 100
|
|
96937
|
-
}, {
|
|
96938
|
-
name: t('backoffice.idmCatalog.general.label.unit.u1000'),
|
|
96939
|
-
value: 1000
|
|
96940
|
-
}, {
|
|
96941
|
-
name: t('backoffice.idmCatalog.general.label.unit.1u000000'),
|
|
96942
|
-
value: 1000000
|
|
96943
|
-
}, {
|
|
96944
|
-
name: t('backoffice.idmCatalog.general.label.unit.u1000000000'),
|
|
96945
|
-
value: 1000000000
|
|
96946
|
-
}];
|
|
96947
|
-
var roundingType = [{
|
|
96948
|
-
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r1'),
|
|
96949
|
-
value: 1
|
|
96950
|
-
}, {
|
|
96951
|
-
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r2'),
|
|
96952
|
-
value: 2
|
|
96953
|
-
}, {
|
|
96954
|
-
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r3'),
|
|
96955
|
-
value: 3
|
|
96956
|
-
}];
|
|
96957
97230
|
var colDef = [].concat(_toConsumableArray(showApi2 ? [{
|
|
96958
97231
|
headerName: 'backoffice.idmCatalog.catalogs.label.isApi',
|
|
96959
97232
|
field: 'isApi',
|
|
@@ -97409,102 +97682,20 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
97409
97682
|
enumData: getCountryKey(t)
|
|
97410
97683
|
}
|
|
97411
97684
|
}]
|
|
97412
|
-
}, {
|
|
97685
|
+
}], _toConsumableArray(catalog.major === 4 ? [] : [{
|
|
97413
97686
|
headerName: 'backoffice.idmCatalog.general.label.priceSettings',
|
|
97414
|
-
children:
|
|
97415
|
-
headerName: 'backoffice.idmCatalog.general.label.priceTypeNo',
|
|
97416
|
-
field: 'priceTypeNo',
|
|
97417
|
-
cellDataType: 'number',
|
|
97418
|
-
required: true
|
|
97419
|
-
}, {
|
|
97420
|
-
headerName: 'backoffice.idmCatalog.general.label.widthX',
|
|
97421
|
-
field: 'widthX',
|
|
97422
|
-
cellDataType: 'enum',
|
|
97423
|
-
required: true,
|
|
97424
|
-
customParams: {
|
|
97425
|
-
enumData: priceDependent,
|
|
97426
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97427
|
-
}
|
|
97428
|
-
}, {
|
|
97429
|
-
headerName: 'backoffice.idmCatalog.general.label.depthY',
|
|
97430
|
-
field: 'depthY',
|
|
97431
|
-
cellDataType: 'enum',
|
|
97432
|
-
required: true,
|
|
97433
|
-
customParams: {
|
|
97434
|
-
enumData: priceDependent,
|
|
97435
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97436
|
-
}
|
|
97437
|
-
}, {
|
|
97438
|
-
headerName: 'backoffice.idmCatalog.general.label.heightZ',
|
|
97439
|
-
field: 'heightZ',
|
|
97440
|
-
cellDataType: 'enum',
|
|
97441
|
-
required: true,
|
|
97442
|
-
customParams: {
|
|
97443
|
-
enumData: priceDependent,
|
|
97444
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97445
|
-
}
|
|
97446
|
-
}, {
|
|
97447
|
-
headerName: 'backoffice.idmCatalog.general.label.basicUnit',
|
|
97448
|
-
field: 'basicUnit',
|
|
97449
|
-
cellDataType: 'enum',
|
|
97450
|
-
required: true,
|
|
97451
|
-
customParams: {
|
|
97452
|
-
enumData: unit,
|
|
97453
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97454
|
-
}
|
|
97455
|
-
}, {
|
|
97456
|
-
headerName: 'backoffice.idmCatalog.general.label.roundingUnit',
|
|
97457
|
-
field: 'roundingUnit',
|
|
97458
|
-
cellDataType: 'enum',
|
|
97459
|
-
required: true,
|
|
97460
|
-
customParams: {
|
|
97461
|
-
enumData: unit,
|
|
97462
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97463
|
-
}
|
|
97464
|
-
}, {
|
|
97465
|
-
headerName: 'backoffice.idmCatalog.general.label.roundingType',
|
|
97466
|
-
field: 'roundingType',
|
|
97467
|
-
cellDataType: 'enum',
|
|
97468
|
-
required: true,
|
|
97469
|
-
customParams: {
|
|
97470
|
-
enumData: roundingType,
|
|
97471
|
-
displayLabelTemplate: '${name} (${value})'
|
|
97472
|
-
}
|
|
97473
|
-
}, {
|
|
97474
|
-
headerName: 'backoffice.idmCatalog.general.label.basicPriceDependent',
|
|
97475
|
-
field: 'basicPriceDependent',
|
|
97476
|
-
cellDataType: 'boolean',
|
|
97477
|
-
required: true,
|
|
97478
|
-
defaultValue: false
|
|
97479
|
-
}, {
|
|
97480
|
-
headerName: 'backoffice.idmCatalog.general.label.priceTypeFormula',
|
|
97481
|
-
field: 'priceTypeFormula'
|
|
97482
|
-
}, {
|
|
97687
|
+
children: priceTypeColumns(t, {
|
|
97483
97688
|
headerName: 'backoffice.idmCatalog.general.label.priceTypeName',
|
|
97484
97689
|
marryChildren: true,
|
|
97485
|
-
children: [{
|
|
97486
|
-
|
|
97487
|
-
|
|
97488
|
-
|
|
97489
|
-
|
|
97490
|
-
|
|
97491
|
-
|
|
97492
|
-
|
|
97493
|
-
|
|
97494
|
-
field: 'priceTypeName.FR',
|
|
97495
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
97496
|
-
isDictionary: true
|
|
97497
|
-
}, {
|
|
97498
|
-
field: 'priceTypeName.IT',
|
|
97499
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
97500
|
-
isDictionary: true
|
|
97501
|
-
}]
|
|
97502
|
-
}, {
|
|
97503
|
-
headerName: 'backoffice.idmCatalog.general.label.priceTypeRules',
|
|
97504
|
-
field: 'priceTypeRules',
|
|
97505
|
-
cellDataType: 'array'
|
|
97506
|
-
}]
|
|
97507
|
-
}, {
|
|
97690
|
+
children: ['DE', 'EN', 'FR', 'IT'].map(function (language) {
|
|
97691
|
+
return {
|
|
97692
|
+
field: 'priceTypeName.' + language,
|
|
97693
|
+
headerName: 'backoffice.idmEnricher.general.label.' + language,
|
|
97694
|
+
isDictionary: true
|
|
97695
|
+
};
|
|
97696
|
+
})
|
|
97697
|
+
}, false)
|
|
97698
|
+
}]), [{
|
|
97508
97699
|
headerName: 'backoffice.idmCatalog.general.label.version',
|
|
97509
97700
|
children: [].concat(_toConsumableArray(createVersionColumnDef({
|
|
97510
97701
|
headerName: 'backoffice.idmCatalog.general.label.version',
|
|
@@ -97540,7 +97731,7 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
97540
97731
|
return {
|
|
97541
97732
|
type: 'dotnetSSM',
|
|
97542
97733
|
agentGridId: 'catalog-versions',
|
|
97543
|
-
agentDescription: "VERSION HISTORY of the selected catalog — one row per catalog version; the CURRENT version's row doubles as the master-data record: supplier block (GLN, address), contacts, currency, validity window, fallback language, price settings. Master data is OPTIONAL while building (it gates export, not authoring); the row validates AS A WHOLE (all required columns in ONE staging call) and its values are the customer's company facts — ask the user, never invent placeholders.",
|
|
97734
|
+
agentDescription: "VERSION HISTORY of the selected catalog — one row per catalog version; the CURRENT version's row doubles as the master-data record: supplier block (GLN, address), contacts, currency, validity window, fallback language, on IDM 3 also the price settings (IDM 4: view 'pricetypes'). Master data is OPTIONAL while building (it gates export, not authoring); the row validates AS A WHOLE (all required columns in ONE staging call) and its values are the customer's company facts — ask the user, never invent placeholders.",
|
|
97544
97735
|
// packages and collections are built on a catalog: it can only go once they are gone
|
|
97545
97736
|
inUseReview: {
|
|
97546
97737
|
cleanable: false
|