@crystaldesign/web-planner-logic 24.10.0-beta.4 → 24.10.0-beta.9
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/cjs/{DivaBoxPlanner-df3a7b94.js → DivaBoxPlanner-ce0b5ccf.js} +3 -3
- package/build/cjs/{DivaSingleProductPlanner-825f9f2a.js → DivaSingleProductPlanner-19811faa.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-fa3dc4b8.js → DivaStandardPlanner-11d92ddc.js} +3 -3
- package/build/cjs/{DockingPointHandler-32c1267a.js → DockingPointHandler-e37440e2.js} +1 -1
- package/build/cjs/{DoorPlanner-87781159.js → DoorPlanner-157f3b83.js} +1 -1
- package/build/cjs/{Host3DSignalR-b474bb65.js → Host3DSignalR-973eb29d.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-d0164c3f.js → LiviqueWWSHandler-175ace96.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-decd7c4f.js → PfisterWWSHandler-b5b08965.js} +1 -1
- package/build/cjs/{PlannerHandler2D-03db7092.js → PlannerHandler2D-8b2718d9.js} +2 -2
- package/build/cjs/{ProductBasketHandler-1387d823.js → ProductBasketHandler-b37e5eb2.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-9c37933c.js → SeriousBasketHandler-9d531962.js} +1 -1
- package/build/cjs/{ShelfPlanner-9c52b6e2.js → ShelfPlanner-f8f7b3c2.js} +2 -2
- package/build/cjs/{StandardWWSHandler-053af296.js → StandardWWSHandler-e322419c.js} +1 -1
- package/build/cjs/{index-6c4b6fc1.js → index-91696556.js} +115 -54
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-88df381d.js → DivaBoxPlanner-162f61b3.js} +3 -3
- package/build/esm/{DivaSingleProductPlanner-d3112eb7.js → DivaSingleProductPlanner-bc11af8c.js} +2 -2
- package/build/esm/{DivaStandardPlanner-86bdae0a.js → DivaStandardPlanner-bb2a6560.js} +3 -3
- package/build/esm/{DockingPointHandler-a9df8104.js → DockingPointHandler-ce5b6cc8.js} +1 -1
- package/build/esm/{DoorPlanner-7ea8924a.js → DoorPlanner-dfcc1e9b.js} +1 -1
- package/build/esm/{Host3DSignalR-49c23662.js → Host3DSignalR-08117df5.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-0c1a42af.js → LiviqueWWSHandler-ab108660.js} +1 -1
- package/build/esm/{PfisterWWSHandler-d02b5adb.js → PfisterWWSHandler-28dd4770.js} +1 -1
- package/build/esm/{PlannerHandler2D-65fedf84.js → PlannerHandler2D-bc825497.js} +2 -2
- package/build/esm/{ProductBasketHandler-81a89980.js → ProductBasketHandler-56d310f8.js} +1 -1
- package/build/esm/{SeriousBasketHandler-0bdeb425.js → SeriousBasketHandler-7d8bdefe.js} +1 -1
- package/build/esm/{ShelfPlanner-d2e46f7f.js → ShelfPlanner-ff88c9d8.js} +2 -2
- package/build/esm/{StandardWWSHandler-10c004bd.js → StandardWWSHandler-8b217a8f.js} +1 -1
- package/build/esm/{index-cca436c3.js → index-999a0e8c.js} +115 -54
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +12 -4
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +43 -13
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +2 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/FavoritesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,11 +5,11 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-91696556.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
|
-
var DockingPointHandler = require('./DockingPointHandler-
|
|
12
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
11
|
+
var DockingPointHandler = require('./DockingPointHandler-e37440e2.js');
|
|
12
|
+
var PlannerHandler2D = require('./PlannerHandler2D-8b2718d9.js');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('@babel/runtime/helpers/slicedToArray');
|
|
15
15
|
require('axios');
|
package/build/cjs/{DivaSingleProductPlanner-825f9f2a.js → DivaSingleProductPlanner-19811faa.js}
RENAMED
|
@@ -5,8 +5,8 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var DockingPointHandler = require('./DockingPointHandler-
|
|
8
|
+
var index = require('./index-91696556.js');
|
|
9
|
+
var DockingPointHandler = require('./DockingPointHandler-e37440e2.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
12
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -5,10 +5,10 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var DockingPointHandler = require('./DockingPointHandler-
|
|
8
|
+
var index = require('./index-91696556.js');
|
|
9
|
+
var DockingPointHandler = require('./DockingPointHandler-e37440e2.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
11
|
+
var PlannerHandler2D = require('./PlannerHandler2D-8b2718d9.js');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
require('@babel/runtime/helpers/slicedToArray');
|
|
14
14
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-91696556.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-91696556.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
9
9
|
require('@babel/runtime/regenerator');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-91696556.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var signalR = require('@microsoft/signalr');
|
|
11
11
|
var io = require('socket.io-client');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-91696556.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/regenerator');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-91696556.js');
|
|
6
6
|
var basketModel = require('@crystaldesign/basket-model');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -5,12 +5,12 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-91696556.js');
|
|
9
9
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
10
10
|
var fabric = require('fabric');
|
|
11
11
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
12
12
|
var serialize = require('w3c-xmlserializer');
|
|
13
|
-
var DockingPointHandler = require('./DockingPointHandler-
|
|
13
|
+
var DockingPointHandler = require('./DockingPointHandler-e37440e2.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-91696556.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/regenerator');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-91696556.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
9
9
|
require('@babel/runtime/regenerator');
|
|
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
6
6
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-91696556.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
12
12
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -487,7 +487,7 @@ var ShelfPlanner = /*#__PURE__*/function () {
|
|
|
487
487
|
} else {
|
|
488
488
|
var ret = false;
|
|
489
489
|
var grids = this.doesTakePlaceOnOtherGrids(accessoire) ? this.activeGrids : [grid];
|
|
490
|
-
if (grid.
|
|
490
|
+
if (grid.checkAccessoireInGridRules(accessoire)) {
|
|
491
491
|
return {
|
|
492
492
|
type: 'notAllowedByMaxQuantityReached',
|
|
493
493
|
size: size
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-91696556.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/regenerator');
|
|
@@ -16053,7 +16053,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16053
16053
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
16054
16054
|
priceUnit: jsonOPV.PriceUnit,
|
|
16055
16055
|
value: jsonOPV.Value,
|
|
16056
|
-
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties :
|
|
16056
|
+
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"](Object.values((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : {}))),
|
|
16057
16057
|
textbausteine: jsonOPV.Textbausteine
|
|
16058
16058
|
};
|
|
16059
16059
|
this.opv.colorGroups = this.mapRALColorToGroup();
|
|
@@ -16435,7 +16435,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16435
16435
|
arePricesLoaded: false,
|
|
16436
16436
|
articleOptions: {},
|
|
16437
16437
|
decisions: [],
|
|
16438
|
-
properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti :
|
|
16438
|
+
properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"](Object.values((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : {}))),
|
|
16439
16439
|
image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
|
|
16440
16440
|
imageWidth: jsonArticle.ImageWidth ? jsonArticle.ImageWidth : undefined,
|
|
16441
16441
|
imageHeight: jsonArticle.ImageHeight ? jsonArticle.ImageHeight : undefined,
|
|
@@ -17839,10 +17839,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
17839
17839
|
|
|
17840
17840
|
var OptionCatalogData = /*#__PURE__*/function () {
|
|
17841
17841
|
function OptionCatalogData(codex, jsonOPT, catalogData) {
|
|
17842
|
-
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _optionMask$name$cata, _optionMask$name, _catalogData$api$getL, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _catalogData$api$getL2, _ref, _optionMask$layout,
|
|
17842
|
+
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _jsonOPT$Properties, _optionMask$propertie, _optionMask$name$cata, _optionMask$name, _catalogData$api$getL, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _catalogData$api$getL2, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt;
|
|
17843
17843
|
_classCallCheck__default["default"](this, OptionCatalogData);
|
|
17844
17844
|
_defineProperty__default["default"](this, "opt", void 0);
|
|
17845
17845
|
var optionMask = (_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 || (_catalogData$catalogM2 = _catalogData$catalogM2.options) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2[codex]) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : codex.startsWith('OPT') ? (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 || (_catalogData$catalogM3 = _catalogData$catalogM3.options) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3[codex.substring(3)] : undefined;
|
|
17846
|
+
var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"](Object.values((_optionMask$propertie = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie !== void 0 ? _optionMask$propertie : {})));
|
|
17846
17847
|
this.opt = {
|
|
17847
17848
|
codex: codex,
|
|
17848
17849
|
name: (_optionMask$name$cata = optionMask === null || optionMask === void 0 || (_optionMask$name = optionMask.name) === null || _optionMask$name === void 0 ? void 0 : _optionMask$name[(_catalogData$api$getL = catalogData.api.getLanguage()) === null || _catalogData$api$getL === void 0 ? void 0 : _catalogData$api$getL.toLowerCase()]) !== null && _optionMask$name$cata !== void 0 ? _optionMask$name$cata : jsonOPT.Name,
|
|
@@ -17853,9 +17854,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
17853
17854
|
image: jsonOPT.Image ? jsonOPT.Image : undefined,
|
|
17854
17855
|
invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : jsonOPT.Invisible != undefined ? jsonOPT.Invisible : false,
|
|
17855
17856
|
maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[(_catalogData$api$getL2 = catalogData.api.getLanguage()) === null || _catalogData$api$getL2 === void 0 ? void 0 : _catalogData$api$getL2.toLowerCase()],
|
|
17856
|
-
layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout :
|
|
17857
|
+
layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find = properties.find(function (p) {
|
|
17857
17858
|
return p.Codex == 'LAYOUT';
|
|
17858
|
-
})) === null ||
|
|
17859
|
+
})) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
|
|
17859
17860
|
multiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false,
|
|
17860
17861
|
sendToPIM: !!jsonOPT.SendToPIM,
|
|
17861
17862
|
useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
|
|
@@ -17864,7 +17865,7 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
17864
17865
|
hideInOrderText: jsonOPT.hideInOrderText != undefined ? jsonOPT.hideInOrderText == 'True' : false,
|
|
17865
17866
|
showOPVCodex: jsonOPT.showOPVCodex != undefined ? jsonOPT.showOPVCodex == 'True' : false,
|
|
17866
17867
|
showOPVAsArticleNr: typeof jsonOPT.showOPVAsArticleNr == 'boolean' ? jsonOPT.showOPVAsArticleNr : ((_jsonOPT$showOPVAsArt = jsonOPT.showOPVAsArticleNr) === null || _jsonOPT$showOPVAsArt === void 0 ? void 0 : _jsonOPT$showOPVAsArt.toLowerCase()) == 'true',
|
|
17867
|
-
property:
|
|
17868
|
+
property: properties,
|
|
17868
17869
|
parentOptionCodex: jsonOPT.ParentOptionCodex,
|
|
17869
17870
|
articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
|
|
17870
17871
|
isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : false
|
|
@@ -18299,7 +18300,28 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18299
18300
|
// old tag
|
|
18300
18301
|
useDecisionPosCountValue: false,
|
|
18301
18302
|
useShelfPlannerRTV: false,
|
|
18302
|
-
notificationsRules: [
|
|
18303
|
+
notificationsRules: [{
|
|
18304
|
+
rules: [{
|
|
18305
|
+
visitedOptions: ['SHELFARTICLE_1'],
|
|
18306
|
+
articles: [''],
|
|
18307
|
+
jsFormula: '',
|
|
18308
|
+
variantValues: {}
|
|
18309
|
+
}],
|
|
18310
|
+
checkOnEvents: {
|
|
18311
|
+
option: 'GR',
|
|
18312
|
+
articleCodex: '',
|
|
18313
|
+
optionValue: ''
|
|
18314
|
+
},
|
|
18315
|
+
type: 'notification',
|
|
18316
|
+
showInModal: true,
|
|
18317
|
+
onlyShowOnce: true,
|
|
18318
|
+
messageTitle: {
|
|
18319
|
+
DE: 'ospele'
|
|
18320
|
+
},
|
|
18321
|
+
message: {
|
|
18322
|
+
DE: 'Achtung alle änderungen gehen verlohren... Bist du sicher?'
|
|
18323
|
+
}
|
|
18324
|
+
}],
|
|
18303
18325
|
warningRule: [],
|
|
18304
18326
|
summaryTabGroupPosition: undefined,
|
|
18305
18327
|
onConfigSingleDontGeneralize: false,
|
|
@@ -18345,7 +18367,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18345
18367
|
var _this$catalogMask$cat;
|
|
18346
18368
|
if ((_this$catalogMask$cat = this.catalogMask.catalog.name) !== null && _this$catalogMask$cat !== void 0 && _this$catalogMask$cat[this.api.getLanguage()]) this.catalogData.catalogName = this.catalogMask.catalog.name[this.api.getLanguage()];
|
|
18347
18369
|
if (this.catalogMask.catalog.name) this.catalogData.name_locales = this.catalogMask.catalog.name;
|
|
18348
|
-
if (this.catalogMask.catalog.properties) this.initProperties([].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](this.catalogMask.catalog.properties)));
|
|
18370
|
+
if (this.catalogMask.catalog.properties) this.initProperties([].concat(_toConsumableArray__default["default"](this.origProperties), _toConsumableArray__default["default"](Object.values(this.catalogMask.catalog.properties))));
|
|
18349
18371
|
}
|
|
18350
18372
|
}
|
|
18351
18373
|
}, {
|
|
@@ -18603,6 +18625,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18603
18625
|
_this.catalogData.bundleRules = JSON.parse(item.Value);
|
|
18604
18626
|
} else if (item.Codex == 'NOTIFICATIONS') {
|
|
18605
18627
|
_this.catalogData.notificationsRules = JSON.parse(item.Value);
|
|
18628
|
+
} else if (item.Codex == 'WARNINGS') {
|
|
18629
|
+
_this.catalogData.warningRule = JSON.parse(item.Value);
|
|
18606
18630
|
} else if (item.Codex == 'IGNORE_MAX_PRICE_AS_BASEPRICE') {
|
|
18607
18631
|
_this.catalogData.ignoreMaxPriceAsBP = item.Value == '1';
|
|
18608
18632
|
} else if (item.Codex == 'DONT_USE_VCODEX_FOR_BASKET') {
|
|
@@ -23520,7 +23544,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23520
23544
|
break;
|
|
23521
23545
|
}
|
|
23522
23546
|
_context.next = 4;
|
|
23523
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
23547
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-f8f7b3c2.js'); });
|
|
23524
23548
|
case 4:
|
|
23525
23549
|
_yield$import = _context.sent;
|
|
23526
23550
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28008,7 +28032,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28008
28032
|
break;
|
|
28009
28033
|
}
|
|
28010
28034
|
_context4.next = 3;
|
|
28011
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28035
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-157f3b83.js'); });
|
|
28012
28036
|
case 3:
|
|
28013
28037
|
_yield$import = _context4.sent;
|
|
28014
28038
|
DoorPlanner = _yield$import["default"];
|
|
@@ -29433,7 +29457,7 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
29433
29457
|
if (article.getArticleOptionState('OPT' + optionCodexes[0])) {
|
|
29434
29458
|
for (var i = 0; i < optionCodexes.length; i++) {
|
|
29435
29459
|
var optionState = article.getArticleOptionState('OPT' + optionCodexes[i]);
|
|
29436
|
-
if (!optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
|
|
29460
|
+
if (optionState && !optionState.isInvisible && optionState.isDoShow && optionState.visibleCount > 0 && optionState.valCodex != 'OPVNR') {
|
|
29437
29461
|
opss.push(optionState);
|
|
29438
29462
|
}
|
|
29439
29463
|
}
|
|
@@ -29725,10 +29749,10 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29725
29749
|
setHashes = {};
|
|
29726
29750
|
variantId = this.getVariantIdToStart(set);
|
|
29727
29751
|
origConfig = articles[Object.keys(articles)[0]].VariantValues;
|
|
29728
|
-
i =
|
|
29752
|
+
i = 0;
|
|
29729
29753
|
case 6:
|
|
29730
|
-
if (!(i
|
|
29731
|
-
_context3.next =
|
|
29754
|
+
if (!(i < variants.length)) {
|
|
29755
|
+
_context3.next = 53;
|
|
29732
29756
|
break;
|
|
29733
29757
|
}
|
|
29734
29758
|
variantForTargetArticles = variants[i];
|
|
@@ -29831,9 +29855,14 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29831
29855
|
variantForTargetArticles.configVariantValues = configVariantValues;
|
|
29832
29856
|
variantForTargetArticles.price = set === null || set === void 0 ? void 0 : set.getSetPrice();
|
|
29833
29857
|
variantForTargetArticles.title = set === null || set === void 0 ? void 0 : set.CatalogData.catalogName;
|
|
29834
|
-
if (
|
|
29835
|
-
|
|
29858
|
+
if (variantIsValid) {
|
|
29859
|
+
_context3.next = 48;
|
|
29860
|
+
break;
|
|
29836
29861
|
}
|
|
29862
|
+
variants.splice(i, 1);
|
|
29863
|
+
i--;
|
|
29864
|
+
return _context3.abrupt("continue", 50);
|
|
29865
|
+
case 48:
|
|
29837
29866
|
reservedId = this.tryGetOldVariantIdForVariant(set, variants[i]);
|
|
29838
29867
|
if (reservedId !== undefined) {
|
|
29839
29868
|
variants[i].id = reservedId;
|
|
@@ -29841,21 +29870,21 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29841
29870
|
variants[i].id = variantId;
|
|
29842
29871
|
variantId++;
|
|
29843
29872
|
}
|
|
29844
|
-
case
|
|
29845
|
-
i
|
|
29873
|
+
case 50:
|
|
29874
|
+
i++;
|
|
29846
29875
|
_context3.next = 6;
|
|
29847
29876
|
break;
|
|
29848
|
-
case
|
|
29877
|
+
case 53:
|
|
29849
29878
|
if (!set.favoritesChanged) this.evalOldConfigVariants(set, variants);
|
|
29850
|
-
_context3.next =
|
|
29879
|
+
_context3.next = 56;
|
|
29851
29880
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, origConfig, Object.keys(articles), true);
|
|
29852
|
-
case
|
|
29881
|
+
case 56:
|
|
29853
29882
|
set.allVariantsCache = variants;
|
|
29854
29883
|
variants.sort(function (a, b) {
|
|
29855
29884
|
return a.id - b.id;
|
|
29856
29885
|
});
|
|
29857
29886
|
return _context3.abrupt("return", variants);
|
|
29858
|
-
case
|
|
29887
|
+
case 59:
|
|
29859
29888
|
case "end":
|
|
29860
29889
|
return _context3.stop();
|
|
29861
29890
|
}
|
|
@@ -30142,7 +30171,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30142
30171
|
allvariants = _context4.t0;
|
|
30143
30172
|
validVariants = [];
|
|
30144
30173
|
for (i = 0; i < allvariants.length; i++) {
|
|
30145
|
-
if (!set.disabledVariants.includes(i)) {
|
|
30174
|
+
if (!set.disabledVariants.includes(allvariants[i].id)) {
|
|
30146
30175
|
validVariants.push(allvariants[i]);
|
|
30147
30176
|
}
|
|
30148
30177
|
}
|
|
@@ -30337,8 +30366,8 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30337
30366
|
if (!((_set$oldConfigVariant3 = set.oldConfigVariants) !== null && _set$oldConfigVariant3 !== void 0 && _set$oldConfigVariant3.length)) return;
|
|
30338
30367
|
//set all invalid
|
|
30339
30368
|
set.disabledVariants = [];
|
|
30340
|
-
variants.map(function (v
|
|
30341
|
-
return set.disabledVariants.push(
|
|
30369
|
+
variants.map(function (v) {
|
|
30370
|
+
return set.disabledVariants.push(v.id);
|
|
30342
30371
|
});
|
|
30343
30372
|
var oldConfigVariants = _toConsumableArray__default["default"](set.oldConfigVariants);
|
|
30344
30373
|
for (var i = 0; i < variants.length; i++) {
|
|
@@ -30361,7 +30390,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30361
30390
|
if (tryNext) break;
|
|
30362
30391
|
}
|
|
30363
30392
|
if (!tryNext) {
|
|
30364
|
-
var index = set.disabledVariants.indexOf(
|
|
30393
|
+
var index = set.disabledVariants.indexOf(variant.id);
|
|
30365
30394
|
if (index != -1) set.disabledVariants.splice(index, 1);
|
|
30366
30395
|
oldConfigVariants.splice(j, 1);
|
|
30367
30396
|
}
|
|
@@ -35801,7 +35830,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35801
35830
|
break;
|
|
35802
35831
|
case 3:
|
|
35803
35832
|
_context13.next = 5;
|
|
35804
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
35833
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-b5b08965.js'); });
|
|
35805
35834
|
case 5:
|
|
35806
35835
|
_yield$import = _context13.sent;
|
|
35807
35836
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35809,7 +35838,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35809
35838
|
return _context13.abrupt("break", 33);
|
|
35810
35839
|
case 9:
|
|
35811
35840
|
_context13.next = 11;
|
|
35812
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
35841
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-175ace96.js'); });
|
|
35813
35842
|
case 11:
|
|
35814
35843
|
_yield$import2 = _context13.sent;
|
|
35815
35844
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35817,7 +35846,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35817
35846
|
return _context13.abrupt("break", 33);
|
|
35818
35847
|
case 15:
|
|
35819
35848
|
_context13.next = 17;
|
|
35820
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
35849
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-9d531962.js'); });
|
|
35821
35850
|
case 17:
|
|
35822
35851
|
_yield$import3 = _context13.sent;
|
|
35823
35852
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35825,7 +35854,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35825
35854
|
return _context13.abrupt("break", 33);
|
|
35826
35855
|
case 21:
|
|
35827
35856
|
_context13.next = 23;
|
|
35828
|
-
return Promise.resolve().then(function () { return require('./ProductBasketHandler-
|
|
35857
|
+
return Promise.resolve().then(function () { return require('./ProductBasketHandler-b37e5eb2.js'); });
|
|
35829
35858
|
case 23:
|
|
35830
35859
|
_yield$import4 = _context13.sent;
|
|
35831
35860
|
ProductWWSHandler = _yield$import4["default"];
|
|
@@ -35833,7 +35862,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35833
35862
|
return _context13.abrupt("break", 33);
|
|
35834
35863
|
case 27:
|
|
35835
35864
|
_context13.next = 29;
|
|
35836
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
35865
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-e322419c.js'); });
|
|
35837
35866
|
case 29:
|
|
35838
35867
|
_yield$import5 = _context13.sent;
|
|
35839
35868
|
StandardWWSHandler = _yield$import5["default"];
|
|
@@ -37038,7 +37067,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37038
37067
|
break;
|
|
37039
37068
|
}
|
|
37040
37069
|
_context3.next = 3;
|
|
37041
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
37070
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-973eb29d.js'); });
|
|
37042
37071
|
case 3:
|
|
37043
37072
|
_yield$import = _context3.sent;
|
|
37044
37073
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -38598,7 +38627,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38598
38627
|
break;
|
|
38599
38628
|
}
|
|
38600
38629
|
_context4.next = 11;
|
|
38601
|
-
return Promise.resolve().then(function () { return require('./DivaSingleProductPlanner-
|
|
38630
|
+
return Promise.resolve().then(function () { return require('./DivaSingleProductPlanner-19811faa.js'); });
|
|
38602
38631
|
case 11:
|
|
38603
38632
|
_yield$import = _context4.sent;
|
|
38604
38633
|
DivaSingleProductPlanner = _yield$import["default"];
|
|
@@ -38607,7 +38636,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38607
38636
|
break;
|
|
38608
38637
|
case 16:
|
|
38609
38638
|
_context4.next = 18;
|
|
38610
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
38639
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-11d92ddc.js'); });
|
|
38611
38640
|
case 18:
|
|
38612
38641
|
_yield$import2 = _context4.sent;
|
|
38613
38642
|
DivaStandardPlanner = _yield$import2["default"];
|
|
@@ -38619,7 +38648,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38619
38648
|
return _context4.abrupt("break", 29);
|
|
38620
38649
|
case 23:
|
|
38621
38650
|
_context4.next = 25;
|
|
38622
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
38651
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-ce0b5ccf.js'); });
|
|
38623
38652
|
case 25:
|
|
38624
38653
|
_yield$import3 = _context4.sent;
|
|
38625
38654
|
DivaBoxPlanner = _yield$import3["default"];
|
|
@@ -43012,6 +43041,8 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43012
43041
|
// E.g: "Grid Left" or "Grid Middle" or "Grid Right"
|
|
43013
43042
|
_defineProperty__default["default"](this, "gridName", void 0);
|
|
43014
43043
|
_defineProperty__default["default"](this, "maxAccessoireInGridCounter", void 0);
|
|
43044
|
+
//only one array of accessoires is plannable together in one grid. the accessoires of the mid array exclude each other. The outer array is for te usage of this rule in different usecases.
|
|
43045
|
+
_defineProperty__default["default"](this, "excludeAccessoiresByAccessoiresInGrid", void 0);
|
|
43015
43046
|
_defineProperty__default["default"](this, "influencedByNeighborGrids", void 0);
|
|
43016
43047
|
_defineProperty__default["default"](this, "influencedByOverlappingGrids", void 0);
|
|
43017
43048
|
var grid = data.ShelfPlanner[index];
|
|
@@ -43027,6 +43058,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43027
43058
|
this.requiredWarning = grid.RequiredWarning;
|
|
43028
43059
|
this.gridName = grid.GridName;
|
|
43029
43060
|
this.maxAccessoireInGridCounter = grid.MaxAccessoireInGridCounter;
|
|
43061
|
+
this.excludeAccessoiresByAccessoiresInGrid = grid.ExcludeAccessoiresByAccessoiresInGrid;
|
|
43030
43062
|
this.influencedByNeighborGrids = grid.InfluencedByNeighborGrids;
|
|
43031
43063
|
this.influencedByOverlappingGrids = grid.InfluencedByOverlappingGrids;
|
|
43032
43064
|
this._group = grid.Group;
|
|
@@ -43713,7 +43745,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43713
43745
|
key: "getFreeSpacesOfAccessoire",
|
|
43714
43746
|
value: function getFreeSpacesOfAccessoire(accessoire) {
|
|
43715
43747
|
var size = accessoire.shelfHeight;
|
|
43716
|
-
if (!size || this.disabledByRule || this.
|
|
43748
|
+
if (!size || this.disabledByRule || this.checkAccessoireInGridRules(accessoire)) return [];
|
|
43717
43749
|
var freeCells = [];
|
|
43718
43750
|
for (var i = 0; i < this.Cells.length; i++) {
|
|
43719
43751
|
var _cell$Article4;
|
|
@@ -43748,22 +43780,51 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43748
43780
|
return _toConsumableArray__default["default"](new Set(freeCells));
|
|
43749
43781
|
}
|
|
43750
43782
|
}, {
|
|
43751
|
-
key: "
|
|
43752
|
-
value: function
|
|
43753
|
-
var _this$maxAccessoireIn;
|
|
43754
|
-
|
|
43755
|
-
|
|
43756
|
-
var
|
|
43757
|
-
|
|
43758
|
-
|
|
43759
|
-
|
|
43760
|
-
|
|
43761
|
-
var
|
|
43762
|
-
|
|
43763
|
-
|
|
43783
|
+
key: "checkAccessoireInGridRules",
|
|
43784
|
+
value: function checkAccessoireInGridRules(accessoire) {
|
|
43785
|
+
var _this$maxAccessoireIn, _this$excludeAccessoi;
|
|
43786
|
+
//max count in grid logic
|
|
43787
|
+
if ((_this$maxAccessoireIn = this.maxAccessoireInGridCounter) !== null && _this$maxAccessoireIn !== void 0 && _this$maxAccessoireIn.length) {
|
|
43788
|
+
for (var i = 0; i < this.maxAccessoireInGridCounter.length; i++) {
|
|
43789
|
+
var rule = this.maxAccessoireInGridCounter[i];
|
|
43790
|
+
var counter = 0;
|
|
43791
|
+
if (rule.accessoires.includes(accessoire.articleCodex)) {
|
|
43792
|
+
var currentAccessoires = Object.values(this.Accessoires);
|
|
43793
|
+
for (var j = 0; j < currentAccessoires.length; j++) {
|
|
43794
|
+
var curAcc = currentAccessoires[j];
|
|
43795
|
+
if (rule.accessoires.includes(curAcc.articleCodex)) {
|
|
43796
|
+
counter = counter + curAcc.quantity;
|
|
43797
|
+
}
|
|
43798
|
+
}
|
|
43799
|
+
if (counter >= rule.maxCount) return true;
|
|
43800
|
+
}
|
|
43801
|
+
}
|
|
43802
|
+
}
|
|
43803
|
+
|
|
43804
|
+
//accessories excluded eachother
|
|
43805
|
+
if ((_this$excludeAccessoi = this.excludeAccessoiresByAccessoiresInGrid) !== null && _this$excludeAccessoi !== void 0 && _this$excludeAccessoi.length) {
|
|
43806
|
+
var excludeAccessoiresGroup = this.excludeAccessoiresByAccessoiresInGrid;
|
|
43807
|
+
for (var _j2 = 0; _j2 < excludeAccessoiresGroup.length; _j2++) {
|
|
43808
|
+
var plannedAccessoireIndex = -1;
|
|
43809
|
+
var excludeAccessoires = excludeAccessoiresGroup[_j2];
|
|
43810
|
+
for (var _i16 = 0; _i16 < excludeAccessoires.length; _i16++) {
|
|
43811
|
+
var accessoireArray = excludeAccessoires[_i16];
|
|
43812
|
+
for (var basketId in this.Accessoires) {
|
|
43813
|
+
var palnnedAccessoire = this.Accessoires[basketId];
|
|
43814
|
+
if (accessoireArray.includes(palnnedAccessoire.articleCodex)) {
|
|
43815
|
+
plannedAccessoireIndex = _i16;
|
|
43816
|
+
break;
|
|
43817
|
+
}
|
|
43818
|
+
}
|
|
43819
|
+
if (plannedAccessoireIndex >= 0) break;
|
|
43820
|
+
}
|
|
43821
|
+
if (plannedAccessoireIndex >= 0) {
|
|
43822
|
+
for (var _i17 = 0; _i17 < excludeAccessoires.length; _i17++) {
|
|
43823
|
+
var _accessoireArray = excludeAccessoires[_i17];
|
|
43824
|
+
if (plannedAccessoireIndex == _i17) continue;
|
|
43825
|
+
if (_accessoireArray.includes(accessoire.articleCodex)) return true;
|
|
43764
43826
|
}
|
|
43765
43827
|
}
|
|
43766
|
-
if (counter >= rule.maxCount) return true;
|
|
43767
43828
|
}
|
|
43768
43829
|
}
|
|
43769
43830
|
return false;
|
|
@@ -43808,16 +43869,16 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43808
43869
|
}
|
|
43809
43870
|
}
|
|
43810
43871
|
if ((_this$influencedByNei = this.influencedByNeighborGrids) !== null && _this$influencedByNei !== void 0 && _this$influencedByNei.length) {
|
|
43811
|
-
for (var
|
|
43872
|
+
for (var _i18 = 0; _i18 < this.influencedByNeighborGrids.length; _i18++) {
|
|
43812
43873
|
var _this$article$shelfPl2;
|
|
43813
|
-
var _influenced = this.influencedByNeighborGrids[
|
|
43874
|
+
var _influenced = this.influencedByNeighborGrids[_i18];
|
|
43814
43875
|
var neighborGrid = (_this$article$shelfPl2 = this.article.shelfPlanner) === null || _this$article$shelfPl2 === void 0 ? void 0 : _this$article$shelfPl2.getGridByGridName(_influenced.GridName);
|
|
43815
43876
|
var _ret = false;
|
|
43816
43877
|
if (!neighborGrid) continue;
|
|
43817
43878
|
if (neighborGrid.Direction === this.Direction) {
|
|
43818
|
-
for (var
|
|
43879
|
+
for (var _j3 = 0; _j3 < size; _j3++) {
|
|
43819
43880
|
var _cell$Article5;
|
|
43820
|
-
var cell = neighborGrid.cells[
|
|
43881
|
+
var cell = neighborGrid.cells[_j3 + index];
|
|
43821
43882
|
if ((cell === null || cell === void 0 ? void 0 : cell.InUse) !== -1 && ((_cell$Article5 = cell.Article) === null || _cell$Article5 === void 0 ? void 0 : _cell$Article5.basketId) !== accessoire.basketId) {
|
|
43822
43883
|
_ret = true;
|
|
43823
43884
|
}
|
package/build/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-91696556.js');
|
|
6
6
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
7
7
|
require('@babel/runtime/helpers/classCallCheck');
|
|
8
8
|
require('@babel/runtime/helpers/createClass');
|
|
@@ -3,11 +3,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, B as BoundingBox } from './index-
|
|
6
|
+
import { V as Vector3, B as BoundingBox } from './index-999a0e8c.js';
|
|
7
7
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
10
|
-
import { h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-ce5b6cc8.js';
|
|
10
|
+
import { h as handler2D } from './PlannerHandler2D-bc825497.js';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
12
|
import '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import 'axios';
|
package/build/esm/{DivaSingleProductPlanner-d3112eb7.js → DivaSingleProductPlanner-bc11af8c.js}
RENAMED
|
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-999a0e8c.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-ce5b6cc8.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
9
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
|
-
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-
|
|
7
|
-
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-
|
|
6
|
+
import { V as Vector3, c as Vector2, B as BoundingBox } from './index-999a0e8c.js';
|
|
7
|
+
import { d as dockingPointHandlerInst, P as PlannerElementData } from './DockingPointHandler-ce5b6cc8.js';
|
|
8
8
|
import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
|
|
9
|
-
import { h as handler2D } from './PlannerHandler2D-
|
|
9
|
+
import { h as handler2D } from './PlannerHandler2D-bc825497.js';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
11
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import '@babel/runtime/helpers/toConsumableArray';
|