@crystaldesign/diva-backoffice 26.4.0-beta.23 → 26.4.0-beta.24
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 +1055 -526
- package/build/types/backoffice/src/Configuration.d.ts +3 -2
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/GalleryFullscreenContent.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/MainGallery.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/TesterControls.d.ts +3 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/TesterControls.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/galleryStorage.d.ts +2 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/galleryStorage.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/types.d.ts +4 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/types.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/useAiPromptImageTester.d.ts +2 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/useAiPromptImageTester.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/utils.d.ts +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/AiPromptImageTester/utils.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/Fields/Slider/index.d.ts +10 -0
- package/build/types/backoffice/src/ui/Form/Fields/Slider/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Form/elements.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/types.d.ts +8 -1
- package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/JotformRawJsonReader.d.ts +15 -0
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/JotformRawJsonReader.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/MetaCampaignJotformSync/types.d.ts.map +1 -0
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import React, { createElement, createContext, useState, useEffect, useRef, useMemo, forwardRef, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo, useDeferredValue } from 'react';
|
|
3
3
|
import 'antd/dist/reset.css';
|
|
4
|
-
import { Divider, Form as Form$2, Button, Input as Input$1, Popover, Typography, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, InputNumber, ColorPicker, Tooltip as Tooltip$1, DatePicker, Checkbox as Checkbox$1, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, message, Switch, Popconfirm, Image,
|
|
4
|
+
import { Divider, Form as Form$2, Button, Input as Input$1, Popover, Typography, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, InputNumber, ColorPicker, Tooltip as Tooltip$1, Slider, DatePicker, Checkbox as Checkbox$1, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, message, Switch, Popconfirm, Image, Breadcrumb, Result as Result$1, Tag, Badge, theme, Layout, Drawer, ConfigProvider } from 'antd';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import { observer } from 'mobx-react-lite';
|
|
7
7
|
import { getLogger, DivaError, useTranslation, useDivaCore, DivaUtils } from '@crystaldesign/diva-core';
|
|
@@ -78,7 +78,7 @@ import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
|
|
|
78
78
|
import JSONEditor from 'jsoneditor';
|
|
79
79
|
import 'jsoneditor/dist/jsoneditor.css';
|
|
80
80
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
81
|
-
import { MinusCircleOutlined, PlusOutlined, CalculatorOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, InfoCircleOutlined as InfoCircleOutlined$1, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, SendOutlined as SendOutlined$1, CheckCircleOutlined, CloseCircleOutlined, HeartOutlined, RightOutlined as RightOutlined$1, ReloadOutlined as ReloadOutlined$1, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, CopyOutlined } from '@ant-design/icons';
|
|
81
|
+
import { MinusCircleOutlined, PlusOutlined, CalculatorOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, InfoCircleOutlined as InfoCircleOutlined$1, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, EditOutlined, EyeOutlined, FilePdfOutlined, LoadingOutlined, DownOutlined as DownOutlined$1, UploadOutlined as UploadOutlined$2, GlobalOutlined, SendOutlined as SendOutlined$1, CheckCircleOutlined, CloseCircleOutlined, HeartOutlined, RightOutlined as RightOutlined$1, ReloadOutlined as ReloadOutlined$1, CloudSyncOutlined, DatabaseOutlined as DatabaseOutlined$1, DatabaseFilled, CopyOutlined } from '@ant-design/icons';
|
|
82
82
|
import classnames from 'classnames';
|
|
83
83
|
import RTFEditor from '@crystaldesign/rtf-editor';
|
|
84
84
|
import debounce from 'lodash/debounce';
|
|
@@ -150,6 +150,7 @@ import { Swiper, SwiperSlide } from 'swiper/react';
|
|
|
150
150
|
import 'swiper/css';
|
|
151
151
|
import 'swiper/css/navigation';
|
|
152
152
|
import message$1 from 'antd/es/message';
|
|
153
|
+
import Slider$1 from 'antd/es/slider';
|
|
153
154
|
import Select$2 from 'antd/es/select';
|
|
154
155
|
|
|
155
156
|
(function() {
|
|
@@ -167,8 +168,8 @@ import Select$2 from 'antd/es/select';
|
|
|
167
168
|
function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
168
169
|
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
169
170
|
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
170
|
-
function ownKeys$
|
|
171
|
-
function _objectSpread$
|
|
171
|
+
function ownKeys$1m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
172
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
172
173
|
var LOG$g = getLogger('Backoffice', 'ApplyMapping');
|
|
173
174
|
function applyMapping (_ref) {
|
|
174
175
|
var mappable = _ref.mappable,
|
|
@@ -189,11 +190,11 @@ function applyMapping (_ref) {
|
|
|
189
190
|
var newValue = {};
|
|
190
191
|
newValue[newKey] = valueToAdd;
|
|
191
192
|
if ((startValue === null || startValue === void 0 ? void 0 : startValue[newKey]) != undefined) {
|
|
192
|
-
if (_typeof(startValue[newKey]) == 'object' && type == 'addToSourceValue') startValue[newKey] = _objectSpread$
|
|
193
|
+
if (_typeof(startValue[newKey]) == 'object' && type == 'addToSourceValue') startValue[newKey] = _objectSpread$1m(_objectSpread$1m({}, startValue[newKey]), valueToAdd);else if (_typeof(startValue[newKey]) == 'object') startValue[newKey] = valueToAdd; // renderjob prompt change (replace prompt obj with just the id)
|
|
193
194
|
else startValue[newKey] = type == 'addToSourceValue' ? startValue[newKey] + valueToAdd : valueToAdd;
|
|
194
195
|
return startValue;
|
|
195
196
|
}
|
|
196
|
-
if (newIdx == 1) return _objectSpread$
|
|
197
|
+
if (newIdx == 1) return _objectSpread$1m(_objectSpread$1m({}, startValue), newValue);
|
|
197
198
|
return _getTarget(idx + 1, keys, startValue, newValue);
|
|
198
199
|
};
|
|
199
200
|
returnValue = _getTarget(0, key.split('.'), returnValue, value);
|
|
@@ -496,8 +497,8 @@ function getLeafColumns(columns) {
|
|
|
496
497
|
});
|
|
497
498
|
}
|
|
498
499
|
|
|
499
|
-
function ownKeys$
|
|
500
|
-
function _objectSpread$
|
|
500
|
+
function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
501
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
501
502
|
var LOG$f = getLogger('Backoffice', 'ApiHandler');
|
|
502
503
|
var jp = require('jsonpath');
|
|
503
504
|
var _default$d = /*#__PURE__*/function () {
|
|
@@ -676,7 +677,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
676
677
|
_context2.next = 20;
|
|
677
678
|
return fetch(finalUrl, {
|
|
678
679
|
method: this._updateMethod,
|
|
679
|
-
headers: _objectSpread$
|
|
680
|
+
headers: _objectSpread$1l(_objectSpread$1l({}, jwt ? {
|
|
680
681
|
Authorization: 'Bearer ' + jwt
|
|
681
682
|
} : {}), {}, {
|
|
682
683
|
'Content-Type': 'application/json'
|
|
@@ -769,7 +770,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
769
770
|
rootStore: this._rootStore,
|
|
770
771
|
fallBackToParams: true
|
|
771
772
|
});
|
|
772
|
-
if (data) createData = _objectSpread$
|
|
773
|
+
if (data) createData = _objectSpread$1l({}, data);
|
|
773
774
|
} else if (data !== undefined) {
|
|
774
775
|
createData = applyMapping({
|
|
775
776
|
mappable: data,
|
|
@@ -1031,7 +1032,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1031
1032
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1032
1033
|
case 2:
|
|
1033
1034
|
jwt = (_this$_rootStore5 = this._rootStore) === null || _this$_rootStore5 === void 0 ? void 0 : _this$_rootStore5.dataStore.jwt;
|
|
1034
|
-
url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1035
|
+
url = filterServerSide ? parseServersideFilters(_objectSpread$1l(_objectSpread$1l({}, filterServerSide), {}, {
|
|
1035
1036
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1036
1037
|
baseUrl: this._readListUrl,
|
|
1037
1038
|
prefilter: prefilter
|
|
@@ -1051,7 +1052,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1051
1052
|
});
|
|
1052
1053
|
case 6:
|
|
1053
1054
|
response = _context8.sent;
|
|
1054
|
-
return _context8.abrupt("return", _objectSpread$
|
|
1055
|
+
return _context8.abrupt("return", _objectSpread$1l(_objectSpread$1l({}, response), {}, {
|
|
1055
1056
|
data: response.data.map(function (d) {
|
|
1056
1057
|
return _this2.aplyJsonPath(d, _this2._readJsonPath);
|
|
1057
1058
|
})
|
|
@@ -1075,7 +1076,7 @@ var _default$d = /*#__PURE__*/function () {
|
|
|
1075
1076
|
throw new Error('Read List endpoint is missing in configuration.');
|
|
1076
1077
|
}
|
|
1077
1078
|
(_this$_rootStore6 = this._rootStore) === null || _this$_rootStore6 === void 0 ? void 0 : _this$_rootStore6.dataStore.jwt;
|
|
1078
|
-
var url = filterServerSide ? parseServersideFilters(_objectSpread$
|
|
1079
|
+
var url = filterServerSide ? parseServersideFilters(_objectSpread$1l(_objectSpread$1l({}, filterServerSide), {}, {
|
|
1079
1080
|
columns: this._filterFields ? filterServerSide.columns : undefined,
|
|
1080
1081
|
baseUrl: this._readListUrl,
|
|
1081
1082
|
prefilter: prefilter
|
|
@@ -1282,8 +1283,8 @@ var _default$c = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1282
1283
|
}]);
|
|
1283
1284
|
}(_default$d);
|
|
1284
1285
|
|
|
1285
|
-
function ownKeys$
|
|
1286
|
-
function _objectSpread$
|
|
1286
|
+
function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1287
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1287
1288
|
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)); }
|
|
1288
1289
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1289
1290
|
var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
@@ -1382,7 +1383,7 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
|
|
|
1382
1383
|
_context2.next = 5;
|
|
1383
1384
|
return fetch(this._createUrl + '?ref=true', {
|
|
1384
1385
|
method: this._createMethod,
|
|
1385
|
-
headers: _objectSpread$
|
|
1386
|
+
headers: _objectSpread$1k({}, jwt ? {
|
|
1386
1387
|
Authorization: 'Bearer ' + jwt
|
|
1387
1388
|
} : {}),
|
|
1388
1389
|
body: data
|
|
@@ -1873,8 +1874,8 @@ function replaceApiConfigPlaceholdersDeep(obj, apiConfig) {
|
|
|
1873
1874
|
}
|
|
1874
1875
|
}
|
|
1875
1876
|
|
|
1876
|
-
function ownKeys$
|
|
1877
|
-
function _objectSpread$
|
|
1877
|
+
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1878
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1878
1879
|
var PROMPT_RESOLUTION_VALUE_STRINGS = promptAndAiTesterOptions.aiImageTester.resolutionOptions.map(function (o) {
|
|
1879
1880
|
return o.apiValue;
|
|
1880
1881
|
});
|
|
@@ -1915,7 +1916,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
|
1915
1916
|
var _i$permission;
|
|
1916
1917
|
return !i.permission || _this.root.actions.userHasPermission((_i$permission = i.permission) === null || _i$permission === void 0 ? void 0 : _i$permission.toLocaleLowerCase());
|
|
1917
1918
|
});
|
|
1918
|
-
config = _objectSpread$
|
|
1919
|
+
config = _objectSpread$1j(_objectSpread$1j({}, config), {}, {
|
|
1919
1920
|
items: filteredItems
|
|
1920
1921
|
});
|
|
1921
1922
|
}
|
|
@@ -4647,6 +4648,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
4647
4648
|
}, {
|
|
4648
4649
|
targetField: 'resolution',
|
|
4649
4650
|
sourceField: 'resolution'
|
|
4651
|
+
}, {
|
|
4652
|
+
targetField: 'temperature',
|
|
4653
|
+
sourceField: 'temperature'
|
|
4650
4654
|
}, {
|
|
4651
4655
|
targetField: 'type',
|
|
4652
4656
|
sourceField: 'type'
|
|
@@ -4707,6 +4711,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
4707
4711
|
sorter: 1,
|
|
4708
4712
|
filter: 'advanced',
|
|
4709
4713
|
width: 150
|
|
4714
|
+
}, {
|
|
4715
|
+
title: t('backoffice.table.prompts.columns.temperature', {
|
|
4716
|
+
defaultValue: 'Temperature'
|
|
4717
|
+
}),
|
|
4718
|
+
field: 'temperature',
|
|
4719
|
+
sorter: 1,
|
|
4720
|
+
filter: 'advanced',
|
|
4721
|
+
width: 100
|
|
4710
4722
|
}, {
|
|
4711
4723
|
title: t('backoffice.table.prompts.columns.type'),
|
|
4712
4724
|
field: 'type',
|
|
@@ -8185,6 +8197,16 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
8185
8197
|
mode: 'single',
|
|
8186
8198
|
values: PROMPT_RESOLUTION_VALUE_STRINGS,
|
|
8187
8199
|
allowClear: true
|
|
8200
|
+
}, {
|
|
8201
|
+
name: 'temperature',
|
|
8202
|
+
label: t('backoffice.table.prompts.columns.temperature', {
|
|
8203
|
+
defaultValue: 'Temperature'
|
|
8204
|
+
}),
|
|
8205
|
+
type: 'slider',
|
|
8206
|
+
min: 0,
|
|
8207
|
+
max: 2,
|
|
8208
|
+
step: 0.05,
|
|
8209
|
+
allowClear: true
|
|
8188
8210
|
}, {
|
|
8189
8211
|
name: 'type',
|
|
8190
8212
|
label: t('backoffice.table.prompts.columns.type'),
|
|
@@ -8334,6 +8356,17 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
8334
8356
|
label: t('backoffice.table.prompts.columns.model'),
|
|
8335
8357
|
type: 'input',
|
|
8336
8358
|
readonly: true
|
|
8359
|
+
}, {
|
|
8360
|
+
name: 'temperature',
|
|
8361
|
+
label: t('backoffice.table.prompts.columns.temperature', {
|
|
8362
|
+
defaultValue: 'Temperature'
|
|
8363
|
+
}),
|
|
8364
|
+
type: 'slider',
|
|
8365
|
+
min: 0,
|
|
8366
|
+
max: 2,
|
|
8367
|
+
step: 0.05,
|
|
8368
|
+
allowClear: true,
|
|
8369
|
+
readonly: true
|
|
8337
8370
|
}, {
|
|
8338
8371
|
name: 'previewImageId',
|
|
8339
8372
|
label: t('backoffice.table.prompts.columns.previewImage'),
|
|
@@ -14799,6 +14832,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
14799
14832
|
},
|
|
14800
14833
|
Maintenance: {
|
|
14801
14834
|
type: 'Maintenance'
|
|
14835
|
+
},
|
|
14836
|
+
MetaCampaignJotformSync: {
|
|
14837
|
+
type: 'MetaCampaignJotformSync'
|
|
14802
14838
|
}
|
|
14803
14839
|
};
|
|
14804
14840
|
}
|
|
@@ -14840,8 +14876,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
|
14840
14876
|
var navOverlay = "nav-overlay-rKJNC";
|
|
14841
14877
|
var navSettings = "nav-settings-82cjv";
|
|
14842
14878
|
var menuLabel = "menu-label-4dXQk";
|
|
14843
|
-
var css_248z$
|
|
14844
|
-
styleInject(css_248z$
|
|
14879
|
+
var css_248z$D = ".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";
|
|
14880
|
+
styleInject(css_248z$D);
|
|
14845
14881
|
|
|
14846
14882
|
function MenuLabel (_ref) {
|
|
14847
14883
|
var disabled = _ref.disabled,
|
|
@@ -15366,8 +15402,8 @@ var ToolBarStore = /*#__PURE__*/function () {
|
|
|
15366
15402
|
}]);
|
|
15367
15403
|
}();
|
|
15368
15404
|
|
|
15369
|
-
function ownKeys$
|
|
15370
|
-
function _objectSpread$
|
|
15405
|
+
function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15406
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15371
15407
|
function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
15372
15408
|
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
|
|
15373
15409
|
function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -15508,7 +15544,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15508
15544
|
if (index >= 0) {
|
|
15509
15545
|
this._additionalMenuElements[index] = {
|
|
15510
15546
|
key: key,
|
|
15511
|
-
element: _objectSpread$
|
|
15547
|
+
element: _objectSpread$1i(_objectSpread$1i({}, this._additionalMenuElements[index].element), {}, {
|
|
15512
15548
|
items: items,
|
|
15513
15549
|
selected: selected
|
|
15514
15550
|
})
|
|
@@ -15559,7 +15595,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15559
15595
|
var path = this.getPath(element.menu, this._selectedMenuKeys, this.root.navigationState.searchParams);
|
|
15560
15596
|
this.root.navigate('/' + path);
|
|
15561
15597
|
}
|
|
15562
|
-
this._menuElement1 = _objectSpread$
|
|
15598
|
+
this._menuElement1 = _objectSpread$1i(_objectSpread$1i({}, this.menuElement1), {}, {
|
|
15563
15599
|
selected: this._selectedMenuKeys[0]
|
|
15564
15600
|
});
|
|
15565
15601
|
var menu2 = (_this$_menu$find = this._menu.find(function (element) {
|
|
@@ -15831,7 +15867,7 @@ var _default$6 = /*#__PURE__*/function () {
|
|
|
15831
15867
|
}
|
|
15832
15868
|
return !item.permission || hasPermission(item.permission.toLocaleLowerCase());
|
|
15833
15869
|
}).map(function (item) {
|
|
15834
|
-
return _objectSpread$
|
|
15870
|
+
return _objectSpread$1i(_objectSpread$1i({}, item), {}, {
|
|
15835
15871
|
items: item.items ? _this5.filterMenuByPermission(hasPermission, item.items) : undefined,
|
|
15836
15872
|
subMenu: item.subMenu ? _this5.filterMenuByPermission(hasPermission, item.subMenu) : undefined
|
|
15837
15873
|
});
|
|
@@ -16348,6 +16384,12 @@ var menu = [{
|
|
|
16348
16384
|
label: 'backoffice.maintenance.title',
|
|
16349
16385
|
permission: 'backoffice_admin_cache',
|
|
16350
16386
|
icon: 'ToolOutlined'
|
|
16387
|
+
}, {
|
|
16388
|
+
id: 'MetaCampaignJotformSync',
|
|
16389
|
+
path: 'meta-campaign-jotform-sync',
|
|
16390
|
+
label: 'backoffice.metaCampaignJotformSync.menu',
|
|
16391
|
+
permission: 'backoffice_admin',
|
|
16392
|
+
icon: 'CloudSyncOutlined'
|
|
16351
16393
|
}]
|
|
16352
16394
|
}]
|
|
16353
16395
|
}, {
|
|
@@ -17176,8 +17218,8 @@ var _default$2 = /*#__PURE__*/function (_ApiHandler) {
|
|
|
17176
17218
|
return _createClass(_default);
|
|
17177
17219
|
}(_default$d);
|
|
17178
17220
|
|
|
17179
|
-
function ownKeys$
|
|
17180
|
-
function _objectSpread$
|
|
17221
|
+
function ownKeys$1h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17222
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17181
17223
|
var LOG$d = getLogger('Backoffice', 'ContextStore');
|
|
17182
17224
|
|
|
17183
17225
|
/**
|
|
@@ -17212,7 +17254,7 @@ var ContextStore = /*#__PURE__*/function () {
|
|
|
17212
17254
|
key: "updateContext",
|
|
17213
17255
|
value: function updateContext(contextId, updates) {
|
|
17214
17256
|
var currentState = this.contexts.get(contextId) || {};
|
|
17215
|
-
var updatedState = _objectSpread$
|
|
17257
|
+
var updatedState = _objectSpread$1h(_objectSpread$1h({}, currentState), updates);
|
|
17216
17258
|
this.contexts.set(contextId, updatedState);
|
|
17217
17259
|
LOG$d.debug("Updated context ".concat(contextId), {
|
|
17218
17260
|
updatedState: updatedState
|
|
@@ -17846,8 +17888,8 @@ var MediaItem = /*#__PURE__*/function () {
|
|
|
17846
17888
|
}]);
|
|
17847
17889
|
}();
|
|
17848
17890
|
|
|
17849
|
-
function ownKeys$
|
|
17850
|
-
function _objectSpread$
|
|
17891
|
+
function ownKeys$1g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17892
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17851
17893
|
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; } } }; }
|
|
17852
17894
|
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; } }
|
|
17853
17895
|
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; }
|
|
@@ -17984,7 +18026,7 @@ function useFormData (_ref) {
|
|
|
17984
18026
|
multipleEditingData = inboundData;
|
|
17985
18027
|
}
|
|
17986
18028
|
return {
|
|
17987
|
-
loadedData: _onLoadFields(_objectSpread$
|
|
18029
|
+
loadedData: _onLoadFields(_objectSpread$1g({}, dt)),
|
|
17988
18030
|
multipleEditingData: multipleEditingData
|
|
17989
18031
|
};
|
|
17990
18032
|
}, [inboundData]),
|
|
@@ -18011,7 +18053,7 @@ function useFormData (_ref) {
|
|
|
18011
18053
|
setFieldErrors = _useState20[1];
|
|
18012
18054
|
useEffect(function () {
|
|
18013
18055
|
var _loadedData$_id2;
|
|
18014
|
-
setState(_objectSpread$
|
|
18056
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18015
18057
|
data: loadedData,
|
|
18016
18058
|
origData: JSON.parse(JSON.stringify(inboundData !== null && inboundData !== void 0 ? inboundData : {})),
|
|
18017
18059
|
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),
|
|
@@ -18113,7 +18155,7 @@ function useFormData (_ref) {
|
|
|
18113
18155
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
18114
18156
|
while (1) switch (_context2.prev = _context2.next) {
|
|
18115
18157
|
case 0:
|
|
18116
|
-
newData = merge(_objectSpread$
|
|
18158
|
+
newData = merge(_objectSpread$1g({}, state.data), values);
|
|
18117
18159
|
if (!skipApi) {
|
|
18118
18160
|
_context2.next = 3;
|
|
18119
18161
|
break;
|
|
@@ -18123,7 +18165,7 @@ function useFormData (_ref) {
|
|
|
18123
18165
|
root.actions.toggleLoading('saving_form');
|
|
18124
18166
|
_context2.prev = 4;
|
|
18125
18167
|
_context2.next = 7;
|
|
18126
|
-
return setDynamicFields(_objectSpread$
|
|
18168
|
+
return setDynamicFields(_objectSpread$1g({}, state.data), newData);
|
|
18127
18169
|
case 7:
|
|
18128
18170
|
newData = _context2.sent;
|
|
18129
18171
|
_context2.next = 10;
|
|
@@ -18138,7 +18180,7 @@ function useFormData (_ref) {
|
|
|
18138
18180
|
root.actions.toggleLoading('saving_form');
|
|
18139
18181
|
throw _context2.t0;
|
|
18140
18182
|
case 17:
|
|
18141
|
-
setState(_objectSpread$
|
|
18183
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18142
18184
|
loading: true
|
|
18143
18185
|
}));
|
|
18144
18186
|
finalData = state.data;
|
|
@@ -18191,14 +18233,14 @@ function useFormData (_ref) {
|
|
|
18191
18233
|
_context2.next = 47;
|
|
18192
18234
|
break;
|
|
18193
18235
|
}
|
|
18194
|
-
setFieldErrors(_objectSpread$
|
|
18236
|
+
setFieldErrors(_objectSpread$1g(_objectSpread$1g({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
|
|
18195
18237
|
return _context2.abrupt("return", undefined);
|
|
18196
18238
|
case 47:
|
|
18197
18239
|
throw _context2.t1;
|
|
18198
18240
|
case 48:
|
|
18199
18241
|
_context2.prev = 48;
|
|
18200
18242
|
root.actions.toggleLoading('saving_form');
|
|
18201
|
-
setState(_objectSpread$
|
|
18243
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18202
18244
|
data: finalData,
|
|
18203
18245
|
loading: false
|
|
18204
18246
|
}));
|
|
@@ -18228,7 +18270,7 @@ function useFormData (_ref) {
|
|
|
18228
18270
|
}
|
|
18229
18271
|
var updateHiddenRequiredDisabled = function updateHiddenRequiredDisabled(data, changedFields) {
|
|
18230
18272
|
if (!(selectedItems !== null && selectedItems !== void 0 && selectedItems.length)) return;
|
|
18231
|
-
var wholeData = Object.assign(_objectSpread$
|
|
18273
|
+
var wholeData = Object.assign(_objectSpread$1g({}, state.data), _objectSpread$1g({}, changedFields !== null && changedFields !== void 0 ? changedFields : data));
|
|
18232
18274
|
var newState = getHiddenRequiredDisabled(wholeData, selectedItems);
|
|
18233
18275
|
if (JSON.stringify(newState) !== JSON.stringify(hiddenRequiredDisabled)) {
|
|
18234
18276
|
setHiddenRequiredDisabled(newState);
|
|
@@ -18246,14 +18288,14 @@ function useFormData (_ref) {
|
|
|
18246
18288
|
var item = getItem(id !== null && id !== void 0 ? id : '');
|
|
18247
18289
|
item === null || item === void 0 || (_item$onValueChange = item.onValueChange) === null || _item$onValueChange === void 0 || _item$onValueChange.call(item, value, item, state.form);
|
|
18248
18290
|
}
|
|
18249
|
-
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$
|
|
18291
|
+
var data = d !== null && d !== void 0 ? d : mergeWith(_objectSpread$1g({}, state.data), state.form.getFieldsValue(), mergeCustomizer);
|
|
18250
18292
|
if (id) {
|
|
18251
18293
|
setFieldInObject(id, data, value);
|
|
18252
|
-
var newFieldErrors = _objectSpread$
|
|
18294
|
+
var newFieldErrors = _objectSpread$1g({}, fieldErrors);
|
|
18253
18295
|
delete newFieldErrors[id.toString()];
|
|
18254
18296
|
setFieldErrors(newFieldErrors);
|
|
18255
18297
|
}
|
|
18256
|
-
setState(_objectSpread$
|
|
18298
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18257
18299
|
data: data
|
|
18258
18300
|
}));
|
|
18259
18301
|
return data;
|
|
@@ -18312,10 +18354,10 @@ function useFormData (_ref) {
|
|
|
18312
18354
|
} else {
|
|
18313
18355
|
data[name] = val;
|
|
18314
18356
|
}
|
|
18315
|
-
if (configuration.itemSelectorReset) setState(_objectSpread$
|
|
18357
|
+
if (configuration.itemSelectorReset) setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18316
18358
|
data: data
|
|
18317
|
-
}));else setState(_objectSpread$
|
|
18318
|
-
data: _objectSpread$
|
|
18359
|
+
}));else setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18360
|
+
data: _objectSpread$1g(_objectSpread$1g({}, state.data), data)
|
|
18319
18361
|
}));
|
|
18320
18362
|
if (Array.isArray(configuration.items[selectorIdx[0]]) && Array.isArray(configuration.items[selectorIdx[0]][selectorIdx[1]])) {
|
|
18321
18363
|
setSelectedItemsIndex([selectorIdx[0], selectorIdx[1]]);
|
|
@@ -18348,12 +18390,12 @@ function useFormData (_ref) {
|
|
|
18348
18390
|
var val = _ref6.value;
|
|
18349
18391
|
if (value === val) {
|
|
18350
18392
|
if (configuration.itemSelectorReset) {
|
|
18351
|
-
setState(_objectSpread$
|
|
18393
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18352
18394
|
data: _defineProperty({}, name, val)
|
|
18353
18395
|
}));
|
|
18354
18396
|
} else {
|
|
18355
|
-
setState(_objectSpread$
|
|
18356
|
-
data: _objectSpread$
|
|
18397
|
+
setState(_objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18398
|
+
data: _objectSpread$1g(_objectSpread$1g({}, state.data), {}, _defineProperty({}, name, val))
|
|
18357
18399
|
}));
|
|
18358
18400
|
}
|
|
18359
18401
|
setSelectedItemsIndex([selectedItemsIndex[0], idx]);
|
|
@@ -18638,7 +18680,7 @@ function useFormData (_ref) {
|
|
|
18638
18680
|
for (var i = 0; i < configuration.tools.length; i++) {
|
|
18639
18681
|
var _tool$defaultOpen;
|
|
18640
18682
|
var tool = configuration.tools[i];
|
|
18641
|
-
tools.push(_objectSpread$
|
|
18683
|
+
tools.push(_objectSpread$1g(_objectSpread$1g({}, tool), {}, {
|
|
18642
18684
|
parameters: {
|
|
18643
18685
|
data: state.data,
|
|
18644
18686
|
formInstance: form,
|
|
@@ -18788,7 +18830,7 @@ function useFormData (_ref) {
|
|
|
18788
18830
|
}
|
|
18789
18831
|
});
|
|
18790
18832
|
}
|
|
18791
|
-
return _objectSpread$
|
|
18833
|
+
return _objectSpread$1g(_objectSpread$1g({}, state), {}, {
|
|
18792
18834
|
getIsHidden: getIsHidden,
|
|
18793
18835
|
setUsedPreset: setUsedPreset,
|
|
18794
18836
|
configuration: configuration,
|
|
@@ -18906,8 +18948,8 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
|
18906
18948
|
};
|
|
18907
18949
|
|
|
18908
18950
|
var _excluded$9 = ["key", "name"];
|
|
18909
|
-
function ownKeys$
|
|
18910
|
-
function _objectSpread$
|
|
18951
|
+
function ownKeys$1f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18952
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18911
18953
|
var FormList$2 = function FormList(_ref) {
|
|
18912
18954
|
var _item$initialValue;
|
|
18913
18955
|
var value = _ref.value,
|
|
@@ -18970,7 +19012,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
18970
19012
|
var aName = [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n));
|
|
18971
19013
|
var hidden = state.getIsHidden(i, state.data, [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), [name]));
|
|
18972
19014
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
18973
|
-
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$
|
|
19015
|
+
return /*#__PURE__*/createElement(Form$2.Item, _objectSpread$1f(_objectSpread$1f({}, restField), {}, {
|
|
18974
19016
|
id: n.join(),
|
|
18975
19017
|
key: n.join(),
|
|
18976
19018
|
name: n,
|
|
@@ -18982,7 +19024,7 @@ var FormList$2 = function FormList(_ref) {
|
|
|
18982
19024
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
18983
19025
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
18984
19026
|
hidden: hidden
|
|
18985
|
-
}), getElement(_objectSpread$
|
|
19027
|
+
}), getElement(_objectSpread$1f(_objectSpread$1f({}, i), {}, {
|
|
18986
19028
|
name: n
|
|
18987
19029
|
}), setCanSave, state, aName, state.onInputChanged, onError, root, form, hidden));
|
|
18988
19030
|
})
|
|
@@ -19148,8 +19190,8 @@ var Result = function Result(_ref) {
|
|
|
19148
19190
|
|
|
19149
19191
|
var success = "success-tRJ7j";
|
|
19150
19192
|
var error = "error-MtAFB";
|
|
19151
|
-
var css_248z$
|
|
19152
|
-
styleInject(css_248z$
|
|
19193
|
+
var css_248z$C = ".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";
|
|
19194
|
+
styleInject(css_248z$C);
|
|
19153
19195
|
|
|
19154
19196
|
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";
|
|
19155
19197
|
|
|
@@ -19213,11 +19255,11 @@ var CustomButton$1 = observer(CustomButton);
|
|
|
19213
19255
|
|
|
19214
19256
|
var wrapper$7 = "wrapper-GVe2h";
|
|
19215
19257
|
var buttonGroup = "button-group-GYt-T";
|
|
19216
|
-
var css_248z$
|
|
19217
|
-
styleInject(css_248z$
|
|
19258
|
+
var css_248z$B = ".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";
|
|
19259
|
+
styleInject(css_248z$B);
|
|
19218
19260
|
|
|
19219
|
-
function ownKeys$
|
|
19220
|
-
function _objectSpread$
|
|
19261
|
+
function ownKeys$1e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19262
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19221
19263
|
var SubTitle = function SubTitle(_ref) {
|
|
19222
19264
|
var _item$orientation, _item$buttonIds;
|
|
19223
19265
|
var item = _ref.item,
|
|
@@ -19226,7 +19268,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
|
19226
19268
|
t = _useTranslation.t;
|
|
19227
19269
|
return /*#__PURE__*/jsx(Divider, {
|
|
19228
19270
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'horizontal',
|
|
19229
|
-
style: _objectSpread$
|
|
19271
|
+
style: _objectSpread$1e({}, item.style),
|
|
19230
19272
|
children: /*#__PURE__*/jsxs("div", {
|
|
19231
19273
|
className: wrapper$7,
|
|
19232
19274
|
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) {
|
|
@@ -19516,12 +19558,12 @@ function parseReturnData(options, selectMapping) {
|
|
|
19516
19558
|
}
|
|
19517
19559
|
|
|
19518
19560
|
var wrapper$6 = "wrapper-4xyke";
|
|
19519
|
-
var css_248z$
|
|
19520
|
-
styleInject(css_248z$
|
|
19561
|
+
var css_248z$A = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
|
19562
|
+
styleInject(css_248z$A);
|
|
19521
19563
|
|
|
19522
19564
|
var _excluded$8 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
|
19523
|
-
function ownKeys$
|
|
19524
|
-
function _objectSpread$
|
|
19565
|
+
function ownKeys$1d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19566
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19525
19567
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
19526
19568
|
var apiInterface = _ref.apiInterface,
|
|
19527
19569
|
selectMapping = _ref.selectMapping,
|
|
@@ -19548,7 +19590,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
|
19548
19590
|
return /*#__PURE__*/jsxs("div", {
|
|
19549
19591
|
ref: ref,
|
|
19550
19592
|
className: classnames(title ? wrapper$6 : undefined),
|
|
19551
|
-
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$
|
|
19593
|
+
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$1d(_objectSpread$1d({}, selectProps), {}, {
|
|
19552
19594
|
showSearch: search,
|
|
19553
19595
|
loading: state.loading,
|
|
19554
19596
|
options: state.options,
|
|
@@ -20165,8 +20207,8 @@ var _default = /*#__PURE__*/function (_ApiHandler) {
|
|
|
20165
20207
|
}]);
|
|
20166
20208
|
}(_default$d);
|
|
20167
20209
|
|
|
20168
|
-
function ownKeys$
|
|
20169
|
-
function _objectSpread$
|
|
20210
|
+
function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20211
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20170
20212
|
getLogger('Backoffice', 'SelectClientRelationCatalog');
|
|
20171
20213
|
function useSelectClientRelationCatalog (_ref) {
|
|
20172
20214
|
var onSelectedCatalog = _ref.onSelectedCatalog,
|
|
@@ -20335,7 +20377,7 @@ function useSelectClientRelationCatalog (_ref) {
|
|
|
20335
20377
|
case 22:
|
|
20336
20378
|
supplierData = _context2.sent;
|
|
20337
20379
|
case 23:
|
|
20338
|
-
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$
|
|
20380
|
+
onSelectedSupplier === null || onSelectedSupplier === void 0 || onSelectedSupplier(_objectSpread$1c(_objectSpread$1c({}, _selectedSupplier), {}, {
|
|
20339
20381
|
supplierGuid: catalogList === null || catalogList === void 0 || (_catalogList$ = catalogList[0]) === null || _catalogList$ === void 0 ? void 0 : _catalogList$.Subfolder
|
|
20340
20382
|
}), supplierData);
|
|
20341
20383
|
if (catalogId && catalogList.find(function (c) {
|
|
@@ -20403,8 +20445,8 @@ var customSelectContentWrapper = "custom-select-content-wrapper-v98Ms";
|
|
|
20403
20445
|
var customSelectOptionContent = "custom-select-option-content-LIbzl";
|
|
20404
20446
|
var customSelectAvatar = "custom-select-avatar-DPCn1";
|
|
20405
20447
|
var customSelectOptionText = "custom-select-option-text-crPF-";
|
|
20406
|
-
var css_248z$
|
|
20407
|
-
styleInject(css_248z$
|
|
20448
|
+
var css_248z$z = ".custom-select-container-rPcLx {\n display: flex;\n gap: 8px;\n height: 32px;\n}\n\n.custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-content-wrapper-v98Ms {\n display: flex;\n align-items: center;\n height: 22px;\n}\n\n.custom-select-option-content-LIbzl {\n display: flex;\n align-items: center;\n gap: 8px;\n max-width: 100%;\n height: 100%;\n}\n\n.custom-select-option-content-LIbzl .custom-select-avatar-DPCn1 {\n flex-shrink: 0;\n}\n\n.custom-select-option-content-LIbzl .custom-select-option-text-crPF- {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
|
|
20449
|
+
styleInject(css_248z$z);
|
|
20408
20450
|
|
|
20409
20451
|
var Selector = function Selector(_ref) {
|
|
20410
20452
|
var items = _ref.items,
|
|
@@ -20568,8 +20610,8 @@ function SelectClientRelationCatalog (_ref) {
|
|
|
20568
20610
|
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; } } }; }
|
|
20569
20611
|
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; } }
|
|
20570
20612
|
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; }
|
|
20571
|
-
function ownKeys$
|
|
20572
|
-
function _objectSpread$
|
|
20613
|
+
function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20614
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20573
20615
|
function useSelectData (_ref) {
|
|
20574
20616
|
var data = _ref.data,
|
|
20575
20617
|
onChange = _ref.onChange,
|
|
@@ -20797,7 +20839,7 @@ function useSelectData (_ref) {
|
|
|
20797
20839
|
setFetching(true);
|
|
20798
20840
|
serverSideParams = {
|
|
20799
20841
|
filters: selectMapping !== null && selectMapping !== void 0 && selectMapping.searchField ? selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.searchField.reduce(function (filter, field) {
|
|
20800
|
-
return _objectSpread$
|
|
20842
|
+
return _objectSpread$1b(_objectSpread$1b({}, filter), value !== undefined ? _defineProperty({}, field.field, [value, field.filter, true]) : {});
|
|
20801
20843
|
}, {}) : {
|
|
20802
20844
|
_id: [value, 'contains']
|
|
20803
20845
|
},
|
|
@@ -21009,8 +21051,8 @@ function useSelectData (_ref) {
|
|
|
21009
21051
|
};
|
|
21010
21052
|
}
|
|
21011
21053
|
|
|
21012
|
-
var css_248z$
|
|
21013
|
-
styleInject(css_248z$
|
|
21054
|
+
var css_248z$y = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
|
21055
|
+
styleInject(css_248z$y);
|
|
21014
21056
|
|
|
21015
21057
|
var SelectWrapper = function SelectWrapper(_ref) {
|
|
21016
21058
|
var onChange = _ref.onChange,
|
|
@@ -21092,11 +21134,11 @@ var Select = observer(SelectWrapper);
|
|
|
21092
21134
|
var wrapper$5 = "wrapper-WStAk";
|
|
21093
21135
|
var headerWrapper = "header-wrapper-gWQuH";
|
|
21094
21136
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
21095
|
-
var css_248z$
|
|
21096
|
-
styleInject(css_248z$
|
|
21137
|
+
var css_248z$x = ".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";
|
|
21138
|
+
styleInject(css_248z$x);
|
|
21097
21139
|
|
|
21098
|
-
function ownKeys$
|
|
21099
|
-
function _objectSpread$
|
|
21140
|
+
function ownKeys$1a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21141
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21100
21142
|
var LOG$a = getLogger('Backoffice', 'Translation Form');
|
|
21101
21143
|
function useTranslationHook (item, state) {
|
|
21102
21144
|
var root = useStore();
|
|
@@ -21229,7 +21271,7 @@ function useTranslationHook (item, state) {
|
|
|
21229
21271
|
case 0:
|
|
21230
21272
|
_context2.next = 2;
|
|
21231
21273
|
return apiHandler.create({
|
|
21232
|
-
locales: _objectSpread$
|
|
21274
|
+
locales: _objectSpread$1a({
|
|
21233
21275
|
de: {},
|
|
21234
21276
|
it: {},
|
|
21235
21277
|
fr: {},
|
|
@@ -21278,8 +21320,8 @@ function useTranslationHook (item, state) {
|
|
|
21278
21320
|
};
|
|
21279
21321
|
}
|
|
21280
21322
|
|
|
21281
|
-
function ownKeys$
|
|
21282
|
-
function _objectSpread$
|
|
21323
|
+
function ownKeys$19(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21324
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$19(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$19(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21283
21325
|
var Translation = function Translation(_ref) {
|
|
21284
21326
|
var item = _ref.item,
|
|
21285
21327
|
state = _ref.state,
|
|
@@ -21330,7 +21372,7 @@ var Translation = function Translation(_ref) {
|
|
|
21330
21372
|
var hidden = state.getIsHidden(i, data);
|
|
21331
21373
|
var newAbsoluteName = absoluteName !== '' ? [].concat(_toConsumableArray(Array.isArray(absoluteName) ? absoluteName : [absoluteName]), _toConsumableArray(n)) : n;
|
|
21332
21374
|
return /*#__PURE__*/jsx(React.Fragment, {
|
|
21333
|
-
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$
|
|
21375
|
+
children: ['subTitle', 'array'].includes(i.type) ? getElement(_objectSpread$19(_objectSpread$19({}, i), {}, {
|
|
21334
21376
|
name: n
|
|
21335
21377
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden, currentLang) : /*#__PURE__*/jsx(Form$2.Item, {
|
|
21336
21378
|
id: idx.toString(),
|
|
@@ -21343,7 +21385,7 @@ var Translation = function Translation(_ref) {
|
|
|
21343
21385
|
validateStatus: !!state.fieldErrors[n.toString()] ? 'error' : undefined,
|
|
21344
21386
|
help: (_state$fieldErrors$n$ = state.fieldErrors[n.toString()]) !== null && _state$fieldErrors$n$ !== void 0 ? _state$fieldErrors$n$ : i.helpText,
|
|
21345
21387
|
hidden: hidden,
|
|
21346
|
-
children: getElement(_objectSpread$
|
|
21388
|
+
children: getElement(_objectSpread$19(_objectSpread$19({}, i), {}, {
|
|
21347
21389
|
name: n
|
|
21348
21390
|
}), setCanSave, state, newAbsoluteName, state.onInputChanged, onError, root, form, hidden)
|
|
21349
21391
|
})
|
|
@@ -21686,7 +21728,7 @@ function Media (_ref) {
|
|
|
21686
21728
|
});
|
|
21687
21729
|
}
|
|
21688
21730
|
|
|
21689
|
-
var Text$
|
|
21731
|
+
var Text$6 = function Text(_ref) {
|
|
21690
21732
|
var item = _ref.item;
|
|
21691
21733
|
var _useTranslation = useTranslation(),
|
|
21692
21734
|
t = _useTranslation.t;
|
|
@@ -21695,12 +21737,12 @@ var Text$5 = function Text(_ref) {
|
|
|
21695
21737
|
children: t(item.text)
|
|
21696
21738
|
});
|
|
21697
21739
|
};
|
|
21698
|
-
var Text$
|
|
21740
|
+
var Text$7 = observer(Text$6);
|
|
21699
21741
|
|
|
21700
21742
|
var root$2 = "root-Eiuo1";
|
|
21701
21743
|
var popoverContent = "popoverContent-uExP4";
|
|
21702
|
-
var css_248z$
|
|
21703
|
-
styleInject(css_248z$
|
|
21744
|
+
var css_248z$w = ".root-Eiuo1 {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.popoverContent-uExP4 {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 140px;\n}\n";
|
|
21745
|
+
styleInject(css_248z$w);
|
|
21704
21746
|
|
|
21705
21747
|
var CustomColorPicker = function CustomColorPicker(_ref) {
|
|
21706
21748
|
var item = _ref.item,
|
|
@@ -21830,11 +21872,74 @@ function deltaFromColors(mainHex, valueHex) {
|
|
|
21830
21872
|
return avg;
|
|
21831
21873
|
}
|
|
21832
21874
|
|
|
21875
|
+
function ownKeys$18(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21876
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$18(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$18(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21877
|
+
function FormSlider(_ref) {
|
|
21878
|
+
var item = _ref.item,
|
|
21879
|
+
disabled = _ref.disabled,
|
|
21880
|
+
value = _ref.value,
|
|
21881
|
+
_onChange = _ref.onChange;
|
|
21882
|
+
var _useTranslation = useTranslation(),
|
|
21883
|
+
t = _useTranslation.t;
|
|
21884
|
+
var allowClear = item.allowClear !== false;
|
|
21885
|
+
if (disabled) {
|
|
21886
|
+
var unset = value === undefined || value === null;
|
|
21887
|
+
return /*#__PURE__*/jsx(Input$1, {
|
|
21888
|
+
disabled: true,
|
|
21889
|
+
value: unset ? t('backoffice.form.slider.apiDefaultDisplay', {
|
|
21890
|
+
defaultValue: 'API default'
|
|
21891
|
+
}) : String(value)
|
|
21892
|
+
});
|
|
21893
|
+
}
|
|
21894
|
+
var hasValue = typeof value === 'number' && Number.isFinite(value);
|
|
21895
|
+
return /*#__PURE__*/jsxs("div", {
|
|
21896
|
+
style: {
|
|
21897
|
+
width: '100%',
|
|
21898
|
+
display: 'flex',
|
|
21899
|
+
flexDirection: 'column',
|
|
21900
|
+
gap: 6
|
|
21901
|
+
},
|
|
21902
|
+
children: [!hasValue ? /*#__PURE__*/jsx("span", {
|
|
21903
|
+
style: {
|
|
21904
|
+
fontSize: 12,
|
|
21905
|
+
color: 'rgba(0, 0, 0, 0.45)'
|
|
21906
|
+
},
|
|
21907
|
+
children: t('backoffice.form.slider.apiDefaultHint', {
|
|
21908
|
+
defaultValue: 'Not set (Gemini API default, typically 1). Move the slider to set.'
|
|
21909
|
+
})
|
|
21910
|
+
}) : null, /*#__PURE__*/jsx(Slider, _objectSpread$18(_objectSpread$18({
|
|
21911
|
+
min: item.min,
|
|
21912
|
+
max: item.max,
|
|
21913
|
+
step: item.step
|
|
21914
|
+
}, hasValue ? {
|
|
21915
|
+
value: value
|
|
21916
|
+
} : {}), {}, {
|
|
21917
|
+
onChange: function onChange(v) {
|
|
21918
|
+
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(v);
|
|
21919
|
+
}
|
|
21920
|
+
}), hasValue ? 'set' : 'unset'), hasValue && allowClear ? /*#__PURE__*/jsx(Button, {
|
|
21921
|
+
type: "link",
|
|
21922
|
+
size: "small",
|
|
21923
|
+
style: {
|
|
21924
|
+
padding: 0,
|
|
21925
|
+
height: 'auto',
|
|
21926
|
+
alignSelf: 'flex-start'
|
|
21927
|
+
},
|
|
21928
|
+
onClick: function onClick() {
|
|
21929
|
+
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(undefined);
|
|
21930
|
+
},
|
|
21931
|
+
children: t('backoffice.form.slider.clear', {
|
|
21932
|
+
defaultValue: 'Use API default'
|
|
21933
|
+
})
|
|
21934
|
+
}) : null]
|
|
21935
|
+
});
|
|
21936
|
+
}
|
|
21937
|
+
|
|
21833
21938
|
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21834
21939
|
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
21835
21940
|
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21836
|
-
function ownKeys$
|
|
21837
|
-
function _objectSpread$
|
|
21941
|
+
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21942
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21838
21943
|
function getElement(item, setCanSave, state, absoluteName, _onChange, _onError, root, form, hidden, postFixName) {
|
|
21839
21944
|
var _isReadonly, _state$hiddenRequired, _state$data$_id, _state$data;
|
|
21840
21945
|
if (hidden) return /*#__PURE__*/jsx(Fragment, {});
|
|
@@ -21869,7 +21974,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
21869
21974
|
}
|
|
21870
21975
|
});
|
|
21871
21976
|
case 'selectSimple':
|
|
21872
|
-
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
21977
|
+
return /*#__PURE__*/jsx(SimpleSelect, _objectSpread$17(_objectSpread$17({}, item), {}, {
|
|
21873
21978
|
disabled: disabled,
|
|
21874
21979
|
onChange: function onChange(value) {
|
|
21875
21980
|
_onChange(absoluteName, value);
|
|
@@ -22092,7 +22197,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
22092
22197
|
value: item.value,
|
|
22093
22198
|
options: item.options.map(function (o) {
|
|
22094
22199
|
var _o$disabled;
|
|
22095
|
-
return _objectSpread$
|
|
22200
|
+
return _objectSpread$17(_objectSpread$17({}, o), {}, {
|
|
22096
22201
|
disabled: (_o$disabled = o.disabled) === null || _o$disabled === void 0 ? void 0 : _o$disabled.call(o, state.data)
|
|
22097
22202
|
});
|
|
22098
22203
|
}),
|
|
@@ -22113,7 +22218,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
22113
22218
|
},
|
|
22114
22219
|
icon: item.icon,
|
|
22115
22220
|
callback: function callback(data) {
|
|
22116
|
-
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$
|
|
22221
|
+
return form === null || form === void 0 ? void 0 : form.setFieldsValue(_objectSpread$17(_objectSpread$17({}, state.data), data));
|
|
22117
22222
|
}
|
|
22118
22223
|
});
|
|
22119
22224
|
case 'media':
|
|
@@ -22135,8 +22240,13 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
22135
22240
|
value: colorValue
|
|
22136
22241
|
});
|
|
22137
22242
|
}
|
|
22243
|
+
case 'slider':
|
|
22244
|
+
return /*#__PURE__*/jsx(FormSlider, {
|
|
22245
|
+
item: item,
|
|
22246
|
+
disabled: disabled
|
|
22247
|
+
});
|
|
22138
22248
|
case 'text':
|
|
22139
|
-
return /*#__PURE__*/jsx(Text$
|
|
22249
|
+
return /*#__PURE__*/jsx(Text$7, {
|
|
22140
22250
|
item: item
|
|
22141
22251
|
});
|
|
22142
22252
|
default:
|
|
@@ -22146,7 +22256,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
22146
22256
|
var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22147
22257
|
var _useTranslation = useTranslation(),
|
|
22148
22258
|
t = _useTranslation.t;
|
|
22149
|
-
return /*#__PURE__*/jsx(Input$1, _objectSpread$
|
|
22259
|
+
return /*#__PURE__*/jsx(Input$1, _objectSpread$17(_objectSpread$17({}, props), {}, {
|
|
22150
22260
|
ref: ref,
|
|
22151
22261
|
disabled: true,
|
|
22152
22262
|
value: t(props.translationPrefix + '.' + props.value)
|
|
@@ -22165,8 +22275,8 @@ function isReadonly(item, data) {
|
|
|
22165
22275
|
return false;
|
|
22166
22276
|
}
|
|
22167
22277
|
|
|
22168
|
-
function ownKeys$
|
|
22169
|
-
function _objectSpread$
|
|
22278
|
+
function ownKeys$16(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22279
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22170
22280
|
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; } } }; }
|
|
22171
22281
|
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; } }
|
|
22172
22282
|
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; }
|
|
@@ -22216,13 +22326,13 @@ var Presets = function Presets(_ref) {
|
|
|
22216
22326
|
} finally {
|
|
22217
22327
|
_iterator.f();
|
|
22218
22328
|
}
|
|
22219
|
-
var data = _objectSpread$
|
|
22329
|
+
var data = _objectSpread$16(_objectSpread$16({}, form.getFieldsValue(names)), {}, {
|
|
22220
22330
|
newPresetName: newPresetName
|
|
22221
22331
|
});
|
|
22222
22332
|
data.dpi = parseInt(data.dpi);
|
|
22223
22333
|
data.organization = root.getGlobalValue('organizationId');
|
|
22224
22334
|
apiHandler.create({}, state.configuration.createPresetMapping, data);
|
|
22225
|
-
var dt = _objectSpread$
|
|
22335
|
+
var dt = _objectSpread$16(_objectSpread$16({}, form.getFieldsValue(names)), {}, {
|
|
22226
22336
|
name: newPresetName
|
|
22227
22337
|
});
|
|
22228
22338
|
setPresets({
|
|
@@ -22356,8 +22466,8 @@ function ModalProgressBar(_ref) {
|
|
|
22356
22466
|
});
|
|
22357
22467
|
}
|
|
22358
22468
|
|
|
22359
|
-
function ownKeys$
|
|
22360
|
-
function _objectSpread$
|
|
22469
|
+
function ownKeys$15(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22470
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22361
22471
|
function ItemSelector(_ref) {
|
|
22362
22472
|
var state = _ref.state,
|
|
22363
22473
|
setCanSave = _ref.setCanSave,
|
|
@@ -22374,7 +22484,7 @@ function ItemSelector(_ref) {
|
|
|
22374
22484
|
rules: state.getRules(itemSelector, state.data),
|
|
22375
22485
|
label: itemSelector.label ? t(itemSelector.label, itemSelector.label) : itemSelector.name,
|
|
22376
22486
|
valuePropName: itemSelector.type == 'checkbox' ? 'checked' : 'value',
|
|
22377
|
-
children: getElement(_objectSpread$
|
|
22487
|
+
children: getElement(_objectSpread$15(_objectSpread$15({}, itemSelector), {}, {
|
|
22378
22488
|
value: itemSelector.type == 'select' ? itemSelector.values[state.selectedItemsIndex[idx]] : undefined
|
|
22379
22489
|
}), setCanSave, state, itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
|
|
22380
22490
|
}, itemSelector.name.toString());
|
|
@@ -22721,8 +22831,8 @@ function getLabel(item, t) {
|
|
|
22721
22831
|
}
|
|
22722
22832
|
var Form$1 = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
|
|
22723
22833
|
|
|
22724
|
-
function ownKeys$
|
|
22725
|
-
function _objectSpread$
|
|
22834
|
+
function ownKeys$14(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22835
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22726
22836
|
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
22727
22837
|
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
|
|
22728
22838
|
function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -22924,7 +23034,7 @@ function useRoleSelectorData (_ref) {
|
|
|
22924
23034
|
roles.forEach(function (r) {
|
|
22925
23035
|
//check if after the changes the role is selected
|
|
22926
23036
|
if (value.includes(r._id)) {
|
|
22927
|
-
var newValue = _objectSpread$
|
|
23037
|
+
var newValue = _objectSpread$14(_objectSpread$14({}, r), {}, {
|
|
22928
23038
|
selected: true
|
|
22929
23039
|
});
|
|
22930
23040
|
//add it to the new list as selected role
|
|
@@ -22960,7 +23070,7 @@ function useRoleSelectorData (_ref) {
|
|
|
22960
23070
|
}
|
|
22961
23071
|
}
|
|
22962
23072
|
} else {
|
|
22963
|
-
var _newValue = _objectSpread$
|
|
23073
|
+
var _newValue = _objectSpread$14(_objectSpread$14({}, r), {}, {
|
|
22964
23074
|
selected: false
|
|
22965
23075
|
});
|
|
22966
23076
|
//add it to the new list as unselected role
|
|
@@ -23164,7 +23274,7 @@ function _updateRoles() {
|
|
|
23164
23274
|
userRole = userRoles.find(function (r) {
|
|
23165
23275
|
return r._id == role._id;
|
|
23166
23276
|
});
|
|
23167
|
-
newRole = _objectSpread$
|
|
23277
|
+
newRole = _objectSpread$14({}, role);
|
|
23168
23278
|
if (userRole) {
|
|
23169
23279
|
newRole.selected = true;
|
|
23170
23280
|
newRole.inherited = userRole.inherited;
|
|
@@ -23384,7 +23494,7 @@ function _fetchOptions() {
|
|
|
23384
23494
|
case 4:
|
|
23385
23495
|
result = _context11.sent;
|
|
23386
23496
|
options = result.data.map(function (d) {
|
|
23387
|
-
return _objectSpread$
|
|
23497
|
+
return _objectSpread$14(_objectSpread$14({}, d), {}, {
|
|
23388
23498
|
label: d.displayName,
|
|
23389
23499
|
value: d._id,
|
|
23390
23500
|
isLeaf: !d.hasChildren
|
|
@@ -23485,11 +23595,11 @@ var parentScroll = "parent-scroll-GmaL9";
|
|
|
23485
23595
|
var parent = "parent-NZJ3S";
|
|
23486
23596
|
var container$7 = "container--O28P";
|
|
23487
23597
|
var infiniteScrollContainer = "infiniteScrollContainer-8G1wc";
|
|
23488
|
-
var css_248z$
|
|
23489
|
-
styleInject(css_248z$
|
|
23598
|
+
var css_248z$v = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n flex: 1;\n min-height: 0;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: hidden;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.container--O28P {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n\n.infiniteScrollContainer-8G1wc {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component__outerdiv {\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.infiniteScrollContainer-8G1wc .infinite-scroll-component {\n flex: 1 !important;\n min-height: 0 !important;\n height: auto !important;\n display: flex !important;\n flex-direction: column !important;\n}\n";
|
|
23599
|
+
styleInject(css_248z$v);
|
|
23490
23600
|
|
|
23491
|
-
function ownKeys$
|
|
23492
|
-
function _objectSpread$
|
|
23601
|
+
function ownKeys$13(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23602
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23493
23603
|
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; } } }; }
|
|
23494
23604
|
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; } }
|
|
23495
23605
|
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; }
|
|
@@ -23549,8 +23659,8 @@ function _generateCSV() {
|
|
|
23549
23659
|
break;
|
|
23550
23660
|
}
|
|
23551
23661
|
_context2.next = 21;
|
|
23552
|
-
return generateCSV(_objectSpread$
|
|
23553
|
-
mappingData: _objectSpread$
|
|
23662
|
+
return generateCSV(_objectSpread$13(_objectSpread$13({}, exportParams.children), {}, {
|
|
23663
|
+
mappingData: _objectSpread$13(_objectSpread$13({}, parent), {}, {
|
|
23554
23664
|
parentId: exportParams.mappingData._id
|
|
23555
23665
|
})
|
|
23556
23666
|
}), csvData);
|
|
@@ -23658,8 +23768,8 @@ function _downloadFile() {
|
|
|
23658
23768
|
return _downloadFile.apply(this, arguments);
|
|
23659
23769
|
}
|
|
23660
23770
|
|
|
23661
|
-
function ownKeys
|
|
23662
|
-
function _objectSpread
|
|
23771
|
+
function ownKeys$12(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23772
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23663
23773
|
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; } } }; }
|
|
23664
23774
|
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; } }
|
|
23665
23775
|
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; }
|
|
@@ -24078,7 +24188,7 @@ function useRelationSelectorData (_ref) {
|
|
|
24078
24188
|
var activeItem = _step.value;
|
|
24079
24189
|
if ((activeItem === null || activeItem === void 0 ? void 0 : activeItem._id) === (addedData === null || addedData === void 0 ? void 0 : addedData._id)) {
|
|
24080
24190
|
addedObjects.push(addedData);
|
|
24081
|
-
getSplittedItems(_objectSpread
|
|
24191
|
+
getSplittedItems(_objectSpread$12(_objectSpread$12({}, activeItem), {}, {
|
|
24082
24192
|
userId: data === null || data === void 0 ? void 0 : data._id
|
|
24083
24193
|
}));
|
|
24084
24194
|
ret = true;
|
|
@@ -24283,8 +24393,8 @@ function useRelationSelectorData (_ref) {
|
|
|
24283
24393
|
};
|
|
24284
24394
|
}
|
|
24285
24395
|
|
|
24286
|
-
function ownKeys$
|
|
24287
|
-
function _objectSpread$
|
|
24396
|
+
function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24397
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24288
24398
|
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; } } }; }
|
|
24289
24399
|
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; } }
|
|
24290
24400
|
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; }
|
|
@@ -24417,7 +24527,7 @@ function ActionButton (_ref) {
|
|
|
24417
24527
|
_iterator2.f();
|
|
24418
24528
|
}
|
|
24419
24529
|
_context.next = 19;
|
|
24420
|
-
return apiInterface.update(_objectSpread$
|
|
24530
|
+
return apiInterface.update(_objectSpread$11(_objectSpread$11({}, data), {}, {
|
|
24421
24531
|
state: toSwitch
|
|
24422
24532
|
}), data);
|
|
24423
24533
|
case 19:
|
|
@@ -24574,14 +24684,14 @@ function _simpleChangeValue() {
|
|
|
24574
24684
|
break;
|
|
24575
24685
|
}
|
|
24576
24686
|
for (i = 0; i < action.newValues.length; i++) {
|
|
24577
|
-
fieldsToUpdate = _objectSpread$
|
|
24687
|
+
fieldsToUpdate = _objectSpread$11(_objectSpread$11({}, fieldsToUpdate), {}, _defineProperty({}, action.newValues[i].field, action.newValues[i].value));
|
|
24578
24688
|
}
|
|
24579
24689
|
if (!apiInterface.canUpdate) {
|
|
24580
24690
|
_context2.next = 9;
|
|
24581
24691
|
break;
|
|
24582
24692
|
}
|
|
24583
24693
|
_context2.next = 7;
|
|
24584
|
-
return apiInterface.update(_objectSpread$
|
|
24694
|
+
return apiInterface.update(_objectSpread$11({}, fieldsToUpdate), data);
|
|
24585
24695
|
case 7:
|
|
24586
24696
|
response = _context2.sent;
|
|
24587
24697
|
return _context2.abrupt("return", response);
|
|
@@ -24596,7 +24706,7 @@ function _simpleChangeValue() {
|
|
|
24596
24706
|
return _simpleChangeValue.apply(this, arguments);
|
|
24597
24707
|
}
|
|
24598
24708
|
function A(props) {
|
|
24599
|
-
return /*#__PURE__*/jsx("a", _objectSpread$
|
|
24709
|
+
return /*#__PURE__*/jsx("a", _objectSpread$11({}, props));
|
|
24600
24710
|
}
|
|
24601
24711
|
|
|
24602
24712
|
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; } } }; }
|
|
@@ -24731,11 +24841,11 @@ var newscroller = "newscroller-INKeD";
|
|
|
24731
24841
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
|
24732
24842
|
var itemTitle = "item-title--BTvC";
|
|
24733
24843
|
var itemDesc = "item-desc-DBiiF";
|
|
24734
|
-
var css_248z$
|
|
24735
|
-
styleInject(css_248z$
|
|
24844
|
+
var css_248z$u = ".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";
|
|
24845
|
+
styleInject(css_248z$u);
|
|
24736
24846
|
|
|
24737
|
-
function ownKeys$
|
|
24738
|
-
function _objectSpread$
|
|
24847
|
+
function ownKeys$10(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24848
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$10(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$10(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24739
24849
|
var DropDown = function DropDown(_ref) {
|
|
24740
24850
|
var _curItem$data$length;
|
|
24741
24851
|
var split = _ref.split,
|
|
@@ -24767,7 +24877,7 @@ var DropDown = function DropDown(_ref) {
|
|
|
24767
24877
|
});
|
|
24768
24878
|
return /*#__PURE__*/jsx(Collapse, {
|
|
24769
24879
|
onChange: function onChange() {
|
|
24770
|
-
return getSplittedItems(_objectSpread$
|
|
24880
|
+
return getSplittedItems(_objectSpread$10(_objectSpread$10({}, item.item), {}, {
|
|
24771
24881
|
parentId: item.parentId
|
|
24772
24882
|
}), 0);
|
|
24773
24883
|
},
|
|
@@ -25027,8 +25137,8 @@ var RelationSelector = function RelationSelector(_ref, ref) {
|
|
|
25027
25137
|
};
|
|
25028
25138
|
var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
|
|
25029
25139
|
|
|
25030
|
-
function ownKeys
|
|
25031
|
-
function _objectSpread
|
|
25140
|
+
function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25141
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25032
25142
|
function useFormListData (_ref) {
|
|
25033
25143
|
var _configuration$defaul;
|
|
25034
25144
|
var id = _ref.id,
|
|
@@ -25108,7 +25218,7 @@ function useFormListData (_ref) {
|
|
|
25108
25218
|
if (updated.length == state.length) {
|
|
25109
25219
|
newState = state.map(function (s, i) {
|
|
25110
25220
|
var _updated$find;
|
|
25111
|
-
return _objectSpread
|
|
25221
|
+
return _objectSpread$$(_objectSpread$$({}, s), {}, {
|
|
25112
25222
|
data: (_updated$find = updated.find(function (u) {
|
|
25113
25223
|
return u.index == i;
|
|
25114
25224
|
})) === null || _updated$find === void 0 ? void 0 : _updated$find.data
|
|
@@ -25245,8 +25355,8 @@ var FormList = function FormList(_ref, ref) {
|
|
|
25245
25355
|
};
|
|
25246
25356
|
var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
|
|
25247
25357
|
|
|
25248
|
-
function ownKeys$
|
|
25249
|
-
function _objectSpread$
|
|
25358
|
+
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25359
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25250
25360
|
var LOG$7 = getLogger('Backoffice', 'SelectOrCreate');
|
|
25251
25361
|
function useSelectOrCreateData (_ref) {
|
|
25252
25362
|
var id = _ref.id,
|
|
@@ -25343,7 +25453,7 @@ function useSelectOrCreateData (_ref) {
|
|
|
25343
25453
|
_context.next = 7;
|
|
25344
25454
|
return apiHandler.readList(configuration.readMapping, mappingData, {
|
|
25345
25455
|
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) {
|
|
25346
|
-
return _objectSpread$
|
|
25456
|
+
return _objectSpread$_(_objectSpread$_({}, filter), {}, _defineProperty({}, field.field, [value, field.filter, true]));
|
|
25347
25457
|
}, {}) : {
|
|
25348
25458
|
_id: [value, 'contains']
|
|
25349
25459
|
},
|
|
@@ -25654,8 +25764,8 @@ var Multiple = function Multiple(_ref3) {
|
|
|
25654
25764
|
});
|
|
25655
25765
|
};
|
|
25656
25766
|
|
|
25657
|
-
function ownKeys$
|
|
25658
|
-
function _objectSpread$
|
|
25767
|
+
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; }
|
|
25768
|
+
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; }
|
|
25659
25769
|
function useListData (_ref) {
|
|
25660
25770
|
var id = _ref.id,
|
|
25661
25771
|
data = _ref.data;
|
|
@@ -25698,7 +25808,7 @@ function useListData (_ref) {
|
|
|
25698
25808
|
case 3:
|
|
25699
25809
|
result = _context.sent;
|
|
25700
25810
|
setListData(result.data.map(parseField));
|
|
25701
|
-
initData = _objectSpread$
|
|
25811
|
+
initData = _objectSpread$Z({}, data);
|
|
25702
25812
|
setUpdatedObject(initData);
|
|
25703
25813
|
setLoading(false);
|
|
25704
25814
|
case 8:
|
|
@@ -25739,7 +25849,7 @@ function useListData (_ref) {
|
|
|
25739
25849
|
});
|
|
25740
25850
|
(_configuration$itemMa7 = configuration.itemMapping.itemUpdate) === null || _configuration$itemMa7 === void 0 || _configuration$itemMa7.forEach(function (field) {
|
|
25741
25851
|
var parsedField = field.field.split('.');
|
|
25742
|
-
item.itemUpdate = _objectSpread$
|
|
25852
|
+
item.itemUpdate = _objectSpread$Z(_objectSpread$Z({}, field), {}, {
|
|
25743
25853
|
value: dataEntry[parsedField[parsedField.length - 1]]
|
|
25744
25854
|
});
|
|
25745
25855
|
});
|
|
@@ -25770,16 +25880,16 @@ function useListData (_ref) {
|
|
|
25770
25880
|
console.error('field with more than 2 parts not allowed');
|
|
25771
25881
|
return;
|
|
25772
25882
|
}
|
|
25773
|
-
var updObj = _objectSpread$
|
|
25883
|
+
var updObj = _objectSpread$Z({}, updatedObject);
|
|
25774
25884
|
if (fields.length === 1) {
|
|
25775
|
-
updObj = _objectSpread$
|
|
25885
|
+
updObj = _objectSpread$Z(_objectSpread$Z({}, updObj), {}, _defineProperty({}, fields[0], value));
|
|
25776
25886
|
} else if (fields.length === 2) {
|
|
25777
25887
|
var updatedField = updObj[fields[0]].find(function (v) {
|
|
25778
25888
|
return v.id === item.id.trim();
|
|
25779
25889
|
});
|
|
25780
25890
|
if (updatedField) {
|
|
25781
|
-
var updatedFieldCopy = _objectSpread$
|
|
25782
|
-
updObj = _objectSpread$
|
|
25891
|
+
var updatedFieldCopy = _objectSpread$Z(_objectSpread$Z({}, updatedField), {}, _defineProperty({}, fields[1], value));
|
|
25892
|
+
updObj = _objectSpread$Z(_objectSpread$Z({}, updObj), {}, _defineProperty({}, fields[0], updObj[fields[0]].map(function (v) {
|
|
25783
25893
|
return v.id === item.id.trim() ? updatedFieldCopy : v;
|
|
25784
25894
|
})));
|
|
25785
25895
|
}
|
|
@@ -25788,11 +25898,11 @@ function useListData (_ref) {
|
|
|
25788
25898
|
var acItems = listData;
|
|
25789
25899
|
for (var i = 0; i < acItems.length; i++) {
|
|
25790
25900
|
if (i == index) {
|
|
25791
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
25901
|
+
acItems[i].itemUpdate = _objectSpread$Z(_objectSpread$Z({}, acItems[i].itemUpdate), {}, {
|
|
25792
25902
|
value: value
|
|
25793
25903
|
});
|
|
25794
25904
|
} else if (!acItems[i].itemUpdate.multiselect) {
|
|
25795
|
-
acItems[i].itemUpdate = _objectSpread$
|
|
25905
|
+
acItems[i].itemUpdate = _objectSpread$Z(_objectSpread$Z({}, acItems[i].itemUpdate), {}, {
|
|
25796
25906
|
value: !value
|
|
25797
25907
|
});
|
|
25798
25908
|
}
|
|
@@ -26146,8 +26256,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
|
26146
26256
|
var preview = "preview-9wK81";
|
|
26147
26257
|
var previewButton = "preview-button-vupuG";
|
|
26148
26258
|
var editButton = "edit-button-m6r3M";
|
|
26149
|
-
var css_248z$
|
|
26150
|
-
styleInject(css_248z$
|
|
26259
|
+
var css_248z$t = ".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";
|
|
26260
|
+
styleInject(css_248z$t);
|
|
26151
26261
|
|
|
26152
26262
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
|
26153
26263
|
var id = _ref.id,
|
|
@@ -26306,8 +26416,8 @@ function calcNaturalCanvasSize(image, crop) {
|
|
|
26306
26416
|
};
|
|
26307
26417
|
}
|
|
26308
26418
|
|
|
26309
|
-
function ownKeys$
|
|
26310
|
-
function _objectSpread$
|
|
26419
|
+
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; }
|
|
26420
|
+
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; }
|
|
26311
26421
|
var ImageCropper = function ImageCropper(_ref, ref) {
|
|
26312
26422
|
var id = _ref.id,
|
|
26313
26423
|
data = _ref.data,
|
|
@@ -26415,12 +26525,12 @@ var ImageCropper = function ImageCropper(_ref, ref) {
|
|
|
26415
26525
|
}
|
|
26416
26526
|
function onEnter(e) {
|
|
26417
26527
|
if (e.key != 'Enter') return;
|
|
26418
|
-
setCrop(_objectSpread$
|
|
26528
|
+
setCrop(_objectSpread$Y(_objectSpread$Y({}, crop), {}, {
|
|
26419
26529
|
unit: 'px',
|
|
26420
26530
|
width: Number(widthInputElement.current.value),
|
|
26421
26531
|
height: Number(heightInputElement.current.value)
|
|
26422
26532
|
}));
|
|
26423
|
-
setCompletedCrop(_objectSpread$
|
|
26533
|
+
setCompletedCrop(_objectSpread$Y(_objectSpread$Y({}, crop), {}, {
|
|
26424
26534
|
unit: 'px',
|
|
26425
26535
|
width: Number(widthInputElement.current.value),
|
|
26426
26536
|
height: Number(heightInputElement.current.value)
|
|
@@ -26498,8 +26608,8 @@ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
|
|
|
26498
26608
|
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; } } }; }
|
|
26499
26609
|
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; } }
|
|
26500
26610
|
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; }
|
|
26501
|
-
function ownKeys$
|
|
26502
|
-
function _objectSpread$
|
|
26611
|
+
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; }
|
|
26612
|
+
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; }
|
|
26503
26613
|
function useDescriptions (_ref) {
|
|
26504
26614
|
var id = _ref.id;
|
|
26505
26615
|
var root = useStore();
|
|
@@ -26592,7 +26702,7 @@ function _getDisplayData() {
|
|
|
26592
26702
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
26593
26703
|
while (1) switch (_context4.prev = _context4.next) {
|
|
26594
26704
|
case 0:
|
|
26595
|
-
displayData = _objectSpread$
|
|
26705
|
+
displayData = _objectSpread$X({}, data);
|
|
26596
26706
|
_iterator = _createForOfIteratorHelper$d(items);
|
|
26597
26707
|
_context4.prev = 2;
|
|
26598
26708
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
@@ -26868,8 +26978,8 @@ var FileUploadWrapper$1 = function FileUploadWrapper(_ref) {
|
|
|
26868
26978
|
};
|
|
26869
26979
|
var FileUploadBeta = observer(FileUploadWrapper$1);
|
|
26870
26980
|
|
|
26871
|
-
function ownKeys$
|
|
26872
|
-
function _objectSpread$
|
|
26981
|
+
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; }
|
|
26982
|
+
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; }
|
|
26873
26983
|
function useGridData (_ref) {
|
|
26874
26984
|
var id = _ref.id,
|
|
26875
26985
|
data = _ref.data;
|
|
@@ -26912,11 +27022,11 @@ function useGridData (_ref) {
|
|
|
26912
27022
|
function reducer(state, action) {
|
|
26913
27023
|
switch (action.type) {
|
|
26914
27024
|
case 'update':
|
|
26915
|
-
return _objectSpread$
|
|
27025
|
+
return _objectSpread$W(_objectSpread$W({}, state), {}, _defineProperty({}, action.data.divaNr, _objectSpread$W(_objectSpread$W({}, action.data), {}, {
|
|
26916
27026
|
buffer: Buffer.from(action.data.buffer)
|
|
26917
27027
|
})));
|
|
26918
27028
|
case 'delete':
|
|
26919
|
-
var newState = _objectSpread$
|
|
27029
|
+
var newState = _objectSpread$W({}, state);
|
|
26920
27030
|
delete newState[action.data.divaNr];
|
|
26921
27031
|
return newState;
|
|
26922
27032
|
default:
|
|
@@ -26926,13 +27036,13 @@ function reducer(state, action) {
|
|
|
26926
27036
|
|
|
26927
27037
|
var grid = "grid-sGemi";
|
|
26928
27038
|
var textWrapper = "text-wrapper-xsPXE";
|
|
26929
|
-
var css_248z$
|
|
26930
|
-
styleInject(css_248z$
|
|
27039
|
+
var css_248z$s = ".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";
|
|
27040
|
+
styleInject(css_248z$s);
|
|
26931
27041
|
|
|
26932
27042
|
var wrapper$4 = "wrapper-p-gR3";
|
|
26933
27043
|
var container$6 = "container-DoZqe";
|
|
26934
|
-
var css_248z$
|
|
26935
|
-
styleInject(css_248z$
|
|
27044
|
+
var css_248z$r = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
|
27045
|
+
styleInject(css_248z$r);
|
|
26936
27046
|
|
|
26937
27047
|
var ToolTipInfo = function ToolTipInfo(props) {
|
|
26938
27048
|
var _useTranslation = useTranslation(),
|
|
@@ -27003,8 +27113,8 @@ var Grid = function Grid(_ref) {
|
|
|
27003
27113
|
});
|
|
27004
27114
|
};
|
|
27005
27115
|
|
|
27006
|
-
function ownKeys$
|
|
27007
|
-
function _objectSpread$
|
|
27116
|
+
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; }
|
|
27117
|
+
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; }
|
|
27008
27118
|
var useMediaUpload = function useMediaUpload(_ref) {
|
|
27009
27119
|
var id = _ref.id;
|
|
27010
27120
|
var root = useStore();
|
|
@@ -27137,7 +27247,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
27137
27247
|
onRemove: onRemove,
|
|
27138
27248
|
customRequest: customRequest,
|
|
27139
27249
|
fileList: fileList.map(function (f) {
|
|
27140
|
-
return _objectSpread$
|
|
27250
|
+
return _objectSpread$V(_objectSpread$V({}, f), {}, {
|
|
27141
27251
|
url: f.url
|
|
27142
27252
|
});
|
|
27143
27253
|
}),
|
|
@@ -27151,8 +27261,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
27151
27261
|
var small = "small-NY1-k";
|
|
27152
27262
|
var medium = "medium---QcO";
|
|
27153
27263
|
var big = "big--E39S";
|
|
27154
|
-
var css_248z$
|
|
27155
|
-
styleInject(css_248z$
|
|
27264
|
+
var css_248z$q = ".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";
|
|
27265
|
+
styleInject(css_248z$q);
|
|
27156
27266
|
|
|
27157
27267
|
var MediaUpload = observer(function (_ref) {
|
|
27158
27268
|
var id = _ref.id;
|
|
@@ -27241,8 +27351,8 @@ var TableSummary = function TableSummary(_ref) {
|
|
|
27241
27351
|
});
|
|
27242
27352
|
};
|
|
27243
27353
|
|
|
27244
|
-
function ownKeys$
|
|
27245
|
-
function _objectSpread$
|
|
27354
|
+
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; }
|
|
27355
|
+
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; }
|
|
27246
27356
|
function getExpandedRowRenderer (config, root) {
|
|
27247
27357
|
return function (record) {
|
|
27248
27358
|
var data = record;
|
|
@@ -27264,7 +27374,7 @@ function customSubTable(columns, datasource) {
|
|
|
27264
27374
|
// map custom columns to antd columns
|
|
27265
27375
|
var antcols = columns.map(function (col) {
|
|
27266
27376
|
var _col$width;
|
|
27267
|
-
return _objectSpread$
|
|
27377
|
+
return _objectSpread$U(_objectSpread$U({}, col), {}, {
|
|
27268
27378
|
title: col.title,
|
|
27269
27379
|
dataIndex: col.field,
|
|
27270
27380
|
key: col.field,
|
|
@@ -27293,8 +27403,8 @@ var checkbox = "checkbox-H7R-w";
|
|
|
27293
27403
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
|
27294
27404
|
var contentWidth = "content-width-hGyVI";
|
|
27295
27405
|
var tableLoadingSpin = "table-loading-spin-QjnC-";
|
|
27296
|
-
var css_248z$
|
|
27297
|
-
styleInject(css_248z$
|
|
27406
|
+
var css_248z$p = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n\n.ant-select {\n display: inline-flex !important;\n}\n\n/* Fix for antd Table extra column on Windows */\n/* workarround for https://github.com/ant-design/ant-design/issues/55633, if resolved try to remove this */\n.ant-table-cell-scrollbar:not(.ant-table-cell-fix-right) {\n display: none !important;\n}\n\n.table-loading-spin-QjnC- {\n overflow: auto;\n height: 100%;\n}\n";
|
|
27407
|
+
styleInject(css_248z$p);
|
|
27298
27408
|
|
|
27299
27409
|
function BooleanCell (_ref) {
|
|
27300
27410
|
var children = _ref.children,
|
|
@@ -28020,8 +28130,8 @@ function ArrayCell (_ref) {
|
|
|
28020
28130
|
|
|
28021
28131
|
var _excluded$7 = ["index"],
|
|
28022
28132
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
|
28023
|
-
function ownKeys$
|
|
28024
|
-
function _objectSpread$
|
|
28133
|
+
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; }
|
|
28134
|
+
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; }
|
|
28025
28135
|
var LOG$5 = getLogger('Backoffice', 'CellRenderer');
|
|
28026
28136
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
28027
28137
|
var CustomRow = function CustomRow(_ref) {
|
|
@@ -28035,7 +28145,7 @@ var CustomRow = function CustomRow(_ref) {
|
|
|
28035
28145
|
component: false,
|
|
28036
28146
|
children: /*#__PURE__*/jsx(EditableContext.Provider, {
|
|
28037
28147
|
value: form,
|
|
28038
|
-
children: /*#__PURE__*/jsx("tr", _objectSpread$
|
|
28148
|
+
children: /*#__PURE__*/jsx("tr", _objectSpread$T({}, props))
|
|
28039
28149
|
})
|
|
28040
28150
|
});
|
|
28041
28151
|
};
|
|
@@ -28088,7 +28198,7 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
28088
28198
|
if ((record === null || record === void 0 ? void 0 : record.ItemField) == 'LongDescription') {
|
|
28089
28199
|
longDescriptionType = 'text';
|
|
28090
28200
|
}
|
|
28091
|
-
var modifiedColumn = _objectSpread$
|
|
28201
|
+
var modifiedColumn = _objectSpread$T(_objectSpread$T({}, column), {}, {
|
|
28092
28202
|
type: longDescriptionType || (column === null || column === void 0 ? void 0 : column.type)
|
|
28093
28203
|
});
|
|
28094
28204
|
if (column) {
|
|
@@ -28101,43 +28211,43 @@ var CustomCell = function CustomCell(_ref2) {
|
|
|
28101
28211
|
};
|
|
28102
28212
|
switch (modifiedColumn.type) {
|
|
28103
28213
|
case 'boolean':
|
|
28104
|
-
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$
|
|
28214
|
+
childNode = /*#__PURE__*/jsx(BooleanCell, _objectSpread$T({}, cellProps));
|
|
28105
28215
|
break;
|
|
28106
28216
|
case 'text':
|
|
28107
|
-
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$
|
|
28217
|
+
childNode = /*#__PURE__*/jsx(TextCell, _objectSpread$T({}, cellProps));
|
|
28108
28218
|
break;
|
|
28109
28219
|
case 'select':
|
|
28110
|
-
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$
|
|
28220
|
+
childNode = /*#__PURE__*/jsx(DropdownCell, _objectSpread$T({}, cellProps));
|
|
28111
28221
|
case 'media':
|
|
28112
|
-
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$
|
|
28222
|
+
childNode = /*#__PURE__*/jsx(MediaViewerCell, _objectSpread$T({}, cellProps));
|
|
28113
28223
|
break;
|
|
28114
28224
|
case 'mediaItem':
|
|
28115
|
-
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$
|
|
28225
|
+
childNode = /*#__PURE__*/jsx(MediaItemViewerCell, _objectSpread$T({}, cellProps));
|
|
28116
28226
|
break;
|
|
28117
28227
|
case 'unixTimeStamp':
|
|
28118
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$
|
|
28228
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCell, _objectSpread$T({}, cellProps));
|
|
28119
28229
|
break;
|
|
28120
28230
|
case 'unixTimeStampCheck':
|
|
28121
|
-
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$
|
|
28231
|
+
childNode = /*#__PURE__*/jsx(UnixTimeStampCheckCell, _objectSpread$T({}, cellProps));
|
|
28122
28232
|
break;
|
|
28123
28233
|
case 'icon':
|
|
28124
|
-
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$
|
|
28234
|
+
childNode = /*#__PURE__*/jsx(IconCell, _objectSpread$T({}, cellProps));
|
|
28125
28235
|
break;
|
|
28126
28236
|
case 'progress':
|
|
28127
|
-
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$
|
|
28237
|
+
childNode = /*#__PURE__*/jsx(ProgressCell, _objectSpread$T({}, cellProps));
|
|
28128
28238
|
break;
|
|
28129
28239
|
case 'link':
|
|
28130
|
-
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$
|
|
28240
|
+
childNode = /*#__PURE__*/jsx(LinkCell, _objectSpread$T({}, cellProps));
|
|
28131
28241
|
break;
|
|
28132
28242
|
case 'array':
|
|
28133
|
-
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$
|
|
28243
|
+
childNode = /*#__PURE__*/jsx(ArrayCell, _objectSpread$T({}, cellProps));
|
|
28134
28244
|
break;
|
|
28135
28245
|
default:
|
|
28136
|
-
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$
|
|
28246
|
+
childNode = /*#__PURE__*/jsx(StringCell, _objectSpread$T({}, cellProps));
|
|
28137
28247
|
break;
|
|
28138
28248
|
}
|
|
28139
28249
|
}
|
|
28140
|
-
return /*#__PURE__*/jsx("td", _objectSpread$
|
|
28250
|
+
return /*#__PURE__*/jsx("td", _objectSpread$T(_objectSpread$T({}, restProps), {}, {
|
|
28141
28251
|
children: childNode
|
|
28142
28252
|
}));
|
|
28143
28253
|
};
|
|
@@ -28329,8 +28439,8 @@ function useAGHistogram (_ref) {
|
|
|
28329
28439
|
var container$5 = "container-2r-OJ";
|
|
28330
28440
|
var column1 = "column1-9viTK";
|
|
28331
28441
|
var spinner = "spinner-00VcK";
|
|
28332
|
-
var css_248z$
|
|
28333
|
-
styleInject(css_248z$
|
|
28442
|
+
var css_248z$o = ".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";
|
|
28443
|
+
styleInject(css_248z$o);
|
|
28334
28444
|
|
|
28335
28445
|
var Panel$1 = Collapse.Panel;
|
|
28336
28446
|
function AGHistogram (_ref) {
|
|
@@ -28492,8 +28602,8 @@ var SMChart = function SMChart(props) {
|
|
|
28492
28602
|
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28493
28603
|
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
|
|
28494
28604
|
function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28495
|
-
function ownKeys$
|
|
28496
|
-
function _objectSpread$
|
|
28605
|
+
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; }
|
|
28606
|
+
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; }
|
|
28497
28607
|
|
|
28498
28608
|
/**
|
|
28499
28609
|
* Props for the useTools hook
|
|
@@ -28533,7 +28643,7 @@ var useTools = function useTools(_ref) {
|
|
|
28533
28643
|
var packageId = enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage._id;
|
|
28534
28644
|
var isoLanguageIds = (catalog === null || catalog === void 0 ? void 0 : catalog.isoLanguageIds) || (enricherPackage === null || enricherPackage === void 0 ? void 0 : enricherPackage.isoLanguageIds);
|
|
28535
28645
|
var createTool = function createTool(tool) {
|
|
28536
|
-
return _objectSpread$
|
|
28646
|
+
return _objectSpread$S({
|
|
28537
28647
|
startWidth: 600,
|
|
28538
28648
|
defaultPinned: true,
|
|
28539
28649
|
defaultOpen: false
|
|
@@ -28564,7 +28674,7 @@ var useTools = function useTools(_ref) {
|
|
|
28564
28674
|
name: 'Konfigurator',
|
|
28565
28675
|
type: 'Configurator',
|
|
28566
28676
|
where: 'right',
|
|
28567
|
-
parameters: _objectSpread$
|
|
28677
|
+
parameters: _objectSpread$S({
|
|
28568
28678
|
catalogId: catalogId,
|
|
28569
28679
|
packageId: packageId,
|
|
28570
28680
|
isIDMData: !isApi2 ? '1' : undefined
|
|
@@ -28654,8 +28764,8 @@ function InformationButton(_ref) {
|
|
|
28654
28764
|
});
|
|
28655
28765
|
}
|
|
28656
28766
|
|
|
28657
|
-
function ownKeys$
|
|
28658
|
-
function _objectSpread$
|
|
28767
|
+
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; }
|
|
28768
|
+
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; }
|
|
28659
28769
|
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(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; } } }; }
|
|
28660
28770
|
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(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$7(r, a) : void 0; } }
|
|
28661
28771
|
function _arrayLikeToArray$7(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; }
|
|
@@ -28755,7 +28865,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
28755
28865
|
if (data && data.length > 0) {
|
|
28756
28866
|
data = data.map(function (dt) {
|
|
28757
28867
|
var _ref2, _dt$catalogItem;
|
|
28758
|
-
return _objectSpread$
|
|
28868
|
+
return _objectSpread$R(_objectSpread$R({}, dt), {}, {
|
|
28759
28869
|
catalogItem: (_ref2 = (_dt$catalogItem = dt.catalogItem) !== null && _dt$catalogItem !== void 0 ? _dt$catalogItem : state.catalogItem) !== null && _ref2 !== void 0 ? _ref2 : null
|
|
28760
28870
|
});
|
|
28761
28871
|
});
|
|
@@ -28910,7 +29020,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
28910
29020
|
// Convert to Dayjs
|
|
28911
29021
|
(_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
|
|
28912
29022
|
]
|
|
28913
|
-
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$
|
|
29023
|
+
}), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$R(_objectSpread$R({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
|
|
28914
29024
|
style: {
|
|
28915
29025
|
minWidth: '200px'
|
|
28916
29026
|
},
|
|
@@ -29020,7 +29130,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
29020
29130
|
root: tableLoadingSpin
|
|
29021
29131
|
}
|
|
29022
29132
|
},
|
|
29023
|
-
pagination: _objectSpread$
|
|
29133
|
+
pagination: _objectSpread$R(_objectSpread$R({}, state.pagination), {}, {
|
|
29024
29134
|
showTotal: function showTotal(total, range) {
|
|
29025
29135
|
return "".concat(range[0], "-").concat(range[1], " of ").concat(total, " Elements");
|
|
29026
29136
|
},
|
|
@@ -29340,7 +29450,7 @@ function BulkAction(_ref8) {
|
|
|
29340
29450
|
}
|
|
29341
29451
|
_context5.t0 = data;
|
|
29342
29452
|
_context5.next = 11;
|
|
29343
|
-
return apiInterface.update(_objectSpread$
|
|
29453
|
+
return apiInterface.update(_objectSpread$R(_objectSpread$R({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
29344
29454
|
case 11:
|
|
29345
29455
|
_context5.t1 = _context5.sent;
|
|
29346
29456
|
_context5.t0.push.call(_context5.t0, _context5.t1);
|
|
@@ -29453,8 +29563,8 @@ function SelectionText(_ref10) {
|
|
|
29453
29563
|
});
|
|
29454
29564
|
}
|
|
29455
29565
|
|
|
29456
|
-
function ownKeys$
|
|
29457
|
-
function _objectSpread$
|
|
29566
|
+
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; }
|
|
29567
|
+
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; }
|
|
29458
29568
|
function getColumnFilterProps (_ref) {
|
|
29459
29569
|
var filter = _ref.filter,
|
|
29460
29570
|
title = _ref.title;
|
|
@@ -29817,7 +29927,7 @@ var selectProps = function selectProps(title, filter) {
|
|
|
29817
29927
|
});
|
|
29818
29928
|
},
|
|
29819
29929
|
options: filter.map(function (f) {
|
|
29820
|
-
return _objectSpread$
|
|
29930
|
+
return _objectSpread$Q(_objectSpread$Q({}, f), {}, {
|
|
29821
29931
|
label: t(f.label)
|
|
29822
29932
|
});
|
|
29823
29933
|
})
|
|
@@ -29866,7 +29976,7 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
29866
29976
|
setDisplaySelectedvalues = _useState4[1];
|
|
29867
29977
|
var options = [];
|
|
29868
29978
|
options = filter.map(function (f) {
|
|
29869
|
-
return _objectSpread$
|
|
29979
|
+
return _objectSpread$Q(_objectSpread$Q({}, f), {}, {
|
|
29870
29980
|
label: t(f.label)
|
|
29871
29981
|
});
|
|
29872
29982
|
});
|
|
@@ -29940,8 +30050,8 @@ var multiSelectProps = function multiSelectProps(title, filter) {
|
|
|
29940
30050
|
};
|
|
29941
30051
|
};
|
|
29942
30052
|
|
|
29943
|
-
function ownKeys$
|
|
29944
|
-
function _objectSpread$
|
|
30053
|
+
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; }
|
|
30054
|
+
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; }
|
|
29945
30055
|
function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilter) {
|
|
29946
30056
|
var columns = configuration.columns.filter(function (c) {
|
|
29947
30057
|
if (typeof c.hidden == 'boolean' && c.hidden) {
|
|
@@ -29994,7 +30104,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
|
|
|
29994
30104
|
}
|
|
29995
30105
|
function mapColumn(column, onUpdate) {
|
|
29996
30106
|
var _column$field, _column$children;
|
|
29997
|
-
return _objectSpread$
|
|
30107
|
+
return _objectSpread$P(_objectSpread$P(_objectSpread$P({}, column), {}, {
|
|
29998
30108
|
hidden: false,
|
|
29999
30109
|
width: column.width || 100,
|
|
30000
30110
|
dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
|
|
@@ -30044,8 +30154,8 @@ function updateData (_ref) {
|
|
|
30044
30154
|
};
|
|
30045
30155
|
}
|
|
30046
30156
|
|
|
30047
|
-
function ownKeys$
|
|
30048
|
-
function _objectSpread$
|
|
30157
|
+
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; }
|
|
30158
|
+
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; }
|
|
30049
30159
|
function applyFilterAndSortation (_ref) {
|
|
30050
30160
|
var data = _ref.data,
|
|
30051
30161
|
filters = _ref.filters,
|
|
@@ -30060,7 +30170,7 @@ function applyFilterAndSortation (_ref) {
|
|
|
30060
30170
|
processedData = sort(sorter || [], processedData);
|
|
30061
30171
|
return {
|
|
30062
30172
|
data: processedData,
|
|
30063
|
-
pagination: _objectSpread$
|
|
30173
|
+
pagination: _objectSpread$O(_objectSpread$O({}, pagination), {}, {
|
|
30064
30174
|
total: processedData.length
|
|
30065
30175
|
})
|
|
30066
30176
|
};
|
|
@@ -30145,8 +30255,8 @@ function filter(f, data) {
|
|
|
30145
30255
|
}
|
|
30146
30256
|
|
|
30147
30257
|
var _excluded$6 = ["_id"];
|
|
30148
|
-
function ownKeys$
|
|
30149
|
-
function _objectSpread$
|
|
30258
|
+
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; }
|
|
30259
|
+
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; }
|
|
30150
30260
|
function useTableData$1 (_ref) {
|
|
30151
30261
|
var _configuration$apiInt;
|
|
30152
30262
|
var id = _ref.id;
|
|
@@ -30201,7 +30311,7 @@ function useTableData$1 (_ref) {
|
|
|
30201
30311
|
var _configuration$create;
|
|
30202
30312
|
if (!dataRow) return;
|
|
30203
30313
|
var id = v4();
|
|
30204
|
-
var processedDataRow = unflatten(_objectSpread$
|
|
30314
|
+
var processedDataRow = unflatten(_objectSpread$N({
|
|
30205
30315
|
_id: id,
|
|
30206
30316
|
ID: id
|
|
30207
30317
|
}, dataRow));
|
|
@@ -30213,11 +30323,11 @@ function useTableData$1 (_ref) {
|
|
|
30213
30323
|
newData = _updateData.data;
|
|
30214
30324
|
_updateData.prevDataRow;
|
|
30215
30325
|
_updateData.index;
|
|
30216
|
-
var newState = _objectSpread$
|
|
30326
|
+
var newState = _objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30217
30327
|
data: newData
|
|
30218
30328
|
});
|
|
30219
30329
|
if (!filterServerSide) {
|
|
30220
|
-
var res = applyFilterAndSortation(_objectSpread$
|
|
30330
|
+
var res = applyFilterAndSortation(_objectSpread$N(_objectSpread$N({}, filterData), {}, {
|
|
30221
30331
|
data: newData
|
|
30222
30332
|
}));
|
|
30223
30333
|
newState.data = res.data;
|
|
@@ -30229,33 +30339,33 @@ function useTableData$1 (_ref) {
|
|
|
30229
30339
|
var formData = new FormData();
|
|
30230
30340
|
processedDataRow._id;
|
|
30231
30341
|
var value = _objectWithoutProperties(processedDataRow, _excluded$6);
|
|
30232
|
-
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$
|
|
30342
|
+
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$N(_objectSpread$N({}, catalogItem), {}, {
|
|
30233
30343
|
filterContex: filterContex,
|
|
30234
30344
|
value: JSON.stringify([value])
|
|
30235
30345
|
}), formData, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (d) {
|
|
30236
30346
|
if (d && d.Result && d.Result == 'Success') return;
|
|
30237
|
-
setState(_objectSpread$
|
|
30347
|
+
setState(_objectSpread$N({}, oldState));
|
|
30238
30348
|
});
|
|
30239
30349
|
}, [state, catalogItem, filterData]);
|
|
30240
30350
|
useEffect(function () {
|
|
30241
30351
|
if (!catalogItem) return;
|
|
30242
|
-
setState(_objectSpread$
|
|
30352
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30243
30353
|
loading: true,
|
|
30244
|
-
mappingData: _objectSpread$
|
|
30354
|
+
mappingData: _objectSpread$N(_objectSpread$N({}, catalogItem), {}, {
|
|
30245
30355
|
filterContex: filterContex
|
|
30246
30356
|
})
|
|
30247
30357
|
}));
|
|
30248
30358
|
if (!filterServerSide) {
|
|
30249
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
30359
|
+
apiHandler.readList(configuration.mapping, _objectSpread$N(_objectSpread$N({}, catalogItem), {}, {
|
|
30250
30360
|
filterContex: filterContex
|
|
30251
30361
|
}), undefined, catalogItem.sessionGuid).then(function (data) {
|
|
30252
30362
|
var newData = data.data.map(function (d) {
|
|
30253
|
-
return _objectSpread$
|
|
30363
|
+
return _objectSpread$N(_objectSpread$N({}, d), {}, {
|
|
30254
30364
|
_id: d._id || d.ID || nanoid()
|
|
30255
30365
|
});
|
|
30256
30366
|
});
|
|
30257
30367
|
onChange({
|
|
30258
|
-
pagination: _objectSpread$
|
|
30368
|
+
pagination: _objectSpread$N({}, state.pagination),
|
|
30259
30369
|
filters: {},
|
|
30260
30370
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
30261
30371
|
return c.defaultSortOrder;
|
|
@@ -30271,7 +30381,7 @@ function useTableData$1 (_ref) {
|
|
|
30271
30381
|
});
|
|
30272
30382
|
} else {
|
|
30273
30383
|
onChange({
|
|
30274
|
-
pagination: _objectSpread$
|
|
30384
|
+
pagination: _objectSpread$N({}, state.pagination),
|
|
30275
30385
|
filters: {},
|
|
30276
30386
|
sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
|
|
30277
30387
|
return c.defaultSortOrder;
|
|
@@ -30287,17 +30397,17 @@ function useTableData$1 (_ref) {
|
|
|
30287
30397
|
}
|
|
30288
30398
|
}, [filterContex, catalogItem]);
|
|
30289
30399
|
var onChange = function onChange(p, dataParam) {
|
|
30290
|
-
setState(_objectSpread$
|
|
30400
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30291
30401
|
loading: true
|
|
30292
30402
|
}));
|
|
30293
30403
|
if (!filterServerSide) {
|
|
30294
30404
|
var unfilteredData = dataParam ? dataParam : state.unfilteredData;
|
|
30295
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
30405
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$N(_objectSpread$N({}, p), {}, {
|
|
30296
30406
|
data: unfilteredData
|
|
30297
30407
|
})),
|
|
30298
30408
|
data = _applyFilterAndSortat.data,
|
|
30299
30409
|
pagination = _applyFilterAndSortat.pagination;
|
|
30300
|
-
setState(_objectSpread$
|
|
30410
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30301
30411
|
data: data,
|
|
30302
30412
|
pagination: pagination,
|
|
30303
30413
|
loading: false,
|
|
@@ -30308,20 +30418,20 @@ function useTableData$1 (_ref) {
|
|
|
30308
30418
|
sorter: p.sorter
|
|
30309
30419
|
});
|
|
30310
30420
|
} else {
|
|
30311
|
-
apiHandler.readList(configuration.mapping, _objectSpread$
|
|
30421
|
+
apiHandler.readList(configuration.mapping, _objectSpread$N(_objectSpread$N({}, catalogItem), {}, {
|
|
30312
30422
|
filterContex: filterContex
|
|
30313
30423
|
}), p, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid).then(function (data) {
|
|
30314
|
-
setState(_objectSpread$
|
|
30424
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30315
30425
|
data: data.data.map(function (dt) {
|
|
30316
|
-
return _objectSpread$
|
|
30426
|
+
return _objectSpread$N(_objectSpread$N({}, dt), {}, {
|
|
30317
30427
|
_id: dt._id || dt.ID || nanoid()
|
|
30318
30428
|
});
|
|
30319
30429
|
}),
|
|
30320
|
-
pagination: _objectSpread$
|
|
30430
|
+
pagination: _objectSpread$N(_objectSpread$N({}, p.pagination), {}, {
|
|
30321
30431
|
total: data.total
|
|
30322
30432
|
}),
|
|
30323
30433
|
loading: false,
|
|
30324
|
-
mappingData: _objectSpread$
|
|
30434
|
+
mappingData: _objectSpread$N(_objectSpread$N({}, catalogItem), {}, {
|
|
30325
30435
|
filterContex: filterContex
|
|
30326
30436
|
})
|
|
30327
30437
|
}));
|
|
@@ -30342,7 +30452,7 @@ function useTableData$1 (_ref) {
|
|
|
30342
30452
|
filters['_id'] = [id, 'eq', false];
|
|
30343
30453
|
_context.next = 4;
|
|
30344
30454
|
return apiHandler.readList(configuration.mapping, {
|
|
30345
|
-
pagination: _objectSpread$
|
|
30455
|
+
pagination: _objectSpread$N({}, state.pagination),
|
|
30346
30456
|
columns: configuration.columns,
|
|
30347
30457
|
filters: filters,
|
|
30348
30458
|
sorter: filterData.sorter
|
|
@@ -30361,7 +30471,7 @@ function useTableData$1 (_ref) {
|
|
|
30361
30471
|
};
|
|
30362
30472
|
}();
|
|
30363
30473
|
var onSelect = function onSelect(keys) {
|
|
30364
|
-
setState(_objectSpread$
|
|
30474
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30365
30475
|
selected: keys
|
|
30366
30476
|
}));
|
|
30367
30477
|
};
|
|
@@ -30371,7 +30481,7 @@ function useTableData$1 (_ref) {
|
|
|
30371
30481
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
30372
30482
|
while (1) switch (_context3.prev = _context3.next) {
|
|
30373
30483
|
case 0:
|
|
30374
|
-
setState(_objectSpread$
|
|
30484
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30375
30485
|
deleting: true
|
|
30376
30486
|
}));
|
|
30377
30487
|
newData = _toConsumableArray(state.data);
|
|
@@ -30386,7 +30496,7 @@ function useTableData$1 (_ref) {
|
|
|
30386
30496
|
mappingData = (_newData$filter = newData.filter(function (nd) {
|
|
30387
30497
|
return nd._id === state.selected[index];
|
|
30388
30498
|
})) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
|
|
30389
|
-
mappingData = _objectSpread$
|
|
30499
|
+
mappingData = _objectSpread$N(_objectSpread$N({}, mappingData), state.mappingData);
|
|
30390
30500
|
_context2.next = 5;
|
|
30391
30501
|
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);
|
|
30392
30502
|
case 5:
|
|
@@ -30436,7 +30546,7 @@ function useTableData$1 (_ref) {
|
|
|
30436
30546
|
}
|
|
30437
30547
|
_context3.next = 18;
|
|
30438
30548
|
return apiHandler.readList(configuration.mapping, {
|
|
30439
|
-
pagination: _objectSpread$
|
|
30549
|
+
pagination: _objectSpread$N(_objectSpread$N({}, state.pagination), {}, {
|
|
30440
30550
|
current: current
|
|
30441
30551
|
}),
|
|
30442
30552
|
columns: configuration.columns,
|
|
@@ -30448,11 +30558,11 @@ function useTableData$1 (_ref) {
|
|
|
30448
30558
|
newData = data.data;
|
|
30449
30559
|
total = data.total;
|
|
30450
30560
|
case 21:
|
|
30451
|
-
setState(_objectSpread$
|
|
30561
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30452
30562
|
selected: [],
|
|
30453
30563
|
deleting: false,
|
|
30454
30564
|
data: newData,
|
|
30455
|
-
pagination: _objectSpread$
|
|
30565
|
+
pagination: _objectSpread$N(_objectSpread$N({}, state.pagination), {}, {
|
|
30456
30566
|
current: current,
|
|
30457
30567
|
total: total
|
|
30458
30568
|
})
|
|
@@ -30468,12 +30578,12 @@ function useTableData$1 (_ref) {
|
|
|
30468
30578
|
};
|
|
30469
30579
|
}();
|
|
30470
30580
|
function setLoading() {
|
|
30471
|
-
setState(_objectSpread$
|
|
30581
|
+
setState(_objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30472
30582
|
loading: true
|
|
30473
30583
|
}));
|
|
30474
30584
|
}
|
|
30475
|
-
return _objectSpread$
|
|
30476
|
-
configuration: _objectSpread$
|
|
30585
|
+
return _objectSpread$N(_objectSpread$N({}, state), {}, {
|
|
30586
|
+
configuration: _objectSpread$N(_objectSpread$N({}, configuration), {}, {
|
|
30477
30587
|
title: undefined
|
|
30478
30588
|
}),
|
|
30479
30589
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate),
|
|
@@ -30569,8 +30679,8 @@ var translation = {
|
|
|
30569
30679
|
SUPPLIER: 'backoffice.translation.supplier'
|
|
30570
30680
|
};
|
|
30571
30681
|
|
|
30572
|
-
function ownKeys$
|
|
30573
|
-
function _objectSpread$
|
|
30682
|
+
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; }
|
|
30683
|
+
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; }
|
|
30574
30684
|
/**
|
|
30575
30685
|
* Route/menu-driven overrides for a single shared table module (e.g. list URL filter on `read.list`, default create payload).
|
|
30576
30686
|
*/
|
|
@@ -30578,10 +30688,10 @@ function mergeTableConfiguration(base, readListUrl, genericType) {
|
|
|
30578
30688
|
if (!readListUrl && !genericType) {
|
|
30579
30689
|
return base;
|
|
30580
30690
|
}
|
|
30581
|
-
var next = _objectSpread$
|
|
30691
|
+
var next = _objectSpread$M({}, base);
|
|
30582
30692
|
if (readListUrl && _typeof(next.apiInterface) === 'object' && next.apiInterface.read && _typeof(next.apiInterface.read) === 'object') {
|
|
30583
|
-
next.apiInterface = _objectSpread$
|
|
30584
|
-
read: _objectSpread$
|
|
30693
|
+
next.apiInterface = _objectSpread$M(_objectSpread$M({}, next.apiInterface), {}, {
|
|
30694
|
+
read: _objectSpread$M(_objectSpread$M({}, next.apiInterface.read), {}, {
|
|
30585
30695
|
list: readListUrl
|
|
30586
30696
|
})
|
|
30587
30697
|
});
|
|
@@ -30614,8 +30724,8 @@ function objectHash (obj) {
|
|
|
30614
30724
|
function _createForOfIteratorHelper$6(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$6(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; } } }; }
|
|
30615
30725
|
function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$6(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$6(r, a) : void 0; } }
|
|
30616
30726
|
function _arrayLikeToArray$6(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; }
|
|
30617
|
-
function ownKeys$
|
|
30618
|
-
function _objectSpread$
|
|
30727
|
+
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; }
|
|
30728
|
+
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; }
|
|
30619
30729
|
var LOG$3 = getLogger('Backoffice', 'TableData');
|
|
30620
30730
|
function useTableData (_ref) {
|
|
30621
30731
|
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt, _ref3, _configuration$readMa;
|
|
@@ -30638,8 +30748,8 @@ function useTableData (_ref) {
|
|
|
30638
30748
|
}
|
|
30639
30749
|
var base = baseConfiguration;
|
|
30640
30750
|
if (_typeof(base.apiInterface) === 'object' && base.apiInterface.read && _typeof(base.apiInterface.read) === 'object') {
|
|
30641
|
-
return root.getApiHandler(id, _objectSpread$
|
|
30642
|
-
read: _objectSpread$
|
|
30751
|
+
return root.getApiHandler(id, _objectSpread$L(_objectSpread$L({}, base.apiInterface), {}, {
|
|
30752
|
+
read: _objectSpread$L(_objectSpread$L({}, base.apiInterface.read), {}, {
|
|
30643
30753
|
list: readListUrlOverride
|
|
30644
30754
|
})
|
|
30645
30755
|
}));
|
|
@@ -30688,7 +30798,7 @@ function useTableData (_ref) {
|
|
|
30688
30798
|
var _useState13 = useState({
|
|
30689
30799
|
loading: true,
|
|
30690
30800
|
deleting: false,
|
|
30691
|
-
pagination: _objectSpread$
|
|
30801
|
+
pagination: _objectSpread$L({
|
|
30692
30802
|
current: 1,
|
|
30693
30803
|
pageSize: 20,
|
|
30694
30804
|
total: 0,
|
|
@@ -30697,7 +30807,7 @@ function useTableData (_ref) {
|
|
|
30697
30807
|
selected: [],
|
|
30698
30808
|
canDelete: !!apiHandler.canDelete,
|
|
30699
30809
|
canSelect: !!apiHandler.canDelete || !!((_configuration$bulkAc = configuration.bulkActions) !== null && _configuration$bulkAc !== void 0 && _configuration$bulkAc.length),
|
|
30700
|
-
mappingData: _objectSpread$
|
|
30810
|
+
mappingData: _objectSpread$L(_objectSpread$L({}, parentData), {}, {
|
|
30701
30811
|
prefilter: {
|
|
30702
30812
|
select: globalFilter.select
|
|
30703
30813
|
},
|
|
@@ -30708,7 +30818,7 @@ function useTableData (_ref) {
|
|
|
30708
30818
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
30709
30819
|
state = _useState14[0],
|
|
30710
30820
|
setState = _useState14[1];
|
|
30711
|
-
var mappingData = _objectSpread$
|
|
30821
|
+
var mappingData = _objectSpread$L(_objectSpread$L(_objectSpread$L({}, parentData), state.data), {}, {
|
|
30712
30822
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
30713
30823
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
30714
30824
|
});
|
|
@@ -30748,7 +30858,7 @@ function useTableData (_ref) {
|
|
|
30748
30858
|
}
|
|
30749
30859
|
var dataArray = Array.isArray(data) ? data : [data];
|
|
30750
30860
|
var newInitData = initData;
|
|
30751
|
-
var newState = _objectSpread$
|
|
30861
|
+
var newState = _objectSpread$L({}, state);
|
|
30752
30862
|
var selected = [];
|
|
30753
30863
|
if (configuration.deselectOnUpdate == false) {
|
|
30754
30864
|
selected = state.selected;
|
|
@@ -30765,7 +30875,7 @@ function useTableData (_ref) {
|
|
|
30765
30875
|
dataRow: dataRow
|
|
30766
30876
|
}),
|
|
30767
30877
|
_data = _updateData.data;
|
|
30768
|
-
newState = _objectSpread$
|
|
30878
|
+
newState = _objectSpread$L(_objectSpread$L({}, newState), {}, {
|
|
30769
30879
|
data: _data,
|
|
30770
30880
|
selected: selected
|
|
30771
30881
|
});
|
|
@@ -30777,8 +30887,8 @@ function useTableData (_ref) {
|
|
|
30777
30887
|
dataRow: dataRow
|
|
30778
30888
|
}),
|
|
30779
30889
|
nextInitData = _updateData2.data;
|
|
30780
|
-
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$
|
|
30781
|
-
filters: _objectSpread$
|
|
30890
|
+
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$L(_objectSpread$L(_objectSpread$L({}, filterData), {}, {
|
|
30891
|
+
filters: _objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L({}, 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"])
|
|
30782
30892
|
}, 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 ? {
|
|
30783
30893
|
genericProps: globalFilter.toggle
|
|
30784
30894
|
} : undefined), {}, {
|
|
@@ -30788,7 +30898,7 @@ function useTableData (_ref) {
|
|
|
30788
30898
|
_data2 = _applyFilterAndSortat.data,
|
|
30789
30899
|
pagination = _applyFilterAndSortat.pagination;
|
|
30790
30900
|
newInitData = nextInitData;
|
|
30791
|
-
newState = _objectSpread$
|
|
30901
|
+
newState = _objectSpread$L(_objectSpread$L({}, newState), {}, {
|
|
30792
30902
|
pagination: pagination,
|
|
30793
30903
|
data: _data2,
|
|
30794
30904
|
selected: selected
|
|
@@ -30798,8 +30908,8 @@ function useTableData (_ref) {
|
|
|
30798
30908
|
if (apiHandler.canCreate) {
|
|
30799
30909
|
apiCreate(data).then(function (res) {
|
|
30800
30910
|
if (!res || (res === null || res === void 0 ? void 0 : res.Error) !== undefined) {
|
|
30801
|
-
initData && setInitData(_objectSpread$
|
|
30802
|
-
setState(_objectSpread$
|
|
30911
|
+
initData && setInitData(_objectSpread$L({}, initData));
|
|
30912
|
+
setState(_objectSpread$L({}, state));
|
|
30803
30913
|
}
|
|
30804
30914
|
});
|
|
30805
30915
|
}
|
|
@@ -30812,7 +30922,7 @@ function useTableData (_ref) {
|
|
|
30812
30922
|
var triggerRefresh = function triggerRefresh() {
|
|
30813
30923
|
var _configuration$filter8;
|
|
30814
30924
|
setError(undefined);
|
|
30815
|
-
var newGlobalFilter = _objectSpread$
|
|
30925
|
+
var newGlobalFilter = _objectSpread$L({}, globalFilter);
|
|
30816
30926
|
//on refresh update default filter, since global value can change
|
|
30817
30927
|
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
|
30818
30928
|
var _configuration$filter9;
|
|
@@ -30823,7 +30933,7 @@ function useTableData (_ref) {
|
|
|
30823
30933
|
newGlobalFilter["default"] = _defaultFilter;
|
|
30824
30934
|
setGlobaFilter(newGlobalFilter);
|
|
30825
30935
|
}
|
|
30826
|
-
onChange(_objectSpread$
|
|
30936
|
+
onChange(_objectSpread$L({
|
|
30827
30937
|
pagination: state.pagination
|
|
30828
30938
|
}, filterData), newGlobalFilter, true);
|
|
30829
30939
|
};
|
|
@@ -30841,7 +30951,7 @@ function useTableData (_ref) {
|
|
|
30841
30951
|
order: c.defaultSortOrder
|
|
30842
30952
|
};
|
|
30843
30953
|
});
|
|
30844
|
-
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$
|
|
30954
|
+
if (configuration.initialCall === false && !catalogItem) setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
30845
30955
|
loading: false
|
|
30846
30956
|
}));else {
|
|
30847
30957
|
onChange({
|
|
@@ -30884,7 +30994,7 @@ function useTableData (_ref) {
|
|
|
30884
30994
|
case 0:
|
|
30885
30995
|
filters = {};
|
|
30886
30996
|
filters['_id'] = [id, 'eq', false];
|
|
30887
|
-
ssf = _objectSpread$
|
|
30997
|
+
ssf = _objectSpread$L({
|
|
30888
30998
|
pagination: {
|
|
30889
30999
|
current: 1,
|
|
30890
31000
|
pageSize: 1
|
|
@@ -30895,7 +31005,7 @@ function useTableData (_ref) {
|
|
|
30895
31005
|
genericProps: globalFilter.toggle
|
|
30896
31006
|
} : undefined);
|
|
30897
31007
|
_context2.next = 5;
|
|
30898
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
31008
|
+
return apiHandler.readList(readMapping, _objectSpread$L(_objectSpread$L({}, mappingData), state.mappingData), ssf);
|
|
30899
31009
|
case 5:
|
|
30900
31010
|
data = _context2.sent;
|
|
30901
31011
|
return _context2.abrupt("return", data);
|
|
@@ -30939,12 +31049,12 @@ function useTableData (_ref) {
|
|
|
30939
31049
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
30940
31050
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
30941
31051
|
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
|
30942
|
-
setState(_objectSpread$
|
|
31052
|
+
setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
30943
31053
|
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
|
30944
31054
|
loading: true
|
|
30945
31055
|
}));
|
|
30946
31056
|
currentData = initData;
|
|
30947
|
-
filterData = _objectSpread$
|
|
31057
|
+
filterData = _objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L({}, 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
|
|
30948
31058
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref7) {
|
|
30949
31059
|
var _ref8 = _slicedToArray(_ref7, 2);
|
|
30950
31060
|
_ref8[0];
|
|
@@ -30952,7 +31062,7 @@ function useTableData (_ref) {
|
|
|
30952
31062
|
return v != null;
|
|
30953
31063
|
}));
|
|
30954
31064
|
currentFilterHash = objectHash(filterData);
|
|
30955
|
-
currentPagination = _objectSpread$
|
|
31065
|
+
currentPagination = _objectSpread$L(_objectSpread$L({}, p.pagination), {}, {
|
|
30956
31066
|
current: currentFilterHash == filterHash.current ? p.pagination.current : 1
|
|
30957
31067
|
});
|
|
30958
31068
|
filterHash.current = currentFilterHash;
|
|
@@ -30960,7 +31070,7 @@ function useTableData (_ref) {
|
|
|
30960
31070
|
_context3.next = 21;
|
|
30961
31071
|
break;
|
|
30962
31072
|
}
|
|
30963
|
-
ssf = _objectSpread$
|
|
31073
|
+
ssf = _objectSpread$L({
|
|
30964
31074
|
pagination: currentPagination,
|
|
30965
31075
|
columns: configuration.columns,
|
|
30966
31076
|
filters: filterData,
|
|
@@ -30969,12 +31079,12 @@ function useTableData (_ref) {
|
|
|
30969
31079
|
genericProps: prefilter.toggle
|
|
30970
31080
|
} : undefined);
|
|
30971
31081
|
_context3.next = 15;
|
|
30972
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
31082
|
+
return apiHandler.readList(readMapping, _objectSpread$L(_objectSpread$L({}, 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)));
|
|
30973
31083
|
case 15:
|
|
30974
31084
|
data = _context3.sent;
|
|
30975
|
-
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$
|
|
31085
|
+
currentUrl = apiHandler.getReadListUrl(readMapping, _objectSpread$L(_objectSpread$L({}, mappingData), state.mappingData), ssf);
|
|
30976
31086
|
currentData = data.data;
|
|
30977
|
-
currentPagination = _objectSpread$
|
|
31087
|
+
currentPagination = _objectSpread$L(_objectSpread$L({}, currentPagination), {}, {
|
|
30978
31088
|
total: data.total
|
|
30979
31089
|
});
|
|
30980
31090
|
_context3.next = 30;
|
|
@@ -30991,7 +31101,7 @@ function useTableData (_ref) {
|
|
|
30991
31101
|
currentData = _data3.data;
|
|
30992
31102
|
setInitData(currentData);
|
|
30993
31103
|
case 27:
|
|
30994
|
-
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$
|
|
31104
|
+
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$L(_objectSpread$L({}, p), {}, {
|
|
30995
31105
|
pagination: currentPagination,
|
|
30996
31106
|
filters: filterData,
|
|
30997
31107
|
data: currentData,
|
|
@@ -31000,11 +31110,11 @@ function useTableData (_ref) {
|
|
|
31000
31110
|
currentData = _data4;
|
|
31001
31111
|
currentPagination = pagination;
|
|
31002
31112
|
case 30:
|
|
31003
|
-
setState(_objectSpread$
|
|
31113
|
+
setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
31004
31114
|
loading: false,
|
|
31005
31115
|
data: currentData,
|
|
31006
31116
|
pagination: currentPagination,
|
|
31007
|
-
mappingData: _objectSpread$
|
|
31117
|
+
mappingData: _objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
|
31008
31118
|
prefilter: prefilter
|
|
31009
31119
|
}),
|
|
31010
31120
|
currentFetchUrl: currentUrl
|
|
@@ -31026,7 +31136,7 @@ function useTableData (_ref) {
|
|
|
31026
31136
|
};
|
|
31027
31137
|
}();
|
|
31028
31138
|
var onSelect = function onSelect(keys) {
|
|
31029
|
-
setState(_objectSpread$
|
|
31139
|
+
setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
31030
31140
|
selected: keys
|
|
31031
31141
|
}));
|
|
31032
31142
|
};
|
|
@@ -31037,7 +31147,7 @@ function useTableData (_ref) {
|
|
|
31037
31147
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
31038
31148
|
while (1) switch (_context5.prev = _context5.next) {
|
|
31039
31149
|
case 0:
|
|
31040
|
-
setState(_objectSpread$
|
|
31150
|
+
setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
31041
31151
|
deleting: true
|
|
31042
31152
|
}));
|
|
31043
31153
|
newData = _toConsumableArray(state.data);
|
|
@@ -31077,7 +31187,7 @@ function useTableData (_ref) {
|
|
|
31077
31187
|
} finally {
|
|
31078
31188
|
_iterator.f();
|
|
31079
31189
|
}
|
|
31080
|
-
mappingData = _objectSpread$
|
|
31190
|
+
mappingData = _objectSpread$L(_objectSpread$L(_objectSpread$L({}, mappingData), state.mappingData), mapToggle);
|
|
31081
31191
|
deleteResult = undefined;
|
|
31082
31192
|
_context4.prev = 7;
|
|
31083
31193
|
if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
|
|
@@ -31167,12 +31277,12 @@ function useTableData (_ref) {
|
|
|
31167
31277
|
break;
|
|
31168
31278
|
}
|
|
31169
31279
|
_context5.next = 25;
|
|
31170
|
-
return apiHandler.readList(readMapping, _objectSpread$
|
|
31171
|
-
pagination: _objectSpread$
|
|
31280
|
+
return apiHandler.readList(readMapping, _objectSpread$L(_objectSpread$L({}, mappingData), state.mappingData), _objectSpread$L({
|
|
31281
|
+
pagination: _objectSpread$L(_objectSpread$L({}, state.pagination), {}, {
|
|
31172
31282
|
current: current
|
|
31173
31283
|
}),
|
|
31174
31284
|
columns: configuration.columns,
|
|
31175
|
-
filters: _objectSpread$
|
|
31285
|
+
filters: _objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L(_objectSpread$L({}, 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"]),
|
|
31176
31286
|
sorter: filterData.sorter
|
|
31177
31287
|
}, 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 ? {
|
|
31178
31288
|
genericProps: globalFilter.toggle
|
|
@@ -31183,11 +31293,11 @@ function useTableData (_ref) {
|
|
|
31183
31293
|
total = data.total;
|
|
31184
31294
|
case 28:
|
|
31185
31295
|
setInitData(newInitData);
|
|
31186
|
-
setState(_objectSpread$
|
|
31296
|
+
setState(_objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
31187
31297
|
selected: [],
|
|
31188
31298
|
deleting: false,
|
|
31189
31299
|
data: newData,
|
|
31190
|
-
pagination: _objectSpread$
|
|
31300
|
+
pagination: _objectSpread$L(_objectSpread$L({}, state.pagination), {}, {
|
|
31191
31301
|
current: current === 0 ? 1 : current,
|
|
31192
31302
|
total: total
|
|
31193
31303
|
})
|
|
@@ -31208,14 +31318,14 @@ function useTableData (_ref) {
|
|
|
31208
31318
|
LOG$3.error(new DivaError('No global select filter defiend'));
|
|
31209
31319
|
return;
|
|
31210
31320
|
}
|
|
31211
|
-
var newGlobalFilter = _objectSpread$
|
|
31321
|
+
var newGlobalFilter = _objectSpread$L({}, globalFilter);
|
|
31212
31322
|
if (value !== null && value !== void 0 && value.length) {
|
|
31213
31323
|
newGlobalFilter.select = _defineProperty({}, configuration.filter.select.filterField, Array.isArray(value) ? value : [value]);
|
|
31214
31324
|
} else {
|
|
31215
31325
|
newGlobalFilter.select = {};
|
|
31216
31326
|
}
|
|
31217
31327
|
setGlobaFilter(newGlobalFilter);
|
|
31218
|
-
onChange(_objectSpread$
|
|
31328
|
+
onChange(_objectSpread$L({
|
|
31219
31329
|
pagination: state.pagination
|
|
31220
31330
|
}, filterData), newGlobalFilter);
|
|
31221
31331
|
};
|
|
@@ -31226,16 +31336,16 @@ function useTableData (_ref) {
|
|
|
31226
31336
|
return;
|
|
31227
31337
|
}
|
|
31228
31338
|
var toggleFilter = {};
|
|
31229
|
-
var mappingData = _objectSpread$
|
|
31339
|
+
var mappingData = _objectSpread$L({}, state.mappingData);
|
|
31230
31340
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
31231
31341
|
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
|
31232
31342
|
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
31233
31343
|
});
|
|
31234
|
-
var newGlobalFilter = _objectSpread$
|
|
31344
|
+
var newGlobalFilter = _objectSpread$L(_objectSpread$L({}, globalFilter), {}, {
|
|
31235
31345
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
31236
31346
|
});
|
|
31237
31347
|
setGlobaFilter(newGlobalFilter);
|
|
31238
|
-
onChange(_objectSpread$
|
|
31348
|
+
onChange(_objectSpread$L({
|
|
31239
31349
|
pagination: state.pagination
|
|
31240
31350
|
}, filterData), newGlobalFilter, true, true, mappingData);
|
|
31241
31351
|
};
|
|
@@ -31248,7 +31358,7 @@ function useTableData (_ref) {
|
|
|
31248
31358
|
LOG$3.error(new DivaError('No global search filter defiend'));
|
|
31249
31359
|
return;
|
|
31250
31360
|
}
|
|
31251
|
-
var newGlobalFilter = _objectSpread$
|
|
31361
|
+
var newGlobalFilter = _objectSpread$L(_objectSpread$L({}, globalFilter), {}, {
|
|
31252
31362
|
search: {}
|
|
31253
31363
|
});
|
|
31254
31364
|
if (value) {
|
|
@@ -31262,7 +31372,7 @@ function useTableData (_ref) {
|
|
|
31262
31372
|
});
|
|
31263
31373
|
}
|
|
31264
31374
|
setGlobaFilter(newGlobalFilter);
|
|
31265
|
-
onChange(_objectSpread$
|
|
31375
|
+
onChange(_objectSpread$L({
|
|
31266
31376
|
pagination: state.pagination
|
|
31267
31377
|
}, filterData), newGlobalFilter);
|
|
31268
31378
|
};
|
|
@@ -31272,20 +31382,20 @@ function useTableData (_ref) {
|
|
|
31272
31382
|
LOG$3.error(new DivaError('No global period filter defiend'));
|
|
31273
31383
|
return;
|
|
31274
31384
|
}
|
|
31275
|
-
var newGlobalFilter = _objectSpread$
|
|
31385
|
+
var newGlobalFilter = _objectSpread$L({}, globalFilter);
|
|
31276
31386
|
newGlobalFilter.timeStamp = {
|
|
31277
31387
|
fromTimeStamp: [from],
|
|
31278
31388
|
toTimeStamp: [to]
|
|
31279
31389
|
};
|
|
31280
31390
|
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
|
31281
|
-
onChange(_objectSpread$
|
|
31391
|
+
onChange(_objectSpread$L({
|
|
31282
31392
|
pagination: state.pagination
|
|
31283
|
-
}, filterData), undefined, true, undefined, _objectSpread$
|
|
31393
|
+
}, filterData), undefined, true, undefined, _objectSpread$L(_objectSpread$L({}, state.mappingData), {}, {
|
|
31284
31394
|
from: from,
|
|
31285
31395
|
to: to
|
|
31286
31396
|
}));
|
|
31287
31397
|
};
|
|
31288
|
-
return _objectSpread$
|
|
31398
|
+
return _objectSpread$L(_objectSpread$L({}, state), {}, {
|
|
31289
31399
|
title: title,
|
|
31290
31400
|
configuration: configuration,
|
|
31291
31401
|
columns: mapColumns(configuration, root.actions.userHasPermission, onUpdate, selectedData, globalFilter),
|
|
@@ -31331,8 +31441,8 @@ function StandardTable (_ref) {
|
|
|
31331
31441
|
});
|
|
31332
31442
|
}
|
|
31333
31443
|
|
|
31334
|
-
function ownKeys$
|
|
31335
|
-
function _objectSpread$
|
|
31444
|
+
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; }
|
|
31445
|
+
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; }
|
|
31336
31446
|
function Table (props) {
|
|
31337
31447
|
var root = useStore();
|
|
31338
31448
|
var variant = useMemo(function () {
|
|
@@ -31340,15 +31450,15 @@ function Table (props) {
|
|
|
31340
31450
|
return config.variant;
|
|
31341
31451
|
}, [props.id]);
|
|
31342
31452
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31343
|
-
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$
|
|
31453
|
+
children: [(variant == 'Standard' || !variant) && /*#__PURE__*/jsx(StandardTable, _objectSpread$K({}, props)), variant == 'CatalogTable' && /*#__PURE__*/jsx(CatalogTable, _objectSpread$K({}, props))]
|
|
31344
31454
|
});
|
|
31345
31455
|
}
|
|
31346
31456
|
|
|
31347
31457
|
function _createForOfIteratorHelper$5(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$5(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; } } }; }
|
|
31348
31458
|
function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$5(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$5(r, a) : void 0; } }
|
|
31349
31459
|
function _arrayLikeToArray$5(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; }
|
|
31350
|
-
function ownKeys$
|
|
31351
|
-
function _objectSpread$
|
|
31460
|
+
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; }
|
|
31461
|
+
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; }
|
|
31352
31462
|
function useAGGrid (_ref) {
|
|
31353
31463
|
var id = _ref.id,
|
|
31354
31464
|
filter = _ref.filter,
|
|
@@ -31442,7 +31552,7 @@ function useAGGrid (_ref) {
|
|
|
31442
31552
|
value = _ref3[1];
|
|
31443
31553
|
if (_idx == 0) {
|
|
31444
31554
|
var _supplierData$Options2, _supplierData$Options3, _supplierData$Optionv2, _supplierData$Optionv3;
|
|
31445
|
-
rdat.push(_objectSpread$
|
|
31555
|
+
rdat.push(_objectSpread$J(_objectSpread$J({}, rd), {}, {
|
|
31446
31556
|
grouping: [idx.toString()]
|
|
31447
31557
|
}));
|
|
31448
31558
|
var sp = key.split(':');
|
|
@@ -31582,11 +31692,11 @@ var loader = "loader-LaXZy";
|
|
|
31582
31692
|
var flex = "flex-yQdda";
|
|
31583
31693
|
var bar = "bar-Y663f";
|
|
31584
31694
|
var value = "value-FCA-6";
|
|
31585
|
-
var css_248z$
|
|
31586
|
-
styleInject(css_248z$
|
|
31695
|
+
var css_248z$n = ".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";
|
|
31696
|
+
styleInject(css_248z$n);
|
|
31587
31697
|
|
|
31588
|
-
function ownKeys$
|
|
31589
|
-
function _objectSpread$
|
|
31698
|
+
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; }
|
|
31699
|
+
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; }
|
|
31590
31700
|
var AGChart = function AGChart(_ref) {
|
|
31591
31701
|
var data = _ref.data;
|
|
31592
31702
|
var groupedData = [];
|
|
@@ -31594,11 +31704,11 @@ var AGChart = function AGChart(_ref) {
|
|
|
31594
31704
|
data.forEach(function (dt) {
|
|
31595
31705
|
if (dt.count == 0) return;
|
|
31596
31706
|
if (groupedData.length > dt.grouping[0]) {
|
|
31597
|
-
groupedData[dt.grouping[0]].push(_objectSpread$
|
|
31707
|
+
groupedData[dt.grouping[0]].push(_objectSpread$I(_objectSpread$I({}, dt), {}, {
|
|
31598
31708
|
count: Number(dt.count)
|
|
31599
31709
|
}));
|
|
31600
31710
|
} else {
|
|
31601
|
-
groupedData.push([_objectSpread$
|
|
31711
|
+
groupedData.push([_objectSpread$I(_objectSpread$I({}, dt), {}, {
|
|
31602
31712
|
count: Number(dt.count)
|
|
31603
31713
|
})]);
|
|
31604
31714
|
}
|
|
@@ -31639,8 +31749,8 @@ var AGChart = function AGChart(_ref) {
|
|
|
31639
31749
|
});
|
|
31640
31750
|
};
|
|
31641
31751
|
|
|
31642
|
-
function ownKeys$
|
|
31643
|
-
function _objectSpread$
|
|
31752
|
+
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; }
|
|
31753
|
+
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; }
|
|
31644
31754
|
var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
31645
31755
|
var id = _ref.id,
|
|
31646
31756
|
filter = _ref.filter,
|
|
@@ -31733,7 +31843,7 @@ var AGGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
31733
31843
|
});
|
|
31734
31844
|
});
|
|
31735
31845
|
}
|
|
31736
|
-
return _objectSpread$
|
|
31846
|
+
return _objectSpread$H(_objectSpread$H({}, column), {}, {
|
|
31737
31847
|
cellRenderer: renderer
|
|
31738
31848
|
});
|
|
31739
31849
|
});
|
|
@@ -32003,8 +32113,8 @@ var CustomText = function CustomText(_ref) {
|
|
|
32003
32113
|
};
|
|
32004
32114
|
var CustomText$1 = observer(CustomText);
|
|
32005
32115
|
|
|
32006
|
-
function ownKeys$
|
|
32007
|
-
function _objectSpread$
|
|
32116
|
+
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; }
|
|
32117
|
+
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; }
|
|
32008
32118
|
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; } } }; }
|
|
32009
32119
|
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; } }
|
|
32010
32120
|
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; }
|
|
@@ -32067,7 +32177,7 @@ function useFilterBoxData (id) {
|
|
|
32067
32177
|
} finally {
|
|
32068
32178
|
_iterator.f();
|
|
32069
32179
|
}
|
|
32070
|
-
return _objectSpread$
|
|
32180
|
+
return _objectSpread$G(_objectSpread$G({}, state), ob);
|
|
32071
32181
|
}
|
|
32072
32182
|
return {
|
|
32073
32183
|
configuration: configuration,
|
|
@@ -32081,8 +32191,8 @@ function useFilterBoxData (id) {
|
|
|
32081
32191
|
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; } } }; }
|
|
32082
32192
|
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; } }
|
|
32083
32193
|
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; }
|
|
32084
|
-
function ownKeys$
|
|
32085
|
-
function _objectSpread$
|
|
32194
|
+
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; }
|
|
32195
|
+
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; }
|
|
32086
32196
|
var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
32087
32197
|
var id = _ref.id,
|
|
32088
32198
|
onChangeFilter = _ref.onChangeFilter,
|
|
@@ -32110,7 +32220,7 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
32110
32220
|
}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Select, {
|
|
32111
32221
|
mode: "single",
|
|
32112
32222
|
apiInterface: filter.requestOptions,
|
|
32113
|
-
wholeData: _objectSpread$
|
|
32223
|
+
wholeData: _objectSpread$F(_objectSpread$F({}, state.filter), {}, {
|
|
32114
32224
|
tab: tab
|
|
32115
32225
|
}),
|
|
32116
32226
|
mapping: filter.requestMapping,
|
|
@@ -32342,8 +32452,8 @@ var FilterBox = /*#__PURE__*/memo(function (_ref) {
|
|
|
32342
32452
|
return false;
|
|
32343
32453
|
});
|
|
32344
32454
|
|
|
32345
|
-
function ownKeys$
|
|
32346
|
-
function _objectSpread$
|
|
32455
|
+
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; }
|
|
32456
|
+
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; }
|
|
32347
32457
|
function useUIBuilderData (id) {
|
|
32348
32458
|
var save = undefined;
|
|
32349
32459
|
var root = useStore();
|
|
@@ -32375,7 +32485,7 @@ function useUIBuilderData (id) {
|
|
|
32375
32485
|
var configuration = _useMemo.configuration;
|
|
32376
32486
|
useEffect(function () {
|
|
32377
32487
|
root.dataStore.getApi2SessionGuid().then(function (res) {
|
|
32378
|
-
return setFilter(_objectSpread$
|
|
32488
|
+
return setFilter(_objectSpread$E(_objectSpread$E({}, filter), {}, {
|
|
32379
32489
|
sessionGuid: res
|
|
32380
32490
|
}));
|
|
32381
32491
|
});
|
|
@@ -32398,8 +32508,8 @@ function useUIBuilderData (id) {
|
|
|
32398
32508
|
};
|
|
32399
32509
|
}
|
|
32400
32510
|
|
|
32401
|
-
function ownKeys$
|
|
32402
|
-
function _objectSpread$
|
|
32511
|
+
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; }
|
|
32512
|
+
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; }
|
|
32403
32513
|
function UIBuilder(_ref) {
|
|
32404
32514
|
var id = _ref.id;
|
|
32405
32515
|
var state = useUIBuilderData(id);
|
|
@@ -32426,7 +32536,7 @@ function UIBuilder(_ref) {
|
|
|
32426
32536
|
override = {
|
|
32427
32537
|
value: newFilter[item.field],
|
|
32428
32538
|
setValue: function setValue(newVal) {
|
|
32429
|
-
var newFilter = _objectSpread$
|
|
32539
|
+
var newFilter = _objectSpread$D({}, state.filter);
|
|
32430
32540
|
newFilter[item.field] = newVal;
|
|
32431
32541
|
state.setFilter(newFilter);
|
|
32432
32542
|
}
|
|
@@ -32474,7 +32584,7 @@ function UIBuilder(_ref) {
|
|
|
32474
32584
|
case 'AGGrid':
|
|
32475
32585
|
return /*#__PURE__*/jsx(AGGrid, {
|
|
32476
32586
|
id: item.id,
|
|
32477
|
-
filter: _objectSpread$
|
|
32587
|
+
filter: _objectSpread$D({
|
|
32478
32588
|
optionCodices: JSON.stringify(state.data)
|
|
32479
32589
|
}, state.filter),
|
|
32480
32590
|
override: item.id == 'AGGridTopOptionValues' ? {
|
|
@@ -32529,8 +32639,8 @@ var supplier = "supplier-8sm0I";
|
|
|
32529
32639
|
var dealer = "dealer-xgnku";
|
|
32530
32640
|
var association = "association-b8uVW";
|
|
32531
32641
|
var campaign = "campaign-zlrTx";
|
|
32532
|
-
var css_248z$
|
|
32533
|
-
styleInject(css_248z$
|
|
32642
|
+
var css_248z$m = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n\n.campaign-zlrTx {\n border-bottom: #64b5f6 solid 5px;\n}\n";
|
|
32643
|
+
styleInject(css_248z$m);
|
|
32534
32644
|
|
|
32535
32645
|
function getColorClass(data) {
|
|
32536
32646
|
switch (data.type) {
|
|
@@ -32638,8 +32748,8 @@ var OrgItem = function OrgItem(_ref) {
|
|
|
32638
32748
|
};
|
|
32639
32749
|
var OrgItem$1 = observer(OrgItem);
|
|
32640
32750
|
|
|
32641
|
-
function ownKeys$
|
|
32642
|
-
function _objectSpread$
|
|
32751
|
+
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; }
|
|
32752
|
+
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; }
|
|
32643
32753
|
function useTransformJson (_ref) {
|
|
32644
32754
|
var id = _ref.id;
|
|
32645
32755
|
var _useState = useState(),
|
|
@@ -32705,7 +32815,7 @@ function useTransformJson (_ref) {
|
|
|
32705
32815
|
}();
|
|
32706
32816
|
var _transformData = function transformData(data, itemChain, parentOrgId) {
|
|
32707
32817
|
var _data$children;
|
|
32708
|
-
return _objectSpread$
|
|
32818
|
+
return _objectSpread$C(_objectSpread$C({}, data), {}, {
|
|
32709
32819
|
label: /*#__PURE__*/jsx(OrgItem$1, {
|
|
32710
32820
|
data: data,
|
|
32711
32821
|
configuration: configuration,
|
|
@@ -32765,8 +32875,8 @@ var arrow = "arrow-Rd0hp";
|
|
|
32765
32875
|
var openClass = "open-class--gGXs";
|
|
32766
32876
|
var breadcrumb = "breadcrumb-Z0VvH";
|
|
32767
32877
|
var selected = "selected-w-sfW";
|
|
32768
|
-
var css_248z$
|
|
32769
|
-
styleInject(css_248z$
|
|
32878
|
+
var css_248z$l = ".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";
|
|
32879
|
+
styleInject(css_248z$l);
|
|
32770
32880
|
|
|
32771
32881
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
32772
32882
|
var open = _ref.open,
|
|
@@ -32799,8 +32909,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
|
32799
32909
|
|
|
32800
32910
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
|
32801
32911
|
var toolbarLeft = "toolbar-left-X9WRo";
|
|
32802
|
-
var css_248z$
|
|
32803
|
-
styleInject(css_248z$
|
|
32912
|
+
var css_248z$k = ".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";
|
|
32913
|
+
styleInject(css_248z$k);
|
|
32804
32914
|
|
|
32805
32915
|
var Legend = function Legend(props) {
|
|
32806
32916
|
return /*#__PURE__*/jsx(List$1, {
|
|
@@ -32854,8 +32964,8 @@ var Legend = function Legend(props) {
|
|
|
32854
32964
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
|
32855
32965
|
var mask = "mask-ssagp";
|
|
32856
32966
|
var transformWrapper = "transform-wrapper--8t0v";
|
|
32857
|
-
var css_248z$
|
|
32858
|
-
styleInject(css_248z$
|
|
32967
|
+
var css_248z$j = ".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";
|
|
32968
|
+
styleInject(css_248z$j);
|
|
32859
32969
|
|
|
32860
32970
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
|
32861
32971
|
var _children = _ref.children,
|
|
@@ -33365,8 +33475,8 @@ function useCatalogEditor (id) {
|
|
|
33365
33475
|
};
|
|
33366
33476
|
}
|
|
33367
33477
|
|
|
33368
|
-
function ownKeys$
|
|
33369
|
-
function _objectSpread$
|
|
33478
|
+
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; }
|
|
33479
|
+
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; }
|
|
33370
33480
|
function DragDropUpload(_ref) {
|
|
33371
33481
|
var api2Params = _ref.api2Params,
|
|
33372
33482
|
catalogId = _ref.catalogId,
|
|
@@ -33474,7 +33584,7 @@ function DragDropUpload(_ref) {
|
|
|
33474
33584
|
children: [importStarted && /*#__PURE__*/jsx("p", {
|
|
33475
33585
|
children: t('backoffice.catalogeditor.classimportstarted')
|
|
33476
33586
|
}), !importStarted && /*#__PURE__*/jsxs(Fragment, {
|
|
33477
|
-
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$
|
|
33587
|
+
children: [/*#__PURE__*/jsxs(Dragger, _objectSpread$B(_objectSpread$B({}, props), {}, {
|
|
33478
33588
|
children: [/*#__PURE__*/jsx("p", {
|
|
33479
33589
|
className: "ant-upload-drag-icon",
|
|
33480
33590
|
children: /*#__PURE__*/jsx(InboxOutlined, {})
|
|
@@ -33691,8 +33801,8 @@ function CatalogEditor(_ref) {
|
|
|
33691
33801
|
}
|
|
33692
33802
|
var CatalogEditor$1 = observer(CatalogEditor);
|
|
33693
33803
|
|
|
33694
|
-
function ownKeys$
|
|
33695
|
-
function _objectSpread$
|
|
33804
|
+
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; }
|
|
33805
|
+
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; }
|
|
33696
33806
|
var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(props, ref) {
|
|
33697
33807
|
var _root$contentStore$bo, _root$contentStore$ri;
|
|
33698
33808
|
var root = useStore();
|
|
@@ -33707,7 +33817,7 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
33707
33817
|
style: {
|
|
33708
33818
|
display: 'contents'
|
|
33709
33819
|
},
|
|
33710
|
-
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$
|
|
33820
|
+
children: /*#__PURE__*/jsx(Spreadsheet$1, _objectSpread$A(_objectSpread$A({}, props), {}, {
|
|
33711
33821
|
ref: ref,
|
|
33712
33822
|
darkMode: root.contentStore.theme == 'darkmode',
|
|
33713
33823
|
jwt: root.dataStore.jwt,
|
|
@@ -33717,8 +33827,8 @@ var SpreadsheetWrapper = /*#__PURE__*/forwardRef(function SpreadsheetWrapper(pro
|
|
|
33717
33827
|
});
|
|
33718
33828
|
var Spreadsheet = observer(SpreadsheetWrapper);
|
|
33719
33829
|
|
|
33720
|
-
function ownKeys$
|
|
33721
|
-
function _objectSpread$
|
|
33830
|
+
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; }
|
|
33831
|
+
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; }
|
|
33722
33832
|
|
|
33723
33833
|
// Type definition for the context state
|
|
33724
33834
|
|
|
@@ -33740,14 +33850,14 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
33740
33850
|
loading: loading,
|
|
33741
33851
|
setOptions: function setOptions(options) {
|
|
33742
33852
|
var state = root.contextStore.getContext('enricher');
|
|
33743
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
33853
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$z(_objectSpread$z({}, state[stateKey]), {}, {
|
|
33744
33854
|
options: options,
|
|
33745
33855
|
loading: false
|
|
33746
33856
|
})));
|
|
33747
33857
|
},
|
|
33748
33858
|
setLoading: function setLoading(loading) {
|
|
33749
33859
|
var state = root.contextStore.getContext('enricher');
|
|
33750
|
-
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$
|
|
33860
|
+
root.contextStore.updateContext('enricher', _defineProperty({}, stateKey, _objectSpread$z(_objectSpread$z({}, state[stateKey]), {}, {
|
|
33751
33861
|
loading: loading
|
|
33752
33862
|
})));
|
|
33753
33863
|
}
|
|
@@ -33858,7 +33968,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
|
33858
33968
|
}, [urlPackageId, getContext().packageId, setSelectedPackage]);
|
|
33859
33969
|
|
|
33860
33970
|
// Return context + handlers
|
|
33861
|
-
return _objectSpread$
|
|
33971
|
+
return _objectSpread$z(_objectSpread$z({}, getContext()), {}, {
|
|
33862
33972
|
setSelectedSerie: setSelectedSerie,
|
|
33863
33973
|
setSelectedItem: setSelectedItem,
|
|
33864
33974
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -36962,8 +37072,8 @@ function getConfig(t) {
|
|
|
36962
37072
|
};
|
|
36963
37073
|
}
|
|
36964
37074
|
|
|
36965
|
-
function ownKeys$
|
|
36966
|
-
function _objectSpread$
|
|
37075
|
+
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; }
|
|
37076
|
+
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; }
|
|
36967
37077
|
var ExclusivitySerie = function ExclusivitySerie() {
|
|
36968
37078
|
var _useTranslation = useTranslation(),
|
|
36969
37079
|
t = _useTranslation.t,
|
|
@@ -37116,7 +37226,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
|
37116
37226
|
if (type === 'eitems' && !selectedSerie) {
|
|
37117
37227
|
return oldDataRef.current;
|
|
37118
37228
|
}
|
|
37119
|
-
var newData = _objectSpread$
|
|
37229
|
+
var newData = _objectSpread$y(_objectSpread$y({}, baseApplicationData), {}, {
|
|
37120
37230
|
subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
|
|
37121
37231
|
});
|
|
37122
37232
|
oldDataRef.current = newData;
|
|
@@ -37593,8 +37703,8 @@ var isDefaultValue = function isDefaultValue(value, type) {
|
|
|
37593
37703
|
return value === getDefaultValue(type);
|
|
37594
37704
|
};
|
|
37595
37705
|
|
|
37596
|
-
function ownKeys$
|
|
37597
|
-
function _objectSpread$
|
|
37706
|
+
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; }
|
|
37707
|
+
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; }
|
|
37598
37708
|
/**
|
|
37599
37709
|
* Custom hook to manage price factor state and logic
|
|
37600
37710
|
* @param props - Hook configuration
|
|
@@ -37631,7 +37741,7 @@ function usePriceFactor(_ref) {
|
|
|
37631
37741
|
var updateEntries = function updateEntries(newTypeEntries) {
|
|
37632
37742
|
setHasChangedCurrentType(true);
|
|
37633
37743
|
setEntries(function (prev) {
|
|
37634
|
-
return _objectSpread$
|
|
37744
|
+
return _objectSpread$x(_objectSpread$x({}, prev), {}, _defineProperty(_defineProperty({}, type, newTypeEntries), type === 'factor' ? 'discount' : 'factor', []));
|
|
37635
37745
|
});
|
|
37636
37746
|
};
|
|
37637
37747
|
var handleModalOpen = useCallback(function () {
|
|
@@ -37668,7 +37778,7 @@ function usePriceFactor(_ref) {
|
|
|
37668
37778
|
// Always ensure at least one entry when switching types
|
|
37669
37779
|
var newEntries = hasChangedCurrentType ? [] : entries[newType];
|
|
37670
37780
|
setEntries(function (prev) {
|
|
37671
|
-
return _objectSpread$
|
|
37781
|
+
return _objectSpread$x(_objectSpread$x({}, prev), {}, _defineProperty({}, newType, newEntries.length > 0 ? newEntries : [{
|
|
37672
37782
|
value: getDefaultValue(newType),
|
|
37673
37783
|
isValid: true
|
|
37674
37784
|
}]));
|
|
@@ -37772,8 +37882,8 @@ var space = "space-T5Mkd";
|
|
|
37772
37882
|
var input$1 = "input-SK-Fo";
|
|
37773
37883
|
var addButton$1 = "addButton-AVN8Y";
|
|
37774
37884
|
var helpText = "helpText-QYQQF";
|
|
37775
|
-
var css_248z$
|
|
37776
|
-
styleInject(css_248z$
|
|
37885
|
+
var css_248z$i = ".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";
|
|
37886
|
+
styleInject(css_248z$i);
|
|
37777
37887
|
|
|
37778
37888
|
function PriceFactorCellRenderer(props) {
|
|
37779
37889
|
var data = props.data,
|
|
@@ -37989,8 +38099,8 @@ var difference = "difference-xT9ZP";
|
|
|
37989
38099
|
var differencePositive = "differencePositive-hGhZO";
|
|
37990
38100
|
var differenceNegative = "differenceNegative-3CEZA";
|
|
37991
38101
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
|
37992
|
-
var css_248z$
|
|
37993
|
-
styleInject(css_248z$
|
|
38102
|
+
var css_248z$h = ".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";
|
|
38103
|
+
styleInject(css_248z$h);
|
|
37994
38104
|
|
|
37995
38105
|
function PriceDisplayCellRenderer(props) {
|
|
37996
38106
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
|
@@ -38100,12 +38210,12 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
|
38100
38210
|
|
|
38101
38211
|
var input = "input-leHam";
|
|
38102
38212
|
var disabled$1 = "disabled-Llkqu";
|
|
38103
|
-
var css_248z$
|
|
38104
|
-
styleInject(css_248z$
|
|
38213
|
+
var css_248z$g = ".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";
|
|
38214
|
+
styleInject(css_248z$g);
|
|
38105
38215
|
|
|
38106
38216
|
var _excluded$5 = ["onSave", "value"];
|
|
38107
|
-
function ownKeys$
|
|
38108
|
-
function _objectSpread$
|
|
38217
|
+
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; }
|
|
38218
|
+
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; }
|
|
38109
38219
|
function PriceFactorInput(_ref) {
|
|
38110
38220
|
var _onSave = _ref.onSave,
|
|
38111
38221
|
value = _ref.value,
|
|
@@ -38121,7 +38231,7 @@ function PriceFactorInput(_ref) {
|
|
|
38121
38231
|
title: props.tooltip,
|
|
38122
38232
|
children: /*#__PURE__*/jsx("div", {
|
|
38123
38233
|
className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
|
|
38124
|
-
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$
|
|
38234
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$w(_objectSpread$w({}, props), {}, {
|
|
38125
38235
|
isNotInAGGrid: true,
|
|
38126
38236
|
value: innerValue,
|
|
38127
38237
|
onSave: function onSave(data, value) {
|
|
@@ -38135,8 +38245,8 @@ function PriceFactorInput(_ref) {
|
|
|
38135
38245
|
|
|
38136
38246
|
var inputHeader = "input-header--4KDP";
|
|
38137
38247
|
var factorInput = "factor-input-MX85Z";
|
|
38138
|
-
var css_248z$
|
|
38139
|
-
styleInject(css_248z$
|
|
38248
|
+
var css_248z$f = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
|
|
38249
|
+
styleInject(css_248z$f);
|
|
38140
38250
|
|
|
38141
38251
|
function PriceFactorHeaderComponent(_ref) {
|
|
38142
38252
|
var onSave = _ref.onSave,
|
|
@@ -38177,8 +38287,8 @@ function PriceFactorHeaderComponent(_ref) {
|
|
|
38177
38287
|
|
|
38178
38288
|
var root$1 = "root-SA2Dd";
|
|
38179
38289
|
var contentWrapper$1 = "content-wrapper-KSvuc";
|
|
38180
|
-
var css_248z$
|
|
38181
|
-
styleInject(css_248z$
|
|
38290
|
+
var css_248z$e = ".root-SA2Dd {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-KSvuc {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
|
|
38291
|
+
styleInject(css_248z$e);
|
|
38182
38292
|
|
|
38183
38293
|
function Setting(_ref) {
|
|
38184
38294
|
var title = _ref.title,
|
|
@@ -38197,8 +38307,8 @@ function Setting(_ref) {
|
|
|
38197
38307
|
});
|
|
38198
38308
|
}
|
|
38199
38309
|
|
|
38200
|
-
function ownKeys$
|
|
38201
|
-
function _objectSpread$
|
|
38310
|
+
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; }
|
|
38311
|
+
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; }
|
|
38202
38312
|
var Prices = observer(function (_ref) {
|
|
38203
38313
|
var _pricelist$seriePrice;
|
|
38204
38314
|
var organizationId = _ref.organizationId,
|
|
@@ -38221,8 +38331,8 @@ var Prices = observer(function (_ref) {
|
|
|
38221
38331
|
if (!selectedSerie) return;
|
|
38222
38332
|
|
|
38223
38333
|
// Create copies of the objects to modify
|
|
38224
|
-
var newFactors = _objectSpread$
|
|
38225
|
-
var serieFactors = _objectSpread$
|
|
38334
|
+
var newFactors = _objectSpread$v({}, pricelist.pfgPricefactors);
|
|
38335
|
+
var serieFactors = _objectSpread$v({}, newFactors[selectedSerie.serieNo]);
|
|
38226
38336
|
if (value.length === 0) {
|
|
38227
38337
|
// Remove the empty price feature group
|
|
38228
38338
|
delete serieFactors[priceFeatureGroupItem];
|
|
@@ -38253,7 +38363,7 @@ var Prices = observer(function (_ref) {
|
|
|
38253
38363
|
var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
|
38254
38364
|
var _newPriority$selected;
|
|
38255
38365
|
if (!selectedSerie) return;
|
|
38256
|
-
var newPriority = _objectSpread$
|
|
38366
|
+
var newPriority = _objectSpread$v({}, pricelist.pfgPricefactorsPriority);
|
|
38257
38367
|
var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
|
|
38258
38368
|
if (value === true) {
|
|
38259
38369
|
seriesPriority.add(priceFeatureGroupItem);
|
|
@@ -38272,7 +38382,7 @@ var Prices = observer(function (_ref) {
|
|
|
38272
38382
|
var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
|
38273
38383
|
var _newPriority$selected2;
|
|
38274
38384
|
if (!selectedSerie) return;
|
|
38275
|
-
var newPriority = _objectSpread$
|
|
38385
|
+
var newPriority = _objectSpread$v({}, pricelist.pgPricefactorsPriority);
|
|
38276
38386
|
var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
|
|
38277
38387
|
if (value === true) {
|
|
38278
38388
|
seriesPriority.add(priceFeatureGroupItem);
|
|
@@ -38292,8 +38402,8 @@ var Prices = observer(function (_ref) {
|
|
|
38292
38402
|
if (!selectedSerie) return;
|
|
38293
38403
|
|
|
38294
38404
|
// Create copies of the objects to modify
|
|
38295
|
-
var newFactors = _objectSpread$
|
|
38296
|
-
var serieFactors = _objectSpread$
|
|
38405
|
+
var newFactors = _objectSpread$v({}, pricelist.pgPricefactors);
|
|
38406
|
+
var serieFactors = _objectSpread$v({}, newFactors[selectedSerie.serieNo]);
|
|
38297
38407
|
if (value.length === 0) {
|
|
38298
38408
|
// Remove the empty price feature group
|
|
38299
38409
|
delete serieFactors[priceFeatureGroupItem];
|
|
@@ -38325,8 +38435,8 @@ var Prices = observer(function (_ref) {
|
|
|
38325
38435
|
if (!selectedSerie) return;
|
|
38326
38436
|
|
|
38327
38437
|
// Create copies of the objects to modify
|
|
38328
|
-
var newFactors = _objectSpread$
|
|
38329
|
-
var serieFactors = _objectSpread$
|
|
38438
|
+
var newFactors = _objectSpread$v({}, pricelist.articlePricefactors);
|
|
38439
|
+
var serieFactors = _objectSpread$v({}, newFactors[selectedSerie.serieNo]);
|
|
38330
38440
|
if (value.length === 0) {
|
|
38331
38441
|
// Remove the empty article price factor
|
|
38332
38442
|
delete serieFactors[typeNo];
|
|
@@ -38358,8 +38468,8 @@ var Prices = observer(function (_ref) {
|
|
|
38358
38468
|
if (!selectedSerie) return;
|
|
38359
38469
|
|
|
38360
38470
|
// Create copies of the objects to modify
|
|
38361
|
-
var newFactors = _objectSpread$
|
|
38362
|
-
var serieFactors = _objectSpread$
|
|
38471
|
+
var newFactors = _objectSpread$v({}, pricelist.typeKeyPricefactors);
|
|
38472
|
+
var serieFactors = _objectSpread$v({}, newFactors[selectedSerie.serieNo]);
|
|
38363
38473
|
if (value.length === 0) {
|
|
38364
38474
|
// Remove the empty article price factor
|
|
38365
38475
|
delete serieFactors[typeKey];
|
|
@@ -38391,7 +38501,7 @@ var Prices = observer(function (_ref) {
|
|
|
38391
38501
|
if (!selectedSerie) return;
|
|
38392
38502
|
|
|
38393
38503
|
// Create a copy of the object to modify
|
|
38394
|
-
var newFactors = _objectSpread$
|
|
38504
|
+
var newFactors = _objectSpread$v({}, pricelist.seriePricefactors);
|
|
38395
38505
|
if (value.length === 0) {
|
|
38396
38506
|
// Remove the empty serie price factor
|
|
38397
38507
|
delete newFactors[selectedSerie.serieNo];
|
|
@@ -39176,12 +39286,12 @@ function getFormItemProps(props) {
|
|
|
39176
39286
|
}
|
|
39177
39287
|
|
|
39178
39288
|
var _excluded$3 = ["disabled"];
|
|
39179
|
-
function ownKeys$
|
|
39180
|
-
function _objectSpread$
|
|
39289
|
+
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; }
|
|
39290
|
+
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; }
|
|
39181
39291
|
function Checkbox(_ref) {
|
|
39182
39292
|
var disabled = _ref.disabled,
|
|
39183
39293
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
39184
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
39294
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$u(_objectSpread$u({}, getFormItemProps(props)), {}, {
|
|
39185
39295
|
valuePropName: "checked",
|
|
39186
39296
|
children: /*#__PURE__*/jsx(Checkbox$1, {
|
|
39187
39297
|
disabled: disabled
|
|
@@ -39190,13 +39300,13 @@ function Checkbox(_ref) {
|
|
|
39190
39300
|
}
|
|
39191
39301
|
|
|
39192
39302
|
var _excluded$2 = ["disabled", "placeholder"];
|
|
39193
|
-
function ownKeys$
|
|
39194
|
-
function _objectSpread$
|
|
39303
|
+
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; }
|
|
39304
|
+
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; }
|
|
39195
39305
|
function Input(_ref) {
|
|
39196
39306
|
var disabled = _ref.disabled,
|
|
39197
39307
|
placeholder = _ref.placeholder,
|
|
39198
39308
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
39199
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
39309
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$t(_objectSpread$t({}, getFormItemProps(props)), {}, {
|
|
39200
39310
|
children: /*#__PURE__*/jsx(Input$1, {
|
|
39201
39311
|
disabled: disabled,
|
|
39202
39312
|
placeholder: placeholder
|
|
@@ -39205,11 +39315,11 @@ function Input(_ref) {
|
|
|
39205
39315
|
}
|
|
39206
39316
|
|
|
39207
39317
|
var uploadDraggerWrapper = "upload-dragger-wrapper-xZiDJ";
|
|
39208
|
-
var css_248z$
|
|
39209
|
-
styleInject(css_248z$
|
|
39318
|
+
var css_248z$d = ".upload-dragger-wrapper-xZiDJ {\n min-height: 220px;\n}\n";
|
|
39319
|
+
styleInject(css_248z$d);
|
|
39210
39320
|
|
|
39211
|
-
function ownKeys$
|
|
39212
|
-
function _objectSpread$
|
|
39321
|
+
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; }
|
|
39322
|
+
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; }
|
|
39213
39323
|
/**
|
|
39214
39324
|
* Handles file selection and optional auto-zipping
|
|
39215
39325
|
*
|
|
@@ -39313,7 +39423,7 @@ function _validateFile() {
|
|
|
39313
39423
|
return _validateFile.apply(this, arguments);
|
|
39314
39424
|
}
|
|
39315
39425
|
function toUploadFile(file) {
|
|
39316
|
-
return _objectSpread$
|
|
39426
|
+
return _objectSpread$s(_objectSpread$s({}, file), {}, {
|
|
39317
39427
|
uid: file.name,
|
|
39318
39428
|
name: file.name,
|
|
39319
39429
|
status: 'done',
|
|
@@ -39385,8 +39495,8 @@ var DraggerComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
39385
39495
|
});
|
|
39386
39496
|
|
|
39387
39497
|
var _excluded$1 = ["acceptedFileTypes", "disabled", "autoZip", "required", "hint"];
|
|
39388
|
-
function ownKeys$
|
|
39389
|
-
function _objectSpread$
|
|
39498
|
+
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; }
|
|
39499
|
+
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; }
|
|
39390
39500
|
function Dragger(_ref) {
|
|
39391
39501
|
var _props$rules;
|
|
39392
39502
|
var acceptedFileTypes = _ref.acceptedFileTypes,
|
|
@@ -39397,7 +39507,7 @@ function Dragger(_ref) {
|
|
|
39397
39507
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
39398
39508
|
var _useTranslation = useTranslation(),
|
|
39399
39509
|
t = _useTranslation.t;
|
|
39400
|
-
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$
|
|
39510
|
+
return /*#__PURE__*/jsx(Form$2.Item, _objectSpread$r(_objectSpread$r({}, getFormItemProps(props)), {}, {
|
|
39401
39511
|
rules: [].concat(_toConsumableArray((_props$rules = props.rules) !== null && _props$rules !== void 0 ? _props$rules : []), [{
|
|
39402
39512
|
validator: function validator(_, value) {
|
|
39403
39513
|
return validateFile(acceptedFileTypes, t, value);
|
|
@@ -39471,8 +39581,8 @@ function useForm(_ref) {
|
|
|
39471
39581
|
};
|
|
39472
39582
|
}
|
|
39473
39583
|
|
|
39474
|
-
function ownKeys$
|
|
39475
|
-
function _objectSpread$
|
|
39584
|
+
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; }
|
|
39585
|
+
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; }
|
|
39476
39586
|
/**
|
|
39477
39587
|
* Form component that renders form fields based on configuration
|
|
39478
39588
|
*
|
|
@@ -39528,15 +39638,15 @@ function FormItem(_ref2) {
|
|
|
39528
39638
|
var field = _ref2.field;
|
|
39529
39639
|
switch (field.type) {
|
|
39530
39640
|
case 'dragger':
|
|
39531
|
-
return /*#__PURE__*/createElement(Dragger, _objectSpread$
|
|
39641
|
+
return /*#__PURE__*/createElement(Dragger, _objectSpread$q(_objectSpread$q({}, field), {}, {
|
|
39532
39642
|
key: field.name
|
|
39533
39643
|
}));
|
|
39534
39644
|
case 'checkbox':
|
|
39535
|
-
return /*#__PURE__*/createElement(Checkbox, _objectSpread$
|
|
39645
|
+
return /*#__PURE__*/createElement(Checkbox, _objectSpread$q(_objectSpread$q({}, field), {}, {
|
|
39536
39646
|
key: field.name
|
|
39537
39647
|
}));
|
|
39538
39648
|
case 'input':
|
|
39539
|
-
return /*#__PURE__*/createElement(Input, _objectSpread$
|
|
39649
|
+
return /*#__PURE__*/createElement(Input, _objectSpread$q(_objectSpread$q({}, field), {}, {
|
|
39540
39650
|
key: field.name
|
|
39541
39651
|
}));
|
|
39542
39652
|
default:
|
|
@@ -39548,8 +39658,8 @@ var uploadModalFooter = "upload-modal-footer-W5737";
|
|
|
39548
39658
|
var uploadButton = "upload-button-QkWYP";
|
|
39549
39659
|
var errorGroup = "error-group-lmQSx";
|
|
39550
39660
|
var errorItem = "error-item-kyNLD";
|
|
39551
|
-
var css_248z$
|
|
39552
|
-
styleInject(css_248z$
|
|
39661
|
+
var css_248z$c = ".upload-modal-footer-W5737 {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 10px;\n}\n\n.upload-modal-footer-W5737 > .upload-button-QkWYP {\n width: 300px;\n}\n\n.error-group-lmQSx {\n margin-bottom: 8px;\n}\n\n.error-item-kyNLD {\n padding: 4px 0;\n display: flex;\n align-items: flex-start;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.row-index-jmU3D {\n font-weight: 600;\n margin-right: 8px;\n}\n";
|
|
39662
|
+
styleInject(css_248z$c);
|
|
39553
39663
|
|
|
39554
39664
|
/**
|
|
39555
39665
|
* Custom hook for managing upload modal state and functionality
|
|
@@ -39759,10 +39869,10 @@ function useUploadModal(_ref) {
|
|
|
39759
39869
|
};
|
|
39760
39870
|
}
|
|
39761
39871
|
|
|
39762
|
-
function ownKeys$
|
|
39763
|
-
function _objectSpread$
|
|
39872
|
+
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; }
|
|
39873
|
+
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; }
|
|
39764
39874
|
var Panel = Collapse.Panel;
|
|
39765
|
-
var Text$
|
|
39875
|
+
var Text$5 = Typography.Text;
|
|
39766
39876
|
/**
|
|
39767
39877
|
* Component to display structured bulk operation errors in a collapsible format
|
|
39768
39878
|
* Groups errors by operation type and field, showing row indices for each error
|
|
@@ -39800,7 +39910,7 @@ function ErrorDisplay(_ref) {
|
|
|
39800
39910
|
rowNumber: fieldError.index + 1
|
|
39801
39911
|
})
|
|
39802
39912
|
}), fieldError.errorTexts.map(function (errorText, textIdx) {
|
|
39803
|
-
return /*#__PURE__*/jsx(Text$
|
|
39913
|
+
return /*#__PURE__*/jsx(Text$5, {
|
|
39804
39914
|
children: errorText
|
|
39805
39915
|
}, textIdx);
|
|
39806
39916
|
})]
|
|
@@ -39826,7 +39936,7 @@ function ErrorDisplay(_ref) {
|
|
|
39826
39936
|
}
|
|
39827
39937
|
allFieldGroups.get(fieldName).push({
|
|
39828
39938
|
operationType: label,
|
|
39829
|
-
errors: [_objectSpread$
|
|
39939
|
+
errors: [_objectSpread$p(_objectSpread$p({}, error), {}, {
|
|
39830
39940
|
errorTexts: fieldError.errorTexts
|
|
39831
39941
|
})]
|
|
39832
39942
|
});
|
|
@@ -39839,7 +39949,7 @@ function ErrorDisplay(_ref) {
|
|
|
39839
39949
|
}
|
|
39840
39950
|
allFieldGroups.get(fieldName).push({
|
|
39841
39951
|
operationType: label,
|
|
39842
|
-
errors: [_objectSpread$
|
|
39952
|
+
errors: [_objectSpread$p(_objectSpread$p({}, error), {}, {
|
|
39843
39953
|
errorTexts: [error.error]
|
|
39844
39954
|
})]
|
|
39845
39955
|
});
|
|
@@ -40022,8 +40132,8 @@ function UploadModalFooter(_ref2) {
|
|
|
40022
40132
|
}
|
|
40023
40133
|
|
|
40024
40134
|
var _excluded = ["buttonText", "onClose"];
|
|
40025
|
-
function ownKeys$
|
|
40026
|
-
function _objectSpread$
|
|
40135
|
+
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; }
|
|
40136
|
+
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; }
|
|
40027
40137
|
/**
|
|
40028
40138
|
* Button component that opens an upload modal when clicked
|
|
40029
40139
|
*
|
|
@@ -40052,15 +40162,15 @@ function UploadModalButton(_ref) {
|
|
|
40052
40162
|
return setIsModalOpen(true);
|
|
40053
40163
|
},
|
|
40054
40164
|
children: buttonText
|
|
40055
|
-
}), /*#__PURE__*/jsx(UploadModal, _objectSpread$
|
|
40165
|
+
}), /*#__PURE__*/jsx(UploadModal, _objectSpread$o(_objectSpread$o({}, props), {}, {
|
|
40056
40166
|
isOpen: isModalOpen,
|
|
40057
40167
|
onClose: handleClose
|
|
40058
40168
|
}))]
|
|
40059
40169
|
});
|
|
40060
40170
|
}
|
|
40061
40171
|
|
|
40062
|
-
function ownKeys$
|
|
40063
|
-
function _objectSpread$
|
|
40172
|
+
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; }
|
|
40173
|
+
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; }
|
|
40064
40174
|
|
|
40065
40175
|
// Type definition for the context state
|
|
40066
40176
|
|
|
@@ -40082,14 +40192,14 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
40082
40192
|
loading: loading,
|
|
40083
40193
|
setOptions: function setOptions(options) {
|
|
40084
40194
|
var state = root.contextStore.getContext('catalog');
|
|
40085
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
40195
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
|
|
40086
40196
|
options: options,
|
|
40087
40197
|
loading: false
|
|
40088
40198
|
})));
|
|
40089
40199
|
},
|
|
40090
40200
|
setLoading: function setLoading(loading) {
|
|
40091
40201
|
var state = root.contextStore.getContext('catalog');
|
|
40092
|
-
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$
|
|
40202
|
+
root.contextStore.updateContext('catalog', _defineProperty({}, stateKey, _objectSpread$n(_objectSpread$n({}, state[stateKey]), {}, {
|
|
40093
40203
|
loading: loading
|
|
40094
40204
|
})));
|
|
40095
40205
|
}
|
|
@@ -40203,7 +40313,7 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
40203
40313
|
}, [urlCatalogId, getContext().catalogId, setSelectedCatalog]);
|
|
40204
40314
|
|
|
40205
40315
|
// Return context + handlers
|
|
40206
|
-
return _objectSpread$
|
|
40316
|
+
return _objectSpread$n(_objectSpread$n({}, getContext()), {}, {
|
|
40207
40317
|
setSelectedSerie: setSelectedSerie,
|
|
40208
40318
|
setSelectedItem: setSelectedItem,
|
|
40209
40319
|
setSelectedFeature: setSelectedFeature,
|
|
@@ -40213,18 +40323,18 @@ var useCatalogContext = function useCatalogContext() {
|
|
|
40213
40323
|
});
|
|
40214
40324
|
};
|
|
40215
40325
|
|
|
40216
|
-
function ownKeys$
|
|
40217
|
-
function _objectSpread$
|
|
40326
|
+
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; }
|
|
40327
|
+
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; }
|
|
40218
40328
|
/** Recursively set editable: true on leaf columns for versions table, except system fields */
|
|
40219
40329
|
function makeColDefEditableForVersions$1(colDef) {
|
|
40220
40330
|
return colDef.map(function (col) {
|
|
40221
40331
|
if (col.children) {
|
|
40222
|
-
return _objectSpread$
|
|
40332
|
+
return _objectSpread$m(_objectSpread$m({}, col), {}, {
|
|
40223
40333
|
children: makeColDefEditableForVersions$1(col.children)
|
|
40224
40334
|
});
|
|
40225
40335
|
}
|
|
40226
40336
|
if (col.field && !['_id', 'hash', 'organizationId', 'catalogId'].includes(col.field)) {
|
|
40227
|
-
return _objectSpread$
|
|
40337
|
+
return _objectSpread$m(_objectSpread$m({}, col), {}, {
|
|
40228
40338
|
editable: true
|
|
40229
40339
|
});
|
|
40230
40340
|
}
|
|
@@ -41099,18 +41209,18 @@ var Catalogs = /*#__PURE__*/forwardRef(function Catalogs(_ref, ref) {
|
|
|
41099
41209
|
});
|
|
41100
41210
|
});
|
|
41101
41211
|
|
|
41102
|
-
function ownKeys$
|
|
41103
|
-
function _objectSpread$
|
|
41212
|
+
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; }
|
|
41213
|
+
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; }
|
|
41104
41214
|
/** Recursively set editable: true on leaf columns for versions table, except system fields */
|
|
41105
41215
|
function makeColDefEditableForVersions(colDef) {
|
|
41106
41216
|
return colDef.map(function (col) {
|
|
41107
41217
|
if (col.children) {
|
|
41108
|
-
return _objectSpread$
|
|
41218
|
+
return _objectSpread$l(_objectSpread$l({}, col), {}, {
|
|
41109
41219
|
children: makeColDefEditableForVersions(col.children)
|
|
41110
41220
|
});
|
|
41111
41221
|
}
|
|
41112
41222
|
if (col.field && !['_id', 'hash', 'organizationId', 'catalogId'].includes(col.field)) {
|
|
41113
|
-
return _objectSpread$
|
|
41223
|
+
return _objectSpread$l(_objectSpread$l({}, col), {}, {
|
|
41114
41224
|
editable: true
|
|
41115
41225
|
});
|
|
41116
41226
|
}
|
|
@@ -42349,8 +42459,8 @@ var Items$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
42349
42459
|
});
|
|
42350
42460
|
Items$1.displayName = 'Items';
|
|
42351
42461
|
|
|
42352
|
-
function ownKeys$
|
|
42353
|
-
function _objectSpread$
|
|
42462
|
+
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; }
|
|
42463
|
+
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; }
|
|
42354
42464
|
/**
|
|
42355
42465
|
* Custom hook for managing modal open/close state
|
|
42356
42466
|
*
|
|
@@ -42366,12 +42476,12 @@ function useModalOpenState() {
|
|
|
42366
42476
|
setOpenStates = _useState2[1];
|
|
42367
42477
|
var openModal = function openModal(key) {
|
|
42368
42478
|
setOpenStates(function (prev) {
|
|
42369
|
-
return _objectSpread$
|
|
42479
|
+
return _objectSpread$k(_objectSpread$k({}, prev), {}, _defineProperty({}, key, true));
|
|
42370
42480
|
});
|
|
42371
42481
|
};
|
|
42372
42482
|
var closeModal = function closeModal(key) {
|
|
42373
42483
|
setOpenStates(function (prev) {
|
|
42374
|
-
return _objectSpread$
|
|
42484
|
+
return _objectSpread$k(_objectSpread$k({}, prev), {}, _defineProperty({}, key, false));
|
|
42375
42485
|
});
|
|
42376
42486
|
};
|
|
42377
42487
|
return {
|
|
@@ -42456,8 +42566,8 @@ function ExportModal(_ref) {
|
|
|
42456
42566
|
});
|
|
42457
42567
|
}
|
|
42458
42568
|
|
|
42459
|
-
function ownKeys$
|
|
42460
|
-
function _objectSpread$
|
|
42569
|
+
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; }
|
|
42570
|
+
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; }
|
|
42461
42571
|
function Modals(_ref) {
|
|
42462
42572
|
var openStates = _ref.openStates,
|
|
42463
42573
|
closeModal = _ref.closeModal,
|
|
@@ -42466,7 +42576,7 @@ function Modals(_ref) {
|
|
|
42466
42576
|
children: [items.filter(function (item) {
|
|
42467
42577
|
return item.type === 'uploadModal';
|
|
42468
42578
|
}).map(function (item) {
|
|
42469
|
-
return /*#__PURE__*/createElement(UploadModal, _objectSpread$
|
|
42579
|
+
return /*#__PURE__*/createElement(UploadModal, _objectSpread$j(_objectSpread$j({}, item), {}, {
|
|
42470
42580
|
key: item.key,
|
|
42471
42581
|
isOpen: openStates[item.key],
|
|
42472
42582
|
onClose: function onClose() {
|
|
@@ -43952,11 +44062,11 @@ var formContent = "form-content-H-AkE";
|
|
|
43952
44062
|
var footerButtons = "footer-buttons-4cwcu";
|
|
43953
44063
|
var addButton = "add-button-w-6Lk";
|
|
43954
44064
|
var footerContent = "footer-content-sOrT1";
|
|
43955
|
-
var css_248z$
|
|
43956
|
-
styleInject(css_248z$
|
|
44065
|
+
var css_248z$b = ".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";
|
|
44066
|
+
styleInject(css_248z$b);
|
|
43957
44067
|
|
|
43958
|
-
function ownKeys$
|
|
43959
|
-
function _objectSpread$
|
|
44068
|
+
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; }
|
|
44069
|
+
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; }
|
|
43960
44070
|
var ACTION_TYPES = {
|
|
43961
44071
|
SET_FEATURE_DEFAULT: 'SET_FEATURE_DEFAULT',
|
|
43962
44072
|
SET_FEATURE_FIXED: 'SET_FEATURE_FIXED',
|
|
@@ -43994,7 +44104,7 @@ function ActionForm(_ref) {
|
|
|
43994
44104
|
var _useTranslation = useTranslation(),
|
|
43995
44105
|
t = _useTranslation.t;
|
|
43996
44106
|
var defaultValues = useMemo(function () {
|
|
43997
|
-
return _objectSpread$
|
|
44107
|
+
return _objectSpread$i({
|
|
43998
44108
|
actionType: ACTION_TYPES.SET_FEATURE_DEFAULT,
|
|
43999
44109
|
referenceType: REFERENCE_TYPES.OPTION_REF
|
|
44000
44110
|
}, initialValues);
|
|
@@ -45427,8 +45537,8 @@ var TablePartlists = observer(function () {
|
|
|
45427
45537
|
});
|
|
45428
45538
|
});
|
|
45429
45539
|
|
|
45430
|
-
function ownKeys$
|
|
45431
|
-
function _objectSpread$
|
|
45540
|
+
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; }
|
|
45541
|
+
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; }
|
|
45432
45542
|
function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
45433
45543
|
var priceFeatureGroup = _ref.priceFeatureGroup,
|
|
45434
45544
|
catalogId = _ref.catalogId,
|
|
@@ -45455,7 +45565,7 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
45455
45565
|
var newRefsDisplayTexts = _toConsumableArray(priceFeatureGroup.featureNosDisplayTexts);
|
|
45456
45566
|
newRefs.splice(index, 1);
|
|
45457
45567
|
newRefsDisplayTexts.splice(index, 1);
|
|
45458
|
-
var updatedPriceFeatureGroup = _objectSpread$
|
|
45568
|
+
var updatedPriceFeatureGroup = _objectSpread$h(_objectSpread$h({}, priceFeatureGroup), {}, {
|
|
45459
45569
|
featureNos: newRefs,
|
|
45460
45570
|
featureNosDisplayTexts: newRefsDisplayTexts
|
|
45461
45571
|
});
|
|
@@ -45820,8 +45930,8 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
45820
45930
|
}, priceFeatureGroup._id);
|
|
45821
45931
|
}
|
|
45822
45932
|
|
|
45823
|
-
function ownKeys$
|
|
45824
|
-
function _objectSpread$
|
|
45933
|
+
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; }
|
|
45934
|
+
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; }
|
|
45825
45935
|
var TablePriceFeatureGroups = observer(function () {
|
|
45826
45936
|
var _useTranslation = useTranslation(),
|
|
45827
45937
|
t = _useTranslation.t;
|
|
@@ -45925,7 +46035,7 @@ var TablePriceFeatureGroups = observer(function () {
|
|
|
45925
46035
|
return ((_update$node = update.node) === null || _update$node === void 0 ? void 0 : _update$node.id) == selectedNodeId;
|
|
45926
46036
|
});
|
|
45927
46037
|
if (current) {
|
|
45928
|
-
setSelectedPriceFeatureGroup(_objectSpread$
|
|
46038
|
+
setSelectedPriceFeatureGroup(_objectSpread$g({}, current.data));
|
|
45929
46039
|
}
|
|
45930
46040
|
if (updates.length == 0 || updates.some(function (update) {
|
|
45931
46041
|
var _update$oldData;
|
|
@@ -47197,7 +47307,7 @@ function Content$2() {
|
|
|
47197
47307
|
});
|
|
47198
47308
|
}
|
|
47199
47309
|
|
|
47200
|
-
var Title$
|
|
47310
|
+
var Title$2 = Typography.Title;
|
|
47201
47311
|
var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
47202
47312
|
var id = _ref.id;
|
|
47203
47313
|
var root = useStore();
|
|
@@ -47379,7 +47489,7 @@ var FileUploadWrapper = function FileUploadWrapper(_ref) {
|
|
|
47379
47489
|
key = _ref4[0],
|
|
47380
47490
|
data = _ref4[1];
|
|
47381
47491
|
return /*#__PURE__*/jsxs("div", {
|
|
47382
|
-
children: [/*#__PURE__*/jsxs(Title$
|
|
47492
|
+
children: [/*#__PURE__*/jsxs(Title$2, {
|
|
47383
47493
|
level: 4,
|
|
47384
47494
|
children: [t("backoffice.fileupload.".concat(key)), " (", data.length, ")"]
|
|
47385
47495
|
}), /*#__PURE__*/jsx(List$1, {
|
|
@@ -47845,8 +47955,8 @@ var STATS_SERVICES = SERVICES.filter(function (service) {
|
|
|
47845
47955
|
return !service.noStats;
|
|
47846
47956
|
});
|
|
47847
47957
|
|
|
47848
|
-
function ownKeys$
|
|
47849
|
-
function _objectSpread$
|
|
47958
|
+
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; }
|
|
47959
|
+
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; }
|
|
47850
47960
|
function useServiceAction(apiConfig, jwt) {
|
|
47851
47961
|
var getBaseUrl = useCallback(function (service) {
|
|
47852
47962
|
return apiConfig[service.urlKey];
|
|
@@ -47872,7 +47982,7 @@ function useServiceAction(apiConfig, jwt) {
|
|
|
47872
47982
|
_context.next = 6;
|
|
47873
47983
|
return fetch("".concat(baseUrl).concat(path), {
|
|
47874
47984
|
method: method,
|
|
47875
|
-
headers: _objectSpread$
|
|
47985
|
+
headers: _objectSpread$f({
|
|
47876
47986
|
'Content-Type': 'application/json'
|
|
47877
47987
|
}, jwt ? {
|
|
47878
47988
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -47909,8 +48019,8 @@ function useServiceAction(apiConfig, jwt) {
|
|
|
47909
48019
|
};
|
|
47910
48020
|
}
|
|
47911
48021
|
|
|
47912
|
-
function ownKeys$
|
|
47913
|
-
function _objectSpread$
|
|
48022
|
+
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; }
|
|
48023
|
+
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; }
|
|
47914
48024
|
function useMaintenanceState(apiConfig, jwt) {
|
|
47915
48025
|
var _useServiceAction = useServiceAction(apiConfig, jwt),
|
|
47916
48026
|
callEndpoint = _useServiceAction.callEndpoint;
|
|
@@ -48085,7 +48195,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48085
48195
|
while (1) switch (_context4.prev = _context4.next) {
|
|
48086
48196
|
case 0:
|
|
48087
48197
|
setRefreshStates(function (prev) {
|
|
48088
|
-
return _objectSpread$
|
|
48198
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, {
|
|
48089
48199
|
status: 'loading'
|
|
48090
48200
|
}));
|
|
48091
48201
|
});
|
|
@@ -48094,14 +48204,14 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48094
48204
|
case 3:
|
|
48095
48205
|
result = _context4.sent;
|
|
48096
48206
|
setRefreshStates(function (prev) {
|
|
48097
|
-
return _objectSpread$
|
|
48207
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, result));
|
|
48098
48208
|
});
|
|
48099
48209
|
if (!(!service.noStats && ((_statsStates$service$ = statsStates[service.key]) === null || _statsStates$service$ === void 0 ? void 0 : _statsStates$service$.status) === 'done')) {
|
|
48100
48210
|
_context4.next = 11;
|
|
48101
48211
|
break;
|
|
48102
48212
|
}
|
|
48103
48213
|
setStatsStates(function (prev) {
|
|
48104
|
-
return _objectSpread$
|
|
48214
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, {
|
|
48105
48215
|
status: 'loading'
|
|
48106
48216
|
}));
|
|
48107
48217
|
});
|
|
@@ -48110,7 +48220,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48110
48220
|
case 9:
|
|
48111
48221
|
stats = _context4.sent;
|
|
48112
48222
|
setStatsStates(function (prev) {
|
|
48113
|
-
return _objectSpread$
|
|
48223
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, stats));
|
|
48114
48224
|
});
|
|
48115
48225
|
case 11:
|
|
48116
48226
|
case "end":
|
|
@@ -48129,7 +48239,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48129
48239
|
while (1) switch (_context5.prev = _context5.next) {
|
|
48130
48240
|
case 0:
|
|
48131
48241
|
setPingStates(function (prev) {
|
|
48132
|
-
return _objectSpread$
|
|
48242
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, {
|
|
48133
48243
|
status: 'loading'
|
|
48134
48244
|
}));
|
|
48135
48245
|
});
|
|
@@ -48138,7 +48248,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48138
48248
|
case 3:
|
|
48139
48249
|
result = _context5.sent;
|
|
48140
48250
|
setPingStates(function (prev) {
|
|
48141
|
-
return _objectSpread$
|
|
48251
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, result));
|
|
48142
48252
|
});
|
|
48143
48253
|
case 5:
|
|
48144
48254
|
case "end":
|
|
@@ -48157,7 +48267,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48157
48267
|
while (1) switch (_context6.prev = _context6.next) {
|
|
48158
48268
|
case 0:
|
|
48159
48269
|
setStatsStates(function (prev) {
|
|
48160
|
-
return _objectSpread$
|
|
48270
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, {
|
|
48161
48271
|
status: 'loading'
|
|
48162
48272
|
}));
|
|
48163
48273
|
});
|
|
@@ -48166,7 +48276,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48166
48276
|
case 3:
|
|
48167
48277
|
result = _context6.sent;
|
|
48168
48278
|
setStatsStates(function (prev) {
|
|
48169
|
-
return _objectSpread$
|
|
48279
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, service.key, result));
|
|
48170
48280
|
});
|
|
48171
48281
|
case 5:
|
|
48172
48282
|
case "end":
|
|
@@ -48200,7 +48310,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48200
48310
|
case 2:
|
|
48201
48311
|
result = _context7.sent;
|
|
48202
48312
|
setRefreshStates(function (prev) {
|
|
48203
|
-
return _objectSpread$
|
|
48313
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, s.key, result));
|
|
48204
48314
|
});
|
|
48205
48315
|
case 4:
|
|
48206
48316
|
case "end":
|
|
@@ -48242,7 +48352,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48242
48352
|
case 2:
|
|
48243
48353
|
result = _context9.sent;
|
|
48244
48354
|
setPingStates(function (prev) {
|
|
48245
|
-
return _objectSpread$
|
|
48355
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, s.key, result));
|
|
48246
48356
|
});
|
|
48247
48357
|
case 4:
|
|
48248
48358
|
case "end":
|
|
@@ -48284,7 +48394,7 @@ function useMaintenanceState(apiConfig, jwt) {
|
|
|
48284
48394
|
case 2:
|
|
48285
48395
|
result = _context11.sent;
|
|
48286
48396
|
setStatsStates(function (prev) {
|
|
48287
|
-
return _objectSpread$
|
|
48397
|
+
return _objectSpread$e(_objectSpread$e({}, prev), {}, _defineProperty({}, s.key, result));
|
|
48288
48398
|
});
|
|
48289
48399
|
case 4:
|
|
48290
48400
|
case "end":
|
|
@@ -48427,9 +48537,9 @@ function StatusTag(_ref2) {
|
|
|
48427
48537
|
});
|
|
48428
48538
|
}
|
|
48429
48539
|
|
|
48430
|
-
function ownKeys$
|
|
48431
|
-
function _objectSpread$
|
|
48432
|
-
var Text$
|
|
48540
|
+
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; }
|
|
48541
|
+
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; }
|
|
48542
|
+
var Text$4 = Typography.Text;
|
|
48433
48543
|
function PingCard(_ref) {
|
|
48434
48544
|
var service = _ref.service,
|
|
48435
48545
|
state = _ref.state,
|
|
@@ -48471,7 +48581,7 @@ function PingCard(_ref) {
|
|
|
48471
48581
|
alignItems: 'center',
|
|
48472
48582
|
gap: 8
|
|
48473
48583
|
},
|
|
48474
|
-
children: [/*#__PURE__*/jsx(Text$
|
|
48584
|
+
children: [/*#__PURE__*/jsx(Text$4, {
|
|
48475
48585
|
strong: true,
|
|
48476
48586
|
style: {
|
|
48477
48587
|
fontSize: 13
|
|
@@ -48490,7 +48600,7 @@ function PingCard(_ref) {
|
|
|
48490
48600
|
return onPing(service);
|
|
48491
48601
|
}
|
|
48492
48602
|
})]
|
|
48493
|
-
}), state.status === 'loading' && /*#__PURE__*/jsx(Text$
|
|
48603
|
+
}), state.status === 'loading' && /*#__PURE__*/jsx(Text$4, {
|
|
48494
48604
|
type: "secondary",
|
|
48495
48605
|
style: {
|
|
48496
48606
|
fontSize: 12
|
|
@@ -48500,13 +48610,13 @@ function PingCard(_ref) {
|
|
|
48500
48610
|
var _ref2 = (_Object$entries$ = Object.entries(state.instances)[0]) !== null && _Object$entries$ !== void 0 ? _Object$entries$ : [],
|
|
48501
48611
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
48502
48612
|
result = _ref3[1];
|
|
48503
|
-
return result !== null && result !== void 0 && result.reachable ? /*#__PURE__*/jsxs(Text$
|
|
48613
|
+
return result !== null && result !== void 0 && result.reachable ? /*#__PURE__*/jsxs(Text$4, {
|
|
48504
48614
|
type: "success",
|
|
48505
48615
|
style: {
|
|
48506
48616
|
fontSize: 12
|
|
48507
48617
|
},
|
|
48508
48618
|
children: [/*#__PURE__*/jsx(CheckCircleOutlined, {}), " ", t('backoffice.maintenance.reachable')]
|
|
48509
|
-
}) : /*#__PURE__*/jsxs(Text$
|
|
48619
|
+
}) : /*#__PURE__*/jsxs(Text$4, {
|
|
48510
48620
|
type: "danger",
|
|
48511
48621
|
style: {
|
|
48512
48622
|
fontSize: 12
|
|
@@ -48520,7 +48630,7 @@ function PingCard(_ref) {
|
|
|
48520
48630
|
alignItems: 'center',
|
|
48521
48631
|
gap: 8
|
|
48522
48632
|
},
|
|
48523
|
-
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
48633
|
+
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$d({}, summary)), /*#__PURE__*/jsx(Button, {
|
|
48524
48634
|
size: "small",
|
|
48525
48635
|
type: "text",
|
|
48526
48636
|
icon: expanded ? /*#__PURE__*/jsx(DownOutlined$1, {}) : /*#__PURE__*/jsx(RightOutlined$1, {}),
|
|
@@ -48551,7 +48661,7 @@ function PingCard(_ref) {
|
|
|
48551
48661
|
justifyContent: 'space-between',
|
|
48552
48662
|
fontSize: 11
|
|
48553
48663
|
},
|
|
48554
|
-
children: [/*#__PURE__*/jsx(Text$
|
|
48664
|
+
children: [/*#__PURE__*/jsx(Text$4, {
|
|
48555
48665
|
style: {
|
|
48556
48666
|
fontSize: 11
|
|
48557
48667
|
},
|
|
@@ -48559,19 +48669,19 @@ function PingCard(_ref) {
|
|
|
48559
48669
|
tooltip: name
|
|
48560
48670
|
},
|
|
48561
48671
|
children: name
|
|
48562
|
-
}), result === null ? /*#__PURE__*/jsxs(Text$
|
|
48672
|
+
}), result === null ? /*#__PURE__*/jsxs(Text$4, {
|
|
48563
48673
|
type: "danger",
|
|
48564
48674
|
style: {
|
|
48565
48675
|
fontSize: 11
|
|
48566
48676
|
},
|
|
48567
48677
|
children: [/*#__PURE__*/jsx(CloseCircleOutlined, {}), " ", t('backoffice.maintenance.unreachable')]
|
|
48568
|
-
}) : result.reachable ? /*#__PURE__*/jsxs(Text$
|
|
48678
|
+
}) : result.reachable ? /*#__PURE__*/jsxs(Text$4, {
|
|
48569
48679
|
type: "success",
|
|
48570
48680
|
style: {
|
|
48571
48681
|
fontSize: 11
|
|
48572
48682
|
},
|
|
48573
48683
|
children: [/*#__PURE__*/jsx(CheckCircleOutlined, {}), " ", t('backoffice.maintenance.reachable')]
|
|
48574
|
-
}) : /*#__PURE__*/jsx(Text$
|
|
48684
|
+
}) : /*#__PURE__*/jsx(Text$4, {
|
|
48575
48685
|
type: "danger",
|
|
48576
48686
|
style: {
|
|
48577
48687
|
fontSize: 11
|
|
@@ -48581,7 +48691,7 @@ function PingCard(_ref) {
|
|
|
48581
48691
|
}, name);
|
|
48582
48692
|
})
|
|
48583
48693
|
})]
|
|
48584
|
-
}), state.status === 'error' && /*#__PURE__*/jsxs(Text$
|
|
48694
|
+
}), state.status === 'error' && /*#__PURE__*/jsxs(Text$4, {
|
|
48585
48695
|
type: "danger",
|
|
48586
48696
|
style: {
|
|
48587
48697
|
fontSize: 12
|
|
@@ -48591,9 +48701,9 @@ function PingCard(_ref) {
|
|
|
48591
48701
|
});
|
|
48592
48702
|
}
|
|
48593
48703
|
|
|
48594
|
-
function ownKeys$
|
|
48595
|
-
function _objectSpread$
|
|
48596
|
-
var Text$
|
|
48704
|
+
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; }
|
|
48705
|
+
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; }
|
|
48706
|
+
var Text$3 = Typography.Text;
|
|
48597
48707
|
function StatsDescriptions(_ref) {
|
|
48598
48708
|
var data = _ref.data,
|
|
48599
48709
|
t = _ref.t;
|
|
@@ -48653,7 +48763,7 @@ function StatsRow(_ref2) {
|
|
|
48653
48763
|
alignItems: 'center',
|
|
48654
48764
|
gap: 8
|
|
48655
48765
|
},
|
|
48656
|
-
children: [/*#__PURE__*/jsx(Text$
|
|
48766
|
+
children: [/*#__PURE__*/jsx(Text$3, {
|
|
48657
48767
|
strong: true,
|
|
48658
48768
|
style: {
|
|
48659
48769
|
fontSize: 14
|
|
@@ -48661,7 +48771,7 @@ function StatsRow(_ref2) {
|
|
|
48661
48771
|
children: service.label
|
|
48662
48772
|
}), /*#__PURE__*/jsx(RuntimeBadge, {
|
|
48663
48773
|
runtime: service.runtime
|
|
48664
|
-
}), state.status === 'done' && isMulti && /*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
48774
|
+
}), state.status === 'done' && isMulti && /*#__PURE__*/jsx(InstancesBadge, _objectSpread$c({}, getInstanceSummary(state.instances, function () {
|
|
48665
48775
|
return true;
|
|
48666
48776
|
})))]
|
|
48667
48777
|
}), /*#__PURE__*/jsx(Button, {
|
|
@@ -48679,7 +48789,7 @@ function StatsRow(_ref2) {
|
|
|
48679
48789
|
},
|
|
48680
48790
|
children: [/*#__PURE__*/jsx(Spin, {
|
|
48681
48791
|
size: "small"
|
|
48682
|
-
}), " ", /*#__PURE__*/jsx(Text$
|
|
48792
|
+
}), " ", /*#__PURE__*/jsx(Text$3, {
|
|
48683
48793
|
type: "secondary",
|
|
48684
48794
|
children: t('backoffice.maintenance.loadingStats')
|
|
48685
48795
|
})]
|
|
@@ -48754,9 +48864,9 @@ function StatsRow(_ref2) {
|
|
|
48754
48864
|
});
|
|
48755
48865
|
}
|
|
48756
48866
|
|
|
48757
|
-
function ownKeys$
|
|
48758
|
-
function _objectSpread$
|
|
48759
|
-
var Text$
|
|
48867
|
+
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; }
|
|
48868
|
+
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; }
|
|
48869
|
+
var Text$2 = Typography.Text;
|
|
48760
48870
|
function RefreshResultTags(_ref) {
|
|
48761
48871
|
var result = _ref.result;
|
|
48762
48872
|
return /*#__PURE__*/jsx(Space, {
|
|
@@ -48810,7 +48920,7 @@ function RefreshRow(_ref4) {
|
|
|
48810
48920
|
alignItems: 'center',
|
|
48811
48921
|
gap: 8
|
|
48812
48922
|
},
|
|
48813
|
-
children: [/*#__PURE__*/jsx(Text$
|
|
48923
|
+
children: [/*#__PURE__*/jsx(Text$2, {
|
|
48814
48924
|
strong: true,
|
|
48815
48925
|
style: {
|
|
48816
48926
|
fontSize: 14
|
|
@@ -48825,7 +48935,7 @@ function RefreshRow(_ref4) {
|
|
|
48825
48935
|
},
|
|
48826
48936
|
children: [/*#__PURE__*/jsx(Spin, {
|
|
48827
48937
|
size: "small"
|
|
48828
|
-
}), " ", /*#__PURE__*/jsx(Text$
|
|
48938
|
+
}), " ", /*#__PURE__*/jsx(Text$2, {
|
|
48829
48939
|
type: "secondary",
|
|
48830
48940
|
children: t('backoffice.maintenance.refreshing')
|
|
48831
48941
|
})]
|
|
@@ -48856,13 +48966,13 @@ function RefreshRow(_ref4) {
|
|
|
48856
48966
|
gap: 8,
|
|
48857
48967
|
marginBottom: 4
|
|
48858
48968
|
},
|
|
48859
|
-
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$
|
|
48969
|
+
children: [/*#__PURE__*/jsx(InstancesBadge, _objectSpread$b({}, summary)), summary.partial && /*#__PURE__*/jsx(Text$2, {
|
|
48860
48970
|
type: "warning",
|
|
48861
48971
|
style: {
|
|
48862
48972
|
fontSize: 12
|
|
48863
48973
|
},
|
|
48864
48974
|
children: t('backoffice.maintenance.partialSuccess')
|
|
48865
|
-
}), summary.allFailed && /*#__PURE__*/jsx(Text$
|
|
48975
|
+
}), summary.allFailed && /*#__PURE__*/jsx(Text$2, {
|
|
48866
48976
|
type: "danger",
|
|
48867
48977
|
style: {
|
|
48868
48978
|
fontSize: 12
|
|
@@ -48893,7 +49003,7 @@ function RefreshRow(_ref4) {
|
|
|
48893
49003
|
name = _ref8[0],
|
|
48894
49004
|
result = _ref8[1];
|
|
48895
49005
|
return /*#__PURE__*/jsxs("div", {
|
|
48896
|
-
children: [/*#__PURE__*/jsx(Text$
|
|
49006
|
+
children: [/*#__PURE__*/jsx(Text$2, {
|
|
48897
49007
|
type: "secondary",
|
|
48898
49008
|
style: {
|
|
48899
49009
|
fontSize: 11,
|
|
@@ -48940,8 +49050,8 @@ function RefreshRow(_ref4) {
|
|
|
48940
49050
|
});
|
|
48941
49051
|
}
|
|
48942
49052
|
|
|
48943
|
-
var Title = Typography.Title,
|
|
48944
|
-
Text = Typography.Text;
|
|
49053
|
+
var Title$1 = Typography.Title,
|
|
49054
|
+
Text$1 = Typography.Text;
|
|
48945
49055
|
function Maintenance() {
|
|
48946
49056
|
var root = useStore();
|
|
48947
49057
|
var _useTranslation = useTranslation(),
|
|
@@ -48978,7 +49088,7 @@ function Maintenance() {
|
|
|
48978
49088
|
maxWidth: 900,
|
|
48979
49089
|
padding: 16
|
|
48980
49090
|
},
|
|
48981
|
-
children: [/*#__PURE__*/jsx(Title, {
|
|
49091
|
+
children: [/*#__PURE__*/jsx(Title$1, {
|
|
48982
49092
|
level: 3,
|
|
48983
49093
|
style: {
|
|
48984
49094
|
marginBottom: 24
|
|
@@ -48991,7 +49101,7 @@ function Maintenance() {
|
|
|
48991
49101
|
},
|
|
48992
49102
|
items: [{
|
|
48993
49103
|
key: 'healthcheck',
|
|
48994
|
-
label: /*#__PURE__*/jsx(Text, {
|
|
49104
|
+
label: /*#__PURE__*/jsx(Text$1, {
|
|
48995
49105
|
strong: true,
|
|
48996
49106
|
children: t('backoffice.maintenance.healthCheck')
|
|
48997
49107
|
}),
|
|
@@ -49025,7 +49135,7 @@ function Maintenance() {
|
|
|
49025
49135
|
})
|
|
49026
49136
|
}, {
|
|
49027
49137
|
key: 'stats',
|
|
49028
|
-
label: /*#__PURE__*/jsx(Text, {
|
|
49138
|
+
label: /*#__PURE__*/jsx(Text$1, {
|
|
49029
49139
|
strong: true,
|
|
49030
49140
|
children: t('backoffice.maintenance.serviceStats')
|
|
49031
49141
|
}),
|
|
@@ -49059,7 +49169,7 @@ function Maintenance() {
|
|
|
49059
49169
|
})
|
|
49060
49170
|
}, {
|
|
49061
49171
|
key: 'refresh',
|
|
49062
|
-
label: /*#__PURE__*/jsx(Text, {
|
|
49172
|
+
label: /*#__PURE__*/jsx(Text$1, {
|
|
49063
49173
|
strong: true,
|
|
49064
49174
|
children: t('backoffice.maintenance.refreshServices')
|
|
49065
49175
|
}),
|
|
@@ -49096,8 +49206,327 @@ function Maintenance() {
|
|
|
49096
49206
|
});
|
|
49097
49207
|
}
|
|
49098
49208
|
|
|
49099
|
-
|
|
49100
|
-
|
|
49209
|
+
var shell = "shell-2U8ER";
|
|
49210
|
+
var shellDark = "shellDark-Xzi3I";
|
|
49211
|
+
var editorHost = "editorHost-9538u";
|
|
49212
|
+
var css_248z$a = "/* Scoped jsoneditor theming; light uses stock colors via fallbacks, dark uses CSS vars from inline style + .shellDark. */\n\n.shell-2U8ER {\n width: 100%;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.shell-2U8ER .jsoneditor {\n border-color: #3883fa;\n border-color: var(--je-border, #3883fa);\n color: #1a1a1a;\n color: var(--je-text, #1a1a1a);\n}\n\n.shell-2U8ER div.jsoneditor-tree {\n background: #fff;\n background: var(--je-tree-bg, #fff);\n}\n\n.shell-2U8ER .jsoneditor td,\n.shell-2U8ER .jsoneditor th,\n.shell-2U8ER .jsoneditor tr,\n.shell-2U8ER div.jsoneditor-field,\n.shell-2U8ER div.jsoneditor-value,\n.shell-2U8ER pre.jsoneditor-preview {\n color: #1a1a1a;\n color: var(--je-text, #1a1a1a);\n}\n\n.shell-2U8ER div.jsoneditor td.jsoneditor-separator {\n color: grey;\n color: var(--je-separator, grey);\n}\n\n.shell-2U8ER div.jsoneditor-default {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-readonly {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-string,\n.shell-2U8ER a.jsoneditor-value.jsoneditor-url {\n color: #006000;\n color: var(--je-string, #006000);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-number {\n color: #ee422e;\n color: var(--je-number, #ee422e);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-boolean {\n color: #ff8c00;\n color: var(--je-boolean, #ff8c00);\n}\n\n.shell-2U8ER div.jsoneditor-value.jsoneditor-null {\n color: #004ed0;\n color: var(--je-null, #004ed0);\n}\n\n.shell-2U8ER tr.jsoneditor-highlight,\n.shell-2U8ER tr.jsoneditor-selected {\n background-color: #d3d3d3;\n background-color: var(--je-row-bg, #d3d3d3);\n}\n\n.shell-2U8ER div.jsoneditor-tree button.jsoneditor-button:focus {\n background-color: #f5f5f5;\n background-color: var(--je-btn-focus, #f5f5f5);\n outline: 1px solid #e5e5e5;\n outline: 1px solid var(--je-btn-outline, #e5e5e5);\n}\n\n.shell-2U8ER div.jsoneditor-tree div.jsoneditor-show-more {\n background-color: #e5e5e5;\n background-color: var(--je-show-more-bg, #e5e5e5);\n color: grey;\n color: var(--je-dim, grey);\n}\n\n.shell-2U8ER div.jsoneditor-tree div.jsoneditor-show-more a {\n color: grey;\n color: var(--je-dim, grey);\n}\n\n/* Dark: syntax + tree chrome (vars set inline from Ant token where possible) */\n.shellDark-Xzi3I {\n --je-string: #89d185;\n --je-number: #b5cea8;\n --je-boolean: #dcdcaa;\n --je-null: #569cd6;\n --je-url: #4ec9b0;\n --je-row-bg: rgba(255, 255, 255, 0.08);\n --je-btn-focus: rgba(255, 255, 255, 0.12);\n --je-btn-outline: rgba(255, 255, 255, 0.2);\n --je-show-more-bg: rgba(255, 255, 255, 0.12);\n}\n\n.shellDark-Xzi3I div.jsoneditor-tree button.jsoneditor-button {\n filter: invert(1);\n}\n\n.shellDark-Xzi3I div.jsoneditor-tree button.jsoneditor-button:focus {\n filter: invert(1);\n}\n\n.editorHost-9538u {\n height: 100%;\n width: 100%;\n min-height: 200px;\n}\n";
|
|
49213
|
+
styleInject(css_248z$a);
|
|
49214
|
+
|
|
49215
|
+
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; }
|
|
49216
|
+
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; }
|
|
49217
|
+
/**
|
|
49218
|
+
* Read-only tree viewer for Jotform API payloads (uses jsoneditor `view` mode).
|
|
49219
|
+
*/
|
|
49220
|
+
function JotformRawJsonReader(_ref) {
|
|
49221
|
+
var data = _ref.data,
|
|
49222
|
+
_ref$height = _ref.height,
|
|
49223
|
+
height = _ref$height === void 0 ? 420 : _ref$height,
|
|
49224
|
+
darkMode = _ref.darkMode;
|
|
49225
|
+
var _theme$useToken = theme.useToken(),
|
|
49226
|
+
token = _theme$useToken.token;
|
|
49227
|
+
var containerRef = useRef(null);
|
|
49228
|
+
var editorRef = useRef(null);
|
|
49229
|
+
var shellStyle = _objectSpread$a({
|
|
49230
|
+
height: height,
|
|
49231
|
+
minHeight: 200,
|
|
49232
|
+
width: '100%'
|
|
49233
|
+
}, darkMode ? _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '--je-tree-bg', token.colorBgElevated), '--je-border', token.colorBorder), '--je-text', token.colorText), '--je-separator', token.colorTextDescription), '--je-dim', token.colorTextDescription) : {});
|
|
49234
|
+
useEffect(function () {
|
|
49235
|
+
var el = containerRef.current;
|
|
49236
|
+
if (!el) {
|
|
49237
|
+
return;
|
|
49238
|
+
}
|
|
49239
|
+
var editor = new JSONEditor(el, {
|
|
49240
|
+
mode: 'view',
|
|
49241
|
+
mainMenuBar: false,
|
|
49242
|
+
navigationBar: false,
|
|
49243
|
+
statusBar: false
|
|
49244
|
+
});
|
|
49245
|
+
editorRef.current = editor;
|
|
49246
|
+
return function () {
|
|
49247
|
+
editor.destroy();
|
|
49248
|
+
editorRef.current = null;
|
|
49249
|
+
};
|
|
49250
|
+
}, []);
|
|
49251
|
+
useEffect(function () {
|
|
49252
|
+
var editor = editorRef.current;
|
|
49253
|
+
if (!editor) {
|
|
49254
|
+
return;
|
|
49255
|
+
}
|
|
49256
|
+
editor.set(data !== null && data !== void 0 ? data : []);
|
|
49257
|
+
}, [data]);
|
|
49258
|
+
var shellClass = [shell, darkMode ? shellDark : ''].filter(Boolean).join(' ');
|
|
49259
|
+
return /*#__PURE__*/jsx("div", {
|
|
49260
|
+
className: shellClass,
|
|
49261
|
+
style: shellStyle,
|
|
49262
|
+
children: /*#__PURE__*/jsx("div", {
|
|
49263
|
+
ref: containerRef,
|
|
49264
|
+
className: editorHost
|
|
49265
|
+
})
|
|
49266
|
+
});
|
|
49267
|
+
}
|
|
49268
|
+
|
|
49269
|
+
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; }
|
|
49270
|
+
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; }
|
|
49271
|
+
var Title = Typography.Title,
|
|
49272
|
+
Text = Typography.Text;
|
|
49273
|
+
function MetaCampaignJotformSync() {
|
|
49274
|
+
var _result$jotformRaw$ra, _result$jotformRaw, _result$syncSubmissio, _result$syncSubmissio2, _result$metaCampaignI, _result$formId, _ref2, _result$jotformRaw$ra2, _result$jotformRaw2;
|
|
49275
|
+
var root = useStore();
|
|
49276
|
+
var _useTranslation = useTranslation(),
|
|
49277
|
+
t = _useTranslation.t;
|
|
49278
|
+
var apiConfig = root.configurationStore.apiConfig;
|
|
49279
|
+
var jwt = root.dataStore.jwt;
|
|
49280
|
+
var _useState = useState(''),
|
|
49281
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
49282
|
+
campaignId = _useState2[0],
|
|
49283
|
+
setCampaignId = _useState2[1];
|
|
49284
|
+
var _useState3 = useState(''),
|
|
49285
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
49286
|
+
formId = _useState4[0],
|
|
49287
|
+
setFormId = _useState4[1];
|
|
49288
|
+
var _useState5 = useState(false),
|
|
49289
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
49290
|
+
loading = _useState6[0],
|
|
49291
|
+
setLoading = _useState6[1];
|
|
49292
|
+
var _useState7 = useState(null),
|
|
49293
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
49294
|
+
error = _useState8[0],
|
|
49295
|
+
setError = _useState8[1];
|
|
49296
|
+
var _useState9 = useState(null),
|
|
49297
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
49298
|
+
result = _useState10[0],
|
|
49299
|
+
setResult = _useState10[1];
|
|
49300
|
+
var runSync = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
49301
|
+
var c, f, base, url, res, text, body, msg;
|
|
49302
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
49303
|
+
while (1) switch (_context.prev = _context.next) {
|
|
49304
|
+
case 0:
|
|
49305
|
+
setError(null);
|
|
49306
|
+
setResult(null);
|
|
49307
|
+
c = campaignId.trim();
|
|
49308
|
+
f = formId.trim();
|
|
49309
|
+
if (!(!c || !f)) {
|
|
49310
|
+
_context.next = 7;
|
|
49311
|
+
break;
|
|
49312
|
+
}
|
|
49313
|
+
setError(t('backoffice.metaCampaignJotformSync.validation.ids', 'Meta campaign ID and Jotform form ID are required.'));
|
|
49314
|
+
return _context.abrupt("return");
|
|
49315
|
+
case 7:
|
|
49316
|
+
base = apiConfig.analyticsService;
|
|
49317
|
+
if (base) {
|
|
49318
|
+
_context.next = 11;
|
|
49319
|
+
break;
|
|
49320
|
+
}
|
|
49321
|
+
setError(t('backoffice.metaCampaignJotformSync.error.noAnalytics', 'Analytics service URL is not configured.'));
|
|
49322
|
+
return _context.abrupt("return");
|
|
49323
|
+
case 11:
|
|
49324
|
+
setLoading(true);
|
|
49325
|
+
_context.prev = 12;
|
|
49326
|
+
url = "".concat(String(base).replace(/\/$/, ''), "/meta/campaign/").concat(encodeURIComponent(c), "/jotform/").concat(encodeURIComponent(f), "/sync");
|
|
49327
|
+
_context.next = 16;
|
|
49328
|
+
return fetch(url, {
|
|
49329
|
+
method: 'POST',
|
|
49330
|
+
headers: _objectSpread$9({
|
|
49331
|
+
'Content-Type': 'application/json'
|
|
49332
|
+
}, jwt ? {
|
|
49333
|
+
Authorization: "Bearer ".concat(jwt)
|
|
49334
|
+
} : {})
|
|
49335
|
+
});
|
|
49336
|
+
case 16:
|
|
49337
|
+
res = _context.sent;
|
|
49338
|
+
_context.next = 19;
|
|
49339
|
+
return res.text();
|
|
49340
|
+
case 19:
|
|
49341
|
+
text = _context.sent;
|
|
49342
|
+
body = null;
|
|
49343
|
+
try {
|
|
49344
|
+
body = text ? JSON.parse(text) : null;
|
|
49345
|
+
} catch (_unused) {
|
|
49346
|
+
body = {
|
|
49347
|
+
parseError: true,
|
|
49348
|
+
raw: text
|
|
49349
|
+
};
|
|
49350
|
+
}
|
|
49351
|
+
if (res.ok) {
|
|
49352
|
+
_context.next = 26;
|
|
49353
|
+
break;
|
|
49354
|
+
}
|
|
49355
|
+
msg = body && _typeof(body) === 'object' && body !== null && 'message' in body ? String(body.message) : "HTTP ".concat(res.status);
|
|
49356
|
+
setError(text ? "".concat(msg, ": ").concat(text.slice(0, 500)) : msg);
|
|
49357
|
+
return _context.abrupt("return");
|
|
49358
|
+
case 26:
|
|
49359
|
+
setResult(body);
|
|
49360
|
+
_context.next = 32;
|
|
49361
|
+
break;
|
|
49362
|
+
case 29:
|
|
49363
|
+
_context.prev = 29;
|
|
49364
|
+
_context.t0 = _context["catch"](12);
|
|
49365
|
+
setError(_context.t0 instanceof Error ? _context.t0.message : t('backoffice.metaCampaignJotformSync.error.request', 'Request failed.'));
|
|
49366
|
+
case 32:
|
|
49367
|
+
_context.prev = 32;
|
|
49368
|
+
setLoading(false);
|
|
49369
|
+
return _context.finish(32);
|
|
49370
|
+
case 35:
|
|
49371
|
+
case "end":
|
|
49372
|
+
return _context.stop();
|
|
49373
|
+
}
|
|
49374
|
+
}, _callee, null, [[12, 29, 32, 35]]);
|
|
49375
|
+
})), [apiConfig.analyticsService, jwt, campaignId, formId, t]);
|
|
49376
|
+
var rawSubmissionCount = (_result$jotformRaw$ra = result === null || result === void 0 || (_result$jotformRaw = result.jotformRaw) === null || _result$jotformRaw === void 0 || (_result$jotformRaw = _result$jotformRaw.rawSubmissions) === null || _result$jotformRaw === void 0 ? void 0 : _result$jotformRaw.length) !== null && _result$jotformRaw$ra !== void 0 ? _result$jotformRaw$ra : 0;
|
|
49377
|
+
var syncCount = (_result$syncSubmissio = result === null || result === void 0 || (_result$syncSubmissio2 = result.syncSubmissions) === null || _result$syncSubmissio2 === void 0 ? void 0 : _result$syncSubmissio2.length) !== null && _result$syncSubmissio !== void 0 ? _result$syncSubmissio : 0;
|
|
49378
|
+
var darkMode = root.contentStore.theme === 'darkmode';
|
|
49379
|
+
var syncColumns = useMemo(function () {
|
|
49380
|
+
return [{
|
|
49381
|
+
title: t('backoffice.metaCampaignJotformSync.col.submissionId', 'Submission'),
|
|
49382
|
+
dataIndex: 'submissionId',
|
|
49383
|
+
key: 'submissionId',
|
|
49384
|
+
render: function render(_, row) {
|
|
49385
|
+
return row.submissionId != null ? String(row.submissionId) : '—';
|
|
49386
|
+
}
|
|
49387
|
+
}, {
|
|
49388
|
+
title: t('backoffice.metaCampaignJotformSync.col.status', 'Status'),
|
|
49389
|
+
key: 'status',
|
|
49390
|
+
render: function render() {
|
|
49391
|
+
return t('backoffice.metaCampaignJotformSync.mapped', 'Mapped');
|
|
49392
|
+
}
|
|
49393
|
+
}];
|
|
49394
|
+
}, [t]);
|
|
49395
|
+
return /*#__PURE__*/jsxs("div", {
|
|
49396
|
+
style: {
|
|
49397
|
+
maxWidth: 960,
|
|
49398
|
+
padding: 16
|
|
49399
|
+
},
|
|
49400
|
+
children: [/*#__PURE__*/jsx(Title, {
|
|
49401
|
+
level: 3,
|
|
49402
|
+
style: {
|
|
49403
|
+
marginBottom: 8
|
|
49404
|
+
},
|
|
49405
|
+
children: t('backoffice.metaCampaignJotformSync.title', 'Meta campaign — Jotform sync')
|
|
49406
|
+
}), /*#__PURE__*/jsx(Text, {
|
|
49407
|
+
type: "secondary",
|
|
49408
|
+
style: {
|
|
49409
|
+
display: 'block',
|
|
49410
|
+
marginBottom: 24
|
|
49411
|
+
},
|
|
49412
|
+
children: t('backoffice.metaCampaignJotformSync.subtitle', 'Pulls all submissions from Jotform via Analytics. Requires analyticsInternal on the API and jotformApiKey in analytics config.')
|
|
49413
|
+
}), /*#__PURE__*/jsxs(Form$2, {
|
|
49414
|
+
layout: "vertical",
|
|
49415
|
+
style: {
|
|
49416
|
+
maxWidth: 480
|
|
49417
|
+
},
|
|
49418
|
+
children: [/*#__PURE__*/jsx(Form$2.Item, {
|
|
49419
|
+
label: t('backoffice.metaCampaignJotformSync.field.metaCampaignId', 'Meta campaign ID'),
|
|
49420
|
+
required: true,
|
|
49421
|
+
htmlFor: "meta-campaign-jotform-meta-id",
|
|
49422
|
+
children: /*#__PURE__*/jsx(Input$1, {
|
|
49423
|
+
id: "meta-campaign-jotform-meta-id",
|
|
49424
|
+
value: campaignId,
|
|
49425
|
+
onChange: function onChange(e) {
|
|
49426
|
+
return setCampaignId(e.target.value);
|
|
49427
|
+
},
|
|
49428
|
+
placeholder: "e.g. 123456789",
|
|
49429
|
+
autoComplete: "off"
|
|
49430
|
+
})
|
|
49431
|
+
}), /*#__PURE__*/jsx(Form$2.Item, {
|
|
49432
|
+
label: t('backoffice.metaCampaignJotformSync.field.jotformFormId', 'Jotform form ID'),
|
|
49433
|
+
required: true,
|
|
49434
|
+
htmlFor: "meta-campaign-jotform-form-id",
|
|
49435
|
+
children: /*#__PURE__*/jsx(Input$1, {
|
|
49436
|
+
id: "meta-campaign-jotform-form-id",
|
|
49437
|
+
value: formId,
|
|
49438
|
+
onChange: function onChange(e) {
|
|
49439
|
+
return setFormId(e.target.value);
|
|
49440
|
+
},
|
|
49441
|
+
placeholder: "e.g. 240394867841059",
|
|
49442
|
+
autoComplete: "off"
|
|
49443
|
+
})
|
|
49444
|
+
}), /*#__PURE__*/jsx(Form$2.Item, {
|
|
49445
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
49446
|
+
type: "primary",
|
|
49447
|
+
icon: /*#__PURE__*/jsx(CloudSyncOutlined, {}),
|
|
49448
|
+
onClick: runSync,
|
|
49449
|
+
loading: loading,
|
|
49450
|
+
disabled: loading,
|
|
49451
|
+
children: t('backoffice.metaCampaignJotformSync.run', 'Run sync')
|
|
49452
|
+
})
|
|
49453
|
+
})]
|
|
49454
|
+
}), error && /*#__PURE__*/jsx(Alert, {
|
|
49455
|
+
type: "error",
|
|
49456
|
+
message: error,
|
|
49457
|
+
style: {
|
|
49458
|
+
marginTop: 16
|
|
49459
|
+
},
|
|
49460
|
+
showIcon: true,
|
|
49461
|
+
closable: true,
|
|
49462
|
+
onClose: function onClose() {
|
|
49463
|
+
return setError(null);
|
|
49464
|
+
}
|
|
49465
|
+
}), result && /*#__PURE__*/jsxs(Space, {
|
|
49466
|
+
direction: "vertical",
|
|
49467
|
+
size: "middle",
|
|
49468
|
+
style: {
|
|
49469
|
+
width: '100%',
|
|
49470
|
+
marginTop: 24
|
|
49471
|
+
},
|
|
49472
|
+
children: [/*#__PURE__*/jsxs(Space, {
|
|
49473
|
+
wrap: true,
|
|
49474
|
+
children: [/*#__PURE__*/jsxs(Text, {
|
|
49475
|
+
children: [/*#__PURE__*/jsxs("strong", {
|
|
49476
|
+
children: [t('backoffice.metaCampaignJotformSync.summary.campaign', 'Campaign'), ":"]
|
|
49477
|
+
}), " ", (_result$metaCampaignI = result.metaCampaignId) !== null && _result$metaCampaignI !== void 0 ? _result$metaCampaignI : '—']
|
|
49478
|
+
}), /*#__PURE__*/jsxs(Text, {
|
|
49479
|
+
children: [/*#__PURE__*/jsxs("strong", {
|
|
49480
|
+
children: [t('backoffice.metaCampaignJotformSync.summary.form', 'Form'), ":"]
|
|
49481
|
+
}), " ", (_result$formId = result.formId) !== null && _result$formId !== void 0 ? _result$formId : '—']
|
|
49482
|
+
}), /*#__PURE__*/jsxs(Text, {
|
|
49483
|
+
children: [/*#__PURE__*/jsxs("strong", {
|
|
49484
|
+
children: [t('backoffice.metaCampaignJotformSync.summary.rawSubmissions', 'Jotform submissions'), ":"]
|
|
49485
|
+
}), " ", rawSubmissionCount]
|
|
49486
|
+
}), /*#__PURE__*/jsxs(Text, {
|
|
49487
|
+
children: [/*#__PURE__*/jsxs("strong", {
|
|
49488
|
+
children: [t('backoffice.metaCampaignJotformSync.summary.syncRows', 'Sync DTO rows'), ":"]
|
|
49489
|
+
}), " ", syncCount]
|
|
49490
|
+
})]
|
|
49491
|
+
}), syncCount > 0 && /*#__PURE__*/jsx(Table$1, {
|
|
49492
|
+
size: "small",
|
|
49493
|
+
rowKey: function rowKey(_, i) {
|
|
49494
|
+
return String(i);
|
|
49495
|
+
},
|
|
49496
|
+
columns: syncColumns,
|
|
49497
|
+
dataSource: (_ref2 = result.syncSubmissions) !== null && _ref2 !== void 0 ? _ref2 : [],
|
|
49498
|
+
pagination: false
|
|
49499
|
+
}), /*#__PURE__*/jsx(Collapse, {
|
|
49500
|
+
bordered: false,
|
|
49501
|
+
defaultActiveKey: [],
|
|
49502
|
+
style: {
|
|
49503
|
+
background: 'transparent'
|
|
49504
|
+
},
|
|
49505
|
+
items: [{
|
|
49506
|
+
key: 'raw',
|
|
49507
|
+
label: /*#__PURE__*/jsxs(Space, {
|
|
49508
|
+
size: "small",
|
|
49509
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
49510
|
+
children: t('backoffice.metaCampaignJotformSync.panel.raw', 'Raw Jotform submissions (debug)')
|
|
49511
|
+
}), /*#__PURE__*/jsxs(Text, {
|
|
49512
|
+
type: "secondary",
|
|
49513
|
+
children: ["(", rawSubmissionCount, ")"]
|
|
49514
|
+
})]
|
|
49515
|
+
}),
|
|
49516
|
+
children: /*#__PURE__*/jsx(JotformRawJsonReader, {
|
|
49517
|
+
data: (_result$jotformRaw$ra2 = (_result$jotformRaw2 = result.jotformRaw) === null || _result$jotformRaw2 === void 0 ? void 0 : _result$jotformRaw2.rawSubmissions) !== null && _result$jotformRaw$ra2 !== void 0 ? _result$jotformRaw$ra2 : [],
|
|
49518
|
+
height: 420,
|
|
49519
|
+
darkMode: darkMode
|
|
49520
|
+
})
|
|
49521
|
+
}]
|
|
49522
|
+
})]
|
|
49523
|
+
})]
|
|
49524
|
+
});
|
|
49525
|
+
}
|
|
49526
|
+
var MetaCampaignJotformSync$1 = observer(MetaCampaignJotformSync);
|
|
49527
|
+
|
|
49528
|
+
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; }
|
|
49529
|
+
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; }
|
|
49101
49530
|
var ContentWrapper = function ContentWrapper(_ref) {
|
|
49102
49531
|
var _menuRoute$configurat;
|
|
49103
49532
|
var menuRoute = _ref.menuRoute;
|
|
@@ -49179,7 +49608,7 @@ var ContentCard = observer(function (_ref3) {
|
|
|
49179
49608
|
var root = useStore();
|
|
49180
49609
|
var configuration = root.configurationStore.getConfiguration(configId);
|
|
49181
49610
|
return /*#__PURE__*/jsxs("div", {
|
|
49182
|
-
style: _objectSpread$
|
|
49611
|
+
style: _objectSpread$8(_objectSpread$8({}, !inGroup ? {
|
|
49183
49612
|
height: '100%'
|
|
49184
49613
|
} : {
|
|
49185
49614
|
maxHeight: '60vh'
|
|
@@ -49238,7 +49667,7 @@ var ContentCard = observer(function (_ref3) {
|
|
|
49238
49667
|
}, configId), configuration.type == 'MediaTable' && /*#__PURE__*/jsx(MediaTable, {
|
|
49239
49668
|
configuration: configuration,
|
|
49240
49669
|
id: configId
|
|
49241
|
-
}, configId), configuration.type == 'Maintenance' && /*#__PURE__*/jsx(Maintenance, {}, configId)]
|
|
49670
|
+
}, configId), configuration.type == 'Maintenance' && /*#__PURE__*/jsx(Maintenance, {}, configId), configuration.type == 'MetaCampaignJotformSync' && /*#__PURE__*/jsx(MetaCampaignJotformSync$1, {}, configId)]
|
|
49242
49671
|
});
|
|
49243
49672
|
});
|
|
49244
49673
|
var Content = observer(ContentWrapper);
|
|
@@ -49918,8 +50347,8 @@ var select$2 = "select-jVMz-";
|
|
|
49918
50347
|
var css_248z$3 = ".wrapper-IcNC5 {\n display: flex;\n gap: 16px;\n justify-content: space-between;\n margin-bottom: 8px;\n}\n\n.select-jVMz- {\n z-index: 1000;\n flex: 1;\n max-width: calc(100% - 48px);\n}\n";
|
|
49919
50348
|
styleInject(css_248z$3);
|
|
49920
50349
|
|
|
49921
|
-
function ownKeys$
|
|
49922
|
-
function _objectSpread$
|
|
50350
|
+
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; }
|
|
50351
|
+
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; }
|
|
49923
50352
|
var ArticleSelection = function ArticleSelection(_ref) {
|
|
49924
50353
|
var _ref$state = _ref.state,
|
|
49925
50354
|
itemList = _ref$state.itemList,
|
|
@@ -49962,7 +50391,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
|
49962
50391
|
if (_loop()) continue;
|
|
49963
50392
|
}
|
|
49964
50393
|
return groups.map(function (g) {
|
|
49965
|
-
return _objectSpread$
|
|
50394
|
+
return _objectSpread$7(_objectSpread$7({}, g), {}, {
|
|
49966
50395
|
label: t('configuration.group.' + g.label, g.label)
|
|
49967
50396
|
});
|
|
49968
50397
|
});
|
|
@@ -50991,8 +51420,8 @@ var LanguageSelection = function LanguageSelection(_ref) {
|
|
|
50991
51420
|
};
|
|
50992
51421
|
var LanguageSelection$1 = observer(LanguageSelection);
|
|
50993
51422
|
|
|
50994
|
-
function ownKeys$
|
|
50995
|
-
function _objectSpread$
|
|
51423
|
+
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; }
|
|
51424
|
+
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; }
|
|
50996
51425
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
50997
51426
|
var _tool$parameters, _state$serie, _state$serie2, _state$item, _tool$parameters2, _state$mask$accountId, _state$mask2, _state$item$typeNo$to, _state$item2, _state$mask$catalogCo, _state$mask3;
|
|
50998
51427
|
var tool = _ref.tool,
|
|
@@ -51030,7 +51459,7 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
|
51030
51459
|
children: /*#__PURE__*/jsx(WebPlannerReact, {
|
|
51031
51460
|
analyzerComponents: analyzerComponents,
|
|
51032
51461
|
settings: state.settings,
|
|
51033
|
-
parameters: _objectSpread$
|
|
51462
|
+
parameters: _objectSpread$6(_objectSpread$6(_objectSpread$6(_objectSpread$6({}, !!state.doNavigate ? {
|
|
51034
51463
|
initMode: 'OPENCONFIGTABGROUP',
|
|
51035
51464
|
opt: state.doNavigate
|
|
51036
51465
|
} : {}), (_tool$parameters2 = tool.parameters) !== null && _tool$parameters2 !== void 0 ? _tool$parameters2 : {}), {}, {
|
|
@@ -51068,6 +51497,7 @@ var root = "root-faX1F";
|
|
|
51068
51497
|
var controls = "controls--YAQI";
|
|
51069
51498
|
var row = "row-ecH3b";
|
|
51070
51499
|
var label = "label-fACDm";
|
|
51500
|
+
var temperatureHint = "temperatureHint-MzVQS";
|
|
51071
51501
|
var galleryThumbStrip = "galleryThumbStrip-xWXzp";
|
|
51072
51502
|
var galleryThumb = "galleryThumb-a7KeK";
|
|
51073
51503
|
var galleryThumbSelected = "galleryThumbSelected-N77-f";
|
|
@@ -51097,7 +51527,7 @@ var refTooltipImg = "refTooltipImg-cTuL2";
|
|
|
51097
51527
|
var refTooltipFileName = "refTooltipFileName-zHdZS";
|
|
51098
51528
|
var refNoneBtn = "refNoneBtn-HqYhy";
|
|
51099
51529
|
var refSubLabel = "refSubLabel-clSBt";
|
|
51100
|
-
var css_248z = ".root-faX1F {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 8px;\n height: 100%;\n min-height: 200px;\n box-sizing: border-box;\n}\n\n.controls--YAQI {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.row-ecH3b {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.label-fACDm {\n font-size: 12px;\n opacity: 0.85;\n}\n\n.galleryThumbStrip-xWXzp {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 6px;\n width: 100%;\n padding: 4px 0 2px;\n overflow-x: auto;\n overflow-y: hidden;\n box-sizing: border-box;\n scrollbar-width: thin;\n}\n\n.galleryThumb-a7KeK {\n flex: 0 0 auto;\n width: 52px;\n height: 52px;\n padding: 0;\n border: 2px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n cursor: pointer;\n background: #f0f0f0;\n background: var(--ant-color-fill-secondary, #f0f0f0);\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.galleryThumb-a7KeK:hover {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.galleryThumbSelected-N77-f {\n border-color: #1677ff;\n border-color: var(--ant-color-primary, #1677ff);\n box-shadow: 0 0 0 1px #1677ff;\n box-shadow: 0 0 0 1px var(--ant-color-primary, #1677ff);\n}\n\n.galleryThumb-a7KeK img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n display: block;\n}\n\n.galleryThumbPending-BpxMD {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n min-height: 0;\n}\n\n.gallery-KhOQ6 {\n flex: 0 1 auto;\n width: 100%;\n min-height: 0;\n border-radius: 8px;\n overflow: hidden;\n background: #f5f5f5;\n background: var(--ant-color-fill-quaternary, #f5f5f5);\n}\n\n.gallerySwiper-EEcNS {\n position: relative;\n width: 100%;\n padding: 0;\n box-sizing: border-box;\n}\n\n/* Swiper Navigation — no pill background; halo keeps arrows readable on photos */\n.gallerySwiper-EEcNS .swiper-button-prev,\n.gallerySwiper-EEcNS .swiper-button-next {\n width: 40px;\n height: 40px;\n margin-top: 0;\n top: 50%;\n color: rgba(0, 0, 0, 0.72);\n background: transparent;\n border-radius: 0;\n box-shadow: none;\n text-shadow: 0 0 6px #fff, 0 0 2px #fff;\n z-index: 2;\n}\n\n.gallerySwiper-EEcNS .swiper-button-prev::after,\n.gallerySwiper-EEcNS .swiper-button-next::after {\n font-size: 13px;\n font-weight: 700;\n}\n\n.gallerySwiper-EEcNS .swiper-button-prev {\n left: 6px;\n}\n\n.gallerySwiper-EEcNS .swiper-button-next {\n right: 6px;\n}\n\n.gallerySwiper-EEcNS .swiper-button-disabled {\n opacity: 0.28;\n pointer-events: none;\n}\n\n/* Fullscreen overlay gallery (dark background) */\n.fullscreenGallerySwiper-y-BWH {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n box-sizing: border-box;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-slide {\n width: 100%;\n box-sizing: border-box;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev,\n.fullscreenGallerySwiper-y-BWH .swiper-button-next {\n width: 40px;\n height: 40px;\n margin-top: 0;\n top: 42%;\n color: rgba(255, 255, 255, 0.95);\n background: transparent;\n border-radius: 0;\n box-shadow: none;\n text-shadow: 0 0 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);\n z-index: 2;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev::after,\n.fullscreenGallerySwiper-y-BWH .swiper-button-next::after {\n font-size: 13px;\n font-weight: 700;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev {\n left: 10px;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-next {\n right: 10px;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-disabled {\n opacity: 0.28;\n pointer-events: none;\n}\n\n.gallerySwiper-EEcNS .swiper-slide {\n width: 100%;\n box-sizing: border-box;\n}\n\n.slide-yZhlJ {\n width: 100% !important;\n}\n\n.slide-yZhlJ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n height: auto;\n max-width: 100%;\n}\n\n.slideInner-9-AbT {\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n}\n\n/* Fixed 1:1 preview so Swiper height stays stable when switching generations */\n.imageWrap-YXL5t {\n position: relative;\n width: 100%;\n aspect-ratio: 1 / 1;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0,0,0,0.07059);\n border-radius: 6px 6px 0 0;\n overflow: hidden;\n line-height: 0;\n flex-shrink: 0;\n}\n\n.imageWrapLoading-u44TC {\n padding: 24px 8px;\n box-sizing: border-box;\n}\n\n.image-G6kzz {\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n display: block;\n}\n\n/* Pending state keeps a minimum box without forcing finished slides tall */\n.imageWrapLoading-u44TC .loadingPlaceholder-WgjEt {\n line-height: 1.4;\n}\n\n.loadingPlaceholder-WgjEt {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 16px;\n font-size: 12px;\n opacity: 0.85;\n text-align: center;\n}\n\n.caption-Gyu-O {\n margin-top: 0;\n padding: 8px 8px 0;\n font-size: 12px;\n line-height: 1.4;\n max-height: 120px;\n overflow-y: auto;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.captionResolution-M-v8p {\n font-size: 11px;\n line-height: 1.35;\n opacity: 0.82;\n word-break: break-word;\n white-space: normal;\n flex-shrink: 0;\n}\n\n.captionPrompt-7h9Ti {\n white-space: pre-wrap;\n word-break: break-word;\n min-height: 0;\n}\n\n.slideActions-NozRI {\n margin-top: 0;\n padding: 4px 8px 8px;\n box-sizing: border-box;\n}\n\n.slideActionsRow-BgPBF {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 12px;\n}\n\n.empty-gWZNI {\n padding: 24px;\n text-align: center;\n font-size: 13px;\n opacity: 0.65;\n}\n\n.refRow-OS1h2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n}\n\n.refBlock-U7qC- {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.refPickers-TzvKS {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: 8px;\n}\n\n.refThumbRow-KlFhj {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n flex: 1;\n min-width: 0;\n}\n\n.refThumb-d--qS {\n width: 44px;\n height: 44px;\n padding: 0;\n border: 2px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n cursor: pointer;\n background: #f5f5f5;\n background: var(--ant-color-fill-secondary, #f5f5f5);\n flex-shrink: 0;\n}\n\n.refThumb-d--qS img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n display: block;\n}\n\n.refThumb-d--qS:hover {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.refThumbSelected-UnCbx {\n border-color: #1677ff;\n border-color: var(--ant-color-primary, #1677ff);\n box-shadow: 0 0 0 1px #1677ff;\n box-shadow: 0 0 0 1px var(--ant-color-primary, #1677ff);\n}\n\n.refTooltipBody-EBAiR {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n max-width: 280px;\n}\n\n.refTooltipImg-cTuL2 {\n display: block;\n max-width: 260px;\n max-height: 200px;\n width: auto;\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n border-radius: 4px;\n}\n\n.refTooltipFileName-zHdZS {\n font-size: 11px;\n line-height: 1.3;\n text-align: center;\n word-break: break-word;\n max-width: 260px;\n opacity: 0.92;\n}\n\n.refNoneBtn-HqYhy {\n box-sizing: border-box;\n min-width: 52px;\n max-width: 72px;\n height: 44px;\n padding: 2px 6px;\n border: 2px solid transparent;\n border-radius: 6px;\n cursor: pointer;\n background: #f5f5f5;\n background: var(--ant-color-fill-secondary, #f5f5f5);\n font-size: 10px;\n line-height: 1.15;\n color: rgba(0, 0, 0, 0.88);\n color: var(--ant-color-text, rgba(0, 0, 0, 0.88));\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n}\n\n.refNoneBtn-HqYhy:hover:not(:disabled) {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.refNoneBtn-HqYhy:disabled {\n cursor: not-allowed;\n opacity: 0.45;\n}\n\n.refSubLabel-clSBt {\n font-size: 11px;\n opacity: 0.75;\n margin-bottom: 2px;\n}\n";
|
|
51530
|
+
var css_248z = ".root-faX1F {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 8px;\n height: 100%;\n min-height: 200px;\n box-sizing: border-box;\n}\n\n.controls--YAQI {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.row-ecH3b {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.label-fACDm {\n font-size: 12px;\n opacity: 0.85;\n}\n\n.temperatureHint-MzVQS {\n font-size: 12px;\n opacity: 0.65;\n margin-bottom: 4px;\n}\n\n.galleryThumbStrip-xWXzp {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 6px;\n width: 100%;\n padding: 4px 0 2px;\n overflow-x: auto;\n overflow-y: hidden;\n box-sizing: border-box;\n scrollbar-width: thin;\n}\n\n.galleryThumb-a7KeK {\n flex: 0 0 auto;\n width: 52px;\n height: 52px;\n padding: 0;\n border: 2px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n cursor: pointer;\n background: #f0f0f0;\n background: var(--ant-color-fill-secondary, #f0f0f0);\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.galleryThumb-a7KeK:hover {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.galleryThumbSelected-N77-f {\n border-color: #1677ff;\n border-color: var(--ant-color-primary, #1677ff);\n box-shadow: 0 0 0 1px #1677ff;\n box-shadow: 0 0 0 1px var(--ant-color-primary, #1677ff);\n}\n\n.galleryThumb-a7KeK img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n display: block;\n}\n\n.galleryThumbPending-BpxMD {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n min-height: 0;\n}\n\n.gallery-KhOQ6 {\n flex: 0 1 auto;\n width: 100%;\n min-height: 0;\n border-radius: 8px;\n overflow: hidden;\n background: #f5f5f5;\n background: var(--ant-color-fill-quaternary, #f5f5f5);\n}\n\n.gallerySwiper-EEcNS {\n position: relative;\n width: 100%;\n padding: 0;\n box-sizing: border-box;\n}\n\n/* Swiper Navigation — no pill background; halo keeps arrows readable on photos */\n.gallerySwiper-EEcNS .swiper-button-prev,\n.gallerySwiper-EEcNS .swiper-button-next {\n width: 40px;\n height: 40px;\n margin-top: 0;\n top: 50%;\n color: rgba(0, 0, 0, 0.72);\n background: transparent;\n border-radius: 0;\n box-shadow: none;\n text-shadow: 0 0 6px #fff, 0 0 2px #fff;\n z-index: 2;\n}\n\n.gallerySwiper-EEcNS .swiper-button-prev::after,\n.gallerySwiper-EEcNS .swiper-button-next::after {\n font-size: 13px;\n font-weight: 700;\n}\n\n.gallerySwiper-EEcNS .swiper-button-prev {\n left: 6px;\n}\n\n.gallerySwiper-EEcNS .swiper-button-next {\n right: 6px;\n}\n\n.gallerySwiper-EEcNS .swiper-button-disabled {\n opacity: 0.28;\n pointer-events: none;\n}\n\n/* Fullscreen overlay gallery (dark background) */\n.fullscreenGallerySwiper-y-BWH {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 220px;\n box-sizing: border-box;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-slide {\n width: 100%;\n box-sizing: border-box;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev,\n.fullscreenGallerySwiper-y-BWH .swiper-button-next {\n width: 40px;\n height: 40px;\n margin-top: 0;\n top: 42%;\n color: rgba(255, 255, 255, 0.95);\n background: transparent;\n border-radius: 0;\n box-shadow: none;\n text-shadow: 0 0 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);\n z-index: 2;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev::after,\n.fullscreenGallerySwiper-y-BWH .swiper-button-next::after {\n font-size: 13px;\n font-weight: 700;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-prev {\n left: 10px;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-next {\n right: 10px;\n}\n\n.fullscreenGallerySwiper-y-BWH .swiper-button-disabled {\n opacity: 0.28;\n pointer-events: none;\n}\n\n.gallerySwiper-EEcNS .swiper-slide {\n width: 100%;\n box-sizing: border-box;\n}\n\n.slide-yZhlJ {\n width: 100% !important;\n}\n\n.slide-yZhlJ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n height: auto;\n max-width: 100%;\n}\n\n.slideInner-9-AbT {\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n}\n\n/* Fixed 1:1 preview so Swiper height stays stable when switching generations */\n.imageWrap-YXL5t {\n position: relative;\n width: 100%;\n aspect-ratio: 1 / 1;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0,0,0,0.07059);\n border-radius: 6px 6px 0 0;\n overflow: hidden;\n line-height: 0;\n flex-shrink: 0;\n}\n\n.imageWrapLoading-u44TC {\n padding: 24px 8px;\n box-sizing: border-box;\n}\n\n.image-G6kzz {\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n display: block;\n}\n\n/* Pending state keeps a minimum box without forcing finished slides tall */\n.imageWrapLoading-u44TC .loadingPlaceholder-WgjEt {\n line-height: 1.4;\n}\n\n.loadingPlaceholder-WgjEt {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 16px;\n font-size: 12px;\n opacity: 0.85;\n text-align: center;\n}\n\n.caption-Gyu-O {\n margin-top: 0;\n padding: 8px 8px 0;\n font-size: 12px;\n line-height: 1.4;\n max-height: 120px;\n overflow-y: auto;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.captionResolution-M-v8p {\n font-size: 11px;\n line-height: 1.35;\n opacity: 0.82;\n word-break: break-word;\n white-space: normal;\n flex-shrink: 0;\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 0 2px;\n}\n\n.captionPrompt-7h9Ti {\n white-space: pre-wrap;\n word-break: break-word;\n min-height: 0;\n}\n\n.slideActions-NozRI {\n margin-top: 0;\n padding: 4px 8px 8px;\n box-sizing: border-box;\n}\n\n.slideActionsRow-BgPBF {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 12px;\n}\n\n.empty-gWZNI {\n padding: 24px;\n text-align: center;\n font-size: 13px;\n opacity: 0.65;\n}\n\n.refRow-OS1h2 {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n}\n\n.refBlock-U7qC- {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.refPickers-TzvKS {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: 8px;\n}\n\n.refThumbRow-KlFhj {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n align-items: center;\n flex: 1;\n min-width: 0;\n}\n\n.refThumb-d--qS {\n width: 44px;\n height: 44px;\n padding: 0;\n border: 2px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n cursor: pointer;\n background: #f5f5f5;\n background: var(--ant-color-fill-secondary, #f5f5f5);\n flex-shrink: 0;\n}\n\n.refThumb-d--qS img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n display: block;\n}\n\n.refThumb-d--qS:hover {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.refThumbSelected-UnCbx {\n border-color: #1677ff;\n border-color: var(--ant-color-primary, #1677ff);\n box-shadow: 0 0 0 1px #1677ff;\n box-shadow: 0 0 0 1px var(--ant-color-primary, #1677ff);\n}\n\n.refTooltipBody-EBAiR {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n max-width: 280px;\n}\n\n.refTooltipImg-cTuL2 {\n display: block;\n max-width: 260px;\n max-height: 200px;\n width: auto;\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n border-radius: 4px;\n}\n\n.refTooltipFileName-zHdZS {\n font-size: 11px;\n line-height: 1.3;\n text-align: center;\n word-break: break-word;\n max-width: 260px;\n opacity: 0.92;\n}\n\n.refNoneBtn-HqYhy {\n box-sizing: border-box;\n min-width: 52px;\n max-width: 72px;\n height: 44px;\n padding: 2px 6px;\n border: 2px solid transparent;\n border-radius: 6px;\n cursor: pointer;\n background: #f5f5f5;\n background: var(--ant-color-fill-secondary, #f5f5f5);\n font-size: 10px;\n line-height: 1.15;\n color: rgba(0, 0, 0, 0.88);\n color: var(--ant-color-text, rgba(0, 0, 0, 0.88));\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n}\n\n.refNoneBtn-HqYhy:hover:not(:disabled) {\n border-color: #91caff;\n border-color: var(--ant-color-primary-border-hover, #91caff);\n}\n\n.refNoneBtn-HqYhy:disabled {\n cursor: not-allowed;\n opacity: 0.45;\n}\n\n.refSubLabel-clSBt {\n font-size: 11px;\n opacity: 0.75;\n margin-bottom: 2px;\n}\n";
|
|
51101
51531
|
styleInject(css_248z);
|
|
51102
51532
|
|
|
51103
51533
|
function GalleryThumbStrip(_ref) {
|
|
@@ -51200,8 +51630,8 @@ function saveGallery(key, entries) {
|
|
|
51200
51630
|
}
|
|
51201
51631
|
}
|
|
51202
51632
|
|
|
51203
|
-
function ownKeys$
|
|
51204
|
-
function _objectSpread$
|
|
51633
|
+
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; }
|
|
51634
|
+
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; }
|
|
51205
51635
|
var aiImageTester = promptAndAiTesterOptions.aiImageTester;
|
|
51206
51636
|
function inferEngineForImageModel(model) {
|
|
51207
51637
|
var m = model.toLowerCase();
|
|
@@ -51230,6 +51660,12 @@ function galleryResolutionCaption(model, resolutionApiValue, t) {
|
|
|
51230
51660
|
}
|
|
51231
51661
|
return t('backoffice.tools.aiPromptImageTester.resolutionNotSentWithImage');
|
|
51232
51662
|
}
|
|
51663
|
+
function galleryTemperatureCaption(engine, temperature, t) {
|
|
51664
|
+
if (typeof temperature === 'number' && Number.isFinite(temperature)) {
|
|
51665
|
+
return String(temperature);
|
|
51666
|
+
}
|
|
51667
|
+
return t('backoffice.tools.aiPromptImageTester.galleryTemperatureApiDefault', 'API default (typically 1)');
|
|
51668
|
+
}
|
|
51233
51669
|
function resolvePromptText(data, promptSource) {
|
|
51234
51670
|
var _row$prompt;
|
|
51235
51671
|
if (promptSource === '__default') {
|
|
@@ -51310,7 +51746,8 @@ function finalizeGalleryItems(items) {
|
|
|
51310
51746
|
promptText: i.promptText,
|
|
51311
51747
|
startedAt: i.startedAt,
|
|
51312
51748
|
createdAt: i.createdAt,
|
|
51313
|
-
resolutionCaption: i.resolutionCaption
|
|
51749
|
+
resolutionCaption: i.resolutionCaption,
|
|
51750
|
+
temperatureCaption: i.temperatureCaption
|
|
51314
51751
|
};
|
|
51315
51752
|
});
|
|
51316
51753
|
var pruned = pruneGallery(readyEntries);
|
|
@@ -51321,7 +51758,8 @@ function finalizeGalleryItems(items) {
|
|
|
51321
51758
|
promptText: e.promptText,
|
|
51322
51759
|
startedAt: typeof e.startedAt === 'number' ? e.startedAt : e.createdAt,
|
|
51323
51760
|
createdAt: e.createdAt,
|
|
51324
|
-
resolutionCaption: typeof e.resolutionCaption === 'string' ? e.resolutionCaption : ''
|
|
51761
|
+
resolutionCaption: typeof e.resolutionCaption === 'string' ? e.resolutionCaption : '',
|
|
51762
|
+
temperatureCaption: typeof e.temperatureCaption === 'string' ? e.temperatureCaption : ''
|
|
51325
51763
|
};
|
|
51326
51764
|
});
|
|
51327
51765
|
return sortGalleryByGenerationOrder([].concat(_toConsumableArray(pending), _toConsumableArray(readyItems)));
|
|
@@ -51334,14 +51772,17 @@ function persistGalleryToStorage(storageKey, items) {
|
|
|
51334
51772
|
promptText = _ref2.promptText,
|
|
51335
51773
|
startedAt = _ref2.startedAt,
|
|
51336
51774
|
createdAt = _ref2.createdAt,
|
|
51337
|
-
resolutionCaption = _ref2.resolutionCaption
|
|
51338
|
-
|
|
51775
|
+
resolutionCaption = _ref2.resolutionCaption,
|
|
51776
|
+
temperatureCaption = _ref2.temperatureCaption;
|
|
51777
|
+
return _objectSpread$5(_objectSpread$5({
|
|
51339
51778
|
imageUrl: imageUrl,
|
|
51340
51779
|
promptText: promptText,
|
|
51341
51780
|
createdAt: createdAt,
|
|
51342
51781
|
startedAt: startedAt
|
|
51343
51782
|
}, resolutionCaption ? {
|
|
51344
51783
|
resolutionCaption: resolutionCaption
|
|
51784
|
+
} : {}), temperatureCaption ? {
|
|
51785
|
+
temperatureCaption: temperatureCaption
|
|
51345
51786
|
} : {});
|
|
51346
51787
|
});
|
|
51347
51788
|
saveGallery(storageKey, ready);
|
|
@@ -51402,9 +51843,18 @@ function MainGallery(_ref) {
|
|
|
51402
51843
|
})
|
|
51403
51844
|
}), /*#__PURE__*/jsxs("div", {
|
|
51404
51845
|
className: caption,
|
|
51405
|
-
children: [item.resolutionCaption ? /*#__PURE__*/jsxs("div", {
|
|
51846
|
+
children: [item.resolutionCaption || item.temperatureCaption ? /*#__PURE__*/jsxs("div", {
|
|
51406
51847
|
className: captionResolution,
|
|
51407
|
-
children: [
|
|
51848
|
+
children: [item.resolutionCaption ? /*#__PURE__*/jsxs("span", {
|
|
51849
|
+
children: [t('backoffice.tools.aiPromptImageTester.galleryResolutionPrefix'), ": ", item.resolutionCaption]
|
|
51850
|
+
}) : null, item.temperatureCaption ? /*#__PURE__*/jsxs("span", {
|
|
51851
|
+
children: [item.resolutionCaption ? /*#__PURE__*/jsx("span", {
|
|
51852
|
+
"aria-hidden": true,
|
|
51853
|
+
children: " \xB7 "
|
|
51854
|
+
}) : null, t('backoffice.tools.aiPromptImageTester.galleryTemperaturePrefix', {
|
|
51855
|
+
defaultValue: 'Temperature'
|
|
51856
|
+
}), ":", ' ', item.temperatureCaption]
|
|
51857
|
+
}) : null]
|
|
51408
51858
|
}) : null, /*#__PURE__*/jsx("div", {
|
|
51409
51859
|
className: captionPrompt,
|
|
51410
51860
|
children: item.promptText
|
|
@@ -51446,6 +51896,8 @@ function MainGallery(_ref) {
|
|
|
51446
51896
|
});
|
|
51447
51897
|
}
|
|
51448
51898
|
|
|
51899
|
+
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; }
|
|
51900
|
+
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; }
|
|
51449
51901
|
function TesterControls(_ref) {
|
|
51450
51902
|
var engine = _ref.engine,
|
|
51451
51903
|
setEngine = _ref.setEngine,
|
|
@@ -51454,6 +51906,8 @@ function TesterControls(_ref) {
|
|
|
51454
51906
|
resolution = _ref.resolution,
|
|
51455
51907
|
setResolution = _ref.setResolution,
|
|
51456
51908
|
resolutionEnabled = _ref.resolutionEnabled,
|
|
51909
|
+
temperature = _ref.temperature,
|
|
51910
|
+
setTemperature = _ref.setTemperature,
|
|
51457
51911
|
promptSource = _ref.promptSource,
|
|
51458
51912
|
setPromptSource = _ref.setPromptSource,
|
|
51459
51913
|
promptOptions = _ref.promptOptions,
|
|
@@ -51468,6 +51922,8 @@ function TesterControls(_ref) {
|
|
|
51468
51922
|
engines = _promptAndAiTesterOpt.engines,
|
|
51469
51923
|
models = _promptAndAiTesterOpt.models,
|
|
51470
51924
|
resolutionOptions = _promptAndAiTesterOpt.resolutionOptions;
|
|
51925
|
+
var gemini = engine === 'gemini';
|
|
51926
|
+
var hasTemperature = typeof temperature === 'number' && Number.isFinite(temperature);
|
|
51471
51927
|
return /*#__PURE__*/jsxs("div", {
|
|
51472
51928
|
className: controls,
|
|
51473
51929
|
children: [/*#__PURE__*/jsxs("div", {
|
|
@@ -51532,6 +51988,47 @@ function TesterControls(_ref) {
|
|
|
51532
51988
|
width: '100%'
|
|
51533
51989
|
}
|
|
51534
51990
|
})]
|
|
51991
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
51992
|
+
className: row,
|
|
51993
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
51994
|
+
className: label,
|
|
51995
|
+
children: t('backoffice.tools.aiPromptImageTester.temperature', {
|
|
51996
|
+
defaultValue: 'Temperature'
|
|
51997
|
+
})
|
|
51998
|
+
}), !hasTemperature ? /*#__PURE__*/jsx("div", {
|
|
51999
|
+
className: temperatureHint,
|
|
52000
|
+
children: t('backoffice.tools.aiPromptImageTester.temperatureUnsetHint', {
|
|
52001
|
+
defaultValue: 'Not set (API default, typically 1). Move the slider to override.'
|
|
52002
|
+
})
|
|
52003
|
+
}) : null, /*#__PURE__*/jsx(Slider$1, _objectSpread$4(_objectSpread$4({
|
|
52004
|
+
disabled: !gemini,
|
|
52005
|
+
min: 0,
|
|
52006
|
+
max: 2,
|
|
52007
|
+
step: 0.05
|
|
52008
|
+
}, hasTemperature ? {
|
|
52009
|
+
value: temperature
|
|
52010
|
+
} : {}), {}, {
|
|
52011
|
+
onChange: function onChange(v) {
|
|
52012
|
+
return setTemperature(v);
|
|
52013
|
+
},
|
|
52014
|
+
style: {
|
|
52015
|
+
marginBottom: hasTemperature && gemini ? 0 : undefined
|
|
52016
|
+
}
|
|
52017
|
+
}), gemini && hasTemperature ? 'set' : 'unset'), gemini && hasTemperature ? /*#__PURE__*/jsx(Button$1, {
|
|
52018
|
+
type: "link",
|
|
52019
|
+
size: "small",
|
|
52020
|
+
style: {
|
|
52021
|
+
padding: 0,
|
|
52022
|
+
height: 'auto',
|
|
52023
|
+
alignSelf: 'flex-start'
|
|
52024
|
+
},
|
|
52025
|
+
onClick: function onClick() {
|
|
52026
|
+
return setTemperature(undefined);
|
|
52027
|
+
},
|
|
52028
|
+
children: t('backoffice.tools.aiPromptImageTester.temperatureClear', {
|
|
52029
|
+
defaultValue: 'Use API default'
|
|
52030
|
+
})
|
|
52031
|
+
}) : null]
|
|
51535
52032
|
}), /*#__PURE__*/jsxs("div", {
|
|
51536
52033
|
className: row,
|
|
51537
52034
|
children: [/*#__PURE__*/jsx("span", {
|
|
@@ -51855,7 +52352,7 @@ function GalleryFullscreenContent(_ref) {
|
|
|
51855
52352
|
},
|
|
51856
52353
|
children: browserFullscreen ? t('backoffice.tools.aiPromptImageTester.browserFullscreenExit') : t('backoffice.tools.aiPromptImageTester.fullscreen')
|
|
51857
52354
|
})]
|
|
51858
|
-
}), current.resolutionCaption ? /*#__PURE__*/jsxs("div", {
|
|
52355
|
+
}), current.resolutionCaption || current.temperatureCaption ? /*#__PURE__*/jsxs("div", {
|
|
51859
52356
|
style: {
|
|
51860
52357
|
flexShrink: 0,
|
|
51861
52358
|
fontSize: 12,
|
|
@@ -51864,7 +52361,16 @@ function GalleryFullscreenContent(_ref) {
|
|
|
51864
52361
|
marginBottom: 10,
|
|
51865
52362
|
wordBreak: 'break-word'
|
|
51866
52363
|
},
|
|
51867
|
-
children: [
|
|
52364
|
+
children: [current.resolutionCaption ? /*#__PURE__*/jsxs("span", {
|
|
52365
|
+
children: [t('backoffice.tools.aiPromptImageTester.galleryResolutionPrefix'), ": ", current.resolutionCaption]
|
|
52366
|
+
}) : null, current.temperatureCaption ? /*#__PURE__*/jsxs("span", {
|
|
52367
|
+
children: [current.resolutionCaption ? /*#__PURE__*/jsx("span", {
|
|
52368
|
+
"aria-hidden": true,
|
|
52369
|
+
children: " \xB7 "
|
|
52370
|
+
}) : null, t('backoffice.tools.aiPromptImageTester.galleryTemperaturePrefix', {
|
|
52371
|
+
defaultValue: 'Temperature'
|
|
52372
|
+
}), ":", ' ', current.temperatureCaption]
|
|
52373
|
+
}) : null]
|
|
51868
52374
|
}) : null, /*#__PURE__*/jsx("div", {
|
|
51869
52375
|
style: {
|
|
51870
52376
|
fontSize: 14,
|
|
@@ -51991,18 +52497,25 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
51991
52497
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
51992
52498
|
resolution = _useState10[0],
|
|
51993
52499
|
setResolution = _useState10[1];
|
|
51994
|
-
var _useState11 = useState(
|
|
52500
|
+
var _useState11 = useState(function () {
|
|
52501
|
+
var v = data.temperature;
|
|
52502
|
+
return typeof v === 'number' && Number.isFinite(v) ? v : undefined;
|
|
52503
|
+
}),
|
|
51995
52504
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
51996
|
-
|
|
51997
|
-
|
|
51998
|
-
var _useState13 = useState(
|
|
52505
|
+
temperature = _useState12[0],
|
|
52506
|
+
setTemperature = _useState12[1];
|
|
52507
|
+
var _useState13 = useState('__default'),
|
|
51999
52508
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
52000
|
-
|
|
52001
|
-
|
|
52002
|
-
var _useState15 = useState(
|
|
52509
|
+
promptSource = _useState14[0],
|
|
52510
|
+
setPromptSource = _useState14[1];
|
|
52511
|
+
var _useState15 = useState([]),
|
|
52003
52512
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
52004
|
-
|
|
52005
|
-
|
|
52513
|
+
refCache = _useState16[0],
|
|
52514
|
+
setRefCache = _useState16[1];
|
|
52515
|
+
var _useState17 = useState(null),
|
|
52516
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
52517
|
+
selectedRefIndex = _useState18[0],
|
|
52518
|
+
setSelectedRefIndex = _useState18[1];
|
|
52006
52519
|
var openGeneratedImageFullscreen = useCallback(function (initialReadyIndex) {
|
|
52007
52520
|
var slides = galleryItems.filter(function (i) {
|
|
52008
52521
|
return i.kind === 'ready';
|
|
@@ -52011,13 +52524,15 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52011
52524
|
promptText = _ref.promptText,
|
|
52012
52525
|
startedAt = _ref.startedAt,
|
|
52013
52526
|
createdAt = _ref.createdAt,
|
|
52014
|
-
resolutionCaption = _ref.resolutionCaption
|
|
52527
|
+
resolutionCaption = _ref.resolutionCaption,
|
|
52528
|
+
temperatureCaption = _ref.temperatureCaption;
|
|
52015
52529
|
return {
|
|
52016
52530
|
imageUrl: imageUrl,
|
|
52017
52531
|
promptText: promptText,
|
|
52018
52532
|
startedAt: startedAt,
|
|
52019
52533
|
createdAt: createdAt,
|
|
52020
|
-
resolutionCaption: resolutionCaption
|
|
52534
|
+
resolutionCaption: resolutionCaption,
|
|
52535
|
+
temperatureCaption: temperatureCaption
|
|
52021
52536
|
};
|
|
52022
52537
|
});
|
|
52023
52538
|
if (slides.length === 0) return;
|
|
@@ -52040,10 +52555,15 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52040
52555
|
promptText: e.promptText,
|
|
52041
52556
|
startedAt: typeof e.startedAt === 'number' ? e.startedAt : e.createdAt,
|
|
52042
52557
|
createdAt: e.createdAt,
|
|
52043
|
-
resolutionCaption: typeof e.resolutionCaption === 'string' ? e.resolutionCaption : ''
|
|
52558
|
+
resolutionCaption: typeof e.resolutionCaption === 'string' ? e.resolutionCaption : '',
|
|
52559
|
+
temperatureCaption: typeof e.temperatureCaption === 'string' ? e.temperatureCaption : ''
|
|
52044
52560
|
};
|
|
52045
52561
|
})));
|
|
52046
52562
|
}, [storageKey]);
|
|
52563
|
+
useEffect(function () {
|
|
52564
|
+
var v = data.temperature;
|
|
52565
|
+
if (typeof v === 'number' && Number.isFinite(v)) setTemperature(v);else setTemperature(undefined);
|
|
52566
|
+
}, [data.temperature]);
|
|
52047
52567
|
useEffect(function () {
|
|
52048
52568
|
var loaded = loadReferenceCache();
|
|
52049
52569
|
setRefCache(loaded);
|
|
@@ -52151,6 +52671,7 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52151
52671
|
}
|
|
52152
52672
|
var requestId = typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : "r-".concat(Date.now(), "-").concat(Math.random().toString(36).slice(2, 11));
|
|
52153
52673
|
var resolutionCaption = galleryResolutionCaption(model, resolution, t);
|
|
52674
|
+
var temperatureCaption = galleryTemperatureCaption(engine, temperature, t);
|
|
52154
52675
|
var startedAt = Date.now();
|
|
52155
52676
|
setGalleryItems(function (prev) {
|
|
52156
52677
|
return sortGalleryByGenerationOrder([{
|
|
@@ -52158,7 +52679,8 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52158
52679
|
requestId: requestId,
|
|
52159
52680
|
promptText: promptText,
|
|
52160
52681
|
startedAt: startedAt,
|
|
52161
|
-
resolutionCaption: resolutionCaption
|
|
52682
|
+
resolutionCaption: resolutionCaption,
|
|
52683
|
+
temperatureCaption: temperatureCaption
|
|
52162
52684
|
}].concat(_toConsumableArray(prev)));
|
|
52163
52685
|
});
|
|
52164
52686
|
var body = {
|
|
@@ -52224,7 +52746,8 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52224
52746
|
promptText: item.promptText,
|
|
52225
52747
|
startedAt: item.startedAt,
|
|
52226
52748
|
createdAt: Date.now(),
|
|
52227
|
-
resolutionCaption: item.resolutionCaption
|
|
52749
|
+
resolutionCaption: item.resolutionCaption,
|
|
52750
|
+
temperatureCaption: item.temperatureCaption
|
|
52228
52751
|
} : item;
|
|
52229
52752
|
});
|
|
52230
52753
|
var next = finalizeGalleryItems(replaced);
|
|
@@ -52253,7 +52776,7 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52253
52776
|
}
|
|
52254
52777
|
}, _callee, null, [[0, 20, 24, 27]]);
|
|
52255
52778
|
}))();
|
|
52256
|
-
}, [activeReferenceDataUrls, data, engine, model, promptSource, resolution, rootStore, storageKey, t]);
|
|
52779
|
+
}, [activeReferenceDataUrls, data, engine, model, promptSource, resolution, temperature, rootStore, storageKey, t]);
|
|
52257
52780
|
var resolutionEnabled = model === aiImageTester.modelWithResolutionSelect;
|
|
52258
52781
|
var setModelAndSyncEngine = useCallback(function (m) {
|
|
52259
52782
|
setModel(m);
|
|
@@ -52272,6 +52795,8 @@ function useAiPromptImageTester(data, openFullscreen) {
|
|
|
52272
52795
|
resolution: resolution,
|
|
52273
52796
|
setResolution: setResolution,
|
|
52274
52797
|
resolutionEnabled: resolutionEnabled,
|
|
52798
|
+
temperature: temperature,
|
|
52799
|
+
setTemperature: setTemperature,
|
|
52275
52800
|
promptSource: promptSource,
|
|
52276
52801
|
setPromptSource: setPromptSource,
|
|
52277
52802
|
promptOptions: promptOptions,
|
|
@@ -52303,6 +52828,8 @@ var AiPromptImageTester = observer(function (_ref) {
|
|
|
52303
52828
|
resolution = _useAiPromptImageTest.resolution,
|
|
52304
52829
|
setResolution = _useAiPromptImageTest.setResolution,
|
|
52305
52830
|
resolutionEnabled = _useAiPromptImageTest.resolutionEnabled,
|
|
52831
|
+
temperature = _useAiPromptImageTest.temperature,
|
|
52832
|
+
setTemperature = _useAiPromptImageTest.setTemperature,
|
|
52306
52833
|
promptSource = _useAiPromptImageTest.promptSource,
|
|
52307
52834
|
setPromptSource = _useAiPromptImageTest.setPromptSource,
|
|
52308
52835
|
promptOptions = _useAiPromptImageTest.promptOptions,
|
|
@@ -52327,6 +52854,8 @@ var AiPromptImageTester = observer(function (_ref) {
|
|
|
52327
52854
|
resolution: resolution,
|
|
52328
52855
|
setResolution: setResolution,
|
|
52329
52856
|
resolutionEnabled: resolutionEnabled,
|
|
52857
|
+
temperature: temperature,
|
|
52858
|
+
setTemperature: setTemperature,
|
|
52330
52859
|
promptSource: promptSource,
|
|
52331
52860
|
setPromptSource: setPromptSource,
|
|
52332
52861
|
promptOptions: promptOptions,
|