@crystaldesign/web-planner-logic 26.13.0-beta.17 → 26.13.0-beta.19

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.
Files changed (38) hide show
  1. package/build/cjs/{DivaBoxPlanner-593d689c.js → DivaBoxPlanner-cf785c8e.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-f5ba6ead.js → DivaStandardPlanner-76758261.js} +2 -2
  3. package/build/cjs/{DoorPlanner-35be7adf.js → DoorPlanner-322b433f.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b8beb958.js → Host3DSignalR-720088d4.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-13757823.js → LiviqueWWSHandler-ea49263b.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-7404917e.js → PfisterWWSHandler-61d7dc26.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d266ccd0.js → PlannerHandler2D-cd71fcd3.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-2b3d0f22.js → SeriousBasketHandler-966ca145.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-4eb63a5c.js → ShelfPlanner-3a790d65.js} +11 -1
  10. package/build/cjs/{StandardWWSHandler-9fce580d.js → StandardWWSHandler-b565c684.js} +1 -1
  11. package/build/cjs/{index-ecd4dc0b.js → index-dfe2c0e3.js} +130 -66
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-7291fc69.js → DivaBoxPlanner-570bd517.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-cde0a04a.js → DivaStandardPlanner-712385df.js} +2 -2
  15. package/build/esm/{DoorPlanner-599bd2a0.js → DoorPlanner-3670fee0.js} +1 -1
  16. package/build/esm/{Host3DSignalR-c12d1c95.js → Host3DSignalR-68938df9.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-443dd9fb.js → LiviqueWWSHandler-2cd9654b.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-aeeeca0a.js → PfisterWWSHandler-7593c211.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-eb466bb9.js → PlannerHandler2D-487406e6.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-8e25438e.js → SeriousBasketHandler-b13a4be4.js} +1 -1
  21. package/build/esm/{ShelfPlanner-93e07971.js → ShelfPlanner-8eeb52df.js} +11 -1
  22. package/build/esm/{StandardWWSHandler-d71f9500.js → StandardWWSHandler-33aac025.js} +1 -1
  23. package/build/esm/{index-d4042c10.js → index-0d6a39cb.js} +130 -66
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  30. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +5 -0
  32. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  34. package/build/types/web-planner-logic/src/test/bundleRulesOwnPartlist.test.d.ts +2 -0
  35. package/build/types/web-planner-logic/src/test/bundleRulesOwnPartlist.test.d.ts.map +1 -0
  36. package/build/types/web-planner-logic/src/test/getConfigStepKeyOfAccessoire.test.d.ts +2 -0
  37. package/build/types/web-planner-logic/src/test/getConfigStepKeyOfAccessoire.test.d.ts.map +1 -0
  38. package/package.json +3 -3
@@ -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-ecd4dc0b.js');
8
+ var index = require('./index-dfe2c0e3.js');
9
9
  var DivaUtils = require('@crystaldesign/diva-utils');
10
10
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
11
11
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
12
- var PlannerHandler2D = require('./PlannerHandler2D-d266ccd0.js');
12
+ var PlannerHandler2D = require('./PlannerHandler2D-cd71fcd3.js');
13
13
  require('@babel/runtime/helpers/objectWithoutProperties');
14
14
  require('axios');
15
15
  require('@babel/runtime/helpers/typeof');
@@ -6,10 +6,10 @@ 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-ecd4dc0b.js');
9
+ var index = require('./index-dfe2c0e3.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  var planner2dCore = require('@crystaldesign/planner-2d-core');
12
- var PlannerHandler2D = require('./PlannerHandler2D-d266ccd0.js');
12
+ var PlannerHandler2D = require('./PlannerHandler2D-cd71fcd3.js');
13
13
  require('@babel/runtime/helpers/slicedToArray');
14
14
  require('@babel/runtime/helpers/objectWithoutProperties');
15
15
  require('axios');
@@ -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-ecd4dc0b.js');
6
+ require('./index-dfe2c0e3.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -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-ecd4dc0b.js');
8
+ var index = require('./index-dfe2c0e3.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-ecd4dc0b.js');
5
+ require('./index-dfe2c0e3.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -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-ecd4dc0b.js');
5
+ var index = require('./index-dfe2c0e3.js');
6
6
  var basketModel = require('@crystaldesign/basket-model');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
@@ -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-ecd4dc0b.js');
8
+ var index = require('./index-dfe2c0e3.js');
9
9
  var _possibleConstructorReturn = require('@babel/runtime/helpers/possibleConstructorReturn');
10
10
  var _getPrototypeOf = require('@babel/runtime/helpers/getPrototypeOf');
11
11
  var _get = require('@babel/runtime/helpers/get');
@@ -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-ecd4dc0b.js');
6
+ var index = require('./index-dfe2c0e3.js');
7
7
  var DivaUtils = require('@crystaldesign/diva-utils');
8
8
  require('@babel/runtime/helpers/slicedToArray');
9
9
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -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-ecd4dc0b.js');
9
+ var index = require('./index-dfe2c0e3.js');
10
10
  var DivaUtils = require('@crystaldesign/diva-utils');
11
11
  require('@babel/runtime/helpers/slicedToArray');
12
12
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -128,6 +128,16 @@ var ShelfPlanner = /*#__PURE__*/function () {
128
128
  }
129
129
  }
130
130
  }
131
+
132
+ /**
133
+ * True when an accessoire with this codex can be planned for free on this shelf (an initAcc with noPrice, eg the first
134
+ * Kleiderstange of a Jutzler element).
135
+ */
136
+ }, {
137
+ key: "canBeFree",
138
+ value: function canBeFree(articleCodex) {
139
+ return this.freeArticlesPossible[articleCodex] !== undefined;
140
+ }
131
141
  }, {
132
142
  key: "IsVisible",
133
143
  get: function get() {
@@ -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-ecd4dc0b.js');
5
+ require('./index-dfe2c0e3.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/defineProperty');
@@ -21671,7 +21671,9 @@ function _loadReferencedSerieCatalogs() {
21671
21671
  _context9.next = 13;
21672
21672
  return catalogHandlerInstance.getCatalogData(set.getSetState, _serieNo2, {
21673
21673
  AccountGUID: catalogData.accountGuid,
21674
- AccountSessionGUID: catalogData.accountSessionGuid
21674
+ AccountSessionGUID: catalogData.accountSessionGuid,
21675
+ // a reopened basket starts without the isIDMData param - the other serie must not fall back to API2
21676
+ IsIDMFormat: catalogData.isIDMFormat
21675
21677
  });
21676
21678
  case 13:
21677
21679
  serieCatalogs[_serieNo2] = _context9.sent;
@@ -30927,10 +30929,12 @@ var DivaArticle = /*#__PURE__*/function () {
30927
30929
  get: function get() {
30928
30930
  return this.articlePrices.PriceListCodex;
30929
30931
  }
30932
+ /** A free article brings its partlist along for free - eg the Kleiderstange part of the free Jutzler Kleiderstange. */
30930
30933
  }, {
30931
30934
  key: "noPrice",
30932
30935
  get: function get() {
30933
- return this.article.noPrice;
30936
+ var _this$partListParentA5;
30937
+ return this.article.noPrice || !!((_this$partListParentA5 = this.partListParentArticle) !== null && _this$partListParentA5 !== void 0 && _this$partListParentA5.noPrice);
30934
30938
  },
30935
30939
  set: function set(noPrice) {
30936
30940
  this.article.noPrice = noPrice;
@@ -31313,8 +31317,8 @@ var DivaArticle = /*#__PURE__*/function () {
31313
31317
  }, {
31314
31318
  key: "getReqursiveArticleOptionStates",
31315
31319
  value: function getReqursiveArticleOptionStates() {
31316
- var _this$partListParentA5, _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
31317
- return [].concat(_toConsumableArray__default["default"]((_this$partListParentA5 = (_this$partListParentA6 = this.partListParentArticle) === null || _this$partListParentA6 === void 0 ? void 0 : _this$partListParentA6.articleOptionStates.values()) !== null && _this$partListParentA5 !== void 0 ? _this$partListParentA5 : []), _toConsumableArray__default["default"]((_this$partListParentA7 = (_this$partListParentA8 = this.partListParentArticle) === null || _this$partListParentA8 === void 0 ? void 0 : _this$partListParentA8.getReqursiveArticleOptionStates()) !== null && _this$partListParentA7 !== void 0 ? _this$partListParentA7 : []), _toConsumableArray__default["default"]((_this$accessoireParen3 = (_this$accessoireParen4 = this.accessoireParentArticle) === null || _this$accessoireParen4 === void 0 ? void 0 : _this$accessoireParen4.articleOptionStates.values()) !== null && _this$accessoireParen3 !== void 0 ? _this$accessoireParen3 : []), _toConsumableArray__default["default"]((_this$accessoireParen5 = (_this$accessoireParen6 = this.accessoireParentArticle) === null || _this$accessoireParen6 === void 0 ? void 0 : _this$accessoireParen6.getReqursiveArticleOptionStates()) !== null && _this$accessoireParen5 !== void 0 ? _this$accessoireParen5 : []));
31320
+ var _this$partListParentA6, _this$partListParentA7, _this$partListParentA8, _this$partListParentA9, _this$accessoireParen3, _this$accessoireParen4, _this$accessoireParen5, _this$accessoireParen6;
31321
+ return [].concat(_toConsumableArray__default["default"]((_this$partListParentA6 = (_this$partListParentA7 = this.partListParentArticle) === null || _this$partListParentA7 === void 0 ? void 0 : _this$partListParentA7.articleOptionStates.values()) !== null && _this$partListParentA6 !== void 0 ? _this$partListParentA6 : []), _toConsumableArray__default["default"]((_this$partListParentA8 = (_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.getReqursiveArticleOptionStates()) !== null && _this$partListParentA8 !== void 0 ? _this$partListParentA8 : []), _toConsumableArray__default["default"]((_this$accessoireParen3 = (_this$accessoireParen4 = this.accessoireParentArticle) === null || _this$accessoireParen4 === void 0 ? void 0 : _this$accessoireParen4.articleOptionStates.values()) !== null && _this$accessoireParen3 !== void 0 ? _this$accessoireParen3 : []), _toConsumableArray__default["default"]((_this$accessoireParen5 = (_this$accessoireParen6 = this.accessoireParentArticle) === null || _this$accessoireParen6 === void 0 ? void 0 : _this$accessoireParen6.getReqursiveArticleOptionStates()) !== null && _this$accessoireParen5 !== void 0 ? _this$accessoireParen5 : []));
31318
31322
  }
31319
31323
  }, {
31320
31324
  key: "getAllArticleOptionsStates",
@@ -31909,8 +31913,8 @@ var DivaArticle = /*#__PURE__*/function () {
31909
31913
  }, {
31910
31914
  key: "getBaseParent",
31911
31915
  value: function getBaseParent() {
31912
- var _ref2, _this$partListParentA9, _this$partListParentA10, _this$accessoireParen8;
31913
- return (_ref2 = (_this$partListParentA9 = (_this$partListParentA10 = this.partListParentArticle) === null || _this$partListParentA10 === void 0 ? void 0 : _this$partListParentA10.getBaseParent()) !== null && _this$partListParentA9 !== void 0 ? _this$partListParentA9 : (_this$accessoireParen8 = this.accessoireParentArticle) === null || _this$accessoireParen8 === void 0 ? void 0 : _this$accessoireParen8.getBaseParent()) !== null && _ref2 !== void 0 ? _ref2 : this;
31916
+ var _ref2, _this$partListParentA10, _this$partListParentA11, _this$accessoireParen8;
31917
+ return (_ref2 = (_this$partListParentA10 = (_this$partListParentA11 = this.partListParentArticle) === null || _this$partListParentA11 === void 0 ? void 0 : _this$partListParentA11.getBaseParent()) !== null && _this$partListParentA10 !== void 0 ? _this$partListParentA10 : (_this$accessoireParen8 = this.accessoireParentArticle) === null || _this$accessoireParen8 === void 0 ? void 0 : _this$accessoireParen8.getBaseParent()) !== null && _ref2 !== void 0 ? _ref2 : this;
31914
31918
  }
31915
31919
  }, {
31916
31920
  key: "checkArtCodexIsAccessoire",
@@ -33270,7 +33274,7 @@ var DivaArticle = /*#__PURE__*/function () {
33270
33274
  break;
33271
33275
  }
33272
33276
  _context.next = 4;
33273
- return Promise.resolve().then(function () { return require('./ShelfPlanner-4eb63a5c.js'); });
33277
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-3a790d65.js'); });
33274
33278
  case 4:
33275
33279
  _yield$import = _context.sent;
33276
33280
  ShelfPlanner = _yield$import["default"];
@@ -33337,13 +33341,13 @@ var DivaArticle = /*#__PURE__*/function () {
33337
33341
  }, {
33338
33342
  key: "getRefLevelArticle",
33339
33343
  value: function getRefLevelArticle() {
33340
- var _this$partListParentA11;
33344
+ var _this$partListParentA12;
33341
33345
  var refLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 3;
33342
33346
  switch (refLevel) {
33343
33347
  case 1:
33344
33348
  return this.getBaseParent();
33345
33349
  case 2:
33346
- return (_this$partListParentA11 = this.partListParentArticle) !== null && _this$partListParentA11 !== void 0 ? _this$partListParentA11 : this;
33350
+ return (_this$partListParentA12 = this.partListParentArticle) !== null && _this$partListParentA12 !== void 0 ? _this$partListParentA12 : this;
33347
33351
  case 3:
33348
33352
  return this;
33349
33353
  }
@@ -33519,8 +33523,8 @@ var DivaArticle = /*#__PURE__*/function () {
33519
33523
  }, {
33520
33524
  key: "isIDM3DSkipped",
33521
33525
  get: function get() {
33522
- var _this$partListParentA12;
33523
- return this.catalogArticle.isIDM3DSkipped || !!((_this$partListParentA12 = this.partListParentArticle) !== null && _this$partListParentA12 !== void 0 && _this$partListParentA12.isIDM3DSkipped);
33526
+ var _this$partListParentA13;
33527
+ return this.catalogArticle.isIDM3DSkipped || !!((_this$partListParentA13 = this.partListParentArticle) !== null && _this$partListParentA13 !== void 0 && _this$partListParentA13.isIDM3DSkipped);
33524
33528
  }
33525
33529
 
33526
33530
  /**
@@ -34216,7 +34220,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
34216
34220
  _context3.next = 10;
34217
34221
  return catalogHandlerInstance.getCatalogData(set.getSetState, catalogCodex, {
34218
34222
  AccountGUID: set.CatalogData.accountGuid,
34219
- AccountSessionGUID: set.CatalogData.accountSessionGuid
34223
+ AccountSessionGUID: set.CatalogData.accountSessionGuid,
34224
+ // a reopened basket starts without the isIDMData param - another serie of an IDM set must not fall back to API2
34225
+ IsIDMFormat: set.CatalogData.isIDMFormat
34220
34226
  });
34221
34227
  case 10:
34222
34228
  catalog = _context3.sent;
@@ -35056,7 +35062,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35056
35062
  key: "evalAndLoadPartlistArticles",
35057
35063
  value: (function () {
35058
35064
  var _evalAndLoadPartlistArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(article, dontLoadPartlist, newConfigValues) {
35059
- var partlistArticlesToLoad;
35065
+ var partlistArticlesToLoad, _iterator4, _step4, position;
35060
35066
  return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context14) {
35061
35067
  while (1) switch (_context14.prev = _context14.next) {
35062
35068
  case 0:
@@ -35083,9 +35089,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35083
35089
  if (article.bundleRules) {
35084
35090
  partlistArticlesToLoad = this.bundlePartlistArticles(partlistArticlesToLoad, article.bundleRules, _defineProperty__default["default"]({}, article.basketId, article));
35085
35091
  }
35092
+ _iterator4 = _createForOfIteratorHelper$d(partlistArticlesToLoad);
35093
+ try {
35094
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
35095
+ position = _step4.value;
35096
+ position.SourceBasketID = article.basketId;
35097
+ }
35098
+ } catch (err) {
35099
+ _iterator4.e(err);
35100
+ } finally {
35101
+ _iterator4.f();
35102
+ }
35086
35103
  article.hasPartlistArticleInitialized = true;
35087
35104
  return _context14.abrupt("return", partlistArticlesToLoad);
35088
- case 12:
35105
+ case 14:
35089
35106
  case "end":
35090
35107
  return _context14.stop();
35091
35108
  }
@@ -35313,7 +35330,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35313
35330
  value: (function () {
35314
35331
  var _evalOpvsOnOpvsConstructionRules = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(article) {
35315
35332
  var _article$CatalogData$;
35316
- var somethingChanged, previousRules, _key, actRules, item, _iterator4, _step4, ops, myOPVs, _iterator5, _step5, _step5$value, key2, opv, opvGroupName, _article$catalogArtic, _article$catalogArtic2, disable, onOpv, onOpvArr, invaliOPVs, invalidOPVArr, j, opvRule, ops2, i, invalidOpv, ops3, key, constructionRule, notifications, _i6, _item;
35333
+ var somethingChanged, previousRules, _key, actRules, item, _iterator5, _step5, ops, myOPVs, _iterator6, _step6, _step6$value, key2, opv, opvGroupName, _article$catalogArtic, _article$catalogArtic2, disable, onOpv, onOpvArr, invaliOPVs, invalidOPVArr, j, opvRule, ops2, i, invalidOpv, ops3, key, constructionRule, notifications, _i6, _item;
35317
35334
  return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context17) {
35318
35335
  while (1) switch (_context17.prev = _context17.next) {
35319
35336
  case 0:
@@ -35334,16 +35351,16 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35334
35351
  }
35335
35352
  }
35336
35353
  }
35337
- _iterator4 = _createForOfIteratorHelper$d(article.articleOptionStates.values());
35354
+ _iterator5 = _createForOfIteratorHelper$d(article.articleOptionStates.values());
35338
35355
  try {
35339
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
35340
- ops = _step4.value;
35356
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
35357
+ ops = _step5.value;
35341
35358
  if (ops.optionCodex.toUpperCase().endsWith('OPTCONSTRUCTIONRULES')) {
35342
35359
  myOPVs = ops.option.articleOptionValues;
35343
- _iterator5 = _createForOfIteratorHelper$d(myOPVs);
35360
+ _iterator6 = _createForOfIteratorHelper$d(myOPVs);
35344
35361
  try {
35345
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
35346
- _step5$value = _slicedToArray__default["default"](_step5.value, 2), key2 = _step5$value[0], opv = _step5$value[1];
35362
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
35363
+ _step6$value = _slicedToArray__default["default"](_step6.value, 2), key2 = _step6$value[0], opv = _step6$value[1];
35347
35364
  opvGroupName = opv.groupName;
35348
35365
  if (opvGroupName && opvGroupName.startsWith('ON_OPV_SET_OPV')) {
35349
35366
  disable = false;
@@ -35384,16 +35401,16 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35384
35401
  }
35385
35402
  }
35386
35403
  } catch (err) {
35387
- _iterator5.e(err);
35404
+ _iterator6.e(err);
35388
35405
  } finally {
35389
- _iterator5.f();
35406
+ _iterator6.f();
35390
35407
  }
35391
35408
  }
35392
35409
  }
35393
35410
  } catch (err) {
35394
- _iterator4.e(err);
35411
+ _iterator5.e(err);
35395
35412
  } finally {
35396
- _iterator4.f();
35413
+ _iterator5.f();
35397
35414
  }
35398
35415
  if (!((_article$CatalogData$ = article.CatalogData.warningRules) !== null && _article$CatalogData$ !== void 0 && _article$CatalogData$.length)) {
35399
35416
  _context17.next = 20;
@@ -35797,11 +35814,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35797
35814
  value: function getOptiontreeAccessoiresArr(setId, article) {
35798
35815
  var s = 0;
35799
35816
  var accessoires = [];
35800
- var _iterator6 = _createForOfIteratorHelper$d(article.articleOptionStates.values()),
35801
- _step6;
35817
+ var _iterator7 = _createForOfIteratorHelper$d(article.articleOptionStates.values()),
35818
+ _step7;
35802
35819
  try {
35803
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
35804
- var ops = _step6.value;
35820
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
35821
+ var ops = _step7.value;
35805
35822
  if (ops.option.articlePlaceholder) {
35806
35823
  //ArticlePlaceholder bestimmt, ob Optionswert als eigene SAPOrderline ausgegeben wird
35807
35824
  if (ops.isAccessoirArtNr && ops.isAccessoirArtNr != '') {
@@ -35817,9 +35834,9 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35817
35834
  }
35818
35835
  }
35819
35836
  } catch (err) {
35820
- _iterator6.e(err);
35837
+ _iterator7.e(err);
35821
35838
  } finally {
35822
- _iterator6.f();
35839
+ _iterator7.f();
35823
35840
  }
35824
35841
  return accessoires;
35825
35842
  }
@@ -35918,57 +35935,102 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35918
35935
  key: "correctPartlistArticlesByGlobalRules",
35919
35936
  value: (function () {
35920
35937
  var _correctPartlistArticlesByGlobalRules = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee18(set, partlistArticlesToLoad, bundleRules, doChangeRetailArticleNumbers) {
35921
- var _loop4, i, article;
35938
+ var article, ownPositions, bundledCodices, _loop4, _i8, _arr, _iterator8, _step8, _step8$value, source, positions;
35922
35939
  return _regeneratorRuntime__default["default"].wrap(function _callee18$(_context20) {
35923
35940
  while (1) switch (_context20.prev = _context20.next) {
35924
35941
  case 0:
35925
- if (bundleRules) partlistArticlesToLoad = this.bundlePartlistArticles(partlistArticlesToLoad, bundleRules, set.getDivaArticles());
35942
+ article = Object.values(set.getDivaArticles()).find(function (article) {
35943
+ return article.hasPartlistArticle && !article.deleted;
35944
+ }); //a shelf accessoire that can be planned for free keeps the positions no rule names: its noPrice has to waive the parts
35945
+ //it brings along, and pooled onto the first article they would be charged there. Everything else is pooled.
35946
+ ownPositions = new Map();
35947
+ if (bundleRules) {
35948
+ bundledCodices = new Set(bundleRules.flatMap(function (rule) {
35949
+ var _rule$result;
35950
+ return [].concat(_toConsumableArray__default["default"](rule.toBundle), _toConsumableArray__default["default"]((_rule$result = rule.result) !== null && _rule$result !== void 0 ? _rule$result : [])).map(function (entry) {
35951
+ return entry.articleCodex;
35952
+ });
35953
+ }));
35954
+ partlistArticlesToLoad = partlistArticlesToLoad.filter(function (position) {
35955
+ var _source$accessoirePar, _ownPositions$get;
35956
+ var source = position.SourceBasketID ? set.getArticleByBasketId(position.SourceBasketID) : undefined;
35957
+ if (!source || source.deleted || source === article || bundledCodices.has(position.ArticleCodex)) return true;
35958
+ if (!((_source$accessoirePar = source.accessoireParentArticle) !== null && _source$accessoirePar !== void 0 && (_source$accessoirePar = _source$accessoirePar.shelfPlanner) !== null && _source$accessoirePar !== void 0 && _source$accessoirePar.canBeFree(source.articleCodex))) return true;
35959
+ ownPositions.set(source, [].concat(_toConsumableArray__default["default"]((_ownPositions$get = ownPositions.get(source)) !== null && _ownPositions$get !== void 0 ? _ownPositions$get : []), [position]));
35960
+ return false;
35961
+ });
35962
+ partlistArticlesToLoad = this.bundlePartlistArticles(partlistArticlesToLoad, bundleRules, set.getDivaArticles());
35963
+ }
35926
35964
  //Correct RetailArticleNumbers
35927
35965
  if (!(doChangeRetailArticleNumbers !== null && doChangeRetailArticleNumbers !== void 0 && doChangeRetailArticleNumbers.doChange && doChangeRetailArticleNumbers.retailArticleRules)) {
35928
- _context20.next = 9;
35966
+ _context20.next = 11;
35929
35967
  break;
35930
35968
  }
35931
- _loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4(i) {
35932
- var rule;
35969
+ _loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4() {
35970
+ var position, rule;
35933
35971
  return _regeneratorRuntime__default["default"].wrap(function _loop4$(_context19) {
35934
35972
  while (1) switch (_context19.prev = _context19.next) {
35935
35973
  case 0:
35974
+ position = _arr[_i8];
35936
35975
  //Run through articleCodexes to repair:
35937
35976
  rule = doChangeRetailArticleNumbers.retailArticleRules.find(function (item) {
35938
- return item.origRetailArticleNr == partlistArticlesToLoad[i].RetailArticleNr;
35977
+ return item.origRetailArticleNr == position.RetailArticleNr;
35939
35978
  });
35940
- if (rule && rule.origPrefix == partlistArticlesToLoad[i].RetailPrefix) {
35941
- partlistArticlesToLoad[i].RetailPrefix = rule.newPrefix;
35942
- partlistArticlesToLoad[i].RetailArticleNr = rule.newRetailArticleNr;
35979
+ if (rule && rule.origPrefix == position.RetailPrefix) {
35980
+ position.RetailPrefix = rule.newPrefix;
35981
+ position.RetailArticleNr = rule.newRetailArticleNr;
35943
35982
  }
35944
- case 2:
35983
+ case 3:
35945
35984
  case "end":
35946
35985
  return _context19.stop();
35947
35986
  }
35948
35987
  }, _loop4);
35949
35988
  });
35950
- i = 0;
35951
- case 4:
35952
- if (!(i < partlistArticlesToLoad.length)) {
35953
- _context20.next = 9;
35989
+ _i8 = 0, _arr = [].concat(_toConsumableArray__default["default"](partlistArticlesToLoad), _toConsumableArray__default["default"](_toConsumableArray__default["default"](ownPositions.values()).flat()));
35990
+ case 6:
35991
+ if (!(_i8 < _arr.length)) {
35992
+ _context20.next = 11;
35954
35993
  break;
35955
35994
  }
35956
- return _context20.delegateYield(_loop4(i), "t0", 6);
35957
- case 6:
35958
- i++;
35959
- _context20.next = 4;
35995
+ return _context20.delegateYield(_loop4(), "t0", 8);
35996
+ case 8:
35997
+ _i8++;
35998
+ _context20.next = 6;
35960
35999
  break;
35961
- case 9:
35962
- article = Object.values(set.getDivaArticles()).find(function (article) {
35963
- return article.hasPartlistArticle && !article.deleted;
35964
- });
35965
- _context20.next = 12;
36000
+ case 11:
36001
+ _context20.next = 13;
35966
36002
  return this.loadPartlistArticles(partlistArticlesToLoad, article, {});
35967
- case 12:
36003
+ case 13:
36004
+ _iterator8 = _createForOfIteratorHelper$d(ownPositions);
36005
+ _context20.prev = 14;
36006
+ _iterator8.s();
36007
+ case 16:
36008
+ if ((_step8 = _iterator8.n()).done) {
36009
+ _context20.next = 22;
36010
+ break;
36011
+ }
36012
+ _step8$value = _slicedToArray__default["default"](_step8.value, 2), source = _step8$value[0], positions = _step8$value[1];
36013
+ _context20.next = 20;
36014
+ return this.loadPartlistArticles(positions, source, {});
36015
+ case 20:
36016
+ _context20.next = 16;
36017
+ break;
36018
+ case 22:
36019
+ _context20.next = 27;
36020
+ break;
36021
+ case 24:
36022
+ _context20.prev = 24;
36023
+ _context20.t1 = _context20["catch"](14);
36024
+ _iterator8.e(_context20.t1);
36025
+ case 27:
36026
+ _context20.prev = 27;
36027
+ _iterator8.f();
36028
+ return _context20.finish(27);
36029
+ case 30:
35968
36030
  case "end":
35969
36031
  return _context20.stop();
35970
36032
  }
35971
- }, _callee18, this);
36033
+ }, _callee18, this, [[14, 24, 27, 30]]);
35972
36034
  }));
35973
36035
  function correctPartlistArticlesByGlobalRules(_x53, _x54, _x55, _x56) {
35974
36036
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
@@ -35996,8 +36058,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
35996
36058
  _loop5(i);
35997
36059
  }
35998
36060
  //bundle Partlistarticles
35999
- for (var _i8 = 0; _i8 < bundleRules.length; _i8++) {
36000
- var bundleRule = bundleRules[_i8];
36061
+ for (var _i9 = 0; _i9 < bundleRules.length; _i9++) {
36062
+ var bundleRule = bundleRules[_i9];
36001
36063
  var noBundleFound = false;
36002
36064
  var bundleUsedCounter = 0;
36003
36065
  while (!noBundleFound && (bundleRule.maximalUsage === undefined || bundleRule.maximalUsage > bundleUsedCounter)) {
@@ -37265,6 +37327,8 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
37265
37327
  for (_iterator36.s(); !(_step36 = _iterator36.n()).done;) {
37266
37328
  var _step36$value = _slicedToArray__default["default"](_step36.value, 2),
37267
37329
  option = _step36$value[1];
37330
+ // merged into its OPG step, which already shows these values — skipped like in the main config tree
37331
+ if (option.mergesToOPG === true) continue;
37268
37332
  var _iterator37 = _createForOfIteratorHelper$c(option.configSteps),
37269
37333
  _step37;
37270
37334
  try {
@@ -41992,7 +42056,7 @@ var DivaSet = /*#__PURE__*/function () {
41992
42056
  break;
41993
42057
  }
41994
42058
  _context5.next = 3;
41995
- return Promise.resolve().then(function () { return require('./DoorPlanner-35be7adf.js'); });
42059
+ return Promise.resolve().then(function () { return require('./DoorPlanner-322b433f.js'); });
41996
42060
  case 3:
41997
42061
  _yield$import = _context5.sent;
41998
42062
  DoorPlanner = _yield$import["default"];
@@ -49963,7 +50027,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
49963
50027
  break;
49964
50028
  case 3:
49965
50029
  _context12.next = 5;
49966
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-7404917e.js'); });
50030
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-61d7dc26.js'); });
49967
50031
  case 5:
49968
50032
  _yield$import = _context12.sent;
49969
50033
  PfisterWWSHandler = _yield$import["default"];
@@ -49971,7 +50035,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
49971
50035
  return _context12.abrupt("break", 27);
49972
50036
  case 9:
49973
50037
  _context12.next = 11;
49974
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-13757823.js'); });
50038
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ea49263b.js'); });
49975
50039
  case 11:
49976
50040
  _yield$import2 = _context12.sent;
49977
50041
  LiviqueWWSHandler = _yield$import2["default"];
@@ -49979,7 +50043,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
49979
50043
  return _context12.abrupt("break", 27);
49980
50044
  case 15:
49981
50045
  _context12.next = 17;
49982
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-2b3d0f22.js'); });
50046
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-966ca145.js'); });
49983
50047
  case 17:
49984
50048
  _yield$import3 = _context12.sent;
49985
50049
  SeriousWWSHandler = _yield$import3["default"];
@@ -49987,7 +50051,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
49987
50051
  return _context12.abrupt("break", 27);
49988
50052
  case 21:
49989
50053
  _context12.next = 23;
49990
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-9fce580d.js'); });
50054
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-b565c684.js'); });
49991
50055
  case 23:
49992
50056
  _yield$import4 = _context12.sent;
49993
50057
  StandardWWSHandler = _yield$import4["default"];
@@ -51374,7 +51438,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
51374
51438
  //If we need real time rendering initialize the SignalR and 3D host connection Handler
51375
51439
  bootMark('signalr: chunk import start');
51376
51440
  _context3.next = 3;
51377
- return Promise.resolve().then(function () { return require('./Host3DSignalR-b8beb958.js'); });
51441
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-720088d4.js'); });
51378
51442
  case 3:
51379
51443
  _yield$import = _context3.sent;
51380
51444
  Host3DSignalR = _yield$import["default"];
@@ -53119,7 +53183,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
53119
53183
  break;
53120
53184
  case 8:
53121
53185
  _context5.next = 10;
53122
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-f5ba6ead.js'); });
53186
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-76758261.js'); });
53123
53187
  case 10:
53124
53188
  _yield$import = _context5.sent;
53125
53189
  DivaStandardPlanner = _yield$import["default"];
@@ -53130,7 +53194,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
53130
53194
  return _context5.abrupt("break", 21);
53131
53195
  case 15:
53132
53196
  _context5.next = 17;
53133
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-593d689c.js'); });
53197
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-cf785c8e.js'); });
53134
53198
  case 17:
53135
53199
  _yield$import2 = _context5.sent;
53136
53200
  DivaBoxPlanner = _yield$import2["default"];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-ecd4dc0b.js');
5
+ var index = require('./index-dfe2c0e3.js');
6
6
  var planner2dCore = require('@crystaldesign/planner-2d-core');
7
7
  require('@babel/runtime/helpers/slicedToArray');
8
8
  require('@babel/runtime/helpers/asyncToGenerator');
@@ -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 { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-d4042c10.js';
6
+ import { c as Vector2, V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-0d6a39cb.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
9
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
10
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-eb466bb9.js';
10
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-487406e6.js';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
13
13
  import '@babel/runtime/helpers/typeof';
@@ -4,10 +4,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
4
4
  import _createClass from '@babel/runtime/helpers/createClass';
5
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
6
6
  import _regeneratorRuntime from '@babel/runtime/regenerator';
7
- import { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-d4042c10.js';
7
+ import { V as Vector3, P as PlannerElementData, B as BoundingBox } from './index-0d6a39cb.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import { computeDockedTransform } from '@crystaldesign/planner-2d-core';
10
- import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-eb466bb9.js';
10
+ import { d as dockingPointHandlerInst, h as handler2D } from './PlannerHandler2D-487406e6.js';
11
11
  import '@babel/runtime/helpers/slicedToArray';
12
12
  import '@babel/runtime/helpers/objectWithoutProperties';
13
13
  import 'axios';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-d4042c10.js';
4
+ import './index-0d6a39cb.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ 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 { d as bootMark, R as Rendering, H as HQRenderScript } from './index-d4042c10.js';
6
+ import { d as bootMark, R as Rendering, H as HQRenderScript } from './index-0d6a39cb.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-d4042c10.js';
3
+ import './index-0d6a39cb.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';