@crystaldesign/diva-backoffice 25.5.0-beta.23 → 25.5.0-beta.25
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 +774 -522
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +14 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +20 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -151,8 +151,8 @@ import PushpinOutlined from '@ant-design/icons/lib/icons/PushpinOutlined';
|
|
151
151
|
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; } } }; }
|
152
152
|
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; } }
|
153
153
|
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; }
|
154
|
-
function ownKeys$
|
155
|
-
function _objectSpread$
|
154
|
+
function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
155
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
156
156
|
var LOG$e = getLogger('Backoffice', 'ApplyMapping');
|
157
157
|
function applyMapping (_ref) {
|
158
158
|
var mappable = _ref.mappable,
|
@@ -173,10 +173,10 @@ function applyMapping (_ref) {
|
|
173
173
|
var newValue = {};
|
174
174
|
newValue[newKey] = valueToAdd;
|
175
175
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
176
|
-
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$
|
176
|
+
if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = _objectSpread$Z(_objectSpread$Z({}, startValue[newKey]), valueToAdd);else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
177
177
|
return startValue;
|
178
178
|
}
|
179
|
-
if (newIdx == 1) return _objectSpread$
|
179
|
+
if (newIdx == 1) return _objectSpread$Z(_objectSpread$Z({}, startValue), newValue);
|
180
180
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
181
181
|
};
|
182
182
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
@@ -479,8 +479,8 @@ function getLeafColumns(columns) {
|
|
479
479
|
});
|
480
480
|
}
|
481
481
|
|
482
|
-
function ownKeys$
|
483
|
-
function _objectSpread$
|
482
|
+
function ownKeys$Y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
483
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
484
484
|
var LOG$d = getLogger('Backoffice', 'ApiHandler');
|
485
485
|
var jp = require('jsonpath');
|
486
486
|
var _default$d = /*#__PURE__*/function () {
|
@@ -659,7 +659,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
659
659
|
_context2.next = 20;
|
660
660
|
return fetch(finalUrl, {
|
661
661
|
method: this._updateMethod,
|
662
|
-
headers: _objectSpread$
|
662
|
+
headers: _objectSpread$Y(_objectSpread$Y({}, jwt ? {
|
663
663
|
Authorization: 'Bearer ' + jwt
|
664
664
|
} : {}), {}, {
|
665
665
|
'Content-Type': 'application/json'
|
@@ -752,7 +752,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
752
752
|
rootStore: this._rootStore,
|
753
753
|
fallBackToParams: true
|
754
754
|
});
|
755
|
-
if (data) createData = _objectSpread$
|
755
|
+
if (data) createData = _objectSpread$Y({}, data);
|
756
756
|
} else if (data !== undefined) {
|
757
757
|
createData = applyMapping({
|
758
758
|
mappable: data,
|
@@ -1014,7 +1014,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1014
1014
|
throw new Error('Read List endpoint is missing in configuration.');
|
1015
1015
|
case 2:
|
1016
1016
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
1017
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1017
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$Y(_objectSpread$Y({}, filterServerSide), {}, {
|
1018
1018
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1019
1019
|
baseUrl: this._readListUrl,
|
1020
1020
|
prefilter: prefilter
|
@@ -1034,7 +1034,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1034
1034
|
});
|
1035
1035
|
case 6:
|
1036
1036
|
response = _context8.sent;
|
1037
|
-
return _context8.abrupt("return", _objectSpread$
|
1037
|
+
return _context8.abrupt("return", _objectSpread$Y(_objectSpread$Y({}, response), {}, {
|
1038
1038
|
data: response.data.map(function (d) {
|
1039
1039
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
1040
1040
|
})
|
@@ -1058,7 +1058,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
1058
1058
|
throw new Error('Read List endpoint is missing in configuration.');
|
1059
1059
|
}
|
1060
1060
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
1061
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
1061
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$Y(_objectSpread$Y({}, filterServerSide), {}, {
|
1062
1062
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
1063
1063
|
baseUrl: this._readListUrl,
|
1064
1064
|
prefilter: prefilter
|
@@ -1265,8 +1265,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
1265
1265
|
}]);
|
1266
1266
|
}(_default$d);
|
1267
1267
|
|
1268
|
-
function ownKeys$
|
1269
|
-
function _objectSpread$
|
1268
|
+
function ownKeys$X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1269
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1270
1270
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
1271
1271
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
1272
1272
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
@@ -1365,7 +1365,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
1365
1365
|
_context2.next = 5;
|
1366
1366
|
return fetch(this._createUrl + '?ref=true', {
|
1367
1367
|
method: this._createMethod,
|
1368
|
-
headers: _objectSpread$
|
1368
|
+
headers: _objectSpread$X({}, jwt ? {
|
1369
1369
|
Authorization: 'Bearer ' + jwt
|
1370
1370
|
} : {}),
|
1371
1371
|
body: data
|
@@ -1743,8 +1743,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
|
|
1743
1743
|
}]);
|
1744
1744
|
}(_default$d);
|
1745
1745
|
|
1746
|
-
function ownKeys$
|
1747
|
-
function _objectSpread$
|
1746
|
+
function ownKeys$W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1747
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1748
1748
|
var _default$7 = /*#__PURE__*/function () {
|
1749
1749
|
function _default(root) {
|
1750
1750
|
_classCallCheck(this, _default);
|
@@ -1780,7 +1780,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1780
1780
|
var _i$permission;
|
1781
1781
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
1782
1782
|
});
|
1783
|
-
config = _objectSpread$
|
1783
|
+
config = _objectSpread$W(_objectSpread$W({}, config), {}, {
|
1784
1784
|
items: filteredItems
|
1785
1785
|
});
|
1786
1786
|
}
|
@@ -12897,8 +12897,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
12897
12897
|
var navOverlay = "nav-overlay-rKJNC";
|
12898
12898
|
var navSettings = "nav-settings-82cjv";
|
12899
12899
|
var menuLabel = "menu-label-4dXQk";
|
12900
|
-
var css_248z$
|
12901
|
-
styleInject(css_248z$
|
12900
|
+
var css_248z$w = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
12901
|
+
styleInject(css_248z$w);
|
12902
12902
|
|
12903
12903
|
function MenuLabel (_ref) {
|
12904
12904
|
var disabled = _ref.disabled,
|
@@ -13297,8 +13297,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
13297
13297
|
}]);
|
13298
13298
|
}();
|
13299
13299
|
|
13300
|
-
function ownKeys$
|
13301
|
-
function _objectSpread$
|
13300
|
+
function ownKeys$V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
13301
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
13302
13302
|
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; } } }; }
|
13303
13303
|
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; } }
|
13304
13304
|
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; }
|
@@ -13409,7 +13409,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13409
13409
|
if (index >= 0) {
|
13410
13410
|
this._additionalMenuElements[index] = {
|
13411
13411
|
key: key,
|
13412
|
-
element: _objectSpread$
|
13412
|
+
element: _objectSpread$V(_objectSpread$V({}, this._additionalMenuElements[index].element), {}, {
|
13413
13413
|
items: items,
|
13414
13414
|
selected: selected
|
13415
13415
|
})
|
@@ -13460,7 +13460,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13460
13460
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
13461
13461
|
this.root.navigate('/' + path);
|
13462
13462
|
}
|
13463
|
-
this._menuElement1 = _objectSpread$
|
13463
|
+
this._menuElement1 = _objectSpread$V(_objectSpread$V({}, this.menuElement1), {}, {
|
13464
13464
|
selected: this._selectedMenuKeys[0]
|
13465
13465
|
});
|
13466
13466
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
@@ -13716,7 +13716,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
13716
13716
|
return items.filter(function (item) {
|
13717
13717
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
13718
13718
|
}).map(function (item) {
|
13719
|
-
return _objectSpread$
|
13719
|
+
return _objectSpread$V(_objectSpread$V({}, item), {}, {
|
13720
13720
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
13721
13721
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
13722
13722
|
});
|
@@ -14866,8 +14866,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
14866
14866
|
return _createClass(_default);
|
14867
14867
|
}(_default$d);
|
14868
14868
|
|
14869
|
-
function ownKeys$
|
14870
|
-
function _objectSpread$
|
14869
|
+
function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
14870
|
+
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
14871
14871
|
/**
|
14872
14872
|
* ContextStore is a store that manages the contexts of the application.
|
14873
14873
|
*/
|
@@ -14900,7 +14900,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
14900
14900
|
key: "updateContext",
|
14901
14901
|
value: function updateContext(contextId, updates) {
|
14902
14902
|
var currentState = this.contexts.get(contextId) || {};
|
14903
|
-
this.contexts.set(contextId, _objectSpread$
|
14903
|
+
this.contexts.set(contextId, _objectSpread$U(_objectSpread$U({}, currentState), updates));
|
14904
14904
|
}
|
14905
14905
|
|
14906
14906
|
// Clear a context
|
@@ -15530,8 +15530,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
15530
15530
|
}]);
|
15531
15531
|
}();
|
15532
15532
|
|
15533
|
-
function ownKeys$
|
15534
|
-
function _objectSpread$
|
15533
|
+
function ownKeys$T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
15534
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
15535
15535
|
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
15536
15536
|
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
15537
15537
|
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
@@ -15653,7 +15653,7 @@ function useFormData (_ref) {
|
|
15653
15653
|
multipleEditingData = inboundData;
|
15654
15654
|
}
|
15655
15655
|
return {
|
15656
|
-
loadedData: _onLoadFields(_objectSpread$
|
15656
|
+
loadedData: _onLoadFields(_objectSpread$T({}, dt)),
|
15657
15657
|
multipleEditingData: multipleEditingData
|
15658
15658
|
};
|
15659
15659
|
}, [inboundData, selectedItemsIndex]),
|
@@ -15690,7 +15690,7 @@ function useFormData (_ref) {
|
|
15690
15690
|
setFieldErrors = _useState20[1];
|
15691
15691
|
useEffect(function () {
|
15692
15692
|
var _loadedData$_id2;
|
15693
|
-
setState(_objectSpread$
|
15693
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15694
15694
|
data: loadedData,
|
15695
15695
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
15696
15696
|
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),
|
@@ -15792,7 +15792,7 @@ function useFormData (_ref) {
|
|
15792
15792
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
15793
15793
|
while (1) switch (_context2.prev = _context2.next) {
|
15794
15794
|
case 0:
|
15795
|
-
newData = merge(_objectSpread$
|
15795
|
+
newData = merge(_objectSpread$T({}, state.data), values);
|
15796
15796
|
if (!skipApi) {
|
15797
15797
|
_context2.next = 3;
|
15798
15798
|
break;
|
@@ -15802,7 +15802,7 @@ function useFormData (_ref) {
|
|
15802
15802
|
root.actions.toggleLoading('saving_form');
|
15803
15803
|
_context2.prev = 4;
|
15804
15804
|
_context2.next = 7;
|
15805
|
-
return setDynamicFields(_objectSpread$
|
15805
|
+
return setDynamicFields(_objectSpread$T({}, state.data), newData);
|
15806
15806
|
case 7:
|
15807
15807
|
newData = _context2.sent;
|
15808
15808
|
_context2.next = 10;
|
@@ -15817,7 +15817,7 @@ function useFormData (_ref) {
|
|
15817
15817
|
root.actions.toggleLoading('saving_form');
|
15818
15818
|
throw _context2.t0;
|
15819
15819
|
case 17:
|
15820
|
-
setState(_objectSpread$
|
15820
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15821
15821
|
loading: true
|
15822
15822
|
}));
|
15823
15823
|
finalData = state.data;
|
@@ -15870,14 +15870,14 @@ function useFormData (_ref) {
|
|
15870
15870
|
_context2.next = 47;
|
15871
15871
|
break;
|
15872
15872
|
}
|
15873
|
-
setFieldErrors(_objectSpread$
|
15873
|
+
setFieldErrors(_objectSpread$T(_objectSpread$T({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
15874
15874
|
return _context2.abrupt("return", undefined);
|
15875
15875
|
case 47:
|
15876
15876
|
throw _context2.t1;
|
15877
15877
|
case 48:
|
15878
15878
|
_context2.prev = 48;
|
15879
15879
|
root.actions.toggleLoading('saving_form');
|
15880
|
-
setState(_objectSpread$
|
15880
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15881
15881
|
data: finalData,
|
15882
15882
|
loading: false
|
15883
15883
|
}));
|
@@ -15907,7 +15907,7 @@ function useFormData (_ref) {
|
|
15907
15907
|
}
|
15908
15908
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
15909
15909
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
15910
|
-
var wholeData = Object.assign(_objectSpread$
|
15910
|
+
var wholeData = Object.assign(_objectSpread$T({}, state.data), _objectSpread$T({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
15911
15911
|
var newState = getHiddenRequredDisabled(wholeData, selectedItems);
|
15912
15912
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
15913
15913
|
setHiddenRequiredDisabled(newState);
|
@@ -15920,14 +15920,14 @@ function useFormData (_ref) {
|
|
15920
15920
|
}
|
15921
15921
|
};
|
15922
15922
|
var onInputChanged = function onInputChanged(id, value, d) {
|
15923
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
15923
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$T({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
15924
15924
|
if (id) {
|
15925
15925
|
setFieldInObject(id, data, value);
|
15926
|
-
var newFieldErrors = _objectSpread$
|
15926
|
+
var newFieldErrors = _objectSpread$T({}, fieldErrors);
|
15927
15927
|
delete newFieldErrors[id.toString()];
|
15928
15928
|
setFieldErrors(newFieldErrors);
|
15929
15929
|
}
|
15930
|
-
setState(_objectSpread$
|
15930
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15931
15931
|
data: data
|
15932
15932
|
}));
|
15933
15933
|
return data;
|
@@ -15959,12 +15959,12 @@ function useFormData (_ref) {
|
|
15959
15959
|
var _value$value;
|
15960
15960
|
if (((_value$value = value === null || value === void 0 ? void 0 : value.value) !== null && _value$value !== void 0 ? _value$value : value) === val) {
|
15961
15961
|
if (configuration.itemSelectorReset) {
|
15962
|
-
setState(_objectSpread$
|
15962
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15963
15963
|
data: _defineProperty({}, name, val)
|
15964
15964
|
}));
|
15965
15965
|
} else {
|
15966
|
-
setState(_objectSpread$
|
15967
|
-
data: _objectSpread$
|
15966
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15967
|
+
data: _objectSpread$T(_objectSpread$T({}, state.data), {}, _defineProperty({}, name, val))
|
15968
15968
|
}));
|
15969
15969
|
}
|
15970
15970
|
setSelectedItemsIndex(idx);
|
@@ -15974,12 +15974,12 @@ function useFormData (_ref) {
|
|
15974
15974
|
var val = _ref6.value;
|
15975
15975
|
if (value === val) {
|
15976
15976
|
if (configuration.itemSelectorReset) {
|
15977
|
-
setState(_objectSpread$
|
15977
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15978
15978
|
data: _defineProperty({}, name, val)
|
15979
15979
|
}));
|
15980
15980
|
} else {
|
15981
|
-
setState(_objectSpread$
|
15982
|
-
data: _objectSpread$
|
15981
|
+
setState(_objectSpread$T(_objectSpread$T({}, state), {}, {
|
15982
|
+
data: _objectSpread$T(_objectSpread$T({}, state.data), {}, _defineProperty({}, name, val))
|
15983
15983
|
}));
|
15984
15984
|
}
|
15985
15985
|
setSelectedItemsIndex(idx);
|
@@ -16260,7 +16260,7 @@ function useFormData (_ref) {
|
|
16260
16260
|
for (var i = 0; i < configuration.tools.length; i++) {
|
16261
16261
|
var _tool$defaultOpen;
|
16262
16262
|
var tool = configuration.tools[i];
|
16263
|
-
tools.push(_objectSpread$
|
16263
|
+
tools.push(_objectSpread$T(_objectSpread$T({}, tool), {}, {
|
16264
16264
|
parameters: {
|
16265
16265
|
data: state.data
|
16266
16266
|
},
|
@@ -16362,7 +16362,7 @@ function useFormData (_ref) {
|
|
16362
16362
|
})) return;
|
16363
16363
|
setRemovedMedias([].concat(_toConsumableArray(removedMedias), [media]));
|
16364
16364
|
};
|
16365
|
-
return _objectSpread$
|
16365
|
+
return _objectSpread$T(_objectSpread$T({}, state), {}, {
|
16366
16366
|
getIsHidden: getIsHidden,
|
16367
16367
|
setUsedPreset: setUsedPreset,
|
16368
16368
|
configuration: configuration,
|
@@ -16479,8 +16479,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
16479
16479
|
};
|
16480
16480
|
|
16481
16481
|
var _excluded$3 = ["key", "name"];
|
16482
|
-
function ownKeys$
|
16483
|
-
function _objectSpread$
|
16482
|
+
function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
16483
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
16484
16484
|
var FormList$2 = function FormList(_ref) {
|
16485
16485
|
var _item$initialValue;
|
16486
16486
|
var value = _ref.value,
|
@@ -16533,7 +16533,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16533
16533
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
16534
16534
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
16535
16535
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
16536
|
-
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$
|
16536
|
+
return /*#__PURE__*/createElement(Form$1.Item, _objectSpread$S(_objectSpread$S({}, restField), {}, {
|
16537
16537
|
id: n.join(),
|
16538
16538
|
key: n.join(),
|
16539
16539
|
name: n,
|
@@ -16545,7 +16545,7 @@ var FormList$2 = function FormList(_ref) {
|
|
16545
16545
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
16546
16546
|
help: state.fieldErrors[n.toString()],
|
16547
16547
|
hidden: hidden
|
16548
|
-
}), getElement(_objectSpread$
|
16548
|
+
}), getElement(_objectSpread$S(_objectSpread$S({}, i), {}, {
|
16549
16549
|
name: n
|
16550
16550
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
16551
16551
|
})
|
@@ -16710,8 +16710,8 @@ var Result = function Result(_ref) {
|
|
16710
16710
|
|
16711
16711
|
var success = "success-tRJ7j";
|
16712
16712
|
var error = "error-MtAFB";
|
16713
|
-
var css_248z$
|
16714
|
-
styleInject(css_248z$
|
16713
|
+
var css_248z$v = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
|
16714
|
+
styleInject(css_248z$v);
|
16715
16715
|
|
16716
16716
|
var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
|
16717
16717
|
|
@@ -16773,13 +16773,13 @@ var CustomButton = function CustomButton(_ref) {
|
|
16773
16773
|
};
|
16774
16774
|
var CustomButton$1 = observer(CustomButton);
|
16775
16775
|
|
16776
|
-
var wrapper$
|
16776
|
+
var wrapper$7 = "wrapper-GVe2h";
|
16777
16777
|
var buttonGroup = "button-group-GYt-T";
|
16778
|
-
var css_248z$
|
16779
|
-
styleInject(css_248z$
|
16778
|
+
var css_248z$u = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
16779
|
+
styleInject(css_248z$u);
|
16780
16780
|
|
16781
|
-
function ownKeys$
|
16782
|
-
function _objectSpread$
|
16781
|
+
function ownKeys$R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
16782
|
+
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
16783
16783
|
var SubTitle = function SubTitle(_ref) {
|
16784
16784
|
var _item$orientation, _item$buttonIds;
|
16785
16785
|
var item = _ref.item,
|
@@ -16788,9 +16788,9 @@ var SubTitle = function SubTitle(_ref) {
|
|
16788
16788
|
t = _useTranslation.t;
|
16789
16789
|
return /*#__PURE__*/jsx(Divider, {
|
16790
16790
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
16791
|
-
style: _objectSpread$
|
16791
|
+
style: _objectSpread$R({}, item.style),
|
16792
16792
|
children: /*#__PURE__*/jsxs("div", {
|
16793
|
-
className: wrapper$
|
16793
|
+
className: wrapper$7,
|
16794
16794
|
children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
16795
16795
|
return /*#__PURE__*/jsx("div", {
|
16796
16796
|
className: buttonGroup,
|
@@ -17051,13 +17051,13 @@ function parseReturnData(options, selectMapping) {
|
|
17051
17051
|
return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
|
17052
17052
|
}
|
17053
17053
|
|
17054
|
-
var wrapper$
|
17055
|
-
var css_248z$
|
17056
|
-
styleInject(css_248z$
|
17054
|
+
var wrapper$6 = "wrapper-4xyke";
|
17055
|
+
var css_248z$t = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17056
|
+
styleInject(css_248z$t);
|
17057
17057
|
|
17058
17058
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17059
|
-
function ownKeys$
|
17060
|
-
function _objectSpread$
|
17059
|
+
function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17060
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
17061
17061
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
17062
17062
|
var apiInterface = _ref.apiInterface,
|
17063
17063
|
selectMapping = _ref.selectMapping,
|
@@ -17083,8 +17083,8 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17083
17083
|
});
|
17084
17084
|
return /*#__PURE__*/jsxs("div", {
|
17085
17085
|
ref: ref,
|
17086
|
-
className: classnames(title ? wrapper$
|
17087
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
17086
|
+
className: classnames(title ? wrapper$6 : undefined),
|
17087
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$Q(_objectSpread$Q({}, selectProps), {}, {
|
17088
17088
|
showSearch: search,
|
17089
17089
|
loading: state.loading,
|
17090
17090
|
options: state.options,
|
@@ -17701,8 +17701,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
17701
17701
|
}]);
|
17702
17702
|
}(_default$d);
|
17703
17703
|
|
17704
|
-
function ownKeys$
|
17705
|
-
function _objectSpread$
|
17704
|
+
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17705
|
+
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
17706
17706
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
17707
17707
|
function useSelectClientRelationCatalog (_ref) {
|
17708
17708
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
@@ -17871,7 +17871,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
17871
17871
|
case 22:
|
17872
17872
|
supplierData = _context2.sent;
|
17873
17873
|
case 23:
|
17874
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
17874
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$P(_objectSpread$P({}, _selectedSupplier), {}, {
|
17875
17875
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
17876
17876
|
}), supplierData);
|
17877
17877
|
if (catalogId && catalogList.find(function (c) {
|
@@ -17937,8 +17937,8 @@ var customSelect = "custom-select-ESUJX";
|
|
17937
17937
|
var customSelectOption = "custom-select-option-dUA7N";
|
17938
17938
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
17939
17939
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
17940
|
-
var css_248z$
|
17941
|
-
styleInject(css_248z$
|
17940
|
+
var css_248z$s = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
17941
|
+
styleInject(css_248z$s);
|
17942
17942
|
|
17943
17943
|
var Selector = function Selector(_ref) {
|
17944
17944
|
var items = _ref.items,
|
@@ -18092,8 +18092,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
18092
18092
|
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
18093
18093
|
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
18094
18094
|
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
18095
|
-
function ownKeys$
|
18096
|
-
function _objectSpread$
|
18095
|
+
function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
18096
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
18097
18097
|
function useSelectData (_ref) {
|
18098
18098
|
var data = _ref.data,
|
18099
18099
|
onChange = _ref.onChange,
|
@@ -18276,7 +18276,7 @@ function useSelectData (_ref) {
|
|
18276
18276
|
setFetching(true);
|
18277
18277
|
serverSideParams = {
|
18278
18278
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
18279
|
-
return _objectSpread$
|
18279
|
+
return _objectSpread$O(_objectSpread$O({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
18280
18280
|
}, {}) : {
|
18281
18281
|
_id: [value, 'contains']
|
18282
18282
|
},
|
@@ -18482,8 +18482,8 @@ function useSelectData (_ref) {
|
|
18482
18482
|
};
|
18483
18483
|
}
|
18484
18484
|
|
18485
|
-
var css_248z$
|
18486
|
-
styleInject(css_248z$
|
18485
|
+
var css_248z$r = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
18486
|
+
styleInject(css_248z$r);
|
18487
18487
|
|
18488
18488
|
var SelectWrapper = function SelectWrapper(_ref) {
|
18489
18489
|
var onChange = _ref.onChange,
|
@@ -18562,14 +18562,14 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
18562
18562
|
};
|
18563
18563
|
var Select = observer(SelectWrapper);
|
18564
18564
|
|
18565
|
-
var wrapper$
|
18565
|
+
var wrapper$5 = "wrapper-WStAk";
|
18566
18566
|
var headerWrapper = "header-wrapper-gWQuH";
|
18567
18567
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
18568
|
-
var css_248z$
|
18569
|
-
styleInject(css_248z$
|
18568
|
+
var css_248z$q = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
18569
|
+
styleInject(css_248z$q);
|
18570
18570
|
|
18571
|
-
function ownKeys$
|
18572
|
-
function _objectSpread$
|
18571
|
+
function ownKeys$N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
18572
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
18573
18573
|
var LOG$9 = getLogger('Backoffice', 'Translation Form');
|
18574
18574
|
function useTranslationHook (item, state) {
|
18575
18575
|
var root = useStore();
|
@@ -18702,7 +18702,7 @@ function useTranslationHook (item, state) {
|
|
18702
18702
|
case 0:
|
18703
18703
|
_context2.next = 2;
|
18704
18704
|
return apiHandler.create({
|
18705
|
-
locales: _objectSpread$
|
18705
|
+
locales: _objectSpread$N({
|
18706
18706
|
de: {},
|
18707
18707
|
it: {},
|
18708
18708
|
fr: {},
|
@@ -18751,8 +18751,8 @@ function useTranslationHook (item, state) {
|
|
18751
18751
|
};
|
18752
18752
|
}
|
18753
18753
|
|
18754
|
-
function ownKeys$
|
18755
|
-
function _objectSpread$
|
18754
|
+
function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
18755
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
18756
18756
|
var Translation = function Translation(_ref) {
|
18757
18757
|
var item = _ref.item,
|
18758
18758
|
state = _ref.state,
|
@@ -18770,7 +18770,7 @@ var Translation = function Translation(_ref) {
|
|
18770
18770
|
_onChange = _useTranslationHook.onChange,
|
18771
18771
|
autoTranslate = _useTranslationHook.autoTranslate;
|
18772
18772
|
return /*#__PURE__*/jsxs("div", {
|
18773
|
-
className: wrapper$
|
18773
|
+
className: wrapper$5,
|
18774
18774
|
children: [/*#__PURE__*/jsxs("div", {
|
18775
18775
|
className: headerWrapper,
|
18776
18776
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -18802,7 +18802,7 @@ var Translation = function Translation(_ref) {
|
|
18802
18802
|
var hidden = state.getIsHidden(i, data);
|
18803
18803
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
18804
18804
|
return /*#__PURE__*/jsx(React.Fragment, {
|
18805
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
18805
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$M(_objectSpread$M({}, i), {}, {
|
18806
18806
|
name: n
|
18807
18807
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$1.Item, {
|
18808
18808
|
id: idx.toString(),
|
@@ -18815,7 +18815,7 @@ var Translation = function Translation(_ref) {
|
|
18815
18815
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
18816
18816
|
help: state.fieldErrors[n.toString()],
|
18817
18817
|
hidden: hidden,
|
18818
|
-
children: getElement(_objectSpread$
|
18818
|
+
children: getElement(_objectSpread$M(_objectSpread$M({}, i), {}, {
|
18819
18819
|
name: n
|
18820
18820
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
18821
18821
|
})
|
@@ -19150,8 +19150,8 @@ var Text$1 = observer(Text);
|
|
19150
19150
|
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; } } }; }
|
19151
19151
|
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; } }
|
19152
19152
|
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; }
|
19153
|
-
function ownKeys$
|
19154
|
-
function _objectSpread$
|
19153
|
+
function ownKeys$L(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19154
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
19155
19155
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
19156
19156
|
var _isReadonly, _state$hiddenRequired;
|
19157
19157
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
@@ -19186,7 +19186,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19186
19186
|
}
|
19187
19187
|
});
|
19188
19188
|
case 'selectSimple':
|
19189
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
19189
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$L(_objectSpread$L({}, item), {}, {
|
19190
19190
|
disabled: disabled,
|
19191
19191
|
onChange: function onChange(value) {
|
19192
19192
|
_onChange(absoluteName, value);
|
@@ -19390,7 +19390,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19390
19390
|
value: item.value,
|
19391
19391
|
options: item.options.map(function (o) {
|
19392
19392
|
var _o$disabled;
|
19393
|
-
return _objectSpread$
|
19393
|
+
return _objectSpread$L(_objectSpread$L({}, o), {}, {
|
19394
19394
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
19395
19395
|
});
|
19396
19396
|
}),
|
@@ -19411,7 +19411,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19411
19411
|
},
|
19412
19412
|
icon: item.icon,
|
19413
19413
|
callback: function callback(data) {
|
19414
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
19414
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$L(_objectSpread$L({}, state.data), data));
|
19415
19415
|
}
|
19416
19416
|
});
|
19417
19417
|
case 'media':
|
@@ -19432,7 +19432,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19432
19432
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
19433
19433
|
var _useTranslation = useTranslation(),
|
19434
19434
|
t = _useTranslation.t;
|
19435
|
-
return /*#__PURE__*/jsx(Input, _objectSpread$
|
19435
|
+
return /*#__PURE__*/jsx(Input, _objectSpread$L(_objectSpread$L({}, props), {}, {
|
19436
19436
|
ref: ref,
|
19437
19437
|
disabled: true,
|
19438
19438
|
value: t(props.translationPrefix + '.' + props.value)
|
@@ -19451,8 +19451,8 @@ function isReadonly(item, data) {
|
|
19451
19451
|
return false;
|
19452
19452
|
}
|
19453
19453
|
|
19454
|
-
function ownKeys$
|
19455
|
-
function _objectSpread$
|
19454
|
+
function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19455
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
19456
19456
|
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; } } }; }
|
19457
19457
|
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; } }
|
19458
19458
|
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; }
|
@@ -19502,13 +19502,13 @@ var Presets = function Presets(_ref) {
|
|
19502
19502
|
} finally {
|
19503
19503
|
_iterator.f();
|
19504
19504
|
}
|
19505
|
-
var data = _objectSpread$
|
19505
|
+
var data = _objectSpread$K(_objectSpread$K({}, form.getFieldsValue(names)), {}, {
|
19506
19506
|
newPresetName: newPresetName
|
19507
19507
|
});
|
19508
19508
|
data.dpi = parseInt(data.dpi);
|
19509
19509
|
data.organization = root.getGlobalValue('organizationId');
|
19510
19510
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
19511
|
-
var dt = _objectSpread$
|
19511
|
+
var dt = _objectSpread$K(_objectSpread$K({}, form.getFieldsValue(names)), {}, {
|
19512
19512
|
name: newPresetName
|
19513
19513
|
});
|
19514
19514
|
setPresets({
|
@@ -19850,8 +19850,8 @@ function getLabel(item, t) {
|
|
19850
19850
|
}
|
19851
19851
|
var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
19852
19852
|
|
19853
|
-
function ownKeys$
|
19854
|
-
function _objectSpread$
|
19853
|
+
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19854
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
19855
19855
|
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; } } }; }
|
19856
19856
|
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; } }
|
19857
19857
|
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; }
|
@@ -20053,7 +20053,7 @@ function useRoleSelectorData (_ref) {
|
|
20053
20053
|
roles.forEach(function (r) {
|
20054
20054
|
//check if after the changes the role is selected
|
20055
20055
|
if (value.includes(r._id)) {
|
20056
|
-
var newValue = _objectSpread$
|
20056
|
+
var newValue = _objectSpread$J(_objectSpread$J({}, r), {}, {
|
20057
20057
|
selected: true
|
20058
20058
|
});
|
20059
20059
|
//add it to the new list as selected role
|
@@ -20089,7 +20089,7 @@ function useRoleSelectorData (_ref) {
|
|
20089
20089
|
}
|
20090
20090
|
}
|
20091
20091
|
} else {
|
20092
|
-
var _newValue = _objectSpread$
|
20092
|
+
var _newValue = _objectSpread$J(_objectSpread$J({}, r), {}, {
|
20093
20093
|
selected: false
|
20094
20094
|
});
|
20095
20095
|
//add it to the new list as unselected role
|
@@ -20293,7 +20293,7 @@ function _updateRoles() {
|
|
20293
20293
|
userRole = userRoles.find(function (r) {
|
20294
20294
|
return r._id == role._id;
|
20295
20295
|
});
|
20296
|
-
newRole = _objectSpread$
|
20296
|
+
newRole = _objectSpread$J({}, role);
|
20297
20297
|
if (userRole) {
|
20298
20298
|
newRole.selected = true;
|
20299
20299
|
newRole.inherited = userRole.inherited;
|
@@ -20513,7 +20513,7 @@ function _fetchOptions() {
|
|
20513
20513
|
case 4:
|
20514
20514
|
result = _context11.sent;
|
20515
20515
|
options = result.data.map(function (d) {
|
20516
|
-
return _objectSpread$
|
20516
|
+
return _objectSpread$J(_objectSpread$J({}, d), {}, {
|
20517
20517
|
label: d.displayName,
|
20518
20518
|
value: d._id,
|
20519
20519
|
isLeaf: !d.hasChildren
|
@@ -20605,18 +20605,18 @@ var RoleSelector = function RoleSelector(_ref, ref) {
|
|
20605
20605
|
var RoleSelector$1 = observer(/*#__PURE__*/React.forwardRef(RoleSelector));
|
20606
20606
|
|
20607
20607
|
var permissionButton = "permission-Button-XctsZ";
|
20608
|
-
var select$
|
20608
|
+
var select$2 = "select-lzft-";
|
20609
20609
|
var loadingOption = "loadingOption-qCkRw";
|
20610
20610
|
var scroller = "scroller-lrdk9";
|
20611
20611
|
var skeleton = "skeleton--xCI0";
|
20612
20612
|
var filterField = "filterField-1kU1O";
|
20613
20613
|
var parentScroll = "parent-scroll-GmaL9";
|
20614
20614
|
var parent = "parent-NZJ3S";
|
20615
|
-
var css_248z$
|
20616
|
-
styleInject(css_248z$
|
20615
|
+
var css_248z$p = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\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: auto;\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.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
|
20616
|
+
styleInject(css_248z$p);
|
20617
20617
|
|
20618
|
-
function ownKeys$
|
20619
|
-
function _objectSpread$
|
20618
|
+
function ownKeys$I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
20619
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
20620
20620
|
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
20621
20621
|
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
20622
20622
|
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
@@ -20676,8 +20676,8 @@ function _generateCSV() {
|
|
20676
20676
|
break;
|
20677
20677
|
}
|
20678
20678
|
_context2.next = 21;
|
20679
|
-
return generateCSV(_objectSpread$
|
20680
|
-
mappingData: _objectSpread$
|
20679
|
+
return generateCSV(_objectSpread$I(_objectSpread$I({}, exportParams.children), {}, {
|
20680
|
+
mappingData: _objectSpread$I(_objectSpread$I({}, parent), {}, {
|
20681
20681
|
parentId: exportParams.mappingData._id
|
20682
20682
|
})
|
20683
20683
|
}), csvData);
|
@@ -20785,8 +20785,8 @@ function _downloadFile() {
|
|
20785
20785
|
return _downloadFile.apply(this, arguments);
|
20786
20786
|
}
|
20787
20787
|
|
20788
|
-
function ownKeys$
|
20789
|
-
function _objectSpread$
|
20788
|
+
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
20789
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
20790
20790
|
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; } } }; }
|
20791
20791
|
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; } }
|
20792
20792
|
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; }
|
@@ -21205,7 +21205,7 @@ function useRelationSelectorData (_ref) {
|
|
21205
21205
|
var activeItem = _step.value;
|
21206
21206
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
21207
21207
|
addedObjects.push(addedData);
|
21208
|
-
getSplittedItems(_objectSpread$
|
21208
|
+
getSplittedItems(_objectSpread$H(_objectSpread$H({}, activeItem), {}, {
|
21209
21209
|
userId: data === null || data === void 0 ? void 0 : data._id
|
21210
21210
|
}));
|
21211
21211
|
ret = true;
|
@@ -21410,8 +21410,8 @@ function useRelationSelectorData (_ref) {
|
|
21410
21410
|
};
|
21411
21411
|
}
|
21412
21412
|
|
21413
|
-
function ownKeys$
|
21414
|
-
function _objectSpread$
|
21413
|
+
function ownKeys$G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21414
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
21415
21415
|
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; } } }; }
|
21416
21416
|
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; } }
|
21417
21417
|
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; }
|
@@ -21544,7 +21544,7 @@ function ActionButton (_ref) {
|
|
21544
21544
|
_iterator2.f();
|
21545
21545
|
}
|
21546
21546
|
_context.next = 19;
|
21547
|
-
return apiInterface.update(_objectSpread$
|
21547
|
+
return apiInterface.update(_objectSpread$G(_objectSpread$G({}, data), {}, {
|
21548
21548
|
state: toSwitch
|
21549
21549
|
}), data);
|
21550
21550
|
case 19:
|
@@ -21701,14 +21701,14 @@ function _simpleChangeValue() {
|
|
21701
21701
|
break;
|
21702
21702
|
}
|
21703
21703
|
for (i = 0; i < action.newValues.length; i++) {
|
21704
|
-
fieldsToUpdate = _objectSpread$
|
21704
|
+
fieldsToUpdate = _objectSpread$G(_objectSpread$G({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
21705
21705
|
}
|
21706
21706
|
if (!apiInterface.canUpdate) {
|
21707
21707
|
_context2.next = 9;
|
21708
21708
|
break;
|
21709
21709
|
}
|
21710
21710
|
_context2.next = 7;
|
21711
|
-
return apiInterface.update(_objectSpread$
|
21711
|
+
return apiInterface.update(_objectSpread$G({}, fieldsToUpdate), data);
|
21712
21712
|
case 7:
|
21713
21713
|
response = _context2.sent;
|
21714
21714
|
return _context2.abrupt("return", response);
|
@@ -21723,7 +21723,7 @@ function _simpleChangeValue() {
|
|
21723
21723
|
return _simpleChangeValue.apply(this, arguments);
|
21724
21724
|
}
|
21725
21725
|
function A(props) {
|
21726
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
21726
|
+
return /*#__PURE__*/jsx("a", _objectSpread$G({}, props));
|
21727
21727
|
}
|
21728
21728
|
|
21729
21729
|
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; } } }; }
|
@@ -21858,11 +21858,11 @@ var newscroller = "newscroller-INKeD";
|
|
21858
21858
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
21859
21859
|
var itemTitle = "item-title--BTvC";
|
21860
21860
|
var itemDesc = "item-desc-DBiiF";
|
21861
|
-
var css_248z$
|
21862
|
-
styleInject(css_248z$
|
21861
|
+
var css_248z$o = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
21862
|
+
styleInject(css_248z$o);
|
21863
21863
|
|
21864
|
-
function ownKeys$
|
21865
|
-
function _objectSpread$
|
21864
|
+
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21865
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
21866
21866
|
var DropDown = function DropDown(_ref) {
|
21867
21867
|
var _curItem$data$length;
|
21868
21868
|
var split = _ref.split,
|
@@ -21894,7 +21894,7 @@ var DropDown = function DropDown(_ref) {
|
|
21894
21894
|
});
|
21895
21895
|
return /*#__PURE__*/jsx(Collapse, {
|
21896
21896
|
onChange: function onChange() {
|
21897
|
-
return getSplittedItems(_objectSpread$
|
21897
|
+
return getSplittedItems(_objectSpread$F(_objectSpread$F({}, item.item), {}, {
|
21898
21898
|
parentId: item.parentId
|
21899
21899
|
}), 0);
|
21900
21900
|
},
|
@@ -21999,7 +21999,7 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
21999
21999
|
}, []);
|
22000
22000
|
return /*#__PURE__*/jsxs(Fragment, {
|
22001
22001
|
children: [relationState.configuration.search != undefined && (((_relationState$config = relationState.configuration.filter) === null || _relationState$config === void 0 ? void 0 : _relationState$config.type) === 'default' ? /*#__PURE__*/jsxs(Select$1, {
|
22002
|
-
className: select$
|
22002
|
+
className: select$2,
|
22003
22003
|
showSearch: true,
|
22004
22004
|
suffixIcon: /*#__PURE__*/jsx(PlusSquareOutlined, {}),
|
22005
22005
|
placeholder: (_relationState$config2 = (_relationState$config3 = relationState.configuration.filter) === null || _relationState$config3 === void 0 ? void 0 : _relationState$config3.searchPlaceholder) !== null && _relationState$config2 !== void 0 ? _relationState$config2 : t('backoffice.relationselector.add'),
|
@@ -22152,8 +22152,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
22152
22152
|
};
|
22153
22153
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
22154
22154
|
|
22155
|
-
function ownKeys$
|
22156
|
-
function _objectSpread$
|
22155
|
+
function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22156
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22157
22157
|
function useFormListData (_ref) {
|
22158
22158
|
var _configuration$defaul;
|
22159
22159
|
var id = _ref.id,
|
@@ -22233,7 +22233,7 @@ function useFormListData (_ref) {
|
|
22233
22233
|
if (updated.length == state.length) {
|
22234
22234
|
newState = state.map(function (s, i) {
|
22235
22235
|
var _updated$find;
|
22236
|
-
return _objectSpread$
|
22236
|
+
return _objectSpread$E(_objectSpread$E({}, s), {}, {
|
22237
22237
|
data: (_updated$find = updated.find(function (u) {
|
22238
22238
|
return u.index == i;
|
22239
22239
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
@@ -22370,8 +22370,8 @@ var FormList = function FormList(_ref, ref) {
|
|
22370
22370
|
};
|
22371
22371
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
22372
22372
|
|
22373
|
-
function ownKeys$
|
22374
|
-
function _objectSpread$
|
22373
|
+
function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22374
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22375
22375
|
var LOG$6 = getLogger('Backoffice', 'SelectOrCreate');
|
22376
22376
|
function useSelectOrCreateData (_ref) {
|
22377
22377
|
var id = _ref.id,
|
@@ -22468,7 +22468,7 @@ function useSelectOrCreateData (_ref) {
|
|
22468
22468
|
_context.next = 7;
|
22469
22469
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
22470
22470
|
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) {
|
22471
|
-
return _objectSpread$
|
22471
|
+
return _objectSpread$D(_objectSpread$D({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
22472
22472
|
}, {}) : {
|
22473
22473
|
_id: [value, 'contains']
|
22474
22474
|
},
|
@@ -22779,8 +22779,8 @@ var Multiple = function Multiple(_ref3) {
|
|
22779
22779
|
});
|
22780
22780
|
};
|
22781
22781
|
|
22782
|
-
function ownKeys$
|
22783
|
-
function _objectSpread$
|
22782
|
+
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22783
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22784
22784
|
function useListData (_ref) {
|
22785
22785
|
var id = _ref.id,
|
22786
22786
|
data = _ref.data;
|
@@ -22823,7 +22823,7 @@ function useListData (_ref) {
|
|
22823
22823
|
case 3:
|
22824
22824
|
result = _context.sent;
|
22825
22825
|
setListData(result.data.map(parseField));
|
22826
|
-
initData = _objectSpread$
|
22826
|
+
initData = _objectSpread$C({}, data);
|
22827
22827
|
setUpdatedObject(initData);
|
22828
22828
|
setLoading(false);
|
22829
22829
|
case 8:
|
@@ -22864,7 +22864,7 @@ function useListData (_ref) {
|
|
22864
22864
|
});
|
22865
22865
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
22866
22866
|
var parsedField = field.field.split('.');
|
22867
|
-
item.itemUpdate = _objectSpread$
|
22867
|
+
item.itemUpdate = _objectSpread$C(_objectSpread$C({}, field), {}, {
|
22868
22868
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
22869
22869
|
});
|
22870
22870
|
});
|
@@ -22895,16 +22895,16 @@ function useListData (_ref) {
|
|
22895
22895
|
console.error('field with more than 2 parts not allowed');
|
22896
22896
|
return;
|
22897
22897
|
}
|
22898
|
-
var updObj = _objectSpread$
|
22898
|
+
var updObj = _objectSpread$C({}, updatedObject);
|
22899
22899
|
if (fields.length === 1) {
|
22900
|
-
updObj = _objectSpread$
|
22900
|
+
updObj = _objectSpread$C(_objectSpread$C({}, updObj), {}, _defineProperty({}, fields[0], value));
|
22901
22901
|
} else if (fields.length === 2) {
|
22902
22902
|
var updatedField = updObj[fields[0]].find(function (v) {
|
22903
22903
|
return v.id === item.id.trim();
|
22904
22904
|
});
|
22905
22905
|
if (updatedField) {
|
22906
|
-
var updatedFieldCopy = _objectSpread$
|
22907
|
-
updObj = _objectSpread$
|
22906
|
+
var updatedFieldCopy = _objectSpread$C(_objectSpread$C({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
22907
|
+
updObj = _objectSpread$C(_objectSpread$C({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
22908
22908
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
22909
22909
|
})));
|
22910
22910
|
}
|
@@ -22913,11 +22913,11 @@ function useListData (_ref) {
|
|
22913
22913
|
var acItems = listData;
|
22914
22914
|
for (var i = 0; i < acItems.length; i++) {
|
22915
22915
|
if (i == index) {
|
22916
|
-
acItems[i].itemUpdate = _objectSpread$
|
22916
|
+
acItems[i].itemUpdate = _objectSpread$C(_objectSpread$C({}, acItems[i].itemUpdate), {}, {
|
22917
22917
|
value: value
|
22918
22918
|
});
|
22919
22919
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
22920
|
-
acItems[i].itemUpdate = _objectSpread$
|
22920
|
+
acItems[i].itemUpdate = _objectSpread$C(_objectSpread$C({}, acItems[i].itemUpdate), {}, {
|
22921
22921
|
value: !value
|
22922
22922
|
});
|
22923
22923
|
}
|
@@ -23271,8 +23271,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23271
23271
|
var preview = "preview-9wK81";
|
23272
23272
|
var previewButton = "preview-button-vupuG";
|
23273
23273
|
var editButton = "edit-button-m6r3M";
|
23274
|
-
var css_248z$
|
23275
|
-
styleInject(css_248z$
|
23274
|
+
var css_248z$n = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
|
23275
|
+
styleInject(css_248z$n);
|
23276
23276
|
|
23277
23277
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23278
23278
|
var id = _ref.id,
|
@@ -23431,8 +23431,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
23431
23431
|
};
|
23432
23432
|
}
|
23433
23433
|
|
23434
|
-
function ownKeys$
|
23435
|
-
function _objectSpread$
|
23434
|
+
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
23435
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
23436
23436
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
23437
23437
|
var id = _ref.id,
|
23438
23438
|
data = _ref.data,
|
@@ -23540,12 +23540,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
23540
23540
|
}
|
23541
23541
|
function onEnter(e) {
|
23542
23542
|
if (e.key != 'Enter') return;
|
23543
|
-
setCrop(_objectSpread$
|
23543
|
+
setCrop(_objectSpread$B(_objectSpread$B({}, crop), {}, {
|
23544
23544
|
unit: 'px',
|
23545
23545
|
width: Number(widthInputElement.current.value),
|
23546
23546
|
height: Number(heightInputElement.current.value)
|
23547
23547
|
}));
|
23548
|
-
setCompletedCrop(_objectSpread$
|
23548
|
+
setCompletedCrop(_objectSpread$B(_objectSpread$B({}, crop), {}, {
|
23549
23549
|
unit: 'px',
|
23550
23550
|
width: Number(widthInputElement.current.value),
|
23551
23551
|
height: Number(heightInputElement.current.value)
|
@@ -23623,8 +23623,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
23623
23623
|
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
23624
23624
|
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
|
23625
23625
|
function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
23626
|
-
function ownKeys$
|
23627
|
-
function _objectSpread$
|
23626
|
+
function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
23627
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
23628
23628
|
function useDescriptions (_ref) {
|
23629
23629
|
var id = _ref.id;
|
23630
23630
|
var root = useStore();
|
@@ -23717,7 +23717,7 @@ function _getDisplayData() {
|
|
23717
23717
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
23718
23718
|
while (1) switch (_context4.prev = _context4.next) {
|
23719
23719
|
case 0:
|
23720
|
-
displayData = _objectSpread$
|
23720
|
+
displayData = _objectSpread$A({}, data);
|
23721
23721
|
_iterator = _createForOfIteratorHelper$9(items);
|
23722
23722
|
_context4.prev = 2;
|
23723
23723
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
@@ -23993,8 +23993,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
23993
23993
|
};
|
23994
23994
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
23995
23995
|
|
23996
|
-
function ownKeys$
|
23997
|
-
function _objectSpread$
|
23996
|
+
function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
23997
|
+
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
23998
23998
|
function useGridData (_ref) {
|
23999
23999
|
var id = _ref.id,
|
24000
24000
|
data = _ref.data;
|
@@ -24037,11 +24037,11 @@ function useGridData (_ref) {
|
|
24037
24037
|
function reducer(state, action) {
|
24038
24038
|
switch (action.type) {
|
24039
24039
|
case 'update':
|
24040
|
-
return _objectSpread$
|
24040
|
+
return _objectSpread$z(_objectSpread$z({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$z(_objectSpread$z({}, action.data), {}, {
|
24041
24041
|
buffer: Buffer.from(action.data.buffer)
|
24042
24042
|
})));
|
24043
24043
|
case 'delete':
|
24044
|
-
var newState = _objectSpread$
|
24044
|
+
var newState = _objectSpread$z({}, state);
|
24045
24045
|
delete newState[action.data.divaNr];
|
24046
24046
|
return newState;
|
24047
24047
|
default:
|
@@ -24051,19 +24051,19 @@ function reducer(state, action) {
|
|
24051
24051
|
|
24052
24052
|
var grid = "grid-sGemi";
|
24053
24053
|
var textWrapper = "text-wrapper-xsPXE";
|
24054
|
-
var css_248z$
|
24055
|
-
styleInject(css_248z$
|
24054
|
+
var css_248z$m = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
|
24055
|
+
styleInject(css_248z$m);
|
24056
24056
|
|
24057
|
-
var wrapper$
|
24057
|
+
var wrapper$4 = "wrapper-p-gR3";
|
24058
24058
|
var container$5 = "container-DoZqe";
|
24059
|
-
var css_248z$
|
24060
|
-
styleInject(css_248z$
|
24059
|
+
var css_248z$l = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24060
|
+
styleInject(css_248z$l);
|
24061
24061
|
|
24062
24062
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24063
24063
|
var _useTranslation = useTranslation(),
|
24064
24064
|
t = _useTranslation.t;
|
24065
24065
|
return /*#__PURE__*/jsx("div", {
|
24066
|
-
className: wrapper$
|
24066
|
+
className: wrapper$4,
|
24067
24067
|
children: /*#__PURE__*/jsx(Card, {
|
24068
24068
|
title: t('backoffice.tooltipinfo.useroverview'),
|
24069
24069
|
styles: {
|
@@ -24128,8 +24128,8 @@ var Grid = function Grid(_ref) {
|
|
24128
24128
|
});
|
24129
24129
|
};
|
24130
24130
|
|
24131
|
-
function ownKeys$
|
24132
|
-
function _objectSpread$
|
24131
|
+
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
24132
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
24133
24133
|
var useMediaUpload = function useMediaUpload(_ref) {
|
24134
24134
|
var id = _ref.id;
|
24135
24135
|
var root = useStore();
|
@@ -24248,7 +24248,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24248
24248
|
onRemove: onRemove,
|
24249
24249
|
customRequest: customRequest,
|
24250
24250
|
fileList: fileList.map(function (f) {
|
24251
|
-
return _objectSpread$
|
24251
|
+
return _objectSpread$y(_objectSpread$y({}, f), {}, {
|
24252
24252
|
url: f.url
|
24253
24253
|
});
|
24254
24254
|
}),
|
@@ -24260,8 +24260,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24260
24260
|
var small = "small-NY1-k";
|
24261
24261
|
var medium = "medium---QcO";
|
24262
24262
|
var big = "big--E39S";
|
24263
|
-
var css_248z$
|
24264
|
-
styleInject(css_248z$
|
24263
|
+
var css_248z$k = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
|
24264
|
+
styleInject(css_248z$k);
|
24265
24265
|
|
24266
24266
|
var MediaUpload = observer(function (_ref) {
|
24267
24267
|
var id = _ref.id;
|
@@ -24321,8 +24321,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24321
24321
|
var checkbox = "checkbox-H7R-w";
|
24322
24322
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24323
24323
|
var contentWidth = "content-width-hGyVI";
|
24324
|
-
var css_248z$
|
24325
|
-
styleInject(css_248z$
|
24324
|
+
var css_248z$j = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
|
24325
|
+
styleInject(css_248z$j);
|
24326
24326
|
|
24327
24327
|
function BooleanCell (_ref) {
|
24328
24328
|
var children = _ref.children,
|
@@ -25005,8 +25005,8 @@ function LinkCell (_ref) {
|
|
25005
25005
|
|
25006
25006
|
var _excluded$1 = ["index"],
|
25007
25007
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25008
|
-
function ownKeys$
|
25009
|
-
function _objectSpread$
|
25008
|
+
function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
25009
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
25010
25010
|
var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
25011
25011
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25012
25012
|
var CustomRow = function CustomRow(_ref) {
|
@@ -25020,7 +25020,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
25020
25020
|
component: false,
|
25021
25021
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
25022
25022
|
value: form,
|
25023
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
25023
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$x({}, props))
|
25024
25024
|
})
|
25025
25025
|
});
|
25026
25026
|
};
|
@@ -25073,7 +25073,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25073
25073
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
25074
25074
|
longDescriptionType = 'text';
|
25075
25075
|
}
|
25076
|
-
var modifiedColumn = _objectSpread$
|
25076
|
+
var modifiedColumn = _objectSpread$x(_objectSpread$x({}, column), {}, {
|
25077
25077
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
25078
25078
|
});
|
25079
25079
|
if (column) {
|
@@ -25086,40 +25086,40 @@ var CustomCell = function CustomCell(_ref2) {
|
|
25086
25086
|
};
|
25087
25087
|
switch (modifiedColumn.type) {
|
25088
25088
|
case 'boolean':
|
25089
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
25089
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$x({}, cellProps));
|
25090
25090
|
break;
|
25091
25091
|
case 'text':
|
25092
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
25092
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$x({}, cellProps));
|
25093
25093
|
break;
|
25094
25094
|
case 'select':
|
25095
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
25095
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$x({}, cellProps));
|
25096
25096
|
case 'media':
|
25097
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
25097
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$x({}, cellProps));
|
25098
25098
|
break;
|
25099
25099
|
case 'mediaItem':
|
25100
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
25100
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$x({}, cellProps));
|
25101
25101
|
break;
|
25102
25102
|
case 'unixTimeStamp':
|
25103
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
25103
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$x({}, cellProps));
|
25104
25104
|
break;
|
25105
25105
|
case 'unixTimeStampCheck':
|
25106
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
25106
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$x({}, cellProps));
|
25107
25107
|
break;
|
25108
25108
|
case 'icon':
|
25109
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
25109
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$x({}, cellProps));
|
25110
25110
|
break;
|
25111
25111
|
case 'progress':
|
25112
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
25112
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$x({}, cellProps));
|
25113
25113
|
break;
|
25114
25114
|
case 'link':
|
25115
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
25115
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$x({}, cellProps));
|
25116
25116
|
break;
|
25117
25117
|
default:
|
25118
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
25118
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$x({}, cellProps));
|
25119
25119
|
break;
|
25120
25120
|
}
|
25121
25121
|
}
|
25122
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
25122
|
+
return /*#__PURE__*/jsx("td", _objectSpread$x(_objectSpread$x({}, restProps), {}, {
|
25123
25123
|
children: childNode
|
25124
25124
|
}));
|
25125
25125
|
};
|
@@ -25311,8 +25311,8 @@ function useAGHistogram (_ref) {
|
|
25311
25311
|
var container$4 = "container-2r-OJ";
|
25312
25312
|
var column1 = "column1-9viTK";
|
25313
25313
|
var spinner = "spinner-00VcK";
|
25314
|
-
var css_248z$
|
25315
|
-
styleInject(css_248z$
|
25314
|
+
var css_248z$i = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
25315
|
+
styleInject(css_248z$i);
|
25316
25316
|
|
25317
25317
|
var Panel = Collapse.Panel;
|
25318
25318
|
function AGHistogram (_ref) {
|
@@ -25471,8 +25471,8 @@ var SMChart = function SMChart(props) {
|
|
25471
25471
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
25472
25472
|
};
|
25473
25473
|
|
25474
|
-
function ownKeys$
|
25475
|
-
function _objectSpread$
|
25474
|
+
function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
25475
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
25476
25476
|
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(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; } } }; }
|
25477
25477
|
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(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$4(r, a) : void 0; } }
|
25478
25478
|
function _arrayLikeToArray$4(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; }
|
@@ -25667,7 +25667,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25667
25667
|
// Convert to Dayjs
|
25668
25668
|
(_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
|
25669
25669
|
]
|
25670
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
25670
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$w(_objectSpread$w({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
25671
25671
|
style: {
|
25672
25672
|
minWidth: '200px'
|
25673
25673
|
},
|
@@ -25772,7 +25772,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25772
25772
|
},
|
25773
25773
|
dataSource: data,
|
25774
25774
|
loading: state.loading,
|
25775
|
-
pagination: _objectSpread$
|
25775
|
+
pagination: _objectSpread$w(_objectSpread$w({}, state.pagination), {}, {
|
25776
25776
|
showTotal: function showTotal(total, range) {
|
25777
25777
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
25778
25778
|
},
|
@@ -26079,7 +26079,7 @@ function BulkAction(_ref6) {
|
|
26079
26079
|
}
|
26080
26080
|
_context4.t0 = data;
|
26081
26081
|
_context4.next = 11;
|
26082
|
-
return apiInterface.update(_objectSpread$
|
26082
|
+
return apiInterface.update(_objectSpread$w(_objectSpread$w({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
26083
26083
|
case 11:
|
26084
26084
|
_context4.t1 = _context4.sent;
|
26085
26085
|
_context4.t0.push.call(_context4.t0, _context4.t1);
|
@@ -26192,8 +26192,8 @@ function SelectionText(_ref8) {
|
|
26192
26192
|
});
|
26193
26193
|
}
|
26194
26194
|
|
26195
|
-
function ownKeys$
|
26196
|
-
function _objectSpread$
|
26195
|
+
function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
26196
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
26197
26197
|
function getColumnFilterProps (_ref) {
|
26198
26198
|
var filter = _ref.filter,
|
26199
26199
|
title = _ref.title;
|
@@ -26556,7 +26556,7 @@ var selectProps = function selectProps(title, filter) {
|
|
26556
26556
|
});
|
26557
26557
|
},
|
26558
26558
|
options: filter.map(function (f) {
|
26559
|
-
return _objectSpread$
|
26559
|
+
return _objectSpread$v(_objectSpread$v({}, f), {}, {
|
26560
26560
|
label: t(f.label)
|
26561
26561
|
});
|
26562
26562
|
})
|
@@ -26605,7 +26605,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26605
26605
|
setDisplaySelectedvalues = _useState4[1];
|
26606
26606
|
var options = [];
|
26607
26607
|
options = filter.map(function (f) {
|
26608
|
-
return _objectSpread$
|
26608
|
+
return _objectSpread$v(_objectSpread$v({}, f), {}, {
|
26609
26609
|
label: t(f.label)
|
26610
26610
|
});
|
26611
26611
|
});
|
@@ -26679,8 +26679,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
26679
26679
|
};
|
26680
26680
|
};
|
26681
26681
|
|
26682
|
-
function ownKeys$
|
26683
|
-
function _objectSpread$
|
26682
|
+
function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
26683
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
26684
26684
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
26685
26685
|
var columns = configuration.columns.filter(function (c) {
|
26686
26686
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
@@ -26733,7 +26733,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
26733
26733
|
}
|
26734
26734
|
function mapColumn(column, onUpdate) {
|
26735
26735
|
var _column$field, _column$children;
|
26736
|
-
return _objectSpread$
|
26736
|
+
return _objectSpread$u(_objectSpread$u(_objectSpread$u({}, column), {}, {
|
26737
26737
|
hidden: false,
|
26738
26738
|
width: column.width || 100,
|
26739
26739
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
@@ -26783,8 +26783,8 @@ function updateData (_ref) {
|
|
26783
26783
|
};
|
26784
26784
|
}
|
26785
26785
|
|
26786
|
-
function ownKeys$
|
26787
|
-
function _objectSpread$
|
26786
|
+
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
26787
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
26788
26788
|
function applyFilterAndSortation (_ref) {
|
26789
26789
|
var data = _ref.data,
|
26790
26790
|
filters = _ref.filters,
|
@@ -26799,7 +26799,7 @@ function applyFilterAndSortation (_ref) {
|
|
26799
26799
|
processedData = sort(sorter || [], processedData);
|
26800
26800
|
return {
|
26801
26801
|
data: processedData,
|
26802
|
-
pagination: _objectSpread$
|
26802
|
+
pagination: _objectSpread$t(_objectSpread$t({}, pagination), {}, {
|
26803
26803
|
total: processedData.length
|
26804
26804
|
})
|
26805
26805
|
};
|
@@ -26884,8 +26884,8 @@ function filter(f, data) {
|
|
26884
26884
|
}
|
26885
26885
|
|
26886
26886
|
var _excluded = ["_id"];
|
26887
|
-
function ownKeys$
|
26888
|
-
function _objectSpread$
|
26887
|
+
function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
26888
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
26889
26889
|
function useTableData$1 (_ref) {
|
26890
26890
|
var _configuration$apiInt;
|
26891
26891
|
var id = _ref.id;
|
@@ -26940,7 +26940,7 @@ function useTableData$1 (_ref) {
|
|
26940
26940
|
var _configuration$create;
|
26941
26941
|
if (!dataRow) return;
|
26942
26942
|
var id = v4();
|
26943
|
-
var processedDataRow = unflatten(_objectSpread$
|
26943
|
+
var processedDataRow = unflatten(_objectSpread$s({
|
26944
26944
|
_id: id,
|
26945
26945
|
ID: id
|
26946
26946
|
}, dataRow));
|
@@ -26952,11 +26952,11 @@ function useTableData$1 (_ref) {
|
|
26952
26952
|
newData = _updateData.data;
|
26953
26953
|
_updateData.prevDataRow;
|
26954
26954
|
_updateData.index;
|
26955
|
-
var newState = _objectSpread$
|
26955
|
+
var newState = _objectSpread$s(_objectSpread$s({}, state), {}, {
|
26956
26956
|
data: newData
|
26957
26957
|
});
|
26958
26958
|
if (!filterServerSide) {
|
26959
|
-
var res = applyFilterAndSortation(_objectSpread$
|
26959
|
+
var res = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, filterData), {}, {
|
26960
26960
|
data: newData
|
26961
26961
|
}));
|
26962
26962
|
newState.data = res.data;
|
@@ -26968,33 +26968,33 @@ function useTableData$1 (_ref) {
|
|
26968
26968
|
var formData = new FormData();
|
26969
26969
|
processedDataRow._id;
|
26970
26970
|
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
26971
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
26971
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26972
26972
|
filterContex: filterContex,
|
26973
26973
|
value: JSON.stringify([value])
|
26974
26974
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
26975
26975
|
if (d && d.Result && d.Result == 'Success') return;
|
26976
|
-
setState(_objectSpread$
|
26976
|
+
setState(_objectSpread$s({}, oldState));
|
26977
26977
|
});
|
26978
26978
|
}, [state, catalogItem, filterData]);
|
26979
26979
|
useEffect(function () {
|
26980
26980
|
if (!catalogItem) return;
|
26981
|
-
setState(_objectSpread$
|
26981
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
26982
26982
|
loading: true,
|
26983
|
-
mappingData: _objectSpread$
|
26983
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26984
26984
|
filterContex: filterContex
|
26985
26985
|
})
|
26986
26986
|
}));
|
26987
26987
|
if (!filterServerSide) {
|
26988
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
26988
|
+
apiHandler.readList(configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
26989
26989
|
filterContex: filterContex
|
26990
26990
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
26991
26991
|
var newData = data.data.map(function (d) {
|
26992
|
-
return _objectSpread$
|
26992
|
+
return _objectSpread$s(_objectSpread$s({}, d), {}, {
|
26993
26993
|
_id: d._id || d.ID || nanoid()
|
26994
26994
|
});
|
26995
26995
|
});
|
26996
26996
|
onChange({
|
26997
|
-
pagination: _objectSpread$
|
26997
|
+
pagination: _objectSpread$s({}, state.pagination),
|
26998
26998
|
filters: {},
|
26999
26999
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27000
27000
|
return c.defaultSortOrder;
|
@@ -27010,7 +27010,7 @@ function useTableData$1 (_ref) {
|
|
27010
27010
|
});
|
27011
27011
|
} else {
|
27012
27012
|
onChange({
|
27013
|
-
pagination: _objectSpread$
|
27013
|
+
pagination: _objectSpread$s({}, state.pagination),
|
27014
27014
|
filters: {},
|
27015
27015
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
27016
27016
|
return c.defaultSortOrder;
|
@@ -27026,17 +27026,17 @@ function useTableData$1 (_ref) {
|
|
27026
27026
|
}
|
27027
27027
|
}, [filterContex, catalogItem]);
|
27028
27028
|
var onChange = function onChange(p, dataParam) {
|
27029
|
-
setState(_objectSpread$
|
27029
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27030
27030
|
loading: true
|
27031
27031
|
}));
|
27032
27032
|
if (!filterServerSide) {
|
27033
27033
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
27034
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27034
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$s(_objectSpread$s({}, p), {}, {
|
27035
27035
|
data: unfilteredData
|
27036
27036
|
})),
|
27037
27037
|
data = _applyFilterAndSortat.data,
|
27038
27038
|
pagination = _applyFilterAndSortat.pagination;
|
27039
|
-
setState(_objectSpread$
|
27039
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27040
27040
|
data: data,
|
27041
27041
|
pagination: pagination,
|
27042
27042
|
loading: false,
|
@@ -27047,20 +27047,20 @@ function useTableData$1 (_ref) {
|
|
27047
27047
|
sorter: p.sorter
|
27048
27048
|
});
|
27049
27049
|
} else {
|
27050
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
27050
|
+
apiHandler.readList(configuration.mapping, _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
27051
27051
|
filterContex: filterContex
|
27052
27052
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
27053
|
-
setState(_objectSpread$
|
27053
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27054
27054
|
data: data.data.map(function (dt) {
|
27055
|
-
return _objectSpread$
|
27055
|
+
return _objectSpread$s(_objectSpread$s({}, dt), {}, {
|
27056
27056
|
_id: dt._id || dt.ID || nanoid()
|
27057
27057
|
});
|
27058
27058
|
}),
|
27059
|
-
pagination: _objectSpread$
|
27059
|
+
pagination: _objectSpread$s(_objectSpread$s({}, p.pagination), {}, {
|
27060
27060
|
total: data.total
|
27061
27061
|
}),
|
27062
27062
|
loading: false,
|
27063
|
-
mappingData: _objectSpread$
|
27063
|
+
mappingData: _objectSpread$s(_objectSpread$s({}, catalogItem), {}, {
|
27064
27064
|
filterContex: filterContex
|
27065
27065
|
})
|
27066
27066
|
}));
|
@@ -27081,7 +27081,7 @@ function useTableData$1 (_ref) {
|
|
27081
27081
|
filters['_id'] = [id, 'eq', false];
|
27082
27082
|
_context.next = 4;
|
27083
27083
|
return apiHandler.readList(configuration.mapping, {
|
27084
|
-
pagination: _objectSpread$
|
27084
|
+
pagination: _objectSpread$s({}, state.pagination),
|
27085
27085
|
columns: configuration.columns,
|
27086
27086
|
filters: filters,
|
27087
27087
|
sorter: filterData.sorter
|
@@ -27100,7 +27100,7 @@ function useTableData$1 (_ref) {
|
|
27100
27100
|
};
|
27101
27101
|
}();
|
27102
27102
|
var onSelect = function onSelect(keys) {
|
27103
|
-
setState(_objectSpread$
|
27103
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27104
27104
|
selected: keys
|
27105
27105
|
}));
|
27106
27106
|
};
|
@@ -27110,7 +27110,7 @@ function useTableData$1 (_ref) {
|
|
27110
27110
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
27111
27111
|
while (1) switch (_context3.prev = _context3.next) {
|
27112
27112
|
case 0:
|
27113
|
-
setState(_objectSpread$
|
27113
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27114
27114
|
deleting: true
|
27115
27115
|
}));
|
27116
27116
|
newData = _toConsumableArray(state.data);
|
@@ -27125,7 +27125,7 @@ function useTableData$1 (_ref) {
|
|
27125
27125
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
27126
27126
|
return nd._id === state.selected[index];
|
27127
27127
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
27128
|
-
mappingData = _objectSpread$
|
27128
|
+
mappingData = _objectSpread$s(_objectSpread$s({}, mappingData), state.mappingData);
|
27129
27129
|
_context2.next = 5;
|
27130
27130
|
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);
|
27131
27131
|
case 5:
|
@@ -27175,7 +27175,7 @@ function useTableData$1 (_ref) {
|
|
27175
27175
|
}
|
27176
27176
|
_context3.next = 18;
|
27177
27177
|
return apiHandler.readList(configuration.mapping, {
|
27178
|
-
pagination: _objectSpread$
|
27178
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
27179
27179
|
current: current
|
27180
27180
|
}),
|
27181
27181
|
columns: configuration.columns,
|
@@ -27187,11 +27187,11 @@ function useTableData$1 (_ref) {
|
|
27187
27187
|
newData = data.data;
|
27188
27188
|
total = data.total;
|
27189
27189
|
case 21:
|
27190
|
-
setState(_objectSpread$
|
27190
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27191
27191
|
selected: [],
|
27192
27192
|
deleting: false,
|
27193
27193
|
data: newData,
|
27194
|
-
pagination: _objectSpread$
|
27194
|
+
pagination: _objectSpread$s(_objectSpread$s({}, state.pagination), {}, {
|
27195
27195
|
current: current,
|
27196
27196
|
total: total
|
27197
27197
|
})
|
@@ -27207,12 +27207,12 @@ function useTableData$1 (_ref) {
|
|
27207
27207
|
};
|
27208
27208
|
}();
|
27209
27209
|
function setLoading() {
|
27210
|
-
setState(_objectSpread$
|
27210
|
+
setState(_objectSpread$s(_objectSpread$s({}, state), {}, {
|
27211
27211
|
loading: true
|
27212
27212
|
}));
|
27213
27213
|
}
|
27214
|
-
return _objectSpread$
|
27215
|
-
configuration: _objectSpread$
|
27214
|
+
return _objectSpread$s(_objectSpread$s({}, state), {}, {
|
27215
|
+
configuration: _objectSpread$s(_objectSpread$s({}, configuration), {}, {
|
27216
27216
|
title: undefined
|
27217
27217
|
}),
|
27218
27218
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
@@ -27324,8 +27324,8 @@ function objectHash (obj) {
|
|
27324
27324
|
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(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; } } }; }
|
27325
27325
|
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(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$3(r, a) : void 0; } }
|
27326
27326
|
function _arrayLikeToArray$3(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; }
|
27327
|
-
function ownKeys$
|
27328
|
-
function _objectSpread$
|
27327
|
+
function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
27328
|
+
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
27329
27329
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
27330
27330
|
function useTableData (_ref) {
|
27331
27331
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
@@ -27384,7 +27384,7 @@ function useTableData (_ref) {
|
|
27384
27384
|
var _useState13 = useState({
|
27385
27385
|
loading: true,
|
27386
27386
|
deleting: false,
|
27387
|
-
pagination: _objectSpread$
|
27387
|
+
pagination: _objectSpread$r({
|
27388
27388
|
current: 1,
|
27389
27389
|
pageSize: 20,
|
27390
27390
|
total: 0,
|
@@ -27393,7 +27393,7 @@ function useTableData (_ref) {
|
|
27393
27393
|
selected: [],
|
27394
27394
|
canDelete: !!apiHandler.canDelete,
|
27395
27395
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
27396
|
-
mappingData: _objectSpread$
|
27396
|
+
mappingData: _objectSpread$r(_objectSpread$r({}, parentData), {}, {
|
27397
27397
|
prefilter: {
|
27398
27398
|
select: globalFilter.select
|
27399
27399
|
},
|
@@ -27404,7 +27404,7 @@ function useTableData (_ref) {
|
|
27404
27404
|
_useState14 = _slicedToArray(_useState13, 2),
|
27405
27405
|
state = _useState14[0],
|
27406
27406
|
setState = _useState14[1];
|
27407
|
-
var mappingData = _objectSpread$
|
27407
|
+
var mappingData = _objectSpread$r(_objectSpread$r(_objectSpread$r({}, parentData), state.data), {}, {
|
27408
27408
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
27409
27409
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
27410
27410
|
});
|
@@ -27443,7 +27443,7 @@ function useTableData (_ref) {
|
|
27443
27443
|
}
|
27444
27444
|
var dataArray = Array.isArray(data) ? data : [data];
|
27445
27445
|
var newInitData = initData;
|
27446
|
-
var newState = _objectSpread$
|
27446
|
+
var newState = _objectSpread$r({}, state);
|
27447
27447
|
var selected = [];
|
27448
27448
|
if (configuration.deselectOnUpdate == false) {
|
27449
27449
|
selected = state.selected;
|
@@ -27460,7 +27460,7 @@ function useTableData (_ref) {
|
|
27460
27460
|
dataRow: dataRow
|
27461
27461
|
}),
|
27462
27462
|
_data = _updateData.data;
|
27463
|
-
newState = _objectSpread$
|
27463
|
+
newState = _objectSpread$r(_objectSpread$r({}, newState), {}, {
|
27464
27464
|
data: _data,
|
27465
27465
|
selected: selected
|
27466
27466
|
});
|
@@ -27472,8 +27472,8 @@ function useTableData (_ref) {
|
|
27472
27472
|
dataRow: dataRow
|
27473
27473
|
}),
|
27474
27474
|
nextInitData = _updateData2.data;
|
27475
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
27476
|
-
filters: _objectSpread$
|
27475
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData), {}, {
|
27476
|
+
filters: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
|
27477
27477
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && (_configuration$filter7 = _configuration$filter7.toggle) !== null && _configuration$filter7 !== void 0 && _configuration$filter7.inQuery ? {
|
27478
27478
|
genericProps: globalFilter.toggle
|
27479
27479
|
} : undefined), {}, {
|
@@ -27483,7 +27483,7 @@ function useTableData (_ref) {
|
|
27483
27483
|
_data2 = _applyFilterAndSortat.data,
|
27484
27484
|
pagination = _applyFilterAndSortat.pagination;
|
27485
27485
|
newInitData = nextInitData;
|
27486
|
-
newState = _objectSpread$
|
27486
|
+
newState = _objectSpread$r(_objectSpread$r({}, newState), {}, {
|
27487
27487
|
pagination: pagination,
|
27488
27488
|
data: _data2,
|
27489
27489
|
selected: selected
|
@@ -27493,8 +27493,8 @@ function useTableData (_ref) {
|
|
27493
27493
|
if (apiHandler.canCreate) {
|
27494
27494
|
apiCreate(data).then(function (res) {
|
27495
27495
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
27496
|
-
initData && setInitData(_objectSpread$
|
27497
|
-
setState(_objectSpread$
|
27496
|
+
initData && setInitData(_objectSpread$r({}, initData));
|
27497
|
+
setState(_objectSpread$r({}, state));
|
27498
27498
|
}
|
27499
27499
|
});
|
27500
27500
|
}
|
@@ -27507,7 +27507,7 @@ function useTableData (_ref) {
|
|
27507
27507
|
var triggerRefresh = function triggerRefresh() {
|
27508
27508
|
var _configuration$filter8;
|
27509
27509
|
setError(undefined);
|
27510
|
-
var newGlobalFilter = _objectSpread$
|
27510
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27511
27511
|
//on refresh update default filter, since global value can change
|
27512
27512
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
27513
27513
|
var _configuration$filter9;
|
@@ -27518,7 +27518,7 @@ function useTableData (_ref) {
|
|
27518
27518
|
newGlobalFilter["default"] = _defaultFilter;
|
27519
27519
|
setGlobaFilter(newGlobalFilter);
|
27520
27520
|
}
|
27521
|
-
onChange(_objectSpread$
|
27521
|
+
onChange(_objectSpread$r({
|
27522
27522
|
pagination: state.pagination
|
27523
27523
|
}, filterData), newGlobalFilter, true);
|
27524
27524
|
};
|
@@ -27536,7 +27536,7 @@ function useTableData (_ref) {
|
|
27536
27536
|
order: c.defaultSortOrder
|
27537
27537
|
};
|
27538
27538
|
});
|
27539
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
27539
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27540
27540
|
loading: false
|
27541
27541
|
}));else {
|
27542
27542
|
onChange({
|
@@ -27579,7 +27579,7 @@ function useTableData (_ref) {
|
|
27579
27579
|
case 0:
|
27580
27580
|
filters = {};
|
27581
27581
|
filters['_id'] = [id, 'eq', false];
|
27582
|
-
ssf = _objectSpread$
|
27582
|
+
ssf = _objectSpread$r({
|
27583
27583
|
pagination: {
|
27584
27584
|
current: 1,
|
27585
27585
|
pageSize: 1
|
@@ -27590,7 +27590,7 @@ function useTableData (_ref) {
|
|
27590
27590
|
genericProps: globalFilter.toggle
|
27591
27591
|
} : undefined);
|
27592
27592
|
_context2.next = 5;
|
27593
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27593
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), ssf);
|
27594
27594
|
case 5:
|
27595
27595
|
data = _context2.sent;
|
27596
27596
|
return _context2.abrupt("return", data);
|
@@ -27634,12 +27634,12 @@ function useTableData (_ref) {
|
|
27634
27634
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
27635
27635
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
27636
27636
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
27637
|
-
setState(_objectSpread$
|
27637
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27638
27638
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
27639
27639
|
loading: true
|
27640
27640
|
}));
|
27641
27641
|
currentData = initData;
|
27642
|
-
filterData = _objectSpread$
|
27642
|
+
filterData = _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, prefilter.search), ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.applyDefaultValue) !== false || ((_configuration$filter12 = configuration.filter) === null || _configuration$filter12 === void 0 || (_configuration$filter12 = _configuration$filter12.select) === null || _configuration$filter12 === void 0 ? void 0 : _configuration$filter12.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter13 = (_configuration$filter14 = configuration.filter) === null || _configuration$filter14 === void 0 || (_configuration$filter14 = _configuration$filter14.select) === null || _configuration$filter14 === void 0 ? void 0 : _configuration$filter14.filterField) !== null && _configuration$filter13 !== void 0 ? _configuration$filter13 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
|
27643
27643
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
27644
27644
|
var _ref7 = _slicedToArray(_ref6, 2);
|
27645
27645
|
_ref7[0];
|
@@ -27647,7 +27647,7 @@ function useTableData (_ref) {
|
|
27647
27647
|
return v != null;
|
27648
27648
|
}));
|
27649
27649
|
currentFilterHash = objectHash(filterData);
|
27650
|
-
currentPagination = _objectSpread$
|
27650
|
+
currentPagination = _objectSpread$r(_objectSpread$r({}, p.pagination), {}, {
|
27651
27651
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
27652
27652
|
});
|
27653
27653
|
filterHash.current = currentFilterHash;
|
@@ -27655,7 +27655,7 @@ function useTableData (_ref) {
|
|
27655
27655
|
_context3.next = 21;
|
27656
27656
|
break;
|
27657
27657
|
}
|
27658
|
-
ssf = _objectSpread$
|
27658
|
+
ssf = _objectSpread$r({
|
27659
27659
|
pagination: currentPagination,
|
27660
27660
|
columns: configuration.columns,
|
27661
27661
|
filters: filterData,
|
@@ -27664,12 +27664,12 @@ function useTableData (_ref) {
|
|
27664
27664
|
genericProps: prefilter.toggle
|
27665
27665
|
} : undefined);
|
27666
27666
|
_context3.next = 15;
|
27667
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27667
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), overwriteMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
|
27668
27668
|
case 15:
|
27669
27669
|
data = _context3.sent;
|
27670
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$
|
27670
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), ssf);
|
27671
27671
|
currentData = data.data;
|
27672
|
-
currentPagination = _objectSpread$
|
27672
|
+
currentPagination = _objectSpread$r(_objectSpread$r({}, currentPagination), {}, {
|
27673
27673
|
total: data.total
|
27674
27674
|
});
|
27675
27675
|
_context3.next = 30;
|
@@ -27686,7 +27686,7 @@ function useTableData (_ref) {
|
|
27686
27686
|
currentData = _data3.data;
|
27687
27687
|
setInitData(currentData);
|
27688
27688
|
case 27:
|
27689
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
27689
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$r(_objectSpread$r({}, p), {}, {
|
27690
27690
|
pagination: currentPagination,
|
27691
27691
|
filters: filterData,
|
27692
27692
|
data: currentData,
|
@@ -27695,11 +27695,11 @@ function useTableData (_ref) {
|
|
27695
27695
|
currentData = _data4;
|
27696
27696
|
currentPagination = pagination;
|
27697
27697
|
case 30:
|
27698
|
-
setState(_objectSpread$
|
27698
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27699
27699
|
loading: false,
|
27700
27700
|
data: currentData,
|
27701
27701
|
pagination: currentPagination,
|
27702
|
-
mappingData: _objectSpread$
|
27702
|
+
mappingData: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
27703
27703
|
prefilter: prefilter
|
27704
27704
|
}),
|
27705
27705
|
currentFetchUrl: currentUrl
|
@@ -27721,7 +27721,7 @@ function useTableData (_ref) {
|
|
27721
27721
|
};
|
27722
27722
|
}();
|
27723
27723
|
var onSelect = function onSelect(keys) {
|
27724
|
-
setState(_objectSpread$
|
27724
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27725
27725
|
selected: keys
|
27726
27726
|
}));
|
27727
27727
|
};
|
@@ -27732,7 +27732,7 @@ function useTableData (_ref) {
|
|
27732
27732
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
27733
27733
|
while (1) switch (_context5.prev = _context5.next) {
|
27734
27734
|
case 0:
|
27735
|
-
setState(_objectSpread$
|
27735
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27736
27736
|
deleting: true
|
27737
27737
|
}));
|
27738
27738
|
newData = _toConsumableArray(state.data);
|
@@ -27772,7 +27772,7 @@ function useTableData (_ref) {
|
|
27772
27772
|
} finally {
|
27773
27773
|
_iterator.f();
|
27774
27774
|
}
|
27775
|
-
mappingData = _objectSpread$
|
27775
|
+
mappingData = _objectSpread$r(_objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), mapToggle);
|
27776
27776
|
deleteResult = undefined;
|
27777
27777
|
_context4.prev = 7;
|
27778
27778
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
@@ -27862,12 +27862,12 @@ function useTableData (_ref) {
|
|
27862
27862
|
break;
|
27863
27863
|
}
|
27864
27864
|
_context5.next = 25;
|
27865
|
-
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$
|
27866
|
-
pagination: _objectSpread$
|
27865
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$r(_objectSpread$r({}, mappingData), state.mappingData), _objectSpread$r({
|
27866
|
+
pagination: _objectSpread$r(_objectSpread$r({}, state.pagination), {}, {
|
27867
27867
|
current: current
|
27868
27868
|
}),
|
27869
27869
|
columns: configuration.columns,
|
27870
|
-
filters: _objectSpread$
|
27870
|
+
filters: _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
|
27871
27871
|
sorter: filterData.sorter
|
27872
27872
|
}, configuration !== null && configuration !== void 0 && (_configuration$filter18 = configuration.filter) !== null && _configuration$filter18 !== void 0 && (_configuration$filter18 = _configuration$filter18.toggle) !== null && _configuration$filter18 !== void 0 && _configuration$filter18.inQuery ? {
|
27873
27873
|
genericProps: globalFilter.toggle
|
@@ -27878,11 +27878,11 @@ function useTableData (_ref) {
|
|
27878
27878
|
total = data.total;
|
27879
27879
|
case 28:
|
27880
27880
|
setInitData(newInitData);
|
27881
|
-
setState(_objectSpread$
|
27881
|
+
setState(_objectSpread$r(_objectSpread$r({}, state), {}, {
|
27882
27882
|
selected: [],
|
27883
27883
|
deleting: false,
|
27884
27884
|
data: newData,
|
27885
|
-
pagination: _objectSpread$
|
27885
|
+
pagination: _objectSpread$r(_objectSpread$r({}, state.pagination), {}, {
|
27886
27886
|
current: current === 0 ? 1 : current,
|
27887
27887
|
total: total
|
27888
27888
|
})
|
@@ -27903,14 +27903,14 @@ function useTableData (_ref) {
|
|
27903
27903
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
27904
27904
|
return;
|
27905
27905
|
}
|
27906
|
-
var newGlobalFilter = _objectSpread$
|
27906
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27907
27907
|
if (value !== null && value !== void 0 && value.length) {
|
27908
27908
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
27909
27909
|
} else {
|
27910
27910
|
newGlobalFilter.select = {};
|
27911
27911
|
}
|
27912
27912
|
setGlobaFilter(newGlobalFilter);
|
27913
|
-
onChange(_objectSpread$
|
27913
|
+
onChange(_objectSpread$r({
|
27914
27914
|
pagination: state.pagination
|
27915
27915
|
}, filterData), newGlobalFilter);
|
27916
27916
|
};
|
@@ -27921,16 +27921,16 @@ function useTableData (_ref) {
|
|
27921
27921
|
return;
|
27922
27922
|
}
|
27923
27923
|
var toggleFilter = {};
|
27924
|
-
var mappingData = _objectSpread$
|
27924
|
+
var mappingData = _objectSpread$r({}, state.mappingData);
|
27925
27925
|
configuration.filter.toggle.fields.forEach(function (f) {
|
27926
27926
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
27927
27927
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
27928
27928
|
});
|
27929
|
-
var newGlobalFilter = _objectSpread$
|
27929
|
+
var newGlobalFilter = _objectSpread$r(_objectSpread$r({}, globalFilter), {}, {
|
27930
27930
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
27931
27931
|
});
|
27932
27932
|
setGlobaFilter(newGlobalFilter);
|
27933
|
-
onChange(_objectSpread$
|
27933
|
+
onChange(_objectSpread$r({
|
27934
27934
|
pagination: state.pagination
|
27935
27935
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
27936
27936
|
};
|
@@ -27943,7 +27943,7 @@ function useTableData (_ref) {
|
|
27943
27943
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
27944
27944
|
return;
|
27945
27945
|
}
|
27946
|
-
var newGlobalFilter = _objectSpread$
|
27946
|
+
var newGlobalFilter = _objectSpread$r(_objectSpread$r({}, globalFilter), {}, {
|
27947
27947
|
search: {}
|
27948
27948
|
});
|
27949
27949
|
if (value) {
|
@@ -27957,7 +27957,7 @@ function useTableData (_ref) {
|
|
27957
27957
|
});
|
27958
27958
|
}
|
27959
27959
|
setGlobaFilter(newGlobalFilter);
|
27960
|
-
onChange(_objectSpread$
|
27960
|
+
onChange(_objectSpread$r({
|
27961
27961
|
pagination: state.pagination
|
27962
27962
|
}, filterData), newGlobalFilter);
|
27963
27963
|
};
|
@@ -27967,20 +27967,20 @@ function useTableData (_ref) {
|
|
27967
27967
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
27968
27968
|
return;
|
27969
27969
|
}
|
27970
|
-
var newGlobalFilter = _objectSpread$
|
27970
|
+
var newGlobalFilter = _objectSpread$r({}, globalFilter);
|
27971
27971
|
newGlobalFilter.timeStamp = {
|
27972
27972
|
fromTimeStamp: [from],
|
27973
27973
|
toTimeStamp: [to]
|
27974
27974
|
};
|
27975
27975
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
27976
|
-
onChange(_objectSpread$
|
27976
|
+
onChange(_objectSpread$r({
|
27977
27977
|
pagination: state.pagination
|
27978
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
27978
|
+
}, filterData), undefined, true, undefined, _objectSpread$r(_objectSpread$r({}, state.mappingData), {}, {
|
27979
27979
|
from: from,
|
27980
27980
|
to: to
|
27981
27981
|
}));
|
27982
27982
|
};
|
27983
|
-
return _objectSpread$
|
27983
|
+
return _objectSpread$r(_objectSpread$r({}, state), {}, {
|
27984
27984
|
title: title,
|
27985
27985
|
configuration: configuration,
|
27986
27986
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
@@ -28022,8 +28022,8 @@ function StandardTable (_ref) {
|
|
28022
28022
|
});
|
28023
28023
|
}
|
28024
28024
|
|
28025
|
-
function ownKeys$
|
28026
|
-
function _objectSpread$
|
28025
|
+
function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28026
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28027
28027
|
function Table (props) {
|
28028
28028
|
var root = useStore();
|
28029
28029
|
var variant = useMemo(function () {
|
@@ -28031,15 +28031,15 @@ function Table (props) {
|
|
28031
28031
|
return config.variant;
|
28032
28032
|
}, [props.id]);
|
28033
28033
|
return /*#__PURE__*/jsxs(Fragment, {
|
28034
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
28034
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$q({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$q({}, props))]
|
28035
28035
|
});
|
28036
28036
|
}
|
28037
28037
|
|
28038
28038
|
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(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; } } }; }
|
28039
28039
|
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(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$2(r, a) : void 0; } }
|
28040
28040
|
function _arrayLikeToArray$2(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; }
|
28041
|
-
function ownKeys$
|
28042
|
-
function _objectSpread$
|
28041
|
+
function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28042
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28043
28043
|
function useAGGrid (_ref) {
|
28044
28044
|
var id = _ref.id,
|
28045
28045
|
filter = _ref.filter,
|
@@ -28133,7 +28133,7 @@ function useAGGrid (_ref) {
|
|
28133
28133
|
value = _ref3[1];
|
28134
28134
|
if (_idx == 0) {
|
28135
28135
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
28136
|
-
rdat.push(_objectSpread$
|
28136
|
+
rdat.push(_objectSpread$p(_objectSpread$p({}, rd), {}, {
|
28137
28137
|
grouping: [idx.toString()]
|
28138
28138
|
}));
|
28139
28139
|
var sp = key.split(':');
|
@@ -28273,11 +28273,11 @@ var loader = "loader-LaXZy";
|
|
28273
28273
|
var flex = "flex-yQdda";
|
28274
28274
|
var bar = "bar-Y663f";
|
28275
28275
|
var value = "value-FCA-6";
|
28276
|
-
var css_248z$
|
28277
|
-
styleInject(css_248z$
|
28276
|
+
var css_248z$h = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
28277
|
+
styleInject(css_248z$h);
|
28278
28278
|
|
28279
|
-
function ownKeys$
|
28280
|
-
function _objectSpread$
|
28279
|
+
function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28280
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28281
28281
|
var AGChart = function AGChart(_ref) {
|
28282
28282
|
var data = _ref.data;
|
28283
28283
|
var groupedData = [];
|
@@ -28285,11 +28285,11 @@ var AGChart = function AGChart(_ref) {
|
|
28285
28285
|
data.forEach(function (dt) {
|
28286
28286
|
if (dt.count == 0) return;
|
28287
28287
|
if (groupedData.length > dt.grouping[0]) {
|
28288
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
28288
|
+
groupedData[dt.grouping[0]].push(_objectSpread$o(_objectSpread$o({}, dt), {}, {
|
28289
28289
|
count: Number(dt.count)
|
28290
28290
|
}));
|
28291
28291
|
} else {
|
28292
|
-
groupedData.push([_objectSpread$
|
28292
|
+
groupedData.push([_objectSpread$o(_objectSpread$o({}, dt), {}, {
|
28293
28293
|
count: Number(dt.count)
|
28294
28294
|
})]);
|
28295
28295
|
}
|
@@ -28330,8 +28330,8 @@ var AGChart = function AGChart(_ref) {
|
|
28330
28330
|
});
|
28331
28331
|
};
|
28332
28332
|
|
28333
|
-
function ownKeys$
|
28334
|
-
function _objectSpread$
|
28333
|
+
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28334
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28335
28335
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
28336
28336
|
var id = _ref.id,
|
28337
28337
|
filter = _ref.filter,
|
@@ -28424,7 +28424,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
28424
28424
|
});
|
28425
28425
|
});
|
28426
28426
|
}
|
28427
|
-
return _objectSpread$
|
28427
|
+
return _objectSpread$n(_objectSpread$n({}, column), {}, {
|
28428
28428
|
cellRenderer: renderer
|
28429
28429
|
});
|
28430
28430
|
});
|
@@ -28694,8 +28694,8 @@ var CustomText = function CustomText(_ref) {
|
|
28694
28694
|
};
|
28695
28695
|
var CustomText$1 = observer(CustomText);
|
28696
28696
|
|
28697
|
-
function ownKeys$
|
28698
|
-
function _objectSpread$
|
28697
|
+
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28698
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28699
28699
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(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; } } }; }
|
28700
28700
|
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(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$1(r, a) : void 0; } }
|
28701
28701
|
function _arrayLikeToArray$1(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; }
|
@@ -28758,7 +28758,7 @@ function useFilterBoxData (id) {
|
|
28758
28758
|
} finally {
|
28759
28759
|
_iterator.f();
|
28760
28760
|
}
|
28761
|
-
return _objectSpread$
|
28761
|
+
return _objectSpread$m(_objectSpread$m({}, state), ob);
|
28762
28762
|
}
|
28763
28763
|
return {
|
28764
28764
|
configuration: configuration,
|
@@ -28772,8 +28772,8 @@ function useFilterBoxData (id) {
|
|
28772
28772
|
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; } } }; }
|
28773
28773
|
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; } }
|
28774
28774
|
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; }
|
28775
|
-
function ownKeys$
|
28776
|
-
function _objectSpread$
|
28775
|
+
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28776
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
28777
28777
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
28778
28778
|
var id = _ref.id,
|
28779
28779
|
onChangeFilter = _ref.onChangeFilter,
|
@@ -28801,7 +28801,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
28801
28801
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
28802
28802
|
mode: "single",
|
28803
28803
|
apiInterface: filter.requestOptions,
|
28804
|
-
wholeData: _objectSpread$
|
28804
|
+
wholeData: _objectSpread$l(_objectSpread$l({}, state.filter), {}, {
|
28805
28805
|
tab: tab
|
28806
28806
|
}),
|
28807
28807
|
mapping: filter.requestMapping,
|
@@ -29033,8 +29033,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
29033
29033
|
return false;
|
29034
29034
|
});
|
29035
29035
|
|
29036
|
-
function ownKeys$
|
29037
|
-
function _objectSpread$
|
29036
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
29037
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
29038
29038
|
function useUIBuilderData (id) {
|
29039
29039
|
var save = undefined;
|
29040
29040
|
var root = useStore();
|
@@ -29066,7 +29066,7 @@ function useUIBuilderData (id) {
|
|
29066
29066
|
var configuration = _useMemo.configuration;
|
29067
29067
|
useEffect(function () {
|
29068
29068
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
29069
|
-
return setFilter(_objectSpread$
|
29069
|
+
return setFilter(_objectSpread$k(_objectSpread$k({}, filter), {}, {
|
29070
29070
|
sessionGuid: res
|
29071
29071
|
}));
|
29072
29072
|
});
|
@@ -29089,8 +29089,8 @@ function useUIBuilderData (id) {
|
|
29089
29089
|
};
|
29090
29090
|
}
|
29091
29091
|
|
29092
|
-
function ownKeys$
|
29093
|
-
function _objectSpread$
|
29092
|
+
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
29093
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
29094
29094
|
function UIBuilder(_ref) {
|
29095
29095
|
var id = _ref.id;
|
29096
29096
|
var state = useUIBuilderData(id);
|
@@ -29117,7 +29117,7 @@ function UIBuilder(_ref) {
|
|
29117
29117
|
override = {
|
29118
29118
|
value: newFilter[item.field],
|
29119
29119
|
setValue: function setValue(newVal) {
|
29120
|
-
var newFilter = _objectSpread$
|
29120
|
+
var newFilter = _objectSpread$j({}, state.filter);
|
29121
29121
|
newFilter[item.field] = newVal;
|
29122
29122
|
state.setFilter(newFilter);
|
29123
29123
|
}
|
@@ -29165,7 +29165,7 @@ function UIBuilder(_ref) {
|
|
29165
29165
|
case 'AGGrid':
|
29166
29166
|
return /*#__PURE__*/jsx(AGGrid, {
|
29167
29167
|
id: item.id,
|
29168
|
-
filter: _objectSpread$
|
29168
|
+
filter: _objectSpread$j({
|
29169
29169
|
optionCodices: JSON.stringify(state.data)
|
29170
29170
|
}, state.filter),
|
29171
29171
|
override: item.id == 'AGGridTopOptionValues' ? {
|
@@ -29219,8 +29219,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29219
29219
|
var supplier = "supplier-8sm0I";
|
29220
29220
|
var dealer = "dealer-xgnku";
|
29221
29221
|
var association = "association-b8uVW";
|
29222
|
-
var css_248z$
|
29223
|
-
styleInject(css_248z$
|
29222
|
+
var css_248z$g = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
|
29223
|
+
styleInject(css_248z$g);
|
29224
29224
|
|
29225
29225
|
function getColorClass(data) {
|
29226
29226
|
switch (data.type) {
|
@@ -29325,8 +29325,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
29325
29325
|
};
|
29326
29326
|
var OrgItem$1 = observer(OrgItem);
|
29327
29327
|
|
29328
|
-
function ownKeys$
|
29329
|
-
function _objectSpread$
|
29328
|
+
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
29329
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
29330
29330
|
function useTransformJson (_ref) {
|
29331
29331
|
var id = _ref.id;
|
29332
29332
|
var _useState = useState(),
|
@@ -29392,7 +29392,7 @@ function useTransformJson (_ref) {
|
|
29392
29392
|
}();
|
29393
29393
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
29394
29394
|
var _data$children;
|
29395
|
-
return _objectSpread$
|
29395
|
+
return _objectSpread$i(_objectSpread$i({}, data), {}, {
|
29396
29396
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
29397
29397
|
data: data,
|
29398
29398
|
configuration: configuration,
|
@@ -29453,8 +29453,8 @@ var openClass = "open-class--gGXs";
|
|
29453
29453
|
var breadcrumb = "breadcrumb-Z0VvH";
|
29454
29454
|
var selected = "selected-w-sfW";
|
29455
29455
|
var disabled$2 = "disabled-0nado";
|
29456
|
-
var css_248z$
|
29457
|
-
styleInject(css_248z$
|
29456
|
+
var css_248z$f = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
|
29457
|
+
styleInject(css_248z$f);
|
29458
29458
|
|
29459
29459
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
29460
29460
|
var open = _ref.open,
|
@@ -29487,8 +29487,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29487
29487
|
|
29488
29488
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
29489
29489
|
var toolbarLeft = "toolbar-left-X9WRo";
|
29490
|
-
var css_248z$
|
29491
|
-
styleInject(css_248z$
|
29490
|
+
var css_248z$e = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
|
29491
|
+
styleInject(css_248z$e);
|
29492
29492
|
|
29493
29493
|
var Legend = function Legend(props) {
|
29494
29494
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -29542,8 +29542,8 @@ var Legend = function Legend(props) {
|
|
29542
29542
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
29543
29543
|
var mask = "mask-ssagp";
|
29544
29544
|
var transformWrapper = "transform-wrapper--8t0v";
|
29545
|
-
var css_248z$
|
29546
|
-
styleInject(css_248z$
|
29545
|
+
var css_248z$d = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
|
29546
|
+
styleInject(css_248z$d);
|
29547
29547
|
|
29548
29548
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
29549
29549
|
var _children = _ref.children,
|
@@ -30053,8 +30053,8 @@ function useCatalogEditor (id) {
|
|
30053
30053
|
};
|
30054
30054
|
}
|
30055
30055
|
|
30056
|
-
function ownKeys$
|
30057
|
-
function _objectSpread$
|
30056
|
+
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
30057
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
30058
30058
|
function DragDropUpload(_ref) {
|
30059
30059
|
var api2Params = _ref.api2Params,
|
30060
30060
|
catalogId = _ref.catalogId,
|
@@ -30162,7 +30162,7 @@ function DragDropUpload(_ref) {
|
|
30162
30162
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
30163
30163
|
children: t('backoffice.catalogeditor.classimportstarted')
|
30164
30164
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
30165
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
30165
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
30166
30166
|
children: [/*#__PURE__*/jsx("p", {
|
30167
30167
|
className: "ant-upload-drag-icon",
|
30168
30168
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
@@ -30379,12 +30379,12 @@ function CatalogEditor(_ref) {
|
|
30379
30379
|
}
|
30380
30380
|
var CatalogEditor$1 = observer(CatalogEditor);
|
30381
30381
|
|
30382
|
-
function ownKeys$
|
30383
|
-
function _objectSpread$
|
30382
|
+
function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
30383
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
30384
30384
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
30385
30385
|
var _root$contentStore$bo, _root$contentStore$ri;
|
30386
30386
|
var root = useStore();
|
30387
|
-
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
30387
|
+
return /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$g(_objectSpread$g({}, props), {}, {
|
30388
30388
|
ref: ref,
|
30389
30389
|
darkMode: root.contentStore.theme == 'darkmode',
|
30390
30390
|
jwt: root.dataStore.jwt,
|
@@ -30395,8 +30395,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
30395
30395
|
});
|
30396
30396
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
30397
30397
|
|
30398
|
-
function ownKeys$
|
30399
|
-
function _objectSpread$
|
30398
|
+
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
30399
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
30400
30400
|
|
30401
30401
|
// Type definition for the context state
|
30402
30402
|
|
@@ -30418,14 +30418,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
30418
30418
|
loading: loading,
|
30419
30419
|
setOptions: function setOptions(options) {
|
30420
30420
|
var state = root.contextStore.getContext('enricher');
|
30421
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30421
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$f(_objectSpread$f({}, state[stateKey]), {}, {
|
30422
30422
|
options: options,
|
30423
30423
|
loading: false
|
30424
30424
|
})));
|
30425
30425
|
},
|
30426
30426
|
setLoading: function setLoading(loading) {
|
30427
30427
|
var state = root.contextStore.getContext('enricher');
|
30428
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
30428
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$f(_objectSpread$f({}, state[stateKey]), {}, {
|
30429
30429
|
loading: loading
|
30430
30430
|
})));
|
30431
30431
|
}
|
@@ -30521,7 +30521,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
30521
30521
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
30522
30522
|
|
30523
30523
|
// Return context + handlers
|
30524
|
-
return _objectSpread$
|
30524
|
+
return _objectSpread$f(_objectSpread$f({}, getContext()), {}, {
|
30525
30525
|
setSelectedSerie: setSelectedSerie,
|
30526
30526
|
setSelectedFeature: setSelectedFeature,
|
30527
30527
|
setSelectedPackage: setSelectedPackage
|
@@ -30599,8 +30599,9 @@ function useModule$1 (currentModules) {
|
|
30599
30599
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30600
30600
|
label: /*#__PURE__*/jsx(Link, {
|
30601
30601
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/catalogs' + (searchParams ? '?' + searchParams.toString() : ''),
|
30602
|
-
children: t('backoffice.menu.items.label.
|
30603
|
-
})
|
30602
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalogs')
|
30603
|
+
}),
|
30604
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalogs')
|
30604
30605
|
}, {
|
30605
30606
|
key: 'series',
|
30606
30607
|
style: {
|
@@ -30609,8 +30610,9 @@ function useModule$1 (currentModules) {
|
|
30609
30610
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30610
30611
|
label: /*#__PURE__*/jsx(Link, {
|
30611
30612
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
30612
|
-
children: t('backoffice.menu.items.label.
|
30613
|
-
})
|
30613
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30614
|
+
}),
|
30615
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30614
30616
|
}]), [{
|
30615
30617
|
key: 'features',
|
30616
30618
|
style: {
|
@@ -30619,8 +30621,9 @@ function useModule$1 (currentModules) {
|
|
30619
30621
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30620
30622
|
label: /*#__PURE__*/jsx(Link, {
|
30621
30623
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
30622
|
-
children: t('backoffice.menu.items.label.
|
30623
|
-
})
|
30624
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30625
|
+
}),
|
30626
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30624
30627
|
}, {
|
30625
30628
|
key: 'options',
|
30626
30629
|
style: {
|
@@ -30629,8 +30632,9 @@ function useModule$1 (currentModules) {
|
|
30629
30632
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30630
30633
|
label: /*#__PURE__*/jsx(Link, {
|
30631
30634
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
30632
|
-
children: t('backoffice.menu.items.label.
|
30633
|
-
})
|
30635
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30636
|
+
}),
|
30637
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30634
30638
|
}, {
|
30635
30639
|
key: 'items',
|
30636
30640
|
style: {
|
@@ -30639,8 +30643,9 @@ function useModule$1 (currentModules) {
|
|
30639
30643
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30640
30644
|
label: /*#__PURE__*/jsx(Link, {
|
30641
30645
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
30642
|
-
children: t('backoffice.menu.items.label.
|
30643
|
-
})
|
30646
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30647
|
+
}),
|
30648
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30644
30649
|
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30645
30650
|
key: 'detailInfos',
|
30646
30651
|
style: {
|
@@ -30649,8 +30654,9 @@ function useModule$1 (currentModules) {
|
|
30649
30654
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30650
30655
|
label: /*#__PURE__*/jsx(Link, {
|
30651
30656
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30652
|
-
children: t('backoffice.menu.items.label.
|
30653
|
-
})
|
30657
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30658
|
+
}),
|
30659
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30654
30660
|
}]))
|
30655
30661
|
}, {
|
30656
30662
|
key: 'tabgroups',
|
@@ -30661,7 +30667,8 @@ function useModule$1 (currentModules) {
|
|
30661
30667
|
label: /*#__PURE__*/jsx(Link, {
|
30662
30668
|
to: 'catalogs/idmeditor/packages/' + packageId + '/tabgroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
30663
30669
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
30664
|
-
})
|
30670
|
+
}),
|
30671
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableTabGroups')
|
30665
30672
|
}, {
|
30666
30673
|
key: 'exclusivity',
|
30667
30674
|
style: {
|
@@ -30670,54 +30677,58 @@ function useModule$1 (currentModules) {
|
|
30670
30677
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30671
30678
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
|
30672
30679
|
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30673
|
-
key: '
|
30680
|
+
key: 'eseries',
|
30674
30681
|
style: {
|
30675
30682
|
margin: 0
|
30676
30683
|
},
|
30677
30684
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30678
30685
|
label: /*#__PURE__*/jsx(Link, {
|
30679
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30680
|
-
children: t('backoffice.menu.items.label.
|
30681
|
-
})
|
30686
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eseries' + (searchParams ? '?' + searchParams.toString() : ''),
|
30687
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30688
|
+
}),
|
30689
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSeries')
|
30682
30690
|
}]), [{
|
30683
|
-
key: '
|
30691
|
+
key: 'efeatures',
|
30684
30692
|
style: {
|
30685
30693
|
margin: 0
|
30686
30694
|
},
|
30687
30695
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30688
30696
|
label: /*#__PURE__*/jsx(Link, {
|
30689
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30690
|
-
children: t('backoffice.menu.items.label.
|
30691
|
-
})
|
30697
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/efeatures' + (searchParams ? '?' + searchParams.toString() : ''),
|
30698
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30699
|
+
}),
|
30700
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeatures')
|
30692
30701
|
}, {
|
30693
|
-
key: '
|
30702
|
+
key: 'eoptions',
|
30694
30703
|
style: {
|
30695
30704
|
margin: 0
|
30696
30705
|
},
|
30697
30706
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30698
30707
|
label: /*#__PURE__*/jsx(Link, {
|
30699
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30700
|
-
children: t('backoffice.menu.items.label.
|
30701
|
-
})
|
30708
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eoptions' + (searchParams ? '?' + searchParams.toString() : ''),
|
30709
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30710
|
+
}),
|
30711
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingOptions')
|
30702
30712
|
}, {
|
30703
|
-
key: '
|
30713
|
+
key: 'eitems',
|
30704
30714
|
style: {
|
30705
30715
|
margin: 0
|
30706
30716
|
},
|
30707
30717
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30708
30718
|
label: /*#__PURE__*/jsx(Link, {
|
30709
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30710
|
-
children: t('backoffice.menu.items.label.
|
30711
|
-
})
|
30719
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitems' + (searchParams ? '?' + searchParams.toString() : ''),
|
30720
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30721
|
+
}),
|
30722
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItems')
|
30712
30723
|
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30713
|
-
key: '
|
30724
|
+
key: 'edetailInfos',
|
30714
30725
|
style: {
|
30715
30726
|
margin: 0
|
30716
30727
|
},
|
30717
30728
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
30718
30729
|
label: /*#__PURE__*/jsx(Link, {
|
30719
|
-
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/
|
30720
|
-
children: t('backoffice.menu.items.label.
|
30730
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/edetailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30731
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfos')
|
30721
30732
|
})
|
30722
30733
|
}]))
|
30723
30734
|
}, {
|
@@ -30729,7 +30740,8 @@ function useModule$1 (currentModules) {
|
|
30729
30740
|
label: /*#__PURE__*/jsx(Link, {
|
30730
30741
|
to: 'catalogs/idmeditor/packages/' + packageId + '/properties' + (searchParams ? '?' + searchParams.toString() : ''),
|
30731
30742
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
30732
|
-
})
|
30743
|
+
}),
|
30744
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableProperties')
|
30733
30745
|
}].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
30734
30746
|
key: 'partlistpos',
|
30735
30747
|
style: {
|
@@ -30739,7 +30751,8 @@ function useModule$1 (currentModules) {
|
|
30739
30751
|
label: /*#__PURE__*/jsx(Link, {
|
30740
30752
|
to: 'catalogs/idmeditor/packages/' + packageId + '/partlistpos' + (searchParams ? '?' + searchParams.toString() : ''),
|
30741
30753
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTablePartlistPos')
|
30742
|
-
})
|
30754
|
+
}),
|
30755
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePartlistPos')
|
30743
30756
|
}, {
|
30744
30757
|
key: 'groups',
|
30745
30758
|
style: {
|
@@ -30749,7 +30762,8 @@ function useModule$1 (currentModules) {
|
|
30749
30762
|
label: /*#__PURE__*/jsx(Link, {
|
30750
30763
|
to: 'catalogs/idmeditor/packages/' + packageId + '/groups' + (searchParams ? '?' + searchParams.toString() : ''),
|
30751
30764
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableGroups')
|
30752
|
-
})
|
30765
|
+
}),
|
30766
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTableGroups')
|
30753
30767
|
}, {
|
30754
30768
|
key: 'pricelists',
|
30755
30769
|
style: {
|
@@ -30759,7 +30773,8 @@ function useModule$1 (currentModules) {
|
|
30759
30773
|
label: /*#__PURE__*/jsx(Link, {
|
30760
30774
|
to: 'catalogs/idmeditor/packages/' + packageId + '/pricelists' + (searchParams ? '?' + searchParams.toString() : ''),
|
30761
30775
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTablePriceLists')
|
30762
|
-
})
|
30776
|
+
}),
|
30777
|
+
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePriceLists')
|
30763
30778
|
}]));
|
30764
30779
|
}, [packageId, selectedPackage, searchParams]);
|
30765
30780
|
if (!packageId) throw new Error('packageId is required');
|
@@ -30772,21 +30787,46 @@ function useModule$1 (currentModules) {
|
|
30772
30787
|
|
30773
30788
|
useEffect(function () {
|
30774
30789
|
var tools = [];
|
30775
|
-
if (
|
30776
|
-
|
30777
|
-
|
30778
|
-
|
30779
|
-
|
30780
|
-
|
30781
|
-
|
30782
|
-
|
30783
|
-
|
30784
|
-
|
30790
|
+
if (selectedPackage !== null && selectedPackage !== void 0 && selectedPackage._id) {
|
30791
|
+
if (selectedPackage.isApi) {
|
30792
|
+
tools.push({
|
30793
|
+
name: 'Konfigurator',
|
30794
|
+
parameters: {
|
30795
|
+
packageId: selectedPackage._id
|
30796
|
+
},
|
30797
|
+
type: 'Configurator',
|
30798
|
+
id: 'WYSIWYG',
|
30799
|
+
startWidth: 600,
|
30800
|
+
elementProps: {
|
30801
|
+
loadMask: true
|
30802
|
+
},
|
30803
|
+
defaultPinned: true
|
30804
|
+
});
|
30805
|
+
} else {
|
30806
|
+
tools.push({
|
30807
|
+
name: 'Konfigurator',
|
30808
|
+
parameters: {
|
30809
|
+
packageId: selectedPackage._id,
|
30810
|
+
isIDMData: '1'
|
30811
|
+
},
|
30812
|
+
type: 'Configurator',
|
30813
|
+
id: 'WYSIWYG',
|
30814
|
+
startWidth: 600,
|
30815
|
+
elementProps: {
|
30816
|
+
useEnricherService: true,
|
30817
|
+
loadPackage: true,
|
30818
|
+
packageId: selectedPackage._id,
|
30819
|
+
showCatalogSelection: true
|
30820
|
+
},
|
30821
|
+
defaultPinned: true
|
30822
|
+
});
|
30823
|
+
}
|
30824
|
+
}
|
30785
30825
|
root.contentStore.rightToolBar.tools = tools;
|
30786
30826
|
return function () {
|
30787
30827
|
root.contentStore.rightToolBar.tools = [];
|
30788
30828
|
};
|
30789
|
-
}, [
|
30829
|
+
}, [selectedPackage]);
|
30790
30830
|
return {
|
30791
30831
|
selectedPackage: selectedPackage,
|
30792
30832
|
packageId: packageId,
|
@@ -32937,7 +32977,7 @@ var ExclusivitySerie = function ExclusivitySerie() {
|
|
32937
32977
|
return getConfig(t);
|
32938
32978
|
}, [i18n.language]);
|
32939
32979
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32940
|
-
type: "
|
32980
|
+
type: "eseries",
|
32941
32981
|
config: config['serie']
|
32942
32982
|
});
|
32943
32983
|
};
|
@@ -32949,7 +32989,7 @@ var ExclusivityFeature = function ExclusivityFeature() {
|
|
32949
32989
|
return getConfig(t);
|
32950
32990
|
}, [i18n.language]);
|
32951
32991
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32952
|
-
type: "
|
32992
|
+
type: "efeatures",
|
32953
32993
|
config: config['feature']
|
32954
32994
|
});
|
32955
32995
|
};
|
@@ -32961,7 +33001,7 @@ var ExclusivityExclusivityDetailInfo = function ExclusivityExclusivityDetailInfo
|
|
32961
33001
|
return getConfig(t);
|
32962
33002
|
}, [i18n.language]);
|
32963
33003
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32964
|
-
type: "
|
33004
|
+
type: "edetailInfos",
|
32965
33005
|
config: config['detailInfo']
|
32966
33006
|
});
|
32967
33007
|
};
|
@@ -32973,7 +33013,7 @@ var ExclusivitySerieItems = function ExclusivitySerieItems() {
|
|
32973
33013
|
return getConfig(t);
|
32974
33014
|
}, [i18n.language]);
|
32975
33015
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32976
|
-
type: "
|
33016
|
+
type: "eitems",
|
32977
33017
|
config: config['item']
|
32978
33018
|
});
|
32979
33019
|
};
|
@@ -32985,7 +33025,7 @@ var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
|
|
32985
33025
|
return getConfig(t);
|
32986
33026
|
}, [i18n.language]);
|
32987
33027
|
return /*#__PURE__*/jsx(ExclusivityTable, {
|
32988
|
-
type: "
|
33028
|
+
type: "eoptions",
|
32989
33029
|
config: config['option']
|
32990
33030
|
});
|
32991
33031
|
};
|
@@ -33002,23 +33042,23 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33002
33042
|
selectedSerie = _useModule.selectedSerie;
|
33003
33043
|
var apiInterface = useMemo(function () {
|
33004
33044
|
var patchId = '${_id}';
|
33005
|
-
if (type === '
|
33006
|
-
if (type === '
|
33045
|
+
if (type === 'eitems') patchId = '${typeNo}';
|
33046
|
+
if (type === 'eoptions') patchId = '${optionKey}';
|
33007
33047
|
var patchId2 = '${_id}';
|
33008
|
-
if (type === '
|
33048
|
+
if (type === 'eoptions') patchId2 = '${featureNos}';
|
33009
33049
|
var subType = 'features';
|
33010
|
-
if (type === '
|
33011
|
-
if (type === '
|
33012
|
-
if (type === '
|
33013
|
-
var listType = type === '
|
33050
|
+
if (type === 'eseries' || type === 'eitems') subType = 'series';
|
33051
|
+
if (type === 'edetailInfos') subType = 'detailInfos';
|
33052
|
+
if (type === 'eoptions') subType = 'options';
|
33053
|
+
var listType = type === 'eitems' ? 'items' : 'options';
|
33014
33054
|
return {
|
33015
|
-
read: !['
|
33016
|
-
update: !['
|
33055
|
+
read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
33056
|
+
update: !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
33017
33057
|
};
|
33018
33058
|
}, [type]);
|
33019
33059
|
var oldDataRef = useRef();
|
33020
33060
|
var applicationData = useMemo(function () {
|
33021
|
-
if (type === '
|
33061
|
+
if (type === 'eitems' && !selectedSerie) {
|
33022
33062
|
return oldDataRef.current;
|
33023
33063
|
}
|
33024
33064
|
var newData = {
|
@@ -33031,13 +33071,13 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33031
33071
|
return newData;
|
33032
33072
|
}, [type, packageId, organizationId, selectedSerie]);
|
33033
33073
|
var showTable = useMemo(function () {
|
33034
|
-
return selectedPackage && (!['
|
33074
|
+
return selectedPackage && (!['eitems'].includes(type) || type === 'eitems' && applicationData);
|
33035
33075
|
}, [type, applicationData, selectedPackage]);
|
33036
33076
|
var configuration = useMemo(function () {
|
33037
33077
|
return {
|
33038
33078
|
type: 'dotnetSSM',
|
33039
33079
|
apiInterface: apiInterface,
|
33040
|
-
idCol: type === '
|
33080
|
+
idCol: type === 'eitems' ? 'typeNo' : type === 'eoptions' ? '_id' : undefined,
|
33041
33081
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
33042
33082
|
floatingFilter: true,
|
33043
33083
|
colDef: [{
|
@@ -33072,7 +33112,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33072
33112
|
},
|
33073
33113
|
children: [/*#__PURE__*/jsx(PackageSelector$1, {
|
33074
33114
|
modules: ['exclusivity', type]
|
33075
|
-
}), type === '
|
33115
|
+
}), type === 'eitems' && /*#__PURE__*/jsx(SeriesSelector$3, {
|
33076
33116
|
modules: ['exclusivity', type],
|
33077
33117
|
dataSet: 'exclusivities'
|
33078
33118
|
})]
|
@@ -33458,8 +33498,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
|
|
33458
33498
|
return value === getDefaultValue(type);
|
33459
33499
|
};
|
33460
33500
|
|
33461
|
-
function ownKeys$
|
33462
|
-
function _objectSpread$
|
33501
|
+
function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
33502
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
33463
33503
|
/**
|
33464
33504
|
* Custom hook to manage price factor state and logic
|
33465
33505
|
* @param props - Hook configuration
|
@@ -33496,7 +33536,7 @@ function usePriceFactor(_ref) {
|
|
33496
33536
|
var updateEntries = function updateEntries(newTypeEntries) {
|
33497
33537
|
setHasChangedCurrentType(true);
|
33498
33538
|
setEntries(function (prev) {
|
33499
|
-
return _objectSpread$
|
33539
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
|
33500
33540
|
});
|
33501
33541
|
};
|
33502
33542
|
var handleModalOpen = useCallback(function () {
|
@@ -33533,7 +33573,7 @@ function usePriceFactor(_ref) {
|
|
33533
33573
|
// Always ensure at least one entry when switching types
|
33534
33574
|
var newEntries = hasChangedCurrentType ? [] : entries[newType];
|
33535
33575
|
setEntries(function (prev) {
|
33536
|
-
return _objectSpread$
|
33576
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
|
33537
33577
|
value: getDefaultValue(newType),
|
33538
33578
|
isValid: true
|
33539
33579
|
}]));
|
@@ -33637,8 +33677,8 @@ var space = "space-T5Mkd";
|
|
33637
33677
|
var input$1 = "input-SK-Fo";
|
33638
33678
|
var addButton$1 = "addButton-AVN8Y";
|
33639
33679
|
var helpText = "helpText-QYQQF";
|
33640
|
-
var css_248z$
|
33641
|
-
styleInject(css_248z$
|
33680
|
+
var css_248z$c = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
|
33681
|
+
styleInject(css_248z$c);
|
33642
33682
|
|
33643
33683
|
function PriceFactorCellRenderer(props) {
|
33644
33684
|
var data = props.data,
|
@@ -33806,8 +33846,8 @@ var difference = "difference-xT9ZP";
|
|
33806
33846
|
var differencePositive = "differencePositive-hGhZO";
|
33807
33847
|
var differenceNegative = "differenceNegative-3CEZA";
|
33808
33848
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
33809
|
-
var css_248z$
|
33810
|
-
styleInject(css_248z$
|
33849
|
+
var css_248z$b = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
|
33850
|
+
styleInject(css_248z$b);
|
33811
33851
|
|
33812
33852
|
function PriceDisplayCellRenderer(props) {
|
33813
33853
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -33897,23 +33937,23 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
33897
33937
|
return priceFeatureGroups;
|
33898
33938
|
}
|
33899
33939
|
|
33900
|
-
var wrapper$
|
33940
|
+
var wrapper$3 = "wrapper-5t6RT";
|
33901
33941
|
var input = "input-leHam";
|
33902
33942
|
var disabled$1 = "disabled-Llkqu";
|
33903
|
-
var css_248z$
|
33904
|
-
styleInject(css_248z$
|
33943
|
+
var css_248z$a = ".wrapper-5t6RT {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
|
33944
|
+
styleInject(css_248z$a);
|
33905
33945
|
|
33906
|
-
function ownKeys$
|
33907
|
-
function _objectSpread$
|
33946
|
+
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
33947
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
33908
33948
|
function PriceFactorInput(props) {
|
33909
33949
|
return /*#__PURE__*/jsxs("div", {
|
33910
|
-
className: classnames(wrapper$
|
33950
|
+
className: classnames(wrapper$3, props.className),
|
33911
33951
|
children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
|
33912
33952
|
title: props.tooltip,
|
33913
33953
|
children: /*#__PURE__*/jsx("div", {
|
33914
33954
|
id: "price-factor-input",
|
33915
33955
|
className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
|
33916
|
-
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$
|
33956
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
33917
33957
|
singleClick: true
|
33918
33958
|
}))
|
33919
33959
|
})
|
@@ -33923,11 +33963,11 @@ function PriceFactorInput(props) {
|
|
33923
33963
|
|
33924
33964
|
var inputHeader = "input-header--4KDP";
|
33925
33965
|
var factorInput = "factor-input-MX85Z";
|
33926
|
-
var css_248z$
|
33927
|
-
styleInject(css_248z$
|
33966
|
+
var css_248z$9 = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z #price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z #price-factor-input:hover {\n border-color: #4096ff;\n}\n";
|
33967
|
+
styleInject(css_248z$9);
|
33928
33968
|
|
33929
|
-
function ownKeys$
|
33930
|
-
function _objectSpread$
|
33969
|
+
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
33970
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
33931
33971
|
var Prices = observer(function (_ref) {
|
33932
33972
|
var _pricelist$seriePrice;
|
33933
33973
|
var organizationId = _ref.organizationId,
|
@@ -33943,8 +33983,8 @@ var Prices = observer(function (_ref) {
|
|
33943
33983
|
if (!selectedSerie) return;
|
33944
33984
|
|
33945
33985
|
// Create copies of the objects to modify
|
33946
|
-
var newFactors = _objectSpread$
|
33947
|
-
var serieFactors = _objectSpread$
|
33986
|
+
var newFactors = _objectSpread$c({}, pricelist.pgPricefactors);
|
33987
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
33948
33988
|
if (value.length === 0) {
|
33949
33989
|
// Remove the empty price feature group
|
33950
33990
|
delete serieFactors[priceFeatureGroupItem];
|
@@ -33976,8 +34016,8 @@ var Prices = observer(function (_ref) {
|
|
33976
34016
|
if (!selectedSerie) return;
|
33977
34017
|
|
33978
34018
|
// Create copies of the objects to modify
|
33979
|
-
var newFactors = _objectSpread$
|
33980
|
-
var serieFactors = _objectSpread$
|
34019
|
+
var newFactors = _objectSpread$c({}, pricelist.articlePricefactors);
|
34020
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
33981
34021
|
if (value.length === 0) {
|
33982
34022
|
// Remove the empty article price factor
|
33983
34023
|
delete serieFactors[typeNo];
|
@@ -34009,8 +34049,8 @@ var Prices = observer(function (_ref) {
|
|
34009
34049
|
if (!selectedSerie) return;
|
34010
34050
|
|
34011
34051
|
// Create copies of the objects to modify
|
34012
|
-
var newFactors = _objectSpread$
|
34013
|
-
var serieFactors = _objectSpread$
|
34052
|
+
var newFactors = _objectSpread$c({}, pricelist.typeKeyPricefactors);
|
34053
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
34014
34054
|
if (value.length === 0) {
|
34015
34055
|
// Remove the empty article price factor
|
34016
34056
|
delete serieFactors[typeKey];
|
@@ -34042,7 +34082,7 @@ var Prices = observer(function (_ref) {
|
|
34042
34082
|
if (!selectedSerie) return;
|
34043
34083
|
|
34044
34084
|
// Create a copy of the object to modify
|
34045
|
-
var newFactors = _objectSpread$
|
34085
|
+
var newFactors = _objectSpread$c({}, pricelist.seriePricefactors);
|
34046
34086
|
if (value.length === 0) {
|
34047
34087
|
// Remove the empty serie price factor
|
34048
34088
|
delete newFactors[selectedSerie.serieNo];
|
@@ -34598,19 +34638,19 @@ function Content$3() {
|
|
34598
34638
|
path: ":packageId/tabgroups",
|
34599
34639
|
element: /*#__PURE__*/jsx(TableTabGroups, {})
|
34600
34640
|
}), /*#__PURE__*/jsx(Route, {
|
34601
|
-
path: ":packageId/exclusivity/
|
34641
|
+
path: ":packageId/exclusivity/eseries",
|
34602
34642
|
element: /*#__PURE__*/jsx(ExclusivitySerie, {})
|
34603
34643
|
}), /*#__PURE__*/jsx(Route, {
|
34604
|
-
path: ":packageId/exclusivity/
|
34644
|
+
path: ":packageId/exclusivity/eitems",
|
34605
34645
|
element: /*#__PURE__*/jsx(ExclusivitySerieItems, {})
|
34606
34646
|
}), /*#__PURE__*/jsx(Route, {
|
34607
|
-
path: ":packageId/exclusivity/
|
34647
|
+
path: ":packageId/exclusivity/edetailInfos",
|
34608
34648
|
element: /*#__PURE__*/jsx(ExclusivityExclusivityDetailInfo, {})
|
34609
34649
|
}), /*#__PURE__*/jsx(Route, {
|
34610
|
-
path: ":packageId/exclusivity/
|
34650
|
+
path: ":packageId/exclusivity/efeatures",
|
34611
34651
|
element: /*#__PURE__*/jsx(ExclusivityFeature, {})
|
34612
34652
|
}), /*#__PURE__*/jsx(Route, {
|
34613
|
-
path: ":packageId/exclusivity/
|
34653
|
+
path: ":packageId/exclusivity/eoptions",
|
34614
34654
|
element: /*#__PURE__*/jsx(ExclusivityFeatureOption, {})
|
34615
34655
|
}), /*#__PURE__*/jsx(Route, {
|
34616
34656
|
path: ":packageId/properties",
|
@@ -34628,8 +34668,8 @@ function Content$3() {
|
|
34628
34668
|
});
|
34629
34669
|
}
|
34630
34670
|
|
34631
|
-
function ownKeys$
|
34632
|
-
function _objectSpread$
|
34671
|
+
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
34672
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
34633
34673
|
function UploadButton (_ref) {
|
34634
34674
|
var action = _ref.action,
|
34635
34675
|
title = _ref.title,
|
@@ -34774,7 +34814,7 @@ function UploadButton (_ref) {
|
|
34774
34814
|
}
|
34775
34815
|
};
|
34776
34816
|
return /*#__PURE__*/jsx(Fragment, {
|
34777
|
-
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$
|
34817
|
+
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$b(_objectSpread$b({}, props), {}, {
|
34778
34818
|
children: progress !== 'SUCCESS' && /*#__PURE__*/jsx(Button$1, {
|
34779
34819
|
icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
|
34780
34820
|
disabled: disabled,
|
@@ -34785,8 +34825,8 @@ function UploadButton (_ref) {
|
|
34785
34825
|
}
|
34786
34826
|
|
34787
34827
|
var errorDescription = "error-description-VE3n0";
|
34788
|
-
var css_248z$
|
34789
|
-
styleInject(css_248z$
|
34828
|
+
var css_248z$8 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
34829
|
+
styleInject(css_248z$8);
|
34790
34830
|
|
34791
34831
|
function IDMImportForm (_ref) {
|
34792
34832
|
var idmService = _ref.idmService,
|
@@ -34933,8 +34973,8 @@ function OpenModalButton (_ref) {
|
|
34933
34973
|
});
|
34934
34974
|
}
|
34935
34975
|
|
34936
|
-
function ownKeys$
|
34937
|
-
function _objectSpread$
|
34976
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
34977
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
34938
34978
|
|
34939
34979
|
// Type definition for the context state
|
34940
34980
|
|
@@ -34956,14 +34996,14 @@ var useCatalogContext = function useCatalogContext() {
|
|
34956
34996
|
loading: loading,
|
34957
34997
|
setOptions: function setOptions(options) {
|
34958
34998
|
var state = root.contextStore.getContext('catalog');
|
34959
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
34999
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$a(_objectSpread$a({}, state[stateKey]), {}, {
|
34960
35000
|
options: options,
|
34961
35001
|
loading: false
|
34962
35002
|
})));
|
34963
35003
|
},
|
34964
35004
|
setLoading: function setLoading(loading) {
|
34965
35005
|
var state = root.contextStore.getContext('catalog');
|
34966
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
35006
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$a(_objectSpread$a({}, state[stateKey]), {}, {
|
34967
35007
|
loading: loading
|
34968
35008
|
})));
|
34969
35009
|
}
|
@@ -35050,7 +35090,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
35050
35090
|
}, [urlCatalogId, getContext().catalogId, setSelectedCatalog]);
|
35051
35091
|
|
35052
35092
|
// Return context + handlers
|
35053
|
-
return _objectSpread$
|
35093
|
+
return _objectSpread$a(_objectSpread$a({}, getContext()), {}, {
|
35054
35094
|
setSelectedSerie: setSelectedSerie,
|
35055
35095
|
setSelectedFeature: setSelectedFeature,
|
35056
35096
|
setSelectedCatalog: setSelectedCatalog
|
@@ -35873,7 +35913,8 @@ function useModule (currentModules) {
|
|
35873
35913
|
label: /*#__PURE__*/jsx(Link, {
|
35874
35914
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
35875
35915
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
|
35876
|
-
})
|
35916
|
+
}),
|
35917
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
|
35877
35918
|
}, {
|
35878
35919
|
key: 'features',
|
35879
35920
|
style: {
|
@@ -35883,7 +35924,8 @@ function useModule (currentModules) {
|
|
35883
35924
|
label: /*#__PURE__*/jsx(Link, {
|
35884
35925
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
35885
35926
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
35886
|
-
})
|
35927
|
+
}),
|
35928
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
35887
35929
|
}, {
|
35888
35930
|
key: 'options',
|
35889
35931
|
style: {
|
@@ -35893,7 +35935,8 @@ function useModule (currentModules) {
|
|
35893
35935
|
label: /*#__PURE__*/jsx(Link, {
|
35894
35936
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
35895
35937
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
35896
|
-
})
|
35938
|
+
}),
|
35939
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
35897
35940
|
}, {
|
35898
35941
|
key: 'optiongroups',
|
35899
35942
|
style: {
|
@@ -35903,7 +35946,8 @@ function useModule (currentModules) {
|
|
35903
35946
|
label: /*#__PURE__*/jsx(Link, {
|
35904
35947
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/optiongroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
35905
35948
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups')
|
35906
|
-
})
|
35949
|
+
}),
|
35950
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups')
|
35907
35951
|
}, {
|
35908
35952
|
key: 'featureclasses',
|
35909
35953
|
style: {
|
@@ -35913,7 +35957,8 @@ function useModule (currentModules) {
|
|
35913
35957
|
label: /*#__PURE__*/jsx(Link, {
|
35914
35958
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/featureclasses' + (searchParams ? '?' + searchParams.toString() : ''),
|
35915
35959
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
35916
|
-
})
|
35960
|
+
}),
|
35961
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
35917
35962
|
}, {
|
35918
35963
|
key: 'items',
|
35919
35964
|
style: {
|
@@ -35923,7 +35968,8 @@ function useModule (currentModules) {
|
|
35923
35968
|
label: /*#__PURE__*/jsx(Link, {
|
35924
35969
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
35925
35970
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
35926
|
-
})
|
35971
|
+
}),
|
35972
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
35927
35973
|
}, {
|
35928
35974
|
key: 'decisions',
|
35929
35975
|
style: {
|
@@ -35933,7 +35979,8 @@ function useModule (currentModules) {
|
|
35933
35979
|
label: /*#__PURE__*/jsx(Link, {
|
35934
35980
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
|
35935
35981
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
35936
|
-
})
|
35982
|
+
}),
|
35983
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
35937
35984
|
}, {
|
35938
35985
|
key: 'partlists',
|
35939
35986
|
style: {
|
@@ -35943,7 +35990,8 @@ function useModule (currentModules) {
|
|
35943
35990
|
label: /*#__PURE__*/jsx(Link, {
|
35944
35991
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/partlists' + (searchParams ? '?' + searchParams.toString() : ''),
|
35945
35992
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
|
35946
|
-
})
|
35993
|
+
}),
|
35994
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
|
35947
35995
|
}, {
|
35948
35996
|
key: 'detailinfos',
|
35949
35997
|
style: {
|
@@ -35953,7 +36001,8 @@ function useModule (currentModules) {
|
|
35953
36001
|
label: /*#__PURE__*/jsx(Link, {
|
35954
36002
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/detailinfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
35955
36003
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
35956
|
-
})
|
36004
|
+
}),
|
36005
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
35957
36006
|
}, {
|
35958
36007
|
key: 'pricefeaturegroups',
|
35959
36008
|
style: {
|
@@ -35963,7 +36012,8 @@ function useModule (currentModules) {
|
|
35963
36012
|
label: /*#__PURE__*/jsx(Link, {
|
35964
36013
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/pricefeaturegroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
35965
36014
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups')
|
35966
|
-
})
|
36015
|
+
}),
|
36016
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTablePriceFeatureGroups')
|
35967
36017
|
}, {
|
35968
36018
|
key: 'prices',
|
35969
36019
|
style: {
|
@@ -35973,7 +36023,8 @@ function useModule (currentModules) {
|
|
35973
36023
|
label: /*#__PURE__*/jsx(Link, {
|
35974
36024
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/prices' + (searchParams ? '?' + searchParams.toString() : ''),
|
35975
36025
|
children: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
35976
|
-
})
|
36026
|
+
}),
|
36027
|
+
title: t('backoffice.menu.prices.label.IDMCatalogEditorTablePrices')
|
35977
36028
|
}];
|
35978
36029
|
}, [catalogId]);
|
35979
36030
|
if (!catalogId) throw new Error('catalogId is required');
|
@@ -35988,18 +36039,24 @@ function useModule (currentModules) {
|
|
35988
36039
|
if (catalogId) tools.push({
|
35989
36040
|
name: 'Konfigurator',
|
35990
36041
|
parameters: {
|
35991
|
-
|
36042
|
+
catalogId: catalogId,
|
36043
|
+
isIDMData: '1'
|
35992
36044
|
},
|
35993
36045
|
type: 'Configurator',
|
35994
36046
|
id: 'WYSIWYG',
|
35995
36047
|
startWidth: 600,
|
35996
|
-
defaultPinned: true
|
36048
|
+
defaultPinned: true,
|
36049
|
+
elementProps: {
|
36050
|
+
useIDMService: true,
|
36051
|
+
catalogId: catalogId,
|
36052
|
+
showCatalogSelection: true
|
36053
|
+
}
|
35997
36054
|
});
|
35998
36055
|
root.contentStore.rightToolBar.tools = tools;
|
35999
36056
|
return function () {
|
36000
36057
|
root.contentStore.rightToolBar.tools = [];
|
36001
36058
|
};
|
36002
|
-
}, [catalogId]);
|
36059
|
+
}, [catalogId, selectedCatalog, currentModules]);
|
36003
36060
|
return {
|
36004
36061
|
organizationId: organizationId,
|
36005
36062
|
apiConfig: root.configurationStore.apiConfig,
|
@@ -37016,11 +37073,11 @@ var formContent = "form-content-H-AkE";
|
|
37016
37073
|
var footerButtons = "footer-buttons-4cwcu";
|
37017
37074
|
var addButton = "add-button-w-6Lk";
|
37018
37075
|
var footerContent = "footer-content-sOrT1";
|
37019
|
-
var css_248z$
|
37020
|
-
styleInject(css_248z$
|
37076
|
+
var css_248z$7 = ".container-wGptw {\n display: flex;\n flex-direction: column;\n height: 500px;\n}\n\n.scrollable-content-zRBJy {\n flex-grow: 1;\n overflow: auto;\n margin-bottom: 16px;\n}\n\n.section-title-s2qIs {\n margin-bottom: 16px;\n}\n\n.action-item-LjQVf {\n width: 100%;\n}\n\n.action-item-highlighted-pjO7e {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n\n.form-container-gF94J {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.form-layout-Ykach {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.form-content-H-AkE {\n flex-grow: 1;\n overflow: auto;\n}\n\n.footer-buttons-4cwcu {\n margin-top: auto;\n}\n\n.add-button-w-6Lk {\n width: 100%;\n}\n\n.footer-content-sOrT1 {\n text-align: center;\n padding: 8px 0;\n}\n";
|
37077
|
+
styleInject(css_248z$7);
|
37021
37078
|
|
37022
|
-
function ownKeys$
|
37023
|
-
function _objectSpread$
|
37079
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
37080
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
37024
37081
|
var ACTION_TYPES = {
|
37025
37082
|
SET_FEATURE_DEFAULT: 'SET_FEATURE_DEFAULT',
|
37026
37083
|
SET_FEATURE_FIXED: 'SET_FEATURE_FIXED',
|
@@ -37058,7 +37115,7 @@ function ActionForm(_ref) {
|
|
37058
37115
|
var _useTranslation = useTranslation(),
|
37059
37116
|
t = _useTranslation.t;
|
37060
37117
|
var defaultValues = useMemo(function () {
|
37061
|
-
return _objectSpread$
|
37118
|
+
return _objectSpread$9({
|
37062
37119
|
actionType: ACTION_TYPES.SET_FEATURE_DEFAULT,
|
37063
37120
|
referenceType: REFERENCE_TYPES.OPTION_REF
|
37064
37121
|
}, initialValues);
|
@@ -37510,7 +37567,8 @@ function OptionCombinations(_ref) {
|
|
37510
37567
|
});
|
37511
37568
|
}, [decision, setNodeDataValue]);
|
37512
37569
|
var removeFeature = useCallback(function (value) {
|
37513
|
-
var
|
37570
|
+
var _decision$featureRefs3;
|
37571
|
+
var index = (_decision$featureRefs3 = decision.featureRefs) === null || _decision$featureRefs3 === void 0 ? void 0 : _decision$featureRefs3.findIndex(function (featureRef) {
|
37514
37572
|
return featureRef === value;
|
37515
37573
|
});
|
37516
37574
|
var newRefs = _toConsumableArray(decision.featureRefs);
|
@@ -37538,15 +37596,15 @@ function OptionCombinations(_ref) {
|
|
37538
37596
|
};
|
37539
37597
|
}, []);
|
37540
37598
|
var configuration = useMemo(function () {
|
37541
|
-
var _decision$
|
37599
|
+
var _decision$featureRefs4, _decision$featureRefs5;
|
37542
37600
|
return {
|
37543
37601
|
type: 'dotnetSSM',
|
37544
37602
|
apiInterface: apiInterface,
|
37545
37603
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
37546
|
-
colDef: [].concat(_toConsumableArray((_decision$
|
37547
|
-
var _decision$
|
37604
|
+
colDef: [].concat(_toConsumableArray((_decision$featureRefs4 = (_decision$featureRefs5 = decision.featureRefs) === null || _decision$featureRefs5 === void 0 ? void 0 : _decision$featureRefs5.map(function (featureRef, i) {
|
37605
|
+
var _decision$featureRefs6, _decision$featureRefs7;
|
37548
37606
|
return {
|
37549
|
-
headerName: (_decision$
|
37607
|
+
headerName: (_decision$featureRefs6 = (_decision$featureRefs7 = decision.featureRefsDisplayTexts) === null || _decision$featureRefs7 === void 0 || (_decision$featureRefs7 = _decision$featureRefs7[i]) === null || _decision$featureRefs7 === void 0 ? void 0 : _decision$featureRefs7[i18n.language.toUpperCase()]) !== null && _decision$featureRefs6 !== void 0 ? _decision$featureRefs6 : featureRef,
|
37550
37608
|
field: "optionsSetRefs.".concat(featureRef),
|
37551
37609
|
editable: true,
|
37552
37610
|
isDictionary: true,
|
@@ -37563,7 +37621,7 @@ function OptionCombinations(_ref) {
|
|
37563
37621
|
})
|
37564
37622
|
}
|
37565
37623
|
};
|
37566
|
-
})) !== null && _decision$
|
37624
|
+
})) !== null && _decision$featureRefs4 !== void 0 ? _decision$featureRefs4 : []), [{
|
37567
37625
|
headerName: 'backoffice.idmCatalog.optionCombinations.label.newFeature',
|
37568
37626
|
field: 'featureRefs',
|
37569
37627
|
editable: false,
|
@@ -37578,8 +37636,8 @@ function OptionCombinations(_ref) {
|
|
37578
37636
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features'
|
37579
37637
|
},
|
37580
37638
|
filter: function filter(_, lookupData) {
|
37581
|
-
var _decision$
|
37582
|
-
return !((_decision$
|
37639
|
+
var _decision$featureRefs8;
|
37640
|
+
return !((_decision$featureRefs8 = decision.featureRefs) !== null && _decision$featureRefs8 !== void 0 && _decision$featureRefs8.includes(lookupData.featureNo));
|
37583
37641
|
},
|
37584
37642
|
lookupValue: 'featureText',
|
37585
37643
|
lookupKey: 'featureNo',
|
@@ -38366,8 +38424,8 @@ var TablePartlists = observer(function () {
|
|
38366
38424
|
});
|
38367
38425
|
});
|
38368
38426
|
|
38369
|
-
function ownKeys$
|
38370
|
-
function _objectSpread$
|
38427
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
38428
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
38371
38429
|
function PriceFeatureGroupPercentageSurcharge(_ref) {
|
38372
38430
|
var priceFeatureGroup = _ref.priceFeatureGroup,
|
38373
38431
|
catalogId = _ref.catalogId,
|
@@ -38394,7 +38452,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
38394
38452
|
var newRefsDisplayTexts = _toConsumableArray(priceFeatureGroup.featureNosDisplayTexts);
|
38395
38453
|
newRefs.splice(index, 1);
|
38396
38454
|
newRefsDisplayTexts.splice(index, 1);
|
38397
|
-
var updatedPriceFeatureGroup = _objectSpread$
|
38455
|
+
var updatedPriceFeatureGroup = _objectSpread$8(_objectSpread$8({}, priceFeatureGroup), {}, {
|
38398
38456
|
featureNos: newRefs,
|
38399
38457
|
featureNosDisplayTexts: newRefsDisplayTexts
|
38400
38458
|
});
|
@@ -38734,8 +38792,8 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
38734
38792
|
}, priceFeatureGroup._id);
|
38735
38793
|
}
|
38736
38794
|
|
38737
|
-
function ownKeys$
|
38738
|
-
function _objectSpread$
|
38795
|
+
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
38796
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
38739
38797
|
var TablePriceFeatureGroups = observer(function () {
|
38740
38798
|
var _useTranslation = useTranslation(),
|
38741
38799
|
t = _useTranslation.t;
|
@@ -38830,7 +38888,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
38830
38888
|
return update.node.id == selectedNodeId;
|
38831
38889
|
});
|
38832
38890
|
if (current) {
|
38833
|
-
setSelectedPriceFeatureGroup(_objectSpread$
|
38891
|
+
setSelectedPriceFeatureGroup(_objectSpread$7({}, current.data));
|
38834
38892
|
}
|
38835
38893
|
}
|
38836
38894
|
};
|
@@ -39772,8 +39830,8 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
39772
39830
|
};
|
39773
39831
|
var FileUploadOrders = observer(FileUploadWrapper);
|
39774
39832
|
|
39775
|
-
function ownKeys$
|
39776
|
-
function _objectSpread$
|
39833
|
+
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
39834
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
39777
39835
|
var ContentWrapper = function ContentWrapper(_ref) {
|
39778
39836
|
var id = _ref.id;
|
39779
39837
|
var root = useStore();
|
@@ -39846,7 +39904,7 @@ var ContentCard = observer(function (_ref3) {
|
|
39846
39904
|
var root = useStore();
|
39847
39905
|
var configuration = root.configurationStore.getConfiguration(configId);
|
39848
39906
|
return /*#__PURE__*/jsxs("div", {
|
39849
|
-
style: _objectSpread$
|
39907
|
+
style: _objectSpread$6(_objectSpread$6({}, !inGroup ? {
|
39850
39908
|
height: '100%'
|
39851
39909
|
} : {
|
39852
39910
|
maxHeight: '60vh'
|
@@ -39897,8 +39955,8 @@ var Content = observer(ContentWrapper);
|
|
39897
39955
|
var layout = "layout-gqKsp";
|
39898
39956
|
var contentWrapper = "content-wrapper-mQSc0";
|
39899
39957
|
var detail = "detail-WeK8Q";
|
39900
|
-
var css_248z$
|
39901
|
-
styleInject(css_248z$
|
39958
|
+
var css_248z$6 = ".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 {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #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 {\n border-left: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #welcomeText {\n border-right: 1px solid black;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode #Profile {\n background-color: #001529 !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode {\n background-color: #fff !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.darkmode * {\n color: rgb(255, 255, 255);\n}\n.diva-component-DIVA_BACKOFFICE_NEW #diva-header.lightmode * {\n color: rgb(0, 0, 0);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW ::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .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 {\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 {\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 {\n box-shadow: inset 0 0 10px 10px #bdbdbd;\n border: solid 3px transparent;\n border-radius: 10px;\n}\n";
|
39959
|
+
styleInject(css_248z$6);
|
39902
39960
|
|
39903
39961
|
function Detail(_ref) {
|
39904
39962
|
var _info$description, _container$current, _info$width, _info$submitButtonTex, _info$data;
|
@@ -40240,8 +40298,8 @@ var Modal$1 = observer(Modal);
|
|
40240
40298
|
|
40241
40299
|
var snow = "snow-14T01";
|
40242
40300
|
var sun = "sun-ijIPS";
|
40243
|
-
var css_248z$
|
40244
|
-
styleInject(css_248z$
|
40301
|
+
var css_248z$5 = ".snow-14T01 {\n display: none;\n position: fixed;\n font-size: 1.5rem;\n top: -1vh;\n transform: translateY(0);\n animation: fall-XG-Wo 3s linear forwards;\n background: center / contain no-repeat url(\"data:image/svg+xml,%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 512 512%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 xml%3Aspace%3D%22preserve%22%3E%3Cpath style%3D%22fill%3A%2399DDFF%3B%22 d%3D%22M512%2C256c0-9.217-7.479-16.696-16.696-16.696h-26.478l32.718-32.718%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295%09l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728V47.435c0-9.217-7.479-16.696-16.696-16.696%09c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326%09c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0%09s-16.696%2C7.479-16.696%2C16.696v26.478l-32.718-32.717c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l56.327%2C56.326%09v83.813c-10.642%2C2.168-20.536%2C6.39-29.295%2C12.197l-59.303-59.303V47.435c0-9.217-7.479-16.696-16.696-16.696%09s-16.696%2C7.479-16.696%2C16.696v46.271L98.587%2C74.978c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609l18.728%2C18.728%09H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h79.663l59.303%2C59.303%09c-5.807%2C8.759-10.027%2C18.652-12.197%2C29.295H90.391l-56.326-56.326c-6.521-6.521-17.087-6.521-23.609%2C0s-6.521%2C17.087%2C0%2C23.609%09l32.717%2C32.717H16.696C7.479%2C239.304%2C0%2C246.783%2C0%2C256s7.479%2C16.696%2C16.696%2C16.696h26.478l-32.717%2C32.718%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609c3.26%2C3.26%2C7.532%2C4.891%2C11.804%2C4.891s8.544-1.631%2C11.804-4.892l56.327-56.326h83.813%09c2.168%2C10.642%2C6.39%2C20.536%2C12.197%2C29.295l-59.303%2C59.303H47.435c-9.217%2C0-16.696%2C7.479-16.696%2C16.696%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696h46.271l-18.728%2C18.728c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892l18.728-18.728v46.271c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-79.663l59.303-59.303c8.759%2C5.807%2C18.652%2C10.027%2C29.295%2C12.197v83.813l-56.326%2C56.326%09c-6.521%2C6.521-6.521%2C17.087%2C0%2C23.609s17.087%2C6.521%2C23.609%2C0l32.718-32.718v26.478c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09s16.696-7.479%2C16.696-16.696v-26.478l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663%09c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728%09c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696h-79.663L325.6%2C301.991%09c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478C504.521%2C272.696%2C512%2C265.217%2C512%2C256z M256%2C306.087%09c-27.619%2C0-50.087-22.468-50.087-50.087s22.468-50.087%2C50.087-50.087s50.087%2C22.468%2C50.087%2C50.087S283.619%2C306.087%2C256%2C306.087z%22%2F%3E%3Cpath style%3D%22fill%3A%2373C0E6%3B%22 d%3D%22M306.087%2C256c0%2C27.619-22.468%2C50.087-50.087%2C50.087V512c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-26.478%09l32.718%2C32.718c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-56.326-56.327%09v-83.813c10.642-2.168%2C20.536-6.39%2C29.295-12.197l59.303%2C59.303v79.663c0%2C9.217%2C7.479%2C16.696%2C16.696%2C16.696%09c9.217%2C0%2C16.696-7.479%2C16.696-16.696v-46.271l18.728%2C18.728c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892s8.544-1.631%2C11.804-4.892%09c6.521-6.521%2C6.521-17.087%2C0-23.609l-18.727-18.727h46.271c9.217%2C0%2C16.696-7.479%2C16.696-16.696c0-9.217-7.479-16.696-16.696-16.696%09h-79.663L325.6%2C301.991c5.807-8.759%2C10.027-18.652%2C12.197-29.295h83.813l56.326%2C56.326c3.261%2C3.261%2C7.533%2C4.892%2C11.804%2C4.892%09s8.544-1.631%2C11.804-4.892c6.521-6.521%2C6.521-17.087%2C0-23.609l-32.717-32.717h26.478c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-26.478l32.718-32.718c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-56.327%2C56.327%09h-83.813c-2.168-10.642-6.39-20.536-12.197-29.295l59.303-59.303h79.663c9.217%2C0%2C16.696-7.479%2C16.696-16.696%09s-7.479-16.696-16.696-16.696h-46.271l18.728-18.728c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0l-18.727%2C18.728%09V47.435c0-9.217-7.479-16.696-16.696-16.696c-9.217%2C0-16.696%2C7.479-16.696%2C16.696v79.663L301.991%2C186.4%09c-8.759-5.807-18.652-10.027-29.295-12.197V90.391l56.326-56.326c6.521-6.521%2C6.521-17.087%2C0-23.609s-17.087-6.521-23.609%2C0%09l-32.717%2C32.717V16.696C272.696%2C7.479%2C265.217%2C0%2C256%2C0v205.913C283.619%2C205.913%2C306.087%2C228.381%2C306.087%2C256z%22%2F%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 width: 20px;\n height: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .snow-14T01 {\n display: block;\n}\n\n@keyframes fall-XG-Wo {\n from {\n transform: translateY(0vh) translateX(-10vw);\n }\n to {\n transform: translateY(105vh) translateX(10vw);\n }\n}\n\n.sun-ijIPS {\n color: rgba(255, 255, 255, 0.65);\n line-height: 40px;\n margin-left: 10px;\n cursor: pointer;\n}\n";
|
40302
|
+
styleInject(css_248z$5);
|
40245
40303
|
|
40246
40304
|
var SnowAnimation = function SnowAnimation(props) {
|
40247
40305
|
var _useState = useState(),
|
@@ -40406,19 +40464,21 @@ var sel = "sel-iUm8X";
|
|
40406
40464
|
var button = "button-K-0KR";
|
40407
40465
|
var toolbarLayout = "toolbar-layout-DUuBn";
|
40408
40466
|
var toolbarContent = "toolbar-content-GxyU6";
|
40409
|
-
var css_248z$
|
40410
|
-
styleInject(css_248z$
|
40467
|
+
var css_248z$4 = ".container-BucHG {\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1001;\n overflow: auto;\n}\n\n.right--XETU .container-BucHG {\n z-index: 1003;\n}\n\n.unpinned-right-tbnNb.container-BucHG {\n right: 37px;\n position: absolute;\n}\n\n.draghandle-f5b0N {\n position: absolute;\n top: 0px;\n background-color: rgba(128, 128, 128, 0.3);\n z-index: 1002;\n}\n\n.right--XETU .draghandle-f5b0N {\n height: 100%;\n width: 2px;\n left: -1px;\n cursor: ew-resize;\n z-index: 1004;\n}\n\n.bottom-cqyfS .draghandle-f5b0N {\n height: 2px;\n width: 100%;\n cursor: ns-resize;\n}\n\n.mid-handle--qh50 {\n position: absolute;\n background-color: rgba(128, 128, 128, 0.3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.right--XETU .mid-handle--qh50 {\n width: 5px;\n height: 32px;\n border-left: 2px solid grey;\n border-right: 2px solid grey;\n}\n\n.bottom-cqyfS .mid-handle--qh50 {\n height: 5px;\n width: 32px;\n border-top: 2px solid gray;\n border-bottom: 2px solid gray;\n}\n\n.tools-selector-BHV3Z {\n z-index: 1000;\n display: flex;\n position: relative;\n gap: 16px;\n align-items: center;\n background-color: #f5f5f5;\n}\n\n.darkmode .tools-selector-BHV3Z {\n background-color: #001529;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.right--XETU .tools-selector-BHV3Z {\n width: 36px;\n height: 100%;\n padding-top: 16px;\n flex-direction: column;\n}\n\n.bottom-cqyfS .tools-selector-BHV3Z {\n width: 100%;\n height: 36px;\n padding-top: 0;\n flex-direction: row;\n}\n\n.tool-item-KyKgQ {\n padding: 10px;\n cursor: pointer;\n position: relative;\n}\n\n.tool-item-KyKgQ.disabled-6aIG9 {\n opacity: 0.5;\n cursor: default;\n}\n\n.right--XETU .tool-item-KyKgQ {\n writing-mode: vertical-lr;\n text-orientation: mixed;\n}\n\n.tool-item-KyKgQ::after {\n content: '';\n position: absolute;\n background-color: #0088ff;\n transition: all ease-in-out 0.2s;\n}\n\n.right--XETU .tool-item-KyKgQ::after {\n width: 3px;\n height: 0px;\n left: 1px;\n bottom: 50%;\n}\n\n.right--XETU .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.right--XETU .sel-iUm8X::after {\n height: 100%;\n bottom: 0;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ::after {\n width: 0px;\n height: 3px;\n bottom: 1px;\n left: 50%;\n}\n\n.bottom-cqyfS .tool-item-KyKgQ:not(.disabled-6aIG9):hover::after,\n.bottom-cqyfS .sel-iUm8X::after {\n width: 100%;\n left: 0;\n}\n\n.button-K-0KR {\n width: 40px;\n justify-content: center;\n}\n\n.toolbar-layout-DUuBn {\n height: 100%;\n width: 100%;\n}\n\n.toolbar-content-GxyU6 {\n height: 100%;\n width: 100%;\n padding: 32px;\n display: flex;\n flex-direction: column;\n}\n";
|
40468
|
+
styleInject(css_248z$4);
|
40411
40469
|
|
40412
|
-
var wrapper$
|
40470
|
+
var wrapper$2 = "wrapper-Q13-g";
|
40413
40471
|
var confContainer = "conf-container-Sm5LL";
|
40414
|
-
var css_248z$
|
40415
|
-
styleInject(css_248z$
|
40472
|
+
var css_248z$3 = ".wrapper-Q13-g {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.conf-container-Sm5LL {\n padding-top: 10px;\n background: white;\n color: black;\n height: calc(100% - 40px);\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n}\n\n.darkmode .conf-container-Sm5LL {\n border-color: #424242;\n}\n";
|
40473
|
+
styleInject(css_248z$3);
|
40416
40474
|
|
40417
|
-
var wrapper = "wrapper-IcNC5";
|
40418
|
-
var select = "select-jVMz-";
|
40419
|
-
var css_248z$
|
40420
|
-
styleInject(css_248z$
|
40475
|
+
var wrapper$1 = "wrapper-IcNC5";
|
40476
|
+
var select$1 = "select-jVMz-";
|
40477
|
+
var css_248z$2 = ".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: 100% - 48px;\n}\n";
|
40478
|
+
styleInject(css_248z$2);
|
40421
40479
|
|
40480
|
+
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
40481
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
40422
40482
|
var ArticleSelection = function ArticleSelection(_ref) {
|
40423
40483
|
var _ref$state = _ref.state,
|
40424
40484
|
articleList = _ref$state.articleList,
|
@@ -40448,19 +40508,20 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
40448
40508
|
for (var i = 0; i < articleList.length; i++) {
|
40449
40509
|
_loop();
|
40450
40510
|
}
|
40451
|
-
return groups
|
40511
|
+
return groups.map(function (g) {
|
40512
|
+
return _objectSpread$5(_objectSpread$5({}, g), {}, {
|
40513
|
+
label: t('configuration.group.' + g.label, g.label)
|
40514
|
+
});
|
40515
|
+
});
|
40452
40516
|
}, [articleList]);
|
40453
40517
|
return /*#__PURE__*/jsxs("div", {
|
40454
|
-
className: wrapper,
|
40518
|
+
className: wrapper$1,
|
40455
40519
|
children: [/*#__PURE__*/jsx(Select$1, {
|
40456
|
-
style: {
|
40457
|
-
maxWidth: 'calc(100% - 48px)'
|
40458
|
-
},
|
40459
40520
|
placeholder: t('backoffice.configurator.article.placeholder'),
|
40460
40521
|
value: articleCodex,
|
40461
40522
|
options: groupedArticles,
|
40462
40523
|
onChange: setArticleCodex,
|
40463
|
-
className: select
|
40524
|
+
className: select$1
|
40464
40525
|
}), /*#__PURE__*/jsx(Button, {
|
40465
40526
|
icon: /*#__PURE__*/jsx(ReloadOutlined$1, {}),
|
40466
40527
|
onClick: function onClick() {
|
@@ -40474,6 +40535,7 @@ var ArticleSelection$1 = observer(ArticleSelection);
|
|
40474
40535
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
40475
40536
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
40476
40537
|
function useWysiwyg$1(_ref) {
|
40538
|
+
var _tool$parameters;
|
40477
40539
|
var tool = _ref.tool,
|
40478
40540
|
toolbar = _ref.toolbar;
|
40479
40541
|
var _useDivaCore = useDivaCore(),
|
@@ -40487,8 +40549,8 @@ function useWysiwyg$1(_ref) {
|
|
40487
40549
|
setDoReset = _useState2[1];
|
40488
40550
|
var _useState3 = useState(),
|
40489
40551
|
_useState4 = _slicedToArray(_useState3, 2),
|
40490
|
-
|
40491
|
-
|
40552
|
+
mask = _useState4[0],
|
40553
|
+
setMask = _useState4[1];
|
40492
40554
|
var _useState5 = useState(),
|
40493
40555
|
_useState6 = _slicedToArray(_useState5, 2),
|
40494
40556
|
articleCodex = _useState6[0],
|
@@ -40497,14 +40559,24 @@ function useWysiwyg$1(_ref) {
|
|
40497
40559
|
_useState8 = _slicedToArray(_useState7, 2),
|
40498
40560
|
articleList = _useState8[0],
|
40499
40561
|
setArticleList = _useState8[1];
|
40500
|
-
var _useState9 = useState(
|
40562
|
+
var _useState9 = useState({
|
40563
|
+
catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
|
40564
|
+
}),
|
40501
40565
|
_useState10 = _slicedToArray(_useState9, 2),
|
40502
|
-
|
40503
|
-
|
40504
|
-
var _useState11 = useState(),
|
40566
|
+
catalog = _useState10[0],
|
40567
|
+
setCatalog = _useState10[1];
|
40568
|
+
var _useState11 = useState([]),
|
40505
40569
|
_useState12 = _slicedToArray(_useState11, 2),
|
40506
|
-
|
40507
|
-
|
40570
|
+
catalogList = _useState12[0],
|
40571
|
+
setCatalogList = _useState12[1];
|
40572
|
+
var _useState13 = useState(),
|
40573
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
40574
|
+
currentNav = _useState14[0],
|
40575
|
+
setCurrentNav = _useState14[1];
|
40576
|
+
var _useState15 = useState(),
|
40577
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
40578
|
+
doNavigate = _useState16[0],
|
40579
|
+
setDoNavigate = _useState16[1];
|
40508
40580
|
useEffect(function () {
|
40509
40581
|
if (!toolbar.hidden) setDoReset(true);
|
40510
40582
|
}, [toolbar.hidden]);
|
@@ -40532,7 +40604,7 @@ function useWysiwyg$1(_ref) {
|
|
40532
40604
|
});
|
40533
40605
|
case 3:
|
40534
40606
|
d = _context.sent;
|
40535
|
-
|
40607
|
+
setMask(d);
|
40536
40608
|
case 5:
|
40537
40609
|
case "end":
|
40538
40610
|
return _context.stop();
|
@@ -40543,14 +40615,124 @@ function useWysiwyg$1(_ref) {
|
|
40543
40615
|
return _ref2.apply(this, arguments);
|
40544
40616
|
};
|
40545
40617
|
}();
|
40618
|
+
var loadPackage = /*#__PURE__*/function () {
|
40619
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
|
40620
|
+
var jwt, d, s;
|
40621
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
40622
|
+
while (1) switch (_context2.prev = _context2.next) {
|
40623
|
+
case 0:
|
40624
|
+
jwt = root.dataStore.jwt;
|
40625
|
+
_context2.next = 3;
|
40626
|
+
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs', {
|
40627
|
+
method: 'GET',
|
40628
|
+
headers: _objectSpread$4({}, jwt ? {
|
40629
|
+
Authorization: 'Bearer ' + jwt
|
40630
|
+
} : {})
|
40631
|
+
}).then(function (r) {
|
40632
|
+
return r.text();
|
40633
|
+
}).then(function (r) {
|
40634
|
+
try {
|
40635
|
+
return JSON.parse(r);
|
40636
|
+
} catch (_unused2) {
|
40637
|
+
return undefined;
|
40638
|
+
}
|
40639
|
+
});
|
40640
|
+
case 3:
|
40641
|
+
d = _context2.sent;
|
40642
|
+
_context2.next = 6;
|
40643
|
+
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
|
40644
|
+
method: 'GET',
|
40645
|
+
headers: _objectSpread$4({}, jwt ? {
|
40646
|
+
Authorization: 'Bearer ' + jwt
|
40647
|
+
} : {})
|
40648
|
+
}).then(function (r) {
|
40649
|
+
return r.text();
|
40650
|
+
}).then(function (r) {
|
40651
|
+
try {
|
40652
|
+
return JSON.parse(r);
|
40653
|
+
} catch (_unused3) {
|
40654
|
+
return undefined;
|
40655
|
+
}
|
40656
|
+
});
|
40657
|
+
case 6:
|
40658
|
+
s = _context2.sent;
|
40659
|
+
setCatalogList(s.data);
|
40660
|
+
case 8:
|
40661
|
+
case "end":
|
40662
|
+
return _context2.stop();
|
40663
|
+
}
|
40664
|
+
}, _callee2);
|
40665
|
+
}));
|
40666
|
+
return function loadPackage(_x2) {
|
40667
|
+
return _ref3.apply(this, arguments);
|
40668
|
+
};
|
40669
|
+
}();
|
40670
|
+
var loadCatalogs = /*#__PURE__*/function () {
|
40671
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id) {
|
40672
|
+
var jwt, l;
|
40673
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
40674
|
+
while (1) switch (_context3.prev = _context3.next) {
|
40675
|
+
case 0:
|
40676
|
+
jwt = root.dataStore.jwt;
|
40677
|
+
_context3.next = 3;
|
40678
|
+
return fetch((tool.elementProps.useIDMService ? root.configurationStore.apiConfig.idmService : root.configurationStore.apiConfig.enricherService) + '/v3.0/catalogs/' + id + '/series', {
|
40679
|
+
method: 'GET',
|
40680
|
+
headers: _objectSpread$4({}, jwt ? {
|
40681
|
+
Authorization: 'Bearer ' + jwt
|
40682
|
+
} : {})
|
40683
|
+
}).then(function (r) {
|
40684
|
+
return r.text();
|
40685
|
+
}).then(function (r) {
|
40686
|
+
try {
|
40687
|
+
return JSON.parse(r);
|
40688
|
+
} catch (_unused4) {
|
40689
|
+
return undefined;
|
40690
|
+
}
|
40691
|
+
});
|
40692
|
+
case 3:
|
40693
|
+
l = _context3.sent;
|
40694
|
+
setCatalogList(l.data);
|
40695
|
+
case 5:
|
40696
|
+
case "end":
|
40697
|
+
return _context3.stop();
|
40698
|
+
}
|
40699
|
+
}, _callee3);
|
40700
|
+
}));
|
40701
|
+
return function loadCatalogs(_x3) {
|
40702
|
+
return _ref4.apply(this, arguments);
|
40703
|
+
};
|
40704
|
+
}();
|
40546
40705
|
useEffect(function () {
|
40547
40706
|
if (doReset) {
|
40707
|
+
var _tool$elementProps, _tool$elementProps3;
|
40548
40708
|
if (currentNav) setDoNavigate(currentNav);
|
40549
|
-
|
40550
|
-
|
40551
|
-
|
40709
|
+
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
|
40710
|
+
var _tool$elementProps2;
|
40711
|
+
if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
|
40712
|
+
loadPackage(tool.parameters.packageId);
|
40713
|
+
} else {
|
40714
|
+
loadCatalogs(tool.elementProps.catalogId);
|
40715
|
+
}
|
40716
|
+
}
|
40717
|
+
if ((_tool$elementProps3 = tool.elementProps) !== null && _tool$elementProps3 !== void 0 && _tool$elementProps3.loadMask) {
|
40718
|
+
loadMask(tool.parameters.packageId).then(function () {
|
40719
|
+
return setDoReset(false);
|
40720
|
+
});
|
40721
|
+
} else {
|
40722
|
+
setDoReset(false);
|
40723
|
+
}
|
40552
40724
|
}
|
40553
40725
|
}, [doReset]);
|
40726
|
+
useEffect(function () {
|
40727
|
+
setArticleCodex(undefined);
|
40728
|
+
if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
|
40729
|
+
var _tool$parameters$pack;
|
40730
|
+
setMask({
|
40731
|
+
catalogCodex: catalog.catalogCodex,
|
40732
|
+
accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
|
40733
|
+
});
|
40734
|
+
}
|
40735
|
+
}, [catalog]);
|
40554
40736
|
useEffect(function () {
|
40555
40737
|
if (articleCodex) {
|
40556
40738
|
setDoReset(true);
|
@@ -40558,10 +40740,10 @@ function useWysiwyg$1(_ref) {
|
|
40558
40740
|
}
|
40559
40741
|
}, [tool.parameters.packageId]);
|
40560
40742
|
var onEventCalled = /*#__PURE__*/function () {
|
40561
|
-
var
|
40743
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
40562
40744
|
var _articles$, catalogData, articles, key, article;
|
40563
|
-
return _regeneratorRuntime.wrap(function
|
40564
|
-
while (1) switch (
|
40745
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
40746
|
+
while (1) switch (_context4.prev = _context4.next) {
|
40565
40747
|
case 0:
|
40566
40748
|
if (e.type === 'onArticlesLoaded') {
|
40567
40749
|
catalogData = e.data.catalogData;
|
@@ -40582,12 +40764,12 @@ function useWysiwyg$1(_ref) {
|
|
40582
40764
|
}
|
40583
40765
|
case 2:
|
40584
40766
|
case "end":
|
40585
|
-
return
|
40767
|
+
return _context4.stop();
|
40586
40768
|
}
|
40587
|
-
},
|
40769
|
+
}, _callee4);
|
40588
40770
|
}));
|
40589
|
-
return function onEventCalled(
|
40590
|
-
return
|
40771
|
+
return function onEventCalled(_x4) {
|
40772
|
+
return _ref5.apply(this, arguments);
|
40591
40773
|
};
|
40592
40774
|
}();
|
40593
40775
|
useEffect(function () {
|
@@ -40597,6 +40779,7 @@ function useWysiwyg$1(_ref) {
|
|
40597
40779
|
};
|
40598
40780
|
}, [articleCodex]);
|
40599
40781
|
var settings = useMemo(function () {
|
40782
|
+
var _tool$elementProps4, _tool$elementProps5, _tool$elementProps6;
|
40600
40783
|
return {
|
40601
40784
|
language: 'DE',
|
40602
40785
|
showSelectionModeZero: true,
|
@@ -40605,6 +40788,7 @@ function useWysiwyg$1(_ref) {
|
|
40605
40788
|
hideErrorMsg: false,
|
40606
40789
|
errorMsg: 'WYSIWYG currently not working for this mask'
|
40607
40790
|
},
|
40791
|
+
applicationEnvironment: 'WYSIWYG',
|
40608
40792
|
viewConfig: {
|
40609
40793
|
allowComma: true,
|
40610
40794
|
tabOrientation: 'horizontal',
|
@@ -40646,13 +40830,16 @@ function useWysiwyg$1(_ref) {
|
|
40646
40830
|
disableLandscape: true,
|
40647
40831
|
settingsSizes: {
|
40648
40832
|
sizeGallery: '50px',
|
40649
|
-
sizeDefault: '
|
40833
|
+
sizeDefault: '240px'
|
40650
40834
|
},
|
40835
|
+
pricePreview: 'fromCurrentPrice',
|
40651
40836
|
hideConfigFoldArrow: true,
|
40652
40837
|
tooltipPosition: 'left-center',
|
40653
40838
|
clientEvents: ['onWebPlanerConfigChange', 'onArticlesLoaded']
|
40654
40839
|
},
|
40655
|
-
|
40840
|
+
useIDMService: (_tool$elementProps4 = tool.elementProps) === null || _tool$elementProps4 === void 0 ? void 0 : _tool$elementProps4.useIDMService,
|
40841
|
+
useEnricherService: (_tool$elementProps5 = tool.elementProps) === null || _tool$elementProps5 === void 0 ? void 0 : _tool$elementProps5.useEnricherService,
|
40842
|
+
useMask: (_tool$elementProps6 = tool.elementProps) === null || _tool$elementProps6 === void 0 ? void 0 : _tool$elementProps6.loadMask,
|
40656
40843
|
templateConfig: {
|
40657
40844
|
Layout: 'wysiwyg',
|
40658
40845
|
BasketButton: 'standard',
|
@@ -40681,8 +40868,12 @@ function useWysiwyg$1(_ref) {
|
|
40681
40868
|
setArticleList: setArticleList,
|
40682
40869
|
articleCodex: articleCodex,
|
40683
40870
|
setArticleCodex: setArticleCodex,
|
40871
|
+
catalogList: catalogList,
|
40872
|
+
setCatalogList: setCatalogList,
|
40873
|
+
catalog: catalog,
|
40874
|
+
setCatalog: setCatalog,
|
40684
40875
|
settings: settings,
|
40685
|
-
|
40876
|
+
mask: mask,
|
40686
40877
|
doReset: doReset,
|
40687
40878
|
setDoReset: setDoReset,
|
40688
40879
|
doNavigate: doNavigate
|
@@ -40730,10 +40921,58 @@ var FallbackComponent = function FallbackComponent(_ref2) {
|
|
40730
40921
|
});
|
40731
40922
|
};
|
40732
40923
|
|
40924
|
+
var wrapper = "wrapper-NYRLn";
|
40925
|
+
var select = "select-K2SWc";
|
40926
|
+
var css_248z$1 = ".wrapper-NYRLn {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-K2SWc {\n z-index: 1000;\n flex: 1;\n}\n";
|
40927
|
+
styleInject(css_248z$1);
|
40928
|
+
|
40929
|
+
var CatalogSelection = function CatalogSelection(_ref) {
|
40930
|
+
var _ref$state = _ref.state,
|
40931
|
+
catalogList = _ref$state.catalogList,
|
40932
|
+
catalog = _ref$state.catalog,
|
40933
|
+
setCatalog = _ref$state.setCatalog;
|
40934
|
+
var _useTranslation = useTranslation(),
|
40935
|
+
t = _useTranslation.t,
|
40936
|
+
language = _useTranslation.i18n.language;
|
40937
|
+
var options = useMemo(function () {
|
40938
|
+
var groups = [];
|
40939
|
+
for (var i = 0; i < catalogList.length; i++) {
|
40940
|
+
var c = catalogList[i];
|
40941
|
+
groups.push({
|
40942
|
+
value: c.serieNo.toString(),
|
40943
|
+
label: c.seriesName[language.toUpperCase()]
|
40944
|
+
});
|
40945
|
+
}
|
40946
|
+
return groups;
|
40947
|
+
}, [catalogList]);
|
40948
|
+
var onChange = function onChange(val) {
|
40949
|
+
var cat = catalogList.find(function (c) {
|
40950
|
+
return c.serieNo.toString() == val;
|
40951
|
+
});
|
40952
|
+
var catalog = cat ? {
|
40953
|
+
catalogCodex: cat.serieNo.toString(),
|
40954
|
+
serieId: cat._id,
|
40955
|
+
accountId: cat.catalogId
|
40956
|
+
} : undefined;
|
40957
|
+
setCatalog(catalog);
|
40958
|
+
};
|
40959
|
+
return /*#__PURE__*/jsx("div", {
|
40960
|
+
className: wrapper,
|
40961
|
+
children: /*#__PURE__*/jsx(Select$1, {
|
40962
|
+
placeholder: t('backoffice.configurator.serie.placeholder'),
|
40963
|
+
value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
|
40964
|
+
options: options,
|
40965
|
+
onChange: onChange,
|
40966
|
+
className: select
|
40967
|
+
})
|
40968
|
+
});
|
40969
|
+
};
|
40970
|
+
var CatalogSelection$1 = observer(CatalogSelection);
|
40971
|
+
|
40733
40972
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
40734
40973
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
40735
40974
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
40736
|
-
var _state$articleCodex;
|
40975
|
+
var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
|
40737
40976
|
var tool = _ref.tool,
|
40738
40977
|
toolbar = _ref.toolbar;
|
40739
40978
|
var _useDivaCore = useDivaCore(),
|
@@ -40744,23 +40983,33 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
40744
40983
|
});
|
40745
40984
|
var _useTranslation = useTranslation(),
|
40746
40985
|
t = _useTranslation.t;
|
40747
|
-
if (state !== null &&
|
40748
|
-
if (
|
40986
|
+
if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
|
40987
|
+
if (tool.elementProps.showCatalogSelection) {
|
40988
|
+
return /*#__PURE__*/jsx(CatalogSelection$1, {
|
40989
|
+
state: state
|
40990
|
+
});
|
40991
|
+
}
|
40992
|
+
}
|
40993
|
+
if (state !== null && state !== void 0 && state.mask) {
|
40994
|
+
var _state$mask;
|
40995
|
+
if (!((_state$mask = state.mask) !== null && _state$mask !== void 0 && _state$mask.catalogCodex) || !state.mask.accountId) return /*#__PURE__*/jsx(Fragment, {
|
40749
40996
|
children: t('backoffice.wysiwyg.configurator.error')
|
40750
40997
|
});
|
40751
40998
|
}
|
40752
40999
|
return /*#__PURE__*/jsx(ErrorBoundary, {
|
40753
41000
|
errorCode: "BACKO_0004",
|
40754
41001
|
children: /*#__PURE__*/jsxs("div", {
|
40755
|
-
className: wrapper$
|
40756
|
-
children: [/*#__PURE__*/jsx(
|
41002
|
+
className: wrapper$2,
|
41003
|
+
children: [!!tool.elementProps.showCatalogSelection && /*#__PURE__*/jsx(CatalogSelection$1, {
|
41004
|
+
state: state
|
41005
|
+
}), /*#__PURE__*/jsx(ArticleSelection$1, {
|
40757
41006
|
state: state
|
40758
|
-
}), state.
|
41007
|
+
}), state.mask && !state.doReset && /*#__PURE__*/jsx("div", {
|
40759
41008
|
hidden: !state.articleCodex,
|
40760
41009
|
className: confContainer,
|
40761
41010
|
children: /*#__PURE__*/jsx(WebPlannerReact, {
|
40762
41011
|
settings: state.settings,
|
40763
|
-
parameters: _objectSpread$3(_objectSpread$3({
|
41012
|
+
parameters: _objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, (_tool$parameters = tool.parameters) !== null && _tool$parameters !== void 0 ? _tool$parameters : {}), {}, {
|
40764
41013
|
articleCodexes: (_state$articleCodex = state.articleCodex) !== null && _state$articleCodex !== void 0 ? _state$articleCodex : '',
|
40765
41014
|
variantValues: '',
|
40766
41015
|
resetArticle: '',
|
@@ -40770,14 +41019,17 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
40770
41019
|
initMode: 'OPENCONFIGTABGROUP',
|
40771
41020
|
opt: state.doNavigate
|
40772
41021
|
} : {}), {}, {
|
40773
|
-
catalogCodex: state.
|
40774
|
-
|
41022
|
+
catalogCodex: (_state$catalog$catalo = (_state$catalog2 = state.catalog) === null || _state$catalog2 === void 0 ? void 0 : _state$catalog2.catalogCodex) !== null && _state$catalog$catalo !== void 0 ? _state$catalog$catalo : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
|
41023
|
+
}, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
|
41024
|
+
serieId: state.catalog.serieId
|
41025
|
+
} : {}), {}, {
|
41026
|
+
accountGuid: (_state$catalog$accoun = (_state$catalog4 = state.catalog) === null || _state$catalog4 === void 0 ? void 0 : _state$catalog4.accountId) !== null && _state$catalog$accoun !== void 0 ? _state$catalog$accoun : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
|
40775
41027
|
returnTo: 'DONT_SAVE_BASKET',
|
40776
41028
|
organizationId: organizationId,
|
40777
41029
|
no3DConnection: 'true'
|
40778
41030
|
}),
|
40779
41031
|
internal: {
|
40780
|
-
catalogMask: state.
|
41032
|
+
catalogMask: state.mask,
|
40781
41033
|
actions: {
|
40782
41034
|
toggleLoading: function toggleLoading(subId, _, toggle) {
|
40783
41035
|
return toolbar.toggleLoading(tool.id, subId, toggle);
|