@crystaldesign/diva-backoffice 25.8.0-beta.21 → 25.8.0-beta.22
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 +378 -185
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +8 -6
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +2 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -13316,8 +13316,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13316
13316
|
var navOverlay = "nav-overlay-rKJNC";
|
13317
13317
|
var navSettings = "nav-settings-82cjv";
|
13318
13318
|
var menuLabel = "menu-label-4dXQk";
|
13319
|
-
var css_248z$
|
13320
|
-
styleInject(css_248z$
|
13319
|
+
var css_248z$y = ".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";
|
13320
|
+
styleInject(css_248z$y);
|
13321
13321
|
|
13322
13322
|
function MenuLabel (_ref) {
|
13323
13323
|
var disabled = _ref.disabled,
|
@@ -17272,8 +17272,8 @@ var Result = function Result(_ref) {
|
|
17272
17272
|
|
17273
17273
|
var success = "success-tRJ7j";
|
17274
17274
|
var error = "error-MtAFB";
|
17275
|
-
var css_248z$
|
17276
|
-
styleInject(css_248z$
|
17275
|
+
var css_248z$x = ".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";
|
17276
|
+
styleInject(css_248z$x);
|
17277
17277
|
|
17278
17278
|
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";
|
17279
17279
|
|
@@ -17335,10 +17335,10 @@ var CustomButton = function CustomButton(_ref) {
|
|
17335
17335
|
};
|
17336
17336
|
var CustomButton$1 = observer(CustomButton);
|
17337
17337
|
|
17338
|
-
var wrapper$
|
17338
|
+
var wrapper$6 = "wrapper-GVe2h";
|
17339
17339
|
var buttonGroup = "button-group-GYt-T";
|
17340
|
-
var css_248z$
|
17341
|
-
styleInject(css_248z$
|
17340
|
+
var css_248z$w = ".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";
|
17341
|
+
styleInject(css_248z$w);
|
17342
17342
|
|
17343
17343
|
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; }
|
17344
17344
|
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; }
|
@@ -17352,7 +17352,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17352
17352
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17353
17353
|
style: _objectSpread$T({}, item.style),
|
17354
17354
|
children: /*#__PURE__*/jsxs("div", {
|
17355
|
-
className: wrapper$
|
17355
|
+
className: wrapper$6,
|
17356
17356
|
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) {
|
17357
17357
|
return /*#__PURE__*/jsx("div", {
|
17358
17358
|
className: buttonGroup,
|
@@ -17614,9 +17614,9 @@ function parseReturnData(options, selectMapping) {
|
|
17614
17614
|
return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
|
17615
17615
|
}
|
17616
17616
|
|
17617
|
-
var wrapper$
|
17618
|
-
var css_248z$
|
17619
|
-
styleInject(css_248z$
|
17617
|
+
var wrapper$5 = "wrapper-4xyke";
|
17618
|
+
var css_248z$v = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17619
|
+
styleInject(css_248z$v);
|
17620
17620
|
|
17621
17621
|
var _excluded$3 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17622
17622
|
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; }
|
@@ -17646,7 +17646,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17646
17646
|
});
|
17647
17647
|
return /*#__PURE__*/jsxs("div", {
|
17648
17648
|
ref: ref,
|
17649
|
-
className: classnames(title ? wrapper$
|
17649
|
+
className: classnames(title ? wrapper$5 : undefined),
|
17650
17650
|
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17651
17651
|
showSearch: search,
|
17652
17652
|
loading: state.loading,
|
@@ -18500,8 +18500,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18500
18500
|
var customSelectOption = "custom-select-option-dUA7N";
|
18501
18501
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18502
18502
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18503
|
-
var css_248z$
|
18504
|
-
styleInject(css_248z$
|
18503
|
+
var css_248z$u = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
18504
|
+
styleInject(css_248z$u);
|
18505
18505
|
|
18506
18506
|
var Selector = function Selector(_ref) {
|
18507
18507
|
var items = _ref.items,
|
@@ -19045,8 +19045,8 @@ function useSelectData (_ref) {
|
|
19045
19045
|
};
|
19046
19046
|
}
|
19047
19047
|
|
19048
|
-
var css_248z$
|
19049
|
-
styleInject(css_248z$
|
19048
|
+
var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
19049
|
+
styleInject(css_248z$t);
|
19050
19050
|
|
19051
19051
|
var SelectWrapper = function SelectWrapper(_ref) {
|
19052
19052
|
var onChange = _ref.onChange,
|
@@ -19125,11 +19125,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
19125
19125
|
};
|
19126
19126
|
var Select = observer(SelectWrapper);
|
19127
19127
|
|
19128
|
-
var wrapper$
|
19128
|
+
var wrapper$4 = "wrapper-WStAk";
|
19129
19129
|
var headerWrapper = "header-wrapper-gWQuH";
|
19130
19130
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
19131
|
-
var css_248z$
|
19132
|
-
styleInject(css_248z$
|
19131
|
+
var css_248z$s = ".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";
|
19132
|
+
styleInject(css_248z$s);
|
19133
19133
|
|
19134
19134
|
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; }
|
19135
19135
|
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; }
|
@@ -19333,7 +19333,7 @@ var Translation = function Translation(_ref) {
|
|
19333
19333
|
_onChange = _useTranslationHook.onChange,
|
19334
19334
|
autoTranslate = _useTranslationHook.autoTranslate;
|
19335
19335
|
return /*#__PURE__*/jsxs("div", {
|
19336
|
-
className: wrapper$
|
19336
|
+
className: wrapper$4,
|
19337
19337
|
children: [/*#__PURE__*/jsxs("div", {
|
19338
19338
|
className: headerWrapper,
|
19339
19339
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -21175,8 +21175,8 @@ var skeleton = "skeleton--xCI0";
|
|
21175
21175
|
var filterField = "filterField-1kU1O";
|
21176
21176
|
var parentScroll = "parent-scroll-GmaL9";
|
21177
21177
|
var parent = "parent-NZJ3S";
|
21178
|
-
var css_248z$
|
21179
|
-
styleInject(css_248z$
|
21178
|
+
var css_248z$r = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
|
21179
|
+
styleInject(css_248z$r);
|
21180
21180
|
|
21181
21181
|
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; }
|
21182
21182
|
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; }
|
@@ -22421,8 +22421,8 @@ var newscroller = "newscroller-INKeD";
|
|
22421
22421
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22422
22422
|
var itemTitle = "item-title--BTvC";
|
22423
22423
|
var itemDesc = "item-desc-DBiiF";
|
22424
|
-
var css_248z$
|
22425
|
-
styleInject(css_248z$
|
22424
|
+
var css_248z$q = ".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";
|
22425
|
+
styleInject(css_248z$q);
|
22426
22426
|
|
22427
22427
|
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; }
|
22428
22428
|
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; }
|
@@ -23834,8 +23834,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23834
23834
|
var preview = "preview-9wK81";
|
23835
23835
|
var previewButton = "preview-button-vupuG";
|
23836
23836
|
var editButton = "edit-button-m6r3M";
|
23837
|
-
var css_248z$
|
23838
|
-
styleInject(css_248z$
|
23837
|
+
var css_248z$p = ".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";
|
23838
|
+
styleInject(css_248z$p);
|
23839
23839
|
|
23840
23840
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23841
23841
|
var id = _ref.id,
|
@@ -24614,19 +24614,19 @@ function reducer(state, action) {
|
|
24614
24614
|
|
24615
24615
|
var grid = "grid-sGemi";
|
24616
24616
|
var textWrapper = "text-wrapper-xsPXE";
|
24617
|
-
var css_248z$
|
24618
|
-
styleInject(css_248z$
|
24617
|
+
var css_248z$o = ".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";
|
24618
|
+
styleInject(css_248z$o);
|
24619
24619
|
|
24620
|
-
var wrapper$
|
24620
|
+
var wrapper$3 = "wrapper-p-gR3";
|
24621
24621
|
var container$6 = "container-DoZqe";
|
24622
|
-
var css_248z$
|
24623
|
-
styleInject(css_248z$
|
24622
|
+
var css_248z$n = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24623
|
+
styleInject(css_248z$n);
|
24624
24624
|
|
24625
24625
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24626
24626
|
var _useTranslation = useTranslation(),
|
24627
24627
|
t = _useTranslation.t;
|
24628
24628
|
return /*#__PURE__*/jsx("div", {
|
24629
|
-
className: wrapper$
|
24629
|
+
className: wrapper$3,
|
24630
24630
|
children: /*#__PURE__*/jsx(Card, {
|
24631
24631
|
title: t('backoffice.tooltipinfo.useroverview'),
|
24632
24632
|
styles: {
|
@@ -24823,8 +24823,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24823
24823
|
var small = "small-NY1-k";
|
24824
24824
|
var medium = "medium---QcO";
|
24825
24825
|
var big = "big--E39S";
|
24826
|
-
var css_248z$
|
24827
|
-
styleInject(css_248z$
|
24826
|
+
var css_248z$m = ".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";
|
24827
|
+
styleInject(css_248z$m);
|
24828
24828
|
|
24829
24829
|
var MediaUpload = observer(function (_ref) {
|
24830
24830
|
var id = _ref.id;
|
@@ -24950,8 +24950,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24950
24950
|
var checkbox = "checkbox-H7R-w";
|
24951
24951
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24952
24952
|
var contentWidth = "content-width-hGyVI";
|
24953
|
-
var css_248z$
|
24954
|
-
styleInject(css_248z$
|
24953
|
+
var css_248z$l = ".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";
|
24954
|
+
styleInject(css_248z$l);
|
24955
24955
|
|
24956
24956
|
function BooleanCell (_ref) {
|
24957
24957
|
var children = _ref.children,
|
@@ -25940,8 +25940,8 @@ function useAGHistogram (_ref) {
|
|
25940
25940
|
var container$5 = "container-2r-OJ";
|
25941
25941
|
var column1 = "column1-9viTK";
|
25942
25942
|
var spinner = "spinner-00VcK";
|
25943
|
-
var css_248z$
|
25944
|
-
styleInject(css_248z$
|
25943
|
+
var css_248z$k = ".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";
|
25944
|
+
styleInject(css_248z$k);
|
25945
25945
|
|
25946
25946
|
var Panel = Collapse.Panel;
|
25947
25947
|
function AGHistogram (_ref) {
|
@@ -28919,8 +28919,8 @@ var loader = "loader-LaXZy";
|
|
28919
28919
|
var flex = "flex-yQdda";
|
28920
28920
|
var bar = "bar-Y663f";
|
28921
28921
|
var value = "value-FCA-6";
|
28922
|
-
var css_248z$
|
28923
|
-
styleInject(css_248z$
|
28922
|
+
var css_248z$j = ".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";
|
28923
|
+
styleInject(css_248z$j);
|
28924
28924
|
|
28925
28925
|
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; }
|
28926
28926
|
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; }
|
@@ -29865,8 +29865,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29865
29865
|
var supplier = "supplier-8sm0I";
|
29866
29866
|
var dealer = "dealer-xgnku";
|
29867
29867
|
var association = "association-b8uVW";
|
29868
|
-
var css_248z$
|
29869
|
-
styleInject(css_248z$
|
29868
|
+
var css_248z$i = ".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";
|
29869
|
+
styleInject(css_248z$i);
|
29870
29870
|
|
29871
29871
|
function getColorClass(data) {
|
29872
29872
|
switch (data.type) {
|
@@ -30099,8 +30099,8 @@ var openClass = "open-class--gGXs";
|
|
30099
30099
|
var breadcrumb = "breadcrumb-Z0VvH";
|
30100
30100
|
var selected = "selected-w-sfW";
|
30101
30101
|
var disabled$2 = "disabled-0nado";
|
30102
|
-
var css_248z$
|
30103
|
-
styleInject(css_248z$
|
30102
|
+
var css_248z$h = ".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";
|
30103
|
+
styleInject(css_248z$h);
|
30104
30104
|
|
30105
30105
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
30106
30106
|
var open = _ref.open,
|
@@ -30133,8 +30133,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
30133
30133
|
|
30134
30134
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
30135
30135
|
var toolbarLeft = "toolbar-left-X9WRo";
|
30136
|
-
var css_248z$
|
30137
|
-
styleInject(css_248z$
|
30136
|
+
var css_248z$g = ".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";
|
30137
|
+
styleInject(css_248z$g);
|
30138
30138
|
|
30139
30139
|
var Legend = function Legend(props) {
|
30140
30140
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -30188,8 +30188,8 @@ var Legend = function Legend(props) {
|
|
30188
30188
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
30189
30189
|
var mask = "mask-ssagp";
|
30190
30190
|
var transformWrapper = "transform-wrapper--8t0v";
|
30191
|
-
var css_248z$
|
30192
|
-
styleInject(css_248z$
|
30191
|
+
var css_248z$f = ".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";
|
30192
|
+
styleInject(css_248z$f);
|
30193
30193
|
|
30194
30194
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
30195
30195
|
var _children = _ref.children,
|
@@ -31095,6 +31095,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31095
31095
|
exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
|
31096
31096
|
exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
|
31097
31097
|
selectedSerie: undefined,
|
31098
|
+
selectedItem: undefined,
|
31098
31099
|
selectedFeature: undefined
|
31099
31100
|
};
|
31100
31101
|
return root.contextStore.getContext('enricher', initialState);
|
@@ -31106,6 +31107,11 @@ var useEnricherContext = function useEnricherContext() {
|
|
31106
31107
|
selectedSerie: serie
|
31107
31108
|
});
|
31108
31109
|
}, [root.contextStore]);
|
31110
|
+
var setSelectedItem = useCallback(function (item) {
|
31111
|
+
root.contextStore.updateContext('enricher', {
|
31112
|
+
selectedItem: item
|
31113
|
+
});
|
31114
|
+
}, [root.contextStore]);
|
31109
31115
|
var setSelectedFeature = useCallback(function (feature) {
|
31110
31116
|
root.contextStore.updateContext('enricher', {
|
31111
31117
|
selectedFeature: feature
|
@@ -31144,6 +31150,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31144
31150
|
viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
|
31145
31151
|
//if the package is not created in the current organization, it can only be viewed
|
31146
31152
|
selectedSerie: undefined,
|
31153
|
+
selectedItem: undefined,
|
31147
31154
|
selectedFeature: undefined,
|
31148
31155
|
lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
|
31149
31156
|
lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
|
@@ -31171,6 +31178,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31171
31178
|
// Return context + handlers
|
31172
31179
|
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
31173
31180
|
setSelectedSerie: setSelectedSerie,
|
31181
|
+
setSelectedItem: setSelectedItem,
|
31174
31182
|
setSelectedFeature: setSelectedFeature,
|
31175
31183
|
setSelectedPackage: setSelectedPackage
|
31176
31184
|
});
|
@@ -31220,6 +31228,9 @@ function useModule$1 (currentModules) {
|
|
31220
31228
|
organizationId = _useEnricherContext.organizationId,
|
31221
31229
|
selectedSerie = _useEnricherContext.selectedSerie,
|
31222
31230
|
selectedFeature = _useEnricherContext.selectedFeature,
|
31231
|
+
selectedItem = _useEnricherContext.selectedItem,
|
31232
|
+
setSelectedSerie = _useEnricherContext.setSelectedSerie,
|
31233
|
+
setSelectedItem = _useEnricherContext.setSelectedItem,
|
31223
31234
|
viewOnly = _useEnricherContext.viewOnly;
|
31224
31235
|
var location = useLocation();
|
31225
31236
|
var _useSearchParams = useSearchParams(),
|
@@ -31430,8 +31441,11 @@ function useModule$1 (currentModules) {
|
|
31430
31441
|
organizationId: organizationId,
|
31431
31442
|
apiConfig: root.configurationStore.apiConfig,
|
31432
31443
|
setSelectedPackage: setSelectedPackage,
|
31444
|
+
setSelectedSerie: setSelectedSerie,
|
31445
|
+
setSelectedItem: setSelectedItem,
|
31433
31446
|
selectedSerie: selectedSerie,
|
31434
31447
|
selectedFeature: selectedFeature,
|
31448
|
+
selectedItem: selectedItem,
|
31435
31449
|
viewOnly: viewOnly
|
31436
31450
|
};
|
31437
31451
|
}
|
@@ -31560,14 +31574,12 @@ var useTools = function useTools(_ref) {
|
|
31560
31574
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31561
31575
|
setSerie: setSerie,
|
31562
31576
|
setArticle: setArticle
|
31563
|
-
},
|
31564
|
-
initSerie:
|
31565
|
-
serieNo: serie.serieNo,
|
31566
|
-
serieId: serie._id
|
31567
|
-
}
|
31577
|
+
}, initSerie ? {
|
31578
|
+
initSerie: initSerie
|
31568
31579
|
} : {}) : isApi2 ? {
|
31569
31580
|
// open configurator for api2 package (configurator light)
|
31570
|
-
loadMask: true
|
31581
|
+
loadMask: true,
|
31582
|
+
initItem: item === null || item === void 0 ? void 0 : item.typeNo
|
31571
31583
|
} : _objectSpread$f({
|
31572
31584
|
// open configurator for idm package
|
31573
31585
|
useEnricherService: true,
|
@@ -31577,14 +31589,20 @@ var useTools = function useTools(_ref) {
|
|
31577
31589
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31578
31590
|
setSerie: setSerie,
|
31579
31591
|
setArticle: setArticle
|
31580
|
-
},
|
31581
|
-
initSerie:
|
31582
|
-
serieNo: serie.serieNo,
|
31583
|
-
serieId: serie._id
|
31584
|
-
}
|
31592
|
+
}, initSerie ? {
|
31593
|
+
initSerie: initSerie
|
31585
31594
|
} : {})
|
31586
31595
|
});
|
31587
31596
|
}, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
|
31597
|
+
var initSerie = useMemo(function () {
|
31598
|
+
if (serie) {
|
31599
|
+
return {
|
31600
|
+
serieNo: serie.serieNo,
|
31601
|
+
serieId: serie._id
|
31602
|
+
};
|
31603
|
+
}
|
31604
|
+
return undefined;
|
31605
|
+
}, [serie]);
|
31588
31606
|
useEffect(function () {
|
31589
31607
|
var _root$contentStore$ri;
|
31590
31608
|
var tools = [];
|
@@ -33370,20 +33388,53 @@ var RenamingTable = observer(function (_ref) {
|
|
33370
33388
|
packageId = _useModule.packageId,
|
33371
33389
|
apiConfig = _useModule.apiConfig,
|
33372
33390
|
selectedPackage = _useModule.selectedPackage,
|
33391
|
+
selectedItem = _useModule.selectedItem,
|
33392
|
+
setSelectedItem = _useModule.setSelectedItem,
|
33373
33393
|
selectedSerie = _useModule.selectedSerie,
|
33394
|
+
setSelectedSerie = _useModule.setSelectedSerie,
|
33374
33395
|
viewOnly = _useModule.viewOnly;
|
33375
33396
|
var baseConfiguration = useMemo(function () {
|
33376
33397
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t, viewOnly);
|
33377
33398
|
}, [selectedPackage, i18n.language]);
|
33378
|
-
useTools({
|
33379
|
-
|
33380
|
-
|
33381
|
-
|
33399
|
+
var _useTools = useTools({
|
33400
|
+
packageId: packageId,
|
33401
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
33402
|
+
setArticle: setSelectedItem,
|
33403
|
+
setSerie: setSelectedSerie,
|
33404
|
+
serie: selectedSerie,
|
33405
|
+
item: selectedItem
|
33406
|
+
}),
|
33407
|
+
updateConfigurator = _useTools.updateConfigurator;
|
33382
33408
|
var applicationData = useMemo(function () {
|
33383
33409
|
return {
|
33384
33410
|
packageId: packageId
|
33385
33411
|
};
|
33386
33412
|
}, [packageId]);
|
33413
|
+
var hooks = useMemo(function () {
|
33414
|
+
return {
|
33415
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
33416
|
+
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
33417
|
+
switch (type) {
|
33418
|
+
case 'features':
|
33419
|
+
updateConfigurator({
|
33420
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
33421
|
+
});
|
33422
|
+
break;
|
33423
|
+
case 'options':
|
33424
|
+
updateConfigurator({
|
33425
|
+
opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
|
33426
|
+
});
|
33427
|
+
break;
|
33428
|
+
case 'items':
|
33429
|
+
setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
|
33430
|
+
break;
|
33431
|
+
case 'series':
|
33432
|
+
setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
|
33433
|
+
break;
|
33434
|
+
}
|
33435
|
+
}
|
33436
|
+
};
|
33437
|
+
}, [updateConfigurator, type]);
|
33387
33438
|
var prevPreFilter = useRef();
|
33388
33439
|
var preFilter = useMemo(function () {
|
33389
33440
|
if (type === 'items' && selectedSerie) {
|
@@ -33453,7 +33504,8 @@ var RenamingTable = observer(function (_ref) {
|
|
33453
33504
|
gridId: 'renaming-grid_' + type,
|
33454
33505
|
applicationData: applicationData,
|
33455
33506
|
preFilter: preFilter,
|
33456
|
-
configuration: configuration
|
33507
|
+
configuration: configuration,
|
33508
|
+
hooks: hooks
|
33457
33509
|
})]
|
33458
33510
|
});
|
33459
33511
|
});
|
@@ -33936,11 +33988,44 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33936
33988
|
organizationId = _useModule.organizationId,
|
33937
33989
|
selectedPackage = _useModule.selectedPackage,
|
33938
33990
|
selectedSerie = _useModule.selectedSerie,
|
33991
|
+
setSelectedSerie = _useModule.setSelectedSerie,
|
33992
|
+
setSelectedItem = _useModule.setSelectedItem,
|
33993
|
+
selectedItem = _useModule.selectedItem,
|
33939
33994
|
viewOnly = _useModule.viewOnly;
|
33940
|
-
useTools({
|
33941
|
-
|
33942
|
-
|
33943
|
-
|
33995
|
+
var _useTools = useTools({
|
33996
|
+
packageId: packageId,
|
33997
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
33998
|
+
setArticle: setSelectedItem,
|
33999
|
+
setSerie: setSelectedSerie,
|
34000
|
+
serie: selectedSerie,
|
34001
|
+
item: selectedItem
|
34002
|
+
}),
|
34003
|
+
updateConfigurator = _useTools.updateConfigurator;
|
34004
|
+
var hooks = useMemo(function () {
|
34005
|
+
return {
|
34006
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
34007
|
+
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
34008
|
+
switch (type) {
|
34009
|
+
case 'efeatures':
|
34010
|
+
updateConfigurator({
|
34011
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
34012
|
+
});
|
34013
|
+
break;
|
34014
|
+
case 'eoptions':
|
34015
|
+
updateConfigurator({
|
34016
|
+
opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
|
34017
|
+
});
|
34018
|
+
break;
|
34019
|
+
case 'eitems':
|
34020
|
+
setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
|
34021
|
+
break;
|
34022
|
+
case 'eseries':
|
34023
|
+
setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
|
34024
|
+
break;
|
34025
|
+
}
|
34026
|
+
}
|
34027
|
+
};
|
34028
|
+
}, [updateConfigurator, type]);
|
33944
34029
|
var apiInterface = useMemo(function () {
|
33945
34030
|
var patchId = '${_id}';
|
33946
34031
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -34022,7 +34107,8 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34022
34107
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
34023
34108
|
gridId: 'crud-grid_exclusivity_' + type,
|
34024
34109
|
applicationData: applicationData,
|
34025
|
-
configuration: configuration
|
34110
|
+
configuration: configuration,
|
34111
|
+
hooks: hooks
|
34026
34112
|
})]
|
34027
34113
|
});
|
34028
34114
|
});
|
@@ -34590,8 +34676,8 @@ var space = "space-T5Mkd";
|
|
34590
34676
|
var input$1 = "input-SK-Fo";
|
34591
34677
|
var addButton$1 = "addButton-AVN8Y";
|
34592
34678
|
var helpText = "helpText-QYQQF";
|
34593
|
-
var css_248z$
|
34594
|
-
styleInject(css_248z$
|
34679
|
+
var css_248z$e = ".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";
|
34680
|
+
styleInject(css_248z$e);
|
34595
34681
|
|
34596
34682
|
function PriceFactorCellRenderer(props) {
|
34597
34683
|
var data = props.data,
|
@@ -34807,8 +34893,8 @@ var difference = "difference-xT9ZP";
|
|
34807
34893
|
var differencePositive = "differencePositive-hGhZO";
|
34808
34894
|
var differenceNegative = "differenceNegative-3CEZA";
|
34809
34895
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34810
|
-
var css_248z$
|
34811
|
-
styleInject(css_248z$
|
34896
|
+
var css_248z$d = ".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";
|
34897
|
+
styleInject(css_248z$d);
|
34812
34898
|
|
34813
34899
|
function PriceDisplayCellRenderer(props) {
|
34814
34900
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34898,11 +34984,10 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34898
34984
|
return priceFeatureGroups;
|
34899
34985
|
}
|
34900
34986
|
|
34901
|
-
var wrapper$3 = "wrapper-5t6RT";
|
34902
34987
|
var input = "input-leHam";
|
34903
34988
|
var disabled$1 = "disabled-Llkqu";
|
34904
|
-
var css_248z$
|
34905
|
-
styleInject(css_248z$
|
34989
|
+
var css_248z$c = ".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";
|
34990
|
+
styleInject(css_248z$c);
|
34906
34991
|
|
34907
34992
|
var _excluded = ["onSave", "value"];
|
34908
34993
|
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; }
|
@@ -34918,29 +35003,26 @@ function PriceFactorInput(_ref) {
|
|
34918
35003
|
useEffect(function () {
|
34919
35004
|
setInnerValue(value);
|
34920
35005
|
}, [value]);
|
34921
|
-
return /*#__PURE__*/
|
34922
|
-
|
34923
|
-
children:
|
34924
|
-
|
34925
|
-
children: /*#__PURE__*/jsx(
|
34926
|
-
|
34927
|
-
|
34928
|
-
|
34929
|
-
value
|
34930
|
-
|
34931
|
-
|
34932
|
-
|
34933
|
-
|
34934
|
-
}))
|
34935
|
-
})
|
34936
|
-
})]
|
35006
|
+
return /*#__PURE__*/jsx(Tooltip$1, {
|
35007
|
+
title: props.tooltip,
|
35008
|
+
children: /*#__PURE__*/jsx("div", {
|
35009
|
+
className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
|
35010
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
35011
|
+
isNotInAGGrid: true,
|
35012
|
+
value: innerValue,
|
35013
|
+
onSave: function onSave(data, value) {
|
35014
|
+
setInnerValue(value);
|
35015
|
+
return _onSave(data, value);
|
35016
|
+
}
|
35017
|
+
}))
|
35018
|
+
})
|
34937
35019
|
});
|
34938
35020
|
}
|
34939
35021
|
|
34940
35022
|
var inputHeader = "input-header--4KDP";
|
34941
35023
|
var factorInput = "factor-input-MX85Z";
|
34942
|
-
var css_248z$
|
34943
|
-
styleInject(css_248z$
|
35024
|
+
var css_248z$b = ".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";
|
35025
|
+
styleInject(css_248z$b);
|
34944
35026
|
|
34945
35027
|
function PriceFactorHeaderComponent(_ref) {
|
34946
35028
|
var onSave = _ref.onSave,
|
@@ -34979,6 +35061,28 @@ function PriceFactorHeaderComponent(_ref) {
|
|
34979
35061
|
});
|
34980
35062
|
}
|
34981
35063
|
|
35064
|
+
var root = "root-WJLKp";
|
35065
|
+
var contentWrapper$1 = "content-wrapper-Ki4Pt";
|
35066
|
+
var css_248z$a = ".root-WJLKp {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-Ki4Pt {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
|
35067
|
+
styleInject(css_248z$a);
|
35068
|
+
|
35069
|
+
function Setting(_ref) {
|
35070
|
+
var title = _ref.title,
|
35071
|
+
tooltip = _ref.tooltip,
|
35072
|
+
className = _ref.className,
|
35073
|
+
children = _ref.children;
|
35074
|
+
return /*#__PURE__*/jsxs("div", {
|
35075
|
+
className: classnames(root, className),
|
35076
|
+
children: [title, /*#__PURE__*/jsx(Tooltip$1, {
|
35077
|
+
title: tooltip,
|
35078
|
+
children: /*#__PURE__*/jsx("div", {
|
35079
|
+
className: contentWrapper$1,
|
35080
|
+
children: children
|
35081
|
+
})
|
35082
|
+
})]
|
35083
|
+
});
|
35084
|
+
}
|
35085
|
+
|
34982
35086
|
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; }
|
34983
35087
|
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; }
|
34984
35088
|
var Prices = observer(function (_ref) {
|
@@ -34991,8 +35095,14 @@ var Prices = observer(function (_ref) {
|
|
34991
35095
|
viewOnly = _ref.viewOnly;
|
34992
35096
|
var _useTranslation = useTranslation(),
|
34993
35097
|
t = _useTranslation.t;
|
35098
|
+
var root = useStore();
|
35099
|
+
var spreadsheetRef = useRef(null);
|
34994
35100
|
var _useEnricherContext = useEnricherContext(['pricelists']),
|
34995
35101
|
selectedSerie = _useEnricherContext.selectedSerie;
|
35102
|
+
var _useState = useState(false),
|
35103
|
+
_useState2 = _slicedToArray(_useState, 2),
|
35104
|
+
onlyManual = _useState2[0],
|
35105
|
+
setOnlyManual = _useState2[1];
|
34996
35106
|
var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
|
34997
35107
|
if (!selectedSerie) return;
|
34998
35108
|
|
@@ -35187,6 +35297,34 @@ var Prices = observer(function (_ref) {
|
|
35187
35297
|
seriePricefactors: newFactors
|
35188
35298
|
});
|
35189
35299
|
}, [pricelist, selectedSerie, setNodeDataValue]);
|
35300
|
+
function deleteManualPrices() {
|
35301
|
+
return _deleteManualPrices.apply(this, arguments);
|
35302
|
+
}
|
35303
|
+
function _deleteManualPrices() {
|
35304
|
+
_deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
35305
|
+
var _spreadsheetRef$curre;
|
35306
|
+
var api;
|
35307
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
35308
|
+
while (1) switch (_context8.prev = _context8.next) {
|
35309
|
+
case 0:
|
35310
|
+
api = new _default$d({
|
35311
|
+
type: 'AGGrid',
|
35312
|
+
apiInterface: {
|
35313
|
+
"delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
|
35314
|
+
}
|
35315
|
+
}, root);
|
35316
|
+
_context8.next = 3;
|
35317
|
+
return api["delete"]();
|
35318
|
+
case 3:
|
35319
|
+
(_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
|
35320
|
+
case 4:
|
35321
|
+
case "end":
|
35322
|
+
return _context8.stop();
|
35323
|
+
}
|
35324
|
+
}, _callee8);
|
35325
|
+
}));
|
35326
|
+
return _deleteManualPrices.apply(this, arguments);
|
35327
|
+
}
|
35190
35328
|
var applicationData = useMemo(function () {
|
35191
35329
|
return {
|
35192
35330
|
organizationId: organizationId,
|
@@ -35197,10 +35335,10 @@ var Prices = observer(function (_ref) {
|
|
35197
35335
|
}, [organizationId, packageId, selectedSerie, pricelist]);
|
35198
35336
|
var apiInterface = useMemo(function () {
|
35199
35337
|
return {
|
35200
|
-
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
|
35338
|
+
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices' + (onlyManual ? '?onlyManual=true' : ''),
|
35201
35339
|
update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
|
35202
35340
|
};
|
35203
|
-
}, []);
|
35341
|
+
}, [onlyManual]);
|
35204
35342
|
var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
|
35205
35343
|
var configuration = useMemo(function () {
|
35206
35344
|
var _priceFeatureGroups$m;
|
@@ -35458,26 +35596,55 @@ var Prices = observer(function (_ref) {
|
|
35458
35596
|
style: {
|
35459
35597
|
"float": 'right'
|
35460
35598
|
},
|
35461
|
-
children: [/*#__PURE__*/jsx(
|
35462
|
-
|
35599
|
+
children: [/*#__PURE__*/jsx(Setting, {
|
35600
|
+
title: t('backoffice.idmCatalog.prices.manual.title'),
|
35601
|
+
tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
|
35602
|
+
children: /*#__PURE__*/jsx(Switch, {
|
35603
|
+
checked: onlyManual,
|
35604
|
+
onChange: function onChange(e) {
|
35605
|
+
return setOnlyManual(e);
|
35606
|
+
},
|
35607
|
+
disabled: !selectedSerie,
|
35608
|
+
checkedChildren: 'Manuelle',
|
35609
|
+
unCheckedChildren: 'Alle'
|
35610
|
+
})
|
35611
|
+
}), /*#__PURE__*/jsx(Setting, {
|
35612
|
+
tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35613
|
+
children: /*#__PURE__*/jsx(Popconfirm, {
|
35614
|
+
rootClassName: "ag-custom-component-popup",
|
35615
|
+
title: t('backoffice.idmCatalog.prices.manual.delete.title'),
|
35616
|
+
description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35617
|
+
onConfirm: deleteManualPrices,
|
35618
|
+
okText: t('action.delete'),
|
35619
|
+
cancelText: t('backoffice.cancel'),
|
35620
|
+
children: /*#__PURE__*/jsx(Button, {
|
35621
|
+
danger: true,
|
35622
|
+
children: t('backoffice.idmCatalog.prices.manual.delete.title')
|
35623
|
+
})
|
35624
|
+
})
|
35625
|
+
}), /*#__PURE__*/jsx(Setting, {
|
35463
35626
|
title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
|
35464
|
-
|
35465
|
-
|
35466
|
-
|
35467
|
-
|
35468
|
-
|
35469
|
-
|
35470
|
-
|
35471
|
-
|
35472
|
-
|
35473
|
-
|
35474
|
-
|
35475
|
-
|
35476
|
-
|
35477
|
-
|
35478
|
-
|
35479
|
-
|
35480
|
-
|
35627
|
+
tooltip: t('backoffice.idmCatalog.prices.priceFactor.tooltip.series'),
|
35628
|
+
children: /*#__PURE__*/jsx(PriceFactorInput, {
|
35629
|
+
value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
|
35630
|
+
onSave: (/*#__PURE__*/function () {
|
35631
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_, value) {
|
35632
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
35633
|
+
while (1) switch (_context7.prev = _context7.next) {
|
35634
|
+
case 0:
|
35635
|
+
updateSeriePriceFactor(value);
|
35636
|
+
case 1:
|
35637
|
+
case "end":
|
35638
|
+
return _context7.stop();
|
35639
|
+
}
|
35640
|
+
}, _callee7);
|
35641
|
+
}));
|
35642
|
+
return function (_x11, _x12) {
|
35643
|
+
return _ref8.apply(this, arguments);
|
35644
|
+
};
|
35645
|
+
}()),
|
35646
|
+
disabled: !selectedSerie
|
35647
|
+
})
|
35481
35648
|
}), /*#__PURE__*/jsx(SeriesSelector$3, {
|
35482
35649
|
modules: ['pricelists'],
|
35483
35650
|
dataSet: "lookup"
|
@@ -35485,6 +35652,7 @@ var Prices = observer(function (_ref) {
|
|
35485
35652
|
})
|
35486
35653
|
})
|
35487
35654
|
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
35655
|
+
ref: spreadsheetRef,
|
35488
35656
|
gridId: 'crud-grid_enricherprices',
|
35489
35657
|
applicationData: applicationData,
|
35490
35658
|
configuration: configuration
|
@@ -37655,18 +37823,19 @@ var TableItems = observer(function () {
|
|
37655
37823
|
apiConfig = _useModule.apiConfig,
|
37656
37824
|
organizationId = _useModule.organizationId;
|
37657
37825
|
useTools({
|
37658
|
-
|
37659
|
-
|
37660
|
-
|
37661
|
-
|
37662
|
-
|
37663
|
-
|
37826
|
+
catalogId: catalogId,
|
37827
|
+
serie: selectedSerie,
|
37828
|
+
setSerie: setSelectedSerie,
|
37829
|
+
setArticle: setSelectedItem,
|
37830
|
+
item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
|
37831
|
+
});
|
37664
37832
|
var hooks = useMemo(function () {
|
37665
37833
|
return {
|
37666
37834
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37667
37835
|
// Check if all selections are from the same node
|
37668
37836
|
if (event.selection.length == 1) {
|
37669
|
-
|
37837
|
+
var _event$selection$;
|
37838
|
+
setSelectedItem((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
|
37670
37839
|
}
|
37671
37840
|
}
|
37672
37841
|
};
|
@@ -37699,9 +37868,9 @@ var TableSeries = observer(function () {
|
|
37699
37868
|
var _useTranslation = useTranslation(),
|
37700
37869
|
t = _useTranslation.t;
|
37701
37870
|
var _useModule = useModule(['series']),
|
37702
|
-
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37703
37871
|
selectedCatalog = _useModule.selectedCatalog,
|
37704
37872
|
selectedGlobalSerie = _useModule.selectedSerie,
|
37873
|
+
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37705
37874
|
catalogId = _useModule.catalogId,
|
37706
37875
|
organizationId = _useModule.organizationId,
|
37707
37876
|
apiConfig = _useModule.apiConfig;
|
@@ -37745,8 +37914,9 @@ var TableSeries = observer(function () {
|
|
37745
37914
|
return {
|
37746
37915
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37747
37916
|
if (event.selection.length == 1) {
|
37748
|
-
|
37749
|
-
|
37917
|
+
var _event$selection$, _event$selection$2;
|
37918
|
+
setGlobalSelectedSerie((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
|
37919
|
+
setSelectedSerie((_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.data);
|
37750
37920
|
} else {
|
37751
37921
|
setSelectedSerie(null);
|
37752
37922
|
}
|
@@ -38082,8 +38252,9 @@ var TableFeatures = observer(function () {
|
|
38082
38252
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
38083
38253
|
// Check if all selections are from the same node
|
38084
38254
|
if (event.selection.length == 1) {
|
38255
|
+
var _event$selection$;
|
38085
38256
|
updateConfigurator({
|
38086
|
-
opt: event.selection[0]
|
38257
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
38087
38258
|
});
|
38088
38259
|
}
|
38089
38260
|
}
|
@@ -38290,8 +38461,9 @@ var TableOptions = observer(function () {
|
|
38290
38461
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
38291
38462
|
// Check if all selections are from the same node
|
38292
38463
|
if (event.selection.length == 1) {
|
38464
|
+
var _event$selection$;
|
38293
38465
|
updateConfigurator({
|
38294
|
-
opv: event.selection[0]
|
38466
|
+
opv: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.optionKey
|
38295
38467
|
});
|
38296
38468
|
}
|
38297
38469
|
}
|
@@ -41923,7 +42095,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
41923
42095
|
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; }
|
41924
42096
|
var ArticleSelection = function ArticleSelection(_ref) {
|
41925
42097
|
var _ref$state = _ref.state,
|
41926
|
-
|
42098
|
+
itemList = _ref$state.itemList,
|
41927
42099
|
articleCodex = _ref$state.articleCodex,
|
41928
42100
|
setArticleCodex = _ref$state.setArticleCodex,
|
41929
42101
|
setDoReset = _ref$state.setDoReset,
|
@@ -41935,7 +42107,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41935
42107
|
var groups = [];
|
41936
42108
|
var _loop = function _loop() {
|
41937
42109
|
var _mask$articles;
|
41938
|
-
var article =
|
42110
|
+
var article = itemList[i];
|
41939
42111
|
if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
|
41940
42112
|
if (!article.groupName) article.groupName = 'NONE';
|
41941
42113
|
var group = groups.find(function (g) {
|
@@ -41951,7 +42123,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41951
42123
|
});
|
41952
42124
|
}
|
41953
42125
|
};
|
41954
|
-
for (var i = 0; i <
|
42126
|
+
for (var i = 0; i < itemList.length; i++) {
|
41955
42127
|
if (_loop()) continue;
|
41956
42128
|
}
|
41957
42129
|
return groups.map(function (g) {
|
@@ -41959,7 +42131,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41959
42131
|
label: t('configuration.group.' + g.label, g.label)
|
41960
42132
|
});
|
41961
42133
|
});
|
41962
|
-
}, [
|
42134
|
+
}, [itemList]);
|
41963
42135
|
return /*#__PURE__*/jsxs("div", {
|
41964
42136
|
className: wrapper$1,
|
41965
42137
|
children: [/*#__PURE__*/jsx(Select$1, {
|
@@ -42006,26 +42178,30 @@ function useWysiwyg$1(_ref) {
|
|
42006
42178
|
setArticleCodex = _useState6[1];
|
42007
42179
|
var _useState7 = useState([]),
|
42008
42180
|
_useState8 = _slicedToArray(_useState7, 2),
|
42009
|
-
|
42010
|
-
|
42181
|
+
itemList = _useState8[0],
|
42182
|
+
setItemList = _useState8[1];
|
42011
42183
|
var _useState9 = useState({
|
42012
42184
|
catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
|
42013
42185
|
}),
|
42014
42186
|
_useState10 = _slicedToArray(_useState9, 2),
|
42015
|
-
|
42016
|
-
|
42187
|
+
serie = _useState10[0],
|
42188
|
+
setSerie = _useState10[1];
|
42017
42189
|
var _useState11 = useState([]),
|
42018
42190
|
_useState12 = _slicedToArray(_useState11, 2),
|
42019
|
-
|
42020
|
-
|
42021
|
-
var _useState13 = useState(),
|
42191
|
+
serieList = _useState12[0],
|
42192
|
+
setSerieList = _useState12[1];
|
42193
|
+
var _useState13 = useState(tool.parameters.catalogId),
|
42022
42194
|
_useState14 = _slicedToArray(_useState13, 2),
|
42023
|
-
|
42024
|
-
|
42195
|
+
catalogId = _useState14[0],
|
42196
|
+
setCatalogId = _useState14[1];
|
42025
42197
|
var _useState15 = useState(),
|
42026
42198
|
_useState16 = _slicedToArray(_useState15, 2),
|
42027
|
-
|
42028
|
-
|
42199
|
+
currentNav = _useState16[0],
|
42200
|
+
setCurrentNav = _useState16[1];
|
42201
|
+
var _useState17 = useState(),
|
42202
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
42203
|
+
doNavigate = _useState18[0],
|
42204
|
+
setDoNavigate = _useState18[1];
|
42029
42205
|
useEffect(function () {
|
42030
42206
|
if (!toolbar.hidden) setDoReset(true);
|
42031
42207
|
}, [toolbar.hidden]);
|
@@ -42088,7 +42264,8 @@ function useWysiwyg$1(_ref) {
|
|
42088
42264
|
});
|
42089
42265
|
case 3:
|
42090
42266
|
d = _context2.sent;
|
42091
|
-
|
42267
|
+
setCatalogId(d._id);
|
42268
|
+
_context2.next = 7;
|
42092
42269
|
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
|
42093
42270
|
method: 'GET',
|
42094
42271
|
headers: _objectSpread$4({}, jwt ? {
|
@@ -42103,10 +42280,10 @@ function useWysiwyg$1(_ref) {
|
|
42103
42280
|
return undefined;
|
42104
42281
|
}
|
42105
42282
|
});
|
42106
|
-
case
|
42283
|
+
case 7:
|
42107
42284
|
s = _context2.sent;
|
42108
|
-
|
42109
|
-
case
|
42285
|
+
setSerieList(s.data);
|
42286
|
+
case 9:
|
42110
42287
|
case "end":
|
42111
42288
|
return _context2.stop();
|
42112
42289
|
}
|
@@ -42140,7 +42317,7 @@ function useWysiwyg$1(_ref) {
|
|
42140
42317
|
});
|
42141
42318
|
case 3:
|
42142
42319
|
l = _context3.sent;
|
42143
|
-
|
42320
|
+
setSerieList(l.data);
|
42144
42321
|
case 5:
|
42145
42322
|
case "end":
|
42146
42323
|
return _context3.stop();
|
@@ -42155,7 +42332,7 @@ function useWysiwyg$1(_ref) {
|
|
42155
42332
|
if (doReset) {
|
42156
42333
|
var _tool$elementProps, _tool$elementProps3;
|
42157
42334
|
if (currentNav) setDoNavigate(currentNav);
|
42158
|
-
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !
|
42335
|
+
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !serieList.length) {
|
42159
42336
|
var _tool$elementProps2;
|
42160
42337
|
if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
|
42161
42338
|
loadPackage(tool.parameters.packageId);
|
@@ -42174,20 +42351,20 @@ function useWysiwyg$1(_ref) {
|
|
42174
42351
|
}, [doReset]);
|
42175
42352
|
useEffect(function () {
|
42176
42353
|
setArticleCodex(undefined);
|
42177
|
-
if (
|
42354
|
+
if (serie !== null && serie !== void 0 && serie.catalogCodex) {
|
42178
42355
|
var _tool$parameters$pack;
|
42179
42356
|
setMask({
|
42180
|
-
catalogCodex:
|
42357
|
+
catalogCodex: serie.catalogCodex,
|
42181
42358
|
accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
|
42182
42359
|
});
|
42183
42360
|
}
|
42184
|
-
}, [
|
42361
|
+
}, [serie]);
|
42185
42362
|
useEffect(function () {
|
42186
42363
|
setDoReset(true);
|
42187
42364
|
setArticleCodex(undefined);
|
42188
|
-
|
42189
|
-
|
42190
|
-
|
42365
|
+
setSerie(undefined);
|
42366
|
+
setItemList([]);
|
42367
|
+
setSerieList([]);
|
42191
42368
|
}, [tool.parameters.catalogId, tool.parameters.packageId]);
|
42192
42369
|
var onEventCalled = /*#__PURE__*/function () {
|
42193
42370
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
@@ -42206,7 +42383,7 @@ function useWysiwyg$1(_ref) {
|
|
42206
42383
|
groupName: article.groupName
|
42207
42384
|
});
|
42208
42385
|
}
|
42209
|
-
|
42386
|
+
setItemList(articles);
|
42210
42387
|
if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
|
42211
42388
|
}
|
42212
42389
|
if (e.type === 'navigatedToOption') {
|
@@ -42313,20 +42490,21 @@ function useWysiwyg$1(_ref) {
|
|
42313
42490
|
};
|
42314
42491
|
}, []);
|
42315
42492
|
return {
|
42316
|
-
|
42317
|
-
|
42493
|
+
itemList: itemList,
|
42494
|
+
setItemList: setItemList,
|
42318
42495
|
articleCodex: articleCodex,
|
42319
42496
|
setArticleCodex: setArticleCodex,
|
42320
|
-
|
42321
|
-
|
42322
|
-
|
42323
|
-
|
42497
|
+
serieList: serieList,
|
42498
|
+
setSerieList: setSerieList,
|
42499
|
+
serie: serie,
|
42500
|
+
setSerie: setSerie,
|
42324
42501
|
settings: settings,
|
42325
42502
|
mask: mask,
|
42326
42503
|
doReset: doReset,
|
42327
42504
|
setDoReset: setDoReset,
|
42328
42505
|
doNavigate: doNavigate,
|
42329
|
-
setDoNavigate: setDoNavigate
|
42506
|
+
setDoNavigate: setDoNavigate,
|
42507
|
+
catalogId: catalogId
|
42330
42508
|
};
|
42331
42509
|
}
|
42332
42510
|
|
@@ -42378,27 +42556,27 @@ styleInject(css_248z$2);
|
|
42378
42556
|
|
42379
42557
|
var CatalogSelection = function CatalogSelection(_ref) {
|
42380
42558
|
var _ref$state = _ref.state,
|
42381
|
-
|
42382
|
-
|
42383
|
-
|
42559
|
+
serieList = _ref$state.serieList,
|
42560
|
+
serie = _ref$state.serie,
|
42561
|
+
setSerie = _ref$state.setSerie,
|
42384
42562
|
setArticleCodex = _ref$state.setArticleCodex,
|
42385
|
-
|
42563
|
+
setSerieProp = _ref.setSerie;
|
42386
42564
|
var _useTranslation = useTranslation(),
|
42387
42565
|
t = _useTranslation.t,
|
42388
42566
|
language = _useTranslation.i18n.language;
|
42389
42567
|
var options = useMemo(function () {
|
42390
42568
|
var groups = [];
|
42391
|
-
for (var i = 0; i <
|
42392
|
-
var c =
|
42569
|
+
for (var i = 0; i < serieList.length; i++) {
|
42570
|
+
var c = serieList[i];
|
42393
42571
|
groups.push({
|
42394
42572
|
value: c.serieNo.toString(),
|
42395
42573
|
label: c.seriesName[language.toUpperCase()]
|
42396
42574
|
});
|
42397
42575
|
}
|
42398
42576
|
return groups;
|
42399
|
-
}, [
|
42577
|
+
}, [serieList]);
|
42400
42578
|
var onChange = function onChange(val) {
|
42401
|
-
var cat =
|
42579
|
+
var cat = serieList.find(function (c) {
|
42402
42580
|
return c.serieNo.toString() == val;
|
42403
42581
|
});
|
42404
42582
|
var catalog = cat ? {
|
@@ -42406,15 +42584,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
|
|
42406
42584
|
serieId: cat._id,
|
42407
42585
|
accountId: cat.catalogId
|
42408
42586
|
} : undefined;
|
42409
|
-
|
42587
|
+
setSerie(catalog);
|
42410
42588
|
setArticleCodex(undefined);
|
42411
|
-
|
42589
|
+
setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
|
42412
42590
|
};
|
42413
42591
|
return /*#__PURE__*/jsx("div", {
|
42414
42592
|
className: wrapper,
|
42415
42593
|
children: /*#__PURE__*/jsx(Select$1, {
|
42416
42594
|
placeholder: t('backoffice.configurator.serie.placeholder'),
|
42417
|
-
value:
|
42595
|
+
value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
|
42418
42596
|
options: options,
|
42419
42597
|
onChange: onChange,
|
42420
42598
|
className: select
|
@@ -42426,7 +42604,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
|
|
42426
42604
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
42427
42605
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
42428
42606
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
42429
|
-
var _state$
|
42607
|
+
var _state$serie, _tool$parameters, _state$articleCodex, _state$serie$catalogC, _state$serie2, _state$mask2, _state$serie3, _state$serie$accountI, _state$serie4, _state$mask3;
|
42430
42608
|
var tool = _ref.tool,
|
42431
42609
|
toolbar = _ref.toolbar;
|
42432
42610
|
var _useDivaCore = useDivaCore(),
|
@@ -42445,17 +42623,32 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42445
42623
|
}, [tool.parameters]);
|
42446
42624
|
useEffect(function () {
|
42447
42625
|
if (tool.elementProps.initSerie) {
|
42448
|
-
|
42449
|
-
|
42450
|
-
|
42451
|
-
|
42452
|
-
|
42626
|
+
if (tool.elementProps.useEnricherService) {
|
42627
|
+
var _state$serieList$find;
|
42628
|
+
var serie = {
|
42629
|
+
serieId: (_state$serieList$find = state.serieList.find(function (s) {
|
42630
|
+
return s.serieNo == tool.elementProps.initSerie.serieNo;
|
42631
|
+
})) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
|
42632
|
+
catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
|
42633
|
+
accountId: state.catalogId
|
42634
|
+
};
|
42635
|
+
if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
|
42636
|
+
state.setSerie(serie);
|
42637
|
+
state.setArticleCodex(undefined);
|
42638
|
+
}
|
42639
|
+
} else {
|
42640
|
+
state.setSerie({
|
42641
|
+
serieId: tool.elementProps.initSerie.serieId,
|
42642
|
+
catalogCodex: tool.elementProps.initSerie.serieNo.toString()
|
42643
|
+
});
|
42644
|
+
state.setArticleCodex(undefined);
|
42645
|
+
}
|
42453
42646
|
}
|
42454
42647
|
if (tool.elementProps.initItem) {
|
42455
42648
|
state.setArticleCodex(tool.elementProps.initItem);
|
42456
42649
|
}
|
42457
|
-
}, [tool.elementProps.initItem, tool.elementProps.initSerie]);
|
42458
|
-
if (!((_state$
|
42650
|
+
}, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
|
42651
|
+
if (!((_state$serie = state.serie) !== null && _state$serie !== void 0 && _state$serie.catalogCodex)) {
|
42459
42652
|
if (tool.elementProps.showCatalogSelection) {
|
42460
42653
|
return /*#__PURE__*/jsx(CatalogSelection$1, {
|
42461
42654
|
state: state,
|
@@ -42493,11 +42686,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42493
42686
|
resetArticle: '',
|
42494
42687
|
disableToggle: '1',
|
42495
42688
|
startDivaNr: 'DIVA-000000',
|
42496
|
-
catalogCodex: (_state$
|
42497
|
-
}, (_state$
|
42498
|
-
serieId: state.
|
42689
|
+
catalogCodex: (_state$serie$catalogC = (_state$serie2 = state.serie) === null || _state$serie2 === void 0 ? void 0 : _state$serie2.catalogCodex) !== null && _state$serie$catalogC !== void 0 ? _state$serie$catalogC : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
|
42690
|
+
}, (_state$serie3 = state.serie) !== null && _state$serie3 !== void 0 && _state$serie3.serieId ? {
|
42691
|
+
serieId: state.serie.serieId
|
42499
42692
|
} : {}), {}, {
|
42500
|
-
accountGuid: (_state$
|
42693
|
+
accountGuid: (_state$serie$accountI = (_state$serie4 = state.serie) === null || _state$serie4 === void 0 ? void 0 : _state$serie4.accountId) !== null && _state$serie$accountI !== void 0 ? _state$serie$accountI : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
|
42501
42694
|
returnTo: 'DONT_SAVE_BASKET',
|
42502
42695
|
organizationId: organizationId,
|
42503
42696
|
no3DConnection: 'true'
|